KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
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:/ProgramData/NVIDIA Corporation/Downloader/latest/NvApp/www/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : C:/ProgramData/NVIDIA Corporation/Downloader/latest/NvApp/www/main.562d889f05bc674e.js
(self.webpackChunknvapp=self.webpackChunknvapp||[]).push([[792],{14709:(je,z,c)=>{"use strict";c.d(z,{oO:()=>Me,LV:()=>Q,aT:()=>X,XR:()=>Ge});var r=c(94485),n=c(57258),v=c(43848),h=c(35146),f=c(91384),A=c(65706),M=c(83915),T=c(75707),E=c(14714),y=function(Xe){return function S(ge){return!!ge&&"object"==typeof ge}(Xe)&&!function l(ge){var Xe=Object.prototype.toString.call(ge);return"[object RegExp]"===Xe||"[object Date]"===Xe||function m(ge){return ge.$$typeof===u}(ge)}(Xe)},u="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function R(ge,Xe){return!1!==Xe.clone&&Xe.isMergeableObject(ge)?j(function I(ge){return Array.isArray(ge)?[]:{}}(ge),ge,Xe):ge}function O(ge,Xe,ot){return ge.concat(Xe).map(function(dt){return R(dt,ot)})}function j(ge,Xe,ot){(ot=ot||{}).arrayMerge=ot.arrayMerge||O,ot.isMergeableObject=ot.isMergeableObject||y;var dt=Array.isArray(Xe);return dt===Array.isArray(ge)?dt?ot.arrayMerge(ge,Xe,ot):function Y(ge,Xe,ot){var dt={};return ot.isMergeableObject(ge)&&Object.keys(ge).forEach(function(xe){dt[xe]=R(ge[xe],ot)}),Object.keys(Xe).forEach(function(xe){dt[xe]=ot.isMergeableObject(Xe[xe])&&ge[xe]?j(ge[xe],Xe[xe],ot):R(Xe[xe],ot)}),dt}(ge,Xe,ot):R(Xe,ot)}j.all=function(Xe,ot){if(!Array.isArray(Xe))throw new Error("first argument should be an array");return Xe.reduce(function(dt,xe){return j(dt,xe,ot)},{})};const te=j;var ce=c(3816),H=c(26875),Z=c(58527);let X=(()=>{var ge;class Xe{}return(ge=Xe).\u0275fac=function(dt){return new(dt||ge)},ge.\u0275prov=Z.jDH({token:ge,factory:ge.\u0275fac}),Xe})(),Me=(()=>{var ge;class Xe{constructor(dt,xe,Re,Ue){this.httpBackend=dt,this.params=Re,this.injector=Ue,this.configFetchedSubject=new n.m(1),this.getConfigFromHttp=()=>this.http.get(this.params.filePath).pipe((0,f.M)(ee=>(this.logger.info("Successfully read application config file",ee.build),ee),ee=>{this.logger.error(`Configuration file ${this.params.filePath} could not be read. Error: ${ee}`)})),this.getConfig=()=>{const ee=document.getElementsByTagName("gfn-app-config")[0],W=ee?.getAttribute("data-value");ee?.remove();const Pe=this.parseEncodedConfig(W);return Pe?(0,v.of)(Pe):this.getConfigFromHttp()},this.logger=xe.getLogger("app.config"),this.http=new r.Qq(this.httpBackend),ce.zk.isBrowserLikePlatform()?(this.systemInfoService=this.injector.get(ce.zW),this.browserStaticSystemInfo$=this.systemInfoService?this.systemInfoService.getSystemInfo([ce.Lu.OSName,ce.Lu.DeviceType,ce.Lu.ProductVersion,ce.Lu.BrowserName,ce.Lu.SystemName,ce.Lu.VendorName]).pipe((0,A.s)(1),(0,M.T)(ee=>{const W={OSName:ee.OSName,DeviceType:ee.DeviceType,BrowserName:ee.BrowserName,ProductVersion:ee.ProductVersion,SystemName:ee.SystemName};return ce.zk.isVisionPro(ee)&&(W.OSName=ce.t_.VisionOS,W.DeviceType="HMD"),ce.zk.isAndroidQuest(ee)&&(W.DeviceType="HMD"),W})):(0,v.of)(null)):this.browserStaticSystemInfo$=(0,v.of)(null)}get configFetched$(){return this.configFetchedSubject.asObservable()}mergeRemoteOverridesFromGXT(dt){try{return Object.keys(this.rcParamNameToConfigKeyPathMapping)?.forEach(xe=>{const Re=this.rcParamNameToConfigKeyPathMapping[xe],Ue=this.remoteOverridesFromGXT?.params?.find(ee=>ee.name===xe);if(Ue){let ee=Ue.value;if((0,H.isObject)(ee)){const W=(0,H.get)(dt,Re,{});ee.useRCConfigWithoutMerge||(ee=te(W,ee))}(0,H.set)(dt,Re,ee)}}),dt}catch(xe){return this.logger.info("error in mergeRemoteOverridesFromGXT",xe),dt}}get(){const dt=this.overrides||{},xe=this.piplLocalizationConfigOverrides||{};let Re={};"dev"===this.config?.build?.type&&(Re=this.variant||{});const Ue=te(this.config,Re);let ee=Ue;return this.remoteOverridesFromGXT&&(ee=this.mergeRemoteOverridesFromGXT(Ue)),te(te(ee,xe),dt)}setOverrides(dt){this.overrides=dt}setPiplLocalizationConfigOverrides(dt){this.piplLocalizationConfigOverrides=dt}setRemoteOverridesFromGXT(dt,xe){this.rcParamNameToConfigKeyPathMapping=xe,this.remoteOverridesFromGXT=dt}parseEncodedConfig(dt){if(dt&&""!==dt.trim())try{return JSON.parse(atob(dt))}catch{return null}return null}load(){return this.params.config?(this.logger.info("Initializing config with provided data"),this.config=this.params.config,(0,v.of)(this.config)):this.params.filePath?(this.logger.info(`Attempting to read application config file ${this.params.filePath}`),(0,h.yU)(this.getConfig(),this.browserStaticSystemInfo$).pipe((0,f.M)(dt=>{this.config=dt[0]},dt=>{this.logger.error(`Some problem while executing getConfig function. Error: ${dt}`)}),(0,f.M)(([dt,xe])=>{if(this.config&&xe){const Re=xe.DeviceType,Ue=xe.OSName,ee=xe.ProductVersion,W=xe.BrowserName;this.logger.info(`DeviceType: ${Re}, DeviceOSType: ${Ue}, ProductVersion: ${ee}, SystemName: ${xe.SystemName}`);const le=ve=>{ve&&(this.config=te(this.config,ve))};le(this.get().browserConfig);const oe=Re===ce.Y0.Phone||Re===ce.Y0.Tablet,Le=Re===ce.Y0.TV,Oe=Re===ce.Y0.Console&&Ue!==ce.t_.SteamOS,ye="HMD"===Re,Ie=Ue===ce.t_.Android,at=W===ce.dZ.FIREFOX,K=Ue===ce.t_.MacOS&&W===ce.dZ.SAFARI;switch(Ue){case ce.t_.IOS:le(this.get().iOSConfig);break;case ce.t_.IPadOS:le(this.get().iPadOSConfig);break;case ce.t_.Android:ce.zk.isBrowserPlatform()?Re===ce.Y0.Phone?le(this.get().androidPhoneConfig):Re===ce.Y0.Tablet&&le(this.get().androidTabletConfig):le(this.get().androidConfig);break;case ce.t_.Shield:le(this.get().androidConfig),le(this.get().shieldConfig);break;case ce.t_.Tizen:le(this.get().tizenConfig);break;case ce.t_.WebOS:le(this.get().webOSConfig);break;case ce.t_.SteamOS:le(this.get().steamOSConfig)}oe?le(this.get().mobileConfig):Le?ce.zk.isBrowserPlatform()&&Ie?le(this.get().androidTvConfig):le(this.get().tvConfig):Oe?le(this.get().consoleConfig):ye&&le(this.get().hmdConfig),K&&le(this.get().macSafariConfig),at&&le(this.get().firefoxConfig),ee&&(this.config=te(this.config,{product:{version:ee}}))}}),(0,T.ZZ)(dt=>this.loadVariant(dt[0])),(0,M.T)(()=>{const dt=this.get();return this.logger.info("appConfig loaded"),this.configFetchedSubject.next(dt),dt}))):(this.logger.error("No valid data source specified in the AppConfigParameters"),(0,v.of)(void 0))}loadVariant(dt){const xe=dt?.build?.variant,Re=dt?.build?.type;if(!xe||"dev"!==Re)return(0,v.of)(dt);const Ue=this.params.filePath.replace(/\.[^/\\.]+$/,".")+xe+"."+this.params.filePath.split(".").pop();return this.http.get(Ue).pipe((0,f.M)(ee=>{this.logger.info(`Successfully read ${xe} variant config`),this.variant=ee}),(0,E.W)(()=>(0,v.of)(dt)))}}return(ge=Xe).\u0275fac=function(dt){return new(dt||ge)(Z.KVO(r.JV),Z.KVO(ce.J6),Z.KVO(X),Z.KVO(Z.zZn))},ge.\u0275prov=Z.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"}),Xe})();const Q={provide:Z.hnV,useFactory:function be(ge){return()=>ge.load().toPromise()},multi:!0,deps:[Me]};function ne(ge){return ge.get()}function Ge(ge){return{provide:ge,useFactory:ne,deps:[Me]}}},8126:(je,z,c)=>{"use strict";c.d(z,{T:()=>qt});const qt={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},RestartBackgroundAgent:{legacyCommand:"QUERY_RESTART_BGA_APP",system:"CrimsonNative",module:"ApplicationControl",method:"RestartBackgroundAgent",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}},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}},Backgroundprocess:{},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}},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}},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}},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}},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}},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},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},GfnUpdate:{legacyCommand:"QUERY_GFN_UPDATE_APP",system:"CrimsonNative",module:"Update",method:"GfnUpdate",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}},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_IPC_EXTENSION_MESSAGE",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},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},LaunchNativeStreamer:{legacyCommand:"QUERY_GFN_LAUNCH_NATVE_STREAMER",system:"CrimsonNative",module:"Streaming",method:"LaunchNativeStreamer",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},IsPlatformSupportsUHD:{legacyCommand:"QUERY_GFN_IS_PLATFORM_SUPPORTS_UHD",system:"CrimsonNative",module:"Streaming",method:"IsPlatformSupportsUHD",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},IsPlatformSupportFps:{legacyCommand:"QUERY_GFN_IS_PLATFORM_SUPPORT_FPS",system:"CrimsonNative",module:"Streaming",method:"IsPlatformSupportFps",persistent:!1},GetHighestSupportedAudioFormat:{legacyCommand:"QUERY_GFN_GET_HIGHEST_SUPPORTED_AUDIO_FORMAT",system:"CrimsonNative",module:"Streaming",method:"GetHighestSupportedAudioFormat",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}}},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}},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},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},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},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},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}},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},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}}},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}},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}},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},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},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},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}}}}},74931:(je,z,c)=>{"use strict";var r;c.d(z,{Ts:()=>n.T,Or:()=>ee}),function(W){function Pe(oe,Le,Oe,ye){return{legacyCommand:oe,system:void 0,module:Le,method:Oe,persistent:ye}}W.BridgeCommand=Pe,W.GenericCommand=function le(oe,Le,Oe,ye){return Pe(oe,Le,Oe,ye)}}(r||(r={}));var v,h,f,A,M,n=c(8126);!function(W){let Pe;var le;(le=Pe=W.Format||(W.Format={})).text="text",le.base64="base64"}(v||(v={})),function(W){let Pe;var oe;let le;(oe=Pe=W.MediaType||(W.MediaType={})).auto_detect="auto_detect",oe.nvfbc="nvfbc",oe.video="video",oe.image="image",oe.kpi_test="kpi_test",oe.manual="manual",oe.filmstrip="filmstrip",function(oe){oe.readToTarget="readToTarget",oe.sleepToTarget="sleepToTarget",oe.readOnlyTarget="readOnlyTarget"}(le=W.FrameMode||(W.FrameMode={}))}(h||(h={})),function(W){let Pe;var ye;let le,oe,Le,Oe;(ye=Pe=W.DriverTypeEnum||(W.DriverTypeEnum={}))[ye.GameReadyDriver=0]="GameReadyDriver",ye[ye.CreatorReadyDriver=1]="CreatorReadyDriver",function(ye){ye[ye.MINIMUM_DRIVER_VERSION_NOT_MET=20]="MINIMUM_DRIVER_VERSION_NOT_MET"}(le=W.AidvcUnSupportedErrors||(W.AidvcUnSupportedErrors={})),function(ye){ye[ye.GAME_HDR_ENABLED=0]="GAME_HDR_ENABLED"}(oe=W.AidvcRealTimeErrors||(W.AidvcRealTimeErrors={})),function(ye){ye[ye.GPU_INCOMPATIBLE=0]="GPU_INCOMPATIBLE",ye[ye.CLIENT_VIRTUALIZATION_ENABLED=1]="CLIENT_VIRTUALIZATION_ENABLED",ye[ye.OS_INCOMPATIBLE=2]="OS_INCOMPATIBLE",ye[ye.MULTI_MON_DETECTED=3]="MULTI_MON_DETECTED",ye[ye.HDR_DISABLED=4]="HDR_DISABLED",ye[ye.SOC_FEATURE_ENABLED=5]="SOC_FEATURE_ENABLED",ye[ye.SLI_ENABLED=6]="SLI_ENABLED",ye[ye.SURROUND_ENABLED=7]="SURROUND_ENABLED",ye[ye.MSHYBRID_ENABLED=8]="MSHYBRID_ENABLED",ye[ye.MSHYBRID_ENABLED_DDS_IGPU=9]="MSHYBRID_ENABLED_DDS_IGPU",ye[ye.DISPLAY_INCOMPATIBLE=10]="DISPLAY_INCOMPATIBLE",ye[ye.NO_DISPLAY_CONNECTED=11]="NO_DISPLAY_CONNECTED",ye[ye.USE_ALTERNATE_DISPLAY=12]="USE_ALTERNATE_DISPLAY",ye[ye.MINIMUM_DRIVER_VERSION_NOT_MET=20]="MINIMUM_DRIVER_VERSION_NOT_MET",ye[ye.GAME_DENYLISTED=21]="GAME_DENYLISTED"}(Le=W.AihdrUnSupportedErrors||(W.AihdrUnSupportedErrors={})),function(ye){ye[ye.DRS_REGKEY_NOT_SET=0]="DRS_REGKEY_NOT_SET",ye[ye.UNSUPPORTED_PRESENTATION_MODE=1]="UNSUPPORTED_PRESENTATION_MODE",ye[ye.GAME_HDR_ENABLED=2]="GAME_HDR_ENABLED",ye[ye.OS_HDR_DISABLED=3]="OS_HDR_DISABLED",ye[ye.SOC_FEATURES_ENABLED=4]="SOC_FEATURES_ENABLED",ye[ye.MISTMATCHED_DISPLAY=5]="MISTMATCHED_DISPLAY",ye[ye.API_NOT_SUPPORTED=6]="API_NOT_SUPPORTED"}(Oe=W.AihdrRealTimeErrors||(W.AihdrRealTimeErrors={}))}(f||(f={})),function(W){let Pe;var le;(le=Pe=W.PowerStatus||(W.PowerStatus={}))[le.AC=0]="AC",le[le.DC=1]="DC",le[le.UPS_LIKE=2]="UPS_LIKE",le[le.Unknown=3]="Unknown"}(A||(A={})),function(W){let Pe;var qe;let le,oe,Le,Oe,ye,Ie,at,K,ve,De,pe,Qe,zt,Vt,de,J,$e,st,Gt,Zt,kn,Un,ni;(qe=Pe=W.Quality||(W.Quality={})).UltraGood="UltraGood",qe.VeryGood="VeryGood",qe.Good="Good",qe.Average="Average",qe.Custom="Custom",qe.GamecastYTLUltraGood="GamecastYTLUltraGood",qe.GamecastYTLVeryGood="GamecastYTLVeryGood",qe.GamecastYTLGood="GamecastYTLGood",qe.GamecastYTLAverage="GamecastYTLAverage",qe.GamecastUltraGood="GamecastUltraGood",qe.GamecastVeryGood="GamecastVeryGood",qe.GamecastGood="GamecastGood",qe.GamecastAverage="GamecastAverage",qe.GamecastFBLVeryGood="GamecastFBLVeryGood",qe.GamecastFBLGood="GamecastFBLGood",qe.GamecastFBLAverage="GamecastFBLAverage",function(qe){qe.In_game="In-game",qe.Resolution_4320p_8K="4320p 8K",qe.Resolution_2160p_4K="2160p 4K",qe.Resolution_1440p_HD="1440p HD",qe.Resolution_1080p_HD="1080p HD",qe.Resolution_720p_HD="720p HD",qe.Resolution_480p="480p",qe.Resolution_360p="360p",qe.Resolution_240p="240p",qe.Exact="Exact"}(le=W.Resolution||(W.Resolution={})),function(qe){qe.H264_HEVC="H264/HEVC",qe.AV1="AV1"}(oe=W.Codec||(W.Codec={})),function(qe){qe.instantReplay="instantReplay",qe.manualRecord="manualRecord",qe.highlights="highlights",qe.gear="gear"}(Le=W.SessionIds||(W.SessionIds={})),function(qe){qe.Always_Ask="Always Ask",qe.Twitch="Twitch",qe.YouTube_Live="YouTube Live",qe.Facebook_Live="Facebook Live",qe.Do_Not_Broadcast="Do Not Broadcast"}(Oe=W.Provider||(W.Provider={})),function(qe){qe.highlights="highlights",qe.highlightsRecordVideo="highlightsRecordVideo",qe.highlightsRecordScreenshot="highlightsRecordScreenshot"}(ye=W.SdkScopeType||(W.SdkScopeType={})),function(qe){qe.granted="granted",qe.mustAsk="mustAsk",qe.denied="denied"}(Ie=W.SdkPermissions||(W.SdkPermissions={})),function(qe){qe.screenshot="screenshot",qe.video="video"}(at=W.Type||(W.Type={})),function(qe){qe.OpenIGO="OpenIGO",qe.OpenFreestyle="OpenFreestyle",qe.OpenAnsel="OpenAnsel",qe.PTT="PTT",qe.FPS="FPS",qe.Screenshot="Screenshot",qe.DVRSave="DVRSave",qe.RecordToggle="RecordToggle",qe.BroadcastToggle="BroadcastToggle",qe.BroadcastPauseToggle="BroadcastPauseToggle",qe.CameraToggle="CameraToggle",qe.OverlayToggle="OverlayToggle",qe.CustomOverlayA="CustomOverlayA",qe.CustomOverlayB="CustomOverlayB",qe.CustomOverlayC="CustomOverlayC",qe.CommentsToggle="CommentsToggle",qe.MicToggle="MicToggle",qe.DVRToggle="DVRToggle",qe.FreestyleToggle="FreestyleToggle",qe.FreestylePresentCycle="FreestylePresentCycle",qe.FreeStyleToggleStyle1="FreeStyleToggleStyle1",qe.FreeStyleToggleStyle2="FreeStyleToggleStyle2",qe.FreeStyleToggleStyle3="FreeStyleToggleStyle3",qe.NativeKeyboardInputDialog="NativeKeyboardInputDialog",qe.ConnectGfnBroadcastToggle="ConnectGfnBroadcastToggle",qe.StatisticsToggle="StatisticsToggle",qe.QuitGame="QuitGame",qe.PMOCOverlay="PMOCOverlay",qe.PMOCOverlayVisibility="PMOCOverlayVisibility",qe.PMOCOverlayCycle="PMOCOverlayCycle",qe.PMOCResetAverageMetrics="PMOCResetAverageMetrics",qe.PMOCLoggingToggle="PMOCLoggingToggle",qe.InStreamPaste="InStreamPaste"}(K=W.HotkeyEnum||(W.HotkeyEnum={})),function(qe){qe.custom="custom",qe.customA="customA",qe.customB="customB",qe.customC="customC"}(ve=W.CustomOverlayTypeEnum||(W.CustomOverlayTypeEnum={})),function(qe){qe.record="record",qe.gamecast="gamecast",qe.fps="fps",qe.viewer="viewer",qe.rig="rig",qe.webcam="webcam",qe.comments="comments"}(De=W.IndicatorEnum||(W.IndicatorEnum={})),function(qe){qe.small="small",qe.medium="medium",qe.large="large"}(pe=W.OverlaySizeEnum||(W.OverlaySizeEnum={})),function(qe){qe.leftTop="leftTop",qe.leftCenter="leftCenter",qe.leftBottom="leftBottom",qe.rightTop="rightTop",qe.rightCenter="rightCenter",qe.rightBottom="rightBottom",qe.centerTop="centerTop",qe.centerCenter="centerCenter",qe.centerBottom="centerBottom",qe.floatingRandom="floatingRandom",qe.floatingBorder="floatingBorder",qe.none="none"}(Qe=W.OverlayPositionEnum||(W.OverlayPositionEnum={})),function(qe){qe.on="on",qe.off="off",qe.alwayson="alwayson",qe.ptt="ptt"}(zt=W.MicModeEnum||(W.MicModeEnum={})),function(qe){qe.manual="manual",qe.dvr="dvr",qe.gameCast="gameCast",qe.highlight="highlight",qe.gearRecord="gearRecord",qe.gearHighlight="gearHighlight",qe.lastMode="lastMode",qe.screenshot="screenshot"}(Vt=W.CaptureModeEnum||(W.CaptureModeEnum={})),function(qe){qe.unknown="unknown",qe.started="started",qe.stopped="stopped",qe.paused="paused",qe.resumed="resumed"}(de=W.CloudSessionStateType||(W.CloudSessionStateType={})),function(qe){qe[qe.GXP_Success_Ok=0]="GXP_Success_Ok",qe[qe.GXP_Success_NoError=1]="GXP_Success_NoError",qe[qe.GXP_Error_NotImplemented=-2147467263]="GXP_Error_NotImplemented",qe[qe.GXP_Error_NoInterface=-2147467262]="GXP_Error_NoInterface",qe[qe.GXP_Error_InvalidPointer=-2147467261]="GXP_Error_InvalidPointer",qe[qe.GXP_Error_Abort=-2147467260]="GXP_Error_Abort",qe[qe.GXP_Error_Fail=-2147467259]="GXP_Error_Fail",qe[qe.GXP_Error_Unexpected=-2147468113]="GXP_Error_Unexpected",qe[qe.GXP_Error_FileNotFound=-2147024894]="GXP_Error_FileNotFound",qe[qe.GXP_Error_PathNotFound=-2147024893]="GXP_Error_PathNotFound",qe[qe.GXP_Error_InvalidHandle=-2147024890]="GXP_Error_InvalidHandle",qe[qe.GXP_Error_InvalidData=-2147024883]="GXP_Error_InvalidData",qe[qe.GXP_Error_OutOfMemory=-2147024882]="GXP_Error_OutOfMemory",qe[qe.GXP_Error_InvalidArg=-2147024809]="GXP_Error_InvalidArg",qe[qe.GXP_Error_TimeOut=-2147023436]="GXP_Error_TimeOut",qe[qe.GXP_Error_FileTooLarge=-2147024673]="GXP_Error_FileTooLarge",qe[qe.GXP_Error_MaxStartAttempts=-2146959359]="GXP_Error_MaxStartAttempts",qe[qe.ShadowPlay_OSC_ERR_GENERIC=-1]="ShadowPlay_OSC_ERR_GENERIC",qe[qe.ShadowPlay_OSC_ERR_INVALID_VER=-2]="ShadowPlay_OSC_ERR_INVALID_VER",qe[qe.ShadowPlay_OSC_ERR_CLIENT_UNINITIALIZED=-3]="ShadowPlay_OSC_ERR_CLIENT_UNINITIALIZED",qe[qe.ShadowPlay_OSC_ERR_SERVER_NOT_CONNECTED=-4]="ShadowPlay_OSC_ERR_SERVER_NOT_CONNECTED",qe[qe.ShadowPlay_OSC_ERR_SERVER_TIME_OUT=-5]="ShadowPlay_OSC_ERR_SERVER_TIME_OUT",qe[qe.ShadowPlay_OSC_ERR_SERVER_CANNOT_CONNECT=-6]="ShadowPlay_OSC_ERR_SERVER_CANNOT_CONNECT",qe[qe.ShadowPlay_OSC_ERR_STREAM_NOT_FOUND=-7]="ShadowPlay_OSC_ERR_STREAM_NOT_FOUND",qe[qe.ShadowPlay_OSC_ERR_INVALID_FORMAT=-8]="ShadowPlay_OSC_ERR_INVALID_FORMAT",qe[qe.ShadowPlay_OSC_ERR_INVALID_PARAMETERS=-9]="ShadowPlay_OSC_ERR_INVALID_PARAMETERS",qe[qe.ShadowPlay_OSC_ERR_DX=-10]="ShadowPlay_OSC_ERR_DX",qe[qe.ShadowPlay_OSC_ERR_MMF=-11]="ShadowPlay_OSC_ERR_MMF",qe[qe.ShadowPlay_OSC_ERR_INSUFFICIENT_BUFFER=-12]="ShadowPlay_OSC_ERR_INSUFFICIENT_BUFFER",qe[qe.ShadowPlay_OSC_ERR_NO_IMPLEMENTATION=-13]="ShadowPlay_OSC_ERR_NO_IMPLEMENTATION",qe[qe.ShadowPlay_OSC_ERR_STREAM_LOCKED=-14]="ShadowPlay_OSC_ERR_STREAM_LOCKED",qe[qe.ShadowPlay_OSC_ERR_ALREADY_REGISTERED=-15]="ShadowPlay_OSC_ERR_ALREADY_REGISTERED",qe[qe.ShadowPlay_OSC_ERR_ALREADY_CREATED=-16]="ShadowPlay_OSC_ERR_ALREADY_CREATED",qe[qe.ShadowPlay_OSC_ERR_PROTOBUF=-17]="ShadowPlay_OSC_ERR_PROTOBUF",qe[qe.ShadowPlay_OSC_ERR_NOTAVAILABLE=-18]="ShadowPlay_OSC_ERR_NOTAVAILABLE",qe[qe.ShadowPlay_OSC_ERR_OUT_OF_MEMORY=-19]="ShadowPlay_OSC_ERR_OUT_OF_MEMORY",qe[qe.ShadowPlay_OSC_ERR_ABANDONED=-20]="ShadowPlay_OSC_ERR_ABANDONED",qe[qe.ShadowPlay_OSC_ERR_INVALID_CALL=-21]="ShadowPlay_OSC_ERR_INVALID_CALL",qe[qe.ShadowPlay_OSC_ERR_NO_VALID_GAME_RUNNING=-22]="ShadowPlay_OSC_ERR_NO_VALID_GAME_RUNNING",qe[qe.ShadowPlay_E_SERVER_NOT_RUNNING=-2147220959]="ShadowPlay_E_SERVER_NOT_RUNNING",qe[qe.ShadowPlay_E_UNKNOWN_PROP_NAME=-2147220958]="ShadowPlay_E_UNKNOWN_PROP_NAME",qe[qe.ShadowPlay_E_INVALID_PROP_FORMAT=-2147220957]="ShadowPlay_E_INVALID_PROP_FORMAT",qe[qe.ShadowPlay_E_INVALID_PROP_VALUE=-2147220956]="ShadowPlay_E_INVALID_PROP_VALUE",qe[qe.ShadowPlay_E_UNKNOWN_CMD_NAME=-2147220955]="ShadowPlay_E_UNKNOWN_CMD_NAME",qe[qe.ShadowPlay_E_INVALID_CMD_FORMAT=-2147220954]="ShadowPlay_E_INVALID_CMD_FORMAT",qe[qe.ShadowPlay_E_INVALID_CMD_VERSION=-2147220953]="ShadowPlay_E_INVALID_CMD_VERSION",qe[qe.ShadowPlay_E_NOT_READY=-2147220952]="ShadowPlay_E_NOT_READY",qe[qe.ShadowPlay_E_SERVER_IN_EXCLUSIVE_MODE=-2147220951]="ShadowPlay_E_SERVER_IN_EXCLUSIVE_MODE",qe[qe.ShadowPlay_E_SERVER_IN_GAMECAST_MODE=-2147220950]="ShadowPlay_E_SERVER_IN_GAMECAST_MODE",qe[qe.ShadowPlay_E_CANNOT_CLAIM_H264_LICENSE=-2147220949]="ShadowPlay_E_CANNOT_CLAIM_H264_LICENSE",qe[qe.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_OS=-2147220948]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_OS",qe[qe.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_RAM=-2147220947]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_RAM",qe[qe.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_GPU=-2147220946]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_GPU",qe[qe.ShadowPlay_E_FAIL_ENABLE_SHADOWPLAY=-2147220945]="ShadowPlay_E_FAIL_ENABLE_SHADOWPLAY",qe[qe.ShadowPlayE_FAIL_ENABLE_NVFBC=-2147220944]="ShadowPlayE_FAIL_ENABLE_NVFBC",qe[qe.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_DRIVER=-2147220943]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_DRIVER",qe[qe.ShadowPlay_E_FAIL_ENABLE_NVFBC_TIMEOUT=-2147220942]="ShadowPlay_E_FAIL_ENABLE_NVFBC_TIMEOUT",qe[qe.ShadowPlay_E_FAIL_ENABLE_OSC=-2147220941]="ShadowPlay_E_FAIL_ENABLE_OSC",qe[qe.ShadowPlay_E_FAIL_ENABLE_HELPER=-2147220940]="ShadowPlay_E_FAIL_ENABLE_HELPER",qe[qe.ShadowPlay_E_FAIL_NO_GALLERY_SPACE=-2147220926]="ShadowPlay_E_FAIL_NO_GALLERY_SPACE",qe[qe.ShadowPlay_E_FAIL_NO_DISC_SPACE=-2147220938]="ShadowPlay_E_FAIL_NO_DISC_SPACE",qe[qe.ShadowPlay_E_FAIL_CAPTURE_DISABLED=-2147220937]="ShadowPlay_E_FAIL_CAPTURE_DISABLED",qe[qe.ShadowPlay_E_BOUNDS=-2147483637]="ShadowPlay_E_BOUNDS",qe[qe.ShadowPlay_E_NOT_VALID_STATE=-2147019873]="ShadowPlay_E_NOT_VALID_STATE",qe[qe.ShadowPlay_E_UNEXPECTED=-2147418113]="ShadowPlay_E_UNEXPECTED",qe[qe.GXP_Error_HotkeyInUse=-2146897916]="GXP_Error_HotkeyInUse"}(J=W.InternalErrorCodeEnum||(W.InternalErrorCodeEnum={})),function(qe){qe.mic="mic",qe.webcam="webcam"}($e=W.DeviceTypeEnum||(W.DeviceTypeEnum={})),function(qe){qe.plugged_in="plugged_in",qe.plugged_out="plugged_out",qe.enabled="enabled",qe.disabled="disabled"}(st=W.DeviceStateTypeEnum||(W.DeviceStateTypeEnum={})),function(qe){qe.available="available",qe.started="started",qe.auto_pause="auto_pause",qe.user_pause="user_pause",qe.user_pause_auto_pause="user_pause_auto_pause",qe.last="last",qe.error="error",qe.saved="saved",qe.restarted_notifier="restarted_notifier",qe.resumed_notifier="resumed_notifier",qe.notifier_none="notifier_none",qe.invalid="invalid",qe.enabled="enabled",qe.disabled="disabled"}(Gt=W.RecordingState||(W.RecordingState={})),function(qe){qe.capture="capture",qe.in_focus="in-focus",qe.last_proc="last-proc"}(Zt=W.AppType||(W.AppType={})),function(qe){qe.off="off",qe.game="game",qe.mic="mic",qe.both="both"}(kn=W.Mode||(W.Mode={})),function(qe){qe.main="main",qe.permission="permission",qe.highlightsSummary="highlightsSummary"}(Un=W.State||(W.State={})),function(qe){qe.none="none",qe.single="single",qe.multiple="multiple"}(ni=W.SupportType||(W.SupportType={}))}(M||(M={}));var E,T=function(W){return W.Forager=v,W.Gear=h,W.Graphicssetting=f,W.Nvperfmon=A,W.Shareserver=M,W}(T||{});!function(W){let Pe;var le;(le=Pe=W.RollbackOptionsEnum||(W.RollbackOptionsEnum={}))[le.Unknown=0]="Unknown",le[le.NoUI=1]="NoUI",le[le.RollbackUI=2]="RollbackUI"}(E||(E={}));var S,l,s,u,m,I,R,O,Y,y=function(W){return W.Driverrollback=E,W}(y||{});!function(W){let Pe;var Oe;let le,oe,Le;(Oe=Pe=W.ActionStatusEnum||(W.ActionStatusEnum={}))[Oe.ActionStarted=0]="ActionStarted",Oe[Oe.ActionRunning=1]="ActionRunning",Oe[Oe.ActionSuccess=2]="ActionSuccess",Oe[Oe.ActionFailure=3]="ActionFailure",Oe[Oe.ActionUnknown=4]="ActionUnknown",function(Oe){Oe[Oe.Success=0]="Success",Oe[Oe.Failure=1]="Failure",Oe[Oe.Unknown=2]="Unknown"}(le=W.ExeLaunchStatusEnum||(W.ExeLaunchStatusEnum={})),function(Oe){Oe[Oe.NotInstalled=0]="NotInstalled",Oe[Oe.Installed=1]="Installed",Oe[Oe.Installing=2]="Installing",Oe[Oe.Uninstalling=3]="Uninstalling"}(oe=W.Status||(W.Status={})),function(Oe){Oe[Oe.Install=0]="Install",Oe[Oe.Uninstall=1]="Uninstall"}(Le=W.Action||(W.Action={}))}(S||(S={})),function(W){let Pe;var Oe;let le,oe,Le;(Oe=Pe=W.ErrorCodeEnum||(W.ErrorCodeEnum={}))[Oe.NoError=0]="NoError",Oe[Oe.UserCancelled=-522190847]="UserCancelled",Oe[Oe.GeneralError=-505409537]="GeneralError",Oe[Oe.InvalidObject=-505413631]="InvalidObject",Oe[Oe.InsufficientArguments=-505413630]="InsufficientArguments",Oe[Oe.InvalidParameters=-505413629]="InvalidParameters",Oe[Oe.PropertyMissing=-505413628]="PropertyMissing",Oe[Oe.InvalidFormat=-505413627]="InvalidFormat",Oe[Oe.EmptyValue=-505413626]="EmptyValue",Oe[Oe.FileNotFound=-505413622]="FileNotFound",Oe[Oe.PathNotFound=-505413621]="PathNotFound",Oe[Oe.ProcessingPreviousCall=505413620]="ProcessingPreviousCall",Oe[Oe.InstallerAlreadyRunning=-505413619]="InstallerAlreadyRunning",Oe[Oe.MessagingChannel=-505413618]="MessagingChannel",Oe[Oe.ExtractedNotFound=-505413610]="ExtractedNotFound",Oe[Oe.InstallerExeNotFound=-505413608]="InstallerExeNotFound",Oe[Oe.GfeExperienceKeyNotFound=-505413607]="GfeExperienceKeyNotFound",Oe[Oe.GfeExperiencePathEmpty=-505413606]="GfeExperiencePathEmpty",Oe[Oe.SignatureInvalid=-505413605]="SignatureInvalid",Oe[Oe.UacCancelled=-505413600]="UacCancelled",Oe[Oe.MsgArrivedEventCreate=-505413599]="MsgArrivedEventCreate",Oe[Oe.MsgArrivedEventSignal=-505413598]="MsgArrivedEventSignal",Oe[Oe.ResumePathNotFound=-505413597]="ResumePathNotFound",Oe[Oe.ResumePathEmpty=-505413596]="ResumePathEmpty",Oe[Oe.ResumePathInvalid=-505413595]="ResumePathInvalid",Oe[Oe.MsgChannelInit=-505413584]="MsgChannelInit",Oe[Oe.MsgShowFormSet=-505413583]="MsgShowFormSet",Oe[Oe.MsgProgressUpdateSet=-505413582]="MsgProgressUpdateSet",Oe[Oe.MsgListen=-505413581]="MsgListen",function(Oe){Oe[Oe.NotSet=0]="NotSet",Oe[Oe.ShowForm=1]="ShowForm",Oe[Oe.ProgressUpdate=2]="ProgressUpdate"}(le=W.MethodEnum||(W.MethodEnum={})),function(Oe){Oe[Oe.NotSet=0]="NotSet",Oe[Oe.InstallInitial=1]="InstallInitial",Oe[Oe.InstallChecking=2]="InstallChecking",Oe[Oe.InstallCheckWarnings=3]="InstallCheckWarnings",Oe[Oe.InstallCheckFailed=4]="InstallCheckFailed",Oe[Oe.InstallCheckWait=5]="InstallCheckWait",Oe[Oe.Eula=6]="Eula",Oe[Oe.InstallSelect=7]="InstallSelect",Oe[Oe.InstallSelectCustom=8]="InstallSelectCustom",Oe[Oe.InstallSelectInstallPath=9]="InstallSelectInstallPath",Oe[Oe.PreInstallCheck=10]="PreInstallCheck",Oe[Oe.PreInstallCheckRetry=11]="PreInstallCheckRetry",Oe[Oe.PreInstallCheckWait=12]="PreInstallCheckWait",Oe[Oe.PreRebootInstall=13]="PreRebootInstall",Oe[Oe.PackageDownloadProgress=14]="PackageDownloadProgress",Oe[Oe.ProcessDownloadedPackage=15]="ProcessDownloadedPackage",Oe[Oe.PackageDownloadFailed=16]="PackageDownloadFailed",Oe[Oe.InstallProgress=17]="InstallProgress",Oe[Oe.InstallRemoveProgress=18]="InstallRemoveProgress",Oe[Oe.InstallFinished=19]="InstallFinished",Oe[Oe.InstallFinishedNoSummary=20]="InstallFinishedNoSummary",Oe[Oe.InstallFinishedLaunch=21]="InstallFinishedLaunch",Oe[Oe.InstallFinishedNoSummaryLaunch=22]="InstallFinishedNoSummaryLaunch",Oe[Oe.InstallFinishedOptions=23]="InstallFinishedOptions",Oe[Oe.InstallFinishedNoSummaryOptions=24]="InstallFinishedNoSummaryOptions",Oe[Oe.InstallReboot=25]="InstallReboot",Oe[Oe.InstallRebootOptions=26]="InstallRebootOptions",Oe[Oe.InstallRebootNoSummary=27]="InstallRebootNoSummary",Oe[Oe.InstallRebootNoSummaryOptions=28]="InstallRebootNoSummaryOptions",Oe[Oe.InstallRemoveReboot=29]="InstallRemoveReboot",Oe[Oe.InstallFailed=30]="InstallFailed",Oe[Oe.WaitingOnUac=31]="WaitingOnUac"}(oe=W.FormEnum||(W.FormEnum={})),function(Oe){Oe[Oe.Next=0]="Next",Oe[Oe.Close=1]="Close"}(Le=W.NextActionEnum||(W.NextActionEnum={}))}(l||(l={})),function(W){let Pe;var Le;let le,oe;(Le=Pe=W.DriverTypeEnum||(W.DriverTypeEnum={}))[Le.GameReadyDriver=0]="GameReadyDriver",Le[Le.CreatorReadyDriver=1]="CreatorReadyDriver",function(Le){Le[Le.WsRecommendedDriver=2]="WsRecommendedDriver",Le[Le.WsLeadingEdgeDriver=3]="WsLeadingEdgeDriver",Le[Le.WsConservativeDriver=4]="WsConservativeDriver"}(le=W.UpdateStrategyEnum||(W.UpdateStrategyEnum={})),function(Le){Le.started="started",Le.finished="finished",Le.failed="failed",Le.cancelled="cancelled"}(oe=W.DriverUpdateCheckProgress||(W.DriverUpdateCheckProgress={}))}(s||(s={})),function(W){let Pe;var at;let le,oe,Le,Oe,ye,Ie;(at=Pe=W.ApplicationScanType||(W.ApplicationScanType={})).fast="fast",at.traditional="traditional",function(at){at.STRING="STRING",at.INT="INT",at.FLOAT="FLOAT",at.ENUM="ENUM",at.BOOL="BOOL",at.DRIVER_ENUM="DRIVER_ENUM"}(le=W.Type||(W.Type={})),function(at){at.AC="AC",at.DC="DC"}(oe=W.ApplicationPowerMode||(W.ApplicationPowerMode={})),function(at){at.DISABLED="DISABLED",at.UNOPTIMIZED="UNOPTIMIZED",at.CUSTOMIZED="CUSTOMIZED",at.OPTIMIZED="OPTIMIZED"}(Le=W.OptimizationState||(W.OptimizationState={})),function(at){at.started="started",at.finished="finished",at.failed="failed",at.progress="progress"}(Oe=W.Status||(W.Status={})),function(at){at[at.Invalid=-1]="Invalid",at[at.Notifications=0]="Notifications",at[at.Display=1]="Display"}(ye=W.PageId||(W.PageId={})),function(at){at[at.STARTED=1]="STARTED",at[at.FINISHED=2]="FINISHED"}(Ie=W.OotbStatus||(W.OotbStatus={}))}(u||(u={})),function(W){let Pe;var de;let le,oe,Le,Oe,ye,Ie,at,K,ve,De,pe,Qe,zt,Vt;(de=Pe=W.RamType||(W.RamType={}))[de.UNKNOWN=0]="UNKNOWN",de[de.SDRAM=1]="SDRAM",de[de.DDR1=2]="DDR1",de[de.DDR2=3]="DDR2",de[de.GDDR2=4]="GDDR2",de[de.GDDR3=5]="GDDR3",de[de.GDDR4=6]="GDDR4",de[de.DDR3=7]="DDR3",de[de.GDDR5=8]="GDDR5",de[de.GDDR5X=9]="GDDR5X",de[de.HBM1=10]="HBM1",de[de.HBM2=11]="HBM2",de[de.SDDR4=12]="SDDR4",de[de.GDDR6=14]="GDDR6",de[de.GDDR6X=15]="GDDR6X",function(de){de[de.UNKNOWN=0]="UNKNOWN",de[de.AGP=1]="AGP",de[de.PCI=2]="PCI",de[de.FPCI=3]="FPCI",de[de.PCI_EXPRESS=4]="PCI_EXPRESS",de[de.PCI_EXPRESS_GEN2=5]="PCI_EXPRESS_GEN2",de[de.PCI_EXPRESS_GEN3=6]="PCI_EXPRESS_GEN3",de[de.PCI_EXPRESS_GEN4=7]="PCI_EXPRESS_GEN4",de[de.AXI=8]="AXI"}(le=W.BusType||(W.BusType={})),function(de){de[de.No=0]="No",de[de.On=1]="On",de[de.Yes=2]="Yes"}(oe=W.MaxQType||(W.MaxQType={})),function(de){de[de.SuperResValue_Off=0]="SuperResValue_Off",de[de.SuperResValue_1=1]="SuperResValue_1",de[de.SuperResValue_2=2]="SuperResValue_2",de[de.SuperResValue_3=3]="SuperResValue_3",de[de.SuperResValue_4=4]="SuperResValue_4",de[de.SuperResValue_Auto=5]="SuperResValue_Auto"}(Le=W.SuperResolutionValue||(W.SuperResolutionValue={})),function(de){de[de.SuperResStatus_Off=0]="SuperResStatus_Off",de[de.SuperResStatus_1=1]="SuperResStatus_1",de[de.SuperResStatus_2=2]="SuperResStatus_2",de[de.SuperResStatus_3=3]="SuperResStatus_3",de[de.SuperResStatus_4=4]="SuperResStatus_4"}(Oe=W.SuperResolutionStatus||(W.SuperResolutionStatus={})),function(de){de[de.SUCCESS=0]="SUCCESS",de[de.NO_HDR_DISPLAY_CONNECTED=1]="NO_HDR_DISPLAY_CONNECTED",de[de.ENABLE_HDR_FROM_WINDOWS=2]="ENABLE_HDR_FROM_WINDOWS",de[de.SURROUND_ENABLED=3]="SURROUND_ENABLED"}(ye=W.HdrErrorCodeInfo||(W.HdrErrorCodeInfo={})),function(de){de[de.RGB=0]="RGB",de[de.YCBCR422=1]="YCBCR422",de[de.YCBCR444=2]="YCBCR444",de[de.YCBCR420=3]="YCBCR420",de[de.UNKNOWN=4]="UNKNOWN"}(Ie=W.OutPutColorFormat||(W.OutPutColorFormat={})),function(de){de[de.GsyncUltimate=0]="GsyncUltimate",de[de.GSyncCapable=1]="GSyncCapable",de[de.GSyncCompatible=2]="GSyncCompatible",de[de.VRR=3]="VRR",de[de.NotSupported=4]="NotSupported"}(at=W.GSyncCapabilities||(W.GSyncCapabilities={})),function(de){de[de.Off=0]="Off",de[de.FullscreenOnly=1]="FullscreenOnly",de[de.FullscreenAndWindowed=2]="FullscreenAndWindowed",de[de.NotAvailable=3]="NotAvailable"}(K=W.GlobalGsyncState||(W.GlobalGsyncState={})),function(de){de[de.None=0]="None",de[de.NonHD=1]="NonHD",de[de.SD576i=2]="SD576i",de[de.SD480i=3]="SD480i",de[de.ED480p=4]="ED480p",de[de.ED576p=5]="ED576p",de[de.HD720p=6]="HD720p",de[de.HD1080i=7]="HD1080i",de[de.HD1080p=8]="HD1080p",de[de.HD720p50=9]="HD720p50",de[de.HD1080p24=10]="HD1080p24",de[de.HD1080i50=11]="HD1080i50",de[de.HD1080p50=12]="HD1080p50",de[de.UHD4Kp30=13]="UHD4Kp30",de[de.UHD4Kp25=14]="UHD4Kp25",de[de.UHD4Kp24=15]="UHD4Kp24",de[de.UHD4Kp24Smpte=16]="UHD4Kp24Smpte",de[de.UHD4Kp303840=17]="UHD4Kp303840",de[de.UHD4Kp253840=18]="UHD4Kp253840",de[de.UHD4Kp243840=19]="UHD4Kp243840",de[de.UHD4Kp503840=20]="UHD4Kp503840",de[de.UHD4Kp603840=21]="UHD4Kp603840",de[de.UHD4Kp304096=22]="UHD4Kp304096",de[de.UHD4Kp254096=23]="UHD4Kp254096",de[de.UHD4Kp244096=24]="UHD4Kp244096",de[de.UHD4Kp504096=25]="UHD4Kp504096",de[de.UHD4Kp604096=26]="UHD4Kp604096",de[de.UHD8Kp247680=27]="UHD8Kp247680",de[de.UHD8Kp257680=28]="UHD8Kp257680",de[de.UHD8Kp307680=29]="UHD8Kp307680",de[de.UHD8Kp487680=30]="UHD8Kp487680",de[de.UHD8Kp507680=31]="UHD8Kp507680",de[de.UHD8Kp607680=32]="UHD8Kp607680",de[de.UHD8Kp1007680=33]="UHD8Kp1007680",de[de.UHD8Kp1207680=34]="UHD8Kp1207680",de[de.Invalid=35]="Invalid"}(ve=W.TvFormat||(W.TvFormat={})),function(de){de[de.CT_VGA=0]="CT_VGA",de[de.CT_DVI=1]="CT_DVI",de[de.CT_COMPOSITE=2]="CT_COMPOSITE",de[de.CT_SVIDEO=3]="CT_SVIDEO",de[de.CT_COMPONENT=4]="CT_COMPONENT",de[de.CT_HDMI=5]="CT_HDMI",de[de.CT_DISPLAYPORT=6]="CT_DISPLAYPORT",de[de.CT_USBC=7]="CT_USBC",de[de.CT_LVDS=8]="CT_LVDS",de[de.CT_AUTO=9]="CT_AUTO",de[de.CT_UNKNOWN=10]="CT_UNKNOWN"}(De=W.ConnectorType||(W.ConnectorType={})),function(de){de[de.bit_8=0]="bit_8",de[de.bit_10=1]="bit_10",de[de.bit_16=2]="bit_16",de[de.bit_16_HDR=3]="bit_16_HDR",de[de.bit_16_WCG=4]="bit_16_WCG",de[de.bit_Default=-1]="bit_Default"}(pe=W.DesktopColorDepth||(W.DesktopColorDepth={})),function(de){de[de.None=0]="None",de[de.Crt=1]="Crt",de[de.Internal=2]="Internal",de[de.Tv=3]="Tv",de[de.Dvi=4]="Dvi"}(Qe=W.DeviceType||(W.DeviceType={})),function(de){de[de.Rotation0=0]="Rotation0",de[de.Rotation90=1]="Rotation90",de[de.Rotation180=2]="Rotation180",de[de.Rotation270=3]="Rotation270"}(zt=W.RotationType||(W.RotationType={})),function(de){de[de.None=0]="None",de[de.CloneDisplay=1]="CloneDisplay",de[de.SurroundDisplay=2]="SurroundDisplay",de[de.MosaicDisplay=3]="MosaicDisplay"}(Vt=W.LogicalDisplayType||(W.LogicalDisplayType={}))}(m||(m={})),function(W){let Pe;var it;let le,oe,Le,Oe,ye,Ie,at,K,ve,De,pe,Qe,zt,Vt,de,J,$e,st,Gt,Zt,kn,Un,ni,qe,mi,Bi,_i,Bn,jn,It,vn,Vn,ht;(it=Pe=W.ProfileSettingType||(W.ProfileSettingType={}))[it.type_invalid=-1]="type_invalid",it[it.type_integer=0]="type_integer",it[it.type_string=1]="type_string",it[it.type_boolean=2]="type_boolean",it[it.type_json_string=3]="type_json_string",function(it){it[it.UNKNOWN=0]="UNKNOWN",it[it.SUPPORTED=1]="SUPPORTED",it[it.UNSUPPORTED=2]="UNSUPPORTED"}(le=W.HwSupportType||(W.HwSupportType={})),function(it){it[it.NVCPLAPI_VALUE_TRILINEAR_OPT_ON=0]="NVCPLAPI_VALUE_TRILINEAR_OPT_ON",it[it.NVCPLAPI_VALUE_TRILINEAR_OPT_OFF=1]="NVCPLAPI_VALUE_TRILINEAR_OPT_OFF"}(oe=W.TextureFilteringTrilinearValue||(W.TextureFilteringTrilinearValue={})),function(it){it[it.NVCPLAPI_VALUE_VERTICAL_SYNC_APPCONTROLLED=0]="NVCPLAPI_VALUE_VERTICAL_SYNC_APPCONTROLLED",it[it.NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEOFF=1]="NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEOFF",it[it.NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON=2]="NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON",it[it.NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON_INTERVAL2=3]="NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON_INTERVAL2",it[it.NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO=4]="NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO",it[it.NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO_INTERVAL2=5]="NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO_INTERVAL2",it[it.NVCPLAPI_VALUE_VERTICAL_SYNC_SMOOTH=6]="NVCPLAPI_VALUE_VERTICAL_SYNC_SMOOTH",it[it.NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_ENABLE=8]="NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_ENABLE",it[it.NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_NONE=9]="NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_NONE",it[it.NVCPLAPI_VALUE_VERTICAL_SYNC_VIRTUAL=10]="NVCPLAPI_VALUE_VERTICAL_SYNC_VIRTUAL"}(Le=W.VerticalSyncValue||(W.VerticalSyncValue={})),function(it){it[it.NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_AUTO=0]="NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_AUTO",it[it.NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_ON=1]="NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_ON",it[it.NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_OFF=2]="NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_OFF"}(Oe=W.ThreadedOptimizationValue||(W.ThreadedOptimizationValue={})),function(it){it[it.NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_OFF=0]="NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_OFF",it[it.NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_ON=1]="NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_ON"}(ye=W.EnableOverlayValue||(W.EnableOverlayValue={})),function(it){it[it.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_NONE=0]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_NONE",it[it.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI=1]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI",it[it.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_RGBA=2]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_RGBA",it[it.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI_AND_RGBA=3]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI_AND_RGBA"}(Ie=W.ExportedpixeltypesValue||(W.ExportedpixeltypesValue={})),function(it){it[it.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DISABLED=0]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DISABLED",it[it.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_128=1]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_128",it[it.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_256=2]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_256",it[it.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_512=3]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_512",it[it.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_1GB=4]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_1GB",it[it.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_5GB=5]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_5GB",it[it.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_10GB=6]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_10GB",it[it.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_100GB=7]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_100GB",it[it.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_Unlimited=8]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_Unlimited",it[it.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DEFAULT=9]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DEFAULT"}(at=W.ShaderCacheValue||(W.ShaderCacheValue={})),function(it){it[it.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_NONE=0]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_NONE",it[it.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_ONE=1]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_ONE",it[it.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_TWO=2]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_TWO",it[it.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_THREE=3]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_THREE",it[it.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_FOUR=4]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_FOUR"}(K=W.VirtualRealityPreRenderedFramesValue||(W.VirtualRealityPreRenderedFramesValue={})),function(it){it[it.NVCPLAPI_VALUE_PREFERRED_REFRATE_APP_CONTROL=0]="NVCPLAPI_VALUE_PREFERRED_REFRATE_APP_CONTROL",it[it.NVCPLAPI_VALUE_PREFERRED_REFRATE_OVERRIDE=1]="NVCPLAPI_VALUE_PREFERRED_REFRATE_OVERRIDE"}(ve=W.PreferredRefreshRateValue||(W.PreferredRefreshRateValue={})),function(it){it[it.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_ADAPTIVE=0]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_ADAPTIVE",it[it.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_MAX=1]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_MAX",it[it.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_DRIVER_CONTROLLED=2]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_DRIVER_CONTROLLED",it[it.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_PREFER_CONSISTENT_PERFORMANCE=3]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_PREFER_CONSISTENT_PERFORMANCE",it[it.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_OPTIMAL_POWER=5]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_OPTIMAL_POWER"}(De=W.PowerManagementModeValue||(W.PowerManagementModeValue={})),function(it){it[it.NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_DISABLED=0]="NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_DISABLED",it[it.NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_ENABLED=1]="NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_ENABLED"}(pe=W.ImageSharpeningToggleValue||(W.ImageSharpeningToggleValue={})),function(it){it[it.NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED=0]="NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED",it[it.NVCPLAPI_VALUE_SHARPENING_ALLOW_ENABLED=1]="NVCPLAPI_VALUE_SHARPENING_ALLOW_ENABLED"}(Qe=W.ImageSharpeningAllowValue||(W.ImageSharpeningAllowValue={})),function(it){it[it.NVCPLAPI_VALUE_WHISPER_MODE_FPS_OFF=0]="NVCPLAPI_VALUE_WHISPER_MODE_FPS_OFF",it[it.NVCPLAPI_VALUE_WHISPER_MODE_FPS_ON=1]="NVCPLAPI_VALUE_WHISPER_MODE_FPS_ON"}(zt=W.WhisperModeProgramValue||(W.WhisperModeProgramValue={})),function(it){it[it.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_LOW=0]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_LOW",it[it.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_MEDIUM=1]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_MEDIUM",it[it.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_HIGH=2]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_HIGH",it[it.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_ULTRA=3]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_ULTRA",it[it.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_OFF=4]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_OFF"}(Vt=W.SilkSmoothnessValue||(W.SilkSmoothnessValue={})),function(it){it[it.NVCPLAPI_VALUE_LATENCY_MODE_BEST_PERFORMANCE=0]="NVCPLAPI_VALUE_LATENCY_MODE_BEST_PERFORMANCE",it[it.NVCPLAPI_VALUE_LATENCY_MODE_LOW_LATENCY=1]="NVCPLAPI_VALUE_LATENCY_MODE_LOW_LATENCY",it[it.NVCPLAPI_VALUE_LATENCY_MODE_LOWEST_LATENCY=2]="NVCPLAPI_VALUE_LATENCY_MODE_LOWEST_LATENCY"}(de=W.LowLatencyModeValue||(W.LowLatencyModeValue={})),function(it){it[it.NVCPLAPI_VALUE_VR_AUTOVRS_OFF=0]="NVCPLAPI_VALUE_VR_AUTOVRS_OFF",it[it.NVCPLAPI_VALUE_VR_AUTOVRS_FORCED=1]="NVCPLAPI_VALUE_VR_AUTOVRS_FORCED",it[it.NVCPLAPI_VALUE_VR_AUTOVRS_ADAPTIVE=2]="NVCPLAPI_VALUE_VR_AUTOVRS_ADAPTIVE"}(J=W.VirtualRealityVrssValue||(W.VirtualRealityVrssValue={})),function(it){it[it.NVCPLAPI_VALUE_AUTOFL_DB_OFF=0]="NVCPLAPI_VALUE_AUTOFL_DB_OFF",it[it.NVCPLAPI_VALUE_AUTOFL_DB_ON=1]="NVCPLAPI_VALUE_AUTOFL_DB_ON"}($e=W.MaxqDynamicBoostValue||(W.MaxqDynamicBoostValue={})),function(it){it[it.NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_OFF=0]="NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_OFF",it[it.NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_ON=1]="NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_ON"}(st=W.AutoDisplaySwitchingValue||(W.AutoDisplaySwitchingValue={})),function(it){it[it.NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_DISABLED=0]="NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_DISABLED",it[it.NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_ENABLED=1]="NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_ENABLED"}(Gt=W.WhisperModeGlobalValue||(W.WhisperModeGlobalValue={})),function(it){it[it.NVCPLAPI_VALUE_MT_GSYNC_ON=0]="NVCPLAPI_VALUE_MT_GSYNC_ON",it[it.NVCPLAPI_VALUE_MT_GSYNC_FORCE_OFF=1]="NVCPLAPI_VALUE_MT_GSYNC_FORCE_OFF",it[it.NVCPLAPI_VALUE_MT_VRR_OFF=2]="NVCPLAPI_VALUE_MT_VRR_OFF",it[it.NVCPLAPI_VALUE_MT_ULMB_ON=3]="NVCPLAPI_VALUE_MT_ULMB_ON",it[it.NVCPLAPI_VALUE_MT_FIXED_REFRESH=4]="NVCPLAPI_VALUE_MT_FIXED_REFRESH"}(Zt=W.MonitorTechnologyValue||(W.MonitorTechnologyValue={})),function(it){it[it.NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_OFF=0]="NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_OFF",it[it.NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_SELF_REFRESH_MODE=1]="NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_SELF_REFRESH_MODE"}(kn=W.PowerManagementPanelValue||(W.PowerManagementPanelValue={})),function(it){it[it.NVCPLAPI_VALUE_ENABLE_STEREO_OFF=0]="NVCPLAPI_VALUE_ENABLE_STEREO_OFF",it[it.NVCPLAPI_VALUE_ENABLE_STEREO_ON=1]="NVCPLAPI_VALUE_ENABLE_STEREO_ON"}(Un=W.StereoEnableValue||(W.StereoEnableValue={})),function(it){it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN=1]="NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN_NV_IR=2]="NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN_NV_IR",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DP_INBAND=3]="NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DP_INBAND",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC=4]="NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC_NV_IR=5]="NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC_NV_IR",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_DDC_GLASSES=6]="NVAPPAPI_VALUE_STEREO_DISPLAY_DDC_GLASSES",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE=7]="NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE_DLP=8]="NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE_DLP",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_BLUELINE=9]="NVAPPAPI_VALUE_STEREO_DISPLAY_BLUELINE",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_VERTICAL_INTERLACE=10]="NVAPPAPI_VALUE_STEREO_DISPLAY_VERTICAL_INTERLACE",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_COLOR_INTERLEAVE=11]="NVAPPAPI_VALUE_STEREO_DISPLAY_COLOR_INTERLEAVE",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_HORIZONTAL_INTERLACE=12]="NVAPPAPI_VALUE_STEREO_DISPLAY_HORIZONTAL_INTERLACE",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_SUBFIELD=13]="NVAPPAPI_VALUE_STEREO_DISPLAY_SUBFIELD",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_SIDEFIELD=14]="NVAPPAPI_VALUE_STEREO_DISPLAY_SIDEFIELD",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_SEEFRONT=15]="NVAPPAPI_VALUE_STEREO_DISPLAY_SEEFRONT",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP=16]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_NV_IR=17]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_NV_IR",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV=18]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV_NV_IR=19]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV_NV_IR",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_SL_SV=20]="NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_SL_SV",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_MV=21]="NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_MV",it[it.NVAPPAPI_VALUE_STEREO_DISPLAY_PLANAR_MIRROR=22]="NVAPPAPI_VALUE_STEREO_DISPLAY_PLANAR_MIRROR",it[it.NVAPPAPI_VALUE_NVIDIA_RECOMMENDED=23]="NVAPPAPI_VALUE_NVIDIA_RECOMMENDED"}(ni=W.StereoDisplayModeValue||(W.StereoDisplayModeValue={})),function(it){it[it.NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_OFF=0]="NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_OFF",it[it.NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_ON=1]="NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_ON"}(qe=W.StereoSwapEyeValue||(W.StereoSwapEyeValue={})),function(it){it[it.NVCPLAPI_VALUE_STEREO_SWAP_APPLICATION_CONTROL=0]="NVCPLAPI_VALUE_STEREO_SWAP_APPLICATION_CONTROL",it[it.NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE=1]="NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE",it[it.NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE_PAIR=2]="NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE_PAIR"}(mi=W.StereoSwapModeValue||(W.StereoSwapModeValue={})),function(it){it[it.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_OFF=0]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_OFF",it[it.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ON=1]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ON",it[it.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ENHANCE=2]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ENHANCE",it[it.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_FORCE_OFF=3]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_FORCE_OFF"}(Bi=W.AntialiasingModeValue||(W.AntialiasingModeValue={})),function(it){it[it.NVCPLAPI_VALUE_SLI_MGPU_AUTORENDER=0]="NVCPLAPI_VALUE_SLI_MGPU_AUTORENDER",it[it.NVCPLAPI_VALUE_SLI_MGPU_FORCE_SINGLE=4]="NVCPLAPI_VALUE_SLI_MGPU_FORCE_SINGLE",it[it.NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR=3]="NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR",it[it.NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR2=61443]="NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR2"}(_i=W.SliMultiGpuRenderingModeValue||(W.SliMultiGpuRenderingModeValue={})),function(it){it[it.NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_DISABLE=0]="NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_DISABLE",it[it.NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_ENABLE=1]="NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_ENABLE"}(Bn=W.DeepColorFor3DApplicationsValue||(W.DeepColorFor3DApplicationsValue={})),function(it){it[it.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_NONE=0]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_NONE",it[it.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_APP_CONTROLLED=1048576]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_APP_CONTROLLED",it[it.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_2X_DIAGONAL=14]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_2X_DIAGONAL",it[it.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_4X=16]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_4X",it[it.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_8SX=24]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_8SX",it[it.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_8X=25]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_8X",it[it.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_16X=26]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_16X",it[it.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_32X=41]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_32X",it[it.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_64X=42]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_64X",it[it.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_128X=43]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_128X"}(jn=W.AntialiasingSettingValue||(W.AntialiasingSettingValue={})),function(it){it[it.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_OFF=0]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_OFF",it[it.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_MULTI_SAMPLING=3]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_MULTI_SAMPLING",it[it.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_SUPER_SAMPLING=5]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_SUPER_SAMPLING",it[it.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_1X=1]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_1X",it[it.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_2X=2]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_2X",it[it.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_4X=4]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_4X",it[it.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_8X=8]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_8X"}(It=W.AntialiasingTransparencyValue||(W.AntialiasingTransparencyValue={})),function(it){it[it.V1=1]="V1",it[it.V2=2]="V2"}(vn=W.BatteryBoostVersionEnum||(W.BatteryBoostVersionEnum={})),function(it){it[it.V1=1]="V1",it[it.V2=2]="V2"}(Vn=W.WhisperModeVersionEnum||(W.WhisperModeVersionEnum={})),function(it){it[it.QUIETER=1]="QUIETER",it[it.QUIET=2]="QUIET",it[it.BALANCED=3]="BALANCED"}(ht=W.FanVolume||(W.FanVolume={}))}(I||(I={})),function(W){let Pe;var oe;let le;(oe=Pe=W.HotkeyEnum||(W.HotkeyEnum={})).OpenIGO="OpenIGO",oe.OpenPerformanceOverlay="OpenPerformanceOverlay",function(oe){oe.unknown="unknown",oe.enabled="enabled",oe.disabled="disabled"}(le=W.ShadowPlayStatus||(W.ShadowPlayStatus={}))}(R||(R={})),function(W){let Pe;var Oe;let le,oe,Le;(Oe=Pe=W.Type||(W.Type={}))[Oe.Unknown=0]="Unknown",Oe[Oe.GpuClock=1]="GpuClock",Oe[Oe.MemoryClock=2]="MemoryClock",Oe[Oe.Voltage=3]="Voltage",Oe[Oe.Power=4]="Power",Oe[Oe.Temperature=5]="Temperature",Oe[Oe.Fan=6]="Fan",function(Oe){Oe[Oe.None=0]="None",Oe[Oe.ManualOc=1]="ManualOc",Oe[Oe.AutomaticOc=2]="AutomaticOc"}(le=W.PersitenceType||(W.PersitenceType={})),function(Oe){Oe[Oe.Default=0]="Default",Oe[Oe.Custom=1]="Custom",Oe[Oe.Silent=2]="Silent",Oe[Oe.MaxPerf=3]="MaxPerf"}(oe=W.ProfileType||(W.ProfileType={})),function(Oe){Oe[Oe.AC=0]="AC",Oe[Oe.DC=1]="DC",Oe[Oe.UPS_LIKE=2]="UPS_LIKE",Oe[Oe.Unknown=3]="Unknown"}(Le=W.PowerStatus||(W.PowerStatus={}))}(O||(O={})),function(W){let Pe;var oe;let le;(oe=Pe=W.Type||(W.Type={}))[oe.Unknown=0]="Unknown",oe[oe.GpuClock=1]="GpuClock",oe[oe.MemoryClock=2]="MemoryClock",oe[oe.Voltage=3]="Voltage",oe[oe.Power=4]="Power",oe[oe.Temperature=5]="Temperature",oe[oe.Fan=6]="Fan",function(oe){oe[oe.Default=0]="Default",oe[oe.Custom=1]="Custom",oe[oe.Silent=2]="Silent",oe[oe.MaxPerf=3]="MaxPerf"}(le=W.Profile||(W.Profile={}))}(Y||(Y={}));var fe,te,j=function(W){return W.Appdiscovery=S,W.Driverinstall=l,W.Driverupdaterecommendation=s,W.Localgames=u,W.Nvcpldisplayplugin=m,W.Nvcplplugin=I,W.Nvigoutil=R,W.Nvoc=O,W.Overclockingnvc=Y,W}(j||{});!function(W){let Pe;var le;(le=Pe=W.StreamerStatus||(W.StreamerStatus={})).Init="Init",le.NetworkTest="NetworkTest",le.Loading="Loading",le.Streaming="Streaming",le.Done="Done",le.Error="Error",le.GotInputFocus="GotInputFocus",le.LostInputFocus="LostInputFocus",le.UpdateCheck="UpdateCheck",le.PreStreaming="PreStreaming",le.Authentication="Authentication",le.Authorization="Authorization",le.PlatformSelection="PlatformSelection",le.AccountLinking="AccountLinking",le.PostSessionConnection="PostSessionConnection",le.PostStreaming="PostStreaming",le.ResumableError="ResumableError",le.TerminalError="TerminalError"}(fe||(fe={})),function(W){let Pe;var oe;let le;(oe=Pe=W.Codec||(W.Codec={})).H264="H264",oe.H265="H265",oe.AV1="AV1",oe.None="None",function(oe){oe[oe.UNKNOWN=0]="UNKNOWN",oe[oe.START=1]="START",oe[oe.PAUSE=2]="PAUSE",oe[oe.RESUME=3]="RESUME",oe[oe.FINISH=4]="FINISH",oe[oe.CANCEL=5]="CANCEL",oe[oe.MAX=6]="MAX"}(le=W.AdAction||(W.AdAction={}))}(te||(te={}));var H,Z,X,ce=function(W){return W.Gfnsdkhost=fe,W.Streaming=te,W}(ce||{});!function(W){let Pe;var Oe;let le,oe,Le;(Oe=Pe=W.ErrorCodeEnum||(W.ErrorCodeEnum={}))[Oe.NoError=0]="NoError",Oe[Oe.GeneralError=-505409537]="GeneralError",Oe[Oe.InvalidObject=-505413631]="InvalidObject",Oe[Oe.InsufficientArguments=-505413630]="InsufficientArguments",Oe[Oe.InvalidParameters=-505413629]="InvalidParameters",Oe[Oe.PropertyMissing=-505413628]="PropertyMissing",Oe[Oe.InvalidFormat=-505413627]="InvalidFormat",Oe[Oe.EmptyValue=-505413626]="EmptyValue",Oe[Oe.FileNotFound=-505413622]="FileNotFound",Oe[Oe.PathNotFound=-505413621]="PathNotFound",Oe[Oe.ProcessingPreviousCall=505413620]="ProcessingPreviousCall",Oe[Oe.InstallerAlreadyRunning=-505413619]="InstallerAlreadyRunning",Oe[Oe.MessagingChannel=-505413618]="MessagingChannel",Oe[Oe.ExtractedNotFound=-505413610]="ExtractedNotFound",Oe[Oe.InstallerExeNotFound=-505413608]="InstallerExeNotFound",Oe[Oe.GfeExperienceKeyNotFound=-505413607]="GfeExperienceKeyNotFound",Oe[Oe.GfeExperiencePathEmpty=-505413606]="GfeExperiencePathEmpty",Oe[Oe.SignatureInvalid=-505413605]="SignatureInvalid",Oe[Oe.UacCancelled=-505413600]="UacCancelled",Oe[Oe.MsgArrivedEventCreate=-505413599]="MsgArrivedEventCreate",Oe[Oe.MsgArrivedEventSignal=-505413598]="MsgArrivedEventSignal",Oe[Oe.ResumePathNotFound=-505413597]="ResumePathNotFound",Oe[Oe.ResumePathEmpty=-505413596]="ResumePathEmpty",Oe[Oe.ResumePathInvalid=-505413595]="ResumePathInvalid",Oe[Oe.MsgChannelInit=-505413584]="MsgChannelInit",Oe[Oe.MsgShowFormSet=-505413583]="MsgShowFormSet",Oe[Oe.MsgProgressUpdateSet=-505413582]="MsgProgressUpdateSet",Oe[Oe.MsgListen=-505413581]="MsgListen",function(Oe){Oe[Oe.NotSet=0]="NotSet",Oe[Oe.ShowForm=1]="ShowForm",Oe[Oe.ProgressUpdate=2]="ProgressUpdate"}(le=W.MethodEnum||(W.MethodEnum={})),function(Oe){Oe[Oe.NotSet=0]="NotSet",Oe[Oe.InstallInitial=1]="InstallInitial",Oe[Oe.InstallChecking=2]="InstallChecking",Oe[Oe.InstallCheckWarnings=3]="InstallCheckWarnings",Oe[Oe.InstallCheckFailed=4]="InstallCheckFailed",Oe[Oe.InstallCheckWait=5]="InstallCheckWait",Oe[Oe.Eula=6]="Eula",Oe[Oe.InstallSelect=7]="InstallSelect",Oe[Oe.InstallSelectCustom=8]="InstallSelectCustom",Oe[Oe.InstallSelectInstallPath=9]="InstallSelectInstallPath",Oe[Oe.PreInstallCheck=10]="PreInstallCheck",Oe[Oe.PreInstallCheckRetry=11]="PreInstallCheckRetry",Oe[Oe.PreInstallCheckWait=12]="PreInstallCheckWait",Oe[Oe.PreRebootInstall=13]="PreRebootInstall",Oe[Oe.PackageDownloadProgress=14]="PackageDownloadProgress",Oe[Oe.ProcessDownloadedPackage=15]="ProcessDownloadedPackage",Oe[Oe.PackageDownloadFailed=16]="PackageDownloadFailed",Oe[Oe.InstallProgress=17]="InstallProgress",Oe[Oe.InstallRemoveProgress=18]="InstallRemoveProgress",Oe[Oe.InstallFinished=19]="InstallFinished",Oe[Oe.InstallFinishedNoSummary=20]="InstallFinishedNoSummary",Oe[Oe.InstallFinishedLaunch=21]="InstallFinishedLaunch",Oe[Oe.InstallFinishedNoSummaryLaunch=22]="InstallFinishedNoSummaryLaunch",Oe[Oe.InstallFinishedOptions=23]="InstallFinishedOptions",Oe[Oe.InstallFinishedNoSummaryOptions=24]="InstallFinishedNoSummaryOptions",Oe[Oe.InstallReboot=25]="InstallReboot",Oe[Oe.InstallRebootOptions=26]="InstallRebootOptions",Oe[Oe.InstallRebootNoSummary=27]="InstallRebootNoSummary",Oe[Oe.InstallRebootNoSummaryOptions=28]="InstallRebootNoSummaryOptions",Oe[Oe.InstallRemoveReboot=29]="InstallRemoveReboot",Oe[Oe.InstallFailed=30]="InstallFailed",Oe[Oe.WaitingOnUac=31]="WaitingOnUac"}(oe=W.FormEnum||(W.FormEnum={})),function(Oe){Oe[Oe.Next=0]="Next",Oe[Oe.Close=1]="Close"}(Le=W.NextActionEnum||(W.NextActionEnum={}))}(H||(H={})),function(W){let Pe;var oe;let le;(oe=Pe=W.DriverTypeEnum||(W.DriverTypeEnum={}))[oe.GameReadyDriver=0]="GameReadyDriver",oe[oe.CreatorReadyDriver=1]="CreatorReadyDriver",function(oe){oe.started="started",oe.finished="finished",oe.failed="failed",oe.cancelled="cancelled"}(le=W.DriverUpdateCheckProgress||(W.DriverUpdateCheckProgress={}))}(Z||(Z={})),function(W){let Pe;var Ie;let le,oe,Le,Oe,ye;(Ie=Pe=W.ApplicationScanType||(W.ApplicationScanType={})).fast="fast",Ie.traditional="traditional",function(Ie){Ie.Unknown="Unknown",Ie.NotAvailable="NotAvailable",Ie.NotReady="NotReady",Ie.Ready="Ready"}(le=W.VopsStatus||(W.VopsStatus={})),function(Ie){Ie.STRING="STRING",Ie.INT="INT",Ie.FLOAT="FLOAT",Ie.ENUM="ENUM",Ie.BOOL="BOOL",Ie.DRIVER_ENUM="DRIVER_ENUM"}(oe=W.Type||(W.Type={})),function(Ie){Ie.AC="AC",Ie.DC="DC"}(Le=W.ApplicationPowerMode||(W.ApplicationPowerMode={})),function(Ie){Ie.DISABLED="DISABLED",Ie.UNOPTIMIZED="UNOPTIMIZED",Ie.CUSTOMIZED="CUSTOMIZED",Ie.OPTIMIZED="OPTIMIZED"}(Oe=W.OptimizationState||(W.OptimizationState={})),function(Ie){Ie.started="started",Ie.finished="finished",Ie.failed="failed",Ie.progress="progress"}(ye=W.Status||(W.Status={}))}(X||(X={}));var Me,be,Q,ne,Ge,ge,Xe,ot,dt,xe,Re,ue=function(W){return W.Driverinstall=H,W.Driverupdaterecommendation=Z,W.Localgames=X,W}(ue||{});!function(W){let Pe;var oe;let le;(oe=Pe=W.State||(W.State={})).percentage="percentage",oe.indeterminate="indeterminate",oe.pause="pause",oe.complete="complete",function(oe){oe.active="active",oe.inactive="inactive",oe.failed="failed"}(le=W.State1||(W.State1={}))}(Me||(Me={})),function(W){let Pe;var ye;let le,oe,Le,Oe;(ye=Pe=W.ApplicationLifetimeEventType||(W.ApplicationLifetimeEventType={})).ApplicationExit="APPLICATION_EXIT",ye.SystemLogout="SYSTEM_LOGOUT",ye.SystemSuspend="SYSTEM_SUSPEND",function(ye){ye.UserClosedWindow="USER_CLOSED_WINDOW",ye.UserQuitWithShortcut="USER_QUIT_WITH_SHORTCUT",ye.UserLoggedOut="USER_LOGGED_OUT",ye.SelfUpdate="SELF_UPDATE",ye.Relaunch="RELAUNCH",ye.BrowserExit="BROWSER_EXIT",ye.ForceShutdown="FORCE_SHUTDOWN"}(le=W.ShutdownReason||(W.ShutdownReason={})),function(ye){ye.Bluetooth="BLUETOOTH"}(oe=W.SystemSetting||(W.SystemSetting={})),function(ye){ye.Launch="launch"}(Le=W.ApplicationTimeType||(W.ApplicationTimeType={})),function(ye){ye.LaunchSiteTime="LAUNCH_SITE_TIME",ye.LaunchCefSiteTime="LAUNCH_CEF_SITE_TIME"}(Oe=W.ApplicationStartTimeType||(W.ApplicationStartTimeType={}))}(be||(be={})),function(W){let Pe;var oe;let le;(oe=Pe=W.ConversationIntent||(W.ConversationIntent={})).Support="Support",oe.Recommendation="Recommendation",function(oe){oe.Installer="Installer",oe.Game="Game",oe.Share="Share",oe.GameStream="GameStream"}(le=W.Component||(W.Component={}))}(Q||(Q={})),function(W){let Pe;var le;(le=Pe=W.InternalErrorCodeEnum||(W.InternalErrorCodeEnum={}))[le.Success=0]="Success",le[le.Error=1]="Error",le[le.Error_PermissionNotGiven=2]="Error_PermissionNotGiven",le[le.Error_NotFullScreen=3]="Error_NotFullScreen"}(ne||(ne={})),function(W){let Pe;var le;(le=Pe=W.DiscordAsset||(W.DiscordAsset={}))[le.Large=0]="Large"}(Ge||(Ge={})),function(W){let Pe;var pe;let le,oe,Le,Oe,ye,Ie,at,K,ve,De;(pe=Pe=W.UpdateFrameworkResult||(W.UpdateFrameworkResult={}))[pe.NotImplemented=-1]="NotImplemented",pe[pe.Success=0]="Success",pe[pe.Error=1]="Error",pe[pe.UpdateFrameworkUninitialised=2]="UpdateFrameworkUninitialised",pe[pe.UpdateCheckMgrUninitialised=3]="UpdateCheckMgrUninitialised",pe[pe.NoUpdateCheckCandidate=4]="NoUpdateCheckCandidate",pe[pe.InvalidComponentType=5]="InvalidComponentType",pe[pe.UpdateCheckInfoException=6]="UpdateCheckInfoException",pe[pe.UpdateCheckComponentInapplicable=7]="UpdateCheckComponentInapplicable",pe[pe.InvalidArgument=8]="InvalidArgument",pe[pe.InvalidOperation=9]="InvalidOperation",pe[pe.FileDoesNotExist=10]="FileDoesNotExist",pe[pe.NotFound=11]="NotFound",pe[pe.BadJson=12]="BadJson",pe[pe.KeyDoesNotExist=13]="KeyDoesNotExist",pe[pe.InternalException=14]="InternalException",pe[pe.ProfileCatalogUninitialised=15]="ProfileCatalogUninitialised",pe[pe.AlreadyDownloaded=16]="AlreadyDownloaded",pe[pe.CannotDeleteFile=17]="CannotDeleteFile",pe[pe.DownloaderBusyTryLater=18]="DownloaderBusyTryLater",pe[pe.CurlInitFailed=19]="CurlInitFailed",pe[pe.PostProcessingPolicyDontRun=20]="PostProcessingPolicyDontRun",pe[pe.DownloadPolicyDontRun=21]="DownloadPolicyDontRun",pe[pe.UpdateCheckPeriodNotElapsed=22]="UpdateCheckPeriodNotElapsed",pe[pe.PluginLoadError=23]="PluginLoadError",pe[pe.PluginFnAddrError=24]="PluginFnAddrError",pe[pe.PluginError=25]="PluginError",function(pe){pe[pe.Official=0]="Official",pe[pe.Beta=1]="Beta",pe[pe.Unknown=-1]="Unknown"}(le=W.UpdateChannel||(W.UpdateChannel={})),function(pe){pe[pe.Full=0]="Full",pe[pe.Diff=1]="Diff",pe[pe.Unknown=-1]="Unknown"}(oe=W.UpdateType||(W.UpdateType={})),function(pe){pe[pe.Auto=0]="Auto",pe[pe.Manual=1]="Manual",pe[pe.Unknown=-1]="Unknown"}(Le=W.InvokeType||(W.InvokeType={})),function(pe){pe[pe.Undefined=-1]="Undefined",pe[pe.DownloadTriggered=0]="DownloadTriggered",pe[pe.Downloading=1]="Downloading",pe[pe.VerifyingChecksum=2]="VerifyingChecksum",pe[pe.VerifyingSignature=3]="VerifyingSignature",pe[pe.Paused=4]="Paused",pe[pe.Cancelled=5]="Cancelled",pe[pe.NetworkErrorRetrying=6]="NetworkErrorRetrying",pe[pe.NetworkErrorRetryPaused=7]="NetworkErrorRetryPaused",pe[pe.Finished=8]="Finished",pe[pe.ChecksumVerificationFailed=9]="ChecksumVerificationFailed",pe[pe.SignatureVerificationFailed=10]="SignatureVerificationFailed",pe[pe.DiskWriteFail=11]="DiskWriteFail",pe[pe.Error=12]="Error",pe[pe.NotAllowedNow=13]="NotAllowedNow",pe[pe.Prohibited=14]="Prohibited"}(Oe=W.DownloadStatus||(W.DownloadStatus={})),function(pe){pe[pe.Undefined=-1]="Undefined",pe[pe.Ready=0]="Ready",pe[pe.Executing=1]="Executing",pe[pe.Completed=2]="Completed",pe[pe.CouldNotRun=3]="CouldNotRun",pe[pe.FailedRetryPending=4]="FailedRetryPending",pe[pe.Failed=5]="Failed"}(ye=W.ActionStatus||(W.ActionStatus={})),function(pe){pe[pe.Undefined=-1]="Undefined",pe[pe.ExecutingActions=0]="ExecutingActions",pe[pe.Completed=1]="Completed",pe[pe.Failed=2]="Failed"}(Ie=W.PostProcessingStatus||(W.PostProcessingStatus={})),function(pe){pe[pe.Started=0]="Started",pe[pe.Retrying=1]="Retrying",pe[pe.RetryStopped=2]="RetryStopped",pe[pe.Finished=3]="Finished",pe[pe.Failed=4]="Failed"}(at=W.ProgressStatus||(W.ProgressStatus={})),function(pe){pe[pe.Unknown=-1]="Unknown",pe[pe.UpdateInProgress=0]="UpdateInProgress",pe[pe.UpdateUnavailable=1]="UpdateUnavailable",pe[pe.UpdateSuccessful=2]="UpdateSuccessful",pe[pe.UpdateFailed=3]="UpdateFailed"}(K=W.UpdateState||(W.UpdateState={})),function(pe){pe[pe.Uninitialised=-1]="Uninitialised",pe[pe.CheckingForUpdate=0]="CheckingForUpdate",pe[pe.UpdateCheckEnd=1]="UpdateCheckEnd",pe[pe.Downloading=2]="Downloading",pe[pe.DownloadEnd=3]="DownloadEnd",pe[pe.PostProcessing=4]="PostProcessing",pe[pe.PostProcessingEnd=5]="PostProcessingEnd"}(ve=W.UpdateExecutionPhase||(W.UpdateExecutionPhase={})),function(pe){pe[pe.Success=0]="Success",pe[pe.Failure=1]="Failure",pe[pe.FailureNoSourceProfile=2]="FailureNoSourceProfile"}(De=W.CreateProfileStatusEnum||(W.CreateProfileStatusEnum={}))}(ge||(ge={})),function(W){let Pe;var Qe;let le,oe,Le,Oe,ye,Ie,at,K,ve,De,pe;(Qe=Pe=W.FileType||(W.FileType={})).video="video",Qe.image="image",Qe.other="other",function(Qe){Qe.Highlight="Highlight",Qe.AnimatedGif="AnimatedGif",Qe.Normal="Normal",Qe.SuperResolution="SuperResolution",Qe.SuperResolution_Oversized="SuperResolution_Oversized",Qe.SubType_360Mono="360Mono",Qe.Stereo="Stereo",Qe.SubType_360Stereo="360Stereo",Qe.Exr="Exr",Qe.Normal_Ansel="Normal_Ansel",Qe.Montage="Montage",Qe.InstantReplay="InstantReplay",Qe.Manual="Manual",Qe.Unknown="Unknown"}(le=W.SubType||(W.SubType={})),function(Qe){Qe.Single="Single",Qe.Separate="Separate",Qe.Unknown="Unknown"}(oe=W.AudioType||(W.AudioType={})),function(Qe){Qe.low="low",Qe.medium="medium",Qe.high="high"}(Le=W.Quality||(W.Quality={})),function(Qe){Qe.GFE_Share="GFE_Share",Qe.GFE_Ansel="GFE_Ansel",Qe.GFE_SDK="GFE_SDK",Qe.StandAlone_Ansel="StandAlone_Ansel",Qe.Undefined="Undefined"}(Oe=W.Source||(W.Source={})),function(Qe){Qe.screenshot="screenshot",Qe.video="video"}(ye=W.Type||(W.Type={})),function(Qe){Qe.video="video",Qe.image="image",Qe.audio="audio"}(Ie=W.InputFileType||(W.InputFileType={})),function(Qe){Qe.none="none",Qe.titleBasic="titleBasic"}(at=W.SeqType||(W.SeqType={})),function(Qe){Qe.none="none",Qe.brandSliderInOnly="brandSliderInOnly",Qe.brandSlideInOut="brandSlideInOut"}(K=W.BrandType||(W.BrandType={})),function(Qe){Qe.atStart="atStart",Qe.atEnd="atEnd"}(ve=W.Position||(W.Position={})),function(Qe){Qe.TrackerUpdateNotActive="TrackerUpdateNotActive",Qe.TrackerUpdateInProgress="TrackerUpdateInProgress",Qe.TrackerUpdateComplete="TrackerUpdateComplete",Qe.CancelUpdateComplete="CancelUpdateComplete",Qe.CancelUpdate="CancelUpdate"}(De=W.GalleryPathUpdateStatus||(W.GalleryPathUpdateStatus={})),function(Qe){Qe.none="none",Qe.hidden="hidden",Qe.empty="empty",Qe.hiddenOrEmpty="hiddenOrEmpty",Qe.hiddenAndEmpty="hiddenAndEmpty"}(pe=W.ExcludeDirectoryType||(W.ExcludeDirectoryType={}))}(Xe||(Xe={})),function(W){let Pe;var le;(le=Pe=W.IpcTargets||(W.IpcTargets={})).GfnMall="mallclient",le.GfnStreamer="streamer",le.GfnUpdater="selfupdater"}(ot||(ot={})),function(W){let Pe;var le;(le=Pe=W.PrivacySettings||(W.PrivacySettings={})).None="None",le.RequiredOnly="RequiredOnly",le.RequiredFunctional="RequiredFunctional",le.RequiredFunctionalTechnical="RequiredFunctionalTechnical"}(dt||(dt={})),function(W){let Pe;var ve;let le,oe,Le,Oe,ye,Ie,at,K;(ve=Pe=W.CaptureTypes||(W.CaptureTypes={})).regular="regular",ve.stereoRegular="stereoRegular",ve.highRes="highRes",ve.sphericalPanorama="sphericalPanorama",ve.stereoSphericalPanorama="stereoSphericalPanorama",function(ve){ve.ok="ok",ve.failed="failed",ve.started="started",ve.failedToStart="failedToStart",ve.noSpace="noSpace",ve.permissionDenied="permissionDenied",ve.invalidRequest="invalidRequest",ve.failedToProcess="failedToProcess",ve.processDeclined="processDeclined",ve.alreadyEnabled="alreadyEnabled",ve.alreadyDisabled="alreadyDisabled",ve.outOfRange="outOfRange",ve.alreadySet="alreadySet",ve.incompatibleVersion="incompatibleVersion",ve.disabled="disabled",ve.okAnsel="okAnsel",ve.okModsOnly="okModsOnly",ve.failedToFinishCapture="failedToFinishCapture",ve.failedToSaveShotFailedCreateDiretory="failedToSaveShotFailedCreateDiretory",ve.failedToSaveShotNoSpaceLeft="failedToSaveShotNoSpaceLeft",ve.processingCompleted="processingCompleted",ve.shotSaved="shotSaved",ve.processingFile="processingFile",ve.failedToSaveShot="failedToSaveShot"}(le=W.AnselStatusEnum||(W.AnselStatusEnum={})),function(ve){ve.sdk="sdk",ve.mods="mods",ve.styleTransfer="styleTransfer",ve.allowOffline="allowOffline"}(oe=W.FeaturesSupported||(W.FeaturesSupported={})),function(ve){ve.windowedSDK="windowedSDK",ve.fullscreenSDK="fullscreenSDK",ve.windowedNoSDK="windowedNoSDK",ve.fullscreenNoSDK="fullscreenNoSDK"}(Le=W.Mode||(W.Mode={})),function(ve){ve.mouse="mouse",ve.keyboard="keyboard",ve.gamepad="gamepad"}(Oe=W.Hid||(W.Hid={})),function(ve){ve.notAvailable="notAvailable",ve.available="available",ve.notEnabled="notEnabled",ve.enabled="enabled"}(ye=W.AnselState||(W.AnselState={})),function(ve){ve.roll="roll",ve.fov="fov"}(Ie=W.Response||(W.Response={})),function(ve){ve.float="float",ve.int="int",ve.uint="uint",ve.bool="bool"}(at=W.DataType||(W.DataType={})),function(ve){ve.success="success"}(K=W.NgxAiUpResStatus||(W.NgxAiUpResStatus={}))}(xe||(xe={})),function(W){let Pe;var oe;let le;(oe=Pe=W.ApiStatusEnum||(W.ApiStatusEnum={})).Success="Success",oe.Failure="Failure",function(oe){oe.Desktop="Desktop",oe.Mobile="Mobile"}(le=W.UiModeEnum||(W.UiModeEnum={}))}(Re||(Re={}));var Ue=function(W){return W.Applicationcontrol=Me,W.Applicationinfo=be,W.Bot=Q,W.Clientnotification=ne,W.Discord=Ge,W.Downloader=ge,W.Gallery=Xe,W.Ipc=ot,W.Nvaccount=dt,W.Nvcamera=xe,W.Systeminfo=Re,W}(Ue||{}),ee=function(W){return W.Common=Ue,W.Gfe=ue,W.Gfn=ce,W.Nvapp=j,W.Qxp=y,W.Share=T,W}(ee||{})},64100:(je,z,c)=>{"use strict";c.d(z,{j:()=>T});var r=c(59859),n=c(91384),v=c(14714),h=c(83915),f=c(74931),A=c(58527),M=c(3816);let T=(()=>{var E;class y{constructor(l,s){this.bridgeService=l,this.loggingService=s,this.logger=this.loggingService.getLogger("libraries/ConfigStoreService")}writeAppInfoToPersistence(l){return this.bridgeService.executeCommand(f.Ts.Common.Loginid.AddAppInfoToPersistence,{appInfo:l}).pipe((0,n.M)(u=>this.logger.info("AppInfo Write Success")),(0,v.W)(u=>(this.logger.error(u),(0,r.$)(u))))}readAppInfoFromPersistence(){return this.bridgeService.executeCommand(f.Ts.Common.Loginid.GetAllAppInfoFromPersistence).pipe((0,h.T)(l=>l?.AppsInfo),(0,n.M)(l=>this.logger.info("AppInfo Read Success")),(0,v.W)(l=>(this.logger.error(l),(0,r.$)(l))))}writeConfigFile(l,s){this.logger.info(`Writing in config file for ${l} ${JSON.stringify(s)}`);const u=Object.keys(s).map(I=>({key:I,value:s[I]}));return this.bridgeService.executeCommand(f.Ts.Common.Applicationcontrol.WriteGenericConfig,{configname:l,path:u}).pipe((0,n.M)(I=>this.logger.info("Write Success")),(0,v.W)(I=>(this.logger.error(I),(0,r.$)(I))))}readConfigFile(l,s){return this.logger.info(`Reading config file for ${l} ${JSON.stringify(s)}`),this.bridgeService.executeCommand(f.Ts.Common.Applicationcontrol.ReadGenericConfig,{configname:l,path:s}).pipe((0,n.M)(m=>this.logger.info("Read Success")),(0,v.W)(m=>(this.logger.error(m),(0,r.$)(m))))}removeFromConfig(l,s){return this.logger.info(`Removing config ${JSON.stringify(s)} from file for ${l}`),this.bridgeService.executeCommand(f.Ts.Common.Applicationcontrol.RemoveFromGenericConfig,{configname:l,path:s}).pipe((0,n.M)(m=>this.logger.info("Config removed")),(0,v.W)(m=>(this.logger.error(m),(0,r.$)(m))))}}return(E=y).\u0275fac=function(l){return new(l||E)(A.KVO(M.NZ),A.KVO(M.J6))},E.\u0275prov=A.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),y})()},62351:(je,z,c)=>{"use strict";c.d(z,{E:()=>v});var r=c(58527);let v=(()=>{var h;class f{}return(h=f).\u0275fac=function(M){return new(M||h)},h.\u0275prov=r.jDH({token:h,factory:h.\u0275fac}),f})()},54943:(je,z,c)=>{"use strict";c.d(z,{l:()=>M});var r=c(43848),n=c(59859),v=c(58527),h=c(62351);function f(T){return[T.system,T.module,T.method,T.legacyCommand].join(".")}let M=(()=>{var T;class E{constructor(S){this.bridgeConfig=S,this.responses={},this.persistentResponses={},this.errors={},this.configMocks={},this.callData={};for(const l of Object.values(S.mocks))this.configMocks[f(l.command)]=l.return}createResponse(S,l){const s=f(S);delete this.errors[s],this.responses[s]=l}createResponseSequence(S,l){const s=f(S);delete this.errors[s],this.responses[s]=l}createPersistentResponse(S,l){if(!S.persistent)throw new Error("Can only create a persistent response for persistent commands");{const s=f(S);delete this.errors[s],this.persistentResponses[s]=l}}createErrorResponse(S,l){const s=f(S);delete this.responses[s],this.errors[s]=l}executeCommand(S,l){const s=f(S);this.cacheCallData(s,l);let u=(0,r.of)(void 0);return s in this.errors?u=(0,n.$)(this.errors[s]):s in this.responses?u=Array.isArray(this.responses[s])?(0,r.of)(this.responses[s].shift()):(0,r.of)(this.responses[s]):s in this.configMocks?u=(0,r.of)(this.configMocks[s]):s in this.persistentResponses&&(u=this.persistentResponses[s]),u}hasOverrideMock(S){const l=f(S);return l in this.responses||l in this.persistentResponses}hasErrorMock(S){return f(S)in this.errors}hasConfigMock(S){return f(S)in this.configMocks}hasMock(S){const l=this.hasOverrideMock(S)||this.hasConfigMock(S)||this.hasErrorMock(S);return this.bridgeConfig.isUnitTestConfig&&!l&&console.error("No mock provided for: "+f(S)),l}cacheCallData(S,l){this.bridgeConfig.cacheMockedCallData&&(S in this.callData||(this.callData[S]={count:0,params:[]}),this.callData[S].count++,this.callData[S].params.push(l))}resetCallData(){this.callData={}}getCallData(S){const l=f(S);return l in this.callData?this.callData[l]:{count:0,params:[]}}}return(T=E).\u0275fac=function(S){return new(S||T)(v.KVO(h.E))},T.\u0275prov=v.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),E})()},31650:(je,z,c)=>{"use strict";c.d(z,{N:()=>h});var r=c(58527),n=c(3678),v=c(54943);let h=(()=>{var f;class A{constructor(T,E){this.logger=T,this.bridgeMockService=E}makeFullBridgeCommand(T,E,y){return{command:T.legacyCommand,system:T.system,module:T.module,method:T.method,payload:E,...y?E:null}}unpackReturnPayload(T){try{const E=JSON.parse(T);return"object"==typeof E&&"reference_uniqueid"in E&&"method"in E&&"payload"in E?E.payload:E}catch{return T}}handleSuccess(T,E,y){switch(y){case"true":T.next(!0);break;case"false":T.next(!1);break;default:T.next(this.unpackReturnPayload(y))}E||T.complete()}handleFailure(T,E,y,S,l){const s={code:y,message:S,isCancelled:204===y,request:E};this.logger.info(`Bridge Query returned error code ${y}: ${S}. Command: ${JSON.stringify(l?E:E.command)}`),T.error(s)}executeCommand(T,E,y=!0){return this.bridgeMockService.hasMock(T)?this.bridgeMockService.executeCommand(T,E):this.executeCommandInternal(T,E,y)}}return(f=A).\u0275fac=function(T){return new(T||f)(r.KVO(n.Vy),r.KVO(v.l))},f.\u0275prov=r.jDH({token:f,factory:f.\u0275fac}),A})()},10607:(je,z,c)=>{"use strict";c.d(z,{Ec:()=>ge.E,NZ:()=>r.N,a5:()=>Ge});var r=c(31650),n=c(58527),v=c(17053),h=c(3678),f=c(54943);let A=(()=>{var Xe;class ot extends r.N{constructor(xe,Re,Ue){super(xe.getLogger("crimson/cef"),Ue),this.ngZone=Re}static isCefPlatform(){return"cefQuery"in window}executeCommandInternal(xe,Re,Ue){const ee=this.makeFullBridgeCommand(xe,Re,xe.legacyCommand!==ot.EXTENSION_MESSAGE),W=JSON.stringify(ee),Pe=window.cefQuery;return new v.c(le=>{if(Pe)Pe({request:W,persistent:xe.persistent,onSuccess:oe=>{n.SKi.isInAngularZone()?this.handleSuccess(le,xe.persistent,oe):this.ngZone.run(()=>{this.handleSuccess(le,xe.persistent,oe)})},onFailure:(oe,Le)=>{n.SKi.isInAngularZone()?this.handleFailure(le,ee,oe,Le,Ue):this.ngZone.run(()=>{this.handleFailure(le,ee,oe,Le,Ue)})}});else{const oe=W;this.logger.error(oe),this.handleFailure(le,ee,500,oe,Ue)}})}}return(Xe=ot).EXTENSION_MESSAGE="QUERY_IPC_EXTENSION_MESSAGE",Xe.\u0275fac=function(xe){return new(xe||Xe)(n.KVO(h.J6),n.KVO(n.SKi),n.KVO(f.l))},Xe.\u0275prov=n.jDH({token:Xe,factory:Xe.\u0275fac}),ot})();var M=c(43848),T=c(14714),E=c(75707);let y=(()=>{var Xe;class ot{constructor(xe){this._plugins=xe}get plugins(){return this._plugins}getPlugin(xe){return this._plugins.find(Re=>Re instanceof xe)}}return(Xe=ot).\u0275fac=function(xe){return new(xe||Xe)(n.KVO(Array))},Xe.\u0275prov=n.jDH({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),ot})(),S=(()=>{var Xe;class ot extends r.N{constructor(xe,Re,Ue,ee){super(xe,ee),this.primaryManager=Re,this.fallbackManager=Ue,this.handlerMap=new Map,this.buildHandlerMap()}buildHandlerMap(){this.fallbackManager?.plugins?.forEach(xe=>{const Re=xe.handlers;this.handlerMap.set(Re.module,Re.commands)});for(const xe of this.primaryManager.plugins){const Re=xe.handlers;this.handlerMap.set(Re.module,Re.commands)}}getHandlerForMethod(xe,Re){const Ue=this.handlerMap.get(xe);return Ue?Ue[Re]:null}executeCommandUsingPlugin(xe,Re,Ue){const ee=this.makeFullBridgeCommand(xe,Re,xe.legacyCommand!==ot.EXTENSION_MESSAGE),W=this.getHandlerForMethod(ee.module,ee.method);return W?new v.c(Pe=>{W(ee).pipe((0,T.W)(le=>(this.logger.info("failed to execute",xe.legacyCommand,le),new v.c(oe=>{this.handleFailure(oe,ee,le.code,le.error,Ue)}))),(0,E.ZZ)(le=>new v.c(oe=>{this.handleSuccess(oe,ee.persistent,le.data)}))).subscribe(le=>Pe.next(le),le=>Pe.error(le),()=>Pe.complete())}):(this.logger.info("plugin does not have handler for",ee.module,ee.method),(0,M.of)(null))}}return(Xe=ot).EXTENSION_MESSAGE="QUERY_IPC_EXTENSION_MESSAGE",Xe.\u0275fac=function(xe){return new(xe||Xe)(n.KVO(h.Vy),n.KVO(y),n.KVO(y),n.KVO(f.l))},Xe.\u0275prov=n.jDH({token:Xe,factory:Xe.\u0275fac}),ot})();var l=c(40482),s=c(59859),u=c(83915);class m{createSuccessResponse(ot){return{success:!0,code:200,data:ot}}createErrorResponse(ot,dt){return{success:!1,code:ot,error:dt}}makeError(ot,dt){return(0,s.$)(this.createErrorResponse(ot,dt))}makeResult(ot){return(0,M.of)(this.createSuccessResponse(ot))}makePersistentResult(ot){return ot.pipe((0,u.T)(dt=>this.createSuccessResponse(dt)))}}(class R extends m{static get browserInstanceId(){return this._browserInstanceId}})._browserInstanceId=(0,l.bz)(!0);const O=new n.nKC("BrowserPlugins");let Y=(()=>{var Xe;class ot extends y{constructor(xe){super(xe||[])}}return(Xe=ot).\u0275fac=function(xe){return new(xe||Xe)(n.KVO(O,8))},Xe.\u0275prov=n.jDH({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),ot})(),j=(()=>{var Xe;class ot extends S{constructor(xe,Re,Ue){super(xe.getLogger("crimson/browser"),Re,void 0,Ue)}executeCommandInternal(xe,Re,Ue){const ee=this.makeFullBridgeCommand(xe,Re,xe.legacyCommand!==S.EXTENSION_MESSAGE);return this.handlerMap.has(ee.module)?this.executeCommandUsingPlugin(xe,Re,Ue):(this.logger.info("Command not found",JSON.stringify(Ue?ee:ee.command)),(0,M.of)(null))}}return(Xe=ot).\u0275fac=function(xe){return new(xe||Xe)(n.KVO(h.J6),n.KVO(Y),n.KVO(f.l))},Xe.\u0275prov=n.jDH({token:Xe,factory:Xe.\u0275fac}),ot})(),fe=(()=>{var Xe;class ot extends r.N{constructor(xe,Re,Ue){super(xe.getLogger("crimson/yggdrasil"),Ue),this.ngZone=Re}executeCommandInternal(xe,Re){return new v.c(Ue=>{Ue.next(null),Ue.complete()})}}return(Xe=ot).\u0275fac=function(xe){return new(xe||Xe)(n.KVO(h.J6),n.KVO(n.SKi),n.KVO(f.l))},Xe.\u0275prov=n.jDH({token:Xe,factory:Xe.\u0275fac}),ot})();var te=c(26502);const ce=new n.nKC("AndroidPlugins");let H=(()=>{var Xe;class ot extends y{constructor(xe){super(xe||[])}}return(Xe=ot).\u0275fac=function(xe){return new(xe||Xe)(n.KVO(ce,8))},Xe.\u0275prov=n.jDH({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),ot})();var ue,Me;(class X extends m{static get androidInstanceId(){return this._androidInstanceId}})._androidInstanceId=(0,l.bz)(!0);class be{constructor(ot,dt){this.ngZone=dt,Android.dispatch=this.dispatch.bind(this),Android.unregisterHandler=this.unregisterHandler.bind(this)}dispatch(ot){if(!be.handlerMap[ot.handlerId])throw new Error(`Cannot find handler Id=${ot.handlerId}.`);const dt=be.handlerMap[ot.handlerId];this.parseResponse(dt.observer,ot.args),dt.persistent||delete be.handlerMap[ot.handlerId]}parseResponse(ot,dt){const xe=JSON.parse(dt),Ue=xe.errorCode,ee=xe.errorMessage;if(xe.successful){const Pe={response:xe.response};n.SKi.isInAngularZone()?ot.next(Pe):this.ngZone.run(()=>{ot.next(Pe)})}else{const Pe={errorCode:Ue,errorMessage:ee};n.SKi.isInAngularZone()?ot.error(Pe):this.ngZone.run(()=>{ot.error(Pe)})}}unregisterHandler(ot){if(!be.handlerMap[ot.handlerId])throw new Error(`Cannot find handler Id=${ot.handlerId}.`);be.handlerMap[ot.handlerId].observer.complete(),delete be.handlerMap[ot.handlerId]}doesCommandExist(ot,dt){return Android.hasCommand&&Android.hasCommand(ot,dt)}executeCommandNative(ot,dt,xe){const Ue={request:JSON.stringify(ot),persistent:dt,handlerId:be.IdGenerator.next()},ee=JSON.stringify(Ue),W=new v.c(Pe=>{be.handlerMap[Ue.handlerId]={observer:Pe,persistent:dt}});return Android.executeCommand(ee),W}}(ue=be).IdGenerator=((Me=class{static next(){return++this.count}}).count=0,Me),ue.handlerMap={},ue.\u0275fac=function(ot){return new(ot||ue)(n.KVO(h.J6),n.KVO(n.SKi))},ue.\u0275prov=n.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"});let Q=(()=>{var Xe;class ot extends S{static requiresNativeImplementation(xe){return ot.REQUIRES_NATIVE_IMPL.includes(xe)}constructor(xe,Re,Ue,ee,W){super(xe.getLogger("crimson/android"),Re,Ue,W),this.androidHelperService=ee}executeCommandInternal(xe,Re,Ue){const ee=this.makeFullBridgeCommand(xe,Re,xe.legacyCommand!==ot.EXTENSION_MESSAGE),W=JSON.stringify(ee);return te.zk.isAndroidPlatform()?this.androidHelperService.doesCommandExist(xe.module,xe.method)?new v.c(le=>{this.androidHelperService.executeCommandNative(ee,xe.persistent,Ue).subscribe(Le=>{this.handleSuccess(le,xe.persistent,Le.response)},Le=>{this.handleFailure(le,ee,Le.errorCode,Le.errorMessage,Ue)},()=>{this.logger.info("callback complete")})}):!ot.requiresNativeImplementation(ee.module)&&this.handlerMap.has(ee.module)?this.executeCommandUsingPlugin(xe,Re,Ue):(this.logger.info("Command not found",JSON.stringify(Ue?ee:ee.command)),(0,M.of)(null)):new v.c(Pe=>{const le=W;this.logger.error(le),this.handleFailure(Pe,ee,500,le,Ue)})}}return(Xe=ot).REQUIRES_NATIVE_IMPL=[],Xe.\u0275fac=function(xe){return new(xe||Xe)(n.KVO(h.J6),n.KVO(H),n.KVO(Y),n.KVO(be),n.KVO(f.l))},Xe.\u0275prov=n.jDH({token:Xe,factory:Xe.\u0275fac}),ot})();const Ge={provide:r.N,useFactory:function ne(Xe,ot,dt,xe){if(te.zk.isCefPlatform())return new A(Xe,ot,dt);if(te.zk.isAndroidPlatform()){const Re=xe.get(Y),Ue=xe.get(H),ee=xe.get(be);return new Q(Xe,Ue,Re,ee,dt)}if(te.zk.isBrowserPlatform()){const Re=xe.get(Y);return new j(Xe,Re,dt)}return new fe(Xe,ot,dt)},deps:[h.J6,n.SKi,f.l,n.zZn]};var ge=c(62351)},84580:(je,z,c)=>{"use strict";c.d(z,{r:()=>v});var r=c(57258),n=c(58527);let v=(()=>{var h;class f{constructor(){this.leanModeTransitionSub=new r.m(1)}get leanModeTransitionState(){return this.leanModeTransitionSub.asObservable()}enableLeanMode(){this.leanModeTransitionSub.next(!0)}disableLeanMode(){this.leanModeTransitionSub.next(!1)}}return(h=f).\u0275fac=function(M){return new(M||h)},h.\u0275prov=n.jDH({token:h,factory:h.\u0275fac,providedIn:"root"}),f})()},64655:(je,z,c)=>{"use strict";c.d(z,{_:()=>te});var r=c(10607),n=c(3678),v=c(60045),h=c(54943),f=c(61142),A=c(22743),y=(c(61090),c(81799),c(33328),c(58527));c(53222);let te=(()=>{var ce;class H{static configure(X){return{ngModule:H,providers:[f.vh,{provide:n.Rx,useValue:X.logger},{provide:r.Ec,useValue:X.bridge},{provide:v.r,useValue:X.window},{provide:A.v,useValue:X.locale},h.l,r.a5]}}}return(ce=H).\u0275fac=function(X){return new(X||ce)},ce.\u0275mod=y.$C({type:ce}),ce.\u0275inj=y.G2t({}),H})()},53222:(je,z,c)=>{"use strict";c.d(z,{M:()=>f});var r=c(28139),n=c(58527);const h=["fxShow.lt-400","fxShow.lt-360","fxShow.lt-340","fxShow.iphone","fxHide.lt-400","fxHide.lt-360","fxHide.lt-340","fxHide.iphone"];let f=(()=>{var A;class M extends r.D9{constructor(){super(...arguments),this.inputs=h}}return(A=M).\u0275fac=(()=>{let T;return function(y){return(T||(T=n.xGo(A)))(y||A)}})(),A.\u0275dir=n.FsC({type:A,selectors:[["","fxShow.lt-400",""],["","fxShow.lt-360",""],["","fxShow.lt-340",""],["","fxShow.iphone",""],["","fxHide.lt-400",""],["","fxHide.lt-360",""],["","fxHide.lt-340",""],["","fxHide.iphone",""]],inputs:{"fxShow.lt-400":"fxShow.lt-400","fxShow.lt-360":"fxShow.lt-360","fxShow.lt-340":"fxShow.lt-340","fxShow.iphone":"fxShow.iphone","fxHide.lt-400":"fxHide.lt-400","fxHide.lt-360":"fxHide.lt-360","fxHide.lt-340":"fxHide.lt-340","fxHide.iphone":"fxHide.iphone"},features:[n.Vt3]}),M})()},22743:(je,z,c)=>{"use strict";c.d(z,{v:()=>n});var r=c(58527);let n=(()=>{var v;class h{}return(v=h).\u0275fac=function(A){return new(A||v)},v.\u0275prov=r.jDH({token:v,factory:v.\u0275fac}),h})()},57643:(je,z,c)=>{"use strict";c.d(z,{q:()=>r});var r=function(n){return n[n.None=-1]="None",n[n.Error=1]="Error",n[n.Warning=2]="Warning",n[n.Info=3]="Info",n[n.Trace=4]="Trace",n[n.Verbose=5]="Verbose",n[n.Event=6]="Event",n}(r||{})},3678:(je,z,c)=>{"use strict";c.d(z,{J6:()=>T,Rx:()=>A,Vy:()=>M});var r=c(40482),n=c(57643),v=c(58527),h=c(61142),f=c(72477);let A=(()=>{var E;class y{}return(E=y).\u0275fac=function(l){return new(l||E)},E.\u0275prov=v.jDH({token:E,factory:E.\u0275fac}),y})();class M{constructor(y,S,l,s,u,m){this.name=y,this.loggingLevel=S,this.datePipe=l,this.remoteLoggingService=s,this.remoteLoggingEnabled=u,this.consoleLoggingEnabled=m,this.remoteLogging=u,this.consoleLogging=m}error(...y){this.logEntry(n.q.Error,y,console.error.bind(console))}warn(...y){this.logEntry(n.q.Warning,y,console.warn.bind(console))}info(...y){this.logEntry(n.q.Info,y,console.log.bind(console))}verbose(...y){this.logEntry(n.q.Verbose,y,console.log.bind(console))}event(...y){this.logEntry(n.q.Event,y,console.log.bind(console))}trace(...y){this.logEntry(n.q.Trace,y,console.log.bind(console))}updateLogger(y,S){this.remoteLogging=y,this.consoleLogging=S}logEntry(y,S,l){if(this.loggingLevel<y)return;let s="";s=y===n.q.Trace?(0,r.pQ)(this.name,n.q[y].toUpperCase(),this.datePipe,S):(0,r.tO)(this.name,n.q[y].toUpperCase(),this.datePipe,S),this.consoleLogging&&l(s),this.remoteLogging&&this.remoteLoggingService.collectLogString(s)}}let T=(()=>{var E;class y{constructor(l,s,u){this.config=l,this.datePipe=s,this.remoteLoggingService=u,this.loggingLevelOverrides={},this.loggers={},this.remoteLoggingEnabled=!1,this.consoleLoggingEnabled=!0,this.loggingLevelOverrides=c(81248)}updateLoggers(){Object.values(this.loggers).forEach(l=>{l.updateLogger(this.remoteLoggingEnabled,this.consoleLoggingEnabled)})}getLoggingLevel(l){return n.q[this.loggingLevelOverrides[l]]||this.config.defaultLoggingLevel}initialize(l,s){l&&this.remoteLoggingService.initialize(),(this.remoteLoggingEnabled!==l||this.consoleLoggingEnabled!==s)&&(this.remoteLoggingEnabled=l,this.consoleLoggingEnabled=s,this.consoleLoggingEnabled||console.clear(),this.updateLoggers())}getLogger(l){const s=this.getLoggingLevel(l);return this.config.appNamePrefix&&(l=this.config.appNamePrefix+"/"+l),this.loggers[l]||(this.loggers[l]=new M(l,s,this.datePipe,this.remoteLoggingService,this.remoteLoggingEnabled,this.consoleLoggingEnabled)),this.loggers[l]}}return(E=y).\u0275fac=function(l){return new(l||E)(v.KVO(A),v.KVO(h.vh),v.KVO(f.V))},E.\u0275prov=v.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),y})()},30308:(je,z,c)=>{"use strict";c.d(z,{C:()=>v});var r=c(58527),n=c(40482);let v=(()=>{var h;class f{constructor(M){this.networkStatusCheckService=M}get onlineStatusChanged(){return this.networkStatusCheckService.onlineStatusChanged()}get isOnline(){return this.networkStatusCheckService.isOnline()}}return(h=f).\u0275fac=function(M){return new(M||h)(r.KVO(n.A5))},h.\u0275prov=r.jDH({token:h,factory:h.\u0275fac,providedIn:"root"}),f})()},61090:(je,z,c)=>{"use strict";c.d(z,{c:()=>h});var r=c(40482),n=c(58527),v=c(65240);let h=(()=>{var f;class A{constructor(T){this.translate=T}translateText(T,E){return this.translate.instant(T,E)}transform(T){try{const E=Math.round(T);if(!T||!E||T<0)return this.translateText("main.byte",{value:0});const y=1;if(1===T||1===E)return this.translateText("main.byte",{value:T});if(isNaN(parseFloat(T.toString(10)))||!isFinite(T))return"-";const S=["main.bytes","main.kb","main.mb","main.gb","main.tb"];let l=Math.floor(Math.log(T)/Math.log(1024));return l>=S.length&&(l=S.length-1),this.translateText(S[l],{value:(T/Math.pow(1024,Math.floor(l))).toFixed(y)})}catch(E){throw(0,r.RL)(A,E.message)}}}return(f=A).\u0275fac=function(T){return new(T||f)(n.rXU(v.c$,16))},f.\u0275pipe=n.EJ8({name:"convertBytesToKBMBGB",type:f,pure:!0}),A})()},81799:(je,z,c)=>{"use strict";c.d(z,{M2:()=>T,k1:()=>h,z3:()=>A});var r=c(40482),n=c(58527),v=c(65240);let h=(()=>{var E;class y{constructor(l){this.translate=l}translateText(l,s){return this.translate.instant(l,s)}transform(l,s){if(!l)return"";try{const u=parseInt(l,10),m=Math.floor(u/3600),I=Math.floor((u-3600*m)/60),R=u-3600*m-60*I;let O="";if(m){const Y=this.translateText(1===m?"main.hr":s&&m>=2?"main.aboutHrs":"main.hrs",{value:m});O=s&&m>=2?Y:Y+" "}return!I||s&&m>=2||(O=O+this.translateText(1===I?"main.min":"main.mins",{value:I})+" "),!R||s&&m||(O+=this.translateText(1===R?"main.sec":"main.secs",{value:R})),O}catch(u){throw(0,r.RL)(y,u.message)}}}return(E=y).\u0275fac=function(l){return new(l||E)(n.rXU(v.c$,16))},E.\u0275pipe=n.EJ8({name:"convertSecondsToTime",type:E,pure:!0}),y})(),A=(()=>{var E;class y{transform(l,s=""){return function f(E,y=""){const S=parseFloat(E);let l=parseInt(E,10),s=Math.floor(l/3600);l%=3600;let u=Math.floor(l/60);l%=60,s<10&&(s=`0${s}`),u<10&&(u=`0${u}`),l<10&&(l=`0${l}`);let m="";return y.includes("fractional")&&(m=Math.round(S%1*1e3),m<10?m=`00${m}`:m<100&&(m=`0${m}`),m=`.${m}`),`${s}:${u}:${l}${m}`}(l,s)}}return(E=y).\u0275fac=function(l){return new(l||E)},E.\u0275pipe=n.EJ8({name:"time",type:E,pure:!0}),y})(),T=(()=>{var E;class y{transform(l){return function M(E){const y=E.toString().split(":");let S=0,l=0,s=0;return y.length>2?(S=parseFloat(y[0]),l=parseFloat(y[1]),s=parseFloat(y[2])):y.length>1?(l=parseFloat(y[0]),s=parseFloat(y[1])):s=parseFloat(y[0]),3600*S+60*l+s}(l)}}return(E=y).\u0275fac=function(l){return new(l||E)},E.\u0275pipe=n.EJ8({name:"seconds",type:E,pure:!0}),y})()},33328:(je,z,c)=>{"use strict";c.d(z,{O:()=>h});var r=c(40482),n=c(58527),v=c(74150);let h=(()=>{var f;class A{constructor(T){this.sanitizer=T}transform(T,E){try{return"url"===E?this.sanitizer.bypassSecurityTrustResourceUrl(T):this.sanitizer.bypassSecurityTrustHtml(T)}catch(y){throw(0,r.RL)(A,y.message)}}}return(f=A).\u0275fac=function(T){return new(T||f)(n.rXU(v.up,16))},f.\u0275pipe=n.EJ8({name:"trustAsHtml",type:f,pure:!0}),A})()},26502:(je,z,c)=>{"use strict";c.d(z,{zk:()=>f});var r=c(40482),n=c(70115),v=c(56123);class f{constructor(){}static isBrowserPlatform(){return!("cefQuery"in window)&&!f.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 f.isBrowserPlatform()||f.isAndroidPlatform()}static isNativeLikePlatform(){return f.isCefPlatform()||f.isAndroidPlatform()}static isPWAModeOnLGTV(){return/(NetCast|Web0S|Linux\/SmartTV).+PWA/.test(navigator.userAgent)}static isPWAModeOnSamsungTV(){return(0,r.mI)()&&!navigator.userAgent.includes("SamsungBrowser")}static isArmPlatform(){return window.navigator.userAgent.toLowerCase().includes(" arm")}static isTouchPlatform(){return!!window.Touch&&navigator.maxTouchPoints>0}static isMobileFromUserAgent(){return navigator.userAgent.toLowerCase().includes("mobile")}static isVisionPro(M){return M.OSName===n.t_.IPadOS&&M.SystemName===v.DeviceModel.VISION_PRO}static isAndroidQuest(M){return f.isAndroidPlatform()&&"oculus"===M.VendorName&&M.SystemName.startsWith("Quest")}}},70115:(je,z,c)=>{"use strict";c.d(z,{Y0:()=>n,dZ:()=>h,rK:()=>f,t_:()=>v});var n=function(A){return A.Desktop="Desktop",A.Laptop="Laptop",A.TV="TV",A.Phone="Phone",A.Tablet="Tablet",A.Server="Server",A.Console="Console",A.Undefined="undefined",A}(n||{}),v=function(A){return A.Windows="Windows",A.MacOS="MacOS",A.Shield="Shield",A.Android="Android",A.IOS="iOS",A.IPadOS="iPadOS",A.ChromeOS="ChromeOS",A.Linux="Linux",A.Tizen="Tizen",A.WebOS="WebOS",A.TvOS="tvOS",A.XBox="Xbox",A.SteamOS="SteamOS",A.VisionOS="visionOS",A.Undefined="undefined",A}(v||{}),h=function(A){return A.CHROME="Chrome",A.SAFARI="Safari",A.YANDEX="Yandex",A.EDGE="Edge",A.EDGE_LEGACY="Edge_legacy",A.FIREFOX="Firefox",A.SAMSUNG="Samsung",A.CHROMIUM="Chromium",A.OPERA="Opera",A.BRAVE="Brave",A.SILK="Silk",A.Undefined="undefined",A}(h||{});const f="undefined"},62502:(je,z,c)=>{"use strict";c.d(z,{Fj:()=>E,gL:()=>A,gr:()=>h,rK:()=>M,u4:()=>T,wx:()=>f});var r=c(70115),n=c(53931);const h={clientId:"{CLIENTID}",clientVer:"{CLIENTVER}",feedbackId:"{FEEDBACKID}",feedbackName:"{FEEDBACKNAME}",feedbackProtocol:"4.4",feedbackSchemaVer:"{FEEDBACKSCHEMAVER}",feedbackSysVer:"",deviceId:n.Qe,userId:n.Qe,externalUserId:n.Qe,idpId:n.Qe,sessionId:n.Qe,sentTs:"",clientTs:"",deviceOS:r.t_.Undefined,deviceOSVersion:n.Qe,deviceMake:n.Qe,deviceModel:n.Qe,deviceType:r.Y0.Undefined,clientType:n.sK.Undefined,clientVariant:n.zg.Undefined,browserType:n.Qe,integrationId:n.Qe,productName:n.Qe,productVersion:n.Qe},f={functional:n.Rg.None,technical:n.Rg.None,behavioral:n.Rg.None},A={bufferSize:5120,chunkCreationTimeout:3e5,chunksQueueSize:20,chunkResendRetryLimit:2},M="undefined";var T=function(y){return y[y.FeedbackRequestAccepted=200]="FeedbackRequestAccepted",y[y.FeedbackSizeOverLimits=413]="FeedbackSizeOverLimits",y[y.InvalidFeedback=460]="InvalidFeedback",y[y.FeedbackIdInUse=461]="FeedbackIdInUse",y[y.FeedbackIdExpired=462]="FeedbackIdExpired",y[y.AttachmentsRejected=466]="AttachmentsRejected",y[y.UnknownClientId=467]="UnknownClientId",y[y.ServerError=500]="ServerError",y}(T||{}),E=function(y){return y[y.AllFramesReceived=200]="AllFramesReceived",y[y.PartialFramesReceived=206]="PartialFramesReceived",y[y.InvalidFeedbackId=462]="InvalidFeedbackId",y[y.NonSequentialChunk=463]="NonSequentialChunk",y[y.FrameChecksumOrSizeMismatch=464]="FrameChecksumOrSizeMismatch",y[y.ServerError=500]="ServerError",y}(E||{})},53931:(je,z,c)=>{"use strict";c.d(z,{Qe:()=>r,Rg:()=>h,sK:()=>n,zg:()=>v});const r="undefined";var n=function(f){return f.Native="Native",f.Browser="Browser",f.GFNSDK="GFNSDK",f.Undefined="undefined",f}(n||{}),v=function(f){return f.iBeta="iBeta",f.Release="Release",f.Undefined="undefined",f}(v||{}),h=function(f){return f.Full="Full",f.None="None",f.Temp="Temp",f}(h||{})},77061:(je,z,c)=>{"use strict";c.d(z,{V:()=>l});var r=c(80583),n=c(26875),h=c(40482),f=c(33089),A=c(62502),M=c(58527),T=c(61142),E=c(30308),y=c(84580);const S="RemoteLogsSaveKey";let l=(()=>{var s;class u{constructor(I,R,O,Y){this.datePipe=I,this.networkStatusService=R,this.injector=O,this.browserLeanModeService=Y,this.logsBuffer="",this.chunksQueue=[],this.maxBufferSizeInBytes=A.gL.bufferSize,this.chunkCreationTimeout=A.gL.chunkCreationTimeout,this.logsChunkUpdated$=new r.B7,this.chunksQueueSize=A.gL.chunksQueueSize,this.chunkResendRetryLimit=A.gL.chunkResendRetryLimit,this.logBufferingAllowed=!0,this.leanModeLogger=!1,this.isGfcHeadRequestSent=!1,this.timerSub$=new r.B7,this.isTimerTriggered=!1,this.refreshFeedbackSessionSubject=new r.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(I=>{this.leanModeLogger=I,I&&this.stopTimeBasedLogCollection()})}addLogger(I,R){const O=(0,h.tO)(I,"INFO",this.datePipe,R);this.appendLogEntry(O)}setHeadRequestStatus(I){this.isGfcHeadRequestSent=I}checkFeasibilityAndSendChunk(I,R=!1,O){!this.isUserConsentAvailable||!this.isGfcHeadRequestSent||R||this.chunkSendInProgress||(0,n.isEmpty)(I)?this.isUserConsentAvailable&&R&&this.logsChunkUpdated$.next({logString:this.sendChunkToServer(I),isLastChunk:R,params:O}):this.logsChunkUpdated$.next({logString:this.sendChunkToServer(I),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 I=this.extractAndSaveChunk();this.checkFeasibilityAndSendChunk(I)}}stopTimeBasedLogCollection(I=""){this.isTimerTriggered=!1,this.timerSub$.next({startTimer:!1,timeout:0}),this.addLogger("LogQueueService",["Stopping log collection timer. "+I])}isBufferSizeWithinLimits(I,R){return!(I.concat(R,this.newLine).length>this.maxBufferSizeInBytes)}sendChunkToServer(I){return this.chunkSendInProgress=!0,I||""}addChunksToQueue(I){this.chunksQueue.length===this.chunksQueueSize&&this.chunksQueue.splice(0,this.chunksQueue.length),this.chunksQueue.push(I),this.chunkResendRetryMap.set(this.chunksQueue[this.chunksQueue.length-1],0)}extractAndSaveChunk(){const I=this.logsBuffer.slice(0);return this.addChunksToQueue(I),this.logsBuffer="",this.popChunkFromQueue()}pushLogToBuffer(I){this.logsBuffer=this.logsBuffer.concat(I,this.newLine)}startTimer(){this.leanModeLogger||(this.timerSub$.next({startTimer:!0,timeout:this.chunkCreationTimeout}),this.isTimerTriggered=!0)}popChunkFromQueue(){const I=this.chunkResendRetryMap.get(this.chunksQueue[0]);return this.isUserConsentAvailable&&this.isGfcHeadRequestSent&&I<=this.chunkResendRetryLimit?(this.chunkResendRetryMap.set(this.chunksQueue[0],I+1),this.chunksQueue.slice(0,1).toString()):(this.isUserConsentAvailable&&this.isGfcHeadRequestSent&&I>this.chunkResendRetryLimit&&this.removeChunkFromSavedQueue(),"")}saveLogsToSessionStorage(){this.addChunksToQueue(this.logsBuffer);const I=JSON.stringify(this.chunksQueue);sessionStorage.setItem(S,I)}readConsoleLogsFromSessionStorage(){const I=JSON.parse(sessionStorage.getItem(S));sessionStorage.removeItem(S),this.appendPreviousLogs(I)}appendPreviousLogs(I){this.chunkResendRetryMap&&this.chunkResendRetryMap.clear(),I=I.concat(this.chunksQueue),this.chunksQueue=I.length>this.chunksQueueSize?I.slice(-this.chunksQueueSize):I;for(let R=0;R<this.chunksQueue.length;R++)this.chunkResendRetryMap.set(this.chunksQueue[R],0)}removeChunkFromSavedQueue(){this.chunkResendRetryMap.delete(this.chunksQueue[0]),this.chunksQueue.splice(0,1)}onNetworkStatusChanged(I){I?this.addLogger("LogQueueService",["LogCollector lib is online right now"]):(this.addLogger("LogQueueService",["LogCollector lib is offline right now"]),this.stopTimeBasedLogCollection())}updateFeedbackSessionStatus(I){this.feedbackSessionClosed=I}getRefreshFeedbackSubjectObservable(){return this.refreshFeedbackSessionSubject.asObservable()}onLogsChunkUpdated(){return this.logsChunkUpdated$.asObservable()}clearQueueAndBuffer(I){const R=this.chunkSendInProgress;this.chunkSendInProgress=!0,this.gfcService=(0,n.isUndefined)(this.gfcService)?this.injector.get(f.NO):this.gfcService;let O="";this.chunksQueue.forEach(Y=>{O=O.concat(Y,this.newLine)}),O=O.concat(this.logsBuffer,this.newLine),this.logBufferingAllowed&&this.isUserConsentAvailable&&(I?(O=O.concat("sendBeacon api is going to be called."),this.gfcService.sendLastFeedbackChunkEvent(O,this.eventData)):(O=O.concat("eob request will be sent for the last chunk."),this.checkFeasibilityAndSendChunk(O,!0,{isBrowserClosing:I,prevChunkInProgress:R}))),this.logsBuffer="",this.chunksQueue=[],this.chunkSendInProgress=!1,this.eventData=null}appendLogEntry(I){if(this.logBufferingAllowed)if(this.isBufferSizeWithinLimits(this.logsBuffer,I))this.pushLogToBuffer(I);else if(this.feedbackSessionClosed)this.feedbackSessionClosed=!1,this.timeBasedLogClearanceCounter=0,this.refreshFeedbackSessionSubject.next(this.timeBasedLogClearanceCounter),this.pushLogToBuffer(I);else{this.timeBasedLogClearanceCounter=0,this.isTimerTriggered&&this.stopTimeBasedLogCollection("due to buffer limit.");const R=this.extractAndSaveChunk();this.pushLogToBuffer(I),this.checkFeasibilityAndSendChunk(R)}}onSendChunkSuccess(){this.chunkSendInProgress=!1,this.removeChunkFromSavedQueue(),0!==this.chunksQueue.length?this.checkFeasibilityAndSendChunk(this.popChunkFromQueue()):this.startTimer()}onSendChunkFailure(I){switch(this.chunkSendInProgress=!1,I.status){case A.Fj.NonSequentialChunk:case A.Fj.FrameChecksumOrSizeMismatch:case A.Fj.ServerError:this.checkFeasibilityAndSendChunk(this.popChunkFromQueue());break;default:console.log("Error encountered in sending chunks: ",I),I.status!==A.Fj.InvalidFeedbackId&&this.checkFeasibilityAndSendChunk(this.popChunkFromQueue())}}stopChunkCollection(I=!1){this.logBufferingAllowed=I,this.stopTimeBasedLogCollection("Going to stop chunk collection. logBufferingAllowed: "+this.logBufferingAllowed+"."),this.clearQueueAndBuffer(!1)}setBufferConfig(I){this.chunkCreationTimeout=I.msBetweenChunkCreation,this.maxBufferSizeInBytes=I.maxBufferSizeInBytes,this.chunksQueueSize=I.chunksQueueSize,this.chunkResendRetryLimit=I.chunkResendRetryLimit}updateUserConsent(I){this.isUserConsentAvailable=I}updateEventData(I){this.eventData={...I}}timerSubscriptionChanged(){return this.timerSub$.asObservable()}updateTimer(I){"Timeout"===I?this.startTimeBasedLogDispatch():"Cleared"===I&&this.addLogger("LogQueueService",["Log collection timer has been stopped"])}ngOnDestroy(){this.logsBuffer=""}}return(s=u).\u0275fac=function(I){return new(I||s)(M.KVO(T.vh),M.KVO(E.C),M.KVO(M.zZn),M.KVO(y.r))},s.\u0275prov=M.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),u})()},72477:(je,z,c)=>{"use strict";c.d(z,{V:()=>O});var r=c(26875),v=c(57258),h=c(43848),f=c(83915),A=c(75707),M=c(14714),T=c(43615),E=c(33089),y=c(40482),S=c(62502),l=c(53931),s=c(58527),u=c(77061),m=c(30308);let O=(()=>{var Y;class j{constructor(te,ce,H){this.injector=te,this.logQueueService=ce,this.networkStatusService=H,this.defaultConsent=S.wx,this.currentUserConsent=S.wx,this.isUserConsentAvailable=!1,this.currentUserId=S.rK,this.externalUserId=S.rK,this.idpId=S.rK,this.commonFeedbackData=S.gr,this.isGfcHeadRequestSent=!1,this.isOnline=!1,this.chunkFailureCount=0,this.attachmentUploadedPermitted=!0,this.streamSubSessionIds=[],this.feedbackIdSubject=new v.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(te){this.defaultConsent=te}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 te={parameters:{streamSessionId:S.rK,streamSubSessionIds:this.streamSubSessionIds}};this.eventData=this.eventData??{},this.eventData.parameters={...this.eventData?.parameters,...te.parameters},this.commonFeedbackData={...this.commonFeedbackData,...this.eventData},this.logQueueService.updateEventData(this.eventData)}}trackIdleFeedbackSessions(){this.logQueueService.getRefreshFeedbackSubjectObservable().pipe((0,f.T)(te=>{3===te?(this.logQueueService.addLogger("RemoteLoggingService",["Stopping feedback upload since max idle timeout duration is reached"]),this.stopFeedbackUpload()):0===te&&(this.logQueueService.addLogger("RemoteLoggingService",["Initiating a new feedback session.."]),this.sendNewGfcHeadRequest())})).subscribe()}onNetworkStatusChanged(te){this.isOnline=te}addGdprConsentFields(){this.commonFeedbackData=(0,r.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,A.ZZ)(te=>(this.logQueueService.addLogger("RemoteLoggingService",["New batch! Attempting to send a batch of size: ",te.logString.length]),this.isChunkUploadPermitted()?this.isOnline&&this.isUserConsentAvailable?this.sendLogsChunk(te.logString,te.isLastChunk,te.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,h.of)(!1)):(this.logQueueService.addLogger("RemoteLoggingService",["Stopping log collection as max failure count is reached."]),this.logQueueService.stopChunkCollection(),(0,h.of)(!1))))).subscribe(te=>{te||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,y.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(te){switch(te.status){case S.u4.FeedbackIdInUse:case S.u4.FeedbackIdExpired:this.logQueueService.setHeadRequestStatus(this.isGfcHeadRequestSent=!1),this.sendNewGfcHeadRequest();break;case S.u4.AttachmentsRejected:this.attachmentUploadedPermitted=!1,this.logQueueService.stopChunkCollection()}}sendGfcHeadRequest(te){this.gfcService=(0,r.isUndefined)(this.gfcService)?this.injector.get(E.NO):this.gfcService,this.isOnline&&this.isUserConsentAvailable&&(te.sentTs=(new Date).toISOString(),this.gfcService.sendFeedbackEvent(te).subscribe(ce=>{this.logQueueService.setHeadRequestStatus(this.isGfcHeadRequestSent=!0),(0,r.isNil)(this.logChunkReceivedSubscription)&&this.getLatestLogsChunk()},ce=>{this.logQueueService.addLogger("RemoteLoggingService",["Send HEAD request error: ",ce]),this.handleHeadRequestErrors(ce)}))}handleExternalUrlLoad(){this.logQueueService.clearQueueAndBuffer(!0)}handleBrowserTabClosure(){window.addEventListener("pagehide",te=>{this.logQueueService.addLogger("RemoteLoggingService",["Window pagehide triggered."]),this.isGfcHeadRequestSent&&this.logQueueService.clearQueueAndBuffer(!0)})}handleSpecialAttachmentErrors(te){if(this.isChunkUploadPermitted()&&te.status===S.Fj.InvalidFeedbackId)this.sendNewGfcHeadRequest();else if(this.isChunkUploadPermitted()&&te.status===S.Fj.NonSequentialChunk){const ce=te?.rawResponse?.headers?.get("x-data-offset");this.gfcService.updateOffsetOnSuccessfulAttachmentRequest(ce)}else this.isChunkUploadPermitted()||(this.logQueueService.addLogger("RemoteLoggingService",["Attachment error, stopping log collection as max failure count is reached."]),this.logQueueService.stopChunkCollection())}sendLogsChunk(te,ce,H){return this.gfcService.sendFeedbackChunkEvent(te,this.eventData,ce,H).pipe((0,A.ZZ)(Z=>(this.gfcService.updateOffsetOnSuccessfulAttachmentRequest(),this.logQueueService.onSendChunkSuccess(),(0,h.of)(!0))),(0,M.W)(Z=>(this.logQueueService.addLogger("RemoteLoggingService",["Failure in sending a chunk: ",Z]),Z?.status?(this.chunkFailureCount++,this.handleSpecialAttachmentErrors(Z),this.logQueueService.onSendChunkFailure(Z)):this.logQueueService.addLogger("RemoteLoggingService",["Non GFC error occurred: ",Z,Z?.message]),(0,h.of)(!1))),(0,T.j)(()=>{ce&&H?.isBrowserClosing&&this.terminateChunkReceivedSubscription()}))}prepareGfcFeedbackEventParams(te){this.eventData={parameters:te},this.logQueueService.updateEventData(this.eventData)}prepareFeedbackCommonEventData(te){this.commonFeedbackData=(0,r.merge)(this.commonFeedbackData,te),this.feedbackIdSubject.next(this.commonFeedbackData.feedbackId),this.commonFeedbackData.userId===S.rK&&this.logQueueService.updateUserConsent(this.isUserConsentAvailable=!1)}setUserConsent(te){this.currentUserConsent=te.userConsent,(0,r.isEmpty)(te.externalUserId)?(this.externalUserId=te.userId,this.currentUserId=E.Qe,this.idpId=E.Qe):(this.currentUserId=te.userId,this.externalUserId=te.externalUserId,this.idpId=te.idpId),this.currentUserConsent.technical===l.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,r.extend)(this.commonFeedbackData,this.eventData)):this.logQueueService.updateUserConsent(this.isUserConsentAvailable=!1),this.isGfcHeadRequestSent||this.sendGfcHeadRequest(this.commonFeedbackData)}collectLogString(te){this.logQueueService.appendLogEntry(te)}setBufferConfiguration(te){this.logQueueService.setBufferConfig(te)}updateEventDataParamIds(te){te.streamSessionId?(0!==this.streamSubSessionIds.filter(ce=>""===ce).length&&this.streamSubSessionIds.splice(0,1),this.streamSubSessionIds.push(te.streamSubSessionId),this.eventData=(0,r.merge)(this.eventData,{parameters:{streamSessionId:te.streamSessionId,streamSubSessionIds:this.streamSubSessionIds}})):te.surveySessionId&&(this.eventData=(0,r.merge)(this.eventData,{parameters:{surveySessionId:te.surveySessionId}})),this.logQueueService.updateEventData(this.eventData)}get feedbackId$(){return this.feedbackIdSubject.asObservable()}ngOnDestroy(){this.terminateChunkReceivedSubscription()}}return(Y=j).\u0275fac=function(te){return new(te||Y)(s.KVO(s.zZn),s.KVO(u.V),s.KVO(m.C))},Y.\u0275prov=s.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"}),j})()},57118:(je,z,c)=>{"use strict";c.d(z,{Eb:()=>h,cq:()=>f});var h=function(A){return A.LoginHint="login_hint",A.IdpId="idp_id",A}(h||{}),f=function(A){return A.NVAPP="nvapp",A.GFN="gfn",A.GFN_WEB="gfn-web",A}(f||{})},37768:(je,z,c)=>{"use strict";c.d(z,{I:()=>s});var r=c(57118),n=c(43848),v=c(83915),h=c(75707),f=c(14714),A=c(91384),M=c(8619),T=c(65706),E=c(85161),y=c(58527),S=c(64100),l=c(3678);let s=(()=>{var u;class m{constructor(R,O,Y){this.configStore=R,this.loggingService=O,this.router=Y,this.cachedSsoLoginInfo=null,this.browserSsoLoginHint=null,this.currentloginSilentLoginInfoUpdateStatus=!1,this.logger=this.loggingService.getLogger("silentlogin/loginhint-service")}isEmptySilentLoginInfo(R){return!(R&&R.idp_id&&R.login_hint&&R.applicationName&&""!==R.idp_id.trim()&&""!==R.login_hint.trim()&&""!==R.applicationName.trim())}returnNullIfEmpty(R){return R.pipe((0,v.T)(O=>this.isEmptySilentLoginInfo(O)?null:O))}updateSsoLoginInfoEntry(R,O,Y,j){const fe={idp_id:O,login_hint:Y,applicationName:j};return R&&!this.isEmptySilentLoginInfo(fe)?(this.currentloginSilentLoginInfoUpdateStatus=!0,this.updateSsoLoginInfoEntryInternal(fe)):this.cleanUpSsoLoginInfo(j)}updateSsoLoginInfoEntryInternal(R){return this.getSsoLoginInfo().pipe((0,h.ZZ)(O=>O&&O.applicationName===R?.applicationName&&O.idp_id===R?.idp_id&&O.login_hint===R?.login_hint?(this.logger.info("No changes detected in SSO login info."),(0,n.of)(!1)):this.setSsoLoginInfo(R)),(0,f.W)(O=>(this.logger.error("Error updating SsoLoginInfoEntry",O),(0,n.of)(!1))))}mapAppInfoToSsoLoginInfoEntry(R){return{idp_id:R?.idpId,login_hint:R?.loginHint,applicationName:R?.applicationName}}getSsoLoginInfo(){const R=this.extractAndClearLoginHintQueryParams();return R&&!this.isEmptySilentLoginInfo(R)?(this.browserSsoLoginHint=R,(0,n.of)(this.browserSsoLoginHint)):this.cachedSsoLoginInfo&&!this.isEmptySilentLoginInfo(this.cachedSsoLoginInfo)?(0,n.of)(this.cachedSsoLoginInfo):this.configStore.readAppInfoFromPersistence().pipe((0,v.T)((O=[])=>{const Y=O.find(j=>{const fe=this.mapAppInfoToSsoLoginInfoEntry(j);return!this.isEmptySilentLoginInfo(fe)});return Y?this.mapAppInfoToSsoLoginInfoEntry(Y):null}),this.returnNullIfEmpty.bind(this),(0,A.M)(O=>this.cachedSsoLoginInfo=O),(0,f.W)(O=>(this.logger.error("Error occurred while reading the loginids file -",O),(0,n.of)(null))))}extractAndClearLoginHintQueryParams(){const R=new URL(window.location.href),O=R.searchParams;let Y=null;if(O.has(r.Eb.LoginHint)&&O.has(r.Eb.IdpId)){const j=O.get(r.Eb.LoginHint),fe=O.get(r.Eb.IdpId);j&&""!==j.trim()&&fe&&""!==fe.trim()?Y={login_hint:decodeURIComponent(j),idp_id:decodeURIComponent(fe),applicationName:r.cq.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,M.p)(te=>te instanceof E.wF),(0,T.s)(1)).subscribe(te=>{this.logger.info(`Cleaning up login hint from: ${te.url}`),O.delete(r.Eb.LoginHint),O.delete(r.Eb.IdpId),window.history.replaceState({},"",R)})}return Y}setSsoLoginInfo(R){return this.configStore.writeAppInfoToPersistence({applicationName:R.applicationName,idpId:R?.idp_id,loginHint:R?.login_hint}).pipe((0,A.M)(O=>{O&&(this.cachedSsoLoginInfo=R)}),(0,f.W)(O=>(this.logger.error("Error occurred in writeConfigFile:",O),(0,n.of)(!1))))}cleanUpSsoLoginInfo(R){if(!this.isEmptySilentLoginInfo(this.cachedSsoLoginInfo)){const O=this.cachedSsoLoginInfo?.applicationName;if(this.cachedSsoLoginInfo=null,R===O&&this.currentloginSilentLoginInfoUpdateStatus)return this.currentloginSilentLoginInfoUpdateStatus=!1,this.setSsoLoginInfo({applicationName:R,idp_id:"",login_hint:""})}return this.browserSsoLoginHint=null,(0,n.of)(!0)}}return(u=m).\u0275fac=function(R){return new(R||u)(y.KVO(S.j),y.KVO(l.J6),y.KVO(E.Ix))},u.\u0275prov=y.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),m})()},60045:(je,z,c)=>{"use strict";c.d(z,{S:()=>n,r:()=>v});var r=c(58527),n=function(h){return h.Gfe="gfeclient",h.Gfn="gfnclient",h.Igo="shareclient",h.Forager="foragerclient",h.Nvcpl="controlPanelclient",h.Oogg="ooggclient",h.Vdkplaytest="vdkplaytest",h.Nvapp="nvapp",h.Gdn="gdnclient",h}(n||{});let v=(()=>{var h;class f{}return(h=f).\u0275fac=function(M){return new(M||h)},h.\u0275prov=r.jDH({token:h,factory:h.\u0275fac}),f})()},3816:(je,z,c)=>{"use strict";c.d(z,{Sg:()=>J.S,cq:()=>wa.cq,NZ:()=>r.NZ,rQ:()=>$n.r,dZ:()=>Ue.dZ,cr:()=>Si.c,Y0:()=>Ue.Y0,T6:()=>ei,Rg:()=>Gn.Rg,_N:()=>xi._,Je:()=>be,sc:()=>Fn,at:()=>Pi,t_:()=>Ue.t_,Jm:()=>br,FK:()=>di,MY:()=>ue,SQ:()=>Ii,Ff:()=>wi,Pl:()=>Ri,lR:()=>vr,rB:()=>Er,wt:()=>zt,iH:()=>Le,Vy:()=>H.Vy,q_:()=>sa.q,J6:()=>H.J6,IU:()=>po.I,dU:()=>Ar,D4:()=>Ao,CF:()=>Vt.C,Sd:()=>y,zk:()=>h.zk,Q_:()=>ln,iX:()=>Ai,pZ:()=>cs,Lu:()=>S,zW:()=>le,Qe:()=>Gn.Qe,s7:()=>$e,BU:()=>Ie,BY:()=>ye});var f,r=c(10607),n=c(65240),v=c(57258),h=c(26502);class A{static sendTelemetry(Dt){A.retrySubject.subscribe({next:Xt=>{Dt.info(Xt.isSuccess?"success event ":"failure event ",Date.now(),Xt)}})}static retry(Dt,Xt,St=A.retryAttempts,Sn=A.intervalBetweenRetries){let Jn;return new Promise((oi,Ji)=>{Dt().then(function(Ei){return h.zk.isBrowserPlatform()&&(Jn={isSuccess:!0,attemptCount:A.retryAttempts+1-St,error:null,fileName:Xt},A.retrySubject.next(Jn)),oi(Ei)}).catch(Ei=>{if(h.zk.isBrowserPlatform()){if(Jn={isSuccess:!1,attemptCount:A.retryAttempts+1-St,error:Ei,fileName:Xt},A.retrySubject.next(Jn),1===St)return void Ji(Ei);setTimeout(()=>{A.retry(Dt,Xt,St-1,A.intervalBetweenRetries*(A.retryAttempts+1-St)).then(oi,Ji)},Sn)}else Ji(Ei)})})}}(f=A).retrySubject=new v.m(5),f.retryAttempts=5,f.intervalBetweenRetries=50;var M=c(43848),T=c(59859),E=c(26875);const y={Ethernet:"Ethernet",WiFi2_4:"WiFi 2.4",WiFi5_0:"WiFi 5.0",WiFi6_0:"WiFi 6.0",WiFiUnknown:"WiFi Unknown",Mobile:"Mobile",Other:"Other",Unknown:"Unknown"};var S=function(Nt){return Nt.DeviceId="DeviceId",Nt.ProductVersion="ProductVersion",Nt.ProductName="ProductName",Nt.Region="Region",Nt.CPUName="CPUName",Nt.Disk="Disk",Nt.PhysicalDisk="PhysicalDisk",Nt.Display="Display",Nt.GPU="GPU",Nt.HID="HID",Nt.Network="Network",Nt.OSName="OSName",Nt.OSVersion="OSVersion",Nt.BrowserName="BrowserName",Nt.BrowserVersion="BrowserVersion",Nt.OSBuildNumber="OSBuildNumber",Nt.PhysicalMemoryCapacity="PhysicalMemoryCapacity",Nt.Platform="Platform",Nt.ProcessorArchitecture="ProcessorArchitecture",Nt.SystemName="SystemName",Nt.UserDefaultUILanguage="UserDefaultUILanguage",Nt.VendorName="VendorName",Nt.SubApiName="SubApiName",Nt.ErrorMessage="ErrorMessage",Nt.ApiStatus="ApiStatus",Nt.ApiName="ApiName",Nt.PluginName="PluginName",Nt.DxVersion="DxVersion",Nt.DeviceType="DeviceType",Nt.ConfidenceInBrowser="ConfidenceInBrowser",Nt.IsBrowserForged="IsBrowserForged",Nt.Location="Location",Nt.Make="Make",Nt.Model="Model",Nt.CurrentUiMode="CurrentUiMode",Nt}(S||{});const l=[S.CPUName,S.OSName,S.OSVersion,S.BrowserName,S.BrowserVersion,S.OSBuildNumber,S.PhysicalMemoryCapacity,S.Platform,S.ProcessorArchitecture,S.SystemName,S.VendorName,S.DeviceType,S.ConfidenceInBrowser,S.IsBrowserForged,S.DeviceId,S.ProductVersion,S.ProductName,S.Make,S.Model,S.UserDefaultUILanguage,S.DxVersion],s=l.filter(Nt=>Nt!==S.DxVersion);Object.values(S);var m=c(83915),I=c(14714),R=c(75707),O=c(91384),Y=c(86447),j=c(72147),fe=c(65726),te=c(10174),ce=c(53461),H=c(3678);class Z{constructor(Dt,Xt,St,Sn="assets/i18n/",Jn=".json"){this.http=Dt,this.prefix=Sn,this.suffix=Jn,this.config={},this.logger=Xt.getLogger("FallbackTranslationLoader"),this.config.localeFileHashes=St}getTranslation(Dt){let Xt;return Xt=this.config.localeFileHashes&&this.config.localeFileHashes[Dt]?`${this.prefix}${Dt}.${this.config.localeFileHashes[Dt]}${this.suffix}`:`${this.prefix}${Dt}${this.suffix}`,this.http.get(Xt)}}var X=c(94485);const ue="en_GB",be="en_US",Q=["ar"],ne=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-Latn_CN",["zh_CN"]]]);var Ge=c(10785),ge=c(58527),Xe=c(31315),ot=c(65706),dt=c(74931),xe=c(40482),Re=function(Nt){return Nt.Windows="Windows",Nt.Mac="Mac",Nt}(Re||{}),Ue=c(70115),ee=c(31650);let le=(()=>{var Nt;class Dt{constructor(St,Sn,Jn){this.bridgeService=Sn,this.previousSystemInfo={},this.systemInfoGuid=(0,xe.bz)(),this.systemInfoGuidSubject=new v.m(1),this.streams=new Map,this.logger=St.getLogger("crimson/SystemInfoService"),this.clientHeaderInfoStream=Jn.createStream(()=>this.fetchClientHeadersInfo(),!0,!0,!0,3e4),Object.values(S).forEach(oi=>{l.includes(oi)?this.streams.set(oi,Jn.createStream(()=>this.fetchSpecificSystemInfo(oi))):this.streams.set(oi,Jn.createStream(()=>this.fetchSpecificSystemInfo(oi),!0,!0,!0,3e4))}),this.getSystemInfo(s).subscribe()}checkStreamingSupport(){return this.bridgeService.executeCommand(dt.Ts.Common.Systeminfo.GetStreamingSupportInfo).pipe((0,m.T)(St=>St.IsStreamingSupported))}fetchDeviceId(){return this.bridgeService.executeCommand(dt.Ts.Common.Systeminfo.GetDeviceId).pipe((0,m.T)(St=>({DeviceId:St.DeviceID})))}getSystemInfoGuid(){return this.systemInfoGuidSubject.asObservable()}updateSystemInfoGuid(St){(0,E.isEqual)(St,this.previousSystemInfo)||(this.systemInfoGuid=(0,xe.bz)(),this.previousSystemInfo=St),this.systemInfoGuidSubject.next(this.systemInfoGuid)}fetchClientHeadersInfo(){return h.zk.isAndroidPlatform()?this.bridgeService.executeCommand(dt.Ts.Common.Systeminfo.GetSystemInfo):this.bridgeService.executeCommand(dt.Ts.Common.Systeminfo.GetClientHeadersInfo)}fetchSystemInfo(St){const Sn=new Set(St),Jn=[];if(Sn.delete(S.DeviceId)){const oi=this.fetchDeviceId();Jn.push(oi)}if(h.zk.isCefPlatform()&&(Sn.delete(S.BrowserName)||Sn.delete(S.BrowserVersion))){const oi=this.fetchBrowserInfo();Jn.push(oi)}if(Sn.size){const oi=this.bridgeService.executeCommand(dt.Ts.Common.Systeminfo.GetSystemInfo,{keys:[...Sn]}).pipe((0,m.T)(Ji=>(delete Ji._return_code,delete Ji._return_status,delete Ji._return_internal,Ji)));Jn.push(oi)}return(0,Xe.zV)([...Jn]).pipe((0,m.T)(oi=>{let Ji={};return oi.forEach(Ei=>{Ji={...Ji,...Ei}}),Ji}),(0,O.M)(oi=>{const Ji={...this.previousSystemInfo,...oi};this.updateSystemInfoGuid(Ji)}))}fetchBrowserInfo(){return this.bridgeService.executeCommand(dt.Ts.Common.Systeminfo.GetBrowserInfo).pipe((0,m.T)(St=>({BrowserName:St?.BrowserNameNative||Ue.rK,BrowserVersion:St?.BrowserVersionNative||Ue.rK})))}fetchSpecificSystemInfo(St){return this.fetchSystemInfo([St])}getSystemInfo(St,Sn=!1){if(Sn)return this.fetchSystemInfo(St);const Jn=[],oi={};return St.forEach(Ji=>{const Ei=this.streams.get(Ji)?.getData();Ei&&Ei[Ji]?oi[Ji]=Ei[Ji]:Jn.push(Ji)}),0===Jn.length?(0,M.of)(oi):this.fetchSystemInfo(Jn).pipe((0,m.T)(Ji=>({...oi,...Ji})),(0,O.M)(Ji=>{Object.keys(Ji).forEach(Ei=>{this.streams.has(Ei)?this.streams.get(Ei).setData(Ji,!0):this.logger.error("No systemInfo stream for key ",Ei)})}))}getClientHeadersInfo(St=!1){return St?this.clientHeaderInfoStream.refresh().pipe((0,ot.s)(1)):this.clientHeaderInfoStream.get$().pipe((0,ot.s)(1))}getDeviceOSType(){return this.getSystemInfo([S.OSName,S.Platform]).pipe((0,m.T)(St=>h.zk.isBrowserLikePlatform()?St.OSName:St.Platform===Re.Mac?Ue.t_.MacOS:St.Platform===Re.Windows?Ue.t_.Windows:Ue.t_.Undefined))}}return(Nt=Dt).BrowserNameNative="Chrome",Nt.\u0275fac=function(St){return new(St||Nt)(ge.KVO(H.J6),ge.KVO(ee.N),ge.KVO(xe.mZ))},Nt.\u0275prov=ge.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Dt})();var oe=c(22743);let Le=(()=>{var Nt;class Dt{constructor(St,Sn,Jn,oi,Ji){this.translate=Sn,this.systemInfoService=Jn,this.config=Ji,this.rtlLocaleSupported=!1,this.rtlLayoutEnabled=!1,this.layoutDirectionUpdated$=new v.m(1),this.retrySubject=new v.m(5),this.isSuccessEventSent=!1,this.isDirectionalityInitialized=!1,this.logger=St.getLogger("LocaleService"),this.localeChangedSubscription=oi.createStream(this.updateLocale.bind(this)),this.translate.setDefaultLang(be)}updateLocale(){return this.systemInfoService.getSystemInfo([S.UserDefaultUILanguage]).pipe((0,m.T)(St=>{let Sn=St.UserDefaultUILanguage;return((0,E.isEmpty)(Sn)||this.isRTLLocale(Sn)&&!this.isRTLLocaleSupported)&&(this.logger.error(`Missing default UI language. Falling back to ${ue} for default language.`),Sn=ue),Sn}),(0,I.W)(()=>(this.logger.error(`Failed to get system info. Falling back to ${this.defaultLocale} for default language.`),(0,M.of)(ue))),(0,R.ZZ)(St=>{let Sn=St;return(0,E.isNil)(this.config.supportedLang.find(Jn=>Jn===Sn))&&(Sn=this.getMappedLocale(Sn)),this.defaultLocale=Sn,this.updateCurrentLocale()}),(0,O.M)(St=>this.logger.info("Locale set to "+St)))}getLocaleDownloadRetryTelemetryData(){return this.retrySubject}retryOnFailure(St,Sn){let Jn=1;return St.pipe((0,Y.l)(oi=>oi.pipe((0,j.n)(Ji=>h.zk.isBrowserPlatform()?(this.isSuccessEventSent=!1,this.retrySubject.next({isSuccess:!1,attemptCount:Jn,error:null,fileName:Sn+".json"}),Jn>=A.retryAttempts?(this.isSuccessEventSent=!0,this.logger.info("Locale JSON dowload retries expired."),(0,T.$)(Ji)):(this.logger.info("Locale JSON dowload failed, trying again ",Jn),Jn+=1,(0,M.of)(Ji))):(this.logger.error("Not a Browser Client, so retry skipped",Ji),(0,T.$)(Ji))),(0,fe.c)(Jn*A.intervalBetweenRetries))),(0,O.M)(()=>{Ge.locale(Sn),!this.isSuccessEventSent&&h.zk.isBrowserPlatform()&&(this.retrySubject.next({isSuccess:!0,attemptCount:Jn,error:null,fileName:Sn+".json"}),this.isSuccessEventSent=!0)}))}updateCurrentLocale(){const St=(0,E.isNil)(this.currentLocale)?this.defaultLocale:this.currentLocale;return this.retryOnFailure(this.translate.use(St),St).pipe((0,te.u)(St),(0,I.W)(Sn=>(this.logger.error("Locale Json download failed with error ",Sn),this.useMappedLocale(St))))}getMappedLocale(St){let Sn;return!(0,E.isEmpty)(St)&&St.startsWith("zh_Hant")&&(Sn="zh_TW"),!(0,E.isEmpty)(St)&&ne.get(St)&&(Sn=ne.get(St)?.find(oi=>this.config.supportedLang.includes(oi))),!Sn&&St!==ue&&!(0,E.isEmpty)(St)&&St.length>=2&&(Sn=ne.get(St.substr(0,2))?.find(oi=>this.config.supportedLang.includes(oi))),Sn=Sn||ue,this.logger.info(`Mapped locale for ${St} is: ${Sn}`),Sn}useMappedLocale(St){const Sn=this.getMappedLocale(St);return this.isSuccessEventSent=!1,this.retryOnFailure(this.translate.use(Sn),Sn).pipe((0,te.u)(Sn),(0,I.W)(()=>Sn!==ue?(this.logger.error(`Could not find translations for ${St}, falling back to ${ue}`),this.useMappedLocale(ue)):(0,T.$)(`Could not load fallback locale ${ue}. Translations cannot be loaded.`)))}updateUIDirectionality(){this.isRTLLayoutEnabled=this.isRTLLocale(this.getLocale());const St=document?.getElementsByTagName("html")[0];St.dir=this.isRTLLayoutEnabled?"rtl":"ltr";const Sn=document?.getElementsByTagName("body")[0];Sn.dir=this.isRTLLayoutEnabled?"rtl":"ltr",Sn.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(St){return(0,E.isNil)(this.config.supportedLang.find(Sn=>Sn===St))&&(St=this.getMappedLocale(St)),St===this.currentLocale?(0,M.of)(this.currentLocale):(this.currentLocale=St,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,ce.F)(),(0,O.M)(()=>{(!this.isDirectionalityInitialized||this.isDirectionalityChanged())&&this.updateUIDirectionality()}))}get isRTLLocaleSupported(){return this.rtlLocaleSupported}set isRTLLocaleSupported(St){this.rtlLocaleSupported=St}get isRTLLayoutEnabled(){return this.rtlLayoutEnabled}set isRTLLayoutEnabled(St){this.rtlLayoutEnabled=St,this.layoutDirectionUpdated$.next(!0)}isRTLLocale(St){return Q.includes(St.substr(0,2))}}return(Nt=Dt).\u0275fac=function(St){return new(St||Nt)(ge.KVO(H.J6),ge.KVO(n.c$),ge.KVO(le),ge.KVO(xe.mZ),ge.KVO(oe.v))},Nt.\u0275prov=ge.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Dt})();function ye(Nt){return n.h.forRoot({loader:{provide:n.Wr,useFactory:(Dt,Xt)=>function Oe(Nt,Dt,Xt){return new Z(Nt,Dt,Xt)}(Dt,Xt,Nt),deps:[X.Qq,H.J6]}})}function Ie(){return n.h.forChild()}c(70521),c(72477);var Qe=function(Nt){return Nt.INFO="INFO",Nt.WARN="WARN",Nt.DEBUG="DEBUG",Nt.ERROR="ERROR",Nt}(Qe||{});let zt=(()=>{var Nt;class Dt{constructor(St){this.loggingService=St}logBasedOnLevel(St){switch(St.logLevel){case Qe.INFO:case Qe.DEBUG:this.logger.info(St.logStr,St.timeStamp);break;case Qe.ERROR:this.logger.error(St.logStr,St.timeStamp);break;case Qe.WARN:this.logger.warn(St.logStr,St.timeStamp)}}sendLog(St){this.logger=this.loggingService.getLogger(St.logModule?St.logModule+"/"+St.logTag:St.logTag),this.logBasedOnLevel(St)}}return(Nt=Dt).\u0275fac=function(St){return new(St||Nt)(ge.KVO(H.J6))},Nt.\u0275prov=ge.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Dt})();var Vt=c(30308),de=c(36877),J=c(60045);let $e=(()=>{var Nt;class Dt{constructor(St,Sn){this.logger=St.getLogger("crimson/windowService"),this.windowRef=window||{},this.windowRef.name=Sn.name}get window(){return this.windowRef}getFocusEvent(){return(0,de.R)(window,"focus")}getPageShowEvent(){return(0,de.R)(window,"pageshow")}getKeydownEvent(){return(0,de.R)(window,"keydown")}getKeyupEvent(){return(0,de.R)(window,"keyup")}}return(Nt=Dt).\u0275fac=function(St){return new(St||Nt)(ge.KVO(H.J6),ge.KVO(J.r))},Nt.\u0275prov=ge.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Dt})(),st=(()=>{var Nt;class Dt{get globalStores(){return this.globalStoreDefMap}get userStores(){return this.userStoreDefMap}get appDbName(){return this.dbName}constructor(St){this.dbName=St.name,this.globalStoreDefMap=new Map,this.userStoreDefMap=new Map}defineStore(St,Sn){const Jn=St.storeName;if(Sn.has(Jn))throw new Error(`Error: store name already exists: ${Jn}`);let oi;return St.name=this.dbName,St.hasOwnProperty("storeDefault")&&(oi=St.storeDefault,delete St.storeDefault),Sn.set(Jn,{config:St,upgrades:new Map,storeDefault:oi}),this}defineUpgrade(St,Sn,Jn,oi){const Ji=oi.get(St);return Ji.upgrades.set(Sn,Jn),Ji.upgradeTargetVersion=Sn,this}defineGlobalStore(St){return this.defineStore.call(this,St,this.globalStoreDefMap)}defineUserStore(St){return this.defineStore.call(this,St,this.userStoreDefMap)}upgradeGlobalStore(St,Sn,Jn){return this.defineUpgrade.call(this,St,Sn,Jn,this.globalStoreDefMap)}upgradeUserStore(St,Sn,Jn){return this.defineUpgrade.call(this,St,Sn,Jn,this.userStoreDefMap)}}return(Nt=Dt).\u0275fac=function(St){return new(St||Nt)(ge.KVO(J.r))},Nt.\u0275prov=ge.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Dt})();var Gt=c(80583),Zt=c(63997),kn=c(19392),Un=c(70650);const ni=(Nt,Dt)=>Dt.some(Xt=>Nt instanceof Xt);let qe,mi;const Bn=new WeakMap,jn=new WeakMap,It=new WeakMap,vn=new WeakMap,Vn=new WeakMap;let Ct={get(Nt,Dt,Xt){if(Nt instanceof IDBTransaction){if("done"===Dt)return jn.get(Nt);if("objectStoreNames"===Dt)return Nt.objectStoreNames||It.get(Nt);if("store"===Dt)return Xt.objectStoreNames[1]?void 0:Xt.objectStore(Xt.objectStoreNames[0])}return gt(Nt[Dt])},set:(Nt,Dt,Xt)=>(Nt[Dt]=Xt,!0),has:(Nt,Dt)=>Nt instanceof IDBTransaction&&("done"===Dt||"store"===Dt)||Dt in Nt};function bt(Nt){return"function"==typeof Nt?function We(Nt){return Nt!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function _i(){return mi||(mi=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Nt)?function(...Dt){return Nt.apply(wt(this),Dt),gt(Bn.get(this))}:function(...Dt){return gt(Nt.apply(wt(this),Dt))}:function(Dt,...Xt){const St=Nt.call(wt(this),Dt,...Xt);return It.set(St,Dt.sort?Dt.sort():[Dt]),gt(St)}}(Nt):(Nt instanceof IDBTransaction&&function it(Nt){if(jn.has(Nt))return;const Dt=new Promise((Xt,St)=>{const Sn=()=>{Nt.removeEventListener("complete",Jn),Nt.removeEventListener("error",oi),Nt.removeEventListener("abort",oi)},Jn=()=>{Xt(),Sn()},oi=()=>{St(Nt.error||new DOMException("AbortError","AbortError")),Sn()};Nt.addEventListener("complete",Jn),Nt.addEventListener("error",oi),Nt.addEventListener("abort",oi)});jn.set(Nt,Dt)}(Nt),ni(Nt,function Bi(){return qe||(qe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Nt,Ct):Nt)}function gt(Nt){if(Nt instanceof IDBRequest)return function ht(Nt){const Dt=new Promise((Xt,St)=>{const Sn=()=>{Nt.removeEventListener("success",Jn),Nt.removeEventListener("error",oi)},Jn=()=>{Xt(gt(Nt.result)),Sn()},oi=()=>{St(Nt.error),Sn()};Nt.addEventListener("success",Jn),Nt.addEventListener("error",oi)});return Dt.then(Xt=>{Xt instanceof IDBCursor&&Bn.set(Xt,Nt)}).catch(()=>{}),Vn.set(Dt,Nt),Dt}(Nt);if(vn.has(Nt))return vn.get(Nt);const Dt=bt(Nt);return Dt!==Nt&&(vn.set(Nt,Dt),Vn.set(Dt,Nt)),Dt}const wt=Nt=>Vn.get(Nt),Mi=["get","getKey","getAll","getAllKeys","count"],En=["put","add","delete","clear"],Tn=new Map;function Cn(Nt,Dt){if(!(Nt instanceof IDBDatabase)||Dt in Nt||"string"!=typeof Dt)return;if(Tn.get(Dt))return Tn.get(Dt);const Xt=Dt.replace(/FromIndex$/,""),St=Dt!==Xt,Sn=En.includes(Xt);if(!(Xt in(St?IDBIndex:IDBObjectStore).prototype)||!Sn&&!Mi.includes(Xt))return;const Jn=function(){var oi=(0,Un.A)(function*(Ji,...Ei){const Ee=this.transaction(Ji,Sn?"readwrite":"readonly");let Pr=Ee.store;return St&&(Pr=Pr.index(Ei.shift())),(yield Promise.all([Pr[Xt](...Ei),Sn&&Ee.done]))[0]});return function(Ei){return oi.apply(this,arguments)}}();return Tn.set(Dt,Jn),Jn}!function Et(Nt){Ct=Nt(Ct)}(Nt=>({...Nt,get:(Dt,Xt,St)=>Cn(Dt,Xt)||Nt.get(Dt,Xt,St),has:(Dt,Xt)=>!!Cn(Dt,Xt)||Nt.has(Dt,Xt)}));var Wn=c(12532),Oi=c(79539),Qn=c(43615);class Fi{constructor(Dt,Xt,St){this.completesExternally=Dt,this.callbacks=Xt,this.staticWorkerFn=St,this.requestQueue$=new Gt.B7,this.startRequestQueue()}startRequestQueue(){this.requestQueue$.pipe((0,Oi.H)(Dt=>Dt.workerFn.pipe((0,R.ZZ)(Xt=>{if(Dt.response$.observers.length){if(this.completesExternally)return this.onRequestComplete$=new v.m(1),Dt.response$.next(Xt),Dt.response$.complete(),this.callbacks.next&&this.callbacks.next(Xt),this.onRequestComplete$;Dt.response$.next(Xt),Dt.response$.complete(),this.callbacks.next&&this.callbacks.next(Xt)}return(0,M.of)(!0)}),(0,I.W)(Xt=>(Dt.response$.error(Xt),Dt.response$.complete(),this.callbacks.error&&this.callbacks.error(Xt),(0,M.of)(Xt))),(0,Qn.j)(()=>{this.callbacks.complete&&this.callbacks.complete()})))).subscribe()}queue(...Dt){let Xt;return Xt=(0,Zt.v)(this.staticWorkerFn?()=>this.staticWorkerFn(...Dt):Dt.length>1?()=>Dt[0](Dt.slice(1)):()=>Dt[0]()),(0,Zt.v)(()=>{const St={workerFn:Xt,response$:new Gt.B7};return this.requestQueue$.next(St),St.response$.asObservable()})}notifyRequestCompletion(){this.completesExternally&&(this.onRequestComplete$.next(!0),this.onRequestComplete$.complete())}}var Ai=function(Nt){return Nt[Nt.High=0]="High",Nt[Nt.Normal=1]="Normal",Nt[Nt.Low=2]="Low",Nt}(Ai||{});class ln{constructor(Dt,Xt){this.completesExternally=Dt,this.callbacks=Xt,this.requestQueue=[],this.requestStream$=new Gt.B7,this.isProcessing=!1,this.startRequestQueue()}startRequestQueue(){this.requestStream$.pipe((0,Oi.H)(Dt=>Dt.isCancelled?(Dt.response$.complete(),Wn.w.pipe((0,Qn.j)(this.onRequestComplete.bind(this)))):Dt.workerFn.pipe((0,R.ZZ)(Xt=>{if(Dt.response$.observers.length){if(this.completesExternally)return this.onRequestComplete$=new v.m(1),Dt.response$.next(Xt),Dt.response$.complete(),this.callbacks.next&&this.callbacks.next(Xt),this.onRequestComplete$;Dt.response$.next(Xt),Dt.response$.complete(),this.callbacks.next&&this.callbacks.next(Xt)}return(0,M.of)(!0)}),(0,I.W)(Xt=>(Dt.response$.error(Xt),Dt.response$.complete(),this.callbacks.error&&this.callbacks.error(Xt),(0,M.of)(Xt))),(0,Qn.j)(this.onRequestComplete.bind(this))))).subscribe()}onRequestComplete(){this.callbacks.complete&&this.callbacks.complete(),this.isProcessing=!1,this.processQueue()}processQueue(){!this.isProcessing&&this.requestQueue.length&&(this.isProcessing=!0,this.requestStream$.next(this.requestQueue.shift()))}queue(Dt,Xt,...St){const Sn=(0,Zt.v)(St.length>1?()=>St[0](St.slice(1)):()=>St[0]());return(0,Zt.v)(()=>{const Jn={priority:Dt,workerFn:Sn,args:[...St],isCancelled:!1,response$:new Gt.B7,insertionIndex:this.requestQueue.length};if(!Xt){const oi=this.getRequest(St);if(oi)return Dt!==oi.priority&&(oi.priority=Dt),oi.response$.asObservable()}return this.requestQueue.push(Jn),this.requestQueue=(0,E.orderBy)(this.requestQueue,["priority","insertionIndex"],["asc","asc"]),this.processQueue(),Jn.response$.asObservable()})}getRequest(...Dt){return this.requestQueue.find(Xt=>!Xt.isCancelled&&(0,E.isEqual)([...Dt],Xt.args))}isQueued(Dt){return!!this.getRequestByQueryParam(Dt)}getRequestByQueryParam(Dt){return this.requestQueue.find(Xt=>!Xt.isCancelled&&Xt.args.includes(Dt))}cancel(Dt){const Xt=this.getRequestByQueryParam(Dt);return!!Xt&&(Xt.isCancelled=!0,!0)}}var Mn=c(93181),bi=c(25577),Hi=function(Nt){return Nt.Loading="Loading",Nt.Dirty="Dirty",Nt.Saved="Saved",Nt.NotFound="NotFound",Nt}(Hi||{}),Mr=function(Nt){return Nt.UpgradeStart="UpgradeStart",Nt.UpgradeEnd="UpgradeEnd",Nt}(Mr||{}),Wr=function(Nt){return Nt.Upgrade="Upgrade",Nt}(Wr||{}),Nr=function(Nt){return Nt.Measure="measure",Nt.Resource="resource",Nt.Element="element",Nt}(Nr||{});class Cs{constructor(Dt,Xt,St){if(this.config=Dt,this.onDbItemChange=Xt,this.requestQueue=St,this.versionKey="_version",this.connected=!1,this.logInfo("#indexdb dbDataStoreConfig config ",this.config),this.name=this.config.storeName,this.dbName=this.config.dbName,this.userId=this.config.userId,this.config.storeDefinition){const Sn=this.config.storeDefinition;this.upgrade$=this.upgradeStore(this.config.storeName,Sn.storeDefault,Sn.upgrades,Sn.upgradeTargetVersion||0)}else this.upgrade$=(0,M.of)(this);this.upgrade$.subscribe(()=>{this.connected=!0})}logError(...Dt){console.error("DbDataStore",this.name,JSON.stringify(Dt))}logInfo(...Dt){console.info("DbDataStore",this.name,JSON.stringify(Dt))}upgradeStore(Dt,Xt,St,Sn){let Jn;return this.logInfo("#indexdb upgrading dbStore for store ",Dt),this.getItem(this.versionKey).pipe((0,R.ZZ)(oi=>(this.logInfo("#indexdb upgrading dbStore for store version in getItem",oi),performance.mark(Mr.UpgradeStart),Jn=oi||0,0===Jn&&Xt?(Jn=Xt.version,this.processDirectUpgrade(Dt,Xt,Jn)):this.processSequentialUpgrades(Dt,Jn,St,Sn))),(0,m.T)(()=>{performance.mark(Mr.UpgradeEnd);const oi=this.getDbUpgradeDuration();return this.logInfo(`Time spent in async db upgrade: ${oi}, store: ${Dt}, new version: ${Jn}`),this}))}getDbUpgradeDuration(){try{return performance.measure(Wr.Upgrade,Mr.UpgradeStart,Mr.UpgradeEnd),performance.getEntriesByType(Nr.Measure).find(Dt=>Dt.name===Wr.Upgrade).duration}catch(Dt){return this.logError("Error while calling measure on performance",Dt),-1}}processDirectUpgrade(Dt,Xt,St){this.logInfo("#indexdb processing direct upgrade for store ",Dt);const Sn=[];for(const Jn of Object.keys(Xt.db))Sn.push(this.setItem(Jn,Xt.db[Jn]));return(0,Mn.p)(Sn).pipe((0,R.ZZ)(()=>(this.logInfo(`Store ${Dt} successfully set to default version: ${St}`),this.setItem(this.versionKey,Xt.version))),(0,ot.s)(1),(0,m.T)(()=>this),(0,I.W)(Jn=>(this.logError(`Store ${Dt} failed to upgrade version from 0 to ${St} due to error: ${Jn}`),(0,T.$)(Jn))))}processSequentialUpgrades(Dt,Xt,St,Sn){if(this.logInfo("#indexdb processing direct upgrade for store ",Dt),Xt>Sn)return(0,T.$)(`Store ${Dt} db downgrade not supported. Version: ${Xt}, Target: ${Sn}`);if(Xt===Sn)return this.logInfo(`Upgrade not required for Store: ${Dt}, Version: ${Xt}`),(0,M.of)(this);let Jn;return(0,kn.H)(St.keys()).pipe((0,Oi.H)(oi=>{if(Jn=+oi,Jn>Xt){this.logInfo(`Store: ${Dt}, attempting upgrade from version: ${Xt} to ${Jn}`);const Ji=St.get(Jn);return(0,kn.H)(Ji(this)).pipe((0,R.ZZ)(()=>(this.logInfo(`Store ${Dt} successfully upgraded to version: ${Jn}`),this.setItem(this.versionKey,Xt=Jn))))}return(0,M.of)(this)}),(0,bi.H)(),(0,m.T)(()=>this),(0,I.W)(oi=>(this.logError(`Store ${Dt} failed to upgrade db from version: ${Xt} to ${Jn} due to error ${oi}`),(0,T.$)(oi))))}getItem(Dt){return this.logInfo("#indexdb get item using key ",Dt),Dt?this.requestQueue.queue(this.name).pipe((0,R.ZZ)(Xt=>{this.logInfo("#indexdb request queue item ",this.name);const Sn=Xt.transaction(this.name,"readonly").objectStore(this.name);return(0,kn.H)(Sn.get(Dt))}),(0,I.W)(Xt=>(this.logError("error fetching item",Xt),(0,T.$)(Xt))),(0,Qn.j)(()=>{this.logInfo("#indexdb notify request on complete ",this.name),this.requestQueue.notifyRequestCompletion()})):(0,T.$)("invalid key")}getItemByCursor(Dt){return this.logInfo("#indexdb get item using cursor for key ",Dt),Dt?this.requestQueue.queue(this.name).pipe((0,R.ZZ)(Xt=>{this.logInfo("#indexdb request queue item ",this.name);const Sn=Xt.transaction(this.name,"readonly").objectStore(this.name);return new Promise((Jn,oi)=>{Sn.openCursor(Dt).then(function(Ei){return Ei?Promise.resolve(Ei.value):Promise.resolve()}).then(Ji=>{Jn(Ji)}).catch(()=>{oi("#indexdb Error reading key from store")})})}),(0,I.W)(Xt=>(this.logError("#indexdb error fetching item",Xt),(0,T.$)(Xt))),(0,Qn.j)(()=>{this.requestQueue.notifyRequestCompletion()})):(0,T.$)("invalid key")}setItem(Dt,Xt){return this.logInfo("#indexdb set item using key ",Dt),this.config.storeDefinition?(Xt instanceof Object&&(Xt.ts=Date.now()),this.setItemInDb(Dt,Xt).pipe((0,m.T)(St=>(this.onDbItemChange.next({storeName:this.name,userId:this.userId,key:Dt}),Xt)))):this.setItemInDb(Dt,Xt)}setItemInDb(Dt,Xt){return this.requestQueue.queue(this.name).pipe((0,R.ZZ)(St=>{this.logInfo("#indexdb request queue item ",this.name);const Sn=St.transaction(this.name,"readwrite"),oi=Sn.objectStore(this.name).put(Xt,Dt);return this.finishReadWriteTxObservable(oi,Sn.done)}),(0,I.W)(St=>(this.logError("error setting item",St),(0,T.$)(St))),(0,Qn.j)(()=>{this.logInfo("#indexdb notify request on complete ",this.name),this.requestQueue.notifyRequestCompletion()}))}removeItem(Dt){return this.logInfo("#indexdb remove item using key ",Dt),this.requestQueue.queue(this.name).pipe((0,R.ZZ)(Xt=>{this.logInfo("request queue item ",this.name);const St=Xt.transaction(this.name,"readwrite"),Jn=St.objectStore(this.name).delete(Dt);return this.finishReadWriteTxObservable(Jn,St.done)}),(0,I.W)(Xt=>(this.logError("error removing item",Xt),(0,T.$)(Xt))),(0,Qn.j)(()=>{this.logInfo("#indexdb notify request on complete ",this.name),this.requestQueue.notifyRequestCompletion()}))}getAllItems(){return this.requestQueue.queue(this.name).pipe((0,R.ZZ)(Dt=>{const St=Dt.transaction(this.name,"readonly").objectStore(this.name);return(0,Mn.p)([(0,kn.H)(St.getAllKeys()),(0,kn.H)(St.getAll())])}),(0,m.T)(([Dt,Xt])=>{const St={};for(let Sn=0;Sn<Dt.length;Sn++)(0,E.set)(St,Dt[Sn].split("/"),Xt[Sn]);return St}),(0,I.W)(Dt=>(this.logError("error fetching item",Dt),(0,T.$)(Dt))),(0,Qn.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}getAllItemsByCursor(){return this.requestQueue.queue(this.name).pipe((0,R.ZZ)(Dt=>{const St=Dt.transaction(this.name,"readonly").objectStore(this.name),Sn={};return new Promise((Jn,oi)=>{St.openCursor().then(function Ji(Ei){return Ei?((0,E.set)(Sn,Ei.key.split("/"),Ei.value),Ei.continue().then(Ji)):Promise.resolve()}).then(()=>{Jn(Sn)}).catch(()=>{oi("Error reading all keys from store")})})}),(0,I.W)(Dt=>(this.logError("error fetching item",Dt),(0,T.$)(Dt))),(0,Qn.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}clear(){return this.requestQueue.queue(this.name).pipe((0,R.ZZ)(Dt=>{const Xt=Dt.transaction(this.name,"readwrite"),Sn=Xt.objectStore(this.name).clear();return this.finishReadWriteTxObservable(Sn,Xt.done)}),(0,I.W)(Dt=>(this.logError("error clearing store",Dt),(0,T.$)(Dt))),(0,Qn.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}length(){return this.keys().pipe((0,m.T)(Dt=>Dt.length))}keys(){return this.requestQueue.queue(this.name).pipe((0,R.ZZ)(Dt=>Dt.transaction(this.name,"readonly").objectStore(this.name).getAllKeys()),(0,I.W)(Dt=>(this.logError("error fetching keys",Dt),(0,T.$)(Dt))),(0,Qn.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}finishReadWriteTxObservable(Dt,Xt){return this.logInfo("#indexdb finishReadWriteTxObservable ",this.name),(0,Mn.p)([(0,kn.H)(this.preventTransactionCloseOnError(Dt)),(0,kn.H)(Xt)])}preventTransactionCloseOnError(Dt){this.logInfo("#indexdb preventTransactionCloseOnError ",this.name);const Xt=wt(Dt);return Xt.addEventListener("error",St=>{this.logError("Request failed, error=",Xt.error),St.preventDefault(),St.stopPropagation()}),Dt}}class Pn{get onDbItemChange(){return this.dbItemChange$}constructor(Dt,Xt,St){this.dbName=Dt,this.globalStoreDefMap=Xt,this.userStoreDefMap=St,this.dbObjectStoresInitialized=new v.m(1),this.dataStores=new Map,this.dbItemChange$=new Gt.B7,this.globalStoreDefMap||(this.globalStoreDefMap=new Map),this.userStoreDefMap||(this.userStoreDefMap=new Map),this.requestQueue=new Fi(!0,{next:void 0,error:this.closeDbConnection.bind(this),complete:this.closeDbConnection.bind(this)},this.refreshDbInstance.bind(this))}logError(...Dt){console.error("DbHandler",this.dbName,JSON.stringify(Dt))}logInfo(...Dt){console.info("DbHandler",this.dbName,JSON.stringify(Dt))}refreshDbInstance(Dt){return this.logInfo("#indexdb refresh db instance for store ",Dt),(0,Zt.v)(()=>this.dbObjectStores&&!this.dbObjectStores.contains(Dt)?(0,M.of)(!0):(0,M.of)(!1)).pipe((0,R.ZZ)(Xt=>Xt?(this.logInfo("retrieving db version from disk"),this.openDbInstance(Dt).pipe((0,R.ZZ)(St=>{this.logInfo("#indexdb upgrade needed - db instance opened ",Dt),this.dbInstance=St,this.dbObjectStores=this.dbInstance.objectStoreNames,this.dbObjectStoresInitialized.next(!0);const Sn=this.dbInstance.version;return this.logInfo("current db version",Sn),this.closeDbConnection(),this.openDbInstance(Dt,Sn+1)}))):this.openDbInstance(Dt).pipe((0,R.ZZ)(St=>{if(this.logInfo("#indexdb upgrade not needed - db instance opened ",Dt),this.dbInstance=St,this.dbObjectStores=this.dbInstance.objectStoreNames,this.dbObjectStoresInitialized.next(!0),!this.dbObjectStores.contains(Dt)){const Sn=this.dbInstance.version;return this.logInfo(`store ${Dt} not found in current db version ${Sn}, upgrading`),this.closeDbConnection(),this.openDbInstance(Dt,Sn+1)}return(0,M.of)(this.dbInstance)}))),(0,I.W)(Xt=>(this.logError("error",Xt),(0,T.$)(Xt))))}openDbInstance(Dt,Xt){return this.logInfo("#indexdb opening db instance ",this.dbName,Xt),(0,kn.H)(function rn(Nt,Dt,{blocked:Xt,upgrade:St,blocking:Sn,terminated:Jn}={}){const oi=indexedDB.open(Nt,Dt),Ji=gt(oi);return St&&oi.addEventListener("upgradeneeded",Ei=>{St(gt(oi.result),Ei.oldVersion,Ei.newVersion,gt(oi.transaction))}),Xt&&oi.addEventListener("blocked",()=>Xt()),Ji.then(Ei=>{Jn&&Ei.addEventListener("close",()=>Jn()),Sn&&Ei.addEventListener("versionchange",()=>Sn())}).catch(()=>{}),Ji}(this.dbName,Xt,{upgrade:St=>{this.logInfo("upgrading db for",Dt),this.dbInstance=St,this.dbObjectStores=this.dbInstance.objectStoreNames,this.dbObjectStoresInitialized.next(!0),this.dbObjectStores.contains(Dt)||this.dbInstance.createObjectStore(Dt)}})).pipe((0,I.W)(St=>(this.logInfo("#indexdb some error occurred opening db ",this.dbName,Xt),(0,T.$)(St))))}closeDbConnection(){this.logInfo("#indexdb closing db instance ",this.dbName),this.dbInstance?(this.dbInstance.close(),this.dbInstance=null):this.logError("attempted to close db connection when local instance unavailable")}getDataStore(Dt){if(!this.dataStores.has(Dt.storeDbName)){this.logInfo(`Create datastore instance: ${Dt.storeDbName}`);const Xt=Object.assign({},Dt,{dbName:this.dbName});this.dataStores.set(Dt.storeDbName,new Cs(Xt,this.dbItemChange$,this.requestQueue))}return this.dataStores.get(Dt.storeDbName)}getGlobalStore(Dt){return this.getDataStore({storeName:Dt,storeDbName:Dt,storeDefinition:this.globalStoreDefMap.get(Dt)})}getUserStore(Dt,Xt){return this.getDataStore({storeName:Xt,storeDbName:`${Dt}_${Xt}`,userId:Dt,storeDefinition:this.userStoreDefMap.get(Xt)})}getStore(Dt){return this.getDataStore({storeName:Dt,storeDbName:Dt})}checkIfStoreExists(Dt){return this.dbObjectStoresInitialized.asObservable().pipe((0,m.T)(()=>this.dbObjectStores.contains(Dt)))}}let Pi=(()=>{var Nt;class Dt{constructor(St,Sn){this.logger=Sn.getLogger("crimson/DBService"),this.globalStoreDefMap=St.globalStores,this.userStoreDefMap=St.userStores,this.dbName=St.appDbName,this.dbhandlerInstance=new Pn(this.dbName,this.globalStoreDefMap,this.userStoreDefMap)}get dbHandler(){return this.dbhandlerInstance}getGlobalStore(St){return this.dbhandlerInstance.getGlobalStore(St)}getUserStore(St,Sn){return this.dbhandlerInstance.getUserStore(St,Sn)}getStore(St){return this.dbhandlerInstance.getStore(St)}checkKeysOfExisitngDbStore(St){return this.dbhandlerInstance.checkIfStoreExists(St).pipe((0,ot.s)(1),(0,R.ZZ)(Sn=>Sn?this.getGlobalStore(St).length():(0,M.of)(0)))}deleteOldKeys(St){return this.checkKeysOfExisitngDbStore(St).pipe((0,R.ZZ)(Sn=>Sn?this.getGlobalStore(St).clear():(0,M.of)(null)),(0,m.T)(Sn=>Sn?(this.logger.info("Keys in db store deleted"),!0):(this.logger.info("No keys in the dB store, skip deletion"),!1)))}}return(Nt=Dt).\u0275fac=function(St){return new(St||Nt)(ge.KVO(st),ge.KVO(H.J6))},Nt.\u0275prov=ge.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Dt})();var li=c(10399);class er extends Gt.B7{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(Dt){return this.hasError?(Dt.error(this.thrownError),li.y.EMPTY):this.hasCompleted&&this.hasNext?(Dt.next(this.value),Dt.complete(),li.y.EMPTY):super._subscribe(Dt)}next(Dt){this.hasCompleted||(this.value=Dt,this.hasNext=!0)}error(Dt){this.hasCompleted||super.error(Dt)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}class Fr{constructor(Dt,Xt,St,Sn){this.dbHandler=Dt,this.storeName=Xt,this.key=St,this.userId=Sn,this.status_=Hi.Loading,this.syncObservers=new Set,this.wait$=new er}get status(){return this.status_}updateStatus(Dt){const Xt=this.status_;this.status_=Dt,this.isFirstSyncComplete(Xt)&&(this.wait$.next(this.status),this.wait$.complete())}isFirstSyncComplete(Dt){return!this.wait$.closed&&Dt===Hi.Loading&&this.status_!==Hi.Loading}persist_(){this.updateStatus(Hi.Dirty);const Dt=this.getStore(this.userId,this.storeName),Xt=(({status:St,status_:Sn,persist_:Jn,sync_:oi,observe_:Ji,unobserve_:Ei,wait_:Ee,dbHandler:Pr,updateStatus:Ra,isFirstSyncComplete:Ds,getStore:ga,syncObservers:Ns,wait$:ba,...Os})=>Os)(this);return Dt.setItem(this.key,Xt).pipe((0,O.M)(()=>this.updateStatus(Hi.Saved)),(0,I.W)(()=>(this.logError(`Error persisting the key ${this.key} to db`),(0,M.of)(Xt))))}getStore(Dt,Xt){return Dt?this.dbHandler.getUserStore(Dt,Xt):this.dbHandler.getGlobalStore(Xt)}sync_(){return this.getStore(this.userId,this.storeName).getItem(this.key).pipe((0,m.T)(Xt=>{if(!((Xt=Xt||{})instanceof Object))throw new Error("Tried to cache plain old data. Only Object types supported");for(const St of Object.keys(Xt))this[St]=Xt[St];return this.updateStatus(Hi.Saved),this.syncObservers.forEach(St=>{St()}),Xt}))}wait_(){return this.wait$.closed&&(this.wait$=new er,this.status_!==Hi.Loading&&(this.wait$.next(this.status),this.wait$.complete())),this.wait$.asObservable()}observe_(Dt){this.syncObservers.add(Dt),this.status_!==Hi.Loading&&Dt()}unobserve_(Dt){this.syncObservers.delete(Dt)}logError(...Dt){console.error("DbHandler",this.storeName,JSON.stringify(Dt))}}let dn=(()=>{var Nt;class Dt{get globalCacheDefinitions(){return this.globalLoadMap}get userCacheDefinitions(){return this.userLoadMap}get globalCache(){return this.globalCacheMap}get userCache(){return this.userCacheMap}constructor(St){this.dbService=St,this.globalLoadMap=new Map,this.userLoadMap=new Map,this.globalCacheMap=new Map,this.userCacheMap=new Map}loadGlobalKey(St,Sn){this.globalLoadMap.has(St)||this.globalLoadMap.set(St,new Set),this.globalLoadMap.get(St).add(Sn),this.globalCacheMap.has(St)||this.globalCacheMap.set(St,new Map),this.globalCacheMap.get(St).set(Sn,new Fr(this.dbService.dbHandler,St,Sn))}loadUserKey(St,Sn){this.userLoadMap.has(St)||this.userLoadMap.set(St,new Set),this.userLoadMap.get(St).add(Sn)}}return(Nt=Dt).\u0275fac=function(St){return new(St||Nt)(ge.KVO(Pi))},Nt.\u0275prov=ge.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Dt})(),Fn=(()=>{var Nt;class Dt{constructor(St,Sn,Jn){this.loggingService=St,this.dbService=Jn,this.logger=this.loggingService.getLogger("crimson/dbCacheService"),this.globalCacheDefinitions=Sn.globalCacheDefinitions,this.userCacheDefinitions=Sn.userCacheDefinitions,this.globalCache=Sn.globalCache,this.userCacheMap=Sn.userCache,this.dbService.dbHandler.onDbItemChange.subscribe(oi=>{let Ji;oi.userId?this.userCacheMap.has(oi.userId)&&this.userCacheMap.get(oi.userId).has(oi.storeName)&&(Ji=this.userCacheMap.get(oi.userId).get(oi.storeName).get(oi.key)):this.globalCache.has(oi.storeName)&&(Ji=this.globalCache.get(oi.storeName).get(oi.key)),Ji&&Ji.sync_().subscribe()})}syncGlobal(St){const Sn=this.globalCacheDefinitions.get(St),Jn=[];return Sn.forEach(oi=>{const Ji=this.globalCache.get(St);Jn.push(Ji.get(oi).sync_())}),(0,Mn.p)(Jn).pipe((0,O.M)(()=>{this.logger.info(`Cached DB store ${St} into memory`)}))}syncUser(St,Sn){const Jn=this.userCacheDefinitions.get(St);this.userCacheMap.has(Sn)||this.initUserCache(Sn);const oi=[];return Jn.forEach(Ji=>{const Ei=this.userCacheMap.get(Sn).get(St);oi.push(Ei.get(Ji).sync_())}),(0,Mn.p)(oi).pipe((0,O.M)(()=>{this.logger.info(`Cached user DB store ${St} into memory for user ${Sn}`)}))}initUserCache(St){this.userCacheMap.set(St,new Map),this.userCacheDefinitions.forEach((Sn,Jn)=>{Sn.forEach(oi=>{this.userCacheMap.get(St).has(Jn)||this.userCacheMap.get(St).set(Jn,new Map),this.userCacheMap.get(St).get(Jn).set(oi,new Fr(this.dbService.dbHandler,Jn,oi,St))})})}getCachedGlobalItem(St,Sn){if(this.globalCache.has(St))return this.globalCache.get(St).get(Sn)}getOrCreateCachedGlobalItem(St,Sn){return(!this.globalCache.has(St)||!this.globalCache.get(St).has(Sn))&&(this.globalCacheDefinitions.has(St)||this.globalCacheDefinitions.set(St,new Set),this.globalCacheDefinitions.get(St).add(Sn),this.globalCache.has(St)||this.globalCache.set(St,new Map),this.globalCache.get(St).set(Sn,new Fr(this.dbService.dbHandler,St,Sn))),this.globalCache.get(St).get(Sn)}getCachedUserItem(St,Sn,Jn){return this.userCacheMap.has(St)||this.initUserCache(St),this.userCacheMap.get(St).get(Sn).get(Jn)}}return(Nt=Dt).\u0275fac=function(St){return new(St||Nt)(ge.KVO(H.J6),ge.KVO(dn),ge.KVO(Pi))},Nt.\u0275prov=ge.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Dt})();var xi=c(64655),Si=c(61090);c(81799),c(33328);let vr=(()=>{var Nt;class Dt{transform(St){return isNaN(St)}}return(Nt=Dt).\u0275fac=function(St){return new(St||Nt)},Nt.\u0275pipe=ge.EJ8({name:"isNaN",type:Nt,pure:!0}),Dt})();var Dr;!function(Nt){let Dt;var Xt;(Xt=Dt=Nt.HandlerEventType||(Nt.HandlerEventType={})).SimpleWindowEvent="SIMPLE_WINDOW_EVENT",Xt.StructuredWindowEvent="STRUCTURED_WINDOW_EVENT",Xt.IpcEvent="IPC_EVENT"}(Dr||(Dr={}));var br=function(Nt){return Nt.Types=Dr,Nt}(br||{}),ro=c(27731);class Oo{constructor(Dt,Xt){this.bridgeService=Dt,this.keyToMessageType=new Map,this.eventHandlerLogger=Xt,this.eventStreams=new xe.V$(St=>{if(!this.keyToMessageType.has(St))return this.eventHandlerLogger.error("No message type for key",St),ro.t;const Sn=this.keyToMessageType.get(St);return this.handlerMap[Sn].internalSubjects.set(St,new Gt.B7),this.handlerMap[Sn].internalSubjects.get(St).asObservable()},!1,!1)}registerNewHandler(Dt,Xt,St,Sn,Jn){this.handlerMap||(this.handlerMap={}),this.handlerMap[Dt]={pred:Xt,keyFunc:St,valFunc:Sn,transformedFunc:Jn,internalSubjects:new Map}}get$(Dt,Xt=this.defaultHandlerType){return this.keyToMessageType.has(Dt)||this.keyToMessageType.set(Dt,Xt),this.eventStreams.get$(Dt)}processMessage(Dt){for(const Xt of Object.keys(this.handlerMap))if(this.handlerMap[Xt].pred(Dt)){const Sn=this.handlerMap[Xt].transformedFunc(Dt),Jn=this.handlerMap[Xt].keyFunc(Sn),oi=this.handlerMap[Xt].valFunc(Sn);this.handlerMap[Xt].internalSubjects.has(Jn)?this.handlerMap[Xt].internalSubjects.get(Jn).next(oi):this.eventHandlerLogger.info("No subscribers for event with key ",Jn)}}}var Ao=function(Nt){return Nt.ApplicationHide="APPLICATION_HIDE",Nt.ApplicationShow="APPLICATION_SHOW",Nt.WindowMinimize="MINIMIZE",Nt.WindowMaximize="MAXIMIZE",Nt.WindowRestore="RESTORE",Nt.IpcNewMessage="IPC_NEW_MESSAGE",Nt.SelfUpdate="SELF_UPDATE",Nt.RouteChange="URL_ROUTE_CHANGE",Nt.StoredCommandLine="STORED_COMMAND_LINE",Nt.ProcessEvent="PROCESS_EVENT",Nt.UpdateInitiated="UPDATE_INITIATED",Nt.SharedStorageUpdate="SHARED_STORAGE_UPDATE",Nt.ForegroundEvent="FOREGROUND_EVENT",Nt.DisplayModeChange="DISPLAYMODECHANGE",Nt}(Ao||{});class Co{constructor(Dt){const{type:Xt,...St}=Dt;this.type=Xt,this.params=St}}class Lo extends Co{constructor(Dt){super(Dt),this.newRoute=Dt["new-route"],this.currentRoute=Dt["current-route"]}}class ao{static create(Dt){return Dt.type===Ao.RouteChange?new Lo(Dt):new Co(Dt)}}let Ar=(()=>{var Nt;class Dt extends Oo{constructor(St,Sn){const Jn=Sn.getLogger("nativeEventService");super(St,Jn),this.logger=Jn,this.defaultHandlerType=br.Types.HandlerEventType.SimpleWindowEvent,this.registerNewHandler(br.Types.HandlerEventType.StructuredWindowEvent,oi=>oi.startsWith("json:"),oi=>JSON.parse(oi).type,oi=>oi,oi=>oi.substring(5)),this.registerNewHandler(br.Types.HandlerEventType.SimpleWindowEvent,oi=>!oi.startsWith("json:"),oi=>oi,oi=>oi,oi=>oi),this.bridgeService.executeCommand(dt.Ts.Common.Windowevents.RegisterWindowEventsCallback,{}).subscribe(oi=>{this.processMessage(oi)})}getNativeEvent$(St){return this.get$(St,br.Types.HandlerEventType.StructuredWindowEvent).pipe((0,m.T)(Sn=>ao.create(JSON.parse(Sn))))}}return(Nt=Dt).\u0275fac=function(St){return new(St||Nt)(ge.KVO(r.NZ),ge.KVO(H.J6))},Nt.\u0275prov=ge.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Dt})();c(77061);var Gn=c(53931),$n=c(84580);c(76706);c(2833);const Er={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"};c(17669);var Ys=c(5798);const ho={statusCode:Ys.jm.UnknownError};class Bo{constructor(Dt,Xt,St){this.params=Dt,this.networkStatusService=Xt,this.bridgeService=St,this.getFailureCode=Sn=>this.checkRequestCancelled(Sn).pipe((0,R.ZZ)(Jn=>Jn.statusCode!==Ys.jm.UnknownError?(0,M.of)(Jn):this.checkNetworkStatus()),(0,R.ZZ)(Jn=>Jn.statusCode!==Ys.jm.UnknownError?(0,M.of)(Jn):this.checkDNSLookup(Sn.requestUrl)),(0,I.W)(Jn=>(0,M.of)(ho))),this.dnsLookupValidity=this.params?.dnsCacheValidity??Ys.fu,this.dnsLookupMap=new Map,this.requestCancelledMap=new Map}checkNetworkStatus(){return(0,M.of)(this.networkStatusService.isOnline?ho:{statusCode:Ys.jm.NetworkStatusOffline})}getCachedDNSEntry(Dt){const Xt=this.dnsLookupMap.get(Dt);if(Xt&&Date.now()-Xt.lastUpdatedTs<=this.dnsLookupValidity)return Xt}checkDNSLookup(Dt){const Xt=new URL(Dt).hostname,St=this.getCachedDNSEntry(Xt);return St?(0,M.of)(St.lookupSuccessful?ho:{statusCode:Ys.jm.DNSLookupFailed,isUserOnline:!0,cachedDNSEntry:St}):this.bridgeService.executeCommand(dt.Ts.Common.Systeminfo.DNSLookup,{name:Xt}).pipe((0,m.T)(Sn=>{if(!Sn)return ho;const Jn={lookupSuccessful:!0,lastUpdatedTs:Date.now(),destinationIp:Sn?.hostname||""};return this.dnsLookupMap.set(Xt,Jn),{statusCode:Ys.jm.UnknownError,cachedDNSEntry:Jn}}),(0,I.W)(Sn=>{const Jn={lookupSuccessful:!1,lastUpdatedTs:Date.now(),destinationIp:""};return this.dnsLookupMap.set(Xt,Jn),(0,M.of)({statusCode:Ys.jm.DNSLookupFailed,isUserOnline:!0,cachedDNSEntry:Jn})}))}checkRequestCancelled(Dt){const Xt={statusCode:Ys.jm.RequestCancelled};return Dt.uniqueRequestId&&this.requestCancelledMap.has(Dt.uniqueRequestId)?(0,M.of)(Xt):Dt.isCancelled?(Dt.uniqueRequestId&&this.requestCancelledMap.set(Dt.uniqueRequestId,!0),(0,M.of)(Xt)):(0,M.of)(ho)}}let cs=(()=>{var Nt;class Dt{constructor(St,Sn){this.networkStatusService=St,this.bridgeService=Sn}createAnalyzer(St){return new Bo(St,this.networkStatusService,this.bridgeService)}}return(Nt=Dt).\u0275fac=function(St){return new(St||Nt)(ge.KVO(Vt.C),ge.KVO(r.NZ))},Nt.\u0275prov=ge.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Dt})();var sa=c(57643),wa=c(57118),po=c(37768),ta=c(62931),Ls=c(8282),Kt=function(Nt){return Nt.Laptop="Laptop",Nt.Notebook="Notebook",Nt.SubNotebook="Sub Notebook",Nt.Portable="Portable",Nt.Convertible="Convertible",Nt.Detachable="Detachable",Nt}(Kt||{});const Zn=[Kt.Laptop,Kt.Convertible,Kt.Detachable,Kt.Notebook,Kt.Portable,Kt.SubNotebook];let Ii=(()=>{var Nt;class Dt{constructor(St,Sn,Jn,oi){this.loggingService=St,this.bridgeService=Sn,this.windowService=Jn,this.eventStreamFactory=oi,this.logger=this.loggingService.getLogger("HardwareInformationService"),this.gpuInfoStream=this.eventStreamFactory.createStream(()=>this.fetchGPUInfo()),this.genericInfoStream=this.eventStreamFactory.createStream(()=>this.fetchGenericInfo()),this.setupHardwareInfoRefreshOnAppWindowFocus()}getGenericInfo(St){return St?this.genericInfoStream.refresh():this.genericInfoStream.get$()}getGpuInfo(St){return St?this.gpuInfoStream.refresh():this.gpuInfoStream.get$()}getSLIInformation(St=!0){return this.getGpuInfo(St).pipe((0,m.T)(Sn=>Sn.SLI))}getOptimusStatus(St=!0){return this.getGpuInfo(St).pipe((0,m.T)(Sn=>Sn.IsOptimus))}getIsLaptopSystem(){return this.getGenericInfo(!1).pipe((0,m.T)(St=>Zn.includes(St?.MoboType)),(0,I.W)(St=>(0,M.of)(!1)))}fetchHardwareInfo(){return(0,Xe.zV)([this.fetchGenericInfo(),this.fetchGPUInfo()]).pipe((0,ot.s)(1),(0,O.M)(([St,Sn])=>{const Jn=this.genericInfoStream.getData(),oi=this.gpuInfoStream.getData();(0,E.isEqual)(Jn,St)||this.genericInfoStream.setData(St,!0),(0,E.isEqual)(oi,Sn)||this.gpuInfoStream.setData(Sn,!0)}))}getQuadroSystemFlag(){return this.getGpuInfo(!1).pipe((0,m.T)(St=>1==+St?.GPU?.filter(oi=>oi.IsPrimary)?.[0]?.IsQuadro))}setupHardwareInfoRefreshOnAppWindowFocus(St){this.onFocusInfoRefreshSub?.unsubscribe(),this.onFocusInfoRefreshSub=this.windowService.getFocusEvent().pipe((0,ta.B)(St??500),(0,j.n)(Sn=>(this.logger.info("hardware info refreshed on focus"),this.fetchHardwareInfo())),(0,I.W)(Sn=>(this.logger.error("failed to reload sys info",Sn),(0,M.of)(!0)))).subscribe()}fetchGenericInfo(){return this.genericInfoObs$||(this.genericInfoObs$=this.bridgeService.executeCommand(dt.Ts.Nvapp.Driverupdaterecommendation.GetGenericInfo).pipe((0,Ls.u)(),(0,O.M)(St=>{this.logger.info("Generic info fetched success:",St)}),(0,I.W)(St=>(this.logger.error("there is problem fetching generic info",St),(0,T.$)(St))),(0,Qn.j)(()=>{this.genericInfoObs$=null}))),this.genericInfoObs$}fetchGPUInfo(){return this.gpuInfoObs$||(this.gpuInfoObs$=this.bridgeService.executeCommand(dt.Ts.Nvapp.Driverupdaterecommendation.GetGPUInfo).pipe((0,Ls.u)(),(0,O.M)(St=>{this.logger.info("Gpu info fetched success:",St)}),(0,I.W)(St=>(this.logger.error("there is problem fetching gpu info",St),(0,T.$)(St))),(0,Qn.j)(()=>{this.gpuInfoObs$=null}))),this.gpuInfoObs$}}return(Nt=Dt).\u0275fac=function(St){return new(St||Nt)(ge.KVO(H.J6),ge.KVO(r.NZ),ge.KVO($e),ge.KVO(xe.mZ))},Nt.\u0275prov=ge.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Dt})();var ei=function(Nt){return Nt.NvApp="NVAPP_UI",Nt.OSC="NVAPP_OSC_UI",Nt.GFN="GFN_UI",Nt}(ei||{});let di=(()=>{var Nt;class Dt{constructor(St,Sn){this.bridgeService=Sn,this.logger=St.getLogger("crimson/ExceptionInfoService")}sendExceptionInfo(St,Sn,Jn,oi,Ji,Ei){const Ra={exceptionInfo:{name:Jn??"",message:oi??"",code:Ei??0,stackTrace:Ji??"",clientInfo:{componentName:St,componentVersion:Sn}}};return this.logger.info("Calling Diagnostics Plugin SendExceptionInfo API With Params:",Ra),this.bridgeService.executeCommand(dt.Ts.Common.Diagnostics.SendExceptionInfo,Ra)}SendUserFeedbackInfo(St,Sn,Jn){const oi={surveyId:St??"",uiPage:Sn??"",uiLanguage:Jn??""};return this.logger.info("Calling Diagnostics Plugin SendUserFeedbackInfo API With Params:",oi),this.bridgeService.executeCommand(dt.Ts.Common.Diagnostics.SendUserFeedbackInfo,oi)}}return(Nt=Dt).\u0275fac=function(St){return new(St||Nt)(ge.KVO(H.J6),ge.KVO(ee.N))},Nt.\u0275prov=ge.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Dt})();var wi=function(Nt){return Nt.png="png",Nt.png8="png8",Nt.png24="png24",Nt.png32="png32",Nt.png48="png48",Nt.png64="png64",Nt.jpe="jpe",Nt.jpeg="jpeg",Nt.jpg="jpg",Nt.ico="ico",Nt.icon="icon",Nt.webp="webp",Nt}(wi||{});let Ri=(()=>{var Nt;class Dt{constructor(St){this.defaultImageProperties={f:wi.webp},this.logger=St.getLogger("ImageFormatService")}formatImageServiceUrl(St,Sn={}){const Jn={...this.defaultImageProperties,...Sn},oi=Object.keys(Jn);for(const Ji of oi){const Ei=Jn[Ji]||(0,E.isBoolean)(Jn[Ji])?""+Jn[Ji]:void 0;Ei&&Ei.length>0&&!(0,E.isNil)(St)&&(St+=";"+Ji+"="+Jn[Ji])}return St}}return(Nt=Dt).\u0275fac=function(St){return new(St||Nt)(ge.KVO(H.J6))},Nt.\u0275prov=ge.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Dt})()},52117:(je,z,c)=>{"use strict";c.d(z,{Mn:()=>n,Z1:()=>B0,bZ:()=>x_,Se:()=>l,ls:()=>s,pB:()=>y,NS:()=>E});var r=c(58527);let n=(()=>{var ie;class Fe{}return(ie=Fe).\u0275fac=function(et){return new(et||ie)},ie.\u0275mod=r.$C({type:ie}),ie.\u0275inj=r.G2t({}),Fe})();var v=c(59859),h=c(91384),f=c(14714),A=c(43615),M=c(26875),T=c(40482),E=function(ie){return ie.HttpUrl="http.url",ie.HttpStatusCode="http.status_code",ie.HttpStatusCodeFamily="http.status_code_family",ie.HttpMethod="http.method",ie.HttpHostname="http.hostname",ie.HttpHeadersPrefix="http.headers.",ie.HttpPath="http.path",ie.HttpErrorText="http.error_text",ie.ParamsPrefix="params.",ie.Error="error",ie.SpanKind="span.kind",ie.Component="component",ie.ClientOs="client.os",ie.ClientOsName="client.os.name",ie.ClientOsVersion="client.os.version",ie.ServiceVersion="service.version",ie.ServiceType="service.type",ie.Type="type",ie.DeviceId="deviceId",ie.AppName="appName",ie.LayoutExecutionId="layoutExecutionId",ie.Origin="origin",ie.VpcId="vpcId",ie.Locale="locale",ie.Trigger="trigger",ie.LoginStatus="loginStatus",ie.CmsId="cmsId",ie.FailurePoint="failurePoint",ie.ErrorCode="errorCode",ie.ErrorType="errorType",ie.NetworkOverridePresent="networkOverridePresent",ie.NetworkTestStatus="networkTestStatus",ie.ZoneName="zone.name",ie.ZoneAddress="zone.address",ie.OobeDialogShown="oobeDialogShown",ie.LoginWindowShown="loginWindowShown",ie.LaunchSource="launchSource",ie.ShortName="shortName",ie.UsedLatencyBasedRouting="usedLatencyBasedRouting",ie.IsSessionAutoResumed="isSessionAutoResumed",ie.ErrorDetails="errorDetails",ie.RoutingOverrideUsed="routingOverrideUsed",ie.OverrideZoneName="overrideZoneName",ie.OverrideZoneAddress="overrideZoneAddress",ie.SessionId="sessionId",ie.SkippedAuthCheck="skippedAuthCheck",ie.CountryCode="countryCode",ie.FastestJarvisDomain="fastestJarvisDomain",ie.TraceId="traceId",ie.RequestId="requestId",ie.PanelType="panelType",ie.BeforeEventDuration="beforeEventDuration",ie.PresentDuration="presentDuration",ie.PushMessageType="pushMessageType",ie.AccountLinkingProvider="accountLinkingProvider",ie.HasFilters="hasFilters",ie.HasSearchQuery="hasSearchQuery",ie.IsFirstPage="isFirstPage",ie}(E||{}),y=function(ie){return ie.DelegateToken="GetDelegateToken",ie.ClientGetLayout="ClientGetLayout",ie.FetchLayout="LayoutManagerGetLayout",ie.GetServerInfo="GetServerInfo",ie.GetSpecificServerInfo="GetSpecificServerInfo",ie.ClientGetAppMetadata="ClientGetAppMetadata",ie.ClientGetAppsList="ClientGetAppsList",ie.FetchAppsList="LayoutManagerGetAppsList",ie.FetchAppMetadata="LayoutManagerGetAppMetadata",ie.FetchSubscriptions="FetchSubscriptions",ie.GetEntitlementStatus="GetEntitlementStatus",ie.GameLaunch="GameLaunch",ie.ClientGetSubscriptions="ClientGetSubscriptions",ie.GetActiveSessions="GetActiveSessions",ie.GetSessionInfo="GetSessionInfo",ie.StartStreaming="StartStreaming",ie.GetUserEntitlements="GetUserEntitlements",ie.UpdateCheck="UpdateCheck",ie.PreStreaming="PreStreaming",ie.StreamerAuthentication="StreamerAuthentication",ie.StreamerAuthorization="StreamerAuthorization",ie.StreamerNetworktest="StreamerNetworkTest",ie.SessionLoading="SessionLoading",ie.GetRatingsInfo="GetRatingsInfo",ie.GxTargetGetFeature="GxTargetGetFeature",ie.GetFastestDomain="GetFastestDomain",ie.JarvisPing="JarvisPing",ie.JarvisOAuth="JarvisOAuth",ie.StarfleetOAuth="StarfleetOAuth",ie.LcarsFetchQueryData="LcarsFetchQueryData",ie.LcarsPostQueryData="LcarsPostQueryData",ie.ClientGetSurvey="ClientGetSurvey",ie.ClientDismissSurvey="ClientDismissSurvey",ie.PlatformSelection="PlatformSelection",ie.PlatformSelectionSharedStorageRead="PlatformSelectionSharedStorageRead",ie.PlatformSelectionDialogInteraction="PlatformSelectionDialogInteraction",ie.AccountLinking="AccountLinking",ie.AccountLinkingDialogInteraction="AccountLinkingDialogInteraction",ie.AlsGetLoginUrl="AlsGetLoginUrl",ie.AlsPostLoginUrl="AlsPostLoginUrl",ie.AlsPostToken="AlsPostToken",ie.AlsSync="AlsSync",ie.AlsDeleteLinking="AlsDeleteLinking",ie.AlsUserLogin="AlsUserLogin",ie.AlsTokenExchange="AlsTokenExchange",ie.AlsUIConnect="AlsUIConnect",ie.AlsUIDisconnect="AlsUIDisconnect",ie.AlsUIReconnect="AlsUIReconnect",ie.AlsUIResync="AlsUIResync",ie.GetAemReleaseHighlights="GetAemReleaseHighlights",ie.GetGfwslInformation="GetGfwslInformation",ie.StarfleetDeleteClientToken="StarfleetDeleteClientToken",ie.StarfleetGetClientToken="StarfleetGetClientToken",ie.StarfleetGetAccessToken="StarfleetGetAccessToken",ie.StarfleetGetUserInfo="StarfleetGetUserInfo",ie.SendTelemetryEvent="SendTelemetryEvent",ie.ClientSettings="ClientSettings",ie.ScheduledMaintenance="ScheduledMaintenance",ie.ScheduledMaintenanceSessionEndError="ScheduledMaintenanceSessionEndError",ie.ClientGetCloudVariable="ClientGetCloudVariable",ie.ClientStreamingQuality="ClientStreamingQuality",ie.PushNotificationRegistration="PushNotificationRegistration",ie.KVStoreGetClientData="KVStoreGetClientData",ie.KVStoreSetClientData="KVStoreSetClientData",ie.KVStoreDeleteClientData="KVStoreDeleteClientData",ie.KVStoreAppendClientData="KVStoreAppendClientData",ie.ClientGetPanel="ClientGetPanel",ie.ClientDesktopPaste="ClientDesktopPaste",ie.ClientClipboardAvailable="ClientClipboardAvailable",ie.BackgroundNetworkTest="BackgroundNetworkTest",ie.GetRemoteConfigV2="GetRemoteConfigV2",ie.PushMessageReceived="PushMessageReceived",ie.PnsRegistration="PnsRegistration",ie.PnsUnregister="PnsUnregister",ie.UserAccountData="UserAccountData",ie.SessionLengthWarning="SessionLengthWarning",ie.VrsGetRewards="VrsGetRewards",ie.UpsellMessages="UpsellMessages",ie.CampaignsInfo="CampaignsInfo",ie.SearchFilterGames="SearchFilterGames",ie.UasAcquireUser="UasAcquireUser",ie.AdToken="AdToken",ie.AdSession="AdSession",ie.AdOpportunity="AdFetch",ie.AdStart="AdStart",ie.FilterGroupSortOrderDefinitions="FilterGroupSortOrderDefinitions",ie.GetLoginWallData="GetLoginWallData",ie.GetLoginWallStringsOnly="GetLoginWallStringsOnly",ie.AddFavoriteApp="AddFavoriteApp",ie.RemoveFavoriteApp="RemoveFavoriteApp",ie.AddOwnedVariant="AddOwnedVariant",ie.RemoveOwnedVariant="RemoveOwnedVariant",ie.SelectOwnedVariant="SelectOwnedVariant",ie}(y||{}),S=function(ie){return ie.XmlHttpRequest="XMLHttpRequest",ie}(S||{}),l=function(ie){return ie.Pc_A7="pc-a7",ie.Native_Windows="native-windows",ie}(l||{}),s=function(ie){return ie.Client="client",ie}(s||{}),I=c(61142),R=c(36466),O=c(43848),Y=c(65726),j=c(75707),fe=c(5798),te=c(70521),ce=c(3816),H="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},Z="1.4.1",X=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,Me=function ue(ie){var Fe=new Set([ie]),nt=new Set,et=ie.match(X);if(!et)return function(){return!1};var Tt_major=+et[1],Tt_minor=+et[2],Tt_patch=+et[3];if(null!=et[4])return function(ir){return ir===ie};function jt(ti){return nt.add(ti),!1}function On(ti){return Fe.add(ti),!0}return function(ir){if(Fe.has(ir))return!0;if(nt.has(ir))return!1;var dr=ir.match(X);if(!dr)return jt(ir);var so_minor=+dr[2],so_patch=+dr[3];return null!=dr[4]||Tt_major!==+dr[1]?jt(ir):0===Tt_major?Tt_minor===so_minor&&Tt_patch<=so_patch?On(ir):jt(ir):Tt_minor<=so_minor?On(ir):jt(ir)}}(Z),be=Z.split(".")[0],Q=Symbol.for("opentelemetry.js.api."+be),ne=H;function Ge(ie,Fe,nt,et){var Tt;void 0===et&&(et=!1);var jt=ne[Q]=null!==(Tt=ne[Q])&&void 0!==Tt?Tt:{version:Z};if(!et&&jt[ie]){var On=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+ie);return nt.error(On.stack||On.message),!1}return jt.version!==Z?(On=new Error("@opentelemetry/api: Registration of version v"+jt.version+" for "+ie+" does not match previously registered API v"+Z),nt.error(On.stack||On.message),!1):(jt[ie]=Fe,nt.debug("@opentelemetry/api: Registered a global for "+ie+" v"+Z+"."),!0)}function ge(ie){var Fe,nt,et=null===(Fe=ne[Q])||void 0===Fe?void 0:Fe.version;if(et&&Me(et))return null===(nt=ne[Q])||void 0===nt?void 0:nt[ie]}function Xe(ie,Fe){Fe.debug("@opentelemetry/api: Unregistering a global for "+ie+" v"+Z+".");var nt=ne[Q];nt&&delete nt[ie]}var xe=function(){function ie(Fe){this._namespace=Fe.namespace||"DiagComponentLogger"}return ie.prototype.debug=function(){for(var Fe=[],nt=0;nt<arguments.length;nt++)Fe[nt]=arguments[nt];return Re("debug",this._namespace,Fe)},ie.prototype.error=function(){for(var Fe=[],nt=0;nt<arguments.length;nt++)Fe[nt]=arguments[nt];return Re("error",this._namespace,Fe)},ie.prototype.info=function(){for(var Fe=[],nt=0;nt<arguments.length;nt++)Fe[nt]=arguments[nt];return Re("info",this._namespace,Fe)},ie.prototype.warn=function(){for(var Fe=[],nt=0;nt<arguments.length;nt++)Fe[nt]=arguments[nt];return Re("warn",this._namespace,Fe)},ie.prototype.verbose=function(){for(var Fe=[],nt=0;nt<arguments.length;nt++)Fe[nt]=arguments[nt];return Re("verbose",this._namespace,Fe)},ie}();function Re(ie,Fe,nt){var et=ge("diag");if(et)return nt.unshift(Fe),et[ie].apply(et,function(ie,Fe,nt){if(nt||2===arguments.length)for(var jt,et=0,Tt=Fe.length;et<Tt;et++)(jt||!(et in Fe))&&(jt||(jt=Array.prototype.slice.call(Fe,0,et)),jt[et]=Fe[et]);return ie.concat(jt||Array.prototype.slice.call(Fe))}([],function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt}(nt),!1))}var Ue=function(ie){return ie[ie.NONE=0]="NONE",ie[ie.ERROR=30]="ERROR",ie[ie.WARN=50]="WARN",ie[ie.INFO=60]="INFO",ie[ie.DEBUG=70]="DEBUG",ie[ie.VERBOSE=80]="VERBOSE",ie[ie.ALL=9999]="ALL",ie}(Ue||{}),oe=function(){function ie(){function Fe(Tt){return function(){for(var jt=[],On=0;On<arguments.length;On++)jt[On]=arguments[On];var ti=ge("diag");if(ti)return ti[Tt].apply(ti,function(ie,Fe,nt){if(nt||2===arguments.length)for(var jt,et=0,Tt=Fe.length;et<Tt;et++)(jt||!(et in Fe))&&(jt||(jt=Array.prototype.slice.call(Fe,0,et)),jt[et]=Fe[et]);return ie.concat(jt||Array.prototype.slice.call(Fe))}([],function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt}(jt),!1))}}var nt=this;nt.setLogger=function(Tt,jt){var On,ti,ir;if(void 0===jt&&(jt={logLevel:Ue.INFO}),Tt===nt){var dr=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return nt.error(null!==(On=dr.stack)&&void 0!==On?On:dr.message),!1}"number"==typeof jt&&(jt={logLevel:jt});var so=ge("diag"),bs=function ee(ie,Fe){function nt(et,Tt){var jt=Fe[et];return"function"==typeof jt&&ie>=Tt?jt.bind(Fe):function(){}}return ie<Ue.NONE?ie=Ue.NONE:ie>Ue.ALL&&(ie=Ue.ALL),Fe=Fe||{},{error:nt("error",Ue.ERROR),warn:nt("warn",Ue.WARN),info:nt("info",Ue.INFO),debug:nt("debug",Ue.DEBUG),verbose:nt("verbose",Ue.VERBOSE)}}(null!==(ti=jt.logLevel)&&void 0!==ti?ti:Ue.INFO,Tt);if(so&&!jt.suppressOverrideMessage){var Zs=null!==(ir=(new Error).stack)&&void 0!==ir?ir:"<failed to generate stacktrace>";so.warn("Current logger will be overwritten from "+Zs),bs.warn("Current logger will overwrite one already registered from "+Zs)}return Ge("diag",bs,nt,!0)},nt.disable=function(){Xe("diag",nt)},nt.createComponentLogger=function(Tt){return new xe(Tt)},nt.verbose=Fe("verbose"),nt.debug=Fe("debug"),nt.info=Fe("info"),nt.warn=Fe("warn"),nt.error=Fe("error")}return ie.instance=function(){return this._instance||(this._instance=new ie),this._instance},ie}(),Le=oe.instance();function Oe(ie){return Symbol.for(ie)}var Ie=new(function(){return function ie(Fe){var nt=this;nt._currentContext=Fe?new Map(Fe):new Map,nt.getValue=function(et){return nt._currentContext.get(et)},nt.setValue=function(et,Tt){var jt=new ie(nt._currentContext);return jt._currentContext.set(et,Tt),jt},nt.deleteValue=function(et){var Tt=new ie(nt._currentContext);return Tt._currentContext.delete(et),Tt}}}()),ve=function(){function ie(){}return ie.prototype.active=function(){return Ie},ie.prototype.with=function(Fe,nt,et){for(var Tt=[],jt=3;jt<arguments.length;jt++)Tt[jt-3]=arguments[jt];return nt.call.apply(nt,function(ie,Fe,nt){if(nt||2===arguments.length)for(var jt,et=0,Tt=Fe.length;et<Tt;et++)(jt||!(et in Fe))&&(jt||(jt=Array.prototype.slice.call(Fe,0,et)),jt[et]=Fe[et]);return ie.concat(jt||Array.prototype.slice.call(Fe))}([et],function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt}(Tt),!1))},ie.prototype.bind=function(Fe,nt){return nt},ie.prototype.enable=function(){return this},ie.prototype.disable=function(){return this},ie}(),Qe="context",zt=new ve,Vt=function(){function ie(){}return ie.getInstance=function(){return this._instance||(this._instance=new ie),this._instance},ie.prototype.setGlobalContextManager=function(Fe){return Ge(Qe,Fe,oe.instance())},ie.prototype.active=function(){return this._getContextManager().active()},ie.prototype.with=function(Fe,nt,et){for(var Tt,jt=[],On=3;On<arguments.length;On++)jt[On-3]=arguments[On];return(Tt=this._getContextManager()).with.apply(Tt,function(ie,Fe,nt){if(nt||2===arguments.length)for(var jt,et=0,Tt=Fe.length;et<Tt;et++)(jt||!(et in Fe))&&(jt||(jt=Array.prototype.slice.call(Fe,0,et)),jt[et]=Fe[et]);return ie.concat(jt||Array.prototype.slice.call(Fe))}([Fe,nt,et],function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt}(jt),!1))},ie.prototype.bind=function(Fe,nt){return this._getContextManager().bind(Fe,nt)},ie.prototype._getContextManager=function(){return ge(Qe)||zt},ie.prototype.disable=function(){this._getContextManager().disable(),Xe(Qe,oe.instance())},ie}(),de=function(ie){return ie[ie.NONE=0]="NONE",ie[ie.SAMPLED=1]="SAMPLED",ie}(de||{}),J="0000000000000000",$e="00000000000000000000000000000000",st={traceId:$e,spanId:J,traceFlags:de.NONE},Gt=function(){function ie(Fe){void 0===Fe&&(Fe=st),this._spanContext=Fe}return ie.prototype.spanContext=function(){return this._spanContext},ie.prototype.setAttribute=function(Fe,nt){return this},ie.prototype.setAttributes=function(Fe){return this},ie.prototype.addEvent=function(Fe,nt){return this},ie.prototype.setStatus=function(Fe){return this},ie.prototype.updateName=function(Fe){return this},ie.prototype.end=function(Fe){},ie.prototype.isRecording=function(){return!1},ie.prototype.recordException=function(Fe,nt){},ie}(),Zt=Oe("OpenTelemetry Context Key SPAN");function kn(ie){return ie.getValue(Zt)||void 0}function Un(){return kn(Vt.getInstance().active())}function ni(ie,Fe){return ie.setValue(Zt,Fe)}function qe(ie){return ie.deleteValue(Zt)}function mi(ie,Fe){return ni(ie,new Gt(Fe))}function Bi(ie){var Fe;return null===(Fe=kn(ie))||void 0===Fe?void 0:Fe.spanContext()}var _i=/^([0-9a-f]{32})$/i,Bn=/^[0-9a-f]{16}$/i;function jn(ie){return _i.test(ie)&&ie!==$e}function It(ie){return Bn.test(ie)&&ie!==J}function vn(ie){return jn(ie.traceId)&&It(ie.spanId)}function Vn(ie){return new Gt(ie)}var ht=Vt.getInstance(),it=function(){function ie(){}return ie.prototype.startSpan=function(Fe,nt,et){if(void 0===et&&(et=ht.active()),nt?.root)return new Gt;var jt=et&&Bi(et);return function Ct(ie){return"object"==typeof ie&&"string"==typeof ie.spanId&&"string"==typeof ie.traceId&&"number"==typeof ie.traceFlags}(jt)&&vn(jt)?new Gt(jt):new Gt},ie.prototype.startActiveSpan=function(Fe,nt,et,Tt){var jt,On,ti;if(!(arguments.length<2)){2===arguments.length?ti=nt:3===arguments.length?(jt=nt,ti=et):(jt=nt,On=et,ti=Tt);var ir=On??ht.active(),dr=this.startSpan(Fe,jt,ir),so=ni(ir,dr);return ht.with(so,ti,void 0,dr)}},ie}(),Et=new it,We=function(){function ie(Fe,nt,et,Tt){this._provider=Fe,this.name=nt,this.version=et,this.options=Tt}return ie.prototype.startSpan=function(Fe,nt,et){return this._getTracer().startSpan(Fe,nt,et)},ie.prototype.startActiveSpan=function(Fe,nt,et,Tt){var jt=this._getTracer();return Reflect.apply(jt.startActiveSpan,jt,arguments)},ie.prototype._getTracer=function(){if(this._delegate)return this._delegate;var Fe=this._provider.getDelegateTracer(this.name,this.version,this.options);return Fe?(this._delegate=Fe,this._delegate):Et},ie}(),gt=new(function(){function ie(){}return ie.prototype.getTracer=function(Fe,nt,et){return new it},ie}()),wt=function(){function ie(){}return ie.prototype.getTracer=function(Fe,nt,et){var Tt;return null!==(Tt=this.getDelegateTracer(Fe,nt,et))&&void 0!==Tt?Tt:new We(this,Fe,nt,et)},ie.prototype.getDelegate=function(){var Fe;return null!==(Fe=this._delegate)&&void 0!==Fe?Fe:gt},ie.prototype.setDelegate=function(Fe){this._delegate=Fe},ie.prototype.getDelegateTracer=function(Fe,nt,et){var Tt;return null===(Tt=this._delegate)||void 0===Tt?void 0:Tt.getTracer(Fe,nt,et)},ie}(),rn="trace",Mi=function(){function ie(){this._proxyTracerProvider=new wt,this.wrapSpanContext=Vn,this.isSpanContextValid=vn,this.deleteSpan=qe,this.getSpan=kn,this.getActiveSpan=Un,this.getSpanContext=Bi,this.setSpan=ni,this.setSpanContext=mi}return ie.getInstance=function(){return this._instance||(this._instance=new ie),this._instance},ie.prototype.setGlobalTracerProvider=function(Fe){var nt=Ge(rn,this._proxyTracerProvider,oe.instance());return nt&&this._proxyTracerProvider.setDelegate(Fe),nt},ie.prototype.getTracerProvider=function(){return ge(rn)||this._proxyTracerProvider},ie.prototype.getTracer=function(Fe,nt){return this.getTracerProvider().getTracer(Fe,nt)},ie.prototype.disable=function(){Xe(rn,oe.instance()),this._proxyTracerProvider=new wt},ie}().getInstance(),En=Vt.getInstance(),Tn=function(){function ie(){}return ie.prototype.inject=function(Fe,nt){},ie.prototype.extract=function(Fe,nt){return Fe},ie.prototype.fields=function(){return[]},ie}(),Cn={get:function(ie,Fe){if(null!=ie)return ie[Fe]},keys:function(ie){return null==ie?[]:Object.keys(ie)}},Wn={set:function(ie,Fe,nt){null!=ie&&(ie[Fe]=nt)}},Oi=Oe("OpenTelemetry Baggage Key");function Qn(ie){return ie.getValue(Oi)||void 0}function Fi(){return Qn(Vt.getInstance().active())}function Ai(ie,Fe){return ie.setValue(Oi,Fe)}function ln(ie){return ie.deleteValue(Oi)}var Hi=function(){function ie(Fe){this._entries=Fe?new Map(Fe):new Map}return ie.prototype.getEntry=function(Fe){var nt=this._entries.get(Fe);if(nt)return Object.assign({},nt)},ie.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(Fe){var nt=function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt}(Fe,2);return[nt[0],nt[1]]})},ie.prototype.setEntry=function(Fe,nt){var et=new ie(this._entries);return et._entries.set(Fe,nt),et},ie.prototype.removeEntry=function(Fe){var nt=new ie(this._entries);return nt._entries.delete(Fe),nt},ie.prototype.removeEntries=function(){for(var Fe,nt,et=[],Tt=0;Tt<arguments.length;Tt++)et[Tt]=arguments[Tt];var jt=new ie(this._entries);try{for(var On=function(ie){var Fe="function"==typeof Symbol&&Symbol.iterator,nt=Fe&&ie[Fe],et=0;if(nt)return nt.call(ie);if(ie&&"number"==typeof ie.length)return{next:function(){return ie&&et>=ie.length&&(ie=void 0),{value:ie&&ie[et++],done:!ie}}};throw new TypeError(Fe?"Object is not iterable.":"Symbol.iterator is not defined.")}(et),ti=On.next();!ti.done;ti=On.next())jt._entries.delete(ti.value)}catch(dr){Fe={error:dr}}finally{try{ti&&!ti.done&&(nt=On.return)&&nt.call(On)}finally{if(Fe)throw Fe.error}}return jt},ie.prototype.clear=function(){return new ie},ie}(),Mr=Symbol("BaggageEntryMetadata"),Wr=oe.instance();function uo(ie){return void 0===ie&&(ie={}),new Hi(new Map(Object.entries(ie)))}var ss="propagation",Cs=new Tn,Pi=function(){function ie(){this.createBaggage=uo,this.getBaggage=Qn,this.getActiveBaggage=Fi,this.setBaggage=Ai,this.deleteBaggage=ln}return ie.getInstance=function(){return this._instance||(this._instance=new ie),this._instance},ie.prototype.setGlobalPropagator=function(Fe){return Ge(ss,Fe,oe.instance())},ie.prototype.inject=function(Fe,nt,et){return void 0===et&&(et=Wn),this._getGlobalPropagator().inject(Fe,nt,et)},ie.prototype.extract=function(Fe,nt,et){return void 0===et&&(et=Cn),this._getGlobalPropagator().extract(Fe,nt,et)},ie.prototype.fields=function(){return this._getGlobalPropagator().fields()},ie.prototype.disable=function(){Xe(ss,oe.instance())},ie.prototype._getGlobalPropagator=function(){return ge(ss)||Cs},ie}().getInstance(),li="[object Object]",er="[object Null]",Fr="[object Undefined]",Fn=Function.prototype.toString,xi=Fn.call(Object),fi=function Dr(ie,Fe){return function(nt){return ie(Fe(nt))}}(Object.getPrototypeOf,Object),Si=Object.prototype,Yi=Si.hasOwnProperty,Qi=Symbol?Symbol.toStringTag:void 0,vr=Si.toString;function br(ie){if(!function ro(ie){return null!=ie&&"object"==typeof ie}(ie)||function Oo(ie){return null==ie?void 0===ie?Fr:er:Qi&&Qi in Object(ie)?function Hr(ie){var Fe=Yi.call(ie,Qi),nt=ie[Qi],et=!1;try{ie[Qi]=void 0,et=!0}catch{}var Tt=vr.call(ie);return et&&(Fe?ie[Qi]=nt:delete ie[Qi]),Tt}(ie):function Ao(ie){return vr.call(ie)}(ie)}(ie)!==li)return!1;var Fe=fi(ie);if(null===Fe)return!0;var nt=Yi.call(Fe,"constructor")&&Fe.constructor;return"function"==typeof nt&&nt instanceof nt&&Fn.call(nt)===xi}function ao(ie){return Gn(ie)?ie.slice():ie}function Ar(ie,Fe,nt,et){var Tt;if(void 0===nt&&(nt=0),!(nt>20)){if(nt++,Wi(ie)||Wi(Fe)||$n(Fe))Tt=ao(Fe);else if(Gn(ie)){if(Tt=ie.slice(),Gn(Fe))for(var jt=0,On=Fe.length;jt<On;jt++)Tt.push(ao(Fe[jt]));else if(Ci(Fe))for(jt=0,On=(ti=Object.keys(Fe)).length;jt<On;jt++)Tt[ir=ti[jt]]=ao(Fe[ir])}else if(Ci(ie))if(Ci(Fe)){if(!function Ti(ie,Fe){return!(!br(ie)||!br(Fe))}(ie,Fe))return Fe;var ti;for(Tt=Object.assign({},ie),jt=0,On=(ti=Object.keys(Fe)).length;jt<On;jt++){var ir,dr=Fe[ir=ti[jt]];if(Wi(dr))typeof dr>"u"?delete Tt[ir]:Tt[ir]=dr;else{var so=Tt[ir],bs=dr;if(sn(ie,ir,et)||sn(Fe,ir,et))delete Tt[ir];else{if(Ci(so)&&Ci(bs)){var Zs=et.get(so)||[],ed=et.get(bs)||[];Zs.push({obj:ie,key:ir}),ed.push({obj:Fe,key:ir}),et.set(so,Zs),et.set(bs,ed)}Tt[ir]=Ar(Tt[ir],dr,nt,et)}}}}else Tt=Fe;return Tt}}function sn(ie,Fe,nt){for(var et=nt.get(ie[Fe])||[],Tt=0,jt=et.length;Tt<jt;Tt++){var On=et[Tt];if(On.key===Fe&&On.obj===ie)return!0}return!1}function Gn(ie){return Array.isArray(ie)}function $n(ie){return"function"==typeof ie}function Ci(ie){return!Wi(ie)&&!Gn(ie)&&!$n(ie)&&"object"==typeof ie}function Wi(ie){return"string"==typeof ie||"number"==typeof ie||"boolean"==typeof ie||typeof ie>"u"||ie instanceof Date||ie instanceof RegExp||null===ie}var Gi=function(ie){return ie.AlwaysOff="always_off",ie.AlwaysOn="always_on",ie.ParentBasedAlwaysOff="parentbased_always_off",ie.ParentBasedAlwaysOn="parentbased_always_on",ie.ParentBasedTraceIdRatio="parentbased_traceidratio",ie.TraceIdRatio="traceidratio",ie}(Gi||{}),Tr=",",_o=["OTEL_SDK_DISABLED"];function zo(ie){return _o.indexOf(ie)>-1}var as=["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 ps(ie){return as.indexOf(ie)>-1}var Hs=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function Qr(ie){return Hs.indexOf(ie)>-1}var ca=1/0,xs={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:Ue.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:ca,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:ca,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:ca,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Gi.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 hl(ie,Fe,nt){if(!(typeof nt[ie]>"u")){var et=String(nt[ie]);Fe[ie]="true"===et.toLowerCase()}}function Bs(ie,Fe,nt,et,Tt){if(void 0===et&&(et=-1/0),void 0===Tt&&(Tt=1/0),typeof nt[ie]<"u"){var jt=Number(nt[ie]);isNaN(jt)||(Fe[ie]=jt<et?et:jt>Tt?Tt:jt)}}function Oa(ie,Fe,nt,et){void 0===et&&(et=Tr);var Tt=nt[ie];"string"==typeof Tt&&(Fe[ie]=Tt.split(et).map(function(jt){return jt.trim()}))}var qs={ALL:Ue.ALL,VERBOSE:Ue.VERBOSE,DEBUG:Ue.DEBUG,INFO:Ue.INFO,WARN:Ue.WARN,ERROR:Ue.ERROR,NONE:Ue.NONE};function Er(ie,Fe,nt){var et=nt[ie];if("string"==typeof et){var Tt=qs[et.toUpperCase()];null!=Tt&&(Fe[ie]=Tt)}}function js(ie){var Fe={};for(var nt in xs){var et=nt;if("OTEL_LOG_LEVEL"===et)Er(et,Fe,ie);else if(zo(et))hl(et,Fe,ie);else if(ps(et))Bs(et,Fe,ie);else if(Qr(et))Oa(et,Fe,ie);else{var Tt=ie[et];typeof Tt<"u"&&null!==Tt&&(Fe[et]=String(Tt))}}return Fe}var ea="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{};function Zo(){var ie=js(ea);return Object.assign({},xs,ie)}var ho=function(){function ie(Fe){var nt;void 0===Fe&&(Fe={}),this._propagators=null!==(nt=Fe.propagators)&&void 0!==nt?nt:[],this._fields=Array.from(new Set(this._propagators.map(function(et){return"function"==typeof et.fields?et.fields():[]}).reduce(function(et,Tt){return et.concat(Tt)},[])))}return ie.prototype.inject=function(Fe,nt,et){var Tt,jt;try{for(var On=function(ie){var Fe="function"==typeof Symbol&&Symbol.iterator,nt=Fe&&ie[Fe],et=0;if(nt)return nt.call(ie);if(ie&&"number"==typeof ie.length)return{next:function(){return ie&&et>=ie.length&&(ie=void 0),{value:ie&&ie[et++],done:!ie}}};throw new TypeError(Fe?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),ti=On.next();!ti.done;ti=On.next()){var ir=ti.value;try{ir.inject(Fe,nt,et)}catch(dr){Le.warn("Failed to inject with "+ir.constructor.name+". Err: "+dr.message)}}}catch(dr){Tt={error:dr}}finally{try{ti&&!ti.done&&(jt=On.return)&&jt.call(On)}finally{if(Tt)throw Tt.error}}},ie.prototype.extract=function(Fe,nt,et){return this._propagators.reduce(function(Tt,jt){try{return jt.extract(Tt,nt,et)}catch(On){Le.warn("Failed to inject with "+jt.constructor.name+". Err: "+On.message)}return Tt},Fe)},ie.prototype.fields=function(){return this._fields.slice()},ie}(),Bo=Oe("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function _r(ie){return!0===ie.getValue(Bo)}var $s="[_0-9a-z-*/]",Ba=new RegExp("^(?:[a-z]"+$s+"{0,255}|[a-z0-9]"+$s+"{0,240}@[a-z]"+$s+"{0,13})$"),Ml=/^[ -~]{0,255}[!-~]$/,_s=/,|=/,Kt=function(){function ie(Fe){this._internalState=new Map,Fe&&this._parse(Fe)}return ie.prototype.set=function(Fe,nt){var et=this._clone();return et._internalState.has(Fe)&&et._internalState.delete(Fe),et._internalState.set(Fe,nt),et},ie.prototype.unset=function(Fe){var nt=this._clone();return nt._internalState.delete(Fe),nt},ie.prototype.get=function(Fe){return this._internalState.get(Fe)},ie.prototype.serialize=function(){var Fe=this;return this._keys().reduce(function(nt,et){return nt.push(et+"="+Fe.get(et)),nt},[]).join(",")},ie.prototype._parse=function(Fe){Fe.length>512||(this._internalState=Fe.split(",").reverse().reduce(function(nt,et){var Tt=et.trim(),jt=Tt.indexOf("=");if(-1!==jt){var On=Tt.slice(0,jt),ti=Tt.slice(jt+1,et.length);(function wa(ie){return Ba.test(ie)})(On)&&function To(ie){return Ml.test(ie)&&!_s.test(ie)}(ti)&&nt.set(On,ti)}return nt},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},ie.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},ie.prototype._clone=function(){var Fe=new ie;return Fe._internalState=new Map(this._internalState),Fe},ie}(),Zn="traceparent",Ii="tracestate",Dt=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$"),St=function(){function ie(){}return ie.prototype.inject=function(Fe,nt,et){var Tt=Mi.getSpanContext(Fe);if(Tt&&!_r(Fe)&&vn(Tt)){var jt="00-"+Tt.traceId+"-"+Tt.spanId+"-0"+Number(Tt.traceFlags||de.NONE).toString(16);et.set(nt,Zn,jt),Tt.traceState&&et.set(nt,Ii,Tt.traceState.serialize())}},ie.prototype.extract=function(Fe,nt,et){var Tt=et.get(nt,Zn);if(!Tt)return Fe;var jt=Array.isArray(Tt)?Tt[0]:Tt;if("string"!=typeof jt)return Fe;var On=function Xt(ie){var Fe=Dt.exec(ie);return!Fe||"00"===Fe[1]&&Fe[5]?null:{traceId:Fe[2],spanId:Fe[3],traceFlags:parseInt(Fe[4],16)}}(jt);if(!On)return Fe;On.isRemote=!0;var ti=et.get(nt,Ii);if(ti){var ir=Array.isArray(ti)?ti.join(","):ti;On.traceState=new Kt("string"==typeof ir?ir:void 0)}return Mi.setSpanContext(Fe,On)},ie.prototype.fields=function(){return[Zn,Ii]},ie}(),Sn="=",Jn=";",Ji="baggage";function Ns(ie){var Fe=ie.split(Jn);if(!(Fe.length<=0)){var nt=Fe.shift();if(nt){var et=nt.indexOf(Sn);if(!(et<=0)){var On,Tt=decodeURIComponent(nt.substring(0,et).trim()),jt=decodeURIComponent(nt.substring(et+1).trim());return Fe.length>0&&(On=function Nr(ie){return"string"!=typeof ie&&(Wr.error("Cannot create baggage metadata from unknown type: "+typeof ie),ie=""),{__TYPE__:Mr,toString:function(){return ie}}}(Fe.join(Jn))),{key:Tt,value:jt,metadata:On}}}}}function ba(ie){return"string"!=typeof ie||0===ie.length?{}:ie.split(",").map(function(Fe){return Ns(Fe)}).filter(function(Fe){return void 0!==Fe&&Fe.value.length>0}).reduce(function(Fe,nt){return Fe[nt.key]=nt.value,Fe},{})}var Os=function(){function ie(){}return ie.prototype.inject=function(Fe,nt,et){var Tt=Pi.getBaggage(Fe);if(Tt&&!_r(Fe)){var On=function Ds(ie){return ie.reduce(function(Fe,nt){var et=Fe+(""!==Fe?",":"")+nt;return et.length>8192?Fe:et},"")}(function ga(ie){return ie.getAllEntries().map(function(Fe){var nt=function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt}(Fe,2),Tt=nt[1],jt=encodeURIComponent(nt[0])+"="+encodeURIComponent(Tt.value);return void 0!==Tt.metadata&&(jt+=Jn+Tt.metadata.toString()),jt})}(Tt).filter(function(ti){return ti.length<=4096}).slice(0,180));On.length>0&&et.set(nt,Ji,On)}},ie.prototype.extract=function(Fe,nt,et){var Tt=et.get(nt,Ji),jt=Array.isArray(Tt)?Tt.join(","):Tt;if(!jt)return Fe;var On={};return 0===jt.length?Fe:(jt.split(",").forEach(function(ir){var dr=Ns(ir);if(dr){var so={value:dr.value};dr.metadata&&(so.metadata=dr.metadata),On[dr.key]=so}}),0===Object.entries(On).length?Fe:Pi.setBaggage(Fe,Pi.createBaggage(On)))},ie.prototype.fields=function(){return[Ji]},ie}();function $i(ie){for(var Fe={},nt=ie.length,et=0;et<nt;et++){var Tt=ie[et];Tt&&(Fe[String(Tt).toUpperCase().replace(/[-.]/g,"_")]=Tt)}return Fe}var ll,ke="service.name",B="telemetry.sdk.name",re="telemetry.sdk.language",he="telemetry.sdk.version",$l=ke,Yc=B,ad=re,Bl=he,zl=$i(["cloud.provider","cloud.account.id","cloud.region","cloud.availability_zone","cloud.platform","aws.ecs.container.arn","aws.ecs.cluster.arn","aws.ecs.launchtype","aws.ecs.task.arn","aws.ecs.task.family","aws.ecs.task.revision","aws.eks.cluster.arn","aws.log.group.names","aws.log.group.arns","aws.log.stream.names","aws.log.stream.arns","container.name","container.id","container.runtime","container.image.name","container.image.tag","deployment.environment","device.id","device.model.identifier","device.model.name","faas.name","faas.id","faas.version","faas.instance","faas.max_memory","host.id","host.name","host.type","host.arch","host.image.name","host.image.id","host.image.version","k8s.cluster.name","k8s.node.name","k8s.node.uid","k8s.namespace.name","k8s.pod.uid","k8s.pod.name","k8s.container.name","k8s.replicaset.uid","k8s.replicaset.name","k8s.deployment.uid","k8s.deployment.name","k8s.statefulset.uid","k8s.statefulset.name","k8s.daemonset.uid","k8s.daemonset.name","k8s.job.uid","k8s.job.name","k8s.cronjob.uid","k8s.cronjob.name","os.type","os.description","os.name","os.version","process.pid","process.executable.name","process.executable.path","process.command","process.command_line","process.command_args","process.owner","process.runtime.name","process.runtime.version","process.runtime.description",ke,"service.namespace","service.instance.id","service.version",B,re,he,"telemetry.auto.version","webengine.name","webengine.version","webengine.description"]),Gu=$i(["cpp","dotnet","erlang","go","java","nodejs","php","python","ruby","webjs"]),lf=((ll={})[zl.TELEMETRY_SDK_NAME]="opentelemetry",ll[zl.PROCESS_RUNTIME_NAME]="browser",ll[zl.TELEMETRY_SDK_LANGUAGE]=Gu.WEBJS,ll[zl.TELEMETRY_SDK_VERSION]="1.24.1",ll),Rs=function(){return Rs=Object.assign||function(ie){for(var Fe,nt=1,et=arguments.length;nt<et;nt++)for(var Tt in Fe=arguments[nt])Object.prototype.hasOwnProperty.call(Fe,Tt)&&(ie[Tt]=Fe[Tt]);return ie},Rs.apply(this,arguments)},Hu=function(){function ie(Fe,nt){var Tt,et=this;this._attributes=Fe,this.asyncAttributesPending=null!=nt,this._syncAttributes=null!==(Tt=this._attributes)&&void 0!==Tt?Tt:{},this._asyncAttributesPromise=nt?.then(function(jt){return et._attributes=Object.assign({},et._attributes,jt),et.asyncAttributesPending=!1,jt},function(jt){return Le.debug("a resource's async attributes promise rejected: %s",jt),et.asyncAttributesPending=!1,{}})}return ie.empty=function(){return ie.EMPTY},ie.default=function(){var Fe;return new ie(((Fe={})[$l]="unknown_service",Fe[ad]=lf[ad],Fe[Yc]=lf[Yc],Fe[Bl]=lf[Bl],Fe))},Object.defineProperty(ie.prototype,"attributes",{get:function(){var Fe;return this.asyncAttributesPending&&Le.error("Accessing resource attributes before async attributes settled"),null!==(Fe=this._attributes)&&void 0!==Fe?Fe:{}},enumerable:!1,configurable:!0}),ie.prototype.waitForAsyncAttributes=function(){return function(ie,Fe,nt,et){return new(nt||(nt=Promise))(function(jt,On){function ti(so){try{dr(et.next(so))}catch(bs){On(bs)}}function ir(so){try{dr(et.throw(so))}catch(bs){On(bs)}}function dr(so){so.done?jt(so.value):function Tt(jt){return jt instanceof nt?jt:new nt(function(On){On(jt)})}(so.value).then(ti,ir)}dr((et=et.apply(ie,Fe||[])).next())})}(this,void 0,void 0,function(){return function(ie,Fe){var et,Tt,jt,On,nt={label:0,sent:function(){if(1&jt[0])throw jt[1];return jt[1]},trys:[],ops:[]};return On={next:ti(0),throw:ti(1),return:ti(2)},"function"==typeof Symbol&&(On[Symbol.iterator]=function(){return this}),On;function ti(dr){return function(so){return function ir(dr){if(et)throw new TypeError("Generator is already executing.");for(;nt;)try{if(et=1,Tt&&(jt=2&dr[0]?Tt.return:dr[0]?Tt.throw||((jt=Tt.return)&&jt.call(Tt),0):Tt.next)&&!(jt=jt.call(Tt,dr[1])).done)return jt;switch(Tt=0,jt&&(dr=[2&dr[0],jt.value]),dr[0]){case 0:case 1:jt=dr;break;case 4:return nt.label++,{value:dr[1],done:!1};case 5:nt.label++,Tt=dr[1],dr=[0];continue;case 7:dr=nt.ops.pop(),nt.trys.pop();continue;default:if(!(jt=(jt=nt.trys).length>0&&jt[jt.length-1])&&(6===dr[0]||2===dr[0])){nt=0;continue}if(3===dr[0]&&(!jt||dr[1]>jt[0]&&dr[1]<jt[3])){nt.label=dr[1];break}if(6===dr[0]&&nt.label<jt[1]){nt.label=jt[1],jt=dr;break}if(jt&&nt.label<jt[2]){nt.label=jt[2],nt.ops.push(dr);break}jt[2]&&nt.ops.pop(),nt.trys.pop();continue}dr=Fe.call(ie,nt)}catch(so){dr=[6,so],Tt=0}finally{et=jt=0}if(5&dr[0])throw dr[1];return{value:dr[0]?dr[1]:void 0,done:!0}}([dr,so])}}}(this,function(Fe){switch(Fe.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:Fe.sent(),Fe.label=2;case 2:return[2]}})})},ie.prototype.merge=function(Fe){var et,nt=this;if(!Fe)return this;var Tt=Rs(Rs({},this._syncAttributes),null!==(et=Fe._syncAttributes)&&void 0!==et?et:Fe.attributes);if(!this._asyncAttributesPromise&&!Fe._asyncAttributesPromise)return new ie(Tt);var jt=Promise.all([this._asyncAttributesPromise,Fe._asyncAttributesPromise]).then(function(On){var ti,ir=function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt}(On,2),dr=ir[0],so=ir[1];return Rs(Rs(Rs(Rs({},nt._syncAttributes),dr),null!==(ti=Fe._syncAttributes)&&void 0!==ti?ti:Fe.attributes),so)});return new ie(Tt,jt)},ie.EMPTY=new ie({}),ie}(),Ec=function(ie){return ie[ie.INTERNAL=0]="INTERNAL",ie[ie.SERVER=1]="SERVER",ie[ie.CLIENT=2]="CLIENT",ie[ie.PRODUCER=3]="PRODUCER",ie[ie.CONSUMER=4]="CONSUMER",ie}(Ec||{}),Rd=function(ie){return ie[ie.NOT_RECORD=0]="NOT_RECORD",ie[ie.RECORD=1]="RECORD",ie[ie.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED",ie}(Rd||{}),ac=function(ie){var Fe="function"==typeof Symbol&&Symbol.iterator,nt=Fe&&ie[Fe],et=0;if(nt)return nt.call(ie);if(ie&&"number"==typeof ie.length)return{next:function(){return ie&&et>=ie.length&&(ie=void 0),{value:ie&&ie[et++],done:!ie}}};throw new TypeError(Fe?"Object is not iterable.":"Symbol.iterator is not defined.")},Xl=function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt};function xa(ie){var Fe,nt,et={};if("object"!=typeof ie||null==ie)return et;try{for(var Tt=ac(Object.entries(ie)),jt=Tt.next();!jt.done;jt=Tt.next()){var On=Xl(jt.value,2),ti=On[0],ir=On[1];zc(ti)?lc(ir)?et[ti]=Array.isArray(ir)?ir.slice():ir:Le.warn("Invalid attribute value set for key: "+ti):Le.warn("Invalid attribute key: "+ti)}}catch(dr){Fe={error:dr}}finally{try{jt&&!jt.done&&(nt=Tt.return)&&nt.call(Tt)}finally{if(Fe)throw Fe.error}}return et}function zc(ie){return"string"==typeof ie&&ie.length>0}function lc(ie){return null==ie||(Array.isArray(ie)?function da(ie){var Fe,nt,et;try{for(var Tt=ac(ie),jt=Tt.next();!jt.done;jt=Tt.next()){var On=jt.value;if(null!=On){if(!et){if(Mo(On)){et=typeof On;continue}return!1}if(typeof On!==et)return!1}}}catch(ti){Fe={error:ti}}finally{try{jt&&!jt.done&&(nt=Tt.return)&&nt.call(Tt)}finally{if(Fe)throw Fe.error}}return!0}(ie):Mo(ie))}function Mo(ie){switch(typeof ie){case"number":case"boolean":case"string":return!0}return!1}var Kc=function(ie){return ie[ie.UNSET=0]="UNSET",ie[ie.OK=1]="OK",ie[ie.ERROR=2]="ERROR",ie}(Kc||{}),Il=performance,Dh=Math.pow(10,6),Mc=Math.pow(10,9);function ua(ie){return[Math.trunc(ie/1e3),Math.round(ie%1e3*Dh)]}function Ac(){var ie=Il.timeOrigin;return"number"!=typeof ie&&(ie=Il.timing&&Il.timing.fetchStart),ie}function cc(ie){return Array.isArray(ie)&&2===ie.length&&"number"==typeof ie[0]&&"number"==typeof ie[1]}function Rl(ie){return cc(ie)||"number"==typeof ie||ie instanceof Date}function Ph(ie,Fe){var nt=[ie[0]+Fe[0],ie[1]+Fe[1]];return nt[1]>=Mc&&(nt[1]-=Mc,nt[0]+=1),nt}var Lt=$i(["aws.lambda.invoked_arn","db.system","db.connection_string","db.user","db.jdbc.driver_classname","db.name","db.statement","db.operation","db.mssql.instance_name","db.cassandra.keyspace","db.cassandra.page_size","db.cassandra.consistency_level","db.cassandra.table","db.cassandra.idempotence","db.cassandra.speculative_execution_count","db.cassandra.coordinator.id","db.cassandra.coordinator.dc","db.hbase.namespace","db.redis.database_index","db.mongodb.collection","db.sql.table","exception.type","exception.message","exception.stacktrace","exception.escaped","faas.trigger","faas.execution","faas.document.collection","faas.document.operation","faas.document.time","faas.document.name","faas.time","faas.cron","faas.coldstart","faas.invoked_name","faas.invoked_provider","faas.invoked_region","net.transport","net.peer.ip","net.peer.port","net.peer.name","net.host.ip","net.host.port","net.host.name","net.host.connection.type","net.host.connection.subtype","net.host.carrier.name","net.host.carrier.mcc","net.host.carrier.mnc","net.host.carrier.icc","peer.service","enduser.id","enduser.role","enduser.scope","thread.id","thread.name","code.function","code.namespace","code.filepath","code.lineno","http.method","http.url","http.target","http.host","http.scheme","http.status_code","http.flavor","http.user_agent","http.request_content_length","http.request_content_length_uncompressed","http.response_content_length","http.response_content_length_uncompressed","http.server_name","http.route","http.client_ip","aws.dynamodb.table_names","aws.dynamodb.consumed_capacity","aws.dynamodb.item_collection_metrics","aws.dynamodb.provisioned_read_capacity","aws.dynamodb.provisioned_write_capacity","aws.dynamodb.consistent_read","aws.dynamodb.projection","aws.dynamodb.limit","aws.dynamodb.attributes_to_get","aws.dynamodb.index_name","aws.dynamodb.select","aws.dynamodb.global_secondary_indexes","aws.dynamodb.local_secondary_indexes","aws.dynamodb.exclusive_start_table","aws.dynamodb.table_count","aws.dynamodb.scan_forward","aws.dynamodb.segment","aws.dynamodb.total_segments","aws.dynamodb.count","aws.dynamodb.scanned_count","aws.dynamodb.attribute_definitions","aws.dynamodb.global_secondary_index_updates","messaging.system","messaging.destination","messaging.destination_kind","messaging.temp_destination","messaging.protocol","messaging.protocol_version","messaging.url","messaging.message_id","messaging.conversation_id","messaging.message_payload_size_bytes","messaging.message_payload_compressed_size_bytes","messaging.operation","messaging.consumer_id","messaging.rabbitmq.routing_key","messaging.kafka.message_key","messaging.kafka.consumer_group","messaging.kafka.client_id","messaging.kafka.partition","messaging.kafka.tombstone","rpc.system","rpc.service","rpc.method","rpc.grpc.status_code","rpc.jsonrpc.version","rpc.jsonrpc.request_id","rpc.jsonrpc.error_code","rpc.jsonrpc.error_message","message.type","message.id","message.compressed_size","message.uncompressed_size"]),p_=function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt},f_=function(){function ie(Fe,nt,et,Tt,jt,On,ti,ir,dr,so){void 0===ti&&(ti=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:Kc.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=et,this._spanContext=Tt,this.parentSpanId=On,this.kind=jt,this.links=ti;var bs=Date.now();this._performanceStartTime=Il.now(),this._performanceOffset=bs-(this._performanceStartTime+Ac()),this._startTimeProvided=null!=ir,this.startTime=this._getTime(ir??bs),this.resource=Fe.resource,this.instrumentationLibrary=Fe.instrumentationLibrary,this._spanLimits=Fe.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,null!=so&&this.setAttributes(so),this._spanProcessor=Fe.getActiveSpanProcessor(),this._spanProcessor.onStart(this,nt)}return ie.prototype.spanContext=function(){return this._spanContext},ie.prototype.setAttribute=function(Fe,nt){return null==nt||this._isSpanEnded()?this:0===Fe.length?(Le.warn("Invalid attribute key: "+Fe),this):lc(nt)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,Fe)?(this._droppedAttributesCount++,this):(this.attributes[Fe]=this._truncateToSize(nt),this):(Le.warn("Invalid attribute value set for key: "+Fe),this)},ie.prototype.setAttributes=function(Fe){var nt,et;try{for(var Tt=function(ie){var Fe="function"==typeof Symbol&&Symbol.iterator,nt=Fe&&ie[Fe],et=0;if(nt)return nt.call(ie);if(ie&&"number"==typeof ie.length)return{next:function(){return ie&&et>=ie.length&&(ie=void 0),{value:ie&&ie[et++],done:!ie}}};throw new TypeError(Fe?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(Fe)),jt=Tt.next();!jt.done;jt=Tt.next()){var On=p_(jt.value,2);this.setAttribute(On[0],On[1])}}catch(dr){nt={error:dr}}finally{try{jt&&!jt.done&&(et=Tt.return)&&et.call(Tt)}finally{if(nt)throw nt.error}}return this},ie.prototype.addEvent=function(Fe,nt,et){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return Le.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&Le.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Rl(nt)&&(Rl(et)||(et=nt),nt=void 0);var Tt=xa(nt);return this.events.push({name:Fe,attributes:Tt,time:this._getTime(et),droppedAttributesCount:0}),this},ie.prototype.setStatus=function(Fe){return this._isSpanEnded()||(this.status=Fe),this},ie.prototype.updateName=function(Fe){return this._isSpanEnded()||(this.name=Fe),this},ie.prototype.end=function(Fe){this._isSpanEnded()?Le.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(Fe),this._duration=function Vs(ie,Fe){var nt=Fe[0]-ie[0],et=Fe[1]-ie[1];return et<0&&(nt-=1,et+=Mc),[nt,et]}(this.startTime,this.endTime),this._duration[0]<0&&(Le.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&&Le.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},ie.prototype._getTime=function(Fe){if("number"==typeof Fe&&Fe<Il.now())return function Fa(ie){return Ph(ua(Ac()),ua("number"==typeof ie?ie:Il.now()))}(Fe+this._performanceOffset);if("number"==typeof Fe)return ua(Fe);if(Fe instanceof Date)return ua(Fe.getTime());if(cc(Fe))return Fe;if(this._startTimeProvided)return ua(Date.now());var nt=Il.now()-this._performanceStartTime;return Ph(this.startTime,ua(nt))},ie.prototype.isRecording=function(){return!1===this._ended},ie.prototype.recordException=function(Fe,nt){var et={};"string"==typeof Fe?et[Lt.EXCEPTION_MESSAGE]=Fe:Fe&&(Fe.code?et[Lt.EXCEPTION_TYPE]=Fe.code.toString():Fe.name&&(et[Lt.EXCEPTION_TYPE]=Fe.name),Fe.message&&(et[Lt.EXCEPTION_MESSAGE]=Fe.message),Fe.stack&&(et[Lt.EXCEPTION_STACKTRACE]=Fe.stack)),et[Lt.EXCEPTION_TYPE]||et[Lt.EXCEPTION_MESSAGE]?this.addEvent("exception",et,nt):Le.warn("Failed to record an exception "+Fe)},Object.defineProperty(ie.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),ie.prototype._isSpanEnded=function(){return this._ended&&Le.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},ie.prototype._truncateToLimitUtil=function(Fe,nt){return Fe.length<=nt?Fe:Fe.substr(0,nt)},ie.prototype._truncateToSize=function(Fe){var nt=this,et=this._attributeValueLengthLimit;return et<=0?(Le.warn("Attribute value limit must be positive, got "+et),Fe):"string"==typeof Fe?this._truncateToLimitUtil(Fe,et):Array.isArray(Fe)?Fe.map(function(Tt){return"string"==typeof Tt?nt._truncateToLimitUtil(Tt,et):Tt}):Fe},ie}(),Cm=function(ie){return ie[ie.NOT_RECORD=0]="NOT_RECORD",ie[ie.RECORD=1]="RECORD",ie[ie.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED",ie}(Cm||{}),Wm=function(){function ie(){}return ie.prototype.shouldSample=function(){return{decision:Cm.NOT_RECORD}},ie.prototype.toString=function(){return"AlwaysOffSampler"},ie}(),cm=function(){function ie(){}return ie.prototype.shouldSample=function(){return{decision:Cm.RECORD_AND_SAMPLED}},ie.prototype.toString=function(){return"AlwaysOnSampler"},ie}(),Tv=function _S(){return function(ie){Le.error(function m0(ie){return"string"==typeof ie?ie:JSON.stringify(function yS(ie){for(var Fe={},nt=ie;null!==nt;)Object.getOwnPropertyNames(nt).forEach(function(et){if(!Fe[et]){var Tt=nt[et];Tt&&(Fe[et]=String(Tt))}}),nt=Object.getPrototypeOf(nt);return Fe}(ie))}(ie))}}();function $m(ie){try{Tv(ie)}catch{}}var _0=function(){function ie(Fe){var nt,et,Tt,jt;this._root=Fe.root,this._root||($m(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new cm),this._remoteParentSampled=null!==(nt=Fe.remoteParentSampled)&&void 0!==nt?nt:new cm,this._remoteParentNotSampled=null!==(et=Fe.remoteParentNotSampled)&&void 0!==et?et:new Wm,this._localParentSampled=null!==(Tt=Fe.localParentSampled)&&void 0!==Tt?Tt:new cm,this._localParentNotSampled=null!==(jt=Fe.localParentNotSampled)&&void 0!==jt?jt:new Wm}return ie.prototype.shouldSample=function(Fe,nt,et,Tt,jt,On){var ti=Mi.getSpanContext(Fe);return ti&&vn(ti)?ti.isRemote?ti.traceFlags&de.SAMPLED?this._remoteParentSampled.shouldSample(Fe,nt,et,Tt,jt,On):this._remoteParentNotSampled.shouldSample(Fe,nt,et,Tt,jt,On):ti.traceFlags&de.SAMPLED?this._localParentSampled.shouldSample(Fe,nt,et,Tt,jt,On):this._localParentNotSampled.shouldSample(Fe,nt,et,Tt,jt,On):this._root.shouldSample(Fe,nt,et,Tt,jt,On)},ie.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()+"}"},ie}(),SS=function(){function ie(Fe){void 0===Fe&&(Fe=0),this._ratio=Fe,this._ratio=this._normalize(Fe),this._upperBound=Math.floor(4294967295*this._ratio)}return ie.prototype.shouldSample=function(Fe,nt){return{decision:jn(nt)&&this._accumulate(nt)<this._upperBound?Cm.RECORD_AND_SAMPLED:Cm.NOT_RECORD}},ie.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},ie.prototype._normalize=function(Fe){return"number"!=typeof Fe||isNaN(Fe)?0:Fe>=1?1:Fe<=0?0:Fe},ie.prototype._accumulate=function(Fe){for(var nt=0,et=0;et<Fe.length/8;et++){var Tt=8*et;nt=(nt^parseInt(Fe.slice(Tt,Tt+8),16))>>>0}return nt},ie}(),bS=Zo(),y0=Gi.AlwaysOn,dm=1;function xv(){return{sampler:g_(bS),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:Zo().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:Zo().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:Zo().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:Zo().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:Zo().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:Zo().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:Zo().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:Zo().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function g_(ie){switch(void 0===ie&&(ie=Zo()),ie.OTEL_TRACES_SAMPLER){case Gi.AlwaysOn:return new cm;case Gi.AlwaysOff:return new Wm;case Gi.ParentBasedAlwaysOn:return new _0({root:new cm});case Gi.ParentBasedAlwaysOff:return new _0({root:new Wm});case Gi.TraceIdRatio:return new SS(m_(ie));case Gi.ParentBasedTraceIdRatio:return new _0({root:new SS(m_(ie))});default:return Le.error('OTEL_TRACES_SAMPLER value "'+ie.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+y0+'".'),new cm}}function m_(ie){if(void 0===ie.OTEL_TRACES_SAMPLER_ARG||""===ie.OTEL_TRACES_SAMPLER_ARG)return Le.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+dm+"."),dm;var Fe=Number(ie.OTEL_TRACES_SAMPLER_ARG);return isNaN(Fe)?(Le.error("OTEL_TRACES_SAMPLER_ARG="+ie.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+dm+"."),dm):Fe<0||Fe>1?(Le.error("OTEL_TRACES_SAMPLER_ARG="+ie.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+dm+"."),dm):Fe}var F1=function(){return function ie(){this.generateTraceId=ES(16),this.generateSpanId=ES(8)}}(),v_=Array(32);function ES(ie){return function(){for(var nt=0;nt<2*ie;nt++)v_[nt]=Math.floor(16*Math.random())+48,v_[nt]>=58&&(v_[nt]+=39);return String.fromCharCode.apply(null,v_.slice(0,2*ie))}}var U1=function(){function ie(Fe,nt,et){this._tracerProvider=et;var Tt=function S0(ie){var Fe={sampler:g_()},nt=xv(),et=Object.assign({},nt,Fe,ie);return et.generalLimits=Object.assign({},nt.generalLimits,ie.generalLimits||{}),et.spanLimits=Object.assign({},nt.spanLimits,ie.spanLimits||{}),et}(nt);this._sampler=Tt.sampler,this._generalLimits=Tt.generalLimits,this._spanLimits=Tt.spanLimits,this._idGenerator=nt.idGenerator||new F1,this.resource=et.resource,this.instrumentationLibrary=Fe}return ie.prototype.startSpan=function(Fe,nt,et){var Tt,jt,On;void 0===nt&&(nt={}),void 0===et&&(et=En.active()),nt.root&&(et=Mi.deleteSpan(et));var ti=Mi.getSpan(et);if(_r(et))return Le.debug("Instrumentation suppressed, returning Noop Span"),Mi.wrapSpanContext(st);var bs,Zs,ed,dr=ti?.spanContext(),so=this._idGenerator.generateSpanId();dr&&Mi.isSpanContextValid(dr)?(bs=dr.traceId,Zs=dr.traceState,ed=dr.spanId):bs=this._idGenerator.generateTraceId();var rc=null!==(Tt=nt.kind)&&void 0!==Tt?Tt:Ec.INTERNAL,lu=(null!==(jt=nt.links)&&void 0!==jt?jt:[]).map(function(O_){return{context:O_.context,attributes:xa(O_.attributes)}}),iv=xa(nt.attributes),hm=this._sampler.shouldSample(et,bs,Fe,rc,iv,lu);Zs=null!==(On=hm.traceState)&&void 0!==On?On:Zs;var Nv={traceId:bs,spanId:so,traceFlags:hm.decision===Rd.RECORD_AND_SAMPLED?de.SAMPLED:de.NONE,traceState:Zs};if(hm.decision===Rd.NOT_RECORD)return Le.debug("Recording is off, propagating context in a non-recording span"),Mi.wrapSpanContext(Nv);var D_=xa(Object.assign(iv,hm.attributes));return new f_(this,et,Fe,Nv,rc,ed,lu,nt.startTime,void 0,D_)},ie.prototype.startActiveSpan=function(Fe,nt,et,Tt){var jt,On,ti;if(!(arguments.length<2)){2===arguments.length?ti=nt:3===arguments.length?(jt=nt,ti=et):(jt=nt,On=et,ti=Tt);var ir=On??En.active(),dr=this.startSpan(Fe,jt,ir),so=Mi.setSpan(ir,dr);return En.with(so,ti,void 0,dr)}},ie.prototype.getGeneralLimits=function(){return this._generalLimits},ie.prototype.getSpanLimits=function(){return this._spanLimits},ie.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},ie}(),__=function(ie){var Fe="function"==typeof Symbol&&Symbol.iterator,nt=Fe&&ie[Fe],et=0;if(nt)return nt.call(ie);if(ie&&"number"==typeof ie.length)return{next:function(){return ie&&et>=ie.length&&(ie=void 0),{value:ie&&ie[et++],done:!ie}}};throw new TypeError(Fe?"Object is not iterable.":"Symbol.iterator is not defined.")},B1=function(){function ie(Fe){this._spanProcessors=Fe}return ie.prototype.forceFlush=function(){var Fe,nt,et=[];try{for(var Tt=__(this._spanProcessors),jt=Tt.next();!jt.done;jt=Tt.next())et.push(jt.value.forceFlush())}catch(ti){Fe={error:ti}}finally{try{jt&&!jt.done&&(nt=Tt.return)&&nt.call(Tt)}finally{if(Fe)throw Fe.error}}return new Promise(function(ti){Promise.all(et).then(function(){ti()}).catch(function(ir){$m(ir||new Error("MultiSpanProcessor: forceFlush failed")),ti()})})},ie.prototype.onStart=function(Fe,nt){var et,Tt;try{for(var jt=__(this._spanProcessors),On=jt.next();!On.done;On=jt.next())On.value.onStart(Fe,nt)}catch(ir){et={error:ir}}finally{try{On&&!On.done&&(Tt=jt.return)&&Tt.call(jt)}finally{if(et)throw et.error}}},ie.prototype.onEnd=function(Fe){var nt,et;try{for(var Tt=__(this._spanProcessors),jt=Tt.next();!jt.done;jt=Tt.next())jt.value.onEnd(Fe)}catch(ti){nt={error:ti}}finally{try{jt&&!jt.done&&(et=Tt.return)&&et.call(Tt)}finally{if(nt)throw nt.error}}},ie.prototype.shutdown=function(){var Fe,nt,et=[];try{for(var Tt=__(this._spanProcessors),jt=Tt.next();!jt.done;jt=Tt.next())et.push(jt.value.shutdown())}catch(ti){Fe={error:ti}}finally{try{jt&&!jt.done&&(nt=Tt.return)&&nt.call(Tt)}finally{if(Fe)throw Fe.error}}return new Promise(function(ti,ir){Promise.all(et).then(function(){ti()},ir)})},ie}(),V1=function(){function ie(){}return ie.prototype.onStart=function(Fe,nt){},ie.prototype.onEnd=function(Fe){},ie.prototype.shutdown=function(){return Promise.resolve()},ie.prototype.forceFlush=function(){return Promise.resolve()},ie}(),C0=function(){function ie(){var Fe=this;this._promise=new Promise(function(nt,et){Fe._resolve=nt,Fe._reject=et})}return Object.defineProperty(ie.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),ie.prototype.resolve=function(Fe){this._resolve(Fe)},ie.prototype.reject=function(Fe){this._reject(Fe)},ie}(),MS=function(){function ie(Fe,nt){this._callback=Fe,this._that=nt,this._isCalled=!1,this._deferred=new C0}return Object.defineProperty(ie.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),ie.prototype.call=function(){for(var Fe,nt=this,et=[],Tt=0;Tt<arguments.length;Tt++)et[Tt]=arguments[Tt];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((Fe=this._callback).call.apply(Fe,function(ie,Fe,nt){if(nt||2===arguments.length)for(var jt,et=0,Tt=Fe.length;et<Tt;et++)(jt||!(et in Fe))&&(jt||(jt=Array.prototype.slice.call(Fe,0,et)),jt[et]=Fe[et]);return ie.concat(jt||Array.prototype.slice.call(Fe))}([this._that],function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt}(et),!1))).then(function(jt){return nt._deferred.resolve(jt)},function(jt){return nt._deferred.reject(jt)})}catch(jt){this._deferred.reject(jt)}}return this._deferred.promise},ie}(),zm=function(ie){return ie[ie.SUCCESS=0]="SUCCESS",ie[ie.FAILED=1]="FAILED",ie}(zm||{}),H1=function(){function ie(Fe,nt){this._exporter=Fe,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var et=Zo();this._maxExportBatchSize="number"==typeof nt?.maxExportBatchSize?nt.maxExportBatchSize:et.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof nt?.maxQueueSize?nt.maxQueueSize:et.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof nt?.scheduledDelayMillis?nt.scheduledDelayMillis:et.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof nt?.exportTimeoutMillis?nt.exportTimeoutMillis:et.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new MS(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Le.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return ie.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},ie.prototype.onStart=function(Fe,nt){},ie.prototype.onEnd=function(Fe){this._shutdownOnce.isCalled||Fe.spanContext().traceFlags&de.SAMPLED&&this._addToBuffer(Fe)},ie.prototype.shutdown=function(){return this._shutdownOnce.call()},ie.prototype._shutdown=function(){var Fe=this;return Promise.resolve().then(function(){return Fe.onShutdown()}).then(function(){return Fe._flushAll()}).then(function(){return Fe._exporter.shutdown()})},ie.prototype._addToBuffer=function(Fe){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&Le.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(Le.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(Fe),this._maybeStartTimer()},ie.prototype._flushAll=function(){var Fe=this;return new Promise(function(nt,et){for(var Tt=[],On=0,ti=Math.ceil(Fe._finishedSpans.length/Fe._maxExportBatchSize);On<ti;On++)Tt.push(Fe._flushOneBatch());Promise.all(Tt).then(function(){nt()}).catch(et)})},ie.prototype._flushOneBatch=function(){var Fe=this;return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise(function(nt,et){var Tt=setTimeout(function(){et(new Error("Timeout"))},Fe._exportTimeoutMillis);En.with(function cs(ie){return ie.setValue(Bo,!0)}(En.active()),function(){var jt;Fe._finishedSpans.length<=Fe._maxExportBatchSize?(jt=Fe._finishedSpans,Fe._finishedSpans=[]):jt=Fe._finishedSpans.splice(0,Fe._maxExportBatchSize);for(var On=function(){return Fe._exporter.export(jt,function(bs){var Zs;clearTimeout(Tt),bs.code===zm.SUCCESS?nt():et(null!==(Zs=bs.error)&&void 0!==Zs?Zs:new Error("BatchSpanProcessor: span export failed"))})},ti=null,ir=0,dr=jt.length;ir<dr;ir++){var so=jt[ir];so.resource.asyncAttributesPending&&so.resource.waitForAsyncAttributes&&(ti??(ti=[]),ti.push(so.resource.waitForAsyncAttributes()))}null===ti?On():Promise.all(ti).then(On,function(bs){$m(bs),et(bs)})})})},ie.prototype._maybeStartTimer=function(){var Fe=this;if(!this._isExporting){var nt=function(){Fe._isExporting=!0,Fe._flushOneBatch().finally(function(){Fe._isExporting=!1,Fe._finishedSpans.length>0&&(Fe._clearTimer(),Fe._maybeStartTimer())}).catch(function(et){Fe._isExporting=!1,$m(et)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return nt();void 0===this._timer&&(this._timer=setTimeout(function(){return nt()},this._scheduledDelayMillis))}},ie.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},ie}(),j1=function(){var ie=function(Fe,nt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(et,Tt){et.__proto__=Tt}||function(et,Tt){for(var jt in Tt)Object.prototype.hasOwnProperty.call(Tt,jt)&&(et[jt]=Tt[jt])})(Fe,nt)};return function(Fe,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Class extends value "+String(nt)+" is not a constructor or null");function et(){this.constructor=Fe}ie(Fe,nt),Fe.prototype=null===nt?Object.create(nt):(et.prototype=nt.prototype,new et)}}(),AS=function(ie){function Fe(nt,et){var Tt=ie.call(this,nt,et)||this;return Tt.onInit(et),Tt}return j1(Fe,ie),Fe.prototype.onInit=function(nt){var et=this;!0!==nt?.disableAutoFlushOnDocumentHide&&typeof document<"u"&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&et.forceFlush()},this._pageHideListener=function(){et.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},Fe.prototype.onShutdown=function(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},Fe}(H1),Km=function(ie){return ie[ie.resolved=0]="resolved",ie[ie.timeout=1]="timeout",ie[ie.error=2]="error",ie[ie.unresolved=3]="unresolved",ie}(Km||{}),Y1=function(){function ie(Fe){var nt;void 0===Fe&&(Fe={}),this._registeredSpanProcessors=[],this._tracers=new Map;var et=function Lo(){for(var ie=[],Fe=0;Fe<arguments.length;Fe++)ie[Fe]=arguments[Fe];for(var nt=ie.shift(),et=new WeakMap;ie.length>0;)nt=Ar(nt,ie.shift(),0,et);return nt}({},xv(),function b0(ie){var Fe,nt,et,Tt,jt,On,ti,ir,dr,so,bs,Zs,ed=Object.assign({},ie.spanLimits),rc=function vs(){return js(ea)}();return ed.attributeCountLimit=null!==(On=null!==(jt=null!==(Tt=null!==(nt=null===(Fe=ie.spanLimits)||void 0===Fe?void 0:Fe.attributeCountLimit)&&void 0!==nt?nt:null===(et=ie.generalLimits)||void 0===et?void 0:et.attributeCountLimit)&&void 0!==Tt?Tt:rc.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)&&void 0!==jt?jt:rc.OTEL_ATTRIBUTE_COUNT_LIMIT)&&void 0!==On?On:128,ed.attributeValueLengthLimit=null!==(Zs=null!==(bs=null!==(so=null!==(ir=null===(ti=ie.spanLimits)||void 0===ti?void 0:ti.attributeValueLengthLimit)&&void 0!==ir?ir:null===(dr=ie.generalLimits)||void 0===dr?void 0:dr.attributeValueLengthLimit)&&void 0!==so?so:rc.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==bs?bs:rc.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==Zs?Zs:ca,Object.assign({},ie,{spanLimits:ed})}(Fe));this.resource=null!==(nt=et.resource)&&void 0!==nt?nt:Hu.empty(),this.resource=Hu.default().merge(this.resource),this._config=Object.assign({},et,{resource:this.resource});var Tt=this._buildExporterFromEnv();if(void 0!==Tt){var jt=new AS(Tt);this.activeSpanProcessor=jt}else this.activeSpanProcessor=new V1}return ie.prototype.getTracer=function(Fe,nt,et){var Tt=Fe+"@"+(nt||"")+":"+(et?.schemaUrl||"");return this._tracers.has(Tt)||this._tracers.set(Tt,new U1({name:Fe,version:nt,schemaUrl:et?.schemaUrl},this._config,this)),this._tracers.get(Tt)},ie.prototype.addSpanProcessor=function(Fe){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch(function(nt){return Le.error("Error while trying to shutdown current span processor",nt)}),this._registeredSpanProcessors.push(Fe),this.activeSpanProcessor=new B1(this._registeredSpanProcessors)},ie.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},ie.prototype.register=function(Fe){void 0===Fe&&(Fe={}),Mi.setGlobalTracerProvider(this),void 0===Fe.propagator&&(Fe.propagator=this._buildPropagatorFromEnv()),Fe.contextManager&&En.setGlobalContextManager(Fe.contextManager),Fe.propagator&&Pi.setGlobalPropagator(Fe.propagator)},ie.prototype.forceFlush=function(){var Fe=this._config.forceFlushTimeoutMillis,nt=this._registeredSpanProcessors.map(function(et){return new Promise(function(Tt){var jt,On=setTimeout(function(){Tt(new Error("Span processor did not completed within timeout period of "+Fe+" ms")),jt=Km.timeout},Fe);et.forceFlush().then(function(){clearTimeout(On),jt!==Km.timeout&&Tt(jt=Km.resolved)}).catch(function(ti){clearTimeout(On),jt=Km.error,Tt(ti)})})});return new Promise(function(et,Tt){Promise.all(nt).then(function(jt){var On=jt.filter(function(ti){return ti!==Km.resolved});On.length>0?Tt(On):et()}).catch(function(jt){return Tt([jt])})})},ie.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},ie.prototype._getPropagator=function(Fe){var nt;return null===(nt=this.constructor._registeredPropagators.get(Fe))||void 0===nt?void 0:nt()},ie.prototype._getSpanExporter=function(Fe){var nt;return null===(nt=this.constructor._registeredExporters.get(Fe))||void 0===nt?void 0:nt()},ie.prototype._buildPropagatorFromEnv=function(){var Fe=this,nt=Array.from(new Set(Zo().OTEL_PROPAGATORS)),Tt=nt.map(function(jt){var On=Fe._getPropagator(jt);return On||Le.warn('Propagator "'+jt+'" requested through environment variable is unavailable.'),On}).reduce(function(jt,On){return On&&jt.push(On),jt},[]);if(0!==Tt.length)return 1===nt.length?Tt[0]:new ho({propagators:Tt})},ie.prototype._buildExporterFromEnv=function(){var Fe=Zo().OTEL_TRACES_EXPORTER;if("none"!==Fe&&""!==Fe){var nt=this._getSpanExporter(Fe);return nt||Le.error('Exporter "'+Fe+'" requested through environment variable is unavailable.'),nt}},ie._registeredPropagators=new Map([["tracecontext",function(){return new St}],["baggage",function(){return new Os}]]),ie._registeredExporters=new Map,ie}(),Xm=function(){function ie(){this._enabled=!1,this._currentContext=Ie}return ie.prototype._bindFunction=function(Fe,nt){void 0===Fe&&(Fe=Ie);var et=this,Tt=function(){for(var jt=this,On=[],ti=0;ti<arguments.length;ti++)On[ti]=arguments[ti];return et.with(Fe,function(){return nt.apply(jt,On)})};return Object.defineProperty(Tt,"length",{enumerable:!1,configurable:!0,writable:!1,value:nt.length}),Tt},ie.prototype.active=function(){return this._currentContext},ie.prototype.bind=function(Fe,nt){return void 0===Fe&&(Fe=this.active()),"function"==typeof nt?this._bindFunction(Fe,nt):nt},ie.prototype.disable=function(){return this._currentContext=Ie,this._enabled=!1,this},ie.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=Ie),this},ie.prototype.with=function(Fe,nt,et){for(var Tt=[],jt=3;jt<arguments.length;jt++)Tt[jt-3]=arguments[jt];var On=this._currentContext;this._currentContext=Fe||Ie;try{return nt.call.apply(nt,function(ie,Fe,nt){if(nt||2===arguments.length)for(var jt,et=0,Tt=Fe.length;et<Tt;et++)(jt||!(et in Fe))&&(jt||(jt=Array.prototype.slice.call(Fe,0,et)),jt[et]=Fe[et]);return ie.concat(jt||Array.prototype.slice.call(Fe))}([et],function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt}(Tt),!1))}finally{this._currentContext=On}},ie}(),xS=function(){var ie=function(Fe,nt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(et,Tt){et.__proto__=Tt}||function(et,Tt){for(var jt in Tt)Object.prototype.hasOwnProperty.call(Tt,jt)&&(et[jt]=Tt[jt])})(Fe,nt)};return function(Fe,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Class extends value "+String(nt)+" is not a constructor or null");function et(){this.constructor=Fe}ie(Fe,nt),Fe.prototype=null===nt?Object.create(nt):(et.prototype=nt.prototype,new et)}}(),W1=function(ie){function Fe(nt){void 0===nt&&(nt={});var et=ie.call(this,nt)||this;if(nt.contextManager)throw"contextManager should be defined in register method not in constructor";if(nt.propagator)throw"propagator should be defined in register method not in constructor";return et}return xS(Fe,ie),Fe.prototype.register=function(nt){void 0===nt&&(nt={}),void 0===nt.contextManager&&(nt.contextManager=new Xm),nt.contextManager&&nt.contextManager.enable(),ie.prototype.register.call(this,nt)},Fe}(Y1),Dv="ot-tracer-traceid",y_="ot-tracer-spanid",M0="ot-tracer-sampled",S_="ot-baggage-",DS=[Dv,y_,M0],OS="0".repeat(16);function um(ie,Fe,nt){var Tt=Fe.get(ie,nt);return Array.isArray(Tt)&&(Tt=Tt[0]),Tt||""}var A0=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,T0=/[^\t\x20-\x7e\x80-\xff]/,x0=function(){function ie(){}return ie.prototype.inject=function(Fe,nt,et){var Tt,jt=null===(Tt=Mi.getSpan(Fe))||void 0===Tt?void 0:Tt.spanContext();if(jt&&vn(jt)){et.set(nt,Dv,jt.traceId.substr(16)),et.set(nt,y_,jt.spanId),et.set(nt,M0,(jt.traceFlags&de.SAMPLED)===de.SAMPLED?"true":"false");var On=Pi.getBaggage(Fe);On&&On.getAllEntries().forEach(function(ti){var ir=ti[0],dr=ti[1];!function PS(ie){return A0.test(ie)}(ir)||!function $1(ie){return!T0.test(ie)}(dr.value)||et.set(nt,""+S_+ir,dr.value)})}},ie.prototype.extract=function(Fe,nt,et){var Tt=um(nt,et,Dv);16===Tt.length&&(Tt=""+OS+Tt);var jt=um(nt,et,y_),ti="true"===um(nt,et,M0)?de.SAMPLED:de.NONE;if(jn(Tt)&&It(jt)){Fe=Mi.setSpan(Fe,Mi.wrapSpanContext({traceId:Tt,spanId:jt,isRemote:!0,traceFlags:ti}));var ir=Pi.getBaggage(Fe)||Pi.createBaggage();et.keys(nt).forEach(function(dr){if(dr.startsWith(S_)){var so=um(nt,et,dr);ir=ir.setEntry(dr.substr(11),{value:so})}}),ir.getAllEntries().length>0&&(Fe=Pi.setBaggage(Fe,ir))}return Fe},ie.prototype.fields=function(){return DS.slice()},ie}(),D0="OT_ZONE_CONTEXT",O0=function(){function ie(){this._enabled=!1,this._zoneCounter=0}return ie.prototype._activeContextFromZone=function(Fe){return Fe&&Fe.get(D0)||Ie},ie.prototype._bindFunction=function(Fe,nt){var et=this,Tt=function(){for(var jt=this,On=[],ti=0;ti<arguments.length;ti++)On[ti]=arguments[ti];return et.with(Fe,function(){return nt.apply(jt,On)})};return Object.defineProperty(Tt,"length",{enumerable:!1,configurable:!0,writable:!1,value:nt.length}),Tt},ie.prototype._bindListener=function(Fe,nt){var et=nt;return void 0!==et.__ot_listeners||(et.__ot_listeners={},"function"==typeof et.addEventListener&&(et.addEventListener=this._patchAddEventListener(et,et.addEventListener,Fe)),"function"==typeof et.removeEventListener&&(et.removeEventListener=this._patchRemoveEventListener(et,et.removeEventListener))),nt},ie.prototype._createZoneName=function(){this._zoneCounter++;var Fe=Math.random();return this._zoneCounter+"-"+Fe},ie.prototype._createZone=function(Fe,nt){var et;return Zone.current.fork({name:Fe,properties:(et={},et[D0]=nt,et)})},ie.prototype._getActiveZone=function(){return Zone.current},ie.prototype._patchAddEventListener=function(Fe,nt,et){var Tt=this;return function(jt,On,ti){void 0===Fe.__ot_listeners&&(Fe.__ot_listeners={});var ir=Fe.__ot_listeners[jt];void 0===ir&&(Fe.__ot_listeners[jt]=ir=new WeakMap);var dr=Tt.bind(et,On);return ir.set(On,dr),nt.call(this,jt,dr,ti)}},ie.prototype._patchRemoveEventListener=function(Fe,nt){return function(et,Tt){if(void 0===Fe.__ot_listeners||void 0===Fe.__ot_listeners[et])return nt.call(this,et,Tt);var jt=Fe.__ot_listeners[et],On=jt.get(Tt);return jt.delete(Tt),nt.call(this,et,On||Tt)}},ie.prototype.active=function(){if(!this._enabled)return Ie;var Fe=this._getActiveZone();return this._activeContextFromZone(Fe)||Ie},ie.prototype.bind=function(Fe,nt){return void 0===Fe&&(Fe=this.active()),"function"==typeof nt?this._bindFunction(Fe,nt):(function z1(ie){return void 0===ie&&(ie={}),"function"==typeof ie.addEventListener&&"function"==typeof ie.removeEventListener}(nt)&&this._bindListener(Fe,nt),nt)},ie.prototype.disable=function(){return this._enabled=!1,this},ie.prototype.enable=function(){return this._enabled=!0,this},ie.prototype.with=function(Fe,nt,et){for(var Tt=[],jt=3;jt<arguments.length;jt++)Tt[jt-3]=arguments[jt];var On=this._createZoneName();return this._createZone(On,Fe).run(nt,et,Tt)},ie}();function C_(ie,Fe){return Le.warn("Timeout must be greater than 0",ie),Fe}var Qm=function(ie){return ie[ie.SPANS=0]="SPANS",ie[ie.METRICS=1]="METRICS",ie[ie.LOGS=2]="LOGS",ie}(Qm||{}),I0=function(){var ie=function(Fe,nt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(et,Tt){et.__proto__=Tt}||function(et,Tt){for(var jt in Tt)Object.prototype.hasOwnProperty.call(Tt,jt)&&(et[jt]=Tt[jt])})(Fe,nt)};return function(Fe,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Class extends value "+String(nt)+" is not a constructor or null");function et(){this.constructor=Fe}ie(Fe,nt),Fe.prototype=null===nt?Object.create(nt):(et.prototype=nt.prototype,new et)}}(),uh=function(ie){function Fe(nt,et,Tt){var jt=ie.call(this,nt)||this;return jt.name="OTLPExporterError",jt.data=Tt,jt.code=et,jt}return I0(Fe,ie),Fe}(Error),Zm=function(){return Zm=Object.assign||function(ie){for(var Fe,nt=1,et=arguments.length;nt<et;nt++)for(var Tt in Fe=arguments[nt])Object.prototype.hasOwnProperty.call(Fe,Tt)&&(ie[Tt]=Fe[Tt]);return ie},Zm.apply(this,arguments)};function Pv(ie,Fe,nt,et,Tt,jt){var On,ti,ir=!1,dr=setTimeout(function(){if(clearTimeout(On),ir=!0,ti.readyState===XMLHttpRequest.DONE){var bs=new uh("Request Timeout");jt(bs)}else ti.abort()},et),so=function(bs,Zs){void 0===bs&&(bs=5),void 0===Zs&&(Zs=1e3),(ti=new XMLHttpRequest).open("POST",Fe),Object.entries(Zm(Zm({},{Accept:"application/json","Content-Type":"application/json"}),nt)).forEach(function(rc){var lu=function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt}(rc,2);ti.setRequestHeader(lu[0],lu[1])}),ti.send(ie),ti.onreadystatechange=function(){if(ti.readyState===XMLHttpRequest.DONE&&!1===ir)if(ti.status>=200&&ti.status<=299)Le.debug("xhr success",ie),Tt(),clearTimeout(dr),clearTimeout(On);else if(ti.status&&function BS(ie){return[429,502,503,504].includes(ie)}(ti.status)&&bs>0){var rc;Zs*=1.5,rc=ti.getResponseHeader("Retry-After")?function K1(ie){if(null==ie)return-1;var Fe=Number.parseInt(ie,10);if(Number.isInteger(Fe))return Fe>0?1e3*Fe:-1;var nt=new Date(ie).getTime()-Date.now();return nt>=0?nt:0}(ti.getResponseHeader("Retry-After")):Math.round(Math.random()*(5e3-Zs)+Zs),On=setTimeout(function(){so(bs-1,Zs)},rc)}else{var lu=new uh("Failed to export with XHR (status: "+ti.status+")",ti.status);jt(lu),clearTimeout(dr),clearTimeout(On)}},ti.onabort=function(){if(ir){var rc=new uh("Request Timeout");jt(rc)}clearTimeout(dr),clearTimeout(On)},ti.onerror=function(){if(ir){var rc=new uh("Request Timeout");jt(rc)}clearTimeout(dr),clearTimeout(On)}};so()}var E_=function(){function ie(Fe){void 0===Fe&&(Fe={}),this._sendingPromises=[],this.url=this.getDefaultUrl(Fe),"string"==typeof Fe.hostname&&(this.hostname=Fe.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new MS(this._shutdown,this),this._concurrencyLimit="number"==typeof Fe.concurrencyLimit?Fe.concurrencyLimit:30,this.timeoutMillis=function US(ie){return"number"==typeof ie?ie<=0?C_(ie,1e4):ie:function w0(){var ie,Fe=Number(null!==(ie=Zo().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)&&void 0!==ie?ie:Zo().OTEL_EXPORTER_OTLP_TIMEOUT);return Fe<=0?C_(Fe,1e4):Fe}()}(Fe.timeoutMillis),this.onInit(Fe)}return ie.prototype.export=function(Fe,nt){this._shutdownOnce.isCalled?nt({code:zm.FAILED,error:new Error("Exporter has been shutdown")}):this._sendingPromises.length>=this._concurrencyLimit?nt({code:zm.FAILED,error:new Error("Concurrent export limit reached")}):this._export(Fe).then(function(){nt({code:zm.SUCCESS})}).catch(function(et){nt({code:zm.FAILED,error:et})})},ie.prototype._export=function(Fe){var nt=this;return new Promise(function(et,Tt){try{Le.debug("items to be sent",Fe),nt.send(Fe,et,Tt)}catch(jt){Tt(jt)}})},ie.prototype.shutdown=function(){return this._shutdownOnce.call()},ie.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},ie.prototype._shutdown=function(){return Le.debug("shutdown started"),this.onShutdown(),this.forceFlush()},ie}(),GS=function(){var ie=function(Fe,nt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(et,Tt){et.__proto__=Tt}||function(et,Tt){for(var jt in Tt)Object.prototype.hasOwnProperty.call(Tt,jt)&&(et[jt]=Tt[jt])})(Fe,nt)};return function(Fe,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Class extends value "+String(nt)+" is not a constructor or null");function et(){this.constructor=Fe}ie(Fe,nt),Fe.prototype=null===nt?Object.create(nt):(et.prototype=nt.prototype,new et)}}(),R0=function(ie){function Fe(nt){void 0===nt&&(nt={});var et=ie.call(this,nt)||this;return et._useXHR=!1,et._useXHR=!!nt.headers||"function"!=typeof navigator.sendBeacon,et._headers=et._useXHR?Object.assign({},function NS(ie){void 0===ie&&(ie={});var Fe={};return Object.entries(ie).forEach(function(nt){var et=function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt}(nt,2),Tt=et[0],jt=et[1];typeof jt<"u"?Fe[Tt]=String(jt):Le.warn('Header "'+Tt+'" has invalid value ('+jt+") and will be ignored")}),Fe}(nt.headers),ba(Zo().OTEL_EXPORTER_OTLP_HEADERS)):{},et}return GS(Fe,ie),Fe.prototype.onInit=function(){},Fe.prototype.onShutdown=function(){},Fe.prototype.send=function(nt,et,Tt){var jt=this;if(this._shutdownOnce.isCalled)Le.debug("Shutdown already started. Cannot send objects");else{var On=this.convert(nt),ti=JSON.stringify(On),ir=new Promise(function(so,bs){jt._useXHR?Pv(ti,jt.url,jt._headers,jt.timeoutMillis,so,bs):function X1(ie,Fe,nt,et,Tt){navigator.sendBeacon(Fe,new Blob([ie],nt))?(Le.debug("sendBeacon - can send",ie),et()):Tt(new uh("sendBeacon - cannot send "+ie))}(ti,jt.url,{type:"application/json"},so,bs)}).then(et,Tt);this._sendingPromises.push(ir);var dr=function(){var so=jt._sendingPromises.indexOf(ir);jt._sendingPromises.splice(so,1)};ir.then(dr,dr)}},Fe}(E_),Jm=c(89304),wv=function(){var ie=function(Fe,nt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(et,Tt){et.__proto__=Tt}||function(et,Tt){for(var jt in Tt)Object.prototype.hasOwnProperty.call(Tt,jt)&&(et[jt]=Tt[jt])})(Fe,nt)};return function(Fe,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Class extends value "+String(nt)+" is not a constructor or null");function et(){this.constructor=Fe}ie(Fe,nt),Fe.prototype=null===nt?Object.create(nt):(et.prototype=nt.prototype,new et)}}(),M_=function(){return M_=Object.assign||function(ie){for(var Fe,nt=1,et=arguments.length;nt<et;nt++)for(var Tt in Fe=arguments[nt])Object.prototype.hasOwnProperty.call(Fe,Tt)&&(ie[Tt]=Fe[Tt]);return ie},M_.apply(this,arguments)},Q1=function(ie){function Fe(nt){return void 0===nt&&(nt={}),ie.call(this,nt)||this}return wv(Fe,ie),Fe.prototype.send=function(nt,et,Tt){if(this._shutdownOnce.isCalled)Le.debug("Shutdown already started. Cannot send objects");else{var jt=this.convert(nt),On=function HS(ie){return ie===Qm.SPANS?Jm.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest:ie===Qm.LOGS?Jm.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest:Jm.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest}(this.getServiceClientType()),ti=On.create(jt);if(ti){var ir=On.encode(ti).finish();ir&&Pv(new Blob([ir],{type:"application/x-protobuf"}),this.url,M_(M_({},this._headers),{"Content-Type":"application/x-protobuf",Accept:"application/x-protobuf"}),this.timeoutMillis,et,Tt)}else Tt(new uh("No proto"))}},Fe}(R0),jS=function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt};function Z1(ie){return{name:ie.name,version:ie.version}}function cg(ie){return Object.keys(ie).map(function(Fe){return YS(Fe,ie[Fe])})}function YS(ie,Fe){return{key:ie,value:qm(Fe)}}function qm(ie){var Fe=typeof ie;return"string"===Fe?{stringValue:ie}:"number"===Fe?Number.isInteger(ie)?{intValue:ie}:{doubleValue:ie}:"boolean"===Fe?{boolValue:ie}:ie instanceof Uint8Array?{bytesValue:ie}:Array.isArray(ie)?{arrayValue:{values:ie.map(qm)}}:"object"===Fe&&null!=ie?{kvlistValue:{values:Object.entries(ie).map(function(nt){var et=jS(nt,2);return YS(et[0],et[1])})}}:{}}function WS(ie,Fe){var nt,et=ie.spanContext(),Tt=ie.status;return{traceId:Fe.encodeSpanContext(et.traceId),spanId:Fe.encodeSpanContext(et.spanId),parentSpanId:Fe.encodeOptionalSpanContext(ie.parentSpanId),traceState:null===(nt=et.traceState)||void 0===nt?void 0:nt.serialize(),name:ie.name,kind:null==ie.kind?0:ie.kind+1,startTimeUnixNano:Fe.encodeHrTime(ie.startTime),endTimeUnixNano:Fe.encodeHrTime(ie.endTime),attributes:cg(ie.attributes),droppedAttributesCount:ie.droppedAttributesCount,events:ie.events.map(function(jt){return function A_(ie,Fe){return{attributes:ie.attributes?cg(ie.attributes):[],name:ie.name,timeUnixNano:Fe.encodeHrTime(ie.time),droppedAttributesCount:ie.droppedAttributesCount||0}}(jt,Fe)}),droppedEventsCount:ie.droppedEventsCount,status:{code:Tt.code,message:Tt.message},links:ie.links.map(function(jt){return function $S(ie,Fe){var nt;return{attributes:ie.attributes?cg(ie.attributes):[],spanId:Fe.encodeSpanContext(ie.context.spanId),traceId:Fe.encodeSpanContext(ie.context.traceId),traceState:null===(nt=ie.context.traceState)||void 0===nt?void 0:nt.serialize(),droppedAttributesCount:ie.droppedAttributesCount||0}}(jt,Fe)}),droppedLinksCount:ie.droppedLinksCount}}function L0(ie){return ie>=48&&ie<=57?ie-48:ie>=97&&ie<=102?ie-87:ie-55}function hh(ie){for(var Fe=new Uint8Array(ie.length/2),nt=0,et=0;et<ie.length;et+=2){var Tt=L0(ie.charCodeAt(et)),jt=L0(ie.charCodeAt(et+1));Fe[nt++]=Tt<<4|jt}return Fe}function Mm(ie){var Fe=BigInt(1e9);return BigInt(ie[0])*Fe+BigInt(ie[1])}function Kg(ie){return function tc(ie){return{low:Number(BigInt.asUintN(32,ie)),high:Number(BigInt.asUintN(32,ie>>BigInt(32)))}}(Mm(ie))}var ph=typeof BigInt<"u"?function Iv(ie){return Mm(ie).toString()}:function ap(ie){return ie[0]*Mc+ie[1]};function Am(ie){return ie}function N0(ie){if(void 0!==ie)return hh(ie)}var Tm={encodeHrTime:Kg,encodeSpanContext:hh,encodeOptionalSpanContext:N0};function F0(ie){return{attributes:cg(ie.attributes),droppedAttributesCount:0}}var zS=function(ie){var Fe="function"==typeof Symbol&&Symbol.iterator,nt=Fe&&ie[Fe],et=0;if(nt)return nt.call(ie);if(ie&&"number"==typeof ie.length)return{next:function(){return ie&&et>=ie.length&&(ie=void 0),{value:ie&&ie[et++],done:!ie}}};throw new TypeError(Fe?"Object is not iterable.":"Symbol.iterator is not defined.")},KS=function(ie,Fe){var nt="function"==typeof Symbol&&ie[Symbol.iterator];if(!nt)return ie;var Tt,On,et=nt.call(ie),jt=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Tt=et.next()).done;)jt.push(Tt.value)}catch(ti){On={error:ti}}finally{try{Tt&&!Tt.done&&(nt=et.return)&&nt.call(et)}finally{if(On)throw On.error}}return jt};function XS(ie,Fe){for(var nt=function U0(ie){var Fe,nt,et=new Map;try{for(var Tt=zS(ie),jt=Tt.next();!jt.done;jt=Tt.next()){var On=jt.value,ti=et.get(On.resource);ti||et.set(On.resource,ti=new Map);var ir=On.instrumentationLibrary.name+"@"+(On.instrumentationLibrary.version||"")+":"+(On.instrumentationLibrary.schemaUrl||""),dr=ti.get(ir);dr||ti.set(ir,dr=[]),dr.push(On)}}catch(so){Fe={error:so}}finally{try{jt&&!jt.done&&(nt=Tt.return)&&nt.call(Tt)}finally{if(Fe)throw Fe.error}}return et}(ie),et=[],Tt=nt.entries(),jt=Tt.next();!jt.done;){for(var On=KS(jt.value,2),ti=On[0],dr=[],so=On[1].values(),bs=so.next();!bs.done;){var Zs=bs.value;if(Zs.length>0){var ed=Zs.map(function(lu){return WS(lu,Fe)});dr.push({scope:Z1(Zs[0].instrumentationLibrary),spans:ed,schemaUrl:Zs[0].instrumentationLibrary.schemaUrl})}bs=so.next()}var rc={resource:F0(ti),scopeSpans:dr,schemaUrl:void 0};et.push(rc),jt=Tt.next()}return et}var ic=function(){var ie=function(Fe,nt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(et,Tt){et.__proto__=Tt}||function(et,Tt){for(var jt in Tt)Object.prototype.hasOwnProperty.call(Tt,jt)&&(et[jt]=Tt[jt])})(Fe,nt)};return function(Fe,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Class extends value "+String(nt)+" is not a constructor or null");function et(){this.constructor=Fe}ie(Fe,nt),Fe.prototype=null===nt?Object.create(nt):(et.prototype=nt.prototype,new et)}}(),xm="v1/traces",Dm="http://localhost:4318/"+xm,Rv=function(ie){function Fe(nt){void 0===nt&&(nt={});var et=ie.call(this,nt)||this;return et._headers=Object.assign(et._headers,ba(Zo().OTEL_EXPORTER_OTLP_TRACES_HEADERS)),et}return ic(Fe,ie),Fe.prototype.convert=function(nt){return function nc(ie,Fe){var nt=function k0(ie){var Fe,nt;if(void 0===ie)return Tm;var et=null===(Fe=ie.useLongBits)||void 0===Fe||Fe,Tt=null!==(nt=ie.useHex)&&void 0!==nt&&nt;return{encodeHrTime:et?Kg:ph,encodeSpanContext:Tt?Am:hh,encodeOptionalSpanContext:Tt?Am:N0}}(Fe);return{resourceSpans:XS(ie,nt)}}(nt)},Fe.prototype.getDefaultUrl=function(nt){return"string"==typeof nt.url?nt.url:Zo().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length>0?function FS(ie){try{var Fe=new URL(ie);return""===Fe.pathname&&(Fe.pathname=Fe.pathname+"/"),Fe.toString()}catch{return Le.warn("Could not parse export URL: '"+ie+"'"),ie}}(Zo().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT):Zo().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?function kS(ie,Fe){return ie.endsWith("/")||(ie+="/"),ie+Fe}(Zo().OTEL_EXPORTER_OTLP_ENDPOINT,xm):Dm},Fe.prototype.getServiceClientType=function(){return Qm.SPANS},Fe}(Q1),ev=c(65706);class Lv extends Rv{constructor(Fe,nt){super(Fe),this._isTracingDisabledReplaySubject=nt}export(Fe,nt){this._isTracingDisabledReplaySubject.asObservable().pipe((0,ev.s)(1)).subscribe(et=>{et||super.export(Fe,nt)})}}let T_=(()=>{var ie;class Fe{constructor(){this.initializationMap=new Map}initialize(et,Tt){if(this.initializationMap.get(et.exportConfig.componentName))return;const On={resource:new Hu({[zl.SERVICE_NAME]:et.exportConfig.componentName})};this.provider=new W1(On);const ti=[new St];et.propagationConfig?.openTracingContextPropagation&&ti.push(new x0),this.compositePropagator=new ho({propagators:ti}),Pi.setGlobalPropagator(this.compositePropagator);const dr=new O0;dr.enable(),this.provider.register({propagator:this.compositePropagator,contextManager:dr}),this.exporter=new Lv({headers:{"Lightstep-Access-Token":et.exportConfig.accessToken},url:et.exportConfig.collectorUrl},Tt),function v0(ie){Tv=ie}(ed=>{console.error("Error while tracing",ed)}),this.provider.addSpanProcessor(new AS(this.exporter,{disableAutoFlushOnDocumentHide:!0})),this.initializationMap.set(et.exportConfig.componentName,!0)}getSpanContextInfo(et){if(!this.tracer)return null;const Tt={},jt=Mi.setSpanContext(En.active(),et.spanContext());return Pi.inject(jt,Tt,Wn),Tt}getTraceInjectWrapper(){return this.getSpanContextInfo.bind(this)}createSpanUsingContextInfo(et,Tt){if(!this.tracer)return null;const jt=Pi.extract(En.active(),Tt),On=this.tracer.startSpan(et,{},jt);return this.getSpanContextInfo(On),On}getCreateSpanUsingContextWrapper(){return this.createSpanUsingContextInfo.bind(this)}createSpan(et,Tt){if(!this.tracer)return null;if(!Tt)return this.tracer.startSpan(et);const jt=Mi.setSpan(En.active(),Tt);return this.tracer.startSpan(et,{},jt)}getOTELTracer(et,Tt){return this.initialize(et,Tt),this.tracer=this.provider.getTracer(),this.tracer}extractContext(et,Tt,jt){const On=Tt||En.active();return Pi.extract(On,et,jt)}runWithContext(et,Tt,jt,...On){return En.with(et,Tt,jt,...On)}}return(ie=Fe).\u0275fac=function(et){return new(et||ie)},ie.\u0275prov=r.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"}),Fe})();const Om={[XMLHttpRequest.UNSENT]:"unsent",[XMLHttpRequest.OPENED]:"opened",[XMLHttpRequest.HEADERS_RECEIVED]:"headers received",[XMLHttpRequest.LOADING]:"loading",[XMLHttpRequest.DONE]:"done"},tv=(ie,Fe)=>{ie.setAttributes({[E.HttpStatusCode]:Fe,[E.HttpStatusCodeFamily]:Fe.toString().replace(/[0-9]{2}$/,"XX"),[E.Error]:Fe<=0||Fe>=400})};let nv=(()=>{var ie;class Fe extends I.N0{constructor(et,Tt,jt){super(),this.statusCodeZeroAnalyzerFactoryService=et,this.serviceWorkerService=Tt,this.otelTracerService=jt,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(et,Tt,jt,On){this.tracer=et,this.setTracingEnabledURLRegex(Tt.urlRegex),this.setStatusCodeZeroAnalyzerConfig(jt),this.serviceWorkerService.networkResponseReceived.subscribe(ti=>{this.removeFromSWPendingRequests(ti)},R.l),On.asObservable().subscribe(ti=>{this.globalSpanTags=ti},ti=>{this.globalSpanTags={}})}addToSWPendingRequests(et,Tt){this.pendingNetworkResponseSpanMap.set(et,Tt)}removeFromSWPendingRequests(et){if(this.pendingNetworkResponseSpanMap.has(et.requestId)){const Tt=this.pendingNetworkResponseSpanMap.get(et.requestId);this.pendingNetworkResponseSpanMap.delete(et.requestId),0===et.responseStatusCode?this.statusCodeZeroAnalyzer.getFailureCode({requestUrl:et.requestUrl,uniqueRequestId:et.requestId,isCancelled:!1}).subscribe(jt=>{tv(Tt,jt.statusCode),Tt.end(et.responseReceivedTimeMs)},R.l):(tv(Tt,et.responseStatusCode),Tt.end(et.responseReceivedTimeMs))}}build(){const et=new XMLHttpRequest;return(0,M.isNil)(this.tracer)||(et.requestHeaders={},et.commonSpanTags=this.globalSpanTags,et.tracer=this.tracer,et.open=this.wrapOpen(et),et.send=this.wrapSend(et),et.setRequestHeader=this.wrapSetRequestHeader(et),et.constructSpanTags=this.getConstructSpanTags(),et.injectCarrierHeaders=this.getInjectCarrierHeaders(),et.getOperationName=this.getOperationName(),et.createSpanUsingContext=this.createSpanUsingContextWrapper(),et.getResponseHeaders=this.getResponseHeaders(),et.analyzeStatusCodeZero=this.analyzeStatusCodeZero(),et.addEventListener("readystatechange",this.getOnReadyStateChangedListener()),et.addEventListener("abort",this.handleAbort())),et}handleAbort(){return function(){this.isRequestAborted=!0}}setTracingEnabledURLRegex(et){this.tracingEnabledURLRegex=et.map(Tt=>new RegExp(Tt,"g"))}setStatusCodeZeroAnalyzerConfig(et){this.statusCodeZeroAnalyzer&&(this.statusCodeZeroAnalyzer=null),this.statusCodeZeroAnalyzer=this.statusCodeZeroAnalyzerFactoryService.createAnalyzer(et)}matchURLAgainstEnabledList(et){if(!this.tracingEnabledUrls.has(et)){const Tt=this.tracingEnabledURLRegex.findIndex(jt=>{const On=et.match(jt);return!(0,M.isNil)(On)&&1===On.length});this.tracingEnabledUrls.set(et,-1!==Tt)}return this.tracingEnabledUrls.get(et)}isURLEnabledForTracing(et){return!(0,M.isNil)(et)&&this.matchURLAgainstEnabledList(et.toString())}getResponseHeaders(){return function(){const jt=this.getAllResponseHeaders().replace(/\s+$/,"").split(/\n/);for(let On=0;On<jt.length;On++)jt[On]=jt[On].replace(/\r/g,"").trim();return jt}}getOperationName(){return function(){return this.method+" "+this.urlInfo.hostname+this.urlInfo.pathname}}createSpanUsingContextWrapper(){const et=this.createSpanUsingContext;return function(jt){return et(jt,this.requestHeaders)}}analyzeStatusCodeZero(){const et=this.statusCodeZeroAnalyzer.getFailureCode;return function(){return et({requestUrl:this.urlInfo.href,isCancelled:this.isRequestAborted,uniqueRequestId:this.uniqueRequestId||""})}}getOnReadyStateChangedListener(){return function(){const Tt=this.uniqueRequestId&&this.isHandledByServiceWorker?this.serviceWorkerSpan:this.span;(0,M.isNil)(Tt)||(this.readyState===XMLHttpRequest.UNSENT||this.readyState===XMLHttpRequest.OPENED?Tt.addEvent(Om[this.readyState]):this.readyState===XMLHttpRequest.HEADERS_RECEIVED?Tt.addEvent(Om[this.readyState],{method:this.method,url:this.urlInfo.href,responseHeaders:this.getResponseHeaders()}):this.readyState===XMLHttpRequest.LOADING?Tt.addEvent(Om[this.readyState]):this.readyState===XMLHttpRequest.DONE?(Tt.addEvent(Om[this.readyState],{method:this.method,url:this.urlInfo.href,statusText:this.statusText,responseType:this.responseType,responseHeaders:this.getResponseHeaders()}),0===this.status?(0,O.of)(!0).pipe((0,Y.c)(100),(0,j.ZZ)(jt=>this.analyzeStatusCodeZero(this.urlInfo.href))).subscribe(jt=>{Tt.setAttributes({status:jt.statusCode}),tv(Tt,jt.statusCode),Tt.end()}):(Tt.setAttributes({status:this.status}),tv(Tt,this.status),Tt.end())):Tt.setAttributes({readyState:this.readyState}))}}getConstructSpanTags(){return function(){const Tt={[E.Component]:S.XmlHttpRequest,[E.HttpMethod]:this.method,[E.Type]:this.urlInfo.protocol.replace(":",""),[E.HttpHostname]:this.urlInfo.hostname,[E.HttpUrl]:this.urlInfo.pathname};return(0,M.extend)(Tt,this.commonSpanTags),Object.keys(this.requestHeaders).forEach(On=>{Tt[E.HttpHeadersPrefix+On]=this.requestHeaders[On]}),this.urlInfo.searchParams.forEach((On,ti)=>{Tt[E.ParamsPrefix+ti]=On}),Tt}}getInjectCarrierHeaders(){const et=this.traceInjectWrapper;return function(){const jt=et(this.span);Object.keys(jt).forEach(ti=>{Object.getPrototypeOf(this).setRequestHeader.call(this,ti,jt[ti]),this.setRequestHeader(ti,jt[ti])})}}wrapOpen(et){const Tt=et.open;return function(On,ti,ir,dr,so){this.method=On;try{this.urlInfo=new URL(ti)}catch{this.urlInfo=null}Tt.apply(this,arguments)}}wrapSend(et){const Tt=et.send,jt=this.isURLEnabledForTracing.bind(this),On=this.serviceWorkerService.willGFNServiceWorkerHandleRequest.bind(this),ti=this.addToSWPendingRequests.bind(this),ir=this.omitOpentracingHeaders;return function(so){(0,M.isNil)(this.urlInfo)||(this.span=this.createSpanUsingContext(this.getOperationName()),this.isHandledByServiceWorker=On(this.urlInfo.href,this.bypassCacheHeaderValue),this.uniqueRequestId&&this.isHandledByServiceWorker&&(this.serviceWorkerSpan=this.createSpanUsingContext("SW "+this.getOperationName()),this.serviceWorkerSpan.setAttributes(this.constructSpanTags()),ti(this.uniqueRequestId,this.span)),this.requestHeaders=ir(this.requestHeaders),jt(this.urlInfo)&&this.injectCarrierHeaders(),this.span.setAttributes(this.constructSpanTags()),this.span.addEvent("send")),Tt.apply(this,arguments)}}wrapSetRequestHeader(et){const Tt=et.setRequestHeader;return function(On,ti){"Authorization"===On||"X_LOCAL_SECURITY_COOKIE"===On||On===te.tD.SwCacheKeyAppendString||(this.requestHeaders[On]=ti,On===fe.SA.xRequestId&&(this.uniqueRequestId=ti),On===te.tD.SwCacheBypass&&(this.bypassCacheHeaderValue=ti)),!On.startsWith("ot-")&&!On.startsWith("traceparent")&&Tt.apply(this,arguments)}}omitOpentracingHeaders(et){return(0,M.omitBy)(et,Tt=>!Tt.startsWith("ot-")&&!Tt.startsWith("traceparent"))}}return(ie=Fe).\u0275fac=function(et){return new(et||ie)(r.KVO(ce.pZ),r.KVO(te.lS),r.KVO(T_))},ie.\u0275prov=r.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"}),Fe})();const x_={provide:I.N0,useExisting:nv};let B0=(()=>{var ie;class Fe{constructor(et,Tt,jt){this.openTelemetryService=et,this.loggingService=Tt,this.injector=jt,this.logger=this.loggingService.getLogger("DistributedTracingUtilService")}setSpanAttribute(et,Tt,jt){et.setAttribute(Tt,jt)}setSpanAttributes(et,Tt){et.setAttributes(Tt)}initializeDistributedTracing(et,Tt,jt){this.tracer=this.openTelemetryService.getOTELTracer(et,Tt),jt.subscribe(On=>{this.commonTags=On},On=>{this.logger.error("Error while setting global tags. No global tags will be used",On),this.commonTags={}}),this.distributedTracingXhrFactoryService=this.injector.get(nv),this.distributedTracingXhrFactoryService.initialize(this.tracer,et.apiTracingConfig,et.statusCodeZeroAnalyzerConfig,jt)}getFormattedUrlForHttpPopupSpan(et,Tt){if(Tt&&this.tracer){const jt={};this.injectSpanHttpHeaders(Tt,jt);const On=new URL(et),ti=JSON.stringify((0,M.extend)({},jt)),ir=On.searchParams.toString();et=`${On.origin}${On.pathname}?tracer=${(0,T.KA)(ti,!0,!0)}`,ir.length&&(et=`${et}&${ir}`)}return et}startSpan(et,Tt){return this.openTelemetryService.createSpan(et,Tt)}startSpanUsingContext(et,Tt){return this.openTelemetryService.createSpanUsingContextInfo(et,Tt)}inject(et){return this.openTelemetryService.getSpanContextInfo(et)}injectSpanHttpHeaders(et,Tt){const jt=this.openTelemetryService.getSpanContextInfo(et),On=Object.keys(jt);for(const ti of On)Tt[ti]=jt[ti]}handleHttpError(et,Tt){this.setSpanAttribute(et,E.Error,!0),this.setSpanAttribute(et,E.HttpStatusCode,Tt&&Tt.status||0)}handleHttpPopupError(et,Tt){this.setSpanAttribute(et,E.Error,!0),this.setSpanAttribute(et,E.HttpStatusCode,Tt.errorCode),this.setSpanAttribute(et,E.HttpErrorText,Tt.errorText),this.setSpanAttribute(et,E.HttpUrl,Tt.failedUrl)}handleHttpSuccess(et,Tt){this.setSpanAttribute(et,E.Error,!1),Tt&&this.setSpanAttribute(et,E.HttpUrl,Tt)}handleHttpEndpointSpan(et,Tt,jt,On){const ti=Tt.headers?Tt.headers:{},ir=this.startSpan(jt,On);return ir?(this.setSpanAttributes(ir,Tt.params?Tt.params:{}),this.injectSpanHttpHeaders(ir,ti),et.pipe((0,h.M)(()=>this.handleHttpSuccess(ir)),(0,f.W)(so=>(this.handleHttpError(ir,so),(0,v.$)(so))),(0,A.j)(()=>this.closeSpan(ir)))):et}closeSpan(et){et&&(this.setSpanAttributes(et,this.commonTags),et.end())}closeHttpPopupSpan(et,Tt,jt){et&&(this.setSpanAttributes(et,this.commonTags),Tt?this.handleHttpPopupError(et,jt):this.handleHttpSuccess(et,jt.failedUrl),et.end())}sendOpenTracingSpanTags(et,Tt,jt){const On=this.startSpan(et,jt);Tt?.forEach((ti,ir)=>{this.setSpanAttribute(On,ir,ti)}),this.closeSpan(On)}runWithinSpanContext(et,Tt,jt,...On){const ti=this.openTelemetryService.extractContext(et);return this.openTelemetryService.runWithContext(ti,Tt,jt,...On)}}return(ie=Fe).\u0275fac=function(et){return new(et||ie)(r.KVO(T_),r.KVO(ce.J6),r.KVO(r.zZn))},ie.\u0275prov=r.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"}),Fe})()},21333:(je,z,c)=>{"use strict";c.d(z,{u$:()=>u,Wj:()=>ue,sT:()=>v,tg:()=>m,yN:()=>y});var r=c(94485),n=c(58527);let v=(()=>{var Me;class be{}return(Me=be).\u0275fac=function(ne){return new(ne||Me)},Me.\u0275prov=n.jDH({token:Me,factory:Me.\u0275fac}),be})();var h=c(26537),f=c(3457),A=c(47973);let M=(()=>{var Me;class be{constructor(ne,Ge){this.dialogRef=ne,this.data=Ge,this.content=Ge.content}}return(Me=be).\u0275fac=function(ne){return new(ne||Me)(n.rXU(h.CP),n.rXU(h.Vh))},Me.\u0275cmp=n.VBU({type:Me,selectors:[["ng-component"]],decls:7,vars:3,consts:[["mat-dialog-title","",1,"font-header4"],["mat-dialog-content",""],[1,"exception-content","font-body2",3,"innerHTML"],["mat-dialog-actions","","fxLayoutAlign","end end","fxLayout","row"],["mat-button","",1,"font-button1",3,"mat-dialog-close"]],template:function(ne,Ge){1&ne&&(n.j41(0,"h1",0),n.EFF(1),n.k0s(),n.j41(2,"div",1),n.nrm(3,"div",2),n.k0s(),n.j41(4,"div",3)(5,"button",4),n.EFF(6," Close "),n.k0s()()),2&ne&&(n.R7$(),n.JRh(Ge.data.title),n.R7$(2),n.Y8G("innerHTML",Ge.content,n.npT),n.R7$(2),n.Y8G("mat-dialog-close",!0))},dependencies:[h.tx,h.BI,h.Yi,h.E7,f.DJ,f.sA,A.iV],styles:[".exception-content[_ngcontent-%COMP%]{-webkit-user-select:text;user-select:text;background-color:#212121;padding:10px;overflow-wrap:anywhere}"]}),be})();const T_Sanitize=/(\w+:|[\\/]).*[\\/]/gi,T_Indentation=/ at /g,T_Class=/([^]+)/g;class y{constructor(be,Q){this.err=Q,this.errorMessage=be,this.metadata={}}get error(){return this.err}toString(){return this.errorMessage+":"+JSON.stringify(this.err)}addMetadata(be,Q){this.metadata[be]=Q}getMetaData(){return this.metadata}}var S=c(99021),l=c(78812),s=c(3816);const u={exceptionTimeLimiter:6e4,clientName:"unknown",isExceptionEnabled:!0,devMode:!1};let m=(()=>{var Me;class be{constructor(ne,Ge,ge){this.logger=ne,this.injector=Ge,this.dialog=ge}handleError(ne){let Ge=!1;this.logger.info("UnHandled Exception was caught",ne);const ge=this.injector.get(v);if(ge&&(this.isEnabled=ge.isExceptionEnabled,this.devMode=ge.devMode),!this.isEnabled||(ne?.rawResponse instanceof r.yz?(this.logger.error("There was an HTTP error. Skipping exception event"),Ge=!0):ne instanceof S.M?(this.logger.error("Timeout error occured. Skipping exception event"),Ge=!0):ne instanceof TypeError?this.logger.error("Type error occured. Sending exception telemetry"):ne instanceof Error?this.logger.error("Error occured. Sending exception telemetry"):(this.logger.error("Unknown error or cef query failure. Skipping exception event"),Ge=!0),Ge&&!this.devMode))return;const Xe={name:ne.name,message:ne.message,stackFrame:null,exceptionString:null};ne.stack=ne.stack?.replace(T_Sanitize,""),Xe.stackFrame=ne.stack??l.oX.Undefined;const ot=JSON.stringify(Xe);this.logger.error("Exception stack trace ",ot),this.devMode&&this.dialog.open(M,{autoFocus:!1,disableClose:!0,panelClass:"nv-overlay-panel",data:{title:"Unhandled Exception",content:ne.stack?this.formatExceptionStack(ne.stack):ot}}),Ge||(Xe.exceptionString=Xe.stackFrame,this.handleClientSideException(Xe,ge))}formatExceptionStack(ne){return ne.replace(T_Indentation,"<br>&nbsp;&nbsp;&nbsp;at ").replace(T_Class,"<span>$1</span>")}}return(Me=be).\u0275fac=function(ne){return new(ne||Me)(n.KVO(s.Vy),n.KVO(n.zZn),n.KVO(h.bZ))},Me.\u0275prov=n.jDH({token:Me,factory:Me.\u0275fac}),be})();var I=c(56106),R=c(97979),O=c(29370),Y=c(99204),j=c(50599),fe=c(96501),te=c(44186);const ce=[I.YN,A.wG,R.ic,fe.Wh,Y.D6,O.m_,j.fS,te.uc];let H=(()=>{var Me;class be{}return(Me=be).\u0275fac=function(ne){return new(ne||Me)},Me.\u0275mod=n.$C({type:Me}),Me.\u0275inj=n.G2t({imports:[I.YN,ce,I.YN,A.wG,R.ic,fe.Wh,Y.D6,O.m_,j.fS,te.uc]}),be})();var Z=c(51006),X=c(65240);let ue=(()=>{var Me;class be{}return(Me=be).\u0275fac=function(ne){return new(ne||Me)},Me.\u0275mod=n.$C({type:Me}),Me.\u0275inj=n.G2t({imports:[h.hM,Z.YF,H,X.h]}),be})()},26814:(je,z,c)=>{"use strict";c.d(z,{sK:()=>ge,y2:()=>v,IS:()=>h,BW:()=>oe,Id:()=>Q,Ky:()=>be});var r=c(58527);let n=(()=>{var Le;class Oe{}return(Le=Oe).\u0275fac=function(Ie){return new(Ie||Le)},Le.\u0275prov=r.jDH({token:Le,factory:Le.\u0275fac}),Oe})(),v=(()=>{var Le;class Oe extends n{}return(Le=Oe).\u0275fac=(()=>{let ye;return function(at){return(ye||(ye=r.xGo(Le)))(at||Le)}})(),Le.\u0275prov=r.jDH({token:Le,factory:Le.\u0275fac}),Oe})(),h=(()=>{var Le;class Oe{}return(Le=Oe).\u0275fac=function(Ie){return new(Ie||Le)},Le.\u0275mod=r.$C({type:Le}),Le.\u0275inj=r.G2t({}),Oe})();var f=c(57258),A=c(43848),M=c(19392),T=c(31315),E=c(59859),y=c(93181),S=c(36466),l=c(35146),s=c(75707),u=c(65706),m=c(91384),I=c(14714),R=c(12962),O=c(83915),Y=c(55833),j=c(10785),fe=c(26875),te=c(3816),ce=c(72271),H=c(78812),Z=c(21333),X=function(Le){return Le.OSName="osName",Le}(X||{});class ue extends Z.yN{constructor(){super("Empty cloud variable",null)}}class Me extends Z.yN{constructor(){super("Cloud variable could not be retrieved via API call nor cache. Please handle this case and use defaults",null)}}var be=function(Le){return Le.GxTargetGetFeatureRollout="GetFeatureRollout",Le.GxTargetGetCloudVariable="GetCloudVariable",Le.GxTargetGetSurveyFeature="GetSurveyFeature",Le.Other="Other",Le}(be||{}),Q=function(Le){return Le.GxTargetGetECommerceFeature="GetECommerceFeature",Le.GxTargetGetSurveyFeature="GetSurveyFeature",Le.GxTargetGetQueueETAConfig="GetQueueETAConfig",Le.GxTargetGetAutohighlightFeature="GetAutohighlightFeature",Le.GxTargetGetFreestyleFeature="GetFreestyleFeature",Le.GxTargetGetStarfleetPhase1="GetStarfleetPhase1",Le.GxTargetGetStarfleetPhase2="GetStarfleetPhase2",Le.GxTargetGetKeyboardLayout="GetKeyboardLayout",Le.GxTargetGetAnselFeature="GetAnselFeature",Le.GxTargetGetGfnBroadcastFeature="GetGfnBroadcastFeature",Le.GxTargetGetDeeplinkSupport="GetDeeplinkSupport",Le.GxTargetGetKBLayoutsConfig="GetKBLayoutsConfig",Le.GxTargetGetUpsellMessage="GetUpsellMessage",Le.GxTargetGetAllCloudVariables="GetAllCloudVariables",Le.GxTargetGetBrowserClientCanary="GetBrowserClientCanary",Le.GxTargetGetReservedSKUEnabled="GetReservedSKUEnabled",Le.GxTargetGetReservedSKUIBetaFlag="GetReservedSKUIBetaFlag",Le.GxTargetGetClipboardPasteConfig="GetClipboardPasteConfig",Le.GxTargetGetPathToPurchaseConfig="GetPathToPurchaseConfig",Le.GxTargetGetPunctualUIConfig="GetPunctualUIConfig",Le.GxTargetGetEnableBrowserIGSS="GetEnableBrowserIGSS",Le.GxTargetGetGuestFlowClientConfig="GxTargetGetGuestFlowClientConfig",Le.Other="Other",Le}(Q||{}),ge=function(Le){return Le.StreamingClient="StreamingClient",Le.MallClient="MallClient",Le.StoreLibrary="StoreLibrary",Le.Unknown="Unknown",Le.BackgroundAgent="BackgroundAgent",Le.NvAppClient="NvAppClient",Le}(ge||{}),Xe=function(Le){return Le.GxTarget="GxTarget",Le}(Xe||{}),ot=function(Le){return Le.UNDEFINED="UNDEFINED",Le.TRUE="TRUE",Le.FALSE="FALSE",Le}(ot||{});const dt={HTTPFailure:{name:"HTTPFailure",gdprLevel:H.EU.Functional},HTTPSuccess:{name:"HTTPSuccess",gdprLevel:H.EU.Functional},HTTPCallResult:{name:"HTTPCallResult",gdprLevel:H.EU.Functional}};class xe extends H.YH{constructor(Oe){super(Oe),this.name=dt.HTTPFailure.name,this.gdprLevel=dt.HTTPFailure.gdprLevel}}class Re extends H.YH{constructor(Oe){super(Oe),this.name=dt.HTTPSuccess.name,this.gdprLevel=dt.HTTPSuccess.gdprLevel}}class Ue extends H.YH{constructor(Oe){super(Oe),this.name=dt.HTTPCallResult.name,this.gdprLevel=dt.HTTPCallResult.gdprLevel}}var ee=c(52117),W=c(72945),Pe=c(40482);const le="78589530426925203";let oe=(()=>{var Le;class Oe{constructor(Ie,at,K,ve,De,pe,Qe){this.config=Ie,this.loggingService=at,this.telemetryService=K,this.sharedStorageService=ve,this.systemInfoService=De,this.eventStreamFactory=pe,this.localeService=Qe,this.isCvListInitialized$=new f.m(1),this.cacheMaxAge=1440,this.isInitialized$=new f.m(1),this.batchCvsInitialized=new f.m(1),this.commonClientParams={},this.cachedCloudVariableMap=new Map,this.deviceOSName="",this.readFromSharedStorage=zt=>this.sharedStorageService.readBlock(zt).pipe((0,s.ZZ)(Vt=>(0,A.of)(Vt||{}))),this.writeToSharedStorage=(zt,Vt)=>{const de=Vt.name;if(this.storageUpdateQueue.unshift(Vt),this.storageUpdateQueue.length>1)return void this.logger.info("Added experiment to storage update queue",de);const J=zt;let $e;return(0,M.H)(this.readFromSharedStorage(J)).pipe((0,s.ZZ)(st=>($e=st,this.updateExperimentRefreshDate(Vt),(st=this.cleanupStorageBlock(st))[de]=Vt,this.sharedStorageService.writeBlock(J,st)))).subscribe(()=>{this.logger.info("Cloud variable written to shared storage",Vt.name,Vt.value),this.processStorageUpdateQueue()},st=>{this.logger.error(`Error while writing to shared storage for ${de}`,st),this.processStorageUpdateQueue()}),null},this.getSharedStorageKey=zt=>{let Vt=this.clientInfo.userId!==H.oX.Undefined?this.clientInfo.userId:void 0;return zt===H.CV.DEVICE_ID&&(Vt=void 0),this.logger.info("Got SharedStorageKey: ",this.storageKey+"_"+Vt),this.storageKey+"_"+Vt},this.logger=at.getLogger("experienceControl/service"),this.storageKey="experienceControl",this.storageUpdateQueue=[],this.clientInfo={deviceId:"",userId:H.oX.Undefined,idpId:H.oX.Undefined,clientId:this.config.clientId,clientVer:this.config.clientVersion,clientVariant:this.getCommonClientVariant(this.config.clientVariant),deviceOS:"",deviceType:"",deviceMake:"",deviceModel:"",deviceOSVersion:"",clientType:ce.CommonClientType.Undefined,browserType:""},this.cacheMaxAge=this.config.cacheMaxAge||this.cacheMaxAge,this.fetchCloudVariableStream=this.eventStreamFactory.createStream(this.fetchCloudVariables.bind(this))}getCommonClientVariant(Ie){switch(Ie){case"ibeta":return ce.CommonClientVariant.iBeta;case"release":return ce.CommonClientVariant.Release;default:return ce.CommonClientVariant.Undefined}}setUserInfo(Ie){this.clientInfo.userId=Ie.userId||H.oX.Undefined,this.clientInfo.idpId=Ie.idpId||H.oX.Undefined}setCvList(Ie){this.cvList=Ie,this.isCvListInitialized$.next(!0)}cvListInitialized(){return this.isCvListInitialized$.asObservable()}fetchCloudVariables(){return(0,T.zV)([this.isGxTargetConfiguredCorrectly(),this.cvListInitialized()]).pipe((0,u.s)(1),(0,s.ZZ)(([Ie,at])=>Ie?(0,y.p)([this.readFromSharedStorage(this.getSharedStorageKey(H.CV.USER_ID)),this.readFromSharedStorage(this.getSharedStorageKey(H.CV.DEVICE_ID))]):(this.batchCvsInitialized.next(!0),(0,E.$)(`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,s.ZZ)(([Ie,at])=>{const K=this.callGetMultipleCloudVariableApi({variant:this.config.clientVariant,...this.clientInfo.clientType===ce.CommonClientType.Browser&&{userDefaultUILanguage:this.localeService.getShortLocale()}}).pipe((0,m.M)(pe=>{this.batchCvsInitialized.next(!0)}),(0,I.W)(pe=>{this.logger.error("Error in batch call",pe);const Qe=new Map;return this.batchCvsInitialized.next(!0),(0,A.of)(Qe)}));let ve,De;return this.logger.info("Requested cvs in batch call",this.cvList),(0,fe.isEmpty)(Ie)?K:(this.cvList.forEach(pe=>{De=Ie[pe],De?(ve={variation:De.result,value:De.value,activity:De.activity,metadata:De.metadata,isCachedResult:!0},this.cachedCloudVariableMap.set(pe,ve)):at&&at[pe]&&(De=at[pe],De&&(ve={variation:De.result,value:De.value,activity:De.activity,metadata:De.metadata,isCachedResult:!0},this.cachedCloudVariableMap.set(pe,ve)))}),K.subscribe(S.l),K.pipe((0,R.o)(this.config.allCvNetworkTimeoutForCacheFallback,(0,A.of)(this.cachedCloudVariableMap))))}))}callGetMultipleCloudVariableApi(Ie={}){const at=new Map,K=[],ve=this.cloudVariableSdk.startSpan(ee.pB.ClientGetCloudVariable);return(0,M.H)(this.cloudVariableSdk.getCloudVariables(this.cvList,!1,{...this.commonClientParams,...Ie},ve).catch(De=>{this.logger.error("Error in getCloudVariables from cloudVariableSdk",De)})).pipe((0,s.ZZ)(De=>{if(De?.size>0){this.sendCloudVariableFetchSuccessTelemetry(De,be.GxTargetGetCloudVariable,Q.GxTargetGetAllCloudVariables);const pe={name:void 0,variation:void 0,value:void 0,activity:void 0,isCachedResult:!1,state:ce.CloudVariableStatus.Unknown};return this.cvList.forEach(Qe=>{if(De.get(Qe)){const Vt=De.get(Qe);Vt.clientRequestParams={commonClientParams:this.commonClientParams,additionalClientParams:Ie};const de={name:Vt.name,variation:Vt.result,value:Vt.value,activity:Vt.activity,metadata:Vt.metadata,isCachedResult:!1,state:ce.CloudVariableStatus.Unknown};at.set(Vt.name,de),K.push((0,A.of)(de))}else at.set(Qe,pe)}),this.cloudVariableSdk.closeSpan(ve),(0,l.yU)(...K)}return void 0===De?(this.sendCloudVariableFetchFailureTelemetry(De,be.GxTargetGetCloudVariable,Q.GxTargetGetAllCloudVariables),this.logger.error("Batch call returned failure")):(this.sendCloudVariableFetchSuccessTelemetry(De,be.GxTargetGetCloudVariable,Q.GxTargetGetAllCloudVariables),this.logger.error("Batch call returned empty result")),ve.setTag(ee.NS.Error,!0),this.cloudVariableSdk.closeSpan(ve),(0,A.of)(new Map)}),(0,O.T)(()=>at),(0,Y.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 Ie=this.storageUpdateQueue.pop(),at=this.getSharedStorageKey(Ie.activity.activationType);this.writeToSharedStorage(at,Ie)}}cleanupStorageBlock(Ie){const at=new Set(Object.values(this.config.experiences));for(const K in Ie)at.has(K)||(this.logger.info(`removing deprecated activity: ${K} from storage`),delete Ie[K]);return Ie}updateExperimentRefreshDate(Ie){return Ie.metadata||(Ie.metadata={}),Ie.metadata.refreshDate=new Date,Ie}initialize(Ie,at){this.hostClientType=Ie||ge.Unknown;const K=(0,T.zV)([this.systemInfoService.getDeviceOSType(),this.systemInfoService.getSystemInfo([te.Lu.DeviceId,te.Lu.OSName,te.Lu.OSVersion,te.Lu.DeviceType,te.Lu.BrowserName,te.Lu.SystemName,te.Lu.VendorName])]).pipe((0,O.T)(([ve,De])=>({deviceId:this.config.piplExemption?te.Qe:De.DeviceId,osName:De.OSName,osVersion:De.OSVersion,osType:ve,deviceType:De.DeviceType,browserType:De.BrowserName,deviceModel:De.SystemName,deviceMake:De.VendorName})));(0,T.zV)([K,at]).pipe((0,s.ZZ)(([ve,De])=>{this.clientInfo.deviceId=ve.deviceId,this.clientInfo.browserType=ve.browserType,this.clientInfo.deviceOS=ve.osType,this.deviceOSName=ve.osName,this.clientInfo.deviceType=ve.deviceType||H.oX.Undefined,this.clientInfo.deviceMake=ve.deviceMake||H.oX.Undefined,this.clientInfo.deviceModel=ve.deviceModel||H.oX.Undefined,this.clientInfo.deviceOSVersion=ve.osVersion,this.clientInfo.clientType=te.zk.isBrowserPlatform()?ce.CommonClientType.Browser:ce.CommonClientType.Native,this.updateCommonClientParams(X.OSName,this.getSupportedOSName(ve.osName)),this.logger.info("Client info at initialize:",this.clientInfo);const Qe=this.config;return this.cloudVariableSdk=new ce.CloudVariableSdkService({url:Qe.server,defaultRetries:Qe.defaultRetries,defaultTimeBetweenRetries:Qe.defaultTimeBetweenRetries,defaultTimeout:Qe.defaultTimeout,cacheMaxAge:Qe.cacheMaxAge,storageConfig:{storageType:ce.StorageType.IndexedDB},loggingLevel:ce.LoggingLevel.Info,clientInfo:this.clientInfo},{collector_host:"lightstep.kaizen.nvidia.com",collector_port:443,component_name:this.config.openTracingConfig.componentName,disable_clock_skew_correction:!0,access_token:this.config.openTracingConfig.accessToken},this.config.storage===H.P6.IndexedDb?void 0:this.readFromSharedStorage,this.config.storage===H.P6.IndexedDb?void 0:this.writeToSharedStorage,this.getSharedStorageKey),this.initGlobalTagsForOpenTracing(De,Ie),(0,A.of)(!0)})).subscribe(()=>{this.logger.info("Initialized successfully"),this.isInitialized$.next(!0)},ve=>{this.logger.error("Error initializing service",ve),this.isInitialized$.next(!1)})}initGlobalTagsForOpenTracing(Ie,at){this.cloudVariableSdk.updateGlobalTags({[ee.NS.ServiceVersion]:this.clientInfo.clientVer,[ee.NS.ServiceType]:ee.Se.Pc_A7,[ee.NS.SpanKind]:ee.ls.Client,[ee.NS.AppName]:at,[ee.NS.DeviceId]:this.clientInfo.deviceId,[ee.NS.ClientOs]:this.clientInfo.deviceOS,[ee.NS.ClientOsName]:this.deviceOSName,[ee.NS.ClientOsVersion]:this.clientInfo.deviceOSVersion,[ee.NS.CountryCode]:Ie})}getSupportedOSName(Ie){switch(Ie=Ie?.toLowerCase().includes("windows")?"windows":Ie,Ie?.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";default:return this.logger.info("Cannot get supported OS name for OS: ",Ie),""}}updateCommonClientParams(Ie,at){Ie&&at&&(this.commonClientParams[Ie]=at)}getCloudVariable(Ie,at={},K,ve,De,pe,Qe){return this.config.denyListExperiences.includes(Ie)?this.fetchSingleCloudVariable(Ie,at,K,ve,De,pe,Qe).pipe((0,m.M)(zt=>this.logger.info("Received requested cloud variable information: ",Ie,zt))):this.batchCvsFetchedStatus$.pipe((0,u.s)(1),(0,s.ZZ)(()=>this.fetchCloudVariableStream.get$().pipe((0,s.ZZ)(zt=>{const Vt=zt.get(Ie);return Vt?Vt?.value?(0,A.of)(Vt):(0,E.$)(ue):this.fetchSingleCloudVariable(Ie,at,K,ve,De,pe)}),(0,m.M)(zt=>{this.logger.info("Received requested cloud variable information: ",Ie,zt)}),(0,I.W)(zt=>(0,E.$)(zt)))))}fetchSingleCloudVariable(Ie,at={},K,ve,De,pe,Qe){let zt,Vt;return this.logger.info("fetchSingleCloudVariable called for ",Ie),this.isGxTargetConfiguredCorrectly(pe).pipe((0,s.ZZ)(([de])=>(this.logger.info("cloud variable requested with params",Ie,at,{...this.clientInfo}),de?this.fetchCachedData(Ie):(0,E.$)(`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,s.ZZ)(de=>{zt=de,Vt=zt&&zt[Ie];const J=this.callGetCloudVariableApi(Ie,at,Vt,zt,ve,De);if(Vt){const $e={additionalClientParams:at,commonClientParams:this.commonClientParams},st=this.cacheIsCurrent(Vt,K?.cacheLifetimeOverride)&&(Qe||(0,fe.isEqual)($e,Vt.clientRequestParams)),Gt=(0,A.of)({name:Vt.name,variation:Vt.result,value:Vt.value,activity:Vt.activity,metadata:Vt.metadata,isCachedResult:!0,state:ce.CloudVariableStatus.Unknown});if(K?.useCache){if(st)return Gt}else if(K?.useNetworkTimeoutForCacheFallback)return J.subscribe(S.l,Zt=>{this.logger.info(`Error while fetching ${Ie}`,Zt)}),J.pipe((0,R.o)(this.config.networkTimeoutForCacheFallback,Gt))}return J}))}callGetCloudVariableApi(Ie,at={},K,ve,De,pe){const Qe=this.cloudVariableSdk.startSpan(ee.pB.ClientGetCloudVariable);return(0,M.H)(this.cloudVariableSdk.getCloudVariable(Ie,!1,{...this.commonClientParams,...at},Qe).catch(zt=>{this.logger.error("Error in getCloudVariable from cloudVariableSdk",zt)})).pipe((0,s.ZZ)(zt=>{if(zt){if(this.sendCloudVariableFetchSuccessTelemetry(zt,De,pe),(0,fe.isEmpty)(zt))return(0,E.$)(new ue);this.cloudVariableSdk.closeSpan(Qe);const Vt=zt;return Vt.clientRequestParams={commonClientParams:this.commonClientParams,additionalClientParams:at},(0,A.of)({name:Vt.name,variation:Vt.result,value:Vt.value,activity:Vt.activity,metadata:Vt.metadata,isCachedResult:!1,state:ce.CloudVariableStatus.Unknown})}return void 0===zt?(0,E.$)(new Me):(this.sendCloudVariableFetchSuccessTelemetry(zt,De,pe),(0,E.$)(new ue))}),(0,I.W)(zt=>(Qe.setTag(ee.NS.Error,!0),this.cloudVariableSdk.closeSpan(Qe),zt instanceof ue?K?this.cleanupExperienceForCloudVariable(Ie,ve).pipe((0,s.ZZ)(()=>(0,E.$)(zt))):(this.logger.info("Empty cloud variable and no cached response"),(0,E.$)(zt)):K?(this.logger.info(`Applying cached experiment: ${Ie}`),this.sendCloudVariableFetchFailureTelemetry(zt,De,pe),(0,A.of)({name:K.name,variation:K.result,value:K.value,activity:K.activity,metadata:K.metadata,isCachedResult:!0,state:ce.CloudVariableStatus.Unknown})):(this.sendCloudVariableFetchFailureTelemetry(zt,De,pe),(0,E.$)(zt)))),(0,Y.t)(1))}cleanupExperienceForCloudVariable(Ie,at){const De=this.getSharedStorageKey(at[Ie].activity.activationType);return this.logger.info(`Empty experiment list clearing the cache for: ${Ie}`),delete at[Ie],this.sharedStorageService.writeBlock(De,at)}fetchCachedData(Ie){let at=(0,A.of)({});if(this.clientInfo.userId!==H.oX.Undefined){const K=this.getSharedStorageKey(H.CV.USER_ID);at=this.readFromSharedStorage(K)}return(0,y.p)([at,this.readFromSharedStorage(this.getSharedStorageKey(H.CV.DEVICE_ID))]).pipe((0,s.ZZ)(([K,ve])=>{let De;return K&&K[Ie]?(this.logger.info("found activity in user storage",Ie,K[Ie]),De=K):ve&&ve[Ie]?(this.logger.info("found activity in global storage",Ie,ve[Ie]),De=ve):De={},(0,A.of)(De)}))}cacheIsCurrent(Ie,at=this.cacheMaxAge){return-1===at?!!Ie:!!(Ie&&j(new Date).diff(j(this.getExperimentRefreshDate(Ie)),"minutes")<=at)}getExperimentRefreshDate(Ie){return Ie.metadata&&Ie.metadata.refreshDate}isGxTargetConfiguredCorrectly(Ie){let at=this.isInitialized$;return Ie&&(at=this.isInitialized$.pipe((0,s.ZZ)(()=>Ie),(0,s.ZZ)(K=>(this.logger.info("Setting user info"),this.setUserInfo(K),(0,A.of)(K))))),at.pipe((0,u.s)(1),(0,O.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(Ie,at,K){if(0===this.config.clientId.localeCompare(le)){const ve=new xe({sourceComponent:this.hostClientType||ge.Unknown,originalService:Xe.GxTarget,serviceUseCase:at,serviceSubUseCase:K,url:Ie?.config?.url||"",networkErrorCode:String(Ie&&Ie.response?Ie.response.status:0),destinationIp:"",xRequestId:Ie&&Ie.xRequestId?Ie.xRequestId:"",retryCount:0,wasSWCacheBypassed:ot.UNDEFINED,networkErrorMessage:Ie?.response?.message?.substring(0,1024)||""});this.telemetryService.push(ve)}else{const ve=new Ue({sourceComponent:this.hostClientType||ge.Unknown,originalService:Xe.GxTarget,serviceUseCase:at,serviceSubUseCase:K,url:Ie?.config?.url||"",networkErrorCode:String(Ie&&Ie.response?Ie.response.status:0),destinationIp:"",xRequestId:Ie&&Ie.xRequestId?Ie.xRequestId:"",httpStatus:Ie?.response?.status||0,responseData:"",durationMs:0,retryCount:0,wasSWCacheBypassed:ot.UNDEFINED});this.telemetryService.push(ve)}}sendCloudVariableFetchSuccessTelemetry(Ie,at,K){if(0===this.config.clientId.localeCompare(le)){const ve=new Re({sourceComponent:this.hostClientType||ge.Unknown,originalService:Xe.GxTarget,serviceUseCase:at,serviceSubUseCase:K,url:Ie?.url||"",httpStatus:Ie?.httpStatus||200,durationMs:Math.round(Ie?.durationMs)||0,destinationIp:"",responseData:"",xRequestId:Ie?.xRequestId||"",retryCount:0,wasSWCacheBypassed:ot.UNDEFINED});this.telemetryService.push(ve)}else{const ve=new Ue({sourceComponent:this.hostClientType||ge.Unknown,originalService:Xe.GxTarget,serviceUseCase:at,serviceSubUseCase:K,url:Ie?.url||"",networkErrorCode:"",destinationIp:"",xRequestId:Ie?.xRequestId||"",httpStatus:Ie?.httpStatus||200,responseData:"",durationMs:Math.round(Ie?.durationMs)||0,retryCount:0,wasSWCacheBypassed:ot.UNDEFINED});this.telemetryService.push(ve)}}}return(Le=Oe).\u0275fac=function(Ie){return new(Ie||Le)(r.KVO(v),r.KVO(te.J6),r.KVO(H.H0),r.KVO(W.yQ),r.KVO(te.zW),r.KVO(Pe.mZ),r.KVO(te.iH))},Le.\u0275prov=r.jDH({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Oe})()},33089:(je,z,c)=>{"use strict";c.d(z,{NO:()=>u,Qe:()=>m});var r=c(43848),n=c(75707),v=c(20468),h=c(26875),T=function(R){return R.GfcHeadRequest="FeedbackHead",R.GfcAttachmentRequest="FeedbackAttachment",R}(T||{}),E=c(58527);let y=(()=>{var R;class O{}return(R=O).\u0275fac=function(j){return new(j||R)},R.\u0275prov=E.jDH({token:R,factory:R.\u0275fac}),O})();var S=c(5798);const s="gfc/v4.0/attachment";let u=(()=>{var R;class O{constructor(j,fe){this.serverConfig=j,this.endpointFactory=fe,this.latestOffset=0,this.commonFeedbackEventData={},this.previousChunkDataSize=0,this.prepareCommonFeedbackData(j),this.feedbackEndpointUrl=this.prepareFeedbackEndpoint(),this.feedbackAttachmentEndpointUrl=this.prepareFeedbackAttachmentEndpoint()}generateUrl(j){return this.serverConfig.server+"/"+j}computeSHA256Checksum(j){let fe="";return(0,h.isEmpty)(j)||(fe=(0,v.sha256)(j)),fe}getDataSize(j){return(0,h.isEmpty)(j)?0:new Blob([j]).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:T.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:T.GfcAttachmentRequest,reportSuccessTelemetry:"false"}}),this.feedbackAttachmentEndpointUrl}prepareCommonFeedbackData(j){this.commonFeedbackEventData=(0,h.extend)(this.commonFeedbackEventData,{clientId:j.clientId,feedbackProtocol:"4.4",feedbackSchemaVer:j.schemaVersion,feedbackSysVer:j.version})}buildGFCMultipartData(j,fe,te,ce,H=0,Z=!1){const X=new FormData;return X.append("data2",new Blob([j])),X.append("feedbackId",fe),X.append("size",te.toString()),X.append("checksum",this.computeSHA256Checksum(j)),ce&&X.append("parameters",JSON.stringify(ce.parameters)),X.append("offset",H.toString()),Z&&X.append("eob","true"),X}updatePreviousChunkSizeAndBuildMultipartData(j,fe,te=!1){return this.previousChunkDataSize=this.getDataSize(j),this.buildGFCMultipartData(j,this.xFeedbackId,this.previousChunkDataSize,fe,this.latestOffset,te)}sendFeedbackHeadRequest(j){return j=(0,h.merge)(j,this.commonFeedbackEventData),this.feedbackEndpointUrl.makeRequestEx("POST",this.generateUrl("gfc/v4.0/head"),{body:j,headers:{"Content-Type":"application/json"},withCredentials:!0})}sendFeedbackEvent(j){return this.latestOffset=0,this.xFeedbackId=j.feedbackId,this.sendFeedbackHeadRequest(j)}sendFeedbackChunkEvent(j,fe,te=!1,ce){if(te){if(ce?.isBrowserClosing)return this.sendLastFeedbackChunkEvent(j,fe),(0,r.of)({});{ce.prevChunkInProgress&&this.updateOffsetOnSuccessfulAttachmentRequest();const H=this.updatePreviousChunkSizeAndBuildMultipartData(j,fe,!0);return this.latestOffset=0,this.sendFeedbackAttachmentReq(H)}}{const H=this.updatePreviousChunkSizeAndBuildMultipartData(j,fe);return this.sendFeedbackAttachmentReq(H)}}sendFeedbackAttachmentReq(j){return this.feedbackAttachmentEndpointUrl.makeRequestEx("POST",this.generateUrl(s),{body:j,withCredentials:!0})}sendLastFeedbackChunkEvent(j,fe){const te=this.updatePreviousChunkSizeAndBuildMultipartData(j,fe,!0);navigator.sendBeacon(this.generateUrl(s),te),this.latestOffset=0}updateOffsetOnSuccessfulAttachmentRequest(j){this.latestOffset=j||Number(this.latestOffset)+Number(this.previousChunkDataSize)}sendFeedbackBasedOnTechConsent(j,fe,te){return j.sentTs=(new Date).toISOString(),this.sendFeedbackHeadRequest(j).pipe((0,n.ZZ)(()=>{if(fe){const ce=this.buildGFCMultipartData(te,j.feedbackId,this.getDataSize(te),void 0,0,!0);return this.sendFeedbackAttachmentReq(ce)}return(0,r.of)(!0)}))}}return(R=O).\u0275fac=function(j){return new(j||R)(E.KVO(y),E.KVO(S.t))},R.\u0275prov=E.jDH({token:R,factory:R.\u0275fac,providedIn:"root"}),O})();const m="undefined"},24841:(je,z,c)=>{"use strict";c.d(z,{f:()=>A});var r=c(26537),n=c(16490),v=c(49752),h=c(99564),f=c(29824);class A{constructor(T){this.reference=T}get dialogRef(){return this.reference instanceof r.CP&&this.reference.componentInstance instanceof v.u?this.reference:void 0}get bottomSheetRef(){return this.reference instanceof n.eN&&this.reference.instance instanceof h.G?this.reference:void 0}get threeQuarterSheetRef(){return this.reference instanceof r.CP&&this.reference.componentInstance instanceof f.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 augmentedButtonClick(){return this.instance instanceof f.L?this.instance.augmentedButtonClick:void 0}get radioButtonClick(){return this.instance instanceof v.u||this.instance instanceof f.L?this.instance.radioButtonClick:void 0}get checkboxState(){return this.instance?.data?.checkboxState}get radioOptionSelected(){return this.instance?.data?.radioOptionSelected}set backToCloseResult(T){this.instance.backToCloseResult=T}close(){this.dialogRef?.close(),this.bottomSheetRef?.dismiss(),this.threeQuarterSheetRef?.close()}afterClosed(){return this.dialogRef?.afterClosed()??this.bottomSheetRef?.afterDismissed()??this.threeQuarterSheetRef?.afterClosed()}afterOpened(){return this.dialogRef?.afterOpened()??this.bottomSheetRef?.afterOpened()??this.threeQuarterSheetRef?.afterOpened()}}},72818:(je,z,c)=>{"use strict";c.d(z,{QO:()=>v,SN:()=>M});var v=function(T){return T.ThreeQuarterSheet="ThreeQuarterSheet",T.BottomSheet="BottomSheet",T}(v||{});function M(T,E){const y=[];if(E.addOverlayPanelCls&&y.push("nv-overlay-panel"),(E.bottomSheet||E.threeQuarterSheet)&&y.push("nv-hig"),E.threeQuarterSheet&&y.push("nv-three-quarter-sheet"),E.tvMode&&y.push("is-tv"),y.length>0){const S=T.panelClass?T.panelClass instanceof Array?T.panelClass:new Array(T.panelClass):[];y.forEach(l=>{S.includes(l)||S.push(l)}),T.panelClass=S}}},99564:(je,z,c)=>{"use strict";c.d(z,{G:()=>ue});var r=c(58527),n=c(16490),v=c(72818),h=c(11013),f=c(25369),A=c(26537);const M=(Me,be)=>({"has-image":Me,"only-body":be}),T=Me=>({"overflow-wrap-anywhere":Me}),E=Me=>({"font-tv-error-text":Me}),y=Me=>({visible:Me});function S(Me,be){if(1&Me&&(r.j41(0,"i",20),r.EFF(1),r.k0s()),2&Me){const Q=r.XpG(2);r.R7$(),r.JRh(Q.data.icon)}}function l(Me,be){if(1&Me&&r.nrm(0,"img",21),2&Me){const Q=r.XpG(2);r.Y8G("src",Q.data.image.url,r.B4B)}}function s(Me,be){if(1&Me&&r.nrm(0,"qrcode",22),2&Me){const Q=r.XpG(2);r.Y8G("qrdata",Q.data.link.url)("width",Q.tvMode?184:140)("errorCorrectionLevel","M")}}function u(Me,be){if(1&Me&&(r.j41(0,"div",16),r.DNE(1,S,2,1,"i",17)(2,l,1,1,"img",18)(3,s,1,3,"qrcode",19),r.k0s()),2&Me){const Q=r.XpG();r.R7$(),r.Y8G("ngIf",Q.data.icon),r.R7$(),r.Y8G("ngIf",Q.data.image),r.R7$(),r.Y8G("ngIf",Q.showQRCode)}}function m(Me,be){if(1&Me&&(r.j41(0,"div",23),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&Me){const Q=r.XpG();r.Y8G("ngClass",Q.tvMode?"font-header5":"font-header6"),r.R7$(),r.SpI(" ",r.i5U(2,2,Q.data.headerText.text,Q.data.headerText.placeholders)," ")}}function I(Me,be){1&Me&&r.nrm(0,"mat-progress-spinner",24)}function R(Me,be){if(1&Me&&(r.nrm(0,"div",25),r.nI1(1,"translate")),2&Me){const Q=r.XpG();r.Y8G("ngClass",r.eq3(5,T,Q.showQRCode))("innerHTML",Q.data.bodyText.translated?Q.data.bodyText.text:r.i5U(1,2,Q.data.bodyText.text,Q.data.bodyText.placeholders),r.npT)}}function O(Me,be){if(1&Me&&(r.j41(0,"div",26),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&Me){const Q=r.XpG();r.Y8G("ngClass",r.eq3(5,E,Q.tvMode)),r.R7$(),r.SpI(" ",r.i5U(2,2,Q.data.errorCodeText.text,Q.data.errorCodeText.placeholders)," ")}}function Y(Me,be){if(1&Me&&(r.qex(0),r.eu8(1,27)(2,27),r.bVm()),2&Me){r.XpG();const Q=r.sdS(15),ne=r.sdS(17);r.R7$(),r.Y8G("ngTemplateOutlet",Q),r.R7$(),r.Y8G("ngTemplateOutlet",ne)}}function j(Me,be){if(1&Me&&r.eu8(0,27)(1,27),2&Me){r.XpG();const Q=r.sdS(15),ne=r.sdS(17);r.Y8G("ngTemplateOutlet",ne),r.R7$(),r.Y8G("ngTemplateOutlet",Q)}}function fe(Me,be){if(1&Me){const Q=r.RV6();r.j41(0,"button",29),r.bIt("click",function(Ge){r.eBV(Q);const ge=r.XpG(2);return r.Njj(ge.onPrimaryButtonClick(Ge))}),r.EFF(1),r.nI1(2,"translate"),r.eu8(3,30),r.k0s()}if(2&Me){const Q=r.XpG(2),ne=r.sdS(19);r.Y8G("ngClass",Q.showAccentBtn?"font-button2 mat-flat-button mat-accent":"font-button2")("nvFocusRipple",Q.showAccentBtn)("disabled",Q.data.primaryButton.isDisabled)("nvAutoFocus",Q.autoFocusOnPrimaryButton),r.R7$(),r.SpI(" ",r.bMT(2,7,Q.data.primaryButton.text)," "),r.R7$(2),r.Y8G("ngTemplateOutlet",ne)("ngTemplateOutletContext",r.eq3(9,y,Q.data.primaryButton.spinnerOverlay))}}function te(Me,be){if(1&Me&&r.DNE(0,fe,4,11,"button",28),2&Me){const Q=r.XpG();r.Y8G("ngIf",Q.data.primaryButton)}}function ce(Me,be){if(1&Me){const Q=r.RV6();r.j41(0,"button",32),r.bIt("click",function(Ge){r.eBV(Q);const ge=r.XpG(2);return r.Njj(ge.onSecondaryButtonClick(Ge))}),r.EFF(1),r.nI1(2,"translate"),r.eu8(3,30),r.k0s()}if(2&Me){const Q=r.XpG(2),ne=r.sdS(19);r.Y8G("disabled",Q.data.secondaryButton.isDisabled),r.R7$(),r.SpI(" ",r.bMT(2,4,Q.data.secondaryButton.text)," "),r.R7$(2),r.Y8G("ngTemplateOutlet",ne)("ngTemplateOutletContext",r.eq3(6,y,Q.data.secondaryButton.spinnerOverlay))}}function H(Me,be){if(1&Me&&r.DNE(0,ce,4,8,"button",31),2&Me){const Q=r.XpG();r.Y8G("ngIf",Q.data.secondaryButton)}}function Z(Me,be){1&Me&&(r.j41(0,"div",34),r.nrm(1,"mat-progress-spinner",35),r.k0s()),2&Me&&(r.R7$(),r.Y8G("diameter",48))}function X(Me,be){1&Me&&r.DNE(0,Z,2,1,"div",33),2&Me&&r.Y8G("ngIf",be.visible)}let ue=(()=>{var Me;class be extends f.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(ne,Ge,ge){return(0,v.SN)(Ge,{bottomSheet:!0,tvMode:ge}),ne.open(be,Ge)}constructor(ne,Ge,ge,Xe,ot){super(ge,Xe,ne,ot),this.primaryButtonClick=new r.bkB,this.secondaryButtonClick=new r.bkB,this.linkClick=new r.bkB,this.data={},this.data=ne.get(n.yj,null),this.tvMode=!!Ge.tvMode,this.showQRCodeForLinks=!!Ge.showQRCodeForLinks}ngOnInit(){this.layoutType=this.hasImage||this.tvMode?"row":"column"}onPrimaryButtonClick(ne){this.primaryButtonClick.emit(ne)}onSecondaryButtonClick(ne){this.secondaryButtonClick.emit(ne)}onLinkClick(){this.linkClick.emit()}}return(Me=be).\u0275fac=function(ne){return new(ne||Me)(r.rXU(r.zZn),r.rXU(h.X,8),r.rXU(A.CP,8),r.rXU(n.eN,8),r.rXU(r.SKi))},Me.\u0275cmp=r.VBU({type:Me,selectors:[["nv-hig-bottom-sheet"]],inputs:{data:"data"},outputs:{primaryButtonClick:"primaryButtonClick",secondaryButtonClick:"secondaryButtonClick",linkClick:"linkClick"},features:[r.Vt3],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(ne,Ge){if(1&ne&&(r.j41(0,"div",4),r.DNE(1,u,4,3,"div",5),r.j41(2,"div",6),r.DNE(3,m,3,5,"div",7),r.j41(4,"div",8),r.DNE(5,I,1,0,"mat-progress-spinner",9),r.j41(6,"div",10),r.DNE(7,R,2,7,"div",11)(8,O,3,7,"div",12),r.k0s()()(),r.j41(9,"div",13)(10,"div",14),r.DNE(11,Y,3,2,"ng-container",15)(12,j,2,2,"ng-template",null,0,r.C5r),r.k0s(),r.DNE(14,te,1,1,"ng-template",null,1,r.C5r)(16,H,1,1,"ng-template",null,2,r.C5r)(18,X,1,1,"ng-template",null,3,r.C5r),r.k0s()()),2&ne){const ge=r.sdS(13);r.AVh("is-tv",Ge.tvMode),r.Y8G("fxLayout",Ge.layoutType),r.R7$(),r.Y8G("ngIf",Ge.hasImage),r.R7$(),r.Y8G("fxFlex",Ge.tvMode?"":"grow")("ngClass",r.l_i(19,M,Ge.hasImage,!Ge.data.headerText))("fxLayoutGap",Ge.tvMode?"30px":"16px"),r.R7$(),r.Y8G("ngIf",Ge.data.headerText),r.R7$(),r.Y8G("fxLayoutAlign",Ge.data.headerText?"start start":"start center"),r.R7$(),r.Y8G("ngIf",Ge.data.showSpinner),r.R7$(2),r.Y8G("ngIf",Ge.data.bodyText),r.R7$(),r.Y8G("ngIf",Ge.data.errorCodeText),r.R7$(),r.Y8G("fxFlex",Ge.tvMode?"":"initial")("fxFlexAlign",Ge.tvMode?"start":"end"),r.R7$(),r.Y8G("fxLayout",Ge.tvMode?"column":"row")("fxLayoutAlign",Ge.tvMode?"":"end center")("fxLayoutGap",Ge.tvMode?"16px":"8px"),r.R7$(),r.Y8G("ngIf",Ge.tvMode)("ngIfElse",ge)}},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)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-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-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:14px;line-height:20px;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-size:28px;line-height:40px}.image-container[_ngcontent-%COMP%]{margin:16px}"]}),be})()},84300:(je,z,c)=>{"use strict";c.d(z,{_:()=>dt});var r=c(58527),n=c(80583),v=c(36877),h=c(31315),f=c(4208),A=c(62931),M=c(65706),T=c(94329),E=c(95212),y=c(40482),S=c(3816),l=c(61142),s=c(28139),u=c(51394),m=c(47973),I=c(37278),R=c(2218),O=c(16924),Y=c(14605),j=c(69996),fe=c(33420),te=c(6364),ce=c(53461),H=c(26875);class Z{constructor(Re,Ue,ee){this._scrolledIndexChange=new n.B7,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,ce.F)()),this._viewport=null,this._itemOffsets=Re,this._minBufferPx=Ue,this._maxBufferPx=ee}attach(Re){this._viewport=Re,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(Re,Ue,ee){if(ee<Ue)throw Error("CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx");this._itemOffsets=Re,this._minBufferPx=Ue,this._maxBufferPx=ee,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(Re,Ue){this._viewport&&this._itemOffsets&&this._itemOffsets.length>=Re&&Re>=0&&this._viewport.scrollToOffset(this._itemOffsets[Re],Ue)}_updateTotalContentSize(){!this._viewport||!this._itemOffsets||0===this._itemOffsets.length||this._viewport.setTotalContentSize(this._itemOffsets[this._itemOffsets.length-1])}getIndexFromPosition(Re){return Math.max(0,(0,H.sortedIndex)(this._itemOffsets,Re)-1)}_updateRenderedRange(){if(!this._viewport||!this._itemOffsets||0===this._itemOffsets.length)return;const Re=this._viewport.measureScrollOffset(),Ue=this.getIndexFromPosition(Re),ee=this._viewport.getRenderedRange(),W={start:ee.start,end:ee.end},Pe=this._viewport.getViewportSize(),le=this._viewport.getDataLength();W.start>this._itemOffsets.length&&(W.start=0,W.end=this._itemOffsets.length-1);const oe=Re-this._itemOffsets[W.start];if(oe<this._minBufferPx&&0!==W.start){const Le=this.getIndexFromPosition(this._maxBufferPx-oe);W.start=Math.max(0,W.start-Le),W.end=Math.min(le,Math.ceil(this.getIndexFromPosition(Re+Pe+this._minBufferPx)))}else{const Le=this._itemOffsets[W.end]-(Re+Pe);if(Le<this._minBufferPx&&W.end!==le){const Oe=this.getIndexFromPosition(this._maxBufferPx-Le);Oe>0&&(W.end=Math.min(le,W.end+Oe),W.start=Math.max(0,Math.floor(this.getIndexFromPosition(this._itemOffsets[Ue]-this._minBufferPx))))}}this._viewport.setRenderedRange(W),this._viewport.setRenderedContentOffset(this._itemOffsets[W.start]),this._scrolledIndexChange.next(Math.floor(Ue))}}function X(xe){return xe._scrollStrategy}let ue=(()=>{var xe;class Re{constructor(){this._itemOffsets=[0],this._minBufferPx=200,this._maxBufferPx=300,this._scrollStrategy=new Z(this.itemOffsets,this.minBufferPx,this.maxBufferPx)}get itemOffsets(){return this._itemOffsets}set itemOffsets(ee){this._itemOffsets=ee}get minBufferPx(){return this._minBufferPx}set minBufferPx(ee){this._minBufferPx=(0,te.OE)(ee)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(ee){this._maxBufferPx=(0,te.OE)(ee)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemOffsets,this.minBufferPx,this.maxBufferPx)}}return(xe=Re).\u0275fac=function(ee){return new(ee||xe)},xe.\u0275dir=r.FsC({type:xe,selectors:[["cdk-virtual-scroll-viewport","itemOffsets",""]],inputs:{itemOffsets:"itemOffsets",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[r.Jv_([{provide:I.Mr,useFactory:X,deps:[(0,r.Rfq)(()=>xe)]}]),r.OA$]}),Re})();const Me=["container"],be=["carousel"],Q=(xe,Re)=>({$implicit:xe,index:Re}),ne=xe=>({hidden:xe});function Ge(xe,Re){}function ge(xe,Re){if(1&xe){const Ue=r.RV6();r.j41(0,"div",9,3),r.bIt("focusin",function(){const W=r.eBV(Ue).index,Pe=r.XpG();return r.Njj(Pe.onTileFocused(W))})("focusout",function(){r.eBV(Ue);const W=r.XpG();return r.Njj(W.onTileFocusOut())}),r.DNE(2,Ge,0,0,"ng-template",10),r.k0s()}if(2&xe){const Ue=Re.$implicit,ee=Re.index,W=Re.first,Pe=Re.last,le=r.XpG();r.xc7("height",le.itemHeight,"px"),r.AVh("first",W)("last",Pe),r.R7$(2),r.Y8G("ngTemplateOutlet",le.template)("ngTemplateOutletContext",r.l_i(8,Q,Ue,ee))}}function Xe(xe,Re){if(1&xe){const Ue=r.RV6();r.qex(0),r.j41(1,"button",11),r.bIt("click",function(W){r.eBV(Ue);const Pe=r.XpG();return r.Njj(Pe.moveLeft(W))}),r.nrm(2,"img",12),r.k0s(),r.j41(3,"button",13),r.bIt("click",function(W){r.eBV(Ue);const Pe=r.XpG();return r.Njj(Pe.moveRight(W))}),r.nrm(4,"img",12),r.k0s(),r.bVm()}if(2&xe){const Ue=r.XpG();r.R7$(),r.Y8G("ngClass",r.eq3(4,ne,!Ue.showLeftCarouselButton)),r.R7$(),r.Y8G("src","assets/img/lt_arrow.svg",r.B4B),r.R7$(),r.Y8G("ngClass",r.eq3(6,ne,!Ue.showRightCarouselButton)),r.R7$(),r.Y8G("src","assets/img/rt_arrow.svg",r.B4B)}}let dt=(()=>{var xe;class Re{get items(){return this._items}set items(ee){let W=!1;if(this._itemsOriginal&&this._itemsOriginal?.length===ee.length)for(let Pe=0;Pe<this._items.length;Pe++)this._items[Pe].id!==ee[Pe].id&&(W=!0);else W=!0;W&&(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,W,Pe,le,oe){this.ngZone=Pe,this.spatialNavigationService=le,this.changeDetector=oe,this.animationDuration=1e3,this.easingFunction=T(.35,.37,.2,1),this.showLeftCarouselButton=!1,this.showRightCarouselButton=!1,this.carouselButtonsVisibility=!1,this.carouselDirection="ltr",this.itemOffsets=[],this.extraMargin=32,this.itemWidth=270,this.itemHeight=150,this.spatialNavigationSpacingLeft=0,this.spatialNavigationSpacingRight=0,this.initialized=!1,this.navNoTarget=Le=>{const Oe=Le.detail.dir;("left"===Oe||"right"===Oe)&&Le.preventDefault()},this.logger=ee.getLogger("Hig/CarouselComponent"),this.carouselDirection=W.isRTLLayoutEnabled?"rtl":"ltr",this.destroy$=new n.B7,this.enableButtons=!this.mobileMode}ngOnInit(){const ee=this.mobileMode?window.visualViewport:window;ee?(0,v.R)(ee,"resize").pipe((0,f.Q)(this.destroy$)).subscribe(W=>{this.resizeCarousel()}):(0,v.R)(window,"orientationchange").pipe((0,f.Q)(this.destroy$)).subscribe(W=>{this.checkOrientation(window.matchMedia("(orientation: landscape)").matches)})}onTileFocused(ee){const Pe=ee-this.firstPositiveWidthTileIndex==0;this.isFirstTileFocused!==Pe&&(this.isFirstTileFocused=Pe,this.changeDetector.detectChanges()),this.currentFocusedIndex=ee}onTileFocusOut(){this.currentFocusedIndex=-1}ngAfterViewInit(){setTimeout(()=>{this.initCarousel()}),this.ngZone.runOutsideAngular(()=>{this.carousel.nativeElement.addEventListener("navnotarget",this.navNoTarget),(0,v.R)(this.carousel.nativeElement,"scroll").pipe((0,A.B)(100),(0,f.Q)(this.destroy$)).subscribe(ee=>{this.ngZone.run(()=>{this.onScroll(ee)})})})}get hasFocusedItem(){return this.currentFocusedIndex>=0}checkOrientation(ee,W=0){const Pe=ee?document.documentElement.clientWidth!==window.innerWidth:document.documentElement.clientHeight!==window.innerHeight;W<3&&Pe?setTimeout(()=>{this.checkOrientation(ee,++W)},100):this.resizeCarousel()}parseMargin(ee,W=ee,Pe=ee,le=W){return{top:ee,right:W,bottom:Pe,left:le}}initCarousel(){const ee=getComputedStyle(this.sizingElement.nativeElement);let W=(0,y.c2)(ee.getPropertyValue(this.itemProperty.widthCSSVar)),Pe=(0,y.c2)(ee.getPropertyValue(this.itemProperty.heightCSSVar));if(W<0||Pe<0)return void this.logger.warn("Cannot show tile as width or height is less than zero",W,Pe);const le=(0,y.c2)(ee.getPropertyValue(this.itemProperty.maxWidthCSSVar)),oe=(0,y.c2)(ee.getPropertyValue(this.itemProperty.maxHeightCSSVar));W=Math.min(W,+le),Pe=Math.min(Pe,+oe);const Le=ee.getPropertyValue(this.itemProperty.marginCSSVar).trim().replace(/\s+/g," ").split(" "),[Oe,...ye]=Le,Ie=this.parseMargin(Oe,...ye);this.extraMargin=parseInt(ee.getPropertyValue(this.containerLeftMarginStr),10);const at=parseInt(Ie.left,10),K=parseInt(Ie.right,10);this.spatialNavigationSpacingLeft=this.extraMargin+at,this.spatialNavigationSpacingRight=this.extraMargin+K,Pe+=parseInt(Ie.top,10)+parseInt(Ie.bottom,10),W+=at+K;const ve=this.carousel.nativeElement.getBoundingClientRect().width;this.itemWidth=W,this.itemHeight=Pe,this.itemOffsets=[0];let De=0;this.firstPositiveWidthTileIndex=-1,this.items.forEach((Qe,zt)=>{let Vt=Qe.visibility?this.itemWidth:0;Qe.visibility&&-1===this.firstPositiveWidthTileIndex&&(this.firstPositiveWidthTileIndex=zt),(0===zt||zt===this.items.length-1)&&(Vt+=this.extraMargin),De+=Vt,this.itemOffsets.push(De)}),this.itemOffsets=this.itemOffsets.slice(),this.scrollLimit=this.itemOffsets[this.itemOffsets.length-1]-ve,this.scrollLimit<this.extraMargin&&(this.scrollLimit=0);const pe=this.itemWidth>0?Math.floor(ve/this.itemWidth):0;this.scrollAmountWithButton=pe*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 W=this.container.getElementRef().nativeElement.scrollLeft+ee;this.animateScrollLeft(W)}moveLeftValue(ee){const W=this.container.getElementRef().nativeElement.scrollLeft-ee;this.animateScrollLeft(W)}moveRight(ee){this.moveRightValue(this.scrollAmountWithButton)}moveLeft(ee){this.moveLeftValue(this.scrollAmountWithButton)}cancelScrollAnimationIfNeeded(){this.animationSubscription?.unsubscribe(),this.animationSubscription=null}animateScrollLeft(ee){this.cancelScrollAnimationIfNeeded();const W=new E.ti(this.container.getElementRef().nativeElement,ee,0,{duration:this.animationDuration,easingFunction:this.easingFunction,rtlEnabled:"ltr"!==this.carouselDirection});W.onScrollEnd().pipe((0,M.s)(1),(0,f.Q)(this.destroy$)).subscribe(()=>{this.updateButtonVisibility()}),this.animationSubscription=W.start().pipe((0,f.Q)(this.destroy$)).subscribe()}resizeCarousel(){setTimeout(()=>{this.initCarousel(),this.hasFocusedItem?this.scrollFocusedItemIntoViewport():this.scrollLeft=0})}scrollFocusedItemIntoViewport(){return(0,h.zV)([this.spatialNavigationService.isFullyInViewport(document.activeElement),this.spatialNavigationService.isFullyInViewport(this.carousel.nativeElement)]).pipe((0,M.s)(1),(0,f.Q)(this.destroy$)).subscribe(([ee,W])=>{ee&&W||(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 W="ltr"===this.carouselDirection?Math.floor(this.scrollLimit-this.scrollLeft)>0:Math.floor(this.scrollLeft)>0;W!==this.showRightCarouselButton&&(this.showRightCarouselButton=W),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,W){return W.id}}return(xe=Re).\u0275fac=function(ee){return new(ee||xe)(r.rXU(S.J6),r.rXU(S.iH),r.rXU(r.SKi),r.rXU(E.ED),r.rXU(r.gRc))},xe.\u0275cmp=r.VBU({type:xe,selectors:[["nv-hig-carousel"]],viewQuery:function(ee,W){if(1&ee&&(r.GBs(Me,5,r.aKT),r.GBs(be,5,r.aKT),r.GBs(be,5),r.GBs(E.bx,5)),2&ee){let Pe;r.mGM(Pe=r.lsd())&&(W.sizingElement=Pe.first),r.mGM(Pe=r.lsd())&&(W.carousel=Pe.first),r.mGM(Pe=r.lsd())&&(W.container=Pe.first),r.mGM(Pe=r.lsd())&&(W.focusBackDirective=Pe.first)}},inputs:{items:"items",template:"template",itemProperty:"itemProperty",containerLeftMarginStr:"containerLeftMarginStr",mobileMode:"mobileMode"},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"],[1,"carousel-button-icon",3,"src"],["mat-button","",1,"carousel-button","carousel-button-next",3,"click","ngClass"]],template:function(ee,W){if(1&ee){const Pe=r.RV6();r.j41(0,"div",4,0),r.bIt("mouseenter",function(){return r.eBV(Pe),r.Njj(W.onMouseEnter())})("mouseleave",function(){return r.eBV(Pe),r.Njj(W.onMouseLeave())}),r.j41(2,"div",5,1)(4,"cdk-virtual-scroll-viewport",6,2),r.DNE(6,ge,3,11,"div",7),r.k0s()(),r.DNE(7,Xe,5,8,"ng-container",8),r.k0s()}2&ee&&(r.AVh("mobile-view",W.mobileMode),r.FS9("dir",W.carouselDirection),r.R7$(4),r.xc7("height",W.itemHeight,"px"),r.Y8G("itemOffsets",W.itemOffsets)("minBufferPx",W.itemWidth)("maxBufferPx",2.1*W.itemWidth)("enableKeyThrottle",!0)("enableSmoothScrolling",!1)("spacingLeft",W.spatialNavigationSpacingLeft)("spacingRight",W.spatialNavigationSpacingRight)("enableFocusBack",!W.isFirstTileFocused)("containFocus",!0)("isRTL","rtl"===W.carouselDirection),r.R7$(2),r.Y8G("cdkVirtualForOf",W.items)("cdkVirtualForTrackBy",W.tileIdentity),r.R7$(),r.Y8G("ngIf",W.enableButtons&&W.carouselButtonsVisibility))},dependencies:[l.YU,l.bT,l.T3,s.PW,u.ig,m.iV,I.E$,I.d6,R.$,O.o,Y.b,j.u,fe.n,ue],styles:[".carousel-container{position:relative;overflow:hidden;width:100%}.carousel-wrapper{position:relative;width:100%;max-width:100%;overflow: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}: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}),Re})()},49752:(je,z,c)=>{"use strict";c.d(z,{u:()=>ot});var r=c(58527),n=c(26537),v=c(72818),h=c(25369),f=c(16490);const A=(dt,xe)=>[dt,xe],M=dt=>({visible:dt}),T=dt=>({"pointer-events":dt}),E=dt=>({visibility:dt});function y(dt,xe){if(1&dt&&(r.j41(0,"i",22),r.EFF(1),r.k0s()),2&dt){const Re=r.XpG();r.R7$(),r.JRh(Re.data.icon)}}function S(dt,xe){if(1&dt&&r.nrm(0,"img",23),2&dt){const Re=r.XpG();r.Y8G("src",Re.data.image.url,r.B4B)}}function l(dt,xe){if(1&dt&&(r.nrm(0,"div",24),r.nI1(1,"translate")),2&dt){const Re=r.XpG();r.Y8G("innerHTML",r.i5U(1,1,Re.data.headerText.text,Re.data.translateValues),r.npT)}}function s(dt,xe){1&dt&&(r.j41(0,"div",25),r.nrm(1,"mat-progress-spinner",26),r.k0s())}function u(dt,xe){if(1&dt&&(r.nrm(0,"div",27),r.nI1(1,"translate")),2&dt){const Re=r.XpG();r.Y8G("innerHTML",Re.data.bodyText.translated?Re.data.bodyText.text:r.i5U(1,1,Re.data.bodyText.text,Re.data.bodyText.placeholders),r.npT)}}function m(dt,xe){if(1&dt){const Re=r.RV6();r.j41(0,"a",31),r.bIt("click",function(){r.eBV(Re);const ee=r.XpG(2);return r.Njj(ee.onLinkClick())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}if(2&dt){const Re=r.XpG(2);r.Y8G("href",Re.data.link.url,r.B4B)("shortUrl",null==Re.data.link?null:Re.data.link.shortUrl),r.R7$(),r.JRh(r.i5U(2,3,Re.data.link.text,Re.data.link.placeholders))}}function I(dt,xe){if(1&dt){const Re=r.RV6();r.j41(0,"span",32),r.nI1(1,"translate"),r.bIt("click",function(){r.eBV(Re);const ee=r.XpG(2);return r.Njj(ee.onLinkClick())}),r.k0s()}if(2&dt){const Re=r.XpG(2);r.Y8G("innerHTML",r.i5U(1,1,Re.data.link.text,Re.data.link.placeholders),r.npT)}}function R(dt,xe){if(1&dt&&(r.j41(0,"div",28),r.DNE(1,m,3,6,"a",29)(2,I,2,4,"span",30),r.k0s()),2&dt){const Re=r.XpG();r.R7$(),r.Y8G("ngIf",!(null!=Re.data.link&&Re.data.link.isTextWithHyperlinkTag)),r.R7$(),r.Y8G("ngIf",null==Re.data.link?null:Re.data.link.isTextWithHyperlinkTag)}}function O(dt,xe){if(1&dt){const Re=r.RV6();r.j41(0,"a",31),r.bIt("click",function(){r.eBV(Re);const ee=r.XpG(2);return r.Njj(ee.onLinkClick())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}if(2&dt){const Re=r.XpG(2);r.Y8G("href",Re.data.link.url,r.B4B)("shortUrl",Re.data.link.shortUrl),r.R7$(),r.JRh(r.bMT(2,3,Re.data.link.text))}}function Y(dt,xe){if(1&dt&&(r.j41(0,"a",35),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&dt){const Re=r.XpG(2);r.Y8G("routerLink",Re.data.link.routerLink.commands)("skipLocationChange",Re.data.link.routerLink.skipLocationChange),r.R7$(),r.SpI(" ",r.bMT(2,3,Re.data.link.text)," ")}}function j(dt,xe){if(1&dt){const Re=r.RV6();r.j41(0,"a",36),r.bIt("click",function(){r.eBV(Re);const ee=r.XpG(2);return r.Njj(ee.data.link.linkClickedCallback())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}if(2&dt){const Re=r.XpG(2);r.R7$(),r.SpI(" ",r.bMT(2,1,Re.data.link.text)," ")}}function fe(dt,xe){if(1&dt&&(r.j41(0,"div",28),r.DNE(1,O,3,5,"a",29)(2,Y,3,5,"a",33)(3,j,3,3,"a",34),r.k0s()),2&dt){const Re=r.XpG();r.R7$(),r.Y8G("ngIf",Re.data.link.url&&!Re.data.link.routerLink&&!Re.data.link.linkClickedCallback),r.R7$(),r.Y8G("ngIf",Re.data.link.routerLink&&!Re.data.link.linkClickedCallback),r.R7$(),r.Y8G("ngIf",Re.data.link.linkClickedCallback)}}function te(dt,xe){if(1&dt&&(r.j41(0,"div",37),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&dt){const Re=r.XpG();r.R7$(),r.SpI(" ",r.i5U(2,1,Re.data.errorCodeText.text,Re.data.errorCodeText.placeholders)," ")}}function ce(dt,xe){if(1&dt&&r.nrm(0,"img",44),2&dt){const Re=r.XpG().$implicit;r.Y8G("src",Re.imageUrl,r.B4B)}}function H(dt,xe){if(1&dt&&(r.j41(0,"mat-radio-button",40)(1,"div",41),r.DNE(2,ce,1,1,"img",42),r.j41(3,"div",43),r.EFF(4),r.k0s()()()),2&dt){const Re=xe.$implicit;r.Y8G("value",Re.value),r.R7$(2),r.Y8G("ngIf",Re.imageUrl),r.R7$(2),r.JRh(Re.value)}}function Z(dt,xe){if(1&dt){const Re=r.RV6();r.j41(0,"mat-radio-group",38),r.mxI("ngModelChange",function(ee){r.eBV(Re);const W=r.XpG();return r.DH7(W.data.radioOptionSelected,ee)||(W.data.radioOptionSelected=ee),r.Njj(ee)}),r.bIt("change",function(){r.eBV(Re);const ee=r.XpG();return r.Njj(ee.onRadioOptionChange())}),r.DNE(1,H,5,3,"mat-radio-button",39),r.k0s()}if(2&dt){const Re=r.XpG();r.R50("ngModel",Re.data.radioOptionSelected),r.R7$(),r.Y8G("ngForOf",Re.data.radioButtonOptions)}}function X(dt,xe){if(1&dt&&r.nrm(0,"mat-icon",50),2&dt){const Re=r.XpG().$implicit;r.Y8G("svgIcon",Re.matIcon)}}function ue(dt,xe){if(1&dt&&(r.j41(0,"div",47),r.DNE(1,X,1,1,"mat-icon",48),r.j41(2,"div",49),r.EFF(3),r.k0s()()),2&dt){const Re=xe.$implicit;r.R7$(),r.Y8G("ngIf",Re.matIcon),r.R7$(2),r.JRh(Re.text)}}function Me(dt,xe){if(1&dt&&(r.j41(0,"div",45),r.DNE(1,ue,4,2,"div",46),r.k0s()),2&dt){const Re=r.XpG();r.R7$(),r.Y8G("ngForOf",Re.data.descriptionList)}}function be(dt,xe){if(1&dt){const Re=r.RV6();r.j41(0,"div",51)(1,"div",52)(2,"a",53),r.bIt("click",function(){return r.eBV(Re),r.Njj(!1)})("dragstart",function(){r.eBV(Re);const ee=r.XpG();return r.Njj(ee.onImageDragStart())}),r.EFF(3),r.nI1(4,"translate"),r.nrm(5,"img",54),r.k0s(),r.nrm(6,"p",55),r.nI1(7,"translate"),r.k0s(),r.nrm(8,"p",56),r.nI1(9,"translate"),r.k0s()}if(2&dt){const Re=r.XpG();r.R7$(2),r.Y8G("href",Re.data.image.shortcutUrl,r.B4B),r.R7$(),r.JRh(r.i5U(4,6,Re.data.image.caption,Re.data.image.captionPlaceholder)),r.R7$(2),r.Y8G("src",Re.data.image.url,r.B4B)("alt",Re.data.image.captionPlaceholder),r.R7$(),r.Y8G("innerHTML",r.i5U(7,9,Re.data.image.caption,Re.data.image.captionPlaceholder),r.npT),r.R7$(2),r.Y8G("innerHTML",r.bMT(9,12,Re.data.image.description),r.npT)}}function Q(dt,xe){if(1&dt){const Re=r.RV6();r.j41(0,"mat-checkbox",57),r.mxI("ngModelChange",function(ee){r.eBV(Re);const W=r.XpG();return r.DH7(W.data.checkboxState,ee)||(W.data.checkboxState=ee),r.Njj(ee)}),r.j41(1,"span"),r.EFF(2),r.nI1(3,"translate"),r.k0s()()}if(2&dt){const Re=r.XpG();r.R50("ngModel",Re.data.checkboxState),r.R7$(2),r.JRh(r.bMT(3,2,Re.data.checkbox.text))}}function ne(dt,xe){if(1&dt){const Re=r.RV6();r.j41(0,"button",58),r.bIt("click",function(ee){r.eBV(Re);const W=r.XpG();return r.Njj(W.onSecondaryButtonClick(ee))}),r.EFF(1),r.nI1(2,"translate"),r.eu8(3,59),r.k0s()}if(2&dt){const Re=r.XpG(),Ue=r.sdS(24);r.Y8G("disabled",Re.data.secondaryButton.isDisabled),r.R7$(),r.SpI(" ",r.bMT(2,4,Re.data.secondaryButton.text)," "),r.R7$(2),r.Y8G("ngTemplateOutlet",Ue)("ngTemplateOutletContext",r.eq3(6,M,Re.data.secondaryButton.spinnerOverlay))}}function Ge(dt,xe){if(1&dt){const Re=r.RV6();r.j41(0,"button",60),r.bIt("click",function(ee){r.eBV(Re);const W=r.XpG();return r.Njj(W.onPrimaryButtonClick(ee))}),r.j41(1,"div",61),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.eu8(4,59),r.k0s()}if(2&dt){const Re=r.XpG(),Ue=r.sdS(24);r.Y8G("ngClass",Re.data.primaryButton.accentColor?"font-button2 mat-flat-button mat-accent":"font-button2")("nvFocusRipple",!!Re.data.primaryButton.accentColor)("disabled",Re.data.primaryButton.isDisabled)("nvAutoFocus",Re.autoFocusOnPrimaryButton)("ngStyle",r.eq3(11,T,Re.data.primaryButton.spinnerOverlay?"none":"all")),r.R7$(),r.Y8G("ngStyle",r.eq3(13,E,Re.data.primaryButton.removeButtonTextOnClick?"hidden":"visible")),r.R7$(),r.SpI(" ",r.bMT(3,9,Re.data.primaryButton.text)," "),r.R7$(2),r.Y8G("ngTemplateOutlet",Ue)("ngTemplateOutletContext",r.eq3(15,M,Re.data.primaryButton.spinnerOverlay))}}function ge(dt,xe){if(1&dt&&(r.j41(0,"div",63),r.nrm(1,"mat-progress-spinner",64),r.k0s()),2&dt){const Re=r.XpG(2);r.R7$(),r.Y8G("ngClass",Re.data.spinnerClass?Re.data.spinnerClass:"mat-accent")("diameter",16)}}function Xe(dt,xe){1&dt&&r.DNE(0,ge,2,2,"div",62),2&dt&&r.Y8G("ngIf",xe.visible)}let ot=(()=>{var dt;class xe extends h.D{get hasIcon(){return!!this.data.icon||!!this.data.image}get autoFocusOnPrimaryButton(){return this.data.autoFocusOnPrimaryButton??!0}static open(Ue,ee){return(0,v.SN)(ee,{addOverlayPanelCls:!0}),Ue.open(xe,ee)}constructor(Ue,ee,W,Pe){super(ee,W,Ue,Pe),this.primaryButtonClick=new r.bkB,this.secondaryButtonClick=new r.bkB,this.radioButtonClick=new r.bkB,this.linkClick=new r.bkB,this.data={},this.data=Ue.get(n.Vh,null)||{showSpinner:!1}}ngOnInit(){this.data.checkboxState=this.data.checkbox?.initialState??!1}onPrimaryButtonClick(Ue){this.primaryButtonClick.emit(Ue)}onSecondaryButtonClick(Ue){this.secondaryButtonClick.emit(Ue)}onLinkClick(){this.linkClick.emit()}onRadioOptionChange(){this.radioButtonClick.emit()}onImageDragStart(){this.data.image?.dragStartCallback()}}return(dt=xe).\u0275fac=function(Ue){return new(Ue||dt)(r.rXU(r.zZn),r.rXU(n.CP,8),r.rXU(f.eN,8),r.rXU(r.SKi))},dt.\u0275cmp=r.VBU({type:dt,selectors:[["nv-hig-dialog"]],inputs:{data:"data"},outputs:{primaryButtonClick:"primaryButtonClick",secondaryButtonClick:"secondaryButtonClick",radioButtonClick:"radioButtonClick",linkClick:"linkClick"},features:[r.Vt3],decls:25,vars:28,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"],["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",3,"click",4,"ngIf"],[1,"font-body2-link",3,"routerLink","skipLocationChange"],[1,"font-body2-link",3,"click"],[1,"font-body2","hig-dialog-error-text"],["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"],["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(Ue,ee){1&Ue&&(r.j41(0,"div",1)(1,"div",2),r.DNE(2,y,2,1,"i",3)(3,S,1,1,"img",4),r.j41(4,"div",5)(5,"div",6),r.DNE(6,l,2,4,"div",7),r.j41(7,"div",8),r.DNE(8,s,2,0,"div",9),r.j41(9,"div",10),r.DNE(10,u,2,4,"div",11),r.k0s()(),r.DNE(11,R,3,2,"div",12)(12,fe,4,3,"div",12)(13,te,3,4,"div",13)(14,Z,2,2,"mat-radio-group",14)(15,Me,2,1,"div",15)(16,be,10,14,"div",16),r.k0s(),r.j41(17,"div",17)(18,"div"),r.DNE(19,Q,4,4,"mat-checkbox",18),r.k0s(),r.j41(20,"div",19),r.DNE(21,ne,4,8,"button",20)(22,Ge,5,17,"button",21),r.k0s(),r.DNE(23,Xe,1,1,"ng-template",null,0,r.C5r),r.k0s()()()()),2&Ue&&(r.Y8G("ngClass",ee.data.isTransparent?"hig-dialog-transparent":"hig-dialog")("forceEnable",ee.data.trapFocus),r.R7$(),r.AVh("no-header-text",!ee.data.headerText)("no-body-text",!ee.data.bodyText)("no-spinner",!ee.data.showSpinner)("has-icon",ee.hasIcon),r.R7$(),r.Y8G("ngIf",ee.data.icon),r.R7$(),r.Y8G("ngIf",ee.data.image&&!ee.data.image.isDraggableUrl),r.R7$(3),r.Y8G("ngIf",ee.data.headerText),r.R7$(),r.Y8G("ngClass",r.l_i(25,A,ee.data.bodyText?"hig-dialog-spinner-content-start":"hig-dialog-spinner-content-center",ee.data.showSpinner?"hig-dialog-spinner-group":"")),r.R7$(),r.Y8G("ngIf",ee.data.showSpinner),r.R7$(2),r.Y8G("ngIf",ee.data.bodyText),r.R7$(),r.Y8G("ngIf",null==ee.data.link?null:ee.data.link.placeholders),r.R7$(),r.Y8G("ngIf",ee.data.link&&!ee.data.link.placeholders),r.R7$(),r.Y8G("ngIf",ee.data.errorCodeText),r.R7$(),r.Y8G("ngIf",ee.data.radioButtonOptions),r.R7$(),r.Y8G("ngIf",ee.data.descriptionList),r.R7$(),r.Y8G("ngIf",null==ee.data.image?null:ee.data.image.isDraggableUrl),r.R7$(3),r.Y8G("ngIf",ee.data.checkbox),r.R7$(2),r.Y8G("ngIf",ee.data.secondaryButton),r.R7$(),r.Y8G("ngIf",ee.data.primaryButton))},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((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.hig-dialog[_ngcontent-%COMP%]{background-color:#393939;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: 599.98px) and (orientation: portrait),screen and (max-width: 568px) and (max-height: 320px) and (orientation: landscape){.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}"]}),xe})()},12132:(je,z,c)=>{"use strict";c.d(z,{w:()=>Vn});var r=c(58527),n=c(76706),v=c(26875),h=c(80583),f=c(36877),A=c(892),M=c(4208),T=c(8619),E=c(62931),y=c(97363),S=c(73318),l=c(40482),s=c(3816),u=c(94222),m=c(21684),I=c(61142),R=c(3457),O=c(28139),Y=c(51394),j=c(47973),fe=c(31308),H=function(ht){return ht.Indeterminate="indeterminate",ht.Determininate="determinate",ht}(H||{}),Z=c(99204);let X=(()=>{var ht;class it{constructor(Et){this.viewRef=Et,this.isTv=!1,this.mode=H.Indeterminate,this.value=0,this.diameter=this.isTv?32:16}}return(ht=it).\u0275fac=function(Et){return new(Et||ht)(r.rXU(r.c1b))},ht.\u0275cmp=r.VBU({type:ht,selectors:[["nv-hig-progress-circular"]],inputs:{isTv:"isTv",mode:"mode",value:"value",diameter:"diameter"},decls:2,vars:3,consts:[["fxLayoutAlign","center center",1,"common-overlay"],[1,"mat-accent",3,"mode","diameter","value"]],template:function(Et,We){1&Et&&(r.j41(0,"div",0),r.nrm(1,"mat-progress-spinner",1),r.k0s()),2&Et&&(r.R7$(),r.Y8G("mode",We.mode)("diameter",We.diameter)("value",We.value))},dependencies:[R.sA,Z.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)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-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}"]}),it})();var ue=c(2218),Me=c(60990),be=c(40514);let Q=(()=>{var ht;class it{constructor(Et,We,bt){this.viewcontainerRef=Et,this.renderer=We,this.diameter=16,this.spinnerComponentNativeElement=null,this.logger=bt.getLogger("nvProgressCircularDirective")}ngOnChanges(Et){Et&&Et.isVisible&&Et.isVisible.currentValue!==Et.isVisible.previousValue&&(Et.isVisible.currentValue?this.createSpinner():this.destroySpinner())}ngOnDestroy(){this.destroySpinner()}createSpinner(){this.spinnerComponentRef=this.viewcontainerRef.createComponent(X),this.spinnerComponentNativeElement=this.spinnerComponentRef.injector.get(X).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}}return(ht=it).\u0275fac=function(Et){return new(Et||ht)(r.rXU(r.c1b),r.rXU(r.sFG),r.rXU(s.J6))},ht.\u0275dir=r.FsC({type:ht,selectors:[["","nvProgressCircular",""]],inputs:{isVisible:"isVisible",diameter:"diameter"},features:[r.OA$]}),it})();var ne=c(97888),Ge=c(54504),ge=c(65240);const Xe=["marqueeContainer"],ot=["paginator"],dt=["marqueeTileContainerList"],xe=["paginatorList"],Re=(ht,it,Ct,Et,We,bt,gt,wt,rn,In)=>({"mobile-view":ht,"tv-mode":it,"phone-marquee":Ct,"paginator-navigation":Et,"scrim-has-alpha":We,"full-bleed-item":bt,"full-bleed-item-not-first-position":gt,"no-bg-overhang":wt,"custom-bg":rn,"fallback-image-item":In}),Ue=(ht,it,Ct)=>({fadeInMarquee:ht,"padded-image-container":it,"full-bleed-image-container":Ct}),ee=ht=>({"no-mask":ht}),W=ht=>({fadeInMarqueeDescription:ht}),Pe=(ht,it)=>({"marquee-tile-background-gradient":ht,"marquee-tile-background-fallback-gradient":it}),le=ht=>({"marquee-tile-data":ht}),oe=ht=>({"no-bg-overhang":ht});function Le(ht,it){if(1&ht){const Ct=r.RV6();r.j41(0,"img",20),r.bIt("load",function(){r.eBV(Ct);const We=r.XpG(3);return r.Njj(We.marqueeImageLoadComplete())})("error",function(){r.eBV(Ct);const We=r.XpG(3);return r.Njj(We.fallbackToPlaceholderImage())}),r.k0s()}if(2&ht){const Ct=r.XpG(3);r.Y8G("src",Ct.marqueeImageUrl,r.B4B)("ngClass",r.eq3(2,ee,Ct.imageMaskDisabled))}}function Oe(ht,it){if(1&ht&&(r.j41(0,"div",18),r.DNE(1,Le,1,4,"img",19),r.k0s()),2&ht){const Ct=it.$implicit,Et=r.XpG(2);r.Y8G("ngClass",r.sMw(2,Ue,Ct.isVisible&&Et.enableAnimation,Ct.imageType===Et.tileOption.PaddedImage&&!Et.tileIsShowingFallbackImage,Ct.imageType===Et.tileOption.FullBleedImage||Et.tileIsShowingFallbackImage)),r.R7$(),r.Y8G("ngIf",Ct.isVisible)}}function ye(ht,it){if(1&ht&&(r.j41(0,"div",22),r.nrm(1,"div",23),r.j41(2,"div",24),r.EFF(3),r.k0s()()),2&ht){const Ct=r.XpG().$implicit;r.R7$(3),r.JRh(Ct.app.promoTag)}}function Ie(ht,it){if(1&ht&&(r.j41(0,"div"),r.DNE(1,ye,4,1,"div",21),r.k0s()),2&ht){const Ct=it.$implicit;r.R7$(),r.Y8G("ngIf",Ct.isVisible&&Ct.app.promoTag)}}function at(ht,it){if(1&ht&&r.nrm(0,"div",18),2&ht){const Ct=r.XpG(5);r.Y8G("ngClass",r.l_i(1,Pe,Ct.hasMarqueeScrim,!Ct.hasMarqueeScrim))}}function K(ht,it){1&ht&&r.nrm(0,"div",33)}function ve(ht,it){1&ht&&r.nrm(0,"div",34)}function De(ht,it){1&ht&&r.nrm(0,"div",35)}function pe(ht,it){if(1&ht&&(r.j41(0,"div",28),r.DNE(1,at,1,4,"div",29)(2,K,1,0,"div",30)(3,ve,1,0,"div",31)(4,De,1,0,"div",32),r.k0s()),2&ht){const Ct=r.XpG().$implicit;r.R7$(),r.Y8G("ngIf",Ct.gradients.background&&!Ct.isShowingFallbackImage),r.R7$(),r.Y8G("ngIf",Ct.gradients.leftEdge&&!Ct.isShowingFallbackImage),r.R7$(),r.Y8G("ngIf",Ct.gradients.leftMerge&&!Ct.isShowingFallbackImage),r.R7$(),r.Y8G("ngIf",Ct.gradients.bottomEdge)}}function Qe(ht,it){if(1&ht&&(r.j41(0,"div",26),r.DNE(1,pe,5,4,"div",27),r.k0s()),2&ht){const Ct=it.$implicit,Et=r.XpG(3);r.Y8G("ngClass",r.eq3(2,W,Ct.isVisible&&Et.enableAnimation)),r.R7$(),r.Y8G("ngIf",Ct.isVisible)}}function zt(ht,it){if(1&ht&&(r.qex(0),r.DNE(1,Qe,2,4,"div",25),r.bVm()),2&ht){const Ct=r.XpG(2);r.R7$(),r.Y8G("ngForOf",Ct.marqueeData)}}function Vt(ht,it){if(1&ht&&(r.j41(0,"div",46),r.EFF(1),r.k0s()),2&ht){const Ct=r.XpG(5);r.xc7("color",Ct.fontColor),r.R7$(),r.SpI(" ",Ct.appTitle," ")}}function de(ht,it){if(1&ht){const Ct=r.RV6();r.j41(0,"img",47),r.bIt("error",function(){r.eBV(Ct);const We=r.XpG(5);return r.Njj(We.fallbackToAppLogo())}),r.k0s()}if(2&ht){const Ct=r.XpG(5);r.Y8G("src",Ct.appLogoUrl,r.B4B)}}function J(ht,it){if(1&ht&&(r.j41(0,"div",48),r.EFF(1),r.k0s()),2&ht){const Ct=r.XpG(5);r.R7$(),r.SpI(" ",Ct.appSubtitle," ")}}function $e(ht,it){if(1&ht&&(r.j41(0,"div",49),r.EFF(1),r.k0s()),2&ht){const Ct=r.XpG(3).$implicit;r.R7$(),r.SpI(" ",Ct.app.additionalSubtitle," ")}}function st(ht,it){if(1&ht){const Ct=r.RV6();r.j41(0,"div",39),r.DNE(1,Vt,2,3,"div",40)(2,de,1,1,"img",41),r.j41(3,"div",42),r.DNE(4,J,2,1,"div",43)(5,$e,2,1,"div",44),r.k0s(),r.j41(6,"button",45),r.bIt("click",function(We){r.eBV(Ct);const bt=r.XpG(2).$implicit,gt=r.XpG(2);return r.Njj(gt.onViewAppDetails(We,bt.app))}),r.EFF(7),r.nI1(8,"translate"),r.k0s()()}if(2&ht){const Ct=r.XpG(2).$implicit,Et=r.XpG(2);r.R7$(),r.Y8G("ngIf",!Et.phoneMarqueeEnabled&&Et.appTitle),r.R7$(),r.Y8G("ngIf",!Et.appTitle),r.R7$(),r.xc7("color",Et.fontColor),r.R7$(),r.Y8G("ngIf",Et.appSubtitle),r.R7$(),r.Y8G("ngIf",Ct.app.additionalSubtitle),r.R7$(2),r.SpI(" ",r.bMT(8,7,"common.viewDetails")," ")}}function Gt(ht,it){if(1&ht){const Ct=r.RV6();r.j41(0,"button",55),r.bIt("click",function(We){r.eBV(Ct);const bt=r.XpG(3).$implicit,gt=r.XpG(2);return r.Njj(gt.onActionClicked(We,bt.app.action,gt.position))}),r.EFF(1),r.k0s()}if(2&ht){const Ct=r.XpG(3).$implicit;r.R7$(),r.SpI(" ",Ct.app.action.label," ")}}function Zt(ht,it){if(1&ht&&(r.j41(0,"div",56),r.EFF(1),r.k0s()),2&ht){const Ct=r.XpG(3).$implicit;r.R7$(),r.SpI(" ",Ct.app.action.infoText," ")}}function kn(ht,it){if(1&ht&&(r.j41(0,"div",50)(1,"div",51),r.EFF(2),r.k0s(),r.nrm(3,"div",52),r.DNE(4,Gt,2,1,"button",53)(5,Zt,2,1,"div",54),r.k0s()),2&ht){const Ct=r.XpG(2).$implicit;r.R7$(),r.Y8G("isMultiLineEllipsis",!0),r.R7$(),r.SpI(" ",Ct.app.title," "),r.R7$(),r.Y8G("isMultiLineEllipsis",!0)("innerHTML",null==Ct.app?null:Ct.app.body,r.npT),r.R7$(),r.Y8G("ngIf",(null==Ct.app||null==Ct.app.action||null==Ct.app.action.label?null:Ct.app.action.label.length)>0),r.R7$(),r.Y8G("ngIf",!(null==Ct.app.action||!Ct.app.action.infoText))}}function Un(ht,it){if(1&ht&&(r.j41(0,"div",18),r.DNE(1,st,9,9,"div",37)(2,kn,6,6,"div",38),r.k0s()),2&ht){const Ct=r.XpG().$implicit,Et=r.XpG(2);r.Y8G("ngClass",r.eq3(3,le,Ct.contentOverlayType!==Et.tileOption.FullBleedImage)),r.R7$(),r.Y8G("ngIf",Ct.contentOverlayType!==Et.tileOption.FullBleedImage),r.R7$(),r.Y8G("ngIf",Ct.contentOverlayType===Et.tileOption.FullBleedImage)}}function ni(ht,it){if(1&ht&&(r.j41(0,"div",36,1),r.DNE(2,Un,3,5,"div",29),r.k0s()),2&ht){const Ct=it.$implicit,Et=r.XpG(2);r.Y8G("ngClass",r.eq3(2,W,Ct.isVisible&&Et.enableAnimation)),r.R7$(2),r.Y8G("ngIf",Ct.isVisible)}}function qe(ht,it){if(1&ht){const Ct=r.RV6();r.j41(0,"button",57,2),r.bIt("click",function(){r.eBV(Ct);const We=r.XpG(2);return r.Njj(We.prevSlide())}),r.nrm(2,"img",58),r.k0s()}2&ht&&(r.R7$(2),r.Y8G("src","assets/img/lt_arrow.svg",r.B4B))}function mi(ht,it){if(1&ht){const Ct=r.RV6();r.j41(0,"button",59,3),r.bIt("click",function(){r.eBV(Ct);const We=r.XpG(2);return r.Njj(We.nextSlide())}),r.nrm(2,"img",58),r.k0s()}2&ht&&(r.R7$(2),r.Y8G("src","assets/img/rt_arrow.svg",r.B4B))}function Bi(ht,it){if(1&ht){const Ct=r.RV6();r.j41(0,"li",62,5),r.bIt("click",function(){const We=r.eBV(Ct).$implicit,bt=r.XpG(3);return r.Njj(bt.goToSlide(We))})("focusin",function(){const We=r.eBV(Ct).$implicit,bt=r.XpG(3);return r.Njj(bt.goToSlide(We))}),r.k0s()}if(2&ht){const Ct=it.$implicit,Et=r.XpG(3);r.AVh("active",Ct===Et.position),r.BMQ("tabindex",Et.enablePaginatorNavigation?0:null)}}function _i(ht,it){if(1&ht&&(r.j41(0,"ul",60,4),r.DNE(2,Bi,2,3,"li",61),r.k0s()),2&ht){const Ct=r.XpG(2);r.BMQ("tabindex",Ct.enablePaginatorNavigation?0:null),r.R7$(2),r.Y8G("ngForOf",Ct.slideAccessor)}}function Bn(ht,it){1&ht&&r.nrm(0,"div",63)}function jn(ht,it){if(1&ht){const Ct=r.RV6();r.j41(0,"div",9,0),r.bIt("swipeleft",function(){r.eBV(Ct);const We=r.XpG();return r.Njj(We.swipeLeft())})("swiperight",function(){r.eBV(Ct);const We=r.XpG();return r.Njj(We.swipeRight())})("click",function(){r.eBV(Ct);const We=r.XpG();return r.Njj(We.cancelAutoSlide())}),r.DNE(2,Oe,2,6,"div",10)(3,Ie,2,1,"div",11)(4,zt,2,1,"ng-container",12)(5,ni,3,4,"div",13)(6,qe,3,1,"button",14)(7,mi,3,1,"button",15)(8,_i,3,2,"ul",16)(9,Bn,1,0,"div",17),r.k0s()}if(2&ht){const Ct=r.XpG();r.xc7("--scrim-color",Ct.scrimColor)("--dismiss-ratio",Ct.dismissRatio),r.Y8G("ngClass",r.zJS(14,Re,[Ct.mobileMode,Ct.tvMode,Ct.phoneMarqueeEnabled,Ct.enablePaginatorNavigation,Ct.scrimHasAlpha,Ct.isTileTypeFullBleedImage,Ct.isTileTypeFullBleedImageNotAtFirst,!1===Ct.backgroundOverhangEnabled,Ct.containerCustomBackground,Ct.tileIsShowingFallbackImage])),r.BMQ("tabindex",Ct.enablePaginatorNavigation?0:null),r.R7$(2),r.Y8G("ngForOf",Ct.marqueeData),r.R7$(),r.Y8G("ngForOf",Ct.marqueeData),r.R7$(),r.Y8G("ngIf",!Ct.phoneMarqueeEnabled),r.R7$(),r.Y8G("ngForOf",Ct.marqueeData),r.R7$(),r.Y8G("ngIf",0!==Ct.position),r.R7$(),r.Y8G("ngIf",Ct.position!==Ct.marqueeData.length-1),r.R7$(),r.Y8G("ngIf",(null==Ct.marqueeData?null:Ct.marqueeData.length)>1),r.R7$(),r.Y8G("ngIf",Ct.useMarqueeScrim)}}function It(ht,it){if(1&ht&&(r.j41(0,"div",64),r.nrm(1,"nv-hig-progress-circular"),r.k0s()),2&ht){const Ct=r.XpG();r.Y8G("ngClass",r.eq3(1,oe,!1===Ct.backgroundOverhangEnabled))}}function vn(ht,it){if(1&ht&&(r.j41(0,"div",65)(1,"span",66),r.EFF(2),r.nI1(3,"translate"),r.nrm(4,"br"),r.EFF(5),r.nI1(6,"translate"),r.k0s()()),2&ht){const Ct=r.XpG();r.Y8G("ngClass",r.eq3(7,oe,!1===Ct.backgroundOverhangEnabled)),r.R7$(2),r.SpI("",r.bMT(3,3,"common.genericLoadError")," "),r.R7$(3),r.JRh(r.bMT(6,5,"common.connectionError"))}}let Vn=(()=>{var ht;class it{set tileData(Et){this._tileData=Et,this.refreshMarquee(!0)}get tileData(){return this._tileData}set imageOverrides(Et){(0,v.isEqual)(this._imageOverrides,Et)||(this._imageOverrides=Et,this.updateImageOverrides())}get imageOverrides(){return this._imageOverrides}get elementRef(){return this._elementRef}get tileOption(){return y.t}get hasMarqueeScrim(){return this._hasMarqueeScrim}set hasMarqueeScrim(Et){this._hasMarqueeScrim=Et}get hasFocus(){return this.marqueeContainer.nativeElement.contains(this.focusManager.currentFocusedElement)}get hasFocusable(){return!!this.focusManager.getInitialFocusable(this.marqueeContainer.nativeElement)}constructor(Et,We,bt,gt,wt,rn,In,Mi,En,Tn){this.imageFormatService=bt,this.networkStatusService=gt,this.localeService=wt,this.ngZone=rn,this.breakpointObserver=In,this.spatialNavigationService=Mi,this.focusManager=En,this.changeDetector=Tn,this.useMarqueeScrim=!1,this.phoneMarqueeEnabled=!1,this.mobileMode=!1,this.tvMode=!1,this.dismissRatio=0,this.enablePaginatorNavigation=!1,this.enableAnimation=!0,this.actionClicked=new r.bkB,this.viewAppDetails=new r.bkB,this.imageLoadFailure=new r.bkB,this.marqueeScrolled=new r.bkB,this.paginatorRepositioned=new r.bkB,this.initialized=new r.bkB,this.beforeChangeSlide=new r.bkB,this.slideAccessor=[],this.position=0,this.busyLoadingMarquee=!0,this.errorVisible=!1,this.isTileTypeFullBleedImage=!1,this.isTileTypeFullBleedImageNotAtFirst=!1,this.tileIsShowingFallbackImage=!1,this.globalFallbackImage=y.X,this.globalFallbackImageType=y.t.FullBleedImage,this.formatImages=!0,this.backgroundOverhangEnabled=!0,this.imageMaskDisabled=!1,this.containerCustomBackground=!1,this.contentOverlayType=y.t.FullBleedImage,this.isHandsetPortrait=!1,this.ismarketingTileReloaded=!1,this.autoScrollInterval=5e3,this.autoScroll=!0,this._elementRef=Et,this.logger=We.getLogger("hig/MarqueeComponent"),this.destroy$=new h.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,M.Q)(this.destroy$)).subscribe(Et=>{Et.matches&&(this.overrideImageType(this.switchableImageConfig.alternate),this.changeDetector.detectChanges())}),this.breakpointObserver.observe(`(max-width: ${this.switchableImageConfig.breakpointPx-1}px)`).pipe((0,M.Q)(this.destroy$)).subscribe(Et=>{Et.matches&&(this.overrideImageType(this.switchableImageConfig.default),this.changeDetector.detectChanges())})),this.networkStatusService.onlineStatusChanged.pipe((0,T.p)(Et=>!0===Et)).pipe((0,M.Q)(this.destroy$)).subscribe(()=>{this.refreshMarquee(),this.changeDetector.detectChanges()}),this.phoneMarqueeEnabled&&(this.breakpointObserver.observe(n.Rp.HandsetPortrait).pipe((0,M.Q)(this.destroy$)).subscribe(Et=>{this.isHandsetPortrait=Et.matches,this.updateMarqueeImageUrl(this.tileInFocus.app),this.notifyPaginatorRepositioned(),this.changeDetector.detectChanges()}),(0,f.R)(window,"resize").pipe((0,E.B)(200),(0,M.Q)(this.destroy$)).subscribe(Et=>{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,v.isEmpty)(this.marqueeData))if((0,v.isNil)(this.tileData)||(0,v.isEmpty)(this.tileData)){const We={fallbackImage:this.globalFallbackImage,type:this.globalFallbackImageType};this.marqueeData=[{...this.marqueeData[0],app:We}];const bt=this.globalFallbackImageType!==y.t.PaddedImage;this.updateMetaData(this.marqueeData[0]),this.updateImageTypeByIndex(0,We.type,bt)}else this.marqueeData.forEach((We,bt)=>{this.updateMetaData(this.marqueeData[bt])})}overrideImageType(Et){this.marqueeData=this.marqueeData?.map(We=>(We.imageType=Et,We)),this.updateImageTypeByIndex(this.position,Et,this.marqueeData[this.position].isShowingFallbackImage)}ngAfterViewInit(){this.spatialNavigationService.enabled&&this.enablePaginatorNavigation&&this.ngZone.runOutsideAngular(()=>{(0,f.R)(this.marqueeContainer?.nativeElement,"navbeforefocus").pipe((0,M.Q)(this.destroy$)).subscribe(this.onContainerNavBeforeFocus.bind(this)),(0,f.R)(this.marqueeContainer?.nativeElement,"navnotarget").pipe((0,T.p)(Et=>Et.target===this.marqueeContainer?.nativeElement&&(0,S.o3)(Et.detail.dir)),(0,M.Q)(this.destroy$)).subscribe(this.navigateMarqueeSlide.bind(this))}),this.initialized.emit()}onContainerNavBeforeFocus(Et){this.hasFocus?this.navigateWithinMarquee(Et):this.navigateIntoMarquee(Et)}navigateIntoMarquee(Et){let We;switch(Et.detail.dir){case"up":We=this.paginatorList.get(this.position)?.nativeElement;break;case"down":case"left":case"right":We=this.focusManager.getFirstFocusableChild(this.marqueeTileContainerList.get(this.position).nativeElement)}We||(We=this.paginatorList.get(this.position)?.nativeElement),We&&(Et.preventDefault(),this.focusManager.focusViaLastOrigin(We))}navigateWithinMarquee(Et){const We=this.marqueeTileContainerList.get(this.position).nativeElement.contains(this.focusManager.currentFocusedElement),bt=this.paginator.nativeElement.contains(Et.target),gt=this.marqueeTileContainerList.get(this.position).nativeElement.contains(Et.target);if(We&&bt&&(0,S.o3)(Et.detail.dir))this.navigateMarqueeSlide(Et),Et.preventDefault();else if(Et.target===this.paginator?.nativeElement)Et.preventDefault(),this.focusManager.focusViaLastOrigin(this.paginatorList.get(this.position)?.nativeElement);else if(gt&&(0,S.o3)(Et.detail.dir)){Et.preventDefault();const wt=this.spatialNavigationService.findNextTarget(Et.target,Et.detail.dir);wt&&!this.marqueeContainer.nativeElement.contains(wt)&&this.focusManager.navigateTo(wt,Et.detail.dir)}}navigateMarqueeSlide(Et){let We=!1;We=(this.localeService.isRTLLayoutEnabled?"left"===Et.detail.dir:"right"===Et.detail.dir)?this.nextSlide():this.prevSlide(),We&&(Et.preventDefault(),this.ngZone.run(()=>this.changeDetector.detectChanges()))}notifyPaginatorRepositioned(){setTimeout(()=>{const Et=this.marqueeContainer?.nativeElement.getBoundingClientRect().top;let We,bt;void 0!==this.paginator?.nativeElement?(We=this.paginator?.nativeElement.getBoundingClientRect().bottom,bt=parseInt(getComputedStyle(this.paginator?.nativeElement).getPropertyValue("margin-bottom"),10)):(We=this.marqueeTileContainerList.get(this.position).nativeElement.getBoundingClientRect().bottom,bt=32),void 0!==We&&void 0!==Et&&this.paginatorRepositioned.next(Math.floor(We+bt-Et))})}constructMarquee(){this.marqueeData=[],this.slideAccessor=[];const Et=(0,v.isNil)(this.tileData)||(0,v.isEmpty)(this.tileData);if(Et){const We={heroImage:this.globalFallbackImage,marqueeHeroImage:this.globalFallbackImage,type:this.globalFallbackImageType};this.marqueeData.push({isVisible:!1,app:We,gradients:this.getGradientConfig(We),contentOverlayType:this.getContentOverlayType(We),imageType:We.type,isShowingFallbackImage:this.globalFallbackImageType!==y.t.PaddedImage}),this.updateImageTypeByIndex(0,We.type,this.marqueeData[0].isShowingFallbackImage)}else this.tileData.forEach((We,bt)=>{this.marqueeData.push({isVisible:!1,app:We,gradients:this.getGradientConfig(We),contentOverlayType:this.getContentOverlayType(We),imageType:We.type,isShowingFallbackImage:Et}),this.slideAccessor.push(bt),this.updateMetaData(this.marqueeData[bt])});this.logger.info("Marquee Initialization"),this.errorVisible=!1,this.marqueeInitialization(),this.busyLoadingMarquee=!1,this.ismarketingTileReloaded=!0}getGradientConfig(Et){return{bottomEdge:this.bottomEdgeGradientEnabled??Et.type===y.t.FullBleedImage,leftEdge:this.leftEdgeGradientEnabled??Et.type===y.t.PaddedImage,leftMerge:this.leftMergeGradientEnabled??!1,background:this.backgroundGradientEnabled??Et.type===y.t.PaddedImage,backgroundOverhang:this.backgroundOverhangEnabled??!0}}getContentOverlayType(Et){return this.overlayOverrides?this.overlayOverrides.contentOverlayType:Et.type}updateMetaData(Et){const We=Et.app;if(We.marqueeScrim){const bt=We.marqueeScrim;this.fontColor=We.fontColor,this.scrimHasAlpha=bt.includes("rgba"),this.scrimColor=this.scrimHasAlpha?bt:We.scrimColor,this.hasMarqueeScrim=!0}else this.isTileTypeFullBleedImage&&(this.scrimColor="0, 0, 0",this.hasMarqueeScrim=!0);this.updateMarqueeImageUrl(We),this.appLogoUrl=We.logoImage?this.formatImages?this.imageFormatService.formatImageServiceUrl(We.logoImage):We.logoImage:null}updateMarqueeImageUrl(Et){let We,bt;this.phoneMarqueeEnabled&&this.isHandsetPortrait?(We={w:960},bt=Et.heroImage):(We={w:1920},bt=Et.marqueeHeroImage),this.marqueeImageUrl=bt?this.formatImages?this.imageFormatService.formatImageServiceUrl(bt,We):bt:null}marqueeInitialization(){this.position=0,this.marqueeData[this.position]&&(this.marqueeData[this.position].isVisible=!0),this.setSlideMetaData(0),this.initAutoScroll()}setSlideMetaData(Et){this.marqueeData[Et]&&(this.tileInFocus=this.marqueeData[Et],this.updateImageTypeByIndex(Et,this.tileInFocus?.imageType,this.tileInFocus.isShowingFallbackImage),this.resetData(),this.updateMetaData(this.tileInFocus),this.isTileTypeFullBleedImage||(this.appSubtitle=this.tileInFocus.app.subtitle))}updateImageTypeByIndex(Et,We,bt){this.tileIsShowingFallbackImage=bt,this.isTileTypeFullBleedImage=We===y.t.FullBleedImage,this.isTileTypeFullBleedImageNotAtFirst=this.isTileTypeFullBleedImage&&Et>0}resetData(){this.marqueeImageUrl=null,this.appLogoUrl=null,this.appTitle=null,this.hasMarqueeScrim=!1,this.scrimColor=null,this.scrimHasAlpha=!1,this.fontColor="white",this.appSubtitle=null}initAutoScroll(){this.autoScroll&&(this.marqueeIterator=(0,A.Y)(this.autoScrollInterval),this.marqueeIteratorSubscription?.unsubscribe(),this.marqueeIteratorSubscription=this.marqueeIterator.pipe((0,T.p)(()=>document?.hasFocus()&&this.paginator?.nativeElement.getBoundingClientRect().bottom>0)).subscribe(()=>this.autoScrollNext()))}goToSlide(Et){this.position!==Et&&(this.changeSlide(Et),this.pause(),this.marqueeScrolled.emit({position:this.position,autoScrolled:this.autoScroll}))}changeSlide(Et){this.beforeChangeSlide.emit(Et);const We=this.marqueeContainer.nativeElement.contains(this.focusManager.currentFocusedElement),bt=this.marqueeTileContainerList.get(this.position).nativeElement.contains(this.focusManager.currentFocusedElement);this.marqueeData.map((wt,rn)=>{wt.isVisible=rn===Et});const gt=this.position;if(this.position=Et,this.setSlideMetaData(this.position),this.spatialNavigationService.enabled&&this.enablePaginatorNavigation&&We){let wt=this.position-gt;wt*=this.localeService.isRTLLayoutEnabled?-1:1;const rn=wt>0?l.F0.ArrowRight:l.F0.ArrowLeft;this.ngZone.runOutsideAngular(()=>{const In=(0,l.Ms)(window,rn).pipe((0,M.Q)(this.destroy$)).subscribe();setTimeout(()=>{const Mi=this.focusManager.getFirstFocusableChild(this.marqueeTileContainerList.get(this.position).nativeElement),En=bt&&Mi?Mi:this.paginatorList.get(this.position)?.nativeElement;this.focusManager.focusViaLastOrigin(En),In.closed||In.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(Et){(this.errorVisible||Et)&&(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.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 Et=this.marqueeData[this.position],We=Et.app;this.logger.warn("Error loading image for "+We.title+" using fallback."),Et.isShowingFallbackImage=!(0,v.isNil)(this.tileData)&&!(0,v.isEmpty)(this.tileData)||Et.imageType!==y.t.PaddedImage,this.setSlideMetaData(this.position),this.marqueeImageUrl=We.fallbackImage?We.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(Et,We){this.logger.info("view app details",Et),this.viewAppDetails.emit({app:We,...Et})}onActionClicked(Et,We,bt){this.logger.info("action clicked",Et,We),this.actionClicked.emit({action:We,position:bt,...Et})}setInitialFocus(){this.focusManager.focusChild(this.marqueeContainer.nativeElement,"first")}cancelAutoSlide(){this.pause()}}return(ht=it).\u0275fac=function(Et){return new(Et||ht)(r.rXU(r.aKT),r.rXU(s.J6),r.rXU(s.Pl),r.rXU(s.CF),r.rXU(s.iH),r.rXU(r.SKi),r.rXU(n.QP),r.rXU(u.E),r.rXU(m.c),r.rXU(r.gRc))},ht.\u0275cmp=r.VBU({type:ht,selectors:[["nv-hig-marquee"]],viewQuery:function(Et,We){if(1&Et&&(r.GBs(Xe,5),r.GBs(ot,5),r.GBs(dt,5),r.GBs(xe,5)),2&Et){let bt;r.mGM(bt=r.lsd())&&(We.marqueeContainer=bt.first),r.mGM(bt=r.lsd())&&(We.paginator=bt.first),r.mGM(bt=r.lsd())&&(We.marqueeTileContainerList=bt),r.mGM(bt=r.lsd())&&(We.paginatorList=bt)}},inputs:{tileData:"tileData",useMarqueeScrim:"useMarqueeScrim",phoneMarqueeEnabled:"phoneMarqueeEnabled",mobileMode:"mobileMode",tvMode:"tvMode",dismissRatio:"dismissRatio",enablePaginatorNavigation:"enablePaginatorNavigation",gradientOverrides:"gradientOverrides",overlayOverrides:"overlayOverrides",enableAnimation:"enableAnimation",imageOverrides:"imageOverrides"},outputs:{actionClicked:"actionClicked",viewAppDetails:"viewAppDetails",imageLoadFailure:"imageLoadFailure",marqueeScrolled:"marqueeScrolled",paginatorRepositioned:"paginatorRepositioned",initialized:"initialized",beforeChangeSlide:"beforeChangeSlide"},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",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"],[1,"marquee-button-icon",3,"src"],["mat-icon-button","","tabindex","-1",1,"marquee-button","marquee-button-next",3,"click"],["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(Et,We){1&Et&&r.DNE(0,jn,10,25,"div",6)(1,It,2,3,"div",7)(2,vn,7,9,"div",8),2&Et&&(r.Y8G("ngIf",!We.busyLoadingMarquee&&!We.errorVisible),r.R7$(),r.Y8G("ngIf",We.busyLoadingMarquee),r.R7$(),r.Y8G("ngIf",We.errorVisible))},dependencies:[I.YU,I.Sq,I.bT,R.DJ,R.sA,O.PW,Y.ig,j.iV,fe.vR,X,ue.$,Me.r,be.e,Q,ne.Aq,Ge.a,ge.D9],styles:[".isRtl[_nghost-%COMP%]   .flip-rtl-element[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   .flip-rtl-element[_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%], .isRtl[_nghost-%COMP%]   .marquee-button-icon[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   .marquee-button-icon[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%]   .flip-rtl-element[_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%], html[dir=rtl][_ngcontent-%COMP%]   .marquee-button-icon[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-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((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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))}[_nghost-%COMP%]{--full-bleed-title-margin-bottom: 20px;--full-bleed-info-margin-top: 20px;--text-overlay-content-padding-bottom: 24px;--full-bleed-overlay-content-width: 38vw;--full-bleed-overlay-content-max-width: none;--hig-marquee-third-column: 6vw;--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-left-merge-gradient: linear-gradient( 270deg, rgba(0, 0, 0, 0) 0%, #000000 66.62%, #000000 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-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}.new-10ft   [_nghost-%COMP%]{--hig-marquee-tile-overlay-container-margin-left: 16px;--hig-marquee-promo-tag-container-top: 14px;--hig-marquee-scrim-opacity: 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}.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;z-index:1;position:relative}.marquee-container.phone-marquee[_ngcontent-%COMP%], .fallback-content.phone-marquee[_ngcontent-%COMP%]{position:sticky;top:0;opacity:1;z-index:0;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:32.2916666667vw 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%]:not(.scrim-has-alpha), .fallback-content.phone-marquee.phone-marquee[_ngcontent-%COMP%]:not(.scrim-has-alpha){background:linear-gradient(to bottom,rgba(var(--scrim-color),1) 50vw,rgba(var(--scrim-color),.7) 90vw,rgba(var(--scrim-color),0) 150vw)}}@media (orientation: landscape){.marquee-container.phone-marquee.phone-marquee[_ngcontent-%COMP%]:not(.scrim-has-alpha), .fallback-content.phone-marquee.phone-marquee[_ngcontent-%COMP%]:not(.scrim-has-alpha){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):not(.scrim-has-alpha)   .marquee-container.phone-marquee[_ngcontent-%COMP%], [_ngcontent-%COMP%]:not(.phone-marquee):not(.scrim-has-alpha)   .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%)}.marquee-container.phone-marquee.phone-marquee.scrim-has-alpha[_ngcontent-%COMP%], .fallback-content.phone-marquee.phone-marquee.scrim-has-alpha[_ngcontent-%COMP%]{background-color:var(--scrim-color)}[_ngcontent-%COMP%]:not(.phone-marquee).scrim-has-alpha   .marquee-container.phone-marquee[_ngcontent-%COMP%], [_ngcontent-%COMP%]:not(.phone-marquee).scrim-has-alpha   .fallback-content.phone-marquee[_ngcontent-%COMP%]{background-color:var(--scrim-color)}@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%]{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)}.padded-image-container[_ngcontent-%COMP%]{grid-area:1/3/2/-1;height:100%;position:relative;z-index:0;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(assets/hashed/Marquee_Hero_Image_Gradient.97da07cc527f6200.svg);-webkit-mask-image:url(assets/hashed/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(assets/hashed/Marquee_Hero_Image_Gradient_RTL.8f28b6a06d45d190.svg);-webkit-mask-image:url(assets/hashed/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,rgba(0,0,0,0) 0%,rgba(0,0,0,.25) 15%,rgba(0,0,0,.5) 25%,black 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(assets/hashed/mobile_marquee_hero_mask_ltr.7fc7c054509b2c75.png);mask-image:url(assets/hashed/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(assets/hashed/mobile_marquee_hero_mask_rtl.40e2e47979f0f272.png);mask-image:url(assets/hashed/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%}@media (orientation: portrait){.marquee-tile-gradient-container[_ngcontent-%COMP%]   .marquee-tile-gradients[_ngcontent-%COMP%]   .marquee-tile-background-gradient.phone-marquee[_ngcontent-%COMP%]:not(.scrim-has-alpha){background:linear-gradient(to bottom,rgba(var(--scrim-color),1) 50vw,rgba(var(--scrim-color),.7) 90vw,rgba(var(--scrim-color),0) 150vw)}}@media (orientation: landscape){.marquee-tile-gradient-container[_ngcontent-%COMP%]   .marquee-tile-gradients[_ngcontent-%COMP%]   .marquee-tile-background-gradient.phone-marquee[_ngcontent-%COMP%]:not(.scrim-has-alpha){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):not(.scrim-has-alpha)   .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-gradient.phone-marquee.scrim-has-alpha[_ngcontent-%COMP%]{background-color:var(--scrim-color)}[_ngcontent-%COMP%]:not(.phone-marquee).scrim-has-alpha   .marquee-tile-gradient-container[_ngcontent-%COMP%]   .marquee-tile-gradients[_ngcontent-%COMP%]   .marquee-tile-background-gradient[_ngcontent-%COMP%]{background-color:var(--scrim-color)}.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%}.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)}.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:1}.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;z-index:1;bottom:-1px;background:linear-gradient(#19191900,#191919)}@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/1;position:relative;z-index:2}.isLtr[_nghost-%COMP%]   .marquee-button-prev[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   .marquee-button-prev[_ngcontent-%COMP%]{justify-self:right}.isRtl[_nghost-%COMP%]   .marquee-button-prev[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   .marquee-button-prev[_ngcontent-%COMP%]{justify-self:left}.marquee-button-next[_ngcontent-%COMP%]{grid-area:1/5/2/-1;position:relative;z-index:2}.isLtr[_nghost-%COMP%]   .marquee-button-next[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   .marquee-button-next[_ngcontent-%COMP%]{justify-self:left}.isRtl[_nghost-%COMP%]   .marquee-button-next[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   .marquee-button-next[_ngcontent-%COMP%]{justify-self:right}.full-bleed-image-container[_ngcontent-%COMP%]{grid-area:1/1/2/-1;position:relative;z-index:0;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) 6vw 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-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;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-size:28px;line-height:40px}.new-10ft[_nghost-%COMP%]   .full-bleed-overlay-content[_ngcontent-%COMP%]   .body-font[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .full-bleed-overlay-content[_ngcontent-%COMP%]   .body-font[_ngcontent-%COMP%]{color:#ffffffd9}.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-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;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-size:28px;line-height:40px}.new-10ft[_nghost-%COMP%]   .full-bleed-overlay-content[_ngcontent-%COMP%]   .info-font[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .full-bleed-overlay-content[_ngcontent-%COMP%]   .info-font[_ngcontent-%COMP%]{color:#ffffffd9}.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-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:34px;line-height:48px;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-size:68px;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-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:12px;line-height:16px;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-size:24px;line-height:32px}.new-10ft[_nghost-%COMP%]   .mobile-view.full-bleed-item[_ngcontent-%COMP%]   .full-bleed-overlay-content[_ngcontent-%COMP%]   .body-font[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .mobile-view.full-bleed-item[_ngcontent-%COMP%]   .full-bleed-overlay-content[_ngcontent-%COMP%]   .body-font[_ngcontent-%COMP%]{color:#ffffffd9}.mobile-view.full-bleed-item[_ngcontent-%COMP%]   .full-bleed-overlay-content[_ngcontent-%COMP%]   .info-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:12px;line-height:16px;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-size:24px;line-height:32px}.new-10ft[_nghost-%COMP%]   .mobile-view.full-bleed-item[_ngcontent-%COMP%]   .full-bleed-overlay-content[_ngcontent-%COMP%]   .info-font[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .mobile-view.full-bleed-item[_ngcontent-%COMP%]   .full-bleed-overlay-content[_ngcontent-%COMP%]   .info-font[_ngcontent-%COMP%]{color:#ffffffd9}.mobile-view.full-bleed-item[_ngcontent-%COMP%]   .full-bleed-overlay-content[_ngcontent-%COMP%]   .title-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:24px;line-height:32px;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-size:48px;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-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:20px;line-height:28px;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-size:40px;line-height:56px}@media (orientation: portrait){.phone-marquee[_ngcontent-%COMP%]   .full-bleed-overlay-content[_ngcontent-%COMP%]{text-align:center;width:100vw}.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:2;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(100vw - 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}@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-button-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px;line-height:40px;vertical-align:initial}.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:3}.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:0;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-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:12px;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-size:24px;line-height:32px}.marquee-promo-tag-container[_ngcontent-%COMP%]{background:#292929;position:absolute;top:var(--hig-marquee-promo-tag-container-top);z-index:3}.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-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:16px;line-height:24px;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-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%]   .marquee-container[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .marquee-container[_ngcontent-%COMP%]{position:relative}.new-10ft[_nghost-%COMP%]   .marquee-scrim[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .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:100;pointer-events:none;transition:opacity .15s ease}.overlay-content[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;aspect-ratio:1.7777777778}"],changeDetection:0}),it})()},97363:(je,z,c)=>{"use strict";c.d(z,{X:()=>n,t:()=>r});var r=function(v){return v.FullBleedImage="FullBleedImage",v.PaddedImage="PaddedImage",v}(r||{});const n="assets/img/Marquee_Hero_Image_Fallback.png"},80282:(je,z,c)=>{"use strict";c.d(z,{_:()=>Ue});var r=c(58527),n=c(66253),v=c(80583),h=c(26513),f=c(36877),A=c(4208),M=c(8619),T=c(65706),E=c(40262);const y={[n.Y.Init]:{expand:!1,text:!1,shadow:!1,icon:!1},[n.Y.Expanding]:{expand:!0,text:!0,shadow:!0,icon:!0},[n.Y.Expanded]:{expand:!0,text:!0,shadow:!0,icon:!0},[n.Y.Collapsing]:{expand:!0,text:!1,shadow:!1,icon:!1},[n.Y.Collapsed]:{expand:!1,text:!1,shadow:!1,icon:!1}};var S=c(3816),l=c(94222),s=c(21684),u=c(92994),m=c(61142),I=c(47973),R=c(29370),O=c(2218),Y=c(54504),j=c(65240);const fe=["higSidebarContainer"],te=["higSidebarHighlight"];function ce(ee,W){if(1&ee){const Pe=r.RV6();r.j41(0,"div",8),r.bIt("@higSidebarOpacityAnimation.done",function(oe){r.eBV(Pe);const Le=r.XpG();return r.Njj(Le.onAnimationDone(oe))}),r.k0s()}if(2&ee){const Pe=r.XpG();r.Y8G("@.disabled",!Pe.expandable)("@higSidebarOpacityAnimation",Pe.sidebarAnimationState)}}function H(ee,W){1&ee&&r.nrm(0,"div",9,1)}function Z(ee,W){if(1&ee&&r.nrm(0,"img",19),2&ee){const Pe=r.XpG(3);r.FS9("src",Pe.accountInfoSidebarItem.badgeUrl,r.B4B),r.Y8G("@higSidebarOpacityAnimation",Pe.sidebarAnimationState)}}function X(ee,W){if(1&ee&&(r.j41(0,"span"),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&ee){let Pe;const le=r.XpG(3);r.HbH(null!==(Pe=le.accountInfoSidebarItem.fontTypeClass)&&void 0!==Pe?Pe:"font-sub2"),r.Y8G("@higSidebarTextAnimation",le.sidebarAnimationState),r.R7$(),r.SpI(" ",r.bMT(2,4,le.accountInfoSidebarItem.text)," ")}}function ue(ee,W){if(1&ee&&(r.j41(0,"span",23),r.EFF(1),r.k0s()),2&ee){const Pe=r.XpG(4);r.R7$(),r.JRh(Pe.accountInfoSidebarItem.subtext)}}function Me(ee,W){if(1&ee&&(r.j41(0,"div",20)(1,"span",21),r.EFF(2),r.k0s(),r.DNE(3,ue,2,1,"span",22),r.k0s()),2&ee){const Pe=r.XpG(3);r.Y8G("@higSidebarTextAnimation",Pe.sidebarAnimationState),r.R7$(2),r.JRh(Pe.accountInfoSidebarItem.text),r.R7$(),r.Y8G("ngIf",Pe.accountInfoSidebarItem.subtext)}}function be(ee,W){if(1&ee){const Pe=r.RV6();r.j41(0,"div",12)(1,"button",13),r.bIt("focus",function(oe){r.eBV(Pe);const Le=r.XpG(2);return r.Njj(Le.onItemFocus(oe))})("click",function(oe){r.eBV(Pe);const Le=r.XpG(2);return r.Njj(Le.onItemClicked(oe,Le.accountInfoSidebarItem.type))}),r.j41(2,"div",14),r.nrm(3,"mat-icon",15),r.DNE(4,Z,1,2,"img",16)(5,X,3,6,"span",17)(6,Me,4,3,"div",18),r.k0s()()()}if(2&ee){const Pe=r.XpG(2);r.R7$(),r.AVh("has-badge",null==Pe.accountInfoSidebarItem?null:Pe.accountInfoSidebarItem.badgeUrl)("selected",(null==Pe.currentSelectedItem?null:Pe.currentSelectedItem.type)===Pe.accountInfoSidebarItem.type),r.R7$(2),r.Y8G("svgIcon",Pe.accountInfoSidebarItem.svgIconId)("@higSidebarOpacityAnimation",Pe.sidebarAnimationState),r.R7$(),r.Y8G("ngIf",Pe.accountInfoSidebarItem.badgeUrl&&Pe.animationStateMap[Pe.sidebarAnimationState].icon),r.R7$(),r.Y8G("ngIf",!(null!=Pe.accountInfoSidebarItem&&Pe.accountInfoSidebarItem.loggedIn)&&Pe.animationStateMap[Pe.sidebarAnimationState].text),r.R7$(),r.Y8G("ngIf",(null==Pe.accountInfoSidebarItem?null:Pe.accountInfoSidebarItem.loggedIn)&&Pe.animationStateMap[Pe.sidebarAnimationState].text)}}function Q(ee,W){if(1&ee&&(r.j41(0,"div",10),r.DNE(1,be,7,9,"div",11),r.k0s()),2&ee){const Pe=r.XpG();r.R7$(),r.Y8G("ngIf",Pe.accountInfoSidebarItem)}}function ne(ee,W){1&ee&&r.nrm(0,"div",29)}function Ge(ee,W){if(1&ee&&(r.j41(0,"span",30),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&ee){let Pe;const le=r.XpG().$implicit,oe=r.XpG(2);r.HbH(null!==(Pe=le.fontTypeClass)&&void 0!==Pe?Pe:"font-sub2"),r.Y8G("@higSidebarTextAnimation",oe.sidebarAnimationState),r.R7$(),r.SpI(" ",r.bMT(2,4,le.text)," ")}}function ge(ee,W){if(1&ee){const Pe=r.RV6();r.j41(0,"div",12)(1,"button",26),r.bIt("focus",function(oe){r.eBV(Pe);const Le=r.XpG(2);return r.Njj(Le.onItemFocus(oe))})("click",function(oe){const Le=r.eBV(Pe).$implicit,Oe=r.XpG(2);return r.Njj(Oe.onItemClicked(oe,Le.type))}),r.j41(2,"div",14),r.DNE(3,ne,1,0,"div",27),r.nrm(4,"mat-icon",15),r.DNE(5,Ge,3,6,"span",28),r.k0s()()()}if(2&ee){const Pe=W.$implicit,le=r.XpG(2);r.R7$(),r.AVh("selected",(null==le.currentSelectedItem?null:le.currentSelectedItem.type)===Pe.type),r.R7$(2),r.Y8G("ngIf",Pe.hasNotificationBadge),r.R7$(),r.Y8G("svgIcon",Pe.svgIconId),r.R7$(),r.Y8G("ngIf",le.animationStateMap[le.sidebarAnimationState].text||!le.expandable)}}function Xe(ee,W){if(1&ee&&(r.j41(0,"div",24),r.DNE(1,ge,6,5,"div",25),r.k0s()),2&ee){const Pe=r.XpG();r.R7$(),r.Y8G("ngForOf",Pe.pageNavSidebarItems)}}function ot(ee,W){if(1&ee&&r.nrm(0,"mat-icon",15),2&ee){const Pe=r.XpG().$implicit,le=r.XpG(2);r.Y8G("svgIcon",Pe.svgIconId)("@higSidebarOpacityAnimation",le.sidebarAnimationState)}}function dt(ee,W){if(1&ee&&(r.j41(0,"span"),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&ee){let Pe;const le=r.XpG().$implicit,oe=r.XpG(2);r.HbH(null!==(Pe=le.fontTypeClass)&&void 0!==Pe?Pe:"font-sub2"),r.Y8G("@higSidebarTextAnimation",oe.sidebarAnimationState),r.R7$(),r.SpI(" ",r.bMT(2,4,le.text)," ")}}function xe(ee,W){if(1&ee){const Pe=r.RV6();r.j41(0,"div",12)(1,"button",32),r.bIt("focus",function(oe){r.eBV(Pe);const Le=r.XpG(2);return r.Njj(Le.onItemFocus(oe))})("click",function(oe){const Le=r.eBV(Pe).$implicit,Oe=r.XpG(2);return r.Njj(Oe.onItemClicked(oe,Le.type))}),r.j41(2,"div",14),r.DNE(3,ot,1,2,"mat-icon",33)(4,dt,3,6,"span",17),r.k0s()()()}if(2&ee){const Pe=W.$implicit,le=r.XpG(2);r.R7$(),r.AVh("selected",(null==le.currentSelectedItem?null:le.currentSelectedItem.type)===Pe.type),r.Y8G("hidden",!le.animationStateMap[le.sidebarAnimationState].expand),r.R7$(2),r.Y8G("ngIf",le.animationStateMap[le.sidebarAnimationState].icon),r.R7$(),r.Y8G("ngIf",le.animationStateMap[le.sidebarAnimationState].text||!le.expandable)}}function Re(ee,W){if(1&ee&&(r.j41(0,"div",31),r.DNE(1,xe,5,5,"div",25),r.k0s()),2&ee){const Pe=r.XpG();r.R7$(),r.Y8G("ngForOf",Pe.modalNavSidebarItems)}}let Ue=(()=>{var ee;class W{get expand(){return this._expand}set expand(le){!this.expandable||le===this._expand||(this._expand=le,this.sidebarAnimationStateSubject.next(le?n.Y.Expanding:n.Y.Collapsing))}set currentSelectedItem(le){this._currentSelectedItem=le??this.pageNavSidebarItems?.[0]}get currentSelectedItem(){return this._currentSelectedItem}get sidebarAnimationState(){return this.sidebarAnimationStateSubject.getValue()}get sidebarAnimationState$(){return this.sidebarAnimationStateSubject.asObservable()}constructor(le,oe,Le,Oe,ye,Ie,at,K){this.builder=le,this.loggingService=oe,this.spatialNavigationService=Le,this.localeService=Oe,this.ngZone=ye,this.focusManager=Ie,this.inputModalityService=at,this.changeDetector=K,this.expandable=!0,this.showBorder=!1,this.enlargeFocusedItem=!1,this.gradientOnFocusedItem=!1,this.itemClicked=new r.bkB,this.animationStateMap=y,this.HigSidebarAnimationStateType=n.Y,this.destroy$=new v.B7,this.lastHighlightOffset=0,this.sidebarAnimationStateSubject=new h.t(n.Y.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,A.Q)(this.destroy$)).subscribe(le=>{this.isRtl=this.localeService.isRTLLayoutEnabled})}ngAfterViewInit(){this.spatialNavigationService.enabled&&this.expandable&&this.ngZone.runOutsideAngular(()=>{(0,f.R)(this.higSidebarContainer.nativeElement,"navbeforefocus").pipe((0,M.p)(le=>!this.expand),(0,A.Q)(this.destroy$)).subscribe(this.onNavigateToInside.bind(this)),(0,f.R)(this.higSidebarContainer.nativeElement,"navnotarget").pipe((0,M.p)(le=>!!this.expand&&(this.isRtl?"left"===le.detail.dir:"right"===le.detail.dir)),(0,A.Q)(this.destroy$)).subscribe(this.onNavigateToOutside.bind(this))})}onAnimationDone(le){"void"===le.toState?this.sidebarAnimationStateSubject.next(n.Y.Collapsed):le.toState===n.Y.Expanding&&this.sidebarAnimationStateSubject.next(n.Y.Expanded)}onSidebarClicked(le){!this.expandable||this.expand||(this.expand=!0,this.moveFocusOnSelectedItem())}onItemClicked(le,oe){this.expandable&&!this.expand||(this.expandable&&this.expand&&le.stopPropagation(),this.expandable&&this.currentSelectedItem.type===oe&&this.navigateOutToPrevFocused(),this.itemClicked.emit({itemType:oe,event:le}))}onItemFocus(le){if(this.higSidebarHighlight){this.higSidebarHighlight.nativeElement.style.height=`${le.target.getBoundingClientRect().height}px`;const oe=(0,E.i0)(this.expandable&&this.sidebarAnimationState===n.Y.Expanded&&"keyboard"===this.inputModalityService.lastFocusOrigin?"200ms ease-in":0,(0,E.i7)([(0,E.iF)({transform:`translateY(${this.lastHighlightOffset}px)`}),(0,E.iF)({transform:`translateY(${le.target.getBoundingClientRect().top}px)`})]));this.lastHighlightOffset=le.target.getBoundingClientRect().top,this.builder.build(oe).create(this.higSidebarHighlight.nativeElement).play()}}onFocusOut(le){this.expand&&!this.isFocusedElementInSidebar(le.relatedTarget)&&this.expand&&(this.expand=!1,this.changeDetector.detectChanges())}onFocusIn(le){!this.expandable||this.expand||"keyboard"!==this.inputModalityService.lastFocusOrigin||(this.expand=!0)}moveFocusOnSelectedItem(le){setTimeout(()=>{if(!this.expandable)return;const oe=this.higSidebarContainer?.nativeElement.querySelector(".selected");!oe||oe===this.focusManager.currentFocusedElement||(le?this.focusManager.navigateTo(oe,le):this.focusManager.focusViaLastOrigin(oe))})}onNavigateToInside(le){this.prevFocusedElementBeforeExpanding=this.focusManager.currentFocusedElement,le.preventDefault(),this.expand=!0,this.changeDetector.markForCheck(),this.moveFocusOnSelectedItem(le.detail.dir)}onNavigateToOutside(le){le.preventDefault(),this.sidebarAnimationState===n.Y.Expanded&&this.navigateOutToPrevFocused()}navigateOutToPrevFocused(){this.prevFocusedElementBeforeExpanding&&this.prevFocusedElementBeforeExpanding.isConnected?this.focusManager.navigateTo(this.prevFocusedElementBeforeExpanding,this.isRtl?"left":"right"):(this.sidebarAnimationState$.pipe((0,M.p)(oe=>oe===n.Y.Collapsed),(0,T.s)(1),(0,A.Q)(this.destroy$)).subscribe(oe=>{this.navigateToNearby(this.isRtl?"left":"right")}),this.expand=!1,this.changeDetector.markForCheck()),this.prevFocusedElementBeforeExpanding=null}navigateToNearby(le){const Le=document.activeElement.getBoundingClientRect(),ye=this.higSidebarContainer.nativeElement.parentElement.nextElementSibling,Ie=this.higSidebarContainer.nativeElement.getBoundingClientRect();this.spatialNavigationService.setStartingPointAt(this.isRtl?Ie.left:Ie.right,(Le.top+Le.bottom)/2);const K=this.spatialNavigationService.getClosestChild(document.body,ye,le);this.focusManager.navigateTo(K,le)}isFocusedElementInSidebar(le){return this.higSidebarContainer.nativeElement.contains(le)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(ee=W).\u0275fac=function(le){return new(le||ee)(r.rXU(E.S6),r.rXU(S.J6),r.rXU(l.E),r.rXU(S.iH),r.rXU(r.SKi),r.rXU(s.c),r.rXU(u.p),r.rXU(r.gRc))},ee.\u0275cmp=r.VBU({type:ee,selectors:[["nv-hig-sidebar"]],viewQuery:function(le,oe){if(1&le&&(r.GBs(fe,5),r.GBs(te,5)),2&le){let Le;r.mGM(Le=r.lsd())&&(oe.higSidebarContainer=Le.first),r.mGM(Le=r.lsd())&&(oe.higSidebarHighlight=Le.first)}},inputs:{expandable:"expandable",showBorder:"showBorder",enlargeFocusedItem:"enlargeFocusedItem",gradientOnFocusedItem:"gradientOnFocusedItem",expand:"expand",currentSelectedItem:"currentSelectedItem",accountInfoSidebarItem:"accountInfoSidebarItem",pageNavSidebarItems:"pageNavSidebarItems",modalNavSidebarItems:"modalNavSidebarItems"},outputs:{itemClicked:"itemClicked"},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"],[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"],[1,"notification-badge"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"item-text"],[1,"modal-nav-layout"],["mat-button","",3,"focus","click","hidden"],[3,"svgIcon",4,"ngIf"]],template:function(le,oe){if(1&le){const Le=r.RV6();r.DNE(0,ce,1,2,"div",2),r.j41(1,"div",3,0),r.bIt("click",function(ye){return r.eBV(Le),r.Njj(oe.onSidebarClicked(ye))})("focusout",function(ye){return r.eBV(Le),r.Njj(oe.onFocusOut(ye))})("focusin",function(ye){return r.eBV(Le),r.Njj(oe.onFocusIn(ye))}),r.DNE(3,H,2,0,"div",4)(4,Q,2,1,"div",5)(5,Xe,2,1,"div",6)(6,Re,2,1,"div",7),r.k0s()}2&le&&(r.Y8G("ngIf",oe.animationStateMap[oe.sidebarAnimationState].shadow),r.R7$(),r.HbH(oe.animationStateMap[oe.sidebarAnimationState].expand&&oe.expandable?"expanded":"collapsed"),r.AVh("expandable",oe.expandable)("show-border",oe.showBorder)("enlarge-focused-item",oe.enlargeFocusedItem)("collapsing",oe.sidebarAnimationState===oe.HigSidebarAnimationStateType.Collapsing)("expand-finished",oe.sidebarAnimationState===oe.HigSidebarAnimationStateType.Expanded),r.Y8G("@.disabled",!oe.expandable),r.BMQ("tabindex",oe.expandable&&!oe.expand?0:-1),r.R7$(2),r.Y8G("ngIf",oe.expandable),r.R7$(),r.Y8G("ngIf",oe.expandable),r.R7$(),r.Y8G("ngIf",(null==oe.pageNavSidebarItems?null:oe.pageNavSidebarItems.length)>0),r.R7$(),r.Y8G("ngIf",oe.expandable))},dependencies:[m.Sq,m.bT,I.iV,R.An,O.$,Y.a,j.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)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-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-bg: #393939;--hig-sidebar-expand-width: 256px;--hig-sidebar-collapse-width: 120px;--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-icon-size: 24px;--hig-sidebar-icon-default-color: rgba(255, 255, 255, .7);--hig-sidebar-expanded-icon-gap-size: 24px;--hig-sidebar-collapsed-icon-gap-size: 8px;--hig-sidebar-item-hover-rgba: rgba(255, 255, 255, .08);--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: #ffffff;--hig-navigation-badge-width: 9px;--hig-navigation-badge-height: 9px;--hig-navigation-badge-bg: #76b900;--hig-navigation-badge-position-right: 8px;--hig-navigation-badge-position-top: -5px;--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}.isRtl   [_nghost-%COMP%]{--hig-sidebar-background-linear-gradient-deg: 270deg}.hig-sidebar-container[_ngcontent-%COMP%]{height:100%;background-color:var(--hig-sidebar-bg);display:flex;flex-direction:column}.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%]   .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}.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[_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-navigation-badge-width);width:var(--hig-navigation-badge-height);background:var(--hig-navigation-badge-bg);border-radius:50%;right:var(--hig-navigation-badge-position-right);top:var(--hig-navigation-badge-position-top)}.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-color: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;border-right: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%]: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][_ngcontent-%COMP%]:active{background-color:unset}.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%]{width:var(--hig-sidebar-collapse-width)}.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:column;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-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;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-size:32px;line-height:48px}.new-10ft[_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%], .new-10ft   [_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%], .new-10ft[_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%], .new-10ft   [_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%]{color:#ffffffd9}.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-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:16px;line-height:24px;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-size:32px;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,E.hZ)("higSidebarOpacityAnimation",[(0,E.kY)("void => *",[(0,E.iF)({opacity:"0"}),(0,E.i0)("300ms ease-in",(0,E.iF)({opacity:"1"}))]),(0,E.kY)("* => void",[(0,E.iF)({opacity:"1"}),(0,E.i0)("300ms ease-in",(0,E.iF)({opacity:"0"}))])]),(0,E.hZ)("higSidebarTextAnimation",[(0,E.kY)("void => *",[(0,E.iF)({opacity:"0",transform:"translateX(-10px)"}),(0,E.i0)("300ms ease-in",(0,E.iF)({opacity:"1",transform:"translateX(0)"}))]),(0,E.kY)("* => void",[(0,E.iF)({opacity:"1",transform:"translateX(0)"}),(0,E.i0)("300ms ease-in",(0,E.iF)({opacity:"0",transform:"translateX(-10px)"}))])])]}}),W})()},66253:(je,z,c)=>{"use strict";c.d(z,{Y:()=>r});var r=function(n){return n.Init="Init",n.Expanded="Expanded",n.Expanding="Expanding",n.Collapsed="Collapsed",n.Collapsing="Collapsing",n}(r||{})},5428:(je,z,c)=>{"use strict";c.d(z,{t:()=>u});var r=c(58527),n=c(6364),v=c(10785),f=c(61142),A=c(3457),M=c(56106),T=c(13186),E=c(54676);const y=["slider"];function S(m,I){if(1&m){const R=r.RV6();r.j41(0,"input",4),r.mxI("ngModelChange",function(Y){r.eBV(R);const j=r.XpG();return r.DH7(j.inputValue,Y)||(j.inputValue=Y),r.Njj(Y)}),r.bIt("focus",function(){r.eBV(R);const Y=r.XpG();return r.Njj(Y.onTextFocus())})("blur",function(){r.eBV(R);const Y=r.XpG();return r.Njj(Y.onTextBlur())})("change",function(Y){r.eBV(R);const j=r.XpG();return r.Njj(j.textChanged(Y))})("input",function(Y){r.eBV(R);const j=r.XpG();return r.Njj(j.textInput(Y))}),r.k0s()}if(2&m){const R=r.XpG();r.Y8G("disabled",R.disabled),r.R50("ngModel",R.inputValue),r.BMQ("tabindex",R.tabindex)}}var l=function(m){return m.Integer="integer",m.Decimal="decimal",m.Time="time",m.Percent="percent",m}(l||{});const s={[l.Integer]:/^-?\d*$/,[l.Decimal]:/^-?\d*\.*\d*$/,[l.Time]:/^-?\d*[:]?\d*$/,[l.Percent]:/^-?\d*$/};let u=(()=>{var m;class I{get min(){return this._min}set min(O){this._min=(0,n.OE)(O,this._min)}get max(){return this._max}set max(O){this._max=(0,n.OE)(O,this._max)}get step(){return this._step}set step(O){this._step=(0,n.OE)(O,this._step),this.forceSliderTickUpdate()}get default(){return this._default}set default(O){this._default=(0,n.OE)(O,this._default)}get tickInterval(){return this._tickInterval}set tickInterval(O){this._tickInterval="auto"===O?"auto":"number"==typeof O||"string"==typeof O?(0,n.OE)(O,this._tickInterval):0,console.log("tickinterval: ",this._tickInterval),this.forceSliderTickUpdate()}get value(){return this._value}set value(O){this._value=(0,n.OE)(O,this._value),setTimeout(()=>this.sliderMoved({source:this.slider,value:this.value}),0)}set formatTextAs(O){this._formatTextAs=l[O]||l.Integer}get formatTextAs(){return this._formatTextAs}constructor(O){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 r.bkB,this.valueEntry=!1,this._formatTextAs=l.Integer,this.change=new r.bkB,this.input=new r.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(O,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(O){let Y=O.target.value;if(this.formatTextAs===l.Time){const fe=v(Y,"mm:ss");Y=60*fe.minutes()+fe.seconds()+""}let j=0;this.formatTextAs===l.Decimal?(j=100*(parseFloat(Y)||0),this.step&&(j=Math.round((j-100*this.min)/(100*this.step))*this.step+this.min)):(j=parseInt(Y,10)||0,this.step&&(j=Math.round((j-this.min)/this.step)*this.step+this.min)),j=Math.min(this.max,Math.max(j,this.min)),this.value=j,this.sliderChanged({source:this.slider,value:this.value}),O.stopImmediatePropagation()}sliderChanged(O){this.valueChange.emit(this.value),this.change.emit(O)}sliderMoved(O){if(O&&void 0!==O.value){if(this.formatTextAs===l.Time){let Y=v({seconds:0});Y=Y.second(O.value),this.inputValue=Y.format("mm:ss")}else this.inputValue=this.formatTextAs===l.Percent?O.value+" %":O.value+"";this.textValueValidation=this.inputValue,this.input.emit(O)}}textInput(O){const j=O.target;j&&!(s[this.formatTextAs]||s[l.Integer]).test(j.value)?j.value=this.textValueValidation:this.textValueValidation=j.value,O.stopImmediatePropagation()}onKeyDown(O){this.default&&"Period"===O.code&&(this.value=this.default,this.sliderChanged({source:this.slider,value:this.value}))}}return(m=I).\u0275fac=function(O){return new(O||m)(r.kS0("tabindex"))},m.\u0275cmp=r.VBU({type:m,selectors:[["nv-hig-slider"]],viewQuery:function(O,Y){if(1&O&&r.GBs(y,7),2&O){let j;r.mGM(j=r.lsd())&&(Y.slider=j.first)}},hostVars:1,hostBindings:function(O,Y){2&O&&r.Mr5("tabindex",Y.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"},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(O,Y){if(1&O){const j=r.RV6();r.j41(0,"div",1)(1,"mat-slider",2,0),r.mxI("valueChange",function(te){return r.eBV(j),r.DH7(Y.value,te)||(Y.value=te),r.Njj(te)}),r.bIt("input",function(te){return r.eBV(j),r.Njj(Y.sliderMoved(te))})("change",function(te){return r.eBV(j),r.Njj(Y.sliderChanged(te))})("mousedown",function(){return r.eBV(j),r.Njj(Y.mouseDown=!0)})("mouseup",function(){return r.eBV(j),r.Njj(Y.mouseDown=!1)},!1,r.tSv)("keydown",function(te){return r.eBV(j),r.Njj(Y.onKeyDown(te))}),r.k0s(),r.DNE(3,S,1,3,"input",3),r.k0s()}2&O&&(r.R7$(),r.AVh("cdk-mouse-focused",Y.textFocused)("nv-mouse-down",Y.mouseDown)("hig-slider-no-animation",Y.animating||Y.initializing),r.Y8G("min",Y.min)("max",Y.max)("step",Y.sliderStep)("disabled",Y.disabled)("thumbLabel",Y.thumbLabel)("tickInterval",Y.tickInterval),r.R50("value",Y.value),r.Y8G("tabIndex",Y.tabindex),r.R7$(2),r.Y8G("ngIf",Y.valueEntry))},dependencies:[f.bT,A.sA,A.UI,M.me,M.BC,M.vS,T.N$,E.Sb],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 #636363;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}"]}),I})()},29824:(je,z,c)=>{"use strict";c.d(z,{L:()=>Q});var r=c(58527),n=c(26537),v=c(72818),h=c(25369),f=c(13090),A=c(16490);function M(ne,Ge){if(1&ne&&r.nrm(0,"div",21),2&ne){const ge=r.XpG();r.Y8G("imageUrl",null==ge.data||null==ge.data.threeQuarterSheetData?null:ge.data.threeQuarterSheetData.backgroundImageUrl)}}function T(ne,Ge){if(1&ne&&(r.j41(0,"div",22)(1,"span",23),r.EFF(2),r.nI1(3,"translate"),r.k0s()()),2&ne){const ge=r.XpG();r.R7$(2),r.JRh(ge.data.threeQuarterSheetData.title.translated?ge.data.threeQuarterSheetData.title.text:r.bMT(3,1,ge.data.threeQuarterSheetData.title.text))}}function E(ne,Ge){if(1&ne&&(r.j41(0,"span",24),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&ne){const ge=r.XpG();r.R7$(),r.JRh(r.i5U(2,1,ge.data.headerText.text,ge.data.translateValues))}}function y(ne,Ge){1&ne&&r.nrm(0,"mat-progress-spinner",25)}function S(ne,Ge){if(1&ne&&(r.j41(0,"div",26),r.nrm(1,"qrcode",27),r.k0s()),2&ne){const ge=r.XpG();r.R7$(),r.Y8G("qrdata",ge.data.image.url)("width",200)("errorCorrectionLevel","M")}}function l(ne,Ge){if(1&ne&&(r.nrm(0,"div",28),r.nI1(1,"translate")),2&ne){const ge=r.XpG();r.Y8G("innerHTML",ge.data.bodyText.translated?ge.data.bodyText.text:r.i5U(1,1,ge.data.bodyText.text,ge.data.bodyText.placeholders),r.npT)}}function s(ne,Ge){if(1&ne&&r.nrm(0,"mat-icon",34),2&ne){const ge=r.XpG().$implicit;r.Y8G("svgIcon",ge.matIcon)}}function u(ne,Ge){if(1&ne&&(r.j41(0,"div",31),r.DNE(1,s,1,1,"mat-icon",32),r.j41(2,"div",33),r.EFF(3),r.k0s()()),2&ne){const ge=Ge.$implicit;r.R7$(),r.Y8G("ngIf",ge.matIcon),r.R7$(2),r.JRh(ge.text)}}function m(ne,Ge){if(1&ne&&(r.j41(0,"div",29),r.DNE(1,u,4,2,"div",30),r.k0s()),2&ne){const ge=r.XpG();r.R7$(),r.Y8G("ngForOf",ge.data.descriptionList)}}function I(ne,Ge){if(1&ne&&(r.j41(0,"div",35)(1,"div",36),r.EFF(2),r.nI1(3,"translate"),r.k0s()()),2&ne){const ge=r.XpG();r.R7$(2),r.JRh(r.bMT(3,1,ge.data.footerText.text))}}function R(ne,Ge){if(1&ne&&r.nrm(0,"img",40),2&ne){const ge=r.XpG(2).$implicit;r.Y8G("src",ge.imageUrl,r.B4B)}}function O(ne,Ge){if(1&ne){const ge=r.RV6();r.j41(0,"button",38),r.bIt("click",function(){r.eBV(ge);const ot=r.XpG().$implicit,dt=r.XpG();return r.Njj(dt.onRadioButtonClick(ot.value))}),r.DNE(1,R,1,1,"img",39),r.EFF(2),r.nI1(3,"translate"),r.k0s()}if(2&ne){const ge=r.XpG().$implicit;r.R7$(),r.Y8G("ngIf",ge.imageUrl),r.R7$(),r.SpI(" ",r.bMT(3,2,ge.value)," ")}}function Y(ne,Ge){if(1&ne&&(r.qex(0),r.DNE(1,O,4,4,"button",37),r.bVm()),2&ne){const ge=Ge.$implicit;r.R7$(),r.Y8G("ngIf",ge)}}function j(ne,Ge){if(1&ne){const ge=r.RV6();r.j41(0,"button",41),r.bIt("click",function(){r.eBV(ge);const ot=r.XpG();return r.Njj(ot.onPrimaryButtonClick())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}if(2&ne){const ge=r.XpG();r.Y8G("disabled",ge.data.primaryButton.isDisabled)("nvAutoFocus",ge.autoFocusOnPrimaryButton),r.R7$(),r.SpI(" ",r.bMT(2,3,ge.data.primaryButton.text)," ")}}function fe(ne,Ge){if(1&ne&&(r.qex(0),r.eu8(1,42),r.bVm()),2&ne){r.XpG();const ge=r.sdS(23);r.R7$(),r.Y8G("ngTemplateOutlet",ge)}}function te(ne,Ge){if(1&ne&&(r.qex(0),r.eu8(1,42)(2,42),r.bVm()),2&ne){r.XpG();const ge=r.sdS(21),Xe=r.sdS(23);r.R7$(),r.Y8G("ngTemplateOutlet",ge),r.R7$(),r.Y8G("ngTemplateOutlet",Xe)}}function ce(ne,Ge){if(1&ne){const ge=r.RV6();r.qex(0),r.j41(1,"button",43),r.bIt("click",function(){const ot=r.eBV(ge).$implicit,dt=r.XpG();return r.Njj(dt.onAugmentedButtonClick(ot.id))}),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.bVm()}if(2&ne){const ge=Ge.$implicit;r.R7$(2),r.SpI(" ",r.bMT(3,1,ge.text)," ")}}function H(ne,Ge){if(1&ne){const ge=r.RV6();r.j41(0,"button",38),r.bIt("click",function(){r.eBV(ge);const ot=r.XpG(2);return r.Njj(ot.onLinkClick(ot.data.link.url,ot.data.link.shortUrl,ot.data.link.shortUrlDescription,ot.data.link.linkClickedCallback))}),r.j41(1,"span"),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"i",46),r.EFF(5,"open_in_new"),r.k0s()()}if(2&ne){const ge=r.XpG(2);r.R7$(2),r.JRh(r.i5U(3,1,ge.data.link.text,ge.data.link.placeholders))}}function Z(ne,Ge){if(1&ne&&(r.j41(0,"div",44),r.nrm(1,"md-divider",45),r.DNE(2,H,6,4,"button",37),r.k0s()),2&ne){const ge=r.XpG();r.R7$(2),r.Y8G("ngIf",ge.data.link.url||ge.data.link.linkClickedCallback)}}function X(ne,Ge){if(1&ne){const ge=r.RV6();r.j41(0,"button",43),r.bIt("click",function(){r.eBV(ge);const ot=r.XpG(2);return r.Njj(ot.onSecondaryButtonClick())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}if(2&ne){const ge=r.XpG(2);r.R7$(),r.SpI(" ",r.bMT(2,1,ge.data.secondaryButton.text)," ")}}function ue(ne,Ge){if(1&ne&&r.DNE(0,X,3,3,"button",47),2&ne){const ge=r.XpG();r.Y8G("ngIf",ge.data.secondaryButton)}}function Me(ne,Ge){if(1&ne){const ge=r.RV6();r.j41(0,"button",43),r.bIt("click",function(){r.eBV(ge);const ot=r.XpG(2);return r.Njj(ot.onCheckboxClick())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}if(2&ne){const ge=r.XpG(2);r.R7$(),r.SpI(" ",r.bMT(2,1,ge.data.checkbox.text)," ")}}function be(ne,Ge){if(1&ne&&r.DNE(0,Me,3,3,"button",47),2&ne){const ge=r.XpG();r.Y8G("ngIf",ge.data.checkbox)}}let Q=(()=>{var ne;class Ge extends h.D{get autoFocusOnPrimaryButton(){return this.data.autoFocusOnPrimaryButton??!0}static open(Xe,ot){return ot.maxWidth="100vw",(0,v.SN)(ot,{threeQuarterSheet:!0}),Xe.open(Ge,{...ot,width:"100%",height:"100%"})}constructor(Xe,ot,dt,xe,Re){super(dt,xe,Xe,Re),this.offDeviceLinkService=ot,this.primaryButtonClick=new r.bkB,this.secondaryButtonClick=new r.bkB,this.radioButtonClick=new r.bkB,this.augmentedButtonClick=new r.bkB,this.linkClick=new r.bkB,this.data={},this.data=Xe.get(n.Vh,null)}onPrimaryButtonClick(Xe){this.primaryButtonClick.emit(Xe)}onSecondaryButtonClick(Xe){this.secondaryButtonClick.emit(Xe)}onCheckboxClick(){this.data.checkboxState=!0,(this.data.checkbox.primaryActionInThreeQuarterSheet?this.primaryButtonClick:this.secondaryButtonClick).emit()}onRadioButtonClick(Xe){this.data.radioOptionSelected=Xe,this.radioButtonClick.emit(),this.primaryButtonClick.emit()}onLinkClick(Xe,ot,dt,xe){Xe?this.offDeviceLinkService.open(Xe,{shortUrl:ot,shortUrlDescription:dt,threeQuarterSheetData:this.data?.threeQuarterSheetData}):xe&&xe(),this.linkClick.emit()}onAugmentedButtonClick(Xe){this.augmentedButtonClick.emit(Xe)}}return(ne=Ge).\u0275fac=function(Xe){return new(Xe||ne)(r.rXU(r.zZn),r.rXU(f.n),r.rXU(n.CP,8),r.rXU(A.eN,8),r.rXU(r.SKi))},ne.\u0275cmp=r.VBU({type:ne,selectors:[["nv-hig-three-quarter-sheet"]],inputs:{data:"data"},outputs:{primaryButtonClick:"primaryButtonClick",secondaryButtonClick:"secondaryButtonClick",radioButtonClick:"radioButtonClick",augmentedButtonClick:"augmentedButtonClick",linkClick:"linkClick"},features:[r.Vt3],decls:24,vars:19,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"],["fxLayout","row","fxLayoutAlign","end end",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"],["fxLayout","row","fxLayoutAlign","end end"],[1,"font-body3"],["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"],["mat-button","",1,"sentence-case",3,"click"],["fxLayout","column","fxLayoutGap","16px"],["role","separator",1,"separator"],[1,"material-icons","link-icon"],["mat-button","","class","sentence-case",3,"click",4,"ngIf"]],template:function(Xe,ot){if(1&Xe&&(r.j41(0,"div",2),r.DNE(1,M,1,1,"div",3),r.j41(2,"div",4),r.DNE(3,T,4,3,"div",5),r.j41(4,"div",6),r.DNE(5,E,3,4,"span",7),r.j41(6,"div",8),r.DNE(7,y,1,0,"mat-progress-spinner",9)(8,S,2,3,"div",10),r.j41(9,"div",11),r.DNE(10,l,2,4,"div",12)(11,m,2,1,"div",13),r.k0s()()(),r.DNE(12,I,4,3,"div",14),r.k0s(),r.j41(13,"div",15),r.DNE(14,Y,2,1,"ng-container",16)(15,j,3,5,"button",17)(16,fe,2,1,"ng-container",18)(17,te,3,2,"ng-container",19)(18,ce,4,3,"ng-container",16)(19,Z,3,1,"div",20)(20,ue,1,1,"ng-template",null,0,r.C5r)(22,be,1,1,"ng-template",null,1,r.C5r),r.k0s()()),2&Xe){const dt=r.sdS(21);r.R7$(),r.Y8G("ngIf",null==ot.data||null==ot.data.threeQuarterSheetData?null:ot.data.threeQuarterSheetData.backgroundImageUrl),r.R7$(),r.AVh("translucent",null==ot.data||null==ot.data.threeQuarterSheetData?null:ot.data.threeQuarterSheetData.backgroundImageUrl),r.R7$(),r.Y8G("ngIf",null==ot.data||null==ot.data.threeQuarterSheetData?null:ot.data.threeQuarterSheetData.title),r.R7$(2),r.Y8G("ngIf",ot.data.headerText),r.R7$(2),r.Y8G("ngIf",ot.data.showSpinner),r.R7$(),r.Y8G("ngIf",null==ot.data.image?null:ot.data.image.url),r.R7$(2),r.Y8G("ngIf",ot.data.bodyText),r.R7$(),r.Y8G("ngIf",ot.data.descriptionList),r.R7$(),r.Y8G("ngIf",ot.data.footerText),r.R7$(),r.AVh("translucent",null==ot.data||null==ot.data.threeQuarterSheetData?null:ot.data.threeQuarterSheetData.backgroundImageUrl),r.R7$(),r.Y8G("ngForOf",ot.data.radioButtonOptions),r.R7$(),r.Y8G("ngIf",ot.data.primaryButton&&!ot.data.radioButtonOptions),r.R7$(),r.Y8G("ngIf",null==ot.data.checkbox?null:ot.data.checkbox.primaryActionInThreeQuarterSheet),r.R7$(),r.Y8G("ngIf",ot.data.checkbox&&!ot.data.checkbox.primaryActionInThreeQuarterSheet)("ngIfElse",dt),r.R7$(),r.Y8G("ngForOf",null==ot.data.threeQuarterSheetData?null:ot.data.threeQuarterSheetData.augmentedButtons),r.R7$(),r.Y8G("ngIf",ot.data.link)}},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)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-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;background:#393939;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-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:16px;line-height:24px;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-size:32px;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:#000000e6}.main-dialog-sheet[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{text-align:start;height:96px;border-radius:8px;white-space:normal;font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:14px;line-height:20px;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-size:28px;line-height:40px}.main-dialog-sheet[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .separator[_ngcontent-%COMP%]{margin-top:4px}.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}"]}),Ge})()},25369:(je,z,c)=>{"use strict";c.d(z,{D:()=>E});var r=c(26537),n=c(16490),v=c(80583),h=c(8619),f=c(65706),A=c(4208),M=c(40482),T=c(58527);let E=(()=>{var y;class S{constructor(s,u,m,I){this.dialogRef=s,this.bottomSheetRef=u,this.injector=m,this.ngZone=I,this.destroy$=new v.B7}ngAfterViewInit(){const s=this.dialogRef?this.injector.get(r.Vh,null):this.bottomSheetRef?this.injector.get(n.yj,null):void 0,u=this.dialogRef??this.bottomSheetRef;!u||s?.disableBackToClose||this.ngZone.runOutsideAngular(()=>{u.keydownEvents().pipe((0,h.p)(M.Nw),(0,f.s)(1),(0,A.Q)(this.destroy$)).subscribe(m=>{m.stopPropagation(),m.preventDefault(),this.close(m)})})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}close(s){const u=("function"==typeof this.backToCloseResult?this.backToCloseResult():this.backToCloseResult)??s;this.dialogRef?.close(u),this.bottomSheetRef?.dismiss(u)}}return(y=S).\u0275fac=function(s){return new(s||y)(T.rXU(r.CP,8),T.rXU(n.eN,8),T.rXU(T.zZn),T.rXU(T.SKi))},y.\u0275dir=T.FsC({type:y,selectors:[["","nvBackToCloseModal",""]],inputs:{backToCloseResult:"backToCloseResult"}}),S})()},60543:(je,z,c)=>{"use strict";c.d(z,{f:()=>u});var r=c(6364),n=c(80583),v=c(36877),h=c(15652),f=c(4208),A=c(65706),M=c(87781),T=c(97557),E=c(58527),y=c(94222),S=c(3816),l=c(21684);let u=(()=>{var m;class I{get enabled(){return this._enabled}set enabled(O){this._enabled=(0,r.he)(O)}get enableKeyThrottle(){return this._enableKeyThrottle}set enableKeyThrottle(O){this._enableKeyThrottle=(0,r.he)(O)}constructor(O,Y,j,fe,te,ce){this.spatialNavigationService=O,this.elementRef=Y,this.localeService=j,this.focusManager=fe,this.ngZone=ce,this.spacingTop=0,this.spacingBottom=0,this.spacingLeft=0,this.spacingRight=0,this._enabled=!0,this._enableKeyThrottle=!0,this.cancelScrolling$=new n.B7,this.destroy$=new n.B7,this.navBeforeFocus=H=>{if(!(this.enabled&&H.target instanceof HTMLElement))return;const Z=this.scrollerElement,X=this.orientation;if(!Z||!X)return;const ue=H.target;if(!Z.contains(ue))return;const Me=Z.getBoundingClientRect(),be=ue.getBoundingClientRect();if(this.isVisibleInScroller(be,Me,X))return;H.preventDefault();const Q=this.calculateRequiredScrollAmount(be,Me,X);if(0===Q)return;this.focusManager.focusViaLastOrigin(ue,{preventScroll:!0});const{x:ne,y:Ge}=this.getDestinationCoordinates(Q);this.isScrolling&&this.cancelScrolling$.next();const ge=new T.t(this.scrollerElement,ne,Ge,{easingFunction:M.p_,duration:96,rtlEnabled:this.localeService.isRTLLayoutEnabled});this.enableKeyThrottle&&(0,v.R)(ue,"keydown",{capture:!0}).pipe((0,f.Q)((0,h.O4)(ge.onScrollEnd(),this.cancelScrolling$,this.destroy$))).subscribe(this.swallowKeydownEvent),this.doScrolling(ge)},this.logger=te.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(O,Y,j){return"horizontal"===j&&O.left>=Y.left&&O.right<=Y.right||"vertical"===j&&O.top>=Y.top&&O.bottom<=Y.bottom}calculateRequiredScrollAmount(O,Y,j){let fe=0;return fe="horizontal"===j?O.left<Y.left?O.left-this.spacingLeft-Y.left:O.right+this.spacingRight-Y.right:O.top<Y.top?O.top-this.spacingTop-Y.top:O.bottom+this.spacingBottom-Y.bottom,fe}getDestinationCoordinates(O){let Y=this.scrollerElement.scrollLeft,j=this.scrollerElement.scrollTop;return"horizontal"===this.orientation?Y+=O:j+=O,{x:Y,y:j}}swallowKeydownEvent(O){O.stopPropagation(),O.preventDefault()}doScrolling(O){O.onScrollEnd().pipe((0,A.s)(1),(0,f.Q)((0,h.O4)(this.destroy$,this.cancelScrolling$))).subscribe(()=>{this.isScrolling=!1}),O.onScrollStart().pipe((0,A.s)(1),(0,f.Q)((0,h.O4)(this.destroy$,this.cancelScrolling$))).subscribe(()=>{this.isScrolling=!0}),O.start().pipe((0,f.Q)((0,h.O4)(this.cancelScrolling$,this.destroy$))).subscribe()}}return(m=I).\u0275fac=function(O){return new(O||m)(E.rXU(y.E),E.rXU(E.aKT),E.rXU(S.iH),E.rXU(l.c),E.rXU(S.J6),E.rXU(E.SKi))},m.\u0275dir=E.FsC({type:m,inputs:{spacingTop:"spacingTop",spacingBottom:"spacingBottom",spacingLeft:"spacingLeft",spacingRight:"spacingRight",enabled:[E.Mj6.None,"enableFocusThenScroll","enabled"],enableKeyThrottle:"enableKeyThrottle"}}),I})()},54504:(je,z,c)=>{"use strict";c.d(z,{a:()=>v});var r=c(44186),n=c(58527);let v=(()=>{var h;class f{constructor(M,T,E){this.elementRef=M,this.renderer=T,this.matTooltip=E,this.isTooltipEnabled=!0,this.isMultiLineEllipsis=!1}ngOnInit(){this.domElement=this.elementRef.nativeElement;const M={"text-overflow":"ellipsis",overflow:"hidden","white-space":this.isMultiLineEllipsis?"wrap":"nowrap"};Object.keys(M).forEach(T=>{this.renderer.setStyle(this.domElement,`${T}`,M[T])})}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()}}return(h=f).\u0275fac=function(M){return new(M||h)(n.rXU(n.aKT),n.rXU(n.sFG),n.rXU(r.oV))},h.\u0275dir=n.FsC({type:h,selectors:[["","nvEllipsifiedTextWithTooltip",""]],hostBindings:function(M,T){1&M&&n.bIt("mouseover",function(){return T.onMouseOver()})("mouseout",function(){return T.onMouseOut()})},inputs:{tooltipClass:"tooltipClass",isTooltipEnabled:"isTooltipEnabled",isMultiLineEllipsis:"isMultiLineEllipsis"},features:[n.Jv_([r.oV])]}),f})()},69996:(je,z,c)=>{"use strict";c.d(z,{u:()=>y});var r=c(33420),n=c(73318),v=c(80583),h=c(36877),f=c(8619),A=c(4208),M=c(6364),T=c(58527),E=c(94222);let y=(()=>{var S;class l{get enableFastNavigation(){return this._enalbeFastNavigation}set enableFastNavigation(u){this._enalbeFastNavigation=(0,M.he)(u)}get orientation(){return this._orientation}set orientation(u){this._orientation=u}get containFocus(){return this._containFocus}set containFocus(u){this._containFocus=Array.isArray(u)?u:(0,M.he)(u)}get isRTL(){return this._isRTL}set isRTL(u){this._isRTL=(0,M.he)(u)}constructor(u,m,I){this.container=u,this.spatialNavigationService=m,this.ngZone=I,this._enalbeFastNavigation=!0,this._orientation="horizontal",this._containFocus=!1,this._isRTL=!1,this.destroy$=new v.B7}ngAfterViewInit(){this.spatialNavigationService.enabled&&this.ngZone.runOutsideAngular(()=>{(0,h.R)(this.container.nativeElement,"keydown").pipe((0,f.p)(this.checkDirection.bind(this)),(0,A.Q)(this.destroy$)).subscribe(this.onKeydown.bind(this))})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkDirection(u){return"horizontal"===this.orientation?"ArrowLeft"===u.key||"ArrowRight"===u.key:"vertical"===this.orientation&&("ArrowUp"===u.key||"ArrowDown"===u.key)}getOffset(u){let m=0;return"horizontal"===this.orientation?(m="ArrowLeft"===u?-1:1,m*=this.isRTL?-1:1):"vertical"===this.orientation&&(m="ArrowDown"===u?1:-1),m}onKeydown(u){if(!this.enableFastNavigation)return;const m=u.key,I=this.getOffset(m),R=this.getCurrentFocusedIndex();if(R<0)return;const O=R+I,Y=(0,n.G2)(m);let j=!1;!this.isOutofBoundary(O)&&this.items.get(O).focusableElement?(this.items.get(O).focus(Y),j=!0):j=this.spatialNavigationService.shouldContainFocus(Y,this.containFocus),j&&(u.preventDefault(),u.stopPropagation())}isOutofBoundary(u){return u<0||u>=this.items.length}getCurrentFocusedIndex(){let u=document.activeElement;for(;u&&u!==this.container.nativeElement;){if(u.hasAttribute("nvFastSpatialNavigationItem")){const m=this.items.toArray().findIndex(I=>I?.elementRef?.nativeElement===u);if(-1!==m)return m}u=u.parentElement}return-1}}return(S=l).\u0275fac=function(u){return new(u||S)(T.rXU(T.aKT),T.rXU(E.E),T.rXU(T.SKi))},S.\u0275dir=T.FsC({type:S,selectors:[["","nvFast1DSpatialNavigation",""]],contentQueries:function(u,m,I){if(1&u&&T.wni(I,r.n,5),2&u){let R;T.mGM(R=T.lsd())&&(m.items=R)}},inputs:{enableFastNavigation:"enableFastNavigation",orientation:"orientation",containFocus:"containFocus",isRTL:"isRTL"}}),l})()},33420:(je,z,c)=>{"use strict";c.d(z,{n:()=>h});var r=c(58527),n=c(21684),v=c(94222);let h=(()=>{var f;class A{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(T,E,y){this.focusManager=E,this.spatialNavigationService=y,this._focusableElement=null,this._elementRef=T}focus(T){this.focusManager.navigateTo(this.focusableElement,T)}}return(f=A).\u0275fac=function(T){return new(T||f)(r.rXU(r.aKT),r.rXU(n.c),r.rXU(v.E))},f.\u0275dir=r.FsC({type:f,selectors:[["","nvFastSpatialNavigationItem",""]]}),A})()},14605:(je,z,c)=>{"use strict";c.d(z,{b:()=>M});var r=c(80583),n=c(4208),v=c(6364),h=c(58527),f=c(21684),A=c(37278);let M=(()=>{var T;class E{get enableFocusBack(){return this._enableFocusBack}set enableFocusBack(S){this._enableFocusBack=(0,v.he)(S)}get scrollPosition(){return this.scroller?.measureScrollOffset()}constructor(S,l,s){this.elementRef=S,this.focusManager=l,this.scroller=s,this._enableFocusBack=!0,this.destroy$=new r.B7}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}onKeydownEvent(S){this.enableFocusBack&&(S.stopPropagation(),this.focusInitialFocusable())}focusInitialFocusable(){if(this.scroller){const S=this.scroller.elementRef.nativeElement;0===this.scrollPosition?this.focusManager.focusChild(S,"initial"):this.elementScrolledSub||this.scrollThenFocusInitialFocusable(S)}else this.focusManager.focusChild(this.elementRef.nativeElement,"initial")}scrollThenFocusInitialFocusable(S){let l=this.scrollPosition;this.elementScrolledSub=this.scroller.elementScrolled().pipe((0,n.Q)(this.destroy$)).subscribe(()=>{0===this.scrollPosition||this.scrollPosition>l?(0===this.scrollPosition&&this.focusManager.focusChild(S,"initial"),this.elementScrolledSub.unsubscribe(),this.elementScrolledSub=void 0):l=this.scrollPosition}),this.scroller.scrollToIndex(0,"auto")}}return(T=E).\u0275fac=function(S){return new(S||T)(h.rXU(h.aKT),h.rXU(f.c),h.rXU(A.d6,8))},T.\u0275dir=h.FsC({type:T,selectors:[["","nvFocusBack",""]],hostBindings:function(S,l){1&S&&h.bIt("keydown.escape",function(u){return l.onKeydownEvent(u)})},inputs:{enableFocusBack:"enableFocusBack"},exportAs:["nvFocusBack"]}),E})()},97888:(je,z,c)=>{"use strict";c.d(z,{Aq:()=>R});var r=c(58527),n=c(6364),v=c(40482),h=c(11013),f=c(72653),A=c(92994),T=function(O){return O[O.Off=0]="Off",O[O.FocusIn=1]="FocusIn",O[O.On=2]="On",O[O.FocusOut=3]="FocusOut",O}(T||{});const E=["focus"],y=["blur"];function l({rippleRef:O,rectRef:Y,targetWidth:j,targetHeight:fe,borderWidth:te}){const ce=O.nativeElement,H=Y.nativeElement,Z=function S(O){const Y=O.width/2,j=O.height/2;return Math.sqrt(Y*Y+j*j)}({width:j,height:fe});ce.style.height=2*Z+"px",ce.style.width=2*Z+"px",H.style.height=fe-2*te+"px",H.style.width=j-2*te+"px"}const s={enterDuration:140,exitDuration:140};class I{constructor(Y,j,fe,te,ce,H){this._target=Y,this._ngZone=j,this._platform=te,this.borderWidth=ce,this.inputModalityService=H,this.eventListeners={},this.focusAnimState=T.Off,this.clearListeners=()=>{this._currentRippleRef?.nativeElement.removeEventListener("transitionend",this.eventListeners.onTransitionEnd),this._currentRippleRef?.nativeElement.removeEventListener("transitioncancel",this.eventListeners.onTransitionCancel)},te.isBrowser&&(this._containerElement=(0,n.i8)(fe))}focusInRipple(Y){this.tearDown(),this._containerElement.classList.add("nv-focus-ripple-cta-btn"),this._containerElement.classList.add("focus-green-text");const j=Y.animation,fe=this.borderWidth,te=this._containerElement.getBoundingClientRect(),ce=document.createElement("div");ce.classList.add("nv-ripple-center","nv-ripple-element");const H=document.createElement("div");H.classList.add("nv-ripple-center","nv-ripple-rect");const Z=new r.aKT(ce),X=new r.aKT(H);l({rippleRef:Z,rectRef:X,targetWidth:te.width,targetHeight:te.height,borderWidth:fe}),H.style.opacity="0.5",ce.style.opacity="0",ce.style.backgroundColor=Y.color,H.style.backgroundColor=Y.color,ce.style.transitionDuration=`${j.enterDuration}ms`,H.style.transitionDuration=`${j.enterDuration}ms`,this._containerElement.appendChild(ce),this._containerElement.appendChild(H),this._containerElement.getBoundingClientRect(),ce.style.transform="scale3d(1, 1, 1)",ce.style.opacity="0.5",H.style.transform="scale3d(1, 1, 1)",H.style.opacity="1",this.focusAnimState=T.FocusIn,this._currentRippleRef=Z,this._currentRectRef=X,this._ngZone.runOutsideAngular(()=>{const ue=be=>{"opacity"===be.propertyName&&(this.clearListeners(),this.focusAnimState=T.On,this._currentRectRef.nativeElement.style.border=`${fe}px solid ${Y.borderColor}`,this.observer=new ResizeObserver(([{borderBoxSize:[{inlineSize:Q,blockSize:ne}]}])=>{(Q!==te.width||ne!==te.height)&&l({rippleRef:this._currentRippleRef,rectRef:this._currentRectRef,targetWidth:Q,targetHeight:ne,borderWidth:fe})}),this.observer.observe(this._containerElement))},Me=be=>{"opacity"===be.propertyName&&this.tearDown()};this.eventListeners={onTransitionCancel:Me,onTransitionEnd:ue},this._currentRippleRef.nativeElement.addEventListener("transitionend",ue),this._currentRippleRef.nativeElement.addEventListener("transitioncancel",Me)})}tearDown(){this.clearListeners(),this._destroyRipples(),this.observer?.disconnect(),this.observer=null}focusOutRipple(){this.observer?.disconnect(),this.clearListeners();const Y=this._currentRippleRef.nativeElement,j=this._currentRectRef.nativeElement;!j||!Y||(j.style.border="none",Y.style.transform="scale3d(0, 0, 0)",Y.style.opacity="0",j.style.transform="scale3d(0, 0, 0)",j.style.opacity="0.5",this._containerElement.classList.remove("focus-green-text"),this.focusAnimState=T.FocusOut,this._ngZone.runOutsideAngular(()=>{const fe=H=>{"opacity"===H.propertyName&&this.tearDown()},te=H=>{fe(H)},ce=H=>{fe(H)};this.eventListeners={onTransitionCancel:ce,onTransitionEnd:te},this._currentRippleRef.nativeElement.addEventListener("transitionend",te),this._currentRippleRef.nativeElement.addEventListener("transitioncancel",ce)}))}setupTriggerEvents(Y){const j=(0,n.i8)(Y);!this._platform.isBrowser||!j||j===this._triggerElement||(this.removeTriggerEvents(),this._triggerElement=j,E.forEach(fe=>{I._eventManager.addHandler(this._ngZone,fe,j,this)}),y.forEach(fe=>{I._eventManager.addHandler(this._ngZone,fe,j,this)}))}removeTriggerEvents(){const Y=this._triggerElement;Y&&(E.forEach(j=>I._eventManager.removeHandler(j,Y,this)),y.forEach(j=>I._eventManager.removeHandler(j,Y,this)))}handleEvent(Y){const j=this.inputModalityService.lastFocusOrigin;if("keyboard"===j||"program"===j)if(E.includes(Y.type)){if(this.focusAnimState===T.On||this.focusAnimState===T.FocusIn)return;this._onFocusIn()}else if(y.includes(Y.type)){if(this.focusAnimState===T.Off||this.focusAnimState===T.FocusOut)return;this._onFocusOut()}}_destroyRipples(){this.focusAnimState=T.Off,this._currentRippleRef?.nativeElement?.remove(),this._currentRectRef?.nativeElement?.remove(),this._currentRippleRef=null,this._currentRectRef=null,this._containerElement.classList.remove("nv-focus-ripple-cta-btn")}_onFocusIn(){const Y=this._target.rippleConfig.animation;(Y.enterDuration||Y.exitDuration)&&this.focusInRipple(this._target.rippleConfig)}_onFocusOut(){const Y=this._target.rippleConfig.animation;(Y.enterDuration||Y.exitDuration)&&this.focusOutRipple()}}I._eventManager=new v.EU;let R=(()=>{var O;class Y{get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(fe){this._trigger=fe,this._setupTriggerEventsIfEnabled()}get flagEnabled(){return this._flagEnabled}set flagEnabled(fe){this._flagEnabled=(0,n.he)(fe)}get disableRipple(){return!this.focusRippleEnabled||!this._flagEnabled}constructor(fe,te,ce,H,Z){this._elementRef=fe,this.animation=s,this.color="#2c3220",this.borderColor="#76b900",this._flagEnabled=!0,this._isInitialized=!1,this.focusRippleEnabled=!!Z.focusRippleEnabled,!this.disableRipple&&(this._rippleRenderer=new I(this,te,fe,ce,Z?.focusRippleBorderWidth,H))}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)}}return(O=Y).\u0275fac=function(fe){return new(fe||O)(r.rXU(r.aKT),r.rXU(r.SKi),r.rXU(f.OD),r.rXU(A.p),r.rXU(h.X,8))},O.\u0275dir=r.FsC({type:O,selectors:[["button","color","accent"],["button","mat-raised-button",""],["button",8,"mat-accent"],["","nvFocusRipple",""]],inputs:{animation:[r.Mj6.None,"nvRippleAnimation","animation"],color:[r.Mj6.None,"nvRippleColor","color"],borderColor:[r.Mj6.None,"nvRippleBorderColor","borderColor"],trigger:[r.Mj6.None,"nvRippleTrigger","trigger"],flagEnabled:[r.Mj6.None,"nvFocusRipple","flagEnabled"]}}),Y})()},40514:(je,z,c)=>{"use strict";c.d(z,{e:()=>s});var r=c(80583),n=c(36877),v=c(16229),h=c(8619),f=c(91384),A=c(4208),M=c(10174),T=c(65706),E=c(11013),y=c(40482),S=c(58527),l=c(62293);let s=(()=>{var u;class m{constructor(R,O,Y,j){this.elementRef=R,this.userActivationGuardService=O,this.ngZone=Y,this.destroy$=new r.B7,this.enable=!1,this.enable=!!j?.userActivationGuardConfig?.link,this.message=j?.userActivationGuardConfig?.linkWarningMessage}ngAfterViewInit(){!this.enable||!this.message||this.ngZone.runOutsideAngular(()=>{(0,n.R)(this.elementRef.nativeElement,"click").pipe((0,h.p)(R=>this.isLink(R.target)),(0,h.p)(R=>!(0,y.Ls)(R)),(0,f.M)(()=>{this.displayWarningMessage()}),(0,A.Q)(this.destroy$)).subscribe(R=>{R.preventDefault()})})}isLink(R){return"A"===R.tagName&&R.hasAttribute("href")}displayWarningMessage(){if(this.isWarningDisplayed)return;const R=this.userActivationGuardService.displayWarning(this.message);(0,v.h)(R.afterOpened().pipe((0,M.u)(!0)),R.afterDismissed().pipe((0,M.u)(!1))).pipe((0,T.s)(2),(0,A.Q)(this.destroy$)).subscribe(O=>{this.isWarningDisplayed=O})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(u=m).\u0275fac=function(R){return new(R||u)(S.rXU(S.aKT),S.rXU(l.g),S.rXU(S.SKi),S.rXU(E.X,8))},u.\u0275dir=S.FsC({type:u,selectors:[["","nvHyperLinkGuard",""],["a","href",""],["","innerHTML",""]]}),m})()},54676:(je,z,c)=>{"use strict";c.d(z,{Sb:()=>s,tG:()=>T}),c(40482);var n=c(58527),v=c(49678),h=c(62141),f=c(33955),M=(c(94222),c(13186));let T=(()=>{var R;class O{constructor(j,fe,te,ce){this.el=j,this.radio=fe,this.slide=te,this.check=ce}keydownEvent(j){j.target===(this.radio?._inputElement?.nativeElement??this.slide?._inputElement.nativeElement??this.check?._inputElement.nativeElement??this.el.nativeElement)&&("Enter"===j.key||" "===j.key)&&(this.radio?this.radio._onInputInteraction(j):this.slide?(this.slide._inputElement.nativeElement.checked=!this.slide.checked,this.slide._onChangeEvent(j)):this.check?this.check._onInputClick(j):this.el.nativeElement.click(),j.preventDefault(),j.stopPropagation())}}return(R=O).\u0275fac=function(j){return new(j||R)(n.rXU(n.aKT),n.rXU(v._g,8),n.rXU(h.P2,8),n.rXU(f.NZ,8))},R.\u0275dir=n.FsC({type:R,selectors:[["","nvAddKeyboardActivate",""],["mat-slide-toggle"],["mat-radio-button"],["mat-checkbox"],["a",3,"href",""]],hostBindings:function(j,fe){1&j&&n.bIt("keydown",function(ce){return fe.keydownEvent(ce)})}}),O})(),s=(()=>{var R;class O{constructor(j){this.slider=j}ngAfterViewInit(){this.slider&&setTimeout(()=>{const j=this.slider._onKeydown.bind(this.slider);this.slider._onKeydown=fe=>{"ArrowUp"!==fe.key&&"ArrowDown"!==fe.key&&j(fe)}},150)}}return(R=O).\u0275fac=function(j){return new(j||R)(n.rXU(M.N$))},R.\u0275dir=n.FsC({type:R,selectors:[["mat-slider","nvMatSliderKeyboardFixup",""]]}),O})()},60990:(je,z,c)=>{"use strict";c.d(z,{r:()=>v});var r=c(58527),n=c(13090);let v=(()=>{var h;class f{constructor(M){this.offDeviceLinkService=M}onClick(M){const T=M.target;this.offDeviceLinkService.enabled&&T instanceof HTMLAnchorElement&&T.href&&(M.preventDefault(),this.offDeviceLinkService.open(T.href,{shortUrl:this.shortUrl}))}}return(h=f).\u0275fac=function(M){return new(M||h)(r.rXU(n.n))},h.\u0275dir=r.FsC({type:h,selectors:[["","nvOffDeviceLink",""],["a","href",""],["","innerHTML",""]],hostBindings:function(M,T){1&M&&r.bIt("click",function(y){return T.onClick(y)})},inputs:{shortUrl:"shortUrl"}}),f})()},2218:(je,z,c)=>{"use strict";c.d(z,{$:()=>M,R:()=>A});var r=c(6364),n=c(58527),v=c(94222),h=c(21684),f=c(3816);let A=(()=>{var T;class E{get containFocus(){return this._containFocus}set containFocus(S){this._containFocus=Array.isArray(S)?S.slice():(0,r.he)(S)}get captureFocusForChild(){return this._captureFocusForChild}set captureFocusForChild(S){this._captureFocusForChild=(0,r.he)(S),this.updateTabIndex()}get autoDisableCaptureIfNoChild(){return this._autoDisableCaptureIfNoChild}set autoDisableCaptureIfNoChild(S){this._autoDisableCaptureIfNoChild=(0,r.he)(S)}get enableSmoothScrolling(){return this._enableSmoothScrolling}set enableSmoothScrolling(S){this._enableSmoothScrolling=(0,r.he)(S)}constructor(S,l,s,u,m){this.element=S,this.spatialNavigationService=l,this.focusManager=s,this.ngZone=u,this.navigateFunction="grid",this.navigateAction="auto",this._containFocus=!0,this._captureFocusForChild=!1,this.captureAndTransitFocusPolicy="initial",this._autoDisableCaptureIfNoChild=!1,this._enableSmoothScrolling=!0,this.navBeforeFocus=I=>{if(this.captureFocusForChild){let R=I.target===this.element.nativeElement;if(this.autoDisableCaptureIfNoChild&&!this.spatialNavigationService.isFocusable(this.element.nativeElement)&&(this.updateTabIndex(),R=R||!this.element.nativeElement.contains(document.activeElement)),!R)return;let O=null;if("closest"===this.captureAndTransitFocusPolicy){const Y=document.activeElement===document.body?this.element.nativeElement:document.activeElement;O=this.spatialNavigationService.getClosestChild(Y,this.element.nativeElement,I.detail.dir)}else{const Y=this.spatialNavigationService.isFocusable.bind(this.spatialNavigationService);O="first"===this.captureAndTransitFocusPolicy?this.focusManager.getFirstFocusableChild(this.element.nativeElement,Y):this.focusManager.getInitialFocusable(this.element.nativeElement,Y)}if(!O||O===this.element.nativeElement){let Y="";O?O===this.element.nativeElement&&(Y=`focus is on the container, container=${this.element.nativeElement.tagName}, containerClass=${this.element.nativeElement.className}`):Y="target not found",this.logger.info(`possible focus lost. reason=${Y}`)}I.preventDefault(),I.stopPropagation(),O&&O!==this.element.nativeElement?this.focusManager.navigateTo(O,I.detail.dir):this.autoDisableCaptureIfNoChild&&(this.updateTabIndex(),this.spatialNavigationService.navigate(I.detail.dir))}},this.navNoTarget=I=>{this.spatialNavigationService.shouldContainFocus(I.detail.dir,this.containFocus)&&I.target===this.element.nativeElement&&I.preventDefault()},this.logger=m.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.element){const S=this.captureFocusForChild&&this.autoDisableCaptureIfNoChild?!!this.focusManager.getInitialFocusable(this.element.nativeElement,this.spatialNavigationService.isFocusable.bind(this.spatialNavigationService)):this.captureFocusForChild;this.element.nativeElement.tabIndex=S?0:-1}}}return(T=E).\u0275fac=function(S){return new(S||T)(n.rXU(n.aKT),n.rXU(v.E),n.rXU(h.c),n.rXU(n.SKi),n.rXU(f.J6))},T.\u0275dir=n.FsC({type:T,selectors:[["","nvSpatialNavigationContainer",""]],inputs:{navigateFunction:"navigateFunction",navigateAction:"navigateAction",containFocus:"containFocus",captureFocusForChild:"captureFocusForChild",captureAndTransitFocusPolicy:"captureAndTransitFocusPolicy",autoDisableCaptureIfNoChild:"autoDisableCaptureIfNoChild",enableSmoothScrolling:"enableSmoothScrolling"}}),E})(),M=(()=>{var T;class E{get enableSmoothScrolling(){return this._enableSmoothScrolling}set enableSmoothScrolling(S){this._enableSmoothScrolling=(0,r.he)(S)}constructor(S,l){this.element=S,this.spatialNavigationService=l,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)}}return(T=E).\u0275fac=function(S){return new(S||T)(n.rXU(n.aKT),n.rXU(v.E))},T.\u0275dir=n.FsC({type:T,selectors:[["","nvSpatialNavigationGroup",""]],inputs:{navigateFunction:"navigateFunction",navigateAction:"navigateAction",enableSmoothScrolling:"enableSmoothScrolling"}}),E})()},16924:(je,z,c)=>{"use strict";c.d(z,{o:()=>M});var r=c(60543),n=c(58527),v=c(37278),h=c(94222),f=c(21684),A=c(3816);let M=(()=>{var T;class E extends r.f{constructor(S,l,s,u,m,I,R){super(l,m,u,s,I,R),this.scroller=S}get orientation(){return this.scroller.orientation}get scrollerElement(){return this.scroller.getElementRef().nativeElement}}return(T=E).\u0275fac=function(S){return new(S||T)(n.rXU(v.d6),n.rXU(h.E),n.rXU(f.c),n.rXU(A.iH),n.rXU(n.aKT),n.rXU(A.J6),n.rXU(n.SKi))},T.\u0275dir=n.FsC({type:T,selectors:[["","nvSpatialNavigationVirtualScroll",""],["cdk-virtual-scroll-viewport","nvSpatialNavigationContainer","","navigateAction","focus"],["cdk-virtual-scroll-viewport","nvSpatialNavigationGroup","","navigateAction","focus"]],features:[n.Vt3]}),E})()},81247:(je,z,c)=>{"use strict";c.d(z,{D:()=>y});var E,r=c(80583),n=c(57258),v=c(4208),h=c(6364),f=c(58527),A=c(31308),M=c(21684),T=c(94222);class y{get forceEnable(){return this._forceEnable}set forceEnable(l){this._forceEnable=(0,h.he)(l)}static get topFocusTrap(){const l=y.focusTraps,s=l.length;return s>0?l[s-1]:void 0}constructor(l,s,u,m){this.focusMonitor=l,this.elementRef=s,this.focusManager=u,this.spatialNavigationService=m,this._forceEnable=!1,this.destroy$=new r.B7}ngAfterViewInit(){this.elementRef&&(this.forceEnable||this.spatialNavigationService.enabled)&&(this.elementRef.nativeElement.tabIndex=0,y.focusTraps.push(this.elementRef.nativeElement),y.focusTrapsUpdated$.next(),y.focusTrapsUpdated$.asObservable().pipe((0,v.Q)(this.destroy$)).subscribe(()=>{const s=this.elementRef.nativeElement;y.topFocusTrap===s?(s.contains(document.activeElement)||this.focusManager.focusViaLastOrigin(s),this.startFocusMonitor(s,document.activeElement)):this.focusMonitor.stopMonitoring(s)}))}ngOnDestroy(){this.elementRef&&this.spatialNavigationService.enabled&&(this.removeFocusTrap(this.elementRef.nativeElement),y.focusTrapsUpdated$.next()),this.destroy$.next(!0),this.destroy$.complete()}startFocusMonitor(l,s){let u=s;this.focusMonitor.monitor(l,!0).pipe((0,v.Q)(this.destroy$)).subscribe(m=>{m?u=this.focusManager.currentFocusedElement:setTimeout(()=>{const I=this.focusManager.currentFocusedElement!==document.body||u?.isConnected?u:l;this.focusManager.focusViaLastOrigin(I)})})}removeFocusTrap(l){const s=y.focusTraps.indexOf(l);s>-1&&y.focusTraps.splice(s,1)}}(E=y).focusTraps=new Array,E.focusTrapsUpdated$=new n.m(1),E.\u0275fac=function(l){return new(l||E)(f.rXU(A.FN),f.rXU(f.aKT),f.rXU(M.c),f.rXU(T.E))},E.\u0275dir=f.FsC({type:E,selectors:[["","nvTrapFocus",""]],inputs:{forceEnable:"forceEnable"}})},11013:(je,z,c)=>{"use strict";c.d(z,{X:()=>v});const v=new(c(58527).nKC)("NV_HIG_CONFIG")},87781:(je,z,c)=>{"use strict";function f(M){return M}function A(M){return 1-Math.pow(1-M,3)}c.d(z,{p_:()=>A,sn:()=>f})},97557:(je,z,c)=>{"use strict";c.d(z,{t:()=>R});var r=c(87781),n=c(27594),v=c(63997),h=c(892),f=c(80583),A=c(83915),M=c(48765),T=c(82e3),E=c(43848),S=c(8619),l=c(91384),s=c(43615);class R{constructor(Y,j,fe,te){if(this.container=Y,this.onScrollStatusChanged=new f.B7,this.isComplete=!1,this.isStarted=!1,!(Y&&Y instanceof HTMLElement))throw new Error(`${Y.tagName} is not a valid container`);if(te?.rtlEnabled?(j=Math.min(0,j),j=Math.max(-(Y.scrollWidth-Y.clientWidth),j)):(j=Math.max(0,j),j=Math.min(Y.scrollWidth-Y.clientWidth,j)),fe=Math.min(Y.scrollHeight-Y.clientHeight,fe),fe=Math.max(0,fe),this.easingFunction=te?.easingFunction??r.sn,te?.duration&&te.duration<0)throw new Error(`${te.duration} is not a valid duration. the duration must greater or equal than 0.`);this.duration=te?.duration??200,this.startX=Y.scrollLeft,this.startY=Y.scrollTop,this.scrollAmountX=j-this.startX,this.scrollAmountY=fe-this.startY}onScrollStart(){return this.onScrollStatusChanged.pipe((0,S.p)(Y=>Y))}onScrollEnd(){return this.onScrollStatusChanged.pipe((0,S.p)(Y=>!Y))}start(){if(this.isComplete||this.isStarted)throw new Error(`the scrolling is ${this.isComplete?"completed":"started"}.`);return function I(O,Y=n.X){return function m(O=n.X){return(0,v.v)(()=>{const Y=O.now();return(0,h.Y)(0,O).pipe((0,A.T)(()=>O.now()-Y))})}(Y).pipe((0,A.T)(j=>j/O),(0,M.v)(j=>j<1),function y(...O){return Y=>(0,T.x)(Y,(0,E.of)(...O))}(1))}(this.duration).pipe((0,l.M)(()=>{this.isStarted||(this.isStarted=!0,this.onScrollStatusChanged.next(!0))}),(0,A.T)(Y=>this.easingFunction(Y)),(0,A.T)(Y=>(this.container.scrollLeft=this.startX+this.scrollAmountX*Y,this.container.scrollTop=this.startY+this.scrollAmountY*Y,Y)),(0,s.j)(()=>{this.isComplete=!0,this.onScrollStatusChanged.next(!1)}))}}},21684:(je,z,c)=>{"use strict";c.d(z,{c:()=>s});var r=c(26537),n=c(16490),v=c(65706),h=c(24841),f=c(73318),A=c(40482),M=c(58527),T=c(3816),E=c(94222),y=c(92994),S=c(31308);let s=(()=>{var u;class m{get currentFocusedElement(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}constructor(R,O,Y,j,fe){this.spatialNavigationService=O,this.inputModalityService=Y,this.checker=j,this.focusMonitor=fe,this.logger=R.getLogger("FocusManager")}canFocusElement(R,O){return!(!R||(R.isConnected?this.currentFocusedElement===R&&R.classList.contains(`.cdk-${O}-focused`)&&(this.logger.warn(`cdk-${O}-focused is existing in ${R.nodeName}.`),1):(this.logger.warn(`${R.nodeName} is not connected to DOM.`),1)))}getFirstFocusableChild(R,O){const Y=O??this.checker.isFocusable.bind(this.checker),j=R.children;for(let fe=0;fe<j.length;fe++){const te=j[fe];let ce=null;if(ce=te.nodeType===Node.ELEMENT_NODE&&Y(te)?te:this.getFirstFocusableChild(te,O),ce)return ce}return null}focusChild(R,O,Y,j){R&&setTimeout(()=>{const fe="initial"===O?this.getInitialFocusable(R,Y):this.getFirstFocusableChild(R,Y);this.focusViaLastOrigin(fe,j)},0)}getInitialFocusable(R,O){const Y=O??this.checker.isFocusable.bind(this.checker);let j=R.querySelector("[cdkFocusInitial]");return(!j||!Y(j))&&(j=this.getFirstFocusableChild(R,Y)),j}focusViaLastOrigin(R,O){this.focusVia(R,this.inputModalityService.lastFocusOrigin??"keyboard",O)}focusVia(R,O,Y){this.canFocusElement(R,O)&&(this.spatialNavigationService.enabled&&this.spatialNavigationService.setStartingPoint(null),this.focusMonitor.focusVia(R,O,Y))}navigateTo(R,O,Y){!R||!(0,f.UH)(R,"navbeforefocus",O)||this.focusViaLastOrigin(R,Y)}getFocusRestorationTargetAt(R,O){const Y=(0,A.EL)(R,O);if(!Y||this.checker.isFocusable(Y))return Y;if(!Element.prototype.spatialNavigationSearch||!Element.prototype.focusableAreas)return;const fe=Y.getSpatialNavigationContainer().focusableAreas({mode:"visible"});let te,ce=Number.POSITIVE_INFINITY;return fe.forEach(H=>{if(!(H instanceof HTMLElement)||window.__spatialNavigation__.isContainer(H)&&fe.some(be=>H.contains(be)))return;const Z=H.getBoundingClientRect(),Me=function l(u,m,I,R){return Math.abs(u-I)+Math.abs(m-R)}(R,O,(Z.left+Z.right)/2,(Z.top+Z.bottom)/2);Me<ce&&(ce=Me,te=H)}),te}createRestoreFocusFunction(R){if(R===document.body)return()=>{this.logger.warn("restoreTarget cannot be BODY. The focus might have already been lost before focus restoration")};const O=R.getBoundingClientRect();return()=>{if(R.isConnected&&this.checker.isFocusable(R))this.focusViaLastOrigin(R);else{const fe=this.getFocusRestorationTargetAt((O.left+O.right)/2,(O.top+O.bottom)/2);fe?this.focusViaLastOrigin(fe):this.logger.warn("Potential focus loss (failed to restore focus) - target cannot be focused and no other focusable element is found")}}}restoreFocusAfterClosed(R,O){const Y=O?.restoreFocusTarget??this.currentFocusedElement,j=R();if(Y){const fe=this.createRestoreFocusFunction(Y);let te;if(j instanceof r.CP)te=j.afterClosed();else if(j instanceof n.eN)te=j.afterDismissed();else{if(!(j instanceof h.f))throw new Error("not a supported type.");te=j.afterClosed()}if(!te)throw new Error("afterClosed$ is not assigned.");te.pipe((0,v.s)(1)).subscribe(()=>{fe()})}return j}}return(u=m).\u0275fac=function(R){return new(R||u)(M.KVO(T.J6),M.KVO(E.E),M.KVO(y.p),M.KVO(S.Z7),M.KVO(S.FN))},u.\u0275prov=M.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),m})()},13090:(je,z,c)=>{"use strict";c.d(z,{n:()=>l});var r=c(99564),n=c(29824),v=c(11013),h=c(12532),f=c(57258),A=c(16229),M=c(10174),T=c(58527),E=c(16490),y=c(26537),S=c(21684);let l=(()=>{var s;class u{get enabled(){return this._enabled}get isModalSheetOpened$(){return this.isModalSheetOpenSubject?this.isModalSheetOpenSubject.asObservable():h.w}constructor(I,R,O,Y){this.matBottomSheet=R,this.matDialog=O,this.focusManager=Y,this._enabled=!1,this.config=I?.offDeviceLinkConfig,this.tvMode=!!I?.tvMode}enable(){window.open=(I,R,O,Y)=>(I&&this.open(I),null),this._enabled=!0,this.isModalSheetOpenSubject||(this.isModalSheetOpenSubject=new f.m(1))}open(I,R){if(!this.config)throw new Error("Off device link configuration is missing!");if(this._enabled){let O=!1;if(this.matDialog.openDialogs.length>0&&this.matDialog.openDialogs[this.matDialog.openDialogs.length-1].componentInstance instanceof n.L&&(O=!0),O){const Y=this.focusManager.restoreFocusAfterClosed(()=>n.L.open(this.matDialog,{data:{headerText:{text:R?.shortUrl},bodyText:{text:R?.shortUrlDescription??this.config.title},primaryButton:{text:this.config.primaryButtonText},image:{url:I},threeQuarterSheetData:R?.threeQuarterSheetData},autoFocus:!1}));Y.componentInstance.primaryButtonClick.subscribe(()=>{Y.close()}),(0,A.h)(Y.afterOpened().pipe((0,M.u)(!0)),Y.afterClosed().pipe((0,M.u)(!1))).subscribe(j=>this.isModalSheetOpenSubject.next(j))}else{const Y=this.focusManager.restoreFocusAfterClosed(()=>r.G.open(this.matBottomSheet,{data:{headerText:{text:this.config.title},bodyText:R?.shortUrl?{text:R?.shortUrl}:void 0,primaryButton:{text:this.config.primaryButtonText},link:{url:I,text:R?.shortUrl}}},this.tvMode));Y.instance.primaryButtonClick.subscribe(()=>{Y.dismiss()}),(0,A.h)(Y.afterOpened().pipe((0,M.u)(!0)),Y.afterDismissed().pipe((0,M.u)(!1))).subscribe(j=>this.isModalSheetOpenSubject.next(j))}}else window.open(I,"_blank")}}return(s=u).\u0275fac=function(I){return new(I||s)(T.KVO(v.X,8),T.KVO(E.VK),T.KVO(y.bZ),T.KVO(S.c))},s.\u0275prov=T.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),u})()},73318:(je,z,c)=>{"use strict";c.d(z,{G2:()=>r.G2,UH:()=>r.UH,o3:()=>r.o3});var r=c(66221);c(94222)},94222:(je,z,c)=>{"use strict";c.d(z,{E:()=>s});var r=c(17053),n=c(63997),v=c(16229),h=c(36877),f=c(43848),A=c(75707),M=c(11013),T=c(66221),E=c(58527),y=c(92994),S=c(3816);let l=(()=>{var u;class m{constructor(R,O,Y,j){this.ngZone=R,this.inputModalityService=j,this.maxLength=0,this.focusIn=fe=>{const te=this.queue.length>0&&this.queue[this.queue.length-1].fl,ce={fo:null,fi:this.buildFocusEventData(fe),fl:!1};fe.target!==document.activeElement&&(ce.ae=this.buildElementData(document.activeElement)),this.enqueue(ce),te&&this.logger.info("Focus regained. Focus on: ",JSON.stringify(ce.fi))},this.focusOut=fe=>{const te=this.buildFocusEventData(fe);let ce;0===this.queue.length||null!==this.queue[this.queue.length-1].fo?(ce={fo:te,fl:this.shouldCheckFocusLoss(fe.target),fi:null},this.enqueue(ce)):(ce=this.queue[this.queue.length-1],ce.fo=te,ce.fl=this.shouldCheckFocusLoss(fe.target)&&(null===fe.relatedTarget||!fe.relatedTarget?.isConnected)),ce.fl&&this.logger.warn("Potential focus loss. Focus history: ",JSON.stringify(this.queue))},this.logger=O.getLogger("FocusHistoryQueueService"),this.window=Y.window}enqueue(R){this.queue.push(R)>this.maxLength&&this.queue.shift()}buildElementData(R,O=0){if(!R)return null;const Y={nn:R.nodeName?.toUpperCase?.()};return"BUTTON"===Y.nn?Y.it=R.textContent||R.querySelector("mat-icon[data-mat-icon-name]")?.getAttribute("data-mat-icon-name"):!R.textContent||"A"!==Y.nn&&"MAT-SELECT"!==Y.nn?R.textContent&&("DIV"===Y.nn||"MAT-DIALOG-CONTAINER"===Y.nn)&&(Y.it=R.textContent.substring(0,50)):Y.it=R.textContent,Y.it||(Y.cn=R.className,0===O&&(Y.sc=this.buildElementData(R.getSpatialNavigationContainer(),O+1))),Y}buildFocusEventData(R){return{ts:R.timeStamp,t:this.buildElementData(R.target),rt:this.buildElementData(R.relatedTarget),i:this.lastInputType}}shouldCheckFocusLoss(R){return this.lastInputType!==y.M.Touch&&this.lastInputType!==y.M.Mouse&&!R?.hasAttribute("data-focus-loss-exempt")}start(R){this.logger.info("Starting Focus History Queue Service"),this.lastInputType=null,this.maxLength=R,this.queue=[],this.ngZone.runOutsideAngular(()=>{this.window.addEventListener("focusin",this.focusIn),this.window.addEventListener("focusout",this.focusOut),this.inputModalitySubscription=this.inputModalityService.inputModalityChanged$.subscribe(O=>{this.lastInputType=O})})}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()})}}return(u=m).\u0275fac=function(R){return new(R||u)(E.KVO(E.SKi),E.KVO(S.J6),E.KVO(S.s7),E.KVO(y.p))},u.\u0275prov=E.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),m})(),s=(()=>{var u;class m{get enabled(){return this._enabled}constructor(R,O,Y){this.focusHistoryQueueService=O,this.logginService=Y,this.spatialNavigation=void 0,this._navigate=void 0,this._enabled=!1,this.config=R?.spatialNavigationConfig??{},this.spatialNavigation=window.__spatialNavigation__,this.logger=this.logginService.getLogger("SpatialNavigationService"),this.spatialNavigation&&(this._navigate=window.navigate,this.spatialNavigation.keyMode="NONE")}setNavigationContainerCssStyles(R,O,Y,j=!0){this.enabled&&(R.setAttribute("data-spatial-navigation-contain","contain"),R.setAttribute("data-spatial-navigation-action",Y),R.style.setProperty("--spatial-navigation-function",O),"focus"===Y&&j&&R.style.setProperty("scroll-behavior","smooth"))}enable(R){this._enabled=R,this.activated=R,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(R){!this.enabled||!this.spatialNavigation||(this.spatialNavigation.keyMode=R?"ARROW":"NONE")}setStartingPoint(R){if(!this.enabled||!this.spatialNavigation)return;if(!R)return void this.spatialNavigation.setStartingPoint(null);const O=R.getBoundingClientRect();this.spatialNavigation.setStartingPoint(O.x+O.width/2,O.y+O.height/2)}setStartingPointAt(R,O){!this.enabled||!this.spatialNavigation||this.spatialNavigation.setStartingPoint(R,O)}getClosestChild(R,O,Y,j){const fe=O.focusableAreas({mode:"all"});let te=this.getClosestChildInternal(R,O,Y,fe);if(!te&&j?.length>0)for(const ce of j)if(te=this.getClosestChildInternal(R,O,ce,fe),te)break;return te}getClosestChildInternal(R,O,Y,j){return R.spatialNavigationSearch(Y,{container:O,candidates:j})}isFullyInViewport(R){return new r.c(O=>{const Y=new IntersectionObserver(j=>{const fe=j.filter(te=>te.intersectionRatio<1)?.[0];O.next(!fe)});return Y.observe(R),function(){Y.disconnect()}})}onClick(R){return(0,n.v)(()=>(R instanceof HTMLAnchorElement&&(R.tabIndex=0),(0,v.h)((0,h.R)(R,"click"),(0,h.R)(R,"keydown")).pipe((0,A.ZZ)(O=>O instanceof MouseEvent||"Enter"===O.key||" "===O.key?(0,f.of)(O):(0,f.of)(void 0)))))}isDefaultFocusRequired(){return this.enabled&&!!this.config.isDefaultFocusRequired}navigate(R){this._navigate?.(R)}isFocusable(R){return this.spatialNavigation.isFocusable(R)}findNextTarget(R,O,Y=document.body){let j,fe;const te=R.getBoundingClientRect();return(0,T.o3)(O)?(j="left"===O?te.left-1:te.right+1,fe=(te.top+te.bottom)/2):(j=(te.left+te.right)/2,fe="up"===O?te.top-1:te.bottom+1),this.setStartingPointAt(j,fe),this.getClosestChild(document.body,Y,O)}shouldContainFocus(R,O){return Array.isArray(O)?O.includes(R):O}}return(u=m).\u0275fac=function(R){return new(R||u)(E.KVO(M.X,8),E.KVO(l),E.KVO(S.J6))},u.\u0275prov=E.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),m})()},66221:(je,z,c)=>{"use strict";function n(E,y,S){const l=new CustomEvent(y,{bubbles:!0,cancelable:!0,detail:{dir:S}});return E.dispatchEvent(l)}function v(E){switch(E){case"ArrowUp":return"up";case"ArrowDown":return"down";case"ArrowLeft":return"left";case"ArrowRight":return"right";default:throw new Error(`${E} is not a valid navigation key value`)}}function A(E){return"left"===E||"right"===E}c.d(z,{G2:()=>v,UH:()=>n,o3:()=>A}),c(40482)},62293:(je,z,c)=>{"use strict";c.d(z,{g:()=>S});var r=c(11013),n=c(10174),v=c(65706),h=c(40482),f=c(16229),A=c(58527),M=c(3816),T=c(30783),E=c(65240),y=function(l){return l[l.Link=0]="Link",l[l.Share=1]="Share",l[l.Input=2]="Input",l[l.PlayMedia=3]="PlayMedia",l}(y||{});let S=(()=>{var l;class s{get enabled(){return this._enabled}set enabled(m){this._enabled=m,this.logger.info("UserActivationGuardService is enabled")}constructor(m,I,R,O){this.snackbarService=I,this.translateService=R,this._enabled=!1,this.guardedTypes=[],this.logger=m.getLogger("UserActivationGuard"),this.defaultWarningMessage=O?.userActivationGuardConfig?.buttonWarningMessage,O?.userActivationGuardConfig?.link&&this.guardedTypes.push(y.Link),O?.userActivationGuardConfig?.input&&this.guardedTypes.push(y.Input),O?.userActivationGuardConfig?.playMedia&&this.guardedTypes.push(y.PlayMedia),O?.userActivationGuardConfig?.share&&this.guardedTypes.push(y.Share)}displayWarning(m,I){return this.snackbarService.open(this.translateService.instant(m,I))}isGuarded(m){return this.guardedTypes.includes(m)}guard(m,I,R,O){if(!this.isGuarded(m))return I;let Y=!1;return(j,...fe)=>{if((0,h.Ls)(j))I(j,...fe);else if(!Y){const H=this.displayWarning(R??this.defaultWarningMessage,O?.interpolationKey?{[O.interpolationKey]:O?.useInnerText?j.target.innerText:O?.text}:void 0);(0,f.h)(H.afterOpened().pipe((0,n.u)(!0)),H.afterDismissed().pipe((0,n.u)(!1))).pipe((0,v.s)(2)).subscribe(Z=>{Y=Z})}}}}return(l=s).\u0275fac=function(m){return new(m||l)(A.KVO(M.J6),A.KVO(T.nf),A.KVO(E.c$),A.KVO(r.X,8))},l.\u0275prov=A.jDH({token:l,factory:l.\u0275fac,providedIn:"root"}),s})()},95212:(je,z,c)=>{"use strict";c.d(z,{bx:()=>di.b,c_:()=>Qo.c,t4:()=>Ml.t,bm:()=>$s,Xv:()=>fa.X,uh:()=>ei,ur:()=>Y.u,nO:()=>wi.n,ti:()=>fo.t,ED:()=>hl.E});var r=c(61142),n=c(94485),v=c(58527),h=c(51006),f=c(26537),A=c(16490),M=c(29370),T=c(44224),E=c(74150),y=c(65240),S=c(70650),l=c(85667);const s=["qrcElement"];let u=(()=>{var tn;class xt{constructor(ut,cn){this.renderer=ut,this.sanitizer=cn,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 v.bkB,this.context=null}ngOnChanges(){var ut=this;return(0,S.A)(function*(){yield ut.createQRCode()})()}isValidQrCodeText(ut){return!1===this.allowEmptyString?!(typeof ut>"u"||""===ut||"null"===ut||null===ut):!(typeof ut>"u")}toDataURL(ut){return new Promise((cn,si)=>{(0,l.dY)(this.qrdata,ut,(vi,ur)=>{vi?si(vi):cn(ur)})})}toCanvas(ut,cn){return new Promise((si,vi)=>{(0,l.mo)(ut,this.qrdata,cn,ur=>{ur?vi(ur):si("success")})})}toSVG(ut){return new Promise((cn,si)=>{(0,l.toString)(this.qrdata,ut,(vi,ur)=>{vi?si(vi):cn(ur)})})}renderElement(ut){for(const cn of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,cn);this.renderer.appendChild(this.qrcElement.nativeElement,ut)}createQRCode(){var ut=this;return(0,S.A)(function*(){ut.version&&ut.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),ut.version=40):ut.version&&ut.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),ut.version=1):void 0!==ut.version&&isNaN(ut.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),ut.version=void 0);try{if(!ut.isValidQrCodeText(ut.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");ut.isValidQrCodeText(ut.qrdata)&&""===ut.qrdata&&(ut.qrdata=" ");const cn={color:{dark:ut.colorDark,light:ut.colorLight},errorCorrectionLevel:ut.errorCorrectionLevel,margin:ut.margin,scale:ut.scale,version:ut.version,width:ut.width},si=ut.imageSrc,vi=ut.imageHeight||40,ur=ut.imageWidth||40;switch(ut.elementType){case"canvas":{const gr=ut.renderer.createElement("canvas");ut.context=gr.getContext("2d"),ut.toCanvas(gr,cn).then(()=>{if(ut.ariaLabel&&ut.renderer.setAttribute(gr,"aria-label",`${ut.ariaLabel}`),ut.title&&ut.renderer.setAttribute(gr,"title",`${ut.title}`),si&&ut.context){ut.centerImage=new Image(ur,vi),si!==ut.centerImage.src&&(ut.centerImage.src=si),vi!==ut.centerImage.height&&(ut.centerImage.height=vi),ur!==ut.centerImage.width&&(ut.centerImage.width=ur);const or=ut.centerImage;or&&(or.onload=()=>{ut.context?.drawImage(or,gr.width/2-ur/2,gr.height/2-vi/2,ur,vi)})}ut.renderElement(gr),ut.emitQRCodeURL(gr)}).catch(or=>{console.error("[angularx-qrcode] canvas error:",or)});break}case"svg":{const gr=ut.renderer.createElement("div");ut.toSVG(cn).then(or=>{ut.renderer.setProperty(gr,"innerHTML",or);const zn=gr.firstChild;ut.renderer.setAttribute(zn,"height",`${ut.width}`),ut.renderer.setAttribute(zn,"width",`${ut.width}`),ut.renderElement(zn),ut.emitQRCodeURL(zn)}).catch(or=>{console.error("[angularx-qrcode] svg error:",or)});break}default:{const gr=ut.renderer.createElement("img");ut.toDataURL(cn).then(or=>{ut.alt&&gr.setAttribute("alt",ut.alt),ut.ariaLabel&&gr.setAttribute("aria-label",ut.ariaLabel),gr.setAttribute("src",or),ut.title&&gr.setAttribute("title",ut.title),ut.renderElement(gr),ut.emitQRCodeURL(gr)}).catch(or=>{console.error("[angularx-qrcode] img/url error:",or)})}}}catch(cn){console.error("[angularx-qrcode] Error generating QR Code:",cn.message)}})()}emitQRCodeURL(ut){const cn=ut.constructor.name;if(cn===SVGSVGElement.name){const ur=new Blob([ut.outerHTML],{type:"image/svg+xml"}),gr=URL.createObjectURL(ur),or=this.sanitizer.bypassSecurityTrustUrl(gr);return void this.qrCodeURL.emit(or)}let si="";cn===HTMLCanvasElement.name&&(si=ut.toDataURL("image/png")),cn===HTMLImageElement.name&&(si=ut.src),fetch(si).then(vi=>vi.blob()).then(vi=>URL.createObjectURL(vi)).then(vi=>this.sanitizer.bypassSecurityTrustUrl(vi)).then(vi=>{this.qrCodeURL.emit(vi)}).catch(vi=>{console.error("[angularx-qrcode] Error when fetching image/png URL: "+vi)})}}return(tn=xt).\u0275fac=function(ut){return new(ut||tn)(v.rXU(v.sFG),v.rXU(E.up))},tn.\u0275cmp=v.VBU({type:tn,selectors:[["qrcode"]],viewQuery:function(ut,cn){if(1&ut&&v.GBs(s,7),2&ut){let si;v.mGM(si=v.lsd())&&(cn.qrcElement=si.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:[v.OA$],decls:2,vars:2,consts:[["qrcElement",""]],template:function(ut,cn){1&ut&&v.nrm(0,"div",null,0),2&ut&&v.HbH(cn.cssClass)},encapsulation:2,changeDetection:0}),xt})(),m=(()=>{var tn;class xt{}return(tn=xt).\u0275fac=function(ut){return new(ut||tn)},tn.\u0275mod=v.$C({type:tn}),tn.\u0275inj=v.G2t({}),xt})();var I=c(85161),R=c(37278),O=c(99564),Y=c(49752),j=c(29824),fe=c(2218),te=c(54676),ce=c(56106),H=c(13186),Z=c(99204),X=c(47973),ue=c(33955),Me=c(49678),be=c(31308);function Xe(tn,xt,Ht,ut){var vi,cn=arguments.length,si=cn<3?xt:null===ut?ut=Object.getOwnPropertyDescriptor(xt,Ht):ut;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)si=Reflect.decorate(tn,xt,Ht,ut);else for(var ur=tn.length-1;ur>=0;ur--)(vi=tn[ur])&&(si=(cn<3?vi(si):cn>3?vi(xt,Ht,si):vi(xt,Ht))||si);return cn>3&&si&&Object.defineProperty(xt,Ht,si),si}const Zt=(tn,xt)=>"method"===xt.kind&&xt.descriptor&&!("value"in xt.descriptor)?{...xt,finisher(Ht){Ht.createProperty(xt.key,tn)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:xt.key,initializer(){"function"==typeof xt.initializer&&(this[xt.key]=xt.initializer.call(this))},finisher(Ht){Ht.createProperty(xt.key,tn)}};function Un(tn){return(xt,Ht)=>void 0!==Ht?((tn,xt,Ht)=>{xt.constructor.createProperty(Ht,tn)})(tn,xt,Ht):Zt(tn,xt)}window;const _i=window,Bn=_i.ShadowRoot&&(void 0===_i.ShadyCSS||_i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jn=Symbol(),It=new WeakMap;class vn{constructor(xt,Ht,ut){if(this._$cssResult$=!0,ut!==jn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=xt,this.t=Ht}get styleSheet(){let xt=this.o;const Ht=this.t;if(Bn&&void 0===xt){const ut=void 0!==Ht&&1===Ht.length;ut&&(xt=It.get(Ht)),void 0===xt&&((this.o=xt=new CSSStyleSheet).replaceSync(this.cssText),ut&&It.set(Ht,xt))}return xt}toString(){return this.cssText}}const Ct=Bn?tn=>tn:tn=>tn instanceof CSSStyleSheet?(xt=>{let Ht="";for(const ut of xt.cssRules)Ht+=ut.cssText;return(tn=>new vn("string"==typeof tn?tn:tn+"",void 0,jn))(Ht)})(tn):tn;var Et;const We=window,bt=We.trustedTypes,gt=bt?bt.emptyScript:"",wt=We.reactiveElementPolyfillSupport,rn={toAttribute(tn,xt){switch(xt){case Boolean:tn=tn?gt:null;break;case Object:case Array:tn=null==tn?tn:JSON.stringify(tn)}return tn},fromAttribute(tn,xt){let Ht=tn;switch(xt){case Boolean:Ht=null!==tn;break;case Number:Ht=null===tn?null:Number(tn);break;case Object:case Array:try{Ht=JSON.parse(tn)}catch{Ht=null}}return Ht}},In=(tn,xt)=>xt!==tn&&(xt==xt||tn==tn),Mi={attribute:!0,type:String,converter:rn,reflect:!1,hasChanged:In},En="finalized";class Tn extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(xt){var Ht;this.finalize(),(null!==(Ht=this.h)&&void 0!==Ht?Ht:this.h=[]).push(xt)}static get observedAttributes(){this.finalize();const xt=[];return this.elementProperties.forEach((Ht,ut)=>{const cn=this._$Ep(ut,Ht);void 0!==cn&&(this._$Ev.set(cn,ut),xt.push(cn))}),xt}static createProperty(xt,Ht=Mi){if(Ht.state&&(Ht.attribute=!1),this.finalize(),this.elementProperties.set(xt,Ht),!Ht.noAccessor&&!this.prototype.hasOwnProperty(xt)){const ut="symbol"==typeof xt?Symbol():"__"+xt,cn=this.getPropertyDescriptor(xt,ut,Ht);void 0!==cn&&Object.defineProperty(this.prototype,xt,cn)}}static getPropertyDescriptor(xt,Ht,ut){return{get(){return this[Ht]},set(cn){const si=this[xt];this[Ht]=cn,this.requestUpdate(xt,si,ut)},configurable:!0,enumerable:!0}}static getPropertyOptions(xt){return this.elementProperties.get(xt)||Mi}static finalize(){if(this.hasOwnProperty(En))return!1;this[En]=!0;const xt=Object.getPrototypeOf(this);if(xt.finalize(),void 0!==xt.h&&(this.h=[...xt.h]),this.elementProperties=new Map(xt.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const Ht=this.properties,ut=[...Object.getOwnPropertyNames(Ht),...Object.getOwnPropertySymbols(Ht)];for(const cn of ut)this.createProperty(cn,Ht[cn])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(xt){const Ht=[];if(Array.isArray(xt)){const ut=new Set(xt.flat(1/0).reverse());for(const cn of ut)Ht.unshift(Ct(cn))}else void 0!==xt&&Ht.push(Ct(xt));return Ht}static _$Ep(xt,Ht){const ut=Ht.attribute;return!1===ut?void 0:"string"==typeof ut?ut:"string"==typeof xt?xt.toLowerCase():void 0}u(){var xt;this._$E_=new Promise(Ht=>this.enableUpdating=Ht),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(xt=this.constructor.h)||void 0===xt||xt.forEach(Ht=>Ht(this))}addController(xt){var Ht,ut;(null!==(Ht=this._$ES)&&void 0!==Ht?Ht:this._$ES=[]).push(xt),void 0!==this.renderRoot&&this.isConnected&&(null===(ut=xt.hostConnected)||void 0===ut||ut.call(xt))}removeController(xt){var Ht;null===(Ht=this._$ES)||void 0===Ht||Ht.splice(this._$ES.indexOf(xt)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((xt,Ht)=>{this.hasOwnProperty(Ht)&&(this._$Ei.set(Ht,this[Ht]),delete this[Ht])})}createRenderRoot(){var xt;const Ht=null!==(xt=this.shadowRoot)&&void 0!==xt?xt:this.attachShadow(this.constructor.shadowRootOptions);return((tn,xt)=>{Bn?tn.adoptedStyleSheets=xt.map(Ht=>Ht instanceof CSSStyleSheet?Ht:Ht.styleSheet):xt.forEach(Ht=>{const ut=document.createElement("style"),cn=_i.litNonce;void 0!==cn&&ut.setAttribute("nonce",cn),ut.textContent=Ht.cssText,tn.appendChild(ut)})})(Ht,this.constructor.elementStyles),Ht}connectedCallback(){var xt;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(xt=this._$ES)||void 0===xt||xt.forEach(Ht=>{var ut;return null===(ut=Ht.hostConnected)||void 0===ut?void 0:ut.call(Ht)})}enableUpdating(xt){}disconnectedCallback(){var xt;null===(xt=this._$ES)||void 0===xt||xt.forEach(Ht=>{var ut;return null===(ut=Ht.hostDisconnected)||void 0===ut?void 0:ut.call(Ht)})}attributeChangedCallback(xt,Ht,ut){this._$AK(xt,ut)}_$EO(xt,Ht,ut=Mi){var cn;const si=this.constructor._$Ep(xt,ut);if(void 0!==si&&!0===ut.reflect){const vi=(void 0!==(null===(cn=ut.converter)||void 0===cn?void 0:cn.toAttribute)?ut.converter:rn).toAttribute(Ht,ut.type);this._$El=xt,null==vi?this.removeAttribute(si):this.setAttribute(si,vi),this._$El=null}}_$AK(xt,Ht){var ut;const cn=this.constructor,si=cn._$Ev.get(xt);if(void 0!==si&&this._$El!==si){const vi=cn.getPropertyOptions(si),ur="function"==typeof vi.converter?{fromAttribute:vi.converter}:void 0!==(null===(ut=vi.converter)||void 0===ut?void 0:ut.fromAttribute)?vi.converter:rn;this._$El=si,this[si]=ur.fromAttribute(Ht,vi.type),this._$El=null}}requestUpdate(xt,Ht,ut){let cn=!0;void 0!==xt&&(((ut=ut||this.constructor.getPropertyOptions(xt)).hasChanged||In)(this[xt],Ht)?(this._$AL.has(xt)||this._$AL.set(xt,Ht),!0===ut.reflect&&this._$El!==xt&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(xt,ut))):cn=!1),!this.isUpdatePending&&cn&&(this._$E_=this._$Ej())}_$Ej(){var xt=this;return(0,S.A)(function*(){xt.isUpdatePending=!0;try{yield xt._$E_}catch(ut){Promise.reject(ut)}const Ht=xt.scheduleUpdate();return null!=Ht&&(yield Ht),!xt.isUpdatePending})()}scheduleUpdate(){return this.performUpdate()}performUpdate(){var xt;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach((cn,si)=>this[si]=cn),this._$Ei=void 0);let Ht=!1;const ut=this._$AL;try{Ht=this.shouldUpdate(ut),Ht?(this.willUpdate(ut),null===(xt=this._$ES)||void 0===xt||xt.forEach(cn=>{var si;return null===(si=cn.hostUpdate)||void 0===si?void 0:si.call(cn)}),this.update(ut)):this._$Ek()}catch(cn){throw Ht=!1,this._$Ek(),cn}Ht&&this._$AE(ut)}willUpdate(xt){}_$AE(xt){var Ht;null===(Ht=this._$ES)||void 0===Ht||Ht.forEach(ut=>{var cn;return null===(cn=ut.hostUpdated)||void 0===cn?void 0:cn.call(ut)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(xt)),this.updated(xt)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(xt){return!0}update(xt){void 0!==this._$EC&&(this._$EC.forEach((Ht,ut)=>this._$EO(ut,this[ut],Ht)),this._$EC=void 0),this._$Ek()}updated(xt){}firstUpdated(xt){}}var Cn;Tn[En]=!0,Tn.elementProperties=new Map,Tn.elementStyles=[],Tn.shadowRootOptions={mode:"open"},wt?.({ReactiveElement:Tn}),(null!==(Et=We.reactiveElementVersions)&&void 0!==Et?Et:We.reactiveElementVersions=[]).push("1.6.2");const Wn=window,Oi=Wn.trustedTypes,Qn=Oi?Oi.createPolicy("lit-html",{createHTML:tn=>tn}):void 0,Fi="$lit$",Ai=`lit$${(Math.random()+"").slice(9)}$`,ln="?"+Ai,Mn=`<${ln}>`,bi=document,Hi=()=>bi.createComment(""),Mr=tn=>null===tn||"object"!=typeof tn&&"function"!=typeof tn,Wr=Array.isArray,Nr="[ \t\n\f\r]",ss=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cs=/-->/g,Pn=/>/g,Pi=RegExp(`>|${Nr}(?:([^\\s"'>=/]+)(${Nr}*=${Nr}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),li=/'/g,er=/"/g,Fr=/^(?:script|style|textarea|title)$/i,dn=tn=>(xt,...Ht)=>({_$litType$:tn,strings:xt,values:Ht}),fi=(dn(1),dn(2),Symbol.for("lit-noChange")),Si=Symbol.for("lit-nothing"),Yi=new WeakMap,Qi=bi.createTreeWalker(bi,129,null,!1);class Dr{constructor({strings:xt,_$litType$:Ht},ut){let cn;this.parts=[];let si=0,vi=0;const ur=xt.length-1,gr=this.parts,[or,zn]=((tn,xt)=>{const Ht=tn.length-1,ut=[];let cn,si=2===xt?"<svg>":"",vi=ss;for(let gr=0;gr<Ht;gr++){const or=tn[gr];let zn,pi,Kn=-1,cr=0;for(;cr<or.length&&(vi.lastIndex=cr,pi=vi.exec(or),null!==pi);)cr=vi.lastIndex,vi===ss?"!--"===pi[1]?vi=Cs:void 0!==pi[1]?vi=Pn:void 0!==pi[2]?(Fr.test(pi[2])&&(cn=RegExp("</"+pi[2],"g")),vi=Pi):void 0!==pi[3]&&(vi=Pi):vi===Pi?">"===pi[0]?(vi=cn??ss,Kn=-1):void 0===pi[1]?Kn=-2:(Kn=vi.lastIndex-pi[2].length,zn=pi[1],vi=void 0===pi[3]?Pi:'"'===pi[3]?er:li):vi===er||vi===li?vi=Pi:vi===Cs||vi===Pn?vi=ss:(vi=Pi,cn=void 0);const ji=vi===Pi&&tn[gr+1].startsWith("/>")?" ":"";si+=vi===ss?or+Mn:Kn>=0?(ut.push(zn),or.slice(0,Kn)+Fi+or.slice(Kn)+Ai+ji):or+Ai+(-2===Kn?(ut.push(void 0),gr):ji)}const ur=si+(tn[Ht]||"<?>")+(2===xt?"</svg>":"");if(!Array.isArray(tn)||!tn.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==Qn?Qn.createHTML(ur):ur,ut]})(xt,Ht);if(this.el=Dr.createElement(or,ut),Qi.currentNode=this.el.content,2===Ht){const pi=this.el.content,Kn=pi.firstChild;Kn.remove(),pi.append(...Kn.childNodes)}for(;null!==(cn=Qi.nextNode())&&gr.length<ur;){if(1===cn.nodeType){if(cn.hasAttributes()){const pi=[];for(const Kn of cn.getAttributeNames())if(Kn.endsWith(Fi)||Kn.startsWith(Ai)){const cr=zn[vi++];if(pi.push(Kn),void 0!==cr){const ji=cn.getAttribute(cr.toLowerCase()+Fi).split(Ai),jr=/([.?@])?(.*)/.exec(cr);gr.push({type:1,index:si,name:jr[2],strings:ji,ctor:"."===jr[1]?Ao:"?"===jr[1]?Lo:"@"===jr[1]?ao:Hr})}else gr.push({type:6,index:si})}for(const Kn of pi)cn.removeAttribute(Kn)}if(Fr.test(cn.tagName)){const pi=cn.textContent.split(Ai),Kn=pi.length-1;if(Kn>0){cn.textContent=Oi?Oi.emptyScript:"";for(let cr=0;cr<Kn;cr++)cn.append(pi[cr],Hi()),Qi.nextNode(),gr.push({type:2,index:++si});cn.append(pi[Kn],Hi())}}}else if(8===cn.nodeType)if(cn.data===ln)gr.push({type:2,index:si});else{let pi=-1;for(;-1!==(pi=cn.data.indexOf(Ai,pi+1));)gr.push({type:7,index:si}),pi+=Ai.length-1}si++}}static createElement(xt,Ht){const ut=bi.createElement("template");return ut.innerHTML=xt,ut}}function br(tn,xt,Ht=tn,ut){var cn,si,vi,ur;if(xt===fi)return xt;let gr=void 0!==ut?null===(cn=Ht._$Co)||void 0===cn?void 0:cn[ut]:Ht._$Cl;const or=Mr(xt)?void 0:xt._$litDirective$;return gr?.constructor!==or&&(null===(si=gr?._$AO)||void 0===si||si.call(gr,!1),void 0===or?gr=void 0:(gr=new or(tn),gr._$AT(tn,Ht,ut)),void 0!==ut?(null!==(vi=(ur=Ht)._$Co)&&void 0!==vi?vi:ur._$Co=[])[ut]=gr:Ht._$Cl=gr),void 0!==gr&&(xt=br(tn,gr._$AS(tn,xt.values),gr,ut)),xt}class ro{constructor(xt,Ht){this._$AV=[],this._$AN=void 0,this._$AD=xt,this._$AM=Ht}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(xt){var Ht;const{el:{content:ut},parts:cn}=this._$AD,si=(null!==(Ht=xt?.creationScope)&&void 0!==Ht?Ht:bi).importNode(ut,!0);Qi.currentNode=si;let vi=Qi.nextNode(),ur=0,gr=0,or=cn[0];for(;void 0!==or;){if(ur===or.index){let zn;2===or.type?zn=new Oo(vi,vi.nextSibling,this,xt):1===or.type?zn=new or.ctor(vi,or.name,or.strings,this,xt):6===or.type&&(zn=new Ar(vi,this,xt)),this._$AV.push(zn),or=cn[++gr]}ur!==or?.index&&(vi=Qi.nextNode(),ur++)}return Qi.currentNode=bi,si}v(xt){let Ht=0;for(const ut of this._$AV)void 0!==ut&&(void 0!==ut.strings?(ut._$AI(xt,ut,Ht),Ht+=ut.strings.length-2):ut._$AI(xt[Ht])),Ht++}}class Oo{constructor(xt,Ht,ut,cn){var si;this.type=2,this._$AH=Si,this._$AN=void 0,this._$AA=xt,this._$AB=Ht,this._$AM=ut,this.options=cn,this._$Cp=null===(si=cn?.isConnected)||void 0===si||si}get _$AU(){var xt,Ht;return null!==(Ht=null===(xt=this._$AM)||void 0===xt?void 0:xt._$AU)&&void 0!==Ht?Ht:this._$Cp}get parentNode(){let xt=this._$AA.parentNode;const Ht=this._$AM;return void 0!==Ht&&11===xt?.nodeType&&(xt=Ht.parentNode),xt}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(xt,Ht=this){xt=br(this,xt,Ht),Mr(xt)?xt===Si||null==xt||""===xt?(this._$AH!==Si&&this._$AR(),this._$AH=Si):xt!==this._$AH&&xt!==fi&&this._(xt):void 0!==xt._$litType$?this.g(xt):void 0!==xt.nodeType?this.$(xt):(tn=>Wr(tn)||"function"==typeof tn?.[Symbol.iterator])(xt)?this.T(xt):this._(xt)}k(xt){return this._$AA.parentNode.insertBefore(xt,this._$AB)}$(xt){this._$AH!==xt&&(this._$AR(),this._$AH=this.k(xt))}_(xt){this._$AH!==Si&&Mr(this._$AH)?this._$AA.nextSibling.data=xt:this.$(bi.createTextNode(xt)),this._$AH=xt}g(xt){var Ht;const{values:ut,_$litType$:cn}=xt,si="number"==typeof cn?this._$AC(xt):(void 0===cn.el&&(cn.el=Dr.createElement(cn.h,this.options)),cn);if((null===(Ht=this._$AH)||void 0===Ht?void 0:Ht._$AD)===si)this._$AH.v(ut);else{const vi=new ro(si,this),ur=vi.u(this.options);vi.v(ut),this.$(ur),this._$AH=vi}}_$AC(xt){let Ht=Yi.get(xt.strings);return void 0===Ht&&Yi.set(xt.strings,Ht=new Dr(xt)),Ht}T(xt){Wr(this._$AH)||(this._$AH=[],this._$AR());const Ht=this._$AH;let ut,cn=0;for(const si of xt)cn===Ht.length?Ht.push(ut=new Oo(this.k(Hi()),this.k(Hi()),this,this.options)):ut=Ht[cn],ut._$AI(si),cn++;cn<Ht.length&&(this._$AR(ut&&ut._$AB.nextSibling,cn),Ht.length=cn)}_$AR(xt=this._$AA.nextSibling,Ht){var ut;for(null===(ut=this._$AP)||void 0===ut||ut.call(this,!1,!0,Ht);xt&&xt!==this._$AB;){const cn=xt.nextSibling;xt.remove(),xt=cn}}setConnected(xt){var Ht;void 0===this._$AM&&(this._$Cp=xt,null===(Ht=this._$AP)||void 0===Ht||Ht.call(this,xt))}}class Hr{constructor(xt,Ht,ut,cn,si){this.type=1,this._$AH=Si,this._$AN=void 0,this.element=xt,this.name=Ht,this._$AM=cn,this.options=si,ut.length>2||""!==ut[0]||""!==ut[1]?(this._$AH=Array(ut.length-1).fill(new String),this.strings=ut):this._$AH=Si}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(xt,Ht=this,ut,cn){const si=this.strings;let vi=!1;if(void 0===si)xt=br(this,xt,Ht,0),vi=!Mr(xt)||xt!==this._$AH&&xt!==fi,vi&&(this._$AH=xt);else{const ur=xt;let gr,or;for(xt=si[0],gr=0;gr<si.length-1;gr++)or=br(this,ur[ut+gr],Ht,gr),or===fi&&(or=this._$AH[gr]),vi||(vi=!Mr(or)||or!==this._$AH[gr]),or===Si?xt=Si:xt!==Si&&(xt+=(or??"")+si[gr+1]),this._$AH[gr]=or}vi&&!cn&&this.j(xt)}j(xt){xt===Si?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,xt??"")}}class Ao extends Hr{constructor(){super(...arguments),this.type=3}j(xt){this.element[this.name]=xt===Si?void 0:xt}}const Co=Oi?Oi.emptyScript:"";class Lo extends Hr{constructor(){super(...arguments),this.type=4}j(xt){xt&&xt!==Si?this.element.setAttribute(this.name,Co):this.element.removeAttribute(this.name)}}class ao extends Hr{constructor(xt,Ht,ut,cn,si){super(xt,Ht,ut,cn,si),this.type=5}_$AI(xt,Ht=this){var ut;if((xt=null!==(ut=br(this,xt,Ht,0))&&void 0!==ut?ut:Si)===fi)return;const cn=this._$AH,si=xt===Si&&cn!==Si||xt.capture!==cn.capture||xt.once!==cn.once||xt.passive!==cn.passive,vi=xt!==Si&&(cn===Si||si);si&&this.element.removeEventListener(this.name,this,cn),vi&&this.element.addEventListener(this.name,this,xt),this._$AH=xt}handleEvent(xt){var Ht,ut;"function"==typeof this._$AH?this._$AH.call(null!==(ut=null===(Ht=this.options)||void 0===Ht?void 0:Ht.host)&&void 0!==ut?ut:this.element,xt):this._$AH.handleEvent(xt)}}class Ar{constructor(xt,Ht,ut){this.element=xt,this.type=6,this._$AN=void 0,this._$AM=Ht,this.options=ut}get _$AU(){return this._$AM._$AU}_$AI(xt){br(this,xt)}}const Gn=Wn.litHtmlPolyfillSupport;var Ci,Wi;Gn?.(Dr,Oo),(null!==(Cn=Wn.litHtmlVersions)&&void 0!==Cn?Cn:Wn.litHtmlVersions=[]).push("2.7.4");class Gi extends Tn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var xt,Ht;const ut=super.createRenderRoot();return null!==(xt=(Ht=this.renderOptions).renderBefore)&&void 0!==xt||(Ht.renderBefore=ut.firstChild),ut}update(xt){const Ht=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(xt),this._$Do=((tn,xt,Ht)=>{var ut,cn;const si=null!==(ut=Ht?.renderBefore)&&void 0!==ut?ut:xt;let vi=si._$litPart$;if(void 0===vi){const ur=null!==(cn=Ht?.renderBefore)&&void 0!==cn?cn:null;si._$litPart$=vi=new Oo(xt.insertBefore(Hi(),ur),ur,void 0,Ht??{})}return vi._$AI(tn),vi})(Ht,this.renderRoot,this.renderOptions)}connectedCallback(){var xt;super.connectedCallback(),null===(xt=this._$Do)||void 0===xt||xt.setConnected(!0)}disconnectedCallback(){var xt;super.disconnectedCallback(),null===(xt=this._$Do)||void 0===xt||xt.setConnected(!1)}render(){return fi}}Gi.finalized=!0,Gi._$litElement$=!0,null===(Ci=globalThis.litElementHydrateSupport)||void 0===Ci||Ci.call(globalThis,{LitElement:Gi});const Tr=globalThis.litElementPolyfillSupport;Tr?.({LitElement:Gi}),(null!==(Wi=globalThis.litElementVersions)&&void 0!==Wi?Wi:globalThis.litElementVersions=[]).push("3.3.2");class zo extends Gi{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}Xe([Un({type:Boolean,reflect:!0})],zo.prototype,"inset",void 0),Xe([Un({type:Boolean,reflect:!0,attribute:"inset-start"})],zo.prototype,"insetStart",void 0),Xe([Un({type:Boolean,reflect:!0,attribute:"inset-end"})],zo.prototype,"insetEnd",void 0);const as=((tn,...xt)=>{const Ht=1===tn.length?tn[0]:xt.reduce((ut,cn,si)=>ut+(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.")})(cn)+tn[si+1],tn[0]);return new vn(Ht,tn,jn)})`: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 ps=class extends zo{};var tn;ps.styles=[as],ps=Xe([(tn="md-divider",xt=>{return"function"==typeof xt?(ut=xt,customElements.define(tn,ut),ut):((Ht,ut)=>{const{kind:cn,elements:si}=ut;return{kind:cn,elements:si,finisher(vi){customElements.define(Ht,vi)}}})(tn,xt);var ut})],ps);const Hs=[ce.YN,H.Lq,Z.D6,X.wG,M.m_,Me.Wk,ue.Dy,A.vF,f.hM,be.Pd];let Qr=(()=>{var tn;class xt{}return(tn=xt).\u0275fac=function(ut){return new(ut||tn)},tn.\u0275mod=v.$C({type:tn}),tn.\u0275inj=v.G2t({imports:[Hs,ce.YN,H.Lq,Z.D6,X.wG,M.m_,Me.Wk,ue.Dy,A.vF,f.hM,be.Pd]}),xt})();var ca=c(60990),Js=c(81247),ts=c(6364),Qo=c(21684);let xs=(()=>{var tn;class xt{constructor(ut,cn){this.element=ut,this.focusManager=cn,this.autoFocusPolicy="self",this._focusEnabled=!0}get focusEnabled(){return this._focusEnabled}set focusEnabled(ut){this._focusEnabled=(0,ts.he)(ut)}ngAfterViewInit(){this.focusEnabled&&("initial"===this.autoFocusPolicy?setTimeout(()=>this.focusManager.focusChild(this.element.nativeElement,"initial")):setTimeout(()=>this.focusManager.focusViaLastOrigin(this.element.nativeElement)))}}return(tn=xt).\u0275fac=function(ut){return new(ut||tn)(v.rXU(v.aKT),v.rXU(Qo.c))},tn.\u0275dir=v.FsC({type:tn,selectors:[["","nvAutoFocus",""]],inputs:{autoFocusPolicy:"autoFocusPolicy",focusEnabled:[v.Mj6.None,"nvAutoFocus","focusEnabled"]}}),xt})();var hl=c(94222);let Bs=(()=>{var tn;class xt{constructor(ut,cn){this.radio=ut,this.spatialNavigationService=cn}ngAfterViewInit(){if(this.spatialNavigationService.enabled&&this.radio._elementRef.nativeElement){const ut=this.radio._inputElement.nativeElement.setAttribute.bind(this.radio._inputElement.nativeElement);this.radio._inputElement.nativeElement.setAttribute=(cn,si)=>{ut(cn,"tabindex"===cn?0:si)}}}}return(tn=xt).\u0275fac=function(ut){return new(ut||tn)(v.rXU(Me._g),v.rXU(hl.E))},tn.\u0275dir=v.FsC({type:tn,selectors:[["mat-radio-button","nvMatRadioSpatialNavigationFixup",""]]}),xt})();var qs=c(44186),Er=c(40514),js=c(97888),ea=c(33668);let Zo=(()=>{var tn;class xt{get enabled(){return this._enabled}set enabled(ut){this._enabled=(0,ts.he)(ut)}constructor(ut,cn){this.el=ut,this.renderer=cn}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(ut=>{this.renderer.removeStyle(this.el.nativeElement,ut)})}ngOnChanges(ut){ut.imageUrl?.currentValue&&ut.imageUrl?.currentValue!==ut.imageUrl?.previousValue&&this.enabled&&this.setBackgroundStyles(),(!ut.imageUrl?.currentValue||!this.enabled)&&this.removeBackgroundStyles()}}return(tn=xt).\u0275fac=function(ut){return new(ut||tn)(v.rXU(v.aKT),v.rXU(v.sFG))},tn.\u0275dir=v.FsC({type:tn,selectors:[["","nvHigBackgroundImageOverlay",""]],inputs:{imageUrl:"imageUrl",enabled:[v.Mj6.None,"nvHigBackgroundImageOverlay","enabled"]},features:[v.OA$]}),xt})();var vs=c(3457),Ys=c(28139),ho=c(51394);const Pa={provide:v.hnV,useFactory:function cs(tn,xt){return()=>function Bo(tn,xt){return tn.addSvgIconSetLiteral(xt.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="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="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_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_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_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="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="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="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_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="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_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_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_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_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="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="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="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="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&#x2033;-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="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="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="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="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="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="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="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="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="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="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_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="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="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="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()}(tn,xt)},deps:[M.tp,E.up],multi:!0},_r={showDelay:0,hideDelay:0,touchendHideDelay:1500,disableTooltipInteractivity:!0};let $s=(()=>{var tn;class xt{}return(tn=xt).\u0275fac=function(ut){return new(ut||tn)},tn.\u0275mod=v.$C({type:tn}),tn.\u0275inj=v.G2t({providers:[Pa,{provide:f.di,useValue:{...new f.ru,restoreFocus:!1}},{provide:A.Ox,useValue:{...new A.J3,restoreFocus:!1}},{provide:qs.sM,useValue:_r}],imports:[r.MD,h.YF,n.q1,Qr,y.h,m,T.w,I.iI,ea.Cn,R.E9]}),xt})();v.wjB(Y.u,[r.YU,r.Sq,r.bT,r.T3,r.B3,vs.DJ,vs.BO,vs.sA,Ys.PW,Ys.eI,ce.BC,ce.vS,ho.ig,Z.LG,X.iV,M.An,Me.VT,Me._g,ue.NZ,be.vR,I.Wk,fe.R,fe.$,te.tG,ca.r,Js.D,xs,Bs,Er.e,js.Aq],[y.D9]),v.wjB(O.G,[r.YU,r.bT,r.T3,vs.DJ,vs.BO,vs.sA,vs.R$,vs.UI,Ys.PW,Z.LG,X.iV,u,fe.R,ca.r,Js.D,xs,Er.e,js.Aq],[y.D9]),v.wjB(j.L,[r.Sq,r.bT,r.T3,vs.DJ,vs.BO,vs.sA,vs.UI,Z.LG,X.iV,M.An,u,fe.R,ca.r,Js.D,xs,Er.e,Zo],[y.D9]);var fa=c(11013),Ml=(c(5428),c(12132),c(97363)),Ls=(c(66253),c(80282),c(84300),c(16924),c(60543),c(3816));c(73318);var Zn=c(72818),Ii=c(24841);let ei=(()=>{var tn;class xt{constructor(ut,cn,si,vi){this.matDialog=ut,this.matBottomSheet=cn,this.focusManager=si,this.tvMode=!!vi.tvMode}open(ut,cn){ut.autoFocus=!1;const si=()=>cn?.preferredDialogType===Zn.QO.BottomSheet?O.G.open(this.matBottomSheet,ut,this.tvMode):this.tvMode?ut.data.checkbox||ut.data.radioButtonOptions||cn?.preferredDialogType===Zn.QO.ThreeQuarterSheet?j.L.open(this.matDialog,ut):O.G.open(this.matBottomSheet,ut,this.tvMode):Y.u.open(this.matDialog,ut);return cn?.disableFocusRestore?new Ii.f(si()):this.focusManager.restoreFocusAfterClosed(()=>new Ii.f(si()),cn)}closeAll(){this.matDialog.closeAll(),this.matBottomSheet.dismiss()}}return(tn=xt).\u0275fac=function(ut){return new(ut||tn)(v.KVO(f.bZ),v.KVO(A.VK),v.KVO(Qo.c),v.KVO(fa.X,8))},tn.\u0275prov=v.jDH({token:tn,factory:tn.\u0275fac,providedIn:"root"}),xt})();var Ee,Pr,di=c(14605),wi=c(13090),Ri=c(36877),Nt=c(43848),Dt=c(35146),Xt=c(17053),St=c(14714),Sn=c(26875),Jn=c(74931),oi=Jn.Or.Common.Applicationinfo.ApplicationLifetimeEventType,Ji=Jn.Or.Common.Applicationinfo.ShutdownReason,Ei=function(tn){return tn.ApplicationRequestedExit="APPLICATION_REQUESTED_EXIT",tn.IpcRequestedExit="IPC_REQUESTED_EXIT",tn}(Ei||{});class Ra{get isAppShuttingDown(){return this.isShuttingDown}constructor(xt,Ht){this.bridgeService=Ht,this.isShuttingDown=!1,this.systemShutdownReasons=[Ji.UserClosedWindow,Ji.UserQuitWithShortcut,Ji.UserLoggedOut,Ji.Relaunch],this.unInterruptableShutdownReasons=[Ji.UserLoggedOut,Ei.IpcRequestedExit,Ji.SelfUpdate,Ji.Relaunch,Ji.BrowserExit,Ji.ForceShutdown],this.logger=xt.getLogger("libraries/application-lifetime.service"),this.logger.info("applicationLifetimeService created"),this.preSleepFunctions=new Map,this.onShutdownRequestedFunctions=new Map,this.onShutdownFunctions=new Map,Ht.executeCommand(Jn.Ts.Common.Applicationinfo.RegisterAppLifetimeEventsCallback).subscribe(ut=>{this.handleBridgeEvent(ut)}),(0,Ri.R)(window,"unload").subscribe(ut=>{})}sleepApplication(){this.preSleepFunctions.size>0?(this.logger.info("executing pre-sleep functions"),this.preSleepFunctions.forEach(xt=>{try{xt()}catch(Ht){this.logger.error("Caught error while executing pre sleep function: ",Ht)}})):this.logger.info("no pre-sleep work")}shutdownApplication(xt){this.systemShutdownReasons.some(Ht=>Ht===xt)?this.logger.error("Cannot supply a system reason for shutting down from the application layer"):this.performShutdown(xt)}addWorkOnSleep(xt){return this.addWork(this.preSleepFunctions,xt)}addWorkOnShutdownRequested(xt){return this.addWork(this.onShutdownRequestedFunctions,xt)}addWorkOnShutdown(xt){return this.addWork(this.onShutdownFunctions,xt)}removeWork(xt){if(this.preSleepFunctions.has(xt))this.preSleepFunctions.delete(xt);else if(this.onShutdownFunctions.has(xt))this.onShutdownFunctions.delete(xt);else{if(!this.onShutdownRequestedFunctions.has(xt)){const Ht=`Id (${xt}) not contained in any registered work map, cannot remove`;throw this.logger.error(Ht),new Error(Ht)}this.onShutdownRequestedFunctions.delete(xt)}}enumHasValue(xt,Ht){return Object.values(xt).includes(Ht)}handleBridgeEvent(xt){if((0,Sn.isNil)(xt)||(0,Sn.isNil)(xt.type))this.logger.error("Nil event or event.type raised from bridge: ",xt);else if(this.enumHasValue(oi,xt.type))if(xt.type===oi.SystemSuspend)this.sleepApplication();else{if(!this.enumHasValue(Ei,xt.reason)&&!this.enumHasValue(Ji,xt.reason))return void this.logger.info("Shutdown reason",xt.reason,"not recognized, not handling");this.performShutdown(xt.reason)}else this.logger.info("Event type",xt.type,"not recognized, not handling")}isShutdownReasonInterruptable(xt){return-1===this.unInterruptableShutdownReasons.indexOf(xt)}addWork(xt,Ht){const ut=new Ra.RegisteredApplicationLifetimeHandle(this),cn=ut.getId();if(this.onShutdownFunctions.has(cn)||this.onShutdownRequestedFunctions.has(cn)||this.preSleepFunctions.has(cn))throw new Error("Dupliate work id found");return xt.set(cn,Ht),ut}closeWindowIfNeeded(xt){this.isShuttingDown=!1,xt!==Ji.BrowserExit&&this.bridgeService.executeCommand(Jn.Ts.Common.Windowcontrol.Close).subscribe(()=>{})}combineAndExecuteFunctions(xt){const Ht=[];return xt.forEach(ut=>{let cn;try{cn=ut().pipe((0,St.W)(si=>(this.logger.error("Failed to execute scheduled func: ",si),(0,Nt.of)(void 0))))}catch(si){this.logger.error(`Caught error ${si} from registered handler, not blocking shutdown`),cn=(0,Nt.of)(void 0)}Ht.push(cn)}),(0,Dt.yU)(...Ht)}performShutdown(xt){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(xt);const Ht=this.isShutdownReasonInterruptable(xt);this.logger.info("starting pre-shutdown promises. shutdown ",Ht?"is":"isn't"," interruptable"),new Xt.c(cn=>{Ht&&this.onShutdownRequestedFunctions.size>0?this.combineAndExecuteFunctions(this.onShutdownRequestedFunctions).subscribe({next:vi=>{cn.next(vi.some(ur=>!0===ur)),cn.complete()},error:vi=>{this.logger.error("OnShutdown work, error: ",vi),cn.next(!1),cn.complete()}}):(cn.next(!1),cn.complete())}).subscribe({next:cn=>{cn?(this.logger.info("shutdown was interrupted during onShutdownRequested"),this.isShuttingDown=!1):0===this.onShutdownFunctions.size?(this.logger.info("no OnShutdown work, closing"),this.closeWindowIfNeeded(xt)):this.combineAndExecuteFunctions(this.onShutdownFunctions).subscribe({next:function(vi){this.logger.info("OnShutdown work completed, closing"),this.closeWindowIfNeeded(xt)}.bind(this),error:function(vi){this.logger.error("OnShutdown work, error: ",vi),this.closeWindowIfNeeded(xt)}.bind(this)})}})}}(Ee=Ra).RegisteredApplicationLifetimeHandle=(Pr=class{constructor(tn){this.parent=tn,this.handleId=Ee.RegisteredApplicationLifetimeHandle.nextHandleId++}getId(){return this.handleId}remove(){this.parent.removeWork(this.handleId)}},Pr.nextHandleId=0,Pr),Ee.\u0275fac=function(xt){return new(xt||Ee)(v.KVO(Ls.J6),v.KVO(Ls.NZ))},Ee.\u0275prov=v.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),c(40482),c(62293),c(25369),c(69996),c(33420);var fo=c(97557)},92994:(je,z,c)=>{"use strict";c.d(z,{p:()=>le,M:()=>l});var r=c(36877),n=c(43848),v=c(27731),h=c(16229),f=c(72147),A=c(8619),M=c(10174),T=c(43780),E=c(83915),y=c(55833),S=c(53461),l=function(oe){return oe.Keyboard="Keyboard",oe.Gamepad="Gamepad",oe.Mouse="Mouse",oe.Touch="Touch",oe}(l||{}),s=c(58527),u=c(3816),m=c(3496),I=c(31315),R=c(12532),O=c(892),Y=c(65726),j=c(34593),fe=c(91384),te=c(8282);const H=new s.nKC("NV_GAMEPAD_CONFIG");var Z=function(oe){return oe[oe.A=0]="A",oe[oe.B=1]="B",oe[oe.X=2]="X",oe[oe.Y=3]="Y",oe[oe.LeftBumper=4]="LeftBumper",oe[oe.RightBumper=5]="RightBumper",oe[oe.LeftTrigger=6]="LeftTrigger",oe[oe.RightTrigger=7]="RightTrigger",oe[oe.Back=8]="Back",oe[oe.Start=9]="Start",oe[oe.LeftStick=10]="LeftStick",oe[oe.RightStick=11]="RightStick",oe[oe.DpadUp=12]="DpadUp",oe[oe.DpadDown=13]="DpadDown",oe[oe.DpadLeft=14]="DpadLeft",oe[oe.DpadRight=15]="DpadRight",oe[oe.Center=16]="Center",oe}(Z||{}),X=c(26513),ue=c(19392),Me=c(75707),be=function(oe){return oe.IGO="igo",oe.Streaming="streaming",oe.ClientIME="ime",oe.PrivacyPolicy="privacy",oe.QuitGath="quitGame",oe.OscNotification="OscNotification",oe}(be||{}),ne=function(oe){return oe.Local="localhost",oe.Stage="stage.nvidia.com",oe.Partner="partner.nvidia.com",oe}(ne||{});const Ge=new RegExp("/mall/index[.]html$|/mall/$|/index[.]html$|/$");var Xe=c(74150);let ot=(()=>{var oe;class Le{get fullScreenEventSubject(){return this.fullScreenEvent}get fullScreenEventObs$(){return this.fullScreenEvent.asObservable()}get documentVisiblityChange(){return(0,r.R)(document,"visibilitychange")}resetExitPath(){this.fullScreenSource=void 0}setExitPath(ye){this.fullScreenSource=ye}get resumeFullScreenIGO(){return this.fullScreenSource===be.IGO}get applicationWindowState$(){return this.isPWAModeOnLGTV?this.webOSWindowStateSubject.asObservable():this.documentVisiblityChange.pipe((0,j.Z)(0),(0,E.T)(ye=>"visible"===document.visibilityState?"foreground":"background"),(0,S.F)())}constructor(ye,Ie,at){this.titleService=Ie,this.ngZone=at,this.keyCodes={c:"KeyC",i:"KeyI",j:"KeyJ",u:"KeyU",f12:"F12"},this.isPWAModeOnLGTV=u.zk.isPWAModeOnLGTV(),this.isPWAModeOnSamsungTV=u.zk.isPWAModeOnSamsungTV(),this.fullScreenEvent=new X.t(!1),this.webOSWindowStateSubject=new X.t("foreground"),this.webOSWindowStateListener=K=>{this.webOSWindowStateSubject.value!==K.detail.state&&this.webOSWindowStateSubject.next(K.detail.state)},this.logger=ye.getLogger("gfn/browser-support"),this.appIcon=document.querySelector("#appIcon"),this.appIconHref=this.appIcon?.href,this.hostBranch=window.location.pathname.replace(Ge,"")}initialize(ye,Ie){ye&&this.ngZone.runOutsideAngular(()=>{document.addEventListener("wheel",this.dummyWheelListener,{passive:!0})}),Ie||this.disableDevTools(),this.isPWAModeOnLGTV&&this.ngZone.runOutsideAngular(()=>{window.addEventListener("windowStateChanged",this.webOSWindowStateListener)})}dummyWheelListener(ye){return ye}disableDevTools(){this.ngZone.runOutsideAngular(()=>{document.addEventListener("contextmenu",ye=>ye.preventDefault()),window.addEventListener("keydown",ye=>{(ye.code===this.keyCodes.i&&ye.ctrlKey&&ye.shiftKey||ye.code===this.keyCodes.j&&ye.ctrlKey&&ye.shiftKey||ye.code===this.keyCodes.u&&ye.ctrlKey||ye.code===this.keyCodes.f12||ye.code===this.keyCodes.c&&ye.shiftKey&&ye.metaKey||ye.code===this.keyCodes.i&&ye.altKey&&ye.metaKey||ye.code===this.keyCodes.j&&ye.altKey&&ye.metaKey||ye.code===this.keyCodes.u&&ye.altKey&&ye.metaKey)&&ye.preventDefault()})})}getGamepads(){if(!navigator.getGamepads)return[];const ye=navigator.getGamepads();return ye instanceof Array?ye:Array.from(ye).filter(at=>!!at)}goToPreviousPage(){window.history.back()}supportsRequestFullscreen(ye){return document.fullscreenEnabled&&ye.requestFullscreen||document.webkitFullscreenEnabled&&ye.webkitRequestFullscreen}isFullscreen(){const ye=screen.width===window.innerWidth&&screen.height===window.innerHeight;return document.fullscreenElement||document.webkitFullscreenElement||!(this.isPWAModeOnLGTV||this.isPWAModeOnSamsungTV)&&ye}requestFullscreen(ye){this.supportsRequestFullscreen(ye)?ye.requestFullscreen?ye.requestFullscreen().catch(Ie=>{this.logger.error(`Error attempting to enable fullscreen mode: ${Ie.message} (${Ie.name})`)}):ye.webkitRequestFullscreen?ye.webkitRequestFullscreen():this.logger.error("No available method to enter fullscreen"):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(ne.Stage)}isPartnerDomain(){return window.location.hostname.endsWith(ne.Partner)}isLocalDomain(){return window.location.hostname.endsWith(ne.Local)}getHostBranchName(){return this.hostBranch}setTitle(ye){ye&&this.titleService.setTitle(ye)}blinkAppIcon(ye){this.appIcon&&this.appIconHref&&(ye%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$(ye){return(0,ue.H)(navigator.permissions.query({name:ye})).pipe((0,Me.ZZ)(Ie=>(0,h.h)((0,n.of)(Ie.state),(0,r.R)(Ie,"change").pipe((0,E.T)(at=>at.target.state)))),(0,fe.M)(Ie=>this.logger.info(`BrowserPermission: ${ye} value: ${Ie}`)))}}return(oe=Le).\u0275fac=function(ye){return new(ye||oe)(s.KVO(u.J6),s.KVO(Xe.hE),s.KVO(s.SKi))},oe.\u0275prov=s.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}),Le})();function W(){return(0,f.n)(oe=>oe?(0,h.h)((0,n.of)(!0),(0,m.O)(250,250).pipe((0,M.u)(!0))):(0,n.of)(!1))}let Pe=(()=>{var oe;class Le{get isGamepadConnected$(){const ye=this.systemInfoService.getSystemInfo([u.Lu.HID]).pipe((0,E.T)(at=>at?.HID?.GamePad?.length>0));return(0,I.zV)([ye,this._isGamepadConnected$]).pipe((0,E.T)(([at,K])=>at||K))}get isAnyGamepadInUse$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,E.T)(ye=>ye.some(Ie=>this.isAnyAxisTriggeredOrButtonPressed(Ie))),(0,S.F)()))}get leftPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,E.T)(ye=>ye.some(Ie=>this.isAxisTriggeredOrButtonPressed(Ie,at=>at[0]<-.6,Z.DpadLeft))),(0,S.F)(),W()))}get rightPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,E.T)(ye=>ye.some(Ie=>this.isAxisTriggeredOrButtonPressed(Ie,at=>at[0]>.6,Z.DpadRight))),(0,S.F)(),W()))}get upPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,E.T)(ye=>ye.some(Ie=>this.isAxisTriggeredOrButtonPressed(Ie,at=>at[1]<-.6,Z.DpadUp))),(0,S.F)(),W()))}get downPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,E.T)(ye=>ye.some(Ie=>this.isAxisTriggeredOrButtonPressed(Ie,at=>at[1]>.6,Z.DpadDown))),(0,S.F)(),W()))}get rightStickMoved$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,E.T)(ye=>ye.some(Ie=>this.isAxisTriggeredOrButtonPressed(Ie,at=>at[2]>.05||at[3]<-.05,Z.RightStick))),(0,S.F)()))}onButtonPressed$(ye,Ie){return this.ngZone.runOutsideAngular(()=>this.getButtonPressed$(this.gamepadsTick$,ye,Ie))}onButtonLongPressed$(ye){return this.ngZone.runOutsideAngular(()=>this.getButtonPressed$(this.gamepadsTick$,ye).pipe((0,f.n)(Ie=>Ie?(0,n.of)(!0).pipe((0,Y.c)(800)):v.t)))}onButtonComboPressed$(ye){return this.ngZone.runOutsideAngular(()=>this.getButtonComboPressed$(this.gamepadsTick$,ye))}constructor(ye,Ie,at,K,ve,De){this.ngZone=at,this.browserSupportService=K,this.systemInfoService=ve,this.doNotUseWebGamepadAPI=!!De?.doNotUseWebGamepadAPI,this.logger=ye.getLogger("GamepadService");const zt=Vt=>Vt?.connected&&(!!u.zk.isAndroidPlatform()||(Vt=>"standard"===Vt?.mapping)(Vt));at.runOutsideAngular(()=>{this._isGamepadConnected$=this.doNotUseWebGamepadAPI?(0,n.of)(!1):(0,h.h)((0,r.R)(window,"gamepadconnected"),(0,r.R)(window,"gamepaddisconnected")).pipe((0,j.Z)(0),(0,E.T)(J=>this.browserSupportService.getGamepads().some(zt)),(0,S.F)(),(0,y.t)(1));const Vt=Ie.leanModeTransitionState.pipe((0,j.Z)(10),(0,E.T)(J=>J?33:10),(0,S.F)()),de=K.applicationWindowState$.pipe((0,E.T)(J=>"foreground"===J));this.gamepadsTick$=this.doNotUseWebGamepadAPI?R.w:(0,I.zV)([this._isGamepadConnected$,de]).pipe((0,f.n)(([J,$e])=>J&&$e?(this.logger.info("Start polling gamepad state"),Vt.pipe((0,fe.M)(st=>{this.logger.info(`Polling gamepad state with period: ${st} ms`)}),(0,f.n)(st=>(0,O.Y)(st)),(0,E.T)(st=>K.getGamepads().filter(zt)))):(this.logger.info(`Stop polling gamepad state (connected=${J}, foreground=${$e})`),(0,n.of)([]))),(0,te.u)())})}getButtonComboPressed$(ye,Ie){return ye.pipe((0,E.T)(at=>at.some(K=>Ie.every(ve=>this.isButtonPressed(K,ve)))),(0,S.F)())}getButtonPressed$(ye,Ie,at){const K=!!at?.repeat,ve=ye.pipe((0,E.T)(De=>De.some(pe=>this.isButtonPressed(pe,Ie,at?.customButtonIndex))),(0,S.F)());return K?ve.pipe(W()):ve}isButtonPressed(ye,Ie,at){return ye.buttons[at??Ie].pressed}isAxisTriggeredOrButtonPressed(ye,Ie,at){return Ie(ye.axes)||this.isButtonPressed(ye,at)}isAnyAxisTriggeredOrButtonPressed(ye){return ye.buttons.some(K=>K.pressed)||ye.axes.some(K=>K>.05||K<-.05)}}return(oe=Le).\u0275fac=function(ye){return new(ye||oe)(s.KVO(u.J6),s.KVO(u.rQ),s.KVO(s.SKi),s.KVO(ot),s.KVO(u.zW),s.KVO(H,8))},oe.\u0275prov=s.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}),Le})(),le=(()=>{var oe;class Le{get lastFocusOrigin(){return this.focusOriginModality.focusOrigin}get lastInputModality(){return this.focusOriginModality.inputModality}constructor(ye,Ie,at){this.gamepadService=Ie,this.ngZone=at,this.focusOriginModality={},this.logger=ye.getLogger("InputModalityService"),this.ngZone.runOutsideAngular(()=>{const K=(0,r.R)(document,"keydown",{capture:!0}).pipe((0,f.n)(Qe=>"GoBack"===Qe.key?(0,n.of)(l.Touch):Qe.isTrusted?(0,n.of)(l.Keyboard):v.t)),ve=this.gamepadService.isAnyGamepadInUse$.pipe((0,A.p)(Qe=>!0===Qe),(0,M.u)(l.Gamepad)),De=(0,r.R)(document,"mousemove",{capture:!0}).pipe((0,T.c)(50),(0,M.u)(l.Mouse)),pe=(0,r.R)(document,"pointerdown",{capture:!0}).pipe((0,A.p)(Qe=>"mouse"===Qe.pointerType||"touch"===Qe.pointerType),(0,E.T)(Qe=>{switch(Qe.pointerType){case"mouse":return l.Mouse;case"touch":return l.Touch}}));this.inputModalityChanged$=(0,h.h)(K,ve,pe,De).pipe((0,y.t)(1),(0,S.F)())})}startMonitoring(){this.logger.info("start monitoring"),this.focusOriginModalitySubscription?.unsubscribe(),this.focusOriginModalitySubscription=this.ngZone.runOutsideAngular(()=>this.inputModalityChanged$.pipe((0,E.T)(ye=>{let Ie;switch(ye){case l.Keyboard:case l.Gamepad:Ie="keyboard";break;case l.Mouse:Ie="mouse";break;case l.Touch:Ie="touch"}return{focusOrigin:Ie,inputModality:ye}})).subscribe(ye=>this.focusOriginModality=ye))}stopMonitoring(){this.logger.info("stop monitoring"),this.focusOriginModalitySubscription?.unsubscribe(),this.focusOriginModalitySubscription=void 0,this.focusOriginModality={}}}return(oe=Le).\u0275fac=function(ye){return new(ye||oe)(s.KVO(u.J6),s.KVO(Pe),s.KVO(s.SKi))},oe.\u0275prov=s.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}),Le})()},78812:(je,z,c)=>{"use strict";c.d(z,{P6:()=>O,Rg:()=>l,XZ:()=>Q,CV:()=>R,wx:()=>ce,EU:()=>s,Op:()=>j,zK:()=>ee,i1:()=>Xe,YH:()=>Y,H0:()=>le,oX:()=>m});var r=c(57258),n=c(3496),v=c(93181),h=c(43848),f=c(12532),A=c(75707),M=c(83915),T=c(14714),E=c(91384),y=c(26875),S=c(3816),l=function(oe){return oe.Full="Full",oe.None="None",oe.Temp="Temp",oe}(l||{}),s=function(oe){return oe.Required="required",oe.Functional="functional",oe.Technical="technical",oe.Behavioral="behavioral",oe}(s||{}),u=function(oe){return oe.Anonymous="anonymous",oe.DeviceOnly="deviceOnly",oe.DevicePreferred="devicePreferred",oe.UserPreferred="userPreferred",oe.UserRequired="userRequired",oe}(u||{}),m=function(oe){return oe.Undefined="undefined",oe}(m||{}),I=function(oe){return oe.EventsCommonStore="eventsCommonStore",oe.EventsDetailStore="eventsDetailStore",oe.EventsDetailStoreRequired="eventsDetailStoreRequired",oe.EventsDetailStoreTechnical="eventsDetailStoreTechnical",oe.EventsDetailStoreBehavioral="eventsDetailStoreBehavioral",oe.UserDataConsentStore="userDataConsentStore",oe}(I||{}),R=function(oe){return oe.USER_ID="USER_ID",oe.DEVICE_ID="DEVICE_ID",oe.SESSION_ID="SESSION_ID",oe}(R||{}),O=function(oe){return oe.SharedStorage="SharedStorage",oe.LocalStorage="LocalStorage",oe.AbHub="AbHub",oe.IndexedDb="IndexedDb",oe}(O||{});class Y{constructor(Le){this.parameters=Le,this.ts=(new Date).toISOString()}}const j={server:"https://events.gfe.nvidia.com",version:"v1.0",schemaVersion:"1.0",defaultRetries:2,defaultTimeBetweenRetries:1e3,defaultTimeout:3e4,msBetweenSendRequest:5e3,maxEventsPerRequest:128,clientId:"",systemInfoEventDelay:1e4,productName:"GFN"},fe=new Y({}),te={clientId:"{CLIENTID}",clientVer:"{CLIENTVER}",eventSchemaVer:"{EVENTSCHEMAVER}",eventSysVer:"0.16.3",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:[fe],integrationId:m.Undefined,browserType:m.Undefined,productName:m.Undefined,productVersion:m.Undefined},ce={required:l.None,functional:l.None,technical:l.None,behavioral:l.None};var Me=function(oe){return oe.Ok="OK",oe.InvalidInfoForEventType="INVALID_INFO_FOR_EVENT_TYPE",oe.UnknownEventType="UNKNOWN_EVENT_TYPE",oe.UnProcessed="UNPROCESSED",oe.ExperimentAlreadyActive="EXPERIMENT_ALREADY_ACTIVE",oe.FunctionalConsentNotReceived="FUNCTIONAL_CONSENT_NOT_RECEIVED",oe.LocaleSwitchInProgress="LOCALE_SWITCH_INPROGRESS",oe}(Me||{}),be=function(oe){return oe.Win="Win",oe.Mac="Mac",oe.Android="Android",oe.NvAndroid="NvAndroid",oe.Linux="Linux",oe.Web="Web",oe.Undefined="undefined",oe}(be||{});const Q={userConsent:ce,userId:"",externalUserId:"",idpId:""};var ge=c(58527);let Xe=(()=>{var oe;class Le{}return(oe=Le).\u0275fac=function(ye){return new(ye||oe)},oe.\u0275prov=ge.jDH({token:oe,factory:oe.\u0275fac}),Le})();var ot=c(52117),dt=c(5798);let xe=(()=>{var oe;class Le{constructor(ye,Ie,at){this.sdkConfig=ye,this.endpointFactory=Ie,this.distributedTracingUtilService=at,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(ye){return this.sdkConfig.server+"/"+this.sdkConfig.version+ye}sendEvent(ye,Ie,at,K){null!==ye&&ye.hasOwnProperty("sync")&&delete ye.sync;const De={body:Ie,headers:{"Content-Type":"application/json","X-Event-Protocol":"1.5"},params:{immediateRequest:JSON.stringify(at)}},pe=this.eventServerEndpoint.makeRequestEx("POST",this.generateUrl("/events/json"),De);return this.distributedTracingUtilService.handleHttpEndpointSpan(pe,De,ot.pB.SendTelemetryEvent,K)}sendEventviaBeacon(ye,Ie,at,K){ye?.hasOwnProperty("sync")&&delete ye.sync;const ve=new Blob([Ie],{type:"text/plain"});return navigator.sendBeacon(this.generateUrl("/events/json"),ve),(0,h.of)(!0)}setServer(ye){return this.sdkConfig.server=ye,this.getServerLocale(null)}getServerLocale(ye){const Ie=ye||this.sdkConfig.server;return Ie&&""!==Ie?Ie.endsWith(".cn")?"china":"global":"unknown"}}return(oe=Le).\u0275fac=function(ye){return new(ye||oe)(ge.KVO(Xe),ge.KVO(dt.t),ge.KVO(ot.Z1))},oe.\u0275prov=ge.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}),Le})(),Re=(()=>{var oe;class Le{constructor(){this.windowLocalStorage=null,S.zk.isBrowserPlatform()&&(this.windowLocalStorage=window.localStorage)}getWlsItem(ye,Ie){return this.windowLocalStorage&&JSON.parse(this.windowLocalStorage.getItem(ye+Ie))}setWlsItem(ye,Ie,at){return this.windowLocalStorage&&this.windowLocalStorage.setItem(ye+Ie,JSON.stringify(at))}removeWlsItem(ye,Ie){return this.windowLocalStorage&&this.windowLocalStorage.removeItem(ye+Ie)}getLength(){return this.windowLocalStorage&&this.windowLocalStorage.length}getKey(ye){return this.windowLocalStorage&&this.windowLocalStorage.key(ye)}clearall(ye){this.windowLocalStorage&&Object.keys(this.windowLocalStorage)?.forEach(Ie=>{Ie?.startsWith(ye)&&this.windowLocalStorage.removeItem(Ie)})}}return(oe=Le).\u0275fac=function(ye){return new(ye||oe)},oe.\u0275prov=ge.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}),Le})(),Ue=(()=>{var oe;class Le{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(ye){this.defaultConsent=ye,this.deviceConsent=ye}setSendEventsInProgressVal(ye){this.sendEventsInProgress=ye}constructor(ye,Ie,at,K,ve,De,pe){this.config=ye,this.eventSdkService=Ie,this.logService=at,this.dbCacheService=K,this.dbService=ve,this.networkStatusService=De,this.windowLocalStorage=pe,this.commonData=te,this.defaultConsent=ce,this.deviceConsent=ce,this.deviceConsentUpdated=!1,this.currentUserConsent=ce,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.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 r.m(1),this.serverLocale="unknown",this.purgeInitiated=!1,this.purgeInProgress={commonDbIsClear:!1,functionalDbIsClear:!1,technicalDbIsClear:!1,behavioralDbIsClear:!1,requiredDbIsClear:!1,wlsDbIsClear:!1},this.setErrorCallback=Qe=>{this.registeredErrorCallback=Qe},this.logger=this.logService.getLogger("JsEventsService"),this.commonData.clientId=this.config.clientId,this.commonData.eventSchemaVer=this.config.schemaVersion,this.sendInterval$=(0,n.O)(0,this.config.msBetweenSendRequest),this.logger.info("initialize",ye),this.networkStatusService.onlineStatusChanged.subscribe(this.onOnlineStateChanged.bind(this)),this.browserPlatform=S.zk.isBrowserPlatform(),this.serverLocale=this.eventSdkService.getServerLocale(null)}defaultErrorCallback(ye){this.logger.error("message:",ye&&ye.message?ye.message:"Unknown error")}updateServer(ye){const Ie=this.eventSdkService.setServer(ye);this.onLocationStateChanged(Ie)}sendToServerEndpoint(ye,Ie){const at=ye.events.slice(0);ye.eventsToBeSent=ye.events.length;const K=[];for(;0!==ye.eventsToBeSent;){let ve;this.logger.event("eventsToBeSent",ye.eventsToBeSent.toString()),ye.eventsToBeSent>this.config.maxEventsPerRequest?(ve=at.slice(0,this.config.maxEventsPerRequest),at.splice(0,this.config.maxEventsPerRequest)):ve=at,ye.eventsToBeSent=ye.eventsToBeSent-ve.length;const De=ye.commonData;De.events=ve,De.sentTs=(new Date).toISOString();const pe=JSON.stringify(De);this.logger.info("events request",pe),K.push(this.eventSdkService.sendEvent(this.customParams,pe,Ie))}return(0,v.p)(K)}updateCleanupState(ye,Ie,at){let K=!1,ve=0;this.cleanBacklogEventsInProgress.forEach(De=>{De.recordKey===ye&&(K=!0,De.functionalDbIsClear=Ie===s.Functional?at:De.functionalDbIsClear,De.technicalDbIsClear=Ie===s.Technical?at:De.technicalDbIsClear,De.behavioralDbIsClear=Ie===s.Behavioral?at:De.behavioralDbIsClear,De.requiredDbIsClear=Ie===s.Required?at:De.requiredDbIsClear,De.functionalDbIsClear&&De.technicalDbIsClear&&De.behavioralDbIsClear&&De.requiredDbIsClear&&(this.dbService.getGlobalStore(I.EventsCommonStore).removeItem(ye).subscribe(),this.cleanBacklogEventsInProgress.splice(ve,1)),ve++)}),!1===K&&this.cleanBacklogEventsInProgress.push({recordKey:ye,functionalDbIsClear:Ie===s.Functional&&at,technicalDbIsClear:Ie===s.Technical&&at,behavioralDbIsClear:Ie===s.Behavioral&&at,requiredDbIsClear:Ie===s.Required&&at})}getConsentedEvents(ye,Ie,at,K){const ve=[];return K&&K.events&&K.events.length>0&&K.events.forEach(De=>{const pe=this.eventHasConsent(De.personalization,ye,Ie,at);if(pe===l.Full||pe===l.Temp){const Qe=(0,y.extend)({},this.updatePersonalizationQualifiers(De));ve.push(Qe)}else this.logger.event("Event excluded from send due to no consent (to be discarded later): ",De,ye)}),ve}sendBacklogEventsDetailToServer(ye,Ie,at,K,ve,De){return this.logger.event("attempting to send backlog events for dbName:",at," userconsent: ",Ie,"key: ",ve),this.dbService.getGlobalStore(at).getItem(ve).pipe((0,A.ZZ)(pe=>{let Qe={commonData:{},events:[],eventsToBeSent:0};const zt=de=>{if(this.logger.event("jsEvents backlog response",de,Qe.eventsToBeSent),0===Qe.eventsToBeSent)return this.dbService.getGlobalStore(at).removeItem(ve).subscribe(),(0,h.of)(!0)},Vt=de=>{this.logger.error("Failed to send backlog events",de.status),this.logger.event("Failed to send backlog events for :",ve,at,".ErrorInfo: status",de.status)};return Qe={commonData:(0,y.merge)({},De.common),events:this.getConsentedEvents(K,ye,Ie,pe),eventsToBeSent:0},Qe.commonData&&Qe.events&&Qe.events.length>0?this.sendToServerEndpoint(Qe,!1).pipe((0,M.T)(de=>{de.forEach(J=>{zt(J)})}),(0,T.W)(de=>(Vt(de),f.w))):(this.updateCleanupState(ve,K,!0),this.dbService.getGlobalStore(at).removeItem(ve).subscribe(),(0,h.of)(!0))}),(0,T.W)(pe=>(this.logger.event("detail data not available for backlog key",ve),this.dbService.getGlobalStore(at).removeItem(ve).subscribe(),(0,h.of)(!0))))}updateWlsCleanupState(ye,Ie,at){let K=!1,ve=0;this.cleanWlsBacklogEventsInProgress.forEach(De=>{De.recordKey===ye&&(K=!0,De.functionalDbIsClear=Ie===s.Functional?at:De.functionalDbIsClear,De.technicalDbIsClear=Ie===s.Technical?at:De.technicalDbIsClear,De.behavioralDbIsClear=Ie===s.Behavioral?at:De.behavioralDbIsClear,De.requiredDbIsClear=Ie===s.Required?at:De.requiredDbIsClear,De.functionalDbIsClear&&De.technicalDbIsClear&&De.behavioralDbIsClear&&De.requiredDbIsClear&&(this.windowLocalStorage.removeWlsItem(I.EventsCommonStore,ye),this.cleanWlsBacklogEventsInProgress.splice(ve,1)),ve++)}),!1===K&&this.cleanWlsBacklogEventsInProgress.push({recordKey:ye,functionalDbIsClear:Ie===s.Functional&&at,technicalDbIsClear:Ie===s.Technical&&at,behavioralDbIsClear:Ie===s.Behavioral&&at,requiredDbIsClear:Ie===s.Required&&at})}sendWlsBacklogEventsDetailToServer(ye,Ie,at,K,ve,De){this.logger.event("attempting to send wls backlog events for dbName:",at," userconsent: ",Ie,"key: ",ve);const pe=this.windowLocalStorage.getWlsItem(at,ve);if(pe){let Qe={commonData:{},events:[],eventsToBeSent:0};const zt=de=>{if(this.logger.event("jsEvents wls backlog response",de,Qe.eventsToBeSent),0===Qe.eventsToBeSent)return this.windowLocalStorage.removeWlsItem(at,ve)},Vt=de=>{this.logger.error("Failed to send wls backlog events :",de.status),this.logger.event("Failed to send wls backlog events for :",ve,at,".ErrorInfo: status",de.status)};return Qe={commonData:(0,y.merge)({},De.common),events:this.getConsentedEvents(K,ye,Ie,pe),eventsToBeSent:0},Qe.commonData&&Qe.events&&Qe.events.length>0?this.sendToServerEndpoint(Qe,!1).pipe((0,M.T)(de=>{de.forEach(J=>{zt(J)})}),(0,T.W)(de=>(Vt(de),f.w))):(this.updateWlsCleanupState(ve,K,!0),(0,h.of)(this.windowLocalStorage.removeWlsItem(at,ve)))}return this.updateWlsCleanupState(ve,K,!0),this.logger.event("detail data not available for wls backlog key",ve),(0,h.of)(this.windowLocalStorage.removeWlsItem(at,ve))}attemptSendFromAllEventStores(ye,Ie,at,K,ve){return(0,v.p)([ye.call(this,Ie,at,I.EventsDetailStore,s.Functional,K,ve),ye.call(this,Ie,at,I.EventsDetailStoreTechnical,s.Technical,K,ve),ye.call(this,Ie,at,I.EventsDetailStoreBehavioral,s.Behavioral,K,ve),ye.call(this,Ie,at,I.EventsDetailStoreRequired,s.Required,K,ve)])}sendBacklogEvents(ye){try{this.dbService.getGlobalStore(I.EventsCommonStore).getItem(ye).pipe((0,A.ZZ)(Ie=>{if(this.logger.event("testCommonData",Ie),Ie&&Ie.common){const at=JSON.parse(ye);return this.getUserConsentFromCache(at.userId||"undefined",!1).pipe((0,A.ZZ)(K=>(this.logger.event("userConsentFromCache",K),Ie.common.gdprFuncOptIn=this.getString(K.functional),Ie.common.gdprTechOptIn=this.getString(K.technical),Ie.common.gdprBehOptIn=this.getString(K.behavioral),Ie.common.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),Ie.common.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),Ie.common.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),this.attemptSendFromAllEventStores(this.sendBacklogEventsDetailToServer,this.deviceConsent,K,ye,Ie))))}return this.logger.event("common data not available for backlog key",ye),this.dbService.getGlobalStore(I.EventsCommonStore).removeItem(ye).subscribe(),(0,h.of)(!0)}),(0,T.W)(Ie=>(this.logger.event("common data not available for backlog key",ye),this.dbService.getGlobalStore(I.EventsCommonStore).removeItem(ye).subscribe(),(0,h.of)(!0)))).subscribe()}catch(Ie){this.logger.error("catch backlog::",Ie)}}sendWlsBacklogEvents(ye){try{const Ie=this.windowLocalStorage.getWlsItem(I.EventsCommonStore,ye);if(this.logger.event("wlsCommonData",Ie),Ie){const at=JSON.parse(ye);this.getUserConsentFromCache(at.userId||"undefined",!1).pipe((0,A.ZZ)(K=>{this.logger.event("userConsentFromCache",K);const ve={common:Ie};return ve.common.gdprFuncOptIn=this.getString(K.functional),ve.common.gdprTechOptIn=this.getString(K.technical),ve.common.gdprBehOptIn=this.getString(K.behavioral),ve.common.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),ve.common.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),ve.common.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),this.attemptSendFromAllEventStores(this.sendWlsBacklogEventsDetailToServer,this.deviceConsent,K,ye,ve)})).subscribe()}else this.logger.event("wls common data not available for backlog key",ye),this.windowLocalStorage.removeWlsItem(I.EventsCommonStore,ye)}catch(Ie){this.logger.error("catch wls backlog:",Ie)}}setInProgressState(ye,Ie){this.sendBatchEventsInProgress.functional=ye===s.Functional?Ie:this.sendBatchEventsInProgress.functional,this.sendBatchEventsInProgress.technical=ye===s.Technical?Ie:this.sendBatchEventsInProgress.technical,this.sendBatchEventsInProgress.behavioral=ye===s.Behavioral?Ie:this.sendBatchEventsInProgress.behavioral,this.sendBatchEventsInProgress.required=ye===s.Required?Ie:this.sendBatchEventsInProgress.required,this.eventsInBatch=this.getInProgressState()}getInProgressState(){return this.sendBatchEventsInProgress.functional||this.sendBatchEventsInProgress.technical||this.sendBatchEventsInProgress.behavioral||this.sendBatchEventsInProgress.required}sendBatchedEventsDetailToServer(ye,Ie,at,K,ve,De){this.logger.event("attempting to send batched events for dbName:",at," userconsent: ",Ie,"key: ",ve);const pe=this.dbCacheService.getCachedGlobalItem(at,ve);let Qe={commonData:{},events:[],eventsToBeSent:0};const zt=de=>{this.logger.event("jsEvents batched response",de);const J=JSON.parse(de.config.data);this.cleanUpSentEvents(J.events,at,ve),this.setInProgressState(K,!1),this.sendEventsInProgress=!1},Vt=de=>{this.setInProgressState(K,!1),this.sendEventsInProgress=!1,this.logger.error("Failed to send events for :",ve,".ErrorInfo: status",de.status)};return Qe={commonData:(0,y.merge)({},De.common),events:this.getConsentedEvents(K,ye,Ie,pe),eventsToBeSent:0},Qe.commonData&&Qe.events&&Qe.events.length>0?(this.setInProgressState(K,!0),this.sendEventsInProgress=!0,this.sendToServerEndpoint(Qe,!1).subscribe(de=>{de.forEach(J=>{zt(J)})},de=>{Vt(de)})):(pe&&pe.events&&(pe.events.splice(0,pe.events.length),pe.persist_().subscribe()),this.setInProgressState(K,!1),this.sendEventsInProgress=!1),f.w}sendEvents(){const ye=this.getRecordKey(),Ie=this.dbCacheService.getCachedGlobalItem(I.EventsCommonStore,ye);if(Ie&&Ie.common)this.getUserConsentFromCache(this.currentUserId||m.Undefined,!0).pipe((0,A.ZZ)(at=>(Ie.common.gdprFuncOptIn=this.getString(at.functional),Ie.common.gdprTechOptIn=this.getString(at.technical),Ie.common.gdprBehOptIn=this.getString(at.behavioral),Ie.common.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),Ie.common.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),Ie.common.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),this.attemptSendFromAllEventStores(this.sendBatchedEventsDetailToServer,this.deviceConsent,at,ye,Ie)))).subscribe();else{if(this.logger.event("common data not available for key",ye),Ie&&(0,y.isUndefined)(Ie.common))try{this.registeredErrorCallback("common data not set before starting to send events")}catch(at){this.logger.error(at),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),!0===this.eventsInBatch&&!1===this.sendEventsInProgress&&!1===this.getInProgressState()&&!1===this.getPurgeInProgressState()&&(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(ye){this.isOnline=ye,this.isOnline?this.deviceConsent!==ce&&(this.logger.info("jsEvents turns into online"),this.startTimeBasedSendToServer()):(this.logger.info("jsEvents turns into offline"),this.stopTimeBasedSendToServer())}onLocationStateChanged(ye){"unknown"!==this.serverLocale&&this.serverLocale!==ye&&(this.logger.info("purge stored events"),this.purgeInitiated=!0,this.purgeEventStoreRecords()),this.serverLocale=ye}purgeEventStoreRecords(){this.purgeInProgress={commonDbIsClear:!1,functionalDbIsClear:!1,technicalDbIsClear:!1,behavioralDbIsClear:!1,requiredDbIsClear:!1,wlsDbIsClear:!1},this.dbService.getGlobalStore(I.EventsDetailStore).clear().subscribe(()=>{this.purgeInProgress.functionalDbIsClear=!0}),this.dbService.getGlobalStore(I.EventsDetailStoreTechnical).clear().subscribe(()=>{this.purgeInProgress.technicalDbIsClear=!0}),this.dbService.getGlobalStore(I.EventsDetailStoreBehavioral).clear().subscribe(()=>{this.purgeInProgress.behavioralDbIsClear=!0}),this.dbService.getGlobalStore(I.EventsDetailStoreRequired).clear().subscribe(()=>{this.purgeInProgress.requiredDbIsClear=!0}),this.dbService.getGlobalStore(I.EventsCommonStore).clear().subscribe(()=>{this.purgeInProgress.commonDbIsClear=!0}),this.windowLocalStorage.clearall(I.EventsDetailStore),this.windowLocalStorage.clearall(I.EventsDetailStoreTechnical),this.windowLocalStorage.clearall(I.EventsDetailStoreBehavioral),this.windowLocalStorage.clearall(I.EventsDetailStoreRequired),this.windowLocalStorage.clearall(I.EventsCommonStore),this.purgeInProgress.wlsDbIsClear=!0}getPurgeInProgressState(){let ye=!1;return this.purgeInitiated&&(ye=!(this.purgeInProgress.wlsDbIsClear&&this.purgeInProgress.functionalDbIsClear&&this.purgeInProgress.technicalDbIsClear&&this.purgeInProgress.behavioralDbIsClear&&this.purgeInProgress.requiredDbIsClear&&this.purgeInProgress.commonDbIsClear),this.purgeInitiated=ye),ye}getUserConsentFromCache(ye,Ie){const K={required:this.deviceConsent.required,functional:this.deviceConsent.functional,technical:l.None,behavioral:l.None},ve=this.dbCacheService.getOrCreateCachedGlobalItem(I.UserDataConsentStore,ye||m.Undefined);return ve?ve.sync_().pipe((0,M.T)(()=>{const De=ve&&ve.userConsent;return!0===Ie&&((0,y.isNil)(De)?this.currentUserId===m.Undefined&&(this.currentUserConsent=K,this.currentUserConsentUpdated=!0):(this.currentUserConsent=De,this.currentUserConsentUpdated=!0)),De||K}),(0,T.W)(De=>(0,h.of)(K))):(0,h.of)(K)}syncUserConsentInfo(ye){const Ie=ye.find(at=>at.userId===this.currentUserId);Ie&&(this.currentUserConsent=Ie.userConsent,this.currentUserConsentUpdated=!0),ye.forEach(at=>{const K=this.dbCacheService.getOrCreateCachedGlobalItem(I.UserDataConsentStore,at.userId);this.logger.event("previously cached consent",K.userConsent),K.userConsent=at.userConsent,K.persist_().subscribe(),this.logger.event("updated consent",at.userConsent)}),this.syncedUserConsentInfo=!0,this.startSendingEvents()}setDefaultConsent(ye){this.defaultConsent=ye,this.deviceConsent=ye,(this.currentUserId===m.Undefined||(0,y.isUndefined)(this.currentUserId))&&(this.currentUserConsent={required:this.deviceConsent.required,functional:this.deviceConsent.functional,technical:l.None,behavioral:l.None},this.currentUserConsentUpdated=!0),this.startSendingEvents()}setDeviceConsent(ye){this.deviceConsent=ye,this.deviceConsentUpdated=!0,this.logger.event("device consent",ye),this.startSendingEvents()}eventHasConsent(ye,Ie,at,K){let ve;return ve=ye===u.Anonymous||ye===u.DeviceOnly||ye===u.DevicePreferred?at:ye===u.UserRequired?this.currentUserId===m.Undefined||(0,y.isUndefined)(this.currentUserId)?ce:K:this.currentUserId===m.Undefined||(0,y.isUndefined)(this.currentUserId)?{required:this.deviceConsent.required,functional:this.deviceConsent.functional,technical:l.None,behavioral:l.None}:K,Ie===s.Required?ve.required:Ie===s.Functional?ve.functional:Ie===s.Technical?ve.technical:Ie===s.Behavioral?ve.behavioral:l.None}cleanUpDbStore(){if(this.isTelemetryDisabled)return;const ye=this;if(this.commonData.sessionId===m.Undefined)return void ye.logger.info("Cleanup cannot proceed, this.commonData.sessionId is undefined");this.sendBacklogEventsInitiated=!0;const Ie=JSON.parse(this.getRecordKey());this.logger.info("cleanUpDbStore excluding session for",Ie);try{ye.dbService.getGlobalStore(I.EventsCommonStore).keys().pipe((0,E.M)(at=>{at.forEach((K,ve)=>{try{if(ye.logger.event("Key#",ve,"key ",K),"_version"===K)ye.logger.info("_version to be skipped",K);else{const De=JSON.parse(K);""===De.sessionId||De.sessionId===Ie.sessionId?ye.logger.info("key not to be processed",De):ye.sendBacklogEvents(K)}}catch(De){ye.logger.error("Json parsing failed for key:",K,"error:",De?.message)}})})).subscribe()}catch(at){ye.logger.error("encountered failure, error:",at?.message)}}cleanUpWlsStore(){this.sendBacklogEventsInitiated=!0;const ye=JSON.parse(this.getRecordKey());this.logger.info("cleanUpWlsStore excluding session for",ye);for(let Ie=0;Ie<this.windowLocalStorage.getLength();++Ie){const at=this.windowLocalStorage.getKey(Ie);if(at.match("^"+I.EventsCommonStore)){this.logger.event("Key#",Ie,"key ",at);const K=JSON.parse(at.replace(I.EventsCommonStore,""));""===K.sessionId||K.sessionId===ye.sessionId?this.logger.event("key not to be processed",K):this.sendWlsBacklogEvents(JSON.stringify(K))}}}cleanUpSentEvents(ye,Ie,at){this.logger.event("cleanUpSentEvents for",at);const K=this.dbCacheService.getCachedGlobalItem(Ie,at);ye.forEach(ve=>{if(K&&K.events.length>0){const De=K.events.find(pe=>pe.ts===ve.ts);if(De&&(0,y.isEqual)(De.parameters,ve.parameters)){const pe=K.events.indexOf(De);this.logger.event("matching event found",ve),K.events.splice(pe,1),K.persist_().subscribe()}else this.logger.event("matching event not found")}else this.logger.event("events seem to be already cleared")}),K.persist_().subscribe()}startSendingEvents(){this.isOnline&&this.deviceConsent!==ce&&"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(ye){return(0,y.omit)(ye,"gdprLevel")}updatePersonalizationQualifiers(ye){return(0,y.omit)(ye,"personalization")}updateGdprAndPersonalizationQualifiers(ye){return(0,y.omit)(ye,["gdprLevel","personalization"])}getString(ye){return ye&&"string"!=typeof ye?JSON.stringify(ye):ye||""}getRecordKey(){return JSON.stringify({sessionId:this.commonData.sessionId||m.Undefined,userId:this.currentUserId||m.Undefined})}getFormattedInputData(ye,Ie){const at=(0,y.extend)({},this.commonData);!0===Ie.anonymize&&(at.deviceId="undefined",at.userId="undefined",at.sessionId="undefined",at.externalUserId="undefined",at.idpId="undefined");const K=(0,y.extend)({},this.updateGdprAndPersonalizationQualifiers(ye));this.logger.event("eventDetail",K);const ve=[];return ve.push(K),at.events=ve,at.sentTs=(new Date).toISOString(),at.gdprFuncOptIn=this.getString(this.currentUserConsent.functional),at.gdprTechOptIn=this.getString(this.currentUserConsent.technical),at.gdprBehOptIn=this.getString(this.currentUserConsent.behavioral),at.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),at.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),at.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),JSON.stringify(at)}setFormattedEventsDetailData(ye,Ie,at){const K=this.getRecordKey();let De,ve=I.EventsDetailStore;if(ye.gdprLevel===s.Technical&&(ve=I.EventsDetailStoreTechnical),ye.gdprLevel===s.Behavioral&&(ve=I.EventsDetailStoreBehavioral),ye.gdprLevel===s.Required&&(ve=I.EventsDetailStoreRequired),Ie){De=this.windowLocalStorage.getWlsItem(ve,K)||{},De.events=De.events||[];const pe=(0,y.extend)({},this.updateGdprQualifiers(ye));this.logger.event("eventDetail wls",pe),De.events.push(pe),this.logger.event("details list wls",De.events),this.windowLocalStorage.setWlsItem(ve,K,De),(0,y.isFunction)(at)&&at(),this.logger.event("request to batch an exit time event")}else{De=this.dbCacheService.getOrCreateCachedGlobalItem(ve,K);let pe=De.events;const Qe=(0,y.extend)({},this.updateGdprQualifiers(ye));if(this.logger.event("eventDetail IDb",Qe),pe)pe.push(Qe);else{const zt=[];zt.push(Qe),pe=zt}this.logger.event("details list indexed db",pe),De.events=pe,De.persist_().subscribe(()=>{(0,y.isFunction)(at)&&at(),this.logger.event("request to batch an event"),this.eventsInBatch=!0})}}storeEventDetail(ye,Ie){this.setFormattedEventsDetailData(ye,this.browserPlatform&&Ie.appExit||!1,Ie.afterDone||null)}checkIfEventIsSendable(ye,Ie){return(0,y.isEqual)(this.deviceConsent,ce)||ye&&(0,y.isUndefined)(ye.gdprLevel)?(this.logger.info("No consent available, discarding event",ye.name,ye.gdprLevel),(0,y.isFunction)(Ie.afterDone)&&Ie.afterDone(),Me.FunctionalConsentNotReceived):this.getPurgeInProgressState()?Me.LocaleSwitchInProgress:Me.Ok}sendEventDetail(ye,Ie){if(ye){Ie=(0,y.merge)({},Ie),this.isValidPersonalization(ye.personalization)||(ye.personalization=u.UserPreferred);const at=this.checkIfEventIsSendable(ye,Ie);if(at!==Me.Ok)return at;if("unknown"===this.serverLocale||!0!==Ie.immediateRequest&&!0!==Ie.useBeacon||!0!==this.isOnline)this.storeEventDetail(ye,Ie);else{const K=this.eventHasConsent(ye.personalization,ye.gdprLevel,this.deviceConsent,this.currentUserConsent);if(this.logger.event("attempting to send immediate event for userId:",this.currentUserId," userconsent: ",this.currentUserConsent,"deviceconsent: ",this.deviceConsent),K!==l.Full&&K!==l.Temp)return this.currentUserId&&this.currentUserId!==m.Undefined&&!1===this.currentUserConsentUpdated?(this.storeEventDetail(ye,Ie),this.logger.event("Event stored as userConsent not synced yet",K,this.currentUserConsentUpdated)):((0,y.isFunction)(Ie.afterDone)&&Ie.afterDone(),this.logger.error("Event cannot be sent due to consent level:",K)),K;{const ve=this.getFormattedInputData(ye,Ie);this.logger.info("jsonString request to send:",ve);let De=this.eventSdkService.sendEvent,pe=!0;Ie.useBeacon&&(De=this.eventSdkService.sendEventviaBeacon,pe=!1),De.call(this.eventSdkService,this.customParams,ve,pe).subscribe(Qe=>{this.logger.event("jsevents response",Qe),(0,y.isFunction)(Ie.afterDone)&&Ie.afterDone()},Qe=>{this.logger.error("Failed to send eventdata for:",ye.name,".ErrorInfo: status",Qe.status,", data",Qe.config&&Qe.config.data),this.storeEventDetail(ye,Ie)})}}return Me.Ok}return this.logger.error("Empty request"),Me.UnProcessed}sendEventDetailWithPromise(ye,Ie){return new Promise((at,K)=>{if(ye){if(Ie=(0,y.merge)({},Ie),(0,y.isEqual)(this.deviceConsent,ce)||ye&&(0,y.isUndefined)(ye.gdprLevel))return this.logger.info("Functional consent not received, discarding event",ye.name,ye.gdprLevel),(0,y.isFunction)(Ie.afterDone)&&Ie.afterDone(),void K(Me.FunctionalConsentNotReceived);if(this.getPurgeInProgressState())return void K(Me.LocaleSwitchInProgress);if("unknown"===this.serverLocale||!0!==Ie.immediateRequest&&!0!==Ie.useBeacon||!0!==this.isOnline)this.storeEventDetail(ye,Ie),at(Me.Ok);else{const ve=this.eventHasConsent(ye.personalization,ye.gdprLevel,this.deviceConsent,this.currentUserConsent);if(this.logger.event("attempting to send immediate event for userId:",this.currentUserId," userconsent: ",this.currentUserConsent,"deviceconsent: ",this.deviceConsent),ve===l.Full||ve===l.Temp){const De=this.getFormattedInputData(ye,Ie);let pe=this.eventSdkService.sendEvent,Qe=!0;Ie.useBeacon&&(pe=this.eventSdkService.sendEventviaBeacon,Qe=!1),pe.call(this.eventSdkService,this.customParams,De,Qe).subscribe(zt=>{this.logger.event("jsevents response",zt),(0,y.isFunction)(Ie.afterDone)&&Ie.afterDone(),at(Me.Ok)},zt=>{this.logger.error("Failed to send eventdata for:",ye.name,".ErrorInfo: status",zt.status,", data",zt.config&&zt.config.data),this.storeEventDetail(ye,Ie),at(Me.UnProcessed)})}else this.currentUserId&&this.currentUserId!==m.Undefined&&!1===this.currentUserConsentUpdated?(this.storeEventDetail(ye,Ie),this.logger.event("Event stored as userConsent not synced yet",ve,this.currentUserConsentUpdated)):((0,y.isFunction)(Ie.afterDone)&&Ie.afterDone(),this.logger.error("Event cannot be sent due to consent level:",ve)),at(ve)}}else this.logger.error("Empty request"),at(Me.Ok)})}isValidPlatformType(ye){return ye===be.Win||ye===be.Mac||ye===be.Android||ye===be.NvAndroid||ye===be.Linux||ye===be.Web}isValidPersonalization(ye){return ye===u.Anonymous||ye===u.DeviceOnly||ye===u.DevicePreferred||ye===u.UserPreferred||ye===u.UserRequired}setEventsCommonData(ye){if(!ye)return this.logger.error("Undefined common data sent by client"),(0,h.of)(void 0);this.cleanUpBacklogEvents=!1,this.commonData.sessionId===m.Undefined&&ye.sessionId&&(this.cleanUpBacklogEvents=!0),this.commonData=(0,y.merge)({},this.commonData,ye),this.logger.info("client user data",ye.userId,ye.externalUserId,ye.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.isValidPlatformType(this.commonData.platform)||(this.commonData.platform=be.Undefined),this.currentUserConsentUpdated=!1,this.logger.info("Device Id:",this.commonData.deviceId,"set for client:",this.commonData.clientId);const Ie=this.getUserConsentFromCache(this.currentUserId,!0);this.logger.event(this.commonData);const at=this.getRecordKey(),K=this.dbCacheService.getOrCreateCachedGlobalItem(I.EventsCommonStore,at);if(K.common=this.commonData,K.persist_().subscribe(),this.browserPlatform){let ve=this.windowLocalStorage.getWlsItem(I.EventsCommonStore,at)||{};ve=this.commonData,this.windowLocalStorage.setWlsItem(I.EventsCommonStore,at,ve)}return this.isOnline&&this.deviceConsent!==ce&&"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),Ie}setOverrideToolTelemetryState(ye){this.isTelemetryDisabled=ye}ngOnDestroy(){this.sendEventSubscription&&(this.sendEventSubscription.unsubscribe(),this.sendEventSubscription=void 0)}}return(oe=Le).\u0275fac=function(ye){return new(ye||oe)(ge.KVO(Xe),ge.KVO(xe),ge.KVO(S.J6),ge.KVO(S.sc),ge.KVO(S.at),ge.KVO(S.CF),ge.KVO(Re))},oe.\u0275prov=ge.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}),Le})(),ee=(()=>{var oe;class Le{static forRoot(ye){return{ngModule:Le,providers:[{provide:Xe,useValue:ye||j}]}}}return(oe=Le).\u0275fac=function(ye){return new(ye||oe)},oe.\u0275mod=ge.$C({type:oe}),oe.\u0275inj=ge.G2t({}),Le})();var W=c(74931),Pe=c(99047);let le=(()=>{var oe;class Le{constructor(ye,Ie,at){this.loggingService=ye,this.bridgeService=Ie,this.jsEventsService=at,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.platform=null,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 r.m(1),this.deviceConsentListener$=new r.m(1),this.commonDataListener$=new r.m(1),this.validUserIdResetListener$=new r.m(1),this.consentUpdatedPromise=new Promise(K=>{K(null)}),this.logEvaluatorCallback=K=>!0,this.logger=this.loggingService.getLogger("telemetryService"),this.getUIRefreshState(),this.sessionId=this.generateSessionId()}updateTelemetrySessionId(ye){this.sessionId=ye}initialize(ye){this.isTelemetryDisabled=ye,this.jsEventsService.setOverrideToolTelemetryState(this.isTelemetryDisabled)}getCommonData$(){return this.jsEventsService.getCommonData$()}setLaunchUiEventSent(ye){this.launchUiEventSent=ye,this.logger.info("Launch UI event sent: ",this.launchUiEventSent)}getLaunchUiEventSent(){return this.launchUiEventSent}setLoggingEvaluator(ye){this.logEvaluatorCallback=ye}getUIRefreshState(){this.logger.info("Getting  UI Refreshed state"),this.bridgeService.executeCommand(W.Ts.Common.Applicationinfo.GetIsUIRefreshed).subscribe(ye=>{this.isUIRefreshed=ye,this.logger.info("Refreshed state",this.isUIRefreshed)},()=>{this.logger.error("Failed to get UI Refreshed state")})}generateSessionId(){let ye=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(at){const K=(ye+16*Math.random())%16|0;return ye=Math.floor(ye/16),("x"===at?K:3&K|8).toString(16)})}get telemetrySessionId(){return this.sessionId}setEventsCommonData(ye,Ie=!1,at=!1){this.logger.info("telemetry sessionId is ",this.sessionId),!this.deviceId&&ye&&ye.deviceId&&this.logger.info("telemetry deviceId",ye.deviceId),(Ie&&ye&&ye.userId||ye&&ye.externalUserId)&&(this.logger.info("telemetry userId ",ye.userId),this.logger.info("telemetry externalUserId ",ye.externalUserId),this.logger.info("telemetry idpId ",ye.idpId)),this.deviceId=ye&&ye.deviceId?ye.deviceId:this.deviceId,this.clientVersion=ye&&ye.clientVer||this.clientVersion,Ie&&(this.userId=ye.userId||"undefined",this.externalUserId=ye.externalUserId||"undefined",this.idpId=ye.idpId||"undefined"),this.platform=this.platform||ye.platform,this.deviceOS=this.deviceOS||ye.deviceOS,this.deviceOSVersion=this.deviceOSVersion||ye.deviceOSVersion,this.deviceType=this.deviceType||ye.deviceType,this.deviceModel=this.deviceModel||ye.deviceModel,this.deviceMake=this.deviceMake||ye.deviceMake,this.clientType=this.clientType||ye.clientType,this.clientVariant=this.clientVariant||ye.clientVariant,this.integrationId=this.integrationId||ye.integrationId,this.browserType=this.browserType||ye.browserType,this.productName=this.productName||ye.productName,this.productVersion=this.productVersion||ye.productVersion,at&&(this.integrationId=ye.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,platform:this.platform,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,platform:this.platform,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(Ie&&this.userId&&this.userId!==m.Undefined)}setScreen(ye){this.currentScreen=ye}getScreen(){return this.currentScreen}changeSync(ye){this.sync=ye}setDefaultClientConsent(ye){this.logger.event("Set client consent: ",ye),this.jsEventsService.setDefaultConsent(ye),this.defaultConsentListener$.next(!0)}setDeviceConsent(ye){this.logger.event("Set device consent: ",ye),this.jsEventsService.setDeviceConsent(ye),this.defaultConsentListener$.next(!0),this.deviceConsentListener$.next(!0)}setUserConsent(ye){this.logger.event("Set user consent: ",ye),this.jsEventsService.syncUserConsentInfo(ye)}getDefaultClientConsentObserable(){return this.defaultConsentListener$.pipe((0,Pe.$)())}getDeviceConsentObservable(){return this.deviceConsentListener$.pipe((0,Pe.$)())}getCommonDataObservable(){return this.commonDataListener$.pipe((0,Pe.$)())}getValidUserIdResetObservable(){return this.validUserIdResetListener$.asObservable()}setServerConfig(ye){this.jsEventsService.updateServer(ye)}push(ye,Ie,at){if(this.isUIRefreshed||this.isTelemetryDisabled)this.logger.info("Disabled telemetry",ye.name);else if(ye){if(at=(0,y.merge)({},at),at=(0,y.extend)(at,{appExit:this.sync}),Ie&&ye.parameters.hasOwnProperty("totalMs")){const K=Date.now(),ve=K-Ie;this.logger.info("Started ",ye.name,"at ",Ie,"and ended at ",K,"Time elapsed(ms)",ve),ye.parameters=(0,y.merge)(ye.parameters,{totalMs:ve})}this.logEvaluatorCallback(ye)&&this.logger.event("Event detail: ",ye),this.consentUpdatedPromise.then(()=>{this.logger.info("Sending event "+ye.name),this.jsEventsService.sendEventDetail(ye,at)})}else this.logger.error("Empty event.")}pushWithPromise(ye,Ie,at){if(this.isUIRefreshed||this.isTelemetryDisabled)return this.logger.info("Disabled telemetry",ye.name),new Promise((K,ve)=>{K("Disabled telemetry")});if(ye){if(at=(0,y.merge)({},at),at=(0,y.extend)(at,{appExit:this.sync}),Ie&&ye.parameters.hasOwnProperty("totalMs")){const K=Date.now(),ve=K-Ie;this.logger.info("Started ",ye.name,"at ",Ie,"and ended at ",K,"Time elapsed(ms)",ve),ye.parameters=(0,y.merge)(ye.parameters,{totalMs:ve})}return this.logEvaluatorCallback(ye)&&this.logger.event("Event detail: ",ye),new Promise(K=>{this.consentUpdatedPromise.then(()=>this.jsEventsService.sendEventDetailWithPromise(ye,at)).then(ve=>{K(ve)})})}return this.logger.error("Empty event."),new Promise((K,ve)=>{ve("Empty event.")})}}return(oe=Le).\u0275fac=function(ye){return new(ye||oe)(ge.KVO(S.J6),ge.KVO(S.NZ),ge.KVO(Ue))},oe.\u0275prov=ge.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}),Le})()},60846:(je,z,c)=>{"use strict";c.d(z,{K:()=>n,Q:()=>v});var r=c(58527);let n=(()=>{var h;class f{}return(h=f).\u0275fac=function(M){return new(M||h)},h.\u0275prov=r.jDH({token:h,factory:h.\u0275fac}),f})();const v=["SystemInfo","MessageBusRouter","DriverUpdateRecommendation","NVAccount"]},35184:(je,z,c)=>{"use strict";c.d(z,{n:()=>E});var r=c(80583),n=c(3496),v=c(8126),h=c(74931),f=c(58527),A=c(31650),M=c(3678),T=c(60846);let E=(()=>{var y;class S{constructor(s,u,m){this.bridgeService=s,this.mandatoryPlugins=m,this.logger=u.getLogger("MandatoryPluginsHandlerService"),this.mandatoryPluginsLoaded=new r.B7}areAllPluginsLoaded(s){return!s.modules.find(u=>u.state===h.Or.Common.Applicationcontrol.State1.failed||u.state===h.Or.Common.Applicationcontrol.State1.inactive)}handleModuleActivationNotification(s){let u={modules:[]};this.mandatoryPlugins.moduleNames.forEach(m=>{let I=s.modules.find(R=>R.module.toLowerCase()===m.toLowerCase());I&&(I.state===h.Or.Common.Applicationcontrol.State1.failed||I.state===h.Or.Common.Applicationcontrol.State1.inactive?this.mandatoryPluginsLoaded.next({loaded:!1,name:m}):I.state===h.Or.Common.Applicationcontrol.State1.active&&u.modules.push(I))}),u.modules.length===this.mandatoryPlugins.moduleNames.length&&this.areAllPluginsLoaded(u)&&(this.mandatoryPluginsLoaded.next({loaded:!0}),this.triggerLoadingIndicator(!1))}get mandatoryPluginsLoaded$(){return this.mandatoryPluginsLoaded.asObservable()}registerForModulesActiveNotification(){this.bridgeService.executeCommand(v.T.Common.Applicationcontrol.ModulesActiveNotification).subscribe(s=>{this.logger.info("ModuleActiveNotification state ",s),this.mandatoryPlugins.moduleNames.length>0&&s.modules.length>0&&this.handleModuleActivationNotification(s)},s=>{this.logger.error("MandatoryPluginsHandlerService failed with error: ",s),this.mandatoryPluginsLoaded.next({loaded:!1,name:""})})}init(){this.registerForModulesActiveNotification(),this.mandatoryPlugins.mandatoryPluginTimeout&&this.triggerLoadingIndicator(!0)}triggerLoadingIndicator(s){s?(this.timerSub&&this.timerSub.unsubscribe(),this.timerSub=(0,n.O)(this.mandatoryPlugins.mandatoryPluginTimeout).subscribe(()=>{this.mandatoryPluginsLoaded.next({loaded:!1}),this.timerSub.unsubscribe(),this.timerSub=null})):this.timerSub&&this.timerSub.unsubscribe()}}return(y=S).\u0275fac=function(s){return new(s||y)(f.KVO(A.N),f.KVO(M.J6),f.KVO(T.K))},y.\u0275prov=f.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),S})()},55808:(je,z,c)=>{"use strict";c.d(z,{W:()=>s});var r=c(80583),n=c(59859),v=c(43848),h=c(65706),f=c(91384),A=c(10174),M=c(14714),T=c(83915),E=c(74931),y=c(58527),S=c(3816),l=c(20812);let s=(()=>{var u;class m{constructor(R,O,Y){this.bridgeService=O,this.config=Y,this.userIdChanged$=new r.B7,this.userConsentChanged$=new r.B7,this.privacySettingsConsentInfoChanged$=new r.B7,this.privacySettingsChanged$=new r.B7,this.logger=R.getLogger("nvapp/NvAccountInterfaceService"),this.initializeListenersForNvaccount()}updateUserInNvAccount(R,O){let Y;if(R.isAuthenticated){const j={tokens:{accessToken:O.accessToken??"",clientToken:O.clientToken??"",identityToken:O.idToken??"",accessTokenExpiry:this.getDateInIsoFormat(O.accessTokenExpiry),clientTokenExpiry:this.getDateInIsoFormat(O.clientTokenExpiry),identityTokenExpiry:this.getDateInIsoFormat(O.idTokenExpiry),clientTokenValidityDurationMilliseconds:O.clientTokenExpiryLength},userAccount:{userId:{userId:R.sub,externalUserId:R.external_id,identityProviderId:R.idp_id},preferredUsername:R.preferred_username,consentLevel:{hasBehavioralConsent:R.consent.trackBehavioralData,hasFunctionalConsent:!0,hasTechnicalConsent:R.consent.trackTechnicalData}}};Y=this.bridgeService.executeCommand(E.Ts.Common.Nvaccount.OnLogin,j)}else Y=this.bridgeService.executeCommand(E.Ts.Common.Nvaccount.OnLogout,{});return Y.pipe((0,h.s)(1),(0,f.M)(j=>{this.logger.info("NvAccount Update successful")}),(0,A.u)(!0),(0,M.W)(j=>{const fe="Some error occurred while updating Nvaccount";return this.logger.error(fe,j.message??""),(0,n.$)(fe,j.message??"")}))}readUserFromNvAccount(){return this.bridgeService.executeCommand(E.Ts.Common.Nvaccount.GetUserAccount).pipe((0,T.T)(R=>(this.logger.info("Reading from nvaccount successful"),R)),(0,M.W)(R=>(this.logger.error("Some error occurred while reading from Nvaccount. ",R),(0,v.of)({}))))}getUserIdChangeNotification(){return this.userIdChanged$.asObservable()}getUserConsentChangeNotification(){return this.userConsentChanged$.asObservable()}getPrivacySettingsConsentInfoChangeNotification(){return this.privacySettingsConsentInfoChanged$.asObservable()}getPrivacySettingsChangedNotification(){return this.privacySettingsChanged$.asObservable()}initializeListenersForNvaccount(){this.registerPrivacySettingsConsentInfoChangedNotification(),this.registerPrivacySettingsChangedNotification(),this.config?.useNvAccountForUserConsent?(this.logger.info("Initialize Nvaccount"),this.registerForUserConsentChangeNotification(),this.registerForUserIdChangeNotification()):this.logger.info("The NvAccount plugin is currently disabled for the current client.")}getDateInIsoFormat(R){return new Date(R).toISOString().split(".")[0]+"Z"}registerForUserIdChangeNotification(){this.bridgeService.executeCommand(E.Ts.Common.Nvaccount.UserIdChangedNotification).subscribe(R=>{this.logger.info("Received  UserId Change Notification"),this.userIdChanged$.next(R)},R=>{this.logger.error("Failed to get userId change response",R.message??"")})}registerForUserConsentChangeNotification(){this.bridgeService.executeCommand(E.Ts.Common.Nvaccount.UserConsentChangedNotification).subscribe(R=>{this.logger.info("Received UserConsent Change Notification"),this.userConsentChanged$.next(R)},R=>{this.logger.error("Failed to get userConsent change response",R.message??"")})}setAcceptedEULA(R){return this.bridgeService.executeCommand(E.Ts.Common.Nvaccount.SetEULAAccepted,{eulaText:R})}getEulaAccepted(R){return this.logger.info("Get EULA Acceptance status from NvAccount"),this.bridgeService.executeCommand(E.Ts.Common.Nvaccount.GetEULAAccepted,{eulaText:R})}setPrivacySettings(R){return this.logger.info("Setting privacy settings ",R),this.bridgeService.executeCommand(E.Ts.Common.Nvaccount.SetPrivacySettings,{privacySettings:R})}getPrivacySettings(){return this.logger.info("Getting privacy settings "),this.bridgeService.executeCommand(E.Ts.Common.Nvaccount.GetPrivacySettings)}getPrivacySettingsConsentInfo(){return this.logger.info("Getting privacy settings consent Info"),this.bridgeService.executeCommand(E.Ts.Common.Nvaccount.GetPrivacySettingsConsentInformation)}getUserAccountAndDeviceConsent(){return this.logger.info("Getting use account and device consent"),this.bridgeService.executeCommand(E.Ts.Common.Nvaccount.GetUserAccountAndDeviceConsent)}registerPrivacySettingsConsentInfoChangedNotification(){this.bridgeService.executeCommand(E.Ts.Common.Nvaccount.PrivacySettingsConsentInformationChangedNotification).subscribe(R=>{this.logger.info("Privacy settings consent info changed ",R),this.privacySettingsConsentInfoChanged$.next(R)},R=>{this.logger.error("Failed to get privacy settings consent info change response",R.message??"")})}registerPrivacySettingsChangedNotification(){this.bridgeService.executeCommand(E.Ts.Common.Nvaccount.PrivacySettingsChangedNotification).subscribe(R=>{this.logger.info("Privacy settings changed ",R),this.privacySettingsChanged$.next(R)},R=>{this.logger.error("Failed to get privacy settings change response",R.message??"")})}}return(u=m).\u0275fac=function(R){return new(R||u)(y.KVO(S.J6),y.KVO(S.NZ),y.KVO(l.X$))},u.\u0275prov=y.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),m})()},5798:(je,z,c)=>{"use strict";c.d(z,{fu:()=>u,SA:()=>R,sl:()=>j,t:()=>te,jm:()=>s});var r=c(94485),n=c(40198),v=c(75707),h=c(83915),f=c(86447),A=c(59859),M=c(3496),T=c(80583),E=c(26875);const y={timeBetweenRetries:0,maxRetries:0,retryOnTimeout:!1,exponentialBackoffMaxDelay:3e4},S="TimeoutError";var s=function(ce){return ce[ce.UnknownError=0]="UnknownError",ce[ce.RequestTimeout=-100]="RequestTimeout",ce[ce.RequestCancelled=-101]="RequestCancelled",ce[ce.NetworkStatusOffline=-102]="NetworkStatusOffline",ce[ce.DNSLookupFailed=-103]="DNSLookupFailed",ce}(s||{});const u=36e5;var I,m=c(40482);const R={authorization:"Authorization",xRequestId:"x-request-id"};class j{static httpErrorEvents$(){return j.httpErrorEventsSubject.asObservable()}static httpSuccessEvents$(){return j.httpSuccessEventsSubject.asObservable()}static httpStartEvents$(){return j.httpStartEventsSubject.asObservable()}constructor(H,Z,X={}){this.http=H,this.networkStatusService=Z,this.configOptions=X,(0,E.isNil)(this.configOptions.config)&&(this.configOptions.config=y),(0,E.isNil)(this.configOptions.config.retryOnTimeout)&&(this.configOptions.config.retryOnTimeout=y.retryOnTimeout),(0,E.isNil)(this.configOptions.config.exponentialBackoffMaxDelay)&&(this.configOptions.config.exponentialBackoffMaxDelay=y.exponentialBackoffMaxDelay)}static replaceTemplateKey(H,Z,X,ue){let Me=H;if("string"==typeof X){const be=":"+Z;-1!==H.indexOf(be)&&(Me=H.replace(new RegExp(be,"g"),encodeURIComponent(X)),ue(Z))}return Me}static formatUrl(H,Z){let X=H;return X=Object.keys(Z).reduce((ue,Me)=>j.replaceTemplateKey(ue,Me,Z[Me],be=>delete Z[be]),X),X}static isRetryableError(H,Z,X){let ue=!0;return H instanceof r.yz?0!==H.status||X.isOnline?429===H.status?ue=!0:0!==H.status&&(H.status<500||H.status>=600)&&(ue=!1):ue=!1:H instanceof Error&&H.name===S&&!Z.retryOnTimeout&&(ue=!1),ue}static formatError(H,Z,X,ue){const Me=j.getFullUrl(H,Z);let be,Q;X instanceof r.yz?(be=X,Q=X.status):X&&X.name===S&&(Q=s.RequestTimeout);const ne={url:Me,status:Q,rawResponse:be};return(0,E.isNil)(ue.headers[R.xRequestId])||(ne.xRequestId=ue.headers[R.xRequestId]),ne}static getFullUrl(H,Z){const X=Object.keys(Z);if(X.length>0){H+="?";for(const ue of X)H+=`${ue}=${Z[ue]}&`;H=H.substring(0,H.length-1)}return H}static applyTimeout(H,Z){return(0,E.isNil)(Z.timeout)?H:H.pipe((0,n.w)(Z.timeout))}static isReportRequest(H){return(0,E.isNil)(H.reportRequest)||!0===H.reportRequest}genericRetryStrategy(H,Z,X){return X.pipe((0,v.ZZ)((ue,Me)=>{const be=Me+1,Q=j.formatError(H,Z.params,ue,Z);if(j.isReportRequest(Z)&&(Z.reportRequestData={...Z.reportRequestData,retryCount:String(be)},j.httpErrorEventsSubject.next({response:Q,options:Z})),be>Z.config.maxRetries||!j.isRetryableError(ue,Z.config,this.networkStatusService))return(0,A.$)(Q);let ne;if(Z.config.timeBetweenRetries)ne=Z.config.timeBetweenRetries;else{const Ge=Z.config?.exponentialBackoffMaxDelay;ne=1e3,be>1&&(ne=Math.min(1e3*Math.pow(2,be-1),Ge))}if(ue instanceof r.yz&&(429===ue.status||503===ue.status)){const Ge=+(ue.headers.get("retry-after")||0);isNaN(Ge)||(ne=Math.max(ne,1e3*Ge))}return(0,M.O)(ne)}))}initRequest(H,Z){const X=Z;return X.params={...this.configOptions.params,...Z.params},X.headers={...this.configOptions.headers,...Z.headers},X.config={...this.configOptions.config,...Z.config},X.reportRequestData={...this.configOptions.reportRequestData,...Z.reportRequestData},X.reportRequest=this.configOptions.reportRequest&&Z.reportRequest,X.includeRequestId&&(X.headers[R.xRequestId]=(0,m.bz)()),[X,j.formatUrl(H,X.params)]}makeRequest(H,Z,X={}){return this.makeRequestEx(H,Z,X).pipe((0,h.T)(ue=>X?.includeFullResponse?ue:ue.body))}get(H,Z={}){return this.makeRequest("GET",H,Z)}delete(H,Z={}){return this.makeRequest("DELETE",H,Z)}post(H,Z={}){return this.makeRequest("POST",H,Z)}patch(H,Z={}){return this.makeRequest("PATCH",H,Z)}put(H,Z={}){return this.makeRequest("PUT",H,Z)}makeRequestEx(H,Z,X={}){const[ue,Me]=this.initRequest(Z,X);j.isReportRequest(ue)&&j.httpStartEventsSubject.next({method:H,url:Me,options:ue}),ue.reportRequestData.requestStartTime=Date.now().toString();const be=this.http.request(H,Me,{body:ue.body,params:ue.params,headers:ue.headers,responseType:ue.responseType,observe:"response",withCredentials:!!ue.withCredentials&&ue.withCredentials});return j.applyTimeout(be,this.configOptions.config).pipe((0,f.l)(Q=>this.genericRetryStrategy(Me,ue,Q)),(0,h.T)(Q=>{const ne=(0,E.extend)(Q,{config:{data:ue.body}});return ue.reportRequestData.requestEndTime=Date.now().toString(),j.isReportRequest(ue)&&"false"!==ue.reportRequestData.reportSuccessTelemetry&&j.httpSuccessEventsSubject.next({response:ne,options:ue}),ne}))}getResponse(H,Z={}){return this.makeRequestEx("GET",H,Z)}}(I=j).httpErrorEventsSubject=new T.B7,I.httpSuccessEventsSubject=new T.B7,I.httpStartEventsSubject=new T.B7;var fe=c(58527);let te=(()=>{var ce;class H{constructor(X,ue){this.http=X,this.networkStatusService=ue}createEndpoint(X){return new j(this.http,this.networkStatusService,X)}}return(ce=H).\u0275fac=function(X){return new(X||ce)(fe.KVO(r.Qq),fe.KVO(m.A5))},ce.\u0275prov=fe.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"}),H})()},17669:(je,z,c)=>{"use strict";c.d(z,{PK:()=>r});var r=function(f){return f.Space="Space",f.CapsLock="CapsLock",f.Backspace="Backspace",f.ArrowLeft="ArrowLeft",f.ArrowRight="ArrowRight",f.Enter="Enter",f.Escape="Escape",f.PrimaryType="abc",f.SecondaryType="*&$",f}(r||{})},3135:(je,z,c)=>{"use strict";c.d(z,{T:()=>u});var r=c(70650),n=c(26513),v=c(19392),h=c(8619),f=c(65706),A=c(26875),T=c(78812),E=c(3816),y=c(80732),S=c(50088),l=c(58527),s=c(89463);let u=(()=>{var m;class I{constructor(O,Y,j,fe,te){this.config=Y,this.systemInfoService=j,this.localeService=fe,this.injector=te,this.logger=O.getLogger("crimson/sdk/gfwsl/GfwslParamsService"),this.config.includedParams=this.config.includedParams||y.Pg,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 n.t(this.getParamEventData(y.dp.Init))}digestMessage(O){return(0,r.A)(function*(){const Y=(new TextEncoder).encode(O),j=yield crypto.subtle.digest("SHA-256",Y);return Array.from(new Uint8Array(j)).map(ce=>ce.toString(16).padStart(2,"0")).join("")})()}getParamEventData(O){return{type:O,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(E.SQ),this.hardwareService||this.logger.error("ERROR:: Failed to obtain HardwareInformationService"),this.processGenericInfo(),this.processGpuInfo()),this.config.includedParams.geo&&this.initGeoService(),(0,v.H)(this.digestMessage(this.config.userAgent+"/"+this.params.gcV)).subscribe(O=>{this.params.aiD=O})}onAccountStatusChanged(O,Y,j,fe,te){this.params.jUid=Y?btoa(O):O,this.hasUserInfo=Y,this.params.uCst=[j===T.Rg.Full?y.Hr.Enabled:y.Hr.Disabled,fe===T.Rg.Full?y.Hr.Enabled:y.Hr.Disabled,te===T.Rg.Full?y.Hr.Enabled:y.Hr.Disabled],this.gfwslParamsUpdated$.next(this.getParamEventData(y.dp.User))}onGfwslParamsReady(O=y.sP){return this.gfwslParamsUpdated$.pipe((0,h.p)(Y=>this.checkAvailableGfwslParams(O,Y)),(0,f.s)(1))}initGeoService(){this.processGeoInfo()}checkAvailableGfwslParams(O,Y){for(const j of Object.keys(O))if(O[j]!==Y[j])return!1;return!0}processSystemInfo(){this.systemInfoService.getSystemInfo([E.Lu.OSName,E.Lu.OSVersion,E.Lu.ProcessorArchitecture,E.Lu.UserDefaultUILanguage,E.Lu.PhysicalMemoryCapacity]).subscribe(O=>{this.params.is6=O.ProcessorArchitecture===y.el?y.Hr.Enabled:y.Hr.Disabled,({ProcessorArchitecture:this.params.pArch,CPUName:this.params.cID}=O),[this.params.osC,this.params.osB]=this.getOSInfo(O.OSName,O.OSVersion),this.params.sM=this.computeMemory(O),this.params.IsB=y.Hr.Disabled,this.params.gIsB=y.Hr.Disabled,this.params.apRT="802.11a",this.userDefaultUILanguage=O.UserDefaultUILanguage,this.params.sdWmfp=y.Hr.Enabled,this.params.O=`${this.params.pArch}/${this.params.osC}`,this.hasGeneralSystemInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(y.dp.SystemInfo))},O=>{this.logger.error("System info errored out",O)})}processGenericInfo(){this.hardwareService.getGenericInfo(!1).subscribe(O=>{(0,A.isEqual)(O,this.genericInfo)||(this.genericInfo=O,this.params.iLp=y.ef.includes(O.MoboType?.toLowerCase())?y.Hr.Enabled:y.Hr.Disabled,this.params.isCRD=(O.DriverType?O.DriverType:S.u.GameReadyDriver).toString(),this.params.sM=this.computeMemory(O),({DriverVersion:this.params.GFPV,CurrentResolution:this.params.cSR,IsDCHDriverInstalled:this.params.dch}=O),this.params.GFPV=this.params.GFPV?this.params.GFPV:"0.00",this.hasGenericSystemInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(y.dp.SystemInfo)))},O=>{this.logger.error("Generic info errored out",O)})}computeMemory(O){const Y=O.TotalPhysicalMemory&&parseInt(O.TotalPhysicalMemory,10)>.1?O.TotalPhysicalMemory:O.PhysicalMemoryCapacity;return`${(parseInt(Y,10)/1024**3).toFixed()}GB`}getOSInfo(O,Y){const j=Y.split(".");let fe="";return O.match(/windows/i)&&(fe=j.pop()),[j.join("."),fe]}processGpuInfo(){this.hardwareService.getGpuInfo(!1).subscribe(O=>{if(0===(0,A.size)(O.GPU))return void this.logger.error("Empty GPU list in gpu hardware info",O);const Y=O.GPU.find(j=>j.IsPrimary===y.Hr.Enabled)||O.GPU[0];this.params.IsQ=Y.IsQuadro,this.params.D=JSON.parse(`{"VEN_${Y.VendorId}&DEV_${Y.DeviceId}":"DISPLAY"}`),this.params.dIDa=this.getGpuDeviceIdArray(O),this.params.dFma=this.getGpuDeviceFamilyArray(O),this.params.isO=O.IsOptimus,this.params.isSLI=this.computeSliStatus(O.SLI),this.params.pgpuId=this.getPrimaryGpuId(O),this.hasGpuInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(y.dp.SystemInfo))},O=>{this.logger.error("GPU info errored out",O)})}getPrimaryGpuId(O){let Y=null;return O.GPU.every(j=>!j.IsPrimary||(Y=j.GpuHandle,!1)),Y}getGpuDeviceIdArray(O){return Array.from(this.getSortedGpuArray(O),(Y,j)=>this.buildGpuDeviceId(Y,j))}getSortedGpuArray(O){return Array.from(O.GPU).sort(Y=>Y.IsPrimary===y.Hr.Enabled?-1:1)}buildGpuDeviceId(O,Y){let j="";return O.DeviceId&&O.VendorId?(j=`${O.DeviceId}_${O.VendorId}`,j=O.SubSystemId&&O.SubVendorId?`${j}_${O.SubSystemId}_${O.SubVendorId}`:`${j}_FFFF_FFFF`):(this.logger.error("GPU info has invalid DeviceId and/or VendorId",O),j="FFFF_FFFF_FFFF_FFFF"),`${j}_${++Y}`}getGpuDeviceFamilyArray(O){return Array.from(this.getSortedGpuArray(O),Y=>parseInt(Y.GPUArchitecture,10).toString(16))}computeSliStatus(O){return O.SLISupported===y.Hr.Enabled&&O.HasActiveSLITopology===y.Hr.Enabled?O.ActiveTopologyGPUCount:O.SLISupported}processGeoInfo(){this.params.go="",this.hasGeoInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(y.dp.Geo))}onUserConsentUpdated(O){this.params.uCst=[this.getFunctionalConsent(O),this.getGfwslConsent(O,"trackTechnicalData"),this.getGfwslConsent(O,"trackBehavioralData")]}getFunctionalConsent(O){return this.formatConsentForGfwsl(O.consentSettings?O.consentSettings.trackFunctionalData:{level:T.Rg.None})}formatConsentForGfwsl(O){return O.level===T.Rg.Full?y.Hr.Enabled:y.Hr.Disabled}getGfwslConsent(O,Y){return O.consentSettings?this.formatConsentForGfwsl(O.consentSettings[Y]):O.privacySettings&&O.privacySettings.dataTracking?this.formatConsentForGfwsl(O.privacySettings.dataTracking[Y]):y.Hr.Unknown}processLocaleInfo(){this.localeService.localeChanged.subscribe(O=>{this.setGfwslLocaleParams(O),this.hasLocaleInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(y.dp.Locale))},O=>{this.logger.error("Locale info errored out",O)})}setGfwslLocaleParams(O){const Y=y.GS.find(fe=>fe.code===(O??this.userDefaultUILanguage)?.replace("_","-")||fe.cmsCode===O),j=Y?.LCID[0].toString();this.params.gLg=Y?.code,this.params.lg=j,this.params.L={CC:Y?.isoThreeLetter,LCID:j}}getParams(O={},Y){O=(0,A.omitBy)(O,fe=>"string"==typeof fe&&"CTP_"===fe.slice(0,4));let j=(0,A.assignIn)({},this.params,O);return Y&&(j=(0,A.pick)(j,Y)),j}getServer(){return this.config.server}}return(m=I).\u0275fac=function(O){return new(O||m)(l.KVO(E.J6),l.KVO(s.E),l.KVO(E.zW),l.KVO(E.iH),l.KVO(l.zZn))},m.\u0275prov=l.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),I})()},89463:(je,z,c)=>{"use strict";c.d(z,{E:()=>n});var r=c(58527);let n=(()=>{var v;class h{}return(v=h).\u0275fac=function(A){return new(A||v)},v.\u0275prov=r.jDH({token:v,factory:v.\u0275fac}),h})()},80732:(je,z,c)=>{"use strict";c.d(z,{GS:()=>T,GU:()=>f,Hr:()=>v,Pg:()=>M,dp:()=>h,ef:()=>r,el:()=>n,sP:()=>A});const r=["portable","laptop","sub notebook","convertible","detachable","notebook"],n="x64";var v=function(E){return E.Unknown="-1",E.Disabled="0",E.Enabled="1",E}(v||{}),h=function(E){return E.Locale="Locale",E.SystemInfo="SystemInfo",E.User="User",E.Init="Init",E.Geo="Geo",E}(h||{}),f=function(E){return E.GfeContent="nvidia_web_services/controller.gfeclientcontent.NG.php",E.Installer="nvidia_web_services/controller.driverinstallercontent.NG.php",E.Profile="nvidia_web_services/controller.gfeclientaffinity.php",E.Vrs="nvidia_web_services/controller.gfeclientvrs.php",E}(f||{});const A={hasGeoInfo:!0,hasLocaleInfo:!0,hasSystemInfo:!0,hasUserInfo:!1},M={additionalHwInfo:!1,geo:!1},T=[{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"}]},50088:(je,z,c)=>{"use strict";c.d(z,{u:()=>n});var n=c(74931).Or.Nvapp.Driverupdaterecommendation.DriverTypeEnum},35965:(je,z,c)=>{"use strict";c.d(z,{cK:()=>m,bq:()=>I,Kq:()=>s,PZ:()=>u,GS:()=>y.GS,Ev:()=>M.E,GU:()=>y.GU,Hr:()=>y.Hr,Tg:()=>r.T,XB:()=>E,Xt:()=>O,XU:()=>R});var r=c(3135),n=c(59859),v=c(40482),h=c(52117),f=c(58527),A=c(3816),M=c(89463),T=c(5798);let E=(()=>{var Y;class j{constructor(te,ce,H,Z,X){this.config=ce,this.endpointFactory=H,this.gfwslParamsService=Z,this.distributedTracingUtilService=X,this.logger=te.getLogger("crimson/sdk/gfwsl/GfwslService"),this.endpointDefinitionMap=new Map,this.endpointMap=new Map,this.endpointRetryConfig={},({defaultRetries:this.endpointRetryConfig.maxRetries,defaultTimeBetweenRetries:this.endpointRetryConfig.timeBetweenRetries,defaultTimeout:this.endpointRetryConfig.timeout}=this.config)}initialize(te){this.gfwslParamsService.initialize(),this.addEndpointDefinitions(te||[])}addEndpointDefinitions(te){te.forEach(ce=>{const H=ce.name;this.endpointDefinitionMap.set(H,ce),this.endpointMap.set(H,this.endpointFactory.createEndpoint(ce))})}callEndpoint(te,ce,H={},Z={},X={},ue=h.pB.GetGfwslInformation,Me){const be=this.endpointMap.get(te),Q=this.endpointDefinitionMap.get(te);if(!be)return(0,n.$)(`No endpoint found for ${te}. Add this definition with the initialize call.`);ce=this.gfwslParamsService.getParams(ce,Q.paramMask);const ne=this.generateEndpointUrl(this.config.server,Q,ce);this.logger.info("Going to call GFWSL URL:",ne,"with body:",H,"and dynamic headers:",Z);const Ge={config:this.endpointRetryConfig,body:H,headers:{...Q.headers,...Z},reportRequestData:{...Q.reportRequestData,...X},includeRequestId:!1,withCredentials:!0},ge=be.makeRequestEx(Q.method,ne,Ge);return this.distributedTracingUtilService.handleHttpEndpointSpan(ge,Ge,ue,Me)}onGfwslParamsReady(te){return this.gfwslParamsService.onGfwslParamsReady(te)}setConfigServer(te){this.config.server=te}generateEndpointUrl(te,ce,H){const Z=JSON.stringify(this.gfwslParamsService.getParams(H,ce.paramMask));return(0,v.l2)([te,ce.controller,ce.endpointPath,Z])}}return(Y=j).\u0275fac=function(te){return new(te||Y)(f.KVO(A.J6),f.KVO(M.E),f.KVO(T.t),f.KVO(r.T),f.KVO(h.Z1))},Y.\u0275prov=f.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"}),j})();var y=c(80732),l=(c(50088),c(26875));let s=(()=>{var Y;class j{}return(Y=j).\u0275fac=function(te){return new(te||Y)},Y.\u0275prov=f.jDH({token:Y,factory:Y.\u0275fac}),j})(),u=(()=>{var Y;class j{constructor(te,ce,H,Z,X){this.endpointFactory=ce,this.gfwslParamsService=H,this.config=Z,this.distributedtracingUtilService=X,this.logger=te.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(te,ce,H){let Z;const X=JSON.stringify(this.gfwslParamsService.getParams(H,ce.paramMask));return Z=(0,v.l2)([te,ce.classPath,ce.clientPath,ce.endpointPath]),(0,l.isEmpty)(X)||(Z=Z+"?"+X),Z}addEndpointDefinitions(te){te.forEach(ce=>{const H=ce.name;this.endpointDefinitionMap.set(H,ce),this.endpointMap.set(H,this.endpointFactory.createEndpoint(ce))})}callAemEndpoint(te,ce,H,Z={},X={},ue){const Me=this.endpointMap.get(te),be=this.endpointDefinitionMap.get(te);if(!Me)return(0,n.$)(`No endpoint found for ${te}. Add this definition with the initialize call.`);ce=this.gfwslParamsService.getParams(ce,be.paramMask);const Q=this.setUrlGenerator(this.config.server,be,ce);this.logger.info("Going to call AEM URL:",Q,"with dynamic headers:",X);const ne={config:this.endpointRetryConfig,body:Z,headers:{...be.headers,...X},includeRequestId:!1,reportRequestData:(0,l.isNil)(H)?{}:{...H}},Ge=Me.makeRequestEx(be.method,Q,ne);return this.distributedtracingUtilService.handleHttpEndpointSpan(Ge,ne,h.pB.GetAemReleaseHighlights,ue)}setConfigServer(te){this.config.server=te}}return(Y=j).\u0275fac=function(te){return new(te||Y)(f.KVO(A.J6),f.KVO(T.t),f.KVO(r.T),f.KVO(s),f.KVO(h.Z1))},Y.\u0275prov=f.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"}),j})();var m=function(Y){return Y.services="services/com.nvidia.services/",Y}(m||{}),I=function(Y){return Y.GfeClient="AEMGFEClientContent",Y}(I||{});let R=(()=>{var Y;class j{static forRoot(te){return{ngModule:j,providers:[{provide:M.E,useValue:te.gfwsl},{provide:s,useValue:te.aem}]}}}return(Y=j).\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=f.$C({type:Y}),Y.\u0275inj=f.G2t({}),j})();var O=function(Y){return Y.Get="GET",Y.Post="POST",Y}(O||{})},70521:(je,z,c)=>{"use strict";c.d(z,{tD:()=>R,fR:()=>Xe,th:()=>Pe,lS:()=>Z});var r=c(80583),n=c(16229),v=c(43848),h=c(19392),f=c(55833),A=c(72147),M=c(10174),T=c(65706),E=c(83915),y=c(75707),S=c(8619),l=c(14714);c(57643);var m=function(le){return le.Gfn="geforcenow",le.Nvapp="nvidiaapplication",le}(m||{}),I=function(le){return le.FetchSuccess="SW_FETCH_SUCCESS",le.RuntimeCacheUpdated="SW_RUNTIME_CACHE_UPDATED",le}(I||{}),R=function(le){return le.ETag="etag",le.SwCacheBypass="x-sw-cachebypass",le.XRequestId="x-request-id",le.SwCacheKeyAppendString="sw-cache-key-append-string",le.SwCache="sw-cache",le.SwNotifyFetch="sw-notify-fetch",le.SwNoDataUpdate="sw-no-data-update",le}(R||{}),O=function(le){return le.SkipWaiting="SKIP_WAITING",le.GameLaunched="GAME_LAUNCHED",le.GameExit="GAME_EXIT",le.CloseStreamerSession="CLOSE_STREAM_SESSION",le.PushNotification="BROWSER_PUSH_NOTIFICATION",le.IpcPushNotification="IPC_PUSH_NOTIFICATION",le.PushNotificationTelemetry="PUSH_NOTIFICATION_TELEMETRY",le.UiPushNotification="BROWSER_VISIBLE_PUSH_NOTIFICATION",le.PushNotificationTracing="PUSH_NOTIFICATION_TRACING",le.SharedStorageUpdate="SHARED_STORAGE_UPDATE",le.LoggerNotification="LOGGER_NOTIFICATION",le.GetClientVersion="GET_CLIENT_VERSION",le.SetLoggerSettings="SET_LOGGING_SETTINGS",le.GetClientVersionWaitingSW="GET_CLIENT_VERSION_FROM_WAITING_SW",le}(O||{}),Y=function(le){return le.INSTALLING="installing",le.INSTALLED="installed",le.ACTIVATING="activating",le.ACTIVATED="activated",le.REDUNDANT="redundant",le}(Y||{}),ce=c(58527),H=c(3816);let Z=(()=>{var le;class oe{constructor(Oe){this.swSharedStorageUpdate=new r.B7,this.swLoggingUpdate=new r.B7,this.swActivationRequested$=new r.B7,this.swClientVersion=new r.B7,this.logger=Oe.getLogger("libraries/service-worker.service"),this.swCacheUpdate$=new r.B7,this.networkFetchSucceeded$=new r.B7,this.swActivated$=new r.B7,this.swUpdateReady$=new r.B7,this.resetSwUpdateCache$=new r.B7,this.swNotifyListener$=new r.B7,this.swPushNotificationListener$=new r.B7,this.swPushNotificationTelemetryListener$=new r.B7,this.swPushNotificationTracing=new r.B7,this.swUpdateReadyCached$=(0,n.h)(this.swUpdateReady$.asObservable(),this.resetSwUpdateCache$).pipe((0,f.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(Oe,ye){if(ye&&ye===JSON.stringify(!0))return!1;for(const Ie in Xe.staleWhileRevalidate)if(Xe.staleWhileRevalidate.hasOwnProperty(Ie)&&Xe.staleWhileRevalidate[Ie].routePattern.test(Oe))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(Oe=>Oe?this.swHasUpdate(Oe)?Oe:Oe.update():Promise.reject("Registration does not exist")).then(Oe=>({updateAvailable:this.swHasUpdate(Oe),error:null})).catch(Oe=>(this.logger.error("SW Update Check: Error",Oe.toString()),Promise.resolve({updateAvailable:!1,error:Oe}))):Promise.reject("SW Update Check: Browser does not support service workers")}activateServiceWorker(){return this.serviceWorkerSupported()?(0,h.H)(navigator.serviceWorker.getRegistration()).pipe((0,A.n)(Oe=>Oe?this.swHasUpdate(Oe)?Oe.installing?(this.logger.info("SW Activate: Waiting for new service worker to be installed"),this.swUpdateReady.pipe((0,M.u)(Oe),(0,T.s)(1))):(0,v.of)(Oe):(this.logger.info("SW Activate: Nothing to activate"),(0,v.of)(null)):(this.logger.info("SW Activate: No service worker registration"),(0,v.of)(null))),(0,E.T)(Oe=>Oe?.waiting?(this.logger.info("SW Activate: Requested to activate."),Oe.waiting.postMessage({type:O.SkipWaiting}),this.swActivationRequested$.next(),!0):(this.logger.info("SW Activate: No service worker waiting."),!1)),(0,T.s)(1)):(this.logger.info("SW Activate: Browser does not support service workers"),(0,v.of)(!1))}get swActivationRequested(){return this.swActivationRequested$.asObservable()}postMessageSw(Oe){this.serviceWorkerSupported()?navigator.serviceWorker.ready.then(ye=>{Oe.type===O.SharedStorageUpdate?this.logger.verbose("Calling SW postMessage with: ",Oe):this.logger.info("Calling SW postMessage with: ",Oe),ye.active?.postMessage({type:Oe.type,content:Oe.content})}):this.logger.info("SW PostMsg: Browser does not support service workers")}swHasUpdate(Oe){return!(!Oe.installing&&!Oe.waiting)}swHandleMessages(){navigator.serviceWorker.addEventListener("message",Oe=>{if(Oe.data.type===I.RuntimeCacheUpdated){const{cacheName:ye,requestUrl:Ie,noDataUpdate:at}=Oe.data.payload;(0,h.H)(caches.open(ye)).pipe((0,y.ZZ)(K=>K.match(Ie)),(0,S.p)(K=>!!K),(0,y.ZZ)(K=>K.json()),(0,l.W)(K=>(this.logger.info("error while checking for cache update",K.toString()),(0,v.of)(null)))).subscribe(K=>{K&&(this.logger.info("SW cache updated",ye),this.swCacheUpdate$.next({name:ye,url:Ie,data:K,noDataUpdate:at}))})}else Oe?.data.type===O.CloseStreamerSession?(this.logger.info("Msg received from another tab: ",Oe.data.type),this.swNotifyListener$.next(Oe.data)):Oe?.data.type===O.PushNotification?(this.logger.info("Firebase Token received from Service Worker: ",Oe.data.type),this.swPushNotificationListener$.next(Oe.data)):Oe?.data.type===O.PushNotificationTelemetry?(this.logger.info("Telemetry Event received from Service Worker: ",Oe.data.type),this.swPushNotificationTelemetryListener$.next(Oe.data)):Oe?.data.type===O.PushNotificationTracing?(this.logger.info("Telemetry Event received from Service Worker: ",Oe.data.type),this.swPushNotificationTracing.next(Oe.data)):Oe?.data.type===O.SharedStorageUpdate?this.swSharedStorageUpdate.next(Oe.data):Oe?.data.type===I.FetchSuccess?this.networkFetchSucceeded$.next(Oe.data.payload):Oe?.data.type===O.LoggerNotification?this.swLoggingUpdate.next(Oe.data):Oe?.data.type===O.GetClientVersion&&(this.swClientVersion.next(Oe.data.content),this.logger.info("Received client version is ",Oe.data))})}swHandleUpdates(){return this.serviceWorkerSupported()?(this.logger.info("SW Updates: Init"),navigator.serviceWorker.getRegistration().then(Oe=>{if(!Oe)return Promise.reject("SW Updates: Registration does not exist");let ye=this.swIsActive();this.logger.info(`SW Updates: Registration Exists, First Installation: ${!ye}`),this.swOnUpdateInstalled(Oe,Ie=>{this.logger.info("SW Updates: Update installed"),this.logger.info("SW Updates: Notifying"),Ie.firstInstallation=!ye,this.swUpdateReady$.next(Ie),ye=!0})}).catch(Oe=>this.logger.error("SW Updates: Error",Oe.toString()))):Promise.reject("SW Updates: Browser does not support service workers")}swOnUpdateInstalled(Oe,ye){const Ie=K=>{K.state===Y.INSTALLED&&ye({state:K.state,ts:Date.now()})},at=K=>{K&&(this.logger.info("SW Update Listener: Update found"),Ie(K),K.addEventListener("statechange",()=>{this.logger.info("SW Update Listener: New worker state change:",K.state),Ie(K)}))};Oe?(Oe.waiting?(this.logger.info("SW Update Listener: An update is ready"),ye({state:Y.INSTALLED,ts:Date.now()})):Oe.installing&&at(Oe.installing),Oe.onupdatefound||(this.logger.info("SW Update Listener: Waiting for any updates to current worker"),Oe.addEventListener("updatefound",()=>at(Oe.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 Oe=this.swIsActive();this.logger.info("SW Ctrl Change: has active service worker -",Oe),navigator.serviceWorker.addEventListener("controllerchange",()=>{if(this.logger.info("SW Ctrl Change: New service worker activated"),this.swActivated$.next({firstInstallation:!Oe,ts:Date.now()}),!Oe)return this.logger.info("SW Ctrl Change: First activation"),void(Oe=!0)})}}return(le=oe).\u0275fac=function(Oe){return new(Oe||le)(ce.KVO(H.J6))},le.\u0275prov=ce.jDH({token:le,factory:le.\u0275fac,providedIn:"root"}),oe})();const X=m.Gfn,Me=86400;var Q=function(le){return le.LCARS="lcars",le.LCARSStatic="lcarsStatic",le.LCARSUserAccount="lcarsUserAccount",le.LCARSClientStrings="lcarsClientStrings",le.ServiceUrls="service",le.ServerInfo="server",le.RConfig="rconfig",le.GxTarget="gxtarget",le.Subscriptions="subscriptions",le.Telemetry="telemetry",le.Offline="offline",le.GfcFeedbacks="gfcFeedbacks",le.PNSNotifications="pnsNotifications",le.LoginWallData="loginwalldata",le.LoginWallStrings="loginwallstrings",le}(Q||{});const Xe={staleWhileRevalidate:{lcars:{name:Q.LCARS,cacheName:`${X}-${Q.LCARS}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=panels/,expiry:{maxEntries:10,maxAgeSeconds:14*Me,purgeOnQuotaError:!0}},lcarsStatic:{name:Q.LCARSStatic,cacheName:`${X}-${Q.LCARSStatic}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=staticAppData/,expiry:{maxEntries:5,maxAgeSeconds:14*Me,purgeOnQuotaError:!0}},lcarsUserAccount:{name:Q.LCARSUserAccount,cacheName:`${X}-${Q.LCARSUserAccount}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=userAccount/,expiry:{maxEntries:2,maxAgeSeconds:14*Me,purgeOnQuotaError:!0}},lcarsClientStrings:{name:Q.LCARSClientStrings,cacheName:`${X}-${Q.LCARSClientStrings}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=clientStrings/,expiry:{maxEntries:2,maxAgeSeconds:14*Me,purgeOnQuotaError:!0}},serviceUrls:{name:Q.ServiceUrls,cacheName:`${X}-${Q.ServiceUrls}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+(\/v1\/serviceUrls)/,expiry:{maxEntries:10,maxAgeSeconds:14*Me,purgeOnQuotaError:!0}},server:{name:Q.ServerInfo,cacheName:`${X}-${Q.ServerInfo}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+(\/v2\/serverInfo)/,expiry:{maxEntries:10,maxAgeSeconds:14*Me,purgeOnQuotaError:!0}},subscriptions:{name:Q.Subscriptions,cacheName:`${X}-${Q.Subscriptions}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+(\/v4\/subscriptions)/,expiry:{maxEntries:20,maxAgeSeconds:7*Me,purgeOnQuotaError:!0},flushCacheOnResponseCodes:[404]},loginwall:{name:Q.LoginWallData,cacheName:`${X}-${Q.LoginWallData}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=loginWallData/,expiry:{maxEntries:2,maxAgeSeconds:7*Me,purgeOnQuotaError:!0}},loginwallstrings:{name:Q.LoginWallStrings,cacheName:`${X}-${Q.LoginWallStrings}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=loginWallStrings/,expiry:{maxEntries:2,maxAgeSeconds:7*Me,purgeOnQuotaError:!0}}},networkFirst:{},networkOnly:{telemetry:{name:Q.Telemetry,cacheName:`${X}-${Q.Telemetry}-v1`,routePattern:/https:\/\/events\.gfe(stage)?\.nvidia\.com\/v1\.0\/events\/json\?immediateRequest=true/,maxRetentionTime:1440},gfcFeedbacks:{name:Q.GfcFeedbacks,cacheName:`${X}-${Q.GfcFeedbacks}-v1`,routePattern:/https:\/\/telemetry\.gfe(stage)?\.nvidia\.com\/gfc\/v4\.0\//,maxRetentionTime:1440},pnsNotifications:{name:Q.PNSNotifications,cacheName:`${X}-${Q.PNSNotifications}-v1`,routePattern:/https:\/\/(stg.pns.nvidiagrid.net)?(pns.geforcenow.com)?\/v1\/unregister/,maxRetentionTime:1440}}},ot=m.Nvapp,xe=86400;var Ue=function(le){return le.LCARS="lcars",le.GFWSLDriverContent="gfwslDriverContent",le.GFWSLArticleContent="gfwslArticleContent",le.GFWSLInstaller="gfwslInstaller",le.GFWSLProfile="gfwslProfile",le.Telemetry="telemetry",le.Offline="offline",le.AllAppsMetaData="allAppsMetaData",le}(Ue||{});const Pe={staleWhileRevalidate:{lcars:{name:Ue.LCARS,cacheName:`${ot}-${Ue.LCARS}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=panels/,expiry:{maxEntries:10,maxAgeSeconds:14*xe,purgeOnQuotaError:!0}},gfwslDriverContent:{name:Ue.GFWSLDriverContent,cacheName:`${ot}-${Ue.GFWSLDriverContent}-v1`,routePattern:/https:\/\/gfwsl[a-zA-Z0-9_.-\/]+getDispDrvrDtlsByDevid\//,expiry:{maxEntries:10,maxAgeSeconds:14*xe,purgeOnQuotaError:!0}},gfwslProfile:{name:Ue.GFWSLProfile,cacheName:`${ot}-${Ue.GFWSLProfile}-v1`,routePattern:/https:\/\/gfwsl[a-zA-Z0-9_.-\/]+targetGfeAchievements\//,expiry:{maxEntries:10,maxAgeSeconds:14*xe,purgeOnQuotaError:!0}},gfwslInstaller:{name:Ue.GFWSLInstaller,cacheName:`${ot}-${Ue.GFWSLInstaller}-v1`,routePattern:/https:\/\/gfwsl[a-zA-Z0-9_.-\/]+getCurrentGFEClientHtmlDefault\//,expiry:{maxEntries:10,maxAgeSeconds:14*xe,purgeOnQuotaError:!0}},gfwslArticleContent:{name:Ue.GFWSLArticleContent,cacheName:`${ot}-${Ue.GFWSLArticleContent}-v1`,routePattern:/https:\/\/gfwsl[a-zA-Z0-9_.-\/]+getGfeCntntNode\//,expiry:{maxEntries:30,maxAgeSeconds:14*xe,purgeOnQuotaError:!0}},appMetadata:{name:Ue.AllAppsMetaData,cacheName:`${ot}-${Ue.AllAppsMetaData}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=allAppsMetaData/,expiry:{maxEntries:10,maxAgeSeconds:14*xe,purgeOnQuotaError:!0}}},networkFirst:{},networkOnly:{}}},31222:(je,z,c)=>{"use strict";c.d(z,{y:()=>m});var r=c(26875),v=c(57258),h=c(59859),f=c(43848),A=c(83915),M=c(14714),T=c(65706),E=c(75707),y=c(91384),S=c(10174),l=c(3816),s=c(74931),u=c(58527);let m=(()=>{var I;class R{constructor(Y,j,fe){this.bridgeService=Y,this.nativeEventService=fe,this.logger=j.getLogger("libraries/shared-storage"),this.cachedSharedStorage$=new v.m(1),this.isInitialized=!1}initialize(){this.logger.info("init"),this.bridgeService.executeCommand(s.Ts.Common.Sharedstorage.Cache).subscribe(Y=>{this.logger.info("cached shared storage"),this.cachedSharedStorage$.next(Y)},Y=>{this.logger.error("error caching shared storage",Y)}),this.nativeEventService.get$(l.D4.SharedStorageUpdate,l.Jm.Types.HandlerEventType.StructuredWindowEvent).pipe((0,A.T)(Y=>JSON.parse(Y)),(0,M.W)(Y=>(this.logger.error("error receiving native event",Y),this.cachedSharedStorage$.pipe((0,T.s)(1))))).subscribe(Y=>{this.logger.info("shared storage cache updated"),this.cachedSharedStorage$.next(Y)}),this.isInitialized=!0}readBlock(Y){return this.isInitialized||this.initialize(),this.cachedSharedStorage$.pipe((0,T.s)(1),(0,E.ZZ)(j=>{const fe=(0,r.get)(j,Y.split("/"));return fe?(0,f.of)(fe):(0,h.$)({code:204})}),(0,M.W)(j=>(this.logReadError(Y,j),(0,f.of)({}))))}logReadError(Y,j){switch(j.code){case 404:this.logger.info("No shared storage file found, creating a new one.");break;case 204:this.logger.info(`No entry for ${Y} exists. Defaulting to empty object.`);break;default:this.logger.error(`Error (${j.code}) ${j.message}. Defaulting to empty object for path ${Y}.`)}}writeBlock(Y,j,fe){const te=this.writeBlockInternal(Y,j).pipe((0,T.s)(1),(0,y.M)(ce=>{this.logger.info("write status to shared storage for path",Y,ce)}),(0,M.W)(ce=>(this.logger.error("error writing to shared storage for path",Y,ce),(0,f.of)(!1))));return this.isInitialized||this.initialize(),this.cachedSharedStorage$.pipe((0,T.s)(1),(0,E.ZZ)(ce=>(this.cachedSharedStorage$.next((0,r.setWith)(ce,Y.split("/"),j,Object)),fe?te:(te.subscribe(),(0,f.of)(!0)))))}writeBlockInternal(Y,j){return this.bridgeService.executeCommand(s.Ts.Common.Sharedstorage.Write,{path:Y.split("/"),data:j})}removeBlock(Y){return this.isInitialized||this.initialize(),this.cachedSharedStorage$.pipe((0,T.s)(1),(0,A.T)(j=>{const fe=(0,r.unset)(j,Y);return this.cachedSharedStorage$.next(j),this.removeBlockInternal(Y).subscribe(),fe}))}removeBlockInternal(Y){return this.bridgeService.executeCommand(s.Ts.Common.Sharedstorage.Remove,{path:Y.split("/")}).pipe((0,S.u)(!0),(0,M.W)(j=>(204===j.code?this.logger.warn(`No entry for ${Y} exists. Removal failed.`):this.logger.error(`Error (${j.code}) ${j.message}.`),(0,f.of)(!1))))}}return(I=R).\u0275fac=function(Y){return new(Y||I)(u.KVO(l.NZ),u.KVO(l.J6),u.KVO(l.dU))},I.\u0275prov=u.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),R})()},72945:(je,z,c)=>{"use strict";c.d(z,{yQ:()=>r.y});var r=c(31222);c(74931)},20812:(je,z,c)=>{"use strict";c.d(z,{ie:()=>xe,X$:()=>v,BF:()=>_i,hr:()=>r,l4:()=>h});class r{constructor(){}}var n=c(58527);let v=(()=>{var It;class vn{}return(It=vn).\u0275fac=function(ht){return new(ht||It)},It.\u0275prov=n.jDH({token:It,factory:It.\u0275fac}),vn})();var h=function(It){return It.LoginAlreadyInProgress="Login Already In Progress",It.OpenOAuthUrlStarted="Open OAuth url started",It.OpenOAuthUrlCompleted="Open OAuth url completed",It.LoginStarted="Login Started",It.LoginCompleted="Login Completed",It.LoginRedirectCompleted="Login redirect completed",It.LoginAbortedByUser="Login Aborted: User Cancelled Login",It.LoginAbortedAlreadyLoggedIn="Login Aborted: Already Logged In",It.LoginFailed="Login Failed",It.LoginFailedNoRetry="Login Failed No Retry",It.LoginFailedToStart="Login failed to Start",It.LogoutStarted="Logout Started",It.LogoutCompleted="Logout Completed",It.LogoutFailed="Logout Failed",It.LoginInProgressNeedDisplayCode="Login Started Need Display Code",It.LoginNotReturningFromLoginPage="Login not returning from login page",It}(h||{}),f=function(It){return It.NOT_LOGGED_IN="Not Logged In, Must login",It.USER_OFFLINE="User is Offline",It.ALREADY_LOGGED_IN="Already logged in",It.AUTH_ERROR="Auth Error",It.AGE_RESTRICTED="age_restricted",It.ACCOUNT_LOCKED="account_locked",It.HTTP_START_FAILED="Http Server start failed",It.CLIENT_TOKEN_FAIL="Client token url access failed",It.OAUTH_DATA_EMPTY="JSON parsing fialed for OAUTH Data",It.STARFLEET_REDIRECT_FAIL="Failure on Starfleet Redirect Page",It.REDEEM_AUTHCODE_FAILED="Failuer in redeeming auth code",It.NONCE_VALIDATION_FAILED="Nonce validation failed",It.ACCOUNT_INACTIVE="account_inactive",It.LOGIN_CANCELLED_BY_USER="User pressed back from login page",It.LOGOUT_NOT_SUPPORTED="logout_not_supported",It.LOGOUT_GENERIC_ERROR="logout_generic_error",It.LOGIN_SILENT_LOGIN_FAILED="silent_login_failed",It}(f||{}),A=function(It){return It.Browser="Browser",It.Cef="Cef",It.Android="Android",It}(A||{}),M=c(61142),T=c(94485),E=c(57258),y=c(43848),S=c(59859),l=c(36466),s=c(3496),u=c(91384),m=c(75707),I=c(65706),R=c(83915),O=c(99047),Y=c(14714),j=c(55833),fe=c(86447),te=c(8619),ce=c(43615),H=c(26875),Z=c(74931),X=c(3816),ue=c(40482);const ge={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},Xe="starfleet";var ot=function(It){return It.DBName="starfleet",It.DBKey="starfleetSession",It}(ot||{}),dt=function(It){return It.SharedStorage="sharedStorage",It.IndexedDB="indexedDB",It}(dt||{}),xe=function(It){return It[It.Failure=0]="Failure",It[It.Success=1]="Success",It[It.Cancel=2]="Cancel",It[It.CloseOnFailure=3]="CloseOnFailure",It}(xe||{}),Re=c(31222);class Ue{static encode(vn){const Vn=new Ue;return Vn.data=window.btoa(encodeURIComponent(JSON.stringify(vn))),Vn.authProvider=Xe,Vn}static decode(vn){return JSON.parse(decodeURIComponent(window.atob(vn.data)))}}class ee{constructor(vn,Vn,ht=dt.SharedStorage){this.idTokenRefreshUnderDuration=vn,this.data=(0,H.isNil)(Vn)?Object.assign({},ge):Vn,this.setStorageType(ht)}static loadFrom(vn,Vn){let it;return it=vn?vn instanceof Re.y?dt.SharedStorage:dt.IndexedDB:dt.SharedStorage,(it===dt.IndexedDB?vn.getItem(ot.DBKey):vn.readBlock("starfleetSession")).pipe((0,m.ZZ)(Et=>{const We=Et?.authProvider===Xe?Ue.decode(Et):null,bt=new ee(Vn,We,it);return(0,H.isEmpty)(We)?it===dt.IndexedDB?bt.writeToDb(vn):bt.writeTo(vn):(0,y.of)(bt)}))}setStorageType(vn){this.storageType=vn===dt.IndexedDB?dt.IndexedDB:dt.SharedStorage}writeTo(vn){return this.storageType===dt.IndexedDB?this.writeToDb(vn):vn.writeBlock("starfleetSession",Ue.encode(this.data),!0).pipe((0,R.T)(()=>this))}writeToDb(vn){return vn.setItem(ot.DBKey,Ue.encode(this.data)).subscribe(),(0,y.of)(this)}hasClientToken(){return!(0,H.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,H.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}}var W=c(5798),Pe=c(52117),le=c(14709);const oe="Starfleet",Le="KVStore",Oe=3e4,ye=2,Ie=1e3;let at=(()=>{var It;class vn{constructor(ht,it,Ct,Et,We,bt,gt){this.starfleetConfig=ht,this.endpointFactory=it,this.bridgeService=Ct,this.systemInfoService=Et,this.appConfig=We,this.distributedtracingUtilService=gt;const{defaultRetries:wt=ye,defaultTimeBetweenRetries:rn=Ie,defaultTimeout:In=Oe}=ht,En={config:{maxRetries:wt,timeout:In,timeBetweenRetries:rn}};this.endpointAccessToken=this.endpointFactory.createEndpoint(En),this.endpointClientToken=this.endpointFactory.createEndpoint(En),this.endpointUserInfo=this.endpointFactory.createEndpoint(En),this.endpointKVStore=this.endpointFactory.createEndpoint(En),this.logger=bt.getLogger("libraries/starfleet-http.service")}requestDeviceAuthorize(ht,it,Ct,Et){let We=(new T.Nl).set("client_id",this.starfleetConfig.clientId).set("scope",this.starfleetConfig.scope).set("device_id",ht).set("display_name",it);Ct&&(We=We.set("idp_id",Ct));const bt={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:We.toString(),reportRequestData:{originalService:oe,serviceUseCase:"Device_Authorization"}},wt=this.endpointAccessToken.post(`${this.starfleetConfig.url}/device/authorize`,bt);return this.distributedtracingUtilService.handleHttpEndpointSpan(wt,bt,Pe.pB.StarfleetGetAccessToken,Et)}getAccessToken(ht,it,Ct){if((0,H.isNil)(ht)||0===ht.trim().length)return(0,S.$)(new Error("invalid or missing clientToken parameter"));if((0,H.isNil)(it)||0===it.trim().length)return(0,S.$)(new Error("invalid or missing sub parameter"));const We={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:(new T.Nl).set("grant_type","urn:ietf:params:oauth:grant-type:client_token").set("client_token",ht).set("client_id",this.starfleetConfig.clientId).set("sub",it).toString(),reportRequestData:{originalService:oe,serviceUseCase:"Get_Access_Token"}},bt=this.endpointAccessToken.post(`${this.starfleetConfig.url}/token`,We);return this.distributedtracingUtilService.handleHttpEndpointSpan(bt,We,Pe.pB.StarfleetGetAccessToken,Ct)}getAccessTokenFromDeviceCode(ht,it){if((0,H.isNil)(ht)||0===ht.trim().length)return(0,S.$)(new Error("invalid or missing clientToken parameter"));const Et={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:(new T.Nl).set("grant_type","urn:ietf:params:oauth:grant-type:device_code").set("device_code",ht).set("client_id",this.starfleetConfig.clientId).toString(),reportRequestData:{originalService:oe,serviceUseCase:"Get_Access_Token"}},We=this.endpointAccessToken.post(`${this.starfleetConfig.url}/token`,Et);return this.distributedtracingUtilService.handleHttpEndpointSpan(We,Et,Pe.pB.StarfleetGetAccessToken,it)}getUserInfo(ht,it){if((0,H.isNil)(ht)||0===ht.trim().length)return(0,S.$)(new Error("invalid or missing accessToken parameter"));const Ct={headers:this.getStarfleetAuthorizeHeaders(ht),reportRequestData:{originalService:oe,serviceUseCase:"Get_User_Info"}},Et=this.endpointUserInfo.get(`${this.starfleetConfig.url}/userinfo`,Ct);return this.distributedtracingUtilService.handleHttpEndpointSpan(Et,Ct,Pe.pB.StarfleetGetUserInfo,it)}getClientToken(ht,it){if((0,H.isNil)(ht)||0===ht.trim().length)return(0,S.$)(new Error("invalid or missing accessToken parameter"));const Ct={headers:this.getStarfleetAuthorizeHeaders(ht),reportRequestData:{originalService:oe,serviceUseCase:"Get_Client_Token"}},Et=this.endpointClientToken.get(`${this.starfleetConfig.url}/client_token`,Ct);return this.distributedtracingUtilService.handleHttpEndpointSpan(Et,Ct,Pe.pB.StarfleetGetClientToken,it)}redeemAuthCode(ht,it,Ct,Et){if(!ht?.trim()?.length)return(0,S.$)(new Error("invalid or missing auth code parameter"));if(!it?.trim()?.length)return(0,S.$)(new Error("invalid or missing redirectUri parameter"));if(!Ct?.trim()?.length)return(0,S.$)(new Error("invalid or missing codeVerifier parameter"));const bt={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:(new T.Nl).set("grant_type","authorization_code").set("code",ht).set("redirect_uri",it).set("code_verifier",Ct).toString(),reportRequestData:{originalService:oe,serviceUseCase:"Get_Access_Token"}},gt=this.endpointAccessToken.post(`${this.starfleetConfig.url}/token`,bt);return this.distributedtracingUtilService.handleHttpEndpointSpan(gt,bt,Pe.pB.StarfleetGetAccessToken,Et)}deleteClientTokens(ht,it){if((0,H.isNil)(ht)||0===ht.trim().length)return(0,S.$)(new Error("invalid or missing accessToken parameter"));const Ct={params:{level:"client"},headers:this.getStarfleetAuthorizeHeaders(ht),reportRequestData:{originalService:oe,serviceUseCase:"Delete_Client_Data"}},Et=this.endpointClientToken.delete(`${this.starfleetConfig.url}/assets/v2/Tokens`,Ct);return this.distributedtracingUtilService.handleHttpEndpointSpan(Et,Ct,Pe.pB.StarfleetDeleteClientToken,it)}getStarfleetAuthorizeHeaders(ht){return{[W.SA.authorization]:`Bearer ${ht}`}}getClientData(ht,it,Ct){if((0,H.isNil)(ht)||0===ht.trim().length)return(0,S.$)(new Error("invalid or missing idToken parameter"));const Et={headers:this.getKVStoreAuthorizeHeaders(ht),reportRequestData:{originalService:Le,serviceUseCase:"Get_Client_Data"}},We=this.formatKeyValStoreUrl(`${this.starfleetConfig.keyValueServiceUrl}/clientData`,it),bt=this.endpointKVStore.get(We,Et);return this.distributedtracingUtilService.handleHttpEndpointSpan(bt,Et,Pe.pB.KVStoreGetClientData,Ct)}deleteClientData(ht,it,Ct,Et){if((0,H.isNil)(ht)||0===ht.trim().length)return(0,S.$)(new Error("invalid or missing idToken parameter"));const We={headers:this.getKVStoreAuthorizeHeaders(ht),reportRequestData:{originalService:Le,serviceUseCase:"Delete_Client_Data"}},bt=this.formatKeyValStoreUrl(`${this.starfleetConfig.keyValueServiceUrl}/clientData`,[it],Ct),gt=this.endpointKVStore.delete(bt,We);return this.distributedtracingUtilService.handleHttpEndpointSpan(gt,We,Pe.pB.KVStoreDeleteClientData,Et)}setClientData(ht,it,Ct,Et){if((0,H.isNil)(ht)||0===ht.trim().length)return(0,S.$)(new Error("invalid or missing idToken parameter"));const We={headers:this.getKVStoreAuthorizeHeaders(ht),reportRequestData:{originalService:Le,serviceUseCase:"Set_Client_Data"},body:{key:it,value:Ct}},bt=this.endpointKVStore.post(`${this.starfleetConfig.keyValueServiceUrl}/clientData`,We);return this.distributedtracingUtilService.handleHttpEndpointSpan(bt,We,Pe.pB.KVStoreSetClientData,Et)}appendClientData(ht,it,Ct,Et){if((0,H.isNil)(ht)||0===ht.trim().length)return(0,S.$)(new Error("invalid or missing idToken parameter"));const We={headers:this.getKVStoreAuthorizeHeaders(ht),reportRequestData:{originalService:Le,serviceUseCase:"Set_Client_Data"},body:{key:it,value:Ct}},bt=this.endpointKVStore.put(`${this.starfleetConfig.keyValueServiceUrl}/clientData`,We);return this.distributedtracingUtilService.handleHttpEndpointSpan(bt,We,Pe.pB.KVStoreAppendClientData,Et)}formatKeyValStoreUrl(ht,it,Ct){if((0,H.isEmpty)(it))return ht;const Et=[];return it.forEach(We=>{Et.push(`key=${We}`)}),Ct&&Ct.forEach(We=>{Et.push(`value=${We}`)}),encodeURI(`${ht}?${Et.join("&")}`)}getKVStoreAuthorizeHeaders(ht){return{[W.SA.authorization]:`GFNJWT ${ht}`}}}return(It=vn).\u0275fac=function(ht){return new(ht||It)(n.KVO(v),n.KVO(W.t),n.KVO(X.NZ),n.KVO(X.zW),n.KVO(le.oO),n.KVO(X.J6),n.KVO(Pe.Z1))},It.\u0275prov=n.jDH({token:It,factory:It.\u0275fac,providedIn:"root"}),vn})();var K=c(36877),ve=c(56237),De=c(80583),pe=c(19392),Qe=c(10174),zt=c(40198);const J="GfnOauthUrlData";let $e=(()=>{var It;class vn{constructor(ht,it,Ct,Et){this.bridgeService=it,this.distributedTracingUtilService=Et,this.isBrowserPlatform=!1,this.httpSubscription=null,this.authWindow=null,this.isSameTabLoginFeatureEnabled=!1,this.authSaveDataNotifySubject=new E.m(1),this.logger=Ct.getLogger("starfleet/o-auth"),this.isBrowserPlatform=X.zk.isBrowserPlatform(),this.isSameTabLoginFeatureEnabled=ht.sameTabLogin}sameTabAuthStarted(){return this.authSaveDataNotifySubject.asObservable()}emitAuthStartNotification(ht){this.authSaveDataNotifySubject.next(ht)}oAuthLogin(ht,it,Ct,Et,We,bt,gt,wt,rn){if(this.isBrowserPlatform)return this.browserClientOAuthLogin(ht,it,Ct,Et,We,bt,gt,wt,rn);let In,Mi;if(rn)In=(0,y.of)(rn.url),Mi=rn.observable;else{let En;[En,Mi]=this.startHttpServer(ht,it),In=En.pipe((0,R.T)(Tn=>ht.redirectUrl.replace("{portnumber}",Tn.toString())))}return In.pipe((0,m.ZZ)(En=>this.openOAuthUrl(ht,it,Ct,Et,En,We,null,null,wt)),(0,m.ZZ)(En=>Mi.pipe((0,R.T)(Tn=>this.handleHttpRequest(Tn)),(0,R.T)(Tn=>(Tn.oAuthUrl=En,Tn)))),(0,u.M)(En=>{this.closeHttpSpan(En,En.oAuthUrl.span,En.oAuthUrl.url)}))}browserClientOAuthLogin(ht,it,Ct,Et,We,bt,gt,wt,rn){const In=!!wt,Mi=this.openOAuthUrl(ht,it,Ct,Et,null,We,bt,gt,wt);return this.isSameTabLoginFeatureEnabled&&!In?Mi.pipe((0,Qe.u)(null)):Mi.pipe((0,m.ZZ)(En=>{this.logger.info("Received response");const Tn=(0,K.R)(window,"message");return(0,ve.T)(()=>In,Tn.pipe((0,zt.w)(ht.maxWaitTimeSSO)),Tn).pipe((0,R.T)(Cn=>({event:Cn,oAuthUrl:En})),(0,Y.W)(Cn=>(this.logger.info("Error occurred during silent login:",Cn),(0,S.$)(Cn))))}),(0,te.p)(En=>this.validateMessageEvent(En.event)),(0,R.T)(En=>{const Tn=this.getOAuthLoginData(En.event);if(!Tn)throw this.logger.error("oAuthLoing Data is null ",Tn),f.OAUTH_DATA_EMPTY;if(Tn.oAuthUrl=En.oAuthUrl,this.logger.info("Captured OAuth data via post message: ",Tn.error),this.closeHttpSpan(Tn,En.oAuthUrl.span,En.oAuthUrl.url),In)wt.silentLoginHelperInstance.closeIframe(Tn.oAuthUrl.ifrmEl);else if(!rn?.skipSuccessRedirect){const Cn=new URL(ht.onCompleteRedirectUrl);ht.redirectParams&&ht.redirectParams.forEach(Wn=>{Wn in Tn&&Cn.searchParams.append(Wn,Tn[Wn])}),En.oAuthUrl.oAuthWindow.location.href=Cn.href}return Tn}),(0,I.s)(1))}openOAuthUrl(ht,it,Ct,Et,We,bt,gt,wt,rn){const In=!!rn;let Mi=(0,y.of)(null);return this.buildStarfleetUrl(ht,it,Ct,We,bt,rn).pipe((0,m.ZZ)(En=>{let Tn;const Cn=this.distributedTracingUtilService.startSpan(Pe.pB.StarfleetOAuth);return Tn=ht.addLogintracer?this.distributedTracingUtilService.getFormattedUrlForHttpPopupSpan(En.url,Cn):En.url,gt?(this.authWindow=gt,this.authWindow.location.href=Tn):!In&&this.isSameTabLoginFeatureEnabled?(wt||this.logger.error("returnLocationUrl Argument is empty ",this.isSameTabLoginFeatureEnabled,wt),this.logger.info("overwriting login URL"),this.emitAuthStartNotification(h.LoginStarted),this.authSaveDataNotifySubject.pipe((0,I.s)(1)).subscribe(Wn=>{this.logger.info("Received notification for ",Wn),En.returnUrl=wt,window.sessionStorage.setItem(J,JSON.stringify(En)),window.open(Tn,"_self")})):In&&rn.silentLoginHelperInstance?Mi=rn.silentLoginHelperInstance.openIframe(Tn):ht.useNativeAuthCommands?this.bridgeService.executeCommand(Z.Ts.Common.Nativeauth.initiateLogIn,{url:Tn}).pipe((0,I.s)(1)).subscribe():this.authWindow=window.open(Tn,"_blank"),this.logger.info("login window opened with url",Tn),Et&&Et.next(h.OpenOAuthUrlCompleted),En.url=Tn,En.span=Cn,En.oAuthWindow=this.authWindow,In&&rn.silentLoginHelperInstance?Mi.pipe((0,R.T)(Wn=>(En.ifrmEl=Wn,En))):(0,y.of)(En)}))}closeHttpSpan(ht,it,Ct){ht&&ht.error?this.distributedTracingUtilService.closeHttpPopupSpan(it,!0,{errorCode:ht.error,errorText:ht.error,failedUrl:Ct}):this.distributedTracingUtilService.closeHttpPopupSpan(it,!1,{errorCode:"",errorText:"",failedUrl:Ct})}startHttpServer(ht,it,Ct=[]){const Et=new De.B7,We=new De.B7;return this.httpSubscription=this.bridgeService.executeCommand(Z.Ts.Common.Httpserver.StartHttpServer,{ports:ht.portNumbers,redirectUrl:ht.onCompleteRedirectUrl,redirectParams:this.getRedirectParams(Ct,ht.redirectParams,it)}).subscribe(bt=>{switch(this.logger.info("httpresponse recieved"),(0,H.get)(bt,"callbackReason")){case"serverCreated":Et.next((0,H.get)(bt,"portNumber")),Et.complete();break;case"httpRequest":We.next(bt.url),We.complete(),this.stopHttpServer();break;case"httpRequestAborted":We.error(f.LOGIN_CANCELLED_BY_USER),this.stopHttpServer()}},bt=>{this.logger.error("error starting httpserver",bt),Et.error(f.HTTP_START_FAILED),We.error(f.HTTP_START_FAILED)}),[Et,We]}getRedirectParams(ht,it,Ct){const Et=ht,We=[];return ht.forEach(bt=>We.push(bt.split("=")[0])),it.forEach(bt=>{bt.split("=")[0]in We||Et.push(bt)}),Et.push(`ui_locales=${Ct}`),Et}handleHttpRequest(ht){const it={};return ht&&new URL(ht).searchParams.forEach((Et,We)=>{it[We]=Et}),it}b64url(ht){return btoa(String.fromCharCode.apply(null,ht)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}buildStarfleetUrl(ht,it,Ct,Et,We,bt){let gt=ht.useAuthorizationCodeFlow?":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":":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";gt=gt.replace(":server",ht.url),gt=gt.replace(":clientId",ht.clientId),gt=gt.replace(":scope",encodeURIComponent(ht.scope));let wt="";wt=Et||ht.redirectUrl,gt=gt.replace(":redirectUri",encodeURIComponent(wt)),gt=gt.replace(":locale",it),gt=gt.replace(":deviceId",Ct);const rn=this.generateNonce();if(gt=gt.replace(":nonce",rn),bt){if(!bt.ssoSharedPageData?.idp_id||!bt.ssoSharedPageData?.login_hint)return this.logger.error("Missing login hints for silent login"),(0,S.$)("Missing login hints for silent login");bt.silentLoginHelperInstance&&(gt=gt.replace("select_account","none")),gt+="&idp_id="+encodeURIComponent(bt.ssoSharedPageData.idp_id),gt+="&login_hint="+encodeURIComponent(bt.ssoSharedPageData.login_hint)}let In=null,Mi=null;if(ht.useAuthorizationCodeFlow){const En=window.crypto.getRandomValues(new Uint8Array(32));Mi=this.b64url(En);const Tn=(new TextEncoder).encode(Mi);In=(0,pe.H)(window.crypto.subtle.digest("SHA-256",Tn)).pipe((0,R.T)(Cn=>{const Wn=this.b64url(new Uint8Array(Cn));return gt=gt.replace(":codeChallenge",Wn),gt}))}else In=(0,y.of)(gt);return In.pipe((0,R.T)(En=>(!(0,H.isNil)(We)&&!gt.includes("idp_id")&&(gt=gt+"&idp_id="+We),{url:gt,codeVerifier:Mi,redirectUrl:wt,nonce:rn})))}generateNonce(){let ht=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(Ct){const Et=(ht+16*Math.random())%16|0;return ht=Math.floor(ht/16),("x"===Ct?Et:3&Et|8).toString(16)})}cancelOAuthLogin(ht,it,Ct){let Et=null,We=null;return Ct?(this.stopHttpServer(),We=(0,y.of)("")):[Et,We]=this.startHttpServer(ht,it,["error=cancelled"]),this.authWindow&&(this.authWindow.close(),this.authWindow=null),We.pipe((0,R.T)(bt=>this.handleHttpRequest(bt)))}stopHttpServer(){this.httpSubscription&&(this.httpSubscription.unsubscribe(),this.httpSubscription=null,this.bridgeService.executeCommand(Z.Ts.Common.Httpserver.StopHttpServer).subscribe(ht=>this.logger.info("success stopping httpserver",ht),ht=>this.logger.error("error stopping httpserver",ht)))}validateMessageEvent(ht){if("no_localstorage_supported"===ht.data.key)throw this.logger.error("Starfleet Redirect page failure ",ht),f.STARFLEET_REDIRECT_FAIL;return!(!ht||!ht.data||"oauth"!==ht.data.key||ht.origin!==window.location.origin)}getOAuthLoginData(ht){const it=this.isSameTabLoginFeatureEnabled?"oauth":(0,H.get)(ht,"data.key"),Ct=window.localStorage.getItem(it);if(window.localStorage.removeItem(it),this.logger.info("Extracted key for reading oAuthLogin data ",it),!Ct)return null;try{return JSON.parse(Ct).data}catch{return this.logger.error("malformed access code object",Ct),null}}readAndValidateoAuthLoginData(){const ht=this.getOAuthLoginData();if(ht){const it=window.sessionStorage.getItem(J);if(window.sessionStorage.removeItem(J),it)try{ht.oAuthUrl=JSON.parse(it)}catch{this.logger.error("malformed access code object",it)}}return this.logger.info("Received oAuth Data on return from login ",ht),ht}}return(It=vn).\u0275fac=function(ht){return new(ht||It)(n.KVO(v),n.KVO(X.NZ),n.KVO(X.J6),n.KVO(Pe.Z1))},It.\u0275prov=n.jDH({token:It,factory:It.\u0275fac,providedIn:"root"}),vn})();var st=c(72945);const Gt="markLogoutInitiated",Zt="Logout Initiated",kn="logoutNotSupportedUrl";let Un=(()=>{var It;class vn extends r{constructor(ht,it,Ct,Et,We,bt,gt,wt,rn,In,Mi,En){super(),this.config=ht,this.starfleetHttpService=Ct,this.oAuthService=Et,this.sharedStorage=We,this.localeService=bt,this.networkStatus=wt,this.systemInfoService=rn,this.errorHandler=In,this.bridgeService=Mi,this.dbService=En,this.storageType=dt.SharedStorage,this.SAFE_RETRY_COUNT=5,this.initSub=new E.m(1),this.authStatusSubject=new E.m(1),this.loginSubscription=null,this.deviceIdSub=null,this.useCachedUser=!1,this.firstRefreshDone=!1,this.errorInfo={error_code:"",error_description:"",error_uri:""},this.isSessionRefreshable=!0,this.isNextClientTokenRefreshAllowed=!0,this.deviceDisplayCode=null,this.skipOpeningLogoutUrl=!1,this.isSameTabLoginFeatureEnabled=!1,this.idTokenRefreshUnderDuration=0,this.logger=it.getLogger("starfleet/desktop"),this.logger.info("constructing"),this.useDeviceAuthLogin=!!ht?.useDeviceAuthLogin,this.skipOpeningLogoutUrl=!!ht?.skipOpeningLogoutUrl,this.starfleetUserSubscription=gt.createStream(this.getCurrentUser.bind(this)),this.isSameTabLoginFeatureEnabled=this.config.sameTabLogin,this.idTokenRefreshUnderDuration=this.config.idTokenRefreshUnderDuration??0,this.storageType=this.config.storageType??dt.SharedStorage,this.idTokenRefreshUnderDuration<0&&(this.idTokenRefreshUnderDuration=0),this.storageType===dt.IndexedDB&&(this.globalStore=this.dbService.getGlobalStore(ot.DBName))}getAuthStatus(){return this.authStatusSubject.asObservable()}initialize(ht=!1,it=!1,Ct){this.logger.info(`initializing session: ${ht}, user: ${it}, id_token?: ${!!Ct}`),this.useCachedUser=it;const Et=this.oAuthService.readAndValidateoAuthLoginData();Et?this.attemptLoginAtInit(Et):this.loadSessionFromStorage().pipe((0,u.M)(()=>this.initSub.next(!0)),(0,m.ZZ)(()=>this.getOrRefreshSession(!ht,!0,Ct))).subscribe(()=>this.logger.info("initialized success")),this.checkIfReturnFromLogout(),this.deviceIdSub=this.getDeviceId(),this.deviceIdSub.subscribe(),this.accountStatusChanged.pipe((0,I.s)(1)).subscribe()}getDeviceId(){return this.systemInfoService.getSystemInfo([X.Lu.DeviceId]).pipe((0,R.T)(ht=>ht.DeviceId),(0,O.$)(),(0,Y.W)(ht=>(this.logger.error("failed to get deviceId",ht),(0,y.of)(""))),(0,j.t)())}handleLoginError(ht){switch(ht){case f.ALREADY_LOGGED_IN:this.logger.info("user already logged in"),this.loginSubject.next(h.LoginAbortedAlreadyLoggedIn),this.loginSubject.complete();break;case f.AUTH_ERROR:this.logger.info("Auth error in login"),this.loginSubject.next(h.LoginFailed),this.loginSubject.complete();break;case f.ACCOUNT_LOCKED:case f.AGE_RESTRICTED:this.logger.info("Auth error in login: ",ht),this.loginSubject.next(h.LoginFailedNoRetry),this.loginSubject.complete();break;case f.HTTP_START_FAILED:this.logger.info("Http Start in error Login"),this.loginSubject.next(h.LoginFailedToStart),this.loginSubject.complete();break;case f.CLIENT_TOKEN_FAIL:this.logger.info("Client token url access failed"),this.errorInfo.error_description=f.CLIENT_TOKEN_FAIL,this.loginSubject.next(h.LoginFailed),this.loginSubject.complete();break;case f.OAUTH_DATA_EMPTY:this.logger.info("JSON parsing fialed for OAUTH Data"),this.errorInfo.error_description=f.OAUTH_DATA_EMPTY,this.loginSubject.next(h.LoginFailed),this.loginSubject.complete();break;case f.STARFLEET_REDIRECT_FAIL:this.logger.info("JSON parsing fialed for OAUTH Data"),this.errorInfo.error_description=f.STARFLEET_REDIRECT_FAIL,this.loginSubject.next(h.LoginFailed),this.loginSubject.complete();break;case f.LOGIN_CANCELLED_BY_USER:this.logger.info("canceled by user"),this.errorInfo.error_description=f.LOGIN_CANCELLED_BY_USER,this.loginSubject.next(h.LoginAbortedByUser),this.loginSubject.complete();break;default:this.logger.info("unknown error in login",ht),this.loginSubject.next(h.LoginFailed),this.loginSubject.complete()}}cancelLogin(ht=!0){return this.logger.info("cancelling login"),this.loginSubject&&!1===this.loginSubject.isStopped&&(this.loginSubject.next(h.LoginAbortedByUser),this.loginSubject.complete()),this.loginSubscription&&(this.loginSubscription.unsubscribe(),this.loginSubscription=null),this.oAuthService.cancelOAuthLogin(this.config,this.localeService.getLocale(),ht)}sameTabAuthStarted(){return this.oAuthService.sameTabAuthStarted()}login(ht){return this.loginSubject&&!this.loginSubject.isStopped?(0,S.$)(h.LoginAlreadyInProgress):(this.loginSubject=new E.m(1),this.logger.info("login started"),this.loginSubject.next(h.LoginStarted),this.loginSubscription=this.getOrRefreshSession().pipe((0,m.ZZ)(it=>!ht.force&&it.isAccessTokenValid()?(0,S.$)(f.ALREADY_LOGGED_IN):this.deviceIdSub),(0,m.ZZ)(it=>this.useDeviceAuthLogin?(ht.deviceName||(this.logger.error("Missing device name in off-device login flow, falling back to default value"),ht.deviceName="unknown"),this.performDeviceLogin(it,ht.deviceName,ht.idpId)):(this.loginSubject.next(h.OpenOAuthUrlStarted),this.oAuthService.oAuthLogin(this.config,this.localeService.getLocale(),it,this.loginSubject,ht.idpId,ht.preCreatedWindow,ht.returnLocationUrl,ht.silentLoginInfo,ht.redirect))),(0,O.$)(),(0,m.ZZ)(it=>!it||(0,H.isEmpty)(it)?(this.logger.info("received empty oauth login data ",this.isSameTabLoginFeatureEnabled),(0,y.of)(null)):(this.loginSubject.next(h.LoginRedirectCompleted),this.logger.info("OAuth login complete, starting to retrive token"),this.loginSubject.next(h.LoginStarted),this.attemptLogin(it))),(0,m.ZZ)(it=>it?this.refreshUser():(0,y.of)(it)),(0,u.M)(it=>{it?this.loginSubject.next(h.LoginCompleted):this.isSameTabLoginFeatureEnabled||this.logger.error("session is null"),this.loginSubject.complete()})).subscribe(l.l,this.handleLoginError.bind(this)),this.loginSubject.asObservable())}updatePiplConfigUrls(ht){this.logger.info("Updating PIPL config urls: ",ht),Object.assign(this.config,ht)}checkIfReturnFromLogout(){let it,ht=null;if(window.sessionStorage.getItem(Gt)===Zt){window.sessionStorage.removeItem(Gt),this.logger.info("Returning from logout");const Ct=new URL(window.location.href).searchParams.get("error");it=window.sessionStorage.getItem(kn),window.sessionStorage.removeItem(kn),Ct&&(this.logger.info("Logout failed with error ",Ct),ht=Ct===f.LOGOUT_NOT_SUPPORTED?f.LOGOUT_NOT_SUPPORTED:f.LOGOUT_GENERIC_ERROR),this.authStatusSubject.next({authReturnState:h.LogoutCompleted,error:ht,logoutNotSupportedRedirectUrl:it})}else this.logger.info("Not returning from logout")}completeLoginAtInit(ht,it){ht===h.LoginFailed&&(this.session=new ee(this.idTokenRefreshUnderDuration,null,this.storageType)),this.initSub.next(!0),this.authStatusSubject.next({authReturnState:ht,error:it}),this.refreshUser(),this.loginSubject.next(ht),this.loginSubject.complete()}attemptLoginAtInit(ht){if(this.loginSubject&&!this.loginSubject.isStopped)return this.logger.info("Login already in progress"),(0,y.of)(h.LoginAlreadyInProgress);this.loginSubject=new E.m(1),this.logger.info("OAuth login complete, starting to retrive token"),this.loginSubject.next(h.LoginStarted),this.attemptLogin(ht).pipe((0,u.M)(it=>{this.completeLoginAtInit(h.LoginCompleted,null)},it=>{this.completeLoginAtInit(h.LoginFailed,it)})).subscribe()}retryDeviceLogin(ht,it,Ct){return Ct.pipe((0,m.ZZ)((Et,We)=>{const bt=We+1;return console.log("attempt number: ",bt),bt>ht?(0,S.$)(Et):"authorization_pending"===Et?.rawResponse?.error?.error?(0,s.O)(1e3*it):"slow_down"===Et?.rawResponse?.error?.error?(0,s.O)(1e3*(it+5)):(0,S.$)(Et)}))}waitForDeviceLogin(ht){const it=Math.max(1,Math.floor(ht.expires_in/ht.interval)-1);return(0,s.O)(1e3*ht.interval).pipe((0,m.ZZ)(()=>this.starfleetHttpService.getAccessTokenFromDeviceCode(ht.device_code)),(0,fe.l)(Ct=>this.retryDeviceLogin(it,ht.interval,Ct)),(0,R.T)(Ct=>({error:"",error_description:"",access_token:Ct.access_token,token_type:Ct.token_type,expires_in:Ct.expires_in,id_token:Ct.id_token})))}performDeviceLogin(ht,it,Ct){return this.starfleetHttpService.requestDeviceAuthorize(ht,it,Ct).pipe((0,O.$)(),(0,m.ZZ)(Et=>(this.deviceDisplayCode={url:Et.verification_uri,url_complete:Et.verification_uri_complete,user_code:Et.user_code},this.loginSubject.next(h.LoginInProgressNeedDisplayCode),(!Et.interval||Et.interval<=0)&&(Et.interval=5),this.waitForDeviceLogin(Et))))}getStarfleetLogoutURL(ht,it){return":server/logout?id_token_hint=:idToken&ui_locales=:locale".replace(":server",this.config.url).replace(":idToken",ht).replace(":locale",it)}getStarfleetLogoutURLSameTab(ht,it,Ct){return":server/logout?id_token_hint=:idToken&ui_locales=:locale&post_logout_redirect_uri=:redirect_uri".replace(":server",this.config.logoutUrl).replace(":idToken",ht).replace(":locale",it).replace(":redirect_uri",Ct)}saveRequiredDataAndOpenLogoutUrl(ht,it,Ct){return this.oAuthService.sameTabAuthStarted().subscribe(Et=>{this.logger.info("Received notification for ",Et),window.sessionStorage.setItem(Gt,Zt),window.sessionStorage.setItem(kn,it),window.open(this.getStarfleetLogoutURLSameTab(ht,this.localeService.getLocale(),Ct),"_self")}),this.oAuthService.emitAuthStartNotification(h.LogoutStarted),(0,y.of)(!0)}logout(ht,it,Ct,Et=!1){if(!1===this.session.isClientTokenValid())return this.logger.info("already logged out, completing the logout process"),(0,y.of)(h.LogoutCompleted);if(this.logoutSubject&&!this.logoutSubject.isStopped)return this.logger.info("logout already in progress"),this.logoutSubject.asObservable();this.logoutSubject=new E.m(1),this.logger.info("Logging out user."),this.logoutSubject.next(h.LogoutStarted);const We=this.session?.data?.idToken;if(!(ht||this.skipOpeningLogoutUrl||this.isSameTabLoginFeatureEnabled||Et)){const wt=this.getStarfleetLogoutURL(We,this.localeService.getLocale());this.config.useNativeAuthCommands?this.bridgeService.executeCommand(Z.Ts.Common.Nativeauth.initiateLogOut,{url:wt}).pipe((0,I.s)(1)).subscribe():window.open(wt,"_blank")}return this.deleteClientToken(!1,ht).pipe((0,Y.W)(wt=>(this.logger.error("delete token failed with error: ",wt),(0,y.of)(null))),(0,m.ZZ)(()=>this.storeSession(new ee(this.idTokenRefreshUnderDuration,null,this.storageType))),(0,m.ZZ)(()=>this.skipOpeningLogoutUrl||Et||!this.isSameTabLoginFeatureEnabled?this.refreshUser():this.saveRequiredDataAndOpenLogoutUrl(We,it,Ct))).subscribe(()=>{this.logger.info("log out complete."),this.logoutSubject.next(h.LogoutCompleted),this.logoutSubject.complete()},wt=>{this.logger.error("log out failed with error:",wt),this.logoutSubject.next(h.LogoutFailed),this.logoutSubject.complete(),this.skipOpeningLogoutUrl||Et||!this.isSameTabLoginFeatureEnabled?this.refreshUser():this.saveRequiredDataAndOpenLogoutUrl(We,it,Ct)}),this.logoutSubject.asObservable()}deleteClientToken(ht=!1,it){return(it?(0,y.of)(it):this.getAccessToken(ht)).pipe((0,m.ZZ)(Ct=>this.starfleetHttpService.deleteClientTokens(Ct)),(0,Y.W)(Ct=>(this.logger.error("Got error while deleting client token.",Ct),this.handleAuthError(Ct,ht,this.deleteClientToken.bind(this)))))}refreshUser(){return this.firstRefreshDone=!0,this.starfleetUserSubscription.refresh()}get accountStatusChanged(){let ht;return this.starfleetUserSubscription.get$().pipe((0,te.p)(it=>(0,H.isNil)(ht)||!(0,H.isEqual)(ht.sub,it.sub)||!(0,H.isEqual)(ht.consent?.trackBehavioralData,it.consent?.trackBehavioralData)||!(0,H.isEqual)(ht.consent?.trackTechnicalData,it.consent?.trackTechnicalData)||!(0,H.isEqual)(ht.consent?.targetedAdsOptIn,it.consent?.targetedAdsOptIn)||!(0,H.isNil)(it?.age)),(0,u.M)(it=>{ht=it}))}getStarfleetSession(){return this.sessionSubject.asObservable()}get isUserLoggedIn(){return this.initSub.pipe((0,R.T)(()=>this.session.isClientTokenValid()))}attemptLogin(ht){if(this.errorInfo.error_code=ht.error?ht.error:"",this.errorInfo.error_description=ht.error_description?ht.error_description:"",this.errorInfo.error_uri=ht.error_uri?ht.error_uri:"",ht.error||ht.error_description)return this.logger.error("failed to login user with error",ht.error,ht.error_description),(0,S.$)(ht.error);let it=null;return it=ht.code&&ht.oAuthUrl.codeVerifier?this.starfleetHttpService.redeemAuthCode(ht.code,ht.oAuthUrl.redirectUrl,ht.oAuthUrl.codeVerifier).pipe((0,R.T)(Ct=>(ht.access_token=Ct.access_token,ht.id_token=Ct.id_token,ht.expires_in=Ct.expires_in,ht.token_type=Ct.token_type,ht)),(0,Y.W)(Ct=>{throw this.logger.error("error in redeeming auth code",Ct),f.REDEEM_AUTHCODE_FAILED})):(0,y.of)(ht),it.pipe((0,m.ZZ)(Ct=>this.completeLogin(ht)))}validateRedirectResponse(ht){if(this.useDeviceAuthLogin)return!0;const it=this.parseIdToken(ht.id_token);if(it&&it.nonce!==ht.oAuthUrl.nonce)throw f.NONCE_VALIDATION_FAILED;return!0}completeLogin(ht){const it=new ee(this.idTokenRefreshUnderDuration,null,this.storageType);return this.starfleetHttpService.getClientToken(ht.access_token).pipe((0,Y.W)(Ct=>{throw this.logger.error("Client Token url failure ",Ct),f.CLIENT_TOKEN_FAIL}),(0,R.T)(Ct=>(it.data.accessToken=ht.access_token,it.data.accessTokenExpiry=Date.now()+1e3*ht.expires_in,it.data.idToken=ht.id_token,it.data.clientToken=Ct.client_token,it.data.clientTokenExpiry=Date.now()+1e3*Ct.expires_in,it.data.clientTokenExpiryLength=1e3*Ct.expires_in,it.data.idTokenExpiry=this.getIdTokenExpiry(it.data.idToken),this.session=it,this.session)))}syncSession(ht){return ht?.isClientTokenValid()?this.session?.isClientTokenValid()?this.updateUserTokens(ht):this.migrateUser(ht):(0,y.of)(this.session)}migrateUser(ht){return this.session=ht,this.logger.info("migrateUser"),this.refreshUser().pipe((0,R.T)(it=>this.session))}updateUserTokens(ht){return this.session.data.idTokenExpiry=ht.data.idTokenExpiry,this.session.data.clientTokenExpiry=ht.data.clientTokenExpiry,this.session.data.accessTokenExpiry=ht.data.accessTokenExpiry,this.session.data.idToken=ht.data.idToken,this.session.data.clientToken=ht.data.clientToken,this.session.data.accessToken=ht.data.accessToken,(0,y.of)(this.session)}getIdTokenExpiry(ht){let it=0;const Ct=this.parseIdToken(ht);return Ct&&(it=Date.now()+1e3*(+Ct.exp-+Ct.iat)),it}parseIdToken(ht){try{const Ct=ht.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(decodeURIComponent(escape(atob(Ct))))}catch(it){return this.errorHandler.handleError(new Error(`idToken parse failed with error '${it}'`)),this.logger.error("failed to parse idToken",it),null}}isClientTokenRefreshRequired(){let ht=!1;if(this.session.isClientTokenValid()){const it=this.session.data.clientTokenExpiry-Date.now();ht=this.session.data.clientTokenExpiryLength?it<this.config.clientTokenRefreshDurationInPercentage/100*this.session.data.clientTokenExpiryLength:it<this.config.clientTokenRefreshDuration}return ht}fetchSession(ht,it){return this.starfleetHttpService.getAccessToken(this.session.data.clientToken,this.session.data.user.sub,it).pipe((0,m.ZZ)(Ct=>(this.session.data.accessToken=Ct.access_token,this.session.data.clientToken=Ct.client_token,this.session.data.idToken=Ct.id_token,this.session.data.accessTokenExpiry=Date.now()+1e3*Ct.expires_in,this.session.data.idTokenExpiry=this.getIdTokenExpiry(this.session.data.idToken),this.isSessionRefreshable=!0,(0,y.of)(this.session))),(0,m.ZZ)(()=>{const Ct=this.session.data.clientTokenExpiry-Date.now();return this.isClientTokenRefreshRequired()&&this.isNextClientTokenRefreshAllowed?(this.logger.info("Refreshing Client Token"),this.starfleetHttpService.getClientToken(this.session.data.accessToken,it).pipe((0,R.T)(Et=>(this.logger.info("Client Token refreshed Successfully"),this.session.data.clientToken=Et.client_token,this.session.data.clientTokenExpiry=Date.now()+1e3*Et.expires_in,this.session.data.clientTokenExpiryLength=1e3*Et.expires_in,this.isNextClientTokenRefreshAllowed=Ct<this.session.data.clientTokenExpiryLength,this.session)))):(0,y.of)(this.session)}),(0,Y.W)(Ct=>(this.logger.info("Error refreshing access token with starfleet:",Ct),(0,ue.gX)(Ct)?(this.logger.info("The session refresh failed due to timeout or connection issues. So, will not log out the user"),(0,y.of)(this.session)):(this.logger.info("Error thrown from server. Hence, logging the user out"),this.storeSession(new ee(this.idTokenRefreshUnderDuration,null,this.storageType))))),(0,ce.j)(()=>{ht||this.refreshUser()}))}getCurrentUser(ht=!1){return this.getOrRefreshSession(ht,!0).pipe((0,m.ZZ)(it=>(this.logger.info("Getting current user"),this.useCachedUser?(this.useCachedUser=!1,(0,S.$)("using cached user at initialize")):!this.networkStatus.isOnline&&it.isClientTokenValid()?(this.logger.info("User is offline and session has client token. So returning cached user"),(0,S.$)(f.USER_OFFLINE)):it.isAccessTokenValid()?it.data.user&&!this.firstRefreshDone?(this.firstRefreshDone=!0,this.refreshUser(),(0,S.$)("using deferred refresh for user")):this.starfleetHttpService.getUserInfo(it.data.accessToken).pipe((0,R.T)(Ct=>(Ct.isNetworkCall=!0,Ct))):(0,S.$)(f.NOT_LOGGED_IN))),(0,m.ZZ)(it=>(it.isAuthenticated=!0,this.session.data.user=it,this.storeSession(this.session))),(0,R.T)(()=>this.session.data.user),(0,Y.W)(it=>this.handleAuthError(it,ht,this.getCurrentUser.bind(this))),(0,Y.W)(it=>(this.logger.error("Error fetching userInfo from starfleet:",it.toString()),(0,ue.gX)(it)&&this.logger.info("UserInfo refresh failed due to timeout or connection issue"),(0,y.of)(this.session.data.user))))}createNewSessionFromIdToken(ht){return this.getOrRefreshSession(!1,!1,ht).pipe((0,u.M)(()=>this.refreshUser()))}getOrRefreshSession(ht,it,Ct,Et){return this.sessionSubject&&!1===this.sessionSubject.isStopped||(this.sessionSubject=new E.m(1),this.initSub.pipe((0,m.ZZ)(()=>{const We=this.session.isClientTokenValid();return(ht||!this.session.isAccessTokenValid())&&We&&this.networkStatus.isOnline&&this.isSessionRefreshable?(this.logger.info("refreshing session. Force Refresh: ",ht),this.fetchSession(it,Et)):We?(this.logger.info("Using existing client token "),(0,y.of)(this.session)):Ct&&0!==Ct.length?this.createSessionFromIdToken(Ct):(this.logger.info(`Loading session from  ${this.storageType}`),this.loadSessionFromStorage())})).subscribe(We=>{this.sessionSubject.next(We),this.sessionSubject.complete()},We=>{this.sessionSubject.error(We),this.logger.error("failed to refersh session",We)})),this.sessionSubject.asObservable()}createSessionFromIdToken(ht){let it;this.logger.info("Building session from sdk id token");try{let Et=ht.split(".")[1];Et=JSON.parse(window.atob(Et)),it={sub:Et.sub,idp_name:Et.idp_name,idp_id:Et.idp_id,external_id:Et.external_id,preferred_username:Et.preferred_username,consent:Et.consent,isAuthenticated:!0}}catch{return this.logger.error("Failed to parse id token to get expiry"),this.logger.info(`Loading session from  ${this.storageType}`),this.loadSessionFromStorage()}const Ct={clientToken:"This is required for the session object to validate, but is not used",accessToken:"This is required for the session object to validate, but is not used",idToken:ht,user:it,clientTokenExpiry:Date.now()+1728e5,accessTokenExpiry:Date.now()+1728e5,idTokenExpiry:this.getIdTokenExpiry(ht)};return this.isSessionRefreshable=!1,this.session=new ee(this.idTokenRefreshUnderDuration,Ct,this.storageType),(0,y.of)(this.session)}loadSessionFromStorage(){return ee.loadFrom(this.storageType===dt.SharedStorage?this.sharedStorage:this.globalStore,this.idTokenRefreshUnderDuration).pipe((0,m.ZZ)(it=>(this.logger.info(`Loaded session successfully from ${this.storageType}`),this.session=it,it.isClientTokenValid()?(0,y.of)(it):(this.logger.info("Stored session does not have user token. Hence, logging the user out"),this.session=new ee(this.idTokenRefreshUnderDuration,null,this.storageType),this.isSessionRefreshable=!0,(0,y.of)(this.session)))),(0,Y.W)(it=>(this.logger.info(`Error loading session from ${this.storageType}. Hence logging out the user.`,it),this.session=new ee(this.idTokenRefreshUnderDuration,null,this.storageType),(0,y.of)(this.session))))}storeSession(ht){return this.session=(0,H.cloneDeep)(ht),delete ht.data.user?.age,delete ht.data.user?.isNetworkCall,ht.writeTo(this.storageType===dt.SharedStorage?this.sharedStorage:this.globalStore).pipe((0,m.ZZ)(()=>(0,y.of)(ht)),(0,Y.W)(Ct=>(this.logger.info(`Error saving session to ${this.storageType}:`,Ct),(0,S.$)(Ct))))}getAuthToken(ht,it){return this.initSub.pipe((0,m.ZZ)(Ct=>ht||!this.session.isIdTokenValid()?this.session.hasClientTokenExpired()?(this.refreshUser(),(0,y.of)(new ee(this.idTokenRefreshUnderDuration,null,this.storageType))):this.getOrRefreshSession(!0,null,null,it):(0,y.of)(this.session)),(0,R.T)(Ct=>Ct.data.idToken))}getAccessToken(ht,it){return this.initSub.pipe((0,m.ZZ)(Ct=>ht||!this.session.isAccessTokenValid()?this.getOrRefreshSession(!0,null,null,it):(0,y.of)(this.session)),(0,R.T)(Ct=>Ct.data.accessToken))}getClientData(ht,it,Ct=!1){return this.getAuthToken(Ct,it).pipe((0,m.ZZ)(Et=>this.starfleetHttpService.getClientData(Et,ht,it)),(0,Y.W)(Et=>this.handleAuthError(Et,Ct,this.getClientData.bind(this),ht)))}setClientData(ht,it,Ct,Et=!1){return this.getAuthToken(Et,Ct).pipe((0,m.ZZ)(We=>this.starfleetHttpService.setClientData(We,ht,it,Ct)),(0,Y.W)(We=>this.handleAuthError(We,Et,this.setClientData.bind(this),ht,it)))}appendClientData(ht,it,Ct,Et=!1){return this.getAuthToken(Et,Ct).pipe((0,m.ZZ)(We=>this.starfleetHttpService.appendClientData(We,ht,it,Ct)),(0,Y.W)(We=>this.handleAuthError(We,Et,this.appendClientData.bind(this),ht,it)))}deleteClientData(ht,it,Ct,Et=!1){return this.getAuthToken(Et,Ct).pipe((0,m.ZZ)(We=>this.starfleetHttpService.deleteClientData(We,ht,it,Ct)),(0,Y.W)(We=>this.handleAuthError(We,Et,this.deleteClientData.bind(this),ht)))}handleAuthError(ht,it,Ct,...Et){return 401===ht.status?it?(0,S.$)(f.NOT_LOGGED_IN):(this.logger.info("refershing auth token for fn: ",Ct?.name),Et.push(!0),Ct(...Et)):(0,S.$)(ht)}get lastError(){return this.errorInfo}getDeviceDisplayCode(){return this.deviceDisplayCode}cancel(){!1===this.loginSubject?.isStopped&&this.loginSubject.complete(),this.loginSubscription?.unsubscribe(),this.loginSubscription=null}}return(It=vn).\u0275fac=function(ht){return new(ht||It)(n.KVO(v),n.KVO(X.J6),n.KVO(at),n.KVO($e),n.KVO(st.yQ),n.KVO(X.iH),n.KVO(ue.mZ),n.KVO(X.CF),n.KVO(X.zW),n.KVO(n.zcH),n.KVO(X.NZ),n.KVO(X.at))},It.\u0275prov=n.jDH({token:It,factory:It.\u0275fac,providedIn:"root"}),vn})();const qe={provide:r,useFactory:function ni(It,vn,Vn,ht,it,Ct,Et,We,bt,gt,wt,rn){switch(It.platformType){case A.Browser:case A.Cef:return It.redirectUrl=It.redirectUrlIsRelative?window.location.origin+It.redirectUrl:It.redirectUrl,new Un(It,vn,Vn,ht,it,Ct,Et,We,bt,gt,wt,rn);default:vn.getLogger("starfleetServiceCreator").error("Cannot create StarfleetService for unknown platform type: "+It.platformType)}},deps:[v,X.J6,at,$e,st.yQ,X.iH,ue.mZ,X.CF,X.zW,n.zcH,X.NZ,X.at]};var mi=c(99204);const Bi=[mi.D6];let _i=(()=>{var It;class vn{static configure(ht){return{ngModule:vn,providers:[{provide:v,useValue:ht},qe,$e]}}}return(It=vn).\u0275fac=function(ht){return new(ht||It)},It.\u0275mod=n.$C({type:It}),It.\u0275inj=n.G2t({providers:[qe],imports:[T.q1,M.MD,Bi,mi.D6]}),vn})();c(21333)},52299:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{KA:()=>base64Encode,RL:()=>invalidPipeArgumentError,T7:()=>toLowerCaseOrEmpty,bz:()=>generateUuid,c2:()=>evalCss,gX:()=>isTimeoutOrConnectivityError,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(je){let z="";return je.forEach((c,r)=>{!c.startsWith("/")&&0!==r&&(z+="/"),c.endsWith("/")?z+=c.slice(0,c.length-1):z+=c}),z}function toLowerCaseOrEmpty(je){return je&&je.toLowerCase()||""}let CachedUuid=(()=>{class z{static getUuid(){return z.uuid}static refreshUuid(){z.uuid=generateUuidInternal()}}return z.uuid=null,z})();function generateUuidInternal(){let je=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){const r=(je+16*Math.random())%16|0;return je=Math.floor(je/16),("x"===c?r:3&r|8).toString(16)})}function generateUuid(je=!1){return je?CachedUuid.getUuid():generateUuidInternal()}function invalidPipeArgumentError(je,z){return Error(`InvalidPipeArgument: '${z}' for pipe '${je.toString()}'`)}function getString(je,z){let c=je&&"string"!=typeof je?JSON.stringify(je):je||"";return z&&(c=c.substr(0,z)),c}function isTimeoutOrConnectivityError(je){return!((0,lodash__WEBPACK_IMPORTED_MODULE_0__.isNil)(je)||(0,lodash__WEBPACK_IMPORTED_MODULE_0__.isNil)(je.status)||0!==je.status&&-100!==je.status)}function formatLogString(je,z,c,r){let n="";for(const f of r)try{n+="string"==typeof f?f:JSON.stringify(f,null,"\t"),n+=" "}catch{}return`${c.transform(new Date,"yyyy-MM-dd HH:mm:ss.SSS")} ${[z]}  ${je}  ${n}`}function base64Encode(je,z,c){return c&&(je=window.encodeURIComponent(je)),z&&(je=window.unescape(je)),window.btoa(je)}function isBase64(je){if(""===je||""===je.trim())return!1;try{return btoa(atob(je))===je}catch{return!1}}function isValidType4UUID(je){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(je)}function cloneOrNull(je){return je?{...je}:null}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,""))}CachedUuid.refreshUuid()},99066:(je,z,c)=>{"use strict";c.d(z,{T:()=>T,V:()=>E});var r=c(57258),n=c(43848),v=c(63997),h=c(3496),f=c(35146),A=c(91384);class M extends r.m{constructor(S){super(S),this.lastValue=null}getValue(){return this.lastValue}setValue(S){this.lastValue=S}next(S){this.lastValue=S,super.next(S)}clear(){this.lastValue=null}}class T{constructor(S,l=!0,s=!0,u=!0,m=-1){this.workerFn=S,this.cacheLastResult=s,this.clearCacheOnRefresh=u,this.cacheLifeTime=m,this.internalSubject=null,this.subscription=null,l||this.get$()}refresh(){const S=new r.m(1);this.cacheLastResult&&this.internalSubject instanceof M&&this.clearCacheOnRefresh&&this.internalSubject.clear();const l=this.ensureEntryIsInitialized(!0);return l&&this.pipeNewDataToReplaySubject(l,S),S.asObservable()}setData(S,l=!1){this.internalSubject instanceof M&&this.internalSubject.setValue(S),l&&(this.ensureEntryIsInitialized(!1),this.pipeNewDataToReplaySubject((0,n.of)(S),null))}getData(){return this.internalSubject instanceof M?this.internalSubject.getValue():null}get$(){const S=this.ensureEntryIsInitialized(!1);return S&&this.pipeNewDataToReplaySubject(S,null),this.internalSubject.asObservable()}getRefreshObservable(){return(0,v.v)(()=>this.refresh())}pipeNewDataToReplaySubject(S,l){(0,h.O)(0).pipe((0,A.M)(s=>this.subscription=S.subscribe(u=>{l&&l.next(u),this.internalSubject&&this.internalSubject.next(u),this.cacheLastResult&&this.cacheLifeTime>=0&&(0,h.O)(this.cacheLifeTime).subscribe(()=>{this.internalSubject=null})},u=>{const m=this.internalSubject;this.subscription&&this.subscription.unsubscribe(),this.internalSubject=null,l&&l.error(u),m&&m.error(u)}))).subscribe()}ensureEntryIsInitialized(S){if(S||!this.internalSubject)return this.subscription&&this.subscription.unsubscribe(),this.internalSubject||(this.internalSubject=this.createNewSubject()),this.workerFn()}createNewSubject(){return this.cacheLastResult?new M(1):new r.m(1)}}class E{constructor(S,l=!0,s=!0,u=!0,m=-1){this.workerFn=S,this.lazyInit=l,this.cacheLastResult=s,this.clearCacheOnRefresh=u,this.cacheLifeTime=m,this.eventStreamMap=new Map}refresh(S){return this.ensureMapEntryExists(S),this.eventStreamMap.get(S).refresh()}refreshAll(){const S=[];return this.eventStreamMap.forEach((l,s)=>{S.push(l.refresh())}),(0,f.yU)(...S)}setData(S,l,s=!1){this.ensureMapEntryExists(S),this.eventStreamMap.get(S).setData(l,s)}getData(S){return this.ensureMapEntryExists(S),this.eventStreamMap.get(S).getData()}get$(S){return this.ensureMapEntryExists(S),this.eventStreamMap.get(S).get$()}ensureMapEntryExists(S){this.eventStreamMap.has(S)||this.eventStreamMap.set(S,new T(()=>this.workerFn(S),this.lazyInit,this.cacheLastResult,this.clearCacheOnRefresh,this.cacheLifeTime))}}},40482:(je,z,c)=>{"use strict";c.d(z,{EU:()=>h,F0:()=>at,PC:()=>Y,YD:()=>O,N_:()=>j,V$:()=>r.V,A5:()=>u,TE:()=>r.T,mZ:()=>A,KA:()=>T.KA,Ms:()=>pe,c2:()=>T.c2,tO:()=>T.tO,pQ:()=>R,qU:()=>De,bz:()=>T.bz,EL:()=>Vt,RL:()=>T.RL,Nw:()=>K,Ls:()=>oe,gX:()=>T.gX,mI:()=>ce,l2:()=>T.l2,T7:()=>T.T7});var r=c(99066),n=c(72653);const v=(0,n.BQ)({passive:!0,capture:!0});class h{constructor(){this._events=new Map,this._delegateEventHandler=J=>{const $e=(0,n.Fb)(J);$e&&this._events.get(J.type)?.forEach((st,Gt)=>{(Gt===$e||Gt.contains($e))&&st.forEach(Zt=>Zt.handleEvent(J))})}}addHandler(J,$e,st,Gt){const Zt=this._events.get($e);if(Zt){const kn=Zt.get(st);kn?kn.add(Gt):Zt.set(st,new Set([Gt]))}else this._events.set($e,new Map([[st,new Set([Gt])]])),J.runOutsideAngular(()=>{document.addEventListener($e,this._delegateEventHandler,v)})}removeHandler(J,$e,st){const Gt=this._events.get(J);if(!Gt)return;const Zt=Gt.get($e);Zt&&(Zt.delete(st),0===Zt.size&&Gt.delete($e),0===Gt.size&&(this._events.delete(J),document.removeEventListener(J,this._delegateEventHandler,v)))}}var f=c(58527);let A=(()=>{var de;class J{createStream(st,Gt=!0,Zt=!0,kn=!0,Un=-1){return new r.T(st,Gt,Zt,kn,Un)}}return(de=J).\u0275fac=function(st){return new(st||de)},de.\u0275prov=f.jDH({token:de,factory:de.\u0275fac,providedIn:"root"}),J})();var T=c(52299),E=c(36877),y=c(16229),S=c(10174),l=c(34593),s=c(53461);let u=(()=>{var de;class J{constructor(){}onlineStatusChanged(){const st=(0,E.R)(window,"online").pipe((0,S.u)(!0)),Gt=(0,E.R)(window,"offline").pipe((0,S.u)(!1));return(0,y.h)(st,Gt).pipe((0,l.Z)(window.navigator.onLine),(0,s.F)())}isOnline(){return window.navigator.onLine}}return(de=J).\u0275fac=function(st){return new(st||de)},de.\u0275prov=f.jDH({token:de,factory:de.\u0275fac,providedIn:"root"}),J})();const m=[];function I(de,J,$e){for(;0!==m.length;){const st=`${J.transform(new Date,"yyyy-MM-dd HH:mm:ss.SSS")} ${[de]} ${$e[0]} ${m[m.length-1]} ${Y.close}`;console.log(st),m.pop()}}function R(de,J,$e,st){if(st.length>=3&&st[1].toString().includes("Tracer"))if(m[m.length-1]!==st[1]){if(st[2]===Y.close){const Zt=`${$e.transform(new Date,"yyyy-MM-dd HH:mm:ss.SSS")} ${[J]} ${st[0]} ${m[m.length-1]} ${st[2]}`;m.pop(),console.log(Zt),m.length&&m.pop()}else st[2]===Y.open&&m.includes(st[1])&&I(J,$e,st);m.push(st[1])}else m[m.length-1]===st[1]&&m.pop();else if("Clicked on Back button"===st[1])return void I(J,$e,st);return(0,T.tO)(de,J,$e,st)}var O=function(de){return de.EvidencePanel="EvidencePanelTracer",de.Search="SearchTracer",de.SeeMore="SeeMoreTracer",de.UserInfo="UserDetails",de.Login="LoginTracer",de.Settings="SettingsTracer",de.Feedback="FeedbackTracer",de}(O||{}),Y=function(de){return de.open="Opened",de.close="Closed",de}(Y||{}),j=function(de){return de.UserGesture="UserGesture",de.Endpoint="EndPoint",de.Errormessage="ErrorMessage",de.PushNotification="PushNotification",de.UserDetails="UserDetails",de}(j||{});function ce(){return"tizen"in window}function oe(de){return de?.isTrusted}Error;var Le=c(8619),Oe=c(65706),ye=c(91384),Ie=c(4208),at=function(de){return de.ArrowUp="ArrowUp",de.ArrowDown="ArrowDown",de.ArrowLeft="ArrowLeft",de.ArrowRight="ArrowRight",de}(at||{});function K(de){return"Escape"===de.key||"GoBack"===de.key}function De(de,J,$e){const st=(0,E.R)(de,J);return $e?st.pipe((0,Le.p)(Gt=>Gt.key===$e)):st}function pe(de,J){const $e=(0,E.R)(de,"keyup",{capture:!0}).pipe((0,Le.p)(st=>st.key===J),(0,Oe.s)(1));return(0,E.R)(de,"keydown",{capture:!0}).pipe((0,Le.p)(st=>st.key===J),(0,ye.M)(st=>{st.stopPropagation(),st.preventDefault()}),(0,Ie.Q)($e))}function Vt(de,J,$e){const st=document.elementFromPoint(de,J)||void 0;if(!st)return;const Gt=kn=>kn instanceof HTMLElement&&(!$e||$e(kn));return Gt(st)?st:document.elementsFromPoint(de,J).slice(1).find(kn=>Gt(kn))}},58431:(je,z,c)=>{"use strict";c.d(z,{Ft:()=>f,Mr:()=>r,Nd:()=>M,X5:()=>E,_2:()=>A,f9:()=>y,rB:()=>T,w:()=>v,wj:()=>n,yX:()=>h});const r={Youtube:"youtube",Local:"local"};var n=function(S){return S.Display="display",S.Laptop="laptop",S.Gpu="gpu",S.Ops="ops",S.Game="game",S.App="app",S.Hardware="hardware",S.WhatsNew="whats_new",S.WhatsFixed="whats_fixed",S}(n||{}),v=function(S){return S.Display="desktop_windows",S.Laptop="laptop",S.Gpu="gpu",S.Ops="check_circle",S.Game="game_controller",S.App="app",S.Hardware="memory",S.WhatsNew="star_filled",S.WhatsFixed="wrench_nvapp",S}(v||{}),h=function(S){return S[S.NvExtractionFatal=2]="NvExtractionFatal",S[S.NvExtractionCommandLine=7]="NvExtractionCommandLine",S[S.NvExtractionMemory=8]="NvExtractionMemory",S}(h||{});const f="_delimit_",A=1e3,M="assets/img/grd_marquee_fallback.png",T="assets/img/nsd_marquee_fallback.png",E="assets/img/nwd_marquee_fallback.png",y=34200},56302:(je,z,c)=>{"use strict";c.d(z,{$7:()=>E,BN:()=>A,Fd:()=>f,OB:()=>h,Qr:()=>T,ed:()=>M});var r=c(35965),n=c(42578),v=c(1242);const h={name:"driverInformation",controller:r.GU.GfeContent,method:r.Xt.Get,endpointPath:"/com.nvidia.services.GFEClientContent_NG.getDispDrvrDtlsByDevid/",paramMask:["gcV","lg","gLg","dIDa","osC","dch","osB","is6","GFPV","gIsB","iLp","isB","isO","go","prvMd","cSR","uCst","upCRD","isCRD","isInst"],reportRequestData:{originalService:v.Uu.Gfwsl,serviceUseCase:v.OO.GetDriverInformation}},f={name:"driverInstallData",controller:r.GU.Installer,method:r.Xt.Get,endpointPath:"/com.nvidia.services.DriverInstallerContent_NG.getCurrentGFEClientHtmlDefault/",paramMask:["O","D","L","cSR","uCst","dch","upCRD","isCRD","isInst"],reportRequestData:{originalService:v.Uu.Gfwsl,serviceUseCase:v.OO.GetInstallationBillBoards}},A={name:"isCRDSupported",controller:r.GU.Profile,method:r.Xt.Get,endpointPath:"/com.nvidia.services.GFEClientAffinity.targetGfeAchievements/",paramMask:["cmID","cID","gcV","sM","IsB","dIDa","dFma","osC","dch","osB","is6","lg","gLg","GFPV","IsQ","iLp","isSLI","go","cSR","uCst"],reportRequestData:{originalService:v.Uu.Gfwsl,serviceUseCase:v.OO.TargetGfeAchievements}},M="GFE-CRD-GRD-ENABLEMENT",T="https://www.youtube.com/embed/VIDEO_ID?wmode=transparent&controls=1&showinfo=0&autoplay=1",E=n.wY.NvApp+"://"},72053:(je,z,c)=>{"use strict";c.d(z,{QK:()=>h,Rk:()=>r,Zu:()=>n,hN:()=>v,sT:()=>f});var r=function(A){return A[A.Cancel=0]="Cancel",A[A.Install=1]="Install",A[A.Close=2]="Close",A[A.TryAgain=3]="TryAgain",A[A.RestartNow=4]="RestartNow",A[A.RestartLater=5]="RestartLater",A[A.Next=6]="Next",A}(r||{});const n=1,v="releaseDateTime",h=[{failedConstraintId:"SetupSupportedPlatformCheck",constrainText:"drivers.constraints.operatingSystemInUseNotSupported"},{failedConstraintId:"SetupPackagesToInstallCheck",constrainText:"drivers.constraints.noComponentToInstall"},{failedConstraintId:"SetupMissingFilesCheck",constrainText:"drivers.constraints.requireFilesAreMissing"},{failedConstraintId:"SetupMissingPackagesCheck",constrainText:"drivers.constraints.requireComponentMissing"},{failedConstraintId:"SetupAlreadyRunningCheck",constrainText:"drivers.constraints.otherInstallationIsRunning"},{failedConstraintId:"SetupNeedRebootCheck",constrainText:"drivers.constraints.systemRestartIsRequired"},{failedConstraintId:"SetupPackageCorruptCheck",constrainText:"drivers.constraints.installPackageCorrupt"},{failedConstraintId:"SetupNeedsDiskSpaceCheck",constrainText:"drivers.constraints.diskSpaceConstraint"},{failedConstraintId:"SetupPnpRunningCheck",constrainText:"drivers.constraints.foundNewWizardIsOpen"},{failedConstraintId:"IntelDriverPresentCheck",constrainText:"drivers.constraints.installIntelDriverFirst"},{failedConstraintId:"CheckNotSafeMode",constrainText:"drivers.constraints.packageCannotBeInstalledInSafeMode"},{failedConstraintId:"InfPlatformCheck",constrainText:"drivers.constraints.driverIsNotCompatible"},{failedConstraintId:"HardwarePresentCheck",constrainText:"drivers.constraints.graphicsHardwareNotCompatible"},{failedConstraintId:"3DVisionControllerInstalledCheck",constrainText:"drivers.constraints.3dVisionDriverNotCompatible"},{failedConstraintId:"ExternalGraphicsDowngradeCheck",constrainText:"drivers.constraints.installingOlderDriverVersion"},{failedConstraintId:"BlockTH1Install",constrainText:"drivers.constraints.driverIsNotCompatible"},{failedConstraintId:"AllowInstallCheck",constrainText:"drivers.constraints.graphicsHardwareNotCompatible"},{failedConstraintId:"CriticalBsodIssueCheck",constrainText:"drivers.constraints.systemRestartIsRequired"},{failedConstraintId:"osVersionCheck",constrainText:"drivers.constraints.virtualAudioIsNotCompatible"}];var f=function(A){return A.SetupSupportedPlatformCheck="SetupSupportedPlatformCheck",A.SetupPackagesToInstallCheck="SetupPackagesToInstallCheck",A.SetupMissingFilesCheck="SetupMissingFilesCheck",A.SetupMissingPackagesCheck="SetupMissingPackagesCheck",A.osVersionCheck="osVersionCheck",A.CriticalBsodIssueCheck="CriticalBsodIssueCheck",A.AllowInstallCheck="AllowInstallCheck",A.BlockTH1Install="BlockTH1Install",A.ExternalGraphicsDowngradeCheck="ExternalGraphicsDowngradeCheck",A.ThreeDVisionControllerInstalledCheck="3DVisionControllerInstalledCheck",A.HardwarePresentCheck="HardwarePresentCheck",A.InfPlatformCheck="InfPlatformCheck",A.CheckNotSafeMode="CheckNotSafeMode",A.IntelDriverPresentCheck="IntelDriverPresentCheck",A.SetupPnpRunningCheck="SetupPnpRunningCheck",A.SetupNeedsDiskSpaceCheck="SetupNeedsDiskSpaceCheck",A.SetupPackageCorruptCheck="SetupPackageCorruptCheck",A.SetupNeedRebootCheck="SetupNeedRebootCheck",A.SetupAlreadyRunningCheck="SetupAlreadyRunningCheck",A}(f||{})},2216:(je,z,c)=>{"use strict";c.d(z,{O6:()=>f,WZ:()=>A,ZN:()=>M,eS:()=>v,hs:()=>h,uj:()=>n});var r=c(74931),n=r.Or.Nvapp.Driverupdaterecommendation.DriverTypeEnum,v=r.Or.Nvapp.Driverupdaterecommendation.UpdateStrategyEnum,h=r.Or.Nvapp.Driverupdaterecommendation.DriverUpdateCheckProgress;const f=[{id:n.GameReadyDriver,title:"drivers.preferences.gameReadyDrivers",subtitle:"drivers.preferences.recommendedForGameUpdates"},{id:n.CreatorReadyDriver,title:"drivers.preferences.studioDrivers",subtitle:"drivers.preferences.recommendedForCreativeApp"}],A=[{id:v.WsRecommendedDriver,title:"drivers.preferences.workstationRecommendedDrivers",subtitle:"drivers.preferences.recommendedForWorkstation"},{id:v.WsLeadingEdgeDriver,title:"drivers.preferences.workstationLeadingEdgeDrivers",subtitle:"drivers.preferences.recommendedForLeadingEdge"},{id:v.WsConservativeDriver,title:"drivers.preferences.workstationConservativeDrivers",subtitle:"drivers.preferences.recommendedForConservative"}];var M=function(T){return T.WRD="wrd",T.WLD="wld",T.WCD="wcd",T}(M||{})},99929:(je,z,c)=>{"use strict";c.d(z,{p:()=>A});var r=c(26875),v=c(56302),h=c(58527),f=c(3816);let A=(()=>{var M;class T{constructor(y){this.logger=y.getLogger("nvapp/DriverContentService")}processDriverContentDetails(y){const S=y?.DriverAttributes.clientUX??null,l=(0,r.isEmpty)(S?.DriverTypeArticle),s=(0,r.isEmpty)(S?.ReleaseHighlight),u=(0,r.isEmpty)(S?.MarqueeBanner),m=S?.ReleaseNotesAbstract;if((0,r.isEmpty)(S)||l&&s&&u)return(0,r.isEmpty)(m)?null:{releaseNotesAbstract:m};{const I=l?null:S.DriverTypeArticle;let R=s?null:S.ReleaseHighlight;const O=u?[]:this.processMarquee(S?.MarqueeBanner);return this.isReleaseHighlightObjectType(R)&&(R=Object.keys(R).map(Y=>({title:`drivers.${Y}`,elements:R[Y]}))),{driverTypeArticle:I,marqueeBanner:O,releaseHighlight:R,releaseNotesAbstract:m}}}isReleaseHighlightObjectType(y){return!!y&&"object"==typeof y&&!(0,r.isArray)(y)}processMarquee(y){return y.map(S=>{const l=(0,r.isEmpty)(S.video?.url)?S.gfeLoadUrl:S.video?.url,s={uri:v.$7+l,label:S?.actionLabel},u=(0,r.isEmpty)(l)&&(0,r.isEmpty)(S?.actionLabel)?null:s;return{title:S.name,body:S?.description,image:S?.image,linksTo:S?.linksTo,action:u}})}}return(M=T).\u0275fac=function(y){return new(y||M)(h.KVO(f.J6))},M.\u0275prov=h.jDH({token:M,factory:M.\u0275fac,providedIn:"root"}),T})()},72482:(je,z,c)=>{"use strict";c.d(z,{u:()=>Z});var r=c(43848),n=c(59859),v=c(31315),h=c(65706),f=c(75707),A=c(72147),M=c(14714),T=c(83915),E=c(8619),y=c(26875),S=c(74931),l=c(35965),s=c(70521),u=c(40482),m=c(56302),I=c(2216),R=c(58431),O=c(5498),Y=c(58527),j=c(1242),fe=c(3816);let te=(()=>{var X;class ue{constructor(be,Q){this.gfwslService=be,this.gfwslService.addEndpointDefinitions([m.OB,m.Fd,m.BN]),this.logger=Q.getLogger("nvapp/DriverGfwslService")}getDriverInformation(be,Q,ne,Ge,ge){return this.logger.info("getDriverInformation"),this.gfwslService.onGfwslParamsReady({hasGeoInfo:!0,hasLocaleInfo:!0,hasSystemInfo:!0}).pipe((0,f.ZZ)(Xe=>{const ot={GFPV:be,upCRD:Q.toString(),isInst:this.toParamStatus(ne),prvMd:this.toParamStatus(Ge)};return this.gfwslService.callEndpoint(m.OB.name,ot,null,null,{serviceSubUseCase:ne?j.LG.GetInstalledDriver:j.LG.GetRecommendedDriver},O.I.GfwslDriverReleaseHighlight,ge)}),(0,T.T)(Xe=>Xe.body))}getInstallationDriverData(be,Q,ne){return this.logger.info("getInstallationDriverData"),this.gfwslService.onGfwslParamsReady({hasSystemInfo:!0,hasLocaleInfo:!0}).pipe((0,f.ZZ)(Ge=>{if(!Ge.params.dIDa)return(0,n.$)("hardware system info provided insufficient primary gpu information");const ge={isInst:this.toParamStatus(Q),upCRD:be.toString()};return this.gfwslService.callEndpoint(m.Fd.name,ge,null,null,null,O.I.GfwslInstallationBillboardData,ne)}),(0,T.T)(Ge=>Ge.body))}getIsCRDSupported(be){return this.logger.info("getIsCRDSupported"),this.gfwslService.onGfwslParamsReady({hasSystemInfo:!0,hasLocaleInfo:!0}).pipe((0,f.ZZ)(Q=>Q.params.dIDa?this.gfwslService.callEndpoint(m.BN.name,{cmID:m.ed},null,null,null,O.I.GfwslGfeTargetAchievementData,be):(0,n.$)("hardware system info provided insufficient primary gpu information")),(0,T.T)(Q=>Q.body?.html?.body))}toParamStatus(be){return be?l.Hr.Enabled:l.Hr.Disabled}}return(X=ue).\u0275fac=function(be){return new(be||X)(Y.KVO(l.XB),Y.KVO(fe.J6))},X.\u0275prov=Y.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),ue})();var ce=c(47847),H=c(99929);let Z=(()=>{var X;class ue{constructor(be,Q,ne,Ge,ge,Xe,ot,dt){this.driverGfwslService=be,this.hardwareService=Q,this.serviceWorkerService=ne,this.bridgeService=Ge,this.appConfig=ge,this.driverContentService=Xe,this.localeService=ot,this.logger=dt.getLogger("nvapp/DriverInformationService"),this.parentSpanCache=new Map,this.cacheRefreshTime=this.appConfig?.gfwsl?.cacheRefreshTime,this.driverContentEventStream=new u.V$(xe=>this.fetchDriverInformation(xe),!0,!0,!0,this.cacheRefreshTime),this.installationDataEventStream=new u.V$(xe=>this.fetchInstallationDriverData(xe),!0,!0,!0,this.cacheRefreshTime),this.targetAchievementEventStream=new u.TE(()=>this.fetchIsCRDSupported(),!0,!0,!0,this.cacheRefreshTime),this.initServiceWorkerNotifications()}getDriverInformation(be,Q,ne){const Ge=this.driverCacheKey(be,Q.toString());return this.setParentSpan(Ge,O.I.GfwslDriverReleaseHighlight,ne),this.driverContentEventStream.get$(Ge).pipe((0,h.s)(1))}getInstallationDriverData(be,Q,ne){return this.isInstalledDriver(be,Q).pipe((0,f.ZZ)(Ge=>{const ge=Q.toString(),ot=this.driverCacheKey(ge,Ge?l.Hr.Enabled:l.Hr.Disabled);return this.setParentSpan(ot,O.I.GfwslInstallationBillboardData,ne),this.installationDataEventStream.get$(ot)}),(0,h.s)(1))}getIsCRDSupported(be){return this.setParentSpan(null,O.I.GfwslGfeTargetAchievementData,be),this.targetAchievementEventStream.get$().pipe((0,A.n)(Q=>{const ne=Q?.Achievements;if(ne){const Ge=ne.find(ge=>ge.ID===m.ed);if(Ge){const ge="true"===Ge?.overallState;return this.logger.info("CRD feature state ",ge),(0,r.of)(ge)}return(0,n.$)("CRD id not found in Achievements")}return(0,n.$)("Invalid response for GFWSL targetGfeAchievements")}),(0,M.W)(Q=>(this.logger.error("getIsCRDSupported failed with the response",Q),(0,r.of)(!1))))}isInstalledDriver(be,Q){return this.hardwareService.getGenericInfo(!1).pipe((0,h.s)(1),(0,T.T)(ne=>ne.DriverVersion===be&&ne.DriverType===Q),(0,M.W)(ne=>(0,r.of)(!1)))}fetchDriverInstallInfo(){return this.hardwareService.getGenericInfo(!1).pipe((0,T.T)(be=>(this.driverInstallInfo={isDriverInstalled:!!be?.DriverVersion,isMinimumDriverInstalled:be?.DriverVersion>=be?.MinimumDriverVersion},this.driverInstallInfo)),(0,M.W)(be=>(this.logger.error("failed to fetch driver install info",be),(0,n.$)(be))))}getDriverInstallInfo(){return this.driverInstallInfo}getDriverDetails(be,Q,ne){let ge={version:be,name:Q===I.uj.CreatorReadyDriver?"drivers.fallbackGeforceCrdDriverName":"drivers.fallbackGeforceGrdDriverName",releaseDateTime:"",downloadURL:"",driverType:Q};return this.logger.info("fetch driver Information"),this.getDriverInformation(be,Q,ne).pipe((0,h.s)(1),(0,T.T)(Xe=>{this.logger.info("driver Information response :",Xe);const ot=this.driverContentService.processDriverContentDetails(Xe);return ge={...ge,name:Xe?.DriverAttributes?.Name,releaseDateTime:Xe?.DriverAttributes?.ReleaseDateTime,downloadURL:Xe?.DriverAttributes?.DownloadURL,content:ot},ge}),(0,M.W)(Xe=>(this.logger.error("getDriverDetails failed with Error :",Xe),(0,r.of)({...ge,isFallbackResponse:!0}))))}fetchEditorPreviewState(){return this.bridgeService.executeCommand(S.Ts.Nvapp.Driverupdaterecommendation.GetGRDEditorPreviewMode).pipe((0,T.T)(be=>be?.isEnabled??!1),(0,M.W)(be=>(0,r.of)(!1)))}fetchIsCRDSupported(){const be=this.getParentSpan(null,O.I.GfwslGfeTargetAchievementData);return this.driverGfwslService.getIsCRDSupported(be)}fetchDriverInformation(be){const[Q,ne]=this.driverDetailsFromCacheKey(be),Ge=+ne,ge=this.getParentSpan(be,O.I.GfwslDriverReleaseHighlight),Xe=this.fetchEditorPreviewState(),ot=this.isInstalledDriver(Q,Ge);return(0,v.zV)([Xe,ot]).pipe((0,A.n)(([dt,xe])=>this.driverGfwslService.getDriverInformation(Q,Ge,xe,dt,ge)))}fetchInstallationDriverData(be){const[Q,ne]=this.driverDetailsFromCacheKey(be),Ge=this.getParentSpan(be,O.I.GfwslInstallationBillboardData);return this.driverGfwslService.getInstallationDriverData(+Q,!!+ne,Ge)}driverCacheKey(...be){const Q=this.localeService.getLocale().replace("_","-");return be.push(Q),be.join(R.Ft)}driverDetailsFromCacheKey(be){const Q=be?.split(R.Ft);return Q.length>1?Q:[]}ensureParentSpanEntryExists(be,Q){!this.parentSpanCache.has(be)&&Q&&this.parentSpanCache.set(be,Q)}setParentSpan(be,Q,ne){this.ensureParentSpanEntryExists((be??"")+R.Ft+Q,ne)}getParentSpan(be,Q){return this.parentSpanCache.get((be??"")+R.Ft+Q)}initServiceWorkerNotifications(){this.logger.info("Initializing Service Worker Update Notifications");const be=s.th.staleWhileRevalidate?.gfwslDriverContent,Q=s.th.staleWhileRevalidate?.gfwslInstaller,ne=s.th.staleWhileRevalidate?.gfwslProfile,Ge=[be?.cacheName,Q?.cacheName,ne?.cacheName];this.serviceWorkerSubscription=this.serviceWorkerService.swCacheUpdated.pipe((0,E.p)(ge=>Ge.includes(ge.name)&&ge.data)).subscribe(ge=>{let Xe=null;switch(this.logger.info("Received SW notification",ge),ge.name){case be?.cacheName:this.logger.info("Received updated data SW notification for Driver content",ge.data),Xe=this.getCacheKeyFromGfwslParams(ge.url,be?.routePattern,["GFPV","upCRD"]),this.updateStreamData(ge,this.driverContentEventStream,Xe);break;case Q?.cacheName:this.logger.info("Received updated data SW notification for Installer Billboards",ge.data),Xe=this.getCacheKeyFromGfwslParams(ge.url,Q?.routePattern,["upCRD","isInst"]),this.updateStreamData(ge,this.installationDataEventStream,Xe);break;case ne?.cacheName:this.logger.info("Received updated data SW notification for targetGFEAchievement",ge.data),ge={...ge,data:ge?.data?.html?.body},this.updateStreamData(ge,this.targetAchievementEventStream)}})}updateStreamData(be,Q,ne){const Ge=be.data;let ge=!1;if(ne){const Xe=Q,ot=Xe.getData(ne);!(0,y.isEqual)(Ge,ot)&&Ge?Xe.setData(ne,Ge,!0):ge=!0}else{const Xe=Q,ot=Xe.getData();!(0,y.isEqual)(Ge,ot)&&Ge?Xe.setData(Ge,!0):ge=!0}ge&&this.logger.info("Received data is same as previously fetched data")}getCacheKeyFromGfwslParams(be,Q,ne){const Ge=decodeURI(be)?.split(Q)?.join("");if(ne.every(ge=>Ge.includes(ge))){const ge=JSON.parse(Ge),Xe=Object.values((0,y.pick)(ge,ne));return this.driverCacheKey(...Xe)}return""}ngOnDestroy(){this.serviceWorkerSubscription?.unsubscribe()}}return(X=ue).\u0275fac=function(be){return new(be||X)(Y.KVO(te),Y.KVO(fe.SQ),Y.KVO(s.lS),Y.KVO(fe.NZ),Y.KVO(ce.Vk),Y.KVO(H.p),Y.KVO(fe.iH),Y.KVO(fe.J6))},X.\u0275prov=Y.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),ue})()},48334:(je,z,c)=>{"use strict";c.d(z,{T:()=>j});var r=c(75707),n=c(83915),v=c(14714),h=c(72147),f=c(65706),A=c(91384),M=c(26875),E=c(72053),y=c(94645),S=c(26513),l=c(43848),s=c(31315),u=c(53698),m=c(58527),I=c(3816),R=c(25872),O=c(72482),Y=c(47847);let j=(()=>{var fe;class te{constructor(H,Z,X,ue,Me,be){this.loggingService=H,this.hardwareService=Z,this.dbService=X,this.cloudHelperService=ue,this.driverInfoService=Me,this.appConfig=be,this.previouslyInstalledDrivers$=new S.t(null),this.isPreviouslyInstalledDriverUpdateInProgress=!1,this.logger=this.loggingService.getLogger("nvapp/DriverInstallHistoryService"),this.globalStore=this.dbService.getGlobalStore(y.xI.GlobalStore)}initializePreviouslyInstalledDrivers(){return this.fetchPreviouslyInstalledDriverFromDB().pipe((0,r.ZZ)(H=>this.getPreviouslyInstalledDriversDetails(H)),(0,r.ZZ)(({mergedDriverInfo:H,isPurged:Z})=>{if(Z){const X=this.mapDriversToDBFormat(H);return this.saveDriverInfoInDB(X).pipe((0,n.T)(()=>(this.logger.info("Successfully saved the Purged list of previously installed driver info in the DB"),this.setDriverDetails(H),this.previouslyInstalledDrivers)))}return this.setDriverDetails(H),(0,l.of)(this.previouslyInstalledDrivers)}),(0,v.W)(H=>(this.previouslyInstalledDrivers$.next(this.previouslyInstalledDrivers),this.logger.error("Some issue while setting previously installed driver info ",H),(0,l.of)(this.previouslyInstalledDrivers))))}handlePostInstallation(H){this.getMaxDriverDisplayCount().pipe((0,h.n)(Z=>{this.addDriverToHistory(H),this.previouslyInstalledDrivers.length>Z+1&&(this.previouslyInstalledDrivers=this.getTopDriversByReleaseDate(this.previouslyInstalledDrivers,Z+1)),this.previouslyInstalledDrivers$.next(this.previouslyInstalledDrivers);const X=this.mapDriversToDBFormat(this.previouslyInstalledDrivers);return this.saveDriverInfoInDB(X)}),(0,f.s)(1)).subscribe(Z=>{this.initializePreviouslyInstalledDrivers(),this.logger.info("Successfully saved the previously installed driver info in the DB ",Z)},Z=>{this.logger.error("Error while saving the previously installed driver info in the DB ",Z)})}getMaxDriverDisplayCount(){return this.hardwareService.getQuadroSystemFlag().pipe((0,f.s)(1),(0,n.T)(H=>{const Z=this.appConfig.previouslyInstalledDriversConfig?.maxDisplayCount,X=Z?.quadro,ue=Z?.default;return H?X:ue}))}isPreviouslyInstalledDriverFeatureEnabled(){return this.cloudHelperService.getFeatureToggles().pipe((0,n.T)(H=>void 0!==H.previouslyInstalledDrivers?H.previouslyInstalledDrivers:this.appConfig.featureEnablement?.previouslyInstalledDrivers?.enabled))}getTopDriversByReleaseDate(H,Z){const X=H?.sort((ue,Me)=>new Date(Me[E.hN]).getTime()-new Date(ue[E.hN]).getTime());return Z&&X&&(H=X.slice(0,Z)),H}getPreviouslyInstalledDriversInfo(){return this.previouslyInstalledDrivers$.asObservable()}setPreviouslyInstalledDriversInfo(H){this.previouslyInstalledDrivers$.next(H),this.previouslyInstalledDrivers=H}setPreviouslyInstalledDriverState(H){this.isPreviouslyInstalledDriverUpdateInProgress=H}getPreviouslyInstalledDriverState(){return this.isPreviouslyInstalledDriverUpdateInProgress}getPreviouslyInstalledDriversDetails(H){const Z={};return H&&H.length>0?(this.previouslyInstalledDrivers=H,(0,s.zV)(H.map(X=>this.driverInfoService.getDriverDetails(X.version,X.driverType).pipe((0,n.T)(ue=>(!ue.isFallbackResponse&&!ue.downloadURL&&(Z[X.version]=X.driverType),this.getMergedDriverInfo(ue)))))).pipe((0,r.ZZ)(X=>{if((0,M.isEmpty)(Z))return(0,l.of)({mergedDriverInfo:X,isPurged:!1});{this.logger.info("purgeDrivers: ",Z);const ue=X.filter(Me=>Z[Me.version]!==Me.driverType);return this.logger.info("filteredMergedDriverInfo: ",ue),(0,l.of)({mergedDriverInfo:ue,isPurged:!0})}}))):(0,l.of)({mergedDriverInfo:[],isPurged:!1})}setDriverDetails(H){this.previouslyInstalledDrivers$.next(H),this.previouslyInstalledDrivers=H}addDriverToHistory(H){this.previouslyInstalledDrivers.some(X=>X.driverType===H.driverType&&X.version==H.version)?this.logger.info("Cannot add driver to Driver history list. Driver entry already present in the List."):(this.logger.info("Adding driver to the history list."),this.previouslyInstalledDrivers?.push(H))}mapDriversToDBFormat(H){return H?.map(({name:Z,version:X,releaseDateTime:ue,downloadURL:Me,driverType:be})=>({name:Z,version:X,releaseDateTime:ue,downloadURL:Me,driverType:be}))}saveDriverInfoInDB(H){return this.globalStore.setItem(y.QC.previouslyInstalledDrivers,H).pipe((0,A.M)(Z=>this.isCachedDBDriverData=!1))}getMergedDriverInfo(H){return{...H,downloadProgressStatus:{downloadStatus:u.hF.Undefined}}}fetchPreviouslyInstalledDriverFromDB(){return this.isCachedDBDriverData?(0,l.of)(this.previouslyInstalledDrivers):this.globalStore.getItem(y.QC.previouslyInstalledDrivers).pipe((0,A.M)(H=>this.isCachedDBDriverData=!0))}}return(fe=te).\u0275fac=function(H){return new(H||fe)(m.KVO(I.J6),m.KVO(I.SQ),m.KVO(I.at),m.KVO(R.r),m.KVO(O.u),m.KVO(Y.Vk))},fe.\u0275prov=m.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"}),te})()},82102:(je,z,c)=>{"use strict";c.d(z,{f:()=>Ue});var r=c(26513),n=c(80583),v=c(43848),h=c(59859),f=c(31315),A=c(12532),M=c(36466),T=c(35146),E=c(3496),y=c(8619),S=c(65706),l=c(72147),s=c(83915),u=c(14714),m=c(8282),I=c(91384),R=c(75707),O=c(43615),Y=c(62931),j=c(26875),fe=c(74931),te=c(52117),ce=c(53698),H=c(5498),Z=c(2216),X=c(1242),ue=c(58431),Me=c(58527),be=c(3816),Q=c(86088),ne=c(4760),Ge=c(72482),ge=c(79027),Xe=c(96306),ot=c(47847);let dt=(()=>{var ee;class W{constructor(le,oe,Le,Oe,ye){this.errorHandlerService=le,this.windowService=oe,this.bytesPipe=Le,this.loggingService=Oe,this.appConfig=ye,this.logger=this.loggingService.getLogger("nvapp/DriverErrorService")}handleDownloadError(le){const{downloadStatus:oe,downloadedLocation:Le,totalBytes:Oe}=le??{},ye={text:"common.close"};let Ie="",at="",K=null;switch(oe){case ce.hF.NetworkErrorRetryPaused:this.showToastMessage("drivers.downloadPausedUnableToReachNvidia");break;case ce.hF.ChecksumVerificationFailed:case ce.hF.SignatureVerificationFailed:this.showToastMessage("drivers.driverDownloadFailed");break;case ce.hF.Error:this.showToastMessage("drivers.unableToConnectToNvidia");break;case ce.hF.DiskWriteFail:at="drivers.downloadDiskSpace",K={value:this.bytesPipe.transform(Oe),drive:Le?.split(":")?.[0]?.toUpperCase()??""},Ie="drivers.driverDownloadFailed";const pe={headerText:this.getHigText(Ie),bodyText:this.getHigText(at,K),primaryButton:ye};this.errorHandlerService.showErrorDialog(pe);break;case ce.hF.Prohibited:this.logger.info("driver Prohibited"),at="drivers.downloadProhibited",Ie="drivers.driverDownloadFailed";const Qe={text:"drivers.getLatestDriverLink",linkClickedCallback:this.errorDialogExternalLink.bind(this,this.appConfig?.driver?.driverDownloadPage)},zt={headerText:this.getHigText(Ie),bodyText:this.getHigText(at),link:Qe,primaryButton:ye};this.errorHandlerService.showErrorDialog(zt)}}handlePostProcessErrors(le){const{postProcessingStatus:oe,actions:Le}=le??{},{FailedRetryPending:Oe,Failed:ye}=ce.sb,Ie=Le?.[0],at={text:"common.close"};let ve="";if(oe===ce.Mo.Failed&&[Oe,ye].includes(Ie.actionStatus)){switch(+Ie?.output){case ue.yX.NvExtractionFatal:ve="drivers.extractionErrorNotEnoughSpace";break;case ue.yX.NvExtractionCommandLine:ve="drivers.extractionError";break;case ue.yX.NvExtractionMemory:ve="drivers.insufficientMemory";break;default:ve="drivers.extractionError"}const pe={headerText:this.getHigText("drivers.anErrorOccurred"),bodyText:this.getHigText(ve),primaryButton:at};this.errorHandlerService.showErrorDialog(pe)}}showToastMessage(le,oe,Le){const Oe=this.getHigText(le,oe,Le);this.errorHandlerService.showToastMessage(Oe).subscribe()}getHigText(le,oe,Le){return{text:le,placeholders:oe,translated:!!(0,j.isEmpty)(oe)&&!!Le}}errorDialogExternalLink(le){this.windowService.window.open(le,"_blank")}}return(ee=W).\u0275fac=function(le){return new(le||ee)(Me.KVO(Xe.c),Me.KVO(be.s7),Me.KVO(be.cr),Me.KVO(be.J6),Me.KVO(ot.Vk))},ee.\u0275prov=Me.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"}),W})();var xe=c(48334),Re=c(99929);let Ue=(()=>{var ee;class W{constructor(le,oe,Le,Oe,ye,Ie,at,K,ve,De,pe,Qe,zt){this.bridgeService=le,this.nvAppBridgeService=oe,this.loggingService=Le,this.downloaderService=Oe,this.hardwareService=ye,this.driverInformationService=Ie,this.distributedTracingUtilService=at,this.downloadProgressPipe=K,this.telemetryUtilsService=ve,this.driverErrorService=De,this.windowService=pe,this.driverInstallHistoryService=Qe,this.driverContentService=zt,this.recommendedDriver=null,this.previouslyInstalledDrivers=[],this.updateCheckProgressStatus$=new r.t(Z.hs.finished),this.recommendedDriver$=new r.t(null),this.availableDriverRecommendation$=new r.t(null),this.installedDriver$=new r.t(null),this.previouslyInstalledDriverInfo$=new r.t(null),this.installationDone$=new n.B7,this.disableDownloadButton$=new r.t(!1),this.disableReinstallButton$=new r.t(!1),this.disableUpdateCheck$=new r.t(!0),this.driverTypePreference$=new r.t(void 0),this.updateStrategyPreference$=new r.t(void 0),this.manualCheckForUpdate=!1,this.fetchOnlyDriverRecommendation=!0,this.isDriverTypeChanged=!1,this.reinstallButtonClicked=!1,this.logger=this.loggingService.getLogger("nvapp/DriverUpdatesService")}initialize(){this.logger.info("Initialize"),this.registerDriverUpdateCheckProgressNotification(),this.fetchRecommendedDriverOnLoad(),this.driverInstallHistoryService.isPreviouslyInstalledDriverFeatureEnabled().pipe((0,y.p)(le=>le),(0,S.s)(1),(0,l.n)(le=>this.driverInstallHistoryService.getPreviouslyInstalledDriversInfo())).subscribe(le=>{this.previouslyInstalledDrivers=le})}initializeListenersForDrivers(){this.listenForDownloadNotification(),this.listenForPostProcessingNotification(),this.refreshDriverInfo()}getRecommendedDriver(){return this.recommendedDriver$.asObservable()}getPreviouslyInstalledDriverInfo(){return this.previouslyInstalledDriverInfo$.asObservable()}getAvailableDriverRecommendation(){return this.availableDriverRecommendation$.asObservable()}getInstalledDriver(){return this.installedDriver$.asObservable()}getInstallationDone(){return this.installationDone$.asObservable()}getDisableDownloadButtonCheck(){return this.disableDownloadButton$.asObservable()}getDisableReinstallButtonCheck(){return this.disableReinstallButton$.asObservable()}getDisableUpdateCheck(){return this.disableUpdateCheck$.asObservable()}updateDisableUpdateCheck(){this.disableUpdateCheck$.next(this.isCheckForUpdatePossible())}getUpdateCheckProgressStatus(){return this.updateCheckProgressStatus$.asObservable()}getDownloadingProgressStateArray(){return[ce.dJ.DownloadStarted,ce.dJ.DownloadStatusPaused,ce.dJ.DownloadTriggered]}getDriverTypePreference(){return this.driverTypePreference$.asObservable()}getUpdateStrategyPreference(){return this.updateStrategyPreference$.asObservable()}getIsDriverTypeChanged(){return this.isDriverTypeChanged}getDriverInstallInfo(){return this.driverInformationService.getDriverInstallInfo()}sendInstallationDoneNotification(){this.installationDone$.next()}setReinstallButtonClicked(le,oe){this.reinstallButtonClicked=this.downloadProgressPipe.transform(le)!==ce.dJ.DownloadStatusPending&&oe!==ce.Mo.Completed}getReinstallButtonClicked(){return this.reinstallButtonClicked}updateDriver(le,oe){const Le=!!le,Oe=le??oe;let K,ye=!1,Ie=!1,at=!1;if(Le){const{version:ve,downloadUrl:De}=Oe;ye=this.installedDriver?.version===ve&&this.installedDriver?.downloadURL===De,Ie=this.recommendedDriver?.version===ve&&this.recommendedDriver?.downloadURL===De,K=this.previouslyInstalledDrivers?.filter(pe=>pe.version===ve&&pe.downloadURL===De)[0]}else{const ve=this.installedDriver?.downloadProgressStatus?.taskId,De=this.recommendedDriver?.downloadProgressStatus?.taskId;K=this.previouslyInstalledDrivers?.filter(pe=>pe.downloadProgressStatus?.taskId===Oe.taskId)[0],ye=ve===Oe?.taskId,Ie=De===Oe?.taskId}if(at=!!K,Ie&&at){const ve=this.driverInstallHistoryService.getPreviouslyInstalledDriverState();(le?.downloadStatus===ce.hF.Finished||oe?.postProcessingStatus===ce.Mo.Completed)&&(ve?(this.recommendedDriver={...this.recommendedDriver,...Le?{downloadProgressStatus:le}:{postProcessingStatusInfo:oe}},this.recommendedDriver$.next(this.recommendedDriver)):this.updatePreviouslyInstalledDriverStatus(K,Le,le,oe)),at=ve}this.installedDriver&&ye?(this.logger.info(`Installed Driver ${Le?"downloadProgressStatus":"postProcessingStatusInfo"}:`,Oe),this.installedDriver={...this.installedDriver,...Le?{downloadProgressStatus:le}:{postProcessingStatusInfo:oe}},this.installedDriver$.next(this.installedDriver)):K&&at?(this.logger.info(`Previously installed Driver ${Le?"downloadProgressStatus":"postProcessingStatusInfo"}:`,Oe),this.updatePreviouslyInstalledDriverStatus(K,Le,le,oe)):this.recommendedDriver&&Ie&&(this.logger.info(`Recommended Driver ${Le?"downloadProgressStatus":"postProcessingStatusInfo"}:`,Oe),this.recommendedDriver={...this.recommendedDriver,...Le?{downloadProgressStatus:le}:{postProcessingStatusInfo:oe}},this.recommendedDriver$.next(this.recommendedDriver))}fetchDriverTypePreference(le){let oe=this.driverTypePreference$.getValue();if(void 0!==oe&&!le)return(0,v.of)(oe);const Le=fe.Ts.Nvapp.Driverupdaterecommendation.GetUserDriverTypePreference,Oe=Le.method,ye=Le.module;return this.bridgeService.executeCommand(Le).pipe((0,l.n)(Ie=>Ie?(0,v.of)(Ie):(0,h.$)("GetUserDriverTypePreference response is null")),(0,s.T)(Ie=>(this.logger.info("getUserDriverTypePreference response: ",Ie),oe=Ie?.driverType,this.driverTypePreference$.next(oe),this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:Oe,pluginName:ye,status:X.L1.Success}),oe)),(0,u.W)(Ie=>(this.logger.error("Failed to getUserDriverTypePreference with Error : ",Ie),this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:Oe,pluginName:ye,status:X.L1.Failure,errorMessage:JSON.stringify(Ie)}),(0,v.of)(null))),(0,m.u)())}fetchUpdateStrategyPreference(le){let oe=this.updateStrategyPreference$.getValue();if(void 0!==oe&&!le)return(0,v.of)(oe);const Le=fe.Ts.Nvapp.Driverupdaterecommendation.GetUpdateStrategyPreference,Oe=Le.method,ye=Le.module;return this.bridgeService.executeCommand(Le).pipe((0,l.n)(Ie=>Ie?(0,v.of)(Ie):(0,h.$)("fetchUpdateStrategyPreference response is null")),(0,s.T)(Ie=>(this.logger.info("fetchUpdateStrategyPreference response: ",Ie),oe=Ie?.updateStrategy,this.updateStrategyPreference$.next(oe),this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:Oe,pluginName:ye,status:X.L1.Success}),oe)),(0,u.W)(Ie=>(this.logger.error("Failed to getUserDriverTypePreference with Error : ",Ie),this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:Oe,pluginName:ye,status:X.L1.Failure,errorMessage:JSON.stringify(Ie)}),(0,v.of)(null))),(0,m.u)())}setDriverTypePreference(le){const oe=this.driverTypePreference$.getValue();this.driverTypePreference$.next(le);const Le=fe.Ts.Nvapp.Driverupdaterecommendation.SetUserDriverTypePreference,Oe=Le.method,ye=Le.module;return this.bridgeService.executeCommand(Le,{driverType:le}).pipe((0,I.M)(Ie=>{this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:Oe,pluginName:ye,status:X.L1.Success,params:le.toString()})}),(0,u.W)(Ie=>(this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:Oe,pluginName:ye,errorMessage:Ie&&Ie.message?Ie.message:"Error while setting driver type preference",status:X.L1.Failure,params:le.toString()}),this.driverTypePreference$.next(oe),(0,h.$)(Ie))))}setUpdateStrategyPreference(le){const oe=this.updateStrategyPreference$.getValue();return this.updateStrategyPreference$.next(le),this.nvAppBridgeService.executeWithPluginStatusTelemetry(fe.Ts.Nvapp.Driverupdaterecommendation.SetUpdateStrategyPreference,{updateStrategy:le},{params:le.toString()},!0,!1,"Error while setting update strategy preference").pipe((0,u.W)(Oe=>(this.updateStrategyPreference$.next(oe),(0,h.$)(Oe))))}validateEnumValue(le,oe,Le){return Object.values(le)?.includes(oe)?oe:Le}updateDriverTypePreference(le){this.updateDriverTypePreferenceDriverType(Z.O6.find(oe=>oe.id===le))}updateDriverTypePreferenceDriverType(le){const oe=this.validateEnumValue(Z.uj,le.id,Z.uj.GameReadyDriver),Le=this.validateEnumValue(Z.eS,le.id,Z.eS.WsRecommendedDriver);this.driverCheckForUpdateEvent(Z.hs.started),this.disableDownloadAndReinstall(),this.isDriverTypeChanged=!0,(0,f.zV)([this.setUpdateStrategyPreference(Le),this.setDriverTypePreference(oe)]).pipe((0,S.s)(1)).subscribe(Oe=>{this.triggerDriverCheckForUpdate(!1),this.logger.info("successfully set UserDriverTypePreference with response",Oe),this.telemetryUtilsService.sendSettingChangeEvent(X.iZ,this.getDownloaderCandidate(oe),null,!0),this.telemetryUtilsService.sendSettingChangeEvent(X.iZ,this.getUpdateStrategyTag(Le),null,!0)},Oe=>{this.logger.error("setUserDriverTypePreference failed with Error: ",Oe),this.driverCheckForUpdateEvent(Z.hs.failed),this.disableDownloadAndReinstall(),this.driverErrorService.showToastMessage("drivers.unableToConnectToNvidia"),this.telemetryUtilsService.sendSettingChangeEvent(X.iZ,le.toString(),null,!0,Oe?.message??"failed to set user driver type preference")})}fetchInstalledDriver(){this.logger.info("Fetch installedDriverDetails");const le=this.distributedTracingUtilService.startSpan(H.I.InstalledDriverDetails);return this.hardwareService.getGenericInfo(!1).pipe((0,S.s)(1),(0,l.n)(oe=>(0,j.isEmpty)(oe.DriverVersion)?(0,h.$)("getGenericInfo returned empty installed driver version"):this.driverInformationService.getDriverDetails(oe.DriverVersion,oe.DriverType,le)),(0,l.n)(oe=>(this.installedDriver=oe,this.installedDriver$?.next(this.installedDriver),this.getDownloadStatus(this.installedDriver))),(0,l.n)(oe=>(this.setReinstallButtonClicked(oe?.downloadStatus,null),this.getPostProcessingStatus(oe,this.installedDriver))),(0,s.T)(()=>{this.setReinstallButtonClicked(this.installedDriver?.downloadProgressStatus?.downloadStatus,this.installedDriver?.postProcessingStatusInfo?.postProcessingStatus),this.installedDriver$?.next(this.installedDriver),this.distributedTracingUtilService.setSpanAttribute(le,te.NS.Error,!1),this.distributedTracingUtilService.closeSpan(le)}),(0,u.W)(oe=>(this.logger.error("Failed to getInstalledDriverDetails with Error :",oe),this.distributedTracingUtilService.setSpanAttribute(le,te.NS.Error,!0),this.distributedTracingUtilService.closeSpan(le),this.installedDriver$.next(this.installedDriver),(0,v.of)(null))),(0,m.u)())}fetchPreviouslyInstalledDriver(){return this.driverInstallHistoryService.isPreviouslyInstalledDriverFeatureEnabled().pipe((0,l.n)(le=>{if(le){const oe=this.distributedTracingUtilService.startSpan(H.I.PreviouslyInstalledDriverDetails);return this.driverInstallHistoryService.getPreviouslyInstalledDriversInfo().pipe((0,y.p)(Le=>null!==Le),(0,S.s)(1),(0,R.ZZ)(Le=>this.setDownloadAndProcessingStatus(Le)),(0,s.T)(Le=>{this.driverInstallHistoryService.setPreviouslyInstalledDriversInfo(Le),this.distributedTracingUtilService.setSpanAttribute(oe,te.NS.Error,!1),this.distributedTracingUtilService.closeSpan(oe)}),(0,u.W)(Le=>(this.logger.error("Failed to getPreviouslyInstalledDriverDetails with Error :",Le),this.distributedTracingUtilService.setSpanAttribute(oe,te.NS.Error,!0),this.distributedTracingUtilService.closeSpan(oe),(0,v.of)(null))),(0,m.u)())}return(0,v.of)(void 0)}),(0,S.s)(1))}setDownloadAndProcessingStatus(le){return le.length>0?(0,f.zV)(le.map(oe=>this.getDownloadStatus(oe).pipe((0,S.s)(1),(0,R.ZZ)(Le=>this.getPostProcessingStatus(Le,oe)),(0,R.ZZ)(Le=>(this.setReinstallButtonClicked(oe?.downloadProgressStatus?.downloadStatus,oe?.postProcessingStatusInfo?.postProcessingStatus),(0,v.of)(oe))),(0,u.W)(Le=>(this.logger.error("Error in driver processing",Le),(0,v.of)(null)))))):(0,v.of)([])}refreshDriversOnInstallation(){this.reinstallButtonClicked=!1,this.sendInstallationDoneNotification(),(0,f.zV)([this.hardwareService.getGenericInfo(!0),this.hardwareService.getGpuInfo(!0)]).pipe((0,S.s)(1)).subscribe(()=>{this.logger.info("hardware info refresh successfully after driver installation finish")},le=>{this.logger.error("failed to refresh generic info or GPU info on driver installation",le)})}disableDownloadAndReinstall(){const le=this.updateCheckProgressStatus$.getValue()===Z.hs.started,oe=this.downloadProgressPipe.transform(this.installedDriver?.downloadProgressStatus?.downloadStatus),Le=this.downloadProgressPipe.transform(this.recommendedDriver?.downloadProgressStatus?.downloadStatus),Oe=this.getDownloadingProgressStateArray(),ye=Oe.includes(oe),Ie=Oe.includes(Le);this.disableDownloadButton$.next(ye||le),this.disableReinstallButton$.next(Ie||le)}fetchRecommendedDriver(le=!1){this.logger.info("fetch recommended driver details");const oe=this.distributedTracingUtilService.startSpan(H.I.RecommendedDriverDetails);return this.getDriverUpdateRecommendation(le).pipe((0,l.n)(Le=>(this.recommendedDriver=Le,Le?this.driverInformationService.getDriverInformation(this.recommendedDriver.version,this.recommendedDriver?.driverType,oe).pipe((0,S.s)(1),(0,u.W)(Oe=>(this.logger.error("failed to get driver information for recommended driver with error",Oe),(0,v.of)(null)))):(0,h.$)("No Driver Found"))),(0,l.n)(Le=>(this.recommendedDriver={...this.recommendedDriver,content:this.driverContentService.processDriverContentDetails(Le)},this.recommendedDriver$?.next(this.recommendedDriver),this.getDownloadStatus(this.recommendedDriver))),(0,l.n)(Le=>this.getPostProcessingStatus(Le,this.recommendedDriver)),(0,s.T)(()=>{this.recommendedDriver$?.next(this.recommendedDriver),this.distributedTracingUtilService.setSpanAttribute(oe,te.NS.Error,!1),this.distributedTracingUtilService.closeSpan(oe)}),(0,u.W)(Le=>(this.logger.error("Failed to getRecommendedDriverDetails with Error  :",Le),this.distributedTracingUtilService.setSpanAttribute(oe,te.NS.Error,!0),this.distributedTracingUtilService.closeSpan(oe),this.recommendedDriver$.next(this.recommendedDriver),(0,v.of)(null))),(0,O.j)(()=>{this.disableDownloadAndReinstall(),this.updateDisableUpdateCheck()}),(0,m.u)())}isCheckForUpdatePossible(){const le=this.recommendedDriver?.downloadProgressStatus?.downloadStatus,{Paused:oe,Downloading:Le,NetworkErrorRetrying:Oe}=ce.hF;return![oe,Le,Oe].includes(le)}triggerDriverCheckForUpdate(le){(!le||this.isCheckForUpdatePossible())&&(this.manualCheckForUpdate=le,this.logger.info("driver update scan starting.."),this.bridgeService.executeCommand(fe.Ts.Nvapp.Driverupdaterecommendation.StartDriverUpdateCheck).subscribe(oe=>{this.logger.info("check for driver update started with response",oe)},oe=>{this.logger.error("driver update scan failed with Error :",oe)}))}getDownloaderCandidate(le){return le===Z.uj.GameReadyDriver?ce.ZX.GRD:ce.ZX.CRD}getUpdateStrategyTag(le){return{[Z.eS.WsRecommendedDriver]:Z.ZN.WRD,[Z.eS.WsLeadingEdgeDriver]:Z.ZN.WLD,[Z.eS.WsConservativeDriver]:Z.ZN.WCD}[le]}getInstallationDriverData(le,oe){return this.driverInformationService.getInstallationDriverData(le,oe).pipe((0,s.T)(Le=>Le?.html?.head?.response?.url))}getIsCRDSupported(le){return this.driverInformationService.getIsCRDSupported(le)}updateDriverOnGenericInfoUpdate(){this.updateDriverOnGenericInfoUpdateSubscription&&this.updateDriverOnGenericInfoUpdateSubscription.unsubscribe(),this.updateDriverOnGenericInfoUpdateSubscription=this.hardwareService.getGenericInfo(!1).pipe((0,l.n)(le=>{const oe=this.installedDriver?.driverType!==le?.DriverType;return this.installedDriver&&(le?.DriverVersion!==this.installedDriver?.version||oe)||!this.installedDriver&&le?.DriverVersion?(this.logger.info("update driver on generic info update"),this.fetchDriversData(!this.installedDriver||oe,!0)):A.w})).subscribe(M.l,le=>{this.logger.error("failed to update driver on generic info update",le)})}fetchDriversData(le,oe){return this.fetchOnlyDriverRecommendation?(0,T.yU)(this.fetchDriverTypePreference(oe),this.getDriverUpdateRecommendation(oe)):(0,T.yU)(this.fetchDriverTypePreference(oe),this.fetchInstalledDriver(),this.fetchPreviouslyInstalledDriver(),this.fetchLatestDrvrOrTriggerCheckForUpdate(le,oe))}refreshDriverInfo(){this.unsubscribeRefreshDriverInfoSubscription(),this.refreshDriverInfoSubs=this.windowService.getFocusEvent().pipe((0,Y.B)(ue._2),(0,l.n)(()=>(0,f.zV)([this.fetchInstalledDriverInfo(),this.fetchRecommendedDriverInfo(),this.fetchPreviouslyInstalledDriverInfo(),this.getIsCRDSupported()]).pipe((0,S.s)(1)))).subscribe()}unsubscribeRefreshDriverInfoSubscription(){this.refreshDriverInfoSubs?.unsubscribe()}getDriverHeaderText(le){return le?"drivers.driverUpdateAvailable":"drivers.driverUpToDate"}fetchRecommendedDriverOnLoad(){(0,E.O)(0).pipe((0,l.n)(()=>this.getDriverUpdateRecommendation(!0)),(0,O.j)(()=>{this.triggerDriverCheckForUpdate()}),(0,S.s)(1)).subscribe(le=>{this.logger.info("fetched driver update information on the app load",le)},le=>{this.logger.error("failed to fetch driver update information on the app load",le)})}fetchLatestDrvrOrTriggerCheckForUpdate(le,oe){return le?(0,v.of)(this.triggerDriverCheckForUpdate()):this.fetchRecommendedDriver(oe)}fetchRecommendedDriverInfo(){return this.getRecommendedDriver().pipe((0,S.s)(1),(0,y.p)(le=>!(0,j.isEmpty)(le)),(0,l.n)(le=>this.driverInformationService.getDriverInformation(le?.version,le?.driverType)),(0,y.p)(le=>!!le),(0,I.M)(le=>{const oe=this.driverContentService.processDriverContentDetails(le);(0,j.isEqual)(this.recommendedDriver?.content,oe)||(this.recommendedDriver={...this.recommendedDriver,content:oe},this.recommendedDriver$.next(this.recommendedDriver))}),(0,u.W)(le=>(this.logger.error("failed to refresh recommended driver info with error:",le),(0,v.of)(null))))}fetchInstalledDriverInfo(){return this.getInstalledDriver().pipe((0,S.s)(1),(0,y.p)(le=>!(0,j.isEmpty)(le)),(0,l.n)(le=>this.driverInformationService.getDriverInformation(le.version,le.driverType)),(0,y.p)(le=>!!le),(0,I.M)(le=>{const oe=this.driverContentService.processDriverContentDetails(le);(0,j.isEqual)(this.installedDriver?.content,oe)||(this.installedDriver={...this.installedDriver,content:oe},this.installedDriver$.next(this.installedDriver))}),(0,u.W)(le=>(this.logger.error("failed to refresh installed driver info with error:",le),(0,v.of)(null))))}fetchPreviouslyInstalledDriverInfo(){return this.driverInstallHistoryService.isPreviouslyInstalledDriverFeatureEnabled().pipe((0,y.p)(le=>le),(0,S.s)(1),(0,l.n)(le=>this.driverInstallHistoryService.getPreviouslyInstalledDriversDetails(this.previouslyInstalledDrivers).pipe((0,S.s)(1),(0,I.M)(({mergedDriverInfo:oe})=>{let Le=!1;this.previouslyInstalledDrivers?.length>0&&(Le=!this.previouslyInstalledDrivers?.every(Oe=>oe?.some(ye=>ye.downloadURL===Oe.downloadURL&&ye.version===Oe.version&&ye.driverType===Oe.driverType&&(0,j.isEqual)(ye.content,Oe.content)))),Le&&this.driverInstallHistoryService.setPreviouslyInstalledDriversInfo(oe)}),(0,u.W)(oe=>(this.logger.error("failed to refresh previously installed driver info with error:",oe),(0,v.of)(null))))))}driverCheckForUpdateEvent(le){this.updateCheckProgressStatus$.next(le??Z.hs.failed)}getDownloadStatus(le){if((0,j.isEmpty)(le))return(0,h.$)("No Driver found");const{driverType:oe,version:Le,downloadURL:Oe}=le;return this.downloaderService.getDownloadStatus(this.getDownloaderCandidate(oe),Le??"",Oe??"").pipe((0,I.M)(ye=>{this.logger.info("downloadStatusResponse",ye),le.downloadProgressStatus=ye}))}getPostProcessingStatus(le,oe){return le.downloadStatus!==ce.hF.Finished?(0,v.of)(void 0):this.downloaderService.getPostProcessingStatus(this.getDownloaderCandidate(oe?.driverType),le.taskId).pipe((0,I.M)(Le=>{this.logger.info("PostProcessingStatus",Le),oe.postProcessingStatusInfo=Le}))}getDriverUpdateRecommendation(le=!1){return null===this.recommendedDriver||le?this.bridgeService.executeCommand(fe.Ts.Nvapp.Driverupdaterecommendation.GetDriverUpdateRecommendation).pipe((0,s.T)(oe=>oe?.result),(0,I.M)(oe=>{this.logger.info("recommended driver response",oe),this.recommendedDriver=oe,this.availableDriverRecommendation$.next(oe)})):(this.logger.info("Recommended driver returned with cached response",le),(0,v.of)(this.recommendedDriver))}updateFetchOnlyDriverUpdateRecommendation(le){this.fetchOnlyDriverRecommendation=le}registerDriverUpdateCheckProgressNotification(){this.bridgeService.executeCommand(fe.Ts.Nvapp.Driverupdaterecommendation.RegisterDriverUpdateCheckProgressNotifications).pipe((0,l.n)(le=>{this.logger.info("DriverUpdateCheckProgressNotification received with status :",le);const oe=le?.status;this.driverCheckForUpdateEvent(le?.status);const{started:Le,failed:Oe,finished:ye}=Z.hs,Ie=`Driver update scan ${oe}`;switch(this.disableDownloadAndReinstall(),oe){case Le:return this.logger.info(Ie),A.w;case Oe:return this.logger.error(Ie),this.manualCheckForUpdate&&(this.driverErrorService.showToastMessage("drivers.unableToReachNvidia"),this.manualCheckForUpdate=!1),this.fetchOnlyDriverRecommendation?this.getDriverUpdateRecommendation(!0):this.fetchRecommendedDriver(!0);case ye:return this.logger.info(Ie),this.manualCheckForUpdate=!1,this.fetchOnlyDriverRecommendation?this.getDriverUpdateRecommendation(!0):this.fetchRecommendedDriver(!0);default:return A.w}})).subscribe(M.l,le=>{this.logger.error("Failed to registerDriverUpdateCheckProgressNotification with Error :",le),this.driverCheckForUpdateEvent(Z.hs.failed)})}listenForDownloadNotification(){this.downloaderService.getDownloadProgressNotification().pipe((0,y.p)(le=>[ce.ZX.CRD,ce.ZX.GRD].includes(le?.downloadTypeInfo?.componentName)),(0,y.p)(le=>{const{downloadUrl:oe,version:Le}=le;return[this.installedDriver,this.recommendedDriver,...this.previouslyInstalledDrivers].some(Oe=>Oe?.downloadURL===oe&&Oe?.version===Le)})).subscribe(le=>{this.updateDriver(le,null),this.driverErrorService.handleDownloadError(le),le.downloadStatus===ce.hF.Finished&&(this.updateDisableUpdateCheck(),this.disableDownloadAndReinstall())},le=>{this.logger.error("Failed to getDriverDownloadProgressNotification with Error:",le)})}listenForPostProcessingNotification(){this.downloaderService.getPostProcessingProgressNotification().pipe((0,y.p)(le=>[this.installedDriver,this.recommendedDriver,...this.previouslyInstalledDrivers].some(oe=>oe?.downloadProgressStatus?.taskId===le?.taskId))).subscribe(le=>{this.updateDriver(null,le),this.driverErrorService.handlePostProcessErrors(le)},le=>{this.logger.error("Failed to listenForPostProcessingNotification with Error:",le)})}updatePreviouslyInstalledDriverStatus(le,oe,Le,Oe){le={...le,...oe?{downloadProgressStatus:Le}:{postProcessingStatusInfo:Oe}},this.previouslyInstalledDrivers=this.previouslyInstalledDrivers.map(ye=>ye.version===le.version&&ye.downloadURL===le.downloadURL?le:ye),this.driverInstallHistoryService.setPreviouslyInstalledDriversInfo(this.previouslyInstalledDrivers)}}return(ee=W).\u0275fac=function(le){return new(le||ee)(Me.KVO(be.NZ),Me.KVO(Q.S),Me.KVO(be.J6),Me.KVO(ne.z),Me.KVO(be.SQ),Me.KVO(Ge.u),Me.KVO(te.Z1),Me.KVO(ge.F),Me.KVO(X.AY),Me.KVO(dt),Me.KVO(be.s7),Me.KVO(xe.T),Me.KVO(Re.p))},ee.\u0275prov=Me.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"}),W})()},75919:(je,z,c)=>{"use strict";c.d(z,{IQ:()=>v,we:()=>n,zN:()=>r});const r="assets/img/fallback-app-icon.svg",n=50,v=1080},76062:(je,z,c)=>{"use strict";c.d(z,{I$:()=>h,Py:()=>n,h$:()=>v,rc:()=>f});var r=c(74931),n=r.Or.Nvapp.Appdiscovery.Status,v=r.Or.Nvapp.Appdiscovery.ExeLaunchStatusEnum,h=r.Or.Nvapp.Appdiscovery.ActionStatusEnum,f=r.Or.Nvapp.Appdiscovery.Action},35338:(je,z,c)=>{"use strict";c.d(z,{N:()=>X});var r=c(80583),n=c(12532),v=c(59859),h=c(91384),f=c(14714),A=c(4208),M=c(8619),T=c(72147),E=c(74931),y=c(53698),S=c(1242),l=c(76062),s=c(42578),u=c(58527),m=c(3816),I=c(4760),R=c(47847),O=c(79027),Y=c(26513),j=c(43848);class fe{constructor(){this.items=[]}enqueue(Me){this.items.push(Me)}dequeue(){return this.items.shift()}size(){return this.items.length}peek(){return this.items[0]}}let te=(()=>{var ue;class Me{constructor(Q){this.loggingService=Q,this.installationInProgressUpdated$=new Y.t(!1),this.logger=this.loggingService.getLogger("QueueService"),this.installationQueue=new fe}getInstallationQueue(){return this.installationQueue}getInstallationInProgressObservable(){return this.installationInProgressUpdated$.asObservable().pipe((0,M.p)(Q=>!this.getInstallationInProgressValue()),(0,T.n)(Q=>{const ne=this.getInstallationQueue().peek();return this.logger.info("App to be installed",ne?.componentName),(0,j.of)(ne)}),(0,M.p)(Q=>void 0!==Q))}getInstallationInProgressValue(){return this.installationInProgressUpdated$.getValue()}updateInstallationInProgressFlag(Q){this.logger.info("Updating installation progress flag",Q),this.installationInProgressUpdated$.next(Q)}}return(ue=Me).\u0275fac=function(Q){return new(Q||ue)(u.KVO(m.J6))},ue.\u0275prov=u.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"}),Me})();var ce=c(78812),H=c(96306),Z=c(86088);let X=(()=>{var ue;class Me{constructor(Q,ne,Ge,ge,Xe,ot,dt,xe,Re,Ue,ee){this.loggingService=Q,this.downloaderService=ne,this.appConfig=Ge,this.downloadProgressPipe=ge,this.queueService=Xe,this.telemetryService=ot,this.nvAppTelemetryUtilService=dt,this.windowService=xe,this.errorHandlerService=Re,this.nvAppBridgeService=Ue,this.bridgeService=ee,this.unsubscribe$=new r.B7,this.appDownloadProgress$=new r.B7,this.appActionProgress$=new r.B7,this.appActionFinished$=new r.B7,this.enqueued$=new r.B7,this.dequeued$=new r.B7,this.appToBeInstalled$=new r.B7,this.logger=this.loggingService.getLogger("nvapp/AppCardService"),this.appCardStatus=new Map,this.appDownloadFinishMap=new Map,this.appActionStatus=new Map,this.initAppToBeInstalledNotification()}initialize(Q){this.listenForDownloadNotification(Q),this.listenForAppToBeInstalledNotification(Q),this.listenForAppStatus(Q)}getIsDownloadStatusRequestTimeout(){return this.downloaderService.getIsDownloadStatusRequestTimedOut()}getAppDownloadProgress(){return this.appDownloadProgress$.asObservable()}getEnqueuedObservable(){return this.enqueued$.asObservable()}getDequeuedObservable(){return this.dequeued$.asObservable()}getListenerInitialized(){return this.isListenerInitialized}setListenerInitialized(){this.isListenerInitialized=!0}getAppActionObservable(){return this.appActionProgress$.asObservable()}getAppActionFinishedObservable(){return this.appActionFinished$.asObservable()}getTriggerScreen(){return this.triggerScreenName}createProfile(Q){let ne="";return ne=Q.checksum?.length>0?Q.checksum.filter(Xe=>Xe.type===s.y9.SHA512)?.length?s.y9.SHA512:s.y9.MD5:s.y9.NONE,this.logger.info(`checksumType for ${Q.componentName}`,ne),this.downloaderService.createProfile(Q.componentName,Q.sourceComponentName,ne,!0,Q.registryPath).pipe((0,h.M)(ge=>{ge?.createProfileStatus===y.ZQ.Failure||ge?.createProfileStatus===y.ZQ.FailureNoSourceProfile?this.logger.error(`Error while creating profile for ${Q.componentName} with ${Q.sourceComponentName}`):this.logger.info(`Profile Created succesfully for ${Q.componentName}`)}),(0,f.W)(ge=>(this.logger.error("Error while creating profile",ge),n.w)))}startDownload(Q){this.logger.info("Start Download for",Q.title),this.appDownloadFinishMap.set(Q.componentName,!1),this.downloaderService.startDownload(Q.version||this.appConfig.lcars.defaultVersion,Q.downloadUrl,{componentName:Q.componentName,updateChannel:y.nC.Official,updateType:y.Ur.Full,invokeType:y.TZ.Manual}).pipe((0,A.Q)(this.unsubscribe$)).subscribe(ge=>{this.logger.info(`App download for ${Q.title}`,ge),this.updateAppDownloadProgress(Q,ge)},ge=>{this.logger.error(`App download error for ${Q.title}`,ge)})}stopDownload(Q,ne){return this.logger.info("Stop Download for",Q.componentName),this.sendStartTelemetryEvent(S.nx.CancelDownload,Q),this.downloaderService.stopDownload(Q.componentName,ne).pipe((0,h.M)(()=>{this.sendEndTelemetryEvent(S.nx.CancelDownload,Q.componentName,Q.version,!0)},(0,f.W)(Ge=>(this.sendEndTelemetryEvent(S.nx.CancelDownload,Q.componentName,Q.version,!1,`Error while cancel download for uuid ${Q.id} and ${ne}`),n.w))))}getInstalledStatusForApps(Q){const ne=Q.map(Xe=>({name:Xe.componentName,registryPath:Xe.registryPath})),Ge={apps:ne};this.logger.info("get app statuses for ",ne);const ge="Error while receiving apps status";return this.nvAppBridgeService.executeWithPluginStatusTelemetry(E.Ts.Nvapp.Appdiscovery.GetAppsStatus,Ge,{},!0,!0,ge).pipe((0,h.M)(Xe=>{this.logger.info("Install statuses for apps",Xe)}),(0,f.W)(Xe=>(this.logger.error(ge,Xe),(0,v.$)(Xe))))}launchApp(Q){return this.logger.info("Launching app for ",Q.title),this.sendStartTelemetryEvent(S.nx.Launch,Q),this.nvAppBridgeService.executeCommandWithTimeout(E.Ts.Nvapp.Appdiscovery.LaunchApp,{name:Q.componentName,registryPath:Q.registryPath,exePath:Q.applicationPath}).pipe((0,h.M)(Ge=>{if(this.isExecutionFailure(Ge.launchStatus)){const ge=`Launch error for ${Q.id}`;this.logger.error(ge,Ge),this.showErrorMessage("layout.apps.openError",Q),this.sendEndTelemetryEvent(S.nx.Launch,Q.componentName,Q.version,!1,ge)}else this.logger.info(`Launch success for ${Q.title}`,Ge),this.sendEndTelemetryEvent(S.nx.Launch,Q.componentName,Q.version,!0)}),(0,f.W)(Ge=>{const ge=`App Launch failed for ${Q.id}`;return this.logger.error(ge,Ge),this.sendEndTelemetryEvent(S.nx.Launch,Q.componentName,Q.version,!1,ge),(0,v.$)(Ge)}))}removeApp(Q){this.logger.info("Remove App for ",Q.title),this.setAppActionStatus(Q.componentName,S.nx.Uninstall,Q.version),this.sendStartTelemetryEvent(S.nx.Uninstall,Q),this.bridgeService.executeCommand(E.Ts.Nvapp.Appdiscovery.UninstallApp,{name:Q.componentName,registryPath:Q.registryPath}).pipe((0,A.Q)(this.unsubscribe$)).subscribe(Ge=>{if(this.isExecutionFailure(Ge.executionStatus)){const ge=`Uninstallation error for ${Q.id}`;this.logger.error(ge,Ge),this.sendEndTelemetryEvent(S.nx.Uninstall,Q.componentName,Q.version,!1,ge)}else this.logger.info(`${Q.title} Uninstall finished`,Ge);this.appActionFinished$.next(Q),this.updateAppCardStatusFlags(Q,!1,!1,!1)},Ge=>{const ge=`Error occurred while removing app ${Q.id}`;this.logger.error(ge,Ge),this.showErrorMessage("layout.apps.removeError",Q),this.updateAppCardStatusFlags(Q,!1,!1,!1),this.sendEndTelemetryEvent(S.nx.Uninstall,Q.componentName,Q.version,!1,ge)})}isUpdateAvailable(Q,ne){const Ge=Q.split(/\./g),ge=ne.split(/\./g);for(;Ge.length||ge.length;){const Xe=Number(Ge.shift()),ot=Number(ge.shift());if(Xe!==ot)return Xe>ot}return!1}listenForDownloadNotification(Q){this.downloaderService.getDownloadProgressNotification().pipe((0,M.p)(ne=>![y.ZX.CRD,y.ZX.GRD].includes(ne?.downloadTypeInfo?.componentName)),(0,M.p)(ne=>ne&&ne.downloadTypeInfo.componentName===Q.componentName),(0,h.M)(ne=>{this.updateAppDownloadProgress(Q,ne)}),(0,M.p)(ne=>this.getDownloadProgressState(ne)===y.dJ.DownloadFinished),(0,A.Q)(this.unsubscribe$)).subscribe(ne=>{this.appDownloadFinishMap.get(Q.componentName)||(this.logger.info(`Download Finished for ${Q.title} with taskId ${ne?.taskId}`),this.appDownloadFinishMap.set(Q.componentName,!0),this.triggerScreenName!==S.f3.OOTB&&this.triggerInstallationProcess(Q,ne?.downloadedLocation,ne?.taskId))},ne=>{this.logger.error(`Error while listening download progress for ${Q.title}`,ne)})}listenForAppActionNotification(){this.logger.info("registering for app action notification"),this.bridgeService.executeCommand(E.Ts.Nvapp.Appdiscovery.AppActionNotification).pipe((0,A.Q)(this.unsubscribe$)).subscribe(Q=>{switch(this.logger.info("Received AppActionNotification"),this.appActionProgress$.next(Q),Q.actionStatus){case l.I$.ActionSuccess:case l.I$.ActionFailure:this.updateAppActionNotification(Q.appName,Q)}},Q=>{this.logger.error("Error while listening action notification listener",Q)})}updateAppActionNotification(Q,ne){const Ge=this.fetchAppActionStatus(Q),ge=this.mapActionToTelemetryAction(ne.action),Xe=Ge?.actionName||ge,ot=Ge?.version;if(ne.actionStatus===l.I$.ActionFailure){const dt=`Error while ${Xe} for ${Q}`;this.logger.error(dt,Q),this.sendEndTelemetryEvent(Xe,Q,ot,!1,dt)}else this.logger.info(`${Xe} Finished for `,Q),this.sendEndTelemetryEvent(Xe,Q,ot,!0)}getDownloadStatus(Q){return this.downloaderService.getDownloadStatus(Q.componentName,Q.version||this.appConfig.lcars.defaultVersion,Q.downloadUrl)}showErrorMessage(Q,ne,Ge=!1){this.errorHandlerService.showToastMessage({text:Q,placeholders:{appName:ne.title},translated:Ge}).subscribe()}updateAppCardStatus(Q,ne){this.logger.info(`Updating App Card Status for ${Q}`,ne),this.appCardStatus.set(Q,ne)}getAppCardStatus(Q){return this.logger.info(`Get App Card Status for ${Q}`),this.appCardStatus.get(Q)}getInstallationInProgressValue(){return this.queueService.getInstallationInProgressValue()}initAppToBeInstalledNotification(){this.queueService.getInstallationInProgressObservable().pipe((0,A.Q)(this.unsubscribe$)).subscribe(Q=>{this.appToBeInstalled$.next(Q)})}listenForAppToBeInstalledNotification(Q){this.appToBeInstalled$.pipe((0,M.p)(ne=>Q.componentName===ne.componentName),(0,T.n)(ne=>(this.logger.info("Previous installation is complete, triggering installation for queued app ",Q.title),this.updateAppCardStatusFlags(Q,!0,!1,!1),this.appToBeInstalled=this.removeFromInstallationQueue(),this.updateInstallationInProgressFlag(!0),this.getDownloadStatus(this.appToBeInstalled))),(0,A.Q)(this.unsubscribe$)).subscribe(ne=>{this.dequeued$.next(Q),this.installApp(this.appToBeInstalled,ne?.downloadedLocation,ne?.taskId)},ne=>{this.logger.error("Error occured while listening appToBeInstalled notification ",ne)})}getDownloadProgressState(Q){return this.downloadProgressPipe.transform(Q?.downloadStatus)}isNetworkErrorRetryPaused(Q){return Q?.downloadStatus===y.hF.NetworkErrorRetryPaused}isInvalidPackage(Q){return Q.downloadStatus===y.hF.ChecksumVerificationFailed||Q.downloadStatus===y.hF.SignatureVerificationFailed||Q.downloadStatus===y.hF.Prohibited||Q.downloadStatus===y.hF.Error}triggerGetState(Q,ne,Ge){const ge=Q.isUpdateAvailable?S.nx.Update:S.nx.Get;this.setAppActionStatus(Q.componentName,ge,Q.version),this.triggerScreenName=Ge,this.sendStartTelemetryEvent(ge,Q,Ge),ne?.downloadStatus===y.hF.Finished?this.triggerInstallationProcess(Q,ne.downloadedLocation,ne.taskId):this.isNetworkErrorRetryPaused(ne)||this.isDownloadPaused(ne)?this.resumeDownload(Q,ne.taskId):this.startDownload(Q)}showOptionalPluginErrorToastOnButton(){this.errorHandlerService.showOptionalPluginFailErrorToast()}isDownloadPaused(Q){return Q?.downloadStatus===y.hF.Paused}isDownloadCancelled(Q){return Q.downloadStatus===y.hF.Cancelled}onAppLinks(Q,ne,Ge){this.sendStartTelemetryEvent(ne,Ge),this.windowService.window.open(Q,"_blank"),this.logger.info(`Opening link for ${Ge.id}`,Q),this.sendEndTelemetryEvent(ne,Ge.componentName,Ge.version,!0)}handleResourceLoadError(Q,ne){this.nvAppTelemetryUtilService.sendResourceLoadErrorEvent(S.vt.Image,Q,ne,"",S.f3.Apps)}updateInstallationInProgressFlag(Q){this.queueService.updateInstallationInProgressFlag(Q)}listenForAppStatus(Q){this.logger.info("get app status for ",Q.title),this.bridgeService.executeCommand(E.Ts.Nvapp.Appdiscovery.GetAppStatus,{name:Q.componentName,registryPath:Q.registryPath}).pipe((0,A.Q)(this.unsubscribe$)).subscribe(Ge=>{this.appActionFinished$.next(Q),this.updateAppCardStatusFlags(Q,!1,!1,!1),this.updateInstallationInProgressFlag(!1),this.logger.info(`Finished appStatus for ${Q.title}`,Ge)},Ge=>{this.logger.error(`Error while getting app status for ${Q.title}`,Ge)})}sendStartTelemetryEvent(Q,ne,Ge){const ge=new S.Nw({actionName:Q,actionType:S.Uf.Start,appId:ne.id,appVersion:ne.version||"",status:S.fb.Success,triggerScreenName:Ge||S.f3.Apps,errorMessage:""});this.telemetryService.push(ge,null)}sendEndTelemetryEvent(Q,ne,Ge,ge,Xe){const ot=new S.Nw({actionName:Q,actionType:S.Uf.End,appId:ne,appVersion:Ge||"",status:ge?S.fb.Success:S.fb.Failure,triggerScreenName:S.f3.Apps,errorMessage:Xe||""});this.telemetryService.push(ot,null)}addToInstallationQueue(Q){this.queueService.getInstallationQueue().enqueue(Q)}removeFromInstallationQueue(){return this.queueService.getInstallationQueue().dequeue()}installApp(Q,ne,Ge){this.logger.info(`Install App for ${Q.id} with taskId ${Ge}`);const ge=this.fetchAppActionStatus(Q.componentName);this.bridgeService.executeCommand(E.Ts.Nvapp.Appdiscovery.InstallApp,{name:Q.componentName,registryPath:Q.registryPath,exePath:ne}).pipe((0,A.Q)(this.unsubscribe$)).subscribe(ot=>{if(this.isExecutionFailure(ot.executionStatus)){const dt=`Installation error for ${Q.id} with taskId ${Ge}`;this.logger.error(dt,ot);const xe=this.mapActionToTelemetryAction(l.rc.Install);this.sendEndTelemetryEvent(ge?.actionName||xe,Q.componentName,Q.version,!1,dt)}else this.logger.info(`${Q.title} installer finished with taskId ${Ge}`,ot);this.updateInstallationInProgressFlag(!1),this.appActionFinished$.next(Q),this.updateAppCardStatusFlags(Q,!1,!1,!1)},ot=>{const dt=`Error occurred while installing app for ${Q.id} with taskId ${Ge}`;this.logger.error(dt,ot),this.showErrorMessage("layout.apps.installError",Q),this.updateAppCardStatusFlags(Q,!1,!1,!1),this.updateInstallationInProgressFlag(!1),this.sendEndTelemetryEvent(ge.actionName,Q.componentName,Q.version,!1,dt)})}updateAppDownloadProgress(Q,ne){this.appDownloadProgress$.next({appMetadata:Q,downloadProgressStatus:ne})}resumeDownload(Q,ne){this.logger.info(`Resuming Download for taskId ${ne}`,Q.title),this.appDownloadFinishMap.set(Q.componentName,!1),this.downloaderService.resumeDownload(Q.componentName,ne).pipe((0,A.Q)(this.unsubscribe$)).subscribe(Ge=>{this.logger.info(`Resume download for ${Q.title}`,Ge),this.updateAppDownloadProgress(Q,Ge)},Ge=>{this.logger.error(`Resume download error for ${Q.title}`,Ge)})}triggerInstallationProcess(Q,ne,Ge){this.getInstallationInProgressValue()?(this.logger.info(`Queued installation for ${Q.title} with taskId ${Ge}`),this.addToInstallationQueue(Q),this.enqueued$.next(Q),this.updateAppCardStatusFlags(Q,!0,!0,!1)):(this.logger.info(`No installation is in progress, triggering installation for, ${Q.title} with taskId ${Ge}`),this.updateInstallationInProgressFlag(!0),this.installApp(Q,ne,Ge),this.updateAppCardStatusFlags(Q,!0,!1,!1))}updateAppCardStatusFlags(Q,ne,Ge,ge){this.updateAppCardStatus(Q.componentName,{downloadOrInstallTriggered:ne,isInstallationQueued:Ge,isUnInstallationTriggered:ge})}isExecutionFailure(Q){return Q===l.h$.Failure}setAppActionStatus(Q,ne,Ge){this.appActionStatus.set(Q,{actionName:ne,version:Ge})}fetchAppActionStatus(Q){return this.appActionStatus.get(Q)}mapActionToTelemetryAction(Q){return Q===l.rc.Install?S.nx.Get:S.nx.Uninstall}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}}return(ue=Me).\u0275fac=function(Q){return new(Q||ue)(u.KVO(m.J6),u.KVO(I.z),u.KVO(R.Vk),u.KVO(O.F),u.KVO(te),u.KVO(ce.H0),u.KVO(S.AY),u.KVO(m.s7),u.KVO(H.c),u.KVO(Z.S),u.KVO(m.NZ))},ue.\u0275prov=u.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"}),Me})()},30081:(je,z,c)=>{"use strict";c.d(z,{Y:()=>X});var r=c(26513),n=c(31315),v=c(59859),h=c(43848),f=c(35146),A=c(19392),M=c(62931),T=c(72147),E=c(14714),y=c(83915),S=c(8619),l=c(91384),s=c(79539),u=c(25577),m=c(65706),I=c(3816),R=c(26772),O=c(25864),Y=c(42578),j=c(75919),fe=c(58527),te=c(35338),ce=c(73796),H=c(60213),Z=c(82102);let X=(()=>{var ue;class Me{constructor(Q,ne,Ge,ge,Xe,ot,dt){this.loggingService=Q,this.appCardService=ne,this.lcarsService=Ge,this.windowService=ge,this.opsService=Xe,this.driverUpdateService=ot,this.imageFormatService=dt,this.appMetadata$=new r.t([]),this.logger=this.loggingService.getLogger("nvapp/LayoutService")}initialize(){this.opsService.initialize(),this.fetchDriverTypePreference()}autoRefreshApps(){return(0,n.zV)([this.appMetadata$.asObservable(),this.windowService.getFocusEvent().pipe((0,M.B)(R.CL))]).pipe((0,T.n)(([Q,ne])=>this.getInstalledStatusForApps(Q)),(0,E.W)(Q=>(this.logger.error("Error occurred while refreshing apps",Q),(0,v.$)(Q))))}getInstalledStatusForApps(Q){return this.appCardService.getInstalledStatusForApps(Q).pipe((0,y.T)(ne=>this.processAppInstallStatus(Q,ne)),(0,E.W)(ne=>(this.logger.error("Error while getting all apps status",ne),(0,h.of)(null))))}formatImages(Q,ne){if(!Q)return Q;const Ge={f:I.Ff.webp,q:j.we};return ne&&(Ge.w=ne),this.imageFormatService.formatImageServiceUrl(Q,Ge)}listenToPanelUpdates(){return(0,n.zV)([this.lcarsService.getPanelItems(),this.driverUpdateService.getDriverTypePreference().pipe((0,S.p)(Q=>null!=Q))]).pipe((0,y.T)(([Q,ne])=>this.processPanels(Q,ne)),(0,T.n)(Q=>(0,f.yU)((0,h.of)(Q),this.getInstalledStatusForApps(Q.appMetadata))),(0,y.T)(([Q,ne])=>({appsTitle:Q.appsTitle,marqueeItems:Q.marqueeItems,appMetadata:ne??Q.appMetadata})),(0,l.M)(Q=>{this.logger.info("Updating profiles for all apps"),this.initProfileSub?.unsubscribe(),this.initProfileSub=this.initCreateProfiles(Q).subscribe(),this.appCardService.getListenerInitialized()||(this.appCardService.setListenerInitialized(),this.appCardService.listenForAppActionNotification(),this.initAppCardListeners(Q.appMetadata))}),(0,E.W)(Q=>(this.logger.error("Error occurred while fetching layout",Q),(0,v.$)(Q))))}processAppInstallStatus(Q,ne){return Q.map(Ge=>{const ge=ne?.apps.find(Xe=>Xe.name===Ge.componentName);return ge?{...Ge,installStatus:ge}:Ge})}initAppCardListeners(Q){Q.forEach(ne=>{this.appCardService.initialize(ne)})}processPanels(Q,ne){this.logger.info("Processing layout panels");const Ge=ne===O.uj.GameReadyDriver?Y.HP.Home_Marquee:Y.HP.Home_Marquee_Nsd,ge=Q?.filter(Re=>Re.name===Ge)?.[0];this.logger.info("resolved panel type ",Ge);const Xe=ge?.sections?.[0]?.items,ot=Q?.filter(Re=>Re.name===Y.HP.Apps)?.[0],dt=ot?.sections?.[0]?.items?.map(Re=>({...Re.app,componentName:Re.app.id,images:{...Re?.app?.images??{},HERO_IMAGE:this.formatImages(Re?.app?.images?.HERO_IMAGE,j.IQ),GAME_ICON:this.formatImages(Re?.app?.images?.GAME_ICON)}}));return this.appMetadata$.next(dt),{appsTitle:ot?.sections?.[0]?.title,marqueeItems:Xe,appMetadata:dt}}initCreateProfiles(Q){return 0===Q.appMetadata.length?(0,h.of)(Q):(0,A.H)(Q.appMetadata).pipe((0,s.H)(ne=>this.appCardService.createProfile(ne)),(0,u.H)(),(0,y.T)(()=>Q),(0,E.W)(ne=>(this.logger.error("Error while creating profiles",ne),(0,h.of)(Q))))}fetchDriverTypePreference(){(0,n.zV)([this.driverUpdateService.fetchDriverTypePreference(),this.driverUpdateService.fetchUpdateStrategyPreference()]).pipe((0,m.s)(1)).subscribe()}}return(ue=Me).\u0275fac=function(Q){return new(Q||ue)(fe.KVO(I.J6),fe.KVO(te.N),fe.KVO(ce.B),fe.KVO(I.s7),fe.KVO(H.s),fe.KVO(Z.f),fe.KVO(I.Pl))},ue.\u0275prov=fe.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"}),Me})()},6953:(je,z,c)=>{"use strict";c.d(z,{GA:()=>M,ZC:()=>A,el:()=>E,hB:()=>T,l3:()=>y,wW:()=>r});const r={Manage3dSettings:"/manage-3d-settings",SystemInfo:"/system-info",Settings:"/settings",ChangeResolution:"/change-resolution"},A={minValue:30,maxValue:60,stepValue:5,defaultFrameRate:30},M={minValue:1,maxValue:3,stepValue:1,defaultValue:1},T={minValue:0,maxValue:100,sharpen:50,stepValue:1},E={minValue:0,maxValue:100,stepValue:5,defaultIntensity:25},y={minValue:0,maxValue:100,stepValue:5,defaultSaturation:50}},98207:(je,z,c)=>{"use strict";c.r(z),c.d(z,{AIDVCValue:()=>J,AIDVCValueDisplayEnum:()=>de,AIHDRValue:()=>st,AIHDRValueDisplayEnum:()=>$e,AntialiasingModeValue:()=>fe,AntialiasingSettingValue:()=>ue,AntialiasingTransparencyValue:()=>X,AutoDisplaySwitchingValue:()=>m,BackgroundAppMaxFrameRateValue:()=>ee,BatteryBoostValue:()=>De,BatteryBoostValueDisplayEnum:()=>ve,BatteryBoostVersionEnum:()=>be,CudaGpusValue:()=>dt,CuratedGlobalSettings:()=>Oe,CuratedProgramSettings:()=>Le,DSRFactorValue:()=>Zt,DeepColorFor3DApplicationsValue:()=>Me,DefaultGlobalEnum:()=>at,DependentSettingsList:()=>ye,DisabledEditSettings:()=>oe,DoublePrecisionValue:()=>Re,DriverSettingsHardConstraints:()=>ni,DriverSettingsSoftConstraints:()=>Un,DynamicSettings:()=>Xe,EnableOverlayValue:()=>f,ExportedpixeltypesValue:()=>A,ImageScalingValue:()=>Vt,ImageScalingValueDisplayEnum:()=>zt,ImageSharpeningAllowValue:()=>j,ImageSharpeningAllowValueDisplayEnum:()=>le,ImageSharpeningToggleValue:()=>Y,ImageSharpeningToggleValueDisplayEnum:()=>Pe,JsonTypeSettings:()=>K,LowLatencyModeValue:()=>l,MaxFrameRateValue:()=>Ue,MaxFrameRateValueDisplayEnum:()=>W,MaxqDynamicBoostValue:()=>u,MonitorTechnologyValue:()=>R,OpenGLRenderingGPUValue:()=>xe,PowerManagementModeGpuWiseKeys:()=>kn,PowerManagementModeValue:()=>E,PowerManagementPanelValue:()=>O,PreferredRefreshRateValue:()=>T,ProfileNames:()=>Ie,SLIMultiGPURenderingModeValue:()=>ne,SettingsTempCacheSuffix:()=>Gt,ShaderCacheValue:()=>M,SilkSmoothnessValue:()=>S,StaticSliderSettings:()=>ot,StereoDisplayModeValue:()=>H,StereoEnableValue:()=>te,StereoSwapEyeValue:()=>ce,StereoSwapModeValue:()=>Z,TextureFilteringTrilinearValue:()=>n,ThreadedOptimizationValue:()=>h,VerticalSyncValue:()=>v,VirtualRealityPreRenderedFramesValue:()=>Ge,VirtualRealityVrssValue:()=>s,WhisperModeGlobalValue:()=>I,WhisperModeProgramValue:()=>y,WhisperModeValue:()=>Qe,WhisperModeValueDisplayEnum:()=>pe,WhisperModeVersionEnum:()=>Q,boolEnum:()=>ge});var r=c(74931),n=r.Or.Nvapp.Nvcplplugin.TextureFilteringTrilinearValue,v=r.Or.Nvapp.Nvcplplugin.VerticalSyncValue,h=r.Or.Nvapp.Nvcplplugin.ThreadedOptimizationValue,f=r.Or.Nvapp.Nvcplplugin.EnableOverlayValue,A=r.Or.Nvapp.Nvcplplugin.ExportedpixeltypesValue,M=r.Or.Nvapp.Nvcplplugin.ShaderCacheValue,T=r.Or.Nvapp.Nvcplplugin.PreferredRefreshRateValue,E=r.Or.Nvapp.Nvcplplugin.PowerManagementModeValue,y=r.Or.Nvapp.Nvcplplugin.WhisperModeProgramValue,S=r.Or.Nvapp.Nvcplplugin.SilkSmoothnessValue,l=r.Or.Nvapp.Nvcplplugin.LowLatencyModeValue,s=r.Or.Nvapp.Nvcplplugin.VirtualRealityVrssValue,u=r.Or.Nvapp.Nvcplplugin.MaxqDynamicBoostValue,m=r.Or.Nvapp.Nvcplplugin.AutoDisplaySwitchingValue,I=r.Or.Nvapp.Nvcplplugin.WhisperModeGlobalValue,R=r.Or.Nvapp.Nvcplplugin.MonitorTechnologyValue,O=r.Or.Nvapp.Nvcplplugin.PowerManagementPanelValue,Y=r.Or.Nvapp.Nvcplplugin.ImageSharpeningToggleValue,j=r.Or.Nvapp.Nvcplplugin.ImageSharpeningAllowValue,fe=r.Or.Nvapp.Nvcplplugin.AntialiasingModeValue,te=r.Or.Nvapp.Nvcplplugin.StereoEnableValue,ce=r.Or.Nvapp.Nvcplplugin.StereoSwapEyeValue,H=r.Or.Nvapp.Nvcplplugin.StereoDisplayModeValue,Z=r.Or.Nvapp.Nvcplplugin.StereoSwapModeValue,X=r.Or.Nvapp.Nvcplplugin.AntialiasingTransparencyValue,ue=r.Or.Nvapp.Nvcplplugin.AntialiasingSettingValue,Me=r.Or.Nvapp.Nvcplplugin.DeepColorFor3DApplicationsValue,be=r.Or.Nvapp.Nvcplplugin.BatteryBoostVersionEnum,Q=r.Or.Nvapp.Nvcplplugin.WhisperModeVersionEnum,ne=r.Or.Nvapp.Nvcplplugin.SliMultiGpuRenderingModeValue,Ge=r.Or.Nvapp.Nvcplplugin.VirtualRealityPreRenderedFramesValue,ge=function(qe){return qe[qe.Off=0]="Off",qe[qe.On=1]="On",qe}(ge||{}),Xe=function(qe){return qe.CudaGpus="CudaGpus",qe.DoublePrecision="DoublePrecision",qe.OpenGlRenderingGpu="OpenGLRenderingGPU",qe.LowLatencyMode="LowLatencyMode",qe.PowerManagementMode="PowerManagementMode",qe.VerticalSync="VerticalSync",qe.DSRFactor="DSRFactor",qe}(Xe||{}),ot=function(qe){return qe.MaxFrameRate="MaxFrameRate",qe.ImageSharpeningToggle="ImageSharpeningToggle",qe.ImageSharpening="ImageSharpening",qe.ImageSharpeningAllow="ImageSharpeningAllow",qe.ImageSharpeningNoiseGrain="ImageSharpeningNoiseGrain",qe.DSRSmoothness="DSRSmoothness",qe.WhisperModeProgram="WhisperModeProgram",qe.BatteryBoost="BatteryBoost",qe}(ot||{}),dt=function(qe){return qe.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE="none",qe.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_ALL="all",qe}(dt||{}),xe=function(qe){return qe.NVCPLAPI_VALUE_PREFERRED_OGL_GPU_AUTOSELECT="AUTOSELECT",qe}(xe||{}),Re=function(qe){return qe.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE="none",qe}(Re||{}),Ue=function(qe){return qe[qe.Off=0]="Off",qe[qe.On=1]="On",qe}(Ue||{}),ee=function(qe){return qe[qe.Off=0]="Off",qe[qe.On=1]="On",qe}(ee||{}),W=function(qe){return qe.Off="Off",qe.On="On",qe}(W||{}),Pe=function(qe){return qe.NVCPLAPI_VALUE_SHARPENING_TOGGLE_DISABLED="NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_DISABLED",qe.NVCPLAPI_VALUE_SHARPENING_TOGGLE_ENABLED="NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_ENABLED",qe}(Pe||{}),le=function(qe){return qe.NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED="NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED",qe.NVCPLAPI_VALUE_SHARPENING_ALLOW_ENABLED="NVCPLAPI_VALUE_SHARPENING_ALLOW_ENABLED",qe}(le||{}),oe=function(qe){return qe[qe.WhisperModeGlobal=0]="WhisperModeGlobal",qe}(oe||{}),Le=function(qe){return qe.WhisperModeGlobal="WhisperModeGlobal",qe.MaxFrameRateFPS="MaxFrameRateFPS",qe.ImageSharpening="ImageSharpening",qe.ImageSharpeningNoiseGrain="ImageSharpeningNoiseGrain",qe.GpuScaling="GpuScaling",qe.BackgroundAppMaxFrameRateFPS="BackgroundAppMaxFrameRateFPS",qe.DSRSmoothness="DSRSmoothness",qe.ShaderCache="ShaderCache",qe.ImageSharpeningAllow="ImageSharpeningAllow",qe}(Le||{}),Oe=function(qe){return qe.WhisperModeProgram="WhisperModeProgram",qe.MaxFrameRateFPS="MaxFrameRateFPS",qe.ImageSharpening="ImageSharpening",qe.ImageSharpeningNoiseGrain="ImageSharpeningNoiseGrain",qe.GpuScaling="GpuScaling",qe.BackgroundAppMaxFrameRateFPS="BackgroundAppMaxFrameRateFPS",qe.WhisperModeGlobal="WhisperModeGlobal",qe.ImageSharpeningAllow="ImageSharpeningAllow",qe.DSRSmoothness="DSRSmoothness",qe}(Oe||{}),ye=function(qe){return qe.PowerManagementPanel="PowerManagementPanel",qe.StereoEnable="StereoEnable",qe.MonitorTechnology="MonitorTechnology",qe.AntialiasingSetting="AntialiasingSetting",qe.AntialiasingMode="AntialiasingMode",qe.AntialiasingTransparency="AntialiasingTransparency",qe}(ye||{}),Ie=function(qe){return qe.BaseProfile="Base Profile",qe}(Ie||{}),at=function(qe){return qe.UseGlobalKey="UseGlobal",qe[qe.UseGlobalValue=136314880]="UseGlobalValue",qe}(at||{}),K=function(qe){return qe.BatteryBoost="BatteryBoost",qe.WhisperMode="WhisperMode",qe.ImageScaling="ImageScaling",qe.AIDVC="AIDVC",qe.AIHDR="AIHDR",qe.DSRFactor="DSRFactor",qe}(K||{}),ve=function(qe){return qe.Off="Off",qe.On="On",qe}(ve||{}),De=function(qe){return qe[qe.Off=0]="Off",qe[qe.On=1]="On",qe}(De||{}),pe=function(qe){return qe.Off="Off",qe.On="On",qe}(pe||{}),Qe=function(qe){return qe[qe.Off=0]="Off",qe[qe.On=1]="On",qe}(Qe||{}),zt=function(qe){return qe.Off="Off",qe.On="On",qe}(zt||{}),Vt=function(qe){return qe[qe.Off=0]="Off",qe[qe.On=1]="On",qe}(Vt||{}),de=function(qe){return qe.Off="Off",qe.On="On",qe}(de||{}),J=function(qe){return qe[qe.Off=0]="Off",qe[qe.On=1]="On",qe}(J||{}),$e=function(qe){return qe.Off="Off",qe.On="On",qe}($e||{}),st=function(qe){return qe[qe.Off=0]="Off",qe[qe.On=1]="On",qe}(st||{}),Gt=function(qe){return qe.Settings=" Settings",qe.SupportingSettings=" SupportingSettings",qe}(Gt||{}),Zt=function(qe){return qe.Off="Off",qe.On="On",qe}(Zt||{}),kn=function(qe){return qe.OptimalPower="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_OPTIMAL_POWER",qe.Normal="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_NORMAL",qe}(kn||{}),Un=function(qe){return qe[qe.MultiMonDetected=8]="MultiMonDetected",qe[qe.HdrDisabled=16]="HdrDisabled",qe[qe.SocFeatureEnabled=32]="SocFeatureEnabled",qe[qe.SliEnabled=64]="SliEnabled",qe[qe.SurroundEnabled=128]="SurroundEnabled",qe[qe.MSHybridEnabledDDSIGPU=512]="MSHybridEnabledDDSIGPU",qe[qe.NoDisplayConnectedToNvGPU=2048]="NoDisplayConnectedToNvGPU",qe[qe.MinimumDriverVersionNotMet=1048576]="MinimumDriverVersionNotMet",qe[qe.GameDisallowed=2097152]="GameDisallowed",qe[qe.PlatformEnabled=4194304]="PlatformEnabled",qe}(Un||{}),ni=function(qe){return qe[qe.GpuIncompatible=1]="GpuIncompatible",qe[qe.ClientVirtualizationEnabled=2]="ClientVirtualizationEnabled",qe[qe.OsIncompatible=4]="OsIncompatible",qe[qe.MsHybridEnabled=256]="MsHybridEnabled",qe[qe.DisplayIncompatible=1024]="DisplayIncompatible",qe}(ni||{})},63407:(je,z,c)=>{"use strict";c.d(z,{$F:()=>X,Dn:()=>l,Jn:()=>Ge,K4:()=>Xe,L$:()=>E,Lr:()=>M,M5:()=>te,Me:()=>S,NE:()=>I,SF:()=>s,Sl:()=>ce,UY:()=>ne,Vo:()=>Z,ig:()=>A,k_:()=>u,lz:()=>R,oC:()=>T,op:()=>be,q:()=>m,qn:()=>O,uf:()=>Me,vF:()=>h,vR:()=>Y,vp:()=>ge,zD:()=>f});var r=c(74931),n=c(98207);const h=r.Ts.Nvapp.Nvcplplugin.GetProfileSettingsInfo,f=r.Ts.Nvapp.Nvcplplugin.GetProfileSettingValue,A=r.Ts.Nvapp.Nvcplplugin.GetProfileInfo,M=r.Ts.Nvapp.Nvcplplugin.SetProfileSettingValue,T=r.Ts.Nvapp.Nvcplplugin.GetProfileStringSettingPossibleValues,E=r.Ts.Nvapp.Nvcplplugin.GetProfileScalarSettingPossibleValues,S=r.Ts.Nvapp.Nvcplplugin.RestoreDefaultForAllProfiles,l=r.Ts.Nvapp.Nvcplplugin.GetProfilesAndApplicationsInfo,s=r.Ts.Nvapp.Nvcplplugin.RestoreDefaultForProfile,u=r.Ts.Nvapp.Nvcplplugin.CreateNewProfile,m=r.Ts.Nvapp.Localgames.AddManualApplication,I=r.Ts.Nvapp.Nvcpldisplayplugin.RegisterDisplayChangeNotification,R="Value";var O=r.Or.Nvapp.Nvcplplugin.ProfileSettingType,Y=r.Or.Nvapp.Nvcplplugin.FanVolume;const te="unlocalized",ce={minValue:20,maxValue:1e3,defaultValue:58,stepValue:1},Z={minValue:0,maxValue:1,noiseGrain:.17,sharpen:.5,stepValue:.01},X={minValue:0,maxValue:100,defaultValue:33,stepValue:1},Me=3e3,be=700,ne={10954:"1.20",12247:"1.50",13333:"1.78",14142:"2.00",15e3:"2.25",17320:"3.00",2e4:"4.00",24494:"6.00",3e4:"9.00"},Ge=new RegExp(/[^a-zA-Z0-9\.:]/g),ge=(ot,dt)=>!!ot.replace(Ge,"").match(dt),Xe={[n.DriverSettingsSoftConstraints.MultiMonDetected]:"manage3dSettings.AIHDR.error.multiMonitor",[n.DriverSettingsSoftConstraints.HdrDisabled]:"manage3dSettings.AIHDR.error.osAndAutoHdrAndGameHdr",[n.DriverSettingsSoftConstraints.SocFeatureEnabled]:"manage3dSettings.AIHDR.error.socFeatures",[n.DriverSettingsSoftConstraints.SliEnabled]:"manage3dSettings.AIHDR.error.sli",[n.DriverSettingsSoftConstraints.SurroundEnabled]:"manage3dSettings.AIHDR.error.surround",[n.DriverSettingsSoftConstraints.MSHybridEnabledDDSIGPU]:"manage3dSettings.AIHDR.error.msHybridDDS",[n.DriverSettingsSoftConstraints.NoDisplayConnectedToNvGPU]:"manage3dSettings.AIHDR.error.msHybridDDS",[n.DriverSettingsSoftConstraints.MinimumDriverVersionNotMet]:"manage3dSettings.AIHDR.error.minDriver",[n.DriverSettingsSoftConstraints.GameDisallowed]:"manage3dSettings.AIHDR.error.gameDisallowed",[n.DriverSettingsSoftConstraints.PlatformEnabled]:"manage3dSettings.WhisperMode.error.platformEnabled"}},74541:(je,z,c)=>{"use strict";c.d(z,{_:()=>fe});var r=c(57258),n=c(80583),v=c(59859),h=c(43848),f=c(93181),A=c(65706),M=c(91384),T=c(14714),E=c(43615),y=c(83915),S=c(26875),s=c(63407),u=c(98207),m=c(1242),I=c(58527),R=c(3816),O=c(96277),Y=c(86667),j=c(93818);let fe=(()=>{var te;class ce{constructor(Z,X,ue,Me){this.loggingService=Z,this.manage3dSettingsService=X,this.manage3dSettingsUtilService=ue,this.manage3dSettingsTelemetryService=Me,this.profileSettingsInfoArray=[],this.featureSettingObjectsForSave=[],this.featureSettingList=[],this.profileSettingsInfoSubject=new r.m(1),this.appWiseSettings={},this.applyInProgess$=new n.B7}getProfileSettingsInfo(){return this.profileSettingsInfoSubject.asObservable()}applySingleSetting(Z){this.applyInProgess$.next(!0),this.manage3dSettingsUtilService.updateLastApplied(Z.settingName),this.logger.info(`Applying single setting value ${Z.selectedFeatureValue} for ${this.selectedProfileInfo.profileName}`);const X=this.profileSettingsInfoArray.find(ue=>ue.settingName===Z.settingName)?.settingValue;if(!X){this.logger.info(`Feature Name ${Z.settingName} not found in main array ${this.profileSettingsInfoArray}`);const ue=`${Z.settingName} value not found in main array.`;return this.logger.error(ue),(0,v.$)(ue)}return this.manage3dSettingsUtilService.setProfileSettingValue(X,Z,this.selectedProfileInfo).pipe((0,A.s)(1),(0,M.M)(ue=>{this.logger.info(`SET api success for ${Z.settingName}\n                        and profile ${this.selectedProfileInfo.profileName} with value ${Z.selectedFeatureValue} with response `,ue),this.updateUseProfileTelemetry(Z)}),(0,T.W)(ue=>(this.logger.error(`Error while SET api call for for ${Z.settingName}\n                        and profile ${this.selectedProfileInfo.profileName} with value ${Z.selectedFeatureValue} : `,ue),this.sendErrorTelemetry(ue,Z))),(0,E.j)(()=>{this.applyInProgess$.next(!1)}))}refreshSingleSetting(Z){return this.manage3dSettingsService.getProfileSettingValue(Z,this.selectedProfileInfo).pipe((0,A.s)(1))}updateUseProfileTelemetry(Z){if(!this.isGlobalContext){this.logger.info("Sending telemetry for ",Z.settingName);const X=u.DefaultGlobalEnum.UseGlobalValue===Z.selectedFeatureValue?m.T8.TRUE:m.T8.FALSE;this.manage3dSettingsTelemetryService.send3DSettingUseProfileEvent(m.NU.ProgramSettings,this.selectedProfileInfo.profileName,Z.settingName,Z.selectedFeatureValue.toString(),X)}}sendErrorTelemetry(Z,X){return this.manage3dSettingsTelemetryService.send3DSettingApplyFailedEvent(this.isGlobalContext?m.NU.GlobalSettings:m.NU.ProgramSettings,this.selectedProfileInfo.profileName,X.settingName,X.selectedFeatureValue.toString(),Z.message??JSON.stringify(Z)),(0,v.$)(Z)}getApplyInProgress(){return this.applyInProgess$.asObservable()}filterCuratedSettings(Z){let X,ue,Me;return Z.forEach(be=>{be.settingName===u.CuratedGlobalSettings.ImageSharpening&&(X=be),be.settingName===u.CuratedGlobalSettings.ImageSharpeningNoiseGrain&&(ue=be),be.settingName===u.CuratedGlobalSettings.MaxFrameRateFPS&&(Me=be)}),[X,ue,Me]}clearAndNotify(Z){this.logger.info("Update main array ",Z),this.profileSettingsInfoArray=(0,S.cloneDeep)(Z),this.profileSettingsInfoSubject.next((0,S.cloneDeep)(Z))}scrollSettingIntoView(){this.featureSettingToScroll&&setTimeout(()=>{const Z=document.getElementById(this.featureSettingToScroll);Z?Z.scrollIntoView({behavior:"smooth",block:"start"}):this.logger.warn(`Could not scroll to view for setting ${this.featureSettingToScroll}`),this.featureSettingToScroll=""},s.op)}restoreJsonTypeSettings(Z=!0){const X=this.profileSettingsInfoArray.filter(ue=>ue.settingValue.SettingInfo.SettingType===s.qn.type_json_string&&ue.settingValue.SettingInfo.isSupported&&ue.settingName!==u.DynamicSettings.DSRFactor&&!this.ignoreRestoreForSetting(ue)&&!(ue.settingName===u.JsonTypeSettings.WhisperMode&&ue.settingValue.isGreyedOut));if((0,S.isEmpty)(X))return(0,h.of)(!0);{const ue=X.map(Me=>{let be="";be=Z?Me.settingValue.settingDefaultValue:JSON.stringify({useGlobal:!0});const Q=this.getSelectedFeatureValue(Me.settingName,be);return this.applySingleSetting(Q)});return(0,f.p)(ue).pipe((0,A.s)(1),(0,y.T)(Me=>(this.manage3dSettingsUtilService.updateLastApplied(null),!0)),(0,T.W)(Me=>(0,v.$)(Me)))}}ignoreRestoreForSetting(Z){const X=Z?.settingName+s.lz,ue=JSON.stringify({useGlobal:!0});switch(Z?.settingName){case u.JsonTypeSettings.BatteryBoost:case u.JsonTypeSettings.WhisperMode:return Z?.settingValue?.[X]===u.DefaultGlobalEnum.UseGlobalValue;default:return Z?.settingValue?.[X]===ue}}getSelectedFeatureValue(Z,X){const ue={};return ue.settingName=Z,ue.selectedFeatureValue=X,ue.isDirty=!0,ue}selectiveSettingUpdate(Z,X){return Z.length===X.length&&this.manage3dSettingsUtilService.lastSettingApplied?Z.forEach((ue,Me)=>{const be=X.find(Q=>Q.settingName===ue.settingName);be&&(be.settingValue[be.settingName+s.lz]!==ue.settingValue[be.settingName+s.lz]||this.manage3dSettingsUtilService.lastSettingApplied===be.settingName||this.isSpecialSettingToRefresh(be.settingName))&&(Z[Me]=be)}):Z=X.slice(),Z}isSpecialSettingToRefresh(Z){return!!u.DependentSettingsList[Z]||Z===u.StaticSliderSettings.ImageSharpeningToggle||Z===u.JsonTypeSettings.AIHDR}getCachedSettings(Z){if(this.appWiseSettings[Z+u.SettingsTempCacheSuffix.Settings])return[this.appWiseSettings[Z+u.SettingsTempCacheSuffix.Settings].slice(),this.appWiseSettings[Z+u.SettingsTempCacheSuffix.SupportingSettings].slice()]}updateCachedSettings(Z,X,ue){this.appWiseSettings[Z+u.SettingsTempCacheSuffix.Settings]=X.slice(),this.appWiseSettings[Z+u.SettingsTempCacheSuffix.SupportingSettings]=ue.slice()}}return(te=ce).\u0275fac=function(Z){return new(Z||te)(I.KVO(R.J6),I.KVO(O.F),I.KVO(Y.f),I.KVO(j._))},te.\u0275prov=I.jDH({token:te,factory:te.\u0275fac,providedIn:"root"}),ce})()},56068:(je,z,c)=>{"use strict";c.d(z,{R:()=>T});var r=c(98207),n=c(74541),v=c(58527),h=c(3816),f=c(96277),A=c(86667),M=c(93818);let T=(()=>{var E;class y extends n._{constructor(l,s,u,m){super(l,s,u,m),this.logger=this.loggingService.getLogger("nvapp/Global3dSettingsService"),this.initGlobalSettingsListener(),this.isGlobalContext=!0}initGlobalSettingsListener(){this.getSettingsSubscription&&this.getSettingsSubscription.unsubscribe(),this.getSettingsSubscription=this.manage3dSettingsUtilService.getGlobalSettings().subscribe(l=>{this.clearAndNotify(l)},l=>{this.logger.error("Error fetching Global settings:",l),this.profileSettingsInfoSubject.error(l)})}refreshGlobalSettings(l=!0){return this.selectedProfileInfo={profileName:r.ProfileNames.BaseProfile,applicationId:0,cmsId:0},this.manage3dSettingsUtilService.refreshGlobalSettings(this.selectedProfileInfo,l)}getVisibleProfileSettings(l){return l.filter(s=>!(s.settingName in r.CuratedGlobalSettings))}getBatteryBoostValue(l){let s={};const u=l.find(m=>m.settingName===r.JsonTypeSettings.BatteryBoost);return u&&(s=JSON.parse(u?.settingValue.BatteryBoostValue)),s}getWhisperModeValue(l){let s={};const u=l.find(m=>m.settingName===r.JsonTypeSettings.WhisperMode);return u&&(s=JSON.parse(u?.settingValue.WhisperModeValue)),s}getNIS2Value(l){let s={};const u=l.find(m=>m.settingName===r.JsonTypeSettings.ImageScaling);return u&&(s=JSON.parse(u?.settingValue.ImageScalingValue)),s}ngOnDestroy(){this.getSettingsSubscription&&this.getSettingsSubscription.unsubscribe(),this.refreshSettingsSub&&this.refreshSettingsSub.unsubscribe()}}return(E=y).\u0275fac=function(l){return new(l||E)(v.KVO(h.J6),v.KVO(f.F),v.KVO(A.f),v.KVO(M._))},E.\u0275prov=v.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),y})()},96277:(je,z,c)=>{"use strict";c.d(z,{F:()=>I});var r=c(26875),v=c(43848),h=c(59859),f=c(83915),A=c(55833),M=c(14714),T=c(10174),E=c(91384),y=c(65706),S=c(125),l=c(63407),s=c(98207),u=c(58527),m=c(3816);let I=(()=>{var R;class O{set baseProfileSettingsInfoCache(j){this._baseProfileSettingsInfoCache=j}constructor(j,fe){this.loggingService=j,this.bridgeService=fe,this.logger=this.loggingService.getLogger("nvapp/Manage3dSettingsAPIService")}getBaseSettings(){return this._baseProfileSettingsInfoCache?(0,v.of)((0,r.cloneDeep)(this._baseProfileSettingsInfoCache)):(this.logger.info("Calling GetProfileSettingsInfo api"),this.bridgeService.executeCommand(l.vF).pipe((0,f.T)(j=>{this.logger.info("Success Calling GetProfileSettingsInfo api",j),delete j._return_code,delete j._return_status,delete j._return_internal;let fe=(0,r.map)(j,(te,ce)=>({settingName:ce,settingValue:te})).sort((te,ce)=>te.settingName.localeCompare(ce.settingName));return fe=fe.filter(te=>te.settingValue.SettingInfo.isSupported||te.settingName===s.JsonTypeSettings.AIHDR||te.settingName===s.JsonTypeSettings.AIDVC||te.settingName===s.JsonTypeSettings.WhisperMode),this._baseProfileSettingsInfoCache=(0,r.cloneDeep)(fe),fe}),(0,A.t)(1),(0,M.W)(j=>(this.logger.error("Error Calling GetProfileSettingsInfo api ",JSON.stringify(j)),(0,h.$)(j)))))}setProfileSetting(j){return this.logger.info("Attempting SET for ",j),this.bridgeService.executeCommand(l.Lr,j).pipe((0,f.T)(fe=>fe,(0,M.W)(fe=>(this.logger.error("Error during SetProfileSettingValue - ",fe),(0,h.$)(fe)))))}getProfileSettingValue(j,fe){return this.bridgeService.executeCommand(l.zD,{ProfileName:fe.profileName,ProfileSettingEnum:j,ApplicationId:fe.applicationId,CmsId:fe.cmsId}).pipe((0,f.T)(ce=>ce.SettingValue),(0,M.W)(ce=>(this.logger.error("Error during getProfileSettingValue api call - ",ce),(0,h.$)(ce))))}getAllSettingsForProfile(j,fe){const te={ProfileName:j.profileName,ApplicationId:j.applicationId,CmsId:j.cmsId,refreshSupportInfo:fe};return this.logger.info("calling GetProfileInfo API with params : ",JSON.stringify(te)),this.bridgeService.executeCommand(l.ig,te).pipe((0,f.T)(ce=>(this.logger.info("Success calling GetProfileInfo API"),ce)),(0,M.W)(ce=>(this.logger.error("Error during getProfileSettingValue api call - ",ce),(0,h.$)(ce))))}getProfileStringSettingPossibleValues(j){return this.bridgeService.executeCommand(l.oC,j).pipe((0,f.T)(fe=>fe),(0,M.W)(fe=>(this.logger.error("Error occured while fetching getProfileStringSettingPossibleValues ",fe),(0,h.$)(fe))))}getProfileScalarSettingPossibleValuesParameters(j){return this.bridgeService.executeCommand(l.L$,j).pipe((0,f.T)(fe=>fe),(0,M.W)(fe=>(this.logger.error("Error occured while fetching getProfileScalarSettingPossibleValuesParameters ",fe),(0,h.$)(fe))))}executeRestoreAllProfiles(){return this.bridgeService.executeCommand(l.Me).pipe((0,M.W)(j=>(this.logger.error("Some error occured while restore ",j),(0,h.$)(j))),(0,T.u)(!0))}getProfilesAndApplicationsInfo(){return this.bridgeService.executeCommand(l.Dn).pipe((0,f.T)(j=>j,(0,M.W)(j=>(this.logger.error("Error during GetProfilesAndApplicationsInfo - ",j),(0,h.$)(j)))))}restoreDefaultForProfile(j){return this.bridgeService.executeCommand(l.SF,{ProfileName:j}).pipe((0,f.T)(te=>(this.logger.info(`Profile ${j} successfuly restored, `,te),te),(0,M.W)(te=>(this.logger.error(`Error during RestoreDefaultForProfile - ${j} `,te),(0,h.$)(te)))))}openFile(){return this.bridgeService.executeCommand(S.fs,{includeFiles:!0,filter:{"Programs and shortcuts":"*.exe; *.lnk; *.bat; *.url"}}).pipe((0,E.M)(fe=>{this.logger.info("selected program exe is",fe)}),(0,M.W)(fe=>(this.logger.error("select program failure:",fe),fe.isCancelled?(0,v.of)("isCancelled"):(0,h.$)(fe))))}createNewProfile(j,fe){return this.bridgeService.executeCommand(l.k_,{ProfileName:fe,Applications:[j]}).pipe((0,f.T)(ce=>(this.logger.info("New profile created in DRS",ce),ce)),(0,T.u)(!0),(0,M.W)(ce=>(this.logger.error("Error while creating new profile ",ce),(0,h.$)(ce))))}openFolder(j){return this.bridgeService.executeCommand(S.Eb,{name:j}).pipe((0,M.W)(te=>(this.logger.error(`Error while opening a folder at ${j} `,te),(0,h.$)(te))))}addManualApplication(j,fe){return this.bridgeService.executeCommand(l.q,{applicationImagePath:j}).pipe((0,f.T)(ce=>(this.logger.info("Manual app added ",fe),ce)),(0,T.u)(!0),(0,M.W)(ce=>(this.logger.error("Error while manual app add ",ce),(0,h.$)(ce))))}deleteDrsProfile(j){return this.bridgeService.executeCommand(S.$q,{ProfileName:j}).pipe((0,y.s)(1),(0,f.T)(te=>(this.logger.info(`Removed DRS profile for ${j}, response: ${te}`),te)),(0,T.u)(!0),(0,M.W)(te=>(this.logger.error(`Error while removing DRS profile for ${j}, ${te?.message}`),(0,h.$)(te))))}}return(R=O).\u0275fac=function(j){return new(j||R)(u.KVO(m.J6),u.KVO(m.NZ))},R.\u0275prov=u.jDH({token:R,factory:R.\u0275fac,providedIn:"root"}),O})()},93818:(je,z,c)=>{"use strict";c.d(z,{_:()=>f});var r=c(3816),n=c(1242),v=c(58527),h=c(78812);let f=(()=>{var A;class M{constructor(E,y,S){this.loggingService=E,this.telemetryService=y,this.nvAppTelemetryUtilService=S,this.logger=this.loggingService.getLogger("nvapp/Manage3dSettingsTelemetryService")}send3DSettingUseProfileEvent(E,y,S,l,s){const u=new n.c4({hierarchy:this.nvAppTelemetryUtilService.getHierarchy(!0,E)||r.Qe,profileName:y||r.Qe,settingName:S||r.Qe,settingValue:l||r.Qe,useProfile:s||n.T8.TRUE});this.telemetryService.push(u)}sendRestoreTelemetry(E,y,S){const s=new n.SF({hierarchy:this.nvAppTelemetryUtilService.getHierarchy(!0,E?n.NU.GlobalSettings:n.NU.ProgramSettings)||r.Qe,restoreAll:y?n.T8.TRUE:n.T8.FALSE,profileName:S.join(";")||r.Qe});this.telemetryService.push(s)}send3DSettingsLoadErrorTelemetry(E,y,S,l){const u=new n.Ch({hierarchy:this.nvAppTelemetryUtilService.getHierarchy(!0,E?n.NU.GlobalSettings:n.NU.ProgramSettings)||r.Qe,profileName:S?.profileName||r.Qe,drsSubPath:l||r.Qe,errorDetails:JSON.stringify(y)||r.Qe});this.telemetryService.push(u)}send3DSettingApplyFailedEvent(E,y,S,l,s){const u=new n.iI({hierarchy:this.nvAppTelemetryUtilService.getHierarchy(!0,E)||r.Qe,profileName:y||r.Qe,settingName:S||r.Qe,settingValue:l||r.Qe,errorDetails:s||r.Qe});this.telemetryService.push(u)}}return(A=M).\u0275fac=function(E){return new(E||A)(v.KVO(r.J6),v.KVO(h.H0),v.KVO(n.AY))},A.\u0275prov=v.jDH({token:A,factory:A.\u0275fac,providedIn:"root"}),M})()},86667:(je,z,c)=>{"use strict";c.d(z,{f:()=>pe});var r=c(80583),n=c(57258),v=c(26513),h=c(59859),f=c(93181),A=c(82e3),M=c(43848),T=c(19392),E=c(16229),y=c(12532),S=c(72147),l=c(83915),s=c(91384),u=c(14714),m=c(65706),I=c(79539),R=c(93702),O=c(10174),Y=c(26875),j=c(98207),fe=c(63407),te=c(94645),ce=c(26537),H=c(58527),Z=c(3816),X=c(65240),ue=c(61142),Me=c(47973),be=c(33955),Q=c(54676),ne=c(97888),Ge=c(49678),ge=c(28139);function Xe(Qe,zt){if(1&Qe){const Vt=H.RV6();H.j41(0,"div",7)(1,"div")(2,"mat-checkbox",8),H.bIt("change",function(){const J=H.eBV(Vt),$e=J.$implicit,st=J.index,Gt=H.XpG(2);return H.Njj(Gt.deriveFinalCudaGpuVal($e,st))}),H.j41(3,"div",9),H.EFF(4),H.k0s()()()()}if(2&Qe){const Vt=zt.$implicit;H.R7$(2),H.Y8G("checked",Vt.checked),H.R7$(2),H.SpI(" ",Vt.possibleValue," ")}}function ot(Qe,zt){if(1&Qe&&(H.qex(0),H.DNE(1,Xe,5,2,"div",6),H.bVm()),2&Qe){const Vt=H.XpG();H.R7$(),H.Y8G("ngForOf",Vt.featureDisplayOptions)}}function dt(Qe,zt){if(1&Qe&&(H.j41(0,"div",16)(1,"div")(2,"mat-checkbox",17)(3,"div",9),H.EFF(4),H.k0s()()()()),2&Qe){const Vt=zt.$implicit;H.R7$(2),H.Y8G("checked",Vt.checked)("disabled",Vt.disabled),H.R7$(2),H.SpI(" ",Vt.possibleValue," ")}}function xe(Qe,zt){if(1&Qe){const Vt=H.RV6();H.j41(0,"div",16)(1,"div")(2,"mat-checkbox",18),H.bIt("change",function(){const J=H.eBV(Vt),$e=J.$implicit,st=J.index,Gt=H.XpG(2);return H.Njj(Gt.deriveFinalCudaGpuVal($e,st))}),H.j41(3,"div",9),H.EFF(4),H.k0s()()()()}if(2&Qe){const Vt=zt.$implicit;H.R7$(2),H.Y8G("checked",Vt.checked)("disabled",Vt.disabled),H.R7$(2),H.SpI(" ",Vt.possibleValue," ")}}function Re(Qe,zt){if(1&Qe){const Vt=H.RV6();H.j41(0,"mat-radio-group",10)(1,"mat-radio-button",11),H.bIt("change",function(){H.eBV(Vt);const J=H.XpG();return H.Njj(J.onUseProfileSelection(!0))}),H.j41(2,"div",12)(3,"div",13),H.EFF(4),H.nI1(5,"translate"),H.k0s()()(),H.DNE(6,dt,5,3,"div",14),H.j41(7,"mat-radio-button",15),H.bIt("change",function(){H.eBV(Vt);const J=H.XpG();return H.Njj(J.onUseProfileSelection(!1))}),H.j41(8,"div",12)(9,"div",13),H.EFF(10),H.nI1(11,"translate"),H.k0s()()(),H.DNE(12,xe,5,3,"div",14),H.k0s()}if(2&Qe){const Vt=H.XpG();H.R7$(),H.FS9("value",Vt.profileSelectOption.possibleValue),H.Y8G("disabled",null==Vt.profileSelectOption?null:Vt.profileSelectOption.disabled)("checked",null==Vt.profileSelectOption?null:Vt.profileSelectOption.checked),H.R7$(2),H.Y8G("ngClass",null!=Vt.profileSelectOption&&Vt.profileSelectOption.checked?"selected":""),H.R7$(),H.SpI(" ",H.bMT(5,12,Vt.profileSelectOption.possibleValue)," "),H.R7$(2),H.Y8G("ngForOf",Vt.featureDisplayOptionsGlobal),H.R7$(),H.FS9("value",Vt.programSelectOption.possibleValue),H.Y8G("disabled",null==Vt.programSelectOption?null:Vt.programSelectOption.disabled)("checked",null==Vt.programSelectOption?null:Vt.programSelectOption.checked),H.R7$(2),H.Y8G("ngClass",null!=Vt.programSelectOption&&Vt.programSelectOption.checked?"selected":""),H.R7$(),H.SpI(" ",H.bMT(11,14,Vt.programSelectOption.possibleValue)," "),H.R7$(2),H.Y8G("ngForOf",Vt.featureDisplayOptions)}}function Ue(Qe,zt){if(1&Qe){const Vt=H.RV6();H.j41(0,"mat-dialog-actions",19)(1,"button",20),H.bIt("click",function(){H.eBV(Vt);const J=H.XpG();return H.Njj(J.onCancelClick())}),H.EFF(2),H.nI1(3,"translate"),H.k0s(),H.j41(4,"button",21),H.bIt("click",function(){H.eBV(Vt);const J=H.XpG();return H.Njj(J.onApplyClick())}),H.EFF(5),H.nI1(6,"translate"),H.k0s()()}if(2&Qe){const Vt=H.XpG();H.R7$(2),H.SpI(" ",H.bMT(3,3,"save.cancel")," "),H.R7$(2),H.Y8G("disabled",!Vt.isDirty),H.R7$(),H.SpI(" ",H.bMT(6,5,"save.apply")," ")}}let ee=(()=>{var Qe;class zt{constructor(de,J,$e,st){this.loggingService=de,this.translateService=J,this.dialogData=$e,this.dialogRef=st,this.settingData={},this.featureDisplayOptions=[],this.featureDisplayOptionsGlobal=[],this.selectedFeatureValueArray=[],this.patt=new RegExp(fe.M5),this.cudaGpusValue=j.CudaGpusValue,this.isDirty=!1,this.profileSelectOption={checked:!0,disabled:!1,possibleValue:"manage3dSettings.useProfile"},this.programSelectOption={checked:!1,disabled:!1,possibleValue:"manage3dSettings.useGpus"},this.logger=this.loggingService.getLogger("nvapp/FeatureCudagpuUIComponent"),this.settingData=this.dialogData.settingData,this.globalTransVal=this.dialogData.globalTransVal}ngOnInit(){this.initCudaGpuVars(),setTimeout(()=>{this.showBtn=!0},0)}initCudaGpuVars(){this.selectedFeatureValue=this.settingData.featureCurrentValue,this.selectedFeatureValueArray=this.selectedFeatureValue.toString().split(";"),this.featureDisplayOptions=[],this.settingData.isGlobalContext||this.updateProfileOptions(),this.getGpuListToSelectFrom(this.settingData,!1).forEach(J=>{const $e={possibleValue:J,checked:!1,disabled:!1};this.selectedFeatureValue===j.DefaultGlobalEnum.UseGlobalValue?($e.checked=!1,$e.disabled=!0):this.selectedFeatureValue===j.CudaGpusValue.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE?$e.checked=!0:this.selectedFeatureValue===j.CudaGpusValue.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_ALL?$e.checked=!1:this.selectedFeatureValueArray.includes(J)||($e.checked=!0),this.featureDisplayOptions.push($e)})}getGpuListToSelectFrom(de,J){return J?de.featureGlobalValue.featureEnumKeys.filter($e=>this.patt.test($e)).map($e=>de.featureEnum[$e]).reverse():de.featureEnumKeys.filter($e=>this.patt.test($e)).map($e=>de.featureEnum[$e]).reverse()}updateProgramOptions(){this.userSelectionData.selectedKeyOrValue===j.DefaultGlobalEnum.UseGlobalValue.toString()&&this.featureDisplayOptions.forEach((de,J)=>{this.featureDisplayOptions[J].disabled=!0})}updateProfileOptions(){this.selectedFeatureValue===j.DefaultGlobalEnum.UseGlobalValue?(this.profileSelectOption.checked=!0,this.programSelectOption.checked=!1):(this.profileSelectOption.checked=!1,this.programSelectOption.checked=!0);const de=this.settingData.featureGlobalValue.CudaGpusValue.toString().split(";");this.getGpuListToSelectFrom(this.settingData,!0).forEach($e=>{const st={possibleValue:$e,checked:!1,disabled:!0};this.settingData.featureGlobalValue.CudaGpusValue===j.CudaGpusValue.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE?st.checked=!0:this.settingData.featureGlobalValue.CudaGpusValue===j.CudaGpusValue.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_ALL?st.checked=!1:de.includes($e)||(st.checked=!0),this.featureDisplayOptionsGlobal.push(st)})}deriveFinalCudaGpuVal(de,J){this.featureDisplayOptions[J].checked=!de.checked,this.updateUserSelectedOption(!1)}updateUserSelectedOption(de){this.userSelectionData={selectedKeyOrValue:"",displayValue:""};let J="",$e=0;this.featureDisplayOptions.forEach((st,Gt)=>{st.checked&&($e+=1),de&&(st.disabled=!1)}),0===$e?(this.userSelectionData.selectedKeyOrValue="NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_ALL",this.userSelectionData.displayValue=this.translateService.instant("manage3dSettings.CudaGpus.values.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_ALL")):$e===this.featureDisplayOptions.length?(this.userSelectionData.displayValue=1===$e?this.concatGpuStrings(this.featureDisplayOptions,!0):this.translateService.instant("manage3dSettings.CudaGpus.values.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE"),this.userSelectionData.selectedKeyOrValue="NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE"):(J=this.concatGpuStrings(this.featureDisplayOptions,!0),this.userSelectionData.selectedKeyOrValue=this.concatGpuStrings(this.featureDisplayOptions,!1),this.userSelectionData.displayValue=J),this.checkDirty()}concatGpuStrings(de,J){return de.filter($e=>J?$e.checked:!$e.checked).map($e=>$e.possibleValue).join(";")}updateUserSelectedForUseProfile(){this.userSelectionData={selectedKeyOrValue:j.DefaultGlobalEnum.UseGlobalValue.toString(),displayValue:this.translateService.instant("manage3dSettings.CudaGpus.values.UseGlobal")+" - "};let de="",J=0;this.featureDisplayOptionsGlobal.forEach(($e,st)=>{$e.checked&&(J+=1)}),0===J?this.userSelectionData.displayValue+=this.translateService.instant("manage3dSettings.CudaGpus.values.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_ALL"):J===this.featureDisplayOptionsGlobal.length?this.userSelectionData.displayValue+=1===J?this.concatGpuStrings(this.featureDisplayOptionsGlobal,!0):this.translateService.instant("manage3dSettings.CudaGpus.values.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE"):(de=this.concatGpuStrings(this.featureDisplayOptionsGlobal,!0),this.userSelectionData.displayValue+=de)}onUseProfileSelection(de){this.profileSelectOption.checked=de,this.programSelectOption.checked=!de,de?(this.updateUserSelectedForUseProfile(),this.updateProgramOptions(),this.checkDirty()):this.updateUserSelectedOption(!0)}checkDirty(){this.isDirty=this.selectedFeatureValue!==j.CudaGpusValue[this.userSelectionData.selectedKeyOrValue]&&this.selectedFeatureValue.toString()!==this.userSelectionData.selectedKeyOrValue}onCancelClick(){this.dialogRef.close(!1)}onApplyClick(){this.dialogRef.close(this.userSelectionData)}}return(Qe=zt).\u0275fac=function(de){return new(de||Qe)(H.rXU(Z.J6),H.rXU(X.c$),H.rXU(ce.Vh),H.rXU(ce.CP))},Qe.\u0275cmp=H.VBU({type:Qe,selectors:[["nv-app-feature-cudagpu-ui"]],decls:9,vars:6,consts:[["programCudaOptions",""],[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content","cuda-content"],[4,"ngIf","ngIfElse"],["align","end","class","actions",4,"ngIf"],["class","profile-cuda-container",4,"ngFor","ngForOf"],[1,"profile-cuda-container"],[3,"change","checked"],[1,"font-body2"],["aria-label","Select an option"],[1,"option-content-container",3,"change","disabled","checked","value"],[1,"option-content"],[1,"font-body2","option-text",3,"ngClass"],["class","program-cuda-container",4,"ngFor","ngForOf"],[1,"option-content-container","program-select-section",3,"change","disabled","checked","value"],[1,"program-cuda-container"],[3,"checked","disabled"],[3,"change","checked","disabled"],["align","end",1,"actions"],["mat-button","","aria-label","Cancel",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","","aria-label","Apply",1,"apply-button","font-button2","mat-accent",3,"click","disabled"]],template:function(de,J){if(1&de&&(H.j41(0,"div",1)(1,"p",2),H.EFF(2),H.nI1(3,"translate"),H.k0s(),H.j41(4,"mat-dialog-content",3),H.DNE(5,ot,2,1,"ng-container",4)(6,Re,13,16,"ng-template",null,0,H.C5r),H.k0s(),H.DNE(8,Ue,7,7,"mat-dialog-actions",5),H.k0s()),2&de){const $e=H.sdS(7);H.R7$(2),H.SpI(" ",H.bMT(3,4,"manage3dSettings."+(null==J.settingData?null:J.settingData.featureName)+".name")," "),H.R7$(3),H.Y8G("ngIf",J.settingData.isGlobalContext)("ngIfElse",$e),H.R7$(3),H.Y8G("ngIf",J.showBtn)}},dependencies:[ue.YU,ue.Sq,ue.bT,Me.iV,be.NZ,ce.BI,ce.Yi,ce.E7,Q.tG,ne.Aq,Ge.VT,Ge._g,ge.PW,X.D9],styles:[".profile-cuda-container[_ngcontent-%COMP%]{padding:8px 16px 0}.program-cuda-container[_ngcontent-%COMP%]{padding:0 36px}.program-select-section[_ngcontent-%COMP%]{margin-top:16px}.option-content[_ngcontent-%COMP%]{padding-left:12px}.mat-mdc-radio-group[_ngcontent-%COMP%]{padding:8px 16px 0;display:flex;flex-direction:column;align-items:flex-start;gap:8px}"]}),zt})();var W=c(5428);function Pe(Qe,zt){if(1&Qe&&(H.j41(0,"div",7),H.EFF(1),H.nI1(2,"translate"),H.k0s()),2&Qe){const Vt=H.XpG();H.R7$(),H.SpI(" ",H.bMT(2,1,"manage3dSettings."+(null==Vt.settingData?null:Vt.settingData.featureName)+".values.DLScalingHeader")," ")}}function le(Qe,zt){if(1&Qe){const Vt=H.RV6();H.j41(0,"div",12)(1,"mat-checkbox",13),H.bIt("change",function(){const J=H.eBV(Vt).index,$e=H.XpG();return H.Njj($e.updateSelectedDSRFactor(J,!0))}),H.j41(2,"div",14),H.EFF(3),H.k0s()()()}if(2&Qe){const Vt=zt.$implicit;H.R7$(),H.Y8G("checked",Vt.isSelected)("disabled",Vt.isDisabled),H.R7$(2),H.SpI(" ",Vt.factorDisplayValue+" ("+Vt.resolution+")"," ")}}function oe(Qe,zt){if(1&Qe&&(H.j41(0,"div",15),H.EFF(1),H.nI1(2,"translate"),H.k0s()),2&Qe){const Vt=H.XpG();H.R7$(),H.SpI(" ",H.bMT(2,1,"manage3dSettings."+(null==Vt.settingData?null:Vt.settingData.featureName)+".values.LegacyScalingHeader")," ")}}function Le(Qe,zt){if(1&Qe){const Vt=H.RV6();H.j41(0,"div",12)(1,"mat-checkbox",13),H.bIt("change",function(){const J=H.eBV(Vt).index,$e=H.XpG();return H.Njj($e.updateSelectedDSRFactor(J,!1))}),H.j41(2,"div",14),H.EFF(3),H.k0s()()()}if(2&Qe){const Vt=zt.$implicit;H.R7$(),H.Y8G("checked",Vt.isSelected)("disabled",Vt.isDisabled),H.R7$(2),H.SpI(" ",Vt.factorDisplayValue+" ("+Vt.resolution+")"," ")}}function Oe(Qe,zt){if(1&Qe){const Vt=H.RV6();H.j41(0,"mat-dialog-actions",16)(1,"button",17),H.bIt("click",function(){H.eBV(Vt);const J=H.XpG();return H.Njj(J.onCancelClick())}),H.EFF(2),H.nI1(3,"translate"),H.k0s(),H.j41(4,"button",18),H.bIt("click",function(){H.eBV(Vt);const J=H.XpG();return H.Njj(J.onApplyClick())}),H.EFF(5),H.nI1(6,"translate"),H.k0s()()}if(2&Qe){const Vt=H.XpG();H.R7$(2),H.SpI(" ",H.bMT(3,3,"save.cancel")," "),H.R7$(2),H.Y8G("disabled",!Vt.isDirty),H.R7$(),H.SpI(" ",H.bMT(6,5,"save.apply")," ")}}let ye=(()=>{var Qe;class zt{constructor(de,J,$e,st){this.loggingService=de,this.dialogData=J,this.dialogRef=$e,this.manage3dSettingsUtilService=st,this.settingData={},this.selectedFeatureJsonInit={},this.selectedFeatureJsonPossibleValues={},this.selectedFeatureJsonUpdated={},this.dLDSRFactors=[],this.legacyDSRFactors=[],this.patt=new RegExp(fe.M5),this.userSelectionData={},this.isDirty=!1,this.isSliderDisabled=!1,this.minValue=fe.$F.minValue,this.maxValue=fe.$F.maxValue,this.stepValue=fe.$F.stepValue,this.sliderValue=fe.$F.defaultValue,this.logger=this.loggingService.getLogger("nvapp/FeatureDSRFactorsComponent"),this.settingData=this.dialogData.settingData,this.globalTransVal=this.dialogData.globalTransVal}ngOnInit(){this.initDSRVars(),setTimeout(()=>{this.showBtn=!0},0)}initDSRVars(){this.selectedFeatureValue=this.settingData.featureCurrentValue;const de=this.settingData.featureEnumKeys.find(J=>this.patt.test(J));this.selectedFeatureJsonInit=JSON.parse(this.selectedFeatureValue.toString()),this.selectedFeatureJsonPossibleValues=JSON.parse(this.settingData.featureEnum[de]),this.sliderValue=this.selectedFeatureJsonInit?.smoothness??this.sliderValue,this.dLDSRFactors=this.selectedFeatureJsonPossibleValues.factorInformation.filter(J=>J.isDLDSRFactor).map(J=>this.getFactorDisplayInfo(J)),this.legacyDSRFactors=this.selectedFeatureJsonPossibleValues.factorInformation.filter(J=>!J.isDLDSRFactor).map(J=>this.getFactorDisplayInfo(J)),this.updateSliderDisable()}getFactorDisplayInfo(de){const J=this.selectedFeatureJsonInit.factorInformation.find(st=>st.factorValue===de.factorValue&&st.isDLDSRFactor===de.isDLDSRFactor),$e=this.selectedFeatureJsonInit.factorInformation.find(st=>st.factorValue===de.factorValue&&st.isDLDSRFactor===!de.isDLDSRFactor);return de.isSelected=!!J,{...de,factorDisplayValue:fe.UY[de.factorValue],isDisabled:!!$e}}onSliderValueChanged(de){this.updateSelectedDisplayValue()}updateSliderDisable(){this.isSliderDisabled=0===[...this.dLDSRFactors,...this.legacyDSRFactors].filter(de=>de.isSelected).length,this.isSliderDisabled&&(this.sliderValue=fe.$F.defaultValue)}updateSelectedDisplayValue(){this.selectedFeatureJsonUpdated.smoothness=this.sliderValue,this.selectedFeatureJsonUpdated.factorInformation=this.legacyDSRFactors.concat(this.dLDSRFactors).filter(de=>de.isSelected).map(de=>({factorValue:de.factorValue,isDLDSRFactor:de.isDLDSRFactor,isSelected:de.isSelected,resolution:de.resolution})),this.updateSliderDisable(),this.selectedFeatureDisplayValue=this.manage3dSettingsUtilService.getDSRDisplayText(this.settingData.featureName,JSON.stringify(this.selectedFeatureJsonUpdated)),this.checkDirty(),this.userSelectionData.displayValue=this.selectedFeatureDisplayValue,this.userSelectionData.selectedKeyOrValue=JSON.stringify(this.selectedFeatureJsonUpdated)}updateSelectedDSRFactor(de,J){if(J){this.dLDSRFactors[de].isSelected=!this.dLDSRFactors[de].isSelected;const $e=this.legacyDSRFactors.findIndex(st=>st.factorValue===this.dLDSRFactors[de].factorValue);$e>=0&&(this.legacyDSRFactors[$e].isDisabled=this.dLDSRFactors[de].isSelected,this.legacyDSRFactors[$e].isDisabled&&(this.legacyDSRFactors[$e].isSelected=!1))}else{this.legacyDSRFactors[de].isSelected=!this.legacyDSRFactors[de].isSelected;const $e=this.dLDSRFactors.findIndex(st=>st.factorValue===this.legacyDSRFactors[de].factorValue);$e>=0&&(this.dLDSRFactors[$e].isDisabled=this.legacyDSRFactors[de].isSelected,this.dLDSRFactors[$e].isDisabled&&(this.dLDSRFactors[$e].isSelected=!1))}this.updateSelectedDisplayValue()}checkDirty(){this.isDirty=!(0,Y.isEqual)(this.selectedFeatureJsonUpdated,this.selectedFeatureJsonInit)}onCancelClick(){this.dialogRef.close(!1)}onApplyClick(){this.dialogRef.close(this.userSelectionData)}}return(Qe=zt).\u0275fac=function(de){return new(de||Qe)(H.rXU(Z.J6),H.rXU(ce.Vh),H.rXU(ce.CP),H.rXU(pe))},Qe.\u0275cmp=H.VBU({type:Qe,selectors:[["nv-app-feature-dsr-factors"]],decls:17,vars:16,consts:[[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"dsr-content","content"],["class","font-sub1 font-color-primary",4,"ngIf"],["class","profile-dsr-container",4,"ngFor","ngForOf"],["class","font-sub1 font-color-primary legacy-header",4,"ngIf"],[1,"content-details"],[1,"font-sub1","font-color-primary"],[1,"slider-content"],[1,"smoothness-slider"],["formatTextAs","Integer","valueEntry","true",1,"common-slider",3,"valueChange","value","min","max","step","disabled"],["align","end","class","actions",4,"ngIf"],[1,"profile-dsr-container"],[3,"change","checked","disabled"],[1,"font-body2"],[1,"font-sub1","font-color-primary","legacy-header"],["align","end",1,"actions"],["mat-button","","aria-label","Cancel",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","","aria-label","Apply",1,"apply-button","font-button2","mat-accent",3,"click","disabled"]],template:function(de,J){1&de&&(H.j41(0,"div",0)(1,"p",1),H.EFF(2),H.nI1(3,"translate"),H.k0s(),H.j41(4,"mat-dialog-content",2),H.DNE(5,Pe,3,3,"div",3)(6,le,4,3,"div",4)(7,oe,3,3,"div",5)(8,Le,4,3,"div",4),H.j41(9,"div",6)(10,"div",7),H.EFF(11),H.nI1(12,"translate"),H.k0s(),H.j41(13,"div",8)(14,"div",9)(15,"nv-hig-slider",10),H.mxI("valueChange",function(st){return H.DH7(J.sliderValue,st)||(J.sliderValue=st),st}),H.bIt("valueChange",function(st){return J.onSliderValueChanged(st)}),H.k0s()()()()(),H.DNE(16,Oe,7,7,"mat-dialog-actions",11),H.k0s()),2&de&&(H.R7$(2),H.SpI(" ",H.bMT(3,12,"manage3dSettings."+(null==J.settingData?null:J.settingData.featureName)+".name")," "),H.R7$(3),H.Y8G("ngIf",J.dLDSRFactors.length>0),H.R7$(),H.Y8G("ngForOf",J.dLDSRFactors),H.R7$(),H.Y8G("ngIf",J.legacyDSRFactors.length>0),H.R7$(),H.Y8G("ngForOf",J.legacyDSRFactors),H.R7$(3),H.JRh(H.bMT(12,14,"manage3dSettings.DSRSmoothness.name")),H.R7$(4),H.R50("value",J.sliderValue),H.Y8G("min",J.minValue)("max",J.maxValue)("step",J.stepValue)("disabled",J.isSliderDisabled),H.R7$(),H.Y8G("ngIf",J.showBtn))},dependencies:[ue.Sq,ue.bT,Me.iV,be.NZ,ce.BI,ce.Yi,ce.E7,W.t,Q.tG,ne.Aq,X.D9],styles:[".content-details[_ngcontent-%COMP%]{padding:10px 0 0}.common-modal[_ngcontent-%COMP%]   .dsr-content[_ngcontent-%COMP%]{padding-left:16px}.common-modal[_ngcontent-%COMP%]   .legacy-header[_ngcontent-%COMP%]{padding-top:10px}.profile-dsr-container[_ngcontent-%COMP%]{margin-left:16px}.option-content-container[_ngcontent-%COMP%]:nth-of-type(2){margin-top:16px}.slider-content[_ngcontent-%COMP%]{margin-left:16px;margin-right:16px}.slider-indicators[_ngcontent-%COMP%]   .max-value[_ngcontent-%COMP%]{margin-right:60px}mat-checkbox[_ngcontent-%COMP%]{line-height:48px;pointer-events:none}.smoothness-slider[_ngcontent-%COMP%]{display:flex}.dsr-content[_ngcontent-%COMP%]{margin-top:14px}","[_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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%]   .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%]   .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:#191919;padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.feature-expansion-panel-container[_ngcontent-%COMP%]   .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%]   .setting-value.is-loading[_ngcontent-%COMP%]{color:#636363}.feature-expansion-panel-container[_ngcontent-%COMP%]   .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%]   .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%]   .loading-indicator-container[_ngcontent-%COMP%]   mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%]   .color-unset[_ngcontent-%COMP%]{color:unset}"]}),zt})();var Ie=c(25864),at=c(96277),K=c(96306),ve=c(93818),De=c(95212);let pe=(()=>{var Qe;class zt{constructor(de,J,$e,st,Gt,Zt,kn,Un,ni){this.translateService=de,this.loggingService=J,this.manage3dSettingsAPIService=$e,this.dbService=st,this.errorHandlerService=Gt,this.matDialog=Zt,this.hardwareInformationService=kn,this.manage3dSettingsTelemetryService=Un,this.genericDialog=ni,this.globalSettingsInfoObjArraySubject=new r.B7,this.profileSettingsInfoObjArraySubject=new n.m(1),this.globalPreferredProcessorSubject=new n.m(1),this.globalPreferredProcessor$=this.globalPreferredProcessorSubject.asObservable(),this.globalJsonSettingsSupportSubject=new v.t(null),this.gpuArchitectureInfo=null,this.dialogData={},this.unlocalisedKeyCheck=new RegExp(fe.M5),this.settingsDisableNotification$=new r.B7,this.allSettingsLoaded$=new r.B7,this.dependentMessageArr=[],this.refreshAppList$=new r.B7,this.nvcplApiError$=new n.m(1),this.graphicsSettingsTabChanged$=new r.B7,this.showRTXHdrToast=!1,this.logger=this.loggingService.getLogger("nvapp/Manage3dSettingsUtilService"),this.globalStore=this.dbService.getGlobalStore(te.xI.GlobalStore)}getGlobalSettings(){return this.globalSettingsInfoObjArraySubject.asObservable()}getProfileSettings(){return this.profileSettingsInfoObjArraySubject.asObservable()}getGlobalJsonSettingsSupport(){return this.globalJsonSettingsSupportSubject.asObservable()}getGpuArchitectureInfo(){return this.gpuArchitectureInfo}getGraphicsSettingsTabChange(){return this.graphicsSettingsTabChanged$.asObservable()}emitGraphicsSettingsTabChanged(){this.graphicsSettingsTabChanged$.next()}getShowRTXHdrToast(){return this.showRTXHdrToast}setShowRTXHdrToast(de){this.showRTXHdrToast=de}refreshProfileSettingsInfo(de,J,$e){return this.logger.info(`Calling refreshAllProfileSettings for profile ${de.profileName}`),this.manage3dSettingsAPIService.getBaseSettings().pipe((0,S.n)(st=>this.refreshAllProfileSettings(st,de,J,$e)),(0,l.T)(st=>this.checkIsDisableDependent(st)),(0,s.M)(st=>{this.logger.info(`Received settings for profile ${de.profileName} `,st)}),(0,u.W)(st=>(this.logger.error(`Error encountered during refreshAllProfileSettings for profile ${de.profileName}`,JSON.stringify(st)),this.nvcplApiError$.next(!0),this.manage3dSettingsTelemetryService.send3DSettingsLoadErrorTelemetry(!0,st,de,de.profileName),(0,h.$)(st))))}resolveUseGlobalValue(de,J,$e,st,Gt){const Zt=this.getUnderLyingGlobalValue(st,Gt);if(Zt)return Zt;const kn=this.resolveCorrespondingGlobalVal(st,$e);let Un="";if(de){for(const ni in J)if(ni&&J[ni]===kn){Un=ni;break}switch(st){case j.JsonTypeSettings.DSRFactor:return kn.toString();case j.DynamicSettings.CudaGpus:const ni=this.resolveCudaGpuDisplayText(kn,J);if(ni)return ni}if(this.unlocalisedKeyCheck.test(Un)&&1===$e.SettingInfo.SettingType)return kn.toString()}else if(Un=J[kn],!Un)return kn.toString();return this.getSettingTranslatedText(st,Un)}resolveCudaGpuDisplayText(de,J){return de===j.CudaGpusValue.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE?this.checkSpecialCaseForSettings(J):this.resolveExcludedGpus(de,J)}resolveExcludedGpus(de,J){if(de&&J&&de!==j.CudaGpusValue.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE&&de!==j.CudaGpusValue.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_ALL&&de!==j.DefaultGlobalEnum.UseGlobalValue){const $e=de.toString().split(";"),Gt=Object.keys(J).filter(kn=>!!kn.match(this.unlocalisedKeyCheck))??null,Zt=[];return Gt.forEach(kn=>{$e.includes(J[kn])||Zt.push(J[kn])}),Zt.join(";")}}getUnderLyingGlobalValue(de,J){switch(de){case j.StaticSliderSettings.ImageSharpeningToggle:case j.StaticSliderSettings.MaxFrameRate:case j.JsonTypeSettings.AIDVC:case j.JsonTypeSettings.AIHDR:case j.JsonTypeSettings.ImageScaling:return J}}resolveCorrespondingGlobalVal(de,J){let $e=J[de+fe.lz];switch(de){case j.JsonTypeSettings.BatteryBoost:$e=JSON.parse($e)?.enabled?j.BatteryBoostValue.On:j.BatteryBoostValue.Off;break;case j.JsonTypeSettings.WhisperMode:$e=JSON.parse($e)?.enabled?j.WhisperModeValue.On:j.WhisperModeValue.Off;break;case j.JsonTypeSettings.ImageScaling:$e=JSON.parse($e)?.enabled?j.ImageScalingValue.On:j.ImageScalingValue.Off;break;case j.JsonTypeSettings.AIHDR:$e=JSON.parse($e)?.enabled?j.AIHDRValue.On:j.AIHDRValue.Off;break;case j.JsonTypeSettings.AIDVC:$e=JSON.parse($e)?.enabled?j.AIDVCValue.On:j.AIDVCValue.Off;break;case j.JsonTypeSettings.DSRFactor:$e=this.getDSRDisplayText(de,$e)}return $e}refreshGlobalSettings(de,J=!0){return this.refreshProfileSettingsInfo(de,!0,J).pipe((0,m.s)(1),(0,l.T)($e=>(this.globalSettingsInfoObjArraySubject.next($e),$e)),(0,u.W)($e=>(this.globalSettingsInfoObjArraySubject.error($e),this.logger.error(`Error refreshing global settings for profile ${de.profileName} `,$e),(0,h.$)($e))))}refreshProfileSettings(de,J=!0){return this.refreshProfileSettingsInfo(de,!1,J).pipe((0,m.s)(1),(0,l.T)($e=>(this.profileSettingsInfoObjArraySubject.next($e),$e)),(0,u.W)($e=>(this.profileSettingsInfoObjArraySubject.error($e),this.logger.error(`Error refreshing profile settings for profile ${de.profileName} `,$e),(0,h.$)($e))))}refreshAllProfileSettings(de,J,$e,st){const Gt=[],Zt=de.slice();return this.manage3dSettingsAPIService.getAllSettingsForProfile(J,st).pipe((0,l.T)(kn=>(this.logger.info("allSettingsInfo = ",kn),Zt.forEach((Un,ni)=>{const qe=kn.profileSettingInfo.find(mi=>mi.SettingEnum===Un.settingValue.SettingInfo.enumId);if(qe){const mi=this.getFeatureValue(qe.SettingValue.SettingType,qe.SettingValue),Bi=Un.settingName;if(Zt[ni].settingValue[Bi+fe.lz]=mi,Zt[ni].settingValue.isUserModified=1===qe.SettingValue.IsUserModified,Zt[ni].settingValue.isGreyedOut=!$e&&qe.SettingValue.IsDisabled,this.isJsonTypeSetting(Bi)){const Vn=this.getErrorCodes(qe.SettingValue.errorCode);Zt[ni].settingValue.SettingInfo.isSupported=!qe.SettingValue.IsDisabled;const ht=[];let it=!1;it=Vn?.some(Ct=>this.isHardConstraint(Ct)),it||Vn?.forEach(Ct=>{this.isSoftConstraint(Ct)&&(ht.push(fe.K4[Ct]),Zt[ni].settingValue.SettingInfo.isSupported=!0,Zt[ni].settingValue.isGreyedOut=qe.SettingValue.IsDisabled)}),Zt[ni].settingValue.errorMessages=ht}const Bn=this.getFeatureValue(qe.SettingValue.SettingType,qe.SettingDefaultValue);Zt[ni].settingValue.settingDefaultValue=Bn;const jn=Zt[ni].settingValue,It=this.getFeatureDefaultValue(jn?.SettingInfo?.enumId,jn),vn=this.resolveFeatureEnum(jn,Bi,It,$e).pipe((0,s.M)(({featureEnum:Vn,featureEnumKeys:ht,featureDefaultValue:it})=>{Vn&&(Zt[ni].settingValue.featureEnum=Vn,Zt[ni].settingValue.featureEnumKeys=ht,Zt[ni].settingValue.settingDefaultKey=it)}));Gt.push(vn)}else Un.settingValue.SettingInfo.isSupported&&this.logger.error(Un.settingName," not found even when isSupported true from getprofilesettingsinfo")}),Gt)),(0,S.n)(kn=>(0,f.p)([(0,A.x)(...kn)]).pipe((0,l.T)(()=>Zt))))}getErrorCodes(de){const J=de.toString(2),$e=[];for(let st=0;st<J.length;st++)"1"===J[st]&&$e.push(Math.pow(2,J.length-1-st));return this.logger.info("Error Codes from number ",$e),$e}isJsonTypeSetting(de){switch(de){case j.JsonTypeSettings.AIDVC:case j.JsonTypeSettings.AIHDR:case j.JsonTypeSettings.WhisperMode:return!0;default:return!1}}resolveFeatureEnum(de,J,$e,st){return this.getFeatureEnum(de,J,st).pipe((0,l.T)(Gt=>{if(Gt){const Zt=this.extractFeatureEnumKeys(Gt);let kn;return kn=de.SettingInfo.isDynamic||J in j.StaticSliderSettings?Object.keys(Gt).find(Un=>$e===Gt[Un]):Gt[$e],st&&this.emitJsonTypeSetting(de,J),{featureEnum:Gt,featureEnumKeys:Zt,featureDefaultValue:kn}}return this.logger.error(`featureEnum for ${J} missing `),{featureEnum:null,featureEnumKeys:[],featureDefaultValue:""}}),(0,u.W)(Gt=>(0,h.$)(Gt)))}getFeatureValue(de,J){let $e="";switch(de){case 0:case 2:$e=J.IntegerValue;break;case 1:$e=J.StringValue;break;case 3:$e=J.JsonStringValue;break;default:this.logger.info("Invalid setting type received ",J.SettingType)}return $e}getFeatureDefaultValue(de,J){let $e;switch(de){case 65537:$e=j.BatteryBoostValue.On;break;case 65538:$e=j.WhisperModeValue.Off;break;case 65539:$e=j.ImageScalingValue.Off;break;case 65540:$e=j.AIHDRValue.Off;break;case 65541:$e=j.AIDVCValue.Off;break;default:$e=J.settingDefaultValue}return $e}isSoftConstraint(de){return!!j.DriverSettingsSoftConstraints[de]}isHardConstraint(de){return!!j.DriverSettingsHardConstraints[de]}emitJsonTypeSetting(de,J){if(J===j.JsonTypeSettings.BatteryBoost||J===j.JsonTypeSettings.WhisperMode||J===j.JsonTypeSettings.ImageScaling){let $e=null,st=null,Gt=null;const Zt=this.globalJsonSettingsSupportSubject.getValue();if(J===j.JsonTypeSettings.BatteryBoost){const mi=JSON.parse(de?.BatteryBoostValue);$e={isSupported:de.SettingInfo.isSupported,isEnabled:mi.enabled,version:mi.version},this.logger.info("batteryBoost Criteria",$e)}if(J===j.JsonTypeSettings.WhisperMode){const mi=JSON.parse(de?.WhisperModeValue);st={isSupported:de.SettingInfo.isSupported,isEnabled:mi.enabled,version:mi.version},this.logger.info("whisperMode Criteria",st)}if(J===j.JsonTypeSettings.ImageScaling){const mi=JSON.parse(de?.ImageScalingValue);Gt={isSupported:de.SettingInfo.isSupported,isEnabled:mi.enabled,version:2},this.logger.info("imageScaling Criteria",Gt)}const qe={BatteryBoost:{...$e||Zt?.BatteryBoost,applyOps:!1},WhisperMode:{...st||Zt?.WhisperMode,applyOps:!1},NIS:{...Gt||Zt?.NIS,applyOps:!1}};this.globalJsonSettingsSupportSubject.next(qe)}}handleToggleChangedForJsonSettings(de,J=!1,$e,st){this.logger.info("Sending event When toggle changed for feature ",de);const Gt=this.globalJsonSettingsSupportSubject.getValue();de===j.JsonTypeSettings.BatteryBoost?(Gt.BatteryBoost.applyOps=!0,Gt.BatteryBoost.isEnabled=J):Gt.BatteryBoost.applyOps=!1,de===j.JsonTypeSettings.WhisperMode?(Gt.WhisperMode.applyOps=!0,Gt.WhisperMode.isEnabled=J):Gt.WhisperMode.applyOps=!1,Gt.NIS.isGlobalContext=$e,Gt.NIS.localId=st,de===j.JsonTypeSettings.ImageScaling?(Gt.NIS.applyOps=!0,Gt.NIS.isEnabled=J):Gt.NIS.applyOps=!1,this.globalJsonSettingsSupportSubject.next({...Gt})}getFeatureEnumForDynamicSettings(de,J,$e){const st=$e+fe.lz;switch(de){case fe.qn.type_string:return this.featureEnumForStringTypeSettings(J,st);case fe.qn.type_integer:return this.manage3dSettingsAPIService.getProfileScalarSettingPossibleValuesParameters({ProfileSettingEnum:J}).pipe((0,S.n)(Zt=>this.deriveFeatureEnumObject(st,Zt.values)));case fe.qn.type_json_string:return this.getJsonTypeFeatureEnum($e,st,J)}}featureEnumForStringTypeSettings(de,J){return this.manage3dSettingsAPIService.getProfileStringSettingPossibleValues({ProfileSettingEnum:de}).pipe((0,S.n)(st=>this.deriveFeatureEnumObject(J,st.values)))}getFeatureEnumForStaticSettings(de,J){const $e=J+fe.lz;switch(de){case fe.qn.type_boolean:return(0,M.of)(j.boolEnum);case fe.qn.type_string:return void this.logger.info(`String type setting is expected to be dynamic, something incorrect for featureName ${J} .`);case fe.qn.type_integer:case fe.qn.type_json_string:return(0,M.of)(j[$e]);default:return void this.logger.info(`Invalid feature type ${de} Ideally shouldn't come here`)}}deriveFeatureEnumObject(de,J){const $e=j[de];if(!$e)return(0,h.$)(`FeatureEnums does not have ${de} defined as key`);const st=Object.keys($e),Gt={};return J.forEach((Zt,kn)=>{const Un=st.find(ni=>Zt===$e[ni]);Un?Gt[Un]=$e[Un]:Gt[fe.M5+kn]=Zt}),(0,M.of)(Gt)}getFeatureEnum(de,J,$e){return this.getFeatureEnumSettings(de,J).pipe((0,l.T)(st=>($e||(st=Object.assign({UseGlobal:j.DefaultGlobalEnum.UseGlobalValue},st)),st)))}getFeatureEnumSettings(de,J){return de.SettingInfo.isDynamic?this.getFeatureEnumForDynamicSettings(de.SettingInfo.SettingType,de.SettingInfo.enumId,J):this.getFeatureEnumForStaticSettings(de.SettingInfo.SettingType,J)}extractFeatureEnumKeys(de){return Object.keys(de).filter($e=>(0,Y.isNaN)(Number($e)))}setProfileSettingValue(de,J,$e){const st={ProfileName:$e.profileName,ProfileSettingEnum:de.SettingInfo.enumId,ApplicationId:$e.applicationId,CmsId:$e.cmsId},Gt={};if(J.selectedFeatureValue.toString()===j.DefaultGlobalEnum.UseGlobalValue.toString())Gt.IntegerValue=+J.selectedFeatureValue,Gt.StringValue="",Gt.SettingType=0;else switch(de.SettingInfo.SettingType){case 0:case 2:Gt.IntegerValue=+J.selectedFeatureValue,Gt.StringValue="",Gt.SettingType=0;break;case 1:Gt.StringValue=J.selectedFeatureValue.toString(),Gt.IntegerValue=0,Gt.SettingType=de.SettingInfo.SettingType;break;case 3:Gt.JsonStringValue=J.selectedFeatureValue.toString(),Gt.IntegerValue=0,Gt.StringValue="",Gt.SettingType=de.SettingInfo.SettingType;break;default:return void this.logger.error("Invalid feature ",J.settingName)}return st.SettingValue=Gt,this.manage3dSettingsAPIService.setProfileSetting(st)}updateProgramFeatureEdit(de){this.globalPreferredProcessorSubject.next(de)}getJsonTypeFeatureEnum(de,J,$e){switch(de){case j.JsonTypeSettings.BatteryBoost:case j.JsonTypeSettings.WhisperMode:case j.JsonTypeSettings.ImageScaling:case j.JsonTypeSettings.AIHDR:case j.JsonTypeSettings.AIDVC:return(0,M.of)(j[J]);case j.JsonTypeSettings.DSRFactor:return this.featureEnumForStringTypeSettings($e,J);default:return void this.logger.info("Feature details not found for ",de)}}addManualApplication(de){const $e=de.replace(/^.*[\\\/]/,"");return this.manage3dSettingsAPIService.addManualApplication(de,$e).pipe((0,u.W)(st=>(this.errorHandlerService.showToastMessage({text:st?.message??st}).subscribe(),this.logger.error(st),(0,M.of)(!1))))}prepareRestoreDialogConfig(de,J,$e){let st="";st=de?$e?"restoreParentProfile.all":"restoreProgram.all":$e?"restoreParentProfile.single":"restoreProgram";const Gt=(0,T.H)(J).pipe((0,I.H)(kn=>this.manage3dSettingsAPIService.restoreDefaultForProfile(kn)),(0,R.o)(1)),Zt={};return this.dialogData={showSpinner:!1,headerText:{text:`manage3dSettings.${st}.headerText`},bodyText:{text:`manage3dSettings.${st}.bodyText`,translated:!1,placeholders:{profile:J[0]}},translateValues:{profile:J[0]},primaryButton:{text:"manage3dSettings.restoreParentProfile.primaryButton"},secondaryButton:{text:"manage3dSettings.restoreParentProfile.secondaryButton"},autoFocusOnPrimaryButton:!1},Zt.panelClass=["dialogPaddingRemove"],Zt.disableClose=!0,Zt.autoFocus=!1,Zt.data=this.dialogData,[st,Zt,Gt]}confirmAndRestoreProfiles(de,J,$e){const[st,Gt,Zt]=this.prepareRestoreDialogConfig(de,J,$e);this.restoreDialogRef=this.genericDialog.open(Gt,{disableFocusRestore:!0});const kn=this.restoreDialogRef.primaryButtonClick.pipe((0,m.s)(1),(0,O.u)(!0)),Un=this.restoreDialogRef.secondaryButtonClick.pipe((0,m.s)(1),(0,O.u)(!1));return(0,E.h)(kn,Un).pipe((0,S.n)(ni=>ni?(this.dialogData.primaryButton.spinnerOverlay=!0,this.dialogData.secondaryButton.isDisabled=!0,this.dialogData.primaryButton.removeButtonTextOnClick=!0,this.manage3dSettingsTelemetryService.sendRestoreTelemetry($e,de,J),Zt.pipe((0,m.s)(1),(0,u.W)(qe=>(this.dialogData.primaryButton.spinnerOverlay=!1,this.dialogData.primaryButton.isDisabled=!1,this.dialogData.primaryButton.removeButtonTextOnClick=!0,this.restoreDialogRef.close(),(0,h.$)(qe))))):(this.restoreDialogRef.close(),(0,M.of)(!1))))}closeRestoreDialog(){this.restoreDialogRef&&this.restoreDialogRef.close()}getCurrentValueForJsonTypeSetting(de,J,$e){let st;const Gt=JSON.parse(de?.featureCurrentValue.toString());return st=de?.isGlobalContext?Gt?.enabled?J:$e:Gt?.useGlobal||de.featureName===j.JsonTypeSettings.BatteryBoost||de.featureName===j.JsonTypeSettings.WhisperMode?j.DefaultGlobalEnum.UseGlobalValue:Gt?.enabled?J:$e,st}clearProgramSettingsBuffer(){this.profileSettingsInfoObjArraySubject.next([])}showApplyErrorToastMessage(de){this.errorHandlerService.showToastMessage({text:"manage3dSettings.anErrorOccurred",placeholders:{errorText:de.message??""},translated:!1}).subscribe()}getSettingsDisableNotification(){return this.settingsDisableNotification$.asObservable()}checkIsDisableDependent(de){const J=de.find(Zt=>Zt.settingName===j.DependentSettingsList.MonitorTechnology),$e=de.find(Zt=>Zt.settingName===j.DependentSettingsList.AntialiasingMode);if(!J&&!$e)return this.logger.error("Monitor technology and Antialiasing mode settings are not available, cannot update disable dependent settings"),de;const st=J?.settingValue[j.DependentSettingsList.MonitorTechnology+fe.lz],Gt=$e?.settingValue[j.DependentSettingsList.AntialiasingMode+fe.lz];return de.forEach((Zt,kn)=>{const Un=de[kn];switch(Un.settingValue.isDisableDueToDependent=!1,Zt.settingName){case j.DependentSettingsList.PowerManagementPanel:st&&(Un.settingValue.isDisableDueToDependent=0!==st);break;case j.DependentSettingsList.StereoEnable:st&&(Un.settingValue.isDisableDueToDependent=0===st);break;case j.DependentSettingsList.AntialiasingSetting:Gt&&(Un.settingValue.isDisableDueToDependent=1===Gt||3===Gt);break;case j.DependentSettingsList.AntialiasingTransparency:Gt&&(Un.settingValue.isDisableDueToDependent=3===Gt)}}),de}checkForSettingDisable(de,J){const $e={disableNotification:[],isGlobalContext:J},st=de.selectedFeatureValue;switch($e.isGlobalContext=J,de.settingName){case j.DependentSettingsList.MonitorTechnology:$e.disableNotification.push({settingName:j.DependentSettingsList.PowerManagementPanel,isDisabled:0!==st}),$e.disableNotification.push({settingName:j.DependentSettingsList.StereoEnable,isDisabled:0===st});break;case j.DependentSettingsList.AntialiasingMode:$e.disableNotification.push({settingName:j.DependentSettingsList.AntialiasingSetting,isDisabled:1===st||3===st}),$e.disableNotification.push({settingName:j.DependentSettingsList.AntialiasingTransparency,isDisabled:3===st})}$e.disableNotification.length>0&&(this.dependentMessageArr=$e.disableNotification.map(Gt=>Gt.settingName),this.dependentMessageArr.unshift(de.settingName),this.settingsDisableNotification$.next($e))}showToastForDependentSetting(){if(this.dependentMessageArr.length>0){let de="";de=this.dependentMessageArr.slice(0,this.dependentMessageArr.length-1).join(", ");const J={text:"manage3dSettings.dependentSettingsUpdated",placeholders:{primaryText:de,lastSetting:this.dependentMessageArr.slice(-1)},translated:!1};this.errorHandlerService.showToastMessage(J).subscribe(),this.dependentMessageArr=[]}}allSettingsLoaded(){return this.allSettingsLoaded$.asObservable()}notifySettingsLoaded(){this.allSettingsLoaded$.next(!0)}saveHideStatusAndRefresh(de){return this.saveFingerPrintDbAppHideStatus(de).pipe((0,m.s)(1),(0,s.M)(()=>{this.refreshAppList$.next(de),this.logger.info(`App ${de.displayName} updated with hide status as  ${de.isHidden}`)}),(0,u.W)(J=>(this.logger.error(`Some error occured while saving hide status of ${de.displayName}`,J),(0,h.$)(J))))}getAppHideStatus(){return this.refreshAppList$.asObservable()}saveFingerPrintDbAppHideStatus(de){return this.globalStore.getItem(te.xI.HiddenApps).pipe((0,S.n)(J=>{const $e=J??[];if(0===$e.length)de.isHidden&&$e.push(de);else{let st=-1;const Gt=new RegExp((de.installDirectory+de.displayName).replace(fe.Jn,""),"gi");$e.every((Zt,kn)=>!(0,fe.vp)(Zt.installDirectory+Zt.displayName,Gt)||(st=kn,!1)),st>=0?de.isHidden||$e.splice(st,1):de.isHidden&&$e.push(de)}return this.globalStore.setItem(te.xI.HiddenApps,$e)}),(0,O.u)(!0))}updateLastApplied(de){this.lastSettingApplied=de}updateBoldEffectForSetting(de,J){switch(""===de.settingDefaultValue&&(de.settingDefaultValue=de.isGlobalContext?0:j.DefaultGlobalEnum.UseGlobalValue),de.featureName){case j.DynamicSettings.DSRFactor:(J=this.getDSRDisplayText(de.featureName,J))===j.DSRFactorValue.Off&&(J=0);break;case j.JsonTypeSettings.AIDVC:return!1!==JSON.parse(J.toString())?.enabled;case j.JsonTypeSettings.AIHDR:const st=JSON.parse(J.toString());return de?.isGlobalContext?!1!==st?.enabled:!0!==st?.useGlobal;case j.JsonTypeSettings.BatteryBoost:return!0!==JSON.parse(J.toString())?.enabled;case j.JsonTypeSettings.WhisperMode:case j.JsonTypeSettings.ImageScaling:return!1!==JSON.parse(J.toString())?.enabled}return de.settingDefaultValue!==J}updateBoldForProfile(de){const J=de.featureName+fe.lz;return de?.featureName===j.JsonTypeSettings.AIHDR?!1!==JSON.parse(de?.featureGlobalValue[J].toString())?.enabled:de.featureGlobalValue[J]!==de.featureGlobalValue.settingDefaultValue}expandSettingOptions(de,J,$e){const st={};switch(de.featureName){case j.DynamicSettings.CudaGpus:case j.DynamicSettings.DSRFactor:J.closeMenu(),st.panelClass=["graphics-setting-modal-container","common-dialog"],st.disableClose=!1,st.autoFocus=!0,st.restoreFocus=!1,st.data={settingData:de,globalTransVal:$e}}switch(de.featureName){case j.DynamicSettings.CudaGpus:return this.matDialog.open(ee,st).afterClosed().pipe((0,m.s)(1));case j.DynamicSettings.DSRFactor:return this.matDialog.open(ye,st).afterClosed().pipe((0,m.s)(1));default:return y.w}}getSettingDisplayText(de,J,$e,st){switch(de){case j.DynamicSettings.DSRFactor:return $e===j.DefaultGlobalEnum.UseGlobalKey||J===j.DefaultGlobalEnum.UseGlobalValue?this.translateService.instant("manage3dSettings."+de+".values.UseGlobal"):this.getDSRDisplayText(de,J);case j.DynamicSettings.CudaGpus:if("NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE"===$e){const Gt=this.checkSpecialCaseForSettings(st);if(Gt)return Gt}return this.getSettingTranslatedText(de,$e,J,st);default:return $e.match(this.unlocalisedKeyCheck)?(this.logger.info("Found unlocalised value at key = ",$e),J.toString()):this.getSettingTranslatedText(de,$e)}}checkSpecialCaseForSettings(de){const $e=Object.keys(de).filter(st=>!!st.match(this.unlocalisedKeyCheck))??null;return 1===$e.length?de[$e[0]]:null}getSettingTranslatedText(de,J,$e,st){switch(de){case j.DynamicSettings.PowerManagementMode:this.gpuArchitectureInfo?.isAmperePlus&&J===j.PowerManagementModeGpuWiseKeys.OptimalPower&&(J=j.PowerManagementModeGpuWiseKeys.Normal);break;case j.DynamicSettings.CudaGpus:const Gt=this.resolveExcludedGpus($e,st);if(Gt)return Gt}return this.translateService.instant("manage3dSettings."+de+".values."+J)}getDSRDisplayText(de,J){if(J===j.DefaultGlobalEnum.UseGlobalValue)return J.toString();let $e,st;try{$e=JSON.parse(J.toString()),$e?.factorInformation?st=$e?.factorInformation.map(Gt=>(fe.UY[Gt.factorValue]??"NA")+"x").join("; "):this.logger.info(`The DSR factor value from source not does not have required factorInformation property , ${J.toString()}, setting value to Off `)}catch{this.logger.info(`The DSR factor value from source not in json format, ${J.toString()}, setting value to Off `)}return st?this.translateService.instant("manage3dSettings."+de+".displayValue",{factors:st,smoothness:$e.smoothness}):this.translateService.instant("manage3dSettings."+de+".values.Off")}fetchGpuArchitectureInfo(){this.hardwareInformationService.getGpuInfo(!1).pipe((0,m.s)(1),(0,l.T)(de=>{const J=de?.GPU?.find(Un=>Un.IsPrimary);return{isAmperePlus:J?.GPUArchitecture>=Ie.tb.Ampere100,isTuringPlus:J?.GPUArchitecture>=Ie.tb.Turing100,isAdaPlus:J?.GPUArchitecture>=Ie.tb.Ada100,isQuadro:1==+J?.IsQuadro,isOptimus:1==+de?.IsOptimus}})).subscribe(de=>{this.gpuArchitectureInfo=de},de=>{this.logger.error("failed to fetch Gpu architecture info",de)})}nvcplApiErrorObservable(){return this.nvcplApiError$.asObservable()}openFolder(de){this.manage3dSettingsAPIService.openFolder(de).pipe((0,m.s)(1)).subscribe(J=>{this.logger.info(`Folder ${de} opened `)},J=>{this.logger.error(`Some error occured while opening the folder ${de}`),this.logger.error(J),this.errorHandlerService.showToastMessage({text:"common.somethingWentWrong",translated:!1}).subscribe()})}getCommonDialogConfig(){return{panelClass:["graphics-setting-modal-container","common-dialog"],disableClose:!1,autoFocus:!0,restoreFocus:!1}}}return(Qe=zt).\u0275fac=function(de){return new(de||Qe)(H.KVO(X.c$),H.KVO(Z.J6),H.KVO(at.F),H.KVO(Z.at),H.KVO(K.c),H.KVO(ce.bZ),H.KVO(Z.SQ),H.KVO(ve._),H.KVO(De.uh))},Qe.\u0275prov=H.jDH({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),zt})()},99049:(je,z,c)=>{"use strict";c.d(z,{i:()=>ni});var r=c(31308),n=c(37278),v=c(56106),h=c(47973),f=c(29370),A=c(58527),M=c(51635);let u=(()=>{var qe;class mi{}return(qe=mi).\u0275fac=function(_i){return new(_i||qe)},qe.\u0275mod=A.$C({type:qe}),qe.\u0275inj=A.G2t({imports:[M.yE,M.yE]}),mi})();var m=c(44186),I=c(99204),R=c(20288),O=c(49678),Y=c(44224),j=c(33955),fe=c(44296),te=c(74150),ce=c(43848);const X={provide:A.hnV,useFactory:function Z(qe,mi){return()=>function H(qe,mi){return qe.addSvgIcon("driver",mi.bypassSecurityTrustResourceUrl("./assets/img/driver.svg")),qe.addSvgIcon("overlayUtilityIcon",mi.bypassSecurityTrustResourceUrl("./assets/img/overlay.svg")),qe.addSvgIcon("nvidiaBranding",mi.bypassSecurityTrustResourceUrl("./assets/img/nvapp-logo.svg")),qe.addSvgIcon("wrench_nvapp",mi.bypassSecurityTrustResourceUrl("./assets/img/wrench_icon.svg")),qe.addSvgIcon("icon_laptop",mi.bypassSecurityTrustResourceUrl("./assets/img/icon_laptop.svg")),qe.addSvgIcon("icon_monitor",mi.bypassSecurityTrustResourceUrl("./assets/img/icon_monitor.svg")),qe.addSvgIcon("icon_tv",mi.bypassSecurityTrustResourceUrl("./assets/img/icon_tv.svg")),qe.addSvgIcon("icon_connector_vga",mi.bypassSecurityTrustResourceUrl("./assets/img/VGA.svg")),qe.addSvgIcon("icon_connector_displayPort",mi.bypassSecurityTrustResourceUrl("./assets/img/display_Port.svg")),qe.addSvgIcon("icon_connector_hdmi",mi.bypassSecurityTrustResourceUrl("./assets/img/HDMI.svg")),qe.addSvgIcon("icon_connector_laptop_display",mi.bypassSecurityTrustResourceUrl("./assets/img/laptop_Display.svg")),qe.addSvgIcon("icon_connector_dvi",mi.bypassSecurityTrustResourceUrl("./assets/img/DVI.svg")),qe.addSvgIcon("icon_connector_tv",mi.bypassSecurityTrustResourceUrl("./assets/img/TV.svg")),qe.addSvgIcon("icon_connector_usb",mi.bypassSecurityTrustResourceUrl("./assets/img/USB.svg")),qe.addSvgIcon("icon_landscape",mi.bypassSecurityTrustResourceUrl("./assets/img/landscape.svg")),qe.addSvgIcon("icon_portrait",mi.bypassSecurityTrustResourceUrl("./assets/img/portrait.svg")),qe.addSvgIcon("icon_landscapeFlipped",mi.bypassSecurityTrustResourceUrl("./assets/img/landscape_flipped.svg")),qe.addSvgIcon("icon_portraitFlipped",mi.bypassSecurityTrustResourceUrl("./assets/img/portrait_flipped.svg")),(0,ce.of)()}(qe,mi)},deps:[f.tp,te.up],multi:!0};var ue=c(97979),Me=c(26537),be=c(26945),Q=c(50599),ne=c(96501),Ge=c(12949),ge=c(62141),Xe=c(30783),ot=c(68477),dt=c(61142);c(40262);let st=(()=>{var qe;class mi{}return(qe=mi).\u0275fac=function(_i){return new(_i||qe)},qe.\u0275mod=A.$C({type:qe}),qe.\u0275inj=A.G2t({imports:[dt.MD,M.yE,n.Gj,n.Gj,M.yE]}),mi})();var Gt=c(95212),Zt=c(13186),kn=c(46906);const Un=[v.YN,h.wG,f.m_,u,m.uc,ue.ic,ne.Wh,fe.bB,I.D6,R.PO,Y.w,Ge.Ve,ge.jm,Q.fS,n.E9,be.MY,j.Dy,Me.hM,Xe.$D,M.pZ,ot.RI,r.Pd,Gt.bm,O.Wk,st,Zt.Lq,kn.l2];let ni=(()=>{var qe;class mi{}return(qe=mi).\u0275fac=function(_i){return new(_i||qe)},qe.\u0275mod=A.$C({type:qe}),qe.\u0275inj=A.G2t({providers:[X,{provide:Me.di,useValue:{exitAnimationDuration:"0ms",enterAnimationDuration:"0ms",restoreFocus:!1,autoFocus:!1}}],imports:[Un,v.YN,h.wG,f.m_,u,m.uc,ue.ic,ne.Wh,fe.bB,I.D6,R.PO,Y.w,Ge.Ve,ge.jm,Q.fS,n.E9,be.MY,j.Dy,Me.hM,Xe.$D,M.pZ,ot.RI,r.Pd,Gt.bm,O.Wk,st,Zt.Lq,kn.l2]}),mi})()},18553:(je,z,c)=>{"use strict";c.d(z,{j:()=>s});var r=c(80583),n=c(4208),v=c(58832),h=c(58527),f=c(3816),A=c(45032);function M(u,m){if(1&u){const I=h.RV6();h.j41(0,"nv-app-ootb-driver",8),h.bIt("driverTypeSelected",function(O){h.eBV(I);const Y=h.XpG(2);return h.Njj(Y.onDriverTypeUpdate(O))})("skipDriverExperience",function(){h.eBV(I);const O=h.XpG(2);return h.Njj(O.onSkipExperience())}),h.k0s()}if(2&u){const I=h.XpG(2);h.Y8G("selectedDriverType",I.selectedDriverType)}}function T(u,m){if(1&u){const I=h.RV6();h.j41(0,"nv-app-ootb-optimize",9),h.bIt("optimizeChanged",function(O){h.eBV(I);const Y=h.XpG(2);return h.Njj(Y.onOptimizeToggled(O))})("skipExperience",function(){h.eBV(I);const O=h.XpG(2);return h.Njj(O.onSkipExperience())}),h.k0s()}if(2&u){const I=h.XpG(2);h.Y8G("selectedDriverType",I.selectedDriverType)("isOptimized",I.isOptimized)}}function E(u,m){if(1&u){const I=h.RV6();h.j41(0,"nv-app-ootb-igo",10),h.bIt("piplComplianceFailed",function(O){h.eBV(I);const Y=h.XpG(2);return h.Njj(Y.onPiplComplianceFailure(O))})("noRewardsAvailable",function(O){h.eBV(I);const Y=h.XpG(2);return h.Njj(Y.onNoRewardsAvailable(O))})("skipExperience",function(){h.eBV(I);const O=h.XpG(2);return h.Njj(O.onSkipExperience())}),h.k0s()}if(2&u){const I=h.XpG(2);h.Y8G("selectedDriverType",I.selectedDriverType)}}function y(u,m){if(1&u){const I=h.RV6();h.j41(0,"nv-app-ootb-login",11),h.bIt("loggedIn",function(O){h.eBV(I);const Y=h.XpG(2);return h.Njj(Y.onLoginCheck(O))}),h.k0s()}if(2&u){const I=h.XpG(2);h.Y8G("selectedDriverType",I.selectedDriverType)}}function S(u,m){if(1&u){const I=h.RV6();h.j41(0,"nv-app-ootb-action",12),h.bIt("prevBtnClicked",function(){h.eBV(I);const O=h.XpG(2);return h.Njj(O.handlePrevBtnClick())})("skipToAppBtnClicked",function(){h.eBV(I);const O=h.XpG(2);return h.Njj(O.handleSkipToAppBtnClick())})("actionBtnClicked",function(O){h.eBV(I);const Y=h.XpG(2);return h.Njj(Y.handleActionBtnClick(O))}),h.k0s()}if(2&u){const I=h.XpG(2);h.Y8G("isPrevEnabled",null==I.currentOotbExperience?null:I.currentOotbExperience.isPrevEnabled)("isSkipToAppEnabled",null==I.currentOotbExperience?null:I.currentOotbExperience.isSkipToAppEnabled)("ootbActionState",null==I.currentOotbExperience?null:I.currentOotbExperience.action)}}function l(u,m){if(1&u&&(h.j41(0,"div",1)(1,"div",2),h.DNE(2,M,1,1,"nv-app-ootb-driver",3)(3,T,1,2,"nv-app-ootb-optimize",4)(4,E,1,1,"nv-app-ootb-igo",5)(5,y,1,1,"nv-app-ootb-login",6),h.k0s(),h.DNE(6,S,1,3,"nv-app-ootb-action",7),h.nI1(7,"async"),h.k0s()),2&u){const I=h.XpG();h.R7$(),h.Y8G("ngSwitch",I.currentOotbExperience.ootbView),h.R7$(),h.Y8G("ngSwitchCase",I.ootbView.DriverExperience),h.R7$(),h.Y8G("ngSwitchCase",I.ootbView.OptimizeExperience),h.R7$(),h.Y8G("ngSwitchCase",I.ootbView.OverlayExperience),h.R7$(),h.Y8G("ngSwitchCase",I.ootbView.LoginExperience),h.R7$(),h.Y8G("ngIf",!1===h.bMT(7,6,I.isLoading$))}}let s=(()=>{var u;class m{constructor(R,O){this.loggingService=R,this.ootbService=O,this.unsubscribe$=new r.B7,this.isLoading$=this.ootbService.loading,this.logger=this.loggingService.getLogger("OotbModalComponent")}ngOnInit(){this.listenToOotbState()}get ootbView(){return v.Bc}handlePrevBtnClick(){this.ootbService.handlePrevBtnClick(this.currentOotbState)}handleSkipToAppBtnClick(){this.ootbService.handleSkipToAppBtnClick(this.currentOotbState)}handleActionBtnClick(R){this.logger.info("Action Button Clicked",R);let O=this.currentOotbState.ootbData;this.selectedDriverType?.id!==O?.driverType.id&&(O={...O,appMetadata:void 0}),this.currentOotbState={...this.currentOotbState,ootbData:O},this.ootbService.handleOotbAction(R,this.currentOotbState)}onDriverTypeUpdate(R){this.logger.info("Preferred DriverType",R);let O=this.currentOotbState.ootbData;O={...O,driverType:R},this.currentOotbState={...this.currentOotbState,ootbData:O}}onAppsSelected(R){this.logger.info("Selected Apps",R);let O=this.currentOotbState.ootbData;O={...O,appMetadata:R},this.currentOotbState={...this.currentOotbState,ootbData:O}}onSkipExperience(){this.ootbService.onSkipExperience(this.currentOotbState)}onLoginCheck(R){this.markSkipToApp(R),this.ootbService.updateLoading(!1)}onOptimizeToggled(R){this.logger.info("Optimize Flag",R);let O=this.currentOotbState.ootbData;O={...O,isOptimized:R},this.currentOotbState={...this.currentOotbState,ootbData:O}}onPiplComplianceFailure(R){R&&(this.currentOotbExperience.action=v.GO.Done)}onNoRewardsAvailable(R){R&&(this.currentOotbExperience.action=v.GO.Done)}markSkipToApp(R=!1){R&&(this.currentOotbExperience.action=v.GO.Done,this.currentOotbExperience.isSkipToAppEnabled=!1)}listenToOotbState(){this.ootbService.ootbState.pipe((0,n.Q)(this.unsubscribe$)).subscribe(R=>{this.currentOotbState=R,this.currentOotbExperience=this.currentOotbState.ootbExperience,this.selectedDriverType=this.currentOotbState.ootbData?.driverType,this.selectedApps=this.currentOotbState.ootbData?.appMetadata,this.isOptimized=this.currentOotbState.ootbData?.isOptimized},R=>{this.logger.error("Error occurred while fetching OOTB state",R)})}}return(u=m).\u0275fac=function(R){return new(R||u)(h.rXU(f.J6),h.rXU(A.Q))},u.\u0275cmp=h.VBU({type:u,selectors:[["nv-app-ootb-modal"]],decls:1,vars:1,consts:[["class","ootb-modal","fxLayout","column",4,"ngIf"],["fxLayout","column",1,"ootb-modal"],["fxFlex","",3,"ngSwitch"],[3,"selectedDriverType","driverTypeSelected","skipDriverExperience",4,"ngSwitchCase"],[3,"selectedDriverType","isOptimized","optimizeChanged","skipExperience",4,"ngSwitchCase"],[3,"selectedDriverType","piplComplianceFailed","noRewardsAvailable","skipExperience",4,"ngSwitchCase"],[3,"selectedDriverType","loggedIn",4,"ngSwitchCase"],[3,"isPrevEnabled","isSkipToAppEnabled","ootbActionState","prevBtnClicked","skipToAppBtnClicked","actionBtnClicked",4,"ngIf"],[3,"driverTypeSelected","skipDriverExperience","selectedDriverType"],[3,"optimizeChanged","skipExperience","selectedDriverType","isOptimized"],[3,"piplComplianceFailed","noRewardsAvailable","skipExperience","selectedDriverType"],[3,"loggedIn","selectedDriverType"],[3,"prevBtnClicked","skipToAppBtnClicked","actionBtnClicked","isPrevEnabled","isSkipToAppEnabled","ootbActionState"]],template:function(R,O){1&R&&h.DNE(0,l,8,8,"div",0),2&R&&h.Y8G("ngIf",null==O.currentOotbExperience?null:O.currentOotbExperience.ootbView)},styles:[".ootb-modal[_ngcontent-%COMP%]{height:100%}"]}),m})()},70445:(je,z,c)=>{"use strict";c.d(z,{Ik:()=>h,MA:()=>T,Wx:()=>A,cB:()=>M,ys:()=>f});var r=c(2216),n=c(58832);const h=5,f=!0,A=[{order:0,ootbView:n.Bc.DriverExperience,isPrevEnabled:!1,isSkipToAppEnabled:!1,action:n.GO.Next},{order:1,ootbView:n.Bc.OptimizeExperience,isPrevEnabled:!0,isSkipToAppEnabled:!1,action:n.GO.Next},{order:2,ootbView:n.Bc.OverlayExperience,isPrevEnabled:!0,isSkipToAppEnabled:!1,action:n.GO.Next},{order:3,ootbView:n.Bc.LoginExperience,isPrevEnabled:!0,isSkipToAppEnabled:!0,action:n.GO.LoginToRedeem}],M=[{id:r.uj.GameReadyDriver,title:"ootb.gameReadyDriver",subtitle:"ootb.forGamers",isInstalled:!1,isSelected:!1},{id:r.uj.CreatorReadyDriver,title:"ootb.nvidiaStudioDriver",subtitle:"ootb.forCreators",isInstalled:!1,isSelected:!1}],T=[{id:r.eS.WsRecommendedDriver,title:"drivers.preferences.workstationRecommendedDrivers",subtitle:"drivers.preferences.recommendedForWorkstation",isInstalled:!1,isSelected:!1},{id:r.eS.WsLeadingEdgeDriver,title:"drivers.preferences.workstationLeadingEdgeDrivers",subtitle:"drivers.preferences.recommendedForLeadingEdge",isInstalled:!1,isSelected:!1},{id:r.eS.WsConservativeDriver,title:"drivers.preferences.workstationConservativeDrivers",subtitle:"drivers.preferences.recommendedForConservative",isInstalled:!1,isSelected:!1}]},58832:(je,z,c)=>{"use strict";c.d(z,{Bc:()=>v,GO:()=>h,TO:()=>n});var n=c(74931).Or.Nvapp.Localgames.OotbStatus,v=function(f){return f.DriverExperience="driverExperience",f.OptimizeExperience="optimizeExperience",f.OverlayExperience="overlayExperience",f.AppDiscoveryExperience="appDiscoveryExperience",f.LoginExperience="loginExperience",f.CompletedAll="completedAll",f.Skipped="skipped",f}(v||{}),h=function(f){return f.Next="ootb.next",f.Done="ootb.done",f.LoginToRedeem="rewards.loginToRedeem",f}(h||{})},45032:(je,z,c)=>{"use strict";c.d(z,{Q:()=>ee});var r=c(26513),n=c(80583),v=c(57258),h=c(59859),f=c(43848),A=c(36466),M=c(8619),T=c(72147),E=c(14714),y=c(83915),S=c(65706),l=c(4208),s=c(65726),u=c(43615),m=c(74931),I=c(2216),R=c(76062),O=c(26772),Y=c(94645),j=c(10404),fe=c(1242),te=c(18553),ce=c(70445),H=c(58832),Z=c(62668),X=c(58527),ue=c(26537),Me=c(3816),be=c(82102),Q=c(35338),ne=c(30081),Ge=c(78812),ge=c(44272),Xe=c(59085),ot=c(72482),dt=c(85161),xe=c(44743),Re=c(83983),Ue=c(60213);let ee=(()=>{var W;class Pe{get isOotbCompletedOrSkipped(){return this._isOotbCompletedOrSkipped.asObservable()}constructor(oe,Le,Oe,ye,Ie,at,K,ve,De,pe,Qe,zt,Vt,de,J,$e){this.matDialog=oe,this.loggingService=Le,this.dbService=Oe,this.loginService=ye,this.driverUpdateService=Ie,this.appCardService=at,this.layoutService=K,this.telemetryService=ve,this.appListService=De,this.bridgeService=pe,this.preferenceService=Qe,this.driverInfoService=zt,this.router=Vt,this.overlayService=de,this.eulaService=J,this.opsService=$e,this.supportedExperiences=ce.Wx,this.ootbState$=new r.t(null),this.loading$=new n.B7,this.unsubscribe$=new n.B7,this._isOotbCompletedOrSkipped=new v.m(1),this.logger=this.loggingService.getLogger("nvapp/OotbService"),this.globalStore=this.dbService.getGlobalStore(Y.xI.GlobalStore)}loadOotbExperience(){this.logger.info("Loading OOTB Data and OOTB Experience from Db"),this.eulaService.getEulaAccepted().pipe((0,M.p)(oe=>oe),(0,T.n)(oe=>this.globalStore.getItem(Y.xI.OotbState)),(0,E.W)(oe=>(this.logger.error("Error occurred while getting OOTB state from db ",oe),(0,h.$)(oe))),(0,T.n)(oe=>(this.ootbStateInDb=oe,this.driverInfoService.fetchDriverInstallInfo())),(0,M.p)(({isDriverInstalled:oe,isMinimumDriverInstalled:Le})=>oe&&Le),(0,y.T)(()=>this.ootbStateInDb),(0,S.s)(1)).subscribe(oe=>{this.logger.info("OotbState in db ",oe),this.initializeOotbState(oe)},oe=>{this.logger.error("Error occurred while getting OOTB state",oe)})}get ootbState(){return this.ootbState$.asObservable()}get loading(){return this.loading$.asObservable()}startLogin(oe){this.logger.info("OOTB Login Started"),this.loginService.startLogin(!1,j.fx.OOTB).pipe((0,S.s)(1)).subscribe(Le=>{this.downloadSelectedApps(oe)},Le=>{this.logger.error("Error occurred while processing login ",Le),this.downloadSelectedApps(oe)})}saveOotbState(oe){this.globalStore.setItem(Y.xI.OotbState,oe).pipe((0,l.Q)(this.unsubscribe$)).subscribe(Le=>{this.logger.info("OOTB State has been saved to Db",Le)},Le=>{this.logger.error("Error occurred while saving OOTB State to Db",Le)})}handleOotbAction(oe,Le){let Oe=Le.ootbExperience,ye="";const Ie=Le.ootbExperienceStack,at=Le.ootbExperience.ootbView;switch(oe){case H.GO.Next:ye=fe.aw.Next,Oe.ootbView===H.Bc.OptimizeExperience&&this.overlayService.initializeOverlayToggle(),Ie.push(Le.ootbExperience),Oe=this.supportedExperiences[Oe.order+1],this.ootbState$.next({...Le,ootbExperience:Oe,ootbExperienceStack:Ie}),this.saveOotbState(this.ootbState$.getValue());break;case H.GO.LoginToRedeem:ye=fe.aw.Login,Oe.ootbView=H.Bc.CompletedAll,this.closeOotbDialog(Le.ootbData,H.Bc.CompletedAll),this.startLogin(Le.ootbData);break;case H.GO.Done:ye=fe.aw.Done,Oe.ootbView=H.Bc.CompletedAll,this.closeOotbDialog(Le.ootbData,H.Bc.CompletedAll),this.downloadSelectedApps(Le.ootbData);break;default:this.closeOotbDialog(Le.ootbData,at),this.downloadSelectedApps(Le.ootbData)}this.sendOotbProgressEvent(ye,at)}handlePrevBtnClick(oe){const Le=oe.ootbExperienceStack;this.sendOotbProgressEvent(fe.aw.Previous,oe.ootbExperience.ootbView);const Oe=Le.pop();this.ootbState$.next({...oe,ootbExperience:Oe,ootbExperienceStack:Le}),this.saveOotbState(this.ootbState$.getValue())}handleSkipToAppBtnClick(oe){const Le=oe.ootbExperience.ootbView;let Oe="";0===oe.ootbExperience.order?(Oe=fe.aw.Skip,this.overlayService.initializeOverlayToggle()):Oe=fe.aw.Exit,this.sendOotbProgressEvent(Oe,Le),this.closeOotbDialog(oe.ootbData,H.Bc.Skipped),this.downloadSelectedApps(oe.ootbData)}onSkipExperience(oe){let Le=oe.ootbExperience;const Oe=Le.order;let ye=this.supportedExperiences.filter(at=>at.order!==Le.order);ye=ye.map((at,K)=>(0===K&&(at.isPrevEnabled=!1),{...at,order:K})),this.supportedExperiences=ye,Le=this.supportedExperiences[Oe];const Ie={...oe,supportedExperiences:this.supportedExperiences,ootbExperience:Le};(0,f.of)(!0).pipe((0,s.c)(0),(0,S.s)(1)).subscribe(()=>this.ootbState$.next(Ie)),this.saveOotbState(Ie)}updateLoading(oe){(0,f.of)(!0).pipe((0,s.c)(0),(0,S.s)(1)).subscribe(()=>this.loading$.next(oe))}isGameReadyDriver(oe){return oe?.id===I.uj.GameReadyDriver}isCreatorReadyDriver(oe){return oe.id===I.uj.CreatorReadyDriver}isWorkstationDriver(oe){switch(oe.id){case I.eS.WsRecommendedDriver:case I.eS.WsLeadingEdgeDriver:case I.eS.WsConservativeDriver:return!0;default:return!1}}getAutoOptimizeValue(){return this.preferenceService.getAutoOptimizeEnabled()}setAutoOptimizeEnabled(oe){return this.preferenceService.setAutoOptimizeEnabled(oe)}sendOotbProgressEvent(oe,Le){const Oe=new fe.dE({actionName:oe,status:fe.fb.Success,currentScreen:Le,errorDetails:""});this.telemetryService.push(Oe,null)}openOotbDialog(){this.logger.info("Open OOTB dialog box"),this.ootbDialogRef=this.matDialog.open(te.j,{disableClose:!0,autoFocus:!1,backdropClass:"ootb-modal-backdrop",panelClass:["ootb-modal-container","common-dialog"]}),this._isOotbCompletedOrSkipped.next(!1)}initializeOotbState(oe){this.logger.info("Initializing OOTB");const Le=oe?.ootbExperience?oe.ootbExperience:this.supportedExperiences[0],Oe=Le.ootbView,ye=oe?.visitedExperiences?oe?.visitedExperiences:[],Ie=ye.length<ce.Wx.length;if(Oe!==H.Bc.CompletedAll&&Oe!==H.Bc.Skipped){this.router.navigate([O.f.Home]),this.setOotbStatus(H.TO.STARTED).subscribe(A.l,De=>{this.logger.error("Error occurred while setting ootb status ",De)}),this.opsService.sendOpsEventsOnOotbFinish(!1),this.initiateTraditionalScan(),this.supportedExperiences=oe?.supportedExperiences?oe.supportedExperiences:ce.Wx;const at=oe?.ootbData;this.ootbState$.next({supportedExperiences:this.supportedExperiences,ootbExperience:Le,ootbData:at,ootbExperienceStack:oe?.ootbExperienceStack?oe.ootbExperienceStack:[],visitedExperiences:ye}),this.openOotbDialog()}else Ie?(this.logger.info("Re triggering OOTB flow"),this.setupOOTB(oe),this.opsService.sendOpsEventsOnOotbFinish(!1),this.initiateTraditionalScan(),this.openOotbDialog()):(this.opsService.sendOpsEventsOnOotbFinish(!0),this._isOotbCompletedOrSkipped.next(!0))}closeOotbDialog(oe,Le){this.logger.info("Close OOTB dialog box"),this.ootbDialogRef.close(),this.processOotbData(oe);const ye={};ye.ootbView=Le,this.saveOotbState({ootbExperience:ye,ootbData:oe,visitedExperiences:ce.Wx}),this._isOotbCompletedOrSkipped.next(!0)}processOotbData(oe){this.logger.info("Processing OOTB Data",oe);const Le=oe?.driverType;Le&&!Le.isInstalled&&this.setDriverTypePreference(Le),this.processOps(void 0===oe?.isOptimized?ce.ys:oe?.isOptimized)}downloadSelectedApps(oe){const Le=oe?.appMetadata;Le&&Le.length>0&&this.triggerDownloadsForApps(Le)}setDriverTypePreference(oe){this.driverUpdateService.updateDriverTypePreferenceDriverType(oe)}triggerDownloadsForApps(oe){let Le=oe;this.layoutService.getInstalledStatusForApps(oe).pipe((0,S.s)(1),(0,y.T)(Oe=>Le=Oe.filter(ye=>ye?.installStatus.status===R.Py.NotInstalled)),(0,u.j)(()=>{this.logger.info("Triggering download for uninstalled apps on OOTB Finish");const Oe={};Le.forEach(ye=>this.appCardService.triggerGetState(ye,Oe,fe.f3.OOTB))})).subscribe()}initiateTraditionalScan(){this.appListService.initiateTraditionalScan().pipe((0,S.s)(1)).subscribe(oe=>this.logger.info("Traditional scan is completed"),oe=>{this.logger.error(oe?.code===Y._O||oe instanceof Z.n?"Localgames plugin not found, traditional scan failed due to timeout ":"Error occurred during traditional scan ",oe)})}processOps(oe){this.logger.info("Setting Auto Optimized Value",oe),this.setAutoOptimizeEnabled(oe).pipe((0,T.n)(()=>(this.logger.info("Setting OOTB Finish after Fast Scan"),this.opsService.sendOpsEventsOnOotbFinish(!0),this.setOotbStatus(H.TO.FINISHED))),(0,S.s)(1)).subscribe(A.l,Le=>{this.logger.error("Error while initiate fast scan",Le)})}setOotbStatus(oe){return this.logger.info("Setting OOTB Status ",oe),this.bridgeService.executeCommand(m.Ts.Nvapp.Localgames.SetOOTBStatus,{ootbStatus:oe}).pipe((0,S.s)(1))}setupOOTB(oe){const Le=oe?.visitedExperiences?oe?.visitedExperiences:[];this.supportedExperiences=ce.Wx.filter(Ie=>!Le.some(at=>at.ootbView===Ie.ootbView));const Oe=this.supportedExperiences.length;this.supportedExperiences=this.supportedExperiences.map((Ie,at)=>{const K=0!==at,De=at===Oe-1,pe=Oe>1&&De,Qe=Ie.ootbView===H.Bc.LoginExperience?H.GO.LoginToRedeem:De?H.GO.Done:H.GO.Next;return{...Ie,order:at,isSkipToAppEnabled:pe,isPrevEnabled:K,action:Qe}});const ye={supportedExperiences:this.supportedExperiences,ootbExperience:this.supportedExperiences[0],ootbData:oe?.ootbData,ootbExperienceStack:[],visitedExperiences:[]};this.logger.info("Ootb state after re trigger ",ye),this.ootbState$.next(ye)}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}}return(W=Pe).\u0275fac=function(oe){return new(oe||W)(X.KVO(ue.bZ),X.KVO(Me.J6),X.KVO(Me.at),X.KVO(j.HF),X.KVO(be.f),X.KVO(Q.N),X.KVO(ne.Y),X.KVO(Ge.H0),X.KVO(ge.n),X.KVO(Me.NZ),X.KVO(Xe.N),X.KVO(ot.u),X.KVO(dt.Ix),X.KVO(xe.s),X.KVO(Re.h),X.KVO(Ue.s))},W.\u0275prov=X.jDH({token:W,factory:W.\u0275fac,providedIn:"root"}),Pe})()},26976:(je,z,c)=>{"use strict";c.d(z,{A6:()=>A,Au:()=>y,KF:()=>l,L0:()=>v,Qq:()=>R,W7:()=>h,Yb:()=>Y,Yz:()=>j,_8:()=>E,_z:()=>s,de:()=>u,eg:()=>O,jq:()=>T,ln:()=>f,mZ:()=>M,nH:()=>I,nM:()=>m,sX:()=>S});var r=c(70279),n=c(42673);const v=[{title:"preferences.about.releaseHighlights"},{title:"settings.licenseAgreement",redirectPage:r.r7.TermsConditions},{title:"preferences.about.accountTerms",redirectPage:r.r7.AccountTerms},{title:"preferences.about.osslicense",redirectPage:r.r7.OssLicenses}],h={title:"preferences.notifications.windowsNotificationLink"},f=500,A=1e3,M="about",T=2,E={header:"layout.features.overlay.title",descriptions:[],isSectionFeature:!0},y={featureName:n.BY.name,icon:"",header:"preferences.featureReadiness.share.header",descriptions:["preferences.featureReadiness.share.description"],openStateDescriptions:[]},S={featureName:n.ZZ.name,icon:"",header:"preferences.featureReadiness.ansel.header",descriptions:["preferences.featureReadiness.ansel.description"]},l={featureName:n.HN.name,icon:"",header:"preferences.featureReadiness.freestyle.header",descriptions:["preferences.featureReadiness.freestyle.description"]},s={featureName:"photoModeGameFilter",header:"preferences.featureReadiness.photoModeGameFilter.header",descriptions:["preferences.featureReadiness.photoModeGameFilter.description"],icon:""},u={header:"preferences.notifications.title",descriptions:[],isSectionFeature:!0},m={header:"preferences.about.betaTitle",descriptions:["preferences.about.betaDescription"]},I="photoMode",R=404,O=[{header:"preferences.about.privacy.requiredConsent.header",desc:"preferences.about.privacy.requiredConsent.description",checked:!0,disabled:!0},{header:"preferences.about.privacy.functionalConsent.header",desc:"preferences.about.privacy.functionalConsent.description"}],Y={header:"preferences.about.privacy.technicalConsent.header",desc:"preferences.about.privacy.technicalConsent.description"},j=[{title:"preferences.about.privacyPortal",redirectPage:r.r7.PrivacyPortal},{title:"preferences.about.privacyPolicy",redirectPage:r.r7.PrivacyPolicy}]},42673:(je,z,c)=>{"use strict";c.d(z,{BY:()=>h,HN:()=>A,ZZ:()=>f});var r=c(35965),n=c(1242);const v=["gcV","lg","gLg","dIDa","cID","sM","osC","dch","osB","is6","IsB","GFPV","IsQ","iLp","isO","isSLI","gIsB","cSR","uCst"],h={name:"getShadowPlayReady",controller:r.GU.GfeContent,endpointPath:"com.nvidia.services.GFEClientContent_NG.getShadowPlayReady/",paramMask:v,method:r.Xt.Get,reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.GetShadowPlayReady}},f={name:"getAnselReady",controller:r.GU.GfeContent,endpointPath:"com.nvidia.services.GFEClientContent_NG.getAnselReady/",paramMask:v,method:r.Xt.Get,reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.GetAnselReady}},A={name:"getFreeStyleReady",controller:r.GU.GfeContent,endpointPath:"com.nvidia.services.GFEClientContent_NG.getFreeStyleReady/",paramMask:v,method:r.Xt.Get,reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.GetFreeStyleReady}}},148:(je,z,c)=>{"use strict";c.d(z,{E7:()=>h,Ey:()=>y,GO:()=>A,GY:()=>T,N:()=>f,Yw:()=>n,nJ:()=>E,oY:()=>M,rf:()=>S,rl:()=>v});var r=c(70279);const n={header:"preferences.gameScan.scanLocationsCount",descriptions:[],primaryActionButton:{text:"preferences.gameScan.scanLocationsButton",visible:!0,disabled:!1},isSectionFeature:!1},v={header:"drivers.title",descriptions:[],isSectionFeature:!0},h={header:"preferences.autoDownloadDrivers",descriptions:[],featureName:"autoDriverDownload"},f={header:"preferences.gameScan.autoOptimize",descriptions:[],featureName:"autoOptimize",isSectionFeature:!1},A={title:"preferences.gameScan.supportedGamesLink",redirectPage:r.r7.SupportedGamesApps},M={title:"preferences.gameScan.supportedGamesLink",redirectPage:r.r7.SupportedProvisApps},T={title:"preferences.featureReadiness.systemRequirementLink",redirectPage:r.r7.SystemReq},E={featureName:"controlPanelFeature",header:"preferences.featureReadiness.controlPanelFeature.header",descriptions:["preferences.featureReadiness.controlPanelFeature.description"],icon:""},y={featureName:"languageFeature",header:"preferences.featureReadiness.languageFeature.header",descriptions:["preferences.featureReadiness.languageFeature.description"],icon:""},S=5e3},69568:(je,z,c)=>{"use strict";c.d(z,{II:()=>f,VL:()=>v,nX:()=>n,py:()=>h});var r=c(74931),n=r.Or.Nvapp.Nvigoutil.ShadowPlayStatus;const v=r.Ts.Nvapp.Localgames.GetLastApplicationScanTime;var h=r.Or.Nvapp.Localgames.PageId,f=r.Or.Nvapp.Nvigoutil.HotkeyEnum},83997:(je,z,c)=>{"use strict";c.d(z,{$:()=>M});var r=c(83915),n=c(74931);const v=n.Ts.Nvapp.Driverupdaterecommendation.SetLanguagePreference,h=n.Ts.Nvapp.Driverupdaterecommendation.GetLanguagePreference;var f=c(58527),A=c(3816);let M=(()=>{var T;class E{constructor(S,l){this.bridgeService=l,this.logger=S.getLogger("nvapp/LanguagePreferenceService")}setLanguagePreference(S){return this.bridgeService.executeCommand(v,{languageCode:S}).pipe((0,r.T)(s=>{this.logger.info("Set language Code:",s)}))}fetchLanguageCode(){return this.bridgeService.executeCommand(h,{}).pipe((0,r.T)(l=>{const s=l.languagePreference.languageCode.replace("-","_");return this.logger.info("Fetched language Code:",s),s}))}}return(T=E).\u0275fac=function(S){return new(S||T)(f.KVO(A.J6),f.KVO(A.NZ))},T.\u0275prov=f.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),E})()},59085:(je,z,c)=>{"use strict";c.d(z,{N:()=>ot});var r=c(59859),n=c(43848),v=c(91384),h=c(14714),f=c(72147),A=c(83915),M=c(74931),T=c(26976),E=c(148),y=c(1242);c(26875);var be=c(58527),Q=c(3816),ne=c(44743),Ge=c(54491),ge=c(86088),Xe=c(47847);let ot=(()=>{var dt;class xe{constructor(Ue,ee,W,Pe,le,oe,Le){this.bridgeService=ee,this.overlayService=W,this.opsApiService=Pe,this.nvAppTelemetryUtilService=le,this.nvAppBridgeService=oe,this.appConfig=Le,this.logger=Ue.getLogger("nvapp/PreferenceService")}setNotifyDriverUpdateNotification(Ue){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(M.Ts.Nvapp.Driverupdaterecommendation.SetDriverUpdateNotificationEnabled,{isEnabled:Ue})}getNotifyDriverUpdateNotification(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(M.Ts.Nvapp.Driverupdaterecommendation.GetDriverUpdateNotificationEnabled)}setRewardNotificationPreference(Ue){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(M.Ts.Nvapp.Driverupdaterecommendation.SetRewardsNotificationPreference,{isEnabled:Ue})}getRewardNotificationPreference(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(M.Ts.Nvapp.Driverupdaterecommendation.GetRewardsNotificationPreference)}setAutoDriverDownloadNotification(Ue){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(M.Ts.Nvapp.Driverupdaterecommendation.SetAutomaticDriverDownloadEnabled,{isEnabled:Ue}).pipe((0,v.M)(W=>this.sendSettingChangeTelemetry(y.RS.AutomaticDriverDownload,Ue?y.GC.Enabled:y.GC.Disabled,y.ih.System)),(0,h.W)(W=>(this.logger.error("Error occurred while setting auto driver download ",W),this.sendSettingChangeTelemetry(y.RS.AutomaticDriverDownload,Ue?y.GC.Enabled:y.GC.Disabled,y.ih.System,W?.message),(0,r.$)(W))))}getAutoDriverDownloadNotification(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(M.Ts.Nvapp.Driverupdaterecommendation.GetAutomaticDriverDownloadEnabled)}onToggleChanged(Ue){return Ue.featureName===E.E7.featureName?this.setAutoDriverDownloadNotification(Ue.toggle.newValue):Ue.featureName===T._z.featureName?this.togglePhotoModeGameFilter(Ue.toggle.newValue):(Ue.featureName===T.Au.featureName&&(this.overlayService.toggleIgo(Ue.toggle.newValue),this.sendSettingChangeTelemetry(y.XB,Ue.toggle.newValue?y.GC.Enabled:y.GC.Disabled,y.ih.System)),Ue.featureName===E.N.featureName?this.setAutoOptimizeEnabled(Ue.toggle.newValue):(0,n.of)())}onSecondaryAction(Ue){return(0,n.of)(null)}openWindowsNotifications(Ue){return this.nvAppBridgeService.executeCommandWithTimeout(M.Ts.Nvapp.Localgames.LaunchMSSettings,{pageId:Ue}).pipe((0,v.M)(W=>this.logger.info("Launch MS Settings Response",W)))}getAutoOptimizeEnabled(){return this.opsApiService.getAutoOptimizeEnabled()}setAutoOptimizeEnabled(Ue){return this.opsApiService.setAutoOptimizeEnabled(Ue).pipe((0,v.M)(ee=>this.sendSettingChangeTelemetry(y.RS.AutomaticOptimizeNewGames,Ue?y.GC.Enabled:y.GC.Disabled,y.ih.System)),(0,h.W)(ee=>(this.logger.error("Error occurred while setting auto driver download ",ee),this.sendSettingChangeTelemetry(y.RS.AutomaticOptimizeNewGames,Ue?y.GC.Enabled:y.GC.Disabled,y.ih.System,ee?.message),(0,r.$)(ee))))}sendSettingChangeTelemetry(Ue,ee,W,Pe){this.nvAppTelemetryUtilService.sendSettingChangeEvent(Ue,ee,W,!0,Pe)}getPhotoModeGameFilterToggleState(){let Ue;return this.bridgeService.executeCommand(M.Ts.Nvapp.Nvigoutil.GetFilterPhotoModeState).pipe((0,f.n)(ee=>(Ue=ee?.enable,void 0===Ue?(this.logger.info("Photo mode/Game filter toggle setting not present, using default"),Ue=!0,this.togglePhotoModeGameFilter(Ue)):(0,n.of)(""))),(0,A.T)(()=>Ue))}triggerPhotoModeGameFilterToggleUpdate(){this.overlayService.triggerToggleValueRefresh()}getNvAppVersionString(){return this.appConfig?.build?.version}togglePhotoModeGameFilter(Ue){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(M.Ts.Nvapp.Nvigoutil.SetFilterPhotoMode,{enable:Ue}).pipe((0,v.M)(W=>this.sendSettingChangeTelemetry(y.RS.GameAndPhotoModeFilter,Ue?y.GC.Enabled:y.GC.Disabled,y.ih.System)),(0,h.W)(W=>(this.logger.error("Error occurred while setting photo mode/game filter switch ",W),this.sendSettingChangeTelemetry(y.RS.GameAndPhotoModeFilter,Ue?y.GC.Enabled:y.GC.Disabled,y.ih.System,W?.message),(0,r.$)(W))))}}return(dt=xe).\u0275fac=function(Ue){return new(Ue||dt)(be.KVO(Q.J6),be.KVO(Q.NZ),be.KVO(ne.s),be.KVO(Ge.M),be.KVO(y.AY),be.KVO(ge.S),be.KVO(Xe.Vk))},dt.\u0275prov=be.jDH({token:dt,factory:dt.\u0275fac,providedIn:"root"}),xe})()},37438:(je,z,c)=>{"use strict";c.d(z,{A6:()=>v,OJ:()=>r,R1:()=>f,du:()=>A,ow:()=>h,pL:()=>T,xM:()=>M,y$:()=>n});const r={codeLength:29,codeLengthNoDashes:24,codeDashLocations:{first:4,second:9,third:14,fourth:19,fifth:24}},n={card:"360x154",dialogImage:"320x497",nvAppTileImageAssets:"1920x1080",viewDetailsImage:"742x280",publisherLinkImageParam:"1536x920"},v=1e3,h="mediumDate",f="nvapp",A="assets/img/rewards_viewdetails_fallback.svg",M="{LOCALE}",T="{PRODUCT_IMAGE_PATH}"},62400:(je,z,c)=>{"use strict";c.d(z,{e:()=>te});var r=c(26875),v=c(80583),h=c(3496),f=c(59859),A=c(43848),M=c(82e3),T=c(57258),E=c(75707),y=c(14714),S=c(83915),l=c(34593),s=c(65706),u=c(91384),m=c(43615),I=c(40482),R=c(74931),O=c(1242),Y=c(99458),j=c(82546);class te{constructor(H,Z,X,ue,Me,be,Q,ne=null){this.loginService=Z,this.rewardsFlowService=X,this.bridgeService=ue,this.vrsItem=Me,this.config=be,this.telemetryUtilService=Q,this.couponCode=null,this.user=null,this.httpSubscription=null,this.logger=H.getLogger("nvapp/reward.class"),this.vrsItem=Me,this.couponCode=ne}get status(){return this.vrsItem?.status}get state(){return this.vrsItem?.state}get endDate(){return this.vrsItem?.campaign?.rules?.enddate}get entitlementDate(){return this.vrsItem?.entitlementDate}get redemptionDate(){return this.vrsItem?.redemptionDate}get campaign(){return this.vrsItem?.campaign}get products(){return this.vrsItem.product}get rewardsVrsItem(){return this.vrsItem}get entitlementId(){return this.vrsItem?.entitlementId}get error(){return this.vrsItem?.error}isRewardAvailable(){return this.vrsItem.status===j.E.Available}isRewardRedeemedOrExpired(){return this.isRewardRedeemed()||this.isRewardExpired()}isRewardRedeemed(){return this.vrsItem.status===j.E.Redeemed}isRewardExpired(){return this.vrsItem.status===j.E.Expired}isRewardLocked(){return this.vrsItem.status===j.E.Locked}startHttpServer(){const H=new v.B7,Z=new v.B7;return this.httpSubscription=this.bridgeService.executeCommand(R.Ts.Common.Httpserver.StartHttpServer,{ports:this.config.vrs.portNumbers,redirectUrl:""}).subscribe(X=>{switch(this.logger.info("httpresponse recieved"),(0,r.get)(X,"callbackReason")){case"serverCreated":H.next((0,r.get)(X,"portNumber")),H.complete();break;case"httpRequest":Z.next(X.url),new URL(X.url).searchParams.has("keepConnection")||(Z.complete(),this.stopHttpServer())}},X=>{this.logger.error("error starting httpserver",X),H.error("HTTP_START_FAILED"),Z.error("HTTP_START_FAILED")}),[H,Z]}stopHttpServer(){this.httpSubscription&&(this.httpSubscription.unsubscribe(),this.httpSubscription=null,this.bridgeService.executeCommand(R.Ts.Common.Httpserver.StopHttpServer).subscribe(H=>this.logger.info("success stopping httpserver",H),H=>this.logger.error("error stopping httpserver",H)))}redeemEntitlement(){let H="";return(0,h.O)(0).pipe((0,E.ZZ)(Z=>{const[X,ue]=this.startHttpServer();return X.pipe((0,y.W)(Me=>(this.logger.error("failed to start http server",Me),(0,f.$)(Y.Se.RedemptionFailed))),(0,E.ZZ)(Me=>{H=Date.now().toString();const be=new URL(this.vrsItem.nvEntitlementUrl);return be.searchParams.append("loginhint",this.user.email),be.searchParams.append("entitlementId",this.vrsItem.entitlementId),be.searchParams.append("encPayload",this.vrsItem.encPayload),be.searchParams.append("callbackUrl","http://localhost:"+Me),be.searchParams.append("referrer","nvapp"),window.open(be.href,"_blank"),ue}),(0,S.T)(Me=>new URL(Me).searchParams.has("error")?(this.logger.error("failed in redeem entitlement on vrs web portal with error:"),this.sendRewardsRedeemEvent(H,this.couponCode?O.Lm.CouponCodeRedeemOnServer:O.Lm.AvailableRewardsRedeemOnServer,O.fb.Failure,Y.Se.RedemptionFailed),Y.Se.RedemptionFailed):(this.sendRewardsRedeemEvent(H,this.couponCode?O.Lm.CouponCodeRedeemOnServer:O.Lm.AvailableRewardsRedeemOnServer,O.fb.Success,this.vrsItem.product[0]?.uuid),this.logger.info(" redeemtion completed"),Y.Se.RedemptionComplete)))}),(0,l.Z)(Y.Se.RedemptionStarted))}checkAuthentication(){return this.loginService.accountStatusChanged.pipe((0,s.s)(1),(0,E.ZZ)(H=>H.isAuthenticated?(this.user=H,(0,A.of)(Y.Se.AuthenticationComplete)):this.loginService.startLogin().pipe((0,E.ZZ)(Z=>Z?this.loginService.accountStatusChanged.pipe((0,s.s)(1),(0,S.T)(X=>(this.user=X,Y.Se.AuthenticationComplete))):(this.logger.error("failed to login user, please try again"),(0,f.$)(Y.Se.AuthenticationFailed))))),(0,l.Z)(Y.Se.AuthenticationCheckStarted))}getUniqueRewardIdentifier(H){return H.status+(H.state||"")+(H.entitlementId||"")+(H.redemptionId||"")+H.campaign.uuid}entitle(){let H=Y.QU.AvailableReward,Z=null;if(this.couponCode)H=Y.QU.Coupon,Z=this.couponCode;else{if(this.status===j.E.Available&&this.state===j.E.Claimable)return(0,A.of)(Y.Se.EntitlementComplete);Z=this.vrsItem?.campaign?.uuid}const X=Date.now().toString();return this.rewardsFlowService.entitle(Z,H).pipe((0,s.s)(1),(0,S.T)(ue=>{if(ue.error){let Me=O.Lm.CouponCodeVRSCreate;throw this.couponCode?this.vrsItem=ue:(Me=O.Lm.ClaimEntitlementVRSCreate,this.vrsItem.error=Object.assign({},ue.error)),this.sendRewardsRedeemEvent(X,Me,O.fb.Failure,ue.error?.code),ue.error}return this.sendRewardsRedeemEvent(X,H===Y.QU.Coupon?O.Lm.CouponCodeVerificationResponseTime:O.Lm.ClaimEntitlementResponseTime,O.fb.Success),ue.state=(0,I.T7)(ue.state),ue.status=(0,I.T7)(ue.status),ue.campaign.type=(0,I.T7)(ue.campaign.type),ue.uId=this.getUniqueRewardIdentifier(ue),this.vrsItem=ue,Y.Se.EntitlementComplete}),(0,y.W)(ue=>{const Me=ue.status?ue.status.toString():ue.code;return this.sendRewardsRedeemEvent(X,H===Y.QU.Coupon?O.Lm.CouponCodeVRSCreate:O.Lm.ClaimEntitlementVRSCreate,O.fb.Failure,Me),this.logger.error("error in entitling",ue),(0,f.$)(Y.Se.EntitlementFailed)}),(0,l.Z)(Y.Se.EntitlementStarted))}redeem(){return(0,M.x)(this.checkAuthentication(),this.entitle(),this.redeemEntitlement()).pipe((0,u.M)(H=>{H===Y.Se.RedemptionComplete&&te.refreshRewards.next(!0)}),(0,y.W)(H=>(this.logger.error("Error in redeem",H),(0,A.of)(H))),(0,m.j)(()=>{this.logger.info("Process completed")}))}sendRewardsRedeemEvent(H,Z,X,ue){const Me=Date.now().toString(),be={lcid:"0",durationMs:parseInt(Me,10)-parseInt(H,10)||0,redeemAction:Z,couponCode:this.couponCode||"",campaignName:this.vrsItem?.campaign?.uuid||"",gpuDeviceId:"",errorDetails:ue||"",status:X};this.telemetryUtilService.sendRewardsRedeemEvent(be)}}te.refreshRewards=new T.m(1)},99458:(je,z,c)=>{"use strict";c.d(z,{DU:()=>R,GI:()=>m,GO:()=>fe,Jn:()=>S,Mg:()=>l,N4:()=>u,Pd:()=>f,QU:()=>O,Qy:()=>te,Se:()=>ce,Sw:()=>h,Vj:()=>s,db:()=>j,h8:()=>A,ix:()=>Y,kv:()=>E,ov:()=>v,rC:()=>y,vr:()=>I});var r=c(35965),n=c(1242);const v="0",h=32,f=8,A=0,T=["cmID","cID","gcV","gnV","sM","IsB","dIDa","dFma","osC","dch","osB","is6","lg","gLg","GFPV","IsQ","iLp","isSLI","go","cSR","uCst"],E=["gcV","lg","gLg","cID","sM","IsB","dIDa","dFma","osC","osB","is6","GFPV","IsQ","iLp","isSLI","cSR","go"],y={name:"TargetRewards",controller:r.GU.GfeContent,endpointPath:"com.nvidia.services.GFEClientContent_NG.targetGfeWebRewards/",paramMask:T,method:r.Xt.Get,headers:{telemetry:"TargetRewards"},reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.TargetRewards,reportSuccessTelemetry:"true"}},S={name:"GetRewardsSession",controller:r.GU.Vrs,endpointPath:"com.nvidia.services.GFEClientVrs.getGfeWebSsnJt/",paramMask:T,method:r.Xt.Post,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.GetRewardsSession,reportSuccessTelemetry:"true"}},l={name:"VerifyRewardsSession",controller:r.GU.Vrs,endpointPath:"com.nvidia.services.GFEClientVrs.vrfyGfeWebSsnJt/",paramMask:T,method:r.Xt.Post,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.VerifyRewardsSession,reportSuccessTelemetry:"true"}},s={name:"GetRewardsStatus",controller:r.GU.Vrs,endpointPath:"/com.nvidia.services.GFEClientVrs.gfeVrsStatus/",paramMask:T,method:r.Xt.Post,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.WebRewardsVrsStatus,reportSuccessTelemetry:"true"}},u={name:"RedeemReward",controller:r.GU.Vrs,endpointPath:"/com.nvidia.services.GFEClientVrs.gfeVrsCreate/",paramMask:T,method:r.Xt.Post,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.WebVrsCreate,reportSuccessTelemetry:"true"}};var m=function(H){return H.TargetRewards="TargetRewards",H.GetRewardsSession="GetRewardsSession",H.VerifyRewardsSession="VerifyRewardsSession",H.GetRewardsStatus="GetRewardsStatus",H.RedeemReward="RedeemReward",H}(m||{});const I="HS512",R=JSON.stringify({typ:"JWT",alg:I});var O=function(H){return H.AvailableReward="AvailableReward",H.UnredeemedReward="UnredeemedReward",H.RedeemedReward="RedeemedReward",H.Coupon="Coupon",H}(O||{}),Y=function(H){return H.TargetRewards="GFE_ENABLE_REDEEM_BUTTON",H}(Y||{});const j="~!~",fe=30,te={available:[],redeemed:[],locked:[],expired:[],unknown:[],unredeemed:[],unclaimable:[],claimable:[],redeeming:[]};var ce=function(H){return H.Unknown="Unknown",H.EntitlementStarted="EntitlementStarted",H.AuthenticationCheckStarted="AuthenticationCheckStarted",H.AuthenticationComplete="AuthenticationComplete",H.AuthenticationFailed="AuthenticationFailed",H.EntitlementFailed="EntitlementFailed",H.EntitlementComplete="EntitlementComplete",H.RedemptionStarted="RedemptionStarted",H.RedemptionFailed="RedemptionFailed",H.RedemptionComplete="RedemptionComplete",H}(ce||{})},7486:(je,z,c)=>{"use strict";c.d(z,{y:()=>Oe});var r=c(57258),n=c(12532),v=c(43848),h=c(36466),f=c(59859),A=c(83915),M=c(75707),T=c(14714),E=c(65706),y=c(91384),S=c(40482),l=c(82546),s=c(99458),u=c(62400),m=c(12667),I=c(70279),R=c(37438),O=c(58527),Y=c(3816),j=c(80583),fe=c(16229),te=c(35146),ce=c(79539),H=c(8619),Z=c(72147),X=c(10404),ue=c(74931),Me=c(70650),be=c(26513),Q=c(55833),ne=c(58007),Ge=c(35965),ge=c(47847);let Xe=(()=>{var ye;class Ie{constructor(K,ve,De,pe){this.loggingService=K,this.gfwslService=ve,this.gfwslParamsService=De,this.config=pe,this.logger=K.getLogger("NvApp/Rewards/RewardsSdkService"),this.jwsLib=ne.hT.JWS,this.sessionUpdated$=new be.t({parsedOverallState:!1}),this.gfwslService.addEndpointDefinitions([s.rC,s.Jn,s.Mg,s.Vj,s.N4])}get onGfwslSessionUpdated(){return this.sessionUpdated$}target(K,ve){return this.gfwslService.callEndpoint(K,{cmID:ve}).pipe((0,M.ZZ)(De=>this.validateGfwslResponse(De,K)),(0,A.T)(De=>JSON.parse(De.sessionState.overallState)),(0,Q.t)(1))}digestMessage(K){return(0,Me.A)(function*(){const ve=(new TextEncoder).encode(K),De=yield crypto.subtle.digest("SHA-256",ve);return Array.from(new Uint8Array(De)).map(zt=>zt.toString(16).padStart(2,"0")).join("")})()}getSession(){const K=this.gfwslParamsService.getParams({},["gcV","aiD"]),ve=K.aiD,pe=`_egcV=${JSON.stringify({_egcV:K.gcV,aiD:K.aiD})}`;return this.callGfwslJwsEndpoint(s.Jn.name,{},"",ve,{},pe).pipe((0,A.T)(zt=>zt.sessionState))}validateGfwslResponse(K,ve){return this.isGfwslResponseValid(K)?(0,v.of)(K.body.html.body):(0,f.$)(`Invalid GFWSL Response for ${ve}`)}isGfwslResponseValid(K){return!!(K&&K.body&&K.body.html&&K.body.html.body)}verifySession(K){const ve=this.gfwslParamsService.getParams({},["gcV","aiD"]),De=ve.aiD,pe=s.Mg.name,Qe=this.gfwslParamsService.getParams({},s.kv);let Vt;return this.callGfwslJwsEndpoint(pe,{_ecnon_GfV:`${K.nonce.value}${s.db}${ve.gcV}`,aiD:De,_theSysJson:Qe},K.nonce.value,De).pipe((0,M.ZZ)(de=>(Vt=de.sessionState,this.parseGfwslResponseJws(Vt.vrfyRspPyld.value,Vt.ecnon_egcv.value,De,pe))),(0,A.T)(de=>{const J={...Vt,...de};return this.sessionUpdated$.next(J),J}))}callGfwslJwsEndpoint(K,ve,De,pe,Qe,zt){let de,Vt="";return zt?de=zt:(Vt=this.getSignedGfwslJws(ve,De,pe),de=`_ecnon_GfV=${encodeURIComponent(window.btoa(Vt))}`),this.gfwslService.callEndpoint(K,Qe,de).pipe((0,M.ZZ)(J=>this.validateGfwslResponse(J,K)),(0,A.T)(J=>(this.sessionUpdated$.next(J.sessionState),J)))}getSignedGfwslJws(K,ve,De){const pe={_pyld:JSON.stringify(K)};return this.jwsLib.sign(s.vr,s.DU,pe,`${ve}.${De}`)}parseGfwslResponseJws(K,ve,De,pe){const Qe=window.atob(decodeURIComponent(K));if(this.jwsLib.verify(Qe,`${ve}.${De}`,[s.vr])){const Vt=this.jwsLib.parse(Qe),de=JSON.parse(Vt.payloadPP);return(0,v.of)(JSON.parse(de))}return(0,f.$)(`Failed to verify GFWSL JWS for ${pe}`)}getRewardsStatus(K,ve,De){const pe=this.gfwslParamsService.getParams({},["aiD","uCst"]),Qe=pe.aiD,zt=pe.uCst,Vt=K.ecnon_egcv.value,de=s.Vj.name,J=this.gfwslParamsService.getParams({},s.kv);return this.callGfwslJwsEndpoint(de,{_vrsCmpgnStsPyldJson:{_ecnon_GfV:Vt,aiD:Qe,_theSysJson:J,_thePiJson:{sfUid:ve.user.userId,sfidTK:ve.idToken,uCst:zt},_VrsHashDiceGpuAchJson:De}},Vt,Qe).pipe((0,M.ZZ)(st=>this.parseGfwslResponseJws(st.CampaignStatus,st.sessionState.ecnon_egcv.value,Qe,de)),(0,A.T)(st=>st.vrsCampaignStatus.rewards))}redeemEntitlement(K,ve,De,pe,Qe){const zt=Qe===s.QU.Coupon?{CPN:pe}:{cmID:pe},Vt=this.gfwslParamsService.getParams({},["aiD","uCst"]),de=Vt.aiD,J=Vt.uCst,$e=K.ecnon_egcv.value,st=s.N4.name,Gt=this.gfwslParamsService.getParams({},s.kv);return this.callGfwslJwsEndpoint(st,{_vrsCmpgnRdmPyldJson:{_ecnon_GfV:$e,aiD:de,_theSysJson:Gt,_thePiJson:{sfUid:ve.user.userId,sfidTK:ve.idToken,uCst:J},_theVrsRwdJson:zt,_RdmHashDiceGpuJson:De}},$e,de).pipe((0,M.ZZ)(kn=>this.parseGfwslResponseJws(kn.CampaignRedeem,kn.sessionState.ecnon_egcv.value,de,st)),(0,A.T)(kn=>kn.vrsCampaignRedeem[0]))}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(O.KVO(Y.J6),O.KVO(Ge.XB),O.KVO(Ge.Tg),O.KVO(ge.Vk))},ye.\u0275prov=O.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Ie})();var ot=c(52490),dt=c(94485);let xe=(()=>{var ye;class Ie{constructor(K,ve,De){this.bridgeService=ve,this.http=De,this.convertStringToHexWithWordShift=function(pe,Qe){let zt=0;for(let Vt=0;Vt<Qe;Vt++)switch(pe[Qe-1-Vt]){case"0":zt|=0<<4*Vt;break;case"1":zt|=1<<4*Vt;break;case"2":zt|=2<<4*Vt;break;case"3":zt|=3<<4*Vt;break;case"4":zt|=4<<4*Vt;break;case"5":zt|=5<<4*Vt;break;case"6":zt|=6<<4*Vt;break;case"7":zt|=7<<4*Vt;break;case"8":zt|=8<<4*Vt;break;case"9":zt|=9<<4*Vt;break;case"a":case"A":zt|=10<<4*Vt;break;case"b":case"B":zt|=11<<4*Vt;break;case"c":case"C":zt|=12<<4*Vt;break;case"d":case"D":zt|=13<<4*Vt;break;case"e":case"E":zt|=14<<4*Vt;break;case"f":case"F":zt|=15<<4*Vt}return zt},this.logger=K.getLogger("nvapp/UserProfile/Rewards/GpuEcidService")}GetGpuEcid(K){const ve=this.formatNvApiRequestPayload(K),De={gpuHandle:parseInt(K.primaryGpuId,16),signParams:{key:ve.key,nonce:ve.nonce,programId:ve.programId,sessionId:ve.sessionId,signAlgorithm:ve.algorithm}};return this.bridgeService.executeCommand(ue.Ts.Nvapp.Localgames.GetSignedGPUID,De).pipe((0,A.T)(pe=>{const Qe=this.formatNvApiResponsePayload(pe);return{chId:Qe.deviceChipsetId,grId:Qe.deviceRevision,diCe:Qe.hashedEcid,eSgn:Qe.signedPayload,uVsn:Qe.uCodeVersion}}),(0,T.W)(pe=>(this.logger.error("error in getting signed gpuId"),(0,f.$)(pe))))}formatNvApiResponsePayload(K){return{deviceChipsetId:this.toPaddedString(K.deviceInfo.chipId,-4,s.Pd,16),deviceRevision:this.toPaddedString(K.deviceInfo.revisionId,-4,s.Pd,16),hashedEcid:this.formatHashedEcid(K.ecidSha2Hash),signedPayload:this.toEncodedBase64FromByteArray(K.data),uCodeVersion:this.toPaddedString(K.uCodeVersion,-1*s.Pd,s.Pd,10)}}toPaddedString(K,ve,De,pe){return"number"==typeof K?(s.ov.repeat(De)+K.toString(pe)).slice(ve):(s.ov.repeat(De)+K).slice(ve)}formatHashedEcid(K){const ve=this.getHexStringFromByteArray(K).replace("-","").toLowerCase();return this.toEncodedBase64FromByteArray(this.toByteArray(ve))}getHexStringFromByteArray(K){let ve="";return K.forEach(De=>{ve+=this.toPaddedString(De,-2,2,16)}),ve}toByteArray(K){return K.split("").map((ve,De)=>K.charCodeAt(De))}toEncodedBase64FromByteArray(K){const ve=new Uint8Array(K);return encodeURIComponent((0,ot.iI)(ve))}formatNvApiRequestPayload(K){return{algorithm:K.signAlgo,nonce:this.getNonceBytes(K.nonce),programId:this.getProgramId(K.clientVersion,K.driverVersion),key:Array.from(this.toByteArrayFromEncodedString(K.key)),sessionId:s.h8}}getNonceBytes(K){K.length>s.Sw&&(K=K.slice(0,s.Sw));const De=K.split("");if(De.length===s.Sw){let pe;const Qe=new ArrayBuffer(16),zt=new DataView(Qe,0);for(let de=0;de<16;de++)pe=this.convertStringToHexWithWordShift(De.slice(2*de,2*de+2),2),zt.setUint8(16-de-1,pe);const Vt=new Uint8Array(Qe,0);return Array.prototype.slice.call(Vt)}return null}getProgramId(K,ve){const De=this.removeDotsFromString(K)+this.removeDotsFromString(ve),pe=De.length>s.Pd?De.substring(0,s.Pd):this.toPaddedString(De,-1*s.Pd,s.Pd);return parseInt(pe,16)}removeDotsFromString(K){return K.replace(/\./g,"")}toByteArrayFromEncodedString(K){return(0,ot.bg)(decodeURIComponent(K))}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(O.KVO(Y.J6),O.KVO(Y.NZ),O.KVO(dt.Qq))},ye.\u0275prov=O.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Ie})(),Re=(()=>{var ye;class Ie{constructor(K,ve,De,pe,Qe,zt,Vt){this.loggingService=K,this.loginService=ve,this.rewardsSdkService=De,this.gfwslParamsService=pe,this.gpuEcidService=Qe,this.bridgeService=zt,this.http=Vt,this.logger=K.getLogger("nvapp/RewardsFlowService"),this.rewardsRequestQueue$=new j.B7,this.profileRequestQueue$=new j.B7,this.mainRequestQueue$=(0,fe.h)(this.rewardsRequestQueue$,this.profileRequestQueue$),this.userDetails={user:X.OV,idToken:""},this.gfwslParamsReady=!1,this.ongoingRequests=new Map}initialize(){this.gfwslParamsService.gfwslParamsUpdated.subscribe(K=>{this.gfwslParamsReady=this.areGfwslParamsAvailable(K)}),this.rewardsSdkService.onGfwslSessionUpdated.subscribe(K=>{this.session=Object.assign({},this.session,K),this.session.parsedOverallState=this.session.overallState?"true"===this.session.overallState:this.session.parsedOverallState}),this.mainRequestQueue$.pipe((0,ce.H)(K=>K.workerFn.pipe((0,y.M)(ve=>{K.response$.next(ve),K.response$.complete(),this.ongoingRequests.delete(K.name)}),(0,T.W)(ve=>(this.session.parsedOverallState=!1,K.response$.error(ve),K.response$.complete(),this.ongoingRequests.delete(K.name),(0,v.of)(ve)))))).subscribe()}areGfwslParamsAvailable(K){return!!(K.hasSystemInfo&&K.hasLocaleInfo&&K.hasUserInfo)}getRewards(){const K={name:s.GI.TargetRewards,targetName:s.rC.name,campaign:s.ix.TargetRewards,response$:new j.B7};return K.workerFn=this.createSession(K).pipe((0,M.ZZ)(ve=>this.rewardsSdkService.getRewardsStatus(this.session,this.userDetails,ve))),this.processRequest(K).pipe((0,T.W)(ve=>ve&&ve.ecidPayLoad?this.rewardsSdkService.getRewardsStatus(this.session,this.userDetails,ve.ecidPayLoad):(0,f.$)(ve)))}createSession(K){return this.isSessionValid()?this.prepareEndpointPayload(K):(this.logger.info("get and create fresh session"),this.onGfwslParamsReady().pipe((0,M.ZZ)(ve=>this.rewardsSdkService.getSession()),(0,M.ZZ)(ve=>this.rewardsSdkService.verifySession(ve)),(0,M.ZZ)(()=>this.prepareEndpointPayload(K)),(0,T.W)(ve=>(this.logger.error("error in create session",ve),(0,f.$)(ve)))))}isSessionValid(){if(this.session.parsedOverallState&&this.hasValue(this.session.gfeEtaExpire)&&this.gfwslParamsReady){const K=new Date,ve=new Date(this.session.gfeEtaExpire.value);K.setSeconds(K.getSeconds()+s.GO);const De=K<ve;return this.logger.info("Session validity : ",De?"valid session":"session timeout"),De}return this.logger.info("gfeEtaExpire either not available or overAllStatus is false"),!1}hasValue(K){return!(!K||!K.value)}prepareEndpointPayload(K){return this.refreshUserDetails().pipe((0,M.ZZ)(()=>this.refreshEcidPayload()))}refreshUserDetails(){return this.loginService.accountStatusChanged.pipe((0,M.ZZ)(K=>(this.userDetails.user=K,K.isAuthenticated?this.loginService.getAuthToken().pipe((0,M.ZZ)(ve=>ve?(0,v.of)(ve):(0,f.$)("auth token fetch failed"))):(0,f.$)("User not logged in"))),(0,A.T)(K=>(this.userDetails.idToken=K,this.userDetails)),(0,E.s)(1))}refreshEcidPayload(){const K=this.gfwslParamsService.getParams({},["gcV","GFPV","pgpuId"]),ve=this.session.ecnon_egcv.value.substring(0,16)+this.userDetails.idToken.substring(0,16);return this.gpuEcidService.GetGpuEcid({signAlgo:+this.session.SgnGpuIdAlgo.value,key:this.session.ecnon_egpk.value,clientVersion:K.gcV,driverVersion:K.GFPV,nonce:ve,primaryGpuId:K.pgpuId})}onGfwslParamsReady(){return this.gfwslParamsService.gfwslParamsUpdated.pipe((0,H.p)(K=>this.areGfwslParamsAvailable(K)),(0,E.s)(1))}processRequest(K){return this.ongoingRequests.has(K.name)?this.ongoingRequests.get(K.name).response$:(this.ongoingRequests.set(K.name,K),this.rewardsRequestQueue$.next(K),K.response$.pipe((0,E.s)(1),(0,T.W)(ve=>this.clearAllCookies().pipe((0,Z.n)(De=>this.createSession(K).pipe((0,M.ZZ)(pe=>(0,f.$)({error:ve,ecidPayLoad:pe}))))))))}entitle(K,ve){const De={name:s.GI.RedeemReward,targetName:s.N4.name,campaign:s.ix.TargetRewards,response$:new j.B7};return De.workerFn=this.createSession(De).pipe((0,M.ZZ)(pe=>this.rewardsSdkService.redeemEntitlement(this.session,this.userDetails,pe,K,ve))),this.processRequest(De).pipe((0,T.W)(pe=>pe&&pe.ecidPayLoad?this.rewardsSdkService.redeemEntitlement(this.session,this.userDetails,pe.ecidPayload,K,ve):(0,f.$)(pe)))}clearAllCookies(){const K=this.gfwslParamsService.getServer(),ve=K.search("//"),De=K.slice(ve+2,K.length-1);this.logger.info(" clearCookies called",De);const pe=this.bridgeService.executeCommand(ue.Ts.Common.Applicationcontrol.DeleteCookies,{url:De,cookiename:"PHPSESSID"}),Qe=this.bridgeService.executeCommand(ue.Ts.Common.Applicationcontrol.DeleteCookies,{url:De,cookiename:"AWSELBCORS"}),zt=this.bridgeService.executeCommand(ue.Ts.Common.Applicationcontrol.DeleteCookies,{url:De,cookiename:"AWSALBCORS"});return(0,te.yU)(pe,Qe,zt).pipe((0,y.M)(([Vt,de,J])=>this.logger.info("cookies deleted successfully",Vt,de,J)),(0,T.W)(Vt=>(this.logger.info("error in deleting cookies",Vt),(0,v.of)(!1))))}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(O.KVO(Y.J6),O.KVO(X.HF),O.KVO(Xe),O.KVO(Ge.Tg),O.KVO(xe),O.KVO(Y.NZ),O.KVO(dt.Qq))},ye.\u0275prov=O.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Ie})();var Ue=c(45276),ee=c(95212),W=c(73796),Pe=c(73370),le=c(65240),oe=c(96306),Le=c(1242);let Oe=(()=>{var ye;class Ie{constructor(K,ve,De,pe,Qe,zt,Vt,de,J,$e,st,Gt,Zt,kn){this.loggingService=K,this.eventStreamFactory=ve,this.rewardsFlowService=De,this.loginService=pe,this.vrsSdkService=Qe,this.config=zt,this.genericDialog=Vt,this.bridgeService=de,this.lcarsService=J,this.piplLocaleConfigService=$e,this.translateService=st,this.errorHandlerService=Gt,this.telemetryUtilService=Zt,this.redirectService=kn,this.rewardsUpdatedSubscription=new r.m(1),this.currentUser=null,this.errorDialogLinkClicked=()=>{this.logger.info("link clicked"),this.redirectService.redirectTo(I.r7.NvappRedeemInstructions)},this.logger=K.getLogger("nvapp/RewardsService")}fetchRewards(){return this.currentUser?.isAuthenticated?this.rewardsFlowService.getRewards().pipe((0,A.T)(K=>this.processRewards(K))):this.vrsSdkService.getRewards().pipe((0,A.T)(K=>this.processRewards(K?.rewards)))}processRewards(K){const ve=this.emptyRewardsHistory();return K.forEach(De=>{this.logger.info("RewardsVrsItem",De),De.state=(0,S.T7)(De.state),De.status=(0,S.T7)(De.status),De.campaign.type=(0,S.T7)(De.campaign.type),De.uId=this.getUniqueRewardIdentifier(De),ve[De.status]?ve[De.status].push(this.getNewReward(De)):ve[l.E.Unknown].push(this.getNewReward(De))}),ve}getNewReward(K){return new u.e(this.loggingService,this.loginService,this.rewardsFlowService,this.bridgeService,K,this.config,this.telemetryUtilService)}getUniqueRewardIdentifier(K){return K.status+(K.state||"")+(K.entitlementId||"")+(K.redemptionId||"")+K.campaign.uuid}initialize(){this.rewardsFlowService.initialize(),this.loginService.accountStatusChanged.pipe((0,M.ZZ)(K=>(K.isAuthenticated?this.unsubscribePiplConfigUpdateEvent():this.registerForPiplLocalizationConfigUpdateEvent(),this.currentUser?.userId!==K.userId?(this.currentUser=K,this.getRewards(!0)):n.w)),(0,T.W)(K=>{this.logger.error("error in fetch rewards",K);const ve=this.emptyRewardsHistory();return(0,v.of)(ve)})).subscribe(h.l,h.l),this.registerListenToRefreshRewards()}registerListenToRefreshRewards(){u.e.refreshRewards.subscribe(K=>{this.getRewards(K).subscribe(ve=>{this.logger.info("refresh the list")})})}getRewards(K=!1){return K?this.fetchRewards().pipe((0,E.s)(1),(0,y.M)(ve=>{this.rewardsUpdatedSubscription.next(ve)}),(0,T.W)(ve=>{this.logger.info("error in refresh rewards",ve);const De=this.emptyRewardsHistory();return this.rewardsUpdatedSubscription.next(De),(0,v.of)(ve)})):this.rewardsUpdatedSubscription.asObservable()}pushNewRewardToHistory(K){return this.rewardsUpdatedSubscription.pipe((0,E.s)(1),(0,A.T)(ve=>{this.logger.info("Reward status",K?.status);let De=!1;if(ve.available.length>0){const pe=ve.available.findIndex(Qe=>Qe.state===l.E.Claimable&&Qe.entitlementId===K.entitlementId);-1!==pe&&(ve.available[pe]=K,De=!0,this.logger.info("Already entitled"))}return De||ve[K.status].push(K),this.rewardsUpdatedSubscription.next(ve),ve}))}redeemCoupon(K){let ve=new u.e(this.loggingService,this.loginService,this.rewardsFlowService,this.bridgeService,null,this.config,this.telemetryUtilService,K);return ve.redeem().pipe((0,A.T)(De=>{const pe={rewardRedemptionState:De};return De===s.Se.EntitlementComplete?(this.pushNewRewardToHistory(ve).subscribe(),ve=null):De===s.Se.EntitlementFailed&&(pe.error=ve.error),pe}))}showRewardBridgeState(){const K=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"rewards.redemtionInProgress"},bodyText:{text:"rewards.rewardTabIsOpen"},primaryButton:{text:"common.cancel"}}});K.primaryButtonClick.pipe((0,E.s)(1)).subscribe(()=>{this.logger.info("cancle clicked "),K.close()})}showLoginToRedeemDialog(){const K=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"rewards.loginToRedeem"},bodyText:{text:"rewards.haveAnAccount"},primaryButton:{text:"common.login"},secondaryButton:{text:"common.cancel"}}});K.primaryButtonClick.pipe((0,E.s)(1)).subscribe(()=>{this.logger.info("Log in clicked "),K.close()}),K.secondaryButtonClick.pipe((0,E.s)(1)).subscribe(()=>{this.logger.info("cancle clicked "),K.close()})}listenToPanelUpdates(){return this.lcarsService.getPanelItems().pipe((0,A.T)(K=>this.processPanels(K)),(0,T.W)(K=>(this.logger.error("Error occured while fetching marquee",K),(0,f.$)(K))))}processPanels(K){return this.logger.info("Processing layout panels"),K?.filter(pe=>pe.name===m.HP.Rewards_Marquee)?.[0]?.sections?.[0]?.items}emptyRewardsHistory(){return{available:[],redeemed:[],locked:[],expired:[],unknown:[],unredeemed:[],unclaimable:[],claimable:[],redeeming:[]}}showEntilementFailedErrorDialog(K,ve){const De={text:"common.learnMore",linkClickedCallback:this.errorDialogLinkClicked.bind(this)};return this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,autoFocus:!1,data:{bodyText:{text:ve||"rewards.unableToRedeem"},primaryButton:{text:K?"shared.tryAgain":"common.close"},secondaryButton:K?{text:"common.close"}:void 0,link:De,autoFocusOnPrimaryButton:!1}})}unsubscribePiplConfigUpdateEvent(){this.piplLocaleConfigUpdateEventSub$&&(this.piplLocaleConfigUpdateEventSub$.unsubscribe(),this.piplLocaleConfigUpdateEventSub$=null)}registerForPiplLocalizationConfigUpdateEvent(){this.piplLocaleConfigUpdateEventSub$=this.piplLocaleConfigService.piplLocalizationConfigUpdated$.subscribe(K=>{this.getRewards(!0).subscribe(ve=>{this.logger.info("url changed, list refreshed")})})}showRewardUnAvailableDialog(){const K={featureName:this.translateService.instant("rewards.redeem")};this.errorHandlerService.showErrorDialog({headerText:{text:"common.featureNotAvailable"},bodyText:{text:"common.featureNotAvailableTryAgain",placeholders:K},translateValues:K,primaryButton:{text:"common.close"}})}isRewardUnAvailable(){return""===this.config.vrs?.server}isNvAppOnlyCampaign(K){return!!(K&&K.length>0&&K.find(ve=>ve.toLowerCase()===R.R1))}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(O.KVO(Y.J6),O.KVO(S.mZ),O.KVO(Re),O.KVO(X.HF),O.KVO(Ue.T),O.KVO(ge.Vk),O.KVO(ee.uh),O.KVO(Y.NZ),O.KVO(W.B),O.KVO(Pe.X),O.KVO(le.c$),O.KVO(oe.c),O.KVO(Le.AY),O.KVO(I.Q5))},ye.\u0275prov=O.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Ie})()},82546:(je,z,c)=>{"use strict";c.d(z,{E:()=>r});var r=function(n){return n.Available="available",n.Redeemed="redeemed",n.UnRedeemed="unredeemed",n.UnClaimable="unclaimable",n.Claimable="claimable",n.Redeeming="redeeming",n.Locked="locked",n.Expired="expired",n.Unknown="unknown",n}(r||{})},45276:(je,z,c)=>{"use strict";c.d(z,{T:()=>y});var r=c(8619),n=c(65706),v=c(75707),h=c(52117),f=c(58527),A=c(3816),M=c(5798),T=c(35965),E=c(47847);let y=(()=>{var S;class l{constructor(u,m,I,R,O){this.distributedtracingUtilService=m,this.endpointFactory=I,this.gfwslParamService=R,this.vrsConfig=null,this.logger=u.getLogger("nvapp/VrsSdkService"),this.vrsConfig=O.vrs,this.vrsEndpoint=this.endpointFactory.createEndpoint({config:{maxRetries:this.vrsConfig.defaultRetries,retryOnTimeout:this.vrsConfig.retryOnTimeout,timeBetweenRetries:void 0,exponentialBackoffMaxDelay:this.vrsConfig.exponentialBackoffMaxDelay}})}getFullUrl(){return this.vrsConfig.server}areGfwslParamsAvailable(u){return!!(u.hasSystemInfo&&u.hasLocaleInfo&&u.params.dIDa)}onGfwslParamsReady(){return this.gfwslParamService.gfwslParamsUpdated.pipe((0,r.p)(u=>this.areGfwslParamsAvailable(u)),(0,n.s)(1))}getRewards(u){return this.logger.info("getting rewards"),this.onGfwslParamsReady().pipe((0,v.ZZ)(m=>{const I=this.gfwslParamService.getParams({},["dIDa","IsQ","dFma","gLG","osC","osB","iLp","gcV","GFPV","gLg"]);Array.isArray(I.dIDa)&&(I.dIDa=I.dIDa.join(","));const O={headers:{"Content-Type":"application/json"},params:I},Y=this.vrsEndpoint.get(this.getFullUrl(),O);return this.distributedtracingUtilService.handleHttpEndpointSpan(Y,O,h.pB.VrsGetRewards,u)}))}setConfigServer(u){this.vrsConfig.server=u}}return(S=l).\u0275fac=function(u){return new(u||S)(f.KVO(A.J6),f.KVO(h.Z1),f.KVO(M.t),f.KVO(T.Tg),f.KVO(E.Vk))},S.\u0275prov=f.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),l})()},64124:(je,z,c)=>{"use strict";c.d(z,{$:()=>h});var r=c(80583),n=c(58527),v=c(3816);let h=(()=>{var f;class A{constructor(T){this.loggingService=T,this.unsubscribe$=new r.B7,this.logger=T.getLogger("nvapp/BaseComponent")}ngOnDestroy(){this.unsubscribe$?.next(!0),this.unsubscribe$?.complete(),this.logger.info("unsubscribed from BaseComponent")}}return(f=A).\u0275fac=function(T){return new(T||f)(n.rXU(v.J6))},f.\u0275cmp=n.VBU({type:f,selectors:[["ng-component"]],decls:0,vars:0,template:function(T,E){},encapsulation:2}),A})()},93964:(je,z,c)=>{"use strict";c.d(z,{Q:()=>T});var r=c(58527),n=c(61142),v=c(99204),h=c(28139),f=c(65240);const A=E=>({"overlay-spinner":E});function M(E,y){if(1&E&&(r.j41(0,"span",3),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&E){const S=r.XpG();r.R7$(),r.JRh(r.bMT(2,1,S.assistiveText))}}let T=(()=>{var E;class y{constructor(){this.diameter=30,this.overlaySpinner=!1}get classBinding(){return!this.overlaySpinner}}return(E=y).\u0275fac=function(l){return new(l||E)},E.\u0275cmp=r.VBU({type:E,selectors:[["nv-app-page-load-spinner"]],hostVars:2,hostBindings:function(l,s){2&l&&r.AVh("spinner-container",s.classBinding)},inputs:{diameter:"diameter",assistiveText:"assistiveText",overlaySpinner:"overlaySpinner"},decls:3,vars:5,consts:[[1,"page-load-spinner",3,"ngClass"],["mode","indeterminate",1,"mat-accent",3,"diameter"],["class","font-body3 loading-details-text",4,"ngIf"],[1,"font-body3","loading-details-text"]],template:function(l,s){1&l&&(r.j41(0,"div",0),r.nrm(1,"mat-progress-spinner",1),r.DNE(2,M,3,3,"span",2),r.k0s()),2&l&&(r.Y8G("ngClass",r.eq3(3,A,s.overlaySpinner)),r.R7$(),r.Y8G("diameter",s.diameter),r.R7$(),r.Y8G("ngIf",s.assistiveText))},dependencies:[n.YU,n.bT,v.LG,h.PW,f.D9],styles:["[_nghost-%COMP%]{width:100%;height:100%}.spinner-container[_nghost-%COMP%]{position:absolute}.loading-details-text[_ngcontent-%COMP%]{margin-top:8px}.page-load-spinner[_ngcontent-%COMP%]{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;min-width:100%;min-height:100%}.overlay-spinner[_ngcontent-%COMP%]{position:relative}"]}),y})()},15172:(je,z,c)=>{"use strict";c.d(z,{Z:()=>Y});var r=c(26537),n=c(58527),v=c(3816),h=c(74150),f=c(61142),A=c(54676),M=c(47973),T=c(65240);function E(j,fe){if(1&j&&(n.j41(0,"div",9)(1,"label",10),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.nrm(4,"label",11),n.k0s()),2&j){const te=n.XpG();n.R7$(2),n.JRh(n.bMT(3,2,"manage3dSettings.Description")),n.R7$(2),n.Y8G("innerHtml",te.description,n.npT)}}function y(j,fe){if(1&j){const te=n.RV6();n.j41(0,"a",14),n.bIt("click",function(){n.eBV(te);const H=n.XpG(2);return n.Njj(H.data.link.linkClickedCallback())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&j){const te=n.XpG(2);n.R7$(),n.SpI(" ",n.bMT(2,1,te.data.link.text)," ")}}function S(j,fe){if(1&j&&(n.j41(0,"div",12),n.DNE(1,y,3,3,"a",13),n.k0s()),2&j){const te=n.XpG();n.R7$(),n.Y8G("ngIf",te.data.link.linkClickedCallback)}}function l(j,fe){if(1&j&&(n.j41(0,"div",15)(1,"label",10),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"label",16),n.EFF(5),n.k0s()()),2&j){const te=n.XpG();n.R7$(2),n.JRh(n.bMT(3,2,"manage3dSettings.Info")),n.R7$(3),n.JRh(te.data.subtitle)}}function s(j,fe){if(1&j&&(n.j41(0,"div",17)(1,"label",10),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.nrm(4,"label",18),n.k0s()),2&j){const te=n.XpG();n.R7$(2),n.JRh(n.bMT(3,2,"manage3dSettings.TypicalUsageScenarios")),n.R7$(2),n.Y8G("innerHtml",te.typicalUsageScenarios,n.npT)}}function u(j,fe){if(1&j){const te=n.RV6();n.j41(0,"a",14),n.bIt("click",function(){n.eBV(te);const H=n.XpG(3);return n.Njj(null==H.data.tips.link?null:H.data.tips.link.linkClickedCallback())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&j){const te=n.XpG(3);n.R7$(),n.SpI(" ",n.bMT(2,1,null==te.data?null:te.data.tips.link.text)," ")}}function m(j,fe){if(1&j&&(n.j41(0,"div",20),n.DNE(1,u,3,3,"a",13),n.k0s()),2&j){const te=n.XpG(2);n.R7$(),n.Y8G("ngIf",null==te.data.tips.link?null:te.data.tips.link.linkClickedCallback)}}function I(j,fe){if(1&j&&(n.j41(0,"div",17)(1,"label",10),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.nrm(4,"label",18),n.DNE(5,m,2,1,"div",19),n.k0s()),2&j){const te=n.XpG();n.R7$(2),n.JRh(n.bMT(3,3,"common.tips")),n.R7$(2),n.Y8G("innerHtml",te.tips,n.npT),n.R7$(),n.Y8G("ngIf",te.data.tips.link)}}function R(j,fe){if(1&j&&(n.j41(0,"li"),n.nrm(1,"label",24),n.k0s()),2&j){const te=fe.$implicit;n.R7$(),n.Y8G("innerHtml",te,n.npT)}}function O(j,fe){if(1&j&&(n.j41(0,"div",21)(1,"label",10),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"ul",22),n.DNE(5,R,2,1,"li",23),n.k0s()()),2&j){const te=n.XpG();n.R7$(2),n.JRh(n.bMT(3,2,"manage3dSettings.Error")),n.R7$(3),n.Y8G("ngForOf",te.errors)}}let Y=(()=>{var j;class fe{constructor(ce,H,Z,X){this.dialogRef=ce,this.loggingService=H,this.sanitizer=X,this.errors=[],this.logger=this.loggingService.getLogger("nvapp/SettingInfoModalComponent"),this.data=Z}ngOnInit(){this.typicalUsageScenarios=this.data.typicalUsageScenarios?this.sanitizer.bypassSecurityTrustHtml(this.data.typicalUsageScenarios):null,this.description=this.data.description?this.sanitizer.bypassSecurityTrustHtml(this.data.description):null,this.errors=this.data?.errors?.map(ce=>ce?this.sanitizer.bypassSecurityTrustHtml(ce):null),this.tips=this.data.tips?this.sanitizer.bypassSecurityTrustHtml(this.data.tips.text):null}close(){this.logger.info("close clicked"),this.dialogRef.close()}}return(j=fe).\u0275fac=function(ce){return new(ce||j)(n.rXU(r.CP),n.rXU(v.J6),n.rXU(r.Vh),n.rXU(h.up))},j.\u0275cmp=n.VBU({type:j,selectors:[["nv-app-setting-info-modal"]],inputs:{data:"data"},decls:15,vars:10,consts:[["mat-dialog-title","",1,"setting-modal-title","font-header6"],[1,"setting-modal-content"],["class","description",4,"ngIf"],["class","link",4,"ngIf"],["class","subtitle",4,"ngIf"],["class","typical-usage",4,"ngIf"],["class","error",4,"ngIf"],["align","end"],["mat-button","",1,"font-button2",3,"click"],[1,"description"],[1,"font-sub1"],[1,"font-body2",3,"innerHtml"],[1,"link"],["class","font-body2-link",3,"click",4,"ngIf"],[1,"font-body2-link",3,"click"],[1,"subtitle"],[1,"font-body2"],[1,"typical-usage"],[1,"font-body2","typical-usage-details",3,"innerHtml"],["class","link tip-link",4,"ngIf"],[1,"link","tip-link"],[1,"error"],[1,"font-body2","error-msg"],[4,"ngFor","ngForOf"],[3,"innerHtml"]],template:function(ce,H){1&ce&&(n.j41(0,"div",0)(1,"span"),n.EFF(2),n.k0s()(),n.j41(3,"mat-dialog-content")(4,"div",1),n.DNE(5,E,5,4,"div",2)(6,S,2,1,"div",3)(7,l,6,4,"div",4)(8,s,5,4,"div",5)(9,I,6,5,"div",5)(10,O,6,4,"div",6),n.k0s()(),n.j41(11,"mat-dialog-actions",7)(12,"button",8),n.bIt("click",function(){return H.close()}),n.EFF(13),n.nI1(14,"translate"),n.k0s()()),2&ce&&(n.R7$(2),n.JRh(null==H.data?null:H.data.title),n.R7$(3),n.Y8G("ngIf",null==H.data?null:H.data.description),n.R7$(),n.Y8G("ngIf",null==H.data?null:H.data.link),n.R7$(),n.Y8G("ngIf",null==H.data?null:H.data.subtitle),n.R7$(),n.Y8G("ngIf",null==H.data?null:H.data.typicalUsageScenarios),n.R7$(),n.Y8G("ngIf",null==H.data?null:H.data.tips),n.R7$(),n.Y8G("ngIf",(null==H.data||null==H.data.errors?null:H.data.errors.length)>0),n.R7$(3),n.SpI(" ",n.bMT(14,8,"common.close")," "))},dependencies:[f.Sq,f.bT,A.tG,M.iV,r.BI,r.Yi,r.E7,T.D9],styles:[".setting-modal-content[_ngcontent-%COMP%]{padding:0 24px}.setting-modal-title[_ngcontent-%COMP%]{padding:18px 24px 0;margin:0 0 24px}.description[_ngcontent-%COMP%], .typical-usage[_ngcontent-%COMP%], .subtitle[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.subtitle[_ngcontent-%COMP%], .typical-usage[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{margin-top:24px}.link[_ngcontent-%COMP%], .tip-link[_ngcontent-%COMP%]{margin-top:16px}.error-msg[_ngcontent-%COMP%]{margin:0;padding:0 0 0 24px}.tip-link[_ngcontent-%COMP%]{padding:0 0 0 24px}"]}),fe})()},92626:(je,z,c)=>{"use strict";c.d(z,{u:()=>f});var r=c(99204),n=c(94645),v=c(58527),h=c(3816);let f=(()=>{var A;class M{set showSpinner(E){this._showSpinner=E,this._showSpinner&&this.matSpinner?(this.renderer.addClass(this.matSpinner.location.nativeElement,"show"),this.renderer.removeClass(this.span,"show")):!this.showSpinner&&this.span&&(this.renderer.addClass(this.span,"show"),this.renderer.removeClass(this.matSpinner.location.nativeElement,"show"))}get showSpinner(){return this._showSpinner}constructor(E,y,S,l){this.element=E,this.loggingService=y,this.viewContainerRef=S,this.renderer=l,this.logger=this.loggingService.getLogger("nvapp/TextButtonSpinnerDirective")}ngOnInit(){this.viewContainerRef.clear(),this.renderer.addClass(this.element.nativeElement,"text-button-spinner-container");const E=this.element.nativeElement.querySelector(".mat-button-wrapper");this.attachClassToButtontext(E),this.attachSpinner(E)}ngOnChanges(E){E?.buttonText&&this.span&&(this.span.innerHTML=this.buttonText)}attachClassToButtontext(E){this.element&&(this.span=document.createElement("span"),this.span.innerHTML=this.buttonText,this.renderer.addClass(this.span,"text"),this.renderer.addClass(this.span,"show"),this.renderer.appendChild(E,this.span))}attachSpinner(E){this.element&&(this.matSpinner=this.viewContainerRef.createComponent(r.LG),this.matSpinner.instance.diameter=this.diameter??n.hx,this.matSpinner.instance.mode="indeterminate",this.renderer.addClass(this.matSpinner.location.nativeElement,"mat-accent"),this.renderer.addClass(this.matSpinner.location.nativeElement,"spinner"),this.renderer.appendChild(E,this.matSpinner.location.nativeElement))}}return(A=M).\u0275fac=function(E){return new(E||A)(v.rXU(v.aKT),v.rXU(h.J6),v.rXU(v.c1b),v.rXU(v.sFG))},A.\u0275dir=v.FsC({type:A,selectors:[["","nvAppTextButtonSpinner",""]],inputs:{diameter:"diameter",showSpinner:"showSpinner",buttonText:"buttonText"},features:[v.OA$]}),M})()},47847:(je,z,c)=>{"use strict";c.d(z,{Vk:()=>r,ht:()=>Ge,OS:()=>te});class r{}var n=c(58527),v=c(31315),h=c(43848),f=c(59859),A=c(83915),M=c(14714),T=c(91384),E=c(72147),y=c(10174),S=c(65706),l=c(14709),s=c(3816),u=c(64100),m=c(73370),I=c(35184),R=c(65240),O=c(96306),Y=c(37159),j=c(83997),fe=c(26772);function te(ge){return{appVersion:ge.build.version,...ge.gfwsl}}const ce="overrides",H=ce+".json",ne={provide:n.hnV,useFactory:function ue(ge,Xe,ot,dt,xe){return()=>function Q(ge,Xe,ot,dt,xe){return new Promise((Re,Ue)=>{ge.init();const ee=ge.mandatoryPluginsLoaded$.subscribe(W=>{W.loaded?function be(ge,Xe){return ge.get(j.$).fetchLanguageCode().pipe((0,S.s)(1),(0,E.n)(dt=>ge.get(s.iH).setLocale(dt)),(0,M.W)(dt=>(Xe.getLogger("configuration.provider/mandatoryPluginHandler").error("Failed to set language preference, setting default locale",dt),ge.get(s.iH).useDefaultLocale())))}(xe,dt).subscribe(()=>{ee.unsubscribe(),Re(!0)},Pe=>{dt.getLogger("configuration.provider/mandatoryPluginHandler").error("Failed to set locale",Pe),ee.unsubscribe(),Re(!0)}):function Me(ge){return ge.get(Y.m).isPluginLoaded(fe._g).pipe((0,E.n)(ot=>{if(ot)return ge.get(s.iH).useDefaultLocale();{const dt=ge.get(R.c$);return dt.setDefaultLang(s.Je),dt.use(s.MY).pipe((0,y.u)(s.MY))}}))}(xe).pipe((0,S.s)(1)).subscribe(Pe=>{ot.showPluginFailureErrorDialog(void 0,Pe)?.afterClosed().subscribe(oe=>{Ue("Mandatory plugin fails")}),Ue(!1)},Pe=>{dt.getLogger("configuration.provider/mandatoryPluginHandler").error("Failed to set translation locale",Pe)})},W=>{dt.getLogger("configuration.provider/mandatoryPluginHandler").error("Failed to register the listener for mandatory plugin",W)})})}(ge,0,ot,dt,xe)},multi:!0,deps:[I.n,R.c$,O.c,s.J6,n.zZn]},Ge=[{provide:n.hnV,useFactory:function Z(ge,Xe,ot,dt){const xe=Xe.getLogger("nvapp/configuration.provider");return()=>(0,v.zV)([ot.loadLocalizationConfigOverrides(),dt.readConfigFile(H,[ce]).pipe((0,A.T)(Re=>Re[ce]),(0,M.W)(Re=>(xe.error("Failed to fetch locale overrides",Re),404===Re?.code?(0,h.of)({}):(0,f.$)(Re))))]).pipe((0,T.M)(([Re,Ue])=>{ge.setOverrides(Ue),ge.setPiplLocalizationConfigOverrides(Re),xe.info("updated config => ",JSON.stringify(Re),JSON.stringify(Ue))}),(0,M.W)(Re=>(xe.error("Failed to fetch overrides",Re),(0,h.of)(!0)))).toPromise()},multi:!0,deps:[l.oO,s.J6,m.X,u.j]},(0,l.XR)(r),ne]},26772:(je,z,c)=>{"use strict";c.d(z,{A7:()=>y,CL:()=>A,DQ:()=>T,WP:()=>u,Y8:()=>l,_V:()=>m,_g:()=>R,c9:()=>M,cl:()=>E,dz:()=>s,f:()=>h,g4:()=>S,qA:()=>I});var r=c(6953),n=c(74931);const v="nvapp",h={Root:"/",Home:v+"/home",Help:v+"/help",Drivers:v+"/drivers",Rewards:v+"/rewards",Preferences:v+"/preferences",System:v+"/system",ReleaseHighlights:v+"/releaseHighlights",SystemInfo:v+r.wW.SystemInfo,Settings:v+r.wW.Settings,Manage3dSettings:v+r.wW.Manage3dSettings,ChangeResolution:v+r.wW.ChangeResolution},A=3e3,M=7e3,T="EEE MMM d, y",E="UTC",y="new-route",S="52px",l=n.Ts.Common.Downloader.StartDownload.module,s=n.Ts.Nvapp.Localgames.GetApplications.module,u=n.Ts.Nvapp.Nvcplplugin.GetProfileInfo.module,m=6e4,I="assets/img/fallback-hero-image.svg",R=n.Ts.Common.Systeminfo.GetSystemInfo.module},53698:(je,z,c)=>{"use strict";c.d(z,{H9:()=>y,Mo:()=>A,NV:()=>s,TZ:()=>f,Ur:()=>h,ZQ:()=>E,ZX:()=>S,dJ:()=>l,hF:()=>n,ht:()=>T,nC:()=>v,sb:()=>M,tx:()=>u});var r=c(74931),n=r.Or.Common.Downloader.DownloadStatus,v=r.Or.Common.Downloader.UpdateChannel,h=r.Or.Common.Downloader.UpdateType,f=r.Or.Common.Downloader.InvokeType,A=r.Or.Common.Downloader.PostProcessingStatus,M=r.Or.Common.Downloader.ActionStatus,T=r.Or.Common.Applicationcontrol.State,E=r.Or.Common.Downloader.CreateProfileStatusEnum,y=r.Or.Common.Downloader.UpdateFrameworkResult,S=function(m){return m.GRD="grd",m.CRD="crd",m.NVAPP="nvapp",m}(S||{}),l=function(m){return m[m.DownloadStatusPending=1]="DownloadStatusPending",m[m.DownloadStarted=2]="DownloadStarted",m[m.DownloadStatusPaused=3]="DownloadStatusPaused",m[m.DownloadFinished=4]="DownloadFinished",m[m.DownloadTriggered=5]="DownloadTriggered",m}(l||{}),s=function(m){return m.Pause="pause",m.Resume="resume",m.Stop="stop",m}(s||{}),u=function(m){return m.Default="default",m}(u||{})},37898:(je,z,c)=>{"use strict";c.d(z,{M:()=>s});var r=c(43848),n=c(83915),v=c(14714),h=c(55833),f=c(65706),A=c(74931),M=c(26875),E=c(83128),y=c(1242),S=c(58527),l=c(3816);let s=(()=>{var u;class m{constructor(R,O,Y){this.telemetryUtilService=O,this.bridgeService=Y,this.isPerfTelemetrySentOnce={[E.fR.Home]:!1,[E.fR.Driver]:!1,[E.fR.Graphics]:!1,[E.fR.Settings]:!1,[E.fR.Redeem]:!1,[E.fR.Performance]:!1,[E.fR.SystemOverview]:!1,[E.fR.SystemDisplays]:!1},this.isFeaturePerfStatsLoggedOnce={[E.fR.OverlayEnable]:!1,[E.fR.OverlayDisable]:!1,[E.fR.MyRigDialog]:!1},this.logger=R.getLogger("nvapp/PerformanceMeasureService")}markNvAppPerformanceMarkers(R,O){if(!this.isPerfTelemetrySentOnce[O]){R?.forEach(fe=>this.setMarker(fe));const Y=this.checkIfEndMarkerIsPresent(R,O),j=E.cT.includes(O);!j&&Y?(this.isPerfTelemetrySentOnce[O]=!0,this.sendFeaturePerfTelemetryOnEndMarker(O)):j&&Y&&!this.isFeaturePerfStatsLoggedOnce[O]&&(this.isFeaturePerfStatsLoggedOnce[O]=!0,this.logFeaturePerfStatsOnEndMarker(O))}}checkIfEndMarkerIsPresent(R,O){if(E.KH.has(O)){const Y=E.KH.get(O);return!!Y.find(fe=>R.includes(fe))&&Y.every(fe=>!!performance.getEntriesByName(fe,E.Y7).length)}return!1}sendFeaturePerfTelemetryOnEndMarker(R){switch(R){case E.fR.Driver:return void this.sendDriverPerformanceTelemetry();case E.fR.Settings:return void this.sendAppSettingPerformanceTelemetry();case E.fR.Redeem:return void this.sendRedeemPerformanceTelemetry();case E.fR.Home:return void this.sendHomePerformanceTelemetry();case E.fR.Graphics:return void this.sendGraphicsPerformanceTelemetry();case E.fR.Performance:return void this.sendPerfPerformanceTelemetry();case E.fR.SystemOverview:return void this.sendSystemOverviewPerformanceTelemetry();case E.fR.SystemDisplays:return void this.sendDisplaysPerformanceTelemetry();case E.fR.SystemVideo:return void this.sendVideoPerformanceTelemetry()}}logFeaturePerfStatsOnEndMarker(R){switch(R){case E.fR.MyRigDialog:return void this.logMyRigDialogPerfStats();case E.fR.OverlayEnable:case E.fR.OverlayDisable:return void this.logOverlayPerfStats(R)}}logMyRigDialogPerfStats(){const R=this.computeLoadDurations(E.gT),O={screenName:E.fR.MyRigDialog,dataLoad:R?.get(E.vm.NvAppMyRigDialogDataLoad),viewLoad:R?.get(E.vm.NvAppMyRigDialogViewLoad)};this.logger.info("My rig dialog perf stats:",O,"Total time for My rig dialog",O.dataLoad+O.viewLoad)}logOverlayPerfStats(R){const O=this.computeLoadDurations(E.Sp);this.logger.info(`Total time for overlay ${R===E.fR.OverlayEnable?"enable":"disable"}: ${O.get(E.vm.NvAppOverlayUpdateLoad)}`)}computeLoadDurations(R){const O=new Map;return R.forEach(Y=>{try{const j=performance.measure(Y.name,Y.start,Y.end);O.set(Y.name,j.duration)}catch(j){this.logger.error(`failed to capture measure, either start or end marker not present for entry ${Y.name}`,j),O.set(Y.name,-1)}}),O}fetchCEFStartupTime(){return this.cefStartupTime$||(this.cefStartupTime$=this.bridgeService.executeCommand(A.Ts.Common.Applicationinfo.GetApplicationTimeInfo,{type:A.Or.Common.Applicationinfo.ApplicationTimeType.Launch}).pipe((0,n.T)(R=>window.jsInitStartTs-R.startTime),(0,v.W)(R=>(0,r.of)(0)),(0,h.t)(1))),this.cefStartupTime$}sendHomePerformanceTelemetry(){const{NvAppHomeRouteLoad:R,NvAppHomeDataLoad:O,NvAppHomeViewLoad:Y,NvAppHomeCompleteLoad:j}=E.vm,te=this.getPerformanceStats(y.d3.Home,E.nk,{routeLoad:R,dataLoad:O,viewLoad:Y}),ce=te.viewLoad+te.dataLoad+te.routeLoad+te.commonJsLoad;this.logger.info("Attempting to send Home performance telemetry. Home perf stats:",te,"Total time for Layout:",ce),this.sendPageLoadPerfTelemetry(y.d3.Home,te.dataLoad,[R,O,Y,j],[te.routeLoad+te.commonJsLoad,te.dataLoad,te.viewLoad,ce])}sendDriverPerformanceTelemetry(){const{NvAppDriverRouteLoad:R,NvAppDriverDataLoad:O,NvAppDriverViewLoad:Y,NvAppDriverCompleteLoad:j}=E.vm,te=this.getPerformanceStats(y.d3.Drivers,E.zF,{routeLoad:R,dataLoad:O,viewLoad:Y}),ce=te.viewLoad+te.dataLoad+te.routeLoad;this.logger.info("Attempting to send Drivers performance telemetry. Drivers stats:",te,"Total time for Drivers:",ce),this.sendPageLoadPerfTelemetry(y.d3.Drivers,te.dataLoad,[R,O,Y,j],[te.routeLoad,te.dataLoad,te.viewLoad,ce])}setMarker(R){performance.clearMarks(R),performance.mark(R)}sendGraphicsPerformanceTelemetry(){const R=this.computeLoadDurations(E.TZ);let O=R.get(E.vm.NvAppGlobalSettingsDataLoad);O=O>0?O:0;let Y=R.get(E.vm.NvAppProgramSettingsDataLoad);Y=Y>0?Y:0;let j=R.get(E.vm.NvAppOpsDataLoad);j=j>0?j:0;let fe=R.get(E.vm.NvAppOpsViewRenderLoad);fe=fe>0?fe:0;const te=j+fe,ce=te<Y?Y:te,H=te<Y?Y:j,Z=R.get(E.vm.NvAppGraphicsRouteLoad)??0,X=Z+ce;this.logger.info("Attempting to send graphics performance telemetry. Graphics load time:",{screenName:y.d3.Graphics,routeLoad:Z,opsDataLoad:j,opsViewRenderLoad:fe,_3dSettingsDataLoad:Y,globalSettingsDataLoad:O},"Total time for Graphics_Ops:",Z+te,"& Total time for Graphics_3dSettings:",Z+Y),this.sendPageLoadPerfTelemetry(y.d3.Graphics,H,[E.vm.NvAppGraphicsRouteLoad,E.vm.NvAppGraphicsOpsLoad,E.vm.NvAppGraphics3dSettingsLoad,E.vm.NvAppGraphicsCompleteLoad],[Z,te,Y,X])}sendAppSettingPerformanceTelemetry(){const{NvAppSettingsRouteLoad:R,NvAppSettingsDataLoad:O,NvAppSettingsViewLoad:Y,NvAppSettingsCompleteLoad:j}=E.vm,te=this.getPerformanceStats(y.d3.Settings,E.Xn,{routeLoad:R,dataLoad:O,viewLoad:Y}),ce=te.viewLoad+te.dataLoad+te.routeLoad;this.logger.info("Attempting to send App Settings performance telemetry. App Settings stats:",te,"Total time for App Settings:",ce),this.sendPageLoadPerfTelemetry(y.d3.Settings,te.dataLoad,[R,O,Y,j],[te.routeLoad,te.dataLoad,te.viewLoad,ce])}sendSystemOverviewPerformanceTelemetry(){const{NvAppSystemOverviewRouteLoad:R,NvAppSystemOverviewDataLoad:O,NvAppSystemOverviewViewLoad:Y,NvAppSystemOverviewCompleteLoad:j}=E.vm,te=this.getPerformanceStats(y.d3.System_Overview,E.qO,{routeLoad:R,dataLoad:O,viewLoad:Y}),ce=te.viewLoad+te.dataLoad+te.routeLoad;this.logger.info("Attempting to send System Overview performance telemetry. System Overview stats:",te,"Total time for System Overview:",ce),this.sendPageLoadPerfTelemetry(y.d3.System_Overview,te.dataLoad,[R,O,Y,j],[te.routeLoad,te.dataLoad,te.viewLoad,ce])}sendDisplaysPerformanceTelemetry(){const{NvAppDisplaysRouteLoad:R,NvAppDisplaysDataLoad:O,NvAppDisplaysViewLoad:Y,NvAppDisplaysCompleteLoad:j}=E.vm,te=this.getPerformanceStats(y.d3.System_Displays,E.vG,{routeLoad:R,dataLoad:O,viewLoad:Y}),ce=te.viewLoad+te.dataLoad+te.routeLoad;this.logger.info("Attempting to send System_Displays performance telemetry. System Displays stats:",te,"Total time for System Displays:",ce),this.sendPageLoadPerfTelemetry(y.d3.System_Displays,te.dataLoad,[R,O,Y,j],[te.routeLoad,te.dataLoad,te.viewLoad,ce])}sendVideoPerformanceTelemetry(){const{NvAppVideoRouteLoad:R,NvAppVideoDataLoad:O,NvAppVideoViewLoad:Y,NvAppVideoCompleteLoad:j}=E.vm,te=this.getPerformanceStats(y.d3.System_Video,E.bh,{routeLoad:R,dataLoad:O,viewLoad:Y}),ce=te.viewLoad+te.dataLoad+te.routeLoad;this.logger.info("Attempting to send System_Video performance telemetry. System Video stats:",te,"Total time for System Video:",ce),this.sendPageLoadPerfTelemetry(y.d3.System_Video,te.dataLoad,[R,O,Y,j],[te.routeLoad,te.dataLoad,te.viewLoad,ce])}sendRedeemPerformanceTelemetry(){const{NvAppRedeemRouteLoad:R,NvAppRedeemDataLoad:O,NvAppRedeemViewLoad:Y,NvAppRedeemCompleteLoad:j}=E.vm,te=this.getPerformanceStats(y.d3.Redeem,E.Wt,{routeLoad:R,dataLoad:O,viewLoad:Y}),ce=te.viewLoad+te.dataLoad+te.routeLoad;this.logger.info("Attempting to send Redeem performance telemetry. Redeem stats:",te,"Total time for Redeem:",ce),this.sendPageLoadPerfTelemetry(y.d3.Redeem,te.dataLoad,[R,O,Y,j],[te.routeLoad,te.dataLoad,te.viewLoad,ce])}getPerformanceStats(R,O,Y){const j=this.computeLoadDurations(O);let fe={screenName:R,routeLoad:j.get(Y?.routeLoad)??0,dataLoad:j.get(Y?.dataLoad)??0,viewLoad:j.get(Y?.viewLoad)??0};return R===y.d3.Home&&(fe={...fe,commonJsLoad:j.get(E.vm.NvAppJSModuleLoad)??0}),fe}sendPageLoadPerfTelemetry(R,O,Y,j){this.fetchCEFStartupTime().pipe((0,f.s)(1)).subscribe(fe=>{const te=(0,M.isNaN)(fe)?0:fe;this.telemetryUtilService.sendPageLoadPerfEvent(R,{viewDataLoadDuration:O,sectionNames:[E.vm.CEFLoad,...Y],sectionDataLoadDurations:[0,0,0,0,0],sectionTotalLoadDurations:[te,...j]})})}sendPerfPerformanceTelemetry(){const R=this.computeLoadDurations(E.sb),O=R.get(E.vm.NvAppAutoTuningToggleDataLoad),Y=R.get(E.vm.NvAppPerfLimitDataLoad),j=R.get(E.vm.NvAppPerformanceRouteLoad),fe=Math.min(Y,O),te=j+fe;this.logger.info("Attempting to send performance page load telemetry.",{screenName:y.d3.System_Performance,routeLoad:j,autoTuningToggleDataLoad:O,perfLimitDataLoad:Y,perfDataLoad:fe,completeLoad:te}),this.sendPageLoadPerfTelemetry(y.d3.System_Performance,fe,[E.vm.NvAppPerformanceRouteLoad,E.vm.NvAppAutoTuningToggleDataLoad,E.vm.NvAppPerfLimitDataLoad,E.vm.NvAppPerformanceCompleteLoad],[j,O,Y,te])}}return(u=m).\u0275fac=function(R){return new(R||u)(S.KVO(l.J6),S.KVO(y.AY),S.KVO(l.NZ))},u.\u0275prov=S.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),m})()},83128:(je,z,c)=>{"use strict";c.d(z,{KH:()=>m,Sp:()=>l,TZ:()=>f,Wt:()=>y,Xn:()=>A,Y7:()=>I,bh:()=>E,cT:()=>R,fR:()=>u,gT:()=>S,mM:()=>r,nk:()=>v,qO:()=>M,sb:()=>s,vG:()=>T,vm:()=>n,zF:()=>h});var r=function(O){return O.NvAppJsInitStart="NvAppJsInitStart",O.NvAppJsInitEnd="NvAppJsInitEnd",O.NvAppHomeRouteNavigationStart="NvAppHomeRouteNavigationStart",O.NvAppHomeRouteNavigationEnd="NvAppHomeRouteNavigationEnd",O.NvAppHomeDataFetchStart="NvAppHomeDataFetchStart",O.NvAppHomeDataFetchEnd="NvAppHomeDataFetchEnd",O.NvAppHomeViewRenderStart="NvAppHomeViewRenderStart",O.NvAppHomeViewRenderEnd="NvAppHomeViewRenderEnd",O.NvAppDriverRouteNavigationStart="NvAppDriverRouteNavigationStart",O.NvAppDriverRouteNavigationEnd="NvAppDriverRouteNavigationEnd",O.NvAppDriverDataFetchStart="NvAppDriverDataFetchStart",O.NvAppDriverDataFetchEnd="NvAppDriverDataFetchEnd",O.NvAppDriverViewRenderStart="NvAppDriverViewRenderStart",O.NvAppDriverViewRenderEnd="NvAppDriverViewRenderEnd",O.NvAppGraphicsRouteNavigationStart="NvAppGraphicsRouteNavigationStart",O.NvAppGraphicsRouteNavigationEnd="NvAppGraphicsRouteNavigationEnd",O.NvAppGraphicsDataFetchStart="NvAppGraphicsDataFetchStart",O.NvAppProgramSettingDataFetchEnd="NvAppProgramSettingDataFetchEnd",O.NvAppGlobalSettingDataFetchEnd="NvAppGlobalSettingDataFetchEnd",O.NvAppOpsDataFetchEnd="NvAppOpsDataFetchEnd",O.NvAppOpsViewRenderStart="NvAppOpsViewRenderStart",O.NvAppOpsViewRenderEnd="NvAppOpsViewRenderEnd",O.NvAppSettingsRouteNavigationStart="NvAppSettingsRouteNavigationStart",O.NvAppSettingsRouteNavigationEnd="NvAppSettingsRouteNavigationEnd",O.NvAppSettingsDataFetchStart="NvAppSettingsDataFetchStart",O.NvAppSettingsDataFetchEnd="NvAppSettingsDataFetchEnd",O.NvAppSettingsViewRenderStart="NvAppSettingsViewRenderStart",O.NvAppSettingsViewRenderEnd="NvAppSettingsViewRenderEnd",O.NvAppRedeemRouteNavigationStart="NvAppRedeemRouteNavigationStart",O.NvAppRedeemRouteNavigationEnd="NvAppRedeemRouteNavigationEnd",O.NvAppRedeemDataFetchStart="NvAppRedeemDataFetchStart",O.NvAppRedeemDataFetchEnd="NvAppRedeemDataFetchEnd",O.NvAppRedeemViewRenderStart="NvAppRedeemViewRenderStart",O.NvAppRedeemViewRenderEnd="NvAppRedeemViewInitEnd",O.NvAppMyRigDialogDataFetchStart="NvAppMyRigDialogDataFetchStart",O.NvAppMyRigDialogDataFetchEnd="NvAppMyRigDialogDataFetchEnd",O.NvAppMyRigDialogViewRenderStart="NvAppMyRigDialogViewRenderStart",O.NvAppMyRigDialogViewRenderEnd="NvAppMyRigDialogViewRenderEnd",O.NvAppOverlayUpdateStart="NvAppOverlayUpdateStart",O.NvAppOverlayUpdateEnd="NvAppOverlayUpdateEnd",O.NvAppAutoTuningToggleDataStart="NvAppAutoTuningToggleDataStart",O.NvAppAutoTuningToggleDataEnd="NvAppAutoTuningToggleDataEnd",O.NvAppPerfLimitDataStart="NvAppPerfLimitDataStart",O.NvAppPerfLimitDataEnd="NvAppPerfLimitDataEnd",O.NvAppPerfRouteStart="NvAppPerfRouteStart",O.NvAppPerfRouteEnd="NvAppPerfRouteEnd",O.NvAppSystemOverviewRouteNavigationStart="NvAppSystemOverviewRouteNavigationStart",O.NvAppSystemOverviewRouteNavigationEnd="NvAppSystemOverviewRouteNavigationEnd",O.NvAppSystemOverviewDataFetchStart="NvAppSystemOverviewDataFetchStart",O.NvAppSystemOverviewDataFetchEnd="NvAppSystemOverviewDataFetchEnd",O.NvAppSystemOverviewViewRenderStart="NvAppSystemOverviewViewRenderStart",O.NvAppSystemOverviewViewRenderEnd="NvAppSystemOverviewViewRenderEnd",O.NvAppDisplaysRouteNavigationStart="NvAppDisplaysRouteNavigationStart",O.NvAppDisplaysRouteNavigationEnd="NvAppDisplaysRouteNavigationEnd",O.NvAppDisplaysDataFetchStart="NvAppDisplaysDataFetchStart",O.NvAppDisplaysDataFetchEnd="NvAppDisplaysDataFetchEnd",O.NvAppDisplaysViewRenderStart="NvAppDisplaysViewRenderStart",O.NvAppDisplaysViewRenderEnd="NvAppDisplaysViewRenderEnd",O.NvAppVideoRouteNavigationStart="NvAppVideoRouteNavigationStart",O.NvAppVideoRouteNavigationEnd="NvAppVideoRouteNavigationEnd",O.NvAppVideoDataFetchStart="NvAppVideoDataFetchStart",O.NvAppVideoDataFetchEnd="NvAppVideoDataFetchEnd",O.NvAppVideoViewRenderStart="NvAppVideoViewRenderStart",O.NvAppVideoViewRenderEnd="NvAppVideoViewRenderEnd",O}(r||{}),n=function(O){return O.CEFLoad="CEFLoad",O.NvAppJSModuleLoad="NvAppJSModuleLoad",O.NvAppHomeRouteLoad="NvAppHomeRouteLoad",O.NvAppHomeDataLoad="NvAppHomeDataLoad",O.NvAppHomeViewLoad="NvAppHomeViewLoad",O.NvAppHomeCompleteLoad="NvAppHomeCompleteLoad",O.NvAppDriverRouteLoad="NvAppDriverRouteLoad",O.NvAppDriverDataLoad="NvAppDriverDataLoad",O.NvAppDriverViewLoad="NvAppDriverViewLoad",O.NvAppDriverCompleteLoad="NvAppDriverCompleteLoad",O.NvAppGraphicsRouteLoad="NvAppGraphicsRouteLoad",O.NvAppProgramSettingsDataLoad="NvAppProgramSettingsDataLoad",O.NvAppGlobalSettingsDataLoad="NvAppGlobalSettingsDataLoad",O.NvAppOpsDataLoad="NvAppOpsDataLoad",O.NvAppOpsViewRenderLoad="NvAppOpsViewRenderLoad",O.NvAppGraphicsOpsLoad="NvAppGraphicsOpsLoad",O.NvAppGraphics3dSettingsLoad="NvAppGraphics3dSettingsLoad",O.NvAppGraphicsCompleteLoad="NvAppGraphicsCompleteLoad",O.NvAppSettingsRouteLoad="NvAppSettingsRouteLoad",O.NvAppSettingsDataLoad="NvAppSettingsDataLoad",O.NvAppSettingsViewLoad="NvAppSettingsViewLoad",O.NvAppSettingsCompleteLoad="NvAppSettingsCompleteLoad",O.NvAppRedeemRouteLoad="NvAppRedeemRouteLoad",O.NvAppRedeemDataLoad="NvAppRedeemDataLoad",O.NvAppRedeemViewLoad="NvAppRedeemViewLoad",O.NvAppRedeemCompleteLoad="NvAppRedeemCompleteLoad",O.NvAppMyRigDialogDataLoad="NvAppMyRigDialogDataLoad",O.NvAppMyRigDialogViewLoad="NvAppMyRigDialogViewLoad",O.NvAppMyRigDialogCompleteLoad="NvAppMyRigDialogCompleteLoad",O.NvAppOverlayUpdateLoad="NvAppOverlayUpdateLoad",O.NvAppPerformanceRouteLoad="NvAppPerformanceRouteLoad",O.NvAppAutoTuningToggleDataLoad="NvAppAutoTuningToggleDataLoad",O.NvAppPerfLimitDataLoad="NvAppPerfLimitDataLoad",O.NvAppPerformanceCompleteLoad="NvAppPerformanceCompleteLoad",O.NvAppSystemOverviewRouteLoad="NvAppSystemOverviewRouteLoad",O.NvAppSystemOverviewDataLoad="NvAppSystemOverviewDataLoad",O.NvAppSystemOverviewViewLoad="NvAppSystemOverviewViewLoad",O.NvAppSystemOverviewCompleteLoad="NvAppSystemOverviewCompleteLoad",O.NvAppDisplaysRouteLoad="NvAppDisplaysRouteLoad",O.NvAppDisplaysDataLoad="NvAppDisplaysDataLoad",O.NvAppDisplaysViewLoad="NvAppDisplaysViewLoad",O.NvAppDisplaysCompleteLoad="NvAppDisplaysCompleteLoad",O.NvAppVideoRouteLoad="NvAppVideoRouteLoad",O.NvAppVideoDataLoad="NvAppVideoDataLoad",O.NvAppVideoViewLoad="NvAppVideoViewLoad",O.NvAppVideoCompleteLoad="NvAppVideoCompleteLoad",O}(n||{});const v=[{name:n.NvAppJSModuleLoad,start:r.NvAppJsInitStart,end:r.NvAppJsInitEnd},{name:n.NvAppHomeRouteLoad,start:r.NvAppHomeRouteNavigationStart,end:r.NvAppHomeRouteNavigationEnd},{name:n.NvAppHomeDataLoad,start:r.NvAppHomeDataFetchStart,end:r.NvAppHomeDataFetchEnd},{name:n.NvAppHomeViewLoad,start:r.NvAppHomeViewRenderStart,end:r.NvAppHomeViewRenderEnd}],h=[{name:n.NvAppDriverRouteLoad,start:r.NvAppDriverRouteNavigationStart,end:r.NvAppDriverRouteNavigationEnd},{name:n.NvAppDriverDataLoad,start:r.NvAppDriverDataFetchStart,end:r.NvAppDriverDataFetchEnd},{name:n.NvAppDriverViewLoad,start:r.NvAppDriverViewRenderStart,end:r.NvAppDriverViewRenderEnd}],f=[{name:n.NvAppGraphicsRouteLoad,start:r.NvAppGraphicsRouteNavigationStart,end:r.NvAppGraphicsRouteNavigationEnd},{name:n.NvAppProgramSettingsDataLoad,start:r.NvAppGraphicsDataFetchStart,end:r.NvAppProgramSettingDataFetchEnd},{name:n.NvAppGlobalSettingsDataLoad,start:r.NvAppGraphicsDataFetchStart,end:r.NvAppGlobalSettingDataFetchEnd},{name:n.NvAppOpsDataLoad,start:r.NvAppGraphicsDataFetchStart,end:r.NvAppOpsDataFetchEnd},{name:n.NvAppOpsViewRenderLoad,start:r.NvAppOpsViewRenderStart,end:r.NvAppOpsViewRenderEnd}],A=[{name:n.NvAppSettingsRouteLoad,start:r.NvAppSettingsRouteNavigationStart,end:r.NvAppSettingsRouteNavigationEnd},{name:n.NvAppSettingsDataLoad,start:r.NvAppSettingsDataFetchStart,end:r.NvAppSettingsDataFetchEnd},{name:n.NvAppSettingsViewLoad,start:r.NvAppSettingsViewRenderStart,end:r.NvAppSettingsViewRenderEnd}],M=[{name:n.NvAppSystemOverviewRouteLoad,start:r.NvAppSystemOverviewRouteNavigationStart,end:r.NvAppSystemOverviewRouteNavigationEnd},{name:n.NvAppSystemOverviewDataLoad,start:r.NvAppSystemOverviewDataFetchStart,end:r.NvAppSystemOverviewDataFetchEnd},{name:n.NvAppSystemOverviewViewLoad,start:r.NvAppSystemOverviewViewRenderStart,end:r.NvAppSystemOverviewViewRenderEnd}],T=[{name:n.NvAppDisplaysRouteLoad,start:r.NvAppDisplaysRouteNavigationStart,end:r.NvAppDisplaysRouteNavigationEnd},{name:n.NvAppDisplaysDataLoad,start:r.NvAppDisplaysDataFetchStart,end:r.NvAppDisplaysDataFetchEnd},{name:n.NvAppDisplaysViewLoad,start:r.NvAppDisplaysViewRenderStart,end:r.NvAppDisplaysViewRenderEnd}],E=[{name:n.NvAppVideoRouteLoad,start:r.NvAppVideoRouteNavigationStart,end:r.NvAppVideoRouteNavigationEnd},{name:n.NvAppVideoDataLoad,start:r.NvAppVideoDataFetchStart,end:r.NvAppVideoDataFetchEnd},{name:n.NvAppVideoViewLoad,start:r.NvAppVideoViewRenderStart,end:r.NvAppVideoViewRenderEnd}],y=[{name:n.NvAppRedeemRouteLoad,start:r.NvAppRedeemRouteNavigationStart,end:r.NvAppRedeemRouteNavigationEnd},{name:n.NvAppRedeemDataLoad,start:r.NvAppRedeemDataFetchStart,end:r.NvAppRedeemDataFetchEnd},{name:n.NvAppRedeemViewLoad,start:r.NvAppRedeemViewRenderStart,end:r.NvAppRedeemViewRenderEnd}],S=[{name:n.NvAppMyRigDialogDataLoad,start:r.NvAppMyRigDialogDataFetchStart,end:r.NvAppMyRigDialogDataFetchEnd},{name:n.NvAppMyRigDialogViewLoad,start:r.NvAppMyRigDialogViewRenderStart,end:r.NvAppMyRigDialogViewRenderEnd}],l=[{name:n.NvAppOverlayUpdateLoad,start:r.NvAppOverlayUpdateStart,end:r.NvAppOverlayUpdateEnd}],s=[{name:n.NvAppPerformanceRouteLoad,start:r.NvAppPerfRouteStart,end:r.NvAppPerfRouteEnd},{name:n.NvAppAutoTuningToggleDataLoad,start:r.NvAppAutoTuningToggleDataStart,end:r.NvAppAutoTuningToggleDataEnd},{name:n.NvAppPerfLimitDataLoad,start:r.NvAppPerfLimitDataStart,end:r.NvAppPerfLimitDataEnd}];var u=function(O){return O.Home="Home",O.Driver="Driver",O.Settings="Settings",O.Graphics="Graphics",O.Redeem="Redeem",O.MyRigDialog="MyRigDialog",O.OverlayEnable="OverlayEnable",O.OverlayDisable="OverlayDisable",O.Performance="Performance",O.SystemOverview="SystemOverview",O.SystemDisplays="SystemDisplays",O.SystemVideo="SystemVideo",O}(u||{});const m=new Map([[u.Redeem,[r.NvAppRedeemViewRenderEnd]],[u.Settings,[r.NvAppSettingsViewRenderEnd]],[u.SystemOverview,[r.NvAppSystemOverviewViewRenderEnd]],[u.SystemDisplays,[r.NvAppDisplaysViewRenderEnd]],[u.SystemVideo,[r.NvAppVideoViewRenderEnd]],[u.Driver,[r.NvAppDriverViewRenderEnd]],[u.Home,[r.NvAppHomeViewRenderEnd]],[u.MyRigDialog,[r.NvAppMyRigDialogViewRenderEnd]],[u.OverlayEnable,[r.NvAppOverlayUpdateEnd]],[u.OverlayDisable,[r.NvAppOverlayUpdateEnd]],[u.Graphics,[r.NvAppOpsViewRenderEnd,r.NvAppProgramSettingDataFetchEnd,r.NvAppGlobalSettingDataFetchEnd]],[u.Performance,[r.NvAppAutoTuningToggleDataEnd,r.NvAppPerfLimitDataEnd,r.NvAppPerfRouteEnd]]]),I="mark",R=[u.MyRigDialog,u.OverlayEnable,u.OverlayDisable]},94645:(je,z,c)=>{"use strict";c.d(z,{K1:()=>A,QC:()=>n,R$:()=>f,Tt:()=>M,_O:()=>h,hx:()=>v,pS:()=>E,xI:()=>r});const r={GlobalStore:"global",DriverDownloadState:"driverDownloadState",OotbState:"ootbState",ManualAddedApps:"ManualAddedApps",HiddenApps:"HiddenApps",OpsState:"OpsState",NotificationBadgeState:"NotificationBadgeState",PerfStatsSupportState:"PerfStatsSupportState"},n={previouslyInstalledDrivers:"previouslyInstalledDrivers",SortByCriteria:"SortByCriteria"},v=24,h=404,f="assets/img/marquee-individual-fallback.svg",A="assets/img/marquee-fallback.svg",M="PowerManagementMode",E={width:"560px",height:"80vh",minHeight:"480px",unsetMinHeight:"0px"}},25864:(je,z,c)=>{"use strict";c.d(z,{E:()=>v,FU:()=>A,XW:()=>h,tb:()=>f,uj:()=>n});var r=c(74931),n=r.Or.Nvapp.Driverupdaterecommendation.DriverTypeEnum,v=r.Or.Common.Nvaccount.PrivacySettings;const h=r.Ts.Nvapp.Nvcpldisplayplugin.IsControlPanelClientInstalled;var f=function(M){return M.Turing100="352",M.Ampere100="368",M.Ada100="400",M}(f||{}),A=function(M){return M.Enabling="common.enabling",M.Disabling="layout.features.overlay.disabling",M.HotKey="layout.features.overlay.hotkey",M.ClickToEnable="layout.features.overlay.clickToEnable",M}(A||{})},54803:(je,z,c)=>{"use strict";c.d(z,{D:()=>r});var r=function(n){return n.Home="menu.home",n.Drivers="drivers.title",n.GraphicsSettings="layout.features.manage3dsettings.title",n.Rewards="rewards.redeem",n.AppSettings="toolbar.settings",n.System="preferences.system",n}(r||{})},5498:(je,z,c)=>{"use strict";c.d(z,{I:()=>r,p:()=>n});var r=function(v){return v.RecommendedDriverDetails="RecommendedDriverDetails",v.InstalledDriverDetails="InstalledDriverDetails",v.PreviouslyInstalledDriverDetails="PreviouslyInstalledDriverDetails",v.GfwslDriverReleaseHighlight="GfwslDriverReleaseHighlight",v.GfwslDriverArticleInformation="GfwslDriverArticleInformation",v.GfwslGfeTargetAchievementData="GfwslGfeTargetAchievementData",v.GfwslInstallationBillboardData="GfwslInstallationBillboardData",v.AppDiscoveryGetLayout="AppDiscoveryGetLayout",v.LcarsServiceGetLayout="LcarsServiceGetLayout",v.OOTBGetApps="OOTBGetApps",v.Graphics3DSettings="Graphics3DSettings",v.GfServicesOpsCompatibility="GfServicesOpsCompatibility",v}(r||{}),n=function(v){return v.GPU="gpu",v.DeviceOsVersion="deviceOsVersion",v.DriverVersion="driverVersion",v.InstalledRamCapacity="installedRamCapacity",v}(n||{})},79027:(je,z,c)=>{"use strict";c.d(z,{F:()=>v});var r=c(53698),n=c(58527);let v=(()=>{var h;class f{transform(M){return this.getIsDownloadStatusPaused(M)?r.dJ.DownloadStatusPaused:this.getIsDownloadStarted(M)?r.dJ.DownloadStarted:this.getIsDownloadStatusPending(M)?r.dJ.DownloadStatusPending:this.getIsDownloadStatusCompleted(M)?r.dJ.DownloadFinished:this.getIsDownloadTriggered(M)?r.dJ.DownloadTriggered:void 0}getIsDownloadStarted(M){return M===r.hF.Paused||M===r.hF.Downloading||M===r.hF.NetworkErrorRetrying||M===r.hF.NetworkErrorRetryPaused||M===r.hF.VerifyingChecksum||M===r.hF.VerifyingSignature}getIsDownloadStatusPaused(M){return M===r.hF.Paused||M===r.hF.NetworkErrorRetryPaused}getIsDownloadStatusPending(M){return M===r.hF.Undefined||M===r.hF.ChecksumVerificationFailed||M===r.hF.Cancelled||M===r.hF.SignatureVerificationFailed||M===r.hF.Prohibited||M===r.hF.Error}getIsDownloadStatusCompleted(M){return M===r.hF.Finished}getIsDownloadTriggered(M){return M===r.hF.DownloadTriggered}}return(h=f).\u0275fac=function(M){return new(M||h)},h.\u0275pipe=n.EJ8({name:"checkDownloadProgressState",type:h,pure:!0}),f})()},26993:(je,z,c)=>{"use strict";c.d(z,{Tw:()=>f});var r=c(40482),n=c(58527),v=c(65240),h=c(61142);let f=(()=>{var E;class y{constructor(l,s){this.translate=l,this.datePipe=s}translateText(l,s){return this.translate.instant(l,s)}transform(l,s){if(!l)return"";try{const u=new Date(l);return function A(E,y){return(y?new Date(y):new Date)>=E}(u,s)?function T(E,y,S,l,s){let j;const fe=function M(E,y){let S;return S=y?new Date(y):new Date,Math.round(Math.abs(S.getTime()-E.getTime())/1e3)}(S,s),te=y.transform(S,"MMMM"),ce=y.transform(S,"yyyy"),H=E.instant("common.monthYear",{month:te,year:ce});switch(!1){case!(fe<=1):j=fe+" common.second";break;case!(fe<60):j=fe+" common.seconds";break;case!(fe<120):j="1 common.minute";break;case!(fe<3600):j=Math.floor(fe/60)+" common.minutes";break;case 1!==Math.floor(fe/3600):j="1 common.hour";break;case!(fe<86400):j=Math.floor(fe/3600)+" common.hours";break;case!(fe<172800):if(l)return"common.yesterday";j="1 common.day";break;case!(fe<604800):j=Math.floor(fe/86400)+" common.days";break;case 1!==Math.floor(fe/604800):j="1 common.week";break;case!(fe<2592e3):j=Math.floor(fe/604800)+" common.weeks";break;case 1!==Math.floor(fe/2592e3):j="1 common.month";break;case!(fe<31536e3):if(l)return H;j=Math.floor(fe/2592e3)+" common.months";break;case 1!==Math.floor(fe/31536e3):if(l)return H;j="1 common.year";break;default:if(l)return H;j=Math.floor(fe/31536e3)+" common.years"}const Z=j.split(" "),X=E.instant(Z[1]);return E.instant("common.timeago",{number:Z[0],timeUnit:X})}(this.translate,this.datePipe,u,!0,s):l}catch(u){throw(0,r.RL)(y,u.message)}}}return(E=y).\u0275fac=function(l){return new(l||E)(n.rXU(v.c$,16),n.rXU(h.vh,16))},E.\u0275pipe=n.EJ8({name:"convertUTCToTimeAgo",type:E,pure:!0}),y})()},3960:(je,z,c)=>{"use strict";c.d(z,{g:()=>h});var r=c(26513),n=c(58527),v=c(3816);let h=(()=>{var f;class A{constructor(T){this.loggingService=T,this.titleChanged$=new r.t(null),this.logger=T.getLogger("nvapp/AppBarService")}get title(){return this.titleChanged$.asObservable()}setTitle(T){this.titleChanged$.next(T)}}return(f=A).\u0275fac=function(T){return new(T||f)(n.KVO(v.J6))},f.\u0275prov=n.jDH({token:f,factory:f.\u0275fac,providedIn:"root"}),A})()},43341:(je,z,c)=>{"use strict";c.d(z,{H:()=>y});var r=c(43848),n=c(36466),v=c(91384),h=c(14714),f=c(65706),A=c(94645),M=c(125),T=c(58527),E=c(3816);let y=(()=>{var S;class l{constructor(u,m){this.dbService=m,this._filterBy=M.dj.FilterByAll,this._sortBy=M.NO.SortByRecentLaunch,this.logger=u.getLogger("nvapp/AppsSortAndFilterService"),this.globalStore=this.dbService.getGlobalStore(A.xI.GlobalStore)}set filterBy(u){this._filterBy=u}get filterBy(){return this._filterBy}get sortBy(){return this._sortBy}set sortBy(u){this._sortBy=u,this.setSortByCriteriaToDb(this._sortBy)}filterPrograms(u,m){const I=m??this.filterBy;return u.forEach(R=>{switch(R.filterBy=I,this._filterBy){case M.dj.FilterByAll:R.isVisible=!R.isHidden;break;case M.dj.FilterByGames:R.isVisible=!R.isCreativeApp&&!R.isHidden;break;case M.dj.FilterByApps:R.isVisible=R.isCreativeApp&&!R.isHidden;break;case M.dj.FilterByOptimized:R.isVisible=R.isOptimized&&!R.isHidden;break;case M.dj.FilterByUnOptimized:R.isVisible=!R.isOptimized&&!R.isHidden;break;case M.dj.FilterByPhotoMode:R.isVisible=(R.nvidiaTech?.ANSEL||R.nvidiaTech?.FREESTYLE)&&!R.isHidden;break;case M.dj.FilterByGameFilter:R.isVisible=R.nvidiaTech?.FREESTYLE&&!R.isHidden;break;case M.dj.FilterByHidden:R.isVisible=R.isHidden??!1}}),u}getInitialCountOfFilters(u){const m=[0,0,0,0,0,0,0,0];return u.forEach(I=>{m[M.dj.FilterByAll]+=1,I.isCreativeApp||(m[M.dj.FilterByGames]+=1),I.isCreativeApp&&(m[M.dj.FilterByApps]+=1),I.isOptimized||(m[M.dj.FilterByUnOptimized]+=1),I.isOptimized&&(m[M.dj.FilterByOptimized]+=1),(I.nvidiaTech?.ANSEL||I.nvidiaTech?.FREESTYLE)&&(m[M.dj.FilterByPhotoMode]+=1),I.nvidiaTech?.FREESTYLE&&(m[M.dj.FilterByGameFilter]+=1),I.isHidden&&(m[M.dj.FilterByHidden]+=1)}),m}sortApps(u,m){switch(m??this.sortBy){case M.NO.SortByRecentLaunch:return this.sortOnLaunchTime(u);case M.NO.SortByNameAscending:return u.sort((R,O)=>R.displayName.localeCompare(O.displayName));case M.NO.SortByNameDescending:return u.sort((R,O)=>O.displayName.localeCompare(R.displayName))}}getSortByCriteriaFromDb(){return this.globalStore.getItem(A.QC.SortByCriteria).pipe((0,v.M)(u=>{this.sortBy=u??M.NO.SortByRecentLaunch}),(0,h.W)(u=>(this.logger.error("failed to get sortByCriteria",u),this.sortBy=M.NO.SortByRecentLaunch,(0,r.of)(this.sortBy))),(0,f.s)(1))}setSortByCriteriaToDb(u){this.globalStore.setItem(A.QC.SortByCriteria,u).pipe((0,f.s)(1)).subscribe(n.l,m=>{this.logger.error("failed to set sortByCriteria",u,m)})}sortOnLaunchTime(u){return u.sort((m,I)=>{const R=this.getDateFromIsoString(m.lastLaunchTime),O=this.getDateFromIsoString(m.initialTime),Y=this.getDateFromIsoString(I.lastLaunchTime),j=this.getDateFromIsoString(I.initialTime),fe=R>O?R:O;return(Y>j?Y:j).getTime()-fe.getTime()})}getDateFromIsoString(u){return new Date(u)}}return(S=l).\u0275fac=function(u){return new(u||S)(T.KVO(E.J6),T.KVO(E.at))},S.\u0275prov=T.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),l})()},25872:(je,z,c)=>{"use strict";c.d(z,{r:()=>l});var r=c(3816),n=c(26814),v=c(57258),h=c(43848),f=c(72147),A=c(14714),M=c(75707),T=c(65706),E=c(74931),y=c(58527),S=c(47847);let l=(()=>{var s;class u{constructor(I,R,O,Y){this.loggingService=I,this.experienceControlService=R,this.bridgeService=O,this.appConfig=Y,this.featureToggles$=new v.m(1),this.logger=this.loggingService.getLogger("nvapp/CloudVariableHelperService")}getFeatureToggles(){return this.featureToggles$.asObservable()}writeToOverrideJson(I){const R={appname:"NVIDIA app",data:["nv-combine-processes="+I.toString()]};return this.bridgeService.executeCommand(E.Ts.Common.Applicationcontrol.WriteConfig,R)}fetchGxCvAndUpdateConfig(){this.experienceControlService.setUserInfo({userId:r.Qe,idpId:r.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},n.Ky.GxTargetGetCloudVariable,n.Id.Other).pipe((0,f.n)(I=>{const R={processCountReduction:I?.value?.processCountReduction,hevcRecording:I?.value?.hevcRecording,lightstepToggle:I?.value?.lightstepToggle,previouslyInstalledDrivers:I?.value?.previouslyInstalledDrivers};return this.featureToggles$.next(R),this.logger.info("Received response for ",I,R),(0,h.of)(R)}),(0,A.W)(I=>{this.logger.error("GX CV fetch failed, using default value ",I);const R={processCountReduction:!1,hevcRecording:!1,lightstepToggle:!1};return this.featureToggles$.next(R),(0,h.of)(R)}),(0,M.ZZ)(I=>this.writeToOverrideJson(I.processCountReduction)),(0,T.s)(1)).subscribe(I=>{this.logger.info("Write to override succesfull ",I)},I=>{this.logger.error("Write to override failed with error ",I)})}}return(s=u).\u0275fac=function(I){return new(I||s)(y.KVO(r.J6),y.KVO(n.BW),y.KVO(r.NZ),y.KVO(S.Vk))},s.\u0275prov=y.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),u})()},4760:(je,z,c)=>{"use strict";c.d(z,{z:()=>I});var r=c(80583),n=c(43848),v=c(59859),h=c(83915),f=c(8619),A=c(91384),M=c(14714),T=c(65706),E=c(74931),y=c(53698),S=c(1242),l=c(62668),s=c(58527),u=c(3816),m=c(86088);let I=(()=>{var R;class O{constructor(j,fe,te,ce){this.loggingService=j,this.telemetryUtilsService=fe,this.nvAppBridgeService=te,this.bridgeService=ce,this.downloadProgressCallback$=new r.B7,this.postProcessingProgressCallback$=new r.B7,this.isRegisterDownloadProgressSuccess=!1,this.isRegisterPostProcessProgressSuccess=!1,this.isDownloadStatusRequestTimeout=!1,this.logger=this.loggingService.getLogger("nvapp/DownloaderService"),this.registerDownloadAndPostProcessCallback()}registerDownloadAndPostProcessCallback(){this.logger.info("Initialize register download and post process progress callback"),this.registerDownloadProgressNotification(),this.registerPostProcessingProgressNotification()}getIsDownloadStatusRequestTimedOut(){return this.isDownloadStatusRequestTimeout}startDownloadAndPostProcess(j,fe,te){this.registerDownloadAndPostProcessCallback(),this.logger.info("start download and post process for version ",j,"downloadUrl ",fe,"downloadTypeInfo ",JSON.stringify(te));const ce={version:j,url:fe,downloadTypeInfo:te};return this.sendDownloadTriggeredStatus(j,te,fe),this.nvAppBridgeService.executeCommandWithTimeout(E.Ts.Common.Downloader.StartDownloadAndPostProcess,ce).pipe((0,h.T)(H=>H?.downloadProgressStatus))}createProfile(j,fe,te,ce=!1,H){return this.logger.info("create profile called for ",j),this.nvAppBridgeService.executeCommandWithTimeout(E.Ts.Common.Downloader.CreateProfileFromSourceProfile,{componentName:j,sourceComponentName:fe||y.tx.Default,checksumType:te,forceUpdate:ce,installationKey:H})}startDownload(j,fe,te){this.registerDownloadAndPostProcessCallback(),this.logger.info("start download for version ",j,"downloadUrl ",fe,"downloadTypeInfo ",JSON.stringify(te));const ce={version:j,url:fe,downloadTypeInfo:te};return this.sendDownloadTriggeredStatus(j,te,fe),this.nvAppBridgeService.executeCommandWithTimeout(E.Ts.Common.Downloader.StartDownload,ce).pipe((0,h.T)(H=>H?.downloadProgressStatus))}pauseDownload(j,fe){return this.logger.info("pause download for taskid new",fe),this.nvAppBridgeService.executeCommandWithTimeout(E.Ts.Common.Downloader.PauseDownload,{componentName:j,taskId:fe}).pipe((0,h.T)(ce=>ce?.downloadProgressStatus))}resumeDownload(j,fe){return this.registerDownloadAndPostProcessCallback(),this.logger.info("resume download for taskid",fe),this.nvAppBridgeService.executeCommandWithTimeout(E.Ts.Common.Downloader.ResumeDownload,{componentName:j,taskId:fe}).pipe((0,h.T)(ce=>ce?.downloadProgressStatus))}resumeDownloadAndPostProcess(j,fe){return this.registerDownloadAndPostProcessCallback(),this.logger.info("resume download and post process for taskid",fe),this.nvAppBridgeService.executeCommandWithTimeout(E.Ts.Common.Downloader.ResumeDownloadAndPostProcess,{componentName:j,taskId:fe}).pipe((0,h.T)(ce=>ce?.downloadProgressStatus))}stopDownload(j,fe){return this.logger.info("stop download for taskid ",fe),this.nvAppBridgeService.executeCommandWithTimeout(E.Ts.Common.Downloader.StopDownload,{componentName:j,taskId:fe}).pipe((0,f.p)(ce=>ce.updateFrameworkResult!==y.H9.InvalidOperation),(0,h.T)(ce=>(this.logger.info("updateFrameworkResult",ce.updateFrameworkResult),ce?.downloadProgressStatus)))}getPostProcessingStatus(j,fe){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(E.Ts.Common.Downloader.GetPostProcessingStatus,{componentName:j,taskId:fe}).pipe((0,h.T)(ce=>(this.logger.info("post process status return",ce),ce?.postProcessingStatusInfo)))}getDownloadProgressNotification(){return this.downloadProgressCallback$.asObservable()}getPostProcessingProgressNotification(){return this.postProcessingProgressCallback$.asObservable()}getDownloadStatus(j,fe,te){if(this.logger.info("Get Download status params",fe,te),this.isDownloadStatusRequestTimeout){const ue={downloadStatus:y.hF.Undefined,version:fe,downloadUrl:te};return this.logger.info("Download Status Api already timed out returning cached data",ue),(0,n.of)(ue)}const ce={componentName:j,version:fe,url:te},H=E.Ts.Common.Downloader.GetDownloadStatus,Z=H.method,X=H.module;return this.nvAppBridgeService.executeWithPluginStatusTelemetry(E.Ts.Common.Downloader.GetDownloadStatus,ce).pipe((0,h.T)(ue=>ue?.downloadProgressStatus),(0,A.M)(ue=>{this.isDownloadStatusRequestTimeout=!1,this.updateTaskbarProgressStatus(ue),this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:Z,pluginName:X,params:JSON.stringify(ce),status:S.L1.Success})}),(0,M.W)(ue=>{if(this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:Z,pluginName:X,status:S.L1.Failure,params:JSON.stringify(ce),errorMessage:JSON.stringify(ue)}),this.logger.error("failed to fetch download status with error",ue),ue instanceof l.n){const Me={downloadStatus:y.hF.Undefined,version:fe,downloadUrl:te};return this.isDownloadStatusRequestTimeout=!0,(0,n.of)(Me)}return(0,v.$)(ue)}))}getTaskDownloadStatus(j,fe){return this.logger.info("Get Download status params",fe),this.nvAppBridgeService.executeCommandWithTimeout(E.Ts.Common.Downloader.GetTaskDownloadStatus,{componentName:j,taskId:fe}).pipe((0,h.T)(ce=>ce?.downloadProgressStatus),(0,A.M)(ce=>{this.logger.info("GetTaskDownloadStatus is",ce)}))}updateTaskbarProgressStatus(j){if([y.ZX.CRD,y.ZX.GRD].includes(j?.downloadTypeInfo?.componentName))switch(j.downloadStatus){case y.hF.Paused:case y.hF.NetworkErrorRetryPaused:this.setTaskBarProgress(y.ht.percentage,j.percentComplete),this.setTaskBarProgress(y.ht.pause);break;case y.hF.Downloading:case y.hF.NetworkErrorRetrying:this.setTaskBarProgress(y.ht.percentage,j.percentComplete);break;case y.hF.Prohibited:case y.hF.ChecksumVerificationFailed:case y.hF.SignatureVerificationFailed:case y.hF.DiskWriteFail:case y.hF.Error:case y.hF.Cancelled:case y.hF.Finished:this.setTaskBarProgress(y.ht.complete);break;default:this.logger.info("Taskbar status update failed since download status is empty: ")}}registerDownloadProgressNotification(){this.isRegisterDownloadProgressSuccess||(this.registerDownloadProgressNotificationSubscription?.unsubscribe(),this.registerDownloadProgressNotificationSubscription=this.bridgeService.executeCommand(E.Ts.Common.Downloader.RegisterDownloadProgress).subscribe(j=>{j?(this.isRegisterDownloadProgressSuccess=!0,this.logger.info("In registerDownloadProgressNotification DownloadProgressStatus :",j),this.updateTaskbarProgressStatus(j),this.downloadProgressCallback$.next(j)):this.logger.info("DownloadProgressStatus is invalid")},j=>{this.logger.error("Failed to RegisterDownloadProgress with Error :",j)}))}registerPostProcessingProgressNotification(){this.isRegisterPostProcessProgressSuccess||(this.registerPostProcessingProgressNotificationSubscription?.unsubscribe(),this.registerPostProcessingProgressNotificationSubscription=this.bridgeService.executeCommand(E.Ts.Common.Downloader.RegisterPostProcessingProgress).subscribe(j=>{j?(this.isRegisterPostProcessProgressSuccess=!0,this.logger.info("postProcessingProgressStatus :",j),this.postProcessingProgressCallback$.next(j)):this.logger.info("postProcessingProgressStatus is invalid")},j=>{this.logger.error("Failed to RegisterPostProcessingProgress with Error :",j)}))}setTaskBarProgress(j,fe){this.nvAppBridgeService.executeCommandWithTimeout(E.Ts.Common.Applicationcontrol.SetTaskbarProgress,{state:j,...fe?{percent:Math.round(fe)}:{}}).pipe((0,T.s)(1)).subscribe(te=>{this.logger.info("Taskbar status updated successfully with response: ",te)},te=>{this.logger.info("Taskbar status update failed with error: ",te)})}setUpdateChannelInfo(j){const fe={componentName:y.ZX.NVAPP,updateChannel:j};return this.logger.info("calling SetUpdateChannel with param:",fe),this.nvAppBridgeService.executeWithPluginStatusTelemetry(E.Ts.Common.Downloader.SetUpdateChannel,fe)}getUpdateChannelInfo(){return this.nvAppBridgeService.executeCommandWithTimeout(E.Ts.Common.Downloader.GetUpdateChannel,{componentName:y.ZX.NVAPP})}sendDownloadTriggeredStatus(j,fe,te){this.downloadProgressCallback$.next({downloadStatus:y.hF.DownloadTriggered,percentComplete:0,timeRemaining:0,downloadSpeed:0,totalBytes:0,bytesDone:0,taskId:"",downloadedLocation:"",failureCount:0,version:j,downloadTypeInfo:fe,httpResponseCode:0,errorCode:"",downloadPausedOnce:0,downloadUrl:te})}}return(R=O).\u0275fac=function(j){return new(j||R)(s.KVO(u.J6),s.KVO(S.AY),s.KVO(m.S),s.KVO(u.NZ))},R.\u0275prov=s.jDH({token:R,factory:R.\u0275fac,providedIn:"root"}),O})()},96306:(je,z,c)=>{"use strict";c.d(z,{c:()=>O});var r=c(43848),n=c(83915),v=c(65706),h=c(8619),f=c(95212),A=c(26772),M=c(26537),T=c(74931),E=c(58527),y=c(3816),S=c(61142),l=c(47973),s=c(65240);const u=Y=>({errorCode:Y});function m(Y,j){if(1&Y&&(E.j41(0,"div",11),E.EFF(1),E.nI1(2,"translate"),E.k0s()),2&Y){const fe=E.XpG();E.R7$(),E.SpI(" ",E.i5U(2,1,"common.errorCode",E.eq3(4,u,fe.data.errorCode))," ")}}let I=(()=>{var Y;class j{constructor(te,ce,H){this.bridgeService=te,this.dialogRef=ce,this.injector=H,this.data=this.injector.get(M.Vh,null)}onPrimaryButtonClick(){this.dialogRef.close(),this.bridgeService.executeCommand(T.Ts.Common.Windowcontrol.Close).subscribe(()=>{})}}return(Y=j).\u0275fac=function(te){return new(te||Y)(E.rXU(y.NZ),E.rXU(M.CP),E.rXU(E.zZn))},Y.\u0275cmp=E.VBU({type:Y,selectors:[["nv-app-plugin-fails-modal"]],inputs:{data:"data"},decls:20,vars:13,consts:[[1,"error-modal"],[1,"dialog-padding","row"],[1,"dialog-content-container","column"],[1,"dialog-info-container","column"],[1,"font-header6","header-text"],[1,"dialog-spinner-container","dialog-spinner-content-start","row"],[1,"column"],[1,"font-body2","body-text"],["class","font-body2 dialog-error-text",4,"ngIf"],["align","end",1,"dialog-actions-container"],["mat-button","","action-button","",1,"font-button2",3,"click"],[1,"font-body2","dialog-error-text"]],template:function(te,ce){1&te&&(E.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),E.EFF(5),E.nI1(6,"translate"),E.k0s(),E.j41(7,"div",5)(8,"div",6)(9,"div",7),E.EFF(10),E.nI1(11,"translate"),E.k0s(),E.j41(12,"div",7),E.EFF(13),E.nI1(14,"translate"),E.k0s()()(),E.DNE(15,m,3,6,"div",8),E.k0s(),E.j41(16,"mat-dialog-actions",9)(17,"button",10),E.bIt("click",function(){return ce.onPrimaryButtonClick()}),E.EFF(18),E.nI1(19,"translate"),E.k0s()()()()()),2&te&&(E.R7$(5),E.SpI(" ",E.bMT(6,5,"common.problemWithNvAppErrorHeaderText")," "),E.R7$(5),E.JRh(E.bMT(11,7,"common.relaunchAppError")),E.R7$(3),E.JRh(E.bMT(14,9,"common.rebootPC")),E.R7$(2),E.Y8G("ngIf",ce.data.errorCode),E.R7$(3),E.SpI(" ",E.bMT(19,11,"common.close")," "))},dependencies:[S.bT,l.iV,M.E7,s.D9],styles:[".error-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:#393939;padding:0;width:560px}.error-modal[_ngcontent-%COMP%]   .dialog-padding[_ngcontent-%COMP%]{padding:20px 8px 8px 24px}.error-modal[_ngcontent-%COMP%]   .dialog-content-container[_ngcontent-%COMP%]{width:100%}.error-modal[_ngcontent-%COMP%]   .dialog-content-container[_ngcontent-%COMP%]   .dialog-info-container[_ngcontent-%COMP%]{margin-right:16px}.error-modal[_ngcontent-%COMP%]   .dialog-link-text[_ngcontent-%COMP%]{margin:10px 0 0}.error-modal[_ngcontent-%COMP%]   .dialog-error-text[_ngcontent-%COMP%]{margin:24px 0 0}.error-modal[_ngcontent-%COMP%]   .dialog-actions-container[_ngcontent-%COMP%]{padding:0 8px 0 24px;height:52px;align-items:flex-end;margin-bottom:0}.error-modal[_ngcontent-%COMP%]   .dialog-buttons-container[_ngcontent-%COMP%]   .spinner-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;z-index:1;background:transparent}.error-modal[_ngcontent-%COMP%]   .dialog-spinner-content-start[_ngcontent-%COMP%]{margin-top:10px;place-content:start}.error-modal[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.error-modal[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),j})();var R=c(30783);let O=(()=>{var Y;class j{constructor(te,ce,H,Z,X,ue){this.loggingService=te,this.snackBar=ce,this.genericDialog=H,this.translateService=Z,this.matDialog=X,this.injector=ue,this.logger=this.loggingService.getLogger("nvapp/ErrorHandlerService")}showToastMessage(te,ce){this.logger.info("error toast with the message");const H={duration:A.c9,horizontalPosition:"left",panelClass:["nv-hig"]};let Z,X;return Z=te.translated?te.text:this.translateService.instant(te?.text,te.placeholders),X=ce?.translated?ce?.text:ce?.text?this.translateService.instant(ce?.text):"",this.snackBarRef=this.snackBar.open(Z,X,H),X?this.snackBarRef.afterDismissed().pipe((0,n.T)(ue=>ue?.dismissedByAction)):(0,r.of)(!1)}showErrorDialog(te,ce){const H=this.genericDialog.open({panelClass:["dialogPaddingRemove","nv-app-error-dialog",...ce??[]],disableClose:!0,autoFocus:!1,data:{...te,autoFocusOnPrimaryButton:!1}});H.primaryButtonClick.pipe((0,v.s)(1)).subscribe(()=>{this.logger.info("close clicked "),H.close()})}showFeatureNotAvailableDialog(te,ce,H,Z,X,ue){const Me=this.getDialogConfig(te,ce,H,Z,X,ue),be=this.matDialog.open(f.ur,Me);return be.componentInstance.primaryButtonClick.pipe((0,v.s)(1)).subscribe(Q=>{be.close()}),be}getDialogConfig(te,ce,H,Z,X,ue){const Me={};return Me.panelClass=[...ue??[],"dialogPaddingRemove","common-dialog"],Me.disableClose=!0,Me.autoFocus=!1,Me.restoreFocus=!1,Me.data={showSpinner:!1,headerText:{text:te},translateValues:Z,bodyText:{text:ce,translated:!1,placeholders:X},primaryButton:H??{text:"common.gotIt"},autoFocusOnPrimaryButton:!1},Me}showPluginFailureErrorDialog(te,ce){return this.matDialog.open(I,{disableClose:!0,autoFocus:!1,panelClass:["dialogPaddingRemove","common-dialog"],data:{errorCode:te,locale:ce}})}showOptionalPluginFailErrorDialog(){this.showErrorDialog({headerText:{text:"common.pluginErrorProblemHeaderText",translated:!1},bodyText:{text:"common.pluginErrorTryLaterModalText",translated:!1},primaryButton:{text:"common.close"},autoFocusOnPrimaryButton:!1},["optional-plugin-fail-error-modal"])}showOptionalPluginFailErrorToast(){this.showToastMessage({text:"common.somethingWentWrong",translated:!1}).pipe((0,h.p)(ce=>!!ce),(0,v.s)(1)).subscribe(ce=>{})}}return(Y=j).\u0275fac=function(te){return new(te||Y)(E.KVO(y.J6),E.KVO(R.nf),E.KVO(f.uh),E.KVO(s.c$),E.KVO(M.bZ),E.KVO(E.zZn))},Y.\u0275prov=E.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"}),j})()},83983:(je,z,c)=>{"use strict";c.d(z,{h:()=>y});var r=c(80583),n=c(72147),v=c(83915),A=c(58527),M=c(5798),T=c(3816),E=c(55808);let y=(()=>{var S;class l{constructor(u,m,I){this.endpointFactoryService=u,this.loggingService=m,this.nvAccountInterfaceService=I,this.requestOptions={responseType:"text"},this.isEulaAccepted$=new r.B7,this.logger=this.loggingService.getLogger("nvapp/EulaService"),this.endpointLicense=this.endpointFactoryService.createEndpoint(this.requestOptions)}getEulaAccepted(){return this.isEulaAccepted$.asObservable()}isEulaAccepted(){return this.logger.info("Check status of eula acceptance in NvAccount"),this.getEulaText().pipe((0,n.n)(u=>(this.eulaText=u,this.nvAccountInterfaceService.getEulaAccepted(u))),(0,v.T)(u=>(this.logger.info("isEulaAccepted from NvAccount ",u?.isAccepted),this.isEulaAccepted$.next(u?.isAccepted),u?.isAccepted)))}setEulaAccepted(){return this.logger.info("Setting the EULA consent"),this.nvAccountInterfaceService.setAcceptedEULA(this.eulaText)}updateEulaAccepted(u){this.logger.info("Updated EULAAccepted flag ",u),this.isEulaAccepted$.next(u)}getDisclosureText(u){return u=u.split("_").join("-"),this.endpointLicense.get("./assets/main/eula/FunctionalConsent_"+u+".txt",this.requestOptions)}getEulaText(){return this.logger.info("Get EULA Text under assets/main/eula folder"),this.endpointLicense.get("./assets/main/eula/eula.txt",this.requestOptions)}}return(S=l).\u0275fac=function(u){return new(u||S)(A.KVO(M.t),A.KVO(T.J6),A.KVO(E.W))},S.\u0275prov=A.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),l})()},42578:(je,z,c)=>{"use strict";c.d(z,{HP:()=>r.HP,cW:()=>r.cW,wY:()=>r.wY,y9:()=>r.y9});var r=c(12667);c(45101)},45101:(je,z,c)=>{"use strict";c.d(z,{l:()=>l});var r=c(83915),n=c(26875),h=c(52117),f=c(40482),A=c(12667),M=c(1242),T=c(58527),E=c(47847),y=c(5798),S=c(3816);let l=(()=>{var s;class u{constructor(I,R,O,Y){this.appConfig=I,this.endpointFactory=R,this.distributedtracingUtilService=O,this.logger=Y.getLogger("LcarsSdkService");const{defaultRetries:j,defaultTimeBetweenRetries:fe,defaultTimeout:te,retryOnTimeout:ce,exponentialBackoffMaxDelay:H}=I.lcars;this.queryDataEndpoint=this.endpointFactory.createEndpoint({config:{maxRetries:j,timeout:te,timeBetweenRetries:fe,retryOnTimeout:ce,exponentialBackoffMaxDelay:H}})}fetchLayoutQueryData(I,R,O){const Y=Object.assign({requestType:A.cW.Panels},{query:I});this.appConfig.lcars?.cascadeHeaderValue&&this.appConfig.lcars?.cascadePreview&&(this.logger.info(`cascadeHeaderValue ${this.appConfig.lcars?.cascadeHeaderValue} cascadePreview ${this.appConfig.lcars?.cascadePreview}`),Y.timestamp=Date.now());const j={headers:this.createHeader(),reportRequestData:{originalService:M.Uu.Lcars,serviceUseCase:R,reportSuccessTelemetry:"true"},params:Y,includeRequestId:!0},fe=this.queryDataEndpoint.get((0,f.l2)([this.appConfig.lcars.serverUrlCDN]),j);return this.distributedtracingUtilService.handleHttpEndpointSpan(fe,j,h.pB.LcarsFetchQueryData,O).pipe((0,r.T)(te=>{this.logger.info("layoutResponse",te);const ce=te?.data?.panels;return(0,n.isEmpty)(ce)?[]:ce}))}fetchAppsAndGamesAssets(I,R,O){const Y=Object.assign({requestType:R},{query:I}),j={headers:this.createHeader(),reportRequestData:{originalService:M.Uu.Lcars,serviceUseCase:M.OO.GetAppsAndGames,reportSuccessTelemetry:"true"},params:Y,includeRequestId:!0},fe=this.queryDataEndpoint.get((0,f.l2)([this.appConfig.lcars.serverUrlCDN]),j);return this.distributedtracingUtilService.handleHttpEndpointSpan(fe,j,h.pB.LcarsFetchQueryData,O).pipe((0,r.T)(te=>{const ce=te?.data?.apps.items;return(0,n.isEmpty)(ce)?[]:ce}))}createHeader(){const I={"NV-Client-ID":this.appConfig.lcars.clientId,"NV-Client-Version":this.appConfig.build.version,"Content-Type":"application/graphql"};return this.appConfig.lcars?.cascadeHeaderValue&&(I["NV-Cascade-Content"]=this.appConfig.lcars.cascadeHeaderValue),I}}return(s=u).\u0275fac=function(I){return new(I||s)(T.KVO(E.Vk),T.KVO(y.t),T.KVO(h.Z1),T.KVO(S.J6))},s.\u0275prov=T.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),u})()},73796:(je,z,c)=>{"use strict";c.d(z,{B:()=>ge});var r=c(35146),n=c(59859),v=c(31315),h=c(3496),f=c(93181),A=c(53461),M=c(65706),T=c(72147),E=c(91384),y=c(14714),S=c(8619),l=c(83915),s=c(26875),u=c(3816),m=c(52117),I=c(70521),R=c(40482),O=c(5498);const Y="fragment commonItemFields on Item {\n  id\n}",fe="fragment AppDiscoveryFields on NvAppDiscoveryAppItem {\n  app {\n    id\n    images {\n      GAME_ICON\n      HERO_IMAGE\n    }\n    title\n    shortDescription\n    longDescription\n    systemRequirementsUrl\n    version\n    downloadUrl\n    checksum {\n      type\n      value\n    }\n    applicationPath\n    registryPath\n    supported\n    browserClientUrl\n    learnMoreUrl\n    allowUpdate\n  }\n}",X=120;var ue=c(12667),Me=c(1242),be=c(58527),Q=c(47847);let ne=(()=>{var Xe;class ot{constructor(xe,Re){this.loggingService=xe,this.distributedTracingUtilService=Re,this.logger=xe.getLogger("SpanUtilService")}endSpan(xe,Re){xe&&(this.logger.info("Closing the Span",xe),this.distributedTracingUtilService.setSpanAttribute(xe,m.NS.Error,Re),this.distributedTracingUtilService.closeSpan(xe))}}return(Xe=ot).\u0275fac=function(xe){return new(xe||Xe)(be.KVO(u.J6),be.KVO(m.Z1))},Xe.\u0275prov=be.jDH({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),ot})();var Ge=c(45101);let ge=(()=>{var Xe;class ot{constructor(xe,Re,Ue,ee,W,Pe,le,oe,Le){this.loggingService=xe,this.appConfig=Re,this.distributedTracingUtilService=Ue,this.spanUtilService=ee,this.lcarsSdkService=W,this.localeService=Pe,this.hardwareInformationService=le,this.systemInfoService=oe,this.serviceWorkerService=Le,this.appsRefreshTimerEmit=!1,this.logger=this.loggingService.getLogger("nvapp/LcarsService"),this.initServiceWorkerNotifications(),this.layoutDataStream=new R.TE(()=>this.fetchLayout())}getPanelItems(){return this.layoutDataStream.get$()}getAppsByPanelName(xe,Re){const Ue=this.distributedTracingUtilService.startSpan(O.I.OOTBGetApps);return(0,r.yU)(this.localeService.localeChanged.pipe((0,A.F)()),this.systemInfoService.getSystemInfo([u.Lu.OSName,u.Lu.OSVersion,u.Lu.Platform]),this.hardwareInformationService.getGenericInfo(!1).pipe((0,M.s)(1)),this.hardwareInformationService.getGpuInfo(!1).pipe((0,M.s)(1))).pipe((0,T.n)(([ee,W,Pe,le])=>{const oe={OSName:W.OSName,OSVersion:W.OSVersion,Platform:W.Platform};this.logger.info(`Successfully fetched locale : ${ee}, osInfo : ${JSON.stringify(oe)}, genericInfo : ${JSON.stringify(Pe)} and gpuInfo : ${JSON.stringify(le)}`);const Le=this.getDeviceInfo(oe,Pe,le),ye=(Xe=>`{\n  panels(\n    language: "${Xe.locale}",\n    names:[${Xe.names}],\n    deviceInfo: {\n      gpus: ${Xe.deviceInfo.gpus},\n      driverVersion: "${Xe.deviceInfo.driverVersion}",\n      deviceOsVersion: "${Xe.deviceInfo.deviceOsVersion}",\n      installedRamCapacity: ${Xe.deviceInfo.installedRamCapacity}\n  }) {\n  id\n  name\n  sections {\n    id\n    telemetryName\n    type\n    title\n    items {\n      __typename\n      ...commonItemFields\n      ...AppDiscoveryFields\n    }\n  }\n}\n}\n${Y}\n${fe}\n`)(this.getPanelQueryOptions(ee,xe,Le));return this.lcarsSdkService.fetchLayoutQueryData(ye,Re,Ue)}),(0,E.M)(()=>{this.logger.info("ootbAppsSpan finished ",Ue),this.spanUtilService.endSpan(Ue,!1)}),(0,y.W)(ee=>(this.logger.error("Error occurred while fetching apps",ee),this.spanUtilService.endSpan(Ue,!0),(0,n.$)(ee))))}fetchLayout(){const xe=this.distributedTracingUtilService.startSpan(O.I.AppDiscoveryGetLayout);return(0,v.zV)([this.localeService.localeChanged.pipe((0,A.F)()),(0,h.O)(0,this.appConfig.lcars.appsRefreshTime).pipe((0,E.M)(()=>{this.logger.info("Refreshing apps based on timer set "),this.appsRefreshTimerEmit=!0})),this.systemInfoService.getSystemInfo([u.Lu.OSName,u.Lu.OSVersion,u.Lu.Platform]),this.hardwareInformationService.getGenericInfo(!1),this.hardwareInformationService.getGpuInfo(!1)]).pipe((0,S.p)(([Re,Ue,ee,W,Pe])=>{const le=this.appsRefreshTimerEmit||!(0,s.isEqual)(this.cachedGenericInfo,W)||!(0,s.isEqual)(this.cachedGpuInfo,Pe)||!(0,s.isEqual)(this.locale,Re);return this.logger.info("To refresh apps",le),le}),(0,E.M)(([Re,Ue,ee,W,Pe])=>{this.logger.info(`Successfully fetched locale : ${Re}, osInfo : ${JSON.stringify({OSName:ee.OSName,OSVersion:ee.OSVersion,Platform:ee.Platform})}, genericInfo : ${JSON.stringify(W)} and gpuInfo : ${JSON.stringify(Pe)}`),this.logger.info("Generic Info and GPU Info changed, preparing query",this.appsRefreshTimerEmit),this.appsRefreshTimerEmit=!1,this.cachedGenericInfo=W,this.cachedGpuInfo=Pe,this.locale=Re}),(0,T.n)(([Re,Ue,ee,W,Pe])=>(this.logger.info("Refreshing/Getting live data for ",Re,Ue),this.getLayout({parentSpan:xe},Re,ee,W,Pe))),(0,E.M)(()=>{this.logger.info("getLayoutSpan finished ",xe),this.spanUtilService.endSpan(xe,!1)}),(0,y.W)(Re=>(this.logger.error("Error occurred while fetching layout",Re),this.spanUtilService.endSpan(xe,!0),(0,n.$)(Re))))}getLayout(xe,Re,Ue,ee,W){const Pe=[ue.HP.Home_Marquee,ue.HP.Home_Marquee_Nsd,ue.HP.Apps],le=this.getDeviceInfo(Ue,ee,W),oe=this.getPanelQueryOptions(Re,Pe,le);this.logger.info("Fetched Layout Query Options ",oe);const Le=this.distributedTracingUtilService.startSpan(O.I.LcarsServiceGetLayout,xe.parentSpan);this.distributedTracingUtilService.setSpanAttribute(Le,m.NS.PanelType,Pe),this.setSpanTags(Le,oe);const Oe=(Xe=>`{\n  panels(\n    language: "${Xe.locale}",\n    names:[${Xe.names}],\n    deviceInfo: {\n      gpus: ${Xe.deviceInfo.gpus},\n      driverVersion: "${Xe.deviceInfo.driverVersion}",\n      deviceOsVersion: "${Xe.deviceInfo.deviceOsVersion}",\n      installedRamCapacity: ${Xe.deviceInfo.installedRamCapacity}\n  }) {\n  id\n  name\n  sections {\n    id\n    telemetryName\n    type\n    title\n    items {\n      __typename\n      ...commonItemFields\n      ...marketingFields\n      ...AppDiscoveryFields\n    }\n  }\n}\n}\n${Y}\nfragment marketingFields on MarketingItem {\n  title\n  body\n  action {\n    uri\n    label\n    infoText\n  }\n  images {\n    MARQUEE_HERO_IMAGE\n  }\n}\n${fe}\n`)(oe);return this.lcarsSdkService.fetchLayoutQueryData(Oe,Me.OO.GetLayout,Le).pipe((0,E.M)(()=>{this.logger.info("lcarsGetLayoutSpan finished ",oe),this.spanUtilService.endSpan(Le,!1)}))}getPanelQueryOptions(xe,Re,Ue){return{locale:xe,deviceInfo:Ue,names:this.getNames(Array.isArray(Re)?Re:[Re])}}getAppAssetsQueryOptions(xe,Re){return{language:xe,appIds:this.getNames(Array.isArray(Re)?Re:[Re])}}getDeviceInfo(xe,Re,Ue){const ee=Ue?.GPU?.map(({GPUArchitecture:W,IsQuadro:Pe,TensorCores:le,ActualVRAMSize:oe})=>({gpuArch:W,isQuadro:1==+Pe,hasRTXCores:!!le&&+le>0,gpuVRAM:+oe}));return{gpus:this.getGpu(ee),driverVersion:Re?.DriverVersion,deviceOsVersion:xe?.OSVersion,installedRamCapacity:this.convertToMb(+Re?.PhysicalMemoryCapacity)}}setSpanTags(xe,Re){const Ue={};Ue[m.NS.Locale]=Re?.locale,Ue[O.p.GPU]=Re?.deviceInfo?.gpus,Ue[O.p.DeviceOsVersion]=Re?.deviceInfo?.deviceOsVersion,Ue[O.p.DriverVersion]=Re?.deviceInfo?.driverVersion,Ue[O.p.InstalledRamCapacity]=Re?.deviceInfo?.installedRamCapacity,this.distributedTracingUtilService.setSpanAttributes(xe,Ue)}convertToMb(xe){const Re=xe/Math.pow(1024,Math.floor(2));return Math.floor(Re)}getGpu(xe){let Re="";return xe.forEach(Ue=>{Re+=`{gpuArch: "${Ue?.gpuArch}", isQuadro: ${Ue?.isQuadro}, hasRTXCores: ${Ue?.hasRTXCores}, gpuVRAM: ${Ue?.gpuVRAM}}`}),`[${Re}]`}getNames(xe){return xe.map(Re=>JSON.stringify(Re)).join(",")}initServiceWorkerNotifications(){this.logger.info("Initializing Service Worker Update Notifications");const xe=I.th.staleWhileRevalidate?.lcars?.cacheName,Re=[xe];this.serviceWorkerSubscription=this.serviceWorkerService.swCacheUpdated.pipe((0,S.p)(Ue=>Re.includes(Ue.name)&&Ue.data)).subscribe(Ue=>{Ue.name===xe&&(this.logger.info("Received updated data SW notification for Layout data",Ue.data),this.updateLayout(Ue.data.data.panels))})}updateLayout(xe){this.logger.info("Updating layoutDataStream"),this.layoutDataStream.setData(xe,!0)}getAppAssetsByAppId(xe,Re){const Ue=this.distributedTracingUtilService.startSpan(O.I.Graphics3DSettings);return this.localeService.localeChanged.pipe((0,A.F)()).pipe((0,T.n)(ee=>this.accumulateAppAndGamesAssets(xe,Re,Ue,ee)),(0,E.M)(()=>{this.logger.info("graphicsSettingsAppsSpan finished ",Ue),this.spanUtilService.endSpan(Ue,!1)}),(0,y.W)(ee=>(this.logger.error("Error occurred while fetching apps assets",ee),this.spanUtilService.endSpan(Ue,!0),(0,n.$)(ee))))}accumulateAppAndGamesAssets(xe,Re,Ue,ee){const W=xe.length;if(W<=X)return this.fetchAssetQuery(ee,xe,Re,Ue);{const Pe=Math.floor(W/X),le=[];let oe=[],Le=0;for(this.logger.info(`Attempting to fetch assests of ${W} apps in chunks of 120`);Le<Pe;)oe=xe.slice(Le*X,X*(Le+1)),le.push(oe),Le++;const Oe=xe.slice(Le*X);Oe.length>0&&le.push(Oe);const ye=[];return le.forEach(at=>{const K=this.fetchAssetQuery(ee,at,Re,Ue);ye.push(K)}),(0,f.p)(ye).pipe((0,l.T)(at=>{let K=[];return at.forEach(ve=>{K=K.concat(ve)}),K}),(0,y.W)(at=>(this.logger.error("Some error occured while fetching assets in chunks",at),(0,n.$)(at))))}}fetchAssetQuery(xe,Re,Ue,ee){const Pe=(Xe=>`{\n    apps(\n      language: "${Xe.language}",\n      appIds:[${Xe.appIds}]) {\n          items {\n              id\n              title\n              images {\n                GAME_ICON\n                TV_BANNER\n              }\n              nvidiaTech {\n                ANSEL\n                FREESTYLE\n                HIGHLIGHTS\n              }\n          }\n  }}`)(this.getAppAssetsQueryOptions(xe,Re));return this.lcarsSdkService.fetchAppsAndGamesAssets(Pe,Ue,ee)}ngOnDestroy(){this.serviceWorkerSubscription&&this.serviceWorkerSubscription.unsubscribe()}}return(Xe=ot).\u0275fac=function(xe){return new(xe||Xe)(be.KVO(u.J6),be.KVO(Q.Vk),be.KVO(m.Z1),be.KVO(ne),be.KVO(Ge.l),be.KVO(u.iH),be.KVO(u.SQ),be.KVO(u.zW),be.KVO(I.lS))},Xe.\u0275prov=be.jDH({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),ot})()},12667:(je,z,c)=>{"use strict";c.d(z,{HP:()=>v,cW:()=>h,tI:()=>A,wY:()=>n,y9:()=>f});var n=function(M){return M.NvApp="nvapp",M.Http="http",M}(n||{}),v=function(M){return M.Home_Marquee="NV_APP_MARQUEE",M.Home_Marquee_Nsd="NV_APP_MARQUEE_NSD",M.Rewards_Marquee="NV_APP_REWARDS_MARQUEE",M.Drivers_Marquee="NV_APP_DRIVERS_MARQUEE",M.Apps="APPS",M.Ootb_Apps_GF_Grd="NV_APP_OOTB_APPS_GF_GRD",M.Ootb_Apps_GF_Nsd="NV_APP_OOTB_APPS_GF_NSD",M.Layout="LAYOUT",M}(v||{}),h=function(M){return M.Panels="panels",M.AppMetaData="appMetaData",M.AllAppsMetaData="allAppsMetaData",M}(h||{}),f=function(M){return M.MD5="MD5",M.SHA512="SHA512",M.NONE="NONE",M}(f||{}),A=function(M){return M.Redeem="redeem",M.Drivers="drivers",M.GraphicsSettings="graphics-settings",M.AppSettings="app-settings",M}(A||{})},11001:(je,z,c)=>{"use strict";c.d(z,{k:()=>v});var r=c(80583),n=c(3496);class v{constructor(){this.loadingSpinnerSubject=new r.B7}getLoadingSpinner(){return this.loadingSpinnerSubject.asObservable()}triggerLoadingIndicator(f,A=300){f?(this.timerSub&&this.timerSub.unsubscribe(),this.timerSub=(0,n.O)(A).subscribe(()=>{this.loadingSpinnerSubject.next(!0)})):(this.timerSub&&this.timerSub.unsubscribe(),this.loadingSpinnerSubject.next(!1))}clear(){this.loadingSpinnerSubject?.unsubscribe()}}},10404:(je,z,c)=>{"use strict";c.d(z,{HF:()=>n.H,OV:()=>r.OV,fx:()=>r.fx});var r=c(72617),n=c(398)},72617:(je,z,c)=>{"use strict";c.d(z,{OV:()=>n,fx:()=>h});var r=c(3816);const n={userId:"",email:"",externalId:"",idpId:"",displayName:"",isAuthenticated:!1,technicalConsent:r.Rg.None,behavioralConsent:r.Rg.None};var h=function(f){return f.AppBar="AppBar",f.OOTB="OOTB",f}(h||{})},398:(je,z,c)=>{"use strict";c.d(z,{H:()=>xe});var r=c(57258),n=c(43848),v=c(36466),h=c(8619),f=c(75707),A=c(91384),M=c(83915),T=c(72147),E=c(65706),y=c(10174),S=c(3816),l=c(20812),s=c(40848),u=c(26537),m=c(80583),I=c(4208),R=c(1242),O=c(58527),Y=c(85161),j=c(10404),fe=c(47847),te=c(78812),ce=c(61142),H=c(81247),Z=c(97888),X=c(47973),ue=c(3457),Me=c(65240);function be(Re,Ue){if(1&Re){const ee=O.RV6();O.j41(0,"button",6),O.bIt("click",function(){O.eBV(ee);const Pe=O.XpG();return O.Njj(Pe.onCancel())}),O.j41(1,"span",7),O.EFF(2),O.nI1(3,"translate"),O.k0s()()}if(2&Re){const ee=O.XpG();O.R7$(2),O.JRh(O.bMT(3,1,ee.cancelButton))}}function Q(Re,Ue){if(1&Re){const ee=O.RV6();O.j41(0,"button",8),O.bIt("click",function(){O.eBV(ee);const Pe=O.XpG();return O.Njj(Pe.onTryLogin())}),O.j41(1,"span",7),O.EFF(2),O.nI1(3,"translate"),O.k0s()()}2&Re&&(O.R7$(2),O.JRh(O.bMT(3,1,"common.retry")))}let ne=(()=>{var Re;class Ue{constructor(W,Pe,le,oe,Le,Oe,ye,Ie,at,K){this.starfleetService=W,this.dialogData=Pe,this.dialogRef=le,this.router=oe,this.loggingService=Le,this.loginService=Oe,this.appConfig=ye,this.config=Ie,this.telemetryService=at,this.loginHintService=K,this.header="",this.body="",this.showTryLogin=!1,this.cancelButton="",this.showCancel=!1,this.browserPopup=void 0,this.logger=this.loggingService.getLogger("LoginBridgeStateComponent"),this.destroy$=new m.B7}ngOnInit(){this.initialize()}onTryLogin(){this.header="loginBridgeState.loginInProgress",this.body="loginBridgeState.browserIsOpen",this.showTryLogin=!1,this.cancelButton="common.cancel",this.showCancel=!0,this.startLoginProcess()}onCancel(){this.dialogRef.close(l.ie.Cancel)}initialize(){this.onTryLogin()}startLoginProcess(){const W=document.baseURI+this.router.url,Pe=this.appConfig?.featureEnablement?.logininfo?.enabled?this.loginHintService.getSsoLoginInfo():(0,n.of)(null);let le=!1;const oe=this.dialogData.skipLoginHint??!1;Pe.pipe((0,f.ZZ)(Le=>{let Oe;return!oe&&this.loginService.nvappStoredLoginInfoApplicableForSso(this.config.jarvisIdpId,Le)&&(Oe={silentLoginHelperInstance:null,ssoSharedPageData:{idp_id:Le?.idp_id,login_hint:Le?.login_hint}},le=!0),this.starfleetService.login({force:this.forceLogin,idpId:this.dialogData.idpId,preCreatedWindow:this.browserPopup,deviceName:this.deviceName,returnLocationUrl:W,silentLoginInfo:Oe})})).pipe((0,I.Q)(this.destroy$)).subscribe(Le=>{const Oe=le?R.Gb.LoginviaLoginHint:R.Gb.UsualAuthFlow;switch(Le){case l.l4.LoginAbortedByUser:this.dialogRef.close(l.ie.Cancel);break;case l.l4.LoginAbortedAlreadyLoggedIn:this.dialogRef.close(l.ie.Success);break;case l.l4.LoginCompleted:this.loginService.sendLoginEvent(this.dialogData.calledFrom,R.fb.Success,Oe),this.dialogRef.close(l.ie.Success);break;case l.l4.LoginFailed:this.onLoginFailed(!0,!0,Oe);break;case l.l4.LoginFailedNoRetry:this.onLoginFailed(!1,!0,Oe);break;case l.l4.LoginFailedToStart:this.onLoginFailed(!1,!1,Oe);break;default:this.logger.info("Starfleet Edge case reached")}},Le=>{this.logger.error("failed to login the user with error",Le)})}onLoginFailed(W=!0,Pe=!0,le=R.Gb.UsualAuthFlow){Pe?(this.header="common.loginUnsuccessful",this.body=W?"loginBridgeState.problemLogInRetry":"loginBridgeState.problemLogIn"):(this.header="loginBridgeState.unableToInitiateLogin",this.body="loginBridgeState.problemTryingToLogin"),this.showCancel=!0,this.cancelButton="common.close",this.showTryLogin=W,!1===Pe?this.sendCreateHTTPServerErrorEvent():this.loginService.sendLoginEvent(this.dialogData.calledFrom,R.fb.Failure,le)}sendCreateHTTPServerErrorEvent(){this.logger.info("Sending create HTTP server error event");const W=new R.px({portsUsed:this.config.portNumbers?this.config.portNumbers.toString():"",errorMessage:"Http Server start failed"});this.telemetryService.push(W)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(Re=Ue).\u0275fac=function(W){return new(W||Re)(O.rXU(l.hr),O.rXU(u.Vh),O.rXU(u.CP),O.rXU(Y.Ix),O.rXU(S.J6),O.rXU(j.HF),O.rXU(fe.Vk),O.rXU(l.X$),O.rXU(te.H0),O.rXU(S.IU))},Re.\u0275cmp=O.VBU({type:Re,selectors:[["nv-app-login-bridge-state"]],decls:12,vars:8,consts:[["fxFlex","","fxLayout","column","nvTrapFocus","",1,"popup"],[1,"content-header","font-header6"],[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"],["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(W,Pe){1&W&&(O.j41(0,"div",0)(1,"div",1)(2,"span"),O.EFF(3),O.nI1(4,"translate"),O.k0s()(),O.j41(5,"span",2),O.EFF(6),O.nI1(7,"translate"),O.k0s(),O.nrm(8,"br"),O.j41(9,"div",3),O.DNE(10,be,4,3,"button",4)(11,Q,4,3,"button",5),O.k0s()()),2&W&&(O.R7$(3),O.JRh(O.bMT(4,4,Pe.header)),O.R7$(3),O.JRh(O.bMT(7,6,Pe.body)),O.R7$(4),O.Y8G("ngIf",Pe.showCancel),O.R7$(),O.Y8G("ngIf",Pe.showTryLogin))},dependencies:[ce.bT,H.D,Z.Aq,X.iV,ue.DJ,ue.sA,ue.UI,Me.D9],styles:[".login-bridge-state-dialog .mat-mdc-dialog-container{border-radius:0;padding:0}.login-bridge-state-dialog .popup{width:560px;height:166px;background-color:#393939}:host-context(.isLtr) .login-bridge-state-dialog .content-header{margin:19px 24px 14px!important}html[dir=ltr] .login-bridge-state-dialog .content-header{--dummy: 0;margin:19px 24px 14px!important}:host-context(.isRtl) .login-bridge-state-dialog .content-header{margin:19px 24px 14px!important}html[dir=rtl] .login-bridge-state-dialog .content-header{--dummy: 0;margin:19px 24px 14px!important}.login-bridge-state-dialog .content-body{height:52px}:host-context(.isLtr) .login-bridge-state-dialog .content-body{margin:0 24px!important}html[dir=ltr] .login-bridge-state-dialog .content-body{--dummy: 0;margin:0 24px!important}:host-context(.isRtl) .login-bridge-state-dialog .content-body{margin:0 24px!important}html[dir=rtl] .login-bridge-state-dialog .content-body{--dummy: 0;margin:0 24px!important}:host-context(.isLtr) .login-bridge-state-dialog .content-button{margin:0 8px 8px 0}html[dir=ltr] .login-bridge-state-dialog .content-button{--dummy: 0;margin:0 8px 8px 0}:host-context(.isRtl) .login-bridge-state-dialog .content-button{margin:0 0 8px 8px}html[dir=rtl] .login-bridge-state-dialog .content-button{--dummy: 0;margin:0 0 8px 8px}:host-context(.isLtr) .login-bridge-state-dialog .retry-button{margin:0 0 0 8px}html[dir=ltr] .login-bridge-state-dialog .retry-button{--dummy: 0;margin:0 0 0 8px}:host-context(.isRtl) .login-bridge-state-dialog .retry-button{margin:0 8px 0 0}html[dir=rtl] .login-bridge-state-dialog .retry-button{--dummy: 0;margin:0 8px 0 0}\n"],encapsulation:2}),Ue})();var Ge=c(72617),ge=c(37768),Xe=c(73370),ot=c(96306),dt=c(55808);let xe=(()=>{var Re;class Ue{constructor(W,Pe,le,oe,Le,Oe,ye,Ie,at){this.starfleetService=W,this.loginHintService=le,this.configuration=oe,this.dialog=Le,this.telemetryService=Oe,this.piplLocaleConfigService=ye,this.errorHandlerService=Ie,this.nvAccountInterfaceService=at,this.cancelTimer=null,this.cancelTimeoutExpired=!1,this.idpId=null,this.logger=Pe.getLogger("LoginService"),this.ssoLoginInfo$=new r.m(1),this.initStarfleetOnPiplPrompt(),this.initNvaccountOnLoginUpdate(),this.fetchSsoLoginInfo()}initStarfleetOnPiplPrompt(){this.logger.info("Intializing Starfleet.."),this.starfleetService.initialize(this.cachedSession,!1,this.idpId),this.configuration?.featureEnablement?.logininfo?.enabled&&this.accountStatusChanged.pipe((0,h.p)(W=>this.configuration.starfleet.jarvisIdpId===W?.idpId||!W?.isAuthenticated),(0,f.ZZ)(W=>this.loginHintService.updateSsoLoginInfoEntry(W?.isAuthenticated,W?.idpId,W?.email,S.cq.NVAPP))).subscribe(),this.piplLocaleConfigService.piplLocalizationConfigUpdated$.pipe((0,A.M)(W=>{this.starfleetService.updatePiplConfigUrls(W.starfleet)}),(0,h.p)(W=>this.cachedUser?.isAuthenticated)).subscribe(W=>{this.logger.info("PIPL location change notification received - logging out the current user.."),this.starfleetService.logout("",null,null,!0)},W=>{this.starfleetService.logout("",null,null,!0),this.logger.error("Received PIPL notification error, logging out as notification is indication of location change",W)})}fetchSsoLoginInfo(){(this.configuration?.featureEnablement?.logininfo?.enabled?this.loginHintService.getSsoLoginInfo():(0,n.of)(null)).subscribe(Pe=>{this.ssoLoginInfo$.next(Pe)},Pe=>{this.logger.error("Error fetching sso login info entry",Pe),this.ssoLoginInfo$.next(null)})}ssoLoginHint(){return this.ssoLoginInfo$.pipe((0,M.T)(W=>W?.login_hint))}nvappStoredLoginInfoApplicableForSso(W,Pe){return!this.loginHintService.isEmptySilentLoginInfo(Pe)&&Pe.idp_id===W}get accountStatusChanged(){return this.starfleetService.accountStatusChanged.pipe((0,A.M)(W=>{this.cachedUser=W}),(0,M.T)(W=>this.getUserFromStarfleet(W)))}initNvaccountOnLoginUpdate(){this.starfleetService.accountStatusChanged.pipe((0,T.n)(W=>this.starfleetService.getStarfleetSession()),(0,T.n)(W=>(this.logger.info("Updating Nvaccount on account status change."),this.nvAccountInterfaceService.updateUserInNvAccount(W.data.user,W.data)))).subscribe(v.l,v.l)}startLogin(W=!1,Pe,le=!1){return this.logger.info("Login Called"),this.configuration.starfleet.url?this.handleStarfleetLogin(W,null,Pe,le):this.showFeatureNotAvailableDialog()}startLogout(){this.logger.info("LogOut Called"),this.handleStarfleetLogout().pipe((0,h.p)(W=>W===l.l4.LogoutCompleted||W===l.l4.LogoutFailed),(0,E.s)(1)).subscribe(W=>{W===l.l4.LogoutCompleted?this.logger.info("User logged out"):this.logger.error("Error logging out")},W=>{this.logger.error("Error logging out: ",W)})}sendLoginEvent(W,Pe,le=s.Gb.UsualAuthFlow){const oe=Pe===s.fb.Success;this.telemetryService.getValidUserIdResetObservable().pipe((0,h.p)(Le=>!0===Le&&oe||!oe),(0,E.s)(1),(0,f.ZZ)(Le=>this.starfleetService.accountStatusChanged.pipe((0,E.s)(1)))).subscribe(Le=>{const Oe=new s.x0({calledFrom:W,status:Pe,loginType:le,errorDetails:oe?"":this.starfleetService.lastError.error_description,errorUri:oe?"":this.starfleetService.lastError.error_uri,serverErrorCode:oe?"":this.starfleetService.lastError.error_code});this.logger.info("Sending login "+Pe+" event"),this.telemetryService.push(Oe)})}getUserFromStarfleet(W){return{userId:W.sub,email:W.email,externalId:W.external_id,idpId:W.idp_id,displayName:W.preferred_username,isAuthenticated:W.isAuthenticated,technicalConsent:W.consent?.trackTechnicalData?S.Rg.Full:S.Rg.None,behavioralConsent:W.consent?.trackBehavioralData?S.Rg.Full:S.Rg.None}}setUpDialog(W,Pe,le=!1){const oe={panelClass:["login-bridge-state-dialog","dialogPaddingRemove"],disableClose:!0,autoFocus:!1,restoreFocus:!1};return oe.data={idpId:W,skipLoginHint:le,calledFrom:Pe},this.cancelTimer&&clearTimeout(this.cancelTimer),this.cancelTimer=setTimeout(()=>{this.starfleetService.cancelLogin(!0),this.cancelTimeoutExpired=!0,this.listenForErrorSubscription&&this.listenForErrorSubscription.unsubscribe()},this.configuration.starfleet.httpServerDuration),this.cancelTimeoutExpired=!1,oe}showFeatureNotAvailableDialog(){const Pe={featureName:"Login"};return this.errorHandlerService.showFeatureNotAvailableDialog("common.featureNotAvailable","common.featureNotAvailableTryAgain",{text:"common.close"},Pe,Pe,["login-bridge-state-dialog"]).afterClosed().pipe((0,y.u)(!0))}handleStarfleetLogin(W=!1,Pe,le,oe=!1){const Le=this.setUpDialog(Pe,le||Ge.fx.AppBar,oe);return this.dialog.open(ne,Le).afterClosed().pipe((0,f.ZZ)(Oe=>{switch(Oe){case l.ie.Success:this.logger.info("Login Success");break;case l.ie.Failure:return(0,n.of)(!1);case l.ie.Cancel:return this.cancelTimeoutExpired||this.handleBridgeStateCancel(le),(0,n.of)(!1)}return(0,n.of)(!0)}))}refreshUser(){return this.starfleetService.refreshUser().pipe((0,M.T)(W=>this.getUserFromStarfleet(W)))}handleBridgeStateCancel(W){this.listenForErrorSubscription=this.starfleetService.cancelLogin(!1).subscribe(Pe=>{this.logger.info("Cancelled error detected while user logging in",Pe),Pe.error&&this.starfleetService.logout(Pe.access_token),Pe&&(this.logger.info("User cancelled but login completed."),this.sendLoginEvent(W||Ge.fx.AppBar,s.fb.CancelledLoginCompleted))},Pe=>{this.logger.info("Error detected while listening for UserCancelled Error",Pe)})}handleStarfleetLogout(){return this.starfleetService.logout("")}getAuthToken(W,Pe){return this.starfleetService.getAuthToken(W,Pe)}}return(Re=Ue).\u0275fac=function(W){return new(W||Re)(O.KVO(l.hr),O.KVO(S.J6),O.KVO(ge.I),O.KVO(fe.Vk),O.KVO(u.bZ),O.KVO(te.H0),O.KVO(Xe.X),O.KVO(ot.c),O.KVO(dt.W))},Re.\u0275prov=O.jDH({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Ue})()},86088:(je,z,c)=>{"use strict";c.d(z,{S:()=>y});var r=c(59859),n=c(91384),v=c(14714),h=c(12962),f=c(1242),A=c(62668),M=c(58527),T=c(3816),E=c(47847);let y=(()=>{var S;class l{constructor(u,m,I,R){this.loggingService=u,this.bridgeService=m,this.nvAppTelemetryUtilService=I,this.appConfig=R,this.logger=this.loggingService.getLogger("nvapp/NvAppBridgeService")}executeWithPluginStatusTelemetry(u,m,I,R=!0,O=!0,Y){const j={apiName:u.method,pluginName:u.module,status:f.L1.Success,params:JSON.stringify({...m??{},...I??{}}),errorMessage:"",subApiName:""};return(O?this.executeCommandWithTimeout(u,m):this.bridgeService.executeCommand(u,m)).pipe((0,n.M)(te=>{R&&(this.logger.info(`Sending telemetry for ${u.method}`),this.nvAppTelemetryUtilService.sendPluginApiStatusTelemetry(j))}),(0,v.W)(te=>(this.nvAppTelemetryUtilService.sendPluginApiStatusTelemetry({...j,status:f.L1.Failure,errorMessage:te&&te.message?te.message:Y}),(0,r.$)(te))))}executeCommandWithTimeout(u,m){return this.logger.info("Executing command with timeout",u.method),this.bridgeService.executeCommand(u,m).pipe((0,h.o)(this.appConfig?.optionalPluginTimeout,(0,r.$)(new A.n(u.method))))}}return(S=l).\u0275fac=function(u){return new(u||S)(M.KVO(T.J6),M.KVO(T.NZ),M.KVO(f.AY),M.KVO(E.Vk))},S.\u0275prov=M.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),l})()},54491:(je,z,c)=>{"use strict";c.d(z,{M:()=>I});var r=c(43848),n=c(83915),v=c(72147),h=c(10174),f=c(43615),A=c(6538);const M={zh_CN:"zh_CHS",zh_TW:"zh_CHT"};var T=c(58527),E=c(3816),y=c(86088),S=c(53139),l=c(91384),s=c(14714),u=c(94645);let m=(()=>{var R;class O{constructor(j,fe){this.loggingService=j,this.dbService=fe,this.logger=this.loggingService.getLogger("nvapp/OpsDbService"),this.globalStore=this.dbService.getGlobalStore(u.xI.GlobalStore)}getOpsDBState(){return this.globalStore.getItemByCursor(u.xI.OpsState).pipe((0,l.M)(j=>{this.opsDBState=j?.size?j:new Map,this.logger.info("Ops data Size in Db ",j?.size)}),(0,s.W)(j=>(this.logger.error("Error occurred while fetching OPS state from db ",j),this.opsDBState=new Map,this.opsDBState)))}setApplicationStateInDB(j,fe){const te=this.opsDBState.get(j);return this.opsDBState.set(j,{...te,state:fe}),this.logger.info("Setting state in db for localId",j),this.setItem()}setTranslationData(j,fe){const te=this.opsDBState.get(j);return this.opsDBState.set(j,{...te,translationData:fe}),this.logger.info("Setting translations in db for localId",j),this.setItem()}setItem(){return this.globalStore.setItem(u.xI.OpsState,this.opsDBState).pipe((0,h.u)(!0))}}return(R=O).\u0275fac=function(j){return new(j||R)(T.KVO(E.J6),T.KVO(E.at))},R.\u0275prov=T.jDH({token:R,factory:R.\u0275fac,providedIn:"root"}),O})(),I=(()=>{var R;class O{constructor(j,fe,te,ce,H){this.loggingService=j,this.bridgeService=fe,this.nvAppBridgeService=te,this.opsUtilsService=ce,this.opsDbService=H,this.logger=this.loggingService.getLogger("nvapp/OPSApiService")}optimize(j,fe,te,ce){const H={localId:j,powerMode:fe};return te&&(null!==ce||void 0!==ce)&&(H.position={tweak:te,settingsIndex:ce}),this.bridgeService.executeCommand(A.$2,H)}fetchApplicationState(j){return this.logger.info("Calling GetApplicationState for localId ",j),this.bridgeService.executeCommand(A.iS,{localId:j}).pipe((0,n.T)(te=>te.state),(0,v.n)(te=>this.opsDbService.setApplicationStateInDB(j,te).pipe((0,h.u)(te))))}fetchApplicationSettingsSpace(j,fe){const te={localId:j.localId,tweak:fe};return this.logger.info("Calling GetSettingsSpace for localId ",j.localId,"with params",te),this.bridgeService.executeCommand(A.iE,te).pipe((0,n.T)(ce=>(this.logger.info(`Settings space returned for localId ${j.localId} ${j.shortName}`,ce.settingsSpace?.recommendationAC,ce.settingsSpace?.recommendationDC),ce.settingsSpace)))}registerApplicationStateChangedNotifications(){return this.bridgeService.executeCommand(A.nQ)}fetchTranslations(j,fe,te,ce){return this.bridgeService.executeCommand(A.c2,{shortName:j,locale:M[fe]??fe}).pipe((0,v.n)(Z=>{const X=Z.translations;this.logger.info(`translation response for program ${j} with locale ${fe}:`,X);const ue=this.opsUtilsService.processTranslation(X);return te.translationData=te?.translationData??new Map,te.translationData.set(fe,ue),this.opsDbService.setTranslationData(ce,te.translationData)}))}getAutoOptimizeEnabled(){return null==this.isAutoOptimized?this.nvAppBridgeService.executeCommandWithTimeout(A.Q9).pipe((0,n.T)(j=>(this.isAutoOptimized=j.isEnabled,j.isEnabled))):(0,r.of)(this.isAutoOptimized)}setAutoOptimizeEnabled(j){return this.bridgeService.executeCommand(A.a_,{isEnabled:j}).pipe((0,f.j)(()=>{this.isAutoOptimized=null}))}getOpsDBState(){return this.opsDbService.getOpsDBState()}}return(R=O).\u0275fac=function(j){return new(j||R)(T.KVO(E.J6),T.KVO(E.NZ),T.KVO(y.S),T.KVO(S.H),T.KVO(m))},R.\u0275prov=T.jDH({token:R,factory:R.\u0275fac,providedIn:"root"}),O})()},53139:(je,z,c)=>{"use strict";c.d(z,{H:()=>M});var r=c(65706),n=c(6538),v=c(58527),h=c(3816),f=c(95212),A=c(65240);let M=(()=>{var T;class E{constructor(S,l,s){this.loggingService=S,this.genericDialog=l,this.translateService=s,this.logger=this.loggingService.getLogger("nvapp/OpsUtilsService")}getResolutionMap(S){const l=new Map;return S=[...S],S?.sort((s,u)=>u.width-s.width)?.forEach(s=>{const u=this.resolutionHeader(s);l.has(u)?l.get(u).push(s.value):l.set(u,[s.value])}),l}isDCSettingSelected(S){return S?.currentSettingType===n.bF.DC}isOptimizedOrCustomized(S,l){const s=l===n.bF.DC?S?.profileDC?.targetOptimizationState:S?.profileAC?.targetOptimizationState;return s===n.lq.OPTIMIZED||s===n.lq.CUSTOMIZED}getRecommendedDisplayModeResolution(S){return S?{resolutionValue:S.resolutions[S.resolutionRecommendation].value,displayModeValue:S.displayModes[S.displayModeRecommendation]}:{resolutionValue:"",displayModeValue:""}}updateDSRResolutions(S){if(S.dsrResolutions&&S.dsrResolutions.values.length)return;let l=null;l=this.isDCSettingSelected(S)?S?.profileDC?.sliderSettings:S?.profileAC?.sliderSettings,S.dsrResolutions={name:l.resolutionName,values:[]},l?.resolutions?.forEach(s=>{s.isHypersampling&&S.dsrResolutions.values.push(s.value)})}isDsrResolution(S,l,s){return S?.name===l&&S?.values?.includes(s)}showDSRInfoDialog(){const S=this.genericDialog.open({panelClass:["dialogPaddingRemove"],disableClose:!0,autoFocus:!1,data:{bodyText:{text:"ops.dsrSettingDescription",translated:!1},primaryButton:{text:"common.close"}}});S.primaryButtonClick.pipe((0,r.s)(1)).subscribe(()=>{this.logger.info("close clicked"),S.close()})}isACAndDCFullyOptimized(S){const l=this.isOptimized(S,n.bF.AC),s=this.isOptimized(S,n.bF.DC)||this.isDCDisabled(S);return l&&s}isOptimized(S,l){return l===n.bF.DC?S?.profileDC?.targetOptimizationState===n.lq.OPTIMIZED:S?.profileAC?.targetOptimizationState===n.lq.OPTIMIZED}isDCDisabled(S){return S?.profileDC?.targetOptimizationState===n.lq.DISABLED}getSettingInfoData(S){if(S.isOptimalValueDSR||S.isCurrentValueDSR){const s=this.translateService.instant("ops.dsrSettingInfoSubtitle");return{inGameSettingData:{title:S.nameTranslation??S.name,subtitle:s}}}return null}translateAppSettingsValues(S,l,s){const u=S?.translationData?.get(s);u?l.forEach(m=>{if(u[m.name]){const I=u[m.name];m.nameTranslation=I.nameTranslation,m.value=this.translateAppSettingValue(m.value,I.values),m.optimalValue=this.translateAppSettingValue(m.optimalValue,I.values)}else this.logger.error("app settings translation not found for program ",S?.selectedProgram?.shortName,"with setting name ",m.name)}):this.logger.error("app settings translation not found for program",S?.selectedProgram?.shortName,"for locale",s)}processTranslation(S){return S?.reduce((l,s)=>{const u={...s,values:{}};return s.values.length&&s.values.reduce((m,I)=>(m[I.valueName]=I,m),u.values),l[s.name]=u,l},{})}getDisplayModeValues(S,l){if(!S)return l?.displayModes?.map(u=>({valueName:u,valueTranslation:u}));const s=S?.[l?.displayModeName]?.values;return l?.displayModes.map(u=>s?.[u]).filter(u=>!!u)}checkIfSelectedOpsIsRecommended(S,l,s,u){const m=this.isDCSettingSelected(S),I=m?S?.profileDC?.sliderSettings:S?.profileAC?.sliderSettings,R=m?S?.profileDC?.targetPosition:S?.profileAC?.targetPosition,O=this.getRecommendedDisplayModeResolution(I);let Y;if(u)Y=m?u?.recommendationDC?.recommendedIndex:u?.recommendationAC?.recommendedIndex;else{const j=this.prepareSettingsSpace(S);Y=m?j?.recommendationDC?.recommendedIndex:j?.recommendationAC?.recommendedIndex}(null==l||!s)&&(l=R?R?.settingsIndex:Y,s=R?R?.tweak:O),S.isRecommendedSelected=l===Y&&O?.displayModeValue===s?.displayModeValue&&O?.resolutionValue===s?.resolutionValue}getOptimizationStatus(S){const l=this.isAcOrDcOptimizedOrCustomized(S),s=this.isWarningIcon(S);let u=n.p7.Unknown;return u=l||s?l&&!s?n.p7.Optimized:n.p7.Unknown:n.p7.UnOptimized,[u,l]}isAcOrDcOptimizedOrCustomized(S){return this.isOptimizedOrCustomized(S,n.bF.AC)||this.isOptimizedOrCustomized(S,n.bF.DC)}resolveMessageForACState(S,l,s,u){let m="";return m=this.translateService.instant(S?.WhisperMode?.isEnabled?l:s,{program:u}),m}getSystemBelowMinSpecMessage(S,l){return S?this.translateService.instant("ops.systemBelowMinSpecForGame"):l}isRecommendationAvailable(S,l){return l===n.bF.DC?!!S?.profileDC?.recommendation:!!S?.profileAC?.recommendation}unableToRetrieveSettings(S){return Object.values(n.eg).includes(S)}unableToShowOps(S){return Object.values(n.Rw).includes(S)}isWarningIcon(S){return!this.isRecommendationAvailable(S,n.bF.AC)&&(this.isDCDisabled(S)||!this.isRecommendationAvailable(S,n.bF.DC))||S?.profileAC?.recommendation?.belowMinspec&&S?.profileDC?.recommendation?.belowMinspec||S?.opsTabState===n.Rw.SystemUnsupported||S?.opsTabState===n.Rw.ProgramUnsupported||S?.opsTabState===n.eg.RecommendationsLoading||S?.currentSettingType===n.bF.DC&&!S?.profileDC?.targetSettings?.length||S?.currentSettingType===n.bF.AC&&!S?.profileAC?.targetSettings?.length}resolveOptimizationMessage(S,l,s,u){const m=this.isDCSettingSelected(S),I=u?.BatteryBoost?.isEnabled;let R,j=s?"ops.app":"ops.game";switch(j=this.translateService.instant(j),l){case n.eg.RecommendationsLoading:R=this.translateService.instant("ops.recommendationsLoading");break;case n.eg.OptimalDcNotAvailable:case n.eg.OptimalAcNotAvailable:R=this.translateService.instant("ops.optimalSettingsNotAvailable");break;case n.lq.DISABLED:R=this.translateService.instant("ops.programCannotBeOptimized",{program:j});break;case n.eg.CurrentDcNotAvailable:case n.eg.CurrentAcNotAvailable:R=this.translateService.instant("ops.unableToRetrieveCurrentSettings");break;case n.lq.OPTIMIZED:let fe="";fe=m&&I?this.translateService.instant("ops.programIsOptimizedForBattery",{program:j}):this.resolveMessageForACState(u,"ops.programIsOptimizedForWhisperMode","ops.programIsOptimized",j),R=this.getSystemBelowMinSpecMessage(S.isBelowMinSpec,fe);break;case n.lq.UNOPTIMIZED:let te="";te=m&&I?this.translateService.instant("ops.programIsUsingPluggedInForBattery",{program:j}):this.resolveMessageForACState(u,"ops.programIsNotOptimizedForWhisperMode","ops.programIsNotOptimized",j),R=this.getSystemBelowMinSpecMessage(S.isBelowMinSpec,te);break;case n.lq.CUSTOMIZED:let ce="";ce=m?this.translateService.instant("ops.programIsUsingCustomBatterySettings",{program:j}):this.resolveMessageForACState(u,"ops.programIsUsingCustomWhisperMode","ops.programIsUsingCustomSettings",j),R=this.getSystemBelowMinSpecMessage(S.isBelowMinSpec,ce);break;case n.Rw.ProgramUnsupported:R=this.translateService.instant("ops.programDoesNotSupportOps");break;case n.Rw.SystemUnsupported:R=this.translateService.instant("ops.systemDoesNotSupportOps");break;default:R=this.translateService.instant("ops.unableToRetrieveSettings")}return R}getOptimizationTabState(S,l,s,u){let m=n.eg.UnInitialized;const I=this.isDCSettingSelected(S);if(S.opsTabState===n.eg.RecommendationsLoading)return n.eg.RecommendationsLoading;if(s?.length||l?.length)if(s?.length){if(l?.length)return this.isDCSettingSelected(S)&&u?.BatteryBoost?.isEnabled?S?.profileDC?.targetOptimizationState:S?.profileAC?.targetOptimizationState;m=I?n.eg.CurrentDcNotAvailable:n.eg.CurrentAcNotAvailable}else m=I?n.eg.OptimalDcNotAvailable:n.eg.OptimalAcNotAvailable;else m=n.eg.UnInitialized;return m}getOptimalAndCurrentSettings(S,l,s){const u=[],m=S?.map(O=>O.name),I=l?.map(O=>O.name);return[...new Set([...m,...I])].forEach(O=>{const Y=S.find(te=>te.name===O),j=l.find(te=>te.name===O);let fe=null;fe=Y?{name:O,type:Y.type===n.ZU.DRIVER_ENUM?Y.type:n.ZU.ENUM,value:Y.value,optimalValue:j?j.value:"-"}:{name:O,type:j.type===n.ZU.DRIVER_ENUM?j.type:n.ZU.ENUM,value:"-",optimalValue:j.value},fe.isCurrentValueDSR=this.isDsrResolution(s,fe.name,fe.value),fe.isOptimalValueDSR=this.isDsrResolution(s,fe.name,fe.optimalValue),fe.settingInfoData=this.getSettingInfoData(fe),u.push(fe)}),u}formSettingsArray(S,l,s,u,m){const I=this.getOptimizationTabState(S,l,s,m);S.opsTabState=I,this.logger.info(`Optimization tab state for ${S.selectedProgram.shortName} is `,I);let R=[];return I===n.eg.CurrentAcNotAvailable||I===n.eg.CurrentDcNotAvailable?s.forEach(O=>{const Y={name:O.name,type:O.type===n.ZU.DRIVER_ENUM?O.type:n.ZU.ENUM,value:"-",optimalValue:O.value};Y.isOptimalValueDSR=this.isDsrResolution(S.dsrResolutions,Y.name,Y.optimalValue),Y.settingInfoData=this.getSettingInfoData(Y),R.push(Y)}):I===n.eg.OptimalAcNotAvailable||I===n.eg.OptimalDcNotAvailable?l.forEach(O=>{const Y={name:O.name,type:O.type===n.ZU.DRIVER_ENUM?O.type:n.ZU.ENUM,value:O.value,optimalValue:"-"};Y.isCurrentValueDSR=this.isDsrResolution(S.dsrResolutions,Y.name,Y.value),Y.settingInfoData=this.getSettingInfoData(Y),R.push(Y)}):(this.logger.info("Forming optimal and current settings for shortname",S.selectedProgram.shortName),R=this.getOptimalAndCurrentSettings(l,s,S.dsrResolutions)),R=R.sort((O,Y)=>O.name.localeCompare(Y.name)),this.translateAppSettingsValues(S,R,u),R}prepareSettingsSpace(S){return{settingsSets:(this.isDCSettingSelected(S)?S?.profileDC:S?.profileAC).settingsSets,recommendationAC:S?.profileAC?.recommendation,recommendationDC:S?.profileDC?.recommendation}}checkRatio(S,l,s,u){if(S%s==0){const m=S/s;if(l%m==0&&l/m===u)return!0}return!1}isAlmostXY(S,l,s,u){const m=S/s,I=s*m,R=u*m,O=.07*I,Y=.07*R;return S>=I-O&&S<=I+O&&l>=R-Y&&l<=R+Y}getAspectRatio(S,l,s){return s?n.gl.HyperSample:this.checkRatio(S,l,16,10)?n.gl.Wide_16_10:this.checkRatio(S,l,16,9)?n.gl.Wide_16_9:this.checkRatio(S,l,4,3)?n.gl.Standard_4_3:this.checkRatio(S,l,5,4)?n.gl.Standard_5_4:this.isAlmostXY(S,l,16,9)?n.gl.Wide_16_9:this.isAlmostXY(S,l,16,10)?n.gl.Wide_16_10:n.gl.Custom}resolutionHeader(S){switch(this.getAspectRatio(S.width,S.height,S.isHypersampling)){case n.gl.HyperSample:return"ops.dynamicSuperResolutions";case n.gl.Wide_16_10:return"ops.wideScreen1610";case n.gl.Wide_16_9:return"ops.wideScreen169";case n.gl.Standard_4_3:return"ops.standard43";case n.gl.Standard_5_4:return"ops.standard54";default:return"common.custom"}}translateAppSettingValue(S,l){return"-"!==S&&l?.[S]?l[S].valueTranslation:S}}return(T=E).\u0275fac=function(S){return new(S||T)(v.KVO(h.J6),v.KVO(f.uh),v.KVO(A.c$))},T.\u0275prov=v.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),E})()},60213:(je,z,c)=>{"use strict";c.d(z,{s:()=>Oe});var r=c(26513),n=c(80583),v=c(36466),h=c(59859),f=c(43848),A=c(35146),M=c(19392),T=c(31315),E=c(72147),y=c(65706),S=c(10174),l=c(83915),s=c(14714),u=c(91384),m=c(8619),I=c(79539),R=c(25577),O=c(75707),Y=c(3816),j=c(35965),fe=c(40482),te=c(6538),ce=c(98207),H=c(11001),Z=c(1242),X=c(58527),ue=c(5498),Me=c(47847),be=c(5798),Q=c(26875);const ne={hasLocaleInfo:!0,hasSystemInfo:!0,hasGpuInfo:!0};var Ge=function(ye){return ye.Locale="Locale",ye.SystemInfo="SystemInfo",ye.GpuInfo="GpuInfo",ye.Init="Init",ye}(Ge||{});let ge=(()=>{var ye;class Ie{constructor(K,ve,De,pe){this.systemInfoService=ve,this.hardwareService=De,this.localeService=pe,this.logger=K.getLogger("nvapp/GfServiceParamsService"),this.params={},this.hasLocaleInfo=!1,this.hasGeneralSystemInfo=!1,this.hasGpuInfo=!1,this.gfServiceParamsUpdated$=new r.t(this.getParamEventData(Ge.Init))}getParamEventData(K){return{type:K,hasSystemInfo:this.hasGeneralSystemInfo,hasLocaleInfo:this.hasLocaleInfo,hasGpuInfo:this.hasGpuInfo,params:this.params}}get gfwslParamsUpdated(){return this.gfServiceParamsUpdated$}initialize(){this.processSystemInfo(),this.processGpuInfo(),this.processLocaleInfo()}onGfServicesParamsReady(K=ne){return this.gfServiceParamsUpdated$.pipe((0,m.p)(ve=>this.checkAvailableGfServicesParams(K,ve)))}getParams(K={}){return Object.assign({},this.params,K)}checkAvailableGfServicesParams(K,ve){for(const De of Object.keys(K))if(K[De]!==ve[De])return!1;return!0}processSystemInfo(){this.systemInfoService.getSystemInfo([Y.Lu.UserDefaultUILanguage,Y.Lu.CPUName,Y.Lu.OSVersion,Y.Lu.PhysicalMemoryCapacity]).subscribe(K=>{if(!K)return void this.logger.error("sysInfo not available");this.userDefaultUILanguage=K.UserDefaultUILanguage;const ve={};({cpu:ve.cpu,memory:ve.memory,os:ve.os}=this.params??{});const zt={cpu:{name:K.CPUName},os:{version:K.OSVersion},memory:{size:K.PhysicalMemoryCapacity}};this.areParamsNotEqual(ve,zt)&&(this.params={...this.params,...zt},this.hasGeneralSystemInfo=!0,this.gfServiceParamsUpdated$.next(this.getParamEventData(Ge.SystemInfo)))},K=>{this.logger.error("System info errored out",K)})}processGpuInfo(){this.hardwareService.getGpuInfo(!1).subscribe(K=>{if(0===(0,Q.size)(K.GPU))return void this.logger.error("Empty GPU list in gpu hardware info",K);const ve=K.GPU.find(zt=>"1"===zt.IsPrimary)||K.GPU[0],pe={gpu:{chip:ve.ShortGPUName,name:ve.LongGPUName,ramType:ve.GPURAMType,ramSize:ve.ActualVRAMSize,deviceID:ve.DeviceId,vendorID:ve.VendorId,subSystemID:ve.SubSystemId,subVendorID:ve.SubVendorId,sli:+K.SLI.SLISupported,skumod:ve.SKUMod??"",tgp:+ve.Tgp}},Qe={};({gpu:Qe.gpu}=this.params??{}),this.areParamsNotEqual(Qe,pe)&&(this.params.gpu=pe.gpu,this.hasGpuInfo=!0,this.gfServiceParamsUpdated$.next(this.getParamEventData(Ge.GpuInfo)))},K=>{this.logger.error("GPU info errored out",K)})}processLocaleInfo(){this.localeService.localeChanged.subscribe(K=>{const De={localeId:j.GS.find(Qe=>Qe.code===(K??this.userDefaultUILanguage)?.replace("_","-")||Qe.cmsCode===K)?.LCID[0].toString()},pe={};({localeId:pe.localeId}=this.params??{}),this.areParamsNotEqual(pe,De)&&(this.params.localeId=De.localeId,this.hasLocaleInfo=!0,this.gfServiceParamsUpdated$.next(this.getParamEventData(Ge.Locale)))},K=>{this.logger.error("Locale info errored out",K)})}areParamsNotEqual(K,ve){return!(0,Q.isEqual)(K,ve)}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(X.KVO(Y.J6),X.KVO(Y.zW),X.KVO(Y.SQ),X.KVO(Y.iH))},ye.\u0275prov=X.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Ie})();var Xe=c(52117);let ot=(()=>{var ye;class Ie{constructor(K,ve,De,pe,Qe){this.loggingService=K,this.config=ve,this.endpointFactory=De,this.gfServiceParamsService=pe,this.distributedTracingUtilService=Qe,this.logger=this.loggingService.getLogger("nvapp/GfServicesService"),this.endpoint=this.endpointFactory.createEndpoint(),this.endpointRetryConfig={},({defaultRetries:this.endpointRetryConfig.maxRetries,defaultTimeBetweenRetries:this.endpointRetryConfig.timeBetweenRetries,defaultTimeout:this.endpointRetryConfig.timeout}=this.config?.gfservices??{})}initialize(){this.gfServiceParamsService.initialize()}callEndpoint(K,ve,De,pe={},Qe=ue.I.GfServicesOpsCompatibility,zt){if(!K)return(0,h.$)("No endpoint path provided.");const Vt=this.generateEndpointUrl(this.config?.gfservices,K,De);this.logger.info("Going to call GfServices URL:",Vt,"and dynamic headers:",pe);const de={config:this.endpointRetryConfig,headers:{...pe},reportRequestData:{originalService:Z.Uu.GFService,serviceUseCase:Z.OO.GetOpsCompatibility,reportSuccessTelemetry:"true"}},J=this.endpoint.makeRequestEx(ve,Vt,de);return this.distributedTracingUtilService.handleHttpEndpointSpan(J,de,Qe,zt)}onGfServicesParamsReady(K){return this.gfServiceParamsService.onGfServicesParamsReady(K)}generateEndpointUrl(K,ve,De){const pe=JSON.stringify(this.gfServiceParamsService.getParams(De));return(0,fe.l2)([K.server,K.version,ve])+`?${pe}`}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(X.KVO(Y.J6),X.KVO(Me.Vk),X.KVO(be.t),X.KVO(ge),X.KVO(Xe.Z1))},ye.\u0275prov=X.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Ie})();var dt=c(54491),xe=c(53139),Re=c(96306),Ue=c(13102),ee=c(44272),W=c(86667),Pe=c(65240),le=c(78812),oe=c(56068);let Le=(()=>{var ye;class Ie{constructor(K,ve,De,pe,Qe,zt,Vt){this.loggingService=K,this.telemetryService=ve,this.windowService=De,this.appConfig=pe,this.global3dSettingsService=Qe,this.manage3dSettingsUtilService=zt,this.opsApiService=Vt,this.logger=this.loggingService.getLogger("nvapp/OPSTelemetryService")}initialize(){this.focusEventSent=Date.now(),this.windowService.getFocusEvent().pipe((0,m.p)(()=>Date.now()-this.focusEventSent>=this.appConfig.ops.focusUIFrequency)).subscribe(()=>{this.focusEventSent=Date.now(),this.logger.info("Sending FocusUI event",this.focusEventSent),this.sendOPSClickEvent(Z.Z$.FocusUI,0,Z.k0.ProgramList)},K=>{this.logger.error("Error while sending FocusUI OPS Event",K)})}sendOPSLaunchEvents(){this.logger.info("Sending OPS Launch Events"),this.sendOPSClickEvent(Z.Z$.LaunchUI,0,Z.k0.ProgramList),this.sendOpsAtGraphicsViewEvent()}sendSettingsStateEvent(K){return this.opsApiService.getAutoOptimizeEnabled().pipe((0,y.s)(1),(0,u.M)(ve=>{const De=new Z.CG({settingName:Z.L4.AutoOptimize,settingValue:ve?Z.T8.TRUE:Z.T8.FALSE,isSupported:K?Z.T8.TRUE:Z.T8.FALSE});this.telemetryService.push(De,null)}))}sendOptimizationTelemetry(K,ve,De,pe,Qe,zt,Vt,de){let J;J=K===te.$7.AC?De?Z.V3.CustomOPS:Z.V3.OPS:De?Z.V3.CustomBOPS:Z.V3.BOPS;const $e=new Z.Lh({opsType:J,action:ve,optimalSettings:pe?[pe]:[],cmsId:`${Qe.cmsId}`,chromaAppId:Qe.chromaAppId,gameshortName:Qe.shortName,isCreativeApp:Qe.isCreativeApp?Z.T8.TRUE:Z.T8.FALSE,requestCycleDurationMs:zt,status:Vt,errorDetails:de||""});this.telemetryService.push($e,null)}sendOPSClickEvent(K,ve,De){const pe=new Z.un({itemType:K,hierarchy:De,requestCycleDurationMs:ve});this.telemetryService.push(pe,null)}sendOpsAtGraphicsViewEvent(){(0,T.zV)([this.manage3dSettingsUtilService.getGlobalSettings().pipe((0,y.s)(1)),this.opsApiService.getAutoOptimizeEnabled().pipe((0,y.s)(1))]).subscribe(([K,ve])=>{const De=this.global3dSettingsService.getBatteryBoostValue(K),pe=De?.version===ce.BatteryBoostVersionEnum.V1,Qe=De?.enabled?Z.T8.TRUE:Z.T8.FALSE,zt=this.global3dSettingsService.getWhisperModeValue(K),Vt=zt?.version===ce.WhisperModeVersionEnum.V1,de=zt?.enabled?Z.T8.TRUE:Z.T8.FALSE,J=this.global3dSettingsService.getNIS2Value(K),$e=new Z.Lp({autoOptimize:ve?Z.T8.TRUE:Z.T8.FALSE,batteryBoostV1:pe?Qe:Z.T8.FALSE,batteryBoostV2:pe?Z.T8.FALSE:Qe,whisperModeV1:Vt?de:Z.T8.FALSE,whisperModeV2:Vt?Z.T8.FALSE:de,nisV2:J.enabled?Z.T8.TRUE:Z.T8.FALSE,currentProfileType:Z.eU.Global});this.telemetryService.push($e,null)},K=>{this.logger.error("Error while sending Graphics View Event",K)})}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(X.KVO(Y.J6),X.KVO(le.H0),X.KVO(Y.s7),X.KVO(Me.Vk),X.KVO(oe.R),X.KVO(W.f),X.KVO(dt.M))},ye.\u0275prov=X.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Ie})(),Oe=(()=>{var ye;class Ie{constructor(K,ve,De,pe,Qe,zt,Vt,de,J,$e,st,Gt){this.loggingService=K,this.gfServicesService=ve,this.opsApiService=De,this.opsUtilsService=pe,this.appConfig=Qe,this.errorHandlerService=zt,this.localeService=Vt,this.scanApisService=de,this.appListService=J,this.manage3dSettingsUtilService=$e,this.translateService=st,this.opsTelemetryService=Gt,this.localApps=[],this.selectedProgramOpsState$=new r.t(null),this.selectedProgramSubject$=new r.t({}),this.optimizeAllInProgress$=new r.t(!1),this.opsLoading$=new r.t(!0),this.localAppsWithOpsStatusUpdated$=new n.B7,this.graphicsUtilityCardStatus$=new r.t(null),this.driverSettingsSupportStates$=new r.t(null),this.opsEnabled=!1,this.logger=this.loggingService.getLogger("nvapp/OPSService"),this.appStates=new Map,this.opsCompatibilityEventStream=new fe.TE(()=>this.fetchOpsCompatibility(),!1),this.opsEnabled=Qe.featureEnablement.ops?.enabled,this.loadingSpinner=new H.k}initialize(){this.opsEnabled&&(this.logger.info("Initializing listeners for OPS"),this.gfServicesService.initialize(),this.registerOpsSettingsListener(),this.initProgramStateChangeListener(),this.getExistingLocalApps(),this.getLocalAddedApps(),this.getLocalApps(),this.listenForSupportStates(),this.priorityRequestQueue=new Y.Q_(!1,{next:void 0,error:void 0,complete:void 0}),this.opsTelemetryService.initialize())}getSelectedProgramOpsState(){return this.selectedProgramOpsState$.asObservable()}getSelectedProgram(){return this.selectedProgramSubject$.asObservable()}setSelectedProgram(K){this.selectedProgramSubject$.next(K)}sendOpsEventsOnOotbFinish(K){K&&(this.opsTelemetryService.sendOPSLaunchEvents(),this.getOpsCompatibility().pipe((0,E.n)(ve=>this.opsTelemetryService.sendSettingsStateEvent(ve)),(0,y.s)(1)).subscribe(v.l,ve=>{this.logger.error("Error while sending SettingsState event for Auto Optimize",ve)}))}getOptimizeAllInProgress(){return this.optimizeAllInProgress$.asObservable()}getOpsLoading(){return this.opsLoading$.asObservable()}setOpsLoading(K){return this.opsLoading$.next(K)}getLocalAppsWithOpsStatusUpdatedListener(){return this.localAppsWithOpsStatusUpdated$.asObservable()}getGraphicsSettingsUtilityCardStatus(){return this.graphicsUtilityCardStatus$.asObservable()}updateStateInTransit(K){const ve=this.getSelectedProgramOpsStateValue();ve&&(ve.stateInTransit=!!K)}getGraphicsSettingsTabChange(){return this.manage3dSettingsUtilService.getGraphicsSettingsTabChange()}getDriverSettingsSupportState(){return this.driverSettingsSupportStates$.asObservable()}refreshOpsSettings(K,ve=!1,De=!1){return this.getApplicationState(K,ve).pipe((0,E.n)(pe=>{if(!pe)return this.selectedProgramOpsState$.next(null),(0,h.$)(`state not found for app ${K.shortName}`);const Qe=this.opsUtilsService.isDCSettingSelected(pe)?pe.profileDC:pe.profileAC;if(Qe?.sliderSettings){this.logger.info(`Fetching setting space as slider settings found for ${pe.selectedProgram.shortName}`);const zt=De?this.getApplicationSettingsSpace(pe,null):(0,f.of)(this.opsUtilsService.prepareSettingsSpace(pe));return(0,A.yU)((0,f.of)(pe),zt)}return Qe?.targetSettings?.length&&this.formSettingsArray(pe,Qe?.targetSettings,[]),pe.opsTabState=this.opsUtilsService.getOptimizationTabState(pe,Qe?.targetSettings,[],this.supportStates),this.logger.info(`Slider settings not found for program ${pe.selectedProgram.shortName}, tab state is`,pe.opsTabState),this.selectedProgramOpsState$.next(pe),(0,h.$)(`slider settings not found for game ${pe.selectedProgram.shortName}`)}),(0,E.n)(([pe,Qe])=>this.fetchTranslations(pe.selectedProgram.localId,this.currentLocale).pipe((0,S.u)([pe,Qe]))),(0,l.T)(([pe,Qe])=>(this.opsUtilsService.checkIfSelectedOpsIsRecommended(pe,null,pe.stateInTransit?pe?.currentSettingTweaks?.[pe.currentSettingType]:null,Qe),this.opsUtilsService.updateDSRResolutions(pe),this.updateSettingsAndSettingSpace(pe,Qe,null),!0)),(0,y.s)(1),(0,s.W)(pe=>(this.logger.error(`Error encountered during fetching ops state for program ${K.shortName}`,pe),(0,h.$)(pe))))}sliderChanged(K,ve){const De=this.getSelectedProgramOpsStateValue();this.opsUtilsService.checkIfSelectedOpsIsRecommended(De,ve,K),this.updateStateInTransit(!0),this.updateSettingsAndSettingSpace(De,null,ve)}resolutionOrDisplayModeChanged(K,ve,De=!1){const pe=this.getSelectedProgramOpsStateValue();this.updateStateInTransit(De),pe?this.getApplicationSettingsSpace(pe,K).pipe((0,y.s)(1)).subscribe(Qe=>{this.opsUtilsService.checkIfSelectedOpsIsRecommended(pe,ve,K,Qe),this.updateSettingsAndSettingSpace(pe,Qe,ve)}):this.logger.error("state not found for program")}getOpsCompatibility(){return this.opsCompatibilityEventStream.get$()}getOptimizationMessage(K,ve){return this.opsUtilsService.resolveOptimizationMessage(K,ve,K?.selectedProgram?.isCreativeApp,this.supportStates)}optimize(K,ve,De,pe,Qe,zt){if(!pe||null==Qe){const Vt=De===te.bF.AC?K?.profileAC?.recommendation:K?.profileDC?.recommendation,de=De===te.bF.AC?K?.profileAC?.sliderSettings:K?.profileDC?.sliderSettings;Qe=Vt?.recommendedIndex,pe=this.opsUtilsService.getRecommendedDisplayModeResolution(de)}return!pe||null===Qe&&void 0===Qe?(this.logger.error("no recommendations for program",K.selectedProgram.shortName),(0,f.of)(null)):(this.logger.info(`optimize ${De} for program`,K.selectedProgram.shortName),this.customize(K,ve,pe,Qe,De,zt))}revert(K,ve){const De=ve===te.bF.AC?te.$7.AC:te.$7.DC,Qe=Date.now();return this.opsApiService.optimize(K.localId,De).pipe((0,u.M)(()=>{const Vt=Date.now()-Qe;this.opsTelemetryService.sendOptimizationTelemetry(De,Z.R.Reverted,!1,null,K,Vt,Z.fb.Success,"")}),(0,S.u)(!0),(0,s.W)(Vt=>{const de=Date.now()-Qe;return this.logger.error("Error while reverting",Vt),this.opsTelemetryService.sendOptimizationTelemetry(De,Z.R.Reverted,!1,null,K,de,Z.fb.Failure,Vt),(0,f.of)(!1)}))}confirmAndOptimizeAll(K){this.optimizeAll(K,[te.bF.AC,te.bF.DC],"ops.optimizeAllFinished",!1,Z.Z$.OptimizeAll,Z.k0.ProgramList)}optimizeAll(K,ve=[te.bF.AC,te.bF.DC],De,pe=!1,Qe,zt=Z.k0.ProfileSettings,Vt){if(this.optimizeAllInProgress$.getValue())return void this.logger.info("optimizeAll is already in progress");this.optimizeAllSub&&this.optimizeAllSub.unsubscribe(),this.optimizeAllInProgress$.next(!0);const de=Date.now();this.optimizeAllSub=(0,M.H)(K).pipe((0,m.p)(J=>J.regularOpsSupported),(0,I.H)(J=>(0,A.yU)((0,f.of)(J),this.getApplicationState(J))),(0,I.H)(([J,$e])=>this.doOptimize($e,J,ve)),(0,R.H)()).subscribe(()=>{this.handleOptimizeAll(Qe,zt,Vt,de),this.logger.info("Optimize all finished"),this.showToastMessage(De,pe)},J=>{this.handleOptimizeAll(Qe,zt,Vt,de),this.logger.error("Error while Optimize all",J)})}getTranslationDataForCurrentLocale(K){return K?.translationData?.get(this.currentLocale)}showToastMessage(K,ve=!1,De="",pe){return this.errorHandlerService.showToastMessage({text:K,translated:ve,placeholders:pe},{text:De,translated:ve})}powerModeTabChanged(K,ve){const De=0===K?te.bF.AC:te.bF.DC;this.setCurrentSettingType(ve.localId,De),this.logger.info(`Refreshing after ${De} tab selected`);const pe=this.selectedProgramOpsState$?.getValue();this.checkProgramInQueueAndPush(ve,!1,pe?.stateInTransit),pe?.stateInTransit&&this.updateStateInTransit(!1)}handleOptimizeAll(K,ve,De,pe){this.optimizeAllInProgress$.next(!1);const Qe=Date.now()-pe;De||this.opsTelemetryService.sendOPSClickEvent(K,Qe,ve)}getExistingLocalApps(){this.scanApisService.getLocalApps().pipe((0,y.s)(1),(0,u.M)(K=>{K.length&&this.opsEnabled&&(this.logger.info("Existing Local apps received",K.length),this.localApps=K)}),(0,E.n)(()=>this.preFillOpsState())).subscribe(()=>{this.fetchOpsStateForExistingApps()},K=>{this.logger.info("Error fetching state for local apps",K)})}getLocalAddedApps(){this.subGetLocalAddedApp&&this.subGetLocalAddedApp.unsubscribe(),this.subGetLocalAddedApp=this.scanApisService.getLocalAddedApp().pipe((0,m.p)(K=>!this.localApps.find(De=>De.localId===K.localId)),(0,E.n)(K=>{const ve={selectedProgram:{...K},opsTabState:te.eg.RecommendationsLoading};return this.appStates.set(K.localId,ve),(0,A.yU)(this.getSelectedProgram(),(0,f.of)(K))}),(0,u.M)(([K,ve])=>{if(K.localId===ve.localId){const pe=this.appStates.get(ve.localId);this.selectedProgramOpsState$.next(pe)}this.localApps.find(pe=>pe.shortName===ve.shortName)&&(this.logger.info("Start fetching state for localId as short name already found",ve.localId),this.checkProgramInQueueAndPush(ve,!0,!1)),this.logger.info("New app added",ve?.shortName),this.localAppsWithOpsStatusUpdated$.next()})).subscribe(v.l,K=>{this.logger.info("Error initializing state for new app",K)})}getLocalApps(){this.subGetLocalApps&&this.subGetLocalApps.unsubscribe(),this.subGetLocalApps=this.appListService.getLocalUpdatedApps().subscribe(K=>{this.opsEnabled&&(this.logger.info("Updated Local apps received",K.length),this.localApps=K??[],this.localApps.forEach(ve=>{const De=this.appStates.get(ve.localId);De&&([ve.optimizationStatusIcon,ve.isOptimized]=this.opsUtilsService.getOptimizationStatus(De))}))},K=>{this.logger.info("Error fetching state for local apps",K)})}listenForSupportStates(){this.manage3dSettingsUtilService.getGlobalJsonSettingsSupport().pipe((0,u.M)(K=>{this.logger.info("Support State changed",K),this.supportStates=K,this.driverSettingsSupportStates$.next(this.supportStates),this.localApps.length&&(this.handleBatteryBoostState(),this.handleWhisperModeState(),this.handleNISState())})).subscribe(v.l,K=>{this.logger.error("Error while listening to support state change listener",K)})}handleBatteryBoostState(){if(this.supportStates?.BatteryBoost?.isSupported&&this.supportStates?.BatteryBoost?.applyOps){this.supportStates?.BatteryBoost.isEnabled&&(this.localApps.forEach(De=>{this.clearState(De.localId)}),this.showToastMessage("ops.toastBatteryBoostIsEnabled",!1,"ops.optimize").pipe((0,m.p)(De=>De),(0,y.s)(1)).subscribe(De=>{this.logger.info("Optimizing all apps for BatteryBoost");const pe=this.translateService.instant("manage3dSettings.BatteryBoost.name"),Qe=this.translateService.instant("ops.optimizeAllFinishedCustomMessage",{feature:pe});this.optimizeAll(this.localApps,[te.bF.DC],Qe,!0,this.supportStates?.BatteryBoost.version===ce.BatteryBoostVersionEnum.V1?Z.Z$.BatteryBoostV1Toast:Z.Z$.BatteryBoostV2Toast)}));const K=this.getSelectedProgramValue(),ve=this.getSelectedProgramOpsStateValue();this.setCurrentSettingType(K.localId,te.bF.AC),this.checkProgramInQueueAndPush(K,!0,!1),ve?.stateInTransit&&this.updateStateInTransit(!1)}}handleWhisperModeState(){if(this.supportStates?.WhisperMode?.isSupported&&this.supportStates?.WhisperMode?.applyOps){this.localApps.forEach(pe=>{this.clearState(pe.localId)});const K=this.getSelectedProgramValue(),ve=this.localApps.filter(pe=>pe.localId!==K?.localId);ve.length&&(this.logger.info("Initializing State for all apps as quite mode is changed with",this.supportStates.WhisperMode.isEnabled),this.initiateApplicationState(ve).subscribe()),this.showToastMessage(this.supportStates.WhisperMode.isEnabled?"ops.toastQuietModeIsEnabled":"ops.toastQuietModeIsDisabled",!1,"ops.optimize").pipe((0,m.p)(pe=>pe),(0,y.s)(1)).subscribe(pe=>{this.logger.info("Optimizing all apps for WhisperMode");const Qe=this.supportStates?.WhisperMode.version===ce.WhisperModeVersionEnum.V1?Z.Z$.WhisperModeV1Toast:Z.Z$.WhisperModeV2Toast;if(this.supportStates.WhisperMode.isEnabled){const zt=this.translateService.instant("manage3dSettings.WhisperMode.name"),Vt=this.translateService.instant("ops.optimizeAllFinishedCustomMessage",{feature:zt});this.optimizeAll(this.localApps,[te.bF.AC],Vt,!0,Qe)}else this.optimizeAll(this.localApps,[te.bF.AC],"ops.optimizeAllFinished",!1,Qe)}),this.checkProgramInQueueAndPush(K,!0,!1)}}handleNISState(){if(this.supportStates?.NIS?.isSupported&&this.supportStates?.NIS?.applyOps){const K=this.getSelectedProgramValue();let ve=[];const De=this.supportStates?.NIS?.localId&&!this.supportStates.NIS?.isGlobalContext;let pe="";De?(ve=[this.localApps.find(de=>de.localId===this.supportStates?.NIS?.localId)],pe="ops.toastNISStatePerProgramIsEnabled"):(ve=this.localApps,pe="ops.toastNISStateIsEnabled");const Qe={program:K.displayName,isEnabled:this.supportStates?.NIS?.isEnabled?"enabled":"disabled"},zt=De?Z.k0.ProgramList:Z.k0.ProfileSettings;ve.forEach(Vt=>{this.clearState(Vt.localId)}),this.showToastMessage(pe,!1,"ops.optimize",Qe).pipe((0,y.s)(1),(0,E.n)(Vt=>{const de=this.manage3dSettingsUtilService.getShowRTXHdrToast()?this.showToastMessage("manage3dSettings.ImageScaling.aiHDRUpdated",!1):(0,f.of)(!1);return(0,A.yU)((0,f.of)(Vt),de)}),(0,l.T)(([Vt,de])=>Vt),(0,m.p)(Vt=>Vt),(0,y.s)(1)).subscribe(Vt=>{this.logger.info("Optimizing all apps for NIS");const de=Z.Z$.NISV2Toast,J=this.translateService.instant("manage3dSettings.ImageScaling.name");if(this.supportStates.NIS.isEnabled){const $e=De?this.translateService.instant("ops.optimizedProgramFinishedCustomMessage",{program:K.displayName,feature:J}):this.translateService.instant("ops.optimizeAllFinishedCustomMessage",{feature:J});this.optimizeAll(ve,[te.bF.AC,te.bF.DC],$e,!0,de,zt,De)}else{const $e=De?this.translateService.instant("ops.optimizedProgramFinishedCustomMessage",{program:K.displayName,feature:J}):this.translateService.instant("ops.optimizeAllFinished",{feature:J});this.optimizeAll(ve,[te.bF.AC,te.bF.DC],$e,!1,de,zt,De)}}),this.checkProgramInQueueAndPush(K,!0,!1)}}getSelectedProgramValue(){return this.selectedProgramSubject$.getValue()}getSelectedProgramOpsStateValue(){return this.selectedProgramOpsState$.getValue()}initiateApplicationState(K){return this.logger.info("Initiating application state for local apps count",K.length),this.getOpsCompatibility().pipe((0,E.n)(ve=>ve?(0,M.H)(K).pipe((0,I.H)(De=>(this.logger.info("Initiate ApplicationState for program ",De.shortName),this.getApplicationState(De,!1))),(0,s.W)(De=>(this.logger.error("Error while getting applications state",De),(0,f.of)(null))),(0,R.H)(),(0,y.s)(1)):(0,f.of)(!1)),(0,y.s)(1))}getTotalAndOptimizedAppsCount(){return{optimized:this.localApps?.filter(ve=>ve.isOptimized)?.length,total:this.localApps?.length}}registerOpsSettingsListener(){this.opsSettingsSub&&this.opsSettingsSub.unsubscribe(),this.opsSettingsSub=(0,T.zV)([this.getOpsCompatibility(),this.getSelectedProgram(),this.localeService.localeChanged]).subscribe(([K,ve,De])=>{if(!K){this.logger.info("OPS not supported on the system",K);const pe={selectedProgram:ve,opsTabState:te.Rw.SystemUnsupported};return this.opsLoading$.next(!1),void this.selectedProgramOpsState$.next(pe)}if(!ve?.regularOpsSupported){this.logger.info("OPS not supported on the system for program",ve?.shortName,ve?.localId);const pe={selectedProgram:ve,opsTabState:te.Rw.ProgramUnsupported,stateInTransit:!1};return this.opsLoading$.next(!1),void this.selectedProgramOpsState$.next(pe)}this.opsEnabled&&K&&ve?.localId&&De&&this.handleProgramSelection(ve,De)})}fetchOpsStateForExistingApps(){this.localApps.forEach(K=>{const ve=this.appStates.get(K.localId);ve&&(ve.selectedProgram=K,[K.optimizationStatusIcon,K.isOptimized]=this.opsUtilsService.getOptimizationStatus(ve)),this.pushProgramToQueue(Y.iX.Normal,K.localId,!0,!1)})}doOptimize(K,ve,De,pe=!1){let Qe,zt;const Vt=K.selectedProgram.shortName;return this.logger.info(`Optimizing game with ${De} for shortName`,Vt),this.opsUtilsService.isACAndDCFullyOptimized(K)?(this.logger.info(`Already fully optimized for shortname ${Vt}`),(0,f.of)(null)):K.profileAC.targetSettings?K.profileAC.sliderSettings?(this.opsUtilsService.isOptimized(K,te.bF.AC)||!this.opsUtilsService.isRecommendationAvailable(K,te.bF.AC)?(this.logger.info(`AC optimized for shortname ${Vt}`),Qe=(0,f.of)(null)):(this.logger.info(`Start AC Optimize for shortname ${Vt}`),Qe=De.includes(te.bF.AC)?this.optimize(K,ve,te.bF.AC,null,null,pe):(0,f.of)(null)),this.opsUtilsService.isOptimized(K,te.bF.DC)||this.opsUtilsService.isDCDisabled(K)||!this.opsUtilsService.isRecommendationAvailable(K,te.bF.DC)?(this.logger.info(`DC optimized for shortname ${Vt}`),zt=(0,f.of)(null)):(this.logger.info(`Start DC Optimize for shortname ${Vt}`),zt=De.includes(te.bF.DC)?this.optimize(K,ve,te.bF.DC,null,null,pe):(0,f.of)(null)),(0,A.yU)(Qe,zt).pipe((0,S.u)(!0))):(this.logger.info(`Slider settings not found for shortname ${Vt}`),(0,f.of)(null)):(this.logger.info(`Target settings not found for shortname ${Vt}`),(0,f.of)(null))}updateSettingsAndSettingSpace(K,ve,De){this.updateUISettings(K,ve,De),this.getSelectedProgramValue().localId===K.selectedProgram.localId&&this.selectedProgramOpsState$.next(K)}updateUISettings(K,ve,De){const pe=this.opsUtilsService.isDCSettingSelected(K);ve||(ve=this.opsUtilsService.prepareSettingsSpace(K));const Qe=pe?K?.profileDC?.targetSettings:K?.profileAC?.targetSettings,zt=pe?K?.profileDC?.targetPosition:K?.profileAC?.targetPosition,Vt=this.getOptimalSettings(ve,pe,De??zt?.settingsIndex);if(!Vt.length){K.uiSettings=[];const de=this.opsUtilsService.getOptimizationTabState(K,null,null,this.supportStates);return K.opsTabState=de,void this.logger.info("Optimal settings cannot be resolved for program ",K.selectedProgram.shortName)}K.isBelowMinSpec=this.getIsBelowMinSpec(K,ve),this.formSettingsArray(K,Qe,Vt)}formSettingsArray(K,ve,De){const pe=this.opsUtilsService.formSettingsArray(K,ve,De,this.currentLocale,this.supportStates);K.uiSettings=pe}customize(K,ve,De,pe,Qe,zt){const Vt=Qe===te.bF.AC?te.$7.AC:te.$7.DC,de=K.stateInTransit,J=Date.now(),$e={resolution:De.resolutionValue,displayMode:De.displayModeValue,sliderIndex:pe},st=zt?Z.R.AutoApplied:Z.R.Applied;return this.opsApiService.optimize(ve.localId,Vt,De,pe).pipe((0,u.M)(()=>{const Gt=Date.now()-J;this.opsTelemetryService.sendOptimizationTelemetry(Vt,st,de,$e,ve,Gt,Z.fb.Success,"")}),(0,S.u)(!0),(0,s.W)(Gt=>{const Zt=Date.now()-J;return this.logger.error("Error while optimizing",Gt),this.loadingSpinner.triggerLoadingIndicator(!1),this.opsTelemetryService.sendOptimizationTelemetry(Vt,st,de,$e,ve,Zt,Z.fb.Failure,Gt),(0,f.of)(!1)}))}initProgramStateChangeListener(){this.programStateNotificationSub&&this.programStateNotificationSub.unsubscribe(),this.programStateNotificationSub=this.opsApiService.registerApplicationStateChangedNotifications().subscribe(K=>{this.handleStateChangeNotifications(K.localId)},K=>{this.logger.error("Error while registering program state change listener",K)})}clearState(K){this.logger.info("clearing state for localId",K),this.appStates.delete(K)}setCurrentSettingType(K,ve){const De=this.appStates.get(K);De&&(De.currentSettingType=ve,this.appStates.set(K,De))}getApplicationState(K,ve=!1,De){const pe=De||K?.localId;let Qe=this.appStates?.get(pe);const zt=Qe?.opsTabState===te.eg.RecommendationsLoading;if(this.logger.info(`RecommendationsLoading state for ${pe} ${zt}`),Qe&&!ve&&!zt)return this.logger.info(`Fetched state from cache for program ${K?.shortName}`),(0,f.of)(Qe);let Vt=Qe?.currentSettingType||te.bF.AC;this.logger.info("Current setting type is",Vt);let de={};return this.opsApiService.fetchApplicationState(pe).pipe((0,O.ZZ)(J=>{if(Qe&&ve&&(Qe=this.appStates?.get(pe),Vt=Qe?.currentSettingType||Vt,this.logger.info("New Current setting type is",Vt),this.clearState(pe)),de=this.localApps?.find(st=>st.localId===pe)||K,!de)return this.logger.error("Local app not found for localId",pe),(0,f.of)(null);this.logger.info(`New state received for program ${de.shortName} ${pe}`,J);const $e={...J,selectedProgram:Object.assign({},de),translationData:Qe?.translationData,currentSettingTweaks:Qe?.currentSettingTweaks,stateInTransit:Qe?.stateInTransit,currentSettingType:Vt};if(zt&&!ve)$e.opsTabState=te.eg.RecommendationsLoading;else{const[st,Gt]=this.opsUtilsService.getOptimizationStatus($e);[de.optimizationStatusIcon,de.isOptimized]=[st,Gt],[$e.selectedProgram.optimizationStatusIcon,$e.selectedProgram.isOptimized]=[st,Gt]}return this.appStates.set(pe,$e),$e.selectedProgram.optimizationStatusIcon!==Qe?.selectedProgram?.optimizationStatusIcon&&this.localAppsWithOpsStatusUpdated$.next(),(0,f.of)($e)}),(0,s.W)(J=>(this.logger.error(`Error while getting application state for ${De||K?.localId}`,J),(0,f.of)(null))))}getIsBelowMinSpec(K,ve){let De=!1;const pe=this.opsUtilsService.isDCSettingSelected(K);return De=pe&&this.opsUtilsService.isOptimizedOrCustomized(K,pe?te.bF.DC:te.bF.AC)?!!ve?.recommendationDC?.belowMinspec:!!ve?.recommendationAC?.belowMinspec,De}getApplicationSettingsSpace(K,ve){const De=K?.selectedProgram,pe=K?.currentSettingType,Qe=this.opsUtilsService.isDCSettingSelected(K);if(!ve){const zt=Qe?K?.profileDC:K?.profileAC,Vt=zt?.targetPosition;ve=Vt?Vt.tweak:this.opsUtilsService.getRecommendedDisplayModeResolution(zt?.sliderSettings)}return K.currentSettingTweaks=K.currentSettingTweaks??{},K.currentSettingTweaks[pe]=ve,this.opsApiService.fetchApplicationSettingsSpace(De,ve).pipe((0,u.M)(zt=>{Qe?(K.profileDC.settingsSets=zt.settingsSets,K.profileDC.recommendation=zt.recommendationDC):(K.profileAC.settingsSets=zt.settingsSets,K.profileAC.recommendation=zt.recommendationAC)}))}getOptimalSettings(K,ve,De){return null==De&&(De=ve?K?.recommendationDC?.recommendedIndex:K?.recommendationAC?.recommendedIndex),null==De?[]:K.settingsSets[De]}fetchOpsCompatibility(){return this.appConfig?.featureEnablement?.ops?.enabled?this.gfServicesService.onGfServicesParamsReady().pipe((0,E.n)(()=>this.gfServicesService.callEndpoint("/ops-compatibility",j.Xt.Get)),(0,l.T)(K=>(this.logger.info("Ops compatibility response",K),K.body?.criteria?.overallState)),(0,s.W)(K=>(this.logger.error("ops compatibility failed with error",K),(0,f.of)(!1)))):(0,f.of)(!1)}fetchTranslations(K,ve){const De=this.appStates?.get(K);if(De?.translationData?.has(ve))return this.logger.info("cached translation response for appid",K,"for locale",ve),(0,f.of)(null);const pe=De?.selectedProgram?.shortName??null;return pe&&ve?this.opsApiService.fetchTranslations(pe,ve,De,K).pipe((0,y.s)(1),(0,s.W)(Qe=>(this.logger.error("error while fetching translation",Qe),(0,f.of)(null)))):(this.logger.error("error while fetch translation either shortName",pe,"or locale missing",ve),(0,f.of)(null))}handleStateChangeNotifications(K){this.logger.info("Notification received for localId",K);const ve=this.priorityRequestQueue.isQueued(K);if(this.getSelectedProgramValue()?.localId===K)return ve&&this.cancelProgramInQueue(K),void this.pushProgramToQueue(Y.iX.High,K,!0,!1);ve?this.logger.info("Ignoring notification as its already in queue for localId",K):this.pushProgramToQueue(Y.iX.Normal,K,!0,!1)}handleProgramSelection(K,ve){const De=K.localId;this.currentLocale=ve,this.logger.info("Selected Program",K.shortName,De),this.setCurrentSettingType(De,te.bF.AC);const pe=this.appStates.get(De);this.updateStateInTransit(!1),this.selectedProgramOpsState$.next(pe),this.checkProgramInQueueAndPush(K,!1,!1)}processApps(K){return this.logger.info("Processing app with localId",K[0]),(0,f.of)({localIdToRefresh:K[0],refreshState:K[1],refreshSettingsSpace:K[2]}).pipe((0,O.ZZ)(ve=>{if(!ve?.localIdToRefresh)return this.logger.error("Cannot find localId to refresh"),(0,f.of)(!1);const De=ve.localIdToRefresh;this.logger.info("State fetch started for localId ",De);const pe=this.appStates.get(De),Qe=this.getSelectedProgramValue(),zt=Qe.localId===De,Vt=!!ve?.refreshSettingsSpace;if(zt){const de=ve.refreshState;return this.logger.info("Refreshing OPS Settings with refresh state as",de,"with refreshSettingsSpace as",Vt,"for program",Qe.shortName),this.refreshOpsSettings(Qe,de,Vt).pipe((0,s.W)(J=>(this.logger.error("Error Refreshing OPS Settings",J),(0,f.of)(!1))))}return this.logger.info("Calling ApplicationState for localId ",De),this.getApplicationState(pe?.selectedProgram,!0,De).pipe((0,s.W)(de=>(this.logger.error("Error fetching GetApplicationState for cached state",de),(0,f.of)(!1))))}),(0,u.M)(()=>{this.loadingSpinner.triggerLoadingIndicator(!1),this.opsLoading$.next(!1)}),(0,m.p)(Boolean),(0,s.W)(ve=>(this.logger.error("Error while processing apps",ve),this.opsLoading$.next(!1),(0,f.of)(!1))))}pushProgramToQueue(K,ve,De,pe){this.logger.info(`Pushing localId to queue with ${K}`,ve,De),this.priorityRequestQueue.queue(K,!1,this.processApps.bind(this),ve,De,pe).subscribe()}cancelProgramInQueue(K){this.logger.info("localId already found, cancelling request for localId",K),this.priorityRequestQueue.cancel(K)}checkProgramInQueueAndPush(K,ve,De){const pe=K.localId,Qe=K.shortName,zt=this.priorityRequestQueue.isQueued(pe);this.logger.info(`Selected Program already queued ${zt}`,Qe,pe),zt?this.cancelProgramInQueue(pe):this.logger.info("Adding to queue for selected program ",pe,Qe),this.pushProgramToQueue(Y.iX.High,pe,ve,De)}preFillOpsState(){return this.opsApiService.getOpsDBState().pipe((0,u.M)(K=>{if(this.logger.info("OPS state received from db ",K?.size),K?.size>0)for(const[ve,De]of K.entries())De&&(this.logger.info("Setting OPS cached state for localId ",ve),this.appStates.set(ve,{...De.state,currentSettingTweaks:De.currentSettingTweaks,translationData:De.translationData}))}),(0,S.u)(!0),(0,s.W)(K=>(this.logger.error("Error occurred while getting OPS state from db ",K),(0,f.of)(!1))),(0,y.s)(1))}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(X.KVO(Y.J6),X.KVO(ot),X.KVO(dt.M),X.KVO(xe.H),X.KVO(Me.Vk),X.KVO(Re.c),X.KVO(Y.iH),X.KVO(Ue.I),X.KVO(ee.n),X.KVO(W.f),X.KVO(Pe.c$),X.KVO(Le))},ye.\u0275prov=X.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Ie})()},6538:(je,z,c)=>{"use strict";c.d(z,{$2:()=>M,$7:()=>n,Q9:()=>y,Rw:()=>u,ZU:()=>v,a_:()=>S,bF:()=>m,c2:()=>E,eg:()=>s,gl:()=>I,iE:()=>A,iS:()=>f,jY:()=>l,lq:()=>h,nQ:()=>T,p7:()=>R});var r=c(74931),n=r.Or.Nvapp.Localgames.ApplicationPowerMode,v=r.Or.Nvapp.Localgames.Type,h=r.Or.Nvapp.Localgames.OptimizationState;const f=r.Ts.Nvapp.Localgames.GetApplicationState,A=r.Ts.Nvapp.Localgames.GetSettingsSpace,M=r.Ts.Nvapp.Localgames.SetTargetSettings,T=r.Ts.Nvapp.Localgames.RegisterApplicationStateChangedNotifications,E=r.Ts.Nvapp.Localgames.GetSettingsTranslations,y=r.Ts.Nvapp.Localgames.GetAutoOptimizeEnabled,S=r.Ts.Nvapp.Localgames.SetAutoOptimizeEnabled;var l=function(O){return O.DisplayMode="Display Mode",O.Resolution="Resolution",O}(l||{}),s=function(O){return O.UnInitialized="UNINITIALIZED",O.OptimalDcNotAvailable="OPTIMAL_DC_NOT_AVAILABLE",O.OptimalAcNotAvailable="OPTIMAL_AC_NOT_AVAILABLE",O.CurrentDcNotAvailable="CURRENT_DC_NOT_AVAILABLE",O.CurrentAcNotAvailable="CURRENT_AC_NOT_AVAILABLE",O.RecommendationsLoading="RECOMMENDATIONS_LOADING",O}(s||{}),u=function(O){return O.ProgramUnsupported="ProgramUnsupported",O.SystemUnsupported="SystemUnsupported",O}(u||{}),m=function(O){return O.AC="AC",O.DC="DC",O}(m||{}),I=function(O){return O[O.HyperSample=0]="HyperSample",O[O.Wide_16_9=1]="Wide_16_9",O[O.Wide_16_10=2]="Wide_16_10",O[O.Standard_4_3=3]="Standard_4_3",O[O.Standard_5_4=4]="Standard_5_4",O[O.Custom=5]="Custom",O}(I||{}),R=function(O){return O.Unknown="alert_circle",O.Optimized="check_circle",O.UnOptimized="remove_circle",O}(R||{})},44743:(je,z,c)=>{"use strict";c.d(z,{s:()=>X});var r=c(26513),n=c(80583),v=c(12532),h=c(35146),f=c(43848),A=c(36466),M=c(72147),T=c(65706),E=c(83915),y=c(14714),S=c(91384),l=c(74931),s=c(69568),u=c(25864),m=c(1242),I=c(26976),R=c(62668),O=c(83128),Y=c(58527),j=c(3816);let fe=(()=>{var ue;class Me{shortcutToStr(Q){let ne="";for(let Ge=0;Ge<Q.length;Ge++)ne+=this.processCharacter(Q[Ge]),Ge<Q.length-1&&(ne+="+");return ne}processCharacter(Q){return Q in j.rB?j.rB[Q]:String.fromCharCode(Q)}}return(ue=Me).\u0275fac=function(Q){return new(Q||ue)},ue.\u0275prov=Y.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"}),Me})();var te=c(65240),ce=c(96306),H=c(86088),Z=c(37898);let X=(()=>{var ue;class Me{constructor(Q,ne,Ge,ge,Xe,ot,dt,xe){this.loggingService=Q,this.keyboardMappingService=ne,this.translateService=Ge,this.errorHandlerService=ge,this.nvAppBridgeService=Xe,this.nvAppTelemetryService=ot,this.performanceMeasure=dt,this.localeService=xe,this.overlayState$=new r.t(null),this.refreshToggleValues$=new n.B7,this.logger=this.loggingService.getLogger("nvapp/OverlayService"),this.listenToLocaleChange()}getOverlayState(){return this.overlayState$.asObservable()}refreshToggleValues(){return this.refreshToggleValues$.asObservable()}triggerToggleValueRefresh(){this.refreshToggleValues$.next(this.overlayState$.getValue()?.feature?.toggle?.value)}initializeOverlayToggle(){this.overlayState$.pipe((0,M.n)(Q=>void 0===Q?.feature?.toggle?.value?(this.logger.info("Clean Install, Enabling Overlay in NvApp"),this.toggleOverlay(!0)):v.w),(0,T.s)(1)).subscribe(Q=>this.logger.info("Initialized overlay state"),Q=>this.logger.error("Error occurred while initializing enabling overlay ",Q))}getShareFeature(Q,ne){const Ge={language:ne};return(0,h.yU)((0,f.of)(Q),this.nvAppBridgeService.executeCommandWithTimeout(l.Ts.Nvapp.Nvigoutil.GetShadowPlaySupported,Ge),this.nvAppBridgeService.executeCommandWithTimeout(l.Ts.Nvapp.Nvigoutil.GetShadowPlayStatus),this.fetchOverlayHotKey()).pipe((0,E.T)(([ge,Xe,ot,dt])=>{this.logger.info(`shadowPlaySupport ${Xe.MediaPack} and shadowPlayStatus ${ot?.shadowPlayStatus}`);const xe=!!ge.overallState&&Xe.MediaPack,Re=ot?.shadowPlayStatus===s.nX.unknown?void 0:ot?.shadowPlayStatus===s.nX.enabled;this.hotKey=this.keyboardMappingService.shortcutToStr(dt?.keys);const Ue={...ge,overallState:xe,toggle:{visible:xe,value:Re},openStateDescriptions:[],hotKey:this.hotKey};return this.overlayState$.next({description:this.getOverlayDescription(Re,this.hotKey),feature:Ue}),Ue}),(0,y.W)(ge=>(this.logger.error("Error while getting share feature",ge),(ge?.code===I.Qq||ge instanceof R.n)&&(Q.isPluginError=!0),Q.toggle.disabled=!0,(0,f.of)(Q))))}toggleIgo(Q){this.overlayState$.getValue()?.feature?.overallState?(this.toggleIgoSub?.unsubscribe(),this.toggleIgoSub=this.toggleOverlay(Q).subscribe(Ge=>{this.nvAppTelemetryService.sendSettingChangeEvent(m.XB,Q?m.GC.Enabled:m.GC.Disabled,m.ih.System,!0)},Ge=>{this.nvAppTelemetryService.sendSettingChangeEvent(m.XB,Q?m.GC.Enabled:m.GC.Disabled,m.ih.System,!0,Ge?.message),this.logger.error("Error occurred while toggling overlay",Ge)})):this.showToastMessage("layout.features.overlay.unableToOpenOverlay",!1).pipe((0,T.s)(1)).subscribe(A.l,Ge=>this.logger.error("Error occurred while showing toast message",Ge))}toggleOverlay(Q){this.logger.info("Initiating IGO Toggle ",Q);const ne=Q?O.fR.OverlayEnable:O.fR.OverlayDisable;this.performanceMeasure.markNvAppPerformanceMarkers([O.mM.NvAppOverlayUpdateStart],ne);let Ge=Q?u.FU.Enabling.toString():u.FU.Disabling.toString();return this.updateOverlayState(Q,Ge),this.nvAppBridgeService.executeWithPluginStatusTelemetry(l.Ts.Nvapp.Nvigoutil.ToggleIGO,{toggle:Q}).pipe((0,S.M)(Xe=>{this.logger.info("IGO Toggle Response",Xe),this.performanceMeasure.markNvAppPerformanceMarkers([O.mM.NvAppOverlayUpdateEnd],ne),this.refreshToggleValues$.next(Q),this.updateOverlayState(Q,this.getOverlayDescription(Q))}),(0,y.W)(Xe=>(this.logger.error("Error occurred while toggling IGO",Xe),this.performanceMeasure.markNvAppPerformanceMarkers([O.mM.NvAppOverlayUpdateEnd],ne),Ge=this.getOverlayDescription(Q=!Q),this.updateOverlayState(Q,Ge),this.showToastMessage("layout.features.overlay.unableToEnableOverlay",!1))))}getOverlayEnabledString(Q){const ne=this.overlayState$.getValue();return this.translateService.instant(u.FU.HotKey,{hotKey:Q??ne?.feature?.hotKey})}openIgo(Q){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(l.Ts.Nvapp.Nvigoutil.OpenIGO,{openSettings:Q}).pipe((0,y.W)(Ge=>(this.logger.error("Error occurred while opening overlay ",Ge),this.showToastMessage("layout.features.overlay.unableToOpenOverlay",!1))))}fetchOverlayHotKey(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(l.Ts.Nvapp.Nvigoutil.GetHotkeyShortcut,{hotkey:s.II.OpenIGO})}updateOverlayState(Q,ne){const Ge=this.overlayState$.getValue();Ge.feature.toggle.value=Q,Ge.description=ne,this.overlayState$.next(Ge)}getOverlayDescription(Q,ne){return Q?this.getOverlayEnabledString(ne):u.FU.ClickToEnable}showToastMessage(Q,ne=!1,Ge=""){return this.errorHandlerService.showToastMessage({text:Q,translated:ne},{text:Ge,translated:ne})}listenToLocaleChange(){this.localeService.localeChanged.subscribe(Q=>{this.logger.info("locale has changed, update overlay feature");const ne=this.overlayState$.getValue();ne&&(ne.description=this.getOverlayDescription(ne?.feature?.toggle?.value,this.hotKey),this.overlayState$.next(ne))},Q=>{this.logger.error("Error while updating overlay feature after language change",Q)})}}return(ue=Me).\u0275fac=function(Q){return new(Q||ue)(Y.KVO(j.J6),Y.KVO(fe),Y.KVO(te.c$),Y.KVO(ce.c),Y.KVO(H.S),Y.KVO(m.AY),Y.KVO(Z.M),Y.KVO(j.iH))},ue.\u0275prov=Y.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"}),Me})()},73370:(je,z,c)=>{"use strict";c.d(z,{X:()=>S});var r=c(14714),n=c(91384),v=c(80583),h=c(43848),f=c(74931),A=c(26875),T=c(58527),E=c(14709),y=c(3816);let S=(()=>{var l;class s{constructor(m,I,R){this.appConfig=m,this.bridgeService=I,this.logger=R.getLogger("PiplLocaleConfigService"),this.piplLocalizationConfigUpdated=new v.B7,this.registerForlocaleChangeNotification()}loadLocalizationConfigOverrides(){return this.getlocaleOverride().pipe((0,r.W)(m=>(this.logger.error("Failed to overrides",m),(0,h.of)(null))))}getlocaleOverride(){return this.bridgeService.executeCommand(f.Ts.Common.Nvlocalizedconfig.GetLocalizationData).pipe((0,n.M)(m=>{this.logger.info("PIPL config is",m)}))}registerForlocaleChangeNotification(){let m;this.bridgeService.executeCommand(f.Ts.Common.Nvlocalizedconfig.LocalizationDataChangeNotification).pipe((0,n.M)(I=>{this.logger.info("Received Localization Data Change Notification "),m=this.appConfig.get(),this.appConfig.setPiplLocalizationConfigOverrides(I);const R=this.appConfig.get(),O=function M(l,s){return function u(m,I){return(0,A.transform)(m,function(R,O,Y){(0,A.isEqual)(O,I[Y])||(R[Y]=(0,A.isObject)(O)&&(0,A.isObject)(I[Y])?u(O,I[Y]):O)})}(s,l)}(m,R);this.piplLocalizationConfigUpdated.next(O)}),(0,r.W)(I=>(this.logger.error("Failed to get overrides",I),(0,h.of)(!1)))).subscribe()}get piplLocalizationConfigUpdated$(){return this.piplLocalizationConfigUpdated.asObservable()}}return(l=s).\u0275fac=function(m){return new(m||l)(T.KVO(E.oO),T.KVO(y.NZ),T.KVO(y.J6))},l.\u0275prov=T.jDH({token:l,factory:l.\u0275fac,providedIn:"root"}),s})()},37159:(je,z,c)=>{"use strict";c.d(z,{m:()=>T});var r=c(57258),n=c(65706),v=c(74931);const h=v.Ts.Common.Applicationcontrol.ModulesActiveNotification;var f=v.Or.Common.Applicationcontrol.State1,A=c(58527),M=c(3816);let T=(()=>{var E;class y{constructor(l,s){this.bridgeService=s,this.modulesActiveState$=new r.m(1),this.logger=l.getLogger("nvapp/PluginNotificationService"),this.registerForModulesActiveNotification()}isPluginLoaded(l){const s=new r.m(1);return this.modulesActiveState$.pipe((0,n.s)(1)).subscribe(u=>{if(u.modules.length>0){const I=u.modules.find(R=>R.module.toLowerCase()===l.toLowerCase())?.state===f.active;this.logger.info(`plugin state for ${l}`,I),s.next(I)}},u=>{this.logger.error("Error while emitting plugin state notification",u)}),s.asObservable()}registerForModulesActiveNotification(){this.pluginNotificationSub?.unsubscribe(),this.pluginNotificationSub=this.bridgeService.executeCommand(h).subscribe(l=>{l.modules.length>0&&(this.modulesActiveState$.next(l),this.logger.info("all plugins loaded",l.modules))},l=>{this.logger.error("ModulesActiveNotification Failed with error: ",l)})}}return(E=y).\u0275fac=function(l){return new(l||E)(A.KVO(M.J6),A.KVO(M.NZ))},E.\u0275prov=A.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),y})()},70279:(je,z,c)=>{"use strict";c.d(z,{Q5:()=>r.Q,lp:()=>n.lp,r7:()=>n.r7});var r=c(46058),n=c(90279)},46058:(je,z,c)=>{"use strict";c.d(z,{Q:()=>E});var r=c(80583),n=c(4208),v=c(65706),h=c(83915),f=c(58527),A=c(3816),M=c(47847),T=c(73370);let E=(()=>{var y;class S{constructor(s,u,m,I,R){this.localeService=u,this.windowService=m,this.appConfig=I,this.piplLocaleConfigService=R,this.unsubscribe$=new r.B7,this.logger=s.getLogger("nvapp/RedirectService"),this.registerForPiplLocalizationConfigUpdateEvent()}redirectTo(s){this.redirectUrlSub&&this.redirectUrlSub.unsubscribe(),this.redirectUrlSub=this.getRedirectUrl(s).pipe((0,n.Q)(this.unsubscribe$)).subscribe(u=>{this.logger.info("Redirecting to",u),this.windowService.window.open(u,"_blank")},u=>{this.logger.error(`Error while redirecting for page ${s}`,u)})}getRedirectUrl(s){return this.localeService.localeChanged.pipe((0,v.s)(1)).pipe((0,h.T)(u=>`${this.appConfig.redirect?.serverUrl}${u}&page=${s}`))}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}registerForPiplLocalizationConfigUpdateEvent(){this.piplLocaleConfigService.piplLocalizationConfigUpdated$.subscribe(s=>{s.redirect&&s.redirect.serverUrl&&(this.appConfig.redirect.serverUrl=s.redirect.serverUrl)})}}return(y=S).\u0275fac=function(s){return new(s||y)(f.KVO(A.J6),f.KVO(A.iH),f.KVO(A.s7),f.KVO(M.Vk),f.KVO(T.X))},y.\u0275prov=f.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),S})()},90279:(je,z,c)=>{"use strict";c.d(z,{lp:()=>v,r7:()=>n});var n=function(h){return h.AccountManagementSSO="nvidia_account_management_default",h.NvAppAccountManagementSSO="nvidia_account_management_default",h.TermsConditions="nvapp_terms_of_use",h.AccountTerms="nvapp_nvidia_account_tos",h.OssLicenses="nvapp_oss",h.PrivacyPolicy="nvapp_privacy_policy",h.PrivacyPortal="nvapp_privacy_portal",h.SupportedGamesApps="nvapp_supported_games_apps",h.SupportedProvisApps="nvapp_supported_provis_apps",h.SystemReq="nvapp_system_reqs",h.NvAppDriverPreferenceLearnMore="nvapp_driver_preference_learn_more ",h.NvAppDriverUpdateStrategyLearnMore="nvapp_driver_update_strategy_learn_more",h.CookiePolicy="nvapp_nvidia_cookie_policy",h.NvappMainPage="nvapp_main_page",h.NvappRedeemInstructions="nvapp_redeem_instructions",h.gSyncDisplays="nvapp_gsync_displays",h.VideoRtx="nvapp_video_rtx",h}(n||{});const v={[n.NvAppAccountManagementSSO]:"account.nvidia.com"}},3634:(je,z,c)=>{"use strict";c.d(z,{w:()=>ot});var r=c(65706),n=c(91384),v=c(83915),h=c(72147),f=c(8619),A=c(35965),M=c(1242);const E={name:"nvappReleaseHighlightsHtml",classPath:A.cK.services,clientPath:A.bq.GfeClient,endpointPath:"/getStyledClientReleaseHighlightsHtml",method:A.Xt.Get,paramMask:["cNm","cmID","gcV","lg","gLg","go","cID","dIDa","sM","osC","osB","is6","GFPV","gIsB","iLp","IsQ","isO","isSLI","cSR","uCst","jTK","sfUid","sfUid-Null"],reportRequestData:{originalService:M.Uu.Aem,serviceUseCase:M.OO.GetReleaseHighlights}};var y=c(58527),S=c(3816),l=c(26537),s=c(74150),u=c(61142),m=c(60990),I=c(40514),R=c(47973),O=c(29370),Y=c(28139),j=c(93964),fe=c(65240),te=c(33328);const ce=(dt,xe)=>({"modal-loader-content":dt,"modal-error-content":xe});function H(dt,xe){if(1&dt&&(y.j41(0,"span",9),y.EFF(1),y.nI1(2,"translate"),y.k0s()),2&dt){const Re=y.XpG(2);y.R7$(),y.JRh(y.bMT(2,1,Re.articleData.subTitle))}}function Z(dt,xe){if(1&dt&&(y.j41(0,"div",6)(1,"span",7),y.EFF(2),y.nI1(3,"translate"),y.k0s(),y.DNE(4,H,3,3,"span",8),y.k0s()),2&dt){const Re=y.XpG();y.R7$(2),y.JRh(y.bMT(3,2,Re.articleData.title)),y.R7$(2),y.Y8G("ngIf",Re.articleData.subTitle)}}function X(dt,xe){1&dt&&y.nrm(0,"nv-app-page-load-spinner")}function ue(dt,xe){1&dt&&(y.j41(0,"div",10),y.nrm(1,"mat-icon",11)(2,"p",12),y.nI1(3,"translate"),y.nI1(4,"trustAsHtml"),y.k0s()),2&dt&&(y.R7$(2),y.Y8G("innerHTML",y.bMT(4,3,y.bMT(3,1,"common.noInformationAvailable")),y.npT))}function Me(dt,xe){if(1&dt){const Re=y.RV6();y.j41(0,"div",13),y.nI1(1,"trustAsHtml"),y.bIt("dragstart",function(ee){y.eBV(Re);const W=y.XpG();return y.Njj(W.preventDrag(ee))}),y.k0s()}if(2&dt){const Re=y.XpG();y.Y8G("innerHTML",y.bMT(1,1,Re.articleData.body),y.npT)}}function be(dt,xe){if(1&dt){const Re=y.RV6();y.j41(0,"div",14)(1,"button",15),y.bIt("click",function(){y.eBV(Re);const ee=y.XpG();return y.Njj(ee.close())}),y.EFF(2),y.nI1(3,"translate"),y.k0s()()}2&dt&&(y.R7$(2),y.SpI(" ",y.bMT(3,1,"common.close")," "))}let Q=(()=>{var dt;class xe{constructor(Ue,ee,W){this.loggingService=Ue,this.dialogRef=ee,this.sanitizer=W,this.getArticleContent=null,this.autoCloseOnError=!0,this.showLoader=!1,this.articleData=null,this.error=!1,this.logger=this.loggingService.getLogger("nvapp/InAppReleaseHighlightsModalComponent")}ngOnInit(){this.getArticleContent?(this.showLoader=!0,this.dialogRef.addPanelClass(["info-modal-article-loading",this.articleData?.panelClass]),this.articleContentSubscription=this.getArticleContent().subscribe(Ue=>{if(this.showLoader=!1,this.dialogRef.removePanelClass(["info-modal-article-loading","info-modal-article-error",this.articleData?.panelClass]),Ue&&Ue.body){let ee=document?.createElement("div");ee.innerHTML=Ue.body,ee.querySelectorAll("img").forEach(W=>W.setAttribute("loading","lazy")),Ue.body=ee.innerHTML,this.articleData=Ue,ee=null}else this.error=!0,this.logger.error("get article returned null")},Ue=>{this.logger.error("failed to get article content with error",Ue),this.showLoader=!1,this.dialogRef.addPanelClass(["info-modal-article-error",this.articleData?.panelClass]),this.error=!0})):this.logger.error("Article content not available")}preventDrag(Ue){Ue.preventDefault(),Ue.stopImmediatePropagation()}close(){this.dialogRef.close()}ngOnDestroy(){this.articleContentSubscription?.unsubscribe()}}return(dt=xe).\u0275fac=function(Ue){return new(Ue||dt)(y.rXU(S.J6),y.rXU(l.CP),y.rXU(s.up))},dt.\u0275cmp=y.VBU({type:dt,selectors:[["nv-app-in-app-release-highlights-modal"]],inputs:{getArticleContent:"getArticleContent",autoCloseOnError:"autoCloseOnError"},decls:6,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],[3,"ngClass"],[4,"ngIf"],["class","error-info-container font-body2",4,"ngIf"],["draggable","false","class","mat-primary mat-hue-2 article-content",3,"innerHTML","dragstart",4,"ngIf"],["class","modal-actions","mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"font-header6"],["class","font-body2 font-color-tertiary",4,"ngIf"],[1,"font-body2","font-color-tertiary"],[1,"error-info-container","font-body2"],["svgIcon","info",1,"material-icons","error-info-icon"],[1,"error-info",3,"innerHTML"],["draggable","false",1,"mat-primary","mat-hue-2","article-content",3,"dragstart","innerHTML"],["mat-dialog-actions","",1,"modal-actions"],["mat-button","",1,"hig-button","font-button2","modal-close-action",3,"click"]],template:function(Ue,ee){1&Ue&&(y.DNE(0,Z,5,4,"div",0),y.j41(1,"mat-dialog-content",1),y.DNE(2,X,1,0,"nv-app-page-load-spinner",2)(3,ue,5,5,"div",3)(4,Me,2,3,"div",4),y.k0s(),y.DNE(5,be,4,3,"div",5)),2&Ue&&(y.Y8G("ngIf",ee.articleData),y.R7$(),y.Y8G("ngClass",y.l_i(6,ce,ee.showLoader,ee.error)),y.R7$(),y.Y8G("ngIf",ee.showLoader),y.R7$(),y.Y8G("ngIf",ee.error),y.R7$(),y.Y8G("ngIf",null==ee.articleData?null:ee.articleData.body),y.R7$(),y.Y8G("ngIf",!ee.showLoader&&(ee.articleData||ee.error)))},dependencies:[u.YU,u.bT,m.r,I.e,R.iV,O.An,l.BI,l.Yi,l.E7,Y.PW,j.Q,fe.D9,te.O],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)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}@font-face{font-family:NVIDIA;font-style:normal;font-weight:400;src:url(assets/hashed/NVIDIASans_W_Rg.33fb51adcc625f4e.woff2) format("woff2")}@font-face{font-family:NVIDIA;font-style:normal;font-weight:500;src:url(assets/hashed/NVIDIASans_W_Md.14ea224b997bf6e0.woff2) format("woff2")}@font-face{font-family:NVIDIA;font-style:normal;font-weight:700;src:url(assets/hashed/NVIDIASans_W_Bd.5aafff8b08f9a971.woff2) format("woff2")}.font-header1[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:96px;line-height:128px;letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%]   .font-header1[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-header1[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-header1[_ngcontent-%COMP%]{font-size:192px;line-height:256px}.font-header2[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:60px;line-height:80px;letter-spacing:0;font-weight:700}.tv-view[_ngcontent-%COMP%]   .font-header2[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-header2[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-header2[_ngcontent-%COMP%]{font-size:120px;line-height:160px}.font-header3[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:48px;line-height:64px;letter-spacing:0;font-weight:700}.tv-view[_ngcontent-%COMP%]   .font-header3[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-header3[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-header3[_ngcontent-%COMP%]{font-size:96px;line-height:128px}.font-header4[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:34px;line-height:48px;letter-spacing:0;font-weight:700}.tv-view[_ngcontent-%COMP%]   .font-header4[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-header4[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-header4[_ngcontent-%COMP%]{font-size:68px;line-height:96px}.font-header5[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:24px;line-height:32px;letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%]   .font-header5[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-header5[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-header5[_ngcontent-%COMP%]{font-size:48px;line-height:64px}.font-header6[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:20px;line-height:28px;letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%]   .font-header6[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-header6[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-header6[_ngcontent-%COMP%]{font-size:40px;line-height:56px}.font-header7[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%]   .font-header7[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-header7[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-header7[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.font-sub1[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0}.tv-view[_ngcontent-%COMP%]   .font-sub1[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-sub1[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-sub1[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.font-sub2[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view[_ngcontent-%COMP%]   .font-sub2[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-sub2[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-sub2[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.font-sub3[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:12px;line-height:16px;letter-spacing:0}.tv-view[_ngcontent-%COMP%]   .font-sub3[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-sub3[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-sub3[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.font-body1[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0}.tv-view[_ngcontent-%COMP%]   .font-body1[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-body1[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-body1[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%]   .font-body1[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .font-body1[_ngcontent-%COMP%]{color:#ffffffd9}.font-body2[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view[_ngcontent-%COMP%]   .font-body2[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-body2[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-body2[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.new-10ft[_nghost-%COMP%]   .font-body2[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .font-body2[_ngcontent-%COMP%]{color:#ffffffd9}.font-body3[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:12px;line-height:16px;letter-spacing:0}.tv-view[_ngcontent-%COMP%]   .font-body3[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-body3[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-body3[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.new-10ft[_nghost-%COMP%]   .font-body3[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .font-body3[_ngcontent-%COMP%]{color:#ffffffd9}.font-body1-italic[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0;font-style:italic}.tv-view[_ngcontent-%COMP%]   .font-body1-italic[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-body1-italic[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-body1-italic[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%]   .font-body1-italic[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .font-body1-italic[_ngcontent-%COMP%]{color:#ffffffd9}.font-body2-italic[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;font-style:italic}.tv-view[_ngcontent-%COMP%]   .font-body2-italic[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-body2-italic[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-body2-italic[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.new-10ft[_nghost-%COMP%]   .font-body2-italic[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .font-body2-italic[_ngcontent-%COMP%]{color:#ffffffd9}.font-body3-italic[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:12px;line-height:16px;letter-spacing:0;font-style:italic}.tv-view[_ngcontent-%COMP%]   .font-body3-italic[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-body3-italic[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-body3-italic[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.new-10ft[_nghost-%COMP%]   .font-body3-italic[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .font-body3-italic[_ngcontent-%COMP%]{color:#ffffffd9}.font-body1-link[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0;text-decoration:none;border-bottom:1px solid transparent;white-space:nowrap;color:#76b900}.tv-view[_ngcontent-%COMP%]   .font-body1-link[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-body1-link[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-body1-link[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%]   .font-body1-link[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .font-body1-link[_ngcontent-%COMP%]{color:#ffffffd9}.font-body1-link[_ngcontent-%COMP%]:hover{cursor:pointer;outline:none;border-bottom:1px dotted #76b900}.font-body1-link.cdk-program-focused[_ngcontent-%COMP%], .font-body1-link.cdk-keyboard-focused[_ngcontent-%COMP%], .cdk-keyboard-focused[_ngcontent-%COMP%]   .font-body1-link[_ngcontent-%COMP%]:focus, .cdk-program-focused[_ngcontent-%COMP%]   .font-body1-link[_ngcontent-%COMP%]:focus{position:relative;--outset: -1px ;--focus-background: rgba(118, 185, 0, .32)}.font-body1-link.cdk-program-focused[_ngcontent-%COMP%]:before, .font-body1-link.cdk-keyboard-focused[_ngcontent-%COMP%]:before, .cdk-keyboard-focused[_ngcontent-%COMP%]   .font-body1-link[_ngcontent-%COMP%]:focus:before, .cdk-program-focused[_ngcontent-%COMP%]   .font-body1-link[_ngcontent-%COMP%]:focus:before{content:"";position:absolute;top:var(--outset);right:var(--outset);bottom:var(--outset);left:var(--outset);animation:_ngcontent-%COMP%_backgroundColorFadeIn .75s forwards}.font-body1-link.cdk-program-focused[_ngcontent-%COMP%]:after, .font-body1-link.cdk-keyboard-focused[_ngcontent-%COMP%]:after, .cdk-keyboard-focused[_ngcontent-%COMP%]   .font-body1-link[_ngcontent-%COMP%]:focus:after, .cdk-program-focused[_ngcontent-%COMP%]   .font-body1-link[_ngcontent-%COMP%]:focus:after{background-color:unset}.font-body1-link[_ngcontent-%COMP%]:active{opacity:.45}.font-body2-link[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;text-decoration:none;border-bottom:1px solid transparent;white-space:nowrap;color:#76b900}.tv-view[_ngcontent-%COMP%]   .font-body2-link[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-body2-link[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-body2-link[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.new-10ft[_nghost-%COMP%]   .font-body2-link[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .font-body2-link[_ngcontent-%COMP%]{color:#ffffffd9}.font-body2-link[_ngcontent-%COMP%]:hover{cursor:pointer;outline:none;border-bottom:1px dotted #76b900}.font-body2-link.cdk-program-focused[_ngcontent-%COMP%], .font-body2-link.cdk-keyboard-focused[_ngcontent-%COMP%], .cdk-keyboard-focused[_ngcontent-%COMP%]   .font-body2-link[_ngcontent-%COMP%]:focus, .cdk-program-focused[_ngcontent-%COMP%]   .font-body2-link[_ngcontent-%COMP%]:focus{position:relative;--outset: -1px ;--focus-background: rgba(118, 185, 0, .32)}.font-body2-link.cdk-program-focused[_ngcontent-%COMP%]:before, .font-body2-link.cdk-keyboard-focused[_ngcontent-%COMP%]:before, .cdk-keyboard-focused[_ngcontent-%COMP%]   .font-body2-link[_ngcontent-%COMP%]:focus:before, .cdk-program-focused[_ngcontent-%COMP%]   .font-body2-link[_ngcontent-%COMP%]:focus:before{content:"";position:absolute;top:var(--outset);right:var(--outset);bottom:var(--outset);left:var(--outset);animation:_ngcontent-%COMP%_backgroundColorFadeIn .75s forwards}.font-body2-link.cdk-program-focused[_ngcontent-%COMP%]:after, .font-body2-link.cdk-keyboard-focused[_ngcontent-%COMP%]:after, .cdk-keyboard-focused[_ngcontent-%COMP%]   .font-body2-link[_ngcontent-%COMP%]:focus:after, .cdk-program-focused[_ngcontent-%COMP%]   .font-body2-link[_ngcontent-%COMP%]:focus:after{background-color:unset}.font-body2-link[_ngcontent-%COMP%]:active{opacity:.45}.font-body3-link[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:12px;line-height:16px;letter-spacing:0;text-decoration:none;border-bottom:1px solid transparent;white-space:nowrap;color:#76b900}.tv-view[_ngcontent-%COMP%]   .font-body3-link[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-body3-link[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-body3-link[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.new-10ft[_nghost-%COMP%]   .font-body3-link[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .font-body3-link[_ngcontent-%COMP%]{color:#ffffffd9}.font-body3-link[_ngcontent-%COMP%]:hover{cursor:pointer;outline:none;border-bottom:1px dotted #76b900}.font-body3-link.cdk-program-focused[_ngcontent-%COMP%], .font-body3-link.cdk-keyboard-focused[_ngcontent-%COMP%], .cdk-keyboard-focused[_ngcontent-%COMP%]   .font-body3-link[_ngcontent-%COMP%]:focus, .cdk-program-focused[_ngcontent-%COMP%]   .font-body3-link[_ngcontent-%COMP%]:focus{position:relative;--outset: -1px ;--focus-background: rgba(118, 185, 0, .32)}.font-body3-link.cdk-program-focused[_ngcontent-%COMP%]:before, .font-body3-link.cdk-keyboard-focused[_ngcontent-%COMP%]:before, .cdk-keyboard-focused[_ngcontent-%COMP%]   .font-body3-link[_ngcontent-%COMP%]:focus:before, .cdk-program-focused[_ngcontent-%COMP%]   .font-body3-link[_ngcontent-%COMP%]:focus:before{content:"";position:absolute;top:var(--outset);right:var(--outset);bottom:var(--outset);left:var(--outset);animation:_ngcontent-%COMP%_backgroundColorFadeIn .75s forwards}.font-body3-link.cdk-program-focused[_ngcontent-%COMP%]:after, .font-body3-link.cdk-keyboard-focused[_ngcontent-%COMP%]:after, .cdk-keyboard-focused[_ngcontent-%COMP%]   .font-body3-link[_ngcontent-%COMP%]:focus:after, .cdk-program-focused[_ngcontent-%COMP%]   .font-body3-link[_ngcontent-%COMP%]:focus:after{background-color:unset}@keyframes _ngcontent-%COMP%_backgroundColorFadeIn{0%{background-color:transparent}to{background-color:var(--focus-background)}}.font-body3-link[_ngcontent-%COMP%]:active{opacity:.45}.font-overline1[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:12px;line-height:16px;color:#fff9;letter-spacing:0;text-transform:uppercase}.tv-view[_ngcontent-%COMP%]   .font-overline1[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-overline1[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-overline1[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.new-10ft[_nghost-%COMP%]   .font-overline1[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .font-overline1[_ngcontent-%COMP%]{color:#ffffffd9}.font-button1[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;font-size:14px;line-height:20px;letter-spacing:0;font-weight:500;font-style:normal;text-transform:uppercase;text-decoration:none;color:#76b900}.tv-view[_ngcontent-%COMP%]   .font-button1[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-button1[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-button1[_ngcontent-%COMP%]{font-size:28px;line-height:40px;padding:18px 24px}.font-button2[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;font-size:14px;line-height:20px;letter-spacing:0;font-weight:500;font-style:normal;text-transform:uppercase;text-decoration:none;color:#fff}.tv-view[_ngcontent-%COMP%]   .font-button2[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%]   .font-button2[_ngcontent-%COMP%], .tv-view   [_nghost-%COMP%]   .font-button2[_ngcontent-%COMP%]{font-size:28px;line-height:40px;padding:18px 24px}.font-color-primary[_ngcontent-%COMP%]{color:#ffffffe6}.font-color-secondary[_ngcontent-%COMP%]{color:#ffffffb3}.new-10ft[_nghost-%COMP%]   .font-color-secondary[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .font-color-secondary[_ngcontent-%COMP%]{color:#ffffffd9}.font-color-tertiary[_ngcontent-%COMP%]{color:#fff9}.new-10ft[_nghost-%COMP%]   .font-color-tertiary[_ngcontent-%COMP%], .new-10ft   [_nghost-%COMP%]   .font-color-tertiary[_ngcontent-%COMP%]{color:#ffffffb3}.modal-loader-content[_ngcontent-%COMP%]{width:790px;height:80vh;max-height:530px;min-height:480px}.modal-error-content[_ngcontent-%COMP%]{width:790px;height:calc(80vh - 52px);min-height:428px;max-height:478px}.close-button-container[_ngcontent-%COMP%]{position:absolute;z-index:1;top:24px;right:16px}.error-info-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1 1 100%;justify-content:center;align-items:center;height:100%}.error-info-container[_ngcontent-%COMP%]   .error-info-icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .error-info-container[_ngcontent-%COMP%]   .error-info-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:24px;height:24px;width:24px}.error-info-container[_ngcontent-%COMP%]   .error-info[_ngcontent-%COMP%]{margin:10px 0 0;text-align:center}.close-button-container[_ngcontent-%COMP%]   .mat-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{vertical-align:initial}.modal-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end;padding:0 8px;margin-bottom:0}.modal-close-action[_ngcontent-%COMP%]{width:auto}']}),xe})();var ne=c(10404),Ge=c(47847),ge=c(96306),Xe=c(45032);let ot=(()=>{var dt;class xe{constructor(Ue,ee,W,Pe,le,oe,Le,Oe,ye){this.loggingService=Ue,this.aemService=ee,this.loginService=W,this.appConfig=Pe,this.windowService=le,this.errorHandlerService=oe,this.gfwslParamService=Le,this.matDialog=Oe,this.ootbService=ye,this.logger=Ue.getLogger("nvapp/ReleaseHighlightsService"),this.aemService.addEndpointDefinitions([E])}showInAppReleaseHighlightsOnLaunch(){this.ootbService.isOotbCompletedOrSkipped.pipe((0,r.s)(1)).subscribe(Ue=>{Ue?this.showInAppReleaseHighlights():this.logger.info("Skip showing release highlights as OOTB is not completed")},Ue=>{this.logger.error("Error while showing release highlights on self update",Ue)})}showInAppReleaseHighlights(){const ee=this.matDialog.open(Q,{hasBackdrop:!0,autoFocus:!1,restoreFocus:!1,backdropClass:"in-app-rh-article-backdrop",panelClass:["in-app-rh-article-content","common-dialog"],maxWidth:790});ee.componentInstance.getArticleContent=function(){return this.getReleaseHighlight()}.bind(this),ee.componentInstance.autoCloseOnError=!1,ee.afterClosed().pipe((0,r.s)(1)).subscribe(()=>{this.logger.info("The dialog was closed")},W=>{this.logger.error("Failed to close the release highlights dialog",W)})}getReleaseHighlight(){return this.getAemReleaseHighlights().pipe((0,n.M)(Ue=>this.logger.info("Release Highlights response",Ue)),(0,v.T)(Ue=>({title:"preferences.about.releaseHighlights",subTitle:"",body:Ue.body.gfcontent.body,panelClass:""})))}getAemReleaseHighlights(){return this.onGfwslParamsReady().pipe((0,h.n)(()=>this.aemService.callAemEndpoint(E.name,{cNm:this.appConfig.appName,cmID:"",jTK:"","sfUid-Null":""},{},{},{"Content-Type":"text/plain"},void 0)))}getUserId(){return this.loginService.accountStatusChanged.pipe((0,r.s)(1),(0,v.T)(Ue=>(Ue.isAuthenticated&&this.logger.info("User is authenticated, sending userId"),Ue.isAuthenticated?window.btoa(Ue.userId):"")))}onGfwslParamsReady(){return this.gfwslParamService.gfwslParamsUpdated.pipe((0,f.p)(Ue=>this.areGfwslParamsAvailable(Ue)),(0,r.s)(1))}areGfwslParamsAvailable(Ue){return!!(Ue.hasSystemInfo&&Ue.hasLocaleInfo&&Ue.params.dIDa)}showErrorMessage(Ue,ee=!1){this.errorHandlerService.showToastMessage({text:Ue,translated:ee}).subscribe()}}return(dt=xe).\u0275fac=function(Ue){return new(Ue||dt)(y.KVO(S.J6),y.KVO(A.PZ),y.KVO(ne.HF),y.KVO(Ge.Vk),y.KVO(S.s7),y.KVO(ge.c),y.KVO(A.Tg),y.KVO(l.bZ),y.KVO(Xe.Q))},dt.\u0275prov=y.jDH({token:dt,factory:dt.\u0275fac,providedIn:"root"}),xe})()},58474:(je,z,c)=>{"use strict";c.d(z,{V:()=>Y});var r=c(85161),n=c(59859),v=c(8619),h=c(91384),f=c(14714),A=c(3816),M=c(26772),T=c(54803),E=c(1242),y=c(83128),S=c(58527),l=c(7486),s=c(3634),u=c(43071),m=c(65240),I=c(96306),R=c(37898),O=c(72482);let Y=(()=>{var j;class fe{constructor(ce,H,Z,X,ue,Me,be,Q,ne,Ge,ge){this.loggingService=ce,this.router=H,this.rewardsService=Z,this.releaseHighlightsService=X,this.sidebarService=ue,this.nativeEventService=Me,this.translateService=be,this.errorHandlerService=Q,this.injector=ne,this.performanceMeasureService=Ge,this.driverInfoService=ge,this.logger=ce.getLogger("nvapp/RouterHandlerService")}initialize(){this.registerURLRouteChangeEventOnNativeEvents(),this.routerChangeListener()}restoreScrollToTopOnRouteChange(ce){this.router.events.pipe((0,v.p)(H=>H instanceof r.OY)).subscribe(H=>{ce?.nativeElement?.scrollTo({left:0,top:0})})}routerChangeListener(){this.router.events.subscribe(ce=>{if(ce instanceof r.AL&&ce.route.path===M.f.Home&&this.performanceMeasureService.markNvAppPerformanceMarkers([y.mM.NvAppHomeRouteNavigationStart],y.fR.Home),ce instanceof r.Z){this.logger.info("route info start",ce.url);const H=ce.url.substring(ce.url.indexOf("/")+1);this.sidebarService.updateSidebarPageItems(ce.url===M.f.Root||H===M.f.ReleaseHighlights?M.f.Home:H),M.f.Rewards===H&&this.rewardsService.isRewardUnAvailable()&&(this.rewardsService.showRewardUnAvailableDialog(),this.router.navigate([this.router.url])),M.f.ReleaseHighlights===H&&this.releaseHighlightsService.showInAppReleaseHighlightsOnLaunch(),H===M.f.Drivers?this.performanceMeasureService.markNvAppPerformanceMarkers([y.mM.NvAppDriverRouteNavigationStart],y.fR.Driver):H===M.f.Rewards?(this.performanceMeasureService.markNvAppPerformanceMarkers([y.mM.NvAppRedeemRouteNavigationStart],y.fR.Redeem),this.injector.get(E.AY).sendClickEvent(E.EB.RedeemSideBar,"",!0,"")):H===M.f.Manage3dSettings?this.performanceMeasureService.markNvAppPerformanceMarkers([y.mM.NvAppGraphicsRouteNavigationStart],y.fR.Graphics):-1!==H.indexOf(M.f.Preferences)?this.performanceMeasureService.markNvAppPerformanceMarkers([y.mM.NvAppSettingsRouteNavigationStart],y.fR.Settings):H===M.f.System&&(this.performanceMeasureService.markNvAppPerformanceMarkers([y.mM.NvAppSystemOverviewRouteNavigationStart],y.fR.SystemOverview),this.performanceMeasureService.markNvAppPerformanceMarkers([y.mM.NvAppPerfRouteStart],y.fR.Performance),this.performanceMeasureService.markNvAppPerformanceMarkers([y.mM.NvAppDisplaysRouteNavigationStart],y.fR.SystemDisplays),this.performanceMeasureService.markNvAppPerformanceMarkers([y.mM.NvAppVideoRouteNavigationStart],y.fR.SystemVideo))}})}registerURLRouteChangeEventOnNativeEvents(){this.nativeEventService.get$(A.D4.RouteChange,A.Jm.Types.HandlerEventType.StructuredWindowEvent).subscribe(ce=>{try{const H=JSON.parse(ce);if(H&&H.hasOwnProperty(M.A7)){const Z=H[M.A7].substring(1);this.logger.info("navigating nvapp to deep link",Z);const{isDriverInstalled:X,isMinimumDriverInstalled:ue}=this.driverInfoService.getDriverInstallInfo();X&&ue&&(-1!==Z.indexOf(M.f.Preferences)?this.router.navigateByUrl(Z,{onSameUrlNavigation:"reload"}):this.router.navigateByUrl(Z))}else this.logger.error("Invalid url data provided, ignoring")}catch(H){this.logger.error("Error while processing url-route change event. ",H)}},ce=>{this.logger.error("Received error for RouteChange window event: ",ce)})}routeToPage(ce,H,Z){const X=ce.itemType?.route;if(H&&Z)this.router.navigate([X]);else{const ue=this.translateService.instant(ce.itemType?.id);if(ce.itemType?.id!==T.D.Drivers){const Me={page:ue};this.errorHandlerService.showFeatureNotAvailableDialog("common.pageNotAvailable",H?"common.updateDriverToAccessPage":"common.installDriverToAccessPage",null,Me,Me)}}}routeToDriverIfMinimumDriverNotInstalled(){return this.driverInfoService.fetchDriverInstallInfo().pipe((0,h.M)(({isDriverInstalled:ce,isMinimumDriverInstalled:H})=>{this.logger.info("is Driver Installed",ce,"is minimum Driver Installed",H),(!ce||!H)&&(this.router.navigate([M.f.Drivers]),this.logger.info("The page navigates to the driver page upon APP launch"))}),(0,f.W)(ce=>(this.logger.error("Error fetching isMinimumDriverInstalled details:",ce),(0,n.$)(ce))))}routeToGraphics(ce){this.router.navigate(ce?[M.f.Manage3dSettings,ce]:[M.f.Manage3dSettings])}}return(j=fe).\u0275fac=function(ce){return new(ce||j)(S.KVO(A.J6),S.KVO(r.Ix),S.KVO(l.y),S.KVO(s.w),S.KVO(u.o),S.KVO(A.dU),S.KVO(m.c$),S.KVO(I.c),S.KVO(S.zZn),S.KVO(R.M),S.KVO(O.u))},j.\u0275prov=S.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),fe})()},44272:(je,z,c)=>{"use strict";c.d(z,{n:()=>ue});var r=c(26875),v=c(57258),h=c(43848),f=c(59859),A=c(31315),M=c(3496),T=c(36466),E=c(79539),y=c(83915),S=c(65706),l=c(91384),s=c(72147),u=c(14714),m=c(10174),I=c(53461),R=c(36666),O=c(42578),Y=c(125),j=c(58527),fe=c(3816),te=c(13102),ce=c(96306),H=c(73796),Z=c(47847),X=c(65240);let ue=(()=>{var Me;class be{constructor(ne,Ge,ge,Xe,ot,dt,xe,Re){this.scanApisService=Ge,this.errorHandlerService=ge,this.lcarsService=Xe,this.bridgeService=ot,this.appConfig=dt,this.translateService=xe,this.localeService=Re,this.localUpdatedApps$=new v.m(1),this.localAppCache=[],this.localAppCacheCount=0,this.lastAppUserTriedAdding={},this.logger=ne.getLogger("nvapp/AppListService")}getLocalAppsCache(){this.subGetLocalApps&&this.subGetLocalApps.unsubscribe(),this.subGetLocalApps=this.scanApisService.getLocalApps().pipe((0,E.H)(ne=>{const Ge=ne.slice();return this.logger.info("New programs received",ne.length),Ge.length>0?this.getAppAssetsByAppId(Ge,O.cW.AllAppsMetaData):(0,h.of)(Ge)})).subscribe(ne=>{this.localAppCache=ne,this.logger.info("Local apps received : ",ne),this.localUpdatedApps$.next(ne)},ne=>{this.logger.info("Error fetching local apps",ne)})}getLocalUpdatedApps(){return this.localUpdatedApps$.asObservable()}initialize(){this.registerAppListeners(),this.scanApisService.initLocalApps().subscribe()}registerAppListeners(){this.getLocalAppsCache(),this.localAppAddedListener(),this.localAppRemovedListener(),this.refreshProgramAssets()}localAppAddedListener(){this.subGetLocalAddedApp&&this.subGetLocalAddedApp.unsubscribe(),this.subGetLocalAddedApp=this.scanApisService.getLocalAddedApp().pipe((0,E.H)(ne=>this.getAppAssetsByAppId([ne],O.cW.AppMetaData)),(0,y.T)(ne=>ne[0])).subscribe(ne=>{ne?(this.updateOrAddNewFPApp(ne),this.localUpdatedApps$.next(this.localAppCache)):this.logger.info("null app change notification received..",ne)},ne=>{this.logger.error("Error while fetching local added app ",ne)})}updateOrAddNewFPApp(ne){const Ge=this.localAppCache.findIndex(ge=>ge.localId===ne.localId);Ge>-1?Object.keys(ne).filter(ge=>!!ne[ge]).forEach(ge=>{this.localAppCache[Ge][ge]=ne[ge]}):this.localAppCache.unshift(ne),this.sortBeforeEmit()}sortBeforeEmit(){this.localAppCache=this.scanApisService.sortApps(this.localAppCache)}localAppRemovedListener(){this.subGetLocalRemovedApp&&this.subGetLocalRemovedApp.unsubscribe(),this.subGetLocalRemovedApp=this.scanApisService.getLocalRemovedApp().subscribe(ne=>{ne&&(this.localAppCache=this.localAppCache.filter(Ge=>Ge.localId!==ne)),this.sortBeforeEmit(),this.localUpdatedApps$.next(this.localAppCache)},ne=>{this.logger.error("Error while fetching local removed app ",ne)})}initiateScan(ne=Y.Ut.traditional){this.logger.info("Initiating game scan, type: ",ne),this.localAppCacheCount=this.localAppCache.length,this.scanApisService.initiateScan(ne).pipe((0,S.s)(1)).subscribe(Ge=>{this.logger.info("Scan result : ",Ge),ne===Y.Ut.traditional&&this.showScanSuccessToastMessage()},Ge=>{this.logger.error("Scan errored : ",Ge),this.showErrorToastMessage(JSON.stringify(Ge))})}initiateTraditionalScan(){return this.scanApisService.initiateScan(Y.Ut.traditional)}getScanStatus(){return this.scanApisService.getScanStatus().pipe((0,l.M)(ne=>{ne||this.showAppsCountMessage()}))}getAppAssetsByAppId(ne,Ge){if(!ne.length)return(0,h.of)(ne);const ge=ne.map(Xe=>Xe.chromaAppId);return this.lcarsService.getAppAssetsByAppId(ge,Ge).pipe((0,y.T)(Xe=>ne.map(ot=>{const dt=Xe.find(xe=>ot.chromaAppId===xe.id);if(dt){const xe=Object.assign(ot,dt);return xe.displayName=dt.title||ot.displayName,xe}return ot})),(0,S.s)(1))}checkMetaDataExists(ne){return this.bridgeService.executeCommand(Y.R,{applicationImagePath:ne}).pipe((0,s.n)(ge=>{let Xe={};return ge.isPresent?(Xe=Object.assign(Xe,ge.application),Xe.installDirectory=ne,this.logger.info("Updating install dir to filePath for FP apps ",ne)):this.logger.info("No metadata found for ",ne),ge.isPresent?this.getAppAssetsByAppId([Xe],O.cW.AppMetaData):(0,h.of)(null)}),(0,y.T)(ge=>ge?ge[0]:null),(0,u.W)(ge=>{const Xe="Error occured while checking for app metadata from nvbackend";return this.logger.error(Xe,ge),(0,f.$)(Xe)}),(0,S.s)(1))}launchApp(ne){return this.bridgeService.executeCommand(Y.mA).pipe((0,s.n)(Ge=>this.bridgeService.executeCommand(Y.TW,{pid:Ge.pid})),(0,s.n)(Ge=>this.bridgeService.executeCommand(Y.Gw,{localId:ne})),(0,m.u)(!0),(0,u.W)(Ge=>(this.logger.error("Error occured while application launch: ",Ge),this.errorHandlerService.showToastMessage({text:"manage3dSettings.anErrorOccuredAtLaunch",placeholders:{errorText:Ge.message??JSON.stringify(Ge)},translated:!1}).subscribe(),(0,h.of)(!1))))}getProfileNameFromExe(ne){const Ge=this.localAppCache.findIndex(Xe=>Xe.id===ne.id);return ne.drsAppSubPath?this.bridgeService.executeCommand(Y.PT,{ExeName:ne.drsAppSubPath}).pipe((0,u.W)(Xe=>(this.logger.error(`Some error occured while fetching the drsProfile name, returning null profileName for ${ne.shortName}. Error: `,Xe),(0,h.of)(null))),(0,l.M)(Xe=>{Xe&&(this.logger.info("updating drs profile name = ",Xe?.ProfileName," for appIndex = ",Ge),this.localAppCache[Ge].drsProfileName=Xe?.ProfileName)}),(0,y.T)(Xe=>Xe?.ProfileName)):(this.logger.info(`DrsSubPath for ${ne.displayName} is empty`),this.localAppCache[Ge].drsProfileName=ne.shortName,this.logger.info(`updating drs profile name = ${ne.shortName} for appIndex = ${Ge}`),(0,h.of)(ne.shortName))}showAppsCountMessage(){let ne,Ge=this.localAppCache.length-this.localAppCacheCount;Ge>0?ne=1===Ge?"manage3dSettings.scan.gameIsAdded":"manage3dSettings.scan.gamesAdded":Ge<0?(Ge=Math.abs(Ge),ne=1===Ge?"manage3dSettings.scan.gameIsRemoved":"manage3dSettings.scan.gamesRemoved"):ne="manage3dSettings.scan.noProgramsFound",this.errorHandlerService.showToastMessage({text:ne,placeholders:{count:Ge},translated:!1}).subscribe()}showErrorToastMessage(ne){this.errorHandlerService.showToastMessage({text:"manage3dSettings.scan.scanErrored"}).subscribe()}showScanSuccessToastMessage(){this.errorHandlerService.showToastMessage({text:"manage3dSettings.scan.scanStarted",translated:!1}).subscribe()}refreshProgramAssets(){this.subProgramAssets?.unsubscribe(),this.subProgramAssets=(0,A.zV)([this.localeService.localeChanged.pipe((0,I.F)(),(0,l.M)(()=>{this.logger.info("Locale changed refresh")})),(0,M.O)(0,this.appConfig.lcars.appsRefreshTime).pipe((0,l.M)(()=>{this.logger.info("Periodic refresh of assets")}))]).pipe((0,R.i)(1),(0,s.n)(()=>(this.logger.info("Refreshing assets based on locale or periodic refresh"),this.getAppAssetsByAppId(this.localAppCache,O.cW.AllAppsMetaData)))).subscribe(T.l,ne=>{this.logger.error("Error while subscribing to refresh program assets",ne)})}setLastManualAddedApp(ne){this.logger.info("last app user added",ne?.localId),this.lastAppUserTriedAdding=ne}isAppAlreadyExisting(ne,Ge){let ge=!1;const Xe=Ge.map(dt=>dt.localId).sort((dt,xe)=>dt-xe),ot=ne.map(dt=>dt.localId).sort((dt,xe)=>dt-xe);if(ge=(0,r.isEqual)(Xe,ot),ge){const dt=this.lastAppUserTriedAdding&&ne.find(xe=>xe.localId===this.lastAppUserTriedAdding.localId);if(dt){this.logger.info("App already existing ",dt.displayName);const Re=this.translateService.instant(dt.isManuallyAdded&&!dt.isFingerprintDetected?"ops.program":dt.isCreativeApp?"ops.app":"ops.game");let Ue=this.translateService.instant("manage3dSettings.scan.isAlreadyPresent",{program:Re});Ue+=dt.isHidden?this.translateService.instant("manage3dSettings.scan.andIsHidden"):"",this.errorHandlerService.showToastMessage({text:Ue,translated:!0})}else this.logger.error("updated app not found")}return ge}deleteManualApplication(ne){return this.bridgeService.executeCommand(Y.MO,{appId:ne}).pipe((0,S.s)(1),(0,y.T)(ge=>{if(ge.success)return this.logger.info(`Local id ${ne} successfully deleted from manual db`),!0;throw this.logger.info(`Local id ${ne} not deleted from manual db`),new Error("Program not removed")}),(0,u.W)(ge=>{const Xe=`Error occured while removing ${ne} from local games db : ${ge}`;return this.logger.error(Xe,ge),(0,f.$)(Xe)}))}ngOnDestroy(){this.subGetLocalAddedApp&&this.subGetLocalAddedApp.unsubscribe(),this.subGetLocalRemovedApp&&this.subGetLocalRemovedApp.unsubscribe(),this.subGetLocalApps&&this.subGetLocalApps.unsubscribe()}}return(Me=be).\u0275fac=function(ne){return new(ne||Me)(j.KVO(fe.J6),j.KVO(te.I),j.KVO(ce.c),j.KVO(H.B),j.KVO(fe.NZ),j.KVO(Z.Vk),j.KVO(X.c$),j.KVO(fe.iH))},Me.\u0275prov=j.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"}),be})()},51917:(je,z,c)=>{"use strict";c.d(z,{Z:()=>u});var r=c(57258),n=c(43848),v=c(8619),h=c(72147),f=c(91384),A=c(65706),M=c(70521),T=c(58527),E=c(3816),y=c(44272),S=c(86667),l=c(96277),s=c(96306);let u=(()=>{var m;class I{constructor(O,Y,j,fe,te,ce){this.appListService=Y,this.manage3dSettingsUtilService=j,this.serviceWorkerService=fe,this.manage3dSettingsAPIService=te,this.errorHandlerService=ce,this.programs=[],this.programs$=new r.m(1),this.isLastAddedAppManual=!1,this.logger=O.getLogger("nvapp/FingerprintAndDRSProgramsService")}getAllPrograms(){return this.programs$.asObservable()}getIsLastAddedProgramManually(){return this.isLastAddedAppManual}initialize(){this.initServiceWorkerNotifications(),this.loadFPApps()}launchApp(O){return this.appListService.launchApp(O)}loadFPApps(){this.scannedAppsSub?.unsubscribe(),this.scannedAppsSub=this.appListService.getLocalUpdatedApps().subscribe(O=>{this.logger.info("Scanned Programs received",O.length),this.programs=O.slice(),this.isLastAddedAppManual=!1,this.programs$.next(this.programs)},O=>{this.logger.error("Error occured while loading local games and apps - ",O)})}initServiceWorkerNotifications(){this.logger.info("Initializing Service Worker Update Notifications");const Y=[M.th.staleWhileRevalidate?.appMetadata?.cacheName];this.serviceWorkerSubscription?.unsubscribe(),this.serviceWorkerSubscription=this.serviceWorkerService.swCacheUpdated.pipe((0,v.p)(j=>Y.includes(j.name)&&j.data)).subscribe(j=>{this.logger.info("Received updated data SW notification for Programs Metadata",j.data);const fe=j.data?.data?.apps?.items;this.updateProgramAssets(fe)})}updateProgramAssets(O){this.programs.forEach(Y=>{const j=O.find(fe=>fe.id===Y.id);j&&(Y.images=j.images,this.logger.info(`Updated assets for program ${Y.id}`,j.images))}),this.programs$.next(this.programs)}addProgramToLocalGamesCache(O){return this.manage3dSettingsUtilService.addManualApplication(O)}getDrsProfileName(O){return O?.drsProfileName?(0,n.of)(O.drsProfileName):O?.isManuallyAdded?this.manage3dSettingsAPIService.createNewProfile(O.installDirectory+"\\"+O.shortName,O.shortName).pipe((0,h.n)(Y=>this.appListService.getProfileNameFromExe(O))):this.appListService.getProfileNameFromExe(O)}removeManualAndDRSEntryFromDb(O,Y){this.appListService.deleteManualApplication(O).pipe((0,h.n)(()=>this.manage3dSettingsAPIService.deleteDrsProfile(Y)),(0,f.M)(j=>this.appListService.initialize()),(0,A.s)(1)).subscribe(()=>{this.logger.info(`${Y}  with localid ${O} removed successfully`)},j=>{this.logger.info(`${Y}  with localid ${O} not removed due to some error`),this.logger.error(j),this.errorHandlerService.showToastMessage({text:"common.somethingWentWrong",translated:!1}).subscribe()})}}return(m=I).\u0275fac=function(O){return new(O||m)(T.KVO(E.J6),T.KVO(y.n),T.KVO(S.f),T.KVO(M.lS),T.KVO(l.F),T.KVO(s.c))},m.\u0275prov=T.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),I})()},13102:(je,z,c)=>{"use strict";c.d(z,{I:()=>j});var r=c(80583),n=c(26513),v=c(57258),h=c(43848),f=c(59859),A=c(31315),M=c(91384),T=c(14714),E=c(83915),y=c(72147),S=c(65706),l=c(10174),s=c(125),u=c(6538),m=c(94645),I=c(58527),R=c(3816),O=c(86088),Y=c(43341);let j=(()=>{var fe;class te{constructor(H,Z,X,ue,Me){this.loggingService=H,this.bridgeService=Z,this.dbService=X,this.nvAppBridgeService=ue,this.appsSortAndFilterService=Me,this.localApps$=new r.B7,this.localAppAdded$=new r.B7,this.localAppRemoved$=new r.B7,this.scanStatus$=new r.B7,this.scanInitiated$=new n.t(null),this.localGamesApiError$=new v.m(1),this.logger=this.loggingService.getLogger("nvapp/ScanApisService"),this.globalStore=this.dbService.getGlobalStore(m.xI.GlobalStore),this.registerForScanAndGameNotifications()}initLocalApps(){return this.getLocalGamesAndApps().pipe((0,M.M)(H=>{this.logger.info("GetApplications success")}),(0,T.W)(H=>(this.logger.error("Error during - GetApplications",H),(0,h.of)(!1))))}getLocalApps(){return this.localApps$.asObservable()}getLocalAddedApp(){return this.localAppAdded$.asObservable()}getLocalRemovedApp(){return this.localAppRemoved$.asObservable()}getScanStatus(){return this.scanStatus$.asObservable()}getScanInitiated(){return this.scanInitiated$.asObservable()}initiateScan(H){return this.scanInitiated$.next(!0),this.registerForScanAndGameNotifications(),this.nvAppBridgeService.executeWithPluginStatusTelemetry(s._L,{type:H}).pipe((0,E.T)(X=>(this.logger.info("Game scan start success",X),X)),(0,T.W)(X=>(this.logger.error("Error during  - StartScan",X),this.scanStatus$.next(!1),this.localGamesApiError$.next(!0),(0,f.$)(X))))}sortApps(H,Z){return this.appsSortAndFilterService.sortApps(H,Z)}getLocalGamesAndApps(){return this.logger.info("Calling GetApplications API"),(0,A.zV)([this.globalStore.getItem(m.xI.HiddenApps),this.appsSortAndFilterService.getSortByCriteriaFromDb()]).pipe((0,y.n)(([H=[],Z])=>this.bridgeService.executeCommand(s._K).pipe((0,y.n)(X=>{this.logger.info("API returned apps count = ",X.applications.length),this.logger.info(X.applications);let ue=[];return X.applications.forEach(Me=>{let be={};(Me.regularOpsSupported&&0!==Me.cmsId&&Me.chromaAppId||Me.isManuallyAdded)&&(be=this.getLocalAppObject(be,Me,!0),H.some(Q=>Q.localId===Me.localId)&&(be.isHidden=!0),ue.push(be))}),ue=this.sortApps(ue),this.localApps$.next(ue),(0,h.of)(ue)}),(0,T.W)(X=>(this.logger.error("Some error occurred while GET Applications API",X),this.localGamesApiError$.next(!0),(0,f.$)(X))))),(0,T.W)(H=>(this.logger.error("Some error occurred while fetching hidden apps",H),(0,f.$)(H))),(0,S.s)(1),(0,l.u)(!0))}registerForScanAndGameNotifications(){this.registerGameScanProgressNotifications(),this.registerForAppChangeNotifications(),this.registerAppRemoveNotifications()}registerGameScanProgressNotifications(){this.subGameScanProgressNotifications&&this.subGameScanProgressNotifications.unsubscribe(),this.subGameScanProgressNotifications=this.bridgeService.executeCommand(s.eT).subscribe(H=>{this.logger.info("Game Scan Update:",H.status),"finished"===H.status?(this.scanInitiated$.next(!1),this.scanStatus$.next(!1)):this.scanStatus$.next(!0)},H=>(this.logger.error("Game scan progress notifications errored out",H),(0,f.$)(H)))}registerForAppChangeNotifications(){this.subAppAddNotifications&&this.subAppAddNotifications.unsubscribe(),this.subAppAddNotifications=this.bridgeService.executeCommand(s.DL).pipe((0,E.T)(H=>{this.logger.info("App change return output:",H.application);let Z={};return H.application.regularOpsSupported&&0!==H.application.cmsId&&H.application.chromaAppId&&(Z=this.getLocalAppObject(Z,H.application),this.localAppAdded$.next(Z)),Z})).subscribe(()=>{this.logger.info("App add success")},H=>(this.logger.error("App change notifications errored out",H),(0,f.$)(H)))}getLocalAppObject(H,Z,X=!1){return(H=Object.assign(H,Z)).optimizationStatusIcon=X?u.p7.Unknown:"",H}registerAppRemoveNotifications(){this.subAppRemoveNotifications&&this.subAppRemoveNotifications.unsubscribe(),this.subAppRemoveNotifications=this.bridgeService.executeCommand(s.xR).subscribe(H=>{this.logger.info("App remove return:",H.localId),this.localAppRemoved$.next(H.localId)},H=>(this.logger.error("App remove notifications errored out",H),(0,f.$)(H)))}localGamesApiErrorObservable(){return this.localGamesApiError$.asObservable()}}return(fe=te).\u0275fac=function(H){return new(H||fe)(I.KVO(R.J6),I.KVO(R.NZ),I.KVO(R.at),I.KVO(O.S),I.KVO(Y.H))},fe.\u0275prov=I.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"}),te})()},51728:(je,z,c)=>{"use strict";c.d(z,{o:()=>l});var r=c(26513),n=c(59859),v=c(36466),h=c(91384),f=c(72147),A=c(14714),M=c(75707),T=c(83915),E=c(125),y=c(58527),S=c(3816);let l=(()=>{var s;class u{constructor(I,R){this.loggingService=I,this.bridgeService=R,this.searchPaths$=new r.t([]),this.logger=I.getLogger("nvapp/ScanLocationService"),this.initialize()}getSearchPaths(){return this.searchPaths$.asObservable()}searchPathsAdd(){return this.bridgeService.executeCommand(E.fs,{includeFiles:!1}).pipe((0,h.M)(R=>{this.logger.info("selected folder is",R)}),(0,f.n)(R=>(R=R.replace(/\\$/,""),-1!==this.searchPaths$.getValue().indexOf(R)?(0,n.$)(`${R} path already added`):this.bridgeService.executeCommand(E.Lv,{path:R}))),(0,h.M)(R=>{this.logger.info("search path added successfully:",R)}),(0,A.W)(R=>(this.logger.error("search path add failure:",R),(0,n.$)(R))),(0,M.ZZ)(()=>this.getApplicationSearchPaths()))}searchPathsRemove(I){return this.bridgeService.executeCommand(E.uh,{path:I}).pipe((0,h.M)(R=>{this.logger.info("search path removed successfully:",I,R)}),(0,A.W)(R=>(this.logger.error("search path remove failure:",I,R),(0,n.$)(R))),(0,M.ZZ)(()=>this.getApplicationSearchPaths()))}initialize(){this.subSearchPaths&&this.subSearchPaths.unsubscribe(),this.subSearchPaths=this.getApplicationSearchPaths().subscribe(v.l,I=>{this.logger.error("Error while getting search paths",I)})}getApplicationSearchPaths(){return this.bridgeService.executeCommand(E.Bu,{}).pipe((0,T.T)(I=>(this.logger.info("application search paths fetched:",I.paths),I.paths)),(0,h.M)(I=>this.searchPaths$.next(I)),(0,A.W)(I=>(this.logger.error("error fetching application search paths",I),(0,n.$)(I))))}ngOnDestroy(){this.subSearchPaths&&this.subSearchPaths.unsubscribe()}}return(s=u).\u0275fac=function(I){return new(I||s)(y.KVO(S.J6),y.KVO(S.NZ))},s.\u0275prov=y.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),u})()},125:(je,z,c)=>{"use strict";c.d(z,{$q:()=>j,Bu:()=>y,DL:()=>M,Eb:()=>s,Gw:()=>R,Lv:()=>E,MO:()=>Y,NO:()=>te,PT:()=>O,R:()=>u,TW:()=>I,Ut:()=>n,_K:()=>h,_L:()=>f,dj:()=>fe,eT:()=>A,fs:()=>l,mA:()=>m,uh:()=>S,xR:()=>T});var r=c(74931),n=r.Or.Nvapp.Localgames.ApplicationScanType;const h=r.Ts.Nvapp.Localgames.GetApplications,f=r.Ts.Nvapp.Localgames.StartApplicationScan,A=r.Ts.Nvapp.Localgames.RegisterApplicationScanProgressNotifications,M=r.Ts.Nvapp.Localgames.RegisterApplicationChangedNotifications,T=r.Ts.Nvapp.Localgames.RegisterApplicationRemovedNotifications,E=r.Ts.Nvapp.Localgames.AddApplicationSearchPath,y=r.Ts.Nvapp.Localgames.GetApplicationSearchPaths,S=r.Ts.Nvapp.Localgames.RemoveApplicationSearchPath,l=r.Ts.Common.Applicationinfo.OpenFileDialog,s=r.Ts.Common.Applicationinfo.OpenDirectoryBrowser,u=r.Ts.Nvapp.Localgames.FindAndGetAppMetadata,m=r.Ts.Nvapp.Localgames.GetLauncherPID,I=r.Ts.Common.Applicationcontrol.AllowSetForegroundWindow,R=r.Ts.Nvapp.Localgames.LaunchApplication,O=r.Ts.Nvapp.Nvcplplugin.GetProfileNameFromExe,Y=r.Ts.Nvapp.Localgames.DeleteManualApplication,j=r.Ts.Nvapp.Nvcplplugin.DeleteProfile;var fe=function(ce){return ce[ce.FilterByAll=0]="FilterByAll",ce[ce.FilterByGames=1]="FilterByGames",ce[ce.FilterByApps=2]="FilterByApps",ce[ce.FilterByOptimized=3]="FilterByOptimized",ce[ce.FilterByUnOptimized=4]="FilterByUnOptimized",ce[ce.FilterByPhotoMode=5]="FilterByPhotoMode",ce[ce.FilterByGameFilter=6]="FilterByGameFilter",ce[ce.FilterByHidden=7]="FilterByHidden",ce}(fe||{}),te=function(ce){return ce[ce.SortByRecentLaunch=0]="SortByRecentLaunch",ce[ce.SortByNameAscending=1]="SortByNameAscending",ce[ce.SortByNameDescending=2]="SortByNameDescending",ce}(te||{})},44264:(je,z,c)=>{"use strict";c.d(z,{P:()=>T});var r=c(15172),n=c(94645),v=c(58527),h=c(26537),f=c(3816),A=c(65240),M=c(86667);let T=(()=>{var E;class y{constructor(l,s,u,m){this.dialog=l,this.loggingService=s,this.translateService=u,this.manage3dSettingsUtilService=m,this.isPowerManagementModeSetting=!1,this.logger=this.loggingService.getLogger("nvapp/SettingInfoModalService"),this.manage3dSettingsUtilService.fetchGpuArchitectureInfo()}open(l){const{nvidiaSettingName:s,inGameSettingData:u,errors:m}=l??{};u?this.logger.info("setting info modal open called with inGameSettingData",u):this.logger.info("setting info modal open called with settingName",s);const I=u??this.getNvidiaSettingsData(s,m);return this.dialogRef=this.openDialogWithData(I),this.dialogRef}openDialogWithData(l){return this.dialog.open(r.Z,{autoFocus:!1,hasBackdrop:!0,restoreFocus:!1,panelClass:["setting-info-modal","dialogPaddingRemove","common-dialog"],data:l})}updateDataWithTranslations(l){if(!l)return;const s=l.errors?.map(u=>this.getTranslation(u));return{title:this.getTranslation(l?.title),subtitle:this.getTranslation(l.subtitle),description:this.getTranslation(l.description),typicalUsageScenarios:this.getTranslation(l.typicalUsageScenarios),errors:s}}getNvidiaSettingsData(l,s){if(!l)return null;this.isPowerManagementModeSetting=l===n.Tt;const u=this.getTypicalUsageScenariosForPowerManagementMode(),m="manage3dSettings."+l+".";return this.updateDataWithTranslations({title:m+"name",subtitle:m+"subtitle",description:m+"description",typicalUsageScenarios:m+(u??"typicalUsageScenarios"),errors:s})}getTranslation(l){if(!l)return null;const s=this.translateService.instant(l);return s!==l&&""!==s?s:null}getTypicalUsageScenariosForPowerManagementMode(){if(!this.isPowerManagementModeSetting)return null;const l=this.manage3dSettingsUtilService.getGpuArchitectureInfo();return l?.isAmperePlus?"typicalUsageScenariosQuadroMode":l?.isQuadro||l?.isOptimus?l?.isTuringPlus?"typicalUsageScenariosTuring":"typicalUsageScenariosQuadroMode":null}}return(E=y).\u0275fac=function(l){return new(l||E)(v.KVO(h.bZ),v.KVO(f.J6),v.KVO(A.c$),v.KVO(M.f))},E.\u0275prov=v.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),y})()},81038:(je,z,c)=>{"use strict";c.d(z,{w:()=>l});var r=c(26513),n=c(43848),v=c(36466),h=c(94645),f=c(91384),A=c(72147),M=c(65706),T=c(14714),E=c(10174),y=c(58527),S=c(3816);let l=(()=>{var s;class u{constructor(I,R){this.loggingService=I,this.dbService=R,this.notificationStateUpdated$=new r.t(null),this.logger=this.loggingService.getLogger("nvapp/SidebarNotificationBadgeService"),this.globalStore=this.dbService.getGlobalStore(h.xI.GlobalStore),this.initialize()}getNotificationStateUpdatedListener(){return this.notificationStateUpdated$.asObservable()}canEnableDriverNotificationBadge(I){if(I){const R=I.driverType+"-"+I.version,O=!this.notificationBadgeState?.includes(R);return this.logger.info("driver notification badge enable state",O),O}return!1}canEnableRewardsNotificationBadge(I,R){if(R?.available?.length){let O="";I.isAuthenticated&&(O=I.userId+"-");const Y=!R?.available?.every(j=>this.notificationBadgeState?.includes(O+j?.campaign?.uuid));return this.logger.info("reward notification badge enable state",Y),Y}return!1}getDbState(){return this.globalStore.getItem(h.xI.NotificationBadgeState).pipe((0,f.M)(I=>{this.notificationBadgeState=I??[],this.logger.info("notification db state",this.notificationBadgeState)}))}setRewardsNotificationDbState(I,R){let O="",Y=!1;return I.isAuthenticated&&(O=I.userId+"-"),this.getDbState().pipe((0,A.n)(j=>{const fe=j??[];return R?.available?.forEach(te=>{const ce=O+te?.campaign?.uuid;fe.includes(ce)||(Y=!0,fe.push(ce))}),Y?this.setDbState(fe):(0,n.of)(!1)}))}setDriversNotificationDbState(I){const R=I.driverType+"-"+I.version;return this.getDbState().pipe((0,A.n)(O=>{const Y=O??[];return Y?.includes(R)?(0,n.of)(!1):(Y.push(R),this.setDbState(Y))}))}saveRewardsNotificationDbState(I,R){return R&&R?.available?.length?this.setRewardsNotificationDbState(I,R).pipe((0,M.s)(1),(0,T.W)(O=>(this.logger.error("failed to save rewards notification badge state in db",O),(0,n.of)(!1)))):(0,n.of)(!1)}saveDriversNotificationDbState(I){return I?this.setDriversNotificationDbState(I).pipe((0,M.s)(1),(0,T.W)(R=>(this.logger.error("failed to save drivers notification badge state in db",R),(0,n.of)(!1)))):(0,n.of)(!1)}initialize(){this.getDbState().pipe((0,M.s)(1)).subscribe(v.l,I=>{this.logger.info("error failed to fetch db state for notification badge",I)})}setDbState(I){return this.logger.info("updating the index db state for notification badge with state",I),this.globalStore.setItem(h.xI.NotificationBadgeState,I).pipe((0,f.M)(()=>{this.notificationBadgeState=I,this.notificationStateUpdated$.next()}),(0,E.u)(!0))}}return(s=u).\u0275fac=function(I){return new(I||s)(y.KVO(S.J6),y.KVO(S.at))},s.\u0275prov=y.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),u})()},43071:(je,z,c)=>{"use strict";c.d(z,{o:()=>s});var r=c(80583),n=c(26513),v=c(31315),h=c(26772),f=c(54803);const A=[{type:{id:f.D.Home,route:h.f.Home},text:f.D.Home,svgIconId:"home",fontTypeClass:"font-body3"},{type:{id:f.D.Drivers,route:h.f.Drivers},text:f.D.Drivers,svgIconId:"driver",fontTypeClass:"font-body3"},{type:{id:f.D.GraphicsSettings,route:h.f.Manage3dSettings},text:f.D.GraphicsSettings,svgIconId:"tune",fontTypeClass:"font-body3"},{type:{id:f.D.System,route:h.f.System},text:f.D.System,svgIconId:"desktop",fontTypeClass:"font-body3"},{type:{id:f.D.Rewards,route:h.f.Rewards},text:f.D.Rewards,svgIconId:"rewards",fontTypeClass:"font-body3"},{type:{id:f.D.AppSettings,route:h.f.Preferences},text:f.D.AppSettings,svgIconId:"settings",fontTypeClass:"font-body3"}];var M=c(58527),T=c(82102),E=c(7486),y=c(3816),S=c(10404),l=c(81038);let s=(()=>{var u;class m{constructor(R,O,Y,j,fe){this.driverUpdateService=R,this.rewardService=O,this.loggingService=Y,this.loginService=j,this.sidebarNotificationService=fe,this.selectedPage$=new r.B7,this.sidebarPageItems$=new n.t(A),this.logger=this.loggingService.getLogger("nvapp/SidebarService")}initialize(){(0,v.zV)([this.driverUpdateService.getAvailableDriverRecommendation(),this.rewardService.getRewards(),this.loginService.accountStatusChanged,this.sidebarNotificationService.getNotificationStateUpdatedListener()]).subscribe(([R,O,Y,j])=>{this.updateNotificationBadgeState(Y,O,R)},R=>this.logger.error("Error occurred while fetching drivers and available rewards info",R))}updateSidebarPageItems(R){const O=this.getSidebarPageItems();O.map(Y=>{const j=R.includes(Y?.type?.route);return j&&this.selectedPage$.next(Y),Y.fontTypeClass=j?"font-sub3":"font-body3",Y}),this.sidebarPageItems$.next(O)}getSidebarPageItemsObservable(){return this.sidebarPageItems$}getSelectedPage(){return this.selectedPage$.asObservable()}updateNotificationBadgeState(R,O,Y){const j=this.getSidebarPageItems();j.forEach(fe=>{fe.type.route===h.f.Drivers&&(fe.hasNotificationBadge=this.sidebarNotificationService.canEnableDriverNotificationBadge(Y)),fe.type.route===h.f.Rewards&&(fe.hasNotificationBadge=this.sidebarNotificationService.canEnableRewardsNotificationBadge(R,O))}),this.sidebarPageItems$.next(j)}getSidebarPageItems(){return this.sidebarPageItems$.getValue()}}return(u=m).\u0275fac=function(R){return new(R||u)(M.KVO(T.f),M.KVO(E.y),M.KVO(y.J6),M.KVO(S.HF),M.KVO(l.w))},u.\u0275prov=M.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),m})()},40848:(je,z,c)=>{"use strict";c.d(z,{CG:()=>Oe,Ch:()=>K,E6:()=>H,EB:()=>h,Fr:()=>M,Gb:()=>E,I0:()=>Q,IU:()=>Vt,KD:()=>te,L1:()=>T,Lh:()=>oe,Lm:()=>O,Lp:()=>ye,Mb:()=>Z,Nw:()=>xe,OC:()=>W,OE:()=>le,Os:()=>ot,R:()=>j,Rg:()=>r,SF:()=>ve,T8:()=>u,Uu:()=>S,V3:()=>Y,VD:()=>dt,V_:()=>X,XM:()=>f,Z$:()=>fe,_j:()=>Re,c4:()=>Ie,cF:()=>ne,d3:()=>R,dE:()=>Pe,dd:()=>Ge,fb:()=>y,fs:()=>I,g1:()=>pe,iI:()=>at,kJ:()=>Xe,kR:()=>Qe,m_:()=>De,px:()=>ee,re:()=>ge,sK:()=>s,tV:()=>A,un:()=>Le,vK:()=>zt,vr:()=>ce,vt:()=>l,x0:()=>Ue,zP:()=>m});var r=function(J){return J.Full="Full",J.None="None",J}(r||{}),n=function(J){return J.Functional="functional",J.Technical="technical",J.Behavioral="behavioral",J}(n||{}),v=function(J){return J.Anonymous="anonymous",J.DeviceOnly="deviceOnly",J.DevicePreferred="devicePreferred",J.UserPreferred="userPreferred",J.UserRequired="userRequired",J}(v||{}),h=function(J){return J.Other="Other",J.DriverReleaseHighlightContentExpanded="DriverReleaseHighlightContentExpanded",J.DriverDownloadStart="DriverDownloadStart",J.DriverDownloadCancel="DriverDownloadCancel",J.ExpressInstall="ExpressInstall",J.CustomOverInstall="CustomOverInstall",J.CustomCleanInstall="CustomCleanInstall",J.DriverReinstall="DriverReinstall",J.MarqueeScroll="MarqueeScroll",J.GRDArticleLink="GRDArticleLink",J.InstalledDriverLearnMore="InstalledDriverLearnMore",J.DriverSelectionLearnMore="DriverSelectionLearnMore",J.CheckForUpdate="CheckForUpdate",J.Login="Login",J.Logout="Logout",J.AccountManagementSso="AccountManagementSso",J.DriverTypeArticleLink="DriverTypeArticleLink",J.DriverViewDetails="DriverViewDetails",J.RedeemCouponCode="RedeemCouponCode",J.RedeemAvailableReward="RedeemAvailableReward",J.RedeemClaimableReward="RedeemClaimableReward",J.ViewDetailsRedeemed="ViewDetailsRedeemed",J.ViewDetailsAvailableReward="ViewDetailsAvailableReward",J.ViewDetailsClaimableReward="ViewDetailsClaimableReward",J.CouponCodeInfoDialog="CouponCodeInfoDialog",J.ContinueToRedeem="ContinueToRedeem",J.ContinueRedeemOnPlatform="ContinueRedeemOnPlatform",J.RedeemUtlityCard="RedeemUtlityCard",J.RedeemSideBar="RedeemSideBar",J.ScanNow="ScanNow",J.LibrarySeeAll="LibrarySeeAll",J.LibraryGraphicsSettings="LibraryGraphicsSettings",J.LibraryPlay="LibraryPlay",J.ViewSystemDetails="ViewSystemDetails",J.CopySystemDetails="CopySystemDetails",J.OpenNvCpl="OpenNvCpl",J.IdentifyDisplay="IdentifyDisplay",J.IdentifyAllDisplays="IdentifyAllDisplays",J.RestoreDefaultDisplay="RestoreDefaultDisplay",J.HDCPInfoDialog="HDCPInfoDialog",J.RestoreGlobalDisplaySettings="RestoreGlobalDisplaySettings",J.GSyncUpsellDialog="GSyncUpsellDialog",J.GSyncSettingInfo="GSyncSettingInfo",J.GSyncUpsellLink="GSyncUpsellLink",J}(h||{}),f=function(J){return J.LaunchUI="LaunchUI",J.DDDataConsentRequestShown="DDDataConsentRequestShown",J}(f||{}),A=function(J){return J.Drivers="Drivers",J.Home="Home",J.Other="Other",J}(A||{}),M=function(J){return J.GameReadyDriver="GameReadyDriver",J.StudioDriver="StudioDriver",J.Other="Other",J}(M||{}),T=function(J){return J.Success="Success",J.Failure="Failure",J}(T||{}),E=function(J){return J.LoginviaLoginHint="LoginviaLoginHint",J.UsualAuthFlow="UsualAuthFlow",J}(E||{}),y=function(J){return J.Success="Success",J.Failure="Failure",J.CancelledLoginCompleted="CancelledLoginCompleted",J}(y||{}),S=function(J){return J.Lcars="Lcars",J.Cms="Cms",J.Survey="Survey",J.Starfleet="Starfleet",J.Other="Other",J.Gfwsl="Gfwsl",J.KVStore="KVStore",J.GxTarget="GxTarget",J.ALS="ALS",J.AwsS3="AwsS3",J.PNS="PNS",J.GFService="GFService",J.Aem="Aem",J}(S||{}),l=function(J){return J.Html="Html",J.Json="Json",J.Image="Image",J.Video="Video",J.Marquee="Marquee",J.Icon="Icon",J.Unknown="Unknown",J}(l||{}),s=function(J){return J.NvAppClient="NvAppClient",J.Unknown="Unknown",J}(s||{}),u=function(J){return J.UNDEFINED="UNDEFINED",J.TRUE="TRUE",J.FALSE="FALSE",J}(u||{}),m=function(J){return J.DownloadAttemptExhausted="DownloadAttemptExhausted",J.InstallationAttemptExhausted="InstallationAttemptExhausted",J.Banner="Banner",J.UpdateAttemptExhausted="UpdateAttemptExhausted",J}(m||{}),I=function(J){return J.PopupShown="PopupShown",J.RelaunchNow="RelaunchNow",J.Redirect="Redirect",J}(I||{}),R=function(J){return J.Home="Home",J.Drivers="Drivers",J.Graphics="Graphics",J.Graphics_ProgramSettings="Graphics_ProgramSettings",J.Graphics_GlobalSettings="Graphics_GlobalSettings",J.Redeem="Redeem",J.Settings="Settings",J.Settings_Features="Settings_Features",J.Settings_Notifications="Settings_Notifications",J.Settings_About="Settings_About",J.System="System",J.System_Overview="System_Overview",J.System_Video="System_Video",J.System_Performance="System_Performance",J.System_Displays="System_Displays",J.Unknown="Unknown",J}(R||{}),O=function(J){return J.CouponCodeVerificationResponseTime="CouponCodeVerificationResponseTime",J.ClaimEntitlementResponseTime="ClaimEntitlementResponseTime",J.RedemptionHistoryFetchResponseTime="RedemptionHistoryFetchResponseTime",J.CouponCodeVRSCreate="CouponCodeVRSCreate",J.ClaimEntitlementVRSCreate="ClaimEntitlementVRSCreate",J.CouponCodeRedeemOnServer="CouponCodeRedeemOnServer",J.AvailableRewardsRedeemOnServer="AvailableRewardsRedeemOnServer",J.RedemptionHistoryFetchVrSStatus="RedemptionHistoryFetchVrSStatus",J.AvailableRewardsFetchVRSReward="AvailableRewardsFetchVRSReward",J}(O||{}),Y=function(J){return J.OPS="OPS",J.CustomOPS="CustomOPS",J.BOPS="BOPS",J.CustomBOPS="CustomBOPS",J}(Y||{}),j=function(J){return J.Applied="Applied",J.Reverted="Reverted",J.AutoApplied="AutoApplied",J}(j||{}),fe=function(J){return J.WhisperModeV2Toast="WhisperModeV2Toast",J.WhisperModeV1Toast="WhisperModeV1Toast",J.NISV2Toast="NISV2Toast",J.BatteryBoostV2Toast="BatteryBoostV2Toast",J.BatteryBoostV1Toast="BatteryBoostV1Toast",J.OptimizeAll="OptimizeAll",J.LaunchUI="LaunchUI",J.FocusUI="FocusUI",J}(fe||{}),te=function(J){return J.PerformanceMonitoring="PerformanceMonitoring",J.ManualOverclocking="ManualOverclocking",J.AutomaticOverclocking="AutomaticOverclocking",J.GameReadyDriverOverclocking="GameReadyDriverOverclocking",J}(te||{}),ce=function(J){return J.ConsentAlreadyPresent="ConsentAlreadyPresent",J.NotPresented="NotPresented",J.Agreed="Agreed",J.Cancelled="Cancelled",J.UacCancelled="UacCancelled",J}(ce||{}),H=function(J){return J.Default="Default",J.Custom="Custom",J.None="None",J}(H||{}),Z=function(J){return J.NA="NA",J.NoHdrDisplayConnected="NoHdrDisplayConnected",J.EnableHdrFromWindows="EnableHdrFromWindows",J}(Z||{}),X=function(J){return J.Unknown="Unknown",J.SuperResValueAuto="SuperResValueAuto",J.SuperResValue1="SuperResValue1",J.SuperResValue2="SuperResValue2",J.SuperResValue3="SuperResValue3",J.SuperResValue4="SuperResValue4",J}(X||{});const Me={Click:{name:"Click",gdprLevel:n.Functional,personalization:v.DevicePreferred},MarqueeElement:{name:"MarqueeElement",gdprLevel:n.Functional,personalization:v.DevicePreferred},PluginAPIStatus:{name:"PluginAPIStatus",gdprLevel:n.Technical,personalization:v.DevicePreferred},AutomaticEvent:{name:"AutomaticEvent",gdprLevel:n.Functional,personalization:v.DevicePreferred},ResourceLoadError:{name:"ResourceLoadError",gdprLevel:n.Functional,personalization:v.DevicePreferred},PageLoadPerformanceMetrics:{name:"PageLoadPerformanceMetrics",gdprLevel:n.Functional,personalization:v.DevicePreferred},HTTPCallResult:{name:"HTTPCallResult",gdprLevel:n.Functional,personalization:v.DevicePreferred},AppDiscoveryEvent:{name:"AppDiscoveryEvent",gdprLevel:n.Functional,personalization:v.DevicePreferred},SettingChange:{name:"SettingChange",gdprLevel:n.Functional,personalization:v.DevicePreferred},LoginEvent:{name:"LoginEvent",gdprLevel:n.Functional,personalization:v.DevicePreferred},CreateHTTPServerError:{name:"CreateHTTPServerError",gdprLevel:n.Functional,personalization:v.DevicePreferred},ClientSelfUpdate:{name:"ClientSelfUpdate",gdprLevel:n.Functional,personalization:v.DevicePreferred},OOTBProgress:{name:"OOTBProgress",gdprLevel:n.Functional,personalization:v.DevicePreferred},RewardsRedeemEvent:{name:"RewardsRedeemEvent",gdprLevel:n.Functional,personalization:v.DevicePreferred},OptimalPlayableSettings:{name:"OptimalPlayableSettings",gdprLevel:n.Functional,personalization:v.DevicePreferred},OPSClickEvent:{name:"OPSClickEvent",gdprLevel:n.Functional,personalization:v.DevicePreferred},SettingsState:{name:"SettingsState",gdprLevel:n.Functional,personalization:v.DevicePreferred},OPSAtGraphicsView:{name:"OPSAtGraphicsView",gdprLevel:n.Functional,personalization:v.DevicePreferred},NvidiaSettingsUseProfile:{name:"NvidiaSettingsUseProfile",gdprLevel:n.Functional,personalization:v.DevicePreferred},Apply3dSettingFailed:{name:"Apply3dSettingFailed",gdprLevel:n.Functional,personalization:v.DevicePreferred},NvidiaSettingsLoadError:{name:"NvidiaSettingsLoadError",gdprLevel:n.Functional,personalization:v.DevicePreferred},Restore3dSettings:{name:"Restore3dSettings",gdprLevel:n.Functional,personalization:v.DevicePreferred},GpuPerfTuningEvent:{name:"GpuPerfTuningEvent",gdprLevel:n.Technical,personalization:v.DevicePreferred},PageVisit:{name:"PageVisit",gdprLevel:n.Functional,personalization:v.DevicePreferred},HdrSoftError:{name:"HdrSoftError",gdprLevel:n.Technical,personalization:v.DevicePreferred},VsrSettingChange:{name:"VsrSettingChange",gdprLevel:n.Functional,personalization:v.DevicePreferred},HdrSettingChange:{name:"HdrSettingChange",gdprLevel:n.Functional,personalization:v.DevicePreferred},DisplayDriverTelemetryConsentRequestAction:{name:"DisplayDriverTelemetryConsentRequestAction",gdprLevel:n.Functional,personalization:v.DevicePreferred}};class be{constructor($e){this.parameters=$e,this.ts=(new Date).toISOString()}}class Q extends be{constructor($e){super($e),this.name=Me.Click.name,this.gdprLevel=Me.Click.gdprLevel,this.personalization=Me.Click.personalization}}class ne extends be{constructor($e){super($e),this.name=Me.MarqueeElement.name,this.gdprLevel=Me.MarqueeElement.gdprLevel,this.personalization=Me.MarqueeElement.personalization}}class Ge extends be{constructor($e){super($e),this.name=Me.PluginAPIStatus.name,this.gdprLevel=Me.PluginAPIStatus.gdprLevel,this.personalization=Me.PluginAPIStatus.personalization}}class ge extends be{constructor($e){super($e),this.name=Me.AutomaticEvent.name,this.gdprLevel=Me.AutomaticEvent.gdprLevel,this.personalization=Me.AutomaticEvent.personalization}}class Xe extends be{constructor($e){super($e),this.name=Me.ResourceLoadError.name,this.gdprLevel=Me.ResourceLoadError.gdprLevel,this.personalization=Me.ResourceLoadError.personalization}}class ot extends be{constructor($e){super($e),this.name=Me.PageLoadPerformanceMetrics.name,this.gdprLevel=Me.PageLoadPerformanceMetrics.gdprLevel,this.personalization=Me.PageLoadPerformanceMetrics.personalization}}class dt extends be{constructor($e){super($e),this.name=Me.HTTPCallResult.name,this.gdprLevel=Me.HTTPCallResult.gdprLevel,this.personalization=Me.HTTPCallResult.personalization}}class xe extends be{constructor($e){super($e),this.name=Me.AppDiscoveryEvent.name,this.gdprLevel=Me.AppDiscoveryEvent.gdprLevel,this.personalization=Me.AppDiscoveryEvent.personalization}}class Re extends be{constructor($e){super($e),this.name=Me.SettingChange.name,this.gdprLevel=Me.SettingChange.gdprLevel,this.personalization=Me.SettingChange.personalization}}class Ue extends be{constructor($e){super($e),this.name=Me.LoginEvent.name,this.gdprLevel=Me.LoginEvent.gdprLevel,this.personalization=Me.LoginEvent.personalization}}class ee extends be{constructor($e){super($e),this.name=Me.CreateHTTPServerError.name,this.gdprLevel=Me.CreateHTTPServerError.gdprLevel,this.personalization=Me.CreateHTTPServerError.personalization}}class W extends be{constructor($e){super($e),this.name=Me.ClientSelfUpdate.name,this.gdprLevel=Me.ClientSelfUpdate.gdprLevel,this.personalization=Me.ClientSelfUpdate.personalization}}class Pe extends be{constructor($e){super($e),this.name=Me.OOTBProgress.name,this.gdprLevel=Me.OOTBProgress.gdprLevel,this.personalization=Me.OOTBProgress.personalization}}class le extends be{constructor($e){super($e),this.name=Me.RewardsRedeemEvent.name,this.gdprLevel=Me.RewardsRedeemEvent.gdprLevel,this.personalization=Me.RewardsRedeemEvent.personalization}}class oe extends be{constructor($e){super($e),this.name=Me.OptimalPlayableSettings.name,this.gdprLevel=Me.OptimalPlayableSettings.gdprLevel,this.personalization=Me.OptimalPlayableSettings.personalization}}class Le extends be{constructor($e){super($e),this.name=Me.OPSClickEvent.name,this.gdprLevel=Me.OPSClickEvent.gdprLevel,this.personalization=Me.OPSClickEvent.personalization}}class Oe extends be{constructor($e){super($e),this.name=Me.SettingsState.name,this.gdprLevel=Me.SettingsState.gdprLevel,this.personalization=Me.SettingsState.personalization}}class ye extends be{constructor($e){super($e),this.name=Me.OPSAtGraphicsView.name,this.gdprLevel=Me.OPSAtGraphicsView.gdprLevel,this.personalization=Me.OPSAtGraphicsView.personalization}}class Ie extends be{constructor($e){super($e),this.name=Me.NvidiaSettingsUseProfile.name,this.gdprLevel=Me.NvidiaSettingsUseProfile.gdprLevel,this.personalization=Me.NvidiaSettingsUseProfile.personalization}}class at extends be{constructor($e){super($e),this.name=Me.Apply3dSettingFailed.name,this.gdprLevel=Me.Apply3dSettingFailed.gdprLevel,this.personalization=Me.Apply3dSettingFailed.personalization}}class K extends be{constructor($e){super($e),this.name=Me.NvidiaSettingsLoadError.name,this.gdprLevel=Me.NvidiaSettingsLoadError.gdprLevel,this.personalization=Me.NvidiaSettingsLoadError.personalization}}class ve extends be{constructor($e){super($e),this.name=Me.Restore3dSettings.name,this.gdprLevel=Me.Restore3dSettings.gdprLevel,this.personalization=Me.Restore3dSettings.personalization}}class De extends be{constructor($e){super($e),this.name=Me.GpuPerfTuningEvent.name,this.gdprLevel=Me.GpuPerfTuningEvent.gdprLevel,this.personalization=Me.GpuPerfTuningEvent.personalization}}class pe extends be{constructor($e){super($e),this.name=Me.PageVisit.name,this.gdprLevel=Me.PageVisit.gdprLevel,this.personalization=Me.PageVisit.personalization}}class Qe extends be{constructor($e){super($e),this.name=Me.HdrSoftError.name,this.gdprLevel=Me.HdrSoftError.gdprLevel,this.personalization=Me.HdrSoftError.personalization}}class zt extends be{constructor($e){super($e),this.name=Me.VsrSettingChange.name,this.gdprLevel=Me.VsrSettingChange.gdprLevel,this.personalization=Me.VsrSettingChange.personalization}}class Vt extends be{constructor($e){super($e),this.name=Me.HdrSettingChange.name,this.gdprLevel=Me.HdrSettingChange.gdprLevel,this.personalization=Me.HdrSettingChange.personalization}}},1242:(je,z,c)=>{"use strict";c.d(z,{AY:()=>v.A,CG:()=>n.CG,Ch:()=>n.Ch,E6:()=>n.E6,EB:()=>n.EB,GC:()=>r.GC,Gb:()=>n.Gb,Hb:()=>r.Hb,IH:()=>r.IH,IU:()=>n.IU,JZ:()=>r.JZ,KD:()=>n.KD,L1:()=>n.L1,L4:()=>r.L4,LG:()=>r.c4,Lh:()=>n.Lh,Lm:()=>n.Lm,Lp:()=>n.Lp,Mb:()=>n.Mb,NU:()=>r.NU,Nw:()=>n.Nw,OC:()=>n.OC,OO:()=>r.OO,R:()=>n.R,RS:()=>r.RS,SF:()=>n.SF,T8:()=>n.T8,Uf:()=>r.Uf,Uu:()=>n.Uu,V3:()=>n.V3,VD:()=>n.VD,V_:()=>n.V_,We:()=>r.We,XB:()=>r.XB,Z$:()=>n.Z$,aw:()=>r.aw,c4:()=>n.c4,d3:()=>n.d3,dE:()=>n.dE,eU:()=>r.Nw,f3:()=>r.f3,fb:()=>n.fb,fs:()=>n.fs,iI:()=>n.iI,iZ:()=>r.iZ,ih:()=>r.ih,k0:()=>r.k0,kR:()=>n.kR,mF:()=>r.mF,nx:()=>r.nx,px:()=>n.px,sK:()=>n.sK,tV:()=>n.tV,un:()=>n.un,vK:()=>n.vK,vr:()=>n.vr,vt:()=>n.vt,yP:()=>r.yP,zP:()=>n.zP,zg:()=>r.zg});var r=c(61913),n=c(40848),v=c(56347)},15294:(je,z,c)=>{"use strict";c.d(z,{V:()=>l});var r=c(85161),n=c(80583),v=c(31315),h=c(8619),f=c(83915),A=c(40848),M=c(26772),T=c(58527),E=c(56347),y=c(78812),S=c(3816);let l=(()=>{var s;class u{constructor(I,R,O,Y){this.router=I,this.telemetryUtilService=R,this.telemetryService=O,this.loggingService=Y,this.tabVisitedEvent=new n.B7,this.logger=this.loggingService.getLogger("nvapp/PageVisitTelemetryService")}initialize(){this.routeListenerForPageVisit(),this.setupListenerForTabChange()}setTabChangedForPageEventTelemetry(I){this.tabVisitedEvent.next(I)}setupListenerForTabChange(){this.tabVisitedEvent.asObservable().subscribe(I=>{this.telemetryUtilService.sendPageVisitEvent(I)})}routeListenerForPageVisit(){(0,v.zV)([this.router.events,this.telemetryService.getDeviceConsentObservable(),this.telemetryUtilService.getDeviceIDSetObs()]).pipe((0,h.p)(([I,R,O])=>!!R&&I instanceof r.OY&&I?.routerEvent instanceof r.wF),(0,f.T)(([I,R,O])=>I.routerEvent)).subscribe(I=>{this.logger.info("route info end",I);let R=I?.url?.substring(I.url?.indexOf("/")+1);const O=I?.urlAfterRedirects?.substring(I.urlAfterRedirects.indexOf("/")+1);R=R&&R!==M.f.ReleaseHighlights?R:O;const Y=this.getViewNameFromRouteUrl(R);this.telemetryUtilService.sendPageVisitEvent(Y)},I=>{this.logger.error("there is problem in subscribing to route events",I)})}getViewNameFromRouteUrl(I){switch(I){case M.f.Home:return A.d3.Home;case M.f.Drivers:return A.d3.Drivers;case M.f.Manage3dSettings:return A.d3.Graphics;case M.f.Rewards:return A.d3.Redeem;case M.f.Preferences:return A.d3.Settings;case M.f.System:return A.d3.System;default:return A.d3.Unknown}}}return(s=u).\u0275fac=function(I){return new(I||s)(T.KVO(r.Ix),T.KVO(E.A),T.KVO(y.H0),T.KVO(S.J6))},s.\u0275prov=T.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),u})()},56347:(je,z,c)=>{"use strict";c.d(z,{A:()=>te});var r=c(57258),n=c(26513),v=c(35146),h=c(93181),f=c(91384),A=c(83915),M=c(65706),T=c(3816),E=c(78812),y=c(26875),l=c(61913),s=c(40848),u=c(26772),m=c(2216),I=c(58527),R=c(47847),O=c(14709),Y=c(85161),j=c(73370),fe=c(3135);let te=(()=>{var ce;class H{constructor(X,ue,Me,be,Q,ne,Ge,ge,Xe){this.loggingService=X,this.appConfig=ue,this.appConfigParams=Me,this.telemetryService=be,this.systemInfoService=Q,this.networkStatusService=ne,this.activatedRoute=Ge,this.piplLocaleConfigService=ge,this.gfwslParamsService=Xe,this.deviceIdSetSubject=new r.m(1),this.sendAppLaunchTelemetrySubject=new n.t(!1),this.logger=this.loggingService.getLogger("nvapp-telemetry-util.service"),this.initialize().subscribe(()=>{this.logger.info("Successfully generated and stored device id"),this.deviceIdSetSubject.next(),this.deviceIdSetSubject.complete()},ot=>{this.logger.error("Error fetching deviceId: ",ot)})}initialize(){this.registerForPiplLocalizationConfigUpdateEvent();let X=this.appConfig.build.version;void 0!==this.appConfigParams.production&&!1===this.appConfigParams.production&&(X="dev-"+this.appConfig.build.version);const ue=this.systemInfoService.getSystemInfo([T.Lu.DeviceId,T.Lu.Platform,T.Lu.OSVersion,T.Lu.VendorName,T.Lu.SystemName,T.Lu.DeviceType,T.Lu.BrowserName,T.Lu.SubApiName,T.Lu.ErrorMessage,T.Lu.PluginName,T.Lu.ApiName,T.Lu.ApiStatus]).pipe((0,f.M)(Me=>{const{SubApiName:be,ErrorMessage:Q,PluginName:ne,ApiName:Ge,ApiStatus:ge}=Me;this.sendPluginApiStatusTelemetry({apiName:Ge,pluginName:ne,subApiName:be,errorMessage:Q,status:ge?.toString()})}));return(0,v.yU)(this.systemInfoService.getDeviceOSType(),ue).pipe((0,A.T)(([Me,be])=>this.initCommonData({deviceOS:Me,clientType:l.Vd.Native,clientVer:X,systemInfo:be,productName:this.appConfig.jsEvents.productName,productVersion:this.appConfig.build.version})))}initCommonData(X){const ue=X.systemInfo;return this.telemetryService.setEventsCommonData({clientVer:X.clientVer,deviceId:ue.DeviceId,platform:this.getCommonPlatformType(ue.Platform),clientType:X.clientType,clientVariant:this.getClientVariantType(this.appConfig.build.variant),deviceOS:X.deviceOS,deviceOSVersion:ue.OSVersion,deviceMake:ue.VendorName||T.Qe,deviceModel:ue.SystemName||T.Qe,deviceType:ue.DeviceType,browserType:ue.BrowserName,productName:X.productName||T.Qe,productVersion:X.clientVer||T.Qe},!1),!0}getDeviceIDSetObs(){return this.deviceIdSetSubject.asObservable()}getClientVariantType(X){switch(X){case"ibeta":return l.zg.IBeta;case"release":return l.zg.Release;default:return l.zg.Undefined}}sendPluginApiStatusTelemetry(X){if(!(0,y.isEmpty)(X)&&X.pluginName&&X.apiName){const ue=new s.dd({apiName:X.apiName||T.Qe,subApiName:X.subApiName||T.Qe,errorMessage:X.errorMessage||T.Qe,pluginName:X.pluginName||T.Qe,status:this.getApiStatus(X.status),params:X.params||T.Qe});this.telemetryService.push(ue)}else this.logger.info("Plugin API status info is undefined")}getApiStatus(X){return"Success"===X?s.L1.Success:s.L1.Failure}sendLaunchUiTelemetry(){const X=new s.re({eventInstance:s.XM.LaunchUI});this.telemetryService.push(X)}sendLaunchTimeTelemetry(){(0,h.p)([this.deviceIdSetSubject,this.telemetryService.getDeviceConsentObservable()]).pipe((0,M.s)(1)).subscribe(X=>{const ue=this.telemetryService.getLaunchUiEventSent();ue||(this.logger.info("Sending the launchTime telemetry"),this.sendLaunchUiTelemetry(),this.telemetryService.setLaunchUiEventSent(!0)),this.sendAppLaunchTelemetrySubject.next(!ue)},X=>this.logger.error("Error occurred while sending launchTime Telemetry ",X))}getCommonPlatformType(X){return"Windows"===X?"Win":X}getAppLaunchTelemetryObservable(){return this.sendAppLaunchTelemetrySubject.asObservable()}sendClickEvent(X,ue,Me=!1,be,Q){const ne=new s.I0({itemType:X,hierarchy:this.getHierarchy(Me,ue)||T.Qe,additionalData:be||T.Qe});this.telemetryService.push(ne,null,Q)}sendSettingChangeEvent(X,ue,Me,be=!1,Q){const ne=new s._j({settingType:X||T.Qe,settingValue:ue||T.Qe,hierarchy:this.getHierarchy(be,Me)||T.Qe,errorDetails:Q||T.Qe});this.telemetryService.push(ne)}sendResourceLoadErrorEvent(X,ue,Me,be,Q,ne=!1){if(this.networkStatusService.isOnline){const Ge=new s.kJ({type:X||s.vt.Unknown,url:ue||"",error:Me||"",actionLabel:be||"",hierarchy:this.getHierarchy(ne,Q)||""});this.telemetryService.push(Ge)}else this.logger.warn(`Skipped sending resource load event as user is offline for type ${X} url ${ue}`)}sendMarqueeElement(X,ue,Me,be,Q,ne,Ge,ge){const Xe=new s.cF({url:X||"",action:ue||"",section:Me||"",feature:be||s.tV.Other,position:null!==Q?Q:-1,driverVersion:Ge||E.oX.Undefined,driverType:this.getDriverType(ge),uniqueContent:ne||""});this.telemetryService.push(Xe)}getHierarchy(X,ue){return X?`${this.telemetryService.getScreen()}${ue?"/"+ue:""}`:ue}getCurrentUiPage(){const X=this.activatedRoute.snapshot._routerState.url.replace(u.f.Root,"").toUpperCase();return this.logger.info(" User Current Page:",X),X}getProductName(){return this.appConfig.jsEvents.productName}getProductVersion(){return this.appConfig.build.version}sendPageVisitEvent(X){const ue=new s.g1({viewName:X});this.telemetryService.push(ue)}getDriverType(X){switch(X){case m.uj.GameReadyDriver:return s.Fr.GameReadyDriver;case m.uj.CreatorReadyDriver:return s.Fr.StudioDriver;default:return s.Fr.Other}}registerForPiplLocalizationConfigUpdateEvent(){this.piplLocaleConfigService.piplLocalizationConfigUpdated$.subscribe(X=>{X.jsEvents&&""!==X.jsEvents.server?(this.appConfig.jsEvents.server=X.jsEvents.server,this.telemetryService.setServerConfig(this.appConfig.jsEvents.server)):this.logger.error("No jsEvent server url provided")})}getClientId(){return this.appConfig.jsEvents?.clientId}getConsentLevel(X){return!0===X?s.Rg.Full:s.Rg.None}sendRewardsRedeemEvent(X){const ue=this.gfwslParamsService.getParams({},["dIDa","lg"]);Array.isArray(ue.dIDa)&&(ue.dIDa=ue.dIDa.join(",")),X.gpuDeviceId=ue.dIDa||"",X.lcid=(Array.isArray(ue.lg)?ue.lg[0]:ue.lg)||"0";const Me=new s.OE(X);this.telemetryService.push(Me)}sendPageLoadPerfEvent(X,ue={viewDataLoadDuration:0,sectionNames:["","","","",""],sectionDataLoadDurations:[0,0,0,0,0],sectionTotalLoadDurations:[0,0,0,0,0],usedJsHeapSize:-1}){ue.usedJsHeapSize=ue.usedJsHeapSize??-1;const Me=new s.Os({viewName:X,viewDataLoadDuration:Math.round(ue.viewDataLoadDuration),sectionOneName:ue.sectionNames[0],sectionOneDataLoadDuration:Math.round(ue.sectionDataLoadDurations[0]),sectionOneTotalLoadDuration:Math.round(ue.sectionTotalLoadDurations[0]),sectionTwoName:ue.sectionNames[1],sectionTwoDataLoadDuration:Math.round(ue.sectionDataLoadDurations[1]),sectionTwoTotalLoadDuration:Math.round(ue.sectionTotalLoadDurations[1]),sectionThreeName:ue.sectionNames[2],sectionThreeDataLoadDuration:Math.round(ue.sectionDataLoadDurations[2]),sectionThreeTotalLoadDuration:Math.round(ue.sectionTotalLoadDurations[2]),sectionFourName:ue.sectionNames[3],sectionFourDataLoadDuration:Math.round(ue.sectionDataLoadDurations[3]),sectionFourTotalLoadDuration:Math.round(ue.sectionTotalLoadDurations[3]),sectionFiveName:ue.sectionNames[4],sectionFiveDataLoadDuration:Math.round(ue.sectionDataLoadDurations[4]),sectionFiveTotalLoadDuration:Math.round(ue.sectionTotalLoadDurations[4]),totalViewLoadDuration:Math.round(ue.sectionTotalLoadDurations[4]),usedJsHeapSize:Math.round(ue.usedJsHeapSize)});this.telemetryService.push(Me)}}return(ce=H).\u0275fac=function(X){return new(X||ce)(I.KVO(T.J6),I.KVO(R.Vk),I.KVO(O.aT),I.KVO(E.H0),I.KVO(T.zW),I.KVO(T.CF),I.KVO(Y.nX),I.KVO(j.X),I.KVO(fe.T))},ce.\u0275prov=I.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"}),H})()},61913:(je,z,c)=>{"use strict";c.d(z,{GC:()=>O,Hb:()=>H,IH:()=>M,JZ:()=>T,L4:()=>te,NU:()=>ce,Nw:()=>fe,OO:()=>u,RS:()=>Y,Uf:()=>f,Vd:()=>n,We:()=>v,XB:()=>l,aw:()=>I,c4:()=>m,f3:()=>A,iZ:()=>S,ih:()=>R,k0:()=>j,mF:()=>E,nx:()=>h,yP:()=>y,zg:()=>r});var r=function(Z){return Z.Release="Release",Z.IBeta="iBeta",Z.Undefined="undefined",Z.Dev="Dev",Z.GenerateException="GenerateException",Z}(r||{}),n=function(Z){return Z.Native="Native",Z}(n||{});const v={Other:"Other"};var h=function(Z){return Z.Get="Get",Z.Update="Update",Z.CancelDownload="CancelDownload",Z.Uninstall="Uninstall",Z.Launch="Launch",Z.TryInBrowser="TryInBrowser",Z.OpenInBrowser="OpenInBrowser",Z.OpenInBrowserUnsupported="OpenInBrowserUnsupported",Z.SeeWhy="SeeWhy",Z.LearnMore="LearnMore",Z}(h||{}),f=function(Z){return Z.Start="Start",Z.End="End",Z}(f||{}),A=function(Z){return Z.Apps="Apps",Z.Drivers="Drivers",Z.OOTB="OOTB",Z.Redeem="Redeem",Z.Home="Home",Z.Settings="Settings",Z.Graphics="Graphics",Z.System="System",Z}(A||{}),M=function(Z){return Z.Library="Library",Z.Marquee="Marquee",Z}(M||{}),T=function(Z){return Z.RecommendedDriver="RecommendedDriver",Z.InstalledDriver="InstalledDriver",Z.DriverInstallation="DriverInstallation",Z.ReleaseHighlight="ReleaseHighlight",Z}(T||{}),E=function(Z){return Z.Marquee="Marquee",Z}(E||{}),y=function(Z){return Z.Overview="Overview",Z}(y||{});const S="DriverType",l="NVIDIA Overlay";var u=function(Z){return Z.GetLayout="GetLayout",Z.GetDriverInformation="GetDriverInformation",Z.GetInstallationBillBoards="GetInstallationBillBoards",Z.TargetGfeAchievements="TargetGfeAchievements",Z.GetArticleInformation="GetArticleInformation",Z.GetGRDSupportedApps="GetGRDSupportedApps",Z.GetNSDSupportedApps="GetNSDSupportedApps",Z.GetSurvey="GetSurvey",Z.GetAppsAndGames="GetAppsAndGames",Z.TargetRewards="TargetRewards",Z.GetRewardsSession="GetRewardsSession",Z.VerifyRewardsSession="VerifyRewardsSession",Z.WebRewardsVrsStatus="WebRewardsVrsStatus",Z.WebVrsCreate="WebVrsCreate",Z.GetOpsCompatibility="GetOpsCompatibility",Z.GetShadowPlayReady="GetShadowPlayReady",Z.GetAnselReady="GetAnselReady",Z.GetFreeStyleReady="GetFreeStyleReady",Z.GetReleaseHighlights="GetReleaseHighlights",Z}(u||{}),m=function(Z){return Z.GetInstalledDriver="GetInstalledDriver",Z.GetRecommendedDriver="GetRecommendedDriver",Z.GetUsabilityStudy="GetUsabilityStudy",Z}(m||{}),I=function(Z){return Z.Skip="Skip",Z.Previous="Previous",Z.Next="Next",Z.Login="Login",Z.Done="Done",Z.Exit="Exit",Z}(I||{}),R=function(Z){return Z.System="System",Z.Notifications="Notifications",Z.About="About",Z}(R||{}),O=function(Z){return Z.Enabled="Enabled",Z.Disabled="Disabled",Z.OptIn="OptIn",Z.OptOut="OptOut",Z.PathAdded="PathAdded",Z.PathRemoved="PathRemoved",Z}(O||{}),Y=function(Z){return Z.GameAndPhotoModeFilter="GameAndPhotoModeFilter",Z.AutomaticDriverDownload="AutomaticDriverDownload",Z.AutomaticOptimizeNewGames="AutomaticOptimizeNewGames",Z.DriverUpdateNotification="DriverUpdateNotification",Z.RewardsNotification="AvailableRewardsNotification",Z.AddScanLocation="AddScanLocation",Z.RemoveScanLocation="RemoveScanLocation",Z.BetaBuild="EarlyBuilds",Z}(Y||{}),j=function(Z){return Z.ProfileSettings="ProfileSettings",Z.ProgramList="ProgramList",Z}(j||{}),fe=function(Z){return Z.Global="Global",Z}(fe||{}),te=function(Z){return Z.AutoOptimize="AutoOptimize",Z}(te||{}),ce=function(Z){return Z.ProgramSettings="ProgramSettings",Z.GlobalSettings="GlobalSettings",Z}(ce||{});const H="Auto Scroll"},15824:(je,z,c)=>{"use strict";c.d(z,{G:()=>E});var r=c(61142),n=c(51006),v=c(3816),h=c(95212),f=c(99049),A=c(79027),M=c(26993),T=c(58527);let E=(()=>{var y;class S{}return(y=S).\u0275fac=function(s){return new(s||y)},y.\u0275mod=T.$C({type:y}),y.\u0275inj=T.G2t({providers:[A.F,M.Tw],imports:[r.MD,h.bm,f.i,n.YF,(0,v.BU)(),v._N,r.MD,h.bm,f.i,n.YF]}),S})()},62668:(je,z,c)=>{"use strict";c.d(z,{n:()=>r});class r extends Error{constructor(v){super(`${v} api timed out`),this.name="PluginApiTimeoutError"}}},3321:(je,z,c)=>{"use strict";c.d(z,{AJ:()=>y,By:()=>R,CE:()=>dt,CF:()=>O,D0:()=>be,D_:()=>te,ED:()=>ce,EM:()=>m,FF:()=>xe,Fj:()=>A,Fl:()=>H,H5:()=>ot,KN:()=>Q,ZB:()=>Ge,b_:()=>ue,eQ:()=>Y,g:()=>u,h4:()=>ge,hN:()=>Me,hR:()=>l,it:()=>Z,kr:()=>fe,mv:()=>j,qN:()=>M,qX:()=>Xe,sJ:()=>X,u6:()=>ne,wM:()=>S,x8:()=>I,z$:()=>s});var r=c(30627);const A=new Map([[r.nX.NotAvailable,"common.notAvailable"],[r.nX.Off,"common.off"],[r.nX.FullscreenOnly,"system.display.gsyncGlobalEnableFullScreenAccordionSubTitle"],[r.nX.FullscreenAndWindowed,"system.display.gsyncGlobalEnableBothAccordionSubTitle"]]),M=new Map([[r.rc.GsyncUltimate,"system.display.gsyncUltimate"],[r.rc.GSyncCapable,"system.display.gSyncCapable"],[r.rc.GSyncCompatible,"system.display.gSyncCompatible"],[r.rc.VRR,"system.display.vrr"]]),y=new Map([[r.rc.GsyncUltimate,"assets/img/badge_G-Sync_ultimate.svg"],[r.rc.GSyncCapable,"assets/img/badge_G-Sync.svg"],[r.rc.GSyncCompatible,"assets/img/badge_G-Sync.svg"]]),S=new Map([[r.uM.CT_AUTO,{connectorType:"system.display.autoConnector",connectorSubType:"",connectorIcon:""}],[r.uM.CT_DVI,{connectorType:"system.display.dvi",connectorSubType:"system.display.pcDisplay",connectorIcon:"icon_connector_dvi"}],[r.uM.CT_DISPLAYPORT,{connectorType:"system.display.displayPort",connectorSubType:"system.display.pcDisplay",connectorIcon:"icon_connector_displayPort"}],[r.uM.CT_HDMI,{connectorType:"system.display.hdmi",connectorSubType:"system.display.hdtv",connectorIcon:"icon_connector_hdmi"}],[r.uM.CT_USBC,{connectorType:"system.display.usbc",connectorSubType:"system.display.virtualLink",connectorIcon:"icon_connector_usb"}],[r.uM.CT_VGA,{connectorType:"system.display.vga",connectorSubType:"system.display.pcDisplay",connectorIcon:"icon_connector_vga"}]]),l=new Map([[r.bq.Internal,{connectorType:"system.display.lvds",connectorIcon:"icon_connector_laptop_display"}]]),s="system.display.hdcp",u=20,m=new Map([["isScalingFactor12000",1.2],["isScalingFactor15000",1.5],["isScalingFactor17777",1.78],["isScalingFactor20000",2],["isScalingFactor22500",2.25],["isScalingFactor30000",3],["isScalingFactor40000",4],["isScalingFactor60000",6],["isScalingFactor90000",9],["isScalingFactor5000",.5],["isScalingFactor6667",.67],["isScalingFactor7500",.77],["isScalingFactor7693",.77],["isScalingFactor8500",.85],["isScalingFactor5883",.59]]),I={default:"system.display.resolutions.sdFactor",dlDSRFactor:"system.display.resolutions.sdDLFactor",scalingFactor:"system.display.resolutions.sdScalingFactor"},R={default:"system.display.resolutions.hd3dFactor",dlDSRFactor:"system.display.resolutions.hd3dDLFactor",scalingFactor:"system.display.resolutions.hd3dScalingFactor"},O={default:"system.display.resolutions.hdFactor",dlDSRFactor:"system.display.resolutions.hdDLFactor",scalingFactor:"system.display.resolutions.hdScalingFactor"},Y={default:"system.display.resolutions.nonhd3dFactor",dlDSRFactor:"system.display.resolutions.nonhd3dDLFactor",scalingFactor:"system.display.resolutions.nonhd3dScalingFactor"},j=1,fe=new Map([[r.MY.Custom,"system.display.resolutions.customGroup"],[r.MY.HD_3D,"system.display.resolutions.hd3dGroup"],[r.MY.SD,"system.display.resolutions.sdGroup"],[r.MY.HD_SD,"system.display.resolutions.hdsdGroup"],[r.MY.Surround,"system.display.resolutions.surround"],[r.MY.Panoramic,"system.display.resolutions.panoramic"],[r.MY.Standard,"system.display.resolutions.standard"],[r.MY.SuperResolution,"system.display.resolutions.superResolution"],[r.MY.Scalingresolution,"system.display.resolutions.scalingResolution"]]),te=new Map([[r.bq.Crt,"system.display.crt"],[r.bq.Dvi,"system.display.dvi"],[r.bq.Internal,"system.display.lvds"],[r.bq.Tv,"system.display.tv"]]),ce="system.display.deviceType.generic",H=new Map([[r.V7.bit_8,"system.display.desktopColorDepthSDR24"],[r.V7.bit_10,"system.display.desktopColorDepthSDR30"],[r.V7.bit_16,"system.display.desktopColorDepthSDR64"],[r.V7.bit_16_WCG,"system.display.desktopColorDepthWCG64"],[r.V7.bit_16_HDR,"system.display.desktopColorDepthHDR64"]]),Z="system.display.highestDesktopColorDepth",X=new Map([[r.Yz.ED480p,"system.display.hdname.480p"],[r.Yz.SD480i,"system.display.hdname.480i"],[r.Yz.ED576p,"system.display.hdname.576p"],[r.Yz.SD576i,"system.display.hdname.576i"],[r.Yz.HD720p,"system.display.hdname.720p"],[r.Yz.HD1080i,"system.display.hdname.1080i"],[r.Yz.HD1080p,"system.display.hdname.1080p"],[r.Yz.HD720p50,"system.display.hdname.720p"],[r.Yz.HD1080i50,"system.display.hdname.1080i"],[r.Yz.HD1080p24,"system.display.hdname.1080p"],[r.Yz.HD1080p50,"system.display.hdname.1080p"],[r.Yz.UHD4Kp30,"system.display.hdname.4k"],[r.Yz.UHD4Kp24Smpte,"system.display.hdname.4k"],[r.Yz.UHD8Kp307680,"system.display.hdname.8k"]]),ue=new Map([[r.Yz.HD720p50,r.Yz.HD720p],[r.Yz.HD1080i50,r.Yz.HD1080i],[r.Yz.HD1080p24,r.Yz.HD1080p],[r.Yz.HD1080p50,r.Yz.HD1080p],[r.Yz.UHD4Kp25,r.Yz.UHD4Kp30],[r.Yz.UHD4Kp24,r.Yz.UHD4Kp30],[r.Yz.UHD4Kp24,r.Yz.UHD4Kp30],[r.Yz.UHD4Kp303840,r.Yz.UHD4Kp30],[r.Yz.UHD4Kp253840,r.Yz.UHD4Kp30],[r.Yz.UHD4Kp243840,r.Yz.UHD4Kp30],[r.Yz.UHD4Kp503840,r.Yz.UHD4Kp30],[r.Yz.UHD4Kp603840,r.Yz.UHD4Kp30],[r.Yz.UHD4Kp304096,r.Yz.UHD4Kp30],[r.Yz.UHD4Kp254096,r.Yz.UHD4Kp30],[r.Yz.UHD4Kp244096,r.Yz.UHD4Kp30],[r.Yz.UHD4Kp504096,r.Yz.UHD4Kp30],[r.Yz.UHD4Kp604096,r.Yz.UHD4Kp30],[r.Yz.UHD8Kp247680,r.Yz.UHD8Kp307680],[r.Yz.UHD8Kp257680,r.Yz.UHD8Kp307680],[r.Yz.UHD8Kp307680,r.Yz.UHD8Kp307680],[r.Yz.UHD8Kp487680,r.Yz.UHD8Kp307680],[r.Yz.UHD8Kp507680,r.Yz.UHD8Kp307680],[r.Yz.UHD8Kp607680,r.Yz.UHD8Kp307680],[r.Yz.UHD8Kp1007680,r.Yz.UHD8Kp307680],[r.Yz.UHD8Kp1207680,r.Yz.UHD8Kp307680]]),Me={isAbortKsvSignature:"system.display.hdcpStatusAbortKsvSignatureError",isAbortKsvLength:"system.display.hdcpStatusAbortKsvLengthError",isAbortTopologyError:"system.display.hdcpStatusAbortTopologyError",isAbortRepeaterNoReady:"system.display.hdcpStatusAbortRepeaterNotReadyError",isAbortHopLimitExceeded:"system.display.hdcpStatusAbortHopLimitExceedError",isAbortDeviceRevoked:"system.display.hdcpStatusAbortDeviceRevokedError",isAbortDeviceInvalid:"system.display.hdcpStatusAbortDeviceInvalidError"},be=new Map([[r.H_.Rotation0,{rotationLabel:"system.display.rotation.landscape",rotationIcon:"icon_landscape"}],[r.H_.Rotation90,{rotationLabel:"system.display.rotation.portrait",rotationIcon:"icon_portrait"}],[r.H_.Rotation180,{rotationLabel:"system.display.rotation.landscapeFlipped",rotationIcon:"icon_landscapeFlipped"}],[r.H_.Rotation270,{rotationLabel:"system.display.rotation.portraitFlipped",rotationIcon:"icon_portraitFlipped"}]]),Q=new Map([[r.rc.GsyncUltimate,"system.display.gSyncPanelSummaryCollapseStateForGsync"],[r.rc.GSyncCapable,"system.display.gSyncPanelSummaryCollapseStateForGsync"],[r.rc.GSyncCompatible,"system.display.gsyncPanelSummaryCollapseStateForVRR"],[r.rc.VRR,"system.display.gsyncPanelSummaryCollapseStateForVRR"]]),ne=1e3,Ge=100,ge="DisplayResolution",Xe="DisplayRefreshRate",ot="DisplayRotation",dt="GlobalGSync",xe="DisplayGSync"},30627:(je,z,c)=>{"use strict";c.d(z,{$Z:()=>h,Dr:()=>Z,H_:()=>E,MY:()=>Q,NU:()=>te,OH:()=>u,QE:()=>I,TC:()=>X,Tc:()=>O,V7:()=>M,WQ:()=>m,Yz:()=>f,Zc:()=>fe,Zd:()=>Y,Zt:()=>Me,bq:()=>s,eE:()=>ue,iI:()=>ce,mE:()=>j,nX:()=>R,oD:()=>l,rc:()=>n,uM:()=>A,xq:()=>S,yy:()=>v,zd:()=>y});var r=c(74931),n=r.Or.Nvapp.Nvcpldisplayplugin.GSyncCapabilities;const v=r.Ts.Nvapp.Nvcpldisplayplugin.GetGpuAndDisplayInformation,h=r.Ts.Nvapp.Nvcpldisplayplugin.RegisterDisplayChangeNotification;var f=r.Or.Nvapp.Nvcpldisplayplugin.TvFormat,A=r.Or.Nvapp.Nvcpldisplayplugin.ConnectorType,M=r.Or.Nvapp.Nvcpldisplayplugin.DesktopColorDepth,E=r.Or.Nvapp.Nvcpldisplayplugin.RotationType;const y=r.Ts.Nvapp.Nvcpldisplayplugin.SetResolution,S=r.Ts.Nvapp.Nvcpldisplayplugin.SetRotation,l=r.Ts.Nvapp.Nvcpldisplayplugin.RevertState;var s=r.Or.Nvapp.Nvcpldisplayplugin.DeviceType;const u=r.Ts.Nvapp.Nvcpldisplayplugin.IdentifyDisplays,m=r.Ts.Nvapp.Nvcpldisplayplugin.RestoreDisplaySettings;var I=r.Or.Nvapp.Nvcpldisplayplugin.LogicalDisplayType,R=r.Or.Nvapp.Nvcpldisplayplugin.GlobalGsyncState;const O=r.Ts.Nvapp.Nvcpldisplayplugin.GetGlobalGsyncState,Y=r.Ts.Nvapp.Nvcpldisplayplugin.SetGlobalGsyncState,j=r.Ts.Nvapp.Nvcpldisplayplugin.SetDisplayGsyncState,fe=r.Ts.Nvapp.Nvcpldisplayplugin.RestoreGlobalGsyncState,te=r.Ts.Nvapp.Nvcpldisplayplugin.GetDisplayResolutionList;var ce=function(ne){return ne.Automatic="Automatic (Discrete Graphics)",ne.Optimus="Optimus",ne.NvidiaOnly="Nvidia GPU only",ne}(ce||{}),Z=function(ne){return ne.AspectRatio="Aspect Ratio",ne.Fullscreen="Full-screen",ne.NoScaling="No Scaling",ne.IntegerScaling="Integer Scaling",ne}(Z||{}),X=function(ne){return ne.Display="Display",ne.Gpu="GPU",ne}(X||{}),ue=function(ne){return ne.Default="Default",ne.Nvidia="NVIDIA",ne}(ue||{}),Me=function(ne){return ne.All="All channels",ne.Red="Red",ne.Green="Green",ne.Blue="Blue",ne}(Me||{}),Q=function(ne){return ne[ne.Custom=1]="Custom",ne[ne.HD_3D=2]="HD_3D",ne[ne.SD=3]="SD",ne[ne.HD_SD=4]="HD_SD",ne[ne.Surround=5]="Surround",ne[ne.Panoramic=6]="Panoramic",ne[ne.Standard=7]="Standard",ne[ne.SuperResolution=8]="SuperResolution",ne[ne.Scalingresolution=9]="Scalingresolution",ne}(Q||{})},65224:(je,z,c)=>{"use strict";c.d(z,{R:()=>Oe});var r=c(57258),n=c(80583),v=c(36466),h=c(59859),f=c(43848),A=c(15652),M=c(12532),T=c(65706),E=c(83915),y=c(91384),S=c(14714),l=c(62931),s=c(72147),u=c(43615),m=c(75707),I=c(10174),R=c(30627),O=c(58527),Y=c(892),j=c(48765),fe=c(3321),te=c(3816),ce=c(65240),H=c(60990),Z=c(40514),X=c(97888),ue=c(47973),Me=c(92626),be=c(61142);let Q=(()=>{var ye;class Ie{constructor(K,ve){this.translateService=ve,this.disableControls=!1,this.loadingSpinner=!1,this.revertSubString="",this.revertTimeInSeconds=fe.g,this.applySettings=new O.bkB,this.revertSettings=new O.bkB,this.logger=K.getLogger("nvapp/ApplyRevertComponent"),this.revertSubString=this.translateService.instant("system.applyRevertDialog.revertTimerWarning",{time:this.revertTimeInSeconds})}updateRemainingRevertTime(){this.revertTimeIntervalSub?.unsubscribe(),this.revertTimeIntervalSub=(0,Y.Y)(1e3).pipe((0,j.v)(()=>this.revertTimeInSeconds>0)).subscribe(()=>{this.revertSubString=this.translateService.instant("system.applyRevertDialog.revertTimerWarning",{time:this.revertTimeInSeconds}),this.revertTimeInSeconds--},K=>this.logger.error("Error in updateRemainingRevertTime",K),()=>{this.revertSetting()})}ngOnInit(){this.updateRemainingRevertTime()}onApplyClicked(K){this.applySettings.emit(K)}onRevertClicked(K){this.cleanupTimer(),this.loadingSpinner=!0,this.revertSetting(K)}ngOnDestroy(){this.cleanupTimer()}revertSetting(K){this.disableControls=!0,this.revertSubString=this.translateService.instant("system.applyRevertDialog.reverting"),this.revertSettings.emit(K)}cleanupTimer(){this.revertTimeIntervalSub&&this.revertTimeIntervalSub.unsubscribe()}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(O.rXU(te.J6),O.rXU(ce.c$))},ye.\u0275cmp=O.VBU({type:ye,selectors:[["nv-app-apply-revert"]],outputs:{applySettings:"applySettings",revertSettings:"revertSettings"},decls:18,vars:20,consts:[[1,"apply-revert-dialog-main-container"],[1,"apply-revert-dialog-title-container","font-header6","font-color-primary"],[1,"apply-revert-dialog-data-container"],[1,"font-body2","apply-revert-descritpion",3,"innerHTML"],[1,"font-body2"],["align","end"],["mat-button","","nvAppTextButtonSpinner","",1,"font-button2","revert-button",3,"click","showSpinner","buttonText","disabled"],["mat-button","","mat-raised-button","",1,"font-button2","mat-accent",3,"click","disabled"]],template:function(K,ve){1&K&&(O.j41(0,"div",0)(1,"div",1),O.EFF(2),O.nI1(3,"translate"),O.k0s(),O.j41(4,"div",2),O.nrm(5,"div",3),O.nI1(6,"translate"),O.j41(7,"div",4),O.EFF(8),O.k0s()(),O.j41(9,"div",5)(10,"button",6),O.nI1(11,"translate"),O.nI1(12,"uppercase"),O.bIt("click",function(pe){return ve.onRevertClicked(pe)}),O.k0s(),O.j41(13,"button",7),O.bIt("click",function(pe){return ve.onApplyClicked(pe)}),O.j41(14,"span"),O.EFF(15),O.nI1(16,"translate"),O.nI1(17,"uppercase"),O.k0s()()()()),2&K&&(O.R7$(2),O.SpI(" ",O.bMT(3,8,"system.applyRevertDialog.title")," "),O.R7$(3),O.Y8G("innerHTML",O.bMT(6,10,"system.applyRevertDialog.description"),O.npT),O.R7$(3),O.SpI(" ",ve.revertSubString," "),O.R7$(2),O.Y8G("showSpinner",ve.loadingSpinner)("buttonText",O.bMT(12,14,O.bMT(11,12,"common.no")))("disabled",ve.disableControls),O.R7$(3),O.Y8G("disabled",ve.disableControls),O.R7$(2),O.JRh(O.bMT(17,18,O.bMT(16,16,"common.yes"))))},dependencies:[H.r,Z.e,X.Aq,ue.iV,Me.u,be.Pc,ce.D9],styles:[".apply-revert-dialog-main-container[_ngcontent-%COMP%]{width:528px;max-width:528px;max-height:87vh;padding:20px 8px 8px 24px;overflow:hidden}.apply-revert-dialog-main-container[_ngcontent-%COMP%]   .apply-revert-dialog-title-container[_ngcontent-%COMP%], .apply-revert-dialog-main-container[_ngcontent-%COMP%]   .apply-revert-dialog-data-container[_ngcontent-%COMP%], .apply-revert-dialog-main-container[_ngcontent-%COMP%]   .apply-revert-descritpion[_ngcontent-%COMP%]{margin-bottom:16px}.apply-revert-dialog-main-container[_ngcontent-%COMP%]   .revert-button[_ngcontent-%COMP%]{margin-right:8px}"]}),Ie})();var ne=c(1242),Ge=c(70279),ge=c(26537);let Xe=(()=>{var ye;class Ie{constructor(K){this.disableControls=!1,this.loadingSpinner=!1,this.bodyText="",this.restoreSettings=new O.bkB,this.logger=K.getLogger("nvapp/RestoreDefaultComponent")}onRestoreClicked(K){this.disableControls=!0,this.loadingSpinner=!0,this.restoreSettings.emit(K)}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(O.rXU(te.J6))},ye.\u0275cmp=O.VBU({type:ye,selectors:[["nv-app-restore-default"]],inputs:{bodyText:"bodyText"},outputs:{restoreSettings:"restoreSettings"},decls:16,vars:19,consts:[[1,"restore-default-dialog-main-container"],[1,"restore-default-dialog-title-container","font-header6","font-color-primary"],[1,"restore-default-dialog-data-container"],[1,"font-body2","restore-default-descritpion",3,"innerHTML"],["align","end"],["mat-button","","mat-dialog-close","",1,"font-button2",3,"disabled"],["mat-button","","nvAppTextButtonSpinner","",1,"font-button2","restore-button",3,"click","showSpinner","buttonText","disabled"]],template:function(K,ve){1&K&&(O.j41(0,"div",0)(1,"div",1),O.EFF(2),O.nI1(3,"translate"),O.k0s(),O.j41(4,"div",2),O.nrm(5,"div",3),O.nI1(6,"translate"),O.k0s(),O.j41(7,"div",4)(8,"button",5)(9,"span"),O.EFF(10),O.nI1(11,"translate"),O.nI1(12,"uppercase"),O.k0s()(),O.j41(13,"button",6),O.nI1(14,"translate"),O.nI1(15,"uppercase"),O.bIt("click",function(pe){return ve.onRestoreClicked(pe)}),O.k0s()()()),2&K&&(O.R7$(2),O.SpI(" ",O.bMT(3,7,"system.display.restoreDefaultsDlgTitle")," "),O.R7$(3),O.Y8G("innerHTML",O.bMT(6,9,ve.bodyText),O.npT),O.R7$(3),O.Y8G("disabled",ve.disableControls),O.R7$(2),O.JRh(O.bMT(12,13,O.bMT(11,11,"common.cancel"))),O.R7$(3),O.Y8G("showSpinner",ve.loadingSpinner)("buttonText",O.bMT(15,17,O.bMT(14,15,"common.ok")))("disabled",ve.disableControls))},dependencies:[H.r,Z.e,ue.iV,ge.tx,Me.u,be.Pc,ce.D9],styles:[".restore-default-dialog-main-container[_ngcontent-%COMP%]{width:528px;max-width:528px;max-height:87vh;padding:20px 8px 8px 24px;overflow:hidden}.restore-default-dialog-main-container[_ngcontent-%COMP%]   .restore-default-dialog-title-container[_ngcontent-%COMP%], .restore-default-dialog-main-container[_ngcontent-%COMP%]   .restore-default-dialog-data-container[_ngcontent-%COMP%], .restore-default-dialog-main-container[_ngcontent-%COMP%]   .restore-default-descritpion[_ngcontent-%COMP%]{margin-bottom:16px}.restore-default-dialog-main-container[_ngcontent-%COMP%]   .restore-button[_ngcontent-%COMP%]{margin-left:8px}"]}),Ie})();var ot=c(99066);class dt{constructor(Ie,at,K,ve,De,pe,Qe,zt){this.loggingService=ve,this.nvAppBridgeService=De,this.nvAppTelemetryUtilService=pe,this.bridgeService=Qe,this.overlayLoadingSpinnerService=zt,this.logger=this.loggingService.getLogger("DisplayItem"),this.currentResolution=Ie.currentResolution,this.name=Ie.name,this.index=Ie.index,this.identifier=Ie.identifier,this.desktopColorDepth=Ie.desktopColorDepth,this.outPutColorFormat=Ie.outPutColorFormat,this.hdcpState=Ie.hdcpState,this.gsyncState=Ie.gsyncState,this.connectorType=Ie.connectorType,this.deviceType=Ie.deviceType,this.rotationState=Ie.rotationState,this.isHideModeEnabled=Ie?.isHideModeEnabled,this.isClonePrimary=Ie.isClonePrimary,this.logicalDisplayType=Ie.logicalDisplayType,this.nvDisplayId=Ie.nvDisplayId,this.cloneGroupId=Ie.cloneGroupId,this.gpuIndex=at,this.isSelected=K,this.resolutionListEventStream=new ot.T(()=>this.getResolutionListForDisplay(),!0)}get resolutionList$(){return this.resolutionListEventStream.get$()}refreshResolutionList(){this.resolutionListEventStream.refresh()}getResolutionListForDisplay(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(R.NU,{gpuIndex:this.gpuIndex,displayIndex:this.index},{},!0,!1).pipe((0,T.s)(1),(0,E.T)(Ie=>{this.logger.info("GetResolutionListForDisplay",Ie?.resolutions);const at=Ie?.resolutions;return at?.forEach(K=>{K.tvFormat=fe.b_.get(K.tvFormat)||K.tvFormat}),at}),(0,S.W)(Ie=>(this.logger.error(`Failed to fetch resolution list: ${Ie}`),(0,h.$)(Ie))))}getSetResolutionParamsForTelemetry(Ie,at){const K={...Ie??{},resolution:{...Ie?.resolution??{},flags:{...Ie?.resolution?.flags??{}}},...at??{}},ve=Ie?.resolution?.flags;if(ve){const De={};for(const pe in ve)Ie.resolution.flags[pe]&&(De[pe]=ve[pe]);K.resolution.flags=De}return JSON.stringify(K)}applyResolution(Ie,at,K){this.overlayLoadingSpinnerService.triggerOverlaySpinner(!0);const ve={apiName:R.zd.method,pluginName:R.zd.module,status:ne.L1.Success,params:this.getSetResolutionParamsForTelemetry(Ie,K),errorMessage:"",subApiName:""},De=performance.now();return this.bridgeService.executeCommand(R.zd,Ie).pipe((0,y.M)(pe=>{const Qe=performance.now();this.logger.info("SetResolution API took (ms): ",Qe-De),this.logger.info("SetResolution is successful",pe),this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.nvAppTelemetryUtilService.sendPluginApiStatusTelemetry(ve),this.nvAppTelemetryUtilService.sendSettingChangeEvent(at,`${Ie.resolution.horizontal} x ${Ie.resolution.vertical} x ${Ie.resolution.refreshRate}`,`${ne.d3.System_Displays}/${K.name}`,!0)}),(0,S.W)(pe=>(this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.logger.error("Error in SetResolution",pe),this.nvAppTelemetryUtilService.sendPluginApiStatusTelemetry({...ve,status:ne.L1.Failure,errorMessage:pe&&pe.message?pe.message:""}),this.nvAppTelemetryUtilService.sendSettingChangeEvent(at,`${Ie.resolution.horizontal} x ${Ie.resolution.vertical} x ${Ie.resolution.refreshRate}`,`${ne.d3.System_Displays}/${K.name}`,!0,pe&&pe.message?pe.message:""),(0,h.$)(pe))))}}let xe=(()=>{var ye;class Ie{constructor(K,ve){this.translateService=ve,this.logger=K.getLogger("nvapp/DisplayUtilService")}getDefaultDisplayName(K){const ve=fe.D_.get(K)||fe.ED;return this.translateService.instant(ve)}getCurrentDesktopColorDepth(K){const ve=K.isAdvanceColorSettingsSupported?fe.Fl.get(K.desktopColorDepth):fe.it;return ve?this.translateService.instant(ve):""}getFactorForSmoothScaling(K){let ve;for(const[De,pe]of fe.EM.entries())if(K.flags[De]){ve=pe;break}return ve}buildResolutionMetadata(K,ve){let De;const pe=this.getFactorForSmoothScaling(K);return De=pe?this.buildResolutionForSmoothScaling(pe,K,ve):this.buildResolutionForNonFactor(K,ve),K.flags.isCustomUnderscan&&(De.resolution=this.translateService.instant("system.display.resolutions.overscan",{resolution:De.resolution})),fe.kr.get(De.group),De}buildResolutionForSmoothScaling(K,ve,De){const pe=K>fe.mv?R.MY.SuperResolution:R.MY.Scalingresolution;let Qe="",zt="";return ve.flags.isHD||ve.flags.isHD_3D?(Qe=ve.flags.isHD_3D?this.deriveFactorString(K,ve,fe.By):this.isSDTV(De)?this.deriveFactorString(K,ve,fe.x8):this.deriveFactorString(K,ve,fe.CF),zt=this.formatForHDOrPC(ve,Qe)):(Qe=this.deriveFactorString(K,ve,fe.eQ),zt=this.translateService.instant("system.display.resolutions.pc",{horizontal:ve.horizontal,vertical:ve.vertical,recommended:Qe})),{resolution:zt,group:pe}}deriveFactorString(K,ve,De){let pe="",Qe=K;return K>fe.mv?(pe=De.default,ve.flags.isDLDSRFactor&&(pe=De.dlDSRFactor)):(pe=De.scalingFactor,Qe=100*K),this.translateService.instant(pe,{factor:Qe})}buildResolutionForNonFactor(K,ve){let De;return De=K.flags.isCustom?this.buildCustomResolution(K,ve):K.flags.isHD||K.flags.isHD_3D?this.buildHDOrHD3DResolution(K,ve):K.flags.isSurround||K.flags.isBezelCorrected?this.buildBezelAdjustedResolution(K):this.buildPcFormatResolution(K),De}buildCustomResolution(K,ve){const De=this.isHDTV(ve)?K.flags.isInterlaced?"system.display.resolutions.interlaced":"system.display.resolutions.progressive":"system.display.resolutions.pc";return{resolution:this.translateService.instant(De,{horizontal:K.horizontal,vertical:K.vertical,recommended:""}),group:R.MY.Custom}}buildHDOrHD3DResolution(K,ve){let De,pe="",Qe="";De=K.flags.isHD_3D?R.MY.HD_3D:this.isSDTV(ve)?R.MY.SD:R.MY.HD_SD,K.flags.isNative?Qe=this.isSDTV(ve)?"system.display.resolutions.recommended":"system.display.resolutions.native":K.flags.isRecommended&&(Qe="system.display.resolutions.recommended");const zt=Qe?this.translateService.instant(Qe):"";return pe=this.formatForHDOrPC(K,zt),{resolution:pe,group:De}}formatForHDOrPC(K,ve){const De=this.getHDName(K.tvFormat),pe=this.isTvFormatDVINONHD(K.tvFormat)?"system.display.resolutions.pc":"system.display.resolutions.hd";return this.translateService.instant(pe,{hdName:De,horizontal:K.horizontal,vertical:K.vertical,recommended:ve})}buildBezelAdjustedResolution(K){let ve="",De="";const pe=this.isMosaicEnabled()||this.isSliMosaicMode()?R.MY.Panoramic:R.MY.Surround;K.flags.isBezelCorrected?ve="system.display.resolutions.bezelAdjusted":K.flags.isNative?ve="system.display.resolutions.native":K.flags.isRecommended&&!K.flags.isBezelCorrected&&(ve="system.display.resolutions.recommended");const Qe=ve?this.translateService.instant(ve):"";return De=this.translateService.instant("system.display.resolutions.pc",{horizontal:K.horizontal,vertical:K.vertical,recommended:Qe}),{resolution:De,group:pe}}buildPcFormatResolution(K){let ve="";const De=R.MY.Standard;K.flags.isNative?ve="system.display.resolutions.native":K.flags.isRecommended&&(ve="system.display.resolutions.recommended");const pe=ve?this.translateService.instant(ve):"";return{resolution:this.translateService.instant("system.display.resolutions.pc",{horizontal:K.horizontal,vertical:K.vertical,recommended:pe}),group:De}}isHDTV(K){return K.connectorType===R.uM.CT_HDMI||K.connectorType===R.uM.CT_COMPONENT}isSDTV(K){return K.connectorType===R.uM.CT_AUTO||K.connectorType===R.uM.CT_SVIDEO||K.connectorType===R.uM.CT_COMPOSITE}isTvFormatDVINONHD(K){return K===R.Yz.NonHD}getHDName(K){const ve=fe.sJ.get(K);return ve?this.translateService.instant(ve):""}getSurroundDisplayName(){return this.translateService.instant("system.surroundDisplay")}isMosaicEnabled(){return!1}isSliMosaicMode(){return!1}isDisplayInClone(K){return!1}isDisplayInMosaicTopology(K){return!1}isMosaicTopologyAutoConfiguredTileDisplay(K){return!1}isDisplayPartOfMergedDisplays(K){return!1}isDisplaySecondaryClone(K){return!1}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(O.KVO(te.J6),O.KVO(ce.c$))},ye.\u0275prov=O.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Ie})();var Re=c(95212),Ue=c(86088),ee=c(76614),W=c(93964),Pe=c(11001),le=c(61904);let oe=(()=>{var ye;class Ie{constructor(K,ve){this.overlay=ve,this.overlayRef=null,this.logger=K.getLogger("OverlayLoadingSpinnerService"),this.loadingSpinner=new Pe.k,this.listenToLoadingSpinner()}listenToLoadingSpinner(){this.loadingSpinner.getLoadingSpinner().subscribe(K=>{K?this.showOverlaySpinner():this.hideOverlaySpinner()},v.l)}showOverlaySpinner(){if(this.overlayRef)return;this.logger.info("Showing fullpage overlay spinner"),this.overlayRef=this.overlay.create({positionStrategy:this.overlay.position().global().centerHorizontally().centerVertically(),hasBackdrop:!0,backdropClass:"cdk-overlay-dark-backdrop"});const K=new ee.A8(W.Q);this.overlayRef.attach(K).instance.overlaySpinner=!0}hideOverlaySpinner(){this.logger.info("hiding fullpage overlay spinner"),this.overlayRef&&(this.overlayRef.detach(),this.overlayRef=null)}triggerOverlaySpinner(K){this.logger.info("triggerOverlaySpinner: ",K),this.loadingSpinner.triggerLoadingIndicator(K,3e3)}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(O.KVO(te.J6),O.KVO(le.hJ))},ye.\u0275prov=O.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Ie})();var Le=c(46058);let Oe=(()=>{var ye;class Ie{get gpuDisplayInfo(){return this._gpuDisplayInfo.asObservable()}get globalGsyncInfo(){return this._globalGsyncInfo.asObservable()}get selectedDisplay(){return this._selectedDisplay.asObservable()}get deepLinkDisplay(){return this._deepLinkDisplay.asObservable()}get displayChanged$(){return this.displayChanged.asObservable()}get isMultiCloneSystem$(){return this._multiCloneSystem.asObservable()}constructor(K,ve,De,pe,Qe,zt,Vt,de,J,$e){this.loggingService=K,this.bridgeService=ve,this.matDialog=De,this.displayUtilService=pe,this.genericDialog=Qe,this.nvAppBridgeService=zt,this.nvAppTelemetryUtilService=Vt,this.overlayLoadingSpinnerService=de,this.redirectService=J,this.translateService=$e,this._gpuDisplayInfo=new r.m(1),this._globalGsyncInfo=new r.m(1),this._selectedDisplay=new r.m(1),this._deepLinkDisplay=new n.B7,this.displayChanged=new n.B7,this._multiCloneSystem=new r.m(1),this.logger=K.getLogger("nvapp/DisplaysService")}initialize(){this.uniqueDisplayCarouselItemId=0,this.refreshGpuDisplayInfo().subscribe(v.l,v.l),this.refreshGlobalGsyncInfo().subscribe(v.l,v.l),this.initializeDisplayChangeListener(),this.initializeGsyncChangeListener()}refreshGpuDisplayInfo(){return this.getGpuDisplayInfo().pipe((0,T.s)(1))}refreshGlobalGsyncInfo(){return this.getGlobalGsyncInfo().pipe((0,T.s)(1))}getGpuDisplayInfo(){this.logger.info("calling GpuAndDisplayInformation API");const K=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(R.yy,{},{},!1,!1).pipe((0,E.T)(ve=>{this.logger.info("Received GpuAndDisplayInformation",ve);let De=!1;return ve.gpus?.forEach(pe=>{pe.displays?.forEach(Qe=>{Qe.name=this.getDisplayName(Qe),Qe.cloneGroupId>0&&(De=!0)})}),this._multiCloneSystem.next(De),ve}),(0,y.M)(ve=>{const De=performance.now();this.logger.info("GetGpuAndDisplayInformation API took (ms): ",De-K),this._gpuDisplayInfo.next(ve)}),(0,S.W)(ve=>(this.logger.error("Error while getting GpuAndDisplayInformation"),this._gpuDisplayInfo.next({gpus:[]}),(0,h.$)(ve))))}getGlobalGsyncInfo(){this.logger.info("calling GetGlobalGsyncState API");const K=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(R.Tc,{},{},!0,!1).pipe((0,y.M)(ve=>{const De=performance.now();this.logger.info("Received GetGlobalGsyncState",ve),this.logger.info("GetGlobalGsyncState API took (ms): ",De-K),this._globalGsyncInfo.next(ve)}),(0,S.W)(ve=>(this.logger.error("Error while getting GetGlobalGsyncState"),this._globalGsyncInfo.next({globalGsyncState:R.nX.NotAvailable}),(0,h.$)(ve))))}initializeDisplayChangeListener(){this.logger.info("Initialize RegisterDisplayChangeCallback"),this.gpuDisplayInfoListenerSubscription=this.bridgeService.executeCommand(R.$Z).pipe((0,l.B)(fe.u6),(0,s.n)(K=>(this.logger.info("Received GetGpuAndDisplayInformation with listener",K),this.displayChanged.next(),this.getGpuDisplayInfo()))).subscribe(v.l,K=>{this.logger.error("Error while listening for Gpu and display information notification",K)})}initializeGsyncChangeListener(){this.logger.info("Initialize Global Gsync Change Listener"),this.gsyncChangeListenerSubscription=this.displayChanged$.pipe((0,s.n)(()=>this.getGlobalGsyncInfo())).subscribe(v.l,K=>{this.logger.error("Error while listening for Gsync Change Listener",K)})}cleanUpListener(){this.logger.info("Cleaning up RegisterDisplayChangeCallback"),this.gpuDisplayInfoListenerSubscription?.unsubscribe(),this.gsyncChangeListenerSubscription?.unsubscribe()}getDisplayName(K){return K.logicalDisplayType===R.QE.SurroundDisplay?this.displayUtilService.getSurroundDisplayName():K.name?.trim()||this.getDefaultDisplayName(K.deviceType)}getCurrentResolutionLabelForDisplay(K){const ve=K?.currentResolution;return ve&&(ve.tvFormat=fe.b_.get(ve.tvFormat)||ve.tvFormat),this.logger.info("Current resolution is",ve),ve?this.buildResolutionMetadata(ve,K)?.resolution:""}getCurrentRefreshRateForDisplay(K){const ve=K?.currentResolution;return this.translateService.instant("system.display.refreshRateValue",{refreshRate:ve?.refreshRate})}buildResolutionMetadata(K,ve){return this.displayUtilService.buildResolutionMetadata(K,ve)}getCurrentDesktopColorDepth(K){return this.displayUtilService.getCurrentDesktopColorDepth(K)}preSelectDisplay(K){this.logger.info("Pre selected display with deep link",K),this._deepLinkDisplay.next(K),this.selectDisplayById(K.index,K.gpuIndex)}selectDisplay(K){this.selectDisplayById(K?.index,K?.gpuIndex)}selectDisplayById(K,ve){this.displays?.forEach(De=>{De.type.index===K&&De.type.gpuIndex===ve?(De.type.isSelected=!0,this.selectedDisplayIds={index:De.type.index,gpuIndex:De.type.gpuIndex},this._selectedDisplay.next(De.type)):De.type.isSelected=!1})}getDisplays(){return this.gpuDisplayInfo.pipe((0,E.T)(K=>{const ve=[];let De=!1;return K?.gpus?.forEach(pe=>{pe.displays.forEach(Qe=>{this.selectedDisplayIds||(this.selectedDisplayIds={index:Qe.index,gpuIndex:pe.index});const zt=Qe.index===this.selectedDisplayIds.index&&this.selectedDisplayIds.gpuIndex===pe.index;zt&&(De=!0);const Vt=new dt(Qe,pe.index,zt,this.loggingService,this.nvAppBridgeService,this.nvAppTelemetryUtilService,this.bridgeService,this.overlayLoadingSpinnerService);ve.push({id:this.uniqueDisplayCarouselItemId.toString(),title:Qe.name,type:Vt,boxArtImage:"",tvBannerImage:"",visibility:!0}),this.uniqueDisplayCarouselItemId++})}),!De&&ve?.length>0&&(this.selectedDisplayIds={index:ve[0].type.index,gpuIndex:ve[0].type.gpuIndex},ve[0].type.isSelected=!0),ve}),(0,y.M)(K=>this.displays=K))}openApplyRevertSettingsDialog(K=(0,f.of)(!0)){this.logger.info("Launching Apply-Revert Settings Dialog");const ve=this.matDialog.open(Q,{panelClass:["dialogPaddingRemove","common-dialog"],disableClose:!0,autoFocus:!1});ve.componentInstance.applySettings.pipe((0,T.s)(1),(0,u.j)(()=>{this.logger.info("refresh settings"),this.refreshGpuDisplayInfo().subscribe(v.l,v.l),ve?.close()})).subscribe(()=>{this.logger.info("Apply Settings Clicked")},pe=>{this.logger.error("Error in applySettings listener",pe)});let De=0;ve.componentInstance.revertSettings.pipe((0,m.ZZ)(pe=>(De=performance.now(),this.nvAppBridgeService.executeWithPluginStatusTelemetry(R.oD,{},{},!0,!1))),(0,m.ZZ)(pe=>{const Qe=performance.now();return this.logger.info("RevertState API took (ms): ",Qe-De),K}),(0,T.s)(1),(0,u.j)(()=>{this.logger.info("Settings Refreshed"),ve?.close()})).subscribe(()=>{this.logger.info("Reverted the Settings")},pe=>{this.logger.error("Error in revertSettings",pe)})}isValidResolution(K,ve){const De=!(K.flags.isBezelCorrected||K.flags.isSurround||this.displayUtilService.isDisplayInClone(ve));return!((this.displayUtilService.isMosaicEnabled()||this.displayUtilService.isSliMosaicMode())&&this.displayUtilService.isDisplayInMosaicTopology(ve)&&!this.displayUtilService.isMosaicTopologyAutoConfiguredTileDisplay(ve)&&De)}compareResolution(K,ve,De=!1){const pe=K.horizontal===ve.horizontal&&K.vertical===ve.vertical;return De?pe&&K.tvFormat===ve.tvFormat:pe}findSharedResolution(K,ve){let De;const pe=this.displayUtilService.getFactorForSmoothScaling(ve);return K?.uiResolutionsList.forEach(Qe=>{const zt=ve.flags.isHD||ve.flags.isHD_3D;pe&&zt||!pe&&zt&&ve.flags.isHD_3D===Qe.flags.isHD_3D?this.compareResolution(Qe,ve,!0)&&(De=Qe):this.compareResolution(Qe,ve)&&(De=Qe)}),De}isDisplayPartOfMergedDisplays(K){return this.displayUtilService.isDisplayPartOfMergedDisplays(K)}getDefaultDisplayName(K){return this.displayUtilService.getDefaultDisplayName(K)}applyRotation(K,ve,De){this.overlayLoadingSpinnerService.triggerOverlaySpinner(!0);const pe=performance.now();this.nvAppBridgeService.executeWithPluginStatusTelemetry(R.xq,K,ve,!0,!1).subscribe(Qe=>{const zt=performance.now();this.logger.info("SetRotation API took (ms): ",zt-pe),this.logger.info("SetRotation is successful",Qe,"for rotation ",K.rotation),this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.openApplyRevertSettingsDialog(De),this.nvAppTelemetryUtilService.sendSettingChangeEvent(fe.H5,K.rotation.toString(),`${ne.d3.System_Displays}/${ve.name}`,!0)},Qe=>{this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.logger.error("Error in SetRotation",Qe),this.nvAppTelemetryUtilService.sendSettingChangeEvent(fe.H5,K.rotation.toString(),`${ne.d3.System_Displays}/${ve.name}`,!0,Qe&&Qe.message?Qe.message:""),this.refreshGpuDisplayInfo().subscribe(v.l,v.l)})}canEnableRotation(K,ve){return!((this.displayUtilService.isMosaicEnabled()||this.displayUtilService.isSliMosaicMode())&&this.displayUtilService.isDisplayInMosaicTopology(K)&&!this.displayUtilService.isMosaicTopologyAutoConfiguredTileDisplay(K)||this.isDisplayPartOfMergedDisplays(K)||ve.logicalDisplayType===R.QE.CloneDisplay&&!ve.isClonePrimary)}identifyDisplays(K,ve,De){this.bridgeService.executeCommand(R.OH,{isAllDisplays:K,monitorIdentifiers:ve}).subscribe(pe=>{this.logger.info("IdentifyDisplays is successful",pe)},pe=>{this.logger.error("Error in IdentifyDisplays",pe)}),this.nvAppTelemetryUtilService.sendClickEvent(K?ne.EB.IdentifyAllDisplays:ne.EB.IdentifyDisplay,De||ne.d3.System_Displays,!0)}restoreDisplayDefaults(K,ve){this.logger.info("Launching Restore Display Default Dialog"),this.nvAppTelemetryUtilService.sendClickEvent(ne.EB.RestoreDefaultDisplay,`${ne.d3.System_Displays}/${ve}`,!0,ve);const pe=this.genericDialog.open({autoFocus:!1,panelClass:["dialogPaddingRemove"],data:{headerText:{text:"system.display.restoreDefaultsDlgTitle"},primaryButton:{text:"common.ok"},secondaryButton:{text:"common.cancel"},autoFocusOnPrimaryButton:!1,bodyText:{text:"system.display.restoreDisplay",placeholders:{displayName:ve}}}}),Qe=pe.primaryButtonClick.pipe((0,I.u)(!0)),zt=pe.secondaryButtonClick.pipe((0,I.u)(!1)),Vt=pe.afterClosed().pipe((0,I.u)(!1));let de=0;return(0,A.O4)(Qe,zt,Vt).pipe((0,T.s)(1),(0,m.ZZ)(J=>(pe.close(),J?(de=performance.now(),this.nvAppBridgeService.executeWithPluginStatusTelemetry(R.WQ,{gpuIndex:K.gpuIndex,displayIndex:K.index},{name:ve},!0,!1).pipe((0,y.M)($e=>{const st=performance.now();this.logger.info("RestoreDisplaySettings API took (ms): ",st-de)}),(0,m.ZZ)($e=>this.refreshGpuDisplayInfo()))):M.w))).subscribe(v.l,J=>{this.logger.error("Error in restoreDisplayDefaults",J)})}restoreGlobalGsyncState(){this.logger.info("Launching Restore Global Gsync Confirmation Dialog");const K=this.matDialog.open(Xe,{panelClass:["dialogPaddingRemove","common-dialog"],disableClose:!0,autoFocus:!1});K.componentInstance.bodyText="system.display.restoreGlobalGsync";let ve=0;K.componentInstance.restoreSettings.pipe((0,m.ZZ)(De=>(ve=performance.now(),this.nvAppBridgeService.executeWithPluginStatusTelemetry(R.Zc,{},{},!0,!1).pipe((0,y.M)(pe=>{const Qe=performance.now();this.logger.info("RestoreGlobalGsyncState API took (ms): ",Qe-ve),this._globalGsyncInfo.next(pe)})))),(0,T.s)(1),(0,u.j)(()=>{K?.close()})).subscribe(()=>{this.logger.info("Restored global gsync settings")},De=>{this.logger.error("Error in restore global gsync setting",De)})}applyDisplayGsync(K,ve){const De=performance.now();this.nvAppBridgeService.executeWithPluginStatusTelemetry(R.mE,K,ve,!0,!1).subscribe(pe=>{const Qe=performance.now();this.logger.info("SetDisplayGsyncState API took (ms): ",Qe-De),this.logger.info("SetDisplayGsyncState is successful",pe),this.nvAppTelemetryUtilService.sendSettingChangeEvent(fe.FF,K?.enabled?ne.T8.TRUE:ne.T8.FALSE,`${ne.d3.System_Displays}/${ve.name}`,!0),this.refreshGpuDisplayInfo().subscribe(v.l,v.l)},pe=>{this.logger.error("Error in SetDisplayGsyncState",pe),this.nvAppTelemetryUtilService.sendSettingChangeEvent(fe.FF,K?.enabled?ne.T8.TRUE:ne.T8.FALSE,`${ne.d3.System_Displays}/${ve.name}`,!0,pe&&pe.message?pe.message:""),this.refreshGpuDisplayInfo().subscribe(v.l,v.l)})}applyGlobalGsync(K){const ve=performance.now();this.nvAppBridgeService.executeWithPluginStatusTelemetry(R.Zd,K,{},!0,!1).subscribe(De=>{const pe=performance.now();this.logger.info("SetGlobalGsyncState API took (ms): ",pe-ve),this.logger.info("SetGlobalGsyncState is successful",De),this.nvAppTelemetryUtilService.sendSettingChangeEvent(fe.CE,K?.globalGsyncState.toString(),`${ne.d3.System_Displays}`,!0),this._globalGsyncInfo.next(K)},De=>{this.logger.error("Error in SetGlobalGsyncState",De),this.nvAppTelemetryUtilService.sendSettingChangeEvent(fe.CE,K?.globalGsyncState.toString(),`${ne.d3.System_Displays}`,!0,De&&De.message?De.message:""),this.refreshGlobalGsyncInfo().subscribe(v.l,v.l)})}gsyncLinkClicked(){this.redirectService.redirectTo(Ge.r7.gSyncDisplays),this.nvAppTelemetryUtilService.sendClickEvent(ne.EB.GSyncUpsellLink,`${ne.d3.System_Displays}`,!0)}getClonePrimaryDisplayIdentifier(K){return this.displays?.find(De=>De.type?.cloneGroupId===K&&!0===De.type?.isClonePrimary)?.type?.identifier}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(O.KVO(te.J6),O.KVO(te.NZ),O.KVO(ge.bZ),O.KVO(xe),O.KVO(Re.uh),O.KVO(Ue.S),O.KVO(ne.AY),O.KVO(oe),O.KVO(Le.Q),O.KVO(ce.c$))},ye.\u0275prov=O.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Ie})()},29541:(je,z,c)=>{"use strict";var r=c(74150),n=c(58527),v=c(94485),h=c(40262);function T(F){return new n.wOt(3e3,!1)}function Le(F){switch(F.length){case 0:return new h.sf;case 1:return F[0];default:return new h.ui(F)}}function Oe(F,$,U=new Map,b=new Map){const N=[],Ce=[];let ft=-1,Jt=null;if($.forEach(wn=>{const x=wn.get("offset"),k=x==ft,_e=k&&Jt||new Map;wn.forEach((lt,Wt)=>{let an=Wt,xn=lt;if("offset"!==Wt)switch(an=F.normalizePropertyName(an,N),xn){case h.FX:xn=U.get(Wt);break;case h.kp:xn=b.get(Wt);break;default:xn=F.normalizeStyleValue(Wt,an,xn,N)}_e.set(an,xn)}),k||Ce.push(_e),Jt=_e,ft=x}),N.length)throw function Ge(F){return new n.wOt(3502,!1)}();return Ce}function ye(F,$,U,b){switch($){case"start":F.onStart(()=>b(U&&Ie(U,"start",F)));break;case"done":F.onDone(()=>b(U&&Ie(U,"done",F)));break;case"destroy":F.onDestroy(()=>b(U&&Ie(U,"destroy",F)))}}function Ie(F,$,U){const Ce=at(F.element,F.triggerName,F.fromState,F.toState,$||F.phaseName,U.totalTime??F.totalTime,!!U.disabled),ft=F._data;return null!=ft&&(Ce._data=ft),Ce}function at(F,$,U,b,N="",Ce=0,ft){return{element:F,triggerName:$,fromState:U,toState:b,phaseName:N,totalTime:Ce,disabled:!!ft}}function K(F,$,U){let b=F.get($);return b||F.set($,b=U),b}function ve(F){const $=F.indexOf(":");return[F.substring(1,$),F.slice($+1)]}const De=typeof document>"u"?null:document.documentElement;function pe(F){const $=F.parentNode||F.host||null;return $===De?null:$}let zt=null,Vt=!1;function st(F,$){for(;$;){if($===F)return!0;$=pe($)}return!1}function Gt(F,$,U){if(U)return Array.from(F.querySelectorAll($));const b=F.querySelector($);return b?[b]:[]}let kn=(()=>{var F;class ${validateStyleProperty(b){return function de(F){zt||(zt=function $e(){return typeof document<"u"?document.body:null}()||{},Vt=!!zt.style&&"WebkitAppearance"in zt.style);let $=!0;return zt.style&&!function Qe(F){return"ebkit"==F.substring(1,6)}(F)&&($=F in zt.style,!$&&Vt&&($="Webkit"+F.charAt(0).toUpperCase()+F.slice(1)in zt.style)),$}(b)}matchesElement(b,N){return!1}containsElement(b,N){return st(b,N)}getParentElement(b){return pe(b)}query(b,N,Ce){return Gt(b,N,Ce)}computeStyle(b,N,Ce){return Ce||""}animate(b,N,Ce,ft,Jt,wn=[],x){return new h.sf(Ce,ft)}}return(F=$).\u0275fac=function(b){return new(b||F)},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac}),$})();class Un{}Un.NOOP=new kn;class ni{}const mi=1e3,Bn="ng-enter",jn="ng-leave",It="ng-trigger",vn=".ng-trigger",Vn="ng-animating",ht=".ng-animating";function it(F){if("number"==typeof F)return F;const $=F.match(/^(-?[\.\d]+)(m?s)/);return!$||$.length<2?0:Ct(parseFloat($[1]),$[2])}function Ct(F,$){return"s"===$?F*mi:F}function Et(F,$,U){return F.hasOwnProperty("duration")?F:function We(F,$,U){let N,Ce=0,ft="";if("string"==typeof F){const Jt=F.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Jt)return $.push(T()),{duration:0,delay:0,easing:""};N=Ct(parseFloat(Jt[1]),Jt[2]);const wn=Jt[3];null!=wn&&(Ce=Ct(parseFloat(wn),Jt[4]));const x=Jt[5];x&&(ft=x)}else N=F;if(!U){let Jt=!1,wn=$.length;N<0&&($.push(function E(){return new n.wOt(3100,!1)}()),Jt=!0),Ce<0&&($.push(function y(){return new n.wOt(3101,!1)}()),Jt=!0),Jt&&$.splice(wn,0,T())}return{duration:N,delay:Ce,easing:ft}}(F,$,U)}function wt(F,$,U){$.forEach((b,N)=>{const Ce=Oi(N);U&&!U.has(N)&&U.set(N,F.style[Ce]),F.style[Ce]=b})}function rn(F,$){$.forEach((U,b)=>{const N=Oi(b);F.style[N]=""})}function In(F){return Array.isArray(F)?1==F.length?F[0]:(0,h.K2)(F):F}const En=new RegExp("{{\\s*(.+?)\\s*}}","g");function Tn(F){let $=[];if("string"==typeof F){let U;for(;U=En.exec(F);)$.push(U[1]);En.lastIndex=0}return $}function Cn(F,$,U){const b=`${F}`,N=b.replace(En,(Ce,ft)=>{let Jt=$[ft];return null==Jt&&(U.push(function l(F){return new n.wOt(3003,!1)}()),Jt=""),Jt.toString()});return N==b?F:N}const Wn=/-+([a-z0-9])/g;function Oi(F){return F.replace(Wn,(...$)=>$[1].toUpperCase())}function ln(F,$,U){switch($.type){case h.If.Trigger:return F.visitTrigger($,U);case h.If.State:return F.visitState($,U);case h.If.Transition:return F.visitTransition($,U);case h.If.Sequence:return F.visitSequence($,U);case h.If.Group:return F.visitGroup($,U);case h.If.Animate:return F.visitAnimate($,U);case h.If.Keyframes:return F.visitKeyframes($,U);case h.If.Style:return F.visitStyle($,U);case h.If.Reference:return F.visitReference($,U);case h.If.AnimateChild:return F.visitAnimateChild($,U);case h.If.AnimateRef:return F.visitAnimateRef($,U);case h.If.Query:return F.visitQuery($,U);case h.If.Stagger:return F.visitStagger($,U);default:throw function s(F){return new n.wOt(3004,!1)}()}}function Mn(F,$){return window.getComputedStyle(F)[$]}const bi=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 Hi extends ni{normalizePropertyName($,U){return Oi($)}normalizeStyleValue($,U,b,N){let Ce="";const ft=b.toString().trim();if(bi.has(U)&&0!==b&&"0"!==b)if("number"==typeof b)Ce="px";else{const Jt=b.match(/^[+-]?[\d\.]+([a-z]*)$/);Jt&&0==Jt[1].length&&N.push(function u(F,$){return new n.wOt(3005,!1)}())}return ft+Ce}}const Pn="*";const Fr=new Set(["true","1"]),dn=new Set(["false","0"]);function Fn(F,$){const U=Fr.has(F)||dn.has(F),b=Fr.has($)||dn.has($);return(N,Ce)=>{let ft=F==Pn||F==N,Jt=$==Pn||$==Ce;return!ft&&U&&"boolean"==typeof N&&(ft=N?Fr.has(F):dn.has(F)),!Jt&&b&&"boolean"==typeof Ce&&(Jt=Ce?Fr.has($):dn.has($)),ft&&Jt}}const fi=new RegExp("s*:selfs*,?","g");function Si(F,$,U,b){return new Qi(F).build($,U,b)}class Qi{constructor($){this._driver=$}build($,U,b){const N=new br(U);return this._resetContextStyleTimingState(N),ln(this,In($),N)}_resetContextStyleTimingState($){$.currentQuerySelector="",$.collectedStyles=new Map,$.collectedStyles.set("",new Map),$.currentTime=0}visitTrigger($,U){let b=U.queryCount=0,N=U.depCount=0;const Ce=[],ft=[];return"@"==$.name.charAt(0)&&U.errors.push(function m(){return new n.wOt(3006,!1)}()),$.definitions.forEach(Jt=>{if(this._resetContextStyleTimingState(U),Jt.type==h.If.State){const wn=Jt,x=wn.name;x.toString().split(/\s*,\s*/).forEach(k=>{wn.name=k,Ce.push(this.visitState(wn,U))}),wn.name=x}else if(Jt.type==h.If.Transition){const wn=this.visitTransition(Jt,U);b+=wn.queryCount,N+=wn.depCount,ft.push(wn)}else U.errors.push(function I(){return new n.wOt(3007,!1)}())}),{type:h.If.Trigger,name:$.name,states:Ce,transitions:ft,queryCount:b,depCount:N,options:null}}visitState($,U){const b=this.visitStyle($.styles,U),N=$.options&&$.options.params||null;if(b.containsDynamicStyles){const Ce=new Set,ft=N||{};b.styles.forEach(Jt=>{Jt instanceof Map&&Jt.forEach(wn=>{Tn(wn).forEach(x=>{ft.hasOwnProperty(x)||Ce.add(x)})})}),Ce.size&&U.errors.push(function R(F,$){return new n.wOt(3008,!1)}(0,Ce.values()))}return{type:h.If.State,name:$.name,style:b,options:N?{params:N}:null}}visitTransition($,U){U.queryCount=0,U.depCount=0;const b=ln(this,In($.animation),U),N=function Pi(F,$){const U=[];return"string"==typeof F?F.split(/\s*,\s*/).forEach(b=>function li(F,$,U){if(":"==F[0]){const wn=function er(F,$){switch(F){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(U,b)=>parseFloat(b)>parseFloat(U);case":decrement":return(U,b)=>parseFloat(b)<parseFloat(U);default:return $.push(function Me(F){return new n.wOt(3016,!1)}()),"* => *"}}(F,U);if("function"==typeof wn)return void $.push(wn);F=wn}const b=F.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==b||b.length<4)return U.push(function ue(F){return new n.wOt(3015,!1)}()),$;const N=b[1],Ce=b[2],ft=b[3];$.push(Fn(N,ft)),"<"==Ce[0]&&(N!=Pn||ft!=Pn)&&$.push(Fn(ft,N))}(b,U,$)):U.push(F),U}($.expr,U.errors);return{type:h.If.Transition,matchers:N,animation:b,queryCount:U.queryCount,depCount:U.depCount,options:Hr($.options)}}visitSequence($,U){return{type:h.If.Sequence,steps:$.steps.map(b=>ln(this,b,U)),options:Hr($.options)}}visitGroup($,U){const b=U.currentTime;let N=0;const Ce=$.steps.map(ft=>{U.currentTime=b;const Jt=ln(this,ft,U);return N=Math.max(N,U.currentTime),Jt});return U.currentTime=N,{type:h.If.Group,steps:Ce,options:Hr($.options)}}visitAnimate($,U){const b=function Oo(F,$){if(F.hasOwnProperty("duration"))return F;if("number"==typeof F)return Ao(Et(F,$).duration,0,"");const U=F;if(U.split(/\s+/).some(Ce=>"{"==Ce.charAt(0)&&"{"==Ce.charAt(1))){const Ce=Ao(0,0,"");return Ce.dynamic=!0,Ce.strValue=U,Ce}const N=Et(U,$);return Ao(N.duration,N.delay,N.easing)}($.timings,U.errors);U.currentAnimateTimings=b;let N,Ce=$.styles?$.styles:(0,h.iF)({});if(Ce.type==h.If.Keyframes)N=this.visitKeyframes(Ce,U);else{let ft=$.styles,Jt=!1;if(!ft){Jt=!0;const x={};b.easing&&(x.easing=b.easing),ft=(0,h.iF)(x)}U.currentTime+=b.duration+b.delay;const wn=this.visitStyle(ft,U);wn.isEmptyStep=Jt,N=wn}return U.currentAnimateTimings=null,{type:h.If.Animate,timings:b,style:N,options:null}}visitStyle($,U){const b=this._makeStyleAst($,U);return this._validateStyleAst(b,U),b}_makeStyleAst($,U){const b=[],N=Array.isArray($.styles)?$.styles:[$.styles];for(let Jt of N)"string"==typeof Jt?Jt===h.kp?b.push(Jt):U.errors.push(new n.wOt(3002,!1)):b.push(new Map(Object.entries(Jt)));let Ce=!1,ft=null;return b.forEach(Jt=>{if(Jt instanceof Map&&(Jt.has("easing")&&(ft=Jt.get("easing"),Jt.delete("easing")),!Ce))for(let wn of Jt.values())if(wn.toString().indexOf("{{")>=0){Ce=!0;break}}),{type:h.If.Style,styles:b,easing:ft,offset:$.offset,containsDynamicStyles:Ce,options:null}}_validateStyleAst($,U){const b=U.currentAnimateTimings;let N=U.currentTime,Ce=U.currentTime;b&&Ce>0&&(Ce-=b.duration+b.delay),$.styles.forEach(ft=>{"string"!=typeof ft&&ft.forEach((Jt,wn)=>{const x=U.collectedStyles.get(U.currentQuerySelector),k=x.get(wn);let _e=!0;k&&(Ce!=N&&Ce>=k.startTime&&N<=k.endTime&&(U.errors.push(function j(F,$,U,b,N){return new n.wOt(3010,!1)}()),_e=!1),Ce=k.startTime),_e&&x.set(wn,{startTime:Ce,endTime:N}),U.options&&function Mi(F,$,U){const b=$.params||{},N=Tn(F);N.length&&N.forEach(Ce=>{b.hasOwnProperty(Ce)||U.push(function S(F){return new n.wOt(3001,!1)}())})}(Jt,U.options,U.errors)})})}visitKeyframes($,U){const b={type:h.If.Keyframes,styles:[],options:null};if(!U.currentAnimateTimings)return U.errors.push(function fe(){return new n.wOt(3011,!1)}()),b;let Ce=0;const ft=[];let Jt=!1,wn=!1,x=0;const k=$.steps.map(hi=>{const qi=this._makeStyleAst(hi,U);let tr=null!=qi.offset?qi.offset:function ro(F){if("string"==typeof F)return null;let $=null;if(Array.isArray(F))F.forEach(U=>{if(U instanceof Map&&U.has("offset")){const b=U;$=parseFloat(b.get("offset")),b.delete("offset")}});else if(F instanceof Map&&F.has("offset")){const U=F;$=parseFloat(U.get("offset")),U.delete("offset")}return $}(qi.styles),sr=0;return null!=tr&&(Ce++,sr=qi.offset=tr),wn=wn||sr<0||sr>1,Jt=Jt||sr<x,x=sr,ft.push(sr),qi});wn&&U.errors.push(function te(){return new n.wOt(3012,!1)}()),Jt&&U.errors.push(function ce(){return new n.wOt(3200,!1)}());const _e=$.steps.length;let lt=0;Ce>0&&Ce<_e?U.errors.push(function H(){return new n.wOt(3202,!1)}()):0==Ce&&(lt=1/(_e-1));const Wt=_e-1,an=U.currentTime,xn=U.currentAnimateTimings,qn=xn.duration;return k.forEach((hi,qi)=>{const tr=lt>0?qi==Wt?1:lt*qi:ft[qi],sr=tr*qn;U.currentTime=an+xn.delay+sr,xn.duration=sr,this._validateStyleAst(hi,U),hi.offset=tr,b.styles.push(hi)}),b}visitReference($,U){return{type:h.If.Reference,animation:ln(this,In($.animation),U),options:Hr($.options)}}visitAnimateChild($,U){return U.depCount++,{type:h.If.AnimateChild,options:Hr($.options)}}visitAnimateRef($,U){return{type:h.If.AnimateRef,animation:this.visitReference($.animation,U),options:Hr($.options)}}visitQuery($,U){const b=U.currentQuerySelector,N=$.options||{};U.queryCount++,U.currentQuery=$;const[Ce,ft]=function vr(F){const $=!!F.split(/\s*,\s*/).find(U=>":self"==U);return $&&(F=F.replace(fi,"")),F=F.replace(/@\*/g,vn).replace(/@\w+/g,U=>vn+"-"+U.slice(1)).replace(/:animating/g,ht),[F,$]}($.selector);U.currentQuerySelector=b.length?b+" "+Ce:Ce,K(U.collectedStyles,U.currentQuerySelector,new Map);const Jt=ln(this,In($.animation),U);return U.currentQuery=null,U.currentQuerySelector=b,{type:h.If.Query,selector:Ce,limit:N.limit||0,optional:!!N.optional,includeSelf:ft,animation:Jt,originalSelector:$.selector,options:Hr($.options)}}visitStagger($,U){U.currentQuery||U.errors.push(function Z(){return new n.wOt(3013,!1)}());const b="full"===$.timings?{duration:0,delay:0,easing:"full"}:Et($.timings,U.errors,!0);return{type:h.If.Stagger,animation:ln(this,In($.animation),U),timings:b,options:null}}}class br{constructor($){this.errors=$,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 Hr(F){return F?(F={...F}).params&&(F.params=function Dr(F){return F?{...F}:null}(F.params)):F={},F}function Ao(F,$,U){return{duration:F,delay:$,easing:U}}function Co(F,$,U,b,N,Ce,ft=null,Jt=!1){return{type:1,element:F,keyframes:$,preStyleProps:U,postStyleProps:b,duration:N,delay:Ce,totalTime:N+Ce,easing:ft,subTimeline:Jt}}class Lo{constructor(){this._map=new Map}get($){return this._map.get($)||[]}append($,U){let b=this._map.get($);b||this._map.set($,b=[]),b.push(...U)}has($){return this._map.has($)}clear(){this._map.clear()}}const sn=new RegExp(":enter","g"),$n=new RegExp(":leave","g");function Ci(F,$,U,b,N,Ce=new Map,ft=new Map,Jt,wn,x=[]){return(new Wi).buildKeyframes(F,$,U,b,N,Ce,ft,Jt,wn,x)}class Wi{buildKeyframes($,U,b,N,Ce,ft,Jt,wn,x,k=[]){x=x||new Lo;const _e=new Gi($,U,x,N,Ce,k,[]);_e.options=wn;const lt=wn.delay?it(wn.delay):0;_e.currentTimeline.delayNextStep(lt),_e.currentTimeline.setStyles([ft],null,_e.errors,wn),ln(this,b,_e);const Wt=_e.timelines.filter(an=>an.containsAnimation());if(Wt.length&&Jt.size){let an;for(let xn=Wt.length-1;xn>=0;xn--){const qn=Wt[xn];if(qn.element===U){an=qn;break}}an&&!an.allowOnlyTimelineStyles()&&an.setStyles([Jt],null,_e.errors,wn)}return Wt.length?Wt.map(an=>an.buildKeyframes()):[Co(U,[],[],[],0,lt,"",!1)]}visitTrigger($,U){}visitState($,U){}visitTransition($,U){}visitAnimateChild($,U){const b=U.subInstructions.get(U.element);if(b){const N=U.createSubContext($.options),Ce=U.currentTimeline.currentTime,ft=this._visitSubInstructions(b,N,N.options);Ce!=ft&&U.transformIntoNewTimeline(ft)}U.previousNode=$}visitAnimateRef($,U){const b=U.createSubContext($.options);b.transformIntoNewTimeline(),this._applyAnimationRefDelays([$.options,$.animation.options],U,b),this.visitReference($.animation,b),U.transformIntoNewTimeline(b.currentTimeline.currentTime),U.previousNode=$}_applyAnimationRefDelays($,U,b){for(const N of $){const Ce=N?.delay;if(Ce){const ft="number"==typeof Ce?Ce:it(Cn(Ce,N?.params??{},U.errors));b.delayNextStep(ft)}}}_visitSubInstructions($,U,b){let Ce=U.currentTimeline.currentTime;const ft=null!=b.duration?it(b.duration):null,Jt=null!=b.delay?it(b.delay):null;return 0!==ft&&$.forEach(wn=>{const x=U.appendInstructionToTimeline(wn,ft,Jt);Ce=Math.max(Ce,x.duration+x.delay)}),Ce}visitReference($,U){U.updateOptions($.options,!0),ln(this,$.animation,U),U.previousNode=$}visitSequence($,U){const b=U.subContextCount;let N=U;const Ce=$.options;if(Ce&&(Ce.params||Ce.delay)&&(N=U.createSubContext(Ce),N.transformIntoNewTimeline(),null!=Ce.delay)){N.previousNode.type==h.If.Style&&(N.currentTimeline.snapshotCurrentStyles(),N.previousNode=Ti);const ft=it(Ce.delay);N.delayNextStep(ft)}$.steps.length&&($.steps.forEach(ft=>ln(this,ft,N)),N.currentTimeline.applyStylesToKeyframe(),N.subContextCount>b&&N.transformIntoNewTimeline()),U.previousNode=$}visitGroup($,U){const b=[];let N=U.currentTimeline.currentTime;const Ce=$.options&&$.options.delay?it($.options.delay):0;$.steps.forEach(ft=>{const Jt=U.createSubContext($.options);Ce&&Jt.delayNextStep(Ce),ln(this,ft,Jt),N=Math.max(N,Jt.currentTimeline.currentTime),b.push(Jt.currentTimeline)}),b.forEach(ft=>U.currentTimeline.mergeTimelineCollectedStyles(ft)),U.transformIntoNewTimeline(N),U.previousNode=$}_visitTiming($,U){if($.dynamic){const b=$.strValue;return Et(U.params?Cn(b,U.params,U.errors):b,U.errors)}return{duration:$.duration,delay:$.delay,easing:$.easing}}visitAnimate($,U){const b=U.currentAnimateTimings=this._visitTiming($.timings,U),N=U.currentTimeline;b.delay&&(U.incrementTime(b.delay),N.snapshotCurrentStyles());const Ce=$.style;Ce.type==h.If.Keyframes?this.visitKeyframes(Ce,U):(U.incrementTime(b.duration),this.visitStyle(Ce,U),N.applyStylesToKeyframe()),U.currentAnimateTimings=null,U.previousNode=$}visitStyle($,U){const b=U.currentTimeline,N=U.currentAnimateTimings;!N&&b.hasCurrentStyleProperties()&&b.forwardFrame();const Ce=N&&N.easing||$.easing;$.isEmptyStep?b.applyEmptyStep(Ce):b.setStyles($.styles,Ce,U.errors,U.options),U.previousNode=$}visitKeyframes($,U){const b=U.currentAnimateTimings,N=U.currentTimeline.duration,Ce=b.duration,Jt=U.createSubContext().currentTimeline;Jt.easing=b.easing,$.styles.forEach(wn=>{Jt.forwardTime((wn.offset||0)*Ce),Jt.setStyles(wn.styles,wn.easing,U.errors,U.options),Jt.applyStylesToKeyframe()}),U.currentTimeline.mergeTimelineCollectedStyles(Jt),U.transformIntoNewTimeline(N+Ce),U.previousNode=$}visitQuery($,U){const b=U.currentTimeline.currentTime,N=$.options||{},Ce=N.delay?it(N.delay):0;Ce&&(U.previousNode.type===h.If.Style||0==b&&U.currentTimeline.hasCurrentStyleProperties())&&(U.currentTimeline.snapshotCurrentStyles(),U.previousNode=Ti);let ft=b;const Jt=U.invokeQuery($.selector,$.originalSelector,$.limit,$.includeSelf,!!N.optional,U.errors);U.currentQueryTotal=Jt.length;let wn=null;Jt.forEach((x,k)=>{U.currentQueryIndex=k;const _e=U.createSubContext($.options,x);Ce&&_e.delayNextStep(Ce),x===U.element&&(wn=_e.currentTimeline),ln(this,$.animation,_e),_e.currentTimeline.applyStylesToKeyframe(),ft=Math.max(ft,_e.currentTimeline.currentTime)}),U.currentQueryIndex=0,U.currentQueryTotal=0,U.transformIntoNewTimeline(ft),wn&&(U.currentTimeline.mergeTimelineCollectedStyles(wn),U.currentTimeline.snapshotCurrentStyles()),U.previousNode=$}visitStagger($,U){const b=U.parentContext,N=U.currentTimeline,Ce=$.timings,ft=Math.abs(Ce.duration),Jt=ft*(U.currentQueryTotal-1);let wn=ft*U.currentQueryIndex;switch(Ce.duration<0?"reverse":Ce.easing){case"reverse":wn=Jt-wn;break;case"full":wn=b.currentStaggerTime}const k=U.currentTimeline;wn&&k.delayNextStep(wn);const _e=k.currentTime;ln(this,$.animation,U),U.previousNode=$,b.currentStaggerTime=N.currentTime-_e+(N.startTime-b.currentTimeline.startTime)}}const Ti={};class Gi{constructor($,U,b,N,Ce,ft,Jt,wn){this._driver=$,this.element=U,this.subInstructions=b,this._enterClassName=N,this._leaveClassName=Ce,this.errors=ft,this.timelines=Jt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ti,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=wn||new Tr(this._driver,U,0),Jt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions($,U){if(!$)return;const b=$;let N=this.options;null!=b.duration&&(N.duration=it(b.duration)),null!=b.delay&&(N.delay=it(b.delay));const Ce=b.params;if(Ce){let ft=N.params;ft||(ft=this.options.params={}),Object.keys(Ce).forEach(Jt=>{(!U||!ft.hasOwnProperty(Jt))&&(ft[Jt]=Cn(Ce[Jt],ft,this.errors))})}}_copyOptions(){const $={};if(this.options){const U=this.options.params;if(U){const b=$.params={};Object.keys(U).forEach(N=>{b[N]=U[N]})}}return $}createSubContext($=null,U,b){const N=U||this.element,Ce=new Gi(this._driver,N,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(N,b||0));return Ce.previousNode=this.previousNode,Ce.currentAnimateTimings=this.currentAnimateTimings,Ce.options=this._copyOptions(),Ce.updateOptions($),Ce.currentQueryIndex=this.currentQueryIndex,Ce.currentQueryTotal=this.currentQueryTotal,Ce.parentContext=this,this.subContextCount++,Ce}transformIntoNewTimeline($){return this.previousNode=Ti,this.currentTimeline=this.currentTimeline.fork(this.element,$),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline($,U,b){const N={duration:U??$.duration,delay:this.currentTimeline.currentTime+(b??0)+$.delay,easing:""},Ce=new _o(this._driver,$.element,$.keyframes,$.preStyleProps,$.postStyleProps,N,$.stretchStartingKeyframe);return this.timelines.push(Ce),N}incrementTime($){this.currentTimeline.forwardTime(this.currentTimeline.duration+$)}delayNextStep($){$>0&&this.currentTimeline.delayNextStep($)}invokeQuery($,U,b,N,Ce,ft){let Jt=[];if(N&&Jt.push(this.element),$.length>0){$=($=$.replace(sn,"."+this._enterClassName)).replace($n,"."+this._leaveClassName);let x=this._driver.query(this.element,$,1!=b);0!==b&&(x=b<0?x.slice(x.length+b,x.length):x.slice(0,b)),Jt.push(...x)}return!Ce&&0==Jt.length&&ft.push(function X(F){return new n.wOt(3014,!1)}()),Jt}}class Tr{constructor($,U,b,N){this._driver=$,this.element=U,this.startTime=b,this._elementTimelineStylesLookup=N,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(U),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(U,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($){const U=1===this._keyframes.size&&this._pendingStyles.size;this.duration||U?(this.forwardTime(this.currentTime+$),U&&this.snapshotCurrentStyles()):this.startTime+=$}fork($,U){return this.applyStylesToKeyframe(),new Tr(this._driver,$,U||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($){this.applyStylesToKeyframe(),this.duration=$,this._loadKeyframe()}_updateStyle($,U){this._localTimelineStyles.set($,U),this._globalTimelineStyles.set($,U),this._styleSummary.set($,{time:this.currentTime,value:U})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep($){$&&this._previousKeyframe.set("easing",$);for(let[U,b]of this._globalTimelineStyles)this._backFill.set(U,b||h.kp),this._currentKeyframe.set(U,h.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles($,U,b,N){U&&this._previousKeyframe.set("easing",U);const Ce=N&&N.params||{},ft=function as(F,$){const U=new Map;let b;return F.forEach(N=>{if("*"===N){b??=$.keys();for(let Ce of b)U.set(Ce,h.kp)}else for(let[Ce,ft]of N)U.set(Ce,ft)}),U}($,this._globalTimelineStyles);for(let[Jt,wn]of ft){const x=Cn(wn,Ce,b);this._pendingStyles.set(Jt,x),this._localTimelineStyles.has(Jt)||this._backFill.set(Jt,this._globalTimelineStyles.get(Jt)??h.kp),this._updateStyle(Jt,x)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach(($,U)=>{this._currentKeyframe.set(U,$)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach(($,U)=>{this._currentKeyframe.has(U)||this._currentKeyframe.set(U,$)}))}snapshotCurrentStyles(){for(let[$,U]of this._localTimelineStyles)this._pendingStyles.set($,U),this._updateStyle($,U)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const $=[];for(let U in this._currentKeyframe)$.push(U);return $}mergeTimelineCollectedStyles($){$._styleSummary.forEach((U,b)=>{const N=this._styleSummary.get(b);(!N||U.time>N.time)&&this._updateStyle(b,U.value)})}buildKeyframes(){this.applyStylesToKeyframe();const $=new Set,U=new Set,b=1===this._keyframes.size&&0===this.duration;let N=[];this._keyframes.forEach((Jt,wn)=>{const x=new Map([...this._backFill,...Jt]);x.forEach((k,_e)=>{k===h.FX?$.add(_e):k===h.kp&&U.add(_e)}),b||x.set("offset",wn/this.duration),N.push(x)});const Ce=[...$.values()],ft=[...U.values()];if(b){const Jt=N[0],wn=new Map(Jt);Jt.set("offset",0),wn.set("offset",1),N=[Jt,wn]}return Co(this.element,N,Ce,ft,this.duration,this.startTime,this.easing,!1)}}class _o extends Tr{constructor($,U,b,N,Ce,ft,Jt=!1){super($,U,ft.delay),this.keyframes=b,this.preStyleProps=N,this.postStyleProps=Ce,this._stretchStartingKeyframe=Jt,this.timings={duration:ft.duration,delay:ft.delay,easing:ft.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let $=this.keyframes,{delay:U,duration:b,easing:N}=this.timings;if(this._stretchStartingKeyframe&&U){const Ce=[],ft=b+U,Jt=U/ft,wn=new Map($[0]);wn.set("offset",0),Ce.push(wn);const x=new Map($[0]);x.set("offset",zo(Jt)),Ce.push(x);const k=$.length-1;for(let _e=1;_e<=k;_e++){let lt=new Map($[_e]);const Wt=lt.get("offset");lt.set("offset",zo((U+Wt*b)/ft)),Ce.push(lt)}b=ft,U=0,N="",$=Ce}return Co(this.element,$,this.preStyleProps,this.postStyleProps,b,U,N,!0)}}function zo(F,$=3){const U=Math.pow(10,$-1);return Math.round(F*U)/U}function ps(F,$,U,b,N,Ce,ft,Jt,wn,x,k,_e,lt){return{type:0,element:F,triggerName:$,isRemovalTransition:N,fromState:U,fromStyles:Ce,toState:b,toStyles:ft,timelines:Jt,queriedElements:wn,preStyleProps:x,postStyleProps:k,totalTime:_e,errors:lt}}const Hs={};class Qr{constructor($,U,b){this._triggerName=$,this.ast=U,this._stateStyles=b}match($,U,b,N){return function Js(F,$,U,b,N){return F.some(Ce=>Ce($,U,b,N))}(this.ast.matchers,$,U,b,N)}buildStyles($,U,b){let N=this._stateStyles.get("*");return void 0!==$&&(N=this._stateStyles.get($?.toString())||N),N?N.buildStyles(U,b):new Map}build($,U,b,N,Ce,ft,Jt,wn,x,k){const _e=[],lt=this.ast.options&&this.ast.options.params||Hs,an=this.buildStyles(b,Jt&&Jt.params||Hs,_e),xn=wn&&wn.params||Hs,qn=this.buildStyles(N,xn,_e),hi=new Set,qi=new Map,tr=new Map,sr="void"===N,Rr={params:ts(xn,lt),delay:this.ast.options?.delay},zr=k?[]:Ci($,U,this.ast.animation,Ce,ft,an,qn,Rr,x,_e);let eo=0;return zr.forEach(Io=>{eo=Math.max(Io.duration+Io.delay,eo)}),_e.length?ps(U,this._triggerName,b,N,sr,an,qn,[],[],qi,tr,eo,_e):(zr.forEach(Io=>{const qr=Io.element,rs=K(qi,qr,new Set);Io.preStyleProps.forEach(El=>rs.add(El));const ws=K(tr,qr,new Set);Io.postStyleProps.forEach(El=>ws.add(El)),qr!==U&&hi.add(qr)}),ps(U,this._triggerName,b,N,sr,an,qn,zr,[...hi.values()],qi,tr,eo))}}function ts(F,$){const U={...$};return Object.entries(F).forEach(([b,N])=>{null!=N&&(U[b]=N)}),U}class Qo{constructor($,U,b){this.styles=$,this.defaultParams=U,this.normalizer=b}buildStyles($,U){const b=new Map,N=ts($,this.defaultParams);return this.styles.styles.forEach(Ce=>{"string"!=typeof Ce&&Ce.forEach((ft,Jt)=>{ft&&(ft=Cn(ft,N,U));const wn=this.normalizer.normalizePropertyName(Jt,U);ft=this.normalizer.normalizeStyleValue(Jt,wn,ft,U),b.set(Jt,ft)})}),b}}class hl{constructor($,U,b){this.name=$,this.ast=U,this._normalizer=b,this.transitionFactories=[],this.states=new Map,U.states.forEach(N=>{this.states.set(N.name,new Qo(N.style,N.options&&N.options.params||{},b))}),Oa(this.states,"true","1"),Oa(this.states,"false","0"),U.transitions.forEach(N=>{this.transitionFactories.push(new Qr($,N,this.states))}),this.fallbackTransition=function Bs(F,$,U){return new Qr(F,{type:h.If.Transition,animation:{type:h.If.Sequence,steps:[],options:null},matchers:[(ft,Jt)=>!0],options:null,queryCount:0,depCount:0},$)}($,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition($,U,b,N){return this.transitionFactories.find(ft=>ft.match($,U,b,N))||null}matchStyles($,U,b){return this.fallbackTransition.buildStyles($,U,b)}}function Oa(F,$,U){F.has($)?F.has(U)||F.set(U,F.get($)):F.has(U)&&F.set($,F.get(U))}const qs=new Lo;class Er{constructor($,U,b){this.bodyNode=$,this._driver=U,this._normalizer=b,this._animations=new Map,this._playersById=new Map,this.players=[]}register($,U){const b=[],Ce=Si(this._driver,U,b,[]);if(b.length)throw function ge(F){return new n.wOt(3503,!1)}();this._animations.set($,Ce)}_buildPlayer($,U,b){const N=$.element,Ce=Oe(this._normalizer,$.keyframes,U,b);return this._driver.animate(N,Ce,$.duration,$.delay,$.easing,[],!0)}create($,U,b={}){const N=[],Ce=this._animations.get($);let ft;const Jt=new Map;if(Ce?(ft=Ci(this._driver,U,Ce,Bn,jn,new Map,new Map,b,qs,N),ft.forEach(k=>{const _e=K(Jt,k.element,new Map);k.postStyleProps.forEach(lt=>_e.set(lt,null))})):(N.push(function Xe(){return new n.wOt(3300,!1)}()),ft=[]),N.length)throw function ot(F){return new n.wOt(3504,!1)}();Jt.forEach((k,_e)=>{k.forEach((lt,Wt)=>{k.set(Wt,this._driver.computeStyle(_e,Wt,h.kp))})});const x=Le(ft.map(k=>{const _e=Jt.get(k.element);return this._buildPlayer(k,new Map,_e)}));return this._playersById.set($,x),x.onDestroy(()=>this.destroy($)),this.players.push(x),x}destroy($){const U=this._getPlayer($);U.destroy(),this._playersById.delete($);const b=this.players.indexOf(U);b>=0&&this.players.splice(b,1)}_getPlayer($){const U=this._playersById.get($);if(!U)throw function dt(F){return new n.wOt(3301,!1)}();return U}listen($,U,b,N){const Ce=at(U,"","","");return ye(this._getPlayer($),b,Ce,N),()=>{}}command($,U,b,N){if("register"==b)return void this.register($,N[0]);if("create"==b)return void this.create($,U,N[0]||{});const Ce=this._getPlayer($);switch(b){case"play":Ce.play();break;case"pause":Ce.pause();break;case"reset":Ce.reset();break;case"restart":Ce.restart();break;case"finish":Ce.finish();break;case"init":Ce.init();break;case"setPosition":Ce.setPosition(parseFloat(N[0]));break;case"destroy":this.destroy($)}}}const js="ng-animate-queued",Zo="ng-animate-disabled",Bo=[],cs={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Pa={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_r="__ng_removed";class $s{get params(){return this.options.params}constructor($,U=""){this.namespaceId=U;const b=$&&$.hasOwnProperty("value");if(this.value=function To(F){return F??null}(b?$.value:$),b){const{value:Ce,...ft}=$;this.options=ft}else this.options={};this.options.params||(this.options.params={})}absorbOptions($){const U=$.params;if(U){const b=this.options.params;Object.keys(U).forEach(N=>{null==b[N]&&(b[N]=U[N])})}}}const fa="void",sa=new $s(fa);class Ba{constructor($,U,b){this.id=$,this.hostElement=U,this._engine=b,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+$,Zn(U,this._hostClassName)}listen($,U,b,N){if(!this._triggers.has(U))throw function xe(F,$){return new n.wOt(3302,!1)}();if(null==b||0==b.length)throw function Re(F){return new n.wOt(3303,!1)}();if(!function ta(F){return"start"==F||"done"==F}(b))throw function Ue(F,$){return new n.wOt(3400,!1)}();const Ce=K(this._elementListeners,$,[]),ft={name:U,phase:b,callback:N};Ce.push(ft);const Jt=K(this._engine.statesByElement,$,new Map);return Jt.has(U)||(Zn($,It),Zn($,It+"-"+U),Jt.set(U,sa)),()=>{this._engine.afterFlush(()=>{const wn=Ce.indexOf(ft);wn>=0&&Ce.splice(wn,1),this._triggers.has(U)||Jt.delete(U)})}}register($,U){return!this._triggers.has($)&&(this._triggers.set($,U),!0)}_getTrigger($){const U=this._triggers.get($);if(!U)throw function ee(F){return new n.wOt(3401,!1)}();return U}trigger($,U,b,N=!0){const Ce=this._getTrigger(U),ft=new _s(this.id,U,$);let Jt=this._engine.statesByElement.get($);Jt||(Zn($,It),Zn($,It+"-"+U),this._engine.statesByElement.set($,Jt=new Map));let wn=Jt.get(U);const x=new $s(b,this.id);if(!(b&&b.hasOwnProperty("value"))&&wn&&x.absorbOptions(wn.options),Jt.set(U,x),wn||(wn=sa),x.value!==fa&&wn.value===x.value){if(!function Ri(F,$){const U=Object.keys(F),b=Object.keys($);if(U.length!=b.length)return!1;for(let N=0;N<U.length;N++){const Ce=U[N];if(!$.hasOwnProperty(Ce)||F[Ce]!==$[Ce])return!1}return!0}(wn.params,x.params)){const xn=[],qn=Ce.matchStyles(wn.value,wn.params,xn),hi=Ce.matchStyles(x.value,x.params,xn);xn.length?this._engine.reportError(xn):this._engine.afterFlush(()=>{rn($,qn),wt($,hi)})}return}const lt=K(this._engine.playersByElement,$,[]);lt.forEach(xn=>{xn.namespaceId==this.id&&xn.triggerName==U&&xn.queued&&xn.destroy()});let Wt=Ce.matchTransition(wn.value,x.value,$,x.params),an=!1;if(!Wt){if(!N)return;Wt=Ce.fallbackTransition,an=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:$,triggerName:U,transition:Wt,fromState:wn,toState:x,player:ft,isFallbackTransition:an}),an||(Zn($,js),ft.onStart(()=>{Ii($,js)})),ft.onDone(()=>{let xn=this.players.indexOf(ft);xn>=0&&this.players.splice(xn,1);const qn=this._engine.playersByElement.get($);if(qn){let hi=qn.indexOf(ft);hi>=0&&qn.splice(hi,1)}}),this.players.push(ft),lt.push(ft),ft}deregister($){this._triggers.delete($),this._engine.statesByElement.forEach(U=>U.delete($)),this._elementListeners.forEach((U,b)=>{this._elementListeners.set(b,U.filter(N=>N.name!=$))})}clearElementCache($){this._engine.statesByElement.delete($),this._elementListeners.delete($);const U=this._engine.playersByElement.get($);U&&(U.forEach(b=>b.destroy()),this._engine.playersByElement.delete($))}_signalRemovalForInnerTriggers($,U){const b=this._engine.driver.query($,vn,!0);b.forEach(N=>{if(N[_r])return;const Ce=this._engine.fetchNamespacesByElement(N);Ce.size?Ce.forEach(ft=>ft.triggerLeaveAnimation(N,U,!1,!0)):this.clearElementCache(N)}),this._engine.afterFlushAnimationsDone(()=>b.forEach(N=>this.clearElementCache(N)))}triggerLeaveAnimation($,U,b,N){const Ce=this._engine.statesByElement.get($),ft=new Map;if(Ce){const Jt=[];if(Ce.forEach((wn,x)=>{if(ft.set(x,wn.value),this._triggers.has(x)){const k=this.trigger($,x,fa,N);k&&Jt.push(k)}}),Jt.length)return this._engine.markElementAsRemoved(this.id,$,!0,U,ft),b&&Le(Jt).onDone(()=>this._engine.processLeaveNode($)),!0}return!1}prepareLeaveAnimationListeners($){const U=this._elementListeners.get($),b=this._engine.statesByElement.get($);if(U&&b){const N=new Set;U.forEach(Ce=>{const ft=Ce.name;if(N.has(ft))return;N.add(ft);const wn=this._triggers.get(ft).fallbackTransition,x=b.get(ft)||sa,k=new $s(fa),_e=new _s(this.id,ft,$);this._engine.totalQueuedPlayers++,this._queue.push({element:$,triggerName:ft,transition:wn,fromState:x,toState:k,player:_e,isFallbackTransition:!0})})}}removeNode($,U){const b=this._engine;if($.childElementCount&&this._signalRemovalForInnerTriggers($,U),this.triggerLeaveAnimation($,U,!0))return;let N=!1;if(b.totalAnimations){const Ce=b.players.length?b.playersByQueriedElement.get($):[];if(Ce&&Ce.length)N=!0;else{let ft=$;for(;ft=ft.parentNode;)if(b.statesByElement.get(ft)){N=!0;break}}}if(this.prepareLeaveAnimationListeners($),N)b.markElementAsRemoved(this.id,$,!1,U);else{const Ce=$[_r];(!Ce||Ce===cs)&&(b.afterFlush(()=>this.clearElementCache($)),b.destroyInnerAnimations($),b._onRemovalComplete($,U))}}insertNode($,U){Zn($,this._hostClassName)}drainQueuedTransitions($){const U=[];return this._queue.forEach(b=>{const N=b.player;if(N.destroyed)return;const Ce=b.element,ft=this._elementListeners.get(Ce);ft&&ft.forEach(Jt=>{if(Jt.name==b.triggerName){const wn=at(Ce,b.triggerName,b.fromState.value,b.toState.value);wn._data=$,ye(b.player,Jt.phase,wn,Jt.callback)}}),N.markedForDestroy?this._engine.afterFlush(()=>{N.destroy()}):U.push(b)}),this._queue=[],U.sort((b,N)=>{const Ce=b.transition.ast.depCount,ft=N.transition.ast.depCount;return 0==Ce||0==ft?Ce-ft:this._engine.driver.containsElement(b.element,N.element)?1:-1})}destroy($){this.players.forEach(U=>U.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,$)}}class Ml{_onRemovalComplete($,U){this.onRemovalComplete($,U)}constructor($,U,b,N){this.bodyNode=$,this.driver=U,this._normalizer=b,this.scheduler=N,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=(Ce,ft)=>{}}get queuedPlayers(){const $=[];return this._namespaceList.forEach(U=>{U.players.forEach(b=>{b.queued&&$.push(b)})}),$}createNamespace($,U){const b=new Ba($,U,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,U)?this._balanceNamespaceList(b,U):(this.newHostElements.set(U,b),this.collectEnterElement(U)),this._namespaceLookup[$]=b}_balanceNamespaceList($,U){const b=this._namespaceList,N=this.namespacesByHostElement;if(b.length-1>=0){let ft=!1,Jt=this.driver.getParentElement(U);for(;Jt;){const wn=N.get(Jt);if(wn){const x=b.indexOf(wn);b.splice(x+1,0,$),ft=!0;break}Jt=this.driver.getParentElement(Jt)}ft||b.unshift($)}else b.push($);return N.set(U,$),$}register($,U){let b=this._namespaceLookup[$];return b||(b=this.createNamespace($,U)),b}registerTrigger($,U,b){let N=this._namespaceLookup[$];N&&N.register(U,b)&&this.totalAnimations++}destroy($,U){$&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const b=this._fetchNamespace($);this.namespacesByHostElement.delete(b.hostElement);const N=this._namespaceList.indexOf(b);N>=0&&this._namespaceList.splice(N,1),b.destroy(U),delete this._namespaceLookup[$]}))}_fetchNamespace($){return this._namespaceLookup[$]}fetchNamespacesByElement($){const U=new Set,b=this.statesByElement.get($);if(b)for(let N of b.values())if(N.namespaceId){const Ce=this._fetchNamespace(N.namespaceId);Ce&&U.add(Ce)}return U}trigger($,U,b,N){if(po(U)){const Ce=this._fetchNamespace($);if(Ce)return Ce.trigger(U,b,N),!0}return!1}insertNode($,U,b,N){if(!po(U))return;const Ce=U[_r];if(Ce&&Ce.setForRemoval){Ce.setForRemoval=!1,Ce.setForMove=!0;const ft=this.collectedLeaveElements.indexOf(U);ft>=0&&this.collectedLeaveElements.splice(ft,1)}if($){const ft=this._fetchNamespace($);ft&&ft.insertNode(U,b)}N&&this.collectEnterElement(U)}collectEnterElement($){this.collectedEnterElements.push($)}markElementAsDisabled($,U){U?this.disabledNodes.has($)||(this.disabledNodes.add($),Zn($,Zo)):this.disabledNodes.has($)&&(this.disabledNodes.delete($),Ii($,Zo))}removeNode($,U,b){if(po(U)){this.scheduler?.notify();const N=$?this._fetchNamespace($):null;N?N.removeNode(U,b):this.markElementAsRemoved($,U,!1,b);const Ce=this.namespacesByHostElement.get(U);Ce&&Ce.id!==$&&Ce.removeNode(U,b)}else this._onRemovalComplete(U,b)}markElementAsRemoved($,U,b,N,Ce){this.collectedLeaveElements.push(U),U[_r]={namespaceId:$,setForRemoval:N,hasAnimation:b,removedBeforeQueried:!1,previousTriggersValues:Ce}}listen($,U,b,N,Ce){return po(U)?this._fetchNamespace($).listen(U,b,N,Ce):()=>{}}_buildInstruction($,U,b,N,Ce){return $.transition.build(this.driver,$.element,$.fromState.value,$.toState.value,b,N,$.fromState.options,$.toState.options,U,Ce)}destroyInnerAnimations($){let U=this.driver.query($,vn,!0);U.forEach(b=>this.destroyActiveAnimationsForElement(b)),0!=this.playersByQueriedElement.size&&(U=this.driver.query($,ht,!0),U.forEach(b=>this.finishActiveQueriedAnimationOnElement(b)))}destroyActiveAnimationsForElement($){const U=this.playersByElement.get($);U&&U.forEach(b=>{b.queued?b.markedForDestroy=!0:b.destroy()})}finishActiveQueriedAnimationOnElement($){const U=this.playersByQueriedElement.get($);U&&U.forEach(b=>b.finish())}whenRenderingDone(){return new Promise($=>{if(this.players.length)return Le(this.players).onDone(()=>$());$()})}processLeaveNode($){const U=$[_r];if(U&&U.setForRemoval){if($[_r]=cs,U.namespaceId){this.destroyInnerAnimations($);const b=this._fetchNamespace(U.namespaceId);b&&b.clearElementCache($)}this._onRemovalComplete($,U.setForRemoval)}$.classList?.contains(Zo)&&this.markElementAsDisabled($,!1),this.driver.query($,".ng-animate-disabled",!0).forEach(b=>{this.markElementAsDisabled(b,!1)})}flush($=-1){let U=[];if(this.newHostElements.size&&(this.newHostElements.forEach((b,N)=>this._balanceNamespaceList(b,N)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let b=0;b<this.collectedEnterElements.length;b++)Zn(this.collectedEnterElements[b],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const b=[];try{U=this._flushAnimations(b,$)}finally{for(let N=0;N<b.length;N++)b[N]()}}else for(let b=0;b<this.collectedLeaveElements.length;b++)this.processLeaveNode(this.collectedLeaveElements[b]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(b=>b()),this._flushFns=[],this._whenQuietFns.length){const b=this._whenQuietFns;this._whenQuietFns=[],U.length?Le(U).onDone(()=>{b.forEach(N=>N())}):b.forEach(N=>N())}}reportError($){throw function W(F){return new n.wOt(3402,!1)}()}_flushAnimations($,U){const b=new Lo,N=[],Ce=new Map,ft=[],Jt=new Map,wn=new Map,x=new Map,k=new Set;this.disabledNodes.forEach(Vr=>{k.add(Vr);const co=this.driver.query(Vr,".ng-animate-queued",!0);for(let Ro=0;Ro<co.length;Ro++)k.add(co[Ro])});const _e=this.bodyNode,lt=Array.from(this.statesByElement.keys()),Wt=Kt(lt,this.collectedEnterElements),an=new Map;let xn=0;Wt.forEach((Vr,co)=>{const Ro=Bn+xn++;an.set(co,Ro),Vr.forEach(Gs=>Zn(Gs,Ro))});const qn=[],hi=new Set,qi=new Set;for(let Vr=0;Vr<this.collectedLeaveElements.length;Vr++){const co=this.collectedLeaveElements[Vr],Ro=co[_r];Ro&&Ro.setForRemoval&&(qn.push(co),hi.add(co),Ro.hasAnimation?this.driver.query(co,".ng-star-inserted",!0).forEach(Gs=>hi.add(Gs)):qi.add(co))}const tr=new Map,sr=Kt(lt,Array.from(hi));sr.forEach((Vr,co)=>{const Ro=jn+xn++;tr.set(co,Ro),Vr.forEach(Gs=>Zn(Gs,Ro))}),$.push(()=>{Wt.forEach((Vr,co)=>{const Ro=an.get(co);Vr.forEach(Gs=>Ii(Gs,Ro))}),sr.forEach((Vr,co)=>{const Ro=tr.get(co);Vr.forEach(Gs=>Ii(Gs,Ro))}),qn.forEach(Vr=>{this.processLeaveNode(Vr)})});const Rr=[],zr=[];for(let Vr=this._namespaceList.length-1;Vr>=0;Vr--)this._namespaceList[Vr].drainQueuedTransitions(U).forEach(Ro=>{const Gs=Ro.player,kl=Ro.element;if(Rr.push(Gs),this.collectedEnterElements.length){const qc=kl[_r];if(qc&&qc.setForMove){if(qc.previousTriggersValues&&qc.previousTriggersValues.has(Ro.triggerName)){const dh=qc.previousTriggersValues.get(Ro.triggerName),au=this.statesByElement.get(Ro.element);if(au&&au.has(Ro.triggerName)){const Jp=au.get(Ro.triggerName);Jp.value=dh,au.set(Ro.triggerName,Jp)}}return void Gs.destroy()}}const Jc=!_e||!this.driver.containsElement(_e,kl),Ic=tr.get(kl),pc=an.get(kl),Ka=this._buildInstruction(Ro,b,pc,Ic,Jc);if(Ka.errors&&Ka.errors.length)return void zr.push(Ka);if(Jc)return Gs.onStart(()=>rn(kl,Ka.fromStyles)),Gs.onDestroy(()=>wt(kl,Ka.toStyles)),void N.push(Gs);if(Ro.isFallbackTransition)return Gs.onStart(()=>rn(kl,Ka.fromStyles)),Gs.onDestroy(()=>wt(kl,Ka.toStyles)),void N.push(Gs);const n_=[];Ka.timelines.forEach(qc=>{qc.stretchStartingKeyframe=!0,this.disabledNodes.has(qc.element)||n_.push(qc)}),Ka.timelines=n_,b.append(kl,Ka.timelines),ft.push({instruction:Ka,player:Gs,element:kl}),Ka.queriedElements.forEach(qc=>K(Jt,qc,[]).push(Gs)),Ka.preStyleProps.forEach((qc,dh)=>{if(qc.size){let au=wn.get(dh);au||wn.set(dh,au=new Set),qc.forEach((Jp,$g)=>au.add($g))}}),Ka.postStyleProps.forEach((qc,dh)=>{let au=x.get(dh);au||x.set(dh,au=new Set),qc.forEach((Jp,$g)=>au.add($g))})});if(zr.length){const Vr=[];zr.forEach(co=>{Vr.push(function le(F,$){return new n.wOt(3505,!1)}())}),Rr.forEach(co=>co.destroy()),this.reportError(Vr)}const eo=new Map,Io=new Map;ft.forEach(Vr=>{const co=Vr.element;b.has(co)&&(Io.set(co,co),this._beforeAnimationBuild(Vr.player.namespaceId,Vr.instruction,eo))}),N.forEach(Vr=>{const co=Vr.element;this._getPreviousPlayers(co,!1,Vr.namespaceId,Vr.triggerName,null).forEach(Gs=>{K(eo,co,[]).push(Gs),Gs.destroy()})});const qr=qn.filter(Vr=>Nt(Vr,wn,x)),rs=new Map;zs(rs,this.driver,qi,x,h.kp).forEach(Vr=>{Nt(Vr,wn,x)&&qr.push(Vr)});const El=new Map;Wt.forEach((Vr,co)=>{zs(El,this.driver,new Set(Vr),wn,h.FX)}),qr.forEach(Vr=>{const co=rs.get(Vr),Ro=El.get(Vr);rs.set(Vr,new Map([...co?.entries()??[],...Ro?.entries()??[]]))});const Nl=[],ec=[],Sa={};ft.forEach(Vr=>{const{element:co,player:Ro,instruction:Gs}=Vr;if(b.has(co)){if(k.has(co))return Ro.onDestroy(()=>wt(co,Gs.toStyles)),Ro.disabled=!0,Ro.overrideTotalTime(Gs.totalTime),void N.push(Ro);let kl=Sa;if(Io.size>1){let Ic=co;const pc=[];for(;Ic=Ic.parentNode;){const Ka=Io.get(Ic);if(Ka){kl=Ka;break}pc.push(Ic)}pc.forEach(Ka=>Io.set(Ka,kl))}const Jc=this._buildAnimation(Ro.namespaceId,Gs,eo,Ce,El,rs);if(Ro.setRealPlayer(Jc),kl===Sa)Nl.push(Ro);else{const Ic=this.playersByElement.get(kl);Ic&&Ic.length&&(Ro.parentPlayer=Le(Ic)),N.push(Ro)}}else rn(co,Gs.fromStyles),Ro.onDestroy(()=>wt(co,Gs.toStyles)),ec.push(Ro),k.has(co)&&N.push(Ro)}),ec.forEach(Vr=>{const co=Ce.get(Vr.element);if(co&&co.length){const Ro=Le(co);Vr.setRealPlayer(Ro)}}),N.forEach(Vr=>{Vr.parentPlayer?Vr.syncPlayerEvents(Vr.parentPlayer):Vr.destroy()});for(let Vr=0;Vr<qn.length;Vr++){const co=qn[Vr],Ro=co[_r];if(Ii(co,jn),Ro&&Ro.hasAnimation)continue;let Gs=[];if(Jt.size){let Jc=Jt.get(co);Jc&&Jc.length&&Gs.push(...Jc);let Ic=this.driver.query(co,ht,!0);for(let pc=0;pc<Ic.length;pc++){let Ka=Jt.get(Ic[pc]);Ka&&Ka.length&&Gs.push(...Ka)}}const kl=Gs.filter(Jc=>!Jc.destroyed);kl.length?ei(this,co,kl):this.processLeaveNode(co)}return qn.length=0,Nl.forEach(Vr=>{this.players.push(Vr),Vr.onDone(()=>{Vr.destroy();const co=this.players.indexOf(Vr);this.players.splice(co,1)}),Vr.play()}),Nl}afterFlush($){this._flushFns.push($)}afterFlushAnimationsDone($){this._whenQuietFns.push($)}_getPreviousPlayers($,U,b,N,Ce){let ft=[];if(U){const Jt=this.playersByQueriedElement.get($);Jt&&(ft=Jt)}else{const Jt=this.playersByElement.get($);if(Jt){const wn=!Ce||Ce==fa;Jt.forEach(x=>{x.queued||!wn&&x.triggerName!=N||ft.push(x)})}}return(b||N)&&(ft=ft.filter(Jt=>!(b&&b!=Jt.namespaceId||N&&N!=Jt.triggerName))),ft}_beforeAnimationBuild($,U,b){const Ce=U.element,ft=U.isRemovalTransition?void 0:$,Jt=U.isRemovalTransition?void 0:U.triggerName;for(const wn of U.timelines){const x=wn.element,k=x!==Ce,_e=K(b,x,[]);this._getPreviousPlayers(x,k,ft,Jt,U.toState).forEach(Wt=>{const an=Wt.getRealPlayer();an.beforeDestroy&&an.beforeDestroy(),Wt.destroy(),_e.push(Wt)})}rn(Ce,U.fromStyles)}_buildAnimation($,U,b,N,Ce,ft){const Jt=U.triggerName,wn=U.element,x=[],k=new Set,_e=new Set,lt=U.timelines.map(an=>{const xn=an.element;k.add(xn);const qn=xn[_r];if(qn&&qn.removedBeforeQueried)return new h.sf(an.duration,an.delay);const hi=xn!==wn,qi=function di(F){const $=[];return wi(F,$),$}((b.get(xn)||Bo).map(eo=>eo.getRealPlayer())).filter(eo=>!!eo.element&&eo.element===xn),tr=Ce.get(xn),sr=ft.get(xn),Rr=Oe(this._normalizer,an.keyframes,tr,sr),zr=this._buildPlayer(an,Rr,qi);if(an.subTimeline&&N&&_e.add(xn),hi){const eo=new _s($,Jt,xn);eo.setRealPlayer(zr),x.push(eo)}return zr});x.forEach(an=>{K(this.playersByQueriedElement,an.element,[]).push(an),an.onDone(()=>function wa(F,$,U){let b=F.get($);if(b){if(b.length){const N=b.indexOf(U);b.splice(N,1)}0==b.length&&F.delete($)}return b}(this.playersByQueriedElement,an.element,an))}),k.forEach(an=>Zn(an,Vn));const Wt=Le(lt);return Wt.onDestroy(()=>{k.forEach(an=>Ii(an,Vn)),wt(wn,U.toStyles)}),_e.forEach(an=>{K(N,an,[]).push(Wt)}),Wt}_buildPlayer($,U,b){return U.length>0?this.driver.animate($.element,U,$.duration,$.delay,$.easing,b):new h.sf($.duration,$.delay)}}class _s{constructor($,U,b){this.namespaceId=$,this.triggerName=U,this.element=b,this._player=new h.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($){this._containsRealPlayer||(this._player=$,this._queuedCallbacks.forEach((U,b)=>{U.forEach(N=>ye($,b,void 0,N))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime($.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime($){this.totalTime=$}syncPlayerEvents($){const U=this._player;U.triggerCallback&&$.onStart(()=>U.triggerCallback("start")),$.onDone(()=>this.finish()),$.onDestroy(()=>this.destroy())}_queueEvent($,U){K(this._queuedCallbacks,$,[]).push(U)}onDone($){this.queued&&this._queueEvent("done",$),this._player.onDone($)}onStart($){this.queued&&this._queueEvent("start",$),this._player.onStart($)}onDestroy($){this.queued&&this._queueEvent("destroy",$),this._player.onDestroy($)}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($){this.queued||this._player.setPosition($)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback($){const U=this._player;U.triggerCallback&&U.triggerCallback($)}}function po(F){return F&&1===F.nodeType}function Ls(F,$){const U=F.style.display;return F.style.display=$??"none",U}function zs(F,$,U,b,N){const Ce=[];U.forEach(wn=>Ce.push(Ls(wn)));const ft=[];b.forEach((wn,x)=>{const k=new Map;wn.forEach(_e=>{const lt=$.computeStyle(x,_e,N);k.set(_e,lt),(!lt||0==lt.length)&&(x[_r]=Pa,ft.push(x))}),F.set(x,k)});let Jt=0;return U.forEach(wn=>Ls(wn,Ce[Jt++])),ft}function Kt(F,$){const U=new Map;if(F.forEach(Jt=>U.set(Jt,[])),0==$.length)return U;const N=new Set($),Ce=new Map;function ft(Jt){if(!Jt)return 1;let wn=Ce.get(Jt);if(wn)return wn;const x=Jt.parentNode;return wn=U.has(x)?x:N.has(x)?1:ft(x),Ce.set(Jt,wn),wn}return $.forEach(Jt=>{const wn=ft(Jt);1!==wn&&U.get(wn).push(Jt)}),U}function Zn(F,$){F.classList?.add($)}function Ii(F,$){F.classList?.remove($)}function ei(F,$,U){Le(U).onDone(()=>F.processLeaveNode($))}function wi(F,$){for(let U=0;U<F.length;U++){const b=F[U];b instanceof h.ui?wi(b.players,$):$.push(b)}}function Nt(F,$,U){const b=U.get(F);if(!b)return!1;let N=$.get(F);return N?b.forEach(Ce=>N.add(Ce)):$.set(F,b),U.delete(F),!0}class Dt{constructor($,U,b,N){this._driver=U,this._normalizer=b,this._triggerCache={},this.onRemovalComplete=(Ce,ft)=>{},this._transitionEngine=new Ml($.body,U,b,N),this._timelineEngine=new Er($.body,U,b),this._transitionEngine.onRemovalComplete=(Ce,ft)=>this.onRemovalComplete(Ce,ft)}registerTrigger($,U,b,N,Ce){const ft=$+"-"+N;let Jt=this._triggerCache[ft];if(!Jt){const wn=[],k=Si(this._driver,Ce,wn,[]);if(wn.length)throw function ne(F,$){return new n.wOt(3404,!1)}();Jt=function xs(F,$,U){return new hl(F,$,U)}(N,k,this._normalizer),this._triggerCache[ft]=Jt}this._transitionEngine.registerTrigger(U,N,Jt)}register($,U){this._transitionEngine.register($,U)}destroy($,U){this._transitionEngine.destroy($,U)}onInsert($,U,b,N){this._transitionEngine.insertNode($,U,b,N)}onRemove($,U,b){this._transitionEngine.removeNode($,U,b)}disableAnimations($,U){this._transitionEngine.markElementAsDisabled($,U)}process($,U,b,N){if("@"==b.charAt(0)){const[Ce,ft]=ve(b);this._timelineEngine.command(Ce,U,ft,N)}else this._transitionEngine.trigger($,U,b,N)}listen($,U,b,N,Ce){if("@"==b.charAt(0)){const[ft,Jt]=ve(b);return this._timelineEngine.listen(ft,U,Jt,Ce)}return this._transitionEngine.listen($,U,b,N,Ce)}flush($=-1){this._transitionEngine.flush($)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone($){this._transitionEngine.afterFlushAnimationsDone($)}}class St{constructor($,U,b){this._element=$,this._startStyles=U,this._endStyles=b,this._state=0;let N=St.initialStylesByElement.get($);N||St.initialStylesByElement.set($,N=new Map),this._initialStyles=N}start(){this._state<1&&(this._startStyles&&wt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(wt(this._element,this._initialStyles),this._endStyles&&(wt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(St.initialStylesByElement.delete(this._element),this._startStyles&&(rn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(rn(this._element,this._endStyles),this._endStyles=null),wt(this._element,this._initialStyles),this._state=3)}}function Sn(F){let $=null;return F.forEach((U,b)=>{(function Jn(F){return"display"===F||"position"===F})(b)&&($=$||new Map,$.set(b,U))}),$}St.initialStylesByElement=new WeakMap;class oi{constructor($,U,b,N){this.element=$,this.keyframes=U,this.options=b,this._specialStyles=N,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=b.duration,this._delay=b.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($=>$()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const $=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,$,this.options),this._finalKeyframe=$.length?$[$.length-1]:new Map;const U=()=>this._onFinish();this.domPlayer.addEventListener("finish",U),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",U)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject($){const U=[];return $.forEach(b=>{U.push(Object.fromEntries(b))}),U}_triggerWebAnimation($,U,b){return $.animate(this._convertKeyframesToObject(U),b)}onStart($){this._originalOnStartFns.push($),this._onStartFns.push($)}onDone($){this._originalOnDoneFns.push($),this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach($=>$()),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($=>$()),this._onDestroyFns=[])}setPosition($){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=$*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const $=new Map;this.hasStarted()&&this._finalKeyframe.forEach((b,N)=>{"offset"!==N&&$.set(N,this._finished?b:Mn(this.element,N))}),this.currentSnapshot=$}triggerCallback($){const U="start"===$?this._onStartFns:this._onDoneFns;U.forEach(b=>b()),U.length=0}}class Ji{validateStyleProperty($){return!0}validateAnimatableStyleProperty($){return!0}matchesElement($,U){return!1}containsElement($,U){return st($,U)}getParentElement($){return pe($)}query($,U,b){return Gt($,U,b)}computeStyle($,U,b){return Mn($,U)}animate($,U,b,N,Ce,ft=[]){const wn={duration:b,delay:N,fill:0==N?"both":"forwards"};Ce&&(wn.easing=Ce);const x=new Map,k=ft.filter(Wt=>Wt instanceof oi);(function Fi(F,$){return 0===F||0===$})(b,N)&&k.forEach(Wt=>{Wt.currentSnapshot.forEach((an,xn)=>x.set(xn,an))});let _e=function bt(F){return F.length?F[0]instanceof Map?F:F.map($=>new Map(Object.entries($))):[]}(U).map(Wt=>new Map(Wt));_e=function Ai(F,$,U){if(U.size&&$.length){let b=$[0],N=[];if(U.forEach((Ce,ft)=>{b.has(ft)||N.push(ft),b.set(ft,Ce)}),N.length)for(let Ce=1;Ce<$.length;Ce++){let ft=$[Ce];N.forEach(Jt=>ft.set(Jt,Mn(F,Jt)))}}return $}($,_e,x);const lt=function Xt(F,$){let U=null,b=null;return Array.isArray($)&&$.length?(U=Sn($[0]),$.length>1&&(b=Sn($[$.length-1]))):$ instanceof Map&&(U=Sn($)),U||b?new St(F,U,b):null}($,_e);return new oi($,_e,wn,lt)}}const Ra="@.disabled";class Ds{constructor($,U,b,N){this.namespaceId=$,this.delegate=U,this.engine=b,this._onDestroy=N,this.\u0275type=0}get data(){return this.delegate.data}destroyNode($){this.delegate.destroyNode?.($)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement($,U){return this.delegate.createElement($,U)}createComment($){return this.delegate.createComment($)}createText($){return this.delegate.createText($)}appendChild($,U){this.delegate.appendChild($,U),this.engine.onInsert(this.namespaceId,U,$,!1)}insertBefore($,U,b,N=!0){this.delegate.insertBefore($,U,b),this.engine.onInsert(this.namespaceId,U,$,N)}removeChild($,U,b){this.engine.onRemove(this.namespaceId,U,this.delegate)}selectRootElement($,U){return this.delegate.selectRootElement($,U)}parentNode($){return this.delegate.parentNode($)}nextSibling($){return this.delegate.nextSibling($)}setAttribute($,U,b,N){this.delegate.setAttribute($,U,b,N)}removeAttribute($,U,b){this.delegate.removeAttribute($,U,b)}addClass($,U){this.delegate.addClass($,U)}removeClass($,U){this.delegate.removeClass($,U)}setStyle($,U,b,N){this.delegate.setStyle($,U,b,N)}removeStyle($,U,b){this.delegate.removeStyle($,U,b)}setProperty($,U,b){"@"==U.charAt(0)&&U==Ra?this.disableAnimations($,!!b):this.delegate.setProperty($,U,b)}setValue($,U){this.delegate.setValue($,U)}listen($,U,b){return this.delegate.listen($,U,b)}disableAnimations($,U){this.engine.disableAnimations($,U)}}class ga extends Ds{constructor($,U,b,N,Ce){super(U,b,N,Ce),this.factory=$,this.namespaceId=U}setProperty($,U,b){"@"==U.charAt(0)?"."==U.charAt(1)&&U==Ra?this.disableAnimations($,b=void 0===b||!!b):this.engine.process(this.namespaceId,$,U.slice(1),b):this.delegate.setProperty($,U,b)}listen($,U,b){if("@"==U.charAt(0)){const N=function Ns(F){switch(F){case"body":return document.body;case"document":return document;case"window":return window;default:return F}}($);let Ce=U.slice(1),ft="";return"@"!=Ce.charAt(0)&&([Ce,ft]=function ba(F){const $=F.indexOf(".");return[F.substring(0,$),F.slice($+1)]}(Ce)),this.engine.listen(this.namespaceId,N,Ce,ft,Jt=>{this.factory.scheduleListenerCallback(Jt._data||-1,b,Jt)})}return this.delegate.listen($,U,b)}}class Os{constructor($,U,b){this.delegate=$,this.engine=U,this._zone=b,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,U.onRemovalComplete=(N,Ce)=>{const ft=Ce?.parentNode(N);ft&&Ce.removeChild(ft,N)}}createRenderer($,U){const N=this.delegate.createRenderer($,U);if(!$||!U?.data?.animation){const x=this._rendererCache;let k=x.get(N);return k||(k=new Ds("",N,this.engine,()=>x.delete(N)),x.set(N,k)),k}const Ce=U.id,ft=U.id+"-"+this._currentId;this._currentId++,this.engine.register(ft,$);const Jt=x=>{Array.isArray(x)?x.forEach(Jt):this.engine.registerTrigger(Ce,ft,$,x.name,x)};return U.data.animation.forEach(Jt),new ga(this,ft,N,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback($,U,b){if($>=0&&$<this._microtaskId)return void this._zone.run(()=>U(b));const N=this._animationCallbacksBuffer;0==N.length&&queueMicrotask(()=>{this._zone.run(()=>{N.forEach(Ce=>{const[ft,Jt]=Ce;ft(Jt)}),this._animationCallbacksBuffer=[]})}),N.push([U,b])}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 $i=c(61142);const nn=[{provide:ni,useFactory:function Ft(){return new Hi}},{provide:Dt,useClass:(()=>{var F;class $ extends Dt{constructor(b,N,Ce){super(b,N,Ce,(0,n.WQX)(n.An2,{optional:!0}))}ngOnDestroy(){this.flush()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO($i.qQ),n.KVO(Un),n.KVO(ni))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac}),$})()},{provide:n._9s,useFactory:function mt(F,$,U){return new Os(F,$,U)},deps:[r.B7,Dt,n.SKi]}],kt=[{provide:Un,useFactory:()=>new Ji},{provide:n.bc$,useValue:"BrowserAnimations"},...nn],bn=[{provide:Un,useClass:kn},{provide:n.bc$,useValue:"NoopAnimations"},...nn];let lr=(()=>{var F;class ${static withConfig(b){return{ngModule:$,providers:b.disableAnimations?bn:kt}}}return(F=$).\u0275fac=function(b){return new(b||F)},F.\u0275mod=n.$C({type:F}),F.\u0275inj=n.G2t({providers:kt,imports:[r.Bb]}),$})();var Go=c(85161),Ui=c(3816),ns=c(14709),La=c(35965),Ps=c(26814),Or=c(78812),pl=c(20812),Na=c(95212),Ko=c(52117),is=c(47847),pr=c(4208),Br=c(72147),xr=c(91384),wr=c(14714),ys=c(10174),fo=c(80583),Ts=c(31315),yr=c(43848),Cr=c(26875),tn=c(82546),xt=c(99458),Ht=c(64124),ut=c(1242),cn=c(83128),si=c(3960),vi=c(7486),ur=c(10404),gr=c(37898),or=c(81038),zn=c(54676),pi=c(44224),Kn=c(3457),cr=c(93964),ji=c(65706),jr=c(37438),No=c(17669),Ur=c(47973),go=c(26537),Xr=c(65240);let Ks=(()=>{var F;class ${}return(F=$).\u0275fac=function(b){return new(b||F)},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-find-coupon-code"]],decls:18,vars:14,consts:[[1,"container"],[1,"dialog-content"],[1,"font-header6","title"],["src","assets/img/coupons_expandable_banner.png","alt","NVIDIA",1,"coupon-image"],["fxLayout","column","fxLayoutAlign","space-between start",1,"font-body2","discription"],["align","end"],["mat-button","","mat-dialog-close",""]],template:function(b,N){1&b&&(n.j41(0,"div",0)(1,"div",1)(2,"p",2),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.nrm(5,"img",3),n.j41(6,"div",4)(7,"p"),n.EFF(8),n.nI1(9,"translate"),n.k0s(),n.j41(10,"p"),n.EFF(11),n.nI1(12,"translate"),n.k0s()()(),n.j41(13,"mat-dialog-actions",5)(14,"button",6),n.EFF(15),n.nI1(16,"translate"),n.nI1(17,"uppercase"),n.k0s()()()),2&b&&(n.R7$(3),n.JRh(n.bMT(4,4,"rewards.whereToFindCouponCode")),n.R7$(5),n.JRh(n.bMT(9,6,"rewards.findCouponCodeDescription")),n.R7$(3),n.JRh(n.bMT(12,8,"rewards.findCouponCodeDescription1")),n.R7$(4),n.JRh(n.bMT(17,12,n.bMT(16,10,"common.close"))))},dependencies:[Ur.iV,go.tx,go.E7,Kn.DJ,Kn.sA,$i.Pc,Xr.D9],styles:[".container[_ngcontent-%COMP%]{overflow:hidden;box-shadow:0 4px 4px #0000003d,0 4px 4px #0000003d}.dialog-content[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px;margin-top:21px}.dialog-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin:0 0 24px}.dialog-content[_ngcontent-%COMP%]   .coupon-image[_ngcontent-%COMP%]{width:742px;height:281px}.dialog-content[_ngcontent-%COMP%]   .discription[_ngcontent-%COMP%]{height:60px;margin-top:24px}.dialog-content[_ngcontent-%COMP%]   .discription[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}mat-dialog-content[_ngcontent-%COMP%]{margin:0;padding:0}mat-dialog-actions[_ngcontent-%COMP%]{padding:0 8px 0 0;min-height:0;margin-bottom:8px;margin-top:42px}"]}),$})();var Ca=c(97888),Xs=c(56106),ds=c(29370),Xa=c(50599),fs=c(28139);const Ho=["couponCodeInputBox"],Ea=(F,$)=>({"green-border":F,"red-border":$});function Al(F,$){1&F&&(n.j41(0,"p",11),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"rewards.invalidCoupon")," "))}let Ma=(()=>{var F;class $ extends Ht.${constructor(b,N,Ce,ft){super(b),this.rewardService=N,this.matDialog=Ce,this.telemetryUtilService=ft,this.isLoading=!0,this.codeInvalid=!1,this.actionButtonDisabled=!0,this.logger=b.getLogger("nvapp/couponInputComponent"),this.redeemAction=new n.bkB}validateCoupon(b){if(b.key===No.PK.Space&&b.preventDefault(),this.codeInvalid=!1,this.couponCode){this.couponCode=this.couponCode.replace(/\s+/g,"");const N=new RegExp(/^[a-zA-Z0-9]*$/);this.codeInvalid=!N.test(this.couponCode),this.couponCode.length>jr.OJ.codeLengthNoDashes-1?(this.couponCode=this.couponCode.slice(0,jr.OJ.codeLengthNoDashes),this.codeInvalid=!N.test(this.couponCode),this.actionButtonDisabled=this.codeInvalid):this.actionButtonDisabled=!0}else this.actionButtonDisabled=!0}onRedeemClick(){this.logger.info("coupon redeeming start.."),this.telemetryUtilService.sendClickEvent(ut.EB.RedeemCouponCode,"",!0,this.couponCode),this.redeemCoupon()}redeemCoupon(){this.rewardService.redeemCoupon(this.couponCode).pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.logger.info("redeemCoupon state",b),this.handleRedeemptionResponse(b)},b=>{this.logger.error("Error occurred while redeeming the coupon code ",b),this.codeInvalid=!1})}handleRedeemptionResponse(b){xt.Se.EntitlementFailed===b.rewardRedemptionState?this.showEntilementFailedErrorDialog(b.error?.message):(xt.Se.RedemptionComplete===b.rewardRedemptionState||xt.Se.EntitlementComplete===b.rewardRedemptionState)&&this.resetData()}resetData(){this.couponCode="",this.actionButtonDisabled=!0,this.codeInvalid=!1}showEntilementFailedErrorDialog(b){const N=this.rewardService.showEntilementFailedErrorDialog(!0,b);N.primaryButtonClick.pipe((0,ji.s)(1)).subscribe(()=>{this.logger.info("try again clicked "),N.close(),this.couponCodeInputBox.nativeElement.focus()}),N.secondaryButtonClick.pipe((0,ji.s)(1)).subscribe(()=>{this.logger.info("Close clicked "),N.close(),this.resetData()})}onInfoClicked(){this.telemetryUtilService.sendClickEvent(ut.EB.CouponCodeInfoDialog,"",!0,""),this.detailDialogRef=this.matDialog.open(Ks,{disableClose:!1,autoFocus:!1,restoreFocus:!1,backdropClass:"reward-modal-backdrop",panelClass:["reward-modal-container","common-dialog"],data:void 0})}ngOnDestroy(){super.ngOnDestroy()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(vi.y),n.rXU(go.bZ),n.rXU(ut.AY))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-coupon-input"]],viewQuery:function(b,N){if(1&b&&n.GBs(Ho,5),2&b){let Ce;n.mGM(Ce=n.lsd())&&(N.couponCodeInputBox=Ce.first)}},outputs:{redeemAction:"redeemAction"},features:[n.Vt3],decls:17,vars:18,consts:[["couponCodeInputBox",""],["fxLayout","column","fxLayoutAlign","space-between start","fxFill","",1,"container"],["fxLayout","row","fxLayoutAlign","start center",1,"rewards-coupon-header"],[1,"title","font-sub1"],["mat-icon-button","","id","info",1,"info-button",3,"click"],["svgIcon","info",1,"color-white-hue-1","info-icon"],["fxLayout","column","fxLayoutAlign","space-around start",1,"couponcode-input-container"],["fxLayout","row","fxLayoutAlign","start center",1,"coupon-code-input-section"],["type","text","fxLayoutAlign","center center","matInput","","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"font-caption1","couponcode-input","font-body2","font-color-tertiary",3,"ngModelChange","keyup","ngModel","ngClass","placeholder"],["mat-raised-button","",1,"font-button2","redeem-button","mat-accent",3,"click","disabled"],["class","error-text font-body2",4,"ngIf"],[1,"error-text","font-body2"]],template:function(b,N){if(1&b){const Ce=n.RV6();n.j41(0,"div",1)(1,"div",2)(2,"span",3),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"button",4),n.bIt("click",function(){return n.eBV(Ce),n.Njj(N.onInfoClicked())}),n.nrm(6,"mat-icon",5),n.k0s()(),n.j41(7,"div",6)(8,"div",7)(9,"input",8,0),n.nI1(11,"translate"),n.mxI("ngModelChange",function(Jt){return n.eBV(Ce),n.DH7(N.couponCode,Jt)||(N.couponCode=Jt),n.Njj(Jt)}),n.bIt("keyup",function(Jt){return n.eBV(Ce),n.Njj(N.validateCoupon(Jt))}),n.k0s(),n.j41(12,"button",9),n.bIt("click",function(){return n.eBV(Ce),n.Njj(N.onRedeemClick())}),n.EFF(13),n.nI1(14,"translate"),n.nI1(15,"uppercase"),n.k0s()(),n.DNE(16,Al,3,3,"p",10),n.k0s()()}2&b&&(n.R7$(3),n.JRh(n.bMT(4,7,"rewards.redeemCoupon")),n.R7$(6),n.FS9("placeholder",n.bMT(11,9,"rewards.enterCouponCode")),n.R50("ngModel",N.couponCode),n.Y8G("ngClass",n.l_i(15,Ea,(null==N.couponCode?null:N.couponCode.length)>0&&!N.codeInvalid,N.codeInvalid)),n.R7$(3),n.Y8G("disabled",N.actionButtonDisabled),n.R7$(),n.SpI(" ",n.bMT(15,13,n.bMT(14,11,"rewards.redeem"))," "),n.R7$(3),n.Y8G("ngIf",N.codeInvalid))},dependencies:[$i.YU,$i.bT,Ca.Aq,Xs.me,Xs.BC,Xs.vS,Ur.iV,ds.An,Xa.fg,Kn.DJ,Kn.sA,Kn.G2,fs.PW,$i.Pc,Xr.D9],styles:[".container[_ngcontent-%COMP%]   .rewards-coupon-header[_ngcontent-%COMP%]{margin-top:16px}.container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin:0 16px 0 0;padding:14px 0 14px 12px;border-right:0}.container[_ngcontent-%COMP%]   .couponcode-input-container[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:24px}.container[_ngcontent-%COMP%]   .couponcode-input-container[_ngcontent-%COMP%]   .coupon-code-input-section[_ngcontent-%COMP%]{margin-bottom:24px}.container[_ngcontent-%COMP%]   .couponcode-input-container[_ngcontent-%COMP%]   .couponcode-input[_ngcontent-%COMP%]{caret-color:#fff9;background-color:#393939;width:450px;height:48px;outline:none;border-bottom-color:#ffffff4d;border-bottom-width:1px;border-radius:0}.container[_ngcontent-%COMP%]   .couponcode-input-container[_ngcontent-%COMP%]   .couponcode-input[_ngcontent-%COMP%]::placeholder{color:#fff9}.container[_ngcontent-%COMP%]   .couponcode-input-container[_ngcontent-%COMP%]   .couponcode-input[_ngcontent-%COMP%]:focus{border-bottom-color:#ffffff6b;border-bottom-width:2px}.container[_ngcontent-%COMP%]   .couponcode-input-container[_ngcontent-%COMP%]   .error-text[_ngcontent-%COMP%]{width:450px;color:#e02828;text-transform:none;height:20px;margin:-20px 0 0}.container[_ngcontent-%COMP%]   .couponcode-input-container[_ngcontent-%COMP%]   .green-border[_ngcontent-%COMP%]{border-bottom-color:#76b900!important;border-bottom-width:2px}.container[_ngcontent-%COMP%]   .couponcode-input-container[_ngcontent-%COMP%]   .red-border[_ngcontent-%COMP%]{border-bottom-color:#e02828!important;border-bottom-width:2px}.container[_ngcontent-%COMP%]   .redeem-button[_ngcontent-%COMP%]{flex:none;order:0;flex-grow:0}.container[_ngcontent-%COMP%]   .info-icon[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]   .info-button[_ngcontent-%COMP%]{width:16px;height:16px;line-height:16px}.container[_ngcontent-%COMP%]   .info-button[_ngcontent-%COMP%]{margin-left:10px}.container[_ngcontent-%COMP%]   .info-icon[_ngcontent-%COMP%]{font-size:16px;display:flex;color:#ffffffb3}"]}),$})();var Vo=c(19392),Ki=c(65726),Uo=c(3678),fl=c(60990),gl=c(40514),Tl=c(33328);function Fl(F,$){1&F&&n.nrm(0,"nv-app-page-load-spinner")}function na(F,$){1&F&&n.nrm(0,"div",16)}function Va(F,$){if(1&F&&(n.j41(0,"div",20)(1,"div",21)(2,"p",22),n.EFF(3),n.k0s(),n.j41(4,"div",23)(5,"p",22),n.EFF(6),n.k0s(),n.j41(7,"p",24),n.EFF(8),n.k0s()()()()),2&F){const U=n.XpG(),b=U.$implicit,N=U.index;n.R7$(3),n.SpI("",N+1,".\xa0"),n.R7$(3),n.SpI(" ",b.title," "),n.R7$(2),n.SpI(" ",b.publisher[0].title," ")}}function Kr(F,$){1&F&&n.nrm(0,"mat-divider",25)}function ke(F,$){if(1&F&&(n.j41(0,"div"),n.DNE(1,Va,9,3,"div",17),n.nrm(2,"p",18),n.nI1(3,"trustAsHtml"),n.DNE(4,Kr,1,0,"mat-divider",19),n.k0s()),2&F){const U=$.$implicit,b=$.index,N=n.XpG(2);n.R7$(),n.Y8G("ngIf",N.multiRedeemtionRewards),n.R7$(),n.Y8G("innerHTML",n.bMT(3,3,U.description),n.npT),n.R7$(2),n.Y8G("ngIf",N.multiRedeemtionRewards&&b+1!==N.reward.rewardsVrsItem.product.length)}}function _(F,$){1&F&&(n.j41(0,"span",33),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.JRh(n.bMT(2,1,"rewards.gameCode")))}function L(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",34)(1,"div",35)(2,"div",36),n.EFF(3),n.k0s()(),n.j41(4,"button",37),n.bIt("click",function(){n.eBV(U);const N=n.XpG(3);return n.Njj(N.onCopyCodeClicked())}),n.EFF(5),n.nI1(6,"translate"),n.nI1(7,"uppercase"),n.k0s()()}if(2&F){const U=n.XpG(3);n.R7$(3),n.SpI(" ",U.reward.rewardsVrsItem.gameKey," "),n.R7$(2),n.SpI(" ",n.bMT(7,4,n.bMT(6,2,"rewards.copy"))," ")}}function D(F,$){if(1&F&&(n.j41(0,"div")(1,"p",26),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"div",27)(5,"div",23)(6,"span",28),n.EFF(7),n.nI1(8,"translate"),n.k0s(),n.j41(9,"span",28),n.EFF(10),n.nI1(11,"translate"),n.k0s(),n.DNE(12,_,3,3,"span",29),n.k0s(),n.j41(13,"div",30)(14,"span",31),n.EFF(15),n.k0s(),n.j41(16,"span",31),n.EFF(17),n.nI1(18,"date"),n.k0s(),n.DNE(19,L,8,6,"div",32),n.k0s()()()),2&F){const U=n.XpG(2);n.R7$(2),n.SpI(" ",n.bMT(3,7,U.redemptionDetailsTitle)," "),n.R7$(5),n.JRh(n.bMT(8,9,"rewards.RewardId")),n.R7$(3),n.JRh(n.bMT(11,11,"rewards.RedemptionDate")),n.R7$(2),n.Y8G("ngIf",(null==U.reward.rewardsVrsItem.gameKey?null:U.reward.rewardsVrsItem.gameKey.length)>0),n.R7$(3),n.JRh(U.reward.rewardsVrsItem.redemptionId),n.R7$(2),n.JRh(n.i5U(18,13,U.reward.rewardsVrsItem.redemptionDate,"MMM d, y")),n.R7$(2),n.Y8G("ngIf",(null==U.reward.rewardsVrsItem.gameKey?null:U.reward.rewardsVrsItem.gameKey.length)>0)}}function B(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",4)(1,"p",5),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"p",6),n.EFF(5),n.nI1(6,"translate"),n.k0s()(),n.j41(7,"mat-dialog-content")(8,"div",7)(9,"img",8),n.bIt("error",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.fallbackToDefaultImage())}),n.k0s(),n.nrm(10,"p",9),n.nI1(11,"trustAsHtml"),n.DNE(12,na,1,0,"div",10)(13,ke,5,5,"div",11)(14,D,20,16,"div",12),n.k0s()(),n.j41(15,"mat-dialog-actions",13)(16,"button",14),n.EFF(17),n.nI1(18,"translate"),n.nI1(19,"uppercase"),n.k0s(),n.j41(20,"button",15),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onRedeemRewardClicked())}),n.j41(21,"span"),n.EFF(22),n.nI1(23,"translate"),n.nI1(24,"uppercase"),n.k0s()()()}if(2&F){const U=n.XpG();n.R7$(2),n.JRh(n.bMT(3,10,U.title)),n.R7$(3),n.JRh(n.bMT(6,12,U.description)),n.R7$(4),n.Y8G("src",U.imageUrl,n.B4B)("alt",U.title),n.R7$(),n.Y8G("innerHTML",n.bMT(11,14,U.campaignDiscription),n.npT),n.R7$(2),n.Y8G("ngIf",U.multiRedeemtionRewards),n.R7$(),n.Y8G("ngForOf",null==U.reward?null:U.reward.rewardsVrsItem.product),n.R7$(),n.Y8G("ngIf",U.isRedeemedReward()),n.R7$(3),n.JRh(n.bMT(19,18,n.bMT(18,16,"common.close"))),n.R7$(5),n.JRh(n.bMT(24,22,n.bMT(23,20,U.actionButtonText)))}}c(62400);let re=(()=>{var F;class ${constructor(b,N,Ce,ft){this.translateService=N,this.rewardService=Ce,this.reward=ft,this.defaultImageUrl=jr.du,this.unsubscribe$=new fo.B7,this.logger=b.getLogger("nvapp/RewardViewDetailModalComponent"),this.redeemAction=new n.bkB}isRewardAvailable(){return this.reward.rewardsVrsItem.status===tn.E.Available}isRedeemedReward(){return this.reward.rewardsVrsItem.status===tn.E.Redeemed}ngOnInit(){this.campaignDiscription=this.reward.rewardsVrsItem.campaign.description;const N=this.rewardService.isNvAppOnlyCampaign(this.reward?.rewardsVrsItem.campaign.tags||[])?jr.y$.viewDetailsImage:jr.y$.card;this.isRewardAvailable()?(this.actionButtonText="rewards.redeem",this.isMultiSelectBundle()?(this.showLoader=!0,this.prepareMultiRedeemtionRewardState(),this.multiRedeemtionRewards=!0):(this.showLoader=!1,this.title=this.reward.rewardsVrsItem.campaign.title,this.description=this.reward.rewardsVrsItem.product[0].publisher[0].title,this.multiRedeemtionRewards=!1),this.imageUrl=this.getFormattedImageUrl(this.reward?.rewardsVrsItem.campaign?.imageLink,N)):(this.actionButtonText=this.reward.rewardsVrsItem.gameKey?.length>0?"rewards.continueToRedeem":this.translateService.instant("rewards.continueToPlatformApp",{platformName:this.reward.rewardsVrsItem.product[0].publisher[0].platform}),this.showLoader=!1,this.multiRedeemtionRewards=!1,this.title=this.reward.rewardsVrsItem.product[0].title,this.description=this.reward.rewardsVrsItem.product[0]?.publisher[0]?.title,this.imageUrl=this.getFormattedImageUrl(this.reward?.rewardsVrsItem.product[0]?.imageLink,N),this.redemptionDetailsTitle=this.reward.rewardsVrsItem.gameKey?.length>0?"rewards.gameKeyTitle":"rewards.redemptionDetails")}onRedeemRewardClicked(){this.redeemAction.emit("")}isMultiSelectBundle(){const b=this.reward.rewardsVrsItem.campaign?.rules?.maxselect;return!!(b&&this.reward.rewardsVrsItem.status===tn.E.Available&&parseInt(b,10)>1)}getFormattedImageUrl(b,N){return b+"-"+N+".png"}fallbackToDefaultImage(){this.logger.warn("Error loading image for  using fallback."),this.imageUrl=this.defaultImageUrl}prepareMultiRedeemtionRewardState(){this.rewardSubscription=this.rewardService.getRewards().subscribe(b=>{this.redeemedReward=Object.assign([],b.redeemed),this.prepareMultiRewardList()},b=>{this.prepareMultiRewardList(),this.showLoader=!1,this.logger.error("Error occurred while fetching Rewards ",b)})}prepareMultiRewardList(){let b=0;this.redeemedReward&&this.redeemedReward.length>1&&(this.redeemedReward=this.redeemedReward.filter(N=>N.campaign.uuid===this.reward.rewardsVrsItem.campaign.uuid),b=this.redeemedReward.length),this.description=this.translateService.instant("rewards.redeemedCountTotalCount",{redeemedCount:b,totalCount:this.reward.rewardsVrsItem.campaign.rules?.maxselect}),this.title=this.reward.rewardsVrsItem.campaign.title,this.showLoader=!1}onCopyCodeClicked(){this.writeText(this.reward.rewardsVrsItem.gameKey||"").pipe((0,pr.Q)(this.unsubscribe$)).subscribe(()=>this.logger.info("text copied"))}writeText(b){return navigator.clipboard?(0,Vo.H)(navigator.clipboard.writeText(b)).pipe((0,Ki.c)(jr.A6),(0,wr.W)(N=>(this.logger.info(`Clipboard writeText: ${N}`),(0,yr.of)(null)))):(this.logger.warn("navigator.clipboard is undefined, writeText() probably is being used in non secure context."),(0,yr.of)(null))}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Uo.J6),n.rXU(Xr.c$),n.rXU(vi.y),n.rXU(go.Vh))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-detail-modal"]],outputs:{redeemAction:"redeemAction"},decls:4,vars:2,consts:[["viewDetailsContainer",""],[1,"loading-container"],[4,"ngIf","ngIfElse"],[1,"container"],["mat-dialog-title","",1,"dialog-title-container"],[1,"font-header6"],[1,"font-sub2","font-color-secondary"],[1,"dialog-data-container"],[1,"imge-container",3,"error","src","alt"],[1,"font-body2","compaign-desc",3,"innerHTML"],["class","margin-bottom-24",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["align","end",1,"padding-right-8"],["mat-button","","mat-dialog-close","",1,"font-button2"],["mat-button","","mat-raised-button","",1,"font-button2","mat-accent",3,"click"],[1,"margin-bottom-24"],["class","product-details-container",4,"ngIf"],[1,"font-body2","font-color-tertiary","product-desc",3,"innerHTML"],["class","divider",4,"ngIf"],[1,"product-details-container"],["fxLayout","row","fxLayoutAlign","start start"],[1,"font-sub1","margin-zero"],["fxLayout","column"],[1,"font-body2","font-color-tertiary","margin-zero"],[1,"divider"],[1,"font-sub2","font-color-primary","margin-bottom-16","margin-top-24"],["fxLayout","row"],[1,"font-sub2","font-color-primary","margin-bottom-10"],["class","font-sub2 font-color-primary margin-top-24",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start",1,"redeem-data-container"],[1,"font-body2","font-color-secondary","margin-bottom-10"],["fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"font-sub2","font-color-primary","margin-top-24"],["fxLayout","row","fxLayoutAlign","start center"],[1,"game-code-container"],[1,"font-body2","font-color-secondary","game-code"],["mat-button","",1,"margin-left-16",3,"click"]],template:function(b,N){if(1&b&&(n.j41(0,"div",1),n.DNE(1,Fl,1,0,"nv-app-page-load-spinner",2),n.k0s(),n.DNE(2,B,25,24,"ng-template",3,0,n.C5r)),2&b){const Ce=n.sdS(3);n.R7$(),n.Y8G("ngIf",N.showLoader)("ngIfElse",Ce)}},dependencies:[$i.Sq,$i.bT,fl.r,gl.e,Ca.Aq,Ur.iV,pi.q,go.tx,go.BI,go.Yi,go.E7,Kn.DJ,Kn.sA,cr.Q,Tl.O,$i.Pc,$i.vh,Xr.D9],styles:["[_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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .game-code-container[_ngcontent-%COMP%]   .game-code[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.loading-container[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:790px;box-shadow:0 4px 4px #00000040,0 4px 4px #00000040}.container[_ngcontent-%COMP%]{justify-items:flex-start;display:flex;flex-direction:column;justify-content:space-between}.dialog-title-container[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px;margin:24px 0}.dialog-title-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.dialog-data-container[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px;overflow:auto}.dialog-data-container[_ngcontent-%COMP%]   .compaign-desc[_ngcontent-%COMP%], .dialog-data-container[_ngcontent-%COMP%]   .product-desc[_ngcontent-%COMP%]{margin:0}.dialog-data-container[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:32px}.dialog-action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:8px;margin-bottom:8px;padding:8px 0}.imge-container[_ngcontent-%COMP%]{width:742px;height:280px;margin-bottom:24px}.product-details-container[_ngcontent-%COMP%]{margin-bottom:16px}.game-code-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:257px;height:56px;background:#494949;justify-content:center;padding:0 12px}.game-code-container[_ngcontent-%COMP%]   .game-code[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;width:100%}.margin-top-24[_ngcontent-%COMP%]{margin-top:24px}.margin-bottom-10[_ngcontent-%COMP%]{margin-bottom:10px}.redeem-data-container[_ngcontent-%COMP%]{margin-left:16px}.margin-bottom-16[_ngcontent-%COMP%]{margin-bottom:16px}.margin-left-16[_ngcontent-%COMP%]{margin-left:16px}.padding-right-8[_ngcontent-%COMP%]{padding-right:8px}.margin-zero[_ngcontent-%COMP%]{margin:0}.margin-bottom-24[_ngcontent-%COMP%]{margin-bottom:24px}"]}),$})();var he=c(40848),Se=c(26772),we=c(56347),tt=c(54504);const rt=F=>({"rewards-history":F}),Ot=F=>({background:F});function At(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",10)(1,"div",11)(2,"button",12),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onRedeemClicked())}),n.j41(3,"span"),n.EFF(4),n.nI1(5,"translate"),n.nI1(6,"uppercase"),n.k0s()(),n.j41(7,"button",13),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onViewDetailClicked())}),n.j41(8,"span"),n.EFF(9),n.nI1(10,"translate"),n.nI1(11,"uppercase"),n.k0s()()()()}2&F&&(n.R7$(4),n.JRh(n.bMT(6,4,n.bMT(5,2,"rewards.redeem"))),n.R7$(5),n.JRh(n.bMT(11,8,n.bMT(10,6,"rewards.viewDetails"))))}function Ke(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",14)(1,"div",15)(2,"button",13),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onViewDetailClicked())}),n.j41(3,"span"),n.EFF(4),n.nI1(5,"translate"),n.nI1(6,"uppercase"),n.k0s()()()()}2&F&&(n.R7$(4),n.JRh(n.bMT(6,3,n.bMT(5,1,"rewards.viewDetails"))))}let Ye=(()=>{var F;class $ extends Ht.${constructor(b,N,Ce,ft,Jt,wn){super(b),this.translateService=N,this.matDialog=Ce,this.rewardService=ft,this.telemetryUtilService=Jt,this.datePipe=wn,this.isLoading=!0,this.logger=b.getLogger("nvapp/RewardCardComponent")}ngOnInit(){this.init()}fallbackToDefaultImage(){this.logger.warn("Error loading image for  using fallback."),this.rewardImageUrl=Se.qA}getFormattedImageUrl(b,N){return b+"-"+N+".png"}updateHoverState(b){this.showHoverState=b}setTextOverflow(b){this.isTextOverflow=b}init(){const b=this.reward?.campaign.tags&&this.rewardService.isNvAppOnlyCampaign(this.reward.campaign.tags)?jr.y$.nvAppTileImageAssets:jr.y$.card;this.cardTitle=this.reward?.campaign?.title,this.rewardImageUrl=this.getFormattedImageUrl(this.reward?.campaign?.imageLink,b);const N=this.datePipe.transform(this.reward.redemptionDate,jr.ow),Ce=this.datePipe.transform(this.reward.endDate,jr.ow);this.reward.isRewardRedeemed()?(this.cardTitle=this.reward.products[0].title,this.rewardImageUrl=this.getFormattedImageUrl(this.reward?.products[0]?.imageLink,b),this.showOverlay=!0,this.rewardDate=N?this.translateService.instant("rewards.redeemedReward",{date:N}):""):this.reward.isRewardExpired()?(this.showOverlay=!0,Ce&&(this.rewardDate=this.translateService.instant("rewards.expiredReward",{date:Ce}))):this.reward.isRewardLocked()?(this.showOverlay=!0,this.rewardDate=""):(this.showOverlay=!1,this.rewardDate="",Ce&&(this.rewardDate=this.translateService.instant("rewards.untillReward",{date:Ce})))}onRedeemClicked(){const b=this.reward.isRewardAvailable()&&this.reward.state===tn.E.Claimable?he.EB.RedeemClaimableReward:he.EB.RedeemAvailableReward;this.telemetryUtilService.sendClickEvent(b,"",!0,this.reward?.campaign.uuid),this.redeemReward()}onViewDetailClicked(){let b=he.EB.ViewDetailsAvailableReward;this.reward.isRewardRedeemed()?b=he.EB.ViewDetailsRedeemed:this.reward.isRewardAvailable()&&(b=this.reward.state===tn.E.Claimable?he.EB.ViewDetailsClaimableReward:he.EB.ViewDetailsAvailableReward),this.telemetryUtilService.sendClickEvent(b,"",!0,this.reward?.campaign.uuid),this.onOpenRewardDetailsDialog()}onOpenRewardDetailsDialog(){this.logger.info("Open View Details dialog box"),this.detailDialogRef=this.matDialog.open(re,{disableClose:!1,autoFocus:!1,backdropClass:"reward-modal-backdrop",panelClass:["reward-view-details-model-container","common-dialog"],data:this.reward}),this.detailDialogRef.componentInstance.redeemAction.pipe((0,ji.s)(1)).subscribe(()=>{this.viewDetailsActionButtonClicked(),this.logger.info("close clicked "),this.detailDialogRef.close()})}redeemReward(){this.reward.redeem().pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.logger.info("Reward redeemption state",b),xt.Se.EntitlementFailed===b&&this.showEntilementFailedErrorDialog(this.reward.error?.message)},b=>{this.logger.error("Error occurred while redeeming the reward code ",b)})}showEntilementFailedErrorDialog(b){const N=this.rewardService.showEntilementFailedErrorDialog(!1,b);N.primaryButtonClick.pipe((0,ji.s)(1)).subscribe(()=>{this.logger.info("try again clicked "),N.close()}),N.secondaryButtonClick.pipe((0,ji.s)(1)).subscribe(()=>{this.logger.info("Close clicked "),N.close()})}constructPublisherLink(){let b=this.reward.rewardsVrsItem?.product?.[0]?.publisher?.[0]?.publisherLink;const N=this.reward.rewardsVrsItem.vrsLocale;let Ce=this.getFormattedImageUrl(this.reward?.products[0]?.imageLink,jr.y$.publisherLinkImageParam),ft=Ce.search("//");Ce=Ce.slice(ft+2),ft=Ce.search("/"),Ce=Ce.slice(ft+1);const Jt=window.btoa(encodeURIComponent(Ce));return b=b.replace(jr.xM,N),b.replace(jr.pL,Jt)}viewDetailsActionButtonClicked(){let b,N="";this.reward.isRewardRedeemed()?(this.reward.rewardsVrsItem.gameKey?.length>0?(b=he.EB.ContinueToRedeem,N=this.reward.rewardsVrsItem.gameUrl):(b=he.EB.ContinueRedeemOnPlatform,N=this.constructPublisherLink()),N&&N.length>0?(this.telemetryUtilService.sendClickEvent(b,"",!0,this.reward.rewardsVrsItem.campaign?.uuid),this.logger.info("redirecting to",N),window.open(N)):this.logger.error("redirect URL is invalid or not properly set")):this.reward.isRewardAvailable()&&this.redeemReward()}ngOnDestroy(){super.ngOnDestroy()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Xr.c$),n.rXU(go.bZ),n.rXU(vi.y),n.rXU(we.A),n.rXU($i.vh))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-reward-card"]],inputs:{reward:"reward"},features:[n.Vt3],decls:12,vars:12,consts:[["fxLayout","column","flex","",1,"reward-card-container",3,"mouseenter","mouseleave","ngClass"],["fxLayout","column",1,"info-container"],[1,"image-container"],[1,"background-blur",3,"ngStyle"],[1,"image",3,"error","src","alt"],["class","overlay","fxLayout","column",4,"ngIf"],["class","overlay overlay-container","fxLayout","column",4,"ngIf"],["fxLayoutAlign","center","fxLayout","column",1,"color-black-hue-1","details-container"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body1","font-color-primary","reward-card-title"],[1,"font-body2","reward-card-title"],["fxLayout","column",1,"overlay"],["fxLayout","column","fxLayoutAlign","space-between center",1,"overlay-buttons-container"],["mat-raised-button","",1,"font-button2","button-redeem","mat-accent",3,"click"],["mat-button","",1,"font-button2","button-detail",3,"click"],["fxLayout","column",1,"overlay","overlay-container"],["fxLayout","column",1,"overlay-buttons-container"]],template:function(b,N){1&b&&(n.j41(0,"div",0),n.bIt("mouseenter",function(){return N.updateHoverState(!0)})("mouseleave",function(){return N.updateHoverState(!1)}),n.j41(1,"div",1)(2,"div",2),n.nrm(3,"div",3),n.j41(4,"img",4),n.bIt("error",function(){return N.fallbackToDefaultImage()}),n.k0s(),n.DNE(5,At,12,10,"div",5)(6,Ke,7,5,"div",6),n.k0s(),n.j41(7,"div",7)(8,"h4",8),n.EFF(9),n.k0s(),n.j41(10,"p",9),n.EFF(11),n.k0s()()()()),2&b&&(n.Y8G("ngClass",n.eq3(8,rt,N.reward.isRewardRedeemedOrExpired())),n.R7$(3),n.Y8G("ngStyle",n.eq3(10,Ot,"linear-gradient(0deg, rgba(92, 92, 92, 0.60) 0%, rgba(92, 92, 92, 0.60) 100%), url("+N.rewardImageUrl+") bottom no-repeat, lightgray 50%")),n.R7$(),n.Y8G("src",N.rewardImageUrl,n.B4B)("alt",N.cardTitle),n.R7$(),n.Y8G("ngIf",N.showHoverState&&N.reward.isRewardAvailable()),n.R7$(),n.Y8G("ngIf",N.showHoverState&&N.reward.isRewardRedeemed()),n.R7$(3),n.SpI(" ",N.cardTitle," "),n.R7$(2),n.SpI(" ",N.rewardDate," "))},dependencies:[$i.YU,$i.bT,$i.B3,Ca.Aq,tt.a,Ur.iV,Kn.DJ,Kn.sA,fs.PW,fs.eI,$i.Pc,Xr.D9],styles:[".info-container[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden;background:#292929}.check-icon[_ngcontent-%COMP%], .check-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:16px;height:16px;font-size:16px;line-height:16px;margin-right:6px}.reward-card-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{position:relative;overflow:hidden;justify-content:center;align-items:center;display:flex}.reward-card-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .background-blur[_ngcontent-%COMP%]{position:absolute;top:0;left:0;background-size:250%!important;display:flex;width:100%;height:100%;justify-content:center;align-items:center;filter:blur(20px);clip-path:inset(0 0 0 0)}.reward-card-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{position:relative;height:auto;width:var(--program-tile-width);max-width:var(--program-tile-max-width);max-height:var(--program-tile-max-height)}.reward-card-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{width:var(--program-tile-width);height:var(--program-tile-height);max-width:var(--program-tile-max-width);max-height:var(--program-tile-max-height)}.reward-card-container[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]{margin-left:16px;margin-right:16px;height:70px;background-color:#292929}.reward-card-container[_ngcontent-%COMP%]:focus{outline:none;border:none}.reward-card-container[_ngcontent-%COMP%]{position:relative;z-index:1;width:var(--program-tile-width);height:var(--program-tile-height-with-padding);max-width:var(--program-tile-max-width);max-height:var(--program-tile-max-height-with-padding)}.reward-card-container[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]{position:absolute;top:0;height:100%;width:100%;background:linear-gradient(0deg,#0009,#0009)}.reward-card-container[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]   .overlay-buttons-container[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);border:none;cursor:pointer}.reward-card-container[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]   .overlay-buttons-container[_ngcontent-%COMP%]   .button-redeem[_ngcontent-%COMP%]{margin-bottom:16px}.reward-card-container[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]   .overlay-buttons-container[_ngcontent-%COMP%]   .button-detail[_ngcontent-%COMP%]:hover{background:#ffffff14}.reward-card-title[_ngcontent-%COMP%]{text-overflow:ellipsis;margin:0;white-space:nowrap;overflow:hidden}"]}),$})();function vt(F,$){1&F&&n.nrm(0,"nv-app-page-load-spinner")}function Be(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",11)(1,"a",12),n.bIt("click",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.startLogin())}),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"span",13),n.EFF(5),n.nI1(6,"translate"),n.k0s()()}2&F&&(n.R7$(2),n.SpI(" ",n.bMT(3,2,"toolbar.login")," "),n.R7$(3),n.SpI(" ",n.bMT(6,4,"rewards.checkRedemptionStatus")," "))}function _t(F,$){1&F&&(n.j41(0,"p",14),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"rewards.noAvailableRewards")," "))}function pt(F,$){1&F&&n.nrm(0,"nv-reward-card",17),2&F&&n.Y8G("reward",$.$implicit)}function $t(F,$){if(1&F&&(n.j41(0,"div",15),n.DNE(1,pt,1,1,"nv-reward-card",16),n.k0s()),2&F){const U=n.XpG(2);n.R7$(),n.Y8G("ngForOf",U.unRedeemedList)}}function hn(F,$){1&F&&(n.j41(0,"p",21),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"rewards.noRedeemdReward")," "))}function mn(F,$){1&F&&n.nrm(0,"nv-reward-card",17),2&F&&n.Y8G("reward",$.$implicit)}function yn(F,$){if(1&F&&(n.j41(0,"div",22),n.DNE(1,mn,1,1,"nv-reward-card",16),n.k0s()),2&F){const U=n.XpG(3);n.R7$(),n.Y8G("ngForOf",U.redeemedOrExpiredList)}}function ci(F,$){if(1&F&&(n.j41(0,"div",4),n.nrm(1,"mat-divider",18),n.j41(2,"div",5)(3,"p",6),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.DNE(6,hn,3,3,"p",19),n.k0s(),n.DNE(7,yn,2,1,"div",20),n.k0s()),2&F){const U=n.XpG(2);n.R7$(4),n.JRh(n.bMT(5,3,"rewards.redeemAndExpired")),n.R7$(2),n.Y8G("ngIf",0===(null==U.redeemedOrExpiredList?null:U.redeemedOrExpiredList.length)),n.R7$(),n.Y8G("ngIf",U.redeemedOrExpiredList&&U.redeemedOrExpiredList.length>0)}}function yi(F,$){if(1&F&&(n.j41(0,"div",2)(1,"h4",3),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.nrm(4,"mat-divider")(5,"nv-coupon-input"),n.j41(6,"div",4)(7,"div",5)(8,"p",6),n.EFF(9),n.nI1(10,"translate"),n.k0s(),n.DNE(11,Be,7,6,"div",7)(12,_t,3,3,"p",8),n.k0s(),n.DNE(13,$t,2,1,"div",9),n.k0s(),n.DNE(14,ci,8,5,"div",10),n.k0s()),2&F){const U=n.XpG();n.R7$(2),n.SpI(" ",n.bMT(3,6,"rewards.rewardsPageTitle")," "),n.R7$(7),n.JRh(n.bMT(10,8,"rewards.onGoingRewards")),n.R7$(2),n.Y8G("ngIf",!U.isUserLoggedIn&&0===(null==U.unRedeemedList?null:U.unRedeemedList.length)),n.R7$(),n.Y8G("ngIf",U.isUserLoggedIn&&0===(null==U.unRedeemedList?null:U.unRedeemedList.length)),n.R7$(),n.Y8G("ngIf",U.unRedeemedList&&U.unRedeemedList.length>0),n.R7$(),n.Y8G("ngIf",U.isUserLoggedIn)}}let Bt=(()=>{var F;class $ extends Ht.${constructor(b,N,Ce,ft,Jt,wn,x){super(N),this.appBarService=b,this.rewardService=Ce,this.loginService=ft,this.telemetryService=Jt,this.performanceMeasureService=wn,this.sidebarNotificationService=x,this.marqueeItems=[],this.isLoading=!0,this.isUserLoggedIn=!1,this.destroyLogin$=new fo.B7,this.appBarService.setTitle("rewards.redeem"),this.logger=N.getLogger("nvapp/RewardComponent")}ngOnInit(){this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppRedeemRouteNavigationEnd,cn.mM.NvAppRedeemDataFetchStart],cn.fR.Redeem),this.telemetryService.setScreen(ut.f3.Redeem),this.resetRewardsLists(),(0,Ts.zV)([this.initLoginStatusSubscription(),this.getRewards()]).subscribe(b=>{this.isLoading=!1},b=>{this.isLoading=!1,this.logger.error("failed to get user and rewards info",b)})}startLogin(){this.loginService.startLogin().pipe((0,pr.Q)(this.destroyLogin$)).subscribe()}getAvailableRewards(){return this.rewardsHistory[tn.E.Available]||[]}getExpiredAndRedeemedRewards(){return this.rewardsHistory[tn.E.Available]||[]}getRewards(){return this.rewardService.getRewards().pipe((0,Br.n)(b=>this.saveRewardNotificationBadge(b)),(0,xr.M)(b=>{this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppRedeemDataFetchEnd,cn.mM.NvAppRedeemViewRenderStart],cn.fR.Redeem),this.resetRewardsLists(),this.logger.info("Reward history fetched"),b&&(this.rewardsHistory=Object.assign([],b)),this.prepareRewardsList(),this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppRedeemViewRenderEnd],cn.fR.Redeem)}),(0,wr.W)(b=>(this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppRedeemDataFetchEnd,cn.mM.NvAppRedeemViewRenderStart],cn.fR.Redeem),this.logger.error("Error occurred while fetching Rewards ",b),this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppRedeemViewRenderEnd],cn.fR.Redeem),(0,yr.of)(this.rewardsHistory))),(0,pr.Q)(this.unsubscribe$))}saveRewardNotificationBadge(b){return this.sidebarNotificationService.saveRewardsNotificationDbState(this.currentUser,b).pipe((0,ys.u)(b))}prepareRewardsList(){this.rewardsHistory&&(this.rewardsHistory?.available?.length>0&&(this.unRedeemedList=Object.assign([],this.rewardsHistory[tn.E.Available]),this.unRedeemedList=(0,Cr.orderBy)(this.unRedeemedList,"entitlementDate")),this.rewardsHistory?.redeemed?.length>0&&(this.redeemedOrExpiredList=Object.assign([],this.rewardsHistory.redeemed),this.redeemedOrExpiredList=(0,Cr.orderBy)(this.redeemedOrExpiredList,"redemptionDate")),this.rewardsHistory?.expired?.length>0&&(this.redeemedOrExpiredList=this.redeemedOrExpiredList.concat(this.rewardsHistory.expired)))}resetRewardsLists(){this.unRedeemedList=[],this.redeemedOrExpiredList=[],this.rewardsHistory=Object.assign({},xt.Qy)}initLoginStatusSubscription(){return this.loginService.accountStatusChanged.pipe((0,pr.Q)(this.unsubscribe$),(0,xr.M)(b=>{this.currentUser=b,this.isUserLoggedIn=b?.isAuthenticated}))}ngOnDestroy(){super.ngOnDestroy(),this.rewardSubscription&&(this.rewardSubscription.unsubscribe(),this.rewardSubscription=null),this.destroyLogin$?.next(),this.destroyLogin$?.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(si.g),n.rXU(Ui.J6),n.rXU(vi.y),n.rXU(ur.HF),n.rXU(Or.H0),n.rXU(gr.M),n.rXU(or.w))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-rewards"]],features:[n.Vt3],decls:3,vars:2,consts:[["layoutData",""],[4,"ngIf","ngIfElse"],["fxLayout","column",1,"reward-container"],[1,"reward-page-header","font-sub2","font-color-primary"],["fxLayout","column","fxLayoutAlign","start space-between",1,"reward-cards-container"],["fxLayout","column",1,"header-container"],[1,"font-sub1","margin-zero","header1"],["fxlayout","row","class","font-body2 margin-zero header2",4,"ngIf"],["class","font-body2 margin-zero header2",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","start-start","layout-fill","","class","reward-card",4,"ngIf"],["class","reward-cards-container","fxLayout","column","fxLayoutAlign","start space-between",4,"ngIf"],["fxlayout","row",1,"font-body2","margin-zero","header2"],[1,"font-body2-link",3,"click"],[1,"unsupported-text","font-body2"],[1,"font-body2","margin-zero","header2"],["fxLayout","row wrap","fxLayoutAlign","start-start","layout-fill","",1,"reward-card"],[3,"reward",4,"ngFor","ngForOf"],[3,"reward"],[1,"divider"],["class","font-body2 margin-zero",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","start-start","class","reward-card",4,"ngIf"],[1,"font-body2","margin-zero"],["fxLayout","row wrap","fxLayoutAlign","start-start",1,"reward-card"]],template:function(b,N){if(1&b&&n.DNE(0,vt,1,0,"nv-app-page-load-spinner",1)(1,yi,15,10,"ng-template",null,0,n.C5r),2&b){const Ce=n.sdS(2);n.Y8G("ngIf",N.isLoading)("ngIfElse",Ce)}},dependencies:[$i.Sq,$i.bT,zn.tG,pi.q,Kn.DJ,Kn.sA,cr.Q,Ma,Ye,Xr.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((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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))}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.reward-container[_ngcontent-%COMP%]{margin:0 var(--rwd-container-side-spacing) 24px}.reward-cards-container[_ngcontent-%COMP%]   .reward-card[_ngcontent-%COMP%]{gap:var(--rwd-gutter-size);margin-top:16px}.margin-zero[_ngcontent-%COMP%]{margin:0}.header1[_ngcontent-%COMP%], .header2[_ngcontent-%COMP%]{flex:none;align-self:stretch;flex-grow:0}.divider[_ngcontent-%COMP%]{margin:16px 0}.reward-page-header[_ngcontent-%COMP%]{margin:14px 0 13px}[_nghost-%COMP%]{--program-tile-max-width: 436px;--program-tile-max-height: 246px;--program-tile-max-height-with-padding: calc(var(--program-tile-max-height) + 70px);--program-tile-width: calc(3 * var(--rwd-column-size) + 2 * var(--rwd-gutter-size));--program-tile-height: calc(var(--program-tile-width) / 1.78);--program-tile-height-with-padding: calc(var(--program-tile-height) + 70px);gap:var(--rwd-gutter-size)}@media screen and (min-width: 960px) and (max-width: 1279px){[_nghost-%COMP%]{--program-tile-width: calc(4 * var(--rwd-column-size) + 3 * var(--rwd-gutter-size));--program-tile-height: calc(var(--program-tile-width) / 1.78);--program-tile-height-with-padding: calc(var(--program-tile-height) + 70px);gap:var(--rwd-gutter-size)}}"]}),$})();var Rt=c(36466),fn=c(26976),An=c(57258),Nn=c(59859),Rn=c(83915),Hn=c(69568),Xn=c(51728),ai=c(59085);function Ni(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",12),n.bIt("click",function(){n.eBV(U);const N=n.XpG().$implicit,Ce=n.XpG();return n.Njj(Ce.onRemoveLocation(N))}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"common.remove")," "))}function Zr(F,$){if(1&F){const U=n.RV6();n.qex(0),n.j41(1,"div",8)(2,"div",9),n.bIt("mouseenter",function(){const N=n.eBV(U).$implicit,Ce=n.XpG();return n.Njj(Ce.updateHoverState(N))})("mouseleave",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.updateHoverState(""))}),n.j41(3,"div",10),n.EFF(4),n.k0s(),n.DNE(5,Ni,3,3,"button",11),n.k0s()(),n.bVm()}if(2&F){const U=$.$implicit,b=n.XpG();n.R7$(4),n.JRh(U),n.R7$(),n.Y8G("ngIf",b.hoveredSearchPath===U)}}let en=(()=>{var F;class ${constructor(b,N,Ce,ft){this.loggingService=b,this.gamesScanLocationService=N,this.dialogRef=Ce,this.preferenceService=ft,this.unsubscribe$=new fo.B7,this.searchPaths=[],this.logger=b.getLogger("nvapp/ScanLocationDialogComponent")}ngOnInit(){this.gamesScanLocationService.getSearchPaths().pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.searchPaths=b})}onAddLocation(){this.gamesScanLocationService.searchPathsAdd().pipe((0,ji.s)(1)).subscribe(b=>{this.preferenceService.sendSettingChangeTelemetry(ut.RS.AddScanLocation,ut.GC.PathAdded,ut.ih.System)},b=>{this.logger.error("Error while adding location",b),this.preferenceService.sendSettingChangeTelemetry(ut.RS.AddScanLocation,ut.GC.PathAdded,ut.ih.System,b?.message??"failed to add new path")})}onRemoveLocation(b){this.gamesScanLocationService.searchPathsRemove(b).pipe((0,ji.s)(1)).subscribe(N=>{this.preferenceService.sendSettingChangeTelemetry(ut.RS.RemoveScanLocation,ut.GC.PathRemoved,ut.ih.System)},N=>{this.logger.error("Error while removing location",N),this.preferenceService.sendSettingChangeTelemetry(ut.RS.AddScanLocation,ut.GC.PathAdded,ut.ih.System,N?.message??"failed to remove existing path")})}updateHoverState(b){this.hoveredSearchPath=b}trackSearchPath(b,N){return N}close(){this.dialogRef.close()}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Xn.o),n.rXU(go.CP),n.rXU(ai.N))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-scan-location-dialog"]],decls:17,vars:14,consts:[["mat-dialog-title","",1,"title-container"],[1,"font-header6","title"],["fxLayout","row",1,"view-modify-container"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","",1,"font-sub2"],["mat-button","",1,"add-location-button","font-button2",3,"click"],[4,"ngFor","ngForOf","ngForTrackBy"],["fxLayout","row","fxLayoutAlign","end center",1,"close-button"],["mat-button","",1,"font-button2",3,"click"],["fxLayout","column",1,"search-path-container"],["fxLayout","row","fxLayoutAlign","start center",1,"font-body2","search-path",3,"mouseenter","mouseleave"],["fxFlex","",1,"font-body2"],["mat-button","","class","font-button2 remove-button",3,"click",4,"ngIf"],["mat-button","",1,"font-button2","remove-button",3,"click"]],template:function(b,N){1&b&&(n.j41(0,"div",0)(1,"div",1),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"div",2)(5,"div",3),n.EFF(6),n.nI1(7,"translate"),n.k0s(),n.j41(8,"button",4),n.bIt("click",function(){return N.onAddLocation()}),n.EFF(9),n.nI1(10,"translate"),n.k0s()()(),n.j41(11,"mat-dialog-content"),n.DNE(12,Zr,6,2,"ng-container",5),n.k0s(),n.j41(13,"div",6)(14,"button",7),n.bIt("click",function(){return N.close()}),n.EFF(15),n.nI1(16,"translate"),n.k0s()()),2&b&&(n.R7$(2),n.JRh(n.bMT(3,6,"preferences.gameScan.scanLocations")),n.R7$(4),n.SpI(" ",n.bMT(7,8,"preferences.gameScan.scanLocationDialogAddText")," "),n.R7$(3),n.SpI(" ",n.bMT(10,10,"common.add")," "),n.R7$(3),n.Y8G("ngForOf",N.searchPaths)("ngForTrackBy",N.trackSearchPath),n.R7$(3),n.SpI(" ",n.bMT(16,12,"common.close")," "))},dependencies:[$i.Sq,$i.bT,Ur.iV,go.BI,go.Yi,Kn.DJ,Kn.sA,Kn.UI,Xr.D9],styles:[".title-container[_ngcontent-%COMP%]{padding:18px 16px 0 24px}.search-path-container[_ngcontent-%COMP%], .view-modify-container[_ngcontent-%COMP%]{height:48px}.search-path-container[_ngcontent-%COMP%]   .add-location-button[_ngcontent-%COMP%], .view-modify-container[_ngcontent-%COMP%]   .add-location-button[_ngcontent-%COMP%]{max-height:36px;line-height:36px}.search-path-container[_ngcontent-%COMP%]{padding:0 16px 0 24px}.search-path-container[_ngcontent-%COMP%]   .search-path[_ngcontent-%COMP%]{padding-left:16px;height:48px}.search-path-container[_ngcontent-%COMP%]   .search-path[_ngcontent-%COMP%]:hover{background:#ffffff29}.search-path-container[_ngcontent-%COMP%]   .search-path[_ngcontent-%COMP%]   .remove-button[_ngcontent-%COMP%]{margin-right:8px}.view-modify-container[_ngcontent-%COMP%]{padding-left:16px;border-bottom:1px solid rgba(255,255,255,.24)}.title[_ngcontent-%COMP%]{margin-bottom:14px}.close-button[_ngcontent-%COMP%]{margin-right:8px;margin-bottom:8px;padding-top:8px}"]}),$})();var Ir=c(94645),Do=c(26993);let mr=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt){this.loggingService=b,this.bridgeService=N,this.convertUTCToTimeAgoPipe=Ce,this.dialog=ft,this.nvAppTelemetryUtilService=Jt,this.lastRefreshTime$=new An.m(1),this.logger=b.getLogger("nvapp/PreferenceGamesScanService")}getLastRefreshTime(){return this.lastRefreshTime$.asObservable()}fetchLastRefreshTime(){const b=Hn.VL.method,N=Hn.VL.module,Ce={};return this.bridgeService.executeCommand(Hn.VL,Ce).pipe((0,Rn.T)(ft=>(this.logger.info("last application scan time",ft.timestamp),this.lastRefreshTime$.next(ft.timestamp),this.nvAppTelemetryUtilService.sendPluginApiStatusTelemetry({apiName:b,pluginName:N,status:ut.L1.Success,params:Ce.toString()}),ft.timestamp)),(0,wr.W)(ft=>(this.logger.error("error fetching last application scan time::",ft),this.nvAppTelemetryUtilService.sendPluginApiStatusTelemetry({apiName:b,pluginName:N,status:ut.L1.Failure,params:Ce.toString()}),(0,Nn.$)(ft))))}getConvertedLastRefreshTime(b){return this.convertUTCToTimeAgoPipe.transform(b)}showScanLocationDialog(){const b=new go.ru;b.autoFocus=!1,b.restoreFocus=!1,b.hasBackdrop=!0,b.disableClose=!0,b.panelClass=["scan-location-dialog","common-dialog"],b.width=Ir.pS.width,this.dialog.open(en,b).afterClosed().pipe((0,ji.s)(1)).subscribe(Ce=>{this.logger.info("Scan location dialog was closed")})}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.J6),n.KVO(Ui.NZ),n.KVO(Do.Tw),n.KVO(go.bZ),n.KVO(ut.AY))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var Yr=c(15294),jo=c(68477),ia=c(36877),aa=c(62931),gs=c(62668),$r=c(96306),ma=c(33955),oo=c(3496),Eo=c(25864),Es=c(44743),no=c(62141);const va=F=>({"section-header-container":F}),Yo=(F,$)=>({"font-sub1 font-color-primary section-header":F,"font-body1 font-color-primary":$}),_a=F=>({"icon-gap":F});function fc(F,$){if(1&F&&n.nrm(0,"mat-icon",12),2&F){const U=n.XpG();n.Y8G("svgIcon",null==U.featureReadyState?null:U.featureReadyState.icon)}}function gc(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",13),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onPrimaryActionClick())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&F){const U=n.XpG();n.Y8G("disabled",null==U.featureReadyState||null==U.featureReadyState.primaryActionButton?null:U.featureReadyState.primaryActionButton.disabled),n.R7$(),n.SpI(" ",n.bMT(2,2,U.featureReadyState.primaryActionButton.text)," ")}}function Ul(F,$){if(1&F){const U=n.RV6();n.j41(0,"mat-slide-toggle",14),n.mxI("ngModelChange",function(N){n.eBV(U);const Ce=n.XpG();return n.DH7(Ce.toggleVal,N)||(Ce.toggleVal=N),n.Njj(N)}),n.bIt("change",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onToggleChange())}),n.k0s()}if(2&F){const U=n.XpG();n.R50("ngModel",U.toggleVal),n.Y8G("disabled",U.featureReadyState.toggle.disabled)}}function xl(F,$){if(1&F&&(n.j41(0,"label",15),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F){const U=$.$implicit;n.R7$(),n.SpI(" ",n.bMT(2,1,U)," ")}}function ol(F,$){if(1&F&&(n.j41(0,"label",16),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F){const U=$.$implicit;n.R7$(),n.SpI(" ",n.bMT(2,1,U)," ")}}function od(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",17)(1,"button",18),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onSecondaryActionClick())}),n.EFF(2),n.nI1(3,"translate"),n.k0s()()}if(2&F){const U=n.XpG();n.R7$(2),n.SpI(" ",n.bMT(3,1,null==U.featureReadyState?null:U.featureReadyState.secondaryActionText)," ")}}let ml=(()=>{var F;class ${constructor(b,N,Ce){this.loggingService=b,this.preferenceService=N,this.overlayService=Ce,this.toggleChanged=new n.bkB,this.primaryAction=new n.bkB,this.secondaryAction=new n.bkB,this.toggleVal=!1,this.showSecondaryState=!1,this.unsubscribe$=new fo.B7,this.showToggle=!1,this.logger=b.getLogger("nvapp/PreferenceBaseComponent")}ngOnInit(){this.toggleVal=this.featureReadyState?.toggle?.value,this.featureReadyState.featureName===fn.Au.featureName&&(this.showSecondaryState=this.toggleVal,this.listenOverlayValueChange()),(0,oo.O)(0).pipe((0,ji.s)(1)).subscribe(b=>this.showToggle=!0)}ngOnChanges(b){if(this.featureReadyState?.toggle?.visible&&b.featureReadyState){const N=b.featureReadyState.currentValue;this.toggleVal=N?.toggle.value,this.featureReadyState.toggle.disabled=N?.toggle.disabled,this.featureReadyState.featureName===fn.Au.featureName&&(this.featureReadyState.openStateDescriptions=N?.toggle?.value?[this.overlayService.getOverlayEnabledString()]:[])}}onPrimaryActionClick(){this.primaryAction.emit(this.featureReadyState)}onSecondaryActionClick(){this.preferenceService.onSecondaryAction(this.featureReadyState).pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.logger.info("Secondary action successful",b)},b=>{this.logger.error("Error occurred while clicking on secondary action ",b)})}onToggleChange(){this.logger.info(`Toggle Val for ${this.featureReadyState.featureName}`,this.toggleVal),this.featureReadyState.toggle.newValue=this.toggleVal,this.preferenceService.onToggleChanged(this.featureReadyState).subscribe(b=>{this.logger.info("Toggle action successful ",b),this.featureReadyState.toggle.value=this.toggleVal},b=>{this.toggleVal=this.featureReadyState.toggle.value,this.logger.error("Error occurred while clicking on toggle button ",b)})}listenOverlayValueChange(){this.overlayService.getOverlayState().pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{const N=this.overlayService.getOverlayEnabledString();if(b&&this.featureReadyState.featureName===fn.Au.featureName)switch(this.logger.info("overlayState",b),b.description){case N:this.featureReadyState.openStateDescriptions=[N],this.featureReadyState.toggle.value=b?.feature?.toggle?.value,this.showSecondaryState=!0;break;case Eo.FU.ClickToEnable:this.featureReadyState.toggle.value=b?.feature?.toggle?.value,this.featureReadyState.openStateDescriptions=[],this.showSecondaryState=!1;break;case Eo.FU.Enabling:case Eo.FU.Disabling:this.featureReadyState.openStateDescriptions=[b.description],this.showSecondaryState=!1;break;default:this.featureReadyState.toggle.value=b?.feature?.toggle?.value}},b=>{this.logger.error("Error occurred while getting overlay state ",b)})}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(ai.N),n.rXU(Es.s))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-preference-base"]],inputs:{featureReadyState:"featureReadyState"},outputs:{toggleChanged:"toggleChanged",primaryAction:"primaryAction",secondaryAction:"secondaryAction"},features:[n.OA$],decls:14,vars:19,consts:[["fxLayout","column",1,"base-container",3,"ngClass"],[1,"feature-header"],["class","font-icon material-icons icon",3,"svgIcon",4,"ngIf"],["fxFlex","",1,"header",3,"ngClass"],["mat-button","","class","font-button2 primary-action",3,"disabled","click",4,"ngIf"],["class","preference-toggle",3,"ngModel","disabled","ngModelChange","change",4,"ngIf"],["fxLayout","row"],[3,"ngClass"],["fxLayout","column","fxFlex","",1,"descriptions"],["class","font-body2 message",4,"ngFor","ngForOf"],["class","font-sub2 message-subtitle",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","end","fxLayoutGap","30px",4,"ngIf"],[1,"font-icon","material-icons","icon",3,"svgIcon"],["mat-button","",1,"font-button2","primary-action",3,"click","disabled"],[1,"preference-toggle",3,"ngModelChange","change","ngModel","disabled"],[1,"font-body2","message"],[1,"font-sub2","message-subtitle"],["fxLayout","row","fxLayoutAlign","end","fxLayoutGap","30px"],["mat-button","",1,"font-button2",3,"click"]],template:function(b,N){1&b&&(n.j41(0,"div",0)(1,"div",1),n.DNE(2,fc,1,1,"mat-icon",2),n.j41(3,"label",3),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.DNE(6,gc,3,4,"button",4)(7,Ul,1,2,"mat-slide-toggle",5),n.k0s(),n.j41(8,"div",6),n.nrm(9,"div",7),n.j41(10,"div",8),n.DNE(11,xl,3,3,"label",9)(12,ol,3,3,"label",10),n.k0s()(),n.DNE(13,od,4,3,"div",11),n.k0s()),2&b&&(n.Y8G("ngClass",n.eq3(12,va,null==N.featureReadyState?null:N.featureReadyState.isSectionFeature)),n.R7$(2),n.Y8G("ngIf",null==N.featureReadyState?null:N.featureReadyState.icon),n.R7$(),n.Y8G("ngClass",n.l_i(14,Yo,null==N.featureReadyState?null:N.featureReadyState.isSectionFeature,!(null!=N.featureReadyState&&N.featureReadyState.isSectionFeature))),n.R7$(),n.SpI(" ",n.bMT(5,10,null==N.featureReadyState?null:N.featureReadyState.header)," "),n.R7$(2),n.Y8G("ngIf",null==N.featureReadyState||null==N.featureReadyState.primaryActionButton?null:N.featureReadyState.primaryActionButton.visible),n.R7$(),n.Y8G("ngIf",N.showToggle&&(null==N.featureReadyState||null==N.featureReadyState.toggle?null:N.featureReadyState.toggle.visible)),n.R7$(2),n.Y8G("ngClass",n.eq3(17,_a,null==N.featureReadyState?null:N.featureReadyState.icon)),n.R7$(2),n.Y8G("ngForOf",null==N.featureReadyState?null:N.featureReadyState.descriptions),n.R7$(),n.Y8G("ngForOf",null==N.featureReadyState?null:N.featureReadyState.openStateDescriptions),n.R7$(),n.Y8G("ngIf",(null==N.featureReadyState?null:N.featureReadyState.secondaryActionText)&&(null==N.featureReadyState||null==N.featureReadyState.toggle?null:N.featureReadyState.toggle.value)&&N.showSecondaryState))},dependencies:[$i.YU,$i.Sq,$i.bT,zn.tG,Xs.BC,Xs.vS,Ur.iV,ds.An,no.P2,Kn.DJ,Kn.BO,Kn.sA,Kn.UI,fs.PW,Xr.D9],styles:[".base-container[_ngcontent-%COMP%]   .feature-header[_ngcontent-%COMP%]{display:flex;justify-content:start;position:relative;align-items:center}.section-header-container[_ngcontent-%COMP%]{padding:16px 0}.header[_ngcontent-%COMP%], .message[_ngcontent-%COMP%], .ready-text[_ngcontent-%COMP%]{margin:0}.message[_ngcontent-%COMP%]{color:#fff9;letter-spacing:.25px}.icon[_ngcontent-%COMP%]{margin-right:16px;line-height:24px;font-size:24px;color:#ffffffe6}.icon-gap[_ngcontent-%COMP%]{margin-right:40px}.preference-toggle[_ngcontent-%COMP%]{margin-right:16px}.primary-action[_ngcontent-%COMP%]{height:36px}.descriptions[_ngcontent-%COMP%]{padding-right:68px}"]}),$})();var Te=c(70279);function ze(F,$){if(1&F){const U=n.RV6();n.qex(0),n.j41(1,"button",1),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.linkClick(N.link))}),n.j41(2,"mat-icon",2),n.EFF(3,"open_in_new"),n.k0s(),n.j41(4,"span",3),n.EFF(5),n.nI1(6,"translate"),n.k0s()(),n.bVm()}if(2&F){const U=n.XpG();n.R7$(5),n.JRh(n.bMT(6,1,U.link.title))}}let Je=(()=>{var F;class ${constructor(b,N){this.loggingService=b,this.redirectService=N,this.selectedLink=new n.bkB,this.logger=b.getLogger("nvapp/PreferenceExternalLinkComponent")}linkClick(b){b.redirectPage?this.redirectService.redirectTo(b.redirectPage):this.selectedLink.emit(b)}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Te.Q5))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-preference-external-link"]],inputs:{link:"link"},outputs:{selectedLink:"selectedLink"},decls:1,vars:1,consts:[[4,"ngIf"],["fxLayout","row","fxFlexFill","","mat-button","",1,"link-button",3,"click"],[1,"open-in-browser-icon"],[1,"font-body1"]],template:function(b,N){1&b&&n.DNE(0,ze,7,3,"ng-container",0),2&b&&n.Y8G("ngIf",N.link)},dependencies:[$i.bT,Ur.iV,ds.An,Kn.DJ,Kn.G2,Xr.D9],styles:[".link-button[_ngcontent-%COMP%]{padding:12px 16px;line-height:24px;max-height:48px;align-items:center;cursor:pointer}.link-button[_ngcontent-%COMP%]:active{color:#fff}.link-button[_ngcontent-%COMP%]   .open-in-browser-icon[_ngcontent-%COMP%]{margin-right:20px;line-height:24px;vertical-align:top;color:#ffffffb3}.windows-link[_nghost-%COMP%]   .link-button[_ngcontent-%COMP%]{padding-left:13px}"]}),$})();const Ze=["driverUpdate"],Mt=["rewardNotification"];let pn=(()=>{var F;class ${constructor(b,N,Ce){this.loggingService=b,this.preferenceService=N,this.errorHandlerService=Ce,this.notificationSection=fn.de,this.windowNotificationLink=fn.W7,this.unsubscribe$=new fo.B7,this.logger=b.getLogger("nvapp/NotificationsPreferenceComponent")}ngOnInit(){this.getNotifyDriverUpdateNotification(),this.getRewardNotificationPreference()}ngAfterViewInit(){this.driverUpdate&&this.driveUpdateNotification(),this.rewardNotification&&this.rewardPreferenceNotification()}setDriverUpdate(){this.preferenceService.setNotifyDriverUpdateNotification(this.isDriverUpdateEnabled).pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.logger.info("Driver Update Notification set success",b),this.preferenceService.sendSettingChangeTelemetry(ut.RS.DriverUpdateNotification,this.isDriverUpdateEnabled?ut.GC.Enabled:ut.GC.Disabled,ut.ih.Notifications)},b=>{this.logger.error("Error while setting Driver Update Notification",b),this.preferenceService.sendSettingChangeTelemetry(ut.RS.DriverUpdateNotification,this.isDriverUpdateEnabled?ut.GC.Enabled:ut.GC.Disabled,ut.ih.Notifications,b?.message??"Failed to set driver update notification")})}setRewardNotificationPreference(){this.preferenceService.setRewardNotificationPreference(this.isRewardNotificationEnabled).pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.logger.info("Reward notification preference set success",b),this.preferenceService.sendSettingChangeTelemetry(ut.RS.RewardsNotification,this.isRewardNotificationEnabled?ut.GC.Enabled:ut.GC.Disabled,ut.ih.Notifications)},b=>{this.logger.error("Error while setting reward notification preference",b),this.preferenceService.sendSettingChangeTelemetry(ut.RS.RewardsNotification,this.isRewardNotificationEnabled?ut.GC.Enabled:ut.GC.Disabled,ut.ih.Notifications,b?.message??"Failed to set reward notification preference")})}goToWindowNotification(){this.preferenceService.openWindowsNotifications(Hn.py.Notifications).pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.logger.info("Window Notification success",b)},b=>{this.logger.error("Error while opening Window Notification page",b),(b?.code===fn.Qq||b instanceof gs.n)&&this.showToastMessage()})}showToastMessage(){this.errorHandlerService.showOptionalPluginFailErrorToast()}driveUpdateNotification(){(0,ia.R)(this.driverUpdate?.nativeElement,"click").pipe((0,aa.B)(fn.ln),(0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.logger.info("Drive Update value to set",this.isDriverUpdateEnabled),this.setDriverUpdate()},b=>{this.logger.error("Error occurred in capturing event click for driver update ",b)})}rewardPreferenceNotification(){(0,ia.R)(this.rewardNotification?.nativeElement,"click").pipe((0,aa.B)(fn.ln),(0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.logger.info("Reward preference value to set",this.isDriverUpdateEnabled),this.setRewardNotificationPreference()},b=>{this.logger.error("Error occurred in capturing event click for reward preference ",b)})}getNotifyDriverUpdateNotification(){this.preferenceService.getNotifyDriverUpdateNotification().pipe((0,ji.s)(1)).subscribe(b=>{this.logger.info("Driver Update Notification value",b),this.isDriverUpdateEnabled=b.isEnabled},b=>{this.logger.error("Error while getting Driver Update Notification",b)})}getRewardNotificationPreference(){this.preferenceService.getRewardNotificationPreference().pipe((0,ji.s)(1)).subscribe(b=>{this.logger.info("Reward Notification value",b),this.isRewardNotificationEnabled=b.isEnabled},b=>{this.logger.error("Error while getting reward preference Notification",b)})}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(ai.N),n.rXU($r.c))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-preferences-notifications"]],viewQuery:function(b,N){if(1&b&&(n.GBs(Ze,5,n.aKT),n.GBs(Mt,5,n.aKT)),2&b){let Ce;n.mGM(Ce=n.lsd())&&(N.driverUpdate=Ce.first),n.mGM(Ce=n.lsd())&&(N.rewardNotification=Ce.first)}},decls:17,vars:10,consts:[["driverUpdate",""],["rewardNotification",""],["fxLayout","column","fxFlexFill","",1,"notifications-container"],[3,"featureReadyState"],[1,"notifications-checkbox-container"],["fxLayout","row","fxLayoutAlign","start center",1,"notification-checkbox"],[3,"ngModelChange","ngModel"],["fxFlex","",1,"font-body1","font-color-primary","title"],[1,"divider"],[1,"windows-link",3,"selectedLink","link"]],template:function(b,N){if(1&b){const Ce=n.RV6();n.j41(0,"div",2),n.nrm(1,"nv-app-preference-base",3),n.j41(2,"div",4)(3,"div",5)(4,"mat-checkbox",6,0),n.mxI("ngModelChange",function(Jt){return n.eBV(Ce),n.DH7(N.isDriverUpdateEnabled,Jt)||(N.isDriverUpdateEnabled=Jt),n.Njj(Jt)}),n.j41(6,"p",7),n.EFF(7),n.nI1(8,"translate"),n.k0s()()(),n.j41(9,"div",5)(10,"mat-checkbox",6,1),n.mxI("ngModelChange",function(Jt){return n.eBV(Ce),n.DH7(N.isRewardNotificationEnabled,Jt)||(N.isRewardNotificationEnabled=Jt),n.Njj(Jt)}),n.j41(12,"p",7),n.EFF(13),n.nI1(14,"translate"),n.k0s()()()(),n.nrm(15,"mat-divider",8),n.j41(16,"nv-app-preference-external-link",9),n.bIt("selectedLink",function(){return n.eBV(Ce),n.Njj(N.goToWindowNotification())}),n.k0s()()}2&b&&(n.R7$(),n.Y8G("featureReadyState",N.notificationSection),n.R7$(3),n.R50("ngModel",N.isDriverUpdateEnabled),n.R7$(3),n.SpI(" ",n.bMT(8,6,"preferences.notifications.driver.control")," "),n.R7$(3),n.R50("ngModel",N.isRewardNotificationEnabled),n.R7$(3),n.SpI(" ",n.bMT(14,8,"preferences.notifications.rewards.control")," "),n.R7$(3),n.Y8G("link",N.windowNotificationLink))},dependencies:[zn.tG,Xs.BC,Xs.vS,pi.q,ma.NZ,Kn.DJ,Kn.sA,Kn.G2,Kn.UI,ml,Je,Xr.D9],styles:[".notifications-container[_ngcontent-%COMP%]{margin-bottom:30px}.notifications-container[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{margin:10px 0}.notifications-checkbox-container[_ngcontent-%COMP%]{padding-left:var(--preferences-item-padding)}.notification-checkbox[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin:0}"]}),$})();var gn=function(F){return F.Beta="beta",F.Official="official",F}(gn||{}),Di=c(4760),ar=c(3634),Xi=c(37159);let mo=(()=>{var F;class ${constructor(b){this.loggingService=b,this.logger=this.loggingService.getLogger("nvapp/TryAgainErrorComponent")}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-try-again-error"]],decls:5,vars:3,consts:[[1,"error-container"],["svgIcon","info",1,"icon"],[1,"font-body2","message"]],template:function(b,N){1&b&&(n.j41(0,"div",0),n.nrm(1,"mat-icon",1),n.j41(2,"span",2),n.EFF(3),n.nI1(4,"translate"),n.k0s()()),2&b&&(n.R7$(3),n.SpI(" ",n.bMT(4,1,"common.somethingWentWrong")," \xa0"))},dependencies:[ds.An,Xr.D9],styles:[".error-container[_ngcontent-%COMP%]{display:flex;align-items:center}.error-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-right:16px;display:flex;width:16px;height:16px}"]}),$})();var Jo=c(55808),ko=c(26513),ya=c(12532),ra=c(75707),kr=c(74931),Dl=kr.Or.Common.Nvaccount.PrivacySettings;let Qa=(()=>{var F;class ${constructor(b,N,Ce,ft){this.loggingService=b,this.telemetryService=N,this.telemetryUtilService=Ce,this.nvAccountInterfaceService=ft,this.deviceConsents=fn.eg,this.deviceTechnicalConsent=fn.Yb,this.deviceConsents$=new ko.t(fn.eg),this.deviceTechnicalConsent$=new ko.t(fn.Yb),this.logger=this.loggingService.getLogger("nvapp/DataConsentService"),this.initializeListenersForUserStatus()}getDeviceConsents(){return this.deviceConsents$.asObservable()}getDeviceTechnicalConsent(){return this.deviceTechnicalConsent$.asObservable()}initialize(){this.getPrivacySettings(),this.listenToPrivacySettingsConsentInfoChangeNotification(),this.listenToPrivacySettingsChangeNotification(),this.initUserConsent()}setDeviceConsent(b){this.logger.info("set device consent ",b),this.telemetryService.setDeviceConsent(this.convertConsentData(b))}getPrivacySettings(){this.nvAccountInterfaceService.getPrivacySettings().pipe((0,ji.s)(1)).subscribe(b=>{this.logger.info("Received Privacy Settings ",b?.privacySettings),this.updatePrivacySettings(b?.privacySettings)},b=>this.logger.error("Error occurred while getting privacy settings ",b))}listenToPrivacySettingsConsentInfoChangeNotification(){this.nvAccountInterfaceService.getPrivacySettingsConsentInfoChangeNotification().subscribe(b=>{this.logger.event("listenToPrivacySettingsConsentInfoChangeNotification ",b),this.setNvAppPrivacySettings(b.deviceConsent),this.telemetryService.setDeviceConsent(this.convertConsentData(b.deviceConsent))},b=>this.logger.error("Error occurred while listening to privacy settings consent info change notification ",b))}listenToPrivacySettingsChangeNotification(){this.nvAccountInterfaceService.getPrivacySettingsChangedNotification().subscribe(b=>{this.logger.event("listenToPrivacySettingsChangeNotification ",b?.privacySettings),this.updatePrivacySettings(b?.privacySettings)},b=>this.logger.error("Error occurred while listening to privacy settings change notification ",b))}updatePrivacySettings(b){switch(b){case Dl.RequiredOnly:this.deviceConsents[1].checked=!1,this.deviceTechnicalConsent.checked=!1,this.deviceTechnicalConsent.disabled=!0;break;case Dl.RequiredFunctional:this.deviceConsents[1].checked=!0,this.deviceTechnicalConsent.checked=!1,this.deviceTechnicalConsent.disabled=!1;break;case Dl.RequiredFunctionalTechnical:this.deviceConsents[1].checked=!0,this.deviceTechnicalConsent.checked=!0}this.deviceConsents$.next(this.deviceConsents),this.deviceTechnicalConsent$.next(this.deviceTechnicalConsent)}setNvAppPrivacySettings(b){b?.hasFunctionalConsent&&(this.deviceConsents[1].checked=!0,this.deviceTechnicalConsent.disabled=!1),b?.hasTechnicalConsent&&(this.deviceTechnicalConsent.checked=!0),this.deviceConsents$.next(this.deviceConsents),this.deviceTechnicalConsent$.next(this.deviceTechnicalConsent)}initUserConsent(){this.nvAccountInterfaceService.readUserFromNvAccount().pipe((0,Rn.T)(b=>(b?.userAccount&&b.userAccount?.userId&&(this.setTelemetryUserId(b.userAccount),this.updateUserConsent(b?.userAccount)),!0))).subscribe(b=>{b?this.logger.info("Consent read from the nvAcccount plugin sent to jsevents for initialization."):this.logger.error("No client consent sent to jsevents.")},b=>{this.logger.error("Reading the UserConsentInfo from the nvAcccount plugin failed  with error:",b)})}initializeListenersForUserStatus(){this.listenForUserConsentChange(),this.listenForUserIdChange()}listenForUserConsentChange(){this.nvAccountInterfaceService.getUserConsentChangeNotification().subscribe(b=>{this.logger.info("Update user consent on consentChange notification"),this.updateUserConsent(b)})}listenForUserIdChange(){this.nvAccountInterfaceService.getUserIdChangeNotification().pipe((0,ra.ZZ)(b=>{this.logger.info("Update userId on userIdChange notification");const N=b?.userId;return(0,Cr.isNil)(N?.userId)?(this.logger.info("User logged out"),this.resetTelemetryUserId(),ya.w):(this.logger.info("Fetched user IDs successfully"),this.setTelemetryUserId(b),this.fetchAndUpdateUserConsent())}),(0,wr.W)(b=>(this.logger.error("Error in getting/setting consent data on user refresh, Setting to default",b),(0,yr.of)(!1)))).subscribe(b=>{this.logger.info("Updated user consent result successfully:",b)})}fetchAndUpdateUserConsent(){return this.nvAccountInterfaceService.readUserFromNvAccount().pipe((0,Rn.T)(b=>(this.updateUserConsent(b.userAccount),!0)))}updateUserConsent(b){const N=Object.assign({},Or.XZ);if(!(0,Cr.isNil)(b.userId)){const Ce=b.userId;N.userId=Ce.userId,N.externalUserId=Ce.externalUserId,N.idpId=Ce.identityProviderId}N.userConsent=this.convertConsentData(b.consentLevel),this.telemetryService.setUserConsent([N])}convertConsentData(b){const N=(0,Cr.merge)({},Or.wx);return b&&(N.required=this.telemetryUtilService.getConsentLevel(b.hasRequiredConsent),N.technical=this.telemetryUtilService.getConsentLevel(b.hasTechnicalConsent),N.behavioral=this.telemetryUtilService.getConsentLevel(b.hasBehavioralConsent),N.functional=this.telemetryUtilService.getConsentLevel(b.hasFunctionalConsent)),N}resetTelemetryUserId(){this.telemetryService.setEventsCommonData({userId:Or.oX.Undefined,externalUserId:Or.oX.Undefined,idpId:Or.oX.Undefined},!0)}setTelemetryUserId(b){if((0,Cr.isNil)(b))return;const N=b?.userId;this.telemetryService.setEventsCommonData({userId:N?.userId,externalUserId:N?.externalUserId,idpId:N?.identityProviderId},!0)}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.J6),n.KVO(Or.H0),n.KVO(ut.AY),n.KVO(Jo.W))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();function zd(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",7)(1,"mat-checkbox",8),n.bIt("change",function(){const N=n.eBV(U),Ce=N.$implicit,ft=N.index,Jt=n.XpG();return n.Njj(Jt.processFunctionalConsent(Ce,ft))}),n.j41(2,"div",4)(3,"span",5),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.j41(6,"span",6),n.EFF(7),n.nI1(8,"translate"),n.k0s()()()()}if(2&F){const U=$.$implicit;n.R7$(),n.Y8G("disabled",U.disabled)("checked",U.checked),n.R7$(3),n.JRh(n.bMT(5,4,U.header)),n.R7$(3),n.SpI("",n.bMT(8,6,U.desc)," ")}}let Nu=(()=>{var F;class ${constructor(b,N,Ce){this.loggingService=b,this.nvAccountInterfaceService=N,this.dataConsentService=Ce,this.deviceConsents=[],this.logger=b.getLogger("nvapp/PreferencesPrivacyComponent")}ngOnInit(){this.initializePrivacySettings()}initializePrivacySettings(){this.getPrivacySettingsSub?.unsubscribe(),this.getPrivacySettingsSub=(0,Ts.zV)([this.dataConsentService.getDeviceConsents(),this.dataConsentService.getDeviceTechnicalConsent()]).subscribe(([b,N])=>{this.logger.info("Received privacy consents ",b),this.logger.info("Received technical consent ",N),this.deviceConsents=b,this.technicalConsent=N},b=>this.logger.error("Error occurred while getting consents from observables ",b))}processFunctionalConsent(b,N){this.deviceConsents[N].checked=!b.checked,1===N&&(b.checked||(this.technicalConsent.checked=!1),this.technicalConsent.disabled=!b.checked,this.updatePrivacySettings(this.deviceConsents[1].checked?Eo.E.RequiredFunctional:Eo.E.RequiredOnly))}processTechnicalConsent(b){this.technicalConsent.checked=!b.checked,this.updatePrivacySettings(this.technicalConsent.checked?Eo.E.RequiredFunctionalTechnical:Eo.E.RequiredFunctional)}updatePrivacySettings(b){this.updatePrivacySettingsSub?.unsubscribe(),this.logger.event("updatePrivacySettings: ",b),this.updatePrivacySettingsSub=this.nvAccountInterfaceService.setPrivacySettings(b).subscribe(N=>this.logger.info("Privacy Settings have been updated: ",b),N=>this.logger.error("Error occurred while updating privacy settings ",N))}ngOnDestroy(){this.updatePrivacySettingsSub?.unsubscribe(),this.getPrivacySettingsSub?.unsubscribe()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Jo.W),n.rXU(Qa))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-preferences-privacy"]],decls:13,vars:12,consts:[[1,"privacy-container"],[1,"font-sub1","font-color-primary","section-header"],["class","consent",4,"ngFor","ngForOf"],[1,"error-consent",3,"change","disabled","checked"],[1,"consent-info"],[1,"font-body1","font-color-primary"],[1,"font-body2","consent-desc"],[1,"consent"],[3,"change","disabled","checked"]],template:function(b,N){1&b&&(n.j41(0,"div",0)(1,"label",1),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.DNE(4,zd,9,8,"div",2),n.j41(5,"mat-checkbox",3),n.bIt("change",function(){return N.processTechnicalConsent(N.technicalConsent)}),n.j41(6,"div",4)(7,"span",5),n.EFF(8),n.nI1(9,"translate"),n.k0s(),n.j41(10,"span",6),n.EFF(11),n.nI1(12,"translate"),n.k0s()()()()),2&b&&(n.R7$(2),n.SpI(" ",n.bMT(3,6,"preferences.about.privacy.title")," "),n.R7$(2),n.Y8G("ngForOf",N.deviceConsents),n.R7$(),n.Y8G("disabled",N.technicalConsent.disabled)("checked",N.technicalConsent.checked),n.R7$(3),n.JRh(n.bMT(9,8,N.technicalConsent.header)),n.R7$(3),n.SpI("",n.bMT(12,10,N.technicalConsent.desc)," "))},dependencies:[$i.Sq,zn.tG,ma.NZ,Xr.D9],styles:[".privacy-container[_ngcontent-%COMP%]{padding-bottom:16px}.privacy-container[_ngcontent-%COMP%]   .section-header[_ngcontent-%COMP%]{margin-bottom:16px}.privacy-container[_ngcontent-%COMP%]   .error-consent[_ngcontent-%COMP%]{padding-left:58px}.privacy-container[_ngcontent-%COMP%]   .consent-info[_ngcontent-%COMP%]{display:flex;flex-direction:column}.privacy-container[_ngcontent-%COMP%]   .consent-desc[_ngcontent-%COMP%]{color:#fff9}.consent[_ngcontent-%COMP%]{padding:0 16px 12px;display:flex;flex-direction:column}"]}),$})();const $l=["betaEnable"];function ku(F,$){if(1&F&&(n.j41(0,"label",19),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F){const U=n.XpG();n.R7$(),n.Lme(" ",n.bMT(2,2,"layout.apps.version")," ",U.appVersion," ")}}function sd(F,$){if(1&F&&(n.j41(0,"label",21),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F){const U=$.$implicit;n.R7$(),n.SpI(" ",n.bMT(2,1,U)," ")}}function vl(F,$){if(1&F&&(n.qex(0),n.DNE(1,sd,3,3,"label",20),n.bVm()),2&F){const U=n.XpG();n.R7$(),n.Y8G("ngForOf",null==U.aboutBetaSection?null:U.aboutBetaSection.descriptions)}}function Yc(F,$){1&F&&n.nrm(0,"nv-app-try-again-error",23)}function ad(F,$){if(1&F&&n.DNE(0,Yc,1,0,"nv-app-try-again-error",22),2&F){const U=n.XpG();n.Y8G("ngIf",!U.pluginLoaded)}}function Bl(F,$){if(1&F){const U=n.RV6();n.j41(0,"nv-app-preference-external-link",24),n.bIt("selectedLink",function(N){n.eBV(U);const Ce=n.XpG();return n.Njj(Ce.onSelectedLink(N))}),n.k0s()}2&F&&n.Y8G("link",$.$implicit)}function Kd(F,$){if(1&F){const U=n.RV6();n.j41(0,"nv-app-preference-external-link",25),n.bIt("selectedLink",function(N){n.eBV(U);const Ce=n.XpG();return n.Njj(Ce.onSelectedLink(N))}),n.k0s()}2&F&&n.Y8G("link",$.$implicit)}let Ga=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn){this.loggingService=b,this.downloaderService=N,this.releaseHighlightsService=Ce,this.nvAppTelemetryUtilService=ft,this.pluginNotificationService=Jt,this.preferenceService=wn,this.aboutLinks=fn.L0,this.privacyLinks=fn.Yz,this.aboutBetaSection=fn.nM,this.isBetaEnabled=!1,this.unsubscribe$=new fo.B7,this.pluginLoaded=!0,this.logger=this.loggingService.getLogger("nvapp/PreferencesAboutComponent")}ngOnInit(){this.appVersion=this.preferenceService.getNvAppVersionString(),this.versionYear={year:(new Date).getFullYear()},this.registerForModulesState()}ngAfterViewInit(){this.betaEnable&&this.setUpdateChannel(),this.getUpdateChannelInfo()}setUpdateChannel(){(0,ia.R)(this.betaEnable?.nativeElement,"click").pipe((0,aa.B)(fn.ln),(0,Br.n)(()=>this.downloaderService.setUpdateChannelInfo(this.isBetaEnabled?gn.Beta:gn.Official)),(0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.nvAppTelemetryUtilService.sendSettingChangeEvent(ut.RS.BetaBuild,this.isBetaEnabled?ut.GC.OptIn:ut.GC.OptOut,ut.ih.About,!0),this.logger.info("modified update channel")},b=>{this.logger.error("Error occurred in capturing event click for beta Update Channel set  ",b),this.nvAppTelemetryUtilService.sendSettingChangeEvent(ut.RS.BetaBuild,this.isBetaEnabled?ut.GC.OptIn:ut.GC.OptOut,ut.ih.About,!0,b?.message??"failed to update beta channel preference")})}getUpdateChannelInfo(){this.downloaderService.getUpdateChannelInfo().pipe((0,ji.s)(1)).subscribe(b=>{this.isBetaEnabled=b.updateChannel===gn.Beta,this.logger.info("Update channel info:",b)},b=>{this.logger.error("Error while gettingUpdate channel info",b)})}onSelectedLink(b){b.redirectPage||this.releaseHighlightsService.showInAppReleaseHighlights()}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}registerForModulesState(){this.pluginNotificationService.isPluginLoaded(Se.Y8).pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.pluginLoaded=b,this.logger.info("plugin state",this.pluginLoaded)},b=>{this.logger.error(" ModulesActiveNotification Failed with error: ",b)})}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Di.z),n.rXU(ar.w),n.rXU(ut.AY),n.rXU(Xi.m),n.rXU(ai.N))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-preferences-about"]],viewQuery:function(b,N){if(1&b&&n.GBs($l,5,n.aKT),2&b){let Ce;n.mGM(Ce=n.lsd())&&(N.betaEnable=Ce.first)}},decls:32,vars:20,consts:[["tryAgain",""],["betaEnable",""],[1,"about-container"],["fxLayout","row","fxFlexFill","",1,"version-info-container"],["svgIcon","nvidia_symbol",1,"logo"],["fxLayout","column",1,"version-info"],[1,"font-sub1","font-color-primary","title"],["class","font-body2 version",4,"ngIf"],[1,"font-body2","copyright"],[1,"divider"],["fxLayout","column","fxFlexFill","","fxLayoutGap","10px",1,"optin-builds-container"],[1,"optin-builds-section"],[1,"font-body1","font-color-primary"],[4,"ngIf","ngIfElse"],["fxLayout","row","fxLayoutAlign","start center",1,"optin-checkbox-container"],[3,"ngModelChange","ngModel","disabled"],["fxFlex","",1,"font-body1","font-color-secondary","title"],["class","windows-link",3,"link","selectedLink",4,"ngFor","ngForOf"],["class","about-links",3,"link","selectedLink",4,"ngFor","ngForOf"],[1,"font-body2","version"],["class","font-body2 message",4,"ngFor","ngForOf"],[1,"font-body2","message"],["class","error-container",4,"ngIf"],[1,"error-container"],[1,"windows-link",3,"selectedLink","link"],[1,"about-links",3,"selectedLink","link"]],template:function(b,N){if(1&b){const Ce=n.RV6();n.j41(0,"div",2)(1,"div",3),n.nrm(2,"mat-icon",4),n.j41(3,"div",5)(4,"label",6),n.EFF(5),n.nI1(6,"translate"),n.k0s(),n.DNE(7,ku,3,4,"label",7),n.j41(8,"label",8),n.EFF(9),n.nI1(10,"translate"),n.k0s()()(),n.nrm(11,"mat-divider",9),n.j41(12,"div",10)(13,"div",11)(14,"label",12),n.EFF(15),n.nI1(16,"translate"),n.k0s(),n.DNE(17,vl,2,1,"ng-container",13)(18,ad,1,1,"ng-template",null,0,n.C5r),n.k0s(),n.j41(20,"div",14)(21,"mat-checkbox",15,1),n.mxI("ngModelChange",function(Jt){return n.eBV(Ce),n.DH7(N.isBetaEnabled,Jt)||(N.isBetaEnabled=Jt),n.Njj(Jt)}),n.j41(23,"p",16),n.EFF(24),n.nI1(25,"translate"),n.k0s()()()(),n.nrm(26,"mat-divider",9)(27,"nv-app-preferences-privacy")(28,"mat-divider",9),n.DNE(29,Bl,1,1,"nv-app-preference-external-link",17),n.nrm(30,"mat-divider",9),n.DNE(31,Kd,1,1,"nv-app-preference-external-link",18),n.k0s()}if(2&b){const Ce=n.sdS(19);n.R7$(5),n.JRh(n.bMT(6,11,"preferences.about.appTitle")),n.R7$(2),n.Y8G("ngIf",N.appVersion),n.R7$(2),n.JRh(n.i5U(10,13,"preferences.about.nvidiaRightsReserved",N.versionYear)),n.R7$(6),n.SpI(" ",n.bMT(16,16,null==N.aboutBetaSection?null:N.aboutBetaSection.header)," "),n.R7$(2),n.Y8G("ngIf",N.pluginLoaded)("ngIfElse",Ce),n.R7$(4),n.R50("ngModel",N.isBetaEnabled),n.Y8G("disabled",!N.pluginLoaded),n.R7$(3),n.SpI(" ",n.bMT(25,18,"preferences.about.betaControl")," "),n.R7$(5),n.Y8G("ngForOf",N.privacyLinks),n.R7$(2),n.Y8G("ngForOf",N.aboutLinks)}},dependencies:[$i.Sq,$i.bT,zn.tG,Xs.BC,Xs.vS,ds.An,pi.q,ma.NZ,Kn.DJ,Kn.BO,Kn.sA,Kn.G2,Kn.UI,Je,mo,Nu,Xr.D9],styles:[".about-container[_ngcontent-%COMP%]   .version-info-container[_ngcontent-%COMP%]{padding:16px 0 0;gap:16px}.about-container[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{width:60px;height:60px;margin-right:16px;color:#76b900}.about-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{letter-spacing:.5px}.about-container[_ngcontent-%COMP%]   .version[_ngcontent-%COMP%], .about-container[_ngcontent-%COMP%]   .copyright[_ngcontent-%COMP%]{letter-spacing:.25px;color:#fff9}.about-container[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{margin:16px 0}.about-container[_ngcontent-%COMP%]   .about-links[_ngcontent-%COMP%]{display:flex}.optin-builds-container[_ngcontent-%COMP%]   .optin-builds-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:16px}.optin-builds-container[_ngcontent-%COMP%]   .optin-checkbox-container[_ngcontent-%COMP%]{padding-left:var(--preferences-item-padding)}.optin-builds-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin:0}"]}),$})();var Za=c(148),Ol=c(35146),zl=c(56237),cu=c(53461),Lc=c(8619),Fo=c(42673);let ld=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn){this.gfwslService=N,this.hardwareService=Ce,this.localeService=ft,this.overlayService=Jt,this.preferenceService=wn,this.overlayFeatures$=new ko.t([]),this.cachedOverLayFeatures=[],this.disableState$=(0,yr.of)({value:!1,disabled:!0}),this.logger=b.getLogger("nvapp/FeatureReadinessService"),this.gfwslService.addEndpointDefinitions([Fo.BY,Fo.HN,Fo.ZZ]),this.listenToOverlayToggleRefresh()}getOverlayFeatures(){return this.overlayFeatures$.asObservable()}refreshOverlayFeatures(){this.refreshOverlayFeaturesSub&&this.refreshOverlayFeaturesSub.unsubscribe(),this.refreshOverlayFeaturesSub=this.getFeatureChange().subscribe(()=>{this.logger.info("fetched overlay features"),this.updateOverlayReadyFeatures()},b=>{this.updateOverlayReadyFeatures(),this.logger.error("Error while getting overlay features",b)})}getShareFeature(){return(0,Ol.yU)(this.getNamedFeature(fn.Au),this.localeService.localeChanged.pipe((0,ji.s)(1))).pipe((0,Br.n)(([b,N])=>(b.toggle={visible:b.overallState,value:!1},this.overlayService.getShareFeature(b,N))),(0,wr.W)(b=>(this.logger.error("Error while getting share feature",b),(0,yr.of)(fn.Au))))}refreshToggleValues(b){return this.logger.info("Refreshing toggle values based on overlay toggle ",b),(0,zl.T)(()=>b,this.getFilterPhotoModeValue(b),this.disableState$).pipe((0,xr.M)(N=>{this.logger.info("Filter Photo Mode state",N),this.updateFilterPhotoModeValue(N.value,N.disabled)}),(0,ys.u)(!0))}updateOverlayReadyFeatures(){this.overlayFeatures$.next(this.cachedOverLayFeatures)}listenToOverlayToggleRefresh(){this.refreshToggleValueSub&&this.refreshToggleValueSub.unsubscribe(),this.refreshToggleValueSub=this.overlayService.refreshToggleValues().pipe((0,Br.n)(b=>this.refreshToggleValues(b)),(0,xr.M)(b=>this.updateOverlayReadyFeatures())).subscribe(b=>this.logger.info("Toggles are refreshed"),b=>this.logger.error("Error occurred while refreshing toggles ",b))}getFeatureChange(){return(0,Ts.zV)([this.localeService.localeChanged.pipe((0,cu.F)()),this.hardwareService.getGenericInfo(!1),this.hardwareService.getGpuInfo(!1)]).pipe((0,Lc.p)(([b,N,Ce])=>!(0,Cr.isEqual)(this.cachedGenericInfo,N)||!(0,Cr.isEqual)(this.cachedGpuInfo,Ce)),(0,xr.M)(([b,N,Ce])=>{this.logger.info("Generic Info and GPU Info changed, preparing query"),this.cachedGenericInfo=N,this.cachedGpuInfo=Ce}),(0,Br.n)(()=>(0,Ol.yU)(this.getShareFeature(),this.getFilterPhotoModeFeature())),(0,Rn.T)(b=>b.map(N=>({...N}))),(0,xr.M)(b=>{this.cachedOverLayFeatures=b.filter(N=>N.overallState)}),(0,Br.n)(b=>{const N=this.cachedOverLayFeatures.filter(Ce=>Ce.featureName===fn.Au.featureName)?.[0];return N.isPluginError?(this.logger.error("Plugin error for overlay"),this.updateFilterPhotoModeValue(!1,!0),(0,yr.of)(!1)):this.refreshToggleValues(N.toggle?.value)}))}getFilterPhotoModeValue(b){return this.cachedOverLayFeatures.find(Ce=>Ce.featureName===fn._z.featureName)?.toggle?.visible?this.fetchFilterPhotoModeValue().pipe((0,Rn.T)(Ce=>({value:Ce,disabled:!b}))):this.disableState$}fetchFilterPhotoModeValue(){return this.preferenceService.getPhotoModeGameFilterToggleState()}updateFilterPhotoModeValue(b,N){const Ce=this.cachedOverLayFeatures.find(ft=>ft.featureName===fn._z.featureName);Ce?.toggle&&(Ce.toggle.value=b),Ce.toggle.disabled=N}getFilterPhotoModeFeature(){return(0,Ol.yU)(this.getNamedFeature(fn.sX),this.getNamedFeature(fn.KF)).pipe((0,Rn.T)(([b,N])=>{this.logger.info(`photoModeState ${b.overallState} and freeStyleFeatureState ${N.overallState}`);const Ce=b.overallState&&N.overallState;return{...b,overallState:Ce,toggle:{visible:Ce,value:!1},featureName:fn._z.featureName,header:fn._z.header,descriptions:fn._z.descriptions}}),(0,wr.W)(b=>(this.logger.error("Error while getting photomode gamefilter feature",b),(0,yr.of)(fn._z))))}getNamedFeature(b){const N=b.featureName===fn.sX.featureName?fn.nH:b.featureName;return this.logger.info(`Calling Feature Readiness for ${N} and driver version ${this.cachedGenericInfo.DriverVersion}`),this.gfwslService.onGfwslParamsReady({hasLocaleInfo:!0,hasSystemInfo:!0}).pipe((0,ra.ZZ)(Ce=>this.gfwslService.callEndpoint(b.featureName,{GFPV:this.cachedGenericInfo.DriverVersion},null,null,{})),(0,Rn.T)(Ce=>({...b,...Ce.body.criteria,header:b.header?b.header:Ce.body.criteria.header,descriptions:b.descriptions?.length?b.descriptions:[Ce.body.criteria.message]})),(0,wr.W)(Ce=>(this.logger.error(`Error while getting feature content for ${N}`,Ce),(0,yr.of)(b))))}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.J6),n.KVO(La.XB),n.KVO(Ui.SQ),n.KVO(Ui.iH),n.KVO(Es.s),n.KVO(ai.N))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();function Ad(F,$){1&F&&n.nrm(0,"nv-app-try-again-error",6)}function la(F,$){if(1&F&&(n.qex(0),n.nrm(1,"nv-app-preference-base",8),n.bVm()),2&F){const U=n.XpG().$implicit;n.R7$(),n.Y8G("featureReadyState",U)}}function mc(F,$){if(1&F&&(n.qex(0),n.DNE(1,la,2,1,"ng-container",7),n.bVm()),2&F){const U=$.$implicit;n.R7$(),n.Y8G("ngIf",U.overallState)}}let Nc=(()=>{var F;class ${constructor(b,N){this.loggingService=b,this.featureReadinessService=N,this.overlayReadyFeatures=[],this.overlayMainFeature=fn._8,this.systemReqLink=Za.GY,this.pluginNotfoundError=!1,this.unsubscribe$=new fo.B7,this.logger=this.loggingService.getLogger("nvapp/PreferencesOverlayFeaturesComponent")}ngOnInit(){this.getOverlayFeatures()}trackByFeature(b,N){return N.featureName}getOverlayFeatures(){this.featureReadinessService.getOverlayFeatures().pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.logger.info("overlay features info",b),this.overlayReadyFeatures=b.map(Ce=>({...Ce}));const N=this.overlayReadyFeatures.filter(Ce=>Ce.featureName===fn.Au.featureName)?.[0];this.pluginNotfoundError=N?.isPluginError},b=>{this.logger.error("Error while getting features info",b)})}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(ld))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-preferences-overlay-features"]],decls:6,vars:5,consts:[[1,"overlay-features-container"],[3,"featureReadyState"],[1,"overlay-features"],["class","try-again-error",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"link"],[1,"try-again-error"],[4,"ngIf"],[1,"feature",3,"featureReadyState"]],template:function(b,N){1&b&&(n.j41(0,"div",0),n.nrm(1,"nv-app-preference-base",1),n.j41(2,"div",2),n.DNE(3,Ad,1,0,"nv-app-try-again-error",3)(4,mc,2,1,"ng-container",4),n.nrm(5,"nv-app-preference-external-link",5),n.k0s()()),2&b&&(n.R7$(),n.Y8G("featureReadyState",N.overlayMainFeature),n.R7$(2),n.Y8G("ngIf",N.pluginNotfoundError),n.R7$(),n.Y8G("ngForOf",N.overlayReadyFeatures)("ngForTrackBy",N.trackByFeature),n.R7$(),n.Y8G("link",N.systemReqLink))},dependencies:[$i.Sq,$i.bT,ml,Je,mo],styles:[".overlay-features-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.overlay-features-container[_ngcontent-%COMP%]   .overlay-features[_ngcontent-%COMP%]{display:flex;flex-direction:column}.overlay-features-container[_ngcontent-%COMP%]   .feature[_ngcontent-%COMP%]{padding-left:var(--preferences-item-padding);padding-bottom:24px}.overlay-features-container[_ngcontent-%COMP%]   .try-again-error[_ngcontent-%COMP%]{padding-left:var(--preferences-item-padding);padding-bottom:var(--preferences-item-padding)}"]}),$})();var Vl=c(44272),_l=c(60213),Aa=c(92626);function Td(F,$){if(1&F&&(n.j41(0,"p",15),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F){const U=$.$implicit;n.R7$(),n.SpI(" ",n.bMT(2,1,U)," ")}}function xd(F,$){if(1&F&&(n.j41(0,"div",13),n.DNE(1,Td,3,3,"p",14),n.k0s()),2&F){const U=n.XpG(2);n.R7$(),n.Y8G("ngForOf",null==U.scanNowFeature?null:U.scanNowFeature.descriptions)}}function vc(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",16),n.nI1(1,"translate"),n.bIt("click",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.scanNow())}),n.k0s()}if(2&F){const U=n.XpG(2);n.Y8G("disabled",(null==U.scanNowFeature?null:U.scanNowFeature.primaryActionButton.disabled)||U.isScanning)("showSpinner",U.isScanning)("buttonText",n.bMT(1,3,U.scanNowFeature.primaryActionButton.text))}}function mh(F,$){if(1&F&&(n.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"p",10),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.DNE(6,xd,2,1,"div",11),n.k0s(),n.DNE(7,vc,2,5,"button",12),n.k0s()()),2&F){const U=n.XpG();n.R7$(4),n.SpI(" ",n.bMT(5,3,null==U.scanNowFeature?null:U.scanNowFeature.header)," "),n.R7$(2),n.Y8G("ngIf",null==U.scanNowFeature?null:U.scanNowFeature.descriptions),n.R7$(),n.Y8G("ngIf",null==U.scanNowFeature||null==U.scanNowFeature.primaryActionButton?null:U.scanNowFeature.primaryActionButton.visible)}}function oc(F,$){1&F&&n.nrm(0,"nv-app-try-again-error",17)}function cd(F,$){if(1&F){const U=n.RV6();n.j41(0,"nv-app-preference-base",18),n.bIt("primaryAction",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.showScanLocations())}),n.k0s()}if(2&F){const U=n.XpG();n.Y8G("featureReadyState",U.scanLocationFeature)}}function Wc(F,$){if(1&F&&n.nrm(0,"nv-app-preference-base",19),2&F){const U=n.XpG();n.Y8G("featureReadyState",U.autoOptimizeFeature)}}let du=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn,x,k,_e,lt){this.loggingService=b,this.gamesScanLocationService=N,this.translateService=Ce,this.appListService=ft,this.preferenceGamesScanService=Jt,this.preferenceService=wn,this.opsService=x,this.nvAppTelemetryUtilService=k,this.localeService=_e,this.hardwareService=lt,this.unsubscribe$=new fo.B7,this.scanLocationFeature=Za.Yw,this.searchPaths=[],this.graphicsSettingsEnabled=!1,this.isScanning=!1,this.supportedGamesLink=Za.GO,this.opsSupported=!1,this.localGamePluginNotfoundError=!1,this.logger=b.getLogger("nvapp/PreferenceGameScanComponent")}ngOnInit(){this.scanNowFeature={header:"preferences.gameScan.gamesAppsAddedWithoutCount",descriptions:null,primaryActionButton:{text:"preferences.gameScan.scanNow",visible:!0,disabled:!0}},this.autoOptimizeFeature={...Za.N,toggle:{visible:!0,value:!1,disabled:!0}},this.getSearchPaths(),this.getScannedApps(),this.getScanStatus(),this.getAutoOptimizeEnabled(),this.onLanguageUpdate(),this.onPersonasEnabled()}setPluginNotFoundState(){this.scanLocationFeature.header="preferences.gameScan.scanLocations",this.scanLocationFeature.primaryActionButton.disabled=!0,this.localGamePluginNotfoundError=!0}getSearchPaths(){this.gamesScanLocationService.getSearchPaths().pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.logger.info("game scan localtion path",b),this.searchPaths=b,this.updateScanLocationFeature()},b=>{this.logger.error("Error occurred while scan paths",b)})}updateScanLocationFeature(){this.scanLocationFeature.header=`${this.translateService.instant("preferences.gameScan.scanLocationsCount",{count:this.searchPaths.length})}`,this.scanLocationFeature.primaryActionButton.disabled=!1}getScannedApps(){(0,Ts.zV)([this.appListService.getLocalUpdatedApps(),this.preferenceGamesScanService.getLastRefreshTime()]).pipe((0,pr.Q)(this.unsubscribe$)).subscribe(([b,N])=>{this.logger.info("Games and apps received, count = ",b.length),this.gamesAndAppsCount=b.length,this.lastRefreshTime=N,this.updateScanNowFeature()},b=>{this.logger.error("Error occured while loading local games and apps - ",b)})}updateScanNowFeature(){const b=this.preferenceGamesScanService.getConvertedLastRefreshTime(this.lastRefreshTime);this.scanNowFeature={header:`${this.translateService.instant("preferences.gameScan.gamesAppsAdded",{count:this.gamesAndAppsCount})}`,descriptions:[`${this.translateService.instant("preferences.gameScan.lastScanned",{time:b})}`],primaryActionButton:{text:"preferences.gameScan.scanNow",visible:!0,disabled:!1}}}onLanguageUpdate(){this.localeService.localeChanged.pipe((0,pr.Q)(this.unsubscribe$)).subscribe(()=>{this.updateScanNowFeature(),this.updateScanLocationFeature()},b=>{this.logger.error("Error while updating scan now feature after language change",b)})}onPersonasEnabled(){this.hardwareService.getQuadroSystemFlag().subscribe(b=>{!0===b&&(this.supportedGamesLink=Za.oY)})}getScanStatus(){this.appListService.getScanStatus().pipe((0,Br.n)(b=>b?(this.isScanning=!0,ya.w):(this.isScanning=!1,this.preferenceGamesScanService.fetchLastRefreshTime())),(0,pr.Q)(this.unsubscribe$)).subscribe(Rt.l,b=>{this.logger.error("Error occured while fetching scan status - ",b)})}getAutoOptimizeEnabled(){this.opsService.getOpsCompatibility().pipe((0,Br.n)(b=>(this.opsSupported=b,this.logger.info("Ops Supported",this.opsSupported),this.opsSupported?this.preferenceService.getAutoOptimizeEnabled():(0,yr.of)(!1))),(0,ji.s)(1)).subscribe(b=>{this.logger.info("Auto Optimized preference ",b),this.autoOptimizeFeature={...Za.N,toggle:{visible:!0,value:b,disabled:!1}}},b=>{this.logger.error("Error occurred while fetching auto ops preference",b),(b?.code===fn.Qq||b instanceof gs.n)&&(this.logger.error("LocalGame plugin not found "),this.setPluginNotFoundState())})}showScanLocations(){this.preferenceGamesScanService.showScanLocationDialog()}scanNow(){this.isScanning?this.logger.error("Scanning already in progress"):(this.nvAppTelemetryUtilService.sendClickEvent(ut.EB.ScanNow,ut.ih.System,!0,""),this.appListService.initiateScan())}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Xn.o),n.rXU(Xr.c$),n.rXU(Vl.n),n.rXU(mr),n.rXU(ai.N),n.rXU(_l.s),n.rXU(ut.AY),n.rXU(Ui.iH),n.rXU(Ui.SQ))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-preference-game-scan"]],decls:7,vars:5,consts:[[1,"game-scan-container"],["fxLayout","column",4,"ngIf"],["fxLayout","column",1,"scan-location"],["class","try-again-error",4,"ngIf"],["class","scan-item scan-location-item",3,"featureReadyState","primaryAction",4,"ngIf"],["class","scan-item",3,"featureReadyState",4,"ngIf"],[3,"link"],["fxLayout","column"],[1,"scan-now"],[1,"scan-now-count"],["fxFlex","",1,"header","font-sub1","font-color-primary"],["fxLayout","column","fxFlex","","class","descriptions",4,"ngIf"],["mat-button","","class","font-button2 scan-now-btn","nvAppTextButtonSpinner","",3,"disabled","showSpinner","buttonText","click",4,"ngIf"],["fxLayout","column","fxFlex","",1,"descriptions"],["class","font-body2 message",4,"ngFor","ngForOf"],[1,"font-body2","message"],["mat-button","","nvAppTextButtonSpinner","",1,"font-button2","scan-now-btn",3,"click","disabled","showSpinner","buttonText"],[1,"try-again-error"],[1,"scan-item","scan-location-item",3,"primaryAction","featureReadyState"],[1,"scan-item",3,"featureReadyState"]],template:function(b,N){1&b&&(n.j41(0,"div",0),n.DNE(1,mh,8,5,"div",1),n.j41(2,"div",2),n.DNE(3,oc,1,0,"nv-app-try-again-error",3)(4,cd,1,1,"nv-app-preference-base",4)(5,Wc,1,1,"nv-app-preference-base",5),n.nrm(6,"nv-app-preference-external-link",6),n.k0s()()),2&b&&(n.R7$(),n.Y8G("ngIf",null==N.scanNowFeature?null:N.scanNowFeature.header),n.R7$(2),n.Y8G("ngIf",N.localGamePluginNotfoundError),n.R7$(),n.Y8G("ngIf",N.scanLocationFeature),n.R7$(),n.Y8G("ngIf",N.autoOptimizeFeature&&N.opsSupported),n.R7$(),n.Y8G("link",N.supportedGamesLink))},dependencies:[$i.Sq,$i.bT,Ur.iV,Kn.DJ,Kn.UI,Aa.u,ml,Je,mo,Xr.D9],styles:[".game-scan-container[_ngcontent-%COMP%]{min-height:48px;padding:16px 0 0}.game-scan-container[_ngcontent-%COMP%]   .scan-location[_ngcontent-%COMP%]{margin-top:16px}.game-scan-container[_ngcontent-%COMP%]   .scan-item[_ngcontent-%COMP%]{padding-left:var(--preferences-item-padding);padding-bottom:24px}.game-scan-container[_ngcontent-%COMP%]   .scan-location-item[_ngcontent-%COMP%]{padding-bottom:16px}.game-scan-container[_ngcontent-%COMP%]   .scan-now[_ngcontent-%COMP%]{display:flex;align-items:center}.game-scan-container[_ngcontent-%COMP%]   .scan-now-count[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.game-scan-container[_ngcontent-%COMP%]   .scan-now-btn[_ngcontent-%COMP%]{height:36px}.game-scan-container[_ngcontent-%COMP%]   .try-again-error[_ngcontent-%COMP%]{padding-left:var(--preferences-item-padding);padding-bottom:var(--preferences-item-padding)}.header[_ngcontent-%COMP%], .message[_ngcontent-%COMP%]{margin:0}.section-header[_ngcontent-%COMP%]{color:#fff}.message[_ngcontent-%COMP%]{color:#fff9;letter-spacing:.25px}"]}),$})();const _c=[{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-CN",cmsCode:"zh-CHS",name:"\u7b80\u4f53\u4e2d\u6587 (Chinese - Simplified)",isoThreeLetter:"zho",countryCode:"CN"},{lcid:[3076,1028,4100,404,5124,31748],code:"zh-TW",cmsCode:"zh-CHT",name:"\u7e41\u9ad4\u4e2d\u6587 (Chinese - Traditional)",isoThreeLetter:"zho",countryCode:"CN"}];var Gl=c(83997),ks=c(12949),lo=c(51635);function dd(F,$){if(1&F&&(n.j41(0,"mat-option",5),n.EFF(1),n.k0s()),2&F){const U=$.$implicit;n.Y8G("value",U.name),n.R7$(),n.SpI(" ",U.name," ")}}let Ss=(()=>{var F;class ${constructor(b,N,Ce){this.loggingService=b,this.localeService=N,this.languagePreferenceService=Ce,this.userLanguage=null,this.languageFeatureSection=Za.Ey,this.logger=b.getLogger("nvapp/LanguagePreferenceComponent")}ngOnInit(){this.supportedLanguages=this.getSupportedLanguages(),this.getCurrentLanguage()}setEditMode(b){this.setLanguage(b);const N=this.userLanguage.code.replace("-","_");this.setLocale(N)}getSupportedLanguages(){return _c}getdefaultLanguage(){return this.supportedLanguages[4]}getCurrentLanguage(){const b=this.localeService.getLocale().replace("_","-");this.userLanguage=_c.find(N=>N.code===b)??this.getdefaultLanguage(),this.changedLanguage=this.userLanguage.name}setLanguage(b){this.userLanguage=_c.find(N=>N.name===b)}setLocale(b){this.localeService.setLocale(b).pipe((0,Br.n)(N=>this.languagePreferenceService.setLanguagePreference(b))).subscribe(()=>this.logger.info(`locale successfully set ${b}`),N=>{this.logger.error(`Error while setting locale ${b}`,N)})}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Ui.iH),n.rXU(Gl.$))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-language-preference"]],decls:6,vars:4,consts:[[1,"preference-base"],[1,"preference-base-section",3,"featureReadyState"],["panelClass","mat-select-font-body2","name","Language",1,"mat-mdc-select-dark-background",3,"valueChange","selectionChange","value"],[1,"dropdown-trigger","font-body2"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(b,N){1&b&&(n.j41(0,"div",0),n.nrm(1,"nv-app-preference-base",1),n.k0s(),n.j41(2,"mat-select",2),n.mxI("valueChange",function(ft){return n.DH7(N.changedLanguage,ft)||(N.changedLanguage=ft),ft}),n.bIt("selectionChange",function(){return N.setEditMode(N.changedLanguage)}),n.j41(3,"mat-select-trigger",3),n.EFF(4),n.k0s(),n.DNE(5,dd,2,2,"mat-option",4),n.k0s()),2&b&&(n.R7$(),n.Y8G("featureReadyState",N.languageFeatureSection),n.R7$(),n.R50("value",N.changedLanguage),n.R7$(2),n.JRh(N.changedLanguage),n.R7$(),n.Y8G("ngForOf",N.supportedLanguages))},dependencies:[$i.Sq,ks.VO,ks.$2,lo.wT,ml],styles:[".preference-base[_ngcontent-%COMP%]{display:flex;margin:16px 0}.preference-base[_ngcontent-%COMP%]   .preference-base-section[_ngcontent-%COMP%]{justify-content:flex-start;width:100%}.mat-mdc-select[_ngcontent-%COMP%]{display:flex;width:222px;flex-shrink:0;margin-bottom:16px;flex-direction:column}"]}),$})();function q(F,$){if(1&F&&(n.j41(0,"div",1),n.nrm(1,"nv-app-preferences-overlay-features")(2,"mat-divider",2)(3,"nv-app-preference-base",3)(4,"nv-app-preference-base",4)(5,"mat-divider",2)(6,"nv-app-preference-game-scan")(7,"mat-divider",2)(8,"nv-app-language-preference"),n.k0s()),2&F){const U=n.XpG();n.R7$(3),n.Y8G("featureReadyState",U.autoDownloadSection),n.R7$(),n.Y8G("featureReadyState",U.autoDownloadFeature)}}let Ne=(()=>{var F;class ${constructor(b,N,Ce){this.loggingService=b,this.preferenceService=N,this.performanceMeasureService=Ce,this.unsubscribe$=new fo.B7,this.autoDownloadSection=Za.rl,this.searchPaths=[],this.controlPanelFeatureEnabled=!1,this.logger=b.getLogger("nvapp/PreferencesFeaturesComponent")}ngOnInit(){this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppSettingsRouteNavigationEnd,cn.mM.NvAppSettingsDataFetchStart],cn.fR.Settings),this.getDriverAutoDownloadPreference(),this.preferenceService.triggerPhotoModeGameFilterToggleUpdate()}getDriverAutoDownloadPreference(){this.preferenceService.getAutoDriverDownloadNotification().pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppSettingsDataFetchEnd,cn.mM.NvAppSettingsViewRenderStart],cn.fR.Settings),this.logger.info("Auto driver download preference ",b),this.autoDownloadFeature={...Za.E7,toggle:{visible:!0,value:b.isEnabled}},this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppSettingsViewRenderEnd],cn.fR.Settings)},b=>{this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppSettingsDataFetchEnd,cn.mM.NvAppSettingsViewRenderStart,cn.mM.NvAppSettingsViewRenderEnd],cn.fR.Settings),this.logger.error("Error occurred while fetching auto driver download preference",b)})}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(ai.N),n.rXU(gr.M))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-preferences-features"]],decls:1,vars:1,consts:[["class","features-container",4,"ngIf"],[1,"features-container"],[1,"section-divider"],[3,"featureReadyState"],[1,"auto-download-feature",3,"featureReadyState"]],template:function(b,N){1&b&&n.DNE(0,q,9,2,"div",0),2&b&&n.Y8G("ngIf",N.autoDownloadFeature)},dependencies:[$i.bT,pi.q,ml,Nc,du,Ss],styles:[".features-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.features-container[_ngcontent-%COMP%]   .auto-download-feature[_ngcontent-%COMP%]{padding-left:var(--preferences-item-padding)}.features-container[_ngcontent-%COMP%]   .last[_ngcontent-%COMP%], .features-container[_ngcontent-%COMP%]   .auto-download-feature[_ngcontent-%COMP%]   .base-container[_ngcontent-%COMP%]{padding-bottom:0}.features-container[_ngcontent-%COMP%]   .section-divider[_ngcontent-%COMP%]{margin-top:16px}"]}),$})();const yt=["tabGroup"];function Yt(F,$){if(1&F&&(n.j41(0,"span",5),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F){const U=n.XpG();n.Y8G("ngClass",0===U.selectedTabIndex?"font-color-primary":"font-color-secondary"),n.R7$(),n.JRh(n.bMT(2,2,"preferences.featureReadiness.title"))}}function un(F,$){if(1&F&&(n.j41(0,"span",5),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F){const U=n.XpG();n.Y8G("ngClass",1===U.selectedTabIndex?"font-color-primary":"font-color-secondary"),n.R7$(),n.JRh(n.bMT(2,2,"preferences.notifications.title"))}}function ui(F,$){if(1&F&&(n.j41(0,"span",5),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F){const U=n.XpG();n.Y8G("ngClass",2===U.selectedTabIndex?"font-color-primary":"font-color-secondary"),n.R7$(),n.JRh(n.bMT(2,2,"preferences.about.title"))}}let zi=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn){this.loggingService=b,this.appBarService=N,this.preferenceGamesScanService=Ce,this.telemetryService=ft,this.pageVisitTelemetryService=Jt,this.route=wn,this.disableTabAnimation=!0,this.selectedTabIndex=0,this.unsubscribe$=new fo.B7,this.logger=b.getLogger("nvapp/PreferencesComponent"),this.appBarService.setTitle("toolbar.settings"),this.telemetryService.setScreen(ut.f3.Settings)}ngOnInit(){this.preferenceGamesScanService.fetchLastRefreshTime().pipe((0,ji.s)(1)).subscribe(Rt.l,b=>{this.logger.error("Error while fetching last refresh time",b)}),this.sendPageEventTelemetry()}ngAfterViewInit(){this.route.queryParams.pipe((0,Ki.c)(0),(0,pr.Q)(this.unsubscribe$)).subscribe(b=>{b.tab===fn.mZ&&(this.tabGroup.selectedIndex=fn.jq,this.selectedTabIndex=fn.jq)},b=>this.logger.error("Error occurred while getting query params",b))}tabChanged(b){this.logger.info(b.index),this.selectedTabIndex=b.index,this.sendPageEventTelemetry()}sendPageEventTelemetry(){const b=this.getActiveTabForPageEventTelemetry(this.selectedTabIndex);this.pageVisitTelemetryService.setTabChangedForPageEventTelemetry(b)}getActiveTabForPageEventTelemetry(b){switch(b){case 0:return ut.d3.Settings_Features;case 1:return ut.d3.Settings_Notifications;case 2:return ut.d3.Settings_About}}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.unsubscribe()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(si.g),n.rXU(mr),n.rXU(Or.H0),n.rXU(Yr.V),n.rXU(Go.nX))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-preferences"]],viewQuery:function(b,N){if(1&b&&n.GBs(yt,5),2&b){let Ce;n.mGM(Ce=n.lsd())&&(N.tabGroup=Ce.first)}},decls:16,vars:1,consts:[["tabGroup",""],[1,"preferences-container"],["mat-stretch-tabs","false",1,"settings-page-tabs","common-tabs",3,"selectedTabChange"],["mat-tab-label",""],[1,"tab-content"],[1,"font-sub2",3,"ngClass"]],template:function(b,N){if(1&b){const Ce=n.RV6();n.j41(0,"div",1)(1,"mat-tab-group",2,0),n.bIt("selectedTabChange",function(Jt){return n.eBV(Ce),n.Njj(N.tabChanged(Jt))}),n.j41(3,"mat-tab"),n.DNE(4,Yt,3,4,"ng-template",3),n.j41(5,"div",4),n.nrm(6,"nv-app-preferences-features"),n.k0s()(),n.j41(7,"mat-tab"),n.DNE(8,un,3,4,"ng-template",3),n.j41(9,"div",4),n.nrm(10,"nv-app-preferences-notifications"),n.k0s()(),n.j41(11,"mat-tab"),n.DNE(12,ui,3,4,"ng-template",3),n.j41(13,"div",4),n.nrm(14,"nv-app-preferences-about"),n.k0s()(),n.nrm(15,"mat-divider"),n.k0s()()}2&b&&(n.R7$(),n.Y8G("@.disabled",N.disableTabAnimation))},dependencies:[$i.YU,pi.q,jo.ES,jo.mq,jo.T8,fs.PW,pn,Ga,Ne,Xr.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((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}[_nghost-%COMP%]{--preferences-item-padding: 16px}.preferences-container[_ngcontent-%COMP%], .settings-page-tabs[_ngcontent-%COMP%]{height:100%;min-height:100%;min-width:100%;width:100%}.settings-page-tabs[_ngcontent-%COMP%]   .tab-content[_ngcontent-%COMP%]{padding:0 var(--rwd-container-side-spacing);width:calc(calc(12 * var(--rwd-column-size) + 11 * var(--rwd-gutter-size)));max-width:calc(1440px - var(--rwd-sidebar-width) - 2 * var(--rwd-container-side-spacing))}"]}),$})();var io=c(16229),vo=function(F){return F[F.Overview=0]="Overview",F[F.Performance=1]="Performance",F[F.Display=2]="Display",F[F.Video=3]="Video",F}(vo||{}),Is=c(11001);const Vi=[vo.Display,vo.Video,vo.Performance,vo.Overview];var yo=c(65224),Pl=c(93181),kc=c(43615),Po=kr.Or.Nvapp.Nvcpldisplayplugin.SuperResolutionValue,ud=kr.Or.Nvapp.Nvcpldisplayplugin.SuperResolutionStatus,Ha=kr.Or.Nvapp.Nvcpldisplayplugin.HdrErrorCodeInfo;const yc=kr.Ts.Nvapp.Nvcpldisplayplugin.GetSuperResolutionInfo,Xd=kr.Ts.Nvapp.Nvcpldisplayplugin.SetSuperResolutionValue,uu=kr.Ts.Nvapp.Nvcpldisplayplugin.GetSuperResolutionCurrentStatus,qp=kr.Ts.Nvapp.Nvcpldisplayplugin.GetHDRInfo,ef=kr.Ts.Nvapp.Nvcpldisplayplugin.SetHDRInfo,Wo=kr.Ts.Nvapp.Nvcpldisplayplugin.GetHDRCurrentStatus,Hl=kr.Ts.Nvapp.Nvcpldisplayplugin.CommitState,hd=kr.Ts.Nvapp.Nvcpldisplayplugin.CancelState,pd=kr.Ts.Nvapp.Nvcpldisplayplugin.RestoreDefaultVideoSettings,jl="common.on",sc="common.off",hu="common.active",ja="common.inactive",tp="common.disabled",Fc="system.video.status",sl="system.video.vsrQuality.one",$c="system.video.vsrQuality.two",yh="system.video.vsrQuality.three",Fu="system.video.vsrQuality.four",fd=new Map([[Po.SuperResValue_Auto,"common.auto"],[Po.SuperResValue_1,sl],[Po.SuperResValue_2,$c],[Po.SuperResValue_3,yh],[Po.SuperResValue_4,Fu]]),Sh=new Map([[ud.SuperResStatus_Off,sc],[ud.SuperResStatus_1,sl],[ud.SuperResStatus_2,$c],[ud.SuperResStatus_3,yh],[ud.SuperResStatus_4,Fu]]),Uc=[Po.SuperResValue_Auto,Po.SuperResValue_1,Po.SuperResValue_2,Po.SuperResValue_3,Po.SuperResValue_4],Bu=new Map([[Ha.NO_HDR_DISPLAY_CONNECTED,"system.video.hdrInfoPopup.errorNoHdrDisplay"],[Ha.ENABLE_HDR_FROM_WINDOWS,"system.video.hdrInfoPopup.errorWindowsSetting"],[Ha.SURROUND_ENABLED,"system.video.hdrInfoPopup.hdrDialogSurroundErrorString"]]),Ta=new Map([[Ha.NO_HDR_DISPLAY_CONNECTED,"system.video.hdrInfoPopup.errorNoHdrDisplay"],[Ha.ENABLE_HDR_FROM_WINDOWS,"system.video.hdrDialogWindowsErrorString"],[Ha.SURROUND_ENABLED,"system.video.hdrInfoPopup.hdrDialogSurroundErrorString"]]),op={isSupported:!1,isEnabled:!1,quality:Po.SuperResValue_Off,isActive:!1,status:ud.SuperResStatus_Off},fu={isSupported:!1,isEnabled:!1,errorCode:Ha.NO_HDR_DISPLAY_CONNECTED,isActive:!1,peakBrightness:0,minPeakBrightness:0,maxPeakBrightness:0,middleGray:0,contrast:0,saturation:0};function Od(F,$,U){return $.isEnabled?F.instant(U.isActive&&$.quality===Po.SuperResValue_Auto?"system.video.qualityWithValue":"system.video.quality",{quality:F.instant(fd.get($.quality)),value:F.instant(Sh.get(U.status))}):null}function yl(F){switch(F){case Ha.SUCCESS:return ut.Mb.NA;case Ha.NO_HDR_DISPLAY_CONNECTED:return ut.Mb.NoHdrDisplayConnected;case Ha.ENABLE_HDR_FROM_WINDOWS:return ut.Mb.EnableHdrFromWindows;default:return ut.Mb.NA}}function bc(F){switch(F){case Po.SuperResValue_Auto:return ut.V_.SuperResValueAuto;case Po.SuperResValue_1:return ut.V_.SuperResValue1;case Po.SuperResValue_2:return ut.V_.SuperResValue2;case Po.SuperResValue_3:return ut.V_.SuperResValue3;case Po.SuperResValue_4:return ut.V_.SuperResValue4;default:return ut.V_.SuperResValueAuto}}var tf=c(14749);class nf{constructor($){this.defaultTabList=[...$],this.tabList=[...$],this.tabChange=new ko.t(this.tabList[0])}getTabList(){return this.tabList}refreshTabList($=[]){return this.tabList=[...this.defaultTabList],$.forEach(U=>{const b=this.getTabIndex(U);-1!==b&&this.tabList.splice(b,1)}),this.tabList}tabChanged($){this.tabChange.next(this.tabList[$])}getTabIndex($){return this.tabList.findIndex(U=>U===$)}tabEntered$($){return this.tabChange.asObservable().pipe((0,Rn.T)(U=>U===$),(0,Lc.p)(U=>U))}tabExited$($){return this.tabChange.asObservable().pipe((0,tf.J)(),(0,Rn.T)(([U,b])=>U===$),(0,Lc.p)(U=>U))}}let Pd=(()=>{var F;class ${constructor(b){this.systemTabs=new nf(Vi),this.logger=b.getLogger("nvapp/SystemUtilService")}getTabList(){return this.systemTabs.getTabList()}tabChanged(b){this.systemTabs.tabChanged(b)}resetTabList(b){return this.systemTabs.refreshTabList(b)}getTabIndex(b){return this.systemTabs.getTabIndex(b)}tabEntered$(b){return this.systemTabs.tabEntered$(b)}tabExited$(b){return this.systemTabs.tabExited$(b)}getSystemViewNameFromSystemTab(b){switch(b){case vo.Overview:return ut.d3.System_Overview;case vo.Performance:return ut.d3.System_Performance;case vo.Video:return ut.d3.System_Video;case vo.Display:return ut.d3.System_Displays}}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.J6))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var al=c(86088);let gd=(()=>{var F;class ${get vsrInfo$(){return this.vsrInfo.asObservable()}get vsrStatus$(){return this.vsrStatus.asObservable().pipe((0,cu.F)((b,N)=>b.isActive===N.isActive&&b.status===N.status))}get hdrInfo$(){return this.hdrInfo.asObservable()}get hdrStatus$(){return this.hdrStatus.asObservable().pipe((0,cu.F)())}constructor(b,N,Ce,ft,Jt,wn){this.bridgeService=N,this.systemUtilService=Ce,this.displaysService=ft,this.nvappBridgeService=Jt,this.telemetryService=wn,this.isInitialized=!1,this.isPolling=!1,this.vsrInfo=new An.m(1),this.vsrStatus=new An.m(1),this.hdrInfo=new An.m(1),this.hdrStatus=new An.m(1),this.logger=b.getLogger("nvapp/VideoService")}initialize(){this.isInitialized?(0,Pl.p)([this.getVsrInfo(),this.getHdrInfo()]).subscribe(Rt.l,Rt.l):((0,Pl.p)([this.getVsrInfo(),this.getHdrInfo()]).pipe((0,xr.M)(([b,N])=>{const Ce={errorInfo:yl(N.errorCode)};this.telemetryService.push(new ut.kR(Ce))})).subscribe({next:b=>this.logger.info("VideoService initialized"),error:b=>this.logger.error("Error fetching video information",b)}),(0,io.h)(this.isOnVideoTab().pipe((0,Lc.p)(b=>b)),this.displaysService.displayChanged$).pipe((0,Br.n)(b=>(0,Pl.p)([this.getVsrInfo(),this.getHdrInfo()]))).subscribe(Rt.l,Rt.l)),this.isInitialized=!0}startPollingStatus(b){this.isPolling||(this.isOnVideoTab().pipe((0,Br.n)(N=>(this.logger.info((N?"Is":"Is not")+" on video tab"),N?(0,Ts.zV)([this.vsrInfo$,this.hdrInfo$]):(0,yr.of)([null,null]))),(0,Br.n)(([N,Ce])=>this.pollStatusApiIfValid(N,Ce)),(0,xr.M)(([N,Ce])=>{N&&this.vsrStatus.next({status:N.superResStatus,isActive:N.superResStatus!==ud.SuperResStatus_Off}),Ce&&this.hdrStatus.next(Ce.hdrStatus)}),(0,pr.Q)(b),(0,kc.j)(()=>{this.isPolling=!1,this.logger.info("Video Component destroyed, likely exited system page")})).subscribe(Rt.l,N=>this.logger.error("Error polling VSR/HDR status:",N)),this.isPolling=!0)}setVsrState(b){this.nvappBridgeService.executeWithPluginStatusTelemetry(Xd,{superResolutionValue:b.isEnabled?b.quality:Po.SuperResValue_Off}).pipe((0,ra.ZZ)(N=>this.getVsrInfo()),(0,wr.W)(N=>(this.logger.error("Error setting VSR state:",N),(0,yr.of)(null)))).subscribe(Rt.l,Rt.l)}setHdrState(b){this.nvappBridgeService.executeWithPluginStatusTelemetry(ef,{HDRInfoValue:{isSupported:!0,hdrValue:b.isEnabled,hdrPeakBrightness:b.peakBrightness,hdrPeakBrightnessMax:b.maxPeakBrightness,hdrPeakBrightnessMin:b.minPeakBrightness,hdrMiddleGray:b.middleGray,hdrContrast:b.contrast+100,hdrSaturation:b.saturation+100,hdrErrorCodeInfo:Ha.SUCCESS,hdrStatus:!1}}).pipe((0,ra.ZZ)(N=>this.getHdrInfo()),(0,wr.W)(N=>(this.logger.error("Error setting HDR state:",N),(0,yr.of)(null)))).subscribe(Rt.l,Rt.l)}restoreDefaults(){return this.nvappBridgeService.executeWithPluginStatusTelemetry(pd).pipe((0,ra.ZZ)(b=>(this.logger.info("Defaults restored, refreshing Video data"),(0,Pl.p)([this.getVsrInfo(),this.getHdrInfo()]))))}applyStateChange(b=(0,yr.of)(null)){this.bridgeService.executeCommand(Hl).pipe((0,ra.ZZ)(N=>b)).subscribe(N=>this.logger.info("State change applied successfully"),N=>this.logger.error("Failure applying state change:",N))}cancelStateChange(b=(0,yr.of)(null)){this.bridgeService.executeCommand(hd).pipe((0,ra.ZZ)(N=>b)).subscribe(N=>this.logger.info("State change cancelled successfully"),N=>this.logger.error("Failure cancelling state change:",N))}getVsrInfo(){return this.nvappBridgeService.executeWithPluginStatusTelemetry(yc,{},{},!0,!1).pipe((0,Rn.T)(b=>({isSupported:b.SuperResolutionInfoValue.isSupported,isEnabled:b.SuperResolutionInfoValue.superResolutionValue!==Po.SuperResValue_Off,quality:b.SuperResolutionInfoValue.superResolutionValue,isActive:b.SuperResolutionInfoValue.superResolutionStatus!==ud.SuperResStatus_Off,status:b.SuperResolutionInfoValue.superResolutionStatus})),(0,xr.M)(b=>{this.logger.info("VSR state fetched:",b),this.vsrInfo.next(b),this.vsrStatus.next({status:b.status,isActive:b.isActive})}),(0,wr.W)(b=>(this.logger.error("Get VSR info failed:",b),this.vsrInfo.next(op),this.vsrStatus.next(op),(0,yr.of)(null))))}getHdrInfo(){return this.nvappBridgeService.executeWithPluginStatusTelemetry(qp,{},{},!0,!1).pipe((0,Rn.T)(b=>({isSupported:b.HDRInfoValue.isSupported,isEnabled:b.HDRInfoValue.hdrValue,errorCode:b.HDRInfoValue.hdrErrorCodeInfo,isActive:b.HDRInfoValue.hdrStatus,peakBrightness:b.HDRInfoValue.hdrPeakBrightness,minPeakBrightness:b.HDRInfoValue.hdrPeakBrightnessMin,maxPeakBrightness:b.HDRInfoValue.hdrPeakBrightnessMax,middleGray:b.HDRInfoValue.hdrMiddleGray,contrast:b.HDRInfoValue.hdrContrast-100,saturation:b.HDRInfoValue.hdrSaturation-100})),(0,xr.M)(b=>{this.logger.info("HDR state fetched:",b),this.hdrInfo.next(b),this.hdrStatus.next(b.isActive)}),(0,wr.W)(b=>(this.logger.error("Get HDR info failed:",b),this.hdrInfo.next(fu),this.hdrStatus.next(!1),(0,yr.of)(null))))}isOnVideoTab(){return(0,io.h)(this.systemUtilService.tabEntered$(vo.Video).pipe((0,Rn.T)(b=>!0)),this.systemUtilService.tabExited$(vo.Video).pipe((0,Rn.T)(b=>!1)))}pollStatusApiIfValid(b,N){if(this.logger.info("pollStatusApiIfValid",b,N),!(b?.isSupported&&b?.isEnabled||N?.isSupported&&N?.isEnabled))return(0,yr.of)([null,null]);const Ce=new ko.t(!0);return Ce.asObservable().pipe((0,ra.ZZ)(ft=>(0,oo.O)(2e3)),(0,ra.ZZ)(ft=>{const Jt=b?.isSupported&&b?.isEnabled?this.getVsrStatus():(0,yr.of)(null),wn=N?.isSupported&&N?.isEnabled?this.getHdrStatus():(0,yr.of)(null);return(0,Pl.p)([Jt,wn]).pipe((0,kc.j)(()=>Ce.next(!0)))}))}getVsrStatus(){return this.nvappBridgeService.executeWithPluginStatusTelemetry(uu,{},{},!1,!0,"GetVsrStatus status info API failed")}getHdrStatus(){return this.nvappBridgeService.executeWithPluginStatusTelemetry(Wo,{},{},!1,!0,"GetHdrStatus status info API failed")}getHierarchy(){return this.telemetryService.getScreen()+"/"+ut.d3.System_Video}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.J6),n.KVO(Ui.NZ),n.KVO(Pd),n.KVO(yo.R),n.KVO(al.S),n.KVO(Or.H0))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var wd=c(15652),Mh=c(10785),Cc=kr.Or.Nvapp.Nvoc.ProfileType,wl=kr.Or.Nvapp.Overclockingnvc.Type;const pm=kr.Ts.Nvapp.Nvoc.GetGpuInfo,pg=kr.Ts.Share.Nvperfmon.EnablePerfStatsNotification,Th=kr.Ts.Share.Nvperfmon.RegisterPerfStatsNotifications,Id=kr.Ts.Nvapp.Nvoc.GetOCConfig,rf=kr.Ts.Nvapp.Nvoc.GetLastOcScanResults,Qd=kr.Ts.Nvapp.Nvoc.OcScanStatusUpdatesNotifications,xh=kr.Ts.Nvapp.Nvoc.powerStatusNotification,gu=kr.Ts.Nvapp.Nvoc.GetOCAdminConsent,fm=kr.Ts.Nvapp.Nvoc.SetOCAdminConsent,sf=kr.Ts.Nvapp.Overclockingnvc.EnableBackgroundOcScan,Gu=kr.Ts.Nvapp.Overclockingnvc.StartOcManualScan,af=kr.Ts.Nvapp.Overclockingnvc.StopOcManualScan,ll=kr.Ts.Nvapp.Overclockingnvc.RestoreOcDefault,sp=kr.Ts.Nvapp.Overclockingnvc.SetPerfProfile,_u=kr.Ts.Nvapp.Nvoc.GetPerfProfiles,Hu={featureSupported:[ut.KD.PerformanceMonitoring],appliedStatus:ut.T8.FALSE,automaticTuningEnabled:ut.T8.FALSE,disclaimerPromptOptionSelected:ut.vr.NotPresented,restoredDefaults:ut.T8.FALSE,isProfileTypeToggled:ut.T8.FALSE,profileType:ut.E6.None,perfLimits:{temperatureLimit:0,powerLimit:0,voltageLimit:0,fanSpeedTarget:0},voltageChanged:ut.T8.FALSE,powerChanged:ut.T8.FALSE,temperatureChanged:ut.T8.FALSE,fanSpeedChanged:ut.T8.FALSE,gpuChanged:ut.T8.FALSE,gpuCount:0,gpu1:"",gpu2:""},Ec="...",Rd=[{key:"gpuClock",name:"performance.gpuClock",unit:"performance.megaHertz",value:Ec},{key:"gpuPower",name:"performance.gpuPower",unit:"performance.watt",value:Ec},{key:"gpuTemp",name:"performance.gpuTemp",unit:"performance.degreeCelcius",value:Ec},{key:"gpuVoltage",name:"performance.gpuVoltage",unit:"Volt",value:Ec},{key:"vramClock",name:"performance.vramClock",unit:"performance.megaHertz",value:Ec},{key:"gpuUtil",name:"performance.gpuUtil",unit:"performance.percentage",value:Ec},{key:"cpuUtil",name:"performance.cpuUtil",unit:"performance.percentage",value:Ec},{key:"gpuFanSpeed",name:"performance.gpuFanSpeed",unit:"performance.rpm",value:Ec}];var Xl=function(F){return F.gpusPerfStats="gpusPerfStats",F.gpuIndex="gpuIndex",F.gSyncLamp="gSyncLamp",F.gpuFanSpeed="gpuFanSpeed",F.fanSpeed="fanSpeed",F}(Xl||{}),xa=function(F){return F[F.scanInProgress=0]="scanInProgress",F[F.scanNotRunning=1]="scanNotRunning",F[F.completedSuccessfully=4]="completedSuccessfully",F[F.cancelledUserRequested=64]="cancelledUserRequested",F[F.cancelledGpuBusy=128]="cancelledGpuBusy",F[F.noResultButValid=32]="noResultButValid",F[F.cancelledPowerSwitchToDc=512]="cancelledPowerSwitchToDc",F}(xa||{}),zc=function(F){return F[F.AC=0]="AC",F[F.DC=1]="DC",F[F.UPS_LIKE=2]="UPS_LIKE",F[F.Unknown=3]="Unknown",F}(zc||{});const lc=new Map([[1,"performance.perfLimiters.gpuClockOffset"],[2,"performance.perfLimiters.memoryClockOffset"],[3,"performance.perfLimiters.voltageMax"],[4,"performance.perfLimiters.powerMax"],[5,"performance.perfLimiters.tempTarget"],[6,"performance.perfLimiters.fanSpeedTarget"]]);var da=function(F){return F[F.tuneDisabled=0]="tuneDisabled",F[F.tuneEnabled=1]="tuneEnabled",F[F.consentGiven=2]="consentGiven",F[F.consentNotGiven=3]="consentNotGiven",F[F.consentSaved=4]="consentSaved",F[F.consentNotSaved=5]="consentNotSaved",F}(da||{});let ka=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn,x){this.loggingService=b,this.errorHandlerService=N,this.genericDialog=Ce,this.hardwareInfoService=ft,this.nvAppBridgeService=Jt,this.performanceMeasureService=wn,this.telemetryService=x,this.gpuPerfTuningData=Hu,this.gpuPerfTuningDataSent={},this._selectedGpu=0,this._installedDDVersion="",this._gpuName="",this.gpuInfoData$=new ko.t([]),this.logger=this.loggingService.getLogger("nvapp/PerfSharedService")}initialize(){this.initializeGpuInfo(),this.initializeDeviceDriverInfo()}get selectedGpu(){return this._selectedGpu}set selectedGpu(b){this._selectedGpu=b}get installDDVersion(){return this._installedDDVersion}get gpuName(){return this._gpuName}set gpuName(b){this._gpuName=b}get gpuInfo(){return this.gpuInfoData$.asObservable()}getTelemetryParams(){return{gpuName:this.gpuName,installDDVersion:this.installDDVersion}}initializeDeviceDriverInfo(){this.hardwareInfoService.getGenericInfo(!1).pipe((0,ji.s)(1)).subscribe(b=>{this.logger.info("Generic info fetched:",JSON.stringify(b)),this._installedDDVersion=b.DriverVersion},b=>{this.logger.error("Error during GetGenericInfo api call - ",b?.message)})}initializeGpuInfo(){this.nvAppBridgeService.executeWithPluginStatusTelemetry(pm,{},{},!1,!1).pipe((0,ji.s)(1)).subscribe(b=>{if(b.result){this.gpuInfoData$.next(b.gpus);let{gpuCount:N,gpu1:Ce,gpu2:ft}=this.gpuPerfTuningData;const Jt=b.gpus;this.gpuName=b.gpus[this.selectedGpu]?.Name,N=Jt.length,Ce=Jt[0]?.Name||"",ft=Jt[1]?.Name||"",this.gpuPerfTuningData={...this.gpuPerfTuningData,gpuCount:N,gpu1:Ce,gpu2:ft},this.gpuInfoData$.next(b.gpus)}else this.gpuInfoData$.next([]),this.logger.error("Error during GetGpuInfo api call, returned False")},b=>{this.logger.error("Error during GetGpuInfo api call - ",b?.message),this.gpuInfoData$.next([])})}showErrorToast(b){this.logger.error(b),this.errorHandlerService.showToastMessage({text:"common.somethingWentWrong"})}showDisclaimerAndSetConsent(){return this.showTuningDisclaimer().pipe((0,Br.n)(b=>b?this.setOCAdminConsent(!0).pipe((0,Br.n)(N=>N?(this.logger.info("Consent for auto tuning saved."),(0,yr.of)(da.consentSaved)):(this.logger.info("User consent for auto tuning not saved, will not start auto tuning."),(0,yr.of)(da.consentNotSaved)))):(this.gpuPerfTuningData.disclaimerPromptOptionSelected=he.vr.Cancelled,this.logger.info("Consent not given, not starting background auto tuning"),(0,yr.of)(da.consentNotGiven))))}getOCAdminConsent(){const b=this.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(gu,{},b,!1,!1).pipe((0,Rn.T)(N=>(N&&(this.gpuPerfTuningData.disclaimerPromptOptionSelected=he.vr.ConsentAlreadyPresent),this.logger.info("Success GetOCAdminConsent ",N),N.adminConsent)),(0,wr.W)(N=>(this.logger.error("Error during GetOCAdminConsent api call - ",N),(0,Nn.$)(N))))}setOCAdminConsent(b){const N={adminConsent:b},Ce=this.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(fm,N,Ce,!1,!1).pipe((0,Rn.T)(ft=>(ft?(this.gpuPerfTuningData.disclaimerPromptOptionSelected=ft.result?he.vr.Agreed:he.vr.UacCancelled,this.logger.info("Success SetOCAdminConsent with consent set to ",b)):(this.gpuPerfTuningData.disclaimerPromptOptionSelected=he.vr.Cancelled,this.logger.error("Some failure while SetOCAdminConsent, not setting auto tuning admin consent")),ft.result)),(0,wr.W)(ft=>(this.gpuPerfTuningData.disclaimerPromptOptionSelected=he.vr.Cancelled,this.logger.error("Error during SetOCAdminConsent api call - ",ft),(0,Nn.$)(ft))))}updatePerfMarkers(b){this.performanceMeasureService.markNvAppPerformanceMarkers(b,cn.fR.Performance)}sendGpuPerfTuningEvent(){if(!(0,Cr.isEqual)(this.gpuPerfTuningDataSent,this.gpuPerfTuningData)){this.gpuPerfTuningDataSent=(0,Cr.cloneDeep)(this.gpuPerfTuningData),this.logger.info("Sending gpuPerfTuningEventData",JSON.stringify(this.gpuPerfTuningData));const b=new he.m_(this.gpuPerfTuningData);this.telemetryService.push(b)}}setSliderCurrentValues(b,N){const Ce=this.gpuPerfTuningData.perfLimits;b?.forEach(ft=>{switch(ft.type){case wl.Power:Ce.powerLimit=ft.current;break;case wl.Temperature:Ce.temperatureLimit=ft.current;break;case wl.Voltage:Ce.voltageLimit=ft.current}}),Ce.fanSpeedTarget=N[0]?.sliderSetting.current,this.gpuPerfTuningData={...this.gpuPerfTuningData,perfLimits:Ce}}setProfileValue(b){let N;switch(b){case Cc.Default:N=he.E6.Default;break;case Cc.Custom:N=he.E6.Custom;break;default:N=he.E6.Default}this.gpuPerfTuningData.profileType=N}setLimiterDataChange(b,N=void 0){let{fanSpeedChanged:Ce,powerChanged:ft,voltageChanged:Jt,temperatureChanged:wn}=this.gpuPerfTuningData;if(void 0!==N)ft=he.T8.TRUE,Jt=he.T8.TRUE,wn=he.T8.TRUE,Ce=Ce===he.T8.TRUE||b===wl.Fan?he.T8.TRUE:he.T8.FALSE;else switch(b){case wl.Power:ft=he.T8.TRUE;break;case wl.Voltage:Jt=he.T8.TRUE;break;case wl.Temperature:wn=he.T8.TRUE;break;case wl.Fan:Ce=he.T8.TRUE}this.gpuPerfTuningData={...this.gpuPerfTuningData,fanSpeedChanged:Ce,powerChanged:ft,voltageChanged:Jt,temperatureChanged:wn}}showTuningDisclaimer(){return this.hardwareInfoService.getIsLaptopSystem().pipe((0,ji.s)(1),(0,ra.ZZ)(b=>{this.logger.info("Device is laptop:",b);const Ce=this.genericDialog.open({autoFocus:!1,panelClass:["dialogPaddingRemove"],data:{headerText:{text:"performance.disclaimer.title"},primaryButton:{text:"eula.agreeAndContinue"},secondaryButton:{text:"common.cancel"},autoFocusOnPrimaryButton:!1,bodyText:{text:b?"performance.disclaimer.perfLimitNotSupportedMessage":"performance.disclaimer.message"}}},{disableFocusRestore:!0}),ft=Ce.primaryButtonClick.pipe((0,ys.u)(!0)),Jt=Ce.secondaryButtonClick.pipe((0,ys.u)(!1)),wn=Ce.afterClosed().pipe((0,ys.u)(!1));return(0,wd.O4)(ft,Jt,wn).pipe((0,ji.s)(1),(0,Br.n)(x=>(Ce.close(),(0,yr.of)(x))),(0,wr.W)(x=>(this.logger.error("Error while clicking auto tune info dialog",x),(0,Nn.$)(x))))}),(0,wr.W)(b=>(this.logger.error("Error while clicking auto tune info dialog",b),(0,Nn.$)(b))))}systemIsLaptop(){return this.hardwareInfoService.getIsLaptopSystem().pipe((0,ji.s)(1))}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.J6),n.KVO($r.c),n.KVO(Na.uh),n.KVO(Ui.SQ),n.KVO(al.S),n.KVO(gr.M),n.KVO(Or.H0))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})(),Da=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt){this.genericDialog=b,this.loggingService=N,this.perfSharedService=Ce,this.translateService=ft,this.nvAppBridgeService=Jt,this.ocScanResult={},this.isDcPower$=new ko.t(!1),this.convertedCompletionTime$=new ko.t(""),this.scanResultNotification$=new fo.B7,this.stopScanProgress$=new ko.t(!1),this.logger=this.loggingService.getLogger("nvapp/PerfTuningService")}initialize(b){this.logger.info("Initializing..."),this.registerOcScanStatusUpdatesNotifications(b),this.registerPowerStatusNotifications(b)}get isDcPowerMode(){return this.isDcPower$.asObservable()}get getConvertedCompletionTime(){return this.convertedCompletionTime$.asObservable()}showAutoTuneInfoDialog(){const N=this.genericDialog.open({autoFocus:!1,panelClass:["dialogPaddingRemove","description-gap"],data:{headerText:{text:"performance.autoTune.title"},primaryButton:{text:"common.close"},autoFocusOnPrimaryButton:!1,bodyText:{text:"performance.autoTune.info"}}});this.autoTuneDialogSub?.unsubscribe(),this.autoTuneDialogSub=(0,wd.O4)(N.primaryButtonClick,N.afterClosed()).pipe((0,ji.s)(1)).subscribe(()=>N.close(),Ce=>this.logger.error("Error while clicking auto tune info dialog",Ce))}isAutoTuneSupported(){const b={uiGpuId:this.perfSharedService.selectedGpu},N=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(Id,b,N,!1,!1).pipe((0,Rn.T)(Ce=>{const ft=Ce?.ocConfig?.manualOcScannerSupported&&Ce?.ocConfig?.backgroundOcScannerSupported;return this.logger.info(`OC Auto tune is ${ft?"supported":"not supported"} `),ft&&!this.perfSharedService.gpuPerfTuningData.featureSupported.includes(ut.KD.AutomaticOverclocking)&&this.perfSharedService.gpuPerfTuningData.featureSupported.push(ut.KD.AutomaticOverclocking),ft}),(0,wr.W)(Ce=>(this.logger.error("Error during GetOCConfig api call - ",Ce),(0,Nn.$)(Ce))))}getLastOcScanResults(){const b={uiGpuId:this.perfSharedService.selectedGpu},N=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(rf,b,N,!1,!1).pipe((0,Rn.T)(Ce=>(this.logger.info("Success GetLastOcScanResults ",Ce),Ce.result)),(0,wr.W)(Ce=>(this.logger.error("Error during GetLastOcScanResults api call - ",Ce),(0,Nn.$)(Ce))))}registerOcScanStatusUpdatesNotifications(b){const N=this.perfSharedService.getTelemetryParams();this.nvAppBridgeService.executeWithPluginStatusTelemetry(Qd,{},N,!1,!1).pipe((0,pr.Q)(b)).subscribe(Ce=>{this.logger.info("Success OcScanStatusUpdatesNotifications ",Ce),this.ocScanResult=Ce,this.updateCompletionTimeInText(),this.updateGpuPerfTuningData(),this.scanResultNotification$.next(Ce)},Ce=>{this.logger.error("Error during OcScanStatusUpdatesNotifications api call - ",Ce),this.scanResultNotification$.error(Ce)},()=>this.logger.info("OcScanStatusNotification sub completed"))}updateGpuPerfTuningData(){0!==this.ocScanResult.memoryOcOffsetMhz||0!==this.ocScanResult.averageGpuClockOffsetMhz?(this.perfSharedService.gpuPerfTuningData.appliedStatus=ut.T8.TRUE,this.perfSharedService.gpuPerfTuningData.restoredDefaults=ut.T8.FALSE):this.perfSharedService.gpuPerfTuningData.appliedStatus=ut.T8.FALSE}registerPowerStatusNotifications(b){const N=this.perfSharedService.getTelemetryParams();this.nvAppBridgeService.executeWithPluginStatusTelemetry(xh,{},N,!1,!1).pipe((0,pr.Q)(b)).subscribe(Ce=>{this.logger.info("Power Status is",Ce?.powerStatus),this.isDcPower$.next(Ce.powerStatus===zc.DC)},Ce=>{this.logger.error("Error during PowerStatusNotification api call - ",Ce),this.isDcPower$.next(!1)},()=>this.logger.info("PowerStatusNotification sub completed"))}getScanResultNotification(){return this.scanResultNotification$.asObservable()}getAutoTuneToggleState(){return this.scanResultNotification$.pipe((0,Rn.T)(b=>b.stable||0===b.type),(0,wr.W)(b=>(this.logger.error("Error during getAutoTuneToggleState  call - ",b),(0,Nn.$)(b))))}getCompletionStatus(b){return[xa.completedSuccessfully,xa.cancelledUserRequested,xa.cancelledGpuBusy,xa.cancelledPowerSwitchToDc,xa.noResultButValid].forEach(Ce=>{(b&Ce)===Ce&&(b=Ce)}),b}updateCompletionTimeInText(){this.timeIntervalSub?.unsubscribe(),this.ocScanResult?.completionTime?this.timeIntervalSub=(0,oo.O)(0,6e4).subscribe(()=>{this.setCompletionTime()},b=>this.logger.error("Error getting scan completion time",b)):this.convertedCompletionTime$.next("")}setCompletionTime(){const b=Mh(new Date(Math.floor(this.ocScanResult?.completionTime/1e3))).fromNow();this.convertedCompletionTime$.next(this.translateService.instant("performance.updated",{completionTime:b}))}enableBackgroundOcScan(b){const N={enable:b,uiGpuId:this.perfSharedService.selectedGpu};this.logger.info("Calling EnableBackgroundOcScan with param",N);const Ce=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(sf,N,Ce,!1,!1).pipe((0,Rn.T)(ft=>{if(this.perfSharedService.gpuPerfTuningData.automaticTuningEnabled=N.enable?ut.T8.TRUE:ut.T8.FALSE,ft.result)return this.logger.info("Success EnableBackgroundOcScan ",ft),b;{const Jt=`Some error occured in EnableBackgroundOcScan ${ft}`;throw this.logger.error(Jt),new Error(Jt)}}),(0,wr.W)(ft=>(this.logger.error("Error during EnableBackgroundOcScan api call - ",ft),(0,Nn.$)(ft))))}startOcScan(){const b={uiGpuId:this.perfSharedService.selectedGpu},N=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(Gu,b,N,!1,!1).pipe((0,Rn.T)(Ce=>Ce.result?(this.logger.info("Success StartOcManualScan ",Ce),Ce.result):(this.logger.error("Some error occured in StartOcManualScan ",Ce),!1)),(0,wr.W)(Ce=>(this.logger.error("Error during StartOcManualScan api call - ",Ce),(0,Nn.$)(Ce))))}stopOcScan(){this.stopScanProgress$.next(!0);const b={uiGpuId:this.perfSharedService.selectedGpu},N=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(af,b,N,!1,!1).pipe((0,Rn.T)(Ce=>{if(Ce.result)return this.logger.info("Success StopOcManualScan ",Ce),Ce.result;{const ft=`Some error occured in StopOcManualScan ${Ce}`;throw this.logger.error(ft),new Error(ft)}}),(0,wr.W)(Ce=>(this.logger.error("Error during StopOcManualScan api call - ",Ce),(0,Nn.$)(Ce))))}getStopScanProgress(){return this.stopScanProgress$.asObservable()}resetStopScanButton(){this.stopScanProgress$.next(!1)}checkConsentAndEnableBgOcScan(b){return this.perfSharedService.getOCAdminConsent().pipe((0,Br.n)(N=>N?this.toggleBackgroundOcScan(b):this.perfSharedService.showDisclaimerAndSetConsent()),(0,Br.n)(N=>N===da.consentSaved?this.toggleBackgroundOcScan(b):(0,yr.of)(N)))}toggleBackgroundOcScan(b){return b?this.enableBgOcScanAndStartScan().pipe((0,Rn.T)(N=>N?da.tuneEnabled:da.tuneDisabled)):this.enableBackgroundOcScan(!1).pipe((0,ys.u)(da.tuneDisabled))}enableBgOcScanAndStartScan(){return this.enableBackgroundOcScan(!0).pipe((0,Br.n)(b=>b?this.startOcScan():(this.logger.error("Background Oc scan not enabled, Not starting Oc scan"),(0,yr.of)(!1))))}consentForRestore(){const N=this.genericDialog.open({autoFocus:!1,panelClass:["dialogPaddingRemove"],data:{headerText:{text:"performance.autoTune.restoreTitle"},primaryButton:{text:"performance.autoTune.restoreButtonText"},secondaryButton:{text:"common.cancel"},autoFocusOnPrimaryButton:!1,bodyText:{text:"performance.autoTune.restoreMessage"}}},{disableFocusRestore:!0}),Ce=N.primaryButtonClick.pipe((0,ys.u)(!0)),ft=N.secondaryButtonClick.pipe((0,ys.u)(!1)),Jt=N.afterClosed().pipe((0,ys.u)(!1));return(0,wd.O4)(Ce,ft,Jt).pipe((0,ji.s)(1),(0,Br.n)(wn=>(N.close(),wn?this.restoreOcDefaults():(0,yr.of)(da.consentNotGiven))),(0,wr.W)(wn=>(this.logger.error("Error while clicking auto tune info dialog",wn),(0,Nn.$)(wn))))}checkConsentAndRestoreOc(){return this.perfSharedService.getOCAdminConsent().pipe((0,Br.n)(b=>b?this.consentForRestore():this.perfSharedService.showDisclaimerAndSetConsent()),(0,Br.n)(b=>b===da.consentSaved||b===da.consentGiven?this.restoreOcDefaults():(0,yr.of)(b)))}restoreOcDefaults(){const b={uiGpuId:this.perfSharedService.selectedGpu},N=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(ll,b,N,!1,!1).pipe((0,Rn.T)(Ce=>{if(Ce.result)return this.logger.info("Success RestoreOcDefault ",Ce),this.perfSharedService.gpuPerfTuningData.appliedStatus=ut.T8.FALSE,this.perfSharedService.gpuPerfTuningData.restoredDefaults=ut.T8.TRUE,Ce.result;throw new Error(`Some error occured while RestoreOcDefault, ${Ce}`)}),(0,Br.n)(Ce=>Ce?this.getLastOcScanResults():(this.logger.error("Some error occured in RestoreOcDefault "),(0,yr.of)(!1))),(0,ys.u)(da.tuneEnabled),(0,wr.W)(Ce=>(this.logger.error("Error during RestoreOcDefault api call - ",Ce),(0,Nn.$)(Ce))))}learnMoreAutoTune(b,N){const Ce=N?.completionStatus,k=b?"performance.autoTune.learnMoreMessageDc":"performance.autoTune.learnMoreMessage",_e=this.translateService.instant((Ce&xa.cancelledGpuBusy)===xa.cancelledGpuBusy?"performance.autoTune.interruptedByGpuText":(Ce&xa.cancelledPowerSwitchToDc)===xa.cancelledPowerSwitchToDc?"performance.autoTune.laptopNotPluggedInError":(Ce&xa.cancelledUserRequested)===xa.cancelledUserRequested?"performance.autoTune.interruptedByUserText":"performance.autoTune.interruptedByError"),lt=this.translateService.instant(k,{interruptedText:_e}),an=this.genericDialog.open({autoFocus:!1,panelClass:["dialogPaddingRemove"],disableClose:!1,data:{headerText:{text:"performance.autoTune.title"},primaryButton:b?{text:"common.close"}:{text:"performance.autoTune.tuneNow",accentColor:!0},secondaryButton:b?void 0:{text:"common.close"},autoFocusOnPrimaryButton:!1,bodyText:{text:lt,translated:!0}}}),xn=an.primaryButtonClick.pipe((0,ji.s)(1),(0,ys.u)(!b)),qn=an.secondaryButtonClick.pipe((0,ji.s)(1),(0,ys.u)(!1));return(0,io.h)(xn,qn).pipe((0,ji.s)(1),(0,Br.n)(hi=>(an.close(),hi?this.checkConsentAndEnableBgOcScan(!0):(0,yr.of)(da.consentNotGiven))),(0,wr.W)(hi=>(this.logger.error("Error while clicking auto tune learn more dialog",hi),(0,Nn.$)(hi))))}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Na.uh),n.KVO(Ui.J6),n.KVO(ka),n.KVO(Xr.c$),n.KVO(al.S))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})(),Dh=(()=>{var F;class ${get perfMetricsForDisplay(){return this._perfMetricsForDisplay}constructor(b,N,Ce,ft){this.loggingService=b,this.perfSharedService=N,this.nvAppBridgeService=Ce,this.dbService=ft,this._perfMetricsForDisplay=Rd,this.logger=this.loggingService.getLogger("nvapp/PerfStatisticsService")}initialize(){this.globalStore=this.dbService.getGlobalStore(Ir.xI.GlobalStore),this.globalStore.getItem(Ir.xI.PerfStatsSupportState).pipe((0,ji.s)(1)).subscribe(b=>{b&&Xl.gpuFanSpeed in b&&!b[Xl.gpuFanSpeed]&&this._perfMetricsForDisplay.forEach((N,Ce)=>{N.key===Xl.gpuFanSpeed&&this._perfMetricsForDisplay.splice(Ce,1)})},b=>{this.logger.error("Could not initialize perf metrics from db store",b)})}enablePerfStatsNotifications(b){const N={isEnable:b,intervalMS:500},Ce=this.perfSharedService.getTelemetryParams();return this.logger.info("Calling EnablePerfStatsNotification with param: ",N),this.nvAppBridgeService.executeWithPluginStatusTelemetry(pg,N,Ce,!1,!1).pipe((0,Rn.T)(ft=>(ft.result?this.logger.info(`Perf Stats notifications has been ${b?"enabled":"disabled"}.`):this.logger.error("Some error occured, perf Stats notifications is disabled."),ft.result)),(0,xr.M)(ft=>{ft&&this.initCheckForNotApplicableMetrics()}),(0,wr.W)(ft=>(this.logger.error("Error during EnablePerfStatsNotification api call - ",ft),(0,Nn.$)(ft))))}disablePerfStatsNotifications(){this.stopPerfNotificationSub?.unsubscribe(),this.stopPerfNotificationSub=this.enablePerfStatsNotifications(!1).pipe((0,ji.s)(1)).subscribe(Rt.l,Rt.l)}registerPerfStatsNotifications(){const b=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(Th,{},b,!1,!1).pipe((0,Rn.T)(N=>(delete N._return_code,delete N._return_status,delete N._return_internal,Object.assign({},N))),(0,wr.W)(N=>(this.logger.error("Error during RegisterPerfStatsNotifications api call - ",N),(0,Nn.$)(N))))}enableAndRegisterPerfStatsNotifications(){return this.enablePerfStatsNotifications(!0).pipe((0,Br.n)(b=>b?this.registerPerfStatsNotifications():(this.logger.info("Failed to enable PerfStatsNotifications"),(0,yr.of)(null))),(0,wr.W)(b=>(this.logger.error("Error while trying to enablePerfStatsNotifications",b),(0,Nn.$)(b))),(0,Br.n)(b=>b?(this.updateMetricsForDisplay(b),(0,yr.of)(this._perfMetricsForDisplay)):(0,yr.of)(null)),(0,wr.W)(b=>(this.logger.error("Error while trying to process perf metrics",b),(0,Nn.$)(b))))}initCheckForNotApplicableMetrics(){(0,oo.O)(1e4,-1).pipe((0,ji.s)(1),(0,Br.n)(()=>{let b=!0;return this._perfMetricsForDisplay.forEach((N,Ce)=>{isNaN(parseInt(N.value.toString(),10))&&(N.value=-1,N.key===Xl.gpuFanSpeed&&(this._perfMetricsForDisplay.splice(Ce,1),b=!1))}),this.globalStore.setItem(Ir.xI.PerfStatsSupportState,{gpuFanSpeed:b}).pipe((0,ys.u)(b))})).subscribe(b=>{this.logger.info("Saved fanSpeedSupported as ",b)},b=>{this.logger.error("Timer errored!",b)})}updateMetricsForDisplay(b){Object.keys(b).forEach(Ce=>{const ft=b[Ce][this.perfSharedService.selectedGpu];switch(Ce){case Xl.gpusPerfStats:this.fetchPerfStatsFromSubMetrics(ft);break;case Xl.gSyncLamp:break;default:const Jt=b[Ce].toString();this.updatePerfMetricDisplayData(Ce,Jt)}})}fetchPerfStatsFromSubMetrics(b){let N;b&&Object.keys(b).filter(ft=>ft!==Xl.gpuIndex).forEach(ft=>{N=ft===Xl.gpuFanSpeed&&b[ft].length>0?b[ft][0][Xl.fanSpeed].toString():b[ft].toString(),this.updatePerfMetricDisplayData(ft,N)})}updatePerfMetricDisplayData(b,N){const Ce=Rd.find(ft=>ft.key===b);if(Ce){const ft=this._perfMetricsForDisplay.findIndex(Jt=>Jt.key===Ce.key);ft>=0&&(this._perfMetricsForDisplay[ft].value=N)}}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.J6),n.KVO(ka),n.KVO(al.S),n.KVO(Ui.at))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var Mc=c(99204),ua=c(20288),Ac=c(31308);const Fa=(F,$)=>({"scan-errored":F,"is-dc-power":$});function ju(F,$){1&F&&(n.j41(0,"div",3),n.nrm(1,"mat-spinner",4),n.j41(2,"span"),n.EFF(3),n.nI1(4,"translate"),n.k0s()()),2&F&&(n.R7$(3),n.SpI(" ",n.bMT(4,1,"performance.fetching")," "))}function Vs(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",7)(1,"div",8)(2,"div",9),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.nrm(5,"mat-progress-bar",10),n.j41(6,"div",11),n.EFF(7),n.nI1(8,"translate"),n.k0s()(),n.j41(9,"div"),n.EFF(10),n.nI1(11,"translate"),n.k0s(),n.j41(12,"button",12),n.nI1(13,"async"),n.nI1(14,"async"),n.nI1(15,"translate"),n.bIt("click",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.stopScan())}),n.k0s()()}if(2&F){const U=n.XpG(2);n.R7$(3),n.JRh(n.bMT(4,9,"performance.scanningText")),n.R7$(2),n.Y8G("mode",(null==U.ocScanResult?null:U.ocScanResult.percentComplete)>0?"determinate":"indeterminate")("value",null==U.ocScanResult?null:U.ocScanResult.percentComplete),n.R7$(2),n.JRh(n.bMT(8,11,"performance.scanningMessage")),n.R7$(3),n.Lme("",null==U.ocScanResult?null:U.ocScanResult.percentComplete,"",n.bMT(11,13,"performance.percentage"),""),n.R7$(2),n.Y8G("showSpinner",n.bMT(13,15,U.stopScanProgress$)&&U.scanOnLoad)("disabled",n.bMT(14,17,U.stopScanProgress$)&&U.scanOnLoad)("buttonText",n.bMT(15,19,"performance.stopScan"))}}function cf(F,$){1&F&&n.eu8(0)}function ap(F,$){1&F&&(n.j41(0,"div"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"performance.autoTune.dcModeMessage")," "))}function Oh(F,$){if(1&F){const U=n.RV6();n.j41(0,"div"),n.EFF(1),n.nI1(2,"translate"),n.j41(3,"a",20),n.bIt("click",function(){n.eBV(U);const N=n.XpG(3);return n.Njj(N.onLearnMoreAutoTune())}),n.EFF(4),n.nI1(5,"translate"),n.k0s()()}2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,2,"performance.autoTune.tuneInterrupted")," "),n.R7$(3),n.SpI(" ",n.bMT(5,4,"common.learnMore")," "))}function Ja(F,$){if(1&F&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.nI1(3,"translate"),n.k0s()),2&F){const U=n.XpG(4);n.R7$(),n.E5c("\xa0\xa0|\xa0\xa0",n.bMT(2,3,"performance.vramTune")," +",null==U.ocScanResult?null:U.ocScanResult.memoryOcOffsetMhz," ",n.bMT(3,5,"performance.megaHertz"),"")}}function cc(F,$){if(1&F&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&F){const U=n.XpG(4);n.R7$(),n.SpI(" (",U.convertedCompletionTime,") ")}}function Rl(F,$){if(1&F&&(n.j41(0,"div"),n.EFF(1),n.nI1(2,"translate"),n.nI1(3,"translate"),n.DNE(4,Ja,4,7,"span",18),n.nI1(5,"async"),n.DNE(6,cc,2,1,"span",18),n.k0s()),2&F){const U=n.XpG(3);n.R7$(),n.E5c(" ",n.bMT(2,5,"performance.gpuTune")," +",null==U.ocScanResult?null:U.ocScanResult.averageGpuClockOffsetMhz," ",n.bMT(3,7,"performance.megaHertz")," "),n.R7$(3),n.Y8G("ngIf",!1===n.bMT(5,9,U.systemIsLaptop$)),n.R7$(2),n.Y8G("ngIf",!!U.convertedCompletionTime)}}function Ph(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",13)(1,"div"),n.nrm(2,"mat-icon",14),n.k0s(),n.j41(3,"div",15)(4,"div")(5,"div",16),n.DNE(6,cf,1,0,"ng-container",17)(7,ap,3,3,"div",18)(8,Oh,6,6,"div",18),n.k0s()(),n.j41(9,"button",19),n.bIt("click",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.restoreClock())}),n.EFF(10),n.nI1(11,"translate"),n.k0s()(),n.DNE(12,Rl,7,11,"ng-template",null,1,n.C5r),n.k0s()}if(2&F){const U=n.sdS(13),b=n.XpG(2);n.Y8G("ngClass",n.l_i(8,Fa,b.scanErrored,b.isDcPower)),n.R7$(6),n.Y8G("ngTemplateOutlet",U),n.R7$(),n.Y8G("ngIf",b.isDcPower),n.R7$(),n.Y8G("ngIf",b.scanErrored),n.R7$(),n.Y8G("disabled",b.isDcPower||b.completionState!==b.autoScanStatusCodes.completedSuccessfully),n.R7$(),n.SpI(" ",n.bMT(11,6,"performance.restore")," ")}}function lp(F,$){if(1&F&&n.DNE(0,Vs,16,21,"div",5)(1,Ph,14,11,"div",6),2&F){const U=n.XpG();n.Y8G("ngIf",(null==U.ocScanResult?null:U.ocScanResult.type)===U.autoScanStatusCodes.scanInProgress),n.R7$(),n.Y8G("ngIf",(null==U.ocScanResult?null:U.ocScanResult.type)===U.autoScanStatusCodes.scanNotRunning)}}let cp=(()=>{var F;class ${constructor(b,N,Ce){this.loggingService=b,this.perfTuningService=N,this.perfSharedService=Ce,this.autoScanStatusCodes=xa,this.destroy$=new fo.B7,this.ocScanResult={},this.scanErrorResult={},this.isDcPower=!1,this.convertedCompletionTime="",this.isScanResultInProgress=!0,this.scanErrored=!1,this.scanOnLoad=void 0,this.logger=this.loggingService.getLogger("nvapp/PerfAutoTuningResultComponent")}ngOnInit(){this.getPerfScanResults(),this.perfTuningService.isDcPowerMode.pipe((0,pr.Q)(this.destroy$)).subscribe(b=>this.isDcPower=b,b=>this.logger.error("Error fetching power mode",b)),this.perfTuningService.getConvertedCompletionTime.pipe((0,pr.Q)(this.destroy$)).subscribe(b=>this.convertedCompletionTime=b,b=>this.logger.error("Error fetching completion time",b)),this.stopScanProgress$=this.perfTuningService.getStopScanProgress(),this.systemIsLaptop$=this.perfSharedService.systemIsLaptop()}getPerfScanResults(){this.perfTuningService.getScanResultNotification().pipe((0,Br.n)(b=>(this.ocScanResult=b,this.scanOnLoad||(this.scanOnLoad=this.ocScanResult.type===this.autoScanStatusCodes.scanInProgress),this.completionState=this.perfTuningService.getCompletionStatus(this.ocScanResult.completionStatus),!this.scanErrored&&(this.scanErrored=this.completionState!==xa.completedSuccessfully&&this.completionState!==xa.noResultButValid&&this.completionState!==xa.scanInProgress,this.scanErrored)?(this.scanErrorResult=this.ocScanResult,this.perfTuningService.getLastOcScanResults()):(0,yr.of)(b))),(0,pr.Q)(this.destroy$)).subscribe(()=>{this.isScanResultInProgress=!1},b=>{this.isScanResultInProgress=!1,this.logger.error(b),this.showErrorToast(b)})}restoreClock(){this.restoreOcSub?.unsubscribe(),this.restoreOcSub=this.perfTuningService.checkConsentAndRestoreOc().pipe((0,pr.Q)(this.destroy$)).subscribe(Rt.l,b=>{this.showErrorToast(b)})}stopScan(){this.scanErrored=!1,this.scanOnLoad=!0,this.stopScanSub?.unsubscribe(),this.stopScanSub=this.perfTuningService.stopOcScan().pipe((0,pr.Q)(this.destroy$)).subscribe(Rt.l,b=>{this.showErrorToast(b)})}onLearnMoreAutoTune(){this.learnMoreSub?.unsubscribe(),this.learnMoreSub=this.perfTuningService.learnMoreAutoTune(this.isDcPower,this.scanErrorResult).pipe((0,pr.Q)(this.destroy$)).subscribe(Rt.l,b=>{this.showErrorToast(b)})}showErrorToast(b){this.perfSharedService.showErrorToast(b)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Da),n.rXU(ka))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-perf-auto-tuning-result"]],decls:3,vars:2,consts:[["scanResultContainer",""],["scanUpdated",""],["class","scan-result-loading",4,"ngIf","ngIfElse"],[1,"scan-result-loading"],["color","accent","diameter","24",1,"scan-result-spinner"],["class","scan-result-container scan-running-visible",4,"ngIf"],["class","scan-result-container",3,"ngClass",4,"ngIf"],[1,"scan-result-container","scan-running-visible"],[1,"progress-bar-container"],[1,"font-sub2"],[3,"mode","value"],[1,"font-body3"],["mat-button","","nvAppTextButtonSpinner","",1,"font-button2",3,"click","showSpinner","disabled","buttonText"],[1,"scan-result-container",3,"ngClass"],["svgIcon","readiness_score",1,"align-icon"],[1,"scan-result-row"],[1,"scan-result-message","font-body2"],[4,"ngTemplateOutlet"],[4,"ngIf"],["mat-button","",1,"font-button2",3,"click","disabled"],["cdkMonitorElementFocus","",1,"font-body2-link",3,"click"]],template:function(b,N){if(1&b&&n.DNE(0,ju,5,3,"div",2)(1,lp,2,2,"ng-template",null,0,n.C5r),2&b){const Ce=n.sdS(2);n.Y8G("ngIf",N.isScanResultInProgress)("ngIfElse",Ce)}},dependencies:[$i.YU,$i.bT,$i.T3,Ur.iV,ds.An,Mc.LG,ua.HM,Ac.vR,zn.tG,fs.PW,Aa.u,$i.Jj,Xr.D9],styles:["[_nghost-%COMP%]{flex:1}.align-icon[_ngcontent-%COMP%]{vertical-align:middle}.scan-result-loading[_ngcontent-%COMP%]{display:flex;align-items:center}.scan-result-spinner[_ngcontent-%COMP%]{margin-right:8px}.scan-result-container[_ngcontent-%COMP%]{display:flex;flex:1;align-items:center;gap:16px;margin-bottom:26px}.scan-result-container[_ngcontent-%COMP%]   .progress-bar-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;flex:1}.scan-result-container[_ngcontent-%COMP%]   .progress-bar-container[_ngcontent-%COMP%]   mat-progress-bar[_ngcontent-%COMP%]{margin:5px 0}.scan-result-container.scan-errored[_ngcontent-%COMP%], .scan-result-container.is-dc-power[_ngcontent-%COMP%]{margin-bottom:22px}.scan-result-container.scan-running-visible[_ngcontent-%COMP%]{margin-bottom:12px}.scan-result-container.scan-errored.is-dc-power[_ngcontent-%COMP%]{margin-bottom:2px}mat-button[_ngcontent-%COMP%]{margin-left:8px}.scan-result-message[_ngcontent-%COMP%]{display:flex;flex-direction:column}.scan-result-row[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1;justify-content:space-between}.scan-result-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.scan-result-row[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{color:#76b900}"]}),$})();const df=["toggleElement"];let uf=(()=>{var F;class ${constructor(b,N,Ce,ft){this.loggingService=b,this.perfTuningService=N,this.perfSharedService=Ce,this.renderer=ft,this.destroy$=new fo.B7,this.autoScanStatusCodes=xa,this.isDcPower=!1,this.toggleChangeTimerFlag=!1,this.logger=this.loggingService.getLogger("nvapp/PerfAutoTuningComponent")}ngOnInit(){this.listenForAutoTuneToggleState(),this.triggerForAutoTuneToggleState(),this.perfTuningService.isDcPowerMode.pipe((0,pr.Q)(this.destroy$)).subscribe(b=>this.isDcPower=b,b=>this.logger.error("Error fetching power mode",b))}listenForAutoTuneToggleState(){this.perfTuningService.getAutoTuneToggleState().pipe((0,pr.Q)(this.destroy$)).subscribe(b=>{this.perfSharedService.updatePerfMarkers([cn.mM.NvAppAutoTuningToggleDataEnd]),this.autoTunerToggleState=b,this.unfocusSlideToggle(),this.perfSharedService.gpuPerfTuningData.automaticTuningEnabled=this.autoTunerToggleState?ut.T8.TRUE:ut.T8.FALSE,this.logger.info("Received auto tuning "+(b?"enabled":"disabled"))},b=>{this.perfSharedService.updatePerfMarkers([cn.mM.NvAppAutoTuningToggleDataEnd]),this.showErrorToast(b)})}unfocusSlideToggle(){setTimeout(()=>{this.renderer.removeClass(this.tuningToggleRef._elementRef.nativeElement,"cdk-focused"),this.renderer.removeClass(this.tuningToggleRef._elementRef.nativeElement,"cdk-keyboard-focused")},100)}triggerForAutoTuneToggleState(){this.perfTuningService.getLastOcScanResults().pipe((0,pr.Q)(this.destroy$)).subscribe(Rt.l,b=>{this.showErrorToast(b)})}checkPreventDefaultToggleAction(b){this.toggleChangeTimerFlag?b.preventDefault():(this.toggleChangeTimerFlag=!0,(0,oo.O)(1e3,-1).pipe((0,ji.s)(1)).subscribe(()=>{this.toggleChangeTimerFlag=!1},N=>{this.logger.error("Timer errored!",N),this.toggleChangeTimerFlag=!1}))}onTuningToggleChange(b){this.perfTuningService.resetStopScanButton(),this.autoTuneSub?.unsubscribe(),this.autoTuneSub=this.perfTuningService.checkConsentAndEnableBgOcScan(b.checked).pipe((0,pr.Q)(this.destroy$)).subscribe(N=>{switch(N){case da.tuneDisabled:this.autoTunerToggleState=!1;break;case da.tuneEnabled:this.autoTunerToggleState=!0}this.tuningToggleRef.checked=this.autoTunerToggleState,this.unfocusSlideToggle(),this.logger.info(`Auto tuning ${this.autoTunerToggleState?"enabled":"disabled"} manually`)},N=>{this.tuningToggleRef.checked=this.autoTunerToggleState,this.showErrorToast(N)})}openAutoTuneInfoDialog(){this.perfTuningService.showAutoTuneInfoDialog()}showErrorToast(b){this.perfSharedService.showErrorToast(b)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.perfTuningService.timeIntervalSub?.unsubscribe()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Da),n.rXU(ka),n.rXU(n.sFG))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-perf-auto-tuning"]],viewQuery:function(b,N){if(1&b&&n.GBs(df,5),2&b){let Ce;n.mGM(Ce=n.lsd())&&(N.tuningToggleRef=Ce.first)}},decls:14,vars:8,consts:[["toggleElement",""],[1,"auto-tune-container"],[1,"tune-toggle-row","font-sub1"],[1,"setting-info-icon-container"],[1,"material-icons","setting-info-icon","show",3,"click"],[3,"change","click","checked","disabled"],[1,"font-body2"],[1,"scan-result"]],template:function(b,N){if(1&b){const Ce=n.RV6();n.j41(0,"div",1)(1,"div",2)(2,"div",3),n.EFF(3),n.nI1(4,"translate"),n.j41(5,"mat-icon",4),n.bIt("click",function(){return n.eBV(Ce),n.Njj(N.openAutoTuneInfoDialog())}),n.EFF(6,"info"),n.k0s()(),n.j41(7,"mat-slide-toggle",5,0),n.bIt("change",function(Jt){return n.eBV(Ce),n.Njj(N.onTuningToggleChange(Jt))})("click",function(Jt){return n.eBV(Ce),n.Njj(N.checkPreventDefaultToggleAction(Jt))}),n.k0s()(),n.j41(9,"div",6),n.EFF(10),n.nI1(11,"translate"),n.k0s(),n.j41(12,"div",7),n.nrm(13,"nv-app-perf-auto-tuning-result"),n.k0s()()}2&b&&(n.R7$(3),n.SpI(" ",n.bMT(4,4,"performance.autoTune.title")," "),n.R7$(4),n.Y8G("checked",N.autoTunerToggleState)("disabled",void 0===N.autoTunerToggleState||(null==N.perfTuningService||null==N.perfTuningService.ocScanResult?null:N.perfTuningService.ocScanResult.type)===N.autoScanStatusCodes.scanInProgress||N.isDcPower),n.R7$(3),n.SpI(" ",n.bMT(11,6,"performance.autoTune.desc")," "))},dependencies:[ds.An,no.P2,zn.tG,cp,Xr.D9],styles:[".auto-tune-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;margin-top:16px}.tune-toggle-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.scan-result[_ngcontent-%COMP%]{display:flex;margin-top:24px}.auto-tune-container[_ngcontent-%COMP%]   mat-divider[_ngcontent-%COMP%]{margin-top:24px}.scan-unsupported[_ngcontent-%COMP%]{align-self:center;display:flex;flex-direction:column;align-items:center;gap:10px}"]}),$})(),yu=(()=>{var F;class ${constructor(b,N,Ce,ft){this.genericDialog=b,this.loggingService=N,this.perfSharedService=Ce,this.nvAppBridgeService=ft,this.manualOcLimits$=new fo.B7,this.selectedProfileDetails={},this.originalPerfLimits=[],this.originalFanSettings=[],this._selectedOcProfile=Cc.Default,this.ocProfileMap=new Map,this.logger=this.loggingService.getLogger("nvapp/PerfLimitersService")}getManualOCLimits(){const b={uiGpuId:this.perfSharedService.selectedGpu},N=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(_u,b,N,!1,!1).pipe((0,xr.M)(Ce=>{this.logger.info("Success GetPerfProfiles ",Ce)}),(0,wr.W)(Ce=>(this.logger.error("Error during GetPerfProfiles api call - ",Ce),(0,Nn.$)(Ce))))}updateLimitsToApply(){return[(0,Cr.cloneDeep)(this.originalPerfLimits.map(Ce=>({...Ce,sliderName:lc.get(Ce.type)}))),(0,Cr.cloneDeep)(this.originalFanSettings)]}notifyPerfLimits(){const b=this.updateLimitsToApply();this.perfSharedService.setSliderCurrentValues(...b),this.perfSharedService.setProfileValue(this._selectedOcProfile),this.manualOcLimits$.next([...b,this._selectedOcProfile,this.isRestoreDisabled()])}resetPerfLimits(b){void 0!==b&&(this._selectedOcProfile=b),this.selectedProfileDetails=this.ocProfileMap.get(this._selectedOcProfile),this.originalPerfLimits=(0,Cr.cloneDeep)(this.selectedProfileDetails.sliders.filter(N=>N.type!==wl.GpuClock&&N.type!==wl.MemoryClock)),this.originalFanSettings=[],this.originalFanSettings=(0,Cr.cloneDeep)(this.selectedProfileDetails.fanSettings)}updateManualOcLimitsSliders(){return this.getManualOCLimits().pipe((0,ji.s)(1),(0,xr.M)(b=>{this.logger.info("Received perf profiles ",b),b.profiles.forEach(N=>{this.ocProfileMap.set(N.profile,N)}),this.resetPerfLimits(Cc.Custom),this.notifyPerfLimits()}),(0,wr.W)(b=>(this.logger.error("Some error occured while updateManualOcLimitsSliders ",b),(0,Nn.$)(b))),(0,ys.u)(!0))}isRestoreDisabled(){let b=this.ocProfileMap.get(this._selectedOcProfile);const N=b.fanSettings[0]?.autoPower?void 0:b.fanSettings;b=Object.assign({},{...b},{profile:void 0,fanSettings:N});let Ce=this.ocProfileMap.get(Cc.Default);const ft=N?Ce.fanSettings:void 0;return Ce=Object.assign({},{...Ce},{profile:void 0,fanSettings:ft}),(0,Cr.isEqual)(b,Ce)}getManualOcLimitsSliders(){return this.manualOcLimits$.asObservable()}checkConsentAndSetPerfLimits(b,N,Ce=void 0,ft){let Jt=!1;return this.perfSharedService.getOCAdminConsent().pipe((0,Br.n)(wn=>wn?(Jt=!0,void 0!==Ce&&(this.resetPerfLimits(Ce),[b,N]=this.updateLimitsToApply()),this.setPerfLimits(b,N)):this.perfSharedService.showDisclaimerAndSetConsent()),(0,Br.n)(wn=>wn===da.consentSaved?(Jt=!0,void 0!==Ce&&(this.resetPerfLimits(Ce),[b,N]=this.updateLimitsToApply()),this.setPerfLimits(b,N)):(wn!==da.tuneDisabled&&wn!==da.tuneEnabled&&this.resetPerfLimits(Ce),(0,yr.of)(wn))),(0,Br.n)(wn=>(Jt&&this.perfSharedService.setLimiterDataChange(ft,Ce),this.updateManualOcLimitsSliders().pipe((0,ys.u)(wn)))))}syncFanSettings(b){if(0===b.length)return b;const N=b[0];return b.map(Ce=>({...Ce,autoPower:N.autoPower,isVisible:N.isVisible,sliderSetting:{...N.sliderSetting}}))}setPerfLimits(b,N){N=this.syncFanSettings(N);const Ce={uiGpuId:this.perfSharedService.selectedGpu,profile:+Cc.Custom,sliders:b,fanSettings:N},ft=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(sp,Ce,ft,!1,!1).pipe((0,Rn.T)(Jt=>{if(this.logger.info("Success SetPerfProfile ",Jt),!Jt.result)throw this.logger.error("Some failure while SetPerfProfile with values ",Ce),new Error("Some failure while SetPerfProfile with values");return this.logger.info("Success SetPerfProfile with values",Ce),Jt.result}),(0,ys.u)(da.tuneEnabled),(0,wr.W)(Jt=>(this.logger.error("Error during SetPerfProfile api call - ",Jt),(0,Nn.$)(Jt))))}showPerfLimitsInfoDialog(){const N=this.genericDialog.open({autoFocus:!1,panelClass:["dialogPaddingRemove","description-gap"],data:{headerText:{text:"performance.perfLimiters.title"},primaryButton:{text:"common.close"},autoFocusOnPrimaryButton:!1,bodyText:{text:"performance.perfLimiters.info"}}});this.perfLimitsDialogSub?.unsubscribe(),this.perfLimitsDialogSub=(0,wd.O4)(N.primaryButtonClick,N.afterClosed()).pipe((0,ji.s)(1)).subscribe(()=>N.close(),Ce=>this.logger.error("Error while clicking auto tune info dialog",Ce))}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Na.uh),n.KVO(Ui.J6),n.KVO(ka),n.KVO(al.S))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var Yu=c(5428);function wh(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",10),n.nI1(1,"translate"),n.bIt("click",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.onSliderChange(N.sliderTypes.Unknown,N.ocProfiles.Default))}),n.k0s()}if(2&F){const U=n.XpG(2);n.Y8G("buttonText",n.bMT(1,2,"performance.restore"))("disabled",U.profileDisabled||U.isRestoreDisabled)}}function dp(F,$){if(1&F){const U=n.RV6();n.qex(0),n.j41(1,"div"),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"nv-hig-slider",13),n.mxI("valueChange",function(N){n.eBV(U);const Ce=n.XpG().$implicit;return n.DH7(Ce.current,N)||(Ce.current=N),n.Njj(N)}),n.bIt("valueChange",function(){n.eBV(U);const N=n.XpG().$implicit,Ce=n.XpG(2);return n.Njj(Ce.onSliderChange(N.type))}),n.k0s(),n.bVm()}if(2&F){const U=n.XpG().$implicit,b=n.XpG(2);n.R7$(2),n.SpI(" ",n.bMT(3,6,U.sliderName)," "),n.R7$(2),n.R50("value",U.current),n.Y8G("min",U.min)("max",U.max)("step",1)("disabled",b.profileDisabled)}}function Yl(F,$){if(1&F&&(n.j41(0,"div",11),n.DNE(1,dp,5,8,"ng-container",12),n.k0s()),2&F){const U=$.$implicit;n.R7$(),n.Y8G("ngIf",U.isSupported)}}function Zg(F,$){if(1&F){const U=n.RV6();n.j41(0,"nv-hig-slider",13),n.mxI("valueChange",function(N){n.eBV(U);const Ce=n.XpG(3);return n.DH7(Ce.fanSettings[0].sliderSetting.current,N)||(Ce.fanSettings[0].sliderSetting.current=N),n.Njj(N)}),n.bIt("valueChange",function(){n.eBV(U);const N=n.XpG(3);return n.Njj(N.onSliderChange(N.sliderTypes.Fan))}),n.k0s()}if(2&F){const U=n.XpG(3);n.R50("value",U.fanSettings[0].sliderSetting.current),n.Y8G("min",U.fanSettings[0].sliderSetting.min)("max",U.fanSettings[0].sliderSetting.max)("step",1)("disabled",U.profileDisabled)}}function Ih(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",14)(1,"div"),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"div",15)(5,"mat-select",16),n.mxI("valueChange",function(N){n.eBV(U);const Ce=n.XpG(2);return n.DH7(Ce.fanSettings[0].autoPower,N)||(Ce.fanSettings[0].autoPower=N),n.Njj(N)}),n.bIt("selectionChange",function(N){n.eBV(U);const Ce=n.XpG(2);return Ce.onSliderChange(),n.Njj(Ce.unfocusSelect(N))}),n.j41(6,"mat-option",17),n.EFF(7),n.nI1(8,"translate"),n.k0s(),n.j41(9,"mat-option",17),n.EFF(10),n.nI1(11,"translate"),n.k0s()()(),n.DNE(12,Zg,1,5,"nv-hig-slider",18),n.k0s()}if(2&F){const U=n.XpG(2);n.R7$(2),n.SpI(" ",n.bMT(3,8,"performance.perfLimiters.fanSpeedTarget")," "),n.R7$(3),n.R50("value",U.fanSettings[0].autoPower),n.Y8G("disabled",U.profileDisabled),n.R7$(),n.Y8G("value",!1),n.R7$(),n.SpI(" ",n.bMT(8,10,"performance.perfLimiters.manual")," "),n.R7$(2),n.Y8G("value",!0),n.R7$(),n.SpI(" ",n.bMT(11,12,"performance.perfLimiters.auto")," "),n.R7$(2),n.Y8G("ngIf",!U.fanSettings[0].autoPower)}}function Ld(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.j41(6,"mat-icon",5),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.openPerfLimitsInfoDialog())}),n.EFF(7,"info"),n.k0s()(),n.DNE(8,wh,2,4,"button",6),n.k0s(),n.j41(9,"div",7),n.DNE(10,Yl,2,1,"div",8)(11,Ih,13,14,"div",9),n.k0s()()}if(2&F){const U=n.XpG();n.R7$(4),n.SpI(" ",n.bMT(5,4,"performance.perfLimiters.title")," "),n.R7$(4),n.Y8G("ngIf",U.selectedOcProfile!==U.ocProfiles.Default),n.R7$(2),n.Y8G("ngForOf",U.sliderLimits),n.R7$(),n.Y8G("ngIf",null==U.fanSettings[0]?null:U.fanSettings[0].isVisible)}}let Tc=(()=>{var F;class ${constructor(b,N,Ce,ft){this.loggingService=b,this.perfLimitersService=N,this.perfSharedService=Ce,this.perfTuningService=ft,this.destroy$=new fo.B7,this.sliderLimits=[],this.areSlidersSupported=!1,this.sliderTypes=wl,this.ocSliderTypes=wl,this.fanSettings=[],this.ocProfiles=Cc,this.profileDisabled=!1,this.isRestoreDisabled=!0,this.logger=this.loggingService.getLogger("nvapp/PerfLimitersComponent")}ngOnInit(){this.listenPerfLimitSlidersMetaData(),this.initPerfLimitSliders(),this.listenScanResultsNotification()}listenPerfLimitSlidersMetaData(){this.perfLimitersService.getManualOcLimitsSliders().pipe((0,Ki.c)(0),(0,pr.Q)(this.destroy$)).subscribe(([b,N,Ce,ft])=>{this.sliderLimits=b.slice(),this.areSlidersSupported=this.sliderLimits.some(Jt=>Jt.isSupported),this.fanSettings=N.slice(),this.selectedOcProfile=Ce,this.isRestoreDisabled=ft,this.perfSharedService.updatePerfMarkers([cn.mM.NvAppPerfLimitDataEnd])},b=>{this.perfSharedService.updatePerfMarkers([cn.mM.NvAppPerfLimitDataEnd]),this.showErrorToast(b)})}initPerfLimitSliders(){this.perfLimitersService.updateManualOcLimitsSliders().pipe((0,pr.Q)(this.destroy$)).subscribe(Rt.l,b=>{this.showErrorToast(b)})}listenScanResultsNotification(){this.perfTuningService.getScanResultNotification().pipe((0,pr.Q)(this.destroy$),(0,Rn.T)(b=>b.type),(0,cu.F)(),(0,Ki.c)(0)).subscribe(b=>{this.profileDisabled=!b},b=>{this.showErrorToast(b)})}openPerfLimitsInfoDialog(){this.perfLimitersService.showPerfLimitsInfoDialog()}onSliderChange(b,N){this.applyPerfLimitSub?.unsubscribe(),this.applyPerfLimitSub=this.perfLimitersService.checkConsentAndSetPerfLimits(this.sliderLimits,this.fanSettings,N,b).pipe((0,pr.Q)(this.destroy$)).subscribe(Rt.l,Ce=>{this.showErrorToast(Ce)})}unfocusSelect(b){b.source.close()}showErrorToast(b){this.perfSharedService.showErrorToast(b)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(yu),n.rXU(ka),n.rXU(Da))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-perf-limiters"]],features:[n.Jv_([{provide:ks.JO,useValue:{overlayPanelClass:"perf-limiter-fan-select"}}])],decls:1,vars:1,consts:[["class","perf-limits-container",4,"ngIf"],[1,"perf-limits-container"],[1,"perf-limit-title-row"],[1,"setting-info-icon-container"],[1,"font-sub1"],[1,"material-icons","setting-info-icon","show",3,"click"],["mat-button","","nvAppTextButtonSpinner","","class","font-button2",3,"buttonText","disabled","click",4,"ngIf"],[1,"font-body2","sliders-main-container"],["class","slider-container",4,"ngFor","ngForOf"],["class","slider-container fan-container",4,"ngIf"],["mat-button","","nvAppTextButtonSpinner","",1,"font-button2",3,"click","buttonText","disabled"],[1,"slider-container"],[4,"ngIf"],["formatTextAs","Decimal","valueEntry","true",3,"valueChange","value","min","max","step","disabled"],[1,"slider-container","fan-container"],[1,"fan-mode-container"],["panelClass","mat-select-font-body2",1,"mat-mdc-select-dark-background","mat-select-font-body2",3,"valueChange","selectionChange","value","disabled"],[3,"value"],["formatTextAs","Decimal","valueEntry","true",3,"value","min","max","step","disabled","valueChange",4,"ngIf"]],template:function(b,N){1&b&&n.DNE(0,Ld,12,6,"div",0),2&b&&n.Y8G("ngIf",N.areSlidersSupported)},dependencies:[$i.Sq,$i.bT,Ur.iV,ds.An,ks.VO,lo.wT,Yu.t,Aa.u,Xr.D9],styles:[".perf-limits-container[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column;gap:16px;padding-bottom:16px}.sliders-main-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;gap:24px;margin-top:8px}.slider-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:15px}.mat-mdc-select[_ngcontent-%COMP%]{width:auto}.fan-container[_ngcontent-%COMP%]{gap:18px}.perf-limit-title-row[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between}"]}),$})(),Bc=(()=>{var F;class ${}return(F=$).\u0275fac=function(b){return new(b||F)},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-loading-indicator-dots"]],decls:1,vars:0,consts:[[1,"dot-flashing"]],template:function(b,N){1&b&&n.nrm(0,"div",0)},styles:['.dot-flashing[_ngcontent-%COMP%]{position:relative;width:5px;height:5px;border-radius:5px;background-color:#ffffffe6;color:#ffffffe6;animation:_ngcontent-%COMP%_dot-flashing .5s infinite linear alternate;animation-delay:.25s}.dot-flashing[_ngcontent-%COMP%]:before, .dot-flashing[_ngcontent-%COMP%]:after{content:"";display:inline-block;position:absolute;top:0}.dot-flashing[_ngcontent-%COMP%]:before{left:-10px;width:5px;height:5px;border-radius:5px;background-color:#ffffffe6;color:#ffffffe6;animation:_ngcontent-%COMP%_dot-flashing .5s infinite alternate;animation-delay:0s}.dot-flashing[_ngcontent-%COMP%]:after{left:10px;width:5px;height:5px;border-radius:5px;background-color:#ffffffe6;color:#ffffffe6;animation:_ngcontent-%COMP%_dot-flashing .5s infinite alternate;animation-delay:.5s}@keyframes _ngcontent-%COMP%_dot-flashing{0%{background-color:#ffffffe6}50%,to{background-color:#fff3}}']}),$})();const Nd=["statsTiles"];function kd(F,$){if(1&F&&(n.qex(0),n.j41(1,"span",10),n.EFF(2),n.k0s(),n.bVm()),2&F){const U=n.XpG();n.R7$(2),n.JRh(U.gpusInfo[0].Name)}}function Zd(F,$){if(1&F&&(n.j41(0,"mat-option",14),n.EFF(1),n.k0s()),2&F){const U=$.$implicit;n.Y8G("value",U.index),n.R7$(),n.SpI(" ",U.Name," ")}}function up(F,$){if(1&F){const U=n.RV6();n.j41(0,"mat-select",11),n.mxI("valueChange",function(N){n.eBV(U);const Ce=n.XpG();return n.DH7(Ce.perfSharedService.selectedGpu,N)||(Ce.perfSharedService.selectedGpu=N),n.Njj(N)}),n.bIt("selectionChange",function(N){n.eBV(U);const Ce=n.XpG();return n.Njj(Ce.getSelectedGpu(N))}),n.j41(1,"mat-select-trigger",12),n.EFF(2),n.k0s(),n.DNE(3,Zd,2,2,"mat-option",13),n.k0s()}if(2&F){const U=n.XpG();n.R50("value",U.perfSharedService.selectedGpu),n.R7$(2),n.JRh(null==U.gpusInfo[U.perfSharedService.selectedGpu]?null:U.gpusInfo[U.perfSharedService.selectedGpu].Name),n.R7$(),n.Y8G("ngForOf",U.gpusInfo)}}function hp(F,$){1&F&&(n.qex(0),n.EFF(1),n.nI1(2,"translate"),n.bVm()),2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"performance.notApplicable")," "))}function Su(F,$){if(1&F&&(n.EFF(0),n.j41(1,"span",6),n.EFF(2),n.nI1(3,"translate"),n.k0s()),2&F){const U=n.XpG(2).$implicit;n.SpI(" ",U.value," "),n.R7$(2),n.SpI(" ",n.bMT(3,2,U.unit)," ")}}function pp(F,$){if(1&F&&(n.j41(0,"span",18),n.DNE(1,hp,3,3,"ng-container",7)(2,Su,4,4,"ng-template",null,3,n.C5r),n.k0s()),2&F){const U=n.sdS(3),b=n.XpG().$implicit;n.R7$(),n.Y8G("ngIf",b.value<0)("ngIfElse",U)}}function fp(F,$){if(1&F&&(n.j41(0,"span",19)(1,"div",20),n.nrm(2,"nv-app-loading-indicator-dots"),n.k0s(),n.j41(3,"span",21),n.EFF(4),n.nI1(5,"translate"),n.k0s()()),2&F){const U=n.XpG().$implicit;n.R7$(4),n.SpI(" ",n.bMT(5,1,U.unit)," ")}}function md(F,$){if(1&F&&(n.j41(0,"div",15)(1,"div",16),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.DNE(4,pp,4,2,"span",17),n.nI1(5,"isNaN"),n.DNE(6,fp,6,3,"ng-template",null,2,n.C5r),n.k0s()),2&F){const U=$.$implicit,b=n.sdS(7);n.R7$(),n.Y8G("isMultiLineEllipsis",!0),n.R7$(),n.SpI(" ",n.bMT(3,4,U.name)," "),n.R7$(2),n.Y8G("ngIf",!n.bMT(5,6,U.value))("ngIfElse",b)}}let Fd=(()=>{var F;class ${constructor(b,N,Ce){this.loggingService=b,this.perfSharedService=N,this.perfStatisticsService=Ce,this.destroy$=new fo.B7,this.selectedGpu=0,this.gpusInfo=[],this.logger=this.loggingService.getLogger("nvapp/PerfStatisticsComponent")}ngOnInit(){this.getGpuInfo(),this.enableAndlistenPerfStatsNotifications()}ngAfterViewInit(){this.statsTiles?.nativeElement?.querySelectorAll(".stats-tile-title")?.forEach(Ce=>{Ce?.innerText?.trim().includes(" ")||(Ce?.classList?.remove("stats-tile-title"),Ce?.classList?.add("truncate"))})}getGpuInfo(){this.perfSharedService.gpuInfo.pipe((0,pr.Q)(this.destroy$)).subscribe(b=>{this.gpusInfo=b?.slice()},b=>{this.logger.error("Error during GetGpuInfo call - ",b)})}enableAndlistenPerfStatsNotifications(){this.perfStatisticsService.enableAndRegisterPerfStatsNotifications().pipe((0,pr.Q)(this.destroy$)).subscribe(Rt.l,Rt.l)}getSelectedGpu(b){this.perfSharedService.gpuPerfTuningData.gpuChanged=ut.T8.TRUE,this.perfSharedService.selectedGpu=b.value,this.perfSharedService.gpuName=this.gpusInfo[b.value]?.Name}ngOnDestroy(){this.perfStatisticsService.disablePerfStatsNotifications(),this.destroy$.next(),this.destroy$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(ka),n.rXU(Dh))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-perf-statistics"]],viewQuery:function(b,N){if(1&b&&n.GBs(Nd,5),2&b){let Ce;n.mGM(Ce=n.lsd())&&(N.statsTiles=Ce.first)}},features:[n.Jv_([{provide:ks.JO,useValue:{overlayPanelClass:"perf-stats-gpu-select"}}])],decls:12,vars:6,consts:[["showMultiGpuSelect",""],["statsTiles",""],["loadingDots",""],["validMetric",""],[1,"statistics-container"],[1,"gpu-select-row"],[1,"font-sub1"],[4,"ngIf","ngIfElse"],[1,"stats-tiles-container"],["class","stats-tile",4,"ngFor","ngForOf"],[1,"font-body2"],["panelClass","mat-select-font-body2 mat-mdc-select-transparent-background-panel",1,"gpu-select-override","mat-mdc-select-transparent-background",3,"valueChange","selectionChange","value"],[1,"dropdown-trigger","font-body2"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"stats-tile"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"stats-tile-title","font-body2",3,"isMultiLineEllipsis"],["class","font-header5",4,"ngIf","ngIfElse"],[1,"font-header5"],[1,"metric-value-container"],[1,"loading-dots-container"],[1,"font-sub1","units-container"]],template:function(b,N){if(1&b&&(n.j41(0,"div",4)(1,"div",5)(2,"div",6),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.DNE(5,kd,3,1,"ng-container",7)(6,up,4,3,"ng-template",null,0,n.C5r),n.k0s(),n.j41(8,"div",8,1),n.DNE(10,md,8,8,"div",9),n.k0s(),n.nrm(11,"mat-divider"),n.k0s()),2&b){const Ce=n.sdS(7);n.R7$(3),n.SpI(" ",n.bMT(4,4,"performance.statistics")," "),n.R7$(2),n.Y8G("ngIf",1===N.gpusInfo.length)("ngIfElse",Ce),n.R7$(5),n.Y8G("ngForOf",N.perfStatisticsService.perfMetricsForDisplay)}},dependencies:[$i.Sq,$i.bT,pi.q,ks.VO,ks.$2,lo.wT,tt.a,Bc,Xr.D9,Ui.lR],styles:["[_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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .truncate[_ngcontent-%COMP%], .stats-tile-title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.statistics-container[_ngcontent-%COMP%]{padding-top:16px;display:flex;justify-content:space-between;flex-direction:column}.gpu-select-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.gpu-select-override[_ngcontent-%COMP%]{width:auto;min-width:250px}.truncate[_ngcontent-%COMP%]{word-break:break-word;-webkit-box-orient:vertical;-webkit-line-clamp:1;display:-webkit-box}.stats-tile-title[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box}.stats-tiles-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(137px,1fr));grid-auto-flow:row;grid-gap:8px;justify-items:stretch;align-items:flex-start;margin-top:16px;justify-content:flex-start}.stats-tile[_ngcontent-%COMP%]{min-width:137px;height:88px;display:flex;flex-direction:column;background:#222;justify-content:space-between;align-items:flex-start;padding:8px;box-sizing:border-box}mat-divider[_ngcontent-%COMP%]{margin-top:16px}@media screen and (min-width: 960px) and (max-width: 1279px){.stats-tiles-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(202px,1fr))}}@media screen and (min-width: 1440px){.stats-tiles-container[_ngcontent-%COMP%]{grid-gap:16px}}.loading-dots-container[_ngcontent-%COMP%]{margin:0 10px}.units-container[_ngcontent-%COMP%]{margin-left:8px}.metric-value-container[_ngcontent-%COMP%]{display:flex;align-items:center}"]}),$})();function hf(F,$){1&F&&(n.j41(0,"div",4),n.nrm(1,"mat-progress-spinner",5),n.k0s())}function vd(F,$){1&F&&(n.j41(0,"div",7),n.nrm(1,"nv-app-perf-auto-tuning")(2,"mat-divider")(3,"nv-app-perf-limiters"),n.k0s())}function Wu(F,$){if(1&F&&(n.j41(0,"div",8),n.nrm(1,"mat-icon",9),n.j41(2,"span"),n.EFF(3),n.nI1(4,"translate"),n.k0s()()),2&F){const U=n.XpG(2);n.R7$(3),n.JRh(n.bMT(4,1,U.notSupportedMessaging))}}function pf(F,$){if(1&F&&n.DNE(0,vd,4,0,"div",6)(1,Wu,5,3,"ng-template",null,1,n.C5r),2&F){const U=n.sdS(2),b=n.XpG();n.Y8G("ngIf",b.isAutoTuneSupported)("ngIfElse",U)}}let ff=(()=>{var F;class ${set selectedIndex(b){1===this._tabIndex&&(this.logger.info("Tab changed from performance tab"),this.perfSharedService.sendGpuPerfTuningEvent()),this._tabIndex=b}constructor(b,N,Ce,ft){this.loggingService=b,this.perfTuningService=N,this.perfSharedService=Ce,this.perfStatisticsService=ft,this.destroy$=new fo.B7,this.getAutoTuneIsInprogress=!0,this.notSupportedMessaging="",this._tabIndex=0,this.logger=this.loggingService.getLogger("nvapp/PerformanceComponent")}ngOnInit(){this.perfSharedService.updatePerfMarkers([cn.mM.NvAppPerfRouteEnd,cn.mM.NvAppAutoTuningToggleDataStart,cn.mM.NvAppPerfLimitDataStart]),this.perfStatisticsService.initialize(),this.perfSharedService.initialize(),this.perfTuningService.initialize(this.destroy$),this.initializeAutoTuningSupported()}initializeAutoTuningSupported(){this.perfSharedService.gpuInfo.pipe((0,Br.n)(b=>(this.logger.info("Fetched GPU info",JSON.stringify(b)),b?.length>1?(this.notSupportedMessaging="performance.autoTuningMultiGpuNotSupported",(0,yr.of)(!1)):this.perfTuningService.isAutoTuneSupported())),(0,xr.M)(b=>{b||(this.logger.info("Auto tuning not supported"),this.notSupportedMessaging=this.notSupportedMessaging?this.notSupportedMessaging:"performance.backgroundOcUnSupported")}),(0,pr.Q)(this.destroy$)).subscribe(b=>{b||this.perfSharedService.updatePerfMarkers([cn.mM.NvAppAutoTuningToggleDataEnd,cn.mM.NvAppPerfLimitDataEnd]),this.logger.info("Setting auto tuning support",b),this.isAutoTuneSupported=b,this.getAutoTuneIsInprogress=!1},b=>{this.perfSharedService.updatePerfMarkers([cn.mM.NvAppAutoTuningToggleDataEnd,cn.mM.NvAppPerfLimitDataEnd]),this.logger.error(b),this.isAutoTuneSupported=!1,this.getAutoTuneIsInprogress=!1})}ngOnDestroy(){1===this._tabIndex&&this.perfSharedService.sendGpuPerfTuningEvent(),this.destroy$.next(),this.destroy$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Da),n.rXU(ka),n.rXU(Dh))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-performance"]],inputs:{selectedIndex:"selectedIndex"},decls:5,vars:2,consts:[["autoTunePerfContainer",""],["autoTuningNotSupported",""],[1,"performance-container"],["class","loading-spinner",4,"ngIf","ngIfElse"],[1,"loading-spinner"],["mode","indeterminate","color","accent","diameter","30"],["class","oc-container",4,"ngIf","ngIfElse"],[1,"oc-container"],[1,"scan-unsupported"],["svgIcon","info",1,"material-icons","font-body2"]],template:function(b,N){if(1&b&&(n.j41(0,"div",2),n.nrm(1,"nv-app-perf-statistics"),n.DNE(2,hf,2,0,"div",3)(3,pf,3,2,"ng-template",null,0,n.C5r),n.k0s()),2&b){const Ce=n.sdS(4);n.R7$(2),n.Y8G("ngIf",N.getAutoTuneIsInprogress)("ngIfElse",Ce)}},dependencies:[$i.bT,ds.An,pi.q,Mc.LG,uf,Tc,Fd,Xr.D9],styles:[".performance-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.scan-unsupported[_ngcontent-%COMP%]{margin-top:16px;align-self:center;display:flex;flex-direction:column;align-items:center;gap:10px;flex:1;justify-content:center;max-width:400px}.scan-unsupported[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{text-align:center}.loading-spinner[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex:1}.oc-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}"]}),$})();var Rh=c(15172),Qs=c(3321),us=c(30627),_d=c(49678),Vc=c(46906);function gp(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",2)(1,"span",3),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"mat-dialog-content",4)(5,"mat-radio-group",5),n.mxI("ngModelChange",function(N){n.eBV(U);const Ce=n.XpG();return n.DH7(Ce.gSyncEnabled,N)||(Ce.gSyncEnabled=N),n.Njj(N)}),n.bIt("ngModelChange",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.gSyncStateChanged())}),n.j41(6,"mat-radio-button",6),n.EFF(7),n.nI1(8,"translate"),n.k0s(),n.j41(9,"mat-radio-button",6),n.EFF(10),n.nI1(11,"translate"),n.k0s()(),n.j41(12,"div",7)(13,"mat-chip-list")(14,"mat-chip",8),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.setGSyncEnableState(N.GlobalGsyncState.FullscreenOnly))}),n.j41(15,"span",9),n.EFF(16),n.nI1(17,"translate"),n.k0s()(),n.j41(18,"mat-chip",8),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.setGSyncEnableState(N.GlobalGsyncState.FullscreenAndWindowed))}),n.j41(19,"span",9),n.EFF(20),n.nI1(21,"translate"),n.k0s()()()()(),n.j41(22,"mat-dialog-actions",10)(23,"button",11),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onCancelClick())}),n.EFF(24),n.nI1(25,"translate"),n.k0s(),n.j41(26,"button",12),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onApplyClick())}),n.EFF(27),n.nI1(28,"translate"),n.k0s()()()}if(2&F){const U=n.XpG();n.R7$(2),n.JRh(n.bMT(3,14,"system.display.gsyncGloablDialogTitle")),n.R7$(3),n.R50("ngModel",U.gSyncEnabled),n.R7$(),n.Y8G("value",!1),n.R7$(),n.SpI(" ",n.bMT(8,16,"common.off")," "),n.R7$(2),n.Y8G("value",!0),n.R7$(),n.SpI(" ",n.bMT(11,18,"common.on")," "),n.R7$(4),n.Y8G("disabled",!U.gSyncEnabled)("selected",U.selectedGSyncOption===U.GlobalGsyncState.FullscreenOnly),n.R7$(2),n.JRh(n.bMT(17,20,"system.display.enableForFullscreenMode")),n.R7$(2),n.Y8G("disabled",!U.gSyncEnabled)("selected",U.selectedGSyncOption===U.GlobalGsyncState.FullscreenAndWindowed),n.R7$(2),n.JRh(n.bMT(21,22,"system.display.enableWindowednFullscreenMode")),n.R7$(4),n.SpI(" ",n.bMT(25,24,"save.cancel")," "),n.R7$(3),n.SpI(" ",n.bMT(28,26,"save.apply")," ")}}function mp(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",2)(1,"span",3),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"mat-dialog-content",13)(5,"span",14),n.EFF(6),n.nI1(7,"translate"),n.k0s(),n.j41(8,"p",15),n.EFF(9),n.nI1(10,"translate"),n.k0s(),n.j41(11,"a",16),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onViewGsyncDisplays())}),n.EFF(12),n.nI1(13,"translate"),n.k0s()(),n.j41(14,"mat-dialog-actions",10)(15,"button",11),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onCloseClick())}),n.EFF(16),n.nI1(17,"translate"),n.k0s()()()}2&F&&(n.R7$(2),n.JRh(n.bMT(3,5,"system.display.learnMoreGSYNCDisplays")),n.R7$(4),n.JRh(n.bMT(7,7,"manage3dSettings.Description")),n.R7$(3),n.SpI(" ",n.bMT(10,9,"system.display.gsyncInfo")," "),n.R7$(3),n.JRh(n.bMT(13,11,"system.display.viewGSyncDisplays")),n.R7$(4),n.SpI(" ",n.bMT(17,13,"common.close")," "))}let bu=(()=>{var F;class ${constructor(b,N,Ce,ft){this.dialogData=N,this.dialogRef=Ce,this.redirectService=ft,this.GlobalGsyncState=us.nX,this.selectedGSyncOption=us.nX.FullscreenOnly,this.isGSyncSupported=!1,this.logger=b.getLogger("nvapp/MonitorTechnologyComponent"),this.gSyncEnabled=N.gsyncGlobalState!==us.nX.Off,this.isGSyncSupported=N.gsyncGlobalState!==us.nX.NotAvailable,this.isGSyncSupported&&this.gSyncEnabled&&(this.selectedGSyncOption=N.gsyncGlobalState)}gSyncStateChanged(){this.selectedGSyncOption=this.gSyncEnabled?us.nX.FullscreenOnly:us.nX.Off}onCancelClick(){this.dialogRef.close()}setGSyncEnableState(b){this.selectedGSyncOption=b,this.logger.info("gSync option",this.selectedGSyncOption)}onApplyClick(){this.dialogRef.close({...this.dialogData,selectedGSyncOption:this.selectedGSyncOption})}onCloseClick(){this.dialogRef.close()}onViewGsyncDisplays(){this.redirectService.redirectTo(Te.r7.gSyncDisplays)}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(go.Vh),n.rXU(go.CP),n.rXU(Te.Q5))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-monitor-technology"]],decls:3,vars:2,consts:[["noGSyncSupport",""],["class","common-modal",4,"ngIf","ngIfElse"],[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title","font-color-primary"],[1,"content","monitor-tech-content","margin-top-4"],[1,"flex-col","padding-left-8","padding-right-16","mat-radio-group-container",3,"ngModelChange","ngModel"],[3,"value"],[1,"flex-row","align-items-center","justify-content-space-between","margin-top-10","gsync-option-container"],["selectable","",1,"displays-chip",3,"click","disabled","selected"],[1,"font-body2"],["align","end",1,"actions"],["mat-button","",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","",1,"apply-button","font-button2",3,"click"],[1,"content","monitor-tech-content"],[1,"font-sub1","font-color-primary"],[1,"font-body2","font-color-secondary"],[1,"font-body2-link",3,"click"]],template:function(b,N){if(1&b&&n.DNE(0,gp,29,28,"div",1)(1,mp,18,15,"ng-template",null,0,n.C5r),2&b){const Ce=n.sdS(2);n.Y8G("ngIf",N.isGSyncSupported)("ngIfElse",Ce)}},dependencies:[$i.bT,zn.tG,Ca.Aq,Xs.BC,Xs.vS,Ur.iV,go.BI,go.Yi,go.E7,_d.VT,_d._g,Vc.O_,Vc.Id,Xr.D9],styles:[".monitor-tech-content[_ngcontent-%COMP%]{padding:0 8px}.mat-radio-group-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 8px}.mat-radio-group-container[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]{height:48px;display:flex}.gsync-option-container[_ngcontent-%COMP%]{padding-left:52px;padding-right:8px}","[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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))}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.system-display-box[_ngcontent-%COMP%]{box-sizing:border-box;border:1.5px solid rgba(255,255,255,.9);display:flex;width:26px;height:20px;flex-direction:row;align-self:center;justify-content:center;align-items:center}.displays-chip[_ngcontent-%COMP%]{height:32px;border:1px solid rgba(255,255,255,.7);border-radius:0;padding:6px 12px;background-color:transparent;cursor:pointer}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary[_ngcontent-%COMP%]{background-color:#ffffff4d}.accordion-padding[_ngcontent-%COMP%]{padding:14px 0}.accordion-header[_ngcontent-%COMP%]{padding:14px 16px;width:100%}.accordion-header[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#ffffffe6}",".margin-0[_ngcontent-%COMP%]{margin:0}.padding-0[_ngcontent-%COMP%]{padding:0}.gap-0[_ngcontent-%COMP%]{gap:0px}.margin-top-0[_ngcontent-%COMP%]{margin-top:0}.padding-top-0[_ngcontent-%COMP%]{padding-top:0}.margin-bottom-0[_ngcontent-%COMP%]{margin-bottom:0}.padding-bottom-0[_ngcontent-%COMP%]{padding-bottom:0}.margin-left-0[_ngcontent-%COMP%]{margin-left:0}.padding-left-0[_ngcontent-%COMP%]{padding-left:0}.margin-right-0[_ngcontent-%COMP%]{margin-right:0}.padding-right-0[_ngcontent-%COMP%]{padding-right:0}.margin-4[_ngcontent-%COMP%]{margin:4px}.padding-4[_ngcontent-%COMP%]{padding:4px}.gap-4[_ngcontent-%COMP%]{gap:4px}.margin-top-4[_ngcontent-%COMP%]{margin-top:4px}.padding-top-4[_ngcontent-%COMP%]{padding-top:4px}.margin-bottom-4[_ngcontent-%COMP%]{margin-bottom:4px}.padding-bottom-4[_ngcontent-%COMP%]{padding-bottom:4px}.margin-left-4[_ngcontent-%COMP%]{margin-left:4px}.padding-left-4[_ngcontent-%COMP%]{padding-left:4px}.margin-right-4[_ngcontent-%COMP%]{margin-right:4px}.padding-right-4[_ngcontent-%COMP%]{padding-right:4px}.margin-8[_ngcontent-%COMP%]{margin:8px}.padding-8[_ngcontent-%COMP%]{padding:8px}.gap-8[_ngcontent-%COMP%]{gap:8px}.margin-top-8[_ngcontent-%COMP%]{margin-top:8px}.padding-top-8[_ngcontent-%COMP%]{padding-top:8px}.margin-bottom-8[_ngcontent-%COMP%]{margin-bottom:8px}.padding-bottom-8[_ngcontent-%COMP%]{padding-bottom:8px}.margin-left-8[_ngcontent-%COMP%]{margin-left:8px}.padding-left-8[_ngcontent-%COMP%]{padding-left:8px}.margin-right-8[_ngcontent-%COMP%]{margin-right:8px}.padding-right-8[_ngcontent-%COMP%]{padding-right:8px}.margin-10[_ngcontent-%COMP%]{margin:10px}.padding-10[_ngcontent-%COMP%]{padding:10px}.gap-10[_ngcontent-%COMP%]{gap:10px}.margin-top-10[_ngcontent-%COMP%]{margin-top:10px}.padding-top-10[_ngcontent-%COMP%]{padding-top:10px}.margin-bottom-10[_ngcontent-%COMP%]{margin-bottom:10px}.padding-bottom-10[_ngcontent-%COMP%]{padding-bottom:10px}.margin-left-10[_ngcontent-%COMP%]{margin-left:10px}.padding-left-10[_ngcontent-%COMP%]{padding-left:10px}.margin-right-10[_ngcontent-%COMP%]{margin-right:10px}.padding-right-10[_ngcontent-%COMP%]{padding-right:10px}.margin-12[_ngcontent-%COMP%]{margin:12px}.padding-12[_ngcontent-%COMP%]{padding:12px}.gap-12[_ngcontent-%COMP%]{gap:12px}.margin-top-12[_ngcontent-%COMP%]{margin-top:12px}.padding-top-12[_ngcontent-%COMP%]{padding-top:12px}.margin-bottom-12[_ngcontent-%COMP%]{margin-bottom:12px}.padding-bottom-12[_ngcontent-%COMP%]{padding-bottom:12px}.margin-left-12[_ngcontent-%COMP%]{margin-left:12px}.padding-left-12[_ngcontent-%COMP%]{padding-left:12px}.margin-right-12[_ngcontent-%COMP%]{margin-right:12px}.padding-right-12[_ngcontent-%COMP%]{padding-right:12px}.margin-16[_ngcontent-%COMP%]{margin:16px}.padding-16[_ngcontent-%COMP%]{padding:16px}.gap-16[_ngcontent-%COMP%]{gap:16px}.margin-top-16[_ngcontent-%COMP%]{margin-top:16px}.padding-top-16[_ngcontent-%COMP%]{padding-top:16px}.margin-bottom-16[_ngcontent-%COMP%]{margin-bottom:16px}.padding-bottom-16[_ngcontent-%COMP%]{padding-bottom:16px}.margin-left-16[_ngcontent-%COMP%]{margin-left:16px}.padding-left-16[_ngcontent-%COMP%]{padding-left:16px}.margin-right-16[_ngcontent-%COMP%]{margin-right:16px}.padding-right-16[_ngcontent-%COMP%]{padding-right:16px}.margin-20[_ngcontent-%COMP%]{margin:20px}.padding-20[_ngcontent-%COMP%]{padding:20px}.gap-20[_ngcontent-%COMP%]{gap:20px}.margin-top-20[_ngcontent-%COMP%]{margin-top:20px}.padding-top-20[_ngcontent-%COMP%]{padding-top:20px}.margin-bottom-20[_ngcontent-%COMP%]{margin-bottom:20px}.padding-bottom-20[_ngcontent-%COMP%]{padding-bottom:20px}.margin-left-20[_ngcontent-%COMP%]{margin-left:20px}.padding-left-20[_ngcontent-%COMP%]{padding-left:20px}.margin-right-20[_ngcontent-%COMP%]{margin-right:20px}.padding-right-20[_ngcontent-%COMP%]{padding-right:20px}.margin-24[_ngcontent-%COMP%]{margin:24px}.padding-24[_ngcontent-%COMP%]{padding:24px}.gap-24[_ngcontent-%COMP%]{gap:24px}.margin-top-24[_ngcontent-%COMP%]{margin-top:24px}.padding-top-24[_ngcontent-%COMP%]{padding-top:24px}.margin-bottom-24[_ngcontent-%COMP%]{margin-bottom:24px}.padding-bottom-24[_ngcontent-%COMP%]{padding-bottom:24px}.margin-left-24[_ngcontent-%COMP%]{margin-left:24px}.padding-left-24[_ngcontent-%COMP%]{padding-left:24px}.margin-right-24[_ngcontent-%COMP%]{margin-right:24px}.padding-right-24[_ngcontent-%COMP%]{padding-right:24px}.margin-32[_ngcontent-%COMP%]{margin:32px}.padding-32[_ngcontent-%COMP%]{padding:32px}.gap-32[_ngcontent-%COMP%]{gap:32px}.margin-top-32[_ngcontent-%COMP%]{margin-top:32px}.padding-top-32[_ngcontent-%COMP%]{padding-top:32px}.margin-bottom-32[_ngcontent-%COMP%]{margin-bottom:32px}.padding-bottom-32[_ngcontent-%COMP%]{padding-bottom:32px}.margin-left-32[_ngcontent-%COMP%]{margin-left:32px}.padding-left-32[_ngcontent-%COMP%]{padding-left:32px}.margin-right-32[_ngcontent-%COMP%]{margin-right:32px}.padding-right-32[_ngcontent-%COMP%]{padding-right:32px}.margin-36[_ngcontent-%COMP%]{margin:36px}.padding-36[_ngcontent-%COMP%]{padding:36px}.gap-36[_ngcontent-%COMP%]{gap:36px}.margin-top-36[_ngcontent-%COMP%]{margin-top:36px}.padding-top-36[_ngcontent-%COMP%]{padding-top:36px}.margin-bottom-36[_ngcontent-%COMP%]{margin-bottom:36px}.padding-bottom-36[_ngcontent-%COMP%]{padding-bottom:36px}.margin-left-36[_ngcontent-%COMP%]{margin-left:36px}.padding-left-36[_ngcontent-%COMP%]{padding-left:36px}.margin-right-36[_ngcontent-%COMP%]{margin-right:36px}.padding-right-36[_ngcontent-%COMP%]{padding-right:36px}.flex-row[_ngcontent-%COMP%]{display:flex}.flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.justify-content-space-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.align-items-center[_ngcontent-%COMP%]{align-items:center}.flex-none[_ngcontent-%COMP%]{flex:none}"]}),$})();var Ud=c(44264),cl=c(44296),Gc=c(26945);const gf=F=>({"disable-mat-select-trigger":F});function mf(F,$){if(1&F&&(n.j41(0,"div",30),n.EFF(1),n.k0s()),2&F){const U=n.XpG();n.R7$(),n.JRh(U.panelSummary)}}function vf(F,$){1&F&&(n.j41(0,"div",20),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"system.display.resolutionAndRotationHeader")," "))}function Lh(F,$){1&F&&n.nrm(0,"mat-icon",31)}function _f(F,$){1&F&&n.nrm(0,"mat-icon",32)}function yf(F,$){1&F&&(n.j41(0,"div",3)(1,"span",17),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&F&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"system.display.allowGSYNCSettings"),""))}function dl(F,$){1&F&&(n.j41(0,"div",3)(1,"span",17),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"span",35),n.EFF(5),n.nI1(6,"translate"),n.k0s()()),2&F&&(n.R7$(2),n.SpI(" ",n.bMT(3,2,"system.display.displaysGsyncPanelTitleForVRR"),""),n.R7$(3),n.JRh(n.bMT(6,4,"system.display.nonGSYNCCompatible")))}function $u(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",33),n.DNE(1,yf,4,3,"div",12)(2,dl,7,6,"div",12),n.j41(3,"mat-slide-toggle",34),n.mxI("ngModelChange",function(N){n.eBV(U);const Ce=n.XpG();return n.DH7(null==Ce.displayData?null:Ce.displayData.gsyncState.enabled,N)||((null==Ce.displayData?null:Ce.displayData.gsyncState).enabled=N),n.Njj(N)}),n.bIt("change",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onDisplayGsyncStateChange())}),n.k0s()()}if(2&F){const U=n.XpG();n.R7$(),n.Y8G("ngIf",(null==U.displayData?null:U.displayData.gsyncState.gsyncType)===U.gsyncTypes.GSyncCompatible),n.R7$(),n.Y8G("ngIf",(null==U.displayData?null:U.displayData.gsyncState.gsyncType)===U.gsyncTypes.VRR),n.R7$(),n.Y8G("disabled",!U.globalGSyncEnabled),n.R50("ngModel",null==U.displayData?null:U.displayData.gsyncState.enabled)}}function vp(F,$){1&F&&(n.j41(0,"span",35),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.JRh(n.bMT(2,1,"system.display.gSYNCEnabledGlobally")))}function Nh(F,$){1&F&&(n.j41(0,"span",35),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.JRh(n.bMT(2,1,"system.display.gSYNCDisabledGlobally")))}function As(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",3)(1,"span",17),n.EFF(2),n.nI1(3,"translate"),n.j41(4,"a",36),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onLearnMoreClicked())}),n.EFF(5),n.nI1(6,"translate"),n.k0s()(),n.DNE(7,vp,3,3,"span",37)(8,Nh,3,3,"span",37),n.k0s()}if(2&F){const U=n.XpG();n.R7$(2),n.SpI("",n.bMT(3,4,"system.display.gSYNCHeader")," "),n.R7$(3),n.JRh(n.bMT(6,6,"common.learnMore")),n.R7$(2),n.Y8G("ngIf",U.globalGSyncEnabled),n.R7$(),n.Y8G("ngIf",!U.globalGSyncEnabled)}}function Jd(F,$){1&F&&n.nrm(0,"mat-divider")}function Sf(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",10)(1,"div",38)(2,"span",17),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"mat-icon",39),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onClickHDCPInfoDialog())}),n.k0s()(),n.j41(6,"span",20),n.EFF(7),n.nI1(8,"translate"),n.k0s()()}if(2&F){const U=n.XpG();n.R7$(3),n.JRh(n.bMT(4,2,"system.display.hdcpStatus")),n.R7$(4),n.JRh(n.bMT(8,4,U.hdcpStausText))}}function _p(F,$){if(1&F&&(n.j41(0,"mat-option",40),n.EFF(1),n.k0s()),2&F){const U=$.$implicit;n.Y8G("value",U),n.R7$(),n.SpI(" ",U.label," ")}}function bf(F,$){if(1&F&&(n.j41(0,"mat-optgroup")(1,"div",3)(2,"span"),n.EFF(3),n.nI1(4,"translate"),n.k0s()(),n.DNE(5,_p,2,2,"mat-option",26),n.k0s()),2&F){const U=$.$implicit;n.R7$(3),n.SpI(" ",n.bMT(4,2,U.value.label)," "),n.R7$(2),n.Y8G("ngForOf",U.value.uiResolutionsList)}}function yp(F,$){if(1&F&&(n.j41(0,"mat-option",40),n.EFF(1),n.k0s()),2&F){const U=$.$implicit;n.Y8G("value",U),n.R7$(),n.SpI(" ",U.label," ")}}function fg(F,$){1&F&&(n.j41(0,"button",41),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"system.display.customizeResolution")," "))}function Sp(F,$){if(1&F){const U=n.RV6();n.j41(0,"mat-chip",42),n.bIt("click",function(N){const Ce=n.eBV(U).$implicit,ft=n.XpG();return n.Njj(ft.updateRotation(N,Ce.key))}),n.nrm(1,"mat-icon",43),n.j41(2,"span",44),n.EFF(3),n.nI1(4,"translate"),n.k0s()()}if(2&F){const U=$.$implicit,b=n.XpG();n.Y8G("disabled",b.disableRotation)("selected",U.key===b.currentRotationState),n.R7$(),n.Y8G("svgIcon",U.value.rotationIcon),n.R7$(2),n.JRh(n.bMT(4,4,U.value.rotationLabel))}}let Cf=(()=>{var F;class ${set gsyncGlobalState(b){this._gsyncGlobalState=b,this.globalGSyncEnabled=this.isGSyncEnabledGlobally(this._gsyncGlobalState)}get gsyncGlobalState(){return this._gsyncGlobalState}constructor(b,N,Ce,ft,Jt){this.translateService=N,this.displayService=Ce,this.dialog=ft,this.telemetryUtilsService=Jt,this._gsyncGlobalState=us.nX.NotAvailable,this.panelSummary="",this.globalGSyncEnabled=!1,this.gsyncTypes=us.rc,this.rotationListMap=Qs.D0,this.connectorTypeString="",this.connectorIcon="",this.resolutionGroupMap=new Map,this.hdcpStausText="",this.disableRotation=!1,this.disableResolution=!1,this.panelSummaryResolutionLabel="",this.panelSummaryRefreshRateLabel="",this.destroy$=new fo.B7,this.logger=b.getLogger("nvapp/DisplayPropertiesPanelComponent")}ngOnInit(){this.updateUIControls()}ngOnChanges(b){if(b&&b.displayData&&b.displayData?.isFirstChange())return;let N=!1;const Ce=b.displayData?.currentValue;b.displayData?.previousValue?.nvDisplayId!==Ce?.nvDisplayId&&(N=!0),this.updateUIControls(N)}updateUIControls(b=!1){this.clearSubscription(),this.initRotation(),this.disableResolutionControlsIfNeeded(),b&&(this.resolutionGroupMap.clear(),this.selectedRefreshRate=null),this.resolutionListSubscription=this.displayData.resolutionList$.subscribe(N=>{this.buildResolutionList(N)},N=>{this.logger.error(`Failed to fetch resolution list: ${N}`)}),this.buildHdcpStatusString(),this.setPanelSummaryString()}clearSubscription(){this.resolutionListSubscription&&(this.resolutionListSubscription.unsubscribe(),this.resolutionListSubscription=null)}disableResolutionControlsIfNeeded(){this.disableResolution=this.displayData.logicalDisplayType===us.QE.CloneDisplay&&!this.displayData.isClonePrimary}onResolutionChanged(){this.updateSelectedRefreshRate(this.selectedRefreshRate.value),this.logger.info("Selected resolution: ",JSON.stringify(this.currentResolution),"and refresh rate is ",JSON.stringify(this.selectedRefreshRate)),this.displayData.applyResolution({gpuIndex:this.displayData.gpuIndex,displayIndex:this.displayData.index,resolution:{horizontal:this.currentResolution.horizontal,vertical:this.currentResolution.vertical,flags:this.currentResolution.flags,tvFormat:this.currentResolution.tvFormat,refreshRate:this.selectedRefreshRate.value}},Qs.h4,{connectorType:this.displayData.connectorType,name:this.displayData.name}).pipe((0,ji.s)(1),(0,pr.Q)(this.destroy$)).subscribe(b=>{this.displayService.openApplyRevertSettingsDialog(this.refreshUIStateObs$())},b=>{this.logger.error(`Failed to apply resolution: ${b}`),this.displayService.refreshGpuDisplayInfo()})}onRefreshRateChanged(){this.logger.info("Selected resolution: ",JSON.stringify(this.currentResolution),"and refresh rate is ",JSON.stringify(this.selectedRefreshRate)),this.displayData.applyResolution({gpuIndex:this.displayData.gpuIndex,displayIndex:this.displayData.index,resolution:{horizontal:this.currentResolution.horizontal,vertical:this.currentResolution.vertical,flags:this.currentResolution.flags,tvFormat:this.currentResolution.tvFormat,refreshRate:this.selectedRefreshRate.value}},Qs.qX,{connectorType:this.displayData.connectorType,name:this.displayData.name}).pipe((0,ji.s)(1),(0,pr.Q)(this.destroy$)).subscribe(b=>{this.displayService.openApplyRevertSettingsDialog(this.refreshUIStateObs$())},b=>{this.logger.error(`Failed to apply resolution: ${b}`),this.displayService.refreshGpuDisplayInfo()})}isGSyncEnabledGlobally(b){return b===us.nX.FullscreenOnly||b===us.nX.FullscreenAndWindowed}buildGSyncPanelSummaryString(b){if(this.displayData?.gsyncState.gsyncType!==us.rc.NotSupported){let N=Qs.KN.get(this.displayData?.gsyncState.gsyncType),Ce=this.isGSyncEnabledGlobally(this.gsyncGlobalState);Ce?(this.displayData?.gsyncState.gsyncType===us.rc.VRR||this.displayData?.gsyncState.gsyncType===us.rc.GSyncCompatible)&&(Ce=this.displayData?.gsyncState.enabled):N="system.display.gSyncPanelSummaryCollapseStateForGsync",N=this.translateService.instant(N,{state:this.translateService.instant(Ce?"common.on":"common.off")}),N&&b.push(N)}}setPanelSummaryString(){this.buildConnectorString();const b=[],N=this.translateService.instant("system.display.collapsePanelConnectorText",{connector:this.connectorTypeString});this.buildGSyncPanelSummaryString(b),b.push(N),!0===this.displayData?.hdcpState?.isSupported&&!1===this.displayData?.hdcpState?.hdcpStatus.isUnavailable&&b.push(this.translateService.instant(Qs.z$)),this.panelSummaryResolutionLabel=this.displayService.getCurrentResolutionLabelForDisplay(this.displayData),this.panelSummaryRefreshRateLabel=this.displayService.getCurrentRefreshRateForDisplay(this.displayData),b.push(this.panelSummaryResolutionLabel,this.panelSummaryRefreshRateLabel),this.panelSummary=b.join("  |  ")}updateSelectedRefreshRate(b){const N=this.currentResolution?.refreshRates?.find(Ce=>Ce.value===b);this.selectedRefreshRate=N||this.currentResolution?.refreshRates[0],this.logger.info(" selected refresh rate is",this.selectedRefreshRate?.label)}getRefreshRateLabel(b){let N="system.display.refreshRateValue";return b.flags.isCustomUnderscan&&(N="system.display.refreshRateValueWithAsterisk"),this.translateService.instant(N,{refreshRate:b.refreshRate})}createUIResolution(b,N){return{...b,refreshRates:[{label:this.getRefreshRateLabel(b),value:b.refreshRate}],label:N}}buildResolutionList(b){this.resolutionGroupMap.clear(),this.currentResolution=null,b?.forEach(N=>{if(this.skipResolution(N))return;const Ce=this.displayService.buildResolutionMetadata(N,this.displayData),ft=this.resolutionGroupMap.get(Ce.group)||{uiResolutionsList:[],label:Ce.group?this.translateService.instant(Qs.kr.get(Ce.group)):"",group:Ce.group};this.resolutionGroupMap.has(Ce.group)||this.resolutionGroupMap.set(Ce.group,ft);const Jt=this.displayService.findSharedResolution(ft,N);if(Jt)Jt.refreshRates.push({label:this.getRefreshRateLabel(N),value:N.refreshRate}),Jt.refreshRates.sort(this.sortRefreshRate),N.flags.isCurrent&&(this.currentResolution=Jt,this.currentResolution.refreshRate=N.refreshRate);else{const wn=this.createUIResolution(N,Ce.resolution);ft.uiResolutionsList.push(wn),ft.uiResolutionsList.sort(this.sortResolutions),wn.flags.isCurrent&&(this.currentResolution=wn)}}),!this.currentResolution&&0!==this.resolutionGroupMap.size&&(this.currentResolution=this.resolutionGroupMap?.entries()?.next()?.value[1]?.uiResolutionsList[0]),this.updateSelectedRefreshRate(this.currentResolution?.refreshRate)}sortRefreshRate(b,N){return b.value!==N.value?N.value-b.value:0}sortResolutions(b,N){return N.horizontal!==b.horizontal?N.horizontal-b.horizontal:N.vertical!==b.vertical?N.vertical-b.vertical:0}skipResolution(b){const N={gpuIndex:this.displayData.gpuIndex,index:this.displayData.index};if(!this.displayService.isValidResolution(b,N)||this.displayService.isDisplayPartOfMergedDisplays(N)&&!b.flags.isNative)return!0;if(!b.flags.isCurrent)if(b.flags.isCustom){if(!b.flags.isSupported&&this.displayData?.isHideModeEnabled||!b.flags.isChecked)return!0}else if(!b.flags.isSupported&&(this.displayData?.isHideModeEnabled||!b.flags.isChecked))return!0;return!1}buildConnectorString(){if(Qs.hR.has(this.displayData?.deviceType)){const b=Qs.hR.get(this.displayData?.deviceType);this.connectorIcon=b.connectorIcon,this.connectorTypeString=this.translateService.instant(b.connectorType)}else{const b=Qs.wM.get(this.displayData?.connectorType);b&&(this.connectorIcon=b.connectorIcon,this.connectorTypeString=this.translateService.instant("system.display.connectorFormatText",{connectorType:b.connectorType?this.translateService.instant(b.connectorType):"",connectorTypeSubString:b.connectorSubType?this.translateService.instant(b.connectorSubType):""}))}}buildHdcpStatusString(){this.hdcpStausText=this.isDisplayHDCPNonCapable(this.displayData?.hdcpState?.hdcpStatus)?"common.notSupported":this.displayData?.hdcpState?.hdcpStatus?.isUnavailable?"system.display.hdcpNotSupportedAsConfigured":"common.supported",this.hdcpStausText=this.translateService.instant(this.hdcpStausText)}isDisplayHDCPNonCapable(b){return!(!0!==b?.isUnavailable||!(b.isAbortSrmRevoked||b.isInvalidDisplayID||b.isInvalidGpu||b.isInvalidDisplay||b.isAbortBadDisplay))}isDisplayHDCPCapableButNotConfiguredCorrectly(b){return b?.isUnavailable&&!this.isDisplayHDCPNonCapable(b)}buildHDCPErrorStrings(b){const N=[];for(const Ce in b)if(b.hasOwnProperty(Ce)&&b[Ce]){const ft=Qs.hN[Ce];ft&&N.push(this.translateService.instant(ft))}return N}onClickHDCPInfoDialog(){const b={title:this.translateService.instant("system.display.hdcp"),description:this.translateService.instant("system.display.hdcpDiscription"),errors:this.isDisplayHDCPCapableButNotConfiguredCorrectly(this.displayData?.hdcpState?.hdcpStatus)?this.buildHDCPErrorStrings(this.displayData?.hdcpState?.hdcpStatus):void 0};this.dialog.open(Rh.Z,{autoFocus:!1,hasBackdrop:!0,restoreFocus:!1,panelClass:["setting-info-modal","dialogPaddingRemove","common-dialog"],data:b}),this.telemetryUtilsService.sendClickEvent(ut.EB.HDCPInfoDialog,`${ut.d3.System_Displays}/${this.displayData.name}`,!0)}updateRotation(b,N){if(this.disableRotation)return b.stopPropagation(),void b.preventDefault();this.currentRotationState!==N&&(this.currentRotationState=N,this.logger.info("Updating rotation: ",this.currentRotationState),this.displayService.applyRotation({gpuIndex:this.displayData.gpuIndex,displayIndex:this.displayData.index,rotation:N},{connectorType:this.displayData.connectorType,name:this.displayData.name},this.refreshUIStateObs$()))}onDisplayGsyncStateChange(){this.logger.info("Gsync setting changed",this.displayData?.gsyncState.enabled),this.displayService.applyDisplayGsync({gpuIndex:this.displayData.gpuIndex,displayIndex:this.displayData.index,enabled:this.displayData?.gsyncState.enabled},{connectorType:this.displayData.connectorType,name:this.displayData.name}),this.setPanelSummaryString()}isRotationSupported(){return this.displayService.canEnableRotation({gpuIndex:this.displayData.gpuIndex,index:this.displayData.index},this.displayData)}initRotation(){this.currentRotationState=this.displayData?.rotationState,this.disableRotation=!this.isRotationSupported()}refreshUIStateObs$(){return(0,yr.of)(!0).pipe((0,ji.s)(1),(0,pr.Q)(this.destroy$),(0,xr.M)(b=>{const N=performance.now();this.updateUIControls();const Ce=performance.now();this.logger.info("updating UI controls took (ms): ",Ce-N)}))}ngOnDestroy(){this.clearSubscription(),this.destroy$.next(),this.destroy$.complete()}onLearnMoreClicked(){this.displayService.gsyncLinkClicked()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Xr.c$),n.rXU(yo.R),n.rXU(go.bZ),n.rXU(ut.AY))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-display-properties-panel"]],inputs:{isExpanded:"isExpanded",displayData:"displayData",gsyncGlobalState:"gsyncGlobalState"},features:[n.OA$],decls:57,vars:52,consts:[["hideToggle","true",1,"displays-expansion-panel",3,"expandedChange","expanded","ngClass"],[3,"collapsedHeight","expandedHeight"],[1,"flex-row","accordion-header","hig-button-overlay","justify-content-space-between","align-items-center",3,"ngClass"],[1,"flex-col"],[1,"font-sub1","font-color-primary"],["class","font-body2 font-color-secondary panel-summary",4,"ngIf"],["class","font-body2 font-color-secondary",4,"ngIf"],["svgIcon","chevron_down",4,"ngIf"],["svgIcon","chevron_up",4,"ngIf"],[1,"margin-top-16","flex-col","gap-16","margin-bottom-16"],[1,"flex-col","gap-16"],["class","flex-row justify-content-space-between",4,"ngIf"],["class","flex-col",4,"ngIf"],[4,"ngIf"],[1,"flex-col","gap-24"],[1,"flex-row","gap-16"],[1,"flex-col","gap-16","connector-container-width"],[1,"font-body1","font-color-primary"],[1,"flex-row","gap-12","align-items-center"],[1,"connector-icon",3,"svgIcon"],[1,"font-body2","font-color-secondary"],["class","flex-col gap-16",4,"ngIf"],["panelClass","mat-select-font-body2 mat-opt-group-font-sub2",1,"mat-mdc-select-dark-background","resolution-dropdown-width",3,"ngModelChange","selectionChange","ngModel","disabled"],[1,"dropdown-trigger","font-body2",3,"ngClass"],[4,"ngFor","ngForOf"],["panelClass","mat-select-font-body2",1,"mat-mdc-select-dark-background","refresh-rate-dropdown-width",3,"ngModelChange","selectionChange","disabled","ngModel"],[3,"value",4,"ngFor","ngForOf"],["mat-button","","class","font-button2",4,"ngIf"],[1,"flex-row","gap-8"],["selectable","","class","displays-chip",3,"disabled","selected","click",4,"ngFor","ngForOf"],[1,"font-body2","font-color-secondary","panel-summary"],["svgIcon","chevron_down"],["svgIcon","chevron_up"],[1,"flex-row","justify-content-space-between"],[3,"ngModelChange","change","disabled","ngModel"],[1,"font-body2","font-color-tertiary"],[1,"font-body2-link",3,"click"],["class","font-body2 font-color-tertiary",4,"ngIf"],[1,"flex-row","setting-info-icon-container"],["svgIcon","info",1,"color-white-hue-1","setting-info-icon","show",3,"click"],[3,"value"],["mat-button","",1,"font-button2"],["selectable","",1,"displays-chip",3,"click","disabled","selected"],[1,"rotation-icon",3,"svgIcon"],[1,"font-body2"]],template:function(b,N){1&b&&(n.j41(0,"mat-expansion-panel",0),n.mxI("expandedChange",function(ft){return n.DH7(N.isExpanded,ft)||(N.isExpanded=ft),ft}),n.j41(1,"mat-expansion-panel-header",1)(2,"div",2)(3,"div",3)(4,"div",4),n.EFF(5),n.nI1(6,"translate"),n.k0s(),n.DNE(7,mf,2,1,"div",5)(8,vf,3,3,"div",6),n.k0s(),n.DNE(9,Lh,1,0,"mat-icon",7)(10,_f,1,0,"mat-icon",8),n.k0s()(),n.j41(11,"div",9)(12,"div",10),n.DNE(13,$u,4,4,"div",11)(14,As,9,8,"div",12),n.k0s(),n.DNE(15,Jd,1,0,"mat-divider",13),n.j41(16,"div",14)(17,"div",15)(18,"div",16)(19,"span",17),n.EFF(20),n.nI1(21,"translate"),n.k0s(),n.j41(22,"div",18),n.nrm(23,"mat-icon",19),n.j41(24,"span",20),n.EFF(25),n.nI1(26,"translate"),n.k0s()()(),n.DNE(27,Sf,9,6,"div",21),n.k0s(),n.j41(28,"div",10)(29,"div",15)(30,"div",10)(31,"span",17),n.EFF(32),n.nI1(33,"translate"),n.k0s(),n.j41(34,"mat-select",22),n.mxI("ngModelChange",function(ft){return n.DH7(N.currentResolution,ft)||(N.currentResolution=ft),ft}),n.bIt("selectionChange",function(){return N.onResolutionChanged()}),n.j41(35,"mat-select-trigger",23),n.EFF(36),n.k0s(),n.DNE(37,bf,6,4,"mat-optgroup",24),n.nI1(38,"keyvalue"),n.k0s()(),n.j41(39,"div",10)(40,"span",17),n.EFF(41),n.nI1(42,"translate"),n.k0s(),n.j41(43,"mat-select",25),n.mxI("ngModelChange",function(ft){return n.DH7(N.selectedRefreshRate,ft)||(N.selectedRefreshRate=ft),ft}),n.bIt("selectionChange",function(){return N.onRefreshRateChanged()}),n.j41(44,"mat-select-trigger",23),n.EFF(45),n.k0s(),n.DNE(46,yp,2,2,"mat-option",26),n.k0s()()(),n.j41(47,"div"),n.DNE(48,fg,3,3,"button",27),n.k0s()(),n.j41(49,"div",10)(50,"span",17),n.EFF(51),n.nI1(52,"translate"),n.k0s(),n.j41(53,"div",28)(54,"mat-chip-list"),n.DNE(55,Sp,5,6,"mat-chip",29),n.nI1(56,"keyvalue"),n.k0s()()()()()()),2&b&&(n.R50("expanded",N.isExpanded),n.Y8G("ngClass",N.isExpanded?"ex-panel-bg":""),n.R7$(),n.Y8G("collapsedHeight","auto")("expandedHeight","auto"),n.R7$(),n.Y8G("ngClass",N.isExpanded?"bottom-divider":""),n.R7$(3),n.SpI(" ",n.bMT(6,32,"system.display.displayProperties")," "),n.R7$(2),n.Y8G("ngIf",!N.isExpanded),n.R7$(),n.Y8G("ngIf",N.isExpanded),n.R7$(),n.Y8G("ngIf",!N.isExpanded),n.R7$(),n.Y8G("ngIf",N.isExpanded),n.R7$(3),n.Y8G("ngIf",(null==N.displayData?null:N.displayData.gsyncState.gsyncType)===N.gsyncTypes.VRR||(null==N.displayData?null:N.displayData.gsyncState.gsyncType)===N.gsyncTypes.GSyncCompatible),n.R7$(),n.Y8G("ngIf",(null==N.displayData?null:N.displayData.gsyncState.gsyncType)===N.gsyncTypes.GSyncCapable||(null==N.displayData?null:N.displayData.gsyncState.gsyncType)===N.gsyncTypes.GsyncUltimate),n.R7$(),n.Y8G("ngIf",(null==N.displayData?null:N.displayData.gsyncState.gsyncType)!==N.gsyncTypes.NotSupported),n.R7$(5),n.JRh(n.bMT(21,34,"system.display.connector")),n.R7$(3),n.Y8G("svgIcon",N.connectorIcon),n.R7$(2),n.JRh(n.bMT(26,36,N.connectorTypeString)),n.R7$(2),n.Y8G("ngIf",null==N.displayData||null==N.displayData.hdcpState?null:N.displayData.hdcpState.isSupported),n.R7$(5),n.JRh(n.bMT(33,38,"system.display.resolution")),n.R7$(2),n.R50("ngModel",N.currentResolution),n.Y8G("disabled",N.disableResolution),n.R7$(),n.Y8G("ngClass",n.eq3(48,gf,N.disableResolution)),n.R7$(),n.SpI(" ",null==N.currentResolution?null:N.currentResolution.label," "),n.R7$(),n.Y8G("ngForOf",n.bMT(38,40,N.resolutionGroupMap)),n.R7$(4),n.JRh(n.bMT(42,42,"system.display.refreshRate")),n.R7$(2),n.Y8G("disabled",N.disableResolution),n.R50("ngModel",N.selectedRefreshRate),n.R7$(),n.Y8G("ngClass",n.eq3(50,gf,N.disableResolution)),n.R7$(),n.JRh(null==N.selectedRefreshRate?null:N.selectedRefreshRate.label),n.R7$(),n.Y8G("ngForOf",null==N.currentResolution?null:N.currentResolution.refreshRates),n.R7$(2),n.Y8G("ngIf",!1),n.R7$(3),n.JRh(n.bMT(52,44,"system.display.orientation")),n.R7$(4),n.Y8G("ngForOf",n.bMT(56,46,N.rotationListMap)))},dependencies:[$i.YU,$i.Sq,$i.bT,zn.tG,Xs.BC,Xs.vS,Ur.iV,ds.An,pi.q,ks.VO,ks.$2,lo.wT,lo.D7,no.P2,Gc.GK,Gc.Z2,Vc.O_,Vc.Id,fs.PW,$i.lG,Xr.D9],styles:[".connector-icon[_ngcontent-%COMP%]{width:32px;fill:#ffffffb3}.resolution-dropdown-width[_ngcontent-%COMP%], .connector-container-width[_ngcontent-%COMP%]{width:401px}.refresh-rate-dropdown-width[_ngcontent-%COMP%]{width:138px}.rotation-icon[_ngcontent-%COMP%]{width:20px;height:20px;line-height:20px;margin-right:6px}",".panel-summary[_ngcontent-%COMP%]{white-space:pre-wrap}.ex-panel-margin[_ngcontent-%COMP%]{margin:8px 0}.ex-panel-bg[_ngcontent-%COMP%]{background-color:#222}.dark-divider[_ngcontent-%COMP%]{border-top-color:#191919}.bottom-divider[_ngcontent-%COMP%]{border-bottom:1px solid #191919}.disable-mat-select-trigger[_ngcontent-%COMP%]{opacity:.38}","[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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))}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.system-display-box[_ngcontent-%COMP%]{box-sizing:border-box;border:1.5px solid rgba(255,255,255,.9);display:flex;width:26px;height:20px;flex-direction:row;align-self:center;justify-content:center;align-items:center}.displays-chip[_ngcontent-%COMP%]{height:32px;border:1px solid rgba(255,255,255,.7);border-radius:0;padding:6px 12px;background-color:transparent;cursor:pointer}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary[_ngcontent-%COMP%]{background-color:#ffffff4d}.accordion-padding[_ngcontent-%COMP%]{padding:14px 0}.accordion-header[_ngcontent-%COMP%]{padding:14px 16px;width:100%}.accordion-header[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#ffffffe6}",".margin-0[_ngcontent-%COMP%]{margin:0}.padding-0[_ngcontent-%COMP%]{padding:0}.gap-0[_ngcontent-%COMP%]{gap:0px}.margin-top-0[_ngcontent-%COMP%]{margin-top:0}.padding-top-0[_ngcontent-%COMP%]{padding-top:0}.margin-bottom-0[_ngcontent-%COMP%]{margin-bottom:0}.padding-bottom-0[_ngcontent-%COMP%]{padding-bottom:0}.margin-left-0[_ngcontent-%COMP%]{margin-left:0}.padding-left-0[_ngcontent-%COMP%]{padding-left:0}.margin-right-0[_ngcontent-%COMP%]{margin-right:0}.padding-right-0[_ngcontent-%COMP%]{padding-right:0}.margin-4[_ngcontent-%COMP%]{margin:4px}.padding-4[_ngcontent-%COMP%]{padding:4px}.gap-4[_ngcontent-%COMP%]{gap:4px}.margin-top-4[_ngcontent-%COMP%]{margin-top:4px}.padding-top-4[_ngcontent-%COMP%]{padding-top:4px}.margin-bottom-4[_ngcontent-%COMP%]{margin-bottom:4px}.padding-bottom-4[_ngcontent-%COMP%]{padding-bottom:4px}.margin-left-4[_ngcontent-%COMP%]{margin-left:4px}.padding-left-4[_ngcontent-%COMP%]{padding-left:4px}.margin-right-4[_ngcontent-%COMP%]{margin-right:4px}.padding-right-4[_ngcontent-%COMP%]{padding-right:4px}.margin-8[_ngcontent-%COMP%]{margin:8px}.padding-8[_ngcontent-%COMP%]{padding:8px}.gap-8[_ngcontent-%COMP%]{gap:8px}.margin-top-8[_ngcontent-%COMP%]{margin-top:8px}.padding-top-8[_ngcontent-%COMP%]{padding-top:8px}.margin-bottom-8[_ngcontent-%COMP%]{margin-bottom:8px}.padding-bottom-8[_ngcontent-%COMP%]{padding-bottom:8px}.margin-left-8[_ngcontent-%COMP%]{margin-left:8px}.padding-left-8[_ngcontent-%COMP%]{padding-left:8px}.margin-right-8[_ngcontent-%COMP%]{margin-right:8px}.padding-right-8[_ngcontent-%COMP%]{padding-right:8px}.margin-10[_ngcontent-%COMP%]{margin:10px}.padding-10[_ngcontent-%COMP%]{padding:10px}.gap-10[_ngcontent-%COMP%]{gap:10px}.margin-top-10[_ngcontent-%COMP%]{margin-top:10px}.padding-top-10[_ngcontent-%COMP%]{padding-top:10px}.margin-bottom-10[_ngcontent-%COMP%]{margin-bottom:10px}.padding-bottom-10[_ngcontent-%COMP%]{padding-bottom:10px}.margin-left-10[_ngcontent-%COMP%]{margin-left:10px}.padding-left-10[_ngcontent-%COMP%]{padding-left:10px}.margin-right-10[_ngcontent-%COMP%]{margin-right:10px}.padding-right-10[_ngcontent-%COMP%]{padding-right:10px}.margin-12[_ngcontent-%COMP%]{margin:12px}.padding-12[_ngcontent-%COMP%]{padding:12px}.gap-12[_ngcontent-%COMP%]{gap:12px}.margin-top-12[_ngcontent-%COMP%]{margin-top:12px}.padding-top-12[_ngcontent-%COMP%]{padding-top:12px}.margin-bottom-12[_ngcontent-%COMP%]{margin-bottom:12px}.padding-bottom-12[_ngcontent-%COMP%]{padding-bottom:12px}.margin-left-12[_ngcontent-%COMP%]{margin-left:12px}.padding-left-12[_ngcontent-%COMP%]{padding-left:12px}.margin-right-12[_ngcontent-%COMP%]{margin-right:12px}.padding-right-12[_ngcontent-%COMP%]{padding-right:12px}.margin-16[_ngcontent-%COMP%]{margin:16px}.padding-16[_ngcontent-%COMP%]{padding:16px}.gap-16[_ngcontent-%COMP%]{gap:16px}.margin-top-16[_ngcontent-%COMP%]{margin-top:16px}.padding-top-16[_ngcontent-%COMP%]{padding-top:16px}.margin-bottom-16[_ngcontent-%COMP%]{margin-bottom:16px}.padding-bottom-16[_ngcontent-%COMP%]{padding-bottom:16px}.margin-left-16[_ngcontent-%COMP%]{margin-left:16px}.padding-left-16[_ngcontent-%COMP%]{padding-left:16px}.margin-right-16[_ngcontent-%COMP%]{margin-right:16px}.padding-right-16[_ngcontent-%COMP%]{padding-right:16px}.margin-20[_ngcontent-%COMP%]{margin:20px}.padding-20[_ngcontent-%COMP%]{padding:20px}.gap-20[_ngcontent-%COMP%]{gap:20px}.margin-top-20[_ngcontent-%COMP%]{margin-top:20px}.padding-top-20[_ngcontent-%COMP%]{padding-top:20px}.margin-bottom-20[_ngcontent-%COMP%]{margin-bottom:20px}.padding-bottom-20[_ngcontent-%COMP%]{padding-bottom:20px}.margin-left-20[_ngcontent-%COMP%]{margin-left:20px}.padding-left-20[_ngcontent-%COMP%]{padding-left:20px}.margin-right-20[_ngcontent-%COMP%]{margin-right:20px}.padding-right-20[_ngcontent-%COMP%]{padding-right:20px}.margin-24[_ngcontent-%COMP%]{margin:24px}.padding-24[_ngcontent-%COMP%]{padding:24px}.gap-24[_ngcontent-%COMP%]{gap:24px}.margin-top-24[_ngcontent-%COMP%]{margin-top:24px}.padding-top-24[_ngcontent-%COMP%]{padding-top:24px}.margin-bottom-24[_ngcontent-%COMP%]{margin-bottom:24px}.padding-bottom-24[_ngcontent-%COMP%]{padding-bottom:24px}.margin-left-24[_ngcontent-%COMP%]{margin-left:24px}.padding-left-24[_ngcontent-%COMP%]{padding-left:24px}.margin-right-24[_ngcontent-%COMP%]{margin-right:24px}.padding-right-24[_ngcontent-%COMP%]{padding-right:24px}.margin-32[_ngcontent-%COMP%]{margin:32px}.padding-32[_ngcontent-%COMP%]{padding:32px}.gap-32[_ngcontent-%COMP%]{gap:32px}.margin-top-32[_ngcontent-%COMP%]{margin-top:32px}.padding-top-32[_ngcontent-%COMP%]{padding-top:32px}.margin-bottom-32[_ngcontent-%COMP%]{margin-bottom:32px}.padding-bottom-32[_ngcontent-%COMP%]{padding-bottom:32px}.margin-left-32[_ngcontent-%COMP%]{margin-left:32px}.padding-left-32[_ngcontent-%COMP%]{padding-left:32px}.margin-right-32[_ngcontent-%COMP%]{margin-right:32px}.padding-right-32[_ngcontent-%COMP%]{padding-right:32px}.margin-36[_ngcontent-%COMP%]{margin:36px}.padding-36[_ngcontent-%COMP%]{padding:36px}.gap-36[_ngcontent-%COMP%]{gap:36px}.margin-top-36[_ngcontent-%COMP%]{margin-top:36px}.padding-top-36[_ngcontent-%COMP%]{padding-top:36px}.margin-bottom-36[_ngcontent-%COMP%]{margin-bottom:36px}.padding-bottom-36[_ngcontent-%COMP%]{padding-bottom:36px}.margin-left-36[_ngcontent-%COMP%]{margin-left:36px}.padding-left-36[_ngcontent-%COMP%]{padding-left:36px}.margin-right-36[_ngcontent-%COMP%]{margin-right:36px}.padding-right-36[_ngcontent-%COMP%]{padding-right:36px}.flex-row[_ngcontent-%COMP%]{display:flex}.flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.justify-content-space-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.align-items-center[_ngcontent-%COMP%]{align-items:center}.flex-none[_ngcontent-%COMP%]{flex:none}"]}),$})();var qd=c(84300),gg=c(2218);const Ef=F=>({index:F});function mg(F,$){if(1&F&&(n.j41(0,"div",18),n.nrm(1,"img",19),n.k0s()),2&F){const U=n.XpG();n.R7$(),n.Y8G("src",U.gsyncSrc,n.B4B)}}function vg(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",20),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.openMenu())}),n.nrm(1,"mat-icon",21),n.k0s()}if(2&F){const U=n.XpG(),b=n.sdS(10);n.Y8G("matMenuTriggerFor",b),n.R7$(),n.Y8G("ngClass",U.item.isSelected?"font-color-primary":"font-color-secondary")}}function Mf(F,$){1&F&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.SpI("\xa0",n.bMT(2,1,"system.clone"),""))}function kh(F,$){if(1&F&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F){const U=n.XpG(2);n.R7$(),n.SpI("\xa0",n.i5U(2,1,"system.cloneGroup",n.eq3(4,Ef,(null==U.item?null:U.item.cloneGroupId)+1)),"")}}function Af(F,$){if(1&F&&(n.j41(0,"div",22),n.DNE(1,Mf,3,3,"span",23)(2,kh,3,6,"span",23),n.k0s()),2&F){const U=n.XpG();n.Y8G("ngClass",U.item.isSelected?"font-color-primary":"font-color-secondary"),n.R7$(),n.Y8G("ngIf",!U.multiCloneSystem),n.R7$(),n.Y8G("ngIf",U.multiCloneSystem)}}function zu(F,$){if(1&F&&(n.j41(0,"span",24),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F){const U=n.XpG();n.Y8G("ngClass",U.item.isSelected?"font-color-primary":"font-color-secondary"),n.R7$(),n.JRh(n.bMT(2,2,U.gsyncString))}}function Tf(F,$){1&F&&n.nrm(0,"div",25)}const xf=new Map([[us.bq.None,"icon_monitor"],[us.bq.Dvi,"icon_monitor"],[us.bq.Internal,"icon_laptop"],[us.bq.Crt,"icon_monitor"],[us.bq.Tv,"icon_tv"]]);let Fh=(()=>{var F;class ${constructor(b,N){this.displaysService=N,this.clicked=new n.bkB,this.hover=!1,this.isMenuOpen=!1,this.displayIcon="icon_monitor",this.gsyncSrc="",this.showGsyncInfo=!1,this.showGsyncLogo=!1,this.gsyncString="",this.multiCloneSystem=!1,this.destroy$=new fo.B7,this.LogicalDisplayType=us.QE,this.logger=b.getLogger("nvapp/DisplayTileComponent")}ngOnInit(){this.listenForMultiCloneSystem(),this.refreshState()}ngOnChanges(b){this.refreshState()}listenForMultiCloneSystem(){this.displaysService.isMultiCloneSystem$.pipe((0,pr.Q)(this.destroy$)).subscribe(b=>this.multiCloneSystem=b)}refreshState(){this.displayIcon=xf.get(this.item?.deviceType),this.showGsyncInfo=this.item?.gsyncState.gsyncType!==us.rc.NotSupported,this.showGsyncLogo=this.item?.gsyncState.gsyncType===us.rc.GsyncUltimate||this.item?.gsyncState.gsyncType===us.rc.GSyncCompatible||this.item?.gsyncState.gsyncType===us.rc.GSyncCapable,this.gsyncString=Qs.qN.get(this.item?.gsyncState.gsyncType)??"",this.gsyncSrc=!0===this.showGsyncLogo?Qs.AJ.get(this.item?.gsyncState.gsyncType):""}displayClicked(){this.clicked.emit(this.item)}onMouseOverTile(){this.hover=!0}onMouseLeaveTile(){this.hover=!1}openMenu(){this.isMenuOpen=!0}closeMenu(){this.isMenuOpen=!1}identifyDisplayClicked(){let b=this.item?.identifier;b?(this.item?.logicalDisplayType===us.QE.CloneDisplay&&!this.item?.isClonePrimary&&(b=this.displaysService.getClonePrimaryDisplayIdentifier(this.item.cloneGroupId)),this.displaysService.identifyDisplays(!1,[b],`${ut.d3.System_Displays}/${this.item?.name}`)):this.logger.error("display info is either null or identifier is undefined")}restoreDefaultsClicked(){this.displaysService.restoreDisplayDefaults({index:this.item?.index,gpuIndex:this.item?.gpuIndex},this.item.name)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(yo.R))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-display-tile"]],inputs:{item:"item"},outputs:{clicked:"clicked"},features:[n.OA$],decls:25,vars:18,consts:[["displayMenu","matMenu"],[1,"display-tile-container","flex-col","gap-4",3,"click","mouseover","mouseleave"],[1,"display-tile-content"],[1,"display-tile-grid"],["class","gsync-icon",4,"ngIf"],[1,"display-tile-icon",3,"svgIcon","ngClass"],[1,"display-id"],[1,"font-header5",3,"ngClass"],["mat-button","","class","tile-hover-button hig-button-overlay",3,"matMenuTriggerFor","click",4,"ngIf"],["xPosition","before",3,"closed"],["mat-menu-item","",3,"click"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3"],[1,"display-text","flex-row","align-items-center","justify-content-center"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-sub1",3,"ngClass"],["class","flex-row flex-none align-items-center font-sub1",3,"ngClass",4,"ngIf"],["class","font-body2 gsync-text",3,"ngClass",4,"ngIf"],["class","display-tile-overlay",4,"ngIf"],[1,"display-tile-bottom",3,"ngClass"],[1,"gsync-icon"],[3,"src"],["mat-button","",1,"tile-hover-button","hig-button-overlay",3,"click","matMenuTriggerFor"],["svgIcon","more_vert",1,"display-menu-icon",3,"ngClass"],[1,"flex-row","flex-none","align-items-center","font-sub1",3,"ngClass"],[4,"ngIf"],[1,"font-body2","gsync-text",3,"ngClass"],[1,"display-tile-overlay"]],template:function(b,N){if(1&b){const Ce=n.RV6();n.j41(0,"div",1),n.bIt("click",function(){return n.eBV(Ce),n.Njj(N.displayClicked())})("mouseover",function(){return n.eBV(Ce),n.Njj(N.onMouseOverTile())})("mouseleave",function(){return n.eBV(Ce),n.Njj(N.onMouseLeaveTile())}),n.j41(1,"div",2)(2,"div",3),n.DNE(3,mg,2,1,"div",4),n.j41(4,"mat-icon",5)(5,"div",6)(6,"div",7),n.EFF(7),n.k0s()()(),n.DNE(8,vg,2,2,"button",8),n.j41(9,"mat-menu",9,0),n.bIt("closed",function(){return n.eBV(Ce),n.Njj(N.closeMenu())}),n.j41(11,"button",10),n.bIt("click",function(){return n.eBV(Ce),n.Njj(N.identifyDisplayClicked())}),n.EFF(12),n.nI1(13,"translate"),n.k0s(),n.j41(14,"button",10),n.bIt("click",function(){return n.eBV(Ce),n.Njj(N.restoreDefaultsClicked())}),n.j41(15,"p",11),n.EFF(16),n.nI1(17,"translate"),n.k0s()()(),n.j41(18,"div",12)(19,"div",13),n.EFF(20),n.k0s(),n.DNE(21,Af,3,3,"div",14),n.k0s(),n.DNE(22,zu,3,4,"span",15),n.k0s(),n.DNE(23,Tf,1,0,"div",16),n.k0s(),n.nrm(24,"div",17),n.k0s()}2&b&&(n.R7$(3),n.Y8G("ngIf",N.showGsyncLogo),n.R7$(),n.Y8G("svgIcon",N.displayIcon)("ngClass",N.item.isSelected?"svg-color-primary":"svg-color-secondary"),n.R7$(2),n.Y8G("ngClass",N.item.isSelected?"font-color-primary":"font-color-secondary"),n.R7$(),n.SpI(" ",N.item.identifier," "),n.R7$(),n.Y8G("ngIf",N.hover||N.isMenuOpen),n.R7$(4),n.SpI(" ",n.bMT(13,14,"system.display.identify")," "),n.R7$(4),n.SpI(" ",n.bMT(17,16,"system.display.restoreDefaults")," "),n.R7$(3),n.Y8G("ngClass",N.item.isSelected?"font-color-primary":"font-color-secondary"),n.R7$(),n.SpI(" ",N.item.name," "),n.R7$(),n.Y8G("ngIf",(null==N.item?null:N.item.logicalDisplayType)===N.LogicalDisplayType.CloneDisplay),n.R7$(),n.Y8G("ngIf",N.showGsyncInfo),n.R7$(),n.Y8G("ngIf",N.hover),n.R7$(),n.Y8G("ngClass",N.item.isSelected?"display-tile-highlighter":"display-tile-hidden"))},dependencies:[$i.YU,$i.bT,tt.a,Ur.iV,ds.An,cl.pI,cl.gy,cl.fS,fs.PW,Xr.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((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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))}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.system-display-box[_ngcontent-%COMP%]{box-sizing:border-box;border:1.5px solid rgba(255,255,255,.9);display:flex;width:26px;height:20px;flex-direction:row;align-self:center;justify-content:center;align-items:center}.displays-chip[_ngcontent-%COMP%]{height:32px;border:1px solid rgba(255,255,255,.7);border-radius:0;padding:6px 12px;background-color:transparent;cursor:pointer}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary[_ngcontent-%COMP%]{background-color:#ffffff4d}.accordion-padding[_ngcontent-%COMP%]{padding:14px 0}.accordion-header[_ngcontent-%COMP%]{padding:14px 16px;width:100%}.accordion-header[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#ffffffe6}.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)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.display-tile-container[_ngcontent-%COMP%]{width:var(--display-tile-width-with-padding);height:var(--display-tile-height-with-padding-and-hl);max-width:var(--display-tile-max-width);max-height:calc(var(--display-tile-max-height-with-padding-and-hl));margin:var(--display-tile-margins)}.display-tile-content[_ngcontent-%COMP%]{background-color:#222;height:var(--display-tile-height);padding:16px;position:relative}.display-tile-grid[_ngcontent-%COMP%]{width:100%;height:100%;display:grid;grid-template-areas:"gsyncIcon displayIcon overflowMenu" "displayText displayText displayText" "gsyncText gsyncText gsyncText";grid-template-columns:42px 1fr 42px;grid-template-rows:auto 24px 20px}.display-container-position[_ngcontent-%COMP%]{position:relative}.display-id[_ngcontent-%COMP%]{position:absolute;display:flex;text-align:center;align-items:center;justify-content:center;width:100%;height:100%;margin-top:-5px}.gsync-icon[_ngcontent-%COMP%]{width:42px;height:16px;z-index:3;grid-area:gsyncIcon;justify-self:start}.menu-item[_ngcontent-%COMP%]{width:100%}.tile-hover-button[_ngcontent-%COMP%]{z-index:3;padding:0;min-width:24px;height:24px;grid-area:overflowMenu;justify-self:end}.display-menu-icon[_ngcontent-%COMP%]{vertical-align:unset}.display-tile-icon[_ngcontent-%COMP%]{min-width:90px;max-width:116px;min-height:90px;max-height:116px;width:100%;height:100%;position:relative;grid-area:displayIcon;justify-self:center}.display-text[_ngcontent-%COMP%]{grid-area:displayText;text-align:center;z-index:2}.gsync-text[_ngcontent-%COMP%]{grid-area:gsyncText;text-align:center}.display-tile-overlay[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;top:0;left:0;background-color:#fff;opacity:.08}.display-tile-overlay[_ngcontent-%COMP%]:active{opacity:.16}.display-tile-highlighter[_ngcontent-%COMP%]{opacity:1}.display-tile-hidden[_ngcontent-%COMP%]{opacity:0}.display-tile-bottom[_ngcontent-%COMP%]{background-color:#76b900;height:4px;width:100%;position:relative}.svg-color-primary[_ngcontent-%COMP%]{fill:#ffffffe6}.svg-color-secondary[_ngcontent-%COMP%]{fill:#ffffffb3}',".margin-0[_ngcontent-%COMP%]{margin:0}.padding-0[_ngcontent-%COMP%]{padding:0}.gap-0[_ngcontent-%COMP%]{gap:0px}.margin-top-0[_ngcontent-%COMP%]{margin-top:0}.padding-top-0[_ngcontent-%COMP%]{padding-top:0}.margin-bottom-0[_ngcontent-%COMP%]{margin-bottom:0}.padding-bottom-0[_ngcontent-%COMP%]{padding-bottom:0}.margin-left-0[_ngcontent-%COMP%]{margin-left:0}.padding-left-0[_ngcontent-%COMP%]{padding-left:0}.margin-right-0[_ngcontent-%COMP%]{margin-right:0}.padding-right-0[_ngcontent-%COMP%]{padding-right:0}.margin-4[_ngcontent-%COMP%]{margin:4px}.padding-4[_ngcontent-%COMP%]{padding:4px}.gap-4[_ngcontent-%COMP%]{gap:4px}.margin-top-4[_ngcontent-%COMP%]{margin-top:4px}.padding-top-4[_ngcontent-%COMP%]{padding-top:4px}.margin-bottom-4[_ngcontent-%COMP%]{margin-bottom:4px}.padding-bottom-4[_ngcontent-%COMP%]{padding-bottom:4px}.margin-left-4[_ngcontent-%COMP%]{margin-left:4px}.padding-left-4[_ngcontent-%COMP%]{padding-left:4px}.margin-right-4[_ngcontent-%COMP%]{margin-right:4px}.padding-right-4[_ngcontent-%COMP%]{padding-right:4px}.margin-8[_ngcontent-%COMP%]{margin:8px}.padding-8[_ngcontent-%COMP%]{padding:8px}.gap-8[_ngcontent-%COMP%]{gap:8px}.margin-top-8[_ngcontent-%COMP%]{margin-top:8px}.padding-top-8[_ngcontent-%COMP%]{padding-top:8px}.margin-bottom-8[_ngcontent-%COMP%]{margin-bottom:8px}.padding-bottom-8[_ngcontent-%COMP%]{padding-bottom:8px}.margin-left-8[_ngcontent-%COMP%]{margin-left:8px}.padding-left-8[_ngcontent-%COMP%]{padding-left:8px}.margin-right-8[_ngcontent-%COMP%]{margin-right:8px}.padding-right-8[_ngcontent-%COMP%]{padding-right:8px}.margin-10[_ngcontent-%COMP%]{margin:10px}.padding-10[_ngcontent-%COMP%]{padding:10px}.gap-10[_ngcontent-%COMP%]{gap:10px}.margin-top-10[_ngcontent-%COMP%]{margin-top:10px}.padding-top-10[_ngcontent-%COMP%]{padding-top:10px}.margin-bottom-10[_ngcontent-%COMP%]{margin-bottom:10px}.padding-bottom-10[_ngcontent-%COMP%]{padding-bottom:10px}.margin-left-10[_ngcontent-%COMP%]{margin-left:10px}.padding-left-10[_ngcontent-%COMP%]{padding-left:10px}.margin-right-10[_ngcontent-%COMP%]{margin-right:10px}.padding-right-10[_ngcontent-%COMP%]{padding-right:10px}.margin-12[_ngcontent-%COMP%]{margin:12px}.padding-12[_ngcontent-%COMP%]{padding:12px}.gap-12[_ngcontent-%COMP%]{gap:12px}.margin-top-12[_ngcontent-%COMP%]{margin-top:12px}.padding-top-12[_ngcontent-%COMP%]{padding-top:12px}.margin-bottom-12[_ngcontent-%COMP%]{margin-bottom:12px}.padding-bottom-12[_ngcontent-%COMP%]{padding-bottom:12px}.margin-left-12[_ngcontent-%COMP%]{margin-left:12px}.padding-left-12[_ngcontent-%COMP%]{padding-left:12px}.margin-right-12[_ngcontent-%COMP%]{margin-right:12px}.padding-right-12[_ngcontent-%COMP%]{padding-right:12px}.margin-16[_ngcontent-%COMP%]{margin:16px}.padding-16[_ngcontent-%COMP%]{padding:16px}.gap-16[_ngcontent-%COMP%]{gap:16px}.margin-top-16[_ngcontent-%COMP%]{margin-top:16px}.padding-top-16[_ngcontent-%COMP%]{padding-top:16px}.margin-bottom-16[_ngcontent-%COMP%]{margin-bottom:16px}.padding-bottom-16[_ngcontent-%COMP%]{padding-bottom:16px}.margin-left-16[_ngcontent-%COMP%]{margin-left:16px}.padding-left-16[_ngcontent-%COMP%]{padding-left:16px}.margin-right-16[_ngcontent-%COMP%]{margin-right:16px}.padding-right-16[_ngcontent-%COMP%]{padding-right:16px}.margin-20[_ngcontent-%COMP%]{margin:20px}.padding-20[_ngcontent-%COMP%]{padding:20px}.gap-20[_ngcontent-%COMP%]{gap:20px}.margin-top-20[_ngcontent-%COMP%]{margin-top:20px}.padding-top-20[_ngcontent-%COMP%]{padding-top:20px}.margin-bottom-20[_ngcontent-%COMP%]{margin-bottom:20px}.padding-bottom-20[_ngcontent-%COMP%]{padding-bottom:20px}.margin-left-20[_ngcontent-%COMP%]{margin-left:20px}.padding-left-20[_ngcontent-%COMP%]{padding-left:20px}.margin-right-20[_ngcontent-%COMP%]{margin-right:20px}.padding-right-20[_ngcontent-%COMP%]{padding-right:20px}.margin-24[_ngcontent-%COMP%]{margin:24px}.padding-24[_ngcontent-%COMP%]{padding:24px}.gap-24[_ngcontent-%COMP%]{gap:24px}.margin-top-24[_ngcontent-%COMP%]{margin-top:24px}.padding-top-24[_ngcontent-%COMP%]{padding-top:24px}.margin-bottom-24[_ngcontent-%COMP%]{margin-bottom:24px}.padding-bottom-24[_ngcontent-%COMP%]{padding-bottom:24px}.margin-left-24[_ngcontent-%COMP%]{margin-left:24px}.padding-left-24[_ngcontent-%COMP%]{padding-left:24px}.margin-right-24[_ngcontent-%COMP%]{margin-right:24px}.padding-right-24[_ngcontent-%COMP%]{padding-right:24px}.margin-32[_ngcontent-%COMP%]{margin:32px}.padding-32[_ngcontent-%COMP%]{padding:32px}.gap-32[_ngcontent-%COMP%]{gap:32px}.margin-top-32[_ngcontent-%COMP%]{margin-top:32px}.padding-top-32[_ngcontent-%COMP%]{padding-top:32px}.margin-bottom-32[_ngcontent-%COMP%]{margin-bottom:32px}.padding-bottom-32[_ngcontent-%COMP%]{padding-bottom:32px}.margin-left-32[_ngcontent-%COMP%]{margin-left:32px}.padding-left-32[_ngcontent-%COMP%]{padding-left:32px}.margin-right-32[_ngcontent-%COMP%]{margin-right:32px}.padding-right-32[_ngcontent-%COMP%]{padding-right:32px}.margin-36[_ngcontent-%COMP%]{margin:36px}.padding-36[_ngcontent-%COMP%]{padding:36px}.gap-36[_ngcontent-%COMP%]{gap:36px}.margin-top-36[_ngcontent-%COMP%]{margin-top:36px}.padding-top-36[_ngcontent-%COMP%]{padding-top:36px}.margin-bottom-36[_ngcontent-%COMP%]{margin-bottom:36px}.padding-bottom-36[_ngcontent-%COMP%]{padding-bottom:36px}.margin-left-36[_ngcontent-%COMP%]{margin-left:36px}.padding-left-36[_ngcontent-%COMP%]{padding-left:36px}.margin-right-36[_ngcontent-%COMP%]{margin-right:36px}.padding-right-36[_ngcontent-%COMP%]{padding-right:36px}.flex-row[_ngcontent-%COMP%]{display:flex}.flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.justify-content-space-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.align-items-center[_ngcontent-%COMP%]{align-items:center}.flex-none[_ngcontent-%COMP%]{flex:none}","[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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))}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.system-display-box[_ngcontent-%COMP%]{box-sizing:border-box;border:1.5px solid rgba(255,255,255,.9);display:flex;width:26px;height:20px;flex-direction:row;align-self:center;justify-content:center;align-items:center}.displays-chip[_ngcontent-%COMP%]{height:32px;border:1px solid rgba(255,255,255,.7);border-radius:0;padding:6px 12px;background-color:transparent;cursor:pointer}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary[_ngcontent-%COMP%]{background-color:#ffffff4d}.accordion-padding[_ngcontent-%COMP%]{padding:14px 0}.accordion-header[_ngcontent-%COMP%]{padding:14px 16px;width:100%}.accordion-header[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#ffffffe6}"]}),$})();const bp=["displayCarouselItem"];function Df(F,$){if(1&F){const U=n.RV6();n.j41(0,"nv-app-display-tile",5),n.bIt("clicked",function(N){n.eBV(U);const Ce=n.XpG(2);return n.Njj(Ce.onSelectDisplay(N))}),n.k0s()}2&F&&n.Y8G("item",$.$implicit.type)}function _g(F,$){if(1&F&&(n.j41(0,"nv-hig-carousel",4,0),n.DNE(3,Df,1,1,"ng-template",null,1,n.C5r),n.k0s()),2&F){const U=n.sdS(4),b=n.XpG();n.Y8G("items",b.displays)("template",U)("containerLeftMarginStr",b.containerLeftMarginStr)("itemProperty",b.itemProperty)("containFocus",!1)("captureFocusForChild",!0)}}let yg=(()=>{var F;class ${constructor(b,N){this.loggingService=b,this.displaysService=N,this.logger=this.loggingService.getLogger("nvapp/DisplaysCarouselComponent")}ngOnChanges(b){if(b?.selectedCarouselDisplay){const N=this.selectedCarouselDisplay?.id||0;this.logger.info("selectedDisplay changed",this.selectedCarouselDisplay?.id),this.carousel&&!this.manuallySelectedDisplay&&setTimeout(()=>{this.carousel.jumpToTile(N)},Qs.ZB),this.manuallySelectedDisplay=!1}}onSelectDisplay(b){this.manuallySelectedDisplay=!0,this.displaysService.selectDisplay(b)}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(yo.R))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-displays-carousel"]],viewQuery:function(b,N){if(1&b&&n.GBs(bp,5),2&b){let Ce;n.mGM(Ce=n.lsd())&&(N.carousel=Ce.first)}},inputs:{displays:"displays",containerLeftMarginStr:"containerLeftMarginStr",itemProperty:"itemProperty",selectedCarouselDisplay:"selectedCarouselDisplay"},features:[n.OA$],decls:2,vars:1,consts:[["displayCarouselItem","","nvHigCarouselItem",""],["displayTemplate",""],[1,"displays-carousel-container"],["nvSpatialNavigationContainer","","captureAndTransitFocusPolicy","closest",3,"items","template","containerLeftMarginStr","itemProperty","containFocus","captureFocusForChild",4,"ngIf"],["nvSpatialNavigationContainer","","captureAndTransitFocusPolicy","closest",3,"items","template","containerLeftMarginStr","itemProperty","containFocus","captureFocusForChild"],[3,"clicked","item"]],template:function(b,N){1&b&&(n.j41(0,"div",2),n.DNE(1,_g,5,6,"nv-hig-carousel",3),n.k0s()),2&b&&(n.R7$(),n.Y8G("ngIf",null==N.displays?null:N.displays.length))},dependencies:[$i.bT,qd._,gg.R,Fh],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((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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))}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.system-display-box[_ngcontent-%COMP%]{box-sizing:border-box;border:1.5px solid rgba(255,255,255,.9);display:flex;width:26px;height:20px;flex-direction:row;align-self:center;justify-content:center;align-items:center}.displays-chip[_ngcontent-%COMP%]{height:32px;border:1px solid rgba(255,255,255,.7);border-radius:0;padding:6px 12px;background-color:transparent;cursor:pointer}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary[_ngcontent-%COMP%]{background-color:#ffffff4d}.accordion-padding[_ngcontent-%COMP%]{padding:14px 0}.accordion-header[_ngcontent-%COMP%]{padding:14px 16px;width:100%}.accordion-header[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#ffffffe6}[_nghost-%COMP%]{--container-left-margin: 24px;--displays-container-top-margin: 8px;--display-tile-max-width: 316px;--display-tile-max-height: 160px;--display-tile-max-height-with-padding: calc(var(--display-tile-max-height) + 32px + 0px);--display-tile-max-height-with-padding-and-hl: calc(var(--display-tile-max-height) + 32px + 8px);--display-tile-width-with-padding: calc(3 * var(--rwd-column-size) + 2 * var(--rwd-gutter-size));--display-tile-width: calc(var(--display-tile-width-with-padding) - 32px);--display-tile-height-with-padding: calc(var(--display-tile-width-with-padding) / 1.64 + 0px);--display-tile-height: calc(var(--display-tile-height-with-padding) - 32px);--display-tile-height-with-padding-and-hl: calc(var(--display-tile-width-with-padding) / 1.64 + 8px);gap:var(--rwd-gutter-size);--display-tile-margins: var(--displays-container-top-margin) var(--rwd-gutter-size) var(--displays-container-top-margin) 0px}@media screen and (min-width: 960px) and (max-width: 1279px){[_nghost-%COMP%]{--display-tile-width-with-padding: calc(4 * var(--rwd-column-size) + 3 * var(--rwd-gutter-size));--display-tile-width: calc(var(--display-tile-width-with-padding) - 32px);--display-tile-height-with-padding: calc(var(--display-tile-width-with-padding) / 1.64 + 0px);--display-tile-height: calc(var(--display-tile-height-with-padding) - 32px);--display-tile-height-with-padding-and-hl: calc(var(--display-tile-width-with-padding) / 1.64 + 8px);gap:var(--rwd-gutter-size)}}.displays-carousel-container[_ngcontent-%COMP%]{height:calc(min(var(--display-tile-height-with-padding),var(--display-tile-max-height-with-padding)) + var(--displays-container-top-margin))}",".margin-0[_ngcontent-%COMP%]{margin:0}.padding-0[_ngcontent-%COMP%]{padding:0}.gap-0[_ngcontent-%COMP%]{gap:0px}.margin-top-0[_ngcontent-%COMP%]{margin-top:0}.padding-top-0[_ngcontent-%COMP%]{padding-top:0}.margin-bottom-0[_ngcontent-%COMP%]{margin-bottom:0}.padding-bottom-0[_ngcontent-%COMP%]{padding-bottom:0}.margin-left-0[_ngcontent-%COMP%]{margin-left:0}.padding-left-0[_ngcontent-%COMP%]{padding-left:0}.margin-right-0[_ngcontent-%COMP%]{margin-right:0}.padding-right-0[_ngcontent-%COMP%]{padding-right:0}.margin-4[_ngcontent-%COMP%]{margin:4px}.padding-4[_ngcontent-%COMP%]{padding:4px}.gap-4[_ngcontent-%COMP%]{gap:4px}.margin-top-4[_ngcontent-%COMP%]{margin-top:4px}.padding-top-4[_ngcontent-%COMP%]{padding-top:4px}.margin-bottom-4[_ngcontent-%COMP%]{margin-bottom:4px}.padding-bottom-4[_ngcontent-%COMP%]{padding-bottom:4px}.margin-left-4[_ngcontent-%COMP%]{margin-left:4px}.padding-left-4[_ngcontent-%COMP%]{padding-left:4px}.margin-right-4[_ngcontent-%COMP%]{margin-right:4px}.padding-right-4[_ngcontent-%COMP%]{padding-right:4px}.margin-8[_ngcontent-%COMP%]{margin:8px}.padding-8[_ngcontent-%COMP%]{padding:8px}.gap-8[_ngcontent-%COMP%]{gap:8px}.margin-top-8[_ngcontent-%COMP%]{margin-top:8px}.padding-top-8[_ngcontent-%COMP%]{padding-top:8px}.margin-bottom-8[_ngcontent-%COMP%]{margin-bottom:8px}.padding-bottom-8[_ngcontent-%COMP%]{padding-bottom:8px}.margin-left-8[_ngcontent-%COMP%]{margin-left:8px}.padding-left-8[_ngcontent-%COMP%]{padding-left:8px}.margin-right-8[_ngcontent-%COMP%]{margin-right:8px}.padding-right-8[_ngcontent-%COMP%]{padding-right:8px}.margin-10[_ngcontent-%COMP%]{margin:10px}.padding-10[_ngcontent-%COMP%]{padding:10px}.gap-10[_ngcontent-%COMP%]{gap:10px}.margin-top-10[_ngcontent-%COMP%]{margin-top:10px}.padding-top-10[_ngcontent-%COMP%]{padding-top:10px}.margin-bottom-10[_ngcontent-%COMP%]{margin-bottom:10px}.padding-bottom-10[_ngcontent-%COMP%]{padding-bottom:10px}.margin-left-10[_ngcontent-%COMP%]{margin-left:10px}.padding-left-10[_ngcontent-%COMP%]{padding-left:10px}.margin-right-10[_ngcontent-%COMP%]{margin-right:10px}.padding-right-10[_ngcontent-%COMP%]{padding-right:10px}.margin-12[_ngcontent-%COMP%]{margin:12px}.padding-12[_ngcontent-%COMP%]{padding:12px}.gap-12[_ngcontent-%COMP%]{gap:12px}.margin-top-12[_ngcontent-%COMP%]{margin-top:12px}.padding-top-12[_ngcontent-%COMP%]{padding-top:12px}.margin-bottom-12[_ngcontent-%COMP%]{margin-bottom:12px}.padding-bottom-12[_ngcontent-%COMP%]{padding-bottom:12px}.margin-left-12[_ngcontent-%COMP%]{margin-left:12px}.padding-left-12[_ngcontent-%COMP%]{padding-left:12px}.margin-right-12[_ngcontent-%COMP%]{margin-right:12px}.padding-right-12[_ngcontent-%COMP%]{padding-right:12px}.margin-16[_ngcontent-%COMP%]{margin:16px}.padding-16[_ngcontent-%COMP%]{padding:16px}.gap-16[_ngcontent-%COMP%]{gap:16px}.margin-top-16[_ngcontent-%COMP%]{margin-top:16px}.padding-top-16[_ngcontent-%COMP%]{padding-top:16px}.margin-bottom-16[_ngcontent-%COMP%]{margin-bottom:16px}.padding-bottom-16[_ngcontent-%COMP%]{padding-bottom:16px}.margin-left-16[_ngcontent-%COMP%]{margin-left:16px}.padding-left-16[_ngcontent-%COMP%]{padding-left:16px}.margin-right-16[_ngcontent-%COMP%]{margin-right:16px}.padding-right-16[_ngcontent-%COMP%]{padding-right:16px}.margin-20[_ngcontent-%COMP%]{margin:20px}.padding-20[_ngcontent-%COMP%]{padding:20px}.gap-20[_ngcontent-%COMP%]{gap:20px}.margin-top-20[_ngcontent-%COMP%]{margin-top:20px}.padding-top-20[_ngcontent-%COMP%]{padding-top:20px}.margin-bottom-20[_ngcontent-%COMP%]{margin-bottom:20px}.padding-bottom-20[_ngcontent-%COMP%]{padding-bottom:20px}.margin-left-20[_ngcontent-%COMP%]{margin-left:20px}.padding-left-20[_ngcontent-%COMP%]{padding-left:20px}.margin-right-20[_ngcontent-%COMP%]{margin-right:20px}.padding-right-20[_ngcontent-%COMP%]{padding-right:20px}.margin-24[_ngcontent-%COMP%]{margin:24px}.padding-24[_ngcontent-%COMP%]{padding:24px}.gap-24[_ngcontent-%COMP%]{gap:24px}.margin-top-24[_ngcontent-%COMP%]{margin-top:24px}.padding-top-24[_ngcontent-%COMP%]{padding-top:24px}.margin-bottom-24[_ngcontent-%COMP%]{margin-bottom:24px}.padding-bottom-24[_ngcontent-%COMP%]{padding-bottom:24px}.margin-left-24[_ngcontent-%COMP%]{margin-left:24px}.padding-left-24[_ngcontent-%COMP%]{padding-left:24px}.margin-right-24[_ngcontent-%COMP%]{margin-right:24px}.padding-right-24[_ngcontent-%COMP%]{padding-right:24px}.margin-32[_ngcontent-%COMP%]{margin:32px}.padding-32[_ngcontent-%COMP%]{padding:32px}.gap-32[_ngcontent-%COMP%]{gap:32px}.margin-top-32[_ngcontent-%COMP%]{margin-top:32px}.padding-top-32[_ngcontent-%COMP%]{padding-top:32px}.margin-bottom-32[_ngcontent-%COMP%]{margin-bottom:32px}.padding-bottom-32[_ngcontent-%COMP%]{padding-bottom:32px}.margin-left-32[_ngcontent-%COMP%]{margin-left:32px}.padding-left-32[_ngcontent-%COMP%]{padding-left:32px}.margin-right-32[_ngcontent-%COMP%]{margin-right:32px}.padding-right-32[_ngcontent-%COMP%]{padding-right:32px}.margin-36[_ngcontent-%COMP%]{margin:36px}.padding-36[_ngcontent-%COMP%]{padding:36px}.gap-36[_ngcontent-%COMP%]{gap:36px}.margin-top-36[_ngcontent-%COMP%]{margin-top:36px}.padding-top-36[_ngcontent-%COMP%]{padding-top:36px}.margin-bottom-36[_ngcontent-%COMP%]{margin-bottom:36px}.padding-bottom-36[_ngcontent-%COMP%]{padding-bottom:36px}.margin-left-36[_ngcontent-%COMP%]{margin-left:36px}.padding-left-36[_ngcontent-%COMP%]{padding-left:36px}.margin-right-36[_ngcontent-%COMP%]{margin-right:36px}.padding-right-36[_ngcontent-%COMP%]{padding-right:36px}.flex-row[_ngcontent-%COMP%]{display:flex}.flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.justify-content-space-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.align-items-center[_ngcontent-%COMP%]{align-items:center}.flex-none[_ngcontent-%COMP%]{flex:none}"]}),$})();function Sg(F,$){1&F&&n.nrm(0,"nv-app-page-load-spinner")}function Ku(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",16),n.nrm(1,"mat-divider"),n.j41(2,"div",17)(3,"div",5),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.j41(6,"div",18)(7,"div",19)(8,"div",20)(9,"span",21),n.EFF(10),n.nI1(11,"translate"),n.k0s()(),n.j41(12,"div",22)(13,"a",23),n.bIt("click",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.onLearnMoreClicked())}),n.EFF(14),n.nI1(15,"translate"),n.k0s()()()()(),n.nrm(16,"mat-divider"),n.k0s()}if(2&F){const U=n.XpG(2);n.R7$(4),n.SpI(" ",n.bMT(5,3,"system.display.gSyncCapable")," "),n.R7$(6),n.JRh(n.bMT(11,5,U.gsyncSelectedStateText)),n.R7$(4),n.SpI(" ",n.bMT(15,7,"common.learnMore")," ")}}function bg(F,$){if(1&F&&(n.j41(0,"div",39),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F){const U=n.XpG(3);n.R7$(),n.JRh(n.bMT(2,1,U.panelSummary))}}function Of(F,$){1&F&&(n.j41(0,"div",21),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"system.display.globalGsyncCollapseHeader")," "))}function Cp(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",40),n.bIt("click",function(N){n.eBV(U);const Ce=n.XpG(3);return n.Njj(Ce.onRestoreGsyncClicked(N))}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"common.restore")," "))}function Ep(F,$){1&F&&n.nrm(0,"mat-icon",41)}function Uh(F,$){1&F&&n.nrm(0,"mat-icon",42)}function Cg(F,$){if(1&F&&(n.j41(0,"div",20)(1,"span",21),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&F){const U=n.XpG(3);n.R7$(2),n.JRh(n.bMT(3,1,U.gsyncSelectedStateText))}}function Mp(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",43),n.bIt("click",function(){n.eBV(U);const N=n.XpG(3);return n.Njj(N.onGsyncClicked())}),n.j41(1,"div",44)(2,"div"),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.nrm(5,"mat-icon",45),n.k0s()()}if(2&F){const U=n.XpG(3);n.R7$(3),n.JRh(n.bMT(4,1,U.gsyncSelectedStateText))}}function Ap(F,$){if(1&F){const U=n.RV6();n.j41(0,"mat-accordion",24),n.nrm(1,"mat-divider"),n.j41(2,"div",25)(3,"mat-expansion-panel",26),n.mxI("expandedChange",function(N){n.eBV(U);const Ce=n.XpG(2);return n.DH7(Ce.isExpanded,N)||(Ce.isExpanded=N),n.Njj(N)}),n.j41(4,"mat-expansion-panel-header",27)(5,"div",28)(6,"div",29)(7,"div",5),n.EFF(8),n.nI1(9,"translate"),n.k0s(),n.DNE(10,bg,3,3,"div",30)(11,Of,3,3,"div",31),n.k0s(),n.j41(12,"div",32),n.DNE(13,Cp,3,3,"button",33)(14,Ep,1,0,"mat-icon",34)(15,Uh,1,0,"mat-icon",35),n.k0s()()(),n.j41(16,"div",36)(17,"div",19),n.DNE(18,Cg,4,3,"div",37)(19,Mp,6,3,"button",38),n.j41(20,"div",22)(21,"a",23),n.bIt("click",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.onLearnMoreClicked())}),n.EFF(22),n.nI1(23,"translate"),n.k0s()()()()()(),n.nrm(24,"mat-divider"),n.k0s()}if(2&F){const U=n.XpG(2);n.R7$(3),n.R50("expanded",U.isExpanded),n.Y8G("ngClass",U.isExpanded?"ex-panel-bg":""),n.R7$(),n.Y8G("collapsedHeight","auto")("expandedHeight","auto"),n.R7$(),n.Y8G("ngClass",U.isExpanded?"bottom-divider":""),n.R7$(3),n.SpI(" ",n.bMT(9,14,"system.display.gSyncCapable")," "),n.R7$(2),n.Y8G("ngIf",!U.isExpanded),n.R7$(),n.Y8G("ngIf",U.isExpanded),n.R7$(2),n.Y8G("ngIf",U.isExpanded&&U.gsyncGlobalState!==U.GlobalGsyncState.NotAvailable),n.R7$(),n.Y8G("ngIf",!U.isExpanded),n.R7$(),n.Y8G("ngIf",U.isExpanded),n.R7$(3),n.Y8G("ngIf",U.gsyncGlobalState===U.GlobalGsyncState.NotAvailable),n.R7$(),n.Y8G("ngIf",U.gsyncGlobalState!==U.GlobalGsyncState.NotAvailable),n.R7$(3),n.SpI(" ",n.bMT(23,16,"common.learnMore")," ")}}function Tp(F,$){if(1&F&&n.nrm(0,"nv-app-displays-carousel",46),2&F){const U=n.XpG(2);n.Y8G("displays",U.displays)("itemProperty",U.itemProperty)("containerLeftMarginStr",U.containerLeftMarginStr)("selectedCarouselDisplay",U.selectedCarouselDisplay)}}function yd(F,$){if(1&F&&(n.j41(0,"mat-accordion",47),n.nrm(1,"mat-divider"),n.j41(2,"div",25),n.nrm(3,"nv-app-display-properties-panel",48),n.k0s(),n.nrm(4,"mat-divider"),n.k0s()),2&F){const U=n.XpG(2);n.R7$(3),n.Y8G("isExpanded",U.propertiesPanelExpanded)("displayData",U.selectedDisplay)("gsyncGlobalState",U.gsyncGlobalState)}}function xp(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",3)(1,"div",4)(2,"span",5),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"button",6),n.nrm(6,"mat-icon",7),n.k0s(),n.j41(7,"mat-menu",8,1)(9,"button",9),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.identifyAllDisplayClicked())}),n.EFF(10),n.nI1(11,"translate"),n.k0s()()(),n.DNE(12,Ku,17,9,"div",10)(13,Ap,25,18,"mat-accordion",11),n.j41(14,"span",12),n.EFF(15),n.nI1(16,"translate"),n.k0s(),n.j41(17,"div",13),n.DNE(18,Tp,1,4,"nv-app-displays-carousel",14),n.k0s(),n.DNE(19,yd,5,3,"mat-accordion",15),n.k0s()}if(2&F){const U=n.sdS(8),b=n.XpG();n.R7$(3),n.SpI(" ",n.bMT(4,8,"system.display.displaySettingsGlobal"),""),n.R7$(2),n.Y8G("matMenuTriggerFor",U),n.R7$(5),n.SpI(" ",n.bMT(11,10,"system.display.identifyall")," "),n.R7$(2),n.Y8G("ngIf",!b.showAccordianForGsync),n.R7$(),n.Y8G("ngIf",b.showAccordianForGsync),n.R7$(2),n.SpI(" ",n.bMT(16,12,"system.display.displaySettings"),""),n.R7$(3),n.Y8G("ngIf",b.displays.length),n.R7$(),n.Y8G("ngIf",b.displays)}}let Pf=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn,x){this.displaysService=N,this.translateService=Ce,this.performanceMeasureService=ft,this.matDialog=Jt,this.settingInfoModalService=wn,this.telemetryUtilsService=x,this.gsyncGlobalState=us.nX.NotAvailable,this.gsyncSelectedStateText=Qs.Fj.get(us.nX.NotAvailable),this.isExpanded=!1,this.panelSummary="",this.displayModeOptions=[us.iI.Automatic,us.iI.Optimus,us.iI.NvidiaOnly],this.displayModeTypes=us.iI,this.displayModeSelected=us.iI.Automatic,this.containerLeftMarginStr="--container-left-margin",this.itemProperty={widthCSSVar:"--display-tile-width-with-padding",heightCSSVar:"--display-tile-height-with-padding-and-hl",marginCSSVar:"--display-tile-margins",maxWidthCSSVar:"--display-tile-max-width",maxHeightCSSVar:"--display-tile-max-height-with-padding-and-hl"},this.isLoading=!0,this.displays=[],this.showDisplayModeDropdown=!1,this.propertiesPanelExpanded=!0,this.scalingPanelExpanded=!1,this.colorsPanelExpanded=!1,this.GlobalGsyncState=us.nX,this.destroy$=new fo.B7,this.logger=b.getLogger("nvapp/DisplaysPageComponent")}gsyncDisplayDialogLinkClicked(){this.displaysService.gsyncLinkClicked()}ngOnInit(){this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppDisplaysRouteNavigationEnd,cn.mM.NvAppDisplaysDataFetchStart],cn.fR.SystemDisplays),this.displaysService.globalGsyncInfo.pipe((0,pr.Q)(this.destroy$)).subscribe(b=>{this.gsyncGlobalState=b.globalGsyncState,this.showAccordianForGsync=this.gsyncGlobalState!==us.nX.NotAvailable,this.gsyncSelectedStateText=Qs.Fj.get(this.gsyncGlobalState),this.updatePanelSummary()},b=>{this.logger.error("Failed to get global gsync info",b)}),this.displaysService.getDisplays().pipe((0,pr.Q)(this.destroy$)).subscribe(b=>{this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppDisplaysDataFetchEnd,cn.mM.NvAppDisplaysViewRenderStart],cn.fR.SystemDisplays),this.displays=b,this.selectedDisplay=this.displays.find(N=>N.type.isSelected)?.type,this.updatePanelSummary(),this.isLoading=!1,this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppDisplaysViewRenderEnd],cn.fR.SystemDisplays)},b=>{this.logger.error("Failed to get displays info",b),this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppDisplaysDataFetchEnd,cn.mM.NvAppDisplaysViewRenderStart,cn.mM.NvAppDisplaysViewRenderEnd],cn.fR.SystemDisplays)}),this.displaysService.selectedDisplay.pipe((0,xr.M)(b=>{this.selectedDisplay=b,this.selectedCarouselDisplay=Object.assign({},this.displays.find(N=>N.type.isSelected))}),(0,pr.Q)(this.destroy$)).subscribe(Rt.l,b=>{this.logger.error("failed to get selected display",b)})}updatePanelSummary(){const b=[this.translateService.instant(this.gsyncSelectedStateText)];this.showDisplayModeDropdown&&b.push(this.translateService.instant("system.display.globalDisplayModeHeader",{selectedGlobalDisplayModeText:this.displayModeSelected})),this.panelSummary=b.join("  |  ")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}identifyAllDisplayClicked(){this.displaysService.identifyDisplays(!0,[])}onGsyncClicked(){this.matDialog.open(bu,{panelClass:["graphics-setting-modal-container","common-dialog"],autoFocus:!1,hasBackdrop:!0,restoreFocus:!1,data:{gsyncGlobalState:this.gsyncGlobalState}}).afterClosed().pipe((0,ji.s)(1),(0,pr.Q)(this.destroy$),(0,xr.M)(N=>{N&&(this.gsyncGlobalState=N.selectedGSyncOption,this.gsyncSelectedStateText=Qs.Fj.get(N.selectedGSyncOption),this.updatePanelSummary()),this.displaysService.applyGlobalGsync({globalGsyncState:this.gsyncGlobalState})})).subscribe(N=>{this.logger.info("G-Sync setting dialog closed, Global Gsync state selected: ",this.gsyncGlobalState)},N=>{this.logger.error("failed to open G-Sync setting dialog",N)})}onRestoreGsyncClicked(b){b.stopImmediatePropagation(),b.preventDefault(),this.displaysService.restoreGlobalGsyncState(),this.telemetryUtilsService.sendClickEvent(ut.EB.RestoreGlobalDisplaySettings,`${ut.d3.System_Displays}`,!0)}onClickInfoDialogButton(){const b={title:this.translateService.instant("system.display.gSYNC"),description:this.translateService.instant("system.display.globalGsyncInfoDialogDescription"),typicalUsageScenarios:this.translateService.instant("system.display.globalGsyncInfoDialogTypicalUsage")};this.matDialog.open(Rh.Z,{autoFocus:!1,hasBackdrop:!0,restoreFocus:!1,panelClass:["setting-info-modal","dialogPaddingRemove","common-dialog"],data:b}),this.telemetryUtilsService.sendClickEvent(ut.EB.GSyncSettingInfo,`${ut.d3.System_Displays}`,!0)}onLearnMoreClicked(){this.gsyncGlobalState===us.nX.NotAvailable?this.openUpSellDialog():this.onClickInfoDialogButton()}openUpSellDialog(){const b={title:this.translateService.instant("system.display.learnMoreGSYNCDisplays"),description:this.translateService.instant("system.display.gsyncInfo"),link:{text:"system.display.viewGSyncDisplays",linkClickedCallback:this.gsyncDisplayDialogLinkClicked.bind(this)}};this.settingInfoModalService.openDialogWithData(b),this.telemetryUtilsService.sendClickEvent(ut.EB.GSyncUpsellDialog,`${ut.d3.System_Displays}`,!0)}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(yo.R),n.rXU(Xr.c$),n.rXU(gr.M),n.rXU(go.bZ),n.rXU(Ud.P),n.rXU(ut.AY))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-displays-page"]],decls:3,vars:2,consts:[["displaysData",""],["displayPageMenu","matMenu"],[4,"ngIf","ngIfElse"],[1,"flex-col","gap-16","margin-top-16","margin-bottom-16"],[1,"flex-row","justify-content-space-between","margin-left-24"],[1,"font-sub1","font-color-primary"],["mat-button","",1,"more-icon-button","margin-right-16",3,"matMenuTriggerFor"],["svgIcon","more_vert",1,"material-icons"],["xPosition","before"],["mat-menu-item","",3,"click"],["class","margin-left-24 gap-8 gsync-not-available-container",4,"ngIf"],["displayMode","flat","class","margin-left-24",4,"ngIf"],[1,"font-sub1","font-color-primary","margin-left-24"],[1,"flex-col","gap-8"],[3,"displays","itemProperty","containerLeftMarginStr","selectedCarouselDisplay",4,"ngIf"],["multi","","displayMode","flat","id","displays-page-accordion","class","margin-left-24",4,"ngIf"],[1,"margin-left-24","gap-8","gsync-not-available-container"],[1,"gsync-not-available-text-container"],[1,"global-settings-grid","gap-16"],[1,"flex-row","gap-8","gsync-dropdown"],[1,"flex-row","gap-8","setting-info-icon-container"],[1,"font-body2","font-color-secondary"],[1,"link"],[1,"font-body2-link",3,"click"],["displayMode","flat",1,"margin-left-24"],[1,"ex-panel-margin"],["hideToggle","true",1,"displays-expansion-panel",3,"expandedChange","expanded","ngClass"],[3,"collapsedHeight","expandedHeight"],[1,"flex-row","accordion-header","hig-button-overlay","justify-content-space-between","align-items-center",3,"ngClass"],[1,"flex-col"],["class","font-body2 font-color-secondary panel-summary",4,"ngIf"],["class","font-body2 font-color-secondary",4,"ngIf"],[1,"flex-row","align-items-center"],["mat-button","","class","font-button2 restore-button",3,"click",4,"ngIf"],["svgIcon","chevron_down",4,"ngIf"],["svgIcon","chevron_up",4,"ngIf"],[1,"global-settings-grid","gap-16","margin-top-16","margin-bottom-16"],["class","flex-row gap-8 setting-info-icon-container",4,"ngIf"],["mat-button","","class","font-body2 gsync-button",3,"click",4,"ngIf"],[1,"font-body2","font-color-secondary","panel-summary"],["mat-button","",1,"font-button2","restore-button",3,"click"],["svgIcon","chevron_down"],["svgIcon","chevron_up"],["mat-button","",1,"font-body2","gsync-button",3,"click"],[1,"flex-row","justify-content-space-between","align-items-center"],["svgIcon","edit_settings",1,"material-icons"],[3,"displays","itemProperty","containerLeftMarginStr","selectedCarouselDisplay"],["multi","","displayMode","flat","id","displays-page-accordion",1,"margin-left-24"],[3,"isExpanded","displayData","gsyncGlobalState"]],template:function(b,N){if(1&b&&n.DNE(0,Sg,1,0,"nv-app-page-load-spinner",2)(1,xp,20,14,"ng-template",null,0,n.C5r),2&b){const Ce=n.sdS(2);n.Y8G("ngIf",N.isLoading)("ngIfElse",Ce)}},dependencies:[$i.YU,$i.bT,zn.tG,Ur.iV,ds.An,pi.q,cl.pI,cl.gy,cl.fS,Gc.BS,Gc.GK,Gc.Z2,fs.PW,cr.Q,Cf,yg,Xr.D9],styles:[".panel-summary[_ngcontent-%COMP%]{white-space:pre-wrap}.ex-panel-margin[_ngcontent-%COMP%]{margin:8px 0}.ex-panel-bg[_ngcontent-%COMP%]{background-color:#222}.dark-divider[_ngcontent-%COMP%]{border-top-color:#191919}.bottom-divider[_ngcontent-%COMP%]{border-bottom:1px solid #191919}.disable-mat-select-trigger[_ngcontent-%COMP%]{opacity:.38}",'[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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))}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.system-display-box[_ngcontent-%COMP%]{box-sizing:border-box;border:1.5px solid rgba(255,255,255,.9);display:flex;width:26px;height:20px;flex-direction:row;align-self:center;justify-content:center;align-items:center}.displays-chip[_ngcontent-%COMP%]{height:32px;border:1px solid rgba(255,255,255,.7);border-radius:0;padding:6px 12px;background-color:transparent;cursor:pointer}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary[_ngcontent-%COMP%]{background-color:#ffffff4d}.accordion-padding[_ngcontent-%COMP%]{padding:14px 0}.accordion-header[_ngcontent-%COMP%]{padding:14px 16px;width:100%}.accordion-header[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#ffffffe6}.global-dropdown-width[_ngcontent-%COMP%]{width:385px}.gsync-button[_ngcontent-%COMP%]{background-color:#292929;padding:6px 16px;text-transform:none;width:100%}.info-icon[_ngcontent-%COMP%]{margin-top:4px;width:16px;height:16px}.ex-panel-margin[_ngcontent-%COMP%]{margin:8px 0}.more-icon-button[_ngcontent-%COMP%]{padding:0;min-width:24px;height:24px}.global-settings-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-template-areas:"gsyncDropdown displayModeDropDown"}.gsync-dropdown[_ngcontent-%COMP%]{grid-area:gsyncDropdown;align-items:center}.display-mode-dropdown[_ngcontent-%COMP%]{grid-area:displayModeDropDown}#displays-page-accordion[_ngcontent-%COMP%]   .mat-expansion-panel[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.restore-button[_ngcontent-%COMP%]{margin-right:8px}.gsync-not-available-text-container[_ngcontent-%COMP%]{padding:14px 16px}.gsync-not-available-container[_ngcontent-%COMP%]{display:grid}',".margin-0[_ngcontent-%COMP%]{margin:0}.padding-0[_ngcontent-%COMP%]{padding:0}.gap-0[_ngcontent-%COMP%]{gap:0px}.margin-top-0[_ngcontent-%COMP%]{margin-top:0}.padding-top-0[_ngcontent-%COMP%]{padding-top:0}.margin-bottom-0[_ngcontent-%COMP%]{margin-bottom:0}.padding-bottom-0[_ngcontent-%COMP%]{padding-bottom:0}.margin-left-0[_ngcontent-%COMP%]{margin-left:0}.padding-left-0[_ngcontent-%COMP%]{padding-left:0}.margin-right-0[_ngcontent-%COMP%]{margin-right:0}.padding-right-0[_ngcontent-%COMP%]{padding-right:0}.margin-4[_ngcontent-%COMP%]{margin:4px}.padding-4[_ngcontent-%COMP%]{padding:4px}.gap-4[_ngcontent-%COMP%]{gap:4px}.margin-top-4[_ngcontent-%COMP%]{margin-top:4px}.padding-top-4[_ngcontent-%COMP%]{padding-top:4px}.margin-bottom-4[_ngcontent-%COMP%]{margin-bottom:4px}.padding-bottom-4[_ngcontent-%COMP%]{padding-bottom:4px}.margin-left-4[_ngcontent-%COMP%]{margin-left:4px}.padding-left-4[_ngcontent-%COMP%]{padding-left:4px}.margin-right-4[_ngcontent-%COMP%]{margin-right:4px}.padding-right-4[_ngcontent-%COMP%]{padding-right:4px}.margin-8[_ngcontent-%COMP%]{margin:8px}.padding-8[_ngcontent-%COMP%]{padding:8px}.gap-8[_ngcontent-%COMP%]{gap:8px}.margin-top-8[_ngcontent-%COMP%]{margin-top:8px}.padding-top-8[_ngcontent-%COMP%]{padding-top:8px}.margin-bottom-8[_ngcontent-%COMP%]{margin-bottom:8px}.padding-bottom-8[_ngcontent-%COMP%]{padding-bottom:8px}.margin-left-8[_ngcontent-%COMP%]{margin-left:8px}.padding-left-8[_ngcontent-%COMP%]{padding-left:8px}.margin-right-8[_ngcontent-%COMP%]{margin-right:8px}.padding-right-8[_ngcontent-%COMP%]{padding-right:8px}.margin-10[_ngcontent-%COMP%]{margin:10px}.padding-10[_ngcontent-%COMP%]{padding:10px}.gap-10[_ngcontent-%COMP%]{gap:10px}.margin-top-10[_ngcontent-%COMP%]{margin-top:10px}.padding-top-10[_ngcontent-%COMP%]{padding-top:10px}.margin-bottom-10[_ngcontent-%COMP%]{margin-bottom:10px}.padding-bottom-10[_ngcontent-%COMP%]{padding-bottom:10px}.margin-left-10[_ngcontent-%COMP%]{margin-left:10px}.padding-left-10[_ngcontent-%COMP%]{padding-left:10px}.margin-right-10[_ngcontent-%COMP%]{margin-right:10px}.padding-right-10[_ngcontent-%COMP%]{padding-right:10px}.margin-12[_ngcontent-%COMP%]{margin:12px}.padding-12[_ngcontent-%COMP%]{padding:12px}.gap-12[_ngcontent-%COMP%]{gap:12px}.margin-top-12[_ngcontent-%COMP%]{margin-top:12px}.padding-top-12[_ngcontent-%COMP%]{padding-top:12px}.margin-bottom-12[_ngcontent-%COMP%]{margin-bottom:12px}.padding-bottom-12[_ngcontent-%COMP%]{padding-bottom:12px}.margin-left-12[_ngcontent-%COMP%]{margin-left:12px}.padding-left-12[_ngcontent-%COMP%]{padding-left:12px}.margin-right-12[_ngcontent-%COMP%]{margin-right:12px}.padding-right-12[_ngcontent-%COMP%]{padding-right:12px}.margin-16[_ngcontent-%COMP%]{margin:16px}.padding-16[_ngcontent-%COMP%]{padding:16px}.gap-16[_ngcontent-%COMP%]{gap:16px}.margin-top-16[_ngcontent-%COMP%]{margin-top:16px}.padding-top-16[_ngcontent-%COMP%]{padding-top:16px}.margin-bottom-16[_ngcontent-%COMP%]{margin-bottom:16px}.padding-bottom-16[_ngcontent-%COMP%]{padding-bottom:16px}.margin-left-16[_ngcontent-%COMP%]{margin-left:16px}.padding-left-16[_ngcontent-%COMP%]{padding-left:16px}.margin-right-16[_ngcontent-%COMP%]{margin-right:16px}.padding-right-16[_ngcontent-%COMP%]{padding-right:16px}.margin-20[_ngcontent-%COMP%]{margin:20px}.padding-20[_ngcontent-%COMP%]{padding:20px}.gap-20[_ngcontent-%COMP%]{gap:20px}.margin-top-20[_ngcontent-%COMP%]{margin-top:20px}.padding-top-20[_ngcontent-%COMP%]{padding-top:20px}.margin-bottom-20[_ngcontent-%COMP%]{margin-bottom:20px}.padding-bottom-20[_ngcontent-%COMP%]{padding-bottom:20px}.margin-left-20[_ngcontent-%COMP%]{margin-left:20px}.padding-left-20[_ngcontent-%COMP%]{padding-left:20px}.margin-right-20[_ngcontent-%COMP%]{margin-right:20px}.padding-right-20[_ngcontent-%COMP%]{padding-right:20px}.margin-24[_ngcontent-%COMP%]{margin:24px}.padding-24[_ngcontent-%COMP%]{padding:24px}.gap-24[_ngcontent-%COMP%]{gap:24px}.margin-top-24[_ngcontent-%COMP%]{margin-top:24px}.padding-top-24[_ngcontent-%COMP%]{padding-top:24px}.margin-bottom-24[_ngcontent-%COMP%]{margin-bottom:24px}.padding-bottom-24[_ngcontent-%COMP%]{padding-bottom:24px}.margin-left-24[_ngcontent-%COMP%]{margin-left:24px}.padding-left-24[_ngcontent-%COMP%]{padding-left:24px}.margin-right-24[_ngcontent-%COMP%]{margin-right:24px}.padding-right-24[_ngcontent-%COMP%]{padding-right:24px}.margin-32[_ngcontent-%COMP%]{margin:32px}.padding-32[_ngcontent-%COMP%]{padding:32px}.gap-32[_ngcontent-%COMP%]{gap:32px}.margin-top-32[_ngcontent-%COMP%]{margin-top:32px}.padding-top-32[_ngcontent-%COMP%]{padding-top:32px}.margin-bottom-32[_ngcontent-%COMP%]{margin-bottom:32px}.padding-bottom-32[_ngcontent-%COMP%]{padding-bottom:32px}.margin-left-32[_ngcontent-%COMP%]{margin-left:32px}.padding-left-32[_ngcontent-%COMP%]{padding-left:32px}.margin-right-32[_ngcontent-%COMP%]{margin-right:32px}.padding-right-32[_ngcontent-%COMP%]{padding-right:32px}.margin-36[_ngcontent-%COMP%]{margin:36px}.padding-36[_ngcontent-%COMP%]{padding:36px}.gap-36[_ngcontent-%COMP%]{gap:36px}.margin-top-36[_ngcontent-%COMP%]{margin-top:36px}.padding-top-36[_ngcontent-%COMP%]{padding-top:36px}.margin-bottom-36[_ngcontent-%COMP%]{margin-bottom:36px}.padding-bottom-36[_ngcontent-%COMP%]{padding-bottom:36px}.margin-left-36[_ngcontent-%COMP%]{margin-left:36px}.padding-left-36[_ngcontent-%COMP%]{padding-left:36px}.margin-right-36[_ngcontent-%COMP%]{margin-right:36px}.padding-right-36[_ngcontent-%COMP%]{padding-right:36px}.flex-row[_ngcontent-%COMP%]{display:flex}.flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.justify-content-space-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.align-items-center[_ngcontent-%COMP%]{align-items:center}.flex-none[_ngcontent-%COMP%]{flex:none}"]}),$})();var Bh=c(90093),Xu=c(43780);function Jg(F,$){if(1&F){const U=n.RV6();n.j41(0,"a",18),n.bIt("click",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.openWindowsSettings())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&F&&(n.R7$(),n.JRh(n.bMT(2,1,"common.change")))}function Vh(F,$){if(1&F&&(n.j41(0,"div",15),n.nrm(1,"mat-icon",16),n.j41(2,"span",10),n.EFF(3),n.DNE(4,Jg,3,3,"a",17),n.k0s()()),2&F){const U=n.XpG();n.R7$(3),n.SpI("",U.errorString," "),n.R7$(),n.Y8G("ngIf",U.oldState.errorCode===U.hdrErrors.ENABLE_HDR_FROM_WINDOWS)}}function Eg(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",9)(1,"span",10),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"nv-hig-slider",11),n.mxI("valueChange",function(N){n.eBV(U);const Ce=n.XpG();return n.DH7(Ce.newState.peakBrightness,N)||(Ce.newState.peakBrightness=N),n.Njj(N)}),n.bIt("input",function(N){n.eBV(U);const Ce=n.XpG();return n.Njj(Ce.onPeakBrightnessChange(N))}),n.k0s()()}if(2&F){const U=n.XpG();n.R7$(2),n.JRh(n.bMT(3,6,"manage3dSettings.AIHDR.peakBrightness")),n.R7$(2),n.R50("value",U.newState.peakBrightness),n.Y8G("min",U.oldState.minPeakBrightness)("max",U.oldState.maxPeakBrightness)("step",U.sliderStepSize)("disabled",U.oldState.errorCode!==U.hdrErrors.SUCCESS||!U.newState.isEnabled)}}function wf(F,$){if(1&F&&(n.j41(0,"div",19),n.nrm(1,"mat-icon",16),n.j41(2,"span",10),n.EFF(3),n.k0s()()),2&F){const U=n.XpG();n.R7$(3),n.JRh(U.statusString)}}function Mg(F,$){if(1&F){const U=n.RV6();n.j41(0,"div")(1,"button",20),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onCancelClick())}),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"button",21),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onOkClick())}),n.EFF(5),n.nI1(6,"translate"),n.k0s()()}2&F&&(n.R7$(2),n.SpI(" ",n.bMT(3,2,"save.cancel")," "),n.R7$(3),n.SpI(" ",n.bMT(6,4,"common.ok")," "))}function qg(F,$){if(1&F){const U=n.RV6();n.j41(0,"div")(1,"button",20),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onCancelClick())}),n.EFF(2),n.nI1(3,"translate"),n.k0s()()}2&F&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"common.close")," "))}let Xc=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn,x,k){this.dialogRef=N,this.preferencesService=Ce,this.videoService=Jt,this.translate=wn,this.errorHandlerService=x,this.telemetryService=k,this.statusString="",this.errorString="",this.hdrErrors=Ha,this.destroy$=new fo.B7,this.throttle$=new fo.B7,this.isDirty=!1,this.setSettingInProcess=!1,this.peakBrightnessMaxRenderThreshold=400,this.middleGraySliderMin=10,this.middleGraySliderMax=100,this.saturationContrastMin=-100,this.saturationContrastMax=100,this.sliderStepSize=1,this.logger=b.getLogger("nvapp/HdrDialogComponent"),this.oldState={...ft},this.newState={...ft},this.logger.info("Initialized with:",ft)}ngOnInit(){this.videoService.hdrStatus$.pipe((0,pr.Q)(this.destroy$),(0,xr.M)(b=>{this.statusString=this.translate.instant(Fc,{status:this.translate.instant(b?hu:ja)})})).subscribe(Rt.l,Rt.l),this.videoService.hdrInfo$.pipe((0,xr.M)(b=>{this.oldState.errorCode=b.errorCode,this.errorString=this.translate.instant(Ta.get(this.oldState.errorCode))}),(0,pr.Q)(this.destroy$)).subscribe(Rt.l,Rt.l),this.throttle$.asObservable().pipe((0,Xu.c)(200,Bh.E,{leading:!1,trailing:!0}),(0,xr.M)(b=>{this.logger.info("set the HDR setting in backend"),this.videoService.setHdrState(this.newState),this.setSettingInProcess=!1}),(0,pr.Q)(this.destroy$)).subscribe(Rt.l,Rt.l)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onRadioSelectionChange(b){this.newState.isEnabled=b.value,(this.newState.isEnabled!==this.oldState.isEnabled||this.isDirty)&&this.settingChanged()}onPeakBrightnessChange(b){this.newState.peakBrightness=b.value,(this.newState.peakBrightness!==this.oldState.peakBrightness||this.isDirty)&&this.settingChanged()}onMiddleGrayChange(b){this.newState.middleGray=b.value,(this.newState.middleGray!==this.oldState.middleGray||this.isDirty)&&this.settingChanged()}onContrastChange(b){this.newState.contrast=b.value,(this.newState.contrast!==this.oldState.contrast||this.isDirty)&&this.settingChanged()}onSaturationChange(b){this.newState.saturation=b.value,(this.newState.saturation!==this.oldState.saturation||this.isDirty)&&this.settingChanged()}openWindowsSettings(){this.logger.info("Windows settings link clicked"),this.preferencesService.openWindowsNotifications(kr.Or.Nvapp.Localgames.PageId.Display).pipe((0,pr.Q)(this.destroy$)).subscribe(Rt.l,b=>{this.logger.error("Error opening Windows Display Settings",b),(b?.code===fn.Qq||b instanceof gs.n)&&this.errorHandlerService.showOptionalPluginFailErrorToast()})}onOkClick(){this.logger.info("Apply button clicked"),this.isDirty&&!this.setSettingInProcess?this.commitSetting():JSON.stringify(this.newState)!==JSON.stringify(this.oldState)&&(this.logger.info("set the settings and then commit"),this.videoService.setHdrState(this.newState),this.commitSetting()),this.dialogRef.close()}onCancelClick(){this.logger.info("Cancel button clicked"),this.videoService.cancelStateChange(this.videoService.getHdrInfo()),this.dialogRef.close()}sendTelemetry(){const b={hierarchy:this.videoService.getHierarchy(),isEnabled:this.newState.isEnabled?ut.T8.TRUE:ut.T8.FALSE,peakBrightness:this.newState.peakBrightness,minPeakBrightness:this.newState.maxPeakBrightness,maxPeakBrightness:this.newState.minPeakBrightness,middleGray:this.newState.middleGray,saturation:this.newState.saturation,contrast:this.newState.contrast};this.telemetryService.push(new ut.IU(b))}settingChanged(){this.isDirty=!0,this.setSettingInProcess=!0,this.logger.info("setting change in progress"),this.throttle$.next()}commitSetting(){this.logger.info("Settings changed, applying new settings:",this.newState),this.videoService.applyStateChange(this.videoService.getHdrInfo()),this.sendTelemetry()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(go.CP),n.rXU(ai.N),n.rXU(go.Vh),n.rXU(gd),n.rXU(Xr.c$),n.rXU($r.c),n.rXU(Or.H0))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-hdr-dialog"]],decls:36,vars:45,consts:[[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content","margin-top-4"],["class","flex-row gap-8 align-items-center padding-left-16 padding-right-16 margin-bottom-16 margin-left-4",4,"ngIf"],[1,"flex-col","padding-left-8","padding-right-16",3,"change","disabled"],[3,"checked","value"],[1,"font-body1",3,"ngClass"],[1,"flex-col","gap-16","padding-right-16","hdr-sliders"],["class","flex-col gap-10",4,"ngIf"],[1,"flex-col","gap-10"],[1,"font-body2"],["formatTextAs","integer","valueEntry","true",3,"valueChange","input","value","min","max","step","disabled"],["class","flex-row gap-8 align-items-center",4,"ngIf"],["align","end",1,"actions"],[4,"ngIf"],[1,"flex-row","gap-8","align-items-center","padding-left-16","padding-right-16","margin-bottom-16","margin-left-4"],["svgIcon","info",1,"font-body2","info-icon"],["class","font-body2-link",3,"click",4,"ngIf"],[1,"font-body2-link",3,"click"],[1,"flex-row","gap-8","align-items-center"],["mat-button","",1,"cancel-button","font-button2",3,"click"],["mat-button","",1,"apply-button","font-button2",3,"click"]],template:function(b,N){1&b&&(n.j41(0,"div",0)(1,"span",1),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"mat-dialog-content",2),n.DNE(5,Vh,5,2,"div",3),n.j41(6,"mat-radio-group",4),n.bIt("change",function(ft){return N.onRadioSelectionChange(ft)}),n.j41(7,"mat-radio-button",5)(8,"div",6),n.EFF(9),n.nI1(10,"translate"),n.k0s()(),n.j41(11,"mat-radio-button",5)(12,"div",6),n.EFF(13),n.nI1(14,"translate"),n.k0s()()(),n.j41(15,"div",7),n.DNE(16,Eg,5,8,"div",8),n.j41(17,"div",9)(18,"span",10),n.EFF(19),n.nI1(20,"translate"),n.k0s(),n.j41(21,"nv-hig-slider",11),n.mxI("valueChange",function(ft){return n.DH7(N.newState.middleGray,ft)||(N.newState.middleGray=ft),ft}),n.bIt("input",function(ft){return N.onMiddleGrayChange(ft)}),n.k0s()(),n.j41(22,"div",9)(23,"span",10),n.EFF(24),n.nI1(25,"translate"),n.k0s(),n.j41(26,"nv-hig-slider",11),n.mxI("valueChange",function(ft){return n.DH7(N.newState.contrast,ft)||(N.newState.contrast=ft),ft}),n.bIt("input",function(ft){return N.onContrastChange(ft)}),n.k0s()(),n.j41(27,"div",9)(28,"span",10),n.EFF(29),n.nI1(30,"translate"),n.k0s(),n.j41(31,"nv-hig-slider",11),n.mxI("valueChange",function(ft){return n.DH7(N.newState.saturation,ft)||(N.newState.saturation=ft),ft}),n.bIt("input",function(ft){return N.onSaturationChange(ft)}),n.k0s()(),n.DNE(32,wf,4,1,"div",12),n.k0s()(),n.j41(33,"mat-dialog-actions",13),n.DNE(34,Mg,7,6,"div",14)(35,qg,4,3,"div",14),n.k0s()()),2&b&&(n.R7$(2),n.JRh(n.bMT(3,33,"system.video.highDynamicRange")),n.R7$(3),n.Y8G("ngIf",N.oldState.errorCode!==N.hdrErrors.SUCCESS),n.R7$(),n.Y8G("disabled",N.oldState.errorCode!==N.hdrErrors.SUCCESS),n.R7$(),n.Y8G("checked",!N.newState.isEnabled)("value",!1),n.R7$(),n.Y8G("ngClass",N.newState.isEnabled||N.oldState.errorCode!==N.hdrErrors.SUCCESS?"":"selected-text"),n.R7$(),n.SpI(" ",n.bMT(10,35,"common.off")," "),n.R7$(2),n.Y8G("checked",N.newState.isEnabled)("value",!0),n.R7$(),n.Y8G("ngClass",N.newState.isEnabled&&N.oldState.errorCode===N.hdrErrors.SUCCESS?"selected-text":""),n.R7$(),n.SpI(" ",n.bMT(14,37,"common.on")," "),n.R7$(3),n.Y8G("ngIf",N.newState.maxPeakBrightness>N.peakBrightnessMaxRenderThreshold),n.R7$(3),n.JRh(n.bMT(20,39,"manage3dSettings.AIHDR.middleGrey")),n.R7$(2),n.R50("value",N.newState.middleGray),n.Y8G("min",N.middleGraySliderMin)("max",N.middleGraySliderMax)("step",N.sliderStepSize)("disabled",N.oldState.errorCode!==N.hdrErrors.SUCCESS||!N.newState.isEnabled),n.R7$(3),n.JRh(n.bMT(25,41,"manage3dSettings.AIHDR.contrast")),n.R7$(2),n.R50("value",N.newState.contrast),n.Y8G("min",N.saturationContrastMin)("max",N.saturationContrastMax)("step",N.sliderStepSize)("disabled",N.oldState.errorCode!==N.hdrErrors.SUCCESS||!N.newState.isEnabled),n.R7$(3),n.JRh(n.bMT(30,43,"manage3dSettings.AIHDR.saturation")),n.R7$(2),n.R50("value",N.newState.saturation),n.Y8G("min",N.saturationContrastMin)("max",N.saturationContrastMax)("step",N.sliderStepSize)("disabled",N.oldState.errorCode!==N.hdrErrors.SUCCESS||!N.newState.isEnabled),n.R7$(),n.Y8G("ngIf",N.oldState.errorCode===N.hdrErrors.SUCCESS&&N.statusString),n.R7$(2),n.Y8G("ngIf",N.oldState.errorCode===N.hdrErrors.SUCCESS),n.R7$(),n.Y8G("ngIf",N.oldState.errorCode!==N.hdrErrors.SUCCESS))},dependencies:[$i.YU,$i.bT,Yu.t,zn.tG,Ur.iV,ds.An,go.BI,go.Yi,go.E7,_d.VT,_d._g,fs.PW,Xr.D9],styles:["mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 8px}mat-radio-group[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]{height:48px;display:flex}.info-icon[_ngcontent-%COMP%]{width:16px;height:16px}.selected-text[_ngcontent-%COMP%]{color:#76b900}.hdr-sliders[_ngcontent-%COMP%]{margin-left:52px;margin-top:10px}",".margin-0[_ngcontent-%COMP%]{margin:0}.padding-0[_ngcontent-%COMP%]{padding:0}.gap-0[_ngcontent-%COMP%]{gap:0px}.margin-top-0[_ngcontent-%COMP%]{margin-top:0}.padding-top-0[_ngcontent-%COMP%]{padding-top:0}.margin-bottom-0[_ngcontent-%COMP%]{margin-bottom:0}.padding-bottom-0[_ngcontent-%COMP%]{padding-bottom:0}.margin-left-0[_ngcontent-%COMP%]{margin-left:0}.padding-left-0[_ngcontent-%COMP%]{padding-left:0}.margin-right-0[_ngcontent-%COMP%]{margin-right:0}.padding-right-0[_ngcontent-%COMP%]{padding-right:0}.margin-4[_ngcontent-%COMP%]{margin:4px}.padding-4[_ngcontent-%COMP%]{padding:4px}.gap-4[_ngcontent-%COMP%]{gap:4px}.margin-top-4[_ngcontent-%COMP%]{margin-top:4px}.padding-top-4[_ngcontent-%COMP%]{padding-top:4px}.margin-bottom-4[_ngcontent-%COMP%]{margin-bottom:4px}.padding-bottom-4[_ngcontent-%COMP%]{padding-bottom:4px}.margin-left-4[_ngcontent-%COMP%]{margin-left:4px}.padding-left-4[_ngcontent-%COMP%]{padding-left:4px}.margin-right-4[_ngcontent-%COMP%]{margin-right:4px}.padding-right-4[_ngcontent-%COMP%]{padding-right:4px}.margin-8[_ngcontent-%COMP%]{margin:8px}.padding-8[_ngcontent-%COMP%]{padding:8px}.gap-8[_ngcontent-%COMP%]{gap:8px}.margin-top-8[_ngcontent-%COMP%]{margin-top:8px}.padding-top-8[_ngcontent-%COMP%]{padding-top:8px}.margin-bottom-8[_ngcontent-%COMP%]{margin-bottom:8px}.padding-bottom-8[_ngcontent-%COMP%]{padding-bottom:8px}.margin-left-8[_ngcontent-%COMP%]{margin-left:8px}.padding-left-8[_ngcontent-%COMP%]{padding-left:8px}.margin-right-8[_ngcontent-%COMP%]{margin-right:8px}.padding-right-8[_ngcontent-%COMP%]{padding-right:8px}.margin-10[_ngcontent-%COMP%]{margin:10px}.padding-10[_ngcontent-%COMP%]{padding:10px}.gap-10[_ngcontent-%COMP%]{gap:10px}.margin-top-10[_ngcontent-%COMP%]{margin-top:10px}.padding-top-10[_ngcontent-%COMP%]{padding-top:10px}.margin-bottom-10[_ngcontent-%COMP%]{margin-bottom:10px}.padding-bottom-10[_ngcontent-%COMP%]{padding-bottom:10px}.margin-left-10[_ngcontent-%COMP%]{margin-left:10px}.padding-left-10[_ngcontent-%COMP%]{padding-left:10px}.margin-right-10[_ngcontent-%COMP%]{margin-right:10px}.padding-right-10[_ngcontent-%COMP%]{padding-right:10px}.margin-12[_ngcontent-%COMP%]{margin:12px}.padding-12[_ngcontent-%COMP%]{padding:12px}.gap-12[_ngcontent-%COMP%]{gap:12px}.margin-top-12[_ngcontent-%COMP%]{margin-top:12px}.padding-top-12[_ngcontent-%COMP%]{padding-top:12px}.margin-bottom-12[_ngcontent-%COMP%]{margin-bottom:12px}.padding-bottom-12[_ngcontent-%COMP%]{padding-bottom:12px}.margin-left-12[_ngcontent-%COMP%]{margin-left:12px}.padding-left-12[_ngcontent-%COMP%]{padding-left:12px}.margin-right-12[_ngcontent-%COMP%]{margin-right:12px}.padding-right-12[_ngcontent-%COMP%]{padding-right:12px}.margin-16[_ngcontent-%COMP%]{margin:16px}.padding-16[_ngcontent-%COMP%]{padding:16px}.gap-16[_ngcontent-%COMP%]{gap:16px}.margin-top-16[_ngcontent-%COMP%]{margin-top:16px}.padding-top-16[_ngcontent-%COMP%]{padding-top:16px}.margin-bottom-16[_ngcontent-%COMP%]{margin-bottom:16px}.padding-bottom-16[_ngcontent-%COMP%]{padding-bottom:16px}.margin-left-16[_ngcontent-%COMP%]{margin-left:16px}.padding-left-16[_ngcontent-%COMP%]{padding-left:16px}.margin-right-16[_ngcontent-%COMP%]{margin-right:16px}.padding-right-16[_ngcontent-%COMP%]{padding-right:16px}.margin-20[_ngcontent-%COMP%]{margin:20px}.padding-20[_ngcontent-%COMP%]{padding:20px}.gap-20[_ngcontent-%COMP%]{gap:20px}.margin-top-20[_ngcontent-%COMP%]{margin-top:20px}.padding-top-20[_ngcontent-%COMP%]{padding-top:20px}.margin-bottom-20[_ngcontent-%COMP%]{margin-bottom:20px}.padding-bottom-20[_ngcontent-%COMP%]{padding-bottom:20px}.margin-left-20[_ngcontent-%COMP%]{margin-left:20px}.padding-left-20[_ngcontent-%COMP%]{padding-left:20px}.margin-right-20[_ngcontent-%COMP%]{margin-right:20px}.padding-right-20[_ngcontent-%COMP%]{padding-right:20px}.margin-24[_ngcontent-%COMP%]{margin:24px}.padding-24[_ngcontent-%COMP%]{padding:24px}.gap-24[_ngcontent-%COMP%]{gap:24px}.margin-top-24[_ngcontent-%COMP%]{margin-top:24px}.padding-top-24[_ngcontent-%COMP%]{padding-top:24px}.margin-bottom-24[_ngcontent-%COMP%]{margin-bottom:24px}.padding-bottom-24[_ngcontent-%COMP%]{padding-bottom:24px}.margin-left-24[_ngcontent-%COMP%]{margin-left:24px}.padding-left-24[_ngcontent-%COMP%]{padding-left:24px}.margin-right-24[_ngcontent-%COMP%]{margin-right:24px}.padding-right-24[_ngcontent-%COMP%]{padding-right:24px}.margin-32[_ngcontent-%COMP%]{margin:32px}.padding-32[_ngcontent-%COMP%]{padding:32px}.gap-32[_ngcontent-%COMP%]{gap:32px}.margin-top-32[_ngcontent-%COMP%]{margin-top:32px}.padding-top-32[_ngcontent-%COMP%]{padding-top:32px}.margin-bottom-32[_ngcontent-%COMP%]{margin-bottom:32px}.padding-bottom-32[_ngcontent-%COMP%]{padding-bottom:32px}.margin-left-32[_ngcontent-%COMP%]{margin-left:32px}.padding-left-32[_ngcontent-%COMP%]{padding-left:32px}.margin-right-32[_ngcontent-%COMP%]{margin-right:32px}.padding-right-32[_ngcontent-%COMP%]{padding-right:32px}.margin-36[_ngcontent-%COMP%]{margin:36px}.padding-36[_ngcontent-%COMP%]{padding:36px}.gap-36[_ngcontent-%COMP%]{gap:36px}.margin-top-36[_ngcontent-%COMP%]{margin-top:36px}.padding-top-36[_ngcontent-%COMP%]{padding-top:36px}.margin-bottom-36[_ngcontent-%COMP%]{margin-bottom:36px}.padding-bottom-36[_ngcontent-%COMP%]{padding-bottom:36px}.margin-left-36[_ngcontent-%COMP%]{margin-left:36px}.padding-left-36[_ngcontent-%COMP%]{padding-left:36px}.margin-right-36[_ngcontent-%COMP%]{margin-right:36px}.padding-right-36[_ngcontent-%COMP%]{padding-right:36px}.flex-row[_ngcontent-%COMP%]{display:flex}.flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.justify-content-space-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.align-items-center[_ngcontent-%COMP%]{align-items:center}.flex-none[_ngcontent-%COMP%]{flex:none}"]}),$})();function Ql(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",17),n.bIt("click",function(){const N=n.eBV(U).$implicit,Ce=n.XpG();return n.Njj(Ce.selectQuality(N.value))}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&F){const U=$.$implicit,b=n.XpG();n.Y8G("ngClass",(null==b.newState?null:b.newState.quality)===(null==U?null:U.value)?"selected":""),n.R7$(),n.SpI(" ",n.bMT(2,2,U.label)," ")}}function Dp(F,$){if(1&F&&(n.j41(0,"div",18),n.nrm(1,"mat-icon",19),n.j41(2,"span",8),n.EFF(3),n.k0s()()),2&F){const U=n.XpG();n.R7$(3),n.JRh(U.statusString)}}let Gh=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn){this.dialogRef=N,this.videoService=ft,this.translate=Jt,this.telemetryService=wn,this.qualityOptions=Uc.map(x=>({label:fd.get(x),value:x})),this.selectedQualityString="",this.statusString="",this.destroy$=new fo.B7,this.throttle$=new fo.B7,this.isDirty=!1,this.logger=b.getLogger("nvapp/VsrDialogComponent"),this.oldState={...Ce},this.newState={...Ce},this.selectedQualityString=fd.get(this.newState.quality)??fd.get(Po.SuperResValue_Auto),this.logger.info("Initialized with:",Ce)}ngOnInit(){this.videoService.vsrStatus$.pipe((0,pr.Q)(this.destroy$),(0,xr.M)(b=>{this.statusString=this.translate.instant(Fc,{status:this.translate.instant(b.isActive?hu:ja)})})).subscribe(Rt.l,Rt.l),this.throttle$.asObservable().pipe((0,Xu.c)(200,Bh.E,{leading:!1,trailing:!0}),(0,xr.M)(b=>{this.newState.quality=this.newState.isEnabled?this.newState.quality===Po.SuperResValue_Off?Po.SuperResValue_Auto:this.newState.quality:Po.SuperResValue_Off,this.videoService.setVsrState(this.newState)}),(0,pr.Q)(this.destroy$)).subscribe(Rt.l,Rt.l)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onRadioSelectionChange(b){this.newState.isEnabled=b.value,this.settingChanged()}selectQuality(b){this.newState.quality=b,this.selectedQualityString=fd.get(b),this.settingChanged()}onApplyClick(){this.logger.info("Apply button clicked"),this.isDirty&&(this.logger.info("Settings changed, applying new settings:",this.newState),this.videoService.applyStateChange(this.videoService.getVsrInfo()),this.sendTelemetry()),this.dialogRef.close()}onCancelClick(){this.logger.info("Cancel button clicked"),this.videoService.cancelStateChange(this.videoService.getVsrInfo()),this.dialogRef.close()}sendTelemetry(){const b={hierarchy:this.videoService.getHierarchy(),isEnabled:this.newState.isEnabled?ut.T8.TRUE:ut.T8.FALSE,quality:bc(this.newState.quality)};this.telemetryService.push(new ut.vK(b))}settingChanged(){this.isDirty=!0,this.throttle$.next()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(go.CP),n.rXU(go.Vh),n.rXU(gd),n.rXU(Xr.c$),n.rXU(Or.H0))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-vsr-dialog"]],decls:34,vars:31,consts:[["qualityDropdown","matMenu"],[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content","margin-top-4"],[1,"flex-col","padding-left-8","padding-right-16",3,"change"],[3,"checked","value"],[1,"font-body1",3,"ngClass"],[1,"flex-row","align-items-center","justify-content-space-between","margin-top-10","quality-container"],[1,"font-body2"],["mat-button","",1,"flex-row","align-items-center","quality-dropdown",3,"matMenuTriggerFor","disabled"],["svgIcon","carrot_down",1,"font-body2","dropdown-icon"],["xPosition","before"],["mat-menu-item","",3,"ngClass","click",4,"ngFor","ngForOf"],["class","flex-row gap-8 align-items-center margin-top-16 quality-container",4,"ngIf"],["align","end",1,"actions"],["mat-button","",1,"cancel-button","font-button2",3,"click"],["mat-button","",1,"apply-button","font-button2",3,"click"],["mat-menu-item","",3,"click","ngClass"],[1,"flex-row","gap-8","align-items-center","margin-top-16","quality-container"],["svgIcon","info",1,"font-body2","info-icon"]],template:function(b,N){if(1&b){const Ce=n.RV6();n.j41(0,"div",1)(1,"span",2),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"mat-dialog-content",3)(5,"mat-radio-group",4),n.bIt("change",function(Jt){return n.eBV(Ce),n.Njj(N.onRadioSelectionChange(Jt))}),n.j41(6,"mat-radio-button",5)(7,"div",6),n.EFF(8),n.nI1(9,"translate"),n.k0s()(),n.j41(10,"mat-radio-button",5)(11,"div",6),n.EFF(12),n.nI1(13,"translate"),n.k0s()()(),n.j41(14,"div",7)(15,"span",8),n.EFF(16),n.nI1(17,"translate"),n.k0s(),n.j41(18,"button",9)(19,"span",8),n.EFF(20),n.nI1(21,"translate"),n.k0s(),n.nrm(22,"mat-icon",10),n.k0s(),n.j41(23,"mat-menu",11,0),n.DNE(25,Ql,3,4,"button",12),n.k0s()(),n.DNE(26,Dp,4,1,"div",13),n.k0s(),n.j41(27,"mat-dialog-actions",14)(28,"button",15),n.bIt("click",function(){return n.eBV(Ce),n.Njj(N.onCancelClick())}),n.EFF(29),n.nI1(30,"translate"),n.k0s(),n.j41(31,"button",16),n.bIt("click",function(){return n.eBV(Ce),n.Njj(N.onApplyClick())}),n.EFF(32),n.nI1(33,"translate"),n.k0s()()()}if(2&b){const Ce=n.sdS(24);n.R7$(2),n.JRh(n.bMT(3,17,"system.video.videoSuperResolution")),n.R7$(4),n.Y8G("checked",!N.newState.isEnabled)("value",!1),n.R7$(),n.Y8G("ngClass",N.newState.isEnabled?"":"selected-text"),n.R7$(),n.SpI(" ",n.bMT(9,19,"common.off")," "),n.R7$(2),n.Y8G("checked",N.newState.isEnabled)("value",!0),n.R7$(),n.Y8G("ngClass",N.newState.isEnabled?"selected-text":""),n.R7$(),n.SpI(" ",n.bMT(13,21,"common.on")," "),n.R7$(4),n.JRh(n.bMT(17,23,"ops.quality")),n.R7$(2),n.Y8G("matMenuTriggerFor",Ce)("disabled",!N.newState.isEnabled),n.R7$(2),n.JRh(n.bMT(21,25,N.selectedQualityString)),n.R7$(5),n.Y8G("ngForOf",N.qualityOptions),n.R7$(),n.Y8G("ngIf",N.statusString),n.R7$(3),n.SpI(" ",n.bMT(30,27,"save.cancel")," "),n.R7$(3),n.SpI(" ",n.bMT(33,29,"common.ok")," ")}},dependencies:[$i.YU,$i.Sq,$i.bT,zn.tG,Ur.iV,ds.An,cl.pI,cl.gy,cl.fS,go.BI,go.Yi,go.E7,_d.VT,_d._g,fs.PW,Xr.D9],styles:["mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 8px}mat-radio-group[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]{height:48px;display:flex}.quality-container[_ngcontent-%COMP%]{padding-left:52px;padding-right:8px}.quality-dropdown[_ngcontent-%COMP%]:disabled{opacity:.38}.selected[_ngcontent-%COMP%]{color:#76b900}.info-icon[_ngcontent-%COMP%]{width:16px;height:16px}.selected-text[_ngcontent-%COMP%]{color:#76b900}.dropdown-icon[_ngcontent-%COMP%]{margin-left:16px;width:24px;height:24px}",".margin-0[_ngcontent-%COMP%]{margin:0}.padding-0[_ngcontent-%COMP%]{padding:0}.gap-0[_ngcontent-%COMP%]{gap:0px}.margin-top-0[_ngcontent-%COMP%]{margin-top:0}.padding-top-0[_ngcontent-%COMP%]{padding-top:0}.margin-bottom-0[_ngcontent-%COMP%]{margin-bottom:0}.padding-bottom-0[_ngcontent-%COMP%]{padding-bottom:0}.margin-left-0[_ngcontent-%COMP%]{margin-left:0}.padding-left-0[_ngcontent-%COMP%]{padding-left:0}.margin-right-0[_ngcontent-%COMP%]{margin-right:0}.padding-right-0[_ngcontent-%COMP%]{padding-right:0}.margin-4[_ngcontent-%COMP%]{margin:4px}.padding-4[_ngcontent-%COMP%]{padding:4px}.gap-4[_ngcontent-%COMP%]{gap:4px}.margin-top-4[_ngcontent-%COMP%]{margin-top:4px}.padding-top-4[_ngcontent-%COMP%]{padding-top:4px}.margin-bottom-4[_ngcontent-%COMP%]{margin-bottom:4px}.padding-bottom-4[_ngcontent-%COMP%]{padding-bottom:4px}.margin-left-4[_ngcontent-%COMP%]{margin-left:4px}.padding-left-4[_ngcontent-%COMP%]{padding-left:4px}.margin-right-4[_ngcontent-%COMP%]{margin-right:4px}.padding-right-4[_ngcontent-%COMP%]{padding-right:4px}.margin-8[_ngcontent-%COMP%]{margin:8px}.padding-8[_ngcontent-%COMP%]{padding:8px}.gap-8[_ngcontent-%COMP%]{gap:8px}.margin-top-8[_ngcontent-%COMP%]{margin-top:8px}.padding-top-8[_ngcontent-%COMP%]{padding-top:8px}.margin-bottom-8[_ngcontent-%COMP%]{margin-bottom:8px}.padding-bottom-8[_ngcontent-%COMP%]{padding-bottom:8px}.margin-left-8[_ngcontent-%COMP%]{margin-left:8px}.padding-left-8[_ngcontent-%COMP%]{padding-left:8px}.margin-right-8[_ngcontent-%COMP%]{margin-right:8px}.padding-right-8[_ngcontent-%COMP%]{padding-right:8px}.margin-10[_ngcontent-%COMP%]{margin:10px}.padding-10[_ngcontent-%COMP%]{padding:10px}.gap-10[_ngcontent-%COMP%]{gap:10px}.margin-top-10[_ngcontent-%COMP%]{margin-top:10px}.padding-top-10[_ngcontent-%COMP%]{padding-top:10px}.margin-bottom-10[_ngcontent-%COMP%]{margin-bottom:10px}.padding-bottom-10[_ngcontent-%COMP%]{padding-bottom:10px}.margin-left-10[_ngcontent-%COMP%]{margin-left:10px}.padding-left-10[_ngcontent-%COMP%]{padding-left:10px}.margin-right-10[_ngcontent-%COMP%]{margin-right:10px}.padding-right-10[_ngcontent-%COMP%]{padding-right:10px}.margin-12[_ngcontent-%COMP%]{margin:12px}.padding-12[_ngcontent-%COMP%]{padding:12px}.gap-12[_ngcontent-%COMP%]{gap:12px}.margin-top-12[_ngcontent-%COMP%]{margin-top:12px}.padding-top-12[_ngcontent-%COMP%]{padding-top:12px}.margin-bottom-12[_ngcontent-%COMP%]{margin-bottom:12px}.padding-bottom-12[_ngcontent-%COMP%]{padding-bottom:12px}.margin-left-12[_ngcontent-%COMP%]{margin-left:12px}.padding-left-12[_ngcontent-%COMP%]{padding-left:12px}.margin-right-12[_ngcontent-%COMP%]{margin-right:12px}.padding-right-12[_ngcontent-%COMP%]{padding-right:12px}.margin-16[_ngcontent-%COMP%]{margin:16px}.padding-16[_ngcontent-%COMP%]{padding:16px}.gap-16[_ngcontent-%COMP%]{gap:16px}.margin-top-16[_ngcontent-%COMP%]{margin-top:16px}.padding-top-16[_ngcontent-%COMP%]{padding-top:16px}.margin-bottom-16[_ngcontent-%COMP%]{margin-bottom:16px}.padding-bottom-16[_ngcontent-%COMP%]{padding-bottom:16px}.margin-left-16[_ngcontent-%COMP%]{margin-left:16px}.padding-left-16[_ngcontent-%COMP%]{padding-left:16px}.margin-right-16[_ngcontent-%COMP%]{margin-right:16px}.padding-right-16[_ngcontent-%COMP%]{padding-right:16px}.margin-20[_ngcontent-%COMP%]{margin:20px}.padding-20[_ngcontent-%COMP%]{padding:20px}.gap-20[_ngcontent-%COMP%]{gap:20px}.margin-top-20[_ngcontent-%COMP%]{margin-top:20px}.padding-top-20[_ngcontent-%COMP%]{padding-top:20px}.margin-bottom-20[_ngcontent-%COMP%]{margin-bottom:20px}.padding-bottom-20[_ngcontent-%COMP%]{padding-bottom:20px}.margin-left-20[_ngcontent-%COMP%]{margin-left:20px}.padding-left-20[_ngcontent-%COMP%]{padding-left:20px}.margin-right-20[_ngcontent-%COMP%]{margin-right:20px}.padding-right-20[_ngcontent-%COMP%]{padding-right:20px}.margin-24[_ngcontent-%COMP%]{margin:24px}.padding-24[_ngcontent-%COMP%]{padding:24px}.gap-24[_ngcontent-%COMP%]{gap:24px}.margin-top-24[_ngcontent-%COMP%]{margin-top:24px}.padding-top-24[_ngcontent-%COMP%]{padding-top:24px}.margin-bottom-24[_ngcontent-%COMP%]{margin-bottom:24px}.padding-bottom-24[_ngcontent-%COMP%]{padding-bottom:24px}.margin-left-24[_ngcontent-%COMP%]{margin-left:24px}.padding-left-24[_ngcontent-%COMP%]{padding-left:24px}.margin-right-24[_ngcontent-%COMP%]{margin-right:24px}.padding-right-24[_ngcontent-%COMP%]{padding-right:24px}.margin-32[_ngcontent-%COMP%]{margin:32px}.padding-32[_ngcontent-%COMP%]{padding:32px}.gap-32[_ngcontent-%COMP%]{gap:32px}.margin-top-32[_ngcontent-%COMP%]{margin-top:32px}.padding-top-32[_ngcontent-%COMP%]{padding-top:32px}.margin-bottom-32[_ngcontent-%COMP%]{margin-bottom:32px}.padding-bottom-32[_ngcontent-%COMP%]{padding-bottom:32px}.margin-left-32[_ngcontent-%COMP%]{margin-left:32px}.padding-left-32[_ngcontent-%COMP%]{padding-left:32px}.margin-right-32[_ngcontent-%COMP%]{margin-right:32px}.padding-right-32[_ngcontent-%COMP%]{padding-right:32px}.margin-36[_ngcontent-%COMP%]{margin:36px}.padding-36[_ngcontent-%COMP%]{padding:36px}.gap-36[_ngcontent-%COMP%]{gap:36px}.margin-top-36[_ngcontent-%COMP%]{margin-top:36px}.padding-top-36[_ngcontent-%COMP%]{padding-top:36px}.margin-bottom-36[_ngcontent-%COMP%]{margin-bottom:36px}.padding-bottom-36[_ngcontent-%COMP%]{padding-bottom:36px}.margin-left-36[_ngcontent-%COMP%]{margin-left:36px}.padding-left-36[_ngcontent-%COMP%]{padding-left:36px}.margin-right-36[_ngcontent-%COMP%]{margin-right:36px}.padding-right-36[_ngcontent-%COMP%]{padding-right:36px}.flex-row[_ngcontent-%COMP%]{display:flex}.flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.justify-content-space-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.align-items-center[_ngcontent-%COMP%]{align-items:center}.flex-none[_ngcontent-%COMP%]{flex:none}"]}),$})();var Hh=c(90279),Bd=kr.Or.Nvapp.Nvcpldisplayplugin.RamType,Qc=kr.Or.Nvapp.Nvcpldisplayplugin.BusType,Vd=kr.Or.Nvapp.Nvcpldisplayplugin.MaxQType;const eu=kr.Ts.Nvapp.Nvcpldisplayplugin.GetGPUInformation,jh=kr.Ts.Nvapp.Nvcpldisplayplugin.GetGpuCount,Cu=kr.Ts.Nvapp.Nvcpldisplayplugin.GetDirect3DfeatureLevel,Op=kr.Ts.Nvapp.Nvcplplugin.GetDynamicBoost,Qu=kr.Ts.Nvapp.Nvcpldisplayplugin.GetSystemCapabilities,Hc={SDRAM:"systeminfo.memoryTypeSdram",DDR1:"systeminfo.memoryTypeDdr1",DDR2:"systeminfo.memoryTypeDdr2",GDDR2:"systeminfo.memoryTypeGddr2",GDDR3:"systeminfo.memoryTypeGddr3",GDDR4:"systeminfo.memoryTypeGddr4",DDR3:"systeminfo.memoryTypeDdr3",GDDR5:"systeminfo.memoryTypeGddr5",GDDR5X:"systeminfo.memoryTypeGddr5X",HBM1:"systeminfo.memoryTypeHbm1",HBM2:"systeminfo.memoryTypeHbm2",SDDR4:"systeminfo.memoryTypeSddr4",GDDR6:"systeminfo.memoryTypeGddr6",GDDR6X:"systeminfo.memoryTypeGddr6X",default:"systeminfo.unavailable",Unknown:"systeminfo.busInfoUnknown",AGP:"systeminfo.busInfoAgp",PCI:"systeminfo.busInfoPci",FPCI:"systeminfo.busInfoFpci",PCI_EXPRESS:"systeminfo.busInfoPciExpress",PCI_EXPRESS_GEN2:"systeminfo.busInfoPciExpressGen2",PCI_EXPRESS_GEN3:"systeminfo.busInfoPciExpressGen3",PCI_EXPRESS_GEN4:"systeminfo.busInfoPciExpressGen4",AXI:"systeminfo.unavailable"};var If=c(82102);let Eu=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt){this.bridgeService=b,this.loggingService=N,this.translateService=Ce,this.systemInfoService=ft,this.driverUpdateService=Jt,this.gpuInfoCache=[],this.direct3dLevelCache=[],this.logger=N.getLogger("nvapp/NvcplSystemInfoService")}invalidateCacheOnDriverInstallation(){this.driverUpdateService.getInstallationDone().subscribe(()=>{this.gpuInfoCache=[],this.direct3dLevelCache=[],this.logger.info("NVCPL System Info cache cleared")},b=>{this.logger.error("Error while listening for driver installation",b)})}getGpuCount(){return this.bridgeService.executeCommand(jh).pipe((0,Rn.T)(b=>b.gpuCount),(0,wr.W)(b=>(this.logger.info("Error in fetching GetGpuCount ",b),(0,Nn.$)(b))))}getDxVersion(){return this.dxVersion?(this.logger.info("DxVersion fetched from Cache",this.dxVersion),(0,yr.of)(this.dxVersion)):this.systemInfoService.getSystemInfo([Ui.Lu.DxVersion]).pipe((0,Rn.T)(b=>(this.dxVersion=b.DxVersion,this.dxVersion)),(0,wr.W)(b=>(this.logger.error("failed to fetch dx version info",b),(0,yr.of)(null))))}getDynamicBoostInfo(){return this.dynamicBoostInfo?(0,yr.of)(this.dynamicBoostInfo):this.bridgeService.executeCommand(Op).pipe((0,xr.M)(b=>{this.logger.info("Dynamic boost info response:",b),this.dynamicBoostInfo=b}),(0,wr.W)(b=>(this.logger.info("Error in fetching dynamic boost Info ",b),(0,yr.of)(null))))}getSystemCapabilities(){return this.systemCapabilities?(0,yr.of)(this.systemCapabilities):this.bridgeService.executeCommand(Qu).pipe((0,xr.M)(b=>{this.logger.info("GetSystemCapabilities response:",b),this.systemCapabilities=b}),(0,wr.W)(b=>(this.logger.info("Error in fetching GetSystemCapabilities ",b),(0,yr.of)(null))))}getDirectFeatureLevel(b){return this.direct3dLevelCache[b]?(this.logger.info("Serving Direct3DfeatureLevel from cache for gpuIndex",b),(0,yr.of)(this.direct3dLevelCache[b])):this.bridgeService.executeCommand(Cu,{gpuIndex:b}).pipe((0,Rn.T)(Ce=>(this.direct3dLevelCache[b]=Ce.featureLevel,Ce.featureLevel)),(0,wr.W)(Ce=>(this.logger.info("Error in fetching Direct3DfeatureLevel ",Ce),(0,Nn.$)(Ce))))}getGpuInfo(b){return this.gpuInfoCache[b]?(this.logger.info("Serving GPUInfo from cache for gpuIndex",b),(0,yr.of)(this.gpuInfoCache[b])):this.bridgeService.executeCommand(eu,{gpuIndex:b}).pipe((0,Rn.T)(Ce=>(this.gpuInfoCache[b]=Ce.gpu,Ce.gpu)),(0,wr.W)(Ce=>(this.logger.info("Error in fetching GetGPUInfo ",Ce),(0,Nn.$)(Ce))))}getMaxQTypeTranslationString(b){switch(b){case Vd.No:return"systeminfo.commonDisable";case Vd.On:return"systeminfo.maxQTechOn";case Vd.Yes:return"systeminfo.maxQTechYes";default:return"systeminfo.commonDisable"}}parseGpuBusType(b,N){const Ce=this.getEnumString(N,Qc)||Hc.default;return Ce===Hc.default?"":N===Qc.PCI_EXPRESS_GEN2||N===Qc.PCI_EXPRESS_GEN3||N===Qc.PCI_EXPRESS_GEN4||N===Qc.PCI_EXPRESS||N===Qc.AGP?this.translateService.instant(Ce,{busSpeed:b}):this.translateService.instant(Ce)}parseGpuMemoryType(b,N){const Ce=this.getEnumString(N,Bd)||Hc.default;return Ce===Hc.default?"":N!==Bd.UNKNOWN?this.translateService.instant("systeminfo.memoryTypeTemplate",{mbValue:b,ramType:this.translateService.instant(Ce)}):this.translateService.instant("systeminfo.memoryTemplate",{mbValue:b})}getEnumString(b,N){return Hc[N[b]]}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.NZ),n.KVO(Ui.J6),n.KVO(Xr.c$),n.KVO(Ui.zW),n.KVO(If.f))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var Zu=c(46058);function Ag(F,$){1&F&&n.nrm(0,"nv-app-page-load-spinner")}function Mu(F,$){if(1&F&&(n.j41(0,"div",19),n.EFF(1),n.k0s()),2&F){const U=n.XpG(2);n.R7$(),n.JRh(U.panelSummary)}}function Tg(F,$){1&F&&(n.j41(0,"span",21),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.JRh(n.bMT(2,1,"system.video.rtxVideoEnhancementsDescriptionBoth")))}function xg(F,$){1&F&&(n.j41(0,"span",21),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.JRh(n.bMT(2,1,"system.video.rtxVideoEnhancementsDescriptionVsr")))}function Pp(F,$){1&F&&(n.j41(0,"span",21),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.JRh(n.bMT(2,1,"system.video.rtxVideoEnhancementsDescriptionHdr")))}function wp(F,$){if(1&F&&(n.j41(0,"div"),n.DNE(1,Tg,3,3,"span",20)(2,xg,3,3,"span",20)(3,Pp,3,3,"span",20),n.k0s()),2&F){const U=n.XpG(2);n.R7$(),n.Y8G("ngIf",U.vsrSupported&&U.hdrSupported),n.R7$(),n.Y8G("ngIf",U.vsrSupported&&!U.hdrSupported),n.R7$(),n.Y8G("ngIf",!U.vsrSupported&&U.hdrSupported)}}function Ip(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",22),n.bIt("click",function(N){n.eBV(U);const Ce=n.XpG(2);return n.Njj(Ce.onRestoreDefaults(N))}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"common.restore")," "))}function Rf(F,$){1&F&&n.nrm(0,"mat-icon",23)}function Au(F,$){1&F&&n.nrm(0,"mat-icon",24)}function Yh(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",25)(1,"div",26)(2,"span",27),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"mat-icon",28),n.bIt("click",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.openVsrInfoPopup())}),n.k0s()(),n.j41(6,"button",29),n.bIt("click",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.openVsrDialog())}),n.j41(7,"div",30)(8,"div"),n.EFF(9),n.k0s(),n.nrm(10,"mat-icon",31),n.k0s()()()}if(2&F){const U=n.XpG(2);n.Y8G("ngClass",U.vsrSupported&&U.hdrSupported?"vsr-control":""),n.R7$(3),n.JRh(n.bMT(4,3,"system.video.videoSuperResolution")),n.R7$(6),n.JRh(U.vsrSummary)}}function xc(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",25)(1,"div",26)(2,"span",27),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"mat-icon",28),n.bIt("click",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.openHdrInfoPopup())}),n.k0s()(),n.j41(6,"button",29),n.bIt("click",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.openHdrDialog())}),n.j41(7,"div",30)(8,"div"),n.EFF(9),n.k0s(),n.nrm(10,"mat-icon",31),n.k0s()()()}if(2&F){const U=n.XpG(2);n.Y8G("ngClass",U.vsrSupported&&U.hdrSupported?"hdr-control":""),n.R7$(3),n.JRh(n.bMT(4,3,"system.video.highDynamicRange")),n.R7$(6),n.JRh(U.hdrSummary)}}function Ju(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",2)(1,"div",3)(2,"span",4),n.EFF(3),n.nI1(4,"translate"),n.k0s()(),n.j41(5,"mat-accordion",5),n.nrm(6,"mat-divider"),n.j41(7,"div",6)(8,"mat-expansion-panel",7),n.mxI("expandedChange",function(N){n.eBV(U);const Ce=n.XpG();return n.DH7(Ce.isExpanded,N)||(Ce.isExpanded=N),n.Njj(N)}),n.j41(9,"mat-expansion-panel-header",8)(10,"div",9)(11,"div",10)(12,"div",4),n.EFF(13),n.nI1(14,"translate"),n.k0s(),n.DNE(15,Mu,2,1,"div",11)(16,wp,4,3,"div",12),n.k0s(),n.j41(17,"div",13),n.DNE(18,Ip,3,3,"button",14)(19,Rf,1,0,"mat-icon",15)(20,Au,1,0,"mat-icon",16),n.k0s()()(),n.j41(21,"div",17),n.DNE(22,Yh,11,5,"div",18)(23,xc,11,5,"div",18),n.k0s()()(),n.nrm(24,"mat-divider"),n.k0s()()}if(2&F){const U=n.XpG();n.R7$(3),n.JRh(n.bMT(4,14,"system.video.pageHeader")),n.R7$(5),n.R50("expanded",U.isExpanded),n.Y8G("ngClass",U.isExpanded?"ex-panel-bg":""),n.R7$(),n.Y8G("collapsedHeight","auto")("expandedHeight","auto"),n.R7$(),n.Y8G("ngClass",U.isExpanded?"bottom-divider":""),n.R7$(3),n.SpI(" ",n.bMT(14,16,"system.video.rtxVideoEnhancements")," "),n.R7$(2),n.Y8G("ngIf",!U.isExpanded),n.R7$(),n.Y8G("ngIf",U.isExpanded),n.R7$(2),n.Y8G("ngIf",U.isExpanded),n.R7$(),n.Y8G("ngIf",!U.isExpanded),n.R7$(),n.Y8G("ngIf",U.isExpanded),n.R7$(2),n.Y8G("ngIf",U.vsrSupported),n.R7$(),n.Y8G("ngIf",U.hdrSupported)}}let Rp=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn,x,k,_e){this.videoService=N,this.dialog=Ce,this.translate=ft,this.genericDialog=Jt,this.settingInfoModalService=wn,this.nvcplSystemInfoService=x,this.performanceMeasureService=k,this.redirectService=_e,this.isLoading=!0,this.isExpanded=!0,this.panelSummary="",this.vsrSummary="",this.vsrSupported=!1,this.hdrSummary="",this.hdrSupported=!1,this.videoColorSettingsPanel=!1,this.videoImageSettingsPanel=!1,this.destroy$=new fo.B7,this.logger=b.getLogger("nvapp/VideoPageComponent")}getSystemCapabilities(){this.nvcplSystemInfoService.getSystemCapabilities().pipe((0,ji.s)(1),(0,xr.M)(b=>{this.isMsHybridSystem=b.isMsHybridSystem}),(0,pr.Q)(this.destroy$)).subscribe(Rt.l,Rt.l)}ngOnInit(){this.logger.info("Initializing"),this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppVideoRouteNavigationEnd,cn.mM.NvAppVideoDataFetchStart],cn.fR.SystemVideo),this.getSystemCapabilities(),(0,Ts.zV)([this.videoService.vsrInfo$,this.videoService.hdrInfo$,this.videoService.vsrStatus$,this.videoService.hdrStatus$]).pipe((0,xr.M)(([b,N,Ce,ft])=>{this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppVideoDataFetchEnd,cn.mM.NvAppVideoViewRenderStart],cn.fR.SystemVideo),this.panelSummary=function Sc(F,$,U,b,N){const Ce=[];if($.isSupported){const ft=[F.instant($.isEnabled?jl:sc),Od(F,$,b),$.isEnabled?F.instant(b.isActive?hu:ja):null].filter(Jt=>Jt).join(", ");Ce.push(F.instant("system.video.vsrCollapsedSummary",{summary:ft}))}if(U.isSupported){const ft=[F.instant(U.errorCode!==Ha.SUCCESS?tp:U.isEnabled?jl:sc),U.errorCode===Ha.SUCCESS&&U.isEnabled?F.instant(N?hu:ja):null].filter(Jt=>Jt).join(", ");Ce.push(F.instant("system.video.hdrCollapsedSummary",{summary:ft}))}return Ce.join("  |  ")}(this.translate,b,N,Ce,ft),this.vsrSummary=function Ch(F,$,U){return $.isSupported?[F.instant($.isEnabled?jl:sc),Od(F,$,U),$.isEnabled?F.instant(Fc,{status:F.instant(U.isActive?hu:ja)}):null].filter(b=>b).join(", "):""}(this.translate,b,Ce),this.hdrSummary=function Eh(F,$,U){return $.isSupported?[F.instant($.errorCode!==Ha.SUCCESS?tp:$.isEnabled?jl:sc),$.errorCode===Ha.SUCCESS&&$.isEnabled?F.instant(Fc,{status:F.instant(U?hu:ja)}):null].filter(b=>b).join(", "):""}(this.translate,N,ft),this.vsrSupported=b.isSupported,this.hdrSupported=N.isSupported,this.isLoading=!1}),(0,pr.Q)(this.destroy$)).subscribe(b=>{this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppVideoViewRenderEnd],cn.fR.SystemVideo)},b=>{this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppVideoDataFetchEnd,cn.mM.NvAppVideoViewRenderStart,cn.mM.NvAppVideoViewRenderEnd],cn.fR.SystemVideo)}),this.videoService.startPollingStatus(this.destroy$.asObservable()),this.logger.info("Initializing complete")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}openVsrDialog(){this.logger.info("Opening VSR setting dialog"),(0,Ts.zV)([this.videoService.vsrInfo$,this.videoService.vsrStatus$]).pipe((0,ji.s)(1),(0,xr.M)(([b,N])=>{const Ce={...b,...N};this.dialog.open(Gh,{autoFocus:!1,hasBackdrop:!0,restoreFocus:!1,panelClass:["graphics-setting-modal-container","common-dialog"],data:Ce})}),(0,pr.Q)(this.destroy$)).subscribe(Rt.l,Rt.l)}openHdrDialog(){this.logger.info("Opening HDR setting dialog"),(0,Ts.zV)([this.videoService.hdrInfo$,this.videoService.hdrStatus$]).pipe((0,ji.s)(1),(0,xr.M)(([b,N])=>{const Ce={...b,isActive:N};this.dialog.open(Xc,{autoFocus:!1,hasBackdrop:!0,restoreFocus:!1,panelClass:["graphics-setting-modal-container","common-dialog"],data:Ce})}),(0,pr.Q)(this.destroy$)).subscribe(Rt.l,Rt.l)}openVsrInfoPopup(){this.logger.info("Opening VSR info popup");const b={title:this.translate.instant("system.video.videoSuperResolution"),description:this.translate.instant("system.video.vsrInfoPopup.description"),typicalUsageScenarios:this.translate.instant("system.video.vsrInfoPopup.typicalUsageScenarios"),tips:{text:this.translate.instant(this.isMsHybridSystem?"system.video.vsrInfoPopup.hybridSystemTips":"system.video.vsrInfoPopup.genericTips"),link:{text:"common.learnMore",linkClickedCallback:this.gsyncDisplayDialogLinkClicked.bind(this)}}};this.settingInfoModalService.openDialogWithData(b)}gsyncDisplayDialogLinkClicked(){this.redirectService.redirectTo(Hh.r7.VideoRtx)}openHdrInfoPopup(){this.logger.info("Opening HDR info popup"),this.videoService.hdrInfo$.pipe((0,ji.s)(1),(0,pr.Q)(this.destroy$),(0,xr.M)(b=>{const N={title:this.translate.instant("system.video.highDynamicRange"),description:this.translate.instant("system.video.hdrInfoPopup.description"),typicalUsageScenarios:this.translate.instant("system.video.hdrInfoPopup.typicalUsageScenarios"),tips:{text:this.translate.instant(this.isMsHybridSystem?"system.video.hdrInfoPopup.hybridSystemTips":"system.video.hdrInfoPopup.genericTips"),link:{text:"common.learnMore",linkClickedCallback:this.gsyncDisplayDialogLinkClicked.bind(this)}}};b.errorCode!==Ha.SUCCESS&&(N.errors=[this.translate.instant(Bu.get(b.errorCode))]),this.settingInfoModalService.openDialogWithData(N)})).subscribe(Rt.l,Rt.l)}onRestoreDefaults(b){b.stopImmediatePropagation(),b.preventDefault(),this.logger.info("Opening restore defaults dialog");const N=this.genericDialog.open({autoFocus:!1,hasBackdrop:!0,panelClass:["dialogPaddingRemove"],data:{headerText:{text:"system.display.restoreDefaultsDlgTitle"},bodyText:{text:"system.video.videoRestoreDialogText"},primaryButton:{text:"common.ok"},secondaryButton:{text:"common.cancel"},autoFocusOnPrimaryButton:!1}},{disableFocusRestore:!0});(0,wd.O4)([N.primaryButtonClick.pipe((0,Rn.T)(Ce=>!0)),N.secondaryButtonClick.pipe((0,Rn.T)(Ce=>!1)),N.afterClosed().pipe((0,Rn.T)(Ce=>!1))]).pipe((0,ji.s)(1),(0,ra.ZZ)(Ce=>Ce?this.videoService.restoreDefaults():(0,yr.of)(null)),(0,pr.Q)(this.destroy$),(0,wr.W)(Ce=>(this.logger.error("Error restoring defaults:",Ce),(0,yr.of)(null))),(0,kc.j)(()=>N?.close())).subscribe(Rt.l,Rt.l)}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(gd),n.rXU(go.bZ),n.rXU(Xr.c$),n.rXU(Na.uh),n.rXU(Ud.P),n.rXU(Eu),n.rXU(gr.M),n.rXU(Zu.Q))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-video-page"]],decls:3,vars:2,consts:[["videoPage",""],[4,"ngIf","ngIfElse"],[1,"flex-col","gap-16","video-page"],[1,"flex-row","justify-content-space-between"],[1,"font-sub1","font-color-primary"],["displayMode","flat"],[1,"ex-panel-margin"],["hideToggle","true",1,"displays-expansion-panel",3,"expandedChange","expanded","ngClass"],[3,"collapsedHeight","expandedHeight"],[1,"flex-row","accordion-header","hig-button-overlay","justify-content-space-between","align-items-center",3,"ngClass"],[1,"flex-col"],["class","font-body2 font-color-secondary panel-summary",4,"ngIf"],[4,"ngIf"],[1,"flex-row","align-items-center"],["mat-button","","class","font-button2 restore-button",3,"click",4,"ngIf"],["svgIcon","chevron_down",4,"ngIf"],["svgIcon","chevron_up",4,"ngIf"],[1,"gap-16","margin-top-16","margin-bottom-16","global-settings-grid"],["class","flex-col gap-16",3,"ngClass",4,"ngIf"],[1,"font-body2","font-color-secondary","panel-summary"],["class","font-body2 font-color-secondary",4,"ngIf"],[1,"font-body2","font-color-secondary"],["mat-button","",1,"font-button2","restore-button",3,"click"],["svgIcon","chevron_down"],["svgIcon","chevron_up"],[1,"flex-col","gap-16",3,"ngClass"],[1,"flex-row","gap-8","align-items-center"],[1,"font-body1","font-color-primary"],["svgIcon","info",1,"info-icon","font-body2",3,"click"],["mat-button","",1,"font-body2","global-button",3,"click"],[1,"flex-row","justify-content-space-between","align-items-center"],["svgIcon","edit_settings",1,"material-icons"]],template:function(b,N){if(1&b&&n.DNE(0,Ag,1,0,"nv-app-page-load-spinner",1)(1,Ju,25,18,"ng-template",null,0,n.C5r),2&b){const Ce=n.sdS(2);n.Y8G("ngIf",N.isLoading)("ngIfElse",Ce)}},dependencies:[$i.YU,$i.bT,Ur.iV,ds.An,pi.q,Gc.BS,Gc.GK,Gc.Z2,fs.PW,cr.Q,Xr.D9],styles:['.video-page[_ngcontent-%COMP%]{padding:16px 0}.more-icon-button[_ngcontent-%COMP%]{padding:0;min-width:24px;height:24px}.info-icon[_ngcontent-%COMP%]{width:16px;height:16px;cursor:pointer}.global-button[_ngcontent-%COMP%]{background-color:#292929;padding:6px 16px;text-transform:none}.global-settings-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-template-areas:"vsr hdr"}.vsr-control[_ngcontent-%COMP%]{grid-area:vsr}.hdr-control[_ngcontent-%COMP%]{grid-area:hdr}.restore-button[_ngcontent-%COMP%]{margin-right:8px}',".margin-0[_ngcontent-%COMP%]{margin:0}.padding-0[_ngcontent-%COMP%]{padding:0}.gap-0[_ngcontent-%COMP%]{gap:0px}.margin-top-0[_ngcontent-%COMP%]{margin-top:0}.padding-top-0[_ngcontent-%COMP%]{padding-top:0}.margin-bottom-0[_ngcontent-%COMP%]{margin-bottom:0}.padding-bottom-0[_ngcontent-%COMP%]{padding-bottom:0}.margin-left-0[_ngcontent-%COMP%]{margin-left:0}.padding-left-0[_ngcontent-%COMP%]{padding-left:0}.margin-right-0[_ngcontent-%COMP%]{margin-right:0}.padding-right-0[_ngcontent-%COMP%]{padding-right:0}.margin-4[_ngcontent-%COMP%]{margin:4px}.padding-4[_ngcontent-%COMP%]{padding:4px}.gap-4[_ngcontent-%COMP%]{gap:4px}.margin-top-4[_ngcontent-%COMP%]{margin-top:4px}.padding-top-4[_ngcontent-%COMP%]{padding-top:4px}.margin-bottom-4[_ngcontent-%COMP%]{margin-bottom:4px}.padding-bottom-4[_ngcontent-%COMP%]{padding-bottom:4px}.margin-left-4[_ngcontent-%COMP%]{margin-left:4px}.padding-left-4[_ngcontent-%COMP%]{padding-left:4px}.margin-right-4[_ngcontent-%COMP%]{margin-right:4px}.padding-right-4[_ngcontent-%COMP%]{padding-right:4px}.margin-8[_ngcontent-%COMP%]{margin:8px}.padding-8[_ngcontent-%COMP%]{padding:8px}.gap-8[_ngcontent-%COMP%]{gap:8px}.margin-top-8[_ngcontent-%COMP%]{margin-top:8px}.padding-top-8[_ngcontent-%COMP%]{padding-top:8px}.margin-bottom-8[_ngcontent-%COMP%]{margin-bottom:8px}.padding-bottom-8[_ngcontent-%COMP%]{padding-bottom:8px}.margin-left-8[_ngcontent-%COMP%]{margin-left:8px}.padding-left-8[_ngcontent-%COMP%]{padding-left:8px}.margin-right-8[_ngcontent-%COMP%]{margin-right:8px}.padding-right-8[_ngcontent-%COMP%]{padding-right:8px}.margin-10[_ngcontent-%COMP%]{margin:10px}.padding-10[_ngcontent-%COMP%]{padding:10px}.gap-10[_ngcontent-%COMP%]{gap:10px}.margin-top-10[_ngcontent-%COMP%]{margin-top:10px}.padding-top-10[_ngcontent-%COMP%]{padding-top:10px}.margin-bottom-10[_ngcontent-%COMP%]{margin-bottom:10px}.padding-bottom-10[_ngcontent-%COMP%]{padding-bottom:10px}.margin-left-10[_ngcontent-%COMP%]{margin-left:10px}.padding-left-10[_ngcontent-%COMP%]{padding-left:10px}.margin-right-10[_ngcontent-%COMP%]{margin-right:10px}.padding-right-10[_ngcontent-%COMP%]{padding-right:10px}.margin-12[_ngcontent-%COMP%]{margin:12px}.padding-12[_ngcontent-%COMP%]{padding:12px}.gap-12[_ngcontent-%COMP%]{gap:12px}.margin-top-12[_ngcontent-%COMP%]{margin-top:12px}.padding-top-12[_ngcontent-%COMP%]{padding-top:12px}.margin-bottom-12[_ngcontent-%COMP%]{margin-bottom:12px}.padding-bottom-12[_ngcontent-%COMP%]{padding-bottom:12px}.margin-left-12[_ngcontent-%COMP%]{margin-left:12px}.padding-left-12[_ngcontent-%COMP%]{padding-left:12px}.margin-right-12[_ngcontent-%COMP%]{margin-right:12px}.padding-right-12[_ngcontent-%COMP%]{padding-right:12px}.margin-16[_ngcontent-%COMP%]{margin:16px}.padding-16[_ngcontent-%COMP%]{padding:16px}.gap-16[_ngcontent-%COMP%]{gap:16px}.margin-top-16[_ngcontent-%COMP%]{margin-top:16px}.padding-top-16[_ngcontent-%COMP%]{padding-top:16px}.margin-bottom-16[_ngcontent-%COMP%]{margin-bottom:16px}.padding-bottom-16[_ngcontent-%COMP%]{padding-bottom:16px}.margin-left-16[_ngcontent-%COMP%]{margin-left:16px}.padding-left-16[_ngcontent-%COMP%]{padding-left:16px}.margin-right-16[_ngcontent-%COMP%]{margin-right:16px}.padding-right-16[_ngcontent-%COMP%]{padding-right:16px}.margin-20[_ngcontent-%COMP%]{margin:20px}.padding-20[_ngcontent-%COMP%]{padding:20px}.gap-20[_ngcontent-%COMP%]{gap:20px}.margin-top-20[_ngcontent-%COMP%]{margin-top:20px}.padding-top-20[_ngcontent-%COMP%]{padding-top:20px}.margin-bottom-20[_ngcontent-%COMP%]{margin-bottom:20px}.padding-bottom-20[_ngcontent-%COMP%]{padding-bottom:20px}.margin-left-20[_ngcontent-%COMP%]{margin-left:20px}.padding-left-20[_ngcontent-%COMP%]{padding-left:20px}.margin-right-20[_ngcontent-%COMP%]{margin-right:20px}.padding-right-20[_ngcontent-%COMP%]{padding-right:20px}.margin-24[_ngcontent-%COMP%]{margin:24px}.padding-24[_ngcontent-%COMP%]{padding:24px}.gap-24[_ngcontent-%COMP%]{gap:24px}.margin-top-24[_ngcontent-%COMP%]{margin-top:24px}.padding-top-24[_ngcontent-%COMP%]{padding-top:24px}.margin-bottom-24[_ngcontent-%COMP%]{margin-bottom:24px}.padding-bottom-24[_ngcontent-%COMP%]{padding-bottom:24px}.margin-left-24[_ngcontent-%COMP%]{margin-left:24px}.padding-left-24[_ngcontent-%COMP%]{padding-left:24px}.margin-right-24[_ngcontent-%COMP%]{margin-right:24px}.padding-right-24[_ngcontent-%COMP%]{padding-right:24px}.margin-32[_ngcontent-%COMP%]{margin:32px}.padding-32[_ngcontent-%COMP%]{padding:32px}.gap-32[_ngcontent-%COMP%]{gap:32px}.margin-top-32[_ngcontent-%COMP%]{margin-top:32px}.padding-top-32[_ngcontent-%COMP%]{padding-top:32px}.margin-bottom-32[_ngcontent-%COMP%]{margin-bottom:32px}.padding-bottom-32[_ngcontent-%COMP%]{padding-bottom:32px}.margin-left-32[_ngcontent-%COMP%]{margin-left:32px}.padding-left-32[_ngcontent-%COMP%]{padding-left:32px}.margin-right-32[_ngcontent-%COMP%]{margin-right:32px}.padding-right-32[_ngcontent-%COMP%]{padding-right:32px}.margin-36[_ngcontent-%COMP%]{margin:36px}.padding-36[_ngcontent-%COMP%]{padding:36px}.gap-36[_ngcontent-%COMP%]{gap:36px}.margin-top-36[_ngcontent-%COMP%]{margin-top:36px}.padding-top-36[_ngcontent-%COMP%]{padding-top:36px}.margin-bottom-36[_ngcontent-%COMP%]{margin-bottom:36px}.padding-bottom-36[_ngcontent-%COMP%]{padding-bottom:36px}.margin-left-36[_ngcontent-%COMP%]{margin-left:36px}.padding-left-36[_ngcontent-%COMP%]{padding-left:36px}.margin-right-36[_ngcontent-%COMP%]{margin-right:36px}.padding-right-36[_ngcontent-%COMP%]{padding-right:36px}.flex-row[_ngcontent-%COMP%]{display:flex}.flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.justify-content-space-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.align-items-center[_ngcontent-%COMP%]{align-items:center}.flex-none[_ngcontent-%COMP%]{flex:none}",".panel-summary[_ngcontent-%COMP%]{white-space:pre-wrap}.ex-panel-margin[_ngcontent-%COMP%]{margin:8px 0}.ex-panel-bg[_ngcontent-%COMP%]{background-color:#222}.dark-divider[_ngcontent-%COMP%]{border-top-color:#191919}.bottom-divider[_ngcontent-%COMP%]{border-bottom:1px solid #191919}.disable-mat-select-trigger[_ngcontent-%COMP%]{opacity:.38}","[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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))}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.system-display-box[_ngcontent-%COMP%]{box-sizing:border-box;border:1.5px solid rgba(255,255,255,.9);display:flex;width:26px;height:20px;flex-direction:row;align-self:center;justify-content:center;align-items:center}.displays-chip[_ngcontent-%COMP%]{height:32px;border:1px solid rgba(255,255,255,.7);border-radius:0;padding:6px 12px;background-color:transparent;cursor:pointer}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary[_ngcontent-%COMP%]{background-color:#ffffff4d}.accordion-padding[_ngcontent-%COMP%]{padding:14px 0}.accordion-header[_ngcontent-%COMP%]{padding:14px 16px;width:100%}.accordion-header[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#ffffffe6}"]}),$})();const Lp=kr.Ts.Nvapp.Localgames.GetWhisperModeInfo;var Sl=function(F){return F.GraphicsCard="preferences.myRig.graphicsCard",F.GraphicsCards="preferences.myRig.graphicsCards",F.Driver="preferences.myRig.driver",F.Display="preferences.myRig.display",F.Displays="preferences.myRig.displays",F.Cpu="preferences.myRig.cpu",F.Ram="preferences.myRig.ram",F.Disk="preferences.myRig.storage",F.Disks="preferences.myRig.storages",F.OS="systeminfo.operatingSystem",F.OSVersion="preferences.myRig.osVersion",F}(Sl||{}),Wh=function(F){return F.SolidState="SolidState",F.Unknown="Unknown",F.Rotational="Rotational",F}(Wh||{}),Dc=function(F){return F.SSD="SSD",F.HDD="HDD",F}(Dc||{}),Jr=function(F){return F[F.GpuName=0]="GpuName",F[F.Direct3dFeatureLevel=1]="Direct3dFeatureLevel",F[F.Streamprocessor=2]="Streamprocessor",F[F.Graphicsclock=3]="Graphicsclock",F[F.MaxQTechnologies=4]="MaxQTechnologies",F[F.DynamicBoost=5]="DynamicBoost",F[F.WhisperMode=6]="WhisperMode",F[F.MaxGraphicsPower=7]="MaxGraphicsPower",F[F.ResizableBar=8]="ResizableBar",F[F.MemoryClock=9]="MemoryClock",F[F.MemoryInterface=10]="MemoryInterface",F[F.MemoryBandwidth=11]="MemoryBandwidth",F[F.TotalAvailableGraphicsMemory=12]="TotalAvailableGraphicsMemory",F[F.DedicatedVideoMemory=13]="DedicatedVideoMemory",F[F.SystemVideoMemory=14]="SystemVideoMemory",F[F.SharedSystemMemory=15]="SharedSystemMemory",F[F.VideoBios=16]="VideoBios",F[F.Irq=17]="Irq",F[F.Bus=18]="Bus",F[F.DeviceId=19]="DeviceId",F[F.PartNumber=20]="PartNumber",F[F.Display=21]="Display",F[F.Resolution=22]="Resolution",F[F.RefreshRate=23]="RefreshRate",F[F.DesktopColorDepth=24]="DesktopColorDepth",F[F.Hdcp=25]="Hdcp",F[F.DisplayType=26]="DisplayType",F[F.AdvancedOptimus=27]="AdvancedOptimus",F}(Jr||{});const Lf={header:"",descriptions:[],isSectionFeature:!0,primaryActionButton:{text:"common.viewDetails",visible:!0,disabled:!1}},qu=new Map([[Jr.GpuName,"systeminfo.gpuName"],[Jr.Direct3dFeatureLevel,"systeminfo.direct3dFeatureLevel"],[Jr.Streamprocessor,"systeminfo.streamprocessor"],[Jr.Graphicsclock,"systeminfo.graphicsclock"],[Jr.MaxQTechnologies,"systeminfo.maxQTechnologies"],[Jr.DynamicBoost,"systeminfo.dynamicBoost"],[Jr.WhisperMode,"systeminfo.whisperMode"],[Jr.MaxGraphicsPower,"systeminfo.maxGraphicsPower"],[Jr.ResizableBar,"systeminfo.resizableBar"],[Jr.MemoryClock,"systeminfo.memoryClock"],[Jr.MemoryInterface,"systeminfo.memoryInterface"],[Jr.MemoryBandwidth,"systeminfo.memoryBandwidth"],[Jr.TotalAvailableGraphicsMemory,"systeminfo.totalAvailableGraphicsMemory"],[Jr.DedicatedVideoMemory,"systeminfo.dedicatedVideoMemory"],[Jr.SystemVideoMemory,"systeminfo.systemVideoMemory"],[Jr.SharedSystemMemory,"systeminfo.sharedSystemMemory"],[Jr.VideoBios,"systeminfo.videoBios"],[Jr.Irq,"systeminfo.irq"],[Jr.Bus,"systeminfo.bus"],[Jr.DeviceId,"systeminfo.deviceId"],[Jr.PartNumber,"systeminfo.partNumber"],[Jr.Resolution,"system.display.resolution"],[Jr.RefreshRate,"systeminfo.refreshRate"],[Jr.DesktopColorDepth,"systeminfo.desktopColorDepth"],[Jr.Hdcp,Qs.z$],[Jr.Display,"system.display.displayIdentifier"],[Jr.DisplayType,"system.display.deviceType.title"],[Jr.AdvancedOptimus,"systeminfo.advancedOptimus"]]);var Np=c(8126),qa=c(10607);let Tu=(()=>{var F;class ${constructor(b,N,Ce){this.bridgeService=b,this.loggingService=N,this.nvAppTelemetryUtilService=Ce,this.logger=this.loggingService.getLogger("nvapp/LegacyControlPanelService")}getLoadingSpinner(){return this.loadingSpinner=new Is.k,this.loadingSpinner}clearLoadingSpinner(){this.loadingSpinner.clear()}launchLegacyControlPanel(b){return this.bridgeService.executeCommand(Np.T.Nvapp.Nvcpldisplayplugin.LaunchApplication,{clsId:b}).pipe((0,xr.M)(()=>{this.logger.info("Launching the Legacy Control Panel with ClsID :",b)}),(0,wr.W)(N=>(this.logger.error("Legacy Control Panel launch failed",N),this.loadingSpinner.triggerLoadingIndicator(!1),(0,Nn.$)(N))))}launchApplication(b,N){this.launchSub&&this.launchSub.unsubscribe(),this.loadingSpinner.triggerLoadingIndicator(!0,0),this.nvAppTelemetryUtilService.sendClickEvent(ut.EB.OpenNvCpl,N,!0),this.launchSub=this.launchLegacyControlPanel(b).subscribe(Rt.l,Rt.l)}getControlPanelClientInfo(){return this.controlPanelClientInfo?(0,yr.of)(this.controlPanelClientInfo):this.bridgeService.executeCommand(Eo.XW).pipe((0,xr.M)(b=>{this.logger.info("Control Panel Client info response:",b),this.controlPanelClientInfo=b}),(0,wr.W)(b=>(this.logger.info("Error in fetching control Panel Client Info ",b),this.loadingSpinner.triggerLoadingIndicator(!1),(0,yr.of)(null))))}ngOnDestroy(){this.launchSub&&this.launchSub.unsubscribe()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(qa.NZ),n.KVO(Ui.J6),n.KVO(ut.AY))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var tu=c(79539),kp=c(25577);const nu=F=>({"my-rig-dialog-unset":F}),kf=(F,$)=>({"border-bottom":F,"font-sub2":$});function Dg(F,$){if(1&F&&(n.j41(0,"div",10),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F){const U=n.XpG();n.R7$(),n.SpI(" ",n.bMT(2,1,U.dialogTitle)," ")}}function Ff(F,$){if(1&F&&(n.j41(0,"div",11)(1,"span"),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"span"),n.EFF(5),n.k0s()()),2&F){const U=n.XpG();n.R7$(2),n.JRh(n.bMT(3,2,"systeminfo.operatingSystem")),n.R7$(3),n.JRh(U.osCombinedValue)}}function Fp(F,$){if(1&F&&(n.j41(0,"div",11)(1,"span"),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"span"),n.EFF(5),n.k0s()()),2&F){const U=n.XpG();n.R7$(2),n.JRh(n.bMT(3,2,"systeminfo.directXRuntimeVersion")),n.R7$(3),n.JRh(U.dxVersion)}}function Uf(F,$){if(1&F&&(n.qex(0),n.j41(1,"div",11)(2,"span"),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"span"),n.EFF(6),n.k0s()(),n.bVm()),2&F){const U=$.$implicit;n.R7$(3),n.JRh(n.bMT(4,2,U.header)),n.R7$(3),n.JRh(U.descriptions)}}function Bf(F,$){if(1&F&&(n.j41(0,"div",12),n.EFF(1),n.k0s()),2&F){const U=n.XpG();n.R7$(),n.SpI(" ",U.graphicsCardHeader," ")}}function Og(F,$){if(1&F&&(n.qex(0),n.j41(1,"div",13)(2,"span"),n.EFF(3),n.k0s(),n.j41(4,"span"),n.EFF(5),n.k0s()(),n.bVm()),2&F){const U=$.$implicit,b=$.index,N=$.last,Ce=n.XpG(2);n.R7$(),n.Y8G("ngClass",n.l_i(3,kf,N,!b||U[0].id===Ce.displayKey)),n.R7$(2),n.JRh(U[0].displayValue),n.R7$(2),n.JRh(U[1])}}function Vf(F,$){if(1&F&&(n.qex(0),n.DNE(1,Og,6,6,"ng-container",4),n.bVm()),2&F){const U=$.$implicit;n.R7$(),n.Y8G("ngForOf",U)}}function el(F,$){1&F&&(n.j41(0,"p",14),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"preferences.myRig.unableToRetrieveGPU")," "))}function Gf(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",15),n.nI1(1,"translate"),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.copyText())}),n.k0s()}if(2&F){const U=n.XpG();n.Y8G("showSpinner",U.copyInProgress)("buttonText",n.bMT(1,2,"preferences.myRig.copyText"))}}let em=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn,x,k,_e,lt,Wt,an){this.loggingService=b,this.translateService=N,this.dialogRef=Ce,this.datePipe=ft,this.systemDetailsService=Jt,this.performanceMeasureService=wn,this.dialogData=x,this.telemetryService=k,this.nvAppTelemetryUtilService=_e,this.preferenceService=lt,this.displaysService=Wt,this.hardwareInfoService=an,this.gpuInfoSource=[],this.copyInProgress=!1,this.showErrorState=!1,this.displayKey=Jr.Display,this.rigItems=[],this.unsubscribe$=new fo.B7,this.logger=b.getLogger("nvapp/AdvancedMyRigDialogComponent"),this.showErrorState=this.dialogData.errorState,this.telemetryService.setScreen(ut.f3.System)}ngOnInit(){if(!this.showErrorState){this.gpuInfoSource=this.dialogData.gpuInfoContent;const b=[Sl.OS,Sl.GraphicsCard];this.rigItems=this.dialogData?.rigItems?.filter(N=>!b.includes(N.header)),this.collectGpuInformation(this.dialogData.dxVersion,this.dialogData.osInfo),this.listenToDisplayChanges()}this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppMyRigDialogViewRenderEnd],cn.fR.MyRigDialog),this.setDialogTitle()}listenToDisplayChanges(){this.displaysService.gpuDisplayInfo.pipe((0,Br.n)(()=>this.systemDetailsService.fetchGpuInfoContent()),(0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.logger.info("Refresh content after display change"),this.gpuInfoSource=b},b=>{this.logger.error("Error while listen to display change",b)})}close(){this.dialogRef.close()}copyText(){this.copyInProgress=!0;const b=[],N=this.datePipe.transform(new Date,"MM/dd/yyyy HH:mm:ss"),Ce=this.preferenceService.getNvAppVersionString();b.push(`${this.translateService.instant("systeminfo.reportTitle",{createdDate:N})}\n`),b.push(`${this.translateService.instant("systeminfo.nvidiaAppVersion")}: ${Ce}\n`),this.osCombinedValue&&b.push(`${this.translateService.instant("systeminfo.operatingSystem")}: ${this.osCombinedValue}\n`),this.dxVersion&&b.push(`${this.translateService.instant("systeminfo.directXRuntimeVersion")}: ${this.dxVersion}`),b.push("\n"),this.rigItems.forEach(ft=>b.push(`${this.translateService.instant(ft.header)}: ${ft.descriptions}\n`)),b.push(`\n${this.graphicsCardHeader}\n`),this.gpuInfoSource.forEach(ft=>{ft.forEach(Jt=>{Jt[0].id===this.displayKey&&b.push("\n"),b.push(`${Jt[0].displayValue}: ${Jt[1]}\n`)}),b.push("\n")}),this.nvAppTelemetryUtilService.sendClickEvent(ut.EB.CopySystemDetails,ut.yP.Overview,!0),this.writeText(b.join("").trim()).pipe((0,pr.Q)(this.unsubscribe$)).subscribe(()=>this.copyInProgress=!1)}collectGpuInformation(b,N){this.logger.info("Total GPU info received",this.gpuInfoSource?.length),this.graphicsCardHeader=this.gpuInfoSource?.length>1?this.translateService.instant(Sl.GraphicsCards,{count:this.gpuInfoSource.length}):this.translateService.instant(Sl.GraphicsCard),this.dxVersion=b,this.osCombinedValue=`${N.OSName}, ${this.translateService.instant(Sl.OSVersion,{osVersion:N.OSVersion})}`}writeText(b){return navigator.clipboard?(0,Vo.H)(navigator.clipboard.writeText(b)).pipe((0,Ki.c)(fn.A6),(0,wr.W)(N=>(this.logger.info(`Clipboard writeText: ${N}`),(0,yr.of)(null)))):(this.logger.warn("navigator.clipboard is undefined, writeText() probably is being used in non secure context."),(0,yr.of)(null))}setDialogTitle(){this.hardwareInfoService.getQuadroSystemFlag().pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.dialogTitle=b?"preferences.myRig.workstationTitle":"preferences.myRig.dialogTitle"},b=>{this.logger.error("Error occurred while getting quadro flag ",b)})}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Xr.c$),n.rXU(go.CP),n.rXU($i.vh),n.rXU(jf),n.rXU(gr.M),n.rXU(go.Vh),n.rXU(Or.H0),n.rXU(ut.AY),n.rXU(ai.N),n.rXU(yo.R),n.rXU(Ui.SQ))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-advanced-myrig-dialog"]],decls:15,vars:14,consts:[[1,"my-rig-dialog",3,"ngClass"],["mat-dialog-title","","class","font-header6 title-container",4,"ngIf"],[1,"system-info-container","font-body2"],["class","system-info-element",4,"ngIf"],[4,"ngFor","ngForOf"],["class","system-info-element card-header font-sub2",4,"ngIf"],["class","font-body2 font-color-secondary error-details",4,"ngIf"],["mat-dialog-actions","",1,"modal-actions"],["mat-button","",1,"font-button2","action-button",3,"click"],["mat-button","","class","font-button2 action-button copy-text-button","nvAppTextButtonSpinner","",3,"showSpinner","buttonText","click",4,"ngIf"],["mat-dialog-title","",1,"font-header6","title-container"],[1,"system-info-element"],[1,"system-info-element","card-header","font-sub2"],[1,"system-info-element",3,"ngClass"],[1,"font-body2","font-color-secondary","error-details"],["mat-button","","nvAppTextButtonSpinner","",1,"font-button2","action-button","copy-text-button",3,"click","showSpinner","buttonText"]],template:function(b,N){1&b&&(n.j41(0,"div",0),n.DNE(1,Dg,3,3,"div",1),n.j41(2,"mat-dialog-content")(3,"div",2),n.DNE(4,Ff,6,4,"div",3)(5,Fp,6,4,"div",3)(6,Uf,7,4,"ng-container",4)(7,Bf,2,1,"div",5)(8,Vf,2,1,"ng-container",4)(9,el,3,3,"p",6),n.k0s()(),n.j41(10,"div",7)(11,"button",8),n.bIt("click",function(){return N.close()}),n.EFF(12),n.nI1(13,"translate"),n.k0s(),n.DNE(14,Gf,2,4,"button",9),n.k0s()()),2&b&&(n.Y8G("ngClass",n.eq3(12,nu,N.showErrorState)),n.R7$(),n.Y8G("ngIf",null==N.gpuInfoSource?null:N.gpuInfoSource.length),n.R7$(3),n.Y8G("ngIf",N.osCombinedValue),n.R7$(),n.Y8G("ngIf",N.dxVersion),n.R7$(),n.Y8G("ngForOf",N.rigItems),n.R7$(),n.Y8G("ngIf",N.graphicsCardHeader),n.R7$(),n.Y8G("ngForOf",N.gpuInfoSource),n.R7$(),n.Y8G("ngIf",N.showErrorState),n.R7$(3),n.SpI(" ",n.bMT(13,10,"common.close")," "),n.R7$(2),n.Y8G("ngIf",null==N.gpuInfoSource?null:N.gpuInfoSource.length))},dependencies:[$i.YU,$i.Sq,$i.bT,Ur.iV,go.BI,go.Yi,go.E7,fs.PW,Aa.u,Xr.D9],styles:[".title-container[_ngcontent-%COMP%]{padding:18px 16px 14px 24px}.system-info-container[_ngcontent-%COMP%]{padding:0 16px 0 24px;display:flex;flex-direction:column}.system-info-container[_ngcontent-%COMP%]   .system-info-element[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-left:16px;height:48px}.system-info-container[_ngcontent-%COMP%]   .system-info-element[_ngcontent-%COMP%]:first-of-type{align-items:flex-start}.system-info-container[_ngcontent-%COMP%]   .system-info-element[_ngcontent-%COMP%]:last-of-type{border-bottom:0}.system-info-container[_ngcontent-%COMP%]   .system-info-element[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 1 0%;box-sizing:border-box}.system-info-container[_ngcontent-%COMP%]   .border-bottom[_ngcontent-%COMP%]{border-bottom:1px solid rgba(255,255,255,.24)}.system-info-container[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.24)}.my-rig-dialog[_ngcontent-%COMP%]{position:relative;min-height:500px;display:flex;flex-direction:column}.my-rig-dialog-unset[_ngcontent-%COMP%]{min-height:0px}.modal-actions[_ngcontent-%COMP%]{padding:0 8px;margin-bottom:0;display:flex;justify-content:flex-end;align-items:center}.modal-actions[_ngcontent-%COMP%]   .action-button[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:auto;height:36px;position:relative}.modal-actions[_ngcontent-%COMP%]   .copy-text-button[_ngcontent-%COMP%]{margin:0 0 0 8px}"]}),$})();var Oc=c(2216),Hf=c(72482);let jf=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn,x,k,_e,lt,Wt,an,xn,qn){this.nvcplSystemInfoService=N,this.errorHandlerService=Ce,this.performanceMeasureService=ft,this.systemInfoService=Jt,this.hardwareInfoService=wn,this.translateService=x,this.bytesPipe=k,this.nvAppTelemetryUtilService=_e,this.driverInfoService=lt,this.dialog=Wt,this.nvAppBridgeService=an,this.datePipe=xn,this.displaysService=qn,this.logger=b.getLogger("nvapp/SystemDetailsService")}getLoadingSpinner(){return this.loadingSpinner=new Is.k,this.loadingSpinner}clearLoadingSpinner(){this.loadingSpinner.clear()}getMyRig(){const b=this.systemInfoService.getSystemInfo([Ui.Lu.OSName,Ui.Lu.OSVersion,Ui.Lu.CPUName,Ui.Lu.PhysicalDisk]),N=this.hardwareInfoService.getGenericInfo(!1),Ce=this.hardwareInfoService.getQuadroSystemFlag(),ft=(0,Ol.yU)(N,Ce).pipe((0,Br.n)(([Jt,wn])=>this.getInstalledDriverDetails(Jt,wn)));return(0,Ol.yU)(b,N,ft).pipe((0,Br.n)(([Jt,wn,x])=>{const k=[],_e=`${Jt.OSName}, ${this.translateService.instant(Sl.OSVersion,{osVersion:Jt.OSVersion})}`;return k.push({header:Sl.OS,descriptions:[_e]}),x&&k.push({header:Sl.Driver,descriptions:[x]}),k.push({header:Sl.Cpu,descriptions:[Jt?.CPUName]}),k.push({header:Sl.Ram,descriptions:[this.bytesPipe.transform(+wn?.PhysicalMemoryCapacity)]}),k.push(this.getDiskFeature(Jt?.PhysicalDisk)),(0,yr.of)(k)}),(0,wr.W)(Jt=>(this.logger.error("Error occurred while fetching my rig",Jt),(0,Nn.$)(Jt))))}showMyRigDialog(b,N){this.nvAppTelemetryUtilService.sendClickEvent(ut.EB.ViewSystemDetails,N,!0),this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppMyRigDialogDataFetchStart],cn.fR.MyRigDialog);let Ce=!1;this.loadingSpinner.triggerLoadingIndicator(!0),this.myRigDialogSub?.unsubscribe(),this.myRigDialogSub=(0,Ol.yU)(this.fetchGpuInfoContent(),this.nvcplSystemInfoService.getDxVersion(),this.systemInfoService.getSystemInfo([Ui.Lu.OSName,Ui.Lu.OSVersion,Ui.Lu.Platform])).pipe((0,Br.n)(([ft,Jt,wn])=>{this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppMyRigDialogDataFetchEnd,cn.mM.NvAppMyRigDialogViewRenderStart],cn.fR.MyRigDialog);const x={OSName:wn.OSName,OSVersion:wn.OSVersion,Platform:wn.Platform};if(this.logger.info("dxVersion",Jt,"osInfo",x),ft||(this.logger.error("GPU info content is empty, setting error state as true"),Ce=!0),Ce)return this.errorHandlerService.showOptionalPluginFailErrorDialog(),(0,Nn.$)("Showing error dialog due to error state");const k=new go.ru;return k.autoFocus=!1,k.restoreFocus=!1,k.hasBackdrop=!0,k.panelClass=["my-rig-dialog","common-dialog"],k.width=Ir.pS.width,k.maxHeight=Ir.pS.height,k.data={gpuInfoContent:ft,dxVersion:Jt,osInfo:x,errorState:Ce,rigItems:b},this.loadingSpinner.triggerLoadingIndicator(!1),k.minHeight=Ce?Ir.pS.unsetMinHeight:Ir.pS.minHeight,this.dialog.open(em,k).afterClosed()}),(0,ji.s)(1)).subscribe(()=>{this.logger.info("MY RIG dialog was closed")},ft=>{this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppMyRigDialogViewRenderEnd],cn.fR.MyRigDialog),this.loadingSpinner.triggerLoadingIndicator(!1),this.logger.error("Error while showing dialog",ft)})}fetchGpuInfoContent(){const b=[];return this.nvcplSystemInfoService.getGpuCount().pipe((0,Br.n)(N=>N?(this.logger.info("gpu count:",N),(0,Vo.H)([...Array(N).keys()])):(0,Nn.$)("GPU Count is zero")),(0,tu.H)(N=>this.getWhisperModeInfo().pipe((0,Br.n)(Ce=>this.getGpuInfoContent(N,Ce?.isWhisperMode)))),(0,Lc.p)(N=>!!N),(0,xr.M)(N=>b.push(Array.from(N?.entries()))),(0,kp.H)(),(0,ji.s)(1),(0,Rn.T)(()=>b),(0,wr.W)(N=>(this.logger.error("Error while getting nvcpl system information",N),(0,yr.of)(null))))}getWhisperModeInfo(){return this.whisperModeInfo?(0,yr.of)(this.whisperModeInfo):this.nvAppBridgeService.executeCommandWithTimeout(Lp).pipe((0,xr.M)(b=>{this.whisperModeInfo=b,this.logger.info("whisper mode info Response",b)}),(0,wr.W)(b=>(this.logger.error("failed to fetch whisper mode info",b),(0,yr.of)(null))))}getGpuInfoContent(b,N){return(0,Ol.yU)(this.nvcplSystemInfoService.getGpuInfo(b),this.nvcplSystemInfoService.getDirectFeatureLevel(b),this.nvcplSystemInfoService.getDynamicBoostInfo(),this.nvcplSystemInfoService.getSystemCapabilities(),this.hardwareInfoService.getIsLaptopSystem()).pipe((0,Br.n)(([Ce,ft,Jt,wn,x])=>(0,Ts.zV)([(0,yr.of)(Ce),(0,yr.of)(ft),(0,yr.of)(x),this.displaysService.gpuDisplayInfo.pipe((0,Rn.T)(k=>{if(this.logger.info("GPUs length",k.gpus.length),k.gpus.length>0){const _e=k.gpus.find(lt=>lt.id===Ce.id);return _e?_e.displays:[]}return[]}),(0,ji.s)(1)),this.displaysService.isMultiCloneSystem$.pipe((0,ji.s)(1))])),(0,Rn.T)(([Ce,ft,Jt,wn,x])=>(this.logger.info("GPU info",Ce),Ce?.isNvidiaGpu?this.prepareGpuInfoContent(Ce,ft,Jt,N,wn,x):"")))}getInstalledDriverDetails(b,N){return this.driverInfoService.getDriverInformation(b?.DriverVersion,b?.DriverType).pipe((0,ji.s)(1),(0,Rn.T)(Ce=>{const ft=this.datePipe.transform(Ce?.DriverAttributes?.ReleaseDateTime,Se.DQ,Se.cl);return`${this.translateService.instant(N?"drivers.preferences.workstationDrivers":Oc.O6[b?.DriverType].title)} - ${b?.DriverVersion} - ${ft}`}),(0,wr.W)(Ce=>(this.logger.error("Error while fetching driver details",Ce),(0,yr.of)(""))))}getDiskFeature(b){const N=b?.length>1?this.translateService.instant(Sl.Disks,{count:b.length}):Sl.Disk,Ce=[];if(b?.forEach(ft=>{Ce.push(`${ft?.MediumType===Wh.Rotational||ft?.MediumType===Wh.Unknown?Dc.HDD:Dc.SSD} - ${this.bytesPipe.transform(+ft?.TotalSize)}`)}),b?.length>2){const ft=b.length-2;Ce.splice(b.length-ft,ft),Ce.push(`${this.translateService.instant("preferences.myRig.moreItems",{items:ft})}`)}return{header:N,descriptions:Ce}}prepareGpuInfoContent(b,N,Ce,ft,Jt,wn){const x=new Map;if(b.longGPUName&&x.set(this.getSystemDetailType(Jr.GpuName),b.longGPUName),N&&x.set(this.getSystemDetailType(Jr.Direct3dFeatureLevel),N),b.cudaCore>0&&x.set(this.getSystemDetailType(Jr.Streamprocessor),b.cudaCore),b.coreClock&&x.set(this.getSystemDetailType(Jr.Graphicsclock),this.translateService.instant("systeminfo.megahertz",{mhzValue:b.coreClock})),Ce&&(x.set(this.getSystemDetailType(Jr.MaxQTechnologies),this.translateService.instant(this.nvcplSystemInfoService.getMaxQTypeTranslationString(b.maxQTechnology))),x.set(this.getSystemDetailType(Jr.DynamicBoost),this.translateService.instant("systeminfo.common"+(this.nvcplSystemInfoService.dynamicBoostInfo?.isDynamicBoost?"Enable":"Disable"))),x.set(this.getSystemDetailType(Jr.WhisperMode),this.translateService.instant("systeminfo.common"+(ft?"Enable":"Disable"))),x.set(this.getSystemDetailType(Jr.AdvancedOptimus),this.translateService.instant("systeminfo.common"+(this.nvcplSystemInfoService.systemCapabilities?.isAdvancedOptimus?"Enable":"Disable"))),b.maxGpuPower>0&&b.maxQTechnology!==Vd.No&&x.set(this.getSystemDetailType(Jr.MaxGraphicsPower),this.translateService.instant("systeminfo.maxGraphicsPowerTemplate",{powerValue:b.maxGpuPower}))),b.maxQTechnology!==Vd.Yes){const k=this.getSystemDetailType(Jr.ResizableBar);x.set(k,this.translateService.instant("systeminfo.common"+(b.isResizableBar?"Enable":"Disable")))}if(b.memoryDataRate&&x.set(this.getSystemDetailType(Jr.MemoryClock),this.translateService.instant("systeminfo.labelGbps",{gbpsValue:(b.memoryDataRate/1e3).toFixed(2)})),b.memoryInterface&&x.set(this.getSystemDetailType(Jr.MemoryInterface),this.translateService.instant("systeminfo.memoryinterfaceTemplate",{BusWidth:b.memoryInterface})),x.set(this.getSystemDetailType(Jr.MemoryBandwidth),b.memoryBandwidth>=1e3?this.translateService.instant("systeminfo.memoryBandwidthTbValue",{memoryBandwidth:(b.memoryBandwidth/1e3).toFixed(2)}):this.translateService.instant("systeminfo.memoryBandwidthGbValue",{memoryBandwidth:b.memoryBandwidth})),b.totalAvailableGraphicsMemory&&x.set(this.getSystemDetailType(Jr.TotalAvailableGraphicsMemory),this.translateService.instant("systeminfo.memoryTemplate",{mbValue:b.totalAvailableGraphicsMemory})),b.dedicatedVideoMemory&&x.set(this.getSystemDetailType(Jr.DedicatedVideoMemory),this.nvcplSystemInfoService.parseGpuMemoryType(b.dedicatedVideoMemory,b.ramType)),b.systemVideoMemory>=0&&x.set(this.getSystemDetailType(Jr.SystemVideoMemory),this.translateService.instant("systeminfo.memoryTemplate",{mbValue:b.systemVideoMemory})),b.sharedSystemMemory&&x.set(this.getSystemDetailType(Jr.SharedSystemMemory),this.translateService.instant("systeminfo.memoryTemplate",{mbValue:b.sharedSystemMemory})),b.videoBIOSVersion&&x.set(this.getSystemDetailType(Jr.VideoBios),b.videoBIOSVersion),b.irq>=0){const k=this.getSystemDetailType(Jr.Irq);x.set(k,0===b.irq?this.translateService.instant("systeminfo.sdiStatusOutputNotUsed"):b.irq)}return b.bus&&b.busType&&x.set(this.getSystemDetailType(Jr.Bus),this.nvcplSystemInfoService.parseGpuBusType(b.bus,b.busType)),b.deviceId&&x.set(this.getSystemDetailType(Jr.DeviceId),b.deviceId),b.partNumber&&x.set(this.getSystemDetailType(Jr.PartNumber),b.partNumber),this.prepareDisplaysContent(Jt,x,wn),x}getSystemDetailType(b,N){return{id:b,displayValue:this.translateService.instant(qu.get(b),N)}}prepareDisplaysContent(b,N,Ce){b?.length?b.forEach(ft=>{const Jt=this.getSystemDetailType(Jr.Display,{identifier:ft.identifier});let wn=ft.name;ft.logicalDisplayType===us.QE.CloneDisplay&&(wn=Ce?`${ft.name} ${this.translateService.instant("system.cloneGroup",{index:ft.cloneGroupId+1})}`:`${ft.name} ${this.translateService.instant("system.clone")}`),N.set(Jt,wn);const x=this.displaysService.getCurrentResolutionLabelForDisplay(ft);x&&N.set(this.getSystemDetailType(Jr.Resolution),x);const k=this.displaysService.getCurrentRefreshRateForDisplay(ft);k&&N.set(this.getSystemDetailType(Jr.RefreshRate),k);const _e=this.displaysService.getCurrentDesktopColorDepth(ft);if(_e&&N.set(this.getSystemDetailType(Jr.DesktopColorDepth),_e),ft.gsyncState?.gsyncType!==us.rc.NotSupported){const lt=Qs.qN.get(ft.gsyncState?.gsyncType);N.set(this.getSystemDetailType(Jr.DisplayType),this.translateService.instant(lt))}if(ft.hdcpState.isSupported&&!1===ft.hdcpState?.hdcpStatus.isUnavailable){const lt=this.translateService.instant("common.supported");N.set(this.getSystemDetailType(Jr.Hdcp),lt)}}):this.logger.info("No displays information to show")}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.J6),n.KVO(Eu),n.KVO($r.c),n.KVO(gr.M),n.KVO(Ui.zW),n.KVO(Ui.SQ),n.KVO(Xr.c$),n.KVO(Ui.cr),n.KVO(ut.AY),n.KVO(Hf.u),n.KVO(go.bZ),n.KVO(al.S),n.KVO($i.vh),n.KVO(yo.R))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var tl=c(892);const eh={sliBasic:"{DE0549BD-F34D-4748-AD94-0F2F22749F4F}",manage3DSettings:"{BBB7D605-8639-49D0-849E-32C4A5DBB9C3}",colorSettingsadv:"{B53EBC0C-2251-4AE2-9818-FD6AAF843EC2}",sliMultimon:"{894BF76C-115F-44B7-9B32-ABFA7E6A804A}",sliPhysx:"{C8F113AE-A2C9-47CB-8DAE-9376C64665AD}",multiview:"{894BF76C-115F-44B7-9B32-ABFA7E6A804A}",stereoscopic3D:"{50125552-EC89-4049-B1B7-5FDBE38C8509}",changeResolution:"{91363F1E-E7CA-4959-85D6-963719EC79FC}",variableRefreshrate:"{80BA3813-908F-4D4C-A5FF-263640AD5B7A}",aceSettings:"{CBD600D7-2256-4ADB-8E3A-185F56EA9353}",manageLicense:"{DFA226E7-D28D-407D-95ED-5A79D9745BB5}",home:"{F18188EC-2567-4855-8BAE-2766F5EC54FC}"};function Yf(F,$){1&F&&(n.j41(0,"mat-icon"),n.EFF(1,"open_in_new"),n.k0s())}function xu(F,$){if(1&F){const U=n.RV6();n.qex(0),n.j41(1,"div",1),n.nrm(2,"nv-app-preference-base",2),n.j41(3,"button",3),n.nI1(4,"translate"),n.nI1(5,"uppercase"),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.openControlPanelDefaultPage(N.NavigationPageClsid.home))}),n.DNE(6,Yf,2,0,"mat-icon",0),n.k0s()(),n.bVm()}if(2&F){const U=n.XpG();n.R7$(2),n.Y8G("featureReadyState",U.controlPanelFeatureSection),n.R7$(),n.Y8G("showSpinner",U.isLoading)("disabled",U.isLoading)("buttonText",n.bMT(5,7,n.bMT(4,5,U.appsOpenButtonText))),n.R7$(3),n.Y8G("ngIf",!U.isLoading)}}let qo=(()=>{var F;class ${constructor(b,N,Ce,ft){this.loggingService=b,this.legacyControlPanelService=N,this.telemetryService=Ce,this.windowService=ft,this.NavigationPageClsid=eh,this.controlPanelFeatureSection=Za.nJ,this.unsubscribe$=new fo.B7,this.isLoading=!1,this.appsOpenButtonText="layout.apps.open",this.logger=b.getLogger("nvapp/LegacyControlPanelComponent"),this.telemetryService.setScreen(ut.f3.System),this.loadingSpinner=this.legacyControlPanelService.getLoadingSpinner()}ngOnInit(){this.getControlPanelFeatureSection(),this.listenToLoadingSpinner()}openControlPanelDefaultPage(b){this.legacyControlPanelService.launchApplication(b,ut.yP.Overview),this.stopLoadingSpinner()}getControlPanelFeatureSection(){this.controlPanelFeature={...Za.nJ,toggle:{visible:!1}}}listenToLoadingSpinner(){this.loadingSpinner.getLoadingSpinner().subscribe(b=>{this.isLoading=b},Rt.l)}stopLoadingSpinner(){this.loadingSpinnerSub?.unsubscribe(),this.loadingSpinnerSub=(0,wd.O4)([(0,tl.Y)(Za.rf).pipe((0,Rn.T)(b=>!0)),this.windowService.getFocusEvent().pipe((0,Rn.T)(b=>!1))]).pipe((0,ji.s)(1)).subscribe(()=>this.loadingSpinner.triggerLoadingIndicator(!1),b=>this.logger.error("Error while stoping loading spinner",b))}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete(),this.legacyControlPanelService.clearLoadingSpinner()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Tu),n.rXU(Or.H0),n.rXU(Ui.s7))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-legacy-control-panel"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"preference-base"],[1,"preference-base-section",3,"featureReadyState"],["mat-button","","nvAppTextButtonSpinner","","aria-label","OpenControlPanel",1,"font-button2","text-button-icon",3,"click","showSpinner","disabled","buttonText"]],template:function(b,N){1&b&&n.DNE(0,xu,7,9,"ng-container",0),2&b&&n.Y8G("ngIf",N.controlPanelFeature)},dependencies:[$i.bT,Ur.iV,ds.An,Aa.u,ml,$i.Pc,Xr.D9],styles:[".preference-base[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin:16px 0}.text-button-icon[_ngcontent-%COMP%]{padding:0 16px;height:36px}.text-button-icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{padding-right:4px;height:20px;font-size:18px;line-height:18px;width:20px}"]}),$})();const tm=F=>({index:F});function dc(F,$){if(1&F&&(n.j41(0,"span",7),n.EFF(1),n.k0s()),2&F){const U=n.XpG().index;n.R7$(),n.SpI("(",U+1,")")}}function Ya(F,$){1&F&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F&&(n.R7$(),n.JRh(n.bMT(2,1,"system.clone")))}function Du(F,$){if(1&F&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&F){const U=n.XpG(2).$implicit;n.R7$(),n.JRh(n.i5U(2,1,"system.cloneGroup",n.eq3(4,tm,U.cloneGroupId+1)))}}function Gd(F,$){if(1&F&&(n.qex(0),n.DNE(1,Ya,3,3,"span",6)(2,Du,3,6,"span",6),n.bVm()),2&F){const U=n.XpG(5);n.R7$(),n.Y8G("ngIf",!U.multiCloneSystem),n.R7$(),n.Y8G("ngIf",U.multiCloneSystem)}}function Pg(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",9)(1,"div",10)(2,"span",11),n.EFF(3),n.k0s()(),n.j41(4,"div",12)(5,"span",13),n.bIt("click",function(){const N=n.eBV(U).$implicit,Ce=n.XpG(2).$implicit,ft=n.XpG(2);return n.Njj(ft.selectDisplay(N,Ce))}),n.EFF(6),n.DNE(7,Gd,3,2,"ng-container",6),n.k0s(),n.j41(8,"span",14),n.EFF(9),n.k0s()()()}if(2&F){const U=$.$implicit,b=n.XpG(4);n.R7$(3),n.JRh(U.identifier),n.R7$(3),n.SpI(" ",U.name," "),n.R7$(),n.Y8G("ngIf",U.logicalDisplayType===b.LogicalDisplayType.CloneDisplay),n.R7$(2),n.JRh(U.capabilities)}}function th(F,$){if(1&F&&(n.qex(0),n.DNE(1,Pg,10,4,"div",8),n.bVm()),2&F){const U=n.XpG().$implicit;n.R7$(),n.Y8G("ngForOf",U.displays)}}function nh(F,$){if(1&F&&(n.j41(0,"div",4)(1,"span",2),n.EFF(2),n.DNE(3,dc,2,1,"span",5),n.k0s(),n.DNE(4,th,2,1,"ng-container",6),n.k0s()),2&F){const U=$.$implicit,b=n.XpG(2);n.R7$(2),n.SpI("",U.name," "),n.R7$(),n.Y8G("ngIf",(null==b.gpuDisplayOverview?null:b.gpuDisplayOverview.length)>1),n.R7$(),n.Y8G("ngIf",null==U.displays?null:U.displays.length)}}function Kh(F,$){if(1&F&&(n.j41(0,"div",1)(1,"span",2),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.DNE(4,nh,5,3,"div",3),n.k0s()),2&F){const U=n.XpG();n.R7$(2),n.JRh(n.bMT(3,2,"system.overview.displaysTitle")),n.R7$(2),n.Y8G("ngForOf",U.gpuDisplayOverview)}}let Hd=(()=>{var F;class ${constructor(b,N,Ce){this.loggingService=b,this.displaysService=N,this.translateService=Ce,this.destroy$=new fo.B7,this.gpuDisplayOverview=[],this.multiCloneSystem=!1,this.LogicalDisplayType=us.QE,this.logger=b.getLogger("nvapp/SystemOverviewComponent")}ngOnInit(){this.displaysService.gpuDisplayInfo.pipe((0,pr.Q)(this.destroy$)).subscribe(b=>{this.gpuDisplayOverview=b.gpus.map(N=>{const Ce={name:N.name,index:N.index,displays:[]};return N.displays?.forEach(ft=>{const Jt=this.prepareDisplayCapabilities(ft);Ce.displays.push({...ft,capabilities:Jt})}),Ce})},Rt.l),this.listenForMultiCloneSystem()}listenForMultiCloneSystem(){this.displaysService.isMultiCloneSystem$.pipe((0,pr.Q)(this.destroy$)).subscribe(b=>this.multiCloneSystem=b,Rt.l)}prepareDisplayCapabilities(b){const N=this.displaysService.getCurrentResolutionLabelForDisplay(b);let Ce=[];N&&(Ce=[N],Ce.push(this.displaysService.getCurrentRefreshRateForDisplay(b)));const ft=this.displaysService.getCurrentDesktopColorDepth(b);if(ft&&Ce.push(ft),b.gsyncState?.gsyncType!==us.rc.NotSupported){const Jt=Qs.qN.get(b.gsyncState?.gsyncType);Ce.push(this.translateService.instant(Jt))}return b.hdcpState.isSupported&&!1===b.hdcpState?.hdcpStatus.isUnavailable&&Ce.push(this.translateService.instant(Qs.z$)),Ce.join(" | ")}selectDisplay(b,N){this.displaysService.preSelectDisplay({index:b.index,gpuIndex:N.index})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(yo.R),n.rXU(Xr.c$))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-system-overview-displays"]],decls:1,vars:1,consts:[["class","displays-container",4,"ngIf"],[1,"displays-container"],[1,"font-body1","font-color-primary"],["class","gpu-display",4,"ngFor","ngForOf"],[1,"gpu-display"],["class","font-body2 font-color-primary",4,"ngIf"],[4,"ngIf"],[1,"font-body2","font-color-primary"],["class","display",4,"ngFor","ngForOf"],[1,"display"],[1,"system-display-box"],[1,"font-sub1"],[1,"display-name"],[1,"font-body1-link",3,"click"],[1,"font-body2","font-color-tertiary"]],template:function(b,N){1&b&&n.DNE(0,Kh,5,4,"div",0),2&b&&n.Y8G("ngIf",null==N.gpuDisplayOverview?null:N.gpuDisplayOverview.length)},dependencies:[$i.Sq,$i.bT,Xr.D9],styles:[".displays-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-left:var(--system-item-padding);margin-top:24px;gap:16px}.displays-container[_ngcontent-%COMP%]   .gpu-display[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding-left:var(--system-item-padding)}.displays-container[_ngcontent-%COMP%]   .display[_ngcontent-%COMP%]{display:flex;gap:16px}.displays-container[_ngcontent-%COMP%]   .display-name[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}","[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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))}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.system-display-box[_ngcontent-%COMP%]{box-sizing:border-box;border:1.5px solid rgba(255,255,255,.9);display:flex;width:26px;height:20px;flex-direction:row;align-self:center;justify-content:center;align-items:center}.displays-chip[_ngcontent-%COMP%]{height:32px;border:1px solid rgba(255,255,255,.7);border-radius:0;padding:6px 12px;background-color:transparent;cursor:pointer}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary[_ngcontent-%COMP%]{background-color:#ffffff4d}.accordion-padding[_ngcontent-%COMP%]{padding:14px 0}.accordion-header[_ngcontent-%COMP%]{padding:14px 16px;width:100%}.accordion-header[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#ffffffe6}"]}),$})();const Zl=F=>({last:F});function Ou(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",7),n.nI1(1,"translate"),n.bIt("click",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.openMyRigDetails())}),n.k0s()}if(2&F){const U=n.XpG(2);n.Y8G("showSpinner",U.isLoading)("disabled",U.isLoading)("buttonText",n.bMT(1,3,U.viewDetailsButtonText))}}function Zc(F,$){if(1&F&&n.nrm(0,"nv-app-preference-base",8),2&F){const U=$.$implicit,b=$.index,N=n.XpG(2);n.Y8G("featureReadyState",U)("ngClass",n.eq3(2,Zl,b===N.rigItems.length-1))}}function ih(F,$){1&F&&(n.qex(0),n.nrm(1,"nv-app-system-overview-displays"),n.bVm())}function Xh(F,$){1&F&&(n.j41(0,"div"),n.nrm(1,"mat-divider",9)(2,"nv-app-legacy-control-panel"),n.k0s())}function Ia(F,$){if(1&F&&(n.j41(0,"div",1)(1,"div",2)(2,"label",3),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.DNE(5,Ou,2,5,"button",4),n.k0s(),n.DNE(6,Zc,1,4,"nv-app-preference-base",5)(7,ih,2,0,"ng-container",6)(8,Xh,3,0,"div",6),n.k0s()),2&F){const U=n.XpG();n.R7$(3),n.SpI(" ",n.bMT(4,5,null==U.myRigFeature?null:U.myRigFeature.header)," "),n.R7$(2),n.Y8G("ngIf",null==U.myRigFeature||null==U.myRigFeature.primaryActionButton?null:U.myRigFeature.primaryActionButton.visible),n.R7$(),n.Y8G("ngForOf",U.rigItems),n.R7$(),n.Y8G("ngIf",(null==U.gpuInfo?null:U.gpuInfo.length)>0),n.R7$(),n.Y8G("ngIf",U.controlPanelFeatureEnabled)}}let Ua=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn,x,k,_e){this.loggingService=b,this.appBarService=N,this.legacyControlPanelService=Ce,this.telemetryService=ft,this.nvcplSystemInfoService=Jt,this.systemDetailsService=wn,this.performanceMeasureService=x,this.displaysService=k,this.hardwareInfoService=_e,this.unsubscribe$=new fo.B7,this.disableTabAnimation=!0,this.selectedTabIndex=0,this.myRigFeature=Lf,this.controlPanelFeatureEnabled=!1,this.isLoading=!1,this.viewDetailsButtonText="system.overview.viewRigDetails",this.gpuInfo=[],this.logger=b.getLogger("nvapp/SystemOverviewComponent"),this.appBarService.setTitle("preferences.system"),this.telemetryService.setScreen(ut.f3.System),this.loadingSpinner=this.systemDetailsService.getLoadingSpinner()}ngOnInit(){this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppSystemOverviewRouteNavigationEnd,cn.mM.NvAppSystemOverviewDataFetchStart],cn.fR.SystemOverview),this.getMyRig(),this.getDisplaysInfo(),this.getControlPanelPreference(),this.listenToLoadingSpinner()}ngAfterViewInit(){this.logger.info("Initializing DxVersion"),this.nvcplSystemInfoService.getDxVersion().pipe((0,ji.s)(1)).subscribe(Rt.l,Rt.l)}openMyRigDetails(){this.systemDetailsService.showMyRigDialog(this.rigItems,ut.yP.Overview)}getMyRig(){(0,Ol.yU)(this.systemDetailsService.getMyRig(),this.hardwareInfoService.getQuadroSystemFlag()).pipe((0,pr.Q)(this.unsubscribe$)).subscribe(([b,N])=>{this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppSystemOverviewDataFetchEnd,cn.mM.NvAppSystemOverviewViewRenderStart],cn.fR.SystemOverview),this.logger.info("My Rig ",b),this.rigItems=b,this.myRigFeature.header=N?"preferences.myRig.workstationHeader":"preferences.myRig.geforceHeader",this.viewDetailsButtonText=N?"system.overview.viewSystemDetails":"system.overview.viewRigDetails",this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppSystemOverviewViewRenderEnd],cn.fR.SystemOverview)},b=>{this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppSystemOverviewDataFetchEnd,cn.mM.NvAppSystemOverviewViewRenderStart,cn.mM.NvAppSystemOverviewViewRenderEnd],cn.fR.SystemOverview),this.logger.error("Error occurred while fetching my rig",b)})}getControlPanelPreference(){this.legacyControlPanelService.getControlPanelClientInfo().pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.logger.info("Control Panel feature preference ",b),this.controlPanelFeatureEnabled=b?.isClientInstalled},b=>{this.logger.error("Error occurred while fetching control panel feature support",b)})}listenToLoadingSpinner(){this.loadingSpinner.getLoadingSpinner().subscribe(b=>{this.isLoading=b},Rt.l)}getDisplaysInfo(){this.displaysService.gpuDisplayInfo.pipe((0,ji.s)(1)).subscribe(b=>{this.logger.info("GPU Info received"),this.gpuInfo=b?.gpus},Rt.l)}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete(),this.systemDetailsService.clearLoadingSpinner()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(si.g),n.rXU(Tu),n.rXU(Or.H0),n.rXU(Eu),n.rXU(jf),n.rXU(gr.M),n.rXU(yo.R),n.rXU(Ui.SQ))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-system-overview"]],decls:1,vars:1,consts:[["class","system-overview-container",4,"ngIf"],[1,"system-overview-container"],[1,"my-rig-header"],[1,"font-sub1","font-color-primary","text"],["mat-button","","class","font-button2 view-details-btn","nvAppTextButtonSpinner","",3,"showSpinner","disabled","buttonText","click",4,"ngIf"],["class","my-rig-container",3,"featureReadyState","ngClass",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-button","","nvAppTextButtonSpinner","",1,"font-button2","view-details-btn",3,"click","showSpinner","disabled","buttonText"],[1,"my-rig-container",3,"featureReadyState","ngClass"],[1,"section-divider"]],template:function(b,N){1&b&&n.DNE(0,Ia,9,7,"div",0),2&b&&n.Y8G("ngIf",N.rigItems&&N.rigItems.length>0)},dependencies:[$i.YU,$i.Sq,$i.bT,Ur.iV,pi.q,fs.PW,Aa.u,ml,qo,Hd,Xr.D9],styles:[".system-overview-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.system-overview-container[_ngcontent-%COMP%]   .my-rig-container[_ngcontent-%COMP%]{padding-left:var(--system-item-padding);padding-bottom:24px}.system-overview-container[_ngcontent-%COMP%]   .last[_ngcontent-%COMP%]{padding-bottom:0}.system-overview-container[_ngcontent-%COMP%]   .section-divider[_ngcontent-%COMP%]{margin-top:16px}.system-overview-container[_ngcontent-%COMP%]   .my-rig-header[_ngcontent-%COMP%]{display:flex;padding:16px 0;align-items:flex-start}.system-overview-container[_ngcontent-%COMP%]   .my-rig-header[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{flex:1}.system-overview-container[_ngcontent-%COMP%]   .my-rig-header[_ngcontent-%COMP%]   .view-details-btn[_ngcontent-%COMP%]{height:36px}"]}),$})();const Qh=["systemTabGroup"];function Up(F,$){1&F&&n.nrm(0,"nv-app-page-load-spinner")}function wg(F,$){if(1&F&&(n.qex(0),n.EFF(1),n.nI1(2,"translate"),n.bVm()),2&F){const U=n.XpG(5);n.R7$(),n.SpI(" ",n.bMT(2,1,U.overviewTabTitle)," ")}}function nm(F,$){1&F&&(n.qex(0),n.EFF(1),n.nI1(2,"translate"),n.bVm()),2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"performance.title")," "))}function Wf(F,$){1&F&&(n.qex(0),n.EFF(1),n.nI1(2,"translate"),n.bVm()),2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"system.video.title")," "))}function Ig(F,$){1&F&&(n.qex(0),n.EFF(1),n.nI1(2,"translate"),n.bVm()),2&F&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"system.display.title")," "))}function Bp(F,$){if(1&F&&(n.j41(0,"span",10),n.qex(1,8),n.DNE(2,wg,3,3,"ng-container",9)(3,nm,3,3,"ng-container",9)(4,Wf,3,3,"ng-container",9)(5,Ig,3,3,"ng-container",9),n.bVm(),n.k0s()),2&F){const U=n.XpG(),b=U.$implicit,N=U.index,Ce=n.XpG(3);n.Y8G("ngClass",Ce.selectedTabIndex===N?"font-color-primary":"font-color-secondary"),n.R7$(),n.Y8G("ngSwitch",b),n.R7$(),n.Y8G("ngSwitchCase",Ce.systemTabs.Overview),n.R7$(),n.Y8G("ngSwitchCase",Ce.systemTabs.Performance),n.R7$(),n.Y8G("ngSwitchCase",Ce.systemTabs.Video),n.R7$(),n.Y8G("ngSwitchCase",Ce.systemTabs.Display)}}function $f(F,$){1&F&&(n.qex(0),n.j41(1,"div",11),n.nrm(2,"nv-app-system-overview"),n.k0s(),n.bVm())}function Pu(F,$){if(1&F&&(n.qex(0),n.j41(1,"div",11),n.nrm(2,"nv-app-performance",12),n.k0s(),n.bVm()),2&F){const U=n.XpG(4);n.R7$(2),n.Y8G("selectedIndex",U.selectedTabIndex)}}function zf(F,$){1&F&&(n.qex(0),n.j41(1,"div",11),n.nrm(2,"nv-app-video-page"),n.k0s(),n.bVm())}function Vp(F,$){1&F&&(n.qex(0),n.j41(1,"div",13),n.nrm(2,"nv-app-displays-page"),n.k0s(),n.bVm())}function Gp(F,$){if(1&F&&(n.qex(0),n.j41(1,"mat-tab"),n.DNE(2,Bp,6,6,"ng-template",7),n.qex(3,8),n.DNE(4,$f,3,0,"ng-container",9)(5,Pu,3,1,"ng-container",9)(6,zf,3,0,"ng-container",9)(7,Vp,3,0,"ng-container",9),n.bVm(),n.k0s(),n.bVm()),2&F){const U=$.$implicit,b=n.XpG(3);n.R7$(3),n.Y8G("ngSwitch",U),n.R7$(),n.Y8G("ngSwitchCase",b.systemTabs.Overview),n.R7$(),n.Y8G("ngSwitchCase",b.systemTabs.Performance),n.R7$(),n.Y8G("ngSwitchCase",b.systemTabs.Video),n.R7$(),n.Y8G("ngSwitchCase",b.systemTabs.Display)}}function Zh(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",4)(1,"mat-tab-group",5,1),n.bIt("selectedTabChange",function(N){n.eBV(U);const Ce=n.XpG(2);return n.Njj(Ce.tabChanged(N))}),n.DNE(3,Gp,8,5,"ng-container",6),n.k0s()()}if(2&F){const U=n.XpG(2);n.R7$(),n.Y8G("@.disabled",U.disableTabAnimation),n.R7$(2),n.Y8G("ngForOf",U.systemTabList)}}function uc(F,$){if(1&F&&n.DNE(0,Zh,4,2,"div",3),2&F){const U=n.XpG();n.Y8G("ngIf",U.systemTabList.length)}}const Hp=[{path:"",pathMatch:"full",redirectTo:Se.f.Home},{path:Se.f.Home,loadChildren:()=>c.e(588).then(c.bind(c,26588)).then(F=>F.HomeModule),data:{reuse:!0}},{path:Se.f.Drivers,loadChildren:()=>c.e(909).then(c.bind(c,75909)).then(F=>F.DriversModule),data:{reuse:!0}},{path:Se.f.Manage3dSettings,loadChildren:()=>c.e(450).then(c.bind(c,30450)).then(F=>F.Manage3dSettingsModule),data:{reuse:!0}},{path:Se.f.Rewards,loadChildren:()=>c.e(556).then(c.bind(c,66175)).then(F=>F.RewardsModule),data:{reuse:!0},component:Bt},{path:Se.f.Preferences,loadChildren:()=>c.e(816).then(c.bind(c,72816)).then(F=>F.PreferencesModule),data:{reuse:!1},component:zi},{path:Se.f.System,loadChildren:()=>c.e(893).then(c.bind(c,35893)).then(F=>F.SystemModule),data:{reuse:!0},component:(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn,x,k){this.loggingService=b,this.appBarService=N,this.windowService=Ce,this.displaysService=ft,this.videoService=Jt,this.pageVisitTelemetryService=wn,this.systemUtilService=x,this.hardwareInfoService=k,this.destroy$=new fo.B7,this.disableTabAnimation=!0,this.selectedTabIndex=0,this.systemTabList=[],this.systemTabs=vo,this.isLoading=!1,this.overviewTabTitle="",this.videoSupported$=new An.m(1),this.displaysSupported$=new An.m(1),this.logger=this.loggingService.getLogger("nvapp/SystemComponent"),this.appBarService.setTitle("preferences.system"),this.loadingSpinner=new Is.k}ngOnInit(){this.setOverviewTabTitle(),this.listenForTabEnteredSystemView(),this.displaysService.initialize(),this.updateTabSupport(),this.listenToDisplaySelectionChanges(),this.checkDisplaysTabCapability(),this.videoService.initialize(),this.listenForVideoSupport(),this.listenToLoadingSpinner()}tabChanged(b){this.logger.info(b.index),this.selectedTabIndex=b.index,this.systemUtilService.tabChanged(this.selectedTabIndex),setTimeout(()=>this.windowService.window.dispatchEvent(new Event("resize")))}listenForTabEnteredSystemView(){const b=Vi.map(N=>this.getTabEntered$(N));(0,io.h)(...b).pipe((0,xr.M)(N=>{this.pageVisitTelemetryService.setTabChangedForPageEventTelemetry(N)}),(0,pr.Q)(this.destroy$)).subscribe(Rt.l,N=>this.logger.error("failed to register for tab entered for page visit event for system tabs",N))}getTabEntered$(b){return this.systemUtilService.tabEntered$(b).pipe((0,Rn.T)(N=>this.systemUtilService.getSystemViewNameFromSystemTab(b)))}getUnsupportedTabs(b,N){return[b?null:vo.Video,N?null:vo.Display].filter(Ce=>null!==Ce)}listenForVideoSupport(){(0,Ts.zV)([this.videoService.vsrInfo$,this.videoService.hdrInfo$]).pipe((0,xr.M)(([b,N])=>{this.videoSupported$.next(b.isSupported||N.isSupported)}),(0,wr.W)(b=>(this.videoSupported$.next(!1),this.logger.error("Error fetching Video support:",b),(0,yr.of)(null))),(0,pr.Q)(this.destroy$)).subscribe()}listenToDisplaySelectionChanges(){this.displaysService.deepLinkDisplay.pipe((0,pr.Q)(this.destroy$)).subscribe(b=>{if(b){this.logger.info("Displays tab selected with deep link",b);const N=this.systemUtilService.getTabIndex(vo.Display);this.selectedTabIndex=N,this.systemTabGroup.selectedIndex=N}},b=>{this.logger.error("Error while listening to display deep link change",b)})}checkDisplaysTabCapability(){this.displaysService.gpuDisplayInfo.pipe((0,Rn.T)(b=>{let N=0;return b&&b.gpus.length>0&&b.gpus.forEach(Ce=>{N+=Ce.displays.length}),N>0}),(0,pr.Q)(this.destroy$)).subscribe(b=>{this.displaysSupported$.next(b)})}updateTabSupport(){this.loadingSpinner.triggerLoadingIndicator(!0),(0,Ts.zV)([this.videoSupported$.asObservable(),this.displaysSupported$.asObservable()]).pipe((0,pr.Q)(this.destroy$)).subscribe(([b,N])=>{this.logger.info("Support of tabs",b,N),this.systemTabList=this.systemUtilService.resetTabList(this.getUnsupportedTabs(b,N)),this.loadingSpinner.triggerLoadingIndicator(!1)},b=>{this.logger.error("Error updating tab support",b),this.systemTabList=this.systemUtilService.resetTabList(this.getUnsupportedTabs(!1,!1)),this.loadingSpinner.triggerLoadingIndicator(!1)})}listenToLoadingSpinner(){this.loadingSpinner.getLoadingSpinner().subscribe(b=>{this.isLoading=b},Rt.l)}setOverviewTabTitle(){this.hardwareInfoService.getQuadroSystemFlag().pipe((0,pr.Q)(this.destroy$)).subscribe(b=>{this.overviewTabTitle=b?"system.overview.workstationTitle":"system.overview.geForceTitle"},b=>this.logger.error("Error fetching Quadro system flag",b))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.displaysService.cleanUpListener(),this.loadingSpinner.clear(),this.systemUtilService.tabChanged(0)}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(si.g),n.rXU(Ui.s7),n.rXU(yo.R),n.rXU(gd),n.rXU(Yr.V),n.rXU(Pd),n.rXU(Ui.SQ))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-system"]],viewQuery:function(b,N){if(1&b&&n.GBs(Qh,5),2&b){let Ce;n.mGM(Ce=n.lsd())&&(N.systemTabGroup=Ce.first)}},decls:3,vars:2,consts:[["systemPage",""],["systemTabGroup",""],[4,"ngIf","ngIfElse"],["class","system-container",4,"ngIf"],[1,"system-container"],["mat-stretch-tabs","false",1,"system-page-tabs","common-tabs",3,"selectedTabChange"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"font-sub2",3,"ngClass"],[1,"tab-content"],[3,"selectedIndex"],[1,"displays-tab-content"]],template:function(b,N){if(1&b&&n.DNE(0,Up,1,0,"nv-app-page-load-spinner",2)(1,uc,1,1,"ng-template",null,0,n.C5r),2&b){const Ce=n.sdS(2);n.Y8G("ngIf",N.isLoading)("ngIfElse",Ce)}},dependencies:[$i.YU,$i.Sq,$i.bT,$i.ux,$i.e1,jo.ES,jo.mq,jo.T8,fs.PW,cr.Q,ff,Pf,Rp,Ua,Xr.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((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}[_nghost-%COMP%]{--system-item-padding: 16px}.system-container[_ngcontent-%COMP%], .system-page-tabs[_ngcontent-%COMP%]{height:100%;min-height:100%;min-width:100%;width:100%}.system-page-tabs[_ngcontent-%COMP%]   .tab-content[_ngcontent-%COMP%]{height:100%;min-height:100%;padding:0 var(--rwd-container-side-spacing);width:calc(calc(12 * var(--rwd-column-size) + 11 * var(--rwd-gutter-size)));max-width:calc(1440px - var(--rwd-sidebar-width) - 2 * var(--rwd-container-side-spacing))}.system-page-tabs[_ngcontent-%COMP%]   .displays-tab-content[_ngcontent-%COMP%]{padding-right:var(--rwd-container-side-spacing);width:calc(calc(12 * var(--rwd-column-size) + 11 * var(--rwd-gutter-size)) + var(--rwd-container-side-spacing));max-width:calc(1440px - var(--rwd-sidebar-width) - var(--rwd-container-side-spacing))}"]}),$})()},{path:"**",pathMatch:"full",redirectTo:Se.f.Home}];class Rg extends Go.Gl{shouldReuseRoute($,U){return $.data.reuse}}let Kf=(()=>{var F;class ${}return(F=$).\u0275fac=function(b){return new(b||F)},F.\u0275mod=n.$C({type:F}),F.\u0275inj=n.G2t({imports:[Go.iI.forRoot(Hp,{useHash:!0}),Go.iI]}),$})();var wu=c(34593),iu=c(83983);function jp(F,$){if(1&F&&(n.j41(0,"p",10),n.EFF(1),n.k0s()),2&F){const U=$.$implicit;n.R7$(),n.SpI(" ",U," ")}}let Sd=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn){this.appConfig=b,this.redirectService=N,this.loggingService=Ce,this.dialogRef=ft,this.eulaService=Jt,this.localeService=wn,this.productVersionText={productVersion:""},this.logger=this.loggingService.getLogger("nvapp/EulaModalComponent")}ngOnInit(){this.getDisclosureInfo(),this.productVersionText.productVersion=this.appConfig?.build?.version;const b=this.redirectService.getRedirectUrl(Te.r7.PrivacyPolicy),N=this.redirectService.getRedirectUrl(Te.r7.TermsConditions);(0,Ol.yU)(b,N).pipe((0,ji.s)(1)).subscribe(([Ce,ft])=>{this.privacyPolicyLink=Ce,this.termsOfUseLink=ft},Ce=>{this.logger.error("Error occurred while initializing EULA details ",Ce)})}agreeAndContinue(){this.logger.info("Closing dialog box and setting up the user consent"),this.dialogRef.close(),this.eulaService.setEulaAccepted().pipe((0,ji.s)(1)).subscribe(b=>{this.eulaService.updateEulaAccepted(!0),this.logger.info("Consent has been set")},b=>{this.eulaService.updateEulaAccepted(!0),this.logger.error("Error occurred while setting user consent",b)})}getDisclosureInfo(){this.localeService.localeChanged.pipe((0,Br.n)(b=>this.eulaService.getDisclosureText(b)),(0,ji.s)(1)).subscribe(b=>{this.disclosureInfo=b.split("\n").filter(N=>"\r"!==N)},b=>this.logger.info("Error occurred while getting disclosure text ",b))}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(is.Vk),n.rXU(Te.Q5),n.rXU(Ui.J6),n.rXU(go.CP),n.rXU(iu.h),n.rXU(Ui.iH))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-eula-modal"]],decls:23,vars:19,consts:[[1,"eula-modal"],[1,"eula-header"],["svgIcon","nvidiaBranding",1,"logo"],["mat-dialog-title","",1,"font-header6","title"],[1,"font-body2","eula-content"],["class","font-body2 text",4,"ngFor","ngForOf"],[1,"text","end-text"],["target","_blank",1,"font-body2-link",3,"href"],["align","end",1,"eula-actions"],["mat-raised-button","",1,"font-button2","mat-accent",3,"click"],[1,"font-body2","text"]],template:function(b,N){1&b&&(n.j41(0,"div",0)(1,"div",1),n.nrm(2,"mat-icon",2),n.j41(3,"p",3),n.EFF(4),n.nI1(5,"translate"),n.k0s()(),n.j41(6,"mat-dialog-content",4),n.DNE(7,jp,2,1,"p",5),n.j41(8,"p",6),n.EFF(9),n.nI1(10,"translate"),n.k0s(),n.j41(11,"span")(12,"a",7),n.EFF(13),n.nI1(14,"translate"),n.k0s()(),n.j41(15,"span")(16,"a",7),n.EFF(17),n.nI1(18,"translate"),n.k0s()()(),n.j41(19,"mat-dialog-actions",8)(20,"button",9),n.bIt("click",function(){return N.agreeAndContinue()}),n.EFF(21),n.nI1(22,"translate"),n.k0s()()()),2&b&&(n.R7$(4),n.SpI(" ",n.i5U(5,8,"eula.nvAppVersionText",N.productVersionText)," "),n.R7$(3),n.Y8G("ngForOf",N.disclosureInfo),n.R7$(2),n.JRh(n.bMT(10,11,"eula.textFive")),n.R7$(3),n.Y8G("href",N.termsOfUseLink,n.B4B),n.R7$(),n.SpI(" ",n.bMT(14,13,"eula.agreeToTermsOfUse")," "),n.R7$(3),n.Y8G("href",N.privacyPolicyLink,n.B4B),n.R7$(),n.SpI(" ",n.bMT(18,15,"eula.privacyText")," "),n.R7$(4),n.SpI(" ",n.bMT(22,17,"eula.agreeAndContinue")," "))},dependencies:[$i.Sq,fl.r,gl.e,Ca.Aq,Ur.iV,ds.An,go.BI,go.Yi,go.E7,Xr.D9],styles:[".eula-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.eula-modal[_ngcontent-%COMP%]   .eula-header[_ngcontent-%COMP%]{display:flex;flex-direction:column}.eula-modal[_ngcontent-%COMP%]   .eula-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 24px;margin:0;flex:1 1 auto}.eula-modal[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{margin:9px 0}.eula-modal[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{width:168px;height:30px;margin-top:38px;margin-left:24px}.eula-modal[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin:30px 24px 10px;letter-spacing:.15px;padding:0}.eula-modal[_ngcontent-%COMP%]   .end-text[_ngcontent-%COMP%]{margin-bottom:0}.eula-modal[_ngcontent-%COMP%]   .eula-actions[_ngcontent-%COMP%]{height:52px;padding:12px 8px 0;align-items:flex-end;margin:0 0 8px}"]}),$})();var Xo=c(5932),bd=c(53698);let Pc=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn){this.bridgeService=b,this.genericDialog=Ce,this.downloaderService=ft,this.telemetryService=Jt,this.redirectService=wn,this.errorDialogLinkClicked=(x,k,_e)=>{this.logger.info("link clicked"),this.redirectService.getRedirectUrl(Te.r7.NvappMainPage).pipe((0,ji.s)(1)).subscribe(lt=>{this.logger.info("Redirect to URL",lt),window.open(lt)?this.sendTelemetryEvent(x,k,ut.fs.Redirect,ut.fb.Success):this.sendTelemetryEvent(x,k,ut.fs.Redirect,ut.fb.Failure,_e)})},this.handleDownloadProgress=x=>{x.downloadStatus===kr.Or.Common.Downloader.DownloadStatus.Prohibited&&this.showUpdateFailedErrorDialog("nvAppSelfUpdate.errorDialogHeaderText","nvAppSelfUpdate.errorDialogDescText",x?.version,ut.zP.DownloadAttemptExhausted)},this.logger=N.getLogger("SelfUpdateService"),this.updateInternalSubject=new Xo.Subject}initialize(){this.checkLastInstallerStatus(),this.registerForNotifications()}registerForNotifications(){this.registerDriverUpdateCheckProgressNotification(),this.registerAutoUpdateProgressNotification(),this.triggerAutoUpdateCheck()}getUpdateAvailableObservable(){return this.updateInternalSubject.asObservable()}restartApp(){this.bridgeService.executeCommand(kr.Ts.Common.Applicationcontrol.Restart,{launchArguments:""}).subscribe()}showUpdateFailedErrorDialog(b,N,Ce,ft,Jt){const wn={text:"nvAppSelfUpdate.errorDialogLinkText",linkClickedCallback:this.errorDialogLinkClicked.bind(this,Ce,ft,Jt)};let x;Jt&&(x={text:"common.errorCode",placeholders:{errorCode:Jt}});const k=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:b},bodyText:{text:N},primaryButton:{text:"common.close"},link:wn,errorCodeText:Jt?x:null}});ft&&this.sendTelemetryEvent(Ce,ft,ut.fs.PopupShown,ut.fb.Success),k.primaryButtonClick.pipe((0,ji.s)(1)).subscribe(()=>{this.logger.info("close clicked "),k.close()})}triggerAutoUpdateCheck(){const b={componentName:bd.ZX.NVAPP};this.logger.info("Triggering TriggerAutoUpdate() call"),this.bridgeService.executeCommand(kr.Ts.Common.Downloader.TriggerAutoUpdate,b).subscribe(N=>{this.logger.info("self update triggered successfully with response: ",N)},N=>{this.logger.info("self update failed with error: ",N)})}registerDriverUpdateCheckProgressNotification(){this.bridgeService.executeCommand(kr.Ts.Common.Downloader.RegisterCheckForUpdateProgress).subscribe(b=>{this.logger.info("received check for update event for nvapp with status :",b)},b=>{this.logger.error("Failed to RegisterCheckForUpdateProgress with Error :",b)})}registerAutoUpdateProgressNotification(){this.bridgeService.executeCommand(kr.Ts.Common.Downloader.RegisterAutoUpdateProgress).pipe((0,Lc.p)(b=>b.componentName===bd.ZX.NVAPP)).subscribe(b=>{this.logger.info("received AutoUpdateProgressInfo event for nvapp with status :",b),b.updateState===kr.Or.Common.Downloader.UpdateState.UpdateSuccessful&&b.updateExecutionPhase===kr.Or.Common.Downloader.UpdateExecutionPhase.PostProcessingEnd?this.handleDownloadCompleted(b.taskId):b.updateState===kr.Or.Common.Downloader.UpdateState.UpdateFailed&&(b.updateExecutionPhase===kr.Or.Common.Downloader.UpdateExecutionPhase.UpdateCheckEnd?this.handleUpdateCheckFailure():this.handleDownloadFailed(b))},b=>{this.logger.error("Failed to RegisterCheckForUpdateProgress with Error :",b)})}getLatestUpdateCheckTime(){return this.bridgeService.executeCommand(kr.Ts.Common.Downloader.GetLatestUpdateCheckTime,{componentName:bd.ZX.NVAPP}).pipe((0,xr.M)(N=>{this.logger.info("GetLatestUpdateCheckTime returns ",N)}),(0,Rn.T)(N=>N?.latestUpdatecheckTime))}getFirstBootTimeAfterInstall(){return this.bridgeService.executeCommand(kr.Ts.Common.Downloader.GetFirstBootTimeAfterInstall).pipe((0,xr.M)(b=>{this.logger.info("GetFirstBootTimeAfterInstall returns ",b)}),(0,Rn.T)(b=>b.firstBootTime))}getMaxDaysBetweenReleases(){return this.bridgeService.executeCommand(kr.Ts.Common.Downloader.GetMaxDaysBetweenReleases,{componentName:bd.ZX.NVAPP}).pipe((0,xr.M)(N=>{this.logger.info("getMaxDaysBetweenReleases returns ",N)}),(0,Rn.T)(N=>N.maxDaysBetweenReleases),(0,wr.W)(N=>(this.logger.error("Error Calling GetMaxDaysBetweenReleases api",N),(0,Nn.$)(N))))}handleUpdateCheckFailure(){this.getLatestUpdateCheckTime().pipe((0,Br.n)(b=>b.length>0?(0,yr.of)(b):this.getFirstBootTimeAfterInstall()),(0,ra.ZZ)(b=>(0,Ts.zV)([(0,yr.of)(b),this.getMaxDaysBetweenReleases()])),(0,ji.s)(1)).subscribe(([b,N])=>{if(this.logger.info("lastUpdateOrBootTime is: ",b,"maxDays between check for udpate",N),b.length>0&&N>0){const Ce=60*N*60*24,ft=new Date(b).getTime(),Jt=(new Date).getTime();Math.max(0,Math.floor((Jt-ft)/1e3))>Ce&&this.showUpdateFailedErrorDialog("nvAppSelfUpdate.updateCheckErrorDialogHeaderText","nvAppSelfUpdate.updateCheckErrorDialogDescText","",ut.zP.UpdateAttemptExhausted)}},b=>{this.logger.error("GetLatestUpdateCheckTime() failed with error: ",b)})}handleDownloadFailed(b){b.taskId?this.downloaderService.getTaskDownloadStatus(bd.ZX.NVAPP,b.taskId).subscribe(N=>{this.logger.info("gtTaskDownloadStatus for Nvapp is",N),this.handleDownloadProgress(N)},N=>{this.logger.error("Failed getTaskDownloadStatus with Error :",N)}):this.logger.info("update failed with task id is empty")}isLastInstallationDataValid(b){return!!b&&!(0,Cr.isEmpty)(b.errorcode)}checkLastInstallerStatus(){this.bridgeService.executeCommand(kr.Ts.Common.Applicationcontrol.RequestLastInstallerStatus).subscribe(b=>{this.logger.info("getRequestLastInstallerStatus",b),this.isLastInstallationDataValid(b)?(this.installationFailedForClientVersion=b.clientversion,this.showUpdateFailedErrorDialog("nvAppSelfUpdate.errorDialogHeaderText","nvAppSelfUpdate.errorDialogDescText",this.installationFailedForClientVersion,ut.zP.InstallationAttemptExhausted,b.errorcode)):(this.logger.error("Last Installation Data is not valid",b),this.installationFailedForClientVersion=null)},b=>{this.logger.error("getRequestLastInstallerStatus returns error ",b),this.installationFailedForClientVersion=null})}handleDownloadCompleted(b){(0,Cr.isEmpty)(this.installationFailedForClientVersion)||(0,Cr.isEmpty)(b)?(this.logger.info(" Last installation was either succeed or no installation triggered"),this.updateInternalSubject.next("")):this.downloaderService.getTaskDownloadStatus(bd.ZX.NVAPP,b).subscribe(N=>{this.logger.info("getTaskDownloadStatus for Nvapp is:",N),N.version.toLowerCase()!==this.installationFailedForClientVersion.toLowerCase()&&this.updateInternalSubject.next(N.version)},N=>{this.logger.error("Failed getTaskDownloadStatus with Error :",N)})}sendTelemetryEvent(b,N,Ce,ft,Jt){(0,Ol.yU)(this.telemetryService.getCommonDataObservable(),this.telemetryService.getDeviceConsentObservable()).pipe((0,ji.s)(1)).subscribe(wn=>{const x={category:N,action:Ce,errorDetails:Jt||"",status:ft,newVersion:b||""};this.logger.info("send telemetry of data",x);const k=new ut.OC(x);this.telemetryService.push(k,null)})}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.NZ),n.KVO(Ui.J6),n.KVO(Na.uh),n.KVO(Di.z),n.KVO(Or.H0),n.KVO(Te.Q5))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var ru=c(25872);let Lg=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn,x,k){this.loggingService=b,this.appConfig=N,this.distributedTracingUtilService=Ce,this.systemInfoService=ft,this.localeService=Jt,this.loginService=wn,this.cloudHelperService=x,this.nvAccountInterfaceService=k,this.disableTracingReplaySubject=new An.m(1),this.globalTagsReplaySubject=new An.m(1),this.logger=b.getLogger("nvapp/DistributedTracingBootstrapService")}initializeDistributedTracing(){const b={exportConfig:{...this.appConfig.otelTracerConfig},apiTracingConfig:{urlRegex:this.appConfig.distributedTracing.xhrAllowList},statusCodeZeroAnalyzerConfig:{...this.appConfig.statusCodeZeroAnalyzerConfig}};this.distributedTracingUtilService.initializeDistributedTracing(b,this.disableTracingReplaySubject,this.globalTagsReplaySubject),this.setGlobalTags(),(0,Ts.zV)([this.nvAccountInterfaceService.getPrivacySettingsConsentInfo(),this.cloudHelperService.getFeatureToggles()]).subscribe(([N,Ce])=>{this.logger.info(`Tracing Toggle from Cloud: ${Ce?.lightstepToggle}, Functional Consent: ${N?.deviceConsent?.hasFunctionalConsent}`),this.disableTracingReplaySubject.next(!(Ce?.lightstepToggle&&N?.deviceConsent?.hasFunctionalConsent))},N=>this.logger.error("Error occurred while getting privacy consent and cloud variable details ",N)),this.listenToPrivacySettingConsentInfoChangeNotification()}listenToPrivacySettingConsentInfoChangeNotification(){this.nvAccountInterfaceService.getPrivacySettingsConsentInfoChangeNotification().subscribe(b=>{this.logger.info("Device consent info updated ",b),this.disableTracingReplaySubject.next(!b?.deviceConsent?.hasFunctionalConsent)},b=>this.logger.error("Error occurred while listening to privacy settings consent change notification ",b))}setGlobalTags(){const b=(0,yr.of)({[Ko.NS.ServiceVersion]:this.appConfig?.build?.version,[Ko.NS.ServiceType]:Ko.Se.Native_Windows,[Ko.NS.SpanKind]:Ko.ls.Client,[Ko.NS.AppName]:"NvApp"}),N=this.systemInfoService.getSystemInfo([Ui.Lu.DeviceId]).pipe((0,Rn.T)(wn=>({[Ko.NS.DeviceId]:wn.DeviceId})),(0,wu.Z)({})),Ce=this.systemInfoService.getSystemInfo([Ui.Lu.Platform,Ui.Lu.OSName,Ui.Lu.OSVersion]).pipe((0,Rn.T)(wn=>({[Ko.NS.ClientOs]:wn.Platform,[Ko.NS.ClientOsName]:wn.OSName,[Ko.NS.ClientOsVersion]:wn.OSVersion})),(0,wu.Z)({}),(0,wr.W)(wn=>(this.logger.info(`Error fetching osInfo: ${wn}`),(0,yr.of)({})))),ft=this.localeService.localeChanged.pipe((0,Rn.T)(wn=>({[Ko.NS.Locale]:wn})),(0,wu.Z)({})),Jt=this.loginService.accountStatusChanged.pipe((0,Rn.T)(wn=>({[Ko.NS.LoginStatus]:wn?.isAuthenticated})),(0,wu.Z)({}));(0,Ts.zV)([b,N,Ce,ft,Jt]).subscribe(([wn,x,k,_e,lt])=>{const Wt=(0,Cr.merge)({},wn,x,k,_e,lt);this.logger.info("Setting the global tags:",Wt),this.globalTagsReplaySubject.next(Wt)})}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.J6),n.KVO(is.Vk),n.KVO(Ko.Z1),n.KVO(Ui.zW),n.KVO(Ui.iH),n.KVO(ur.HF),n.KVO(ru.r),n.KVO(Jo.W))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var Fs=c(5798);let Ng=(()=>{var F;class ${constructor(b,N,Ce){this.injector=b,this.statusCodeZeroAnalyzerFactoryService=Ce,this.logger=N.getLogger("http-telemetry.service"),this.reverseOriginalService=new Map,Object.keys(ut.Uu).forEach(ft=>{this.reverseOriginalService.set(ut.Uu[ft],ft)})}getStatusCodeZeroAnalyzer(){if(this.statusCodeZeroAnalyzer)return this.statusCodeZeroAnalyzer;const b=this.injector.get(is.Vk)?.statusCodeZeroAnalyzerConfig;return this.statusCodeZeroAnalyzer=this.statusCodeZeroAnalyzerFactoryService.createAnalyzer(b),this.statusCodeZeroAnalyzer}getRetryCount(b){return(0,Cr.isNil)(b)||(0,Cr.isNil)(b.retryCount)?0:parseInt(b.retryCount,10)}getResponseData(b){let N="";if(!(0,Cr.isNil)(b.body)&&!(0,Cr.isNil)(b.status)){const Ce=b.status;Ce>0&&(Ce<200||Ce>=300)&&(N=JSON.stringify(b.body),N=N.substring(0,1024))}return N}getOriginalService(b){return(0,Cr.isNil)(b)||(0,Cr.isNil)(b.originalService)||(0,Cr.isNil)(this.reverseOriginalService.get(b.originalService))?ut.Uu.Other:ut.Uu[this.reverseOriginalService.get(b.originalService)]}getServiceUseCase(b){return(0,Cr.isNil)(b)||(0,Cr.isNil)(b.serviceUseCase)?ut.We.Other:b.serviceUseCase}getServiceSubUseCase(b){return(0,Cr.isNil)(b)||(0,Cr.isNil)(b.serviceSubUseCase)?ut.We.Other:b.serviceSubUseCase}sendHTTPCallResult(b,N){(0,Cr.isNil)(this.telemetryService)&&(this.telemetryService=this.injector.get(Or.H0)),(0,Cr.isNil)(this.telemetryUtilService)&&(this.telemetryUtilService=this.injector.get(ut.AY));const Ce=N?b.options.includeRequestId?b.options.headers[Fs.SA.xRequestId]:"":b.response.xRequestId?b.response.xRequestId:"";N||(this.getErrorInfo$=0!==b.response.status?(0,yr.of)({statusCode:b.response.status}):this.getStatusCodeZeroAnalyzer().getFailureCode({requestUrl:b.response.url,uniqueRequestId:Ce})),(0,Cr.isNil)(this.telemetryService)||(0,Cr.isNil)(this.telemetryUtilService)?this.logger.warn("Unable to send event for http request: ",b.response.url):(0,Ol.yU)(this.telemetryService.getCommonDataObservable(),this.telemetryService.getDeviceConsentObservable()).pipe((0,ra.ZZ)(ft=>(0,zl.T)(()=>!N,this.getErrorInfo$,(0,yr.of)({})))).subscribe(ft=>{const wn=ft?.cachedDNSEntry?.destinationIp||"",x=N?"":String(ft.statusCode),k=new ut.VD({sourceComponent:ut.sK.NvAppClient,originalService:this.getOriginalService(b.options.reportRequestData),serviceUseCase:this.getServiceUseCase(b.options.reportRequestData),serviceSubUseCase:this.getServiceSubUseCase(b.options.reportRequestData),url:b.response.url,networkErrorCode:x,destinationIp:wn,xRequestId:Ce,httpStatus:b.response.status||0,responseData:this.getResponseData(b.response),durationMs:parseInt(b.options.reportRequestData.requestEndTime,10)-parseInt(b.options.reportRequestData.requestStartTime,10)||0,retryCount:this.getRetryCount(b.options.reportRequestData),wasSWCacheBypassed:ut.T8.UNDEFINED});this.telemetryService.push(k)})}initialize(){this.logger.info("Initializing HTTP Telemetry Service"),Fs.sl.httpErrorEvents$().subscribe(b=>{this.sendHTTPCallResult(b,!1)}),Fs.sl.httpSuccessEvents$().subscribe(b=>{this.sendHTTPCallResult(b,!0)})}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(n.zZn),n.KVO(Ui.J6),n.KVO(Ui.pZ))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var Xf=c(70521);let Qf=(()=>{var F;class ${constructor(b,N){this.serviceWorkerService=b,this.loggingService=N,this.logger=this.loggingService.getLogger("ServiceWorkerUpdateService")}initialize(){this.serviceWorkerService.serviceWorkerSupported()&&(this.serviceWorkerService.swIsActive()&&this.logger.info("Initialize: SW already active"),this.handleServiceWorkerActivated(),this.autoUpdateOnAppLaunch())}activateServiceWorker(){return this.logger.info("NvApp SW Activation requested"),this.serviceWorkerService.activateServiceWorker()}checkForUpdates(){return(0,Vo.H)(this.serviceWorkerService.checkForUpdates()).pipe((0,ji.s)(1))}handleServiceWorkerActivated(){this.logger.info("NvApp SW Activated: Init"),this.serviceWorkerService.swActivated.subscribe(b=>{this.logger.info("NvApp SW Activated: New Service worker activated",b)},b=>this.logger.error("NvApp SW Activated: Error -",b.toString()))}autoUpdateOnAppLaunch(){this.logger.info("NvApp SW Auto Update: Init"),this.checkForUpdates().pipe((0,Lc.p)(b=>b.updateAvailable),(0,ra.ZZ)(b=>(this.logger.info("NvApp SW Auto Update: Requesting to activate."),this.activateServiceWorker()))).subscribe(b=>{this.logger.info("NvApp SW Auto Update: Activation result",b)},b=>this.logger.error("NvApp SW Auto Update: Request failed",b.toString()))}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Xf.lS),n.KVO(Ui.J6))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var Yd=c(45032),kg=c(73370),Zf=c(45276),Fg=c(58474),Yp=c(30081),Jf=c(43071),Wp=c(51917),$p=c(35184),Ws=c(1794),Ug=c(398);let im=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn){this.offDeviceLinkService=N,this.localeService=Ce,this.appConfig=ft,this.loginService=Jt,this.telemetryUtilService=wn,this.destroy$=new fo.B7,this.logger=b.getLogger("AccountService"),this.redirectUrl=ft.redirect.serverUrl,this.loginService.accountStatusChanged.pipe((0,pr.Q)(this.destroy$)).subscribe(x=>{this.user=x})}openAccountProfilePage(){this.openBrowserWindow(Te.r7.NvAppAccountManagementSSO,ur.fx.AppBar,Te.lp[Te.r7.NvAppAccountManagementSSO])}openBrowserWindow(b,N,Ce){this.telemetryUtilService.sendClickEvent(ut.EB.AccountManagementSso,N,!1),this.prepareProductMatrixURL(b).subscribe(ft=>{this.logger.info("opening browser with url: ",ft),this.offDeviceLinkService.open(ft,{shortUrl:Ce})},ft=>{this.logger.error("Failed to open web page "+b+" with error: ",ft.message)})}prepareProductMatrixURL(b){return this.localeService.localeChanged.pipe((0,ji.s)(1),(0,Rn.T)(N=>{const Ce=new URL(this.redirectUrl+N);return Ce.searchParams.append("page",b),Ce.toString()}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.J6),n.KVO(Na.nO),n.KVO(Ui.iH),n.KVO(is.Vk),n.KVO(ur.HF),n.KVO(ut.AY))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var zp=c(49752),Kp=c(81247);const Vg=["surveyFrame"];function Gg(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",5)(1,"iframe",6,0),n.bIt("load",function(N){n.eBV(U);const Ce=n.XpG();return n.Njj(Ce.onLoad(N))})("error",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onError())}),n.k0s()()}if(2&F){const U=n.XpG();n.Y8G("hidden",U.loadingFrame)("ngStyle",U.nvContainerSize),n.R7$(),n.Y8G("src",U.getSource(),n.f$h)("ngStyle",U.nvSize)}}function oh(F,$){if(1&F){const U=n.RV6();n.j41(0,"div")(1,"nv-hig-dialog",7),n.bIt("primaryButtonClick",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.dismiss())}),n.k0s()()}if(2&F){const U=n.XpG();n.R7$(),n.Y8G("data",U.dialogData)}}function tg(F,$){if(1&F&&(n.j41(0,"div",8)(1,"div"),n.nrm(2,"mat-progress-spinner",9),n.k0s()()),2&F){const U=n.XpG();n.Y8G("ngStyle",U.nvContainerSize),n.R7$(2),n.Y8G("diameter",35)}}let sh=(()=>{var F;class ${get state(){return this._state}set state(b){this.logger.info("state updated:",b),this._state=b}constructor(b,N){this.networkStatusService=N,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=b.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(b){this.loadEvent=b,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(b){switch(b.data){case"surveyengine.error":this.logger.error("invalid survey response",b.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(b=>{"main"!==this.state&&(this.state="main"),this.loadingFrame=!this.isSurveyError,b?this.isLoading||window.addEventListener("message",N=>{this.eventListener(N)}):(this.isLoading||this.checkIfFailSilently(),this.logger.info("showing survey error"),this.onError())},b=>{this.logger.error("Error fetching online status at load",b),this.onError()})}ngOnDestroy(){this.onlineSubscription&&this.onlineSubscription.unsubscribe()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Ui.CF))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-survey"]],viewQuery:function(b,N){if(1&b&&n.GBs(Vg,5),2&b){let Ce;n.mGM(Ce=n.lsd())&&(N.surveyFrame=Ce.first)}},hostBindings:function(b,N){1&b&&n.bIt("keyup.esc",function(){return N.onKeyUp()},!1,n.tSv)},inputs:{nvSize:"nvSize",nvContainerSize:"nvContainerSize",nvErrorSize:"nvErrorSize",nvSource:"nvSource",failSilently:"failSilently",isSurveyError:"isSurveyError"},outputs:{continue:"continue",nvOnClose:"nvOnClose",nvOnSend:"nvOnSend"},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(b,N){1&b&&(n.j41(0,"div",1),n.DNE(1,Gg,3,4,"div",2)(2,oh,2,1,"div",3),n.k0s(),n.DNE(3,tg,3,2,"div",4)),2&b&&(n.Y8G("ngSwitch",N.state),n.R7$(2),n.Y8G("ngSwitchCase","error"),n.R7$(),n.Y8G("ngIf",N.loadingFrame))},dependencies:[$i.bT,$i.B3,$i.ux,$i.e1,$i.fG,Kn.sA,fs.eI,Mc.LG,zp.u,Kp.D],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((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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%}"]}),$})();var $a=c(40482),jc=c(30783);let Hg=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn){this.sanitizer=N,this.dialog=Ce,this.translateService=ft,this.snackbar=Jt,this.focusManager=wn,this.feedbackUrl="",this.feedbackUrlLoaded=new ko.t(!1),this.logger=b.getLogger("FeedbackService"),this.userInfo$=new An.m(1)}getUserInfoUpdated(){return this.userInfo$.asObservable()}onAccountStatusChanged(b){this.userInfo$.next(b)}initializeFeedback(b,N,Ce,ft){return this.isAdminHubSurvey=!1,this.isAdminHubSurveyError=!1,Ce().pipe((0,ra.ZZ)(Jt=>Jt?N().pipe((0,ji.s)(1),(0,Rn.T)(wn=>(wn?(this.logger.info("AdminHub Feedback Survey feature is enabled and survey found"),this.setFeedbackUrl(wn.surveyContainerUrl),this.feedbackUrlLoaded.next(!0),this.isAdminHubSurvey=!0,this.subscribeToSurveyEvents(wn)):(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,yr.of)(!1))))}setFeedbackUrl(b){this.feedbackUrl=this.sanitizer.bypassSecurityTrustResourceUrl(b)}closeFeedbackDialog(){this.logger.trace($a.N_.UserGesture,$a.YD.Feedback,$a.PC.close," by clicking dismiss"),this.isFeedbackDialogOpen()&&this.globalDialogref.close()}isFeedbackDialogOpen(){return!(0,Cr.isNil)(this.globalDialogref)&&0===this.globalDialogref.getState()}setUpToastContainer(b){this.tc=b}onOpenFeedbackDialog(b){if(this.logger.trace($a.N_.UserGesture,$a.YD.Feedback,$a.PC.open,"feedback option"),!this.isFeedbackDialogOpen())return this.globalDialogref=this.focusManager.restoreFocusAfterClosed(()=>{const N=["dialogPaddingRemove","survey-cdk-overlay-pane"];return this.isAdminHubSurveyError&&N.push("survey-cdk-overlay-error-pane"),this.dialog.open(sh,{panelClass:N,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,ji.s)(1)).subscribe(N=>{this.onSurveySent(),this.globalDialogref.close()}),this.globalDialogref.componentInstance.nvOnClose.pipe((0,ji.s)(1)).subscribe(N=>{"escape"===N&&b(),this.globalDialogref.close()}),this.globalDialogref;this.logger.info("Feedback Dialog is already open")}feedbackUrlInitialized(){return this.feedbackUrlLoaded.asObservable()}onSurveySent(){this.logger.trace($a.N_.UserGesture,$a.YD.Feedback,$a.PC.close," by clicking send"),this.translateService.get("feedback.thanksMessage").subscribe(b=>{this.snackbar.open(b,"",{duration:7e3,horizontalPosition:"left",verticalPosition:"bottom",panelClass:["nv-hig"]})}),this.logger.info("survey sent")}subscribeToSurveyEvents(b){b?(this.surveyEventReferenceSubmitted=(0,Ws.subscribeToIFrameEvents)({surveyId:b.surveyId,type:Ws.SurveyEventType.Submitted},this.surveyEventListenerSubmitted.bind(this)),this.surveyEventReferenceDismissed=(0,Ws.subscribeToIFrameEvents)({surveyId:b.surveyId,type:Ws.SurveyEventType.Dismissed},this.surveyEventListenerDismissed.bind(this)),this.surveyEventReferenceCloseDialog=(0,Ws.subscribeToIFrameEvents)({surveyId:b.surveyId,type:Ws.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()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.J6),n.KVO(r.up),n.KVO(go.bZ),n.KVO(Xr.c$),n.KVO(jc.nf),n.KVO(Na.c_))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var Iu=function(F){return F.Stage="STAGE",F.Prod="PROD",F}(Iu||{}),_m=c(72271);let i=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn,x,k,_e,lt,Wt,an){this.systemInfoService=b,this.piplLocaleConfigService=N,this.feedbackService=Ce,this.telemetryService=ft,this.telemetryUtilService=wn,this.localeService=x,this.appConfig=k,this.exceptionInfoService=_e,this.libraryLoggingService=lt,this.loginService=Wt,this.distributedTracingUtilService=an,this.currentUser=ur.OV,this.surveyUrlSubject=new An.m,this.surveyTimeout={},this.logger=Jt.getLogger("SurveyService"),this.logger.info("Init Survey SDK for NvApp"),this.sdk=new Ws.SurveySdkService,this.surveySdkClientConfig={url:k.survey.server,defaultRetries:k.survey.defaultRetries,defaultTimeBetweenRetries:k.survey.defaultTimeBetweenRetries,defaultTimeout:k.survey.defaultTimeout,env:k.survey.server.includes("stg")?Iu.Stage:Iu.Prod,clientId:k.survey.clientId,clientVersion:k.build.version,clientVariant:this.telemetryUtilService.getClientVariantType(k.build.variant),surveyContainerBaseUrl:this.appConfig.survey.containerBaseUrl},this.clientSurveyResults=new Map,this.surveyEventReferenceSubmittedMap=new Map,this.surveyEventReferenceDismissedMap=new Map,this.surveyEventReferenceErrorMap=new Map,this.surveyEventReferenceSubmissionErrorMap=new Map,this.surveyEventReferenceCloseDialogMap=new Map,this.surveyEventReferenceLogListenerMap=new Map,this.registerForPiplLocalizationConfigUpdateEvent(),this.logger.info("Survey SDK Client Configs: ",this.surveySdkClientConfig)}subscribeToSurveyEvents(b){const N=b.triggerType,Ce=(0,Ws.subscribeToIFrameEvents)({surveyId:b.surveyId,type:Ws.SurveyEventType.Submitted},()=>this.surveyEventListenerSubmitted(N));this.surveyEventReferenceSubmittedMap.set(N,Ce);const ft=(0,Ws.subscribeToIFrameEvents)({surveyId:b.surveyId,type:Ws.SurveyEventType.Dismissed},()=>this.surveyEventListenerDismissed(N));this.surveyEventReferenceDismissedMap.set(N,ft);const Jt=(0,Ws.subscribeToIFrameEvents)({surveyId:b.surveyId,type:Ws.SurveyEventType.Errored},()=>this.surveyEventListenerErrored(N));this.surveyEventReferenceErrorMap.set(N,Jt);const wn=(0,Ws.subscribeToIFrameEvents)({surveyId:b.surveyId,type:Ws.SurveyEventType.SubmissionErrored},()=>this.surveyEventListenerSubmissionErrored(N));this.surveyEventReferenceSubmissionErrorMap.set(N,wn);const x=(0,Ws.subscribeToIFrameEvents)({surveyId:b.surveyId,type:Ws.SurveyEventType.CloseDialog},()=>this.surveyEventListenerCloseDialog(N));this.surveyEventReferenceCloseDialogMap.set(N,x),this.logger.info("Survey Event Reference Close Dialog Map:",this.surveyEventReferenceCloseDialogMap.size);const k=(0,Ws.subscribeToIFrameEvents)({surveyId:b.surveyId,type:Ws.SurveyEventType.Log},_e=>this.libraryLoggingService.sendLog(_e));this.surveyEventReferenceLogListenerMap.set(N,k)}surveyEventListenerSubmitted(b){this.logger.info("Survey has been submitted; triggerType: ",b);const N=this.clientSurveyResults.get(b)?.surveySessionId;this.triggerFeedbackLogUpload(N),this.surveyEventReferenceSubmittedMap.get(b).unsubscribe(),this.unsubscribeFromLogListener(b)}surveyEventListenerDismissed(b){this.logger.info("Survey has been dismissed"),this.surveyEventReferenceDismissedMap.get(b).unsubscribe(),this.unsubscribeFromLogListener(b)}surveyEventListenerCloseDialog(b){this.logger.info("User closed dialog from Survey; triggerType: ",b),this.surveyEventReferenceCloseDialogMap.get(b).unsubscribe(),this.unsubscribeFromLogListener(b)}surveyEventListenerErrored(b){this.logger.info("Survey has error"),this.surveyEventReferenceErrorMap.get(b).unsubscribe(),this.unsubscribeFromLogListener(b)}surveyEventListenerSubmissionErrored(b){this.logger.info("Survey has submission error"),this.surveyEventReferenceSubmissionErrorMap.get(b).unsubscribe(),this.unsubscribeFromLogListener(b)}getAvailableSurvey(b,N="0",Ce="",ft=0,Jt=!1){const wn=Ce;return(0,Ts.zV)([this.loginService.accountStatusChanged,this.systemInfoService.getSystemInfo([Ui.Lu.DeviceId]),this.systemInfoService.getDeviceOSType(),this.prepareClientParams(N,wn,ft,Jt)]).pipe((0,tu.H)(([x,k,_e])=>{this.updateUserInfo(x),this.sdk.initializeClientConfig(this.surveySdkClientConfig,{collector_host:"lightstep.kaizen.nvidia.com",collector_port:443,component_name:this.appConfig.otelTracerConfig.componentName,disable_clock_skew_correction:!0,access_token:this.appConfig.otelTracerConfig.accessToken}),this.initGlobalTagsForOpenTracing(k.DeviceId,this.osInfo,"",this.currentUser.userId,this.currentUser.idpId);const Wt=this.startGetSurveyClientSpan(!1),xn=(this.distributedTracingUtilService.inject(Wt),this.getCommonParams(_e));this.logger.info("ClientParams passed to survey sdk: ",{surveyClientParams:this.surveyClientParams,commonParams:xn});const qn=performance.now();return(0,Vo.H)(this.sdk.getUserSurvey(this.currentUser.userId,this.currentUser.idpId,k.DeviceId,this.surveyTimeout,this.surveyClientParams,b,this.surveyClientParams.locale,xn.deviceOS,xn.deviceType,xn.deviceMake,xn.deviceModel,xn.deviceOSVersion,xn.clientType,xn.browserType)).pipe((0,xr.M)(hi=>{const qi=performance.now();this.handleClientSurveyResponse(hi,Wt,qi-qn)}),(0,wr.W)(hi=>this.handleUsabilityStudyError(hi,Wt)))}))}getSurveyUrl(){return this.surveyUrlSubject.asObservable()}prepareClientParams(b,N,Ce,ft){const Jt=ft?(0,yr.of)({NetworkType:Ui.Sd.Unknown}):this.systemInfoService.getSystemInfo([Ui.Lu.Network]).pipe((0,Rn.T)(wn=>wn.Network));return(0,Ol.yU)(Jt,this.systemInfoService.getSystemInfo([Ui.Lu.OSName,Ui.Lu.OSVersion,Ui.Lu.Platform,Ui.Lu.DeviceType,Ui.Lu.VendorName,Ui.Lu.SystemName,Ui.Lu.OSVersion,Ui.Lu.BrowserName,Ui.Lu.BrowserVersion]),this.localeService.localeChanged).pipe((0,ra.ZZ)(([wn,x,k])=>(this.osInfo={OSName:x.OSName,OSVersion:x.OSVersion,Platform:x.Platform},this.systemInfo=x,this.surveyClientParams={nvappSessionId:N||"",application:"NvApp",serverType:"",network:wn&&wn.NetworkType?wn.NetworkType:Ui.Sd.Unknown,locale:k,affiliate:"",browser:x.BrowserName||"",browserVersion:x.BrowserVersion||"",cmsId:b,sessionDurationMin:Ce,osName:x.OSName.toUpperCase(),productName:this.telemetryUtilService.getProductName(),productVersion:this.telemetryUtilService.getProductVersion()},(0,yr.of)(this.surveyClientParams))))}unsubscribeFromLogListener(b){this.surveyEventReferenceLogListenerMap.get(b).unsubscribe()}handleClientSurveyResponse(b,N,Ce){if(b){this.logger.info("Got User Survey, Data is: ",b);const ft=b;this.clientSurveyResults.set(ft.triggerType,ft),this.distributedTracingUtilService.setSpanAttributes(N,{[Ws.SurveySdkSpanTagNames.SurveyId]:ft.surveyId}),this.subscribeToSurveyEvents(ft),this.surveyUrlSubject.next(ft.surveyContainerUrl)}else this.logger.info("Cannot get User Survey data");this.sendSurveyHttpSuccessTelemetry({url:b?.config?.url,httpStatus:b?.status,durationMs:Ce,xRequestId:b?.xRequestId},ut.OO.GetSurvey,ut.LG.GetUsabilityStudy),this.distributedTracingUtilService.closeSpan(N)}handleUsabilityStudyError(b,N){return this.logger.error("Check for survey failed. Sending HTTPFailure telemetry: ",b),this.distributedTracingUtilService.setSpanAttribute(N,Ko.NS.Error,!0),this.distributedTracingUtilService.closeSpan(N),this.sendSurveyFailureTelemetry(b,ut.OO.GetSurvey,ut.LG.GetUsabilityStudy),(0,yr.of)(void 0)}checkUserAuthenticatedForSurveys(b){return this.logger.info("check User Authenticated For Survey Feedback"),!!b.isAuthenticated}triggerFeedbackLogUpload(b){this.exceptionInfoService.SendUserFeedbackInfo(b,this.telemetryUtilService.getCurrentUiPage(),this.surveyClientParams.locale).pipe((0,ji.s)(1)).subscribe(N=>{N&&this.logger.info("Send User Feedback Info called with response:",N)},N=>{this.logger.error("Error sending Feedback Params with error: ",N)})}updateUserInfo(b){this.checkUserAuthenticatedForSurveys(b)?b.userId&&(this.currentUser=b):(this.currentUser.userId=Ui.Qe,this.currentUser.idpId=Ui.Qe)}startGetSurveyClientSpan(b=!1){const N=this.distributedTracingUtilService.startSpan(Ko.pB.ClientGetSurvey);return N&&this.distributedTracingUtilService.setSpanAttributes(N,{[Ws.SurveySdkSpanTagNames.ReadOnly]:b}),N}initGlobalTagsForOpenTracing(b,N,Ce,ft,Jt){const wn={[Ko.NS.ServiceVersion]:this.appConfig.build.version,[Ko.NS.ServiceType]:Ko.Se.Pc_A7,[Ko.NS.SpanKind]:Ko.ls.Client,[Ko.NS.AppName]:this.telemetryUtilService.getProductName(),[Ko.NS.DeviceId]:b,[Ko.NS.ClientOs]:N.Platform,[Ko.NS.ClientOsName]:N.OSName,[Ko.NS.ClientOsVersion]:N.OSVersion,[Ko.NS.CountryCode]:Ce,[Ws.SurveySdkSpanTagNames.ClientVariant]:this.surveySdkClientConfig.clientVariant,[Ws.SurveySdkSpanTagNames.ClientVersion]:this.getClientVersionRevision(this.surveySdkClientConfig.clientVersion),[Ws.SurveySdkSpanTagNames.Environment]:this.surveySdkClientConfig.env,[Ws.SurveySdkSpanTagNames.UserId]:ft||"",[Ws.SurveySdkSpanTagNames.IdpId]:Jt||""};this.sdk.updateGlobalTags(wn)}getClientVersionRevision(b){return 4===b.split(".").length?b.substring(0,b.lastIndexOf(".")+1).concat("x"):b}sendSurveyHttpSuccessTelemetry(b,N,Ce){const ft=new ut.VD({sourceComponent:ut.sK.NvAppClient,originalService:ut.Uu.GxTarget,serviceUseCase:N,serviceSubUseCase:Ce,url:b.url||"",httpStatus:b.httpStatus||200,durationMs:Math.round(b.durationMs)||0,destinationIp:"",responseData:"",networkErrorCode:"",xRequestId:b.xRequestId||"",retryCount:0,wasSWCacheBypassed:ut.T8.UNDEFINED});this.telemetryService.push(ft)}sendSurveyFailureTelemetry(b,N,Ce){const ft=new ut.VD({sourceComponent:ut.sK.NvAppClient,originalService:ut.Uu.GxTarget,serviceUseCase:N,serviceSubUseCase:Ce,url:b?.config?.url||"",networkErrorCode:String(b&&b.response?b.response.status:0),destinationIp:"",xRequestId:b&&b.xRequestId?b.xRequestId:"",retryCount:0,responseData:"",httpStatus:0,durationMs:0,wasSWCacheBypassed:ut.T8.UNDEFINED});this.telemetryService.push(ft)}getCommonParams(b){return{deviceOS:b,deviceType:this.systemInfo.DeviceType||Or.oX.Undefined,deviceMake:this.systemInfo.VendorName||Or.oX.Undefined,deviceModel:this.systemInfo.SystemName||Or.oX.Undefined,deviceOSVersion:this.systemInfo.OSVersion,clientType:_m.CommonClientType.Native,browserType:this.systemInfo.BrowserName}}registerForPiplLocalizationConfigUpdateEvent(){this.piplLocaleConfigService.piplLocalizationConfigUpdated$.subscribe(b=>{this.feedbackService.isFeedbackDialogOpen()&&this.feedbackService.closeFeedbackDialog(),b.survey&&""!==b.survey.server&&""!==b.survey.containerBaseUrl&&(this.surveySdkClientConfig=(0,Cr.merge)(this.surveySdkClientConfig,{url:b.survey.server,surveyContainerBaseUrl:b.survey.containerBaseUrl,env:b.survey.server.includes("stg")?Iu.Stage:Iu.Prod}))})}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.zW),n.KVO(kg.X),n.KVO(Hg),n.KVO(Or.H0),n.KVO(Ui.J6),n.KVO(we.A),n.KVO(Ui.iH),n.KVO(is.Vk),n.KVO(Ui.FK),n.KVO(Ui.wt),n.KVO(ur.HF),n.KVO(Ko.Z1))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),$})();var p=c(44186),w=c(53222);function V(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"i",4),n.EFF(4,"info"),n.k0s(),n.j41(5,"div",5),n.EFF(6),n.nI1(7,"translate"),n.k0s()(),n.j41(8,"div",6)(9,"div")(10,"button",7),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onClickRestart())}),n.EFF(11),n.nI1(12,"translate"),n.k0s()()()()()}if(2&F){const U=n.XpG();n.R7$(),n.Y8G("ngClass",U.notificationAvailable?"notification":"notification-animate"),n.R7$(5),n.SpI(" ",n.bMT(7,3,"common.updateRequiredDescription")," "),n.R7$(5),n.SpI(" ",n.bMT(12,5,"common.relaunchNow")," ")}}let ae=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt){this.selfUpdateService=N,this.telemetryService=Ce,this.element=ft,this.renderer=Jt,this.notificationAvailable=!1,this.newUpdateVersion="",this.logger=b.getLogger("nvapp/BannerNotificationComponent"),this.destroy$=new Xo.Subject}ngOnInit(){this.checkForClientUpdates()}checkForClientUpdates(){this.logger.info("check for update called"),this.selfUpdateService.getUpdateAvailableObservable().pipe((0,pr.Q)(this.destroy$)).subscribe(b=>{this.logger.info("New update available ",b),this.newUpdateVersion=b,this.notificationAvailable=!0,this.element?.nativeElement.setAttribute("style","display:block"),this.renderer.setProperty(document?.querySelector(".nv-app-content"),"style",`--banner-height: ${Se.g4}`),this.sendTelemetryEvent(ut.fs.PopupShown,ut.fb.Success)},b=>{this.logger.error("Received error from getUpdate$ observable: ",b),this.notificationAvailable=!1})}onClickRestart(){this.sendTelemetryEvent(ut.fs.RelaunchNow,ut.fb.Success,{afterDone:()=>{this.selfUpdateService.restartApp()}})}sendTelemetryEvent(b,N,Ce,ft){const Jt={category:ut.zP.Banner,action:b,errorDetails:ft||"",status:N,newVersion:this.newUpdateVersion};this.logger.info("send telemetry of data",Jt);const wn=new ut.OC(Jt);this.telemetryService.push(wn,0,Ce)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Pc),n.rXU(Or.H0),n.rXU(n.aKT),n.rXU(n.sFG))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-banner-notification"]],decls:1,vars:1,consts:[["class","notification-container","fxLayout","column","fxLayoutAlign","center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center",1,"notification-container"],[1,"notification-base",3,"ngClass"],[1,"icon-title-row"],[1,"material-icons","info-icon","notification-info-icon"],[1,"notification-base-message-description","font-body2"],[1,"button-alignment"],["mat-button","","aria-label","now",1,"font-button2",3,"click"]],template:function(b,N){1&b&&n.DNE(0,V,13,7,"div",0),2&b&&n.Y8G("ngIf",N.notificationAvailable)},dependencies:[$i.YU,$i.bT,Ur.iV,Kn.DJ,Kn.sA,fs.PW,Xr.D9],styles:["[_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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .notification-base-message-description[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}[_nghost-%COMP%]{display:none}.notification-base[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background:#292929;width:100%;z-index:2}.notification-base[_ngcontent-%COMP%]   .icon-title-row[_ngcontent-%COMP%]{display:flex;align-items:center}.notification-base-message-description[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-line-clamp:3;display:-webkit-box}.isLtr[_nghost-%COMP%]   .notification-base-message-description[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   .notification-base-message-description[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%]   .notification-base-message-description[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%]   .notification-base-message-description[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   .notification-base-message-description[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%]   .notification-base-message-description[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%]   .notification-base-message-description[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   .notification-base-message-description[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%]   .notification-base-message-description[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%]   .notification-base-message-description[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   .notification-base-message-description[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%]   .notification-base-message-description[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.notification[_ngcontent-%COMP%]{z-index:1}.notification.ng-hide-add[_ngcontent-%COMP%]{transition:ease-in-out 1s;transition-delay:1s}.notification-animate[_ngcontent-%COMP%]{z-index:1}.notification-animate.ng-hide[_ngcontent-%COMP%]{margin-top:-32px}.notification-animate.ng-hide-add[_ngcontent-%COMP%], .notification-animate.ng-hide-remove[_ngcontent-%COMP%]{transition:ease-in-out .8s;transition-delay:0s}.notification-info-icon[_ngcontent-%COMP%]{color:#ffffffbf;font-size:24px}.isLtr[_nghost-%COMP%]   .notification-info-icon[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   .notification-info-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=ltr][_ngcontent-%COMP%]   .notification-info-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:16px}.isRtl[_nghost-%COMP%]   .notification-info-icon[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   .notification-info-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=rtl][_ngcontent-%COMP%]   .notification-info-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:16px}.icon-title-row[_ngcontent-%COMP%]   .al-icon[_ngcontent-%COMP%]{flex-shrink:0;width:24px;height:24px}.isLtr[_nghost-%COMP%]   .icon-title-row[_ngcontent-%COMP%]   .al-icon[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   .icon-title-row[_ngcontent-%COMP%]   .al-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=ltr][_ngcontent-%COMP%]   .icon-title-row[_ngcontent-%COMP%]   .al-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:16px}.isRtl[_nghost-%COMP%]   .icon-title-row[_ngcontent-%COMP%]   .al-icon[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   .icon-title-row[_ngcontent-%COMP%]   .al-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=rtl][_ngcontent-%COMP%]   .icon-title-row[_ngcontent-%COMP%]   .al-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:16px}.notification-container[_ngcontent-%COMP%]   button.mat-accent[_ngcontent-%COMP%]{color:#76b900}.notification-container[_ngcontent-%COMP%]{background:#292929;box-sizing:border-box;height:100%;margin-top:1px}.notification-container.ng-hide[_ngcontent-%COMP%]{margin-top:-32px}.notification-container.ng-hide-add[_ngcontent-%COMP%], .notification-container.ng-hide-remove[_ngcontent-%COMP%]{transition:ease-in-out .8s;transition-delay:0s}button[_ngcontent-%COMP%]{height:36px;min-width:36px;border-radius:0}.isLtr[_nghost-%COMP%]   button[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   button[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%]   button[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   button[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.isLtr[_nghost-%COMP%]   button[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   button[_ngcontent-%COMP%]{padding-right:8px}html[dir=ltr][_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{--dummy2: 0;padding-right:8px}.isRtl[_nghost-%COMP%]   button[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   button[_ngcontent-%COMP%]{padding-left:8px}html[dir=rtl][_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{--dummy2: 0;padding-left:8px}.isLtr[_nghost-%COMP%]   button[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   button[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%]   button[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   button[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.isLtr[_nghost-%COMP%]   mat-progress-spinner[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   mat-progress-spinner[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%]   mat-progress-spinner[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%]   mat-progress-spinner[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   mat-progress-spinner[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%]   mat-progress-spinner[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.button-alignment[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-self:flex-end;line-height:36px}.isLtr[_nghost-%COMP%]   .button-alignment[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   .button-alignment[_ngcontent-%COMP%]{margin-left:auto}html[dir=ltr][_ngcontent-%COMP%]   .button-alignment[_ngcontent-%COMP%]{--dummy3: 0;margin-left:auto}.isRtl[_nghost-%COMP%]   .button-alignment[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   .button-alignment[_ngcontent-%COMP%]{margin-right:auto}html[dir=rtl][_ngcontent-%COMP%]   .button-alignment[_ngcontent-%COMP%]{--dummy3: 0;margin-right:auto}"]}),$})();const me=F=>({login_hint:F}),He=F=>({"user-info-override":F});function ct(F,$){if(1&F&&(n.j41(0,"div",14)(1,"span",15),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&F){const U=$.ngIf;n.R7$(2),n.SpI(" ",n.bMT(3,1,U)," ")}}function Ut(F,$){1&F&&n.nrm(0,"mat-progress-spinner",19),2&F&&n.Y8G("diameter",20)}function Lt(F,$){1&F&&n.nrm(0,"mat-icon",20)}function qt(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",16),n.nI1(1,"translate"),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.handleOverlayClick())}),n.DNE(2,Ut,1,1,"mat-progress-spinner",17)(3,Lt,1,0,"mat-icon",18),n.k0s()}if(2&F){const U=n.XpG();n.FS9("matTooltip",n.bMT(1,4,U.overlayToolTip)),n.Y8G("disabled",U.overlayInProcess),n.R7$(2),n.Y8G("ngIf",U.overlayInProcess),n.R7$(),n.Y8G("ngIf",!U.overlayInProcess)}}function on(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",21),n.nI1(1,"translate"),n.bIt("click",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.openFeedbackDialog())}),n.nrm(2,"mat-icon",22),n.k0s()}if(2&F){const U=n.XpG();n.FS9("matTooltip",n.bMT(1,2,"feedback.send")),n.Y8G("disabled",U.isFeedbackCalled)}}function Dn(F,$){if(1&F&&(n.j41(0,"button",24)(1,"div",25),n.nrm(2,"img",26),n.j41(3,"div",27,2)(5,"span",28),n.EFF(6),n.k0s()(),n.j41(7,"mat-icon",29),n.EFF(8,"arrow_drop_down"),n.k0s()()()),2&F){const U=n.XpG(2),b=n.sdS(9);n.Y8G("matMenuTriggerFor",b)("matTooltip",U.user.displayName),n.R7$(6),n.JRh(U.user.displayName)}}function Yn(F,$){if(1&F){const U=n.RV6();n.j41(0,"div",33)(1,"button",34)(2,"mat-icon",35),n.EFF(3,"arrow_drop_down"),n.k0s()(),n.j41(4,"mat-menu",11,3)(6,"button",36),n.bIt("click",function(){n.eBV(U);const N=n.XpG(3);return n.Njj(N.login())}),n.EFF(7),n.nI1(8,"translate"),n.k0s(),n.j41(9,"button",12),n.bIt("click",function(){n.eBV(U);const N=n.XpG(3);return n.Njj(N.login(!0))}),n.j41(10,"span"),n.EFF(11),n.nI1(12,"translate"),n.k0s()()()()}if(2&F){const U=n.sdS(5),b=n.XpG(3);n.R7$(),n.Y8G("matMenuTriggerFor",U),n.R7$(6),n.SpI(" ",n.i5U(8,3,"toolbar.continueAs",n.eq3(8,me,b.ssoLoginHint))," "),n.R7$(4),n.SpI(" ",n.bMT(12,6,"toolbar.switchAccount")," ")}}function ki(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",30),n.nI1(1,"translate"),n.bIt("click",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.login())}),n.nrm(2,"img",26),n.j41(3,"span",31),n.EFF(4),n.nI1(5,"translate"),n.k0s()(),n.DNE(6,Yn,13,10,"div",32)}if(2&F){const U=n.XpG(2);n.FS9("matTooltip",n.i5U(1,5,"toolbar.continueAs",n.eq3(10,me,U.ssoLoginHint))),n.Y8G("ngClass",n.eq3(12,He,U.ssoLoginHint))("matTooltipDisabled",!U.ssoLoginHint),n.R7$(4),n.JRh(n.bMT(5,8,"toolbar.login")),n.R7$(2),n.Y8G("ngIf",U.ssoLoginHint)}}function Ln(F,$){if(1&F&&(n.qex(0),n.DNE(1,Dn,9,3,"button",23)(2,ki,7,14,"ng-template",null,1,n.C5r),n.bVm()),2&F){const U=n.sdS(3),b=n.XpG();n.R7$(),n.Y8G("ngIf",b.user.isAuthenticated)("ngIfElse",U)}}let ii=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn,x,k,_e,lt){this.appBarService=b,this.loggingService=N,this.loginService=Ce,this.accountService=ft,this.telemetryUtilService=Jt,this.feedbackService=wn,this.surveyService=x,this.overlayService=k,this.errorHandlerService=_e,this.translateService=lt,this.destroy$=new fo.B7,this.loading=!0,this.isFeedbackCalled=!1,this.overlayInProcess=!1,this.ssoLoginHint=null,this.logger=this.loggingService.getLogger("nvapp/AppBarComponent")}ngOnInit(){this.title$=this.appBarService.title,this.loginService.accountStatusChanged.pipe((0,pr.Q)(this.destroy$)).subscribe(b=>{this.setLoginData(b)}),this.getSSOLoginHint(),this.listenToOverlayState()}login(b=!1){this.telemetryUtilService.sendClickEvent(ut.EB.Login,ur.fx.AppBar,!1),this.loginService.startLogin(!1,null,b).pipe((0,pr.Q)(this.destroy$)).subscribe()}goToAccount(){this.accountService.openAccountProfilePage()}logout(){this.telemetryUtilService.sendClickEvent(ut.EB.Logout,ur.fx.AppBar,!1),this.loginService.startLogout()}getSSOLoginHint(){this.loginService.ssoLoginHint().pipe((0,ji.s)(1),(0,pr.Q)(this.destroy$)).subscribe(b=>{this.ssoLoginHint=b})}handleOverlayClick(){if(this.logger.info("Overlay State - ",this.currentOverlayState),this.isDriverInstalled&&this.currentOverlayState?.feature?.overallState)this.currentOverlayState?.feature?.toggle?.value?(this.openIgoSub?.unsubscribe(),this.openIgoSub=this.overlayService.openIgo(!1).subscribe(Rt.l,Rt.l)):this.overlayService.toggleIgo(!0);else{const b=this.translateService.instant("preferences.featureReadiness.share.header");this.errorHandlerService.showFeatureNotAvailableDialog("common.featureNotAvailable",this.isDriverInstalled?"common.updateDriverToAccessFeature":"common.installDriverToAccessFeature",null,{featureName:b},{feature:b})}}listenToOverlayState(){this.overlayService.getOverlayState().pipe((0,pr.Q)(this.destroy$)).subscribe(b=>{this.logger.info("overlay state",b?.feature?.toggle?.value),this.currentOverlayState=b,this.overlayToolTip=b?.description,this.overlayInProcess=b?.description===Eo.FU.Enabling||b?.description===Eo.FU.Disabling},b=>{this.logger.error("Error occurred while fetching overlay feature",b)})}setLoginData(b){this.user=b,this.loading=!1}openFeedbackDialog(){this.isFeedbackCalled=!0,this.logger.info("Opening feedback dialog");const Ce=()=>this.surveyService.surveyEventListenerCloseDialog(Ws.TriggerType.Feedback);this.feedbackService.initializeFeedback("affiliateName",()=>this.surveyService.getAvailableSurvey([Ws.TriggerType.Feedback],"0","",0),()=>(0,yr.of)(!0)).pipe((0,Lc.p)(ft=>ft),(0,ji.s)(1)).subscribe(()=>{this.feedbackService.onOpenFeedbackDialog(Ce),this.isFeedbackCalled=!1},ft=>{this.isFeedbackCalled=!1,this.logger.error("Error opening feedback dialog",ft)})}ngOnDestroy(){this.openIgoSub?.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(si.g),n.rXU(Ui.J6),n.rXU(Ug.H),n.rXU(im),n.rXU(ut.AY),n.rXU(Hg),n.rXU(i),n.rXU(Es.s),n.rXU($r.c),n.rXU(Xr.c$))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-bar"]],inputs:{isDriverInstalled:"isDriverInstalled",isMinimumDriverInstalled:"isMinimumDriverInstalled"},decls:17,vars:12,consts:[["userInfoMenu","matMenu"],["loggedOut",""],["accountField",""],["menu","matMenu"],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","space-between center",1,"app-bar","mat-elevation-z4"],["class","app-bar-title","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"user-actions"],["mat-button","","fxLayoutAlign","center center","matTooltipClass","mat-tooltip-font-body3","class","hig-button-icon",3,"matTooltip","disabled","click",4,"ngIf"],["mat-button","","fxLayoutAlign","center center","matTooltipClass","mat-tooltip-font-body3","class","user-feedback hig-button-icon",3,"matTooltip","disabled","click",4,"ngIf"],[4,"ngIf"],["xPosition","before",1,"app-bar-dropdown"],["mat-menu-item","",3,"click"],[1,"banner-notification"],["fxLayout","row","fxLayoutAlign","center center",1,"app-bar-title"],["fxFlex","",1,"title","font-header6"],["mat-button","","fxLayoutAlign","center center","matTooltipClass","mat-tooltip-font-body3",1,"hig-button-icon",3,"click","matTooltip","disabled"],["class","mat-accent","mode","indeterminate",3,"diameter",4,"ngIf"],["svgIcon","overlayUtilityIcon",4,"ngIf"],["mode","indeterminate",1,"mat-accent",3,"diameter"],["svgIcon","overlayUtilityIcon"],["mat-button","","fxLayoutAlign","center center","matTooltipClass","mat-tooltip-font-body3",1,"user-feedback","hig-button-icon",3,"click","matTooltip","disabled"],["svgIcon","feedback"],["mat-button","","class","user-info","matTooltipClass","mat-tooltip-font-body3",3,"matMenuTriggerFor","matTooltip",4,"ngIf","ngIfElse"],["mat-button","","matTooltipClass","mat-tooltip-font-body3",1,"user-info",3,"matMenuTriggerFor","matTooltip"],["fxLayout","row","fxLayoutAlign","start center"],["src","assets/img/avatar_generic_118.svg","alt","Avatar Image",1,"avatar-img"],["fxLayout","column","fxHide.lt-md","",1,"display-name"],[1,"username","font-body2"],[1,"material-icons","color-medium-gray-hue-1"],["matTooltipClass","mat-tooltip-font-body3","matTooltipPosition","below","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","8px","mat-button","",1,"user-info",3,"click","ngClass","matTooltipDisabled","matTooltip"],["fxHide.lt-400","",1,"login"],["class","user-login-dropdown",4,"ngIf"],[1,"user-login-dropdown"],["mat-button","","fxLayoutAlign","center center","mat-icon-button","",1,"hig-button-icon",3,"matMenuTriggerFor"],[1,"material-icons","color-medium-gray-hue-1","icon-align"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3","mat-menu-item","",3,"click"]],template:function(b,N){if(1&b){const Ce=n.RV6();n.j41(0,"div",4)(1,"div",5),n.DNE(2,ct,4,3,"div",6),n.nI1(3,"async"),n.j41(4,"div",7),n.DNE(5,qt,4,6,"button",8)(6,on,3,4,"button",9)(7,Ln,4,2,"ng-container",10),n.j41(8,"mat-menu",11,0)(10,"button",12),n.bIt("click",function(){return n.eBV(Ce),n.Njj(N.goToAccount())}),n.EFF(11),n.nI1(12,"translate"),n.k0s(),n.j41(13,"button",12),n.bIt("click",function(){return n.eBV(Ce),n.Njj(N.logout())}),n.EFF(14),n.nI1(15,"translate"),n.k0s()()()(),n.nrm(16,"nv-app-banner-notification",13),n.k0s()}2&b&&(n.R7$(2),n.Y8G("ngIf",n.bMT(3,6,N.title$)),n.R7$(3),n.Y8G("ngIf",!N.loading),n.R7$(),n.Y8G("ngIf",!N.loading),n.R7$(),n.Y8G("ngIf",!N.loading),n.R7$(4),n.SpI(" ",n.bMT(12,8,"toolbar.account")," "),n.R7$(3),n.SpI(" ",n.bMT(15,10,"toolbar.logout")," "))},dependencies:[$i.YU,$i.bT,tt.a,Ur.iV,ds.An,p.oV,cl.pI,cl.gy,cl.fS,Mc.LG,Kn.DJ,Kn.BO,Kn.sA,Kn.UI,fs.Om,fs.PW,w.M,ae,$i.Jj,Xr.D9],styles:["[_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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%]   .mat-menu-item[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.app-bar[_ngcontent-%COMP%]{height:56px;background:#292929;box-sizing:border-box;z-index:2}.app-bar[_ngcontent-%COMP%]   .nv-branding-icon[_ngcontent-%COMP%]{width:185px;height:56px;pointer-events:none;position:absolute;z-index:3}.app-bar[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]{padding:0;height:40px;width:auto;margin-left:auto}.isLtr[_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.app-bar[_ngcontent-%COMP%]   .user-info-override[_ngcontent-%COMP%]{padding:0;height:40px;width:auto;margin-left:auto}.isLtr[_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-info-override[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-info-override[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-info-override[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-info-override[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-info-override[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-info-override[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.app-bar[_ngcontent-%COMP%]   .user-feedback[_ngcontent-%COMP%]{padding:0;height:40px;width:auto}.app-bar[_ngcontent-%COMP%]   img.avatar-img[_ngcontent-%COMP%]{width:30px;height:30px;align-self:center;margin-right:9px;margin-left:8px}.app-bar[_ngcontent-%COMP%]   .display-name[_ngcontent-%COMP%]   .username[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:64px;max-width:144px}.app-bar[_ngcontent-%COMP%]   .app-bar-title[_ngcontent-%COMP%]{padding-left:16px}.app-bar[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]{padding:0}.app-bar[_ngcontent-%COMP%]   .user-actions[_ngcontent-%COMP%]{gap:8px}.app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%]{display:flex;align-items:center;width:40px;height:40px;flex-shrink:0}.isLtr[_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.isLtr[_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%], .isLtr   [_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%]{margin-left:-8px}html[dir=ltr][_ngcontent-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%]{--dummy3: 0;margin-left:-8px}.isRtl[_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%], .isRtl   [_nghost-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%]{margin-right:-8px}html[dir=rtl][_ngcontent-%COMP%]   .app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%]{--dummy3: 0;margin-right:-8px}.app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%]   .mat-menu-item[_ngcontent-%COMP%]{max-width:280px;min-width:112px;white-space:nowrap;width:100%}.app-bar[_ngcontent-%COMP%]   .user-login-dropdown[_ngcontent-%COMP%]   mat-icon.icon-align[_ngcontent-%COMP%]{vertical-align:middle}.app-bar[_ngcontent-%COMP%]   mat-divider[vertical][_ngcontent-%COMP%]{height:24px;margin:0 4px}.banner-notification[_ngcontent-%COMP%]{z-index:2;height:var(--banner-height)}"]}),$})();var Zi=c(80282);const nr=["nvAppPage"];let fr=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn,x,k,_e,lt,Wt,an,xn,qn,hi,qi,tr,sr,Rr,zr,eo,Io,qr,rs,ws,El,Nl,ec,Sa,Vr,co,Ro,Gs,kl,Jc,Ic,pc){this.localeService=b,this.appConfig=N,this.gfwslService=Ce,this.hardwareService=ft,this.selfUpdateService=Jt,this.driverUpdateService=wn,this.loggingService=x,this.distributedTracingBootstrapService=k,this.experienceControlService=_e,this.httpTelemetryService=lt,this.dataConsentService=Wt,this.serviceWorkerService=an,this.serviceWorkerUpdateService=xn,this.ootbService=qn,this.rewardsService=hi,this.loginService=qi,this.gfwslParamsService=tr,this.piplLocaleConfigService=sr,this.vrsSdkService=Rr,this.routerHandlerService=zr,this.aemService=eo,this.featureReadinessService=Io,this.eulaService=qr,this.matDialog=rs,this.layoutService=ws,this.appListService=El,this.sidebarService=Nl,this.programsService=ec,this.cloudVariableHelperService=Sa,this.mandatoryPluginsHandlerService=Vr,this.errorHandlerService=co,this.performanceMeasureService=Ro,this.nvAccountInterfaceService=Gs,this.telemetryUtilService=kl,this.nvcplSystemInfoService=Jc,this.pageVisitTelemetryService=Ic,this.languagePreferenceService=pc,this.title="nvapp",this.sidebarPageItems=[],this.destroy$=new fo.B7,this.pageVisitTelemetryService.initialize(),this.performanceMeasureService.markNvAppPerformanceMarkers([cn.mM.NvAppJsInitEnd],cn.fR.Home),this.logger=x.getLogger("nvapp/AppComponent"),this.logger.info("Using configuration:",N),this.registerForPluginLoadNotification(),this.initializeSidebar(),this.hardwareService.fetchHardwareInfo().subscribe(()=>{this.initializeProgramsServices()},Ka=>{this.logger.error("failed to fetch hardware information",Ka),this.initializeProgramsServices()}),this.routerHandlerService.initialize(),this.registerForPiplLocalizationConfigUpdateEvent(),this.gfwslService.initialize(),this.navigateToDriverPage(),this.layoutService.initialize(),this.distributedTracingBootstrapService.initializeDistributedTracing(),this.experienceControlService.initialize(Ps.sK.NvAppClient,(0,yr.of)("")),this.dataConsentService.initialize(),this.httpTelemetryService.initialize(),this.selfUpdateService.initialize(),this.serviceWorkerService.initialize(),this.serviceWorkerUpdateService.initialize(),this.rewardsService.initialize(),this.driverUpdateService.initialize(),this.nvcplSystemInfoService.invalidateCacheOnDriverInstallation(),this.appConfig.build.variant===ut.zg.GenerateException&&setTimeout(()=>{throw new Error("Software Testing: Generating exception for QA verification")},1e3)}registerForPluginLoadNotification(){const b=this.mandatoryPluginsHandlerService.mandatoryPluginsLoaded$.subscribe(N=>{N.loaded||(this.logger.info("Mandatory plugin fails to load or inactive",N),this.errorHandlerService.showPluginFailureErrorDialog()?.afterClosed().subscribe(ft=>{b.unsubscribe()}))},N=>this.logger.error("Error in mandatoryPluginsLoaded notification",N))}ngOnInit(){const b=this.checkEulaAcceptance(),N=this.loginService.accountStatusChanged,Ce=this.nvAccountInterfaceService.getPrivacySettingsConsentInfoChangeNotification().pipe((0,wu.Z)(null));(0,Ts.zV)([b,N,Ce]).pipe((0,pr.Q)(this.destroy$)).subscribe(([ft,Jt,wn])=>{let x={};x=null!==wn?wn?.deviceConsent:ft?.deviceConsent,this.updateGfwslParams(Jt,x)},ft=>this.logger.error("Some error occurred while getting privacyConsentInfo and accountStatus details ",ft)),this.appConfig?.featureEnablement?.ootb?.enabled&&this.ootbService.loadOotbExperience(),this.appConfig.redirect.defaultLocale&&""!==this.appConfig.redirect.defaultLocale&&this.setLocale(this.appConfig.redirect.defaultLocale),this.featureReadinessService.refreshOverlayFeatures(),this.cloudVariableHelperService.fetchGxCvAndUpdateConfig()}ngAfterViewInit(){this.routerHandlerService.restoreScrollToTopOnRouteChange(this.nvAppPageContainer)}routeToPage(b){this.routerHandlerService.routeToPage(b,this.isDriverInstalled,this.isMinimumDriverInstalled)}initializeProgramsServices(){this.appListService.initialize(),this.programsService.initialize()}navigateToDriverPage(){this.routerHandlerService.routeToDriverIfMinimumDriverNotInstalled().subscribe(({isDriverInstalled:b,isMinimumDriverInstalled:N})=>{this.isDriverInstalled=b,this.isMinimumDriverInstalled=N},b=>{this.logger.error("failed to route to Driver due to error",b)})}setLocale(b){this.localeService.setLocale(b).subscribe(()=>this.logger.info(`locale successfully set ${b}`),N=>{this.logger.error(`Error while setting locale ${b}`,N)})}registerForPiplLocalizationConfigUpdateEvent(){this.piplLocaleConfigService.piplLocalizationConfigUpdated$.subscribe(b=>{b.gfwsl&&""!==b.gfwsl.server&&(this.appConfig.gfwsl.server=b.gfwsl.server,this.gfwslService.setConfigServer(this.appConfig.gfwsl.server)),b.vrs&&""!==b.vrs.server&&(this.appConfig.vrs.server=b.vrs.server,this.vrsSdkService.setConfigServer(this.appConfig.vrs.server)),b.aem&&""!==b.aem.server&&(this.appConfig.aem.server=b.aem.server,this.aemService.setConfigServer(this.appConfig.aem.server))})}checkEulaAcceptance(){return this.eulaService.isEulaAccepted().pipe((0,Br.n)(b=>(this.logger.info("Eula Status from NvAccount ",b),b?(0,yr.of)(!0):(this.logger.info("Eula is not accepted, ask for consent again"),this.eulaDialogRef=this.matDialog.open(Sd,{disableClose:!0,autoFocus:!1,panelClass:["eula-modal-container","common-dialog"]}),this.eulaDialogRef.afterClosed()))),(0,Br.n)(b=>this.nvAccountInterfaceService.getPrivacySettingsConsentInfo()),(0,Br.n)(b=>(this.logger.info("Setting the device consent using NvAccount Information ",b),this.dataConsentService.setDeviceConsent(b?.deviceConsent),this.telemetryUtilService.sendLaunchTimeTelemetry(),(0,yr.of)(b))),(0,xr.M)(b=>this.logger.info("Consent has been set")),(0,wr.W)(b=>(this.logger.error("Error occurred while fetching Eula State ",b),(0,Nn.$)(b))),(0,ji.s)(1))}initializeSidebar(){this.sidebarService.initialize(),(0,Ts.zV)([this.sidebarService.getSidebarPageItemsObservable(),this.sidebarService.getSelectedPage(),this.localeService.localeChanged]).pipe((0,pr.Q)(this.destroy$)).subscribe(([b,N,Ce])=>{this.sidebarPageItems=b,this.currentPage=N},b=>this.logger.error("Error occurred while getting sidebar details",b))}updateGfwslParams(b,N){this.logger.info("Update GFWSL Params ",N);const Ce=this.dataConsentService.convertConsentData(N);this.gfwslParamsService.onAccountStatusChanged(b.userId,b.isAuthenticated,Ce.functional,Ce.technical,b.behavioralConsent)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.iH),n.rXU(is.Vk),n.rXU(La.XB),n.rXU(Ui.SQ),n.rXU(Pc),n.rXU(If.f),n.rXU(Ui.J6),n.rXU(Lg),n.rXU(Ps.BW),n.rXU(Ng),n.rXU(Qa),n.rXU(Xf.lS),n.rXU(Qf),n.rXU(Yd.Q),n.rXU(vi.y),n.rXU(ur.HF),n.rXU(La.Tg),n.rXU(kg.X),n.rXU(Zf.T),n.rXU(Fg.V),n.rXU(La.PZ),n.rXU(ld),n.rXU(iu.h),n.rXU(go.bZ),n.rXU(Yp.Y),n.rXU(Vl.n),n.rXU(Jf.o),n.rXU(Wp.Z),n.rXU(ru.r),n.rXU($p.n),n.rXU($r.c),n.rXU(gr.M),n.rXU(Jo.W),n.rXU(ut.AY),n.rXU(Eu),n.rXU(Yr.V),n.rXU(Gl.$))},F.\u0275cmp=n.VBU({type:F,selectors:[["nvapp-root"]],viewQuery:function(b,N){if(1&b&&n.GBs(nr,5),2&b){let Ce;n.mGM(Ce=n.lsd())&&(N.nvAppPageContainer=Ce.first)}},decls:7,vars:6,consts:[["nvAppPage",""],[1,"nv-app","nv-hig"],[1,"nv-app-sidebar",3,"itemClicked","expandable","pageNavSidebarItems","currentSelectedItem","showBorder"],[1,"nv-app-content"],[3,"isDriverInstalled","isMinimumDriverInstalled"],[1,"nv-app-page"]],template:function(b,N){if(1&b){const Ce=n.RV6();n.j41(0,"div",1)(1,"nv-hig-sidebar",2),n.bIt("itemClicked",function(Jt){return n.eBV(Ce),n.Njj(N.routeToPage(Jt))}),n.k0s(),n.j41(2,"div",3),n.nrm(3,"nv-app-bar",4),n.j41(4,"div",5,0),n.nrm(6,"router-outlet"),n.k0s()()()}2&b&&(n.R7$(),n.Y8G("expandable",!1)("pageNavSidebarItems",N.sidebarPageItems)("currentSelectedItem",N.currentPage)("showBorder",!0),n.R7$(2),n.Y8G("isDriverInstalled",N.isDriverInstalled)("isMinimumDriverInstalled",N.isMinimumDriverInstalled))},dependencies:[Go.n3,ii,Zi._],styles:[".nv-app[_ngcontent-%COMP%]{display:flex;height:100%;overflow-y:hidden}.nv-app[_ngcontent-%COMP%]   .nv-app-sidebar[_ngcontent-%COMP%]{--hig-sidebar-collapse-width: var(--rwd-sidebar-width);--hig-sidebar-button-padding-top-bottom-size: 6px;--hig-sidebar-button-padding-left-right-size: 12px;--hig-sidebar-layout-gap-size: 6px;--hig-sidebar-bg: #191919;--hig-sidebar-item-selected-icon-color: rgba(255, 255, 255, .9);--hig-sidebar-item-selected-text-color: rgba(255, 255, 255, .9);--hig-sidebar-collapsed-icon-gap-size: 4px;--hig-sidebar-layout-first-item-top-gap: 0;--hig-sidebar-border-color-rgba: rgba(255, 255, 255, .08)}.nv-app[_ngcontent-%COMP%]   .nv-app-content[_ngcontent-%COMP%]{width:100%;height:100%;position:relative;display:flex;flex-direction:column}.nv-app[_ngcontent-%COMP%]   .nv-app-page[_ngcontent-%COMP%]{overflow-y:overlay;overflow-x:hidden;width:100%;height:100%;background:#191919}"]}),$})();const Us={bridge:{mocks:[]},logger:{defaultLoggingLevel:Ui.q_.Info},window:{name:Ui.Sg.Nvapp},locale:{supportedLang:["cs_CZ","da_DK","de_DE","el_GR","en_GB","en_US","es_ES","es_MX","fi_FI","fr_FR","hu_HU","it_IT","ja_JP","ko_KR","nb_NO","nl_NL","pl_PL","pt_BR","pt_PT","ru_RU","sk_SK","sl_SI","sv_SE","th_TH","tr_TR","uk_UA","zh_CN","zh_TW"]},configFileName:"assets/config/config.json",production:!0};var za=c(15824);let nl=(()=>{var F;class ${constructor(b,N){this.loggingService=b,this.appConfig=N,this.logger=this.loggingService.getLogger("HttpLoggingService")}intercept(b,N){return this.logger.info("Going to call endpoint request url ",b.url),N.handle(b).pipe((0,xr.M)(Ce=>{if(Ce instanceof v.cS){const ft=Ce;this.logger.info("Http response for request ",ft.url," returns status: ",ft.status),ft.url.match(this.appConfig.gfwsl.server)&&this.logger.info(" gfwsl returned successfully with response ",ft)}}),(0,wr.W)(Ce=>(this.handleHttpError(Ce,b),(0,Nn.$)(Ce))))}handleHttpError(b,N){this.logger.error(`Http request method '${N.method}', url '${N.url}' FAILED with response`,b)}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.J6),n.KVO(is.Vk))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac}),$})();const ul=["skipBtn"],Gr=["prevBtn"],il=["actionBtn"];function Jl(F,$){1&F&&(n.j41(0,"button",8,1),n.EFF(2),n.nI1(3,"translate"),n.k0s()),2&F&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"ootb.previous")," "))}function ql(F,$){1&F&&(n.j41(0,"button",9,2),n.EFF(2),n.nI1(3,"translate"),n.k0s()),2&F&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"ootb.skipToApp")," "))}let Wl=(()=>{var F;class ${set ootbActionState(b){this._ootbActionState=b,this.ootbAction=b.toString()}get ootbActionState(){return this._ootbActionState}constructor(b){this.loggingService=b,this.actionBtnClicked=new n.bkB,this.prevBtnClicked=new n.bkB,this.skipToAppBtnClicked=new n.bkB,this.logger=this.loggingService.getLogger("OotbActionComponent")}ngAfterViewInit(){this.skipBtn&&this.skipToApp(),this.prevBtn&&this.goToPrevExperience(),this.actionBtn&&this.onActionBtn()}skipToApp(){(0,ia.R)(this.skipBtn?.nativeElement,"click").pipe((0,ji.s)(1)).subscribe(b=>{this.logger.info("User has decided to skip the OOTB experience"),this.skipToAppBtnClicked.emit()},b=>{this.logger.error("Error occurred while clicking on skipToApp button ",b)})}goToPrevExperience(){(0,ia.R)(this.prevBtn?.nativeElement,"click").pipe((0,ji.s)(1)).subscribe(b=>{this.logger.info("Go to previous experience"),this.prevBtnClicked.emit()},b=>{this.logger.error("Error occurred while clicking on previous button ",b)})}onActionBtn(){(0,ia.R)(this.actionBtn?.nativeElement,"click").pipe((0,ji.s)(1)).subscribe(b=>{this.logger.info("User has clicked",this.ootbActionState),this.actionBtnClicked.emit(this.ootbActionState)},b=>{this.logger.error("Error occurred while clicking on next button ",b)})}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-ootb-action"]],viewQuery:function(b,N){if(1&b&&(n.GBs(ul,5,n.aKT),n.GBs(Gr,5,n.aKT),n.GBs(il,5,n.aKT)),2&b){let Ce;n.mGM(Ce=n.lsd())&&(N.skipBtn=Ce.first),n.mGM(Ce=n.lsd())&&(N.prevBtn=Ce.first),n.mGM(Ce=n.lsd())&&(N.actionBtn=Ce.first)}},inputs:{isPrevEnabled:"isPrevEnabled",isSkipToAppEnabled:"isSkipToAppEnabled",ootbActionState:"ootbActionState"},outputs:{actionBtnClicked:"actionBtnClicked",prevBtnClicked:"prevBtnClicked",skipToAppBtnClicked:"skipToAppBtnClicked"},decls:8,vars:5,consts:[["actionBtn",""],["prevBtn",""],["skipBtn",""],["fxLayout","row","fxLayoutAlign","space-between center",1,"ootb-action-container"],["mat-button","","class","prev-btn font-button2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"navigation-actions"],["mat-button","","class","skip-btn font-button2",4,"ngIf"],["mat-raised-button","",1,"action-btn","font-button2","mat-accent"],["mat-button","",1,"prev-btn","font-button2"],["mat-button","",1,"skip-btn","font-button2"]],template:function(b,N){1&b&&(n.j41(0,"div",3),n.DNE(1,Jl,4,3,"button",4),n.j41(2,"div",5),n.DNE(3,ql,4,3,"button",6),n.j41(4,"button",7,0),n.EFF(6),n.nI1(7,"translate"),n.k0s()()()),2&b&&(n.R7$(),n.Y8G("ngIf",N.isPrevEnabled),n.R7$(2),n.Y8G("ngIf",N.isSkipToAppEnabled),n.R7$(3),n.SpI(" ",n.bMT(7,3,N.ootbAction)," "))},dependencies:[$i.bT,Ca.Aq,Ur.iV,Kn.DJ,Kn.sA,Xr.D9],styles:[".experience-container[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%]   .experience-title[_ngcontent-%COMP%], .experience-container[_ngcontent-%COMP%]   .experience-content[_ngcontent-%COMP%]{width:395px;padding:30px 24px 0}.experience-container[_ngcontent-%COMP%]   .experience-content-container[_ngcontent-%COMP%]{width:100%;position:relative}.experience-container[_ngcontent-%COMP%]   .experience-content[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{z-index:1}.experience-container[_ngcontent-%COMP%]   .mat-slide-toggle[_ngcontent-%COMP%]{height:28px}.update-note[_ngcontent-%COMP%]{color:#fff;margin-top:24px}.default-letter-spacing[_ngcontent-%COMP%]{letter-spacing:.25px}.ootb-action-container[_ngcontent-%COMP%]{height:52px;width:100%;padding:0 8px}.ootb-action-container[_ngcontent-%COMP%]   .navigation-actions[_ngcontent-%COMP%]{margin-left:auto}.ootb-action-container[_ngcontent-%COMP%]   .action-btn[_ngcontent-%COMP%], .ootb-action-container[_ngcontent-%COMP%]   .skip-btn[_ngcontent-%COMP%], .ootb-action-container[_ngcontent-%COMP%]   .prev-btn[_ngcontent-%COMP%]{letter-spacing:.4px;color:#fff;cursor:pointer;outline:none;border:none;height:36px}.ootb-action-container[_ngcontent-%COMP%]   .action-btn[_ngcontent-%COMP%]{background:#76b900}.ootb-action-container[_ngcontent-%COMP%]   .skip-btn[_ngcontent-%COMP%], .ootb-action-container[_ngcontent-%COMP%]   .prev-btn[_ngcontent-%COMP%]{background:none;padding:0 8px}.ootb-action-container[_ngcontent-%COMP%]   .skip-btn[_ngcontent-%COMP%]{margin-right:8px}"]}),$})();var hc=c(70445);const Cd=(F,$,U)=>({"grd-image":F,"nsd-image":$,"nwd-image":U}),ou=(F,$,U)=>({selected:F,"wide-driver-chip":$,"driver-chip":U});function Ed(F,$){1&F&&n.nrm(0,"nv-app-page-load-spinner")}function $d(F,$){if(1&F){const U=n.RV6();n.j41(0,"button",8),n.bIt("click",function(){const N=n.eBV(U).$implicit,Ce=n.XpG(2);return n.Njj(Ce.onPreferenceChange(N))}),n.j41(1,"div",9)(2,"span",10),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"span",11),n.EFF(6),n.nI1(7,"translate"),n.k0s()()()}if(2&F){const U=$.$implicit,b=n.XpG(2);n.Y8G("ngClass",n.sMw(8,ou,U.isSelected,b.canNWD,!b.canNWD)),n.R7$(2),n.Y8G("isMultiLineEllipsis",!0),n.R7$(),n.JRh(n.bMT(4,4,U.title)),n.R7$(3),n.JRh(n.bMT(7,6,U.subtitle))}}function ah(F,$){if(1&F&&(n.j41(0,"div",2)(1,"span",3),n.EFF(2),n.nI1(3,"translate"),n.nI1(4,"translate"),n.k0s(),n.j41(5,"div",4)(6,"div",5),n.DNE(7,$d,8,12,"button",6),n.j41(8,"span",7),n.EFF(9),n.nI1(10,"translate"),n.k0s()()()()),2&F){const U=n.XpG();n.Y8G("ngClass",n.sMw(10,Cd,U.isGRD,U.isNSD,U.canNWD)),n.R7$(2),n.SpI(" ",U.canNWD?n.bMT(3,4,"ootb.workstationDriverExperienceTitle"):n.bMT(4,6,"ootb.driverExperienceTitle")," "),n.R7$(5),n.Y8G("ngForOf",U.driverTypes),n.R7$(2),n.JRh(n.bMT(10,8,U.driverDescription))}}let qh=(()=>{var F;class ${constructor(b,N,Ce,ft,Jt,wn){this.loggingService=b,this.hardwareInfoService=N,this.driverInfoService=Ce,this.driverUpdateService=ft,this.ootbService=Jt,this.appConfig=wn,this.driverTypes=[],this.isLoading$=this.ootbService.loading,this.isGRD=!1,this.isNSD=!1,this.canNSD=!1,this.canNWD=!1,this.driverTypeSelected=new n.bkB,this.skipDriverExperience=new n.bkB,this.logger=this.loggingService.getLogger("nvapp/OotbDriverComponent")}ngOnInit(){this.ootbService.updateLoading(!0),this.initDriverExperienceInfo()}onPreferenceChange(b){this.logger.info("Selected Preference ",b.title),this.driverTypeSelected.emit(b),this.updateDriverExperience(b),this.driverTypes.forEach(N=>{N.isSelected=N.id===b.id})}initDriverExperienceInfo(){(0,Ts.zV)([this.driverInfoService.getIsCRDSupported(),this.isPersonasEnabled()]).pipe((0,ji.s)(1),(0,Br.n)(([b,N])=>(this.logger.info("isNSDSupported ",b),this.driverTypes=N?hc.MA:hc.cB,N?this.driverUpdateService.getUpdateStrategyPreference().pipe((0,Rn.T)(Ce=>Ce||Oc.eS.WsRecommendedDriver),(0,xr.M)(Ce=>this.canNWD=!0),(0,ji.s)(1)):b?this.hardwareInfoService.getGenericInfo(!1).pipe((0,xr.M)(Ce=>this.canNSD=!0),(0,Rn.T)(Ce=>Ce.DriverType),(0,ji.s)(1)):N||b?void 0:(this.driverTypes[Oc.uj.GameReadyDriver].isInstalled=!0,this.driverTypeSelected.emit(this.driverTypes[Oc.uj.GameReadyDriver]),this.ootbService.updateLoading(!1),this.skipDriverExperience.emit(),ya.w)))).subscribe(b=>{this.initializeDriverTypes(b),this.ootbService.updateLoading(!1)},b=>{this.logger.error("Error occurred while initializing driver experience details",b),this.driverTypes[Oc.uj.GameReadyDriver].isSelected=!0,this.driverTypes[Oc.uj.GameReadyDriver].isInstalled=!0,this.driverTypeSelected.emit(this.driverTypes[Oc.uj.GameReadyDriver]),this.ootbService.updateLoading(!1)})}initializeDriverTypes(b){this.driverTypes.forEach(N=>{const Ce=N.id===b;N.isInstalled=Ce,N.isSelected=this.selectedDriverType?N.id===this.selectedDriverType.id:Ce,N.isSelected&&(this.logger.info("Preferred driverType ",N.title),this.updateDriverExperience(N),this.driverTypeSelected.emit(N))})}updateDriverExperience(b){switch(this.isGRD=this.isNSD=!1,b?.id){case Oc.uj.GameReadyDriver:this.driverDescription="ootb.grdDescription",this.isGRD=!0;break;case Oc.uj.CreatorReadyDriver:this.driverDescription="ootb.nsdDescription",this.isNSD=!0;break;case Oc.eS.WsRecommendedDriver:case Oc.eS.WsLeadingEdgeDriver:case Oc.eS.WsConservativeDriver:this.driverDescription=" ";break;default:this.isGRD=!0,this.driverDescription="ootb.grdDescription"}}isPersonasEnabled(){const b=this.appConfig?.featureEnablement?.workstation;return b?.enabled&&b?.personas?.enabled?this.hardwareInfoService.getQuadroSystemFlag():(0,yr.of)(!1)}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Ui.SQ),n.rXU(Hf.u),n.rXU(If.f),n.rXU(Yd.Q),n.rXU(is.Vk))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-ootb-driver"]],inputs:{selectedDriverType:"selectedDriverType"},outputs:{driverTypeSelected:"driverTypeSelected",skipDriverExperience:"skipDriverExperience"},decls:2,vars:2,consts:[[4,"ngIf"],["class","experience-container","fxLayout","column",3,"ngClass",4,"ngIf"],["fxLayout","column",1,"experience-container",3,"ngClass"],[1,"experience-title","font-header6"],["fxFlex","",1,"experience-content-container"],["fxLayout","column",1,"experience-content","driver-experience-content"],["class","content","fxLayout","row","fxLayoutAlign","start center",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"driver-desc","font-body2","default-letter-spacing","content"],["fxLayout","row","fxLayoutAlign","start center",1,"content",3,"click","ngClass"],["fxLayout","column","fxLayoutAlign","start start",1,"chip-info"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-sub1","title",3,"isMultiLineEllipsis"],[1,"chip-sub-title","font-sub2"]],template:function(b,N){1&b&&n.DNE(0,Ed,1,0,"nv-app-page-load-spinner",0)(1,ah,11,14,"div",1),2&b&&(n.Y8G("ngIf",!N.canNSD&&!N.canNWD),n.R7$(),n.Y8G("ngIf",N.canNSD||N.canNWD))},dependencies:[$i.YU,$i.Sq,$i.bT,tt.a,Kn.DJ,Kn.sA,Kn.UI,fs.PW,cr.Q,Xr.D9],styles:[".experience-container[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%]   .experience-title[_ngcontent-%COMP%], .experience-container[_ngcontent-%COMP%]   .experience-content[_ngcontent-%COMP%]{width:395px;padding:30px 24px 0}.experience-container[_ngcontent-%COMP%]   .experience-content-container[_ngcontent-%COMP%]{width:100%;position:relative}.experience-container[_ngcontent-%COMP%]   .experience-content[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{z-index:1}.experience-container[_ngcontent-%COMP%]   .mat-slide-toggle[_ngcontent-%COMP%]{height:28px}.update-note[_ngcontent-%COMP%]{color:#fff;margin-top:24px}.default-letter-spacing[_ngcontent-%COMP%]{letter-spacing:.25px}[_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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .experience-content-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.experience-content-container[_ngcontent-%COMP%]   .driver-experience-content[_ngcontent-%COMP%]{padding-top:20px}.experience-content-container[_ngcontent-%COMP%]   .driver-chip[_ngcontent-%COMP%], .experience-content-container[_ngcontent-%COMP%]   .wide-driver-chip[_ngcontent-%COMP%]{padding:10px 8px 10px 14px;margin:12px 0;width:254px;border:1px solid rgba(255,255,255,.7);cursor:pointer;background:none;text-align:left}.experience-content-container[_ngcontent-%COMP%]   .driver-chip[_ngcontent-%COMP%]:hover, .experience-content-container[_ngcontent-%COMP%]   .wide-driver-chip[_ngcontent-%COMP%]:hover{background:#ffffff14}.experience-content-container[_ngcontent-%COMP%]   .driver-chip[_ngcontent-%COMP%]:active, .experience-content-container[_ngcontent-%COMP%]   .wide-driver-chip[_ngcontent-%COMP%]:active{background:#ffffff29}.experience-content-container[_ngcontent-%COMP%]   .wide-driver-chip[_ngcontent-%COMP%]{width:300px}.experience-content-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{letter-spacing:.5px;-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box}.experience-content-container[_ngcontent-%COMP%]   .chip-sub-title[_ngcontent-%COMP%]{opacity:.75;line-height:16px;font-weight:400}.experience-content-container[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]{background:#ffffff29;border:1px solid #76b900}.experience-content-container[_ngcontent-%COMP%]   .driver-desc[_ngcontent-%COMP%]{margin-top:8px}.grd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-grd-driver-experience.ae47d97afbef711e.jpg) no-repeat center/auto 444px}.nsd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-nsd-driver-experience.35924f6290b36e3b.png) no-repeat center/auto 444px}.nwd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-nwd-driver-experience.69e0cbe2fa83bcdc.png) no-repeat center/auto 444px}"]}),$})();var Ru=c(18553);const Xp=(F,$)=>({"grd-image":F,"nsd-image":$});function bl(F,$){1&F&&n.nrm(0,"nv-app-page-load-spinner")}function su(F,$){if(1&F&&(n.j41(0,"li",13),n.EFF(1),n.k0s()),2&F){const U=n.XpG().$implicit;n.R7$(),n.SpI(" ",U.campaign.title," ")}}function ig(F,$){if(1&F&&(n.qex(0),n.DNE(1,su,2,1,"li",12),n.bVm()),2&F){const U=$.$implicit;n.R7$(),n.Y8G("ngIf",null==U||null==U.campaign?null:U.campaign.title)}}function Qp(F,$){if(1&F&&(n.qex(0),n.j41(1,"span",9),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"ul",10),n.DNE(5,ig,2,1,"ng-container",11),n.k0s(),n.bVm()),2&F){const U=n.XpG(2);n.R7$(2),n.JRh(n.bMT(3,2,"ootb.currentAvailableRewards")),n.R7$(3),n.Y8G("ngForOf",U.availableRewards)}}function rg(F,$){if(1&F&&(n.j41(0,"div",2)(1,"span",3),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"div",4)(5,"div",5),n.DNE(6,Qp,6,4,"ng-container",6),n.j41(7,"span",7),n.EFF(8),n.nI1(9,"translate"),n.k0s(),n.j41(10,"p",8),n.EFF(11),n.nI1(12,"translate"),n.k0s()()()()),2&F){const U=n.XpG();n.Y8G("ngClass",n.l_i(11,Xp,U.isGRD,U.isNSD)),n.R7$(2),n.SpI(" ",n.bMT(3,5,"ootb.redeemRewards")," "),n.R7$(4),n.Y8G("ngIf",U.isRewardsAvailable),n.R7$(2),n.SpI(" ",n.bMT(9,7,"ootb.availableRewards")," "),n.R7$(3),n.SpI(" ",n.bMT(12,9,"ootb.accessRewards")," ")}}let og=(()=>{var F;class ${set selectedDriverType(b){this.isGRD=this.ootbService.isGameReadyDriver(b),this.isNSD=this.ootbService.isCreatorReadyDriver(b),this.isNWD=this.ootbService.isWorkstationDriver(b)}constructor(b,N,Ce,ft){this.loggingService=b,this.loginService=N,this.ootbService=Ce,this.rewardsService=ft,this.isLoading$=this.ootbService.loading,this.loggedIn=new n.bkB,this.logger=this.loggingService.getLogger("nvapp/OotbLoginComponent")}ngOnInit(){this.ootbService.updateLoading(!0),this.initializeLoginExperience()}initializeLoginExperience(){(0,Ol.yU)(this.rewardsService.getRewards(),this.loginService.accountStatusChanged).pipe((0,ji.s)(1)).subscribe(([b,N])=>{!this.rewardsService.isRewardUnAvailable()&&b?.available.length>0&&(this.isRewardsAvailable=!0,this.availableRewards=b[tn.E.Available],this.availableRewards.length>hc.Ik&&(this.availableRewards=this.availableRewards.slice(0,hc.Ik))),this.loggedIn.emit(N.isAuthenticated)},b=>{this.logger.error("Error occurred while initialize login experience",b),this.loggedIn.emit(!1)})}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(ur.HF),n.rXU(Yd.Q),n.rXU(vi.y))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-ootb-login"]],inputs:{selectedDriverType:"selectedDriverType"},outputs:{loggedIn:"loggedIn"},decls:4,vars:4,consts:[["loginExperience",""],[4,"ngIf","ngIfElse"],["fxLayout","column",1,"experience-container",3,"ngClass"],[1,"font-header6","experience-title"],["fxFlex","",1,"experience-content-container"],["fxLayout","column",1,"experience-content"],[4,"ngIf"],[1,"font-body2","font-color-secondary","default-letter-spacing","content"],[1,"font-body2","font-color-secondary","default-letter-spacing","content","access-rewards-text"],[1,"font-body2","default-letter-spacing","content"],[1,"reward-list","content"],[4,"ngFor","ngForOf"],["class","reward-title",4,"ngIf"],[1,"reward-title"]],template:function(b,N){if(1&b&&(n.DNE(0,bl,1,0,"nv-app-page-load-spinner",1),n.nI1(1,"async"),n.DNE(2,rg,13,14,"ng-template",null,0,n.C5r)),2&b){const Ce=n.sdS(3);n.Y8G("ngIf",n.bMT(1,2,N.isLoading$))("ngIfElse",Ce)}},dependencies:[$i.YU,$i.Sq,$i.bT,Kn.DJ,Kn.UI,fs.PW,cr.Q,$i.Jj,Xr.D9],styles:['.experience-container[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%]   .experience-title[_ngcontent-%COMP%], .experience-container[_ngcontent-%COMP%]   .experience-content[_ngcontent-%COMP%]{width:395px;padding:30px 24px 0}.experience-container[_ngcontent-%COMP%]   .experience-content-container[_ngcontent-%COMP%]{width:100%;position:relative}.experience-container[_ngcontent-%COMP%]   .experience-content[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{z-index:1}.experience-container[_ngcontent-%COMP%]   .mat-slide-toggle[_ngcontent-%COMP%]{height:28px}.update-note[_ngcontent-%COMP%]{color:#fff;margin-top:24px}.default-letter-spacing[_ngcontent-%COMP%]{letter-spacing:.25px}.grd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-grd-rewards-experience.1008af5a8d2a562b.png) no-repeat center/auto 444px}.nsd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-nsd-rewards-experience.7d5784c7ae5bef31.png) no-repeat center/auto 444px}.single-reward[_ngcontent-%COMP%]{padding-bottom:24px}.reward-list[_ngcontent-%COMP%]{padding:0 0 0 10px;margin:0 0 19px;list-style-type:"- "}.reward-list[_ngcontent-%COMP%]   .reward-title[_ngcontent-%COMP%]{padding:0 0 5px}.access-rewards-text[_ngcontent-%COMP%]{margin:24px 0}']}),$})();const ep=(F,$,U)=>({"grd-image":F,"nsd-image":$,"nwd-image":U});function Zp(F,$){1&F&&n.nrm(0,"nv-app-page-load-spinner")}function lh(F,$){if(1&F){const U=n.RV6();n.j41(0,"mat-slide-toggle",10),n.bIt("change",function(){n.eBV(U);const N=n.XpG(2);return n.Njj(N.onOptimizeChange())}),n.k0s()}if(2&F){const U=n.XpG(2);n.Y8G("checked",U.isAutoOptimized)}}function $o(F,$){if(1&F&&(n.j41(0,"div",2)(1,"div",3)(2,"span",4),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.DNE(5,lh,1,1,"mat-slide-toggle",5),n.k0s(),n.j41(6,"div",6)(7,"div",7)(8,"span",8),n.EFF(9),n.nI1(10,"translate"),n.k0s(),n.j41(11,"span",9),n.EFF(12),n.nI1(13,"translate"),n.k0s()()()()),2&F){const U=n.XpG();n.Y8G("ngClass",n.sMw(11,ep,U.isGRD,U.isNSD,U.isNWD)),n.R7$(3),n.SpI(" ",n.bMT(4,5,"ootb.optimizeExperienceTitle")," "),n.R7$(2),n.Y8G("ngIf",U.showToggle),n.R7$(4),n.SpI(" ",n.bMT(10,7,"ootb.optimizeRecommendedSetting")," "),n.R7$(3),n.SpI(" ",n.bMT(13,9,"ootb.optimizeNewGames")," ")}}let Md=(()=>{var F;class ${set selectedDriverType(b){this.isGRD=this.ootbService.isGameReadyDriver(b),this.isNSD=this.ootbService.isCreatorReadyDriver(b),this.isNWD=this.ootbService.isWorkstationDriver(b)}constructor(b,N){this.loggingService=b,this.ootbService=N,this.optimizeChanged=new n.bkB,this.skipExperience=new n.bkB,this.isLoading$=this.ootbService.loading,this.isAutoOptimized=!0,this.showToggle=!1,this.logger=this.loggingService.getLogger("nvapp/OotbOptimizeComponent")}ngOnInit(){this.ootbService.updateLoading(!0),(void 0===this.isOptimized?(0,yr.of)(this.isOptimized).pipe((0,ra.ZZ)(N=>this.ootbService.getAutoOptimizeValue()),(0,xr.M)(N=>{this.logger.info("Auto Optimize Value",N),this.optimizeChanged.emit(N)}),(0,ji.s)(1)):(0,yr.of)(this.isOptimized)).pipe((0,ra.ZZ)(N=>(this.isAutoOptimized=N,(0,oo.O)(0)))).subscribe(N=>{this.ootbService.updateLoading(!1),this.showToggle=!0},N=>{this.logger.error("Error while fetching optimize value",N),(N?.code===Ir._O||N instanceof gs.n)&&this.logger.error("Localgames plugin not found, not able to get autoOptimize flag value due to timeout ",N),this.skipExperience.emit(),this.ootbService.updateLoading(!1)})}onOptimizeChange(){this.isAutoOptimized=!this.isAutoOptimized,this.logger.info("Optimize State: "+this.isAutoOptimized),this.optimizeChanged.emit(this.isAutoOptimized)}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Yd.Q))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-ootb-optimize"]],inputs:{selectedDriverType:"selectedDriverType",isOptimized:"isOptimized"},outputs:{optimizeChanged:"optimizeChanged",skipExperience:"skipExperience"},decls:4,vars:4,consts:[["optimizeStep",""],[4,"ngIf","ngIfElse"],[1,"experience-container",3,"ngClass"],[1,"experience-title"],[1,"font-header6"],[3,"checked","change",4,"ngIf"],[1,"experience-content-container"],[1,"experience-content"],[1,"font-body2","default-letter-spacing","content"],[1,"font-body2","optimize-text","default-letter-spacing","content"],[3,"change","checked"]],template:function(b,N){if(1&b&&(n.DNE(0,Zp,1,0,"nv-app-page-load-spinner",1),n.nI1(1,"async"),n.DNE(2,$o,14,15,"ng-template",null,0,n.C5r)),2&b){const Ce=n.sdS(3);n.Y8G("ngIf",!0===n.bMT(1,2,N.isLoading$))("ngIfElse",Ce)}},dependencies:[$i.YU,$i.bT,zn.tG,no.P2,fs.PW,cr.Q,$i.Jj,Xr.D9],styles:[".experience-container[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%]   .experience-title[_ngcontent-%COMP%], .experience-container[_ngcontent-%COMP%]   .experience-content[_ngcontent-%COMP%]{width:395px;padding:30px 24px 0}.experience-container[_ngcontent-%COMP%]   .experience-content-container[_ngcontent-%COMP%]{width:100%;position:relative}.experience-container[_ngcontent-%COMP%]   .experience-content[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{z-index:1}.experience-container[_ngcontent-%COMP%]   .mat-slide-toggle[_ngcontent-%COMP%]{height:28px}.update-note[_ngcontent-%COMP%]{color:#fff;margin-top:24px}.default-letter-spacing[_ngcontent-%COMP%]{letter-spacing:.25px}.experience-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.experience-container[_ngcontent-%COMP%]   .experience-title[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;box-sizing:border-box}.experience-container[_ngcontent-%COMP%]   .experience-content-container[_ngcontent-%COMP%]{flex:1 1 0;box-sizing:border-box}.experience-container[_ngcontent-%COMP%]   .experience-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box}.optimize-text[_ngcontent-%COMP%]{margin-top:20px}.grd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-grd-ops-experience.98c0923bd68cfd11.jpg) no-repeat center/auto 444px}.nsd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-nsd-ops-experience.7954f3c97e07a320.jpg) no-repeat center/auto 444px}.nwd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-nwd-ops-experience.bebbe17ec587266f.png) no-repeat center/auto 444px}"]}),$})();const wc=(F,$,U)=>({"grd-image":F,"nsd-image":$,"nwd-image":U});function Cl(F,$){if(1&F){const U=n.RV6();n.j41(0,"mat-slide-toggle",8),n.mxI("ngModelChange",function(N){n.eBV(U);const Ce=n.XpG();return n.DH7(Ce.isOverlayEnabled,N)||(Ce.isOverlayEnabled=N),n.Njj(N)}),n.bIt("change",function(){n.eBV(U);const N=n.XpG();return n.Njj(N.onOverlayToggle())}),n.k0s()}if(2&F){const U=n.XpG();n.R50("ngModel",U.isOverlayEnabled)}}function ms(F,$){if(1&F&&(n.qex(0),n.nrm(1,"p",9),n.nI1(2,"translate"),n.nI1(3,"trustAsHtml"),n.bVm()),2&F){const U=n.XpG();n.R7$(),n.Y8G("ngClass","common.enabling"===U.igoHotKeyInfo?"font-sub2":"font-body2")("innerHtml",n.bMT(3,4,n.bMT(2,2,U.igoHotKeyInfo)),n.npT)}}let sg=(()=>{var F;class ${set selectedDriverType(b){this.isGRD=this.ootbService.isGameReadyDriver(b),this.isNSD=this.ootbService.isCreatorReadyDriver(b),this.isNWD=this.ootbService.isWorkstationDriver(b)}constructor(b,N,Ce,ft,Jt,wn,x){this.loggingService=b,this.ootbService=N,this.translateService=Ce,this.nvAppTelemetryUtilService=ft,this.appConfig=Jt,this.overlayService=wn,this.rewardsService=x,this.unsubscribe$=new fo.B7,this.piplComplianceFailed=new n.bkB,this.noRewardsAvailable=new n.bkB,this.skipExperience=new n.bkB,this.showToggle=!1,this.logger=this.loggingService.getLogger("nvapp/OotbIgoComponent")}ngOnInit(){this.ootbService.updateLoading(!0),this.appConfig?.starfleet?.url||this.piplComplianceFailed.emit(!0),this.rewardsService.getRewards().pipe((0,ji.s)(1)).subscribe(b=>this.noRewardsAvailable.emit(!!b?.available&&0===b.available.length),b=>this.logger.error("Error occurred while getting rewards ",b)),this.initializeOverlayToggle(),(0,oo.O)(0).pipe((0,ji.s)(1)).subscribe(b=>this.showToggle=!0)}onOverlayToggle(){this.logger.info("Overlay State: "+this.isOverlayEnabled),this.nvAppTelemetryUtilService.sendSettingChangeEvent(ut.XB,this.isOverlayEnabled.toString(),null,!0),this.overlayService.toggleIgo(this.isOverlayEnabled)}initializeOverlayToggle(){this.overlayService.getOverlayState().pipe((0,pr.Q)(this.unsubscribe$)).subscribe(b=>{this.logger.info("Overlay state received ",b),b&&!b.feature?.overallState&&(this.logger.error("Not able to get contents for overlay feature"),this.skipExperience.emit()),b?.feature?.isPluginError?(this.logger.error("Not able to get overlay state as NvIgoUtil plugin timed out/not found"),this.skipExperience.emit()):this.handleOverlayState(b)},b=>{this.logger.error("Error occurred while fetching overlay feature",b),this.skipExperience.emit(),this.ootbService.updateLoading(!1)})}handleOverlayState(b){b?(this.isOverlayEnabled=b?.feature?.toggle?.value,this.igoHotKeyInfo=b.description===Eo.FU.Enabling?Eo.FU.Enabling:this.translateService.instant("ootb.igoHotKey",{hotKey:b?.feature?.hotKey}),this.ootbService.updateLoading(!1)):this.logger.error("OverlayState is not defined, some error occurred ",b)}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}}return(F=$).\u0275fac=function(b){return new(b||F)(n.rXU(Ui.J6),n.rXU(Yd.Q),n.rXU(Xr.c$),n.rXU(ut.AY),n.rXU(is.Vk),n.rXU(Es.s),n.rXU(vi.y))},F.\u0275cmp=n.VBU({type:F,selectors:[["nv-app-ootb-igo"]],inputs:{selectedDriverType:"selectedDriverType"},outputs:{piplComplianceFailed:"piplComplianceFailed",noRewardsAvailable:"noRewardsAvailable",skipExperience:"skipExperience"},decls:12,vars:13,consts:[["fxLayout","column",1,"experience-container",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between centre",1,"experience-title"],[1,"font-header6"],[3,"ngModel","ngModelChange","change",4,"ngIf"],["fxFlex","",1,"experience-content-container"],["fxLayout","column",1,"experience-content"],[1,"font-body2","default-letter-spacing","content"],[4,"ngIf"],[3,"ngModelChange","change","ngModel"],[1,"igo-shortcut","default-letter-spacing","content",3,"ngClass","innerHtml"]],template:function(b,N){1&b&&(n.j41(0,"div",0)(1,"div",1)(2,"span",2),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.DNE(5,Cl,1,1,"mat-slide-toggle",3),n.k0s(),n.j41(6,"div",4)(7,"div",5)(8,"span",6),n.EFF(9),n.nI1(10,"translate"),n.k0s(),n.DNE(11,ms,4,6,"ng-container",7),n.k0s()()()),2&b&&(n.Y8G("ngClass",n.sMw(9,wc,N.isGRD,N.isNSD,N.isNWD)),n.R7$(3),n.SpI(" ",n.bMT(4,5,"ootb.nvidiaOverlay")," "),n.R7$(2),n.Y8G("ngIf",N.showToggle),n.R7$(4),n.SpI(" ",n.bMT(10,7,"ootb.igoCaptureFromGame")," "),n.R7$(2),n.Y8G("ngIf",N.isOverlayEnabled))},dependencies:[$i.YU,$i.bT,zn.tG,Xs.BC,Xs.vS,no.P2,Kn.DJ,Kn.sA,Kn.UI,fs.PW,Tl.O,Xr.D9],styles:[".experience-container[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%]   .experience-title[_ngcontent-%COMP%], .experience-container[_ngcontent-%COMP%]   .experience-content[_ngcontent-%COMP%]{width:395px;padding:30px 24px 0}.experience-container[_ngcontent-%COMP%]   .experience-content-container[_ngcontent-%COMP%]{width:100%;position:relative}.experience-container[_ngcontent-%COMP%]   .experience-content[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{z-index:1}.experience-container[_ngcontent-%COMP%]   .mat-slide-toggle[_ngcontent-%COMP%]{height:28px}.update-note[_ngcontent-%COMP%]{color:#fff;margin-top:24px}.default-letter-spacing[_ngcontent-%COMP%]{letter-spacing:.25px}.experience-content-container[_ngcontent-%COMP%]   .igo-shortcut[_ngcontent-%COMP%]{margin:20px 0 0}.grd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-grd-overlay-experience.bdeebc393d8fb41d.png) no-repeat center/auto 444px}.nsd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-nsd-overlay-experience.213243bf6d078281.png) no-repeat center/auto 444px}.nwd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-nwd-overlay-experience.8524e30d36744c46.png) no-repeat center/auto 444px}"]}),$})(),av=(()=>{var F;class ${}return(F=$).\u0275fac=function(b){return new(b||F)},F.\u0275mod=n.$C({type:F}),F.\u0275inj=n.G2t({imports:[za.G,Ui._N,(0,Ui.BU)()]}),$})();n.wjB(Ru.j,function(){return[$i.bT,$i.ux,$i.e1,Kn.DJ,Kn.UI,qh,Wl,og,Md,sg]},function(){return[$i.Jj]});var ag=c(7583);function ch(F,$){return $?U=>U.pipe(ch((b,N)=>(0,Vo.H)(F(b,N)).pipe((0,Rn.T)((Ce,ft)=>$(b,Ce,N,ft))))):U=>U.lift(new jg(F))}class jg{constructor($){this.project=$}call($,U){return U.subscribe(new Yg($,this.project))}}class Yg extends ag.gn{constructor($,U){super($),this.project=U,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next($){this.hasSubscription||this.tryNext($)}tryNext($){let U;const b=this.index++;try{U=this.project($,b)}catch(N){return void this.destination.error(N)}this.hasSubscription=!0,this._innerSub(U)}_innerSub($){const U=new ag.zA(this),b=this.destination;b.add(U);const N=(0,ag.tS)($,U);N!==U&&b.add(N)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext($){this.destination.next($)}notifyError($){this.destination.error($)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var Wg=c(21333);let ym=(()=>{var F;class $ extends Wg.tg{constructor(b,N,Ce,ft){super(b.getLogger("ExceptionService"),N,ft),this.exceptionInfoService=Ce,this.exceptionDataList=new Map,this.exceptionEvent$=new fo.B7}handleClientSideException(b,N){this.registerExceptionLimiter(),this.timeLimiter=N.exceptionTimeLimiter,this.exceptionEvent$.next(b)}registerExceptionLimiter(){let b;this.exceptionEvent$.pipe((0,Lc.p)(N=>(b={message:N.message,fileName:"",stackFrameSource:"",exceptionTrace:N.exceptionString},!this.exceptionMatchFound(N.name,b))),(0,xr.M)(N=>{this.exceptionDataList.set(N.name,b),this.sendExceptionInfo(N)}),ch(()=>(this.logger.info("Exception rate limit timer started: ",this.timeLimiter),(0,oo.O)(this.timeLimiter)))).subscribe(()=>{this.clearExceptionDataList()})}exceptionMatchFound(b,N){let Ce=!1;return!(0,Cr.isNil)(this.exceptionDataList)&&!(0,Cr.isEmpty)(this.exceptionDataList)&&this.exceptionDataList.has(b)&&(Ce=(0,Cr.isEqual)(N,this.exceptionDataList.get(b))),Ce}clearExceptionDataList(){this.logger.info("clearing exception data list"),this.exceptionDataList.clear()}sendExceptionInfo(b){const N=this.injector.get(is.Vk);this.exceptionInfoService.sendExceptionInfo(Ui.T6.NvApp,N?.build?.version,b.name,b.message,b.exceptionString).pipe((0,ji.s)(1)).subscribe(Ce=>{Ce&&this.logger.info("Send Exception Info service called with response:",Ce)},Ce=>{this.logger.error("Error sending Exception Params with error: ",Ce)})}}return(F=$).\u0275fac=function(b){return new(b||F)(n.KVO(Ui.J6),n.KVO(n.zZn),n.KVO(Ui.FK),n.KVO(go.bZ))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac}),$})();var sm=c(60846);function km(F){return F.starfleet}function Sm(F){return F.jsEvents||Or.Op}function lv(F){return{appWindowName:Ui.Sg.Nvapp,storage:Or.P6.IndexedDb,clientVersion:F.build.version,clientVariant:F.build.variant,...F.cloudVariables,openTracingConfig:F.otelTracerConfig,piplExemption:!0}}function Fm(){return{tvMode:!1,offDeviceLinkConfig:{title:"offDeviceLink.title",primaryButtonText:"offDeviceLink.button"}}}function cv(F){return{...F.aem}}function Um(F){return F.exception||Wg.u$}c(64655);let dv=(()=>{var F;class ${}return(F=$).\u0275fac=function(b){return new(b||F)},F.\u0275mod=n.$C({type:F,bootstrap:[fr]}),F.\u0275inj=n.G2t({providers:[{provide:ns.aT,useValue:{filePath:Us.configFileName}},{provide:pl.X$,useFactory:km,deps:[is.Vk]},ns.LV,is.ht,Ui.cr,{provide:Or.i1,useFactory:Sm,deps:[is.Vk]},{provide:La.Ev,useFactory:is.OS,deps:[is.Vk]},{provide:Ps.y2,useFactory:lv,deps:[is.Vk]},{provide:Na.Xv,useFactory:Fm,deps:[is.Vk]},{provide:v.a7,useClass:nl,deps:[Ui.J6,is.Vk],multi:!0},Ko.bZ,{provide:Na.Xv,useFactory:Fm},{provide:La.Kq,useFactory:cv,deps:[is.Vk]},{provide:Wg.sT,useFactory:Um,deps:[is.Vk]},{provide:n.zcH,useClass:ym},{provide:sm.K,useValue:{moduleNames:sm.Q,mandatoryPluginTimeout:Se._V}},{provide:Go.b,useClass:Rg}],imports:[r.Bb,lr,Kf,v.q1,La.XU,(0,Ui.BY)(),Ui._N.configure(Us),za.G,pl.BF,Or.zK,Ps.IS,av,Wg.Wj,Ko.Mn]}),$})();Us.production&&(0,n.SmG)(),r.sG().bootstrapModule(dv).catch(F=>console.error(F))},92950:function(je,z,c){"use strict";var r=this&&this.__createBinding||(Object.create?function(v,h,f,A){void 0===A&&(A=f);var M=Object.getOwnPropertyDescriptor(h,f);(!M||("get"in M?!h.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return h[f]}}),Object.defineProperty(v,A,M)}:function(v,h,f,A){void 0===A&&(A=f),v[A]=h[f]}),n=this&&this.__exportStar||function(v,h){for(var f in v)"default"!==f&&!Object.prototype.hasOwnProperty.call(h,f)&&r(h,v,f)};Object.defineProperty(z,"__esModule",{value:!0}),n(c(91743),z)},91743:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.LogImpl=void 0;class c{constructor(n,v){this.module=n,this.enabled=!0,this.shouldLogToConsole=!1,this.queue=[],v&&(void 0!==v.enable&&(this.enabled=v.enable),void 0!==v.enableConsoleLogging&&(this.shouldLogToConsole=v.enableConsoleLogging)),this._nop=(h,f,...A)=>{},this._d=(h,f,...A)=>this.handleLog("DEBUG",h,f,A),this._i=(h,f,...A)=>this.handleLog("INFO",h,f,A),this._w=(h,f,...A)=>this.handleLog("WARN",h,f,A),this._e=(h,f,...A)=>this.handleLog("ERROR",h,f,A)}get d(){return this.enabled?this.shouldLogToConsole?console.debug.bind(console,"%s DEBUG [%s] %s@@",this.renderDate(new Date)):this._d:this._nop}get w(){return this.enabled?this.shouldLogToConsole?console.warn.bind(console,"%s WARN  [%s] %s@@",this.renderDate(new Date)):this._w:this._nop}get i(){return this.enabled?this.shouldLogToConsole?console.info.bind(console,"%s INFO  [%s] %s@@",this.renderDate(new Date)):this._i:this._nop}get e(){return this.shouldLogToConsole?console.error.bind(console,"%s ERROR [%s] %s@@",this.renderDate(new Date)):this._e}setLogCallback(n){this.callback=n,this.callback&&this.queue.length&&window.setTimeout(()=>{this.executeLogCallback(!0)})}isCallbackRegistered(){return!!this.callback}sanitize(n){if(!n)return n;const v=[{secretBlock:/(partnerCustomData" *: *")((\\"|[^"])*)(?=")/g,replaceStr:"$1***"},{secretBlock:/("clientIp" *: *")(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(?=")/g,replaceStr:"$1***"}];for(const h of v)n=n.replace(h.secretBlock,h.replaceStr);return n}stringifyArgs(...n){return n.length?`##${JSON.stringify(n)}`:""}executeLogCallback(n){this.callback&&this.queue.length&&(this.callback(this.queue[0]),this.queue.shift(),n&&this.queue.length&&window.setTimeout(()=>{this.executeLogCallback(!0)}))}handleLog(n,v,h,f){let A=`${h}${this.stringifyArgs(...f)}`,M={timestamp:this.renderDate(new Date),level:n,tag:this.module+"/"+v,message:A};this.queue.push(M),this.callback?window.setTimeout(()=>{this.executeLogCallback(!1)}):this.queue.length>c.MAX_QUEUE_SIZE&&this.queue.shift()}renderDate(n){const v=(s,u,m)=>{const I=u-s.length;if(I>0){let R="";for(let O=0;O<I;O++)R+=m;return R+=s,R}return s};let l="";return l=v(n.getFullYear().toString(),4,"0")+"-"+(v((n.getMonth()+1).toString(),2,"0")+"-")+(s=>v(s.getDate().toString(),2,"0"))(n)+" "+(s=>v(s.getHours().toString(),2,"0"))(n)+":"+(s=>v(s.getMinutes().toString(),2,"0"))(n)+":"+(s=>v(s.getSeconds().toString(),2,"0"))(n)+"."+(s=>v(s.getMilliseconds().toString(),3,"0"))(n),l}}z.LogImpl=c,c.MAX_QUEUE_SIZE=50},29184:(je,z,c)=>{"use strict";c.r(z),c.d(z,{DiagConsoleLogger:()=>ge,DiagLogLevel:()=>I,INVALID_SPANID:()=>Un,INVALID_SPAN_CONTEXT:()=>qe,INVALID_TRACEID:()=>ni,ProxyTracer:()=>Mi,ProxyTracerProvider:()=>Cn,ROOT_CONTEXT:()=>ne,SamplingDecision:()=>Wn,SpanKind:()=>Oi,SpanStatusCode:()=>Qn,TraceFlags:()=>kn,ValueType:()=>De,baggageEntryMetadataFromString:()=>Me,context:()=>li,createContextKey:()=>be,createNoopMeter:()=>ve,createTraceState:()=>Pi,default:()=>Ar,defaultTextMapGetter:()=>pe,defaultTextMapSetter:()=>Qe,diag:()=>er,isSpanContextValid:()=>We,isValidSpanId:()=>Et,isValidTraceId:()=>Ct,metrics:()=>fi,propagation:()=>Ao,trace:()=>ao});var r="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},n="1.4.1",v=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,f=function h(sn){var Gn=new Set([sn]),$n=new Set,Ci=sn.match(v);if(!Ci)return function(){return!1};var Wi_major=+Ci[1],Wi_minor=+Ci[2],Wi_patch=+Ci[3];if(null!=Ci[4])return function(_o){return _o===sn};function Ti(Tr){return $n.add(Tr),!1}function Gi(Tr){return Gn.add(Tr),!0}return function(_o){if(Gn.has(_o))return!0;if($n.has(_o))return!1;var zo=_o.match(v);if(!zo)return Ti(_o);var as_minor=+zo[2],as_patch=+zo[3];return null!=zo[4]||Wi_major!==+zo[1]?Ti(_o):0===Wi_major?Wi_minor===as_minor&&Wi_patch<=as_patch?Gi(_o):Ti(_o):Wi_minor<=as_minor?Gi(_o):Ti(_o)}}(n),A=n.split(".")[0],M=Symbol.for("opentelemetry.js.api."+A),T=r;function E(sn,Gn,$n,Ci){var Wi;void 0===Ci&&(Ci=!1);var Ti=T[M]=null!==(Wi=T[M])&&void 0!==Wi?Wi:{version:n};if(!Ci&&Ti[sn]){var Gi=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+sn);return $n.error(Gi.stack||Gi.message),!1}return Ti.version!==n?(Gi=new Error("@opentelemetry/api: Registration of version v"+Ti.version+" for "+sn+" does not match previously registered API v"+n),$n.error(Gi.stack||Gi.message),!1):(Ti[sn]=Gn,$n.debug("@opentelemetry/api: Registered a global for "+sn+" v"+n+"."),!0)}function y(sn){var Gn,$n,Ci=null===(Gn=T[M])||void 0===Gn?void 0:Gn.version;if(Ci&&f(Ci))return null===($n=T[M])||void 0===$n?void 0:$n[sn]}function S(sn,Gn){Gn.debug("@opentelemetry/api: Unregistering a global for "+sn+" v"+n+".");var $n=T[M];$n&&delete $n[sn]}var u=function(){function sn(Gn){this._namespace=Gn.namespace||"DiagComponentLogger"}return sn.prototype.debug=function(){for(var Gn=[],$n=0;$n<arguments.length;$n++)Gn[$n]=arguments[$n];return m("debug",this._namespace,Gn)},sn.prototype.error=function(){for(var Gn=[],$n=0;$n<arguments.length;$n++)Gn[$n]=arguments[$n];return m("error",this._namespace,Gn)},sn.prototype.info=function(){for(var Gn=[],$n=0;$n<arguments.length;$n++)Gn[$n]=arguments[$n];return m("info",this._namespace,Gn)},sn.prototype.warn=function(){for(var Gn=[],$n=0;$n<arguments.length;$n++)Gn[$n]=arguments[$n];return m("warn",this._namespace,Gn)},sn.prototype.verbose=function(){for(var Gn=[],$n=0;$n<arguments.length;$n++)Gn[$n]=arguments[$n];return m("verbose",this._namespace,Gn)},sn}();function m(sn,Gn,$n){var Ci=y("diag");if(Ci)return $n.unshift(Gn),Ci[sn].apply(Ci,function(sn,Gn,$n){if($n||2===arguments.length)for(var Ti,Ci=0,Wi=Gn.length;Ci<Wi;Ci++)(Ti||!(Ci in Gn))&&(Ti||(Ti=Array.prototype.slice.call(Gn,0,Ci)),Ti[Ci]=Gn[Ci]);return sn.concat(Ti||Array.prototype.slice.call(Gn))}([],function(sn,Gn){var $n="function"==typeof Symbol&&sn[Symbol.iterator];if(!$n)return sn;var Wi,Gi,Ci=$n.call(sn),Ti=[];try{for(;(void 0===Gn||Gn-- >0)&&!(Wi=Ci.next()).done;)Ti.push(Wi.value)}catch(Tr){Gi={error:Tr}}finally{try{Wi&&!Wi.done&&($n=Ci.return)&&$n.call(Ci)}finally{if(Gi)throw Gi.error}}return Ti}($n),!1))}var I=function(sn){return sn[sn.NONE=0]="NONE",sn[sn.ERROR=30]="ERROR",sn[sn.WARN=50]="WARN",sn[sn.INFO=60]="INFO",sn[sn.DEBUG=70]="DEBUG",sn[sn.VERBOSE=80]="VERBOSE",sn[sn.ALL=9999]="ALL",sn}(I||{}),fe=function(){function sn(){function Gn(Wi){return function(){for(var Ti=[],Gi=0;Gi<arguments.length;Gi++)Ti[Gi]=arguments[Gi];var Tr=y("diag");if(Tr)return Tr[Wi].apply(Tr,function(sn,Gn,$n){if($n||2===arguments.length)for(var Ti,Ci=0,Wi=Gn.length;Ci<Wi;Ci++)(Ti||!(Ci in Gn))&&(Ti||(Ti=Array.prototype.slice.call(Gn,0,Ci)),Ti[Ci]=Gn[Ci]);return sn.concat(Ti||Array.prototype.slice.call(Gn))}([],function(sn,Gn){var $n="function"==typeof Symbol&&sn[Symbol.iterator];if(!$n)return sn;var Wi,Gi,Ci=$n.call(sn),Ti=[];try{for(;(void 0===Gn||Gn-- >0)&&!(Wi=Ci.next()).done;)Ti.push(Wi.value)}catch(Tr){Gi={error:Tr}}finally{try{Wi&&!Wi.done&&($n=Ci.return)&&$n.call(Ci)}finally{if(Gi)throw Gi.error}}return Ti}(Ti),!1))}}var $n=this;$n.setLogger=function(Wi,Ti){var Gi,Tr,_o;if(void 0===Ti&&(Ti={logLevel:I.INFO}),Wi===$n){var zo=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return $n.error(null!==(Gi=zo.stack)&&void 0!==Gi?Gi:zo.message),!1}"number"==typeof Ti&&(Ti={logLevel:Ti});var as=y("diag"),ps=function R(sn,Gn){function $n(Ci,Wi){var Ti=Gn[Ci];return"function"==typeof Ti&&sn>=Wi?Ti.bind(Gn):function(){}}return sn<I.NONE?sn=I.NONE:sn>I.ALL&&(sn=I.ALL),Gn=Gn||{},{error:$n("error",I.ERROR),warn:$n("warn",I.WARN),info:$n("info",I.INFO),debug:$n("debug",I.DEBUG),verbose:$n("verbose",I.VERBOSE)}}(null!==(Tr=Ti.logLevel)&&void 0!==Tr?Tr:I.INFO,Wi);if(as&&!Ti.suppressOverrideMessage){var Hs=null!==(_o=(new Error).stack)&&void 0!==_o?_o:"<failed to generate stacktrace>";as.warn("Current logger will be overwritten from "+Hs),ps.warn("Current logger will overwrite one already registered from "+Hs)}return E("diag",ps,$n,!0)},$n.disable=function(){S("diag",$n)},$n.createComponentLogger=function(Wi){return new u(Wi)},$n.verbose=Gn("verbose"),$n.debug=Gn("debug"),$n.info=Gn("info"),$n.warn=Gn("warn"),$n.error=Gn("error")}return sn.instance=function(){return this._instance||(this._instance=new sn),this._instance},sn}(),H=function(){function sn(Gn){this._entries=Gn?new Map(Gn):new Map}return sn.prototype.getEntry=function(Gn){var $n=this._entries.get(Gn);if($n)return Object.assign({},$n)},sn.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(Gn){var $n=function(sn,Gn){var $n="function"==typeof Symbol&&sn[Symbol.iterator];if(!$n)return sn;var Wi,Gi,Ci=$n.call(sn),Ti=[];try{for(;(void 0===Gn||Gn-- >0)&&!(Wi=Ci.next()).done;)Ti.push(Wi.value)}catch(Tr){Gi={error:Tr}}finally{try{Wi&&!Wi.done&&($n=Ci.return)&&$n.call(Ci)}finally{if(Gi)throw Gi.error}}return Ti}(Gn,2);return[$n[0],$n[1]]})},sn.prototype.setEntry=function(Gn,$n){var Ci=new sn(this._entries);return Ci._entries.set(Gn,$n),Ci},sn.prototype.removeEntry=function(Gn){var $n=new sn(this._entries);return $n._entries.delete(Gn),$n},sn.prototype.removeEntries=function(){for(var Gn,$n,Ci=[],Wi=0;Wi<arguments.length;Wi++)Ci[Wi]=arguments[Wi];var Ti=new sn(this._entries);try{for(var Gi=function(sn){var Gn="function"==typeof Symbol&&Symbol.iterator,$n=Gn&&sn[Gn],Ci=0;if($n)return $n.call(sn);if(sn&&"number"==typeof sn.length)return{next:function(){return sn&&Ci>=sn.length&&(sn=void 0),{value:sn&&sn[Ci++],done:!sn}}};throw new TypeError(Gn?"Object is not iterable.":"Symbol.iterator is not defined.")}(Ci),Tr=Gi.next();!Tr.done;Tr=Gi.next())Ti._entries.delete(Tr.value)}catch(zo){Gn={error:zo}}finally{try{Tr&&!Tr.done&&($n=Gi.return)&&$n.call(Gi)}finally{if(Gn)throw Gn.error}}return Ti},sn.prototype.clear=function(){return new sn},sn}(),Z=Symbol("BaggageEntryMetadata"),X=fe.instance();function ue(sn){return void 0===sn&&(sn={}),new H(new Map(Object.entries(sn)))}function Me(sn){return"string"!=typeof sn&&(X.error("Cannot create baggage metadata from unknown type: "+typeof sn),sn=""),{__TYPE__:Z,toString:function(){return sn}}}function be(sn){return Symbol.for(sn)}var ne=new(function(){return function sn(Gn){var $n=this;$n._currentContext=Gn?new Map(Gn):new Map,$n.getValue=function(Ci){return $n._currentContext.get(Ci)},$n.setValue=function(Ci,Wi){var Ti=new sn($n._currentContext);return Ti._currentContext.set(Ci,Wi),Ti},$n.deleteValue=function(Ci){var Wi=new sn($n._currentContext);return Wi._currentContext.delete(Ci),Wi}}}()),Ge=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],ge=function(){return function sn(){function Gn(Ci){return function(){for(var Wi=[],Ti=0;Ti<arguments.length;Ti++)Wi[Ti]=arguments[Ti];if(console){var Gi=console[Ci];if("function"!=typeof Gi&&(Gi=console.log),"function"==typeof Gi)return Gi.apply(console,Wi)}}}for(var $n=0;$n<Ge.length;$n++)this[Ge[$n].n]=Gn(Ge[$n].c)}}(),Xe=function(){var sn=function(Gn,$n){return(sn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ci,Wi){Ci.__proto__=Wi}||function(Ci,Wi){for(var Ti in Wi)Object.prototype.hasOwnProperty.call(Wi,Ti)&&(Ci[Ti]=Wi[Ti])})(Gn,$n)};return function(Gn,$n){if("function"!=typeof $n&&null!==$n)throw new TypeError("Class extends value "+String($n)+" is not a constructor or null");function Ci(){this.constructor=Gn}sn(Gn,$n),Gn.prototype=null===$n?Object.create($n):(Ci.prototype=$n.prototype,new Ci)}}(),ot=function(){function sn(){}return sn.prototype.createHistogram=function(Gn,$n){return Oe},sn.prototype.createCounter=function(Gn,$n){return Le},sn.prototype.createUpDownCounter=function(Gn,$n){return ye},sn.prototype.createObservableGauge=function(Gn,$n){return at},sn.prototype.createObservableCounter=function(Gn,$n){return Ie},sn.prototype.createObservableUpDownCounter=function(Gn,$n){return K},sn.prototype.addBatchObservableCallback=function(Gn,$n){},sn.prototype.removeBatchObservableCallback=function(Gn){},sn}(),dt=function(){return function sn(){}}(),xe=function(sn){function Gn(){return null!==sn&&sn.apply(this,arguments)||this}return Xe(Gn,sn),Gn.prototype.add=function($n,Ci){},Gn}(dt),Re=function(sn){function Gn(){return null!==sn&&sn.apply(this,arguments)||this}return Xe(Gn,sn),Gn.prototype.add=function($n,Ci){},Gn}(dt),Ue=function(sn){function Gn(){return null!==sn&&sn.apply(this,arguments)||this}return Xe(Gn,sn),Gn.prototype.record=function($n,Ci){},Gn}(dt),ee=function(){function sn(){}return sn.prototype.addCallback=function(Gn){},sn.prototype.removeCallback=function(Gn){},sn}(),W=function(sn){function Gn(){return null!==sn&&sn.apply(this,arguments)||this}return Xe(Gn,sn),Gn}(ee),Pe=function(sn){function Gn(){return null!==sn&&sn.apply(this,arguments)||this}return Xe(Gn,sn),Gn}(ee),le=function(sn){function Gn(){return null!==sn&&sn.apply(this,arguments)||this}return Xe(Gn,sn),Gn}(ee),oe=new ot,Le=new xe,Oe=new Ue,ye=new Re,Ie=new W,at=new Pe,K=new le;function ve(){return oe}var De=function(sn){return sn[sn.INT=0]="INT",sn[sn.DOUBLE=1]="DOUBLE",sn}(De||{}),pe={get:function(sn,Gn){if(null!=sn)return sn[Gn]},keys:function(sn){return null==sn?[]:Object.keys(sn)}},Qe={set:function(sn,Gn,$n){null!=sn&&(sn[Gn]=$n)}},de=function(){function sn(){}return sn.prototype.active=function(){return ne},sn.prototype.with=function(Gn,$n,Ci){for(var Wi=[],Ti=3;Ti<arguments.length;Ti++)Wi[Ti-3]=arguments[Ti];return $n.call.apply($n,function(sn,Gn,$n){if($n||2===arguments.length)for(var Ti,Ci=0,Wi=Gn.length;Ci<Wi;Ci++)(Ti||!(Ci in Gn))&&(Ti||(Ti=Array.prototype.slice.call(Gn,0,Ci)),Ti[Ci]=Gn[Ci]);return sn.concat(Ti||Array.prototype.slice.call(Gn))}([Ci],function(sn,Gn){var $n="function"==typeof Symbol&&sn[Symbol.iterator];if(!$n)return sn;var Wi,Gi,Ci=$n.call(sn),Ti=[];try{for(;(void 0===Gn||Gn-- >0)&&!(Wi=Ci.next()).done;)Ti.push(Wi.value)}catch(Tr){Gi={error:Tr}}finally{try{Wi&&!Wi.done&&($n=Ci.return)&&$n.call(Ci)}finally{if(Gi)throw Gi.error}}return Ti}(Wi),!1))},sn.prototype.bind=function(Gn,$n){return $n},sn.prototype.enable=function(){return this},sn.prototype.disable=function(){return this},sn}(),st="context",Gt=new de,Zt=function(){function sn(){}return sn.getInstance=function(){return this._instance||(this._instance=new sn),this._instance},sn.prototype.setGlobalContextManager=function(Gn){return E(st,Gn,fe.instance())},sn.prototype.active=function(){return this._getContextManager().active()},sn.prototype.with=function(Gn,$n,Ci){for(var Wi,Ti=[],Gi=3;Gi<arguments.length;Gi++)Ti[Gi-3]=arguments[Gi];return(Wi=this._getContextManager()).with.apply(Wi,function(sn,Gn,$n){if($n||2===arguments.length)for(var Ti,Ci=0,Wi=Gn.length;Ci<Wi;Ci++)(Ti||!(Ci in Gn))&&(Ti||(Ti=Array.prototype.slice.call(Gn,0,Ci)),Ti[Ci]=Gn[Ci]);return sn.concat(Ti||Array.prototype.slice.call(Gn))}([Gn,$n,Ci],function(sn,Gn){var $n="function"==typeof Symbol&&sn[Symbol.iterator];if(!$n)return sn;var Wi,Gi,Ci=$n.call(sn),Ti=[];try{for(;(void 0===Gn||Gn-- >0)&&!(Wi=Ci.next()).done;)Ti.push(Wi.value)}catch(Tr){Gi={error:Tr}}finally{try{Wi&&!Wi.done&&($n=Ci.return)&&$n.call(Ci)}finally{if(Gi)throw Gi.error}}return Ti}(Ti),!1))},sn.prototype.bind=function(Gn,$n){return this._getContextManager().bind(Gn,$n)},sn.prototype._getContextManager=function(){return y(st)||Gt},sn.prototype.disable=function(){this._getContextManager().disable(),S(st,fe.instance())},sn}(),kn=function(sn){return sn[sn.NONE=0]="NONE",sn[sn.SAMPLED=1]="SAMPLED",sn}(kn||{}),Un="0000000000000000",ni="00000000000000000000000000000000",qe={traceId:ni,spanId:Un,traceFlags:kn.NONE},mi=function(){function sn(Gn){void 0===Gn&&(Gn=qe),this._spanContext=Gn}return sn.prototype.spanContext=function(){return this._spanContext},sn.prototype.setAttribute=function(Gn,$n){return this},sn.prototype.setAttributes=function(Gn){return this},sn.prototype.addEvent=function(Gn,$n){return this},sn.prototype.setStatus=function(Gn){return this},sn.prototype.updateName=function(Gn){return this},sn.prototype.end=function(Gn){},sn.prototype.isRecording=function(){return!1},sn.prototype.recordException=function(Gn,$n){},sn}(),Bi=be("OpenTelemetry Context Key SPAN");function _i(sn){return sn.getValue(Bi)||void 0}function Bn(){return _i(Zt.getInstance().active())}function jn(sn,Gn){return sn.setValue(Bi,Gn)}function It(sn){return sn.deleteValue(Bi)}function vn(sn,Gn){return jn(sn,new mi(Gn))}function Vn(sn){var Gn;return null===(Gn=_i(sn))||void 0===Gn?void 0:Gn.spanContext()}var ht=/^([0-9a-f]{32})$/i,it=/^[0-9a-f]{16}$/i;function Ct(sn){return ht.test(sn)&&sn!==ni}function Et(sn){return it.test(sn)&&sn!==Un}function We(sn){return Ct(sn.traceId)&&Et(sn.spanId)}function bt(sn){return new mi(sn)}var gt=Zt.getInstance(),wt=function(){function sn(){}return sn.prototype.startSpan=function(Gn,$n,Ci){if(void 0===Ci&&(Ci=gt.active()),$n?.root)return new mi;var Ti=Ci&&Vn(Ci);return function rn(sn){return"object"==typeof sn&&"string"==typeof sn.spanId&&"string"==typeof sn.traceId&&"number"==typeof sn.traceFlags}(Ti)&&We(Ti)?new mi(Ti):new mi},sn.prototype.startActiveSpan=function(Gn,$n,Ci,Wi){var Ti,Gi,Tr;if(!(arguments.length<2)){2===arguments.length?Tr=$n:3===arguments.length?(Ti=$n,Tr=Ci):(Ti=$n,Gi=Ci,Tr=Wi);var _o=Gi??gt.active(),zo=this.startSpan(Gn,Ti,_o),as=jn(_o,zo);return gt.with(as,Tr,void 0,zo)}},sn}(),In=new wt,Mi=function(){function sn(Gn,$n,Ci,Wi){this._provider=Gn,this.name=$n,this.version=Ci,this.options=Wi}return sn.prototype.startSpan=function(Gn,$n,Ci){return this._getTracer().startSpan(Gn,$n,Ci)},sn.prototype.startActiveSpan=function(Gn,$n,Ci,Wi){var Ti=this._getTracer();return Reflect.apply(Ti.startActiveSpan,Ti,arguments)},sn.prototype._getTracer=function(){if(this._delegate)return this._delegate;var Gn=this._provider.getDelegateTracer(this.name,this.version,this.options);return Gn?(this._delegate=Gn,this._delegate):In},sn}(),Tn=new(function(){function sn(){}return sn.prototype.getTracer=function(Gn,$n,Ci){return new wt},sn}()),Cn=function(){function sn(){}return sn.prototype.getTracer=function(Gn,$n,Ci){var Wi;return null!==(Wi=this.getDelegateTracer(Gn,$n,Ci))&&void 0!==Wi?Wi:new Mi(this,Gn,$n,Ci)},sn.prototype.getDelegate=function(){var Gn;return null!==(Gn=this._delegate)&&void 0!==Gn?Gn:Tn},sn.prototype.setDelegate=function(Gn){this._delegate=Gn},sn.prototype.getDelegateTracer=function(Gn,$n,Ci){var Wi;return null===(Wi=this._delegate)||void 0===Wi?void 0:Wi.getTracer(Gn,$n,Ci)},sn}(),Wn=function(sn){return sn[sn.NOT_RECORD=0]="NOT_RECORD",sn[sn.RECORD=1]="RECORD",sn[sn.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED",sn}(Wn||{}),Oi=function(sn){return sn[sn.INTERNAL=0]="INTERNAL",sn[sn.SERVER=1]="SERVER",sn[sn.CLIENT=2]="CLIENT",sn[sn.PRODUCER=3]="PRODUCER",sn[sn.CONSUMER=4]="CONSUMER",sn}(Oi||{}),Qn=function(sn){return sn[sn.UNSET=0]="UNSET",sn[sn.OK=1]="OK",sn[sn.ERROR=2]="ERROR",sn}(Qn||{}),Fi="[_0-9a-z-*/]",Mn=new RegExp("^(?:[a-z]"+Fi+"{0,255}|[a-z0-9]"+Fi+"{0,240}@[a-z]"+Fi+"{0,13})$"),bi=/^[ -~]{0,255}[!-~]$/,Hi=/,|=/,Pn=function(){function sn(Gn){this._internalState=new Map,Gn&&this._parse(Gn)}return sn.prototype.set=function(Gn,$n){var Ci=this._clone();return Ci._internalState.has(Gn)&&Ci._internalState.delete(Gn),Ci._internalState.set(Gn,$n),Ci},sn.prototype.unset=function(Gn){var $n=this._clone();return $n._internalState.delete(Gn),$n},sn.prototype.get=function(Gn){return this._internalState.get(Gn)},sn.prototype.serialize=function(){var Gn=this;return this._keys().reduce(function($n,Ci){return $n.push(Ci+"="+Gn.get(Ci)),$n},[]).join(",")},sn.prototype._parse=function(Gn){Gn.length>512||(this._internalState=Gn.split(",").reverse().reduce(function($n,Ci){var Wi=Ci.trim(),Ti=Wi.indexOf("=");if(-1!==Ti){var Gi=Wi.slice(0,Ti),Tr=Wi.slice(Ti+1,Ci.length);(function Mr(sn){return Mn.test(sn)})(Gi)&&function Wr(sn){return bi.test(sn)&&!Hi.test(sn)}(Tr)&&$n.set(Gi,Tr)}return $n},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},sn.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},sn.prototype._clone=function(){var Gn=new sn;return Gn._internalState=new Map(this._internalState),Gn},sn}();function Pi(sn){return new Pn(sn)}var li=Zt.getInstance(),er=fe.instance(),dn=new(function(){function sn(){}return sn.prototype.getMeter=function(Gn,$n,Ci){return oe},sn}()),Fn="metrics",fi=function(){function sn(){}return sn.getInstance=function(){return this._instance||(this._instance=new sn),this._instance},sn.prototype.setGlobalMeterProvider=function(Gn){return E(Fn,Gn,fe.instance())},sn.prototype.getMeterProvider=function(){return y(Fn)||dn},sn.prototype.getMeter=function(Gn,$n,Ci){return this.getMeterProvider().getMeter(Gn,$n,Ci)},sn.prototype.disable=function(){S(Fn,fe.instance())},sn}().getInstance(),Si=function(){function sn(){}return sn.prototype.inject=function(Gn,$n){},sn.prototype.extract=function(Gn,$n){return Gn},sn.prototype.fields=function(){return[]},sn}(),Yi=be("OpenTelemetry Baggage Key");function Qi(sn){return sn.getValue(Yi)||void 0}function vr(){return Qi(Zt.getInstance().active())}function Dr(sn,Gn){return sn.setValue(Yi,Gn)}function br(sn){return sn.deleteValue(Yi)}var ro="propagation",Oo=new Si,Ao=function(){function sn(){this.createBaggage=ue,this.getBaggage=Qi,this.getActiveBaggage=vr,this.setBaggage=Dr,this.deleteBaggage=br}return sn.getInstance=function(){return this._instance||(this._instance=new sn),this._instance},sn.prototype.setGlobalPropagator=function(Gn){return E(ro,Gn,fe.instance())},sn.prototype.inject=function(Gn,$n,Ci){return void 0===Ci&&(Ci=Qe),this._getGlobalPropagator().inject(Gn,$n,Ci)},sn.prototype.extract=function(Gn,$n,Ci){return void 0===Ci&&(Ci=pe),this._getGlobalPropagator().extract(Gn,$n,Ci)},sn.prototype.fields=function(){return this._getGlobalPropagator().fields()},sn.prototype.disable=function(){S(ro,fe.instance())},sn.prototype._getGlobalPropagator=function(){return y(ro)||Oo},sn}().getInstance(),Co="trace",ao=function(){function sn(){this._proxyTracerProvider=new Cn,this.wrapSpanContext=bt,this.isSpanContextValid=We,this.deleteSpan=It,this.getSpan=_i,this.getActiveSpan=Bn,this.getSpanContext=Vn,this.setSpan=jn,this.setSpanContext=vn}return sn.getInstance=function(){return this._instance||(this._instance=new sn),this._instance},sn.prototype.setGlobalTracerProvider=function(Gn){var $n=E(Co,this._proxyTracerProvider,fe.instance());return $n&&this._proxyTracerProvider.setDelegate(Gn),$n},sn.prototype.getTracerProvider=function(){return y(Co)||this._proxyTracerProvider},sn.prototype.getTracer=function(Gn,$n){return this.getTracerProvider().getTracer(Gn,$n)},sn.prototype.disable=function(){S(Co,fe.instance()),this._proxyTracerProvider=new Cn},sn}().getInstance();const Ar={context:li,diag:er,metrics:fi,propagation:Ao,trace:ao}},56123:(je,z,c)=>{var r=c(8536).default;(()=>{var n={393:
/*!*****************************************!*\
                !*** ../ragnarok-core/dist/ragnarok.js ***!
                \*****************************************/(A,M,T)=>{var E=!0,y=!1;function S(i){if(i)switch(i){case"enable":case"on":case"1":case"true":return!0;case"disable":case"off":case"0":case"false":return!1}}var s=T(
/*! @gamestream/core */
778),u=T(
/*! @opentelemetry/api */
754),m=new s.LogImpl("R",{enable:E,Sg:y});function I(){return Y||(Y=new O),Y}function R(i,p,w){const V=i.g.startSpan(p);return u.context.with(u.trace.setSpan(u.context.active(),V),r(function*(){try{const ae=w();return ae instanceof Promise?yield ae:ae}finally{V.end()}}))}var Y,O=class{constructor(){this.g=u.trace.getTracer("gfn-web-gamestream","2.0")}},j=class{constructor(i,p){var w;this.g=0,this.h=this.o=!1,this.promise=new Promise((V,ae)=>{this.C=V,this.m=ae}),null!=p&&p.aborted?(this.h=!0,this.m()):(this.j=p,this.l=this.s.bind(this),null===(w=this.j)||void 0===w||w.addEventListener("abort",this.l),this.g=window.setTimeout(this.v.bind(this),i))}cancel(){var i;null===(i=this.j)||void 0===i||i.removeEventListener("abort",this.l),this.g&&(window.clearTimeout(this.g),this.g=0),this.j=void 0}s(){this.h=!0,this.m(),this.cancel()}v(){this.o=!0,this.C(),this.g=0,this.cancel()}};function fe(i){return"Xbox"===i.os&&"Edge"===i.browser}function te(i){return"iOS"===i.os||"iPadOS"===i.os}function ce(i){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(i)}function H(i){return"0x"+("00000000"+(i>>>0).toString(16).toUpperCase()).slice(-8)}function Z(i){return i?"iOS"===i.os:/iPhone|iPod/.test(navigator.userAgent)}function X(i){return"WebOS"===i.os}function ue(i){return"ChromeOS"===i.os}function Me(i){return"Windows"===i.os}function be(i){return"macOS"===i.os}function Q(i){return"Tizen"===i.os}var ne={method:"GET",headers:{},body:"",retryCount:0,timeout:0,keepalive:!1};function Ge(){const i=u.trace.getActiveSpan();i&&i.setAttribute("error","true")}function ge(i,p=ne,w,V){var ae;const me=null!==(ae=p.method)&&void 0!==ae?ae:"GET";return R(I(),me,()=>{var He=p.headers;const ct=u.trace.getActiveSpan();if(ct){var Ut=new Map([["component","rtcutils-core"],["component.version","2.0"],["http.method",me],["http.url",i],["type",""],["http.hostname",""],["http.path",""]]);try{const Lt=new URL(i);Ut.set("type",Lt.protocol),Ut.set("http.hostname",Lt.hostname),Ut.set("http.path",Lt.pathname)}catch{m.e("{d988e7f}","{997fb3a}")}for(const[Lt,qt]of Ut)ct.setAttribute(Lt,qt);ct.setAttributes(He)}return function Xe(i,p=ne,w,V){var ae,me;let He=void 0===p.retryCount?1:p.retryCount+1;const ct=He,Ut=null!==(ae=p.hg)&&void 0!==ae?ae:500;let Lt=Ut;const qt=null!==(me=p.method)&&void 0!==me?me:"GET";let on=new Headers;const Dn=V??new AbortController;return(Yn=>{if(Yn)switch(Yn.type){case 1:Yn.token&&on.set("authorization","GFNJWT "+Yn.token);break;case 2:Yn.token&&on.set("authorization","GFNPartnerJWT auth="+Yn.token)}void 0!==p.headers&&Object.keys(p.headers).forEach(ki=>{on.set(ki,p.headers[ki])}),Yn={},u.propagation.inject(u.context.active(),Yn);for(const[ki,Ln]of Object.entries(Yn))on.set(ki,Ln)})(w),new Promise((Yn,ki)=>{const Ln=Zi=>{Ge(),ki(Zi)},ii=()=>{if(navigator.onLine){let fr,nr={method:qt,headers:on,mode:"cors",keepalive:p.keepalive,signal:Dn.signal,cache:"no-store"};"GET"!==qt&&"HEAD"!==qt&&(nr.body=p.body);const So=[0,DOMException.NETWORK_ERR,DOMException.TIMEOUT_ERR,503],bo=p.timeout?new j(p.timeout):void 0,wo=[];wo.push(fetch(i,nr)),bo&&wo.push(bo.promise),Promise.race(wo).then(es=>{if(null!=bo&&bo.o)throw m.w("{d988e7f}","{5a69b89}",i),{code:DOMException.TIMEOUT_ERR,message:"Timeout while performing HTTP request"};if(es instanceof globalThis.Response)return fr=es.status,es.text()}).then(es=>{if(!es&&So.includes(fr)){if(1<He)throw{code:fr,message:"Internal server error."};m.w("{d988e7f}","{d639e52}",fr,ct)}var ha=(es={status:fr,data:es??"",Kc:ct-He}).status;const hs=u.trace.getActiveSpan();hs&&(hs.setAttribute("error","false"),hs.setAttribute("http.status_code",ha.toString())),Yn(es)}).catch(es=>{const ha=hs=>[0,DOMException.NETWORK_ERR,DOMException.TIMEOUT_ERR].includes(hs)?(m.d("{d988e7f}","{0a9fabe}"),3237089282):hs==DOMException.ABORT_ERR?(m.d("{d988e7f}","{235387a}"),15867905):(m.w("{d988e7f}","{f116c88}",hs),3237089284);es instanceof Error?m.d("{d988e7f}","{b6e778a}",es.message):m.d("{d988e7f}","{ec768a1}",JSON.stringify(es),es),0==(es=(hs=>{let Us=0;return null!=hs&&hs.code?Us=hs?.code:null!=hs&&hs.name&&("AbortError"===hs.name?Us=DOMException.ABORT_ERR:"NetworkError"===hs.name?Us=DOMException.NETWORK_ERR:"TimeoutError"===hs.name&&(Us=DOMException.TIMEOUT_ERR)),Us})(es))&&p.keepalive&&(p.keepalive=!1),So.includes(es)?(nr=>{if(1<He){He--,m.d("{d988e7f}","{97555ed}",nr,He);const fr=new j(Lt,Dn.signal);return fr.promise.then(ii).catch(So=>{fr.h?(So={code:15867905,Kc:ct-He},Ge(),ki(So)):(m.w("{d988e7f}","{d3ca39d}",JSON.stringify(So)),So={code:3237089284,Kc:ct-He},Ge(),ki(So))}),Lt+=Ut,!0}return!1})(es)||(m.w("{d988e7f}","{dff1a05}",ct,es),Ln({code:ha(es),Kc:ct-He})):Ln({code:ha(es),Kc:ct-He})}).finally(()=>{bo?.cancel()})}else Ln({code:3237089281,description:"No network",Kc:ct-He})};ii()})}(i,p,w,V)})}function ot(){var i,p;return null===(p=null===(i=window.matchMedia)||void 0===i?void 0:i.call(window,"(pointer:coarse)"))||void 0===p?void 0:p.matches}function dt(){var i,p;return!!window.TouchEvent&&(null===(p=null===(i=window.matchMedia)||void 0===i?void 0:i.call(window,"(any-pointer:coarse)"))||void 0===p?void 0:p.matches)}function xe(i){return"Tizen"===i.os||"WebOS"===i.os}function Re(){let i=new Uint8Array(36);window.crypto.getRandomValues(i);let p="";for(let w=0;36>w;w++){let V=i[w]%16;8==w||13==w||18==w||23==w?p+="-":14==w?p+="4":(19==w&&(V=3&V|8),p+=V.toString(16))}return m.i("{d988e7f}","{534eaf4}",p),p}function Ue(i,p){for(let w=0;w<p.length&&w<i.length;++w){const V=i[w],ae=p[w];if(V>ae)return!0;if(V<ae)return!1}if(i.length<p.length)for(i=i.length;i<p.length;++i)if(0<p[i])return!1;return!0}function ee(i,p,w,V,ae){if("Chrome"!=i.browser)return!1;p=[p,w??0,V??0,ae??0];try{return Ue(i.browserBestVer.split(".").map(He=>Number.parseInt(He)),p)}catch{m.w("{d988e7f}","{bcd8f94}")}return!0}function W(i,p,w,V){if(!te(i))return!1;try{return Pe(i.osVer,p,w,V)}catch{m.w("{d988e7f}","{cf4149f}")}return!p}function Pe(i,p,w,V){i=i.replace(/[^0-9.]/,"").split(".").map(me=>Number.parseInt(me));const ae=[w,V??0];return 1===i.length&&i.push(0),p?i.every((me,He)=>me===ae[He]):Ue(i,ae)}function le(i,p=500){const w=new AbortController;return window.setTimeout(()=>{w.abort()},p),fetch(i,{method:"OPTIONS",signal:w.signal}).then(V=>V).catch(V=>{throw V})}function oe(i,p,w){return{code:i,description:p,error:null!==w?w:void 0}}function Le(i){switch(i){case"ETHERNET":return"ETHERNET";case"WIFI":case"WIFI_2_4":return"WIFI_2_4";case"WIFI_5_0":return"WIFI_5_0";case"MOBILE":return"MOBILE";case"MOBILE_2G":return"MOBILE_2G";case"MOBILE_3G":return"MOBILE_3G";case"MOBILE_4G":return"MOBILE_4G";case"MOBILE_5G":return"MOBILE_5G";case"OTHER":case"BLUETOOTH":case"WIMAX":return"OTHER";default:return"UNKNOWN"}}var Oe=class{constructor(i){this.s=new Map,this.sa=i}addListener(i,p){var w=this.s.get(i);void 0!==w?w.add(p):((w=new Set).add(p),this.s.set(i,w))}removeListener(i,p){i=this.s.get(i),i?.delete(p)}removeAllListenersOfEvent(i){this.s.delete(i)}removeAllListeners(){this.s.clear()}hasListener(i){return void 0!==(i=this.s.get(i))&&0<i.size}emit(i,...p){try{let w=this.s.get(i);if(w)for(const V of w)this.sa?V(...p):window.setTimeout(V,0,...p)}catch(w){console.log("Exception in emit: "+w)}}};function ye(i,p){var w=Qe,V=zt;let ae=[];var me=i;let He=[];do{He.push(me),me=Object.getPrototypeOf(me)}while(""!=me.name);He.reverse();for(let ct of He)ae.push(ct.toString().replace(/(extends )[^ {]*\.([^ ]*[ {])/,"$1$2"));return ae.push(`${w.toString()}`),p?(ae.push(`${p.toString()}`),ae.push(`onconnect = (event) => { ${p.name}(${i.name}, event, ${w.name}); };`)):ae.push(`onmessage = (event) => { ${w.name}(${i.name}, event); };`),ae.push(`${V.toString()}`),ae.push(`onerror = (event) => { ${V.name}(event); };`),URL.createObjectURL(new Blob(ae,{type:"text/javascript"}))}function Ie(i,p,w){if(!i.prototype.mb)throw Error("Invalid Worker class provided");i=ye(i);const V=new Worker(i);URL.revokeObjectURL(i),De(V,p,w)}function at(i,p,w){var V=window;if(typeof V.SharedWorker>"u")throw Error("SharedWorker not supported");if(!i.prototype.mb)throw Error("Invalid Worker class provided");return i=ye(i,pe),V=new V.SharedWorker(i),URL.revokeObjectURL(i),De(V,p,w),V}const K=new Map;function ve(i){if(!K.has(i)){i.postMessage.bind(i)({Pb:2,data:null});var p=window.setTimeout(()=>{const w=K.get(i);w&&(clearTimeout(w),K.delete(i)),i instanceof Worker?i.terminate():i instanceof MessagePort&&i.close()},150);K.set(i,p)}}function De(i,p,w){const V="port"in i?i.port:i,ae=V.postMessage.bind(V);let me=!1;const He=ct=>{me||(me=!0,m.e("{10ca8e2}","{03baf25}",ct,typeof ct),ve(V),w(ct))};V.onmessage=ct=>{let Ut=(ct=ct.data).data;switch(ct.Pb){case 1:ae({Pb:3,data:null});break;case 4:p(Ut),ve(V);break;case 5:He(Ut)}},"onmessageerror"in V&&(V.onmessageerror=He),i.onerror=He,ae({Pb:0,data:null})}function pe(i,p,w){const V=globalThis;V.port=p.ports[0],V.port.onmessage=w.bind(self,i)}function Qe(i,p){var w;const V=globalThis;V.Md=null!==(w=V.Md)&&void 0!==w?w:{},p=(w=p.data).Pb,w=w.data;let ae="port"in V?V.port:self;switch(p){case 0:var me=new i;V.Md[i.name]=me,ae.postMessage({Pb:1,data:null});break;case 2:null===(me=self?.close)||void 0===me||me.call(self);break;case 3:Promise.resolve(V.Md[i.name].mb()).then(He=>{ae.postMessage({Pb:4,data:He})});break;default:throw Error(`Unknown message: ${p}:${w}`)}}function zt(i){const p=globalThis;("port"in p?p.port:self).postMessage({Pb:5,data:i})}function $e(){return $e=r(function*(i){var p=Promise,w=p.all,V=function Zt(i){return new Promise(p=>{let w=!1;const V=Ut=>{if(i.ka)clearTimeout(i.ka),i.ka=0;else if(w)return m.w("{3c72abb}","{c1bb269}"),void Vn(i,"GL",i.Ce-performance.now());if(!i.oc){var Lt=Ut.Qf;if(Lt.startsWith("ANGLE")){var qt=Lt.split(",");1<qt?.length&&(i.gpuDetail=qt[1].trim())}else i.gpuDetail=Lt;qt=Lt.toLowerCase(),Lt.includes("SraKmd")?(i.J=!0,Lt.includes("SraKmd_arden")&&(i.Da=!0),(Lt=/D3D11-(\d{2,}\.\d{1,}\.\d{5,}\.\d{4,})/.exec(Lt))&&1<Lt.length&&(i.v=Lt[1])):Lt.includes("AMD")&&qt.includes("vangogh")&&(i.Bb=!0),i.Ee=Ut.Gf,i.oc=!0}p()};let ae=!1,me=!1;const He=Ut=>{"string"==typeof Ut?ht(i,"GL",Ut):"data"in Ut?it(i,"GL",Ut):Ct(i,"GL",Ut),me=!0,m.e("{3c72abb}","{9e45306}",Ut)};let ct=0;try{self.OffscreenCanvas&&(ae=!0,Ie(Hi,V,He),ct=150)}catch(Ut){me=!0,Et(i,"GL",Ut),m.w("{3c72abb}","{caf8cd7}",Ut)}window.setTimeout(()=>{i.oc||(i.ka=window.setTimeout(()=>{i.ka=0,i.Ce=performance.now(),me?m.w("{3c72abb}","{fbe663c}"):ae?(m.w("{3c72abb}","{2577061}"),We(i,"GL")):(m.i("{3c72abb}","{95c252e}"),bt(i,"GL"));const Ut=(new Hi).mb();V(Ut),w=!0},ct))},0)})}(i),ae=function kn(i){return new Promise(p=>{if(navigator.userAgentData){var w=Lt=>{var qt;if(!i.Rf){var on=Lt.model,Dn=Lt.platform,Yn=Lt.platformVersion,ki=Lt.uaFullVersion,Ln=Lt.bitness;""==on&&""==Dn&&""==Yn&&""==ki?i.lb&&i.R||i.Ka||null==Ln||i.R&&!i.$||(i.o=!0):""==Ln&&"Android"!=Dn&&(i.o=!0),on&&("Xbox"===on?i.ca=!0:on.startsWith("AFT")?(i.ef=!0,i.N=!0):on.includes("BRAVIA")?(i.N=!0,i.Xe=!0):"Chromecast"===on?(i.N=!0,i.cf=!0,i.deviceName="CHROMECAST"):"SHIELD Android TV"===on?(i.N=!0,i.mf=!0,i.deviceName="SHIELDTV"):on.startsWith("MiTV")?(i.N=!0,i.hf=!0,i.deviceName="MITV"):on.startsWith("TVision")&&(i.N=!0,i.uf=!0,i.deviceName="TVISION")),"Windows"===Dn?i.P=!0:"macOS"===Dn?i.L=!0:"Chrome OS"===Dn||"ChromeOS"===Dn?i.O=!0:"Chromium OS"===Dn?i.ea=!0:"Android"===Dn?i.da=!0:"Linux"===Dn&&(""==Yn?(i.da=!0,i.vf=!0):i.na=!0),on=Zi=>{if(Zi&&"string"==typeof Zi)return Zi.replace(/[-._,:;|#@]/g,".")};Dn=Zi=>i.P&&!i.ca?(Zi=>{if(!Zi||!i.qa||95>+i.qa)return Zi;switch(Zi.split(".").map(nr=>Number.parseInt(nr))[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+"}})(Zi):Zi,Lt.brands&&0<Lt.brands.length&&function gt(i,p){var w;i.ra=!0,p.mobile&&(i.Mb=!0);var V=p.brands||[];p=0;for(const ae of V){const me=ae.version;"Google Chrome"===(V=ae.brand)?(i.ta=!0,i.m=me):"Microsoft Edge"===V?(i.$a=!0,i.m=me):"Opera"===V?(i.ua=!0,i.m=me):"Yandex"===V?(i.ab=!0,i.m=me):"Chromium"===V?(i.Z=!0,i.m=null!==(w=i.m)&&void 0!==w?w:me,i.qa=me):"Android WebView"===V?(i.Ie=!0,i.m=me):p++}2<p&&(i.Ge=!0)}(i,Lt),i.browserFullVer=on(ki),i.sg=Yn,i.v=null!==(qt=i.v)&&void 0!==qt?qt:Dn(on(Yn)),i.Rf=!0}},V=Lt=>{Lt&&(i.sa&&(clearTimeout(i.sa),i.sa=0),w(Lt),p())},ae=!1,me=!1,ct=0;try{if(self.SharedWorker){ae=!0;var Ut=at(Mr,V,Lt=>{"string"==typeof Lt?ht(i,"HE",Lt):"data"in Lt?it(i,"HE",Lt):Ct(i,"HE",Lt),me=!0,m.e("{3c72abb}","{217e106}",Lt)});ct=300}}catch(Lt){me=!0,m.w("{3c72abb}","{a583546}",Lt),Et(i,"HE",Lt)}i.sa=window.setTimeout(()=>{Ut&&ve("port"in Ut?Ut.port:Ut),me?m.w("{3c72abb}","{dbf4b42}"):ae?(m.w("{3c72abb}","{0bf7a38}"),We(i,"HE"),i.af=!0):(m.i("{3c72abb}","{7a82b59}"),bt(i,"HE")),(new Mr).mb().then(Lt=>{V(Lt)})},ct)}else p()})}(i),me=function Un(i){return ni.apply(this,arguments)}(i),He=function Gt(i){const p=window.speechSynthesis;if(p){const w=p.getVoices;let V=w?.call(p)||[];return new Promise(ae=>{if(!w||V.length)st(i,V),ae();else{let me=0;const He=()=>{V=w.call(p);const ct=performance.now();0==V.length&&(0==me||600>ct-me)?(i.T&&clearTimeout(i.T),i.T=window.setTimeout(He,150)):(i.T&&(clearTimeout(i.T),i.T=0),st(i,V),ae())};void 0!==p.onvoiceschanged&&(p.onvoiceschanged=He),window.setTimeout(()=>{V=w.call(p),V.length?He():(i.T=window.setTimeout(He,150),me=performance.now())},0)}})}return new Promise(w=>{w()})}(i),ct=function qe(i){return new Promise(p=>{var w=navigator.userAgent;w&&(w=w.match(i.ye))&&(i.rg=w?.[1],i.qg=w?.[2]),p()})}(i),Ut=function mi(i){var p,w,V,ae,me,He,ct,Ut,Lt,qt,on,Dn,Yn,ki,Ln;const ii=window,Zi=ii.hasOwnProperty,nr=ii.navigator;Zi.call(ii,"MSMediaKeys")?i.Ke=!0:Zi.call(ii,"_firefoxTV_cachedScrollPosition")?i.Me=!0:void 0!==ii.__edgeActiveElement||ii.__edgeTrackingPreventionStatistics?i.bb=!0:ii.safari?i.Ue=!0:ii.opr?i.Oe=!0:ii.oprt?i.ee=!0:nr.brave?i.va=!0:void 0!==ii.OperaTouch||ii.ethereum?(i.lb=!0,i.R=!0):ii.yandex?i.ya=!0:ii.QuickAccess?i.xa=!0:ii.chrome?i.$=!0:ii.netscape?i.wa=!0:ii.__firefox__?i.cb=!0:ii.__gCrWeb?i.Va=!0:ii.ReactNativeWebView&&(i.Qe=!0),void 0!==ii.contacts||void 0!==ii.ContactsManager?i.R=!0:Zi.call(ii,"onwebOSAccessibilityAlertDone")||ii.webOSSystem||Zi.call(ii,"onwebosaccessibilityalertdone")?i.Af=!0:ii.tizen||ii.TizenTVApiInfo||ii.addEdgeEffectONSCROLLTizenUIF||ii.tizentvwasm?i.Ka=!0:ii.HardkeyEvent&&(i.xf=!0);const fr=ii.Intl;!(null===(p=nr.mediaCapabilities)||void 0===p)&&p.decodingInfo&&(i.oe=!0),ii.BigInt&&(i.fg=!0,ii.BigInt64Array&&(i.ge=!0)),ii.PerformanceNavigationTiming&&(i.Be=!0),ii.WebAssembly&&ii.WebAssembly.Exception&&(i.Ne=!0),ii.BroadcastChannel&&(i.he=!0),ii.GPUBuffer&&(i.se=!0),ii.SharedWorker&&(i.He=!0),ii.MediaRecorder&&(i.xe=!0),ii.CSSCounterStyleRule&&(i.je=!0),null!=(p=null===(w=ii.ArrayBuffer)||void 0===w?void 0:w.prototype)&&p.hasOwnProperty("transfer")&&(i.cg=!0),Zi.call(ii,"ondevicelight")&&(i.pe=!0),!(null===(V=ii.AbortSignal)||void 0===V)&&V.abort&&(i.bg=!0),Zi.call(ii,"onbeforeinput")&&(i.eg=!0),fr&&(fr.DisplayNames&&(i.Pa=!0),i.te="pinyin"==(null===(ae=new fr.Collator("zh",{collation:"pinyin"}).resolvedOptions())||void 0===ae?void 0:ae.collation)),ii.Credential&&(i.ne=!0),!(null===(me=ii.browser)||void 0===me)&&me.runtime&&(i.ie=!0),ii.LargestContentfulPaint&&(i.ve=!0),!(null===(He=ii.CSS)||void 0===He)&&He.registerProperty&&(i.le=!0),null!=(w=null===(ct=ii.HTMLElement)||void 0===ct?void 0:ct.prototype)&&w.hasOwnProperty("autofocus")&&(i.re=!0),nr.contacts&&(i.me=!0),ii.TrustedHTML&&(i.Je=!0),ii.WakeLock&&(i.Le=!0),!(null===(Ut=ii.Promise)||void 0===Ut)&&Ut.any&&(i.De=!0),ii.FileSystemHandle&&(i.qe=!0),!(null===(Lt=ii.Atomics)||void 0===Lt)&&Lt.waitAsync&&(i.dg=!0),!(null===(on=null===(qt=ii.CSS)||void 0===qt?void 0:qt.supports)||void 0===on)&&on.call(qt,"aspect-ratio: auto")&&(i.ke=!0),ii.ReadableStreamBYOBReader&&(i.Fe=!0),!(null===(Yn=null===(Dn=ii.CSS)||void 0===Dn?void 0:Dn.supports)||void 0===Yn)&&Yn.call(Dn,"overflow: clip")&&(i.ze=!0),null!=(ct=null===(ki=ii.InputEvent)||void 0===ki?void 0:ki.prototype)&&ct.hasOwnProperty("isComposing")&&(i.ue=!0),ki=null===(Ln=ii.HTMLVideoElement)||void 0===Ln?void 0:Ln.prototype,i.Pe=ki?.hasOwnProperty("webkitSupportsPresentationMode")}(i),Lt=function Bi(i){var p,w,V,ae;const me=window.RequestCrowNativeApi;if(me){let He=0;const ct=new Promise((Dn,Yn)=>{He=window.setTimeout(()=>{Yn("timeout")},100)}),Ut=window.zoneless,Lt=null!==(w=null===(p=Ut?.windowAddEventListener)||void 0===p?void 0:p.bind(window))&&void 0!==w?w:window.addEventListener.bind(window),qt=null!==(ae=null===(V=Ut?.windowRemoveEventListener)||void 0===V?void 0:V.bind(window))&&void 0!==ae?ae:window.removeEventListener.bind(window);let on;return p=new Promise(Dn=>{on=Yn=>{Dn(Yn.detail)},Lt("CrowNativeApiEvent",on),me(JSON.stringify({Wg:"RequestBrowserVersion"}))}).then(Dn=>{var Yn;(Dn=null===(Yn=Dn.browserVersion)||void 0===Yn?void 0:Yn.match(i.ye))&&(i.browserFullVer=Dn?.[1],i.m=Dn?.[2])}),Promise.race([p,ct]).catch(()=>{m.d("{3c72abb}","{841bf6f}")}).finally(()=>{window.clearTimeout(He),qt("CrowNativeApiEvent",on)})}return Promise.resolve()}(i),qt=function _i(i){return new Promise(p=>{let w=!1;const V=Ut=>{if(i.pa)clearTimeout(i.pa),i.pa=0;else if(w)return m.w("{3c72abb}","{b02109c}"),void Vn(i,"Plat",i.ag-performance.now());i.pc||("MacIntel"===(Ut=Ut.platform)?i.ga=!0:"iPhone"===Ut?i.Na=!0:"Win32"===Ut?i.ja=!0:"iPad"===Ut?i.Nb=!0:"FreeBSD amd64"===Ut?i.oa=!0:"Windows"===Ut&&(i.ja=!0,i.aa=!0),Ut.startsWith("Linux")&&(i.S=!0),i.pc=!0),p()};let ae=!1,me=!1;const He=Ut=>{"string"==typeof Ut?ht(i,"Plat",Ut):"data"in Ut?it(i,"Plat",Ut):Ct(i,"Plat",Ut),me=!0,m.e("{3c72abb}","{6350135}",Ut)};let ct=0;try{ae=!0,Ie(uo,V,He),ct=150}catch(Ut){me=!0,Et(i,"Plat",Ut),m.w("{3c72abb}","{79668e5}",Ut)}window.setTimeout(()=>{i.pc||(i.pa=window.setTimeout(()=>{i.pa=0,i.ag=performance.now(),me?m.w("{3c72abb}","{d9e1e01}"):ae?(m.w("{3c72abb}","{a8d68cb}"),We(i,"Plat")):(m.i("{3c72abb}","{53e2225}"),bt(i,"Plat"));const Ut=(new uo).mb();V(Ut),w=!0},ct))},0)})}(i),on=function Bn(i){const p=window;p.ApplePaySession&&p.ApplePaySession.canMakePayments&&(i.qc=!0)}(i),Dn=function jn(i){var p=navigator.plugins;for(const w of p)"Native Client"!==(p=w.name)&&(p.startsWith("Microsoft Edge PDF")?i.If=!0:p.startsWith("Chrome PDF")?i.Bf=!0:p.startsWith("Chromium PDF")?i.Ef=!0:p.startsWith("PPAPI SAMSUNGHEALTH")&&(i.Ka=!0))}(i);navigator.maxTouchPoints&&0<navigator.maxTouchPoints&&(i.fa=!0),yield w.call(p,[V,ae,me,He,ct,Ut,Lt,qt,on,Dn,void 0,It(i),vn(i)]).then(()=>{var Yn,ki,Ln,ii,Zi,nr,fr,So,bo,wo,es,ha,hs,Us,za,nl,ul,Gr,il,Jl;if(i.ra&&((i.ga!=i.L||i.ja!=i.P)&&(i.o=!0),(i.O||i.ea||i.da||i.na)&&!i.S&&(i.o=!0),i.m&&i.browserFullVer&&!In(i.m,i.browserFullVer)&&(i.ua?i.qa&&!In(i.qa,i.browserFullVer)&&(i.o=!0):i.o=!0),(i.O&&!i.ta||i.ea&&!i.Z)&&(i.o=!0),i.Sa?(i.U&&!i.P||i.F&&!i.L)&&(i.o=!0):i.Ta?i.O||(i.o=!0):i.Ua?i.o=!0:i.U||!i.F||i.L||(i.o=!0),i.s=i.ra&&!i.o,i.W=i.ra&&i.o),!i.Ee&&i.$)i.g="Unknown",i.h="Unknown",i.aa=!0,i.l=3,i.v="0",i.m="0",i.browserFullVer="0",m.d("{3c72abb}","{049d298}");else if(i.Ta)i.g="ChromeOS",Mi(i);else if(i.Sa)Mi(i),i.U?i.g="Windows":i.F?(i.g="macOS",i.j="APPLE"):i.s?i.P?i.g="Windows":i.L?(i.g="macOS",i.j="APPLE"):i.O||i.ea?(i.g="ChromeOS",i.aa=!0,i.l=7):i.na&&(i.g=En(i)):i.ja?i.g="Windows":i.ga?(i.g="macOS",i.j="APPLE"):i.S?i.g=En(i):i.oa?i.g="FreeBSD":(i.g="Unknown",i.l=5,m.d("{3c72abb}","{101497c}"));else if(i.Ua)Tn(i),i.U?i.g="Windows":i.F?(i.g="macOS",i.j="APPLE"):i.Ve?(i.g="Android",Cn(i)):i.S?i.g=En(i):i.oa?i.g="FreeBSD":(i.g="Unknown",i.l=5,m.d("{3c72abb}","{49fcccb}"));else if(i.Re)i.h="Edge",i.sc?i.s&&i.ca||i.J?(i.g="Xbox",i.j="MICROSOFT",i.Da?i.M="XBOXSERIES":i.J&&(i.M="XBOXONE")):i.g="Windows":i.F?(i.g="macOS",i.j="APPLE"):i.Qa?(i.g="Android",Cn(i)):i.s?i.ca?(i.g="Xbox",i.j="MICROSOFT",i.Da?i.M="XBOXSERIES":i.J&&(i.M="XBOXONE")):i.P?i.g="Windows":i.L?(i.g="macOS",i.j="APPLE"):i.O||i.ea?(i.g="ChromeOS",i.aa=!0,i.l=7):i.da?(i.g="Android",Cn(i)):i.na&&(i.g=En(i)):i.ja?i.g="Windows":i.ga?(i.g="macOS",i.j="APPLE"):i.R?(i.g="Android",Cn(i)):i.S?i.g=En(i):i.oa?i.g="FreeBSD":(i.g="Unknown",i.l=5);else if(i.U)i.sc?Wn(i):(Wn(i),i.aa=!0,i.l=5);else if(i.F)Oi(i);else if(i.Qa)Qn(i);else if(i.s&&(i.ca||i.P)||i.ja||i.J)Wn(i);else if(i.s&&i.L||i.Nb||i.Na||i.ga)Oi(i);else if(i.s&&(i.O||i.ea))i.g="ChromeOS",Mi(i);else if(i.xf)i.g="ccOS",i.j="HKMC",i.h="Chromium";else if(i.s&&i.da||i.R)Qn(i);else if(i.s&&i.na)i.g=En(i),i.Mb||i.fa?(i.h="Unknown",i.l=3):Fi(i)||(i.h="Unknown",i.l=5,m.d("{3c72abb}","{54c6569}"));else if(i.Af)i.g="WebOS",i.j="LG",i.h="Chromium",i.browserFullVer=null!==(Gr=i.browserFullVer)&&void 0!==Gr?Gr:i.rg,i.m=null!==(il=i.m)&&void 0!==il?il:i.qg,i.W=!1;else if(i.Ka){if(i.g="Tizen",i.h="Samsung",null!==(Jl=window.webapis)&&void 0!==Jl&&Jl.productinfo)try{i.v=window.webapis.productinfo.getFirmware(),i.deviceName=window.webapis.productinfo.getRealModel(),i.Za=window.webapis.productinfo.getLicensedVendor()}catch{m.e("{3c72abb}","{bc7dd9b}")}else m.e("{3c72abb}","{844af47}"),i.v="0",i.deviceName="";i.j="Samsung"!==i.Za&&i.Za?"TIZENLICENSED":"SAMSUNG",Gr=/(([0-9]+\.)*[0-9]+)\/(([0-9]+\.)*[0-9]+)/,(il=navigator.userAgent)&&(Gr=il.match(Gr),i.browserFullVer=Gr?.[0],(Gr=Gr?.[1])&&(Gr=Gr.split("."),i.m=Gr?.[0]))}else i.S?i.Me?(i.g="Android",i.j="AMAZON",Tn(i),i.H="TV"):i.xa?(i.g="Android",i.j="SAMSUNG",i.h="Samsung",Cn(i)):Fi(i)?i.W?i.g=En(i):!i.Ef||i.Bf||i.If?i.S&&(i.g="Linux"):(i.g=En(i),i.h="Chromium",i.l=7):(i.g="Unknown",i.h="Unknown",i.l=0,m.d("{3c72abb}","{be86380}")):i.oa?(i.g="FreeBSD",i.$?i.h="Chrome":i.wa?Tn(i):(i.h="Unknown",i.l=3,m.d("{3c72abb}","{a2c16e4}"))):i.Va||i.cb||i.bb?(i.Na=!0,Oi(i),i.l=7):i.xa?(Qn(i),i.l=7):(i.g="Unknown",i.h="Unknown",i.l=0,m.d("{3c72abb}","{f2eecc9}"));switch(i.W&&(i.v="0",i.m="0",i.browserFullVer="0"),i.we=performance.now(),i.u.os=null!==(Yn=i.g)&&void 0!==Yn?Yn:"Unknown",i.u.browser=null!==(ki=i.h)&&void 0!==ki?ki:"Unknown",i.u.osRawVer=null!==(Ln=i.sg)&&void 0!==Ln?Ln:"0",i.u.osVer=null!==(ii=i.v)&&void 0!==ii?ii:"0",i.u.browserVer=null!==(Zi=i.m)&&void 0!==Zi?Zi:"0",Yn=null!==(nr=i.browserFullVer)&&void 0!==nr?nr:void 0,i.u.browserFullVer=Yn??"0",i.u.browserBestVer=null!==(fr=Yn??i.u.browserVer)&&void 0!==fr?fr:"0",i.u.confidence=null!==(ha=null!==(es=null!==(wo=null!==(bo=null!==(So=i.l)&&void 0!==So?So:"Unknown"===i.g?0:void 0)&&void 0!==bo?bo:"Unknown"===i.h?5:void 0)&&void 0!==wo?wo:i.af?6:void 0)&&void 0!==es?es:i.W?8:void 0)&&void 0!==ha?ha:10,i.u.forging=null!==(hs=i.aa)&&void 0!==hs&&hs,i.u.spoofing=null!==(Us=i.W)&&void 0!==Us&&Us,i.u.vendor=null!==(za=i.j)&&void 0!==za?za:"",i.u.vendorFull=null!==(nl=i.Za)&&void 0!==nl?nl:i.u.vendor,nr=void 0,i.u.os){case"ChromeOS":nr="CHROMEOS";break;case"Windows":nr="WINDOWS";break;case"macOS":nr="MACOS";break;case"Linux":nr="LINUX";break;case"iOS":nr="IOS";break;case"iPadOS":nr="IPADOS";break;case"Tizen":nr="TIZEN";break;case"WebOS":nr="WEBOS";break;case"Android":nr="ANDROID";break;case"Xbox":nr="XBOX";break;case"SteamOS":nr="STEAMOS";break;case"ccOS":nr="CCOS"}i.u.deviceOS=nr,"iPadOS"!==i.u.os||i.Pe?i.Bb?i.u.deviceModel="STEAMDECK":i.M&&(i.u.deviceModel=i.M):i.u.deviceModel="VISIONPRO",i.u.deviceType=null!==(ul=i.H)&&void 0!==ul?ul:function Vt(i,p){if("STEAMDECK"===p)return"CONSOLE";switch(i){case"iOS":return"PHONE";case"iPadOS":return"TABLET";case"Xbox":return"CONSOLE";case"WebOS":case"Tizen":return"TV";default:return"DESKTOP"}}(i.u.os,i.u.deviceModel),i.u.totalTime=i.we-i.start,i.u.gpuDetail=i.gpuDetail})}),$e.apply(this,arguments)}function st(i,p){if(!i.$f){for(const w of p)(p=w.voiceURI||"").startsWith("Chrome OS")?i.Ta=!0:p.startsWith("Google")?i.Sa=!0:p.includes("moz-tts")?(p.includes("android")&&(i.Ve=!0,i.R=!0),i.Ua=!0):"English United States"==p&&(i.Qa=!0),p.includes("Microsoft")?(i.U=!0,p.includes("Online")?i.Re=!0:i.sc=!0):p.includes("com.apple")?(i.F=!0,p.includes("Ellen")&&(i.fe=!0)):"Zuzana"==p&&(i.F=!0);i.Ye=i.F||i.U||i.Sa||i.Ta||i.Ua||i.Qa,i.$f=!0}}function ni(){return ni=r(function*(i){i.rc=!!window.chrome&&(yield function wt(){return rn.apply(this,arguments)}())}),ni.apply(this,arguments)}function It(i){const p=window;i.mc=p.matchMedia("(hover: hover)").matches,i.nc=p.matchMedia("(hover: none)").matches,i.kc=p.matchMedia("(pointer: coarse)").matches,i.lc=p.matchMedia("(pointer: fine)").matches}function vn(i){return new Promise(p=>{const w=Ut=>{i.Oa&&(clearTimeout(i.Oa),i.Oa=0),Ut.Gd&&(i.wf=Ut.Gd,i.lg=Ut.qd,i.jg=Ut.Ld),p()};let V=!1,ae=!1;const me=Ut=>{"string"==typeof Ut?ht(i,"TV",Ut):"data"in Ut?it(i,"TV",Ut):Ct(i,"TV",Ut),ae=!0,m.e("{3c72abb}","{f49e1b4}",Ut)};let ct,He=0;try{self.SharedWorker&&(V=!0,ct=at(Wr,w,me),He=150)}catch(Ut){ae=!0,m.w("{3c72abb}","{2066dd6}",Ut),Et(i,"TV",Ut)}i.Oa=window.setTimeout(()=>{ct&&ve("port"in ct?ct.port:ct),ae?m.w("{3c72abb}","{cdb3848}"):V?(m.w("{3c72abb}","{f01188c}"),We(i,"TV")):(m.i("{3c72abb}","{db9e3f4}"),bt(i,"TV")),(new Wr).mb().then(Ut=>{w(Ut)})},He)})}function Vn(i,p,w){i.G?Fa(i.G,"WorkerOverlongDelay",p,w.toString()):i.C.push({type:"WorkerOverlongDelay",name:p,data:w})}function ht(i,p,w){i.G?Fa(i.G,"WebWorkerProblem",p,w):i.C.push({type:"ErrorString",name:p,data:w})}function it(i,p,w){i.G?Fa(i.G,"WorkerMessageProblem",JSON.stringify(w)):i.C.push({type:"MessageEvent",name:p,data:w})}function Ct(i,p,w){i.G?Fa(i.G,"WorkerProblem",p,`${w.message} in ${w.filename}@${w.lineno}:${w.colno}`,JSON.stringify(w.error)):i.C.push({type:"ErrorEvent",name:p,data:w})}function Et(i,p,w){var V;i.G?Fa(i.G,"WorkerCreateFailure",p,null!==(V=w?.stack)&&void 0!==V?V:"",JSON.stringify(w)):i.C.push({type:"WorkerCreateFailure",name:p,data:w})}function We(i,p){i.G?Fa(i.G,"WorkerTimeout",p):i.C.push({type:"WorkerTimeout",name:p})}function bt(i,p){i.G?Fa(i.G,"WorkerUnused",p):i.C.push({type:"WorkerUnused",name:p})}function rn(){return(rn=r(function*(){if(!window.createImageBitmap)return!1;const i=yield fetch("data:image/avif;base64,AAAAGGZ0eXBhdmlmAAAAAGF2aWZtaWYxAAADm21ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAHBpY3QAAAAAAAAAAAAAAAAAAAAADnBpdG0AAAAAAAEAAAAiaWxvYwAAAABEQAABAAEAAAAAA7sAAQAAAAAAAAAjAAAAI2lpbmYAAAAAAAEAAAAVaW5mZQIAAAAAAQAAYXYwMQAAAAMbaXBycAAAAvxpcGNvAAACrGNvbHJwcm9mAAACoGxjbXMEMAAAbW50clJHQiBYWVogB+UACAAJAAsAEAAFYWNzcE1TRlQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1sY21zAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANZGVzYwAAASAAAABAY3BydAAAAWAAAAA2d3RwdAAAAZgAAAAUY2hhZAAAAawAAAAsclhZWgAAAdgAAAAUYlhZWgAAAewAAAAUZ1hZWgAAAgAAAAAUclRSQwAAAhQAAAAgZ1RSQwAAAhQAAAAgYlRSQwAAAhQAAAAgY2hybQAAAjQAAAAkZG1uZAAAAlgAAAAkZG1kZAAAAnwAAAAkbWx1YwAAAAAAAAABAAAADGVuVVMAAAAkAAAAHABHAEkATQBQACAAYgB1AGkAbAB0AC0AaQBuACAAcwBSAEcAQm1sdWMAAAAAAAAAAQAAAAxlblVTAAAAGgAAABwAUAB1AGIAbABpAGMAIABEAG8AbQBhAGkAbgAAWFlaIAAAAAAAAPbWAAEAAAAA0y1zZjMyAAAAAAABDEIAAAXe///zJQAAB5MAAP2Q///7of///aIAAAPcAADAblhZWiAAAAAAAABvoAAAOPUAAAOQWFlaIAAAAAAAACSfAAAPhAAAtsRYWVogAAAAAAAAYpcAALeHAAAY2XBhcmEAAAAAAAMAAAACZmYAAPKnAAANWQAAE9AAAApbY2hybQAAAAAAAwAAAACj1wAAVHwAAEzNAACZmgAAJmcAAA9cbWx1YwAAAAAAAAABAAAADGVuVVMAAAAIAAAAHABHAEkATQBQbWx1YwAAAAAAAAABAAAADGVuVVMAAAAIAAAAHABzAFIARwBCAAAADGF2MUOBDQwAAAAAFGlzcGUAAAAAAAAAEAAAABAAAAAoY2xhcAAAAAEAAAABAAAAAQAAAAH////xAAAAAv////EAAAACAAAAF2lwbWEAAAAAAAAAAQABBIGCA4QAAAArbWRhdBIACgkfzP/IIEBA0oAyFGW+OwPr0bIHHHHBATZPtaQ3RWTA").then(p=>p.blob());return createImageBitmap(i).then(()=>!0,()=>!1)})).apply(this,arguments)}function In(i,p){if(i==p)return!1;let w=/^(\d+)[.]?(.*)/;if(i=w.exec(i),p=w.exec(p),null==i){if(null==p)return!0}else if(null!=p&&i[1]==p[1]&&""==i[2])return!0;return!1}function Mi(i){i.h="Chrome",!i.m&&i.ve&&(i.m=i.le?i.re?i.me?i.Pa?i.Je?i.Le?i.De?i.qe?i.dg?i.ke?i.Fe?i.ze?"90+":"89":"88":"87":"86":"85":"84":"83":"81":"80":"79":"78":"77")}function En(i){return i.Bb?"SteamOS":"Linux"}function Tn(i){i.h="Firefox",i.m=i.te?i.Pa?i.eg?i.bg?i.pe?"88":"89+":"87":"86":"85":"84-"}function Cn(i){var p,w,V,ae;i.s&&i.N?i.H="TV":i.Mb||i.fa||!i.wf?(!i.mc||i.lc)&&(i.da?i.vf?i.nc&&i.kc||(i.H="DESKTOP"):i.mc&&i.lc&&(i.H="DESKTOP"):i.nc&&i.kc||(i.H="DESKTOP")):(i.H="TV",i.j=null!==(w=null!==(p=i.j)&&void 0!==p?p:i.lg)&&void 0!==w?w:"",i.deviceName=null!==(ae=null!==(V=i.deviceName)&&void 0!==V?V:i.jg)&&void 0!==ae?ae:"UNKNOWN",i.l=7),i.H||(i.H=600<=(screen.width<screen.height?screen.width:screen.height)?"TABLET":"PHONE")}function Wn(i){i.g="Windows",Fi(i)||(i.h="Unknown",i.l=5,m.d("{3c72abb}","{44ce1e0}"))}function Oi(i){i.j="APPLE",i.s&&i.L?(i.g="macOS",Fi(i)||(i.h="Unknown",i.l=5,m.d("{3c72abb}","{b80b712}"))):i.ga?i.fa?(i.g="iPadOS",ln(i)):(i.g="macOS",Fi(i)||(i.h="Unknown",i.l=5,m.d("{3c72abb}","{0f3296f}")),"Safari"==i.h&&(i.m=i.ue?"16.4+":"16.3-")):i.Na?(i.g="iOS",ln(i)):i.Nb?(i.g="iPadOS",ln(i)):(i.aa=!0,i.l=5,i.fa?(i.g="iOS",ln(i),m.d("{3c72abb}","{cf1c572}")):(i.g="macOS",i.h="Unknown",m.d("{3c72abb}","{1eb1815}")))}function Qn(i){i.g="Android",i.wa?Tn(i):i.xa?(i.h="Samsung",i.j="SAMSUNG"):i.va?i.h="Brave":i.ya?i.h="Yandex":i.lb?i.h="Opera":i.s?i.$a?i.h="Edge":i.ua?i.h="Opera":i.ab?i.h="Yandex":i.ta||i.Ie?(Mi(i),Ai(i)):i.Z&&(i.h="Chromium",Ai(i)):i.$?i.rc?Mi(i):i.h=i.fa?"Edge":"Silk":(Mi(i),i.l=7),Cn(i)}function Fi(i){var p;if(i.wa)Tn(i);else if(i.Oe)i.h="Opera";else if(i.va)i.h="Brave";else if(i.ya)i.h="Yandex";else if(i.$)i.J?(i.g="Xbox",i.j="MICROSOFT",i.h="Edge",i.Da?i.M="XBOXSERIES":i.J&&(i.M="XBOXONE")):i.s?i.ca?(i.g="Xbox",i.j="MICROSOFT",i.h="Edge"):i.$a?i.h="Edge":i.ua?i.h="Opera":i.ab?i.h="Yandex":i.ta?Mi(i):i.Z&&!i.Ge&&(i.h="Chromium"):i.rc?i.s&&i.Z?(i.h="Chromium",i.l=9):i.Ye?i.h="Chromium":(i.h="Chromium",i.l=7):(i.h="Edge",i.g=null!==(p=i.g)&&void 0!==p?p:"Unknown",i.l=7);else if(i.Ue||i.qc)i.h="Safari";else{if(!i.Ke)return!1;i.J&&(i.g="Xbox",i.j="MICROSOFT"),i.h="Edge_Legacy"}return!0}function Ai(i){i.ef?(i.j="AMAZON",i.Z&&(i.h="Silk")):i.Xe?i.j="SONY":i.cf?i.j="GOOGLE":i.mf?i.j="NVIDIA":i.hf?i.j="XIAOMI":i.uf&&(i.j="TVISION")}function ln(i){i.v=i.fg?i.Pa?i.ge?i.je?i.cg?"17.4+":"17+":i.He?"16+":i.se?i.fe?"15.6+":"15.5+":i.he?"15.4+":i.Ne?"15.2+":i.Be?"15.1+":"15+":"14.5+":i.xe?"14.3+":"14+":i.oe?"13+":"12-";var p=i.v;const w=!i.ne&&!(p.startsWith("12")||p.startsWith("13"));p=!i.ie&&!(p.startsWith("12")||p.startsWith("13")||p.startsWith("14")||p.startsWith("15")),i.cb?i.h="Firefox":i.ee?i.h="Opera":i.va?i.h="Brave":i.ya?i.h="Yandex":i.bb?i.h="Edge":i.Va?i.h="Chrome":!i.qc||w||p?i.Qe?i.h="ReactNative":w?(i.h="Unknown",i.l=7,m.d("{3c72abb}","{5a39f60}")):(i.h="Unknown",i.l=5,m.d("{3c72abb}","{147d6b4}")):i.h="Safari"}function Mn(i){var w,p=Nr;null===(w=p.G)||void 0===w||Fa(w,"TelemetryHandlerChanged"),p.G=i;for(const V of p.C)switch(i=V.name,w=V.data,V.type){case"ErrorEvent":Ct(p,i,w);break;case"MessageEvent":it(p,i,w);break;case"WorkerUnused":bt(p,i);break;case"WorkerTimeout":We(p,i);break;case"WorkerCreateFailure":Et(p,i,w);break;case"ErrorString":ht(p,i,w);break;case"WorkerOverlongDelay":Vn(p,i,w)}p.C=[]}class Hi{mb(){const p=(self.OffscreenCanvas?new OffscreenCanvas(1,1):document.createElement("canvas")).getContext("webgl"),w=p&&p.getExtension("WEBGL_debug_renderer_info");return w?{qd:p&&p.getParameter(w.UNMASKED_VENDOR_WEBGL),Qf:p&&p.getParameter(w.UNMASKED_RENDERER_WEBGL),Gf:!0}:{qd:"",Qf:"",Gf:!1}}}class Mr{mb(){const p=navigator.userAgentData;return p?p.getHighEntropyValues("platform architecture uaFullVersion platformVersion model bitness".split(" ")).then(w=>(w||(w={}),w.brands||(w.brands=p.brands),w.mobile||(w.mobile=p.mobile),w)):Promise.resolve(void 0)}}class Wr{mb(){let p={Gd:!1,Ld:"",qd:""};if(navigator.userAgent){var w=navigator.userAgent.toUpperCase();const V="BRAVIA TIZEN PHILIPSTV GOOGLETV CRKEY CHROMECAST SHIELDTV".split(" "),ae="SONY SAMSUNG PHILIPS GOOGLE GOOGLE GOOGLE NVIDIA".split(" ");if(RegExp("BRAVIA|SMARTTV|SMART-TV|PHILIPSTV|GOOGLETV|CRKEY|CHROMECAST|SHIELD Android TV","i").test(w)&&(p.Gd=!0,w=w.match(V.join("|"))))for(let me=0;me<V.length;me++)w[0]==V[me]&&(p.Ld=V[me],p.qd=ae[me],"CRKEY"==w[0]&&(p.Ld="CHROMECAST"))}return Promise.resolve(p)}}class uo{mb(){return{platform:navigator.platform}}}const Nr=new class bi{constructor(){this.we=this.start=0,this.sc=this.Re=this.F=this.U=this.Qa=this.Ve=this.Ua=this.Sa=this.Ta=!1,this.fe=!0,this.pc=this.Rf=this.oc=this.$f=this.Kf=this.af=this.W=this.s=this.o=this.ra=this.Ee=this.lc=this.kc=this.nc=this.mc=this.ue=this.Pe=this.ze=this.Fe=this.ke=this.dg=this.qe=this.De=this.Le=this.Je=this.me=this.re=this.le=this.ve=this.cg=this.je=this.He=this.ie=this.ne=this.qc=this.te=this.Pa=this.eg=this.bg=this.pe=this.xe=this.se=this.he=this.Ne=this.Be=this.oe=this.ge=this.fg=this.rc=this.wf=this.N=this.vf=this.na=this.da=this.ea=this.O=this.L=this.P=this.uf=this.hf=this.mf=this.cf=this.Xe=this.ef=this.ca=this.Bb=this.Da=this.J=this.fa=this.Mb=this.Ge=this.Ie=this.Z=this.ab=this.ua=this.$a=this.ta=this.If=this.Ef=this.Bf=this.xf=this.Ka=this.Af=this.R=this.oa=this.S=this.Nb=this.ja=this.Na=this.ga=this.Qe=this.xa=this.ya=this.va=this.lb=this.ee=this.Oe=this.Me=this.cb=this.wa=this.Va=this.$=this.Ue=this.bb=this.Ke=this.Ye=!1,this.ag=this.Ce=this.pa=this.Oa=this.sa=this.ka=this.T=0,this.gpuDetail="",this.u={os:"Unknown",osRawVer:"0",osVer:"0",browser:"Unknown",browserVer:"0",browserFullVer:"0",browserBestVer:"0",forging:!0,spoofing:!0,confidence:0,totalTime:0,vendor:"",gpuDetail:""},this.C=[],this.ye=/Chrome\/(([0-9]+)\.[0-9]+\.[0-9]+\.[0-9]+)/}};function ss(){performance.mark("platformBegin");var i=Nr;return i.Ae||(i.Ae=function de(i){return i.start=performance.now(),new Promise(p=>{i.Kf?p(i.u):function J(i){return $e.apply(this,arguments)}(i).then(()=>{i.Kf=!0,p(i.u)})})}(i)),i.Ae}var Cs=class extends Oe{constructor(i){super(i),this.U=[]}$(i){i={logModule:"R",timeStamp:i.timestamp,logLevel:i.level,logtag:i.tag,logstr:i.message},this.hasListener("Log")?this.emit("Log",i):this.U.push(i)}addListener(i,p){if(super.addListener(i,p),"Log"==i&&0<this.U.length){for(const w of this.U)this.emit("Log",w);this.U=[]}}};function Pn(i){switch(i){case"CONSOLE":return"Console";case"TABLET":return"Tablet";case"PHONE":return"Phone";case"TV":return"TV";case"LAPTOP":return"Laptop";case"DESKTOP":return"Desktop";default:return"undefined"}}function Pi(i){switch(i){case"Chrome":return"Chrome";case"Safari":return"Safari";case"Yandex":return"Yandex";case"Edge":return"Edge";case"Edge_Legacy":return"Edge_legacy";case"Firefox":return"Firefox";case"Samsung":return"Samsung";case"Chromium":return"Chromium";case"Opera":return"Opera";case"Brave":return"Brave";case"Silk":return"Silk";default:return"undefined"}}function li(i){switch(i){case"Windows":return"Windows";case"macOS":return"MacOS";case"ChromeOS":return"ChromeOS";case"Linux":return"Linux";case"iOS":return"iOS";case"iPadOS":return"iPadOS";case"Tizen":return"Tizen";case"WebOS":return"WebOS";case"Xbox":return"Xbox";case"Android":return"Android";case"SteamOS":return"SteamOS";default:return"undefined"}}class er{constructor(p){p=this.g=p,this.j={os:li(p.os),browser:Pi(p.browser),deviceType:Pn(p.deviceType)},this.l={os:Fr(li((p=this.g).os)),browser:Fn(Pi(p.browser)),deviceType:dn(Pn(p.deviceType))}}get m(){return this.j}get o(){return this.l}get h(){return this.g}}var Fr=i=>{switch(i){case"Windows":return"WINDOWS";case"MacOS":return"MACOS";case"Linux":return"LINUX";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"SteamOS":return"STEAMOS";case"Shield":return"SHIELD";default:return"UNKNOWN"}},dn=i=>{switch(i){case"Desktop":default:return"DESKTOP";case"Laptop":return"LAPTOP";case"TV":return"TV";case"Phone":return"PHONE";case"Tablet":return"TABLET";case"Console":return"CONSOLE"}},Fn=i=>{switch(i){case"Chrome":return"CHROME";case"Safari":return"SAFARI";case"Yandex":return"YANDEX";case"Edge":return"EDGE";case"Edge_legacy":return"EDGE_LEGACY";case"Firefox":return"FIREFOX";case"Samsung":return"SAMSUNG";case"Chromium":return"CHROMIUM";case"Opera":return"OPERA";case"Brave":return"BRAVE";case"Silk":return"SILK";default:return"UNKNOWN"}};let xi;function fi(i){i.splice(0,i.length)}var Si=class extends Array{constructor(){super(),this.push=this.h}h(...i){return i=Array.prototype.push.apply(this,i),this.g&&this.g(),i}},Yi=class{constructor(i){this.name="",this.gdprLevel="behavioral",this.parameters=i,this.ts=(new Date).toISOString()}},Qi=class extends Yi{constructor(i){super(i),this.name="GS_DebugInfo",this.gdprLevel="technical"}},vr=class extends Yi{constructor(i){super(i),this.name="GS_ExceptionInfo",this.gdprLevel="technical"}},Dr=class extends Yi{constructor(i){super(i),this.name="GS_ClientMetricEvent",this.gdprLevel="functional"}},br=class extends Yi{constructor(i){super(i),this.name="GS_Sleep_Event",this.gdprLevel="technical"}},ro=class extends Yi{constructor(i){super(i),this.name="GS_WsCallResult",this.gdprLevel="functional"}},Oo=class extends Yi{constructor(i){super(i),this.name="GS_HttpCallResult",this.gdprLevel="functional"}};function Hr(i,p){i.l.length&&!i.o&&(i.o=window.setTimeout(()=>function Lo(i){if(i.l.length&&i.m){var p=Co(i,i.l);i.l=[],ge(i.m,{...i.L,body:p}).then(w=>{200<=w.status&&299>=w.status||m.e("{95feb49}","{1dc64ee}",w.status)}).catch(w=>{m.e("{95feb49}","{a0b4bea}",w)}).finally(()=>{i.o=0,i.l.length&&Hr(i,2e3)})}else i.o=0}(i),p))}function Ao(i,p){if(i.g)switch(p.gdprLevel){case"functional":return"Full"===i.g.deviceGdprFuncOptIn||"Temp"===i.g.deviceGdprFuncOptIn;case"technical":return"Full"===i.g.gdprTechOptIn;case"behavioral":return"Full"===i.g.gdprBehOptIn}return!1}function Co(i,p){var w;(i={...i.g,events:[]}).sentTs=(new Date).toISOString();for(const V of p)p={name:V.name,ts:V.ts,parameters:V.parameters},null===(w=i.events)||void 0===w||w.push(p);return JSON.stringify(i)}var ao=class{constructor(i){this.telemetryEventIds={},this.m="",this.l=[],this.o=0,this.L={method:"POST",headers:{"Content-Type":"application/json"},body:"",retryCount:3,timeout:2e3},this.F=i}configure(i){if(!i.option)return m.e("{95feb49}","{e936979}"),!1;if("function"==typeof i.option){m.i("{95feb49}","{01ded8b}"),this.s=i.option,this.m=void 0,this.o&&(window.clearTimeout(this.o),this.o=0);for(const p of this.l)this.s(p);this.l=[]}else{if("string"!=typeof i.option)return m.e("{95feb49}","{328a30f}"),!1;m.i("{95feb49}","{c76ea37}"),this.m=i.option,this.s=void 0,this.g&&Hr(this)}return!0}updateTelemetryCommonData(i){var p,w,V,ae,me,He,ct,Ut,Lt,qt;const on=null===(p=this.g)||void 0===p?void 0:p.sessionId;this.g={...i,events:[]},this.g.clientId=this.F.clientId,this.g.eventSchemaVer=this.F.eventSchemaVer,this.g.deviceMake=null!==(w=this.g.deviceMake)&&void 0!==w?w:"undefined",this.g.deviceModel=null!==(V=this.g.deviceModel)&&void 0!==V?V:"undefined",this.g.integrationId=null!==(ae=this.g.integrationId)&&void 0!==ae?ae:"undefined",this.g.userId=null!==(me=this.g.userId)&&void 0!==me?me:"undefined",this.g.externalUserId=null!==(He=this.g.externalUserId)&&void 0!==He?He:"undefined",this.g.idpId=null!==(ct=this.g.idpId)&&void 0!==ct?ct:"undefined",this.g.eventProtocol=null!==(Lt=null===(Ut=this.g)||void 0===Ut?void 0:Ut.eventProtocol)&&void 0!==Lt?Lt:"1.5",this.g.eventSysVer="2.0",this.g.sessionId=null!==(qt=this.g.sessionId)&&void 0!==qt?qt:on,this.g.sessionId||(this.g.sessionId=Re(),m.i("{95feb49}","{7d66b6c}",this.g.sessionId)),this.L.headers["X-Event-Protocol"]=this.g.eventProtocol,this.m&&(this.l=this.l.filter(Dn=>Ao(this,Dn)),Hr(this))}updateTelemetryEventIds(i){this.telemetryEventIds={...i}}h(i,p){i={name:i.name,parameters:i.parameters,gdprLevel:i.gdprLevel,ts:i.ts,clientConfig:this.F},this.s?this.s(i):this.m&&this.g?Ao(this,i)&&(p?(p=Co(this,[i]),i=navigator.sendBeacon(this.m,new Blob([p],{type:"text/plain"})),m.i("{95feb49}","{6267b70}",i,p)):(this.l.push(i),Hr(this))):this.l.push(i)}};window.RtcUtils=window.RtcUtils||{};var Ar={Ga:{},Tb:{type:"UNKNOWN",version:""},Kd:!0,Ze:!1,de:!0,ce:!1};function sn(i){var p,w,V,ae,me;if(m.i("{11b33a0}","{e65e133}",JSON.stringify(i)),function l(i){var p,w;if(i.overrideData){const V=new URLSearchParams(i.overrideData.toLowerCase());"lean"===V.get("mode")&&(E=!1),y=(E=null!==(p=(i=ae=>S(ae=V.get(ae)))("log"))&&void 0!==p?p:E)&&(null!==(w=i("console"))&&void 0!==w?w:y)}}(i),i.gxtOverrideData){const He=JSON.parse(i.gxtOverrideData);if(He.params)for(const ct of He.params)"pmCommunication"===ct.name&&(Ar.Ga.pmCommunication=ct.value,Ar.Tb={type:"GXT",version:ct.version})}if(i.overrideData){const He=new URLSearchParams(i.overrideData.toLowerCase());Ar.Kd=null!==(p=(i=ct=>S(ct=He.get(ct)))("log"))&&void 0!==p?p:Ar.Kd,Ar.Ze=Ar.Kd&&(null!==(w=i("console"))&&void 0!==w?w:Ar.Ze),Ar.de=null!==(V=i("websocketsignaling"))&&void 0!==V?V:Ar.de,Ar.ce=null!==(ae=i("webrtcstreamer"))&&void 0!==ae?ae:Ar.ce,Ar.hdr=null!==(me=i("hdr"))&&void 0!==me?me:Ar.hdr}}var Gn=class extends Yi{constructor(i){super(i),this.name="GridServer_GameLaunch_Request",this.gdprLevel="functional"}};const $n={clientName:"GFN_GridServer",clientId:"93289439828086895",eventSchemaVer:"2.1"};function Wi(i,p,w){var ae,me,He;return{requestedZoneAddress:i,zoneName:"",networkSessionId:null!==(ae=ps.telemetryEventIds.networkTestId)&&void 0!==ae?ae:"",sessionId:w??"",subSessionId:"",resumeType:p?"MANUAL":"NONE",overrideConfigType:Ar.Tb.type,overrideConfigVersion:Ar.Tb.version,result:"",codec:"UNKNOWN",ipVersion:"UNKNOWN",launchDuration:0,networkType:ps.networkType,streamingProfileGuid:null!==(me=ps.telemetryEventIds.streamingProfileGuid)&&void 0!==me?me:"",systemInfoGuid:null!==(He=ps.telemetryEventIds.systemInfoGuid)&&void 0!==He?He:"",cmsId:String(ps.cmsId)}}function Ti(i){var p=ps;i=new Oo({callDuration:i.callDuration,verb:i.verb,sessionId:i.sessionId,subSessionId:i.subSessionId,serverId:i.serverId,url:i.url,overrideConfigType:Ar.Tb.type,overrideConfigVersion:Ar.Tb.version,requestStatusCode:i.requestStatusCode,requestId:i.requestId,networkType:p.networkType,statusCode:i.statusCode,cmsId:String(p.cmsId),moduleName:"GRID_SERVER",response:i.response}),p.h(i)}function Gi(i){var w,V,p=ps;i.launchDuration=Math.round(i.launchDuration),(i=new Gn(i)).parameters.sessionId||(i.parameters.sessionId=p.sessionId),i.parameters.subSessionId||(i.parameters.subSessionId=p.subSessionId),i.parameters.systemInfoGuid=null!==(w=p.telemetryEventIds.systemInfoGuid)&&void 0!==w?w:"",i.parameters.streamingProfileGuid=null!==(V=p.telemetryEventIds.streamingProfileGuid)&&void 0!==V?V:"",p.h(i)}function _o(i,p,w){var ae,me,V=ps;if(50<=V.v)var He=!1;else{var ct=null!==(He=V.j.get(p))&&void 0!==He?He:0;10<=ct?He=!1:(V.v++,V.j.set(p,ct+1),He=!0)}He&&(!ae&&i&&(ae=i.name+": "+i.message),i=new vr({filename:w,lineno:0,stacktrace:null!==(me=i?.stack)&&void 0!==me?me:"",colno:0,handled:"TRUE",category:ae??"",message:p,moduleName:"GRID_SERVER",sessionId:V.sessionId,subSessionId:V.subSessionId}),V.h(i))}function zo(i){var p=ps;p.subSessionId=i,p.j.clear(),p.v=0}var ps=new class as extends ao{constructor(){super($n),this.networkType="UNKNOWN",this.subSessionId=this.sessionId=this.cmsId="",this.j=new Map,this.v=0}setNetworkType(p){this.networkType=Le(p)}};function Hs(i){switch(i){case 15867905:case 15867906:case 15867907:return!0;default:return!1}}function Qr(i){switch(i){case"ready_for_connection":case"streaming":case"paused":return!0;default:return!1}}function Qo(i){switch(i){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 xs(i){switch(i){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"}}function hl(i,p){var w,V;return function ca(i,p){if(i["content-type"]="application/json",void 0!==p.deviceOs&&(i["nv-device-os"]=p.deviceOs),void 0!==p.deviceType&&(i["nv-device-type"]=p.deviceType),void 0!==p.deviceMake&&(i["nv-device-make"]=p.deviceMake),void 0!==p.deviceModel&&(i["nv-device-model"]=p.deviceModel),void 0!==p.clientType&&(i["nv-client-type"]=p.clientType),void 0!==p.clientAppVersion&&(i["nv-client-version"]=p.clientAppVersion),void 0!==p.clientStreamer&&(i["nv-client-streamer"]=p.clientStreamer),void 0!==p.clientId&&(i["nv-client-id"]=p.clientId),void 0!==p.deviceId&&(i["x-device-id"]=p.deviceId),void 0!==p.browserType&&(i["nv-browser-type"]=p.browserType),p.clientHeaders)for(const[w,V]of p.clientHeaders)"x-nv-client-identity"!==(p=w).toLowerCase()&&(i[p.toLowerCase()]=V)}(i.o.headers,p),i.s.set("component","gridserver-core"),i.s.set("component.version","2.0"),i.s.set("client.name","GFN-PC"),i.s.set("client.version","28.0"),i.s.set("client.os",null!==(w=p.deviceOs)&&void 0!==w?w:""),i.s.set("client.os.version",null!==(V=p.deviceOsVer)&&void 0!==V?V:""),i.serverAddress=p.serverAddress,i.clientPlatformName=p.clientPlatformName,i.deviceId=p.deviceId,(i.serverAddress.startsWith("mockpm://")||"mockpm.com"===i.serverAddress.toLocaleLowerCase())&&(i.serverAddress=i.serverAddress.replace("mockpm://",""),i.protocol="http://"),i.u||"browser"!==i.clientPlatformName||ss().then(ae=>{i.u=ae}),!0}function Bs(i){const p=u.trace.getActiveSpan();if(p)for(const[w,V]of i.s)p.setAttribute(w,V)}function Oa(i,p,w,V,ae){const me=Re();return new Promise((He,ct)=>{const Ut=!!ae;var Lt=()=>{var on;const Dn={code:3237085186,subSessionId:me};Er(Dn.code);const Yn=Wi(null!==(on=p.serverAddress)&&void 0!==on?on:"",Ut,ae);Yn.result=H(Dn.code),Yn.subSessionId=me,Gi(Yn),He(Dn)};if(qs(i))if(i.J())m.e("{1daeef1}","{3753849}"),Lt();else{ps.cmsId=p.appId,zo(me),Lt=Bo(i,p,ae);var qt=new URL(Lt).hostname;i.g={resolve:He,reject:ct,sessionId:ae,subSessionId:me,Uf:V,Hd:Number.MAX_VALUE,bd:!1,Sc:w,Id:Wi(qt,Ut),startTime:performance.now()},ct=cs(i,p,Ut,me),ea(i,Ut?1:0,Lt,ct,w).then(on=>{!Ut&&15859712===on.result&&on.session&&m.i("{1daeef1}","{7c01bce}",on.session.sessionId),i.O(on)}).catch(on=>{i.N(on)})}else m.e("{1daeef1}","{3781843}"),Lt()}).catch(He=>(i.l.clear(),fi(i.h),i.g=void 0,Zo(He,"startOrResumeSession"),Er(3237093384),{code:3237093384,subSessionId:me}))}function qs(i){return-1===i.C.type||!!i.C.token}function Er(i,p){const w=u.trace.getActiveSpan();w&&(Hs(i)?(w.setAttribute("error",!1),w.setAttribute("error.description",xs(i))):15859712==i?w.setAttribute("error",!1):(w.setAttribute("error",!0),w.setAttribute("error.description",p??xs(i))))}function js(i,p){let w=i.protocol;return p&&i.v.has(p)?void 0!==(i=i.v.get(p))&&(w+=i.server,0!=i.port&&(w+=":"+i.port)):w+=i.serverAddress,w+"/v2/session/"+p}function ea(i,p,w,V,ae,me){var He;const ct=Dn=>!Hs(Dn)&&(15859712!==Dn||3!==p);let Ut={method:(()=>{switch(p){case 0:return"POST";case 2:return"DELETE";case 1:case 4:return"PUT";default:return"GET"}})(),headers:i.o.headers,body:V,retryCount:i.o.retryCount,timeout:i.o.timeout};(2===p||4===p)&&(Ut.keepalive=!0,i.u&&"Chrome"==i.u.browser&&!ee(i.u,81)&&(Ut.keepalive=!1));const Lt=performance.now();let qt=function Ci(i,p,w){return{url:i,verb:p,statusCode:"0",requestStatusCode:"",sessionId:w??"",subSessionId:ps.subSessionId,requestId:"",serverId:"",callDuration:0,response:"None"}}(w,null!==(He=Ut.method)&&void 0!==He?He:"",me);qt.statusCode="0";let on="";return ge(w,Ut,i.C,ae).then(Dn=>{on=Dn.data;var Yn=performance.now();if(qt.statusCode=Dn.status.toString(),qt.callDuration=Math.round(Yn-Lt),!Dn.data)throw m.e("{1daeef1}","{ea40865}"),new SyntaxError("The response from server does not contain any data");try{var ki=JSON.parse(Dn.data)}catch(bo){throw qt.response=Dn.data,bo}if(!ki.requestStatus)throw m.e("{1daeef1}","{862f264}",m.sanitize(Dn.data)),new SyntaxError("RequestStatus missing in response");Dn=ki.requestStatus.serverId.toUpperCase(),qt.requestId=ki.requestStatus.requestId,qt.serverId=Dn,qt.requestStatusCode=ki.requestStatus.statusDescription;var Zi,nr,fr,Ln=3237093632;if(void 0!==(Yn=ki.requestStatus).statusCode){var ii=Yn.statusCode;1==ii?Ln=15859712:0<ii&&255>ii&&(Ln=3237093632+ii),3237093636!=Ln&&3237093672!=Ln||!Yn.unifiedErrorCode||(Ln=Yn.unifiedErrorCode)}if(Yn.unifiedErrorCode&&m.i("{1daeef1}","{d2c9cc8}",H(Yn.unifiedErrorCode)),Dn={result:Ln,hd:ki,serverId:Dn},Yn=ki.requestStatus,Ln=u.trace.getActiveSpan()){ii=new Map([["host.dc",null!==(Zi=Yn.serverId)&&void 0!==Zi?Zi:""],["request.id",null!==(nr=Yn.requestId)&&void 0!==nr?nr:""],["request.status",null!==(fr=Yn.statusDescription)&&void 0!==fr?fr:""]]);for(const[bo,wo]of ii)Ln.setAttribute(bo,wo)}if(5===p)(ki=ki.sessions)&&(Dn.activeSessions=Ys(i,ki));else if(2!==p){var So;(Zi=ki.session)&&(Dn.session=vs(i,Zi),nr=u.trace.getActiveSpan(),nr?.setAttribute("session.status",null!==(So=Zi.status)&&void 0!==So?So:""),qt.sessionId=Dn.session.sessionId),(ki=ki.otherUserSessions)&&(Dn.activeSessions=Ys(i,ki),Dn.activeSessions.length&&m.d("{1daeef1}","{ba4be1c}",Dn.activeSessions.length))}return qt&&ct(Dn.result)&&(Ti(qt),qt=void 0),Dn}).catch(Dn=>{let Yn={result:3237089282};const ki=performance.now();if(Dn.code){var Ln=3237093384;3237089281===(Dn=Dn.code)?Ln=15868417:3237089282===Dn?Ln=3237089282:3237093377===Dn?Ln=3237093377:3237093379===Dn?Ln=3237093379:3237089283===Dn?Ln=3237089283:15867905==Dn&&(Ln=15867907),Yn.result=Ln}else Ln=!1,(Dn instanceof SyntaxError||Dn instanceof TypeError&&Dn.message&&Dn.message.includes("Cannot read property"))&&(Ln=!0,m.e("{1daeef1}","{d8979bb}",Dn.name,Dn.message)),Ln?(Yn.result=3237093379,m.e("{1daeef1}","{04bcd6f}",m.sanitize(on))):(Yn.result=3237093384,m.e("{1daeef1}","{94d55bb}",Dn,Dn.stack),_o(Dn,"performSessionRequest","sessioncontrolimpl.ts"));return qt&&ct(Yn.result)&&(qt.callDuration=Math.round(ki-Lt),Ti(qt)),m.e("{1daeef1}","{9c647aa}",Ut.method,w),m.e("{1daeef1}","{200d7ba}",Yn.result,xs(Yn.result)),Yn})}function Zo(i,p){m.e("{1daeef1}","{32f1296}",p,i.message),m.e("{1daeef1}","{94d55bb}",i,i.stack),_o(i,p,"sessioncontrolimpl.ts")}function vs(i,p){var w;let V={sessionId:p.sessionId,subSessionId:"",appId:0,appLaunchMode:0,state:Qo(p.status),zoneAddress:"",zoneName:"",deviceId:"",gpuType:"",monitorSettings:[],connectionInfo:[],finalizedStreamingFeatures:p.finalizedStreamingFeatures};if(V.appId=p.sessionRequestData?p.sessionRequestData.appId:0,p.connectionInfo){var ae=p.connectionInfo;if("browser"===i.clientPlatformName){let He=!1;for(var me of ae)if(2===me.usage){He=!0,V.connectionInfo.push(me);const ct={ip:"",port:49100,appLevelProtocol:5,protocol:1,usage:14};me=me.ip.split("."),ct.ip=me[0]+"-"+me[1]+"-"+me[2]+"-"+me[3],ct.ip+=p.sessionControlInfo.ip.substring(p.sessionControlInfo.ip.indexOf(".")),m.d("{1daeef1}","{cf7d7ea}",ct.ip),V.connectionInfo.push(ct);break}He||(V.connectionInfo=ae)}else V.connectionInfo=ae}switch(p.monitorSettings&&(V.monitorSettings=p.monitorSettings),p.gpuType&&(V.gpuType=p.gpuType),null===(w=p.sessionRequestData)||void 0===w?void 0:w.appLaunchMode){case 3:V.appLaunchMode=2;break;case 2:V.appLaunchMode=1}return p.sessionControlInfo&&(w=p.sessionControlInfo.ip,p=p.sessionControlInfo.port,w&&p&&(i.v.has(V.sessionId)&&(ae=i.v.get(V.sessionId),ae?.server===w&&ae?.port===p||m.i("{1daeef1}","{f09f5be}",V.sessionId,ae?.server,ae?.port,w,p)),i.v.set(V.sessionId,{server:w,port:p})),V.zoneAddress=w,V.zoneName=w.split(".")[0].toUpperCase()),V}function Ys(i,p){return p.map(w=>vs(i,w))}function ho(i,p,w,V,ae,me,He){const ct=()=>{Bs(i);let on=js(i,p),Dn={action:6,adUpdates:Array.from(i.h)};m.d("{1daeef1}","{dbca4b1}",JSON.stringify(Dn)),fi(i.h),ea(i,4,on,JSON.stringify(Dn),w,p).then(Yn=>{V(Yn)}).catch(Yn=>ae(Yn))};for(var Ut=i.h.length-1,Lt=0;1<=Ut;)3===i.h[Ut].adAction&&2===i.h[Ut-1].adAction?(i.h.splice(Ut-1,2),Lt++,Ut-=2):3===i.h[Ut-1].adAction?Ut--:Ut-=2;Lt&&m.d("{1daeef1}","{98a2816}",Lt),Lt=!1,Ut=1e3*i.m.adsWaitTimeoutS;const qt=i.h.length;if(qt&&(4===i.h[qt-1].adAction&&1<i.l.size||2===i.h[qt-1].adAction?Ut=i.m.adsThrottleIntervalMS:Lt=!0),Lt)R(I(),"AdUpdateRequest",ct);else{Lt=new Promise(Dn=>{i.h.g=Dn});const on=new j(Ut,w.signal);Promise.race([on.promise,Lt]).then(()=>{i.h.g=void 0,on.cancel(),i.h.length?i.h.length==qt?R(I(),"AdUpdateRequest",ct):ho(i,p,w,V,ae,me,He):(m.w("{1daeef1}","{5e1dfd0}"),He())}).catch(Dn=>{i.h.g=void 0,on.h?(m.i("{1daeef1}","{d7114d7}"),me()):ae(Dn)})}}function Bo(i,p,w){var V,ae,me;return w?i=js(i,w):(w=null!==(V=p.serverAddress)&&void 0!==V?V:i.serverAddress,i=i.protocol+w+"/v2/session"),(i+="?keyboardLayout="+(null!==(ae=p.keyboardLayout)&&void 0!==ae?ae:"en_US"))+"&languageCode="+(null!==(me=p.clientLocale)&&void 0!==me?me:"en_US")}function cs(i,p,w,V){var ae,me,He,ct,Ut,Lt,qt,on,Dn;let Yn;switch(p.appLaunchMode){case 2:m.d("{1daeef1}","{6d5cf87}"),Yn=3;break;case 1:Yn=2;break;default:Yn=1}let ki=null!==(He=null===(me=null===(ae=p.monitorSettings)||void 0===ae?void 0:ae[0])||void 0===me?void 0:me.sdrHdrMode)&&void 0!==He?He:0;if(Ar.hdr){ki=1;for(const Ln of p.monitorSettings)Ln.sdrHdrMode=1}ae={audioMode:2,remoteControllersBitmap:null!==(ct=p.remoteControllersBitmap)&&void 0!==ct?ct:0,sdrHdrMode:ki,networkTestSessionId:null,availableSupportedControllers:[],clientVersion:"28.0",deviceHashId:i.deviceId,internalTitle:null,clientPlatformName:i.clientPlatformName,metaData:[{key:"SubSessionId",value:V},{key:"wssignaling",value:Ar.de?"1":"0"}],surroundAudioInfo:0,clientTimezoneOffset:null!==(Ut=p.clientTimeZoneOffset)&&void 0!==Ut?Ut:-6e4*(new Date).getTimezoneOffset(),clientIdentification:"GFN-PC",parentSessionId:null,appId:p.appId,streamerVersion:1,clientRequestMonitorSettings:p.monitorSettings,appLaunchMode:Yn,sdkVersion:"1.0",enhancedStreamMode:1,useOps:!0,clientDisplayHdrCapabilities:null,accountLinked:null!==(Lt=p.accountLinked)&&void 0!==Lt&&Lt,partnerCustomData:null!==(qt=p.partnerCustomData)&&void 0!==qt?qt:"",enablePersistingInGameSettings:null!==(on=p.enablePersistingInGameSettings)&&void 0!==on&&on,secureRTSPSupported:!1,userAge:null!==(Dn=p.userAge)&&void 0!==Dn?Dn:0,requestedStreamingFeatures:p.streamingFeatures},Ar.ce||"browser"===i.clientPlatformName?ae.metaData.push({key:"GSStreamerType",value:"WebRTC"}):ae.secureRTSPSupported=!0;for(const Ln in p.metaData)ae.metaData.push({key:Ln,value:p.metaData[Ln]});return i=JSON.stringify(w?{action:2,data:"RESUME",sessionRequestData:ae,metaData:[]}:{sessionRequestData:ae}),m.i("{1daeef1}","{c6c3ed4}",w?"PUT":"POST",m.sanitize(i)),i}function $s(i,p,w,V){var ae,me,He;if(i.g)try{const ct={code:p,subSessionId:null!==(ae=i.g.subSessionId)&&void 0!==ae?ae:"",session:i.g.ug,zoneName:w,activeSessions:V},Ut=i.g.Id;Ut.result=H(p),Ut.zoneName=w??"",Ut.sessionId=null!==(me=i.g.sessionId)&&void 0!==me?me:"",Ut.launchDuration+=performance.now()-i.g.startTime,Gi(i.g.Id),Er(p),m.d("{1daeef1}","{c4902fa}",H(p),null!==(He=i.g.sessionId)&&void 0!==He?He:""),i.g.resolve(ct),i.g=void 0,i.l.clear(),fi(i.h)}catch(ct){i.g&&(i.g.reject(ct),i.g=void 0)}}var fa=class{constructor(){var i,p,w,V,ae,me,He,ct,Ut,Lt,qt,on,Dn,Yn,ki,Ln,ii,Zi,nr,fr,So,bo;let wo;this.v=new Map,this.o={...ne},this.C={type:1},this.s=new Map,this.protocol="https://",this.h=new Si,this.l=new Map,this.clientPlatformName=this.deviceId=this.serverAddress="",wo=0+(null!==(p=null===(i=Ar.Ga.pmCommunication)||void 0===i?void 0:i.httpConnectionTimeout)&&void 0!==p?p:0),wo+=null!==(V=null===(w=Ar.Ga.pmCommunication)||void 0===w?void 0:w.httpDataReceiveTimeout)&&void 0!==V?V:0,this.o.timeout=wo?1e3*wo:13e3,this.o.retryCount=null!==(me=null===(ae=Ar.Ga.pmCommunication)||void 0===ae?void 0:ae.httpRetryCount)&&void 0!==me?me:3,this.o.hg=null!==(ct=null===(He=Ar.Ga.pmCommunication)||void 0===He?void 0:He.httpBackOffDelay)&&void 0!==ct?ct:500,this.m={wg:null!==(Lt=null===(Ut=Ar.Ga.pmCommunication)||void 0===Ut?void 0:Ut.pollingIntervalMin)&&void 0!==Lt?Lt:1e3,vg:null!==(on=null===(qt=Ar.Ga.pmCommunication)||void 0===qt?void 0:qt.pollingIntervalMax)&&void 0!==on?on:1e4,step:null!==(Yn=null===(Dn=Ar.Ga.pmCommunication)||void 0===Dn?void 0:Dn.pollingIntervalStep)&&void 0!==Yn?Yn:1e3,Jf:null!==(Ln=null===(ki=Ar.Ga.pmCommunication)||void 0===ki?void 0:ki.pollingQueueSizePerStep)&&void 0!==Ln?Ln:50,adsPollingIntervalMinMS:null!==(Zi=null===(ii=Ar.Ga.pmCommunication)||void 0===ii?void 0:ii.adsPollingIntervalMinMS)&&void 0!==Zi?Zi:3e3,adsThrottleIntervalMS:null!==(fr=null===(nr=Ar.Ga.pmCommunication)||void 0===nr?void 0:nr.adsThrottleIntervalMS)&&void 0!==fr?fr:2e3,adsWaitTimeoutS:null!==(bo=null===(So=Ar.Ga.pmCommunication)||void 0===So?void 0:So.adsWaitTimeoutS)&&void 0!==bo?bo:600}}setAuthInfo(i){this.C=i}setNetworkType(i){ps.setNetworkType(i)}startSession(i,p,w){return R(I(),"StartSession",()=>(Bs(this),Oa(this,i,p,w)))}resumeSession(i,p,w,V){return R(I(),"ResumeSession",()=>(Bs(this),Oa(this,p,w,V,i)))}deleteSession(i,p){return R(I(),"DeleteSession",()=>(Bs(this),qs(this)?ea(this,2,js(this,i),"",p,i).then(V=>(15859712==V.result?(this.v.delete(i),m.d("{1daeef1}","{6206c13}",i)):m.e("{1daeef1}","{4de47e3}",i,H(V.result)),Er(V.result),V.result)).catch(V=>(Zo(V,"deleteSession"),Er(3237093384),3237093384)):(m.e("{1daeef1}","{4fed44a}"),Er(3237085186),Promise.resolve(3237085186))))}getActiveSessions(i){return R(I(),"GetSessionList",()=>(Bs(this),qs(this)?ea(this,5,this.protocol+this.serverAddress+"/v2/session","",i).then(p=>(Er((p={code:p.result,activeSessions:p.activeSessions,zoneName:p.serverId}).code),15859712!==p.code?m.e("{1daeef1}","{9d2bb75}",H(p.code)):m.d("{1daeef1}","{081857f}"),p)).catch(p=>(Zo(p,"getActiveSessions"),Er((p={code:3237093384}).code),p)):(m.e("{1daeef1}","{dc27839}"),Er(3237085186),Promise.resolve({code:3237085186}))))}getSessionInfo(i,p){return R(I(),"GetSession",()=>ea(this,3,js(this,i),"",p,i).then(V=>(15859712!==(V={code:V.result,session:V.session,zoneName:V.serverId}).code?m.e("{1daeef1}","{021d0f4}",H(V.code)):m.d("{1daeef1}","{fa53c7c}"),V)).catch(V=>(Zo(V,"getSessionInfo"),Er((V={code:3237093384}).code),V)))}J(){return!!this.g}updateAdState(i){if(!this.J())return m.e("{1daeef1}","{20d9281}"),3237085186;const p=this.l.get(i.adId);if(!p)return m.e("{1daeef1}","{74daa9c}",i.adId),3237093386;const w=function Js(i){switch(i){case 1:return 2;case 2:return 3;case 3:return 4;case 4:return 5;case 5:return 6;default:return 0}}(i.adAction);if(!function ts(i,p){switch(p){case 2:return 1==i||0==i;case 3:case 5:return 2==i||4==i;case 4:return 3==i;case 6:return 5!=i;default:return!1}}(p.cd,w))return m.e("{1daeef1}","{09d8184}",i.adAction,i.adId,p.cd),3237093386;if(this.h.length){const V=this.h[this.h.length-1].adId;if(V!==i.adId){const ae=this.h[this.h.length-1].adAction;if(4!=ae&&5!=ae)return m.e("{1daeef1}","{c161587}",V),3237093386}}return i.clientTimestamp||(i.clientTimestamp=Math.round(Date.now()/1e3)),this.h.push(i),p.cd=w,this.l.set(i.adId,p),15859712}M(){var i,p;this.g&&ea(this,3,js(this,null!==(i=this.g.sessionId)&&void 0!==i?i:""),"",this.g.Sc,null!==(p=this.g.sessionId)&&void 0!==p?p:"").then(V=>{this.O(V)}).catch(V=>{this.N(V)})}N(i){m.e("{1daeef1}","{e3be7ea}",i.message),_o(i,"processSessionSetupException","sessioncontrolimpl.ts"),$s(this,3237093384)}O(i){var p,w,V;if(this.g){var ae=()=>{$s(this,me.bd?15867906:15867905)},me=this.g;if(i.session&&(i.session.subSessionId=this.g.subSessionId,this.g.ug=i.session,this.g.sessionId=i.session.sessionId,me.bd=1==i.hd.session.seatSetupInfo.seatSetupStep),15859712===i.result&&i.session){const He=i.session;"ready_for_connection"===He.state||"streaming"===He.state?("streaming"==He.state&&function Tr(){var i=ps;const p=new Qi({key1:"InvalidSessionStateTransition",key2:"Streaming",key3:"",key4:"",key5:"",moduleName:"GRID_SERVER",networkType:i.networkType,overrideConfigType:Ar.Tb.type,overrideConfigVersion:Ar.Tb.version,cmsId:String(i.cmsId),sessionId:i.sessionId,subSessionId:i.subSessionId});i.h(p)}(),m.i("{1daeef1}","{30d6f44}",null!==(p=this.g.sessionId)&&void 0!==p?p:""),$s(this,15859712,i.serverId)):"initializing"==He.state||"resuming"==He.state?(p=function Pa(i,p,w,V){var ae,me,He,ct,Ut,Lt,qt="Configuring",on=0;if(p.seatSetupInfo)switch(p.seatSetupInfo.seatSetupStep){case 0:qt="Connecting";break;case 1:qt="InQueue",on=p.seatSetupInfo.queuePosition<w?p.seatSetupInfo.queuePosition:w;break;case 5:qt="PreviousSessionCleanup";break;default:on=0}if(w={sessionId:p.sessionId,subSessionId:V,queuePosition:on,eta:null!==(me=null===(ae=p.seatSetupInfo)||void 0===ae?void 0:ae.seatSetupEta)&&void 0!==me?me:0,progressState:qt,isAdsRequired:p.sessionAdsRequired,ads:[]},ae=new Map(i.l),i.l.clear(),p.sessionAds)for(me=p.sessionAds.length,qt=0;qt<me;qt++){if(5==(V=p.sessionAds[qt]).adState||6==V.adState)continue;i.l.set(on=V.adId,{Xg:V.adState,cd:null!==(ct=null===(He=ae.get(on))||void 0===He?void 0:He.cd)&&void 0!==ct?ct:0}),on={adId:on,adState:V.adState,adUrl:V.adUrl,adLengthInSeconds:V.adLengthInSeconds,adMediaFiles:[]};const Dn=null!==(Lt=null===(Ut=V.adMediaFiles)||void 0===Ut?void 0:Ut.length)&&void 0!==Lt?Lt:0;for(let Yn=0;Yn<Dn;Yn++){const ki=V.adMediaFiles[Yn];on.adMediaFiles.push({mediaFileUrl:ki.mediaFileUrl,encodingProfile:ki.encodingProfile})}w.ads.push(on)}return w}(this,i.hd.session,this.g.Hd,this.g.subSessionId),this.g.Uf(p),me.bd&&(this.g.Hd=p.queuePosition),p.ads.length?ho(this,null!==(w=me.sessionId)&&void 0!==w?w:"",me.Sc,this.O.bind(this),this.N.bind(this),ae,this.M.bind(this)):new j(function _r(i,p){let w=i.m.wg;return 1===p.seatSetupInfo.seatSetupStep&&0!=i.m.Jf&&(w+=Math.floor(p.seatSetupInfo.queuePosition/i.m.Jf)*i.m.step),p.sessionAdsRequired&&(w=Math.max(w,i.m.adsPollingIntervalMinMS)),Math.min(w,i.m.vg)}(this,i.hd.session),null===(V=this.g.Sc)||void 0===V?void 0:V.signal).promise.then(this.M.bind(this)).catch(ae)):(m.e("{1daeef1}","{ce47cd1}",m.sanitize(JSON.stringify(i.hd))),$s(this,3237093378,i.serverId))}else 15867907===i.result?ae():$s(this,i.result,i.serverId,i.activeSessions)}}},sa={Success:15859712,InvalidOperation:3237085186,NetworkError:3237089282,GetActiveSessionServerError:3237089283,AuthTokenNotUpdated:3237093377,SessionFinishedState:3237093378,ResponseParseFailure:3237093379,InvalidServerResponse:3237093381,PutOrPostInProgress:3237093382,GridServerNotInitialized:3237093383,DOMExceptionInSessionControl:3237093384,InvalidAdStateTransition:3237093386,SessionServerErrorBegin:3237093632,RequestForbidden:3237093634,ServerInternalTimeout:3237093635,ServerInternalError:3237093636,ServerInvalidRequest:3237093637,ServerInvalidRequestVersion:3237093638,SessionListLimitExceeded:3237093639,InvalidRequestDataMalformed:3237093640,InvalidRequestDataMissing:3237093641,RequestLimitExceeded:3237093642,SessionLimitExceeded:3237093643,InvalidRequestVersionOutOfDate:3237093644,SessionEntitledTimeExceeded:3237093645,AuthFailure:3237093646,InvalidAuthenticationMalformed:3237093647,InvalidAuthenticationExpired:3237093648,InvalidAuthenticationNotFound:3237093649,EntitlementFailure:3237093650,InvalidAppIdNotAvailable:3237093651,InvalidAppIdNotFound:3237093652,InvalidSessionIdMalformed:3237093653,InvalidSessionIdNotFound:3237093654,EulaUnAccepted:3237093655,MaintenanceStatus:3237093656,ServiceUnAvailable:3237093657,SteamGuardRequired:3237093658,SteamLoginRequired:3237093659,SteamGuardInvalid:3237093660,SteamProfilePrivate:3237093661,InvalidCountryCode:3237093662,InvalidLanguageCode:3237093663,MissingCountryCode:3237093664,MissingLanguageCode:3237093665,SessionNotPaused:3237093666,EmailNotVerified:3237093667,InvalidAuthenticationUnsupportedProtocol:3237093668,InvalidAuthenticationUnknownToken:3237093669,InvalidAuthenticationCredentials:3237093670,SessionNotPlaying:3237093671,InvalidServiceResponse:3237093672,AppPatching:3237093673,GameNotFound:3237093674,NotEnoughCredits:3237093675,InvitationOnlyRegistration:3237093676,RegionNotSupportedForRegistration:3237093677,SessionTerminatedByAnotherClient:3237093678,DeviceIdAlreadyUsed:3237093679,ServiceNotExist:3237093680,SessionExpired:3237093681,SessionLimitPerDeviceReached:3237093682,ForwardingZoneOutOfCapacity:3237093683,RegionNotSupportedIndefinitely:3237093684,RegionBanned:3237093685,RegionOnHoldForFree:3237093686,RegionOnHoldForPaid:3237093687,AppMaintenanceStatus:3237093688,ResourcePoolNotConfigured:3237093689,InsufficientVmCapacity:3237093690,InsufficientRouteCapacity:3237093691,InsufficientScratchSpaceCapacity:3237093692,RequiredSeatInstanceTypeNotSupported:3237093693,ServerSessionQueueLengthExceeded:3237093694,RegionNotSupportedForStreaming:3237093695,SessionForwardRequestAllocationTimeExpired:3237093696,SessionForwardGameBinariesNotAvailable:3237093697,GameBinariesNotAvailableInRegion:3237093698,UekRetrievalFailed:3237093699,EntitlementFailureForResource:3237093700,SessionInQueueAbandoned:3237093701,MemberTerminated:3237093702,SessionRemovedFromQueueMaintenance:3237093703,ZoneMaintenanceStatus:3237093704,GuestModeCampaignDisabled:3237093705,RegionNotSupportedAnonymousAccess:3237093706,InstanceTypeNotSupportedInSingleRegion:3237093707,InvalidZoneForQueuedSession:3237093710,SessionWaitingAdsTimeExpired:3237093711,UserCancelledWatchingAds:3237093712,StreamingNotAllowedInLimitedMode:3237093713,ForwardRequestJPMFailed:3237093714,MaxSessionNumberLimitExceeded:3237093715,GuestModePartnerCapacityDisabled:3237093716,SessionRejectedNoCapacity:3237093717,SessionServerErrorEnd:3237093887,SessionSetupCancelled:15867905,SessionSetupCancelledDuringQueuing:15867906,RequestCancelled:15867907,NoInternetDuringSessionSetup:15868417},Ba=s.Og;function _s(i){var p={ip:"",port:0,protocol:""};for(const w of i.connectionInfo)if(14===w.usage){p.ip=w.ip,p.port=w.port,p.protocol=5===w.appLevelProtocol?"https":"http",p.resourcePath=w.resourcePath;break}p={signalConnectionInfo:p,mediaConnectionInfo:i.connectionInfo,streamInfo:[],clientLocale:"",...i};for(const w of i.monitorSettings)p.streamInfo.push({width:w.widthInPixels,height:w.heightInPixels,fps:w.framesPerSecond,sdrHdrMode:w.sdrHdrMode});return p}function wa(i){let p=[];if(i)for(const w of i)p.push({sessionId:w.sessionId,appId:w.appId,state:w.state,appLaunchMode:w.appLaunchMode});return p}function po(){return(po=r(function*(i){m.d("{6bae601}","{1aef200}"),i.serverAddress?(yield ea(i,5,i.protocol+i.serverAddress+"/v2/session","").then(p=>{let w={sessionList:wa(p.activeSessions)};if(15859712!=p.result){let V={code:p.result,description:xs(p.result)};w.error=V,m.e("{6bae601}","{9d2bb75}",H(V.code))}else m.d("{6bae601}","{081857f}");Er(p.result),i.j.emit("ActiveSessionsResult",w)}).catch(p=>{m.e("{6bae601}","{63f9b57}",p.message),m.e("{6bae601}","{94d55bb}",p,p.stack),_o(p,"getAllActiveSessions","gridserver.ts"),p={sessionList:[],error:{code:3237093384,description:xs(3237093384)}},Er(3237093384),i.j.emit("ActiveSessionsResult",p)}),m.d("{6bae601}","{a9e5439}")):(i.j.emit("ActiveSessionsResult",{sessionList:[],error:{code:3237093383,description:"GridServer not initialized"}}),Er(3237093383))})).apply(this,arguments)}function ta(i,p,w=""){m.d("{6bae601}","{1e04fe6}",w,p),i.subSessionId=p,ps.sessionId=w,zo(p);const V=i.P.get(p);void 0===V||""===V?i.P.set(p,w):m.w("{6bae601}","{7dd264b}",w)}function zs(i){return Er(i.code,i.description),Promise.reject(i)}function Kt(i,p){i.zoneAddress=p.zoneAddress||i.zoneAddress,i.zoneName=p.zoneName||i.zoneName,i.gpuType=p.gpuType||i.gpuType}var ei=class extends fa{constructor(i,p){super(),this.subSessionId="",this.P=new Map,this.R=!1,this.L=new Map,this.S=w=>{this.j.emit("TelemetryEvent",w)},this.T=w=>{this.j.emit("SessionUpdate",w),this.j.emit("ProgressUpdate",{sessionId:w.sessionId,subSessionId:w.subSessionId,queuePosition:w.queuePosition,eta:w.eta,state:w.progressState})},this.u=i,this.j=new Cs(p),m.isCallbackRegistered()||(this.R=!0,m.setLogCallback(this.j.$.bind(this.j))),ps.configure({option:this.S})}initialize(i){var p;m.i("{6bae601}","{6802390}","0.0.1548"),hl(this,{deviceId:null!==(p=i.deviceHashId)&&void 0!==p?p:"",...i,clientStreamer:i.clientStreamer.toString()}),(i=ps).telemetryEventIds={},i.sessionId="",i.subSessionId="",i.cmsId="",m.d("{6bae601}","{5af3344}")}uninitialize(){this.cancelSessionSetup(),this.R&&m.setLogCallback(),this.j.removeAllListeners()}addListener(i,p){this.j.addListener(i,p)}removeListener(i,p){this.j.removeListener(i,p)}updateTelemetryEventIds(i){ps.updateTelemetryEventIds(i)}getAllActiveSessions(){R(I(),"GetSessionList",()=>(Bs(this),function To(i){return po.apply(this,arguments)}(this)))}getSessionId(){var i;return null!==(i=this.P.get(this.subSessionId))&&void 0!==i?i:""}getSubSessionId(){return this.subSessionId}putOrPostSession(i,p,w){return R(I(),w?"PutSession":"PostSession",()=>(Bs(this),function Ls(i,p,w){var V;const ae=!!w;if(ta(i,Re(),w),!i.serverAddress)return zs({code:3237093383,description:"GridServer not initialized"});if(i.F)return zs({code:3237093382,description:"Previous PutOrPost call is still in progress"});ps.cmsId=p.appId,i.zoneName=void 0,i.zoneAddress=void 0,i.gpuType=void 0;const me=Wi(i.serverAddress,ae,w);me.networkSessionId=null!==(V=p.networkSessionId)&&void 0!==V?V:"",p=function Ml(i){var p;const w={monitorSettings:[],...i};if(0===w.monitorSettings.length)for(const V of null!==(p=i.streamParams)&&void 0!==p?p:[])w.monitorSettings.push({heightInPixels:V.height,framesPerSecond:V.fps,widthInPixels:V.width});return w}(p);let He=Bo(i,p,w),ct=cs(i,p,ae,i.subSessionId),Ut=performance.now();return new Promise((Lt,qt)=>{const on=new AbortController;i.F=on,ea(i,ae?1:0,He,ct,on,w).then(Dn=>{var Yn,ki,Ln,ii,Zi;let nr;me.launchDuration=Math.round(performance.now()-Ut),!(null===(Yn=Dn.session)||void 0===Yn)&&Yn.sessionId&&(me.sessionId=null===(ki=Dn.session)||void 0===ki?void 0:ki.sessionId,w=null===(Ln=Dn.session)||void 0===Ln?void 0:Ln.sessionId),i.zoneName=Dn.serverId||i.zoneName,Dn.session&&(nr=_s(Dn.session),nr.subSessionId=i.subSessionId,Kt(i,nr)),me.zoneName=null!==(ii=i.zoneName)&&void 0!==ii?ii:"",on.signal.aborted&&!Hs(Dn.result)&&(Dn.result=15867905,m.d("{6bae601}","{3ec0e11}")),15859712==Dn.result?(m.d("{6bae601}","{30536f4}",w),ta(i,i.getSubSessionId(),w),"ready_for_connection"==(null===(Zi=Dn.session)||void 0===Zi?void 0:Zi.state)?(me.result=H(15859712),Gi(me)):i.L.set(me.sessionId,me),Er(Dn.result),Lt(nr)):(15867907===Dn.result&&(Dn.result=15867905),Dn={code:Dn.result,sessionId:w,description:xs(Dn.result),sessionList:wa(Dn.activeSessions)},m.e("{6bae601}","{17f93f3}",H(Dn.code)),me.result=H(Dn.code),Gi(me),Er(Dn.code),qt(Dn))}).catch(Dn=>{let Yn={code:3237093384,sessionId:w,description:xs(3237093384)};m.e("{6bae601}","{4318505}",Dn.message),m.e("{6bae601}","{94d55bb}",Dn,Dn.stack),_o(Dn,"putOrPostSession","gridserver.ts"),me.result=H(Yn.code),Gi(me),Er(Yn.code),qt(Yn)})}).finally(()=>{i.F=void 0})}(this,i,w)))}getSession(i,p){return R(I(),"GetSession",()=>(Bs(this),function Zn(i,p,w){return i.serverAddress?w?new Promise((V,ae)=>{var me=js(i,p),He=new URL(me).hostname;(me=i.L.get(p))?i.L.delete(p):(m.e("{6bae601}","{bb9b2e3}",p),me=Wi(He,!1,p)),He=new AbortController,i.H=He,i.g={resolve:V,reject:ae,sessionId:p,subSessionId:i.subSessionId,Uf:i.T,Hd:Number.MAX_VALUE,bd:!1,Sc:He,startTime:performance.now(),Id:me},i.M()}).then(V=>{let ae;if(V.session&&(ae=_s(V.session),Kt(i,ae)),15859712===V.code&&ae)return ae;throw{code:V.code,description:xs(V.code)}}).finally(()=>{i.l.clear(),fi(i.h),i.g=void 0}):(w=js(i,p),ea(i,3,w,"",void 0,p).then(V=>{if(Er(V.result),15859712===V.result&&V.session)return _s(V.session);throw{code:V.result,description:xs(V.result)}})):zs({code:3237093383,description:"GridServer not initialized"})}(this,i,p)))}sendDeleteRequest(i){return R(I(),"DeleteSession",()=>(Bs(this),function Ii(i,p){if(!i.serverAddress)return zs({code:3237093383,description:"Gridserver not initialized"});let w=js(i,p);return new Promise((V,ae)=>{m.d("{6bae601}","{bbad3ce}",p),ea(i,2,w,"",void 0,p).then(me=>{if(15859712==me.result)m.d("{6bae601}","{6206c13}",p),V();else{let He={code:me.result,description:xs(me.result),sessionId:p};m.e("{6bae601}","{4de47e3}",p,H(me.result)),ae(He)}Er(me.result)}).catch(me=>{const He={code:3237093384,description:xs(3237093384)};m.e("{6bae601}","{c4f620c}",me.message),m.e("{6bae601}","{94d55bb}",me,me.stack),_o(me,"sendDeleteRequestImpl","gridserver.ts"),ae(He)})})}(this,i)))}cancelSessionSetup(){var i,p;m.i("{6bae601}","{c73e640}"),null===(i=this.F)||void 0===i||i.abort(),null===(p=this.H)||void 0===p||p.abort(),this.H=this.F=void 0}getZoneName(){var i;return null!==(i=this.zoneName)&&void 0!==i?i:""}getZoneAddress(){var i;return null!==(i=this.zoneAddress)&&void 0!==i?i:""}getGpuType(){var i;return null!==(i=this.gpuType)&&void 0!==i?i:""}J(){return!!this.H}},di=class extends ei{constructor(){super()}getAllActiveSessions(){window.setTimeout(()=>{m.d("{6bae601}","{b575263}"),this.j.emit("ActiveSessionsResult",{sessionList:[]})},1)}putOrPostSession(i){var p;return m.d("{6bae601}","{71c010f}"),ta(this,Re(),null!==(p=i.sessionId)&&void 0!==p?p:"PassThruSessionId"),new Promise(w=>{window.setTimeout(()=>{let V={sessionId:this.getSessionId(),subSessionId:this.getSubSessionId(),appId:parseInt(i.appId),state:"ready_for_connection",signalConnectionInfo:{ip:"",port:49100,protocol:"http"},mediaConnectionInfo:[],streamInfo:[],appLaunchMode:i.appLaunchMode?i.appLaunchMode:0,zoneName:this.getZoneName(),zoneAddress:this.getZoneAddress(),gpuType:this.getGpuType(),clientLocale:"",finalizedStreamingFeatures:{}};if(this.serverAddress&&(V.signalConnectionInfo.ip=this.serverAddress),i.connectionInfo){V.mediaConnectionInfo=i.connectionInfo;for(const ae of V.mediaConnectionInfo)14===ae.usage&&(V.signalConnectionInfo.ip=ae.ip,V.signalConnectionInfo.port=ae.port,V.signalConnectionInfo.protocol=5===ae.appLevelProtocol?"https":"http",V.signalConnectionInfo.resourcePath=ae.resourcePath,m.d("{6bae601}","{c6b8e0f}",ae.ip,ae.port))}if(V.signalConnectionInfo.ip||m.e("{6bae601}","{a43f57e}"),i.monitorSettings)for(const ae of i.monitorSettings)V.streamInfo.push({width:ae.widthInPixels,height:ae.heightInPixels,fps:ae.framesPerSecond,sdrHdrMode:ae.sdrHdrMode});else for(const ae of i.streamParams)V.streamInfo.push({width:ae.width,height:ae.height,fps:ae.fps});m.d("{6bae601}","{07dc276}",V.sessionId),w(V)},1)})}getSession(){return new Promise((i,p)=>{p({code:-1,description:"PassthruPollingNotSupported"})})}sendDeleteRequest(){return new Promise(i=>{i()})}updateAdState(){return-1}},wi={VIDEO:"video",AUDIO:"audio"},Ri={Unknown:0,ApproachingEntitlementTimeout:1,ApproachingIdleTimeout:2,ApproachingSessionMaxTimeLimit:3,ClearUserIdleTimeOut:4},Nt={allowUnconfined:!1,preventNavigation:!1},Dt=class{constructor(){this.g=1}};function Xt(i){if(!((15868672^i)>>8))return 256;let p=32769;switch(i){case 15859712:case 15867908:case 15868418:p=0;break;case 3237093894:case 3237093899:p=32776;break;case 3237093898:p=32772;break;case 3237093900:p=32773;break;case 3237093901:p=32770;break;case 15867910:p=1;break;default:m.d("{c00be32}","{233ad08}",H(i))}return p}function Sn(i){let p=15868672;switch(i){case 256:p=15868704;break;case 257:p=15868705;break;case 258:p=15868706;break;case 259:p=15868707;break;case 260:p=15868708;break;case 261:p=15868709;break;case 262:p=15868710;break;case 263:p=15868711;break;case 264:p=15868712;break;case 265:p=15868713;break;case 266:p=15868714;break;case 267:p=15868715;break;case 268:p=15868716;break;case 269:p=15868719;break;case 270:p=15868688;break;case 512:p=15868736;break;case 513:p=15868737;break;case 514:p=15868738;break;case 515:p=15868739;break;case 516:p=15868740;break;case 517:p=15868741;break;case 518:p=15868742;break;case 519:p=15868743;break;case 520:p=15868744;break;case 521:p=15868745;break;case 33025:p=3237094145;break;case 33026:p=3237094146;break;case 33027:p=3237094147;break;case 33028:p=3237094148;break;case 33029:p=3237094149;break;case 33030:p=3237094150;break;case 33031:p=3237094151;break;case 33032:p=3237094152;break;case 33034:p=3237094153;break;case 33035:p=3237094154;break;case 33040:p=3237094155;break;case 33041:p=3237094156;break;case 33042:p=3237094157;break;case 37634:p=15868718;break;case 32768:p=3237094158;break;case 768:p=15868717;break;case 0:p=15868752;break;default:m.d("{c00be32}","{1be40ed}",H(i))}return p}function oi(){return Ee||(Ee=new Ei),Ee}function Ji(i){"white"===i.h?i.g&&(i.g.clearColor(1,0,0,1),i.g.clear(i.g.COLOR_BUFFER_BIT),i.h="red"):i.g&&(i.g.clearColor(1,1,1,1),i.g.clear(i.g.COLOR_BUFFER_BIT),i.h="white")}var Ee,wr,ys,fo,Ts,yr,Cr,tn,xt,Ht,ut,cn,si,vi,ur,gr,or,zn,pi,Kn,cr,ji,jr,No,Ur,go,Xr,Ks,Ca,Xs,ds,Xa,fs,Ho,Ea,Al,Ma,Vo,Ei=class{constructor(){this.g=null,this.h=""}initialize(i,p){this.u=p,p="ragnarok-latency-indicator";var w=document.getElementById(p);if(w&&w instanceof HTMLCanvasElement&&w.parentElement===i.parentElement)i=w;else{if(w)do{p="ragnarok-latency-indicator"+Math.round(1e4*Math.random()),w=document.getElementById(p)}while(w);(w=document.createElement("canvas")).id=p,w.style.position="fixed",te(this.u)?(w.style.bottom="env(safe-area-inset-bottom, 0)",w.style.right="max(24px, env(safe-area-inset-right, 0))"):(w.style.bottom="0",w.style.right="0"),w.style.width="40px",w.style.height="40px",w.style.zIndex="300",w.style.pointerEvents="none",i.insertAdjacentElement("afterend",w),i=w}this.j=i,this.j.style.display="block",this.g=this.j.getContext("webgl"),Ji(this)}},Pr={},Ra="",Ds={type:"UNKNOWN",version:""},ga=!1,Ns=!0,ba=!1,Os=!0,$i=!0,oa=!0,Ft=0,mt=0,nn=0,kt=!1,bn=!0,lr=!1,to=!0,ls=!1,xo=!1,Go=!1,Ui=!1,ns=!0,La=!1,Ps=!0,Or=!0,pl=!0,Na=!0,Ko=!0,is=0,pr=!0,Br=!0,xr={};function Ki(i){if(i&&(i=Number.parseInt(i),!Number.isNaN(i)))return i}function Uo(i){var p,w,V,ae,me,He,ct,Ut,Lt,qt,on,Dn,Yn,ki,Ln,ii,Zi,nr,fr,So,bo,wo,es,ha,hs,Us,za,nl,ul,Gr,il,Jl,ql,Wl,hc,Cd,ou,Ed,$d,ah,qh,Ru,Xp,bl,su,ig,Qp,rg,og,ep,Zp,lh,$o,ms;if(m.i("{fbd6ce8}","{4acfb3a}",JSON.stringify(i)),i.clientConfigOverride&&(Ra=i.clientConfigOverride),i.gxtOverrideData){var Md=JSON.parse(i.gxtOverrideData);if(Md.params)for(var wc of Md.params)"ragnarok"===wc.name&&(Pr=wc.value,Ds={type:"GXT",version:wc.version})}else i.remoteConfigData&&i.remoteConfigData.ragnarok&&(Pr=JSON.parse(i.remoteConfigData.ragnarok),Ds={type:"RCONFIG",version:null!==(Md=i.remoteConfigData.version)&&void 0!==Md?Md:""});if(i.isInternalUser&&(wr=i.isInternalUser),i.overrideData){wc=new URLSearchParams(i.overrideData);let Cl=new URLSearchParams;for(const[ms,sg]of wc.entries())Cl.append(ms.toLowerCase(),sg);if("lean"===(null===(p=Cl.get("mode"))||void 0===p?void 0:p.toLowerCase())?(ga=!0,ys=oa=$i=Os=Ns=!1,wr=fo=!0):"dev"===(null===(w=Cl.get("mode"))||void 0===w?void 0:w.toLowerCase())&&(wr=fo=!0),p=ms=>{e:{if(ms=Cl.get(ms))switch(ms.toLowerCase()){case"enable":case"on":case"1":case"true":ms=!0;break e;case"disable":case"off":case"0":case"false":ms=!1;break e}ms=void 0}return ms},Md=ms=>Ki(ms=Cl.get(ms)),w=ms=>((ms=Cl.get(ms))&&(ms=Number.parseFloat(ms),!Number.isNaN(ms))||(ms=void 0),ms),wc=(ms,sg)=>null===(ms=Cl.get(ms))?sg:ms||void 0,ba=(Ns=null!==(V=p("log"))&&void 0!==V?V:Ns)&&(null!==(ae=p("console"))&&void 0!==ae?ae:ba),Os=null!==(me=p("gamepad"))&&void 0!==me?me:Os,$i=null!==(He=p("webrtcstats"))&&void 0!==He?He:$i,oa=null!==(ct=p("statsupload"))&&void 0!==ct?ct:oa,ys=null!==(Ut=p("mic"))&&void 0!==Ut?Ut:ys,Ts=null!==(Lt=p("mousefilter"))&&void 0!==Lt?Lt:Ts,yr=null!==(qt=p("unadjustedmovement"))&&void 0!==qt?qt:yr,0<(Ft=null!==(on=Md("bitrate"))&&void 0!==on?on:Ft)&&100>=Ft&&(Ft*=1e3),Ui=null!==(Dn=p("gamepadtest"))&&void 0!==Dn?Dn:Ui,(V=Cl.get("resolution"))&&(2==(me=V.toLowerCase().split("x")).length?(ae=parseInt(me[0]),me=parseInt(me[1]),ae&&me?(mt=ae,nn=me):m.e("{fbd6ce8}","{c87835d}",V)):m.e("{fbd6ce8}","{c87835d}",V)),is=null!==(Yn=Md("fps"))&&void 0!==Yn?Yn:is,kt=null!==(ki=p("gamepadraf"))&&void 0!==ki?ki:kt,Cr=null!==(Ln=Md("gamepadpoll"))&&void 0!==Ln?Ln:Cr,bn=null!==(ii=p("advancedgestures"))&&void 0!==ii?ii:bn,lr=null!==(Zi=p("forcetouchdevice"))&&void 0!==Zi?Zi:lr,void 0!==(Yn=p("touch"))&&(tn=Yn?2:0,lr=Yn),ls=null!==(nr=p("storetouch"))&&void 0!==nr?nr:ls,xo=null!==(fr=p("storetouchgesture"))&&void 0!==fr?fr:xo,to=null!==(So=p("touchwarp"))&&void 0!==So?So:to,Go=null!==(bo=p("latency"))&&void 0!==bo?bo:Go,xt=wc("deviceos",xt),Ht=wc("devicetype",Ht),ut=wc("clientstreamer",ut),cn=wc("clienttype",cn),si=wc("clientplatformname",si),vi=wc("clientid",vi),null!==(nr=Cl.get("applaunchmode"))&&(tn=Ki(nr)),ns=null!==(wo=p("rsdmm"))&&void 0!==wo?wo:ns,La=null!==(es=p("rsdmmtoggle"))&&void 0!==es?es:La,null===(ha=p("ioswars"))||void 0===ha||ha||(Ko=Na=Ps=pl=Or=!1),Or=null!==(hs=p("audioreset"))&&void 0!==hs?hs:Or,Ps=null!==(Us=p("sourcereset"))&&void 0!==Us?Us:Ps,pl=null!==(za=p("autoplaychange"))&&void 0!==za?za:pl,ur=null!==(nl=w("bitsperpixel"))&&void 0!==nl?nl:ur,gr=null!==(ul=w("bitsperpixel1440p"))&&void 0!==ul?ul:gr,or=null!==(Gr=p("1440p"))&&void 0!==Gr?Gr:or,fo=null!==(il=p("stutter"))&&void 0!==il?il:fo,Cl.has("meta")){zn={};for(const ms of Cl.getAll("meta"))2===(wo=ms.split("~")).length&&(zn[wo[0]]=wo[1])}pi=null!==(Jl=p("haptics"))&&void 0!==Jl?Jl:pi,Kn=null!==(ql=p("av1"))&&void 0!==ql?ql:Kn,cr=null!==(Wl=ms=(ms=Cl.get(ms="codeclist"))?ms.split(","):void 0)&&void 0!==Wl?Wl:cr,wr=null!==(hc=p("internaluser"))&&void 0!==hc?hc:wr,ji=null!==(Cd=p("hdr"))&&void 0!==Cd?Cd:ji,pr=null!==(ou=p("hotkeys"))&&void 0!==ou?ou:pr,jr=null!==(Ed=p("forcehotkeys"))&&void 0!==Ed?Ed:jr,No=null!==($d=p("synthesizegamepadhid"))&&void 0!==$d?$d:No,Ur=null!==(ah=p("synthesizedds4disabled"))&&void 0!==ah?ah:Ur,go=null!==(qh=p("synthesizedds5disabled"))&&void 0!==qh?qh:go,Xr=null!==(Ru=p("synthesizedds4fromds5disabled"))&&void 0!==Ru?Ru:Xr,Ks=null!==(Xp=p("synthesizedds5fromds4disabled"))&&void 0!==Xp?Xp:Ks,Ca=null!==(bl=p("synthesizedds4fromgenericenabled"))&&void 0!==bl?bl:Ca,Xs=null!==(su=p("synthesizedds5fromgenericenabled"))&&void 0!==su?su:Xs,ds=null!==(ig=p("synthesizedds4allgamesenabled"))&&void 0!==ig?ig:ds,Xa=null!==(Qp=p("synthesizedds5allgamesenabled"))&&void 0!==Qp?Qp:Xa,fs=null!==(rg=p("forceserverds4"))&&void 0!==rg?rg:fs,Ho=null!==(og=p("forceserverds5"))&&void 0!==og?og:Ho,Ea=null!==(ep=Cl.get("cursor"))&&void 0!==ep?ep:Ea,Al=null!==(Zp=p("pointerlockescape"))&&void 0!==Zp?Zp:Al,Br=null!==(lh=p("computepressure"))&&void 0!==lh?lh:Br,Ma=null!==($o=p("disableworkerws"))&&void 0!==$o?$o:Ma}sn(i),Vo&&fl()}function fl(){var i=Pr.avp;i&&(Pr={...Pr,...i}),(i=Ar.Ga.pmCommunication)&&(i=i.avp)&&(Ar.Ga.pmCommunication={...Ar.Ga.pmCommunication,...i})}function gl(i,p){var w,V,ae,me;i.G.za(void 0,null!==(w=p?.message)&&void 0!==w?w:"",null!==(V=p?.filename)&&void 0!==V?V:"",null!==(ae=p?.lineno)&&void 0!==ae?ae:0,null!==(me=p?.colno)&&void 0!==me?me:0,!0,"WorkerError")}function Tl(i){i.perf.RAFTS=0,i.perf.DCSend=0,i.perf.GetStats=0,i.perf.FrameInfo=0}function Fl(){var i=ke;i.h=!1,i.g&&(m.d("{1f5ec29}","{76b05dd}"),i.g.postMessage({stopStats:!0}))}function na(i){return performance.now()-i.j}function Va(i,p){var V,w=ke;w.h&&(p={webrtcStats:{type:p,stats:i},ackid:null===(V=w.s)||void 0===V?void 0:V.g++},w.g&&w.g.postMessage(p,i))}var ke=new class{constructor(){this.h=!1,this.g=null,this.j=0,this.o=[],this.m=[],this.v=!1,this.perf={RAFTS:0,DCSend:0,GetStats:0,FrameInfo:0},m.i("{1f5ec29}","{139da36}");try{const i=URL.createObjectURL(new Blob(['\nvar p={size:70,version:1,name:"DEPR"},r={size:80,version:3,name:"RTPV"},t={size:48,version:1,name:"RTPA"},aa={size:88,version:1,name:"TRAA"},ba={size:44,version:1,name:"TRAV"},ca={size:12,version:1,name:"VFMD"},da={size:20,version:1,name:"PFDA"},ea={size:0,version:1,name:""};function u(a,b=!1){const d=a.m+1;try{let f;a.sessionId&&(f="x-nv-sessionid."+a.sessionId);let l=a.url;b&&(l+="&reconnect=1");let e=new WebSocket(l,f);e.onopen=()=>{var c;a.h("{48fa30b}"+d);if(e===a.g){null===(c=a.j)||void 0===c?void 0:c.F();for(const g of a.l)g.stats?e.send(g.stats):e.send(JSON.stringify(g));for(const g of a.s)w(a,g);a.s=[]}};e.onclose=c=>{var g;a.h("{6406bff}"+d);e===a.g&&(null===(g=a.j)||void 0===g?void 0:g.D({error:a.u,code:c.code,reason:c.reason,wasClean:c.wasClean}),x(a),a.u=\n!1)};e.onerror=()=>{a.h("{7605058}"+d);e===a.g&&(a.u=!0)};e.onmessage=c=>{if(a.j)try{let h=JSON.parse(c.data);a.o||a.h("{523f5b9}");y(a);if(!h.hb){if(void 0!==h.ack){var g=h.ack;for(let m=a.l.length-1;0<=m;m--)a.l[m].ackid<=g&&a.l.splice(m,1)}if(void 0!==h.ackid){if(a.maxReceivedAckId<h.ackid&&(a.j.v(h),a.maxReceivedAckId=h.ackid),a.g){let m=JSON.stringify({ack:a.maxReceivedAckId});a.h("{903be10}"+m);a.g.send(m)}}else void 0===h.ack&&a.j.v(h)}}catch(h){a.C("Error in local websocket message handling: "+\nh+\' "\'+c.data+\'"\')}};a.g=e}catch(f){a.g=void 0,a.C("WebSocket creation exception: "+f+" for socket "+a.m)}a.m=d}function z(a){0!==a.o&&(self.clearTimeout(a.o),a.o=0)}function x(a){a.g&&(a.g.onclose=null,a.g.onerror=null,a.g.onmessage=null,a.g.onopen=null,a.g=void 0)}function y(a){z(a);a.o=self.setTimeout(()=>{var b;a.h("{6c3505a}"+(null===(b=a.g)||void 0===b?void 0:b.readyState)+"{754f60b}"+a.m);a.g||u(a,!0);y(a)},3E3)}\nfunction w(a,b){void 0!==b.ackid&&void 0!==b.ackid&&a.l.push(b);a.g&&(b.stats?a.g.send(b.stats):a.g.send(JSON.stringify(b)))}\nvar fa=class{constructor(){var a=A,b=B;this.sessionId=C;this.u=!1;this.l=[];this.s=[];this.maxReceivedAckId=this.o=0;this.url="";this.m=0;this.h=a;this.C=b}initialize(a,b,d,f=!1){this.url=a;this.maxReceivedAckId=b;this.j=d;u(this,f);this.h("{fcf6f89}"+this.m)}uninitialize(a){var b;this.maxReceivedAckId=0;this.l=[];this.s=[];this.j=void 0;z(this);null===(b=this.g)||void 0===b?void 0:b.close(a);x(this);this.h("{986b258}"+a+"{754f60b}"+this.m)}send(a){this.j&&(this.g||u(this,!0),this.g&&this.g.readyState===\nWebSocket.OPEN?w(this,a):this.s.push(a))}};const E=self;let F=[],I=[];function J(a){a.h&&(a.j("{890d3ae}"+a.h),a.h=0);a.g.clear()}function ha(a){var b=K;let d=b.g.get(a.type);d||(d=[],b.g.set(a.type,d));for(const f of a.stats)d.push(f)}function ia(a){switch(a){case 0:return p;case 1:return r;case 2:return t;case 3:return ba;case 4:return aa;case 5:return ca;case 6:return da;default:return ea}}\nlet K=new class{constructor(a){this.j=a;this.g=new Map;this.h=0;J(this)}size(){let a=0;for(let [,b]of this.g){let d=b;for(let f of d)a+=f.byteLength}return a+=9*this.g.size}write(a,b){var d=b;for(let [g,h]of this.g){b=g;var f=h,l=d,e=d;d=f.length;var c=ia(b);let m=c.name,q=new DataView(a.buffer);for(let k=0;4>k;k++)q.setUint8(e+k,m.charCodeAt(k));q.setUint8(e+4,c.version);q.setUint16(e+5,d,!0);q.setUint16(e+7,c.size,!0);l=d=l+9;e=a;c=0;for(let k of f)f=new Uint8Array(k),e.set(f,d+c),c+=k.byteLength;\nd=l+c;1===b&&this.h++}return d}}(A),C="",L="",M=null,N=void 0,O=0,P=[],Q=[],R=[],S=[],T=[],U=0;function A(a){E.postMessage({log:a})}function B(a){E.postMessage({exception:a})}function V(){F=[];I=[];J(K);P=[];Q=[];R=[];S=[];T=[]}function W(a,b,d,f,l,e){for(let c=0;4>c;c++)a.setUint8(b+c,d.charCodeAt(c));a.setUint8(b+4,f);a.setUint16(b+5,l,!0);a.setUint16(b+7,e,!0)}function X(a){return 0>a?Math.max(a,-2147483648):Math.min(a,4294967295)}\nfunction Y(){if((F.length||I.length||K.size())&&M)try{M.ackid=U;var a=JSON.stringify(M),b=a.length,d=b+2,f=new ArrayBuffer(d);const D=new DataView(f);D.setUint16(0,b);for(b=2;b<d;++b)D.setUint8(b,a.charCodeAt(b-2));var l=new Uint8Array(f),e=13*F.length,c=72*I.length,g=12*P.length,h=10*Q.length,m=12*R.length,q=16*S.length;const G=8*T.length;let v=9+l.length;e&&(v+=9+e);c&&(v+=9+c);g&&(v+=9+g);h&&(v+=9+h);m&&(v+=9+m);q&&(v+=9+q);G&&(v+=9+G);v+=K.size();const H=new ArrayBuffer(v);var k=new DataView(H);\na=0;(new Uint8Array(H)).set(l);a+=l.length;W(k,a,"BPRF",1,0,0);a+=9;if(e){W(k,a,"PERF",2,F.length,13);a+=9;l=k;d=a;for(f=0;f<F.length;f++)l.setFloat64(d,F[f].RAFTS,!0),l.setUint16(d+8,Math.min(1E3*F[f].DCSend,65535),!0),l.setUint16(d+10,Math.min(1E3*F[f].GetStats,65535),!0),l.setUint8(d+12,F[f].FrameInfo),d+=13;a+=e}if(c){W(k,a,"EVNT",1,I.length,72);a+=9;e=k;l=a;for(d=0;d<I.length;d++){e.setFloat64(l,I[d].TS,!0);l+=8;var n=I[d].eventtype;for(f=0;f<n.length&&63>f;f++)e.setUint8(l+f,n.charCodeAt(f));\ne.setUint8(l+f,0);l+=64}a+=c}if(g){W(k,a,"SQEV",1,P.length,12);a+=9;c=k;n=a;for(e=0;e<P.length;e++)c.setUint8(n,P[e].qualityScore),c.setUint8(n+1,P[e].bandwidthScore),c.setUint8(n+2,P[e].latencyScore),c.setUint8(n+3,P[e].networkLossScore),c.setFloat64(n+4,P[e].timestamp,!0),n+=12;a+=g}if(h){W(k,a,"MTBD",1,Q.length,10);a+=9;g=k;c=a;for(n=0;n<Q.length;n++)g.setFloat64(c,Q[n].timestamp,!0),g.setUint16(c+8,Math.min(Q[n].duration,65535),!0),c+=10;a+=h}if(m){W(k,a,"INPT",1,R.length,12);a+=9;h=k;g=a;for(c=\n0;c<R.length;c++)h.setFloat64(g,R[c].timestamp,!0),h.setUint16(g+8,Math.min(R[c].bufferedAmount,65535),!0),h.setUint16(g+10,Math.min(R[c].maxSchedulingDelay,65535),!0),g+=12;a+=m}if(q){W(k,a,"GRBG",1,S.length,16);a+=9;m=k;h=a;for(g=0;g<S.length;g++)m.setFloat64(h,S[g].timestamp,!0),m.setInt32(h+8,X(S[g].deltaUsedHeapSize),!0),m.setInt32(h+12,X(S[g].deltaTotalHeapSize),!0),h+=16;a+=q}if(G){W(k,a,"MKPT",1,T.length,8);a+=9;q=k;k=a;for(m=0;m<T.length;m++)q.setFloat64(k,T[m],!0),k+=8;a+=G}let ja=new Uint8Array(H);\nK.write(ja,a);null===N||void 0===N?void 0:N.send({stats:H,ackid:U})}catch(D){B("Exception in perf/stats upload. Error : "+D.message+" stack: "+D.stack)}V()}function ka(a){E.postMessage({wsMessage:a})}function la(a){E.postMessage({wsClose:a})}function ma(){E.postMessage({wsOpen:!0})}function Z(){E.postMessage({wsOpening:!0})}function na(a,b){N=new fa;N.initialize(L,a,{v:ka,F:ma,D:la,G:Z},b);Z()}\nE.onmessage=function(a){try{const b=a.data;b.initMessage?(C=b.initMessage.sessionId,E.postMessage({initialized:!0})):b.perf?F.push(b.perf):b.clientEvent?I.push(b.clientEvent):b.startStats?(M=b.startStats.statsHeader,O=self.setInterval(()=>Y(),5E3),E.postMessage({statsStarted:!0}),A("{5209d98}")):b.stopStats?(self.clearInterval(O),Y(),V(),A("{b58b6ad}")):b.webrtcStats?(b.ackid&&(U=b.ackid),b.webrtcStats.stats&&ha(b.webrtcStats)):b.sq?P.push(b.sq):b.startWebSocket?(L=b.startWebSocket.signInURL,na(b.startWebSocket.maxReceivedAckId,\nb.startWebSocket.reconnect)):b.stopWebSocket?(null===N||void 0===N?void 0:N.uninitialize(),N=void 0):b.send?null===N||void 0===N?void 0:N.send(b.send):b.duration?Q.push(b.duration):b.inputChannelStats?R.push(b.inputChannelStats):b.garbageCollectionStats?S.push(b.garbageCollectionStats):b.qosMarker&&T.push(b.qosMarker)}catch(b){B("Worker onmessage exception: "+b)}};\n\n\n'],{type:"text/javascript"}));this.g=new Worker(i),URL.revokeObjectURL(i),this.g.onmessage=this.F.bind(this),this.g.onerror=this.C.bind(this),m.i("{1f5ec29}","{62dee75}")}catch(i){m.e("{1f5ec29}","{50fa2e5}",i.message),this.m.push({name:"RagnarokWorkerProblem",error:JSON.stringify(i)})}}startWebSocket(i,p,w,V){this.l=w,i={startWebSocket:{signInURL:i,maxReceivedAckId:p,reconnect:V}},this.g&&(this.g.postMessage(i),m.d("{1f5ec29}","{b3f6faa}"))}stopWebSocket(){this.g&&(m.d("{1f5ec29}","{7ac815d}"),this.g.postMessage({stopWebSocket:!0})),this.l=void 0}initialize(i,p,w){if(this.G=p,this.s=w,0<this.m.length){for(const V of this.m)Fa(p,V.name,V.error);this.m=[]}if(0<this.o.length){for(const V of this.o)gl(this,V);this.o=[]}this.h=!1,Tl(this),0===this.j&&(this.j=performance.now()),this.g?(this.g.postMessage({initMessage:{sessionId:i}}),m.d("{1f5ec29}","{404f264}")):m.e("{1f5ec29}","{c62bf29}")}F(i){(i=i.data).initialized?(m.i("{1f5ec29}","{6ccab8d}"),this.v=!0):i.statsStarted?(this.h=!0,m.d("{1f5ec29}","{e98d45f}")):i.log?m.i("{cbf9f59}","{0b0c6f9}",i.log):i.exception?m.i("{cbf9f59}","{0b0c6f9}",i.exception):i.wsClose?this.l?wp(this.l,i.wsClose):m.e("{1f5ec29}","{900a6f2}"):i.wsMessage?this.l?Ip(this.l,i.wsMessage):m.e("{1f5ec29}","{900a6f2}"):i.wsOpening?this.l?m.i("{93c7910}","{6423101}"):m.e("{1f5ec29}","{900a6f2}"):i.wsOpen&&(this.l?Rf(this.l):m.e("{1f5ec29}","{900a6f2}"))}C(i){this.G?gl(this,i):this.o.push(i)}};function _(){const i=ci();if(i){const p=i.destination.maxChannelCount;return i.close(),m.i("{d988e7f}","{fa78e0a}",p),p}return m.w("{d988e7f}","{d018fac}"),2}function D(i){return i[0]<i[1]?[i[1],i[0]]:i}function B(i,p,w){var V=screen.width,ae=screen.height,me=!!(1&w);const He=!!(2&w);var ct=!!(4&w);if((ct||8&w)&&(V=3840,ae=2160),p&&0<p.length){[V,ae]=D([V,ae]),He&&1366<=V&&0===i&&(V=1600,ae=1200);const Ut=V/ae,Lt=V*ae;return(V=p.filter(qt=>120>qt.frameRate)).length&&(p=V),p.sort((qt,on)=>{var Dn=qt.resolution,Yn=on.resolution,ki=Math.abs(Dn.width/Dn.height-Ut)-Math.abs(Yn.width/Yn.height-Ut);if(.05<Math.abs(ki))return ki;ki=0===i?-1:1;const Ln=(1===i?1:-1)*(qt.frameRate-on.frameRate),ii=(Dn=Dn.width*Dn.height)-(Yn=Yn.width*Yn.height);return Dn<=Lt?Yn<=Lt?qt.frameRate!==on.frameRate?Ln:ki*ii:-1:Yn<=Lt?1:ii||Ln}),p[0]}if(p={resolution:{width:1280,height:720},frameRate:60},me){let[Ut,Lt]=D([V,ae]);2<Ut/Lt&&(p.resolution={width:1376,height:640})}else He?0!=i?p.resolution={width:1024,height:768}:([V]=D([V,ae]),p.resolution=1024>=V?{width:1024,height:768}:1366>V?{width:1112,height:834}:{width:1600,height:1200}):(me=[[1920,1200],[1920,1080],[1280,1024],[1600,1200]],ct&&me.unshift([3840,2160]),ct=[[1280,800],[1280,720],[1280,1024],[1024,768]],V=function L(i,p){if(0==p.length)return i;class w{constructor(me,He){this.w=me,this.g=He,this.a=me/He}j(me){return.05>Math.abs(me.a-this.a)?me:me.a>this.a?new w(Math.floor(this.a/me.a*me.w),me.g):new w(me.w,Math.floor(me.a/this.a*me.g))}h(){return[this.w,this.g]}}p=p.map(ae=>new w(ae[0],ae[1]));const V=new w(i[0],i[1]);i=p[0];for(let ae=1;ae<p.length;ae++){let me=p[ae];Math.abs(V.a-me.a)<Math.abs(V.a-i.a)&&(i=me)}return(p=i.j(V)).w>i.w?i.h():p.h()}(V=[V,ae],0==i?me:ct),p.resolution={width:V[0],height:V[1]});return p}function re(i){var p;let w=0;return Z(i)&&(w|=1),(i?"iPadOS"===i.os:/^(?!.*chrome).*safari/i.test(navigator.userAgent)&&!Z()&&ot())&&(w|=2),!(null===(p=window.webapis)||void 0===p)&&p.productinfo&&window.webapis.productinfo.isUdPanelSupported()&&(w|=4),window.lge_webrtc_hevc_support&&(w|=8),w}function Se(){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 we(i,p){return 0>i?0:i>p?p:i}function tt(i){var p=Se();p.top=Math.max(p.top,21),p.bottom=we(p.bottom,10);let w={x:i.clientX,y:i.clientY},V=.5;return 0<p.top&&i.clientY-i.radiusY<p.top?V-=.5*(p=we(p=(p.top-(i.clientY-Math.min(i.radiusY,21)))/i.radiusY,1))*p:0<p.bottom&&i.clientY+i.radiusY>window.innerHeight-p.bottom&&(V+=.5*(p=we(p=(i.clientY+Math.min(i.radiusY,10)-(window.innerHeight-p.bottom))/i.radiusY,1))*p),w.y=we(w.y-i.radiusY+2*V*i.radiusY,window.innerHeight),w}function rt(i){let p=i;if(Pr.offlineErrorsStreaming&&Pr.offlineErrorsStreaming.includes(H(i)))p=15868418;else if(Pr.offlineErrorsSessionSetup&&Pr.offlineErrorsSessionSetup.includes(H(i)))p=15868417;else switch(i){case 3237093906:case 3237093899:p=15868418;break;case 3237089282:p=15868417}return p!==i&&m.i("{d988e7f}","{b84d4c8}",H(i),H(p)),p}function Ot(i,p){let w=i;if(Pr.sleepErrorsStreaming&&Pr.sleepErrorsStreaming.includes(H(i)))w=15867908;else if(Pr.sleepErrorsSessionSetup&&Pr.sleepErrorsSessionSetup.includes(H(i)))w=15867909;else switch(i){case 3237093906:te(p)&&(w=15867908);break;case 3237094159:w=15867908;break;case 3237093654:w=15867909}return w!==i&&m.i("{d988e7f}","{49e2182}",H(i),H(w)),w}function At(i,p,w,V,ae=1){const me=4294967295&Math.floor(i*ae);i=Math.floor(i/4294967296*ae),V?(p.setUint32(w,me,!0),p.setUint32(w+4,i,!0)):(p.setUint32(w,i,!1),p.setUint32(w+4,me,!1))}function Ke(i,p){let w=!1;switch(i){case 3237093896:case 3237093897:case 3237093898:case 3237093906:case 3237093899:case 3237093901:case 15868418:case 3237094159:w=!0;break;case 15867908:te(p)&&(w=!0)}return w}function Ye(i,p){return 2764800<=(i*=p)&&4953600>i}function vt(i){switch(i){case"H264":return"H264";case"H265":return"HEVC";case"AV1":return"AV1";default:return"UNKNOWN"}}function Be(i){var p;return i=ue(i)||Me(i)||be(i)||"Linux"===i.os||te(i),null!==(p=Pr.enableCpm)&&void 0!==p?p:i}function _t(i){return void 0!==i?i?"TRUE":"FALSE":"UNDEFINED"}function pt(i){return i?"MANUAL":"NONE"}let hn=[];function mn(i){return`${i.width.toFixed()}x${i.height.toFixed()}`}function yn(i,p,w){try{const V=document.createElement("a");V.style.display="none";const ae=URL.createObjectURL(new Blob(i,{type:w}));return V.href=ae,V.download=p,document.body.appendChild(V),V.click(),URL.revokeObjectURL(ae),document.body.removeChild(V),!0}catch(V){return m.e("{d988e7f}","{8d57ba9}",V),!1}}function ci(i){const p=window.AudioContext||window.webkitAudioContext||void 0;if(p)return i?new p({sampleRate:i}):new p;m.w("{d988e7f}","{b74c037}")}function Bt(){var i;return!(null===(i=globalThis.PointerEvent)||void 0===i||!i.prototype)}function Rt(i,p,w){return fn.apply(this,arguments)}function fn(){return(fn=r(function*(i,p,w){var V;const ae=new RTCPeerConnection;try{yield ae.setRemoteDescription({type:"offer",sdp:p}).catch(Ut=>{throw Error("Audio munging setRemoteDescription failed. "+Ut)});const me=yield ae.createAnswer();yield ae.setLocalDescription({type:"answer",sdp:null===(V=me.sdp)||void 0===V?void 0:V.replace("opus/48000/2","multiopus/48000/"+i).replace("useinbandfec=1",w)}).catch(Ut=>{throw Error("Audio munging setLocalDescription failed. "+Ut)});const He=ae.getReceivers()[0];if(!He.getParameters)return m.w("{d988e7f}","{4be0bf6}"),2;const{codecs:ct}=He.getParameters();if(1!==ct.length||"audio/multiopus"!==ct[0].mimeType||ct[0].channels!==i)throw Error("Audio munging failed "+ct[0]);return m.i("{d988e7f}","{8919816}",i,ct[0]),i}catch(me){return m.e("{d988e7f}","{4984c00}",i,me),2}finally{ae.close()}})).apply(this,arguments)}function Nn(){return(Nn=r(function*(){let i=2;var p="minptime=10;useinbandfec=1;channel_mapping=0,4,1,2,3,5;num_streams=4;coupled_streams=2";const w=Rt(6,"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\na=rtpmap:100 multiopus/48000/6\r\na=fmtp:100 "+p+"\r\na=rtpmap:101 opus/48000/2\na=fmtp:101 minptime=10;useinbandfec=1\n",p);p=Rt(8,"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\na=rtpmap:100 multiopus/48000/8\r\na=fmtp:100 "+(p="minptime=10;useinbandfec=1;channel_mapping=0,6,1,2,3,4,5,7;num_streams=5;coupled_streams=3")+"\r\na=rtpmap:101 opus/48000/2\na=fmtp:101 minptime=10;useinbandfec=1\n",p),yield Promise.all([w,p]).then(V=>{i=Math.max(Number(V[0]),Number(V[1]))}),m.i("{d988e7f}","{dc7ee29}",i)})).apply(this,arguments)}function Rn(i){var p;return(null!==(p=Pr.usePerfNowCaptureTimestamp)&&void 0!==p?p:!window.chrome)?na(ke):i-ke.j}function Hn(i,p=!1){return p=p?tt(i):{x:i.clientX,y:i.clientY},{identifier:i.identifier,clientX:p.x,clientY:p.y,deltaX:0,deltaY:0}}function Xn(i,p,w){let V=!1;const ae=p.changedTouches,me=Rn(p.timeStamp);for(let He=0;He<ae.length;He++){const ct=ae[He],Ut=i.h.findIndex(Lt=>Lt.identifier==ct.identifier);-1!=Ut&&(V=!0,Ji(oi()),i.h.splice(Ut,1),0===i.h.length?(0!==i.l?(window.clearTimeout(i.l),i.l=0,w&&np(i.j,i.target,me,Hn(ct,!0),i.m)):(2===i.g||4===i.g)&&bn&&ja(i.j,me),i.m=0,i.g=0):5===i.g?i.g=0:6===i.g&&(bn&&tp(i.j),i.g=0))}Fc(i.j)&&V&&p.preventDefault()}var ai=class{constructor(i,p,w,V){this.target=i,this.videoAddEventListener=p,this.videoRemoveEventListener=w,this.j=V,this.h=[],this.g=this.m=this.l=0,this.C=ae=>{let me=!1;const He=ae.changedTouches,ct=Rn(ae.timeStamp);for(let Ut=0;Ut<He.length;Ut++){const Lt=He[Ut];Lt.target===this.target&&(me=!0,Ji(oi()),0===this.h.length?(this.g=1,this.l=window.setTimeout(()=>{this.l=0,1===this.m&&(this.g=2,bn&&hu(this.j,this.target,ct,Hn(Lt)))},500)):1!==this.g&&(2===this.g||4===this.g?bn&&ja(this.j,ct):6===this.g&&bn&&tp(this.j),this.g=0),this.h.push(Hn(Lt)),this.h.length>this.m&&(this.m=this.h.length))}Fc(this.j)&&me&&ae.preventDefault()},this.v=ae=>{let me=!1;for(var He of this.h)He.deltaX=0,He.deltaY=0;He=ae.changedTouches;const ct=Rn(ae.timeStamp);let Ut=[];for(let on=0;on<He.length;on++){const Dn=He[on],Yn=this.h.findIndex(ki=>ki.identifier==Dn.identifier);if(-1!=Yn){me=!0;var Lt=this.h[Yn],qt=Dn.clientX-Lt.clientX;Lt=Dn.clientY-Lt.clientY;let ki=!1;0!==this.l?(10<Math.abs(qt)||10<Math.abs(Lt))&&(window.clearTimeout(this.l),this.l=0,ki=!0):ki=!0,ki&&(qt={identifier:Dn.identifier,clientX:Dn.clientX,clientY:Dn.clientY,deltaX:qt,deltaY:Lt},Ut.push(Yn),this.h[Yn]=qt)}}0<Ut.length&&0===this.l&&0!==this.g&&(1===this.h.length?(1===this.g?this.g=3:2===this.g&&(this.g=4),bn&&function vh(i,p,w,V){1!==i.I.ma||i.kb||void 0!==i.s?Uc(i,i.I.offsetX+V.deltaX,i.I.offsetY+V.deltaY,i.I.ma):Sc(i,p,V,w)}(this.j,this.target,ct,this.h[0])):2===this.h.length?5===this.g?bn&&this.j.scroll(this.target,ct,this.h):6===this.g?bn&&_h(this.j,this.h):1===this.g&&(0<this.h[0].deltaY*this.h[1].deltaY&&(Math.sign(this.h[0].deltaX)===Math.sign(this.h[1].deltaX)||10>Math.abs(this.h[0].deltaX)&&10>Math.abs(this.h[1].deltaX))?(this.g=5,bn&&this.j.scroll(this.target,ct,this.h)):(this.g=6,bn&&_h(this.j,this.h))):this.g=0),Fc(this.j)&&me&&ae.preventDefault()},this.o=ae=>{Xn(this,ae,!1)},this.s=ae=>{Xn(this,ae,!0)}}start(){const i={passive:!bn};this.videoAddEventListener("touchstart",this.C,i),this.videoAddEventListener("touchmove",this.v,i),this.videoAddEventListener("touchcancel",this.o,i),this.videoAddEventListener("touchend",this.s,i)}stop(){if(this.videoRemoveEventListener("touchstart",this.C),this.videoRemoveEventListener("touchmove",this.v),this.videoRemoveEventListener("touchcancel",this.o),this.videoRemoveEventListener("touchend",this.s),this.h=[],0!==this.l&&(window.clearTimeout(this.l),this.l=0),this.m=0,bn)switch(this.g){case 6:tp(this.j);break;case 2:case 4:ja(this.j,performance.now())}this.g=0}};function Ni(i,p){i.clientX=p.pageX-i.j.ob,i.clientY=p.pageY-i.j.vertical,i.radiusX=p.radiusX,i.radiusY=p.radiusY}function Zr(i){const p=tt(i);i.h=.01<Math.abs(p.y-i.clientY),i.clientX=p.x,i.clientY=p.y}class en{constructor(p,w,V){this.radiusY=this.radiusX=this.clientY=this.clientX=0,this.h=!1,this.identifier=p.identifier,this.g=w,this.j=V,Ni(this,p),to?Zr(this):this.h=!1}update(p){Ni(this,p),this.h&&Zr(this)}}class Ir{constructor(p,w,V,ae,me){this.h=w,this.id=p.identifier,this.v=V,this.l=p.pageX,this.m=p.pageY,this.o=p.radiusX,this.s=p.radiusY,this.g=ae,this.j=me}}function Do(i,p,w,V){var ae,me=0;for(let ki of p){if(40<me)return void m.e("{ec05004}","{2faaf33}",p.length-me);var He=null===(ae=i.g.get(ki.identifier))||void 0===ae?void 0:ae.g;if(void 0===He)m.e("{ec05004}","{960ee4f}",ki.identifier);else{var ct=i.m*ki.clientX,Ut=i.o*ki.clientY,Lt=i.m*ki.radiusX,qt=i.o*ki.radiusY,on=65535+Lt,Dn=-qt;if(qt=65535+qt,ct<-Lt||ct>on||Ut<Dn||Ut>qt)switch(w){case 2:case 8:break;default:continue}ct=Math.min(Math.max(ct,0),65535),Ut=Math.min(Math.max(Ut,0),65535);e:{Lt=i.P,on=w,Dn=ki.radiusX,qt=ki.radiusY;var Yn=V;if(40<=me){He=!1;break e}const Ln=18+16*me;Lt.gb.setUint8(Ln,He),Lt.gb.setUint8(Ln+1,on),Lt.gb.setUint16(Ln+2,ct,!1),Lt.gb.setUint16(Ln+4,Ut,!1),Lt.gb.setUint8(Ln+6,Dn),Lt.gb.setUint8(Ln+7,qt),At(Yn,Lt.gb,Ln+8,!1,1e3),He=!0}if(!He){i.l+=p.length-me;break}me++}}0!=me&&(me>p.length?m.w("{ec05004}","{4e60a66}",me,p.length):((i=i.P).gb.setUint16(14,me=8+16*(p=me),!1),i.gb.setUint16(16,p,!1),p=10,3<=i.La&&(me++,p--),me=new DataView(i.gb.buffer,p,me),$r(i),$r(i,me)||m.e("{ec05004}","{56a8404}")))}function mr(i,p,w){var V=performance.now(),ae=Rn(p.timeStamp);let me=!1,He=[];const ct=p.changedTouches;let Ut=[];for(let Lt=0;Lt<ct.length;Lt++){const qt=ct[Lt];if(qt.target===i.target){let on=i.g.get(qt.identifier);He.push(qt.identifier),on&&(me=!0,Ji(oi()),on.update(qt),Ut.push(on),ls&&i.h.push(new Ir(qt,on.g,w,V,p.timeStamp)))}}Do(i,Ut,w,ae);for(const Lt of He)(ae=(w=i).g.get(V=Lt))&&(w.g.delete(V),w.s.delete(ae.g));ls&&(i.N=0==i.g.size),Fc(i.j)&&me&&p.preventDefault()}var Yr=class{constructor(i,p,w,V,ae){this.target=i,this.videoAddEventListener=p,this.videoRemoveEventListener=w,this.P=V,this.j=ae,this.o=this.m=0,this.F={ob:1,vertical:1},this.g=new Map,this.s=new Set,this.l=0,this.h=[],this.v=0,this.N=!0,this.M=me=>{const He=performance.now(),ct=Rn(me.timeStamp);let Ut=!1;this.j.ic(!1);const Lt=me.changedTouches;let qt=[];for(let Dn=0;Dn<Lt.length;Dn++){const Yn=Lt[Dn];if(Yn.target===this.target){Ut=!0,Ji(oi());var on=Yn;let ki=0;for(;this.s.has(ki);)ki++;let Ln=new en(on,ki,this.F);this.g.set(on.identifier,Ln),this.s.add(ki),qt.push(on=Ln),ls&&this.h.push(new Ir(Yn,on.g,1,He,me.timeStamp))}}Do(this,qt,1,ct),ls&&xo&&8==this.g.size&&this.N&&(this.C(),this.O()),Fc(this.j)&&Ut&&me.preventDefault()},this.L=me=>{const He=performance.now(),ct=Rn(me.timeStamp);let Ut=!1;const Lt=me.changedTouches;let qt=[];for(let on=0;on<Lt.length;on++){const Dn=Lt[on];if(Dn.target===this.target){let Yn=this.g.get(Dn.identifier);Yn&&(Ut=!0,Yn.update(Dn),qt.push(Yn),ls&&this.h.push(new Ir(Dn,Yn.g,4,He,me.timeStamp)))}}Do(this,qt,4,ct),Fc(this.j)&&Ut&&me.preventDefault()},this.H=me=>{mr(this,me,8)},this.J=me=>{mr(this,me,2)},this.C=this.S.bind(this),this.O=this.R.bind(this)}S(){const i=this.h.length;if(i){var p=this.h[i-1].g-3e4,w=-1;for(let V=0;V<i&&this.h[V].g<p;V++)w=V;this.h.splice(0,w+1)}}R(){for(let i of this.h)m.d("{ec05004}","{3c6a946}",i.j.toFixed(2),i.g.toFixed(2),i.id,i.h,i.v,i.l.toFixed(2),i.m.toFixed(2),i.o.toFixed(0),i.s.toFixed(0));this.h=[]}start(){this.l=0;const i={passive:!1};this.videoAddEventListener("touchstart",this.M,i),this.videoAddEventListener("touchmove",this.L,i),this.videoAddEventListener("touchcancel",this.H,i),this.videoAddEventListener("touchend",this.J,i),ls&&(m.d("{ec05004}","{72764d2}",performance.now()),this.h=[],this.v=window.setInterval(this.C,6e4)),this.j.ic(!1)}stop(){ls&&(this.v&&clearTimeout(this.v),this.C(),this.O()),this.g.size&&(Do(this,Array.from(this.g.values()),8,performance.now()),this.g.clear(),this.s.clear()),this.l&&m.w("{ec05004}","{10858ae}",this.l);const i={passive:!1};this.videoRemoveEventListener("touchstart",this.M,i),this.videoRemoveEventListener("touchmove",this.L,i),this.videoRemoveEventListener("touchcancel",this.H,i),this.videoRemoveEventListener("touchend",this.J,i)}},jo=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]]),ia=new Map([["HanjaMode",25],["HangulMode",21]]),aa=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}]]);class gs extends DataView{constructor(p,w,V,ae){super(p,w,V),this.shift=0,this.setUint8=(me,He)=>super.setUint8(me+this.shift,He),this.setUint16=(me,He,ct)=>super.setUint16(me+this.shift,He,ct),this.setUint32=(me,He,ct)=>super.setUint32(me+this.shift,He,ct),this.setInt8=(me,He)=>super.setInt8(me+this.shift,He),this.setInt16=(me,He,ct)=>super.setInt16(me+this.shift,He,ct),this.setInt32=(me,He,ct)=>super.setInt32(me+this.shift,He,ct),this.setFloat32=(me,He,ct)=>super.setFloat32(me+this.shift,He,ct),this.setFloat64=(me,He,ct)=>super.setFloat64(me+this.shift,He,ct),this.shift=ae??0}}function $r(i,p,w=!0,V="input_channel_v1"){if("gamepad_channel_v1"!=V&&0<i.ia.h&&(p=i.Ff(p)),void 0===p)return!1;const ae=window.performance.now();var me=i.Ba;if(me.aa?(ip(me),me=!1):me=!0,!me)return!1;if("gamepad_channel_v1"===(me=!1,2<i.La&&w&&(9>p.byteOffset?m.w("{57a6a4d}","{0fc6121}"):((p=new DataView(p.buffer,p.byteOffset-9,9+p.byteLength)).setUint8(0,35),At(na(ke),p,1,!1,1e3))),w=-1,V)&&void 0!==i.Xc&&(w=i.Xc,i.Xc=(i.Xc+1)%65536),0<=w){if(3>p.byteOffset)return m.e("{57a6a4d}","{e9ac06c}"),!1;(p=new DataView(p.buffer,p.byteOffset-3,3+p.byteLength)).setUint8(0,37),p.setUint16(1,w)}try{let He=performance.now();switch(V){case"gamepad_channel_v1":i.Aa.send(p);break;case"input_channel_v1":i.Ja.send(p);break;default:throw Error(`Invalid input channel ${V}`)}Au(i.D,performance.now()-He);const ct=window.performance.now();i.V.jd+=1,5<(p=ct-ae)&&(i.V.ld+=1),10<p&&(i.V.kd+=1),me=!0}catch(He){He.stack&&!He.stack.includes("Could not send data")&&(m.e("{57a6a4d}","{7a6bf7c}",He),Eo(i)&&i.G.za(He,"sendinput exception","{57a6a4d}.ts",0,0,!0))}return me}function ma(i,p,w){const V=i.fb(22);V.setUint32(0,10,!0),V.setUint16(4,0,!1),V.setUint16(6,-p,!1),V.setUint16(8,0,!1),V.setUint32(10,0),At(w,V,14,!1,1e3);try{$r(i,V)}catch(ae){m.e("{57a6a4d}","{3d81a57}",ae),i.G.za(ae,"send mousewheel exception","{57a6a4d}.ts",0,0,!0)}}function oo(i,p,w,V,ae,me,He=0){let ct=i.I.eb;i=i.I.Wa;let Ut=7;V&&(Ut=5);let Lt=0;return 5==Ut&&(Lt=4),p.setUint32(w,Ut,!0),p.setUint16(w+4,ae,!1),p.setUint16(w+6,me,!1),p.setUint16(w+8,0,!1),p.setUint32(w+10+Lt,0,!1),At(He,p,w+14+Lt,!1,1e3),Lt&&(p.setUint16(w+10,ct,!1),p.setUint16(w+12,i,!1)),w+(V?26:22)}function Eo(i){return"open"===i.Ja.readyState&&(!i.Aa||"open"===i.Aa.readyState)}function Es(i,p,w,V=0){const ae=i.fb(26);oo(i,ae,0,!0,p,w,V);try{Eo(i)&&$r(i,ae)}catch(me){m.e("{57a6a4d}","{dba1265}",me),i.G.za(me,"send CursorPos exception","{57a6a4d}.ts",0,0,!0)}}function no(i,p,w,V,ae=0){if(4!==p&&3!==p)m.e("{57a6a4d}","{66e269d}",p);else{var me=i.fb(18);me.setUint32(0,p,!0),me.setUint16(4,w,!1),me.setUint16(6,V,!1),me.setUint16(8,0,!1),At(ae,me,10,!1,1e3),$r(i,me)}}function Yo(i,p,w,V,ae,me,He=0,ct=0){i.setUint32(p,12,!0),i.setUint16(p+4,26,!0),i.setUint16(p+6,w,!0),i.setUint16(p+8,ct,!0),i.setUint16(p+10,20,!0),i.setUint16(p+12,V,!0),i.setUint16(p+14,ae,!0),i.setInt16(p+16,Math.round(32767.5*(me[0]+1))-32768,!0),i.setInt16(p+18,Math.round(32767.5*(1-me[1]))-32768,!0),i.setInt16(p+20,Math.round(32767.5*(me[2]+1))-32768,!0),i.setInt16(p+22,Math.round(32767.5*(1-me[3]))-32768,!0),i.setUint16(p+24,0,!0),i.setUint16(p+26,85,!0),i.setUint16(p+28,0,!0),At(He,i,p+30,!0,1e3)}function _a(i,p,w,V,ae,me=0,He=0){return Yo(i=i.fb(38),0,V,p,w,ae,me,He),i}function fc(i,p,w){return(i=i.fb(10)).setUint32(0,18,!0),i.setUint8(4,p),i.setUint8(5,w),i.setUint32(6,1),i}var gc=class{constructor(i,p,w,V,ae,me,He,ct){this.La=this.sd=0,this.buffer=new ArrayBuffer(1150),this.ig=new DataView(this.buffer),this.Kg=new ArrayBuffer(658),this.gb=new DataView(this.Kg),this.Eb=new DataView(new ArrayBuffer(176)),this.Jg=new ArrayBuffer(100),this.Jb=0,this.Ff=this.xg,this.fb=this.mg,this.Oc=[],this.Ba=i,this.ia=p,this.D=ae,this.I=V,this.Ja=me,this.Ja.onmessage=Ut=>{if(Ut=new DataView(Ut.data),0===this.La){let Lt=Ut.getUint16(0,!0);526==Lt?(this.Dd=this.pg.bind(this),this.La=Ut.getUint16(2,!0)):(this.Dd=this.Zc.bind(this),this.La=Lt),2==this.La?this.ia.m=!0:2<this.La&&(this.ia.m=!0,this.Ff=this.yg,this.fb=this.ng),m.i("{57a6a4d}","{68c4654}",this.La)}else this.Dd(Ut,0)},this.Aa=ct,this.G=He,this.V=w,this.Dd=this.Zc.bind(this),this.gb.setUint8(9,34),this.gb.setUint32(10,24,!0),this.Aa&&(this.Xc=1)}pg(i,p){var w=i.getUint16(p,!0);if(267===w)this.Zc(i,p+2);else switch(p=255&w){case 32:case 33:case 34:case 35:case 36:case 255:if(34===(w=p))switch(w=i.getUint32(1,!0)){case 267:this.Zc(i,5);break;case 17:if(6<=(p=i.getUint8(5))&&9>=p){w=p-6;var V=i.getUint8(8),ae=i.getUint8(9);if(5!==V||1&~ae)m.w("{57a6a4d}","{d8b7bec}",V,ae,p);else{p=i.getUint8(12)<<8;const me=i.getUint8(13)<<8;for(const He of this.Oc){V=p,ae=me;const ct=(i=He).U.get(w);void 0!==ct&&Vl(i,ct,V,ae)}}}else m.w("{57a6a4d}","{6135ec1}",p);break;default:m.w("{57a6a4d}","{25be6a3}",w)}else m.d("{57a6a4d}","{ba4ff6a}",w);break;default:m.w("{57a6a4d}","{aea35b8}",w)}}Zc(i,p){var w=i.getUint16(p,!0);if(1==w)if(6>(w=i.getUint16(p+2,!0)))m.e("{57a6a4d}","{1527181}",w);else{6<w&&m.w("{57a6a4d}","{78db114}",w),w=i.getUint16(p+4,!0);var V=i.getUint16(p+6,!0);i=i.getUint16(p+8,!0);for(const He of this.Oc){var ae=V,me=i;const ct=(p=He).Xb.get(w);void 0!==ct&&Vl(p,ct,ae,me)}}else m.w("{57a6a4d}","{c7cf6da}",w)}Ib(i,p){const w=this.fb(18);w.setUint32(0,8,!0),w.setUint8(4,i+1),w.setUint8(5,0),w.setUint32(6,0),At(p,w,10,!1,1e3);try{$r(this,w)}catch(V){m.e("{57a6a4d}","{b258856}",V),this.G.za(V,"send mousedown exception","{57a6a4d}.ts",0,0,!0)}}Ab(i,p){const w=this.fb(18);w.setUint32(0,9,!0),w.setUint8(4,i+1),w.setUint8(5,0),w.setUint32(6,0),At(p,w,10,!1,1e3);try{$r(this,w)}catch(V){m.e("{57a6a4d}","{c1ae1fc}",V),this.G.za(V,"send mouseup exception","{57a6a4d}.ts",0,0,!0)}}Td(){const i=this.fb(10);i.setUint32(0,2,!0);try{this.Ja.send(i),m.d("{57a6a4d}","{5693344}")}catch(p){m.e("{57a6a4d}","{ab52f04}",p),this.G.za(p,"heartbeat exception","{57a6a4d}.ts",0,0,!0)}}xg(i){0!==this.Jb&&(window.clearTimeout(this.Jb),this.Jb=0);var p=performance.now();this.sd=p;for(var w=1,V=0;V<this.ia.h;){w+=2;var ae=this.ia.g[V].jb;if(0<ae){w+=19;for(var me=0;me<ae;me++)w+=1+(this.ia.g[V+me].ib?26:22);V+=ae}else w+=this.ia.g[V].ib?26:22,V++}(w+=i?2+i.byteLength:0)>this.buffer.byteLength?(w=new DataView(new ArrayBuffer(w)),this.V.gd++):w=new DataView(this.buffer,0,w),w.setUint8(0,255);var He=1;for(V=0;V<this.ia.h;){if(ae=He,He+=2,0<(me=this.ia.g[V]).jb){var ct=w,Ut=V,Lt=p,qt=this.ia.g[Ut],on=He;He+=19;for(let Dn=0;Dn<qt.jb;++Dn){const Yn=this.ia.g[Ut+Dn];ct.setUint8(He,Yn.ib?26:22),He=oo(this,ct,++He,Yn.ib,Yn.x,Yn.y,Yn.captureTimestamp)}Ut=on,on=He-on,qt=qt.wc,ct.setUint8(Ut,32),ct.setUint16(Ut+1,on,!1),At(Lt,ct,Ut+3,!1,1e3),At(qt,ct,Ut+11,!1,1e3),V+=me.jb}else He=oo(this,w,He,me.ib,me.x,me.y,me.captureTimestamp),V++;w.setUint16(ae,He-ae-2)}if(this.ia.j=0,i)for(w.setUint16(He,i.byteLength),He+=2,p=0;p<i.byteLength;p++)w.setUint8(He+p,i.getUint8(p));return w}yg(i){var p;if(i&&i.buffer!=this.buffer)return $r(this),i;0!==this.Jb&&(window.clearTimeout(this.Jb),this.Jb=0),this.sd=performance.now();for(var w=0,V=-1,ae=0;ae<this.ia.h;ae++)0<this.ia.g[ae].jb?(w+=9,V=this.ia.g[ae].jb):0===V&&(w+=9),w+=3+(this.ia.g[ae].ib?26:22),V--;if(w+=null!==(p=i?.byteLength)&&void 0!==p?p:0,(p=9+w)>this.buffer.byteLength){if(p=new DataView(new ArrayBuffer(p),p-w,w),this.V.gd++,i)for(w=p.byteLength-i.byteLength,V=0;V<i.byteLength;V++)p.setUint8(w+V,i.getUint8(V))}else p=new DataView(this.buffer,this.buffer.byteLength-w,w);for(i=0,w=-1,V=0;V<this.ia.h;V++)0<(ae=this.ia.g[V]).jb?(w=ae.jb,p.setUint8(i,36),At(ae.wc,p,i+1,!1,1e3),i+=9):0===w&&(p.setUint8(i,36),At(0,p,i+1,!1,1e3),i+=9),p.setUint8(i,33),p.setUint16(i+1,ae.ib?26:22),i=oo(this,p,i+3,ae.ib,ae.x,ae.y,ae.captureTimestamp),w--;return this.ia.j=0,p}mg(i){return new gs(this.Jg,0,i)}ng(i){const p=this.buffer.byteLength-(i+=1);return i=new gs(this.buffer,p,i,1),this.ig.setUint8(p,34),i}sendTextInput(i){let p=0,w=new DataView(i,0,i.byteLength),V=new ArrayBuffer(1021);for(;p<i.byteLength;){let me;if(1016>=i.byteLength-p)me=i.byteLength-p;else{me=p+1016;var ae=!1;for(let He=0;4>He;He++){if(128!=(192&w.getUint8(me))){ae=!0;break}me--}if(!ae){m.e("{57a6a4d}","{938b0d3}");break}me-=p}(ae=new DataView(V,0,me+5)).setUint8(0,34),ae.setUint32(1,23,!0),new Uint8Array(V).set(new Uint8Array(i,p,me),5),p+=me,$r(this,ae,!1)}}stop(){0<this.Ja.bufferedAmount&&m.w("{57a6a4d}","{5e5b9e5}",this.Ja.bufferedAmount),this.Aa&&0<this.Aa.bufferedAmount&&m.w("{57a6a4d}","{1785a7c}",this.Aa.bufferedAmount)}get zg(){return this.La}get tg(){return this.sd}Db(i){$r(this,i=_a(this,0,0,0,[0,0,0,0],0,i))}Yc(i,p,w,V,ae,me,He=0,ct){2<this.La?(this.Eb.setUint8(i=(this.Aa?12:9)+41*i,33),this.Eb.setUint16(i+1,38),Yo(this.Eb,i+3,w,V,ae,me,He,ct)):2==this.La?(this.Eb.setUint16(i=1+40*i,38),Yo(this.Eb,i+2,w,V,ae,me,He,ct)):$r(this,w=_a(this,V,ae,w,me,He,ct))}Wb(i,p,w,V,ae=0){$r(this,i=_a(this,i,p,w,V,0,ae))}Wc(i){if(!(2>this.La||0>=i)){$r(this);var p=null;2<this.La?p=new DataView(this.Eb.buffer,this.Aa?12:9,41*i):2==this.La&&(this.Eb.setUint8(0,255),p=new DataView(this.Eb.buffer,0,1+40*i)),p&&(this.Aa?$r(this,p,!0,"gamepad_channel_v1"):$r(this,p,!0))}}Tc(){}Fg(i){const p=this.fb(6);p.setUint32(0,13,!0),p.setUint16(4,i?1:0,!1),$r(this,p)}gg(i){$r(this,fc(this,4>i?i+6:0,1))}Of(i){$r(this,fc(this,4>i?i+6:0,3))}Vc(i,p,w,V,ae){(i=this.fb(72)).setUint32(0,17,!0),i.setUint8(4,4>p?p+6:0),i.setUint8(5,4),i.setUint8(6,0),i.setUint8(7,1),i.setUint8(8,127.5*(ae[0]+1)),i.setUint8(9,127.5*(ae[1]+1)),i.setUint8(10,127.5*(ae[2]+1)),i.setUint8(11,127.5*(ae[3]+1)),p=0;var me=!!(2&w);const He=!!(8&w),ct=!!(1&w);(ae=!!(4&w))||me||He||ct?ct?p=He?1:ae?7:0:me?p=He?3:ae?5:4:He?p=2:ae&&(p=6):p=8,ae=(ae=(256&w?1:0)|(512&w?2:0)|(255&V?4:0)|(65280&V?8:0))|(32&w?16:0)|(16&w?32:0)|(64&w?64:0)|(128&w?128:0),me=(65536&w?1:0)|(131072&w?2:0),i.setUint8(12,p|(16384&w?16:0)|(4096&w?32:0)|(8192&w?64:0)|(32768&w?128:0)),i.setUint8(13,ae),i.setUint8(14,me),i.setUint8(15,255&V),i.setUint8(16,(65280&V)>>8),i.setUint16(17,0,!0),i.setUint8(19,0),i.setInt16(20,0,!0),i.setInt16(22,0,!0),i.setInt16(24,0,!0),i.setInt16(26,0,!0),i.setInt16(28,0,!0),i.setInt16(30,0,!0),i.setUint32(32,0,!0),i.setUint8(36,0),i.setUint8(37,11),i.setUint8(38,0),i.setUint8(39,0),i.setUint8(40,0),$r(this,i)}},Ul=class{constructor(){this.m=!1,this.j=0,this.l=Array(36);for(let i=0;i<this.g.length;i++)this.l[i]={ib:!1,x:0,y:0,captureTimestamp:0,jb:0,wc:0}}get g(){return this.l}get h(){return this.j}},xl=class{constructor(i){this.g=i}enable(){this.g.Nc=!0}disable(){this.g.Nc=!1}updateInput(i,p,w){this.g.Nc&&(Ji(oi()),this.g.Yd=i,this.g.Zd=p,this.g.Xd=w,this.g.$d=!0)}};class ol{constructor(p){this.buttons=p.Gb(p.ba),this.axes=p.Fb(p.ba),this.Kb=p.Hb(p.ba),this.timestamp=performance.now()}}const od={startDelay:0,duration:0,weakMagnitude:0,strongMagnitude:0};function ml(i){var p,w,ae,me,He,ct,V=null!==(w=null!==(p=Cr)&&void 0!==p?p:Pr.gamepadPollInterval)&&void 0!==w?w:4;i.qa=V,V=null===(me=null!==(ae=pi)&&void 0!==ae?ae:Pr.allowHaptics)||void 0===me||me,i.allowHaptics=V,ae=null!==(ct=null!==(He=No)&&void 0!==He?He:Pr.synthesizeGamepadHid)&&void 0!==ct&&ct,i.T=ae}function Te(i,p){var w,V;ml(i),p=p??0,ds&&(p|=1),Xa&&(p|=2),i.T&&p?(i.L=null!==(w=ds)&&void 0!==w?w:!!(1&p),i.W=null!==(V=Xa)&&void 0!==V?V:!!(2&p),ze(i,!0)):(i.L=!1,i.W=!1)}function ze(i,p=!1){var w=!1;if(i.g.Nc&&!i.g.pb)i.g.pb?w=!1:(m.i("{515a922}","{132d93a}",i.g.Lb),i.g.pb=!0,i.C={Bd:"Nvidia Virtual Gamepad",state:0,buttons:0,Kb:0,axes:[]},Mt(i,i.g.Lb,!1),w=!0);else if(!i.g.Nc&&i.g.pb)e:if(i.g.pb){m.i("{515a922}","{98ac7c2}",i.g.Lb),i.g.pb=!1,gn(i);var V=i.g.Lb;for(var ae of i.h)if(ae&&1==ae.Ca&&ae.ha===V){w=!1;break e}w=Di(i,V)}else w=!1;for(ae=navigator.getGamepads(),V=0;V<ae.length;V++){let ct=ae[V];if(ct)if(Ol(i,ct,V)){var me=i,He=ct;me.h[V].ba=He,me.hapticsSupported=me.hapticsSupported||Ga(He),Za(me),p&&((me=(w=i.h[V]).Ca)!==(He=Qa(i,ct))&&(1===me?(Di(i,w.ha),w.Ca=He,w.ha=ar(i,He),zl(i,w)):(Fo(i,w),w.Ca=He,w.ha=ar(i,He),Mt(i,V,Kd(ct)))),w=!0)}else Yc(i,V,!0),vl(i,ct,V)&&(w=!0);else Yc(i,V,!0)&&(w=!0)}if(w){i.Db();for(const ct of i.h)2==ct?.Ca&&zl(i,ct)}i.Z=!0}function Mt(i,p,w){i.j|=4>(p=i.g.pb&&p===i.g.Lb?i.g.Lb:i.h[p].ha)?1<<p:0,p=4>p?1<<p+8:0,i.j=w?i.j|p:i.j&~p}function pn(i){const p=i.buttons,w=i.Kb;return"A:"+(4096&p?"1":"0")+"_B:"+(8192&p?"1":"0")+"_X:"+(16384&p?"1":"0")+"_Y:"+(32768&p?"1":"0")+"_LB:"+(256&p?"1":"0")+"_LSB:"+(64&p?"1":"0")+"_RB:"+(512&p?"1":"0")+"_RSB:"+(128&p?"1":"0")+"_LT:"+(255&w?"1":"0")+"_RT:"+(65280&w?"1":"0")+"_DU:"+(1&p?"1":"0")+"_DD:"+(2&p?"1":"0")+"_DL:"+(4&p?"1":"0")+"_DR:"+(8&p?"1":"0")+"_ST:"+(16&p?"1":"0")+"_BA:"+(32&p?"1":"0")+"_LS:"+(2<=(i=i.axes).length&&(2===i[0]||2===i[1])?"1":"0")+"_RS:"+(4!==i.length||2!==i[2]&&2!==i[3]?"0":"1")}function gn(i){var p;i.C&&(null===(p=i.G)||void 0===p||ju(p,i.C.Bd,"0","0",0,!1,!0,i.C.state,pn(i.C)),i.C=void 0)}function Di(i,p){return!(p===i.g.Lb&&i.g.pb||(i.j&=~(4>p?1<<p:0),i.j&=~(4>p?1<<p+8:0),0))}function ar(i,p){let w=[];for(let V of i.h)V&&V.Ca==p&&(w[V.ha]=!0);for(i=0;w[i];)i++;return i}function Xi(i,p){-1<(p=i.l.indexOf(p))&&i.l.splice(p,1)}function mo(i,p){return!!("standard"==p.mapping||i.fa||i.ea||Nu(i,p)||$l(p)||ku(i,p))}function Jo(i,p){var w;for(let V of i.h){if(!V)continue;let ae=V.ba;mo(i,ae)&&(1===V.Ca?(p.Yc(0,ae.index,V.ha,0,0,[0,0,0,0],performance.now(),i.j,ae.id),p.Wc(1)):null===(w=p.Vc)||void 0===w||w.call(p,ae.index,V.ha,0,0,[0,0,0,0],performance.now(),i.j,ae.id))}}function ra(i,p){const w=i.F;p!=w&&(w?(i.m&&(i.m.stop(),i.m.reset(),Xi(i,i.m),i.F=!1),i.o&&i.l.push(i.o)):(i.o&&(Xi(i,i.o),Jo(i,i.o)),i.m&&(i.l.push(i.m),i.H&&i.m.start(),i.F=!0)))}function kr(i,p,w=!1){return i.Z||(p|=2),w&&(p|=1),p}function Dl(i,p,w){return{Bd:w,state:i.h[p.index]?i.h[p.index].Fa.state:kr(i,0),buttons:i.h[p.index]?i.h[p.index].Fa.buttons:0,Kb:i.h[p.index]?i.h[p.index].Fa.Kb:0,axes:i.h[p.index]?i.h[p.index].Fa.axes:[]}}function Qa(i,p){if(!i.T)return 1;if(i=i.Ka&&i.L&&i.Da&&!i.na){const w=Ca,V=Xs;if(!((p.id.includes("Vendor: 054c")||p.id.includes("Wireless Controller")&&p.id.includes("054c")||w||V)&&18<=p.buttons.length))return 1;const ae=p.id.includes("Product: 09cc")||p.id.includes("Product: 05c4")||p.id.includes("Product: 0ba0")||p.id.includes("Wireless Controller")&&p.id.includes("09cc");if(p=(p.id.includes("Product: 0ce6")||p.id.includes("Product: 0df2")||V)&&!Xr,i&&(ae||p||w))return 2}return 1}function zd(i,p){const w=Qa(i,p);return{ba:p,jc:!0,Ca:w,Gb:i.ca,Hb:i.da,Fb:i.aa,Fa:Dl(i,p,"Standard Gamepad"),ha:ar(i,w)}}function Nu(i,p){return!i.ua&&"standard"!=p.mapping&&p.id.includes("Vendor: 054c")&&p.id.includes("Product: 0ce6")}function $l(i){return"standard"!=i.mapping&&i.id.includes("Vendor: 045e")&&i.id.includes("Product: 0b13")}function ku(i,p){return i.S&&"standard"!=p.mapping&&p.id.includes("Vendor: 045e")&&p.id.includes("Product: 0b12")}function vl(i,p,w){if(mo(i,p)){var V=function sd(i,p){if(i.fa)return zd(i,p);if(i.ea){var w=Qa(i,p);return{ba:p,jc:!0,Ca:w,Gb:i.Za,Hb:i.da,Fb:i.Ua,Fa:Dl(i,p,"Standard Gamepad"),ha:ar(i,w)}}return i.va?null:"standard"!=p.mapping||!p.id.includes("Vendor: 0955")||i.xa||i.wa?p.id.includes("Vendor: 045e")&&(p.id.includes("Product: 0b13")||p.id.includes("Product: 0b20")||p.id.includes("Product: 0b05")||p.id.includes("Product: 02e0")||p.id.includes("Product: 02fd"))?{ba:p,jc:!0,Ca:w=Qa(i,p),Gb:i.ca,Hb:i.da,Fb:i.aa,Fa:Dl(i,p,"Standard Gamepad"),Gg:!0,ha:ar(i,w)}:"standard"==p.mapping?zd(i,p):Nu(i,p)?{ba:p,jc:!1,Ca:w=Qa(i,p),Gb:i.Ta.bind(i),Hb:i.$.bind(i,3,4),Fb:i.sa,Fa:Dl(i,p,"Dual Sense Gamepad"),ha:ar(i,w)}:$l(p)?{ba:p,jc:!1,Ca:w=Qa(i,p),Gb:i.ab.bind(i),Hb:i.$.bind(i,3,4),Fb:i.sa,Fa:Dl(i,p,"Xbox Series Gamepad"),ha:ar(i,w)}:ku(i,p)?{ba:p,jc:!1,Ca:w=Qa(i,p),Gb:i.Va.bind(i),Hb:i.$.bind(i,2,5),Fb:i.Sa,Fa:Dl(i,p,"Xbox Series Wired Gamepad"),ha:ar(i,w)}:(m.e("{515a922}","{be4bfd9}",p),null):{ba:p,jc:!0,Ca:w=Qa(i,p),Gb:i.ca,Hb:i.$a,Fb:i.aa,Fa:Dl(i,p,"Nvidia Shield Gamepad"),ha:ar(i,w)}}(i,p);if(V){i.hapticsSupported=i.hapticsSupported||Ga(V.ba),Za(i);const He=i.j;var ae=i.h[w],me=i.s;const ct=Kd(p);return i.h[w]=V,void 0===i.J[w]&&(i.J[w]=0),ae&&Ol(i,p,w)?i.h[w].ha=ae.ha:(0==i.s&&(i.gamepadPollInterval=i.qa,ad(i)),i.s++,2===V.Ca?(zl(i,V),i.U.set(V.ha,w)):(Mt(i,w,ct),i.Xb.set(V.ha,w))),ae=ae?"Changing":"Adding",(p=He!==i.j)?m.i("{515a922}","{96051ae}",ae,w,ct,V.ba.id):me!=i.s&&m.i("{515a922}","{98be0dd}",ae,w,V.ba.id),p}for(me of i.l)me.Tc(p);return Yc(i,w)}for(V of i.l)V.Tc(p);return Yc(i,w)}function Yc(i,p,w=!1,V){var ae,me;let He=i.h[p];if(He){m.i("{515a922}","{1b26b8a}",p,He.ba.id);const ct=He.Ca,Ut=i.M[p];if(Ut){const Lt=performance.now()-Ut.timestamp;3e3<=Lt&&Ut.axes.some(qt=>.5<Math.abs(qt))&&(m.w("{515a922}","{fde5612}",Lt,Ut.axes.join()),null===(ae=i.G)||void 0===ae||Fa(ae,"GamepadStuck",He.ba.id,Lt.toString(),Ut.axes.join()))}if(w){const[Lt,qt]=function Bl(i){let p=["-1","-1"];return(i=/Vendor:[ ]+([\w\d]+).+Product:[ ]+([\w\d]+)/.exec(i))&&3<=i.length&&(p=[i[1],i[2]]),p}(He.ba.id);null===(me=i.G)||void 0===me||ju(me,He.Fa.Bd,Lt,qt,He.ba.index,!!He.ba.g&&0<He.ba.g.length,V??function cu(i,p){let w=!1;for(const V of i.h)if(V){p===V.ba.index&&(w=!0);break}return w}(i,He.ba.index),He.Fa.state,pn(He.Fa))}if(delete i.h[p],delete i.J[p],delete i.M[p],i.hapticsSupported=function Lc(i){let p=!1;for(let w of i.h)w&&(p=p||Ga(w.ba));return p}(i),Za(i),i.s--,0==i.s&&(i.gamepadPollInterval=100,ad(i)),2!==ct)return i.Xb.delete(He.ha),Di(i,He.ha);Fo(i,He),i.U.delete(He.ha)}return!1}function ad(i){0!=i.N&&(clearInterval(i.N),i.N=0),i.N=i.H&&!kt?window.setInterval(i.Qa,i.gamepadPollInterval):0}function Kd(i){return i.id.includes("Xbox")||i.id.includes("xinput")}function Ga(i){var p;return"dual-rumble"==(null===(p=i.vibrationActuator)||void 0===p?void 0:p.type)}function Za(i){var p,w;i.O=i.H&&i.hapticsSupported;var ae,V=i.O;if(i.ta!=V&&(i.ta=V,i.allowHaptics))for(const me of i.l)null===(ae=me.Fg)||void 0===ae||ae.call(me,V);if(!i.O){V=navigator.getGamepads();for(let me of V)me&&(i.P[me.index]=0,i.R[me.index]=0,null===(w=null===(p=me.vibrationActuator)||void 0===p?void 0:p.playEffect)||void 0===w||w.call(p,"dual-rumble",od))}}function Ol(i,p,w){var V,ae;return null!=p.id&&p.id==(null===(ae=null===(V=i.h[w])||void 0===V?void 0:V.ba)||void 0===ae?void 0:ae.id)}function zl(i,p){var w;switch(p.Ca){case 3:m.e("{515a922}","{ea001a4}",p.ba.id);break;case 2:for(const V of i.l)null===(w=V.gg)||void 0===w||w.call(V,p.ha);break;default:m.e("{515a922}","{36eeed4}",p.ba.id)}}function Fo(i,p){var w;switch(p.Ca){case 3:m.e("{515a922}","{2b2d286}",p.ba.id);break;case 2:for(const V of i.l)null===(w=V.Of)||void 0===w||w.call(V,p.ha);break;default:m.e("{515a922}","{fafe5f9}",p.ba.id)}}function ld(i){switch(Number.parseFloat((i??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}}function Ad(i,p){return(0>p?1:0)|(0<p?2:0)|(0>i?4:0)|(0<i?8:0)}function la(i,p,w,V){i.buttons|=p,i.Kb|=w,0===i.axes.length?i.axes=[V[0],V[1],V[2],V[3]]:(i.axes[0]=2==i.axes[0]||i.axes[0]!==V[0]?2:i.axes[0],i.axes[1]=2==i.axes[1]||i.axes[1]!==V[1]?2:i.axes[1],i.axes[2]=2==i.axes[2]||i.axes[2]!==V[2]?2:i.axes[2],i.axes[3]=2==i.axes[3]||i.axes[3]!==V[3]?2:i.axes[3])}function mc(i,p){e:{for(let w=0;w<i.v.length;w++){const V=i.v[w];if(V.tc===p.tc&&V.Cc===p.Cc&&V.Dc===p.Dc&&V.vb===p.vb){p=w;break e}}p=-1}-1!==p&&i.v.splice(p,1)}function Nc(i){i.H=!0,ml(i),Za(i),Os&&(i.windowAddEventListener("gamepadconnected",i.oa),i.windowAddEventListener("gamepaddisconnected",i.pa),ad(i),i.F&&i.m.start(),ze(i,!0))}function Vl(i,p,w,V){if(i.O){var ae=i.h[p];if(ae){let Lt=ae.ba;if(Lt)if(0!=w||0!=V){var ct,Ut,me=performance.now(),He=me-i.ga[p];i.P[p]=w/65535,i.R[p]=V/65535,(!ae.Gg||500<He)&&(i.ga[p]=me,null===(Ut=null===(ct=Lt.vibrationActuator)||void 0===ct?void 0:ct.playEffect)||void 0===Ut||Ut.call(ct,"dual-rumble",{startDelay:0,duration:1e3,weakMagnitude:i.R[p],strongMagnitude:i.P[p]}))}else i.ga[p]=performance.now(),i.P[p]=0,i.R[p]=0,null===(He=null===(me=Lt.vibrationActuator)||void 0===me?void 0:me.playEffect)||void 0===He||He.call(me,"dual-rumble",od)}}}function _l(i){return ml(i),ze(i),i.j}var Aa=class{constructor(i,p){this.N=this.s=this.j=0,this.gamepadPollInterval=100,this.qa=4,this.P=[],this.R=[],this.ga=[],this.ta=this.O=this.hapticsSupported=!1,this.allowHaptics=!0,this.F=this.H=!1,this.ja=0,this.Z=this.ua=this.wa=this.xa=this.S=this.fa=this.ea=this.va=this.ka=!1,this.maxSchedulingDelay=0,this.v=[],this.W=this.L=this.T=!1,this.Da=!0,this.na=this.bb=!1,this.Xb=new Map,this.U=new Map,this.windowAddEventListener=p&&p.windowAddEventListener?p.windowAddEventListener.bind(window):window.addEventListener.bind(window),this.windowRemoveEventListener=p&&p.windowRemoveEventListener?p.windowRemoveEventListener.bind(window):window.removeEventListener.bind(window),this.oa=this.Na.bind(this),this.pa=this.Oa.bind(this),this.Qa=this.ra.bind(this),this.h=[],this.M=[],this.J=[],this.l=[],this.u=i;const w=i.osVer;this.ea=(i=("iOS"==(p=i.os)||"iPadOS"==p)&&"Safari"==i.browser)&&w.startsWith("13"),this.fa=i&&w.startsWith("14"),this.va=i&&"12-"==w,this.S="ChromeOS"==p,this.xa="WebOS"==p,this.wa="Tizen"==p,this.ua="Android"==p,this.g={Lb:0,Nc:!1,pb:!1,Yd:0,Zd:0,Xd:[],$d:!1},this.cb=new xl(this.g),ml(this),this.Ka=!Ur,Te(this),m.d("{515a922}","{b0c674b}")}ad(){return this.F}Db(){for(const i of this.l)i.Db(this.j)}Na(i){vl(this,i.gamepad,i.gamepad.index)&&this.Db()}Oa(i){Yc(this,i.gamepad.index,!0)&&this.Db()}ca(i){return((i=i.buttons)[0].value?4096:0)|(i[1].value?8192:0)|(i[2].value?16384:0)|(i[3].value?32768:0)|(i[4].value?256:0)|(i[5].value?512:0)|(i[8]&&i[8].value?32:0)|(i[9]&&i[9].value?16:0)|(i[10]&&i[10].value?64:0)|(i[11]&&i[11].value?128:0)|(i[12]&&i[12].value?1:0)|(i[13]&&i[13].value?2:0)|(i[14]&&i[14].value?4:0)|(i[15]&&i[15].value?8:0)|(i[16]&&i[16].value?65536:0)|(i[17]&&i[17].value?131072:0)}da(i){var p,w;i=i.buttons;let V=Math.round(255*(null===(p=i[6])||void 0===p?NaN:p.value));return(255&Math.round(255*(null===(w=i[7])||void 0===w?NaN:w.value)))<<8|255&V}$a(i){var p,w;i=i.buttons;let V=Math.round(255*(null===(p=i[7])||void 0===p?NaN:p.value));return(255&Math.round(255*(null===(w=i[6])||void 0===w?NaN:w.value)))<<8|255&V}$(i,p,w){return(255&Math.round(127.5*(w.axes[p]+1)))<<8|255&Math.round(127.5*(w.axes[i]+1))}aa(i){return i.axes}Ua(i){return[i.axes[0],-i.axes[1],i.axes[2],-i.axes[3]]}sa(i){return[i.axes[0],i.axes[1],i.axes[2],i.axes[5]]}Sa(i){return[i.axes[0],i.axes[1],i.axes[3],i.axes[4]]}Za(i){var p,w,V,ae,me,He;let ct=i.buttons;return(null!==(p=ct[0])&&void 0!==p&&p.value?4096:0)|(null!==(w=ct[1])&&void 0!==w&&w.value?8192:0)|(null!==(V=ct[2])&&void 0!==V&&V.value?16384:0)|(null!==(ae=ct[3])&&void 0!==ae&&ae.value?32768:0)|(null!==(me=ct[4])&&void 0!==me&&me.value?256:0)|(null!==(He=ct[5])&&void 0!==He&&He.value?512:0)|(0<(i=i.axes)[5]?1:0)|(0>i[5]?2:0)|(0>i[4]?4:0)|(0<i[4]?8:0)}Ta(i){var p,w,V,ae,me,He,ct,Ut,Lt,qt;let on=i.buttons;return i=this.S?Ad(i.axes[6],i.axes[7]):ld(i.axes[9]),(null!==(p=on[1])&&void 0!==p&&p.value?4096:0)|(null!==(w=on[2])&&void 0!==w&&w.value?8192:0)|(null!==(V=on[0])&&void 0!==V&&V.value?16384:0)|(null!==(ae=on[3])&&void 0!==ae&&ae.value?32768:0)|(null!==(me=on[4])&&void 0!==me&&me.value?256:0)|(null!==(He=on[5])&&void 0!==He&&He.value?512:0)|(null!==(ct=on[8])&&void 0!==ct&&ct.value?32:0)|(null!==(Ut=on[9])&&void 0!==Ut&&Ut.value?16:0)|(null!==(Lt=on[10])&&void 0!==Lt&&Lt.value?64:0)|(null!==(qt=on[11])&&void 0!==qt&&qt.value?128:0)|i}ab(i){var p,w,V,ae,me,He,ct,Ut,Lt,qt;let on=i.buttons;return i=ld(i.axes[9]),(null!==(p=on[0])&&void 0!==p&&p.value?4096:0)|(null!==(w=on[1])&&void 0!==w&&w.value?8192:0)|(null!==(V=on[3])&&void 0!==V&&V.value?16384:0)|(null!==(ae=on[4])&&void 0!==ae&&ae.value?32768:0)|(null!==(me=on[6])&&void 0!==me&&me.value?256:0)|(null!==(He=on[7])&&void 0!==He&&He.value?512:0)|(null!==(ct=on[10])&&void 0!==ct&&ct.value?32:0)|(null!==(Ut=on[11])&&void 0!==Ut&&Ut.value?16:0)|(null!==(Lt=on[13])&&void 0!==Lt&&Lt.value?64:0)|(null!==(qt=on[14])&&void 0!==qt&&qt.value?128:0)|i}Va(i){var p,w,V,ae,me,He,ct,Ut,Lt,qt;let on=i.buttons;return i=Ad(i.axes[6],i.axes[7]),(null!==(p=on[0])&&void 0!==p&&p.value?4096:0)|(null!==(w=on[1])&&void 0!==w&&w.value?8192:0)|(null!==(V=on[2])&&void 0!==V&&V.value?16384:0)|(null!==(ae=on[3])&&void 0!==ae&&ae.value?32768:0)|(null!==(me=on[4])&&void 0!==me&&me.value?256:0)|(null!==(He=on[5])&&void 0!==He&&He.value?512:0)|(null!==(ct=on[6])&&void 0!==ct&&ct.value?32:0)|(null!==(Ut=on[7])&&void 0!==Ut&&Ut.value?16:0)|(null!==(Lt=on[9])&&void 0!==Lt&&Lt.value?64:0)|(null!==(qt=on[10])&&void 0!==qt&&qt.value?128:0)|i}Wb(){for(const i of this.l)i.Wb(this.g.Yd,this.g.Zd,this.g.Lb,this.g.Xd,this.j)}ra(){var i,p=performance.now();this.ya&&(this.maxSchedulingDelay=Math.max(this.maxSchedulingDelay,p-this.ya-this.gamepadPollInterval)),this.ya=p,ze(this);let w=p=0;for(let Lt of this.h){if(!Lt)continue;const qt=Rn(Lt.ba.timestamp);let on=Lt.ba;if(!mo(this,on))continue;if(Lt.ba.timestamp<=this.J[on.index]){this.Pa&&5e3<=performance.now()-Lt.ba.timestamp&&this.Pa();continue}this.J[on.index]=Lt.ba.timestamp;const Dn=this.M[on.index];var ae,V=new ol(Lt);if((ae=Dn)&&(ae=Dn.buttons==V.buttons&&Dn.Kb==V.Kb)){e:{ae=Dn.axes;for(var me=0;me<ae.length;me++)if(.01<Math.abs(ae[me]-V.axes[me])){ae=!0;break e}ae=!1}ae=!ae}if(!ae){if(this.M[on.index]=V,V=Lt.Hb(on),ae=Lt.Gb(on),me=Lt.Fb(on),La)if(ae&(fe(this.u)?64:128)){if(this.ka){this.ka=!1;var He=performance.now();He<this.ja+500?(ra(this),this.ja=0):this.ja=He}}else this.ka=!0;for(let Yn of this.v){He=void 0;var ct=Yn.tc,Ut=Yn.Dc;const ki=(Yn.Cc|ct)===ae;Ut=!!(255&Ut)==229.5<=(255&V)&&!!(65280&Ut)==58752<=(65280&V);const Ln=!((null!==(He=Dn?.buttons)&&void 0!==He?He:0)&ct||!(ae&ct));ki&&Ut&&Ln&&Yn.vb()}switch(Lt.Ca){case 1:for(const Yn of this.l)Yn.Yc(w,on.index,Lt.ha,ae,V,me,qt,this.j,on.id);w++;break;case 2:for(const Yn of this.l)null===(i=Yn.Vc)||void 0===i||i.call(Yn,on.index,Lt.ha,ae,V,me,Lt.ba.timestamp,this.j,on.id)}p++,la(Lt.Fa,ae,V,me)}}if(p&&Ji(oi()),w)for(const Lt of this.l)Lt.Wc(w);this.g.pb&&this.g.$d&&(this.Wb(),this.g.$d=!1,this.C&&la(this.C,this.g.Yd,this.g.Zd,this.g.Xd))}getVirtualGamepadHandler(){return this.cb}};function Td(i,p,w,V){var ae=[];ae[0]=-.1<V[0]&&.1>V[0]?0:V[0],ae[1]=-.1<V[1]&&.1>V[1]?0:V[1],ae[2]=-.1<V[2]&&.1>V[2]?0:V[2],ae[3]=-.1<V[3]&&.1>V[3]?0:V[3],V=ae[i.Vf],ae=ae[i.Wf];const me=4-3*Math.min(1,Math.sqrt(V*V+ae*ae));i.Hc=V*i.scale/me,i.Ic=ae*i.scale/me,p=!!(4224&p)||58752<=(65280&w),w=229.5<=(255&w),V=i.uc,ae=i.vc,i.uc=p,i.vc=w,!p&&V&&xd(i,0,!1),!w&&ae&&xd(i,2,!1),p&&!V&&xd(i,0,!0),w&&!ae&&xd(i,2,!0)}function xd(i,p,w){p=new MouseEvent(w?i.zd:i.Wd,{button:p,buttons:(i.uc?1:0)|(i.vc?2:0)}),i.df.dispatchEvent(p)}var vc=class{constructor(i,p){this.Lc=0,this.Bg=8,this.ub=this.tb=this.Ic=this.Hc=0,this.vc=this.uc=!1,this.scale=12,this.hc="mousemove",this.zd="mousedown",this.Wd="mouseup",this.Vf=2,this.Wf=3,this.u=p,this.df=i,this.Dg=this.Cg.bind(this),fe(this.u)&&(this.Vf=0,this.Wf=1)}Yc(i,p,w,V,ae,me){Td(this,V,ae,me)}Vc(i,p,w,V,ae){Td(this,w,V,ae)}Cg(){this.tb=Math.sign(this.tb)!=Math.sign(this.Hc)?this.Hc:this.tb+this.Hc,this.ub=Math.sign(this.ub)!=Math.sign(this.Ic)?this.Ic:this.ub+this.Ic;var i=0;let p=0;if((1<=this.tb||-1>=this.tb)&&(i=Math.trunc(this.tb),this.tb-=i),(1<=this.ub||-1>=this.ub)&&(p=Math.trunc(this.ub),this.ub-=p),0!=i||0!=p){let w;i={movementX:i,movementY:p,isPrimary:!0},w="pointerrawupdate"==this.hc||"pointermove"==this.hc?new PointerEvent(this.hc,i):new MouseEvent("mousemove",i),this.df.dispatchEvent(w)}}start(){this.Lc&&this.stop(),this.Lc=window.setInterval(this.Dg,this.Bg)}stop(){this.Lc&&(clearInterval(this.Lc),this.Lc=0)}reset(){this.uc&&xd(this,0,!1),this.vc&&xd(this,2,!1),this.tb=this.ub=this.Hc=this.Ic=0,this.uc=this.vc=!1}Db(){}Wc(){}Wb(){}Tc(){}},mh=class{constructor(){this.y=this.x=0}jf(){return this.x}kf(){return this.y}update(i,p){return this.x=i,this.y=p,!0}},oc=class{constructor(){this.l=this.j=this.o=this.m=this.F=this.C=this.s=this.h=this.g=0,this.v=!1}jf(){return this.g}kf(){return this.h}update(i,p,w){if(0===i&&0===p)return this.v?this.l=this.j=0:this.v=!0,!1;if(this.v=!1,0===this.j&&0===this.l){if(w<this.s)return this.j=i,this.l=p,!1}else i+=this.j,p+=this.l,this.l=this.j=0;var V=i*this.g+p*this.h,ae=i*i+p*p,me=this.g*this.g+this.h*this.h,He=!0;if(.95>w-this.s&&0>V&&0!==me&&V*V>.81*ae*me&&(V=Math.sqrt(ae)/Math.sqrt(me),.5<(V=Math.abs(V-Math.trunc(V)))&&(V=1-V),.1>V&&(He=!1)),V=i-this.g,ae=p-this.h,He&&(He=2*(me=1+.1*Math.max(1,Math.min(16,w-this.s)))*Math.abs(this.C),me=2*me*Math.abs(this.F),!(He=V*V+ae*ae<(me=Math.max(8100,He*He+me*me)))&&(this.m||this.o))){const ct=p-this.o;He=(He=i-this.m)*He+ct*ct<me}return He?(this.C=.4*this.C+.6*V,this.F=.4*this.F+.6*ae,this.g=i,this.h=p,this.s=w,this.o=this.m=0,!0):(this.m=i,this.o=p,!1)}};function cd(i){return{zf:"image/x-icon",scale:1,...i}}const Wc={style:"default",Ma:"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=",Ha:2,Ia:1},du=[{style:"none",Ma:"",Ha:0,Ia:0},Wc,{style:"text",Ma:"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=",Ha:8,Ia:13},{style:"wait",Ma:"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=",Ha:7,Ia:12},{style:"crosshair",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAABjAAABgMAAAQBAAAIAIAACACAABAAQAAAIAAAEABAAAgAgAAIAIAABgMAAAICAAABjAAAAFAAAAAAAAA//////////////////////////////////////////////////////////////////////////////////////4////5T///53P//+97///fff//333//79+//+AAP//v37//999///fff//53P///d3///5T////j////////8=",Ha:8,Ia:8},{style:"progress",Ma:"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=",Ha:2,Ia:1},{style:"nwse-resize",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP4AAAB+AAAAPgAAAB4AAABuAAAA5gAAAcIAAEOAAABnAAAAdgAAAHgAAAB8AAAAfgAAAH8AAAAAAAAAAAAAA/////////////////////////////////////////////////////////////////////////////////wA///+AP///wD///+A////gP///wD//34A//88GP//GDz//wB+//8A////Af///wH///8A////AH///wA////////8=",Ha:9,Ia:8},{style:"nesw-resize",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfwAAAH4AAAB8AAAAeAAAAHYAAABnAAAAQ4AAAAHCAAAA5gAAAG4AAAAeAAAAPgAAAH4AAAD+AAAAAAAAAAAAA////////////////////////////////////////////////////////////////////////////////wA///8Af///AP///wH///8B////AP///wB+//8YPP//PBj//34A////AP///4D///+A////AP///gD///wA///////8=",Ha:9,Ia:9},{style:"ew-resize",Ma:"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=",Ha:13,Ia:8},{style:"ns-resize",Ma:"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=",Ha:9,Ia:12},{style:"move",Ma:"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=",Ha:13,Ia:12},Wc,{style:"pointer",Ma:"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=",Ha:8,Ia:3},{style:"help",Ma:"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=",Ha:2,Ia:1}];function Dd(i){i.preventDefault()}function _c(i){var p,w;return i.yb()&&2!=i.cursorType&&i.s.h&&(!i.g.qb||i.g.wd)&&(null===(w=null===(p=Yh(i.D))||void 0===p?void 0:p.Cb())||void 0===w||w)}function Gl(i){return 1===i.m||2===i.m}function ks(i){var p=_c(i);const w=Gl(i),V=i.o&&!i.g.qb;!i.Cb||!p||w&&V===i.Ka?!p&&w&&(document.exitPointerLock?(i.m=3,document.exitPointerLock()):i.m=0):(p=i.v).requestPointerLock&&3>i.P?(i.m=1,(p=p.requestPointerLock({unadjustedMovement:V}))&&(i.ua=!0,p.then(()=>{i.m=2,i.Ka=V,i.P=0}).catch(me=>{i.m=0,"NotSupportedError"===me.name&&V?(m.i("{70cc40b}","{08fd91e}"),i.o=!1,ks(i)):("UnknownError"==me.name?(i.P++,m.w("{70cc40b}","{9f2ba9f}",i.P)):m.e("{70cc40b}","{4cdd98f}",me.name,me.message),kc(i))}))):i.m=2}function Ss(i){var p,w;if(0===i.cursorType){var V=i.v.getBoundingClientRect(),ae=null!==(w=null===(p=i.v.parentElement)||void 0===p?void 0:p.getBoundingClientRect())&&void 0!==w?w:new DOMRect(0,0,0,0);p=V.left-ae.left+i.I.ma*i.I.Xa,V=V.top-ae.top+i.I.ma*i.I.Ra,i.j.style.position="absolute",i.j.style.left=p+"px",i.j.style.top=V+"px",i.j.style.zIndex="200"}}function q(i){var p=i.j.getContext("2d");if(p&&(i.h.og=p,p=window.devicePixelRatio,i.h.wb!=p)){m.i("{70cc40b}","{b786ba9}",p),i.h.wb=p,i.h.$c=!0;for(const w of i.W.values())w.style=void 0;zi(i)}}function Ne(i,p){if(i.T&&i.J!==p)switch(i.C&&ef(i),i.J=p,i.C&&uu(i),p){case 1:i.H=4;break;case 2:i.H=8;break;case 3:i.H=16;break;default:i.H=0}}function yt(i,p,w,V){p>=i.U.length?m.e("{70cc40b}","{de8eabe}",p):yc(i,i.U[p],w,V)}function Yt(i){i.O&&(window.clearTimeout(i.O),i.O=0)}function ui(i,p,w){vo(i,p-i.I.Xa,w-i.I.Ra)}function zi(i){i.h.Uc=!0}function io(i,p){if(p instanceof PointerEvent){if(pd(p))return;p.preventDefault()}let w=performance.now();if(i.s.h&&(!_c(i)||Gl(i))&&(0!==p.movementX||0!==p.movementY)){i.ic(!0);var V=1,ae=0,me=i.g.qb,He=i.ia.h,ct=Ut=>{if(i.R.update(Ut.movementX,Ut.movementY,Ut.timeStamp)){var Lt=i.R.jf(),qt=i.R.kf();if(me){if(i.g.wd){var on=i.S?i.h.wb:1;vo(i,i.g.rb+Lt/on,i.g.sb+qt/on)}else ui(i,Ut.offsetX,Ut.offsetY);i.h.Uc=!0,Lt=i.g.rb,qt=i.g.sb}else i.S&&(qt+=i.g.Rd,i.g.Qd=(Lt+=i.g.Qd)%(on=i.h.wb),i.g.Rd=qt%on,Lt/=on,qt/=on);e:{if(on=i.ia,Ut=Rn(Ut.timeStamp),ae%V!=0&&0<on.j){const Dn=on.l[on.j-1];if(Dn.ib===me&&Dn.wc===w){me?(Dn.x=Lt,Dn.y=qt):(Dn.x+=Lt,Dn.y+=qt);break e}}on.j==on.l.length?(on.l.push({ib:me,x:Lt,y:qt,captureTimestamp:Ut,jb:0,wc:w}),on.j++):((on=on.l[on.j++]).ib=me,on.x=Lt,on.y=qt,on.captureTimestamp=Ut,on.jb=0,on.wc=w)}ae++}};if(p instanceof PointerEvent&&i.$){const Ut=p.getCoalescedEvents();if(0==Ut.length)ct(p);else{p=Ut.length>2*(p=i.ia.g.length)?1:Math.max(p-i.ia.h-4,1),Ut.length>p&&(V=Math.ceil(Ut.length/p),i.V.Qc+=Ut.length);for(let Lt of Ut)ct(Lt)}}else ct(p);1<i.l.zg&&0===He&&i.ia.h>He&&(i.ia.l[He].jb=i.ia.h-He)}}function vo(i,p,w){i.g.rb=Math.min(Math.max(p,0),i.I.eb),i.g.sb=Math.min(Math.max(w,0),i.I.Wa),zi(i)}function Is(i,p){if(i.I.eb&&i.I.Wa){const w=p.Wa/i.I.Wa;i.g.rb*=p.eb/i.I.eb,i.g.sb*=w}i.I=p,Ss(i),q(i)}function Vi(i){return 1.499<=i&&1.999>i?2:Math.max(1,Math.floor(i+.001))}function yo(i,p){const w=i.g.cursor;if(w.image){var V=i.h.wb,ae=i.h.og,me=w.image.width*p;p*=w.image.height;var He=Math.ceil(me),ct=Math.ceil(p);He!==i.j.width||ct!==i.j.height?(i.j.style.width=me/V+"px",i.j.style.height=p/V+"px",i.j.width=He,i.j.height=ct,ae.scale(1,1),ae.imageSmoothingEnabled=!1):ae.clearRect(0,0,i.j.width,i.j.height),ae.drawImage(w.image,0,0,me,p)}else m.e("{70cc40b}","{bc9bdcd}")}function Pl(i){i.h.md&&(i.h.md=!1,i.j.style.visibility="hidden")}function kc(i){i.v.style.cursor=!i.yb()||_c(i)&&!Gl(i)||2==i.cursorType?"default":0===i.cursorType?"none":i.g.style}function Po(i,p){const w=()=>{if(i.g.yc=void 0,i.g.cursor=p,i.h.$c=!0,0===i.cursorType)zi(i);else{if(!p.style){var V=i.h.wb,ae=1,me=1;void 0!==i.Da&&(me=(ae=Vi(V/p.scale))/V),yo(i,ae),V=i.j.toDataURL("image/bmp"),ae=p.Ha*me,me*=p.Ia;const ct=i.Da;p.style=ct?`${ct}(url(${V}) ${i.h.wb}x) ${ae} ${me}, auto`:`url(${V}) ${ae} ${me}, auto`}i.g.style=p.style,kc(i)}};if(0!==i.cursorType&&p.style)w();else if("none"!==p.style)if(p.image)0!==p.image.width||0!==p.image.height?w():i.g.yc=p.image;else{const V=new Image;p.image=V,!V.decode&&V.decoding&&(V.decoding="sync"),V.src=`data:${p.zf};base64,${p.Ma}`,V.decode?(i.g.yc=V,V.decode().then(()=>{i.g.yc===V&&w()}).catch(()=>{i.g.yc===V&&(i.g.yc=void 0,Po(i,i.U[1]))})):w()}else i.g.cursor=p,Pl(i)}function yc(i,p,w,V){const ae="none"!==p.style;!i.g.qb&&ae&&void 0!==w&&void 0!==V&&vo(i,w*i.I.eb/65535,V*i.I.Wa/65535),i.g.qb=ae,ae||(i.g.Qd=0,i.g.Rd=0),ks(i),Po(i,p),kc(i)}function Xd(i){0!==i.M&&(window.clearTimeout(i.M),i.M=0)}function uu(i){2==i.cursorType?(i.N.hc=Wo(i),i.videoAddEventListener(Wo(i),i.L?i.ka:i.ja)):0!==i.J?(i.N.hc="pointerrawupdate",i.videoAddEventListener("pointerrawupdate",i.wa)):(i.N.hc=Wo(i),i.videoAddEventListener(Wo(i),i.va))}function qp(i){if(0<i.F.size){m.i("{70cc40b}","{041c67f}",i.F.size);for(const p of i.F)i.Ab(p,0)}}function ef(i){2==i.cursorType?i.videoRemoveEventListener(Wo(i),i.L?i.ka:i.ja):0!==i.J?i.videoRemoveEventListener("pointerrawupdate",i.wa):i.videoRemoveEventListener(Wo(i),i.va)}function Wo(i){return i.L?"pointermove":"mousemove"}var Hl=class{constructor(i,p,w,V,ae,me,He,ct,Ut,Lt,qt,on){var Dn,Yn,ki,Ln,ii,Zi,nr,fr,So,bo,wo,es,ha,hs,Us,za,nl,ul;this.Ba=i,this.s=on,this.W=new Map,this.U=du.map(cd),this.P=this.m=0,this.Cb=!1,this.F=new Set,this.ua=this.Ka=this.o=this.$=this.L=this.T=!1,this.H=this.J=0,this.ca=!1,this.ra={passive:!1},this.Z=!0,this.C=!1,this.O=this.M=0,this.Sa=()=>{this.O=0,_c(this)&&!Gl(this)&&(this.Cb=!0,ks(this))},this.u=He,this.D=p,this.v=w,this.G=ae,this.Na=me,this.N=ct,this.V=Ut,this.ia=Lt,this.l=qt,V.onmessage=Gr=>function lo(i,p){let w=new Uint8Array(p.data);switch(w[0]){case 0:case 1:p=w[1];let He=w[2],ct=w[3];var V=w[4];let Ut=5,Lt=()=>{const Yn=w[Ut]+(w[Ut+1]<<8);return Ut+=2,Yn};var ae="";0!=V&&(ae=w.subarray(Ut,Ut+V),Ut+=V,ae=new TextDecoder("utf-8").decode(ae));var me="";let qt,on,Dn;0!=(V=Lt())&&(me=w.subarray(Ut,Ut+V),Ut+=V,me=new TextDecoder("utf-8").decode(me)),Ut+4<=w.byteLength&&(qt=Lt(),on=Lt()),Ut+2<=w.byteLength&&(Dn=Lt()/100),0==w[0]?yt(i,p,qt,on):function ud(i,p,w,V,ae,me,He,ct,Ut){if(0<me.length)i.W.set(p,w={Ma:me,Ha:w,Ia:V,zf:ae,scale:Ut||1});else if(void 0===(w=i.W.get(p)))return void m.e("{70cc40b}","{0196577}",p);yc(i,w,He,ct)}(i,p,He,ct,ae,me,qt,on,Dn);break;case 10:i.Na.allowUnconfined&&function Ha(i,p){i.g.wd=p,ks(i)}(i,1==w[1])}}(this,Gr),this.I={eb:w.clientWidth||window.screen.width,Wa:w.clientHeight||window.screen.height,Sf:1,Xa:0,Ra:0,videoWidth:0,videoHeight:0,Pc:0,offsetX:0,offsetY:0,ma:1},i=window.zoneless,this.documentAddEventListener=null!==(Yn=null===(Dn=i?.documentAddEventListener)||void 0===Dn?void 0:Dn.bind(document))&&void 0!==Yn?Yn:document.addEventListener.bind(document),this.documentRemoveEventListener=null!==(Ln=null===(ki=i?.documentRemoveEventListener)||void 0===ki?void 0:ki.bind(document))&&void 0!==Ln?Ln:document.removeEventListener.bind(document),this.videoAddEventListener=null!==(fr=null!==(Zi=null===(ii=i?.videoAddEventListener)||void 0===ii?void 0:ii.bind(w))&&void 0!==Zi?Zi:null===(nr=i?.documentAddEventListener)||void 0===nr?void 0:nr.bind(document))&&void 0!==fr?fr:w.addEventListener.bind(w),this.videoRemoveEventListener=null!==(es=null!==(bo=null===(So=i?.videoRemoveEventListener)||void 0===So?void 0:So.bind(w))&&void 0!==bo?bo:null===(wo=i?.documentRemoveEventListener)||void 0===wo?void 0:wo.bind(document))&&void 0!==es?es:w.removeEventListener.bind(w),this.fa=this.na.bind(this),this.xa=this.$a.bind(this),this.pa=this.oa.bind(this),this.ya=this.bb.bind(this),this.qa=this.Ta.bind(this),this.va=this.ab.bind(this),this.wa=this.Va.bind(this),this.ja=this.ga.bind(this),this.ka=this.Qa.bind(this),this.ta=this.Ua.bind(this),this.sa=this.Za.bind(this),this.da=this.Oa.bind(this),this.ea=this.Pa.bind(this),this.aa=!!me.windowedStreaming,this.cursorType=null!==(hs=null!==(ha=function jl(){switch(Ea){case"hw":return 1;case"sw":return 0;case"free":return 2}}())&&void 0!==ha?ha:me.cursorType)&&void 0!==hs?hs:this.aa?2:0,m.i("{70cc40b}","{3277c0e}",this.cursorType),this.g={qb:!1,wd:0===this.cursorType&&!me.allowUnconfined,rb:0,sb:0,Qd:0,Rd:0,style:"",cursor:this.U[0]},this.h={wb:1,Uc:!1,$c:!1,md:!1},this.Da=["image-set","-webkit-image-set"].find(Gr=>CSS.supports("cursor",`${Gr}(url(image.bmp) 2x) 0 0, auto`)),0===this.cursorType?(this.j=function dd(i){let p="canvasId1";var w=document.getElementById(p);if(w&&w instanceof HTMLCanvasElement&&w.parentElement===i.parentElement)return w;if(w)do{p="canvasId"+Math.round(1e4*Math.random()),w=document.getElementById(p)}while(w);return(w=document.createElement("canvas")).id=p,w.style.touchAction="none",w.style.pointerEvents="none",w.style.willChange="transform",i.insertAdjacentElement("afterend",w),w}(this.v),this.j.style.visibility="hidden",this.j.style.display="none"):this.j=document.createElement("canvas"),Ss(this),q(this),this.T="onpointerrawupdate"in this.v,this.$=(this.L=Bt())&&"getCoalescedEvents"in PointerEvent.prototype&&"Firefox"!==He.browser,m.i("{70cc40b}","{f30b8ee}",this.$?"supported":"not supported"),this.T&&(w=function hd(){const i=Pr.mouseCoalesceInterval;if(void 0!==i)return new Map([[0,0],[4,1],[8,2],[16,3]]).get(i)}(),void 0!==w?Ne(this,w):ue(He)?Ne(this,3):Ne(this,1),m.i("{70cc40b}","{20be0c0}",this.H,void 0!==w?" (overridden)":"")),this.o=null!==(Us=me.unadjustedMovement)&&void 0!==Us?Us:Me(this.u)?!this.aa&&ee(this.u,84,0,4147,78):ue(this.u)||be(this.u)?ee(this.u,86,0,4240,198):"Safari"===this.u.browser,me=ue(He)&&ee(this.u,84,0,4147,94)&&!ee(this.u,88,0,4324,139),me=Me(this.u)||!me||!ee(this.u,84,0,4147,94),this.R=(null!==(za=Ts)&&void 0!==za?za:me)?new oc:new mh,["pointerlockchange","mozpointerlockchange"].forEach(Gr=>this.documentAddEventListener(Gr,this.ta)),["pointerlockerror","mozpointerlockerror"].forEach(Gr=>this.documentAddEventListener(Gr,this.sa)),Xc(this.s,0,this.da),Xc(this.s,2,this.ea),this.S=!(!X(this.u)&&!Q(this.u))||"Chrome"==He.browser&&!ee(He,99,0,4844,44)&&!be(He),1===this.cursorType&&yt(this,1),this.cb=1===this.cursorType&&(null===(ul=null!==(nl=Al)&&void 0!==nl?nl:Pr.pointerLockEscape)||void 0===ul||ul),this.lb=1===this.cursorType&&"Safari"===He.browser,m.d("{70cc40b}","{ec7c4c5}")}uninitialize(){["pointerlockerror","mozpointerlockerror"].forEach(i=>this.documentRemoveEventListener(i,this.sa)),["pointerlockchange","mozpointerlockchange"].forEach(i=>this.documentRemoveEventListener(i,this.ta)),Ql(this.s,0,this.da),Ql(this.s,2,this.ea),Yt(this)}$a(i){pd(i)||(i.preventDefault(),this.na(i),2===this.cursorType&&this.v.setPointerCapture(i.pointerId))}na(i){var p;null===(p=this.D.R)||void 0===p||2==p.g&&(m.i("{4c846ba}","{89b1a9f}"),wg(p),Up(p),nm(p)),Dp(this.s,!0),this.Cb=!0,p=Rn(i.timeStamp),_c(this)&&!Gl(this)?(ks(this),this.g.qb&&(ui(this,i.offsetX,i.offsetY),zi(this),Es(this.l,this.g.rb,this.g.sb,p))):(this.lb&&this.g.qb&&(Yt(this),this.O=window.setTimeout(this.Sa,500)),Ji(oi()),this.Ib(i.button,p))}bb(i){pd(i)||(i.preventDefault(),this.oa(i))}oa(i){Ji(oi()),this.Ab(i.button,Rn(i.timeStamp))}Ta(i){this.aa&&i.target!==this.v||(ma(this.l,i.deltaY,Rn(i.timeStamp)),i.preventDefault())}Qa(i){if(!pd(i)){if(i.preventDefault(),-1!==i.button){let p;switch(i.button){case 1:p=2;break;case 2:p=1;break;default:p=i.button}const w=Rn(i.timeStamp);i.buttons&1<<p?this.Ib(i.button,w):this.Ab(i.button,w)}this.ga(i)}}ga(i){ui(this,i.offsetX,i.offsetY),Es(this.l,this.g.rb,this.g.sb,Rn(i.timeStamp))}ab(i){io(this,i)}Va(i){const p=0<this.l.ia.h;io(this,i),!p&&0<this.l.ia.h&&((i=performance.now()-this.l.tg)>=this.H?$r(this.l):function va(i,p){i.Jb=window.setTimeout(()=>{i.Jb=0,$r(i)},p)}(this.l,this.H-i))}Pa(i){this.Cb=i,ks(this),kc(this)}Ua(){if(document.pointerLockElement instanceof HTMLElement)this.m=2;else{var i=2===this.m;this.m=0,Xd(this);var p=()=>{m.i("{70cc40b}","{d4b3de3}"),this.Cb=!1,kc(this)},w=this.Ba.Ya.has(27);this.cb&&i&&!w?this.M=window.setTimeout(()=>{p(),0!==this.M&&(Xd(this),sl(this.Ba,!0))},50):(i&&p(),sl(this.Ba,!1))}}Za(){this.ua||(this.m=0,this.o?(this.o=!1,m.e("{70cc40b}","{7599808}"),ks(this)):(m.e("{70cc40b}","{d633cd1}"),kc(this)))}yb(){return this.C}Oa(i){i?(this.s.j&&(this.Cb=!0,ks(this)),q(this)):(ks(this),0!==this.M&&(Xd(this),sl(this.Ba,!1)))}Ib(i,p){this.F.has(i)||(this.F.add(i),this.l.Ib(i,p))}Ab(i,p){this.F.has(i)&&(this.F.delete(i),this.l.Ab(i,p))}ic(i){this.Z!=i&&(zi(this),this.Z=i)}};function pd(i){return!(i.isPrimary&&"touch"!==i.pointerType&&"pen"!==i.pointerType)}const sc=[{zc:8,ec:128,pd:Pd(),Ub:27,Vb:[]},{zc:46,ec:128,pd:Pd(),Ub:27,Vb:[]}];function hu(i,p,w,V){1===i.I.ma&&(Sc(i,p,V,w),i.J.delay(()=>{i.Ib(0,w)}))}function ja(i,p){1===i.I.ma&&(Od(i.J),i.Ab(0,p))}function tp(i){var p=i.h;p.ca=!1,zi(p),1.1>i.I.ma&&Uc(i,i.I.offsetX,i.I.offsetY,1)}function Fc(i){return i.aa?(ip(i),!1):i.v.h}function _h(i,p){if(2===p.length){var w=i.h;w.ca=!0,zi(w),w=p[0],p=p[1];var V=Math.hypot(w.clientX-p.clientX,w.clientY-p.clientY),ae=Math.hypot(w.clientX-w.deltaX-(p.clientX-p.deltaX),w.clientY-w.deltaY-(p.clientY-p.deltaY));const me=i.j.getBoundingClientRect(),He=fu(i);V=V/ae*i.I.ma,V=Math.min(Math.max(V,1),3),ae=(w.clientX+p.clientX)/2-me.left,ae=(V/i.I.ma-1)*(ae+=i.I.offsetX-He.ob-(me.width-ae)/i.I.ma)*-1;let ct=(w.clientY+p.clientY)/2-me.top;ct+=i.I.offsetY-He.vertical-(me.height-ct)/i.I.ma,ct=(V/i.I.ma-1)*ct*-1,ct+=i.I.offsetY+(w.deltaY+p.deltaY)/2,Uc(i,ae+=i.I.offsetX+(w.deltaX+p.deltaX)/2,ct,V)}}function np(i,p,w,V,ae){switch(Od(i.J),ae){case 1:Sc(i,p,V,w),i.J.delay(()=>{Ch(i,0,w)});break;case 2:i.ka++,wr&&0===i.F&&(i.F=window.setTimeout(()=>{2===i.ka?i.D.toggleOnScreenStats():3===i.ka&&i.D.toggleOnScreenStats(!0),Vu(i)},300)),Ch(i,2,w);break;case 3:i.ga++,wr&&0===i.F&&(i.F=window.setTimeout(()=>{2===i.ga?i.D.ja():3===i.ga&&wf(i.S),Vu(i)},300)),Ch(i,1,w);break;case 4:Ch(i,3,w);break;case 5:Ch(i,4,w)}}function sl(i,p){p&&(Ms(i),m.i("{8bacfa5}","{f46c4da}"),no(i.g,3,27,0),no(i.g,4,27,0))}function $c(i){fd(i),i.fa=window.setTimeout(()=>{i.S.send()},350)}function pu(i,p){(i.aa=p)&&15!==i.m&&(i.oa=i.m,i.toggleUserInput(!0)),p?bh(i).forEach(w=>i.documentAddEventListener(w,i.xa)):bh(i).forEach(w=>i.documentRemoveEventListener(w,i.xa))}function fd(i){0!==i.fa&&(window.clearTimeout(i.fa),i.fa=0)}function Sh(i,p){if(!(i.na&&20===p.keyCode||te(i.u)&&20!==p.keyCode)){var w=16;if(i.O&&i.ja||!p.getModifierState("CapsLock")||(w|=1),i.$a&&(w|=96,p.getModifierState("NumLock")&&(w|=2),p.getModifierState("ScrollLock")&&(w|=4)),w!=i.ca){i.ca=w,(p=(i=i.g).fb(5)).setUint32(0,19,!0),p.setUint8(4,w);try{$r(i,p),m.d("{57a6a4d}","{56c9613}",w.toString(2))}catch(V){m.e("{57a6a4d}","{cbe483c}",V),i.G.za(V,"LockKeys state synchronize exception","{57a6a4d}.ts",0,0,!0)}}}}function Uc(i,p,w,V){i.I.ma=V;let ae=fu(i);ae.ob-=i.I.Xa,ae.vertical-=i.I.Ra;let me=Math.max(ae.vertical+Math.max(0,i.I.Wa-i.I.Pc+2*i.I.Ra),0),He=Math.max(ae.vertical,0);ae.ob=Math.max(ae.ob,0),p=Math.min(Math.max(p,-1*ae.ob),ae.ob),w=Math.min(Math.max(w,-1*me),He),i.j.style.transform=`translate3d(${p}px,${w}px,0px) scale3d(${V},${V},1)`,i.I.offsetX=p,i.I.offsetY=w,Is(i.h,i.I)}function Bu(i,p){var w;return i.P?i.o&&i.kb?(i=null!==(w=p.code)&&void 0!==w&&w.length?jo.get(p.code):jo.get(p.key))??0:(p=p.code?jo.get(p.code):ia.get(p.key))??0:p.keyCode}function Kl(i,p){var w=0;let V;return p.ctrlKey&&!p.code.startsWith("Control")&&(w|=2),p.altKey&&!p.code.startsWith("Alt")&&(w|=4),p.metaKey&&!p.code.startsWith("Meta")&&(w|=8),te(i.u)&&1===p.key.length&&('!@#$%^&*()~_+{}|:"<>?'.includes(p.key)?V=1:"1234567890`-=[]\\;',./".includes(p.key)&&(V=0)),void 0===V&&p.shiftKey&&!p.code.startsWith("Shift")&&(V=1),w|(V??0)}function Ms(i){if(0<i.Ya.size){m.i("{8bacfa5}","{7998ee8}",i.Ya.size);for(const p of i.Ya)no(i.g,4,p,0);i.Ya.clear()}}function Vu(i){window.clearTimeout(i.F),i.F=0,i.ka=0,i.ga=0}function ip(i){pu(i,!1),i.M.emit("StreamingEvent",{streamingWarnings:{code:4}}),i.Td(),i.Ba.Df()}function bh(i){return[Wo(i.h),"pointerdown","touchstart"]}function hg(i,p){p=(new TextEncoder).encode(p),i.sendTextInput(p.buffer),i.textInputElement.value=""}function rp(i){for(let p=i.length-1;0<=p;p--)if(void 0===aa.get(i.charAt(p)))return!1;return!0}function op(i,p){let w=!1;16&i.ca&&(w=!!(1&i.ca));for(let ae=0;ae<p.length;ae++){var V=aa.get(p.charAt(ae));if(!V)return void m.e("{8bacfa5}","{67554be}",p.charAt(ae));const me=V.vkCode;V=V.shift?1:0,65<=me&&90>=me&&w&&(V=~V),V&&no(i.g,3,160,0,performance.now()),no(i.g,3,me,V,performance.now()),no(i.g,4,me,V,performance.now()),V&&no(i.g,4,160,0,performance.now())}i.textInputElement.value=""}function fu(i){return{ob:i.I.eb*(i.I.ma-1)/2,vertical:i.I.Wa*(i.I.ma-1)/2}}function Sc(i,p,w,V){Od(i.J);const ae=p.getBoundingClientRect();p=(w.clientX-ae.left)/i.I.ma,w=(w.clientY-ae.top)/i.I.ma,i.ic(!0),ui(i.h,p,w);const{rb:me,sb:He}=i.h.g;Es(i.g,me,He,V)}function Ch(i,p,w){i.Ib(p,w),i.J.delay(()=>{i.Ab(p,w)})}var Eh=class{constructor(i,p,w,V,ae,me,He,ct,Ut,Lt,qt,on,Dn,Yn,ki,Ln,ii){var Zi,nr,fr,So,bo,wo,es,ha,hs,Us,za,nl,ul,Gr,il,Jl,ql,Wl,hc,Cd,ou,Ed;this.v=Yn,this.ra=!1,this.Ya=new Set,this.m=0,this.kb=!1,this.P=!0,this.F=0,this.J=new tf,this.T=!1,this.H=0,this.ja=this.qa=!1,this.fa=this.ga=this.ka=0,this.ua=this.ta="off",this.Z=new Map,this.W=new Map,this.pa=!1,this.Ta=()=>{m.d("{8bacfa5}","{9c2578a}"),$c(this)},this.Sa=()=>{this.pa=!0},this.Qa=()=>{this.pa=!1},this.u=qt,this.D=i,this.j=p,this.G=ae,this.Ba=on,this.S=Dn,this.I={eb:p.clientWidth||window.screen.width,Wa:p.clientHeight||window.screen.height,Sf:1,Xa:0,Ra:0,videoWidth:0,videoHeight:0,Pc:0,offsetX:0,offsetY:0,ma:1},on=window.zoneless,this.windowAddEventListener=null!==(nr=null===(Zi=on?.windowAddEventListener)||void 0===Zi?void 0:Zi.bind(window))&&void 0!==nr?nr:window.addEventListener.bind(window),this.windowRemoveEventListener=null!==(So=null===(fr=on?.windowRemoveEventListener)||void 0===fr?void 0:fr.bind(window))&&void 0!==So?So:window.removeEventListener.bind(window),this.documentAddEventListener=null!==(wo=null===(bo=on?.documentAddEventListener)||void 0===bo?void 0:bo.bind(document))&&void 0!==wo?wo:document.addEventListener.bind(document),this.documentRemoveEventListener=null!==(ha=null===(es=on?.documentRemoveEventListener)||void 0===es?void 0:es.bind(document))&&void 0!==ha?ha:document.removeEventListener.bind(document),this.videoAddEventListener=null!==(nl=null!==(Us=null===(hs=on?.videoAddEventListener)||void 0===hs?void 0:hs.bind(p))&&void 0!==Us?Us:null===(za=on?.documentAddEventListener)||void 0===za?void 0:za.bind(document))&&void 0!==nl?nl:p.addEventListener.bind(p),this.videoRemoveEventListener=null!==(Jl=null!==(Gr=null===(ul=on?.videoRemoveEventListener)||void 0===ul?void 0:ul.bind(p))&&void 0!==Gr?Gr:null===(il=on?.documentRemoveEventListener)||void 0===il?void 0:il.bind(document))&&void 0!==Jl?Jl:p.removeEventListener.bind(p),this.Na=this.Ka.bind(this),this.Pa=this.Oa.bind(this),this.va=this.wa.bind(this),this.sa=this.bb.bind(this),this.ea=this.da.bind(this),this.Va=this.Nb.bind(this),this.Ua=this.lb.bind(this),this.xa=this.cb.bind(this),this.ab=this.Mb.bind(this),this.L=this.Bb.bind(this),this.N=Ut,this.preventNavigation=!!He.preventNavigation,Ut=new Ul,this.g=new gc(this,Ut,ki,this.I,this.D,w,this.G,Ln),this.R=new vc(this.j,this.u),this.h=new Hl(this,i,p,V,ae,He,qt,this.R,ki,Ut,this.g,this.v),ct?lr||dt()?(this.s=new Yr(this.j,this.videoAddEventListener,this.videoRemoveEventListener,this.g,this),m.i("{8bacfa5}","{60f3637}")):m.w("{8bacfa5}","{32104d3}"):m.i("{8bacfa5}","{6be89bf}"),!lr&&!dt()||xe(this.u)||(this.C=new ai(this.j,this.videoAddEventListener,this.videoRemoveEventListener,this)),this.M=me,this.ca=0,this.$a=Me(this.u),this.na=ue(this.u),this.O=be(this.u),this.o="Android"===this.u.os,this.Da="VISIONPRO"===this.u.deviceModel,i="Safari"===this.u.browser,m.i("{8bacfa5}","{fa2e72c}",(p=!!He.windowedStreaming)?"on":"off"),this.$a?(m.d("{8bacfa5}","{da5ae1d}"),this.$=[20,144,145]):this.na||"Linux"===this.u.os?(m.d("{8bacfa5}","{b7becf9}"),this.$=[]):(m.d("{8bacfa5}","{098ce9c}"),this.$=[20]),this.U=this.aa=!1,this.perf=PerformanceObserver?new PerformanceObserver($d=>function yh(i,p){p.getEntriesByType("longtask").forEach(w=>{let V=Math.round(w.duration);var me,ae=ke;ae.h&&(w={duration:{timestamp:w.startTime-ae.j,duration:V}},ae.g&&ae.g.postMessage(w)),null===(me=i.D.h)||void 0===me||((ae=me.g).L=Math.max(V,ae.L)),m.i("{8bacfa5}","{7071359}",V)})}(this,$d)):null,Xc(this.v,2,this.va),m.d("{8bacfa5}","{cc9c05b}"),window.ResizeObserver?(this.Za=new ResizeObserver(()=>{this.da()}),this.Za.observe(this.j)):this.windowAddEventListener("resize",this.ea),(te(qt)||Q(qt))&&window.IntersectionObserver&&(this.ya=new IntersectionObserver(()=>{this.da()},{threshold:[1]}),this.ya.observe(this.j)),this.j.addEventListener("resize",this.ea),this.windowAddEventListener("orientationchange",this.Ta),(qt=window.visualViewport)&&(this.I.Pc=qt.height,qt.addEventListener("resize",this.Va)),this.l=Lt,function ko(i,p){i.o&&(Xi(i,i.o),Jo(i,i.o)),i.o=p,i.l.push(i.o)}(this.l,this.g),this.g.Oc.push(this.l),function ya(i,p){ns&&(i.m&&Xi(i,i.m),i.m=p)}(this.l,this.R),this.l.G=this.G,this.wa(this.v.j),Xc(this.v,0,this.sa),this.perf&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("longtask")&&this.perf.observe({entryTypes:["longtask"]}),Go&&oi().initialize(this.j,this.u),(xe(this.u)||this.o||te(this.u))&&(this.textInputElement=ii,this.o&&(this.ta=null!==(Wl=null===(ql=this.textInputElement)||void 0===ql?void 0:ql.getAttribute("autocapitalize"))&&void 0!==Wl?Wl:"off",this.ua=null!==(Cd=null===(hc=this.textInputElement)||void 0===hc?void 0:hc.getAttribute("autocorrect"))&&void 0!==Cd?Cd:"off",null===(ou=this.textInputElement)||void 0===ou||ou.setAttribute("autocapitalize","off"),null===(Ed=this.textInputElement)||void 0===Ed||Ed.setAttribute("autocorrect","off"))),(jr||pr&&(i||p))&&(function Fu(i,p){if(p)for(const ae of p){if(!(p=ae.remote.code)||!(p=jo.get(p)))continue;var w=ae.remote.modifiers,V=[];1&w&&V.push(162),2&w&&V.push(164),4&w&&V.push(91),8&w&&V.push(160),w=V,V=ae.local.key;const me=ae.local.code;me?(V=jo.get(me))&&i.W.set(V,{zc:V,ec:ae.local.modifiers,pd:Pd(),Ub:p,Vb:w}):V&&i.Z.set(V,{Jd:V,ec:ae.local.modifiers,pd:Pd(),Ub:p,Vb:w})}else for(w of sc)w.Jd?i.Z.set(w.Jd,w):w.zc&&i.W.set(w.zc,w)}(this,He.streamingHotkeys),function Uu(i){var p,w,V,ae,me,He,ct;for(const Ut of i.W.values())m.i("{8bacfa5}","{e7c6e9b}",null===(p=Ut.zc)||void 0===p?void 0:p.toString(16),null===(w=Ut.ec)||void 0===w?void 0:w.toString(16),null===(V=Ut.Ub)||void 0===V?void 0:V.toString(16),null===(ae=Ut.Vb)||void 0===ae?void 0:ae.map(Lt=>Lt.toString(16)));for(const Ut of i.Z.values())m.i("{8bacfa5}","{b5e3a31}",Ut.Jd,null===(me=Ut.ec)||void 0===me?void 0:me.toString(16),null===(He=Ut.Ub)||void 0===He?void 0:He.toString(16),null===(ct=Ut.Vb)||void 0===ct?void 0:ct.map(Lt=>Lt.toString(16)))}(this))}uninitialize(){var i,p,w,V,ae,me,He;pu(this,!1);var ct=this.j.paused;if(ct=void 0!==ct?ct?"paused":"playing":"unknown",(this.j.paused||1>(null!==(i=this.j.currentTime)&&void 0!==i?i:1))&&Fa(this.G,"VideoPaused",ct,null===(p=this.j.currentTime)||void 0===p?void 0:p.toFixed(2)),m.i("{8bacfa5}","{fdc8bf7}",ct,this.j.currentTime),null===(w=this.ya)||void 0===w||w.disconnect(),null===(V=this.Za)||void 0===V||V.disconnect(),this.g.stop(),this.perf&&this.perf.disconnect(),this.toggleUserInput(!1),this.windowRemoveEventListener("resize",this.ea),this.windowRemoveEventListener("orientationchange",this.Ta),this.j.removeEventListener("resize",this.ea),null===(ae=window.visualViewport)||void 0===ae||ae.removeEventListener("resize",this.Va),(i=this.l).s){for(var Ut of(p=!0,i.h))Ut&&(Ut.Fa.state=kr(i,Ut.Fa.state,!0),Yc(i,Ut.ba.index,!0,p),p=!1);gn(i),i.j=0,i.s=0,i.g.pb=!1,i.Db(),i.gamepadPollInterval=100,ad(i),i.h=[],i.Z=!1}-1<(i=(Ut=this.g).Oc.indexOf(this.l))&&Ut.Oc.splice(i,1),Ql(this.v,2,this.va),this.R.stop(),Xi(this.l,this.R),Xi(this.l,this.g),this.T&&(Xi(this.l,this.N),this.N.Mc(this.j)),this.h.uninitialize(),Ql(this.v,0,this.sa),fd(this),null===(me=this.textInputElement)||void 0===me||me.setAttribute("autocapitalize",this.ta),null===(He=this.textInputElement)||void 0===He||He.setAttribute("autocorrect",this.ua),m.d("{8bacfa5}","{b6b2756}")}Wb(){Eo(this.g)&&this.l.Wb()}da(){var p,i=this.j;if(!(0>=i.videoWidth||0>=i.videoHeight)){var w=0,V=0;if(i.clientWidth/i.clientHeight>i.videoWidth/i.videoHeight){var ae=i.clientHeight/i.videoHeight,me=i.videoWidth*ae,He=i.videoHeight*ae;V=(i.clientWidth-me)/2}else me=i.videoWidth*(ae=i.clientWidth/i.videoWidth),w=(i.clientHeight-(He=i.videoHeight*ae))/2;var ct=1,Ut=1;this.I.eb&&this.I.Wa&&(ct=me/this.I.eb,Ut=He/this.I.Wa),this.I.eb=me,this.I.Wa=He,this.I.Sf=ae,this.I.Ra=w,this.I.Xa=V,this.I.videoWidth=i.videoWidth,this.I.videoHeight=i.videoHeight,Uc(this,this.I.offsetX*ct,this.I.offsetY*Ut,this.I.ma),Is(this.h,this.I),null===(p=this.s)||void 0===p||(i=this.I,w=this.j.getBoundingClientRect(),ae=this.I.ma,p.F={ob:w.left+window.pageXOffset+this.I.Xa*this.I.ma,vertical:w.top+window.pageYOffset+this.I.Ra*this.I.ma},p.m=65535/i.eb,p.o=65535/i.Wa,p.m/=ae,p.o/=ae),i=this.I.Xa,(p=this.S).Ra=this.I.Ra,p.Xa=i,$c(this)}}Nb(){this.I.Pc=window.visualViewport.height,Uc(this,this.I.offsetX,this.I.offsetY,this.I.ma)}lb(){m.d("{8bacfa5}","{b6fbd34}"),history.pushState(null,document.title,location.href)}Ka(i){var p,w;let V=this.pa;this.qa=!1;const ae=Rn(i.timeStamp);if(this.v.h){(function Ta(i,p){var w;if(null!==(w=Yh(i.D))&&void 0!==w&&w.isVisible())return!1;if(i.na)switch(p.code){case"Tab":return!p.altKey;case"ZoomToggle":case"SelectTask":case"BrightnessDown":case"BrightnessUp":case"AudioVolumeMute":case"AudioVolumeDown":case"AudioVolumeUp":return!1}return!0})(this,i)&&i.preventDefault();var He,me=!(!this.O||!this.ja)&&"CapsLock"==i.code;me&&(V=V||me),Sh(this,i),!(He="CapsLock"==i.code&&("Alphanumeric"==i.key||"Katakana"==i.key||"Hiragana"==i.key))&&(He="KanaMode"==i.code)&&(He="Hiragana"==(He=i.key)||"Katakana"==He||"Romaji"==He||"KanaMode"==He),He=!!He;var ct="Lang1"==i.code||"HangulMode"==i.key;if(V=V||He||ct,!this.$.includes(i.keyCode)||He||me)if(0===(me=me?160:Bu(this,i)))this.ra=!0,this.M.emit("TextComposition",{compositionText:i.key,imeRecommendation:!0});else if(this.ra&&(this.ra=!1,this.M.emit("TextComposition",{compositionText:""})),!this.Ya.has(me)){this.Ya.add(me),He=!1;var Ut=Yh(this.D);if(ct=void 0,187==me){var Lt;if(null===(Lt=(He=this.D).R)||void 0===Lt)var qt=0;else 1==Lt.g?(m.i("{4c846ba}","{1f67b97}"),Lt.g=2,qt=!0):qt=!1;qt?(el(He,{latencyTrigger:!0}),He=!0):He=!1,He=!He}else if(i.ctrlKey&&i.altKey)if(!wr&&!fo||119!=me&&219!=me)if(wr)switch(me){case 48:var on="UNSUPPORTED";if((qt=this.h).T)switch(Ne(qt,(qt.J+1)%4),qt.J){case 1:on="4ms";break;case 2:on="8ms";break;case 3:on="16ms";break;default:on="OFF"}xc(qt.D,"Non-vsync mouse events: "+on),m.i("{70cc40b}","{bac28ff}",on);break;case 49:this.D.Bb();break;case 56:this.D.sendCustomMessage({messageType:"GpuViewStartRequest",messageRecipient:"GPUViewTraceControl",data:"GpuView"}),m.i("{93c7910}","{0915cd3}");break;case 68:var Dn;null===(Dn=(qt=this.D).R)||void 0===Dn?on=0:0==Dn.g?(Dn.g=1,m.i("{4c846ba}","{008dc86}"),Up(Dn),nm(Dn),on=!0):on=!1,on&&el(qt,{pcmDumpTrigger:!0});break;case 71:this.Mc();break;case 76:null==Ut||mp(Ut,!Ut.isVisible()),ks(this.h);break;case 83:wf(this.S);break;case 115:(qt=this.D).pa?(Fl(),qt.pa=!1,Gd(qt),xc(qt,"Profiler: OFF, Stats: OFF")):(Vf(qt),Pg(qt),xc(qt,"Profiler: ON, Stats: ON"));break;case 116:Du(qt=this.D)?(Gd(qt),xc(qt,"Stats: OFF")):(Pg(qt),xc(qt,"Stats: ON"));break;case 117:this.D.toggleOnScreenStats(i.shiftKey);break;case 118:case 192:(qt=this.D).perfIndicator=!qt.perfIndicator,el(qt,{perfIndicator:{on:qt.perfIndicator}});break;case 120:(qt=this.h).o=!qt.o,xc(qt.D,"UnadjustedMovement: "+(qt.o?"ON":"OFF")),m.i("{70cc40b}","{796c5cb}",qt.o?"ON":"OFF");break;case 189:this.P=!this.P,xc(this.D,"Position dependent keys: "+(this.P?"ON":"OFF")),m.i("{8bacfa5}","{61d2ab5}",this.P?"ON":"OFF");break;case 77:this.D.ja();break;default:He=!0}else He=!0;else this.D.toggleStutterIndicator();else{e:{if((i.ctrlKey||i.shiftKey||i.metaKey||i.altKey)&&((ct=this.W.get(me))||(ct=this.Z.get(i.key)),ct)){128==(Lt=ct.ec)&&(Lt=this.O?4:1),Dn=i.ctrlKey;const ki=i.altKey,Ln=i.metaKey,ii=i.shiftKey;if((1&Lt?Dn:!Dn)&&(2&Lt?ki:!ki)&&(4&Lt?Ln:!Ln)&&(8&Lt?ii:!ii))break e}ct=void 0}if(ct){for(qt of(Ut=Kl(this,i),ct.pd))Ut!=(Lt=Ut&~al(qt))&&no(this.g,4,qt,Ut=Lt,ae),this.Ya.delete(qt);for(on of ct.Vb)Ut|=al(on),no(this.g,3,on,Ut,ae);for(var Yn of(no(this.g,3,ct.Ub,Ut,ae),no(this.g,4,ct.Ub,Ut,ae),ct.Vb))Ut&=~al(Yn),no(this.g,4,Yn,Ut,ae);this.Ya.delete(me)}else if(null!=Ut&&Ut.isVisible())if(13==me)Ut.toggle(),ks(this.h);else if(82==me)Ut.reset(),ks(this.h);else if(65==me)Vc(Ut,!Ut.Yb.checked);else if(83==me)if(Ut.dc.length){for(qt=`LDAT_${(new Date).toISOString()}.csv`,on=["Sample #,Total,Render,Decode,Begin,Server + Rtd + Receive,Input Callback"],Yn=0;Yn<Ut.dc.length;Yn++)Lt=_f(Ut.dc[Yn]),on.push([Yn,Lt.total,Lt.Pf,Lt.decode,Lt.We,Lt.Tf,Lt.pf].join());yn([on.join("\n")],qt,"text/plain")&&m.i("{50c79eb}","{690879e}",qt)}else m.w("{50c79eb}","{2884507}");else 67==me?(m.i("{50c79eb}","{d2811a7}"),Ut.Qb.value="50",Ut.Rb.value="50",yf(Ut,.5,.5)):77==me?Ut.zb.checked=!Ut.zb.checked:He=!0;else He=!0}He&&(Ji(oi()),no(this.g,3,me,Kl(this,i),ae)),"Hankaku"!=i.key&&"Zenkaku"!=i.key||192!=me||(V=!0),this.O&&i.metaKey&&!ct&&(V=!0),this.o&&this.kb&&("Backspace"==i.code&&(V=!0),""==i.code&&"Enter"==i.key&&(He=new CompositionEvent("compositionend",{data:null===(p=this.textInputElement)||void 0===p?void 0:p.value}),null===(w=this.textInputElement)||void 0===w||w.dispatchEvent(He))),V&&(no(this.g,4,me,Kl(this,i),ae),this.Ya.delete(me))}}}Oa(i){let p=!1;const w=Rn(i.timeStamp);if(this.o&&""==i.code&&"Unidentified"==i.key&&!this.qa)no(this.g,3,8,0,w),no(this.g,4,8,0,w);else{var V=!(!this.O||!this.ja)&&"CapsLock"==i.code;V&&(p=p||V),Sh(this,i),(!this.$.includes(i.keyCode)||V)&&(V=V?160:Bu(this,i),p&&(no(this.g,3,V,Kl(this,i),w),this.Ya.add(V)),this.Ya.has(V)&&(this.Ya.delete(V),Ji(oi()),no(this.g,4,V,Kl(this,i),w)))}}wa(i){m.d("{8bacfa5}","{77df54c}",i?"fullscreen":"not fullscreen"),this.da({}),i?(window.isSecureContext&&(i=window.navigator.keyboard)&&i.lock&&i.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".split(" ")),this.j.onclick=null,this.j.removeAttribute("controls")):(Ms(this),qp(this.h),window.isSecureContext&&(i=window.navigator.keyboard)&&i.unlock&&i.unlock())}toggleUserInput(i,p){if(m.d("{8bacfa5}","{2424824}",i,p),p=p??15,i){var w,V,ae,me,He,ct,Ut=!this.yb(),Lt=(this.m^p)&p;if(Lt){if(this.m|=Lt,4&Lt&&Nc(this.l),1&Lt){var qt=this.h;if(!qt.C){if(qt.C=!0,!te(qt.u)){if(2==qt.cursorType&&qt.L){var on=qt.N;on.zd="pointerdown",on.Wd="pointerup",qt.videoAddEventListener("pointerdown",qt.xa),qt.videoAddEventListener("pointerup",qt.ya)}else(on=qt.N).zd="mousedown",on.Wd="mouseup",qt.videoAddEventListener("mousedown",qt.fa),qt.videoAddEventListener("mouseup",qt.pa);"Xbox"===qt.u.os||qt.videoAddEventListener("contextmenu",Dd)}qt.documentAddEventListener("wheel",qt.qa,qt.ra),uu(qt),0===qt.cursorType&&(qt.j.style.display="block"),ks(qt),kc(qt)}}2&Lt&&(this.documentAddEventListener("keydown",this.Na),this.documentAddEventListener("keyup",this.Pa),null===(w=this.textInputElement)||void 0===w||w.addEventListener("input",this.ab),null===(V=this.textInputElement)||void 0===V||V.addEventListener("compositionstart",this.L),null===(ae=this.textInputElement)||void 0===ae||ae.addEventListener("compositionupdate",this.L),null===(me=this.textInputElement)||void 0===me||me.addEventListener("compositionend",this.L),this.H=0,this.Da&&(null===(He=this.textInputElement)||void 0===He||He.addEventListener("focus",this.Sa),null===(ct=this.textInputElement)||void 0===ct||ct.addEventListener("blur",this.Qa))),8&Lt&&(this.s&&!this.kb?this.s.start():this.C&&this.C.start()),Ut&&this.preventNavigation&&!this.U&&(this.U=!0,history.pushState(null,document.title,location.href),this.windowAddEventListener("popstate",this.Ua))}}else{var Dn,Yn;(V=this.m&p)&&(this.m^=V,w=!this.yb(),4&V&&((ae=this.l).H=!1,ml(ae),Za(ae),Os&&(ae.o&&Jo(ae,ae.o),ae.windowRemoveEventListener("gamepadconnected",ae.oa),ae.windowRemoveEventListener("gamepaddisconnected",ae.pa),ad(ae),ae.F&&(ae.m.stop(),ae.m.reset()))),1&V&&(ae=this.h).C&&(qp(ae),ae.C=!1,te(ae.u)||(2==ae.cursorType&&ae.L?(ae.videoRemoveEventListener("pointerdown",ae.xa),ae.videoRemoveEventListener("pointerup",ae.ya)):(ae.videoRemoveEventListener("mousedown",ae.fa),ae.videoRemoveEventListener("mouseup",ae.pa)),"Xbox"===ae.u.os||ae.videoRemoveEventListener("contextmenu",Dd)),ae.documentRemoveEventListener("wheel",ae.qa,ae.ra),ef(ae),0===ae.cursorType&&(ae.j.style.display="none"),ks(ae),kc(ae),Xd(ae)),2&V&&(Ms(this),this.documentRemoveEventListener("keydown",this.Na),this.documentRemoveEventListener("keyup",this.Pa),null===(Ut=this.textInputElement)||void 0===Ut||Ut.removeEventListener("input",this.ab),null===(qt=this.textInputElement)||void 0===qt||qt.removeEventListener("compositionstart",this.L),null===(Lt=this.textInputElement)||void 0===Lt||Lt.removeEventListener("compositionupdate",this.L),null===(on=this.textInputElement)||void 0===on||on.removeEventListener("compositionend",this.L),this.Da&&(null===(Dn=this.textInputElement)||void 0===Dn||Dn.removeEventListener("focus",this.Sa),null===(Yn=this.textInputElement)||void 0===Yn||Yn.removeEventListener("blur",this.Qa))),8&V&&(this.C&&this.C.stop(),this.s&&this.s.stop(),0!==this.F&&Vu(this),(V=this.J).vb=void 0,yl(V)),w&&this.preventNavigation&&this.U&&(this.windowRemoveEventListener("popstate",this.Ua),history.back(),this.U=!1))}}yb(){return 0!==this.m}bb(i){i?($c(this),m.d("{8bacfa5}","{cb19d31}")):(m.d("{8bacfa5}","{8744dbe}"),Ms(this),qp(this.h))}Td(){void 0!==this.oa&&(this.toggleUserInput(!1,15&~this.oa),this.oa=void 0),this.g.Td()}cb(){this.aa&&ip(this)}getVirtualGamepadHandler(){return this.l.getVirtualGamepadHandler()}sendTextInput(i){this.g.sendTextInput(i)}Bb(i){switch(i.type){case"compositionstart":this.H=1;break;case"compositionupdate":!te(this.u)&&rp(i.data)||this.M.emit("TextComposition",{compositionText:i.data,imeRecommendation:!0});break;case"compositionend":const p=this.o?i.data.trim():i.data;p.length&&(i=te(this.u)||!rp(i.data),this.o&&!i?op(this,p):hg(this,p),i&&this.M.emit("TextComposition",{compositionText:""})),this.H=0}}Mb(){this.qa=!0;let i=this.textInputElement.value;1==this.H&&(this.o&&1<i.length&&(i=i.charAt(i.length-1)),this.H=2),this.o&&rp(i)?(op(this,i),this.H=0):2!=this.H&&hg(this,i)}setVirtualKeyboardState(i){m.i("{8bacfa5}","{60b2d45}",i),this.kb!==i&&(this.kb=i,this.C&&this.s&&(this.kb?(this.s.stop(),this.C.start()):(this.C.stop(),1!==this.I.ma&&Uc(this,0,0,1),this.s.start())))}setKeyboardLayout(i){this.ja="zh-TW"==i}scroll(i,p,w){0<w.length&&ma(this.g,Math.sign(w[0].deltaY),p)}sendKeyEvent(i){Eo(this.g)&&(Bu(this,i)?"keydown"===i.type?this.Ka(i):"keyup"===i.type&&this.Oa(i):"keydown"===i.type&&1===i.key.length&&(i=(new TextEncoder).encode(i.key),this.sendTextInput(i.buffer)))}Ib(i,p){this.h.Ib(i,p)}Ab(i,p){this.h.Ab(i,p)}ic(i){this.h.ic(i)}Mc(){wr&&(this.T=!this.T,this.N.Mc(this.j),this.T?this.l.l.push(this.N):Xi(this.l,this.N))}};function Od(i){i.h=!0,yl(i),bc(i),i.h=!1}function yl(i){0!==i.g&&(window.clearTimeout(i.g),i.g=0)}function bc(i){const p=i.vb;p&&(i.vb=void 0,p())}class tf{constructor(){this.g=0,this.h=!1}delay(p){this.h?p():(Od(this),this.vb=p,this.g=window.setTimeout(()=>{this.g=0,bc(this)},nf))}}var nf=30;function Pd(){let i=[];return i.push(162),i.push(163),i.push(164),i.push(165),i.push(91),i.push(92),i.push(160),i.push(161),i}function al(i){switch(i){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}function wd(i){return i.qualityScore=3*i.qualityScore/4+Math.min(i.latencyScore,i.networkLossScore,i.bandwidthScore)/4,{latencyScore:i.latencyScore,networkLossScore:i.networkLossScore,bandwidthScore:i.bandwidthScore,qualityScore:i.qualityScore}}var Mh=class{constructor(i,p){this.maxBitrate=i/1e3,this.g=p/1e3,this.networkLossScore=this.bandwidthScore=this.latencyScore=this.qualityScore=100}};function Ah(i){const p=i.j-i.g;return 0!=p?(i.l-i.h)/p:0}class Cc{constructor(){this.j=this.g=this.l=this.h=0}update(p,w){0==this.h&&0==this.g?(this.h=p,this.g=w):(this.j=w,this.l=p)}reset(){this.h=this.l,this.g=this.j}}function pg(i,p){i.M.innerText=Th(i,p),i.j={value:0,count:0,max:0},i.l={value:0,count:0,max:0},i.m.reset()}function Th(i,p){var w=`Seat: ${i.h.zoneName} (${i.h.Sd}) / ${i.h.gpuType}\n`,V=`Game: CMS ${i.h.appId}`;void 0!==i.avgGameFps&&(V+=` / fps ${i.avgGameFps.toFixed()}`),w=w+(V+"\n")+`Stream: Current ${mn(i.streamingResolution)}@${i.fps} / Default: ${i.h.streamInfo.width}x${i.h.streamInfo.height}@${i.h.streamInfo.fps} / Codec ${i.codec}\nNetwork: RTD ${i.rtd}ms / FL ${i.s} / PL ${i.N} / J ${i.H.toFixed(2)}ms / Bitrate ${i.o.toFixed(2)}Mbps / BWU ${i.Ob.toFixed(2)}%\nQOS: frame ${i.C} / FT ${i.P.toFixed(2)} / D ${(1e3*Ah(i.m)).toFixed(2)} / Q ${Math.floor(i.v.qualityScore)} / Marker ${i.S}\nClient: ${i.u.os} ${i.h.clientAppVersion} ${i.h.clientLocale} Resolution ${mn({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio})}\nInput ${i.g.qf}\n`,V=`DC ${rf(i.j)}ms (${i.j.max.toFixed(2)}ms) / Blocked ${i.L}\n`;const ae=`Stats ${rf(i.l)}ms (${i.l.max.toFixed(2)}ms) / FR ${i.O} / FDR ${i.J}\n`,me=`Latency ${i.v.latencyScore.toFixed(1)} / Network ${i.v.networkLossScore.toFixed(1)} / Bandwidth ${i.v.bandwidthScore.toFixed(1)}\n`,He=`VP ${i.g.tf?"y":"n"} / AP ${i.g.rf?"y":"n"} / UI ${i.g.yb?"y":"n"} / VKB ${i.g.kb?"y":"n"} / MS ${i.g.yf} / RSDMM ${+i.g.ad}\n`;return i=`KBL ${i.g.keyboardLayout} / ALM ${+i.g.appLaunchMode} / SWD ${i.U?"y":"n"} / ${i.bc}`,p&&(w+=V+ae+me+He+i),w}var Id=class{constructor(i,p,w){this.o=this.fps=0,this.Ob=4,this.N=this.rtd=this.H=this.J=this.O=this.C=this.R=this.F=0,this.streamingResolution={width:0,height:0},this.L=this.P=0,this.j={count:0,max:0,value:0},this.l={count:0,max:0,value:0},this.m=new Cc,this.T=this.s=this.xd=0,this.codec="UNKNOWN",this.U=!1,this.bc="",this.S=0,this.K=i,this.u=p,this.h=w,this.v={qualityScore:0,bandwidthScore:0,networkLossScore:0,latencyScore:0},(i=document.getElementById("overlay-543d9968"))||((i=document.createElement("div")).id="overlay-543d9968",i.style.display="none",i.style.position="fixed",te(this.u)?(i.style.top="env(safe-area-inset-top, 0)",i.style.left="max(24px, env(safe-area-inset-left, 0))"):(i.style.top="0",i.style.left="0"),i.style.padding="0.5em",i.style.backgroundColor="rgba(0,0,0,0.5)",i.style.zIndex="300",i.style.fontSize="12px",i.style.fontFamily="monospace",i.style.color="white",i.style.whiteSpace="pre",i.style.lineHeight="100%",i.style.pointerEvents="none",this.K.insertAdjacentElement("afterend",i)),this.M=i,this.g={tf:!1,rf:!1,yb:!1,kb:!1,yf:0,ad:!1,keyboardLayout:"",appLaunchMode:0,qf:""}}};function rf(i){let p=0;return 0<i.count&&(p=i.value/i.count),p.toFixed(2)}var Qd={size:70,version:1,name:"DEPR"},xh={size:80,version:3,name:"RTPV"},gu={size:48,version:1,name:"RTPA"},fm={size:88,version:1,name:"TRAA"},af={size:20,version:1,name:"PFDA"};function ll(i){0<i.g.length&&(Va(i.g,5),i.g=[])}var lf=class{constructor(){this.j=this.framesDropped=this.l=this.pliCount=this.framesDecoded=this.m=this.s=this.o=this.v=this.C=0,this.g=[],this.h=-1}sendVideoTrack(i){const p=i.framesDropped||0;p>=this.j&&(this.framesDropped=p-this.j,this.j=p);const w=new ArrayBuffer(44),V=new DataView(w);V.setUint32(0,i.framesDecoded||0,!0),V.setUint32(4,p,!0),V.setUint32(8,i.frameHeight||0,!0),V.setUint32(12,i.frameWidth||0,!0),V.setUint32(16,i.framesReceived||0,!0),V.setFloat64(20,i.jitterBufferDelay||0,!0),At(i.jitterBufferEmittedCount||0,V,28,!0),V.setFloat64(36,na(ke),!0),Va([w],3)}};function mu(){return!1===ys?Promise.resolve(0):window.navigator.permissions?window.navigator.permissions.query({name:"microphone"}).then(i=>{let p=2;return"granted"==(i=i.state)?p=5:"prompt"==i&&(p=1),p}).catch(()=>0):Promise.resolve(0)}function Rs(i,p,w=!0){i.h=p,3===i.h&&(i.N=!0),i.L&&w&&i.L.emit("MicCapture",{state:i.h})}function vu(i){if(i.initialized)if(Kc){i.l=!1,i.paused=!0;var p=i.h;if(navigator.mediaDevices.ondevicechange=()=>{},i.C){m.d("{223689a}","{6faf5bb}");let V=xa();var w=i.C.getSenders()[0];w?w.replaceTrack(V.getTracks()[0]).then(()=>{m.d("{223689a}","{797fa55}"),Rs(i,5,!1),3===p&&(i.F=!0)}).catch(ae=>{m.e("{223689a}","{79f26cc}",ae),Rs(i,7,!1)}).finally(()=>{let ae=i.g;i.g=null,ae&&ae.getTracks().forEach(me=>{me.stop()}),Rs(i,i.h),te(i.u)&&!W(i.u,!1,15,4)&&i.j()}):(m.e("{223689a}","{f7f0250}"),i.g=null)}else m.e("{223689a}","{9e75fa2}"),Rs(i,0)}else Rs(i,6)}function _u(i,p){var w;i.o=!0,i.s.set(p,(null!==(w=i.s.get(p))&&void 0!==w?w:0)+1),m.d("{223689a}","{30f8637}",p)}function Hu(i,p){return Ec.apply(this,arguments)}function Ec(){return(Ec=r(function*(i,p){return i.v=!0,navigator.mediaDevices.getUserMedia({audio:p}).then(w=>{if(m.d("{223689a}","{b204737}"),Rs(i,5,!1),i.v=!1,i.g=w,te(i.u)&&(w.getTracks()[0].onended=()=>{i.O=performance.now(),m.i("{223689a}","{6b60d82}"),vu(i)}),i.g.oninactive=()=>{m.d("{223689a}","{eee54f1}"),i.M.clear(),i.g=null},i.paused)m.d("{223689a}","{21e76e1}"),i.g=null,Rs(i,7);else{var V=i.C.getSenders()[0];V?V.replaceTrack(w.getTracks()[0]).then(()=>{var ae;m.i("{223689a}","{6c92139}");const me=null!==(ae=i.Ea)&&void 0!==ae?ae:i.K;if(te(i.u)&&!W(i.u,!1,15,4)&&me&&!me.muted){let He;me.srcObject&&(He=me.play(),m.i("{223689a}","{23a6493}",me.tagName)),He?He.then(()=>{m.d("{223689a}","{5593cbe}"),i.j()}).catch(ct=>{i.j();try{Fa(i.G,"WAR: Play Error",ct?.name,ct?.message),m.e("{223689a}","{69aae72}",ct?.name,ct?.message)}catch{}}):m.e("{223689a}","{b6a6508}")}Rs(i,3),i.F=!1,W(i.u,!1,15,4)&&(i.o=!1,i.J=!1)}).catch(ae=>{m.e("{223689a}","{5c42246}",ae),i.g=null,Rs(i,7)}):(m.e("{223689a}","{f7f0250}"),i.g=null)}}).catch(w=>{var V,ae;te(i.u)&&!W(i.u,!1,15,4)&&i.j(),i.v=!1,w instanceof DOMException&&"NotAllowedError"===w.name?(m.e("{223689a}","{3f9bd66}"),Rs(i,2),i.J&&!i.o&&_u(i,"permissionDenied")):w instanceof DOMException&&"NotFoundError"===w.name?(m.e("{223689a}","{7f04869}"),Rs(i,4)):(w instanceof DOMException&&"NotReadableError"===w.name?(i.M.add(null!==(V=p.deviceId)&&void 0!==V?V:"default"),m.e("{223689a}","{af7e08c}",null!==(ae=p.deviceId)&&void 0!==ae?ae:"default",w.name,w.message),navigator.mediaDevices.enumerateDevices().then(me=>{for(const He of me)if("audioinput"===He.kind&&"default"!==He.deviceId&&!i.M.has(He.deviceId)){m.d("{223689a}","{655d8b0}",He.deviceId,He.label),p.deviceId=He.deviceId,Hu(i,p);break}}).catch(me=>{m.e("{223689a}","{930e826}",me.name,me.message)})):m.e("{223689a}","{c361fc5}",w.name,w.message),Rs(i,7))})})).apply(this,arguments)}function Rd(i){return ac.apply(this,arguments)}function ac(){return(ac=r(function*(i){if(i.initialized)if(Kc){if(i.l=!0,null==i.g&&!i.v){i.paused=!1,Rs(i,1,!1);var p={sampleRate:48e3};ue(i.u)&&(p.googAutoGainControl2=!1),navigator.mediaDevices.ondevicechange=()=>{m.i("{223689a}","{50d0169}",!!i.g,i.v),null!=i.g||i.v||(m.d("{223689a}","{c849290}"),Rd(i))},yield Hu(i,p),i.H||Xl(i)}}else m.e("{223689a}","{999b07b}"),Rs(i,6)})).apply(this,arguments)}function Xl(i){return navigator.mediaDevices.enumerateDevices().then(p=>{let w=0;m.d("{223689a}","{fa1ec18}",JSON.stringify(p));for(const V of p)"audioinput"==V.kind&&w++;switch(w){case 0:i.H="No Audio Input",i.m.Od++;break;case 1:i.H="Built-in Microphone",i.m.ud++;break;default:i.H="Headset Microphone",i.m.Ed++}m.d("{223689a}","{0d14ab6}",i.H)}).catch(()=>{m.e("{223689a}","{21131d5}")})}function xa(){let i=ci(48e3);if(i){let p=i.createMediaStreamDestination().stream.getAudioTracks()[0];return i.close(),p.enabled=!0,new MediaStream([p])}throw Error("Mic stream is not supported")}function zc(i){if(!1!==ys){if(null!=i.g){let p=i.g;i.M.clear(),i.g=null,navigator.mediaDevices&&(navigator.mediaDevices.ondevicechange=()=>{}),p.getTracks().forEach(w=>{w.stop()})}i.l=!1,Rs(i,5),Vs(i.G,"AudioInputType",i.N?"started":"not started",0,i.m.Od,i.m.ud,i.m.Ed),W(i.u,!1,15,4)&&Vs(i.G,"LowAudioVolume","",0,i.s.get("permissionDenied"),i.s.get("visibilityChange"),i.s.get("deviceChange")),i.C=null,i.L=null,i.K=void 0,i.Ea=void 0,i.initialized=!1,i.m={Od:0,ud:0,Ed:0};for(const[p]of i.s)i.s.set(p,0);i.o=!1,i.F=!1,i.J=!1,i.N=!1}}function lc(i){return"Built-in Microphone"===i.H}function da(i,p){Xl(i).then(()=>{0!==p&&W(i.u,!1,15,4)&&!i.o&&lc(i)&&(i.l||i.F)&&_u(i,"deviceChange")})}var Mo=class{constructor(i,p){this.L=null,this.h=0,this.l=!1,this.M=new Set,this.initialized=this.P=!1,this.O=0,this.F=this.J=this.o=!1,this.m={Od:0,ud:0,Ed:0},this.s=new Map([["permissionDenied",0],["visibilityChange",0],["deviceChange",0]]),this.N=!1,this.u=i,this.G=p,this.g=this.C=null,this.paused=this.v=!1,W(i,!1,15)&&(this.P=!0)}initialize(i,p,w,V){if(!1!==ys){if(this.C=i,this.L=p,this.K=w,this.Ea=V,Kc){if(null==(i=xa()))return void m.w("{223689a}","{360f38b}");this.C.addTrack(i.getAudioTracks()[0],i),this.l&&Rd(this)}else m.w("{223689a}","{5813c2b}");this.initialized=!0}}j(){var i,p,w;if(Or&&this.P){var V=null!==(p=null===(i=this.Ea)||void 0===i?void 0:i.srcObject)&&void 0!==p?p:null===(w=this.K)||void 0===w?void 0:w.srcObject;if(V){m.i("{223689a}","{ad4b8c2}");var ae=V.getAudioTracks()[0];ae.enabled=!1,setTimeout(()=>{ae.enabled=!0},0)}}}getMicState(){return this.h}},Kc=null!=navigator.mediaDevices&&(window.AudioContext||window.webkitAudioContext||!1),Il={clientName:"Ragnarok",clientId:"62677554106929725",eventSchemaVer:"3.2"},ka=class extends Yi{constructor(i){super(i),this.name="Streamer_Start",this.gdprLevel="functional"}},Da=class extends Yi{constructor(i){super(i),this.name="Streamer_Exit",this.gdprLevel="functional"}},Dh=class extends Yi{constructor(i){super(i),this.name="Streamer_InputDevice",this.gdprLevel="functional"}};function Mc(i,p){const w=i.j.get(p);if(w){i.h=w;for(const V of i.g)V(i.getCurrentNetworkType())}else m.d("{aac1655}","{1e3c13d}",p)}var Ac=new class ua{constructor(){var p;this.j=new Map([["Ethernet","ETHERNET"],["5GHz_WiFi","WIFI_5_0"],["2.4GHz_WiFi","WIFI_2_4"],["Others","OTHER"],["disconnected","UNKNOWN"],["wifi","WIFI"],["ethernet","ETHERNET"],["none","UNKNOWN"],["bluetooth","BLUETOOTH"],["wimax","WIMAX"],["other","OTHER"],["mobile","MOBILE"],["unknown","UNKNOWN"],["NONE","UNKNOWN"],["UNKNOWN","UNKNOWN"],["ETHERNET","ETHERNET"],["WIFI","WIFI"],["NET_PROXY","OTHER"],["2G","MOBILE_2G"],["2.5G","MOBILE_2G"],["3G","MOBILE_3G"],["4G","MOBILE_4G"]]),this.h="UNKNOWN",this.g=[],window.addEventListener("GFNNetworkInfo",V=>{m.d("{aac1655}","{2925c9d}",V.detail.state),Mc(this,V.detail.state)});const w=navigator.connection;if(null!=w&&w.type&&(Mc(this,w.type),w.addEventListener("change",()=>{var V;const ae=null===(V=navigator.connection)||void 0===V?void 0:V.type;ae&&(m.d("{aac1655}","{4a9e05b}",ae),Mc(this,ae))})),null!==(p=window.tizen)&&void 0!==p&&p.systeminfo){p=V=>{(V=V.networkType)&&(m.d("{aac1655}","{e9b5f27}",V),Mc(this,V))};try{window.tizen.systeminfo.getPropertyValue("NETWORK",p),window.tizen.systeminfo.addPropertyValueChangeListener("NETWORK",p)}catch(V){m.w("{aac1655}","{7d035ae}",V)}}}registerCallback(p){this.g.push(p)}unregisterCallback(p){const w=this.g.findIndex(V=>V==p);-1!==w&&this.g.splice(w,1)}getCurrentNetworkType(){return this.h}};function Fa(i,p,w,V,ae,me){p=new Qi({key1:p??"",key2:w??"",key3:V??"",key4:ae??"",key5:me??"",moduleName:"RAGNAROK",networkType:Le(Ac.getCurrentNetworkType()),overrideConfigType:Ds.type,overrideConfigVersion:Ds.version,cmsId:String(i.cmsId),sessionId:i.sessionId,subSessionId:i.subSessionId}),i.h(p)}function ju(i,p,w,V,ae,me,He,ct,Ut){50<=i.H||(i.H++,p=new Dh({deviceName:p,deviceType:"GAMEPAD",vendorId:w,productId:V,deviceIndex:ae,reportIndex:He?0:ae,hapticsSupported:_t(me),hapticsFeedbackCount:0,state:ct,eventMapReceived:Ut,eventMapProcessed:Ut,sessionId:i.sessionId,subSessionId:i.subSessionId,cmsId:String(i.cmsId)}),i.h(p))}function Vs(i,p,w,V,ae,me,He){p=new Dr({metricName:p,moduleName:"RAGNAROK",valueInt1:ae,valueInt2:me,valueInt3:He,valueString:w,valueDouble:V,networkType:Le(Ac.getCurrentNetworkType()),cmsId:String(i.cmsId),sessionId:i.sessionId,subSessionId:i.subSessionId}),i.h(p)}class Oh extends ao{constructor(){super(Il),this.cmsId=this.subSessionId=this.sessionId="",this.isResume=!1,this.zoneAddress="",this.H=0,this.v=new Map,this.C=0}za(p,w,V,ae,me,He,ct){var Ut;if(50<=this.C)var Lt=!1;else{var qt=null!==(Lt=this.v.get(w))&&void 0!==Lt?Lt:0;10<=qt?Lt=!1:(this.C++,this.v.set(w,qt+1),Lt=!0)}Lt&&(p instanceof DOMException&&(p={name:p.name,message:p.message}),p=new vr({filename:V,lineno:ae,stacktrace:null!==(Ut=p?.stack)&&void 0!==Ut?Ut:"",colno:me,handled:_t(He),category:ct??"",message:w,moduleName:"RAGNAROK",sessionId:this.sessionId,subSessionId:this.subSessionId}),this.h(p))}}var Ja=new Oh;function cc(i,p){i.J.hasListener("TelemetryEvent")?i.J.emit("TelemetryEvent",p):Vp(i.j,p)}function lp(i,p){let w=!1;var V;i.clientShutDownCallback&&(w=i.clientShutDownCallback(p),m.d("{9838627}","{caf81d9}",w)),w||(m.d("{9838627}","{e939db1}"),i=i.j,m.d("{f7c1592}","{01dcfe5}",null===(V=p.parameters)||void 0===V?void 0:V.sessionId),Xo(i,p),bd(wu(i,i.h.eventPayload)))}var df=class extends Oh{constructor(i,p){super(),this.J=i,this.j=p,this.j.F=this.za.bind(this)}h(i){cc(this,{name:i.name,gdprLevel:i.gdprLevel,parameters:i.parameters,ts:i.ts,clientConfig:Il})}};function uf(i,p){switch(i){case 0:var w,V=window.RTCPeerConnection;if(V)if(te(p))p=W(p,!1,14,3);else{switch(i=!1,xe(p)&&(i=!0),window.chrome&&("Chrome"==p.browser?ee(p,77)&&(i=!0):i=!0),p.browser){case"Edge_Legacy":i=!1;break;case"Safari":const ae=V?.prototype;if(V=ae&&(null===(w=ae.hasOwnProperty)||void 0===w?0:w.call(ae,"canTrickleIceCandidates")))e:if("Safari"!=p.browser)V=!1;else{try{V=Pe(p.browserVer,!1,16,4);break e}catch{m.w("{d988e7f}","{07fd1dd}")}V=!0}V&&(i=!0)}p=i}else p=!1;return p;case 1:return Kc;default:return!1}}function yu(i){return!(X(i)||Q(i)||te(i))}function Yu(i,p,w){var V,ae,me,He;const ct=4953600<=i*p;var Ut=30===w?1.25*w:Math.min(w,60);let Lt=i*p*Ut;return Ye(i,p)||ct?(i=null!==(ae=null!==(V=gr)&&void 0!==V?V:Pr.bitsPerPixel1440p)&&void 0!==ae?ae:.325,Ut=(V=2073600*Ut)+(3686400*Ut-V)/3,Lt=ct?Ut+(Lt-Ut)/12:V+(Lt-V)/3):i=null!==(He=null!==(me=ur)&&void 0!==me?me:Pr.bitsPerPixel)&&void 0!==He?He:.3,Lt=Lt*i/1200,120<=w&&!ct&&(Lt=Math.min(5e4,Math.round(1.15*Lt))),[Math.round(Lt),5e4]}function wh(i,p){return p*=1e3,p=3600*(120===i?.916*p+293098:.678*p+910569)/1e9/8,30===i&&(p*=.625),Math.round(.95*p)}function dp(i){return Yl.apply(this,arguments)}function Yl(){return Yl=r(function*(i){let p=0;return"iOS"===i.os&&(p|=1),"iPadOS"===i.os&&(p|=2),Q(i)&&function he(){var i,p;if(navigator.userAgent.includes("SamsungBrowser"))return!1;const w=null===(i=window.webapis)||void 0===i?void 0:i.productinfo;return!(null==w||!w.isUdPanelSupported())&&(i=null===(p=w.getSmartTVServerVersion)||void 0===p?void 0:p.call(w),(p=i&&(p=i.match(/T-INFOLINK(\d+)-(\d+)/))?{year:parseInt(p[1],10),version:parseInt(p[2],10)}:void 0)?(m.i("{d988e7f}","{fc40a4b}",i=p.year,p=p.version),2021===i||2023<=i||2022===i&&1008<=p):(m.e("{d988e7f}","{e227976}",i),!1))}()&&(p|=4),X(i)&&navigator.userAgent.includes("PWA")&&window.lge_webrtc_hevc_support&&(p|=8),"VISIONPRO"===i.deviceModel&&(p|=16),function Zg(i){return Ih.apply(this,arguments)}(p)}),Yl.apply(this,arguments)}function Ih(){return(Ih=r(function*(i){var p=screen.width,w=screen.height,V=window.devicePixelRatio,ae=!!(4&i)||!!(8&i)||!!(16&i);return[p,w]=D([p,w]),w={width:Math.round(p*V),height:Math.round(w*V),fps:60,scaleFactor:Math.round(100*V)},V=void 0,ae?V={width:3840,height:2160,fps:w.fps}:2&i&&1366<=p&&(V={width:1600,height:1200,fps:w.fps}),i=[{width:2560,height:1600,fps:120},{width:3840,height:1080,fps:120}],ae&&i.push({width:3840,height:2160,fps:60}),{displayMode:w,maxAutoMode:V,maxSupportedModes:i,features:{vsync:0,vvsync:!1,hdr:!1,reflex:!1,audioChannelCount:ae=_()}}})).apply(this,arguments)}function Ld(i){let p=0;return null!=i&&i.supported&&(p|=1),null!=i&&i.smooth&&(p|=2),null!=i&&i.powerEfficient&&(p|=4),p}function Tc(i,p=1920,w=1080,V=60){const ae=navigator.mediaCapabilities;return ae?ae.decodingInfo({type:"webrtc",video:{contentType:"video/"+i,width:p,height:w,framerate:V,bitrate:1e3*Yu(p,w,V)[0]}}).catch(me=>{m.w("{5083445}","{f5c2155}",i,me)}):Promise.resolve(void 0)}function Bc(){var i=Su;return i.l?Promise.resolve(i.l):i.g?i.g:i.m()}function Nd(i,p){return p&&(i.refreshRate=void 0),i.refreshRate?Promise.resolve(i.refreshRate):i.j?i.j:function up(i){return i.j=function hp(){return new Promise((i,p)=>{let w=!1;const V=window.setTimeout(()=>{w=!0},4e3),ae=[];let me,He=window.innerWidth,ct=window.innerHeight,Ut=window.screenX,Lt=window.screenY;const qt=()=>{window.requestAnimationFrame(()=>{if(w)m.w("{5083445}","{0b0c6f9}","Timed out during the refreshRate loop"),window.clearTimeout(V),p();else{if(window.innerWidth!=He||window.innerHeight!=ct||Ut!=window.screenX||Lt!=window.screenY){He=window.innerWidth,ct=window.innerHeight,Ut=window.screenX,Lt=window.screenY;var on=!0}else on=!1;on?(m.w("{5083445}","{824b461}"),ae.length=0,qt()):(on=performance.now(),ae.length&&ae[0]<=on-2e3?(me=Math.floor(ae.length/2),m.d("{5083445}","{8c3d290}",me,ae[ae.length-1]-ae[0]),on=me,window.clearTimeout(V),i(on)):(ae.push(on),qt()))}})};qt()})}().then(p=>(i.refreshRate=p,i.refreshRate),()=>{var p;return null!==(p=i.refreshRate)&&void 0!==p?p:0}),i.j}(i)}function kd(){return Zd.apply(this,arguments)}function Zd(){return(Zd=r(function*(){return 117<=(yield Nd(Su,!1))})).apply(this,arguments)}var Su=new class{constructor(){hn.push(this.s.bind(this)),hn.push(this.m.bind(this)),hn.push(this.o.bind(this))}m(){return this.g=Tc("av1").then(i=>this.l=i)}o(){return this.h=Promise.resolve(void 0)}s(){var i=this;return r(function*(){return 117<=(yield Nd(i,!0))})()}};function fp(){return(fp=r(function*(i,p){var w,V,ae;const me=null!==(V=null!==(w=Kn)&&void 0!==w?w:Pr.enableAv1Support)&&void 0!==V?V:(ue(p)||Me(p))&&"Chrome"==p.browser;return w=null!==(ae=Pr.enableAv1ByResolutionAndFps)&&void 0!==ae?ae:7,!(!me||4953600<=i.width*i.height&&!(4&w)||Ye(i.width,i.height)&&!(2&w)||!(120!==i.fps||1&w))&&(X(p)&&null!=window.lge_webrtc_av1_support?window.lge_webrtc_av1_support:!(null==(i=yield Bc())||!i.powerEfficient))})).apply(this,arguments)}function Fd(){return(Fd=r(function*(i){return X(i)&&null!=window.lge_webrtc_hevc_support?window.lge_webrtc_hevc_support:!(!Q(i)&&(i=Su,null==(i=yield i.v?Promise.resolve(i.v):i.h?i.h:i.o())||!i.powerEfficient))})).apply(this,arguments)}function hf(i,p){return vd.apply(this,arguments)}function vd(){return vd=r(function*(i,p){var w;let V=[];const ae=null!==(w=cr)&&void 0!==w?w:Pr.codecList;if(ae)for(const me of ae)V.push(me);else i=function pp(i,p){return fp.apply(this,arguments)}(i,p),p=function md(i){return Fd.apply(this,arguments)}(p),(yield i)&&V.push("AV1"),(yield p)&&V.push("H265"),V.push("H264");return V}),vd.apply(this,arguments)}function ff(i,p){const w=i.K.videoWidth;return i=i.K.videoHeight,new DOMRect(p.x*w,p.y*i,p.width*w,p.height*i)}function us(i){const p={isPrimary:!0,pointerId:1,button:0};i.K.dispatchEvent(new PointerEvent("pointerdown",p)),i.K.dispatchEvent(new MouseEvent("mousedown")),window.setTimeout(()=>{i.K.dispatchEvent(new PointerEvent("pointerup",p)),i.K.dispatchEvent(new MouseEvent("mouseup"))},100)}var _d=class{constructor(i){this.active=!1,this.m=.06,this.l=new DOMRect(0,0,0,0),this.g=[],this.h=[],this.K=i,this.j=this.v.bind(this)}o(){return this.active}v(i){if(this.g.length){if(!(this.h.length&&100>i.timeStamp-this.h[this.h.length-1].Sb))for(this.h.push({Sb:i.timeStamp,Ec:performance.now()});32<this.h.length;)this.h.shift()}else m.w("{0c7ed7c}","{fe08a50}")}};function Vc(i,p){i.Yb.checked=p,i.s.disabled=!p,i.C.disabled=!p,i.l.style.color=p?"white":"gray"}function gp(i,p=!1){p&&(i.g.style.bottom="5px",i.g.style.left="300px",i.g.style.top="",i.g.style.right="",i.g.style.width="150px",i.g.style.height="150px"),i.o()?(i.m.style.display="none",i.g.style.border="2px rgb(76, 175, 80) solid",i.g.style.backgroundColor="transparent"):(i.m.style.display="block",i.g.style.border="none",i.g.style.backgroundColor="rgb(105, 105, 105, 0.7)")}function mp(i,p){if(p!==i.visible){for(var w of(m.i("{50c79eb}","{5595c14}",p),i.visible=p,[i.L,i.g,i.v]))w===i.v&&p?cl(i,"Show hotkeys"!==i.h.value):w.style.display=p?"block":"none";var V=Bt();if(w=V?"pointerdown":"mousedown",V=V?"pointermove":"mousemove",p){i.P(),function Gc(i,p){let w=0,V=0,ae=0,me=0;const He=document.onmouseup,ct=document.onmousemove;p.onmousedown=Ut=>{Ut.preventDefault(),w=Ut.clientX,V=Ut.clientY,document.onmouseup=()=>{document.onmouseup=He,document.onmousemove=ct},document.onmousemove=Lt=>{Lt.preventDefault(),ae=w-Lt.clientX,me=V-Lt.clientY,w=Lt.clientX,V=Lt.clientY,i.style.top=i.offsetTop-me+"px",i.style.left=i.offsetLeft-ae+"px"}}}(i.g,i.m),i.O.oninput=me=>{me=parseFloat(me.target.value);var He=i.j;0>=me||1<=me?m.e("{0c7ed7c}","{1cbd879}",me.toFixed(2)):He.m=me,i.S.innerHTML=(100*me).toFixed()+"%"},i.Yb.oninput=me=>{Vc(i,me.target.checked)},i.s.oninput=me=>{i.U.innerHTML=me.target.value},i.C.oninput=me=>{i.W.innerHTML=me.target.value+" ms"},i.zb.oninput=me=>{i.zb.checked=me.target.checked};const ae=(me,He)=>{He.value=Math.max(Math.min(parseInt(me.target.value),100),0).toFixed(0),yf(i,parseInt(i.Qb.value||"50")/100,parseInt(i.Rb.value||"50")/100)};i.Qb.oninput=me=>ae(me,i.Qb),i.Rb.oninput=me=>ae(me,i.Rb),i.H.onclick=()=>bu(i,"Start"===i.H.value),i.h.onclick=()=>cl(i,"Show hotkeys"===i.h.value),i.g.onmouseup=i.P.bind(i),i.g.onmousedown=()=>{i.o()&&us(i.j)},Xc(i.Z,2,i.$),i.K.addEventListener(w,i.aa),i.K.addEventListener(V,i.ca)}else bu(i,!1),i.O.oninput=null,i.Yb.oninput=null,i.s.oninput=null,i.C.oninput=null,i.zb.oninput=null,i.Qb.oninput=null,i.Rb.oninput=null,i.H.onclick=null,i.h.onclick=null,i.g.onmouseup=null,i.g.onmousedown=null,i.m.onmousedown=null,Ql(i.Z,2,i.$),i.K.removeEventListener(w,i.aa),i.K.removeEventListener(V,i.ca)}}function bu(i,p){p&&!function Qs(i){const p=ff(i,i.l);return!(0>p.x||0>p.y||p.x+p.width>i.K.videoWidth||p.y+p.height>i.K.videoHeight)}(i.j)?function gf(i){i.R.style.display="block",window.setTimeout(()=>i.R.style.display="none",5e3)}(i):p&&i.M?m.e("{50c79eb}","{89742e9}"):(function pf(i,p){i.active!==p&&((i.active=p)?(m.i("{0c7ed7c}","{b56e30d}"),i.K.dispatchEvent(new Event("focus",{bubbles:!0})),i.K.addEventListener("pointerdown",i.j),i.K.addEventListener("mousedown",i.j)):(m.i("{0c7ed7c}","{00425c2}"),i.K.removeEventListener("pointerdown",i.j),i.K.removeEventListener("mousedown",i.j),i.g=[],i.h=[]))}(i.j,p),gp(i),p?(i.H.value="Stop",i.Yb.checked&&(m.i("{50c79eb}","{5974b2c}"),i.M=!0,i.da=parseInt(i.s.value),i.N=window.setInterval(()=>{0<i.da--?us(i.j):(m.i("{50c79eb}","{d37e51d}"),mf(i),bu(i,!1))},parseInt(i.C.value)))):(i.H.value="Start",i.M&&(i.N?(m.i("{50c79eb}","{d340c50}"),mf(i)):m.w("{50c79eb}","{6d8948b}")),vf(i),Lh(i)))}function Ud(i,p){i.value=p.toString(),i.dispatchEvent(new Event("input"))}function cl(i,p){p?(i.h.value="Hide hotkeys",i.v.style.display="block"):(i.h.value="Show hotkeys",i.v.style.display="none")}function mf(i){window.clearInterval(i.N),i.N=0,i.M=!1}function vf(i){0!==i.J&&(window.clearTimeout(i.J),i.J=0)}function Lh(i){i.F.innerHTML="",i.F.style.display="none"}function _f(i){var p;const w=null!==(p=i.processingDuration)&&void 0!==p?p:0;return{pf:i.Ec-i.Sb,Tf:i.receiveTime?i.receiveTime-i.Ec:0,We:i.receiveTime&&i.processingDuration?i.presentationTime-i.processingDuration-i.receiveTime:0,decode:w,Pf:i.rd-i.presentationTime,total:i.rd-i.Sb}}function yf(i,p,w){const V=i.K.getBoundingClientRect(),ae=i.g.getBoundingClientRect(),{paddingTop:me,paddingRight:He,paddingBottom:ct,paddingLeft:Ut}=_p(i.K);p=V.left+Ut+(V.width-Ut-He)*p-ae.width*p,i.g.style.top=(V.top+me+(V.height-me-ct)*w-ae.height*w).toString()+"px",i.g.style.left=p.toString()+"px",i.P()}function dl(){const i=document.createElement("div");return i.style.display="none",i.style.position="absolute",i.style.color="white",i.style.backgroundColor="rgb(105, 105, 105, 0.7)",i.style.padding="2px",i}function $u(i){const p=document.createElement("div");return p.style.width="100%",p.style.borderBottom="1px dashed darkgray",p.style.paddingBottom="2px",p.innerHTML=i,p}function vp(i){const p=document.createElement("input");return p.type="button",p.value=i,p.style.margin="5px",p.style.backgroundColor="rgb(132, 130, 143, .7)",p.style.color="white",p.style.padding="8px 40px",p.style.border="none",p.style.borderRadius="4px",p.style.cursor="pointer",p}function Nh(){const i=document.createElement("input");return i.type="checkbox",i}function As(i){const p=document.createElement("label");return p.innerHTML=i,p}function Jd(i,p,w,V=1){const ae=document.createElement("input");return ae.type="range",ae.min=p.toString(),ae.max=w.toString(),ae.step=V.toString(),ae.value=i.toString(),ae}function _p(i){const p=w=>{if(!w)return 0;const V=w.length;return"%"===w.substring(V-1)?parseInt(w.substring(0,V-1)):"px"===w.substring(V-2)?parseInt(w.substring(0,V-2)):(m.w("{50c79eb}","{3351f27}",w),0)};return{paddingTop:p(i.style.paddingTop),paddingRight:p(i.style.paddingRight),paddingBottom:p(i.style.paddingBottom),paddingLeft:p(i.style.paddingLeft)}}var bf=class{constructor(i,p){this.Z=p,this.visible=!1,this.dc=[],this.M=!1,this.da=this.N=0,this.T={x:0,y:0},this.J=0,this.K=i,this.j=new _d(i),this.$=this.ga.bind(this),this.aa=this.fa.bind(this),this.ca=this.onmousemove.bind(this),p=dl();var w=$u("Latency Display Analysis Tool (LDAT)");this.H=vp("Start"),this.h=vp("Show hotkeys"),p.style.bottom="0px",p.style.left="0px",p.style.margin="5px",this.h.style.border="1px solid white",this.h.style.fontSize="10px",this.h.style.padding="5px",this.h.style.position="absolute",this.h.style.right="0px",p.appendChild(w),p.appendChild(this.H),p.appendChild(this.h),w=p.appendChild;var V=document.createElement("div"),ae=this.j.m;this.O=Jd(ae,.01,.2,.01),this.S=document.createElement("span");var me=As("Activation Level"),He=document.createElement("span");for(var ct of(this.S.innerHTML=(100*ae).toFixed()+"%",He.style.paddingRight="2px",He.title="% increase in luminance used to determine whether a flash occurred",He.innerHTML="<sup> i </sup>",V.appendChild(me),V.appendChild(He),V.appendChild(this.O),V.appendChild(this.S),w.call(p,V),w=p.appendChild,V=document.createElement("div"),this.l=document.createElement("div"),this.Yb=Nh(),this.s=Jd(20,5,100,5),this.C=Jd(1e3,500,5e3,100),ae=As("Autofire"),me=As("# Shots"),He=As("Shot Delay"),this.U=document.createElement("span"),this.W=document.createElement("span"),this.U.innerHTML=this.s.value,this.W.innerHTML=this.C.value+" ms",this.s.id="shot-count-slider",this.l.appendChild(me),this.l.appendChild(this.s),this.l.appendChild(this.U),this.l.appendChild(document.createElement("br")),this.l.appendChild(He),this.l.appendChild(this.C),this.l.appendChild(this.W),V.appendChild(ae),V.appendChild(this.Yb),V.appendChild(this.l),w.call(p,V),p.appendChild(function Sf(i){const p=document.createElement("div"),w=As("Loupe Position:"),V=As("X"),ae=As("Y");V.style.paddingLeft="10px",ae.style.paddingLeft="10px",V.style.paddingRight="2px",ae.style.paddingRight="2px";const me=()=>{const He=document.createElement("input");return He.type="number",He.min="0",He.max="100",He.step="1",He.placeholder="Int",He.style.width="40px",He};return i.Qb=me(),i.Rb=me(),p.appendChild(w),p.appendChild(V),p.appendChild(i.Qb),p.appendChild(As("%")),p.appendChild(ae),p.appendChild(i.Rb),p.appendChild(As("%")),p}(this)),this.zb=Nh(),(w=document.createElement("span")).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.",w.innerHTML="<sup> i </sup>",p.appendChild(As("Move On Click")),p.appendChild(w),p.appendChild(this.zb),this.L=p,p=dl(),w=$u("Loupe"),this.m=document.createElement("div"),this.m.style.cursor="move",this.m.style.width="100%",this.m.style.height="100%",this.m.innerHTML="Click here to drag the loupe to the area of the screen where flashes will occur.  Then, press start.",p.appendChild(w),p.appendChild(this.m),this.g=p,(p=dl()).style.position="relative",p.style.backgroundColor="gray",p.style.textAlign="center",p.innerHTML="Warning: Must place loupe over video element to activate the LDAT.  Please reposition the loupe and then click start.",this.R=p,p=dl(),w=$u("LDAT Hot Keys"),V=document.createElement("ul"),p.style.bottom="195px",p.style.left="0px",p.style.margin="5px",V.style.listStyle="none",V.style.paddingLeft="2px",V.style.margin="5px",["Enter - Start/Stop","R - Reset","A - Turn On/Off Auto-Fire Mode","S - Save Log File","C - Center Loupe on Screen"]))(ae=document.createElement("li")).innerHTML=ct,V.append(ae);p.appendChild(w),p.appendChild(V),this.v=p,(ct=dl()).style.bottom="325px",ct.style.left="0px",ct.style.margin="5px",this.F=ct,i.insertAdjacentElement("afterend",this.L),this.L.insertAdjacentElement("afterend",this.g),this.g.insertAdjacentElement("afterend",this.R),this.L.insertAdjacentElement("beforebegin",this.v),this.v.insertAdjacentElement("beforebegin",this.F),this.j.s=this.ea.bind(this),Vc(this,!1),this.zb.checked=!1,gp(this,!0)}stop(){this.L.remove(),this.g.remove(),this.R.remove(),this.v.remove(),this.F.remove(),mp(this,!1),this.dc=[]}reset(){bu(this,!1),Ud(this.O,.06),Ud(this.s,20),Ud(this.C,1e3),Vc(this,!1),this.zb.checked=!1,gp(this,!0),cl(this,!1),this.Qb.value="",this.Rb.value="",this.dc=[]}isVisible(){return this.visible}toggle(){bu(this,!this.o())}o(){return this.j.o()}Cb(){return!this.isVisible()||this.o()}fa(i){if(this.zb.checked&&this.o()&&!i.gf){const p=(ae,me)=>{switch(ae){case 0:this.K.dispatchEvent(new PointerEvent("pointerup",me)),this.K.dispatchEvent(new MouseEvent("mouseup",me));break;case 1:ae=new PointerEvent("pointerdown",me),me=new MouseEvent("mousedown",me),ae.gf=!0,me.gf=!0,this.K.dispatchEvent(ae),this.K.dispatchEvent(me);break;case 2:this.K.dispatchEvent(new PointerEvent("pointerrawupdate",me)),this.K.dispatchEvent(new PointerEvent("pointermove",me)),this.K.dispatchEvent(new MouseEvent("mousemove",me))}},w={button:2,isPrimary:!0,pointerId:1},V={clientX:(Math.max(i.clientX,0)||this.T.x)+64,clientY:Math.max(i.clientY,0)||this.T.y,movementX:64,isPrimary:!0};p(1,w),window.setTimeout(()=>{p(2,V),window.setTimeout(()=>{V.clientX-=64,V.movementX=-64,p(2,V),window.setTimeout(()=>p(0,w),300)},300)},300)}}onmousemove(i){this.T={x:i.clientX,y:i.clientY}}P(){var i=this.K.getBoundingClientRect();const p=this.g.getBoundingClientRect();if(this.K.style.paddingTop||this.K.style.paddingRight||this.K.style.paddingBottom||this.K.style.paddingLeft){const{paddingTop:w,paddingRight:V,paddingBottom:ae,paddingLeft:me}=_p(this.K);i.x+=me,i.y+=w,i.width-=me+V,i.height-=w+ae}p.x=(p.x-i.x)/i.width,p.y=(p.y-i.y)/i.height,p.width/=i.width,p.height/=i.height,i=this.j,0>=p.width||0>=p.height?m.e("{0c7ed7c}","{3e0eb8f}",p.width,p.height):i.l=p}ga(){this.P()}ea(i){vf(this),this.dc.push(i);const p=_f(i),w=p.total.toFixed(),V=`Flash occurred at frame ${i.presentedFrames}. Latency: ${w} ms.`;m.i("{50c79eb}","{78905f8}",i.presentedFrames,w),m.d("{50c79eb}","{d3d4a0c}",w,p.pf.toFixed(),p.Tf.toFixed(),p.We.toFixed(),p.decode.toFixed(),p.Pf.toFixed()),this.F.innerHTML=V,this.F.style.display="block",this.J=window.setTimeout(()=>{Lh(this),this.J=0},5e3)}},yp=class extends Map{constructor(){super([["TCP",0],["MDNS",0],["IPV6",0],["IPV4",0],["UNKNOWN",0]])}};function Sp(i){var p,w,V,ae;i.m=window.setInterval(()=>{!function mg(i){if(!i.J)if(i.J=!0,0===i.U)i.C.getStats().then(p=>{i.j=p}).catch(p=>qd(i,p,"early")).finally(()=>{i.J=!1});else if(1===i.U)if(i.ga){const p=i.C.getReceivers().find(w=>w.track.kind===i.mediaType&&w.track.enabled);p&&p.getStats().then(w=>Cf(i,w)).catch(w=>qd(i,w,"standard")).finally(()=>{i.J=!1})}else!function gg(i){i.C.getStats(null).then(p=>{let w=!1;for(let V of p.values())if("track"===V.type&&(w=!0),["transport","inbound-rtp","candidate-pair"].includes(V.type)){"audio"===V.kind&&(i.wa=!0);const ae=i.P.get(V.type);ae?ae.includes(V.id)?m.e("{5cea617}","{76f5968}",V.id):ae.push(V.id):i.P.set(V.type,[V.id])}i.aa=!w,m.i("{5cea617}","{1317761}",i.aa?"yes":"no"),i.ga=!0,i.j=p,Cf(i,p)}).catch(p=>qd(i,p,"init")).finally(()=>{i.J=!1})}(i);else i.J=!1}(i)},null!==(p=Pr.getStatsInterval)&&void 0!==p?p:96),window.chrome&&(i.F=window.setInterval(()=>{!function vg(i){if(!i.T){i.T=!0;var p=()=>{m.i("{5cea617}","{cf8b53f}"),i.T=!1,clearInterval(i.F),i.F=0};i.C.getStats(w=>{for(var V of w.result())if("ssrc"==V.type)for(var ae of V.names()){"video"===V.stat("mediaType")&&(i.H.ts=na(ke),i.H.timingFrameInfo=V.stat("googTimingFrameInfo"),i.H.targetDelayMs=+V.stat("googTargetDelayMs"),i.H.minPlayoutDelayMs=+V.stat("googMinPlayoutDelayMs"),i.H.currentDelayMs=+V.stat("googCurrentDelayMs"));break}if(!(15>(V=(w=i.H).timingFrameInfo.split(",",15)).length)){ae=new ArrayBuffer(Qd.size);var me=new DataView(ae);me.setUint32(0,w.targetDelayMs||0,!0),me.setUint32(4,w.minPlayoutDelayMs||0,!0),me.setUint32(8,w.currentDelayMs||0,!0),me.setFloat64(12,na(ke),!0),me.setFloat64(20,parseFloat(V[3])||0,!0),me.setFloat64(28,parseFloat(V[4])||0,!0),me.setFloat64(36,parseFloat(V[8])||0,!0),me.setFloat64(44,parseFloat(V[9])||0,!0),me.setFloat64(52,parseFloat(V[10])||0,!0),me.setFloat64(60,parseFloat(V[11])||0,!0),me.setUint8(68,parseFloat(V[13])||0),me.setUint8(69,parseFloat(V[14])||0),Va([ae],0)}i.T=!1},p).catch(p)}}(i)},null!==(w=Pr.getDeprecatedStatsInterval)&&void 0!==w?w:201)),null===(ae=(V=i.K).requestVideoFrameCallback)||void 0===ae||ae.call(V,i.sa)}function Cf(i,p){var w=performance.now();if(w>=i.$&&"video"===i.mediaType){!function Tf(i,p){var w,V,ae,me=i.P.get("inbound-rtp");if(me&&i.j)if(me=me.map(ct=>p.get(ct)).find(ct=>"video"===ct?.kind||"video"===ct?.mediaType)){var He=(me=zu(i,p,me)).decoderImplementation;if(null!=He&&He.indexOf){He!==i.h.bc&&"unknown"!==He&&(i.h.bc=He,i.g.bc=He);const ct=-1!==i.u.gpuDetail.indexOf("SwiftShader");-1===He.indexOf("fallback")&&"FFmpeg"!==He&&!ct||-1!==i.h.xc||(i.h.xc=null!==(w=me.framesDecoded)&&void 0!==w?w:i.l,function Kr(){var i=ke;if(i.h){const p={clientEvent:{TS:na(i),eventtype:"SoftwareDecodeFallback"}};i.g&&i.g.postMessage(p)}}(),w="Fallback to software decode at frame "+String(i.h.xc),m.i("{5cea617}","{953d211}",String(i.h.xc)),i.g.U=!0,Rp(i.Ba,w))}(w=i.j.get(me.id))?(i.h.ac.Zf++,(He=me.codecId)&&((He=p.get(He).mimeType.toUpperCase()).includes("H265")?i.N="H265":He.includes("AV1")?i.N="AV1":He.includes("H264")?i.N="H264":(m.d("{5cea617}","{4b31535}",He),i.N="UNKNOWN"),i.g.codec=i.N),function gd(i,p,w){var V=p.packetsLost-w.packetsLost;let ae=100-V/(p.packetsReceived-w.packetsReceived+V)*100;for((isNaN(ae)||void 0===ae)&&(ae=0),0<(p=p.pliCount-w.pliCount)&&V&&(ae=0),V=0;V<p+1;V++)i.networkLossScore=7*i.networkLossScore/8+ae/8}(i.L,me,w),function pm(i,p){if(p.frameWidth&&p.frameHeight&&(i.streamingResolution={width:p.frameWidth,height:p.frameHeight}),p.framesDecoded){const w=i.R,V=p.timestamp;w!==V&&(i.fps=Math.floor((p.framesDecoded-i.C)/(V-w)*1e3)),i.C=p.framesDecoded,p.totalDecodeTime&&(i.m.update(p.totalDecodeTime,p.framesDecoded),i.xd=1e3*p.totalDecodeTime/p.framesDecoded)}p.framesReceived&&(i.O=p.framesReceived,p.totalInterFrameDelay&&(i.P=1e3*p.totalInterFrameDelay/(p.framesReceived-1))),p.framesDropped&&(i.J=p.framesDropped),p.packetsLost&&(i.N=p.packetsLost),p.pliCount&&(i.s=p.pliCount),i.R=p.timestamp}(i.g,me),i.l=null!==(V=me.framesDecoded)&&void 0!==V?V:0,i.ta=null!==(ae=me.packetsReceived)&&void 0!==ae?ae:0,function xf(i){Fh.apply(this,arguments)}(i)):i.h.ac.Hf++}else i.h.ac.$e++}(i,p);var me,He,ct,Ut,Lt,qt,on,Dn,Ln,V=i.g,ae=i.Ba,Yn=ae.K.paused,ki=null!==(He=null===(me=ae.Ea)||void 0===me?void 0:me.paused)&&void 0!==He&&He;Yn={tf:Yn,rf:ki,yb:me=null!==(Ut=null===(ct=ae.m)||void 0===ct?void 0:ct.yb())&&void 0!==Ut&&Ut,kb:ct=null!==(qt=null===(Lt=ae.m)||void 0===Lt?void 0:Lt.kb)&&void 0!==qt&&qt,yf:Lt=ae.Da.getMicState(),ad:qt=ae.v.ad(),keyboardLayout:Ut=ae.keyboardLayout,appLaunchMode:He=ae.appLaunchMode,qf:null!==(Dn=ae=null===(on=ae.m)||void 0===on?void 0:`${(ae=on.h).g.qb?"local":"alt"} ${Gl(ae)?"locked":"unlocked"}`)&&void 0!==Dn?Dn:""},V.g=Yn,function Af(i,p){var w,V=i.P.get("candidate-pair");if(V=V?.map(me=>p.get(me)).find(me=>me)){6<=i.s.length&&i.s.splice(0,1),i.s.push(V);var ae=null===(w=i.j)||void 0===w?void 0:w.get(V.id);ae&&function wl(i,p,w){var V,ae,me,He;let ct=null!==(V=p.bytesReceived)&&void 0!==V?V:0;V=null!==(ae=w.bytesReceived)&&void 0!==ae?ae:0,(p=null!==(me=p.timestamp)&&void 0!==me?me:0)!=(w=null!==(He=w.timestamp)&&void 0!==He?He:0)&&(i.o=(ct-V)/(125*(p-w)))}(i.g,V,ae)}}(i,p),0!==i.M&&pg(i.g,2===i.M),Dn={avgGameFps:null!==(Ln=(V=i.g).avgGameFps)&&void 0!==Ln?Ln:0,fps:V.fps,rtd:V.rtd,avgDecodeTime:1e3*Ah(V.m),frameLoss:V.s-V.T,packetLoss:V.N,totalBandwidth:V.F,utilizedBandwidth:V.Ob,streamingResolution:V.streamingResolution,codec:V.codec,bitDepth:8},V.T=V.s,i.R.emit("StreamStatsUpdate",Dn),i.j=p,i.$=w+1e3}for(const[Zi,nr]of i.P.entries())for(var ii of(Ln=Zi,V=nr))if((V=p.get(ii))&&"inbound-rtp"===Ln)if(Dn=i.o,"audio"===(V=zu(i,p,V)).kind)Dn=V,Yn=new ArrayBuffer(gu.size),ki=new DataView(Yn),At(Dn.packetsReceived||0,ki,0,!0),At(Dn.bytesReceived||0,ki,8,!0),At(Dn.packetsLost||0,ki,16,!0),ki.setFloat64(24,Dn.lastPacketReceivedTimestamp||0,!0),ki.setFloat64(32,Dn.jitter||0,!0),ki.setFloat64(40,na(ke),!0),Va([Yn],2),Dn=new ArrayBuffer(fm.size),(Yn=new DataView(Dn)).setFloat64(0,V.audioLevel||0,!0),At(V.concealedSamples||0,Yn,8,!0),At(V.concealmentEvents||0,Yn,16,!0),At(V.insertedSamplesForDeceleration||0,Yn,24,!0),Yn.setFloat64(32,V.jitterBufferDelay||0,!0),At(V.jitterBufferEmittedCount||0,Yn,40,!0),At(V.removedSamplesForAcceleration||0,Yn,48,!0),At(V.silentConcealedSamples||0,Yn,56,!0),Yn.setFloat64(64,V.totalSamplesReceived||0,!0),Yn.setFloat64(72,V.totalSamplesDuration||0,!0),Yn.setFloat64(80,na(ke),!0),Va([Dn],4);else if(qt=ae=(Yn=V).framesDecoded||0,Ut=on=Yn.totalDecodeTime||0,He=me=Yn.pliCount||0,(Lt=ki=Yn.packetsLost||0)>=(ct=Dn).o&&(ct.C=Lt-ct.o,ct.o=Lt),He>=ct.l&&(ct.pliCount=He-ct.l,ct.l=He),ct.framesDecoded=qt-ct.s,0<ct.framesDecoded&&Ut>ct.m&&(ct.v=1e3*(Ut-ct.m)/ct.framesDecoded,ct.s=qt,ct.m=Ut),ct=new ArrayBuffer(xh.size),(Lt=new DataView(ct)).setUint32(0,ae,!0),Lt.setUint32(4,Yn.keyFramesDecoded||0,!0),Lt.setUint32(8,Yn.nackCount||0,!0),Lt.setInt32(12,ki,!0),Lt.setInt32(16,me,!0),At(Yn.bytesReceived||0,Lt,20,!0),At(Yn.packetsReceived||0,Lt,28,!0),Lt.setFloat64(36,on,!0),Lt.setFloat64(44,Yn.totalInterFrameDelay||0,!0),Lt.setFloat64(52,Yn.totalSquaredInterFrameDelay||0,!0),Lt.setFloat64(60,Yn.totalAssemblyTime||0,!0),Lt.setUint32(68,Yn.framesAssembledFromMultiplePackets||0,!0),Lt.setFloat64(72,na(ke),!0),Va([ct],1),Dn.sendVideoTrack(V),V.perFrameEntries){for(V=JSON.parse(V.perFrameEntries),Yn=[],ki=Dn.h,ae=0;ae<V.length;ae++)V[ae].frameNumber>Dn.h&&(on=new ArrayBuffer(af.size),(me=new DataView(on)).setUint32(0,V[ae].frameNumber,!0),me.setFloat64(4,V[ae].decodeTime,!0),me.setFloat64(12,V[ae].assemblyTime,!0),Yn.push(on)),ki=Math.max(ki,V[ae].frameNumber);Dn.h=ki,0<Yn.length&&Va(Yn,6)}(ii=performance.memory)&&(V=ii.totalJSHeapSize,ii=(p=ii.usedJSHeapSize)-i.ra,Ln=V-i.qa,i.ra=p,i.qa=V,0<=ii&&0<=Ln||(p=ke).h&&(ii={garbageCollectionStats:{timestamp:na(p),deltaUsedHeapSize:ii,deltaTotalHeapSize:Ln}},p.g&&p.g.postMessage(ii))),p=i.Ba,(ii=ke).h&&(Ln={inputChannelStats:{timestamp:na(ii),bufferedAmount:p.Ja.bufferedAmount,maxSchedulingDelay:p.v.maxSchedulingDelay}},ii.g&&ii.g.postMessage(Ln)),p.v.maxSchedulingDelay=0,w>=i.na&&i.Z&&(p=i.Z,ii=new ArrayBuffer(15),(Ln=new DataView(ii)).setUint8(0,2),Ln.setUint8(1,1),Ln.setUint8(2,1),Ln.setUint32(3,p.Eg,!0),Ln.setFloat64(7,p.client,!0),bp(i,ii,"rtpmapping"),i.Z=void 0,i.na=w+1e3),"video"===i.mediaType&&(Be(i.u)&&(p=new ArrayBuffer(12),(ii=new DataView(p)).setUint8(0,1),ii.setUint8(1,1),ii.setUint16(2,i.o.C,!0),ii.setUint16(4,Math.round(i.o.v),!0),ii.setUint16(6,i.o.framesDecoded,!0),ii.setUint16(8,i.o.pliCount,!0),ii.setUint16(10,i.o.framesDropped,!0),bp(i,p,"clientperf")),p=wd(i.L),i.g.v=p,ii=wd(i.L),i.R.emit("StreamingQuality",ii),i.xa&&i.R.emit("StreamingStats",{fps:(p=i.g).fps,xd:p.xd,avgDecodeTime:1e3*Ah(p.m),Rg:p.F,Ob:p.Ob,width:p.streamingResolution.width,height:p.streamingResolution.height}),(p=ke).h&&(ii={sq:{latencyScore:ii.latencyScore,bandwidthScore:ii.bandwidthScore,qualityScore:ii.qualityScore,networkLossScore:ii.networkLossScore,timestamp:na(p)}},p.g&&p.g.postMessage(ii))),w>=i.ka&&(m.i("{4155ac9}","{a02a36e}",(p=i.g).C,(1e3*Ah(p.m)).toFixed(2),p.J,p.H.toFixed(2),p.s,p.rtd,p.o.toFixed(2),p.Ob.toFixed(2)),i.ka=w+5e3),w=performance.now()-w,(p=ke).h&&(p.perf.GetStats+=w),(p=i.g).l.value+=w,p.l.count+=1,p.l.max=Math.max(w,p.l.max),i.wa&&(i.mediaType="video"===i.mediaType?"audio":"video")}function qd(i,p,w){i.G.za(p,`Exception in ${w} getStats`,"{5cea617}.ts",0,0,!0,"getStats")}function Ef(i){i.m&&(clearInterval(i.m),i.m=0),i.F&&(clearInterval(i.F),i.F=0),ll(i.o)}function kh(i,p,w=!1){i.g.M.style.display=p?"block":"none",p?(i.M=w?2:1,pg(i.g,w),i.$=performance.now()):i.M=0}function zu(i,p,w){return i.aa||(i=p.get(w.trackId))&&(w=Object.assign(i,w)),w}function Fh(){return(Fh=r(function*(i){const p={width:screen.width*window.devicePixelRatio,height:screen.height*window.devicePixelRatio},w={width:screen.width,height:screen.height},V=i.l,ae=i.ua.m;var me=i.oa;if((me=!(p.width===me.width&&p.height===me.height))||(me=!(w.width===(me=i.ja).width&&w.height===me.height)),me||ae!==i.ca){i.oa=p,i.ja=w,me=yield Nd(Su),i.ca=ae;var He=`Stream[0]: Client display[-1] resolution : {physical : ${mn(p)}@${me}, logical : ${mn(w)}@${me}} at frame#${V} topology: ${ae}`;m.i("{5cea617}","{810d0ec}",mn(p),me,mn(w),me,V,ae),Rp(i.Ba,He)}})).apply(this,arguments)}function bp(i,p,w){try{"open"===i.O.readyState&&i.O.send(p)}catch(V){m.e("{5cea617}","{78e74c5}",V),qd(i,V,w)}}function Df(i){if(!(2>i.s.length)){var p=i.s[0],w=i.s[i.s.length-1];i=w.requestsSent-p.requestsSent+w.consentRequestsSent-p.consentRequestsSent;var V=w.responsesReceived-p.responsesReceived;return p=w.packetsReceived-p.packetsReceived,{Mf:isNaN(i)?-1:i,Nf:isNaN(V)?-1:V,Lf:isNaN(p)?-1:p}}}var Sg=class{constructor(i,p,w,V,ae,me,He,ct,Ut,Lt){var qt,on,Dn,Yn,ki,Ln;this.pa=!0,this.l=this.ta=this.F=this.m=0,this.N="UNKNOWN",this.ga=!1,this.P=new Map,this.fa=this.rtd=this.jitter=this.W=0,this.mediaType="video",this.qa=this.ra=this.$=this.M=0,this.s=[],this.ja={width:0,height:0},this.oa={width:0,height:0},this.aa=this.T=this.J=!1,this.ca=this.ka=this.U=this.na=0,this.R=i,this.Ba=p,this.K=w,this.C=V,this.Ac=null!==(on=null===(qt=ae.video)||void 0===qt?void 0:qt[0].Ac)&&void 0!==on&&on,this.maxBitrate=null!==(Yn=null===(Dn=ae.video)||void 0===Dn?void 0:Dn[0].Bc)&&void 0!==Yn?Yn:0,this.da=null!==(Ln=null===(ki=ae.video)||void 0===ki?void 0:ki[0].ed)&&void 0!==Ln?Ln:0,this.G=me,this.u=He,this.ea=ct,this.ua=Ut,this.H={ts:0,timingFrameInfo:"",targetDelayMs:0,minPlayoutDelayMs:0,currentDelayMs:0},this.L=new Mh(this.maxBitrate,this.da),this.g=new Id(w,this.u,this.ea),wr&&(this.S=new bf(w,Ut)),this.C=V,function fg(i){i.O=i.C.createDataChannel("stats_channel",{ordered:!1,reliable:!1,maxRetransmits:0}),i.O.binaryType="arraybuffer",Ju(i.Ba,i.O,{open:()=>{i.U=1},close:()=>{Ef(i),i.U=2}}),i.O.onmessage=p=>{var w=(p=new DataView(p.data)).getUint8(0);if(2<=w){if(i.W=p.getFloat64(1,!0)/1e6,i.jitter=1e3*p.getFloat64(9,!0),i.rtd=p.getFloat64(17,!0),i.g.H=i.jitter,i.g.rtd=i.rtd,3<=w&&(i.fa=p.getFloat64(25,!0),i.g.avgGameFps=i.fa,4<=w)){w=p.getFloat32(33,!0);var V=p.getFloat32(37,!0),ae=p.getFloat32(41,!0);let me=p.getFloat32(45,!0),He=p.getFloat32(49,!0),ct=p.getFloat32(53,!0),Ut=p.getFloat32(57,!0),Lt=p.getFloat32(61,!0),qt=p.getFloat32(65,!0);p=p.getFloat32(69,!0),m.d("{5cea617}","{9721183}",w,V,ae,me,He,ct,Ut,Lt,qt,p)}p=i.L,w=i.W,V=i.g,(ae=i.W)&&V.o<=ae&&(V.Ob=V.o/ae*100),V.F=ae,ae=100,25<=V.Ob&&(ae=(w-p.g)/(p.maxBitrate-p.g)*100),100<ae&&(ae=100),void 0===ae||isNaN(ae)||0>ae||(p.bandwidthScore=15*p.bandwidthScore/16+ae/16,p.bandwidthScore=Math.min(p.bandwidthScore,100)),p=i.L,V=0,250>(w=i.rtd)&&(void 0===(V=100*(250-w)/240)||isNaN(V))&&(V=0),p.latencyScore=15*p.latencyScore/16+V/16,p.latencyScore=Math.min(p.latencyScore,100)}else m.e("{5cea617}","{4f9f4b7}",w)}}(this),this.xa=this.R.hasListener("StreamingStats"),this.o=new lf,this.h={ac:{$e:0,Hf:0,Zf:0},bc:"",xc:-1},this.v={Ag:0,droppedVideoFrames:0,totalVideoFrames:0},this.va=w,this.V=Lt,this.sa=this.ya.bind(this),Sp(this)}ya(i,p){var w,V,ae,He,ct,me=this.o,Ut=null!==(He=p.receiveTime)&&void 0!==He?He:0;He=p.presentationTime-Ut,Ut=1e3*(null!==(ct=p.processingDuration)&&void 0!==ct?ct:0),ct=void 0!==(ct=p.presentationTime)?ct-ke.j:0;const Lt=new ArrayBuffer(12),qt=new DataView(Lt);qt.setFloat64(0,ct,!0),qt.setUint16(8,Math.min(100*He,65535),!0),qt.setUint16(10,Math.min(100*Ut,65535),!0),me.g.push(Lt),120==me.g.length&&ll(me),!(null===(w=this.S)||void 0===w)&&w.o()&&function Rh(i,p,w){i.g.push({presentedFrames:w.presentedFrames,rd:p,presentationTime:w.presentationTime,receiveTime:w.receiveTime,processingDuration:w.processingDuration}),p=ff(i,i.l),function Wu(i,p,w,V,ae){return new Promise((me,He)=>{window.setTimeout(()=>{e:if(0>=V||0>=ae)var ct=-1;else{var Ut=new OffscreenCanvas(V,ae).getContext("2d");if(Ut){try{Ut.drawImage(i,p,w,V,ae,0,0,V,ae),ct=Ut.getImageData(0,0,V,ae).data}catch(qt){m.e("{0c7ed7c}","{b16b792}",qt),ct=-1;break e}var Lt=Ut=0;for(let qt=0;qt<ct.length-3;qt+=4)Ut+=.2126*ct[qt]+.7152*ct[qt+1]+.0722*ct[qt+2],Lt++;ct=Ut/Lt/255}else m.e("{0c7ed7c}","{b72639c}"),ct=-1}-1===ct&&He(-1),me(ct)},0)})}(i.K,p.x,p.y,p.width,p.height).then(V=>{var me,ae=w.presentedFrames;if(i.g.length){var He=i.g[i.g.length-1];if(ae!==He.presentedFrames)m.d("{0c7ed7c}","{06323ea}",ae);else{for(He.dd=V;32<i.g.length;)i.g.shift();if(1!=i.g.length&&!((V=i.g[i.g.length-2]).presentedFrames<ae-2||void 0===V.dd||-1===V.dd)&&He.dd-V.dd>i.m){let ct;V=0;const Ut={presentedFrames:ae,rd:He.rd,presentationTime:He.presentationTime,receiveTime:He.receiveTime,processingDuration:He.processingDuration,Sb:0,Ec:0};for(;i.h.length&&i.h[0].Sb<(null!==(me=He.receiveTime)&&void 0!==me?me:He.presentationTime);)V++,ct=i.h.shift();ct&&(1<V&&m.d("{0c7ed7c}","{a4b8c55}",ae,V),Ut.Sb=ct.Sb,Ut.Ec=ct.Ec,i.s&&i.s(Ut))}}}})}(this.S.j,i,p),this.Ac&&p.rtpTimestamp&&p.receiveTime&&(this.Z={Eg:p.rtpTimestamp,client:p.receiveTime-ke.j}),0!=this.m&&(null===(ae=(V=this.K).requestVideoFrameCallback)||void 0===ae||ae.call(V,this.sa))}reset(){Ef(this),this.L=new Mh(this.maxBitrate,this.da),this.g=new Id(this.K,this.u,this.ea),this.j=void 0}stop(){var i;this.pa&&(this.pa=!1,0!=this.m&&(this.reset(),kh(this,!1)),null===(i=this.S)||void 0===i||i.stop(),Vs(this.G,"InboundVideoStats",this.h.bc,this.h.ac.Zf,this.h.ac.$e,this.h.xc,this.h.ac.Hf))}toggleOnScreenStats(i,p){kh(this,p??0===this.M,i)}packetsReceived(){return this.ta}};function Ku(i){return"tcp"===i.protocol?"TCP":(i=i.address||i.relatedAddress)?i.endsWith(".local")?"MDNS":-1!==i.indexOf(":")?"IPV6":"IPV4":"UNKNOWN"}function bg(i){i=i.address||i.relatedAddress;var p=i?.split(".");if(4===p?.length&&(i=parseInt(p[0]),p=parseInt(p[1]),!isNaN(i)&&!isNaN(p))){let w="UNKNOWN";return 10===i?w="10/8":192===i&&168===p?w="192.168/16":172===i&&16==(240&p)&&(w="172.16/12"),"UNKNOWN"!==w&&m.d("{5cea617}","{343589d}",w),w}return m.i("{5cea617}","{fa2d6b9}"),"UNKNOWN"}function Cp(i,p,w,V){const ae=/^([^[.]+)(?:\[(\d+)\])?\.([^:]+): *(.+)$/;let me=!0;for(const Ut of i.split(/\r?\n/)){var He=ae.exec(Ut);if(He){var ct=He[1];i=void 0!==He[2]?Number.parseInt(He[2]):void 0;const Lt=He[4];He=ct+"."+He[3];const qt=Mp(p,ct=Ep(ct),i),on=Mp(w,ct,i);qt&&on?on.has(He)?(m.d("{eb7c2d0}","{2beb68f}",V,He,Lt),qt.set(He,Lt)):(m.w("{eb7c2d0}","{cc4fdef}",V,He,Lt),me=!1):(m.w("{eb7c2d0}","{a649ad8}",V,ct,i),me=!1)}}return me}function Ep(i){switch(i){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"}}function Uh(i,p,w){i.set(w?"vqos.dfc.adjustResAndFps":"vqos.drc.enable",p?"1":"0")}function Mp(i,p,w){var V;return void 0===p?i.nb:null===(V=i.media.filter(ae=>ae.mediaType===p)[w??0])||void 0===V?void 0:V.attributes}function Ap(i,p){let w=`v=0\no=${i.origin}\ns=-\nt=${i.time}\n`;const V=(ae,me)=>{for(const[He,ct]of ae){const Ut=ct;Ut!==me.get(ae=He)&&(w+=`a=${ae}:${Ut}\n`)}};V(i.nb,p.nb);for(const ae of i.media)w+=`m=${ae.mediaType} 0 RTP/AVP\n`,w+=`a=msid:${ae.Fc}\n`,i=p.media.find(me=>me.Fc===ae.Fc),V(ae.attributes,i.attributes);return w}function Tp(i,p=!1){const w=i.m+1;try{let V;i.sessionId&&(V="x-nv-sessionid."+i.sessionId);let ae=i.url;p&&(ae+="&reconnect=1");let me=new WebSocket(ae,V);me.onopen=()=>{var He;if(i.h("{48fa30b}"+w),me===i.g){null===(He=i.j)||void 0===He||Rf(He);for(const ct of i.l)me.send(ct.stats?ct.stats:JSON.stringify(ct));for(const ct of i.s)Bh(i,ct);i.s=[]}},me.onclose=He=>{var ct;i.h("{6406bff}"+w),me===i.g&&(null===(ct=i.j)||void 0===ct||wp(ct,{error:i.v,code:He.code,reason:He.reason,wasClean:He.wasClean}),xp(i),i.v=!1)},me.onerror=()=>{i.h("{7605058}"+w),me===i.g&&(i.v=!0)},me.onmessage=He=>{if(i.j)try{let Ut=JSON.parse(He.data);if(i.o||i.h("{523f5b9}"),Pf(i),!Ut.hb){if(void 0!==Ut.ack){var ct=Ut.ack;for(let Lt=i.l.length-1;0<=Lt;Lt--)i.l[Lt].ackid<=ct&&i.l.splice(Lt,1)}if(void 0!==Ut.ackid){if(i.maxReceivedAckId<Ut.ackid&&(Ip(i.j,Ut),i.maxReceivedAckId=Ut.ackid),i.g){let Lt=JSON.stringify({ack:i.maxReceivedAckId});i.h("{903be10}"+Lt),i.g.send(Lt)}}else void 0===Ut.ack&&Ip(i.j,Ut)}}catch(Ut){i.C("Error in local websocket message handling: "+Ut+' "'+He.data+'"')}},i.g=me}catch(V){i.g=void 0,i.C("WebSocket creation exception: "+V+" for socket "+i.m)}i.m=w}function yd(i){0!==i.o&&(self.clearTimeout(i.o),i.o=0)}function xp(i){i.g&&(i.g.onclose=null,i.g.onerror=null,i.g.onmessage=null,i.g.onopen=null,i.g=void 0)}function Pf(i){yd(i),i.o=self.setTimeout(()=>{var p;i.h("{6c3505a}"+(null===(p=i.g)||void 0===p?void 0:p.readyState)+"{754f60b}"+i.m),i.g||Tp(i,!0),Pf(i)},3e3)}function Bh(i,p){void 0!==p.ackid&&void 0!==p.ackid&&i.l.push(p),i.g&&i.g.send(p.stats?p.stats:JSON.stringify(p))}var Xu=class{constructor(i,p){this.sessionId=i,this.v=!1,this.l=[],this.s=[],this.maxReceivedAckId=this.o=0,this.url="",this.m=0,this.h=p.info,this.C=p.exception}initialize(i,p,w,V=!1){this.url=i,this.maxReceivedAckId=p,this.j=w,Tp(this,V),this.h("{fcf6f89}"+this.m)}uninitialize(i){var p;this.maxReceivedAckId=0,this.l=[],this.s=[],this.j=void 0,yd(this),null===(p=this.g)||void 0===p||p.close(i),xp(this),this.h("{986b258}"+i+"{754f60b}"+this.m)}send(i){this.j&&(this.g||Tp(this,!0),this.g&&this.g.readyState===WebSocket.OPEN?Bh(this,i):this.s.push(i))}};function Jg(i){switch(i){case"H264":return"h264";case"H265":return"hevc";case"AV1":return"av1";default:return"video"}}var Eg=class{constructor(i,p){this.g=i,this.h=p,this.streams=[]}start(i){if(1&this.g.vd&&(i=i.getTransceivers().find(p=>{var w,V;return"video"===(null===(V=null===(w=p.receiver)||void 0===w?void 0:w.track)||void 0===V?void 0:V.kind)}))){const p={data:new DataView(new ArrayBuffer(209715200)),size:0,Nd:"video",kg:Jg(this.h),sf:!1};!function Vh(i,p,w){const{readable:V,writable:ae}=p.createEncodedStreams();p=new TransformStream({start:()=>{m.i("{d7392d2}","{b96b3ec}",w.Nd)},flush:()=>{},transform:(me,He)=>{if(!w.sf){const qt=new Uint8Array(me.data);if(w.size+qt.byteLength<=w.data.byteLength){var ct=w.data,Ut=w.size,Lt=qt;const on=Lt.byteLength;for(let Dn=0;Dn<on;++Dn)ct.setUint8(Ut+Dn,Lt[Dn]);w.size+=qt.byteLength}else w.sf=!0,m.w("{d7392d2}","{f35b2f4}",w.size,w.Nd)}He.enqueue(me)}}),V.pipeThrough(p).pipeTo(ae),i.streams.push(w)}(this,i.receiver,p)}}};function wf(i){i.g&&(i.j=!i.j,i.g.style.display=i.j?"block":"none")}var qg=class{constructor(i,p,w,V){this.l=i,this.K=p,this.u=w,this.G=V,this.h={top:-1,left:-1,bottom:-1,right:-1},this.Xa=this.Ra=0,this.j=!1,this.m=0,wr&&((i=document.createElement("div")).style.display="none",i.style.position="absolute",i.style.color="white",i.style.backgroundColor="rgb(105, 105, 105, 0.7)",i.style.padding="2px",i.style.bottom="0px",i.style.left="0px",i.style.margin="5px",this.g=i,p.insertAdjacentElement("afterend",this.g))}uninitialize(){this.g&&this.g.remove()}send(){var i,p,w;if(!(0>=this.K.videoHeight||0>=this.K.videoWidth)){var V=Se(),ae=function Mg(i,p){let{width:w,height:V}={width:screen.width,height:screen.height};var ae=()=>{let ct;switch(void 0!==window.orientation?ct=window.orientation:screen.orientation&&(ct=screen.orientation.angle),ct){case 90:case-90:case 270:return!1;default:return!0}};te(i.u)&&(p.top=Math.max(p.top,20),ae()||(ae=w,w=V,V=ae)),ae=(ct=>{let Ut=ct.offsetTop,Lt=ct.offsetLeft;for(var qt=ct.offsetParent;qt;)Ut+=qt.offsetTop,Lt+=qt.offsetLeft,qt=qt.offsetParent;qt=ct.clientHeight;let on=ct.clientWidth;return"Android"===i.u.os&&(window.innerHeight>window.innerWidth&&ct.clientHeight<ct.clientWidth||window.innerHeight<window.innerWidth&&ct.clientHeight>ct.clientWidth)&&(m.w("{48f82fd}","{c9d343e}"),qt=ct.clientWidth,on=ct.clientHeight),{top:Ut,left:Lt,bottom:Math.max(window.innerHeight-Ut-qt,0),right:Math.max(window.innerWidth-Lt-on,0)}})(i.K);const me=Math.max(V-window.innerHeight,0)/2,He=Math.max(w-window.innerWidth,0)/2;return{top:Math.max(p.top-me-ae.top-i.Ra,0)/(i.K.clientHeight-2*i.Ra),left:Math.max(p.left-He-ae.left-i.Xa,0)/(i.K.clientWidth-2*i.Xa),bottom:Math.max(p.bottom-me-ae.bottom-i.Ra,0)/(i.K.clientHeight-2*i.Ra),right:Math.max(p.right-He-ae.right-i.Xa,0)/(i.K.clientWidth-2*i.Xa)}}(this,V);if(!function yi(i,p){const w=Object.keys(i),V=Object.keys(p);if(w.length!==V.length)return!1;for(const ae of w)if(i[ae]!==p[ae])return!1;return!0}(ae,this.h)){var me=JSON.stringify(ae,(He,ct)=>ct.toFixed?Number(ct.toFixed(2)):ct);m.d("{48f82fd}","{054b8b0}",JSON.stringify(V),me),null!==(i=Pr.sendInsetValueUpdateEvents)&&void 0!==i&&i&&2>this.m++&&(V=(i=(He,ct=1)=>{for(const Ut of Object.keys(He)){const Lt=Math.round(He[Ut]*ct);He[Ut]=isNaN(Lt)?-1:Lt}return He})(Object.assign({},V)),i=i(Object.assign({},ae),1e3),null===(p=this.G)||void 0===p||Vs(p,"InsetValueUpdate","Original",V.top,V.left,V.bottom,V.right),null===(w=this.G)||void 0===w||Vs(w,"InsetValueUpdate","Normalized",i.top,i.left,i.bottom,i.right)),this.h=Object.assign({},ae);for(const He of Object.keys(ae))ae[He]=isNaN(ae[He])?0:ae[He];p={messageType:"SAFE_ZONE",messageRecipient:"NvGridSvc:NGS",data:JSON.stringify({safeZoneData:{type:"InsetValueUpdate",rect:ae}})},this.l.sendCustomMessage(p),wr&&this.g&&(this.g.innerText="Safe Zone: \nTop: "+(100*Math.max(this.h.top,0)).toFixed()+"%\nRight: "+(100*Math.max(this.h.right,0)).toFixed()+"%\nBottom: "+(100*Math.max(this.h.bottom,0)).toFixed()+"%\nLeft: "+(100*Math.max(this.h.left,0)).toFixed()+"%")}}}};function Xc(i,p,w){i.g.get(p).push(w)}function Ql(i,p,w){-1!==(w=(i=i.g.get(p)).indexOf(w))&&i.splice(w,1)}function Dp(i,p){if(i.U&&eu(i,p),i.h!==p){i.h=p;for(const w of i.g.get(0))w(p)}}function Gh(i,p){if(i.C!==p){i.C=p;for(const w of i.g.get(3))w(p)}}function Hh(i,p){if(i.s!==p){i.s=p;for(const w of i.g.get(4))w(p)}}function Bd(i,p){return i.T?.22>=p.level:i.Z?.2>=p.level:i.W?.1>=p.level:.33>=p.level}function Qc(){var i,p;return Br&&null!==(i=Pr.enableComputePressure)&&void 0!==i&&i&&(null===(p=globalThis.PressureObserver)||void 0===p?void 0:p.prototype)&&PressureObserver.knownSources instanceof Array&&PressureObserver.knownSources.includes("cpu")}function Vd(i){switch(i){case"nominal":default:return 0;case"fair":return 1;case"serious":return 2;case"critical":return 3}}function eu(i,p){if(i.v!==p){i.v=p;for(const w of i.g.get(1))w(p)}}var Cu=class{constructor(i){var p,w,V,ae;this.g=new Map,this.C=this.s=this.j=!1,this.o="nominal",this.U="PHONE"===i.deviceType||"TABLET"===i.deviceType,this.Z=Z(i),this.W="iPadOS"===i.os,this.T=be(i),this.h=this.v=document.hasFocus(),this.m=0,i=window.zoneless;const me=null!==(w=null===(p=i?.windowAddEventListener)||void 0===p?void 0:p.bind(window))&&void 0!==w?w:window.addEventListener.bind(window),He=null!==(ae=null===(V=i?.documentAddEventListener)||void 0===V?void 0:V.bind(document))&&void 0!==ae?ae:document.addEventListener.bind(document);this.N=this.da.bind(this),this.J=this.aa.bind(this),this.O=this.F.bind(this),this.P=this.ea.bind(this),this.R=this.fa.bind(this),this.L=this.ca.bind(this),this.H=this.$.bind(this),this.M=this.S.bind(this),me("focus",this.N),me("blur",this.J),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","msfullscreenchange"].forEach(ct=>He(ct,this.O)),He("mouseenter",this.P),He("mouseleave",this.R),navigator.getBattery&&navigator.getBattery().then(ct=>{Gh(this,!ct.charging),Hh(this,Bd(this,ct)),ct.addEventListener("chargingchange",this.L),ct.addEventListener("levelchange",this.H)}),void 0!==window.screen.isExtended&&(this.S(),window.screen.addEventListener("change",this.M)),Qc()?(this.l=new PressureObserver(ct=>{if(0<ct.length){let Ut="nominal";for(const Lt of ct)Vd(Lt.state)>Vd(Ut)&&(Ut=Lt.state);if(this.o!=(ct=Ut)){this.o=ct;for(const Lt of this.g.get(5))Lt()}}}),this.l.observe("cpu")):m.i("{0c4eeb2}","{c70b747}"),this.g.set(0,[]),this.g.set(2,[]),this.g.set(1,[]),this.g.set(3,[]),this.g.set(4,[]),this.g.set(5,[]),this.F()}uninitialize(){var i,p,w,V,ae,me,He;const ct=window.zoneless,Ut=null!==(p=null===(i=ct?.windowRemoveEventListener)||void 0===i?void 0:i.bind(window))&&void 0!==p?p:window.removeEventListener.bind(window),Lt=null!==(V=null===(w=ct?.documentRemoveEventListener)||void 0===w?void 0:w.bind(document))&&void 0!==V?V:document.removeEventListener.bind(document);Ut("focus",this.N),Ut("blur",this.J),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","msfullscreenchange"].forEach(qt=>Lt(qt,this.O)),Lt("mouseenter",this.P),Lt("mouseleave",this.R),navigator.getBattery&&navigator.getBattery().then(qt=>{qt.removeEventListener("chargingchange",this.L),qt.removeEventListener("levelchange",this.H)}),void 0!==window.screen.isExtended&&window.screen.removeEventListener("change",this.M),i=null===(ae=this.l)||void 0===ae?void 0:ae.takeRecords(),i?.map(qt=>m.i("{0c4eeb2}","{4f27ba0}",JSON.stringify(qt))),null===(me=this.l)||void 0===me||me.unobserve("cpu"),null===(He=this.l)||void 0===He||He.disconnect();for(const qt of this.g.values())qt.splice(0)}da(){Dp(this,!0)}aa(){Dp(this,!1)}F(){var i=window.document;if(i=!!(document.fullscreen||1==i.webkitIsFullScreen||i.mozFullScreen||i.msFullscreenElement),this.j!==i){this.j=i;for(const p of this.g.get(2))p(i)}}ea(){eu(this,!0)}fa(){eu(this,!1)}ca(){navigator.getBattery().then(i=>{Gh(this,!i.charging)})}$(){navigator.getBattery().then(i=>{Hh(this,Bd(this,i))})}S(){this.m=window.screen.isExtended?3:0,m.i("{0c4eeb2}","{ee99c72}",this.m)}};function Qu(i){return i.split("\nm=").map((p,w)=>(0<w?"m="+p:p).trim()+"\r\n")}function Hc(i,p){return function Op(i){return i.trim().split("\n").map(p=>p.trim())}(i).filter(w=>0===w.indexOf(p))}function If(i){return{algorithm:(i=i.substr(14).split(" "))[0].toLowerCase(),value:i[1].toUpperCase()}}function Mu(i,p,w,V){let ae=i.split("\r\n"),me=-1;for(let He=0;He<ae.length;He++)if(0===ae[He].indexOf("m=video")){me=He;break}if(-1===me)return m.e("{93c7910}","{e0899ab}","video"),i;for(m.d("{93c7910}","{5cc346f}","video",me),me++,i=";x-google-max-bitrate="+w+";x-google-min-bitrate="+p+";x-google-start-bitrate="+V,p=new Set;me<ae.length&&0!==ae[me].indexOf("m=");)0===(w=ae[me]).indexOf("a=rtpmap:")&&0<w.indexOf("H264/")?p.add(w.slice(9,w.indexOf(" "))):0===w.indexOf("a=fmtp:")&&p.has(w.slice(7,w.indexOf(" ")))&&(ae[me]+=i),me++;return ae.join("\r\n")}function wp(i,p){var w,V,ae,me;if(p.error&&0!==i.C){var He=i.G,ct=null!==(w=p.code)&&void 0!==w?w:0;w=null!==(ae=null===(V=i.session)||void 0===V?void 0:V.signalConnectionInfo.ip)&&void 0!==ae?ae:"",V=null!==(me=p.reason)&&void 0!==me?me:"",me=new ro({retryCount:i.ta,sessionId:He.sessionId,subSessionId:He.subSessionId,serverId:w,url:i.M,overrideConfigType:Ds.type,overrideConfigVersion:Ds.version,disconnectionReason:V,cleanDisconnection:_t(p.wasClean),networkType:Le(Ac.getCurrentNetworkType()),statusCode:ct?ct.toString():"",cmsId:String(He.cmsId),moduleName:"RAGNAROK"}),He.h(me),i.ta++,3>=i.ta?(Wh(i),Tu(i)):(window.clearTimeout(i.C),i.C=0,m.i("{93c7910}","{8595cb4}"),Dc(i,{code:3237093890}))}p.wasClean||i.xa++}function Ip(i,p){var w;m.i("{93c7910}","{39024c3}",JSON.stringify(p)),p.ackid&&i.maxReceivedAckId<p.ackid&&(i.maxReceivedAckId=p.ackid),p.peer_info?(p.peer_info.name===i.name||0===i.id)&&(i.id=p.peer_info.id,m.d("{93c7910}","{c5faf27}",i.id)):p.peer_msg?function zh(i,p,w){qu.apply(this,arguments)}(i,p.peer_msg.from,p.peer_msg.msg):p.error&&("peerRemoved"===p.error?(0!==i.F?(p=null!==(w=Np(i))&&void 0!==w?w:3237094161,m.w("{93c7910}","{cbb35d3}")):p=3237094159,qa(i,p)):qa(i,3237094160))}function Rf(i){0!==i.C&&(window.clearTimeout(i.C),i.C=0,i.Va=Date.now()-i.bb),i.H||0!==i.F||function tu(i){i.F=window.setTimeout(()=>{var p;i.F=0,m.i("{93c7910}","{d22df91}"),qa(i,null!==(p=Np(i))&&void 0!==p?p:3237093895)},3e4),i.lb=Date.now()}(i)}function Au(i,p){var w;ke.h&&(ke.perf.DCSend+=p),null===(w=i.h)||void 0===w||((i=w.g).j.value+=p,i.j.count+=1,i.j.max=Math.max(p,i.j.max))}function Yh(i){if(Du(i))return i.h.S}function xc(i,p){i.da.innerHTML=p,i.da.style.display="block",i.N&&clearTimeout(i.N),i.N=window.setTimeout(()=>{i.da.style.display="none"},1e3)}function Ju(i,p,w){const V=p.label;let ae=!1;p.onopen=()=>{var me;m.d("{93c7910}","{8e9ee5d}",V),null===(me=w.open)||void 0===me||me.call(w),w.errorCode&&Yf(i)},p.onclosing=()=>{m.d("{93c7910}","{d0c8ae7}",V),ae=!0},p.onclose=()=>{var me;m.d("{93c7910}","{a3c9826}",V),null===(me=w.close)||void 0===me||me.call(w),w.errorCode&&nu(i)},p.onerror=me=>{if(m.e("{93c7910}","{fcd64bb}",V),ae&&w.errorCode)nu(i)||qa(i,15867907);else{var He=p.bufferedAmount;me=me?.error,i.Z||Fa(i.G,"ChannelError",V,me?.name,me?.message,He?.toString()),m.e("{93c7910}","{db7ae96}",V,me?.name,me?.message),w.errorCode&&qa(i,w.errorCode)}}}function Rp(i,p){el(i,{etwPrint:p})}function Sl(){m.d("{93c7910}","{440d709}",ke.j,performance.timeOrigin)}function Wh(i){var p=1;for(let w=1;10>w;w++)p*=10;p=(p=""+Math.floor(Math.random()*p)).padEnd(10,"0"),i.name="peer-"+p,m.d("{93c7910}","{f2b789d}",i.name),i.M=i.L+"/sign_in?peer_id="+i.name+"&version=2",i.signalingUrlQueryParameters&&(i.M+="&"+i.signalingUrlQueryParameters),m.d("{93c7910}","{05b8afd}",i.M)}function Dc(i,p){var w,V;i.H||(i.cb=Date.now()-i.lb,void 0===p?Ma||(null===(V=i.O)||void 0===V||V.uninitialize(4001),i.O=void 0,ke.startWebSocket(i.M,i.maxReceivedAckId,i,!0),oa&&Vf(i)):function kf(i){var p,w,V,ae,me,He,ct,Ut,Lt;const qt=ii=>{var Zi,nr;return(null!==(Zi=ii?.get("TCP"))&&void 0!==Zi?Zi:0)+(null!==(nr=ii?.get("IPV6"))&&void 0!==nr?nr:0)};var on=(ii,Zi)=>{let nr=0;if(Zi){ii=`${ii} local candidates:`;for(const[fr,So]of Zi)nr+=So,ii+=` ${Zi=fr}: ${So}`;m.i("{93c7910}","{0b0c6f9}",ii)}return nr};const Dn=null===(p=i.h)||void 0===p?void 0:function _g(i){let p=new yp;if(!i.j)return p;for(const w of i.j.values())"local-candidate"===w.type&&(i=Ku(w),p.set(i,p.get(i)+1));return p}(p);p=on("event",i.ca);const Yn=on("stats",Dn);on=p-i.Ta;let ki="";const Ln=null===(w=i.g)||void 0===w?void 0:w.getReceivers().find(ii=>"video"===ii.track.kind&&ii.track.enabled);(w=null===(He=null===(me=null===(ae=null===(V=Ln?.Yg)||void 0===V?void 0:V.Ug)||void 0===ae?void 0:ae.getSelectedCandidatePair)||void 0===me?void 0:me.call(ae))||void 0===He?void 0:He.local)&&(ki=`category: ${Ku(w)}, type: ${w.type}`),Vs(i.G,"LocalCandidatesCategories",ki,p,p-qt(i.ca),Yn,Yn-qt(Dn)),V=null!==(Ut=null===(ct=i.h)||void 0===ct?void 0:function yg(i){let p=new Set;if(!i.j)return p;for(const w of i.j.values())"local-candidate"===w.type&&"IPV4"===Ku(i=w)&&"UNKNOWN"!==(i=bg(i))&&p.add(i);return p}(ct))&&void 0!==Ut?Ut:new Set,Vs(i.G,"LocalCandidateRanges",`${null===(Lt=i.g)||void 0===Lt?void 0:Lt.iceGatheringState}`,on,V?.size,i.ka.size,new Set([...V,...i.ka]).size)}(i),i.H=!0,0!==i.F&&(window.clearTimeout(i.F),i.F=0),p={sessionId:i.session.sessionId,subSessionId:i.session.subSessionId,streams:i.o,streamInfo:i.session.streamInfo,error:p,zoneName:i.session.zoneName,zoneAddress:i.session.zoneAddress,gpuType:i.session.gpuType,isResume:null!==(w=i.isResume)&&void 0!==w&&w},i.Ba.Gc(p),i.ga.send())}function Jr(i,p){var w;try{if("open"===(null===(w=i.S)||void 0===w?void 0:w.readyState)){let V=performance.now();i.S.send(JSON.stringify(p)),Au(i,performance.now()-V)}else m.w("{93c7910}","{593db1b}")}catch(V){m.e("{93c7910}","{a585a6e}",V),i.G.za(V,"sendControlMessage exception","{93c7910}.ts",0,0,!0)}}function Lf(i){i.m&&(i.m.uninitialize(),i.m=void 0)}function $h(i){var p;null===(p=i.h)||void 0===p||p.stop()}function qu(){return(qu=r(function*(i,p,w){var V;m.d("{93c7910}","{9978507}",p);try{const ae=JSON.parse(w);if("offer"===ae.type){i.Sa=!0;let me,He=ae.sdp||"";m.d("{93c7910}","{ca9a155}",He);const ct=yield i.lc;if(i.W=function Eu(i,p){i=i.split("\r\n");var w=-1;if(!p.length)return"H264";for(var V=0;V<i.length;V++)if(i[V].startsWith("m=video")){w=V;break}if(-1===w)return m.e("{93c7910}","{3ab33e3}"),"H264";for(w+=1,V=new Set;w<i.length&&!i[w].startsWith("m=");){var ae=i[w];0===ae.indexOf("a=rtpmap:")&&("H264"!==(ae=ae.slice(ae.indexOf(" ")+1,ae.indexOf("/")))&&"H265"!==ae&&"AV1"!==ae||V.add(ae)),w++}for(const me of p)if(V.has(me))return m.i("{93c7910}","{304c3b1}",me),me;return m.i("{93c7910}","{81357e4}"),"H264"}(He,ct),ae.nvstSdp){const Lt=null!==(V=ae.nvstServerOverrides)&&void 0!==V?V:"";if(me=function Ya(i,p,w){var V,ae=i.s,me=i.u,He=i.W;if(p=function Of(i){let V,ae,p={origin:"",time:"",nb:new Map,media:[]},w=new Map,me=!1;const He=()=>{if(me){if(!ae||!V)return m.e("{eb7c2d0}","{adc37a7}"),!1;p.media.push({mediaType:ae,Fc:V,attributes:w}),V=ae=void 0}else p.nb=w,me=!0;return w=new Map,!0};for(const Ut of i.split(/\r?\n/))if(!(2>Ut.length||"="!==Ut[1])){var ct=Ut[0];if(i=Ut.substr(2),"m"==ct){if(!He())return;ae=i.split(" ")[0]}else if("a"==ct){if(1!==(ct=i.split(":",2)).length){if(2!==ct.length)return void m.e("{eb7c2d0}","{f6bdb84}",i);if(i=ct[0],ct=ct[1],"msid"===i){if(void 0!==V)return void m.e("{eb7c2d0}","{dc7fbec}",ct);V=ct}else w.set(i,ct)}}else if("t"==ct){if(me)return void m.e("{eb7c2d0}","{14fc069}");p.time=i}else if("o"==ct){if(me)return void m.e("{eb7c2d0}","{eb0287a}");p.origin=i}}if(He()){if(""!==p.time&&""!==p.origin)return p;m.e("{eb7c2d0}","{8e7e486}")}}(p)){var Ut,ct=p;const ql={origin:ct.origin,time:ct.time,nb:new Map,media:[]};ql.nb.set("general.clientSupportsIntraRefresh","Safari"===me.browser?"0":"1"),ql.nb.set("general.clientCapture",null!==(Ut=ct.nb.get("general.clientCapture"))&&void 0!==Ut?Ut:"0"),ql.nb.set("runtime.serverTraceCapture","2"),Ut=0;for(const Wl of ct.media){if(ct=new Map,"video"===Wl.mediaType&&Ut<ae.video.length){var Lt=ct,qt=ae.video[Ut],on=me,Dn=He;Lt.set("vqos.fec.rateDropWindow","10"),Lt.set("vqos.fec.minRequiredFecPackets","2"),Lt.set("vqos.drc.minRequiredBitrateCheckEnabled","1"),Lt.set("video.dx9EnableNv12","1"),Lt.set("vqos.qpg.enable","1"),Lt.set("vqos.resControl.qp.qpg.featureSetting","7"),Lt.set("bwe.useOwdCongestionControl","1"),Lt.set("video.enableRtpNack","1"),Lt.set("vqos.bw.txRxLag.minFeedbackTxDeltaMs","200"),Lt.set("vqos.fec.repairMinPercent","5"),Lt.set("vqos.fec.repairPercent","5"),Lt.set("vqos.fec.repairMaxPercent","35"),Lt.set("vqos.drc.bitrateIirFilterFactor","18"),Lt.set("video.packetSize","1140"),Lt.set("packetPacing.minNumPacketsPerGroup","15"),Lt.set("vqos.bllFec.enable","0");var Yn=void 0,ki=Me(on)||be(on);(null!==(Yn=Pr.enableOOFQosEnhancements)&&void 0!==Yn?Yn:ki)&&(Lt.set("vqos.adjustStreamingFpsDuringOutOfFocus","1"),Lt.set("vqos.resControl.cpmRtc.ignoreOutOfFocusWindowState","1"),Lt.set("vqos.resControl.perfHistory.rtcIgnoreOutOfFocusWindowState","1")),ki=120<=qt.fc;var Ln=120===qt.fc,ii=240===qt.fc,Zi=4953600<=qt.$b*qt.Zb,nr=Ye(qt.$b,qt.Zb)||Zi;if((Yn=Be(on))&&Lt.set("vqos.resControl.cpmRtc.featureMask","3"),ki&&(Lt.set("bwe.iirFilterFactor","8"),Lt.set("video.encoderFeatureSetting","47"),Lt.set("video.encoderPreset","6"),Lt.set("vqos.resControl.cpmRtc.badNwSkipFramesCount"," 600"),Lt.set("vqos.resControl.cpmRtc.decodeTimeThresholdMs","9"),Ln?(Lt.set("video.fbcDynamicFpsGrabTimeoutMs","6"),Lt.set("vqos.resControl.cpmRtc.serverResolutionUpdateCoolDownCount","6000")):ii&&(Lt.set("video.fbcDynamicFpsGrabTimeoutMs","18"),Lt.set("vqos.resControl.cpmRtc.serverResolutionUpdateCoolDownCount","12000"),Lt.set("video.enableNextCaptureMode","1"),Lt.set("vqos.maxStreamFpsEstimate","240"),Lt.set("video.videoSplitEncodeStripsPerFrame","3"),Lt.set("video.updateSplitEncodeStateDynamically","1"))),(nr||42e3<=qt.Bc)&&(Lt.set("packetPacing.numGroups",Ln?"3":"5"),Lt.set("packetPacing.maxDelayUs","1000"),Lt.set("packetPacing.minNumPacketsFrame","10"),Lt.set("video.rtpNackQueueLength","1024"),Lt.set("video.rtpNackQueueMaxPackets","512"),Lt.set("video.rtpNackMaxPacketCount","25"),Lt.set("vqos.drc.qpMaxResThresholdAdj","4"),Lt.set("vqos.grc.qpMaxResThresholdAdj","4"),Lt.set("vqos.drc.iirFilterFactor","100"),Lt.set("vqos.qpg.enable","0"),Lt.set("vqos.resControl.qp.qpg.featureSetting","0"),nr&&(Lt.set("video.videoSplitEncodeStripsPerFrame","3"),Lt.set("video.updateSplitEncodeStateDynamically","1")),Zi&&(Lt.set("video.encoderPreset","6"),Lt.set("vqos.drc.add1440pResLevelFor4kDrcTable","1"),Lt.set("vqos.drc.minAdaptiveQpThreshold","40"),Lt.set("vqos.grc.minAdaptiveQpThreshold","40"),Lt.set("vqos.drc.upperQpThreshold","40"),Lt.set("vqos.grc.upperQpThreshold","40"),Lt.set("vqos.drc.qpMaxResThresholdAdj","5"),Lt.set("vqos.grc.qpMaxResThresholdAdj","5"),Lt.set("vqos.drc.iirFilterFactor","100"),Lt.set("vqos.fec.repairMinPercent","0"),Lt.set("vqos.qpg.enable","0"),Lt.set("vqos.resControl.qp.qpg.featureSetting","0"))),"AV1"===Dn){var So,es,ha,hs,Us,za,nl,ul,fr=nr=ii=Ln=Dn=void 0,bo=void 0,wo=void 0,Gr=Lt;Gr.set("vqos.qpg.enable","0"),Gr.set("vqos.resControl.qp.qpg.featureSetting","0"),Gr.set("vqos.drc.minQpHeadroom","20"),Gr.set("vqos.drc.lowerQpThreshold","100"),Gr.set("vqos.drc.upperQpThreshold","200"),Gr.set("vqos.drc.minAdaptiveQpThreshold","180");let hc=Number(null!==(ul=Gr.get("vQosConfig.drc.qpMaxResThresholdAdj"))&&void 0!==ul?ul:"0");Gr.set("vqos.drc.qpMaxResThresholdAdj",(5*hc).toString()),Gr.set("vqos.drc.qpCodecThresholdAdj","0"),Gr.set("vqos.dfc.minQpHeadroom",null!==(nl=Gr.get("vqos.drc.minQpHeadroom"))&&void 0!==nl?nl:"0"),Gr.set("vqos.dfc.qpLowerLimit",null!==(za=Gr.get("vqos.drc.lowerQpThreshold"))&&void 0!==za?za:"0"),Gr.set("vqos.dfc.qpMaxUpperLimit",null!==(Us=Gr.get("vqos.drc.upperQpThreshold"))&&void 0!==Us?Us:"0"),Gr.set("vqos.dfc.qpMinUpperLimit",null!==(hs=Gr.get("vqos.drc.minAdaptiveQpThreshold"))&&void 0!==hs?hs:"0"),Gr.set("vqos.dfc.qpMaxResThresholdAdj",null!==(ha=Gr.get("vQosConfig.drc.qpMaxResThresholdAdj"))&&void 0!==ha?ha:"0"),Gr.set("vqos.dfc.qpCodecThresholdAdj",null!==(es=Gr.get("vqos.drc.qpCodecThresholdAdj"))&&void 0!==es?es:"0"),Zi&&(Gr.set("vqos.drc.minAdaptiveQpThreshold",null!==(wo=Gr.get("vQosConfig.drc.upperQpThreshold"))&&void 0!==wo?wo:"0"),Gr.set("vqos.dfc.qpMinUpperLimit",null!==(bo=Gr.get("vQosConfig.dfc.qpMaxUpperLimit"))&&void 0!==bo?bo:"0")),Gr.set("vqos.grc.minQpHeadroom",null!==(So=Gr.get("vqos.drc.minQpHeadroom"))&&void 0!==So?So:"0"),Gr.set("vqos.grc.lowerQpThreshold",null!==(fr=Gr.get("vqos.drc.lowerQpThreshold"))&&void 0!==fr?fr:"0"),Gr.set("vqos.grc.upperQpThreshold",null!==(nr=Gr.get("vqos.drc.upperQpThreshold"))&&void 0!==nr?nr:"0"),Gr.set("vqos.grc.minAdaptiveQpThreshold",null!==(ii=Gr.get("vqos.drc.minAdaptiveQpThreshold"))&&void 0!==ii?ii:"0"),Gr.set("vqos.grc.qpMaxResThresholdAdj",null!==(Ln=Gr.get("vqos.drc.qpMaxResThresholdAdj"))&&void 0!==Ln?Ln:"0"),Gr.set("vqos.grc.qpCodecThresholdAdj",null!==(Dn=Gr.get("vqos.drc.qpCodecThresholdAdj"))&&void 0!==Dn?Dn:"0")}if(Lt.set("video.clientViewportWd",qt.$b.toString()),Lt.set("video.clientViewportHt",qt.Zb.toString()),Lt.set("video.maxFPS",qt.fc.toString()),Lt.set("video.initialBitrateKbps",qt.Fd.toString()),Lt.set("video.initialPeakBitrateKbps",qt.nf.toString()),Lt.set("vqos.bw.maximumBitrateKbps",qt.Bc.toString()),Lt.set("vqos.bw.minimumBitrateKbps",qt.ed.toString()),Lt.set("video.maxNumReferenceFrames","4"),Lt.set("video.mapRtpTimestampsToFrames",qt.Ac?"1":"0"),Lt.set("video.encoderCscMode","3"),Z()&&(Lt.set("vqos.drc.stepDownMinHeight","480"),W(on,!1,14,5)||(on=qt.$b/qt.Zb*100,Lt.set("vqos.drc.stepDownResolutionAlignment","16"),Lt.set("vqos.drc.stepDownTargetAspectRatioX100",on.toFixed(0)))),on=Lt,Zi=qt.dynamicStreamingMode,(ki||2===Zi)&&(1!==Zi&&(on.set("vqos.drc.enable","0"),on.set("vqos.dfc.enable","1")),on.set("vqos.dfc.decodeFpsAdjPercent","85"),on.set("vqos.dfc.targetDownCooldownMs","250"),on.set("vqos.dfc.dfcAlgoVersion","1"),on.set("vqos.dfc.minTargetFps","60"),Yn&&on.set("vqos.cpm.flags","1"),on.set("vqos.resControl.dfc.useClientFpsPerf","0")),void 0!==Zi)switch(Zi){case 3:Uh(on,!0,ki);break;case 2:Uh(on,!0,!0);break;case 1:Uh(on,!0,!1);break;case 0:Uh(on,!1,ki)}ji&&1===qt.sdrHdrMode&&(Lt.set("video.encoderCscMode","4"),Lt.set("video.dynamicRangeMode","1")),Ut++}"application"===Wl.mediaType&&(qt=Lt=void 0,(Yn=ct).set("ri.partialReliableThresholdMs",null!==(qt=(on=Wl).attributes.get("ri.partialReliableThresholdMs"))&&void 0!==qt?qt:"0"),Yn.set("ri.hidDeviceMask",null!==(Lt=on.attributes.get("ri.hidDeviceMask"))&&void 0!==Lt?Lt:"0")),ql.media.push({mediaType:Wl.mediaType,Fc:Wl.Fc,attributes:ct})}var il,Jl;me=ql,Cp(He=null!==(Jl=null===(il=Pr.nvscClientConfigFields)||void 0===il?void 0:il.join("\n"))&&void 0!==Jl?Jl:"",me,p,"remoteconfig"),Cp(w,me,p,"server"),w=wr&&!Cp(Ra,me,p,"client")?{error:3237093917}:function Cg(i,p){let w=!0;const V=(me,He)=>(me=me.get(He))&&(me=parseInt(me),!Number.isNaN(me))?me:(m.e("{eb7c2d0}","{0a60213}",He),w=!1,0);i.vd=V(p.nb,"general.clientCapture");let ae=0;for(const me of p.media){if("video"===me.mediaType&&ae<i.video.length){const He=me.attributes;(p=i.video[ae]).$b=V(He,"video.clientViewportWd"),p.Zb=V(He,"video.clientViewportHt"),p.fc=V(He,"video.maxFPS"),p.Fd=V(He,"video.initialBitrateKbps"),p.nf=V(He,"video.initialPeakBitrateKbps"),p.Bc=V(He,"vqos.bw.maximumBitrateKbps"),p.ed=V(He,"vqos.bw.minimumBitrateKbps"),p.Ac=0<V(He,"video.mapRtpTimestampsToFrames"),ae++}"application"===me.mediaType&&(i.Jc.Pd=V(me.attributes,"ri.partialReliableThresholdMs"),i.Jc.lf=V(me.attributes,"ri.hidDeviceMask"))}return w}(ae,me)?{config:ae,Se:Ap(me,p)}:{error:3237093918}}else w={error:3237093911};if(w.config&&w.Se)return i.s=w.config,w.Se;Dc(i,{code:null!==(V=w.error)&&void 0!==V?V:3237093910})}(i,ae.nvstSdp,Lt),!me)return}i.aa=new Eg(i.s,i.W),function xu(i,p){var w,V,ae,me,He;m.d("{93c7910}","{d79ed0a}",p);try{let ct={};Pr.enableStunServer&&(ct.iceServers=[{urls:"stun:s1.stun.gamestream.nvidia.com:19308"}]),null===(w=i.aa)||void 0===w||w.g.vd&&(ct.encodedInsertableStreams=!0),m.d("{93c7910}","{93106c2}",JSON.stringify(ct)),i.ra=p,i.g=new RTCPeerConnection(ct);const Ut=Lt=>{var qt,on;if(i.U){var Dn=i.U;Vs(i.G,"IceStats","disconnected",0,Dn.Mf,Dn.Nf,Dn.Lf),i.U=void 0}(Dn=null===(qt=i.h)||void 0===qt?void 0:Df(qt))&&Vs(i.G,"IceStats","failed",0,Dn.Mf,Dn.Nf,Dn.Lf),i.l|=16,4&i.l?i.h&&0==i.h.packetsReceived()?qa(i,3237093900):qa(i,i.h&&0==i.h.l?3237093901:Lt?3237093906:3237093899):qa(i,null!==(on=Np(i))&&void 0!==on?on:3237093894)};if(i.g.onconnectionstatechange=()=>{i.g?"failed"===(m.d("{93c7910}","{4ced155}",i.g.connectionState),i.g.connectionState)&&(nu(i)||Ut(!1)):m.e("{93c7910}","{648f784}")},i.g.oniceconnectionstatechange=()=>{var Lt;if(i.g)switch(m.d("{93c7910}","{3a3143a}",i.g.iceConnectionState),i.g.iceConnectionState){case"new":i.l|=1;break;case"checking":i.l|=2;break;case"connected":i.U=void 0,32&i.l&&(i.J.emit("StreamingEvent",{streamingState:{state:"reconnected"}}),i.Za++),i.l|=4;break;case"completed":i.U=void 0,i.l|=12;break;case"failed":Ut(!0);break;case"disconnected":i.U=null===(Lt=i.h)||void 0===Lt?void 0:Df(Lt),4&i.l&&i.J.emit("StreamingEvent",{streamingState:{state:"reconnecting"}}),i.l|=32;break;case"closed":i.l|=64,32&i.l&&qa(i,3237093892)}else m.e("{93c7910}","{648f784}")},i.g.ondatachannel=Lt=>{m.d("{93c7910}","{b364db9}",Lt.channel.label),"control_channel"==Lt.channel.label&&(Ju(i,Lt.channel,{errorCode:3237093898,open:()=>{var qt,on,Dn,Yn;i.S=Lt.channel;for(const ki of i.ea)Jr(i,ki);m.d("{93c7910}","{038895c}",i.ea.length),i.ea=[],Rp(i,`NvRtcClient Browser name: ${i.u.browser}, Browser version: ${i.u.browserFullVer}`),el(i,{etwPrintPair:{key:"GPU Detail",value:i.u.gpuDetail}}),jf(i,null!==(on=null===(qt=i.h)||void 0===qt?void 0:qt.l)&&void 0!==on?on:0),Xc(i.j,0,i.P),Xc(i.j,1,i.P),Xc(i.j,2,i.P),navigator.getBattery&&(tl(i,null!==(Yn=null===(Dn=i.h)||void 0===Dn?void 0:Dn.l)&&void 0!==Yn?Yn:0),Xc(i.j,4,i.fa),Xc(i.j,3,i.fa)),Qc()&&(Rp(i,"ClientGenericMapping: {ProcCpuUsage, TotalCpuUsage}"),Xc(i.j,5,i.Pa)),window.requestAnimationFrame(i.Ka)}}),Lt.channel.onmessage=qt=>{try{var on=JSON.parse(qt.data);if(m.d("{93c7910}","{9371373}"),on.exitMessage)qa(i,function St(i){if(i.stopData){var p=function Jn(i){if(2>i.length)return null;const p=atob(i);let w=0;const V=()=>{const ae=256*p.charCodeAt(w)+p.charCodeAt(w+1);return w+=2,ae};return 0==V()?i.length<w+2?null:V():null}(i.stopData);if(p||0===p)return m.d("{c00be32}","{921626d}",p),Sn(p)}if(i.nvstResult){switch(m.d("{c00be32}","{f30bc33}",i.nvstResult),p=15868672,i=i.nvstResult){case 2147680256:case 2147680291:p=15868704;break;case 2147680257:p=15868705;break;case 2147680258:p=3237093635;break;case 2147680259:p=3237094152;break;case 2147680260:p=15868706;break;case 2147680262:p=15868707;break;case 2147680263:p=15868708;break;case 2147680264:p=15868736;break;case 2147680265:p=15868737;break;case 2147680266:p=15868738;break;case 2147680267:p=15868739;break;case 2147680268:p=15868741;break;case 2147680269:p=15868740;break;case 2147680270:p=15868742;break;case 2147680271:p=3237094147;break;case 2147680275:p=15868743;break;case 2147680277:p=15868709;break;case 2147680278:p=15868744;break;case 2147680279:p=15868710;break;case 2147680280:p=15868711;break;case 2147680281:p=15868712;break;case 2147680283:p=3237094155;break;case 2147680284:p=3237094156;break;case 2147680285:p=3237094157;break;case 2147680286:p=3237093678;break;case 2147680287:p=15868715;break;case 2147680288:p=15868716;break;case 2147680289:p=15868719;break;case 2147680300:p=15868688;break;case 2147745794:case 2147745797:case 2147745803:p=3237093892;break;case 2147745796:p=3237094158;break;case 2147745804:p=3237094146;break;case 2147745805:p=3237094148;break;case 2147745806:p=3237094149;break;case 2147745807:p=3237094150;break;case 2148438786:p=15868718;break;default:m.d("{c00be32}","{094c45e}",H(i))}return p}return i.code?(m.d("{c00be32}","{6210ab0}",i.code),Sn(i.code)):15868672}(on.exitMessage));else if(on.timerNotification){var Dn=(qt=on).timerNotification.code;switch(on=0,m.d("{c00be32}","{44bd2b6}",Dn),Dn){case 1:case 2:on=1;break;case 4:on=2;break;case 6:on=3}var Yn=on;0===Yn?m.e("{93c7910}","{de37ac5}",qt.timerNotification.code):Gf(i,Yn,qt.timerNotification.secondsLeft)}else on.debugMessage?xc(i,on.debugMessage.message):on.customMessage?i.J.emit("CustomMessage",JSON.parse(on.customMessage)):on.videoStreamProgressEvent?i.videoStreamProgress=on.videoStreamProgressEvent.videoStreamProgress:m.d("{93c7910}","{d14e0fd}")}catch(ki){m.e("{93c7910}","{a40734a}",ki),i.G.za(ki,"Error in control_channel message handling","{93c7910}.ts",0,0,!0)}})},m.d("{93c7910}","{d9ffda2}"),m.d("{93c7910}","{2bd4728}"),i.Ja=i.g.createDataChannel("input_channel_v1",{ordered:!0,reliable:!0}),i.Ja.binaryType="arraybuffer",Ju(i,i.Ja,{errorCode:3237093896}),0<i.s.Jc.Pd){m.d("{93c7910}","{ff9ae1e}");let Lt={ordered:!1,maxPacketLifeTime:i.s.Jc.Pd};m.d("{93c7910}","{9149fff}",JSON.stringify(Lt)),i.Aa=i.g.createDataChannel("gamepad_channel_v1",Lt),i.Aa.binaryType="arraybuffer",Ju(i,i.Aa,{errorCode:3237093929})}if(i.T=i.g.createDataChannel("cursor_channel",{ordered:!0,reliable:!0}),i.T.binaryType="arraybuffer",Ju(i,i.T,{errorCode:3237093897}),function $t(i){var p;return-1!==(null!==(p=Pr.requireDS4TrackpadForAppIds)&&void 0!==p?p:[]).indexOf(i)}(i.session.appId)&&function Ze(i){ml(i),i.na=!0,ze(i,!0)}(i.v),function Je(i,p){ml(i),i.Da=fs||!!(4&p),i.bb=Ho||!!(2&p),ze(i,!0)}(i.v,i.s.Jc.lf),i.m=new Eh(i,i.K,i.Ja,i.T,i.G,i.J,i.Mb,2===i.appLaunchMode,i.Nb,i.v,i.u,i.Ba,i.ga,i.j,i.V,i.Aa,i.textInputElement),i.oa&&(i.setKeyboardLayout(i.keyboardLayout),i.oa=!1),$i){m.d("{93c7910}","{9ae428b}");const Lt={zoneName:i.session.zoneName,clientAppVersion:null!==(V=i.clientAppVersion)&&void 0!==V?V:"",appId:i.session.appId,Sd:null!==(ae=i.Sd)&&void 0!==ae?ae:"",gpuType:i.session.gpuType,streamInfo:null!==(me=i.session.streamInfo[0])&&void 0!==me?me:{width:0,height:0,fps:0},clientLocale:i.session.clientLocale};i.h=new Sg(i.J,i,i.K,i.g,i.s,i.G,i.u,Lt,i.j,i.V)}i.g.addEventListener("icecandidate",i.Ua),i.g.onsignalingstatechange=()=>{m.i("{93c7910}","{3236227}",i.g.signalingState)},i.g.onicecandidate=Lt=>Oc(i,Lt),i.g.g=Lt=>{m.w("{93c7910}","{9871b05}",Lt.port,Lt.url,Lt.errorCode,Lt.Tg)},(null!==(He=ys)&&void 0!==He?He:!X(i.u))&&i.Da.initialize(i.g,i.J,i.K,i.Ea),i.g.ontrack=Lt=>{var qt;const on=Lt.streams[0];m.d("{93c7910}","{47359d4}",on.id,Lt.track.kind,Lt.track.id,Lt.streams.length,H(i.l));let Dn={kind:"video"===Lt.track.kind?"video":"audio",trackId:Lt.track.id};"audio"!==Lt.track.kind||"stream_id"!==on.id&&"app_media_stream"!==on.id&&"second_stream_id"!==on.id&&"app_audio_stream"!==on.id||(i.qa=Lt.track.id,function eh(i,p){(p=function Hd(i){let p=null;return(i=i.getAudioTracks()).length&&(p=i[0]),p}(p))&&(p.onunmute=()=>{i.Na=!1})}(i,on),null===(qt=i.R)||void 0===qt||qt.initialize(new MediaStream(on.getAudioTracks()))),(Lt=i.o.find(Yn=>Yn.streamId===on.id))?Lt.tracks.push(Dn):i.o.push({streamId:on.id,tracks:[Dn]}),Yf(i)}}catch(ct){m.e("{93c7910}","{ff11182}",ct),i.G.za(ct,"Exception in creating peer connection","{93c7910}.ts",0,0,!0)}}(i,p);let Ut=Date.now();He=function tm(i,p){return p.split("\r\n").map(w=>w.startsWith("a=candidate:")?(i.na=!0,"a="+qo(i,w.substr(2))):w).join("\r\n")}(i,He),He=function Zu(i,p,w,V){let ae=i.split("\r\n"),me=-1;for(var He=0;He<ae.length;He++)if(ae[He].startsWith("m=video")){me=He;break}if(-1===me)return m.e("{93c7910}","{3ab33e3}"),i;for(me++,He=me;He<ae.length;He++)if(ae[He].startsWith("a=imageattr"))return m.d("{93c7910}","{b38bf22}"),i;for(i=new Set;me<ae.length&&!ae[me].startsWith("m=");)/a=rtpmap:.*H26[45]\//.test(He=ae[me])?i.add(He.slice(9,He.indexOf(" "))):0===He.indexOf("a=fmtp:")&&(He=He.slice(7,He.indexOf(" ")),i.has(He)&&(me++,ae.splice(me,0,`a=imageattr:${He} send [x=[960:${p}],y=[540:${w}],fps=[30:${V}]]`))),me++;return ae.join("\r\n")}(He,i.s.video[0].$b,i.s.video[0].Zb,i.s.video[0].fc),m.d("{93c7910}","{542f9d5}",He),i.g.setRemoteDescription({type:ae.type,sdp:He}).then(()=>{i.wa=Date.now()-Ut,function dc(i){let p=i.g.getTransceivers();if(0===p.length)m.d("{93c7910}","{3399d9d}"),Dc(i,{code:3237093909});else{for(const w of p)"3"===w.mid&&w.receiver.track.id!==i.qa?(m.i("{93c7910}","{981392f}"),w.receiver.track.enabled=!1):i.$.push({trackId:w.receiver.track.id,kind:w.receiver.track.kind});m.d("{93c7910}","{648ae93}",JSON.stringify(i.$))}}(i),m.d("{93c7910}","{ab7b3af}",i.wa),function Dg(i){for(const p of i.o)"stream_id"===p.streamId&&2===i.o.length?p.streamId="app_video_stream":"stream_id"===p.streamId?p.streamId="app_media_stream":"second_stream_id"===p.streamId&&(p.streamId="app_audio_stream")}(i);const Lt=function Fp(i){var p=i.o.find(V=>"app_media_stream"===V.streamId);if(p)Ff(i,p,i.K),m.i("{93c7910}","{a5e354c}");else{p=i.o.find(V=>"app_video_stream"===V.streamId);var w=i.o.find(V=>"app_audio_stream"===V.streamId);if(p&&w){const V={streamId:"app_media_stream",tracks:p.tracks.concat(w.tracks)};i.o.splice(i.o.indexOf(p),1),i.o.splice(i.o.indexOf(w),1),i.o.push(V),Ff(i,V,i.K),m.i("{93c7910}","{e2dc4ec}")}else if(p)Ff(i,p,i.K),m.i("{93c7910}","{07f3411}");else if(w){if(!i.Ea)return 3237093937;Ff(i,w,i.Ea),m.i("{93c7910}","{243a50b}")}else m.w("{93c7910}","{c3a2679}")}}(i);Lt?qa(i,Lt):(function em(i){var p;null===(p=i.aa)||void 0===p||p.start(i.g)}(i),function Uf(i){try{if(i.g&&i.sendVideoTrack){const p=i.g.getTransceivers().find(w=>"video"===w.receiver.track.kind);if(p){let w="",V=p.direction;"sendrecv"!==p.direction&&(p.direction="sendrecv",w=" ("+V+" direction is overridden by sendrecv)"),p.sender.replaceTrack(i.sendVideoTrack).then(()=>{m.i("{93c7910}","{b54f651}",w)}).catch(ae=>{p.direction!==V&&(p.direction=V),m.w("{93c7910}","{d225159}",ae)})}else m.w("{93c7910}","{8272b59}")}}catch(p){m.w("{93c7910}","{66082ec}",p)}}(i),function Og(i,p){var w,V,ae;const me=i.g.getTransceivers().find(ct=>"video"===ct.receiver.track.kind&&("recvonly"===ct.direction||"sendrecv"===ct.direction));if(me)if(RTCRtpReceiver.getCapabilities&&RTCRtpSender.getCapabilities&&me.setCodecPreferences){var He=[p,"flexfec-03","rtx"];if(p=null===(w=RTCRtpReceiver.getCapabilities("video"))||void 0===w?void 0:w.codecs,w=[],p){for(const ct of He)(He=p.filter(Ut=>Ut.mimeType==="video/"+ct))&&w.push.apply(w,He);try{me.setCodecPreferences(w)}catch(ct){Bf(i,"Failed to set codec preferences to receiver capabilities",ct);try{w=w.concat(null!==(ae=null===(V=RTCRtpSender.getCapabilities("video"))||void 0===V?void 0:V.codecs)&&void 0!==ae?ae:[]),me.setCodecPreferences(w)}catch(Ut){Bf(i,"Failed to set codec preferences to sender and receiver capabilities",Ut)}}}}else m.w("{93c7910}","{274c489}")}(i,i.W),Ut=Date.now(),i.g.createAnswer().then(qt=>{i.ua=Date.now()-Ut,m.d("{93c7910}","{2984003}",i.ua);const on=i.s.video[0].Bc.toString(),Dn=i.s.video[0].ed.toString(),Yn=i.s.video[0].Fd.toString();if(m.d("{93c7910}","{b535c15}",qt.sdp),void 0!==qt.sdp){qt.sdp=function Ag(i,p){let w=i.split("\r\n"),V=-1;for(let ae=0;ae<w.length;ae++)if(0===w[ae].indexOf("m=video")){V=ae;break}if(-1===V)return m.e("{93c7910}","{e0899ab}","video"),i;for(m.d("{93c7910}","{5cc346f}","video",V),V++;0===w[V].indexOf("i=")||0===w[V].indexOf("c=");)V++;return 0===w[V].indexOf("b")?(m.d("{93c7910}","{e77177e}",V),w[V]="b=AS:"+p,w.join("\r\n")):(m.d("{93c7910}","{3dfc348}",V),(i=w.slice(0,V)).push("b=AS:"+p),(i=i.concat(w.slice(V,w.length))).join("\r\n"))}(qt.sdp,on),window.chrome&&(qt.sdp=Mu(qt.sdp,Dn,on,Yn)),qt.sdp=function Tg(i){var p=[];let w=i.split("\r\n");var V="-1";let ae;for(let me=0;me<w.length;me++)0===w[me].indexOf("a=rtpmap:")?(ae=w[me].split(" ")[1],0===ae.indexOf("opus")&&(V=w[me].split(" ")[0].slice(9),m.i("{93c7910}","{c3dd71b}","audio",V))):0===w[me].indexOf("a=fmtp:"+V+" ")&&(p.push(me),V="-1");if(0===p.length)return m.e("{93c7910}","{115f256}","audio"),i;i=-1,V=[];for(const me of p)m.d("{93c7910}","{9bb0e6f}",p=w[me]),m.d("{93c7910}","{4f021eb}",p+=";stereo=1"),(V=V.concat(w.slice(i+1,me))).push(p),i=me;return(V=V.concat(w.slice(i+1))).join("\r\n")}(qt.sdp);const ki=function xg(i){i=i.split("\r\n");for(var p=-1,w=0;w<i.length;w++)if(0===i[w].indexOf("m=audio")){p=w;break}if(-1===p)m.d("{93c7910}","{a939549}","audio");else{for(var V=w=void 0,ae=void 0,me=void 0,He=p+1;He<i.length;He++)if(0===i[He].indexOf("a=rtpmap:")){var ct=i[He].split(" ")[1];0===ct.indexOf("red")?(V=i[He].split(" ")[0].slice(9),me=ct.split("/")[2],m.i("{93c7910}","{4e6ce55}","audio",V,me)):0===ct.indexOf("multiopus")&&(w=i[He].split(" ")[0].slice(9),ae=ct.split("/")[2],m.i("{93c7910}","{53ebbb1}","audio",w,ae))}else if(0===i[He].indexOf("m=")){m.d("{93c7910}","{9fc6964}",i[He]);break}if(w){for(ct=[],He=[],p+=1;p<i.length;p++)if(0===i[p].indexOf("a=rtpmap:"+V)||0===i[p].indexOf("a=rtcp-fb:"+V)||0===i[p].indexOf("a=fmtp:"+V))He.push(i[p]);else if(0===i[p].indexOf("a=rtpmap:"+w)||0===i[p].indexOf("a=rtcp-fb:"+w)||0===i[p].indexOf("a=fmtp:"+w))ct.push(i[p]);else if(0===i[p].indexOf("m=")){m.d("{93c7910}","{9fc6964}",i[p]);break}return me&&me!==ae&&(V=void 0,He=[],m.w("{93c7910}","{ad53601}",me,ae)),{Ad:V,ff:w,Ig:He.join("\r\n"),Hg:ct.join("\r\n")}}m.d("{93c7910}","{cf4ee2d}","audio")}}(He);ki&&(qt.sdp=function Pp(i,p){let w=i.split("\r\n"),V=-1,ae=-1;for(var me=0;me<w.length;me++)if(0===w[me].indexOf("m=audio")){V=me;break}if(-1===V)return m.d("{93c7910}","{e0899ab}","audio"),i;me=w.slice(0,V);let He=w[V].split(" ");if("0"!==He[3])return m.d("{93c7910}","{794b3c6}","audio",He.join(" ")),i;for(p.Ad?(He[3]=p.Ad,He[4]=p.ff):He[3]=p.ff,me.push(He.join(" ")),i=V+1;i<w.length;i++)if(0===w[i].indexOf("m=")){ae=i;break}return-1===ae&&(ae=w.length-1),me=me.concat(w.slice(V+1,ae)),p.Ad&&(me=me.concat(p.Ig.split("\r\n"))),(me=(me=me.concat(p.Hg.split("\r\n"))).concat(w.slice(ae))).join("\r\n")}(qt.sdp,ki)),m.d("{93c7910}","{1a048a7}",qt.sdp)}Ut=Date.now(),i.g.setLocalDescription(qt).then(()=>{if(i.va=Date.now()-Ut,m.d("{93c7910}","{de86c01}",i.va),void 0===qt.sdp||window.chrome||(qt.sdp=Mu(qt.sdp,Dn,on,Yn)),void 0!==qt.sdp&&me){var ki=Qu(qt.sdp),Ln=ki.shift(),ii=ki[0],Zi=Ln,nr=Hc(ii+Zi,"a=ice-ufrag:")[0];ii=Hc(ii+Zi,"a=ice-pwd:")[0],nr=nr.substr(12),ii=ii.substr(10),ki=Hc(ki[0]+Ln,"a=fingerprint:").map(If),(Ln=Qu(me))[0]+="a=general.icePassword:"+ii+"\r\n",Ln[0]+="a=general.iceUserNameFragment:"+nr+"\r\n",Ln[0]+="a=general.dtlsFingerprint:"+ki[0].value+"\r\n",me=Ln.join("")}Hf(i,p,{type:qt.type,sdp:qt.sdp,nvstSdp:me}),m.i("{93c7910}","{bd70666}",JSON.stringify(i.o)),Yf(i)}).catch(ki=>{m.e("{93c7910}","{ba2deaa}",ki),qa(i,3237093902)})}).catch(qt=>{m.d("{93c7910}","{40c0f69}",qt)}))}).catch(Lt=>{m.e("{93c7910}","{ec2853e}",Lt),qa(i,3237093902)})}else if(ae.candidate){m.d("{93c7910}","{cf4c103}");let me=qo(i,ae.candidate);m.d("{93c7910}","{43e80e0}",me),i.g.addIceCandidate({sdpMLineIndex:ae.sdpMLineIndex,sdpMid:ae.sdpMid,candidate:me}).then(()=>{m.d("{93c7910}","{db0ae14}"),i.na=!0}).catch(He=>{m.e("{93c7910}","{62f207e}",He),Fa(i.G,"AddCandidateFailed",He?.name,He?.message)}),m.d("{93c7910}","{9454009}")}}catch(ae){"BYE"===w?qa(i,15868672):(m.e("{93c7910}","{93367fc}",ae),i.G.za(ae,"Invalid handlePeerMessage Response","{93c7910}.ts",0,0,!0))}})).apply(this,arguments)}function Np(i){var p;const w=kp(i);let V;switch(i.videoStreamProgress){case 0:case 2:break;case 3:V=3237093922;break;case 5:V=3237093923;break;case 7:V=3237093924;break;default:V=3237093925}if(null===(p=i.h)||void 0===p)var ae=void 0;else e:{if(p.j){var me=ae=0,He=0,ct=0;for(const Ut of p.j.values())"candidate-pair"===Ut.type&&(ae+=(p=Ut).requestsSent+p.consentRequestsSent,me+=p.responsesReceived,p.Vg&&He++,"succeeded"===p.state&&ct++);if(m.i("{5cea617}","{47c0ce7}",ae,me),0<ae&&0===me){ae=3237093926;break e}if(!He){ae=3237093927;break e}if(!ct){ae=3237093928;break e}}ae=void 0}return i.id?i.Sa?15859712!==w?V=w:i.na?i.Qa?ae?V=ae:4&i.l&&("connecting"===Zl(i.Ja)?V=3237093919:"connecting"===Zl(i.T)?V=3237093920:"connecting"===Zl(i.S)?V=3237093921:i.Aa&&"connecting"===Zl(i.Aa)&&(V=3237093936)):V=3237093903:V=3237093904:V=3237093913:V=3237093912,V}function qa(i,p){var w;if(!i.Z){if(i.Z=!0,Lf(i),$h(i),i.H){let V={sessionId:i.session.sessionId,subSessionId:i.session.subSessionId,error:{code:p},zoneName:i.session.zoneName,zoneAddress:i.session.zoneAddress};Fa(i.G,"SignalingState",H(p),null===(w=i.g)||void 0===w?void 0:w.signalingState),m.i("{93c7910}","{89d3ea6}",i.g.signalingState),i.Ba.Cf(V)}else Dc(i,{code:p});m.e("{93c7910}","{573fb24}",H(p))}}function Tu(i){i.O=new Xu(i.session.sessionId,{info:i.rc.bind(i),exception:i.qc.bind(i)}),i.O.initialize(i.M,i.maxReceivedAckId,i)}function kp(i){const p=i.o.flatMap(w=>w.tracks);for(const w of i.$)if(!p.find(V=>V.trackId===w.trackId))return"audio"===w.kind?3237093914:3237093905;return m.d("{93c7910}","{4fef10b}"),p.length>i.$.length&&m.w("{93c7910}","{7861bb3}"),15859712}function nu(i){let p=!1;return window.chrome&&"closed"===i.g.signalingState&&(p=!0,qa(i,15867908)),p}function Ff(i,p,w){i=i.g.getTransceivers().map(V=>V.receiver.track),i=new MediaStream(i.filter(V=>p.tracks.find(ae=>ae.trackId===V.id))),w.srcObject=i}function Bf(i,p,w){m.w("{93c7910}","{4d3c418}",p,w),i.G.za(w,p,"{93c7910}.ts",0,0,!0)}function Vf(i){var p={stats:{from:i.id,to:i.ra}},w=ke;w.h=!1,p={startStats:{statsHeader:p}},w.g&&(m.d("{1f5ec29}","{6897d5e}"),w.g.postMessage(p)),i.pa=!0}function el(i,p){"connecting"===Zl(i.S)?i.ea.push(p):Jr(i,p)}function Gf(i,p,w){var V;2===p&&(null===(V=i.m)||void 0===V||pu(V,!0)),m.d("{93c7910}","{5ba6173}",p,w),i.J.emit("StreamingEvent",{streamingWarnings:{code:p,secondsLeft:w}})}function Oc(i,p,w){p.candidate?(w||(w=Ku(p.candidate),i.ca.set(w,i.ca.get(w)+1),"IPV4"===w&&"UNKNOWN"!==(w=bg(p.candidate))&&i.ka.add(w)),"tcp"===p.candidate.protocol?m.d("{93c7910}","{6f19d1e}"):(m.d("{93c7910}","{ac052fa}",p.candidate.port,p.candidate.protocol),Hf(i,i.ra,{sdpMLineIndex:p.candidate.sdpMLineIndex,sdpMid:p.candidate.sdpMid,candidate:p.candidate.candidate}),i.Qa=!0)):m.d("{93c7910}","{a759d16}")}function Hf(i,p,w){const V=JSON.stringify(w);w={peer_msg:{from:i.id,to:p,msg:V},ackid:i.ya.g++},m.d("{93c7910}","{7ecb902}",p,V.length,JSON.stringify(w)),i.O?i.O.send(w):(i=ke).g&&i.g.postMessage({send:w})}function jf(i,p){let w=0;i.j.h&&(w|=2),i.j.v&&(w|=1),i.j.j&&(w|=16);const V={windowState:{streamIndex:0,frameNumber:p,windowStateFlags:w}};m.i("{93c7910}","{ca317d5}",w.toString(16),p),el(i,V)}function tl(i,p){let w=0;i.j.s&&(w|=4),i.j.C&&(w|=1);const V={systemState:{streamIndex:0,frameNumber:p,systemStateFlags:w}};m.i("{93c7910}","{455ccc0}",w.toString(16),p),el(i,V)}function Yf(i){0<i.$.length&&"connecting"!==Zl(i.S)&&"connecting"!==Zl(i.T)&&"connecting"!==Zl(i.Ja)&&(!i.Aa||"connecting"!==Zl(i.Aa))&&15859712===kp(i)&&Dc(i)}function qo(i,p){return m.d("{93c7910}","{2dd62a2}"),(i=i.session.mediaConnectionInfo.find(w=>2===w.usage||17===w.usage))?((p=p.split(" "))[4]=i.ip,p[5]=""+i.port,p=p.join(" "),m.d("{93c7910}","{1fbcd88}",p),p):(m.d("{93c7910}","{aee7283}"),p)}function Du(i){return!(!i.h||0==i.h.m)}function Gd(i){var p;null===(p=i.h)||void 0===p||0!=p.m&&(p.reset(),kh(p,!1))}function Pg(i){var p;null===(p=i.h)||void 0===p||0!=p.m||Sp(p)}function th(i){return i.h?i.h.l:0}function nh(i){var p;let w=null===(p=i.h)||void 0===p?void 0:p.N;return(void 0===w||"UNKNOWN"===w)&&(w=i.W),w}var Kh=class{constructor(i,p,w,V,ae,me,He,ct,Ut,Lt,qt,on,Dn,Yn,ki,Ln,ii,Zi,nr){var fr,So;let bo;this.signalingUrlQueryParameters=nr,this.name="",this.id=0,this.s={video:[],vd:0,Jc:{Pd:0,lf:0}},this.ra=-1,this.H=this.Z=!1,this.F=this.N=this.l=0,this.pa=!1,this.C=this.xa=0,this.na=this.Qa=this.Sa=!1,this.Na=!0,this.stutterIndicator=this.perfIndicator=!1,this.sa=0,this.$=[],this.o=[],this.M="",this.ta=0,this.ya=new Dt,this.bb=this.ua=this.va=this.wa=0,this.lb=Date.now(),this.Za=this.cb=this.Va=0,this.oa=!1,this.keyboardLayout="",this.videoStreamProgress=this.maxReceivedAckId=0,this.ea=[],this.qa="",this.P=this.pc.bind(this),this.fa=this.oc.bind(this),this.Pa=this.nc.bind(this),this.Ta=0,this.ca=new yp,this.Ua=this.mc.bind(this),this.ka=new Set,this.W="UNKNOWN",this.u=Ut,this.K=p,this.Ea=w,this.Da=V,this.J=i,m.d("{93c7910}","{e1ca54d}",JSON.stringify(Lt)),Lt.finalizedStreamingFeatures||m.w("{93c7910}","{6f17ef5}"),this.session=Lt,Ft?(bo=Ft,m.d("{93c7910}","{55e5b30}",bo)):null!=qt&&qt.maxBitrateKbps&&(bo=qt?.maxBitrateKbps,m.d("{93c7910}","{965049f}",bo)),void 0===ii&&void 0!==qt?.drc&&(ii=qt.drc?3:0);for(const wo of Lt.streamInfo)null!=bo?w=bo:(w=Yu(wo.width,wo.height,wo.fps)[0],m.d("{93c7910}","{aff4184}",w)),w=Math.max(4e3,w),V=Math.max(4e3,Math.round(w/4)),this.s.video.push({$b:wo.width,Zb:wo.height,fc:wo.fps,dynamicStreamingMode:ii,Bc:w,Fd:V,nf:V,Ac:!0,ed:4e3,sdrHdrMode:wo.sdrHdrMode});if(this.lc=hf(null!==(fr=this.session.streamInfo[0])&&void 0!==fr?fr:{width:0,height:0,fps:0},this.u),function An(){Nn.apply(this,arguments)}(),this.G=ct,ct=Lt.appId,(ii=Pr.disableUnadjustedMovementForAppIds)&&-1!==ii.indexOf(ct)?(m.i("{d988e7f}","{265cfdc}",ct),ct=!1):ct=yr,this.Mb={unadjustedMovement:ct,...ae},this.Ba=i,this.Nb=me,this.v=He,this.R=on,this.textInputElement=Dn,this.appLaunchMode=Lt.appLaunchMode,this.clientAppVersion=Yn,this.isResume=ki,this.Sd=Ln,Zi)for(const wo of Zi)if(wo.track instanceof MediaStreamTrack&&"video"===wo.track.kind){this.sendVideoTrack=wo.track;break}this.sendVideoTrack=null!==(So=this.sendVideoTrack)&&void 0!==So?So:qt?.sendVideoTrack,i=(i=this.session.signalConnectionInfo.protocol).replace("http","ws"),this.L=i+"://"+this.session.signalConnectionInfo.ip+":"+this.session.signalConnectionInfo.port,(i=this.session.signalConnectionInfo.resourcePath)&&(this.L+=("/"===i.charAt(0)?"":"/")+i,"/"===this.L.charAt(this.L.length-1)&&(this.L=this.L.slice(0,-1))),ke.initialize(this.session.sessionId,this.G,this.ya),this.ga=new qg(this,p,this.u,this.G),this.j=new Cu(Ut),(p=document.createElement("div")).style.position="absolute",p.style.zIndex="300",p.style.left="0",p.style.top="0",p.style.width="100%",p.style.display="none",p.style.fontSize="3em",p.style.color="white",p.style.backgroundColor="gray",p.style.textAlign="center",this.K.insertAdjacentElement("afterend",p),this.da=p,this.$a={tc:32768,Cc:256,Dc:255,vb:this.ja.bind(this)},this.ab={tc:16384,Cc:512,Dc:65280,vb:this.Bb.bind(this)},this.Oa={tc:16384,Cc:512,Dc:255,vb:this.sc.bind(this)},this.V={td:0,Te:0,Rc:0,jd:0,ld:0,kd:0,Ud:0,fd:0,Qc:0,gd:0},this.Ka=this.kc.bind(this)}start(){(function Lp(i){Wh(i);let p=1e4;Pr.signInTimeout&&0!==Pr.signInTimeout&&(p=Pr.signInTimeout,m.i("{93c7910}","{4f2f101}",p)),i.C=window.setTimeout(()=>i.signInTimeout(),p),i.bb=Date.now(),Tu(i)})(this),ke.j=performance.now(),Sl(),wr&&(this.v.v.push(this.$a),this.v.v.push(this.ab),this.v.v.push(this.Oa))}stop(i){var p,w,V,ae;Vs(this.G,"StreamTimersAndReconnects",H(i),0,this.Va,this.cb,this.Za);const me=He=>{m.i("{93c7910}","{a848987}",He),Vs(this.G,"PeerAPIDurationsAndMic",H(i),this.ua,this.wa,this.va,He)};mu().then(He=>{me(He)}),Dc(this,{code:i,description:"Session stopped before stream connected"}),this.N&&(clearTimeout(this.N),this.N=0),this.da.remove(),this.Z=!0;try{Jr(this,{exitMessage:{code:Xt(i)}})}catch(He){m.e("{93c7910}","{d337883}",He)}Lf(this),this.Ja&&this.Ja.close(),null===(p=this.Aa)||void 0===p||p.close(),$h(this),null===(w=this.g)||void 0===w||w.removeEventListener("icecandidate",this.Ua),this.g&&this.g.close(),function Nf(i){var p;if(null!==(p=i.aa)&&void 0!==p){for(const V of p.streams){var w=(new Date).toISOString();w=`ragnarok-${V.Nd}-${w}.${V.kg}`,yn([new DataView(V.data.buffer,0,V.size)],w,"text/plain")&&m.i("{d7392d2}","{4b3378a}",w)}p.streams=[]}i.aa=void 0}(this),0!==this.F&&(window.clearTimeout(this.F),this.F=0),0!==this.C&&(window.clearTimeout(this.C),this.C=0),Fl(),null===(V=this.O)||void 0===V||V.uninitialize(),ke.stopWebSocket(),Sl(),function rd(){var p,i=ke;i.v||null===(p=i.G)||void 0===p||Fa(p,"Worker Thread Creation Failed"),i.G=void 0,i.s=void 0}(),this.qa&&this.Na&&(m.e("{93c7910}","{283a180}"),Fa(this.G,"Audio track muted")),0<this.xa&&Vs(this.G,"WebSocketClose","",0,this.xa,0,0),null===(ae=this.R)||void 0===ae||ae.uninitialize(),this.ga.uninitialize(),Ql(this.j,0,this.P),Ql(this.j,1,this.P),Ql(this.j,2,this.P),Ql(this.j,4,this.fa),Ql(this.j,3,this.fa),Qc()&&Ql(this.j,5,this.Pa),this.j.uninitialize(),mc(this.v,this.$a),mc(this.v,this.ab),mc(this.v,this.Oa),this.K.srcObject=null,this.Ea&&(this.Ea.srcObject=null)}signInTimeout(){this.C=0,m.i("{93c7910}","{6d6b337}"),Dc(this,{code:3237093907})}rc(i){m.i("{8ba4138}","{0b0c6f9}",i)}qc(i){this.G.za(void 0,i,"{8ba4138}.ts",0,0,!0),m.e("{8ba4138}","{0b0c6f9}",i)}setUpstreamMedia(){return Promise.resolve(!1)}unsetUpstreamMedia(){return Promise.resolve(!1)}stopUpstreamMedia(){return Promise.resolve(!1)}mc(i){m.d("{93c7910}","{4742d5e}"),i.candidate&&this.Ta++,!window.chrome&&this.g&&this.g.canTrickleIceCandidates&&this.g.onicecandidate&&Oc(this,i,!0)}kc(){var i,p;null===(i=this.h)||void 0===i||function Mf(i){var p=ke;if(p.h){if(0!=p.perf.RAFTS){var w={perf:p.perf};p.g&&p.g.postMessage(w),Tl(p)}p.perf.RAFTS=na(p)}if(!ga){if(p=window.performance.now(),(w=i.va).getVideoPlaybackQuality){var V=w.getVideoPlaybackQuality();w={yd:V.totalVideoFrames,bf:V.droppedVideoFrames}}else w=void 0!==w.webkitDecodedFrameCount?{yd:w.webkitDecodedFrameCount,bf:null!==(V=w.webkitDroppedFrameCount)&&void 0!==V?V:0}:void 0;var ae=w;if(ae){const me=ae.bf;V=me-i.v.droppedVideoFrames,w=ae.yd-i.v.totalVideoFrames,i.v.droppedVideoFrames=me,i.v.totalVideoFrames=ae.yd,1==V?i.V.Ud++:1<V&&(i.V.fd+=V),(ae=ke).h&&(ae.perf.FrameInfo=Math.min(w,15)<<4|Math.min(V,15))}i.v.Ag=p}}(i),window.setTimeout(()=>{var w,V;if(this.Z||window.requestAnimationFrame(this.Ka),null!==(w=this.m)&&void 0!==w){var ae=w.h;0===ae.J&&$r(ae.l),Os&&kt&&w.l.ra()}null===(V=this.h)||void 0===V||ga||((w=window.performance.now())>V.V.td+1e4?(0!==V.V.td&&m.i("{5cea617}","{5fa9066}",V.V.Rc,V.V.jd,V.V.ld,V.V.kd,V.v.totalVideoFrames-V.V.Te,V.V.Ud,V.V.fd,V.V.Qc,V.V.gd),V.V.td=w,V.V.Te=V.v.totalVideoFrames,V.V.Rc=1,V.V.jd=0,V.V.ld=0,V.V.kd=0,V.V.Ud=0,V.V.fd=0,V.V.Qc=0,V.V.gd=0):V.V.Rc+=1)}),null===(p=this.m)||void 0===p||function un(i){if(i.h.Uc){i.h.Uc=!1;var p=i.g.rb,w=i.g.sb;if(0===i.cursorType)if(i.Z&&i.g.qb){var V=Vi(i.h.wb/i.g.cursor.scale);i.h.$c&&(i.h.$c=!1,yo(i,V));const ae=i.g.cursor,me=i.h.wb;p=(p*i.I.ma-ae.Ha*(V/=me))*me,w=(w*i.I.ma-ae.Ia*V)*me,i.ca||(p=Math.round(p),w=Math.round(w)),i.j.style.transform="translate("+p/me+"px, "+w/me+"px)",i.h.md||(i.h.md=!0,i.j.style.visibility="visible")}else Pl(i)}}(p.h)}toggleOnScreenStats(i=!1,p){Du(this)?this.h.toggleOnScreenStats(i,p):xc(this,"Stats is OFF. Please enable by ctrl+alt+F5/F6")}ja(){var i;if(null!==(i=this.h)&&void 0!==i){var p=ke;if(p.h){const w={qosMarker:na(p)};p.g&&p.g.postMessage(w)}i.g.S++,(p=i.g).M.innerText=Th(p,2===i.M)}xc(this,"User marker added")}toggleUserInput(i,p){this.m?this.m.toggleUserInput(i,p):m.e("{93c7910}","{5a0e299}",i)}getVirtualGamepadHandler(){var i;return null===(i=this.m)||void 0===i?void 0:i.getVirtualGamepadHandler()}toggleStutterIndicator(i){this.stutterIndicator=i??!this.stutterIndicator,el(this,{stutterIndicator:{on:this.stutterIndicator}})}Bb(){this.sa^=1,el(this,{riDeviceOverlay:{bitmap:this.sa}})}sc(){var i;null===(i=this.m)||void 0===i||i.Mc()}sendTextInput(i){var p;null===(p=this.m)||void 0===p||p.sendTextInput(i)}setVirtualKeyboardState(i){var p;null===(p=this.m)||void 0===p||p.setVirtualKeyboardState(i)}setVideoTransforms(i,p,w){var V;if(null!==(V=this.m)&&void 0!==V){const ae=window.visualViewport;ae&&(V.I.Pc=ae.height),Uc(V,i,p,w)}}sendCustomMessage(i){el(this,i={customMessage:JSON.stringify(i)})}setStreamingMaxBitrate(i,p,w){w||(el(this,{setMaxBitrate:{streamIndex:i,maxBitrate:p}}),m.d("{93c7910}","{6bbc1a2}",p))}setDrcDfcState(i,p,w){w||(el(this,{setDrcState:{streamIndex:i,state:!!(1&p)}}),el(this,{setDfcState:{streamIndex:i,state:!!(2&p)}}),m.d("{93c7910}","{0ed76f3}",p))}sendKeyEvent(i){var p;null===(p=this.m)||void 0===p||p.sendKeyEvent(i)}setKeyboardLayout(i){this.keyboardLayout=i,this.m?(this.sendCustomMessage({messageType:"kbLayout",messageRecipient:"KBLayoutChange",data:i}),this.m.setKeyboardLayout(i)):this.oa=!0}pc(){Du(this)?jf(this,this.h.l):m.w("{93c7910}","{76bcede}")}oc(){Du(this)?tl(this,this.h.l):m.w("{93c7910}","{20ab5a1}")}nc(){if(Du(this)){var i=this.h.l;const p=function jh(i){switch(i.o){case"nominal":return 20;case"fair":return 70;case"serious":return 85;case"critical":return 100}}(this.j),w={cpuUsage:{streamIndex:0,frameNumber:i,procCpuUsage:0,totalCpuUsage:p}};m.i("{93c7910}","{9bb3298}",p.toString(),i),el(this,w)}else m.w("{93c7910}","{7b1f129}")}};function Zl(i){var p;return null!==(p=i?.readyState)&&void 0!==p?p:"connecting"}function Ou(i){m.i("{0f7a7d0}","{206f492}"),i.m&&(window.clearInterval(i.m),i.m=0)}function Zc(i){Ou(i),i.g=(new Date).getTime(),i.j=0,i.l=0,i.h=0,i.sleepTime=0,m.i("{0f7a7d0}","{d5ff5ba}"),i.m=window.setInterval(()=>{try{let p=(new Date).getTime();1e4<p-i.g-1e4&&(i.h=p,i.sleepTime=i.h-i.g-1e4),1e4<p-i.g-1e4&&0!=i.j?ih(i,0<i.g-i.l?"epsp":"esp"):36e5<p-i.g&&Ou(i),i.g=p}catch{}},1e4)}function ih(i,p){if(i.o!==i.subSessionId){var w=i.G,V=H(i.j);p=new br({eventSequence:p,sleepTime:i.sleepTime,error:V,timeToSleep:i.g-i.l,moduleName:"RAGNAROK",cmsId:String(w.cmsId),sessionId:i.sessionId,subSessionId:i.subSessionId}),w.h(p),i.o=i.subSessionId}Ou(i)}function Xh(i,p){if(15868704===p||15859712===p)return Ou(i),!1;let w=(new Date).getTime();return i.j=p,i.l=w,m.i("{0f7a7d0}","{425293a}",String(w-i.g),i.h),1e4<w-i.g-1e4?(i.h=w,i.sleepTime=i.h-i.g-1e4,ih(i,"pse")):0!==i.h&&2e4>w-i.h?ih(i,"pspe"):(15867909===p||15867908===p)&&(i.h=w,ih(i,"other")),0!==i.h}var Ia=class{constructor(i){this.subSessionId=this.sessionId="",this.g=0,this.o="",this.sleepTime=this.h=this.m=this.l=this.j=0,this.G=i}};function Ua(i){let p=document.createElement("div");return p.id=i.Cd,p.className="genericdiv",p.style.display="grid",p.style.gridTemplateColumns="1fr 1fr",p.style.gridTemplateRows="1fr 1fr",i.visible=!0,(i=document.createElement("p")).id="instruction",i.style.color="white",i.style.position="fixed",i.innerHTML="Connect GamePads",i.style.top="0",p.appendChild(i),p}var Qh=class{constructor(){this.Cd="gamepadTester",this.visible=!1,this.xb=[],this.Vd=[],this.Xb=new Map,Ui&&(document.body.appendChild(Ua(this)),this.start())}Db(i){for(let p=0;4>p;p++){const w=this.Xb.get(p);void 0!==w&&!(i&1<<p)&&(this.xb[w]=null,this.Xb.delete(p))}}Of(i){for(let p=0;p<this.xb.length;p++){let w=this.xb[p];w&&w.cc&&w.ha==i&&(this.xb[p]=null)}}Yc(i,p,w,V,ae,me,He,ct,Ut){this.Xb.set(w,p),this.xb[p]={index:p,ha:w,buttons:V,od:ae,axes:me,name:Ut,cc:!1}}Vc(i,p,w,V,ae,me,He,ct){this.xb[i]={index:i,ha:p,buttons:w,od:V,axes:ae,name:ct,cc:!0}}Tc(i){4>i.index&&(this.Vd[i.index]={index:i.index,ha:i.index,buttons:-1,od:-1,axes:[-1],name:i.id,cc:!1})}Mc(i){let p=document.getElementById(this.Cd);p?(p.remove(),this.xb=[],this.visible=!1):(i.insertAdjacentElement("afterend",Ua(this)),this.start())}start(){let i,p=document.getElementById(this.Cd);if(null==p)m.e("{e13a879}","{0c955af}");else{var w=.49*window.innerWidth,V=.4*window.innerHeight,ae=.3*w,me=.7*w,He=.8*V,ct=.8*V,Ut=.07*w,qt=Ln=>{Ln.style.position="absolute",Ln.style.width="2%",Ln.style.height="3.5%",Ln.style.backgroundColor="red",Ln.style.borderRadius="50%",Ln.style.transform="translate(-50%, -50%)"},on=Ln=>{let ii=(Ln=>Ln?{left:{X:Ln.axes[0],Y:Ln.axes[1]},right:{X:Ln.axes[2],Y:Ln.axes[3]}}:null)(Ln);if(null===p.querySelector(`.gamepad${Ln.index}`).querySelector(".leftStick")){var Zi=document.createElement("div");Zi.className="gamepadJoystickPointer leftStick",qt(Zi),Zi.style.left=`${ae+ii.left.X*Ut}px`,Zi.style.top=`${He+ii.left.Y*Ut}px`,p.querySelector(`.gamepad${Ln.index}`).querySelector(".gamepadContainer").appendChild(Zi)}else(Zi=p.querySelector(`.gamepad${Ln.index}`).querySelector(".leftStick")).style.opacity="1",Zi.style.left=`${ae+Ut*ii.left.X}px`,Zi.style.top=`${He+ii.left.Y*Ut}px`;null===p.querySelector(`.gamepad${Ln.index}`).querySelector(".rightStick")?((Zi=document.createElement("div")).className="gamepadJoystickPointer rightStick",qt(Zi),Zi.style.left=`${me+ii.right.X*Ut}px`,Zi.style.top=`${ct+ii.right.Y*Ut}px`,p.querySelector(`.gamepad${Ln.index}`).querySelector(".gamepadContainer").appendChild(Zi)):((Ln=p.querySelector(`.gamepad${Ln.index}`).querySelector(".rightStick")).style.opacity="1",Ln.style.left=(me+ii.right.X*Ut).toString()+"px",Ln.style.top=(ct+ii.right.Y*Ut).toString()+"px")},Dn=(Ln,ii,Zi,nr)=>{var fr=Ln.getContext("2d");if(fr){fr.beginPath();var So=!0===Zi?1:!1===Zi?0:Zi;switch(fr.fillStyle=Zi?nr?"#006FCD":"#0e7a0d":"grey",Zi=bo=>{if(fr){var wo=.12*So;fr.rect(Ln.width*bo,Ln.height*(.12-wo+.07),.02*Ln.width,Ln.height*wo),fr.closePath(),fr.fill(),fr.beginPath(),fr.fillStyle="grey",fr.rect(Ln.width*bo,.07*Ln.height,.02*Ln.width,Ln.height*(.12-wo))}},ii){case 0:fr.moveTo(.14*Ln.width,.48*Ln.height),fr.lineTo(.19*Ln.width,.48*Ln.height),fr.lineTo(.165*Ln.width,.54*Ln.height),fr.lineTo(.14*Ln.width,.48*Ln.height);break;case 1:fr.moveTo(.14*Ln.width,.66*Ln.height),fr.lineTo(.19*Ln.width,.66*Ln.height),fr.lineTo(.165*Ln.width,.61*Ln.height),fr.lineTo(.14*Ln.width,.66*Ln.height);break;case 2:fr.moveTo(.09*Ln.width,.55*Ln.height),fr.lineTo(.09*Ln.width,.61*Ln.height),fr.lineTo(.135*Ln.width,.57*Ln.height),fr.lineTo(.09*Ln.width,.55*Ln.height);break;case 3:fr.moveTo(.24*Ln.width,.55*Ln.height),fr.lineTo(.24*Ln.width,.61*Ln.height),fr.lineTo(.195*Ln.width,.57*Ln.height),fr.lineTo(.24*Ln.width,.55*Ln.height);break;case 4:fr.arc(.7*Ln.width,.4*Ln.height,.02*Ln.width,0,2*Math.PI);break;case 5:fr.arc(.3*Ln.width,.4*Ln.height,.02*Ln.width,0,2*Math.PI);break;case 6:fr.arc(.3*Ln.width,.8*Ln.height,.07*Ln.width,0,2*Math.PI);break;case 7:fr.arc(.7*Ln.width,.8*Ln.height,.07*Ln.width,0,2*Math.PI);break;case 8:fr.rect(.13*Ln.width,.23*Ln.height,.07*Ln.width,.05*Ln.height);break;case 9:fr.rect(.815*Ln.width,.23*Ln.height,.07*Ln.width,.05*Ln.height);break;case 12:fr.arc(.85*Ln.width,.65*Ln.height,.02*Ln.width,0,2*Math.PI);break;case 13:fr.arc(.9*Ln.width,.55*Ln.height,.02*Ln.width,0,2*Math.PI);break;case 14:fr.arc(.8*Ln.width,.55*Ln.height,.02*Ln.width,0,2*Math.PI);break;case 15:fr.arc(.85*Ln.width,.45*Ln.height,.02*Ln.width,0,2*Math.PI);break;case-1:Zi(.155);break;case-2:Zi(.84);break;case 16:if(!nr)break;fr.arc(.5*Ln.width,.5*Ln.height,.02*Ln.width,0,2*Math.PI);break;case 17:nr&&(fr.roundRect?fr.roundRect(.395*Ln.width,.085*Ln.height,.21*Ln.width,.18*Ln.height,.02*Ln.width):fr.arc(.5*Ln.width,.175*Ln.height,.02*Ln.width,0,2*Math.PI))}fr.closePath(),fr.fill()}},Yn=Ln=>{if(null===p.querySelector(`.gamepad${Ln.index}`)){var ii=document.createElement("div");ii.className=`gamepad gamepad${Ln.index}`,ii.style.display="flex",ii.style.flexDirection="column",ii.style.justifyContent="space-between",ii.style.height="98%";var Zi=document.createElement("p");Zi.className="active",Zi.style.margin="0px";var nr=document.createElement("span");nr.className="gamepadPlayerNumber",nr.style.color="white",nr.style.background=Ln.cc?"#006FCD":"#0e7a0d",nr.style.position="relative",nr.style.marginRight="0.5vw",nr.innerHTML=Ln.cc?"S":"X",nr.style.fontSize="1.5vw",Zi.appendChild(nr),(nr=document.createElement("span")).className="gamepadPlayerNumber",nr.style.color="white",nr.style.position="relative",nr.innerHTML=`P${Ln.index+1}|${Ln.name}`,nr.style.fontSize="1.5vw",Zi.appendChild(nr),ii.appendChild(Zi),(Ln=document.createElement("div")).className="gamepadContainer",Ln.style.position="relative",Ln.style.width=`${w+2}px`,Ln.style.height=`${V}px`,(Zi=document.createElement("canvas")).className="canvas",Zi.width=w,Zi.height=V,Zi.style.width=`${w}px`,Zi.style.height=`${V}px`,Zi.style.border="1px solid white",Ln.appendChild(Zi),ii.appendChild(Ln),p.appendChild(ii),(ii=p.querySelector("#instruction"))&&(ii.style.display="none")}},ki=()=>{if(this.visible){for(let Zi=0;Zi<this.xb.length;Zi++){var Ln=this.xb[Zi];if(Ln){var ii=Ln.cc;p.querySelector(`.gamepad${Ln.index}`)||Yn(Ln),on(Ln);let nr=p.querySelector(`.gamepad${Ln.index}`).querySelector("canvas"),fr=ii?2:0;for(let So=0;16>So;So++)Dn(nr,So,!!(Ln.buttons&1<<So),ii);1<=fr&&Dn(nr,16,65536&Ln.buttons,ii),2<=fr&&Dn(nr,17,131072&Ln.buttons,ii),Dn(nr,-1,(255&Ln.od)/255,ii),Dn(nr,-2,(Ln.od>>8&255)/255,ii)}else this.Vd[Zi]?!p.querySelector(`.gamepad${Zi}`)&&(Yn(this.Vd[Zi]),ii=(Ln=p.querySelector(`.gamepad${Zi}`).querySelector("canvas")).getContext("2d"))&&(ii.font="20px Arial",ii.fillStyle="white",ii.textAlign="center",ii.fillText("Unsupported Gamepad",Ln.width/2,Ln.height/2)):((Ln=p.querySelector(`.gamepad${Zi}`))&&p.removeChild(Ln),1>=p.childNodes.length&&(Ln=p.querySelector("#instruction"))&&(Ln.style.display="block"))}i=window.requestAnimationFrame(ki)}else window.cancelAnimationFrame(i)};ki()}}Wc(){}Wb(){}};function Up(i){if(m.i("{4c846ba}","{b11cb24}"),i.l){try{i.h=new MediaRecorder(i.l)}catch(p){return void m.e("{4c846ba}","{0d1420e}",p)}i.h&&(i.h.onstart=()=>{},i.h.onstop=()=>{m.i("{4c846ba}","{7a944b4}")},i.h.ondataavailable=p=>{p.data&&0<p.data.size&&(i.s.push(p.data),i.v.push(i.s),++i.m,i.s=[])},m.i("{4c846ba}","{ffb713f}",i.h)),i.o=!1}else m.e("{4c846ba}","{74475ae}")}function wg(i){var p;null===(p=i.h)||void 0===p||p.stop(),i.h=void 0,0!==i.j&&(window.clearTimeout(i.j),i.j=0)}function nm(i){let p;if(1==i.g)p=18e5;else{if(2!=i.g)return;p=3e3}i.h&&!i.o&&(i.h.start(),i.o=!0,i.j=window.setTimeout(()=>{m.i("{4c846ba}","{2282d21}"),wg(i)},p),m.i("{4c846ba}","{4f438e3}"))}var Wf=class{constructor(){this.o=!1,this.s=[],this.v=[],this.g=this.m=this.j=0}initialize(i){this.l=i}uninitialize(){wg(this),this.downloadAudio(),this.l=void 0,this.g=0}downloadAudio(){if(0!=this.g){for(let i=0;i<this.m;++i)yn(this.v[i],"audioCapture_"+i+".wmv","audio/webm")&&m.i("{4c846ba}","{c24ed3b}");this.m=0,this.v=[]}}};function Ig(i,p){i.h=!1,i.j=!1,i.g=p,i.g.onversionchange=()=>{m.w("{10dc2cc}","{65276d8}"),i.close(),i.g=void 0},i.g.onclose=()=>{m.w("{10dc2cc}","{342f7f8}"),i.h=!0,i.j=!0}}function Bp(i){return i.l?i.g?i.h?oe(2,"Db is closing, unexpectedly: "+i.j+", visibility state hidden: "+("hidden"===document.visibilityState)):void 0:oe(1,"Db not yet open"):oe(17,"Indexdb object not found")}function $f(i,p){const w=Bp(i);return w?Promise.reject(w):new Promise((V,ae)=>{try{const me=i.g.transaction(p,"readwrite"),He=me.objectStore(p);me.oncomplete=()=>{m.i("{10dc2cc}","{30f23d1}")};const ct=He.clear();ct.onsuccess=()=>{V()},ct.onerror=()=>{ae(oe(80,"clear method failed)",me.error))}}catch(me){ae(oe(81,"Unexpected Exception happened in clear",me))}})}function Pu(i,p){const w=Bp(i);return w?Promise.reject(w):new Promise((V,ae)=>{try{const me=i.g.transaction(p,"readonly"),He=me.objectStore(p);me.oncomplete=()=>{m.i("{10dc2cc}","{59d1f78}")};const ct=He.getAll();ct.onsuccess=()=>{V(ct.result)},ct.onerror=()=>{ae(oe(96,"getAll method failed",me.error))}}catch(me){ae(oe(97,"Unexpected Exception in getAll",me))}})}var zf=class{constructor(){this.l=window.indexedDB,this.version=2,this.j=this.h=!1,this.name="ragnarok",this.m=[{Yf:"exit-events",nd:{keyPath:["userId","sessionId","name"]},Xf:"exit-event-index"},{Yf:"telemetry-events",nd:{keyPath:["userId","sessionId","name","eventPayload.ts"]},Xf:"telemetry-event-index"}]}open(){return new Promise((i,p)=>{try{if(this.l){let w=this.l.open(this.name,this.version);w.onerror=()=>{p(oe(18,`${this.name} db opening failed`,w.error))},w.onsuccess=()=>{Ig(this,w.result),i()},w.onupgradeneeded=V=>{m.i("{10dc2cc}","{1f70767}",V.oldVersion,V.newVersion),Ig(this,w.result);const ae=me=>{var He;const ct=null===(He=this.g)||void 0===He?void 0:He.createObjectStore(me.Yf,me.nd);me.nd.keyPath&&ct?.createIndex(me.Xf,me.nd.keyPath,{unique:!0})};switch(V.oldVersion){case 0:ae(this.m[0]);case 1:ae(this.m[1])}},w.onblocked=()=>{p(oe(19,`${this.name} db blocked during opening`,w.error))}}else p(oe(17,"Indexdb object not found"))}catch(w){p(oe(20,"Unexpected Exception in open",w))}})}get(i,p){const w=Bp(this);return w?Promise.reject(w):new Promise((V,ae)=>{try{const me=this.g.transaction(i,"readonly"),He=me.objectStore(i);me.oncomplete=()=>{m.i("{10dc2cc}","{82638ba}")};const ct=He.get(p);ct.onsuccess=()=>{V(ct.result)},ct.onerror=()=>{ae(oe(32,"get method failed",me.error))}}catch(me){ae(oe(33,"Unexpected Exception happened in get",me))}})}set(i,p){const w=Bp(this);return w?Promise.reject(w):new Promise((V,ae)=>{try{const me=this.g.transaction(i,"readwrite"),He=me.objectStore(i);me.oncomplete=()=>{m.i("{10dc2cc}","{f993875}")};const ct=He.put(p);ct.onsuccess=()=>{V()},ct.onerror=()=>{ae(oe(48,"put method failed",me.error))}}catch(me){ae(oe(49,"Unexpected Exception happened in set",me))}})}close(){var i;this.h=!0,null===(i=this.g)||void 0===i||i.close()}};function Vp(i,p){if(i.g.commonData){var w=p.gdprLevel;let V=!1;i.g.commonData&&("functional"!==w||"Full"!==i.g.commonData.deviceGdprFuncOptIn&&"Temp"!==i.g.commonData.deviceGdprFuncOptIn?("technical"===w&&"Full"===i.g.commonData.gdprTechOptIn||"behavioral"===w&&"Full"===i.g.commonData.gdprBehOptIn)&&(V=!0):V=!0),V&&(window.navigator.onLine?function Kf(i){var p,w,V,ae;null!==(p=i.config)&&void 0!==p&&p.server&&null!==(w=i.config)&&void 0!==w&&w.version&&(p={method:"POST",headers:{"Content-Type":"application/json","X-Event-Protocol":null!==(ae=null===(V=i.commonData)||void 0===V?void 0:V.eventProtocol)&&void 0!==ae?ae:"1.5"},body:JSON.stringify(i.commonData),retryCount:3,timeout:2e3},m.i("{f7c1592}","{056661f}",p.body),ge(Sd(i.config),p).then(()=>{}).catch(()=>{}))}(wu(i,p)):function iu(i,p){Lg(p)&&i.l.then(()=>i.j.set("telemetry-events",p)).then(()=>{m.i("{f7c1592}","{f03d70b}")}).catch(w=>{const V=!i.C;i.C=!0,ru(i,w,"cacheTelemetryEventInDb",V)})}(i,{userId:i.g.commonData.userId,sessionId:i.g.commonData.sessionId,name:p.name,eventPayload:p}))}else i.v.push(p)}function Gp(i){var p,w,V;return null!==(V=null===(w=null===(p=i.g)||void 0===p?void 0:p.telemetryEventIds)||void 0===w?void 0:w.streamingProfileGuid)&&void 0!==V?V:""}function Zh(i){var p,w,V;return null!==(V=null===(w=null===(p=i.g)||void 0===p?void 0:p.telemetryEventIds)||void 0===w?void 0:w.systemInfoGuid)&&void 0!==V?V:""}function uc(i,p){var w,V,ae,me;let He=null!==(w=p.exitErrorCode)&&void 0!==w?w:"";return p.sleep?He="SleepExit":!(null===(V=p.connectivity)||void 0===V)&&V.startsWith("online")&&(He=null!==(ae=p.connectivity)&&void 0!==ae?ae:""),{name:(w=new Da({zoneAddress:p.zoneAddress,networkSessionId:null!==(me=p.networkTestSessionId)&&void 0!==me?me:"",sessionId:p.sessionId,subSessionId:p.subSessionId,resumeType:pt(p.isResume),overrideConfigType:Ds.type,overrideConfigVersion:Ds.version,exitReason:He,result:p.exitErrorCode,frameCount:p.frameCount,codec:vt(p.codec),ipVersion:"UNKNOWN",streamDuration:Math.round(p.streamDuration),networkType:Le(Ac.getCurrentNetworkType()),streamingProfileGuid:Gp(i),systemInfoGuid:Zh(i),cmsId:String(i.H)})).name,gdprLevel:w.gdprLevel,parameters:w.parameters,ts:w.ts,clientConfig:Il}}function jd(i){m.d("{f7c1592}","{badefed}",!0),function Pc(i){i.l.then(()=>$f(i.j,"exit-events")).then(()=>{m.i("{f7c1592}","{1b8f127}")}).catch(p=>{ru(i,p,"clearExitEventStoreInDb",!i.o),i.o||(i.o=!0)})}(i),i.h.eventPayload=void 0}function wu(i,p){let w={};if(!i.g.commonData)return w;const V={name:p.name,ts:p.ts,parameters:p.parameters};return jp(w,i.g),(i=w.commonData).clientId=p.clientConfig.clientId,i.eventSchemaVer=p.clientConfig.eventSchemaVer,i.sentTs=(new Date).toISOString(),i.events=[V],w}function jp(i,p){i.commonData=p.commonData?Object.assign({},p.commonData):void 0,i.experiments=[],i.config=p.config,i.telemetryEventIds=p.telemetryEventIds}function Sd(i){return i.server+"/"+i.version+"/events/json"}function Xo(i,p){var w,V,ae;i.h.userId=null!==(V=null===(w=i.g.commonData)||void 0===w?void 0:w.userId)&&void 0!==V?V:"",i.h.sessionId=null!==(ae=p.parameters.sessionId)&&void 0!==ae?ae:"",i.h.name=p.name,i.h.eventPayload=p}function bd(i){var p,w;null!==(p=i.config)&&void 0!==p&&p.server&&null!==(w=i.config)&&void 0!==w&&w.version&&i.experiments&&(i.commonData&&(i.commonData.sentTs=(new Date).toISOString()),p=JSON.stringify(i.commonData),i=navigator.sendBeacon(Sd(i.config),new Blob([p],{type:"text/plain"})),m.i("{f7c1592}","{b9367c5}",i,p))}function ru(i,p,w,V){var ae,me,He,ct;m.e("{f7c1592}","{146ec91}",w,H(p.code),p.description),V&&(V=null!==(He=null!==(me=null===(ae=p.error)||void 0===ae?void 0:ae.message)&&void 0!==me?me:p.description)&&void 0!==He?He:`Exception in ${w}`,i.F?i.F(p.error,V,"telemetryeventprocessor.ts",p.code,0,!0,null===(ct=p.error)||void 0===ct?void 0:ct.name):m.w("{f7c1592}","{12e0846}"))}function Lg(i){return!!i.userId&&!!i.sessionId&&!!i.name}function Fs(i){return Lg(i.h)?i.l.then(()=>i.j.set("exit-events",i.h)).then(()=>{m.i("{f7c1592}","{5d026f8}")}).catch(p=>{ru(i,p,"cacheExitEventInDb",!i.m),i.m||(i.m=!0)}):Promise.resolve()}function Xf(i){window.navigator.onLine&&i.l.then(()=>Pu(i.j,"telemetry-events")).then(p=>{if(m.i("{f7c1592}","{d4e574c}",p.length),0<p.length){!function Ng(i){i.l.then(()=>$f(i.j,"telemetry-events")).then(()=>{m.i("{f7c1592}","{8f62936}")}).catch(p=>{ru(i,p,"clearEventStoreInDb",!i.s),i.s||(i.s=!0)})}(i);for(const w of p)w.eventPayload&&Vp(i,w.eventPayload)}}).catch(p=>{m.e("{f7c1592}","{aaaa3de}",p.code,p.description)})}var Qf=class{constructor(){this.h={userId:"",sessionId:"",eventPayload:void 0,name:""},this.g={},this.s=this.C=this.o=this.m=!1,this.H="",this.v=[],this.j=new zf,this.l=this.j.open()}updateEventDataElements(i){var p;if(jp(this.g,i),this.g.commonData){m.d("{f7c1592}","{66f209c}");for(let w of this.v)Vp(this,w);this.v=[]}this.h.userId=null===(p=this.g.commonData)||void 0===p?void 0:p.userId}};function Zf(i){if(i.g){const w=i.g.getSessionId(),V=i.g.getSubSessionId();m.d("{9d1820c}","{2fd42df}",w,V);var p=i.G;p.subSessionId=V,p.v.clear(),p.C=0,i.F.subSessionId=V,(p=i.G).sessionId=w,p.H=0,i.F.sessionId=w,(i=i.m).m=!1,i.o=!1,i.C=!1,i.s=!1}}function Fg(i,p){var w,V,ae,me,He,ct,Ut,Lt,qt,on;i.M&&(i.M=!1,i.framesDecoded=null!==(V=null===(w=i.D)||void 0===w?void 0:th(w))&&void 0!==V?V:0,w={sessionId:null!==(me=null===(ae=i.g)||void 0===ae?void 0:ae.getSessionId())&&void 0!==me?me:"",subSessionId:null!==(ct=null===(He=i.g)||void 0===He?void 0:He.getSubSessionId())&&void 0!==ct?ct:"",zoneName:null!==(Lt=null===(Ut=i.g)||void 0===Ut?void 0:Ut.getZoneName())&&void 0!==Lt?Lt:"",zoneAddress:(null===(qt=i.g)||void 0===qt?void 0:qt.getZoneAddress())||i.h.serverAddress,error:{code:p}},ae=Wp(i,w,performance.now()-i.startTime),zc(i.j),(!i.D||!(null===(on=i.D)||void 0===on)&&on.H)&&Jf(i,ae),om(i,p),i.cancelSessionSetup())}function Yp(i){0!==i.J&&(window.clearTimeout(i.J),i.J=0)}function Jf(i,p){Yp(i);var w=i.G;let V;V=uc(w.j,p),lp(w,V),jd(w.j),p=p.streamDuration,"hidden"===document.visibilityState&&(i.o+=performance.now()-i.L),w=0,p&&(w=Math.max(0,100*(p-i.o)/p)),Vs(i.G,"sessionVisibilityMetrics","",w,Math.round(p),Math.round(i.o),0),i.o=0,i.L=0}function Wp(i,p,w,V,ae){var me,He,ct,Ut;return{exitErrorCode:H(p.error?p.error.code:15859712),sessionId:p.sessionId,subSessionId:p.subSessionId,zoneAddress:p.zoneAddress,streamDuration:w,frameCount:i.framesDecoded,codec:null!==(He=null===(me=i.D)||void 0===me?void 0:nh(me))&&void 0!==He?He:"UNKNOWN",isResume:i.isResume,connectivity:V??"undefined",sleep:ae??!1,networkTestSessionId:null!==(Ut=null===(ct=i.v)||void 0===ct?void 0:ct.la.networkSessionId)&&void 0!==Ut?Ut:""}}function $p(i){var p;Bg(i,H(null!==(p=i.S)&&void 0!==p?p:15867911));const w=i.J;Fs(i.m).then(()=>{w===i.J&&function rm(i){Yp(i),i.J=window.setTimeout(()=>$p(i),12e4)}(i)}).catch(()=>{m.e("{9d1820c}","{204a7ac}")})}function Ws(i){return{code:3237093380,description:i+" called before initialize"}}function Ug(i,p){var w,V,ae,me,He,ct,Ut,Lt,qt,on,Dn;let Yn={sessionId:null!==(V=null===(w=i.g)||void 0===w?void 0:w.getSessionId())&&void 0!==V?V:"",subSessionId:null!==(me=null===(ae=i.g)||void 0===ae?void 0:ae.getSubSessionId())&&void 0!==me?me:"",error:{code:3237089284,description:"Quitting due to exception"},streamInfo:null===(He=i.H)||void 0===He?void 0:He.streamInfo,zoneName:null!==(Ut=null===(ct=i.g)||void 0===ct?void 0:ct.getZoneName())&&void 0!==Ut?Ut:"",zoneAddress:null!==(qt=null===(Lt=i.g)||void 0===Lt?void 0:Lt.getZoneAddress())&&void 0!==qt?qt:"",gpuType:null!==(Dn=null===(on=i.g)||void 0===on?void 0:on.getGpuType())&&void 0!==Dn?Dn:"",isResume:i.isResume};i.Gc(Yn,!0),m.e("{9d1820c}","{90f98fb}",p),i.G.za(p,"Exception happened in session call","{9d1820c}.ts",0,0,!0)}function im(i,p){var w=Re();i.Gc({sessionId:"",subSessionId:w,error:p,zoneName:"",zoneAddress:"",gpuType:"",isResume:i.isResume},!0)}function qf(i,p,w,V){if(i.H=void 0,i.aa=!1,i.g){Te(i.C,w.la.additionalInputDevices),w.la.remoteControllersBitmap=_l(i.C);try{(function Rl(i,p){i.j.H=p})(i.G,w.la.appId),i.startTime=performance.now(),Zc(i.F),m.d("{9d1820c}","{892168d}",m.sanitize(JSON.stringify(w.la)));const me=i.g;me.putOrPostSession(w.la,p,V).then(He=>(Zf(i),m.d("{9d1820c}","{92a2573}",He?.sessionId,He?.subSessionId),"ready_for_connection"===He?.state?(m.d("{9d1820c}","{2042e0a}"),i.H=He,new Promise(ct=>{ct(He)})):me.getSession(He.sessionId,!0))).then(He=>{i.H=He,m.d("{9d1820c}","{315afdc}",He?.sessionId),i.startStreaming(w)}).catch(He=>{var ct,Ut,Lt,qt,on,Dn;if(Zf(i),He.code){15867905!=He.code&&15867906!=He.code||!me.getSessionId()||i.aa||i.sendDeleteRequest(me.getSessionId(),me),m.e("{9d1820c}","{09efe49}",H(He.code));let Yn={sessionId:null!==(ct=me.getSessionId())&&void 0!==ct?ct:"",subSessionId:null!==(Ut=me.getSubSessionId())&&void 0!==Ut?Ut:"",error:He,sessionList:He.sessionList,streamInfo:null===(Lt=i.H)||void 0===Lt?void 0:Lt.streamInfo,zoneName:null!==(qt=me.getZoneName())&&void 0!==qt?qt:"",zoneAddress:null!==(on=me.getZoneAddress())&&void 0!==on?on:"",gpuType:null!==(Dn=me.getGpuType())&&void 0!==Dn?Dn:"",isResume:i.isResume};i.Gc(Yn,!0)}else Ug(i,He)})}catch(me){Ug(i,me)}}else i.emit("SessionStartResult",{sessionId:"",subSessionId:"",zoneName:"",zoneAddress:"",gpuType:"",isResume:i.isResume,error:Ws(i.isResume?"Resume":"Start")})}function Bg(i,p){var w,V,ae,me,He,ct,Ut,Lt,qt,on=i.m,Dn=null!==(V=null===(w=i.g)||void 0===w?void 0:w.getSessionId())&&void 0!==V?V:"";w=null!==(me=null===(ae=i.g)||void 0===ae?void 0:ae.getSubSessionId())&&void 0!==me?me:"",ae=(null===(He=i.g)||void 0===He?void 0:He.getZoneAddress())||i.h.serverAddress,He=null!==(Ut=null===(ct=i.D)||void 0===ct?void 0:th(ct))&&void 0!==Ut?Ut:0,ct=null!==(qt=null===(Lt=i.D)||void 0===Lt?void 0:nh(Lt))&&void 0!==qt?qt:"UNKNOWN",Xo(on,i=uc(on,{exitErrorCode:p,sessionId:Dn,subSessionId:w,zoneAddress:ae,streamDuration:performance.now()-i.startTime,frameCount:He,codec:ct,isResume:i.isResume,connectivity:"",sleep:!1,networkTestSessionId:""}))}function eg(i){i.T&&(window.clearTimeout(i.T),i.T=0)}function Wd(i){window.removeEventListener("pagehide",i.ja),window.removeEventListener("online",i.ea),document.removeEventListener("visibilitychange",i.ka),navigator.mediaDevices&&navigator.mediaDevices.removeEventListener("devicechange",i.W),X(i.u)&&(document.removeEventListener("SystemIdle",i.ga),eg(i))}function gm(i,p){i.S=void 0,Xf(i.m),i.M=!0,window.addEventListener("pagehide",i.ja),window.addEventListener("online",i.ea),document.addEventListener("visibilitychange",i.ka),navigator.mediaDevices&&navigator.mediaDevices.addEventListener("devicechange",i.W),i.isResume=p,i.P&&Fa(i.G,"SessionSetupInProgressError",i.isResume?"resume":"start"),i.P=!0}function mm(i,p){var w,V,ae;if((p={la:Object.assign({},p),ae:[]}).la.streamParams)for(const ct of p.la.streamParams){const Ut=document.getElementById(ct.videoTagId);if(null==Ut||!(Ut instanceof HTMLVideoElement))return void im(i,{code:3237094400,description:"Didn't find video element for videoTagId: "+ct.videoTagId});p.ae.push({K:Ut})}if(p.la.keyboardLayout=null!==(w=p.la.keyboardLayout)&&void 0!==w?w:be(i.u)?"m-us":"en_US",(void 0===p.la.appLaunchMode||0===p.la.appLaunchMode)&&(p.la.appLaunchMode=ot()||xe(i.u)||"Xbox"===i.u.os?1:0),zn)if(p.la.metaData)for(const ct in zn)p.la.metaData[ct]=zn[ct];else p.la.metaData=zn;void 0!==tn&&(p.la.appLaunchMode=tn,m.d("{9d1820c}","{c4969b1}",tn));const me=!!mt&&!!nn,He=!!is;return(me||He)&&(null===(V=p.la.streamParams)||void 0===V||V.forEach(ct=>{me&&(ct.width=mt,ct.height=nn),He&&(ct.fps=is)}),null===(ae=p.la.monitorSettings)||void 0===ae||ae.forEach(ct=>{me&&(ct.widthInPixels=mt,ct.heightInPixels=nn),He&&(ct.framesPerSecond=is)}),me&&m.i("{9d1820c}","{92a6b38}",mt,nn),He&&m.d("{9d1820c}","{6618bcd}",is)),i.v=p,i.v}function om(i,p){i.D&&(i.D.stop(p),i.D=void 0)}function Wa(i,p,w){var V,ae;p={sessionId:p,subSessionId:null!==(ae=null===(V=i.g)||void 0===V?void 0:V.getSubSessionId())&&void 0!==ae?ae:"",framesDecoded:i.framesDecoded,error:w},Ll(i),te(i.u)&&i.l&&(m.d("{9d1820c}","{b9b1288}"),i.setMicRecordingEnabled(!1)),i.emit("SessionStopResult",p)}function Ll(i){Or&&(window.ios15AudioContext&&(window.ios15AudioContext.close(),window.ios15AudioContext=void 0,m.i("{9d1820c}","{0ac2a42}")),window.ios15AudioStream=void 0,navigator.mediaDevices&&i.O&&navigator.mediaDevices.removeEventListener("devicechange",i.O))}function rh(i,p){i.P=!1,p.error&&(i.M=!1,Wd(i)),i.emit("SessionStartResult",p)}function zp(i,p,w,V){var ae,me,He,ct;Ll(i),V&&(null!==(ae=V.connectivity)&&void 0!==ae&&ae.startsWith("offline")||null!==(me=V.connectivity)&&void 0!==me&&me.startsWith("timeout")?(Yp(i),Bg(i,H(null!==(ct=null===(He=p.error)||void 0===He?void 0:He.code)&&void 0!==ct?ct:15867911)),Fs(i.m).catch(()=>{m.e("{9d1820c}","{0c2de99}")})):Jf(i,V)),om(i,p.error?p.error.code:15859712),w?rh(i,p):(p.error&&(w=Ke(p.error.code,i.u),p.isResumable=w,m.i("{9d1820c}","{723f7be}",w)),i.M=!1,i.P=!1,Wd(i),i.emit("StreamStopped",p))}function Kp(i,p){let w={errorCode:p??15859712,connectivity:"online"};if(p&&(!((3237093888^p)>>8)||3237089282===p)){let V=1500;Pr.connectivityCheckTimeout&&0!==Pr.connectivityCheckTimeout&&(V=Pr.connectivityCheckTimeout,m.i("{9d1820c}","{f9909d8}",V)),i=("http:"===window.location.protocol?"http://":"https://")+i.h.serverAddress,m.i("{9d1820c}","{df38106}",i);const ae=performance.now();return le(i,V).then(me=>(w.connectivity=200<=me.status&&300>me.status||403==me.status?"online("+String(25*Math.ceil((performance.now()-ae)/25))+")":"offline_wrong_status("+String(me.status)+")",w)).catch(me=>("AbortError"===me.name?w.connectivity="timeout":(w.connectivity="offline("+me.name+":"+me.message+")",w.errorCode=rt(p)),w))}return Promise.resolve(w)}performance.mark("GfnRBegin");var Gg=s.LogImpl;function oh(i,p,w){var V;if(4!==i.streamingState&&0!==i.streamingState){var ae=i.streamingState;i.streamingState=4,Ou(i.l),Vs(Ja,"HotPlug","",0,i.o,0,0),te(i.u)&&i.m&&(m.d("{0a9be04}","{b9b1288}"),i.captureMic(!1)),zc(i.g),null===(V=i.D)||void 0===V||V.stop(p),Xh(i.l,p)&&(p=Ot(p,i.u)),function vm(i,p){let w={errorCode:p??15859712,connectivity:"online"};if(p&&(!((3237093888^p)>>8)||3237089282===p)){let V=1500;Pr.connectivityCheckTimeout&&0!==Pr.connectivityCheckTimeout&&(V=Pr.connectivityCheckTimeout,m.i("{0a9be04}","{f9909d8}",V)),i=("http:"===window.location.protocol?"http://":"https://")+i.zoneAddress,m.i("{0a9be04}","{df38106}",i);const ae=performance.now();return le(i,V).then(me=>(w.connectivity=200<=me.status&&300>me.status||403==me.status?"online("+String(25*Math.ceil((performance.now()-ae)/25))+")":"offline_wrong_status("+String(me.status)+")",w)).catch(me=>("AbortError"===me.name?w.connectivity="timeout":(w.connectivity="offline("+me.name+":"+me.message+")",w.errorCode=rt(p)),w))}return Promise.resolve(w)}(i,p).then(me=>{if(p=me.errorCode,1!==ae){var Ut,Lt,qt,on,He={code:p,isResumable:Ke(p,i.u),reason:3},ct=new Set([3237093892,15867907,3237093896,3237093897,3237093898,3237093899,3237093900,3237093895,3237093901,3237093906,3237093929,15867908,15868418,3237094151,3237094158]);w?He.reason=0:ct.has(p)?He.reason=2:15868672==(268435200&p)&&(He.reason=1),i.h.onStreamStopped(He),ct=me.connectivity,He=me=H(p||15859712),null!=ct&&ct.startsWith("online")&&(He=ct??""),ct=performance.now()-i.startTime;const fr=null!==(Lt=null===(Ut=i.D)||void 0===Ut?void 0:nh(Ut))&&void 0!==Lt?Lt:"UNKNOWN";var Dn,Yn,ki;Ut=null!==(on=null===(qt=i.D)||void 0===qt?void 0:th(qt))&&void 0!==on?on:0,on=new Da({zoneAddress:(qt=Ja).zoneAddress,sessionId:qt.sessionId,subSessionId:qt.subSessionId,resumeType:pt(qt.isResume),cmsId:qt.cmsId,overrideConfigType:Ds.type,overrideConfigVersion:Ds.version,exitReason:He,result:me,frameCount:Ut,codec:vt(fr),ipVersion:"UNKNOWN",streamDuration:Math.round(ct),networkType:Le(Ac.getCurrentNetworkType()),streamingProfileGuid:null!==(Dn=qt.telemetryEventIds.streamingProfileGuid)&&void 0!==Dn?Dn:"",systemInfoGuid:null!==(Yn=qt.telemetryEventIds.systemInfoGuid)&&void 0!==Yn?Yn:"",networkSessionId:null!==(ki=qt.telemetryEventIds.networkTestId)&&void 0!==ki?ki:""}),qt.h(on,!0)}var Ln,ii,Zi,nr;jc(i),Iu(i),i.D=void 0,i.startTime=0,i.isResume=!1,i.P=void 0,i.C=0,i.o=0,i.sessionId="",i.subSessionId="",i.zoneAddress="",i.zoneName="",i.K=void 0,i.Ea=void 0,i.m=!1,i.appId=0,i.setSupportedHidTypes(0),i.setGamepadRsdmm(!1),i.l.sessionId="",i.l.subSessionId="",Yn=window.zoneless,Dn=null!==(ii=null===(Ln=Yn?.windowRemoveEventListener)||void 0===Ln?void 0:Ln.bind(window))&&void 0!==ii?ii:window.removeEventListener.bind(window),Ln=null!==(nr=null===(Zi=Yn?.documentRemoveEventListener)||void 0===Zi?void 0:Zi.bind(document))&&void 0!==nr?nr:document.removeEventListener.bind(document),Dn("pagehide",i.M),Dn("error",i.L),Ln("visibilitychange",i.N),navigator.mediaDevices&&navigator.mediaDevices.removeEventListener("devicechange",i.F),X(i.u)&&(Ln("SystemIdle",i.J),Iu(i))})}}function jc(i){Or&&(window.ios15AudioContext&&(window.ios15AudioContext.close(),window.ios15AudioContext=void 0,m.i("{0a9be04}","{0ac2a42}")),window.ios15AudioStream=void 0,navigator.mediaDevices&&i.s&&navigator.mediaDevices.removeEventListener("devicechange",i.s))}function Iu(i){i.v&&(window.clearTimeout(i.v),i.v=0)}performance.mark("GfnNskBegin");var _m=class{constructor(i,p,w){this.u=i,this.h=p,this.R=w,this.H=new Qh,this.O=new Wf,this.startTime=this.streamingState=0,this.isResume=!1,this.o=this.C=this.v=0,this.zoneName=this.zoneAddress=this.subSessionId=this.sessionId="",this.m=!1,this.appId=0,this.L=V=>{var ae;return m.e("{0a9be04}","{8516485}",V.filename,V.lineno,V.colno),Ja.za(V.error,V.error&&V.error.message?V.error.message:V.message,V.filename,V.lineno,V.colno,!1),(!(null!==(ae=Pr.terminateUnhandledException)&&void 0!==ae)||ae)&&oh(this,3237093392),!1},this.N=()=>{var V;if(m.i("{0a9be04}","{478a408}",document.visibilityState,!!this.D),this.D){var ae=this.K,me=this.Ea,He=ae&&me&&W(this.u,!1,15,4)&&Ko,ct=W(this.u,!1,15,4)&&this.m&&Na;"hidden"===document.visibilityState?(this.C=performance.now(),He&&(m.i("{0a9be04}","{cbd3b6e}"),ae.muted=!0,me.muted=!0)):"visible"===document.visibilityState&&(He&&(m.i("{0a9be04}","{05deefa}"),ae.muted=!1,me.muted=!1),ct?(ae=null!==(V=Pr.userTerminatedMicRecorderThreshold)&&void 0!==V?V:2e3,this.C-this.g.O<ae?(m.i("{0a9be04}","{862bd20}"),this.g.J=!0,this.captureMic(!0)):this.m=!1):W(this.u,!1,15,4)&&!this.g.o&&lc(this.g)&&this.g.F&&_u(this.g,"visibilityChange"))}},this.M=()=>{var V,ae;oh(this,(null!==(V=this.P)&&void 0!==V?V:null!==(ae=this.D)&&void 0!==ae&&ae.H)?15867912:15867905)},this.F=()=>{da(this.g,this.o),this.o++},this.J=V=>{var ae;V.detail.idle&&(null===(ae=this.D)||void 0===ae||Gf(ae,2,60),this.v=window.setTimeout(()=>{var me;null===(me=this.D)||void 0===me||qa(me,15867913)},6e4))},this.s=()=>{this.g.j()},this.j=new Aa(this.u,window.zoneless),this.g=new Mo(this.u,Ja),this.l=new Ia(Ja),Ui&&(this.j.l.push(this.H),Nc(this.j)),Mn(Ja),function tg(){var i,p,w;if(Pr.sendNonEssentialMetricEvents){var V=performance.getEntriesByName("GfnJsInitStart")[0];const ae=performance.getEntriesByName("platformBegin")[0],me=performance.getEntriesByName("GfnNskBegin")[0],He=performance.getEntriesByType("navigation");V=Math.round(null!==(i=V?.startTime)&&void 0!==i?i:-1),i=Math.round(null!==(p=ae?.startTime)&&void 0!==p?p:-1),Vs(Ja,"PerformanceTiming","application timings",V,i,Math.round(null!==(w=me?.startTime)&&void 0!==w?w:-1),i-V),He.length?(p=He[He.length-1],Vs(Ja,"PerformanceTiming","load timings",Math.round(p.loadEventStart),Math.round(p.loadEventEnd),Math.round(p.domContentLoadedEventStart),Math.round(p.domContentLoadedEventEnd))):Vs(Ja,"PerformanceTiming","navigation timings unsupported",0,0,0,0)}}(),function sh(){if(navigator.mediaCapabilities){var i=performance.now();Tc("h264").then(function(){var p=r(function*(w){if(w){w=Tc("h264; profile-level-id=640033",2560,1440,60);var V=Tc("h264; profile-level-id=64e033",2560,1440,60);w=Ld(yield w),V=Ld(yield V);const He=performance.now()-i;var ae=Bc(),me=Tc("h264",1920,1080,120);ae=Ld(yield ae),me=Ld(yield me);const ct=yield Nd(Su),Ut=yield kd();m.d("{0a9be04}","{1efbc27}",ct,Ut),Vs(Ja,"DisplayCaps","Is120FpsSupported: "+Ut,ct,0,0,0),Vs(Ja,"MediaCapabilities","codec 5.1: "+w+" 5.1 constrained: "+V+" AV1: "+ae,He,me,w|V,Math.round(window.screen.height))}else Vs(Ja,"MediaCapabilities","webrtc unsupported",performance.now()-i,-1,-1,-1)});return function(w){return p.apply(this,arguments)}}())}else Vs(Ja,"MediaCapabilities","API unsupported",-1,-1,-1,-1)}(),Pr.sendNonEssentialMetricEvents&&Vs(Ja,"PlatformDetailsExecutionTime","",this.u.totalTime,0,0,0),m.i("{0a9be04}","{2569364}","0.0.1548"),m.d("{0a9be04}","{e85ad66}",navigator.userAgent)}startStreaming(i){var p,w,V,ae,me,He,ct,Ut,Lt,qt,on,Dn,Yn,ki,Ln;if(4!==this.streamingState&&0!==this.streamingState)return m.w("{0a9be04}","{60a7ff5}"),Fa(Ja,"SessionSetupInProgressError",i.resume?"resume":"start"),3237085186;const ii=function $a(i){var p;const w={errorCode:void 0,streamParams:Object.assign({},i),Ea:void 0,be:[]};if(0<w.streamParams.downstreamParams.length||!i.audioTagId){for(var V of w.streamParams.downstreamParams)(i=document.getElementById(V.videoTagId))&&i instanceof HTMLVideoElement&&w.be.push(i);if(!w.be.length)return{errorCode:3237094400}}else{if(!((V=document.getElementById(i.audioTagId))&&V instanceof HTMLAudioElement))return{errorCode:3237094401};w.Ea=V}const ae=!!mt&&!!nn,me=!!is;return(ae||me)&&(null===(p=w.streamParams.downstreamParams)||void 0===p||p.forEach(He=>{ae&&(He.width=mt,He.height=nn),me&&(He.fps=is)}),ae&&m.i("{0a9be04}","{92a6b38}",mt,nn),me&&m.d("{0a9be04}","{6618bcd}",is)),w}(i);if(ii.errorCode)return ii.errorCode;if(i=ii.streamParams,this.K=ii.be[0],this.Ea=ii.Ea,this.isResume=null!==(p=i.resume)&&void 0!==p&&p,this.sessionId=i.sessionId,this.subSessionId=null!==(w=i.subSessionId)&&void 0!==w?w:"",this.zoneAddress=null!==(V=i.zoneAddress)&&void 0!==V?V:"",this.zoneName=null!==(me=null===(ae=i.statTelemetryInfo)||void 0===ae?void 0:ae.zoneName)&&void 0!==me?me:"",this.appId=null!==(ct=null===(He=i.statTelemetryInfo)||void 0===He?void 0:He.appId)&&void 0!==ct?ct:0,function cf(i,p,w,V,ae){var me=Ja;me.subSessionId=i,me.sessionId=p,me.cmsId=w,me.isResume=V,me.zoneAddress=ae}(this.subSessionId,this.sessionId,this.appId.toString(),this.isResume,this.zoneAddress),this.l.sessionId=this.sessionId,this.l.subSessionId=this.subSessionId,W(this.u,!1,15)){const Zi=this.K;Zi.ragnarokOldPlay||(Zi.ragnarokOldPlay=this.K.play);const nr=Ps&&W(this.u,!0,15,1);this.K.play=()=>{var fr,So,bo;if(Or&&(m.i("{0a9be04}","{4a5b360}"),jc(this),function ng(i){if(Or)if(window.ios15AudioContext)m.i("{0a9be04}","{e2aba64}");else{var p=new(window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive",sampleRate:48e3});p.onstatechange=()=>{"suspended"===p.state&&(p.resume(),i.g.j(),m.i("{0a9be04}","{faee684}"))},window.ios15AudioContext=p,window.ios15AudioStream=p.createMediaStreamDestination(),navigator.mediaDevices&&i.s&&navigator.mediaDevices.addEventListener("devicechange",i.s),m.i("{0a9be04}","{b5f7b9b}")}}(this),this.g.j()),nr){m.i("{0a9be04}","{8f5cd77}");const wo=null!==(So=null===(fr=this.K)||void 0===fr?void 0:fr.srcObject)&&void 0!==So?So:null;null!==(bo=this.K)&&void 0!==bo&&bo.srcObject&&(this.K.srcObject=null,this.K.srcObject=wo)}return Zi.ragnarokOldPlay.apply(this.K)}}return pl&&(W(this.u,!0,15,0)||W(this.u,!0,15,1))&&(this.K.hasAttribute("data-shouldautoplay")?this.K.setAttribute("autoplay",""):(this.K.setAttribute("data-shouldautoplay",""),this.K.removeAttribute("autoplay"))),V={ip:"",port:0,appLevelProtocol:0,usage:0,protocol:0},i.mediaConnectionInfo&&(V.ip=i.mediaConnectionInfo.address,V.port=i.mediaConnectionInfo.port,V.usage=2),w={appId:this.appId,appLaunchMode:i.enableTouchInput?2:0,clientLocale:null!==(Lt=null===(Ut=i.statTelemetryInfo)||void 0===Ut?void 0:Ut.clientLocale)&&void 0!==Lt?Lt:"",gpuType:null!==(on=null===(qt=i.statTelemetryInfo)||void 0===qt?void 0:qt.gpuType)&&void 0!==on?on:"",mediaConnectionInfo:[V],sessionId:this.sessionId,signalConnectionInfo:ae={ip:i.signalConnectionInfo.address,port:i.signalConnectionInfo.port,protocol:i.signalConnectionInfo.secure?"wss":"ws"},state:"ready_for_connection",streamInfo:[me={width:(p=i.downstreamParams[0]).width,height:p.height,fps:p.fps,sdrHdrMode:p.sdrHdrMode}],subSessionId:this.subSessionId,zoneAddress:this.zoneAddress,zoneName:this.zoneName,finalizedStreamingFeatures:i.streamingFeatures},Ut={width:p.width,height:p.height,fps:p.fps,maxBitrateKbps:p.maxBitrateKbps,videoTagId:p.videoTagId,audioTagId:i.audioTagId},null!==(Dn=(Lt={...Nt}).windowedStreaming)&&void 0!==Dn||(Lt.windowedStreaming=i.windowedStreaming),null!==(Yn=Lt.cursorType)&&void 0!==Yn||(Lt.cursorType=i.cursorType),this.D=new Kh(this,this.K,this.Ea,this.g,Lt,this.H,this.j,Ja,this.u,w,Ut,this.O,this.R.textInputElement,null===(ki=i.statTelemetryInfo)||void 0===ki?void 0:ki.clientAppVersion,this.isResume,null===(Ln=i.statTelemetryInfo)||void 0===Ln?void 0:Ln.region,p.dynamicStreamingMode,i.upstreamParams),function Hg(i){var p,w,V,ae;const me=window.zoneless,He=null!==(w=null===(p=me?.windowAddEventListener)||void 0===p?void 0:p.bind(window))&&void 0!==w?w:window.addEventListener.bind(window);p=null!==(ae=null===(V=me?.documentAddEventListener)||void 0===V?void 0:V.bind(document))&&void 0!==ae?ae:document.addEventListener.bind(document),He("pagehide",i.M),He("error",i.L),p("visibilitychange",i.N),navigator.mediaDevices&&navigator.mediaDevices.addEventListener("devicechange",i.F),X(i.u)&&p("SystemIdle",i.J)}(this),this.streamingState=1,Zc(this.l),this.startTime=performance.now(),this.D.start(),i.keyboardLayout&&this.D.setKeyboardLayout(i.keyboardLayout),15859712}stopStreaming(i){!this.D||1!==this.streamingState&&2!==this.streamingState||(m.i("{0a9be04}","{ae7f61b}",H(i=i??15859712)),this.streamingState=3,oh(this,i,!0))}getStreamingState(){return this.streamingState}sendCustomMessage(i){var p;return null===(p=this.D)||void 0===p||p.sendCustomMessage(i),!!this.D}setStreamingMaxBitrate(i,p,w){var V;return null===(V=this.D)||void 0===V||V.setStreamingMaxBitrate(p??0,i,w),!!this.D}setDynamicStreamingMode(i,p,w){var V;return null===(V=this.D)||void 0===V||V.setDrcDfcState(p??0,i,w),!!this.D}setKeyboardLayout(i){var p;return null===(p=this.D)||void 0===p||p.setKeyboardLayout(i),!!this.D}setSupportedHidTypes(i){Te(this.j,i)}setGamepadRsdmm(i){return!!this.D&&(ra(this.j,i),!0)}getVirtualInputController(){return this}getGamepadBitmap(){return _l(this.j)}captureUserInput(i,p){var w;return null===(w=this.D)||void 0===w||w.toggleUserInput(i,p),!!this.D}sendTextInput(i){var p;return null===(p=this.D)||void 0===p||p.sendTextInput(i),!!this.D}getMicState(){return mu()}captureMic(i){return!!this.D&&((this.m=i)?Rd(this.g):vu(this.g),!0)}setVideoTransforms(i,p,w){var V;return null===(V=this.D)||void 0===V||V.setVideoTransforms(i,p,w),!!this.D}setUpstreamMedia(i,p){var w;return this.D?null===(w=this.D)||void 0===w?void 0:w.setUpstreamMedia(i,p):Promise.resolve(!1)}unsetUpstreamMedia(i){var p;return this.D?null===(p=this.D)||void 0===p?void 0:p.unsetUpstreamMedia(i):Promise.resolve(!1)}stopUpstreamMedia(i){var p;return this.D?null===(p=this.D)||void 0===p?void 0:p.stopUpstreamMedia(i):Promise.resolve(!1)}Gc(i){var p,w,V,ae,me,He,ct;let Ut=15859712;if(i.error)Ut=i.error.code,this.h.onStreamStartFailed(Ut),oh(this,Ut);else if(null!==(p=i.streamInfo)&&void 0!==p&&p.length&&null!==(w=i.streams)&&void 0!==w&&w.length){this.streamingState=2,p={streams:[],separateAudioStream:!!i.streams.find(Lt=>{const qt=Lt.tracks.find(on=>"video"===on.kind);return Lt=Lt.tracks.find(on=>"audio"===on.kind),!qt&&Lt})};for(const Lt of i.streamInfo)i={width:Lt.width,height:Lt.height,fps:Lt.fps,sdrHdrMode:Lt.sdrHdrMode,bitDepth:8,codec:null===(V=this.D)||void 0===V?void 0:nh(V),videoTagId:null!==(me=null===(ae=this.K)||void 0===ae?void 0:ae.tagName)&&void 0!==me?me:""},p.streams.push(i);this.h.onStreamStarted(p),this.isResume&&this.m&&this.captureMic(!0)}else Ut=3237093905,m.e("{0a9be04}","{0cfb100}"),this.h.onStreamStartFailed(Ut),oh(this,Ut);(function ap(i,p,w){var ae,me,He,V=Ja;const ct=new ka({zoneAddress:V.zoneAddress,networkSessionId:null!==(ae=V.telemetryEventIds.networkTestId)&&void 0!==ae?ae:"",sessionId:V.sessionId,subSessionId:V.subSessionId,resumeType:pt(V.isResume),overrideConfigType:Ds.type,overrideConfigVersion:Ds.version,result:p,codec:vt(w),ipVersion:"UNKNOWN",launchDuration:Math.round(i),networkType:Le(Ac.getCurrentNetworkType()),streamingProfileGuid:null!==(me=V.telemetryEventIds.streamingProfileGuid)&&void 0!==me?me:"",systemInfoGuid:null!==(He=V.telemetryEventIds.systemInfoGuid)&&void 0!==He?He:"",cmsId:V.cmsId});V.h(ct)})(Math.round(performance.now()-this.startTime),H(Ut),null!==(ct=null===(He=this.D)||void 0===He?void 0:nh(He))&&void 0!==ct?ct:"UNKNOWN"),this.startTime=performance.now()}Cf(i){oh(this,i.error.code)}Df(){Iu(this)}emit(i,...p){if(p.length)switch(i){case"StreamingEvent":this.h.onStreamWarning(p[0]);break;case"StreamingQuality":this.h.onStreamQuality(p[0]);break;case"MicCapture":this.h.onMicStateUpdate&&void 0!==p[0].state&&this.h.onMicStateUpdate(p[0].state);break;case"TextComposition":this.h.onTextComposition(p[0]);break;case"CustomMessage":this.h.onCustomMessage&&this.h.onCustomMessage(p[0]);break;case"StreamStatsUpdate":this.h.onStreamStatistics(p[0])}}addListener(){}removeListener(){}removeAllListeners(){}removeAllListenersOfEvent(){}hasListener(){return!0}setClientSupportsVirtualGamepad(){this.j.getVirtualGamepadHandler().enable()}handleVirtualGamepadState(i,p,w){this.j.getVirtualGamepadHandler().updateInput(i,p,w)}setVirtualKeyboardState(i){var p;return null===(p=this.D)||void 0===p||p.setVirtualKeyboardState(i),!!this.D}handleVirtualKeyInput(i){var p;return null===(p=this.D)||void 0===p||p.sendKeyEvent(i),!!this.D}};window.Ragnarok=window.Ragnarok||{},window.Ragnarok.GridApp=class extends Cs{constructor(i){super(),this.u=i,this.l=this.Z=!1,this.da=new Qh,this.P=!1,this.O=this.W=void 0,this.fa=!1,this.R=this.L=this.T=this.J=0,this.aa=this.M=!1,this.o=0,m.isCallbackRegistered()||m.setLogCallback(this.$.bind(this)),this.h={clientIdentification:"GFN-PC",clientVersion:"28.0",deviceHashId:"",serverAddress:""},this.startTime=performance.now(),this.ja=this.ra.bind(this),this.ea=this.xa.bind(this),this.ka=this.Da.bind(this),this.ya=this.qa.bind(this),this.framesDecoded=0,this.m=new Qf,this.G=new df(this,this.m),this.F=new Ia(this.G),this.isResume=!1,this.N=Nt,this.ca=new Wf,window.addEventListener("error",this.ya),i=window.zoneless,this.j=new Mo(this.u,this.G),this.O=this.j.j.bind(this.j),this.W=this.na.bind(this),this.C=new Aa(this.u,i),Ui&&(this.C.l.push(this.da),Nc(this.C)),this.ga=this.oa.bind(this),Mn(this.G),function Yd(i){var p,w,V;if(Pr.sendNonEssentialMetricEvents){var ae=performance.getEntriesByName("GfnJsInitStart")[0];const me=performance.getEntriesByName("platformBegin")[0],He=performance.getEntriesByName("GfnRBegin")[0],ct=performance.getEntriesByType("navigation");ae=Math.round(null!==(p=ae?.startTime)&&void 0!==p?p:-1),p=Math.round(null!==(w=me?.startTime)&&void 0!==w?w:-1),Vs(i.G,"PerformanceTiming","application timings",ae,p,Math.round(null!==(V=He?.startTime)&&void 0!==V?V:-1),p-ae),ct.length?(w=ct[ct.length-1],Vs(i.G,"PerformanceTiming","load timings",Math.round(w.loadEventStart),Math.round(w.loadEventEnd),Math.round(w.domContentLoadedEventStart),Math.round(w.domContentLoadedEventEnd))):Vs(i.G,"PerformanceTiming","navigation timings unsupported",0,0,0,0)}}(this),function kg(i){if(navigator.mediaCapabilities){var p=performance.now();Tc("h264").then(function(){var w=r(function*(V){if(V){V=Tc("h264; profile-level-id=640033",2560,1440,60);var ae=Tc("h264; profile-level-id=64e033",2560,1440,60);V=Ld(yield V),ae=Ld(yield ae);const ct=performance.now()-p;var me=Bc(),He=Tc("h264",1920,1080,120);me=Ld(yield me),He=Ld(yield He);const Ut=yield Nd(Su),Lt=yield kd();m.d("{9d1820c}","{1efbc27}",Ut,Lt),Vs(i.G,"DisplayCaps","Is120FpsSupported: "+Lt,Ut,0,0,0),Vs(i.G,"MediaCapabilities","codec 5.1: "+V+" 5.1 constrained: "+ae+" AV1: "+me,ct,He,V|ae,Math.round(window.screen.height))}else Vs(i.G,"MediaCapabilities","webrtc unsupported",performance.now()-p,-1,-1,-1)});return function(V){return w.apply(this,arguments)}}())}else Vs(i.G,"MediaCapabilities","API unsupported",-1,-1,-1,-1)}(this),Pr.sendNonEssentialMetricEvents&&Vs(this.G,"PlatformDetailsExecutionTime","",this.u.totalTime,0,0,0),Ac.registerCallback(p=>{var w;null===(w=this.g)||void 0===w||w.setNetworkType(p)}),"VISIONPRO"===this.u.deviceModel&&(Vo=!0,fl())}qa(i){var p;return m.e("{9d1820c}","{8516485}",i.filename,i.lineno,i.colno),this.G.za(i.error,i.error&&i.error.message?i.error.message:i.message,i.filename,i.lineno,i.colno,!1),(!(null!==(p=Pr.terminateUnhandledException)&&void 0!==p)||p)&&Fg(this,3237093392),!1}ra(){var i,p;this.fa||(this.fa=!0,Fg(this,(null!==(i=this.S)&&void 0!==i?i:null!==(p=this.D)&&void 0!==p&&p.H)?15867912:15867905))}xa(){m.i("{9d1820c}","{a9a135f}"),Xf(this.m)}Da(){var i;if(m.i("{9d1820c}","{478a408}",document.visibilityState,!!this.D),this.D){var p=this.v.ae[0].K,w=W(this.u,!1,15,4)&&Ko,V=W(this.u,!1,15,4)&&this.l&&Na;"hidden"===document.visibilityState?(this.L=performance.now(),w&&(m.i("{9d1820c}","{cbd3b6e}"),p.muted=!0),$p(this)):"visible"===document.visibilityState&&(this.o+=performance.now()-this.L,w&&(m.i("{9d1820c}","{05deefa}"),p.muted=!1),V?(p=null!==(i=Pr.userTerminatedMicRecorderThreshold)&&void 0!==i?i:2e3,this.L-this.j.O<p?(m.i("{9d1820c}","{862bd20}"),this.j.J=!0,this.setMicRecordingEnabled(!0)):this.l=!1):W(this.u,!1,15,4)&&!this.j.o&&lc(this.j)&&this.j.F&&_u(this.j,"visibilityChange"))}}wa(i){m.d("{9d1820c}","{972bb72}",JSON.stringify(i)),cc(this.G,i)}ta(i){this.emit("ActiveSessionsResult",i)}ua(i){this.emit("ProgressUpdate",i)}va(i){this.emit("SessionUpdate",i)}initialize(i,p=Nt){var w,V,ae,me,He,ct,Ut,Lt,qt,on,Dn,Yn,ki,Ln;if(m.i("{9d1820c}","{2569364}","0.0.1548"),m.d("{9d1820c}","{e85ad66}",navigator.userAgent),!i)return m.e("{9d1820c}","{a98b177}"),!1;Object.assign(this.h,i),null===(w=this.g)||void 0===w||w.uninitialize(),!this.h.serverAddress||ce(this.h.serverAddress)?(m.d("{9d1820c}","{e2d9a04}"),this.g=new di):this.g=new ei(this.u,!0),i=this.g,m.d("{9d1820c}","{3c652b7}"),Zf(this),i.addListener("TelemetryEvent",this.wa.bind(this)),i.addListener("Log",this.$.bind(this)),i.addListener("ActiveSessionsResult",this.ta.bind(this)),i.addListener("ProgressUpdate",this.ua.bind(this)),i.addListener("SessionUpdate",this.va.bind(this)),this.h.clientHeaders=null!==(Lt=this.h.clientHeaders)&&void 0!==Lt?Lt:new Map,(w="NATIVE"!==(Lt=cn||this.h.clientType||"BROWSER"))&&this.h.clientHeaders.set("nv-browser-version",this.u.browserFullVer);var ii=this.h.clientHeaders;for(var[Zi]of ii){const nr=Zi;xt&&"nv-device-os"===nr.toLowerCase()&&ii.set(nr,xt),Ht&&"nv-device-type"===nr.toLowerCase()&&ii.set(nr,Ht),xr.deviceModel&&"nv-device-model"===nr.toLowerCase()&&ii.set(nr,xr.deviceModel),ut&&"nv-client-streamer"===nr.toLowerCase()&&ii.set(nr,ut),vi&&"nv-client-id"===nr.toLowerCase()&&ii.set(nr,vi)}return Zi={deviceOs:null!==(qt=xt)&&void 0!==qt?qt:this.u.deviceOS,deviceOsVer:this.u.osVer,deviceType:null!==(on=Ht)&&void 0!==on?on:this.u.deviceType,deviceModel:null!==(Dn=xr.deviceModel)&&void 0!==Dn?Dn:this.u.deviceModel,clientIdentification:null!==(Yn=this.h.clientIdentification)&&void 0!==Yn?Yn:"GFN-PC",clientVersion:null!==(ki=this.h.clientVersion)&&void 0!==ki?ki:"28.0",clientAppVersion:this.h.clientAppVersion,clientStreamer:null!==(Ln=ut)&&void 0!==Ln?Ln:"WEBRTC",clientId:vi||this.h.clientId,browserType:w?this.u.browser.toUpperCase():void 0,clientPlatformName:si||"browser",clientType:Lt,deviceHashId:this.h.deviceHashId,serverAddress:this.h.serverAddress,authTokenCallback:this.h.authTokenCallback,clientHeaders:this.h.clientHeaders},i.initialize(Zi),i.setNetworkType(Ac.getCurrentNetworkType()),this.N={...p},null!==(V=(He=this.N).windowedStreaming)&&void 0!==V||(He.windowedStreaming=this.h.windowedStreaming),null!==(ae=(ct=this.N).windowedStreaming)&&void 0!==ae||(ct.windowedStreaming=2===p.cursorType),null!==(me=(Ut=this.N).cursorType)&&void 0!==me||(Ut.cursorType=this.h.cursorType),this.G.clientShutDownCallback=this.h.clientShutDownCallback,!0}downloadAudio(){this.ca.downloadAudio()}updateEventDataElements(i){var p;m.i("{9d1820c}","{4008dc4}",JSON.stringify(i)),this.m.updateEventDataElements(i),i.telemetryEventIds&&(null===(p=this.g)||void 0===p||p.updateTelemetryEventIds(i.telemetryEventIds)),this.D&&!this.P&&$p(this)}getActiveSessions(){this.g?this.g.getAllActiveSessions():this.emit("ActiveSessionsResult",{sessionList:[],error:Ws("ActiveSessions")})}startSession(i){gm(this,!1),(i=mm(this,i))&&qf(this,0,i)}updateAdState(i){var p;return this.g?null===(p=this.g)||void 0===p?void 0:p.updateAdState(i):3237093380}getSession(i){this.g?this.g.getSession(i,!1).then(p=>{var w,V;let ae={sessionId:null!==(w=p?.sessionId)&&void 0!==w?w:"",appId:p?.appId,subSessionId:null!==(V=p?.subSessionId)&&void 0!==V?V:"",state:p?.state,status:p?.state};this.emit("GetSessionResult",ae)}).catch(p=>{var w,V;let ae={sessionId:i,subSessionId:null!==(V=null===(w=this.g)||void 0===w?void 0:w.getSubSessionId())&&void 0!==V?V:"",error:p};this.emit("GetSessionResult",ae)}):this.emit("GetSessionResult",{sessionId:"",subSessionId:"",error:Ws("GetSession")})}resume(){this.resumeSession(this.v.la,this.g.getSessionId())}resumeSession(i,p){gm(this,!0),(i=mm(this,i))&&qf(this,2,i,p)}stopSession(i,p){var w,V,ae,me,He,ct,Ut;this.g?(void 0!==p&&m.i("{9d1820c}","{ae7f61b}",H(p)),i===this.g.getSessionId()||void 0===i?(15867910===p?this.aa=!0:this.Z=!1,zc(this.j),this.framesDecoded=null!==(V=null===(w=this.D)||void 0===w?void 0:th(w))&&void 0!==V?V:0,Ou(this.F),w=Wp(this,{sessionId:null!==(ae=this.g.getSessionId())&&void 0!==ae?ae:"",subSessionId:null!==(me=this.g.getSubSessionId())&&void 0!==me?me:"",error:p?{code:p}:void 0,zoneName:null!==(He=this.g.getZoneName())&&void 0!==He?He:"",zoneAddress:this.g.getZoneAddress()||this.h.serverAddress,gpuType:null!==(ct=this.g.getGpuType())&&void 0!==ct?ct:"",isResume:this.isResume},performance.now()-this.startTime),i=null!==(Ut=this.g.getSessionId())&&void 0!==Ut?Ut:"",this.D?(this.M=!1,Wd(this),this.D.H&&Jf(this,w),om(this,p??(this.D.H?15859712:15867905)),15867910===p?(m.d("{9d1820c}","{12bc45e}",i),Wa(this,i)):this.sendDeleteRequest(i,this.g)):this.H?Wa(this,i):this.cancelSessionSetup()):i&&this.sendDeleteRequest(i,this.g)):this.emit("SessionStopResult",{sessionId:"",subSessionId:"",error:Ws("StopSession")})}pauseSession(i){this.stopSession(i,15867910)}startStreaming(i){var p,w,V,ae;const me={sessionId:null!==(w=null===(p=this.g)||void 0===p?void 0:p.getSessionId())&&void 0!==w?w:"",subSessionId:null!==(ae=null===(V=this.g)||void 0===V?void 0:V.getSubSessionId())&&void 0!==ae?ae:"",progressState:"StartingStreamer",queuePosition:0,eta:0,ads:[]};this.emit("SessionUpdate",me),this.emit("ProgressUpdate",{...me,state:me.progressState}),p=ce(this.h.serverAddress)?"":this.h.serverAddress.split(".")[0];const{K:He}=i.ae[0];if(W(this.u,!1,15)){He.ragnarokOldPlay||(He.ragnarokOldPlay=He.play);const ct=Ps&&W(this.u,!0,15,1);He.play=()=>{if(Or&&(m.i("{9d1820c}","{4a5b360}"),Ll(this),function Jh(i){if(Or)if(window.ios15AudioContext)m.i("{9d1820c}","{e2aba64}");else{var p=new(window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive",sampleRate:48e3});p.onstatechange=()=>{"suspended"===p.state&&(p.resume(),i.j.j(),m.i("{9d1820c}","{faee684}"))},window.ios15AudioContext=p,window.ios15AudioStream=p.createMediaStreamDestination(),navigator.mediaDevices&&i.O&&navigator.mediaDevices.addEventListener("devicechange",i.O),m.i("{9d1820c}","{b5f7b9b}")}}(this),this.j.j()),ct){m.i("{9d1820c}","{8f5cd77}");const Ut=He.srcObject;He.srcObject=null,He.srcObject=Ut}return He.ragnarokOldPlay.apply(He)}}pl&&(W(this.u,!0,15,0)||W(this.u,!0,15,1))&&(He.hasAttribute("data-shouldautoplay")?He.setAttribute("autoplay",""):(He.setAttribute("data-shouldautoplay",""),He.removeAttribute("autoplay"))),this.D=new Kh(this,He,void 0,this.j,this.N,this.da,this.C,this.G,this.u,this.H,i.la.streamParams[0],this.ca,this.h.textInputElement,this.h.clientAppVersion,this.isResume,p,void 0,void 0,i.la.signalingUrlQueryParameters),this.D.start(),i.la.keyboardLayout&&this.D.setKeyboardLayout(i.la.keyboardLayout),function cp(i){return i.clientShutDownCallback?(m.d("{9838627}","{c7dcc4e}"),function Hp(i){return i.l.then(()=>Pu(i.j,"exit-events")).then(p=>{m.i("{f7c1592}","{d938300}",p.length);let w=[];if(0<p.length)for(const V of p)V.eventPayload&&w.push(V.eventPayload);return w}).catch(p=>(ru(i,p,"getCachedExitEvents",!0),Promise.reject()))}(i.j).then(p=>{for(const w of p)lp(i,w);jd(i.j)}).catch(()=>{m.d("{9838627}","{41cf828}")})):(m.d("{9838627}","{77df598}"),function Rg(i){return i.l.then(()=>Pu(i.j,"exit-events")).then(p=>{if(m.i("{f7c1592}","{ca568ff}",p.length),0<p.length){for(const w of p)w.eventPayload&&bd(wu(i,w.eventPayload));jd(i)}}).catch(p=>{ru(i,p,"sendCachedExitEvent",!0)})}(i.j))}(this.G).then(()=>{$p(this)}).catch(()=>{m.e("{9d1820c}","{c761bfd}")})}Gc(i,p){var w,V,ae,me,He,ct,Ut;if(i.error){const Lt=Xh(this.F,i.error.code);Lt&&(i.error.code=Ot(i.error.code,this.u)),Kp(this,null===(w=i.error)||void 0===w?void 0:w.code).then(qt=>{var on,Dn,Yn;this.framesDecoded=null!==(Dn=null===(on=this.D)||void 0===on?void 0:th(on))&&void 0!==Dn?Dn:0,i.zoneAddress||(i.zoneAddress=this.h.serverAddress),i.error&&(i.error.code=qt.errorCode),on=void 0,p||(on=Wp(this,i,0,qt.connectivity,Lt),this.S=null===(Yn=i.error)||void 0===Yn?void 0:Yn.code),zp(this,i,!0,on)})}else(function Ph(i,p,w,V,ae,me,He,ct,Ut,Lt){cc(i,{name:(p=new ka({zoneAddress:ae,networkSessionId:Lt,sessionId:p,subSessionId:w,resumeType:pt(V),overrideConfigType:Ds.type,overrideConfigVersion:Ds.version,result:He,codec:vt(ct),ipVersion:"UNKNOWN",launchDuration:Math.round(me),networkType:Le(Ac.getCurrentNetworkType()),streamingProfileGuid:Gp(i.j),systemInfoGuid:Zh(i.j),cmsId:Ut})).name,gdprLevel:p.gdprLevel,parameters:p.parameters,ts:p.ts,clientConfig:Il})})(this.G,i.sessionId,i.subSessionId,this.isResume,i.zoneAddress||this.h.serverAddress,Math.round(performance.now()-this.startTime),H(15859712),null!==(ae=null===(V=this.D)||void 0===V?void 0:nh(V))&&void 0!==ae?ae:"UNKNOWN",this.v?String(null===(me=this.v)||void 0===me?void 0:me.la.appId):"",null!==(ct=null===(He=this.v)||void 0===He?void 0:He.la.networkSessionId)&&void 0!==ct?ct:""),this.startTime=performance.now(),"hidden"===document.visibilityState&&(this.L=this.startTime),this.o=0,this.isResume&&this.l&&this.setMicRecordingEnabled(!0),rh(this,i),this.Z&&(null===(Ut=this.D)||void 0===Ut||Ut.toggleUserInput(!0,this.pa)),X(this.u)&&document.addEventListener("SystemIdle",this.ga)}Cf(i){var p,w,V;zc(this.j),m.d("{9d1820c}","{a94b484}");let ae=Xh(this.F,i.error.code);ae&&(i.error.code=Ot(i.error.code,this.u)),this.framesDecoded=null!==(w=null===(p=this.D)||void 0===p?void 0:th(p))&&void 0!==w?w:0,i.zoneAddress||(i.zoneAddress=this.h.serverAddress),Kp(this,null===(V=i.error)||void 0===V?void 0:V.code).then(me=>{var He;i.error.code=me.errorCode,me=Wp(this,i,performance.now()-this.startTime,me.connectivity,ae),this.S=null===(He=i.error)||void 0===He?void 0:He.code,Vs(this.G,"HotPlug","",0,this.R,0,0),this.R=0,zp(this,i,!1,me)})}Df(){eg(this)}sendDeleteRequest(i,p){p.sendDeleteRequest(i).then(()=>{m.d("{9d1820c}","{fee1eea}",i),Wa(this,i)},w=>{m.e("{9d1820c}","{50e2a6e}",i),Wa(this,i,w)})}isMicSupported(){return Kc}setMicRecordingEnabled(i){m.i("{9d1820c}","{f5b2f30}",i),i?(this.l=!0,Rd(this.j)):(this.l=!1,vu(this.j))}getMicState(){!function sp(i){!1!==ys&&(i.v||3==i.h||2==i.h||6==i.h||7==i.h?Rs(i,i.h):mu().then(p=>{0!==p&&Rs(i,p)}))}(this.j)}shouldDefaultEnableMic(){return yu(this.u)}sendCustomMessage(i){var p;null===(p=this.D)||void 0===p||p.sendCustomMessage(i)}toggleUserInput(i,p){var w;null===(w=this.D)||void 0===w||w.toggleUserInput(i,p),this.Z=i,this.pa=p}toggleRsdmm(i){ra(this.C,i)}getVirtualGamepadHandler(){var i;return null===(i=this.D)||void 0===i?void 0:i.getVirtualGamepadHandler()}setAuthInfo(i){var p;null===(p=this.g)||void 0===p||p.setAuthInfo(i)}sendTextInput(i){var p;null===(p=this.D)||void 0===p||p.sendTextInput(i)}setVirtualKeyboardState(i){var p;null===(p=this.D)||void 0===p||p.setVirtualKeyboardState(i)}setVideoTransforms(i,p,w){var V;null===(V=this.D)||void 0===V||V.setVideoTransforms(i,p,w)}toggleOnScreenStats(){var i;wr&&(null===(i=this.D)||void 0===i||i.toggleOnScreenStats())}toggleStutterIndicator(){var i;null===(i=this.D)||void 0===i||i.toggleStutterIndicator()}setKeyboardLayout(i){var p;m.i("{9d1820c}","{10717a6}",i),null===(p=this.D)||void 0===p||p.setKeyboardLayout(i)}sendKeyEvent(i){var p;null===(p=this.D)||void 0===p||p.sendKeyEvent(i)}setStreamingMaxBitrate(i,p=0){var w;null===(w=this.D)||void 0===w||w.setStreamingMaxBitrate(p,i)}setDrcDfcState(i,p=0){var w;null===(w=this.D)||void 0===w||w.setDrcDfcState(p,i?3:0)}oa(i){var p;i.detail.idle&&(null===(p=this.D)||void 0===p||Gf(p,2,60),this.T=window.setTimeout(()=>{var w;null===(w=this.D)||void 0===w||qa(w,15867913)},6e4))}na(){da(this.j,this.R),this.R++}cancelSessionSetup(){!this.D&&this.g&&this.g.cancelSessionSetup()}},window.Ragnarok.ChooseStreamingSettings=function(i=0,p,w){return B(i,p,re(w))},window.Ragnarok.ChooseStreamingResolution=function(i=0,p){return p=p?.map(w=>({resolution:w,frameRate:60})),B(i,p,re()).resolution},window.Ragnarok.InitializeUtils=function(){for(const i of hn)i()},window.Ragnarok.GetSupportedAudioChannelCount=_,window.Ragnarok.GetDeviceCapabilities=dp,window.Ragnarok.getSupportedCodecs=hf,window.Ragnarok.VirtualButton={A:4096,B:8192,X:16384,Y:32768,LB:256,RB:512,LT:255,RT:65280,BACK:32,START:16,STICK_LEFT:64,STICK_RIGHT:128,DPAD_UP:1,DPAD_DOWN:2,DPAD_LEFT:4,DPAD_RIGHT:8},window.Ragnarok.VirtualGamepadHandler=xl,window.Ragnarok.ConfigureRagnarokSettings=Uo,window.Ragnarok.CHANGELIST="master-16521591",window.Ragnarok.AuthType={NONE:-1,JARVIS:0,JWT_GFN:1,JWT_PARTNER:2},window.Ragnarok.performHttpRequest=ge,window.Ragnarok.AddPlatformTelemetry=function(i){Mn(i)},window.Ragnarok.IsFeatureSupported=uf,window.Ragnarok.CalculateMaxBitrateKbps=function(i,p,w){return Yu(i,p,w)[0]},window.Ragnarok.CalculateDataUsage=function(i,p){return wh(i,p)},window.Ragnarok.LogImpl=Gg,window.Ragnarok.EVENTS={SESSION_START_RESULT:"SessionStartResult",SESSION_STOP_RESULT:"SessionStopResult",ACTIVE_SESSIONS_RESULT:"ActiveSessionsResult",PROGRESS_UPDATE:"ProgressUpdate",SESSION_UPDATE:"SessionUpdate",STREAM_STOPPED:"StreamStopped",STREAMING_EVENT:"StreamingEvent",GETSESSIONRESULT:"GetSessionResult",GET_SESSION_RESULT:"GetSessionResult",LOG_EVENT:"Log",STREAMING_QUALITY:"StreamingQuality",MIC_CAPTURE:"MicCapture",CUSTOM_MESSAGE:"CustomMessage",TEXT_COMPOSITION:"TextComposition",STREAM_STATS_UPDATE:"StreamStatsUpdate",TELEMETRY_EVENT:"TelemetryEvent"},window.Ragnarok.HotkeyModifier={None:0,Ctrl:1,Alt:2,Meta:4,Shift:8,Default:128},window.Ragnarok.defaultInputConfigFlags=Nt,window.Ragnarok.StreamingProfilePreset={BALANCED:0,DATASAVER:1,COMPETITIVE:2},window.Ragnarok.TrackType=wi,window.Ragnarok.STREAMING_STATE={RECONNECTING:"reconnecting",RECONNECTED:"reconnected"},window.Ragnarok.RNotificationCode=Ri,window.Ragnarok.ScErrorCode=sa,window.Ragnarok.configureSessionControlSettings=sn,window.Ragnarok.DeviceType={DESKTOP:"DESKTOP",LAPTOP:"LAPTOP",TV:"TV",PHONE:"PHONE",TABLET:"TABLET",CONSOLE:"CONSOLE"},window.Ragnarok.DeviceOS={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",CCOS:"CCOS"},window.Ragnarok.NetworkType={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"},window.Ragnarok.registerLogCallback=function(i){m.setLogCallback(i)},window.Ragnarok.LogLevel=Ba,window.Ragnarok.createSessionControl=function(i){const p=new fa;if(hl(p,i))return p;throw Error("Session Control initialization failure.")},window.Ragnarok.SdrHdrMode={SDR:0,HDR:1,EDR:2},window.Ragnarok.Usage={UNKNOWN:0,CONTROL:1,VIDEO:2,AUDIO:3,INPUT:4,CUSTOM:5,USB:6,RTSP:7,GAMESTREAM_CONTROL:8,GAMESTREAM_SECURE_CONTROL:9,SESSION_CONTROL:10,NETWORK_TEST_CONTROL:11,RTSPRU:12,AUDIO_INPUT:13,SIGNALING:14,MEDIA:15,RTSPS:16,BUNDLE:17},window.Ragnarok.Protocol={UNKNOWN:0,TCP:1,UDP:2},window.Ragnarok.AppLevelProtocol={UNKNOWN:0,RTSP:1,HTTP:2,RTSPRU:3,SOCKET:4,HTTPS:5,RTSPS:6},window.Ragnarok.AdState={UNKNOWN:0,NOT_STARTED:1,STARTED:2,PAUSED:3,RESUMED:4,FINISHED:5,CANCELED:6},window.Ragnarok.AdAction={UNKNOWN:0,START:1,PAUSE:2,RESUME:3,FINISH:4,CANCEL:5},window.Ragnarok.BitDepth={BIT_DEPTH_8:0,BIT_DEPTH_10:1},window.Ragnarok.ClientType={BROWSER:"BROWSER",GFNSDK:"GFNSDK",NATIVE:"NATIVE"},window.Ragnarok.SessionState={INITIALIZING:"initializing",READY_FOR_CONNECTION:"ready_for_connection",STREAMING:"streaming",PAUSED:"paused",RESUMING:"resuming",FINISHED:"finished",UNKNOWN:"unknown"},window.Ragnarok.SessionProgressState={CONNECTING:"Connecting",IN_QUEUE:"InQueue",CONFIGURING:"Configuring",PREVIOUS_SESSION_CLEANUP:"PreviousSessionCleanup",STARTING_STREAMER:"StartingStreamer"},window.Ragnarok.AppLaunchMode={Default:0,GamepadFriendly:1,TouchFriendly:2},window.Ragnarok.updateSessionParameters=function(i,p){var w;p=JSON.parse(p),i.monitorSettings=null!==(w=p.clientRequestMonitorSettings)&&void 0!==w?w:[],i.streamingFeatures=p.requestedStreamingFeatures},window.Ragnarok.isCancelCode=Hs,window.Ragnarok.isResumableSessionState=Qr,window.Ragnarok.getResumableSession=function(i,p){for(const w of i)if(w.appId===p&&Qr(w.state))return w},window.Ragnarok.SessionControlTelemetry=ps,window.Ragnarok.GsErrorCode=sa,window.Ragnarok.GridServerSettings=Ar,window.Ragnarok.ConfigureGridServerSettings=function(i){sn(i)},window.Ragnarok.BrowserName={UNKNOWN:"Unknown",CHROME:"Chrome",SAFARI:"Safari",YANDEX:"Yandex",EDGE:"Edge",EDGE_LEGACY:"Edge_Legacy",FIREFOX:"Firefox",SAMSUNG:"Samsung",CHROMIUM:"Chromium",OPERA:"Opera",BRAVE:"Brave",SILK:"Silk",REACT:"ReactNative"},window.Ragnarok.PlatformName={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"},window.Ragnarok.getPlatformDetails=ss,window.Ragnarok.DeviceModel={STEAMDECK:"STEAMDECK",XBOX_ONE:"XBOXONE",XBOX_SERIES:"XBOXSERIES",VISION_PRO:"VISIONPRO"},window.Ragnarok.DeviceVendor={APPLE:"APPLE",LG:"LG",SAMSUNG:"SAMSUNG",TIZEN_LICENSED:"TIZENLICENSED",MICROSOFT:"MICROSOFT",AMAZON:"AMAZON",HKMC:"HKMC",SONY:"SONY",PHILIPS:"PHILIPS",GOOGLE:"GOOGLE",NVIDIA:"NVIDIA",XIAOMI:"XIAOMI",TVISION:"TVISION",UNKNOWN:""},window.Ragnarok.CLIENT_VERSION="28.0",window.Ragnarok.CLIENT_IDENTIFICATION="GFN-PC",window.Ragnarok.SESSIONMODIFY_ACTION={UNKNOWN:0,PAUSE:1,RESUME:2,Pg:3,Ng:4,Mg:5,Lg:6,Qg:7},window.Ragnarok.AudioFormat={UNKNOWN:0,STEREO:1,UP_TO_5_1_SURROUND_PCM:2,UP_TO_7_1_SURROUND_PCM:3},window.Ragnarok.ClientStreamer={CLASSIC:"NVIDIA-CLASSIC",WEBRTC:"WEBRTC"},window.Ragnarok.GS_EVENTS={ACTIVE_SESSIONS_RESULT:"ActiveSessionsResult",PROGRESS_UPDATE:"ProgressUpdate",SESSION_UPDATE:"SessionUpdate",TELEMETRY_EVENT:"TelemetryEvent",LOG_EVENT:"Log"},window.Ragnarok.GridServer=ei,window.Ragnarok.PassThruServer=di,window.Ragnarok.VsyncType={OFF:0,ON:1,ADAPTIVE:2},window.Ragnarok.getDeviceCapabilities=dp,window.Ragnarok.serializeDeviceCapabilities=function(i){return JSON.stringify(i)},window.Ragnarok.PayloadOSType={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",UNDEFINED:"undefined"},window.Ragnarok.PayloadBrowserType={CHROME:"Chrome",SAFARI:"Safari",YANDEX:"Yandex",EDGE:"Edge",EDGE_LEGACY:"Edge_legacy",FIREFOX:"Firefox",SAMSUNG:"Samsung",CHROMIUM:"Chromium",OPERA:"Opera",BRAVE:"Brave",SILK:"Silk",UNDEFINED:"undefined"},window.Ragnarok.PayloadDeviceType={DESKTOP:"Desktop",LAPTOP:"Laptop",TV:"TV",PHONE:"Phone",TABLET:"Tablet",SERVER:"Server",CONSOLE:"Console",UNDEFINED:"undefined"},window.Ragnarok.ClientHeaderOSType={WINDOWS:"WINDOWS",MACOS:"MACOS",SHIELD:"SHIELD",ANDROID:"ANDROID",IOS:"IOS",IPADOS:"IPADOS",CHROMEOS:"CHROMEOS",LINUX:"LINUX",TIZEN:"TIZEN",WEBOS:"WEBOS",XBOX:"XBOX",STEAMOS:"STEAMOS",UNKNOWN:"UNKNOWN"},window.Ragnarok.ClientHeaderBrowserType={CHROME:"CHROME",SAFARI:"SAFARI",YANDEX:"YANDEX",EDGE:"EDGE",EDGE_LEGACY:"EDGE_LEGACY",FIREFOX:"FIREFOX",SAMSUNG:"SAMSUNG",CHROMIUM:"CHROMIUM",OPERA:"OPERA",BRAVE:"BRAVE",SILK:"SILK",UNKNOWN:"UNKNOWN"},window.Ragnarok.ClientHeaderDeviceType={DESKTOP:"DESKTOP",LAPTOP:"LAPTOP",TV:"TV",PHONE:"PHONE",TABLET:"TABLET",CONSOLE:"CONSOLE",UNKNOWN:"UNKNOWN"},window.Ragnarok.translatePlatformDetailsForPayload=function(i){return xi?.h!=i&&(xi=new er(i)),xi.m},window.Ragnarok.translatePlatformDetailsForClientHeader=function(i){return xi?.h!=i&&(xi=new er(i)),xi.o},window.Ragnarok.getStreamerType=function(){return"WEBRTC"},window.Ragnarok.BrowserFeature={Streaming:0,MicCapture:1},window.Ragnarok.isFeatureSupported=uf,window.Ragnarok.shouldDefaultEnableMic=yu,window.Ragnarok.getRecommendedBitrate=Yu,window.Ragnarok.getStreamStartParameters=function(i){const p={downstreamParams:[],signalConnectionInfo:{address:"",port:0},enableTouchInput:2===(i=JSON.parse(i)).appLaunchMode,sessionId:i.sessionId,subSessionId:i.subSessionId,audioTagId:"",zoneAddress:i.zoneAddress,statTelemetryInfo:{appId:i.appId,zoneName:i.zoneName,gpuType:i.gpuType},streamingFeatures:i.finalizedStreamingFeatures};for(const w of i.monitorSettings)p.downstreamParams.push({width:w.widthInPixels,height:w.heightInPixels,fps:w.framesPerSecond,videoTagId:"",sdrHdrMode:w.sdrHdrMode});for(const w of i.connectionInfo)switch(w.usage){case 14:p.signalConnectionInfo.address=w.ip,p.signalConnectionInfo.port=w.port,p.signalConnectionInfo.secure=5===w.appLevelProtocol;break;case 2:case 17:p.mediaConnectionInfo={address:w.ip,port:w.port}}return p},window.Ragnarok.estimateDataUsage=wh,window.Ragnarok.NskTelemetry=Ja,window.Ragnarok.createNskStreamClient=function(i,p,w){return new _m(i,p,w)},window.Ragnarok.configureRagnarokSettings=Uo,window.Ragnarok.getNetworkTypeDetector=function(){return Ac},window.Ragnarok.RErrorCode={Success:15859712,AuthProviderError:3237085185,InvalidOperation:3237085186,NoNetwork:3237089281,NetworkError:3237089282,GetActiveSessionServerError:3237089283,ExceptionHappened:3237089284,AuthTokenNotUpdated:3237093377,SessionFinishedState:3237093378,ResponseParseFailure:3237093379,GridAppNotInitialized:3237093380,InvalidServerResponse:3237093381,PutOrPostInProgress:3237093382,GridServerNotInitialized:3237093383,DOMExceptionInGridServer:3237093384,InvalidAdStateTransition:3237093386,SessionServerErrorBegin:3237093632,RequestForbidden:3237093634,ServerInternalTimeout:3237093635,ServerInternalError:3237093636,ServerInvalidRequest:3237093637,ServerInvalidRequestVersion:3237093638,SessionListLimitExceeded:3237093639,InvalidRequestDataMalformed:3237093640,InvalidRequestDataMissing:3237093641,RequestLimitExceeded:3237093642,SessionLimitExceeded:3237093643,InvalidRequestVersionOutOfDate:3237093644,SessionEntitledTimeExceeded:3237093645,AuthFailure:3237093646,InvalidAuthenticationMalformed:3237093647,InvalidAuthenticationExpired:3237093648,InvalidAuthenticationNotFound:3237093649,EntitlementFailure:3237093650,InvalidAppIdNotAvailable:3237093651,InvalidAppIdNotFound:3237093652,InvalidSessionIdMalformed:3237093653,InvalidSessionIdNotFound:3237093654,EulaUnAccepted:3237093655,MaintenanceStatus:3237093656,ServiceUnAvailable:3237093657,SteamGuardRequired:3237093658,SteamLoginRequired:3237093659,SteamGuardInvalid:3237093660,SteamProfilePrivate:3237093661,InvalidCountryCode:3237093662,InvalidLanguageCode:3237093663,MissingCountryCode:3237093664,MissingLanguageCode:3237093665,SessionNotPaused:3237093666,EmailNotVerified:3237093667,InvalidAuthenticationUnsupportedProtocol:3237093668,InvalidAuthenticationUnknownToken:3237093669,InvalidAuthenticationCredentials:3237093670,SessionNotPlaying:3237093671,InvalidServiceResponse:3237093672,AppPatching:3237093673,GameNotFound:3237093674,NotEnoughCredits:3237093675,InvitationOnlyRegistration:3237093676,RegionNotSupportedForRegistration:3237093677,SessionTerminatedByAnotherClient:3237093678,DeviceIdAlreadyUsed:3237093679,ServiceNotExist:3237093680,SessionExpired:3237093681,SessionLimitPerDeviceReached:3237093682,ForwardingZoneOutOfCapacity:3237093683,RegionNotSupportedIndefinitely:3237093684,RegionBanned:3237093685,RegionOnHoldForFree:3237093686,RegionOnHoldForPaid:3237093687,AppMaintenanceStatus:3237093688,ResourcePoolNotConfigured:3237093689,InsufficientVmCapacity:3237093690,InsufficientRouteCapacity:3237093691,InsufficientScratchSpaceCapacity:3237093692,RequiredSeatInstanceTypeNotSupported:3237093693,ServerSessionQueueLengthExceeded:3237093694,RegionNotSupportedForStreaming:3237093695,SessionForwardRequestAllocationTimeExpired:3237093696,SessionForwardGameBinariesNotAvailable:3237093697,GameBinariesNotAvailableInRegion:3237093698,UekRetrievalFailed:3237093699,EntitlementFailureForResource:3237093700,SessionInQueueAbandoned:3237093701,MemberTerminated:3237093702,SessionRemovedFromQueueMaintenance:3237093703,ZoneMaintenanceStatus:3237093704,GuestModeCampaignDisabled:3237093705,RegionNotSupportedAnonymousAccess:3237093706,InstanceTypeNotSupportedInSingleRegion:3237093707,InvalidZoneForQueuedSession:3237093710,SessionWaitingAdsTimeExpired:3237093711,UserCancelledWatchingAds:3237093712,SessionServerErrorEnd:3237093887,StreamerErrorCategory:3237093888,StreamErrorGeneric:3237093889,StreamerSignInFailure:3237093890,StreamerHangingGetFailure:3237093891,StreamerNetworkError:3237093892,StreamerVideoPlayError:3237093893,StreamerIceConnectionFailed:3237093894,StreamerGetRemotePeerTimedOut:3237093895,StreamInputChannelError:3237093896,StreamCursorChannelError:3237093897,StreamControlChannelError:3237093898,StreamerReConnectionFailed:3237093899,StreamerNoVideoPacketsReceivedEver:3237093900,StreamerNoVideoFramesLossyNetwork:3237093901,StreamerSetSDPFailure:3237093902,StreamerNoLocalCandidates:3237093903,StreamerNoRemoteCandidates:3237093904,StreamerNoVideoTrack:3237093905,StreamerIceReConnectionFailed:3237093906,StreamerSignInTimeout:3237093907,StreamerSignInWorkerFailure:3237093908,StreamerNoTracksReceivedInSdp:3237093909,StreamerNvstSdpFailure:3237093910,StreamerNvstSdpParseFailure:3237093911,StreamerNoPeerInfo:3237093912,StreamerNoOffer:3237093913,StreamerNoAudioTrack:3237093914,StreamerInvalidRemoteConfigOverride:3237093915,StreamerInvalidServerOverride:3237093916,StreamerInvalidClientOverride:3237093917,StreamerConfigUpdateFailure:3237093918,StreamerInputChannelNotOpen:3237093919,StreamerCursorChannelNotOpen:3237093920,StreamerControlChannelNotOpen:3237093921,StreamerVideoAdapterInitTimeOut:3237093922,StreamerVideoFrameProviderInitTimeOut:3237093923,StreamerVideoEncoderInitTimeOut:3237093924,StreamerVideoSetupTimeOut:3237093925,StreamerNoStunResponsesReceived:3237093926,StreamerNoNominatedCandidatePairs:3237093927,StreamerNoSucceededCandidatePairs:3237093928,StreamGamepadChannelError:3237093929,StreamerGamepadChannelNotOpen:3237093936,StreamerNeedAudioElement:3237093937,SessionSetupCancelled:15867905,SessionSetupCancelledDuringQueuing:15867906,StreamerDataChannelClosing:15867907,SystemSleepDuringStreaming:15867908,SystemSleepDuringSessionSetup:15867909,PauseSession:15867910,DelayedSessionError:15867911,WebPageClosed:15867912,ClientDisconnectedUserIdle:15867913,UnhandledException:3237093392,NoInternetDuringSessionSetup:15868417,NoInternetDuringStreaming:15868418,StreamDisconnectedFromServer:15868672,ServerDisconnectedNoResponse:3237094145,ServerDisconnectedRemoteInputError:3237094146,ServerDisconnectedFrameGrabFailed:3237094147,ServerDisconnectedConfigUnAvailable:3237094148,ServerDisconnectedInvalidCommand:3237094149,ServerDisconnectedInvalidMouseState:3237094150,ServerDisconnectedNetworkError:3237094151,ServerDisconnectedGameLaunchFailed:3237094152,ServerDisconnectedVideoFirstFrameSendFailed:3237094153,ServerDisconnectedVideoNextFrameSendFailed:3237094154,ServerDisconnectedFrameGrabTimedOut:3237094155,ServerDisconnectedFrameEncodeTimedOut:3237094156,ServerDisconnectedFrameSendTimedOut:3237094157,ServerDisconnectedNetworkTimedOut:3237094158,ServerDisconnectedPeerRemovedByServer:3237094159,ServerDisconnectedUnknownError:3237094160,ServerDisconnectedPeerRemovedBeforeStream:3237094161,ServerDisconnectedIntended:15868704,ServerDisconnectedHotKey:15868705,ServerDisconnectedUserLoggedInDifferentAccount:15868706,ServerDisconnectedWindowedMode:15868707,ServerDisconnectedUserIdle:15868708,ServerDisconnectedUnAuthorizedProcessDetected:15868709,ServerDisconnectedMaliciousProcessDetected:15868710,ServerDisconnectedUnKnownProcessDetected:15868711,ServerDisconnectedMinerProcessDetected:15868712,ServerDisconnectedStreamingUnsupported:15868713,ServerDisconnectedAnotherClient:15868714,ServerDisconnectedCodeIntegrityViolation:15868715,ServerDisconnectedUnauthorizedActivityDetected:15868716,ServerDisconnectedGameNotOwnedByUser:15868717,ServerDisconnectedProtectedContent:15868718,ServerDisconnectedDisplayTopologyChanged:15868719,ServerDisconnectedAbruptly:15868688,ServerDisconnectedUnknownFromPm:15868736,ServerDisconnectedUserEntitledMinutesExceeded:15868737,ServerDisconnectedClientReconnectTimeLimitExceeded:15868738,ServerDisconnectedOperatorCommandedTermination:15868739,ServerDisconnectedConcurrentSessionLimitExceeded:15868740,ServerDisconnectedMaxSessionTimeLimitExceeded:15868741,ServerDisconnectedBifrostInitiatedSessionPause:15868742,ServerDisconnectedSystemCommandTermination:15868743,ServerDisconnectedMultipleLogin:15868744,ServerDisconnectedMaintenanceMode:15868745,ServerDisconnectedMultipleTab:15868752,InvalidVideoElement:3237094400,InvalidAudioElement:3237094401},window.Ragnarok.HidType={NONE:0,DS4:1,DS5:2},window.Ragnarok.InputType={None:0,Mouse:1,Keyboard:2,Gamepad:4,Touch:8,All:15},window.Ragnarok.VideoCodecType={H264:"H264",H265:"H265",AV1:"AV1",UNKNOWN:"UNKNOWN"},window.Ragnarok.MicState={UNINITIALIZED:0,PERMISSION_PENDING:1,PERMISSION_DENIED:2,STARTED:3,NO_SUITABLE_DEVICE:4,STOPPED:5,UNSUPPORTED:6,ERROR:7},window.Ragnarok.DynamicStreamingMode={NONE:0,DRC:1,DFC:2,ALL:3},window.Ragnarok.MediaTrackKind=wi,window.Ragnarok.StreamStopReason={CLIENT_DISCONNECTED:0,SERVER_DISCONNECTED:1,NETWORK_ERROR:2,ERROR:3},window.Ragnarok.StreamWarningType=Ri,window.Ragnarok.CursorType={SOFTWARE:0,HARDWARE:1,FREE:2},window.Ragnarok.StreamingState={NONE:0,STARTING_STREAM:1,STREAMING:2,STOPPING_STREAM:3,STOPPED:4}},134:
/*!******************************************************************!*\
                !*** ./node_modules/rtcpeerconnection-shim/rtcpeerconnection.js ***!
                \******************************************************************/(A,M,T)=>{"use strict";var E=T(
/*! sdp */
985);function S(R,O,Y,j,fe){var te=E.writeRtpDescription(R.kind,O);if(te+=E.writeIceParameters(R.iceGatherer.getLocalParameters()),te+=E.writeDtlsParameters(R.dtlsTransport.getLocalParameters(),"offer"===Y?"actpass":fe||"active"),te+="a=mid:"+R.mid+"\r\n",te+=R.rtpSender&&R.rtpReceiver?"a=sendrecv\r\n":R.rtpSender?"a=sendonly\r\n":R.rtpReceiver?"a=recvonly\r\n":"a=inactive\r\n",R.rtpSender){var ce=R.rtpSender._initialTrackId||R.rtpSender.track.id;R.rtpSender._initialTrackId=ce;var H="msid:"+(j?j.id:"-")+" "+ce+"\r\n";te+="a="+H,te+="a=ssrc:"+R.sendEncodingParameters[0].ssrc+" "+H,R.sendEncodingParameters[0].rtx&&(te+="a=ssrc:"+R.sendEncodingParameters[0].rtx.ssrc+" "+H,te+="a=ssrc-group:FID "+R.sendEncodingParameters[0].ssrc+" "+R.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return te+="a=ssrc:"+R.sendEncodingParameters[0].ssrc+" cname:"+E.localCName+"\r\n",R.rtpSender&&R.sendEncodingParameters[0].rtx&&(te+="a=ssrc:"+R.sendEncodingParameters[0].rtx.ssrc+" cname:"+E.localCName+"\r\n"),te}function s(R,O){var Y={codecs:[],headerExtensions:[],fecMechanisms:[]},j=function(te,ce){te=parseInt(te,10);for(var H=0;H<ce.length;H++)if(ce[H].payloadType===te||ce[H].preferredPayloadType===te)return ce[H]},fe=function(te,ce,H,Z){var X=j(te.parameters.apt,H),ue=j(ce.parameters.apt,Z);return X&&ue&&X.name.toLowerCase()===ue.name.toLowerCase()};return R.codecs.forEach(function(te){for(var ce=0;ce<O.codecs.length;ce++){var H=O.codecs[ce];if(te.name.toLowerCase()===H.name.toLowerCase()&&te.clockRate===H.clockRate){if("rtx"===te.name.toLowerCase()&&te.parameters&&H.parameters.apt&&!fe(te,H,R.codecs,O.codecs))continue;(H=JSON.parse(JSON.stringify(H))).numChannels=Math.min(te.numChannels,H.numChannels),Y.codecs.push(H),H.rtcpFeedback=H.rtcpFeedback.filter(function(Z){for(var X=0;X<te.rtcpFeedback.length;X++)if(te.rtcpFeedback[X].type===Z.type&&te.rtcpFeedback[X].parameter===Z.parameter)return!0;return!1});break}}}),R.headerExtensions.forEach(function(te){for(var ce=0;ce<O.headerExtensions.length;ce++){var H=O.headerExtensions[ce];if(te.uri===H.uri){Y.headerExtensions.push(H);break}}}),Y}function u(R,O,Y){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"]}}[O][R].indexOf(Y)}function m(R,O){var Y=R.getRemoteCandidates().find(function(j){return O.foundation===j.foundation&&O.ip===j.ip&&O.port===j.port&&O.priority===j.priority&&O.protocol===j.protocol&&O.type===j.type});return Y||R.addRemoteCandidate(O),!Y}function I(R,O){var Y=new Error(O);return Y.name=R,Y.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[R],Y}A.exports=function(R,O){function Y(Z,X){X.addTrack(Z),X.dispatchEvent(new R.MediaStreamTrackEvent("addtrack",{track:Z}))}function fe(Z,X,ue,Me){var be=new Event("track");be.track=X,be.receiver=ue,be.transceiver={receiver:ue},be.streams=Me,R.setTimeout(function(){Z._dispatchEvent("track",be)})}var te=function(Z){var X=this,ue=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach(function(be){X[be]=ue[be].bind(ue)}),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",Z=JSON.parse(JSON.stringify(Z||{})),this.usingBundle="max-bundle"===Z.bundlePolicy,"negotiate"===Z.rtcpMuxPolicy)throw I("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(Z.rtcpMuxPolicy||(Z.rtcpMuxPolicy="require"),Z.iceTransportPolicy){case"all":case"relay":break;default:Z.iceTransportPolicy="all"}switch(Z.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:Z.bundlePolicy="balanced"}if(Z.iceServers=function l(R,O){var Y=!1;return(R=JSON.parse(JSON.stringify(R))).filter(function(j){if(j&&(j.urls||j.url)){var fe=j.urls||j.url;j.url&&!j.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var te="string"==typeof fe;return te&&(fe=[fe]),fe=fe.filter(function(ce){return 0!==ce.indexOf("turn:")||-1===ce.indexOf("transport=udp")||-1!==ce.indexOf("turn:[")||Y?0===ce.indexOf("stun:")&&O>=14393&&-1===ce.indexOf("?transport=udp"):(Y=!0,!0)}),delete j.url,j.urls=te?fe[0]:fe,!!fe.length}})}(Z.iceServers||[],O),this._iceGatherers=[],Z.iceCandidatePoolSize)for(var Me=Z.iceCandidatePoolSize;Me>0;Me--)this._iceGatherers.push(new R.RTCIceGatherer({iceServers:Z.iceServers,gatherPolicy:Z.iceTransportPolicy}));else Z.iceCandidatePoolSize=0;this._config=Z,this.transceivers=[],this._sdpSessionId=E.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(te.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(te.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),te.prototype.onicecandidate=null,te.prototype.onaddstream=null,te.prototype.ontrack=null,te.prototype.onremovestream=null,te.prototype.onsignalingstatechange=null,te.prototype.oniceconnectionstatechange=null,te.prototype.onconnectionstatechange=null,te.prototype.onicegatheringstatechange=null,te.prototype.onnegotiationneeded=null,te.prototype.ondatachannel=null,te.prototype._dispatchEvent=function(Z,X){this._isClosed||(this.dispatchEvent(X),"function"==typeof this["on"+Z]&&this["on"+Z](X))},te.prototype._emitGatheringStateChange=function(){var Z=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",Z)},te.prototype.getConfiguration=function(){return this._config},te.prototype.getLocalStreams=function(){return this.localStreams},te.prototype.getRemoteStreams=function(){return this.remoteStreams},te.prototype._createTransceiver=function(Z,X){var Me={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:Z,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&this.transceivers.length>0)Me.iceTransport=this.transceivers[0].iceTransport,Me.dtlsTransport=this.transceivers[0].dtlsTransport;else{var be=this._createIceAndDtlsTransports();Me.iceTransport=be.iceTransport,Me.dtlsTransport=be.dtlsTransport}return X||this.transceivers.push(Me),Me},te.prototype.addTrack=function(Z,X){if(this._isClosed)throw I("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");if(this.transceivers.find(function(Q){return Q.track===Z}))throw I("InvalidAccessError","Track already exists.");for(var Me,be=0;be<this.transceivers.length;be++)!this.transceivers[be].track&&this.transceivers[be].kind===Z.kind&&(Me=this.transceivers[be]);return Me||(Me=this._createTransceiver(Z.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(X)&&this.localStreams.push(X),Me.track=Z,Me.stream=X,Me.rtpSender=new R.RTCRtpSender(Z,Me.dtlsTransport),Me.rtpSender},te.prototype.addStream=function(Z){var X=this;if(O>=15025)Z.getTracks().forEach(function(Me){X.addTrack(Me,Z)});else{var ue=Z.clone();Z.getTracks().forEach(function(Me,be){var Q=ue.getTracks()[be];Me.addEventListener("enabled",function(ne){Q.enabled=ne.enabled})}),ue.getTracks().forEach(function(Me){X.addTrack(Me,ue)})}},te.prototype.removeTrack=function(Z){if(this._isClosed)throw I("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(Z instanceof R.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var X=this.transceivers.find(function(be){return be.rtpSender===Z});if(!X)throw I("InvalidAccessError","Sender was not created by this connection.");var ue=X.stream;X.rtpSender.stop(),X.rtpSender=null,X.track=null,X.stream=null,-1===this.transceivers.map(function(be){return be.stream}).indexOf(ue)&&this.localStreams.indexOf(ue)>-1&&this.localStreams.splice(this.localStreams.indexOf(ue),1),this._maybeFireNegotiationNeeded()},te.prototype.removeStream=function(Z){var X=this;Z.getTracks().forEach(function(ue){var Me=X.getSenders().find(function(be){return be.track===ue});Me&&X.removeTrack(Me)})},te.prototype.getSenders=function(){return this.transceivers.filter(function(Z){return!!Z.rtpSender}).map(function(Z){return Z.rtpSender})},te.prototype.getReceivers=function(){return this.transceivers.filter(function(Z){return!!Z.rtpReceiver}).map(function(Z){return Z.rtpReceiver})},te.prototype._createIceGatherer=function(Z,X){var ue=this;if(X&&Z>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var Me=new R.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(Me,"state",{value:"new",writable:!0}),this.transceivers[Z].bufferedCandidateEvents=[],this.transceivers[Z].bufferCandidates=function(be){var Q=!be.candidate||0===Object.keys(be.candidate).length;Me.state=Q?"completed":"gathering",null!==ue.transceivers[Z].bufferedCandidateEvents&&ue.transceivers[Z].bufferedCandidateEvents.push(be)},Me.addEventListener("localcandidate",this.transceivers[Z].bufferCandidates),Me},te.prototype._gather=function(Z,X){var ue=this,Me=this.transceivers[X].iceGatherer;if(!Me.onlocalcandidate){var be=this.transceivers[X].bufferedCandidateEvents;this.transceivers[X].bufferedCandidateEvents=null,Me.removeEventListener("localcandidate",this.transceivers[X].bufferCandidates),Me.onlocalcandidate=function(Q){if(!(ue.usingBundle&&X>0)){var ne=new Event("icecandidate");ne.candidate={sdpMid:Z,sdpMLineIndex:X};var Ge=Q.candidate,ge=!Ge||0===Object.keys(Ge).length;if(ge)("new"===Me.state||"gathering"===Me.state)&&(Me.state="completed");else{"new"===Me.state&&(Me.state="gathering"),Ge.component=1,Ge.ufrag=Me.getLocalParameters().usernameFragment;var Xe=E.writeCandidate(Ge);ne.candidate=Object.assign(ne.candidate,E.parseCandidate(Xe)),ne.candidate.candidate=Xe,ne.candidate.toJSON=function(){return{candidate:ne.candidate.candidate,sdpMid:ne.candidate.sdpMid,sdpMLineIndex:ne.candidate.sdpMLineIndex,usernameFragment:ne.candidate.usernameFragment}}}var ot=E.getMediaSections(ue._localDescription.sdp);ot[ne.candidate.sdpMLineIndex]+=ge?"a=end-of-candidates\r\n":"a="+ne.candidate.candidate+"\r\n",ue._localDescription.sdp=E.getDescription(ue._localDescription.sdp)+ot.join("");var dt=ue.transceivers.every(function(xe){return xe.iceGatherer&&"completed"===xe.iceGatherer.state});"gathering"!==ue.iceGatheringState&&(ue.iceGatheringState="gathering",ue._emitGatheringStateChange()),ge||ue._dispatchEvent("icecandidate",ne),dt&&(ue._dispatchEvent("icecandidate",new Event("icecandidate")),ue.iceGatheringState="complete",ue._emitGatheringStateChange())}},R.setTimeout(function(){be.forEach(function(Q){Me.onlocalcandidate(Q)})},0)}},te.prototype._createIceAndDtlsTransports=function(){var Z=this,X=new R.RTCIceTransport(null);X.onicestatechange=function(){Z._updateIceConnectionState(),Z._updateConnectionState()};var ue=new R.RTCDtlsTransport(X);return ue.ondtlsstatechange=function(){Z._updateConnectionState()},ue.onerror=function(){Object.defineProperty(ue,"state",{value:"failed",writable:!0}),Z._updateConnectionState()},{iceTransport:X,dtlsTransport:ue}},te.prototype._disposeIceAndDtlsTransports=function(Z){var X=this.transceivers[Z].iceGatherer;X&&(delete X.onlocalcandidate,delete this.transceivers[Z].iceGatherer);var ue=this.transceivers[Z].iceTransport;ue&&(delete ue.onicestatechange,delete this.transceivers[Z].iceTransport);var Me=this.transceivers[Z].dtlsTransport;Me&&(delete Me.ondtlsstatechange,delete Me.onerror,delete this.transceivers[Z].dtlsTransport)},te.prototype._transceive=function(Z,X,ue){var Me=s(Z.localCapabilities,Z.remoteCapabilities);X&&Z.rtpSender&&(Me.encodings=Z.sendEncodingParameters,Me.rtcp={cname:E.localCName,compound:Z.rtcpParameters.compound},Z.recvEncodingParameters.length&&(Me.rtcp.ssrc=Z.recvEncodingParameters[0].ssrc),Z.rtpSender.send(Me)),ue&&Z.rtpReceiver&&Me.codecs.length>0&&("video"===Z.kind&&Z.recvEncodingParameters&&O<15019&&Z.recvEncodingParameters.forEach(function(be){delete be.rtx}),Me.encodings=Z.recvEncodingParameters.length?Z.recvEncodingParameters:[{}],Me.rtcp={compound:Z.rtcpParameters.compound},Z.rtcpParameters.cname&&(Me.rtcp.cname=Z.rtcpParameters.cname),Z.sendEncodingParameters.length&&(Me.rtcp.ssrc=Z.sendEncodingParameters[0].ssrc),Z.rtpReceiver.receive(Me))},te.prototype.setLocalDescription=function(Z){var ue,Me,X=this;if(-1===["offer","answer"].indexOf(Z.type))return Promise.reject(I("TypeError",'Unsupported type "'+Z.type+'"'));if(!u("setLocalDescription",Z.type,X.signalingState)||X._isClosed)return Promise.reject(I("InvalidStateError","Can not set local "+Z.type+" in state "+X.signalingState));if("offer"===Z.type)ue=E.splitSections(Z.sdp),Me=ue.shift(),ue.forEach(function(Q,ne){var Ge=E.parseRtpParameters(Q);X.transceivers[ne].localCapabilities=Ge}),X.transceivers.forEach(function(Q,ne){X._gather(Q.mid,ne)});else if("answer"===Z.type){ue=E.splitSections(X._remoteDescription.sdp),Me=ue.shift();var be=E.matchPrefix(Me,"a=ice-lite").length>0;ue.forEach(function(Q,ne){var Ge=X.transceivers[ne],ge=Ge.iceGatherer,Xe=Ge.iceTransport,ot=Ge.dtlsTransport,dt=Ge.localCapabilities,xe=Ge.remoteCapabilities;if(!(E.isRejected(Q)&&0===E.matchPrefix(Q,"a=bundle-only").length||Ge.rejected)){var Ue=E.getIceParameters(Q,Me),ee=E.getDtlsParameters(Q,Me);be&&(ee.role="server"),(!X.usingBundle||0===ne)&&(X._gather(Ge.mid,ne),"new"===Xe.state&&Xe.start(ge,Ue,be?"controlling":"controlled"),"new"===ot.state&&ot.start(ee));var W=s(dt,xe);X._transceive(Ge,W.codecs.length>0,!1)}})}return X._localDescription={type:Z.type,sdp:Z.sdp},X._updateSignalingState("offer"===Z.type?"have-local-offer":"stable"),Promise.resolve()},te.prototype.setRemoteDescription=function(Z){var X=this;if(-1===["offer","answer"].indexOf(Z.type))return Promise.reject(I("TypeError",'Unsupported type "'+Z.type+'"'));if(!u("setRemoteDescription",Z.type,X.signalingState)||X._isClosed)return Promise.reject(I("InvalidStateError","Can not set remote "+Z.type+" in state "+X.signalingState));var ue={};X.remoteStreams.forEach(function(Xe){ue[Xe.id]=Xe});var Me=[],be=E.splitSections(Z.sdp),Q=be.shift(),ne=E.matchPrefix(Q,"a=ice-lite").length>0,Ge=E.matchPrefix(Q,"a=group:BUNDLE ").length>0;X.usingBundle=Ge;var ge=E.matchPrefix(Q,"a=ice-options:")[0];return X.canTrickleIceCandidates=!!ge&&ge.substr(14).split(" ").indexOf("trickle")>=0,be.forEach(function(Xe,ot){var dt=E.splitLines(Xe),xe=E.getKind(Xe),Re=E.isRejected(Xe)&&0===E.matchPrefix(Xe,"a=bundle-only").length,Ue=dt[0].substr(2).split(" ")[2],ee=E.getDirection(Xe,Q),W=E.parseMsid(Xe),Pe=E.getMid(Xe)||E.generateIdentifier();if(Re||"application"===xe&&("DTLS/SCTP"===Ue||"UDP/DTLS/SCTP"===Ue))X.transceivers[ot]={mid:Pe,kind:xe,protocol:Ue,rejected:!0};else{!Re&&X.transceivers[ot]&&X.transceivers[ot].rejected&&(X.transceivers[ot]=X._createTransceiver(xe,!0));var le,oe,Le,Oe,ye,Ie,at,K,ve,pe,Qe,De=E.parseRtpParameters(Xe);Re||(pe=E.getIceParameters(Xe,Q),(Qe=E.getDtlsParameters(Xe,Q)).role="client"),at=E.parseRtpEncodingParameters(Xe);var zt=E.parseRtcpParameters(Xe),Vt=E.matchPrefix(Xe,"a=end-of-candidates",Q).length>0,de=E.matchPrefix(Xe,"a=candidate:").map(function(Zt){return E.parseCandidate(Zt)}).filter(function(Zt){return 1===Zt.component});if(("offer"===Z.type||"answer"===Z.type)&&!Re&&Ge&&ot>0&&X.transceivers[ot]&&(X._disposeIceAndDtlsTransports(ot),X.transceivers[ot].iceGatherer=X.transceivers[0].iceGatherer,X.transceivers[ot].iceTransport=X.transceivers[0].iceTransport,X.transceivers[ot].dtlsTransport=X.transceivers[0].dtlsTransport,X.transceivers[ot].rtpSender&&X.transceivers[ot].rtpSender.setTransport(X.transceivers[0].dtlsTransport),X.transceivers[ot].rtpReceiver&&X.transceivers[ot].rtpReceiver.setTransport(X.transceivers[0].dtlsTransport)),"offer"!==Z.type||Re)"answer"!==Z.type||Re||(oe=(le=X.transceivers[ot]).iceGatherer,Le=le.iceTransport,Oe=le.dtlsTransport,ye=le.rtpReceiver,Ie=le.sendEncodingParameters,K=le.localCapabilities,X.transceivers[ot].recvEncodingParameters=at,X.transceivers[ot].remoteCapabilities=De,X.transceivers[ot].rtcpParameters=zt,de.length&&"new"===Le.state&&(!ne&&!Vt||Ge&&0!==ot?de.forEach(function(Zt){m(le.iceTransport,Zt)}):Le.setRemoteCandidates(de)),(!Ge||0===ot)&&("new"===Le.state&&Le.start(oe,pe,"controlling"),"new"===Oe.state&&Oe.start(Qe)),!s(le.localCapabilities,le.remoteCapabilities).codecs.filter(function(Zt){return"rtx"===Zt.name.toLowerCase()}).length&&le.sendEncodingParameters[0].rtx&&delete le.sendEncodingParameters[0].rtx,X._transceive(le,"sendrecv"===ee||"recvonly"===ee,"sendrecv"===ee||"sendonly"===ee),!ye||"sendrecv"!==ee&&"sendonly"!==ee?delete le.rtpReceiver:(ve=ye.track,W?(ue[W.stream]||(ue[W.stream]=new R.MediaStream),Y(ve,ue[W.stream]),Me.push([ve,ye,ue[W.stream]])):(ue.default||(ue.default=new R.MediaStream),Y(ve,ue.default),Me.push([ve,ye,ue.default]))));else{(le=X.transceivers[ot]||X._createTransceiver(xe)).mid=Pe,le.iceGatherer||(le.iceGatherer=X._createIceGatherer(ot,Ge)),de.length&&"new"===le.iceTransport.state&&(!Vt||Ge&&0!==ot?de.forEach(function(Zt){m(le.iceTransport,Zt)}):le.iceTransport.setRemoteCandidates(de)),K=R.RTCRtpReceiver.getCapabilities(xe),O<15019&&(K.codecs=K.codecs.filter(function(Zt){return"rtx"!==Zt.name})),Ie=le.sendEncodingParameters||[{ssrc:1001*(2*ot+2)}];var $e,J=!1;"sendrecv"===ee||"sendonly"===ee?(J=!le.rtpReceiver,ye=le.rtpReceiver||new R.RTCRtpReceiver(le.dtlsTransport,xe),J&&(ve=ye.track,W&&"-"===W.stream||(W?(ue[W.stream]||(ue[W.stream]=new R.MediaStream,Object.defineProperty(ue[W.stream],"id",{get:function(){return W.stream}})),Object.defineProperty(ve,"id",{get:function(){return W.track}}),$e=ue[W.stream]):(ue.default||(ue.default=new R.MediaStream),$e=ue.default)),$e&&(Y(ve,$e),le.associatedRemoteMediaStreams.push($e)),Me.push([ve,ye,$e]))):le.rtpReceiver&&le.rtpReceiver.track&&(le.associatedRemoteMediaStreams.forEach(function(Zt){var kn=Zt.getTracks().find(function(Un){return Un.id===le.rtpReceiver.track.id});kn&&function j(Z,X){X.removeTrack(Z),X.dispatchEvent(new R.MediaStreamTrackEvent("removetrack",{track:Z}))}(kn,Zt)}),le.associatedRemoteMediaStreams=[]),le.localCapabilities=K,le.remoteCapabilities=De,le.rtpReceiver=ye,le.rtcpParameters=zt,le.sendEncodingParameters=Ie,le.recvEncodingParameters=at,X._transceive(X.transceivers[ot],!1,J)}}}),void 0===X._dtlsRole&&(X._dtlsRole="offer"===Z.type?"active":"passive"),X._remoteDescription={type:Z.type,sdp:Z.sdp},X._updateSignalingState("offer"===Z.type?"have-remote-offer":"stable"),Object.keys(ue).forEach(function(Xe){var ot=ue[Xe];if(ot.getTracks().length){if(-1===X.remoteStreams.indexOf(ot)){X.remoteStreams.push(ot);var dt=new Event("addstream");dt.stream=ot,R.setTimeout(function(){X._dispatchEvent("addstream",dt)})}Me.forEach(function(xe){ot.id===xe[2].id&&fe(X,xe[0],xe[1],[ot])})}}),Me.forEach(function(Xe){Xe[2]||fe(X,Xe[0],Xe[1],[])}),R.setTimeout(function(){X&&X.transceivers&&X.transceivers.forEach(function(Xe){Xe.iceTransport&&"new"===Xe.iceTransport.state&&Xe.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),Xe.iceTransport.addRemoteCandidate({}))})},4e3),Promise.resolve()},te.prototype.close=function(){this.transceivers.forEach(function(Z){Z.iceTransport&&Z.iceTransport.stop(),Z.dtlsTransport&&Z.dtlsTransport.stop(),Z.rtpSender&&Z.rtpSender.stop(),Z.rtpReceiver&&Z.rtpReceiver.stop()}),this._isClosed=!0,this._updateSignalingState("closed")},te.prototype._updateSignalingState=function(Z){this.signalingState=Z;var X=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",X)},te.prototype._maybeFireNegotiationNeeded=function(){var Z=this;"stable"!==this.signalingState||!0===this.needNegotiation||(this.needNegotiation=!0,R.setTimeout(function(){if(Z.needNegotiation){Z.needNegotiation=!1;var X=new Event("negotiationneeded");Z._dispatchEvent("negotiationneeded",X)}},0))},te.prototype._updateIceConnectionState=function(){var Z,X={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(Me){Me.iceTransport&&!Me.rejected&&X[Me.iceTransport.state]++}),Z="new",X.failed>0?Z="failed":X.checking>0?Z="checking":X.disconnected>0?Z="disconnected":X.new>0?Z="new":X.connected>0?Z="connected":X.completed>0&&(Z="completed"),Z!==this.iceConnectionState){this.iceConnectionState=Z;var ue=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",ue)}},te.prototype._updateConnectionState=function(){var Z,X={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(Me){Me.iceTransport&&Me.dtlsTransport&&!Me.rejected&&(X[Me.iceTransport.state]++,X[Me.dtlsTransport.state]++)}),X.connected+=X.completed,Z="new",X.failed>0?Z="failed":X.connecting>0?Z="connecting":X.disconnected>0?Z="disconnected":X.new>0?Z="new":X.connected>0&&(Z="connected"),Z!==this.connectionState){this.connectionState=Z;var ue=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",ue)}},te.prototype.createOffer=function(){var Z=this;if(Z._isClosed)return Promise.reject(I("InvalidStateError","Can not call createOffer after close"));var X=Z.transceivers.filter(function(ne){return"audio"===ne.kind}).length,ue=Z.transceivers.filter(function(ne){return"video"===ne.kind}).length,Me=arguments[0];if(Me){if(Me.mandatory||Me.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==Me.offerToReceiveAudio&&(X=!0===Me.offerToReceiveAudio?1:!1===Me.offerToReceiveAudio?0:Me.offerToReceiveAudio),void 0!==Me.offerToReceiveVideo&&(ue=!0===Me.offerToReceiveVideo?1:!1===Me.offerToReceiveVideo?0:Me.offerToReceiveVideo)}for(Z.transceivers.forEach(function(ne){"audio"===ne.kind?--X<0&&(ne.wantReceive=!1):"video"===ne.kind&&--ue<0&&(ne.wantReceive=!1)});X>0||ue>0;)X>0&&(Z._createTransceiver("audio"),X--),ue>0&&(Z._createTransceiver("video"),ue--);var be=E.writeSessionBoilerplate(Z._sdpSessionId,Z._sdpSessionVersion++);Z.transceivers.forEach(function(ne,Ge){var ge=ne.track,Xe=ne.kind,ot=ne.mid||E.generateIdentifier();ne.mid=ot,ne.iceGatherer||(ne.iceGatherer=Z._createIceGatherer(Ge,Z.usingBundle));var dt=R.RTCRtpSender.getCapabilities(Xe);O<15019&&(dt.codecs=dt.codecs.filter(function(Re){return"rtx"!==Re.name})),dt.codecs.forEach(function(Re){"H264"===Re.name&&void 0===Re.parameters["level-asymmetry-allowed"]&&(Re.parameters["level-asymmetry-allowed"]="1"),ne.remoteCapabilities&&ne.remoteCapabilities.codecs&&ne.remoteCapabilities.codecs.forEach(function(Ue){Re.name.toLowerCase()===Ue.name.toLowerCase()&&Re.clockRate===Ue.clockRate&&(Re.preferredPayloadType=Ue.payloadType)})}),dt.headerExtensions.forEach(function(Re){(ne.remoteCapabilities&&ne.remoteCapabilities.headerExtensions||[]).forEach(function(ee){Re.uri===ee.uri&&(Re.id=ee.id)})});var xe=ne.sendEncodingParameters||[{ssrc:1001*(2*Ge+1)}];ge&&O>=15019&&"video"===Xe&&!xe[0].rtx&&(xe[0].rtx={ssrc:xe[0].ssrc+1}),ne.wantReceive&&(ne.rtpReceiver=new R.RTCRtpReceiver(ne.dtlsTransport,Xe)),ne.localCapabilities=dt,ne.sendEncodingParameters=xe}),"max-compat"!==Z._config.bundlePolicy&&(be+="a=group:BUNDLE "+Z.transceivers.map(function(ne){return ne.mid}).join(" ")+"\r\n"),be+="a=ice-options:trickle\r\n",Z.transceivers.forEach(function(ne,Ge){be+=S(ne,ne.localCapabilities,"offer",ne.stream,Z._dtlsRole),be+="a=rtcp-rsize\r\n",ne.iceGatherer&&"new"!==Z.iceGatheringState&&(0===Ge||!Z.usingBundle)&&(ne.iceGatherer.getLocalCandidates().forEach(function(ge){ge.component=1,be+="a="+E.writeCandidate(ge)+"\r\n"}),"completed"===ne.iceGatherer.state&&(be+="a=end-of-candidates\r\n"))});var Q=new R.RTCSessionDescription({type:"offer",sdp:be});return Promise.resolve(Q)},te.prototype.createAnswer=function(){var Z=this;if(Z._isClosed)return Promise.reject(I("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==Z.signalingState&&"have-local-pranswer"!==Z.signalingState)return Promise.reject(I("InvalidStateError","Can not call createAnswer in signalingState "+Z.signalingState));var X=E.writeSessionBoilerplate(Z._sdpSessionId,Z._sdpSessionVersion++);Z.usingBundle&&(X+="a=group:BUNDLE "+Z.transceivers.map(function(be){return be.mid}).join(" ")+"\r\n"),X+="a=ice-options:trickle\r\n";var ue=E.getMediaSections(Z._remoteDescription.sdp).length;Z.transceivers.forEach(function(be,Q){if(!(Q+1>ue)){if(be.rejected)return"application"===be.kind?X+="DTLS/SCTP"===be.protocol?"m=application 0 DTLS/SCTP 5000\r\n":"m=application 0 "+be.protocol+" webrtc-datachannel\r\n":"audio"===be.kind?X+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===be.kind&&(X+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(X+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+be.mid+"\r\n");var ne;be.stream&&("audio"===be.kind?ne=be.stream.getAudioTracks()[0]:"video"===be.kind&&(ne=be.stream.getVideoTracks()[0]),ne&&O>=15019&&"video"===be.kind&&!be.sendEncodingParameters[0].rtx&&(be.sendEncodingParameters[0].rtx={ssrc:be.sendEncodingParameters[0].ssrc+1}));var Ge=s(be.localCapabilities,be.remoteCapabilities);!Ge.codecs.filter(function(Xe){return"rtx"===Xe.name.toLowerCase()}).length&&be.sendEncodingParameters[0].rtx&&delete be.sendEncodingParameters[0].rtx,X+=S(be,Ge,"answer",be.stream,Z._dtlsRole),be.rtcpParameters&&be.rtcpParameters.reducedSize&&(X+="a=rtcp-rsize\r\n")}});var Me=new R.RTCSessionDescription({type:"answer",sdp:X});return Promise.resolve(Me)},te.prototype.addIceCandidate=function(Z){var ue,X=this;return Z&&void 0===Z.sdpMLineIndex&&!Z.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise(function(Me,be){if(!X._remoteDescription)return be(I("InvalidStateError","Can not add ICE candidate without a remote description"));if(Z&&""!==Z.candidate){var ne=Z.sdpMLineIndex;if(Z.sdpMid)for(var Ge=0;Ge<X.transceivers.length;Ge++)if(X.transceivers[Ge].mid===Z.sdpMid){ne=Ge;break}var ge=X.transceivers[ne];if(!ge)return be(I("OperationError","Can not add ICE candidate"));if(ge.rejected)return Me();var Xe=Object.keys(Z.candidate).length>0?E.parseCandidate(Z.candidate):{};if("tcp"===Xe.protocol&&(0===Xe.port||9===Xe.port)||Xe.component&&1!==Xe.component)return Me();if((0===ne||ne>0&&ge.iceTransport!==X.transceivers[0].iceTransport)&&!m(ge.iceTransport,Xe))return be(I("OperationError","Can not add ICE candidate"));var ot=Z.candidate.trim();0===ot.indexOf("a=")&&(ot=ot.substr(2)),(ue=E.getMediaSections(X._remoteDescription.sdp))[ne]+="a="+(Xe.type?ot:"end-of-candidates")+"\r\n",X._remoteDescription.sdp=E.getDescription(X._remoteDescription.sdp)+ue.join("")}else for(var Q=0;Q<X.transceivers.length&&(X.transceivers[Q].rejected||(X.transceivers[Q].iceTransport.addRemoteCandidate({}),(ue=E.getMediaSections(X._remoteDescription.sdp))[Q]+="a=end-of-candidates\r\n",X._remoteDescription.sdp=E.getDescription(X._remoteDescription.sdp)+ue.join(""),!X.usingBundle));Q++);Me()})},te.prototype.getStats=function(Z){if(Z&&Z instanceof R.MediaStreamTrack){var X=null;if(this.transceivers.forEach(function(Me){Me.rtpSender&&Me.rtpSender.track===Z?X=Me.rtpSender:Me.rtpReceiver&&Me.rtpReceiver.track===Z&&(X=Me.rtpReceiver)}),!X)throw I("InvalidAccessError","Invalid selector.");return X.getStats()}var ue=[];return this.transceivers.forEach(function(Me){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(be){Me[be]&&ue.push(Me[be].getStats())})}),Promise.all(ue).then(function(Me){var be=new Map;return Me.forEach(function(Q){Q.forEach(function(ne){be.set(ne.id,ne)})}),be})},["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"].forEach(function(Z){var X=R[Z];if(X&&X.prototype&&X.prototype.getStats){var ue=X.prototype.getStats;X.prototype.getStats=function(){return ue.apply(this).then(function(Me){var be=new Map;return Object.keys(Me).forEach(function(Q){Me[Q].type=function y(R){return{inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[R.type]||R.type}(Me[Q]),be.set(Q,Me[Q])}),be})}}});var H=["createOffer","createAnswer"];return H.forEach(function(Z){var X=te.prototype[Z];te.prototype[Z]=function(){var ue=arguments;return"function"==typeof ue[0]||"function"==typeof ue[1]?X.apply(this,[arguments[2]]).then(function(Me){"function"==typeof ue[0]&&ue[0].apply(null,[Me])},function(Me){"function"==typeof ue[1]&&ue[1].apply(null,[Me])}):X.apply(this,arguments)}}),(H=["setLocalDescription","setRemoteDescription","addIceCandidate"]).forEach(function(Z){var X=te.prototype[Z];te.prototype[Z]=function(){var ue=arguments;return"function"==typeof ue[1]||"function"==typeof ue[2]?X.apply(this,arguments).then(function(){"function"==typeof ue[1]&&ue[1].apply(null)},function(Me){"function"==typeof ue[2]&&ue[2].apply(null,[Me])}):X.apply(this,arguments)}}),["getStats"].forEach(function(Z){var X=te.prototype[Z];te.prototype[Z]=function(){var ue=arguments;return"function"==typeof ue[1]?X.apply(this,arguments).then(function(){"function"==typeof ue[1]&&ue[1].apply(null)}):X.apply(this,arguments)}}),te}},985:
/*!*********************************!*\
                !*** ./node_modules/sdp/sdp.js ***!
                \*********************************/A=>{"use strict";var M={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}};M.localCName=M.generateIdentifier(),M.splitLines=function(T){return T.trim().split("\n").map(function(E){return E.trim()})},M.splitSections=function(T){return T.split("\nm=").map(function(y,S){return(S>0?"m="+y:y).trim()+"\r\n"})},M.getDescription=function(T){var E=M.splitSections(T);return E&&E[0]},M.getMediaSections=function(T){var E=M.splitSections(T);return E.shift(),E},M.matchPrefix=function(T,E){return M.splitLines(T).filter(function(y){return 0===y.indexOf(E)})},M.parseCandidate=function(T){for(var E,y={foundation:(E=0===T.indexOf("a=candidate:")?T.substring(12).split(" "):T.substring(10).split(" "))[0],component:parseInt(E[1],10),protocol:E[2].toLowerCase(),priority:parseInt(E[3],10),ip:E[4],address:E[4],port:parseInt(E[5],10),type:E[7]},S=8;S<E.length;S+=2)switch(E[S]){case"raddr":y.relatedAddress=E[S+1];break;case"rport":y.relatedPort=parseInt(E[S+1],10);break;case"tcptype":y.tcpType=E[S+1];break;case"ufrag":y.ufrag=E[S+1],y.usernameFragment=E[S+1];break;default:y[E[S]]=E[S+1]}return y},M.writeCandidate=function(T){var E=[];E.push(T.foundation),E.push(T.component),E.push(T.protocol.toUpperCase()),E.push(T.priority),E.push(T.address||T.ip),E.push(T.port);var y=T.type;return E.push("typ"),E.push(y),"host"!==y&&T.relatedAddress&&T.relatedPort&&(E.push("raddr"),E.push(T.relatedAddress),E.push("rport"),E.push(T.relatedPort)),T.tcpType&&"tcp"===T.protocol.toLowerCase()&&(E.push("tcptype"),E.push(T.tcpType)),(T.usernameFragment||T.ufrag)&&(E.push("ufrag"),E.push(T.usernameFragment||T.ufrag)),"candidate:"+E.join(" ")},M.parseIceOptions=function(T){return T.substr(14).split(" ")},M.parseRtpMap=function(T){var E=T.substr(9).split(" "),y={payloadType:parseInt(E.shift(),10)};return E=E[0].split("/"),y.name=E[0],y.clockRate=parseInt(E[1],10),y.channels=3===E.length?parseInt(E[2],10):1,y.numChannels=y.channels,y},M.writeRtpMap=function(T){var E=T.payloadType;void 0!==T.preferredPayloadType&&(E=T.preferredPayloadType);var y=T.channels||T.numChannels||1;return"a=rtpmap:"+E+" "+T.name+"/"+T.clockRate+(1!==y?"/"+y:"")+"\r\n"},M.parseExtmap=function(T){var E=T.substr(9).split(" ");return{id:parseInt(E[0],10),direction:E[0].indexOf("/")>0?E[0].split("/")[1]:"sendrecv",uri:E[1]}},M.writeExtmap=function(T){return"a=extmap:"+(T.id||T.preferredId)+(T.direction&&"sendrecv"!==T.direction?"/"+T.direction:"")+" "+T.uri+"\r\n"},M.parseFmtp=function(T){for(var y,E={},S=T.substr(T.indexOf(" ")+1).split(";"),l=0;l<S.length;l++)E[(y=S[l].trim().split("="))[0].trim()]=y[1];return E},M.writeFmtp=function(T){var E="",y=T.payloadType;if(void 0!==T.preferredPayloadType&&(y=T.preferredPayloadType),T.parameters&&Object.keys(T.parameters).length){var S=[];Object.keys(T.parameters).forEach(function(l){S.push(T.parameters[l]?l+"="+T.parameters[l]:l)}),E+="a=fmtp:"+y+" "+S.join(";")+"\r\n"}return E},M.parseRtcpFb=function(T){var E=T.substr(T.indexOf(" ")+1).split(" ");return{type:E.shift(),parameter:E.join(" ")}},M.writeRtcpFb=function(T){var E="",y=T.payloadType;return void 0!==T.preferredPayloadType&&(y=T.preferredPayloadType),T.rtcpFeedback&&T.rtcpFeedback.length&&T.rtcpFeedback.forEach(function(S){E+="a=rtcp-fb:"+y+" "+S.type+(S.parameter&&S.parameter.length?" "+S.parameter:"")+"\r\n"}),E},M.parseSsrcMedia=function(T){var E=T.indexOf(" "),y={ssrc:parseInt(T.substr(7,E-7),10)},S=T.indexOf(":",E);return S>-1?(y.attribute=T.substr(E+1,S-E-1),y.value=T.substr(S+1)):y.attribute=T.substr(E+1),y},M.parseSsrcGroup=function(T){var E=T.substr(13).split(" ");return{semantics:E.shift(),ssrcs:E.map(function(y){return parseInt(y,10)})}},M.getMid=function(T){var E=M.matchPrefix(T,"a=mid:")[0];if(E)return E.substr(6)},M.parseFingerprint=function(T){var E=T.substr(14).split(" ");return{algorithm:E[0].toLowerCase(),value:E[1]}},M.getDtlsParameters=function(T,E){return{role:"auto",fingerprints:M.matchPrefix(T+E,"a=fingerprint:").map(M.parseFingerprint)}},M.writeDtlsParameters=function(T,E){var y="a=setup:"+E+"\r\n";return T.fingerprints.forEach(function(S){y+="a=fingerprint:"+S.algorithm+" "+S.value+"\r\n"}),y},M.parseCryptoLine=function(T){var E=T.substr(9).split(" ");return{tag:parseInt(E[0],10),cryptoSuite:E[1],keyParams:E[2],sessionParams:E.slice(3)}},M.writeCryptoLine=function(T){return"a=crypto:"+T.tag+" "+T.cryptoSuite+" "+("object"==typeof T.keyParams?M.writeCryptoKeyParams(T.keyParams):T.keyParams)+(T.sessionParams?" "+T.sessionParams.join(" "):"")+"\r\n"},M.parseCryptoKeyParams=function(T){if(0!==T.indexOf("inline:"))return null;var E=T.substr(7).split("|");return{keyMethod:"inline",keySalt:E[0],lifeTime:E[1],mkiValue:E[2]?E[2].split(":")[0]:void 0,mkiLength:E[2]?E[2].split(":")[1]:void 0}},M.writeCryptoKeyParams=function(T){return T.keyMethod+":"+T.keySalt+(T.lifeTime?"|"+T.lifeTime:"")+(T.mkiValue&&T.mkiLength?"|"+T.mkiValue+":"+T.mkiLength:"")},M.getCryptoParameters=function(T,E){return M.matchPrefix(T+E,"a=crypto:").map(M.parseCryptoLine)},M.getIceParameters=function(T,E){var y=M.matchPrefix(T+E,"a=ice-ufrag:")[0],S=M.matchPrefix(T+E,"a=ice-pwd:")[0];return y&&S?{usernameFragment:y.substr(12),password:S.substr(10)}:null},M.writeIceParameters=function(T){return"a=ice-ufrag:"+T.usernameFragment+"\r\na=ice-pwd:"+T.password+"\r\n"},M.parseRtpParameters=function(T){for(var E={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},S=M.splitLines(T)[0].split(" "),l=3;l<S.length;l++){var s=S[l],u=M.matchPrefix(T,"a=rtpmap:"+s+" ")[0];if(u){var m=M.parseRtpMap(u),I=M.matchPrefix(T,"a=fmtp:"+s+" ");switch(m.parameters=I.length?M.parseFmtp(I[0]):{},m.rtcpFeedback=M.matchPrefix(T,"a=rtcp-fb:"+s+" ").map(M.parseRtcpFb),E.codecs.push(m),m.name.toUpperCase()){case"RED":case"ULPFEC":E.fecMechanisms.push(m.name.toUpperCase())}}}return M.matchPrefix(T,"a=extmap:").forEach(function(R){E.headerExtensions.push(M.parseExtmap(R))}),E},M.writeRtpDescription=function(T,E){var y="";y+="m="+T+" ",y+=E.codecs.length>0?"9":"0",y+=" UDP/TLS/RTP/SAVPF ",y+=E.codecs.map(function(l){return void 0!==l.preferredPayloadType?l.preferredPayloadType:l.payloadType}).join(" ")+"\r\n",y+="c=IN IP4 0.0.0.0\r\n",y+="a=rtcp:9 IN IP4 0.0.0.0\r\n",E.codecs.forEach(function(l){y+=M.writeRtpMap(l),y+=M.writeFmtp(l),y+=M.writeRtcpFb(l)});var S=0;return E.codecs.forEach(function(l){l.maxptime>S&&(S=l.maxptime)}),S>0&&(y+="a=maxptime:"+S+"\r\n"),y+="a=rtcp-mux\r\n",E.headerExtensions&&E.headerExtensions.forEach(function(l){y+=M.writeExtmap(l)}),y},M.parseRtpEncodingParameters=function(T){var m,E=[],y=M.parseRtpParameters(T),S=-1!==y.fecMechanisms.indexOf("RED"),l=-1!==y.fecMechanisms.indexOf("ULPFEC"),s=M.matchPrefix(T,"a=ssrc:").map(function(O){return M.parseSsrcMedia(O)}).filter(function(O){return"cname"===O.attribute}),u=s.length>0&&s[0].ssrc,I=M.matchPrefix(T,"a=ssrc-group:FID").map(function(O){return O.substr(17).split(" ").map(function(j){return parseInt(j,10)})});I.length>0&&I[0].length>1&&I[0][0]===u&&(m=I[0][1]),y.codecs.forEach(function(O){if("RTX"===O.name.toUpperCase()&&O.parameters.apt){var Y={ssrc:u,codecPayloadType:parseInt(O.parameters.apt,10)};u&&m&&(Y.rtx={ssrc:m}),E.push(Y),S&&((Y=JSON.parse(JSON.stringify(Y))).fec={ssrc:u,mechanism:l?"red+ulpfec":"red"},E.push(Y))}}),0===E.length&&u&&E.push({ssrc:u});var R=M.matchPrefix(T,"b=");return R.length&&(R=0===R[0].indexOf("b=TIAS:")?parseInt(R[0].substr(7),10):0===R[0].indexOf("b=AS:")?1e3*parseInt(R[0].substr(5),10)*.95-16e3:void 0,E.forEach(function(O){O.maxBitrate=R})),E},M.parseRtcpParameters=function(T){var E={},y=M.matchPrefix(T,"a=ssrc:").map(function(s){return M.parseSsrcMedia(s)}).filter(function(s){return"cname"===s.attribute})[0];y&&(E.cname=y.value,E.ssrc=y.ssrc);var S=M.matchPrefix(T,"a=rtcp-rsize");E.reducedSize=S.length>0,E.compound=0===S.length;var l=M.matchPrefix(T,"a=rtcp-mux");return E.mux=l.length>0,E},M.parseMsid=function(T){var E,y=M.matchPrefix(T,"a=msid:");if(1===y.length)return{stream:(E=y[0].substr(7).split(" "))[0],track:E[1]};var S=M.matchPrefix(T,"a=ssrc:").map(function(l){return M.parseSsrcMedia(l)}).filter(function(l){return"msid"===l.attribute});return S.length>0?{stream:(E=S[0].value.split(" "))[0],track:E[1]}:void 0},M.parseSctpDescription=function(T){var S,E=M.parseMLine(T),y=M.matchPrefix(T,"a=max-message-size:");y.length>0&&(S=parseInt(y[0].substr(19),10)),isNaN(S)&&(S=65536);var l=M.matchPrefix(T,"a=sctp-port:");if(l.length>0)return{port:parseInt(l[0].substr(12),10),protocol:E.fmt,maxMessageSize:S};if(M.matchPrefix(T,"a=sctpmap:").length>0){var u=M.matchPrefix(T,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(u[0],10),protocol:u[1],maxMessageSize:S}}},M.writeSctpDescription=function(T,E){var y=[];return y="DTLS/SCTP"!==T.protocol?["m="+T.kind+" 9 "+T.protocol+" "+E.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+E.port+"\r\n"]:["m="+T.kind+" 9 "+T.protocol+" "+E.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+E.port+" "+E.protocol+" 65535\r\n"],void 0!==E.maxMessageSize&&y.push("a=max-message-size:"+E.maxMessageSize+"\r\n"),y.join("")},M.generateSessionId=function(){return Math.random().toString().substr(2,21)},M.writeSessionBoilerplate=function(T,E,y){var l=void 0!==E?E:2;return"v=0\r\no="+(y||"thisisadapterortc")+" "+(T||M.generateSessionId())+" "+l+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},M.writeMediaSection=function(T,E,y,S){var l=M.writeRtpDescription(T.kind,E);if(l+=M.writeIceParameters(T.iceGatherer.getLocalParameters()),l+=M.writeDtlsParameters(T.dtlsTransport.getLocalParameters(),"offer"===y?"actpass":"active"),l+="a=mid:"+T.mid+"\r\n",l+=T.direction?"a="+T.direction+"\r\n":T.rtpSender&&T.rtpReceiver?"a=sendrecv\r\n":T.rtpSender?"a=sendonly\r\n":T.rtpReceiver?"a=recvonly\r\n":"a=inactive\r\n",T.rtpSender){var s="msid:"+S.id+" "+T.rtpSender.track.id+"\r\n";l+="a="+s,l+="a=ssrc:"+T.sendEncodingParameters[0].ssrc+" "+s,T.sendEncodingParameters[0].rtx&&(l+="a=ssrc:"+T.sendEncodingParameters[0].rtx.ssrc+" "+s,l+="a=ssrc-group:FID "+T.sendEncodingParameters[0].ssrc+" "+T.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return l+="a=ssrc:"+T.sendEncodingParameters[0].ssrc+" cname:"+M.localCName+"\r\n",T.rtpSender&&T.sendEncodingParameters[0].rtx&&(l+="a=ssrc:"+T.sendEncodingParameters[0].rtx.ssrc+" cname:"+M.localCName+"\r\n"),l},M.getDirection=function(T,E){for(var y=M.splitLines(T),S=0;S<y.length;S++)switch(y[S]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return y[S].substr(2)}return E?M.getDirection(E):"sendrecv"},M.getKind=function(T){return M.splitLines(T)[0].split(" ")[0].substr(2)},M.isRejected=function(T){return"0"===T.split(" ",2)[1]},M.parseMLine=function(T){var y=M.splitLines(T)[0].substr(2).split(" ");return{kind:y[0],port:parseInt(y[1],10),protocol:y[2],fmt:y.slice(3).join(" ")}},M.parseOLine=function(T){var y=M.matchPrefix(T,"o=")[0].substr(2).split(" ");return{username:y[0],sessionId:y[1],sessionVersion:parseInt(y[2],10),netType:y[3],addressType:y[4],address:y[5]}},M.isValidSDP=function(T){if("string"!=typeof T||0===T.length)return!1;for(var E=M.splitLines(T),y=0;y<E.length;y++)if(E[y].length<2||"="!==E[y].charAt(1))return!1;return!0},A.exports=M},778:
/*!***********************************!*\
                !*** external "@gamestream/core" ***!
                \***********************************/A=>{"use strict";A.exports=c(92950)},754:
/*!*************************************!*\
                !*** external "@opentelemetry/api" ***!
                \*************************************/A=>{"use strict";A.exports=c(29184)}},v={};function h(A){var M=v[A];if(void 0!==M)return M.exports;var T=v[A]={exports:{}};return n[A](T,T.exports,h),T.exports}h.n=A=>{var M=A&&A.__esModule?()=>A.default:()=>A;return h.d(M,{a:M}),M},h.d=(A,M)=>{for(var T in M)h.o(M,T)&&!h.o(A,T)&&Object.defineProperty(A,T,{enumerable:!0,get:M[T]})},h.o=(A,M)=>Object.prototype.hasOwnProperty.call(A,M),h.r=A=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})};var f={};(()=>{"use strict";h.r(f),h.d(f,{AdAction:()=>Si,AdState:()=>fi,AddPlatformTelemetry:()=>Cn,AppLaunchMode:()=>br,AppLevelProtocol:()=>xi,AudioFormat:()=>_o,AuthType:()=>En,BitDepth:()=>Yi,BrowserFeature:()=>ea,BrowserName:()=>sn,CHANGELIST:()=>Mi,CLIENT_IDENTIFICATION:()=>Gi,CLIENT_VERSION:()=>Ti,CalculateDataUsage:()=>Qn,CalculateMaxBitrateKbps:()=>Oi,ChooseStreamingResolution:()=>Ct,ChooseStreamingSettings:()=>it,ClientHeaderBrowserType:()=>Bs,ClientHeaderDeviceType:()=>Oa,ClientHeaderOSType:()=>hl,ClientStreamer:()=>zo,ClientType:()=>Qi,ConfigureGridServerSettings:()=>Ar,ConfigureRagnarokSettings:()=>In,CursorType:()=>Ls,DeviceModel:()=>Ci,DeviceOS:()=>Cs,DeviceType:()=>ss,DeviceVendor:()=>Wi,DynamicStreamingMode:()=>wa,EVENTS:()=>Ai,GS_EVENTS:()=>as,GetDeviceCapabilities:()=>bt,GetSupportedAudioChannelCount:()=>We,GridApp:()=>ht,GridServer:()=>ps,GridServerSettings:()=>ao,GsErrorCode:()=>Lo,HidType:()=>sa,HotkeyModifier:()=>ln,InitializeUtils:()=>Et,InputType:()=>Ba,IsFeatureSupported:()=>Wn,LogImpl:()=>Fi,LogLevel:()=>li,MediaTrackKind:()=>To,MicState:()=>_s,NetworkType:()=>Pn,NskTelemetry:()=>cs,PassThruServer:()=>Hs,PayloadBrowserType:()=>Qo,PayloadDeviceType:()=>xs,PayloadOSType:()=>ts,PlatformName:()=>Gn,Protocol:()=>Fn,RErrorCode:()=>fa,RNotificationCode:()=>Wr,SESSIONMODIFY_ACTION:()=>Tr,STREAMING_STATE:()=>Mr,ScErrorCode:()=>uo,SdrHdrMode:()=>Fr,SessionControlTelemetry:()=>Co,SessionProgressState:()=>Dr,SessionState:()=>vr,StreamStopReason:()=>po,StreamWarningType:()=>ta,StreamingProfilePreset:()=>bi,StreamingState:()=>zs,TrackType:()=>Hi,Usage:()=>dn,VideoCodecType:()=>Ml,VirtualButton:()=>wt,VirtualGamepadHandler:()=>rn,VsyncType:()=>Qr,configureRagnarokSettings:()=>_r,configureSessionControlSettings:()=>Nr,createNskStreamClient:()=>Pa,createSessionControl:()=>er,defaultInputConfigFlags:()=>Mn,estimateDataUsage:()=>Bo,getDeviceCapabilities:()=>ca,getNetworkTypeDetector:()=>$s,getPlatformDetails:()=>$n,getRecommendedBitrate:()=>Ys,getResumableSession:()=>Ao,getStreamStartParameters:()=>ho,getStreamerType:()=>js,getSupportedCodecs:()=>gt,isCancelCode:()=>Oo,isFeatureSupported:()=>Zo,isResumableSessionState:()=>Hr,performHttpRequest:()=>Tn,registerLogCallback:()=>Pi,serializeDeviceCapabilities:()=>Js,shouldDefaultEnableMic:()=>vs,translatePlatformDetailsForClientHeader:()=>Er,translatePlatformDetailsForPayload:()=>qs,updateSessionParameters:()=>ro});var A={};h.r(A),h.d(A,{fixNegotiationNeeded:()=>ot,shimAddTrackRemoveTrack:()=>ge,shimAddTrackRemoveTrackWithNative:()=>Ge,shimGetDisplayMedia:()=>X,shimGetSendersWithDtmf:()=>be,shimGetStats:()=>Q,shimGetUserMedia:()=>Z,shimMediaStream:()=>ue,shimOnTrack:()=>Me,shimPeerConnection:()=>Xe,shimSenderReceiverGetStats:()=>ne});var M={};h.r(M),h.d(M,{shimGetDisplayMedia:()=>ee,shimGetUserMedia:()=>Ue,shimPeerConnection:()=>W,shimReplaceTrack:()=>Pe});var T={};h.r(T),h.d(T,{shimAddTransceiver:()=>ve,shimCreateAnswer:()=>Qe,shimCreateOffer:()=>pe,shimGetDisplayMedia:()=>oe,shimGetParameters:()=>De,shimGetUserMedia:()=>le,shimOnTrack:()=>Le,shimPeerConnection:()=>Oe,shimRTCDataChannel:()=>K,shimReceiverGetStats:()=>Ie,shimRemoveStream:()=>at,shimSenderGetStats:()=>ye});var E={};h.r(E),h.d(E,{shimAudioContext:()=>kn,shimCallbacksAPI:()=>de,shimConstraints:()=>$e,shimCreateOfferLegacy:()=>Zt,shimGetUserMedia:()=>J,shimLocalStreamsAPI:()=>zt,shimRTCIceServerUrls:()=>st,shimRemoteStreamsAPI:()=>Vt,shimTrackEventTransceiver:()=>Gt});var y={};h.r(y),h.d(y,{removeAllowExtmapMixed:()=>Bn,shimConnectionState:()=>_i,shimMaxMessageSize:()=>mi,shimRTCIceCandidate:()=>qe,shimSendThrowTypeError:()=>Bi});let S=!0,l=!0;function s(Kt,Zn,Ii){const ei=Kt.match(Zn);return ei&&ei.length>=Ii&&parseInt(ei[Ii],10)}function u(Kt,Zn,Ii){if(!Kt.RTCPeerConnection)return;const ei=Kt.RTCPeerConnection.prototype,di=ei.addEventListener;ei.addEventListener=function(Ri,Nt){if(Ri!==Zn)return di.apply(this,arguments);const Dt=Xt=>{const St=Ii(Xt);St&&(Nt.handleEvent?Nt.handleEvent(St):Nt(St))};return this._eventMap=this._eventMap||{},this._eventMap[Zn]||(this._eventMap[Zn]=new Map),this._eventMap[Zn].set(Nt,Dt),di.apply(this,[Ri,Dt])};const wi=ei.removeEventListener;ei.removeEventListener=function(Ri,Nt){if(Ri!==Zn||!this._eventMap||!this._eventMap[Zn])return wi.apply(this,arguments);if(!this._eventMap[Zn].has(Nt))return wi.apply(this,arguments);const Dt=this._eventMap[Zn].get(Nt);return this._eventMap[Zn].delete(Nt),0===this._eventMap[Zn].size&&delete this._eventMap[Zn],0===Object.keys(this._eventMap).length&&delete this._eventMap,wi.apply(this,[Ri,Dt])},Object.defineProperty(ei,"on"+Zn,{get(){return this["_on"+Zn]},set(Ri){this["_on"+Zn]&&(this.removeEventListener(Zn,this["_on"+Zn]),delete this["_on"+Zn]),Ri&&this.addEventListener(Zn,this["_on"+Zn]=Ri)},enumerable:!0,configurable:!0})}function m(Kt){return"boolean"!=typeof Kt?new Error("Argument type: "+typeof Kt+". Please use a boolean."):(S=Kt,Kt?"adapter.js logging disabled":"adapter.js logging enabled")}function I(Kt){return"boolean"!=typeof Kt?new Error("Argument type: "+typeof Kt+". Please use a boolean."):(l=!Kt,"adapter.js deprecation warnings "+(Kt?"disabled":"enabled"))}function R(){if("object"==typeof window){if(S)return;typeof console<"u"&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function O(Kt,Zn){l&&console.warn(Kt+" is deprecated, please use "+Zn+" instead.")}function Y(Kt){const{navigator:Zn}=Kt,Ii={browser:null,version:null};if(typeof Kt>"u"||!Kt.navigator)return Ii.browser="Not a browser.",Ii;if(Zn.mozGetUserMedia)Ii.browser="firefox",Ii.version=s(Zn.userAgent,/Firefox\/(\d+)\./,1);else if(Zn.webkitGetUserMedia||!1===Kt.isSecureContext&&Kt.webkitRTCPeerConnection&&!Kt.RTCIceGatherer)Ii.browser="chrome",Ii.version=s(Zn.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(Zn.mediaDevices&&Zn.userAgent.match(/Edge\/(\d+).(\d+)$/))Ii.browser="edge",Ii.version=s(Zn.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!Kt.RTCPeerConnection||!Zn.userAgent.match(/AppleWebKit\/(\d+)\./))return Ii.browser="Not a supported browser.",Ii;Ii.browser="safari",Ii.version=s(Zn.userAgent,/AppleWebKit\/(\d+)\./,1),Ii.supportsUnifiedPlan=Kt.RTCRtpTransceiver&&"currentDirection"in Kt.RTCRtpTransceiver.prototype}return Ii}function j(Kt){return"[object Object]"===Object.prototype.toString.call(Kt)}function fe(Kt){return j(Kt)?Object.keys(Kt).reduce(function(Zn,Ii){const ei=j(Kt[Ii]),di=ei?fe(Kt[Ii]):Kt[Ii],wi=ei&&!Object.keys(di).length;return void 0===di||wi?Zn:Object.assign(Zn,{[Ii]:di})},{}):Kt}function te(Kt,Zn,Ii){!Zn||Ii.has(Zn.id)||(Ii.set(Zn.id,Zn),Object.keys(Zn).forEach(ei=>{ei.endsWith("Id")?te(Kt,Kt.get(Zn[ei]),Ii):ei.endsWith("Ids")&&Zn[ei].forEach(di=>{te(Kt,Kt.get(di),Ii)})}))}function ce(Kt,Zn,Ii){const ei=Ii?"outbound-rtp":"inbound-rtp",di=new Map;if(null===Zn)return di;const wi=[];return Kt.forEach(Ri=>{"track"===Ri.type&&Ri.trackIdentifier===Zn.id&&wi.push(Ri)}),wi.forEach(Ri=>{Kt.forEach(Nt=>{Nt.type===ei&&Nt.trackId===Ri.id&&te(Kt,Nt,di)})}),di}const H=R;function Z(Kt){const Zn=Kt&&Kt.navigator;if(!Zn.mediaDevices)return;const Ii=Y(Kt),ei=function(Nt){if("object"!=typeof Nt||Nt.mandatory||Nt.optional)return Nt;const Dt={};return Object.keys(Nt).forEach(Xt=>{if("require"===Xt||"advanced"===Xt||"mediaSource"===Xt)return;const St="object"==typeof Nt[Xt]?Nt[Xt]:{ideal:Nt[Xt]};void 0!==St.exact&&"number"==typeof St.exact&&(St.min=St.max=St.exact);const Sn=function(Jn,oi){return Jn?Jn+oi.charAt(0).toUpperCase()+oi.slice(1):"deviceId"===oi?"sourceId":oi};if(void 0!==St.ideal){Dt.optional=Dt.optional||[];let Jn={};"number"==typeof St.ideal?(Jn[Sn("min",Xt)]=St.ideal,Dt.optional.push(Jn),Jn={},Jn[Sn("max",Xt)]=St.ideal,Dt.optional.push(Jn)):(Jn[Sn("",Xt)]=St.ideal,Dt.optional.push(Jn))}void 0!==St.exact&&"number"!=typeof St.exact?(Dt.mandatory=Dt.mandatory||{},Dt.mandatory[Sn("",Xt)]=St.exact):["min","max"].forEach(Jn=>{void 0!==St[Jn]&&(Dt.mandatory=Dt.mandatory||{},Dt.mandatory[Sn(Jn,Xt)]=St[Jn])})}),Nt.advanced&&(Dt.optional=(Dt.optional||[]).concat(Nt.advanced)),Dt},di=function(Nt,Dt){if(Ii.version>=61)return Dt(Nt);if((Nt=JSON.parse(JSON.stringify(Nt)))&&"object"==typeof Nt.audio){const Xt=function(St,Sn,Jn){Sn in St&&!(Jn in St)&&(St[Jn]=St[Sn],delete St[Sn])};Xt((Nt=JSON.parse(JSON.stringify(Nt))).audio,"autoGainControl","googAutoGainControl"),Xt(Nt.audio,"noiseSuppression","googNoiseSuppression"),Nt.audio=ei(Nt.audio)}if(Nt&&"object"==typeof Nt.video){let Xt=Nt.video.facingMode;Xt=Xt&&("object"==typeof Xt?Xt:{ideal:Xt});const St=Ii.version<66;if(Xt&&("user"===Xt.exact||"environment"===Xt.exact||"user"===Xt.ideal||"environment"===Xt.ideal)&&(!Zn.mediaDevices.getSupportedConstraints||!Zn.mediaDevices.getSupportedConstraints().facingMode||St)){let Sn;if(delete Nt.video.facingMode,"environment"===Xt.exact||"environment"===Xt.ideal?Sn=["back","rear"]:("user"===Xt.exact||"user"===Xt.ideal)&&(Sn=["front"]),Sn)return Zn.mediaDevices.enumerateDevices().then(Jn=>{let oi=(Jn=Jn.filter(Ji=>"videoinput"===Ji.kind)).find(Ji=>Sn.some(Ei=>Ji.label.toLowerCase().includes(Ei)));return!oi&&Jn.length&&Sn.includes("back")&&(oi=Jn[Jn.length-1]),oi&&(Nt.video.deviceId=Xt.exact?{exact:oi.deviceId}:{ideal:oi.deviceId}),Nt.video=ei(Nt.video),H("chrome: "+JSON.stringify(Nt)),Dt(Nt)})}Nt.video=ei(Nt.video)}return H("chrome: "+JSON.stringify(Nt)),Dt(Nt)},wi=function(Nt){return Ii.version>=64?Nt:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[Nt.name]||Nt.name,message:Nt.message,constraint:Nt.constraint||Nt.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(Zn.getUserMedia=function(Nt,Dt,Xt){di(Nt,St=>{Zn.webkitGetUserMedia(St,Dt,Sn=>{Xt&&Xt(wi(Sn))})})}.bind(Zn),Zn.mediaDevices.getUserMedia){const Nt=Zn.mediaDevices.getUserMedia.bind(Zn.mediaDevices);Zn.mediaDevices.getUserMedia=function(Dt){return di(Dt,Xt=>Nt(Xt).then(St=>{if(Xt.audio&&!St.getAudioTracks().length||Xt.video&&!St.getVideoTracks().length)throw St.getTracks().forEach(Sn=>{Sn.stop()}),new DOMException("","NotFoundError");return St},St=>Promise.reject(wi(St))))}}}function X(Kt,Zn){if((!Kt.navigator.mediaDevices||!("getDisplayMedia"in Kt.navigator.mediaDevices))&&Kt.navigator.mediaDevices){if("function"!=typeof Zn)return void console.error("shimGetDisplayMedia: getSourceId argument is not a function");Kt.navigator.mediaDevices.getDisplayMedia=function(ei){return Zn(ei).then(di=>{const wi=ei.video&&ei.video.width,Ri=ei.video&&ei.video.height;return ei.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:di,maxFrameRate:ei.video&&ei.video.frameRate||3}},wi&&(ei.video.mandatory.maxWidth=wi),Ri&&(ei.video.mandatory.maxHeight=Ri),Kt.navigator.mediaDevices.getUserMedia(ei)})}}}function ue(Kt){Kt.MediaStream=Kt.MediaStream||Kt.webkitMediaStream}function Me(Kt){if("object"==typeof Kt&&Kt.RTCPeerConnection&&!("ontrack"in Kt.RTCPeerConnection.prototype)){Object.defineProperty(Kt.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(Ii){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=Ii)},enumerable:!0,configurable:!0});const Zn=Kt.RTCPeerConnection.prototype.setRemoteDescription;Kt.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=ei=>{ei.stream.addEventListener("addtrack",di=>{let wi;wi=Kt.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(Nt=>Nt.track&&Nt.track.id===di.track.id):{track:di.track};const Ri=new Event("track");Ri.track=di.track,Ri.receiver=wi,Ri.transceiver={receiver:wi},Ri.streams=[ei.stream],this.dispatchEvent(Ri)}),ei.stream.getTracks().forEach(di=>{let wi;wi=Kt.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(Nt=>Nt.track&&Nt.track.id===di.id):{track:di};const Ri=new Event("track");Ri.track=di,Ri.receiver=wi,Ri.transceiver={receiver:wi},Ri.streams=[ei.stream],this.dispatchEvent(Ri)})},this.addEventListener("addstream",this._ontrackpoly)),Zn.apply(this,arguments)}}else u(Kt,"track",Zn=>(Zn.transceiver||Object.defineProperty(Zn,"transceiver",{value:{receiver:Zn.receiver}}),Zn))}function be(Kt){if("object"==typeof Kt&&Kt.RTCPeerConnection&&!("getSenders"in Kt.RTCPeerConnection.prototype)&&"createDTMFSender"in Kt.RTCPeerConnection.prototype){const Zn=function(di,wi){return{track:wi,get dtmf(){return void 0===this._dtmf&&(this._dtmf="audio"===wi.kind?di.createDTMFSender(wi):null),this._dtmf},_pc:di}};if(!Kt.RTCPeerConnection.prototype.getSenders){Kt.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const di=Kt.RTCPeerConnection.prototype.addTrack;Kt.RTCPeerConnection.prototype.addTrack=function(Nt,Dt){let Xt=di.apply(this,arguments);return Xt||(Xt=Zn(this,Nt),this._senders.push(Xt)),Xt};const wi=Kt.RTCPeerConnection.prototype.removeTrack;Kt.RTCPeerConnection.prototype.removeTrack=function(Nt){wi.apply(this,arguments);const Dt=this._senders.indexOf(Nt);-1!==Dt&&this._senders.splice(Dt,1)}}const Ii=Kt.RTCPeerConnection.prototype.addStream;Kt.RTCPeerConnection.prototype.addStream=function(wi){this._senders=this._senders||[],Ii.apply(this,[wi]),wi.getTracks().forEach(Ri=>{this._senders.push(Zn(this,Ri))})};const ei=Kt.RTCPeerConnection.prototype.removeStream;Kt.RTCPeerConnection.prototype.removeStream=function(wi){this._senders=this._senders||[],ei.apply(this,[wi]),wi.getTracks().forEach(Ri=>{const Nt=this._senders.find(Dt=>Dt.track===Ri);Nt&&this._senders.splice(this._senders.indexOf(Nt),1)})}}else if("object"==typeof Kt&&Kt.RTCPeerConnection&&"getSenders"in Kt.RTCPeerConnection.prototype&&"createDTMFSender"in Kt.RTCPeerConnection.prototype&&Kt.RTCRtpSender&&!("dtmf"in Kt.RTCRtpSender.prototype)){const Zn=Kt.RTCPeerConnection.prototype.getSenders;Kt.RTCPeerConnection.prototype.getSenders=function(){const ei=Zn.apply(this,[]);return ei.forEach(di=>di._pc=this),ei},Object.defineProperty(Kt.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&(this._dtmf="audio"===this.track.kind?this._pc.createDTMFSender(this.track):null),this._dtmf}})}}function Q(Kt){if(!Kt.RTCPeerConnection)return;const Zn=Kt.RTCPeerConnection.prototype.getStats;Kt.RTCPeerConnection.prototype.getStats=function(){const[ei,di,wi]=arguments;if(arguments.length>0&&"function"==typeof ei)return Zn.apply(this,arguments);if(0===Zn.length&&(0===arguments.length||"function"!=typeof ei))return Zn.apply(this,[]);const Ri=function(Dt){const Xt={};return Dt.result().forEach(Sn=>{const Jn={id:Sn.id,timestamp:Sn.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[Sn.type]||Sn.type};Sn.names().forEach(oi=>{Jn[oi]=Sn.stat(oi)}),Xt[Jn.id]=Jn}),Xt},Nt=function(Dt){return new Map(Object.keys(Dt).map(Xt=>[Xt,Dt[Xt]]))};return arguments.length>=2?Zn.apply(this,[function(Xt){di(Nt(Ri(Xt)))},ei]):new Promise((Dt,Xt)=>{Zn.apply(this,[function(St){Dt(Nt(Ri(St)))},Xt])}).then(di,wi)}}function ne(Kt){if(!("object"==typeof Kt&&Kt.RTCPeerConnection&&Kt.RTCRtpSender&&Kt.RTCRtpReceiver))return;if(!("getStats"in Kt.RTCRtpSender.prototype)){const Ii=Kt.RTCPeerConnection.prototype.getSenders;Ii&&(Kt.RTCPeerConnection.prototype.getSenders=function(){const wi=Ii.apply(this,[]);return wi.forEach(Ri=>Ri._pc=this),wi});const ei=Kt.RTCPeerConnection.prototype.addTrack;ei&&(Kt.RTCPeerConnection.prototype.addTrack=function(){const wi=ei.apply(this,arguments);return wi._pc=this,wi}),Kt.RTCRtpSender.prototype.getStats=function(){const wi=this;return this._pc.getStats().then(Ri=>ce(Ri,wi.track,!0))}}if(!("getStats"in Kt.RTCRtpReceiver.prototype)){const Ii=Kt.RTCPeerConnection.prototype.getReceivers;Ii&&(Kt.RTCPeerConnection.prototype.getReceivers=function(){const di=Ii.apply(this,[]);return di.forEach(wi=>wi._pc=this),di}),u(Kt,"track",ei=>(ei.receiver._pc=ei.srcElement,ei)),Kt.RTCRtpReceiver.prototype.getStats=function(){const di=this;return this._pc.getStats().then(wi=>ce(wi,di.track,!1))}}if(!("getStats"in Kt.RTCRtpSender.prototype)||!("getStats"in Kt.RTCRtpReceiver.prototype))return;const Zn=Kt.RTCPeerConnection.prototype.getStats;Kt.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof Kt.MediaStreamTrack){const ei=arguments[0];let di,wi,Ri;return this.getSenders().forEach(Nt=>{Nt.track===ei&&(di?Ri=!0:di=Nt)}),this.getReceivers().forEach(Nt=>(Nt.track===ei&&(wi?Ri=!0:wi=Nt),Nt.track===ei)),Ri||di&&wi?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):di?di.getStats():wi?wi.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return Zn.apply(this,arguments)}}function Ge(Kt){Kt.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(Ri=>this._shimmedLocalStreams[Ri][0])};const Zn=Kt.RTCPeerConnection.prototype.addTrack;Kt.RTCPeerConnection.prototype.addTrack=function(Ri,Nt){if(!Nt)return Zn.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const Dt=Zn.apply(this,arguments);return this._shimmedLocalStreams[Nt.id]?-1===this._shimmedLocalStreams[Nt.id].indexOf(Dt)&&this._shimmedLocalStreams[Nt.id].push(Dt):this._shimmedLocalStreams[Nt.id]=[Nt,Dt],Dt};const Ii=Kt.RTCPeerConnection.prototype.addStream;Kt.RTCPeerConnection.prototype.addStream=function(Ri){this._shimmedLocalStreams=this._shimmedLocalStreams||{},Ri.getTracks().forEach(Xt=>{if(this.getSenders().find(Sn=>Sn.track===Xt))throw new DOMException("Track already exists.","InvalidAccessError")});const Nt=this.getSenders();Ii.apply(this,arguments);const Dt=this.getSenders().filter(Xt=>-1===Nt.indexOf(Xt));this._shimmedLocalStreams[Ri.id]=[Ri].concat(Dt)};const ei=Kt.RTCPeerConnection.prototype.removeStream;Kt.RTCPeerConnection.prototype.removeStream=function(Ri){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[Ri.id],ei.apply(this,arguments)};const di=Kt.RTCPeerConnection.prototype.removeTrack;Kt.RTCPeerConnection.prototype.removeTrack=function(Ri){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Ri&&Object.keys(this._shimmedLocalStreams).forEach(Nt=>{const Dt=this._shimmedLocalStreams[Nt].indexOf(Ri);-1!==Dt&&this._shimmedLocalStreams[Nt].splice(Dt,1),1===this._shimmedLocalStreams[Nt].length&&delete this._shimmedLocalStreams[Nt]}),di.apply(this,arguments)}}function ge(Kt){if(!Kt.RTCPeerConnection)return;const Zn=Y(Kt);if(Kt.RTCPeerConnection.prototype.addTrack&&Zn.version>=65)return Ge(Kt);const Ii=Kt.RTCPeerConnection.prototype.getLocalStreams;Kt.RTCPeerConnection.prototype.getLocalStreams=function(){const St=Ii.apply(this);return this._reverseStreams=this._reverseStreams||{},St.map(Sn=>this._reverseStreams[Sn.id])};const ei=Kt.RTCPeerConnection.prototype.addStream;Kt.RTCPeerConnection.prototype.addStream=function(St){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},St.getTracks().forEach(Sn=>{if(this.getSenders().find(oi=>oi.track===Sn))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[St.id]){const Sn=new Kt.MediaStream(St.getTracks());this._streams[St.id]=Sn,this._reverseStreams[Sn.id]=St,St=Sn}ei.apply(this,[St])};const di=Kt.RTCPeerConnection.prototype.removeStream;function wi(Xt,St){let Sn=St.sdp;return Object.keys(Xt._reverseStreams||[]).forEach(Jn=>{const oi=Xt._reverseStreams[Jn];Sn=Sn.replace(new RegExp(Xt._streams[oi.id].id,"g"),oi.id)}),new RTCSessionDescription({type:St.type,sdp:Sn})}Kt.RTCPeerConnection.prototype.removeStream=function(St){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},di.apply(this,[this._streams[St.id]||St]),delete this._reverseStreams[this._streams[St.id]?this._streams[St.id].id:St.id],delete this._streams[St.id]},Kt.RTCPeerConnection.prototype.addTrack=function(St,Sn){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const Jn=[].slice.call(arguments,1);if(1!==Jn.length||!Jn[0].getTracks().find(Ei=>Ei===St))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(Ei=>Ei.track===St))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const Ji=this._streams[Sn.id];if(Ji)Ji.addTrack(St),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const Ei=new Kt.MediaStream([St]);this._streams[Sn.id]=Ei,this._reverseStreams[Ei.id]=Sn,this.addStream(Ei)}return this.getSenders().find(Ei=>Ei.track===St)},["createOffer","createAnswer"].forEach(function(Xt){const St=Kt.RTCPeerConnection.prototype[Xt],Sn={[Xt](){const Jn=arguments;return arguments.length&&"function"==typeof arguments[0]?St.apply(this,[Ji=>{const Ei=wi(this,Ji);Jn[0].apply(null,[Ei])},Ji=>{Jn[1]&&Jn[1].apply(null,Ji)},arguments[2]]):St.apply(this,arguments).then(Ji=>wi(this,Ji))}};Kt.RTCPeerConnection.prototype[Xt]=Sn[Xt]});const Nt=Kt.RTCPeerConnection.prototype.setLocalDescription;Kt.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function Ri(Xt,St){let Sn=St.sdp;return Object.keys(Xt._reverseStreams||[]).forEach(Jn=>{const oi=Xt._reverseStreams[Jn],Ji=Xt._streams[oi.id];Sn=Sn.replace(new RegExp(oi.id,"g"),Ji.id)}),new RTCSessionDescription({type:St.type,sdp:Sn})}(this,arguments[0]),Nt.apply(this,arguments)):Nt.apply(this,arguments)};const Dt=Object.getOwnPropertyDescriptor(Kt.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(Kt.RTCPeerConnection.prototype,"localDescription",{get(){const Xt=Dt.get.apply(this);return""===Xt.type?Xt:wi(this,Xt)}}),Kt.RTCPeerConnection.prototype.removeTrack=function(St){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!St._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(St._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let Jn;this._streams=this._streams||{},Object.keys(this._streams).forEach(oi=>{this._streams[oi].getTracks().find(Ei=>St.track===Ei)&&(Jn=this._streams[oi])}),Jn&&(1===Jn.getTracks().length?this.removeStream(this._reverseStreams[Jn.id]):Jn.removeTrack(St.track),this.dispatchEvent(new Event("negotiationneeded")))}}function Xe(Kt){const Zn=Y(Kt);if(!Kt.RTCPeerConnection&&Kt.webkitRTCPeerConnection&&(Kt.RTCPeerConnection=Kt.webkitRTCPeerConnection),!Kt.RTCPeerConnection)return;const Ii=0===Kt.RTCPeerConnection.prototype.addIceCandidate.length;Zn.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(di){const wi=Kt.RTCPeerConnection.prototype[di],Ri={[di](){return arguments[0]=new("addIceCandidate"===di?Kt.RTCIceCandidate:Kt.RTCSessionDescription)(arguments[0]),wi.apply(this,arguments)}};Kt.RTCPeerConnection.prototype[di]=Ri[di]});const ei=Kt.RTCPeerConnection.prototype.addIceCandidate;Kt.RTCPeerConnection.prototype.addIceCandidate=function(){return Ii||arguments[0]?Zn.version<78&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():ei.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}function ot(Kt){const Zn=Y(Kt);u(Kt,"negotiationneeded",Ii=>{const ei=Ii.target;if(!(Zn.version<72||ei.getConfiguration&&"plan-b"===ei.getConfiguration().sdpSemantics)||"stable"===ei.signalingState)return Ii})}var xe=h(134),Re=h.n(xe);function Ue(Kt){const Zn=Kt&&Kt.navigator,ei=Zn.mediaDevices.getUserMedia.bind(Zn.mediaDevices);Zn.mediaDevices.getUserMedia=function(di){return ei(di).catch(wi=>Promise.reject(function(di){return{name:{PermissionDeniedError:"NotAllowedError"}[di.name]||di.name,message:di.message,constraint:di.constraint,toString(){return this.name}}}(wi)))}}function ee(Kt){"getDisplayMedia"in Kt.navigator&&Kt.navigator.mediaDevices&&(Kt.navigator.mediaDevices&&"getDisplayMedia"in Kt.navigator.mediaDevices||(Kt.navigator.mediaDevices.getDisplayMedia=Kt.navigator.getDisplayMedia.bind(Kt.navigator)))}function W(Kt){const Zn=Y(Kt);if(Kt.RTCIceGatherer&&(Kt.RTCIceCandidate||(Kt.RTCIceCandidate=function(di){return di}),Kt.RTCSessionDescription||(Kt.RTCSessionDescription=function(di){return di}),Zn.version<15025)){const ei=Object.getOwnPropertyDescriptor(Kt.MediaStreamTrack.prototype,"enabled");Object.defineProperty(Kt.MediaStreamTrack.prototype,"enabled",{set(di){ei.set.call(this,di);const wi=new Event("enabled");wi.enabled=di,this.dispatchEvent(wi)}})}Kt.RTCRtpSender&&!("dtmf"in Kt.RTCRtpSender.prototype)&&Object.defineProperty(Kt.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new Kt.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),Kt.RTCDtmfSender&&!Kt.RTCDTMFSender&&(Kt.RTCDTMFSender=Kt.RTCDtmfSender);const Ii=Re()(Kt,Zn.version);Kt.RTCPeerConnection=function(di){return di&&di.iceServers&&(di.iceServers=function dt(Kt,Zn){let Ii=!1;return(Kt=JSON.parse(JSON.stringify(Kt))).filter(ei=>{if(ei&&(ei.urls||ei.url)){var di=ei.urls||ei.url;ei.url&&!ei.urls&&O("RTCIceServer.url","RTCIceServer.urls");const wi="string"==typeof di;return wi&&(di=[di]),di=di.filter(Ri=>{if(0===Ri.indexOf("stun:"))return!1;const Nt=Ri.startsWith("turn")&&!Ri.startsWith("turn:[")&&Ri.includes("transport=udp");return Nt&&!Ii?(Ii=!0,!0):Nt&&!Ii}),delete ei.url,ei.urls=wi?di[0]:di,!!di.length}})}(di.iceServers),R("ICE servers after filtering:",di.iceServers)),new Ii(di)},Kt.RTCPeerConnection.prototype=Ii.prototype}function Pe(Kt){Kt.RTCRtpSender&&!("replaceTrack"in Kt.RTCRtpSender.prototype)&&(Kt.RTCRtpSender.prototype.replaceTrack=Kt.RTCRtpSender.prototype.setTrack)}function le(Kt){const Zn=Y(Kt),Ii=Kt&&Kt.navigator,ei=Kt&&Kt.MediaStreamTrack;if(Ii.getUserMedia=function(di,wi,Ri){O("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),Ii.mediaDevices.getUserMedia(di).then(wi,Ri)},!(Zn.version>55&&"autoGainControl"in Ii.mediaDevices.getSupportedConstraints())){const di=function(Ri,Nt,Dt){Nt in Ri&&!(Dt in Ri)&&(Ri[Dt]=Ri[Nt],delete Ri[Nt])},wi=Ii.mediaDevices.getUserMedia.bind(Ii.mediaDevices);if(Ii.mediaDevices.getUserMedia=function(Ri){return"object"==typeof Ri&&"object"==typeof Ri.audio&&(Ri=JSON.parse(JSON.stringify(Ri)),di(Ri.audio,"autoGainControl","mozAutoGainControl"),di(Ri.audio,"noiseSuppression","mozNoiseSuppression")),wi(Ri)},ei&&ei.prototype.getSettings){const Ri=ei.prototype.getSettings;ei.prototype.getSettings=function(){const Nt=Ri.apply(this,arguments);return di(Nt,"mozAutoGainControl","autoGainControl"),di(Nt,"mozNoiseSuppression","noiseSuppression"),Nt}}if(ei&&ei.prototype.applyConstraints){const Ri=ei.prototype.applyConstraints;ei.prototype.applyConstraints=function(Nt){return"audio"===this.kind&&"object"==typeof Nt&&(Nt=JSON.parse(JSON.stringify(Nt)),di(Nt,"autoGainControl","mozAutoGainControl"),di(Nt,"noiseSuppression","mozNoiseSuppression")),Ri.apply(this,[Nt])}}}}function oe(Kt,Zn){Kt.navigator.mediaDevices&&"getDisplayMedia"in Kt.navigator.mediaDevices||Kt.navigator.mediaDevices&&(Kt.navigator.mediaDevices.getDisplayMedia=function(ei){if(!ei||!ei.video){const di=new DOMException("getDisplayMedia without video constraints is undefined");return di.name="NotFoundError",di.code=8,Promise.reject(di)}return!0===ei.video?ei.video={mediaSource:Zn}:ei.video.mediaSource=Zn,Kt.navigator.mediaDevices.getUserMedia(ei)})}function Le(Kt){"object"==typeof Kt&&Kt.RTCTrackEvent&&"receiver"in Kt.RTCTrackEvent.prototype&&!("transceiver"in Kt.RTCTrackEvent.prototype)&&Object.defineProperty(Kt.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Oe(Kt){const Zn=Y(Kt);if("object"!=typeof Kt||!Kt.RTCPeerConnection&&!Kt.mozRTCPeerConnection)return;if(!Kt.RTCPeerConnection&&Kt.mozRTCPeerConnection&&(Kt.RTCPeerConnection=Kt.mozRTCPeerConnection),Zn.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(di){const wi=Kt.RTCPeerConnection.prototype[di],Ri={[di](){return arguments[0]=new("addIceCandidate"===di?Kt.RTCIceCandidate:Kt.RTCSessionDescription)(arguments[0]),wi.apply(this,arguments)}};Kt.RTCPeerConnection.prototype[di]=Ri[di]}),Zn.version<68){const di=Kt.RTCPeerConnection.prototype.addIceCandidate;Kt.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&""===arguments[0].candidate?Promise.resolve():di.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}const Ii={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},ei=Kt.RTCPeerConnection.prototype.getStats;Kt.RTCPeerConnection.prototype.getStats=function(){const[wi,Ri,Nt]=arguments;return ei.apply(this,[wi||null]).then(Dt=>{if(Zn.version<53&&!Ri)try{Dt.forEach(Xt=>{Xt.type=Ii[Xt.type]||Xt.type})}catch(Xt){if("TypeError"!==Xt.name)throw Xt;Dt.forEach((St,Sn)=>{Dt.set(Sn,Object.assign({},St,{type:Ii[St.type]||St.type}))})}return Dt}).then(Ri,Nt)}}function ye(Kt){if("object"!=typeof Kt||!Kt.RTCPeerConnection||!Kt.RTCRtpSender||Kt.RTCRtpSender&&"getStats"in Kt.RTCRtpSender.prototype)return;const Zn=Kt.RTCPeerConnection.prototype.getSenders;Zn&&(Kt.RTCPeerConnection.prototype.getSenders=function(){const di=Zn.apply(this,[]);return di.forEach(wi=>wi._pc=this),di});const Ii=Kt.RTCPeerConnection.prototype.addTrack;Ii&&(Kt.RTCPeerConnection.prototype.addTrack=function(){const di=Ii.apply(this,arguments);return di._pc=this,di}),Kt.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function Ie(Kt){if("object"!=typeof Kt||!Kt.RTCPeerConnection||!Kt.RTCRtpSender||Kt.RTCRtpSender&&"getStats"in Kt.RTCRtpReceiver.prototype)return;const Zn=Kt.RTCPeerConnection.prototype.getReceivers;Zn&&(Kt.RTCPeerConnection.prototype.getReceivers=function(){const ei=Zn.apply(this,[]);return ei.forEach(di=>di._pc=this),ei}),u(Kt,"track",Ii=>(Ii.receiver._pc=Ii.srcElement,Ii)),Kt.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function at(Kt){!Kt.RTCPeerConnection||"removeStream"in Kt.RTCPeerConnection.prototype||(Kt.RTCPeerConnection.prototype.removeStream=function(Ii){O("removeStream","removeTrack"),this.getSenders().forEach(ei=>{ei.track&&Ii.getTracks().includes(ei.track)&&this.removeTrack(ei)})})}function K(Kt){Kt.DataChannel&&!Kt.RTCDataChannel&&(Kt.RTCDataChannel=Kt.DataChannel)}function ve(Kt){if("object"!=typeof Kt||!Kt.RTCPeerConnection)return;const Zn=Kt.RTCPeerConnection.prototype.addTransceiver;Zn&&(Kt.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const ei=arguments[1],di=ei&&"sendEncodings"in ei;di&&ei.sendEncodings.forEach(Ri=>{if("rid"in Ri&&!/^[a-z0-9]{0,16}$/i.test(Ri.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in Ri&&!(parseFloat(Ri.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in Ri&&!(parseFloat(Ri.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const wi=Zn.apply(this,arguments);if(di){const{sender:Ri}=wi,Nt=Ri.getParameters();"encodings"in Nt||(Nt.encodings=ei.sendEncodings,Ri.sendEncodings=ei.sendEncodings,this.setParametersPromises.push(Ri.setParameters(Nt).then(()=>{delete Ri.sendEncodings}).catch(()=>{delete Ri.sendEncodings})))}return wi})}function De(Kt){if("object"!=typeof Kt||!Kt.RTCRtpSender)return;const Zn=Kt.RTCRtpSender.prototype.getParameters;Zn&&(Kt.RTCRtpSender.prototype.getParameters=function(){var ei=Zn.apply(this,arguments);return"sendEncodings"in this?Object.assign({},{encodings:this.sendEncodings},ei):ei})}function pe(Kt){if("object"!=typeof Kt||!Kt.RTCPeerConnection)return;const Zn=Kt.RTCPeerConnection.prototype.createOffer;Kt.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>Zn.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):Zn.apply(this,arguments)}}function Qe(Kt){if("object"!=typeof Kt||!Kt.RTCPeerConnection)return;const Zn=Kt.RTCPeerConnection.prototype.createAnswer;Kt.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>Zn.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):Zn.apply(this,arguments)}}function zt(Kt){if("object"==typeof Kt&&Kt.RTCPeerConnection){if("getLocalStreams"in Kt.RTCPeerConnection.prototype||(Kt.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in Kt.RTCPeerConnection.prototype)){const Zn=Kt.RTCPeerConnection.prototype.addTrack;Kt.RTCPeerConnection.prototype.addStream=function(ei){this._localStreams||(this._localStreams=[]),this._localStreams.includes(ei)||this._localStreams.push(ei),ei.getAudioTracks().forEach(di=>Zn.call(this,di,ei)),ei.getVideoTracks().forEach(di=>Zn.call(this,di,ei))},Kt.RTCPeerConnection.prototype.addTrack=function(ei,...di){return di&&di.forEach(wi=>{this._localStreams?this._localStreams.includes(wi)||this._localStreams.push(wi):this._localStreams=[wi]}),Zn.apply(this,arguments)}}"removeStream"in Kt.RTCPeerConnection.prototype||(Kt.RTCPeerConnection.prototype.removeStream=function(Ii){this._localStreams||(this._localStreams=[]);const ei=this._localStreams.indexOf(Ii);if(-1===ei)return;this._localStreams.splice(ei,1);const di=Ii.getTracks();this.getSenders().forEach(wi=>{di.includes(wi.track)&&this.removeTrack(wi)})})}}function Vt(Kt){if("object"==typeof Kt&&Kt.RTCPeerConnection&&("getRemoteStreams"in Kt.RTCPeerConnection.prototype||(Kt.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in Kt.RTCPeerConnection.prototype))){Object.defineProperty(Kt.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(Ii){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=Ii),this.addEventListener("track",this._onaddstreampoly=ei=>{ei.streams.forEach(di=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(di))return;this._remoteStreams.push(di);const wi=new Event("addstream");wi.stream=di,this.dispatchEvent(wi)})})}});const Zn=Kt.RTCPeerConnection.prototype.setRemoteDescription;Kt.RTCPeerConnection.prototype.setRemoteDescription=function(){const ei=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(di){di.streams.forEach(wi=>{if(ei._remoteStreams||(ei._remoteStreams=[]),ei._remoteStreams.indexOf(wi)>=0)return;ei._remoteStreams.push(wi);const Ri=new Event("addstream");Ri.stream=wi,ei.dispatchEvent(Ri)})}),Zn.apply(ei,arguments)}}}function de(Kt){if("object"!=typeof Kt||!Kt.RTCPeerConnection)return;const Zn=Kt.RTCPeerConnection.prototype,Ii=Zn.createOffer,ei=Zn.createAnswer,di=Zn.setLocalDescription,wi=Zn.setRemoteDescription,Ri=Zn.addIceCandidate;Zn.createOffer=function(Xt,St){const Jn=Ii.apply(this,[arguments.length>=2?arguments[2]:arguments[0]]);return St?(Jn.then(Xt,St),Promise.resolve()):Jn},Zn.createAnswer=function(Xt,St){const Jn=ei.apply(this,[arguments.length>=2?arguments[2]:arguments[0]]);return St?(Jn.then(Xt,St),Promise.resolve()):Jn};let Nt=function(Dt,Xt,St){const Sn=di.apply(this,[Dt]);return St?(Sn.then(Xt,St),Promise.resolve()):Sn};Zn.setLocalDescription=Nt,Nt=function(Dt,Xt,St){const Sn=wi.apply(this,[Dt]);return St?(Sn.then(Xt,St),Promise.resolve()):Sn},Zn.setRemoteDescription=Nt,Nt=function(Dt,Xt,St){const Sn=Ri.apply(this,[Dt]);return St?(Sn.then(Xt,St),Promise.resolve()):Sn},Zn.addIceCandidate=Nt}function J(Kt){const Zn=Kt&&Kt.navigator;if(Zn.mediaDevices&&Zn.mediaDevices.getUserMedia){const Ii=Zn.mediaDevices,ei=Ii.getUserMedia.bind(Ii);Zn.mediaDevices.getUserMedia=di=>ei($e(di))}!Zn.getUserMedia&&Zn.mediaDevices&&Zn.mediaDevices.getUserMedia&&(Zn.getUserMedia=function(ei,di,wi){Zn.mediaDevices.getUserMedia(ei).then(di,wi)}.bind(Zn))}function $e(Kt){return Kt&&void 0!==Kt.video?Object.assign({},Kt,{video:fe(Kt.video)}):Kt}function st(Kt){if(!Kt.RTCPeerConnection)return;const Zn=Kt.RTCPeerConnection;Kt.RTCPeerConnection=function(ei,di){if(ei&&ei.iceServers){const wi=[];for(let Ri=0;Ri<ei.iceServers.length;Ri++){let Nt=ei.iceServers[Ri];!Nt.hasOwnProperty("urls")&&Nt.hasOwnProperty("url")?(O("RTCIceServer.url","RTCIceServer.urls"),Nt=JSON.parse(JSON.stringify(Nt)),Nt.urls=Nt.url,delete Nt.url,wi.push(Nt)):wi.push(ei.iceServers[Ri])}ei.iceServers=wi}return new Zn(ei,di)},Kt.RTCPeerConnection.prototype=Zn.prototype,"generateCertificate"in Zn&&Object.defineProperty(Kt.RTCPeerConnection,"generateCertificate",{get:()=>Zn.generateCertificate})}function Gt(Kt){"object"==typeof Kt&&Kt.RTCTrackEvent&&"receiver"in Kt.RTCTrackEvent.prototype&&!("transceiver"in Kt.RTCTrackEvent.prototype)&&Object.defineProperty(Kt.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Zt(Kt){const Zn=Kt.RTCPeerConnection.prototype.createOffer;Kt.RTCPeerConnection.prototype.createOffer=function(ei){if(ei){typeof ei.offerToReceiveAudio<"u"&&(ei.offerToReceiveAudio=!!ei.offerToReceiveAudio);const di=this.getTransceivers().find(Ri=>"audio"===Ri.receiver.track.kind);!1===ei.offerToReceiveAudio&&di?"sendrecv"===di.direction?di.setDirection?di.setDirection("sendonly"):di.direction="sendonly":"recvonly"===di.direction&&(di.setDirection?di.setDirection("inactive"):di.direction="inactive"):!0===ei.offerToReceiveAudio&&!di&&this.addTransceiver("audio"),typeof ei.offerToReceiveVideo<"u"&&(ei.offerToReceiveVideo=!!ei.offerToReceiveVideo);const wi=this.getTransceivers().find(Ri=>"video"===Ri.receiver.track.kind);!1===ei.offerToReceiveVideo&&wi?"sendrecv"===wi.direction?wi.setDirection?wi.setDirection("sendonly"):wi.direction="sendonly":"recvonly"===wi.direction&&(wi.setDirection?wi.setDirection("inactive"):wi.direction="inactive"):!0===ei.offerToReceiveVideo&&!wi&&this.addTransceiver("video")}return Zn.apply(this,arguments)}}function kn(Kt){"object"!=typeof Kt||Kt.AudioContext||(Kt.AudioContext=Kt.webkitAudioContext)}var Un=h(985),ni=h.n(Un);function qe(Kt){if(!Kt.RTCIceCandidate||Kt.RTCIceCandidate&&"foundation"in Kt.RTCIceCandidate.prototype)return;const Zn=Kt.RTCIceCandidate;Kt.RTCIceCandidate=function(ei){if("object"==typeof ei&&ei.candidate&&0===ei.candidate.indexOf("a=")&&((ei=JSON.parse(JSON.stringify(ei))).candidate=ei.candidate.substr(2)),ei.candidate&&ei.candidate.length){const di=new Zn(ei),wi=ni().parseCandidate(ei.candidate),Ri=Object.assign(di,wi);return Ri.toJSON=function(){return{candidate:Ri.candidate,sdpMid:Ri.sdpMid,sdpMLineIndex:Ri.sdpMLineIndex,usernameFragment:Ri.usernameFragment}},Ri}return new Zn(ei)},Kt.RTCIceCandidate.prototype=Zn.prototype,u(Kt,"icecandidate",Ii=>(Ii.candidate&&Object.defineProperty(Ii,"candidate",{value:new Kt.RTCIceCandidate(Ii.candidate),writable:"false"}),Ii))}function mi(Kt){if(!Kt.RTCPeerConnection)return;const Zn=Y(Kt);"sctp"in Kt.RTCPeerConnection.prototype||Object.defineProperty(Kt.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const Ri=Kt.RTCPeerConnection.prototype.setRemoteDescription;Kt.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===Zn.browser&&Zn.version>=76){const{sdpSemantics:Dt}=this.getConfiguration();"plan-b"===Dt&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(function(Nt){if(!Nt||!Nt.sdp)return!1;const Dt=ni().splitSections(Nt.sdp);return Dt.shift(),Dt.some(Xt=>{const St=ni().parseMLine(Xt);return St&&"application"===St.kind&&-1!==St.protocol.indexOf("SCTP")})}(arguments[0])){const Dt=function(Nt){const Dt=Nt.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===Dt||Dt.length<2)return-1;const Xt=parseInt(Dt[1],10);return Xt!=Xt?-1:Xt}(arguments[0]),Xt=function(Nt){let Dt=65536;return"firefox"===Zn.browser&&(Dt=Zn.version<57?-1===Nt?16384:2147483637:Zn.version<60?57===Zn.version?65535:65536:2147483637),Dt}(Dt),St=function(Nt,Dt){let Xt=65536;"firefox"===Zn.browser&&57===Zn.version&&(Xt=65535);const St=ni().matchPrefix(Nt.sdp,"a=max-message-size:");return St.length>0?Xt=parseInt(St[0].substr(19),10):"firefox"===Zn.browser&&-1!==Dt&&(Xt=2147483637),Xt}(arguments[0],Dt);let Sn;Sn=0===Xt&&0===St?Number.POSITIVE_INFINITY:0===Xt||0===St?Math.max(Xt,St):Math.min(Xt,St);const Jn={};Object.defineProperty(Jn,"maxMessageSize",{get:()=>Sn}),this._sctp=Jn}return Ri.apply(this,arguments)}}function Bi(Kt){if(!Kt.RTCPeerConnection||!("createDataChannel"in Kt.RTCPeerConnection.prototype))return;function Zn(ei,di){const wi=ei.send;ei.send=function(){const Nt=arguments[0];if("open"===ei.readyState&&di.sctp&&(Nt.length||Nt.size||Nt.byteLength)>di.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+di.sctp.maxMessageSize+" bytes)");return wi.apply(ei,arguments)}}const Ii=Kt.RTCPeerConnection.prototype.createDataChannel;Kt.RTCPeerConnection.prototype.createDataChannel=function(){const di=Ii.apply(this,arguments);return Zn(di,this),di},u(Kt,"datachannel",ei=>(Zn(ei.channel,ei.target),ei))}function _i(Kt){if(!Kt.RTCPeerConnection||"connectionState"in Kt.RTCPeerConnection.prototype)return;const Zn=Kt.RTCPeerConnection.prototype;Object.defineProperty(Zn,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(Zn,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(Ii){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),Ii&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=Ii)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(Ii=>{const ei=Zn[Ii];Zn[Ii]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=di=>{const wi=di.target;if(wi._lastConnectionState!==wi.connectionState){wi._lastConnectionState=wi.connectionState;const Ri=new Event("connectionstatechange",di);wi.dispatchEvent(Ri)}return di},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),ei.apply(this,arguments)}})}function Bn(Kt){if(!Kt.RTCPeerConnection)return;const Zn=Y(Kt);if("chrome"===Zn.browser&&Zn.version>=71||"safari"===Zn.browser&&Zn.version>=605)return;const Ii=Kt.RTCPeerConnection.prototype.setRemoteDescription;Kt.RTCPeerConnection.prototype.setRemoteDescription=function(di){return di&&di.sdp&&-1!==di.sdp.indexOf("\na=extmap-allow-mixed")&&(di.sdp=di.sdp.split("\n").filter(wi=>"a=extmap-allow-mixed"!==wi.trim()).join("\n")),Ii.apply(this,arguments)}}!function jn({window:Kt}={},Zn={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0}){const Ii=R,ei=Y(Kt),di={browserDetails:ei,commonShim:y,extractVersion:s,disableLog:m,disableWarnings:I};switch(ei.browser){case"chrome":if(!A||!Xe||!Zn.shimChrome)return Ii("Chrome shim is not included in this adapter release."),di;if(null===ei.version)return Ii("Chrome shim can not determine version, not shimming."),di;Ii("adapter.js shimming chrome."),di.browserShim=A,Z(Kt),ue(Kt),Xe(Kt),Me(Kt),ge(Kt),be(Kt),Q(Kt),ne(Kt),ot(Kt),qe(Kt),_i(Kt),mi(Kt),Bi(Kt),Bn(Kt);break;case"firefox":if(!T||!Oe||!Zn.shimFirefox)return Ii("Firefox shim is not included in this adapter release."),di;Ii("adapter.js shimming firefox."),di.browserShim=T,le(Kt),Oe(Kt),Le(Kt),at(Kt),ye(Kt),Ie(Kt),K(Kt),ve(Kt),De(Kt),pe(Kt),Qe(Kt),qe(Kt),_i(Kt),mi(Kt),Bi(Kt);break;case"edge":if(!M||!W||!Zn.shimEdge)return Ii("MS edge shim is not included in this adapter release."),di;Ii("adapter.js shimming edge."),di.browserShim=M,Ue(Kt),ee(Kt),W(Kt),Pe(Kt),mi(Kt),Bi(Kt);break;case"safari":if(!E||!Zn.shimSafari)return Ii("Safari shim is not included in this adapter release."),di;Ii("adapter.js shimming safari."),di.browserShim=E,st(Kt),Zt(Kt),de(Kt),zt(Kt),Vt(Kt),Gt(Kt),J(Kt),kn(Kt),qe(Kt),mi(Kt),Bi(Kt),Bn(Kt);break;default:Ii("Unsupported browser!")}}({window}),h(393);var ht=Ragnarok.GridApp,it=Ragnarok.ChooseStreamingSettings,Ct=Ragnarok.ChooseStreamingResolution,Et=Ragnarok.InitializeUtils,We=Ragnarok.GetSupportedAudioChannelCount,bt=Ragnarok.GetDeviceCapabilities,gt=Ragnarok.getSupportedCodecs,wt=Ragnarok.VirtualButton,rn=Ragnarok.VirtualGamepadHandler,In=Ragnarok.ConfigureRagnarokSettings,Mi=Ragnarok.CHANGELIST,En=Ragnarok.AuthType,Tn=Ragnarok.performHttpRequest,Cn=Ragnarok.AddPlatformTelemetry,Wn=Ragnarok.IsFeatureSupported,Oi=Ragnarok.CalculateMaxBitrateKbps,Qn=Ragnarok.CalculateDataUsage,Fi=Ragnarok.LogImpl,Ai=Ragnarok.EVENTS,ln=Ragnarok.HotkeyModifier,Mn=Ragnarok.defaultInputConfigFlags,bi=Ragnarok.StreamingProfilePreset,Hi=Ragnarok.TrackType,Mr=Ragnarok.STREAMING_STATE,Wr=Ragnarok.RNotificationCode,uo=Ragnarok.ScErrorCode,Nr=Ragnarok.configureSessionControlSettings,ss=Ragnarok.DeviceType,Cs=Ragnarok.DeviceOS,Pn=Ragnarok.NetworkType,Pi=Ragnarok.registerLogCallback,li=Ragnarok.LogLevel,er=Ragnarok.createSessionControl,Fr=Ragnarok.SdrHdrMode,dn=Ragnarok.Usage,Fn=Ragnarok.Protocol,xi=Ragnarok.AppLevelProtocol,fi=Ragnarok.AdState,Si=Ragnarok.AdAction,Yi=Ragnarok.BitDepth,Qi=Ragnarok.ClientType,vr=Ragnarok.SessionState,Dr=Ragnarok.SessionProgressState,br=Ragnarok.AppLaunchMode,ro=Ragnarok.updateSessionParameters,Oo=Ragnarok.isCancelCode,Hr=Ragnarok.isResumableSessionState,Ao=Ragnarok.getResumableSession,Co=Ragnarok.SessionControlTelemetry,Lo=Ragnarok.GsErrorCode,ao=Ragnarok.GridServerSettings,Ar=Ragnarok.ConfigureGridServerSettings,sn=Ragnarok.BrowserName,Gn=Ragnarok.PlatformName,$n=Ragnarok.getPlatformDetails,Ci=Ragnarok.DeviceModel,Wi=Ragnarok.DeviceVendor,Ti=Ragnarok.CLIENT_VERSION,Gi=Ragnarok.CLIENT_IDENTIFICATION,Tr=Ragnarok.SESSIONMODIFY_ACTION,_o=Ragnarok.AudioFormat,zo=Ragnarok.ClientStreamer,as=Ragnarok.GS_EVENTS,ps=Ragnarok.GridServer,Hs=Ragnarok.PassThruServer,Qr=Ragnarok.VsyncType,ca=Ragnarok.getDeviceCapabilities,Js=Ragnarok.serializeDeviceCapabilities,ts=Ragnarok.PayloadOSType,Qo=Ragnarok.PayloadBrowserType,xs=Ragnarok.PayloadDeviceType,hl=Ragnarok.ClientHeaderOSType,Bs=Ragnarok.ClientHeaderBrowserType,Oa=Ragnarok.ClientHeaderDeviceType,qs=Ragnarok.translatePlatformDetailsForPayload,Er=Ragnarok.translatePlatformDetailsForClientHeader,js=Ragnarok.getStreamerType,ea=Ragnarok.BrowserFeature,Zo=Ragnarok.isFeatureSupported,vs=Ragnarok.shouldDefaultEnableMic,Ys=Ragnarok.getRecommendedBitrate,ho=Ragnarok.getStreamStartParameters,Bo=Ragnarok.estimateDataUsage,cs=Ragnarok.NskTelemetry,Pa=Ragnarok.createNskStreamClient,_r=Ragnarok.configureRagnarokSettings,$s=Ragnarok.getNetworkTypeDetector,fa=Ragnarok.RErrorCode,sa=Ragnarok.HidType,Ba=Ragnarok.InputType,Ml=Ragnarok.VideoCodecType,_s=Ragnarok.MicState,wa=Ragnarok.DynamicStreamingMode,To=Ragnarok.MediaTrackKind,po=Ragnarok.StreamStopReason,ta=Ragnarok.StreamWarningType,Ls=Ragnarok.CursorType,zs=Ragnarok.StreamingState})(),je.exports=f})()},72271:function(je,z,c){"use strict";var r=this&&this.__createBinding||(Object.create?function(v,h,f,A){void 0===A&&(A=f),Object.defineProperty(v,A,{enumerable:!0,get:function(){return h[f]}})}:function(v,h,f,A){void 0===A&&(A=f),v[A]=h[f]}),n=this&&this.__exportStar||function(v,h){for(var f in v)"default"!==f&&!Object.prototype.hasOwnProperty.call(h,f)&&r(h,v,f)};Object.defineProperty(z,"__esModule",{value:!0}),n(c(27621),z),n(c(51814),z),n(c(78564),z),n(c(24538),z)},78564:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.Logger=void 0;const r=c(51814);z.Logger=class n{constructor(h){this.loggingLevel=h}info(...h){this.logEntry(r.LoggingLevel.Info,h,console.log.bind(console))}error(...h){this.logEntry(r.LoggingLevel.Error,h,console.error.bind(console))}warn(...h){this.logEntry(r.LoggingLevel.Warning,h,console.warn.bind(console))}verbose(...h){this.logEntry(r.LoggingLevel.Verbose,h,console.log.bind(console))}event(...h){this.logEntry(r.LoggingLevel.Event,h,console.log.bind(console))}logEntry(h,f,A){A("[Cloud Variable SDK] "+f)}}},51814:(je,z)=>{"use strict";var E;Object.defineProperty(z,"__esModule",{value:!0}),z.openTracingConfig=z.AxiosSpanName=z.SpanName=z.ActivityType=z.ExperimentActivationType=z.ActivityExperienceType=z.CommonClientVariant=z.CommonClientType=z.DeviceType=z.CloudVariableStatus=z.StorageType=z.LoggingLevel=void 0,(E=z.LoggingLevel||(z.LoggingLevel={}))[E.None=-1]="None",E[E.Error=1]="Error",E[E.Warning=2]="Warning",E[E.Info=3]="Info",E[E.Verbose=4]="Verbose",E[E.Event=5]="Event",function(E){E.IndexedDB="IndexedDB",E.SharedStorage="SharedStoage",E.LocalStorage="LocalStorage",E.AbHub="AbHub"}(z.StorageType||(z.StorageType={})),function(E){E.Created="Created",E.Updated="Updated",E.Deleted="Deleted",E.Unknown="Unknown"}(z.CloudVariableStatus||(z.CloudVariableStatus={})),function(E){E.Desktop="Desktop",E.Laptop="Laptop",E.TV="TV",E.Phone="Phone",E.Tablet="Tablet",E.Server="Server",E.Undefined="undefined"}(z.DeviceType||(z.DeviceType={})),function(E){E.Native="Native",E.Browser="Browser",E.GFNSDK="GFNSDK",E.Undefined="undefined"}(z.CommonClientType||(z.CommonClientType={})),function(E){E.iBeta="iBeta",E.Release="Release",E.Undefined="undefined"}(z.CommonClientVariant||(z.CommonClientVariant={})),function(E){E.Variant="Variant",E.Control="Control",E.Default="Default",E.Alternate="Alternate"}(z.ActivityExperienceType||(z.ActivityExperienceType={})),function(E){E.USER_ID="USER_ID",E.DEVICE_ID="DEVICE_ID",E.SESSION_ID="SESSION_ID"}(z.ExperimentActivationType||(z.ExperimentActivationType={})),function(E){E.AB="AB",E.Unknown="Unknown",E.XT="XT",E.FR="FR"}(z.ActivityType||(z.ActivityType={})),z.SpanName="GxTargetGetCloudVariable",z.AxiosSpanName="AxiosGetCloudVariable",z.openTracingConfig={access_token:"zpdR5rGHUKaUny6FJUZZkEfSVhzkdRSIz6dCpsjvRtQ0TSQOXZdZlbcUOSaugWHyZnMUe6PGmK60Wi59/rk=",collector_host:"lightstep.kaizen.nvidia.com",collector_port:443,component_name:"gfn-web-client",disable_clock_skew_correction:!0}},27621:function(je,z,c){"use strict";var r=c(8536).default,n=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(z,"__esModule",{value:!0}),z.CloudVariableSdkService=void 0;const v=n(c(60220)),h=n(c(81806)),f=n(c(88507)),A=c(26875),M=c(73162),T=c(54326),E=c(24877),y=c(51814),S=c(24538),l=c(78564);z.CloudVariableSdkService=class s{constructor(m,I,R,O,Y){this.sdkConfig=m,this.url=this.url=m.url,this.cvChangeListenersByName=new Map,this.cvNameToResult=new Map,this.logger=new l.Logger(m.loggingLevel),this.readFromStorage=R||this.getIndexedDBCloudVariable,this.writeToStorage=O||this.setIndexedDBCloudVariable,this.buildClientStorageKeyForCv=Y,this.cvChangeListeners=[],this.nvOpenTracing=new T.NvOpenTracingService,this.initializeOpenTracing(I),!R&&!O&&(this.idbName="gfnclient",this.storeName="kodiakSdkCacheStore",this.openDbInstance())}subscribeToAllCloudVariables(m){var I=this;return r(function*(){I.cvChangeListeners.push(m)})()}subscribeToSingleCloudVariable(m,I){let R=this.cvChangeListenersByName.get(m);R?R.push(I):R=[I],this.cvChangeListenersByName.set(m,R)}getCloudVariables(m,I,R,O){var Y=this;return r(function*(){if(I)return Y.getCloudVariablesFromCache(m);const j=yield Y.callGetCloudVariableApi(m,R,O);if(200!==j.status)return Y.getCloudVariablesFromCache(m);const fe=(0,S.formatCloudVariableResponse)(j),te=Y.detectGlobalDifferentCloudVariables(fe,m);return Y.triggerCallbackFuncs(te),Y.updateIDB(te),fe})()}getCloudVariable(m,I,R,O){var Y=this;return r(function*(){if(m){const j=yield Y.getCloudVariables([m],I,R,O);return j.has(m)?j.get(m):null}return Y.logger.error("Cannot request empty cloud variable"),null})()}initializeOpenTracing(m){this.tracer=new E.Tracer(m),this.nvOpenTracing.setTracer(this.tracer)}updateGlobalTags(m){this.nvOpenTracing.setGlobalTags(m)}updateServerUrl(m){this.url=m}startSpan(m,I){return this.nvOpenTracing.startSpan(m,I)}closeSpan(m){this.nvOpenTracing.closeSpan(m)}callGetCloudVariableApi(m,I,R){var O=this;return r(function*(){const[Y,j]=O.nvOpenTracing.injectSpanHttpHeaders(y.SpanName,R),fe=v.default.create();(0,f.default)(O.tracer)(fe,{spanName:y.AxiosSpanName,span:j}),(0,h.default)(fe,{retries:O.sdkConfig.defaultRetries,retryDelay:()=>O.sdkConfig.defaultTimeBetweenRetries,retryCondition:()=>!0});const ce=O.sdkConfig.clientInfo,H=fe.get(O.url+"/cloudvariables/v3",{params:{cvName:m.join(","),...ce,clientParams:I},data:{},headers:{"Content-type":"application/json",...Y}}).then(Z=>Z);return O.nvOpenTracing.handleHttpEndpointSpan(H,j)})()}getCloudVariablesFromCache(m){var I=this;return r(function*(){let R=new Map;for(const O of m){const Y=yield I.readFromStorageWrapper(O);Y&&R.set(O,Y)}return R})()}detectGlobalDifferentCloudVariables(m,I){const R=new Map;return m.forEach((O,Y)=>{const j=this.cvNameToResult.get(Y);j?(0,A.isEqual)(O,j)&&(R.set(O.name,(0,S.formatCloudVariableClientResponse)(O,!1,y.CloudVariableStatus.Updated)),this.cvNameToResult.set(Y,O)):(R.set(O.name,(0,S.formatCloudVariableClientResponse)(O,!1,y.CloudVariableStatus.Created)),this.cvNameToResult.set(Y,O))}),this.cvNameToResult.forEach((O,Y)=>{I.includes(Y)&&!m.has(Y)&&O.activity&&(R.set(Y,(0,S.formatCloudVariableClientResponse)({activity:{id:O.activity.id}},!1,y.CloudVariableStatus.Deleted)),this.cvNameToResult.set(Y,{}),this.writeToStorageWrapper(Y,{}))}),R}triggerCallbackFuncs(m){this.cvChangeListeners.forEach(I=>{I(m)}),m.forEach((I,R)=>{const O=this.cvChangeListenersByName.get(R);O&&O.forEach(Y=>Y(m))})}updateIDB(m){m.forEach((I,R)=>{this.writeToStorageWrapper(R,{activity:I.activity,result:I.variation,name:I.name,metadata:I.metadata,value:I.value})})}readFromStorageWrapper(m){var I=this;return r(function*(){const R=(0,S.generateUserIdStorageKey)(m,I.sdkConfig.clientInfo.userId);let O=yield I.readFromStorage(R);if(O)return O;const Y=(0,S.generateDeviceIdStorageKey)(m,I.sdkConfig.clientInfo.deviceId);return O=yield I.readFromStorage(Y),O||null})()}writeToStorageWrapper(m,I){if((0,A.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 m=this;return r(function*(){const I=yield(0,M.openDB)(m.idbName),R=I.version,O=m.storeName;I.objectStoreNames.contains(O)||(0,M.openDB)(m.idbName,R+1,{upgrade(Y){Y.createObjectStore(O)}}),I.close()})()}generateIndexedDBKey(m){const I=m.name;let R;switch(m.activity.activationType){case y.ExperimentActivationType.USER_ID:R=(0,S.generateUserIdStorageKey)(I,this.sdkConfig.clientInfo.userId);break;case y.ExperimentActivationType.DEVICE_ID:R=(0,S.generateDeviceIdStorageKey)(I,this.sdkConfig.clientInfo.deviceId);break;default:R=I+"-undefined"}return R}getIndexedDBCloudVariable(m){var I=this;return r(function*(){const R=m.split("-")[0],O=yield(0,M.openDB)(I.idbName),Y=yield O.get(I.storeName,m);if(O.close(),Y){const j=Y.cloudVariables.filter(fe=>fe.name===R);return 0===j.length?null:j[0]}return null})()}setIndexedDBCloudVariable(m,I){var R=this;return r(function*(){let O=yield(0,M.openDB)(R.idbName);const Y=R.storeName,j=O.version;if((0,A.isEmpty)(I)||void 0===I.name)return yield O.delete(R.storeName,m),void O.close();O.objectStoreNames.contains(Y)||(O=yield(0,M.openDB)(R.idbName,j+1,{upgrade(fe){fe.createObjectStore(Y)}})),yield O.put(R.storeName,I,m),O.close()})()}}},24538:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.getCommonClientVariant=z.generateDeviceIdStorageKey=z.generateUserIdStorageKey=z.formatCloudVariableClientResponse=z.formatCloudVariableResponse=void 0;const r=c(51814);z.formatCloudVariableResponse=function n(M){const T=M.data,E=new Map;return T.cloudVariables.forEach(y=>{E.set(y.name,{name:y.name,result:y.result,value:y.value,activity:y.activity,metadata:y.metadata})}),E},z.formatCloudVariableClientResponse=function v(M,T,E){return{name:M.name,variation:M.result,value:M.value,activity:M.activity,metadata:M.metadata,isCachedResult:T,state:E}},z.generateUserIdStorageKey=function h(M,T){return M+"-"+T},z.generateDeviceIdStorageKey=function f(M,T){return M+"-"+T},z.getCommonClientVariant=function A(M){switch(M){case"ibeta":return r.CommonClientVariant.iBeta;case"release":return r.CommonClientVariant.Release;default:return r.CommonClientVariant.Undefined}}},88507:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});const r=c(26745);function v(M){if(M.config){const{span:T}=M.config;try{T.setTag(r.Tags.ERROR,!0),T.setTag("reason","error in request"),T.finish()}catch{}}return Promise.reject(M)}function h(M){if(M.config&&M.config.span){const{span:T}=M.config;try{T.setTag(r.Tags.HTTP_STATUS_CODE,M.status),T.finish()}catch{}}return M}function f(M){if(M.config){const{span:T}=M.config;try{T.setTag(r.Tags.ERROR,!0),T.setTag(r.Tags.HTTP_STATUS_CODE,M.code),T.finish()}catch{}}return Promise.reject(M)}z.default=function A(M=r.globalTracer()){return function(E,y={}){const{spanName:S,span:l}=y;if(!E)throw new TypeError("axios-opentracing: axios or axios instance required!");if(!y||!S&&!l)throw new TypeError("axios-opentracing: either span or spanName should be passed in options!");const s=l||M.startSpan(S);return E.interceptors.request.use(function n(M,T){return function(y){const S=y;try{const l=M.startSpan(`${y.method}: ${y.baseURL}${y.url}`,{childOf:T});l.setTag(r.Tags.HTTP_METHOD,y.method),l.setTag(r.Tags.HTTP_URL,y.url),l.setTag(r.Tags.SPAN_KIND,r.Tags.SPAN_KIND_RPC_CLIENT),M.inject(l,r.FORMAT_HTTP_HEADERS,y.headers),S.span=l}catch{}return S}}(M,s),v),E.interceptors.response.use(h,f),s}}},60220:(je,z,c)=>{je.exports=c(69402)},86563:(je,z,c)=>{"use strict";var r=c(16945),n=c(97403),v=c(17593),h=c(26985),f=c(18004),A=c(27199),M=c(6771),T=c(42297),E=c(85600),y=c(4972),S=c(43717);je.exports=function(s){return new Promise(function(m,I){var j,R=s.data,O=s.headers,Y=s.responseType;function fe(){s.cancelToken&&s.cancelToken.unsubscribe(j),s.signal&&s.signal.removeEventListener("abort",j)}r.isFormData(R)&&r.isStandardBrowserEnv()&&delete O["Content-Type"];var te=new XMLHttpRequest;if(s.auth){var ce=s.auth.username||"",H=s.auth.password?unescape(encodeURIComponent(s.auth.password)):"";O.Authorization="Basic "+btoa(ce+":"+H)}var Z=f(s.baseURL,s.url);function X(){if(te){var be="getAllResponseHeaders"in te?A(te.getAllResponseHeaders()):null;n(function(ge){m(ge),fe()},function(ge){I(ge),fe()},{data:Y&&"text"!==Y&&"json"!==Y?te.response:te.responseText,status:te.status,statusText:te.statusText,headers:be,config:s,request:te}),te=null}}if(te.open(s.method.toUpperCase(),h(Z,s.params,s.paramsSerializer),!0),te.timeout=s.timeout,"onloadend"in te?te.onloadend=X:te.onreadystatechange=function(){!te||4!==te.readyState||0===te.status&&(!te.responseURL||0!==te.responseURL.indexOf("file:"))||setTimeout(X)},te.onabort=function(){te&&(I(new E("Request aborted",E.ECONNABORTED,s,te)),te=null)},te.onerror=function(){I(new E("Network Error",E.ERR_NETWORK,s,te,te)),te=null},te.ontimeout=function(){var Q=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";s.timeoutErrorMessage&&(Q=s.timeoutErrorMessage),I(new E(Q,(s.transitional||T).clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,s,te)),te=null},r.isStandardBrowserEnv()){var ue=(s.withCredentials||M(Z))&&s.xsrfCookieName?v.read(s.xsrfCookieName):void 0;ue&&(O[s.xsrfHeaderName]=ue)}"setRequestHeader"in te&&r.forEach(O,function(Q,ne){typeof R>"u"&&"content-type"===ne.toLowerCase()?delete O[ne]:te.setRequestHeader(ne,Q)}),r.isUndefined(s.withCredentials)||(te.withCredentials=!!s.withCredentials),Y&&"json"!==Y&&(te.responseType=s.responseType),"function"==typeof s.onDownloadProgress&&te.addEventListener("progress",s.onDownloadProgress),"function"==typeof s.onUploadProgress&&te.upload&&te.upload.addEventListener("progress",s.onUploadProgress),(s.cancelToken||s.signal)&&(j=function(be){te&&(I(!be||be&&be.type?new y:be),te.abort(),te=null)},s.cancelToken&&s.cancelToken.subscribe(j),s.signal&&(s.signal.aborted?j():s.signal.addEventListener("abort",j))),R||(R=null);var Me=S(Z);Me&&-1===["http","https","file"].indexOf(Me)?I(new E("Unsupported protocol "+Me+":",E.ERR_BAD_REQUEST,s)):te.send(R)})}},69402:(je,z,c)=>{"use strict";var r=c(16945),n=c(12063),v=c(36048),h=c(11256),M=function A(T){var E=new v(T),y=n(v.prototype.request,E);return r.extend(y,v.prototype,E),r.extend(y,E),y.create=function(l){return A(h(T,l))},y}(c(25923));M.Axios=v,M.CanceledError=c(4972),M.CancelToken=c(96240),M.isCancel=c(61721),M.VERSION=c(27938).version,M.toFormData=c(97531),M.AxiosError=c(85600),M.Cancel=M.CanceledError,M.all=function(E){return Promise.all(E)},M.spread=c(98631),M.isAxiosError=c(8816),je.exports=M,je.exports.default=M},96240:(je,z,c)=>{"use strict";var r=c(4972);function n(v){if("function"!=typeof v)throw new TypeError("executor must be a function.");var h;this.promise=new Promise(function(M){h=M});var f=this;this.promise.then(function(A){if(f._listeners){var M,T=f._listeners.length;for(M=0;M<T;M++)f._listeners[M](A);f._listeners=null}}),this.promise.then=function(A){var M,T=new Promise(function(E){f.subscribe(E),M=E}).then(A);return T.cancel=function(){f.unsubscribe(M)},T},v(function(M){f.reason||(f.reason=new r(M),h(f.reason))})}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(h){this.reason?h(this.reason):this._listeners?this._listeners.push(h):this._listeners=[h]},n.prototype.unsubscribe=function(h){if(this._listeners){var f=this._listeners.indexOf(h);-1!==f&&this._listeners.splice(f,1)}},n.source=function(){var h;return{token:new n(function(M){h=M}),cancel:h}},je.exports=n},4972:(je,z,c)=>{"use strict";var r=c(85600);function v(h){r.call(this,h??"canceled",r.ERR_CANCELED),this.name="CanceledError"}c(16945).inherits(v,r,{__CANCEL__:!0}),je.exports=v},61721:je=>{"use strict";je.exports=function(c){return!(!c||!c.__CANCEL__)}},36048:(je,z,c)=>{"use strict";var r=c(16945),n=c(26985),v=c(48762),h=c(56329),f=c(11256),A=c(18004),M=c(59520),T=M.validators;function E(y){this.defaults=y,this.interceptors={request:new v,response:new v}}E.prototype.request=function(S,l){"string"==typeof S?(l=l||{}).url=S:l=S||{},(l=f(this.defaults,l)).method=l.method?l.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var s=l.transitional;void 0!==s&&M.assertOptions(s,{silentJSONParsing:T.transitional(T.boolean),forcedJSONParsing:T.transitional(T.boolean),clarifyTimeoutError:T.transitional(T.boolean)},!1);var u=[],m=!0;this.interceptors.request.forEach(function(ce){"function"==typeof ce.runWhen&&!1===ce.runWhen(l)||(m=m&&ce.synchronous,u.unshift(ce.fulfilled,ce.rejected))});var R,I=[];if(this.interceptors.response.forEach(function(ce){I.push(ce.fulfilled,ce.rejected)}),!m){var O=[h,void 0];for(Array.prototype.unshift.apply(O,u),O=O.concat(I),R=Promise.resolve(l);O.length;)R=R.then(O.shift(),O.shift());return R}for(var Y=l;u.length;){var j=u.shift(),fe=u.shift();try{Y=j(Y)}catch(te){fe(te);break}}try{R=h(Y)}catch(te){return Promise.reject(te)}for(;I.length;)R=R.then(I.shift(),I.shift());return R},E.prototype.getUri=function(S){S=f(this.defaults,S);var l=A(S.baseURL,S.url);return n(l,S.params,S.paramsSerializer)},r.forEach(["delete","get","head","options"],function(S){E.prototype[S]=function(l,s){return this.request(f(s||{},{method:S,url:l,data:(s||{}).data}))}}),r.forEach(["post","put","patch"],function(S){function l(s){return function(m,I,R){return this.request(f(R||{},{method:S,headers:s?{"Content-Type":"multipart/form-data"}:{},url:m,data:I}))}}E.prototype[S]=l(),E.prototype[S+"Form"]=l(!0)}),je.exports=E},85600:(je,z,c)=>{"use strict";var r=c(16945);function n(f,A,M,T,E){Error.call(this),this.message=f,this.name="AxiosError",A&&(this.code=A),M&&(this.config=M),T&&(this.request=T),E&&(this.response=E)}r.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var v=n.prototype,h={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(f){h[f]={value:f}}),Object.defineProperties(n,h),Object.defineProperty(v,"isAxiosError",{value:!0}),n.from=function(f,A,M,T,E,y){var S=Object.create(v);return r.toFlatObject(f,S,function(s){return s!==Error.prototype}),n.call(S,f.message,A,M,T,E),S.name=f.name,y&&Object.assign(S,y),S},je.exports=n},48762:(je,z,c)=>{"use strict";var r=c(16945);function n(){this.handlers=[]}n.prototype.use=function(h,f,A){return this.handlers.push({fulfilled:h,rejected:f,synchronous:!!A&&A.synchronous,runWhen:A?A.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(h){this.handlers[h]&&(this.handlers[h]=null)},n.prototype.forEach=function(h){r.forEach(this.handlers,function(A){null!==A&&h(A)})},je.exports=n},18004:(je,z,c)=>{"use strict";var r=c(30804),n=c(24617);je.exports=function(h,f){return h&&!r(f)?n(h,f):f}},56329:(je,z,c)=>{"use strict";var r=c(16945),n=c(96734),v=c(61721),h=c(25923),f=c(4972);function A(M){if(M.cancelToken&&M.cancelToken.throwIfRequested(),M.signal&&M.signal.aborted)throw new f}je.exports=function(T){return A(T),T.headers=T.headers||{},T.data=n.call(T,T.data,T.headers,T.transformRequest),T.headers=r.merge(T.headers.common||{},T.headers[T.method]||{},T.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(S){delete T.headers[S]}),(T.adapter||h.adapter)(T).then(function(S){return A(T),S.data=n.call(T,S.data,S.headers,T.transformResponse),S},function(S){return v(S)||(A(T),S&&S.response&&(S.response.data=n.call(T,S.response.data,S.response.headers,T.transformResponse))),Promise.reject(S)})}},11256:(je,z,c)=>{"use strict";var r=c(16945);je.exports=function(v,h){h=h||{};var f={};function A(l,s){return r.isPlainObject(l)&&r.isPlainObject(s)?r.merge(l,s):r.isPlainObject(s)?r.merge({},s):r.isArray(s)?s.slice():s}function M(l){return r.isUndefined(h[l])?r.isUndefined(v[l])?void 0:A(void 0,v[l]):A(v[l],h[l])}function T(l){if(!r.isUndefined(h[l]))return A(void 0,h[l])}function E(l){return r.isUndefined(h[l])?r.isUndefined(v[l])?void 0:A(void 0,v[l]):A(void 0,h[l])}function y(l){return l in h?A(v[l],h[l]):l in v?A(void 0,v[l]):void 0}var S={url:T,method:T,data:T,baseURL:E,transformRequest:E,transformResponse:E,paramsSerializer:E,timeout:E,timeoutMessage:E,withCredentials:E,adapter:E,responseType:E,xsrfCookieName:E,xsrfHeaderName:E,onUploadProgress:E,onDownloadProgress:E,decompress:E,maxContentLength:E,maxBodyLength:E,beforeRedirect:E,transport:E,httpAgent:E,httpsAgent:E,cancelToken:E,socketPath:E,responseEncoding:E,validateStatus:y};return r.forEach(Object.keys(v).concat(Object.keys(h)),function(s){var u=S[s]||M,m=u(s);r.isUndefined(m)&&u!==y||(f[s]=m)}),f}},97403:(je,z,c)=>{"use strict";var r=c(85600);je.exports=function(v,h,f){var A=f.config.validateStatus;f.status&&A&&!A(f.status)?h(new r("Request failed with status code "+f.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(f.status/100)-4],f.config,f.request,f)):v(f)}},96734:(je,z,c)=>{"use strict";var r=c(16945),n=c(25923);je.exports=function(h,f,A){var M=this||n;return r.forEach(A,function(E){h=E.call(M,h,f)}),h}},25923:(je,z,c)=>{"use strict";var r=c(16945),n=c(92143),v=c(85600),h=c(42297),f=c(97531),A={"Content-Type":"application/x-www-form-urlencoded"};function M(S,l){!r.isUndefined(S)&&r.isUndefined(S["Content-Type"])&&(S["Content-Type"]=l)}var y={transitional:h,adapter:function T(){var S;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&"[object process]"===Object.prototype.toString.call(process))&&(S=c(86563)),S}(),transformRequest:[function(l,s){if(n(s,"Accept"),n(s,"Content-Type"),r.isFormData(l)||r.isArrayBuffer(l)||r.isBuffer(l)||r.isStream(l)||r.isFile(l)||r.isBlob(l))return l;if(r.isArrayBufferView(l))return l.buffer;if(r.isURLSearchParams(l))return M(s,"application/x-www-form-urlencoded;charset=utf-8"),l.toString();var I,u=r.isObject(l),m=s&&s["Content-Type"];if((I=r.isFileList(l))||u&&"multipart/form-data"===m){var R=this.env&&this.env.FormData;return f(I?{"files[]":l}:l,R&&new R)}return u||"application/json"===m?(M(s,"application/json"),function E(S,l,s){if(r.isString(S))try{return(l||JSON.parse)(S),r.trim(S)}catch(u){if("SyntaxError"!==u.name)throw u}return(s||JSON.stringify)(S)}(l)):l}],transformResponse:[function(l){var s=this.transitional||y.transitional,I=!(s&&s.silentJSONParsing)&&"json"===this.responseType;if(I||s&&s.forcedJSONParsing&&r.isString(l)&&l.length)try{return JSON.parse(l)}catch(R){if(I)throw"SyntaxError"===R.name?v.from(R,v.ERR_BAD_RESPONSE,this,null,this.response):R}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:c(79725)},validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(l){y.headers[l]={}}),r.forEach(["post","put","patch"],function(l){y.headers[l]=r.merge(A)}),je.exports=y},42297:je=>{"use strict";je.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},27938:je=>{je.exports={version:"0.27.2"}},12063:je=>{"use strict";je.exports=function(c,r){return function(){for(var v=new Array(arguments.length),h=0;h<v.length;h++)v[h]=arguments[h];return c.apply(r,v)}}},26985:(je,z,c)=>{"use strict";var r=c(16945);function n(v){return encodeURIComponent(v).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}je.exports=function(h,f,A){if(!f)return h;var M;if(A)M=A(f);else if(r.isURLSearchParams(f))M=f.toString();else{var T=[];r.forEach(f,function(S,l){null===S||typeof S>"u"||(r.isArray(S)?l+="[]":S=[S],r.forEach(S,function(u){r.isDate(u)?u=u.toISOString():r.isObject(u)&&(u=JSON.stringify(u)),T.push(n(l)+"="+n(u))}))}),M=T.join("&")}if(M){var E=h.indexOf("#");-1!==E&&(h=h.slice(0,E)),h+=(-1===h.indexOf("?")?"?":"&")+M}return h}},24617:je=>{"use strict";je.exports=function(c,r){return r?c.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):c}},17593:(je,z,c)=>{"use strict";var r=c(16945);je.exports=r.isStandardBrowserEnv()?function(){return{write:function(h,f,A,M,T,E){var y=[];y.push(h+"="+encodeURIComponent(f)),r.isNumber(A)&&y.push("expires="+new Date(A).toGMTString()),r.isString(M)&&y.push("path="+M),r.isString(T)&&y.push("domain="+T),!0===E&&y.push("secure"),document.cookie=y.join("; ")},read:function(h){var f=document.cookie.match(new RegExp("(^|;\\s*)("+h+")=([^;]*)"));return f?decodeURIComponent(f[3]):null},remove:function(h){this.write(h,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},30804:je=>{"use strict";je.exports=function(c){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(c)}},8816:(je,z,c)=>{"use strict";var r=c(16945);je.exports=function(v){return r.isObject(v)&&!0===v.isAxiosError}},6771:(je,z,c)=>{"use strict";var r=c(16945);je.exports=r.isStandardBrowserEnv()?function(){var f,v=/(msie|trident)/i.test(navigator.userAgent),h=document.createElement("a");function A(M){var T=M;return v&&(h.setAttribute("href",T),T=h.href),h.setAttribute("href",T),{href:h.href,protocol:h.protocol?h.protocol.replace(/:$/,""):"",host:h.host,search:h.search?h.search.replace(/^\?/,""):"",hash:h.hash?h.hash.replace(/^#/,""):"",hostname:h.hostname,port:h.port,pathname:"/"===h.pathname.charAt(0)?h.pathname:"/"+h.pathname}}return f=A(window.location.href),function(T){var E=r.isString(T)?A(T):T;return E.protocol===f.protocol&&E.host===f.host}}():function(){return function(){return!0}}()},92143:(je,z,c)=>{"use strict";var r=c(16945);je.exports=function(v,h){r.forEach(v,function(A,M){M!==h&&M.toUpperCase()===h.toUpperCase()&&(v[h]=A,delete v[M])})}},79725:je=>{je.exports=null},27199:(je,z,c)=>{"use strict";var r=c(16945),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];je.exports=function(h){var A,M,T,f={};return h&&r.forEach(h.split("\n"),function(y){if(T=y.indexOf(":"),A=r.trim(y.substr(0,T)).toLowerCase(),M=r.trim(y.substr(T+1)),A){if(f[A]&&n.indexOf(A)>=0)return;f[A]="set-cookie"===A?(f[A]?f[A]:[]).concat([M]):f[A]?f[A]+", "+M:M}}),f}},43717:je=>{"use strict";je.exports=function(c){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(c);return r&&r[1]||""}},98631:je=>{"use strict";je.exports=function(c){return function(n){return c.apply(null,n)}}},97531:(je,z,c)=>{"use strict";var r=c(16945);je.exports=function n(v,h){h=h||new FormData;var f=[];function A(T){return null===T?"":r.isDate(T)?T.toISOString():r.isArrayBuffer(T)||r.isTypedArray(T)?"function"==typeof Blob?new Blob([T]):Buffer.from(T):T}return function M(T,E){if(r.isPlainObject(T)||r.isArray(T)){if(-1!==f.indexOf(T))throw Error("Circular reference detected in "+E);f.push(T),r.forEach(T,function(S,l){if(!r.isUndefined(S)){var u,s=E?E+"."+l:l;if(S&&!E&&"object"==typeof S)if(r.endsWith(l,"{}"))S=JSON.stringify(S);else if(r.endsWith(l,"[]")&&(u=r.toArray(S)))return void u.forEach(function(m){!r.isUndefined(m)&&h.append(s,A(m))});M(S,s)}}),f.pop()}else h.append(E,A(T))}(v),h}},59520:(je,z,c)=>{"use strict";var r=c(27938).version,n=c(85600),v={};["object","boolean","number","function","string","symbol"].forEach(function(A,M){v[A]=function(E){return typeof E===A||"a"+(M<1?"n ":" ")+A}});var h={};v.transitional=function(M,T,E){function y(S,l){return"[Axios v"+r+"] Transitional option '"+S+"'"+l+(E?". "+E:"")}return function(S,l,s){if(!1===M)throw new n(y(l," has been removed"+(T?" in "+T:"")),n.ERR_DEPRECATED);return T&&!h[l]&&(h[l]=!0,console.warn(y(l," has been deprecated since v"+T+" and will be removed in the near future"))),!M||M(S,l,s)}},je.exports={assertOptions:function f(A,M,T){if("object"!=typeof A)throw new n("options must be an object",n.ERR_BAD_OPTION_VALUE);for(var E=Object.keys(A),y=E.length;y-- >0;){var S=E[y],l=M[S];if(l){var s=A[S],u=void 0===s||l(s,S,A);if(!0!==u)throw new n("option "+S+" must be "+u,n.ERR_BAD_OPTION_VALUE)}else if(!0!==T)throw new n("Unknown option "+S,n.ERR_BAD_OPTION)}},validators:v}},16945:(je,z,c)=>{"use strict";var r=c(12063),n=Object.prototype.toString,v=function(ge){return function(Xe){var ot=n.call(Xe);return ge[ot]||(ge[ot]=ot.slice(8,-1).toLowerCase())}}(Object.create(null));function h(ge){return ge=ge.toLowerCase(),function(ot){return v(ot)===ge}}function f(ge){return Array.isArray(ge)}function A(ge){return typeof ge>"u"}var T=h("ArrayBuffer");function l(ge){return null!==ge&&"object"==typeof ge}function s(ge){if("object"!==v(ge))return!1;var Xe=Object.getPrototypeOf(ge);return null===Xe||Xe===Object.prototype}var u=h("Date"),m=h("File"),I=h("Blob"),R=h("FileList");function O(ge){return"[object Function]"===n.call(ge)}var fe=h("URLSearchParams");function H(ge,Xe){if(!(null===ge||typeof ge>"u"))if("object"!=typeof ge&&(ge=[ge]),f(ge))for(var ot=0,dt=ge.length;ot<dt;ot++)Xe.call(null,ge[ot],ot,ge);else for(var xe in ge)Object.prototype.hasOwnProperty.call(ge,xe)&&Xe.call(null,ge[xe],xe,ge)}var Ge=function(ge){return function(Xe){return ge&&Xe instanceof ge}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));je.exports={isArray:f,isArrayBuffer:T,isBuffer:function M(ge){return null!==ge&&!A(ge)&&null!==ge.constructor&&!A(ge.constructor)&&"function"==typeof ge.constructor.isBuffer&&ge.constructor.isBuffer(ge)},isFormData:function j(ge){var Xe="[object FormData]";return ge&&("function"==typeof FormData&&ge instanceof FormData||n.call(ge)===Xe||O(ge.toString)&&ge.toString()===Xe)},isArrayBufferView:function E(ge){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(ge):ge&&ge.buffer&&T(ge.buffer)},isString:function y(ge){return"string"==typeof ge},isNumber:function S(ge){return"number"==typeof ge},isObject:l,isPlainObject:s,isUndefined:A,isDate:u,isFile:m,isBlob:I,isFunction:O,isStream:function Y(ge){return l(ge)&&O(ge.pipe)},isURLSearchParams:fe,isStandardBrowserEnv:function ce(){return(!(typeof navigator<"u")||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&typeof window<"u"&&typeof document<"u"},forEach:H,merge:function Z(){var ge={};function Xe(xe,Re){ge[Re]=s(ge[Re])&&s(xe)?Z(ge[Re],xe):s(xe)?Z({},xe):f(xe)?xe.slice():xe}for(var ot=0,dt=arguments.length;ot<dt;ot++)H(arguments[ot],Xe);return ge},extend:function X(ge,Xe,ot){return H(Xe,function(xe,Re){ge[Re]=ot&&"function"==typeof xe?r(xe,ot):xe}),ge},trim:function te(ge){return ge.trim?ge.trim():ge.replace(/^\s+|\s+$/g,"")},stripBOM:function ue(ge){return 65279===ge.charCodeAt(0)&&(ge=ge.slice(1)),ge},inherits:function Me(ge,Xe,ot,dt){ge.prototype=Object.create(Xe.prototype,dt),ge.prototype.constructor=ge,ot&&Object.assign(ge.prototype,ot)},toFlatObject:function be(ge,Xe,ot){var dt,xe,Re,Ue={};Xe=Xe||{};do{for(xe=(dt=Object.getOwnPropertyNames(ge)).length;xe-- >0;)Ue[Re=dt[xe]]||(Xe[Re]=ge[Re],Ue[Re]=!0);ge=Object.getPrototypeOf(ge)}while(ge&&(!ot||ot(ge,Xe))&&ge!==Object.prototype);return Xe},kindOf:v,kindOfTest:h,endsWith:function Q(ge,Xe,ot){ge=String(ge),(void 0===ot||ot>ge.length)&&(ot=ge.length);var dt=ge.indexOf(Xe,ot-=Xe.length);return-1!==dt&&dt===ot},toArray:function ne(ge){if(!ge)return null;var Xe=ge.length;if(A(Xe))return null;for(var ot=new Array(Xe);Xe-- >0;)ot[Xe]=ge[Xe];return ot},isTypedArray:Ge,isFileList:R}},73162:(je,z,c)=>{"use strict";c.r(z),c.d(z,{deleteDB:()=>fe,openDB:()=>j,unwrap:()=>Y,wrap:()=>O});var r=c(70650);const n=(X,ue)=>ue.some(Me=>X instanceof Me);let v,h;const M=new WeakMap,T=new WeakMap,E=new WeakMap,y=new WeakMap,S=new WeakMap;let u={get(X,ue,Me){if(X instanceof IDBTransaction){if("done"===ue)return T.get(X);if("objectStoreNames"===ue)return X.objectStoreNames||E.get(X);if("store"===ue)return Me.objectStoreNames[1]?void 0:Me.objectStore(Me.objectStoreNames[0])}return O(X[ue])},set:(X,ue,Me)=>(X[ue]=Me,!0),has:(X,ue)=>X instanceof IDBTransaction&&("done"===ue||"store"===ue)||ue in X};function R(X){return"function"==typeof X?function I(X){return X!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function A(){return h||(h=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(X)?function(...ue){return X.apply(Y(this),ue),O(M.get(this))}:function(...ue){return O(X.apply(Y(this),ue))}:function(ue,...Me){const be=X.call(Y(this),ue,...Me);return E.set(be,ue.sort?ue.sort():[ue]),O(be)}}(X):(X instanceof IDBTransaction&&function s(X){if(T.has(X))return;const ue=new Promise((Me,be)=>{const Q=()=>{X.removeEventListener("complete",ne),X.removeEventListener("error",Ge),X.removeEventListener("abort",Ge)},ne=()=>{Me(),Q()},Ge=()=>{be(X.error||new DOMException("AbortError","AbortError")),Q()};X.addEventListener("complete",ne),X.addEventListener("error",Ge),X.addEventListener("abort",Ge)});T.set(X,ue)}(X),n(X,function f(){return v||(v=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(X,u):X)}function O(X){if(X instanceof IDBRequest)return function l(X){const ue=new Promise((Me,be)=>{const Q=()=>{X.removeEventListener("success",ne),X.removeEventListener("error",Ge)},ne=()=>{Me(O(X.result)),Q()},Ge=()=>{be(X.error),Q()};X.addEventListener("success",ne),X.addEventListener("error",Ge)});return ue.then(Me=>{Me instanceof IDBCursor&&M.set(Me,X)}).catch(()=>{}),S.set(ue,X),ue}(X);if(y.has(X))return y.get(X);const ue=R(X);return ue!==X&&(y.set(X,ue),S.set(ue,X)),ue}const Y=X=>S.get(X);function j(X,ue,{blocked:Me,upgrade:be,blocking:Q,terminated:ne}={}){const Ge=indexedDB.open(X,ue),ge=O(Ge);return be&&Ge.addEventListener("upgradeneeded",Xe=>{be(O(Ge.result),Xe.oldVersion,Xe.newVersion,O(Ge.transaction))}),Me&&Ge.addEventListener("blocked",()=>Me()),ge.then(Xe=>{ne&&Xe.addEventListener("close",()=>ne()),Q&&Xe.addEventListener("versionchange",()=>Q())}).catch(()=>{}),ge}function fe(X,{blocked:ue}={}){const Me=indexedDB.deleteDatabase(X);return ue&&Me.addEventListener("blocked",()=>ue()),O(Me).then(()=>{})}const te=["get","getKey","getAll","getAllKeys","count"],ce=["put","add","delete","clear"],H=new Map;function Z(X,ue){if(!(X instanceof IDBDatabase)||ue in X||"string"!=typeof ue)return;if(H.get(ue))return H.get(ue);const Me=ue.replace(/FromIndex$/,""),be=ue!==Me,Q=ce.includes(Me);if(!(Me in(be?IDBIndex:IDBObjectStore).prototype)||!Q&&!te.includes(Me))return;const ne=function(){var Ge=(0,r.A)(function*(ge,...Xe){const ot=this.transaction(ge,Q?"readwrite":"readonly");let dt=ot.store;return be&&(dt=dt.index(Xe.shift())),(yield Promise.all([dt[Me](...Xe),Q&&ot.done]))[0]});return function(Xe){return Ge.apply(this,arguments)}}();return H.set(ue,ne),ne}!function m(X){u=X(u)}(X=>({...X,get:(ue,Me,be)=>Z(ue,Me)||X.get(ue,Me,be),has:(ue,Me)=>!!Z(ue,Me)||X.has(ue,Me)}))},54326:function(je,z,c){"use strict";var r=this&&this.__createBinding||(Object.create?function(v,h,f,A){void 0===A&&(A=f),Object.defineProperty(v,A,{enumerable:!0,get:function(){return h[f]}})}:function(v,h,f,A){void 0===A&&(A=f),v[A]=h[f]}),n=this&&this.__exportStar||function(v,h){for(var f in v)"default"!==f&&!h.hasOwnProperty(f)&&r(h,v,f)};z.__esModule=!0,n(c(22909),z)},22909:(je,z,c)=>{"use strict";z.__esModule=!0,z.NvOpenTracingService=z.SpanNames=z.SpanTagNames=void 0;var n,f,r=c(26745);(f=n=z.SpanTagNames||(z.SpanTagNames={})).HttpUrl="http.url",f.HttpStatusCode="http.status_code",f.Error="error",f.SpanKind="span.kind",f.ClientOs="client.os",f.ClientOsName="client.os.name",f.ClientOsVersion="client.os.version",f.ServiceVersion="service.version",f.ServiceType="service.type",f.DeviceId="deviceId",f.AppName="appName",f.CountryCode="countryCode",function(f){f.GxTargetGetSurvey="GxTargetGetSurvey",f.GxTargetPutSurvey="GxTargetPutSurvey"}(z.SpanNames||(z.SpanNames={}));var h=function(){function f(){}return f.prototype.handleHttpEndpointSpan=function(A,M,T){var E=this;return M?A.then(function(y){return E.handleHttpSuccess(M),E.closeSpan(M),y}).catch(function(y){throw E.handleHttpError(M,y),E.closeSpan(M),y}):A},f.prototype.injectSpanHttpHeaders=function(A,M){for(var T=this.startSpan(A,M),E={},y=this.inject(r.FORMAT_HTTP_HEADERS,T),l=0,s=Object.keys(y);l<s.length;l++){var u=s[l];E[u]=y[u]}return[E,T]},f.prototype.handleHttpSuccess=function(A){A.setTag(n.Error,!1)},f.prototype.setTracer=function(A){this.tracer=A},f.prototype.setGlobalTags=function(A){this.commonTags=A},f.prototype.handleHttpError=function(A,M){A.setTag(n.Error,!0),A.setTag(n.HttpStatusCode,M&&M.status||0)},f.prototype.closeSpan=function(A){A&&(A.addTags(this.commonTags),A.finish())},f.prototype.inject=function(A,M){var T={};return this.tracer&&this.tracer.inject(M,A,T),T},f.prototype.startSpan=function(A,M){var T;return this.tracer&&(T=M?this.tracer.startSpan(A,{childOf:M}):this.tracer.startSpan(A)),T},f.prototype.extractContextFromTextMap=function(A){return this.tracer.extract(r.FORMAT_TEXT_MAP,A)},f}();z.NvOpenTracingService=h},1794:function(je,z,c){"use strict";var r=this&&this.__createBinding||(Object.create?function(v,h,f,A){void 0===A&&(A=f),Object.defineProperty(v,A,{enumerable:!0,get:function(){return h[f]}})}:function(v,h,f,A){void 0===A&&(A=f),v[A]=h[f]}),n=this&&this.__exportStar||function(v,h){for(var f in v)"default"!==f&&!h.hasOwnProperty(f)&&r(h,v,f)};Object.defineProperty(z,"__esModule",{value:!0}),n(c(85270),z),n(c(93761),z)},93761:(je,z)=>{"use strict";var c,M,r;Object.defineProperty(z,"__esModule",{value:!0}),z.isValidEvent=z.subscribeToIFrameEvents=z.initIFrameCommsChannel=z.LogLevel=z.SurveyEventType=void 0,(M=c=z.SurveyEventType||(z.SurveyEventType={})).Submitted="SURVEY_SUBMITTED",M.Dismissed="SURVEY_DISMISSED",M.Deferred="SURVEY_DEFERRED",M.Minimized="SURVEY_MINIMIZED",M.Errored="SURVEY_ERRORED",M.SubmissionErrored="SURVEY_SUBMISSION_ERRORED",M.Timeout="SURVEY_TIMEOUT",M.CloseDialog="SURVEY_CLOSE_DIALOG",M.LoadComplete="LOAD_COMPLETE",M.ScreenChanged="SCREEN_CHANGED",M.Log="SURVEY_LOG",function(M){M.INFO="INFO",M.WARN="WARN",M.DEBUG="DEBUG",M.ERROR="ERROR"}(r=z.LogLevel||(z.LogLevel={}));const n={logModule:"gxt-survey-app",timeStamp:(new Date).toISOString().replace("T"," ").replace("Z",""),logLevel:r.DEBUG,logTag:"gxt/surveyService",logStr:"Log message couldn't be fetched."};function v(M){return`${M.type}-${M.surveyId}`}const h={};z.initIFrameCommsChannel=()=>{const M=T=>{const E=T.data;if(E.hasOwnProperty("type")&&z.isValidEvent(E.type)){const y=h[v(E)];y&&y.forEach(S=>{if(E.type===c.Log){let l;l=E.hasOwnProperty("log")?E.log:n,S(l)}else S()})}};return window.addEventListener("message",M,!1),{unsubscribe:()=>window.removeEventListener("message",M)}},z.subscribeToIFrameEvents=function f(M,T){const E=v(M);return h.hasOwnProperty(E)||(h[E]=[]),h[E].push(T),{unsubscribe:A(M,T)}};const A=(M,T)=>()=>{const E=v(M);h[E]=h[E].filter(y=>y!==T)};z.isValidEvent=M=>Object.values(c).includes(M)},85270:function(je,z,c){"use strict";var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(z,"__esModule",{value:!0}),z.SurveySdkService=z.TriggerType=z.SurveyStatus=z.SurveySdkSpanTagNames=void 0;const n=c(54326),v=r(c(54101)),h=r(c(81806)),f=c(24877),A=c(93761),M=r(c(61874));var T,l;(l=T=z.SurveySdkSpanTagNames||(z.SurveySdkSpanTagNames={})).ReadOnly="http.readOnly",l.ClientVariant="clientVariant",l.ClientVersion="clientVersion",l.Environment="env",l.UserId="userId",l.IdpId="idpId",l.SurveyId="surveyId",function(l){l.Progress="Progress",l.Completed="Completed",l.Timeout="Timeout"}(z.SurveyStatus||(z.SurveyStatus={})),function(l){l.UXTestBanner="UXTEST_BANNER",l.SurveyBanner="SURVEY_BANNER",l.CommunicationBanner="COMMUNICATION_BANNER",l.PostGame="POST_GAME",l.Feedback="FEEDBACK",l.NotificationBanner="NOTIFICATION_BANNER"}(z.TriggerType||(z.TriggerType={})),z.SurveySdkService=class S{constructor(){this.nvOpenTracing=new n.NvOpenTracingService,this.api=v.default.create(),A.initIFrameCommsChannel()}initializeOpenTracing(s){this.tracer=new f.Tracer(s),this.nvOpenTracing.setTracer(this.tracer)}getFullSurveyUrl(s,u){const m=Object.keys(u);if(m.length>0){s+="/?";for(const I of m)s+=`${I}=${u[I]}&`;s=s.substring(0,s.length-1)}return s}initializeClientConfig(s,u){this.clientConfig=s,this.initializeOpenTracing(u)}updateGlobalTags(s){this.nvOpenTracing.setGlobalTags(s)}updateServerUrl(s){this.clientConfig.url=s}startSpan(s,u){return this.nvOpenTracing.startSpan(s,u)}extractSpanContext(s){return this.nvOpenTracing.extractContextFromTextMap(s)}closeSpan(s){this.nvOpenTracing.closeSpan(s)}set surveyStatus(s){this.activeSurveyStatus=s}get surveyStatus(){return this.activeSurveyStatus}getUserSurvey(s,u,m,I,R,O,Y,j,fe,te,ce,H,Z,X,ue,Me="2"){return this.getSurveyApi(s,u,m,!1,O,R,j,fe,te,ce,H,Z,X,ue).then(be=>{const Q=this.clientConfig.surveyContainerBaseUrl;let ne=null;const Ge=be.data;if(Object.keys(Ge).length){ne={surveyContainerUrl:this.getFullSurveyUrl(Q,{userid:s,idpId:u,locale:Y,surveyid:Ge.sid,clientid:this.clientConfig.clientId,deviceId:m,clientVersion:this.clientConfig.clientVersion,clientVariant:this.clientConfig.clientVariant||"",env:this.clientConfig.env||"",surveyTimeout:I[Ge.triggerType]||600,triggerType:Ge.triggerType,surveyVisited:Ge.surveyVisited||!1,version:Me,applicationType:R.application||"GFN",...Ge.configuration||{}}),surveyId:Ge.sid,triggerType:Ge.triggerType,bannerText:Ge.bannerText||"",notificationUrl:Ge.notificationUrl||"",surveyVisited:Ge.surveyVisited||!1};const ge=Ge.debugInfo;return ge&&ge.surveySessionId&&(ne.surveySessionId=ge.surveySessionId),ne}return ne})}isCurrentSurveyCompleted(s,u,m,I,R,O,Y,j,fe,te,ce,H,Z){return this.getSurveyApi(s,u,m,!0,I,R,O,Y,j,fe,te,ce,H,Z).then(X=>!Object.keys(X.data).length)}configureRequestApi(s,u){const[m,I]=this.nvOpenTracing.injectSpanHttpHeaders(s,u);return this.api=v.default.create({url:this.clientConfig.url,timeout:this.clientConfig.defaultTimeout}),M.default(this.tracer)(this.api,{spanName:s,span:I}),h.default(this.api,{retries:this.clientConfig.defaultRetries,retryDelay:()=>this.clientConfig.defaultTimeBetweenRetries,retryCondition:()=>!0}),[m,I]}declineUserSurvey(s,u,m,I){const[R,O]=this.configureRequestApi(n.SpanNames.GxTargetPutSurvey,I);O&&O.addTags({[T.SurveyId]:u});const Y=this.api.put(this.clientConfig.url+"/survey/v1",{},{params:{userId:s,sid:u,hasDeclined:!0,isPreview:m},headers:{"Content-Type":"application/json",...R}}).then(()=>!0);return this.nvOpenTracing.handleHttpEndpointSpan(Y,O)}submitSurveyPage(s,u,m,I,R,O,Y,j){return this.putSurveyDetails(s,u,I,m,R,O,Y,j)}getFirstSurveyPage(s,u,m,I,R,O){return this.putSurveyDetails(s,u,m,void 0,void 0,I,R,O)}putSurveyDetails(s,u,m,I,R,O,Y,j){const[fe,te]=this.configureRequestApi(n.SpanNames.GxTargetPutSurvey,Y);te&&te.addTags({[T.SurveyId]:u});const H=this.api.put(this.clientConfig.url+"/survey/v1",R?{answers:R}:{},{params:{userId:s,sid:u,pid:I,isPreview:O,locale:m,deviceId:j},headers:{"Content-Type":"application/json",...fe}}).then(Z=>{const X=Z.data;let ue={surveyId:X.sid,page:X.page,isLastPage:X.is_last_page,error:X.error};return te&&te.log(Z),ue});return this.nvOpenTracing.handleHttpEndpointSpan(H,te)}getSurveyApi(s,u,m,I=!1,R,O,Y,j,fe,te,ce,H,Z,X){const[ue,Me]=this.configureRequestApi(n.SpanNames.GxTargetGetSurvey,X);Me&&Me.addTags({[T.ReadOnly]:I});const be=this.api.get(this.clientConfig.url+"/survey/v2",{params:{clientId:this.clientConfig.clientId,deviceId:m,userId:s,idpId:u,clientVer:this.clientConfig.clientVersion,clientVariant:this.clientConfig.clientVariant,clientParams:O,deviceOS:Y,deviceType:j,deviceMake:fe,deviceModel:te,deviceOSVersion:ce,clientType:H,browserType:Z,triggerType:R.join(","),readOnly:I},headers:{...ue}}).then(Q=>{if(Me){const ne=Q.data;Object.keys(ne).length&&Me.addTags({[T.SurveyId]:ne.sid}),Me.log(Q)}return Q});return this.nvOpenTracing.handleHttpEndpointSpan(be,Me)}}},61874:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});const r=c(26745);function v(M){if(M.config){const{span:T}=M.config;try{T.setTag(r.Tags.ERROR,!0),T.setTag("reason","error in request"),T.finish()}catch{}}return Promise.reject(M)}function h(M){if(M.config&&M.config.span){const{span:T}=M.config;try{T.setTag(r.Tags.HTTP_STATUS_CODE,M.status),T.finish()}catch{}}return M}function f(M){if(M.config){const{span:T}=M.config;try{T.setTag(r.Tags.ERROR,!0),T.setTag(r.Tags.HTTP_STATUS_CODE,M.code),T.finish()}catch{}}return Promise.reject(M)}z.default=function A(M=r.globalTracer()){return function(E,y={}){const{spanName:S,span:l}=y;if(!E)throw new TypeError("axios-opentracing: axios or axios instance required!");if(!y||!S&&!l)throw new TypeError("axios-opentracing: either span or spanName should be passed in options!");const s=l||M.startSpan(S);return E.interceptors.request.use(function n(M,T){return function(y){const S=y;try{const l=M.startSpan(`${y.method}: ${y.baseURL}${y.url}`,{childOf:T});l.setTag(r.Tags.HTTP_METHOD,y.method),l.setTag(r.Tags.HTTP_URL,y.url),l.setTag(r.Tags.SPAN_KIND,r.Tags.SPAN_KIND_RPC_CLIENT),M.inject(l,r.FORMAT_HTTP_HEADERS,y.headers),S.span=l}catch{}return S}}(M,s),v),E.interceptors.response.use(h,f),s}}},54101:(je,z,c)=>{je.exports=c(55291)},60740:(je,z,c)=>{"use strict";var r=c(64856),n=c(62662),v=c(90184),h=c(47366),f=c(76307),A=c(55048),M=c(39494),T=c(62140),E=c(80873),y=c(83351),S=c(50876);je.exports=function(s){return new Promise(function(m,I){var j,R=s.data,O=s.headers,Y=s.responseType;function fe(){s.cancelToken&&s.cancelToken.unsubscribe(j),s.signal&&s.signal.removeEventListener("abort",j)}r.isFormData(R)&&r.isStandardBrowserEnv()&&delete O["Content-Type"];var te=new XMLHttpRequest;if(s.auth){var ce=s.auth.username||"",H=s.auth.password?unescape(encodeURIComponent(s.auth.password)):"";O.Authorization="Basic "+btoa(ce+":"+H)}var Z=f(s.baseURL,s.url);function X(){if(te){var be="getAllResponseHeaders"in te?A(te.getAllResponseHeaders()):null;n(function(ge){m(ge),fe()},function(ge){I(ge),fe()},{data:Y&&"text"!==Y&&"json"!==Y?te.response:te.responseText,status:te.status,statusText:te.statusText,headers:be,config:s,request:te}),te=null}}if(te.open(s.method.toUpperCase(),h(Z,s.params,s.paramsSerializer),!0),te.timeout=s.timeout,"onloadend"in te?te.onloadend=X:te.onreadystatechange=function(){!te||4!==te.readyState||0===te.status&&(!te.responseURL||0!==te.responseURL.indexOf("file:"))||setTimeout(X)},te.onabort=function(){te&&(I(new E("Request aborted",E.ECONNABORTED,s,te)),te=null)},te.onerror=function(){I(new E("Network Error",E.ERR_NETWORK,s,te,te)),te=null},te.ontimeout=function(){var Q=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";s.timeoutErrorMessage&&(Q=s.timeoutErrorMessage),I(new E(Q,(s.transitional||T).clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,s,te)),te=null},r.isStandardBrowserEnv()){var ue=(s.withCredentials||M(Z))&&s.xsrfCookieName?v.read(s.xsrfCookieName):void 0;ue&&(O[s.xsrfHeaderName]=ue)}"setRequestHeader"in te&&r.forEach(O,function(Q,ne){typeof R>"u"&&"content-type"===ne.toLowerCase()?delete O[ne]:te.setRequestHeader(ne,Q)}),r.isUndefined(s.withCredentials)||(te.withCredentials=!!s.withCredentials),Y&&"json"!==Y&&(te.responseType=s.responseType),"function"==typeof s.onDownloadProgress&&te.addEventListener("progress",s.onDownloadProgress),"function"==typeof s.onUploadProgress&&te.upload&&te.upload.addEventListener("progress",s.onUploadProgress),(s.cancelToken||s.signal)&&(j=function(be){te&&(I(!be||be&&be.type?new y:be),te.abort(),te=null)},s.cancelToken&&s.cancelToken.subscribe(j),s.signal&&(s.signal.aborted?j():s.signal.addEventListener("abort",j))),R||(R=null);var Me=S(Z);Me&&-1===["http","https","file"].indexOf(Me)?I(new E("Unsupported protocol "+Me+":",E.ERR_BAD_REQUEST,s)):te.send(R)})}},55291:(je,z,c)=>{"use strict";var r=c(64856),n=c(71408),v=c(13759),h=c(78723),M=function A(T){var E=new v(T),y=n(v.prototype.request,E);return r.extend(y,v.prototype,E),r.extend(y,E),y.create=function(l){return A(h(T,l))},y}(c(56416));M.Axios=v,M.CanceledError=c(83351),M.CancelToken=c(97947),M.isCancel=c(2148),M.VERSION=c(4181).version,M.toFormData=c(94764),M.AxiosError=c(80873),M.Cancel=M.CanceledError,M.all=function(E){return Promise.all(E)},M.spread=c(95304),M.isAxiosError=c(88399),je.exports=M,je.exports.default=M},97947:(je,z,c)=>{"use strict";var r=c(83351);function n(v){if("function"!=typeof v)throw new TypeError("executor must be a function.");var h;this.promise=new Promise(function(M){h=M});var f=this;this.promise.then(function(A){if(f._listeners){var M,T=f._listeners.length;for(M=0;M<T;M++)f._listeners[M](A);f._listeners=null}}),this.promise.then=function(A){var M,T=new Promise(function(E){f.subscribe(E),M=E}).then(A);return T.cancel=function(){f.unsubscribe(M)},T},v(function(M){f.reason||(f.reason=new r(M),h(f.reason))})}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(h){this.reason?h(this.reason):this._listeners?this._listeners.push(h):this._listeners=[h]},n.prototype.unsubscribe=function(h){if(this._listeners){var f=this._listeners.indexOf(h);-1!==f&&this._listeners.splice(f,1)}},n.source=function(){var h;return{token:new n(function(M){h=M}),cancel:h}},je.exports=n},83351:(je,z,c)=>{"use strict";var r=c(80873);function v(h){r.call(this,h??"canceled",r.ERR_CANCELED),this.name="CanceledError"}c(64856).inherits(v,r,{__CANCEL__:!0}),je.exports=v},2148:je=>{"use strict";je.exports=function(c){return!(!c||!c.__CANCEL__)}},13759:(je,z,c)=>{"use strict";var r=c(64856),n=c(47366),v=c(6699),h=c(2670),f=c(78723),A=c(76307),M=c(97749),T=M.validators;function E(y){this.defaults=y,this.interceptors={request:new v,response:new v}}E.prototype.request=function(S,l){"string"==typeof S?(l=l||{}).url=S:l=S||{},(l=f(this.defaults,l)).method=l.method?l.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var s=l.transitional;void 0!==s&&M.assertOptions(s,{silentJSONParsing:T.transitional(T.boolean),forcedJSONParsing:T.transitional(T.boolean),clarifyTimeoutError:T.transitional(T.boolean)},!1);var u=[],m=!0;this.interceptors.request.forEach(function(ce){"function"==typeof ce.runWhen&&!1===ce.runWhen(l)||(m=m&&ce.synchronous,u.unshift(ce.fulfilled,ce.rejected))});var R,I=[];if(this.interceptors.response.forEach(function(ce){I.push(ce.fulfilled,ce.rejected)}),!m){var O=[h,void 0];for(Array.prototype.unshift.apply(O,u),O=O.concat(I),R=Promise.resolve(l);O.length;)R=R.then(O.shift(),O.shift());return R}for(var Y=l;u.length;){var j=u.shift(),fe=u.shift();try{Y=j(Y)}catch(te){fe(te);break}}try{R=h(Y)}catch(te){return Promise.reject(te)}for(;I.length;)R=R.then(I.shift(),I.shift());return R},E.prototype.getUri=function(S){S=f(this.defaults,S);var l=A(S.baseURL,S.url);return n(l,S.params,S.paramsSerializer)},r.forEach(["delete","get","head","options"],function(S){E.prototype[S]=function(l,s){return this.request(f(s||{},{method:S,url:l,data:(s||{}).data}))}}),r.forEach(["post","put","patch"],function(S){function l(s){return function(m,I,R){return this.request(f(R||{},{method:S,headers:s?{"Content-Type":"multipart/form-data"}:{},url:m,data:I}))}}E.prototype[S]=l(),E.prototype[S+"Form"]=l(!0)}),je.exports=E},80873:(je,z,c)=>{"use strict";var r=c(64856);function n(f,A,M,T,E){Error.call(this),this.message=f,this.name="AxiosError",A&&(this.code=A),M&&(this.config=M),T&&(this.request=T),E&&(this.response=E)}r.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var v=n.prototype,h={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(f){h[f]={value:f}}),Object.defineProperties(n,h),Object.defineProperty(v,"isAxiosError",{value:!0}),n.from=function(f,A,M,T,E,y){var S=Object.create(v);return r.toFlatObject(f,S,function(s){return s!==Error.prototype}),n.call(S,f.message,A,M,T,E),S.name=f.name,y&&Object.assign(S,y),S},je.exports=n},6699:(je,z,c)=>{"use strict";var r=c(64856);function n(){this.handlers=[]}n.prototype.use=function(h,f,A){return this.handlers.push({fulfilled:h,rejected:f,synchronous:!!A&&A.synchronous,runWhen:A?A.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(h){this.handlers[h]&&(this.handlers[h]=null)},n.prototype.forEach=function(h){r.forEach(this.handlers,function(A){null!==A&&h(A)})},je.exports=n},76307:(je,z,c)=>{"use strict";var r=c(1853),n=c(88556);je.exports=function(h,f){return h&&!r(f)?n(h,f):f}},2670:(je,z,c)=>{"use strict";var r=c(64856),n=c(90877),v=c(2148),h=c(56416),f=c(83351);function A(M){if(M.cancelToken&&M.cancelToken.throwIfRequested(),M.signal&&M.signal.aborted)throw new f}je.exports=function(T){return A(T),T.headers=T.headers||{},T.data=n.call(T,T.data,T.headers,T.transformRequest),T.headers=r.merge(T.headers.common||{},T.headers[T.method]||{},T.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(S){delete T.headers[S]}),(T.adapter||h.adapter)(T).then(function(S){return A(T),S.data=n.call(T,S.data,S.headers,T.transformResponse),S},function(S){return v(S)||(A(T),S&&S.response&&(S.response.data=n.call(T,S.response.data,S.response.headers,T.transformResponse))),Promise.reject(S)})}},78723:(je,z,c)=>{"use strict";var r=c(64856);je.exports=function(v,h){h=h||{};var f={};function A(l,s){return r.isPlainObject(l)&&r.isPlainObject(s)?r.merge(l,s):r.isPlainObject(s)?r.merge({},s):r.isArray(s)?s.slice():s}function M(l){return r.isUndefined(h[l])?r.isUndefined(v[l])?void 0:A(void 0,v[l]):A(v[l],h[l])}function T(l){if(!r.isUndefined(h[l]))return A(void 0,h[l])}function E(l){return r.isUndefined(h[l])?r.isUndefined(v[l])?void 0:A(void 0,v[l]):A(void 0,h[l])}function y(l){return l in h?A(v[l],h[l]):l in v?A(void 0,v[l]):void 0}var S={url:T,method:T,data:T,baseURL:E,transformRequest:E,transformResponse:E,paramsSerializer:E,timeout:E,timeoutMessage:E,withCredentials:E,adapter:E,responseType:E,xsrfCookieName:E,xsrfHeaderName:E,onUploadProgress:E,onDownloadProgress:E,decompress:E,maxContentLength:E,maxBodyLength:E,beforeRedirect:E,transport:E,httpAgent:E,httpsAgent:E,cancelToken:E,socketPath:E,responseEncoding:E,validateStatus:y};return r.forEach(Object.keys(v).concat(Object.keys(h)),function(s){var u=S[s]||M,m=u(s);r.isUndefined(m)&&u!==y||(f[s]=m)}),f}},62662:(je,z,c)=>{"use strict";var r=c(80873);je.exports=function(v,h,f){var A=f.config.validateStatus;f.status&&A&&!A(f.status)?h(new r("Request failed with status code "+f.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(f.status/100)-4],f.config,f.request,f)):v(f)}},90877:(je,z,c)=>{"use strict";var r=c(64856),n=c(56416);je.exports=function(h,f,A){var M=this||n;return r.forEach(A,function(E){h=E.call(M,h,f)}),h}},56416:(je,z,c)=>{"use strict";var r=c(64856),n=c(66022),v=c(80873),h=c(62140),f=c(94764),A={"Content-Type":"application/x-www-form-urlencoded"};function M(S,l){!r.isUndefined(S)&&r.isUndefined(S["Content-Type"])&&(S["Content-Type"]=l)}var y={transitional:h,adapter:function T(){var S;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&"[object process]"===Object.prototype.toString.call(process))&&(S=c(60740)),S}(),transformRequest:[function(l,s){if(n(s,"Accept"),n(s,"Content-Type"),r.isFormData(l)||r.isArrayBuffer(l)||r.isBuffer(l)||r.isStream(l)||r.isFile(l)||r.isBlob(l))return l;if(r.isArrayBufferView(l))return l.buffer;if(r.isURLSearchParams(l))return M(s,"application/x-www-form-urlencoded;charset=utf-8"),l.toString();var I,u=r.isObject(l),m=s&&s["Content-Type"];if((I=r.isFileList(l))||u&&"multipart/form-data"===m){var R=this.env&&this.env.FormData;return f(I?{"files[]":l}:l,R&&new R)}return u||"application/json"===m?(M(s,"application/json"),function E(S,l,s){if(r.isString(S))try{return(l||JSON.parse)(S),r.trim(S)}catch(u){if("SyntaxError"!==u.name)throw u}return(s||JSON.stringify)(S)}(l)):l}],transformResponse:[function(l){var s=this.transitional||y.transitional,I=!(s&&s.silentJSONParsing)&&"json"===this.responseType;if(I||s&&s.forcedJSONParsing&&r.isString(l)&&l.length)try{return JSON.parse(l)}catch(R){if(I)throw"SyntaxError"===R.name?v.from(R,v.ERR_BAD_RESPONSE,this,null,this.response):R}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:c(90442)},validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(l){y.headers[l]={}}),r.forEach(["post","put","patch"],function(l){y.headers[l]=r.merge(A)}),je.exports=y},62140:je=>{"use strict";je.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},4181:je=>{je.exports={version:"0.27.2"}},71408:je=>{"use strict";je.exports=function(c,r){return function(){for(var v=new Array(arguments.length),h=0;h<v.length;h++)v[h]=arguments[h];return c.apply(r,v)}}},47366:(je,z,c)=>{"use strict";var r=c(64856);function n(v){return encodeURIComponent(v).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}je.exports=function(h,f,A){if(!f)return h;var M;if(A)M=A(f);else if(r.isURLSearchParams(f))M=f.toString();else{var T=[];r.forEach(f,function(S,l){null===S||typeof S>"u"||(r.isArray(S)?l+="[]":S=[S],r.forEach(S,function(u){r.isDate(u)?u=u.toISOString():r.isObject(u)&&(u=JSON.stringify(u)),T.push(n(l)+"="+n(u))}))}),M=T.join("&")}if(M){var E=h.indexOf("#");-1!==E&&(h=h.slice(0,E)),h+=(-1===h.indexOf("?")?"?":"&")+M}return h}},88556:je=>{"use strict";je.exports=function(c,r){return r?c.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):c}},90184:(je,z,c)=>{"use strict";var r=c(64856);je.exports=r.isStandardBrowserEnv()?function(){return{write:function(h,f,A,M,T,E){var y=[];y.push(h+"="+encodeURIComponent(f)),r.isNumber(A)&&y.push("expires="+new Date(A).toGMTString()),r.isString(M)&&y.push("path="+M),r.isString(T)&&y.push("domain="+T),!0===E&&y.push("secure"),document.cookie=y.join("; ")},read:function(h){var f=document.cookie.match(new RegExp("(^|;\\s*)("+h+")=([^;]*)"));return f?decodeURIComponent(f[3]):null},remove:function(h){this.write(h,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},1853:je=>{"use strict";je.exports=function(c){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(c)}},88399:(je,z,c)=>{"use strict";var r=c(64856);je.exports=function(v){return r.isObject(v)&&!0===v.isAxiosError}},39494:(je,z,c)=>{"use strict";var r=c(64856);je.exports=r.isStandardBrowserEnv()?function(){var f,v=/(msie|trident)/i.test(navigator.userAgent),h=document.createElement("a");function A(M){var T=M;return v&&(h.setAttribute("href",T),T=h.href),h.setAttribute("href",T),{href:h.href,protocol:h.protocol?h.protocol.replace(/:$/,""):"",host:h.host,search:h.search?h.search.replace(/^\?/,""):"",hash:h.hash?h.hash.replace(/^#/,""):"",hostname:h.hostname,port:h.port,pathname:"/"===h.pathname.charAt(0)?h.pathname:"/"+h.pathname}}return f=A(window.location.href),function(T){var E=r.isString(T)?A(T):T;return E.protocol===f.protocol&&E.host===f.host}}():function(){return function(){return!0}}()},66022:(je,z,c)=>{"use strict";var r=c(64856);je.exports=function(v,h){r.forEach(v,function(A,M){M!==h&&M.toUpperCase()===h.toUpperCase()&&(v[h]=A,delete v[M])})}},90442:je=>{je.exports=null},55048:(je,z,c)=>{"use strict";var r=c(64856),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];je.exports=function(h){var A,M,T,f={};return h&&r.forEach(h.split("\n"),function(y){if(T=y.indexOf(":"),A=r.trim(y.substr(0,T)).toLowerCase(),M=r.trim(y.substr(T+1)),A){if(f[A]&&n.indexOf(A)>=0)return;f[A]="set-cookie"===A?(f[A]?f[A]:[]).concat([M]):f[A]?f[A]+", "+M:M}}),f}},50876:je=>{"use strict";je.exports=function(c){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(c);return r&&r[1]||""}},95304:je=>{"use strict";je.exports=function(c){return function(n){return c.apply(null,n)}}},94764:(je,z,c)=>{"use strict";var r=c(64856);je.exports=function n(v,h){h=h||new FormData;var f=[];function A(T){return null===T?"":r.isDate(T)?T.toISOString():r.isArrayBuffer(T)||r.isTypedArray(T)?"function"==typeof Blob?new Blob([T]):Buffer.from(T):T}return function M(T,E){if(r.isPlainObject(T)||r.isArray(T)){if(-1!==f.indexOf(T))throw Error("Circular reference detected in "+E);f.push(T),r.forEach(T,function(S,l){if(!r.isUndefined(S)){var u,s=E?E+"."+l:l;if(S&&!E&&"object"==typeof S)if(r.endsWith(l,"{}"))S=JSON.stringify(S);else if(r.endsWith(l,"[]")&&(u=r.toArray(S)))return void u.forEach(function(m){!r.isUndefined(m)&&h.append(s,A(m))});M(S,s)}}),f.pop()}else h.append(E,A(T))}(v),h}},97749:(je,z,c)=>{"use strict";var r=c(4181).version,n=c(80873),v={};["object","boolean","number","function","string","symbol"].forEach(function(A,M){v[A]=function(E){return typeof E===A||"a"+(M<1?"n ":" ")+A}});var h={};v.transitional=function(M,T,E){function y(S,l){return"[Axios v"+r+"] Transitional option '"+S+"'"+l+(E?". "+E:"")}return function(S,l,s){if(!1===M)throw new n(y(l," has been removed"+(T?" in "+T:"")),n.ERR_DEPRECATED);return T&&!h[l]&&(h[l]=!0,console.warn(y(l," has been deprecated since v"+T+" and will be removed in the near future"))),!M||M(S,l,s)}},je.exports={assertOptions:function f(A,M,T){if("object"!=typeof A)throw new n("options must be an object",n.ERR_BAD_OPTION_VALUE);for(var E=Object.keys(A),y=E.length;y-- >0;){var S=E[y],l=M[S];if(l){var s=A[S],u=void 0===s||l(s,S,A);if(!0!==u)throw new n("option "+S+" must be "+u,n.ERR_BAD_OPTION_VALUE)}else if(!0!==T)throw new n("Unknown option "+S,n.ERR_BAD_OPTION)}},validators:v}},64856:(je,z,c)=>{"use strict";var r=c(71408),n=Object.prototype.toString,v=function(ge){return function(Xe){var ot=n.call(Xe);return ge[ot]||(ge[ot]=ot.slice(8,-1).toLowerCase())}}(Object.create(null));function h(ge){return ge=ge.toLowerCase(),function(ot){return v(ot)===ge}}function f(ge){return Array.isArray(ge)}function A(ge){return typeof ge>"u"}var T=h("ArrayBuffer");function l(ge){return null!==ge&&"object"==typeof ge}function s(ge){if("object"!==v(ge))return!1;var Xe=Object.getPrototypeOf(ge);return null===Xe||Xe===Object.prototype}var u=h("Date"),m=h("File"),I=h("Blob"),R=h("FileList");function O(ge){return"[object Function]"===n.call(ge)}var fe=h("URLSearchParams");function H(ge,Xe){if(!(null===ge||typeof ge>"u"))if("object"!=typeof ge&&(ge=[ge]),f(ge))for(var ot=0,dt=ge.length;ot<dt;ot++)Xe.call(null,ge[ot],ot,ge);else for(var xe in ge)Object.prototype.hasOwnProperty.call(ge,xe)&&Xe.call(null,ge[xe],xe,ge)}var Ge=function(ge){return function(Xe){return ge&&Xe instanceof ge}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));je.exports={isArray:f,isArrayBuffer:T,isBuffer:function M(ge){return null!==ge&&!A(ge)&&null!==ge.constructor&&!A(ge.constructor)&&"function"==typeof ge.constructor.isBuffer&&ge.constructor.isBuffer(ge)},isFormData:function j(ge){var Xe="[object FormData]";return ge&&("function"==typeof FormData&&ge instanceof FormData||n.call(ge)===Xe||O(ge.toString)&&ge.toString()===Xe)},isArrayBufferView:function E(ge){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(ge):ge&&ge.buffer&&T(ge.buffer)},isString:function y(ge){return"string"==typeof ge},isNumber:function S(ge){return"number"==typeof ge},isObject:l,isPlainObject:s,isUndefined:A,isDate:u,isFile:m,isBlob:I,isFunction:O,isStream:function Y(ge){return l(ge)&&O(ge.pipe)},isURLSearchParams:fe,isStandardBrowserEnv:function ce(){return(!(typeof navigator<"u")||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&typeof window<"u"&&typeof document<"u"},forEach:H,merge:function Z(){var ge={};function Xe(xe,Re){ge[Re]=s(ge[Re])&&s(xe)?Z(ge[Re],xe):s(xe)?Z({},xe):f(xe)?xe.slice():xe}for(var ot=0,dt=arguments.length;ot<dt;ot++)H(arguments[ot],Xe);return ge},extend:function X(ge,Xe,ot){return H(Xe,function(xe,Re){ge[Re]=ot&&"function"==typeof xe?r(xe,ot):xe}),ge},trim:function te(ge){return ge.trim?ge.trim():ge.replace(/^\s+|\s+$/g,"")},stripBOM:function ue(ge){return 65279===ge.charCodeAt(0)&&(ge=ge.slice(1)),ge},inherits:function Me(ge,Xe,ot,dt){ge.prototype=Object.create(Xe.prototype,dt),ge.prototype.constructor=ge,ot&&Object.assign(ge.prototype,ot)},toFlatObject:function be(ge,Xe,ot){var dt,xe,Re,Ue={};Xe=Xe||{};do{for(xe=(dt=Object.getOwnPropertyNames(ge)).length;xe-- >0;)Ue[Re=dt[xe]]||(Xe[Re]=ge[Re],Ue[Re]=!0);ge=Object.getPrototypeOf(ge)}while(ge&&(!ot||ot(ge,Xe))&&ge!==Object.prototype);return Xe},kindOf:v,kindOfTest:h,endsWith:function Q(ge,Xe,ot){ge=String(ge),(void 0===ot||ot>ge.length)&&(ot=ge.length);var dt=ge.indexOf(Xe,ot-=Xe.length);return-1!==dt&&dt===ot},toArray:function ne(ge){if(!ge)return null;var Xe=ge.length;if(A(Xe))return null;for(var ot=new Array(Xe);Xe-- >0;)ot[Xe]=ge[Xe];return ot},isTypedArray:Ge,isFileList:R}},89304:(je,z,c)=>{"use strict";var E,T,M,A,r=c(63548),n=r.Reader,v=r.Writer,h=r.util,f=r.roots.default||(r.roots.default={});f.opentelemetry=((A={}).proto=((M={}).common=((T={}).v1=((E={}).AnyValue=function(){function y(l){if(l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}var S;return y.prototype.stringValue=null,y.prototype.boolValue=null,y.prototype.intValue=null,y.prototype.doubleValue=null,y.prototype.arrayValue=null,y.prototype.kvlistValue=null,y.prototype.bytesValue=null,Object.defineProperty(y.prototype,"value",{get:h.oneOfGetter(S=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:h.oneOfSetter(S)}),y.create=function(s){return new y(s)},y.encode=function(s,u){return u||(u=v.create()),null!=s.stringValue&&Object.hasOwnProperty.call(s,"stringValue")&&u.uint32(10).string(s.stringValue),null!=s.boolValue&&Object.hasOwnProperty.call(s,"boolValue")&&u.uint32(16).bool(s.boolValue),null!=s.intValue&&Object.hasOwnProperty.call(s,"intValue")&&u.uint32(24).int64(s.intValue),null!=s.doubleValue&&Object.hasOwnProperty.call(s,"doubleValue")&&u.uint32(33).double(s.doubleValue),null!=s.arrayValue&&Object.hasOwnProperty.call(s,"arrayValue")&&f.opentelemetry.proto.common.v1.ArrayValue.encode(s.arrayValue,u.uint32(42).fork()).ldelim(),null!=s.kvlistValue&&Object.hasOwnProperty.call(s,"kvlistValue")&&f.opentelemetry.proto.common.v1.KeyValueList.encode(s.kvlistValue,u.uint32(50).fork()).ldelim(),null!=s.bytesValue&&Object.hasOwnProperty.call(s,"bytesValue")&&u.uint32(58).bytes(s.bytesValue),u},y.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},y.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.common.v1.AnyValue;s.pos<m;){var R=s.uint32();switch(R>>>3){case 1:I.stringValue=s.string();break;case 2:I.boolValue=s.bool();break;case 3:I.intValue=s.int64();break;case 4:I.doubleValue=s.double();break;case 5:I.arrayValue=f.opentelemetry.proto.common.v1.ArrayValue.decode(s,s.uint32());break;case 6:I.kvlistValue=f.opentelemetry.proto.common.v1.KeyValueList.decode(s,s.uint32());break;case 7:I.bytesValue=s.bytes();break;default:s.skipType(7&R)}}return I},y.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},y.verify=function(s){if("object"!=typeof s||null===s)return"object expected";var u={};if(null!=s.stringValue&&s.hasOwnProperty("stringValue")&&(u.value=1,!h.isString(s.stringValue)))return"stringValue: string expected";if(null!=s.boolValue&&s.hasOwnProperty("boolValue")){if(1===u.value)return"value: multiple values";if(u.value=1,"boolean"!=typeof s.boolValue)return"boolValue: boolean expected"}if(null!=s.intValue&&s.hasOwnProperty("intValue")){if(1===u.value)return"value: multiple values";if(u.value=1,!(h.isInteger(s.intValue)||s.intValue&&h.isInteger(s.intValue.low)&&h.isInteger(s.intValue.high)))return"intValue: integer|Long expected"}if(null!=s.doubleValue&&s.hasOwnProperty("doubleValue")){if(1===u.value)return"value: multiple values";if(u.value=1,"number"!=typeof s.doubleValue)return"doubleValue: number expected"}if(null!=s.arrayValue&&s.hasOwnProperty("arrayValue")){if(1===u.value)return"value: multiple values";if(u.value=1,m=f.opentelemetry.proto.common.v1.ArrayValue.verify(s.arrayValue))return"arrayValue."+m}if(null!=s.kvlistValue&&s.hasOwnProperty("kvlistValue")){if(1===u.value)return"value: multiple values";var m;if(u.value=1,m=f.opentelemetry.proto.common.v1.KeyValueList.verify(s.kvlistValue))return"kvlistValue."+m}if(null!=s.bytesValue&&s.hasOwnProperty("bytesValue")){if(1===u.value)return"value: multiple values";if(u.value=1,!(s.bytesValue&&"number"==typeof s.bytesValue.length||h.isString(s.bytesValue)))return"bytesValue: buffer expected"}return null},y.fromObject=function(s){if(s instanceof f.opentelemetry.proto.common.v1.AnyValue)return s;var u=new f.opentelemetry.proto.common.v1.AnyValue;if(null!=s.stringValue&&(u.stringValue=String(s.stringValue)),null!=s.boolValue&&(u.boolValue=!!s.boolValue),null!=s.intValue&&(h.Long?(u.intValue=h.Long.fromValue(s.intValue)).unsigned=!1:"string"==typeof s.intValue?u.intValue=parseInt(s.intValue,10):"number"==typeof s.intValue?u.intValue=s.intValue:"object"==typeof s.intValue&&(u.intValue=new h.LongBits(s.intValue.low>>>0,s.intValue.high>>>0).toNumber())),null!=s.doubleValue&&(u.doubleValue=Number(s.doubleValue)),null!=s.arrayValue){if("object"!=typeof s.arrayValue)throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");u.arrayValue=f.opentelemetry.proto.common.v1.ArrayValue.fromObject(s.arrayValue)}if(null!=s.kvlistValue){if("object"!=typeof s.kvlistValue)throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");u.kvlistValue=f.opentelemetry.proto.common.v1.KeyValueList.fromObject(s.kvlistValue)}return null!=s.bytesValue&&("string"==typeof s.bytesValue?h.base64.decode(s.bytesValue,u.bytesValue=h.newBuffer(h.base64.length(s.bytesValue)),0):s.bytesValue.length>=0&&(u.bytesValue=s.bytesValue)),u},y.toObject=function(s,u){u||(u={});var m={};return null!=s.stringValue&&s.hasOwnProperty("stringValue")&&(m.stringValue=s.stringValue,u.oneofs&&(m.value="stringValue")),null!=s.boolValue&&s.hasOwnProperty("boolValue")&&(m.boolValue=s.boolValue,u.oneofs&&(m.value="boolValue")),null!=s.intValue&&s.hasOwnProperty("intValue")&&(m.intValue="number"==typeof s.intValue?u.longs===String?String(s.intValue):s.intValue:u.longs===String?h.Long.prototype.toString.call(s.intValue):u.longs===Number?new h.LongBits(s.intValue.low>>>0,s.intValue.high>>>0).toNumber():s.intValue,u.oneofs&&(m.value="intValue")),null!=s.doubleValue&&s.hasOwnProperty("doubleValue")&&(m.doubleValue=u.json&&!isFinite(s.doubleValue)?String(s.doubleValue):s.doubleValue,u.oneofs&&(m.value="doubleValue")),null!=s.arrayValue&&s.hasOwnProperty("arrayValue")&&(m.arrayValue=f.opentelemetry.proto.common.v1.ArrayValue.toObject(s.arrayValue,u),u.oneofs&&(m.value="arrayValue")),null!=s.kvlistValue&&s.hasOwnProperty("kvlistValue")&&(m.kvlistValue=f.opentelemetry.proto.common.v1.KeyValueList.toObject(s.kvlistValue,u),u.oneofs&&(m.value="kvlistValue")),null!=s.bytesValue&&s.hasOwnProperty("bytesValue")&&(m.bytesValue=u.bytes===String?h.base64.encode(s.bytesValue,0,s.bytesValue.length):u.bytes===Array?Array.prototype.slice.call(s.bytesValue):s.bytesValue,u.oneofs&&(m.value="bytesValue")),m},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.common.v1.AnyValue"},y}(),E.ArrayValue=function(){function y(S){if(this.values=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.values=h.emptyArray,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.values&&l.values.length)for(var u=0;u<l.values.length;++u)f.opentelemetry.proto.common.v1.AnyValue.encode(l.values[u],s.uint32(10).fork()).ldelim();return s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.common.v1.ArrayValue;l.pos<u;){var I=l.uint32();I>>>3==1?(m.values&&m.values.length||(m.values=[]),m.values.push(f.opentelemetry.proto.common.v1.AnyValue.decode(l,l.uint32()))):l.skipType(7&I)}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.values&&l.hasOwnProperty("values")){if(!Array.isArray(l.values))return"values: array expected";for(var s=0;s<l.values.length;++s){var u=f.opentelemetry.proto.common.v1.AnyValue.verify(l.values[s]);if(u)return"values."+u}}return null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.common.v1.ArrayValue)return l;var s=new f.opentelemetry.proto.common.v1.ArrayValue;if(l.values){if(!Array.isArray(l.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");s.values=[];for(var u=0;u<l.values.length;++u){if("object"!=typeof l.values[u])throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");s.values[u]=f.opentelemetry.proto.common.v1.AnyValue.fromObject(l.values[u])}}return s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.values=[]),l.values&&l.values.length){u.values=[];for(var m=0;m<l.values.length;++m)u.values[m]=f.opentelemetry.proto.common.v1.AnyValue.toObject(l.values[m],s)}return u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.common.v1.ArrayValue"},y}(),E.KeyValueList=function(){function y(S){if(this.values=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.values=h.emptyArray,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.values&&l.values.length)for(var u=0;u<l.values.length;++u)f.opentelemetry.proto.common.v1.KeyValue.encode(l.values[u],s.uint32(10).fork()).ldelim();return s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.common.v1.KeyValueList;l.pos<u;){var I=l.uint32();I>>>3==1?(m.values&&m.values.length||(m.values=[]),m.values.push(f.opentelemetry.proto.common.v1.KeyValue.decode(l,l.uint32()))):l.skipType(7&I)}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.values&&l.hasOwnProperty("values")){if(!Array.isArray(l.values))return"values: array expected";for(var s=0;s<l.values.length;++s){var u=f.opentelemetry.proto.common.v1.KeyValue.verify(l.values[s]);if(u)return"values."+u}}return null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.common.v1.KeyValueList)return l;var s=new f.opentelemetry.proto.common.v1.KeyValueList;if(l.values){if(!Array.isArray(l.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");s.values=[];for(var u=0;u<l.values.length;++u){if("object"!=typeof l.values[u])throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");s.values[u]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(l.values[u])}}return s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.values=[]),l.values&&l.values.length){u.values=[];for(var m=0;m<l.values.length;++m)u.values[m]=f.opentelemetry.proto.common.v1.KeyValue.toObject(l.values[m],s)}return u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.common.v1.KeyValueList"},y}(),E.KeyValue=function(){function y(S){if(S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.key=null,y.prototype.value=null,y.create=function(l){return new y(l)},y.encode=function(l,s){return s||(s=v.create()),null!=l.key&&Object.hasOwnProperty.call(l,"key")&&s.uint32(10).string(l.key),null!=l.value&&Object.hasOwnProperty.call(l,"value")&&f.opentelemetry.proto.common.v1.AnyValue.encode(l.value,s.uint32(18).fork()).ldelim(),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.common.v1.KeyValue;l.pos<u;){var I=l.uint32();switch(I>>>3){case 1:m.key=l.string();break;case 2:m.value=f.opentelemetry.proto.common.v1.AnyValue.decode(l,l.uint32());break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.key&&l.hasOwnProperty("key")&&!h.isString(l.key))return"key: string expected";if(null!=l.value&&l.hasOwnProperty("value")){var s=f.opentelemetry.proto.common.v1.AnyValue.verify(l.value);if(s)return"value."+s}return null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.common.v1.KeyValue)return l;var s=new f.opentelemetry.proto.common.v1.KeyValue;if(null!=l.key&&(s.key=String(l.key)),null!=l.value){if("object"!=typeof l.value)throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");s.value=f.opentelemetry.proto.common.v1.AnyValue.fromObject(l.value)}return s},y.toObject=function(l,s){s||(s={});var u={};return s.defaults&&(u.key="",u.value=null),null!=l.key&&l.hasOwnProperty("key")&&(u.key=l.key),null!=l.value&&l.hasOwnProperty("value")&&(u.value=f.opentelemetry.proto.common.v1.AnyValue.toObject(l.value,s)),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.common.v1.KeyValue"},y}(),E.InstrumentationScope=function(){function y(S){if(this.attributes=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.name=null,y.prototype.version=null,y.prototype.attributes=h.emptyArray,y.prototype.droppedAttributesCount=null,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.name&&Object.hasOwnProperty.call(l,"name")&&s.uint32(10).string(l.name),null!=l.version&&Object.hasOwnProperty.call(l,"version")&&s.uint32(18).string(l.version),null!=l.attributes&&l.attributes.length)for(var u=0;u<l.attributes.length;++u)f.opentelemetry.proto.common.v1.KeyValue.encode(l.attributes[u],s.uint32(26).fork()).ldelim();return null!=l.droppedAttributesCount&&Object.hasOwnProperty.call(l,"droppedAttributesCount")&&s.uint32(32).uint32(l.droppedAttributesCount),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.common.v1.InstrumentationScope;l.pos<u;){var I=l.uint32();switch(I>>>3){case 1:m.name=l.string();break;case 2:m.version=l.string();break;case 3:m.attributes&&m.attributes.length||(m.attributes=[]),m.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(l,l.uint32()));break;case 4:m.droppedAttributesCount=l.uint32();break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.name&&l.hasOwnProperty("name")&&!h.isString(l.name))return"name: string expected";if(null!=l.version&&l.hasOwnProperty("version")&&!h.isString(l.version))return"version: string expected";if(null!=l.attributes&&l.hasOwnProperty("attributes")){if(!Array.isArray(l.attributes))return"attributes: array expected";for(var s=0;s<l.attributes.length;++s){var u=f.opentelemetry.proto.common.v1.KeyValue.verify(l.attributes[s]);if(u)return"attributes."+u}}return null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&!h.isInteger(l.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.common.v1.InstrumentationScope)return l;var s=new f.opentelemetry.proto.common.v1.InstrumentationScope;if(null!=l.name&&(s.name=String(l.name)),null!=l.version&&(s.version=String(l.version)),l.attributes){if(!Array.isArray(l.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");s.attributes=[];for(var u=0;u<l.attributes.length;++u){if("object"!=typeof l.attributes[u])throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");s.attributes[u]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(l.attributes[u])}}return null!=l.droppedAttributesCount&&(s.droppedAttributesCount=l.droppedAttributesCount>>>0),s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.attributes=[]),s.defaults&&(u.name="",u.version="",u.droppedAttributesCount=0),null!=l.name&&l.hasOwnProperty("name")&&(u.name=l.name),null!=l.version&&l.hasOwnProperty("version")&&(u.version=l.version),l.attributes&&l.attributes.length){u.attributes=[];for(var m=0;m<l.attributes.length;++m)u.attributes[m]=f.opentelemetry.proto.common.v1.KeyValue.toObject(l.attributes[m],s)}return null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=l.droppedAttributesCount),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.common.v1.InstrumentationScope"},y}(),E),T),M.resource=function(){var T={};return T.v1=function(){var E={};return E.Resource=function(){function y(S){if(this.attributes=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.attributes=h.emptyArray,y.prototype.droppedAttributesCount=null,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.attributes&&l.attributes.length)for(var u=0;u<l.attributes.length;++u)f.opentelemetry.proto.common.v1.KeyValue.encode(l.attributes[u],s.uint32(10).fork()).ldelim();return null!=l.droppedAttributesCount&&Object.hasOwnProperty.call(l,"droppedAttributesCount")&&s.uint32(16).uint32(l.droppedAttributesCount),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.resource.v1.Resource;l.pos<u;){var I=l.uint32();switch(I>>>3){case 1:m.attributes&&m.attributes.length||(m.attributes=[]),m.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(l,l.uint32()));break;case 2:m.droppedAttributesCount=l.uint32();break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.attributes&&l.hasOwnProperty("attributes")){if(!Array.isArray(l.attributes))return"attributes: array expected";for(var s=0;s<l.attributes.length;++s){var u=f.opentelemetry.proto.common.v1.KeyValue.verify(l.attributes[s]);if(u)return"attributes."+u}}return null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&!h.isInteger(l.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.resource.v1.Resource)return l;var s=new f.opentelemetry.proto.resource.v1.Resource;if(l.attributes){if(!Array.isArray(l.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");s.attributes=[];for(var u=0;u<l.attributes.length;++u){if("object"!=typeof l.attributes[u])throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");s.attributes[u]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(l.attributes[u])}}return null!=l.droppedAttributesCount&&(s.droppedAttributesCount=l.droppedAttributesCount>>>0),s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.attributes=[]),s.defaults&&(u.droppedAttributesCount=0),l.attributes&&l.attributes.length){u.attributes=[];for(var m=0;m<l.attributes.length;++m)u.attributes[m]=f.opentelemetry.proto.common.v1.KeyValue.toObject(l.attributes[m],s)}return null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=l.droppedAttributesCount),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.resource.v1.Resource"},y}(),E}(),T}(),M.trace=function(){var T={};return T.v1=function(){var E={};return E.TracesData=function(){function y(S){if(this.resourceSpans=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.resourceSpans=h.emptyArray,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.resourceSpans&&l.resourceSpans.length)for(var u=0;u<l.resourceSpans.length;++u)f.opentelemetry.proto.trace.v1.ResourceSpans.encode(l.resourceSpans[u],s.uint32(10).fork()).ldelim();return s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.trace.v1.TracesData;l.pos<u;){var I=l.uint32();I>>>3==1?(m.resourceSpans&&m.resourceSpans.length||(m.resourceSpans=[]),m.resourceSpans.push(f.opentelemetry.proto.trace.v1.ResourceSpans.decode(l,l.uint32()))):l.skipType(7&I)}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.resourceSpans&&l.hasOwnProperty("resourceSpans")){if(!Array.isArray(l.resourceSpans))return"resourceSpans: array expected";for(var s=0;s<l.resourceSpans.length;++s){var u=f.opentelemetry.proto.trace.v1.ResourceSpans.verify(l.resourceSpans[s]);if(u)return"resourceSpans."+u}}return null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.trace.v1.TracesData)return l;var s=new f.opentelemetry.proto.trace.v1.TracesData;if(l.resourceSpans){if(!Array.isArray(l.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");s.resourceSpans=[];for(var u=0;u<l.resourceSpans.length;++u){if("object"!=typeof l.resourceSpans[u])throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");s.resourceSpans[u]=f.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(l.resourceSpans[u])}}return s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.resourceSpans=[]),l.resourceSpans&&l.resourceSpans.length){u.resourceSpans=[];for(var m=0;m<l.resourceSpans.length;++m)u.resourceSpans[m]=f.opentelemetry.proto.trace.v1.ResourceSpans.toObject(l.resourceSpans[m],s)}return u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.trace.v1.TracesData"},y}(),E.ResourceSpans=function(){function y(S){if(this.scopeSpans=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.resource=null,y.prototype.scopeSpans=h.emptyArray,y.prototype.schemaUrl=null,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.resource&&Object.hasOwnProperty.call(l,"resource")&&f.opentelemetry.proto.resource.v1.Resource.encode(l.resource,s.uint32(10).fork()).ldelim(),null!=l.scopeSpans&&l.scopeSpans.length)for(var u=0;u<l.scopeSpans.length;++u)f.opentelemetry.proto.trace.v1.ScopeSpans.encode(l.scopeSpans[u],s.uint32(18).fork()).ldelim();return null!=l.schemaUrl&&Object.hasOwnProperty.call(l,"schemaUrl")&&s.uint32(26).string(l.schemaUrl),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.trace.v1.ResourceSpans;l.pos<u;){var I=l.uint32();switch(I>>>3){case 1:m.resource=f.opentelemetry.proto.resource.v1.Resource.decode(l,l.uint32());break;case 2:m.scopeSpans&&m.scopeSpans.length||(m.scopeSpans=[]),m.scopeSpans.push(f.opentelemetry.proto.trace.v1.ScopeSpans.decode(l,l.uint32()));break;case 3:m.schemaUrl=l.string();break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.resource&&l.hasOwnProperty("resource")&&(s=f.opentelemetry.proto.resource.v1.Resource.verify(l.resource)))return"resource."+s;if(null!=l.scopeSpans&&l.hasOwnProperty("scopeSpans")){if(!Array.isArray(l.scopeSpans))return"scopeSpans: array expected";for(var u=0;u<l.scopeSpans.length;++u){var s;if(s=f.opentelemetry.proto.trace.v1.ScopeSpans.verify(l.scopeSpans[u]))return"scopeSpans."+s}}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&!h.isString(l.schemaUrl)?"schemaUrl: string expected":null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.trace.v1.ResourceSpans)return l;var s=new f.opentelemetry.proto.trace.v1.ResourceSpans;if(null!=l.resource){if("object"!=typeof l.resource)throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");s.resource=f.opentelemetry.proto.resource.v1.Resource.fromObject(l.resource)}if(l.scopeSpans){if(!Array.isArray(l.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");s.scopeSpans=[];for(var u=0;u<l.scopeSpans.length;++u){if("object"!=typeof l.scopeSpans[u])throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");s.scopeSpans[u]=f.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(l.scopeSpans[u])}}return null!=l.schemaUrl&&(s.schemaUrl=String(l.schemaUrl)),s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.scopeSpans=[]),s.defaults&&(u.resource=null,u.schemaUrl=""),null!=l.resource&&l.hasOwnProperty("resource")&&(u.resource=f.opentelemetry.proto.resource.v1.Resource.toObject(l.resource,s)),l.scopeSpans&&l.scopeSpans.length){u.scopeSpans=[];for(var m=0;m<l.scopeSpans.length;++m)u.scopeSpans[m]=f.opentelemetry.proto.trace.v1.ScopeSpans.toObject(l.scopeSpans[m],s)}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&(u.schemaUrl=l.schemaUrl),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.trace.v1.ResourceSpans"},y}(),E.ScopeSpans=function(){function y(S){if(this.spans=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.scope=null,y.prototype.spans=h.emptyArray,y.prototype.schemaUrl=null,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.scope&&Object.hasOwnProperty.call(l,"scope")&&f.opentelemetry.proto.common.v1.InstrumentationScope.encode(l.scope,s.uint32(10).fork()).ldelim(),null!=l.spans&&l.spans.length)for(var u=0;u<l.spans.length;++u)f.opentelemetry.proto.trace.v1.Span.encode(l.spans[u],s.uint32(18).fork()).ldelim();return null!=l.schemaUrl&&Object.hasOwnProperty.call(l,"schemaUrl")&&s.uint32(26).string(l.schemaUrl),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.trace.v1.ScopeSpans;l.pos<u;){var I=l.uint32();switch(I>>>3){case 1:m.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.decode(l,l.uint32());break;case 2:m.spans&&m.spans.length||(m.spans=[]),m.spans.push(f.opentelemetry.proto.trace.v1.Span.decode(l,l.uint32()));break;case 3:m.schemaUrl=l.string();break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.scope&&l.hasOwnProperty("scope")&&(s=f.opentelemetry.proto.common.v1.InstrumentationScope.verify(l.scope)))return"scope."+s;if(null!=l.spans&&l.hasOwnProperty("spans")){if(!Array.isArray(l.spans))return"spans: array expected";for(var u=0;u<l.spans.length;++u){var s;if(s=f.opentelemetry.proto.trace.v1.Span.verify(l.spans[u]))return"spans."+s}}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&!h.isString(l.schemaUrl)?"schemaUrl: string expected":null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.trace.v1.ScopeSpans)return l;var s=new f.opentelemetry.proto.trace.v1.ScopeSpans;if(null!=l.scope){if("object"!=typeof l.scope)throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");s.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(l.scope)}if(l.spans){if(!Array.isArray(l.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");s.spans=[];for(var u=0;u<l.spans.length;++u){if("object"!=typeof l.spans[u])throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");s.spans[u]=f.opentelemetry.proto.trace.v1.Span.fromObject(l.spans[u])}}return null!=l.schemaUrl&&(s.schemaUrl=String(l.schemaUrl)),s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.spans=[]),s.defaults&&(u.scope=null,u.schemaUrl=""),null!=l.scope&&l.hasOwnProperty("scope")&&(u.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.toObject(l.scope,s)),l.spans&&l.spans.length){u.spans=[];for(var m=0;m<l.spans.length;++m)u.spans[m]=f.opentelemetry.proto.trace.v1.Span.toObject(l.spans[m],s)}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&(u.schemaUrl=l.schemaUrl),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.trace.v1.ScopeSpans"},y}(),E.Span=function(){function y(S){if(this.attributes=[],this.events=[],this.links=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.traceId=null,y.prototype.spanId=null,y.prototype.traceState=null,y.prototype.parentSpanId=null,y.prototype.name=null,y.prototype.kind=null,y.prototype.startTimeUnixNano=null,y.prototype.endTimeUnixNano=null,y.prototype.attributes=h.emptyArray,y.prototype.droppedAttributesCount=null,y.prototype.events=h.emptyArray,y.prototype.droppedEventsCount=null,y.prototype.links=h.emptyArray,y.prototype.droppedLinksCount=null,y.prototype.status=null,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.traceId&&Object.hasOwnProperty.call(l,"traceId")&&s.uint32(10).bytes(l.traceId),null!=l.spanId&&Object.hasOwnProperty.call(l,"spanId")&&s.uint32(18).bytes(l.spanId),null!=l.traceState&&Object.hasOwnProperty.call(l,"traceState")&&s.uint32(26).string(l.traceState),null!=l.parentSpanId&&Object.hasOwnProperty.call(l,"parentSpanId")&&s.uint32(34).bytes(l.parentSpanId),null!=l.name&&Object.hasOwnProperty.call(l,"name")&&s.uint32(42).string(l.name),null!=l.kind&&Object.hasOwnProperty.call(l,"kind")&&s.uint32(48).int32(l.kind),null!=l.startTimeUnixNano&&Object.hasOwnProperty.call(l,"startTimeUnixNano")&&s.uint32(57).fixed64(l.startTimeUnixNano),null!=l.endTimeUnixNano&&Object.hasOwnProperty.call(l,"endTimeUnixNano")&&s.uint32(65).fixed64(l.endTimeUnixNano),null!=l.attributes&&l.attributes.length)for(var u=0;u<l.attributes.length;++u)f.opentelemetry.proto.common.v1.KeyValue.encode(l.attributes[u],s.uint32(74).fork()).ldelim();if(null!=l.droppedAttributesCount&&Object.hasOwnProperty.call(l,"droppedAttributesCount")&&s.uint32(80).uint32(l.droppedAttributesCount),null!=l.events&&l.events.length)for(u=0;u<l.events.length;++u)f.opentelemetry.proto.trace.v1.Span.Event.encode(l.events[u],s.uint32(90).fork()).ldelim();if(null!=l.droppedEventsCount&&Object.hasOwnProperty.call(l,"droppedEventsCount")&&s.uint32(96).uint32(l.droppedEventsCount),null!=l.links&&l.links.length)for(u=0;u<l.links.length;++u)f.opentelemetry.proto.trace.v1.Span.Link.encode(l.links[u],s.uint32(106).fork()).ldelim();return null!=l.droppedLinksCount&&Object.hasOwnProperty.call(l,"droppedLinksCount")&&s.uint32(112).uint32(l.droppedLinksCount),null!=l.status&&Object.hasOwnProperty.call(l,"status")&&f.opentelemetry.proto.trace.v1.Status.encode(l.status,s.uint32(122).fork()).ldelim(),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.trace.v1.Span;l.pos<u;){var I=l.uint32();switch(I>>>3){case 1:m.traceId=l.bytes();break;case 2:m.spanId=l.bytes();break;case 3:m.traceState=l.string();break;case 4:m.parentSpanId=l.bytes();break;case 5:m.name=l.string();break;case 6:m.kind=l.int32();break;case 7:m.startTimeUnixNano=l.fixed64();break;case 8:m.endTimeUnixNano=l.fixed64();break;case 9:m.attributes&&m.attributes.length||(m.attributes=[]),m.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(l,l.uint32()));break;case 10:m.droppedAttributesCount=l.uint32();break;case 11:m.events&&m.events.length||(m.events=[]),m.events.push(f.opentelemetry.proto.trace.v1.Span.Event.decode(l,l.uint32()));break;case 12:m.droppedEventsCount=l.uint32();break;case 13:m.links&&m.links.length||(m.links=[]),m.links.push(f.opentelemetry.proto.trace.v1.Span.Link.decode(l,l.uint32()));break;case 14:m.droppedLinksCount=l.uint32();break;case 15:m.status=f.opentelemetry.proto.trace.v1.Status.decode(l,l.uint32());break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.traceId&&l.hasOwnProperty("traceId")&&!(l.traceId&&"number"==typeof l.traceId.length||h.isString(l.traceId)))return"traceId: buffer expected";if(null!=l.spanId&&l.hasOwnProperty("spanId")&&!(l.spanId&&"number"==typeof l.spanId.length||h.isString(l.spanId)))return"spanId: buffer expected";if(null!=l.traceState&&l.hasOwnProperty("traceState")&&!h.isString(l.traceState))return"traceState: string expected";if(null!=l.parentSpanId&&l.hasOwnProperty("parentSpanId")&&!(l.parentSpanId&&"number"==typeof l.parentSpanId.length||h.isString(l.parentSpanId)))return"parentSpanId: buffer expected";if(null!=l.name&&l.hasOwnProperty("name")&&!h.isString(l.name))return"name: string expected";if(null!=l.kind&&l.hasOwnProperty("kind"))switch(l.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}if(null!=l.startTimeUnixNano&&l.hasOwnProperty("startTimeUnixNano")&&!h.isInteger(l.startTimeUnixNano)&&!(l.startTimeUnixNano&&h.isInteger(l.startTimeUnixNano.low)&&h.isInteger(l.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=l.endTimeUnixNano&&l.hasOwnProperty("endTimeUnixNano")&&!h.isInteger(l.endTimeUnixNano)&&!(l.endTimeUnixNano&&h.isInteger(l.endTimeUnixNano.low)&&h.isInteger(l.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(null!=l.attributes&&l.hasOwnProperty("attributes")){if(!Array.isArray(l.attributes))return"attributes: array expected";for(var s=0;s<l.attributes.length;++s)if(u=f.opentelemetry.proto.common.v1.KeyValue.verify(l.attributes[s]))return"attributes."+u}if(null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&!h.isInteger(l.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(null!=l.events&&l.hasOwnProperty("events")){if(!Array.isArray(l.events))return"events: array expected";for(s=0;s<l.events.length;++s)if(u=f.opentelemetry.proto.trace.v1.Span.Event.verify(l.events[s]))return"events."+u}if(null!=l.droppedEventsCount&&l.hasOwnProperty("droppedEventsCount")&&!h.isInteger(l.droppedEventsCount))return"droppedEventsCount: integer expected";if(null!=l.links&&l.hasOwnProperty("links")){if(!Array.isArray(l.links))return"links: array expected";for(s=0;s<l.links.length;++s)if(u=f.opentelemetry.proto.trace.v1.Span.Link.verify(l.links[s]))return"links."+u}return null!=l.droppedLinksCount&&l.hasOwnProperty("droppedLinksCount")&&!h.isInteger(l.droppedLinksCount)?"droppedLinksCount: integer expected":null!=l.status&&l.hasOwnProperty("status")&&(u=f.opentelemetry.proto.trace.v1.Status.verify(l.status))?"status."+u:null;var u},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.trace.v1.Span)return l;var s=new f.opentelemetry.proto.trace.v1.Span;switch(null!=l.traceId&&("string"==typeof l.traceId?h.base64.decode(l.traceId,s.traceId=h.newBuffer(h.base64.length(l.traceId)),0):l.traceId.length>=0&&(s.traceId=l.traceId)),null!=l.spanId&&("string"==typeof l.spanId?h.base64.decode(l.spanId,s.spanId=h.newBuffer(h.base64.length(l.spanId)),0):l.spanId.length>=0&&(s.spanId=l.spanId)),null!=l.traceState&&(s.traceState=String(l.traceState)),null!=l.parentSpanId&&("string"==typeof l.parentSpanId?h.base64.decode(l.parentSpanId,s.parentSpanId=h.newBuffer(h.base64.length(l.parentSpanId)),0):l.parentSpanId.length>=0&&(s.parentSpanId=l.parentSpanId)),null!=l.name&&(s.name=String(l.name)),l.kind){default:if("number"==typeof l.kind){s.kind=l.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:s.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:s.kind=1;break;case"SPAN_KIND_SERVER":case 2:s.kind=2;break;case"SPAN_KIND_CLIENT":case 3:s.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:s.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:s.kind=5}if(null!=l.startTimeUnixNano&&(h.Long?(s.startTimeUnixNano=h.Long.fromValue(l.startTimeUnixNano)).unsigned=!1:"string"==typeof l.startTimeUnixNano?s.startTimeUnixNano=parseInt(l.startTimeUnixNano,10):"number"==typeof l.startTimeUnixNano?s.startTimeUnixNano=l.startTimeUnixNano:"object"==typeof l.startTimeUnixNano&&(s.startTimeUnixNano=new h.LongBits(l.startTimeUnixNano.low>>>0,l.startTimeUnixNano.high>>>0).toNumber())),null!=l.endTimeUnixNano&&(h.Long?(s.endTimeUnixNano=h.Long.fromValue(l.endTimeUnixNano)).unsigned=!1:"string"==typeof l.endTimeUnixNano?s.endTimeUnixNano=parseInt(l.endTimeUnixNano,10):"number"==typeof l.endTimeUnixNano?s.endTimeUnixNano=l.endTimeUnixNano:"object"==typeof l.endTimeUnixNano&&(s.endTimeUnixNano=new h.LongBits(l.endTimeUnixNano.low>>>0,l.endTimeUnixNano.high>>>0).toNumber())),l.attributes){if(!Array.isArray(l.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");s.attributes=[];for(var u=0;u<l.attributes.length;++u){if("object"!=typeof l.attributes[u])throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");s.attributes[u]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(l.attributes[u])}}if(null!=l.droppedAttributesCount&&(s.droppedAttributesCount=l.droppedAttributesCount>>>0),l.events){if(!Array.isArray(l.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");for(s.events=[],u=0;u<l.events.length;++u){if("object"!=typeof l.events[u])throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");s.events[u]=f.opentelemetry.proto.trace.v1.Span.Event.fromObject(l.events[u])}}if(null!=l.droppedEventsCount&&(s.droppedEventsCount=l.droppedEventsCount>>>0),l.links){if(!Array.isArray(l.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");for(s.links=[],u=0;u<l.links.length;++u){if("object"!=typeof l.links[u])throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");s.links[u]=f.opentelemetry.proto.trace.v1.Span.Link.fromObject(l.links[u])}}if(null!=l.droppedLinksCount&&(s.droppedLinksCount=l.droppedLinksCount>>>0),null!=l.status){if("object"!=typeof l.status)throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");s.status=f.opentelemetry.proto.trace.v1.Status.fromObject(l.status)}return s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.attributes=[],u.events=[],u.links=[]),s.defaults){if(s.bytes===String?u.traceId="":(u.traceId=[],s.bytes!==Array&&(u.traceId=h.newBuffer(u.traceId))),s.bytes===String?u.spanId="":(u.spanId=[],s.bytes!==Array&&(u.spanId=h.newBuffer(u.spanId))),u.traceState="",s.bytes===String?u.parentSpanId="":(u.parentSpanId=[],s.bytes!==Array&&(u.parentSpanId=h.newBuffer(u.parentSpanId))),u.name="",u.kind=s.enums===String?"SPAN_KIND_UNSPECIFIED":0,h.Long){var m=new h.Long(0,0,!1);u.startTimeUnixNano=s.longs===String?m.toString():s.longs===Number?m.toNumber():m}else u.startTimeUnixNano=s.longs===String?"0":0;h.Long?(m=new h.Long(0,0,!1),u.endTimeUnixNano=s.longs===String?m.toString():s.longs===Number?m.toNumber():m):u.endTimeUnixNano=s.longs===String?"0":0,u.droppedAttributesCount=0,u.droppedEventsCount=0,u.droppedLinksCount=0,u.status=null}if(null!=l.traceId&&l.hasOwnProperty("traceId")&&(u.traceId=s.bytes===String?h.base64.encode(l.traceId,0,l.traceId.length):s.bytes===Array?Array.prototype.slice.call(l.traceId):l.traceId),null!=l.spanId&&l.hasOwnProperty("spanId")&&(u.spanId=s.bytes===String?h.base64.encode(l.spanId,0,l.spanId.length):s.bytes===Array?Array.prototype.slice.call(l.spanId):l.spanId),null!=l.traceState&&l.hasOwnProperty("traceState")&&(u.traceState=l.traceState),null!=l.parentSpanId&&l.hasOwnProperty("parentSpanId")&&(u.parentSpanId=s.bytes===String?h.base64.encode(l.parentSpanId,0,l.parentSpanId.length):s.bytes===Array?Array.prototype.slice.call(l.parentSpanId):l.parentSpanId),null!=l.name&&l.hasOwnProperty("name")&&(u.name=l.name),null!=l.kind&&l.hasOwnProperty("kind")&&(u.kind=s.enums===String?void 0===f.opentelemetry.proto.trace.v1.Span.SpanKind[l.kind]?l.kind:f.opentelemetry.proto.trace.v1.Span.SpanKind[l.kind]:l.kind),null!=l.startTimeUnixNano&&l.hasOwnProperty("startTimeUnixNano")&&(u.startTimeUnixNano="number"==typeof l.startTimeUnixNano?s.longs===String?String(l.startTimeUnixNano):l.startTimeUnixNano:s.longs===String?h.Long.prototype.toString.call(l.startTimeUnixNano):s.longs===Number?new h.LongBits(l.startTimeUnixNano.low>>>0,l.startTimeUnixNano.high>>>0).toNumber():l.startTimeUnixNano),null!=l.endTimeUnixNano&&l.hasOwnProperty("endTimeUnixNano")&&(u.endTimeUnixNano="number"==typeof l.endTimeUnixNano?s.longs===String?String(l.endTimeUnixNano):l.endTimeUnixNano:s.longs===String?h.Long.prototype.toString.call(l.endTimeUnixNano):s.longs===Number?new h.LongBits(l.endTimeUnixNano.low>>>0,l.endTimeUnixNano.high>>>0).toNumber():l.endTimeUnixNano),l.attributes&&l.attributes.length){u.attributes=[];for(var I=0;I<l.attributes.length;++I)u.attributes[I]=f.opentelemetry.proto.common.v1.KeyValue.toObject(l.attributes[I],s)}if(null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=l.droppedAttributesCount),l.events&&l.events.length)for(u.events=[],I=0;I<l.events.length;++I)u.events[I]=f.opentelemetry.proto.trace.v1.Span.Event.toObject(l.events[I],s);if(null!=l.droppedEventsCount&&l.hasOwnProperty("droppedEventsCount")&&(u.droppedEventsCount=l.droppedEventsCount),l.links&&l.links.length)for(u.links=[],I=0;I<l.links.length;++I)u.links[I]=f.opentelemetry.proto.trace.v1.Span.Link.toObject(l.links[I],s);return null!=l.droppedLinksCount&&l.hasOwnProperty("droppedLinksCount")&&(u.droppedLinksCount=l.droppedLinksCount),null!=l.status&&l.hasOwnProperty("status")&&(u.status=f.opentelemetry.proto.trace.v1.Status.toObject(l.status,s)),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.trace.v1.Span"},y.SpanKind=(S={},(l=Object.create(S))[S[0]="SPAN_KIND_UNSPECIFIED"]=0,l[S[1]="SPAN_KIND_INTERNAL"]=1,l[S[2]="SPAN_KIND_SERVER"]=2,l[S[3]="SPAN_KIND_CLIENT"]=3,l[S[4]="SPAN_KIND_PRODUCER"]=4,l[S[5]="SPAN_KIND_CONSUMER"]=5,l),y.Event=function(){function S(l){if(this.attributes=[],l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}return S.prototype.timeUnixNano=null,S.prototype.name=null,S.prototype.attributes=h.emptyArray,S.prototype.droppedAttributesCount=null,S.create=function(s){return new S(s)},S.encode=function(s,u){if(u||(u=v.create()),null!=s.timeUnixNano&&Object.hasOwnProperty.call(s,"timeUnixNano")&&u.uint32(9).fixed64(s.timeUnixNano),null!=s.name&&Object.hasOwnProperty.call(s,"name")&&u.uint32(18).string(s.name),null!=s.attributes&&s.attributes.length)for(var m=0;m<s.attributes.length;++m)f.opentelemetry.proto.common.v1.KeyValue.encode(s.attributes[m],u.uint32(26).fork()).ldelim();return null!=s.droppedAttributesCount&&Object.hasOwnProperty.call(s,"droppedAttributesCount")&&u.uint32(32).uint32(s.droppedAttributesCount),u},S.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},S.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.trace.v1.Span.Event;s.pos<m;){var R=s.uint32();switch(R>>>3){case 1:I.timeUnixNano=s.fixed64();break;case 2:I.name=s.string();break;case 3:I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(s,s.uint32()));break;case 4:I.droppedAttributesCount=s.uint32();break;default:s.skipType(7&R)}}return I},S.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},S.verify=function(s){if("object"!=typeof s||null===s)return"object expected";if(null!=s.timeUnixNano&&s.hasOwnProperty("timeUnixNano")&&!h.isInteger(s.timeUnixNano)&&!(s.timeUnixNano&&h.isInteger(s.timeUnixNano.low)&&h.isInteger(s.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=s.name&&s.hasOwnProperty("name")&&!h.isString(s.name))return"name: string expected";if(null!=s.attributes&&s.hasOwnProperty("attributes")){if(!Array.isArray(s.attributes))return"attributes: array expected";for(var u=0;u<s.attributes.length;++u){var m=f.opentelemetry.proto.common.v1.KeyValue.verify(s.attributes[u]);if(m)return"attributes."+m}}return null!=s.droppedAttributesCount&&s.hasOwnProperty("droppedAttributesCount")&&!h.isInteger(s.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},S.fromObject=function(s){if(s instanceof f.opentelemetry.proto.trace.v1.Span.Event)return s;var u=new f.opentelemetry.proto.trace.v1.Span.Event;if(null!=s.timeUnixNano&&(h.Long?(u.timeUnixNano=h.Long.fromValue(s.timeUnixNano)).unsigned=!1:"string"==typeof s.timeUnixNano?u.timeUnixNano=parseInt(s.timeUnixNano,10):"number"==typeof s.timeUnixNano?u.timeUnixNano=s.timeUnixNano:"object"==typeof s.timeUnixNano&&(u.timeUnixNano=new h.LongBits(s.timeUnixNano.low>>>0,s.timeUnixNano.high>>>0).toNumber())),null!=s.name&&(u.name=String(s.name)),s.attributes){if(!Array.isArray(s.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");u.attributes=[];for(var m=0;m<s.attributes.length;++m){if("object"!=typeof s.attributes[m])throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");u.attributes[m]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(s.attributes[m])}}return null!=s.droppedAttributesCount&&(u.droppedAttributesCount=s.droppedAttributesCount>>>0),u},S.toObject=function(s,u){u||(u={});var m={};if((u.arrays||u.defaults)&&(m.attributes=[]),u.defaults){if(h.Long){var I=new h.Long(0,0,!1);m.timeUnixNano=u.longs===String?I.toString():u.longs===Number?I.toNumber():I}else m.timeUnixNano=u.longs===String?"0":0;m.name="",m.droppedAttributesCount=0}if(null!=s.timeUnixNano&&s.hasOwnProperty("timeUnixNano")&&(m.timeUnixNano="number"==typeof s.timeUnixNano?u.longs===String?String(s.timeUnixNano):s.timeUnixNano:u.longs===String?h.Long.prototype.toString.call(s.timeUnixNano):u.longs===Number?new h.LongBits(s.timeUnixNano.low>>>0,s.timeUnixNano.high>>>0).toNumber():s.timeUnixNano),null!=s.name&&s.hasOwnProperty("name")&&(m.name=s.name),s.attributes&&s.attributes.length){m.attributes=[];for(var R=0;R<s.attributes.length;++R)m.attributes[R]=f.opentelemetry.proto.common.v1.KeyValue.toObject(s.attributes[R],u)}return null!=s.droppedAttributesCount&&s.hasOwnProperty("droppedAttributesCount")&&(m.droppedAttributesCount=s.droppedAttributesCount),m},S.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},S.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.trace.v1.Span.Event"},S}(),y.Link=function(){function S(l){if(this.attributes=[],l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}return S.prototype.traceId=null,S.prototype.spanId=null,S.prototype.traceState=null,S.prototype.attributes=h.emptyArray,S.prototype.droppedAttributesCount=null,S.create=function(s){return new S(s)},S.encode=function(s,u){if(u||(u=v.create()),null!=s.traceId&&Object.hasOwnProperty.call(s,"traceId")&&u.uint32(10).bytes(s.traceId),null!=s.spanId&&Object.hasOwnProperty.call(s,"spanId")&&u.uint32(18).bytes(s.spanId),null!=s.traceState&&Object.hasOwnProperty.call(s,"traceState")&&u.uint32(26).string(s.traceState),null!=s.attributes&&s.attributes.length)for(var m=0;m<s.attributes.length;++m)f.opentelemetry.proto.common.v1.KeyValue.encode(s.attributes[m],u.uint32(34).fork()).ldelim();return null!=s.droppedAttributesCount&&Object.hasOwnProperty.call(s,"droppedAttributesCount")&&u.uint32(40).uint32(s.droppedAttributesCount),u},S.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},S.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.trace.v1.Span.Link;s.pos<m;){var R=s.uint32();switch(R>>>3){case 1:I.traceId=s.bytes();break;case 2:I.spanId=s.bytes();break;case 3:I.traceState=s.string();break;case 4:I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(s,s.uint32()));break;case 5:I.droppedAttributesCount=s.uint32();break;default:s.skipType(7&R)}}return I},S.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},S.verify=function(s){if("object"!=typeof s||null===s)return"object expected";if(null!=s.traceId&&s.hasOwnProperty("traceId")&&!(s.traceId&&"number"==typeof s.traceId.length||h.isString(s.traceId)))return"traceId: buffer expected";if(null!=s.spanId&&s.hasOwnProperty("spanId")&&!(s.spanId&&"number"==typeof s.spanId.length||h.isString(s.spanId)))return"spanId: buffer expected";if(null!=s.traceState&&s.hasOwnProperty("traceState")&&!h.isString(s.traceState))return"traceState: string expected";if(null!=s.attributes&&s.hasOwnProperty("attributes")){if(!Array.isArray(s.attributes))return"attributes: array expected";for(var u=0;u<s.attributes.length;++u){var m=f.opentelemetry.proto.common.v1.KeyValue.verify(s.attributes[u]);if(m)return"attributes."+m}}return null!=s.droppedAttributesCount&&s.hasOwnProperty("droppedAttributesCount")&&!h.isInteger(s.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},S.fromObject=function(s){if(s instanceof f.opentelemetry.proto.trace.v1.Span.Link)return s;var u=new f.opentelemetry.proto.trace.v1.Span.Link;if(null!=s.traceId&&("string"==typeof s.traceId?h.base64.decode(s.traceId,u.traceId=h.newBuffer(h.base64.length(s.traceId)),0):s.traceId.length>=0&&(u.traceId=s.traceId)),null!=s.spanId&&("string"==typeof s.spanId?h.base64.decode(s.spanId,u.spanId=h.newBuffer(h.base64.length(s.spanId)),0):s.spanId.length>=0&&(u.spanId=s.spanId)),null!=s.traceState&&(u.traceState=String(s.traceState)),s.attributes){if(!Array.isArray(s.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");u.attributes=[];for(var m=0;m<s.attributes.length;++m){if("object"!=typeof s.attributes[m])throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");u.attributes[m]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(s.attributes[m])}}return null!=s.droppedAttributesCount&&(u.droppedAttributesCount=s.droppedAttributesCount>>>0),u},S.toObject=function(s,u){u||(u={});var m={};if((u.arrays||u.defaults)&&(m.attributes=[]),u.defaults&&(u.bytes===String?m.traceId="":(m.traceId=[],u.bytes!==Array&&(m.traceId=h.newBuffer(m.traceId))),u.bytes===String?m.spanId="":(m.spanId=[],u.bytes!==Array&&(m.spanId=h.newBuffer(m.spanId))),m.traceState="",m.droppedAttributesCount=0),null!=s.traceId&&s.hasOwnProperty("traceId")&&(m.traceId=u.bytes===String?h.base64.encode(s.traceId,0,s.traceId.length):u.bytes===Array?Array.prototype.slice.call(s.traceId):s.traceId),null!=s.spanId&&s.hasOwnProperty("spanId")&&(m.spanId=u.bytes===String?h.base64.encode(s.spanId,0,s.spanId.length):u.bytes===Array?Array.prototype.slice.call(s.spanId):s.spanId),null!=s.traceState&&s.hasOwnProperty("traceState")&&(m.traceState=s.traceState),s.attributes&&s.attributes.length){m.attributes=[];for(var I=0;I<s.attributes.length;++I)m.attributes[I]=f.opentelemetry.proto.common.v1.KeyValue.toObject(s.attributes[I],u)}return null!=s.droppedAttributesCount&&s.hasOwnProperty("droppedAttributesCount")&&(m.droppedAttributesCount=s.droppedAttributesCount),m},S.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},S.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.trace.v1.Span.Link"},S}(),y;var S,l}(),E.Status=function(){function y(S){if(S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.message=null,y.prototype.code=null,y.create=function(l){return new y(l)},y.encode=function(l,s){return s||(s=v.create()),null!=l.message&&Object.hasOwnProperty.call(l,"message")&&s.uint32(18).string(l.message),null!=l.code&&Object.hasOwnProperty.call(l,"code")&&s.uint32(24).int32(l.code),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.trace.v1.Status;l.pos<u;){var I=l.uint32();switch(I>>>3){case 2:m.message=l.string();break;case 3:m.code=l.int32();break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.message&&l.hasOwnProperty("message")&&!h.isString(l.message))return"message: string expected";if(null!=l.code&&l.hasOwnProperty("code"))switch(l.code){default:return"code: enum value expected";case 0:case 1:case 2:}return null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.trace.v1.Status)return l;var s=new f.opentelemetry.proto.trace.v1.Status;switch(null!=l.message&&(s.message=String(l.message)),l.code){default:if("number"==typeof l.code){s.code=l.code;break}break;case"STATUS_CODE_UNSET":case 0:s.code=0;break;case"STATUS_CODE_OK":case 1:s.code=1;break;case"STATUS_CODE_ERROR":case 2:s.code=2}return s},y.toObject=function(l,s){s||(s={});var u={};return s.defaults&&(u.message="",u.code=s.enums===String?"STATUS_CODE_UNSET":0),null!=l.message&&l.hasOwnProperty("message")&&(u.message=l.message),null!=l.code&&l.hasOwnProperty("code")&&(u.code=s.enums===String?void 0===f.opentelemetry.proto.trace.v1.Status.StatusCode[l.code]?l.code:f.opentelemetry.proto.trace.v1.Status.StatusCode[l.code]:l.code),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.trace.v1.Status"},y.StatusCode=(S={},(l=Object.create(S))[S[0]="STATUS_CODE_UNSET"]=0,l[S[1]="STATUS_CODE_OK"]=1,l[S[2]="STATUS_CODE_ERROR"]=2,l),y;var S,l}(),E}(),T}(),M.collector=function(){var T={};return T.trace=function(){var y,E={};return E.v1=((y={}).TraceService=function(){function S(l,s,u){r.rpc.Service.call(this,l,s,u)}return(S.prototype=Object.create(r.rpc.Service.prototype)).constructor=S,S.create=function(s,u,m){return new this(s,u,m)},Object.defineProperty(S.prototype.export=function l(s,u){return this.rpcCall(l,f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,s,u)},"name",{value:"Export"}),S}(),y.ExportTraceServiceRequest=function(){function S(l){if(this.resourceSpans=[],l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}return S.prototype.resourceSpans=h.emptyArray,S.create=function(s){return new S(s)},S.encode=function(s,u){if(u||(u=v.create()),null!=s.resourceSpans&&s.resourceSpans.length)for(var m=0;m<s.resourceSpans.length;++m)f.opentelemetry.proto.trace.v1.ResourceSpans.encode(s.resourceSpans[m],u.uint32(10).fork()).ldelim();return u},S.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},S.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;s.pos<m;){var R=s.uint32();R>>>3==1?(I.resourceSpans&&I.resourceSpans.length||(I.resourceSpans=[]),I.resourceSpans.push(f.opentelemetry.proto.trace.v1.ResourceSpans.decode(s,s.uint32()))):s.skipType(7&R)}return I},S.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},S.verify=function(s){if("object"!=typeof s||null===s)return"object expected";if(null!=s.resourceSpans&&s.hasOwnProperty("resourceSpans")){if(!Array.isArray(s.resourceSpans))return"resourceSpans: array expected";for(var u=0;u<s.resourceSpans.length;++u){var m=f.opentelemetry.proto.trace.v1.ResourceSpans.verify(s.resourceSpans[u]);if(m)return"resourceSpans."+m}}return null},S.fromObject=function(s){if(s instanceof f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return s;var u=new f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(s.resourceSpans){if(!Array.isArray(s.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");u.resourceSpans=[];for(var m=0;m<s.resourceSpans.length;++m){if("object"!=typeof s.resourceSpans[m])throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");u.resourceSpans[m]=f.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(s.resourceSpans[m])}}return u},S.toObject=function(s,u){u||(u={});var m={};if((u.arrays||u.defaults)&&(m.resourceSpans=[]),s.resourceSpans&&s.resourceSpans.length){m.resourceSpans=[];for(var I=0;I<s.resourceSpans.length;++I)m.resourceSpans[I]=f.opentelemetry.proto.trace.v1.ResourceSpans.toObject(s.resourceSpans[I],u)}return m},S.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},S.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},S}(),y.ExportTraceServiceResponse=function(){function S(l){if(l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}return S.prototype.partialSuccess=null,S.create=function(s){return new S(s)},S.encode=function(s,u){return u||(u=v.create()),null!=s.partialSuccess&&Object.hasOwnProperty.call(s,"partialSuccess")&&f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(s.partialSuccess,u.uint32(10).fork()).ldelim(),u},S.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},S.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;s.pos<m;){var R=s.uint32();R>>>3==1?I.partialSuccess=f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(s,s.uint32()):s.skipType(7&R)}return I},S.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},S.verify=function(s){if("object"!=typeof s||null===s)return"object expected";if(null!=s.partialSuccess&&s.hasOwnProperty("partialSuccess")){var u=f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(s.partialSuccess);if(u)return"partialSuccess."+u}return null},S.fromObject=function(s){if(s instanceof f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return s;var u=new f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(null!=s.partialSuccess){if("object"!=typeof s.partialSuccess)throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");u.partialSuccess=f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(s.partialSuccess)}return u},S.toObject=function(s,u){u||(u={});var m={};return u.defaults&&(m.partialSuccess=null),null!=s.partialSuccess&&s.hasOwnProperty("partialSuccess")&&(m.partialSuccess=f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(s.partialSuccess,u)),m},S.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},S.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},S}(),y.ExportTracePartialSuccess=function(){function S(l){if(l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}return S.prototype.rejectedSpans=null,S.prototype.errorMessage=null,S.create=function(s){return new S(s)},S.encode=function(s,u){return u||(u=v.create()),null!=s.rejectedSpans&&Object.hasOwnProperty.call(s,"rejectedSpans")&&u.uint32(8).int64(s.rejectedSpans),null!=s.errorMessage&&Object.hasOwnProperty.call(s,"errorMessage")&&u.uint32(18).string(s.errorMessage),u},S.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},S.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;s.pos<m;){var R=s.uint32();switch(R>>>3){case 1:I.rejectedSpans=s.int64();break;case 2:I.errorMessage=s.string();break;default:s.skipType(7&R)}}return I},S.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},S.verify=function(s){return"object"!=typeof s||null===s?"object expected":null==s.rejectedSpans||!s.hasOwnProperty("rejectedSpans")||h.isInteger(s.rejectedSpans)||s.rejectedSpans&&h.isInteger(s.rejectedSpans.low)&&h.isInteger(s.rejectedSpans.high)?null!=s.errorMessage&&s.hasOwnProperty("errorMessage")&&!h.isString(s.errorMessage)?"errorMessage: string expected":null:"rejectedSpans: integer|Long expected"},S.fromObject=function(s){if(s instanceof f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return s;var u=new f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return null!=s.rejectedSpans&&(h.Long?(u.rejectedSpans=h.Long.fromValue(s.rejectedSpans)).unsigned=!1:"string"==typeof s.rejectedSpans?u.rejectedSpans=parseInt(s.rejectedSpans,10):"number"==typeof s.rejectedSpans?u.rejectedSpans=s.rejectedSpans:"object"==typeof s.rejectedSpans&&(u.rejectedSpans=new h.LongBits(s.rejectedSpans.low>>>0,s.rejectedSpans.high>>>0).toNumber())),null!=s.errorMessage&&(u.errorMessage=String(s.errorMessage)),u},S.toObject=function(s,u){u||(u={});var m={};if(u.defaults){if(h.Long){var I=new h.Long(0,0,!1);m.rejectedSpans=u.longs===String?I.toString():u.longs===Number?I.toNumber():I}else m.rejectedSpans=u.longs===String?"0":0;m.errorMessage=""}return null!=s.rejectedSpans&&s.hasOwnProperty("rejectedSpans")&&(m.rejectedSpans="number"==typeof s.rejectedSpans?u.longs===String?String(s.rejectedSpans):s.rejectedSpans:u.longs===String?h.Long.prototype.toString.call(s.rejectedSpans):u.longs===Number?new h.LongBits(s.rejectedSpans.low>>>0,s.rejectedSpans.high>>>0).toNumber():s.rejectedSpans),null!=s.errorMessage&&s.hasOwnProperty("errorMessage")&&(m.errorMessage=s.errorMessage),m},S.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},S.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},S}(),y),E}(),T.metrics=function(){var y,E={};return E.v1=((y={}).MetricsService=function(){function S(l,s,u){r.rpc.Service.call(this,l,s,u)}return(S.prototype=Object.create(r.rpc.Service.prototype)).constructor=S,S.create=function(s,u,m){return new this(s,u,m)},Object.defineProperty(S.prototype.export=function l(s,u){return this.rpcCall(l,f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,s,u)},"name",{value:"Export"}),S}(),y.ExportMetricsServiceRequest=function(){function S(l){if(this.resourceMetrics=[],l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}return S.prototype.resourceMetrics=h.emptyArray,S.create=function(s){return new S(s)},S.encode=function(s,u){if(u||(u=v.create()),null!=s.resourceMetrics&&s.resourceMetrics.length)for(var m=0;m<s.resourceMetrics.length;++m)f.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(s.resourceMetrics[m],u.uint32(10).fork()).ldelim();return u},S.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},S.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;s.pos<m;){var R=s.uint32();R>>>3==1?(I.resourceMetrics&&I.resourceMetrics.length||(I.resourceMetrics=[]),I.resourceMetrics.push(f.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(s,s.uint32()))):s.skipType(7&R)}return I},S.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},S.verify=function(s){if("object"!=typeof s||null===s)return"object expected";if(null!=s.resourceMetrics&&s.hasOwnProperty("resourceMetrics")){if(!Array.isArray(s.resourceMetrics))return"resourceMetrics: array expected";for(var u=0;u<s.resourceMetrics.length;++u){var m=f.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(s.resourceMetrics[u]);if(m)return"resourceMetrics."+m}}return null},S.fromObject=function(s){if(s instanceof f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return s;var u=new f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(s.resourceMetrics){if(!Array.isArray(s.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");u.resourceMetrics=[];for(var m=0;m<s.resourceMetrics.length;++m){if("object"!=typeof s.resourceMetrics[m])throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");u.resourceMetrics[m]=f.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(s.resourceMetrics[m])}}return u},S.toObject=function(s,u){u||(u={});var m={};if((u.arrays||u.defaults)&&(m.resourceMetrics=[]),s.resourceMetrics&&s.resourceMetrics.length){m.resourceMetrics=[];for(var I=0;I<s.resourceMetrics.length;++I)m.resourceMetrics[I]=f.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(s.resourceMetrics[I],u)}return m},S.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},S.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},S}(),y.ExportMetricsServiceResponse=function(){function S(l){if(l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}return S.prototype.partialSuccess=null,S.create=function(s){return new S(s)},S.encode=function(s,u){return u||(u=v.create()),null!=s.partialSuccess&&Object.hasOwnProperty.call(s,"partialSuccess")&&f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(s.partialSuccess,u.uint32(10).fork()).ldelim(),u},S.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},S.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;s.pos<m;){var R=s.uint32();R>>>3==1?I.partialSuccess=f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(s,s.uint32()):s.skipType(7&R)}return I},S.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},S.verify=function(s){if("object"!=typeof s||null===s)return"object expected";if(null!=s.partialSuccess&&s.hasOwnProperty("partialSuccess")){var u=f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(s.partialSuccess);if(u)return"partialSuccess."+u}return null},S.fromObject=function(s){if(s instanceof f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return s;var u=new f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(null!=s.partialSuccess){if("object"!=typeof s.partialSuccess)throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");u.partialSuccess=f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(s.partialSuccess)}return u},S.toObject=function(s,u){u||(u={});var m={};return u.defaults&&(m.partialSuccess=null),null!=s.partialSuccess&&s.hasOwnProperty("partialSuccess")&&(m.partialSuccess=f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(s.partialSuccess,u)),m},S.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},S.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},S}(),y.ExportMetricsPartialSuccess=function(){function S(l){if(l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}return S.prototype.rejectedDataPoints=null,S.prototype.errorMessage=null,S.create=function(s){return new S(s)},S.encode=function(s,u){return u||(u=v.create()),null!=s.rejectedDataPoints&&Object.hasOwnProperty.call(s,"rejectedDataPoints")&&u.uint32(8).int64(s.rejectedDataPoints),null!=s.errorMessage&&Object.hasOwnProperty.call(s,"errorMessage")&&u.uint32(18).string(s.errorMessage),u},S.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},S.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;s.pos<m;){var R=s.uint32();switch(R>>>3){case 1:I.rejectedDataPoints=s.int64();break;case 2:I.errorMessage=s.string();break;default:s.skipType(7&R)}}return I},S.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},S.verify=function(s){return"object"!=typeof s||null===s?"object expected":null==s.rejectedDataPoints||!s.hasOwnProperty("rejectedDataPoints")||h.isInteger(s.rejectedDataPoints)||s.rejectedDataPoints&&h.isInteger(s.rejectedDataPoints.low)&&h.isInteger(s.rejectedDataPoints.high)?null!=s.errorMessage&&s.hasOwnProperty("errorMessage")&&!h.isString(s.errorMessage)?"errorMessage: string expected":null:"rejectedDataPoints: integer|Long expected"},S.fromObject=function(s){if(s instanceof f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return s;var u=new f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return null!=s.rejectedDataPoints&&(h.Long?(u.rejectedDataPoints=h.Long.fromValue(s.rejectedDataPoints)).unsigned=!1:"string"==typeof s.rejectedDataPoints?u.rejectedDataPoints=parseInt(s.rejectedDataPoints,10):"number"==typeof s.rejectedDataPoints?u.rejectedDataPoints=s.rejectedDataPoints:"object"==typeof s.rejectedDataPoints&&(u.rejectedDataPoints=new h.LongBits(s.rejectedDataPoints.low>>>0,s.rejectedDataPoints.high>>>0).toNumber())),null!=s.errorMessage&&(u.errorMessage=String(s.errorMessage)),u},S.toObject=function(s,u){u||(u={});var m={};if(u.defaults){if(h.Long){var I=new h.Long(0,0,!1);m.rejectedDataPoints=u.longs===String?I.toString():u.longs===Number?I.toNumber():I}else m.rejectedDataPoints=u.longs===String?"0":0;m.errorMessage=""}return null!=s.rejectedDataPoints&&s.hasOwnProperty("rejectedDataPoints")&&(m.rejectedDataPoints="number"==typeof s.rejectedDataPoints?u.longs===String?String(s.rejectedDataPoints):s.rejectedDataPoints:u.longs===String?h.Long.prototype.toString.call(s.rejectedDataPoints):u.longs===Number?new h.LongBits(s.rejectedDataPoints.low>>>0,s.rejectedDataPoints.high>>>0).toNumber():s.rejectedDataPoints),null!=s.errorMessage&&s.hasOwnProperty("errorMessage")&&(m.errorMessage=s.errorMessage),m},S.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},S.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},S}(),y),E}(),T.logs=function(){var y,E={};return E.v1=((y={}).LogsService=function(){function S(l,s,u){r.rpc.Service.call(this,l,s,u)}return(S.prototype=Object.create(r.rpc.Service.prototype)).constructor=S,S.create=function(s,u,m){return new this(s,u,m)},Object.defineProperty(S.prototype.export=function l(s,u){return this.rpcCall(l,f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,s,u)},"name",{value:"Export"}),S}(),y.ExportLogsServiceRequest=function(){function S(l){if(this.resourceLogs=[],l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}return S.prototype.resourceLogs=h.emptyArray,S.create=function(s){return new S(s)},S.encode=function(s,u){if(u||(u=v.create()),null!=s.resourceLogs&&s.resourceLogs.length)for(var m=0;m<s.resourceLogs.length;++m)f.opentelemetry.proto.logs.v1.ResourceLogs.encode(s.resourceLogs[m],u.uint32(10).fork()).ldelim();return u},S.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},S.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;s.pos<m;){var R=s.uint32();R>>>3==1?(I.resourceLogs&&I.resourceLogs.length||(I.resourceLogs=[]),I.resourceLogs.push(f.opentelemetry.proto.logs.v1.ResourceLogs.decode(s,s.uint32()))):s.skipType(7&R)}return I},S.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},S.verify=function(s){if("object"!=typeof s||null===s)return"object expected";if(null!=s.resourceLogs&&s.hasOwnProperty("resourceLogs")){if(!Array.isArray(s.resourceLogs))return"resourceLogs: array expected";for(var u=0;u<s.resourceLogs.length;++u){var m=f.opentelemetry.proto.logs.v1.ResourceLogs.verify(s.resourceLogs[u]);if(m)return"resourceLogs."+m}}return null},S.fromObject=function(s){if(s instanceof f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return s;var u=new f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(s.resourceLogs){if(!Array.isArray(s.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");u.resourceLogs=[];for(var m=0;m<s.resourceLogs.length;++m){if("object"!=typeof s.resourceLogs[m])throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");u.resourceLogs[m]=f.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(s.resourceLogs[m])}}return u},S.toObject=function(s,u){u||(u={});var m={};if((u.arrays||u.defaults)&&(m.resourceLogs=[]),s.resourceLogs&&s.resourceLogs.length){m.resourceLogs=[];for(var I=0;I<s.resourceLogs.length;++I)m.resourceLogs[I]=f.opentelemetry.proto.logs.v1.ResourceLogs.toObject(s.resourceLogs[I],u)}return m},S.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},S.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},S}(),y.ExportLogsServiceResponse=function(){function S(l){if(l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}return S.prototype.partialSuccess=null,S.create=function(s){return new S(s)},S.encode=function(s,u){return u||(u=v.create()),null!=s.partialSuccess&&Object.hasOwnProperty.call(s,"partialSuccess")&&f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(s.partialSuccess,u.uint32(10).fork()).ldelim(),u},S.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},S.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;s.pos<m;){var R=s.uint32();R>>>3==1?I.partialSuccess=f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(s,s.uint32()):s.skipType(7&R)}return I},S.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},S.verify=function(s){if("object"!=typeof s||null===s)return"object expected";if(null!=s.partialSuccess&&s.hasOwnProperty("partialSuccess")){var u=f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(s.partialSuccess);if(u)return"partialSuccess."+u}return null},S.fromObject=function(s){if(s instanceof f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return s;var u=new f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(null!=s.partialSuccess){if("object"!=typeof s.partialSuccess)throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");u.partialSuccess=f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(s.partialSuccess)}return u},S.toObject=function(s,u){u||(u={});var m={};return u.defaults&&(m.partialSuccess=null),null!=s.partialSuccess&&s.hasOwnProperty("partialSuccess")&&(m.partialSuccess=f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(s.partialSuccess,u)),m},S.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},S.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},S}(),y.ExportLogsPartialSuccess=function(){function S(l){if(l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}return S.prototype.rejectedLogRecords=null,S.prototype.errorMessage=null,S.create=function(s){return new S(s)},S.encode=function(s,u){return u||(u=v.create()),null!=s.rejectedLogRecords&&Object.hasOwnProperty.call(s,"rejectedLogRecords")&&u.uint32(8).int64(s.rejectedLogRecords),null!=s.errorMessage&&Object.hasOwnProperty.call(s,"errorMessage")&&u.uint32(18).string(s.errorMessage),u},S.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},S.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;s.pos<m;){var R=s.uint32();switch(R>>>3){case 1:I.rejectedLogRecords=s.int64();break;case 2:I.errorMessage=s.string();break;default:s.skipType(7&R)}}return I},S.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},S.verify=function(s){return"object"!=typeof s||null===s?"object expected":null==s.rejectedLogRecords||!s.hasOwnProperty("rejectedLogRecords")||h.isInteger(s.rejectedLogRecords)||s.rejectedLogRecords&&h.isInteger(s.rejectedLogRecords.low)&&h.isInteger(s.rejectedLogRecords.high)?null!=s.errorMessage&&s.hasOwnProperty("errorMessage")&&!h.isString(s.errorMessage)?"errorMessage: string expected":null:"rejectedLogRecords: integer|Long expected"},S.fromObject=function(s){if(s instanceof f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return s;var u=new f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return null!=s.rejectedLogRecords&&(h.Long?(u.rejectedLogRecords=h.Long.fromValue(s.rejectedLogRecords)).unsigned=!1:"string"==typeof s.rejectedLogRecords?u.rejectedLogRecords=parseInt(s.rejectedLogRecords,10):"number"==typeof s.rejectedLogRecords?u.rejectedLogRecords=s.rejectedLogRecords:"object"==typeof s.rejectedLogRecords&&(u.rejectedLogRecords=new h.LongBits(s.rejectedLogRecords.low>>>0,s.rejectedLogRecords.high>>>0).toNumber())),null!=s.errorMessage&&(u.errorMessage=String(s.errorMessage)),u},S.toObject=function(s,u){u||(u={});var m={};if(u.defaults){if(h.Long){var I=new h.Long(0,0,!1);m.rejectedLogRecords=u.longs===String?I.toString():u.longs===Number?I.toNumber():I}else m.rejectedLogRecords=u.longs===String?"0":0;m.errorMessage=""}return null!=s.rejectedLogRecords&&s.hasOwnProperty("rejectedLogRecords")&&(m.rejectedLogRecords="number"==typeof s.rejectedLogRecords?u.longs===String?String(s.rejectedLogRecords):s.rejectedLogRecords:u.longs===String?h.Long.prototype.toString.call(s.rejectedLogRecords):u.longs===Number?new h.LongBits(s.rejectedLogRecords.low>>>0,s.rejectedLogRecords.high>>>0).toNumber():s.rejectedLogRecords),null!=s.errorMessage&&s.hasOwnProperty("errorMessage")&&(m.errorMessage=s.errorMessage),m},S.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},S.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},S}(),y),E}(),T}(),M.metrics=function(){var T={};return T.v1=function(){var y,S,E={};return E.MetricsData=function(){function y(S){if(this.resourceMetrics=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.resourceMetrics=h.emptyArray,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.resourceMetrics&&l.resourceMetrics.length)for(var u=0;u<l.resourceMetrics.length;++u)f.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(l.resourceMetrics[u],s.uint32(10).fork()).ldelim();return s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.metrics.v1.MetricsData;l.pos<u;){var I=l.uint32();I>>>3==1?(m.resourceMetrics&&m.resourceMetrics.length||(m.resourceMetrics=[]),m.resourceMetrics.push(f.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(l,l.uint32()))):l.skipType(7&I)}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.resourceMetrics&&l.hasOwnProperty("resourceMetrics")){if(!Array.isArray(l.resourceMetrics))return"resourceMetrics: array expected";for(var s=0;s<l.resourceMetrics.length;++s){var u=f.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(l.resourceMetrics[s]);if(u)return"resourceMetrics."+u}}return null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.metrics.v1.MetricsData)return l;var s=new f.opentelemetry.proto.metrics.v1.MetricsData;if(l.resourceMetrics){if(!Array.isArray(l.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");s.resourceMetrics=[];for(var u=0;u<l.resourceMetrics.length;++u){if("object"!=typeof l.resourceMetrics[u])throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");s.resourceMetrics[u]=f.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(l.resourceMetrics[u])}}return s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.resourceMetrics=[]),l.resourceMetrics&&l.resourceMetrics.length){u.resourceMetrics=[];for(var m=0;m<l.resourceMetrics.length;++m)u.resourceMetrics[m]=f.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(l.resourceMetrics[m],s)}return u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.MetricsData"},y}(),E.ResourceMetrics=function(){function y(S){if(this.scopeMetrics=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.resource=null,y.prototype.scopeMetrics=h.emptyArray,y.prototype.schemaUrl=null,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.resource&&Object.hasOwnProperty.call(l,"resource")&&f.opentelemetry.proto.resource.v1.Resource.encode(l.resource,s.uint32(10).fork()).ldelim(),null!=l.scopeMetrics&&l.scopeMetrics.length)for(var u=0;u<l.scopeMetrics.length;++u)f.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(l.scopeMetrics[u],s.uint32(18).fork()).ldelim();return null!=l.schemaUrl&&Object.hasOwnProperty.call(l,"schemaUrl")&&s.uint32(26).string(l.schemaUrl),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.metrics.v1.ResourceMetrics;l.pos<u;){var I=l.uint32();switch(I>>>3){case 1:m.resource=f.opentelemetry.proto.resource.v1.Resource.decode(l,l.uint32());break;case 2:m.scopeMetrics&&m.scopeMetrics.length||(m.scopeMetrics=[]),m.scopeMetrics.push(f.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(l,l.uint32()));break;case 3:m.schemaUrl=l.string();break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.resource&&l.hasOwnProperty("resource")&&(s=f.opentelemetry.proto.resource.v1.Resource.verify(l.resource)))return"resource."+s;if(null!=l.scopeMetrics&&l.hasOwnProperty("scopeMetrics")){if(!Array.isArray(l.scopeMetrics))return"scopeMetrics: array expected";for(var u=0;u<l.scopeMetrics.length;++u){var s;if(s=f.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(l.scopeMetrics[u]))return"scopeMetrics."+s}}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&!h.isString(l.schemaUrl)?"schemaUrl: string expected":null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.metrics.v1.ResourceMetrics)return l;var s=new f.opentelemetry.proto.metrics.v1.ResourceMetrics;if(null!=l.resource){if("object"!=typeof l.resource)throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");s.resource=f.opentelemetry.proto.resource.v1.Resource.fromObject(l.resource)}if(l.scopeMetrics){if(!Array.isArray(l.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");s.scopeMetrics=[];for(var u=0;u<l.scopeMetrics.length;++u){if("object"!=typeof l.scopeMetrics[u])throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");s.scopeMetrics[u]=f.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(l.scopeMetrics[u])}}return null!=l.schemaUrl&&(s.schemaUrl=String(l.schemaUrl)),s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.scopeMetrics=[]),s.defaults&&(u.resource=null,u.schemaUrl=""),null!=l.resource&&l.hasOwnProperty("resource")&&(u.resource=f.opentelemetry.proto.resource.v1.Resource.toObject(l.resource,s)),l.scopeMetrics&&l.scopeMetrics.length){u.scopeMetrics=[];for(var m=0;m<l.scopeMetrics.length;++m)u.scopeMetrics[m]=f.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(l.scopeMetrics[m],s)}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&(u.schemaUrl=l.schemaUrl),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},y}(),E.ScopeMetrics=function(){function y(S){if(this.metrics=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.scope=null,y.prototype.metrics=h.emptyArray,y.prototype.schemaUrl=null,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.scope&&Object.hasOwnProperty.call(l,"scope")&&f.opentelemetry.proto.common.v1.InstrumentationScope.encode(l.scope,s.uint32(10).fork()).ldelim(),null!=l.metrics&&l.metrics.length)for(var u=0;u<l.metrics.length;++u)f.opentelemetry.proto.metrics.v1.Metric.encode(l.metrics[u],s.uint32(18).fork()).ldelim();return null!=l.schemaUrl&&Object.hasOwnProperty.call(l,"schemaUrl")&&s.uint32(26).string(l.schemaUrl),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.metrics.v1.ScopeMetrics;l.pos<u;){var I=l.uint32();switch(I>>>3){case 1:m.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.decode(l,l.uint32());break;case 2:m.metrics&&m.metrics.length||(m.metrics=[]),m.metrics.push(f.opentelemetry.proto.metrics.v1.Metric.decode(l,l.uint32()));break;case 3:m.schemaUrl=l.string();break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.scope&&l.hasOwnProperty("scope")&&(s=f.opentelemetry.proto.common.v1.InstrumentationScope.verify(l.scope)))return"scope."+s;if(null!=l.metrics&&l.hasOwnProperty("metrics")){if(!Array.isArray(l.metrics))return"metrics: array expected";for(var u=0;u<l.metrics.length;++u){var s;if(s=f.opentelemetry.proto.metrics.v1.Metric.verify(l.metrics[u]))return"metrics."+s}}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&!h.isString(l.schemaUrl)?"schemaUrl: string expected":null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.metrics.v1.ScopeMetrics)return l;var s=new f.opentelemetry.proto.metrics.v1.ScopeMetrics;if(null!=l.scope){if("object"!=typeof l.scope)throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");s.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(l.scope)}if(l.metrics){if(!Array.isArray(l.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");s.metrics=[];for(var u=0;u<l.metrics.length;++u){if("object"!=typeof l.metrics[u])throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");s.metrics[u]=f.opentelemetry.proto.metrics.v1.Metric.fromObject(l.metrics[u])}}return null!=l.schemaUrl&&(s.schemaUrl=String(l.schemaUrl)),s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.metrics=[]),s.defaults&&(u.scope=null,u.schemaUrl=""),null!=l.scope&&l.hasOwnProperty("scope")&&(u.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.toObject(l.scope,s)),l.metrics&&l.metrics.length){u.metrics=[];for(var m=0;m<l.metrics.length;++m)u.metrics[m]=f.opentelemetry.proto.metrics.v1.Metric.toObject(l.metrics[m],s)}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&(u.schemaUrl=l.schemaUrl),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},y}(),E.Metric=function(){function y(l){if(l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}var S;return y.prototype.name=null,y.prototype.description=null,y.prototype.unit=null,y.prototype.gauge=null,y.prototype.sum=null,y.prototype.histogram=null,y.prototype.exponentialHistogram=null,y.prototype.summary=null,Object.defineProperty(y.prototype,"data",{get:h.oneOfGetter(S=["gauge","sum","histogram","exponentialHistogram","summary"]),set:h.oneOfSetter(S)}),y.create=function(s){return new y(s)},y.encode=function(s,u){return u||(u=v.create()),null!=s.name&&Object.hasOwnProperty.call(s,"name")&&u.uint32(10).string(s.name),null!=s.description&&Object.hasOwnProperty.call(s,"description")&&u.uint32(18).string(s.description),null!=s.unit&&Object.hasOwnProperty.call(s,"unit")&&u.uint32(26).string(s.unit),null!=s.gauge&&Object.hasOwnProperty.call(s,"gauge")&&f.opentelemetry.proto.metrics.v1.Gauge.encode(s.gauge,u.uint32(42).fork()).ldelim(),null!=s.sum&&Object.hasOwnProperty.call(s,"sum")&&f.opentelemetry.proto.metrics.v1.Sum.encode(s.sum,u.uint32(58).fork()).ldelim(),null!=s.histogram&&Object.hasOwnProperty.call(s,"histogram")&&f.opentelemetry.proto.metrics.v1.Histogram.encode(s.histogram,u.uint32(74).fork()).ldelim(),null!=s.exponentialHistogram&&Object.hasOwnProperty.call(s,"exponentialHistogram")&&f.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(s.exponentialHistogram,u.uint32(82).fork()).ldelim(),null!=s.summary&&Object.hasOwnProperty.call(s,"summary")&&f.opentelemetry.proto.metrics.v1.Summary.encode(s.summary,u.uint32(90).fork()).ldelim(),u},y.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},y.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.metrics.v1.Metric;s.pos<m;){var R=s.uint32();switch(R>>>3){case 1:I.name=s.string();break;case 2:I.description=s.string();break;case 3:I.unit=s.string();break;case 5:I.gauge=f.opentelemetry.proto.metrics.v1.Gauge.decode(s,s.uint32());break;case 7:I.sum=f.opentelemetry.proto.metrics.v1.Sum.decode(s,s.uint32());break;case 9:I.histogram=f.opentelemetry.proto.metrics.v1.Histogram.decode(s,s.uint32());break;case 10:I.exponentialHistogram=f.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(s,s.uint32());break;case 11:I.summary=f.opentelemetry.proto.metrics.v1.Summary.decode(s,s.uint32());break;default:s.skipType(7&R)}}return I},y.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},y.verify=function(s){if("object"!=typeof s||null===s)return"object expected";var u={};if(null!=s.name&&s.hasOwnProperty("name")&&!h.isString(s.name))return"name: string expected";if(null!=s.description&&s.hasOwnProperty("description")&&!h.isString(s.description))return"description: string expected";if(null!=s.unit&&s.hasOwnProperty("unit")&&!h.isString(s.unit))return"unit: string expected";if(null!=s.gauge&&s.hasOwnProperty("gauge")&&(u.data=1,m=f.opentelemetry.proto.metrics.v1.Gauge.verify(s.gauge)))return"gauge."+m;if(null!=s.sum&&s.hasOwnProperty("sum")){if(1===u.data)return"data: multiple values";if(u.data=1,m=f.opentelemetry.proto.metrics.v1.Sum.verify(s.sum))return"sum."+m}if(null!=s.histogram&&s.hasOwnProperty("histogram")){if(1===u.data)return"data: multiple values";if(u.data=1,m=f.opentelemetry.proto.metrics.v1.Histogram.verify(s.histogram))return"histogram."+m}if(null!=s.exponentialHistogram&&s.hasOwnProperty("exponentialHistogram")){if(1===u.data)return"data: multiple values";if(u.data=1,m=f.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(s.exponentialHistogram))return"exponentialHistogram."+m}if(null!=s.summary&&s.hasOwnProperty("summary")){if(1===u.data)return"data: multiple values";var m;if(u.data=1,m=f.opentelemetry.proto.metrics.v1.Summary.verify(s.summary))return"summary."+m}return null},y.fromObject=function(s){if(s instanceof f.opentelemetry.proto.metrics.v1.Metric)return s;var u=new f.opentelemetry.proto.metrics.v1.Metric;if(null!=s.name&&(u.name=String(s.name)),null!=s.description&&(u.description=String(s.description)),null!=s.unit&&(u.unit=String(s.unit)),null!=s.gauge){if("object"!=typeof s.gauge)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");u.gauge=f.opentelemetry.proto.metrics.v1.Gauge.fromObject(s.gauge)}if(null!=s.sum){if("object"!=typeof s.sum)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");u.sum=f.opentelemetry.proto.metrics.v1.Sum.fromObject(s.sum)}if(null!=s.histogram){if("object"!=typeof s.histogram)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");u.histogram=f.opentelemetry.proto.metrics.v1.Histogram.fromObject(s.histogram)}if(null!=s.exponentialHistogram){if("object"!=typeof s.exponentialHistogram)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");u.exponentialHistogram=f.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(s.exponentialHistogram)}if(null!=s.summary){if("object"!=typeof s.summary)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");u.summary=f.opentelemetry.proto.metrics.v1.Summary.fromObject(s.summary)}return u},y.toObject=function(s,u){u||(u={});var m={};return u.defaults&&(m.name="",m.description="",m.unit=""),null!=s.name&&s.hasOwnProperty("name")&&(m.name=s.name),null!=s.description&&s.hasOwnProperty("description")&&(m.description=s.description),null!=s.unit&&s.hasOwnProperty("unit")&&(m.unit=s.unit),null!=s.gauge&&s.hasOwnProperty("gauge")&&(m.gauge=f.opentelemetry.proto.metrics.v1.Gauge.toObject(s.gauge,u),u.oneofs&&(m.data="gauge")),null!=s.sum&&s.hasOwnProperty("sum")&&(m.sum=f.opentelemetry.proto.metrics.v1.Sum.toObject(s.sum,u),u.oneofs&&(m.data="sum")),null!=s.histogram&&s.hasOwnProperty("histogram")&&(m.histogram=f.opentelemetry.proto.metrics.v1.Histogram.toObject(s.histogram,u),u.oneofs&&(m.data="histogram")),null!=s.exponentialHistogram&&s.hasOwnProperty("exponentialHistogram")&&(m.exponentialHistogram=f.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(s.exponentialHistogram,u),u.oneofs&&(m.data="exponentialHistogram")),null!=s.summary&&s.hasOwnProperty("summary")&&(m.summary=f.opentelemetry.proto.metrics.v1.Summary.toObject(s.summary,u),u.oneofs&&(m.data="summary")),m},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.metrics.v1.Metric"},y}(),E.Gauge=function(){function y(S){if(this.dataPoints=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.dataPoints=h.emptyArray,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.dataPoints&&l.dataPoints.length)for(var u=0;u<l.dataPoints.length;++u)f.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(l.dataPoints[u],s.uint32(10).fork()).ldelim();return s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.metrics.v1.Gauge;l.pos<u;){var I=l.uint32();I>>>3==1?(m.dataPoints&&m.dataPoints.length||(m.dataPoints=[]),m.dataPoints.push(f.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(l,l.uint32()))):l.skipType(7&I)}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.dataPoints&&l.hasOwnProperty("dataPoints")){if(!Array.isArray(l.dataPoints))return"dataPoints: array expected";for(var s=0;s<l.dataPoints.length;++s){var u=f.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(l.dataPoints[s]);if(u)return"dataPoints."+u}}return null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.metrics.v1.Gauge)return l;var s=new f.opentelemetry.proto.metrics.v1.Gauge;if(l.dataPoints){if(!Array.isArray(l.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");s.dataPoints=[];for(var u=0;u<l.dataPoints.length;++u){if("object"!=typeof l.dataPoints[u])throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");s.dataPoints[u]=f.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(l.dataPoints[u])}}return s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.dataPoints=[]),l.dataPoints&&l.dataPoints.length){u.dataPoints=[];for(var m=0;m<l.dataPoints.length;++m)u.dataPoints[m]=f.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(l.dataPoints[m],s)}return u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.Gauge"},y}(),E.Sum=function(){function y(S){if(this.dataPoints=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.dataPoints=h.emptyArray,y.prototype.aggregationTemporality=null,y.prototype.isMonotonic=null,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.dataPoints&&l.dataPoints.length)for(var u=0;u<l.dataPoints.length;++u)f.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(l.dataPoints[u],s.uint32(10).fork()).ldelim();return null!=l.aggregationTemporality&&Object.hasOwnProperty.call(l,"aggregationTemporality")&&s.uint32(16).int32(l.aggregationTemporality),null!=l.isMonotonic&&Object.hasOwnProperty.call(l,"isMonotonic")&&s.uint32(24).bool(l.isMonotonic),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.metrics.v1.Sum;l.pos<u;){var I=l.uint32();switch(I>>>3){case 1:m.dataPoints&&m.dataPoints.length||(m.dataPoints=[]),m.dataPoints.push(f.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(l,l.uint32()));break;case 2:m.aggregationTemporality=l.int32();break;case 3:m.isMonotonic=l.bool();break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.dataPoints&&l.hasOwnProperty("dataPoints")){if(!Array.isArray(l.dataPoints))return"dataPoints: array expected";for(var s=0;s<l.dataPoints.length;++s){var u=f.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(l.dataPoints[s]);if(u)return"dataPoints."+u}}if(null!=l.aggregationTemporality&&l.hasOwnProperty("aggregationTemporality"))switch(l.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:}return null!=l.isMonotonic&&l.hasOwnProperty("isMonotonic")&&"boolean"!=typeof l.isMonotonic?"isMonotonic: boolean expected":null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.metrics.v1.Sum)return l;var s=new f.opentelemetry.proto.metrics.v1.Sum;if(l.dataPoints){if(!Array.isArray(l.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");s.dataPoints=[];for(var u=0;u<l.dataPoints.length;++u){if("object"!=typeof l.dataPoints[u])throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");s.dataPoints[u]=f.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(l.dataPoints[u])}}switch(l.aggregationTemporality){default:if("number"==typeof l.aggregationTemporality){s.aggregationTemporality=l.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:s.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:s.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:s.aggregationTemporality=2}return null!=l.isMonotonic&&(s.isMonotonic=!!l.isMonotonic),s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.dataPoints=[]),s.defaults&&(u.aggregationTemporality=s.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,u.isMonotonic=!1),l.dataPoints&&l.dataPoints.length){u.dataPoints=[];for(var m=0;m<l.dataPoints.length;++m)u.dataPoints[m]=f.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(l.dataPoints[m],s)}return null!=l.aggregationTemporality&&l.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=s.enums===String?void 0===f.opentelemetry.proto.metrics.v1.AggregationTemporality[l.aggregationTemporality]?l.aggregationTemporality:f.opentelemetry.proto.metrics.v1.AggregationTemporality[l.aggregationTemporality]:l.aggregationTemporality),null!=l.isMonotonic&&l.hasOwnProperty("isMonotonic")&&(u.isMonotonic=l.isMonotonic),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.Sum"},y}(),E.Histogram=function(){function y(S){if(this.dataPoints=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.dataPoints=h.emptyArray,y.prototype.aggregationTemporality=null,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.dataPoints&&l.dataPoints.length)for(var u=0;u<l.dataPoints.length;++u)f.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(l.dataPoints[u],s.uint32(10).fork()).ldelim();return null!=l.aggregationTemporality&&Object.hasOwnProperty.call(l,"aggregationTemporality")&&s.uint32(16).int32(l.aggregationTemporality),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.metrics.v1.Histogram;l.pos<u;){var I=l.uint32();switch(I>>>3){case 1:m.dataPoints&&m.dataPoints.length||(m.dataPoints=[]),m.dataPoints.push(f.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(l,l.uint32()));break;case 2:m.aggregationTemporality=l.int32();break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.dataPoints&&l.hasOwnProperty("dataPoints")){if(!Array.isArray(l.dataPoints))return"dataPoints: array expected";for(var s=0;s<l.dataPoints.length;++s){var u=f.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(l.dataPoints[s]);if(u)return"dataPoints."+u}}if(null!=l.aggregationTemporality&&l.hasOwnProperty("aggregationTemporality"))switch(l.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:}return null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.metrics.v1.Histogram)return l;var s=new f.opentelemetry.proto.metrics.v1.Histogram;if(l.dataPoints){if(!Array.isArray(l.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");s.dataPoints=[];for(var u=0;u<l.dataPoints.length;++u){if("object"!=typeof l.dataPoints[u])throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");s.dataPoints[u]=f.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(l.dataPoints[u])}}switch(l.aggregationTemporality){default:if("number"==typeof l.aggregationTemporality){s.aggregationTemporality=l.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:s.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:s.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:s.aggregationTemporality=2}return s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.dataPoints=[]),s.defaults&&(u.aggregationTemporality=s.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),l.dataPoints&&l.dataPoints.length){u.dataPoints=[];for(var m=0;m<l.dataPoints.length;++m)u.dataPoints[m]=f.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(l.dataPoints[m],s)}return null!=l.aggregationTemporality&&l.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=s.enums===String?void 0===f.opentelemetry.proto.metrics.v1.AggregationTemporality[l.aggregationTemporality]?l.aggregationTemporality:f.opentelemetry.proto.metrics.v1.AggregationTemporality[l.aggregationTemporality]:l.aggregationTemporality),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.Histogram"},y}(),E.ExponentialHistogram=function(){function y(S){if(this.dataPoints=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.dataPoints=h.emptyArray,y.prototype.aggregationTemporality=null,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.dataPoints&&l.dataPoints.length)for(var u=0;u<l.dataPoints.length;++u)f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(l.dataPoints[u],s.uint32(10).fork()).ldelim();return null!=l.aggregationTemporality&&Object.hasOwnProperty.call(l,"aggregationTemporality")&&s.uint32(16).int32(l.aggregationTemporality),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.metrics.v1.ExponentialHistogram;l.pos<u;){var I=l.uint32();switch(I>>>3){case 1:m.dataPoints&&m.dataPoints.length||(m.dataPoints=[]),m.dataPoints.push(f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(l,l.uint32()));break;case 2:m.aggregationTemporality=l.int32();break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.dataPoints&&l.hasOwnProperty("dataPoints")){if(!Array.isArray(l.dataPoints))return"dataPoints: array expected";for(var s=0;s<l.dataPoints.length;++s){var u=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(l.dataPoints[s]);if(u)return"dataPoints."+u}}if(null!=l.aggregationTemporality&&l.hasOwnProperty("aggregationTemporality"))switch(l.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:}return null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.metrics.v1.ExponentialHistogram)return l;var s=new f.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(l.dataPoints){if(!Array.isArray(l.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");s.dataPoints=[];for(var u=0;u<l.dataPoints.length;++u){if("object"!=typeof l.dataPoints[u])throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");s.dataPoints[u]=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(l.dataPoints[u])}}switch(l.aggregationTemporality){default:if("number"==typeof l.aggregationTemporality){s.aggregationTemporality=l.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:s.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:s.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:s.aggregationTemporality=2}return s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.dataPoints=[]),s.defaults&&(u.aggregationTemporality=s.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),l.dataPoints&&l.dataPoints.length){u.dataPoints=[];for(var m=0;m<l.dataPoints.length;++m)u.dataPoints[m]=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(l.dataPoints[m],s)}return null!=l.aggregationTemporality&&l.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=s.enums===String?void 0===f.opentelemetry.proto.metrics.v1.AggregationTemporality[l.aggregationTemporality]?l.aggregationTemporality:f.opentelemetry.proto.metrics.v1.AggregationTemporality[l.aggregationTemporality]:l.aggregationTemporality),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},y}(),E.Summary=function(){function y(S){if(this.dataPoints=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.dataPoints=h.emptyArray,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.dataPoints&&l.dataPoints.length)for(var u=0;u<l.dataPoints.length;++u)f.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(l.dataPoints[u],s.uint32(10).fork()).ldelim();return s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.metrics.v1.Summary;l.pos<u;){var I=l.uint32();I>>>3==1?(m.dataPoints&&m.dataPoints.length||(m.dataPoints=[]),m.dataPoints.push(f.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(l,l.uint32()))):l.skipType(7&I)}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.dataPoints&&l.hasOwnProperty("dataPoints")){if(!Array.isArray(l.dataPoints))return"dataPoints: array expected";for(var s=0;s<l.dataPoints.length;++s){var u=f.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(l.dataPoints[s]);if(u)return"dataPoints."+u}}return null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.metrics.v1.Summary)return l;var s=new f.opentelemetry.proto.metrics.v1.Summary;if(l.dataPoints){if(!Array.isArray(l.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");s.dataPoints=[];for(var u=0;u<l.dataPoints.length;++u){if("object"!=typeof l.dataPoints[u])throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");s.dataPoints[u]=f.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(l.dataPoints[u])}}return s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.dataPoints=[]),l.dataPoints&&l.dataPoints.length){u.dataPoints=[];for(var m=0;m<l.dataPoints.length;++m)u.dataPoints[m]=f.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(l.dataPoints[m],s)}return u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.Summary"},y}(),E.AggregationTemporality=(y={},(S=Object.create(y))[y[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,S[y[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,S[y[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,S),E.DataPointFlags=function(){var y={},S=Object.create(y);return S[y[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,S[y[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,S}(),E.NumberDataPoint=function(){function y(l){if(this.attributes=[],this.exemplars=[],l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}var S;return y.prototype.attributes=h.emptyArray,y.prototype.startTimeUnixNano=null,y.prototype.timeUnixNano=null,y.prototype.asDouble=null,y.prototype.asInt=null,y.prototype.exemplars=h.emptyArray,y.prototype.flags=null,Object.defineProperty(y.prototype,"value",{get:h.oneOfGetter(S=["asDouble","asInt"]),set:h.oneOfSetter(S)}),y.create=function(s){return new y(s)},y.encode=function(s,u){if(u||(u=v.create()),null!=s.startTimeUnixNano&&Object.hasOwnProperty.call(s,"startTimeUnixNano")&&u.uint32(17).fixed64(s.startTimeUnixNano),null!=s.timeUnixNano&&Object.hasOwnProperty.call(s,"timeUnixNano")&&u.uint32(25).fixed64(s.timeUnixNano),null!=s.asDouble&&Object.hasOwnProperty.call(s,"asDouble")&&u.uint32(33).double(s.asDouble),null!=s.exemplars&&s.exemplars.length)for(var m=0;m<s.exemplars.length;++m)f.opentelemetry.proto.metrics.v1.Exemplar.encode(s.exemplars[m],u.uint32(42).fork()).ldelim();if(null!=s.asInt&&Object.hasOwnProperty.call(s,"asInt")&&u.uint32(49).sfixed64(s.asInt),null!=s.attributes&&s.attributes.length)for(m=0;m<s.attributes.length;++m)f.opentelemetry.proto.common.v1.KeyValue.encode(s.attributes[m],u.uint32(58).fork()).ldelim();return null!=s.flags&&Object.hasOwnProperty.call(s,"flags")&&u.uint32(64).uint32(s.flags),u},y.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},y.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.metrics.v1.NumberDataPoint;s.pos<m;){var R=s.uint32();switch(R>>>3){case 7:I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(s,s.uint32()));break;case 2:I.startTimeUnixNano=s.fixed64();break;case 3:I.timeUnixNano=s.fixed64();break;case 4:I.asDouble=s.double();break;case 6:I.asInt=s.sfixed64();break;case 5:I.exemplars&&I.exemplars.length||(I.exemplars=[]),I.exemplars.push(f.opentelemetry.proto.metrics.v1.Exemplar.decode(s,s.uint32()));break;case 8:I.flags=s.uint32();break;default:s.skipType(7&R)}}return I},y.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},y.verify=function(s){if("object"!=typeof s||null===s)return"object expected";var u={};if(null!=s.attributes&&s.hasOwnProperty("attributes")){if(!Array.isArray(s.attributes))return"attributes: array expected";for(var m=0;m<s.attributes.length;++m)if(I=f.opentelemetry.proto.common.v1.KeyValue.verify(s.attributes[m]))return"attributes."+I}if(null!=s.startTimeUnixNano&&s.hasOwnProperty("startTimeUnixNano")&&!h.isInteger(s.startTimeUnixNano)&&!(s.startTimeUnixNano&&h.isInteger(s.startTimeUnixNano.low)&&h.isInteger(s.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=s.timeUnixNano&&s.hasOwnProperty("timeUnixNano")&&!h.isInteger(s.timeUnixNano)&&!(s.timeUnixNano&&h.isInteger(s.timeUnixNano.low)&&h.isInteger(s.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=s.asDouble&&s.hasOwnProperty("asDouble")&&(u.value=1,"number"!=typeof s.asDouble))return"asDouble: number expected";if(null!=s.asInt&&s.hasOwnProperty("asInt")){if(1===u.value)return"value: multiple values";if(u.value=1,!(h.isInteger(s.asInt)||s.asInt&&h.isInteger(s.asInt.low)&&h.isInteger(s.asInt.high)))return"asInt: integer|Long expected"}if(null!=s.exemplars&&s.hasOwnProperty("exemplars")){if(!Array.isArray(s.exemplars))return"exemplars: array expected";for(m=0;m<s.exemplars.length;++m){var I;if(I=f.opentelemetry.proto.metrics.v1.Exemplar.verify(s.exemplars[m]))return"exemplars."+I}}return null!=s.flags&&s.hasOwnProperty("flags")&&!h.isInteger(s.flags)?"flags: integer expected":null},y.fromObject=function(s){if(s instanceof f.opentelemetry.proto.metrics.v1.NumberDataPoint)return s;var u=new f.opentelemetry.proto.metrics.v1.NumberDataPoint;if(s.attributes){if(!Array.isArray(s.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");u.attributes=[];for(var m=0;m<s.attributes.length;++m){if("object"!=typeof s.attributes[m])throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");u.attributes[m]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(s.attributes[m])}}if(null!=s.startTimeUnixNano&&(h.Long?(u.startTimeUnixNano=h.Long.fromValue(s.startTimeUnixNano)).unsigned=!1:"string"==typeof s.startTimeUnixNano?u.startTimeUnixNano=parseInt(s.startTimeUnixNano,10):"number"==typeof s.startTimeUnixNano?u.startTimeUnixNano=s.startTimeUnixNano:"object"==typeof s.startTimeUnixNano&&(u.startTimeUnixNano=new h.LongBits(s.startTimeUnixNano.low>>>0,s.startTimeUnixNano.high>>>0).toNumber())),null!=s.timeUnixNano&&(h.Long?(u.timeUnixNano=h.Long.fromValue(s.timeUnixNano)).unsigned=!1:"string"==typeof s.timeUnixNano?u.timeUnixNano=parseInt(s.timeUnixNano,10):"number"==typeof s.timeUnixNano?u.timeUnixNano=s.timeUnixNano:"object"==typeof s.timeUnixNano&&(u.timeUnixNano=new h.LongBits(s.timeUnixNano.low>>>0,s.timeUnixNano.high>>>0).toNumber())),null!=s.asDouble&&(u.asDouble=Number(s.asDouble)),null!=s.asInt&&(h.Long?(u.asInt=h.Long.fromValue(s.asInt)).unsigned=!1:"string"==typeof s.asInt?u.asInt=parseInt(s.asInt,10):"number"==typeof s.asInt?u.asInt=s.asInt:"object"==typeof s.asInt&&(u.asInt=new h.LongBits(s.asInt.low>>>0,s.asInt.high>>>0).toNumber())),s.exemplars){if(!Array.isArray(s.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");for(u.exemplars=[],m=0;m<s.exemplars.length;++m){if("object"!=typeof s.exemplars[m])throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");u.exemplars[m]=f.opentelemetry.proto.metrics.v1.Exemplar.fromObject(s.exemplars[m])}}return null!=s.flags&&(u.flags=s.flags>>>0),u},y.toObject=function(s,u){u||(u={});var m={};if((u.arrays||u.defaults)&&(m.exemplars=[],m.attributes=[]),u.defaults){if(h.Long){var I=new h.Long(0,0,!1);m.startTimeUnixNano=u.longs===String?I.toString():u.longs===Number?I.toNumber():I}else m.startTimeUnixNano=u.longs===String?"0":0;h.Long?(I=new h.Long(0,0,!1),m.timeUnixNano=u.longs===String?I.toString():u.longs===Number?I.toNumber():I):m.timeUnixNano=u.longs===String?"0":0,m.flags=0}if(null!=s.startTimeUnixNano&&s.hasOwnProperty("startTimeUnixNano")&&(m.startTimeUnixNano="number"==typeof s.startTimeUnixNano?u.longs===String?String(s.startTimeUnixNano):s.startTimeUnixNano:u.longs===String?h.Long.prototype.toString.call(s.startTimeUnixNano):u.longs===Number?new h.LongBits(s.startTimeUnixNano.low>>>0,s.startTimeUnixNano.high>>>0).toNumber():s.startTimeUnixNano),null!=s.timeUnixNano&&s.hasOwnProperty("timeUnixNano")&&(m.timeUnixNano="number"==typeof s.timeUnixNano?u.longs===String?String(s.timeUnixNano):s.timeUnixNano:u.longs===String?h.Long.prototype.toString.call(s.timeUnixNano):u.longs===Number?new h.LongBits(s.timeUnixNano.low>>>0,s.timeUnixNano.high>>>0).toNumber():s.timeUnixNano),null!=s.asDouble&&s.hasOwnProperty("asDouble")&&(m.asDouble=u.json&&!isFinite(s.asDouble)?String(s.asDouble):s.asDouble,u.oneofs&&(m.value="asDouble")),s.exemplars&&s.exemplars.length){m.exemplars=[];for(var R=0;R<s.exemplars.length;++R)m.exemplars[R]=f.opentelemetry.proto.metrics.v1.Exemplar.toObject(s.exemplars[R],u)}if(null!=s.asInt&&s.hasOwnProperty("asInt")&&(m.asInt="number"==typeof s.asInt?u.longs===String?String(s.asInt):s.asInt:u.longs===String?h.Long.prototype.toString.call(s.asInt):u.longs===Number?new h.LongBits(s.asInt.low>>>0,s.asInt.high>>>0).toNumber():s.asInt,u.oneofs&&(m.value="asInt")),s.attributes&&s.attributes.length)for(m.attributes=[],R=0;R<s.attributes.length;++R)m.attributes[R]=f.opentelemetry.proto.common.v1.KeyValue.toObject(s.attributes[R],u);return null!=s.flags&&s.hasOwnProperty("flags")&&(m.flags=s.flags),m},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},y}(),E.HistogramDataPoint=function(){function y(l){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}var S;return y.prototype.attributes=h.emptyArray,y.prototype.startTimeUnixNano=null,y.prototype.timeUnixNano=null,y.prototype.count=null,y.prototype.sum=null,y.prototype.bucketCounts=h.emptyArray,y.prototype.explicitBounds=h.emptyArray,y.prototype.exemplars=h.emptyArray,y.prototype.flags=null,y.prototype.min=null,y.prototype.max=null,Object.defineProperty(y.prototype,"_sum",{get:h.oneOfGetter(S=["sum"]),set:h.oneOfSetter(S)}),Object.defineProperty(y.prototype,"_min",{get:h.oneOfGetter(S=["min"]),set:h.oneOfSetter(S)}),Object.defineProperty(y.prototype,"_max",{get:h.oneOfGetter(S=["max"]),set:h.oneOfSetter(S)}),y.create=function(s){return new y(s)},y.encode=function(s,u){if(u||(u=v.create()),null!=s.startTimeUnixNano&&Object.hasOwnProperty.call(s,"startTimeUnixNano")&&u.uint32(17).fixed64(s.startTimeUnixNano),null!=s.timeUnixNano&&Object.hasOwnProperty.call(s,"timeUnixNano")&&u.uint32(25).fixed64(s.timeUnixNano),null!=s.count&&Object.hasOwnProperty.call(s,"count")&&u.uint32(33).fixed64(s.count),null!=s.sum&&Object.hasOwnProperty.call(s,"sum")&&u.uint32(41).double(s.sum),null!=s.bucketCounts&&s.bucketCounts.length){u.uint32(50).fork();for(var m=0;m<s.bucketCounts.length;++m)u.fixed64(s.bucketCounts[m]);u.ldelim()}if(null!=s.explicitBounds&&s.explicitBounds.length){for(u.uint32(58).fork(),m=0;m<s.explicitBounds.length;++m)u.double(s.explicitBounds[m]);u.ldelim()}if(null!=s.exemplars&&s.exemplars.length)for(m=0;m<s.exemplars.length;++m)f.opentelemetry.proto.metrics.v1.Exemplar.encode(s.exemplars[m],u.uint32(66).fork()).ldelim();if(null!=s.attributes&&s.attributes.length)for(m=0;m<s.attributes.length;++m)f.opentelemetry.proto.common.v1.KeyValue.encode(s.attributes[m],u.uint32(74).fork()).ldelim();return null!=s.flags&&Object.hasOwnProperty.call(s,"flags")&&u.uint32(80).uint32(s.flags),null!=s.min&&Object.hasOwnProperty.call(s,"min")&&u.uint32(89).double(s.min),null!=s.max&&Object.hasOwnProperty.call(s,"max")&&u.uint32(97).double(s.max),u},y.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},y.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.metrics.v1.HistogramDataPoint;s.pos<m;){var R=s.uint32();switch(R>>>3){case 9:I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(s,s.uint32()));break;case 2:I.startTimeUnixNano=s.fixed64();break;case 3:I.timeUnixNano=s.fixed64();break;case 4:I.count=s.fixed64();break;case 5:I.sum=s.double();break;case 6:if(I.bucketCounts&&I.bucketCounts.length||(I.bucketCounts=[]),2==(7&R))for(var O=s.uint32()+s.pos;s.pos<O;)I.bucketCounts.push(s.fixed64());else I.bucketCounts.push(s.fixed64());break;case 7:if(I.explicitBounds&&I.explicitBounds.length||(I.explicitBounds=[]),2==(7&R))for(O=s.uint32()+s.pos;s.pos<O;)I.explicitBounds.push(s.double());else I.explicitBounds.push(s.double());break;case 8:I.exemplars&&I.exemplars.length||(I.exemplars=[]),I.exemplars.push(f.opentelemetry.proto.metrics.v1.Exemplar.decode(s,s.uint32()));break;case 10:I.flags=s.uint32();break;case 11:I.min=s.double();break;case 12:I.max=s.double();break;default:s.skipType(7&R)}}return I},y.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},y.verify=function(s){if("object"!=typeof s||null===s)return"object expected";var u={};if(null!=s.attributes&&s.hasOwnProperty("attributes")){if(!Array.isArray(s.attributes))return"attributes: array expected";for(var m=0;m<s.attributes.length;++m)if(I=f.opentelemetry.proto.common.v1.KeyValue.verify(s.attributes[m]))return"attributes."+I}if(null!=s.startTimeUnixNano&&s.hasOwnProperty("startTimeUnixNano")&&!h.isInteger(s.startTimeUnixNano)&&!(s.startTimeUnixNano&&h.isInteger(s.startTimeUnixNano.low)&&h.isInteger(s.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=s.timeUnixNano&&s.hasOwnProperty("timeUnixNano")&&!h.isInteger(s.timeUnixNano)&&!(s.timeUnixNano&&h.isInteger(s.timeUnixNano.low)&&h.isInteger(s.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=s.count&&s.hasOwnProperty("count")&&!h.isInteger(s.count)&&!(s.count&&h.isInteger(s.count.low)&&h.isInteger(s.count.high)))return"count: integer|Long expected";if(null!=s.sum&&s.hasOwnProperty("sum")&&(u._sum=1,"number"!=typeof s.sum))return"sum: number expected";if(null!=s.bucketCounts&&s.hasOwnProperty("bucketCounts")){if(!Array.isArray(s.bucketCounts))return"bucketCounts: array expected";for(m=0;m<s.bucketCounts.length;++m)if(!(h.isInteger(s.bucketCounts[m])||s.bucketCounts[m]&&h.isInteger(s.bucketCounts[m].low)&&h.isInteger(s.bucketCounts[m].high)))return"bucketCounts: integer|Long[] expected"}if(null!=s.explicitBounds&&s.hasOwnProperty("explicitBounds")){if(!Array.isArray(s.explicitBounds))return"explicitBounds: array expected";for(m=0;m<s.explicitBounds.length;++m)if("number"!=typeof s.explicitBounds[m])return"explicitBounds: number[] expected"}if(null!=s.exemplars&&s.hasOwnProperty("exemplars")){if(!Array.isArray(s.exemplars))return"exemplars: array expected";for(m=0;m<s.exemplars.length;++m){var I;if(I=f.opentelemetry.proto.metrics.v1.Exemplar.verify(s.exemplars[m]))return"exemplars."+I}}return null!=s.flags&&s.hasOwnProperty("flags")&&!h.isInteger(s.flags)?"flags: integer expected":null!=s.min&&s.hasOwnProperty("min")&&(u._min=1,"number"!=typeof s.min)?"min: number expected":null!=s.max&&s.hasOwnProperty("max")&&(u._max=1,"number"!=typeof s.max)?"max: number expected":null},y.fromObject=function(s){if(s instanceof f.opentelemetry.proto.metrics.v1.HistogramDataPoint)return s;var u=new f.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(s.attributes){if(!Array.isArray(s.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");u.attributes=[];for(var m=0;m<s.attributes.length;++m){if("object"!=typeof s.attributes[m])throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");u.attributes[m]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(s.attributes[m])}}if(null!=s.startTimeUnixNano&&(h.Long?(u.startTimeUnixNano=h.Long.fromValue(s.startTimeUnixNano)).unsigned=!1:"string"==typeof s.startTimeUnixNano?u.startTimeUnixNano=parseInt(s.startTimeUnixNano,10):"number"==typeof s.startTimeUnixNano?u.startTimeUnixNano=s.startTimeUnixNano:"object"==typeof s.startTimeUnixNano&&(u.startTimeUnixNano=new h.LongBits(s.startTimeUnixNano.low>>>0,s.startTimeUnixNano.high>>>0).toNumber())),null!=s.timeUnixNano&&(h.Long?(u.timeUnixNano=h.Long.fromValue(s.timeUnixNano)).unsigned=!1:"string"==typeof s.timeUnixNano?u.timeUnixNano=parseInt(s.timeUnixNano,10):"number"==typeof s.timeUnixNano?u.timeUnixNano=s.timeUnixNano:"object"==typeof s.timeUnixNano&&(u.timeUnixNano=new h.LongBits(s.timeUnixNano.low>>>0,s.timeUnixNano.high>>>0).toNumber())),null!=s.count&&(h.Long?(u.count=h.Long.fromValue(s.count)).unsigned=!1:"string"==typeof s.count?u.count=parseInt(s.count,10):"number"==typeof s.count?u.count=s.count:"object"==typeof s.count&&(u.count=new h.LongBits(s.count.low>>>0,s.count.high>>>0).toNumber())),null!=s.sum&&(u.sum=Number(s.sum)),s.bucketCounts){if(!Array.isArray(s.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");for(u.bucketCounts=[],m=0;m<s.bucketCounts.length;++m)h.Long?(u.bucketCounts[m]=h.Long.fromValue(s.bucketCounts[m])).unsigned=!1:"string"==typeof s.bucketCounts[m]?u.bucketCounts[m]=parseInt(s.bucketCounts[m],10):"number"==typeof s.bucketCounts[m]?u.bucketCounts[m]=s.bucketCounts[m]:"object"==typeof s.bucketCounts[m]&&(u.bucketCounts[m]=new h.LongBits(s.bucketCounts[m].low>>>0,s.bucketCounts[m].high>>>0).toNumber())}if(s.explicitBounds){if(!Array.isArray(s.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");for(u.explicitBounds=[],m=0;m<s.explicitBounds.length;++m)u.explicitBounds[m]=Number(s.explicitBounds[m])}if(s.exemplars){if(!Array.isArray(s.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");for(u.exemplars=[],m=0;m<s.exemplars.length;++m){if("object"!=typeof s.exemplars[m])throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");u.exemplars[m]=f.opentelemetry.proto.metrics.v1.Exemplar.fromObject(s.exemplars[m])}}return null!=s.flags&&(u.flags=s.flags>>>0),null!=s.min&&(u.min=Number(s.min)),null!=s.max&&(u.max=Number(s.max)),u},y.toObject=function(s,u){u||(u={});var m={};if((u.arrays||u.defaults)&&(m.bucketCounts=[],m.explicitBounds=[],m.exemplars=[],m.attributes=[]),u.defaults){if(h.Long){var I=new h.Long(0,0,!1);m.startTimeUnixNano=u.longs===String?I.toString():u.longs===Number?I.toNumber():I}else m.startTimeUnixNano=u.longs===String?"0":0;h.Long?(I=new h.Long(0,0,!1),m.timeUnixNano=u.longs===String?I.toString():u.longs===Number?I.toNumber():I):m.timeUnixNano=u.longs===String?"0":0,h.Long?(I=new h.Long(0,0,!1),m.count=u.longs===String?I.toString():u.longs===Number?I.toNumber():I):m.count=u.longs===String?"0":0,m.flags=0}if(null!=s.startTimeUnixNano&&s.hasOwnProperty("startTimeUnixNano")&&(m.startTimeUnixNano="number"==typeof s.startTimeUnixNano?u.longs===String?String(s.startTimeUnixNano):s.startTimeUnixNano:u.longs===String?h.Long.prototype.toString.call(s.startTimeUnixNano):u.longs===Number?new h.LongBits(s.startTimeUnixNano.low>>>0,s.startTimeUnixNano.high>>>0).toNumber():s.startTimeUnixNano),null!=s.timeUnixNano&&s.hasOwnProperty("timeUnixNano")&&(m.timeUnixNano="number"==typeof s.timeUnixNano?u.longs===String?String(s.timeUnixNano):s.timeUnixNano:u.longs===String?h.Long.prototype.toString.call(s.timeUnixNano):u.longs===Number?new h.LongBits(s.timeUnixNano.low>>>0,s.timeUnixNano.high>>>0).toNumber():s.timeUnixNano),null!=s.count&&s.hasOwnProperty("count")&&(m.count="number"==typeof s.count?u.longs===String?String(s.count):s.count:u.longs===String?h.Long.prototype.toString.call(s.count):u.longs===Number?new h.LongBits(s.count.low>>>0,s.count.high>>>0).toNumber():s.count),null!=s.sum&&s.hasOwnProperty("sum")&&(m.sum=u.json&&!isFinite(s.sum)?String(s.sum):s.sum,u.oneofs&&(m._sum="sum")),s.bucketCounts&&s.bucketCounts.length){m.bucketCounts=[];for(var R=0;R<s.bucketCounts.length;++R)m.bucketCounts[R]="number"==typeof s.bucketCounts[R]?u.longs===String?String(s.bucketCounts[R]):s.bucketCounts[R]:u.longs===String?h.Long.prototype.toString.call(s.bucketCounts[R]):u.longs===Number?new h.LongBits(s.bucketCounts[R].low>>>0,s.bucketCounts[R].high>>>0).toNumber():s.bucketCounts[R]}if(s.explicitBounds&&s.explicitBounds.length)for(m.explicitBounds=[],R=0;R<s.explicitBounds.length;++R)m.explicitBounds[R]=u.json&&!isFinite(s.explicitBounds[R])?String(s.explicitBounds[R]):s.explicitBounds[R];if(s.exemplars&&s.exemplars.length)for(m.exemplars=[],R=0;R<s.exemplars.length;++R)m.exemplars[R]=f.opentelemetry.proto.metrics.v1.Exemplar.toObject(s.exemplars[R],u);if(s.attributes&&s.attributes.length)for(m.attributes=[],R=0;R<s.attributes.length;++R)m.attributes[R]=f.opentelemetry.proto.common.v1.KeyValue.toObject(s.attributes[R],u);return null!=s.flags&&s.hasOwnProperty("flags")&&(m.flags=s.flags),null!=s.min&&s.hasOwnProperty("min")&&(m.min=u.json&&!isFinite(s.min)?String(s.min):s.min,u.oneofs&&(m._min="min")),null!=s.max&&s.hasOwnProperty("max")&&(m.max=u.json&&!isFinite(s.max)?String(s.max):s.max,u.oneofs&&(m._max="max")),m},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},y}(),E.ExponentialHistogramDataPoint=function(){function y(l){if(this.attributes=[],this.exemplars=[],l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}var S;return y.prototype.attributes=h.emptyArray,y.prototype.startTimeUnixNano=null,y.prototype.timeUnixNano=null,y.prototype.count=null,y.prototype.sum=null,y.prototype.scale=null,y.prototype.zeroCount=null,y.prototype.positive=null,y.prototype.negative=null,y.prototype.flags=null,y.prototype.exemplars=h.emptyArray,y.prototype.min=null,y.prototype.max=null,y.prototype.zeroThreshold=null,Object.defineProperty(y.prototype,"_sum",{get:h.oneOfGetter(S=["sum"]),set:h.oneOfSetter(S)}),Object.defineProperty(y.prototype,"_min",{get:h.oneOfGetter(S=["min"]),set:h.oneOfSetter(S)}),Object.defineProperty(y.prototype,"_max",{get:h.oneOfGetter(S=["max"]),set:h.oneOfSetter(S)}),y.create=function(s){return new y(s)},y.encode=function(s,u){if(u||(u=v.create()),null!=s.attributes&&s.attributes.length)for(var m=0;m<s.attributes.length;++m)f.opentelemetry.proto.common.v1.KeyValue.encode(s.attributes[m],u.uint32(10).fork()).ldelim();if(null!=s.startTimeUnixNano&&Object.hasOwnProperty.call(s,"startTimeUnixNano")&&u.uint32(17).fixed64(s.startTimeUnixNano),null!=s.timeUnixNano&&Object.hasOwnProperty.call(s,"timeUnixNano")&&u.uint32(25).fixed64(s.timeUnixNano),null!=s.count&&Object.hasOwnProperty.call(s,"count")&&u.uint32(33).fixed64(s.count),null!=s.sum&&Object.hasOwnProperty.call(s,"sum")&&u.uint32(41).double(s.sum),null!=s.scale&&Object.hasOwnProperty.call(s,"scale")&&u.uint32(48).sint32(s.scale),null!=s.zeroCount&&Object.hasOwnProperty.call(s,"zeroCount")&&u.uint32(57).fixed64(s.zeroCount),null!=s.positive&&Object.hasOwnProperty.call(s,"positive")&&f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(s.positive,u.uint32(66).fork()).ldelim(),null!=s.negative&&Object.hasOwnProperty.call(s,"negative")&&f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(s.negative,u.uint32(74).fork()).ldelim(),null!=s.flags&&Object.hasOwnProperty.call(s,"flags")&&u.uint32(80).uint32(s.flags),null!=s.exemplars&&s.exemplars.length)for(m=0;m<s.exemplars.length;++m)f.opentelemetry.proto.metrics.v1.Exemplar.encode(s.exemplars[m],u.uint32(90).fork()).ldelim();return null!=s.min&&Object.hasOwnProperty.call(s,"min")&&u.uint32(97).double(s.min),null!=s.max&&Object.hasOwnProperty.call(s,"max")&&u.uint32(105).double(s.max),null!=s.zeroThreshold&&Object.hasOwnProperty.call(s,"zeroThreshold")&&u.uint32(113).double(s.zeroThreshold),u},y.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},y.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;s.pos<m;){var R=s.uint32();switch(R>>>3){case 1:I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(s,s.uint32()));break;case 2:I.startTimeUnixNano=s.fixed64();break;case 3:I.timeUnixNano=s.fixed64();break;case 4:I.count=s.fixed64();break;case 5:I.sum=s.double();break;case 6:I.scale=s.sint32();break;case 7:I.zeroCount=s.fixed64();break;case 8:I.positive=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(s,s.uint32());break;case 9:I.negative=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(s,s.uint32());break;case 10:I.flags=s.uint32();break;case 11:I.exemplars&&I.exemplars.length||(I.exemplars=[]),I.exemplars.push(f.opentelemetry.proto.metrics.v1.Exemplar.decode(s,s.uint32()));break;case 12:I.min=s.double();break;case 13:I.max=s.double();break;case 14:I.zeroThreshold=s.double();break;default:s.skipType(7&R)}}return I},y.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},y.verify=function(s){if("object"!=typeof s||null===s)return"object expected";var u={};if(null!=s.attributes&&s.hasOwnProperty("attributes")){if(!Array.isArray(s.attributes))return"attributes: array expected";for(var m=0;m<s.attributes.length;++m)if(I=f.opentelemetry.proto.common.v1.KeyValue.verify(s.attributes[m]))return"attributes."+I}if(null!=s.startTimeUnixNano&&s.hasOwnProperty("startTimeUnixNano")&&!h.isInteger(s.startTimeUnixNano)&&!(s.startTimeUnixNano&&h.isInteger(s.startTimeUnixNano.low)&&h.isInteger(s.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=s.timeUnixNano&&s.hasOwnProperty("timeUnixNano")&&!h.isInteger(s.timeUnixNano)&&!(s.timeUnixNano&&h.isInteger(s.timeUnixNano.low)&&h.isInteger(s.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=s.count&&s.hasOwnProperty("count")&&!h.isInteger(s.count)&&!(s.count&&h.isInteger(s.count.low)&&h.isInteger(s.count.high)))return"count: integer|Long expected";if(null!=s.sum&&s.hasOwnProperty("sum")&&(u._sum=1,"number"!=typeof s.sum))return"sum: number expected";if(null!=s.scale&&s.hasOwnProperty("scale")&&!h.isInteger(s.scale))return"scale: integer expected";if(null!=s.zeroCount&&s.hasOwnProperty("zeroCount")&&!h.isInteger(s.zeroCount)&&!(s.zeroCount&&h.isInteger(s.zeroCount.low)&&h.isInteger(s.zeroCount.high)))return"zeroCount: integer|Long expected";if(null!=s.positive&&s.hasOwnProperty("positive")&&(I=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(s.positive)))return"positive."+I;if(null!=s.negative&&s.hasOwnProperty("negative")&&(I=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(s.negative)))return"negative."+I;if(null!=s.flags&&s.hasOwnProperty("flags")&&!h.isInteger(s.flags))return"flags: integer expected";if(null!=s.exemplars&&s.hasOwnProperty("exemplars")){if(!Array.isArray(s.exemplars))return"exemplars: array expected";for(m=0;m<s.exemplars.length;++m){var I;if(I=f.opentelemetry.proto.metrics.v1.Exemplar.verify(s.exemplars[m]))return"exemplars."+I}}return null!=s.min&&s.hasOwnProperty("min")&&(u._min=1,"number"!=typeof s.min)?"min: number expected":null!=s.max&&s.hasOwnProperty("max")&&(u._max=1,"number"!=typeof s.max)?"max: number expected":null!=s.zeroThreshold&&s.hasOwnProperty("zeroThreshold")&&"number"!=typeof s.zeroThreshold?"zeroThreshold: number expected":null},y.fromObject=function(s){if(s instanceof f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return s;var u=new f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(s.attributes){if(!Array.isArray(s.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");u.attributes=[];for(var m=0;m<s.attributes.length;++m){if("object"!=typeof s.attributes[m])throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");u.attributes[m]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(s.attributes[m])}}if(null!=s.startTimeUnixNano&&(h.Long?(u.startTimeUnixNano=h.Long.fromValue(s.startTimeUnixNano)).unsigned=!1:"string"==typeof s.startTimeUnixNano?u.startTimeUnixNano=parseInt(s.startTimeUnixNano,10):"number"==typeof s.startTimeUnixNano?u.startTimeUnixNano=s.startTimeUnixNano:"object"==typeof s.startTimeUnixNano&&(u.startTimeUnixNano=new h.LongBits(s.startTimeUnixNano.low>>>0,s.startTimeUnixNano.high>>>0).toNumber())),null!=s.timeUnixNano&&(h.Long?(u.timeUnixNano=h.Long.fromValue(s.timeUnixNano)).unsigned=!1:"string"==typeof s.timeUnixNano?u.timeUnixNano=parseInt(s.timeUnixNano,10):"number"==typeof s.timeUnixNano?u.timeUnixNano=s.timeUnixNano:"object"==typeof s.timeUnixNano&&(u.timeUnixNano=new h.LongBits(s.timeUnixNano.low>>>0,s.timeUnixNano.high>>>0).toNumber())),null!=s.count&&(h.Long?(u.count=h.Long.fromValue(s.count)).unsigned=!1:"string"==typeof s.count?u.count=parseInt(s.count,10):"number"==typeof s.count?u.count=s.count:"object"==typeof s.count&&(u.count=new h.LongBits(s.count.low>>>0,s.count.high>>>0).toNumber())),null!=s.sum&&(u.sum=Number(s.sum)),null!=s.scale&&(u.scale=0|s.scale),null!=s.zeroCount&&(h.Long?(u.zeroCount=h.Long.fromValue(s.zeroCount)).unsigned=!1:"string"==typeof s.zeroCount?u.zeroCount=parseInt(s.zeroCount,10):"number"==typeof s.zeroCount?u.zeroCount=s.zeroCount:"object"==typeof s.zeroCount&&(u.zeroCount=new h.LongBits(s.zeroCount.low>>>0,s.zeroCount.high>>>0).toNumber())),null!=s.positive){if("object"!=typeof s.positive)throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");u.positive=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(s.positive)}if(null!=s.negative){if("object"!=typeof s.negative)throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");u.negative=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(s.negative)}if(null!=s.flags&&(u.flags=s.flags>>>0),s.exemplars){if(!Array.isArray(s.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");for(u.exemplars=[],m=0;m<s.exemplars.length;++m){if("object"!=typeof s.exemplars[m])throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");u.exemplars[m]=f.opentelemetry.proto.metrics.v1.Exemplar.fromObject(s.exemplars[m])}}return null!=s.min&&(u.min=Number(s.min)),null!=s.max&&(u.max=Number(s.max)),null!=s.zeroThreshold&&(u.zeroThreshold=Number(s.zeroThreshold)),u},y.toObject=function(s,u){u||(u={});var m={};if((u.arrays||u.defaults)&&(m.attributes=[],m.exemplars=[]),u.defaults){if(h.Long){var I=new h.Long(0,0,!1);m.startTimeUnixNano=u.longs===String?I.toString():u.longs===Number?I.toNumber():I}else m.startTimeUnixNano=u.longs===String?"0":0;h.Long?(I=new h.Long(0,0,!1),m.timeUnixNano=u.longs===String?I.toString():u.longs===Number?I.toNumber():I):m.timeUnixNano=u.longs===String?"0":0,h.Long?(I=new h.Long(0,0,!1),m.count=u.longs===String?I.toString():u.longs===Number?I.toNumber():I):m.count=u.longs===String?"0":0,m.scale=0,h.Long?(I=new h.Long(0,0,!1),m.zeroCount=u.longs===String?I.toString():u.longs===Number?I.toNumber():I):m.zeroCount=u.longs===String?"0":0,m.positive=null,m.negative=null,m.flags=0,m.zeroThreshold=0}if(s.attributes&&s.attributes.length){m.attributes=[];for(var R=0;R<s.attributes.length;++R)m.attributes[R]=f.opentelemetry.proto.common.v1.KeyValue.toObject(s.attributes[R],u)}if(null!=s.startTimeUnixNano&&s.hasOwnProperty("startTimeUnixNano")&&(m.startTimeUnixNano="number"==typeof s.startTimeUnixNano?u.longs===String?String(s.startTimeUnixNano):s.startTimeUnixNano:u.longs===String?h.Long.prototype.toString.call(s.startTimeUnixNano):u.longs===Number?new h.LongBits(s.startTimeUnixNano.low>>>0,s.startTimeUnixNano.high>>>0).toNumber():s.startTimeUnixNano),null!=s.timeUnixNano&&s.hasOwnProperty("timeUnixNano")&&(m.timeUnixNano="number"==typeof s.timeUnixNano?u.longs===String?String(s.timeUnixNano):s.timeUnixNano:u.longs===String?h.Long.prototype.toString.call(s.timeUnixNano):u.longs===Number?new h.LongBits(s.timeUnixNano.low>>>0,s.timeUnixNano.high>>>0).toNumber():s.timeUnixNano),null!=s.count&&s.hasOwnProperty("count")&&(m.count="number"==typeof s.count?u.longs===String?String(s.count):s.count:u.longs===String?h.Long.prototype.toString.call(s.count):u.longs===Number?new h.LongBits(s.count.low>>>0,s.count.high>>>0).toNumber():s.count),null!=s.sum&&s.hasOwnProperty("sum")&&(m.sum=u.json&&!isFinite(s.sum)?String(s.sum):s.sum,u.oneofs&&(m._sum="sum")),null!=s.scale&&s.hasOwnProperty("scale")&&(m.scale=s.scale),null!=s.zeroCount&&s.hasOwnProperty("zeroCount")&&(m.zeroCount="number"==typeof s.zeroCount?u.longs===String?String(s.zeroCount):s.zeroCount:u.longs===String?h.Long.prototype.toString.call(s.zeroCount):u.longs===Number?new h.LongBits(s.zeroCount.low>>>0,s.zeroCount.high>>>0).toNumber():s.zeroCount),null!=s.positive&&s.hasOwnProperty("positive")&&(m.positive=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(s.positive,u)),null!=s.negative&&s.hasOwnProperty("negative")&&(m.negative=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(s.negative,u)),null!=s.flags&&s.hasOwnProperty("flags")&&(m.flags=s.flags),s.exemplars&&s.exemplars.length)for(m.exemplars=[],R=0;R<s.exemplars.length;++R)m.exemplars[R]=f.opentelemetry.proto.metrics.v1.Exemplar.toObject(s.exemplars[R],u);return null!=s.min&&s.hasOwnProperty("min")&&(m.min=u.json&&!isFinite(s.min)?String(s.min):s.min,u.oneofs&&(m._min="min")),null!=s.max&&s.hasOwnProperty("max")&&(m.max=u.json&&!isFinite(s.max)?String(s.max):s.max,u.oneofs&&(m._max="max")),null!=s.zeroThreshold&&s.hasOwnProperty("zeroThreshold")&&(m.zeroThreshold=u.json&&!isFinite(s.zeroThreshold)?String(s.zeroThreshold):s.zeroThreshold),m},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},y.Buckets=function(){function l(s){if(this.bucketCounts=[],s)for(var u=Object.keys(s),m=0;m<u.length;++m)null!=s[u[m]]&&(this[u[m]]=s[u[m]])}return l.prototype.offset=null,l.prototype.bucketCounts=h.emptyArray,l.create=function(u){return new l(u)},l.encode=function(u,m){if(m||(m=v.create()),null!=u.offset&&Object.hasOwnProperty.call(u,"offset")&&m.uint32(8).sint32(u.offset),null!=u.bucketCounts&&u.bucketCounts.length){m.uint32(18).fork();for(var I=0;I<u.bucketCounts.length;++I)m.uint64(u.bucketCounts[I]);m.ldelim()}return m},l.encodeDelimited=function(u,m){return this.encode(u,m).ldelim()},l.decode=function(u,m){u instanceof n||(u=n.create(u));for(var I=void 0===m?u.len:u.pos+m,R=new f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;u.pos<I;){var O=u.uint32();switch(O>>>3){case 1:R.offset=u.sint32();break;case 2:if(R.bucketCounts&&R.bucketCounts.length||(R.bucketCounts=[]),2==(7&O))for(var Y=u.uint32()+u.pos;u.pos<Y;)R.bucketCounts.push(u.uint64());else R.bucketCounts.push(u.uint64());break;default:u.skipType(7&O)}}return R},l.decodeDelimited=function(u){return u instanceof n||(u=new n(u)),this.decode(u,u.uint32())},l.verify=function(u){if("object"!=typeof u||null===u)return"object expected";if(null!=u.offset&&u.hasOwnProperty("offset")&&!h.isInteger(u.offset))return"offset: integer expected";if(null!=u.bucketCounts&&u.hasOwnProperty("bucketCounts")){if(!Array.isArray(u.bucketCounts))return"bucketCounts: array expected";for(var m=0;m<u.bucketCounts.length;++m)if(!(h.isInteger(u.bucketCounts[m])||u.bucketCounts[m]&&h.isInteger(u.bucketCounts[m].low)&&h.isInteger(u.bucketCounts[m].high)))return"bucketCounts: integer|Long[] expected"}return null},l.fromObject=function(u){if(u instanceof f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return u;var m=new f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(null!=u.offset&&(m.offset=0|u.offset),u.bucketCounts){if(!Array.isArray(u.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");m.bucketCounts=[];for(var I=0;I<u.bucketCounts.length;++I)h.Long?(m.bucketCounts[I]=h.Long.fromValue(u.bucketCounts[I])).unsigned=!0:"string"==typeof u.bucketCounts[I]?m.bucketCounts[I]=parseInt(u.bucketCounts[I],10):"number"==typeof u.bucketCounts[I]?m.bucketCounts[I]=u.bucketCounts[I]:"object"==typeof u.bucketCounts[I]&&(m.bucketCounts[I]=new h.LongBits(u.bucketCounts[I].low>>>0,u.bucketCounts[I].high>>>0).toNumber(!0))}return m},l.toObject=function(u,m){m||(m={});var I={};if((m.arrays||m.defaults)&&(I.bucketCounts=[]),m.defaults&&(I.offset=0),null!=u.offset&&u.hasOwnProperty("offset")&&(I.offset=u.offset),u.bucketCounts&&u.bucketCounts.length){I.bucketCounts=[];for(var R=0;R<u.bucketCounts.length;++R)I.bucketCounts[R]="number"==typeof u.bucketCounts[R]?m.longs===String?String(u.bucketCounts[R]):u.bucketCounts[R]:m.longs===String?h.Long.prototype.toString.call(u.bucketCounts[R]):m.longs===Number?new h.LongBits(u.bucketCounts[R].low>>>0,u.bucketCounts[R].high>>>0).toNumber(!0):u.bucketCounts[R]}return I},l.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},l.getTypeUrl=function(u){return void 0===u&&(u="type.googleapis.com"),u+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},l}(),y}(),E.SummaryDataPoint=function(){function y(S){if(this.attributes=[],this.quantileValues=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.attributes=h.emptyArray,y.prototype.startTimeUnixNano=null,y.prototype.timeUnixNano=null,y.prototype.count=null,y.prototype.sum=null,y.prototype.quantileValues=h.emptyArray,y.prototype.flags=null,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.startTimeUnixNano&&Object.hasOwnProperty.call(l,"startTimeUnixNano")&&s.uint32(17).fixed64(l.startTimeUnixNano),null!=l.timeUnixNano&&Object.hasOwnProperty.call(l,"timeUnixNano")&&s.uint32(25).fixed64(l.timeUnixNano),null!=l.count&&Object.hasOwnProperty.call(l,"count")&&s.uint32(33).fixed64(l.count),null!=l.sum&&Object.hasOwnProperty.call(l,"sum")&&s.uint32(41).double(l.sum),null!=l.quantileValues&&l.quantileValues.length)for(var u=0;u<l.quantileValues.length;++u)f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(l.quantileValues[u],s.uint32(50).fork()).ldelim();if(null!=l.attributes&&l.attributes.length)for(u=0;u<l.attributes.length;++u)f.opentelemetry.proto.common.v1.KeyValue.encode(l.attributes[u],s.uint32(58).fork()).ldelim();return null!=l.flags&&Object.hasOwnProperty.call(l,"flags")&&s.uint32(64).uint32(l.flags),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.metrics.v1.SummaryDataPoint;l.pos<u;){var I=l.uint32();switch(I>>>3){case 7:m.attributes&&m.attributes.length||(m.attributes=[]),m.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(l,l.uint32()));break;case 2:m.startTimeUnixNano=l.fixed64();break;case 3:m.timeUnixNano=l.fixed64();break;case 4:m.count=l.fixed64();break;case 5:m.sum=l.double();break;case 6:m.quantileValues&&m.quantileValues.length||(m.quantileValues=[]),m.quantileValues.push(f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(l,l.uint32()));break;case 8:m.flags=l.uint32();break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.attributes&&l.hasOwnProperty("attributes")){if(!Array.isArray(l.attributes))return"attributes: array expected";for(var s=0;s<l.attributes.length;++s)if(u=f.opentelemetry.proto.common.v1.KeyValue.verify(l.attributes[s]))return"attributes."+u}if(null!=l.startTimeUnixNano&&l.hasOwnProperty("startTimeUnixNano")&&!h.isInteger(l.startTimeUnixNano)&&!(l.startTimeUnixNano&&h.isInteger(l.startTimeUnixNano.low)&&h.isInteger(l.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=l.timeUnixNano&&l.hasOwnProperty("timeUnixNano")&&!h.isInteger(l.timeUnixNano)&&!(l.timeUnixNano&&h.isInteger(l.timeUnixNano.low)&&h.isInteger(l.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=l.count&&l.hasOwnProperty("count")&&!h.isInteger(l.count)&&!(l.count&&h.isInteger(l.count.low)&&h.isInteger(l.count.high)))return"count: integer|Long expected";if(null!=l.sum&&l.hasOwnProperty("sum")&&"number"!=typeof l.sum)return"sum: number expected";if(null!=l.quantileValues&&l.hasOwnProperty("quantileValues")){if(!Array.isArray(l.quantileValues))return"quantileValues: array expected";for(s=0;s<l.quantileValues.length;++s){var u;if(u=f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(l.quantileValues[s]))return"quantileValues."+u}}return null!=l.flags&&l.hasOwnProperty("flags")&&!h.isInteger(l.flags)?"flags: integer expected":null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.metrics.v1.SummaryDataPoint)return l;var s=new f.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(l.attributes){if(!Array.isArray(l.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");s.attributes=[];for(var u=0;u<l.attributes.length;++u){if("object"!=typeof l.attributes[u])throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");s.attributes[u]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(l.attributes[u])}}if(null!=l.startTimeUnixNano&&(h.Long?(s.startTimeUnixNano=h.Long.fromValue(l.startTimeUnixNano)).unsigned=!1:"string"==typeof l.startTimeUnixNano?s.startTimeUnixNano=parseInt(l.startTimeUnixNano,10):"number"==typeof l.startTimeUnixNano?s.startTimeUnixNano=l.startTimeUnixNano:"object"==typeof l.startTimeUnixNano&&(s.startTimeUnixNano=new h.LongBits(l.startTimeUnixNano.low>>>0,l.startTimeUnixNano.high>>>0).toNumber())),null!=l.timeUnixNano&&(h.Long?(s.timeUnixNano=h.Long.fromValue(l.timeUnixNano)).unsigned=!1:"string"==typeof l.timeUnixNano?s.timeUnixNano=parseInt(l.timeUnixNano,10):"number"==typeof l.timeUnixNano?s.timeUnixNano=l.timeUnixNano:"object"==typeof l.timeUnixNano&&(s.timeUnixNano=new h.LongBits(l.timeUnixNano.low>>>0,l.timeUnixNano.high>>>0).toNumber())),null!=l.count&&(h.Long?(s.count=h.Long.fromValue(l.count)).unsigned=!1:"string"==typeof l.count?s.count=parseInt(l.count,10):"number"==typeof l.count?s.count=l.count:"object"==typeof l.count&&(s.count=new h.LongBits(l.count.low>>>0,l.count.high>>>0).toNumber())),null!=l.sum&&(s.sum=Number(l.sum)),l.quantileValues){if(!Array.isArray(l.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");for(s.quantileValues=[],u=0;u<l.quantileValues.length;++u){if("object"!=typeof l.quantileValues[u])throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");s.quantileValues[u]=f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(l.quantileValues[u])}}return null!=l.flags&&(s.flags=l.flags>>>0),s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.quantileValues=[],u.attributes=[]),s.defaults){if(h.Long){var m=new h.Long(0,0,!1);u.startTimeUnixNano=s.longs===String?m.toString():s.longs===Number?m.toNumber():m}else u.startTimeUnixNano=s.longs===String?"0":0;h.Long?(m=new h.Long(0,0,!1),u.timeUnixNano=s.longs===String?m.toString():s.longs===Number?m.toNumber():m):u.timeUnixNano=s.longs===String?"0":0,h.Long?(m=new h.Long(0,0,!1),u.count=s.longs===String?m.toString():s.longs===Number?m.toNumber():m):u.count=s.longs===String?"0":0,u.sum=0,u.flags=0}if(null!=l.startTimeUnixNano&&l.hasOwnProperty("startTimeUnixNano")&&(u.startTimeUnixNano="number"==typeof l.startTimeUnixNano?s.longs===String?String(l.startTimeUnixNano):l.startTimeUnixNano:s.longs===String?h.Long.prototype.toString.call(l.startTimeUnixNano):s.longs===Number?new h.LongBits(l.startTimeUnixNano.low>>>0,l.startTimeUnixNano.high>>>0).toNumber():l.startTimeUnixNano),null!=l.timeUnixNano&&l.hasOwnProperty("timeUnixNano")&&(u.timeUnixNano="number"==typeof l.timeUnixNano?s.longs===String?String(l.timeUnixNano):l.timeUnixNano:s.longs===String?h.Long.prototype.toString.call(l.timeUnixNano):s.longs===Number?new h.LongBits(l.timeUnixNano.low>>>0,l.timeUnixNano.high>>>0).toNumber():l.timeUnixNano),null!=l.count&&l.hasOwnProperty("count")&&(u.count="number"==typeof l.count?s.longs===String?String(l.count):l.count:s.longs===String?h.Long.prototype.toString.call(l.count):s.longs===Number?new h.LongBits(l.count.low>>>0,l.count.high>>>0).toNumber():l.count),null!=l.sum&&l.hasOwnProperty("sum")&&(u.sum=s.json&&!isFinite(l.sum)?String(l.sum):l.sum),l.quantileValues&&l.quantileValues.length){u.quantileValues=[];for(var I=0;I<l.quantileValues.length;++I)u.quantileValues[I]=f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(l.quantileValues[I],s)}if(l.attributes&&l.attributes.length)for(u.attributes=[],I=0;I<l.attributes.length;++I)u.attributes[I]=f.opentelemetry.proto.common.v1.KeyValue.toObject(l.attributes[I],s);return null!=l.flags&&l.hasOwnProperty("flags")&&(u.flags=l.flags),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},y.ValueAtQuantile=function(){function S(l){if(l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}return S.prototype.quantile=null,S.prototype.value=null,S.create=function(s){return new S(s)},S.encode=function(s,u){return u||(u=v.create()),null!=s.quantile&&Object.hasOwnProperty.call(s,"quantile")&&u.uint32(9).double(s.quantile),null!=s.value&&Object.hasOwnProperty.call(s,"value")&&u.uint32(17).double(s.value),u},S.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},S.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;s.pos<m;){var R=s.uint32();switch(R>>>3){case 1:I.quantile=s.double();break;case 2:I.value=s.double();break;default:s.skipType(7&R)}}return I},S.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},S.verify=function(s){return"object"!=typeof s||null===s?"object expected":null!=s.quantile&&s.hasOwnProperty("quantile")&&"number"!=typeof s.quantile?"quantile: number expected":null!=s.value&&s.hasOwnProperty("value")&&"number"!=typeof s.value?"value: number expected":null},S.fromObject=function(s){if(s instanceof f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return s;var u=new f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return null!=s.quantile&&(u.quantile=Number(s.quantile)),null!=s.value&&(u.value=Number(s.value)),u},S.toObject=function(s,u){u||(u={});var m={};return u.defaults&&(m.quantile=0,m.value=0),null!=s.quantile&&s.hasOwnProperty("quantile")&&(m.quantile=u.json&&!isFinite(s.quantile)?String(s.quantile):s.quantile),null!=s.value&&s.hasOwnProperty("value")&&(m.value=u.json&&!isFinite(s.value)?String(s.value):s.value),m},S.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},S.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},S}(),y}(),E.Exemplar=function(){function y(l){if(this.filteredAttributes=[],l)for(var s=Object.keys(l),u=0;u<s.length;++u)null!=l[s[u]]&&(this[s[u]]=l[s[u]])}var S;return y.prototype.filteredAttributes=h.emptyArray,y.prototype.timeUnixNano=null,y.prototype.asDouble=null,y.prototype.asInt=null,y.prototype.spanId=null,y.prototype.traceId=null,Object.defineProperty(y.prototype,"value",{get:h.oneOfGetter(S=["asDouble","asInt"]),set:h.oneOfSetter(S)}),y.create=function(s){return new y(s)},y.encode=function(s,u){if(u||(u=v.create()),null!=s.timeUnixNano&&Object.hasOwnProperty.call(s,"timeUnixNano")&&u.uint32(17).fixed64(s.timeUnixNano),null!=s.asDouble&&Object.hasOwnProperty.call(s,"asDouble")&&u.uint32(25).double(s.asDouble),null!=s.spanId&&Object.hasOwnProperty.call(s,"spanId")&&u.uint32(34).bytes(s.spanId),null!=s.traceId&&Object.hasOwnProperty.call(s,"traceId")&&u.uint32(42).bytes(s.traceId),null!=s.asInt&&Object.hasOwnProperty.call(s,"asInt")&&u.uint32(49).sfixed64(s.asInt),null!=s.filteredAttributes&&s.filteredAttributes.length)for(var m=0;m<s.filteredAttributes.length;++m)f.opentelemetry.proto.common.v1.KeyValue.encode(s.filteredAttributes[m],u.uint32(58).fork()).ldelim();return u},y.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},y.decode=function(s,u){s instanceof n||(s=n.create(s));for(var m=void 0===u?s.len:s.pos+u,I=new f.opentelemetry.proto.metrics.v1.Exemplar;s.pos<m;){var R=s.uint32();switch(R>>>3){case 7:I.filteredAttributes&&I.filteredAttributes.length||(I.filteredAttributes=[]),I.filteredAttributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(s,s.uint32()));break;case 2:I.timeUnixNano=s.fixed64();break;case 3:I.asDouble=s.double();break;case 6:I.asInt=s.sfixed64();break;case 4:I.spanId=s.bytes();break;case 5:I.traceId=s.bytes();break;default:s.skipType(7&R)}}return I},y.decodeDelimited=function(s){return s instanceof n||(s=new n(s)),this.decode(s,s.uint32())},y.verify=function(s){if("object"!=typeof s||null===s)return"object expected";var u={};if(null!=s.filteredAttributes&&s.hasOwnProperty("filteredAttributes")){if(!Array.isArray(s.filteredAttributes))return"filteredAttributes: array expected";for(var m=0;m<s.filteredAttributes.length;++m){var I=f.opentelemetry.proto.common.v1.KeyValue.verify(s.filteredAttributes[m]);if(I)return"filteredAttributes."+I}}if(null!=s.timeUnixNano&&s.hasOwnProperty("timeUnixNano")&&!h.isInteger(s.timeUnixNano)&&!(s.timeUnixNano&&h.isInteger(s.timeUnixNano.low)&&h.isInteger(s.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=s.asDouble&&s.hasOwnProperty("asDouble")&&(u.value=1,"number"!=typeof s.asDouble))return"asDouble: number expected";if(null!=s.asInt&&s.hasOwnProperty("asInt")){if(1===u.value)return"value: multiple values";if(u.value=1,!(h.isInteger(s.asInt)||s.asInt&&h.isInteger(s.asInt.low)&&h.isInteger(s.asInt.high)))return"asInt: integer|Long expected"}return null!=s.spanId&&s.hasOwnProperty("spanId")&&!(s.spanId&&"number"==typeof s.spanId.length||h.isString(s.spanId))?"spanId: buffer expected":null!=s.traceId&&s.hasOwnProperty("traceId")&&!(s.traceId&&"number"==typeof s.traceId.length||h.isString(s.traceId))?"traceId: buffer expected":null},y.fromObject=function(s){if(s instanceof f.opentelemetry.proto.metrics.v1.Exemplar)return s;var u=new f.opentelemetry.proto.metrics.v1.Exemplar;if(s.filteredAttributes){if(!Array.isArray(s.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");u.filteredAttributes=[];for(var m=0;m<s.filteredAttributes.length;++m){if("object"!=typeof s.filteredAttributes[m])throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");u.filteredAttributes[m]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(s.filteredAttributes[m])}}return null!=s.timeUnixNano&&(h.Long?(u.timeUnixNano=h.Long.fromValue(s.timeUnixNano)).unsigned=!1:"string"==typeof s.timeUnixNano?u.timeUnixNano=parseInt(s.timeUnixNano,10):"number"==typeof s.timeUnixNano?u.timeUnixNano=s.timeUnixNano:"object"==typeof s.timeUnixNano&&(u.timeUnixNano=new h.LongBits(s.timeUnixNano.low>>>0,s.timeUnixNano.high>>>0).toNumber())),null!=s.asDouble&&(u.asDouble=Number(s.asDouble)),null!=s.asInt&&(h.Long?(u.asInt=h.Long.fromValue(s.asInt)).unsigned=!1:"string"==typeof s.asInt?u.asInt=parseInt(s.asInt,10):"number"==typeof s.asInt?u.asInt=s.asInt:"object"==typeof s.asInt&&(u.asInt=new h.LongBits(s.asInt.low>>>0,s.asInt.high>>>0).toNumber())),null!=s.spanId&&("string"==typeof s.spanId?h.base64.decode(s.spanId,u.spanId=h.newBuffer(h.base64.length(s.spanId)),0):s.spanId.length>=0&&(u.spanId=s.spanId)),null!=s.traceId&&("string"==typeof s.traceId?h.base64.decode(s.traceId,u.traceId=h.newBuffer(h.base64.length(s.traceId)),0):s.traceId.length>=0&&(u.traceId=s.traceId)),u},y.toObject=function(s,u){u||(u={});var m={};if((u.arrays||u.defaults)&&(m.filteredAttributes=[]),u.defaults){if(h.Long){var I=new h.Long(0,0,!1);m.timeUnixNano=u.longs===String?I.toString():u.longs===Number?I.toNumber():I}else m.timeUnixNano=u.longs===String?"0":0;u.bytes===String?m.spanId="":(m.spanId=[],u.bytes!==Array&&(m.spanId=h.newBuffer(m.spanId))),u.bytes===String?m.traceId="":(m.traceId=[],u.bytes!==Array&&(m.traceId=h.newBuffer(m.traceId)))}if(null!=s.timeUnixNano&&s.hasOwnProperty("timeUnixNano")&&(m.timeUnixNano="number"==typeof s.timeUnixNano?u.longs===String?String(s.timeUnixNano):s.timeUnixNano:u.longs===String?h.Long.prototype.toString.call(s.timeUnixNano):u.longs===Number?new h.LongBits(s.timeUnixNano.low>>>0,s.timeUnixNano.high>>>0).toNumber():s.timeUnixNano),null!=s.asDouble&&s.hasOwnProperty("asDouble")&&(m.asDouble=u.json&&!isFinite(s.asDouble)?String(s.asDouble):s.asDouble,u.oneofs&&(m.value="asDouble")),null!=s.spanId&&s.hasOwnProperty("spanId")&&(m.spanId=u.bytes===String?h.base64.encode(s.spanId,0,s.spanId.length):u.bytes===Array?Array.prototype.slice.call(s.spanId):s.spanId),null!=s.traceId&&s.hasOwnProperty("traceId")&&(m.traceId=u.bytes===String?h.base64.encode(s.traceId,0,s.traceId.length):u.bytes===Array?Array.prototype.slice.call(s.traceId):s.traceId),null!=s.asInt&&s.hasOwnProperty("asInt")&&(m.asInt="number"==typeof s.asInt?u.longs===String?String(s.asInt):s.asInt:u.longs===String?h.Long.prototype.toString.call(s.asInt):u.longs===Number?new h.LongBits(s.asInt.low>>>0,s.asInt.high>>>0).toNumber():s.asInt,u.oneofs&&(m.value="asInt")),s.filteredAttributes&&s.filteredAttributes.length){m.filteredAttributes=[];for(var R=0;R<s.filteredAttributes.length;++R)m.filteredAttributes[R]=f.opentelemetry.proto.common.v1.KeyValue.toObject(s.filteredAttributes[R],u)}return m},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(s){return void 0===s&&(s="type.googleapis.com"),s+"/opentelemetry.proto.metrics.v1.Exemplar"},y}(),E}(),T}(),M.logs=function(){var T={};return T.v1=function(){var y,S,E={};return E.LogsData=function(){function y(S){if(this.resourceLogs=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.resourceLogs=h.emptyArray,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.resourceLogs&&l.resourceLogs.length)for(var u=0;u<l.resourceLogs.length;++u)f.opentelemetry.proto.logs.v1.ResourceLogs.encode(l.resourceLogs[u],s.uint32(10).fork()).ldelim();return s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.logs.v1.LogsData;l.pos<u;){var I=l.uint32();I>>>3==1?(m.resourceLogs&&m.resourceLogs.length||(m.resourceLogs=[]),m.resourceLogs.push(f.opentelemetry.proto.logs.v1.ResourceLogs.decode(l,l.uint32()))):l.skipType(7&I)}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.resourceLogs&&l.hasOwnProperty("resourceLogs")){if(!Array.isArray(l.resourceLogs))return"resourceLogs: array expected";for(var s=0;s<l.resourceLogs.length;++s){var u=f.opentelemetry.proto.logs.v1.ResourceLogs.verify(l.resourceLogs[s]);if(u)return"resourceLogs."+u}}return null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.logs.v1.LogsData)return l;var s=new f.opentelemetry.proto.logs.v1.LogsData;if(l.resourceLogs){if(!Array.isArray(l.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");s.resourceLogs=[];for(var u=0;u<l.resourceLogs.length;++u){if("object"!=typeof l.resourceLogs[u])throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");s.resourceLogs[u]=f.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(l.resourceLogs[u])}}return s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.resourceLogs=[]),l.resourceLogs&&l.resourceLogs.length){u.resourceLogs=[];for(var m=0;m<l.resourceLogs.length;++m)u.resourceLogs[m]=f.opentelemetry.proto.logs.v1.ResourceLogs.toObject(l.resourceLogs[m],s)}return u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.logs.v1.LogsData"},y}(),E.ResourceLogs=function(){function y(S){if(this.scopeLogs=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.resource=null,y.prototype.scopeLogs=h.emptyArray,y.prototype.schemaUrl=null,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.resource&&Object.hasOwnProperty.call(l,"resource")&&f.opentelemetry.proto.resource.v1.Resource.encode(l.resource,s.uint32(10).fork()).ldelim(),null!=l.scopeLogs&&l.scopeLogs.length)for(var u=0;u<l.scopeLogs.length;++u)f.opentelemetry.proto.logs.v1.ScopeLogs.encode(l.scopeLogs[u],s.uint32(18).fork()).ldelim();return null!=l.schemaUrl&&Object.hasOwnProperty.call(l,"schemaUrl")&&s.uint32(26).string(l.schemaUrl),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.logs.v1.ResourceLogs;l.pos<u;){var I=l.uint32();switch(I>>>3){case 1:m.resource=f.opentelemetry.proto.resource.v1.Resource.decode(l,l.uint32());break;case 2:m.scopeLogs&&m.scopeLogs.length||(m.scopeLogs=[]),m.scopeLogs.push(f.opentelemetry.proto.logs.v1.ScopeLogs.decode(l,l.uint32()));break;case 3:m.schemaUrl=l.string();break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.resource&&l.hasOwnProperty("resource")&&(s=f.opentelemetry.proto.resource.v1.Resource.verify(l.resource)))return"resource."+s;if(null!=l.scopeLogs&&l.hasOwnProperty("scopeLogs")){if(!Array.isArray(l.scopeLogs))return"scopeLogs: array expected";for(var u=0;u<l.scopeLogs.length;++u){var s;if(s=f.opentelemetry.proto.logs.v1.ScopeLogs.verify(l.scopeLogs[u]))return"scopeLogs."+s}}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&!h.isString(l.schemaUrl)?"schemaUrl: string expected":null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.logs.v1.ResourceLogs)return l;var s=new f.opentelemetry.proto.logs.v1.ResourceLogs;if(null!=l.resource){if("object"!=typeof l.resource)throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");s.resource=f.opentelemetry.proto.resource.v1.Resource.fromObject(l.resource)}if(l.scopeLogs){if(!Array.isArray(l.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");s.scopeLogs=[];for(var u=0;u<l.scopeLogs.length;++u){if("object"!=typeof l.scopeLogs[u])throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");s.scopeLogs[u]=f.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(l.scopeLogs[u])}}return null!=l.schemaUrl&&(s.schemaUrl=String(l.schemaUrl)),s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.scopeLogs=[]),s.defaults&&(u.resource=null,u.schemaUrl=""),null!=l.resource&&l.hasOwnProperty("resource")&&(u.resource=f.opentelemetry.proto.resource.v1.Resource.toObject(l.resource,s)),l.scopeLogs&&l.scopeLogs.length){u.scopeLogs=[];for(var m=0;m<l.scopeLogs.length;++m)u.scopeLogs[m]=f.opentelemetry.proto.logs.v1.ScopeLogs.toObject(l.scopeLogs[m],s)}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&(u.schemaUrl=l.schemaUrl),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.logs.v1.ResourceLogs"},y}(),E.ScopeLogs=function(){function y(S){if(this.logRecords=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.scope=null,y.prototype.logRecords=h.emptyArray,y.prototype.schemaUrl=null,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.scope&&Object.hasOwnProperty.call(l,"scope")&&f.opentelemetry.proto.common.v1.InstrumentationScope.encode(l.scope,s.uint32(10).fork()).ldelim(),null!=l.logRecords&&l.logRecords.length)for(var u=0;u<l.logRecords.length;++u)f.opentelemetry.proto.logs.v1.LogRecord.encode(l.logRecords[u],s.uint32(18).fork()).ldelim();return null!=l.schemaUrl&&Object.hasOwnProperty.call(l,"schemaUrl")&&s.uint32(26).string(l.schemaUrl),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.logs.v1.ScopeLogs;l.pos<u;){var I=l.uint32();switch(I>>>3){case 1:m.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.decode(l,l.uint32());break;case 2:m.logRecords&&m.logRecords.length||(m.logRecords=[]),m.logRecords.push(f.opentelemetry.proto.logs.v1.LogRecord.decode(l,l.uint32()));break;case 3:m.schemaUrl=l.string();break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.scope&&l.hasOwnProperty("scope")&&(s=f.opentelemetry.proto.common.v1.InstrumentationScope.verify(l.scope)))return"scope."+s;if(null!=l.logRecords&&l.hasOwnProperty("logRecords")){if(!Array.isArray(l.logRecords))return"logRecords: array expected";for(var u=0;u<l.logRecords.length;++u){var s;if(s=f.opentelemetry.proto.logs.v1.LogRecord.verify(l.logRecords[u]))return"logRecords."+s}}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&!h.isString(l.schemaUrl)?"schemaUrl: string expected":null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.logs.v1.ScopeLogs)return l;var s=new f.opentelemetry.proto.logs.v1.ScopeLogs;if(null!=l.scope){if("object"!=typeof l.scope)throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");s.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(l.scope)}if(l.logRecords){if(!Array.isArray(l.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");s.logRecords=[];for(var u=0;u<l.logRecords.length;++u){if("object"!=typeof l.logRecords[u])throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");s.logRecords[u]=f.opentelemetry.proto.logs.v1.LogRecord.fromObject(l.logRecords[u])}}return null!=l.schemaUrl&&(s.schemaUrl=String(l.schemaUrl)),s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.logRecords=[]),s.defaults&&(u.scope=null,u.schemaUrl=""),null!=l.scope&&l.hasOwnProperty("scope")&&(u.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.toObject(l.scope,s)),l.logRecords&&l.logRecords.length){u.logRecords=[];for(var m=0;m<l.logRecords.length;++m)u.logRecords[m]=f.opentelemetry.proto.logs.v1.LogRecord.toObject(l.logRecords[m],s)}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&(u.schemaUrl=l.schemaUrl),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.logs.v1.ScopeLogs"},y}(),E.SeverityNumber=(y={},(S=Object.create(y))[y[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,S[y[1]="SEVERITY_NUMBER_TRACE"]=1,S[y[2]="SEVERITY_NUMBER_TRACE2"]=2,S[y[3]="SEVERITY_NUMBER_TRACE3"]=3,S[y[4]="SEVERITY_NUMBER_TRACE4"]=4,S[y[5]="SEVERITY_NUMBER_DEBUG"]=5,S[y[6]="SEVERITY_NUMBER_DEBUG2"]=6,S[y[7]="SEVERITY_NUMBER_DEBUG3"]=7,S[y[8]="SEVERITY_NUMBER_DEBUG4"]=8,S[y[9]="SEVERITY_NUMBER_INFO"]=9,S[y[10]="SEVERITY_NUMBER_INFO2"]=10,S[y[11]="SEVERITY_NUMBER_INFO3"]=11,S[y[12]="SEVERITY_NUMBER_INFO4"]=12,S[y[13]="SEVERITY_NUMBER_WARN"]=13,S[y[14]="SEVERITY_NUMBER_WARN2"]=14,S[y[15]="SEVERITY_NUMBER_WARN3"]=15,S[y[16]="SEVERITY_NUMBER_WARN4"]=16,S[y[17]="SEVERITY_NUMBER_ERROR"]=17,S[y[18]="SEVERITY_NUMBER_ERROR2"]=18,S[y[19]="SEVERITY_NUMBER_ERROR3"]=19,S[y[20]="SEVERITY_NUMBER_ERROR4"]=20,S[y[21]="SEVERITY_NUMBER_FATAL"]=21,S[y[22]="SEVERITY_NUMBER_FATAL2"]=22,S[y[23]="SEVERITY_NUMBER_FATAL3"]=23,S[y[24]="SEVERITY_NUMBER_FATAL4"]=24,S),E.LogRecordFlags=function(){var y={},S=Object.create(y);return S[y[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,S[y[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,S}(),E.LogRecord=function(){function y(S){if(this.attributes=[],S)for(var l=Object.keys(S),s=0;s<l.length;++s)null!=S[l[s]]&&(this[l[s]]=S[l[s]])}return y.prototype.timeUnixNano=null,y.prototype.observedTimeUnixNano=null,y.prototype.severityNumber=null,y.prototype.severityText=null,y.prototype.body=null,y.prototype.attributes=h.emptyArray,y.prototype.droppedAttributesCount=null,y.prototype.flags=null,y.prototype.traceId=null,y.prototype.spanId=null,y.create=function(l){return new y(l)},y.encode=function(l,s){if(s||(s=v.create()),null!=l.timeUnixNano&&Object.hasOwnProperty.call(l,"timeUnixNano")&&s.uint32(9).fixed64(l.timeUnixNano),null!=l.severityNumber&&Object.hasOwnProperty.call(l,"severityNumber")&&s.uint32(16).int32(l.severityNumber),null!=l.severityText&&Object.hasOwnProperty.call(l,"severityText")&&s.uint32(26).string(l.severityText),null!=l.body&&Object.hasOwnProperty.call(l,"body")&&f.opentelemetry.proto.common.v1.AnyValue.encode(l.body,s.uint32(42).fork()).ldelim(),null!=l.attributes&&l.attributes.length)for(var u=0;u<l.attributes.length;++u)f.opentelemetry.proto.common.v1.KeyValue.encode(l.attributes[u],s.uint32(50).fork()).ldelim();return null!=l.droppedAttributesCount&&Object.hasOwnProperty.call(l,"droppedAttributesCount")&&s.uint32(56).uint32(l.droppedAttributesCount),null!=l.flags&&Object.hasOwnProperty.call(l,"flags")&&s.uint32(69).fixed32(l.flags),null!=l.traceId&&Object.hasOwnProperty.call(l,"traceId")&&s.uint32(74).bytes(l.traceId),null!=l.spanId&&Object.hasOwnProperty.call(l,"spanId")&&s.uint32(82).bytes(l.spanId),null!=l.observedTimeUnixNano&&Object.hasOwnProperty.call(l,"observedTimeUnixNano")&&s.uint32(89).fixed64(l.observedTimeUnixNano),s},y.encodeDelimited=function(l,s){return this.encode(l,s).ldelim()},y.decode=function(l,s){l instanceof n||(l=n.create(l));for(var u=void 0===s?l.len:l.pos+s,m=new f.opentelemetry.proto.logs.v1.LogRecord;l.pos<u;){var I=l.uint32();switch(I>>>3){case 1:m.timeUnixNano=l.fixed64();break;case 11:m.observedTimeUnixNano=l.fixed64();break;case 2:m.severityNumber=l.int32();break;case 3:m.severityText=l.string();break;case 5:m.body=f.opentelemetry.proto.common.v1.AnyValue.decode(l,l.uint32());break;case 6:m.attributes&&m.attributes.length||(m.attributes=[]),m.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(l,l.uint32()));break;case 7:m.droppedAttributesCount=l.uint32();break;case 8:m.flags=l.fixed32();break;case 9:m.traceId=l.bytes();break;case 10:m.spanId=l.bytes();break;default:l.skipType(7&I)}}return m},y.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},y.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.timeUnixNano&&l.hasOwnProperty("timeUnixNano")&&!h.isInteger(l.timeUnixNano)&&!(l.timeUnixNano&&h.isInteger(l.timeUnixNano.low)&&h.isInteger(l.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=l.observedTimeUnixNano&&l.hasOwnProperty("observedTimeUnixNano")&&!h.isInteger(l.observedTimeUnixNano)&&!(l.observedTimeUnixNano&&h.isInteger(l.observedTimeUnixNano.low)&&h.isInteger(l.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(null!=l.severityNumber&&l.hasOwnProperty("severityNumber"))switch(l.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!=l.severityText&&l.hasOwnProperty("severityText")&&!h.isString(l.severityText))return"severityText: string expected";if(null!=l.body&&l.hasOwnProperty("body")&&(s=f.opentelemetry.proto.common.v1.AnyValue.verify(l.body)))return"body."+s;if(null!=l.attributes&&l.hasOwnProperty("attributes")){if(!Array.isArray(l.attributes))return"attributes: array expected";for(var u=0;u<l.attributes.length;++u){var s;if(s=f.opentelemetry.proto.common.v1.KeyValue.verify(l.attributes[u]))return"attributes."+s}}return null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&!h.isInteger(l.droppedAttributesCount)?"droppedAttributesCount: integer expected":null!=l.flags&&l.hasOwnProperty("flags")&&!h.isInteger(l.flags)?"flags: integer expected":null!=l.traceId&&l.hasOwnProperty("traceId")&&!(l.traceId&&"number"==typeof l.traceId.length||h.isString(l.traceId))?"traceId: buffer expected":null!=l.spanId&&l.hasOwnProperty("spanId")&&!(l.spanId&&"number"==typeof l.spanId.length||h.isString(l.spanId))?"spanId: buffer expected":null},y.fromObject=function(l){if(l instanceof f.opentelemetry.proto.logs.v1.LogRecord)return l;var s=new f.opentelemetry.proto.logs.v1.LogRecord;switch(null!=l.timeUnixNano&&(h.Long?(s.timeUnixNano=h.Long.fromValue(l.timeUnixNano)).unsigned=!1:"string"==typeof l.timeUnixNano?s.timeUnixNano=parseInt(l.timeUnixNano,10):"number"==typeof l.timeUnixNano?s.timeUnixNano=l.timeUnixNano:"object"==typeof l.timeUnixNano&&(s.timeUnixNano=new h.LongBits(l.timeUnixNano.low>>>0,l.timeUnixNano.high>>>0).toNumber())),null!=l.observedTimeUnixNano&&(h.Long?(s.observedTimeUnixNano=h.Long.fromValue(l.observedTimeUnixNano)).unsigned=!1:"string"==typeof l.observedTimeUnixNano?s.observedTimeUnixNano=parseInt(l.observedTimeUnixNano,10):"number"==typeof l.observedTimeUnixNano?s.observedTimeUnixNano=l.observedTimeUnixNano:"object"==typeof l.observedTimeUnixNano&&(s.observedTimeUnixNano=new h.LongBits(l.observedTimeUnixNano.low>>>0,l.observedTimeUnixNano.high>>>0).toNumber())),l.severityNumber){default:if("number"==typeof l.severityNumber){s.severityNumber=l.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:s.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:s.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:s.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:s.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:s.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:s.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:s.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:s.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:s.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:s.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:s.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:s.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:s.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:s.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:s.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:s.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:s.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:s.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:s.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:s.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:s.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:s.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:s.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:s.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:s.severityNumber=24}if(null!=l.severityText&&(s.severityText=String(l.severityText)),null!=l.body){if("object"!=typeof l.body)throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");s.body=f.opentelemetry.proto.common.v1.AnyValue.fromObject(l.body)}if(l.attributes){if(!Array.isArray(l.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");s.attributes=[];for(var u=0;u<l.attributes.length;++u){if("object"!=typeof l.attributes[u])throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");s.attributes[u]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(l.attributes[u])}}return null!=l.droppedAttributesCount&&(s.droppedAttributesCount=l.droppedAttributesCount>>>0),null!=l.flags&&(s.flags=l.flags>>>0),null!=l.traceId&&("string"==typeof l.traceId?h.base64.decode(l.traceId,s.traceId=h.newBuffer(h.base64.length(l.traceId)),0):l.traceId.length>=0&&(s.traceId=l.traceId)),null!=l.spanId&&("string"==typeof l.spanId?h.base64.decode(l.spanId,s.spanId=h.newBuffer(h.base64.length(l.spanId)),0):l.spanId.length>=0&&(s.spanId=l.spanId)),s},y.toObject=function(l,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.attributes=[]),s.defaults){if(h.Long){var m=new h.Long(0,0,!1);u.timeUnixNano=s.longs===String?m.toString():s.longs===Number?m.toNumber():m}else u.timeUnixNano=s.longs===String?"0":0;u.severityNumber=s.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,u.severityText="",u.body=null,u.droppedAttributesCount=0,u.flags=0,s.bytes===String?u.traceId="":(u.traceId=[],s.bytes!==Array&&(u.traceId=h.newBuffer(u.traceId))),s.bytes===String?u.spanId="":(u.spanId=[],s.bytes!==Array&&(u.spanId=h.newBuffer(u.spanId))),h.Long?(m=new h.Long(0,0,!1),u.observedTimeUnixNano=s.longs===String?m.toString():s.longs===Number?m.toNumber():m):u.observedTimeUnixNano=s.longs===String?"0":0}if(null!=l.timeUnixNano&&l.hasOwnProperty("timeUnixNano")&&(u.timeUnixNano="number"==typeof l.timeUnixNano?s.longs===String?String(l.timeUnixNano):l.timeUnixNano:s.longs===String?h.Long.prototype.toString.call(l.timeUnixNano):s.longs===Number?new h.LongBits(l.timeUnixNano.low>>>0,l.timeUnixNano.high>>>0).toNumber():l.timeUnixNano),null!=l.severityNumber&&l.hasOwnProperty("severityNumber")&&(u.severityNumber=s.enums===String?void 0===f.opentelemetry.proto.logs.v1.SeverityNumber[l.severityNumber]?l.severityNumber:f.opentelemetry.proto.logs.v1.SeverityNumber[l.severityNumber]:l.severityNumber),null!=l.severityText&&l.hasOwnProperty("severityText")&&(u.severityText=l.severityText),null!=l.body&&l.hasOwnProperty("body")&&(u.body=f.opentelemetry.proto.common.v1.AnyValue.toObject(l.body,s)),l.attributes&&l.attributes.length){u.attributes=[];for(var I=0;I<l.attributes.length;++I)u.attributes[I]=f.opentelemetry.proto.common.v1.KeyValue.toObject(l.attributes[I],s)}return null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=l.droppedAttributesCount),null!=l.flags&&l.hasOwnProperty("flags")&&(u.flags=l.flags),null!=l.traceId&&l.hasOwnProperty("traceId")&&(u.traceId=s.bytes===String?h.base64.encode(l.traceId,0,l.traceId.length):s.bytes===Array?Array.prototype.slice.call(l.traceId):l.traceId),null!=l.spanId&&l.hasOwnProperty("spanId")&&(u.spanId=s.bytes===String?h.base64.encode(l.spanId,0,l.spanId.length):s.bytes===Array?Array.prototype.slice.call(l.spanId):l.spanId),null!=l.observedTimeUnixNano&&l.hasOwnProperty("observedTimeUnixNano")&&(u.observedTimeUnixNano="number"==typeof l.observedTimeUnixNano?s.longs===String?String(l.observedTimeUnixNano):l.observedTimeUnixNano:s.longs===String?h.Long.prototype.toString.call(l.observedTimeUnixNano):s.longs===Number?new h.LongBits(l.observedTimeUnixNano.low>>>0,l.observedTimeUnixNano.high>>>0).toNumber():l.observedTimeUnixNano),u},y.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},y.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.logs.v1.LogRecord"},y}(),E}(),T}(),M),A),je.exports=f},63548:(je,z,c)=>{"use strict";je.exports=c(70880)},70880:(je,z,c)=>{"use strict";var r=z;function n(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=c(6759),r.BufferWriter=c(18672),r.Reader=c(21239),r.BufferReader=c(64640),r.util=c(76124),r.rpc=c(99453),r.roots=c(14335),r.configure=n,n()},21239:(je,z,c)=>{"use strict";je.exports=A;var n,r=c(76124),v=r.LongBits,h=r.utf8;function f(l,s){return RangeError("index out of range: "+l.pos+" + "+(s||1)+" > "+l.len)}function A(l){this.buf=l,this.pos=0,this.len=l.length}var M=typeof Uint8Array<"u"?function(s){if(s instanceof Uint8Array||Array.isArray(s))return new A(s);throw Error("illegal buffer")}:function(s){if(Array.isArray(s))return new A(s);throw Error("illegal buffer")},T=function(){return r.Buffer?function(u){return(A.create=function(I){return r.Buffer.isBuffer(I)?new n(I):M(I)})(u)}:M};function E(){var l=new v(0,0),s=0;if(!(this.len-this.pos>4)){for(;s<3;++s){if(this.pos>=this.len)throw f(this);if(l.lo=(l.lo|(127&this.buf[this.pos])<<7*s)>>>0,this.buf[this.pos++]<128)return l}return l.lo=(l.lo|(127&this.buf[this.pos++])<<7*s)>>>0,l}for(;s<4;++s)if(l.lo=(l.lo|(127&this.buf[this.pos])<<7*s)>>>0,this.buf[this.pos++]<128)return l;if(l.lo=(l.lo|(127&this.buf[this.pos])<<28)>>>0,l.hi=(l.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return l;if(s=0,this.len-this.pos>4){for(;s<5;++s)if(l.hi=(l.hi|(127&this.buf[this.pos])<<7*s+3)>>>0,this.buf[this.pos++]<128)return l}else for(;s<5;++s){if(this.pos>=this.len)throw f(this);if(l.hi=(l.hi|(127&this.buf[this.pos])<<7*s+3)>>>0,this.buf[this.pos++]<128)return l}throw Error("invalid varint encoding")}function y(l,s){return(l[s-4]|l[s-3]<<8|l[s-2]<<16|l[s-1]<<24)>>>0}function S(){if(this.pos+8>this.len)throw f(this,8);return new v(y(this.buf,this.pos+=4),y(this.buf,this.pos+=4))}A.create=T(),A.prototype._slice=r.Array.prototype.subarray||r.Array.prototype.slice,A.prototype.uint32=function(){var s=4294967295;return function(){if(s=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(s=(s|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(s=(s|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(s=(s|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(s=(s|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return s;if((this.pos+=5)>this.len)throw this.pos=this.len,f(this,10);return s}}(),A.prototype.int32=function(){return 0|this.uint32()},A.prototype.sint32=function(){var s=this.uint32();return s>>>1^-(1&s)},A.prototype.bool=function(){return 0!==this.uint32()},A.prototype.fixed32=function(){if(this.pos+4>this.len)throw f(this,4);return y(this.buf,this.pos+=4)},A.prototype.sfixed32=function(){if(this.pos+4>this.len)throw f(this,4);return 0|y(this.buf,this.pos+=4)},A.prototype.float=function(){if(this.pos+4>this.len)throw f(this,4);var s=r.float.readFloatLE(this.buf,this.pos);return this.pos+=4,s},A.prototype.double=function(){if(this.pos+8>this.len)throw f(this,4);var s=r.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,s},A.prototype.bytes=function(){var s=this.uint32(),u=this.pos,m=this.pos+s;if(m>this.len)throw f(this,s);if(this.pos+=s,Array.isArray(this.buf))return this.buf.slice(u,m);if(u===m){var I=r.Buffer;return I?I.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,u,m)},A.prototype.string=function(){var s=this.bytes();return h.read(s,0,s.length)},A.prototype.skip=function(s){if("number"==typeof s){if(this.pos+s>this.len)throw f(this,s);this.pos+=s}else do{if(this.pos>=this.len)throw f(this)}while(128&this.buf[this.pos++]);return this},A.prototype.skipType=function(l){switch(l){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(l=7&this.uint32());)this.skipType(l);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+l+" at offset "+this.pos)}return this},A._configure=function(l){n=l,A.create=T(),n._configure();var s=r.Long?"toLong":"toNumber";r.merge(A.prototype,{int64:function(){return E.call(this)[s](!1)},uint64:function(){return E.call(this)[s](!0)},sint64:function(){return E.call(this).zzDecode()[s](!1)},fixed64:function(){return S.call(this)[s](!0)},sfixed64:function(){return S.call(this)[s](!1)}})}},64640:(je,z,c)=>{"use strict";je.exports=v;var r=c(21239);(v.prototype=Object.create(r.prototype)).constructor=v;var n=c(76124);function v(h){r.call(this,h)}v._configure=function(){n.Buffer&&(v.prototype._slice=n.Buffer.prototype.slice)},v.prototype.string=function(){var f=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+f,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+f,this.len))},v._configure()},14335:je=>{"use strict";je.exports={}},99453:(je,z,c)=>{"use strict";z.Service=c(18117)},18117:(je,z,c)=>{"use strict";je.exports=n;var r=c(76124);function n(v,h,f){if("function"!=typeof v)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=v,this.requestDelimited=!!h,this.responseDelimited=!!f}(n.prototype=Object.create(r.EventEmitter.prototype)).constructor=n,n.prototype.rpcCall=function v(h,f,A,M,T){if(!M)throw TypeError("request must be specified");var E=this;if(!T)return r.asPromise(v,E,h,f,A,M);if(E.rpcImpl)try{return E.rpcImpl(h,f[E.requestDelimited?"encodeDelimited":"encode"](M).finish(),function(S,l){if(S)return E.emit("error",S,h),T(S);if(null!==l){if(!(l instanceof A))try{l=A[E.responseDelimited?"decodeDelimited":"decode"](l)}catch(s){return E.emit("error",s,h),T(s)}return E.emit("data",l,h),T(null,l)}E.end(!0)})}catch(y){return E.emit("error",y,h),void setTimeout(function(){T(y)},0)}else setTimeout(function(){T(Error("already ended"))},0)},n.prototype.end=function(h){return this.rpcImpl&&(h||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},64341:(je,z,c)=>{"use strict";je.exports=n;var r=c(76124);function n(A,M){this.lo=A>>>0,this.hi=M>>>0}var v=n.zero=new n(0,0);v.toNumber=function(){return 0},v.zzEncode=v.zzDecode=function(){return this},v.length=function(){return 1};var h=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(M){if(0===M)return v;var T=M<0;T&&(M=-M);var E=M>>>0,y=(M-E)/4294967296>>>0;return T&&(y=~y>>>0,E=~E>>>0,++E>4294967295&&(E=0,++y>4294967295&&(y=0))),new n(E,y)},n.from=function(M){if("number"==typeof M)return n.fromNumber(M);if(r.isString(M)){if(!r.Long)return n.fromNumber(parseInt(M,10));M=r.Long.fromString(M)}return M.low||M.high?new n(M.low>>>0,M.high>>>0):v},n.prototype.toNumber=function(M){if(!M&&this.hi>>>31){var T=1+~this.lo>>>0,E=~this.hi>>>0;return T||(E=E+1>>>0),-(T+4294967296*E)}return this.lo+4294967296*this.hi},n.prototype.toLong=function(M){return r.Long?new r.Long(0|this.lo,0|this.hi,!!M):{low:0|this.lo,high:0|this.hi,unsigned:!!M}};var f=String.prototype.charCodeAt;n.fromHash=function(M){return M===h?v:new n((f.call(M,0)|f.call(M,1)<<8|f.call(M,2)<<16|f.call(M,3)<<24)>>>0,(f.call(M,4)|f.call(M,5)<<8|f.call(M,6)<<16|f.call(M,7)<<24)>>>0)},n.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)},n.prototype.zzEncode=function(){var M=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^M)>>>0,this.lo=(this.lo<<1^M)>>>0,this},n.prototype.zzDecode=function(){var M=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^M)>>>0,this.hi=(this.hi>>>1^M)>>>0,this},n.prototype.length=function(){var M=this.lo,T=(this.lo>>>28|this.hi<<4)>>>0,E=this.hi>>>24;return 0===E?0===T?M<16384?M<128?1:2:M<2097152?3:4:T<16384?T<128?5:6:T<2097152?7:8:E<128?9:10}},76124:function(je,z,c){"use strict";var r=z;function n(h,f,A){for(var M=Object.keys(f),T=0;T<M.length;++T)(void 0===h[M[T]]||!A)&&(h[M[T]]=f[M[T]]);return h}function v(h){function f(A,M){if(!(this instanceof f))return new f(A,M);Object.defineProperty(this,"message",{get:function(){return A}}),Error.captureStackTrace?Error.captureStackTrace(this,f):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),M&&n(this,M)}return f.prototype=Object.create(Error.prototype,{constructor:{value:f,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return h},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),f}r.asPromise=c(69753),r.base64=c(5275),r.EventEmitter=c(84978),r.float=c(8982),r.inquire=c(46469),r.utf8=c(61755),r.pool=c(74722),r.LongBits=c(64341),r.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node),r.global=r.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||this,r.emptyArray=Object.freeze?Object.freeze([]):[],r.emptyObject=Object.freeze?Object.freeze({}):{},r.isInteger=Number.isInteger||function(f){return"number"==typeof f&&isFinite(f)&&Math.floor(f)===f},r.isString=function(f){return"string"==typeof f||f instanceof String},r.isObject=function(f){return f&&"object"==typeof f},r.isset=r.isSet=function(f,A){var M=f[A];return!(null==M||!f.hasOwnProperty(A))&&("object"!=typeof M||(Array.isArray(M)?M.length:Object.keys(M).length)>0)},r.Buffer=function(){try{var h=r.inquire("buffer").Buffer;return h.prototype.utf8Write?h:null}catch{return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(f){return"number"==typeof f?r.Buffer?r._Buffer_allocUnsafe(f):new r.Array(f):r.Buffer?r._Buffer_from(f):typeof Uint8Array>"u"?f:new Uint8Array(f)},r.Array=typeof Uint8Array<"u"?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(f){return f?r.LongBits.from(f).toHash():r.LongBits.zeroHash},r.longFromHash=function(f,A){var M=r.LongBits.fromHash(f);return r.Long?r.Long.fromBits(M.lo,M.hi,A):M.toNumber(!!A)},r.merge=n,r.lcFirst=function(f){return f.charAt(0).toLowerCase()+f.substring(1)},r.newError=v,r.ProtocolError=v("ProtocolError"),r.oneOfGetter=function(f){for(var A={},M=0;M<f.length;++M)A[f[M]]=1;return function(){for(var T=Object.keys(this),E=T.length-1;E>-1;--E)if(1===A[T[E]]&&null!=this[T[E]])return T[E]}},r.oneOfSetter=function(f){return function(A){for(var M=0;M<f.length;++M)f[M]!==A&&delete this[f[M]]}},r.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},r._configure=function(){var h=r.Buffer;h?(r._Buffer_from=h.from!==Uint8Array.from&&h.from||function(A,M){return new h(A,M)},r._Buffer_allocUnsafe=h.allocUnsafe||function(A){return new h(A)}):r._Buffer_from=r._Buffer_allocUnsafe=null}},6759:(je,z,c)=>{"use strict";je.exports=E;var n,r=c(76124),v=r.LongBits,h=r.base64,f=r.utf8;function A(R,O,Y){this.fn=R,this.len=O,this.next=void 0,this.val=Y}function M(){}function T(R){this.head=R.head,this.tail=R.tail,this.len=R.len,this.next=R.states}function E(){this.len=0,this.head=new A(M,0,0),this.tail=this.head,this.states=null}var y=function(){return r.Buffer?function(){return(E.create=function(){return new n})()}:function(){return new E}};function S(R,O,Y){O[Y]=255&R}function s(R,O){this.len=R,this.next=void 0,this.val=O}function u(R,O,Y){for(;R.hi;)O[Y++]=127&R.lo|128,R.lo=(R.lo>>>7|R.hi<<25)>>>0,R.hi>>>=7;for(;R.lo>127;)O[Y++]=127&R.lo|128,R.lo=R.lo>>>7;O[Y++]=R.lo}function m(R,O,Y){O[Y]=255&R,O[Y+1]=R>>>8&255,O[Y+2]=R>>>16&255,O[Y+3]=R>>>24}E.create=y(),E.alloc=function(O){return new r.Array(O)},r.Array!==Array&&(E.alloc=r.pool(E.alloc,r.Array.prototype.subarray)),E.prototype._push=function(O,Y,j){return this.tail=this.tail.next=new A(O,Y,j),this.len+=Y,this},(s.prototype=Object.create(A.prototype)).fn=function l(R,O,Y){for(;R>127;)O[Y++]=127&R|128,R>>>=7;O[Y]=R},E.prototype.uint32=function(O){return this.len+=(this.tail=this.tail.next=new s((O>>>=0)<128?1:O<16384?2:O<2097152?3:O<268435456?4:5,O)).len,this},E.prototype.int32=function(O){return O<0?this._push(u,10,v.fromNumber(O)):this.uint32(O)},E.prototype.sint32=function(O){return this.uint32((O<<1^O>>31)>>>0)},E.prototype.int64=E.prototype.uint64=function(O){var Y=v.from(O);return this._push(u,Y.length(),Y)},E.prototype.sint64=function(O){var Y=v.from(O).zzEncode();return this._push(u,Y.length(),Y)},E.prototype.bool=function(O){return this._push(S,1,O?1:0)},E.prototype.sfixed32=E.prototype.fixed32=function(O){return this._push(m,4,O>>>0)},E.prototype.sfixed64=E.prototype.fixed64=function(O){var Y=v.from(O);return this._push(m,4,Y.lo)._push(m,4,Y.hi)},E.prototype.float=function(O){return this._push(r.float.writeFloatLE,4,O)},E.prototype.double=function(O){return this._push(r.float.writeDoubleLE,8,O)};var I=r.Array.prototype.set?function(O,Y,j){Y.set(O,j)}:function(O,Y,j){for(var fe=0;fe<O.length;++fe)Y[j+fe]=O[fe]};E.prototype.bytes=function(O){var Y=O.length>>>0;if(!Y)return this._push(S,1,0);if(r.isString(O)){var j=E.alloc(Y=h.length(O));h.decode(O,j,0),O=j}return this.uint32(Y)._push(I,Y,O)},E.prototype.string=function(O){var Y=f.length(O);return Y?this.uint32(Y)._push(f.write,Y,O):this._push(S,1,0)},E.prototype.fork=function(){return this.states=new T(this),this.head=this.tail=new A(M,0,0),this.len=0,this},E.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 A(M,0,0),this.len=0),this},E.prototype.ldelim=function(){var O=this.head,Y=this.tail,j=this.len;return this.reset().uint32(j),j&&(this.tail.next=O.next,this.tail=Y,this.len+=j),this},E.prototype.finish=function(){for(var O=this.head.next,Y=this.constructor.alloc(this.len),j=0;O;)O.fn(O.val,Y,j),j+=O.len,O=O.next;return Y},E._configure=function(R){n=R,E.create=y(),n._configure()}},18672:(je,z,c)=>{"use strict";je.exports=v;var r=c(6759);(v.prototype=Object.create(r.prototype)).constructor=v;var n=c(76124);function v(){r.call(this)}function h(f,A,M){f.length<40?n.utf8.write(f,A,M):A.utf8Write?A.utf8Write(f,M):A.write(f,M)}v._configure=function(){v.alloc=n._Buffer_allocUnsafe,v.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(A,M,T){M.set(A,T)}:function(A,M,T){if(A.copy)A.copy(M,T,0,A.length);else for(var E=0;E<A.length;)M[T++]=A[E++]}},v.prototype.bytes=function(A){n.isString(A)&&(A=n._Buffer_from(A,"base64"));var M=A.length>>>0;return this.uint32(M),M&&this._push(v.writeBytesBuffer,M,A),this},v.prototype.string=function(A){var M=n.Buffer.byteLength(A);return this.uint32(M),M&&this._push(h,M,A),this},v._configure()},69753:je=>{"use strict";je.exports=function z(c,r){for(var n=new Array(arguments.length-1),v=0,h=2,f=!0;h<arguments.length;)n[v++]=arguments[h++];return new Promise(function(M,T){n[v]=function(y){if(f)if(f=!1,y)T(y);else{for(var S=new Array(arguments.length-1),l=0;l<S.length;)S[l++]=arguments[l];M.apply(null,S)}};try{c.apply(r||null,n)}catch(E){f&&(f=!1,T(E))}})}},5275:(je,z)=>{"use strict";var c=z;c.length=function(A){var M=A.length;if(!M)return 0;for(var T=0;--M%4>1&&"="===A.charAt(M);)++T;return Math.ceil(3*A.length)/4-T};for(var r=new Array(64),n=new Array(123),v=0;v<64;)n[r[v]=v<26?v+65:v<52?v+71:v<62?v-4:v-59|43]=v++;c.encode=function(A,M,T){for(var s,E=null,y=[],S=0,l=0;M<T;){var u=A[M++];switch(l){case 0:y[S++]=r[u>>2],s=(3&u)<<4,l=1;break;case 1:y[S++]=r[s|u>>4],s=(15&u)<<2,l=2;break;case 2:y[S++]=r[s|u>>6],y[S++]=r[63&u],l=0}S>8191&&((E||(E=[])).push(String.fromCharCode.apply(String,y)),S=0)}return l&&(y[S++]=r[s],y[S++]=61,1===l&&(y[S++]=61)),E?(S&&E.push(String.fromCharCode.apply(String,y.slice(0,S))),E.join("")):String.fromCharCode.apply(String,y.slice(0,S))};var h="invalid encoding";c.decode=function(A,M,T){for(var S,E=T,y=0,l=0;l<A.length;){var s=A.charCodeAt(l++);if(61===s&&y>1)break;if(void 0===(s=n[s]))throw Error(h);switch(y){case 0:S=s,y=1;break;case 1:M[T++]=S<<2|(48&s)>>4,S=s,y=2;break;case 2:M[T++]=(15&S)<<4|(60&s)>>2,S=s,y=3;break;case 3:M[T++]=(3&S)<<6|s,y=0}}if(1===y)throw Error(h);return T-E},c.test=function(A){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(A)}},84978:je=>{"use strict";function z(){this._listeners={}}je.exports=z,z.prototype.on=function(r,n,v){return(this._listeners[r]||(this._listeners[r]=[])).push({fn:n,ctx:v||this}),this},z.prototype.off=function(r,n){if(void 0===r)this._listeners={};else if(void 0===n)this._listeners[r]=[];else for(var v=this._listeners[r],h=0;h<v.length;)v[h].fn===n?v.splice(h,1):++h;return this},z.prototype.emit=function(r){var n=this._listeners[r];if(n){for(var v=[],h=1;h<arguments.length;)v.push(arguments[h++]);for(h=0;h<n.length;)n[h].fn.apply(n[h++].ctx,v)}return this}},8982:je=>{"use strict";function z(h){return typeof Float32Array<"u"?function(){var f=new Float32Array([-0]),A=new Uint8Array(f.buffer),M=128===A[3];function T(l,s,u){f[0]=l,s[u]=A[0],s[u+1]=A[1],s[u+2]=A[2],s[u+3]=A[3]}function E(l,s,u){f[0]=l,s[u]=A[3],s[u+1]=A[2],s[u+2]=A[1],s[u+3]=A[0]}function y(l,s){return A[0]=l[s],A[1]=l[s+1],A[2]=l[s+2],A[3]=l[s+3],f[0]}function S(l,s){return A[3]=l[s],A[2]=l[s+1],A[1]=l[s+2],A[0]=l[s+3],f[0]}h.writeFloatLE=M?T:E,h.writeFloatBE=M?E:T,h.readFloatLE=M?y:S,h.readFloatBE=M?S:y}():function(){function f(M,T,E,y){var S=T<0?1:0;if(S&&(T=-T),0===T)M(1/T>0?0:2147483648,E,y);else if(isNaN(T))M(2143289344,E,y);else if(T>34028234663852886e22)M((S<<31|2139095040)>>>0,E,y);else if(T<11754943508222875e-54)M((S<<31|Math.round(T/1401298464324817e-60))>>>0,E,y);else{var l=Math.floor(Math.log(T)/Math.LN2);M((S<<31|l+127<<23|8388607&Math.round(T*Math.pow(2,-l)*8388608))>>>0,E,y)}}function A(M,T,E){var y=M(T,E),S=2*(y>>31)+1,l=y>>>23&255,s=8388607&y;return 255===l?s?NaN:S*(1/0):0===l?1401298464324817e-60*S*s:S*Math.pow(2,l-150)*(s+8388608)}h.writeFloatLE=f.bind(null,c),h.writeFloatBE=f.bind(null,r),h.readFloatLE=A.bind(null,n),h.readFloatBE=A.bind(null,v)}(),typeof Float64Array<"u"?function(){var f=new Float64Array([-0]),A=new Uint8Array(f.buffer),M=128===A[7];function T(l,s,u){f[0]=l,s[u]=A[0],s[u+1]=A[1],s[u+2]=A[2],s[u+3]=A[3],s[u+4]=A[4],s[u+5]=A[5],s[u+6]=A[6],s[u+7]=A[7]}function E(l,s,u){f[0]=l,s[u]=A[7],s[u+1]=A[6],s[u+2]=A[5],s[u+3]=A[4],s[u+4]=A[3],s[u+5]=A[2],s[u+6]=A[1],s[u+7]=A[0]}function y(l,s){return A[0]=l[s],A[1]=l[s+1],A[2]=l[s+2],A[3]=l[s+3],A[4]=l[s+4],A[5]=l[s+5],A[6]=l[s+6],A[7]=l[s+7],f[0]}function S(l,s){return A[7]=l[s],A[6]=l[s+1],A[5]=l[s+2],A[4]=l[s+3],A[3]=l[s+4],A[2]=l[s+5],A[1]=l[s+6],A[0]=l[s+7],f[0]}h.writeDoubleLE=M?T:E,h.writeDoubleBE=M?E:T,h.readDoubleLE=M?y:S,h.readDoubleBE=M?S:y}():function(){function f(M,T,E,y,S,l){var s=y<0?1:0;if(s&&(y=-y),0===y)M(0,S,l+T),M(1/y>0?0:2147483648,S,l+E);else if(isNaN(y))M(0,S,l+T),M(2146959360,S,l+E);else if(y>17976931348623157e292)M(0,S,l+T),M((s<<31|2146435072)>>>0,S,l+E);else{var u;if(y<22250738585072014e-324)M((u=y/5e-324)>>>0,S,l+T),M((s<<31|u/4294967296)>>>0,S,l+E);else{var m=Math.floor(Math.log(y)/Math.LN2);1024===m&&(m=1023),M(4503599627370496*(u=y*Math.pow(2,-m))>>>0,S,l+T),M((s<<31|m+1023<<20|1048576*u&1048575)>>>0,S,l+E)}}}function A(M,T,E,y,S){var l=M(y,S+T),s=M(y,S+E),u=2*(s>>31)+1,m=s>>>20&2047,I=4294967296*(1048575&s)+l;return 2047===m?I?NaN:u*(1/0):0===m?5e-324*u*I:u*Math.pow(2,m-1075)*(I+4503599627370496)}h.writeDoubleLE=f.bind(null,c,0,4),h.writeDoubleBE=f.bind(null,r,4,0),h.readDoubleLE=A.bind(null,n,0,4),h.readDoubleBE=A.bind(null,v,4,0)}(),h}function c(h,f,A){f[A]=255&h,f[A+1]=h>>>8&255,f[A+2]=h>>>16&255,f[A+3]=h>>>24}function r(h,f,A){f[A]=h>>>24,f[A+1]=h>>>16&255,f[A+2]=h>>>8&255,f[A+3]=255&h}function n(h,f){return(h[f]|h[f+1]<<8|h[f+2]<<16|h[f+3]<<24)>>>0}function v(h,f){return(h[f]<<24|h[f+1]<<16|h[f+2]<<8|h[f+3])>>>0}je.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(je){}return null}module.exports=inquire},74722:je=>{"use strict";je.exports=function z(c,r,n){var v=n||8192,h=v>>>1,f=null,A=v;return function(T){if(T<1||T>h)return c(T);A+T>v&&(f=c(v),A=0);var E=r.call(f,A,A+=T);return 7&A&&(A=1+(7|A)),E}}},61755:(je,z)=>{"use strict";var c=z;c.length=function(n){for(var v=0,h=0,f=0;f<n.length;++f)(h=n.charCodeAt(f))<128?v+=1:h<2048?v+=2:55296==(64512&h)&&56320==(64512&n.charCodeAt(f+1))?(++f,v+=4):v+=3;return v},c.read=function(n,v,h){if(h-v<1)return"";for(var E,A=null,M=[],T=0;v<h;)(E=n[v++])<128?M[T++]=E:E>191&&E<224?M[T++]=(31&E)<<6|63&n[v++]:E>239&&E<365?(E=((7&E)<<18|(63&n[v++])<<12|(63&n[v++])<<6|63&n[v++])-65536,M[T++]=55296+(E>>10),M[T++]=56320+(1023&E)):M[T++]=(15&E)<<12|(63&n[v++])<<6|63&n[v++],T>8191&&((A||(A=[])).push(String.fromCharCode.apply(String,M)),T=0);return A?(T&&A.push(String.fromCharCode.apply(String,M.slice(0,T))),A.join("")):String.fromCharCode.apply(String,M.slice(0,T))},c.write=function(n,v,h){for(var A,M,f=h,T=0;T<n.length;++T)(A=n.charCodeAt(T))<128?v[h++]=A:A<2048?(v[h++]=A>>6|192,v[h++]=63&A|128):55296==(64512&A)&&56320==(64512&(M=n.charCodeAt(T+1)))?(++T,v[h++]=(A=65536+((1023&A)<<10)+(1023&M))>>18|240,v[h++]=A>>12&63|128,v[h++]=A>>6&63|128,v[h++]=63&A|128):(v[h++]=A>>12|224,v[h++]=A>>6&63|128,v[h++]=63&A|128);return h-f}},81806:(je,z,c)=>{je.exports=c(23026).default},23026:(je,z,c)=>{"use strict";z.default=O;var v=function h(Y){return Y&&Y.__esModule?Y:{default:Y}}(c(98627)),f="axios-retry";function A(Y){return!Y.response&&!!Y.code&&"ECONNABORTED"!==Y.code&&(0,v.default)(Y)}var M=["get","head","options"],T=M.concat(["put","delete"]);function E(Y){return"ECONNABORTED"!==Y.code&&(!Y.response||Y.response.status>=500&&Y.response.status<=599)}function S(Y){return!!Y.config&&E(Y)&&-1!==T.indexOf(Y.config.method)}function l(Y){return A(Y)||S(Y)}function s(){return 0}function m(Y){var j=Y[f]||{};return j.retryCount=j.retryCount||0,Y[f]=j,j}function O(Y,j){Y.interceptors.request.use(function(fe){return m(fe).lastRequestTime=Date.now(),fe}),Y.interceptors.response.use(null,function(fe){var te=fe.config;if(!te)return Promise.reject(fe);var ce=function I(Y,j){return Object.assign({},j,Y[f])}(te,j),H=ce.retries,Z=void 0===H?3:H,X=ce.retryCondition,ue=void 0===X?l:X,Me=ce.retryDelay,be=void 0===Me?s:Me,Q=ce.shouldResetTimeout,ne=void 0!==Q&&Q,Ge=m(te);if(ue(fe)&&Ge.retryCount<Z){Ge.retryCount+=1;var Xe=be(Ge.retryCount,fe);if(function R(Y,j){Y.defaults.agent===j.agent&&delete j.agent,Y.defaults.httpAgent===j.httpAgent&&delete j.httpAgent,Y.defaults.httpsAgent===j.httpsAgent&&delete j.httpsAgent}(Y,te),!ne&&te.timeout&&Ge.lastRequestTime){var ot=Date.now()-Ge.lastRequestTime;te.timeout=Math.max(te.timeout-ot-Xe,1)}return te.transformRequest=[function(dt){return dt}],new Promise(function(dt){return setTimeout(function(){return dt(Y(te))},Xe)})}return Promise.reject(fe)})}O.isNetworkError=A,O.isSafeRequestError=function y(Y){return!!Y.config&&E(Y)&&-1!==M.indexOf(Y.config.method)},O.isIdempotentRequestError=S,O.isNetworkOrIdempotentRequestError=l,O.exponentialDelay=function u(){var j=100*Math.pow(2,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0);return j+.2*j*Math.random()},O.isRetryableError=E},52490:(je,z)=>{"use strict";z.bg=function y(u){for(var m,I=function M(u){var m=u.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=u.indexOf("=");return-1===I&&(I=m),[I,I===m?0:4-I%4]}(u),R=I[0],O=I[1],Y=new v(function E(u,m,I){return 3*(m+I)/4-I}(0,R,O)),j=0,fe=O>0?R-4:R,te=0;te<fe;te+=4)m=n[u.charCodeAt(te)]<<18|n[u.charCodeAt(te+1)]<<12|n[u.charCodeAt(te+2)]<<6|n[u.charCodeAt(te+3)],Y[j++]=m>>16&255,Y[j++]=m>>8&255,Y[j++]=255&m;return 2===O&&(m=n[u.charCodeAt(te)]<<2|n[u.charCodeAt(te+1)]>>4,Y[j++]=255&m),1===O&&(m=n[u.charCodeAt(te)]<<10|n[u.charCodeAt(te+1)]<<4|n[u.charCodeAt(te+2)]>>2,Y[j++]=m>>8&255,Y[j++]=255&m),Y},z.iI=function s(u){for(var m,I=u.length,R=I%3,O=[],Y=16383,j=0,fe=I-R;j<fe;j+=Y)O.push(l(u,j,j+Y>fe?fe:j+Y));return 1===R?O.push(r[(m=u[I-1])>>2]+r[m<<4&63]+"=="):2===R&&O.push(r[(m=(u[I-2]<<8)+u[I-1])>>10]+r[m>>4&63]+r[m<<2&63]+"="),O.join("")};for(var r=[],n=[],v=typeof Uint8Array<"u"?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0;f<64;++f)r[f]=h[f],n[h.charCodeAt(f)]=f;function S(u){return r[u>>18&63]+r[u>>12&63]+r[u>>6&63]+r[63&u]}function l(u,m,I){for(var O=[],Y=m;Y<I;Y+=3)O.push(S((u[Y]<<16&16711680)+(u[Y+1]<<8&65280)+(255&u[Y+2])));return O.join("")}n[45]=62,n[95]=63},94329:je=>{var h=.1,f="function"==typeof Float32Array;function A(u,m){return 1-3*m+3*u}function M(u,m){return 3*m-6*u}function T(u){return 3*u}function E(u,m,I){return((A(m,I)*u+M(m,I))*u+T(m))*u}function y(u,m,I){return 3*A(m,I)*u*u+2*M(m,I)*u+T(m)}function s(u){return u}je.exports=function(m,I,R,O){if(!(0<=m&&m<=1&&0<=R&&R<=1))throw new Error("bezier x values must be in [0, 1] range");if(m===I&&R===O)return s;for(var Y=f?new Float32Array(11):new Array(11),j=0;j<11;++j)Y[j]=E(j*h,m,R);return function(ce){return 0===ce?0:1===ce?1:E(function fe(te){for(var ce=0,H=1;10!==H&&Y[H]<=te;++H)ce+=h;--H;var ue=ce+(te-Y[H])/(Y[H+1]-Y[H])*h,Me=y(ue,m,R);return Me>=.001?function l(u,m,I,R){for(var O=0;O<4;++O){var Y=y(m,I,R);if(0===Y)return m;m-=(E(m,I,R)-u)/Y}return m}(te,ue,m,R):0===Me?ue:function S(u,m,I,R,O){var Y,j,fe=0;do{(Y=E(j=m+(I-m)/2,R,O)-u)>0?I=j:m=j}while(Math.abs(Y)>1e-7&&++fe<10);return j}(te,ce,ce+h,m,R)}(ce),I,O)}}},19884:je=>{"use strict";var z={single_source_shortest_paths:function(c,r,n){var v={},h={};h[r]=0;var A,M,T,E,y,l,f=z.PriorityQueue.make();for(f.push(r,0);!f.empty();)for(T in E=(A=f.pop()).cost,y=c[M=A.value]||{})y.hasOwnProperty(T)&&(l=E+y[T],(typeof h[T]>"u"||h[T]>l)&&(h[T]=l,f.push(T,l),v[T]=M));if(typeof n<"u"&&typeof h[n]>"u"){var m=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(m)}return v},extract_shortest_path_from_predecessor_list:function(c,r){for(var n=[],v=r;v;)n.push(v),v=c[v];return n.reverse(),n},find_path:function(c,r,n){var v=z.single_source_shortest_paths(c,r,n);return z.extract_shortest_path_from_predecessor_list(v,n)},PriorityQueue:{make:function(c){var v,r=z.PriorityQueue,n={};for(v in c=c||{},r)r.hasOwnProperty(v)&&(n[v]=r[v]);return n.queue=[],n.sorter=c.sorter||r.default_sorter,n},default_sorter:function(c,r){return c.cost-r.cost},push:function(c,r){this.queue.push({value:c,cost:r}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};je.exports=z},30741:je=>{"use strict";je.exports=function(c){for(var r=[],n=c.length,v=0;v<n;v++){var h=c.charCodeAt(v);if(h>=55296&&h<=56319&&n>v+1){var f=c.charCodeAt(v+1);f>=56320&&f<=57343&&(h=1024*(h-55296)+f-56320+65536,v+=1)}h<128?r.push(h):h<2048?(r.push(h>>6|192),r.push(63&h|128)):h<55296||h>=57344&&h<65536?(r.push(h>>12|224),r.push(h>>6&63|128),r.push(63&h|128)):h>=65536&&h<=1114111?(r.push(h>>18|240),r.push(h>>12&63|128),r.push(h>>6&63|128),r.push(63&h|128)):r.push(239,191,189)}return new Uint8Array(r).buffer}},98627:je=>{"use strict";var z=["ETIMEDOUT","ECONNRESET","EADDRINUSE","ESOCKETTIMEDOUT","ECONNREFUSED","EPIPE","EHOSTUNREACH","EAI_AGAIN"],c=["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED"];je.exports=function(r){return!r||!r.code||-1!==z.indexOf(r.code)||-1===c.indexOf(r.code)}},20468:(je,z,c)=>{var r;!function(){"use strict";var n="input is invalid type",v="object"==typeof window,h=v?window:{};h.JS_SHA256_NO_WINDOW&&(v=!1);var f=!v&&"object"==typeof self,A=!h.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;A?h=global:f&&(h=self);var M=!h.JS_SHA256_NO_COMMON_JS&&je.exports,T=c.amdO,E=!h.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",y="0123456789abcdef".split(""),S=[-2147483648,8388608,32768,128],l=[24,16,8,0],s=[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],u=["hex","array","digest","arrayBuffer"],m=[];(h.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(H){return"[object Array]"===Object.prototype.toString.call(H)}),E&&(h.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(H){return"object"==typeof H&&H.buffer&&H.buffer.constructor===ArrayBuffer});var I=function(H,Z){return function(X){return new fe(Z,!0).update(X)[H]()}},R=function(H){var Z=I("hex",H);A&&(Z=O(Z,H)),Z.create=function(){return new fe(H)},Z.update=function(Me){return Z.create().update(Me)};for(var X=0;X<u.length;++X){var ue=u[X];Z[ue]=I(ue,H)}return Z},O=function(H,Z){var be,X=c(24394),ue=c(91903).Buffer,Me=Z?"sha224":"sha256";return be=ue.from&&!h.JS_SHA256_NO_BUFFER_FROM?ue.from:function(ne){return new ue(ne)},function(ne){if("string"==typeof ne)return X.createHash(Me).update(ne,"utf8").digest("hex");if(null==ne)throw new Error(n);return ne.constructor===ArrayBuffer&&(ne=new Uint8Array(ne)),Array.isArray(ne)||ArrayBuffer.isView(ne)||ne.constructor===ue?X.createHash(Me).update(be(ne)).digest("hex"):H(ne)}},Y=function(H,Z){return function(X,ue){return new te(X,Z,!0).update(ue)[H]()}},j=function(H){var Z=Y("hex",H);Z.create=function(Me){return new te(Me,H)},Z.update=function(Me,be){return Z.create(Me).update(be)};for(var X=0;X<u.length;++X){var ue=u[X];Z[ue]=Y(ue,H)}return Z};function fe(H,Z){Z?(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],H?(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=H}function te(H,Z,X){var ue,Me=typeof H;if("string"===Me){var Ge,be=[],Q=H.length,ne=0;for(ue=0;ue<Q;++ue)(Ge=H.charCodeAt(ue))<128?be[ne++]=Ge:Ge<2048?(be[ne++]=192|Ge>>>6,be[ne++]=128|63&Ge):Ge<55296||Ge>=57344?(be[ne++]=224|Ge>>>12,be[ne++]=128|Ge>>>6&63,be[ne++]=128|63&Ge):(Ge=65536+((1023&Ge)<<10|1023&H.charCodeAt(++ue)),be[ne++]=240|Ge>>>18,be[ne++]=128|Ge>>>12&63,be[ne++]=128|Ge>>>6&63,be[ne++]=128|63&Ge);H=be}else{if("object"!==Me)throw new Error(n);if(null===H)throw new Error(n);if(E&&H.constructor===ArrayBuffer)H=new Uint8Array(H);else if(!(Array.isArray(H)||E&&ArrayBuffer.isView(H)))throw new Error(n)}H.length>64&&(H=new fe(Z,!0).update(H).array());var ge=[],Xe=[];for(ue=0;ue<64;++ue){var ot=H[ue]||0;ge[ue]=92^ot,Xe[ue]=54^ot}fe.call(this,Z,X),this.update(Xe),this.oKeyPad=ge,this.inner=!0,this.sharedMemory=X}fe.prototype.update=function(H){if(!this.finalized){var Z,X=typeof H;if("string"!==X){if("object"!==X)throw new Error(n);if(null===H)throw new Error(n);if(E&&H.constructor===ArrayBuffer)H=new Uint8Array(H);else if(!(Array.isArray(H)||E&&ArrayBuffer.isView(H)))throw new Error(n);Z=!0}for(var ue,be,Me=0,Q=H.length,ne=this.blocks;Me<Q;){if(this.hashed&&(this.hashed=!1,ne[0]=this.block,this.block=ne[16]=ne[1]=ne[2]=ne[3]=ne[4]=ne[5]=ne[6]=ne[7]=ne[8]=ne[9]=ne[10]=ne[11]=ne[12]=ne[13]=ne[14]=ne[15]=0),Z)for(be=this.start;Me<Q&&be<64;++Me)ne[be>>>2]|=H[Me]<<l[3&be++];else for(be=this.start;Me<Q&&be<64;++Me)(ue=H.charCodeAt(Me))<128?ne[be>>>2]|=ue<<l[3&be++]:ue<2048?(ne[be>>>2]|=(192|ue>>>6)<<l[3&be++],ne[be>>>2]|=(128|63&ue)<<l[3&be++]):ue<55296||ue>=57344?(ne[be>>>2]|=(224|ue>>>12)<<l[3&be++],ne[be>>>2]|=(128|ue>>>6&63)<<l[3&be++],ne[be>>>2]|=(128|63&ue)<<l[3&be++]):(ue=65536+((1023&ue)<<10|1023&H.charCodeAt(++Me)),ne[be>>>2]|=(240|ue>>>18)<<l[3&be++],ne[be>>>2]|=(128|ue>>>12&63)<<l[3&be++],ne[be>>>2]|=(128|ue>>>6&63)<<l[3&be++],ne[be>>>2]|=(128|63&ue)<<l[3&be++]);this.lastByteIndex=be,this.bytes+=be-this.start,be>=64?(this.block=ne[16],this.start=be-64,this.hash(),this.hashed=!0):this.start=be}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},fe.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var H=this.blocks,Z=this.lastByteIndex;H[16]=this.block,H[Z>>>2]|=S[3&Z],this.block=H[16],Z>=56&&(this.hashed||this.hash(),H[0]=this.block,H[16]=H[1]=H[2]=H[3]=H[4]=H[5]=H[6]=H[7]=H[8]=H[9]=H[10]=H[11]=H[12]=H[13]=H[14]=H[15]=0),H[14]=this.hBytes<<3|this.bytes>>>29,H[15]=this.bytes<<3,this.hash()}},fe.prototype.hash=function(){var ge,xe,ee,W,Pe,le,H=this.h0,Z=this.h1,X=this.h2,ue=this.h3,Me=this.h4,be=this.h5,Q=this.h6,ne=this.h7,Ge=this.blocks;for(ge=16;ge<64;++ge)Ge[ge]=Ge[ge-16]+(((xe=Ge[ge-15])>>>7|xe<<25)^(xe>>>18|xe<<14)^xe>>>3)+Ge[ge-7]+(((xe=Ge[ge-2])>>>17|xe<<15)^(xe>>>19|xe<<13)^xe>>>10)|0;for(le=Z&X,ge=0;ge<64;ge+=4)this.first?(this.is224?(ee=300032,ne=(xe=Ge[0]-1413257819)-150054599|0,ue=xe+24177077|0):(ee=704751109,ne=(xe=Ge[0]-210244248)-1521486534|0,ue=xe+143694565|0),this.first=!1):(ne=ue+(xe=ne+((Me>>>6|Me<<26)^(Me>>>11|Me<<21)^(Me>>>25|Me<<7))+(Me&be^~Me&Q)+s[ge]+Ge[ge])|0,ue=xe+(((H>>>2|H<<30)^(H>>>13|H<<19)^(H>>>22|H<<10))+((ee=H&Z)^H&X^le))|0),Q=X+(xe=Q+((ne>>>6|ne<<26)^(ne>>>11|ne<<21)^(ne>>>25|ne<<7))+(ne&Me^~ne&be)+s[ge+1]+Ge[ge+1])|0,X=xe+(((ue>>>2|ue<<30)^(ue>>>13|ue<<19)^(ue>>>22|ue<<10))+((W=ue&H)^ue&Z^ee))|0,be=Z+(xe=be+((Q>>>6|Q<<26)^(Q>>>11|Q<<21)^(Q>>>25|Q<<7))+(Q&ne^~Q&Me)+s[ge+2]+Ge[ge+2])|0,Z=xe+(((X>>>2|X<<30)^(X>>>13|X<<19)^(X>>>22|X<<10))+((Pe=X&ue)^X&H^W))|0,Me=H+(xe=Me+((be>>>6|be<<26)^(be>>>11|be<<21)^(be>>>25|be<<7))+(be&Q^~be&ne)+s[ge+3]+Ge[ge+3])|0,H=xe+(((Z>>>2|Z<<30)^(Z>>>13|Z<<19)^(Z>>>22|Z<<10))+((le=Z&X)^Z&ue^Pe))|0,this.chromeBugWorkAround=!0;this.h0=this.h0+H|0,this.h1=this.h1+Z|0,this.h2=this.h2+X|0,this.h3=this.h3+ue|0,this.h4=this.h4+Me|0,this.h5=this.h5+be|0,this.h6=this.h6+Q|0,this.h7=this.h7+ne|0},fe.prototype.toString=fe.prototype.hex=function(){this.finalize();var H=this.h0,Z=this.h1,X=this.h2,ue=this.h3,Me=this.h4,be=this.h5,Q=this.h6,ne=this.h7,Ge=y[H>>>28&15]+y[H>>>24&15]+y[H>>>20&15]+y[H>>>16&15]+y[H>>>12&15]+y[H>>>8&15]+y[H>>>4&15]+y[15&H]+y[Z>>>28&15]+y[Z>>>24&15]+y[Z>>>20&15]+y[Z>>>16&15]+y[Z>>>12&15]+y[Z>>>8&15]+y[Z>>>4&15]+y[15&Z]+y[X>>>28&15]+y[X>>>24&15]+y[X>>>20&15]+y[X>>>16&15]+y[X>>>12&15]+y[X>>>8&15]+y[X>>>4&15]+y[15&X]+y[ue>>>28&15]+y[ue>>>24&15]+y[ue>>>20&15]+y[ue>>>16&15]+y[ue>>>12&15]+y[ue>>>8&15]+y[ue>>>4&15]+y[15&ue]+y[Me>>>28&15]+y[Me>>>24&15]+y[Me>>>20&15]+y[Me>>>16&15]+y[Me>>>12&15]+y[Me>>>8&15]+y[Me>>>4&15]+y[15&Me]+y[be>>>28&15]+y[be>>>24&15]+y[be>>>20&15]+y[be>>>16&15]+y[be>>>12&15]+y[be>>>8&15]+y[be>>>4&15]+y[15&be]+y[Q>>>28&15]+y[Q>>>24&15]+y[Q>>>20&15]+y[Q>>>16&15]+y[Q>>>12&15]+y[Q>>>8&15]+y[Q>>>4&15]+y[15&Q];return this.is224||(Ge+=y[ne>>>28&15]+y[ne>>>24&15]+y[ne>>>20&15]+y[ne>>>16&15]+y[ne>>>12&15]+y[ne>>>8&15]+y[ne>>>4&15]+y[15&ne]),Ge},fe.prototype.array=fe.prototype.digest=function(){this.finalize();var H=this.h0,Z=this.h1,X=this.h2,ue=this.h3,Me=this.h4,be=this.h5,Q=this.h6,ne=this.h7,Ge=[H>>>24&255,H>>>16&255,H>>>8&255,255&H,Z>>>24&255,Z>>>16&255,Z>>>8&255,255&Z,X>>>24&255,X>>>16&255,X>>>8&255,255&X,ue>>>24&255,ue>>>16&255,ue>>>8&255,255&ue,Me>>>24&255,Me>>>16&255,Me>>>8&255,255&Me,be>>>24&255,be>>>16&255,be>>>8&255,255&be,Q>>>24&255,Q>>>16&255,Q>>>8&255,255&Q];return this.is224||Ge.push(ne>>>24&255,ne>>>16&255,ne>>>8&255,255&ne),Ge},fe.prototype.arrayBuffer=function(){this.finalize();var H=new ArrayBuffer(this.is224?28:32),Z=new DataView(H);return Z.setUint32(0,this.h0),Z.setUint32(4,this.h1),Z.setUint32(8,this.h2),Z.setUint32(12,this.h3),Z.setUint32(16,this.h4),Z.setUint32(20,this.h5),Z.setUint32(24,this.h6),this.is224||Z.setUint32(28,this.h7),H},(te.prototype=new fe).finalize=function(){if(fe.prototype.finalize.call(this),this.inner){this.inner=!1;var H=this.array();fe.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(H),fe.prototype.finalize.call(this)}};var ce=R();ce.sha256=ce,ce.sha224=R(!0),ce.sha256.hmac=j(),ce.sha224.hmac=j(!0),M?je.exports=ce:(h.sha256=ce.sha256,h.sha224=ce.sha224,T&&void 0!==(r=function(){return ce}.call(ce,c,ce,je))&&(je.exports=r))}()},58007:(je,z)=>{var _,D,B,re,he,Se,we,tt,rt,Ot,Ke,L,r={userAgent:!1},n={},f=f||(_=Math,B=(D={}).lib={},re=B.Base=function(){function Ye(){}return{extend:function(vt){Ye.prototype=this;var Be=new Ye;return vt&&Be.mixIn(vt),Be.hasOwnProperty("init")||(Be.init=function(){Be.$super.init.apply(this,arguments)}),Be.init.prototype=Be,Be.$super=this,Be},create:function(){var vt=this.extend();return vt.init.apply(vt,arguments),vt},init:function(){},mixIn:function(vt){for(var Be in vt)vt.hasOwnProperty(Be)&&(this[Be]=vt[Be]);vt.hasOwnProperty("toString")&&(this.toString=vt.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),he=B.WordArray=re.extend({init:function(Ye,vt){Ye=this.words=Ye||[],this.sigBytes=null!=vt?vt:4*Ye.length},toString:function(Ye){return(Ye||we).stringify(this)},concat:function(Ye){var vt=this.words,Be=Ye.words,_t=this.sigBytes,pt=Ye.sigBytes;if(this.clamp(),_t%4)for(var $t=0;$t<pt;$t++)vt[_t+$t>>>2]|=(Be[$t>>>2]>>>24-$t%4*8&255)<<24-(_t+$t)%4*8;else for($t=0;$t<pt;$t+=4)vt[_t+$t>>>2]=Be[$t>>>2];return this.sigBytes+=pt,this},clamp:function(){var Ye=this.words,vt=this.sigBytes;Ye[vt>>>2]&=4294967295<<32-vt%4*8,Ye.length=_.ceil(vt/4)},clone:function(){var Ye=re.clone.call(this);return Ye.words=this.words.slice(0),Ye},random:function(Ye){for(var vt=[],Be=0;Be<Ye;Be+=4)vt.push(4294967296*_.random()|0);return new he.init(vt,Ye)}}),Se=D.enc={},we=Se.Hex={stringify:function(Ye){for(var vt=Ye.words,Be=Ye.sigBytes,_t=[],pt=0;pt<Be;pt++){var $t=vt[pt>>>2]>>>24-pt%4*8&255;_t.push(($t>>>4).toString(16)),_t.push((15&$t).toString(16))}return _t.join("")},parse:function(Ye){for(var vt=Ye.length,Be=[],_t=0;_t<vt;_t+=2)Be[_t>>>3]|=parseInt(Ye.substr(_t,2),16)<<24-_t%8*4;return new he.init(Be,vt/2)}},tt=Se.Latin1={stringify:function(Ye){for(var vt=Ye.words,Be=Ye.sigBytes,_t=[],pt=0;pt<Be;pt++)_t.push(String.fromCharCode(vt[pt>>>2]>>>24-pt%4*8&255));return _t.join("")},parse:function(Ye){for(var vt=Ye.length,Be=[],_t=0;_t<vt;_t++)Be[_t>>>2]|=(255&Ye.charCodeAt(_t))<<24-_t%4*8;return new he.init(Be,vt)}},rt=Se.Utf8={stringify:function(Ye){try{return decodeURIComponent(escape(tt.stringify(Ye)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(Ye){return tt.parse(unescape(encodeURIComponent(Ye)))}},Ot=B.BufferedBlockAlgorithm=re.extend({reset:function(){this._data=new he.init,this._nDataBytes=0},_append:function(Ye){"string"==typeof Ye&&(Ye=rt.parse(Ye)),this._data.concat(Ye),this._nDataBytes+=Ye.sigBytes},_process:function(Ye){var vt=this._data,Be=vt.words,_t=vt.sigBytes,pt=this.blockSize,hn=_t/(4*pt),mn=(hn=Ye?_.ceil(hn):_.max((0|hn)-this._minBufferSize,0))*pt,yn=_.min(4*mn,_t);if(mn){for(var ci=0;ci<mn;ci+=pt)this._doProcessBlock(Be,ci);var yi=Be.splice(0,mn);vt.sigBytes-=yn}return new he.init(yi,yn)},clone:function(){var Ye=re.clone.call(this);return Ye._data=this._data.clone(),Ye},_minBufferSize:0}),B.Hasher=Ot.extend({cfg:re.extend(),init:function(Ye){this.cfg=this.cfg.extend(Ye),this.reset()},reset:function(){Ot.reset.call(this),this._doReset()},update:function(Ye){return this._append(Ye),this._process(),this},finalize:function(Ye){return Ye&&this._append(Ye),this._doFinalize()},blockSize:16,_createHelper:function(Ye){return function(vt,Be){return new Ye.init(Be).finalize(vt)}},_createHmacHelper:function(Ye){return function(vt,Be){return new Ke.HMAC.init(Ye,Be).finalize(vt)}}}),Ke=D.algo={},D);(function(_){var re,L=(re=f).lib,D=L.Base,B=L.WordArray;(re=re.x64={}).Word=D.extend({init:function(he,Se){this.high=he,this.low=Se}}),re.WordArray=D.extend({init:function(he,Se){he=this.words=he||[],this.sigBytes=null!=Se?Se:8*he.length},toX32:function(){for(var he=this.words,Se=he.length,we=[],tt=0;tt<Se;tt++){var rt=he[tt];we.push(rt.high),we.push(rt.low)}return B.create(we,this.sigBytes)},clone:function(){for(var he=D.clone.call(this),Se=he.words=this.words.slice(0),we=Se.length,tt=0;tt<we;tt++)Se[tt]=Se[tt].clone();return he}})})(),f.lib.Cipher||function(_){var L=(Ye=f).lib,D=L.Base,B=L.WordArray,re=L.BufferedBlockAlgorithm,he=Ye.enc.Base64,Se=Ye.algo.EvpKDF,we=L.Cipher=re.extend({cfg:D.extend(),createEncryptor:function(Be,_t){return this.create(this._ENC_XFORM_MODE,Be,_t)},createDecryptor:function(Be,_t){return this.create(this._DEC_XFORM_MODE,Be,_t)},init:function(Be,_t,pt){this.cfg=this.cfg.extend(pt),this._xformMode=Be,this._key=_t,this.reset()},reset:function(){re.reset.call(this),this._doReset()},process:function(Be){return this._append(Be),this._process()},finalize:function(Be){return Be&&this._append(Be),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(Be){return{encrypt:function(_t,pt,$t){return("string"==typeof pt?vt:Ke).encrypt(Be,_t,pt,$t)},decrypt:function(_t,pt,$t){return("string"==typeof pt?vt:Ke).decrypt(Be,_t,pt,$t)}}}});L.StreamCipher=we.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var At=Ye.mode={},tt=function(Be,_t,pt){var $t=this._iv;$t?this._iv=void 0:$t=this._prevBlock;for(var hn=0;hn<pt;hn++)Be[_t+hn]^=$t[hn]},rt=(L.BlockCipherMode=D.extend({createEncryptor:function(Be,_t){return this.Encryptor.create(Be,_t)},createDecryptor:function(Be,_t){return this.Decryptor.create(Be,_t)},init:function(Be,_t){this._cipher=Be,this._iv=_t}})).extend();rt.Encryptor=rt.extend({processBlock:function(Be,_t){var pt=this._cipher,$t=pt.blockSize;tt.call(this,Be,_t,$t),pt.encryptBlock(Be,_t),this._prevBlock=Be.slice(_t,_t+$t)}}),rt.Decryptor=rt.extend({processBlock:function(Be,_t){var pt=this._cipher,$t=pt.blockSize,hn=Be.slice(_t,_t+$t);pt.decryptBlock(Be,_t),tt.call(this,Be,_t,$t),this._prevBlock=hn}}),At=At.CBC=rt,rt=(Ye.pad={}).Pkcs7={pad:function(Be,_t){for(var pt,$t=(pt=(pt=4*_t)-Be.sigBytes%pt)<<24|pt<<16|pt<<8|pt,hn=[],mn=0;mn<pt;mn+=4)hn.push($t);pt=B.create(hn,pt),Be.concat(pt)},unpad:function(Be){Be.sigBytes-=255&Be.words[Be.sigBytes-1>>>2]}},L.BlockCipher=we.extend({cfg:we.cfg.extend({mode:At,padding:rt}),reset:function(){we.reset.call(this);var Be=(_t=this.cfg).iv,_t=_t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var pt=_t.createEncryptor;else pt=_t.createDecryptor,this._minBufferSize=1;this._mode=pt.call(_t,this,Be&&Be.words)},_doProcessBlock:function(Be,_t){this._mode.processBlock(Be,_t)},_doFinalize:function(){var Be=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){Be.pad(this._data,this.blockSize);var _t=this._process(!0)}else _t=this._process(!0),Be.unpad(_t);return _t},blockSize:4});var Ot=L.CipherParams=D.extend({init:function(Be){this.mixIn(Be)},toString:function(Be){return(Be||this.formatter).stringify(this)}}),Ke=(At=(Ye.format={}).OpenSSL={stringify:function(Be){var _t=Be.ciphertext;return((Be=Be.salt)?B.create([1398893684,1701076831]).concat(Be).concat(_t):_t).toString(he)},parse:function(Be){var _t=(Be=he.parse(Be)).words;if(1398893684==_t[0]&&1701076831==_t[1]){var pt=B.create(_t.slice(2,4));_t.splice(0,4),Be.sigBytes-=16}return Ot.create({ciphertext:Be,salt:pt})}},L.SerializableCipher=D.extend({cfg:D.extend({format:At}),encrypt:function(Be,_t,pt,$t){$t=this.cfg.extend($t);var hn=Be.createEncryptor(pt,$t);return _t=hn.finalize(_t),Ot.create({ciphertext:_t,key:pt,iv:(hn=hn.cfg).iv,algorithm:Be,mode:hn.mode,padding:hn.padding,blockSize:Be.blockSize,formatter:$t.format})},decrypt:function(Be,_t,pt,$t){return $t=this.cfg.extend($t),_t=this._parse(_t,$t.format),Be.createDecryptor(pt,$t).finalize(_t.ciphertext)},_parse:function(Be,_t){return"string"==typeof Be?_t.parse(Be,this):Be}})),Ye=(Ye.kdf={}).OpenSSL={execute:function(Be,_t,pt,$t){return $t||($t=B.random(8)),Be=Se.create({keySize:_t+pt}).compute(Be,$t),pt=B.create(Be.words.slice(_t),4*pt),Be.sigBytes=4*_t,Ot.create({key:Be,iv:pt,salt:$t})}},vt=L.PasswordBasedCipher=Ke.extend({cfg:Ke.cfg.extend({kdf:Ye}),encrypt:function(Be,_t,pt,$t){return pt=($t=this.cfg.extend($t)).kdf.execute(pt,Be.keySize,Be.ivSize),$t.iv=pt.iv,(Be=Ke.encrypt.call(this,Be,_t,pt.key,$t)).mixIn(pt),Be},decrypt:function(Be,_t,pt,$t){return $t=this.cfg.extend($t),_t=this._parse(_t,$t.format),pt=$t.kdf.execute(pt,Be.keySize,Be.ivSize,_t.salt),$t.iv=pt.iv,Ke.decrypt.call(this,Be,_t,pt.key,$t)}})}(),function(){for(var _=f,L=_.lib.BlockCipher,ci=_.algo,D=[],B=[],re=[],he=[],Se=[],we=[],tt=[],rt=[],Ot=[],At=[],Ke=[],Ye=0;256>Ye;Ye++)Ke[Ye]=128>Ye?Ye<<1:Ye<<1^283;var vt=0,Be=0;for(Ye=0;256>Ye;Ye++){var _t;D[vt]=_t=(_t=Be^Be<<1^Be<<2^Be<<3^Be<<4)>>>8^255&_t^99,B[_t]=vt;var pt=Ke[vt],$t=Ke[pt],hn=Ke[$t],mn=257*Ke[_t]^16843008*_t;re[vt]=mn<<24|mn>>>8,he[vt]=mn<<16|mn>>>16,Se[vt]=mn<<8|mn>>>24,we[vt]=mn,tt[_t]=(mn=16843009*hn^65537*$t^257*pt^16843008*vt)<<24|mn>>>8,rt[_t]=mn<<16|mn>>>16,Ot[_t]=mn<<8|mn>>>24,At[_t]=mn,vt?(vt=pt^Ke[Ke[Ke[hn^pt]]],Be^=Ke[Ke[Be]]):vt=Be=1}var yn=[0,1,2,4,8,16,32,64,128,27,54];ci=ci.AES=L.extend({_doReset:function(){for(var yi=(Rt=this._key).words,Bt=Rt.sigBytes/4,Rt=4*((this._nRounds=Bt+6)+1),fn=this._keySchedule=[],An=0;An<Rt;An++)if(An<Bt)fn[An]=yi[An];else{var Nn=fn[An-1];An%Bt?6<Bt&&An%Bt==4&&(Nn=D[Nn>>>24]<<24|D[Nn>>>16&255]<<16|D[Nn>>>8&255]<<8|D[255&Nn]):(Nn=D[(Nn=Nn<<8|Nn>>>24)>>>24]<<24|D[Nn>>>16&255]<<16|D[Nn>>>8&255]<<8|D[255&Nn],Nn^=yn[An/Bt|0]<<24),fn[An]=fn[An-Bt]^Nn}for(yi=this._invKeySchedule=[],Bt=0;Bt<Rt;Bt++)An=Rt-Bt,Nn=Bt%4?fn[An]:fn[An-4],yi[Bt]=4>Bt||4>=An?Nn:tt[D[Nn>>>24]]^rt[D[Nn>>>16&255]]^Ot[D[Nn>>>8&255]]^At[D[255&Nn]]},encryptBlock:function(yi,Bt){this._doCryptBlock(yi,Bt,this._keySchedule,re,he,Se,we,D)},decryptBlock:function(yi,Bt){var Rt=yi[Bt+1];yi[Bt+1]=yi[Bt+3],yi[Bt+3]=Rt,this._doCryptBlock(yi,Bt,this._invKeySchedule,tt,rt,Ot,At,B),Rt=yi[Bt+1],yi[Bt+1]=yi[Bt+3],yi[Bt+3]=Rt},_doCryptBlock:function(yi,Bt,Rt,fn,An,Nn,Rn,Hn){for(var Xn=this._nRounds,mr=yi[Bt]^Rt[0],Yr=yi[Bt+1]^Rt[1],jo=yi[Bt+2]^Rt[2],Do=yi[Bt+3]^Rt[3],ai=4,Ni=1;Ni<Xn;Ni++){var Zr=fn[mr>>>24]^An[Yr>>>16&255]^Nn[jo>>>8&255]^Rn[255&Do]^Rt[ai++],en=fn[Yr>>>24]^An[jo>>>16&255]^Nn[Do>>>8&255]^Rn[255&mr]^Rt[ai++],Ir=fn[jo>>>24]^An[Do>>>16&255]^Nn[mr>>>8&255]^Rn[255&Yr]^Rt[ai++];Do=fn[Do>>>24]^An[mr>>>16&255]^Nn[Yr>>>8&255]^Rn[255&jo]^Rt[ai++],mr=Zr,Yr=en,jo=Ir}Zr=(Hn[mr>>>24]<<24|Hn[Yr>>>16&255]<<16|Hn[jo>>>8&255]<<8|Hn[255&Do])^Rt[ai++],en=(Hn[Yr>>>24]<<24|Hn[jo>>>16&255]<<16|Hn[Do>>>8&255]<<8|Hn[255&mr])^Rt[ai++],Ir=(Hn[jo>>>24]<<24|Hn[Do>>>16&255]<<16|Hn[mr>>>8&255]<<8|Hn[255&Yr])^Rt[ai++],Do=(Hn[Do>>>24]<<24|Hn[mr>>>16&255]<<16|Hn[Yr>>>8&255]<<8|Hn[255&jo])^Rt[ai++],yi[Bt]=Zr,yi[Bt+1]=en,yi[Bt+2]=Ir,yi[Bt+3]=Do},keySize:8}),_.AES=L._createHelper(ci)}(),function(){function _(Ke,Ye){var vt=(this._lBlock>>>Ke^this._rBlock)&Ye;this._rBlock^=vt,this._lBlock^=vt<<Ke}function L(Ke,Ye){var vt=(this._rBlock>>>Ke^this._lBlock)&Ye;this._lBlock^=vt,this._rBlock^=vt<<Ke}var re,D=f,B=(re=D.lib).WordArray,he=D.algo,Se=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],we=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],tt=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],rt=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],Ot=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],At=he.DES=(re=re.BlockCipher).extend({_doReset:function(){for(var Ke=this._key.words,Ye=[],vt=0;56>vt;vt++){var Be=Se[vt]-1;Ye[vt]=Ke[Be>>>5]>>>31-Be%32&1}for(Ke=this._subKeys=[],Be=0;16>Be;Be++){var _t=Ke[Be]=[],pt=tt[Be];for(vt=0;24>vt;vt++)_t[vt/6|0]|=Ye[(we[vt]-1+pt)%28]<<31-vt%6,_t[4+(vt/6|0)]|=Ye[28+(we[vt+24]-1+pt)%28]<<31-vt%6;for(_t[0]=_t[0]<<1|_t[0]>>>31,vt=1;7>vt;vt++)_t[vt]>>>=4*(vt-1)+3;_t[7]=_t[7]<<5|_t[7]>>>27}for(Ye=this._invSubKeys=[],vt=0;16>vt;vt++)Ye[vt]=Ke[15-vt]},encryptBlock:function(Ke,Ye){this._doCryptBlock(Ke,Ye,this._subKeys)},decryptBlock:function(Ke,Ye){this._doCryptBlock(Ke,Ye,this._invSubKeys)},_doCryptBlock:function(Ke,Ye,vt){this._lBlock=Ke[Ye],this._rBlock=Ke[Ye+1],_.call(this,4,252645135),_.call(this,16,65535),L.call(this,2,858993459),L.call(this,8,16711935),_.call(this,1,1431655765);for(var Be=0;16>Be;Be++){for(var _t=vt[Be],pt=this._lBlock,$t=this._rBlock,hn=0,mn=0;8>mn;mn++)hn|=rt[mn][(($t^_t[mn])&Ot[mn])>>>0];this._lBlock=$t,this._rBlock=pt^hn}vt=this._lBlock,this._lBlock=this._rBlock,this._rBlock=vt,_.call(this,1,1431655765),L.call(this,8,16711935),L.call(this,2,858993459),_.call(this,16,65535),_.call(this,4,252645135),Ke[Ye]=this._lBlock,Ke[Ye+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});D.DES=re._createHelper(At),he=he.TripleDES=re.extend({_doReset:function(){var Ke=this._key.words;this._des1=At.createEncryptor(B.create(Ke.slice(0,2))),this._des2=At.createEncryptor(B.create(Ke.slice(2,4))),this._des3=At.createEncryptor(B.create(Ke.slice(4,6)))},encryptBlock:function(Ke,Ye){this._des1.encryptBlock(Ke,Ye),this._des2.decryptBlock(Ke,Ye),this._des3.encryptBlock(Ke,Ye)},decryptBlock:function(Ke,Ye){this._des3.decryptBlock(Ke,Ye),this._des2.encryptBlock(Ke,Ye),this._des1.decryptBlock(Ke,Ye)},keySize:6,ivSize:2,blockSize:2}),D.TripleDES=re._createHelper(he)}(),L=f.lib.WordArray,f.enc.Base64={stringify:function(D){var B=D.words,re=D.sigBytes,he=this._map;D.clamp(),D=[];for(var Se=0;Se<re;Se+=3)for(var we=(B[Se>>>2]>>>24-Se%4*8&255)<<16|(B[Se+1>>>2]>>>24-(Se+1)%4*8&255)<<8|B[Se+2>>>2]>>>24-(Se+2)%4*8&255,tt=0;4>tt&&Se+.75*tt<re;tt++)D.push(he.charAt(we>>>6*(3-tt)&63));if(B=he.charAt(64))for(;D.length%4;)D.push(B);return D.join("")},parse:function(D){var B=D.length,re=this._map;(he=re.charAt(64))&&-1!=(he=D.indexOf(he))&&(B=he);for(var he=[],Se=0,we=0;we<B;we++)if(we%4){var tt=re.indexOf(D.charAt(we-1))<<we%4*2,rt=re.indexOf(D.charAt(we))>>>6-we%4*2;he[Se>>>2]|=(tt|rt)<<24-Se%4*8,Se++}return L.create(he,Se)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(_){function L(At,Ke,Ye,vt,Be,_t,pt){return((At=At+(Ke&Ye|~Ke&vt)+Be+pt)<<_t|At>>>32-_t)+Ke}function D(At,Ke,Ye,vt,Be,_t,pt){return((At=At+(Ke&vt|Ye&~vt)+Be+pt)<<_t|At>>>32-_t)+Ke}function B(At,Ke,Ye,vt,Be,_t,pt){return((At=At+(Ke^Ye^vt)+Be+pt)<<_t|At>>>32-_t)+Ke}function re(At,Ke,Ye,vt,Be,_t,pt){return((At=At+(Ye^(Ke|~vt))+Be+pt)<<_t|At>>>32-_t)+Ke}for(var he=f,Se=(tt=he.lib).WordArray,we=tt.Hasher,tt=he.algo,rt=[],Ot=0;64>Ot;Ot++)rt[Ot]=4294967296*_.abs(_.sin(Ot+1))|0;tt=tt.MD5=we.extend({_doReset:function(){this._hash=new Se.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(At,Ke){for(var Ye=0;16>Ye;Ye++)At[vt=Ke+Ye]=16711935&((Be=At[vt])<<8|Be>>>24)|4278255360&(Be<<24|Be>>>8);var vt,Be=At[Ke+1],_t=At[Ke+2],pt=At[Ke+3],$t=At[Ke+4],hn=At[Ke+5],mn=At[Ke+6],yn=At[Ke+7],ci=At[Ke+8],yi=At[Ke+9],Bt=At[Ke+10],Rt=At[Ke+11],fn=At[Ke+12],An=At[Ke+13],Nn=At[Ke+14],Rn=At[Ke+15],Hn=L(Hn=(Ye=this._hash.words)[0],Ni=Ye[1],ai=Ye[2],Xn=Ye[3],vt=At[Ke+0],7,rt[0]),Xn=L(Xn,Hn,Ni,ai,Be,12,rt[1]),ai=L(ai,Xn,Hn,Ni,_t,17,rt[2]),Ni=L(Ni,ai,Xn,Hn,pt,22,rt[3]);Hn=L(Hn,Ni,ai,Xn,$t,7,rt[4]),Xn=L(Xn,Hn,Ni,ai,hn,12,rt[5]),ai=L(ai,Xn,Hn,Ni,mn,17,rt[6]),Ni=L(Ni,ai,Xn,Hn,yn,22,rt[7]),Hn=L(Hn,Ni,ai,Xn,ci,7,rt[8]),Xn=L(Xn,Hn,Ni,ai,yi,12,rt[9]),ai=L(ai,Xn,Hn,Ni,Bt,17,rt[10]),Ni=L(Ni,ai,Xn,Hn,Rt,22,rt[11]),Hn=L(Hn,Ni,ai,Xn,fn,7,rt[12]),Xn=L(Xn,Hn,Ni,ai,An,12,rt[13]),ai=L(ai,Xn,Hn,Ni,Nn,17,rt[14]),Hn=D(Hn,Ni=L(Ni,ai,Xn,Hn,Rn,22,rt[15]),ai,Xn,Be,5,rt[16]),Xn=D(Xn,Hn,Ni,ai,mn,9,rt[17]),ai=D(ai,Xn,Hn,Ni,Rt,14,rt[18]),Ni=D(Ni,ai,Xn,Hn,vt,20,rt[19]),Hn=D(Hn,Ni,ai,Xn,hn,5,rt[20]),Xn=D(Xn,Hn,Ni,ai,Bt,9,rt[21]),ai=D(ai,Xn,Hn,Ni,Rn,14,rt[22]),Ni=D(Ni,ai,Xn,Hn,$t,20,rt[23]),Hn=D(Hn,Ni,ai,Xn,yi,5,rt[24]),Xn=D(Xn,Hn,Ni,ai,Nn,9,rt[25]),ai=D(ai,Xn,Hn,Ni,pt,14,rt[26]),Ni=D(Ni,ai,Xn,Hn,ci,20,rt[27]),Hn=D(Hn,Ni,ai,Xn,An,5,rt[28]),Xn=D(Xn,Hn,Ni,ai,_t,9,rt[29]),ai=D(ai,Xn,Hn,Ni,yn,14,rt[30]),Hn=B(Hn,Ni=D(Ni,ai,Xn,Hn,fn,20,rt[31]),ai,Xn,hn,4,rt[32]),Xn=B(Xn,Hn,Ni,ai,ci,11,rt[33]),ai=B(ai,Xn,Hn,Ni,Rt,16,rt[34]),Ni=B(Ni,ai,Xn,Hn,Nn,23,rt[35]),Hn=B(Hn,Ni,ai,Xn,Be,4,rt[36]),Xn=B(Xn,Hn,Ni,ai,$t,11,rt[37]),ai=B(ai,Xn,Hn,Ni,yn,16,rt[38]),Ni=B(Ni,ai,Xn,Hn,Bt,23,rt[39]),Hn=B(Hn,Ni,ai,Xn,An,4,rt[40]),Xn=B(Xn,Hn,Ni,ai,vt,11,rt[41]),ai=B(ai,Xn,Hn,Ni,pt,16,rt[42]),Ni=B(Ni,ai,Xn,Hn,mn,23,rt[43]),Hn=B(Hn,Ni,ai,Xn,yi,4,rt[44]),Xn=B(Xn,Hn,Ni,ai,fn,11,rt[45]),ai=B(ai,Xn,Hn,Ni,Rn,16,rt[46]),Hn=re(Hn,Ni=B(Ni,ai,Xn,Hn,_t,23,rt[47]),ai,Xn,vt,6,rt[48]),Xn=re(Xn,Hn,Ni,ai,yn,10,rt[49]),ai=re(ai,Xn,Hn,Ni,Nn,15,rt[50]),Ni=re(Ni,ai,Xn,Hn,hn,21,rt[51]),Hn=re(Hn,Ni,ai,Xn,fn,6,rt[52]),Xn=re(Xn,Hn,Ni,ai,pt,10,rt[53]),ai=re(ai,Xn,Hn,Ni,Bt,15,rt[54]),Ni=re(Ni,ai,Xn,Hn,Be,21,rt[55]),Hn=re(Hn,Ni,ai,Xn,ci,6,rt[56]),Xn=re(Xn,Hn,Ni,ai,Rn,10,rt[57]),ai=re(ai,Xn,Hn,Ni,mn,15,rt[58]),Ni=re(Ni,ai,Xn,Hn,An,21,rt[59]),Hn=re(Hn,Ni,ai,Xn,$t,6,rt[60]),Xn=re(Xn,Hn,Ni,ai,Rt,10,rt[61]),ai=re(ai,Xn,Hn,Ni,_t,15,rt[62]),Ni=re(Ni,ai,Xn,Hn,yi,21,rt[63]),Ye[0]=Ye[0]+Hn|0,Ye[1]=Ye[1]+Ni|0,Ye[2]=Ye[2]+ai|0,Ye[3]=Ye[3]+Xn|0},_doFinalize:function(){var At=this._data,Ke=At.words,Ye=8*this._nDataBytes,vt=8*At.sigBytes;Ke[vt>>>5]|=128<<24-vt%32;var Be=_.floor(Ye/4294967296);for(Ke[15+(vt+64>>>9<<4)]=16711935&(Be<<8|Be>>>24)|4278255360&(Be<<24|Be>>>8),Ke[14+(vt+64>>>9<<4)]=16711935&(Ye<<8|Ye>>>24)|4278255360&(Ye<<24|Ye>>>8),At.sigBytes=4*(Ke.length+1),this._process(),Ke=(At=this._hash).words,Ye=0;4>Ye;Ye++)Ke[Ye]=16711935&((vt=Ke[Ye])<<8|vt>>>24)|4278255360&(vt<<24|vt>>>8);return At},clone:function(){var At=we.clone.call(this);return At._hash=this._hash.clone(),At}}),he.MD5=we._createHelper(tt),he.HmacMD5=we._createHmacHelper(tt)}(Math),function(){var _=f,L=(re=_.lib).WordArray,D=re.Hasher,B=[],re=_.algo.SHA1=D.extend({_doReset:function(){this._hash=new L.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(he,Se){for(var we=this._hash.words,tt=we[0],rt=we[1],Ot=we[2],At=we[3],Ke=we[4],Ye=0;80>Ye;Ye++){if(16>Ye)B[Ye]=0|he[Se+Ye];else{var vt=B[Ye-3]^B[Ye-8]^B[Ye-14]^B[Ye-16];B[Ye]=vt<<1|vt>>>31}vt=(tt<<5|tt>>>27)+Ke+B[Ye],vt=20>Ye?vt+(1518500249+(rt&Ot|~rt&At)):40>Ye?vt+(1859775393+(rt^Ot^At)):60>Ye?vt+((rt&Ot|rt&At|Ot&At)-1894007588):vt+((rt^Ot^At)-899497514),Ke=At,At=Ot,Ot=rt<<30|rt>>>2,rt=tt,tt=vt}we[0]=we[0]+tt|0,we[1]=we[1]+rt|0,we[2]=we[2]+Ot|0,we[3]=we[3]+At|0,we[4]=we[4]+Ke|0},_doFinalize:function(){var he=this._data,Se=he.words,we=8*this._nDataBytes,tt=8*he.sigBytes;return Se[tt>>>5]|=128<<24-tt%32,Se[14+(tt+64>>>9<<4)]=Math.floor(we/4294967296),Se[15+(tt+64>>>9<<4)]=we,he.sigBytes=4*Se.length,this._process(),this._hash},clone:function(){var he=D.clone.call(this);return he._hash=this._hash.clone(),he}});_.SHA1=D._createHelper(re),_.HmacSHA1=D._createHmacHelper(re)}(),function(_){for(var L=f,D=(Ye=L.lib).WordArray,B=Ye.Hasher,Ye=L.algo,re=[],he=[],Se=function(Be){return 4294967296*(Be-(0|Be))|0},we=2,tt=0;64>tt;){var rt;e:{for(var Ot=_.sqrt(rt=we),At=2;At<=Ot;At++)if(!(rt%At)){rt=!1;break e}rt=!0}rt&&(8>tt&&(re[tt]=Se(_.pow(we,.5))),he[tt]=Se(_.pow(we,1/3)),tt++),we++}var Ke=[];Ye=Ye.SHA256=B.extend({_doReset:function(){this._hash=new D.init(re.slice(0))},_doProcessBlock:function(vt,Be){for(var _t=this._hash.words,pt=_t[0],$t=_t[1],hn=_t[2],mn=_t[3],yn=_t[4],ci=_t[5],yi=_t[6],Bt=_t[7],Rt=0;64>Rt;Rt++){if(16>Rt)Ke[Rt]=0|vt[Be+Rt];else{var fn=Ke[Rt-15],An=Ke[Rt-2];Ke[Rt]=((fn<<25|fn>>>7)^(fn<<14|fn>>>18)^fn>>>3)+Ke[Rt-7]+((An<<15|An>>>17)^(An<<13|An>>>19)^An>>>10)+Ke[Rt-16]}fn=Bt+((yn<<26|yn>>>6)^(yn<<21|yn>>>11)^(yn<<7|yn>>>25))+(yn&ci^~yn&yi)+he[Rt]+Ke[Rt],An=((pt<<30|pt>>>2)^(pt<<19|pt>>>13)^(pt<<10|pt>>>22))+(pt&$t^pt&hn^$t&hn),Bt=yi,yi=ci,ci=yn,yn=mn+fn|0,mn=hn,hn=$t,$t=pt,pt=fn+An|0}_t[0]=_t[0]+pt|0,_t[1]=_t[1]+$t|0,_t[2]=_t[2]+hn|0,_t[3]=_t[3]+mn|0,_t[4]=_t[4]+yn|0,_t[5]=_t[5]+ci|0,_t[6]=_t[6]+yi|0,_t[7]=_t[7]+Bt|0},_doFinalize:function(){var vt=this._data,Be=vt.words,_t=8*this._nDataBytes,pt=8*vt.sigBytes;return Be[pt>>>5]|=128<<24-pt%32,Be[14+(pt+64>>>9<<4)]=_.floor(_t/4294967296),Be[15+(pt+64>>>9<<4)]=_t,vt.sigBytes=4*Be.length,this._process(),this._hash},clone:function(){var vt=B.clone.call(this);return vt._hash=this._hash.clone(),vt}}),L.SHA256=B._createHelper(Ye),L.HmacSHA256=B._createHmacHelper(Ye)}(Math),function(){var _=f,L=_.lib.WordArray,D=(B=_.algo).SHA256,B=B.SHA224=D.extend({_doReset:function(){this._hash=new L.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var re=D._doFinalize.call(this);return re.sigBytes-=4,re}});_.SHA224=D._createHelper(B),_.HmacSHA224=D._createHmacHelper(B)}(),function(){function _(){return B.create.apply(B,arguments)}for(var L=f,D=L.lib.Hasher,B=(he=L.x64).Word,re=he.WordArray,he=L.algo,Se=[_(1116352408,3609767458),_(1899447441,602891725),_(3049323471,3964484399),_(3921009573,2173295548),_(961987163,4081628472),_(1508970993,3053834265),_(2453635748,2937671579),_(2870763221,3664609560),_(3624381080,2734883394),_(310598401,1164996542),_(607225278,1323610764),_(1426881987,3590304994),_(1925078388,4068182383),_(2162078206,991336113),_(2614888103,633803317),_(3248222580,3479774868),_(3835390401,2666613458),_(4022224774,944711139),_(264347078,2341262773),_(604807628,2007800933),_(770255983,1495990901),_(1249150122,1856431235),_(1555081692,3175218132),_(1996064986,2198950837),_(2554220882,3999719339),_(2821834349,766784016),_(2952996808,2566594879),_(3210313671,3203337956),_(3336571891,1034457026),_(3584528711,2466948901),_(113926993,3758326383),_(338241895,168717936),_(666307205,1188179964),_(773529912,1546045734),_(1294757372,1522805485),_(1396182291,2643833823),_(1695183700,2343527390),_(1986661051,1014477480),_(2177026350,1206759142),_(2456956037,344077627),_(2730485921,1290863460),_(2820302411,3158454273),_(3259730800,3505952657),_(3345764771,106217008),_(3516065817,3606008344),_(3600352804,1432725776),_(4094571909,1467031594),_(275423344,851169720),_(430227734,3100823752),_(506948616,1363258195),_(659060556,3750685593),_(883997877,3785050280),_(958139571,3318307427),_(1322822218,3812723403),_(1537002063,2003034995),_(1747873779,3602036899),_(1955562222,1575990012),_(2024104815,1125592928),_(2227730452,2716904306),_(2361852424,442776044),_(2428436474,593698344),_(2756734187,3733110249),_(3204031479,2999351573),_(3329325298,3815920427),_(3391569614,3928383900),_(3515267271,566280711),_(3940187606,3454069534),_(4118630271,4000239992),_(116418474,1914138554),_(174292421,2731055270),_(289380356,3203993006),_(460393269,320620315),_(685471733,587496836),_(852142971,1086792851),_(1017036298,365543100),_(1126000580,2618297676),_(1288033470,3409855158),_(1501505948,4234509866),_(1607167915,987167468),_(1816402316,1246189591)],we=[],tt=0;80>tt;tt++)we[tt]=_();he=he.SHA512=D.extend({_doReset:function(){this._hash=new re.init([new B.init(1779033703,4089235720),new B.init(3144134277,2227873595),new B.init(1013904242,4271175723),new B.init(2773480762,1595750129),new B.init(1359893119,2917565137),new B.init(2600822924,725511199),new B.init(528734635,4215389547),new B.init(1541459225,327033209)])},_doProcessBlock:function(rt,Ot){for(var $t,At=($t=this._hash.words)[0],Ke=$t[1],Ye=$t[2],vt=$t[3],Be=$t[4],_t=$t[5],pt=$t[6],hn=At.high,mn=At.low,yn=Ke.high,ci=Ke.low,yi=Ye.high,Bt=Ye.low,Rt=vt.high,fn=vt.low,An=Be.high,Nn=Be.low,Rn=_t.high,Hn=_t.low,Xn=pt.high,ai=pt.low,Ni=($t=$t[7]).high,Zr=$t.low,en=hn,Ir=mn,Do=yn,mr=ci,Yr=yi,jo=Bt,ia=Rt,aa=fn,gs=An,$r=Nn,ma=Rn,oo=Hn,Eo=Xn,Es=ai,no=Ni,va=Zr,Yo=0;80>Yo;Yo++){var Ze=we[Yo];if(16>Yo)var _a=Ze.high=0|rt[Ot+2*Yo],Je=Ze.low=0|rt[Ot+2*Yo+1];else{_a=((Je=(_a=we[Yo-15]).high)>>>1|(xl=_a.low)<<31)^(Je>>>8|xl<<24)^Je>>>7;var xl=(xl>>>1|Je<<31)^(xl>>>8|Je<<24)^(xl>>>7|Je<<25),ol=((Je=(ol=we[Yo-2]).high)>>>19|(Te=ol.low)<<13)^(Je<<3|Te>>>29)^Je>>>6,Te=(Te>>>19|Je<<13)^(Te<<3|Je>>>29)^(Te>>>6|Je<<26);Ze.high=_a=(_a=(_a=_a+(fc=(Je=we[Yo-7]).high)+((Je=xl+Je.low)>>>0<xl>>>0?1:0))+ol+((Je+=Te)>>>0<Te>>>0?1:0))+(ze=(gc=we[Yo-16]).high)+((Je+=gc=gc.low)>>>0<gc>>>0?1:0),Ze.low=Je}var fc=gs&ma^~gs&Eo,gc=$r&oo^~$r&Es,Ul=(Ze=en&Do^en&Yr^Do&Yr,Ir&mr^Ir&jo^mr&jo),od=(Te=Se[Yo]).high,ml=Te.low,ze=no+((gs>>>14|$r<<18)^(gs>>>18|$r<<14)^(gs<<23|$r>>>9))+((Te=va+(($r>>>14|gs<<18)^($r>>>18|gs<<14)^($r<<23|gs>>>9)))>>>0<va>>>0?1:0);no=Eo,va=Es,Eo=ma,Es=oo,ma=gs,oo=$r,gs=ia+(ze=(ze=(ze=ze+fc+((Te+=gc)>>>0<gc>>>0?1:0))+od+((Te+=ml)>>>0<ml>>>0?1:0))+_a+((Te+=Je)>>>0<Je>>>0?1:0))+(($r=aa+Te|0)>>>0<aa>>>0?1:0)|0,ia=Yr,aa=jo,Yr=Do,jo=mr,Do=en,mr=Ir,en=ze+(Ze=(xl=(en>>>28|Ir<<4)^(en<<30|Ir>>>2)^(en<<25|Ir>>>7))+Ze+((Je=(ol=(Ir>>>28|en<<4)^(Ir<<30|en>>>2)^(Ir<<25|en>>>7))+Ul)>>>0<ol>>>0?1:0))+((Ir=Te+Je|0)>>>0<Te>>>0?1:0)|0}mn=At.low=mn+Ir,At.high=hn+en+(mn>>>0<Ir>>>0?1:0),ci=Ke.low=ci+mr,Ke.high=yn+Do+(ci>>>0<mr>>>0?1:0),Bt=Ye.low=Bt+jo,Ye.high=yi+Yr+(Bt>>>0<jo>>>0?1:0),fn=vt.low=fn+aa,vt.high=Rt+ia+(fn>>>0<aa>>>0?1:0),Nn=Be.low=Nn+$r,Be.high=An+gs+(Nn>>>0<$r>>>0?1:0),Hn=_t.low=Hn+oo,_t.high=Rn+ma+(Hn>>>0<oo>>>0?1:0),ai=pt.low=ai+Es,pt.high=Xn+Eo+(ai>>>0<Es>>>0?1:0),Zr=$t.low=Zr+va,$t.high=Ni+no+(Zr>>>0<va>>>0?1:0)},_doFinalize:function(){var rt=this._data,Ot=rt.words,At=8*this._nDataBytes,Ke=8*rt.sigBytes;return Ot[Ke>>>5]|=128<<24-Ke%32,Ot[30+(Ke+128>>>10<<5)]=Math.floor(At/4294967296),Ot[31+(Ke+128>>>10<<5)]=At,rt.sigBytes=4*Ot.length,this._process(),this._hash.toX32()},clone:function(){var rt=D.clone.call(this);return rt._hash=this._hash.clone(),rt},blockSize:32}),L.SHA512=D._createHelper(he),L.HmacSHA512=D._createHmacHelper(he)}(),function(){var _=f,L=(re=_.x64).Word,D=re.WordArray,B=(re=_.algo).SHA512,re=re.SHA384=B.extend({_doReset:function(){this._hash=new D.init([new L.init(3418070365,3238371032),new L.init(1654270250,914150663),new L.init(2438529370,812702999),new L.init(355462360,4144912697),new L.init(1731405415,4290775857),new L.init(2394180231,1750603025),new L.init(3675008525,1694076839),new L.init(1203062813,3204075428)])},_doFinalize:function(){var he=B._doFinalize.call(this);return he.sigBytes-=16,he}});_.SHA384=B._createHelper(re),_.HmacSHA384=B._createHmacHelper(re)}(),function(){var _=f,L=(rt=_.lib).WordArray,D=rt.Hasher,rt=_.algo,B=L.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),re=L.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),he=L.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),Se=L.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),we=L.create([0,1518500249,1859775393,2400959708,2840853838]),tt=L.create([1352829926,1548603684,1836072691,2053994217,0]);rt=rt.RIPEMD160=D.extend({_doReset:function(){this._hash=L.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(Ot,At){for(var Ke=0;16>Ke;Ke++)Ot[Ye=At+Ke]=16711935&((vt=Ot[Ye])<<8|vt>>>24)|4278255360&(vt<<24|vt>>>8);var Ye,mn,yn,ci,yi,Bt,Rt,fn,An,Nn,Rn,Hn,vt=we.words,Be=tt.words,_t=B.words,pt=re.words,$t=he.words,hn=Se.words;for(Rt=mn=(Ye=this._hash.words)[0],fn=yn=Ye[1],An=ci=Ye[2],Nn=yi=Ye[3],Rn=Bt=Ye[4],Ke=0;80>Ke;Ke+=1)Hn=mn+Ot[At+_t[Ke]]|0,Hn=16>Ke?Hn+((yn^ci^yi)+vt[0]):32>Ke?Hn+((yn&ci|~yn&yi)+vt[1]):48>Ke?Hn+(((yn|~ci)^yi)+vt[2]):64>Ke?Hn+((yn&yi|ci&~yi)+vt[3]):Hn+((yn^(ci|~yi))+vt[4]),Hn=(Hn=(Hn|=0)<<$t[Ke]|Hn>>>32-$t[Ke])+Bt|0,mn=Bt,Bt=yi,yi=ci<<10|ci>>>22,ci=yn,yn=Hn,Hn=Rt+Ot[At+pt[Ke]]|0,Hn=16>Ke?Hn+((fn^(An|~Nn))+Be[0]):32>Ke?Hn+((fn&Nn|An&~Nn)+Be[1]):48>Ke?Hn+(((fn|~An)^Nn)+Be[2]):64>Ke?Hn+((fn&An|~fn&Nn)+Be[3]):Hn+((fn^An^Nn)+Be[4]),Hn=(Hn=(Hn|=0)<<hn[Ke]|Hn>>>32-hn[Ke])+Rn|0,Rt=Rn,Rn=Nn,Nn=An<<10|An>>>22,An=fn,fn=Hn;Hn=Ye[1]+ci+Nn|0,Ye[1]=Ye[2]+yi+Rn|0,Ye[2]=Ye[3]+Bt+Rt|0,Ye[3]=Ye[4]+mn+fn|0,Ye[4]=Ye[0]+yn+An|0,Ye[0]=Hn},_doFinalize:function(){var Ot=this._data,At=Ot.words,Ke=8*this._nDataBytes,Ye=8*Ot.sigBytes;for(At[Ye>>>5]|=128<<24-Ye%32,At[14+(Ye+64>>>9<<4)]=16711935&(Ke<<8|Ke>>>24)|4278255360&(Ke<<24|Ke>>>8),Ot.sigBytes=4*(At.length+1),this._process(),At=(Ot=this._hash).words,Ke=0;5>Ke;Ke++)At[Ke]=16711935&((Ye=At[Ke])<<8|Ye>>>24)|4278255360&(Ye<<24|Ye>>>8);return Ot},clone:function(){var Ot=D.clone.call(this);return Ot._hash=this._hash.clone(),Ot}}),_.RIPEMD160=D._createHelper(rt),_.HmacRIPEMD160=D._createHmacHelper(rt)}(Math),function(){var L=f.enc.Utf8;f.algo.HMAC=f.lib.Base.extend({init:function(D,B){D=this._hasher=new D.init,"string"==typeof B&&(B=L.parse(B));var re=D.blockSize,he=4*re;B.sigBytes>he&&(B=D.finalize(B)),B.clamp();for(var Se=this._oKey=B.clone(),we=this._iKey=B.clone(),tt=Se.words,rt=we.words,Ot=0;Ot<re;Ot++)tt[Ot]^=1549556828,rt[Ot]^=909522486;Se.sigBytes=we.sigBytes=he,this.reset()},reset:function(){var D=this._hasher;D.reset(),D.update(this._iKey)},update:function(D){return this._hasher.update(D),this},finalize:function(D){var B=this._hasher;return D=B.finalize(D),B.reset(),B.finalize(this._oKey.clone().concat(D))}})}(),function(){var B,_=f,L=(B=_.lib).Base,D=B.WordArray,re=(B=_.algo).HMAC,he=B.PBKDF2=L.extend({cfg:L.extend({keySize:4,hasher:B.SHA1,iterations:1}),init:function(Se){this.cfg=this.cfg.extend(Se)},compute:function(Se,we){for(var tt=re.create((vt=this.cfg).hasher,Se),rt=D.create(),Ot=D.create([1]),At=rt.words,Ke=Ot.words,Ye=vt.keySize,vt=vt.iterations;At.length<Ye;){var Be=tt.update(we).finalize(Ot);tt.reset();for(var _t=Be.words,pt=_t.length,$t=Be,hn=1;hn<vt;hn++){$t=tt.finalize($t),tt.reset();for(var mn=$t.words,yn=0;yn<pt;yn++)_t[yn]^=mn[yn]}rt.concat(Be),Ke[0]++}return rt.sigBytes=4*Ye,rt}});_.PBKDF2=function(Se,we,tt){return he.create(tt).compute(Se,we)}}();var S,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M="=";function T(_){var L,D,B="";for(L=0;L+3<=_.length;L+=3)D=parseInt(_.substring(L,L+3),16),B+=A.charAt(D>>6)+A.charAt(63&D);if(L+1==_.length?(D=parseInt(_.substring(L,L+1),16),B+=A.charAt(D<<2)):L+2==_.length&&(D=parseInt(_.substring(L,L+2),16),B+=A.charAt(D>>2)+A.charAt((3&D)<<4)),M)for(;(3&B.length)>0;)B+=M;return B}function E(_){var D,re,he,L="",B=0;for(D=0;D<_.length&&_.charAt(D)!=M;++D)!((he=A.indexOf(_.charAt(D)))<0)&&(0==B?(L+=H(he>>2),re=3&he,B=1):1==B?(L+=H(re<<2|he>>4),re=15&he,B=2):2==B?(L+=H(re),L+=H(he>>2),re=3&he,B=3):(L+=H(re<<2|he>>4),L+=H(15&he),B=0));return 1==B&&(L+=H(re<<2)),L}function u(_,L,D){null!=_&&("number"==typeof _?this.fromNumber(_,L,D):this.fromString(_,null==L&&"string"!=typeof _?256:L))}function m(){return new u(null)}"Microsoft Internet Explorer"==r.appName?(u.prototype.am=function R(_,L,D,B,re,he){for(var Se=32767&L,we=L>>15;--he>=0;){var tt=32767&this[_],rt=this[_++]>>15,Ot=we*tt+rt*Se;re=((tt=Se*tt+((32767&Ot)<<15)+D[B]+(1073741823&re))>>>30)+(Ot>>>15)+we*rt+(re>>>30),D[B++]=1073741823&tt}return re},S=30):"Netscape"!=r.appName?(u.prototype.am=function I(_,L,D,B,re,he){for(;--he>=0;){var Se=L*this[_++]+D[B]+re;re=Math.floor(Se/67108864),D[B++]=67108863&Se}return re},S=26):(u.prototype.am=function O(_,L,D,B,re,he){for(var Se=16383&L,we=L>>14;--he>=0;){var tt=16383&this[_],rt=this[_++]>>14,Ot=we*tt+rt*Se;re=((tt=Se*tt+((16383&Ot)<<14)+D[B]+re)>>28)+(Ot>>14)+we*rt,D[B++]=268435455&tt}return re},S=28),u.prototype.DB=S,u.prototype.DM=(1<<S)-1,u.prototype.DV=1<<S,u.prototype.FV=Math.pow(2,52),u.prototype.F1=52-S,u.prototype.F2=2*S-52;var te,ce,j="0123456789abcdefghijklmnopqrstuvwxyz",fe=new Array;for(te=48,ce=0;ce<=9;++ce)fe[te++]=ce;for(te=97,ce=10;ce<36;++ce)fe[te++]=ce;for(te=65,ce=10;ce<36;++ce)fe[te++]=ce;function H(_){return j.charAt(_)}function Z(_,L){return fe[_.charCodeAt(L)]??-1}function Me(_){var L=m();return L.fromInt(_),L}function ot(_){var D,L=1;return 0!=(D=_>>>16)&&(_=D,L+=16),0!=(D=_>>8)&&(_=D,L+=8),0!=(D=_>>4)&&(_=D,L+=4),0!=(D=_>>2)&&(_=D,L+=2),0!=(D=_>>1)&&(_=D,L+=1),L}function Oe(_){this.m=_}function pe(_){this.m=_,this.mp=_.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<_.DB-15)-1,this.mt2=2*_.t}function it(_,L){return _&L}function Et(_,L){return _|L}function bt(_,L){return _^L}function wt(_,L){return _&~L}function Tn(_){if(0==_)return-1;var L=0;return 65535&_||(_>>=16,L+=16),255&_||(_>>=8,L+=8),15&_||(_>>=4,L+=4),3&_||(_>>=2,L+=2),1&_||++L,L}function Wn(_){for(var L=0;0!=_;)_&=_-1,++L;return L}function li(){}function er(_){return _}function Si(_){this.r2=m(),this.q3=m(),u.ONE.dlShiftTo(2*_.t,this.r2),this.mu=this.r2.divide(_),this.m=_}Oe.prototype.convert=function ye(_){return _.s<0||_.compareTo(this.m)>=0?_.mod(this.m):_},Oe.prototype.revert=function Ie(_){return _},Oe.prototype.reduce=function at(_){_.divRemTo(this.m,null,_)},Oe.prototype.mulTo=function K(_,L,D){_.multiplyTo(L,D),this.reduce(D)},Oe.prototype.sqrTo=function ve(_,L){_.squareTo(L),this.reduce(L)},pe.prototype.convert=function Qe(_){var L=m();return _.abs().dlShiftTo(this.m.t,L),L.divRemTo(this.m,null,L),_.s<0&&L.compareTo(u.ZERO)>0&&this.m.subTo(L,L),L},pe.prototype.revert=function zt(_){var L=m();return _.copyTo(L),this.reduce(L),L},pe.prototype.reduce=function Vt(_){for(;_.t<=this.mt2;)_[_.t++]=0;for(var L=0;L<this.m.t;++L){var D=32767&_[L],B=D*this.mpl+((D*this.mph+(_[L]>>15)*this.mpl&this.um)<<15)&_.DM;for(_[D=L+this.m.t]+=this.m.am(0,B,_,L,0,this.m.t);_[D]>=_.DV;)_[D]-=_.DV,_[++D]++}_.clamp(),_.drShiftTo(this.m.t,_),_.compareTo(this.m)>=0&&_.subTo(this.m,_)},pe.prototype.mulTo=function J(_,L,D){_.multiplyTo(L,D),this.reduce(D)},pe.prototype.sqrTo=function de(_,L){_.squareTo(L),this.reduce(L)},u.prototype.copyTo=function X(_){for(var L=this.t-1;L>=0;--L)_[L]=this[L];_.t=this.t,_.s=this.s},u.prototype.fromInt=function ue(_){this.t=1,this.s=_<0?-1:0,_>0?this[0]=_:_<-1?this[0]=_+this.DV:this.t=0},u.prototype.fromString=function be(_,L){var D;if(16==L)D=4;else if(8==L)D=3;else if(256==L)D=8;else if(2==L)D=1;else if(32==L)D=5;else{if(4!=L)return void this.fromRadix(_,L);D=2}this.t=0,this.s=0;for(var B=_.length,re=!1,he=0;--B>=0;){var Se=8==D?255&_[B]:Z(_,B);Se<0?"-"==_.charAt(B)&&(re=!0):(re=!1,0==he?this[this.t++]=Se:he+D>this.DB?(this[this.t-1]|=(Se&(1<<this.DB-he)-1)<<he,this[this.t++]=Se>>this.DB-he):this[this.t-1]|=Se<<he,(he+=D)>=this.DB&&(he-=this.DB))}8==D&&128&_[0]&&(this.s=-1,he>0&&(this[this.t-1]|=(1<<this.DB-he)-1<<he)),this.clamp(),re&&u.ZERO.subTo(this,this)},u.prototype.clamp=function Q(){for(var _=this.s&this.DM;this.t>0&&this[this.t-1]==_;)--this.t},u.prototype.dlShiftTo=function xe(_,L){var D;for(D=this.t-1;D>=0;--D)L[D+_]=this[D];for(D=_-1;D>=0;--D)L[D]=0;L.t=this.t+_,L.s=this.s},u.prototype.drShiftTo=function Re(_,L){for(var D=_;D<this.t;++D)L[D-_]=this[D];L.t=Math.max(this.t-_,0),L.s=this.s},u.prototype.lShiftTo=function Ue(_,L){var we,D=_%this.DB,B=this.DB-D,re=(1<<B)-1,he=Math.floor(_/this.DB),Se=this.s<<D&this.DM;for(we=this.t-1;we>=0;--we)L[we+he+1]=this[we]>>B|Se,Se=(this[we]&re)<<D;for(we=he-1;we>=0;--we)L[we]=0;L[he]=Se,L.t=this.t+he+1,L.s=this.s,L.clamp()},u.prototype.rShiftTo=function ee(_,L){L.s=this.s;var D=Math.floor(_/this.DB);if(D>=this.t)L.t=0;else{var B=_%this.DB,re=this.DB-B,he=(1<<B)-1;L[0]=this[D]>>B;for(var Se=D+1;Se<this.t;++Se)L[Se-D-1]|=(this[Se]&he)<<re,L[Se-D]=this[Se]>>B;B>0&&(L[this.t-D-1]|=(this.s&he)<<re),L.t=this.t-D,L.clamp()}},u.prototype.subTo=function W(_,L){for(var D=0,B=0,re=Math.min(_.t,this.t);D<re;)B+=this[D]-_[D],L[D++]=B&this.DM,B>>=this.DB;if(_.t<this.t){for(B-=_.s;D<this.t;)B+=this[D],L[D++]=B&this.DM,B>>=this.DB;B+=this.s}else{for(B+=this.s;D<_.t;)B-=_[D],L[D++]=B&this.DM,B>>=this.DB;B-=_.s}L.s=B<0?-1:0,B<-1?L[D++]=this.DV+B:B>0&&(L[D++]=B),L.t=D,L.clamp()},u.prototype.multiplyTo=function Pe(_,L){var D=this.abs(),B=_.abs(),re=D.t;for(L.t=re+B.t;--re>=0;)L[re]=0;for(re=0;re<B.t;++re)L[re+D.t]=D.am(0,B[re],L,re,0,D.t);L.s=0,L.clamp(),this.s!=_.s&&u.ZERO.subTo(L,L)},u.prototype.squareTo=function le(_){for(var L=this.abs(),D=_.t=2*L.t;--D>=0;)_[D]=0;for(D=0;D<L.t-1;++D){var B=L.am(D,L[D],_,2*D,0,1);(_[D+L.t]+=L.am(D+1,2*L[D],_,2*D+1,B,L.t-D-1))>=L.DV&&(_[D+L.t]-=L.DV,_[D+L.t+1]=1)}_.t>0&&(_[_.t-1]+=L.am(D,L[D],_,2*D,0,1)),_.s=0,_.clamp()},u.prototype.divRemTo=function oe(_,L,D){var B=_.abs();if(!(B.t<=0)){var re=this.abs();if(re.t<B.t)return L?.fromInt(0),void(null!=D&&this.copyTo(D));null==D&&(D=m());var he=m(),Se=this.s,we=_.s,tt=this.DB-ot(B[B.t-1]);tt>0?(B.lShiftTo(tt,he),re.lShiftTo(tt,D)):(B.copyTo(he),re.copyTo(D));var rt=he.t,Ot=he[rt-1];if(0!=Ot){var At=Ot*(1<<this.F1)+(rt>1?he[rt-2]>>this.F2:0),Ke=this.FV/At,Ye=(1<<this.F1)/At,vt=1<<this.F2,Be=D.t,_t=Be-rt,pt=L??m();for(he.dlShiftTo(_t,pt),D.compareTo(pt)>=0&&(D[D.t++]=1,D.subTo(pt,D)),u.ONE.dlShiftTo(rt,pt),pt.subTo(he,he);he.t<rt;)he[he.t++]=0;for(;--_t>=0;){var $t=D[--Be]==Ot?this.DM:Math.floor(D[Be]*Ke+(D[Be-1]+vt)*Ye);if((D[Be]+=he.am(0,$t,D,_t,0,rt))<$t)for(he.dlShiftTo(_t,pt),D.subTo(pt,D);D[Be]<--$t;)D.subTo(pt,D)}null!=L&&(D.drShiftTo(rt,L),Se!=we&&u.ZERO.subTo(L,L)),D.t=rt,D.clamp(),tt>0&&D.rShiftTo(tt,D),Se<0&&u.ZERO.subTo(D,D)}}},u.prototype.invDigit=function De(){if(this.t<1)return 0;var _=this[0];if(!(1&_))return 0;var L=3&_;return(L=(L=(L=(L=L*(2-(15&_)*L)&15)*(2-(255&_)*L)&255)*(2-((65535&_)*L&65535))&65535)*(2-_*L%this.DV)%this.DV)>0?this.DV-L:-L},u.prototype.isEven=function $e(){return 0==(this.t>0?1&this[0]:this.s)},u.prototype.exp=function st(_,L){if(_>4294967295||_<1)return u.ONE;var D=m(),B=m(),re=L.convert(this),he=ot(_)-1;for(re.copyTo(D);--he>=0;)if(L.sqrTo(D,B),(_&1<<he)>0)L.mulTo(B,re,D);else{var Se=D;D=B,B=Se}return L.revert(D)},u.prototype.toString=function ne(_){if(this.s<0)return"-"+this.negate().toString(_);var L;if(16==_)L=4;else if(8==_)L=3;else if(2==_)L=1;else if(32==_)L=5;else{if(4!=_)return this.toRadix(_);L=2}var B,D=(1<<L)-1,re=!1,he="",Se=this.t,we=this.DB-Se*this.DB%L;if(Se-- >0)for(we<this.DB&&(B=this[Se]>>we)>0&&(re=!0,he=H(B));Se>=0;)we<L?(B=(this[Se]&(1<<we)-1)<<L-we,B|=this[--Se]>>(we+=this.DB-L)):(B=this[Se]>>(we-=L)&D,we<=0&&(we+=this.DB,--Se)),B>0&&(re=!0),re&&(he+=H(B));return re?he:"0"},u.prototype.negate=function Ge(){var _=m();return u.ZERO.subTo(this,_),_},u.prototype.abs=function ge(){return this.s<0?this.negate():this},u.prototype.compareTo=function Xe(_){var L=this.s-_.s;if(0!=L)return L;var D=this.t;if(0!=(L=D-_.t))return this.s<0?-L:L;for(;--D>=0;)if(0!=(L=this[D]-_[D]))return L;return 0},u.prototype.bitLength=function dt(){return this.t<=0?0:this.DB*(this.t-1)+ot(this[this.t-1]^this.s&this.DM)},u.prototype.mod=function Le(_){var L=m();return this.abs().divRemTo(_,null,L),this.s<0&&L.compareTo(u.ZERO)>0&&_.subTo(L,L),L},u.prototype.modPowInt=function Gt(_,L){var D;return D=_<256||L.isEven()?new Oe(L):new pe(L),this.exp(_,D)},u.ZERO=Me(0),u.ONE=Me(1),li.prototype.convert=er,li.prototype.revert=er,li.prototype.mulTo=function Fr(_,L,D){_.multiplyTo(L,D)},li.prototype.sqrTo=function dn(_,L){_.squareTo(L)},Si.prototype.convert=function Yi(_){if(_.s<0||_.t>2*this.m.t)return _.mod(this.m);if(_.compareTo(this.m)<0)return _;var L=m();return _.copyTo(L),this.reduce(L),L},Si.prototype.revert=function Qi(_){return _},Si.prototype.reduce=function vr(_){for(_.drShiftTo(this.m.t-1,this.r2),_.t>this.m.t+1&&(_.t=this.m.t+1,_.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);_.compareTo(this.r2)<0;)_.dAddOffset(1,this.m.t+1);for(_.subTo(this.r2,_);_.compareTo(this.m)>=0;)_.subTo(this.m,_)},Si.prototype.mulTo=function br(_,L,D){_.multiplyTo(L,D),this.reduce(D)},Si.prototype.sqrTo=function Dr(_,L){_.squareTo(L),this.reduce(L)};var Co=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Lo=(1<<26)/Co[Co.length-1];function sn(){this.i=0,this.j=0,this.S=new Array}u.prototype.chunkSize=function qe(_){return Math.floor(Math.LN2*this.DB/Math.log(_))},u.prototype.toRadix=function Bi(_){if(null==_&&(_=10),0==this.signum()||_<2||_>36)return"0";var L=this.chunkSize(_),D=Math.pow(_,L),B=Me(D),re=m(),he=m(),Se="";for(this.divRemTo(B,re,he);re.signum()>0;)Se=(D+he.intValue()).toString(_).substr(1)+Se,re.divRemTo(B,re,he);return he.intValue().toString(_)+Se},u.prototype.fromRadix=function _i(_,L){this.fromInt(0),null==L&&(L=10);for(var D=this.chunkSize(L),B=Math.pow(L,D),re=!1,he=0,Se=0,we=0;we<_.length;++we){var tt=Z(_,we);tt<0?"-"==_.charAt(we)&&0==this.signum()&&(re=!0):(Se=L*Se+tt,++he>=D&&(this.dMultiply(B),this.dAddOffset(Se,0),he=0,Se=0))}he>0&&(this.dMultiply(Math.pow(L,he)),this.dAddOffset(Se,0)),re&&u.ZERO.subTo(this,this)},u.prototype.fromNumber=function Bn(_,L,D){if("number"==typeof L)if(_<2)this.fromInt(1);else for(this.fromNumber(_,D),this.testBit(_-1)||this.bitwiseTo(u.ONE.shiftLeft(_-1),Et,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(L);)this.dAddOffset(2,0),this.bitLength()>_&&this.subTo(u.ONE.shiftLeft(_-1),this);else{var B=new Array,re=7&_;B.length=1+(_>>3),L.nextBytes(B),re>0?B[0]&=(1<<re)-1:B[0]=0,this.fromString(B,256)}},u.prototype.bitwiseTo=function ht(_,L,D){var B,re,he=Math.min(_.t,this.t);for(B=0;B<he;++B)D[B]=L(this[B],_[B]);if(_.t<this.t){for(re=_.s&this.DM,B=he;B<this.t;++B)D[B]=L(this[B],re);D.t=this.t}else{for(re=this.s&this.DM,B=he;B<_.t;++B)D[B]=L(re,_[B]);D.t=_.t}D.s=L(this.s,_.s),D.clamp()},u.prototype.changeBit=function Fi(_,L){var D=u.ONE.shiftLeft(_);return this.bitwiseTo(D,L,D),D},u.prototype.addTo=function bi(_,L){for(var D=0,B=0,re=Math.min(_.t,this.t);D<re;)B+=this[D]+_[D],L[D++]=B&this.DM,B>>=this.DB;if(_.t<this.t){for(B+=_.s;D<this.t;)B+=this[D],L[D++]=B&this.DM,B>>=this.DB;B+=this.s}else{for(B+=this.s;D<_.t;)B+=_[D],L[D++]=B&this.DM,B>>=this.DB;B+=_.s}L.s=B<0?-1:0,B>0?L[D++]=B:B<-1&&(L[D++]=this.DV+B),L.t=D,L.clamp()},u.prototype.dMultiply=function Pn(_){this[this.t]=this.am(0,_-1,this,0,0,this.t),++this.t,this.clamp()},u.prototype.dAddOffset=function Pi(_,L){if(0!=_){for(;this.t<=L;)this[this.t++]=0;for(this[L]+=_;this[L]>=this.DV;)this[L]-=this.DV,++L>=this.t&&(this[this.t++]=0),++this[L]}},u.prototype.multiplyLowerTo=function xi(_,L,D){var re,B=Math.min(this.t+_.t,L);for(D.s=0,D.t=B;B>0;)D[--B]=0;for(re=D.t-this.t;B<re;++B)D[B+this.t]=this.am(0,_[B],D,B,0,this.t);for(re=Math.min(_.t,L);B<re;++B)this.am(0,_[B],D,B,0,L-B);D.clamp()},u.prototype.multiplyUpperTo=function fi(_,L,D){--L;var B=D.t=this.t+_.t-L;for(D.s=0;--B>=0;)D[B]=0;for(B=Math.max(L-this.t,0);B<_.t;++B)D[this.t+B-L]=this.am(L-B,_[B],D,0,0,this.t+B-L);D.clamp(),D.drShiftTo(1,D)},u.prototype.modInt=function Hr(_){if(_<=0)return 0;var L=this.DV%_,D=this.s<0?_-1:0;if(this.t>0)if(0==L)D=this[0]%_;else for(var B=this.t-1;B>=0;--B)D=(L*D+this[B])%_;return D},u.prototype.millerRabin=function Ar(_){var L=this.subtract(u.ONE),D=L.getLowestSetBit();if(D<=0)return!1;var B=L.shiftRight(D);(_=_+1>>1)>Co.length&&(_=Co.length);for(var re=m(),he=0;he<_;++he){re.fromInt(Co[Math.floor(Math.random()*Co.length)]);var Se=re.modPow(B,this);if(0!=Se.compareTo(u.ONE)&&0!=Se.compareTo(L)){for(var we=1;we++<D&&0!=Se.compareTo(L);)if(0==(Se=Se.modPowInt(2,this)).compareTo(u.ONE))return!1;if(0!=Se.compareTo(L))return!1}}return!0},u.prototype.clone=function Zt(){var _=m();return this.copyTo(_),_},u.prototype.intValue=function kn(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},u.prototype.byteValue=function Un(){return 0==this.t?this.s:this[0]<<24>>24},u.prototype.shortValue=function ni(){return 0==this.t?this.s:this[0]<<16>>16},u.prototype.signum=function mi(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},u.prototype.toByteArray=function jn(){var _=this.t,L=new Array;L[0]=this.s;var B,D=this.DB-_*this.DB%8,re=0;if(_-- >0)for(D<this.DB&&(B=this[_]>>D)!=(this.s&this.DM)>>D&&(L[re++]=B|this.s<<this.DB-D);_>=0;)D<8?(B=(this[_]&(1<<D)-1)<<8-D,B|=this[--_]>>(D+=this.DB-8)):(B=this[_]>>(D-=8)&255,D<=0&&(D+=this.DB,--_)),128&B&&(B|=-256),0==re&&(128&this.s)!=(128&B)&&++re,(re>0||B!=this.s)&&(L[re++]=B);return L},u.prototype.equals=function It(_){return 0==this.compareTo(_)},u.prototype.min=function vn(_){return this.compareTo(_)<0?this:_},u.prototype.max=function Vn(_){return this.compareTo(_)>0?this:_},u.prototype.and=function Ct(_){var L=m();return this.bitwiseTo(_,it,L),L},u.prototype.or=function We(_){var L=m();return this.bitwiseTo(_,Et,L),L},u.prototype.xor=function gt(_){var L=m();return this.bitwiseTo(_,bt,L),L},u.prototype.andNot=function rn(_){var L=m();return this.bitwiseTo(_,wt,L),L},u.prototype.not=function In(){for(var _=m(),L=0;L<this.t;++L)_[L]=this.DM&~this[L];return _.t=this.t,_.s=~this.s,_},u.prototype.shiftLeft=function Mi(_){var L=m();return _<0?this.rShiftTo(-_,L):this.lShiftTo(_,L),L},u.prototype.shiftRight=function En(_){var L=m();return _<0?this.lShiftTo(-_,L):this.rShiftTo(_,L),L},u.prototype.getLowestSetBit=function Cn(){for(var _=0;_<this.t;++_)if(0!=this[_])return _*this.DB+Tn(this[_]);return this.s<0?this.t*this.DB:-1},u.prototype.bitCount=function Oi(){for(var _=0,L=this.s&this.DM,D=0;D<this.t;++D)_+=Wn(this[D]^L);return _},u.prototype.testBit=function Qn(_){var L=Math.floor(_/this.DB);return L>=this.t?0!=this.s:!!(this[L]&1<<_%this.DB)},u.prototype.setBit=function Ai(_){return this.changeBit(_,Et)},u.prototype.clearBit=function ln(_){return this.changeBit(_,wt)},u.prototype.flipBit=function Mn(_){return this.changeBit(_,bt)},u.prototype.add=function Hi(_){var L=m();return this.addTo(_,L),L},u.prototype.subtract=function Mr(_){var L=m();return this.subTo(_,L),L},u.prototype.multiply=function Wr(_){var L=m();return this.multiplyTo(_,L),L},u.prototype.divide=function Nr(_){var L=m();return this.divRemTo(_,L,null),L},u.prototype.remainder=function ss(_){var L=m();return this.divRemTo(_,null,L),L},u.prototype.divideAndRemainder=function Cs(_){var L=m(),D=m();return this.divRemTo(_,L,D),new Array(L,D)},u.prototype.modPow=function ro(_,L){var B,he,D=_.bitLength(),re=Me(1);if(D<=0)return re;B=D<18?1:D<48?3:D<144?4:D<768?5:6,he=D<8?new Oe(L):L.isEven()?new Si(L):new pe(L);var Se=new Array,we=3,tt=B-1,rt=(1<<B)-1;if(Se[1]=he.convert(this),B>1){var Ot=m();for(he.sqrTo(Se[1],Ot);we<=rt;)Se[we]=m(),he.mulTo(Ot,Se[we-2],Se[we]),we+=2}var Ke,Be,At=_.t-1,Ye=!0,vt=m();for(D=ot(_[At])-1;At>=0;){for(D>=tt?Ke=_[At]>>D-tt&rt:(Ke=(_[At]&(1<<D+1)-1)<<tt-D,At>0&&(Ke|=_[At-1]>>this.DB+D-tt)),we=B;!(1&Ke);)Ke>>=1,--we;if((D-=we)<0&&(D+=this.DB,--At),Ye)Se[Ke].copyTo(re),Ye=!1;else{for(;we>1;)he.sqrTo(re,vt),he.sqrTo(vt,re),we-=2;we>0?he.sqrTo(re,vt):(Be=re,re=vt,vt=Be),he.mulTo(vt,Se[Ke],re)}for(;At>=0&&!(_[At]&1<<D);)he.sqrTo(re,vt),Be=re,re=vt,vt=Be,--D<0&&(D=this.DB-1,--At)}return he.revert(re)},u.prototype.modInverse=function Ao(_){var L=_.isEven();if(this.isEven()&&L||0==_.signum())return u.ZERO;for(var D=_.clone(),B=this.clone(),re=Me(1),he=Me(0),Se=Me(0),we=Me(1);0!=D.signum();){for(;D.isEven();)D.rShiftTo(1,D),L?((!re.isEven()||!he.isEven())&&(re.addTo(this,re),he.subTo(_,he)),re.rShiftTo(1,re)):he.isEven()||he.subTo(_,he),he.rShiftTo(1,he);for(;B.isEven();)B.rShiftTo(1,B),L?((!Se.isEven()||!we.isEven())&&(Se.addTo(this,Se),we.subTo(_,we)),Se.rShiftTo(1,Se)):we.isEven()||we.subTo(_,we),we.rShiftTo(1,we);D.compareTo(B)>=0?(D.subTo(B,D),L&&re.subTo(Se,re),he.subTo(we,he)):(B.subTo(D,B),L&&Se.subTo(re,Se),we.subTo(he,we))}return 0!=B.compareTo(u.ONE)?u.ZERO:we.compareTo(_)>=0?we.subtract(_):we.signum()<0?(we.addTo(_,we),we.signum()<0?we.add(_):we):we},u.prototype.pow=function Fn(_){return this.exp(_,new li)},u.prototype.gcd=function Oo(_){var L=this.s<0?this.negate():this.clone(),D=_.s<0?_.negate():_.clone();if(L.compareTo(D)<0){var B=L;L=D,D=B}var re=L.getLowestSetBit(),he=D.getLowestSetBit();if(he<0)return L;for(re<he&&(he=re),he>0&&(L.rShiftTo(he,L),D.rShiftTo(he,D));L.signum()>0;)(re=L.getLowestSetBit())>0&&L.rShiftTo(re,L),(re=D.getLowestSetBit())>0&&D.rShiftTo(re,D),L.compareTo(D)>=0?(L.subTo(D,L),L.rShiftTo(1,L)):(D.subTo(L,D),D.rShiftTo(1,D));return he>0&&D.lShiftTo(he,D),D},u.prototype.isProbablePrime=function ao(_){var L,D=this.abs();if(1==D.t&&D[0]<=Co[Co.length-1]){for(L=0;L<Co.length;++L)if(D[0]==Co[L])return!0;return!1}if(D.isEven())return!1;for(L=1;L<Co.length;){for(var B=Co[L],re=L+1;re<Co.length&&B<Lo;)B*=Co[re++];for(B=D.modInt(B);L<re;)if(B%Co[L++]==0)return!1}return D.millerRabin(_)},u.prototype.square=function uo(){var _=m();return this.squareTo(_),_},sn.prototype.init=function Gn(_){var L,D,B;for(L=0;L<256;++L)this.S[L]=L;for(D=0,L=0;L<256;++L)B=this.S[L],this.S[L]=this.S[D=D+this.S[L]+_[L%_.length]&255],this.S[D]=B;this.i=0,this.j=0},sn.prototype.next=function $n(){var _;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,_=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=_,this.S[_+this.S[this.i]&255]};var Ti,Gi,Tr,Wi=256;function zo(){!function _o(_){Gi[Tr++]^=255&_,Gi[Tr++]^=_>>8&255,Gi[Tr++]^=_>>16&255,Gi[Tr++]^=_>>24&255,Tr>=Wi&&(Tr-=Wi)}((new Date).getTime())}if(null==Gi){var as;if(Gi=new Array,Tr=0,void 0!==n&&(void 0!==n.crypto||void 0!==n.msCrypto)){var ps=n.crypto||n.msCrypto;if(ps.getRandomValues){var Hs=new Uint8Array(32);for(ps.getRandomValues(Hs),as=0;as<32;++as)Gi[Tr++]=Hs[as]}else if("Netscape"==r.appName&&r.appVersion<"5"){var Qr=n.crypto.random(32);for(as=0;as<Qr.length;++as)Gi[Tr++]=255&Qr.charCodeAt(as)}}for(;Tr<Wi;)as=Math.floor(65536*Math.random()),Gi[Tr++]=as>>>8,Gi[Tr++]=255&as;Tr=0,zo()}function ca(){if(null==Ti){for(zo(),(Ti=function Ci(){return new sn}()).init(Gi),Tr=0;Tr<Gi.length;++Tr)Gi[Tr]=0;Tr=0}return Ti.next()}function ts(){}function Qo(_,L){return new u(_,L)}function Er(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function _r(_,L){this.x=L,this.q=_}function po(_,L,D,B){this.curve=_,this.x=L,this.y=D,this.z=null==B?u.ONE:B,this.zinv=null}function Ri(_,L,D){this.q=_,this.a=this.fromBigInteger(L),this.b=this.fromBigInteger(D),this.infinity=new po(this,null,null)}ts.prototype.nextBytes=function Js(_){var L;for(L=0;L<_.length;++L)_[L]=ca()},Er.prototype.doPublic=function ea(_){return _.modPowInt(this.e,this.n)},Er.prototype.setPublic=function js(_,L){if(this.isPublic=!0,this.isPrivate=!1,"string"!=typeof _)this.n=_,this.e=L;else{if(!(null!=_&&null!=L&&_.length>0&&L.length>0))throw"Invalid RSA public key";this.n=Qo(_,16),this.e=parseInt(L,16)}},Er.prototype.type="RSA",Er.prototype.doPrivate=function Pa(_){if(null==this.p||null==this.q)return _.modPow(this.d,this.n);for(var L=_.mod(this.p).modPow(this.dmp1,this.p),D=_.mod(this.q).modPow(this.dmq1,this.q);L.compareTo(D)<0;)L=L.add(this.p);return L.subtract(D).multiply(this.coeff).mod(this.p).multiply(this.q).add(D)},Er.prototype.setPrivate=function ho(_,L,D){if(this.isPrivate=!0,"string"!=typeof _)this.n=_,this.e=L,this.d=D;else{if(!(null!=_&&null!=L&&_.length>0&&L.length>0))throw"Invalid RSA private key";this.n=Qo(_,16),this.e=parseInt(L,16),this.d=Qo(D,16)}},Er.prototype.setPrivateEx=function Bo(_,L,D,B,re,he,Se,we){if(this.isPrivate=!0,this.isPublic=!1,null==_)throw"RSASetPrivateEx N == null";if(null==L)throw"RSASetPrivateEx E == null";if(0==_.length)throw"RSASetPrivateEx N.length == 0";if(0==L.length)throw"RSASetPrivateEx E.length == 0";if(!(null!=_&&null!=L&&_.length>0&&L.length>0))throw"Invalid RSA private key in RSASetPrivateEx";this.n=Qo(_,16),this.e=parseInt(L,16),this.d=Qo(D,16),this.p=Qo(B,16),this.q=Qo(re,16),this.dmp1=Qo(he,16),this.dmq1=Qo(Se,16),this.coeff=Qo(we,16)},Er.prototype.generate=function cs(_,L){var D=new ts,B=_>>1;this.e=parseInt(L,16);for(var re=new u(L,16),he=_/2-100,Se=u.ONE.shiftLeft(he);;){for(;this.p=new u(_-B,1,D),0!=this.p.subtract(u.ONE).gcd(re).compareTo(u.ONE)||!this.p.isProbablePrime(10););for(;this.q=new u(B,1,D),0!=this.q.subtract(u.ONE).gcd(re).compareTo(u.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var we=this.p;this.p=this.q,this.q=we}var tt=this.q.subtract(this.p).abs();if(!(tt.bitLength()<he||tt.compareTo(Se)<=0)){var rt=this.p.subtract(u.ONE),Ot=this.q.subtract(u.ONE),At=rt.multiply(Ot);if(0==At.gcd(re).compareTo(u.ONE)&&(this.n=this.p.multiply(this.q),this.n.bitLength()==_)){this.d=re.modInverse(At),this.dmp1=this.d.mod(rt),this.dmq1=this.d.mod(Ot),this.coeff=this.q.modInverse(this.p);break}}}this.isPrivate=!0},_r.prototype.equals=function $s(_){return _==this||this.q.equals(_.q)&&this.x.equals(_.x)},_r.prototype.toBigInteger=function fa(){return this.x},_r.prototype.negate=function sa(){return new _r(this.q,this.x.negate().mod(this.q))},_r.prototype.add=function Ba(_){return new _r(this.q,this.x.add(_.toBigInteger()).mod(this.q))},_r.prototype.subtract=function Ml(_){return new _r(this.q,this.x.subtract(_.toBigInteger()).mod(this.q))},_r.prototype.multiply=function _s(_){return new _r(this.q,this.x.multiply(_.toBigInteger()).mod(this.q))},_r.prototype.square=function wa(){return new _r(this.q,this.x.square().mod(this.q))},_r.prototype.divide=function To(_){return new _r(this.q,this.x.multiply(_.toBigInteger().modInverse(this.q)).mod(this.q))},_r.prototype.sqrt=function(){return new _r(this.q,this.x.sqrt().mod(this.q))},po.prototype.getX=function ta(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},po.prototype.getY=function Ls(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},po.prototype.equals=function zs(_){return _==this||(this.isInfinity()?_.isInfinity():_.isInfinity()?this.isInfinity():!!_.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(_.z)).mod(this.curve.q).equals(u.ZERO)&&_.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(_.z)).mod(this.curve.q).equals(u.ZERO))},po.prototype.isInfinity=function Kt(){return null==this.x&&null==this.y||this.z.equals(u.ZERO)&&!this.y.toBigInteger().equals(u.ZERO)},po.prototype.negate=function Zn(){return new po(this.curve,this.x,this.y.negate(),this.z)},po.prototype.add=function Ii(_){if(this.isInfinity())return _;if(_.isInfinity())return this;var L=_.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(_.z)).mod(this.curve.q),D=_.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(_.z)).mod(this.curve.q);if(u.ZERO.equals(D))return u.ZERO.equals(L)?this.twice():this.curve.getInfinity();var B=new u("3"),re=this.x.toBigInteger(),he=this.y.toBigInteger(),tt=(_.x.toBigInteger(),_.y.toBigInteger(),D.square()),rt=tt.multiply(D),Ot=re.multiply(tt),At=L.square().multiply(this.z),Ke=At.subtract(Ot.shiftLeft(1)).multiply(_.z).subtract(rt).multiply(D).mod(this.curve.q),Ye=Ot.multiply(B).multiply(L).subtract(he.multiply(rt)).subtract(At.multiply(L)).multiply(_.z).add(L.multiply(rt)).mod(this.curve.q),vt=rt.multiply(this.z).multiply(_.z).mod(this.curve.q);return new po(this.curve,this.curve.fromBigInteger(Ke),this.curve.fromBigInteger(Ye),vt)},po.prototype.twice=function ei(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var _=new u("3"),L=this.x.toBigInteger(),D=this.y.toBigInteger(),B=D.multiply(this.z),re=B.multiply(D).mod(this.curve.q),he=this.curve.a.toBigInteger(),Se=L.square().multiply(_);u.ZERO.equals(he)||(Se=Se.add(this.z.square().multiply(he)));var we=(Se=Se.mod(this.curve.q)).square().subtract(L.shiftLeft(3).multiply(re)).shiftLeft(1).multiply(B).mod(this.curve.q),tt=Se.multiply(_).multiply(L).subtract(re.shiftLeft(1)).shiftLeft(2).multiply(re).subtract(Se.square().multiply(Se)).mod(this.curve.q),rt=B.square().multiply(B).shiftLeft(3).mod(this.curve.q);return new po(this.curve,this.curve.fromBigInteger(we),this.curve.fromBigInteger(tt),rt)},po.prototype.multiply=function di(_){if(this.isInfinity())return this;if(0==_.signum())return this.curve.getInfinity();var rt,L=_,D=L.multiply(new u("3")),B=this.negate(),re=this,he=this.curve.q.subtract(_),Se=he.multiply(new u("3")),we=new po(this.curve,this.x,this.y),tt=we.negate();for(rt=D.bitLength()-2;rt>0;--rt){re=re.twice();var Ot=D.testBit(rt);Ot!=L.testBit(rt)&&(re=re.add(Ot?this:B))}for(rt=Se.bitLength()-2;rt>0;--rt){we=we.twice();var Ke=Se.testBit(rt);Ke!=he.testBit(rt)&&(we=we.add(Ke?we:tt))}return re},po.prototype.multiplyTwo=function wi(_,L,D){var B;B=_.bitLength()>D.bitLength()?_.bitLength()-1:D.bitLength()-1;for(var re=this.curve.getInfinity(),he=this.add(L);B>=0;)re=re.twice(),_.testBit(B)?re=D.testBit(B)?re.add(he):re.add(this):D.testBit(B)&&(re=re.add(L)),--B;return re},Ri.prototype.getQ=function Nt(){return this.q},Ri.prototype.getA=function Dt(){return this.a},Ri.prototype.getB=function Xt(){return this.b},Ri.prototype.equals=function St(_){return _==this||this.q.equals(_.q)&&this.a.equals(_.a)&&this.b.equals(_.b)},Ri.prototype.getInfinity=function Sn(){return this.infinity},Ri.prototype.fromBigInteger=function Jn(_){return new _r(this.q,_)},Ri.prototype.decodePointHex=function oi(_){switch(parseInt(_.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var L=_.substr(0,2),B=(_.substr(2),this.fromBigInteger(new u(rt,16))),re=this.getA(),he=this.getB(),we=B.square().add(re).multiply(B).add(he).sqrt();return"03"==L&&(we=we.negate()),new po(this,B,we);case 4:case 6:case 7:var tt=(_.length-2)/2,rt=_.substr(2,tt),Ot=_.substr(tt+2,tt);return new po(this,this.fromBigInteger(new u(rt,16)),this.fromBigInteger(new u(Ot,16)));default:return null}},_r.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},po.prototype.getEncoded=function(_){var L=function(he,Se){var we=he.toByteArrayUnsigned();if(Se<we.length)we=we.slice(we.length-Se);else for(;Se>we.length;)we.unshift(0);return we},D=this.getX().toBigInteger(),B=this.getY().toBigInteger(),re=L(D,32);return _?B.isEven()?re.unshift(2):re.unshift(3):(re.unshift(4),re=re.concat(L(B,32))),re},po.decodeFrom=function(_,L){var B=L.length-1,re=L.slice(1,1+B/2),he=L.slice(1+B/2,1+B);re.unshift(0),he.unshift(0);var Se=new u(re),we=new u(he);return new po(_,_.fromBigInteger(Se),_.fromBigInteger(we))},po.decodeFromHex=function(_,L){L.substr(0,2);var B=L.length-2,re=L.substr(2,B/2),he=L.substr(2+B/2,B/2),Se=new u(re,16),we=new u(he,16);return new po(_,_.fromBigInteger(Se),_.fromBigInteger(we))},po.prototype.add2D=function(_){if(this.isInfinity())return _;if(_.isInfinity())return this;if(this.x.equals(_.x))return this.y.equals(_.y)?this.twice():this.curve.getInfinity();var L=_.x.subtract(this.x),B=_.y.subtract(this.y).divide(L),re=B.square().subtract(this.x).subtract(_.x),he=B.multiply(this.x.subtract(re)).subtract(this.y);return new po(this.curve,re,he)},po.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var _=this.curve.fromBigInteger(u.valueOf(2)),L=this.curve.fromBigInteger(u.valueOf(3)),D=this.x.square().multiply(L).add(this.curve.a).divide(this.y.multiply(_)),B=D.square().subtract(this.x.multiply(_)),re=D.multiply(this.x.subtract(B)).subtract(this.y);return new po(this.curve,B,re)},po.prototype.multiply2D=function(_){if(this.isInfinity())return this;if(0==_.signum())return this.curve.getInfinity();var he,L=_,D=L.multiply(new u("3")),B=this.negate(),re=this;for(he=D.bitLength()-2;he>0;--he){re=re.twice();var Se=D.testBit(he);Se!=L.testBit(he)&&(re=re.add2D(Se?this:B))}return re},po.prototype.isOnCurve=function(){var _=this.getX().toBigInteger(),L=this.getY().toBigInteger(),D=this.curve.getA().toBigInteger(),B=this.curve.getB().toBigInteger(),re=this.curve.getQ(),he=L.multiply(L).mod(re),Se=_.multiply(_).multiply(_).add(D.multiply(_)).add(B).mod(re);return he.equals(Se)},po.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},po.prototype.validate=function(){var _=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var L=this.getX().toBigInteger(),D=this.getY().toBigInteger();if(L.compareTo(u.ONE)<0||L.compareTo(_.subtract(u.ONE))>0)throw new Error("x coordinate out of bounds");if(D.compareTo(u.ONE)<0||D.compareTo(_.subtract(u.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(_).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var Ji=function(){var B=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),re=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),he={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Se(At,Ke,Ye){return Ke?he[Ke]:String.fromCharCode(parseInt(Ye,16))}var we=new String(""),Ot=Object.hasOwnProperty;return function(At,Ke){var vt,Ye=At.match(B),Be=Ye[0],_t=!1;"{"===Be?vt={}:"["===Be?vt=[]:(vt=[],_t=!0);for(var pt,$t=[vt],hn=1-_t,mn=Ye.length;hn<mn;++hn){var yn;switch((Be=Ye[hn]).charCodeAt(0)){default:(yn=$t[0])[pt||yn.length]=+Be,pt=void 0;break;case 34:if(-1!==(Be=Be.substring(1,Be.length-1)).indexOf("\\")&&(Be=Be.replace(re,Se)),yn=$t[0],!pt){if(!(yn instanceof Array)){pt=Be||we;break}pt=yn.length}yn[pt]=Be,pt=void 0;break;case 91:$t.unshift((yn=$t[0])[pt||yn.length]=[]),pt=void 0;break;case 93:case 125:$t.shift();break;case 102:(yn=$t[0])[pt||yn.length]=!1,pt=void 0;break;case 110:(yn=$t[0])[pt||yn.length]=null,pt=void 0;break;case 116:(yn=$t[0])[pt||yn.length]=!0,pt=void 0;break;case 123:$t.unshift((yn=$t[0])[pt||yn.length]={}),pt=void 0}}if(_t){if(1!==$t.length)throw new Error;vt=vt[0]}else if($t.length)throw new Error;if(Ke){var ci=function(yi,Bt){var Rt=yi[Bt];if(Rt&&"object"==typeof Rt){var fn=null;for(var An in Rt)if(Ot.call(Rt,An)&&Rt!==yi){var Nn=ci(Rt,An);void 0!==Nn?Rt[An]=Nn:(fn||(fn=[]),fn.push(An))}if(fn)for(var Rn=fn.length;--Rn>=0;)delete Rt[fn[Rn]]}return Ke.call(yi,Bt,Rt)};vt=ci({"":vt},"")}return vt}}();(typeof Ee>"u"||!Ee)&&(Ee={}),(typeof Ee.asn1>"u"||!Ee.asn1)&&(Ee.asn1={}),Ee.asn1.ASN1Util=new function(){this.integerToByteHex=function(_){var L=_.toString(16);return L.length%2==1&&(L="0"+L),L},this.bigIntToMinTwosComplementsHex=function(_){return ds(_)},this.getPEMStringFromHex=function(_,L){return Br(_,L)},this.newObject=function(_){var D=Ee.asn1,B=D.ASN1Object,re=D.DERBoolean,he=D.DERInteger,Se=D.DERBitString,we=D.DEROctetString,tt=D.DERNull,rt=D.DERObjectIdentifier,Ot=D.DEREnumerated,At=D.DERUTF8String,Ke=D.DERNumericString,Ye=D.DERPrintableString,vt=D.DERTeletexString,Be=D.DERIA5String,_t=D.DERUTCTime,pt=D.DERGeneralizedTime,$t=D.DERVisibleString,hn=D.DERBMPString,mn=D.DERSequence,yn=D.DERSet,ci=D.DERTaggedObject,yi=D.ASN1Util.newObject;if(_ instanceof D.ASN1Object)return _;var Bt=Object.keys(_);if(1!=Bt.length)throw new Error("key of param shall be only one.");var Rt=Bt[0];if(-1==":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+Rt+":"))throw new Error("undefined key: "+Rt);if("bool"==Rt)return new re(_[Rt]);if("int"==Rt)return new he(_[Rt]);if("bitstr"==Rt)return new Se(_[Rt]);if("octstr"==Rt)return new we(_[Rt]);if("null"==Rt)return new tt(_[Rt]);if("oid"==Rt)return new rt(_[Rt]);if("enum"==Rt)return new Ot(_[Rt]);if("utf8str"==Rt)return new At(_[Rt]);if("numstr"==Rt)return new Ke(_[Rt]);if("prnstr"==Rt)return new Ye(_[Rt]);if("telstr"==Rt)return new vt(_[Rt]);if("ia5str"==Rt)return new Be(_[Rt]);if("utctime"==Rt)return new _t(_[Rt]);if("gentime"==Rt)return new pt(_[Rt]);if("visstr"==Rt)return new $t(_[Rt]);if("bmpstr"==Rt)return new hn(_[Rt]);if("asn1"==Rt)return new B(_[Rt]);if("seq"==Rt){for(var fn=_[Rt],An=[],Nn=0;Nn<fn.length;Nn++){var Rn=yi(fn[Nn]);An.push(Rn)}return new mn({array:An})}if("set"==Rt){for(fn=_[Rt],An=[],Nn=0;Nn<fn.length;Nn++)Rn=yi(fn[Nn]),An.push(Rn);return new yn({array:An})}if("tag"==Rt){var Hn=_[Rt];if("[object Array]"===Object.prototype.toString.call(Hn)&&3==Hn.length){var Xn=yi(Hn[2]);return new ci({tag:Hn[0],explicit:Hn[1],obj:Xn})}return new ci(Hn)}},this.jsonToASN1HEX=function(_){return this.newObject(_).tohex()}},Ee.asn1.ASN1Util.oidHexToInt=function(_){for(var re="",L=parseInt(_.substr(0,2),16),he=(re=Math.floor(L/40)+"."+L%40,""),Se=2;Se<_.length;Se+=2){var tt=("00000000"+parseInt(_.substr(Se,2),16).toString(2)).slice(-8);he+=tt.substr(1,7),"0"==tt.substr(0,1)&&(re=re+"."+new u(he,2).toString(10),he="")}return re},Ee.asn1.ASN1Util.oidIntToHex=function(_){var L=function(we){var tt=we.toString(16);return 1==tt.length&&(tt="0"+tt),tt},D=function(we){var tt="",Ot=new u(we,10).toString(2),At=7-Ot.length%7;7==At&&(At=0);for(var Ke="",Ye=0;Ye<At;Ye++)Ke+="0";for(Ot=Ke+Ot,Ye=0;Ye<Ot.length-1;Ye+=7){var vt=Ot.substr(Ye,7);Ye!=Ot.length-7&&(vt="1"+vt),tt+=L(parseInt(vt,2))}return tt};if(!_.match(/^[0-9.]+$/))throw"malformed oid string: "+_;var B="",re=_.split("."),he=40*parseInt(re[0])+parseInt(re[1]);B+=L(he),re.splice(0,2);for(var Se=0;Se<re.length;Se++)B+=D(re[Se]);return B},Ee.asn1.ASN1Object=function(_){this.params=null,this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||null==this.hV)throw new Error("this.hV is null or undefined");if(this.hV.length%2==1)throw new Error("value hex must be even length: n=0,v="+this.hV);var Se=this.hV.length/2,we=Se.toString(16);if(we.length%2==1&&(we="0"+we),Se<128)return we;var tt=we.length/2;if(tt>15)throw new Error("ASN.1 length too long to represent by 8x: n = "+Se.toString(16));return(128+tt).toString(16)+we},this.tohex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.getValueHex=function(){return this.tohex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(Se){this.params=Se},null!=_&&null!=_.tlv&&(this.hTLV=_.tlv,this.isModified=!1)},Ee.asn1.DERAbstractString=function(_){Ee.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(B){this.hTLV=null,this.isModified=!0,this.s=B,this.hV=ls(this.s).toLowerCase()},this.setStringHex=function(B){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=B},this.getFreshValueHex=function(){return this.hV},typeof _<"u"&&("string"==typeof _?this.setString(_):typeof _.str<"u"?this.setString(_.str):typeof _.hex<"u"&&this.setStringHex(_.hex))},Ki(Ee.asn1.DERAbstractString,Ee.asn1.ASN1Object),Ee.asn1.DERAbstractTime=function(_){Ee.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(B){var re=B.getTime()+6e4*B.getTimezoneOffset();return new Date(re)},this.formatDate=function(B,re,he){var Se=this.zeroPadding,we=this.localDateToUTC(B),tt=String(we.getFullYear());"utc"==re&&(tt=tt.substr(2,2));var vt=tt+Se(String(we.getMonth()+1),2)+Se(String(we.getDate()),2)+Se(String(we.getHours()),2)+Se(String(we.getMinutes()),2)+Se(String(we.getSeconds()),2);if(!0===he){var Be=we.getMilliseconds();if(0!=Be){var _t=Se(String(Be),3);vt=vt+"."+(_t=_t.replace(/[0]+$/,""))}}return vt+"Z"},this.zeroPadding=function(B,re){return B.length>=re?B:new Array(re-B.length+1).join("0")+B},this.setByParam=function(B){this.hV=null,this.hTLV=null,this.params=B},this.getString=function(){},this.setString=function(B){this.hTLV=null,this.isModified=!0,null==this.params&&(this.params={}),this.params.str=B},this.setByDate=function(B){this.hTLV=null,this.isModified=!0,null==this.params&&(this.params={}),this.params.date=B},this.setByDateValue=function(B,re,he,Se,we,tt){var rt=new Date(Date.UTC(B,re-1,he,Se,we,tt,0));this.setByDate(rt)},this.getFreshValueHex=function(){return this.hV}},Ki(Ee.asn1.DERAbstractTime,Ee.asn1.ASN1Object),Ee.asn1.DERAbstractStructured=function(_){Ee.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(D){this.hTLV=null,this.isModified=!0,this.asn1Array=D},this.appendASN1Object=function(D){this.hTLV=null,this.isModified=!0,this.asn1Array.push(D)},this.asn1Array=new Array,typeof _<"u"&&typeof _.array<"u"&&(this.asn1Array=_.array)},Ki(Ee.asn1.DERAbstractStructured,Ee.asn1.ASN1Object),Ee.asn1.DERBoolean=function(_){Ee.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV=0==_?"010100":"0101ff"},Ki(Ee.asn1.DERBoolean,Ee.asn1.ASN1Object),Ee.asn1.DERInteger=function(_){Ee.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.params=null;var L=ds;this.setByBigInteger=function(D){this.isModified=!0,this.params={bigint:D}},this.setByInteger=function(D){this.isModified=!0,this.params=D},this.setValueHex=function(D){this.isModified=!0,this.params={hex:D}},this.getFreshValueHex=function(){var D=this.params,B=null;if(null==D)throw new Error("value not set");if("object"==typeof D&&null!=D.hex)return this.hV=D.hex,this.hV;if("number"==typeof D)B=new u(String(D),10);else if(null!=D.int)B=new u(String(D.int),10);else{if(null==D.bigint)throw new Error("wrong parameter");B=D.bigint}return this.hV=L(B),this.hV},null!=_&&(this.params=_)},Ki(Ee.asn1.DERInteger,Ee.asn1.ASN1Object),Ee.asn1.DERBitString=function(_){if(void 0!==_&&typeof _.obj<"u"){var L=Ee.asn1.ASN1Util.newObject(_.obj);_.hex="00"+L.tohex()}Ee.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(D){this.hTLV=null,this.isModified=!0,this.hV=D},this.setUnusedBitsAndHexValue=function(D,B){if(D<0||7<D)throw"unused bits shall be from 0 to 7: u = "+D;var re="0"+D;this.hTLV=null,this.isModified=!0,this.hV=re+B},this.setByBinaryString=function(D){var B=8-(D=D.replace(/0+$/,"")).length%8;8==B&&(B=0),D+="0000000".substr(0,B);for(var re="",he=0;he<D.length-1;he+=8){var Se=D.substr(he,8),we=parseInt(Se,2).toString(16);1==we.length&&(we="0"+we),re+=we}this.hTLV=null,this.isModified=!0,this.hV="0"+B+re},this.setByBooleanArray=function(D){for(var B="",re=0;re<D.length;re++)B+=1==D[re]?"1":"0";this.setByBinaryString(B)},this.newFalseArray=function(D){for(var B=new Array(D),re=0;re<D;re++)B[re]=!1;return B},this.getFreshValueHex=function(){return this.hV},typeof _<"u"&&("string"==typeof _&&_.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(_):typeof _.hex<"u"?this.setHexValueIncludingUnusedBits(_.hex):typeof _.bin<"u"?this.setByBinaryString(_.bin):typeof _.array<"u"&&this.setByBooleanArray(_.array))},Ki(Ee.asn1.DERBitString,Ee.asn1.ASN1Object),Ee.asn1.DEROctetString=function(_){if(void 0!==_&&typeof _.obj<"u"){var L=Ee.asn1.ASN1Util.newObject(_.obj);_.hex=L.tohex()}Ee.asn1.DEROctetString.superclass.constructor.call(this,_),this.hT="04"},Ki(Ee.asn1.DEROctetString,Ee.asn1.DERAbstractString),Ee.asn1.DERNull=function(){Ee.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Ki(Ee.asn1.DERNull,Ee.asn1.ASN1Object),Ee.asn1.DERObjectIdentifier=function(_){Ee.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(L){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=L},this.setValueOidString=function(L){var D=function Ks(_){var L=function(we){var tt=we.toString(16);return 1==tt.length&&(tt="0"+tt),tt},D=function(we){var tt="",Ot=parseInt(we,10).toString(2),At=7-Ot.length%7;7==At&&(At=0);for(var Ke="",Ye=0;Ye<At;Ye++)Ke+="0";for(Ot=Ke+Ot,Ye=0;Ye<Ot.length-1;Ye+=7){var vt=Ot.substr(Ye,7);Ye!=Ot.length-7&&(vt="1"+vt),tt+=L(parseInt(vt,2))}return tt};try{if(!_.match(/^[0-9.]+$/))return null;var B="",re=_.split("."),he=40*parseInt(re[0],10)+parseInt(re[1],10);B+=L(he),re.splice(0,2);for(var Se=0;Se<re.length;Se++)B+=D(re[Se]);return B}catch{return null}}(L);if(null==D)throw new Error("malformed oid string: "+L);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=D},this.setValueName=function(L){var D=Ee.asn1.x509.OID.name2oid(L);if(""===D)throw new Error("DERObjectIdentifier oidName undefined: "+L);this.setValueOidString(D)},this.setValueNameOrOid=function(L){L.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(L):this.setValueName(L)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(L){"string"==typeof L?this.setValueNameOrOid(L):void 0!==L.oid?this.setValueNameOrOid(L.oid):void 0!==L.name?this.setValueNameOrOid(L.name):void 0!==L.hex&&this.setValueHex(L.hex)},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.DERObjectIdentifier,Ee.asn1.ASN1Object),Ee.asn1.DEREnumerated=function(_){Ee.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(L){this.hTLV=null,this.isModified=!0,this.hV=ds(L)},this.setByInteger=function(L){var D=new u(String(L),10);this.setByBigInteger(D)},this.setValueHex=function(L){this.hV=L},this.getFreshValueHex=function(){return this.hV},typeof _<"u"&&(typeof _.int<"u"?this.setByInteger(_.int):"number"==typeof _?this.setByInteger(_):typeof _.hex<"u"&&this.setValueHex(_.hex))},Ki(Ee.asn1.DEREnumerated,Ee.asn1.ASN1Object),Ee.asn1.DERUTF8String=function(_){Ee.asn1.DERUTF8String.superclass.constructor.call(this,_),this.hT="0c"},Ki(Ee.asn1.DERUTF8String,Ee.asn1.DERAbstractString),Ee.asn1.DERNumericString=function(_){Ee.asn1.DERNumericString.superclass.constructor.call(this,_),this.hT="12"},Ki(Ee.asn1.DERNumericString,Ee.asn1.DERAbstractString),Ee.asn1.DERPrintableString=function(_){Ee.asn1.DERPrintableString.superclass.constructor.call(this,_),this.hT="13"},Ki(Ee.asn1.DERPrintableString,Ee.asn1.DERAbstractString),Ee.asn1.DERTeletexString=function(_){Ee.asn1.DERTeletexString.superclass.constructor.call(this,_),this.hT="14"},Ki(Ee.asn1.DERTeletexString,Ee.asn1.DERAbstractString),Ee.asn1.DERIA5String=function(_){Ee.asn1.DERIA5String.superclass.constructor.call(this,_),this.hT="16"},Ki(Ee.asn1.DERIA5String,Ee.asn1.DERAbstractString),Ee.asn1.DERVisibleString=function(_){Ee.asn1.DERIA5String.superclass.constructor.call(this,_),this.hT="1a"},Ki(Ee.asn1.DERVisibleString,Ee.asn1.DERAbstractString),Ee.asn1.DERBMPString=function(_){Ee.asn1.DERBMPString.superclass.constructor.call(this,_),this.hT="1e"},Ki(Ee.asn1.DERBMPString,Ee.asn1.DERAbstractString),Ee.asn1.DERUTCTime=function(_){Ee.asn1.DERUTCTime.superclass.constructor.call(this,_),this.hT="17",this.params=void 0,this.getFreshValueHex=function(){var L=this.params;if(null==this.params&&(L={date:new Date}),"string"==typeof L){if(!L.match(/^[0-9]{12}Z$/)&&!L.match(/^[0-9]{12}\.[0-9]+Z$/))throw new Error("malformed string for UTCTime: "+L);this.hV=Ns(L)}else null!=L.str?this.hV=Ns(L.str):null==L.date&&1==L.millis?this.hV=Ns(this.formatDate(new Date,"utc",!0)):null!=L.date&&L.date instanceof Date?this.hV=Ns(this.formatDate(L.date,"utc",!0===L.millis)):L instanceof Date&&(this.hV=Ns(this.formatDate(L,"utc")));if(null==this.hV)throw new Error("parameter not specified properly for UTCTime");return this.hV},null!=_&&this.setByParam(_)},Ki(Ee.asn1.DERUTCTime,Ee.asn1.DERAbstractTime),Ee.asn1.DERGeneralizedTime=function(_){Ee.asn1.DERGeneralizedTime.superclass.constructor.call(this,_),this.hT="18",this.params=_,this.getFreshValueHex=function(){var L=this.params;if(null==this.params&&(L={date:new Date}),"string"==typeof L){if(!L.match(/^[0-9]{14}Z$/)&&!L.match(/^[0-9]{14}\.[0-9]+Z$/))throw new Error("malformed string for GeneralizedTime: "+L);this.hV=Ns(L)}else null!=L.str?this.hV=Ns(L.str):null==L.date&&1==L.millis?this.hV=Ns(this.formatDate(new Date,"gen",!0)):null!=L.date&&L.date instanceof Date?this.hV=Ns(this.formatDate(L.date,"gen",!0===L.millis)):L instanceof Date&&(this.hV=Ns(this.formatDate(L,"gen")));if(null==this.hV)throw new Error("parameter not specified properly for GeneralizedTime");return this.hV},null!=_&&this.setByParam(_)},Ki(Ee.asn1.DERGeneralizedTime,Ee.asn1.DERAbstractTime),Ee.asn1.DERSequence=function(_){Ee.asn1.DERSequence.superclass.constructor.call(this,_),this.hT="30",this.getFreshValueHex=function(){for(var L="",D=0;D<this.asn1Array.length;D++)L+=this.asn1Array[D].tohex();return this.hV=L,this.hV}},Ki(Ee.asn1.DERSequence,Ee.asn1.DERAbstractStructured),Ee.asn1.DERSet=function(_){Ee.asn1.DERSet.superclass.constructor.call(this,_),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var L=new Array,D=0;D<this.asn1Array.length;D++)L.push(this.asn1Array[D].tohex());return 1==this.sortFlag&&L.sort(),this.hV=L.join(""),this.hV},typeof _<"u"&&typeof _.sortflag<"u"&&0==_.sortflag&&(this.sortFlag=!1)},Ki(Ee.asn1.DERSet,Ee.asn1.DERAbstractStructured),Ee.asn1.DERTaggedObject=function(_){Ee.asn1.DERTaggedObject.superclass.constructor.call(this);var L=Ee.asn1,B=Ei.getV,he=L.ASN1Util.newObject;this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.params={tag:"a0",explicit:!0},this.setASN1Object=function(Se,we,tt){this.params={tag:we,explicit:Se,obj:tt}},this.getFreshValueHex=function(){var Se=this.params;if(null==Se.explicit&&(Se.explicit=!0),null!=Se.tage&&(Se.tag=Se.tage,Se.explicit=!0),null!=Se.tagi&&(Se.tag=Se.tagi,Se.explicit=!1),null!=Se.str)this.hV=ls(Se.str);else if(null!=Se.hex)this.hV=Se.hex;else{if(null==Se.obj)throw new Error("str, hex nor obj not specified");var we;Se.obj instanceof L.ASN1Object?we=Se.obj.tohex():"object"==typeof Se.obj&&(we=he(Se.obj).tohex()),this.hV=Se.explicit?we:B(we,0)}return null==Se.tag&&(Se.tag="a0"),this.hT=Se.tag,this.hTLV=null,this.isModified=!0,this.hV},this.setByParam=function(Se){this.params=Se},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.DERTaggedObject,Ee.asn1.ASN1Object);var Ee,kt,bn,Ei=new function(){};function ga(_){for(var L="",D=0;D<_.length;D++){var B=_[D].toString(16);1==B.length&&(B="0"+B),L+=B}return L}function Ns(_){return ga(function Ra(_){for(var L=new Array,D=0;D<_.length;D++)L[D]=_.charCodeAt(D);return L}(_))}function oa(_){return(_=(_=_.replace(/\=/g,"")).replace(/\+/g,"-")).replace(/\//g,"_")}function Ft(_){return _.length%4==2?_+="==":_.length%4==3&&(_+="="),(_=_.replace(/-/g,"+")).replace(/_/g,"/")}function mt(_){return _.length%2==1&&(_="0"+_),oa(T(_))}function nn(_){return E(Ft(_))}function ls(_){return ut(Kn(_)).toLowerCase()}function xo(_){try{return decodeURIComponent(cn(_))}catch{return null}}function Go(_){return xo(function ns(_){for(var L=_.match(/.{1,2}/g),D=[],B=0;B<L.length;B++){var re=parseInt(L[B],16);161<=re&&re<=191?(D.push("c2"),D.push(L[B])):192<=re&&re<=255?(D.push("c3"),D.push((re-64).toString(16))):D.push(L[B])}return D.join("")}(_))}function Ps(_){for(var L="",D=0;D<_.length-1;D+=2)L+=String.fromCharCode(parseInt(_.substr(D,2),16));return L}function Or(_){for(var L="",D=0;D<_.length;D++)L+=("0"+_.charCodeAt(D).toString(16)).slice(-2);return L}function Br(_,L){return"-----BEGIN "+L+"-----\r\n"+function Ko(_,L){return(_=_.replace(new RegExp("(.{"+L+"})","g"),"$1\r\n")).replace(/\s+$/,"")}(function pl(_){return T(_)}(_),64)+"\r\n-----END "+L+"-----\r\n"}function xr(_,L){if(-1==_.indexOf("-----BEGIN "))throw new Error("can't find PEM header");return function is(_){return E(_.replace(/[^0-9A-Za-z\/+=]*/g,""))}(_=void 0!==L?(_=_.replace(new RegExp("^[^]*-----BEGIN "+L+"-----"),"")).replace(new RegExp("-----END "+L+"-----[^]*$"),""):(_=_.replace(/^[^]*-----BEGIN [^-]+-----/,"")).replace(/-----END [^-]+-----[^]*$/,""))}function Cr(_){return Math.round(function Ts(_){var L,D,B,re,he,Se,we,Ot,At,Ke;if(Ke=(_=function Ht(_){return _.match(/^[0-9]{12}Z$/)||_.match(/^[0-9]{12}[.][0-9]*Z$/)?_.match(/^[0-4]/)?"20"+_:"19"+_:_}(_)).match(/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/))return L=parseInt(Ke[1]),D=parseInt(Ke[2])-1,B=parseInt(Ke[3]),re=parseInt(Ke[4]),he=parseInt(Ke[5]),Se=parseInt(Ke[6]),we=0,""!==(Ot=Ke[7])&&(At=(Ot.substr(1)+"00").substr(0,3),we=parseInt(At)),Date.UTC(L,D,B,re,he,Se,we);throw new Error("unsupported zulu format: "+_)}(_)/1e3)}function ut(_){return _.replace(/%/g,"")}function cn(_){return _.replace(/(..)/g,"%$1")}function si(_){var L="malformed IPv6 address";if(!_.match(/^[0-9A-Fa-f:]+$/))throw L;var D=(_=_.toLowerCase()).split(":").length-1;if(D<2)throw L;var B=":".repeat(7-D+2),re=(_=_.replace("::",B)).split(":");if(8!=re.length)throw L;for(var he=0;he<8;he++)re[he]=("0000"+re[he]).slice(-4);return re.join("")}function vi(_){if(!_.match(/^[0-9A-Fa-f]{32}$/))throw new Error("malformed IPv6 address: "+_);var L=(_=_.toLowerCase()).match(/.{1,4}/g);L=L.map(function(re){return re.replace(/^0+/,"")}),L=L.map(function(re){return""==re?"0":re});var D=(_=":"+L.join(":")+":").match(/:(0:){2,}/g);if(null==D)return _.slice(1,-1);var B=D.sort().slice(-1)[0];return"::"!=(_=_.replace(B.substr(0,B.length-1),":")).substr(0,2)&&(_=_.substr(1)),"::"!=_.substr(-2,2)&&(_=_.substr(0,_.length-1)),_}function ur(_){var L=new Error("malformed hex value");if(!_.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw L;if(8==_.length)try{return parseInt(_.substr(0,2),16)+"."+parseInt(_.substr(2,2),16)+"."+parseInt(_.substr(4,2),16)+"."+parseInt(_.substr(6,2),16)}catch{throw L}else{if(16!=_.length){if(32==_.length)return vi(_);if(64==_.length){try{return vi(_.substr(0,32))+"/"+gr(_.substr(32))}catch{throw L}return}return _}try{return ur(_.substr(0,8))+"/"+gr(_.substr(8))}catch{throw L}}}function gr(_){var D,L=new Error("malformed mask");try{D=new u(_,16).toString(2)}catch{throw L}if(!D.match(/^1*0*$/))throw L;return D.replace(/0+$/,"").length}function or(_){var L=new Error("malformed IP address");if(!(_=_.toLowerCase(_)).match(/^[0-9a-f.:/]+$/))throw L;if(!_.match(/^[0-9.]+$/)){var Se;if(_.match(/^[0-9.]+\/[0-9]+$/))return or((Se=_.split("/"))[0])+zn(parseInt(Se[1]),32);if(_.match(/^[0-9a-f:]+$/)&&-1!==_.indexOf(":"))return si(_);if(_.match(/^[0-9a-f:]+\/[0-9]+$/)&&-1!==_.indexOf(":"))return si((Se=_.split("/"))[0])+zn(parseInt(Se[1]),128);throw L}var D=_.split(".");if(4!==D.length)throw L;var B="";try{for(var re=0;re<4;re++)B+=("0"+parseInt(D[re]).toString(16)).slice(-2);return B}catch{throw L}}function zn(_,L){return 32==L&&0==_?"00000000":128==L&&0==_?"00000000000000000000000000000000":new u(Array(_+1).join("1")+Array(L-_+1).join("0"),2).toString(16)}function pi(_){var B=_.match(/.{4}/g).map(function L(re){var he=parseInt(re.substr(0,2),16),Se=parseInt(re.substr(2),16);if(0==he&Se<128)return String.fromCharCode(Se);if(he<8){var tt=128|63&Se;return xo((192|(7&he)<<3|(192&Se)>>6).toString(16)+tt.toString(16))}tt=128|(15&he)<<2|(192&Se)>>6;var rt=128|63&Se;return xo((224|(240&he)>>4).toString(16)+tt.toString(16)+rt.toString(16))});return B.join("")}function Kn(_){for(var L=encodeURIComponent(_),D="",B=0;B<L.length;B++)"%"==L[B]?(D+=L.substr(B,3),B+=2):D=D+"%"+Ns(L[B]);return D}function jr(_){return!(_.length%2!=0||!_.match(/^[0-9a-f]+$/)&&!_.match(/^[0-9A-F]+$/))}function No(_){return!!_.match(/^[0-9A-Za-z-_.]+$/)}function Ur(_){return _.length%2==1?"0"+_:_.substr(0,1)>"7"?"00"+_:_}function Ca(_){if(!jr(_))return null;try{var L=[],D=_.substr(0,2),B=parseInt(D,16);L[0]=new String(Math.floor(B/40)),L[1]=new String(B%40);for(var re=_.substr(2),he=[],Se=0;Se<re.length/2;Se++)he.push(parseInt(re.substr(2*Se,2),16));var we=[],tt="";for(Se=0;Se<he.length;Se++)128&he[Se]?tt+=Xa((127&he[Se]).toString(2),7):(tt+=Xa((127&he[Se]).toString(2),7),we.push(new String(parseInt(tt,2))),tt="");var rt=L.join(".");return we.length>0&&(rt=rt+"."+we.join(".")),rt}catch{return null}}function Xs(_){return ds(new u(String(_),10))}function ds(_){var L=_.toString(16);if("-"!=L.substr(0,1))return L.length%2==1?L="0"+L:L.match(/^[0-7]/)||(L="00"+L),L;var B=L.substr(1).length;B%2==1?B+=1:L.match(/^[0-7]/)||(B+=2);for(var re="",he=0;he<B;he++)re+="f";return new u(re,16).xor(_).add(u.ONE).toString(16).replace(/^-/,"")}Ei.getLblen=function(_,L){if("8"!=_.substr(L+2,1))return 1;var D=parseInt(_.substr(L+3,1));return 0==D?-1:0<D&&D<10?D+1:-2},Ei.getL=function(_,L){var D=Ei.getLblen(_,L);return D<1?"":_.substr(L+2,2*D)},Ei.getVblen=function(_,L){var D;return""==(D=Ei.getL(_,L))?-1:("8"===D.substr(0,1)?new u(D.substr(2),16):new u(D,16)).intValue()},Ei.getVidx=function(_,L){var D=Ei.getLblen(_,L);return D<0?D:L+2*(D+1)},Ei.getV=function(_,L){var D=Ei.getVidx(_,L),B=Ei.getVblen(_,L);return _.substr(D,2*B)},Ei.getTLV=function(_,L){return _.substr(L,2)+Ei.getL(_,L)+Ei.getV(_,L)},Ei.getTLVblen=function(_,L){return 2+2*Ei.getLblen(_,L)+2*Ei.getVblen(_,L)},Ei.getNextSiblingIdx=function(_,L){return Ei.getVidx(_,L)+2*Ei.getVblen(_,L)},Ei.getChildIdx=function(_,L){var re,he,Se,D=Ei,B=[];re=D.getVidx(_,L),he=2*D.getVblen(_,L),"03"==_.substr(L,2)&&(re+=2,he-=2),Se=0;for(var we=re;Se<=he;){var tt=D.getTLVblen(_,we);if((Se+=tt)<=he&&B.push(we),we+=tt,Se>=he)break}return B},Ei.getNthChildIdx=function(_,L,D){return Ei.getChildIdx(_,L)[D]},Ei.getIdxbyList=function(_,L,D,B){var he,Se,re=Ei;return 0==D.length?void 0!==B&&_.substr(L,2)!==B?-1:L:(he=D.shift())>=(Se=re.getChildIdx(_,L)).length?-1:re.getIdxbyList(_,Se[he],D,B)},Ei.getIdxbyListEx=function(_,L,D,B){var he,Se,re=Ei;if(0==D.length)return void 0!==B&&_.substr(L,2)!==B?-1:L;he=D.shift(),Se=re.getChildIdx(_,L);for(var we=0,tt=0;tt<Se.length;tt++){var rt=_.substr(Se[tt],2);if("number"==typeof he&&!re.isContextTag(rt)&&we==he||"string"==typeof he&&re.isContextTag(rt,he))return re.getIdxbyListEx(_,Se[tt],D,B);re.isContextTag(rt)||we++}return-1},Ei.getTLVbyList=function(_,L,D,B){var re=Ei,he=re.getIdxbyList(_,L,D,B);return-1==he||he>=_.length?null:re.getTLV(_,he)},Ei.getTLVbyListEx=function(_,L,D,B){var re=Ei,he=re.getIdxbyListEx(_,L,D,B);return-1==he?null:re.getTLV(_,he)},Ei.getVbyList=function(_,L,D,B,re){var Se,we,he=Ei;return-1==(Se=he.getIdxbyList(_,L,D,B))||Se>=_.length?null:(we=he.getV(_,Se),!0===re&&(we=we.substr(2)),we)},Ei.getVbyListEx=function(_,L,D,B,re){var Se,tt,he=Ei;return-1==(Se=he.getIdxbyListEx(_,L,D,B))?null:(tt=he.getV(_,Se),"03"==_.substr(Se,2)&&!1!==re&&(tt=tt.substr(2)),tt)},Ei.getInt=function(_,L,D){null==D&&(D=-1);try{var B=_.substr(L,2);if("02"!=B&&"03"!=B)return D;var re=Ei.getV(_,L);return"02"==B?parseInt(re,16):function fs(_){if(_.length%2!=0||null==(_=_.toLowerCase()).match(/^[0-9a-f]+$/))return-1;try{var L=_.substr(0,2);if("00"==L)return parseInt(_.substr(2),16);var D=parseInt(L,16);if(D>7)return-1;var B=_.substr(2),re=parseInt(B,16).toString(2);"0"==re&&(re="00000000"),re=re.slice(0,0-D);var he=parseInt(re,2);return NaN==he?-1:he}catch{return-1}}(re)}catch{return D}},Ei.getOID=function(_,L,D){null==D&&(D=null);try{return"06"!=_.substr(L,2)?D:Ca(Ei.getV(_,L))}catch{return D}},Ei.getOIDName=function(_,L,D){null==D&&(D=null);try{var B=Ei.getOID(_,L,D);if(B==D)return D;var re=Ee.asn1.x509.OID.oid2name(B);return""==re?B:re}catch{return D}},Ei.getString=function(_,L,D){null==D&&(D=null);try{return Ps(Ei.getV(_,L))}catch{return D}},Ei.hextooidstr=function(_){var L=function(At,Ke){return At.length>=Ke?At:new Array(Ke-At.length+1).join("0")+At},D=[],B=_.substr(0,2),re=parseInt(B,16);D[0]=new String(Math.floor(re/40)),D[1]=new String(re%40);for(var he=_.substr(2),Se=[],we=0;we<he.length/2;we++)Se.push(parseInt(he.substr(2*we,2),16));var tt=[],rt="";for(we=0;we<Se.length;we++)128&Se[we]?rt+=L((127&Se[we]).toString(2),7):(rt+=L((127&Se[we]).toString(2),7),tt.push(new String(parseInt(rt,2))),rt="");var Ot=D.join(".");return tt.length>0&&(Ot=Ot+"."+tt.join(".")),Ot},Ei.dump=function(_,L,D,B){var re=Ei,he=re.getV,Se=re.dump,we=re.getChildIdx,tt=_;_ instanceof Ee.asn1.ASN1Object&&(tt=_.tohex());var rt=function(yi,Bt){return yi.length<=2*Bt?yi:yi.substr(0,Bt)+"..(total "+yi.length/2+"bytes).."+yi.substr(yi.length-Bt,Bt)};void 0===L&&(L={ommit_long_octet:32}),void 0===D&&(D=0),void 0===B&&(B="");var yn,Ot=L.ommit_long_octet;if("01"==(yn=tt.substr(D,2)))return"00"==(At=he(tt,D))?B+"BOOLEAN FALSE\n":B+"BOOLEAN TRUE\n";if("02"==yn)return B+"INTEGER "+rt(At=he(tt,D),Ot)+"\n";if("03"==yn){var At=he(tt,D);return re.isASN1HEX(At.substr(2))?(Ke=B+"BITSTRING, encapsulates\n")+Se(At.substr(2),L,0,B+"  "):B+"BITSTRING "+rt(At,Ot)+"\n"}if("04"==yn)return At=he(tt,D),re.isASN1HEX(At)?(Ke=B+"OCTETSTRING, encapsulates\n")+Se(At,L,0,B+"  "):B+"OCTETSTRING "+rt(At,Ot)+"\n";if("05"==yn)return B+"NULL\n";if("06"==yn){var Ye=he(tt,D),vt=Ee.asn1.ASN1Util.oidHexToInt(Ye),Be=Ee.asn1.x509.OID.oid2name(vt),_t=vt.replace(/\./g," ");return""!=Be?B+"ObjectIdentifier "+Be+" ("+_t+")\n":B+"ObjectIdentifier ("+_t+")\n"}if("0a"==yn)return B+"ENUMERATED "+parseInt(he(tt,D))+"\n";if("0c"==yn)return B+"UTF8String '"+xo(he(tt,D))+"'\n";if("13"==yn)return B+"PrintableString '"+xo(he(tt,D))+"'\n";if("14"==yn)return B+"TeletexString '"+xo(he(tt,D))+"'\n";if("16"==yn)return B+"IA5String '"+xo(he(tt,D))+"'\n";if("17"==yn)return B+"UTCTime "+xo(he(tt,D))+"\n";if("18"==yn)return B+"GeneralizedTime "+xo(he(tt,D))+"\n";if("1a"==yn)return B+"VisualString '"+xo(he(tt,D))+"'\n";if("1e"==yn)return B+"BMPString '"+pi(he(tt,D))+"'\n";if("30"==yn){if("3000"==tt.substr(D,4))return B+"SEQUENCE {}\n";Ke=B+"SEQUENCE\n";var $t=L;if((2==(pt=we(tt,D)).length||3==pt.length)&&"06"==tt.substr(pt[0],2)&&"04"==tt.substr(pt[pt.length-1],2)){Be=re.oidname(he(tt,pt[0]));var hn=JSON.parse(JSON.stringify(L));hn.x509ExtName=Be,$t=hn}for(var mn=0;mn<pt.length;mn++)Ke+=Se(tt,$t,pt[mn],B+"  ");return Ke}if("31"==yn){Ke=B+"SET\n";var pt=we(tt,D);for(mn=0;mn<pt.length;mn++)Ke+=Se(tt,L,pt[mn],B+"  ");return Ke}if(128&(yn=parseInt(yn,16))){var Ke,ci=31&yn;if(32&yn){for(Ke=B+"["+ci+"]\n",pt=we(tt,D),mn=0;mn<pt.length;mn++)Ke+=Se(tt,L,pt[mn],B+"  ");return Ke}return At=he(tt,D),Ei.isASN1HEX(At)?(Ke=B+"["+ci+"]\n")+Se(At,L,0,B+"  "):(("68747470"==At.substr(0,8)||"subjectAltName"===L.x509ExtName&&2==ci)&&(At=xo(At)),B+"["+ci+"] "+At+"\n")}return B+"UNKNOWN("+yn+") "+he(tt,D)+"\n"},Ei.parse=function(_){var D=Ei.parse,B=Ei.isASN1HEX,re=Ei.getV,he=Ei.getTLV,Se=Ei.getChildIdx,we=Ee.asn1,tt=we.ASN1Util.oidHexToInt,rt=we.x509.OID.oid2name,Ot=xo,At=pi,Ke=Go,Ye={"0c":"utf8str",12:"numstr",13:"prnstr",14:"telstr",16:"ia5str",17:"utctime",18:"gentime","1a":"visstr","1e":"bmpstr",30:"seq",31:"set"},Be=_.substr(0,2),_t={},pt=re(_,0);if("01"==Be)return"0101ff"==_?{bool:!0}:{bool:!1};if("02"==Be)return{int:{hex:pt}};if("03"==Be)try{if("00"!=pt.substr(0,2))throw"not encap";var $t=pt.substr(2);if(!B($t))throw"not encap";return{bitstr:{obj:D($t)}}}catch{var hn=null;return pt.length<=10&&(hn=function Ea(_){if("string"!=typeof _||_.length%2!=0||!_.match(/^[0-9a-f]+$/))return null;try{var L=parseInt(_.substr(0,2),16);if(L<0||7<L)return null;for(var D=_.substr(2),B="",re=0;re<D.length;re+=2){var he=D.substr(re,2),Se=parseInt(he,16).toString(2);B+=Se=("0000000"+Se).slice(-8)}return B.substr(0,B.length-L)}catch{return null}}(pt)),null==hn?{bitstr:{hex:pt}}:{bitstr:{bin:hn}}}else if("04"==Be)try{if(!B(pt))throw"not encap";return{octstr:{obj:D(pt)}}}catch{return{octstr:{hex:pt}}}else{if("05"==Be)return{null:""};if("06"==Be){var mn=tt(pt),yn=rt(mn);return""==yn?{oid:mn}:{oid:yn}}if("0a"==Be)return pt.length>4?{enum:{hex:pt}}:{enum:parseInt(pt,16)};if("30"==Be||"31"==Be)return _t[Ye[Be]]=function(Rt){for(var fn=[],An=Se(Rt,0),Nn=0;Nn<An.length;Nn++){var Hn=he(Rt,An[Nn]),Xn=D(Hn);fn.push(Xn)}return fn}(_),_t;if("14"==Be){var ci=Ke(pt);return _t[Ye[Be]]={str:ci},_t}if("1e"==Be)return ci=At(pt),_t[Ye[Be]]={str:ci},_t;if(-1!=":0c:12:13:16:17:18:1a:".indexOf(Be))return ci=Ot(pt),_t[Ye[Be]]={str:ci},_t;if(Be.match(/^8[0-9]$/))return null==(ci=Ot(pt))|""==ci||null!=ci.match(/[\x00-\x1F\x7F-\x9F]/)||null!=ci.match(/[\u0000-\u001F\u0080\u2013\u009F]/)?{tag:{tag:Be,explicit:!1,hex:pt}}:{tag:{tag:Be,explicit:!1,str:ci}};if(!Be.match(/^a[0-9]$/)){var yi=new Ee.asn1.ASN1Object;return yi.hV=pt,{asn1:{tlv:Be+yi.getLengthHexFromValue()+pt}}}try{if(!B(pt))throw new Error("not encap");return{tag:{tag:Be,explicit:!0,obj:D(pt)}}}catch{return{tag:{tag:Be,explicit:!0,hex:pt}}}}},Ei.isContextTag=function(_,L){var D,B;_=_.toLowerCase();try{D=parseInt(_,16)}catch{return-1}if(void 0===L)return 128==(192&D);try{return!(null==L.match(/^\[[0-9]+\]$/)||(B=parseInt(L.substr(1,L.length-1),10),B>31))&&128==(192&D)&&(31&D)==B}catch{return!1}},Ei.isASN1HEX=function(_){var L=Ei;if(_.length%2==1)return!1;var D=L.getVblen(_,0),B=_.substr(0,2),re=L.getL(_,0);return _.length-B.length-re.length==2*D},Ei.checkStrictDER=function(_,L,D,B,re){var he=Ei;if(void 0===D){if("string"!=typeof _)throw new Error("not hex string");if(_=_.toLowerCase(),!Ee.lang.String.isHex(_))throw new Error("not hex string");D=_.length,re=(B=_.length/2)<128?1:Math.ceil(B.toString(16))+1}if(he.getL(_,L).length>2*re)throw new Error("L of TLV too long: idx="+L);var we=he.getVblen(_,L);if(we>B)throw new Error("value of L too long than hex: idx="+L);var tt=he.getTLV(_,L),rt=tt.length-2-he.getL(_,L).length;if(rt!==2*we)throw new Error("V string length and L's value not the same:"+rt+"/"+2*we);if(0===L&&_.length!=tt.length)throw new Error("total length and TLV length unmatch:"+_.length+"!="+tt.length);var Ot=_.substr(L,2);if("02"===Ot){var At=he.getVidx(_,L);if("00"==_.substr(At,2)&&_.charCodeAt(At+2)<56)throw new Error("not least zeros for DER INTEGER")}if(32&parseInt(Ot,16)){for(var Ke=he.getVblen(_,L),Ye=0,vt=he.getChildIdx(_,L),Be=0;Be<vt.length;Be++)Ye+=he.getTLV(_,vt[Be]).length,he.checkStrictDER(_,vt[Be],D,B,re);if(2*Ke!=Ye)throw new Error("sum of children's TLV length and L unmatch: "+2*Ke+"!="+Ye)}},Ei.oidname=function(_){var L=Ee.asn1;Ee.lang.String.isHex(_)&&(_=L.ASN1Util.oidHexToInt(_));var D=L.x509.OID.oid2name(_);return""===D&&(D=_),D},(typeof Ee>"u"||!Ee)&&(Ee={}),(typeof Ee.asn1>"u"||!Ee.asn1)&&(Ee.asn1={}),(typeof Ee.asn1.x509>"u"||!Ee.asn1.x509)&&(Ee.asn1.x509={}),Ee.asn1.x509.Certificate=function(_){Ee.asn1.x509.Certificate.superclass.constructor.call(this);var D=Ee.asn1,B=D.DERBitString,re=D.DERSequence,he=D.x509,Se=he.TBSCertificate,we=he.AlgorithmIdentifier;this.params=void 0,this.setByParam=function(tt){this.params=tt},this.sign=function(){var tt=this.params,rt=tt.sigalg;null!=tt.sigalg.name&&(rt=tt.sigalg.name);var Ot=tt.tbsobj.tohex(),At=new Ee.crypto.Signature({alg:rt});At.init(tt.cakey),At.updateHex(Ot),tt.sighex=At.sign()},this.getPEM=function(){return Br(this.tohex(),"CERTIFICATE")},this.tohex=function(){var tt=this.params;if((null==tt.tbsobj||null==tt.tbsobj)&&(tt.tbsobj=new Se(tt)),null==tt.sighex&&null!=tt.cakey&&this.sign(),null==tt.sighex)throw new Error("sighex or cakey parameter not defined");var rt=[];return rt.push(tt.tbsobj),rt.push(new we({name:tt.sigalg})),rt.push(new B({hex:"00"+tt.sighex})),new re({array:rt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&(this.params=_)},Ki(Ee.asn1.x509.Certificate,Ee.asn1.ASN1Object),Ee.asn1.x509.TBSCertificate=function(_){Ee.asn1.x509.TBSCertificate.superclass.constructor.call(this);var D=Ee.asn1,B=D.x509,re=D.DERTaggedObject,he=D.DERInteger,Se=D.DERSequence,we=B.AlgorithmIdentifier,tt=B.Time,rt=B.X500Name,Ot=B.Extensions,At=B.SubjectPublicKeyInfo;this.params=null,this.setByParam=function(Ke){this.params=Ke},this.tohex=function(){var Ke=[],Ye=this.params;if(null!=Ye.version||1!=Ye.version){var vt=2;null!=Ye.version&&(vt=Ye.version-1);var Be=new re({obj:new he({int:vt})});Ke.push(Be)}return Ke.push(new he(Ye.serial)),Ke.push(new we({name:Ye.sigalg})),Ke.push(new rt(Ye.issuer)),Ke.push(new Se({array:[new tt(Ye.notbefore),new tt(Ye.notafter)]})),Ke.push(new rt(Ye.subject)),Ke.push(new At(Uo.getKey(Ye.sbjpubkey))),void 0!==Ye.ext&&Ye.ext.length>0&&Ke.push(new re({tag:"a3",obj:new Ot(Ye.ext)})),new Ee.asn1.DERSequence({array:Ke}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.x509.TBSCertificate,Ee.asn1.ASN1Object),Ee.asn1.x509.Extensions=function(_){Ee.asn1.x509.Extensions.superclass.constructor.call(this);var D=Ee.asn1,B=D.DERSequence,re=D.x509;this.aParam=[],this.setByParam=function(he){this.aParam=he},this.tohex=function(){for(var he=[],Se=0;Se<this.aParam.length;Se++){var we=this.aParam[Se],tt=we.extname,rt=null;if(null!=we.extn)rt=new re.PrivateExtension(we);else if("subjectKeyIdentifier"==tt)rt=new re.SubjectKeyIdentifier(we);else if("keyUsage"==tt)rt=new re.KeyUsage(we);else if("subjectAltName"==tt)rt=new re.SubjectAltName(we);else if("issuerAltName"==tt)rt=new re.IssuerAltName(we);else if("basicConstraints"==tt)rt=new re.BasicConstraints(we);else if("nameConstraints"==tt)rt=new re.NameConstraints(we);else if("cRLDistributionPoints"==tt)rt=new re.CRLDistributionPoints(we);else if("certificatePolicies"==tt)rt=new re.CertificatePolicies(we);else if("policyMappings"==tt)rt=new re.PolicyMappings(we);else if("policyConstraints"==tt)rt=new re.PolicyConstraints(we);else if("inhibitAnyPolicy"==tt)rt=new re.InhibitAnyPolicy(we);else if("authorityKeyIdentifier"==tt)rt=new re.AuthorityKeyIdentifier(we);else if("extKeyUsage"==tt)rt=new re.ExtKeyUsage(we);else if("authorityInfoAccess"==tt)rt=new re.AuthorityInfoAccess(we);else if("cRLNumber"==tt)rt=new re.CRLNumber(we);else if("cRLReason"==tt)rt=new re.CRLReason(we);else if("ocspNonce"==tt)rt=new re.OCSPNonce(we);else if("ocspNoCheck"==tt)rt=new re.OCSPNoCheck(we);else if("adobeTimeStamp"==tt)rt=new re.AdobeTimeStamp(we);else{if("subjectDirectoryAttributes"!=tt)throw new Error("extension not supported:"+JSON.stringify(we));rt=new re.SubjectDirectoryAttributes(we)}null!=rt&&he.push(rt)}return new B({array:he}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.x509.Extensions,Ee.asn1.ASN1Object),Ee.asn1.x509.Extension=function(_){Ee.asn1.x509.Extension.superclass.constructor.call(this);var B=Ee.asn1,re=B.DERObjectIdentifier,he=B.DEROctetString,we=B.DERBoolean,tt=B.DERSequence;this.tohex=function(){var rt=new re({oid:this.oid}),Ot=new he({hex:this.getExtnValueHex()}),At=new Array;return At.push(rt),this.critical&&At.push(new we),At.push(Ot),new tt({array:At}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.critical=!1,void 0!==_&&void 0!==_.critical&&(this.critical=_.critical)},Ki(Ee.asn1.x509.Extension,Ee.asn1.ASN1Object),Ee.asn1.x509.KeyUsage=function(_){Ee.asn1.x509.KeyUsage.superclass.constructor.call(this,_);var L=Error,D={digitalSignature:0,nonRepudiation:1,keyEncipherment:2,dataEncipherment:3,keyAgreement:4,keyCertSign:5,cRLSign:6,encipherOnly:7,decipherOnly:8};this.getExtnValueHex=function(){var B=this.getBinValue();return this.asn1ExtnValue=new Ee.asn1.DERBitString({bin:B}),this.asn1ExtnValue.tohex()},this.getBinValue=function(){var B=this.params;if("object"!=typeof B||"object"!=typeof B.names&&"string"!=typeof B.bin)throw new L("parameter not yet set");if(null!=B.names)return Ma(B.names,D);if(null!=B.bin)return B.bin;throw new L("parameter not set properly")},this.oid="2.5.29.15",void 0!==_&&(this.params=_)},Ki(Ee.asn1.x509.KeyUsage,Ee.asn1.x509.Extension),Ee.asn1.x509.BasicConstraints=function(_){Ee.asn1.x509.BasicConstraints.superclass.constructor.call(this,_);var L=Ee.asn1,D=L.DERBoolean,B=L.DERInteger,re=L.DERSequence;this.getExtnValueHex=function(){var we=new Array;this.cA&&we.push(new D),this.pathLen>-1&&we.push(new B({int:this.pathLen}));var tt=new re({array:we});return this.asn1ExtnValue=tt,this.asn1ExtnValue.tohex()},this.oid="2.5.29.19",this.cA=!1,this.pathLen=-1,void 0!==_&&(void 0!==_.cA&&(this.cA=_.cA),void 0!==_.pathLen&&(this.pathLen=_.pathLen))},Ki(Ee.asn1.x509.BasicConstraints,Ee.asn1.x509.Extension),Ee.asn1.x509.CRLDistributionPoints=function(_){Ee.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this,_);var D=Ee.asn1,B=D.x509;this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.setByDPArray=function(re){for(var he=[],Se=0;Se<re.length;Se++)if(re[Se]instanceof Ee.asn1.ASN1Object)he.push(re[Se]);else{var we=new B.DistributionPoint(re[Se]);he.push(we)}this.asn1ExtnValue=new D.DERSequence({array:he})},this.setByOneURI=function(re){var he=new B.DistributionPoint({fulluri:re});this.setByDPArray([he])},this.oid="2.5.29.31",void 0!==_&&(void 0!==_.array?this.setByDPArray(_.array):void 0!==_.uri&&this.setByOneURI(_.uri))},Ki(Ee.asn1.x509.CRLDistributionPoints,Ee.asn1.x509.Extension),Ee.asn1.x509.DistributionPoint=function(_){Ee.asn1.x509.DistributionPoint.superclass.constructor.call(this);var B=Ee.asn1,re=B.x509.DistributionPointName;this.tohex=function(){var he=new B.DERSequence;if(null!=this.asn1DP){var Se=new B.DERTaggedObject({explicit:!0,tag:"a0",obj:this.asn1DP});he.appendASN1Object(Se)}return this.hTLV=he.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&(void 0!==_.dpobj?this.asn1DP=_.dpobj:void 0!==_.dpname?this.asn1DP=new re(_.dpname):void 0!==_.fulluri&&(this.asn1DP=new re({full:[{uri:_.fulluri}]})))},Ki(Ee.asn1.x509.DistributionPoint,Ee.asn1.ASN1Object),Ee.asn1.x509.DistributionPointName=function(_){Ee.asn1.x509.DistributionPointName.superclass.constructor.call(this);var Se=Ee.asn1,we=Se.DERTaggedObject;if(this.tohex=function(){if("full"!=this.type)throw new Error("currently type shall be 'full': "+this.type);return this.asn1Obj=new we({explicit:!1,tag:this.tag,obj:this.asn1V}),this.hTLV=this.asn1Obj.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_)if(Se.x509.GeneralNames.prototype.isPrototypeOf(_))this.type="full",this.tag="a0",this.asn1V=_;else{if(void 0===_.full)throw new Error("This class supports GeneralNames only as argument");this.type="full",this.tag="a0",this.asn1V=new Se.x509.GeneralNames(_.full)}},Ki(Ee.asn1.x509.DistributionPointName,Ee.asn1.ASN1Object),Ee.asn1.x509.CertificatePolicies=function(_){Ee.asn1.x509.CertificatePolicies.superclass.constructor.call(this,_);var D=Ee.asn1,re=D.DERSequence,he=D.x509.PolicyInformation;this.params=null,this.getExtnValueHex=function(){for(var Se=[],we=0;we<this.params.array.length;we++)Se.push(new he(this.params.array[we]));var tt=new re({array:Se});return this.asn1ExtnValue=tt,this.asn1ExtnValue.tohex()},this.oid="2.5.29.32",void 0!==_&&(this.params=_)},Ki(Ee.asn1.x509.CertificatePolicies,Ee.asn1.x509.Extension),Ee.asn1.x509.PolicyInformation=function(_){Ee.asn1.x509.PolicyInformation.superclass.constructor.call(this,_);var L=Ee.asn1,D=L.DERSequence,B=L.DERObjectIdentifier,re=L.x509.PolicyQualifierInfo;this.params=null,this.tohex=function(){if(void 0===this.params.policyoid&&void 0===this.params.array)throw new Error("parameter oid and array missing");var he=[new B(this.params.policyoid)];if(void 0!==this.params.array){for(var Se=[],we=0;we<this.params.array.length;we++)Se.push(new re(this.params.array[we]));Se.length>0&&he.push(new D({array:Se}))}return new D({array:he}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&(this.params=_)},Ki(Ee.asn1.x509.PolicyInformation,Ee.asn1.ASN1Object),Ee.asn1.x509.PolicyQualifierInfo=function(_){Ee.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this,_);var L=Ee.asn1,D=L.DERSequence,B=L.DERIA5String,re=L.DERObjectIdentifier,he=L.x509.UserNotice;this.params=null,this.tohex=function(){return void 0!==this.params.cps?new D({array:[new re({oid:"1.3.6.1.5.5.7.2.1"}),new B({str:this.params.cps})]}).tohex():null!=this.params.unotice?new D({array:[new re({oid:"1.3.6.1.5.5.7.2.2"}),new he(this.params.unotice)]}).tohex():void 0},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&(this.params=_)},Ki(Ee.asn1.x509.PolicyQualifierInfo,Ee.asn1.ASN1Object),Ee.asn1.x509.UserNotice=function(_){Ee.asn1.x509.UserNotice.superclass.constructor.call(this,_);var L=Ee.asn1.DERSequence,B=Ee.asn1.x509.DisplayText,re=Ee.asn1.x509.NoticeReference;this.params=null,this.tohex=function(){var he=[];return void 0!==this.params.noticeref&&he.push(new re(this.params.noticeref)),void 0!==this.params.exptext&&he.push(new B(this.params.exptext)),new L({array:he}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&(this.params=_)},Ki(Ee.asn1.x509.UserNotice,Ee.asn1.ASN1Object),Ee.asn1.x509.NoticeReference=function(_){Ee.asn1.x509.NoticeReference.superclass.constructor.call(this,_);var L=Ee.asn1.DERSequence,D=Ee.asn1.DERInteger,B=Ee.asn1.x509.DisplayText;this.params=null,this.tohex=function(){var re=[];if(void 0!==this.params.org&&re.push(new B(this.params.org)),void 0!==this.params.noticenum){for(var he=[],Se=this.params.noticenum,we=0;we<Se.length;we++)he.push(new D(Se[we]));re.push(new L({array:he}))}if(0==re.length)throw new Error("parameter is empty");return new L({array:re}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&(this.params=_)},Ki(Ee.asn1.x509.NoticeReference,Ee.asn1.ASN1Object),Ee.asn1.x509.DisplayText=function(_){Ee.asn1.x509.DisplayText.superclass.constructor.call(this,_),this.hT="0c",void 0!==_&&("ia5"===_.type?this.hT="16":"vis"===_.type?this.hT="1a":"bmp"===_.type&&(this.hT="1e"))},Ki(Ee.asn1.x509.DisplayText,Ee.asn1.DERAbstractString),Ee.asn1.x509.PolicyMappings=function(_){Ee.asn1.x509.PolicyMappings.superclass.constructor.call(this,_);var re=Ee.asn1.ASN1Util.newObject;this.params=null,this.getExtnValueHex=function(){for(var he=this.params,Se=[],we=0;we<he.array.length;we++){var tt=he.array[we];Se.push({seq:[{oid:tt[0]},{oid:tt[1]}]})}return this.asn1ExtnValue=re({seq:Se}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.33",void 0!==_&&(this.params=_)},Ki(Ee.asn1.x509.PolicyMappings,Ee.asn1.x509.Extension),Ee.asn1.x509.PolicyConstraints=function(_){Ee.asn1.x509.PolicyConstraints.superclass.constructor.call(this,_);var re=Ee.asn1.ASN1Util.newObject;this.params=null,this.getExtnValueHex=function(){var he=this.params,Se=[];return null!=he.reqexp&&Se.push({tag:{tagi:"80",obj:{int:he.reqexp}}}),null!=he.inhibit&&Se.push({tag:{tagi:"81",obj:{int:he.inhibit}}}),this.asn1ExtnValue=re({seq:Se}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.36",void 0!==_&&(this.params=_)},Ki(Ee.asn1.x509.PolicyConstraints,Ee.asn1.x509.Extension),Ee.asn1.x509.InhibitAnyPolicy=function(_){Ee.asn1.x509.InhibitAnyPolicy.superclass.constructor.call(this,_);var re=Ee.asn1.ASN1Util.newObject;this.params=null,this.getExtnValueHex=function(){return this.asn1ExtnValue=re({int:this.params.skip}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.54",void 0!==_&&(this.params=_)},Ki(Ee.asn1.x509.InhibitAnyPolicy,Ee.asn1.x509.Extension),Ee.asn1.x509.NameConstraints=function(_){Ee.asn1.x509.NameConstraints.superclass.constructor.call(this,_);var D=Ee.asn1,re=D.ASN1Util.newObject,he=D.x509.GeneralSubtree;this.params=null,this.getExtnValueHex=function(){var Se=this.params,we=[];if(null!=Se.permit&&null!=Se.permit.length){for(var tt=[],rt=0;rt<Se.permit.length;rt++)tt.push(new he(Se.permit[rt]));we.push({tag:{tagi:"a0",obj:{seq:tt}}})}if(null!=Se.exclude&&null!=Se.exclude.length){var Ot=[];for(rt=0;rt<Se.exclude.length;rt++)Ot.push(new he(Se.exclude[rt]));we.push({tag:{tagi:"a1",obj:{seq:Ot}}})}return this.asn1ExtnValue=re({seq:we}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.30",void 0!==_&&(this.params=_)},Ki(Ee.asn1.x509.NameConstraints,Ee.asn1.x509.Extension),Ee.asn1.x509.GeneralSubtree=function(_){Ee.asn1.x509.GeneralSubtree.superclass.constructor.call(this);var L=Ee.asn1,B=L.x509.GeneralName,re=L.ASN1Util.newObject;this.params=null,this.setByParam=function(he){this.params=he},this.tohex=function(){var he=this.params,Se=[new B(he)];return null!=he.min&&Se.push({tag:{tagi:"80",obj:{int:he.min}}}),null!=he.max&&Se.push({tag:{tagi:"81",obj:{int:he.max}}}),re({seq:Se}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.x509.GeneralSubtree,Ee.asn1.ASN1Object),Ee.asn1.x509.ExtKeyUsage=function(_){Ee.asn1.x509.ExtKeyUsage.superclass.constructor.call(this,_);var D=Ee.asn1;this.setPurposeArray=function(B){this.asn1ExtnValue=new D.DERSequence;for(var re=0;re<B.length;re++){var he=new D.DERObjectIdentifier(B[re]);this.asn1ExtnValue.appendASN1Object(he)}},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.37",void 0!==_&&void 0!==_.array&&this.setPurposeArray(_.array)},Ki(Ee.asn1.x509.ExtKeyUsage,Ee.asn1.x509.Extension),Ee.asn1.x509.AuthorityKeyIdentifier=function(_){Ee.asn1.x509.AuthorityKeyIdentifier.superclass.constructor.call(this,_);var D=Ee.asn1,B=D.DERTaggedObject,re=D.x509.GeneralNames;this.asn1KID=null,this.asn1CertIssuer=null,this.asn1CertSN=null,this.getExtnValueHex=function(){var Se=new Array;this.asn1KID&&Se.push(new B({explicit:!1,tag:"80",obj:this.asn1KID})),this.asn1CertIssuer&&Se.push(new B({explicit:!1,tag:"a1",obj:new re([{dn:this.asn1CertIssuer}])})),this.asn1CertSN&&Se.push(new B({explicit:!1,tag:"82",obj:this.asn1CertSN}));var we=new D.DERSequence({array:Se});return this.asn1ExtnValue=we,this.asn1ExtnValue.tohex()},this.setKIDByParam=function(Se){if(void 0!==Se.str||void 0!==Se.hex)this.asn1KID=new Ee.asn1.DEROctetString(Se);else if("object"==typeof Se&&Ee.crypto.Util.isKey(Se)||"string"==typeof Se&&-1!=Se.indexOf("BEGIN ")){var we=Se;"string"==typeof Se&&(we=Uo.getKey(Se));var tt=Uo.getKeyID(we);this.asn1KID=new Ee.asn1.DEROctetString({hex:tt})}},this.setCertIssuerByParam=function(Se){void 0!==Se.str||void 0!==Se.ldapstr||void 0!==Se.hex||void 0!==Se.certsubject||void 0!==Se.certissuer?this.asn1CertIssuer=new Ee.asn1.x509.X500Name(Se):"string"==typeof Se&&-1!=Se.indexOf("BEGIN ")&&-1!=Se.indexOf("CERTIFICATE")&&(this.asn1CertIssuer=new Ee.asn1.x509.X500Name({certissuer:Se}))},this.setCertSNByParam=function(Se){if(void 0!==Se.str||void 0!==Se.bigint||void 0!==Se.hex)this.asn1CertSN=new Ee.asn1.DERInteger(Se);else if("string"==typeof Se&&-1!=Se.indexOf("BEGIN ")&&Se.indexOf("CERTIFICATE")){var we=new Kr;we.readCertPEM(Se);var tt=we.getSerialNumberHex();this.asn1CertSN=new Ee.asn1.DERInteger({hex:tt})}},this.oid="2.5.29.35",void 0!==_&&(void 0!==_.kid&&this.setKIDByParam(_.kid),void 0!==_.issuer&&this.setCertIssuerByParam(_.issuer),void 0!==_.sn&&this.setCertSNByParam(_.sn),void 0!==_.issuersn&&"string"==typeof _.issuersn&&-1!=_.issuersn.indexOf("BEGIN ")&&_.issuersn.indexOf("CERTIFICATE")&&(this.setCertSNByParam(_.issuersn),this.setCertIssuerByParam(_.issuersn)))},Ki(Ee.asn1.x509.AuthorityKeyIdentifier,Ee.asn1.x509.Extension),Ee.asn1.x509.SubjectKeyIdentifier=function(_){Ee.asn1.x509.SubjectKeyIdentifier.superclass.constructor.call(this,_);var B=Ee.asn1.DEROctetString;this.asn1KID=null,this.getExtnValueHex=function(){return this.asn1ExtnValue=this.asn1KID,this.asn1ExtnValue.tohex()},this.setKIDByParam=function(re){if(void 0!==re.str||void 0!==re.hex)this.asn1KID=new B(re);else if("object"==typeof re&&Ee.crypto.Util.isKey(re)||"string"==typeof re&&-1!=re.indexOf("BEGIN")){var he=re;"string"==typeof re&&(he=Uo.getKey(re));var Se=Uo.getKeyID(he);this.asn1KID=new Ee.asn1.DEROctetString({hex:Se})}},this.oid="2.5.29.14",void 0!==_&&void 0!==_.kid&&this.setKIDByParam(_.kid)},Ki(Ee.asn1.x509.SubjectKeyIdentifier,Ee.asn1.x509.Extension),Ee.asn1.x509.AuthorityInfoAccess=function(_){Ee.asn1.x509.AuthorityInfoAccess.superclass.constructor.call(this,_),this.setAccessDescriptionArray=function(L){for(var D=new Array,re=Ee.asn1,he=re.DERSequence,Se=re.DERObjectIdentifier,we=re.x509.GeneralName,tt=0;tt<L.length;tt++){var rt,Ot=L[tt];if(void 0!==Ot.ocsp)rt=new he({array:[new Se({oid:"1.3.6.1.5.5.7.48.1"}),new we({uri:Ot.ocsp})]});else{if(void 0===Ot.caissuer)throw new Error("unknown AccessMethod parameter: "+JSON.stringify(Ot));rt=new he({array:[new Se({oid:"1.3.6.1.5.5.7.48.2"}),new we({uri:Ot.caissuer})]})}D.push(rt)}this.asn1ExtnValue=new he({array:D})},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.1.1",void 0!==_&&void 0!==_.array&&this.setAccessDescriptionArray(_.array)},Ki(Ee.asn1.x509.AuthorityInfoAccess,Ee.asn1.x509.Extension),Ee.asn1.x509.SubjectAltName=function(_){Ee.asn1.x509.SubjectAltName.superclass.constructor.call(this,_),this.setNameArray=function(L){this.asn1ExtnValue=new Ee.asn1.x509.GeneralNames(L)},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.17",void 0!==_&&void 0!==_.array&&this.setNameArray(_.array)},Ki(Ee.asn1.x509.SubjectAltName,Ee.asn1.x509.Extension),Ee.asn1.x509.IssuerAltName=function(_){Ee.asn1.x509.IssuerAltName.superclass.constructor.call(this,_),this.setNameArray=function(L){this.asn1ExtnValue=new Ee.asn1.x509.GeneralNames(L)},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.18",void 0!==_&&void 0!==_.array&&this.setNameArray(_.array)},Ki(Ee.asn1.x509.IssuerAltName,Ee.asn1.x509.Extension),Ee.asn1.x509.SubjectDirectoryAttributes=function(_){Ee.asn1.x509.SubjectDirectoryAttributes.superclass.constructor.call(this,_);var L=Ee.asn1,D=L.DERSequence,B=L.ASN1Util.newObject,re=L.x509.OID.name2oid;this.params=null,this.getExtnValueHex=function(){for(var he=[],Se=0;Se<this.params.array.length;Se++){var we=this.params.array[Se];if(null==we.attr||null==we.array){var rt={seq:[{oid:"1.2.3.4"},{set:[{utf8str:"DE"}]}]};if("dateOfBirth"==we.attr)rt.seq[0].oid=re(we.attr),rt.seq[1].set[0]={gentime:we.str};else if("placeOfBirth"==we.attr)rt.seq[0].oid=re(we.attr),rt.seq[1].set[0]={utf8str:we.str};else if("gender"==we.attr)rt.seq[0].oid=re(we.attr),rt.seq[1].set[0]={prnstr:we.str};else if("countryOfCitizenship"==we.attr)rt.seq[0].oid=re(we.attr),rt.seq[1].set[0]={prnstr:we.str};else{if("countryOfResidence"!=we.attr)throw new Error("unsupported attribute: "+we.attr);rt.seq[0].oid=re(we.attr),rt.seq[1].set[0]={prnstr:we.str}}he.push(new B(rt))}else he.push(B({seq:[{oid:we.attr},{set:we.array}]}))}var Ot=new D({array:he});return this.asn1ExtnValue=Ot,this.asn1ExtnValue.tohex()},this.oid="2.5.29.9",void 0!==_&&(this.params=_)},Ki(Ee.asn1.x509.SubjectDirectoryAttributes,Ee.asn1.x509.Extension),Ee.asn1.x509.PrivateExtension=function(_){Ee.asn1.x509.PrivateExtension.superclass.constructor.call(this,_);var D=Ee.lang.String.isHex,B=Ee.asn1,re=B.x509.OID.name2oid,he=B.ASN1Util.newObject;this.params=null,this.setByParam=function(Se){this.oid=re(Se.extname),this.params=Se},this.getExtnValueHex=function(){if(null==this.params.extname||null==this.params.extn)throw new Error("extname or extnhex not specified");var Se=this.params.extn;if("string"==typeof Se&&D(Se))return Se;if("object"==typeof Se)try{return he(Se).tohex()}catch{}throw new Error("unsupported extn value")},null!=_&&this.setByParam(_)},Ki(Ee.asn1.x509.PrivateExtension,Ee.asn1.x509.Extension),Ee.asn1.x509.CRL=function(_){Ee.asn1.x509.CRL.superclass.constructor.call(this);var D=Ee.asn1,B=D.DERSequence,re=D.DERBitString,he=D.x509,Se=he.AlgorithmIdentifier,we=he.TBSCertList;this.params=void 0,this.setByParam=function(tt){this.params=tt},this.sign=function(){var tt=new we(this.params).tohex(),rt=new Ee.crypto.Signature({alg:this.params.sigalg});rt.init(this.params.cakey),rt.updateHex(tt);var Ot=rt.sign();this.params.sighex=Ot},this.getPEM=function(){return Br(this.tohex(),"X509 CRL")},this.tohex=function(){var tt=this.params;if(null==tt.tbsobj&&(tt.tbsobj=new we(tt)),null==tt.sighex&&null!=tt.cakey&&this.sign(),null==tt.sighex)throw new Error("sighex or cakey parameter not defined");var rt=[];return rt.push(tt.tbsobj),rt.push(new Se({name:tt.sigalg})),rt.push(new re({hex:"00"+tt.sighex})),new B({array:rt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&(this.params=_)},Ki(Ee.asn1.x509.CRL,Ee.asn1.ASN1Object),Ee.asn1.x509.TBSCertList=function(_){Ee.asn1.x509.TBSCertList.superclass.constructor.call(this);var D=Ee.asn1,B=D.DERInteger,re=D.DERSequence,he=D.DERTaggedObject,we=D.x509,tt=we.AlgorithmIdentifier,rt=we.Time,Ot=we.Extensions,At=we.X500Name;this.params=null,this.setByParam=function(Ke){this.params=Ke},this.getRevCertSequence=function(){for(var Ke=[],Ye=this.params.revcert,vt=0;vt<Ye.length;vt++){var Be=[new B(Ye[vt].sn),new rt(Ye[vt].date)];null!=Ye[vt].ext&&Be.push(new Ot(Ye[vt].ext)),Ke.push(new re({array:Be}))}return new re({array:Ke})},this.tohex=function(){var Ke=[],Ye=this.params;if(null!=Ye.version){var Be=new B({int:Ye.version-1});Ke.push(Be)}if(Ke.push(new tt({name:Ye.sigalg})),Ke.push(new At(Ye.issuer)),Ke.push(new rt(Ye.thisupdate)),null!=Ye.nextupdate&&Ke.push(new rt(Ye.nextupdate)),null!=Ye.revcert&&Ke.push(this.getRevCertSequence()),null!=Ye.ext){var _t=new Ot(Ye.ext);Ke.push(new he({tag:"a0",explicit:!0,obj:_t}))}return new re({array:Ke}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.x509.TBSCertList,Ee.asn1.ASN1Object),Ee.asn1.x509.CRLEntry=function(_){Ee.asn1.x509.CRLEntry.superclass.constructor.call(this);var re=Ee.asn1;this.setCertSerial=function(he){this.sn=new re.DERInteger(he)},this.setRevocationDate=function(he){this.time=new re.x509.Time(he)},this.tohex=function(){var he=new re.DERSequence({array:[this.sn,this.time]});return this.TLV=he.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&(void 0!==_.time&&this.setRevocationDate(_.time),void 0!==_.sn&&this.setCertSerial(_.sn))},Ki(Ee.asn1.x509.CRLEntry,Ee.asn1.ASN1Object),Ee.asn1.x509.CRLNumber=function(_){Ee.asn1.x509.CRLNumber.superclass.constructor.call(this,_),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new Ee.asn1.DERInteger(this.params.num),this.asn1ExtnValue.tohex()},this.oid="2.5.29.20",null!=_&&(this.params=_)},Ki(Ee.asn1.x509.CRLNumber,Ee.asn1.x509.Extension),Ee.asn1.x509.CRLReason=function(_){Ee.asn1.x509.CRLReason.superclass.constructor.call(this,_),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new Ee.asn1.DEREnumerated(this.params.code),this.asn1ExtnValue.tohex()},this.oid="2.5.29.21",null!=_&&(this.params=_)},Ki(Ee.asn1.x509.CRLReason,Ee.asn1.x509.Extension),Ee.asn1.x509.OCSPNonce=function(_){Ee.asn1.x509.OCSPNonce.superclass.constructor.call(this,_),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new Ee.asn1.DEROctetString(this.params),this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.48.1.2",null!=_&&(this.params=_)},Ki(Ee.asn1.x509.OCSPNonce,Ee.asn1.x509.Extension),Ee.asn1.x509.OCSPNoCheck=function(_){Ee.asn1.x509.OCSPNoCheck.superclass.constructor.call(this,_),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new Ee.asn1.DERNull,this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.48.1.5",null!=_&&(this.params=_)},Ki(Ee.asn1.x509.OCSPNoCheck,Ee.asn1.x509.Extension),Ee.asn1.x509.AdobeTimeStamp=function(_){Ee.asn1.x509.AdobeTimeStamp.superclass.constructor.call(this,_);var D=Ee.asn1,B=D.DERInteger,re=D.DERBoolean,he=D.DERSequence,Se=D.x509.GeneralName;this.params=null,this.getExtnValueHex=function(){var we=this.params,tt=[new B(1)];return tt.push(new Se({uri:we.uri})),null!=we.reqauth&&tt.push(new re(we.reqauth)),this.asn1ExtnValue=new he({array:tt}),this.asn1ExtnValue.tohex()},this.oid="1.2.840.113583.1.1.9.1",void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.x509.AdobeTimeStamp,Ee.asn1.x509.Extension),Ee.asn1.x509.X500Name=function(_){Ee.asn1.x509.X500Name.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var D=Ee.asn1,B=D.x509,re=B.RDN;this.setByString=function(Se,we){void 0!==we&&(this.sRule=we);var tt=Se.split("/");tt.shift();for(var rt=[],Ot=0;Ot<tt.length;Ot++)if(tt[Ot].match(/^[^=]+=.+$/))rt.push(tt[Ot]);else{var At=rt.length-1;rt[At]=rt[At]+"/"+tt[Ot]}for(Ot=0;Ot<rt.length;Ot++)this.asn1Array.push(new re({str:rt[Ot],rule:this.sRule}))},this.setByLdapString=function(Se,we){void 0!==we&&(this.sRule=we);var tt=B.X500Name.ldapToCompat(Se);this.setByString(tt,we)},this.setByObject=function(Se,we){for(var tt in void 0!==we&&(this.sRule=we),Se)if(Se.hasOwnProperty(tt)){var rt=new re({str:tt+"="+Se[tt],rule:this.sRule});this.asn1Array?this.asn1Array.push(rt):this.asn1Array=[rt]}},this.setByParam=function(Se){if(void 0!==Se.rule&&(this.sRule=Se.rule),void 0!==Se.array)this.paramArray=Se.array;else if(void 0!==Se.str)this.setByString(Se.str);else if(void 0!==Se.ldapstr)this.setByLdapString(Se.ldapstr);else if(void 0!==Se.hex)this.hTLV=Se.hex;else if(void 0!==Se.certissuer)(we=new Kr).readCertPEM(Se.certissuer),this.hTLV=we.getIssuerHex();else if(void 0!==Se.certsubject){var we;(we=new Kr).readCertPEM(Se.certsubject),this.hTLV=we.getSubjectHex()}else"object"==typeof Se&&void 0===Se.certsubject&&void 0===Se.certissuer&&this.setByObject(Se)},this.tohex=function(){if("string"==typeof this.hTLV)return this.hTLV;if(0==this.asn1Array.length&&this.paramArray.length>0)for(var Se=0;Se<this.paramArray.length;Se++){var we={array:this.paramArray[Se]};"utf8"!=this.sRule&&(we.rule=this.sRule);var tt=new re(we);this.asn1Array.push(tt)}var rt=new D.DERSequence({array:this.asn1Array});return this.hTLV=rt.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.x509.X500Name,Ee.asn1.ASN1Object),Ee.asn1.x509.X500Name.compatToLDAP=function(_){if("/"!==_.substr(0,1))throw"malformed input";var D=(_=_.substr(1)).split("/");return D.reverse(),D=D.map(function(B){return B.replace(/,/,"\\,")}),D.join(",")},Ee.asn1.x509.X500Name.onelineToLDAP=function(_){return Ee.asn1.x509.X500Name.compatToLDAP(_)},Ee.asn1.x509.X500Name.ldapToCompat=function(_){for(var L=_.split(","),D=!1,B=[],re=0;L.length>0;re++){var he=L.shift();if(!0===D){var we=(B.pop()+","+he).replace(/\\,/g,",");B.push(we),D=!1}else B.push(he);"\\"===he.substr(-1,1)&&(D=!0)}return B=B.map(function(tt){return tt.replace("/","\\/")}),B.reverse(),"/"+B.join("/")},Ee.asn1.x509.X500Name.ldapToOneline=function(_){return Ee.asn1.x509.X500Name.ldapToCompat(_)},Ee.asn1.x509.RDN=function(_){Ee.asn1.x509.RDN.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var L=Ee.asn1.x509.AttributeTypeAndValue;this.setByParam=function(D){void 0!==D.rule&&(this.sRule=D.rule),void 0!==D.str&&this.addByMultiValuedString(D.str),void 0!==D.array&&(this.paramArray=D.array)},this.addByString=function(D){this.asn1Array.push(new Ee.asn1.x509.AttributeTypeAndValue({str:D,rule:this.sRule}))},this.addByMultiValuedString=function(D){for(var B=Ee.asn1.x509.RDN.parseString(D),re=0;re<B.length;re++)this.addByString(B[re])},this.tohex=function(){if(0==this.asn1Array.length&&this.paramArray.length>0)for(var D=0;D<this.paramArray.length;D++){var B=this.paramArray[D];void 0!==B.rule&&"utf8"!=this.sRule&&(B.rule=this.sRule);var re=new L(B);this.asn1Array.push(re)}var he=new Ee.asn1.DERSet({array:this.asn1Array});return this.TLV=he.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.x509.RDN,Ee.asn1.ASN1Object),Ee.asn1.x509.RDN.parseString=function(_){for(var L=_.split(/\+/),D=!1,B=[],re=0;L.length>0;re++){var he=L.shift();if(!0===D){var we=(B.pop()+"+"+he).replace(/\\\+/g,"+");B.push(we),D=!1}else B.push(he);"\\"===he.substr(-1,1)&&(D=!0)}var tt=!1,rt=[];for(re=0;B.length>0;re++){if(he=B.shift(),!0===tt){var Ot=rt.pop();he.match(/"$/)?(we=(Ot+"+"+he).replace(/^([^=]+)="(.*)"$/,"$1=$2"),rt.push(we),tt=!1):rt.push(Ot+"+"+he)}else rt.push(he);he.match(/^[^=]+="/)&&(tt=!0)}return rt},Ee.asn1.x509.AttributeTypeAndValue=function(_){Ee.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this),this.sRule="utf8",this.sType=null,this.sValue=null,this.dsType=null;var D=Ee.asn1,B=D.DERSequence,re=D.DERUTF8String,he=D.DERPrintableString,Se=D.DERTeletexString,we=D.DERIA5String,tt=D.DERVisibleString,rt=D.DERBMPString,Ot=Ee.lang.String.isMail,At=Ee.lang.String.isPrintable;this.setByParam=function(Ke){if(void 0!==Ke.rule&&(this.sRule=Ke.rule),void 0!==Ke.ds&&(this.dsType=Ke.ds),void 0===Ke.value&&void 0!==Ke.str){var vt=Ke.str.match(/^([^=]+)=(.+)$/);if(!vt)throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr);this.sType=vt[1],this.sValue=vt[2]}else this.sType=Ke.type,this.sValue=Ke.value},this.setByString=function(Ke,Ye){void 0!==Ye&&(this.sRule=Ye);var vt=Ke.match(/^([^=]+)=(.+)$/);if(!vt)throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr);this.setByAttrTypeAndValueStr(vt[1],vt[2])},this._getDsType=function(){var Ke=this.sType,Ye=this.sValue,vt=this.sRule;return"prn"===vt?"CN"==Ke&&Ot(Ye)?"ia5":At(Ye)?"prn":"utf8":"utf8"===vt?"CN"==Ke&&Ot(Ye)?"ia5":"C"==Ke?"prn":"utf8":"utf8"},this.setByAttrTypeAndValueStr=function(Ke,Ye,vt){void 0!==vt&&(this.sRule=vt),this.sType=Ke,this.sValue=Ye},this.getValueObj=function(Ke,Ye){if("utf8"==Ke)return new re({str:Ye});if("prn"==Ke)return new he({str:Ye});if("tel"==Ke)return new Se({str:Ye});if("ia5"==Ke)return new we({str:Ye});if("vis"==Ke)return new tt({str:Ye});if("bmp"==Ke)return new rt({str:Ye});throw new Error("unsupported directory string type: type="+Ke+" value="+Ye)},this.tohex=function(){null==this.dsType&&(this.dsType=this._getDsType());var Ke=Ee.asn1.x509.OID.atype2obj(this.sType),Ye=this.getValueObj(this.dsType,this.sValue),vt=new B({array:[Ke,Ye]});return this.TLV=vt.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.x509.AttributeTypeAndValue,Ee.asn1.ASN1Object),Ee.asn1.x509.SubjectPublicKeyInfo=function(_){Ee.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);var re=Ee.asn1,he=re.DERInteger,Se=re.DERBitString,we=re.DERObjectIdentifier,tt=re.DERSequence,rt=re.ASN1Util.newObject,At=re.x509.AlgorithmIdentifier;this.getASN1Object=function(){if(null==this.asn1AlgId||null==this.asn1SubjPKey)throw"algId and/or subjPubKey not set";return new tt({array:[this.asn1AlgId,this.asn1SubjPKey]})},this.tohex=function(){var Be=this.getASN1Object();return this.hTLV=Be.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.setPubKey=function(Be){try{if(Be instanceof Er){var pt=rt({seq:[{int:{bigint:Be.n}},{int:{int:Be.e}}]}).tohex();this.asn1AlgId=new At({name:"rsaEncryption"}),this.asn1SubjPKey=new Se({hex:"00"+pt})}}catch{}try{if(Be instanceof Ee.crypto.ECDSA){var $t=new we({name:Be.curveName});this.asn1AlgId=new At({name:"ecPublicKey",asn1params:$t}),this.asn1SubjPKey=new Se({hex:"00"+Be.pubKeyHex})}}catch{}try{if(Be instanceof Ee.crypto.DSA){$t=new rt({seq:[{int:{bigint:Be.p}},{int:{bigint:Be.q}},{int:{bigint:Be.g}}]}),this.asn1AlgId=new At({name:"dsa",asn1params:$t});var hn=new he({bigint:Be.y});this.asn1SubjPKey=new Se({hex:"00"+hn.tohex()})}}catch{}},void 0!==_&&this.setPubKey(_)},Ki(Ee.asn1.x509.SubjectPublicKeyInfo,Ee.asn1.ASN1Object),Ee.asn1.x509.Time=function(_){Ee.asn1.x509.Time.superclass.constructor.call(this);var re=Ee.asn1,he=re.DERUTCTime,Se=re.DERGeneralizedTime;this.params=null,this.type=null,this.setTimeParams=function(we){this.timeParams=we},this.setByParam=function(we){this.params=we},this.getType=function(we){return we.match(/^[0-9]{12}Z$/)?"utc":we.match(/^[0-9]{14}Z$/)?"gen":we.match(/^[0-9]{12}\.[0-9]+Z$/)?"utc":we.match(/^[0-9]{14}\.[0-9]+Z$/)?"gen":null},this.tohex=function(){var we=this.params,tt=null;if("string"==typeof we&&(we={str:we}),null!=we&&we.str&&(null==we.type||null==we.type)&&(we.type=this.getType(we.str)),null!=we&&we.str?("utc"==we.type&&(tt=new he(we.str)),"gen"==we.type&&(tt=new Se(we.str))):tt="gen"==this.type?new Se:new he,null==tt)throw new Error("wrong setting for Time");return this.TLV=tt.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ee.asn1.x509.Time_bak=function(_){Ee.asn1.x509.Time_bak.superclass.constructor.call(this);var re=Ee.asn1,he=re.DERUTCTime,Se=re.DERGeneralizedTime;this.setTimeParams=function(we){this.timeParams=we},this.tohex=function(){var we=null;return we=null!=this.timeParams?"utc"==this.type?new he(this.timeParams):new Se(this.timeParams):"utc"==this.type?new he:new Se,this.TLV=we.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},this.type="utc",void 0!==_&&(void 0!==_.type?this.type=_.type:void 0!==_.str&&(_.str.match(/^[0-9]{12}Z$/)&&(this.type="utc"),_.str.match(/^[0-9]{14}Z$/)&&(this.type="gen")),this.timeParams=_)},Ki(Ee.asn1.x509.Time,Ee.asn1.ASN1Object),Ee.asn1.x509.AlgorithmIdentifier=function(_){Ee.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this),this.nameAlg=null,this.asn1Alg=null,this.asn1Params=null,this.paramEmpty=!1;var D=Ee.asn1,B=D.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;if(this.tohex=function(){if(null===this.nameAlg&&null===this.asn1Alg)throw new Error("algorithm not specified");if(null!==this.nameAlg){var he=null;for(var Se in B)Se===this.nameAlg&&(he=B[Se]);if(null!==he)return this.hTLV=he,this.hTLV}null!==this.nameAlg&&null===this.asn1Alg&&(this.asn1Alg=D.x509.OID.name2obj(this.nameAlg));var we=[this.asn1Alg];null!==this.asn1Params&&we.push(this.asn1Params);var tt=new D.DERSequence({array:we});return this.hTLV=tt.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&(void 0!==_.name&&(this.nameAlg=_.name),void 0!==_.asn1params&&(this.asn1Params=_.asn1params),void 0!==_.paramempty&&(this.paramEmpty=_.paramempty)),null===this.asn1Params&&!1===this.paramEmpty&&null!==this.nameAlg){void 0!==this.nameAlg.name&&(this.nameAlg=this.nameAlg.name);var re=this.nameAlg.toLowerCase();"withdsa"!==re.substr(-7,7)&&"withecdsa"!==re.substr(-9,9)&&(this.asn1Params=new D.DERNull)}},Ki(Ee.asn1.x509.AlgorithmIdentifier,Ee.asn1.ASN1Object),Ee.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV={SHAwithRSAandMGF1:"300d06092a864886f70d01010a3000",SHA256withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120",SHA384withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130",SHA512withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140"},Ee.asn1.x509.GeneralName=function(_){Ee.asn1.x509.GeneralName.superclass.constructor.call(this);var B=Ee.asn1,re=B.x509,he=re.X500Name,Se=re.OtherName,we=B.DERIA5String,rt=B.DEROctetString,Ot=B.DERTaggedObject,At=B.ASN1Object,Ke=Error;this.params=null,this.setByParam=function(Ye){this.params=Ye},this.tohex=function(){var vt,Be,Ye=this.params,_t=!1;if(void 0!==Ye.other)vt="a0",Be=new Se(Ye.other);else if(void 0!==Ye.rfc822)vt="81",Be=new we({str:Ye.rfc822});else if(void 0!==Ye.dns)vt="82",Be=new we({str:Ye.dns});else if(void 0!==Ye.dn)vt="a4",_t=!0,Be="string"==typeof Ye.dn?new he({str:Ye.dn}):Ye.dn instanceof Ee.asn1.x509.X500Name?Ye.dn:new he(Ye.dn);else if(void 0!==Ye.ldapdn)vt="a4",_t=!0,Be=new he({ldapstr:Ye.ldapdn});else if(void 0!==Ye.certissuer||void 0!==Ye.certsubj){vt="a4",_t=!0;var pt,$t,hn=null;if(void 0!==Ye.certsubj?(pt=!1,$t=Ye.certsubj):(pt=!0,$t=Ye.certissuer),$t.match(/^[0-9A-Fa-f]+$/),-1!=$t.indexOf("-----BEGIN ")&&(hn=xr($t)),null==hn)throw new Error("certsubj/certissuer not cert");var yn,mn=new Kr;mn.hex=hn,yn=pt?mn.getIssuerHex():mn.getSubjectHex(),(Be=new At).hTLV=yn}else if(void 0!==Ye.uri)vt="86",Be=new we({str:Ye.uri});else{if(void 0===Ye.ip)throw new Ke("improper params");vt="87";var ci,yi=Ye.ip;try{if(yi.match(/^[0-9a-f]+$/)){var Bt=yi.length;if(8!=Bt&&16!=Bt&&32!=Bt&&64!=Bt)throw"err";ci=yi}else ci=or(yi)}catch(fn){throw new Ke("malformed IP address: "+Ye.ip+":"+fn.message)}Be=new rt({hex:ci})}return new Ot({tag:vt,explicit:_t,obj:Be}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.x509.GeneralName,Ee.asn1.ASN1Object),Ee.asn1.x509.GeneralNames=function(_){Ee.asn1.x509.GeneralNames.superclass.constructor.call(this);var B=Ee.asn1;this.setByParamArray=function(re){for(var he=0;he<re.length;he++){var Se=new B.x509.GeneralName(re[he]);this.asn1Array.push(Se)}},this.tohex=function(){return new B.DERSequence({array:this.asn1Array}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.asn1Array=new Array,typeof _<"u"&&this.setByParamArray(_)},Ki(Ee.asn1.x509.GeneralNames,Ee.asn1.ASN1Object),Ee.asn1.x509.OtherName=function(_){Ee.asn1.x509.OtherName.superclass.constructor.call(this);var re=Ee.asn1,he=re.DERObjectIdentifier,Se=re.DERSequence,we=re.ASN1Util.newObject;this.params=null,this.setByParam=function(tt){this.params=tt},this.tohex=function(){var tt=this.params;if(null==tt.oid||null==tt.value)throw new Error("oid or value not specified");var rt=new he({oid:tt.oid}),Ot=we({tag:{tag:"a0",explicit:!0,obj:tt.value}});return new Se({array:[rt,Ot]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.x509.OtherName,Ee.asn1.ASN1Object),Ee.asn1.x509.OID=new function(){var _=Ee.asn1.DERObjectIdentifier;this.name2oidList={"aes128-CBC":"2.16.840.1.101.3.4.1.2","aes256-CBC":"2.16.840.1.101.3.4.1.42",sha1:"1.3.14.3.2.26",sha256:"2.16.840.1.101.3.4.2.1",sha384:"2.16.840.1.101.3.4.2.2",sha512:"2.16.840.1.101.3.4.2.3",sha224:"2.16.840.1.101.3.4.2.4",md5:"1.2.840.113549.2.5",md2:"1.3.14.7.2.2.1",ripemd160:"1.3.36.3.2.1",hmacWithSHA1:"1.2.840.113549.2.7",hmacWithSHA224:"1.2.840.113549.2.8",hmacWithSHA256:"1.2.840.113549.2.9",hmacWithSHA384:"1.2.840.113549.2.10",hmacWithSHA512:"1.2.840.113549.2.11",MD2withRSA:"1.2.840.113549.1.1.2",MD4withRSA:"1.2.840.113549.1.1.3",MD5withRSA:"1.2.840.113549.1.1.4",SHA1withRSA:"1.2.840.113549.1.1.5","pkcs1-MGF":"1.2.840.113549.1.1.8",rsaPSS:"1.2.840.113549.1.1.10",SHA224withRSA:"1.2.840.113549.1.1.14",SHA256withRSA:"1.2.840.113549.1.1.11",SHA384withRSA:"1.2.840.113549.1.1.12",SHA512withRSA:"1.2.840.113549.1.1.13",SHA1withECDSA:"1.2.840.10045.4.1",SHA224withECDSA:"1.2.840.10045.4.3.1",SHA256withECDSA:"1.2.840.10045.4.3.2",SHA384withECDSA:"1.2.840.10045.4.3.3",SHA512withECDSA:"1.2.840.10045.4.3.4",dsa:"1.2.840.10040.4.1",SHA1withDSA:"1.2.840.10040.4.3",SHA224withDSA:"2.16.840.1.101.3.4.3.1",SHA256withDSA:"2.16.840.1.101.3.4.3.2",rsaEncryption:"1.2.840.113549.1.1.1",commonName:"2.5.4.3",countryName:"2.5.4.6",localityName:"2.5.4.7",stateOrProvinceName:"2.5.4.8",streetAddress:"2.5.4.9",organizationName:"2.5.4.10",organizationalUnitName:"2.5.4.11",domainComponent:"0.9.2342.19200300.100.1.25",userId:"0.9.2342.19200300.100.1.1",surname:"2.5.4.4",givenName:"2.5.4.42",title:"2.5.4.12",distinguishedName:"2.5.4.49",emailAddress:"1.2.840.113549.1.9.1",description:"2.5.4.13",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",uniqueIdentifier:"2.5.4.45",organizationIdentifier:"2.5.4.97",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3",subjectDirectoryAttributes:"2.5.29.9",subjectKeyIdentifier:"2.5.29.14",keyUsage:"2.5.29.15",subjectAltName:"2.5.29.17",issuerAltName:"2.5.29.18",basicConstraints:"2.5.29.19",cRLNumber:"2.5.29.20",cRLReason:"2.5.29.21",nameConstraints:"2.5.29.30",cRLDistributionPoints:"2.5.29.31",certificatePolicies:"2.5.29.32",anyPolicy:"2.5.29.32.0",policyMappings:"2.5.29.33",authorityKeyIdentifier:"2.5.29.35",policyConstraints:"2.5.29.36",extKeyUsage:"2.5.29.37",inhibitAnyPolicy:"2.5.29.54",authorityInfoAccess:"1.3.6.1.5.5.7.1.1",ocsp:"1.3.6.1.5.5.7.48.1",ocspBasic:"1.3.6.1.5.5.7.48.1.1",ocspNonce:"1.3.6.1.5.5.7.48.1.2",ocspNoCheck:"1.3.6.1.5.5.7.48.1.5",caIssuers:"1.3.6.1.5.5.7.48.2",anyExtendedKeyUsage:"2.5.29.37.0",serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",emailProtection:"1.3.6.1.5.5.7.3.4",timeStamping:"1.3.6.1.5.5.7.3.8",ocspSigning:"1.3.6.1.5.5.7.3.9",smtpUTF8Mailbox:"1.3.6.1.5.5.7.8.9",dateOfBirth:"1.3.6.1.5.5.7.9.1",placeOfBirth:"1.3.6.1.5.5.7.9.2",gender:"1.3.6.1.5.5.7.9.3",countryOfCitizenship:"1.3.6.1.5.5.7.9.4",countryOfResidence:"1.3.6.1.5.5.7.9.5",ecPublicKey:"1.2.840.10045.2.1","P-256":"1.2.840.10045.3.1.7",secp256r1:"1.2.840.10045.3.1.7",secp256k1:"1.3.132.0.10",secp384r1:"1.3.132.0.34",secp521r1:"1.3.132.0.35",pkcs5PBES2:"1.2.840.113549.1.5.13",pkcs5PBKDF2:"1.2.840.113549.1.5.12","des-EDE3-CBC":"1.2.840.113549.3.7",data:"1.2.840.113549.1.7.1","signed-data":"1.2.840.113549.1.7.2","enveloped-data":"1.2.840.113549.1.7.3","digested-data":"1.2.840.113549.1.7.5","encrypted-data":"1.2.840.113549.1.7.6","authenticated-data":"1.2.840.113549.1.9.16.1.2",tstinfo:"1.2.840.113549.1.9.16.1.4",signingCertificate:"1.2.840.113549.1.9.16.2.12",timeStampToken:"1.2.840.113549.1.9.16.2.14",signaturePolicyIdentifier:"1.2.840.113549.1.9.16.2.15",etsArchiveTimeStamp:"1.2.840.113549.1.9.16.2.27",signingCertificateV2:"1.2.840.113549.1.9.16.2.47",etsArchiveTimeStampV2:"1.2.840.113549.1.9.16.2.48",extensionRequest:"1.2.840.113549.1.9.14",contentType:"1.2.840.113549.1.9.3",messageDigest:"1.2.840.113549.1.9.4",signingTime:"1.2.840.113549.1.9.5",counterSignature:"1.2.840.113549.1.9.6",archiveTimeStampV3:"0.4.0.1733.2.4",pdfRevocationInfoArchival:"1.2.840.113583.1.1.8",adobeTimeStamp:"1.2.840.113583.1.1.9.1",smimeMailboxLegacy:"2.23.140.1.5.1.1",smimeMailboxMulti:"2.23.140.1.5.1.2",smimeMailboxStrict:"2.23.140.1.5.1.3",smimeOrganizationLegacy:"2.23.140.1.5.2.1",smimeOrganizationMulti:"2.23.140.1.5.2.2",smimeOrganizationStrict:"2.23.140.1.5.2.3",smimeSponsorLegacy:"2.23.140.1.5.3.1",smimeSponsorMulti:"2.23.140.1.5.3.2",smimeSponsorStrict:"2.23.140.1.5.3.3",smimeIndividualLegacy:"2.23.140.1.5.4.1",smimeIndividualMulti:"2.23.140.1.5.4.2",smimeIndividualStrict:"2.23.140.1.5.4.3"},this.atype2oidList={CN:"2.5.4.3",L:"2.5.4.7",ST:"2.5.4.8",O:"2.5.4.10",OU:"2.5.4.11",C:"2.5.4.6",STREET:"2.5.4.9",DC:"0.9.2342.19200300.100.1.25",UID:"0.9.2342.19200300.100.1.1",SN:"2.5.4.4",T:"2.5.4.12",GN:"2.5.4.42",DN:"2.5.4.49",E:"1.2.840.113549.1.9.1",description:"2.5.4.13",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",serialNumber:"2.5.4.5",uniqueIdentifier:"2.5.4.45",organizationIdentifier:"2.5.4.97",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3"},this.objCache={},this.name2obj=function(L){if(typeof this.objCache[L]<"u")return this.objCache[L];if(typeof this.name2oidList[L]>"u")throw"Name of ObjectIdentifier not defined: "+L;var B=new _({oid:this.name2oidList[L]});return this.objCache[L]=B,B},this.atype2obj=function(L){if(void 0!==this.objCache[L])return this.objCache[L];var D;if(L.match(/^\d+\.\d+\.[0-9.]+$/))D=L;else if(void 0!==this.atype2oidList[L])D=this.atype2oidList[L];else{if(void 0===this.name2oidList[L])throw new Error("AttributeType name undefined: "+L);D=this.name2oidList[L]}var B=new _({oid:D});return this.objCache[L]=B,B},this.registerOIDs=function(L){if(this.checkOIDs(L))for(var D in L)this.name2oidList[D]=L[D]},this.checkOIDs=function(L){try{var D=Object.keys(L);return 0!=D.length&&(D.map(function(B,re,he){if(!this[B].match(/^[0-2]\.[0-9.]+$/))throw new Error("value is not OID")},L),!0)}catch{return!1}}},Ee.asn1.x509.OID.oid2name=function(_){var L=Ee.asn1.x509.OID.name2oidList;for(var D in L)if(L[D]==_)return D;return""},Ee.asn1.x509.OID.oid2atype=function(_){var L=Ee.asn1.x509.OID.atype2oidList;for(var D in L)if(L[D]==_)return D;return _},Ee.asn1.x509.OID.name2oid=function(_){if(_.match(/^[0-9.]+$/))return _;var L=Ee.asn1.x509.OID.name2oidList;return void 0===L[_]?"":L[_]},Ee.asn1.x509.X509Util={},Ee.asn1.x509.X509Util.newCertPEM=function(_){return new(0,Ee.asn1.x509.Certificate)(_).getPEM()},(typeof Ee>"u"||!Ee)&&(Ee={}),(typeof Ee.asn1>"u"||!Ee.asn1)&&(Ee.asn1={}),(typeof Ee.asn1.cms>"u"||!Ee.asn1.cms)&&(Ee.asn1.cms={}),Ee.asn1.cms.Attribute=function(_){var L=Error,B=Ee.asn1,re=B.DERSequence,he=B.DERSet,Se=B.DERObjectIdentifier;this.params=null,this.typeOid=null,this.setByParam=function(we){this.params=we},this.getValueArray=function(){throw new L("not yet implemented abstract")},this.tohex=function(){var we=new Se({oid:this.typeOid}),tt=new he({array:this.getValueArray()});return new re({array:[we,tt]}).tohex()},this.getEncodedHex=function(){return this.tohex()}},Ki(Ee.asn1.cms.Attribute,Ee.asn1.ASN1Object),Ee.asn1.cms.ContentType=function(_){var D=Ee.asn1;D.cms.ContentType.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.3",this.getValueArray=function(){return[new D.DERObjectIdentifier(this.params.type)]},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.ContentType,Ee.asn1.cms.Attribute),Ee.asn1.cms.MessageDigest=function(_){var D=Ee.asn1,B=D.DEROctetString;D.cms.MessageDigest.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.4",this.getValueArray=function(){return[new B(this.params)]},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.MessageDigest,Ee.asn1.cms.Attribute),Ee.asn1.cms.SigningTime=function(_){var D=Ee.asn1;D.cms.SigningTime.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.5",this.getValueArray=function(){return[new D.x509.Time(this.params)]},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.SigningTime,Ee.asn1.cms.Attribute),Ee.asn1.cms.SigningCertificate=function(_){var L=Error,B=Ee.asn1,re=B.DERSequence,he=B.cms,Se=he.ESSCertID;he.SigningCertificate.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.12",this.getValueArray=function(){if(null==this.params||null==this.params||null==this.params.array)throw new L("parameter 'array' not specified");for(var tt=this.params.array,rt=[],Ot=0;Ot<tt.length;Ot++){var At=tt[Ot];0==_.hasis&&"string"==typeof At&&(-1!=At.indexOf("-----BEGIN")||Ei.isASN1HEX(At))&&(At={cert:At}),0!=At.hasis&&0==_.hasis&&(At.hasis=!1),rt.push(new Se(At))}var Ke=new re({array:rt});return[new re({array:[Ke]})]},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.SigningCertificate,Ee.asn1.cms.Attribute),Ee.asn1.cms.ESSCertID=function(_){Ee.asn1.cms.ESSCertID.superclass.constructor.call(this);var L=Error,D=Ee,B=D.asn1,re=B.DEROctetString,he=B.DERSequence,Se=B.cms.IssuerSerial;this.params=null,this.getCertHash=function(we,tt){if(null!=we.hash)return we.hash;if("string"==typeof we&&-1==we.indexOf("-----BEGIN")&&!Ei.isASN1HEX(we))return we;var rt,Ot,At;if("string"==typeof we)rt=we;else{if(null==we.cert)throw new L("hash nor cert unspecified");rt=we.cert}if(Ot=-1!=rt.indexOf("-----BEGIN")?xr(rt):rt,"string"==typeof we&&(-1!=we.indexOf("-----BEGIN")?Ot=xr(we):Ei.isASN1HEX(we)&&(Ot=we)),null!=we.alg)At=we.alg;else{if(null==tt)throw new L("hash alg unspecified");At=tt}return D.crypto.Util.hashHex(Ot,At)},this.tohex=function(){var we=this.params,tt=this.getCertHash(we,"sha1"),rt=[];return rt.push(new re({hex:tt})),("string"==typeof we&&-1!=we.indexOf("-----BEGIN")||null!=we.cert&&0!=we.hasis||null!=we.issuer&&null!=we.serial)&&rt.push(new Se(we)),new he({array:rt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.ESSCertID,Ee.asn1.ASN1Object),Ee.asn1.cms.SigningCertificateV2=function(_){var L=Error,B=Ee.asn1,re=B.DERSequence,Se=B.cms,we=Se.ESSCertIDv2;Se.SigningCertificateV2.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.47",this.getValueArray=function(){if(null==this.params||null==this.params||null==this.params.array)throw new L("parameter 'array' not specified");for(var rt=this.params.array,Ot=[],At=0;At<rt.length;At++){var Ke=rt[At];(null!=_.alg||0==_.hasis)&&"string"==typeof Ke&&(-1!=Ke.indexOf("-----BEGIN")||Ei.isASN1HEX(Ke))&&(Ke={cert:Ke}),null==Ke.alg&&null!=_.alg&&(Ke.alg=_.alg),0!=Ke.hasis&&0==_.hasis&&(Ke.hasis=!1),Ot.push(new we(Ke))}var Ye=new re({array:Ot});return[new re({array:[Ye]})]},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.SigningCertificateV2,Ee.asn1.cms.Attribute),Ee.asn1.cms.ESSCertIDv2=function(_){Ee.asn1.cms.ESSCertIDv2.superclass.constructor.call(this),Error;var B=Ee.asn1,re=B.DEROctetString,he=B.DERSequence,Se=B.cms.IssuerSerial,we=B.x509.AlgorithmIdentifier;this.params=null,this.tohex=function(){var tt=this.params,rt=this.getCertHash(tt,"sha256"),Ot=[];return null!=tt.alg&&"sha256"!=tt.alg&&Ot.push(new we({name:tt.alg})),Ot.push(new re({hex:rt})),("string"==typeof tt&&-1!=tt.indexOf("-----BEGIN")||null!=tt.cert&&0!=tt.hasis||null!=tt.issuer&&null!=tt.serial)&&Ot.push(new Se(tt)),new he({array:Ot}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.ESSCertIDv2,Ee.asn1.cms.ESSCertID),Ee.asn1.cms.IssuerSerial=function(_){var L=Error,B=Ee.asn1,re=B.DERInteger,he=B.DERSequence,tt=B.x509.GeneralNames,rt=Kr;B.cms.IssuerSerial.superclass.constructor.call(this),this.setByParam=function(Ot){this.params=Ot},this.tohex=function(){var At,Ke,Ot=this.params;if("string"==typeof Ot&&-1!=Ot.indexOf("-----BEGIN")||null!=Ot.cert){var Ye;Ye=null!=Ot.cert?Ot.cert:Ot;var vt=new rt;vt.readCertPEM(Ye),At=vt.getIssuer(),Ke={hex:vt.getSerialNumberHex()}}else{if(null==Ot.issuer||!Ot.serial)throw new L("cert or issuer and serial parameter not specified");At=Ot.issuer,Ke=Ot.serial}var Be=new tt([{dn:At}]),_t=new re(Ke);return new he({array:[Be,_t]}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.IssuerSerial,Ee.asn1.ASN1Object),Ee.asn1.cms.SignerIdentifier=function(_){var he=Ee.asn1.cms,Se=he.IssuerAndSerialNumber,we=he.SubjectKeyIdentifier;Error,he.SignerIdentifier.superclass.constructor.call(this),this.params=null,this.tohex=function(){var Ke=this.params;if("isssn"==Ke.type)return new Se(Ke).tohex();if("skid"==Ke.type)return new we(Ke).tohex();throw new Error("wrong property for isssn or skid")},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.SignerIdentifier,Ee.asn1.ASN1Object),Ee.asn1.cms.IssuerAndSerialNumber=function(_){var D=Ee.asn1,B=D.DERInteger,re=D.DERSequence,we=D.x509.X500Name,tt=Kr,rt=Error;D.cms.IssuerAndSerialNumber.superclass.constructor.call(this),this.params=null,this.tohex=function(){var At,Ke,Ot=this.params;if("string"==typeof Ot&&-1!=Ot.indexOf("-----BEGIN")||null!=Ot.cert){var Ye;Ye=null!=Ot.cert?Ot.cert:Ot;var vt=new tt;vt.readCertPEM(Ye),At=vt.getIssuer(),Ke={hex:vt.getSerialNumberHex()}}else{if(null==Ot.issuer||!Ot.serial)throw new rt("cert or issuer and serial parameter not specified");At=Ot.issuer,Ke=Ot.serial}var Be=new we(At),_t=new B(Ke);return new re({array:[Be,_t]}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(Ot){this.params=Ot},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.IssuerAndSerialNumber,Ee.asn1.ASN1Object),Ee.asn1.cms.SubjectKeyIdentifier=function(_){var D=Ee.asn1,he=D.ASN1Util.newObject,At=Kr,Ke=Error;D.cms.SubjectKeyIdentifier.superclass.constructor.call(this),this.tohex=function(){var vt,Ye=this.params;if(null==Ye.cert&&null==Ye.skid)throw new Ke("property cert nor skid undefined");return null!=Ye.cert?vt=new At(Ye.cert).getExtSubjectKeyIdentifier().kid.hex:null!=Ye.skid&&(vt=Ye.skid),he({tag:{tage:"a0",obj:{octstr:{hex:vt}}}}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.SubjectKeyIdentifier,Ee.asn1.ASN1Object),Ee.asn1.cms.AttributeList=function(_){var L=Error,B=Ee.asn1,re=B.DERSet,he=B.cms;he.AttributeList.superclass.constructor.call(this),this.params=null,this.hTLV=null,this.setByParam=function(Se){this.params=Se},this.tohex=function(){var Se=this.params;if(null!=this.hTLV)return this.hTLV;var we=!0;null!=Se.sortflag&&(we=Se.sortflag);for(var tt=Se.array,rt=[],Ot=0;Ot<tt.length;Ot++){var At=tt[Ot],Ke=At.attr;if("contentType"==Ke)rt.push(new he.ContentType(At));else if("messageDigest"==Ke)rt.push(new he.MessageDigest(At));else if("signingTime"==Ke)rt.push(new he.SigningTime(At));else if("signingCertificate"==Ke)rt.push(new he.SigningCertificate(At));else if("signingCertificateV2"==Ke)rt.push(new he.SigningCertificateV2(At));else if("signaturePolicyIdentifier"==Ke)rt.push(new Ee.asn1.cades.SignaturePolicyIdentifier(At));else{if("signatureTimeStamp"!=Ke&&"timeStampToken"!=Ke)throw new L("unknown attr: "+Ke);rt.push(new Ee.asn1.cades.SignatureTimeStamp(At))}}var Ye=new re({array:rt,sortflag:we});return this.hTLV=Ye.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.AttributeList,Ee.asn1.ASN1Object),Ee.asn1.cms.SignerInfo=function(_){var L=Error,B=Ee.asn1,re=B.DERInteger,he=B.DEROctetString,Se=B.DERSequence,we=B.DERTaggedObject,tt=B.cms,rt=tt.SignerIdentifier,Ot=tt.AttributeList,_t=B.x509.AlgorithmIdentifier,pt=Ee.crypto,$t=Uo;tt.SignerInfo.superclass.constructor.call(this),this.params=null,this.sign=function(){var hn=this.params,mn=hn.sigalg,yn=new Ot(hn.sattrs).tohex(),ci=$t.getKey(hn.signkey),yi=new pt.Signature({alg:mn});yi.init(ci),yi.updateHex(yn);var Bt=yi.sign();hn.sighex=Bt},this.tohex=function(){var hn=this.params,mn=[];if(mn.push(new re({int:hn.version})),mn.push(new rt(hn.id)),mn.push(new _t({name:hn.hashalg})),null!=hn.sattrs){var yn=new Ot(hn.sattrs);try{mn.push(new we({tag:"a0",explicit:!1,obj:yn}))}catch(yi){throw new L("si sattr error: "+yi)}}if(mn.push(new _t(null!=hn.sigalgfield?{name:hn.sigalgfield}:{name:hn.sigalg})),null==hn.sighex&&null!=hn.signkey&&this.sign(),mn.push(new he({hex:hn.sighex})),null!=hn.uattrs){yn=new Ot(hn.uattrs);try{mn.push(new we({tag:"a1",explicit:!1,obj:yn}))}catch(Bt){throw new L("si uattr error: "+Bt)}}return new Se({array:mn}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.SignerInfo,Ee.asn1.ASN1Object),Ee.asn1.cms.EncapsulatedContentInfo=function(_){var D=Ee.asn1,B=D.DERTaggedObject,re=D.DERSequence,he=D.DERObjectIdentifier,Se=D.DEROctetString;D.cms.EncapsulatedContentInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var tt=this.params,rt=[];if(rt.push(new he(tt.type)),null!=tt.content&&(null!=tt.content.hex||null!=tt.content.str)&&1!=tt.isDetached){var Ot=new Se(tt.content),At=new B({tag:"a0",explicit:!0,obj:Ot});rt.push(At)}return new re({array:rt}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(tt){this.params=tt},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.EncapsulatedContentInfo,Ee.asn1.ASN1Object),Ee.asn1.cms.ContentInfo=function(_){var D=Ee.asn1,B=D.DERTaggedObject,re=D.DERSequence,he=D.DERObjectIdentifier;Ee.asn1.cms.ContentInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var tt=this.params,rt=[];rt.push(new he(tt.type));var Ot=new B({tag:"a0",explicit:!0,obj:tt.obj});return rt.push(Ot),new re({array:rt}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(tt){this.params=tt},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.ContentInfo,Ee.asn1.ASN1Object),Ee.asn1.cms.SignedData=function(_){Error;var B=Ee.asn1,he=B.DERInteger,Se=B.DERSet,we=B.DERSequence,rt=B.cms,Ot=rt.EncapsulatedContentInfo,At=rt.SignerInfo,Ke=rt.ContentInfo,Ye=rt.CertificateSet,vt=rt.RevocationInfoChoices,_t=B.x509.AlgorithmIdentifier;Ee.asn1.cms.SignedData.superclass.constructor.call(this),this.params=null,this.checkAndFixParam=function(){var pt=this.params;this._setDigestAlgs(pt),this._setContentTypeByEContent(pt),this._setMessageDigestByEContent(pt),this._setSignerInfoVersion(pt),this._setSignedDataVersion(pt)},this._setDigestAlgs=function(pt){for(var $t={},hn=pt.sinfos,mn=0;mn<hn.length;mn++)$t[hn[mn].hashalg]=1;pt.hashalgs=Object.keys($t).sort()},this._setContentTypeByEContent=function(pt){for(var $t=pt.econtent.type,hn=pt.sinfos,mn=0;mn<hn.length;mn++)this._getAttrParamByName(hn[mn],"contentType").type=$t},this._setMessageDigestByEContent=function(pt){var $t=pt.econtent,mn=$t.content.hex;null==mn&&"data"==$t.type&&null!=$t.content.str&&(mn=Or($t.content.str));for(var yn=pt.sinfos,ci=0;ci<yn.length;ci++){var yi=yn[ci],Bt=yi.hashalg,Rt=this._getAttrParamByName(yi,"messageDigest"),fn=Ee.crypto.Util.hashHex(mn,Bt);Rt.hex=fn}},this._getAttrParamByName=function(pt,$t){for(var hn=pt.sattrs.array,mn=0;mn<hn.length;mn++)if(hn[mn].attr==$t)return hn[mn]},this._setSignerInfoVersion=function(pt){for(var $t=pt.sinfos,hn=0;hn<$t.length;hn++){var mn=$t[hn],yn=1;"skid"==mn.id.type&&(yn=3),mn.version=yn}},this._setSignedDataVersion=function(pt){var $t=this._getSignedDataVersion(pt);pt.version=$t},this._getSignedDataVersion=function(pt){if(null!=pt.revinfos)for(var $t=pt.revinfos,hn=0;hn<$t.length;hn++)if(null!=$t[hn].ocsp)return 5;var yn=pt.sinfos;for(hn=0;hn<yn.length;hn++)if(3==pt.sinfos[hn].version)return 3;return"data"!=pt.econtent.type?3:1},this.tohex=function(){var pt=this.params;null!=this.getEncodedHexPrepare&&this.getEncodedHexPrepare(),1!=pt.fixed&&this.checkAndFixParam();var $t=[];$t.push(new he({int:pt.version}));for(var hn=[],mn=0;mn<pt.hashalgs.length;mn++)hn.push(new _t({name:pt.hashalgs[mn]}));$t.push(new Se({array:hn})),$t.push(new Ot(pt.econtent)),null!=pt.certs&&$t.push(new Ye(pt.certs)),null!=pt.revinfos&&$t.push(new vt(pt.revinfos));var ci=[];for(mn=0;mn<pt.sinfos.length;mn++)ci.push(new At(pt.sinfos[mn]));return $t.push(new Se({array:ci})),new we({array:$t}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.getContentInfo=function(){return new Ke({type:"signed-data",obj:this})},this.getContentInfoEncodedHex=function(){return this.getContentInfo().tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.SignedData,Ee.asn1.ASN1Object),Ee.asn1.cms.CertificateSet=function(_){Ee.asn1.cms.CertificateSet.superclass.constructor.call(this);var L=Error,D=Ee.asn1,B=D.DERTaggedObject,re=D.DERSet,he=D.ASN1Object;this.params=null,this.tohex=function(){var tt,Se=this.params,we=[];if(Se instanceof Array)tt=Se;else{if(null==Se.array)throw new L("cert array not specified");tt=Se.array}for(var rt=0;rt<tt.length;rt++){var At=xr(tt[rt]),Ke=new he;Ke.hTLV=At,we.push(Ke)}var Ye={array:we};0==Se.sortflag&&(Ye.sortflag=!1);var vt=new re(Ye);return new B({tag:"a0",explicit:!1,obj:vt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.CertificateSet,Ee.asn1.ASN1Object),Ee.asn1.cms.RevocationInfoChoices=function(_){Ee.asn1.cms.RevocationInfoChoices.superclass.constructor.call(this),this.params=null,this.tohex=function(){var L=this.params;if(!L instanceof Array)throw new Error("params is not array");for(var D=[],B=0;B<L.length;B++)D.push(new Ee.asn1.cms.RevocationInfoChoice(L[B]));return Ee.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:{set:D}}}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.RevocationInfoChoices,Ee.asn1.ASN1Object),Ee.asn1.cms.RevocationInfoChoice=function(_){Ee.asn1.cms.RevocationInfoChoice.superclass.constructor.call(this),this.params=null,this.tohex=function(){var L=this.params;if(null!=L.crl&&"string"==typeof L.crl){var D=L.crl;return-1!=L.crl.indexOf("-----BEGIN")&&(D=xr(L.crl)),D}if(null!=L.ocsp)return Ee.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:new Ee.asn1.cms.OtherRevocationFormat(L)}}).tohex();throw new Error("property crl or ocsp undefined")},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.RevocationInfoChoice,Ee.asn1.ASN1Object),Ee.asn1.cms.OtherRevocationFormat=function(_){Ee.asn1.cms.OtherRevocationFormat.superclass.constructor.call(this);var L=Error,re=Ee.asn1.ASN1Util.newObject,he=Ee.lang.String.isHex;this.params=null,this.tohex=function(){var Se=this.params;if(null==Se.ocsp)throw new L("property ocsp not specified");if(!he(Se.ocsp)||!Ei.isASN1HEX(Se.ocsp))throw new L("ocsp value not ASN.1 hex string");return re({seq:[{oid:"1.3.6.1.5.5.7.16.2"},{asn1:{tlv:Se.ocsp}}]}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cms.OtherRevocationFormat,Ee.asn1.ASN1Object),Ee.asn1.cms.CMSUtil=new function(){},Ee.asn1.cms.CMSUtil.newSignedData=function(_){return new Ee.asn1.cms.SignedData(_)},Ee.asn1.cms.CMSUtil.verifySignedData=function(_){var Ye=Ei.getVbyList,vt=Ei.getTLVbyList,Be=Ei.getIdxbyList,_t=Ei.getChildIdx,pt=Ei.getTLV,$t=Ei.oidname,hn=Ee.crypto.Util.hashHex;void 0===_.cms&&(0,Ee.lang.String.isHex)(_.cms);var mn=_.cms,yi=function(Xn,ai){var Ni=ai.idx;ai.signerid_issuer1=vt(Xn,Ni,[1,0],"30"),ai.signerid_serial1=Ye(Xn,Ni,[1,1],"02"),ai.hashalg=$t(Ye(Xn,Ni,[2,0],"06"));var Zr=Be(Xn,Ni,[3],"a0");ai.idxSignedAttrs=Zr,Bt(Xn,ai,Zr);var Ir=_t(Xn,Ni).length;if(Ir<6)throw"malformed SignerInfo";ai.sigalg=$t(Ye(Xn,Ni,[Ir-2,0],"06")),ai.sigval=Ye(Xn,Ni,[Ir-1],"04")},Bt=function(Xn,ai,Ni){var Zr=_t(Xn,Ni);ai.signedAttrIdxList=Zr;for(var en=0;en<Zr.length;en++){var mr,Ir=Zr[en],Do=Ye(Xn,Ir,[0],"06");"2a864886f70d010905"===Do?(mr=xo(Ye(Xn,Ir,[1,0])),ai.saSigningTime=mr):"2a864886f70d010904"===Do&&(mr=Ye(Xn,Ir,[1,0],"04"),ai.saMessageDigest=mr)}},Nn=function(Xn,ai,Ni,Zr){Ni.verifyDetail={};var en=Ni.verifyDetail,Ir=ai.parse.econtent,Do=Ni.hashalg,mr=Ni.saMessageDigest;en.validMessageDigest=!1,hn(Ir,Do)===mr&&(en.validMessageDigest=!0),function(Xn,ai,Ni,Zr){var Ir,en=ai.parse.certsIdx;if(void 0===ai.certs){Ir=[],ai.certkeys=[];for(var Do=_t(Xn,en),mr=0;mr<Do.length;mr++){var Yr=pt(Xn,Do[mr]),jo=new Kr;jo.readCertHex(Yr),Ir[mr]=jo,ai.certkeys[mr]=jo.getPublicKey()}ai.certs=Ir}else Ir=ai.certs;for(ai.cccc=Ir.length,ai.cccci=Do.length,mr=0;mr<Ir.length;mr++){var ia=jo.getIssuerHex(),aa=jo.getSerialNumberHex();Ni.signerid_issuer1===ia&&Ni.signerid_serial1===aa&&(Ni.certkey_idx=mr)}}(Xn,ai,Ni),en.validSignatureValue=!1;var Yr=Ni.sigalg,jo="31"+pt(Xn,Ni.idxSignedAttrs).substr(2);Ni.signedattrshex=jo;var ia=ai.certs[Ni.certkey_idx].getPublicKey(),aa=new Ee.crypto.Signature({alg:Yr});aa.init(ia),aa.updateHex(jo);var gs=aa.verify(Ni.sigval);en.validSignatureValue_isValid=gs,!0===gs&&(en.validSignatureValue=!0),Ni.isValid=!1,en.validMessageDigest&&en.validSignatureValue&&(Ni.isValid=!0)},Hn={isValid:!1,parse:{}};return function(Xn,ai){if("2a864886f70d010702"!==Ye(Xn,0,[0],"06"))return ai;ai.cmsType="signedData",ai.econtent=Ye(Xn,0,[1,0,2,1,0]),function(Xn,ai){for(var Ni,Zr=3;Zr<6;Zr++)if(void 0!==(Ni=Be(Xn,0,[1,0,Zr]))){var en=Xn.substr(Ni,2);"a0"===en&&(ai.certsIdx=Ni),"a1"===en&&(ai.revinfosIdx=Ni),"31"===en&&(ai.signerinfosIdx=Ni)}}(Xn,ai),ai.signerInfos=[],function(Xn,ai){var Ni=ai.signerinfosIdx;if(void 0!==Ni){var Zr=_t(Xn,Ni);ai.signerInfoIdxList=Zr;for(var en=0;en<Zr.length;en++){var Do={idx:Zr[en]};yi(Xn,Do),ai.signerInfos.push(Do)}}}(Xn,ai)}(mn,Hn.parse),function(Xn,ai){for(var Ni=ai.parse.signerInfos,Zr=Ni.length,en=!0,Ir=0;Ir<Zr;Ir++){var Do=Ni[Ir];Nn(Xn,ai,Do),Do.isValid||(en=!1)}ai.isValid=en}(mn,Hn),Hn},Ee.asn1.cms.CMSParser=function(){var _=Error,L=Kr,D=new L,B=Ei,re=B.getV,he=B.getTLV,we=B.getTLVbyList,tt=B.getTLVbyListEx,rt=B.getVbyList,Ot=B.getVbyListEx,At=B.getChildIdx;this.getCMSSignedData=function(Ke){var Ye=we(Ke,0,[1,0]);return this.getSignedData(Ye)},this.getSignedData=function(Ke){var Ye=At(Ke,0),vt={},Be=re(Ke,Ye[0]),_t=parseInt(Be,16);vt.version=_t;var pt=he(Ke,Ye[1]);vt.hashalgs=this.getHashAlgArray(pt);var $t=he(Ke,Ye[2]);vt.econtent=this.getEContent($t);var hn=tt(Ke,0,["[0]"]);null!=hn&&(vt.certs=this.getCertificateSet(hn)),tt(Ke,0,["[1]"]);var yn=tt(Ke,0,[3]);return vt.sinfos=this.getSignerInfos(yn),vt},this.getHashAlgArray=function(Ke){for(var Ye=At(Ke,0),vt=new L,Be=[],_t=0;_t<Ye.length;_t++){var pt=he(Ke,Ye[_t]),$t=vt.getAlgorithmIdentifierName(pt);Be.push($t)}return Be},this.getEContent=function(Ke){var Ye={},vt=rt(Ke,0,[0]),Be=rt(Ke,0,[1,0]);return Ye.type=Ee.asn1.x509.OID.oid2name(Ei.hextooidstr(vt)),Ye.content={hex:Be},Ye},this.getSignerInfos=function(Ke){for(var Ye=[],vt=At(Ke,0),Be=0;Be<vt.length;Be++){var _t=he(Ke,vt[Be]),pt=this.getSignerInfo(_t);Ye.push(pt)}return Ye},this.getSignerInfo=function(Ke){var Ye={},vt=At(Ke,0),Be=B.getInt(Ke,vt[0],-1);-1!=Be&&(Ye.version=Be);var _t=he(Ke,vt[1]),pt=this.getIssuerAndSerialNumber(_t);Ye.id=pt;var $t=he(Ke,vt[2]),hn=D.getAlgorithmIdentifierName($t);Ye.hashalg=hn;var mn=tt(Ke,0,["[0]"]);if(null!=mn){var yn=this.getAttributeList(mn);Ye.sattrs=yn}var ci=tt(Ke,0,[3]),yi=D.getAlgorithmIdentifierName(ci);Ye.sigalg=yi;var Bt=Ot(Ke,0,[4]);Ye.sighex=Bt;var Rt=tt(Ke,0,["[1]"]);if(null!=Rt){var fn=this.getAttributeList(Rt);Ye.uattrs=fn}return Ye},this.getSignerIdentifier=function(Ke){if("30"==Ke.substr(0,2))return this.getIssuerAndSerialNumber(Ke);throw new Error("SKID of signerIdentifier not supported")},this.getIssuerAndSerialNumber=function(Ke){var Ye={type:"isssn"},vt=At(Ke,0),Be=he(Ke,vt[0]);Ye.issuer=D.getX500Name(Be);var _t=re(Ke,vt[1]);return Ye.serial={hex:_t},Ye},this.getAttributeList=function(Ke){for(var Ye=[],vt=At(Ke,0),Be=0;Be<vt.length;Be++){var _t=he(Ke,vt[Be]),pt=this.getAttribute(_t);Ye.push(pt)}return{array:Ye}},this.getAttribute=function(Ke){var Ye={},vt=At(Ke,0),Be=B.getOID(Ke,vt[0]),_t=Ee.asn1.x509.OID.oid2name(Be);Ye.attr=_t;var pt=he(Ke,vt[1]),$t=At(pt,0);if(1==$t.length)Ye.valhex=he(pt,$t[0]);else{for(var hn=[],mn=0;mn<$t.length;mn++)hn.push(he(pt,$t[mn]));Ye.valhex=hn}return"contentType"==_t?this.setContentType(Ye):"messageDigest"==_t?this.setMessageDigest(Ye):"signingTime"==_t?this.setSigningTime(Ye):"signingCertificate"==_t?this.setSigningCertificate(Ye):"signingCertificateV2"==_t?this.setSigningCertificateV2(Ye):"signaturePolicyIdentifier"==_t&&this.setSignaturePolicyIdentifier(Ye),Ye},this.setContentType=function(Ke){var Ye=B.getOIDName(Ke.valhex,0,null);null!=Ye&&(Ke.type=Ye,delete Ke.valhex)},this.setSigningTime=function(Ke){var vt=xo(re(Ke.valhex,0));Ke.str=vt,delete Ke.valhex},this.setMessageDigest=function(Ke){var Ye=re(Ke.valhex,0);Ke.hex=Ye,delete Ke.valhex},this.setSigningCertificate=function(Ke){var Ye=At(Ke.valhex,0);if(Ye.length>0){for(var vt=he(Ke.valhex,Ye[0]),Be=At(vt,0),_t=[],pt=0;pt<Be.length;pt++){var $t=he(vt,Be[pt]),hn=this.getESSCertID($t);_t.push(hn)}Ke.array=_t}if(Ye.length>1){var mn=he(Ke.valhex,Ye[1]);Ke.polhex=mn}delete Ke.valhex},this.setSignaturePolicyIdentifier=function(Ke){var Ye=At(Ke.valhex,0);if(Ye.length>0){var vt=B.getOID(Ke.valhex,Ye[0]);Ke.oid=vt}if(Ye.length>1){var Be=new L,_t=At(Ke.valhex,Ye[1]),pt=he(Ke.valhex,_t[0]),$t=Be.getAlgorithmIdentifierName(pt);Ke.alg=$t;var hn=re(Ke.valhex,_t[1]);Ke.hash=hn}delete Ke.valhex},this.setSigningCertificateV2=function(Ke){var Ye=At(Ke.valhex,0);if(Ye.length>0){for(var vt=he(Ke.valhex,Ye[0]),Be=At(vt,0),_t=[],pt=0;pt<Be.length;pt++){var $t=he(vt,Be[pt]),hn=this.getESSCertIDv2($t);_t.push(hn)}Ke.array=_t}if(Ye.length>1){var mn=he(Ke.valhex,Ye[1]);Ke.polhex=mn}delete Ke.valhex},this.getESSCertID=function(Ke){var Ye={},vt=At(Ke,0);if(vt.length>0){var Be=re(Ke,vt[0]);Ye.hash=Be}if(vt.length>1){var _t=he(Ke,vt[1]),pt=this.getIssuerSerial(_t);null!=pt.serial&&(Ye.serial=pt.serial),null!=pt.issuer&&(Ye.issuer=pt.issuer)}return Ye},this.getESSCertIDv2=function(Ke){var Ye={},vt=At(Ke,0);if(vt.length<1||3<vt.length)throw new _("wrong number of elements");var Be=0;if("30"==Ke.substr(vt[0],2)){var _t=he(Ke,vt[0]);Ye.alg=D.getAlgorithmIdentifierName(_t),Be++}else Ye.alg="sha256";var pt=re(Ke,vt[Be]);if(Ye.hash=pt,vt.length>Be+1){var $t=he(Ke,vt[Be+1]),hn=this.getIssuerSerial($t);Ye.issuer=hn.issuer,Ye.serial=hn.serial}return Ye},this.getIssuerSerial=function(Ke){var Ye={},vt=At(Ke,0),Be=he(Ke,vt[0]),_t=D.getGeneralNames(Be);Ye.issuer=_t[0].dn;var $t=re(Ke,vt[1]);return Ye.serial={hex:$t},Ye},this.getCertificateSet=function(Ke){for(var Ye=At(Ke,0),vt=[],Be=0;Be<Ye.length;Be++){var _t=he(Ke,Ye[Be]);if("30"==_t.substr(0,2)){var pt=Br(_t,"CERTIFICATE");vt.push(pt)}}return{array:vt,sortflag:!1}}},(typeof Ee>"u"||!Ee)&&(Ee={}),(typeof Ee.asn1>"u"||!Ee.asn1)&&(Ee.asn1={}),(typeof Ee.asn1.tsp>"u"||!Ee.asn1.tsp)&&(Ee.asn1.tsp={}),Ee.asn1.tsp.TimeStampToken=function(_){var B=Ee.asn1.tsp;B.TimeStampToken.superclass.constructor.call(this),this.params=null,this.getEncodedHexPrepare=function(){var re=new B.TSTInfo(this.params.econtent.content);this.params.econtent.content.hex=re.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.tsp.TimeStampToken,Ee.asn1.cms.SignedData),Ee.asn1.tsp.TSTInfo=function(_){Error;var B=Ee.asn1,re=B.DERSequence,he=B.DERInteger,Se=B.DERBoolean,we=B.DERGeneralizedTime,tt=B.DERObjectIdentifier,rt=B.DERTaggedObject,Ot=B.tsp,At=Ot.MessageImprint,Ke=Ot.Accuracy,vt=B.x509.GeneralName;if(Ot.TSTInfo.superclass.constructor.call(this),this.dVersion=new he({int:1}),this.dPolicy=null,this.dMessageImprint=null,this.dSerial=null,this.dGenTime=null,this.dAccuracy=null,this.dOrdering=null,this.dNonce=null,this.dTsa=null,this.tohex=function(){var Be=[this.dVersion];if(null==this.dPolicy)throw new Error("policy shall be specified.");if(Be.push(this.dPolicy),null==this.dMessageImprint)throw new Error("messageImprint shall be specified.");if(Be.push(this.dMessageImprint),null==this.dSerial)throw new Error("serialNumber shall be specified.");if(Be.push(this.dSerial),null==this.dGenTime)throw new Error("genTime shall be specified.");Be.push(this.dGenTime),null!=this.dAccuracy&&Be.push(this.dAccuracy),null!=this.dOrdering&&Be.push(this.dOrdering),null!=this.dNonce&&Be.push(this.dNonce),null!=this.dTsa&&Be.push(this.dTsa);var _t=new re({array:Be});return this.hTLV=_t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_){if("string"==typeof _.policy){if(!_.policy.match(/^[0-9.]+$/))throw"policy shall be oid like 0.1.4.134";this.dPolicy=new tt({oid:_.policy})}void 0!==_.messageImprint&&(this.dMessageImprint=new At(_.messageImprint)),void 0!==_.serial&&(this.dSerial=new he(_.serial)),void 0!==_.genTime&&(this.dGenTime=new we(_.genTime)),void 0!==_.accuracy&&(this.dAccuracy=new Ke(_.accuracy)),void 0!==_.ordering&&1==_.ordering&&(this.dOrdering=new Se),void 0!==_.nonce&&(this.dNonce=new he(_.nonce)),void 0!==_.tsa&&(this.dTsa=new rt({tag:"a0",explicit:!0,obj:new vt({dn:_.tsa})}))}},Ki(Ee.asn1.tsp.TSTInfo,Ee.asn1.ASN1Object),Ee.asn1.tsp.Accuracy=function(_){var D=Ee.asn1,B=D.ASN1Util.newObject;D.tsp.Accuracy.superclass.constructor.call(this),this.params=null,this.tohex=function(){var re=this.params,he=[];return null!=re.seconds&&"number"==typeof re.seconds&&he.push({int:re.seconds}),null!=re.millis&&"number"==typeof re.millis&&he.push({tag:{tagi:"80",obj:{int:re.millis}}}),null!=re.micros&&"number"==typeof re.micros&&he.push({tag:{tagi:"81",obj:{int:re.micros}}}),B({seq:he}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.tsp.Accuracy,Ee.asn1.ASN1Object),Ee.asn1.tsp.MessageImprint=function(_){var D=Ee.asn1,B=D.DERSequence,re=D.DEROctetString,Se=D.x509.AlgorithmIdentifier;D.tsp.MessageImprint.superclass.constructor.call(this),this.params=null,this.tohex=function(){var we=this.params,tt=new Se({name:we.alg}),rt=new re({hex:we.hash});return new B({array:[tt,rt]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.tsp.MessageImprint,Ee.asn1.ASN1Object),Ee.asn1.tsp.TimeStampReq=function(_){var D=Ee.asn1,B=D.DERSequence,re=D.DERInteger,he=D.DERBoolean,we=D.DERObjectIdentifier,tt=D.tsp,rt=tt.MessageImprint;tt.TimeStampReq.superclass.constructor.call(this),this.params=null,this.tohex=function(){var Ot=this.params,At=[];return At.push(new re({int:1})),At.push(Ot.messageImprint instanceof Ee.asn1.ASN1Object?Ot.messageImprint:new rt(Ot.messageImprint)),null!=Ot.policy&&At.push(new we(Ot.policy)),null!=Ot.nonce&&At.push(new re(Ot.nonce)),1==Ot.certreq&&At.push(new he),new B({array:At}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.tsp.TimeStampReq,Ee.asn1.ASN1Object),Ee.asn1.tsp.TimeStampResp=function(_){var D=Ee.asn1,B=D.DERSequence,he=D.tsp,Se=he.PKIStatusInfo;he.TimeStampResp.superclass.constructor.call(this),this.params=null,this.tohex=function(){var we=this.params,tt=[];if(null!=we.econtent||null!=we.tst)if(tt.push(new Se(null!=we.statusinfo?we.statusinfo:"granted")),null!=we.econtent)tt.push(new he.TimeStampToken(we).getContentInfo());else{if(!(we.tst instanceof D.ASN1Object))throw new Error("improper member tst value");tt.push(we.tst)}else{if(null==we.statusinfo)throw new Error("parameter for token nor statusinfo not specified");tt.push(new Se(we.statusinfo))}return new B({array:tt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.tsp.TimeStampResp,Ee.asn1.ASN1Object),Ee.asn1.tsp.PKIStatusInfo=function(_){var L=Error,B=Ee.asn1,re=B.DERSequence,he=B.tsp,Se=he.PKIStatus,we=he.PKIFreeText,tt=he.PKIFailureInfo;he.PKIStatusInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var rt=this.params,Ot=[];if("string"==typeof rt)Ot.push(new Se(rt));else{if(null==rt.status)throw new L("property 'status' unspecified");Ot.push(new Se(rt.status)),null!=rt.statusstr&&Ot.push(new we(rt.statusstr)),null!=rt.failinfo&&Ot.push(new tt(rt.failinfo))}return new re({array:Ot}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.tsp.PKIStatusInfo,Ee.asn1.ASN1Object),Ee.asn1.tsp.PKIStatus=function(_){var L=Error,B=Ee.asn1,re=B.DERInteger;B.tsp.PKIStatus.superclass.constructor.call(this);var Se={granted:0,grantedWithMods:1,rejection:2,waiting:3,revocationWarning:4,revocationNotification:5};this.params=null,this.tohex=function(){var rt,we=this.params;if("string"==typeof we)try{rt=Se[we]}catch{throw new L("undefined name: "+we)}else{if("number"!=typeof we)throw new L("unsupported params");rt=we}return new re({int:rt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.tsp.PKIStatus,Ee.asn1.ASN1Object),Ee.asn1.tsp.PKIFreeText=function(_){var L=Error,B=Ee.asn1,re=B.DERSequence,he=B.DERUTF8String;B.tsp.PKIFreeText.superclass.constructor.call(this),this.params=null,this.tohex=function(){var we=this.params;if(!we instanceof Array)throw new L("wrong params: not array");for(var tt=[],rt=0;rt<we.length;rt++)tt.push(new he({str:we[rt]}));return new re({array:tt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.tsp.PKIFreeText,Ee.asn1.ASN1Object),Ee.asn1.tsp.PKIFailureInfo=function(_){var L=Error,B=Ee.asn1,re=B.DERBitString,we={badAlg:0,badRequest:2,badDataFormat:5,timeNotAvailable:14,unacceptedPolicy:15,unacceptedExtension:16,addInfoNotAvailable:17,systemFailure:25};B.tsp.PKIFailureInfo.superclass.constructor.call(this),this.params=null,this.getBinValue=function(){var tt=this.params,rt=0;if("number"==typeof tt&&0<=tt&&tt<=25){for(var Ot=(rt|=1<<tt).toString(2),At="",Ke=Ot.length-1;Ke>=0;Ke--)At+=Ot[Ke];return At}if("string"==typeof tt&&null!=we[tt])return Ma([tt],we);if("object"==typeof tt&&null!=tt.length)return Ma(tt,we);throw new L("wrong params")},this.tohex=function(){var rt=this.getBinValue();return new re({bin:rt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.tsp.PKIFailureInfo,Ee.asn1.ASN1Object),Ee.asn1.tsp.AbstractTSAAdapter=function(_){this.getTSTHex=function(L,D){throw"not implemented yet"}},Ee.asn1.tsp.SimpleTSAAdapter=function(_){var B=Ee.asn1.tsp,re=Ee.crypto.Util.hashHex;B.SimpleTSAAdapter.superclass.constructor.call(this),this.params=null,this.serial=0,this.getTSTHex=function(he,Se){var we=re(he,Se);this.params.econtent.content.messageImprint={alg:Se,hash:we},this.params.econtent.content.serial={int:this.serial++};var tt=Math.floor(1e9*Math.random());return this.params.econtent.content.nonce={int:tt},new B.TimeStampToken(this.params).getContentInfoEncodedHex()},void 0!==_&&(this.params=_)},Ki(Ee.asn1.tsp.SimpleTSAAdapter,Ee.asn1.tsp.AbstractTSAAdapter),Ee.asn1.tsp.FixedTSAAdapter=function(_){var B=Ee.asn1.tsp,re=Ee.crypto.Util.hashHex;B.FixedTSAAdapter.superclass.constructor.call(this),this.params=null,this.getTSTHex=function(he,Se){var we=re(he,Se);return this.params.econtent.content.messageImprint={alg:Se,hash:we},new B.TimeStampToken(this.params).getContentInfoEncodedHex()},void 0!==_&&(this.params=_)},Ki(Ee.asn1.tsp.FixedTSAAdapter,Ee.asn1.tsp.AbstractTSAAdapter),Ee.asn1.tsp.TSPUtil=new function(){},Ee.asn1.tsp.TSPUtil.newTimeStampToken=function(_){return new Ee.asn1.tsp.TimeStampToken(_)},Ee.asn1.tsp.TSPUtil.parseTimeStampReq=function(_){return(new Ee.asn1.tsp.TSPParser).getTimeStampReq(_)},Ee.asn1.tsp.TSPUtil.parseMessageImprint=function(_){return(new Ee.asn1.tsp.TSPParser).getMessageImprint(_)},Ee.asn1.tsp.TSPParser=function(){Error;var D=new Kr,B=Ei,re=B.getV,he=B.getTLV,Se=B.getIdxbyList,tt=B.getChildIdx,rt=["granted","grantedWithMods","rejection","waiting","revocationWarning","revocationNotification"],Ot={0:"badAlg",2:"badRequest",5:"badDataFormat",14:"timeNotAvailable",15:"unacceptedPolicy",16:"unacceptedExtension",17:"addInfoNotAvailable",25:"systemFailure"};this.getResponse=function(At){var Ke=tt(At,0);if(1==Ke.length)return this.getPKIStatusInfo(he(At,Ke[0]));if(Ke.length>1){var Ye=this.getPKIStatusInfo(he(At,Ke[0])),vt=he(At,Ke[1]),Be=this.getToken(vt);return Be.statusinfo=Ye,Be}},this.getToken=function(At){var Ye=(new Ee.asn1.cms.CMSParser).getCMSSignedData(At);return this.setTSTInfo(Ye),Ye},this.setTSTInfo=function(At){var Ke=At.econtent;if("tstinfo"==Ke.type){var vt=this.getTSTInfo(Ke.content.hex);Ke.content=vt}},this.getTSTInfo=function(At){var Ke={},Ye=tt(At,0),vt=re(At,Ye[1]);Ke.policy=Ca(vt);var Be=he(At,Ye[2]);Ke.messageImprint=this.getMessageImprint(Be);var _t=re(At,Ye[3]);Ke.serial={hex:_t};var pt=re(At,Ye[4]);Ke.genTime={str:xo(pt)};var $t=0;if(Ye.length>5&&"30"==At.substr(Ye[5],2)){var hn=he(At,Ye[5]);Ke.accuracy=this.getAccuracy(hn),$t++}if(Ye.length>5+$t&&"01"==At.substr(Ye[5+$t],2)&&("ff"==re(At,Ye[5+$t])&&(Ke.ordering=!0),$t++),Ye.length>5+$t&&"02"==At.substr(Ye[5+$t],2)){var yn=re(At,Ye[5+$t]);Ke.nonce={hex:yn},$t++}if(Ye.length>5+$t&&"a0"==At.substr(Ye[5+$t],2)){var ci=he(At,Ye[5+$t]);ci="30"+ci.substr(2),pGeneralNames=D.getGeneralNames(ci);var yi=pGeneralNames[0].dn;Ke.tsa=yi,$t++}if(Ye.length>5+$t&&"a1"==At.substr(Ye[5+$t],2)){var Bt=he(At,Ye[5+$t]);Bt="30"+Bt.substr(2);var Rt=D.getExtParamArray(Bt);Ke.ext=Rt,$t++}return Ke},this.getAccuracy=function(At){for(var Ke={},Ye=tt(At,0),vt=0;vt<Ye.length;vt++){var Be=At.substr(Ye[vt],2),_t=re(At,Ye[vt]),pt=parseInt(_t,16);"02"==Be?Ke.seconds=pt:"80"==Be?Ke.millis=pt:"81"==Be&&(Ke.micros=pt)}return Ke},this.getMessageImprint=function(At){if("30"!=At.substr(0,2))throw new Error("head of messageImprint hex shall be x30");var Ke={},vt=(tt(At,0),Se(At,0,[0,0])),Be=re(At,vt),_t=B.hextooidstr(Be),pt=Ee.asn1.x509.OID.oid2name(_t);if(""==pt)throw new Error("hashAlg name undefined: "+_t);var $t=pt,hn=Se(At,0,[1]);return Ke.alg=$t,Ke.hash=re(At,hn),Ke},this.getPKIStatusInfo=function(At){var Ke={},Ye=tt(At,0),vt=0;try{var Be=re(At,Ye[0]),_t=parseInt(Be,16);Ke.status=rt[_t]}catch{}if(Ye.length>1&&"30"==At.substr(Ye[1],2)){var pt=he(At,Ye[1]);Ke.statusstr=this.getPKIFreeText(pt),vt++}if(Ye.length>vt&&"03"==At.substr(Ye[1+vt],2)){var $t=he(At,Ye[1+vt]);Ke.failinfo=this.getPKIFailureInfo($t)}return Ke},this.getPKIFreeText=function(At){for(var Ke=[],Ye=tt(At,0),vt=0;vt<Ye.length;vt++)Ke.push(B.getString(At,Ye[vt]));return Ke},this.getPKIFailureInfo=function(At){var Ke=B.getInt(At,0);return null!=Ot[Ke]?Ot[Ke]:Ke},this.getTimeStampReq=function(At){var Ke={certreq:!1},Ye=tt(At,0);if(Ye.length<2)throw new Error("TimeStampReq must have at least 2 items");var vt=he(At,Ye[1]);Ke.messageImprint=Ee.asn1.tsp.TSPUtil.parseMessageImprint(vt);for(var Be=2;Be<Ye.length;Be++){var _t=Ye[Be],pt=At.substr(_t,2);if("06"==pt){var $t=re(At,_t);Ke.policy=B.hextooidstr($t)}"02"==pt&&(Ke.nonce=re(At,_t)),"01"==pt&&(Ke.certreq=!0)}return Ke}},(typeof Ee>"u"||!Ee)&&(Ee={}),(typeof Ee.asn1>"u"||!Ee.asn1)&&(Ee.asn1={}),(typeof Ee.asn1.cades>"u"||!Ee.asn1.cades)&&(Ee.asn1.cades={}),Ee.asn1.cades.SignaturePolicyIdentifier=function(_){var B=Ee.asn1.cades,re=B.SignaturePolicyId;B.SignaturePolicyIdentifier.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.15",this.params=null,this.getValueArray=function(){return[new re(this.params)]},this.setByParam=function(he){this.params=he},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cades.SignaturePolicyIdentifier,Ee.asn1.cms.Attribute),Ee.asn1.cades.SignaturePolicyId=function(_){var D=Ee.asn1,B=D.DERSequence,re=D.DERObjectIdentifier,we=D.cades,rt=we.OtherHashAlgAndValue;we.SignaturePolicyId.superclass.constructor.call(this),this.params=null,this.tohex=function(){var Ot=this.params,At=[];return At.push(new re(Ot.oid)),At.push(new rt(Ot)),new B({array:At}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(Ot){this.params=Ot},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cades.SignaturePolicyId,Ee.asn1.ASN1Object),Ee.asn1.cades.OtherHashAlgAndValue=function(_){var L=Error,B=Ee.asn1,re=B.DERSequence,he=B.DEROctetString,we=B.x509.AlgorithmIdentifier;B.cades.OtherHashAlgAndValue.superclass.constructor.call(this),this.params=null,this.tohex=function(){var Ot=this.params;if(null==Ot.alg)throw new L("property 'alg' not specified");if(null==Ot.hash&&null==Ot.cert)throw new L("property 'hash' nor 'cert' not specified");var At=null;if(null!=Ot.hash)At=Ot.hash;else if(null!=Ot.cert){if("string"!=typeof Ot.cert)throw new L("cert not string");var Ke=Ot.cert;-1!=Ot.cert.indexOf("-----BEGIN")&&(Ke=xr(Ot.cert)),At=Ee.crypto.Util.hashHex(Ke,Ot.alg)}var Ye=[];return Ye.push(new we({name:Ot.alg})),Ye.push(new he({hex:At})),new re({array:Ye}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cades.OtherHashAlgAndValue,Ee.asn1.ASN1Object),Ee.asn1.cades.OtherHashValue=function(_){Ee.asn1.cades.OtherHashValue.superclass.constructor.call(this);var L=Error,he=Ee.asn1.DEROctetString;this.params=null,this.tohex=function(){var we=this.params;if(null==we.hash&&null==we.cert)throw new L("hash or cert not specified");var tt=null;if(null!=we.hash)tt=we.hash;else if(null!=we.cert){if("string"!=typeof we.cert)throw new L("cert not string");var rt=we.cert;-1!=we.cert.indexOf("-----BEGIN")&&(rt=xr(we.cert)),tt=Ee.crypto.Util.hashHex(rt,"sha1")}return new he({hex:tt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cades.OtherHashValue,Ee.asn1.ASN1Object),Ee.asn1.cades.SignatureTimeStamp=function(_){var L=Error,B=Ee.lang.String.isHex,re=Ee.asn1,he=re.ASN1Object;re.cades.SignatureTimeStamp.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.14",this.params=null,this.getValueArray=function(){var tt=this.params;if(null!=tt.tst){if(B(tt.tst))return(rt=new he).hTLV=tt.tst,[rt];if(tt.tst instanceof he)return[tt.tst];throw new L("params.tst has wrong value")}if(null!=tt.res){var rt,Ot=tt.res;if(Ot instanceof he&&(Ot=Ot.tohex()),"string"!=typeof Ot||!B(Ot))throw new L("params.res has wrong value");return Ei.getTLVbyList(Ot,0,[1]),(rt=new he).hTLV=tt.tst,[rt]}},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cades.SignatureTimeStamp,Ee.asn1.cms.Attribute),Ee.asn1.cades.CompleteCertificateRefs=function(_){var L=Error,B=Ee.asn1,re=B.DERSequence,he=B.cades,Se=he.OtherCertID,we=Ee.lang.String.isHex;he.CompleteCertificateRefs.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.21",this.params=null,this.getValueArray=function(){for(var tt=this.params,rt=[],Ot=0;Ot<tt.array.length;Ot++){var At=tt.array[Ot];if("string"==typeof At)if(-1!=At.indexOf("-----BEGIN"))At={cert:At};else{if(!we(At))throw new L("unsupported value: "+At);At={hash:At}}null!=tt.alg&&null==At.alg&&(At.alg=tt.alg),null!=tt.hasis&&null==At.hasis&&(At.hasis=tt.hasis);var Ke=new Se(At);rt.push(Ke)}return[new re({array:rt})]},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cades.CompleteCertificateRefs,Ee.asn1.cms.Attribute),Ee.asn1.cades.OtherCertID=function(_){var D=Ee.asn1,B=D.DERSequence,he=D.cms.IssuerSerial,Se=D.cades,we=Se.OtherHashValue,tt=Se.OtherHashAlgAndValue;Se.OtherCertID.superclass.constructor.call(this),this.params=_,this.tohex=function(){var rt=this.params;"string"==typeof rt&&(-1!=rt.indexOf("-----BEGIN")?rt={cert:rt}:_isHex(rt)&&(rt={hash:rt}));var At,Ot=[];if(At=null!=rt.alg?new tt(rt):new we(rt),Ot.push(At),null!=rt.cert&&1==rt.hasis||null!=rt.issuer&&null!=rt.serial){var Ke=new he(rt);Ot.push(Ke)}return new B({array:Ot}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cades.OtherCertID,Ee.asn1.ASN1Object),Ee.asn1.cades.OtherHash=function(_){Error;var he=Ee.asn1.cades,Se=he.OtherHashAlgAndValue,we=he.OtherHashValue,rt=Ee.lang.String.isHex;he.OtherHash.superclass.constructor.call(this),this.params=null,this.tohex=function(){var Ot=this.params;return"string"==typeof Ot&&(-1!=Ot.indexOf("-----BEGIN")?Ot={cert:Ot}:rt(Ot)&&(Ot={hash:Ot})),(null!=Ot.alg?new Se(Ot):new we(Ot)).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.cades.OtherHash,Ee.asn1.ASN1Object),Ee.asn1.cades.CAdESUtil=new function(){},Ee.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned=function(_){return(new Ee.asn1.cms.CMSParser).getCMSSignedData(_)},Ee.asn1.cades.CAdESUtil.parseSignerInfoForAddingUnsigned=function(_,L,D){var he=Ei.getTLV,Se=Ei.getV,tt=Ee.asn1,rt=tt.ASN1Object,Ot=tt.cms,At=Ot.AttributeList,Ke=Ot.SignerInfo,Ye={},vt=(0,Ei.getChildIdx)(_,L);if(6!=vt.length)throw"not supported items for SignerInfo (!=6)";var Be=vt.shift();Ye.version=he(_,Be);var _t=vt.shift();Ye.si=he(_,_t);var pt=vt.shift();Ye.digalg=he(_,pt);var $t=vt.shift();Ye.sattrs=he(_,$t);var hn=vt.shift();Ye.sigalg=he(_,hn);var mn=vt.shift();Ye.sig=he(_,mn),Ye.sigval=Se(_,mn);var yn=null;return Ye.obj=new Ke,(yn=new rt).hTLV=Ye.version,Ye.obj.dCMSVersion=yn,(yn=new rt).hTLV=Ye.si,Ye.obj.dSignerIdentifier=yn,(yn=new rt).hTLV=Ye.digalg,Ye.obj.dDigestAlgorithm=yn,(yn=new rt).hTLV=Ye.sattrs,Ye.obj.dSignedAttrs=yn,(yn=new rt).hTLV=Ye.sigalg,Ye.obj.dSigAlg=yn,(yn=new rt).hTLV=Ye.sig,Ye.obj.dSig=yn,Ye.obj.dUnsignedAttrs=new At,Ye},(typeof Ee.asn1.csr>"u"||!Ee.asn1.csr)&&(Ee.asn1.csr={}),Ee.asn1.csr.CertificationRequest=function(_){var D=Ee.asn1,B=D.DERBitString,re=D.DERSequence,he=D.csr,we=he.CertificationRequestInfo;he.CertificationRequest.superclass.constructor.call(this),this.setByParam=function(tt){this.params=tt},this.sign=function(){var tt=new we(this.params).tohex(),rt=new Ee.crypto.Signature({alg:this.params.sigalg});rt.init(this.params.sbjprvkey),rt.updateHex(tt);var Ot=rt.sign();this.params.sighex=Ot},this.getPEM=function(){return Br(this.tohex(),"CERTIFICATE REQUEST")},this.tohex=function(){var tt=this.params,rt=new Ee.asn1.csr.CertificationRequestInfo(this.params),Ot=new Ee.asn1.x509.AlgorithmIdentifier({name:tt.sigalg});if(null==tt.sighex&&null!=tt.sbjprvkey&&this.sign(),null==tt.sighex)throw new Error("sighex or sbjprvkey parameter not defined");var At=new B({hex:"00"+tt.sighex});return new re({array:[rt,Ot,At]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.csr.CertificationRequest,Ee.asn1.ASN1Object),Ee.asn1.csr.CertificationRequestInfo=function(_){var D=Ee.asn1,re=D.DERSequence,he=D.DERInteger,Se=D.DERUTF8String,we=D.DERTaggedObject,tt=D.ASN1Util.newObject,Ot=D.x509,At=Ot.X500Name,Ke=Ot.Extensions,Ye=Ot.SubjectPublicKeyInfo;D.csr.CertificationRequestInfo.superclass.constructor.call(this),this.params=null,this.setByParam=function(_t){null!=_t&&(this.params=_t)},this.tohex=function(){var _t=this.params,pt=[];if(pt.push(new he({int:0})),pt.push(new At(_t.subject)),pt.push(new Ye(Uo.getKey(_t.sbjpubkey))),null!=_t.attrs){var $t=function Be(_t){for(var pt=Error,$t=Ee.asn1.x509.Extensions,hn=[],mn=0;mn<_t.length;mn++){var yn=_t[mn],ci=yn.attr;if("extensionRequest"==ci){var yi=new $t(yn.ext);hn.push({seq:[{oid:"1.2.840.113549.1.9.14"},{set:[yi]}]})}else if("unstructuredName"==ci)hn.push({seq:[{oid:"1.2.840.113549.1.9.2"},{set:yn.names}]});else{if("challengePassword"!=ci)throw new pt("unknown CSR attribute");hn.push({seq:[{oid:"1.2.840.113549.1.9.7"},{set:[{utf8str:yn.password}]}]})}}return{set:hn}}(_t.attrs),hn=tt({tag:{tage:"a0",obj:$t}});pt.push(hn)}else if(null!=_t.extreq){var mn=new Ke(_t.extreq);hn=tt({tag:{tage:"a0",obj:{seq:[{oid:"1.2.840.113549.1.9.14"},{set:[mn]}]}}}),pt.push(hn)}else pt.push(new we({tag:"a0",explicit:!1,obj:new Se({str:""})}));return new re({array:pt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ki(Ee.asn1.csr.CertificationRequestInfo,Ee.asn1.ASN1Object),Ee.asn1.csr.AttributeList=function(_){},Ki(Ee.asn1.csr.AttributeList,Ee.asn1.ASN1Object),Ee.asn1.csr.CSRUtil=new function(){},Ee.asn1.csr.CSRUtil.newCSRPEM=function(_){return new Ee.asn1.csr.CertificationRequest(_).getPEM()},Ee.asn1.csr.CSRUtil.getParam=function(_,L){var B=Ei.getV,re=Ei.getIdxbyList,he=Ei.getTLVbyList,Se=Ei.getTLVbyListEx,we=Ei.getVbyListEx,rt={};if(-1==_.indexOf("-----BEGIN CERTIFICATE REQUEST"))throw new Error("argument is not PEM file");var Ot=xr(_,"CERTIFICATE REQUEST");L&&(rt.tbs=he(Ot,0,[0]));try{var At=Se(Ot,0,[0,1]);if("3000"==At)rt.subject={};else{var Be=new Kr;rt.subject=Be.getX500Name(At)}}catch{}var Ke=Se(Ot,0,[0,2]),Ye=Uo.getKey(Ke,null,"pkcs8pub");rt.sbjpubkey=Uo.getPEM(Ye,"PKCS8PUB");var $t,hn,vt=(hn=re($t=Ot,0,[0,3,0,0],"06"),"2a864886f70d01090e"!=B($t,hn)?null:he($t,0,[0,3,0,1,0],"30"));Be=new Kr,null!=vt&&(rt.extreq=Be.getExtParamArray(vt));try{var _t=Se(Ot,0,[1],"30");Be=new Kr,rt.sigalg=Be.getAlgorithmIdentifierName(_t)}catch{}try{var pt=we(Ot,0,[2]);rt.sighex=pt}catch{}return rt},Ee.asn1.csr.CSRUtil.verifySignature=function(_){try{var L=null;if("string"==typeof _&&-1!=_.indexOf("-----BEGIN CERTIFICATE REQUEST")?L=Ee.asn1.csr.CSRUtil.getParam(_,!0):"object"==typeof _&&null!=_.sbjpubkey&&null!=_.sigalg&&null!=_.sighex&&null!=_.tbs&&(L=_),null==L)return!1;var D=new Ee.crypto.Signature({alg:L.sigalg});return D.init(L.sbjpubkey),D.updateHex(L.tbs),D.verify(L.sighex)}catch(B){return alert(B),!1}},(typeof Ee>"u"||!Ee)&&(Ee={}),(typeof Ee.asn1>"u"||!Ee.asn1)&&(Ee.asn1={}),(typeof Ee.asn1.ocsp>"u"||!Ee.asn1.ocsp)&&(Ee.asn1.ocsp={}),Ee.asn1.ocsp.DEFAULT_HASH="sha1",Ee.asn1.ocsp.OCSPResponse=function(_){Ee.asn1.ocsp.OCSPResponse.superclass.constructor.call(this);var D=Ee.asn1.ASN1Util.newObject,B=Ee.asn1.ocsp.ResponseBytes,re=["successful","malformedRequest","internalError","tryLater","_not_used_","sigRequired","unauthorized"];this.params=null,this._getStatusCode=function(){var he=this.params.resstatus;return"number"==typeof he?he:"string"!=typeof he?-1:re.indexOf(he)},this.setByParam=function(he){this.params=he},this.tohex=function(){var he=this.params,Se=this._getStatusCode();if(-1==Se)throw new Error("responseStatus not supported: "+he.resstatus);if(0!=Se)return D({seq:[{enum:{int:Se}}]}).tohex();var we=new B(he);return D({seq:[{enum:{int:0}},{tag:{tag:"a0",explicit:!0,obj:we}}]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.ocsp.OCSPResponse,Ee.asn1.ASN1Object),Ee.asn1.ocsp.ResponseBytes=function(_){Ee.asn1.ocsp.ResponseBytes.superclass.constructor.call(this);var L=Ee.asn1,D=L.DERSequence,B=L.DERObjectIdentifier,re=L.DEROctetString,he=L.ocsp.BasicOCSPResponse;this.params=null,this.setByParam=function(Se){this.params=Se},this.tohex=function(){var Se=this.params;if("ocspBasic"!=Se.restype)throw new Error("not supported responseType: "+Se.restype);var we=new he(Se),tt=[];return tt.push(new B({name:"ocspBasic"})),tt.push(new re({hex:we.tohex()})),new D({array:tt}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.ocsp.ResponseBytes,Ee.asn1.ASN1Object),Ee.asn1.ocsp.BasicOCSPResponse=function(_){Ee.asn1.ocsp.BasicOCSPResponse.superclass.constructor.call(this);var L=Error,D=Ee.asn1,B=D.ASN1Object,re=D.DERSequence,Se=D.DERTaggedObject,we=D.DERBitString,rt=D.x509.AlgorithmIdentifier,Ot=D.ocsp;_SingleResponseList=Ot.SingleResponseList,_ResponseData=Ot.ResponseData,this.params=null,this.setByParam=function(Ke){this.params=Ke},this.sign=function(){var Ke=this.params,Ye=Ke.tbsresp.tohex(),vt=new Ee.crypto.Signature({alg:Ke.sigalg});vt.init(Ke.reskey),vt.updateHex(Ye),Ke.sighex=vt.sign()},this.tohex=function(){var Ke=this.params;null==Ke.tbsresp&&(Ke.tbsresp=new _ResponseData(Ke)),null==Ke.sighex&&null!=Ke.reskey&&this.sign();var Ye=[];if(Ye.push(Ke.tbsresp),Ye.push(new rt({name:Ke.sigalg})),Ye.push(new we({hex:"00"+Ke.sighex})),null!=Ke.certs&&null!=Ke.certs.length){for(var vt=[],Be=0;Be<Ke.certs.length;Be++){var _t=Ke.certs[Be],pt=null;if(Ei.isASN1HEX(_t))pt=_t;else{if(!_t.match(/-----BEGIN/))throw new L("certs["+Be+"] not hex or PEM");pt=xr(_t)}vt.push(new B({tlv:pt}))}var $t=new re({array:vt});Ye.push(new Se({tag:"a0",explicit:!0,obj:$t}))}return new re({array:Ye}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.ocsp.BasicOCSPResponse,Ee.asn1.ASN1Object),Ee.asn1.ocsp.ResponseData=function(_){Ee.asn1.ocsp.ResponseData.superclass.constructor.call(this);var L=Error,D=Ee.asn1,B=D.DERSequence,re=D.DERGeneralizedTime,he=D.DERTaggedObject,Se=D.x509.Extensions,we=D.ocsp,tt=we.ResponderID;_SingleResponseList=we.SingleResponseList,this.params=null,this.tohex=function(){var rt=this.params;null!=rt.respid&&new L("respid not specified"),null!=rt.prodat&&new L("prodat not specified"),null!=rt.array&&new L("array not specified");var Ot=[];if(Ot.push(new tt(rt.respid)),Ot.push(new re(rt.prodat)),Ot.push(new _SingleResponseList(rt.array)),null!=rt.ext){var At=new Se(rt.ext);Ot.push(new he({tag:"a1",explicit:!0,obj:At}))}return new B({array:Ot}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(rt){this.params=rt},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.ocsp.ResponseData,Ee.asn1.ASN1Object),Ee.asn1.ocsp.ResponderID=function(_){Ee.asn1.ocsp.ResponderID.superclass.constructor.call(this);var D=Ee.asn1,B=D.ASN1Util.newObject,re=D.x509.X500Name,he=Ee.lang.String.isHex,Se=Error;this.params=null,this.tohex=function(){var we=this.params;if(null!=we.key){var tt=null;if("string"==typeof we.key)he(we.key)&&(tt=we.key),we.key.match(/-----BEGIN CERTIFICATE/)&&null!=(Ot=new Kr(we.key).getExtSubjectKeyIdentifier())&&(tt=Ot.kid.hex);else if(we.key instanceof Kr){var Ot;null!=(Ot=we.key.getExtSubjectKeyIdentifier())&&(tt=Ot.kid.hex)}if(null==tt)throw new Se("wrong key member value");return B({tag:{tag:"a2",explicit:!0,obj:{octstr:{hex:tt}}}}).tohex()}if(null!=we.name){var Ke=null;if("string"==typeof we.name&&we.name.match(/-----BEGIN CERTIFICATE/)?Ke=new Kr(we.name).getSubject():we.name instanceof Kr?Ke=we.name.getSubject():"object"==typeof we.name&&(null!=we.name.array||null!=we.name.str)&&(Ke=we.name),null==Ke)throw new Se("wrong name member value");return B({tag:{tag:"a1",explicit:!0,obj:new re(Ke)}}).tohex()}throw new Se("key or name not specified")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(we){this.params=we},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.ocsp.ResponderID,Ee.asn1.ASN1Object),Ee.asn1.ocsp.SingleResponseList=function(_){Ee.asn1.ocsp.SingleResponseList.superclass.constructor.call(this);var L=Ee.asn1,D=L.DERSequence,B=L.ocsp.SingleResponse;this.params=null,this.tohex=function(){var re=this.params;if("object"!=typeof re||null==re.length)throw new Error("params not specified properly");for(var he=[],Se=0;Se<re.length;Se++)he.push(new B(re[Se]));return new D({array:he}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(re){this.params=re},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.ocsp.SingleResponseList,Ee.asn1.ASN1Object),Ee.asn1.ocsp.SingleResponse=function(_){var L=Error,B=Ee.asn1,re=B.DERSequence,he=B.DERGeneralizedTime,Se=B.DERTaggedObject,we=B.ocsp,tt=we.CertID,rt=we.CertStatus,At=B.x509.Extensions;we.SingleResponse.superclass.constructor.call(this),this.params=null,this.tohex=function(){var Ke=this.params,Ye=[];if(null==Ke.certid)throw new L("certid unspecified");if(null==Ke.status)throw new L("status unspecified");if(null==Ke.thisupdate)throw new L("thisupdate unspecified");if(Ye.push(new tt(Ke.certid)),Ye.push(new rt(Ke.status)),Ye.push(new he(Ke.thisupdate)),null!=Ke.nextupdate){var vt=new he(Ke.nextupdate);Ye.push(new Se({tag:"a0",explicit:!0,obj:vt}))}if(null!=Ke.ext){var Be=new At(Ke.ext);Ye.push(new Se({tag:"a1",explicit:!0,obj:Be}))}return new re({array:Ye}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(Ke){this.params=Ke},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.ocsp.SingleResponse,Ee.asn1.ASN1Object),Ee.asn1.ocsp.CertID=function(_){var D=Ee.asn1,B=D.DEROctetString,re=D.DERInteger,he=D.DERSequence,we=D.x509.AlgorithmIdentifier,At=Ee.crypto.Util.hashHex,Ke=Kr,vt=Ei.getVbyList;D.ocsp.CertID.superclass.constructor.call(this),this.DEFAULT_HASH="sha1",this.params=null,this.setByValue=function(Be,_t,pt,$t){null==$t&&($t=this.DEFAULT_HASH),this.params={alg:$t,issname:Be,isskey:_t,sbjsn:pt}},this.setByCert=function(Be,_t,pt){null==pt&&(pt=this.DEFAULT_HASH),this.params={alg:pt,issuerCert:Be,subjectCert:_t}},this.getParamByCerts=function(Be,_t,pt){null==pt&&(pt=this.DEFAULT_HASH);var $t=new Ke(Be),hn=new Ke(_t),mn=At($t.getSubjectHex(),pt),yn=$t.getPublicKeyHex();return{alg:pt,issname:mn,isskey:At(vt(yn,0,[1],"03",!0),pt),sbjsn:hn.getSerialNumberHex()}},this.tohex=function(){if("object"!=typeof this.params)throw new Error("params not set");var _t,pt,$t,hn,Be=this.params;if(hn=null==Be.alg?this.DEFAULT_HASH:Be.alg,null!=Be.issuerCert&&null!=Be.subjectCert){var mn=this.getParamByCerts(Be.issuerCert,Be.subjectCert,hn);_t=mn.issname,pt=mn.isskey,$t=mn.sbjsn}else{if(null==Be.issname||null==Be.isskey||null==Be.sbjsn)throw new Error("required param members not defined");_t=Be.issname,pt=Be.isskey,$t=Be.sbjsn}var yn=new we({name:hn}),ci=new B({hex:_t}),yi=new B({hex:pt}),Bt=new re({hex:$t}),Rt=new he({array:[yn,ci,yi,Bt]});return this.hTLV=Rt.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.ocsp.CertID,Ee.asn1.ASN1Object),Ee.asn1.ocsp.CertStatus=function(_){Ee.asn1.ocsp.CertStatus.superclass.constructor.call(this),this.params=null,this.tohex=function(){var L=this.params;if("good"==L.status)return"8000";if("unknown"==L.status)return"8200";if("revoked"==L.status){var D=[{gentime:{str:L.time}}];return null!=L.reason&&D.push({tag:{tag:"a0",explicit:!0,obj:{enum:{int:L.reason}}}}),Ee.asn1.ASN1Util.newObject({tag:{tag:"a1",explicit:!1,obj:{seq:D}}}).tohex()}throw new Error("bad status")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(L){this.params=L},void 0!==_&&this.setByParam(_)},Ki(Ee.asn1.ocsp.CertStatus,Ee.asn1.ASN1Object),Ee.asn1.ocsp.Request=function(_){var D=Ee.asn1,B=D.DERSequence,re=D.ocsp;if(re.Request.superclass.constructor.call(this),this.dReqCert=null,this.dExt=null,this.tohex=function(){var Se=[];if(null===this.dReqCert)throw"reqCert not set";Se.push(this.dReqCert);var we=new B({array:Se});return this.hTLV=we.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},typeof _<"u"){var he=new re.CertID(_);this.dReqCert=he}},Ki(Ee.asn1.ocsp.Request,Ee.asn1.ASN1Object),Ee.asn1.ocsp.TBSRequest=function(_){var D=Ee.asn1,B=D.DERSequence,re=D.ocsp;re.TBSRequest.superclass.constructor.call(this),this.version=0,this.dRequestorName=null,this.dRequestList=[],this.dRequestExt=null,this.setRequestListByParam=function(he){for(var Se=[],we=0;we<he.length;we++){var tt=new re.Request(he[0]);Se.push(tt)}this.dRequestList=Se},this.tohex=function(){var he=[];if(0!==this.version)throw"not supported version: "+this.version;if(null!==this.dRequestorName)throw"requestorName not supported";var Se=new B({array:this.dRequestList});if(he.push(Se),null!==this.dRequestExt)throw"requestExtensions not supported";var we=new B({array:he});return this.hTLV=we.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&void 0!==_.reqList&&this.setRequestListByParam(_.reqList)},Ki(Ee.asn1.ocsp.TBSRequest,Ee.asn1.ASN1Object),Ee.asn1.ocsp.OCSPRequest=function(_){var D=Ee.asn1,B=D.DERSequence,re=D.ocsp;if(re.OCSPRequest.superclass.constructor.call(this),this.dTbsRequest=null,this.dOptionalSignature=null,this.tohex=function(){var Se=[];if(null===this.dTbsRequest)throw"tbsRequest not set";if(Se.push(this.dTbsRequest),null!==this.dOptionalSignature)throw"optionalSignature not supported";var we=new B({array:Se});return this.hTLV=we.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&void 0!==_.reqList){var he=new re.TBSRequest(_);this.dTbsRequest=he}},Ki(Ee.asn1.ocsp.OCSPRequest,Ee.asn1.ASN1Object),Ee.asn1.ocsp.OCSPUtil={},Ee.asn1.ocsp.OCSPUtil.getRequestHex=function(_,L,D){var he=Ee.asn1.ocsp;return void 0===D&&(D=he.DEFAULT_HASH),new he.OCSPRequest({reqList:[{alg:D,issuerCert:_,subjectCert:L}]}).tohex()},Ee.asn1.ocsp.OCSPUtil.getOCSPResponseInfo=function(_){var D=Ei.getVbyList,B=Ei.getVbyListEx,re=Ei.getIdxbyList,Se=Ei.getV,we={};try{var tt=B(_,0,[0],"0a");we.responseStatus=parseInt(tt,16)}catch{}if(0!==we.responseStatus)return we;try{var rt=re(_,0,[1,0,1,0,0,2,0,1]);"80"===_.substr(rt,2)?we.certStatus="good":"a1"===_.substr(rt,2)?(we.certStatus="revoked",we.revocationTime=xo(D(_,rt,[0]))):"82"===_.substr(rt,2)&&(we.certStatus="unknown")}catch{}try{var Ot=re(_,0,[1,0,1,0,0,2,0,2]);we.thisUpdate=xo(Se(_,Ot))}catch{}try{var At=re(_,0,[1,0,1,0,0,2,0,3]);"a0"===_.substr(At,2)&&(we.nextUpdate=xo(D(_,At,[0])))}catch{}return we},Ee.asn1.ocsp.OCSPParser=function(){var _=Error,L=Kr,D=new L,re=Ei.getV,he=Ei.getTLV,Se=Ei.getIdxbyList,we=Ei.getVbyList,tt=Ei.getTLVbyList,rt=Ei.getVbyListEx,Ot=Ei.getTLVbyListEx,At=Ei.getChildIdx;this.getOCSPRequest=function(Ke){var Ye=At(Ke,0);if(1!=Ye.length&&2!=Ye.length)throw new _("wrong number elements: "+Ye.length);return this.getTBSRequest(he(Ke,Ye[0]))},this.getTBSRequest=function(Ke){var Ye={},vt=Ot(Ke,0,[0],"30");Ye.array=this.getRequestList(vt);var Be=Ot(Ke,0,["[2]",0],"30");return null!=Be&&(Ye.ext=D.getExtParamArray(Be)),Ye},this.getRequestList=function(Ke){for(var Ye=[],vt=At(Ke,0),Be=0;Be<vt.length;Be++)Ke=he(Ke,vt[Be]),Ye.push(this.getRequest(Ke));return Ye},this.getRequest=function(Ke){var Ye=At(Ke,0);if(1!=Ye.length&&2!=Ye.length)throw new _("wrong number elements: "+Ye.length);var vt=this.getCertID(he(Ke,Ye[0]));if(2==Ye.length){var Be=Se(Ke,0,[1,0]);vt.ext=D.getExtParamArray(he(Ke,Be))}return vt},this.getCertID=function(Ke){var Ye=At(Ke,0);if(4!=Ye.length)throw new _("wrong number elements: "+Ye.length);var vt=new L,Be={};return Be.alg=vt.getAlgorithmIdentifierName(he(Ke,Ye[0])),Be.issname=re(Ke,Ye[1]),Be.isskey=re(Ke,Ye[2]),Be.sbjsn=re(Ke,Ye[3]),Be},this.getOCSPResponse=function(Ke){var vt,Ye=At(Ke,0),Be=re(Ke,Ye[0]),_t=parseInt(Be);if(1==Ye.length)return{resstatus:_t};var pt=tt(Ke,0,[1,0]);return(vt=this.getResponseBytes(pt)).resstatus=_t,vt},this.getResponseBytes=function(Ke){var vt,Ye=At(Ke,0),Be=tt(Ke,0,[1,0]);vt=this.getBasicOCSPResponse(Be);var _t=re(Ke,Ye[0]);return vt.restype=Ee.asn1.x509.OID.oid2name(Ca(_t)),vt},this.getBasicOCSPResponse=function(Ke){var vt,Ye=At(Ke,0);vt=this.getResponseData(he(Ke,Ye[0]));var Be=new Kr;vt.alg=Be.getAlgorithmIdentifierName(he(Ke,Ye[1]));var _t=re(Ke,Ye[2]);vt.sighex=_t.substr(2);var pt=rt(Ke,0,["[0]"]);if(null!=pt){for(var $t=At(pt,0),hn=[],mn=0;mn<$t.length;mn++){var yn=he(pt,$t[mn]);hn.push(yn)}vt.certs=hn}return vt},this.getResponseData=function(Ke){var Ye=At(Ke,0),vt=Ye.length,Be={},_t=0;"a0"==Ke.substr(Ye[0],2)&&_t++,Be.respid=this.getResponderID(he(Ke,Ye[_t++]));var pt=re(Ke,Ye[_t++]);if(Be.prodat=xo(pt),Be.array=this.getSingleResponseList(he(Ke,Ye[_t++])),"a1"==Ke.substr(Ye[vt-1],2)){var $t=tt(Ke,Ye[vt-1],[0]),hn=new Kr;Be.ext=hn.getExtParamArray($t)}return Be},this.getResponderID=function(Ke){var Ye={};if("a2"==Ke.substr(0,2)){var vt=we(Ke,0,[0]);Ye.key=vt}if("a1"==Ke.substr(0,2)){var Be=tt(Ke,0,[0]),_t=new Kr;Ye.name=_t.getX500Name(Be)}return Ye},this.getSingleResponseList=function(Ke){for(var Ye=At(Ke,0),vt=[],Be=0;Be<Ye.length;Be++){var _t=this.getSingleResponse(he(Ke,Ye[Be]));vt.push(_t)}return vt},this.getSingleResponse=function(Ke){var Ye=At(Ke,0),vt={},Be=this.getCertID(he(Ke,Ye[0]));vt.certid=Be;var _t=this.getCertStatus(he(Ke,Ye[1]));if(vt.status=_t,"18"==Ke.substr(Ye[2],2)){var pt=re(Ke,Ye[2]);vt.thisupdate=xo(pt)}for(var $t=3;$t<Ye.length;$t++){if("a0"==Ke.substr(Ye[$t],2)){var hn=we(Ke,Ye[$t],[0],"18");vt.nextupdate=xo(hn)}if("a1"==Ke.substr(Ye[$t],2)){var mn=new Kr,yn=tt(Ke,0,[$t,0]);vt.ext=mn.getExtParamArray(yn)}}return vt},this.getCertStatus=function(Ke){var Ye={};if("8000"==Ke)return{status:"good"};if("8200"==Ke)return{status:"unknown"};if("a1"==Ke.substr(0,2)){Ye.status="revoked";var Be=xo(we(Ke,0,[0]));Ye.time=Be}return Ye}},(typeof Ee>"u"||!Ee)&&(Ee={}),(typeof Ee.lang>"u"||!Ee.lang)&&(Ee.lang={}),Ee.lang.String=function(){},"function"==typeof Buffer?(kt=function(_){return oa(Buffer.from(_,"utf8").toString("base64"))},bn=function(_){return Buffer.from(Ft(_),"base64").toString("utf8")}):(kt=function(_){return mt(ut(Kn(_)))},bn=function(_){return decodeURIComponent(cn(nn(_)))}),Ee.lang.String.isInteger=function(_){return!!_.match(/^[0-9]+$/)||!!_.match(/^-[0-9]+$/)},Ee.lang.String.isHex=function(_){return jr(_)},Ee.lang.String.isBase64=function(_){return!(!(_=_.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||_.length%4!=0)},Ee.lang.String.isBase64URL=function(_){return!_.match(/[+/=]/)&&(_=Ft(_),Ee.lang.String.isBase64(_))},Ee.lang.String.isIntegerArray=function(_){return!!(_=_.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},Ee.lang.String.isPrintable=function(_){return null!==_.match(/^[0-9A-Za-z '()+,-./:=?]*$/)},Ee.lang.String.isIA5=function(_){return null!==_.match(/^[\x20-\x21\x23-\x7f]*$/)},Ee.lang.String.isMail=function(_){return null!==_.match(/^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}\.[A-Za-z0-9]{1,}$/)};var Xa=function(_,L,D){return null==D&&(D="0"),_.length>=L?_:new Array(L-_.length+1).join(D)+_};function Ma(_,L){for(var D=0,B=0;B<_.length;B++)D|=1<<L[_[B]];var re=D.toString(2),he="";for(B=re.length-1;B>=0;B--)he+=re[B];return he}function Vo(_,B,D){if("object"==typeof _){B=String(B).split(".");for(var re=0;re<B.length&&_;re++){var he=B[re];he.match(/^[0-9]+$/)&&(he=parseInt(he)),_=_[he]}return _||!1===_?_:D}}function Ki(_,L){var D=function(){};D.prototype=L.prototype,_.prototype=new D,_.prototype.constructor=_,_.superclass=L.prototype,L.prototype.constructor==Object.prototype.constructor&&(L.prototype.constructor=L)}(typeof Ee>"u"||!Ee)&&(Ee={}),(typeof Ee.crypto>"u"||!Ee.crypto)&&(Ee.crypto={}),Ee.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:f.algo.MD5,sha1:f.algo.SHA1,sha224:f.algo.SHA224,sha256:f.algo.SHA256,sha384:f.algo.SHA384,sha512:f.algo.SHA512,ripemd160:f.algo.RIPEMD160},this.getDigestInfoHex=function(_,L){if(typeof this.DIGESTINFOHEAD[L]>"u")throw"alg not supported in Util.DIGESTINFOHEAD: "+L;return this.DIGESTINFOHEAD[L]+_},this.getPaddedDigestInfoHex=function(_,L,D){var B=this.getDigestInfoHex(_,L),re=D/4;if(B.length+22>re)throw"key is too short for SigAlg: keylen="+D+","+L;for(var Se="00"+B,we="",tt=re-4-Se.length,rt=0;rt<tt;rt+=2)we+="ff";return"0001"+we+Se},this.hashString=function(_,L){return new Ee.crypto.MessageDigest({alg:L}).digestString(_)},this.hashHex=function(_,L){return new Ee.crypto.MessageDigest({alg:L}).digestHex(_)},this.sha1=function(_){return this.hashString(_,"sha1")},this.sha256=function(_){return this.hashString(_,"sha256")},this.sha256Hex=function(_){return this.hashHex(_,"sha256")},this.sha512=function(_){return this.hashString(_,"sha512")},this.sha512Hex=function(_){return this.hashHex(_,"sha512")},this.isKey=function(_){return _ instanceof Er||_ instanceof Ee.crypto.DSA||_ instanceof Ee.crypto.ECDSA}},Ee.crypto.Util.md5=function(_){return new Ee.crypto.MessageDigest({alg:"md5",prov:"cryptojs"}).digestString(_)},Ee.crypto.Util.ripemd160=function(_){return new Ee.crypto.MessageDigest({alg:"ripemd160",prov:"cryptojs"}).digestString(_)},Ee.crypto.Util.SECURERANDOMGEN=new ts,Ee.crypto.Util.getRandomHexOfNbytes=function(_){var L=new Array(_);return Ee.crypto.Util.SECURERANDOMGEN.nextBytes(L),ga(L)},Ee.crypto.Util.getRandomBigIntegerOfNbytes=function(_){return new u(Ee.crypto.Util.getRandomHexOfNbytes(_),16)},Ee.crypto.Util.getRandomHexOfNbits=function(_){var L=_%8,B=new Array((_-L)/8+1);return Ee.crypto.Util.SECURERANDOMGEN.nextBytes(B),B[0]=(255<<L&255^255)&B[0],ga(B)},Ee.crypto.Util.getRandomBigIntegerOfNbits=function(_){return new u(Ee.crypto.Util.getRandomHexOfNbits(_),16)},Ee.crypto.Util.getRandomBigIntegerZeroToMax=function(_){for(var L=_.bitLength();;){var D=Ee.crypto.Util.getRandomBigIntegerOfNbits(L);if(-1!=_.compareTo(D))return D}},Ee.crypto.Util.getRandomBigIntegerMinToMax=function(_,L){var D=_.compareTo(L);if(1==D)throw"biMin is greater than biMax";if(0==D)return _;var B=L.subtract(_);return Ee.crypto.Util.getRandomBigIntegerZeroToMax(B).add(_)},Ee.crypto.MessageDigest=function(_){this.setAlgAndProvider=function(re,he){if(null!==(re=Ee.crypto.MessageDigest.getCanonicalAlgName(re))&&void 0===he&&(he=Ee.crypto.Util.DEFAULTPROVIDER[re]),-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(re)&&"cryptojs"==he){try{this.md=Ee.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[re].create()}catch(Se){throw"setAlgAndProvider hash alg set fail alg="+re+"/"+Se}this.updateString=function(Se){this.md.update(Se)},this.updateHex=function(Se){var we=f.enc.Hex.parse(Se);this.md.update(we)},this.digest=function(){return this.md.finalize().toString(f.enc.Hex)},this.digestString=function(Se){return this.updateString(Se),this.digest()},this.digestHex=function(Se){return this.updateHex(Se),this.digest()}}if(-1!=":sha256:".indexOf(re)&&"sjcl"==he){try{this.md=new sjcl.hash.sha256}catch(Se){throw"setAlgAndProvider hash alg set fail alg="+re+"/"+Se}this.updateString=function(Se){this.md.update(Se)},this.updateHex=function(Se){var we=sjcl.codec.hex.toBits(Se);this.md.update(we)},this.digest=function(){var Se=this.md.finalize();return sjcl.codec.hex.fromBits(Se)},this.digestString=function(Se){return this.updateString(Se),this.digest()},this.digestHex=function(Se){return this.updateHex(Se),this.digest()}}},this.updateString=function(re){throw"updateString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.updateHex=function(re){throw"updateHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digest=function(){throw"digest() not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestString=function(re){throw"digestString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestHex=function(re){throw"digestHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},void 0!==_&&void 0!==_.alg&&(this.algName=_.alg,void 0===_.prov&&(this.provName=Ee.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName))},Ee.crypto.MessageDigest.getCanonicalAlgName=function(_){return"string"==typeof _&&(_=(_=_.toLowerCase()).replace(/-/,"")),_},Ee.crypto.MessageDigest.getHashLength=function(_){var L=Ee.crypto.MessageDigest,D=L.getCanonicalAlgName(_);if(void 0===L.HASHLENGTH[D])throw"not supported algorithm: "+_;return L.HASHLENGTH[D]},Ee.crypto.MessageDigest.HASHLENGTH={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,ripemd160:20},Ee.crypto.Mac=function(_){this.setAlgAndProvider=function(Se,we){if(null==(Se=Se.toLowerCase())&&(Se="hmacsha1"),"hmac"!=(Se=Se.toLowerCase()).substr(0,4))throw"setAlgAndProvider unsupported HMAC alg: "+Se;void 0===we&&(we=Ee.crypto.Util.DEFAULTPROVIDER[Se]),this.algProv=Se+"/"+we;var tt=Se.substr(4);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(tt)&&"cryptojs"==we){try{this.mac=f.algo.HMAC.create(Ee.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[tt],this.pass)}catch(Ot){throw"setAlgAndProvider hash alg set fail hashAlg="+tt+"/"+Ot}this.updateString=function(Ot){this.mac.update(Ot)},this.updateHex=function(Ot){var At=f.enc.Hex.parse(Ot);this.mac.update(At)},this.doFinal=function(){return this.mac.finalize().toString(f.enc.Hex)},this.doFinalString=function(Ot){return this.updateString(Ot),this.doFinal()},this.doFinalHex=function(Ot){return this.updateHex(Ot),this.doFinal()}}},this.updateString=function(Se){throw"updateString(str) not supported for this alg/prov: "+this.algProv},this.updateHex=function(Se){throw"updateHex(hex) not supported for this alg/prov: "+this.algProv},this.doFinal=function(){throw"digest() not supported for this alg/prov: "+this.algProv},this.doFinalString=function(Se){throw"digestString(str) not supported for this alg/prov: "+this.algProv},this.doFinalHex=function(Se){throw"digestHex(hex) not supported for this alg/prov: "+this.algProv},this.setPassword=function(Se){if("string"==typeof Se){var we=Se;return(Se.length%2==1||!Se.match(/^[0-9A-Fa-f]+$/))&&(we=Or(Se)),void(this.pass=f.enc.Hex.parse(we))}if("object"!=typeof Se)throw"KJUR.crypto.Mac unsupported password type: "+Se;if(we=null,void 0!==Se.hex){if(Se.hex.length%2!=0||!Se.hex.match(/^[0-9A-Fa-f]+$/))throw"Mac: wrong hex password: "+Se.hex;we=Se.hex}if(void 0!==Se.utf8&&(we=ls(Se.utf8)),void 0!==Se.rstr&&(we=Or(Se.rstr)),void 0!==Se.b64&&(we=E(Se.b64)),void 0!==Se.b64u&&(we=nn(Se.b64u)),null==we)throw"KJUR.crypto.Mac unsupported password type: "+Se;this.pass=f.enc.Hex.parse(we)},void 0!==_&&(void 0!==_.pass&&this.setPassword(_.pass),void 0!==_.alg&&(this.algName=_.alg,void 0===_.prov&&(this.provName=Ee.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName)))},Ee.crypto.Signature=function(_){var L=null;if(this._setAlgNames=function(){var pt=this.algName.match(/^(.+)with(.+)$/);pt&&(this.mdAlgName=pt[1].toLowerCase(),this.pubkeyAlgName=pt[2].toLowerCase(),"rsaandmgf1"==this.pubkeyAlgName&&"sha"==this.mdAlgName&&(this.mdAlgName="sha1"))},this._zeroPaddingOfSignature=function(pt,$t){for(var hn="",mn=$t/4-pt.length,yn=0;yn<mn;yn++)hn+="0";return hn+pt},this.setAlgAndProvider=function(pt,$t){if(this._setAlgNames(),"cryptojs/jsrsa"!=$t)throw new Error("provider not supported: "+$t);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(this.mdAlgName)){try{this.md=new Ee.crypto.MessageDigest({alg:this.mdAlgName})}catch(hn){throw new Error("setAlgAndProvider hash alg set fail alg="+this.mdAlgName+"/"+hn)}this.init=function(hn,mn){var yn=null;try{yn=void 0===mn?Uo.getKey(hn):Uo.getKey(hn,mn)}catch(ci){throw"init failed:"+ci}if(!0===yn.isPrivate)this.prvKey=yn,this.state="SIGN";else{if(!0!==yn.isPublic)throw"init failed.:"+yn;this.pubKey=yn,this.state="VERIFY"}},this.updateString=function(hn){this.md.updateString(hn)},this.updateHex=function(hn){this.md.updateHex(hn)},this.sign=function(){if(this.sHashHex=this.md.digest(),void 0===this.prvKey&&void 0!==this.ecprvhex&&void 0!==this.eccurvename&&void 0!==Ee.crypto.ECDSA&&(this.prvKey=new Ee.crypto.ECDSA({curve:this.eccurvename,prv:this.ecprvhex})),this.prvKey instanceof Er&&"rsaandmgf1"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHashPSS(this.sHashHex,this.mdAlgName,this.pssSaltLen);else if(this.prvKey instanceof Er&&"rsa"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex,this.mdAlgName);else if(this.prvKey instanceof Ee.crypto.ECDSA)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex);else{if(!(this.prvKey instanceof Ee.crypto.DSA))throw"Signature: unsupported private key alg: "+this.pubkeyAlgName;this.hSign=this.prvKey.signWithMessageHash(this.sHashHex)}return this.hSign},this.signString=function(hn){return this.updateString(hn),this.sign()},this.signHex=function(hn){return this.updateHex(hn),this.sign()},this.verify=function(hn){if(this.sHashHex=this.md.digest(),void 0===this.pubKey&&void 0!==this.ecpubhex&&void 0!==this.eccurvename&&void 0!==Ee.crypto.ECDSA&&(this.pubKey=new Ee.crypto.ECDSA({curve:this.eccurvename,pub:this.ecpubhex})),this.pubKey instanceof Er&&"rsaandmgf1"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHashPSS(this.sHashHex,hn,this.mdAlgName,this.pssSaltLen);if(this.pubKey instanceof Er&&"rsa"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHash(this.sHashHex,hn);if(void 0!==Ee.crypto.ECDSA&&this.pubKey instanceof Ee.crypto.ECDSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,hn);if(void 0!==Ee.crypto.DSA&&this.pubKey instanceof Ee.crypto.DSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,hn);throw"Signature: unsupported public key alg: "+this.pubkeyAlgName}}},this.init=function(pt,$t){throw"init(key, pass) not supported for this alg:prov="+this.algProvName},this.updateString=function(pt){throw"updateString(str) not supported for this alg:prov="+this.algProvName},this.updateHex=function(pt){throw"updateHex(hex) not supported for this alg:prov="+this.algProvName},this.sign=function(){throw"sign() not supported for this alg:prov="+this.algProvName},this.signString=function(pt){throw"digestString(str) not supported for this alg:prov="+this.algProvName},this.signHex=function(pt){throw"digestHex(hex) not supported for this alg:prov="+this.algProvName},this.verify=function(pt){throw"verify(hSigVal) not supported for this alg:prov="+this.algProvName},this.initParams=_,void 0!==_&&(void 0!==_.alg&&(this.algName=_.alg,this.provName=void 0===_.prov?Ee.crypto.Util.DEFAULTPROVIDER[this.algName]:_.prov,this.algProvName=this.algName+":"+this.provName,this.setAlgAndProvider(this.algName,this.provName),this._setAlgNames()),void 0!==_.psssaltlen&&(this.pssSaltLen=_.psssaltlen),void 0!==_.prvkeypem)){if(void 0!==_.prvkeypas)throw"both prvkeypem and prvkeypas parameters not supported";try{L=Uo.getKey(_.prvkeypem),this.init(L)}catch(pt){throw"fatal error to load pem private key: "+pt}}},Ee.crypto.Cipher=function(_){},Ee.crypto.Cipher.encrypt=function(_,L,D,B){if(null!=Vo(B,"enclag")&&(D=B.encalg),"string"==typeof D&&"-CBC"==D.substr(-4)){var re=L,he=_;null!=Vo(B,"key")&&(re=B.key),null!=Vo(B,"enc")&&(hEnc=B.enc);var rt,Se=f.enc.Hex.parse(re),we=f.enc.Hex.parse(he),tt=f.enc.Hex.parse(B.iv);if("des-EDE3-CBC"==D)rt=f.TripleDES.encrypt(we,Se,{iv:tt});else{if("aes128-CBC"!=D&&"aes256-CBC"!=D)throw new Error("unsupported algorithm: "+D);rt=f.AES.encrypt(we,Se,{iv:tt})}return rt+""}throw new Error("Cipher.encrypt: unsupported key or algorithm")},Ee.crypto.Cipher.decrypt=function(_,L,D,B){if(null!=Vo(B,"enclag")&&(D=B.encalg),"string"==typeof D&&"-CBC"==D.substr(-4)){var re=L,he=_;null!=Vo(B,"key")&&(re=B.key),null!=Vo(B,"enc")&&(he=B.enc);var rt,Se=f.enc.Hex.parse(re),we=f.enc.Hex.parse(he),tt=f.enc.Hex.parse(B.iv);if("des-EDE3-CBC"==D)rt=f.TripleDES.decrypt({ciphertext:we},Se,{iv:tt});else{if("aes128-CBC"!=D&&"aes256-CBC"!=D)throw new Error("unsupported algorithm: "+D);rt=f.AES.decrypt({ciphertext:we},Se,{iv:tt})}return f.enc.Hex.stringify(rt)}throw new Error("Cipher.decrypt: unsupported key or algorithm")},Ee.crypto.OID=new function(){this.oidhex2name={"2a864886f70d010101":"rsaEncryption","2a8648ce3d0201":"ecPublicKey","2a8648ce380401":"dsa","2a8648ce3d030107":"secp256r1","2b8104001f":"secp192k1","2b81040021":"secp224r1","2b8104000a":"secp256k1","2b81040022":"secp384r1","2b81040023":"secp521r1","2a8648ce380403":"SHA1withDSA","608648016503040301":"SHA224withDSA","608648016503040302":"SHA256withDSA"}},(typeof Ee>"u"||!Ee)&&(Ee={}),(typeof Ee.crypto>"u"||!Ee.crypto)&&(Ee.crypto={}),Ee.crypto.ECDSA=function(_){var he=Error,Se=u,we=po,tt=Ee.crypto.ECDSA,rt=Ee.crypto.ECParameterDB,Ot=tt.getName,Ke=Ei.getVbyListEx,Ye=Ei.isASN1HEX,vt=new ts;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(pt){return new Se(pt.bitLength(),vt).mod(pt.subtract(Se.ONE)).add(Se.ONE)},this.setNamedCurve=function(pt){this.ecparams=rt.getByName(pt),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=pt},this.setPrivateKeyHex=function(pt){this.isPrivate=!0,this.prvKeyHex=pt},this.setPublicKeyHex=function(pt){this.isPublic=!0,this.pubKeyHex=pt},this.getPublicKeyXYHex=function(){var pt=this.pubKeyHex;if("04"!==pt.substr(0,2))throw"this method supports uncompressed format(04) only";var $t=this.ecparams.keycharlen;if(pt.length!==2+2*$t)throw"malformed public key hex length";var hn={};return hn.x=pt.substr(2,$t),hn.y=pt.substr(2+$t),hn},this.getShortNISTPCurveName=function(){var pt=this.curveName;return"secp256r1"===pt||"NIST P-256"===pt||"P-256"===pt||"prime256v1"===pt?"P-256":"secp384r1"===pt||"NIST P-384"===pt||"P-384"===pt?"P-384":"secp521r1"===pt||"NIST P-521"===pt||"P-521"===pt?"P-521":null},this.generateKeyPairHex=function(){var $t=this.getBigRandom(this.ecparams.n),hn=this.ecparams.keycharlen,mn=("0000000000"+$t.toString(16)).slice(-hn);return this.setPrivateKeyHex(mn),{ecprvhex:mn,ecpubhex:this.generatePublicKeyHex()}},this.generatePublicKeyHex=function(){var pt=new Se(this.prvKeyHex,16),$t=this.ecparams.G.multiply(pt),hn=$t.getX().toBigInteger(),mn=$t.getY().toBigInteger(),yn=this.ecparams.keycharlen,Bt="04"+("0000000000"+hn.toString(16)).slice(-yn)+("0000000000"+mn.toString(16)).slice(-yn);return this.setPublicKeyHex(Bt),Bt},this.signWithMessageHash=function(pt){return this.signHex(pt,this.prvKeyHex)},this.signHex=function(pt,$t){var hn=new Se($t,16),mn=this.ecparams.n,yn=new Se(pt.substring(0,this.ecparams.keycharlen),16);do{var ci=this.getBigRandom(mn),Rt=this.ecparams.G.multiply(ci).getX().toBigInteger().mod(mn)}while(Rt.compareTo(Se.ZERO)<=0);var fn=ci.modInverse(mn).multiply(yn.add(hn.multiply(Rt))).mod(mn);return tt.biRSSigToASN1Sig(Rt,fn)},this.sign=function(pt,$t){var hn=$t,mn=this.ecparams.n,yn=Se.fromByteArrayUnsigned(pt);do{var ci=this.getBigRandom(mn),Rt=this.ecparams.G.multiply(ci).getX().toBigInteger().mod(mn)}while(Rt.compareTo(u.ZERO)<=0);var fn=ci.modInverse(mn).multiply(yn.add(hn.multiply(Rt))).mod(mn);return this.serializeSig(Rt,fn)},this.verifyWithMessageHash=function(pt,$t){return this.verifyHex(pt,$t,this.pubKeyHex)},this.verifyHex=function(pt,$t,hn){try{var mn,yn,ci=tt.parseSigHex($t);mn=ci.r,yn=ci.s;var yi=we.decodeFromHex(this.ecparams.curve,hn),Bt=new Se(pt.substring(0,this.ecparams.keycharlen),16);return this.verifyRaw(Bt,mn,yn,yi)}catch{return!1}},this.verify=function(pt,$t,hn){var mn,yn,yi;if(Bitcoin.Util.isArray($t)){var ci=this.parseSig($t);mn=ci.r,yn=ci.s}else{if("object"!=typeof $t||!$t.r||!$t.s)throw"Invalid value for signature";mn=$t.r,yn=$t.s}if(hn instanceof po)yi=hn;else{if(!Bitcoin.Util.isArray(hn))throw"Invalid format for pubkey value, must be byte array or ECPointFp";yi=we.decodeFrom(this.ecparams.curve,hn)}var Bt=Se.fromByteArrayUnsigned(pt);return this.verifyRaw(Bt,mn,yn,yi)},this.verifyRaw=function(pt,$t,hn,mn){var yn=this.ecparams.n,ci=this.ecparams.G;if($t.compareTo(Se.ONE)<0||$t.compareTo(yn)>=0||hn.compareTo(Se.ONE)<0||hn.compareTo(yn)>=0)return!1;var yi=hn.modInverse(yn),Bt=pt.multiply(yi).mod(yn),Rt=$t.multiply(yi).mod(yn);return ci.multiply(Bt).add(mn.multiply(Rt)).getX().toBigInteger().mod(yn).equals($t)},this.serializeSig=function(pt,$t){var hn=pt.toByteArraySigned(),mn=$t.toByteArraySigned(),yn=[];return yn.push(2),yn.push(hn.length),(yn=yn.concat(hn)).push(2),yn.push(mn.length),(yn=yn.concat(mn)).unshift(yn.length),yn.unshift(48),yn},this.parseSig=function(pt){var $t;if(48!=pt[0])throw new Error("Signature not a valid DERSequence");if(2!=pt[$t=2])throw new Error("First element in signature must be a DERInteger");var hn=pt.slice($t+2,$t+2+pt[$t+1]);if(2!=pt[$t+=2+pt[$t+1]])throw new Error("Second element in signature must be a DERInteger");var mn=pt.slice($t+2,$t+2+pt[$t+1]);return $t+=2+pt[$t+1],{r:Se.fromByteArrayUnsigned(hn),s:Se.fromByteArrayUnsigned(mn)}},this.parseSigCompact=function(pt){if(65!==pt.length)throw"Signature has the wrong length";var $t=pt[0]-27;if($t<0||$t>7)throw"Invalid signature type";var hn=this.ecparams.n;return{r:Se.fromByteArrayUnsigned(pt.slice(1,33)).mod(hn),s:Se.fromByteArrayUnsigned(pt.slice(33,65)).mod(hn),i:$t}},this.readPKCS5PrvKeyHex=function(pt){if(!1===Ye(pt))throw new Error("not ASN.1 hex string");var $t,hn,mn;try{$t=Ke(pt,0,["[0]",0],"06"),hn=Ke(pt,0,[1],"04");try{mn=Ke(pt,0,["[1]",0],"03")}catch{}}catch{throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=Ot($t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(mn),this.setPrivateKeyHex(hn),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(pt){if(!1===Ye(pt))throw new he("not ASN.1 hex string");var hn,mn,yn;try{Ke(pt,0,[1,0],"06"),hn=Ke(pt,0,[1,1],"06"),mn=Ke(pt,0,[2,0,1],"04");try{yn=Ke(pt,0,[2,0,"[1]",0],"03")}catch{}}catch{throw new he("malformed PKCS#8 plain ECC private key")}if(this.curveName=Ot(hn),void 0===this.curveName)throw new he("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(yn),this.setPrivateKeyHex(mn),this.isPublic=!1},this.readPKCS8PubKeyHex=function(pt){if(!1===Ye(pt))throw new he("not ASN.1 hex string");var hn,mn;try{Ke(pt,0,[0,0],"06"),hn=Ke(pt,0,[0,1],"06"),mn=Ke(pt,0,[1],"03")}catch{throw new he("malformed PKCS#8 ECC public key")}if(this.curveName=Ot(hn),null===this.curveName)throw new he("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(mn)},this.readCertPubKeyHex=function(pt,$t){if(!1===Ye(pt))throw new he("not ASN.1 hex string");var hn,mn;try{hn=Ke(pt,0,[0,5,0,1],"06"),mn=Ke(pt,0,[0,5,1],"03")}catch{throw new he("malformed X.509 certificate ECC public key")}if(this.curveName=Ot(hn),null===this.curveName)throw new he("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(mn)},void 0!==_&&void 0!==_.curve&&(this.curveName=_.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==_&&(void 0!==_.prv&&this.setPrivateKeyHex(_.prv),void 0!==_.pub&&this.setPublicKeyHex(_.pub))},Ee.crypto.ECDSA.parseSigHex=function(_){var L=Ee.crypto.ECDSA.parseSigHexInHexRS(_);return{r:new u(L.r,16),s:new u(L.s,16)}},Ee.crypto.ECDSA.parseSigHexInHexRS=function(_){var D=Ei.getChildIdx,B=Ei.getV;if(Ei.checkStrictDER(_,0),"30"!=_.substr(0,2))throw new Error("signature is not a ASN.1 sequence");var re=D(_,0);if(2!=re.length)throw new Error("signature shall have two elements");var he=re[0],Se=re[1];if("02"!=_.substr(he,2))throw new Error("1st item not ASN.1 integer");if("02"!=_.substr(Se,2))throw new Error("2nd item not ASN.1 integer");return{r:B(_,he),s:B(_,Se)}},Ee.crypto.ECDSA.asn1SigToConcatSig=function(_){var L=Ee.crypto.ECDSA.parseSigHexInHexRS(_),D=L.r,B=L.s;if(D.length>=130&&D.length<=134){if(D.length%2!=0)throw Error("unknown ECDSA sig r length error");if(B.length%2!=0)throw Error("unknown ECDSA sig s length error");"00"==D.substr(0,2)&&(D=D.substr(2)),"00"==B.substr(0,2)&&(B=B.substr(2));var re=Math.max(D.length,B.length);return(D=("000000"+D).slice(-re))+("000000"+B).slice(-re)}if("00"==D.substr(0,2)&&D.length%32==2&&(D=D.substr(2)),"00"==B.substr(0,2)&&B.length%32==2&&(B=B.substr(2)),D.length%32==30&&(D="00"+D),B.length%32==30&&(B="00"+B),D.length%32!=0)throw Error("unknown ECDSA sig r length error");if(B.length%32!=0)throw Error("unknown ECDSA sig s length error");return D+B},Ee.crypto.ECDSA.concatSigToASN1Sig=function(_){if(_.length%4!=0)throw Error("unknown ECDSA concatinated r-s sig length error");var L=_.substr(0,_.length/2),D=_.substr(_.length/2);return Ee.crypto.ECDSA.hexRSSigToASN1Sig(L,D)},Ee.crypto.ECDSA.hexRSSigToASN1Sig=function(_,L){var D=new u(_,16),B=new u(L,16);return Ee.crypto.ECDSA.biRSSigToASN1Sig(D,B)},Ee.crypto.ECDSA.biRSSigToASN1Sig=function(_,L){var D=Ee.asn1,B=new D.DERInteger({bigint:_}),re=new D.DERInteger({bigint:L});return new D.DERSequence({array:[B,re]}).tohex()},Ee.crypto.ECDSA.getName=function(_){return"2b8104001f"===_?"secp192k1":"2a8648ce3d030107"===_?"secp256r1":"2b8104000a"===_?"secp256k1":"2b81040021"===_?"secp224r1":"2b81040022"===_?"secp384r1":"2b81040023"===_?"secp521r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(_)?"secp256r1":-1!=="|secp256k1|".indexOf(_)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(_)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(_)?"secp384r1":-1!=="|secp521r1|NIST P-521|P-521|".indexOf(_)?"secp521r1":null},(typeof Ee>"u"||!Ee)&&(Ee={}),(typeof Ee.crypto>"u"||!Ee.crypto)&&(Ee.crypto={}),Ee.crypto.ECParameterDB=new function(){var _={},L={};function D(B){return new u(B,16)}this.getByName=function(B){var re=B;if(typeof L[re]<"u"&&(re=L[B]),typeof _[re]<"u")return _[re];throw"unregistered EC curve name: "+re},this.regist=function(B,re,he,Se,we,tt,rt,Ot,At,Ke,Ye,vt){_[B]={};var Be=D(he),_t=D(Se),pt=D(we),$t=D(tt),hn=D(rt),mn=new Ri(Be,_t,pt),yn=mn.decodePointHex("04"+Ot+At);_[B].name=B,_[B].keylen=re,_[B].keycharlen=2*Math.ceil(re/8),_[B].curve=mn,_[B].G=yn,_[B].n=$t,_[B].h=hn,_[B].oid=Ye,_[B].info=vt;for(var ci=0;ci<Ke.length;ci++)L[Ke[ci]]=B}},Ee.crypto.ECParameterDB.regist("secp128r1",128,"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC","E87579C11079F43DD824993C2CEE5ED3","FFFFFFFE0000000075A30D1B9038A115","1","161FF7528B899B2D0C28607CA52C5B86","CF5AC8395BAFEB13C02DA292DDED7A83",[],"","secp128r1 : SECG curve over a 128 bit prime field"),Ee.crypto.ECParameterDB.regist("secp160k1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73","0","7","0100000000000000000001B8FA16DFAB9ACA16B6B3","1","3B4C382CE37AA192A4019E763036F4F5DD4D7EBB","938CF935318FDCED6BC28286531733C3F03C4FEE",[],"","secp160k1 : SECG curve over a 160 bit prime field"),Ee.crypto.ECParameterDB.regist("secp160r1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC","1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45","0100000000000000000001F4C8F927AED3CA752257","1","4A96B5688EF573284664698968C38BB913CBFC82","23A628553168947D59DCC912042351377AC5FB32",[],"","secp160r1 : SECG curve over a 160 bit prime field"),Ee.crypto.ECParameterDB.regist("secp192k1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37","0","3","FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D","1","DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D","9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",[]),Ee.crypto.ECParameterDB.regist("secp192r1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC","64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1","FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831","1","188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012","07192B95FFC8DA78631011ED6B24CDD573F977A11E794811",[]),Ee.crypto.ECParameterDB.regist("secp224r1",224,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE","B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4","FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D","1","B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21","BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",[]),Ee.crypto.ECParameterDB.regist("secp256k1",256,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","0","7","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","1","79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",[]),Ee.crypto.ECParameterDB.regist("secp256r1",256,"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC","5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B","FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551","1","6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296","4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",["NIST P-256","P-256","prime256v1"]),Ee.crypto.ECParameterDB.regist("secp384r1",384,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC","B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973","1","AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7","3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f",["NIST P-384","P-384"]),Ee.crypto.ECParameterDB.regist("secp521r1",521,"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC","051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409","1","00C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66","011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650",["NIST P-521","P-521"]),(typeof Ee>"u"||!Ee)&&(Ee={}),(typeof Ee.crypto>"u"||!Ee.crypto)&&(Ee.crypto={}),Ee.crypto.DSA=function(){var D=Ei.getVbyListEx,B=Ei.isASN1HEX,re=u;this.p=null,this.q=null,this.g=null,this.y=null,this.x=null,this.type="DSA",this.isPrivate=!1,this.isPublic=!1,this.setPrivate=function(he,Se,we,tt,rt){this.isPrivate=!0,this.p=he,this.q=Se,this.g=we,this.y=tt,this.x=rt},this.setPrivateHex=function(he,Se,we,tt,rt){var Ot,At,Ke,Ye,vt;Ot=new u(he,16),At=new u(Se,16),Ke=new u(we,16),Ye="string"==typeof tt&&tt.length>1?new u(tt,16):null,vt=new u(rt,16),this.setPrivate(Ot,At,Ke,Ye,vt)},this.setPublic=function(he,Se,we,tt){this.isPublic=!0,this.p=he,this.q=Se,this.g=we,this.y=tt,this.x=null},this.setPublicHex=function(he,Se,we,tt){var rt,Ot,At,Ke;rt=new u(he,16),Ot=new u(Se,16),At=new u(we,16),Ke=new u(tt,16),this.setPublic(rt,Ot,At,Ke)},this.signWithMessageHash=function(he){var Se=this.p,we=this.q,tt=this.g,Ot=this.x,At=Ee.crypto.Util.getRandomBigIntegerMinToMax(u.ONE.add(u.ONE),we.subtract(u.ONE)),Ye=new u(he.substr(0,we.bitLength()/4),16),vt=tt.modPow(At,Se).mod(we),Be=At.modInverse(we).multiply(Ye.add(Ot.multiply(vt))).mod(we);return Ee.asn1.ASN1Util.jsonToASN1HEX({seq:[{int:{bigint:vt}},{int:{bigint:Be}}]})},this.verifyWithMessageHash=function(he,Se){var we=this.p,tt=this.q,rt=this.g,Ot=this.y,At=this.parseASN1Signature(Se),Ke=At[0],Ye=At[1],Be=new u(he.substr(0,tt.bitLength()/4),16);if(u.ZERO.compareTo(Ke)>0||Ke.compareTo(tt)>0||u.ZERO.compareTo(Ye)>=0||Ye.compareTo(tt)>0)throw"invalid DSA signature";var _t=Ye.modInverse(tt),pt=Be.multiply(_t).mod(tt),$t=Ke.multiply(_t).mod(tt);return 0==rt.modPow(pt,we).multiply(Ot.modPow($t,we)).mod(we).mod(tt).compareTo(Ke)},this.parseASN1Signature=function(he){try{return[new re(D(he,0,[0],"02"),16),new re(D(he,0,[1],"02"),16)]}catch{throw new Error("malformed ASN.1 DSA signature")}},this.readPKCS5PrvKeyHex=function(he){var Se,we,tt,rt,Ot;if(!1===B(he))throw new Error("not ASN.1 hex string");try{Se=D(he,0,[1],"02"),we=D(he,0,[2],"02"),tt=D(he,0,[3],"02"),rt=D(he,0,[4],"02"),Ot=D(he,0,[5],"02")}catch{throw new Error("malformed PKCS#1/5 plain DSA private key")}this.setPrivateHex(Se,we,tt,rt,Ot)},this.readPKCS8PrvKeyHex=function(he){var Se,we,tt,rt;if(!1===B(he))throw new Error("not ASN.1 hex string");try{Se=D(he,0,[1,1,0],"02"),we=D(he,0,[1,1,1],"02"),tt=D(he,0,[1,1,2],"02"),rt=D(he,0,[2,0],"02")}catch{throw new Error("malformed PKCS#8 plain DSA private key")}this.setPrivateHex(Se,we,tt,null,rt)},this.readPKCS8PubKeyHex=function(he){var Se,we,tt,rt;if(!1===B(he))throw new Error("not ASN.1 hex string");try{Se=D(he,0,[0,1,0],"02"),we=D(he,0,[0,1,1],"02"),tt=D(he,0,[0,1,2],"02"),rt=D(he,0,[1,0],"02")}catch{throw new Error("malformed PKCS#8 DSA public key")}this.setPublicHex(Se,we,tt,rt)},this.readCertPubKeyHex=function(he,Se){var we,tt,rt,Ot;if(!1===B(he))throw new Error("not ASN.1 hex string");try{we=D(he,0,[0,5,0,1,0],"02"),tt=D(he,0,[0,5,0,1,1],"02"),rt=D(he,0,[0,5,0,1,2],"02"),Ot=D(he,0,[0,5,1,0],"02")}catch{throw new Error("malformed X.509 certificate DSA public key")}this.setPublicHex(we,tt,rt,Ot)}};var Uo=function(){var _=function(Be,_t,pt){return B(f.AES,Be,_t,pt)},B=function(Be,_t,pt,$t){var hn=f.enc.Hex.parse(_t),mn=f.enc.Hex.parse(pt),yn=f.enc.Hex.parse($t),ci={};ci.key=mn,ci.iv=yn,ci.ciphertext=hn;var yi=Be.decrypt(ci,mn,{iv:yn});return f.enc.Hex.stringify(yi)},re=function(Be,_t,pt){return we(f.AES,Be,_t,pt)},we=function(Be,_t,pt,$t){var hn=f.enc.Hex.parse(_t),mn=f.enc.Hex.parse(pt),yn=f.enc.Hex.parse($t),ci=Be.encrypt(hn,mn,{iv:yn}),yi=f.enc.Hex.parse(ci.toString());return f.enc.Base64.stringify(yi)},tt={"AES-256-CBC":{proc:_,eproc:re,keylen:32,ivlen:16},"AES-192-CBC":{proc:_,eproc:re,keylen:24,ivlen:16},"AES-128-CBC":{proc:_,eproc:re,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:function(Be,_t,pt){return B(f.TripleDES,Be,_t,pt)},eproc:function(Be,_t,pt){return we(f.TripleDES,Be,_t,pt)},keylen:24,ivlen:8},"DES-CBC":{proc:function(Be,_t,pt){return B(f.DES,Be,_t,pt)},eproc:function(Be,_t,pt){return we(f.DES,Be,_t,pt)},keylen:8,ivlen:8}},At=function(Be){var _t={},pt=Be.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));pt&&(_t.cipher=pt[1],_t.ivsalt=pt[2]);var $t=Be.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));$t&&(_t.type=$t[1]);var hn=-1,mn=0;-1!=Be.indexOf("\r\n\r\n")&&(hn=Be.indexOf("\r\n\r\n"),mn=2),-1!=Be.indexOf("\n\n")&&(hn=Be.indexOf("\n\n"),mn=1);var yn=Be.indexOf("-----END");if(-1!=hn&&-1!=yn){var ci=Be.substring(hn+2*mn,yn-mn);ci=ci.replace(/\s+/g,""),_t.data=ci}return _t},Ke=function(Be,_t,pt){for(var $t=pt.substring(0,16),hn=f.enc.Hex.parse($t),mn=f.enc.Utf8.parse(_t),yn=tt[Be].keylen+tt[Be].ivlen,ci="",yi=null;;){var Bt=f.algo.MD5.create();if(null!=yi&&Bt.update(yi),Bt.update(mn),Bt.update(hn),yi=Bt.finalize(),(ci+=f.enc.Hex.stringify(yi)).length>=2*yn)break}var Rt={};return Rt.keyhex=ci.substr(0,2*tt[Be].keylen),Rt.ivhex=ci.substr(2*tt[Be].keylen,2*tt[Be].ivlen),Rt},Ye=function(Be,_t,pt,$t){var hn=f.enc.Base64.parse(Be),mn=f.enc.Hex.stringify(hn);return(0,tt[_t].proc)(mn,pt,$t)};return{version:"1.0.0",parsePKCS5PEM:function(Be){return At(Be)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(Be,_t,pt){return Ke(Be,_t,pt)},decryptKeyB64:function(Be,_t,pt,$t){return Ye(Be,_t,pt,$t)},getDecryptedKeyHex:function(Be,_t){var pt=At(Be),hn=pt.cipher,mn=pt.ivsalt,yn=pt.data,ci=Ke(hn,_t,mn);return Ye(yn,hn,ci.keyhex,mn)},getEncryptedPKCS5PEMFromPrvKeyHex:function(Be,_t,pt,$t,hn){var fn="";if((typeof $t>"u"||null==$t)&&($t="AES-256-CBC"),typeof tt[$t]>"u")throw new Error("KEYUTIL unsupported algorithm: "+$t);if(typeof hn>"u"||null==hn){var yn=function(Be){var _t=f.lib.WordArray.random(Be);return f.enc.Hex.stringify(_t)}(tt[$t].ivlen);hn=yn.toUpperCase()}var Bt=function(Be,_t,pt,$t){return(0,tt[_t].eproc)(Be,pt,$t)}(_t,$t,Ke($t,pt,hn).keyhex,hn);return fn="-----BEGIN "+Be+" PRIVATE KEY-----\r\n",fn+="Proc-Type: 4,ENCRYPTED\r\n",fn+="DEK-Info: "+$t+","+hn+"\r\n",fn+="\r\n",(fn+=Bt.replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+Be+" PRIVATE KEY-----\r\n"},getEncryptedPKCS8PEM:function(Be,_t,pt){return Br(this.getEncryptedPKCS8Hex(Be,_t,pt),"ENCRYPTED PRIVATE KEY")},getEncryptedPKCS8Hex:function(Be,_t,pt){var $t;($t=null==pt||null==pt?{}:JSON.parse(JSON.stringify(pt))).plain=Be,this.initPBES2Param($t),this.encryptPBES2Param($t,_t);var hn=this.generatePBES2ASN1Param($t);return Ee.asn1.ASN1Util.newObject(hn).tohex()},initPBES2Param:function(Be){var _t;null==Vo(Be,"encalg")&&(Be.encalg="aes256-CBC"),null==Vo(Be,"iter")&&(Be.iter=2048),null==Vo(Be,"prf")&&(Be.prf="hmacWithSHA256"),null==Vo(Be,"salt")&&(Be.salt=f.enc.Hex.stringify(f.lib.WordArray.random(8))),null==Vo(Be,"enciv")&&("des-EDE3-CBC"==Be.encalg&&(_t=8),"aes128-CBC"==Be.encalg&&(_t=16),"aes256-CBC"==Be.encalg&&(_t=16),Be.enciv=f.enc.Hex.stringify(f.lib.WordArray.random(_t)))},encryptPBES2Param:function(Be,_t){var pt=Uo.getDKFromPBES2Param(Be,_t);try{var $t=Ee.crypto.Cipher.encrypt(Be.plain,pt,Be.encalg,{iv:Be.enciv})}catch{throw new Error("encrypt error: "+Be.plain+" "+pt+" "+Be.encalg+" "+Be.enciv)}Be.enc=$t},generatePBES2ASN1Param:function(Be){var _t={seq:[{seq:[{oid:"pkcs5PBES2"},{seq:[{seq:[{oid:"pkcs5PBKDF2"},{seq:[{octstr:{hex:Be.salt}},{int:{hex:Xs(Be.iter)}}]}]},{seq:[{oid:Be.encalg},{octstr:{hex:Be.enciv}}]}]}]},{octstr:{hex:Be.enc}}]};return"hmacWithSHA1"!=Be.prf&&_t.seq[0].seq[1].seq[0].seq[1].seq.push({seq:[{oid:Be.prf},{null:""}]}),_t},parseHexOfEncryptedPKCS8:function(Be){var pt=Ei.getChildIdx,$t=Ei.getV,hn={},mn=pt(Be,0);if(2!=mn.length)throw new Error("malformed format: SEQUENCE(0).items != 2: "+mn.length);hn.ciphertext=$t(Be,mn[1]);var yn=pt(Be,mn[0]);if(2!=yn.length)throw new Error("malformed format: SEQUENCE(0.0).items != 2: "+yn.length);if("2a864886f70d01050d"!=$t(Be,yn[0]))throw new Error("this only supports pkcs5PBES2");var ci=pt(Be,yn[1]);if(2!=yn.length)throw new Error("malformed format: SEQUENCE(0.0.1).items != 2: "+ci.length);var yi=pt(Be,ci[1]);if(2!=yi.length)throw new Error("malformed format: SEQUENCE(0.0.1.1).items != 2: "+yi.length);if("2a864886f70d0307"!=$t(Be,yi[0]))throw"this only supports TripleDES";hn.encryptionSchemeAlg="TripleDES",hn.encryptionSchemeIV=$t(Be,yi[1]);var Bt=pt(Be,ci[0]);if(2!=Bt.length)throw new Error("malformed format: SEQUENCE(0.0.1.0).items != 2: "+Bt.length);if("2a864886f70d01050c"!=$t(Be,Bt[0]))throw new Error("this only supports pkcs5PBKDF2");var Rt=pt(Be,Bt[1]);if(Rt.length<2)throw new Error("malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+Rt.length);hn.pbkdf2Salt=$t(Be,Rt[0]);var fn=$t(Be,Rt[1]);try{hn.pbkdf2Iter=parseInt(fn,16)}catch{throw new Error("malformed format pbkdf2Iter: "+fn)}return hn},getPBKDF2KeyHexFromParam:function(Be,_t){var pt=f.enc.Hex.parse(Be.pbkdf2Salt),hn=f.PBKDF2(_t,pt,{keySize:6,iterations:Be.pbkdf2Iter});return f.enc.Hex.stringify(hn)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(Be,_t){var pt=xr(Be,"ENCRYPTED PRIVATE KEY"),$t=this.parseHexOfEncryptedPKCS8(pt),hn=Uo.getPBKDF2KeyHexFromParam($t,_t),mn={};mn.ciphertext=f.enc.Hex.parse($t.ciphertext);var yn=f.enc.Hex.parse(hn),ci=f.enc.Hex.parse($t.encryptionSchemeIV),yi=f.TripleDES.decrypt(mn,yn,{iv:ci});return f.enc.Hex.stringify(yi)},parsePBES2:function(Be){var _t=Ei.parse(Be);if("pkcs5PBES2"!=Vo(_t,"seq.0.seq.0.oid")||"pkcs5PBKDF2"!=Vo(_t,"seq.0.seq.1.seq.0.seq.0.oid"))throw new Error("not pkcs5PBES2 and pkcs5PBKDF2 used");var pt=Vo(_t,"seq.0.seq.1.seq.0.seq.1.seq");if(null==pt)throw new Error("PBKDF2 parameter not found");var $t=Vo(pt,"0.octstr.hex"),hn=Vo(pt,"1.int.hex"),mn=Vo(pt,"2.seq.0.oid","hmacWithSHA1"),yn=-1;try{yn=parseInt(hn,16)}catch{throw new Error("iter not proper value")}var ci=Vo(_t,"seq.0.seq.1.seq.1.seq.0.oid"),yi=Vo(_t,"seq.0.seq.1.seq.1.seq.1.octstr.hex"),Bt=Vo(_t,"seq.1.octstr.hex");if(null==ci||null==yi||null==Bt)throw new Error("encalg, enciv or enc is undefined");return{salt:$t,iter:yn,prf:mn,encalg:ci,enciv:yi,enc:Bt}},getDKFromPBES2Param:function(Be,_t){var hn={hmacWithSHA1:f.algo.SHA1,hmacWithSHA224:f.algo.SHA224,hmacWithSHA256:f.algo.SHA256,hmacWithSHA384:f.algo.SHA384,hmacWithSHA512:f.algo.SHA512}[Be.prf];if(null==hn)throw new Error("unsupported prf");var mn={"des-EDE3-CBC":6,"aes128-CBC":4,"aes256-CBC":8}[Be.encalg];if(null==mn)throw new Error("unsupported encalg");var yn=f.enc.Hex.parse(Be.salt),ci=Be.iter;try{var yi=f.PBKDF2(_t,yn,{keySize:mn,iterations:ci,hasher:hn});return f.enc.Hex.stringify(yi)}catch(Bt){throw new Error("PBKDF2 error: "+Bt+" "+JSON.stringify(Be)+" "+_t)}},getPlainHexFromEncryptedPKCS8PEM:function(Be,_t){if(-1==Be.indexOf("BEGIN ENCRYPTED PRIVATE KEY"))throw new Error("not Encrypted PKCS#8 PEM string");var $t,pt=xr(Be);try{$t=Uo.parsePBES2(pt)}catch(mn){throw new Error("malformed PBES2 format: "+mn.message)}var hn=Uo.getDKFromPBES2Param($t,_t);return Ee.crypto.Cipher.decrypt($t.enc,hn,$t.encalg,{iv:$t.enciv})},getKeyFromEncryptedPKCS8PEM:function(Be,_t){var pt=this.getPlainHexFromEncryptedPKCS8PEM(Be,_t);return this.getKeyFromPlainPrivatePKCS8Hex(pt)},parsePlainPrivatePKCS8Hex:function(Be){var _t=Ei,pt=_t.getChildIdx,$t=_t.getV,hn={algparam:null};if("30"!=Be.substr(0,2))throw new Error("malformed plain PKCS8 private key(code:001)");var mn=pt(Be,0);if(mn.length<3)throw new Error("malformed plain PKCS8 private key(code:002)");if("30"!=Be.substr(mn[1],2))throw new Error("malformed PKCS8 private key(code:003)");var yn=pt(Be,mn[1]);if(2!=yn.length)throw new Error("malformed PKCS8 private key(code:004)");if("06"!=Be.substr(yn[0],2))throw new Error("malformed PKCS8 private key(code:005)");if(hn.algoid=$t(Be,yn[0]),"06"==Be.substr(yn[1],2)&&(hn.algparam=$t(Be,yn[1])),"04"!=Be.substr(mn[2],2))throw new Error("malformed PKCS8 private key(code:006)");return hn.keyidx=_t.getVidx(Be,mn[2]),hn},getKeyFromPlainPrivatePKCS8PEM:function(Be){var _t=xr(Be,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(_t)},getKeyFromPlainPrivatePKCS8Hex:function(Be){var pt,_t=this.parsePlainPrivatePKCS8Hex(Be);if("2a864886f70d010101"==_t.algoid)pt=new Er;else if("2a8648ce380401"==_t.algoid)pt=new Ee.crypto.DSA;else{if("2a8648ce3d0201"!=_t.algoid)throw new Error("unsupported private key algorithm");pt=new Ee.crypto.ECDSA}return pt.readPKCS8PrvKeyHex(Be),pt},_getKeyFromPublicPKCS8Hex:function(Be){var _t,pt=Ei.getVbyList(Be,0,[0,0],"06");if("2a864886f70d010101"===pt)_t=new Er;else if("2a8648ce380401"===pt)_t=new Ee.crypto.DSA;else{if("2a8648ce3d0201"!==pt)throw new Error("unsupported PKCS#8 public key hex");_t=new Ee.crypto.ECDSA}return _t.readPKCS8PubKeyHex(Be),_t},parsePublicRawRSAKeyHex:function(Be){var pt=Ei.getChildIdx,$t=Ei.getV,hn={};if("30"!=Be.substr(0,2))throw new Error("malformed RSA key(code:001)");var mn=pt(Be,0);if(2!=mn.length)throw new Error("malformed RSA key(code:002)");if("02"!=Be.substr(mn[0],2))throw new Error("malformed RSA key(code:003)");if(hn.n=$t(Be,mn[0]),"02"!=Be.substr(mn[1],2))throw new Error("malformed RSA key(code:004)");return hn.e=$t(Be,mn[1]),hn},parsePublicPKCS8Hex:function(Be){var _t=Ei,pt=_t.getChildIdx,$t=_t.getV,hn={algparam:null},mn=pt(Be,0);if(2!=mn.length)throw new Error("outer DERSequence shall have 2 elements: "+mn.length);var yn=mn[0];if("30"!=Be.substr(yn,2))throw new Error("malformed PKCS8 public key(code:001)");var ci=pt(Be,yn);if(2!=ci.length)throw new Error("malformed PKCS8 public key(code:002)");if("06"!=Be.substr(ci[0],2))throw new Error("malformed PKCS8 public key(code:003)");if(hn.algoid=$t(Be,ci[0]),"06"==Be.substr(ci[1],2)?hn.algparam=$t(Be,ci[1]):"30"==Be.substr(ci[1],2)&&(hn.algparam={},hn.algparam.p=_t.getVbyList(Be,ci[1],[0],"02"),hn.algparam.q=_t.getVbyList(Be,ci[1],[1],"02"),hn.algparam.g=_t.getVbyList(Be,ci[1],[2],"02")),"03"!=Be.substr(mn[1],2))throw new Error("malformed PKCS8 public key(code:004)");return hn.key=$t(Be,mn[1]).substr(2),hn}}}();function Tl(_,L){for(var D="",B=L/4-_.length,re=0;re<B;re++)D+="0";return D+_}function rd(_,L,D){for(var B="",re=0;B.length<L;)B+=Ps(D(Or(_+String.fromCharCode.apply(String,[(4278190080&re)>>24,(16711680&re)>>16,(65280&re)>>8,255&re])))),re+=1;return B}function Va(_){for(var L in Ee.crypto.Util.DIGESTINFOHEAD){var D=Ee.crypto.Util.DIGESTINFOHEAD[L],B=D.length;if(_.substring(0,B)==D)return[L,_.substring(B)]}return[]}function Kr(_){var hn,L=Ei,D=L.getChildIdx,B=L.getV,he=L.parse,Se=L.getTLV,we=L.getVbyList,tt=L.getVbyListEx,rt=L.getTLVbyList,Ot=L.getTLVbyListEx,At=L.getIdxbyList,Ke=L.getIdxbyListEx,Ye=L.getVidx,vt=L.getInt,Be=L.oidname,_t=L.hextooidstr,$t=xr,mn=Error;try{hn=Ee.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch{}this.HEX2STAG={"0c":"utf8",13:"prn",16:"ia5","1a":"vis","1e":"bmp"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){if(null===this.hex||0!==this.version)return this.version;var Bt=rt(this.hex,0,[0,0]);if("a0"==Bt.substr(0,2)){var Rt=rt(Bt,0,[0]),fn=vt(Rt,0);if(fn<0||2<fn)throw new Error("malformed version field");return this.version=fn+1,this.version}return this.version=1,this.foffset=-1,1},this.getSerialNumberHex=function(){return tt(this.hex,0,[0,0],"02")},this.getSignatureAlgorithmField=function(){var Bt=Ot(this.hex,0,[0,1]);return this.getAlgorithmIdentifierName(Bt)},this.getAlgorithmIdentifierName=function(Bt){for(var Rt in hn)if(Bt===hn[Rt])return Rt;return Be(tt(Bt,0,[0],"06"))},this.getIssuer=function(Bt,Rt){return this.getX500Name(this.getIssuerHex(),Bt,Rt)},this.getIssuerHex=function(){return rt(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return this.getIssuer().str},this.getSubject=function(Bt,Rt){return this.getX500Name(this.getSubjectHex(),Bt,Rt)},this.getSubjectHex=function(){return rt(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return this.getSubject().str},this.getNotBefore=function(){var Bt=we(this.hex,0,[0,4+this.foffset,0]);return Bt=Bt.replace(/(..)/g,"%$1"),decodeURIComponent(Bt)},this.getNotAfter=function(){var Bt=we(this.hex,0,[0,4+this.foffset,1]);return Bt=Bt.replace(/(..)/g,"%$1"),decodeURIComponent(Bt)},this.getPublicKeyHex=function(){return this.getSPKI()},this.getSPKI=function(){return rt(this.hex,0,[0,6+this.foffset],"30")},this.getSPKIValue=function(){var Bt=this.getSPKI();return null==Bt?null:we(Bt,0,[1],"03",!0)},this.getPublicKeyIdx=function(){return At(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var Bt=this.getPublicKeyIdx();return At(this.hex,Bt,[1,0],"30")},this.getPublicKey=function(){return Uo.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){var Bt=rt(this.hex,0,[1],"30");return this.getAlgorithmIdentifierName(Bt)},this.getSignatureValueHex=function(){return we(this.hex,0,[2],"03",!0)},this.verifySignature=function(Bt){var Rt=this.getSignatureAlgorithmField(),fn=this.getSignatureValueHex(),An=rt(this.hex,0,[0],"30"),Nn=new Ee.crypto.Signature({alg:Rt});return Nn.init(Bt),Nn.updateHex(An),Nn.verify(fn)},this.parseExt=function(Bt){var Rt,fn,An;if(void 0===Bt){if(3!==this.version)return-1;Rt=At(An=this.hex,0,[0,7,0],"30"),fn=D(An,Rt)}else{An=xr(Bt);var Nn=At(An,0,[0,3,0,0],"06");if("2a864886f70d01090e"!=B(An,Nn))return void(this.aExtInfo=new Array);Rt=At(An,0,[0,3,0,1,0],"30"),fn=D(An,Rt),this.hex=An}this.aExtInfo=new Array;for(var Rn=0;Rn<fn.length;Rn++){var Hn={critical:!1},ai=0;3===D(An,fn[Rn]).length&&(Hn.critical=!0,ai=1),Hn.oid=L.hextooidstr(we(An,fn[Rn],[0],"06"));var Ni=At(An,fn[Rn],[1+ai]);Hn.vidx=Ye(An,Ni),this.aExtInfo.push(Hn)}},this.getExtInfo=function(Bt){var Rt=this.aExtInfo,fn=Bt;if(Bt.match(/^[0-9.]+$/)||(fn=Ee.asn1.x509.OID.name2oid(Bt)),""!==fn)for(var An=0;An<Rt.length;An++)if(Rt[An].oid===fn)return Rt[An]},this.getCriticalExtV=function(Bt,Rt,fn){if(null!=Rt)return[Rt,fn];var An=this.getExtInfo(Bt);return null==An?[null,null]:[Se(this.hex,An.vidx),An.critical]},this.getExtBasicConstraints=function(Bt,Rt){if(void 0===Bt&&void 0===Rt){var fn=this.getExtInfo("basicConstraints");if(void 0===fn)return;Bt=Se(this.hex,fn.vidx),Rt=fn.critical}var An={extname:"basicConstraints"};if(Rt&&(An.critical=!0),"3000"===Bt)return An;if("30030101ff"===Bt)return An.cA=!0,An;if("30060101ff02"===Bt.substr(0,12)){var Nn=B(Bt,10),Rn=parseInt(Nn,16);return An.cA=!0,An.pathLen=Rn,An}throw new Error("hExtV parse error: "+Bt)},this.getExtNameConstraints=function(Bt,Rt){var fn=this.getCriticalExtV("nameConstraints",Bt,Rt);if(Rt=fn[1],null!=(Bt=fn[0])){var An={extname:"nameConstraints"};Rt&&(An.critical=!0);for(var Nn=D(Bt,0),Rn=0;Rn<Nn.length;Rn++){for(var Hn=[],Xn=D(Bt,Nn[Rn]),ai=0;ai<Xn.length;ai++){var Ni=Se(Bt,Xn[ai]),Zr=this.getGeneralSubtree(Ni);Hn.push(Zr)}var en=Bt.substr(Nn[Rn],2);"a0"==en?An.permit=Hn:"a1"==en&&(An.exclude=Hn)}return An}},this.getGeneralSubtree=function(Bt){var Rt=D(Bt,0),fn=Rt.length;if(fn<1||2<fn)throw new Error("wrong num elements");for(var An=this.getGeneralName(Se(Bt,Rt[0])),Nn=1;Nn<fn;Nn++){var Rn=Bt.substr(Rt[Nn],2),Hn=B(Bt,Rt[Nn]),Xn=parseInt(Hn,16);"80"==Rn&&(An.min=Xn),"81"==Rn&&(An.max=Xn)}return An},this.getExtKeyUsage=function(Bt,Rt){var fn=this.getCriticalExtV("keyUsage",Bt,Rt);if(Rt=fn[1],null!=(Bt=fn[0])){var An={extname:"keyUsage"};return Rt&&(An.critical=!0),An.names=this.getExtKeyUsageString(Bt).split(","),An}},this.getExtKeyUsageBin=function(Bt){if(void 0===Bt){var Rt=this.getExtInfo("keyUsage");if(void 0===Rt)return"";Bt=Se(this.hex,Rt.vidx)}if(8!=Bt.length&&10!=Bt.length)throw new Error("malformed key usage value: "+Bt);var fn="000000000000000"+parseInt(Bt.substr(6),16).toString(2);return 8==Bt.length&&(fn=fn.slice(-8)),10==Bt.length&&(fn=fn.slice(-16)),""==(fn=fn.replace(/0+$/,""))&&(fn="0"),fn},this.getExtKeyUsageString=function(Bt){for(var Rt=this.getExtKeyUsageBin(Bt),fn=new Array,An=0;An<Rt.length;An++)"1"==Rt.substr(An,1)&&fn.push(Kr.KEYUSAGE_NAME[An]);return fn.join(",")},this.getExtSubjectKeyIdentifier=function(Bt,Rt){if(void 0===Bt&&void 0===Rt){var fn=this.getExtInfo("subjectKeyIdentifier");if(void 0===fn)return;Bt=Se(this.hex,fn.vidx),Rt=fn.critical}var An={extname:"subjectKeyIdentifier"};Rt&&(An.critical=!0);var Nn=B(Bt,0);return An.kid={hex:Nn},An},this.getExtAuthorityKeyIdentifier=function(Bt,Rt){if(void 0===Bt&&void 0===Rt){var fn=this.getExtInfo("authorityKeyIdentifier");if(void 0===fn)return;Bt=Se(this.hex,fn.vidx),Rt=fn.critical}var An={extname:"authorityKeyIdentifier"};Rt&&(An.critical=!0);for(var Nn=D(Bt,0),Rn=0;Rn<Nn.length;Rn++){var Hn=Bt.substr(Nn[Rn],2);if("80"===Hn&&(An.kid={hex:B(Bt,Nn[Rn])}),"a1"===Hn){var Xn=Se(Bt,Nn[Rn]),ai=this.getGeneralNames(Xn);An.issuer=ai[0].dn}"82"===Hn&&(An.sn={hex:B(Bt,Nn[Rn])})}return An},this.getExtExtKeyUsage=function(Bt,Rt){if(void 0===Bt&&void 0===Rt){var fn=this.getExtInfo("extKeyUsage");if(void 0===fn)return;Bt=Se(this.hex,fn.vidx),Rt=fn.critical}var An={extname:"extKeyUsage",array:[]};Rt&&(An.critical=!0);for(var Nn=D(Bt,0),Rn=0;Rn<Nn.length;Rn++)An.array.push(Be(B(Bt,Nn[Rn])));return An},this.getExtExtKeyUsageName=function(){var Bt=this.getExtInfo("extKeyUsage");if(void 0===Bt)return Bt;var Rt=new Array,fn=Se(this.hex,Bt.vidx);if(""===fn)return Rt;for(var An=D(fn,0),Nn=0;Nn<An.length;Nn++)Rt.push(Be(B(fn,An[Nn])));return Rt},this.getExtSubjectAltName=function(Bt,Rt){if(void 0===Bt&&void 0===Rt){var fn=this.getExtInfo("subjectAltName");if(void 0===fn)return;Bt=Se(this.hex,fn.vidx),Rt=fn.critical}var An={extname:"subjectAltName",array:[]};return Rt&&(An.critical=!0),An.array=this.getGeneralNames(Bt),An},this.getExtIssuerAltName=function(Bt,Rt){if(void 0===Bt&&void 0===Rt){var fn=this.getExtInfo("issuerAltName");if(void 0===fn)return;Bt=Se(this.hex,fn.vidx),Rt=fn.critical}var An={extname:"issuerAltName",array:[]};return Rt&&(An.critical=!0),An.array=this.getGeneralNames(Bt),An},this.getGeneralNames=function(Bt){for(var Rt=D(Bt,0),fn=[],An=0;An<Rt.length;An++){var Nn=this.getGeneralName(Se(Bt,Rt[An]));void 0!==Nn&&fn.push(Nn)}return fn},this.getGeneralName=function(Bt){var Rt=Bt.substr(0,2),fn=B(Bt,0),An=Ps(fn);return"81"==Rt?{rfc822:An}:"82"==Rt?{dns:An}:"86"==Rt?{uri:An}:"87"==Rt?{ip:ur(fn)}:"a4"==Rt?{dn:this.getX500Name(fn)}:"a0"==Rt?{other:this.getOtherName(Bt)}:void 0},this.getExtSubjectAltName2=function(){var Bt,Rt,fn,An=this.getExtInfo("subjectAltName");if(void 0===An)return An;for(var Nn=new Array,Rn=Se(this.hex,An.vidx),Hn=D(Rn,0),Xn=0;Xn<Hn.length;Xn++)fn=Rn.substr(Hn[Xn],2),Bt=B(Rn,Hn[Xn]),"81"===fn&&(Rt=xo(Bt),Nn.push(["MAIL",Rt])),"82"===fn&&(Rt=xo(Bt),Nn.push(["DNS",Rt])),"84"===fn&&(Rt=Kr.hex2dn(Bt,0),Nn.push(["DN",Rt])),"86"===fn&&(Rt=xo(Bt),Nn.push(["URI",Rt])),"87"===fn&&(Rt=ur(Bt),Nn.push(["IP",Rt]));return Nn},this.getExtCRLDistributionPoints=function(Bt,Rt){if(void 0===Bt&&void 0===Rt){var fn=this.getExtInfo("cRLDistributionPoints");if(void 0===fn)return;Bt=Se(this.hex,fn.vidx),Rt=fn.critical}var An={extname:"cRLDistributionPoints",array:[]};Rt&&(An.critical=!0);for(var Nn=D(Bt,0),Rn=0;Rn<Nn.length;Rn++){var Hn=Se(Bt,Nn[Rn]);An.array.push(this.getDistributionPoint(Hn))}return An},this.getDistributionPoint=function(Bt){for(var Rt={},fn=D(Bt,0),An=0;An<fn.length;An++){var Nn=Bt.substr(fn[An],2),Rn=Se(Bt,fn[An]);"a0"==Nn&&(Rt.dpname=this.getDistributionPointName(Rn))}return Rt},this.getDistributionPointName=function(Bt){for(var Rt={},fn=D(Bt,0),An=0;An<fn.length;An++){var Nn=Bt.substr(fn[An],2),Rn=Se(Bt,fn[An]);"a0"==Nn&&(Rt.full=this.getGeneralNames(Rn))}return Rt},this.getExtCRLDistributionPointsURI=function(){var Bt=this.getExtCRLDistributionPoints();if(null==Bt)return Bt;for(var Rt=Bt.array,fn=[],An=0;An<Rt.length;An++)try{null!=Rt[An].dpname.full[0].uri&&fn.push(Rt[An].dpname.full[0].uri)}catch{}return fn},this.getExtAIAInfo=function(){var Bt=this.getExtInfo("authorityInfoAccess");if(void 0===Bt)return Bt;for(var Rt={ocsp:[],caissuer:[]},fn=D(this.hex,Bt.vidx),An=0;An<fn.length;An++){var Nn=we(this.hex,fn[An],[0],"06"),Rn=we(this.hex,fn[An],[1],"86");"2b06010505073001"===Nn&&Rt.ocsp.push(xo(Rn)),"2b06010505073002"===Nn&&Rt.caissuer.push(xo(Rn))}return Rt},this.getExtAuthorityInfoAccess=function(Bt,Rt){if(void 0===Bt&&void 0===Rt){var fn=this.getExtInfo("authorityInfoAccess");if(void 0===fn)return;Bt=Se(this.hex,fn.vidx),Rt=fn.critical}var An={extname:"authorityInfoAccess",array:[]};Rt&&(An.critical=!0);for(var Nn=D(Bt,0),Rn=0;Rn<Nn.length;Rn++){var Hn=tt(Bt,Nn[Rn],[0],"06"),ai=xo(we(Bt,Nn[Rn],[1],"86"));if("2b06010505073001"==Hn)An.array.push({ocsp:ai});else{if("2b06010505073002"!=Hn)throw new Error("unknown method: "+Hn);An.array.push({caissuer:ai})}}return An},this.getExtCertificatePolicies=function(Bt,Rt){if(void 0===Bt&&void 0===Rt){var fn=this.getExtInfo("certificatePolicies");if(void 0===fn)return;Bt=Se(this.hex,fn.vidx),Rt=fn.critical}var An={extname:"certificatePolicies",array:[]};Rt&&(An.critical=!0);for(var Nn=D(Bt,0),Rn=0;Rn<Nn.length;Rn++){var Hn=Se(Bt,Nn[Rn]),Xn=this.getPolicyInformation(Hn);An.array.push(Xn)}return An},this.getPolicyInformation=function(Bt){var Rt={},fn=we(Bt,0,[0],"06");Rt.policyoid=Be(fn);var An=Ke(Bt,0,[1],"30");if(-1!=An){Rt.array=[];for(var Nn=D(Bt,An),Rn=0;Rn<Nn.length;Rn++){var Hn=Se(Bt,Nn[Rn]),Xn=this.getPolicyQualifierInfo(Hn);Rt.array.push(Xn)}}return Rt},this.getOtherName=function(Bt){var Rt={},fn=D(Bt,0),An=we(Bt,fn[0],[],"06"),Nn=we(Bt,fn[1],[]);return Rt.oid=Be(An),Rt.value=he(Nn),Rt},this.getPolicyQualifierInfo=function(Bt){var Rt={},fn=we(Bt,0,[0],"06");if("2b06010505070201"===fn){var An=tt(Bt,0,[1],"16");Rt.cps=Ps(An)}else if("2b06010505070202"===fn){var Nn=rt(Bt,0,[1],"30");Rt.unotice=this.getUserNotice(Nn)}return Rt},this.getUserNotice=function(Bt){var Rt=null;try{return Rt=L.parse(Bt),this._asn1ToUnotice(Rt)}catch{return}},this._asn1ToUnotice=function(Bt){try{for(var Rt={},fn=Vo(Bt,"seq"),An=0;An<fn.length;An++){var Nn=this._asn1ToNoticeRef(fn[An]);null!=Nn&&(Rt.noticeref=Nn);var Rn=this.asn1ToDisplayText(fn[An]);null!=Rn&&(Rt.exptext=Rn)}return Object.keys(Rt).length>0?Rt:void 0}catch{return}},this._asn1ToNoticeRef=function(Bt){try{for(var Rt={},fn=Vo(Bt,"seq"),An=0;An<fn.length;An++){var Nn=this._asn1ToNoticeNum(fn[An]);null!=Nn&&(Rt.noticenum=Nn);var Rn=this.asn1ToDisplayText(fn[An]);null!=Rn&&(Rt.org=Rn)}return Object.keys(Rt).length>0?Rt:void 0}catch{return}},this._asn1ToNoticeNum=function(Bt){try{for(var Rt=Vo(Bt,"seq"),fn=[],An=0;An<Rt.length;An++)fn.push(parseInt(Vo(Rt[An],"int.hex"),16));return fn}catch{return}},this.getDisplayText=function(Bt){var fn={};return fn.type={"0c":"utf8",16:"ia5","1a":"vis","1e":"bmp"}[Bt.substr(0,2)],fn.str=Ps(B(Bt,0)),fn},this.asn1ToDisplayText=function(Bt){return null!=Bt.utf8str?{type:"utf8",str:Bt.utf8str.str}:null!=Bt.ia5str?{type:"ia5",str:Bt.ia5str.str}:null!=Bt.visstr?{type:"vis",str:Bt.visstr.str}:null!=Bt.bmpstr?{type:"bmp",str:Bt.bmpstr.str}:null!=Bt.prnstr?{type:"prn",str:Bt.prnstr.str}:void 0},this.getExtPolicyMappings=function(Bt,Rt){var fn=this.getCriticalExtV("policyMappings",Bt,Rt);if(Rt=fn[1],null!=(Bt=fn[0])){var An={extname:"policyMappings"};Rt&&(An.critical=!0);try{for(var Rn=he(Bt).seq,Hn=[],Xn=0;Xn<Rn.length;Xn++){var ai=Rn[Xn].seq;Hn.push([ai[0].oid,ai[1].oid])}An.array=Hn}catch{throw new mn("malformed policyMappings")}return An}},this.getExtPolicyConstraints=function(Bt,Rt){var fn=this.getCriticalExtV("policyConstraints",Bt,Rt);if(Rt=fn[1],null!=(Bt=fn[0])){var An={extname:"policyConstraints"};Rt&&(An.critical=!0);var Nn=he(Bt);try{for(var Rn=Nn.seq,Hn=0;Hn<Rn.length;Hn++){var Xn=Rn[Hn].tag;0==Xn.explicit&&("80"==Xn.tag&&(An.reqexp=parseInt(Xn.hex,16)),"81"==Xn.tag&&(An.inhibit=parseInt(Xn.hex,16)))}}catch{return new mn("malformed policyConstraints value")}return An}},this.getExtInhibitAnyPolicy=function(Bt,Rt){var fn=this.getCriticalExtV("inhibitAnyPolicy",Bt,Rt);if(Rt=fn[1],null!=(Bt=fn[0])){var An={extname:"inhibitAnyPolicy"};Rt&&(An.critical=!0);var Nn=vt(Bt,0);return-1==Nn?new mn("wrong value"):(An.skip=Nn,An)}},this.getExtCRLNumber=function(Bt,Rt){var fn={extname:"cRLNumber"};if(Rt&&(fn.critical=!0),"02"==Bt.substr(0,2))return fn.num={hex:B(Bt,0)},fn;throw new mn("hExtV parse error: "+Bt)},this.getExtCRLReason=function(Bt,Rt){var fn={extname:"cRLReason"};if(Rt&&(fn.critical=!0),"0a"==Bt.substr(0,2))return fn.code=parseInt(B(Bt,0),16),fn;throw new Error("hExtV parse error: "+Bt)},this.getExtOcspNonce=function(Bt,Rt){var fn={extname:"ocspNonce"};Rt&&(fn.critical=!0);var An=B(Bt,0);return fn.hex=An,fn},this.getExtOcspNoCheck=function(Bt,Rt){var fn={extname:"ocspNoCheck"};return Rt&&(fn.critical=!0),fn},this.getExtAdobeTimeStamp=function(Bt,Rt){if(void 0===Bt&&void 0===Rt){var fn=this.getExtInfo("adobeTimeStamp");if(void 0===fn)return;Bt=Se(this.hex,fn.vidx),Rt=fn.critical}var An={extname:"adobeTimeStamp"};Rt&&(An.critical=!0);var Nn=D(Bt,0);if(Nn.length>1){var Rn=Se(Bt,Nn[1]),Hn=this.getGeneralName(Rn);null!=Hn.uri&&(An.uri=Hn.uri)}if(Nn.length>2){var Xn=Se(Bt,Nn[2]);"0101ff"==Xn&&(An.reqauth=!0),"010100"==Xn&&(An.reqauth=!1)}return An},this.getExtSubjectDirectoryAttributes=function(Bt,Rt){if(void 0===Bt&&void 0===Rt){var fn=this.getExtInfo("subjectDirectoryAttributes");if(void 0===fn)return;Bt=Se(this.hex,fn.vidx),Rt=fn.critical}var An={extname:"subjectDirectoryAttributes"};Rt&&(An.critical=!0);try{for(var Nn=he(Bt),Rn=[],Hn=0;Hn<Nn.seq.length;Hn++){var Xn=Nn.seq[Hn],ai=Vo(Xn,"seq.0.oid"),Ni=Vo(Xn,"seq.1.set");if(null==ai||null==Ni)throw"error";Rn.push({attr:ai,array:Ni})}return An.array=Rn,An}catch{throw new Error("malformed subjectDirectoryAttributes extension value")}};var yn=function(Bt){var Rt={};try{var An=Ee.asn1.x509.OID.name2oid(Bt.seq[0].oid);Rt.type=Ee.asn1.x509.OID.oid2atype(An);var Nn=Bt.seq[1];if(null!=Nn.utf8str)Rt.ds="utf8",Rt.value=Nn.utf8str.str;else if(null!=Nn.numstr)Rt.ds="num",Rt.value=Nn.numstr.str;else if(null!=Nn.telstr)Rt.ds="tel",Rt.value=Nn.telstr.str;else if(null!=Nn.prnstr)Rt.ds="prn",Rt.value=Nn.prnstr.str;else if(null!=Nn.ia5str)Rt.ds="ia5",Rt.value=Nn.ia5str.str;else if(null!=Nn.visstr)Rt.ds="vis",Rt.value=Nn.visstr.str;else{if(null==Nn.bmpstr)throw"error";Rt.ds="bmp",Rt.value=Nn.bmpstr.str}return Rt}catch{throw new Erorr("improper ASN.1 parsed AttrTypeAndValue")}},ci=function(Bt){try{return Bt.set.map(function(Rt){return yn(Rt)})}catch(Rt){throw new Error("improper ASN.1 parsed RDN: "+Rt)}};this.getX500NameRule=function(Bt){for(var Hn=null,Xn=[],ai=0;ai<Bt.length;ai++)for(var Ni=Bt[ai],Zr=0;Zr<Ni.length;Zr++)Xn.push(Ni[Zr]);for(ai=0;ai<Xn.length;ai++){var en=Xn[ai],Ir=en.ds,mr=en.type;if("prn"!=Ir&&"utf8"!=Ir&&"ia5"!=Ir)return"mixed";if("ia5"==Ir){if("CN"!=mr)return"mixed";if(Ee.lang.String.isMail(en.value))continue;return"mixed"}if("C"==mr){if("prn"==Ir)continue;return"mixed"}if(null==Hn)Hn=Ir;else if(Hn!==Ir)return"mixed"}return Hn??"prn"},this.getAttrTypeAndValue=function(Bt){var Rt=he(Bt);return yn(Rt)},this.getRDN=function(Bt){var Rt=he(Bt);return ci(Rt)},this.getX500NameArray=function(Bt){return function(Bt){try{return Bt.seq.map(function(Rt){return ci(Rt)})}catch(Rt){throw new Error("improper ASN.1 parsed X500Name: "+Rt)}}(he(Bt))},this.getX500Name=function(Bt,Rt,fn){var An=this.getX500NameArray(Bt),Rn={str:this.dnarraytostr(An)};return Rn.array=An,1==fn&&(Rn.hex=Bt),1==Rt&&(Rn.canon=this.c14nRDNArray(An)),Rn},this.readCertPEM=function(Bt){this.readCertHex($t(Bt))},this.readCertHex=function(Bt){this.hex=Bt,this.getVersion();try{At(this.hex,0,[0,7],"a3"),this.parseExt()}catch{}},this.getParam=function(Bt){var Rt={};return null==Bt&&(Bt={}),Rt.version=this.getVersion(),Rt.serial={hex:this.getSerialNumberHex()},Rt.sigalg=this.getSignatureAlgorithmField(),Rt.issuer=this.getIssuer(Bt.dncanon,Bt.dnhex),Rt.notbefore=this.getNotBefore(),Rt.notafter=this.getNotAfter(),Rt.subject=this.getSubject(Bt.dncanon,Bt.dnhex),Rt.sbjpubkey=Br(this.getPublicKeyHex(),"PUBLIC KEY"),null!=this.aExtInfo&&this.aExtInfo.length>0&&(Rt.ext=this.getExtParamArray()),Rt.sighex=this.getSignatureValueHex(),1==Bt.tbshex&&(Rt.tbshex=rt(this.hex,0,[0])),1==Bt.nodnarray&&(delete Rt.issuer.array,delete Rt.subject.array),Rt},this.getExtParamArray=function(Bt){null==Bt&&-1!=Ke(this.hex,0,[0,"[3]"])&&(Bt=Ot(this.hex,0,[0,"[3]",0],"30"));for(var fn=[],An=D(Bt,0),Nn=0;Nn<An.length;Nn++){var Rn=Se(Bt,An[Nn]),Hn=this.getExtParam(Rn);null!=Hn&&fn.push(Hn)}return fn},this.getExtParam=function(Bt){var An=D(Bt,0).length;if(2!=An&&3!=An)throw new Error("wrong number elements in Extension: "+An+" "+Bt);var Nn=_t(we(Bt,0,[0],"06")),Rn=!1;3==An&&"0101ff"==rt(Bt,0,[1])&&(Rn=!0);var Hn=rt(Bt,0,[An-1,0]),Xn=void 0;if("2.5.29.14"==Nn?Xn=this.getExtSubjectKeyIdentifier(Hn,Rn):"2.5.29.15"==Nn?Xn=this.getExtKeyUsage(Hn,Rn):"2.5.29.17"==Nn?Xn=this.getExtSubjectAltName(Hn,Rn):"2.5.29.18"==Nn?Xn=this.getExtIssuerAltName(Hn,Rn):"2.5.29.19"==Nn?Xn=this.getExtBasicConstraints(Hn,Rn):"2.5.29.30"==Nn?Xn=this.getExtNameConstraints(Hn,Rn):"2.5.29.31"==Nn?Xn=this.getExtCRLDistributionPoints(Hn,Rn):"2.5.29.32"==Nn?Xn=this.getExtCertificatePolicies(Hn,Rn):"2.5.29.33"==Nn?Xn=this.getExtPolicyMappings(Hn,Rn):"2.5.29.35"==Nn?Xn=this.getExtAuthorityKeyIdentifier(Hn,Rn):"2.5.29.36"==Nn?Xn=this.getExtPolicyConstraints(Hn,Rn):"2.5.29.37"==Nn?Xn=this.getExtExtKeyUsage(Hn,Rn):"2.5.29.54"==Nn?Xn=this.getExtInhibitAnyPolicy(Hn,Rn):"1.3.6.1.5.5.7.1.1"==Nn?Xn=this.getExtAuthorityInfoAccess(Hn,Rn):"2.5.29.20"==Nn?Xn=this.getExtCRLNumber(Hn,Rn):"2.5.29.21"==Nn?Xn=this.getExtCRLReason(Hn,Rn):"2.5.29.9"==Nn?Xn=this.getExtSubjectDirectoryAttributes(Hn,Rn):"1.3.6.1.5.5.7.48.1.2"==Nn?Xn=this.getExtOcspNonce(Hn,Rn):"1.3.6.1.5.5.7.48.1.5"==Nn?Xn=this.getExtOcspNoCheck(Hn,Rn):"1.2.840.113583.1.1.9.1"==Nn?Xn=this.getExtAdobeTimeStamp(Hn,Rn):null!=Kr.EXT_PARSER[Nn]&&(Xn=Kr.EXT_PARSER[Nn](Nn,Rn,Hn)),null!=Xn)return Xn;var ai={extname:Nn,extn:Hn};try{ai.extn=he(Hn)}catch{}return Rn&&(ai.critical=!0),ai},this.findExt=function(Bt,Rt){for(var fn=0;fn<Bt.length;fn++)if(Bt[fn].extname==Rt)return Bt[fn];return null},this.updateExtCDPFullURI=function(Bt,Rt){var fn=this.findExt(Bt,"cRLDistributionPoints");if(null!=fn&&null!=fn.array)for(var An=fn.array,Nn=0;Nn<An.length;Nn++)if(null!=An[Nn].dpname&&null!=An[Nn].dpname.full)for(var Rn=An[Nn].dpname.full,Hn=0;Hn<Rn.length;Hn++){var Xn=Rn[Nn];null!=Xn.uri&&(Xn.uri=Rt)}},this.updateExtAIAOCSP=function(Bt,Rt){var fn=this.findExt(Bt,"authorityInfoAccess");if(null!=fn&&null!=fn.array)for(var An=fn.array,Nn=0;Nn<An.length;Nn++)null!=An[Nn].ocsp&&(An[Nn].ocsp=Rt)},this.updateExtAIACAIssuer=function(Bt,Rt){var fn=this.findExt(Bt,"authorityInfoAccess");if(null!=fn&&null!=fn.array)for(var An=fn.array,Nn=0;Nn<An.length;Nn++)null!=An[Nn].caissuer&&(An[Nn].caissuer=Rt)},this.dnarraytostr=function(Bt){return"/"+Bt.map(function(An){return function Rt(An){return An.map(function(Nn){return function fn(An){return An.type+"="+An.value}(Nn).replace(/\+/,"\\+")}).join("+")}(An).replace(/\//,"\\/")}).join("/")},this.setCanonicalizedDN=function(Bt){var Rt;if(null!=Bt.str&&null==Bt.array){var An=new Ee.asn1.x509.X500Name({str:Bt.str}).tohex();Rt=this.getX500NameArray(An)}else Rt=Bt.array;null==Bt.canon&&(Bt.canon=this.c14nRDNArray(Rt))},this.c14nRDNArray=function(Bt){for(var Rt=[],fn=0;fn<Bt.length;fn++){for(var An=Bt[fn],Nn=[],Rn=0;Rn<An.length;Rn++){var Hn=An[Rn],Xn=Hn.value;Xn=(Xn=(Xn=(Xn=Xn.replace(/^\s*/,"")).replace(/\s*$/,"")).replace(/\s+/g," ")).toLowerCase(),Nn.push(Hn.type.toLowerCase()+"="+Xn)}Rt.push(Nn.join("+"))}return"/"+Rt.join("/")},this.getInfo=function(){var Rn,Hn,Xn,Bt=function(ma){for(var oo="",Eo="    ",no=ma.array,va=0;va<no.length;va++){var Yo=no[va];null!=Yo.dn&&(oo+=Eo+"dn: "+Yo.dn.str+"\n"),null!=Yo.ip&&(oo+=Eo+"ip: "+Yo.ip+"\n"),null!=Yo.rfc822&&(oo+=Eo+"rfc822: "+Yo.rfc822+"\n"),null!=Yo.dns&&(oo+=Eo+"dns: "+Yo.dns+"\n"),null!=Yo.uri&&(oo+=Eo+"uri: "+Yo.uri+"\n"),null!=Yo.other&&(oo+=Eo+"other: "+Yo.other.oid+"="+JSON.stringify(Yo.other.value).replace(/\"/g,"")+"\n")}return oo.replace(/\n$/,"")},Rt=function(ma){for(var oo="",Eo=ma.array,Es=0;Es<Eo.length;Es++){var no=Eo[Es];if(oo+="    policy oid: "+no.policyoid+"\n",void 0!==no.array)for(var va=0;va<no.array.length;va++){var Yo=no.array[va];void 0!==Yo.cps&&(oo+="    cps: "+Yo.cps+"\n")}}return oo},fn=function(ma){for(var oo="",Eo=ma.array,Es=0;Es<Eo.length;Es++){var no=Eo[Es];try{void 0!==no.dpname.full[0].uri&&(oo+="    "+no.dpname.full[0].uri+"\n")}catch{}try{void 0!==no.dname.full[0].dn.hex&&(oo+="    "+Kr.hex2dn(no.dpname.full[0].dn.hex)+"\n")}catch{}}return oo},An=function(ma){for(var oo="",Eo=ma.array,Es=0;Es<Eo.length;Es++){var no=Eo[Es];void 0!==no.caissuer&&(oo+="    caissuer: "+no.caissuer+"\n"),void 0!==no.ocsp&&(oo+="    ocsp: "+no.ocsp+"\n")}return oo};if(Rn="Basic Fields\n",Rn+="  serial number: "+this.getSerialNumberHex()+"\n",Rn+="  signature algorithm: "+this.getSignatureAlgorithmField()+"\n",Rn+="  issuer: "+this.getIssuerString()+"\n",Rn+="  notBefore: "+this.getNotBefore()+"\n",Rn+="  notAfter: "+this.getNotAfter()+"\n",Rn+="  subject: "+this.getSubjectString()+"\n",Rn+="  subject public key info: \n",Rn+="    key algorithm: "+(Hn=this.getPublicKey()).type+"\n","RSA"===Hn.type&&(Rn+="    n="+Ur(Hn.n.toString(16)).substr(0,16)+"...\n",Rn+="    e="+Ur(Hn.e.toString(16))+"\n"),null!=(Xn=this.aExtInfo)){Rn+="X509v3 Extensions:\n";for(var ai=0;ai<Xn.length;ai++){var Ni=Xn[ai],Zr=Ee.asn1.x509.OID.oid2name(Ni.oid);""===Zr&&(Zr=Ni.oid);var en="";if(!0===Ni.critical&&(en="CRITICAL"),Rn+="  "+Zr+" "+en+":\n","basicConstraints"===Zr){var Ir=this.getExtBasicConstraints();void 0===Ir.cA?Rn+="    {}\n":(Rn+="    cA=true",void 0!==Ir.pathLen&&(Rn+=", pathLen="+Ir.pathLen),Rn+="\n")}else if("policyMappings"==Zr)Rn+="    "+this.getExtPolicyMappings().array.map(function(ma){return ma[0]+":"+ma[1]}).join(", ")+"\n";else if("policyConstraints"==Zr)Rn+="    ",null!=(Yr=this.getExtPolicyConstraints()).reqexp&&(Rn+=" reqexp="+Yr.reqexp),null!=Yr.inhibit&&(Rn+=" inhibit="+Yr.inhibit),Rn+="\n";else if("inhibitAnyPolicy"==Zr){var Yr;Rn+="    skip="+(Yr=this.getExtInhibitAnyPolicy()).skip+"\n"}else if("keyUsage"==Zr)Rn+="    "+this.getExtKeyUsageString()+"\n";else if("subjectKeyIdentifier"==Zr)Rn+="    "+this.getExtSubjectKeyIdentifier().kid.hex+"\n";else if("authorityKeyIdentifier"==Zr){var jo=this.getExtAuthorityKeyIdentifier();void 0!==jo.kid&&(Rn+="    kid="+jo.kid.hex+"\n")}else"extKeyUsage"==Zr?Rn+="    "+this.getExtExtKeyUsage().array.join(", ")+"\n":"subjectAltName"==Zr?Rn+=Bt(this.getExtSubjectAltName())+"\n":"cRLDistributionPoints"==Zr?Rn+=fn(this.getExtCRLDistributionPoints()):"authorityInfoAccess"==Zr?Rn+=An(this.getExtAuthorityInfoAccess()):"certificatePolicies"==Zr&&(Rn+=Rt(this.getExtCertificatePolicies()))}}return(Rn+="signature algorithm: "+this.getSignatureAlgorithmName()+"\n")+"signature: "+this.getSignatureValueHex().substr(0,16)+"...\n"},"string"==typeof _&&(-1!=_.indexOf("-----BEGIN")?this.readCertPEM(_):Ee.lang.String.isHex(_)&&this.readCertHex(_))}Uo.getKey=function(_,L,D){var Bt,re=(B=Ei).getChildIdx,Se=B.getVbyList,we=Ee.crypto,tt=we.ECDSA,rt=we.DSA,Ot=Er,At=xr,Ke=Uo;if(typeof Ot<"u"&&_ instanceof Ot||typeof tt<"u"&&_ instanceof tt||typeof rt<"u"&&_ instanceof rt)return _;if(void 0!==_.curve&&void 0!==_.xy&&void 0===_.d)return new tt({pub:_.xy,curve:_.curve});if(void 0!==_.curve&&void 0!==_.d)return new tt({prv:_.d,curve:_.curve});if(void 0===_.kty&&void 0!==_.n&&void 0!==_.e&&void 0===_.d)return(Ye=new Ot).setPublic(_.n,_.e),Ye;if(void 0===_.kty&&void 0!==_.n&&void 0!==_.e&&void 0!==_.d&&void 0!==_.p&&void 0!==_.q&&void 0!==_.dp&&void 0!==_.dq&&void 0!==_.co&&void 0===_.qi)return(Ye=new Ot).setPrivateEx(_.n,_.e,_.d,_.p,_.q,_.dp,_.dq,_.co),Ye;if(void 0===_.kty&&void 0!==_.n&&void 0!==_.e&&void 0!==_.d&&void 0===_.p)return(Ye=new Ot).setPrivate(_.n,_.e,_.d),Ye;if(void 0!==_.p&&void 0!==_.q&&void 0!==_.g&&void 0!==_.y&&void 0===_.x)return(Ye=new rt).setPublic(_.p,_.q,_.g,_.y),Ye;if(void 0!==_.p&&void 0!==_.q&&void 0!==_.g&&void 0!==_.y&&void 0!==_.x)return(Ye=new rt).setPrivate(_.p,_.q,_.g,_.y,_.x),Ye;if("RSA"===_.kty&&void 0!==_.n&&void 0!==_.e&&void 0===_.d)return(Ye=new Ot).setPublic(nn(_.n),nn(_.e)),Ye;if("RSA"===_.kty&&void 0!==_.n&&void 0!==_.e&&void 0!==_.d&&void 0!==_.p&&void 0!==_.q&&void 0!==_.dp&&void 0!==_.dq&&void 0!==_.qi)return(Ye=new Ot).setPrivateEx(nn(_.n),nn(_.e),nn(_.d),nn(_.p),nn(_.q),nn(_.dp),nn(_.dq),nn(_.qi)),Ye;if("RSA"===_.kty&&void 0!==_.n&&void 0!==_.e&&void 0!==_.d)return(Ye=new Ot).setPrivate(nn(_.n),nn(_.e),nn(_.d)),Ye;if("EC"===_.kty&&void 0!==_.crv&&void 0!==_.x&&void 0!==_.y&&void 0===_.d){var Be=(vt=new tt({curve:_.crv})).ecparams.keycharlen,_t=("0000000000"+nn(_.x)).slice(-Be),pt=("0000000000"+nn(_.y)).slice(-Be);return vt.setPublicKeyHex($t="04"+_t+pt),vt}if("EC"===_.kty&&void 0!==_.crv&&void 0!==_.x&&void 0!==_.y&&void 0!==_.d){Be=(vt=new tt({curve:_.crv})).ecparams.keycharlen;var $t="04"+(_t=("0000000000"+nn(_.x)).slice(-Be))+(pt=("0000000000"+nn(_.y)).slice(-Be)),hn=("0000000000"+nn(_.d)).slice(-Be);return vt.setPublicKeyHex($t),vt.setPrivateKeyHex(hn),vt}if("pkcs5prv"===D){var yn,mn=_,B=Ei;if(9===(yn=re(mn,0)).length)(Ye=new Ot).readPKCS5PrvKeyHex(mn);else if(6===yn.length)(Ye=new rt).readPKCS5PrvKeyHex(mn);else{if(!(yn.length>2&&"04"===mn.substr(yn[1],2)))throw new Error("unsupported PKCS#1/5 hexadecimal key");(Ye=new tt).readPKCS5PrvKeyHex(mn)}return Ye}if("pkcs8prv"===D)return Ke.getKeyFromPlainPrivatePKCS8Hex(_);if("pkcs8pub"===D)return Ke._getKeyFromPublicPKCS8Hex(_);if("x509pub"===D)return Kr.getPublicKeyFromCertHex(_);if(-1!=_.indexOf("-END CERTIFICATE-",0)||-1!=_.indexOf("-END X509 CERTIFICATE-",0)||-1!=_.indexOf("-END TRUSTED CERTIFICATE-",0))return Kr.getPublicKeyFromCertPEM(_);if(-1!=_.indexOf("-END PUBLIC KEY-")){var ci=xr(_,"PUBLIC KEY");return Ke._getKeyFromPublicPKCS8Hex(ci)}if(-1!=_.indexOf("-END RSA PRIVATE KEY-")&&-1==_.indexOf("4,ENCRYPTED")){var yi=At(_,"RSA PRIVATE KEY");return Ke.getKey(yi,null,"pkcs5prv")}if(-1!=_.indexOf("-END DSA PRIVATE KEY-")&&-1==_.indexOf("4,ENCRYPTED")){var Rt=Se(Bt=At(_,"DSA PRIVATE KEY"),0,[1],"02"),fn=Se(Bt,0,[2],"02"),An=Se(Bt,0,[3],"02"),Nn=Se(Bt,0,[4],"02"),Rn=Se(Bt,0,[5],"02");return(Ye=new rt).setPrivate(new u(Rt,16),new u(fn,16),new u(An,16),new u(Nn,16),new u(Rn,16)),Ye}if(-1!=_.indexOf("-END EC PRIVATE KEY-")&&-1==_.indexOf("4,ENCRYPTED"))return yi=At(_,"EC PRIVATE KEY"),Ke.getKey(yi,null,"pkcs5prv");if(-1!=_.indexOf("-END PRIVATE KEY-"))return Ke.getKeyFromPlainPrivatePKCS8PEM(_);if(-1!=_.indexOf("-END RSA PRIVATE KEY-")&&-1!=_.indexOf("4,ENCRYPTED")){var Hn=Ke.getDecryptedKeyHex(_,L),Xn=new Er;return Xn.readPKCS5PrvKeyHex(Hn),Xn}if(-1!=_.indexOf("-END EC PRIVATE KEY-")&&-1!=_.indexOf("4,ENCRYPTED")){var vt,Ye=Se(Bt=Ke.getDecryptedKeyHex(_,L),0,[1],"04"),ai=Se(Bt,0,[2,0],"06"),Ni=Se(Bt,0,[3,0],"03").substr(2);if(void 0===Ee.crypto.OID.oidhex2name[ai])throw new Error("undefined OID(hex) in KJUR.crypto.OID: "+ai);return(vt=new tt({curve:Ee.crypto.OID.oidhex2name[ai]})).setPublicKeyHex(Ni),vt.setPrivateKeyHex(Ye),vt.isPublic=!1,vt}if(-1!=_.indexOf("-END DSA PRIVATE KEY-")&&-1!=_.indexOf("4,ENCRYPTED"))return Rt=Se(Bt=Ke.getDecryptedKeyHex(_,L),0,[1],"02"),fn=Se(Bt,0,[2],"02"),An=Se(Bt,0,[3],"02"),Nn=Se(Bt,0,[4],"02"),Rn=Se(Bt,0,[5],"02"),(Ye=new rt).setPrivate(new u(Rt,16),new u(fn,16),new u(An,16),new u(Nn,16),new u(Rn,16)),Ye;if(-1!=_.indexOf("-END ENCRYPTED PRIVATE KEY-"))return Ke.getKeyFromEncryptedPKCS8PEM(_,L);throw new Error("not supported argument")},Uo.generateKeypair=function(_,L){if("RSA"==_){var D=L;(B=new Er).generate(D,"10001"),B.isPrivate=!0,B.isPublic=!0;var re=new Er,he=B.n.toString(16),Se=B.e.toString(16);return re.setPublic(he,Se),re.isPrivate=!1,re.isPublic=!0,(we={}).prvKeyObj=B,we.pubKeyObj=re,we}if("EC"==_){var B,we,tt=L,Ot=new Ee.crypto.ECDSA({curve:tt}).generateKeyPairHex();return(B=new Ee.crypto.ECDSA({curve:tt})).setPublicKeyHex(Ot.ecpubhex),B.setPrivateKeyHex(Ot.ecprvhex),B.isPrivate=!0,B.isPublic=!1,(re=new Ee.crypto.ECDSA({curve:tt})).setPublicKeyHex(Ot.ecpubhex),re.isPrivate=!1,re.isPublic=!0,(we={}).prvKeyObj=B,we.pubKeyObj=re,we}throw new Error("unknown algorithm: "+_)},Uo.getPEM=function(_,L,D,B,re,he){var we=Ee.asn1,tt=we.DERObjectIdentifier,rt=we.DERInteger,Ot=we.ASN1Util.newObject,Ye=Ee.crypto,vt=Ye.DSA,Be=Ye.ECDSA,_t=Er;function pt(Xn){return Ot({seq:[{int:0},{int:{bigint:Xn.n}},{int:Xn.e},{int:{bigint:Xn.d}},{int:{bigint:Xn.p}},{int:{bigint:Xn.q}},{int:{bigint:Xn.dmp1}},{int:{bigint:Xn.dmq1}},{int:{bigint:Xn.coeff}}]})}function $t(Xn){return Ot({seq:[{int:1},{octstr:{hex:Xn.prvKeyHex}},{tag:["a0",!0,{oid:{name:Xn.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+Xn.pubKeyHex}}]}]})}function hn(Xn){return Ot({seq:[{int:0},{int:{bigint:Xn.p}},{int:{bigint:Xn.q}},{int:{bigint:Xn.g}},{int:{bigint:Xn.y}},{int:{bigint:Xn.x}}]})}if((void 0!==_t&&_ instanceof _t||void 0!==vt&&_ instanceof vt||void 0!==Be&&_ instanceof Be)&&1==_.isPublic&&(void 0===L||"PKCS8PUB"==L))return Br(yn=new(0,we.x509.SubjectPublicKeyInfo)(_).tohex(),"PUBLIC KEY");if("PKCS1PRV"==L&&void 0!==_t&&_ instanceof _t&&(void 0===D||null==D)&&1==_.isPrivate)return Br(yn=pt(_).tohex(),"RSA PRIVATE KEY");if("PKCS1PRV"==L&&void 0!==Be&&_ instanceof Be&&(void 0===D||null==D)&&1==_.isPrivate){var yi=new tt({name:_.curveName}).tohex(),Rt=$t(_).tohex(),fn="";return(fn+=Br(yi,"EC PARAMETERS"))+Br(Rt,"EC PRIVATE KEY")}if("PKCS1PRV"==L&&void 0!==vt&&_ instanceof vt&&(void 0===D||null==D)&&1==_.isPrivate)return Br(yn=hn(_).tohex(),"DSA PRIVATE KEY");if("PKCS5PRV"==L&&void 0!==_t&&_ instanceof _t&&void 0!==D&&null!=D&&1==_.isPrivate){var yn=pt(_).tohex();return void 0===B&&(B="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",yn,D,B,he)}if("PKCS5PRV"==L&&void 0!==Be&&_ instanceof Be&&void 0!==D&&null!=D&&1==_.isPrivate)return yn=$t(_).tohex(),void 0===B&&(B="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",yn,D,B,he);if("PKCS5PRV"==L&&void 0!==vt&&_ instanceof vt&&void 0!==D&&null!=D&&1==_.isPrivate)return yn=hn(_).tohex(),void 0===B&&(B="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",yn,D,B,he);var An=function(Xn,ai){if("string"==typeof ai)return Uo.getEncryptedPKCS8PEM(Xn,ai);if("object"==typeof ai&&null!=Vo(ai,"passcode")){var Ni=JSON.parse(JSON.stringify(ai)),Zr=Ni.passcode;return delete Ni.passcode,Uo.getEncryptedPKCS8PEM(Xn,Zr,Ni)}};if("PKCS8PRV"==L&&null!=_t&&_ instanceof _t&&1==_.isPrivate){var Rn=pt(_).tohex();return yn=Ot({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:Rn}}]}).tohex(),void 0===D||null==D?Br(yn,"PRIVATE KEY"):An(yn,D)}if("PKCS8PRV"==L&&void 0!==Be&&_ instanceof Be&&1==_.isPrivate){var Hn={seq:[{int:1},{octstr:{hex:_.prvKeyHex}}]};return"string"==typeof _.pubKeyHex&&Hn.seq.push({tag:["a1",!0,{bitstr:{hex:"00"+_.pubKeyHex}}]}),Rn=new Ot(Hn).tohex(),yn=Ot({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:_.curveName}}]},{octstr:{hex:Rn}}]}).tohex(),void 0===D||null==D?Br(yn,"PRIVATE KEY"):An(yn,D)}if("PKCS8PRV"==L&&void 0!==vt&&_ instanceof vt&&1==_.isPrivate)return Rn=new rt({bigint:_.x}).tohex(),yn=Ot({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:_.p}},{int:{bigint:_.q}},{int:{bigint:_.g}}]}]},{octstr:{hex:Rn}}]}).tohex(),void 0===D||null==D?Br(yn,"PRIVATE KEY"):An(yn,D);throw new Error("unsupported object nor format")},Uo.getKeyFromCSRPEM=function(_){var L=xr(_,"CERTIFICATE REQUEST");return Uo.getKeyFromCSRHex(L)},Uo.getKeyFromCSRHex=function(_){var L=Uo.parseCSRHex(_);return Uo.getKey(L.p8pubkeyhex,null,"pkcs8pub")},Uo.parseCSRHex=function(_){var D=Ei.getChildIdx,B=Ei.getTLV,re={},he=_;if("30"!=he.substr(0,2))throw new Error("malformed CSR(code:001)");var Se=D(he,0);if(Se.length<1)throw new Error("malformed CSR(code:002)");if("30"!=he.substr(Se[0],2))throw new Error("malformed CSR(code:003)");var we=D(he,Se[0]);if(we.length<3)throw new Error("malformed CSR(code:004)");return re.p8pubkeyhex=B(he,we[2]),re},Uo.getKeyID=function(_){var L=Uo,D=Ei;"string"==typeof _&&-1!=_.indexOf("BEGIN ")&&(_=L.getKey(_));var B=xr(L.getPEM(_)),re=D.getIdxbyList(B,0,[1]),he=D.getV(B,re).substring(2);return Ee.crypto.Util.hashHex(he,"sha1")},Uo.getJWK=function(_,L,D,B,re){var he,we,Se={},tt=Ee.crypto.Util.hashHex;if("string"==typeof _)he=Uo.getKey(_),-1!=_.indexOf("CERTIFICATE")&&(we=xr(_));else{if("object"!=typeof _)throw new Error("unsupported keyinfo type");_ instanceof Kr?(he=_.getPublicKey(),we=_.hex):he=_}if(he instanceof Er&&he.isPrivate)Se.kty="RSA",Se.n=mt(he.n.toString(16)),Se.e=mt(he.e.toString(16)),Se.d=mt(he.d.toString(16)),Se.p=mt(he.p.toString(16)),Se.q=mt(he.q.toString(16)),Se.dp=mt(he.dmp1.toString(16)),Se.dq=mt(he.dmq1.toString(16)),Se.qi=mt(he.coeff.toString(16));else if(he instanceof Er&&he.isPublic)Se.kty="RSA",Se.n=mt(he.n.toString(16)),Se.e=mt(he.e.toString(16));else if(he instanceof Ee.crypto.ECDSA&&he.isPrivate){if("P-256"!==(rt=he.getShortNISTPCurveName())&&"P-384"!==rt&&"P-521"!==rt)throw new Error("unsupported curve name for JWT: "+rt);var Ot=he.getPublicKeyXYHex();Se.kty="EC",Se.crv=rt,Se.x=mt(Ot.x),Se.y=mt(Ot.y),Se.d=mt(he.prvKeyHex)}else if(he instanceof Ee.crypto.ECDSA&&he.isPublic){var rt;if("P-256"!==(rt=he.getShortNISTPCurveName())&&"P-384"!==rt&&"P-521"!==rt)throw new Error("unsupported curve name for JWT: "+rt);Ot=he.getPublicKeyXYHex(),Se.kty="EC",Se.crv=rt,Se.x=mt(Ot.x),Se.y=mt(Ot.y)}if(null==Se.kty)throw new Error("unsupported keyinfo");return!he.isPrivate&&1!=L&&(Se.kid=Ee.jws.JWS.getJWKthumbprint(Se)),null!=we&&1!=D&&(Se.x5c=[T(we)]),null!=we&&1!=B&&(Se.x5t=oa(T(tt(we,"sha1")))),null!=we&&1!=re&&(Se["x5t#S256"]=oa(T(tt(we,"sha256")))),Se},Uo.getJWKFromKey=function(_){return Uo.getJWK(_,!0,!0,!0,!0)},Er.getPosArrayOfChildrenFromHex=function(_){return Ei.getChildIdx(_,0)},Er.getHexValueArrayOfChildrenFromHex=function(_){var Ke,D=Ei.getV,B=D(_,(Ke=Er.getPosArrayOfChildrenFromHex(_))[0]),re=D(_,Ke[1]),he=D(_,Ke[2]),Se=D(_,Ke[3]),we=D(_,Ke[4]),tt=D(_,Ke[5]),rt=D(_,Ke[6]),Ot=D(_,Ke[7]),At=D(_,Ke[8]);return(Ke=new Array).push(B,re,he,Se,we,tt,rt,Ot,At),Ke},Er.prototype.readPrivateKeyFromPEMString=function(_){var L=xr(_),D=Er.getHexValueArrayOfChildrenFromHex(L);this.setPrivateEx(D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8])},Er.prototype.readPKCS5PrvKeyHex=function(_){var L=Er.getHexValueArrayOfChildrenFromHex(_);this.setPrivateEx(L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8])},Er.prototype.readPKCS8PrvKeyHex=function(_){var L,D,B,re,he,Se,we,tt,Ot=Ei.getVbyListEx;if(!1===Ei.isASN1HEX(_))throw new Error("not ASN.1 hex string");try{L=Ot(_,0,[2,0,1],"02"),D=Ot(_,0,[2,0,2],"02"),B=Ot(_,0,[2,0,3],"02"),re=Ot(_,0,[2,0,4],"02"),he=Ot(_,0,[2,0,5],"02"),Se=Ot(_,0,[2,0,6],"02"),we=Ot(_,0,[2,0,7],"02"),tt=Ot(_,0,[2,0,8],"02")}catch{throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(L,D,B,re,he,Se,we,tt)},Er.prototype.readPKCS5PubKeyHex=function(_){var L=Ei,D=L.getV;if(!1===L.isASN1HEX(_))throw new Error("keyHex is not ASN.1 hex string");var B=L.getChildIdx(_,0);if(2!==B.length||"02"!==_.substr(B[0],2)||"02"!==_.substr(B[1],2))throw new Error("wrong hex for PKCS#5 public key");var re=D(_,B[0]),he=D(_,B[1]);this.setPublic(re,he)},Er.prototype.readPKCS8PubKeyHex=function(_){var L=Ei;if(!1===L.isASN1HEX(_))throw new Error("not ASN.1 hex string");if("06092a864886f70d010101"!==L.getTLVbyListEx(_,0,[0,0]))throw new Error("not PKCS8 RSA public key");var D=L.getTLVbyListEx(_,0,[1,0]);this.readPKCS5PubKeyHex(D)},Er.prototype.readCertPubKeyHex=function(_,L){var D,B;(D=new Kr).readCertHex(_),B=D.getPublicKeyHex(),this.readPKCS8PubKeyHex(B)},Er.prototype.sign=function(_,L){var B=function(re){return Ee.crypto.Util.hashString(re,L)}(_);return this.signWithMessageHash(B,L)},Er.prototype.signWithMessageHash=function(_,L){var B=Qo(Ee.crypto.Util.getPaddedDigestInfoHex(_,L,this.n.bitLength()),16);return Tl(this.doPrivate(B).toString(16),this.n.bitLength())},Er.prototype.signPSS=function(_,L,D){var re=function(he){return Ee.crypto.Util.hashHex(he,L)}(Or(_));return void 0===D&&(D=-1),this.signWithMessageHashPSS(re,L,D)},Er.prototype.signWithMessageHashPSS=function(_,L,D){var we,B=Ps(_),re=B.length,he=this.n.bitLength()-1,Se=Math.ceil(he/8),tt=function(_t){return Ee.crypto.Util.hashHex(_t,L)};if(-1===D||void 0===D)D=re;else if(-2===D)D=Se-re-2;else if(D<-2)throw new Error("invalid salt length");if(Se<re+D+2)throw new Error("data too long");var rt="";D>0&&(rt=new Array(D),(new ts).nextBytes(rt),rt=String.fromCharCode.apply(String,rt));var Ot=Ps(tt(Or("\0\0\0\0\0\0\0\0"+B+rt))),At=[];for(we=0;we<Se-D-re-2;we+=1)At[we]=0;var Ke=String.fromCharCode.apply(String,At)+"\x01"+rt,Ye=rd(Ot,Ke.length,tt),vt=[];for(we=0;we<Ke.length;we+=1)vt[we]=Ke.charCodeAt(we)^Ye.charCodeAt(we);for(vt[0]&=~(65280>>8*Se-he&255),we=0;we<re;we++)vt.push(Ot.charCodeAt(we));return vt.push(188),Tl(this.doPrivate(new u(vt)).toString(16),this.n.bitLength())},Er.prototype.verify=function(_,L){if(null==(L=L.toLowerCase()).match(/^[0-9a-f]+$/))return!1;var D=Qo(L,16),B=this.n.bitLength();if(D.bitLength()>B)return!1;var he=this.doPublic(D).toString(16);if(he.length+3!=B/4)return!1;var we=Va(he.replace(/^1f+00/,""));if(0==we.length)return!1;var tt=we[0],rt=we[1],At=function(Ke){return Ee.crypto.Util.hashString(Ke,tt)}(_);return rt==At},Er.prototype.verifyWithMessageHash=function(_,L){if(L.length!=Math.ceil(this.n.bitLength()/4))return!1;var D=Qo(L,16);if(D.bitLength()>this.n.bitLength())return 0;var he=Va(this.doPublic(D).toString(16).replace(/^1f+00/,""));return 0!=he.length&&he[1]==_},Er.prototype.verifyPSS=function(_,L,D,B){var he=function(Se){return Ee.crypto.Util.hashHex(Se,D)}(Or(_));return void 0===B&&(B=-1),this.verifyWithMessageHashPSS(he,L,D,B)},Er.prototype.verifyWithMessageHashPSS=function(_,L,D,B){if(L.length!=Math.ceil(this.n.bitLength()/4))return!1;var Ot,re=new u(L,16),he=function($t){return Ee.crypto.Util.hashHex($t,D)},Se=Ps(_),we=Se.length,tt=this.n.bitLength()-1,rt=Math.ceil(tt/8);if(-1===B||void 0===B)B=we;else if(-2===B)B=rt-we-2;else if(B<-2)throw new Error("invalid salt length");if(rt<we+B+2)throw new Error("data too long");var At=this.doPublic(re).toByteArray();for(Ot=0;Ot<At.length;Ot+=1)At[Ot]&=255;for(;At.length<rt;)At.unshift(0);if(188!==At[rt-1])throw new Error("encoded message does not end in 0xbc");var Ke=(At=String.fromCharCode.apply(String,At)).substr(0,rt-we-1),Ye=At.substr(Ke.length,we),vt=65280>>8*rt-tt&255;if(Ke.charCodeAt(0)&vt)throw new Error("bits beyond keysize not zero");var Be=rd(Ye,Ke.length,he),_t=[];for(Ot=0;Ot<Ke.length;Ot+=1)_t[Ot]=Ke.charCodeAt(Ot)^Be.charCodeAt(Ot);_t[0]&=~vt;var pt=rt-we-B-2;for(Ot=0;Ot<pt;Ot+=1)if(0!==_t[Ot])throw new Error("leftmost octets not zero");if(1!==_t[pt])throw new Error("0x01 marker not found");return Ye===Ps(he(Or("\0\0\0\0\0\0\0\0"+Se+String.fromCharCode.apply(String,_t.slice(-B)))))},Er.SALT_LEN_HLEN=-1,Er.SALT_LEN_MAX=-2,Er.SALT_LEN_RECOVER=-2,Kr.EXT_PARSER={},Kr.registExtParser=function(_,L){Kr.EXT_PARSER[_]=L},Kr.hex2dn=function(_,L){void 0===L&&(L=0);var D=new Kr;return Ei.getTLV(_,L),D.getX500Name(_).str},Kr.hex2rdn=function(_,L){if(void 0===L&&(L=0),"31"!==_.substr(L,2))throw new Error("malformed RDN");for(var D=new Array,B=Ei.getChildIdx(_,L),re=0;re<B.length;re++)D.push(Kr.hex2attrTypeValue(_,B[re]));return D=D.map(function(he){return he.replace("+","\\+")}),D.join("+")},Kr.hex2attrTypeValue=function(_,L){var D=Ei,B=D.getV;if(void 0===L&&(L=0),"30"!==_.substr(L,2))throw new Error("malformed attribute type and value");var re=D.getChildIdx(_,L);2!==re.length||_.substr(re[0],2);var he=B(_,re[0]),Se=Ee.asn1.ASN1Util.oidHexToInt(he);return Ee.asn1.x509.OID.oid2atype(Se)+"="+Ps(B(_,re[1]))},Kr.getPublicKeyFromCertHex=function(_){var L=new Kr;return L.readCertHex(_),L.getPublicKey()},Kr.getPublicKeyFromCertPEM=function(_){var L=new Kr;return L.readCertPEM(_),L.getPublicKey()},Kr.getPublicKeyInfoPropOfCertPEM=function(_){var re,he,D=Ei.getVbyList,B={algparam:null};return(re=new Kr).readCertPEM(_),he=re.getPublicKeyHex(),B.keyhex=D(he,0,[1],"03").substr(2),B.algoid=D(he,0,[0,0],"06"),"2a8648ce3d0201"===B.algoid&&(B.algparam=D(he,0,[0,1],"06")),B},Kr.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"],(typeof Ee>"u"||!Ee)&&(Ee={}),(typeof Ee.jws>"u"||!Ee.jws)&&(Ee.jws={}),Ee.jws.JWS=function(){var D=Ee.jws.JWS.isSafeJSONString;this.parseJWS=function(B,re){if(void 0===this.parsedJWS||!re&&void 0===this.parsedJWS.sigvalH){var he=B.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(null==he)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var Se=he[1],we=he[2],tt=he[3],rt=Se+"."+we;if(this.parsedJWS={},this.parsedJWS.headB64U=Se,this.parsedJWS.payloadB64U=we,this.parsedJWS.sigvalB64U=tt,this.parsedJWS.si=rt,!re){var Ot=nn(tt),At=Qo(Ot,16);this.parsedJWS.sigvalH=Ot,this.parsedJWS.sigvalBI=At}var Ke=bn(Se),Ye=bn(we);if(this.parsedJWS.headS=Ke,this.parsedJWS.payloadS=Ye,!D(Ke,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+Ke}}},Ee.jws.JWS.sign=function(_,L,D,B,re){var Be,_t,pt,we=Ee.jws.JWS,tt=we.readSafeJSONString,rt=we.isSafeJSONString,Ot=Ee.crypto,Ke=Ot.Mac,Ye=Ot.Signature,vt=JSON;if("string"!=typeof L&&"object"!=typeof L)throw"spHeader must be JSON string or object: "+L;if("object"==typeof L&&(Be=vt.stringify(_t=L)),"string"==typeof L){if(!rt(Be=L))throw"JWS Head is not safe JSON string: "+Be;_t=tt(Be)}if(pt=D,"object"==typeof D&&(pt=vt.stringify(D)),(""==_||null==_)&&void 0!==_t.alg&&(_=_t.alg),""!=_&&null!=_&&void 0===_t.alg&&(_t.alg=_,Be=vt.stringify(_t)),_!==_t.alg)throw"alg and sHeader.alg doesn't match: "+_+"!="+_t.alg;var $t=null;if(void 0===we.jwsalg2sigalg[_])throw"unsupported alg name: "+_;$t=we.jwsalg2sigalg[_];var yn=kt(Be)+"."+kt(pt),ci="";if("Hmac"==$t.substr(0,4)){if(void 0===B)throw"mac key shall be specified for HS* alg";var yi=new Ke({alg:$t,prov:"cryptojs",pass:B});yi.updateString(yn),ci=yi.doFinal()}else if(-1!=$t.indexOf("withECDSA")){(Bt=new Ye({alg:$t})).init(B,re),Bt.updateString(yn);var Rt=Bt.sign();ci=Ee.crypto.ECDSA.asn1SigToConcatSig(Rt)}else if("none"!=$t){var Bt;(Bt=new Ye({alg:$t})).init(B,re),Bt.updateString(yn),ci=Bt.sign()}return yn+"."+mt(ci)},Ee.jws.JWS.verify=function(_,L,D){var At,he=Ee.jws.JWS,Se=he.readSafeJSONString,we=Ee.crypto,tt=we.ECDSA,rt=we.Mac,Ot=we.Signature;if(At=Er,!No(_))return!1;var Ke=_.split(".");if(3!==Ke.length)return!1;var hn,Be=Ke[0]+"."+Ke[1],_t=nn(Ke[2]),pt=Se(bn(Ke[0])),$t=null;if(void 0===pt.alg)throw"algorithm not specified in header";if(hn=($t=pt.alg).substr(0,2),null!=D&&"[object Array]"===Object.prototype.toString.call(D)&&D.length>0&&-1==(":"+D.join(":")+":").indexOf(":"+$t+":"))throw"algorithm '"+$t+"' not accepted in the list";if("none"!=$t&&null===L)throw"key shall be specified to verify.";if("string"==typeof L&&-1!=L.indexOf("-----BEGIN ")&&(L=Uo.getKey(L)),!("RS"!=hn&&"PS"!=hn||L instanceof At))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==hn&&!(L instanceof tt))throw"key shall be a ECDSA obj for ES* algs";var yn=null;if(void 0===he.jwsalg2sigalg[pt.alg])throw"unsupported alg name: "+$t;if("none"==(yn=he.jwsalg2sigalg[$t]))throw"not supported";if("Hmac"==yn.substr(0,4)){if(void 0===L)throw"hexadecimal key shall be specified for HMAC";var yi=new rt({alg:yn,pass:L});return yi.updateString(Be),_t==yi.doFinal()}if(-1!=yn.indexOf("withECDSA")){var Rt,Bt=null;try{Bt=tt.concatSigToASN1Sig(_t)}catch{return!1}return(Rt=new Ot({alg:yn})).init(L),Rt.updateString(Be),Rt.verify(Bt)}return(Rt=new Ot({alg:yn})).init(L),Rt.updateString(Be),Rt.verify(_t)},Ee.jws.JWS.parse=function(_){var re,he,L=_.split("."),D={};if(2!=L.length&&3!=L.length)throw"malformed sJWS: wrong number of '.' splitted elements";return re=L[1],3==L.length&&(he=L[2]),D.headerObj=Ee.jws.JWS.readSafeJSONString(bn(L[0])),D.payloadObj=Ee.jws.JWS.readSafeJSONString(bn(re)),D.headerPP=JSON.stringify(D.headerObj,null,"  "),D.payloadPP=null==D.payloadObj?bn(re):JSON.stringify(D.payloadObj,null,"  "),void 0!==he&&(D.sigHex=nn(he)),D},Ee.jws.JWS.verifyJWT=function(_,L,D){var re=Ee.jws,he=re.JWS,Se=he.readSafeJSONString,we=he.inArray,tt=he.includedArray;if(!No(_))return!1;var rt=_.split(".");if(3!=rt.length)return!1;var Ot=rt[0],At=rt[1],vt=(nn(rt[2]),Se(bn(Ot))),Be=Se(bn(At));if(void 0===vt.alg)return!1;if(void 0===D.alg)throw"acceptField.alg shall be specified";if(!we(vt.alg,D.alg)||void 0!==Be.iss&&"object"==typeof D.iss&&!we(Be.iss,D.iss)||void 0!==Be.sub&&"object"==typeof D.sub&&!we(Be.sub,D.sub))return!1;if(void 0!==Be.aud&&"object"==typeof D.aud)if("string"==typeof Be.aud){if(!we(Be.aud,D.aud))return!1}else if("object"==typeof Be.aud&&!tt(Be.aud,D.aud))return!1;var _t=re.IntDate.getNow();return void 0!==D.verifyAt&&"number"==typeof D.verifyAt&&(_t=D.verifyAt),(void 0===D.gracePeriod||"number"!=typeof D.gracePeriod)&&(D.gracePeriod=0),!(void 0!==Be.exp&&"number"==typeof Be.exp&&Be.exp+D.gracePeriod<_t||void 0!==Be.nbf&&"number"==typeof Be.nbf&&_t<Be.nbf-D.gracePeriod||void 0!==Be.iat&&"number"==typeof Be.iat&&_t<Be.iat-D.gracePeriod||void 0!==Be.jti&&void 0!==D.jti&&Be.jti!==D.jti||!he.verify(_,L,D.alg))},Ee.jws.JWS.includedArray=function(_,L){var D=Ee.jws.JWS.inArray;if(null===_||"object"!=typeof _||"number"!=typeof _.length)return!1;for(var B=0;B<_.length;B++)if(!D(_[B],L))return!1;return!0},Ee.jws.JWS.inArray=function(_,L){if(null===L||"object"!=typeof L||"number"!=typeof L.length)return!1;for(var D=0;D<L.length;D++)if(L[D]==_)return!0;return!1},Ee.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",ES512:"SHA512withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},Ee.jws.JWS.isSafeJSONString=function(_,L,D){var B=null;try{return"object"!=typeof(B=Ji(_))||B.constructor===Array?0:(L&&(L[D]=B),1)}catch{return 0}},Ee.jws.JWS.readSafeJSONString=function(_){var L=null;try{return"object"!=typeof(L=Ji(_))||L.constructor===Array?null:L}catch{return null}},Ee.jws.JWS.getEncodedSignatureValueFromJWS=function(_){var L=_.match(/^[^.]+\.[^.]+\.([^.]+)$/);if(null==L)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";return L[1]},Ee.jws.JWS.getJWKthumbprint=function(_){if("RSA"!==_.kty&&"EC"!==_.kty&&"oct"!==_.kty)throw"unsupported algorithm for JWK Thumprint";var L="{";if("RSA"===_.kty){if("string"!=typeof _.n||"string"!=typeof _.e)throw"wrong n and e value for RSA key";L+='"e":"'+_.e+'",',L+='"kty":"'+_.kty+'",',L+='"n":"'+_.n+'"}'}else if("EC"===_.kty){if("string"!=typeof _.crv||"string"!=typeof _.x||"string"!=typeof _.y)throw"wrong crv, x and y value for EC key";L+='"crv":"'+_.crv+'",',L+='"kty":"'+_.kty+'",',L+='"x":"'+_.x+'",',L+='"y":"'+_.y+'"}'}else if("oct"===_.kty){if("string"!=typeof _.k)throw"wrong k value for oct(symmetric) key";L+='"kty":"'+_.kty+'",',L+='"k":"'+_.k+'"}'}var D=Or(L);return mt(Ee.crypto.Util.hashHex(D,"sha256"))},Ee.jws.IntDate={},Ee.jws.IntDate.get=function(_){var L=Ee.jws.IntDate,D=L.getNow,B=L.getZulu;if("now"==_)return D();if("now + 1hour"==_)return D()+3600;if("now + 1day"==_)return D()+86400;if("now + 1month"==_)return D()+2592e3;if("now + 1year"==_)return D()+31536e3;if(_.match(/Z$/))return B(_);if(_.match(/^[0-9]+$/))return parseInt(_);throw"unsupported format: "+_},Ee.jws.IntDate.getZulu=function(_){return Cr(_)},Ee.jws.IntDate.getNow=function(){return~~(new Date/1e3)},Ee.jws.IntDate.intDate2UTCString=function(_){return new Date(1e3*_).toUTCString()},Ee.jws.IntDate.intDate2Zulu=function(_){var L=new Date(1e3*_);return("0000"+L.getUTCFullYear()).slice(-4)+("00"+(L.getUTCMonth()+1)).slice(-2)+("00"+L.getUTCDate()).slice(-2)+("00"+L.getUTCHours()).slice(-2)+("00"+L.getUTCMinutes()).slice(-2)+("00"+L.getUTCSeconds()).slice(-2)+"Z"},(typeof Ee>"u"||!Ee)&&(Ee={}),(typeof Ee.jws>"u"||!Ee.jws)&&(Ee.jws={}),Ee.jws.JWSJS=function(){var D=Ee.jws.JWS,B=D.readSafeJSONString;this.aHeader=[],this.sPayload="",this.aSignature=[],this.init=function(){this.aHeader=[],this.sPayload=void 0,this.aSignature=[]},this.initWithJWS=function(re){this.init();var he=re.split(".");if(3!=he.length)throw"malformed input JWS";this.aHeader.push(he[0]),this.sPayload=he[1],this.aSignature.push(he[2])},this.addSignature=function(re,he,Se,we){if(null==this.sPayload)throw"there's no JSON-JS signature to add.";var tt=this.aHeader.length;if(this.aHeader.length!=this.aSignature.length)throw"aHeader.length != aSignature.length";try{var Ot=Ee.jws.JWS.sign(re,he,this.sPayload,Se,we).split(".");this.aHeader.push(Ot[0]),this.aSignature.push(Ot[2])}catch(Ye){throw this.aHeader.length>tt&&this.aHeader.pop(),this.aSignature.length>tt&&this.aSignature.pop(),"addSignature failed: "+Ye}},this.verifyAll=function(re){if(this.aHeader.length!==re.length||this.aSignature.length!==re.length)return!1;for(var he=0;he<re.length;he++){var Se=re[he];if(2!==Se.length)return!1;if(!1===this.verifyNth(he,Se[0],Se[1]))return!1}return!0},this.verifyNth=function(re,he,Se){if(this.aHeader.length<=re||this.aSignature.length<=re)return!1;var rt=this.aHeader[re]+"."+this.sPayload+"."+this.aSignature[re],Ot=!1;try{Ot=D.verify(rt,he,Se)}catch{return!1}return Ot},this.readJWSJS=function(re){if("string"==typeof re){var he=B(re);if(null==he)throw"argument is not safe JSON object string";this.aHeader=he.headers,this.sPayload=he.payload,this.aSignature=he.signatures}else try{if(!(re.headers.length>0))throw"malformed header";if(this.aHeader=re.headers,"string"!=typeof re.payload)throw"malformed signatures";if(this.sPayload=re.payload,!(re.signatures.length>0))throw"malformed signatures";this.aSignature=re.signatures}catch(Se){throw"malformed JWS-JS JSON object: "+Se}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return 0==this.aHeader.length?1:0}},z.hT=Ee.jws},24877:(je,z,c)=>{je.exports=c(27838)},27838:je=>{self,je.exports=(()=>{var z={31:(n,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(h,f){if(h)for(var A in h)hasOwnProperty.call(h,A)&&f(h[A],A)},n.exports=v.default},843:(n,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.LS_META_TRACE_KEY=v.LS_META_TRACER_GUID_KEY=v.LS_META_TRACER_CREATE=v.LS_META_SP_START=v.LS_META_SP_FINISH=v.LS_META_SPAN_KEY=v.LS_META_PROPAGATION_KEY=v.LS_META_INJECT=v.LS_META_EXTRACT=v.LS_META_EVENT_KEY=v.LOG_WARN=v.LOG_STRING_TO_LEVEL=v.LOG_LEVEL_TO_STRING=v.LOG_INFO=v.LOG_FATAL=v.LOG_ERROR=v.LIGHTSTEP_APP_URL_PREFIX=v.JOIN_ID_PREFIX=v.FORMAT_B3=v.CLOCK_STATE_REFRESH_INTERVAL_MS=void 0,v.LOG_INFO=0,v.LOG_WARN=1,v.LOG_ERROR=2,v.LOG_FATAL=3,v.LOG_LEVEL_TO_STRING={LOG_INFO:"I",LOG_WARN:"W",LOG_ERROR:"E",LOG_FATAL:"F"},v.LOG_STRING_TO_LEVEL={I:0,W:1,E:2,F:3},v.CLOCK_STATE_REFRESH_INTERVAL_MS=350,v.LIGHTSTEP_APP_URL_PREFIX="https://app.lightstep.com",v.JOIN_ID_PREFIX="join:",v.LS_META_EVENT_KEY="lightstep.meta_event",v.LS_META_PROPAGATION_KEY="lightstep.propagation_format",v.LS_META_TRACE_KEY="lightstep.trace_id",v.LS_META_SPAN_KEY="lightstep.span_id",v.LS_META_TRACER_GUID_KEY="lightstep.tracer_guid",v.LS_META_EXTRACT="lightstep.extract_span",v.LS_META_INJECT="lightstep.inject_span",v.LS_META_SP_START="lightstep.span_start",v.LS_META_SP_FINISH="lightstep.span_finish",v.LS_META_TRACER_CREATE="lightstep.tracer_create",v.FORMAT_B3="format.b3"},261:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var f=h(295),M=function(){function T(S){(function(l,s){if(!(l instanceof s))throw new TypeError("Cannot call a class as a function")})(this,T),this._accessToken=S}var E,y;return E=T,(y=[{key:"getAccessToken",value:function(){return null==this._accessToken||0===this._accessToken.length?"empty":this._accessToken}},{key:"toThrift",value:function(){return new f.crouton_thrift.Auth({access_token:this._accessToken})}}])&&function A(T,E){for(var y=0;y<E.length;y++){var S=E[y];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(T,S.key,S)}}(E.prototype,y),Object.defineProperty(E,"prototype",{writable:!1}),T}();v.default=M,n.exports=v.default},69:(n,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.toBoolean=function(h){return!!h},v.toNumber=function(h){return Number(h)},v.toString=function(h){return""+h}},34:(n,v,h)=>{"use strict";var f,A=(f=h(31))&&f.__esModule?f:{default:f},T=function(){function E(){(function(l,s){if(!(l instanceof s))throw new TypeError("Cannot call a class as a function")})(this,E),this.options={}}var y,S;return y=E,(S=[{key:"setOptions",value:function(l){var s=this;(0,A.default)(l,function(u,m){s.options[m]=u})}}])&&function M(E,y){for(var S=0;S<y.length;S++){var l=y[S];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(E,l.key,l)}}(y.prototype,S),Object.defineProperty(y,"prototype",{writable:!1}),E}();n.exports=new T},618:(n,v,h)=>{"use strict";var f=h(295),M=h(843),T=h(69),E=function(){function y(s){(function(u,m){if(!(u instanceof m))throw new TypeError("Cannot call a class as a function")})(this,y),this._runtime=s,this._record=new f.crouton_thrift.LogRecord({timestamp_micros:s._platform.nowMicros(),runtime_guid:null,span_guid:null,stable_name:null,message:null,level:null,thread_id:null,filename:null,line_number:null,stack_frames:null,payload_json:null,error_flag:null})}var S,l;return S=y,(l=[{key:"record",value:function(){return this._record}},{key:"end",value:function(){this._runtime._addLogRecord(this._record)}},{key:"timestamp",value:function(s){return this._record.timestamp_micros=T.toNumber(s),this}},{key:"message",value:function(s){return this._record.message=T.toString(s),this}},{key:"level",value:function(s){return this._record.level=M.LOG_LEVEL_TO_STRING[s]||null,s>=M.LOG_ERROR&&this.error(!0),this}},{key:"span",value:function(s){return void 0!==s&&(this._record.span_guid=T.toString(s)),this}},{key:"name",value:function(s){return this._record.stable_name=T.toString(s),this}},{key:"error",value:function(s){return this._record.error_flag=T.toBoolean(s),this}},{key:"payload",value:function(s){return void 0!==s&&(this._record.payload_json=this._encodePayload(s)),this}},{key:"_encodePayload",value:function(s){var u=null;try{u=JSON.stringify(s)}catch{return}return u}}])&&function A(y,S){for(var l=0;l<S.length;l++){var s=S[l];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(y,s.key,s)}}(S.prototype,l),Object.defineProperty(S,"prototype",{writable:!1}),y}();n.exports=E},489:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var f,A=h(295),M=(f=h(31))&&f.__esModule?f:{default:f},T=function(l,s){if(l&&l.__esModule)return l;if(null===l||"object"!=typeof l&&"function"!=typeof l)return{default:l};var u=E(void 0);if(u&&u.has(l))return u.get(l);var m={},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in l)if("default"!==R&&Object.prototype.hasOwnProperty.call(l,R)){var O=I?Object.getOwnPropertyDescriptor(l,R):null;O&&(O.get||O.set)?Object.defineProperty(m,R,O):m[R]=l[R]}return m.default=l,u&&u.set(l,m),m}(h(69));function E(l){if("function"!=typeof WeakMap)return null;var s=new WeakMap,u=new WeakMap;return(E=function(m){return m?u:s})(l)}var S=function(){function l(m,I,R,O){(function(Y,j){if(!(Y instanceof j))throw new TypeError("Cannot call a class as a function")})(this,l),O instanceof Error&&(O={stack:O.stack,message:O.message}),this._logFieldKeyHardLimit=m,this._logFieldValueHardLimit=I,this._timestampMicros=R,this._fields=O,this._keysOverLimit=0,this._valuesOverLimit=0}var s,u;return s=l,(u=[{key:"_clearOverLimits",value:function(){this._keysOverLimit=0,this._valuesOverLimit=0}},{key:"getNumKeysOverLimit",value:function(){return this._keysOverLimit}},{key:"getNumValuesOverLimit",value:function(){return this._valuesOverLimit}},{key:"toThrift",value:function(){var m=this;this._clearOverLimits();var I=[];return(0,M.default)(this._fields,function(R,O){if(O&&R){var Y=m.getFieldKey(O),j=m.getFieldValue(R);I.push(new A.crouton_thrift.KeyValue({Key:Y,Value:j}))}}),new A.crouton_thrift.LogRecord({timestamp_micros:this._timestampMicros,fields:I})}},{key:"getFieldKey",value:function(m){var I=T.toString(m);return I.length>this._logFieldKeyHardLimit&&(this._keysOverLimit+=1,I="".concat(I.substr(0,this._logFieldKeyHardLimit),"...")),I}},{key:"getFieldValue",value:function(m){var I=null;if(m instanceof Error)try{I=JSON.stringify(m,Object.getOwnPropertyNames(m))}catch(R){I="Could not encode value. Exception: ".concat(R)}else if(m instanceof Object)try{I=JSON.stringify(m,null,"  ")}catch(R){I="Could not encode value. Exception: ".concat(R)}else I=T.toString(m);return I.length>this._logFieldValueHardLimit&&(this._valuesOverLimit+=1,I="".concat(I.substr(0,this._logFieldValueHardLimit),"...")),I}}])&&function y(l,s){for(var u=0;u<s.length;u++){var m=s[u];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(l,m.key,m)}}(s.prototype,u),Object.defineProperty(s,"prototype",{writable:!1}),l}();v.default=S,n.exports=v.default},638:(n,v,h)=>{"use strict";n.exports=h(933).crouton_thrift},933:n=>{"use strict";var v,h;v={},void 0===(h={})&&(h={}),h.KeyValue=function(f){if(this.Key=null,this.Value=null,f){if(void 0===f.Key)throw new v.TProtocolException(v.TProtocolExceptionType.UNKNOWN,"Required field Key is unset!");if(this.Key=f.Key,void 0===f.Value)throw new v.TProtocolException(v.TProtocolExceptionType.UNKNOWN,"Required field Value is unset!");this.Value=f.Value}},h.KeyValue.prototype={},h.KeyValue.prototype.read=!1,h.KeyValue.prototype.write=!1,h.NamedCounter=function(f){if(this.Name=null,this.Value=null,f){if(void 0===f.Name)throw new v.TProtocolException(v.TProtocolExceptionType.UNKNOWN,"Required field Name is unset!");if(this.Name=f.Name,void 0===f.Value)throw new v.TProtocolException(v.TProtocolExceptionType.UNKNOWN,"Required field Value is unset!");this.Value=f.Value}},h.NamedCounter.prototype={},h.NamedCounter.prototype.read=!1,h.NamedCounter.prototype.write=!1,h.Runtime=function(f){this.guid=null,this.start_micros=null,this.group_name=null,this.attrs=null,f&&(void 0!==f.guid&&(this.guid=f.guid),void 0!==f.start_micros&&(this.start_micros=f.start_micros),void 0!==f.group_name&&(this.group_name=f.group_name),void 0!==f.attrs&&(this.attrs=f.attrs))},h.Runtime.prototype={},h.Runtime.prototype.read=!1,h.Runtime.prototype.write=!1,h.LogRecord=function(f){this.timestamp_micros=null,this.fields=null,this.runtime_guid=null,this.span_guid=null,this.stable_name=null,this.message=null,this.level=null,this.thread_id=null,this.filename=null,this.line_number=null,this.stack_frames=null,this.payload_json=null,this.error_flag=null,f&&(void 0!==f.timestamp_micros&&(this.timestamp_micros=f.timestamp_micros),void 0!==f.fields&&(this.fields=f.fields),void 0!==f.runtime_guid&&(this.runtime_guid=f.runtime_guid),void 0!==f.span_guid&&(this.span_guid=f.span_guid),void 0!==f.stable_name&&(this.stable_name=f.stable_name),void 0!==f.message&&(this.message=f.message),void 0!==f.level&&(this.level=f.level),void 0!==f.thread_id&&(this.thread_id=f.thread_id),void 0!==f.filename&&(this.filename=f.filename),void 0!==f.line_number&&(this.line_number=f.line_number),void 0!==f.stack_frames&&(this.stack_frames=f.stack_frames),void 0!==f.payload_json&&(this.payload_json=f.payload_json),void 0!==f.error_flag&&(this.error_flag=f.error_flag))},h.LogRecord.prototype={},h.LogRecord.prototype.read=!1,h.LogRecord.prototype.write=!1,h.TraceJoinId=function(f){if(this.TraceKey=null,this.Value=null,f){if(void 0===f.TraceKey)throw new v.TProtocolException(v.TProtocolExceptionType.UNKNOWN,"Required field TraceKey is unset!");if(this.TraceKey=f.TraceKey,void 0===f.Value)throw new v.TProtocolException(v.TProtocolExceptionType.UNKNOWN,"Required field Value is unset!");this.Value=f.Value}},h.TraceJoinId.prototype={},h.TraceJoinId.prototype.read=!1,h.TraceJoinId.prototype.write=!1,h.SpanRecord=function(f){this.span_guid=null,this.trace_guid=null,this.runtime_guid=null,this.span_name=null,this.join_ids=null,this.oldest_micros=null,this.youngest_micros=null,this.attributes=null,this.error_flag=null,this.log_records=null,f&&(void 0!==f.span_guid&&(this.span_guid=f.span_guid),void 0!==f.trace_guid&&(this.trace_guid=f.trace_guid),void 0!==f.runtime_guid&&(this.runtime_guid=f.runtime_guid),void 0!==f.span_name&&(this.span_name=f.span_name),void 0!==f.join_ids&&(this.join_ids=f.join_ids),void 0!==f.oldest_micros&&(this.oldest_micros=f.oldest_micros),void 0!==f.youngest_micros&&(this.youngest_micros=f.youngest_micros),void 0!==f.attributes&&(this.attributes=f.attributes),void 0!==f.error_flag&&(this.error_flag=f.error_flag),void 0!==f.log_records&&(this.log_records=f.log_records))},h.SpanRecord.prototype={},h.SpanRecord.prototype.read=!1,h.SpanRecord.prototype.write=!1,h.Auth=function(f){this.access_token=null,f&&void 0!==f.access_token&&(this.access_token=f.access_token)},h.Auth.prototype={},h.Auth.prototype.read=!1,h.Auth.prototype.write=!1,h.Timing=function(f){this.receive_micros=null,this.transmit_micros=null,f&&(void 0!==f.receive_micros&&(this.receive_micros=f.receive_micros),void 0!==f.transmit_micros&&(this.transmit_micros=f.transmit_micros))},h.Timing.prototype={},h.Timing.prototype.read=!1,h.Timing.prototype.write=!1,h.SampleCount=function(f){this.oldest_micros=null,this.youngest_micros=null,this.count=null,f&&(void 0!==f.oldest_micros&&(this.oldest_micros=f.oldest_micros),void 0!==f.youngest_micros&&(this.youngest_micros=f.youngest_micros),void 0!==f.count&&(this.count=f.count))},h.SampleCount.prototype={},h.SampleCount.prototype.read=!1,h.SampleCount.prototype.write=!1,h.MetricsSample=function(f){if(this.name=null,this.int64_value=null,this.double_value=null,f){if(void 0===f.name)throw new v.TProtocolException(v.TProtocolExceptionType.UNKNOWN,"Required field name is unset!");this.name=f.name,void 0!==f.int64_value&&(this.int64_value=f.int64_value),void 0!==f.double_value&&(this.double_value=f.double_value)}},h.MetricsSample.prototype={},h.MetricsSample.prototype.read=!1,h.MetricsSample.prototype.write=!1,h.Metrics=function(f){this.counts=null,this.gauges=null,f&&(void 0!==f.counts&&(this.counts=f.counts),void 0!==f.gauges&&(this.gauges=f.gauges))},h.Metrics.prototype={},h.Metrics.prototype.read=!1,h.Metrics.prototype.write=!1,h.ReportRequest=function(f){this.runtime=null,this.span_records=null,this.log_records=null,this.timestamp_offset_micros=null,this.oldest_micros=null,this.youngest_micros=null,this.counters=null,this.internal_logs=null,this.internal_metrics=null,f&&(void 0!==f.runtime&&(this.runtime=f.runtime),void 0!==f.span_records&&(this.span_records=f.span_records),void 0!==f.log_records&&(this.log_records=f.log_records),void 0!==f.timestamp_offset_micros&&(this.timestamp_offset_micros=f.timestamp_offset_micros),void 0!==f.oldest_micros&&(this.oldest_micros=f.oldest_micros),void 0!==f.youngest_micros&&(this.youngest_micros=f.youngest_micros),void 0!==f.counters&&(this.counters=f.counters),void 0!==f.internal_logs&&(this.internal_logs=f.internal_logs),void 0!==f.internal_metrics&&(this.internal_metrics=f.internal_metrics))},h.ReportRequest.prototype={},h.ReportRequest.prototype.read=!1,h.ReportRequest.prototype.write=!1,h.Command=function(f){this.disable=null,f&&void 0!==f.disable&&(this.disable=f.disable)},h.Command.prototype={},h.Command.prototype.read=!1,h.Command.prototype.write=!1,h.ReportResponse=function(f){this.commands=null,this.timing=null,f&&(void 0!==f.commands&&(this.commands=f.commands),void 0!==f.timing&&(this.timing=f.timing))},h.ReportResponse.prototype={},h.ReportResponse.prototype.read=!1,h.ReportResponse.prototype.write=!1,n.exports.crouton_thrift=h,n.exports.Thrift={}},250:(n,v,h)=>{"use strict";var f=h(714),A=function(){if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope||!f.isBrowser())return null;var M=document.getElementsByTagName("SCRIPT");return M.length>0?M[M.length-1]:null}();n.exports={parseScriptElementOptions:f.isBrowser()?function(M,T){if(A){var E=A.dataset,y=E.access_token;"string"==typeof y&&y.length>0&&(M.access_token=y);var S=E.component_name;"string"==typeof S&&S.length>0&&(M.component_name=S);var l=E.collector_host;"string"==typeof l&&l.length>0&&(M.collector_host=l);var s=E.collector_port;s&&(M.collector_port=parseInt(s,10));var u=E.collector_path;"string"==typeof u&&u.length>0&&(M.collector_path=u);var m=E.collector_encryption;m&&(M.collector_encryption=m);var I=E.enable;"string"==typeof I&&("true"===I?M.enable=!0:"false"===I&&(M.enable=!1));var R=E.verbosity;"string"==typeof R&&(M.verbosity=parseInt(R,10));var O=E.init_global_tracer;"string"==typeof O&&("true"===O?T.init_global_tracer=!0:"false"===O&&(T.init_global_tracer=!1)),"string"==typeof E.xhr_instrumentation&&"true"===E.xhr_instrumentation&&(M.xhr_instrumentation=!0),"string"==typeof E.instrument_page_load&&"true"===E.instrument_page_load&&(M.instrument_page_load=!0)}}:function(M,T){},parseURLQueryOptions:f.isBrowser()?function(M){var T=function(E){var y={},S=window.location.href.indexOf("?");if(S<0)return y;var l=window.location.href.slice(S+1);l.indexOf("#")>=0&&(l=l.slice(0,l.indexOf("#")));for(var s=l.replace(/\+/,"%20").split("&"),u=0;u<s.length;u++){var m=s[u].split("=");y[decodeURIComponent(m[0])]=decodeURIComponent(m[1])}return y}();if(T.lightstep_verbosity)try{M.verbosity=parseInt(T.lightstep_verbosity,10)}catch{}T.lightstep_log_to_console&&(M.log_to_console=!0)}:function(M){return{}}}},733:(n,v,h)=>{"use strict";function f(l,s){for(var u=0;u<s.length;u++){var m=s[u];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(l,m.key,m)}}var A=h(250),M=h(714),T="lightstep_session_id",E=604800,y=function(){if(window.performance&&window.performance.now&&window.performance.timing&&window.performance.timing.navigationStart){var l=performance.timing.navigationStart;return function(){return Math.floor(1e3*(l+performance.now()))}}return function(){return 1e3*Date.now()}}(),S=function(){function l(){!function(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}(this,l)}var s,u,m;return s=l,u=[{key:"name",value:function(){return"browser"}},{key:"nowMicros",value:function(){return y()}},{key:"runtimeGUID",value:function(I){var R=encodeURIComponent("".concat("lightstep_guid","/").concat(I)),O=M.cookie(R)||this._generateLongUUID();M.cookie(R,O,E,"/");var Y=M.cookie(T)||this._generateLongUUID();return M.cookie(T,Y,E,"/"),O}},{key:"generateUUID",value:function(){return this._generateLongUUID()}},{key:"_generateLongUUID",value:function(){var I="00000000".concat(Math.abs(4294967295*Math.random()|0).toString(16)).substr(-8),R="00000000".concat(Math.abs(4294967295*Math.random()|0).toString(16)).substr(-8);return"".concat(I).concat(R)}},{key:"onBeforeExit",value:function(){if(M.isBrowser()){for(var I,R=arguments.length,O=new Array(R),Y=0;Y<R;Y++)O[Y]=arguments[Y];(I=window).addEventListener.apply(I,["beforeunload"].concat(O))}}},{key:"plugins",value:function(I){return[h(792),h(49),h(921)]}},{key:"options",value:function(I){var R={},O={};return A.parseScriptElementOptions(R,O),A.parseURLQueryOptions(R,O),R}},{key:"tracerTags",value:function(){return{"lightstep.tracer_platform":"browser"}}},{key:"fatal",value:function(I){throw new Error(I)}},{key:"localStoreGet",value:function(I){try{if(!window.sessionStorage)return null}catch{return null}try{return JSON.parse(sessionStorage.getItem("lightstep/".concat(I)))}catch{return null}}},{key:"localStoreSet",value:function(I,R){try{if(!window.sessionStorage)return}catch{return}try{sessionStorage.setItem("lightstep/".concat(I),JSON.stringify(R))}catch{}}}],m=[{key:"initLibrary",value:function(I){var R={},O={};A.parseScriptElementOptions(R,O),O.init_global_tracer&&l.initGlobalTracer(I,R)}},{key:"initGlobalTracer",value:function(I,R){"object"==typeof window&&"object"==typeof window.opentracing&&opentracing.initGlobalTracer(new I.Tracer(R))}}],u&&f(s.prototype,u),m&&f(s,m),Object.defineProperty(s,"prototype",{writable:!1}),l}();n.exports=S},720:(n,v,h)=>{"use strict";n.exports=h(933).Thrift},374:(n,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var f=function(){function A(){(function(E,y){if(!(E instanceof y))throw new TypeError("Cannot call a class as a function")})(this,A),this._host="",this._port=0,this._path="",this._encryption=""}var M,T;return M=A,(T=[{key:"ensureConnection",value:function(E){this._host=E.collector_host,this._port=E.collector_port,this._path=E.collector_path,this._encryption=E.collector_encryption}},{key:"report",value:function(E,y,S,l){try{E?this._reportAsyncScript(y,S,l):this._reportAJAX(y,S,l)}catch(s){return l(s,null)}}},{key:"_reportAJAX",value:function(E,y,S){var l=JSON.stringify(y.toThrift()),u="".concat("none"===this._encryption?"http":"https","://").concat(this._host,":").concat(this._port).concat(this._path,"/api/v0/reports"),m=new XMLHttpRequest;m.open("POST",u),m.setRequestHeader("LightStep-Access-Token",E.getAccessToken()),m.setRequestHeader("Content-Type","application/json"),m.onreadystatechange=function(){if(4===this.readyState){var I=null,R=null;if(200!==this.status)I=new Error("status code = ".concat(this.status));else if(this.responseText)try{R=JSON.parse(this.responseText)}catch(O){I=O}else I=new Error("unexpected empty response");return S(I,R)}},m.send(l)}},{key:"_reportAsyncScript",value:function(E,y,S){var l=JSON.stringify(E.toThrift()),s=JSON.stringify(y.toThrift()),m="".concat("none"===this._encryption?"http":"https","://").concat(this._host,":").concat(this._port).concat(this._path,"/_rpc/v1/reports/uri_encoded")+"?auth=".concat(encodeURIComponent(l))+"&report=".concat(encodeURIComponent(s)),I=document.createElement("script");I.async=!0,I.defer=!0,I.src=m,I.type="text/javascript";var R=document.getElementsByTagName("head")[0];return R&&R.appendChild(I),S(null,null)}}])&&function h(A,M){for(var T=0;T<M.length;T++){var E=M[T];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}(M.prototype,T),Object.defineProperty(M,"prototype",{writable:!1}),A}();v.default=f,n.exports=v.default},714:n=>{"use strict";function v(){return typeof document<"u"}n.exports={cookie:v()?function(h,f,A,M,T,E){if(arguments.length>1){var y=h+"="+encodeURIComponent(f)+(A?"; expires="+new Date(+new Date+1e3*A).toUTCString():"")+(M?"; path="+M:"")+(T?"; domain="+T:"")+(E?"; secure":"");return document.cookie=y,y}return decodeURIComponent((("; "+document.cookie).split("; "+h+"=")[1]||"").split(";")[0])}:function(){return null},isBrowser:v}},938:(n,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var f=function(){function A(E,y){(function(S,l){if(!(S instanceof l))throw new TypeError("Cannot call a class as a function")})(this,A),this._tracer=E,this._name=y}var M,T;return M=A,(T=[{key:"inject",value:function(E,y){return this._tracer._error("Unsupported format: ".concat(this._name)),null}},{key:"extract",value:function(E){this._tracer._error("Unsupported format: ".concat(this._name))}}])&&function h(A,M){for(var T=0;T<M.length;T++){var E=M[T];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}(M.prototype,T),Object.defineProperty(M,"prototype",{writable:!1}),A}();v.default=f,n.exports=v.default},255:(n,v,h)=>{"use strict";var f;function M(S,l){return(M=Object.setPrototypeOf||function(s,u){return s.__proto__=u,s})(S,l)}function E(S){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)})(S)}Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var y=function(S){!function(O,Y){if("function"!=typeof Y&&null!==Y)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(Y&&Y.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),Object.defineProperty(O,"prototype",{writable:!1}),Y&&M(O,Y)}(R,S);var l,s,u,m,I=(u=R,m=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var O,Y=E(u);if(m){var j=E(this).constructor;O=Reflect.construct(Y,arguments,j)}else O=Y.apply(this,arguments);return function T(S,l){if(l&&("object"==typeof l||"function"==typeof l))return l;if(void 0!==l)throw new TypeError("Derived constructors may only return object or undefined");return function(s){if(void 0===s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(S)}(this,O)});function R(O){var Y;return function(j,fe){if(!(j instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,R),(Y=I.call(this,O))._carrierPrefix="x-b3-",Y}return l=R,(s=[{key:"inject",value:function(O,Y){var j=this;if(Y){if("object"==typeof Y){var fe=O.traceGUID();return 32===fe.length&&"0000000000000000"===fe.substr(0,16)&&(fe=fe.substr(16)),Y["".concat(this._carrierPrefix,"spanid")]=O._guid,Y["".concat(this._carrierPrefix,"traceid")]=fe,Y["".concat(this._carrierPrefix,"sampled")]=O._sampled?"1":"0",O.forEachBaggageItem(function(te,ce){Y["".concat(j._baggagePrefix).concat(te)]=ce}),Y}this._tracer._error("Unexpected '".concat(typeof Y,"' FORMAT_TEXT_MAP carrier in call to inject"))}else this._tracer._error("Unexpected null carrier in call to inject")}}])&&function A(S,l){for(var s=0;s<l.length;s++){var u=l[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(S,u.key,u)}}(l.prototype,s),Object.defineProperty(l,"prototype",{writable:!1}),R}(((f=h(683))&&f.__esModule?f:{default:f}).default);v.default=y,n.exports=v.default},976:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var f=T(h(31)),A=T(h(970)),M=T(h(683));function T(S){return S&&S.__esModule?S:{default:S}}var y=function(){function S(u){(function(m,I){if(!(m instanceof I))throw new TypeError("Cannot call a class as a function")})(this,S),this._tracer=u,this._baggagePrefix=M.default,this._carrierPrefix="x-datadog-"}var l,s;return l=S,(s=[{key:"inject",value:function(u,m){var I=this;if(m){if("object"==typeof m)return m["".concat(this._carrierPrefix,"parent-id")]=parseInt(u._guid,16).toString(),m["".concat(this._carrierPrefix,"trace-id")]=parseInt(u.traceGUID(),16).toString(),m["".concat(this._carrierPrefix,"sampling-priority")]=u._sampled?"1":"0",u.forEachBaggageItem(function(R,O){m["".concat(I._baggagePrefix).concat(R)]=O}),m;this._tracer._error("Unexpected '".concat(typeof m,"' FORMAT_TEXT_MAP carrier in call to inject"))}else this._tracer._error("Unexpected null carrier in call to inject")}},{key:"extract",value:function(u){var m=this,I=0,R=null,O=null,Y=!0;if((0,f.default)(u,function(fe,te){if((te=te.toLowerCase()).substr(0,m._carrierPrefix.length)===m._carrierPrefix)switch(te.substr(m._carrierPrefix.length)){case"trace-id":I++,O=parseInt(fe,10).toString(16);break;case"parent-id":I++,R=parseInt(fe,10).toString(16);break;case"sampling-priority":0===fe&&(Y=!1);break;default:m._tracer._error("Unrecognized carrier key '".concat(te,"' with recognized prefix. Ignoring."))}}),0===I)return null;if(I<2)return this._tracer._error("Only found a partial SpanContext: ".concat(u)),null;var j=new A.default(R,O,Y);return(0,f.default)(u,function(fe,te){if((te=te.toLowerCase()).substr(0,m._baggagePrefix.length)===m._baggagePrefix){var ce=te.substr(m._baggagePrefix.length);j.setBaggageItem(ce,fe)}}),j}}])&&function E(S,l){for(var s=0;s<l.length;s++){var u=l[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(S,u.key,u)}}(l.prototype,s),Object.defineProperty(l,"prototype",{writable:!1}),S}();v.default=y,n.exports=v.default},683:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var f=M(h(31)),A=M(h(970));function M(y){return y&&y.__esModule?y:{default:y}}var E=function(){function y(s){(function(u,m){if(!(u instanceof m))throw new TypeError("Cannot call a class as a function")})(this,y),this._tracer=s,this._carrierPrefix="ot-tracer-",this._baggagePrefix="ot-baggage-"}var S,l;return S=y,(l=[{key:"inject",value:function(s,u){var m=this;if(u){if("object"==typeof u)return u["".concat(this._carrierPrefix,"spanid")]=s._guid,u["".concat(this._carrierPrefix,"traceid")]=s._traceGUID,u["".concat(this._carrierPrefix,"sampled")]="true",s.forEachBaggageItem(function(I,R){u["".concat(m._baggagePrefix).concat(I)]=R}),u;this._tracer._error("Unexpected '".concat(typeof u,"' FORMAT_TEXT_MAP carrier in call to inject"))}else this._tracer._error("Unexpected null carrier in call to inject")}},{key:"extract",value:function(s){var u=this,m=0,I=null,R=null,O=!0;if((0,f.default)(s,function(j,fe){if((fe=fe.toLowerCase()).substr(0,u._carrierPrefix.length)===u._carrierPrefix)switch(fe.substr(u._carrierPrefix.length)){case"traceid":m++,R=j;break;case"spanid":m++,I=j;break;case"sampled":switch(j){case 0:case"0":case!1:case"false":O=!1;break;default:O=!0}break;default:u._tracer._error("Unrecognized carrier key '".concat(fe,"' with recognized prefix. Ignoring."))}}),0===m)return null;if(m<2)return this._tracer._error("Only found a partial SpanContext: ".concat(s)),null;var Y=new A.default(I,R,O);return(0,f.default)(s,function(j,fe){if((fe=fe.toLowerCase()).substr(0,u._baggagePrefix.length)===u._baggagePrefix){var te=fe.substr(u._baggagePrefix.length);Y.setBaggageItem(te,j)}}),Y}}])&&function T(y,S){for(var l=0;l<S.length;l++){var s=S[l];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(y,s.key,s)}}(S.prototype,l),Object.defineProperty(S,"prototype",{writable:!1}),y}();v.default=E,n.exports=v.default},676:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var f,A=h(295),M=(f=h(31))&&f.__esModule?f:{default:f},T=function(l,s){if(l&&l.__esModule)return l;if(null===l||"object"!=typeof l&&"function"!=typeof l)return{default:l};var u=E(void 0);if(u&&u.has(l))return u.get(l);var m={},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in l)if("default"!==R&&Object.prototype.hasOwnProperty.call(l,R)){var O=I?Object.getOwnPropertyDescriptor(l,R):null;O&&(O.get||O.set)?Object.defineProperty(m,R,O):m[R]=l[R]}return m.default=l,u&&u.set(l,m),m}(h(69));function E(l){if("function"!=typeof WeakMap)return null;var s=new WeakMap,u=new WeakMap;return(E=function(m){return m?u:s})(l)}var S=function(){function l(m,I,R,O,Y,j,fe){(function(te,ce){if(!(te instanceof ce))throw new TypeError("Cannot call a class as a function")})(this,l),this._runtime=m,this._oldestMicros=I,this._youngestMicros=R,this._spanRecords=O,this._internalLogs=Y,this._counters=j,this._timestampOffsetMicros=fe}var s,u;return s=l,(u=[{key:"getSpanRecords",value:function(){return this._spanRecords}},{key:"getInternalLogs",value:function(){return this._internalLogs}},{key:"getCounters",value:function(){return this._counters}},{key:"toThrift",value:function(){var m=this;(0,M.default)(this._spanRecords,function(O){O.runtime_guid=m._runtimeGUID});var I=[];(0,M.default)(this._counters,function(O,Y){0!==O&&I.push(new A.crouton_thrift.MetricsSample({name:T.toString(Y),double_value:T.toNumber(O)}))});var R=[];return(0,M.default)(this._spanRecords,function(O){R.push(O._toThrift())}),new A.crouton_thrift.ReportRequest({runtime:this._runtime.toThrift(),oldest_micros:this._oldestMicros,youngest_micros:this._youngestMicros,span_records:R,internal_logs:this._internalLogs,internal_metrics:new A.crouton_thrift.Metrics({counts:I}),timestamp_offset_micros:this._timestampOffsetMicros})}}])&&function y(l,s){for(var u=0;u<s.length;u++){var m=s[u];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(l,m.key,m)}}(s.prototype,u),Object.defineProperty(s,"prototype",{writable:!1}),l}();v.default=S,n.exports=v.default},102:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var f,A=h(295),M=(f=h(31))&&f.__esModule?f:{default:f},T=function(l,s){if(l&&l.__esModule)return l;if(null===l||"object"!=typeof l&&"function"!=typeof l)return{default:l};var u=E(void 0);if(u&&u.has(l))return u.get(l);var m={},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in l)if("default"!==R&&Object.prototype.hasOwnProperty.call(l,R)){var O=I?Object.getOwnPropertyDescriptor(l,R):null;O&&(O.get||O.set)?Object.defineProperty(m,R,O):m[R]=l[R]}return m.default=l,u&&u.set(l,m),m}(h(69));function E(l){if("function"!=typeof WeakMap)return null;var s=new WeakMap,u=new WeakMap;return(E=function(m){return m?u:s})(l)}var S=function(){function l(m,I,R,O){(function(Y,j){if(!(Y instanceof j))throw new TypeError("Cannot call a class as a function")})(this,l),this._runtimeGUID=m,this._startMicros=I,this._componentName=R,this._attributes=O}var s,u;return s=l,(u=[{key:"toThrift",value:function(){var m=[];return(0,M.default)(this._attributes,function(I,R){m.push(new A.crouton_thrift.KeyValue({Key:T.toString(R),Value:T.toString(I)}))}),new A.crouton_thrift.Runtime({guid:this._runtimeGUID,start_micros:this._startMicros,group_name:this._componentName,attrs:m})}}])&&function y(l,s){for(var u=0;u<s.length;u++){var m=s[u];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(l,m.key,m)}}(s.prototype,u),Object.defineProperty(s,"prototype",{writable:!1}),l}();v.default=S,n.exports=v.default},970:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var f,A=(f=h(31))&&f.__esModule?f:{default:f},T=function(){function E(l,s,u){(function(m,I){if(!(m instanceof I))throw new TypeError("Cannot call a class as a function")})(this,E),this._baggage={},this._guid=l,this._sampled=!0,!1===u&&(this._sampled=u),this._upperTraceGUID="0000000000000000",this._traceGUID=s,this._traceGUID&&32===this._traceGUID.length&&(this._upperTraceGUID=s.substr(0,16),this._traceGUID=s.substr(16))}var y,S;return y=E,(S=[{key:"setBaggageItem",value:function(l,s){this._baggage[l]=s}},{key:"getBaggageItem",value:function(l){return this._baggage[l]}},{key:"toTraceId",value:function(){return this._traceGUID}},{key:"toSpanId",value:function(){return this._guid}},{key:"forEachBaggageItem",value:function(l){(0,A.default)(this._baggage,function(s,u){l(u,s)})}},{key:"traceGUID",value:function(){return"".concat(this._upperTraceGUID).concat(this._traceGUID)}}])&&function M(E,y){for(var S=0;S<y.length;S++){var l=y[S];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(E,l.key,l)}}(y.prototype,S),Object.defineProperty(y,"prototype",{writable:!1}),E}();v.default=T,n.exports=v.default},405:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var f=u(h(725)),A=u(h(69)),M=u(h(843)),T=l(h(31)),E=h(295),y=l(h(489)),S=l(h(278));function l(fe){return fe&&fe.__esModule?fe:{default:fe}}function s(fe){if("function"!=typeof WeakMap)return null;var te=new WeakMap,ce=new WeakMap;return(s=function(H){return H?ce:te})(fe)}function u(fe,te){if(!te&&fe&&fe.__esModule)return fe;if(null===fe||"object"!=typeof fe&&"function"!=typeof fe)return{default:fe};var ce=s(te);if(ce&&ce.has(fe))return ce.get(fe);var H={},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var X in fe)if("default"!==X&&Object.prototype.hasOwnProperty.call(fe,X)){var ue=Z?Object.getOwnPropertyDescriptor(fe,X):null;ue&&(ue.get||ue.set)?Object.defineProperty(H,X,ue):H[X]=fe[X]}return H.default=fe,ce&&ce.set(fe,H),H}function m(fe,te,ce){return te in fe?Object.defineProperty(fe,te,{value:ce,enumerable:!0,configurable:!0,writable:!0}):fe[te]=ce,fe}function R(fe,te){return(R=Object.setPrototypeOf||function(ce,H){return ce.__proto__=H,ce})(fe,te)}function Y(fe){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(te){return te.__proto__||Object.getPrototypeOf(te)})(fe)}var j=function(fe){!function(Me,be){if("function"!=typeof be&&null!==be)throw new TypeError("Super expression must either be null or a function");Me.prototype=Object.create(be&&be.prototype,{constructor:{value:Me,writable:!0,configurable:!0}}),Object.defineProperty(Me,"prototype",{writable:!1}),be&&R(Me,be)}(ue,fe);var te,ce,H,Z,X=(H=ue,Z=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Me,be=Y(H);if(Z){var Q=Y(this).constructor;Me=Reflect.construct(be,arguments,Q)}else Me=be.apply(this,arguments);return function O(fe,te){if(te&&("object"==typeof te||"function"==typeof te))return te;if(void 0!==te)throw new TypeError("Derived constructors may only return object or undefined");return function(ce){if(void 0===ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce}(fe)}(this,Me)});function ue(Me,be,Q){var ne;return function(Ge,ge){if(!(Ge instanceof ge))throw new TypeError("Cannot call a class as a function")}(this,ue),ne=X.call(this),console.assert("object"==typeof Me,"Invalid runtime"),ne._tracerImp=Me,ne._ctx=Q,ne._ended=!1,ne._operationName=be,ne._tags={},ne._beginMicros=Me._platform.nowMicros(),ne._endMicros=0,ne._errorFlag=!1,ne._log_records=null,ne}return te=ue,(ce=[{key:"_tracer",value:function(){return this._tracerImp}},{key:"_context",value:function(){return this._ctx}},{key:"_setOperationName",value:function(Me){this._operationName="".concat(Me)}},{key:"_setBaggageItem",value:function(Me,be){this._ctx.setBaggageItem(Me,be)}},{key:"_getBaggageItem",value:function(Me){return this._ctx.getBaggageItem(Me)}},{key:"_addTags",value:function(Me){var be=this;(0,T.default)(Me,function(Q,ne){be._tags[ne]=Q})}},{key:"_log",value:function(Me,be){var Q=this;if("object"==typeof Me){var ne=be?1e3*be:Q._tracerImp._platform.nowMicros(),Ge=new y.default(Q._tracerImp.getLogFieldKeyHardLimit(),Q._tracerImp.getLogFieldValueHardLimit(),ne,Me);Q._log_records=Q._log_records||[],Q._log_records.push(Ge),Q._tracerImp.emit("log_added",Ge)}else Q._tracerImp._error("Span.log() expects an object as its first argument")}},{key:"_finish",value:function(Me){return this.end(Me)}},{key:"getOperationName",value:function(){return this._operationName}},{key:"guid",value:function(){return this._ctx._guid}},{key:"traceGUID",value:function(){return this._ctx._traceGUID}},{key:"parentGUID",value:function(){return this._tags.parent_span_guid}},{key:"setParentGUID",value:function(Me){return this._tags.parent_span_guid=A.toString(Me),this}},{key:"beginMicros",value:function(){return this._beginMicros}},{key:"setBeginMicros",value:function(Me){return this._beginMicros=Me,this}},{key:"endMicros",value:function(){return this._endMicros}},{key:"setEndMicros",value:function(Me){return this._endMicros=Me,this}},{key:"generateTraceURL",value:function(){var Me;Me=this._beginMicros>0&&this._endMicros>0?Math.floor((this._beginMicros+this._endMicros)/2):this._tracerImp._platform.nowMicros();var be=M.LIGHTSTEP_APP_URL_PREFIX,Q=encodeURIComponent(this._tracerImp.options().access_token),ne=encodeURIComponent(this.guid());return"".concat(be,"/").concat(Q,"/trace?span_guid=").concat(ne,"&at_micros=").concat(Me)}},{key:"getTags",value:function(){return this._tags}},{key:"end",value:function(Me){var be;this._ended||(this._ended=!0,void 0!==Me&&this.setEndMicros(Math.floor(1e3*Me)),0===this._endMicros&&this.setEndMicros(this._tracerImp._platform.nowMicros()),S.default.shouldSendMetaSpan(this._tracer().options(),this.getTags())&&this._tracerImp.startSpan(M.LS_META_SP_FINISH,{tags:(be={},m(be,M.LS_META_EVENT_KEY,!0),m(be,M.LS_META_TRACE_KEY,this.traceGUID()),m(be,M.LS_META_SPAN_KEY,this.guid()),be)}).finish(),this._tracerImp._addSpanRecord(this))}},{key:"_toThrift",value:function(){var Me=this,be=[];(0,T.default)(this._tags,function(ne,Ge){be.push(new E.crouton_thrift.KeyValue({Key:A.toString(Ge),Value:A.toString(ne)}))});var Q=[];return(0,T.default)(this._log_records,function(ne){var Ge=ne.toThrift();Me._tracerImp._counters["logs.keys.over_limit"]+=ne.getNumKeysOverLimit(),Me._tracerImp._counters["logs.values.over_limit"]+=ne.getNumValuesOverLimit(),Q.push(Ge)}),new E.crouton_thrift.SpanRecord({span_guid:this.guid(),trace_guid:this.traceGUID(),runtime_guid:this._tracerImp.guid(),span_name:this._operationName,oldest_micros:this._beginMicros,youngest_micros:this._endMicros,attributes:be,error_flag:this._errorFlag,log_records:Q})}}])&&function I(fe,te){for(var ce=0;ce<te.length;ce++){var H=te[ce];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(fe,H.key,H)}}(te.prototype,ce),Object.defineProperty(te,"prototype",{writable:!1}),ue}(f.Span);v.default=j,n.exports=v.default},90:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var f=R(h(729)),A=function(ot,dt){if(ot&&ot.__esModule)return ot;if(null===ot||"object"!=typeof ot&&"function"!=typeof ot)return{default:ot};var xe=I(void 0);if(xe&&xe.has(ot))return xe.get(ot);var Re={},Ue=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ee in ot)if("default"!==ee&&Object.prototype.hasOwnProperty.call(ot,ee)){var W=Ue?Object.getOwnPropertyDescriptor(ot,ee):null;W&&(W.get||W.set)?Object.defineProperty(Re,ee,W):Re[ee]=ot[ee]}return Re.default=ot,xe&&xe.set(ot,Re),Re}(h(725)),M=R(h(970)),T=R(h(405)),E=R(h(31)),y=h(295),S=R(h(261)),l=R(h(102)),s=R(h(676)),u=R(h(938)),m=R(h(683));function I(ot){if("function"!=typeof WeakMap)return null;var dt=new WeakMap,xe=new WeakMap;return(I=function(Re){return Re?xe:dt})(ot)}function R(ot){return ot&&ot.__esModule?ot:{default:ot}}function O(ot,dt){var xe=Object.keys(ot);if(Object.getOwnPropertySymbols){var Re=Object.getOwnPropertySymbols(ot);dt&&(Re=Re.filter(function(Ue){return Object.getOwnPropertyDescriptor(ot,Ue).enumerable})),xe.push.apply(xe,Re)}return xe}function Y(ot){for(var dt=1;dt<arguments.length;dt++){var xe=null!=arguments[dt]?arguments[dt]:{};dt%2?O(Object(xe),!0).forEach(function(Re){j(ot,Re,xe[Re])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ot,Object.getOwnPropertyDescriptors(xe)):O(Object(xe)).forEach(function(Re){Object.defineProperty(ot,Re,Object.getOwnPropertyDescriptor(xe,Re))})}return ot}function j(ot,dt,xe){return dt in ot?Object.defineProperty(ot,dt,{value:xe,enumerable:!0,configurable:!0,writable:!0}):ot[dt]=xe,ot}function te(ot,dt){return(te=Object.setPrototypeOf||function(xe,Re){return xe.__proto__=Re,xe})(ot,dt)}function H(ot){if(void 0===ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ot}function Z(ot){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(dt){return dt.__proto__||Object.getPrototypeOf(dt)})(ot)}var X=h(344),ue=h(618),Me=h(69),be=h(843),Q=h(34),ne=h(147),Ge=h(278),ge=null,Xe=function(ot){!function(Pe,le){if("function"!=typeof le&&null!==le)throw new TypeError("Super expression must either be null or a function");Pe.prototype=Object.create(le&&le.prototype,{constructor:{value:Pe,writable:!0,configurable:!0}}),Object.defineProperty(Pe,"prototype",{writable:!1}),le&&te(Pe,le)}(W,ot);var dt,xe,Re,Ue,ee=(Re=W,Ue=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Pe,le=Z(Re);if(Ue){var oe=Z(this).constructor;Pe=Reflect.construct(le,arguments,oe)}else Pe=le.apply(this,arguments);return function ce(ot,dt){if(dt&&("object"==typeof dt||"function"==typeof dt))return dt;if(void 0!==dt)throw new TypeError("Derived constructors may only return object or undefined");return H(ot)}(this,Pe)});function W(Pe){var le;(function(Oe,ye){if(!(Oe instanceof ye))throw new TypeError("Cannot call a class as a function")})(this,W),(le=ee.call(this))._delegateEventEmitterMethods(),Pe=Pe||{},ge||(Q.setOptions(Pe),ge=H(le)),le._platform=new y.Platform(H(le)),le._runtimeGUID=Pe.guid||le.override_runtime_guid||null,le._plugins={},le._options={},le._optionDescs=[],le._makeOptionsTable(),le._opentracing=A,Pe.opentracing_module&&(le._opentracing=Pe.opentracing_module);var oe=le._platform.nowMicros();le._startMicros=oe,le._auth=null,le._runtime=null;var Le={warn:function(Oe,ye){le._warn(Oe,ye)},error:function(Oe,ye){le._error(Oe,ye)}};return Pe&&(le._transport=Pe.override_transport),le._propagators={},le._propagators[le._opentracing.FORMAT_HTTP_HEADERS]=new m.default(H(le)),le._propagators[le._opentracing.FORMAT_TEXT_MAP]=new m.default(H(le)),le._propagators[le._opentracing.FORMAT_BINARY]=new u.default(H(le),le._opentracing.FORMAT_BINARY),Pe&&Pe.propagators&&(le._propagators=Y(Y({},le._propagators),Pe.propagators)),le._reportingLoopActive=!1,le._first_report_has_run=!1,le._reportYoungestMicros=oe,le._reportTimer=null,le._reportErrorStreak=0,le._lastVisibleErrorMillis=0,le._skippedVisibleErrors=0,le._activeRootSpanSet={},le._activeRootSpan=null,le._spanRecords=[],le._counters={"internal.errors":0,"internal.warnings":0,"spans.dropped":0,"logs.dropped":0,"logs.keys.over_limit":0,"logs.values.over_limit":0,"reports.errors.send":0},le._internalLogs=[],le._flushIsActive=!1,le.addPlugin(h(981)),le.addPlatformPlugins(Pe),le.setPlatformOptions(Pe),Pe&&le.options(Pe),null!=le._transport||(le._transport=new y.ThriftTransport(Le),le._info("Using thrift transport per user-defined option.")),le._useClockState=!le._options.disable_clock_skew_correction,le._clockState=new X({nowMicros:function(){return le._platform.nowMicros()},localStoreGet:function(){var Oe="clock_state/".concat(le._options.collector_host);return le._platform.localStoreGet(Oe)},localStoreSet:function(Oe){var ye="clock_state/".concat(le._options.collector_host);return le._platform.localStoreSet(ye,Oe)}}),le._setupReportOnExit(),le._info("Tracer created with guid ".concat(le._runtimeGUID)),0===le._options.access_token.length&&le._warn("Access token not set -\n            this requires a satellite with access token checking disabled,\n            such as a developer satellite."),le.startPlugins(),le}return dt=W,xe=[{key:"_delegateEventEmitterMethods",value:function(){var Pe=this;this._ee=new f.default,(0,E.default)(["addListener","emit","eventNames","getMaxListeners","listenerCount","listeners","on","once","prependListener","prependOnceListener","removeAllListeners","removeListener","setMaxListeners"],function(le){Pe[le]=function(){Pe._ee[le]&&Pe._ee[le].apply(Pe._ee,arguments)}})}},{key:"_makeOptionsTable",value:function(){this.addOption("verbosity",{type:"int",min:0,max:9,defaultValue:1}),this.addOption("access_token",{type:"string",defaultValue:""}),this.addOption("component_name",{type:"string",defaultValue:""}),this.addOption("collector_host",{type:"string",defaultValue:"collector.lightstep.com"}),this.addOption("collector_port",{type:"int",defaultValue:443}),this.addOption("collector_path",{type:"string",defaultValue:""}),this.addOption("collector_encryption",{type:"string",defaultValue:"tls"}),this.addOption("tags",{type:"any",defaultValue:{}}),this.addOption("max_reporting_interval_millis",{type:"int",defaultValue:2500}),this.addOption("disable_clock_skew_correction",{type:"bool",defaultValue:!1}),this.addOption("transport",{type:"string",defaultValue:"thrift"}),this.addOption("disabled",{type:"bool",defaultValue:!1}),this.addOption("max_span_records",{type:"int",defaultValue:4096}),this.addOption("default_span_tags",{type:"any",defaultValue:{}}),this.addOption("report_timeout_millis",{type:"int",defaultValue:3e4}),this.addOption("gzip_json_requests",{type:"bool",defaultValue:!0}),this.addOption("disable_reporting_loop",{type:"bool",defaultValue:!1}),this.addOption("disable_report_on_exit",{type:"bool",defaultValue:!1}),this.addOption("delay_initial_report_millis",{type:"int",defaultValue:1e3}),this.addOption("error_throttle_millis",{type:"int",defaultValue:6e4}),this.addOption("logger",{type:"function",defaultValue:this._printToConsole.bind(this)}),this.addOption("clear_span_buffer_consecutive_errors",{type:"int",defaultValue:null}),this.addOption("certificate_verification",{type:"bool",defaultValue:!0}),this.addOption("override_transport",{type:"any",defaultValue:null}),this.addOption("silent",{type:"bool",defaultValue:!1}),this.addOption("log_field_key_hard_limit",{type:"int",defaultValue:256}),this.addOption("log_field_value_hard_limit",{type:"int",defaultValue:1024}),this.addOption("disable_meta_event_reporting",{type:"bool",defaultValue:!1})}},{key:"_startSpan",value:function(Pe,le){var oe=this,Le=null;if((le=le||{}).references)for(var Oe=0;Oe<le.references.length;Oe++){var ye=le.references[Oe],Ie=ye.type();if(Ie===this._opentracing.REFERENCE_CHILD_OF||Ie===this._opentracing.REFERENCE_FOLLOWS_FROM){var at=ye.referencedContext();if(!at){this._error("Span reference has an invalid context",at);continue}Le=at;break}}var K,ve=Le?Le.traceGUID():this.generateTraceGUIDForRootSpan(),De=!Le||Le._sampled,pe=new M.default(this._platform.generateUUID(),ve,De),Qe=new T.default(this,Pe,pe);return Qe.addTags(this._options.default_span_tags),(0,E.default)(le,function(zt,Vt){switch(Vt){case"references":break;case"startTime":Qe.setBeginMicros(Math.floor(1e3*zt));break;case"tags":Qe.addTags(zt);break;default:oe._warn("Ignoring unknown field '".concat(Vt,"'"))}}),null!==Le&&(Qe.setParentGUID(Le._guid),Le.forEachBaggageItem(function(zt,Vt){return pe.setBaggageItem(zt,Vt)})),this.emit("start_span",Qe),Ge.shouldSendMetaSpan(this.options(),Qe.getTags())&&this.startSpan(be.LS_META_SP_START,{tags:(K={},j(K,be.LS_META_EVENT_KEY,!0),j(K,be.LS_META_TRACE_KEY,Qe.traceGUID()),j(K,be.LS_META_SPAN_KEY,Qe.guid()),K)}).finish(),Qe}},{key:"_inject",value:function(Pe,le,oe){var Le;switch(!0===this.options().meta_event_reporting&&this.startSpan(be.LS_META_INJECT,{tags:(Le={},j(Le,be.LS_META_EVENT_KEY,!0),j(Le,be.LS_META_TRACE_KEY,Pe._traceGUID),j(Le,be.LS_META_SPAN_KEY,Pe._guid),j(Le,be.LS_META_PROPAGATION_KEY,le),Le)}).finish(),le){case this._opentracing.FORMAT_HTTP_HEADERS:this._propagators[this._opentracing.FORMAT_HTTP_HEADERS].inject(Pe,oe);break;case this._opentracing.FORMAT_TEXT_MAP:this._propagators[this._opentracing.FORMAT_TEXT_MAP].inject(Pe,oe);break;case this._opentracing.FORMAT_BINARY:this._propagators[this._opentracing.FORMAT_BINARY].inject(Pe,oe);break;default:this._error("Unknown format: ".concat(le))}}},{key:"_extract",value:function(Pe,le){var oe,Le=null;switch(Pe){case this._opentracing.FORMAT_HTTP_HEADERS:Le=this._propagators[this._opentracing.FORMAT_HTTP_HEADERS].extract(le);break;case this._opentracing.FORMAT_TEXT_MAP:Le=this._propagators[this._opentracing.FORMAT_TEXT_MAP].extract(le);break;case this._opentracing.FORMAT_BINARY:Le=this._propagators[this._opentracing.FORMAT_BINARY].extract(le);break;default:return this._error("Unsupported format: ".concat(Pe)),null}return!0===this.options().meta_event_reporting&&Le&&this.startSpan(be.LS_META_EXTRACT,{tags:(oe={},j(oe,be.LS_META_EVENT_KEY,!0),j(oe,be.LS_META_TRACE_KEY,Le._traceGUID),j(oe,be.LS_META_SPAN_KEY,Le._guid),j(oe,be.LS_META_PROPAGATION_KEY,Pe),oe)}).finish(),Le}},{key:"flush",value:function(Pe){if(Pe||(Pe=function(){}),this._options.disabled)return this._warn("Manual flush() called in disabled state."),Pe(null);this._flushReport(!0,!1,Pe)}},{key:"guid",value:function(){return this._runtimeGUID}},{key:"verbosity",value:function(){var Pe=this._options.verbosity;return void 0===Pe?1:Pe}},{key:"generateTraceGUIDForRootSpan",value:function(){var Pe=this._platform.generateUUID();return this._activeRootSpan&&(Pe=this._activeRootSpan.traceGUID()),Pe}},{key:"setPlatformOptions",value:function(Pe){var le=this._platform.options(this)||{};(0,E.default)(Pe,function(oe,Le){le[Le]=oe}),this.options(le)}},{key:"addOption",value:function(Pe,le){le.name=Pe,this._optionDescs.push(le),this._options[le.name]=le.defaultValue}},{key:"options",value:function(Pe){var le=this;if(0===arguments.length)return console.assert("object"==typeof this._options,"Internal error: _options field incorrect"),this._options;if("object"!=typeof Pe)throw new Error("options() must be called with an object: type was ".concat(typeof Pe));0===Pe.collector_port&&delete Pe.collector_port,void 0!==Pe.collector_encryption&&void 0===Pe.collector_port&&(Pe.collector_port="none"!==Pe.collector_encryption?443:80),this.meta_event_reporting=!1;var oe={},Le={};if((0,E.default)(this._optionDescs,function(Ie){le._setOptionInternal(oe,Le,Pe,Ie)}),Object.keys(Pe).forEach(function(Ie){void 0===oe[Ie]&&void 0===Le[Ie]&&le._warn("Invalid option ".concat(Ie," with value ").concat(Pe[Ie]))}),this._initReportingDataIfNeeded(oe),this._reportingLoopActive||this._startReportingLoop(),this.verbosity()>=3){var Oe="",ye=0;(0,E.default)(oe,function(Ie,at){Oe+="\t".concat(JSON.stringify(at),": ").concat(JSON.stringify(Ie.newValue),"\n"),ye++}),ye>0&&this._debug("Options modified:\n".concat(Oe))}this.emit("options",oe,this._options,this)}},{key:"_setOptionInternal",value:function(Pe,le,oe,Le){var Oe=Le.name,ye=oe[Oe],Ie=typeof ye;if(void 0!==ye){switch(Le.type){case"any":break;case"bool":if(!0!==ye&&!1!==ye)return void this._error("Invalid boolean option '".concat(Oe,"' '").concat(ye,"'"));break;case"function":if("function"!=typeof ye)return void this._error("Invalid function option '".concat(Oe,"' '").concat(ye,"'"));break;case"int":if("number"!==Ie||Math.floor(ye)!==ye)return void this._error("Invalid int option '".concat(Oe,"' '").concat(ye,"'"));if(void 0!==Le.min&&void 0!==Le.max&&!(ye>=Le.min&&ye<=Le.max))return void this._error("Option '".concat(Oe,"' out of range '").concat(ye,"' is not between ").concat(Le.min," and ").concat(Le.max));break;case"string":switch(Ie){case"string":break;case"number":ye=Me.toString(ye);break;default:return void this._error("Invalid string option ".concat(Oe," ").concat(ye))}break;case"array":if("[object Array]"!==Object.prototype.toString.call(ye))return void this._error("Invalid type for array option ".concat(Oe,": found '").concat(Ie,"'"));break;default:return void this._error("Unknown option type '".concat(Le.type,"'"))}var at=this._options[Oe];if(void 0===at)throw new Error("Attempt to set unknown option ".concat(Oe));"object"===Ie||at!==ye?(Pe[Oe]={oldValue:at,newValue:ye},this._options[Oe]=ye):le[Oe]=!0}}},{key:"_initReportingDataIfNeeded",value:function(Pe){var le=this;if(null===this._auth){this._runtimeGUID=this._platform.runtimeGUID(this._options.component_name),this._auth=new S.default(this._options.access_token);var oe={};(0,E.default)(this._options.tags,function(Oe,ye){"string"==typeof Oe?oe[ye]=Oe:le._error("Tracer tag value is not a string: key=".concat(ye))}),oe["lightstep.tracer_version"]=ne.version;var Le=this._platform.tracerTags();(0,E.default)(Le,function(Oe,ye){oe[ye]=Oe}),this._runtime=new l.default(this._runtimeGUID,this._startMicros,this._options.component_name,oe),this._info("Initializing reporting data",{component_name:this._options.component_name,access_token:this._auth.getAccessToken()}),this.emit("reporting_initialized")}else{if(!this._runtime)return this._error("Inconsistent state: auth initialized without runtime.");if(Pe.access_token)throw new Error("Cannot change access_token after it has been set.");if(Pe.component_name)throw new Error("Cannot change component_name after it has been set.");if(Pe.collector_host)throw new Error("Cannot change collector_host after the connection is established");if(Pe.collector_port)throw new Error("Cannot change collector_port after the connection is established");if(Pe.collector_path)throw new Error("Cannot change collector_path after the connection is established");if(Pe.collector_encryption)throw new Error("Cannot change collector_encryption after the connection is established")}}},{key:"getLogFieldKeyHardLimit",value:function(){return this._options.log_field_key_hard_limit}},{key:"getLogFieldValueHardLimit",value:function(){return this._options.log_field_value_hard_limit}},{key:"addPlatformPlugins",value:function(Pe){var le=this,oe=this._platform.plugins(Pe);(0,E.default)(oe,function(Le){le.addPlugin(Le)})}},{key:"addPlugin",value:function(Pe){var le=Pe.name();this._plugins[le]||(this._plugins[le]=Pe,Pe.addOptions(this))}},{key:"startPlugins",value:function(){var Pe=this;(0,E.default)(this._plugins,function(le,oe){Pe._plugins[oe].start(Pe)})}},{key:"addActiveRootSpan",value:function(Pe){this._activeRootSpanSet[Pe._guid]=Pe,this._setActiveRootSpanToYoungest()}},{key:"removeActiveRootSpan",value:function(Pe){delete this._activeRootSpanSet[Pe._guid],this._setActiveRootSpanToYoungest()}},{key:"_setActiveRootSpanToYoungest",value:function(){var Pe=this;this._activeRootSpan=null,(0,E.default)(this._activeRootSpanSet,function(le){(!Pe._activeRootSpan||le._beginMicros>Pe._activeRootSpan._beginMicros)&&(Pe._activeRootSpan=le)})}},{key:"_objectToUint8Array",value:function(Pe){var le;try{le=encodeURIComponent(JSON.stringify(Pe))}catch{return this._error("Could not binary encode carrier data."),null}for(var oe=new ArrayBuffer(le.length),Le=new Uint8Array(oe),Oe=0;Oe<le.length;Oe++){var ye=le.charCodeAt(Oe);if(!(ye>=0&&ye<=255))return this._error("Unexpected character code"),null;Le[Oe]=ye}return Le}},{key:"_uint8ArrayToObject",value:function(Pe){if(!Pe)return this._error("Array is null"),null;for(var le="",oe=0;oe<Pe.length;oe++)le+=String.fromCharCode(Pe[oe]);try{return JSON.parse(decodeURIComponent(le))}catch{return this._error("Could not decode binary data."),null}}},{key:"log",value:function(){return new ue(this)}},{key:"_clearBuffers",value:function(){this._spanRecords=[],this._internalLogs=[];var Pe={};(0,E.default)(this._counters,function(le,oe){Pe[oe]=0}),this._counters=Pe}},{key:"_buffersAreEmpty",value:function(){if(this._spanRecords.length>0||this._internalLogs.length>0)return!1;var Pe=!0;return(0,E.default)(this._counters,function(le){le>0&&(Pe=!1)}),Pe}},{key:"_addSpanRecord",value:function(Pe){this._internalAddSpanRecord(Pe),this.emit("span_added",Pe)}},{key:"_internalAddSpanRecord",value:function(Pe){if(Pe)if(this._spanRecords.length>=this._options.max_span_records){var le=Math.floor(this._spanRecords.length*Math.random());this._spanRecords[le]=Pe,this._counters["spans.dropped"]++}else this._spanRecords.push(Pe);else this._error("Attempt to add null record to buffer")}},{key:"_restoreRecords",value:function(Pe,le,oe){var Le=this;(0,E.default)(Pe,function(Ie){Le._internalAddSpanRecord(Ie)});var Oe=this._internalLogs;this._internalLogs=[];var ye=le.concat(Oe);(0,E.default)(ye,function(Ie){Le._pushInternalLog(Ie)}),(0,E.default)(oe,function(Ie,at){at in Le._counters?Le._counters[at]+=Ie:Le._error("Bad counter name: ".concat(at))})}},{key:"_clearSpanRecordsIfMaxErrors",value:function(){var Pe=this.options().clear_span_buffer_consecutive_errors;if(!(null===Pe||this._reportErrorStreak<Pe)){var le=this._spanRecords.length;this._counters["spans.dropped"]+=le,this._spanRecords=[],this._warn("Span buffer flushed, max consecutive errors reached",{max_consecutive_errors:Pe,spans_dropped:le})}}},{key:"_setupReportOnExit",value:function(){var Pe=this;if(this._options.disable_report_on_exit)this._debug("report-on-exit is disabled.");else{var le=0;this._platform.onBeforeExit(function(){le++>0||(Pe._info("Final flush before exit."),Pe._flushReport(!1,!0,function(oe){oe&&Pe._warn("Final report before exit failed",{error:oe,unflushed_spans:Pe._spanRecords.length,buffer_youngest_micros:Pe._reportYoungestMicros})}))})}}},{key:"_startReportingLoop",value:function(){var Pe=this;if(this._options.disabled)this._info("Not starting reporting loop: instrumentation is disabled.");else if(this._options.disable_reporting_loop)this._info("Not starting reporting loop: reporting loop is disabled.");else if(null!==this._auth)if(this._reportingLoopActive)this._info("Reporting loop already started!");else{this._info("Starting reporting loop:",this._runtime),this._reportingLoopActive=!0;var le=0;this._platform.onBeforeExit(function(){le++>0||Pe._stopReportingLoop()});var oe=function(){Pe._enqueueNextReport(function(Oe){Pe._reportingLoopActive&&oe()})},Le=Math.floor(Math.random()*this._options.delay_initial_report_millis);Ge.detachedTimeout(function(){oe()},Le)}}},{key:"_stopReportingLoop",value:function(){this._debug("Stopping reporting loop"),this._reportingLoopActive=!1,clearTimeout(this._reportTimer),this._reportTimer=null}},{key:"_enqueueNextReport",value:function(Pe){var le=this;if(!this._reportTimer){var oe=this._options.max_reporting_interval_millis;0===this._reportErrorStreak&&this._useClockState&&!this._clockState.isReady()&&(oe=Math.min(be.CLOCK_STATE_REFRESH_INTERVAL_MS,oe));var Le=(1+Math.min(7,Math.max(0,this._reportErrorStreak)))*oe,Oe=.5*Math.random()-.25+1,ye=Math.floor(Math.max(0,Oe*Le));this._debug("Delaying next flush for ".concat(ye,"ms")),this._reportTimer=Ge.detachedTimeout(function(){le._reportTimer=null,le._flushReport(!1,!1,Pe)},ye)}}},{key:"_flushReport",value:function(Pe,le,oe){var Le=this;oe=oe||function(Vt){};var Oe=this._clockState.isReady(),ye=this._clockState.offsetMicros();this._debug("time correction state",{offset_micros:ye,active_samples:this._clockState.activeSampleCount(),ready:Oe});var Ie=this._spanRecords,at=this._counters,K=this._internalLogs;if(!this._useClockState||Pe||Oe||le){if(this._buffersAreEmpty())return this._debug("Skipping empty report"),oe(null);this._clearBuffers(),this._debug("Flushing report (".concat(Ie.length," spans)"))}else this._debug("Flushing empty report to prime clock state"),Ie=[],at={},K=[];this._transport.ensureConnection(this._options),console.assert(null!==this._runtimeGUID,"No runtime GUID for Tracer");var ve=this._useClockState?ye:0,De=this._platform.nowMicros(),pe=new s.default(this._runtime,this._reportYoungestMicros,De,Ie,K,at,ve);this.emit("prereport",pe);var Qe,zt=this._platform.nowMicros();this._options.meta_event_reporting&&!this._first_report_has_run&&(this._first_report_has_run=!0,this.startSpan(be.LS_META_TRACER_CREATE,{tags:(Qe={},j(Qe,be.LS_META_EVENT_KEY,!0),j(Qe,be.LS_META_TRACER_GUID_KEY,this._runtimeGUID),Qe)}).finish()),this._transport.report(le,this._auth,pe,function(Vt,de){var J,$e=Le._platform.nowMicros(),st=(De-pe.oldest_micros)/1e6;return Vt?(Le._reportErrorStreak++,J="".concat(Vt.message?Vt.message:Vt),Le._warn("Error in report: ".concat(J),{last_report_seconds_ago:st}),Le._restoreRecords(pe.getSpanRecords(),pe.getInternalLogs(),pe.getCounters()),Le._counters["reports.errors.send"]++,Le._clearSpanRecordsIfMaxErrors(),Le.emit("report_error",Vt,{error:Vt,streak:Le._reportErrorStreak,detached:le})):(Le.verbosity()>=4&&Le._debug("Report flushed for last ".concat(st," seconds"),{spans_reported:pe.getSpanRecords().length}),Le._reportErrorStreak=0,Le._reportYoungestMicros=De,de?(de.timing&&de.timing.receive_micros&&de.timing.transmit_micros?Le._clockState.addSample(zt,de.timing.receive_micros,de.timing.transmit_micros,$e):de.receiveTimestamp&&de.transmitTimestamp?Le._clockState.addSample(zt,1e6*de.receiveTimestamp.seconds+de.receiveTimestamp.nanos/1e3,1e6*de.transmitTimestamp.seconds+de.transmitTimestamp.nanos/1e3,$e):Le._useClockState=!1,de.errors&&de.errors.length>0?Le._warn("Errors in report",de.errors):de.errorsList&&de.errorsList.length>0&&Le._warn("Errors in report",de.errorsList),de.commandsList&&de.commandsList.length>0&&de.commandsList[0].devMode&&!0!==Le.options().disable_meta_event_reporting&&(Le.options().meta_event_reporting=!0)):Le._useClockState=!1,Le.emit("report",pe,de)),oe(Vt)})}},{key:"stats",value:function(){return{counters:this._counters}}},{key:"_debug",value:function(Pe,le){this.verbosity()<4||this._options.logger("debug",Pe,le)}},{key:"_info",value:function(Pe,le){this.verbosity()<3||this._options.logger("info",Pe,le)}},{key:"_warn",value:function(Pe,le){this._counters["internal.warnings"]++,this.verbosity()<3||this._options.logger("warn",Pe,le)}},{key:"_error",value:function(Pe,le){this._counters["internal.errors"]++;var oe=this.log().level(be.LOG_ERROR).message(Pe).payload(le).record();this._pushInternalLog(oe);var Le=this.verbosity();if(0!==Le){var Oe=Date.now();if(1===Le){if(Oe<this._lastVisibleErrorMillis+this._options.error_throttle_millis)return void this._skippedVisibleErrors++;if(this._skippedVisibleErrors>0){var ye="".concat(this._skippedVisibleErrors," errors masked since last logged error. Increase 'verbosity' option to see all errors.");this._options.logger("error",ye,le)}}this._options.logger("error",Pe,le),this._lastVisibleErrorMillis=Oe,this._skippedVisibleErrors=0}}},{key:"_printToConsole",value:function(Pe,le,oe){var Le="log",Oe="[LightStep:INFO] ".concat(le);"debug"===Pe?(Le="log",Oe="[LightStep:DEBUG] ".concat(le)):"info"===Pe?(Le="log",Oe="[LightStep:INFO] ".concat(le)):"warn"===Pe?(Le="warn",Oe="[LightStep:WARN] ".concat(le)):"error"===Pe&&(Le="error",Oe="[LightStep:ERROR] ".concat(le)),this._options.silent||(void 0!==oe?console[Le](Oe,oe):console[Le](Oe))}},{key:"_pushInternalLog",value:function(Pe){Pe&&(this._internalLogs.length>=20?(Pe.message="MAX_INTERNAL_LOGS limit hit. Last error: ".concat(Pe.message),this._internalLogs[this._internalLogs.length-1]=Pe):this._internalLogs.push(Pe))}}],xe&&function fe(ot,dt){for(var xe=0;xe<dt.length;xe++){var Re=dt[xe];Re.enumerable=Re.enumerable||!1,Re.configurable=!0,"value"in Re&&(Re.writable=!0),Object.defineProperty(ot,Re.key,Re)}}(dt.prototype,xe),Object.defineProperty(dt,"prototype",{writable:!1}),W}(A.Tracer);v.default=Xe,n.exports=v.default},344:(n,v,h)=>{"use strict";var f,A=(f=h(31))&&f.__esModule?f:{default:f},T=function(){function E(l){(function(u,m){if(!(u instanceof m))throw new TypeError("Cannot call a class as a function")})(this,E),this._nowMicros=l.nowMicros,this._localStoreGet=l.localStoreGet,this._localStoreSet=l.localStoreSet,this._samples=[],this._currentOffsetMicros=0,this._currentOffsetAge=8;var s=this._localStoreGet();s&&s.timestamp_micros&&s.timestamp_micros>this._nowMicros()-36e8&&(this._samples=s.samples.slice(-8)),this.update()}var y,S;return y=E,(S=[{key:"addSample",value:function(l,s,u,m){var I=Number.MAX_VALUE,R=0;l>0&&s>0&&u>0&&m>0&&(I=m-l-(u-s),R=(s-l+(u-m))/2),8===this._samples.length&&this._samples.shift(),this._samples.push({delayMicros:I,offsetMicros:R}),this._currentOffsetAge++,this._localStoreSet({timestamp_micros:this._nowMicros(),samples:this._samples}),this.update()}},{key:"update",value:function(){var l=Number.MAX_VALUE,s=0;if((0,A.default)(this._samples,function(m){m.delayMicros<l&&(l=m.delayMicros,s=m.offsetMicros)}),s!==this._currentOffsetMicros){var u=0;(0,A.default)(this._samples,function(m){u+=(s-m.offsetMicros)**2}),u=Math.sqrt(u/this._samples.length),(this._currentOffsetAge>7||Math.abs(this._currentOffsetMicros-s)<3*u)&&(this._currentOffsetMicros=s,this._currentOffsetAge=0)}}},{key:"offsetMicros",value:function(){return Math.floor(this._currentOffsetMicros)}},{key:"isReady",value:function(){return this._samples.length>3}},{key:"activeSampleCount",value:function(){return this._samples.length}}])&&function M(E,y){for(var S=0;S<y.length;S++){var l=y[S];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(E,l.key,l)}}(y.prototype,S),Object.defineProperty(y,"prototype",{writable:!1}),E}();n.exports=T},278:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var A=h(36),M=new(function(){function T(){!function(S,l){if(!(S instanceof l))throw new TypeError("Cannot call a class as a function")}(this,T)}var E,y;return E=T,(y=[{key:"detachedTimeout",value:function(S,l){var s=setTimeout(S,l);return s.unref&&s.unref(),s}},{key:"shouldSendMetaSpan",value:function(S,l){return!0===S.meta_event_reporting&&!0!==l["lightstep.meta_event"]}},{key:"hexToDec",value:function(S){return"function"!=typeof h.g.BigInt?A.hexToDec(S):h.g.BigInt("0x".concat(S)).toString(10)}}])&&function f(T,E){for(var y=0;y<E.length;y++){var S=E[y];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(T,S.key,S)}}(E.prototype,y),Object.defineProperty(E,"prototype",{writable:!1}),T}());v.default=M,n.exports=v.default},410:(n,v,h)=>{"use strict";var f=S(h(90)),A=S(h(683)),M=S(h(255)),T=S(h(976)),E=S(h(970)),y=h(295);function S(s){return s&&s.__esModule?s:{default:s}}var l={Tracer:f.default,LightStepPropagator:A.default,B3Propagator:M.default,DDPropagator:T.default,SpanContext:E.default};y.Platform.initLibrary(l),n.exports=l},295:(n,v,h)=>{"use strict";n.exports={Platform:h(733),ThriftTransport:h(374),thrift:h(720),crouton_thrift:h(638)}},921:(n,v,h)=>{"use strict";var f,A=(f=h(31))&&f.__esModule?f:{default:f},T=function(){function E(){(function(l,s){if(!(l instanceof s))throw new TypeError("Cannot call a class as a function")})(this,E),this._inited=!1,this._span=null}var y,S;return y=E,(S=[{key:"name",value:function(){return"instrument_page_load"}},{key:"addOptions",value:function(l){l.addOption("instrument_page_load",{type:"bool",defaultValue:!1})}},{key:"start",value:function(l){this._inited||(this._inited=!0,"object"==typeof window&&"object"==typeof document&&l.options().instrument_page_load&&(this._ensureSpanStarted(l),document.addEventListener("readystatechange",this._handleReadyStateChange.bind(this))))}},{key:"stop",value:function(){}},{key:"_ensureSpanStarted",value:function(l){this._span||(this._span=l.startSpan("document/load"),l.addActiveRootSpan(this._span))}},{key:"_handleReadyStateChange",value:function(){if(this._span){var l,s=this._span,u=document.readyState;"complete"===u&&(l={},window.performance&&performance.timing&&(this._addTimingSpans(s,performance.timing),l["window.performance.timing"]=performance.timing)),s.logEvent("document.readystatechange ".concat(u),l),"complete"===u&&(s.tracer()&&s.tracer().removeActiveRootSpan(s.tracer()),s.finish())}}},{key:"_copyNavigatorProperties",value:function(l){var s={};for(var u in l)try{var m=l[u];switch(u){case"plugins":for(var I=[],R=0;R<m.length;R++){var O=m.item(R);I.push({name:O.name,description:O.description})}s[u]=I;break;case"mimeTypes":for(var Y=[],j=0;j<m.length;j++){var fe=m.item(j);Y.push({type:fe.type,description:fe.description,suffixes:fe.suffixes})}s[u]=Y;break;default:s[u]=m}}catch{}return s}},{key:"_addTimingSpans",value:function(l,s){var u=this;l&&(l.setTag("user_agent",navigator.userAgent),(0,A.default)(s,function(m,I){var R;"number"==typeof m&&0!==m&&("navigationStart"===I&&"object"==typeof navigator&&(R={navigator:u._copyNavigatorProperties(navigator)}),l.log({message:"document ".concat(I),payload:R},m))}),l.setBeginMicros(1e3*s.navigationStart),l.tracer().startSpan("document/time_to_first_byte",{childOf:l}).setBeginMicros(1e3*s.requestStart).setEndMicros(1e3*s.responseStart).finish(),l.tracer().startSpan("document/response_transfer",{childOf:l}).setBeginMicros(1e3*s.responseStart).setEndMicros(1e3*s.responseEnd).finish(),l.tracer().startSpan("document/dom_load",{childOf:l}).setBeginMicros(1e3*s.domLoading).setEndMicros(1e3*s.domInteractive).finish())}}])&&function M(E,y){for(var S=0;S<y.length;S++){var l=y[S];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(E,l.key,l)}}(y.prototype,S),Object.defineProperty(y,"prototype",{writable:!1}),E}();n.exports=new T},49:(n,v,h)=>{"use strict";var f,A=function(s,u){if(s&&s.__esModule)return s;if(null===s||"object"!=typeof s&&"function"!=typeof s)return{default:s};var m=M(void 0);if(m&&m.has(s))return m.get(s);var I={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in s)if("default"!==O&&Object.prototype.hasOwnProperty.call(s,O)){var Y=R?Object.getOwnPropertyDescriptor(s,O):null;Y&&(Y.get||Y.set)?Object.defineProperty(I,O,Y):I[O]=s[O]}return I.default=s,m&&m.set(s,I),I}(h(725));function M(s){if("function"!=typeof WeakMap)return null;var u=new WeakMap,m=new WeakMap;return(M=function(I){return I?m:u})(s)}function E(s,u){return function(m){if(Array.isArray(m))return m}(s)||function(m,I){var R=null==m?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(null!=R){var O,Y,j=[],fe=!0,te=!1;try{for(R=R.call(m);!(fe=(O=R.next()).done)&&(j.push(O.value),!I||j.length!==I);fe=!0);}catch(ce){te=!0,Y=ce}finally{try{fe||null==R.return||R.return()}finally{if(te)throw Y}}return j}}(s,u)||function(m,I){if(m){if("string"==typeof m)return y(m,I);var R=Object.prototype.toString.call(m).slice(8,-1);return"Object"===R&&m.constructor&&(R=m.constructor.name),"Map"===R||"Set"===R?Array.from(m):"Arguments"===R||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R)?y(m,I):void 0}}(s,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(s,u){(null==u||u>s.length)&&(u=s.length);for(var m=0,I=new Array(u);m<u;m++)I[m]=s[m];return I}function S(s){for(var u={},m=s.headers.entries(),I=0;I<m.length;I++){var R=E(m[I],2);u[R[0]]=R[1]}return u}"object"==typeof window&&void 0!==window.fetch&&(f=window.fetch);var l=function(){function s(){(function(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")})(this,s),this._enabled=this._isValidContext(),this._proxyInited=!1,this._internalExclusions=[],this._tracer=null,this._handleOptions=this._handleOptions.bind(this)}var u,m;return u=s,(m=[{key:"name",value:function(){return"instrument_fetch"}},{key:"addOptions",value:function(I){I.addOption("fetch_instrumentation",{type:"bool",defaultValue:!1}),I.addOption("fetch_url_inclusion_patterns",{type:"array",defaultValue:[/.*/]}),I.addOption("fetch_url_exclusion_patterns",{type:"array",defaultValue:[]}),I.addOption("fetch_url_header_inclusion_patterns",{type:"array",defaultValue:[/.*/]}),I.addOption("fetch_url_header_exclusion_patterns",{type:"array",defaultValue:[]}),I.addOption("include_cookies",{type:"bool",defaultValue:!0})}},{key:"start",value:function(I){if(this._enabled){this._tracer=I;var R=I.options();this._addServiceHostToExclusions(R),this._handleOptions({},R),I.on("options",this._handleOptions)}}},{key:"stop",value:function(){this._enabled&&(window.fetch=f)}},{key:"_handleOptions",value:function(I,R){I.collector_host&&this._addServiceHostToExclusions(R),!this._proxyInited&&R.fetch_instrumentation&&(this._proxyInited=!0,window.fetch=this._instrumentFetch())}},{key:"_addServiceHostToExclusions",value:function(I){if(0!==I.collector_host.length){var R=j(I.collector_host),O=j(I.collector_port),Y=[new RegExp("^https?://".concat(R,":").concat(O))];"80"===O?Y.push(new RegExp("^http://".concat(R))):"443"===O&&Y.push(new RegExp("^https://".concat(R))),this._internalExclusions=Y}function j(fe){return"".concat(fe).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}},{key:"_isValidContext",value:function(){return typeof window<"u"&&!!window.fetch}},{key:"_instrumentFetch",value:function(){var I=this,R=this._tracer;return function(O,Y){var j=new Request(O,Y),fe=R.options();if(!I._shouldTrace(R,j.url))return f(j);var te=R.startSpan("fetch");R.addActiveRootSpan(te);var ce=new URL(j.url),H={method:j.method,url:j.url,hash:ce.hash,href:ce.href,protocol:ce.protocol,origin:ce.origin,host:ce.host,hostname:ce.hostname,port:ce.port,pathname:ce.pathname,search:ce.search};if(fe.include_cookies&&(H.cookies=function(){if(typeof document>"u"||!document.cookie)return null;for(var X=document.cookie.split(";"),ue={},Me=0,be=0;be<X.length;be++){var Q=X[be].split("=",2);if(2===Q.length){var ne=Q[0].replace(/^\s+/,"").replace(/\s+$/,"");ue[ne]=decodeURIComponent(Q[1]);try{ue[ne]=JSON.parse(ue[ne])}catch{}Me++}}return Me>0?ue:null}()),I._shouldAddHeadersToRequest(R,j.url)){var Z={};R.inject(te.context(),A.FORMAT_HTTP_HEADERS,Z),Object.keys(Z).forEach(function(X){j.headers.get(X)||j.headers.set(X,Z[X])})}return te.log({event:"sending",method:j.method,url:j.url,openPayload:H}),te.addTags(H),f(j).then(function(X){return X.ok||te.addTags({error:!0}),te.log({method:j.method,headers:S(X),status:X.status,statusText:X.statusText,responseType:X.type,url:X.url}),R.removeActiveRootSpan(te),te.finish(),X}).catch(function(X){throw te.addTags({error:!0}),R.removeActiveRootSpan(te),te.log({event:"error",error:X}),te.finish(),X})}}},{key:"_shouldTrace",value:function(I,R){if(!I||!R)return!1;var O=I.options();return!(O.disabled||this._internalExclusions.some(function(Y){return Y.test(R)})||O.fetch_url_exclusion_patterns.some(function(Y){return Y.test(R)})||!O.fetch_url_inclusion_patterns.some(function(Y){return Y.test(R)}))}},{key:"_shouldAddHeadersToRequest",value:function(I,R){if(!I||!R)return!1;var O=I.options();return!O.disabled&&!O.fetch_url_header_exclusion_patterns.some(function(Y){return Y.test(R)})&&!!O.fetch_url_header_inclusion_patterns.some(function(Y){return Y.test(R)})}}])&&function T(s,u){for(var m=0;m<u.length;m++){var I=u[m];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(s,I.key,I)}}(u.prototype,m),Object.defineProperty(u,"prototype",{writable:!1}),s}();n.exports=new l},792:(n,v,h)=>{"use strict";var f=function(m,I){if(m&&m.__esModule)return m;if(null===m||"object"!=typeof m&&"function"!=typeof m)return{default:m};var R=A(void 0);if(R&&R.has(m))return R.get(m);var O={},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in m)if("default"!==j&&Object.prototype.hasOwnProperty.call(m,j)){var fe=Y?Object.getOwnPropertyDescriptor(m,j):null;fe&&(fe.get||fe.set)?Object.defineProperty(O,j,fe):O[j]=m[j]}return O.default=m,R&&R.set(m,O),O}(h(725));function A(m){if("function"!=typeof WeakMap)return null;var I=new WeakMap,R=new WeakMap;return(A=function(O){return O?R:I})(m)}function M(m,I){var R=Object.keys(m);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(m);I&&(O=O.filter(function(Y){return Object.getOwnPropertyDescriptor(m,Y).enumerable})),R.push.apply(R,O)}return R}function E(m,I,R){return I in m?Object.defineProperty(m,I,{value:R,enumerable:!0,configurable:!0,writable:!0}):m[I]=R,m}var S={};function s(m){for(var I=m.getAllResponseHeaders().replace(/\s+$/,"").split(/\n/),R=0;R<I.length;R++)I[R]=I[R].replace(/\r/g,"").replace(/^\s+/,"").replace(/\s+$/,"");return I}"object"==typeof window&&void 0!==window.XMLHttpRequest&&(S={XMLHttpRequest,open:XMLHttpRequest.prototype.open,send:XMLHttpRequest.prototype.send,setRequestHeader:XMLHttpRequest.prototype.setRequestHeader});var u=function(){function m(){(function(O,Y){if(!(O instanceof Y))throw new TypeError("Cannot call a class as a function")})(this,m),this._enabled=this._isValidContext(),this._proxyInited=!1,this._internalExclusions=[],this._tracer=null,this._handleOptions=this._handleOptions.bind(this)}var I,R;return I=m,R=[{key:"name",value:function(){return"instrument_xhr"}},{key:"addOptions",value:function(O){O.addOption("xhr_instrumentation",{type:"bool",defaultValue:!1}),O.addOption("xhr_url_inclusion_patterns",{type:"array",defaultValue:[/.*/]}),O.addOption("xhr_url_exclusion_patterns",{type:"array",defaultValue:[]}),O.addOption("xhr_url_header_inclusion_patterns",{type:"array",defaultValue:[/.*/]}),O.addOption("xhr_url_header_exclusion_patterns",{type:"array",defaultValue:[]}),O.addOption("include_cookies",{type:"bool",defaultValue:!0})}},{key:"start",value:function(O){if(this._enabled){this._tracer=O;var Y=O.options();this._addServiceHostToExclusions(Y),this._handleOptions({},Y),O.on("options",this._handleOptions)}}},{key:"stop",value:function(){if(this._enabled){var O=S.XMLHttpRequest.prototype;O.open=S.open,O.send=S.send}}},{key:"_handleOptions",value:function(O,Y){if(O.collector_host&&this._addServiceHostToExclusions(Y),!this._proxyInited&&Y.xhr_instrumentation){this._proxyInited=!0;var j=S.XMLHttpRequest.prototype;j.setRequestHeader=this._instrumentSetRequestHeader(),j.open=this._instrumentOpen(),j.send=this._instrumentSend()}}},{key:"_addServiceHostToExclusions",value:function(O){if(0!==O.collector_host.length){var Y=te(O.collector_host),j=te(O.collector_port),fe=[new RegExp("^https?://".concat(Y,":").concat(j))];"80"===j?fe.push(new RegExp("^http://".concat(Y))):"443"===j&&fe.push(new RegExp("^https://".concat(Y))),this._internalExclusions=fe}function te(ce){return"".concat(ce).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}},{key:"_isValidContext",value:function(){return typeof window<"u"&&!!window.XMLHttpRequest&&!!window.XMLHttpRequest.prototype}},{key:"_instrumentSetRequestHeader",value:function(){return function(O,Y){return this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[O]=Y,S.setRequestHeader.apply(this,arguments)}}},{key:"_instrumentOpen",value:function(){var O=this,Y=this._tracer;return function(j,fe,te,ce,H){if(!O._shouldTrace(Y,this,fe))return S.open.apply(this,arguments);var Z=Y.options(),X=Y.startSpan("XMLHttpRequest");Y.addActiveRootSpan(X),this.__tracer_span=X,this.__tracer_url=fe;var ue={method:j,url:fe,async:te,user:ce};fe&&(ue.url_pathname=fe.split("?")[0]);var Me=function T(m){for(var I=1;I<arguments.length;I++){var R=null!=arguments[I]?arguments[I]:{};I%2?M(Object(R),!0).forEach(function(O){E(m,O,R[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(R)):M(Object(R)).forEach(function(O){Object.defineProperty(m,O,Object.getOwnPropertyDescriptor(R,O))})}return m}({},ue);Z.include_cookies&&(Me.cookies=function l(){if(typeof document>"u"||!document.cookie)return null;for(var m=document.cookie.split(";"),I={},R=0,O=0;O<m.length;O++){var Y=m[O].split("=",2);if(2===Y.length){var j=Y[0].replace(/^\s+/,"").replace(/\s+$/,"");I[j]=decodeURIComponent(Y[1]);try{I[j]=JSON.parse(I[j])}catch{}R++}}return R>0?I:null}());var be=void 0===te||te;be&&this.addEventListener("readystatechange",function(){if(0===this.readyState)X.log({readyState:0,event:"unsent"});else if(1===this.readyState)X.log({readyState:1,event:"sending"});else if(2===this.readyState)X.log({readyState:2,event:"headers received",method:j,url:fe,openPayload:Me,headers:s(this)}),X.addTags(ue);else if(3===this.readyState)X.log({readyState:3,event:"loading"});else if(4===this.readyState){var ne=this.responseType;X.log({readyState:4,url:fe,method:j,headers:s(this),status:this.status,statusText:this.statusText,responseType:ne}),Y.removeActiveRootSpan(X),X.finish()}else X.log({readyState:this.readyState})});var Q=S.open.apply(this,arguments);return be||(Y.removeActiveRootSpan(X),X.finish()),Q}}},{key:"_instrumentSend",value:function(){var O=this,Y=this._tracer;return function(){var j=this;if(!O._shouldTrace(Y,this,this.__tracer_url))return S.send.apply(this,arguments);var fe=this.__tracer_span;if(!fe)return S.send.apply(this,arguments);var te,ce=Array.prototype.slice.call(arguments);if(1===ce.length){ce[0]&&ce[0].length&&(te=ce[0].length);try{ce=JSON.parse(ce[0])}catch{}}var H=void 0===te?"":", data length=".concat(te);if(fe.log({event:"send",data_length:H}),O._shouldAddHeadersToRequest(Y,this.__tracer_url)){var Z={};Y.inject(fe.context(),f.FORMAT_HTTP_HEADERS,Z),Object.keys(Z).forEach(function(ue){S.setRequestHeader.call(j,ue,Z[ue])})}return S.send.apply(this,arguments)}}},{key:"_shouldTrace",value:function(O,Y,j){if(!O||!j)return!1;var fe=O.options();return!(fe.disabled||this._internalExclusions.some(function(te){return te.test(j)})||fe.xhr_url_exclusion_patterns.some(function(te){return te.test(j)})||!fe.xhr_url_inclusion_patterns.some(function(te){return te.test(j)}))}},{key:"_shouldAddHeadersToRequest",value:function(O,Y){if(!O||!Y)return!1;var j=O.options();return!j.disabled&&!j.xhr_url_header_exclusion_patterns.some(function(fe){return fe.test(Y)})&&!!j.xhr_url_header_inclusion_patterns.some(function(fe){return fe.test(Y)})}}],R&&function y(m,I){for(var R=0;R<I.length;R++){var O=I[R];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(m,O.key,O)}}(I.prototype,R),Object.defineProperty(I,"prototype",{writable:!1}),m}();n.exports=new u},981:(n,v,h)=>{"use strict";var A=h(843),M=function(){function T(){(function(S,l){if(!(S instanceof l))throw new TypeError("Cannot call a class as a function")})(this,T),this._enabled=!1,this._tracer=null,this._optionsCb=this._handleOptions.bind(this),this._logAddedCb=this._handleLogAdded.bind(this)}var E,y;return E=T,(y=[{key:"name",value:function(){return"log_to_console"}},{key:"addOptions",value:function(S){S.addOption("log_to_console",{type:"bool",defaultValue:!1}),S.on("options",this._optionsCb)}},{key:"start",value:function(S,l){this._tracer=S}},{key:"stop",value:function(){this._tracer.removeListener("options",this._optionsCb)}},{key:"_handleOptions",value:function(S,l,s){var u=l.log_to_console;this._enabled!==u&&(this._enabled=u,this._enabled?s.on("log_added",this._logAddedCb):s.removeListener("log_added",this._logAddedCb))}},{key:"_handleLogAdded",value:function(S){var l=A.LOG_STRING_TO_LEVEL[S.level],s=S.message;if(s){var u=S.payload_json;if(u)try{u=JSON.parse(u)}catch{}switch(l){case A.LOG_ERROR:case A.LOG_FATAL:void 0!==u?console.error(s,u):console.error(s);break;case A.LOG_WARN:void 0!==u?console.warn(s,u):console.warn(s);break;default:void 0!==u?console.log(s,u):console.log(s)}}}}])&&function f(T,E){for(var y=0;y<E.length;y++){var S=E[y];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(T,S.key,S)}}(E.prototype,y),Object.defineProperty(E,"prototype",{writable:!1}),T}();n.exports=new M},729:n=>{"use strict";var v=Object.prototype.hasOwnProperty,h="~";function f(){}function A(y,S,l){this.fn=y,this.context=S,this.once=l||!1}function M(y,S,l,s,u){if("function"!=typeof l)throw new TypeError("The listener must be a function");var m=new A(l,s||y,u),I=h?h+S:S;return y._events[I]?y._events[I].fn?y._events[I]=[y._events[I],m]:y._events[I].push(m):(y._events[I]=m,y._eventsCount++),y}function T(y,S){0==--y._eventsCount?y._events=new f:delete y._events[S]}function E(){this._events=new f,this._eventsCount=0}Object.create&&(f.prototype=Object.create(null),(new f).__proto__||(h=!1)),E.prototype.eventNames=function(){var y,S,l=[];if(0===this._eventsCount)return l;for(S in y=this._events)v.call(y,S)&&l.push(h?S.slice(1):S);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(y)):l},E.prototype.listeners=function(y){var l=this._events[h?h+y:y];if(!l)return[];if(l.fn)return[l.fn];for(var s=0,u=l.length,m=new Array(u);s<u;s++)m[s]=l[s].fn;return m},E.prototype.listenerCount=function(y){var l=this._events[h?h+y:y];return l?l.fn?1:l.length:0},E.prototype.emit=function(y,S,l,s,u,m){var I=h?h+y:y;if(!this._events[I])return!1;var R,O,Y=this._events[I],j=arguments.length;if(Y.fn){switch(Y.once&&this.removeListener(y,Y.fn,void 0,!0),j){case 1:return Y.fn.call(Y.context),!0;case 2:return Y.fn.call(Y.context,S),!0;case 3:return Y.fn.call(Y.context,S,l),!0;case 4:return Y.fn.call(Y.context,S,l,s),!0;case 5:return Y.fn.call(Y.context,S,l,s,u),!0;case 6:return Y.fn.call(Y.context,S,l,s,u,m),!0}for(O=1,R=new Array(j-1);O<j;O++)R[O-1]=arguments[O];Y.fn.apply(Y.context,R)}else{var fe,te=Y.length;for(O=0;O<te;O++)switch(Y[O].once&&this.removeListener(y,Y[O].fn,void 0,!0),j){case 1:Y[O].fn.call(Y[O].context);break;case 2:Y[O].fn.call(Y[O].context,S);break;case 3:Y[O].fn.call(Y[O].context,S,l);break;case 4:Y[O].fn.call(Y[O].context,S,l,s);break;default:if(!R)for(fe=1,R=new Array(j-1);fe<j;fe++)R[fe-1]=arguments[fe];Y[O].fn.apply(Y[O].context,R)}}return!0},E.prototype.on=function(y,S,l){return M(this,y,S,l,!1)},E.prototype.once=function(y,S,l){return M(this,y,S,l,!0)},E.prototype.removeListener=function(y,S,l,s){var u=h?h+y:y;if(!this._events[u])return this;if(!S)return T(this,u),this;var m=this._events[u];if(m.fn)m.fn!==S||s&&!m.once||l&&m.context!==l||T(this,u);else{for(var I=0,R=[],O=m.length;I<O;I++)(m[I].fn!==S||s&&!m[I].once||l&&m[I].context!==l)&&R.push(m[I]);R.length?this._events[u]=1===R.length?R[0]:R:T(this,u)}return this},E.prototype.removeAllListeners=function(y){var S;return y?this._events[S=h?h+y:y]&&T(this,S):(this._events=new f,this._eventsCount=0),this},E.prototype.off=E.prototype.removeListener,E.prototype.addListener=E.prototype.on,E.prefixed=h,E.EventEmitter=E,n.exports=E},36:n=>{function v(A,M,T){for(var E=[],y=Math.max(A.length,M.length),S=0,l=0;l<y||S;){var s=S+(l<A.length?A[l]:0)+(l<M.length?M[l]:0);E.push(s%T),S=Math.floor(s/T),l++}return E}function h(A,M,T){if(A<0)return null;if(0==A)return[];for(var E=[],y=M;1&A&&(E=v(E,y,T)),0!=(A>>=1);)y=v(y,y,T);return E}function f(A,M,T){var E=function(u,m){for(var I=u.split(""),R=[],O=I.length-1;O>=0;O--){var Y=parseInt(I[O],m);if(isNaN(Y))return null;R.push(Y)}return R}(A,M);if(null===E)return null;for(var y=[],S=[1],l=0;l<E.length;l++)E[l]&&(y=v(y,h(E[l],S,T),T)),S=h(M,S,T);var s="";for(l=y.length-1;l>=0;l--)s+=y[l].toString(T);return""===s&&(s="0"),s}n.exports={hexToDec:function(A){return"0x"===A.substring(0,2)&&(A=A.substring(2)),f(A=A.toLowerCase(),16,10)},decToHex:function(A,M){var T=M&&!1===M.prefix,E=f(A,10,16);return E?T?E:"0x"+E:null}}},188:(n,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(h){this.buffer=h}},202:(n,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.FORMAT_BINARY="binary",v.FORMAT_TEXT_MAP="text_map",v.FORMAT_HTTP_HEADERS="http_headers",v.REFERENCE_CHILD_OF="child_of",v.REFERENCE_FOLLOWS_FROM="follows_from"},546:(n,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.SPAN_KIND="span.kind",v.SPAN_KIND_RPC_CLIENT="client",v.SPAN_KIND_RPC_SERVER="server",v.SPAN_KIND_MESSAGING_PRODUCER="producer",v.SPAN_KIND_MESSAGING_CONSUMER="consumer",v.ERROR="error",v.COMPONENT="component",v.SAMPLING_PRIORITY="sampling.priority",v.PEER_SERVICE="peer.service",v.PEER_HOSTNAME="peer.hostname",v.PEER_ADDRESS="peer.address",v.PEER_HOST_IPV4="peer.ipv4",v.PEER_HOST_IPV6="peer.ipv6",v.PEER_PORT="peer.port",v.HTTP_URL="http.url",v.HTTP_METHOD="http.method",v.HTTP_STATUS_CODE="http.status_code",v.MESSAGE_BUS_DESTINATION="message_bus.destination",v.DB_INSTANCE="db.instance",v.DB_STATEMENT="db.statement",v.DB_TYPE="db.type",v.DB_USER="db.user"},929:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var f=h(202),A=h(963),M=h(81);v.childOf=function(T){return T instanceof M.default&&(T=T.context()),new A.default(f.REFERENCE_CHILD_OF,T)},v.followsFrom=function(T){return T instanceof M.default&&(T=T.context()),new A.default(f.REFERENCE_FOLLOWS_FROM,T)}},32:function(n,v,h){"use strict";var f,A=this&&this.__extends||(f=function(l,s){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,m){u.__proto__=m}||function(u,m){for(var I in m)m.hasOwnProperty(I)&&(u[I]=m[I])})(l,s)},function(l,s){function u(){this.constructor=l}f(l,s),l.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(v,"__esModule",{value:!0});var M=h(266),T=new M.default,E=null,y=function(l){function s(){return null!==l&&l.apply(this,arguments)||this}return A(s,l),s.prototype.startSpan=function(){var u=E||T;return u.startSpan.apply(u,arguments)},s.prototype.inject=function(){var u=E||T;return u.inject.apply(u,arguments)},s.prototype.extract=function(){var u=E||T;return u.extract.apply(u,arguments)},s}(M.default),S=new y;v.initGlobalTracer=function(l){E=l},v.globalTracer=function(){return S}},725:(n,v,h)=>{"use strict";function f(u){for(var m in u)v.hasOwnProperty(m)||(v[m]=u[m])}Object.defineProperty(v,"__esModule",{value:!0});var A=h(188);v.BinaryCarrier=A.default;var M=h(546);v.Tags=M;var T=h(980),E=h(963);v.Reference=E.default;var y=h(81);v.Span=y.default;var S=h(402);v.SpanContext=S.default;var l=h(266);v.Tracer=l.Tracer;var s=h(292);v.MockTracer=s.MockTracer,f(h(32)),f(h(202)),f(h(929)),T.initialize()},292:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var f=h(2);v.MockContext=f.default;var A=h(857);v.MockSpan=A.default;var M=h(817);v.MockTracer=M.default},2:function(n,v,h){"use strict";var f,A=this&&this.__extends||(f=function(T,E){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,S){y.__proto__=S}||function(y,S){for(var l in S)S.hasOwnProperty(l)&&(y[l]=S[l])})(T,E)},function(T,E){function y(){this.constructor=T}f(T,E),T.prototype=null===E?Object.create(E):(y.prototype=E.prototype,new y)});Object.defineProperty(v,"__esModule",{value:!0});var M=function(T){function E(y){var S=T.call(this)||this;return S._span=y,S}return A(E,T),E.prototype.span=function(){return this._span},E}(h(402).SpanContext);v.MockContext=M,v.default=M},901:(n,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var h=function(){function f(A){var M=this;this.spans=A,this.spansByUUID={},this.spansByTag={},this.debugSpans=[],this.unfinishedSpans=[],A.forEach(function(T){0===T._finishMs&&M.unfinishedSpans.push(T),M.spansByUUID[T.uuid()]=T,M.debugSpans.push(T.debug());var E=T.tags();Object.keys(E).forEach(function(y){var S=E[y];M.spansByTag[y]=M.spansByTag[y]||{},M.spansByTag[y][S]=M.spansByTag[y][S]||[],M.spansByTag[y][S].push(T)})})}return f.prototype.firstSpanWithTagValue=function(A,M){var T=this.spansByTag[A];if(!T)return null;var E=T[M];return E?E[0]:null},f}();v.MockReport=h,v.default=h},857:function(n,v,h){"use strict";var f,A=this&&this.__extends||(f=function(y,S){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,s){l.__proto__=s}||function(l,s){for(var u in s)s.hasOwnProperty(u)&&(l[u]=s[u])})(y,S)},function(y,S){function l(){this.constructor=y}f(y,S),y.prototype=null===S?Object.create(S):(l.prototype=S.prototype,new l)});Object.defineProperty(v,"__esModule",{value:!0});var M=h(725),T=h(2),E=function(y){function S(l){var s=y.call(this)||this;return s._mockTracer=l,s._uuid=s._generateUUID(),s._startMs=Date.now(),s._finishMs=0,s._operationName="",s._tags={},s._logs=[],s}return A(S,y),S.prototype._context=function(){return new T.default(this)},S.prototype._setOperationName=function(l){this._operationName=l},S.prototype._addTags=function(l){for(var s=0,u=Object.keys(l);s<u.length;s++){var m=u[s];this._tags[m]=l[m]}},S.prototype._log=function(l,s){this._logs.push({fields:l,timestamp:s})},S.prototype._finish=function(l){this._finishMs=l||Date.now()},S.prototype.uuid=function(){return this._uuid},S.prototype.operationName=function(){return this._operationName},S.prototype.durationMs=function(){return this._finishMs-this._startMs},S.prototype.tags=function(){return this._tags},S.prototype.tracer=function(){return this._mockTracer},S.prototype._generateUUID=function(){return""+("00000000"+Math.abs(4294967295*Math.random()|0).toString(16)).substr(-8)+("00000000"+Math.abs(4294967295*Math.random()|0).toString(16)).substr(-8)},S.prototype.addReference=function(l){},S.prototype.debug=function(){var l={uuid:this._uuid,operation:this._operationName,millis:[this._finishMs-this._startMs,this._startMs,this._finishMs]};return Object.keys(this._tags).length&&(l.tags=this._tags),l},S}(M.Span);v.MockSpan=E,v.default=E},817:function(n,v,h){"use strict";var f,A=this&&this.__extends||(f=function(S,l){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var m in u)u.hasOwnProperty(m)&&(s[m]=u[m])})(S,l)},function(S,l){function s(){this.constructor=S}f(S,l),S.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)});Object.defineProperty(v,"__esModule",{value:!0});var M=h(725),T=h(901),E=h(857),y=function(S){function l(){var s=S.call(this)||this;return s._spans=[],s}return A(l,S),l.prototype._startSpan=function(s,u){var m=this._allocSpan();if(m.setOperationName(s),this._spans.push(m),u.references)for(var I=0,R=u.references;I<R.length;I++)m.addReference(R[I]);return m._startStack=(new Error).stack,m},l.prototype._inject=function(s,u,m){throw new Error("NOT YET IMPLEMENTED")},l.prototype._extract=function(s,u){throw new Error("NOT YET IMPLEMENTED")},l.prototype._allocSpan=function(){return new E.default(this)},l.prototype.clear=function(){this._spans=[]},l.prototype.report=function(){return new T.default(this._spans)},l}(M.Tracer);v.MockTracer=y,v.default=y},980:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var f=h(81),A=h(402),M=h(266);v.tracer=null,v.spanContext=null,v.span=null,v.initialize=function(){v.tracer=new M.default,v.span=new f.default,v.spanContext=new A.default}},963:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var f=h(81),A=function(){function M(T,E){this._type=T,this._referencedContext=E instanceof f.default?E.context():E}return M.prototype.type=function(){return this._type},M.prototype.referencedContext=function(){return this._referencedContext},M}();v.default=A},81:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var f=h(980),A=function(){function M(){}return M.prototype.context=function(){return this._context()},M.prototype.tracer=function(){return this._tracer()},M.prototype.setOperationName=function(T){return this._setOperationName(T),this},M.prototype.setBaggageItem=function(T,E){return this._setBaggageItem(T,E),this},M.prototype.getBaggageItem=function(T){return this._getBaggageItem(T)},M.prototype.setTag=function(T,E){var y;return this._addTags(((y={})[T]=E,y)),this},M.prototype.addTags=function(T){return this._addTags(T),this},M.prototype.log=function(T,E){return this._log(T,E),this},M.prototype.logEvent=function(T,E){return this._log({event:T,payload:E})},M.prototype.finish=function(T){this._finish(T)},M.prototype._context=function(){return f.spanContext},M.prototype._tracer=function(){return f.tracer},M.prototype._setOperationName=function(T){},M.prototype._setBaggageItem=function(T,E){},M.prototype._getBaggageItem=function(T){},M.prototype._addTags=function(T){},M.prototype._log=function(T,E){},M.prototype._finish=function(T){},M}();v.Span=A,v.default=A},402:(n,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var h=function(){function f(){}return f.prototype.toTraceId=function(){return""},f.prototype.toSpanId=function(){return""},f}();v.SpanContext=h,v.default=h},266:(n,v,h)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var f=h(929),A=h(980),M=h(81),T=function(){function E(){}return E.prototype.startSpan=function(y,S){if(void 0===S&&(S={}),S.childOf){var l=f.childOf(S.childOf);S.references?S.references.push(l):S.references=[l],delete S.childOf}return this._startSpan(y,S)},E.prototype.inject=function(y,S,l){return y instanceof M.default&&(y=y.context()),this._inject(y,S,l)},E.prototype.extract=function(y,S){return this._extract(y,S)},E.prototype._startSpan=function(y,S){return A.span},E.prototype._inject=function(y,S,l){},E.prototype._extract=function(y,S){return A.spanContext},E}();v.Tracer=T,v.default=T},147:n=>{"use strict";n.exports=JSON.parse('{"name":"lightstep-tracer","version":"0.33.0-no-protobuf","main":"index.js","types":"index.d.ts","browser":"browser.js","engines":{"node":">=12.0.0"},"scripts":{"release":"./scripts/release.sh","release:prepare":"./scripts/release-prepare.sh","test":"rm -f test/results/*.json && node node_modules/mocha/bin/mocha -c test/unittest_node.js","version":"make build && git add -A dist"},"license":"MIT","repository":{"type":"git","url":"http://github.com/lightstep/lightstep-tracer-javascript.git"},"dependencies":{"async":"^3.2.3","eventemitter3":"4.0.7","hex2dec":"1.1.2","opentracing":"^0.14.7","source-map-support":"0.5.21","thrift":"^0.16.0"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.17.10","@babel/plugin-proposal-object-rest-spread":"^7.17.3","@babel/plugin-syntax-object-rest-spread":"^7.8.3","@babel/plugin-transform-arrow-functions":"^7.16.7","@babel/plugin-transform-block-scoped-functions":"^7.16.7","@babel/plugin-transform-block-scoping":"^7.16.7","@babel/plugin-transform-classes":"^7.16.7","@babel/plugin-transform-computed-properties":"^7.16.7","@babel/plugin-transform-destructuring":"^7.17.7","@babel/plugin-transform-duplicate-keys":"^7.16.7","@babel/plugin-transform-literals":"^7.16.7","@babel/plugin-transform-modules-commonjs":"^7.17.9","@babel/plugin-transform-object-super":"^7.16.7","@babel/plugin-transform-parameters":"^7.16.7","@babel/plugin-transform-spread":"^7.16.7","@babel/plugin-transform-sticky-regex":"^7.16.7","@babel/plugin-transform-template-literals":"^7.16.7","@babel/plugin-transform-unicode-regex":"^7.16.7","@babel/preset-env":"^7.17.10","babel-loader":"^8.2.5","babel-plugin-add-module-exports":"^1.0.4","chai":"4.3.6","clone":"2.1.2","colors":"1.4.0","core-js":"^3.22.4","eslint":"^8.14.0","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.26.0","eslint-plugin-jsx-a11y":"^6.5.1","eslint-plugin-react":"^7.29.4","express":"^4.18.1","fetch-mock":"^9.11.0","mocha":"^10.0.0","nyc":"^15.1.0","package-json":"^7.0.0","regenerator-runtime":"^0.13.9","shelljs":"^0.8.5","sinon":"^13.0.2","sprintf-js":"1.1.2","underscore":"1.13.3","watch-trigger":"0.0.10","webpack":"^5.72.0","webpack-cli":"^4.9.2"}}')}},c={};function r(n){var v=c[n];if(void 0!==v)return v.exports;var h=c[n]={exports:{}};return z[n].call(h.exports,h,h.exports,r),h.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch{if("object"==typeof window)return window}}(),r(410)})()},26875:function(je,z,c){var r;je=c.nmd(je),function(){var n,A="Expected a function",T="__lodash_hash_undefined__",y="__lodash_placeholder__",ge=1/0,Xe=9007199254740991,xe=4294967295,ee=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],W="[object Arguments]",Pe="[object Array]",oe="[object Boolean]",Le="[object Date]",ye="[object Error]",Ie="[object Function]",at="[object GeneratorFunction]",K="[object Map]",ve="[object Number]",pe="[object Object]",Qe="[object Promise]",Vt="[object RegExp]",de="[object Set]",J="[object String]",$e="[object Symbol]",Gt="[object WeakMap]",kn="[object ArrayBuffer]",Un="[object DataView]",ni="[object Float32Array]",qe="[object Float64Array]",mi="[object Int8Array]",Bi="[object Int16Array]",_i="[object Int32Array]",Bn="[object Uint8Array]",jn="[object Uint8ClampedArray]",It="[object Uint16Array]",vn="[object Uint32Array]",Vn=/\b__p \+= '';/g,ht=/\b(__p \+=) '' \+/g,it=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ct=/&(?:amp|lt|gt|quot|#39);/g,Et=/[&<>"']/g,We=RegExp(Ct.source),bt=RegExp(Et.source),gt=/<%-([\s\S]+?)%>/g,wt=/<%([\s\S]+?)%>/g,rn=/<%=([\s\S]+?)%>/g,In=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mi=/^\w*$/,En=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tn=/[\\^$.*+?()[\]{}|]/g,Cn=RegExp(Tn.source),Wn=/^\s+/,Oi=/\s/,Qn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fi=/\{\n\/\* \[wrapped with (.+)\] \*/,Ai=/,? & /,ln=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Mn=/[()=,{}\[\]\/\s]/,bi=/\\(\\)?/g,Hi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Mr=/\w*$/,Wr=/^[-+]0x[0-9a-f]+$/i,uo=/^0b[01]+$/i,Nr=/^\[object .+?Constructor\]$/,ss=/^0o[0-7]+$/i,Cs=/^(?:0|[1-9]\d*)$/,Pn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pi=/($^)/,li=/['\n\r\u2028\u2029\\]/g,er="\\ud800-\\udfff",xi="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fi="\\u2700-\\u27bf",Si="a-z\\xdf-\\xf6\\xf8-\\xff",br="A-Z\\xc0-\\xd6\\xd8-\\xde",ro="\\ufe0e\\ufe0f",Oo="\\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",Ao="["+er+"]",Co="["+Oo+"]",Lo="["+xi+"]",ao="\\d+",Ar="["+fi+"]",sn="["+Si+"]",Gn="[^"+er+Oo+ao+fi+Si+br+"]",$n="\\ud83c[\\udffb-\\udfff]",Wi="[^"+er+"]",Ti="(?:\\ud83c[\\udde6-\\uddff]){2}",Gi="[\\ud800-\\udbff][\\udc00-\\udfff]",Tr="["+br+"]",zo="(?:"+sn+"|"+Gn+")",as="(?:"+Tr+"|"+Gn+")",ps="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Hs="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Qr="(?:"+Lo+"|"+$n+")?",ca="["+ro+"]?",xs=ca+Qr+"(?:\\u200d(?:"+[Wi,Ti,Gi].join("|")+")"+ca+Qr+")*",hl="(?:"+[Ar,Ti,Gi].join("|")+")"+xs,Bs="(?:"+[Wi+Lo+"?",Lo,Ti,Gi,Ao].join("|")+")",Oa=RegExp("['\u2019]","g"),qs=RegExp(Lo,"g"),Er=RegExp($n+"(?="+$n+")|"+Bs+xs,"g"),js=RegExp([Tr+"?"+sn+"+"+ps+"(?="+[Co,Tr,"$"].join("|")+")",as+"+"+Hs+"(?="+[Co,Tr+zo,"$"].join("|")+")",Tr+"?"+zo+"+"+ps,Tr+"+"+Hs,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ao,hl].join("|"),"g"),ea=RegExp("[\\u200d"+er+xi+ro+"]"),Zo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vs=["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"],Ys=-1,ho={};ho[ni]=ho[qe]=ho[mi]=ho[Bi]=ho[_i]=ho[Bn]=ho[jn]=ho[It]=ho[vn]=!0,ho[W]=ho[Pe]=ho[kn]=ho[oe]=ho[Un]=ho[Le]=ho[ye]=ho[Ie]=ho[K]=ho[ve]=ho[pe]=ho[Vt]=ho[de]=ho[J]=ho[Gt]=!1;var Bo={};Bo[W]=Bo[Pe]=Bo[kn]=Bo[Un]=Bo[oe]=Bo[Le]=Bo[ni]=Bo[qe]=Bo[mi]=Bo[Bi]=Bo[_i]=Bo[K]=Bo[ve]=Bo[pe]=Bo[Vt]=Bo[de]=Bo[J]=Bo[$e]=Bo[Bn]=Bo[jn]=Bo[It]=Bo[vn]=!0,Bo[ye]=Bo[Ie]=Bo[Gt]=!1;var $s={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fa=parseFloat,sa=parseInt,Ba="object"==typeof global&&global&&global.Object===Object&&global,Ml="object"==typeof self&&self&&self.Object===Object&&self,_s=Ba||Ml||Function("return this")(),wa=z&&!z.nodeType&&z,To=wa&&je&&!je.nodeType&&je,po=To&&To.exports===wa,ta=po&&Ba.process,Ls=function(){try{return To&&To.require&&To.require("util").types||ta&&ta.binding&&ta.binding("util")}catch{}}(),zs=Ls&&Ls.isArrayBuffer,Kt=Ls&&Ls.isDate,Zn=Ls&&Ls.isMap,Ii=Ls&&Ls.isRegExp,ei=Ls&&Ls.isSet,di=Ls&&Ls.isTypedArray;function wi(zn,pi,Kn){switch(Kn.length){case 0:return zn.call(pi);case 1:return zn.call(pi,Kn[0]);case 2:return zn.call(pi,Kn[0],Kn[1]);case 3:return zn.call(pi,Kn[0],Kn[1],Kn[2])}return zn.apply(pi,Kn)}function Ri(zn,pi,Kn,cr){for(var ji=-1,jr=null==zn?0:zn.length;++ji<jr;){var No=zn[ji];pi(cr,No,Kn(No),zn)}return cr}function Nt(zn,pi){for(var Kn=-1,cr=null==zn?0:zn.length;++Kn<cr&&!1!==pi(zn[Kn],Kn,zn););return zn}function Dt(zn,pi){for(var Kn=null==zn?0:zn.length;Kn--&&!1!==pi(zn[Kn],Kn,zn););return zn}function Xt(zn,pi){for(var Kn=-1,cr=null==zn?0:zn.length;++Kn<cr;)if(!pi(zn[Kn],Kn,zn))return!1;return!0}function St(zn,pi){for(var Kn=-1,cr=null==zn?0:zn.length,ji=0,jr=[];++Kn<cr;){var No=zn[Kn];pi(No,Kn,zn)&&(jr[ji++]=No)}return jr}function Sn(zn,pi){return!(null==zn||!zn.length)&&Os(zn,pi,0)>-1}function Jn(zn,pi,Kn){for(var cr=-1,ji=null==zn?0:zn.length;++cr<ji;)if(Kn(pi,zn[cr]))return!0;return!1}function oi(zn,pi){for(var Kn=-1,cr=null==zn?0:zn.length,ji=Array(cr);++Kn<cr;)ji[Kn]=pi(zn[Kn],Kn,zn);return ji}function Ji(zn,pi){for(var Kn=-1,cr=pi.length,ji=zn.length;++Kn<cr;)zn[ji+Kn]=pi[Kn];return zn}function Ei(zn,pi,Kn,cr){var ji=-1,jr=null==zn?0:zn.length;for(cr&&jr&&(Kn=zn[++ji]);++ji<jr;)Kn=pi(Kn,zn[ji],ji,zn);return Kn}function Ee(zn,pi,Kn,cr){var ji=null==zn?0:zn.length;for(cr&&ji&&(Kn=zn[--ji]);ji--;)Kn=pi(Kn,zn[ji],ji,zn);return Kn}function Pr(zn,pi){for(var Kn=-1,cr=null==zn?0:zn.length;++Kn<cr;)if(pi(zn[Kn],Kn,zn))return!0;return!1}var Ra=mt("length");function Ns(zn,pi,Kn){var cr;return Kn(zn,function(ji,jr,No){if(pi(ji,jr,No))return cr=jr,!1}),cr}function ba(zn,pi,Kn,cr){for(var ji=zn.length,jr=Kn+(cr?1:-1);cr?jr--:++jr<ji;)if(pi(zn[jr],jr,zn))return jr;return-1}function Os(zn,pi,Kn){return pi==pi?function Cr(zn,pi,Kn){for(var cr=Kn-1,ji=zn.length;++cr<ji;)if(zn[cr]===pi)return cr;return-1}(zn,pi,Kn):ba(zn,oa,Kn)}function $i(zn,pi,Kn,cr){for(var ji=Kn-1,jr=zn.length;++ji<jr;)if(cr(zn[ji],pi))return ji;return-1}function oa(zn){return zn!=zn}function Ft(zn,pi){var Kn=null==zn?0:zn.length;return Kn?lr(zn,pi)/Kn:NaN}function mt(zn){return function(pi){return null==pi?n:pi[zn]}}function nn(zn){return function(pi){return null==zn?n:zn[pi]}}function kt(zn,pi,Kn,cr,ji){return ji(zn,function(jr,No,Ur){Kn=cr?(cr=!1,jr):pi(Kn,jr,No,Ur)}),Kn}function lr(zn,pi){for(var Kn,cr=-1,ji=zn.length;++cr<ji;){var jr=pi(zn[cr]);jr!==n&&(Kn=Kn===n?jr:Kn+jr)}return Kn}function to(zn,pi){for(var Kn=-1,cr=Array(zn);++Kn<zn;)cr[Kn]=pi(Kn);return cr}function xo(zn){return zn&&zn.slice(0,ut(zn)+1).replace(Wn,"")}function Go(zn){return function(pi){return zn(pi)}}function Ui(zn,pi){return oi(pi,function(Kn){return zn[Kn]})}function ns(zn,pi){return zn.has(pi)}function La(zn,pi){for(var Kn=-1,cr=zn.length;++Kn<cr&&Os(pi,zn[Kn],0)>-1;);return Kn}function Ps(zn,pi){for(var Kn=zn.length;Kn--&&Os(pi,zn[Kn],0)>-1;);return Kn}var pl=nn({\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"}),Na=nn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Ko(zn){return"\\"+$s[zn]}function pr(zn){return ea.test(zn)}function wr(zn){var pi=-1,Kn=Array(zn.size);return zn.forEach(function(cr,ji){Kn[++pi]=[ji,cr]}),Kn}function ys(zn,pi){return function(Kn){return zn(pi(Kn))}}function fo(zn,pi){for(var Kn=-1,cr=zn.length,ji=0,jr=[];++Kn<cr;){var No=zn[Kn];(No===pi||No===y)&&(zn[Kn]=y,jr[ji++]=Kn)}return jr}function Ts(zn){var pi=-1,Kn=Array(zn.size);return zn.forEach(function(cr){Kn[++pi]=cr}),Kn}function xt(zn){return pr(zn)?function si(zn){for(var pi=Er.lastIndex=0;Er.test(zn);)++pi;return pi}(zn):Ra(zn)}function Ht(zn){return pr(zn)?function vi(zn){return zn.match(Er)||[]}(zn):function Ds(zn){return zn.split("")}(zn)}function ut(zn){for(var pi=zn.length;pi--&&Oi.test(zn.charAt(pi)););return pi}var cn=nn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),or=function zn(pi){var x,Kn=(pi=null==pi?_s:or.defaults(_s.Object(),pi,or.pick(_s,vs))).Array,cr=pi.Date,ji=pi.Error,jr=pi.Function,No=pi.Math,Ur=pi.Object,go=pi.RegExp,Xr=pi.String,Ks=pi.TypeError,Ca=Kn.prototype,ds=Ur.prototype,Xa=pi["__core-js_shared__"],fs=jr.prototype.toString,Ho=ds.hasOwnProperty,Ea=0,Al=(x=/[^.]+$/.exec(Xa&&Xa.keys&&Xa.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",Ma=ds.toString,Vo=fs.call(Ur),Ki=_s._,Uo=go("^"+fs.call(Ho).replace(Tn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fl=po?pi.Buffer:n,gl=pi.Symbol,Tl=pi.Uint8Array,rd=fl?fl.allocUnsafe:n,Fl=ys(Ur.getPrototypeOf,Ur),na=Ur.create,Va=ds.propertyIsEnumerable,Kr=Ca.splice,ke=gl?gl.isConcatSpreadable:n,_=gl?gl.iterator:n,L=gl?gl.toStringTag:n,D=function(){try{var x=ka(Ur,"defineProperty");return x({},"",{}),x}catch{}}(),B=pi.clearTimeout!==_s.clearTimeout&&pi.clearTimeout,re=cr&&cr.now!==_s.Date.now&&cr.now,he=pi.setTimeout!==_s.setTimeout&&pi.setTimeout,Se=No.ceil,we=No.floor,tt=Ur.getOwnPropertySymbols,rt=fl?fl.isBuffer:n,Ot=pi.isFinite,At=Ca.join,Ke=ys(Ur.keys,Ur),Ye=No.max,vt=No.min,Be=cr.now,_t=pi.parseInt,pt=No.random,$t=Ca.reverse,hn=ka(pi,"DataView"),mn=ka(pi,"Map"),yn=ka(pi,"Promise"),ci=ka(pi,"Set"),yi=ka(pi,"WeakMap"),Bt=ka(Ur,"create"),Rt=yi&&new yi,fn={},An=Fd(hn),Nn=Fd(mn),Rn=Fd(yn),Hn=Fd(ci),Xn=Fd(yi),ai=gl?gl.prototype:n,Ni=ai?ai.valueOf:n,Zr=ai?ai.toString:n;function en(x){if(Ua(x)&&!qo(x)&&!(x instanceof Yr)){if(x instanceof mr)return x;if(Ho.call(x,"__wrapped__"))return vd(x)}return new mr(x)}var Ir=function(){function x(){}return function(k){if(!Ia(k))return{};if(na)return na(k);x.prototype=k;var _e=new x;return x.prototype=n,_e}}();function Do(){}function mr(x,k){this.__wrapped__=x,this.__actions__=[],this.__chain__=!!k,this.__index__=0,this.__values__=n}function Yr(x){this.__wrapped__=x,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=xe,this.__views__=[]}function gs(x){var k=-1,_e=null==x?0:x.length;for(this.clear();++k<_e;){var lt=x[k];this.set(lt[0],lt[1])}}function no(x){var k=-1,_e=null==x?0:x.length;for(this.clear();++k<_e;){var lt=x[k];this.set(lt[0],lt[1])}}function Ul(x){var k=-1,_e=null==x?0:x.length;for(this.clear();++k<_e;){var lt=x[k];this.set(lt[0],lt[1])}}function ze(x){var k=-1,_e=null==x?0:x.length;for(this.__data__=new Ul;++k<_e;)this.add(x[k])}function Mt(x){var k=this.__data__=new no(x);this.size=k.size}function mo(x,k){var _e=qo(x),lt=!_e&&xu(x),Wt=!_e&&!lt&&Gd(x),an=!_e&&!lt&&!Wt&&jd(x),xn=_e||lt||Wt||an,qn=xn?to(x.length,Xr):[],hi=qn.length;for(var qi in x)(k||Ho.call(x,qi))&&(!xn||!("length"==qi||Wt&&("offset"==qi||"parent"==qi)||an&&("buffer"==qi||"byteLength"==qi||"byteOffset"==qi)||cc(qi,hi)))&&qn.push(qi);return qn}function Jo(x){var k=x.length;return k?x[uu(0,k-1)]:n}function ko(x,k){return pp(yl(x),sd(k,0,x.length))}function ya(x){return pp(yl(x))}function ra(x,k,_e){(_e!==n&&!tl(x[k],_e)||_e===n&&!(k in x))&&$l(x,k,_e)}function kr(x,k,_e){var lt=x[k];(!Ho.call(x,k)||!tl(lt,_e)||_e===n&&!(k in x))&&$l(x,k,_e)}function Dl(x,k){for(var _e=x.length;_e--;)if(tl(x[_e][0],k))return _e;return-1}function Qa(x,k,_e,lt){return Ga(x,function(Wt,an,xn){k(lt,Wt,_e(Wt),xn)}),lt}function zd(x,k){return x&&bc(k,Wa(k),x)}function $l(x,k,_e){"__proto__"==k&&D?D(x,k,{configurable:!0,enumerable:!0,value:_e,writable:!0}):x[k]=_e}function ku(x,k){for(var _e=-1,lt=k.length,Wt=Kn(lt),an=null==x;++_e<lt;)Wt[_e]=an?n:rm(x,k[_e]);return Wt}function sd(x,k,_e){return x==x&&(_e!==n&&(x=x<=_e?x:_e),k!==n&&(x=x>=k?x:k)),x}function vl(x,k,_e,lt,Wt,an){var xn,qn=1&k,hi=2&k,qi=4&k;if(_e&&(xn=Wt?_e(x,lt,Wt,an):_e(x)),xn!==n)return xn;if(!Ia(x))return x;var tr=qo(x);if(tr){if(xn=function Vs(x){var k=x.length,_e=new x.constructor(k);return k&&"string"==typeof x[0]&&Ho.call(x,"index")&&(_e.index=x.index,_e.input=x.input),_e}(x),!qn)return yl(x,xn)}else{var sr=ua(x),Rr=sr==Ie||sr==at;if(Gd(x))return ip(x,qn);if(sr==pe||sr==W||Rr&&!Wt){if(xn=hi||Rr?{}:cf(x),!qn)return hi?function nf(x,k){return bc(x,Mc(x),k)}(x,function Nu(x,k){return x&&bc(k,Ll(k),x)}(xn,x)):function tf(x,k){return bc(x,Dh(x),k)}(x,zd(xn,x))}else{if(!Bo[sr])return Wt?x:{};xn=function ap(x,k,_e){var lt=x.constructor;switch(k){case kn:return bh(x);case oe:case Le:return new lt(+x);case Un:return function hg(x,k){var _e=k?bh(x.buffer):x.buffer;return new x.constructor(_e,x.byteOffset,x.byteLength)}(x,_e);case ni:case qe:case mi:case Bi:case _i:case Bn:case jn:case It:case vn:return fu(x,_e);case K:return new lt;case ve:case J:return new lt(x);case Vt:return function rp(x){var k=new x.constructor(x.source,Mr.exec(x));return k.lastIndex=x.lastIndex,k}(x);case de:return new lt;case $e:return function op(x){return Ni?Ur(Ni.call(x)):{}}(x)}}(x,sr,qn)}}an||(an=new Mt);var zr=an.get(x);if(zr)return zr;an.set(x,xn),Gp(x)?x.forEach(function(qr){xn.add(vl(qr,k,_e,qr,x,an))}):Qh(x)&&x.forEach(function(qr,rs){xn.set(rs,vl(qr,k,_e,rs,x,an))});var Io=tr?n:(qi?hi?xa:Xl:hi?Ll:Wa)(x);return Nt(Io||x,function(qr,rs){Io&&(qr=x[rs=qr]),kr(xn,rs,vl(qr,k,_e,rs,x,an))}),xn}function ad(x,k,_e){var lt=_e.length;if(null==x)return!lt;for(x=Ur(x);lt--;){var Wt=_e[lt],xn=x[Wt];if(xn===n&&!(Wt in x)||!(0,k[Wt])(xn))return!1}return!0}function Bl(x,k,_e){if("function"!=typeof x)throw new Ks(A);return Zd(function(){x.apply(n,_e)},k)}function Kd(x,k,_e,lt){var Wt=-1,an=Sn,xn=!0,qn=x.length,hi=[],qi=k.length;if(!qn)return hi;_e&&(k=oi(k,Go(_e))),lt?(an=Jn,xn=!1):k.length>=200&&(an=ns,xn=!1,k=new ze(k));e:for(;++Wt<qn;){var tr=x[Wt],sr=null==_e?tr:_e(tr);if(tr=lt||0!==tr?tr:0,xn&&sr==sr){for(var Rr=qi;Rr--;)if(k[Rr]===sr)continue e;hi.push(tr)}else an(k,sr,lt)||hi.push(tr)}return hi}en.templateSettings={escape:gt,evaluate:wt,interpolate:rn,variable:"",imports:{_:en}},(en.prototype=Do.prototype).constructor=en,(mr.prototype=Ir(Do.prototype)).constructor=mr,(Yr.prototype=Ir(Do.prototype)).constructor=Yr,gs.prototype.clear=function $r(){this.__data__=Bt?Bt(null):{},this.size=0},gs.prototype.delete=function ma(x){var k=this.has(x)&&delete this.__data__[x];return this.size-=k?1:0,k},gs.prototype.get=function oo(x){var k=this.__data__;if(Bt){var _e=k[x];return _e===T?n:_e}return Ho.call(k,x)?k[x]:n},gs.prototype.has=function Eo(x){var k=this.__data__;return Bt?k[x]!==n:Ho.call(k,x)},gs.prototype.set=function Es(x,k){var _e=this.__data__;return this.size+=this.has(x)?0:1,_e[x]=Bt&&k===n?T:k,this},no.prototype.clear=function va(){this.__data__=[],this.size=0},no.prototype.delete=function Yo(x){var k=this.__data__,_e=Dl(k,x);return!(_e<0||(_e==k.length-1?k.pop():Kr.call(k,_e,1),--this.size,0))},no.prototype.get=function _a(x){var k=this.__data__,_e=Dl(k,x);return _e<0?n:k[_e][1]},no.prototype.has=function fc(x){return Dl(this.__data__,x)>-1},no.prototype.set=function gc(x,k){var _e=this.__data__,lt=Dl(_e,x);return lt<0?(++this.size,_e.push([x,k])):_e[lt][1]=k,this},Ul.prototype.clear=function xl(){this.size=0,this.__data__={hash:new gs,map:new(mn||no),string:new gs}},Ul.prototype.delete=function ol(x){var k=Kc(this,x).delete(x);return this.size-=k?1:0,k},Ul.prototype.get=function od(x){return Kc(this,x).get(x)},Ul.prototype.has=function ml(x){return Kc(this,x).has(x)},Ul.prototype.set=function Te(x,k){var _e=Kc(this,x),lt=_e.size;return _e.set(x,k),this.size+=_e.size==lt?0:1,this},ze.prototype.add=ze.prototype.push=function Je(x){return this.__data__.set(x,T),this},ze.prototype.has=function Ze(x){return this.__data__.has(x)},Mt.prototype.clear=function pn(){this.__data__=new no,this.size=0},Mt.prototype.delete=function gn(x){var k=this.__data__,_e=k.delete(x);return this.size=k.size,_e},Mt.prototype.get=function Di(x){return this.__data__.get(x)},Mt.prototype.has=function ar(x){return this.__data__.has(x)},Mt.prototype.set=function Xi(x,k){var _e=this.__data__;if(_e instanceof no){var lt=_e.__data__;if(!mn||lt.length<199)return lt.push([x,k]),this.size=++_e.size,this;_e=this.__data__=new Ul(lt)}return _e.set(x,k),this.size=_e.size,this};var Ga=gd(la),Za=gd(mc,!0);function Ol(x,k){var _e=!0;return Ga(x,function(lt,Wt,an){return _e=!!k(lt,Wt,an)}),_e}function zl(x,k,_e){for(var lt=-1,Wt=x.length;++lt<Wt;){var an=x[lt],xn=k(an);if(null!=xn&&(qn===n?xn==xn&&!uc(xn):_e(xn,qn)))var qn=xn,hi=an}return hi}function Lc(x,k){var _e=[];return Ga(x,function(lt,Wt,an){k(lt,Wt,an)&&_e.push(lt)}),_e}function Fo(x,k,_e,lt,Wt){var an=-1,xn=x.length;for(_e||(_e=Ja),Wt||(Wt=[]);++an<xn;){var qn=x[an];k>0&&_e(qn)?k>1?Fo(qn,k-1,_e,lt,Wt):Ji(Wt,qn):lt||(Wt[Wt.length]=qn)}return Wt}var ld=wd(),Ad=wd(!0);function la(x,k){return x&&ld(x,k,Wa)}function mc(x,k){return x&&Ad(x,k,Wa)}function Nc(x,k){return St(k,function(_e){return Zc(x[_e])})}function Vl(x,k){for(var _e=0,lt=(k=Ta(k,x)).length;null!=x&&_e<lt;)x=x[md(k[_e++])];return _e&&_e==lt?x:n}function _l(x,k,_e){var lt=k(x);return qo(x)?lt:Ji(lt,_e(x))}function Aa(x){return null==x?x===n?"[object Undefined]":"[object Null]":L&&L in Ur(x)?function Da(x){var k=Ho.call(x,L),_e=x[L];try{x[L]=n;var lt=!0}catch{}var Wt=Ma.call(x);return lt&&(k?x[L]=_e:delete x[L]),Wt}(x):function Ih(x){return Ma.call(x)}(x)}function Td(x,k){return x>k}function xd(x,k){return null!=x&&Ho.call(x,k)}function vc(x,k){return null!=x&&k in Ur(x)}function oc(x,k,_e){for(var lt=_e?Jn:Sn,Wt=x[0].length,an=x.length,xn=an,qn=Kn(an),hi=1/0,qi=[];xn--;){var tr=x[xn];xn&&k&&(tr=oi(tr,Go(k))),hi=vt(tr.length,hi),qn[xn]=!_e&&(k||Wt>=120&&tr.length>=120)?new ze(xn&&tr):n}tr=x[0];var sr=-1,Rr=qn[0];e:for(;++sr<Wt&&qi.length<hi;){var zr=tr[sr],eo=k?k(zr):zr;if(zr=_e||0!==zr?zr:0,!(Rr?ns(Rr,eo):lt(qi,eo,_e))){for(xn=an;--xn;){var Io=qn[xn];if(!(Io?ns(Io,eo):lt(x[xn],eo,_e)))continue e}Rr&&Rr.push(eo),qi.push(zr)}}return qi}function Wc(x,k,_e){var lt=null==(x=Tc(x,k=Ta(k,x)))?x:x[md(As(k))];return null==lt?n:wi(lt,x,_e)}function du(x){return Ua(x)&&Aa(x)==W}function Gl(x,k,_e,lt,Wt){return x===k||(null==x||null==k||!Ua(x)&&!Ua(k)?x!=x&&k!=k:function ks(x,k,_e,lt,Wt,an){var xn=qo(x),qn=qo(k),hi=xn?Pe:ua(x),qi=qn?Pe:ua(k),tr=(hi=hi==W?pe:hi)==pe,sr=(qi=qi==W?pe:qi)==pe,Rr=hi==qi;if(Rr&&Gd(x)){if(!Gd(k))return!1;xn=!0,tr=!1}if(Rr&&!tr)return an||(an=new Mt),xn||jd(x)?Hu(x,k,_e,lt,Wt,an):function Ec(x,k,_e,lt,Wt,an,xn){switch(_e){case Un:if(x.byteLength!=k.byteLength||x.byteOffset!=k.byteOffset)return!1;x=x.buffer,k=k.buffer;case kn:return!(x.byteLength!=k.byteLength||!an(new Tl(x),new Tl(k)));case oe:case Le:case ve:return tl(+x,+k);case ye:return x.name==k.name&&x.message==k.message;case Vt:case J:return x==k+"";case K:var qn=wr;case de:if(qn||(qn=Ts),x.size!=k.size&&!(1&lt))return!1;var qi=xn.get(x);if(qi)return qi==k;lt|=2,xn.set(x,k);var tr=Hu(qn(x),qn(k),lt,Wt,an,xn);return xn.delete(x),tr;case $e:if(Ni)return Ni.call(x)==Ni.call(k)}return!1}(x,k,hi,_e,lt,Wt,an);if(!(1&_e)){var zr=tr&&Ho.call(x,"__wrapped__"),eo=sr&&Ho.call(k,"__wrapped__");if(zr||eo){var Io=zr?x.value():x,qr=eo?k.value():k;return an||(an=new Mt),Wt(Io,qr,_e,lt,an)}}return!!Rr&&(an||(an=new Mt),function Rd(x,k,_e,lt,Wt,an){var xn=1&_e,qn=Xl(x),hi=qn.length;if(hi!=Xl(k).length&&!xn)return!1;for(var sr=hi;sr--;){var Rr=qn[sr];if(!(xn?Rr in k:Ho.call(k,Rr)))return!1}var zr=an.get(x),eo=an.get(k);if(zr&&eo)return zr==k&&eo==x;var Io=!0;an.set(x,k),an.set(k,x);for(var qr=xn;++sr<hi;){var rs=x[Rr=qn[sr]],ws=k[Rr];if(lt)var El=xn?lt(ws,rs,Rr,k,x,an):lt(rs,ws,Rr,x,k,an);if(!(El===n?rs===ws||Wt(rs,ws,_e,lt,an):El)){Io=!1;break}qr||(qr="constructor"==Rr)}if(Io&&!qr){var Nl=x.constructor,ec=k.constructor;Nl!=ec&&"constructor"in x&&"constructor"in k&&!("function"==typeof Nl&&Nl instanceof Nl&&"function"==typeof ec&&ec instanceof ec)&&(Io=!1)}return an.delete(x),an.delete(k),Io}(x,k,_e,lt,Wt,an))}(x,k,_e,lt,Gl,Wt))}function dd(x,k,_e,lt){var Wt=_e.length,an=Wt,xn=!lt;if(null==x)return!an;for(x=Ur(x);Wt--;){var qn=_e[Wt];if(xn&&qn[2]?qn[1]!==x[qn[0]]:!(qn[0]in x))return!1}for(;++Wt<an;){var hi=(qn=_e[Wt])[0],qi=x[hi],tr=qn[1];if(xn&&qn[2]){if(qi===n&&!(hi in x))return!1}else{var sr=new Mt;if(lt)var Rr=lt(qi,tr,hi,x,k,sr);if(!(Rr===n?Gl(tr,qi,3,lt,sr):Rr))return!1}}return!0}function Ss(x){return!(!Ia(x)||function df(x){return!!Al&&Al in x}(x))&&(Zc(x)?Uo:Nr).test(Fd(x))}function Yt(x){return"function"==typeof x?x:null==x?bl:"object"==typeof x?qo(x)?Is(x[0],x[1]):vo(x):ms(x)}function un(x){if(!yu(x))return Ke(x);var k=[];for(var _e in Ur(x))Ho.call(x,_e)&&"constructor"!=_e&&k.push(_e);return k}function zi(x,k){return x<k}function io(x,k){var _e=-1,lt=dc(x)?Kn(x.length):[];return Ga(x,function(Wt,an,xn){lt[++_e]=k(Wt,an,xn)}),lt}function vo(x){var k=Il(x);return 1==k.length&&k[0][2]?wh(k[0][0],k[0][1]):function(_e){return _e===x||dd(_e,x,k)}}function Is(x,k){return Ph(x)&&Yu(k)?wh(md(x),k):function(_e){var lt=rm(_e,x);return lt===n&&lt===k?Wd(_e,x):Gl(k,lt,3)}}function Vi(x,k,_e,lt,Wt){x!==k&&ld(k,function(an,xn){if(Wt||(Wt=new Mt),Ia(an))!function yo(x,k,_e,lt,Wt,an,xn){var qn=Nd(x,_e),hi=Nd(k,_e),qi=xn.get(hi);if(qi)ra(x,_e,qi);else{var tr=an?an(qn,hi,_e+"",x,k,xn):n,sr=tr===n;if(sr){var Rr=qo(hi),zr=!Rr&&Gd(hi),eo=!Rr&&!zr&&jd(hi);tr=hi,Rr||zr||eo?qo(qn)?tr=qn:Ya(qn)?tr=yl(qn):zr?(sr=!1,tr=ip(hi,!0)):eo?(sr=!1,tr=fu(hi,!0)):tr=[]:Pu(hi)||xu(hi)?(tr=qn,xu(qn)?tr=ru(qn):(!Ia(qn)||Zc(qn))&&(tr=cf(hi))):sr=!1}sr&&(xn.set(hi,tr),Wt(tr,hi,lt,an,xn),xn.delete(hi)),ra(x,_e,tr)}}(x,k,xn,_e,Vi,lt,Wt);else{var qn=lt?lt(Nd(x,xn),an,xn+"",x,k,Wt):n;qn===n&&(qn=an),ra(x,xn,qn)}},Ll)}function Pl(x,k){var _e=x.length;if(_e)return cc(k+=k<0?_e:0,_e)?x[k]:n}function kc(x,k,_e){k=k.length?oi(k,function(an){return qo(an)?function(xn){return Vl(xn,1===an.length?an[0]:an)}:an}):[bl];var lt=-1;return k=oi(k,Go(Mo())),function bn(zn,pi){var Kn=zn.length;for(zn.sort(pi);Kn--;)zn[Kn]=zn[Kn].value;return zn}(io(x,function(an,xn,qn){return{criteria:oi(k,function(qi){return qi(an)}),index:++lt,value:an}}),function(an,xn){return function Ch(x,k,_e){for(var lt=-1,Wt=x.criteria,an=k.criteria,xn=Wt.length,qn=_e.length;++lt<xn;){var hi=Sc(Wt[lt],an[lt]);if(hi)return lt>=qn?hi:hi*("desc"==_e[lt]?-1:1)}return x.index-k.index}(an,xn,_e)})}function ud(x,k,_e){for(var lt=-1,Wt=k.length,an={};++lt<Wt;){var xn=k[lt],qn=Vl(x,xn);_e(qn,xn)&&pd(an,Ta(xn,x),qn)}return an}function yc(x,k,_e,lt){var Wt=lt?$i:Os,an=-1,xn=k.length,qn=x;for(x===k&&(k=yl(k)),_e&&(qn=oi(x,Go(_e)));++an<xn;)for(var hi=0,qi=k[an],tr=_e?_e(qi):qi;(hi=Wt(qn,tr,hi,lt))>-1;)qn!==x&&Kr.call(qn,hi,1),Kr.call(x,hi,1);return x}function Xd(x,k){for(var _e=x?k.length:0,lt=_e-1;_e--;){var Wt=k[_e];if(_e==lt||Wt!==an){var an=Wt;cc(Wt)?Kr.call(x,Wt,1):yh(x,Wt)}}return x}function uu(x,k){return x+we(pt()*(k-x+1))}function ef(x,k){var _e="";if(!x||k<1||k>Xe)return _e;do{k%2&&(_e+=x),(k=we(k/2))&&(x+=x)}while(k);return _e}function Wo(x,k){return up(Ld(x,k,bl),x+"")}function Hl(x){return Jo(p(x))}function hd(x,k){var _e=p(x);return pp(_e,sd(k,0,_e.length))}function pd(x,k,_e,lt){if(!Ia(x))return x;for(var Wt=-1,an=(k=Ta(k,x)).length,xn=an-1,qn=x;null!=qn&&++Wt<an;){var hi=md(k[Wt]),qi=_e;if("__proto__"===hi||"constructor"===hi||"prototype"===hi)return x;if(Wt!=xn){var tr=qn[hi];(qi=lt?lt(tr,hi,qn):n)===n&&(qi=Ia(tr)?tr:cc(k[Wt+1])?[]:{})}kr(qn,hi,qi),qn=qn[hi]}return x}var jl=Rt?function(x,k){return Rt.set(x,k),x}:bl,sc=D?function(x,k){return D(x,"toString",{configurable:!0,enumerable:!1,value:ah(k),writable:!0})}:bl;function hu(x){return pp(p(x))}function ja(x,k,_e){var lt=-1,Wt=x.length;k<0&&(k=-k>Wt?0:Wt+k),(_e=_e>Wt?Wt:_e)<0&&(_e+=Wt),Wt=k>_e?0:_e-k>>>0,k>>>=0;for(var an=Kn(Wt);++lt<Wt;)an[lt]=x[lt+k];return an}function tp(x,k){var _e;return Ga(x,function(lt,Wt,an){return!(_e=k(lt,Wt,an))}),!!_e}function Fc(x,k,_e){var lt=0,Wt=null==x?lt:x.length;if("number"==typeof k&&k==k&&Wt<=2147483647){for(;lt<Wt;){var an=lt+Wt>>>1,xn=x[an];null!==xn&&!uc(xn)&&(_e?xn<=k:xn<k)?lt=an+1:Wt=an}return Wt}return vh(x,k,bl,_e)}function vh(x,k,_e,lt){var Wt=0,an=null==x?0:x.length;if(0===an)return 0;for(var xn=(k=_e(k))!=k,qn=null===k,hi=uc(k),qi=k===n;Wt<an;){var tr=we((Wt+an)/2),sr=_e(x[tr]),Rr=sr!==n,zr=null===sr,eo=sr==sr,Io=uc(sr);if(xn)var qr=lt||eo;else qr=qi?eo&&(lt||Rr):qn?eo&&Rr&&(lt||!zr):hi?eo&&Rr&&!zr&&(lt||!Io):!zr&&!Io&&(lt?sr<=k:sr<k);qr?Wt=tr+1:an=tr}return vt(an,4294967294)}function _h(x,k){for(var _e=-1,lt=x.length,Wt=0,an=[];++_e<lt;){var xn=x[_e],qn=k?k(xn):xn;if(!_e||!tl(qn,hi)){var hi=qn;an[Wt++]=0===xn?0:xn}}return an}function np(x){return"number"==typeof x?x:uc(x)?NaN:+x}function sl(x){if("string"==typeof x)return x;if(qo(x))return oi(x,sl)+"";if(uc(x))return Zr?Zr.call(x):"";var k=x+"";return"0"==k&&1/x==-ge?"-0":k}function $c(x,k,_e){var lt=-1,Wt=Sn,an=x.length,xn=!0,qn=[],hi=qn;if(_e)xn=!1,Wt=Jn;else if(an>=200){var qi=k?null:lf(x);if(qi)return Ts(qi);xn=!1,Wt=ns,hi=new ze}else hi=k?[]:qn;e:for(;++lt<an;){var tr=x[lt],sr=k?k(tr):tr;if(tr=_e||0!==tr?tr:0,xn&&sr==sr){for(var Rr=hi.length;Rr--;)if(hi[Rr]===sr)continue e;k&&hi.push(sr),qn.push(tr)}else Wt(hi,sr,_e)||(hi!==qn&&hi.push(sr),qn.push(tr))}return qn}function yh(x,k){return null==(x=Tc(x,k=Ta(k,x)))||delete x[md(As(k))]}function Fu(x,k,_e,lt){return pd(x,k,_e(Vl(x,k)),lt)}function Uu(x,k,_e,lt){for(var Wt=x.length,an=lt?Wt:-1;(lt?an--:++an<Wt)&&k(x[an],an,x););return _e?ja(x,lt?0:an,lt?an+1:Wt):ja(x,lt?an+1:0,lt?Wt:an)}function pu(x,k){var _e=x;return _e instanceof Yr&&(_e=_e.value()),Ei(k,function(lt,Wt){return Wt.func.apply(Wt.thisArg,Ji([lt],Wt.args))},_e)}function fd(x,k,_e){var lt=x.length;if(lt<2)return lt?$c(x[0]):[];for(var Wt=-1,an=Kn(lt);++Wt<lt;)for(var xn=x[Wt],qn=-1;++qn<lt;)qn!=Wt&&(an[Wt]=Kd(an[Wt]||xn,x[qn],k,_e));return $c(Fo(an,1),k,_e)}function Sh(x,k,_e){for(var lt=-1,Wt=x.length,an=k.length,xn={};++lt<Wt;)_e(xn,x[lt],lt<an?k[lt]:n);return xn}function Uc(x){return Ya(x)?x:[]}function Bu(x){return"function"==typeof x?x:bl}function Ta(x,k){return qo(x)?x:Ph(x,k)?[x]:fp(Fs(x))}var Kl=Wo;function Ms(x,k,_e){var lt=x.length;return _e=_e===n?lt:_e,!k&&_e>=lt?x:ja(x,k,_e)}var Vu=B||function(x){return _s.clearTimeout(x)};function ip(x,k){if(k)return x.slice();var _e=x.length,lt=rd?rd(_e):new x.constructor(_e);return x.copy(lt),lt}function bh(x){var k=new x.constructor(x.byteLength);return new Tl(k).set(new Tl(x)),k}function fu(x,k){var _e=k?bh(x.buffer):x.buffer;return new x.constructor(_e,x.byteOffset,x.length)}function Sc(x,k){if(x!==k){var _e=x!==n,lt=null===x,Wt=x==x,an=uc(x),xn=k!==n,qn=null===k,hi=k==k,qi=uc(k);if(!qn&&!qi&&!an&&x>k||an&&xn&&hi&&!qn&&!qi||lt&&xn&&hi||!_e&&hi||!Wt)return 1;if(!lt&&!an&&!qi&&x<k||qi&&_e&&Wt&&!lt&&!an||qn&&_e&&Wt||!xn&&Wt||!hi)return-1}return 0}function Eh(x,k,_e,lt){for(var Wt=-1,an=x.length,xn=_e.length,qn=-1,hi=k.length,qi=Ye(an-xn,0),tr=Kn(hi+qi),sr=!lt;++qn<hi;)tr[qn]=k[qn];for(;++Wt<xn;)(sr||Wt<an)&&(tr[_e[Wt]]=x[Wt]);for(;qi--;)tr[qn++]=x[Wt++];return tr}function Od(x,k,_e,lt){for(var Wt=-1,an=x.length,xn=-1,qn=_e.length,hi=-1,qi=k.length,tr=Ye(an-qn,0),sr=Kn(tr+qi),Rr=!lt;++Wt<tr;)sr[Wt]=x[Wt];for(var zr=Wt;++hi<qi;)sr[zr+hi]=k[hi];for(;++xn<qn;)(Rr||Wt<an)&&(sr[zr+_e[xn]]=x[Wt++]);return sr}function yl(x,k){var _e=-1,lt=x.length;for(k||(k=Kn(lt));++_e<lt;)k[_e]=x[_e];return k}function bc(x,k,_e,lt){var Wt=!_e;_e||(_e={});for(var an=-1,xn=k.length;++an<xn;){var qn=k[an],hi=lt?lt(_e[qn],x[qn],qn,_e,x):n;hi===n&&(hi=x[qn]),Wt?$l(_e,qn,hi):kr(_e,qn,hi)}return _e}function Pd(x,k){return function(_e,lt){var Wt=qo(_e)?Ri:Qa,an=k?k():{};return Wt(_e,x,Mo(lt,2),an)}}function al(x){return Wo(function(k,_e){var lt=-1,Wt=_e.length,an=Wt>1?_e[Wt-1]:n,xn=Wt>2?_e[2]:n;for(an=x.length>3&&"function"==typeof an?(Wt--,an):n,xn&&Rl(_e[0],_e[1],xn)&&(an=Wt<3?n:an,Wt=1),k=Ur(k);++lt<Wt;){var qn=_e[lt];qn&&x(k,qn,lt,an)}return k})}function gd(x,k){return function(_e,lt){if(null==_e)return _e;if(!dc(_e))return x(_e,lt);for(var Wt=_e.length,an=k?Wt:-1,xn=Ur(_e);(k?an--:++an<Wt)&&!1!==lt(xn[an],an,xn););return _e}}function wd(x){return function(k,_e,lt){for(var Wt=-1,an=Ur(k),xn=lt(k),qn=xn.length;qn--;){var hi=xn[x?qn:++Wt];if(!1===_e(an[hi],hi,an))break}return k}}function Ah(x){return function(k){var _e=pr(k=Fs(k))?Ht(k):n,lt=_e?_e[0]:k.charAt(0),Wt=_e?Ms(_e,1).join(""):k.slice(1);return lt[x]()+Wt}}function Cc(x){return function(k){return Ei(hc(Ut(k).replace(Oa,"")),x,"")}}function wl(x){return function(){var k=arguments;switch(k.length){case 0:return new x;case 1:return new x(k[0]);case 2:return new x(k[0],k[1]);case 3:return new x(k[0],k[1],k[2]);case 4:return new x(k[0],k[1],k[2],k[3]);case 5:return new x(k[0],k[1],k[2],k[3],k[4]);case 6:return new x(k[0],k[1],k[2],k[3],k[4],k[5]);case 7:return new x(k[0],k[1],k[2],k[3],k[4],k[5],k[6])}var _e=Ir(x.prototype),lt=x.apply(_e,k);return Ia(lt)?lt:_e}}function pg(x){return function(k,_e,lt){var Wt=Ur(k);if(!dc(k)){var an=Mo(_e,3);k=Wa(k),_e=function(qn){return an(Wt[qn],qn,Wt)}}var xn=x(k,_e,lt);return xn>-1?Wt[an?k[xn]:xn]:n}}function Th(x){return ac(function(k){var _e=k.length,lt=_e,Wt=mr.prototype.thru;for(x&&k.reverse();lt--;){var an=k[lt];if("function"!=typeof an)throw new Ks(A);if(Wt&&!xn&&"wrapper"==lc(an))var xn=new mr([],!0)}for(lt=xn?lt:_e;++lt<_e;){var qn=lc(an=k[lt]),hi="wrapper"==qn?zc(an):n;xn=hi&&cp(hi[0])&&424==hi[1]&&!hi[4].length&&1==hi[9]?xn[lc(hi[0])].apply(xn,hi[3]):1==an.length&&cp(an)?xn[qn]():xn.thru(an)}return function(){var qi=arguments,tr=qi[0];if(xn&&1==qi.length&&qo(tr))return xn.plant(tr).value();for(var sr=0,Rr=_e?k[sr].apply(this,qi):tr;++sr<_e;)Rr=k[sr].call(this,Rr);return Rr}})}function Id(x,k,_e,lt,Wt,an,xn,qn,hi,qi){var tr=128&k,sr=1&k,Rr=2&k,zr=24&k,eo=512&k,Io=Rr?n:wl(x);return function qr(){for(var rs=arguments.length,ws=Kn(rs),El=rs;El--;)ws[El]=arguments[El];if(zr)var Nl=da(qr),ec=function Or(zn,pi){for(var Kn=zn.length,cr=0;Kn--;)zn[Kn]===pi&&++cr;return cr}(ws,Nl);if(lt&&(ws=Eh(ws,lt,Wt,zr)),an&&(ws=Od(ws,an,xn,zr)),rs-=ec,zr&&rs<qi){var Sa=fo(ws,Nl);return af(x,k,Id,qr.placeholder,_e,ws,Sa,qn,hi,qi-rs)}var Vr=sr?_e:this,co=Rr?Vr[x]:x;return rs=ws.length,qn?ws=function Bc(x,k){for(var _e=x.length,lt=vt(k.length,_e),Wt=yl(x);lt--;){var an=k[lt];x[lt]=cc(an,_e)?Wt[an]:n}return x}(ws,qn):eo&&rs>1&&ws.reverse(),tr&&hi<rs&&(ws.length=hi),this&&this!==_s&&this instanceof qr&&(co=Io||wl(co)),co.apply(Vr,ws)}}function rf(x,k){return function(_e,lt){return function cd(x,k,_e,lt){return la(x,function(Wt,an,xn){k(lt,_e(Wt),an,xn)}),lt}(_e,x,k(lt),{})}}function Qd(x,k){return function(_e,lt){var Wt;if(_e===n&&lt===n)return k;if(_e!==n&&(Wt=_e),lt!==n){if(Wt===n)return lt;"string"==typeof _e||"string"==typeof lt?(_e=sl(_e),lt=sl(lt)):(_e=np(_e),lt=np(lt)),Wt=x(_e,lt)}return Wt}}function xh(x){return ac(function(k){return k=oi(k,Go(Mo())),Wo(function(_e){var lt=this;return x(k,function(Wt){return wi(Wt,lt,_e)})})})}function gu(x,k){var _e=(k=k===n?" ":sl(k)).length;if(_e<2)return _e?ef(k,x):k;var lt=ef(k,Se(x/xt(k)));return pr(k)?Ms(Ht(lt),0,x).join(""):lt.slice(0,x)}function sf(x){return function(k,_e,lt){return lt&&"number"!=typeof lt&&Rl(k,_e,lt)&&(_e=lt=n),k=Sd(k),_e===n?(_e=k,k=0):_e=Sd(_e),function qp(x,k,_e,lt){for(var Wt=-1,an=Ye(Se((k-x)/(_e||1)),0),xn=Kn(an);an--;)xn[lt?an:++Wt]=x,x+=_e;return xn}(k,_e,lt=lt===n?k<_e?1:-1:Sd(lt),x)}}function Gu(x){return function(k,_e){return"string"==typeof k&&"string"==typeof _e||(k=Pc(k),_e=Pc(_e)),x(k,_e)}}function af(x,k,_e,lt,Wt,an,xn,qn,hi,qi){var tr=8&k;k|=tr?32:64,4&(k&=~(tr?64:32))||(k&=-4);var Io=[x,k,Wt,tr?an:n,tr?xn:n,tr?n:an,tr?n:xn,qn,hi,qi],qr=_e.apply(n,Io);return cp(x)&&kd(qr,Io),qr.placeholder=lt,hp(qr,x,k)}function ll(x){var k=No[x];return function(_e,lt){if(_e=Pc(_e),(lt=null==lt?0:vt(Xo(lt),292))&&Ot(_e)){var Wt=(Fs(_e)+"e").split("e");return+((Wt=(Fs(k(Wt[0]+"e"+(+Wt[1]+lt)))+"e").split("e"))[0]+"e"+(+Wt[1]-lt))}return k(_e)}}var lf=ci&&1/Ts(new ci([,-0]))[1]==ge?function(x){return new ci(x)}:lh;function mu(x){return function(k){var _e=ua(k);return _e==K?wr(k):_e==de?function yr(zn){var pi=-1,Kn=Array(zn.size);return zn.forEach(function(cr){Kn[++pi]=[cr,cr]}),Kn}(k):function ls(zn,pi){return oi(pi,function(Kn){return[Kn,zn[Kn]]})}(k,x(k))}}function Rs(x,k,_e,lt,Wt,an,xn,qn){var hi=2&k;if(!hi&&"function"!=typeof x)throw new Ks(A);var qi=lt?lt.length:0;if(qi||(k&=-97,lt=Wt=n),xn=xn===n?xn:Ye(Xo(xn),0),qn=qn===n?qn:Xo(qn),qi-=Wt?Wt.length:0,64&k){var tr=lt,sr=Wt;lt=Wt=n}var Rr=hi?n:zc(x),zr=[x,k,_e,lt,Wt,tr,sr,an,xn,qn];if(Rr&&function Yl(x,k){var _e=x[1],lt=k[1],Wt=_e|lt;if(!(Wt<131)&&!(128==lt&&8==_e||128==lt&&256==_e&&x[7].length<=k[8]||384==lt&&k[7].length<=k[8]&&8==_e))return x;1&lt&&(x[2]=k[2],Wt|=1&_e?0:4);var qn=k[3];if(qn){var hi=x[3];x[3]=hi?Eh(hi,qn,k[4]):qn,x[4]=hi?fo(x[3],y):k[4]}(qn=k[5])&&(x[5]=(hi=x[5])?Od(hi,qn,k[6]):qn,x[6]=hi?fo(x[5],y):k[6]),(qn=k[7])&&(x[7]=qn),128&lt&&(x[8]=null==x[8]?k[8]:vt(x[8],k[8])),null==x[9]&&(x[9]=k[9]),x[0]=k[0],x[1]=Wt}(zr,Rr),x=zr[0],k=zr[1],_e=zr[2],lt=zr[3],Wt=zr[4],!(qn=zr[9]=zr[9]===n?hi?0:x.length:Ye(zr[9]-qi,0))&&24&k&&(k&=-25),k&&1!=k)eo=8==k||16==k?function pm(x,k,_e){var lt=wl(x);return function Wt(){for(var an=arguments.length,xn=Kn(an),qn=an,hi=da(Wt);qn--;)xn[qn]=arguments[qn];var qi=an<3&&xn[0]!==hi&&xn[an-1]!==hi?[]:fo(xn,hi);return(an-=qi.length)<_e?af(x,k,Id,Wt.placeholder,n,xn,qi,n,n,_e-an):wi(this&&this!==_s&&this instanceof Wt?lt:x,this,xn)}}(x,k,qn):32!=k&&33!=k||Wt.length?Id.apply(n,zr):function fm(x,k,_e,lt){var Wt=1&k,an=wl(x);return function xn(){for(var qn=-1,hi=arguments.length,qi=-1,tr=lt.length,sr=Kn(tr+hi),Rr=this&&this!==_s&&this instanceof xn?an:x;++qi<tr;)sr[qi]=lt[qi];for(;hi--;)sr[qi++]=arguments[++qn];return wi(Rr,Wt?_e:this,sr)}}(x,k,_e,lt);else var eo=function Mh(x,k,_e){var lt=1&k,Wt=wl(x);return function an(){return(this&&this!==_s&&this instanceof an?Wt:x).apply(lt?_e:this,arguments)}}(x,k,_e);return hp((Rr?jl:kd)(eo,zr),x,k)}function sp(x,k,_e,lt){return x===n||tl(x,ds[_e])&&!Ho.call(lt,_e)?k:x}function vu(x,k,_e,lt,Wt,an){return Ia(x)&&Ia(k)&&(an.set(k,x),Vi(x,k,n,vu,an),an.delete(k)),x}function _u(x){return Pu(x)?n:x}function Hu(x,k,_e,lt,Wt,an){var xn=1&_e,qn=x.length,hi=k.length;if(qn!=hi&&!(xn&&hi>qn))return!1;var qi=an.get(x),tr=an.get(k);if(qi&&tr)return qi==k&&tr==x;var sr=-1,Rr=!0,zr=2&_e?new ze:n;for(an.set(x,k),an.set(k,x);++sr<qn;){var eo=x[sr],Io=k[sr];if(lt)var qr=xn?lt(Io,eo,sr,k,x,an):lt(eo,Io,sr,x,k,an);if(qr!==n){if(qr)continue;Rr=!1;break}if(zr){if(!Pr(k,function(rs,ws){if(!ns(zr,ws)&&(eo===rs||Wt(eo,rs,_e,lt,an)))return zr.push(ws)})){Rr=!1;break}}else if(eo!==Io&&!Wt(eo,Io,_e,lt,an)){Rr=!1;break}}return an.delete(x),an.delete(k),Rr}function ac(x){return up(Ld(x,n,Gc),x+"")}function Xl(x){return _l(x,Wa,Dh)}function xa(x){return _l(x,Ll,Mc)}var zc=Rt?function(x){return Rt.get(x)}:lh;function lc(x){for(var k=x.name+"",_e=fn[k],lt=Ho.call(fn,k)?_e.length:0;lt--;){var Wt=_e[lt],an=Wt.func;if(null==an||an==x)return Wt.name}return k}function da(x){return(Ho.call(en,"placeholder")?en:x).placeholder}function Mo(){var x=en.iteratee||su;return x=x===su?Yt:x,arguments.length?x(arguments[0],arguments[1]):x}function Kc(x,k){var _e=x.__data__;return function lp(x){var k=typeof x;return"string"==k||"number"==k||"symbol"==k||"boolean"==k?"__proto__"!==x:null===x}(k)?_e["string"==typeof k?"string":"hash"]:_e.map}function Il(x){for(var k=Wa(x),_e=k.length;_e--;){var lt=k[_e],Wt=x[lt];k[_e]=[lt,Wt,Yu(Wt)]}return k}function ka(x,k){var _e=function is(zn,pi){return null==zn?n:zn[pi]}(x,k);return Ss(_e)?_e:n}var Dh=tt?function(x){return null==x?[]:(x=Ur(x),St(tt(x),function(k){return Va.call(x,k)}))}:ch,Mc=tt?function(x){for(var k=[];x;)Ji(k,Dh(x)),x=Fl(x);return k}:ch,ua=Aa;function ju(x,k,_e){for(var lt=-1,Wt=(k=Ta(k,x)).length,an=!1;++lt<Wt;){var xn=md(k[lt]);if(!(an=null!=x&&_e(x,xn)))break;x=x[xn]}return an||++lt!=Wt?an:!!(Wt=null==x?0:x.length)&&Xh(Wt)&&cc(xn,Wt)&&(qo(x)||xu(x))}function cf(x){return"function"!=typeof x.constructor||yu(x)?{}:Ir(Fl(x))}function Ja(x){return qo(x)||xu(x)||!!(ke&&x&&x[ke])}function cc(x,k){var _e=typeof x;return!!(k=k??Xe)&&("number"==_e||"symbol"!=_e&&Cs.test(x))&&x>-1&&x%1==0&&x<k}function Rl(x,k,_e){if(!Ia(_e))return!1;var lt=typeof k;return!!("number"==lt?dc(_e)&&cc(k,_e.length):"string"==lt&&k in _e)&&tl(_e[k],x)}function Ph(x,k){if(qo(x))return!1;var _e=typeof x;return!("number"!=_e&&"symbol"!=_e&&"boolean"!=_e&&null!=x&&!uc(x))||Mi.test(x)||!In.test(x)||null!=k&&x in Ur(k)}function cp(x){var k=lc(x),_e=en[k];if("function"!=typeof _e||!(k in Yr.prototype))return!1;if(x===_e)return!0;var lt=zc(_e);return!!lt&&x===lt[0]}(hn&&ua(new hn(new ArrayBuffer(1)))!=Un||mn&&ua(new mn)!=K||yn&&ua(yn.resolve())!=Qe||ci&&ua(new ci)!=de||yi&&ua(new yi)!=Gt)&&(ua=function(x){var k=Aa(x),_e=k==pe?x.constructor:n,lt=_e?Fd(_e):"";if(lt)switch(lt){case An:return Un;case Nn:return K;case Rn:return Qe;case Hn:return de;case Xn:return Gt}return k});var uf=Xa?Zc:jg;function yu(x){var k=x&&x.constructor;return x===("function"==typeof k&&k.prototype||ds)}function Yu(x){return x==x&&!Ia(x)}function wh(x,k){return function(_e){return null!=_e&&_e[x]===k&&(k!==n||x in Ur(_e))}}function Ld(x,k,_e){return k=Ye(k===n?x.length-1:k,0),function(){for(var lt=arguments,Wt=-1,an=Ye(lt.length-k,0),xn=Kn(an);++Wt<an;)xn[Wt]=lt[k+Wt];Wt=-1;for(var qn=Kn(k+1);++Wt<k;)qn[Wt]=lt[Wt];return qn[k]=_e(xn),wi(x,this,qn)}}function Tc(x,k){return k.length<2?x:Vl(x,ja(k,0,-1))}function Nd(x,k){if(("constructor"!==k||"function"!=typeof x[k])&&"__proto__"!=k)return x[k]}var kd=Su(jl),Zd=he||function(x,k){return _s.setTimeout(x,k)},up=Su(sc);function hp(x,k,_e){var lt=k+"";return up(x,function Oh(x,k){var _e=k.length;if(!_e)return x;var lt=_e-1;return k[lt]=(_e>1?"& ":"")+k[lt],k=k.join(_e>2?", ":" "),x.replace(Qn,"{\n/* [wrapped with "+k+"] */\n")}(lt,function hf(x,k){return Nt(ee,function(_e){var lt="_."+_e[0];k&_e[1]&&!Sn(x,lt)&&x.push(lt)}),x.sort()}(function Fa(x){var k=x.match(Fi);return k?k[1].split(Ai):[]}(lt),_e)))}function Su(x){var k=0,_e=0;return function(){var lt=Be(),Wt=16-(lt-_e);if(_e=lt,Wt>0){if(++k>=800)return arguments[0]}else k=0;return x.apply(n,arguments)}}function pp(x,k){var _e=-1,lt=x.length,Wt=lt-1;for(k=k===n?lt:k;++_e<k;){var an=uu(_e,Wt),xn=x[an];x[an]=x[_e],x[_e]=xn}return x.length=k,x}var fp=function dp(x){var k=Tu(x,function(lt){return 500===_e.size&&_e.clear(),lt}),_e=k.cache;return k}(function(x){var k=[];return 46===x.charCodeAt(0)&&k.push(""),x.replace(En,function(_e,lt,Wt,an){k.push(Wt?an.replace(bi,"$1"):lt||_e)}),k});function md(x){if("string"==typeof x||uc(x))return x;var k=x+"";return"0"==k&&1/x==-ge?"-0":k}function Fd(x){if(null!=x){try{return fs.call(x)}catch{}try{return x+""}catch{}}return""}function vd(x){if(x instanceof Yr)return x.clone();var k=new mr(x.__wrapped__,x.__chain__);return k.__actions__=yl(x.__actions__),k.__index__=x.__index__,k.__values__=x.__values__,k}var Rh=Wo(function(x,k){return Ya(x)?Kd(x,Fo(k,1,Ya,!0)):[]}),Qs=Wo(function(x,k){var _e=As(k);return Ya(_e)&&(_e=n),Ya(x)?Kd(x,Fo(k,1,Ya,!0),Mo(_e,2)):[]}),us=Wo(function(x,k){var _e=As(k);return Ya(_e)&&(_e=n),Ya(x)?Kd(x,Fo(k,1,Ya,!0),n,_e):[]});function Ud(x,k,_e){var lt=null==x?0:x.length;if(!lt)return-1;var Wt=null==_e?0:Xo(_e);return Wt<0&&(Wt=Ye(lt+Wt,0)),ba(x,Mo(k,3),Wt)}function cl(x,k,_e){var lt=null==x?0:x.length;if(!lt)return-1;var Wt=lt-1;return _e!==n&&(Wt=Xo(_e),Wt=_e<0?Ye(lt+Wt,0):vt(Wt,lt-1)),ba(x,Mo(k,3),Wt,!0)}function Gc(x){return null!=x&&x.length?Fo(x,1):[]}function Lh(x){return x&&x.length?x[0]:n}var dl=Wo(function(x){var k=oi(x,Uc);return k.length&&k[0]===x[0]?oc(k):[]}),$u=Wo(function(x){var k=As(x),_e=oi(x,Uc);return k===As(_e)?k=n:_e.pop(),_e.length&&_e[0]===x[0]?oc(_e,Mo(k,2)):[]}),vp=Wo(function(x){var k=As(x),_e=oi(x,Uc);return(k="function"==typeof k?k:n)&&_e.pop(),_e.length&&_e[0]===x[0]?oc(_e,n,k):[]});function As(x){var k=null==x?0:x.length;return k?x[k-1]:n}var _p=Wo(bf);function bf(x,k){return x&&x.length&&k&&k.length?yc(x,k):x}var Sp=ac(function(x,k){var _e=null==x?0:x.length,lt=ku(x,k);return Xd(x,oi(k,function(Wt){return cc(Wt,_e)?+Wt:Wt}).sort(Sc)),lt});function qd(x){return null==x?x:$t.call(x)}var yg=Wo(function(x){return $c(Fo(x,1,Ya,!0))}),Sg=Wo(function(x){var k=As(x);return Ya(k)&&(k=n),$c(Fo(x,1,Ya,!0),Mo(k,2))}),Ku=Wo(function(x){var k=As(x);return k="function"==typeof k?k:n,$c(Fo(x,1,Ya,!0),n,k)});function Ep(x){if(!x||!x.length)return[];var k=0;return x=St(x,function(_e){if(Ya(_e))return k=Ye(_e.length,k),!0}),to(k,function(_e){return oi(x,mt(_e))})}function Uh(x,k){if(!x||!x.length)return[];var _e=Ep(x);return null==k?_e:oi(_e,function(lt){return wi(k,n,lt)})}var Cg=Wo(function(x,k){return Ya(x)?Kd(x,k):[]}),Mp=Wo(function(x){return fd(St(x,Ya))}),Ap=Wo(function(x){var k=As(x);return Ya(k)&&(k=n),fd(St(x,Ya),Mo(k,2))}),Tp=Wo(function(x){var k=As(x);return k="function"==typeof k?k:n,fd(St(x,Ya),n,k)}),yd=Wo(Ep),Bh=Wo(function(x){var k=x.length,_e=k>1?x[k-1]:n;return _e="function"==typeof _e?(x.pop(),_e):n,Uh(x,_e)});function Xu(x){var k=en(x);return k.__chain__=!0,k}function Vh(x,k){return k(x)}var Eg=ac(function(x){var k=x.length,_e=k?x[0]:0,lt=this.__wrapped__,Wt=function(an){return ku(an,x)};return!(k>1||this.__actions__.length)&&lt instanceof Yr&&cc(_e)?((lt=lt.slice(_e,+_e+(k?1:0))).__actions__.push({func:Vh,args:[Wt],thisArg:n}),new mr(lt,this.__chain__).thru(function(an){return k&&!an.length&&an.push(n),an})):this.thru(Wt)}),Hh=Pd(function(x,k,_e){Ho.call(x,_e)?++x[_e]:$l(x,_e,1)}),Vd=pg(Ud),eu=pg(cl);function Qu(x,k){return(qo(x)?Nt:Ga)(x,Mo(k,3))}function Hc(x,k){return(qo(x)?Dt:Za)(x,Mo(k,3))}var If=Pd(function(x,k,_e){Ho.call(x,_e)?x[_e].push(k):$l(x,_e,[k])}),Zu=Wo(function(x,k,_e){var lt=-1,Wt="function"==typeof k,an=dc(x)?Kn(x.length):[];return Ga(x,function(xn){an[++lt]=Wt?wi(k,xn,_e):Wc(xn,k,_e)}),an}),Ag=Pd(function(x,k,_e){$l(x,_e,k)});function Mu(x,k){return(qo(x)?oi:io)(x,Mo(k,3))}var xg=Pd(function(x,k,_e){x[_e?0:1].push(k)},function(){return[[],[]]}),Rp=Wo(function(x,k){if(null==x)return[];var _e=k.length;return _e>1&&Rl(x,k[0],k[1])?k=[]:_e>2&&Rl(k[0],k[1],k[2])&&(k=[k[0]]),kc(x,Fo(k,1),[])}),Lp=re||function(){return _s.Date.now()};function Wh(x,k,_e){return k=_e?n:k,Rs(x,128,n,n,n,n,k=x&&null==k?x.length:k)}function Dc(x,k){var _e;if("function"!=typeof k)throw new Ks(A);return x=Xo(x),function(){return--x>0&&(_e=k.apply(this,arguments)),x<=1&&(k=n),_e}}var Jr=Wo(function(x,k,_e){var lt=1;if(_e.length){var Wt=fo(_e,da(Jr));lt|=32}return Rs(x,lt,k,_e,Wt)}),Lf=Wo(function(x,k,_e){var lt=3;if(_e.length){var Wt=fo(_e,da(Lf));lt|=32}return Rs(k,lt,x,_e,Wt)});function zh(x,k,_e){var lt,Wt,an,xn,qn,hi,qi=0,tr=!1,sr=!1,Rr=!0;if("function"!=typeof x)throw new Ks(A);function zr(Sa){var Vr=lt,co=Wt;return lt=Wt=n,qi=Sa,xn=x.apply(co,Vr)}function qr(Sa){var Vr=Sa-hi;return hi===n||Vr>=k||Vr<0||sr&&Sa-qi>=an}function rs(){var Sa=Lp();if(qr(Sa))return ws(Sa);qn=Zd(rs,function Io(Sa){var Ro=k-(Sa-hi);return sr?vt(Ro,an-(Sa-qi)):Ro}(Sa))}function ws(Sa){return qn=n,Rr&&lt?zr(Sa):(lt=Wt=n,xn)}function ec(){var Sa=Lp(),Vr=qr(Sa);if(lt=arguments,Wt=this,hi=Sa,Vr){if(qn===n)return function eo(Sa){return qi=Sa,qn=Zd(rs,k),tr?zr(Sa):xn}(hi);if(sr)return Vu(qn),qn=Zd(rs,k),zr(hi)}return qn===n&&(qn=Zd(rs,k)),xn}return k=Pc(k)||0,Ia(_e)&&(tr=!!_e.leading,an=(sr="maxWait"in _e)?Ye(Pc(_e.maxWait)||0,k):an,Rr="trailing"in _e?!!_e.trailing:Rr),ec.cancel=function El(){qn!==n&&Vu(qn),qi=0,lt=hi=Wt=qn=n},ec.flush=function Nl(){return qn===n?xn:ws(Lp())},ec}var qu=Wo(function(x,k){return Bl(x,1,k)}),Np=Wo(function(x,k,_e){return Bl(x,Pc(k)||0,_e)});function Tu(x,k){if("function"!=typeof x||null!=k&&"function"!=typeof k)throw new Ks(A);var _e=function(){var lt=arguments,Wt=k?k.apply(this,lt):lt[0],an=_e.cache;if(an.has(Wt))return an.get(Wt);var xn=x.apply(this,lt);return _e.cache=an.set(Wt,xn)||an,xn};return _e.cache=new(Tu.Cache||Ul),_e}function tu(x){if("function"!=typeof x)throw new Ks(A);return function(){var k=arguments;switch(k.length){case 0:return!x.call(this);case 1:return!x.call(this,k[0]);case 2:return!x.call(this,k[0],k[1]);case 3:return!x.call(this,k[0],k[1],k[2])}return!x.apply(this,k)}}Tu.Cache=Ul;var nu=Kl(function(x,k){var _e=(k=1==k.length&&qo(k[0])?oi(k[0],Go(Mo())):oi(Fo(k,1),Go(Mo()))).length;return Wo(function(lt){for(var Wt=-1,an=vt(lt.length,_e);++Wt<an;)lt[Wt]=k[Wt].call(this,lt[Wt]);return wi(x,this,lt)})}),kf=Wo(function(x,k){var _e=fo(k,da(kf));return Rs(x,32,n,k,_e)}),Dg=Wo(function(x,k){var _e=fo(k,da(Dg));return Rs(x,64,n,k,_e)}),Ff=ac(function(x,k){return Rs(x,256,n,n,n,k)});function tl(x,k){return x===k||x!=x&&k!=k}var eh=Gu(Td),Yf=Gu(function(x,k){return x>=k}),xu=du(function(){return arguments}())?du:function(x){return Ua(x)&&Ho.call(x,"callee")&&!Va.call(x,"callee")},qo=Kn.isArray,tm=zs?Go(zs):function Dd(x){return Ua(x)&&Aa(x)==kn};function dc(x){return null!=x&&Xh(x.length)&&!Zc(x)}function Ya(x){return Ua(x)&&dc(x)}var Gd=rt||jg,Pg=Kt?Go(Kt):function _c(x){return Ua(x)&&Aa(x)==Le};function Zl(x){if(!Ua(x))return!1;var k=Aa(x);return k==ye||"[object DOMException]"==k||"string"==typeof x.message&&"string"==typeof x.name&&!Pu(x)}function Zc(x){if(!Ia(x))return!1;var k=Aa(x);return k==Ie||k==at||"[object AsyncFunction]"==k||"[object Proxy]"==k}function ih(x){return"number"==typeof x&&x==Xo(x)}function Xh(x){return"number"==typeof x&&x>-1&&x%1==0&&x<=Xe}function Ia(x){var k=typeof x;return null!=x&&("object"==k||"function"==k)}function Ua(x){return null!=x&&"object"==typeof x}var Qh=Zn?Go(Zn):function lo(x){return Ua(x)&&ua(x)==K};function $f(x){return"number"==typeof x||Ua(x)&&Aa(x)==ve}function Pu(x){if(!Ua(x)||Aa(x)!=pe)return!1;var k=Fl(x);if(null===k)return!0;var _e=Ho.call(k,"constructor")&&k.constructor;return"function"==typeof _e&&_e instanceof _e&&fs.call(_e)==Vo}var zf=Ii?Go(Ii):function q(x){return Ua(x)&&Aa(x)==Vt},Gp=ei?Go(ei):function Ne(x){return Ua(x)&&ua(x)==de};function Zh(x){return"string"==typeof x||!qo(x)&&Ua(x)&&Aa(x)==J}function uc(x){return"symbol"==typeof x||Ua(x)&&Aa(x)==$e}var jd=di?Go(di):function yt(x){return Ua(x)&&Xh(x.length)&&!!ho[Aa(x)]},wu=Gu(zi),iu=Gu(function(x,k){return x<=k});function jp(x){if(!x)return[];if(dc(x))return Zh(x)?Ht(x):yl(x);if(_&&x[_])return function xr(zn){for(var pi,Kn=[];!(pi=zn.next()).done;)Kn.push(pi.value);return Kn}(x[_]());var k=ua(x);return(k==K?wr:k==de?Ts:p)(x)}function Sd(x){return x?(x=Pc(x))===ge||x===-ge?17976931348623157e292*(x<0?-1:1):x==x?x:0:0===x?x:0}function Xo(x){var k=Sd(x),_e=k%1;return k==k?_e?k-_e:k:0}function bd(x){return x?sd(Xo(x),0,xe):0}function Pc(x){if("number"==typeof x)return x;if(uc(x))return NaN;if(Ia(x)){var k="function"==typeof x.valueOf?x.valueOf():x;x=Ia(k)?k+"":k}if("string"!=typeof x)return 0===x?x:+x;x=xo(x);var _e=uo.test(x);return _e||ss.test(x)?sa(x.slice(2),_e?2:8):Wr.test(x)?NaN:+x}function ru(x){return bc(x,Ll(x))}function Fs(x){return null==x?"":sl(x)}var Ng=al(function(x,k){if(yu(k)||dc(k))bc(k,Wa(k),x);else for(var _e in k)Ho.call(k,_e)&&kr(x,_e,k[_e])}),Xf=al(function(x,k){bc(k,Ll(k),x)}),Qf=al(function(x,k,_e,lt){bc(k,Ll(k),x,lt)}),Yd=al(function(x,k,_e,lt){bc(k,Wa(k),x,lt)}),kg=ac(ku),Fg=Wo(function(x,k){x=Ur(x);var _e=-1,lt=k.length,Wt=lt>2?k[2]:n;for(Wt&&Rl(k[0],k[1],Wt)&&(lt=1);++_e<lt;)for(var an=k[_e],xn=Ll(an),qn=-1,hi=xn.length;++qn<hi;){var qi=xn[qn],tr=x[qi];(tr===n||tl(tr,ds[qi])&&!Ho.call(x,qi))&&(x[qi]=an[qi])}return x}),Yp=Wo(function(x){return x.push(n,vu),wi(Kp,n,x)});function rm(x,k,_e){var lt=null==x?n:Vl(x,k);return lt===n?_e:lt}function Wd(x,k){return null!=x&&ju(x,k,vc)}var gm=rf(function(x,k,_e){null!=k&&"function"!=typeof k.toString&&(k=Ma.call(k)),x[k]=_e},ah(bl)),mm=rf(function(x,k,_e){null!=k&&"function"!=typeof k.toString&&(k=Ma.call(k)),Ho.call(x,k)?x[k].push(_e):x[k]=[_e]},Mo),om=Wo(Wc);function Wa(x){return dc(x)?mo(x):un(x)}function Ll(x){return dc(x)?mo(x,!0):function ui(x){if(!Ia(x))return function Zg(x){var k=[];if(null!=x)for(var _e in Ur(x))k.push(_e);return k}(x);var k=yu(x),_e=[];for(var lt in x)"constructor"==lt&&(k||!Ho.call(x,lt))||_e.push(lt);return _e}(x)}var zp=al(function(x,k,_e){Vi(x,k,_e)}),Kp=al(function(x,k,_e,lt){Vi(x,k,_e,lt)}),Vg=ac(function(x,k){var _e={};if(null==x)return _e;var lt=!1;k=oi(k,function(an){return an=Ta(an,x),lt||(lt=an.length>1),an}),bc(x,xa(x),_e),lt&&(_e=vl(_e,7,_u));for(var Wt=k.length;Wt--;)yh(_e,k[Wt]);return _e}),oh=ac(function(x,k){return null==x?{}:function Po(x,k){return ud(x,k,function(_e,lt){return Wd(x,lt)})}(x,k)});function tg(x,k){if(null==x)return{};var _e=oi(xa(x),function(lt){return[lt]});return k=Mo(k),ud(x,_e,function(lt,Wt){return k(lt,Wt[0])})}var ng=mu(Wa),Hg=mu(Ll);function p(x){return null==x?[]:Ui(x,Wa(x))}var He=Cc(function(x,k,_e){return k=k.toLowerCase(),x+(_e?ct(k):k)});function ct(x){return Wl(Fs(x).toLowerCase())}function Ut(x){return(x=Fs(x))&&x.replace(Pn,pl).replace(qs,"")}var Dn=Cc(function(x,k,_e){return x+(_e?"-":"")+k.toLowerCase()}),Yn=Cc(function(x,k,_e){return x+(_e?" ":"")+k.toLowerCase()}),ki=Ah("toLowerCase"),bo=Cc(function(x,k,_e){return x+(_e?"_":"")+k.toLowerCase()}),es=Cc(function(x,k,_e){return x+(_e?" ":"")+Wl(k)}),ql=Cc(function(x,k,_e){return x+(_e?" ":"")+k.toUpperCase()}),Wl=Ah("toUpperCase");function hc(x,k,_e){return x=Fs(x),(k=_e?n:k)===n?function Br(zn){return Zo.test(zn)}(x)?function ur(zn){return zn.match(js)||[]}(x):function ga(zn){return zn.match(ln)||[]}(x):x.match(k)||[]}var Cd=Wo(function(x,k){try{return wi(x,n,k)}catch(_e){return Zl(_e)?_e:new ji(_e)}}),ou=ac(function(x,k){return Nt(k,function(_e){_e=md(_e),$l(x,_e,Jr(x[_e],x))}),x});function ah(x){return function(){return x}}var Ru=Th(),Xp=Th(!0);function bl(x){return x}function su(x){return Yt("function"==typeof x?x:vl(x,1))}var rg=Wo(function(x,k){return function(_e){return Wc(_e,x,k)}}),og=Wo(function(x,k){return function(_e){return Wc(x,_e,k)}});function ep(x,k,_e){var lt=Wa(k),Wt=Nc(k,lt);null==_e&&(!Ia(k)||!Wt.length&&lt.length)&&(_e=k,k=x,x=this,Wt=Nc(k,Wa(k)));var an=!(Ia(_e)&&"chain"in _e&&!_e.chain),xn=Zc(x);return Nt(Wt,function(qn){var hi=k[qn];x[qn]=hi,xn&&(x.prototype[qn]=function(){var qi=this.__chain__;if(an||qi){var tr=x(this.__wrapped__);return(tr.__actions__=yl(this.__actions__)).push({func:hi,args:arguments,thisArg:x}),tr.__chain__=qi,tr}return hi.apply(x,Ji([this.value()],arguments))})}),x}function lh(){}var Md=xh(oi),wc=xh(Xt),Cl=xh(Pr);function ms(x){return Ph(x)?mt(md(x)):function Ha(x){return function(k){return Vl(k,x)}}(x)}var av=sf(),ag=sf(!0);function ch(){return[]}function jg(){return!1}var Sm=Qd(function(x,k){return x+k},0),lv=ll("ceil"),Fm=Qd(function(x,k){return x/k},1),cv=ll("floor"),N=Qd(function(x,k){return x*k},1),Ce=ll("round"),ft=Qd(function(x,k){return x-k},0);return en.after=function Sl(x,k){if("function"!=typeof k)throw new Ks(A);return x=Xo(x),function(){if(--x<1)return k.apply(this,arguments)}},en.ary=Wh,en.assign=Ng,en.assignIn=Xf,en.assignInWith=Qf,en.assignWith=Yd,en.at=kg,en.before=Dc,en.bind=Jr,en.bindAll=ou,en.bindKey=Lf,en.castArray=function el(){if(!arguments.length)return[];var x=arguments[0];return qo(x)?x:[x]},en.chain=Xu,en.chunk=function Wu(x,k,_e){k=(_e?Rl(x,k,_e):k===n)?1:Ye(Xo(k),0);var lt=null==x?0:x.length;if(!lt||k<1)return[];for(var Wt=0,an=0,xn=Kn(Se(lt/k));Wt<lt;)xn[an++]=ja(x,Wt,Wt+=k);return xn},en.compact=function pf(x){for(var k=-1,_e=null==x?0:x.length,lt=0,Wt=[];++k<_e;){var an=x[k];an&&(Wt[lt++]=an)}return Wt},en.concat=function ff(){var x=arguments.length;if(!x)return[];for(var k=Kn(x-1),_e=arguments[0],lt=x;lt--;)k[lt-1]=arguments[lt];return Ji(qo(_e)?yl(_e):[_e],Fo(k,1))},en.cond=function Ed(x){var k=null==x?0:x.length,_e=Mo();return x=k?oi(x,function(lt){if("function"!=typeof lt[1])throw new Ks(A);return[_e(lt[0]),lt[1]]}):[],Wo(function(lt){for(var Wt=-1;++Wt<k;){var an=x[Wt];if(wi(an[0],this,lt))return wi(an[1],this,lt)}})},en.conforms=function $d(x){return function Yc(x){var k=Wa(x);return function(_e){return ad(_e,x,k)}}(vl(x,1))},en.constant=ah,en.countBy=Hh,en.create=function Zf(x,k){var _e=Ir(x);return null==k?_e:zd(_e,k)},en.curry=function $h(x,k,_e){var lt=Rs(x,8,n,n,n,n,n,k=_e?n:k);return lt.placeholder=$h.placeholder,lt},en.curryRight=function Nf(x,k,_e){var lt=Rs(x,16,n,n,n,n,n,k=_e?n:k);return lt.placeholder=Nf.placeholder,lt},en.debounce=zh,en.defaults=Fg,en.defaultsDeep=Yp,en.defer=qu,en.delay=Np,en.difference=Rh,en.differenceBy=Qs,en.differenceWith=us,en.drop=function _d(x,k,_e){var lt=null==x?0:x.length;return lt?ja(x,(k=_e||k===n?1:Xo(k))<0?0:k,lt):[]},en.dropRight=function Vc(x,k,_e){var lt=null==x?0:x.length;return lt?ja(x,0,(k=lt-(k=_e||k===n?1:Xo(k)))<0?0:k):[]},en.dropRightWhile=function gp(x,k){return x&&x.length?Uu(x,Mo(k,3),!0,!0):[]},en.dropWhile=function mp(x,k){return x&&x.length?Uu(x,Mo(k,3),!0):[]},en.fill=function bu(x,k,_e,lt){var Wt=null==x?0:x.length;return Wt?(_e&&"number"!=typeof _e&&Rl(x,k,_e)&&(_e=0,lt=Wt),function cu(x,k,_e,lt){var Wt=x.length;for((_e=Xo(_e))<0&&(_e=-_e>Wt?0:Wt+_e),(lt=lt===n||lt>Wt?Wt:Xo(lt))<0&&(lt+=Wt),lt=_e>lt?0:bd(lt);_e<lt;)x[_e++]=k;return x}(x,k,_e,lt)):[]},en.filter=function Qc(x,k){return(qo(x)?St:Lc)(x,Mo(k,3))},en.flatMap=function jh(x,k){return Fo(Mu(x,k),1)},en.flatMapDeep=function Cu(x,k){return Fo(Mu(x,k),ge)},en.flatMapDepth=function Op(x,k,_e){return _e=_e===n?1:Xo(_e),Fo(Mu(x,k),_e)},en.flatten=Gc,en.flattenDeep=function gf(x){return null!=x&&x.length?Fo(x,ge):[]},en.flattenDepth=function mf(x,k){return null!=x&&x.length?Fo(x,k=k===n?1:Xo(k)):[]},en.flip=function qa(x){return Rs(x,512)},en.flow=Ru,en.flowRight=Xp,en.fromPairs=function vf(x){for(var k=-1,_e=null==x?0:x.length,lt={};++k<_e;){var Wt=x[k];lt[Wt[0]]=Wt[1]}return lt},en.functions=function qf(x){return null==x?[]:Nc(x,Wa(x))},en.functionsIn=function Bg(x){return null==x?[]:Nc(x,Ll(x))},en.groupBy=If,en.initial=function yf(x){return null!=x&&x.length?ja(x,0,-1):[]},en.intersection=dl,en.intersectionBy=$u,en.intersectionWith=vp,en.invert=gm,en.invertBy=mm,en.invokeMap=Zu,en.iteratee=su,en.keyBy=Ag,en.keys=Wa,en.keysIn=Ll,en.map=Mu,en.mapKeys=function Jh(x,k){var _e={};return k=Mo(k,3),la(x,function(lt,Wt,an){$l(_e,k(lt,Wt,an),lt)}),_e},en.mapValues=function rh(x,k){var _e={};return k=Mo(k,3),la(x,function(lt,Wt,an){$l(_e,Wt,k(lt,Wt,an))}),_e},en.matches=function ig(x){return vo(vl(x,1))},en.matchesProperty=function Qp(x,k){return Is(x,vl(k,1))},en.memoize=Tu,en.merge=zp,en.mergeWith=Kp,en.method=rg,en.methodOf=og,en.mixin=ep,en.negate=tu,en.nthArg=function $o(x){return x=Xo(x),Wo(function(k){return Pl(k,x)})},en.omit=Vg,en.omitBy=function Gg(x,k){return tg(x,tu(Mo(k)))},en.once=function kp(x){return Dc(2,x)},en.orderBy=function Tg(x,k,_e,lt){return null==x?[]:(qo(k)||(k=null==k?[]:[k]),qo(_e=lt?n:_e)||(_e=null==_e?[]:[_e]),kc(x,k,_e))},en.over=Md,en.overArgs=nu,en.overEvery=wc,en.overSome=Cl,en.partial=kf,en.partialRight=Dg,en.partition=xg,en.pick=oh,en.pickBy=tg,en.property=ms,en.propertyOf=function sg(x){return function(k){return null==x?n:Vl(x,k)}},en.pull=_p,en.pullAll=bf,en.pullAllBy=function yp(x,k,_e){return x&&x.length&&k&&k.length?yc(x,k,Mo(_e,2)):x},en.pullAllWith=function fg(x,k,_e){return x&&x.length&&k&&k.length?yc(x,k,n,_e):x},en.pullAt=Sp,en.range=av,en.rangeRight=ag,en.rearg=Ff,en.reject=function Ip(x,k){return(qo(x)?St:Lc)(x,tu(Mo(k,3)))},en.remove=function Cf(x,k){var _e=[];if(!x||!x.length)return _e;var lt=-1,Wt=[],an=x.length;for(k=Mo(k,3);++lt<an;){var xn=x[lt];k(xn,lt,x)&&(_e.push(xn),Wt.push(lt))}return Xd(x,Wt),_e},en.rest=function Fp(x,k){if("function"!=typeof x)throw new Ks(A);return Wo(x,k=k===n?k:Xo(k))},en.reverse=qd,en.sampleSize=function Au(x,k,_e){return k=(_e?Rl(x,k,_e):k===n)?1:Xo(k),(qo(x)?ko:hd)(x,k)},en.set=function $a(x,k,_e){return null==x?x:pd(x,k,_e)},en.setWith=function jc(x,k,_e,lt){return lt="function"==typeof lt?lt:n,null==x?x:pd(x,k,_e,lt)},en.shuffle=function Yh(x){return(qo(x)?ya:hu)(x)},en.slice=function gg(x,k,_e){var lt=null==x?0:x.length;return lt?(_e&&"number"!=typeof _e&&Rl(x,k,_e)?(k=0,_e=lt):(k=null==k?0:Xo(k),_e=_e===n?lt:Xo(_e)),ja(x,k,_e)):[]},en.sortBy=Rp,en.sortedUniq=function zu(x){return x&&x.length?_h(x):[]},en.sortedUniqBy=function Tf(x,k){return x&&x.length?_h(x,Mo(k,2)):[]},en.split=function wo(x,k,_e){return _e&&"number"!=typeof _e&&Rl(x,k,_e)&&(k=_e=n),(_e=_e===n?xe:_e>>>0)?(x=Fs(x))&&("string"==typeof k||null!=k&&!zf(k))&&!(k=sl(k))&&pr(x)?Ms(Ht(x),0,_e):x.split(k,_e):[]},en.spread=function Uf(x,k){if("function"!=typeof x)throw new Ks(A);return k=null==k?0:Ye(Xo(k),0),Wo(function(_e){var lt=_e[k],Wt=Ms(_e,0,k);return lt&&Ji(Wt,lt),wi(x,this,Wt)})},en.tail=function xf(x){var k=null==x?0:x.length;return k?ja(x,1,k):[]},en.take=function Fh(x,k,_e){return x&&x.length?ja(x,0,(k=_e||k===n?1:Xo(k))<0?0:k):[]},en.takeRight=function bp(x,k,_e){var lt=null==x?0:x.length;return lt?ja(x,(k=lt-(k=_e||k===n?1:Xo(k)))<0?0:k,lt):[]},en.takeRightWhile=function Df(x,k){return x&&x.length?Uu(x,Mo(k,3),!1,!0):[]},en.takeWhile=function _g(x,k){return x&&x.length?Uu(x,Mo(k,3)):[]},en.tap=function Jg(x,k){return k(x),x},en.throttle=function Bf(x,k,_e){var lt=!0,Wt=!0;if("function"!=typeof x)throw new Ks(A);return Ia(_e)&&(lt="leading"in _e?!!_e.leading:lt,Wt="trailing"in _e?!!_e.trailing:Wt),zh(x,k,{leading:lt,maxWait:k,trailing:Wt})},en.thru=Vh,en.toArray=jp,en.toPairs=ng,en.toPairsIn=Hg,en.toPath=function Nm(x){return qo(x)?oi(x,md):uc(x)?[x]:yl(fp(Fs(x)))},en.toPlainObject=ru,en.transform=function Iu(x,k,_e){var lt=qo(x),Wt=lt||Gd(x)||jd(x);if(k=Mo(k,4),null==_e){var an=x&&x.constructor;_e=Wt?lt?new an:[]:Ia(x)&&Zc(an)?Ir(Fl(x)):{}}return(Wt?Nt:la)(x,function(xn,qn,hi){return k(_e,xn,qn,hi)}),_e},en.unary=function Og(x){return Wh(x,1)},en.union=yg,en.unionBy=Sg,en.unionWith=Ku,en.uniq=function bg(x){return x&&x.length?$c(x):[]},en.uniqBy=function Of(x,k){return x&&x.length?$c(x,Mo(k,2)):[]},en.uniqWith=function Cp(x,k){return k="function"==typeof k?k:n,x&&x.length?$c(x,n,k):[]},en.unset=function vm(x,k){return null==x||yh(x,k)},en.unzip=Ep,en.unzipWith=Uh,en.update=function _m(x,k,_e){return null==x?x:Fu(x,k,Bu(_e))},en.updateWith=function i(x,k,_e,lt){return lt="function"==typeof lt?lt:n,null==x?x:Fu(x,k,Bu(_e),lt)},en.values=p,en.valuesIn=function w(x){return null==x?[]:Ui(x,Ll(x))},en.without=Cg,en.words=hc,en.wrap=function Vf(x,k){return kf(Bu(k),x)},en.xor=Mp,en.xorBy=Ap,en.xorWith=Tp,en.zip=yd,en.zipObject=function xp(x,k){return Sh(x||[],k||[],kr)},en.zipObjectDeep=function Pf(x,k){return Sh(x||[],k||[],pd)},en.zipWith=Bh,en.entries=ng,en.entriesIn=Hg,en.extend=Xf,en.extendWith=Qf,ep(en,en),en.add=Sm,en.attempt=Cd,en.camelCase=He,en.capitalize=ct,en.ceil=lv,en.clamp=function V(x,k,_e){return _e===n&&(_e=k,k=n),_e!==n&&(_e=(_e=Pc(_e))==_e?_e:0),k!==n&&(k=(k=Pc(k))==k?k:0),sd(Pc(x),k,_e)},en.clone=function Gf(x){return vl(x,4)},en.cloneDeep=function Oc(x){return vl(x,5)},en.cloneDeepWith=function Hf(x,k){return vl(x,5,k="function"==typeof k?k:n)},en.cloneWith=function em(x,k){return vl(x,4,k="function"==typeof k?k:n)},en.conformsTo=function jf(x,k){return null==k||ad(x,k,Wa(k))},en.deburr=Ut,en.defaultTo=function qh(x,k){return null==x||x!=x?k:x},en.divide=Fm,en.endsWith=function Lt(x,k,_e){x=Fs(x),k=sl(k);var lt=x.length,Wt=_e=_e===n?lt:sd(Xo(_e),0,lt);return(_e-=k.length)>=0&&x.slice(_e,Wt)==k},en.eq=tl,en.escape=function qt(x){return(x=Fs(x))&&bt.test(x)?x.replace(Et,Na):x},en.escapeRegExp=function on(x){return(x=Fs(x))&&Cn.test(x)?x.replace(Tn,"\\$&"):x},en.every=function Bd(x,k,_e){var lt=qo(x)?Xt:Ol;return _e&&Rl(x,k,_e)&&(k=n),lt(x,Mo(k,3))},en.find=Vd,en.findIndex=Ud,en.findKey=function Jf(x,k){return Ns(x,Mo(k,3),la)},en.findLast=eu,en.findLastIndex=cl,en.findLastKey=function Wp(x,k){return Ns(x,Mo(k,3),mc)},en.floor=cv,en.forEach=Qu,en.forEachRight=Hc,en.forIn=function $p(x,k){return null==x?x:ld(x,Mo(k,3),Ll)},en.forInRight=function Ws(x,k){return null==x?x:Ad(x,Mo(k,3),Ll)},en.forOwn=function Ug(x,k){return x&&la(x,Mo(k,3))},en.forOwnRight=function im(x,k){return x&&mc(x,Mo(k,3))},en.get=rm,en.gt=eh,en.gte=Yf,en.has=function eg(x,k){return null!=x&&ju(x,k,xd)},en.hasIn=Wd,en.head=Lh,en.identity=bl,en.includes=function Eu(x,k,_e,lt){x=dc(x)?x:p(x),_e=_e&&!lt?Xo(_e):0;var Wt=x.length;return _e<0&&(_e=Ye(Wt+_e,0)),Zh(x)?_e<=Wt&&x.indexOf(k,_e)>-1:!!Wt&&Os(x,k,_e)>-1},en.indexOf=function _f(x,k,_e){var lt=null==x?0:x.length;if(!lt)return-1;var Wt=null==_e?0:Xo(_e);return Wt<0&&(Wt=Ye(lt+Wt,0)),Os(x,k,Wt)},en.inRange=function ae(x,k,_e){return k=Sd(k),_e===n?(_e=k,k=0):_e=Sd(_e),function mh(x,k,_e){return x>=vt(k,_e)&&x<Ye(k,_e)}(x=Pc(x),k,_e)},en.invoke=om,en.isArguments=xu,en.isArray=qo,en.isArrayBuffer=tm,en.isArrayLike=dc,en.isArrayLikeObject=Ya,en.isBoolean=function Du(x){return!0===x||!1===x||Ua(x)&&Aa(x)==oe},en.isBuffer=Gd,en.isDate=Pg,en.isElement=function th(x){return Ua(x)&&1===x.nodeType&&!Pu(x)},en.isEmpty=function nh(x){if(null==x)return!0;if(dc(x)&&(qo(x)||"string"==typeof x||"function"==typeof x.splice||Gd(x)||jd(x)||xu(x)))return!x.length;var k=ua(x);if(k==K||k==de)return!x.size;if(yu(x))return!un(x).length;for(var _e in x)if(Ho.call(x,_e))return!1;return!0},en.isEqual=function Kh(x,k){return Gl(x,k)},en.isEqualWith=function Hd(x,k,_e){var lt=(_e="function"==typeof _e?_e:n)?_e(x,k):n;return lt===n?Gl(x,k,n,_e):!!lt},en.isError=Zl,en.isFinite=function Ou(x){return"number"==typeof x&&Ot(x)},en.isFunction=Zc,en.isInteger=ih,en.isLength=Xh,en.isMap=Qh,en.isMatch=function Up(x,k){return x===k||dd(x,k,Il(k))},en.isMatchWith=function wg(x,k,_e){return _e="function"==typeof _e?_e:n,dd(x,k,Il(k),_e)},en.isNaN=function nm(x){return $f(x)&&x!=+x},en.isNative=function Wf(x){if(uf(x))throw new ji("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ss(x)},en.isNil=function Bp(x){return null==x},en.isNull=function Ig(x){return null===x},en.isNumber=$f,en.isObject=Ia,en.isObjectLike=Ua,en.isPlainObject=Pu,en.isRegExp=zf,en.isSafeInteger=function Vp(x){return ih(x)&&x>=-Xe&&x<=Xe},en.isSet=Gp,en.isString=Zh,en.isSymbol=uc,en.isTypedArray=jd,en.isUndefined=function Hp(x){return x===n},en.isWeakMap=function Rg(x){return Ua(x)&&ua(x)==Gt},en.isWeakSet=function Kf(x){return Ua(x)&&"[object WeakSet]"==Aa(x)},en.join=function Nh(x,k){return null==x?"":At.call(x,k)},en.kebabCase=Dn,en.last=As,en.lastIndexOf=function Jd(x,k,_e){var lt=null==x?0:x.length;if(!lt)return-1;var Wt=lt;return _e!==n&&(Wt=(Wt=Xo(_e))<0?Ye(lt+Wt,0):vt(Wt,lt-1)),k==k?function tn(zn,pi,Kn){for(var cr=Kn+1;cr--;)if(zn[cr]===pi)return cr;return cr}(x,k,Wt):ba(x,oa,Wt,!0)},en.lowerCase=Yn,en.lowerFirst=ki,en.lt=wu,en.lte=iu,en.max=function Um(x){return x&&x.length?zl(x,bl,Td):n},en.maxBy=function dv(x,k){return x&&x.length?zl(x,Mo(k,2),Td):n},en.mean=function F(x){return Ft(x,bl)},en.meanBy=function $(x,k){return Ft(x,Mo(k,2))},en.min=function U(x){return x&&x.length?zl(x,bl,zi):n},en.minBy=function b(x,k){return x&&x.length?zl(x,Mo(k,2),zi):n},en.stubArray=ch,en.stubFalse=jg,en.stubObject=function Yg(){return{}},en.stubString=function Wg(){return""},en.stubTrue=function ym(){return!0},en.multiply=N,en.nth=function Sf(x,k){return x&&x.length?Pl(x,Xo(k)):n},en.noConflict=function Zp(){return _s._===this&&(_s._=Ki),this},en.noop=lh,en.now=Lp,en.pad=function Ln(x,k,_e){x=Fs(x);var lt=(k=Xo(k))?xt(x):0;if(!k||lt>=k)return x;var Wt=(k-lt)/2;return gu(we(Wt),_e)+x+gu(Se(Wt),_e)},en.padEnd=function ii(x,k,_e){x=Fs(x);var lt=(k=Xo(k))?xt(x):0;return k&&lt<k?x+gu(k-lt,_e):x},en.padStart=function Zi(x,k,_e){x=Fs(x);var lt=(k=Xo(k))?xt(x):0;return k&&lt<k?gu(k-lt,_e)+x:x},en.parseInt=function nr(x,k,_e){return _e||null==k?k=0:k&&(k=+k),_t(Fs(x).replace(Wn,""),k||0)},en.random=function me(x,k,_e){if(_e&&"boolean"!=typeof _e&&Rl(x,k,_e)&&(k=_e=n),_e===n&&("boolean"==typeof k?(_e=k,k=n):"boolean"==typeof x&&(_e=x,x=n)),x===n&&k===n?(x=0,k=1):(x=Sd(x),k===n?(k=x,x=0):k=Sd(k)),x>k){var lt=x;x=k,k=lt}if(_e||x%1||k%1){var Wt=pt();return vt(x+Wt*(k-x+fa("1e-"+((Wt+"").length-1))),k)}return uu(x,k)},en.reduce=function Pp(x,k,_e){var lt=qo(x)?Ei:kt,Wt=arguments.length<3;return lt(x,Mo(k,4),_e,Wt,Ga)},en.reduceRight=function wp(x,k,_e){var lt=qo(x)?Ee:kt,Wt=arguments.length<3;return lt(x,Mo(k,4),_e,Wt,Za)},en.repeat=function fr(x,k,_e){return k=(_e?Rl(x,k,_e):k===n)?1:Xo(k),ef(Fs(x),k)},en.replace=function So(){var x=arguments,k=Fs(x[0]);return x.length<3?k:k.replace(x[1],x[2])},en.result=function sh(x,k,_e){var lt=-1,Wt=(k=Ta(k,x)).length;for(Wt||(Wt=1,x=n);++lt<Wt;){var an=null==x?n:x[md(k[lt])];an===n&&(lt=Wt,an=_e),x=Zc(an)?an.call(x):an}return x},en.round=Ce,en.runInContext=zn,en.sample=function Rf(x){return(qo(x)?Jo:Hl)(x)},en.size=function xc(x){if(null==x)return 0;if(dc(x))return Zh(x)?xt(x):x.length;var k=ua(x);return k==K||k==de?x.size:un(x).length},en.snakeCase=bo,en.some=function Ju(x,k,_e){var lt=qo(x)?Pr:tp;return _e&&Rl(x,k,_e)&&(k=n),lt(x,Mo(k,3))},en.sortedIndex=function Ef(x,k){return Fc(x,k)},en.sortedIndexBy=function mg(x,k,_e){return vh(x,k,Mo(_e,2))},en.sortedIndexOf=function vg(x,k){var _e=null==x?0:x.length;if(_e){var lt=Fc(x,k);if(lt<_e&&tl(x[lt],k))return lt}return-1},en.sortedLastIndex=function Mf(x,k){return Fc(x,k,!0)},en.sortedLastIndexBy=function kh(x,k,_e){return vh(x,k,Mo(_e,2),!0)},en.sortedLastIndexOf=function Af(x,k){if(null!=x&&x.length){var lt=Fc(x,k,!0)-1;if(tl(x[lt],k))return lt}return-1},en.startCase=es,en.startsWith=function ha(x,k,_e){return x=Fs(x),_e=null==_e?0:sd(Xo(_e),0,x.length),k=sl(k),x.slice(_e,_e+k.length)==k},en.subtract=ft,en.sum=function Jt(x){return x&&x.length?lr(x,bl):0},en.sumBy=function wn(x,k){return x&&x.length?lr(x,Mo(k,2)):0},en.template=function hs(x,k,_e){var lt=en.templateSettings;_e&&Rl(x,k,_e)&&(k=n),x=Fs(x),k=Qf({},k,lt,sp);var qn,hi,Wt=Qf({},k.imports,lt.imports,sp),an=Wa(Wt),xn=Ui(Wt,an),qi=0,tr=k.interpolate||Pi,sr="__p += '",Rr=go((k.escape||Pi).source+"|"+tr.source+"|"+(tr===rn?Hi:Pi).source+"|"+(k.evaluate||Pi).source+"|$","g"),zr="//# sourceURL="+(Ho.call(k,"sourceURL")?(k.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ys+"]")+"\n";x.replace(Rr,function(qr,rs,ws,El,Nl,ec){return ws||(ws=El),sr+=x.slice(qi,ec).replace(li,Ko),rs&&(qn=!0,sr+="' +\n__e("+rs+") +\n'"),Nl&&(hi=!0,sr+="';\n"+Nl+";\n__p += '"),ws&&(sr+="' +\n((__t = ("+ws+")) == null ? '' : __t) +\n'"),qi=ec+qr.length,qr}),sr+="';\n";var eo=Ho.call(k,"variable")&&k.variable;if(eo){if(Mn.test(eo))throw new ji("Invalid `variable` option passed into `_.template`")}else sr="with (obj) {\n"+sr+"\n}\n";sr=(hi?sr.replace(Vn,""):sr).replace(ht,"$1").replace(it,"$1;"),sr="function("+(eo||"obj")+") {\n"+(eo?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(qn?", __e = _.escape":"")+(hi?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+sr+"return __p\n}";var Io=Cd(function(){return jr(an,zr+"return "+sr).apply(n,xn)});if(Io.source=sr,Zl(Io))throw Io;return Io},en.times=function sm(x,k){if((x=Xo(x))<1||x>Xe)return[];var _e=xe,lt=vt(x,xe);k=Mo(k),x-=xe;for(var Wt=to(lt,k);++_e<x;)k(_e);return Wt},en.toFinite=Sd,en.toInteger=Xo,en.toLength=bd,en.toLower=function Us(x){return Fs(x).toLowerCase()},en.toNumber=Pc,en.toSafeInteger=function Lg(x){return x?sd(Xo(x),-Xe,Xe):0===x?x:0},en.toString=Fs,en.toUpper=function za(x){return Fs(x).toUpperCase()},en.trim=function nl(x,k,_e){if((x=Fs(x))&&(_e||k===n))return xo(x);if(!x||!(k=sl(k)))return x;var lt=Ht(x),Wt=Ht(k);return Ms(lt,La(lt,Wt),Ps(lt,Wt)+1).join("")},en.trimEnd=function ul(x,k,_e){if((x=Fs(x))&&(_e||k===n))return x.slice(0,ut(x)+1);if(!x||!(k=sl(k)))return x;var lt=Ht(x);return Ms(lt,0,Ps(lt,Ht(k))+1).join("")},en.trimStart=function Gr(x,k,_e){if((x=Fs(x))&&(_e||k===n))return x.replace(Wn,"");if(!x||!(k=sl(k)))return x;var lt=Ht(x);return Ms(lt,La(lt,Ht(k))).join("")},en.truncate=function il(x,k){var _e=30,lt="...";if(Ia(k)){var Wt="separator"in k?k.separator:Wt;_e="length"in k?Xo(k.length):_e,lt="omission"in k?sl(k.omission):lt}var an=(x=Fs(x)).length;if(pr(x)){var xn=Ht(x);an=xn.length}if(_e>=an)return x;var qn=_e-xt(lt);if(qn<1)return lt;var hi=xn?Ms(xn,0,qn).join(""):x.slice(0,qn);if(Wt===n)return hi+lt;if(xn&&(qn+=hi.length-qn),zf(Wt)){if(x.slice(qn).search(Wt)){var qi,tr=hi;for(Wt.global||(Wt=go(Wt.source,Fs(Mr.exec(Wt))+"g")),Wt.lastIndex=0;qi=Wt.exec(tr);)var sr=qi.index;hi=hi.slice(0,sr===n?qn:sr)}}else if(x.indexOf(sl(Wt),qn)!=qn){var Rr=hi.lastIndexOf(Wt);Rr>-1&&(hi=hi.slice(0,Rr))}return hi+lt},en.unescape=function Jl(x){return(x=Fs(x))&&We.test(x)?x.replace(Ct,cn):x},en.uniqueId=function km(x){var k=++Ea;return Fs(x)+k},en.upperCase=ql,en.upperFirst=Wl,en.each=Qu,en.eachRight=Hc,en.first=Lh,ep(en,function(){var x={};return la(en,function(k,_e){Ho.call(en.prototype,_e)||(x[_e]=k)}),x}(),{chain:!1}),en.VERSION="4.17.21",Nt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(x){en[x].placeholder=en}),Nt(["drop","take"],function(x,k){Yr.prototype[x]=function(_e){_e=_e===n?1:Ye(Xo(_e),0);var lt=this.__filtered__&&!k?new Yr(this):this.clone();return lt.__filtered__?lt.__takeCount__=vt(_e,lt.__takeCount__):lt.__views__.push({size:vt(_e,xe),type:x+(lt.__dir__<0?"Right":"")}),lt},Yr.prototype[x+"Right"]=function(_e){return this.reverse()[x](_e).reverse()}}),Nt(["filter","map","takeWhile"],function(x,k){var _e=k+1,lt=1==_e||3==_e;Yr.prototype[x]=function(Wt){var an=this.clone();return an.__iteratees__.push({iteratee:Mo(Wt,3),type:_e}),an.__filtered__=an.__filtered__||lt,an}}),Nt(["head","last"],function(x,k){var _e="take"+(k?"Right":"");Yr.prototype[x]=function(){return this[_e](1).value()[0]}}),Nt(["initial","tail"],function(x,k){var _e="drop"+(k?"":"Right");Yr.prototype[x]=function(){return this.__filtered__?new Yr(this):this[_e](1)}}),Yr.prototype.compact=function(){return this.filter(bl)},Yr.prototype.find=function(x){return this.filter(x).head()},Yr.prototype.findLast=function(x){return this.reverse().find(x)},Yr.prototype.invokeMap=Wo(function(x,k){return"function"==typeof x?new Yr(this):this.map(function(_e){return Wc(_e,x,k)})}),Yr.prototype.reject=function(x){return this.filter(tu(Mo(x)))},Yr.prototype.slice=function(x,k){x=Xo(x);var _e=this;return _e.__filtered__&&(x>0||k<0)?new Yr(_e):(x<0?_e=_e.takeRight(-x):x&&(_e=_e.drop(x)),k!==n&&(_e=(k=Xo(k))<0?_e.dropRight(-k):_e.take(k-x)),_e)},Yr.prototype.takeRightWhile=function(x){return this.reverse().takeWhile(x).reverse()},Yr.prototype.toArray=function(){return this.take(xe)},la(Yr.prototype,function(x,k){var _e=/^(?:filter|find|map|reject)|While$/.test(k),lt=/^(?:head|last)$/.test(k),Wt=en[lt?"take"+("last"==k?"Right":""):k],an=lt||/^find/.test(k);Wt&&(en.prototype[k]=function(){var xn=this.__wrapped__,qn=lt?[1]:arguments,hi=xn instanceof Yr,qi=qn[0],tr=hi||qo(xn),sr=function(rs){var ws=Wt.apply(en,Ji([rs],qn));return lt&&Rr?ws[0]:ws};tr&&_e&&"function"==typeof qi&&1!=qi.length&&(hi=tr=!1);var Rr=this.__chain__,eo=an&&!Rr,Io=hi&&!this.__actions__.length;if(!an&&tr){xn=Io?xn:new Yr(this);var qr=x.apply(xn,qn);return qr.__actions__.push({func:Vh,args:[sr],thisArg:n}),new mr(qr,Rr)}return eo&&Io?x.apply(this,qn):(qr=this.thru(sr),eo?lt?qr.value()[0]:qr.value():qr)})}),Nt(["pop","push","shift","sort","splice","unshift"],function(x){var k=Ca[x],_e=/^(?:push|sort|unshift)$/.test(x)?"tap":"thru",lt=/^(?:pop|shift)$/.test(x);en.prototype[x]=function(){var Wt=arguments;if(lt&&!this.__chain__){var an=this.value();return k.apply(qo(an)?an:[],Wt)}return this[_e](function(xn){return k.apply(qo(xn)?xn:[],Wt)})}}),la(Yr.prototype,function(x,k){var _e=en[k];if(_e){var lt=_e.name+"";Ho.call(fn,lt)||(fn[lt]=[]),fn[lt].push({name:k,func:_e})}}),fn[Id(n,2).name]=[{name:"wrapper",func:n}],Yr.prototype.clone=function jo(){var x=new Yr(this.__wrapped__);return x.__actions__=yl(this.__actions__),x.__dir__=this.__dir__,x.__filtered__=this.__filtered__,x.__iteratees__=yl(this.__iteratees__),x.__takeCount__=this.__takeCount__,x.__views__=yl(this.__views__),x},Yr.prototype.reverse=function ia(){if(this.__filtered__){var x=new Yr(this);x.__dir__=-1,x.__filtered__=!0}else(x=this.clone()).__dir__*=-1;return x},Yr.prototype.value=function aa(){var x=this.__wrapped__.value(),k=this.__dir__,_e=qo(x),lt=k<0,Wt=_e?x.length:0,an=function Ac(x,k,_e){for(var lt=-1,Wt=_e.length;++lt<Wt;){var an=_e[lt],xn=an.size;switch(an.type){case"drop":x+=xn;break;case"dropRight":k-=xn;break;case"take":k=vt(k,x+xn);break;case"takeRight":x=Ye(x,k-xn)}}return{start:x,end:k}}(0,Wt,this.__views__),xn=an.start,qn=an.end,hi=qn-xn,qi=lt?qn:xn-1,tr=this.__iteratees__,sr=tr.length,Rr=0,zr=vt(hi,this.__takeCount__);if(!_e||!lt&&Wt==hi&&zr==hi)return pu(x,this.__actions__);var eo=[];e:for(;hi--&&Rr<zr;){for(var Io=-1,qr=x[qi+=k];++Io<sr;){var rs=tr[Io],El=rs.type,Nl=(0,rs.iteratee)(qr);if(2==El)qr=Nl;else if(!Nl){if(1==El)continue e;break e}}eo[Rr++]=qr}return eo},en.prototype.at=Eg,en.prototype.chain=function wf(){return Xu(this)},en.prototype.commit=function Mg(){return new mr(this.value(),this.__chain__)},en.prototype.next=function qg(){this.__values__===n&&(this.__values__=jp(this.value()));var x=this.__index__>=this.__values__.length;return{done:x,value:x?n:this.__values__[this.__index__++]}},en.prototype.plant=function Ql(x){for(var k,_e=this;_e instanceof Do;){var lt=vd(_e);lt.__index__=0,lt.__values__=n,k?Wt.__wrapped__=lt:k=lt;var Wt=lt;_e=_e.__wrapped__}return Wt.__wrapped__=x,k},en.prototype.reverse=function Dp(){var x=this.__wrapped__;if(x instanceof Yr){var k=x;return this.__actions__.length&&(k=new Yr(this)),(k=k.reverse()).__actions__.push({func:Vh,args:[qd],thisArg:n}),new mr(k,this.__chain__)}return this.thru(qd)},en.prototype.toJSON=en.prototype.valueOf=en.prototype.value=function Gh(){return pu(this.__wrapped__,this.__actions__)},en.prototype.first=en.prototype.head,_&&(en.prototype[_]=function Xc(){return this}),en}();_s._=or,(r=function(){return or}.call(z,c,z,je))!==n&&(je.exports=r)}.call(this)},39165:function(je,z,c){!function(r){"use strict";r.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(v){return/^nm$/i.test(v)},meridiem:function(v,h,f){return v<12?f?"vm":"VM":f?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(v){return v+(1===v||8===v||v>=20?"ste":"de")},week:{dow:1,doy:4}})}(c(10785))},15572:function(je,z,c){!function(r){"use strict";var n=function(M){return 0===M?0:1===M?1:2===M?2:M%100>=3&&M%100<=10?3:M%100>=11?4:5},v={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},h=function(M){return function(T,E,y,S){var l=n(T),s=v[M][n(T)];return 2===l&&(s=s[E?0:1]),s.replace(/%d/i,T)}},f=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];r.defineLocale("ar-dz",{months:f,monthsShort:f,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\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".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\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".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(M){return"\u0645"===M},meridiem:function(M,T,E){return M<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:h("s"),ss:h("s"),m:h("m"),mm:h("m"),h:h("h"),hh:h("h"),d:h("d"),dd:h("d"),M:h("M"),MM:h("M"),y:h("y"),yy:h("y")},postformat:function(M){return M.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(c(10785))},75032:function(je,z,c){!function(r){"use strict";r.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\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".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(c(10785))},6501:function(je,z,c){!function(r){"use strict";var n={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},v=function(T){return 0===T?0:1===T?1:2===T?2:T%100>=3&&T%100<=10?3:T%100>=11?4:5},h={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},f=function(T){return function(E,y,S,l){var s=v(E),u=h[T][v(E)];return 2===s&&(u=u[y?0:1]),u.replace(/%d/i,E)}},A=["\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"];r.defineLocale("ar-ly",{months:A,monthsShort:A,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\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".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\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".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(T){return"\u0645"===T},meridiem:function(T,E,y){return T<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:f("s"),ss:f("s"),m:f("m"),mm:f("m"),h:f("h"),hh:f("h"),d:f("d"),dd:f("d"),M:f("M"),MM:f("M"),y:f("y"),yy:f("y")},preparse:function(T){return T.replace(/\u060c/g,",")},postformat:function(T){return T.replace(/\d/g,function(E){return n[E]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(c(10785))},67844:function(je,z,c){!function(r){"use strict";r.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\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".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(c(10785))},76694:function(je,z,c){!function(r){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},v={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};r.defineLocale("ar-sa",{months:"\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".split("_"),monthsShort:"\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".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\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".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\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".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(f){return"\u0645"===f},meridiem:function(f,A,M){return f<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(f){return f.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(A){return v[A]}).replace(/\u060c/g,",")},postformat:function(f){return f.replace(/\d/g,function(A){return n[A]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(c(10785))},35944:function(je,z,c){!function(r){"use strict";r.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\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".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\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".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(c(10785))},69041:function(je,z,c){!function(r){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},v={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},h=function(E){return 0===E?0:1===E?1:2===E?2:E%100>=3&&E%100<=10?3:E%100>=11?4:5},f={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},A=function(E){return function(y,S,l,s){var u=h(y),m=f[E][h(y)];return 2===u&&(m=m[S?0:1]),m.replace(/%d/i,y)}},M=["\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"];r.defineLocale("ar",{months:M,monthsShort:M,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\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".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\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".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(E){return"\u0645"===E},meridiem:function(E,y,S){return E<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:A("s"),ss:A("s"),m:A("m"),mm:A("m"),h:A("h"),hh:A("h"),d:A("d"),dd:A("d"),M:A("M"),MM:A("M"),y:A("y"),yy:A("y")},preparse:function(E){return E.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(y){return v[y]}).replace(/\u060c/g,",")},postformat:function(E){return E.replace(/\d/g,function(y){return n[y]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(c(10785))},68873:function(je,z,c){!function(r){"use strict";var n={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};r.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(h){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(h)},meridiem:function(h,f,A){return h<4?"gec\u0259":h<12?"s\u0259h\u0259r":h<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(h){if(0===h)return h+"-\u0131nc\u0131";var f=h%10;return h+(n[f]||n[h%100-f]||n[h>=100?100:null])},week:{dow:1,doy:7}})}(c(10785))},61219:function(je,z,c){!function(r){"use strict";function v(f,A,M){return"m"===M?A?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===M?A?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":f+" "+function n(f,A){var M=f.split("_");return A%10==1&&A%100!=11?M[0]:A%10>=2&&A%10<=4&&(A%100<10||A%100>=20)?M[1]:M[2]}({ss:A?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:A?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:A?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[M],+f)}r.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:v,mm:v,h:v,hh:v,d:"\u0434\u0437\u0435\u043d\u044c",dd:v,M:"\u043c\u0435\u0441\u044f\u0446",MM:v,y:"\u0433\u043e\u0434",yy:v},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(f){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(f)},meridiem:function(f,A,M){return f<4?"\u043d\u043e\u0447\u044b":f<12?"\u0440\u0430\u043d\u0456\u0446\u044b":f<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(f,A){switch(A){case"M":case"d":case"DDD":case"w":case"W":return f%10!=2&&f%10!=3||f%100==12||f%100==13?f+"-\u044b":f+"-\u0456";case"D":return f+"-\u0433\u0430";default:return f}},week:{dow:1,doy:7}})}(c(10785))},86533:function(je,z,c){!function(r){"use strict";r.defineLocale("bg",{months:"\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".split("_"),monthsShort:"\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".split("_"),weekdays:"\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".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(v){var h=v%10,f=v%100;return 0===v?v+"-\u0435\u0432":0===f?v+"-\u0435\u043d":f>10&&f<20?v+"-\u0442\u0438":1===h?v+"-\u0432\u0438":2===h?v+"-\u0440\u0438":7===h||8===h?v+"-\u043c\u0438":v+"-\u0442\u0438"},week:{dow:1,doy:7}})}(c(10785))},78347:function(je,z,c){!function(r){"use strict";r.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(c(10785))},1817:function(je,z,c){!function(r){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},v={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};r.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(f){return f.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(A){return v[A]})},postformat:function(f){return f.replace(/\d/g,function(A){return n[A]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(f,A){return 12===f&&(f=0),"\u09b0\u09be\u09a4"===A?f<4?f:f+12:"\u09ad\u09cb\u09b0"===A||"\u09b8\u0995\u09be\u09b2"===A?f:"\u09a6\u09c1\u09aa\u09c1\u09b0"===A?f>=3?f:f+12:"\u09ac\u09bf\u0995\u09be\u09b2"===A||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===A?f+12:void 0},meridiem:function(f,A,M){return f<4?"\u09b0\u09be\u09a4":f<6?"\u09ad\u09cb\u09b0":f<12?"\u09b8\u0995\u09be\u09b2":f<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":f<18?"\u09ac\u09bf\u0995\u09be\u09b2":f<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(c(10785))},71246:function(je,z,c){!function(r){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},v={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};r.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(f){return f.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(A){return v[A]})},postformat:function(f){return f.replace(/\d/g,function(A){return n[A]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(f,A){return 12===f&&(f=0),"\u09b0\u09be\u09a4"===A&&f>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===A&&f<5||"\u09ac\u09bf\u0995\u09be\u09b2"===A?f+12:f},meridiem:function(f,A,M){return f<4?"\u09b0\u09be\u09a4":f<10?"\u09b8\u0995\u09be\u09b2":f<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":f<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(c(10785))},20557:function(je,z,c){!function(r){"use strict";var n={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},v={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};r.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(f){return f.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(A){return v[A]})},postformat:function(f){return f.replace(/\d/g,function(A){return n[A]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(f,A){return 12===f&&(f=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===A&&f>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===A&&f<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===A?f+12:f},meridiem:function(f,A,M){return f<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":f<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":f<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":f<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(c(10785))},37418:function(je,z,c){!function(r){"use strict";function n(m,I,R){return m+" "+function f(m,I){return 2===I?function A(m){var I={m:"v",b:"v",d:"z"};return void 0===I[m.charAt(0)]?m:I[m.charAt(0)]+m.substring(1)}(m):m}({mm:"munutenn",MM:"miz",dd:"devezh"}[R],m)}function h(m){return m>9?h(m%10):m}var M=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],T=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,s=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];r.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:s,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:s,monthsRegex:T,monthsShortRegex:T,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:n,h:"un eur",hh:"%d eur",d:"un devezh",dd:n,M:"ur miz",MM:n,y:"ur bloaz",yy:function v(m){switch(h(m)){case 1:case 3:case 4:case 5:case 9:return m+" bloaz";default:return m+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(m){return m+(1===m?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(m){return"g.m."===m},meridiem:function(m,I,R){return m<12?"a.m.":"g.m."}})}(c(10785))},7673:function(je,z,c){!function(r){"use strict";function n(h,f,A){var M=h+" ";switch(A){case"ss":return M+(1===h?"sekunda":2===h||3===h||4===h?"sekunde":"sekundi");case"m":return f?"jedna minuta":"jedne minute";case"mm":return M+(1===h?"minuta":2===h||3===h||4===h?"minute":"minuta");case"h":return f?"jedan sat":"jednog sata";case"hh":return M+(1===h?"sat":2===h||3===h||4===h?"sata":"sati");case"dd":return M+(1===h?"dan":"dana");case"MM":return M+(1===h?"mjesec":2===h||3===h||4===h?"mjeseca":"mjeseci");case"yy":return M+(1===h?"godina":2===h||3===h||4===h?"godine":"godina")}}r.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(c(10785))},51862:function(je,z,c){!function(r){"use strict";r.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(v,h){var f=1===v?"r":2===v?"n":3===v?"r":4===v?"t":"\xe8";return("w"===h||"W"===h)&&(f="a"),v+f},week:{dow:1,doy:4}})}(c(10785))},9980:function(je,z,c){!function(r){"use strict";var n={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},v="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),h=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],f=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function A(E){return E>1&&E<5&&1!=~~(E/10)}function M(E,y,S,l){var s=E+" ";switch(S){case"s":return y||l?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return y||l?s+(A(E)?"sekundy":"sekund"):s+"sekundami";case"m":return y?"minuta":l?"minutu":"minutou";case"mm":return y||l?s+(A(E)?"minuty":"minut"):s+"minutami";case"h":return y?"hodina":l?"hodinu":"hodinou";case"hh":return y||l?s+(A(E)?"hodiny":"hodin"):s+"hodinami";case"d":return y||l?"den":"dnem";case"dd":return y||l?s+(A(E)?"dny":"dn\xed"):s+"dny";case"M":return y||l?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return y||l?s+(A(E)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):s+"m\u011bs\xedci";case"y":return y||l?"rok":"rokem";case"yy":return y||l?s+(A(E)?"roky":"let"):s+"lety"}}r.defineLocale("cs",{months:n,monthsShort:v,monthsRegex:f,monthsShortRegex:f,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},57479:function(je,z,c){!function(r){"use strict";r.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(v){return v+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(v)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(v)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(c(10785))},17998:function(je,z,c){!function(r){"use strict";r.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(v){var f="";return v>20?f=40===v||50===v||60===v||80===v||100===v?"fed":"ain":v>0&&(f=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][v]),v+f},week:{dow:1,doy:4}})}(c(10785))},57045:function(je,z,c){!function(r){"use strict";r.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},66627:function(je,z,c){!function(r){"use strict";function n(h,f,A,M){var T={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[h+" Tage",h+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[h+" Monate",h+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[h+" Jahre",h+" Jahren"]};return f?T[A][0]:T[A][1]}r.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},5061:function(je,z,c){!function(r){"use strict";function n(h,f,A,M){var T={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[h+" Tage",h+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[h+" Monate",h+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[h+" Jahre",h+" Jahren"]};return f?T[A][0]:T[A][1]}r.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},34297:function(je,z,c){!function(r){"use strict";function n(h,f,A,M){var T={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[h+" Tage",h+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[h+" Monate",h+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[h+" Jahre",h+" Jahren"]};return f?T[A][0]:T[A][1]}r.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},87024:function(je,z,c){!function(r){"use strict";var n=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],v=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];r.defineLocale("dv",{months:n,monthsShort:n,weekdays:v,weekdaysShort:v,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(f){return"\u0789\u078a"===f},meridiem:function(f,A,M){return f<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(f){return f.replace(/\u060c/g,",")},postformat:function(f){return f.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(c(10785))},45231:function(je,z,c){!function(r){"use strict";r.defineLocale("el",{monthsNominativeEl:"\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".split("_"),monthsGenitiveEl:"\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".split("_"),months:function(h,f){return h?"string"==typeof f&&/D/.test(f.substring(0,f.indexOf("MMMM")))?this._monthsGenitiveEl[h.month()]:this._monthsNominativeEl[h.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\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".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(h,f,A){return h>11?A?"\u03bc\u03bc":"\u039c\u039c":A?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(h){return"\u03bc"===(h+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(h,f){var A=this._calendarEl[h],M=f&&f.hours();return function n(h){return typeof Function<"u"&&h instanceof Function||"[object Function]"===Object.prototype.toString.call(h)}(A)&&(A=A.apply(f)),A.replace("{}",M%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(c(10785))},22452:function(je,z,c){!function(r){"use strict";r.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var h=v%10;return v+(1==~~(v%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:0,doy:4}})}(c(10785))},98374:function(je,z,c){!function(r){"use strict";r.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var h=v%10;return v+(1==~~(v%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")}})}(c(10785))},92119:function(je,z,c){!function(r){"use strict";r.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var h=v%10;return v+(1==~~(v%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(c(10785))},83964:function(je,z,c){!function(r){"use strict";r.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var h=v%10;return v+(1==~~(v%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(c(10785))},15979:function(je,z,c){!function(r){"use strict";r.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var h=v%10;return v+(1==~~(v%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")}})}(c(10785))},75469:function(je,z,c){!function(r){"use strict";r.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var h=v%10;return v+(1==~~(v%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:0,doy:6}})}(c(10785))},61518:function(je,z,c){!function(r){"use strict";r.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var h=v%10;return v+(1==~~(v%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(c(10785))},34752:function(je,z,c){!function(r){"use strict";r.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var h=v%10;return v+(1==~~(v%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(c(10785))},47746:function(je,z,c){!function(r){"use strict";r.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(v){return"p"===v.charAt(0).toLowerCase()},meridiem:function(v,h,f){return v>11?f?"p.t.m.":"P.T.M.":f?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(c(10785))},38554:function(je,z,c){!function(r){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),v="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),h=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],f=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;r.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(M,T){return M?/-MMM-/.test(T)?v[M.month()]:n[M.month()]:n},monthsRegex:f,monthsShortRegex:f,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(c(10785))},12254:function(je,z,c){!function(r){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),v="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),h=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],f=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;r.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(M,T){return M?/-MMM-/.test(T)?v[M.month()]:n[M.month()]:n},monthsRegex:f,monthsShortRegex:f,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(c(10785))},62267:function(je,z,c){!function(r){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),v="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),h=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],f=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;r.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(M,T){return M?/-MMM-/.test(T)?v[M.month()]:n[M.month()]:n},monthsRegex:f,monthsShortRegex:f,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(c(10785))},34294:function(je,z,c){!function(r){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),v="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),h=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],f=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;r.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(M,T){return M?/-MMM-/.test(T)?v[M.month()]:n[M.month()]:n},monthsRegex:f,monthsShortRegex:f,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(c(10785))},27511:function(je,z,c){!function(r){"use strict";function n(h,f,A,M){var T={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[h+"sekundi",h+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[h+" minuti",h+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[h+" tunni",h+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[h+" kuu",h+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[h+" aasta",h+" aastat"]};return f?T[A][2]?T[A][2]:T[A][1]:M?T[A][0]:T[A][1]}r.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:"%d p\xe4eva",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},86208:function(je,z,c){!function(r){"use strict";r.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(c(10785))},25675:function(je,z,c){!function(r){"use strict";var n={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},v={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};r.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(f){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(f)},meridiem:function(f,A,M){return f<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(f){return f.replace(/[\u06f0-\u06f9]/g,function(A){return v[A]}).replace(/\u060c/g,",")},postformat:function(f){return f.replace(/\d/g,function(A){return n[A]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(c(10785))},8547:function(je,z,c){!function(r){"use strict";var n="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),v=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",n[7],n[8],n[9]];function h(M,T,E,y){var S="";switch(E){case"s":return y?"muutaman sekunnin":"muutama sekunti";case"ss":S=y?"sekunnin":"sekuntia";break;case"m":return y?"minuutin":"minuutti";case"mm":S=y?"minuutin":"minuuttia";break;case"h":return y?"tunnin":"tunti";case"hh":S=y?"tunnin":"tuntia";break;case"d":return y?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":S=y?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return y?"kuukauden":"kuukausi";case"MM":S=y?"kuukauden":"kuukautta";break;case"y":return y?"vuoden":"vuosi";case"yy":S=y?"vuoden":"vuotta"}return function f(M,T){return M<10?T?v[M]:n[M]:M}(M,y)+" "+S}r.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:h,ss:h,m:h,mm:h,h,hh:h,d:h,dd:h,M:h,MM:h,y:h,yy:h},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},79839:function(je,z,c){!function(r){"use strict";r.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(v){return v},week:{dow:1,doy:4}})}(c(10785))},35721:function(je,z,c){!function(r){"use strict";r.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},85207:function(je,z,c){!function(r){"use strict";r.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(v,h){switch(h){default:case"M":case"Q":case"D":case"DDD":case"d":return v+(1===v?"er":"e");case"w":case"W":return v+(1===v?"re":"e")}}})}(c(10785))},75688:function(je,z,c){!function(r){"use strict";r.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(v,h){switch(h){default:case"M":case"Q":case"D":case"DDD":case"d":return v+(1===v?"er":"e");case"w":case"W":return v+(1===v?"re":"e")}},week:{dow:1,doy:4}})}(c(10785))},22270:function(je,z,c){!function(r){"use strict";var h=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,f=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];r.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:h,monthsShortRegex:h,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:f,longMonthsParse:f,shortMonthsParse:f,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(M,T){switch(T){case"D":return M+(1===M?"er":"");default:case"M":case"Q":case"DDD":case"d":return M+(1===M?"er":"e");case"w":case"W":return M+(1===M?"re":"e")}},week:{dow:1,doy:4}})}(c(10785))},38963:function(je,z,c){!function(r){"use strict";var n="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),v="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");r.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(f,A){return f?/-MMM-/.test(A)?v[f.month()]:n[f.month()]:n},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(f){return f+(1===f||8===f||f>=20?"ste":"de")},week:{dow:1,doy:4}})}(c(10785))},77050:function(je,z,c){!function(r){"use strict";r.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(T){return T+(1===T?"d":T%10==2?"na":"mh")},week:{dow:1,doy:4}})}(c(10785))},28837:function(je,z,c){!function(r){"use strict";r.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(T){return T+(1===T?"d":T%10==2?"na":"mh")},week:{dow:1,doy:4}})}(c(10785))},74253:function(je,z,c){!function(r){"use strict";r.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(v){return 0===v.indexOf("un")?"n"+v:"en "+v},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(c(10785))},25008:function(je,z,c){!function(r){"use strict";function n(h,f,A,M){var T={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[h+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",h+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[h+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",h+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[h+" \u0935\u0930\u093e\u0902\u0928\u0940",h+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[h+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",h+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[h+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",h+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[h+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",h+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return M?T[A][0]:T[A][1]}r.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(h,f){return"D"===f?h+"\u0935\u0947\u0930":h},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(h,f){return 12===h&&(h=0),"\u0930\u093e\u0924\u0940"===f?h<4?h:h+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===f?h:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===f?h>12?h:h+12:"\u0938\u093e\u0902\u091c\u0947"===f?h+12:void 0},meridiem:function(h,f,A){return h<4?"\u0930\u093e\u0924\u0940":h<12?"\u0938\u0915\u093e\u0933\u0940\u0902":h<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":h<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(c(10785))},80523:function(je,z,c){!function(r){"use strict";function n(h,f,A,M){var T={s:["thoddea sekondamni","thodde sekond"],ss:[h+" sekondamni",h+" sekond"],m:["eka mintan","ek minut"],mm:[h+" mintamni",h+" mintam"],h:["eka voran","ek vor"],hh:[h+" voramni",h+" voram"],d:["eka disan","ek dis"],dd:[h+" disamni",h+" dis"],M:["eka mhoinean","ek mhoino"],MM:[h+" mhoineamni",h+" mhoine"],y:["eka vorsan","ek voros"],yy:[h+" vorsamni",h+" vorsam"]};return M?T[A][0]:T[A][1]}r.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(h,f){return"D"===f?h+"er":h},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(h,f){return 12===h&&(h=0),"rati"===f?h<4?h:h+12:"sokallim"===f?h:"donparam"===f?h>12?h:h+12:"sanje"===f?h+12:void 0},meridiem:function(h,f,A){return h<4?"rati":h<12?"sokallim":h<16?"donparam":h<20?"sanje":"rati"}})}(c(10785))},98454:function(je,z,c){!function(r){"use strict";var n={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},v={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};r.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(f){return f.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(A){return v[A]})},postformat:function(f){return f.replace(/\d/g,function(A){return n[A]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(f,A){return 12===f&&(f=0),"\u0ab0\u0abe\u0aa4"===A?f<4?f:f+12:"\u0ab8\u0ab5\u0abe\u0ab0"===A?f:"\u0aac\u0aaa\u0acb\u0ab0"===A?f>=10?f:f+12:"\u0ab8\u0abe\u0a82\u0a9c"===A?f+12:void 0},meridiem:function(f,A,M){return f<4?"\u0ab0\u0abe\u0aa4":f<10?"\u0ab8\u0ab5\u0abe\u0ab0":f<17?"\u0aac\u0aaa\u0acb\u0ab0":f<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(c(10785))},34117:function(je,z,c){!function(r){"use strict";r.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(v){return 2===v?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":v+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(v){return 2===v?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":v+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(v){return 2===v?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":v+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(v){return 2===v?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":v%10==0&&10!==v?v+" \u05e9\u05e0\u05d4":v+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(v){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(v)},meridiem:function(v,h,f){return v<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":v<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":v<12?f?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":v<18?f?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(c(10785))},66737:function(je,z,c){!function(r){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},v={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},h=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];r.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:h,longMonthsParse:h,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(M){return M.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(T){return v[T]})},postformat:function(M){return M.replace(/\d/g,function(T){return n[T]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(M,T){return 12===M&&(M=0),"\u0930\u093e\u0924"===T?M<4?M:M+12:"\u0938\u0941\u092c\u0939"===T?M:"\u0926\u094b\u092a\u0939\u0930"===T?M>=10?M:M+12:"\u0936\u093e\u092e"===T?M+12:void 0},meridiem:function(M,T,E){return M<4?"\u0930\u093e\u0924":M<10?"\u0938\u0941\u092c\u0939":M<17?"\u0926\u094b\u092a\u0939\u0930":M<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(c(10785))},3136:function(je,z,c){!function(r){"use strict";function n(h,f,A){var M=h+" ";switch(A){case"ss":return M+(1===h?"sekunda":2===h||3===h||4===h?"sekunde":"sekundi");case"m":return f?"jedna minuta":"jedne minute";case"mm":return M+(1===h?"minuta":2===h||3===h||4===h?"minute":"minuta");case"h":return f?"jedan sat":"jednog sata";case"hh":return M+(1===h?"sat":2===h||3===h||4===h?"sata":"sati");case"dd":return M+(1===h?"dan":"dana");case"MM":return M+(1===h?"mjesec":2===h||3===h||4===h?"mjeseca":"mjeseci");case"yy":return M+(1===h?"godina":2===h||3===h||4===h?"godine":"godina")}}r.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(c(10785))},3637:function(je,z,c){!function(r){"use strict";var n="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function v(A,M,T,E){var y=A;switch(T){case"s":return E||M?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return y+(E||M)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(E||M?" perc":" perce");case"mm":return y+(E||M?" perc":" perce");case"h":return"egy"+(E||M?" \xf3ra":" \xf3r\xe1ja");case"hh":return y+(E||M?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(E||M?" nap":" napja");case"dd":return y+(E||M?" nap":" napja");case"M":return"egy"+(E||M?" h\xf3nap":" h\xf3napja");case"MM":return y+(E||M?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(E||M?" \xe9v":" \xe9ve");case"yy":return y+(E||M?" \xe9v":" \xe9ve")}return""}function h(A){return(A?"":"[m\xfalt] ")+"["+n[this.day()]+"] LT[-kor]"}r.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(A){return"u"===A.charAt(1).toLowerCase()},meridiem:function(A,M,T){return A<12?!0===T?"de":"DE":!0===T?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return h.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return h.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:v,ss:v,m:v,mm:v,h:v,hh:v,d:v,dd:v,M:v,MM:v,y:v,yy:v},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},48204:function(je,z,c){!function(r){"use strict";r.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(v){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(v)},meridiem:function(v){return v<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":v<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":v<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(v,h){switch(h){case"DDD":case"w":case"W":case"DDDo":return 1===v?v+"-\u056b\u0576":v+"-\u0580\u0564";default:return v}},week:{dow:1,doy:7}})}(c(10785))},51795:function(je,z,c){!function(r){"use strict";r.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(v,h){return 12===v&&(v=0),"pagi"===h?v:"siang"===h?v>=11?v:v+12:"sore"===h||"malam"===h?v+12:void 0},meridiem:function(v,h,f){return v<11?"pagi":v<15?"siang":v<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(c(10785))},17690:function(je,z,c){!function(r){"use strict";function n(f){return f%100==11||f%10!=1}function v(f,A,M,T){var E=f+" ";switch(M){case"s":return A||T?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return n(f)?E+(A||T?"sek\xfandur":"sek\xfandum"):E+"sek\xfanda";case"m":return A?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return n(f)?E+(A||T?"m\xedn\xfatur":"m\xedn\xfatum"):A?E+"m\xedn\xfata":E+"m\xedn\xfatu";case"hh":return n(f)?E+(A||T?"klukkustundir":"klukkustundum"):E+"klukkustund";case"d":return A?"dagur":T?"dag":"degi";case"dd":return n(f)?A?E+"dagar":E+(T?"daga":"d\xf6gum"):A?E+"dagur":E+(T?"dag":"degi");case"M":return A?"m\xe1nu\xf0ur":T?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return n(f)?A?E+"m\xe1nu\xf0ir":E+(T?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):A?E+"m\xe1nu\xf0ur":E+(T?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return A||T?"\xe1r":"\xe1ri";case"yy":return n(f)?E+(A||T?"\xe1r":"\xe1rum"):E+(A||T?"\xe1r":"\xe1ri")}}r.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:v,ss:v,m:v,mm:v,h:"klukkustund",hh:v,d:v,dd:v,M:v,MM:v,y:v,yy:v},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},69127:function(je,z,c){!function(r){"use strict";r.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(v){return(/^[0-9].+$/.test(v)?"tra":"in")+" "+v},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(c(10785))},21379:function(je,z,c){!function(r){"use strict";r.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(c(10785))},48319:function(je,z,c){!function(r){"use strict";r.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(v,h){return"\u5143"===h[1]?1:parseInt(h[1]||v,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(v){return"\u5348\u5f8c"===v},meridiem:function(v,h,f){return v<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(v){return v.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(v){return this.week()!==v.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(v,h){switch(h){case"y":return 1===v?"\u5143\u5e74":v+"\u5e74";case"d":case"D":case"DDD":return v+"\u65e5";default:return v}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(c(10785))},30830:function(je,z,c){!function(r){"use strict";r.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(v,h){return 12===v&&(v=0),"enjing"===h?v:"siyang"===h?v>=11?v:v+12:"sonten"===h||"ndalu"===h?v+12:void 0},meridiem:function(v,h,f){return v<11?"enjing":v<15?"siyang":v<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(c(10785))},25806:function(je,z,c){!function(r){"use strict";r.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(v){return v.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(h,f,A){return"\u10d8"===A?f+"\u10e8\u10d8":f+A+"\u10e8\u10d8"})},past:function(v){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(v)?v.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(v)?v.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):v},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(v){return 0===v?v:1===v?v+"-\u10da\u10d8":v<20||v<=100&&v%20==0||v%100==0?"\u10db\u10d4-"+v:v+"-\u10d4"},week:{dow:1,doy:7}})}(c(10785))},95004:function(je,z,c){!function(r){"use strict";var n={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};r.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(h){return h+(n[h]||n[h%10]||n[h>=100?100:null])},week:{dow:1,doy:7}})}(c(10785))},96250:function(je,z,c){!function(r){"use strict";var n={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},v={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};r.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(f){return"\u179b\u17d2\u1784\u17b6\u1785"===f},meridiem:function(f,A,M){return f<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(f){return f.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(A){return v[A]})},postformat:function(f){return f.replace(/\d/g,function(A){return n[A]})},week:{dow:1,doy:4}})}(c(10785))},99975:function(je,z,c){!function(r){"use strict";var n={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},v={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};r.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(f){return f.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(A){return v[A]})},postformat:function(f){return f.replace(/\d/g,function(A){return n[A]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(f,A){return 12===f&&(f=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===A?f<4?f:f+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===A?f:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===A?f>=10?f:f+12:"\u0cb8\u0c82\u0c9c\u0cc6"===A?f+12:void 0},meridiem:function(f,A,M){return f<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":f<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":f<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":f<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(f){return f+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(c(10785))},75824:function(je,z,c){!function(r){"use strict";r.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(v,h){switch(h){case"d":case"D":case"DDD":return v+"\uc77c";case"M":return v+"\uc6d4";case"w":case"W":return v+"\uc8fc";default:return v}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(v){return"\uc624\ud6c4"===v},meridiem:function(v,h,f){return v<12?"\uc624\uc804":"\uc624\ud6c4"}})}(c(10785))},94482:function(je,z,c){!function(r){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},v={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},h=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];r.defineLocale("ku",{months:h,monthsShort:h,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(A){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(A)},meridiem:function(A,M,T){return A<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(A){return A.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(M){return v[M]}).replace(/\u060c/g,",")},postformat:function(A){return A.replace(/\d/g,function(M){return n[M]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(c(10785))},36886:function(je,z,c){!function(r){"use strict";var n={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};r.defineLocale("ky",{months:"\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".split("_"),monthsShort:"\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_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(h){return h+(n[h]||n[h%10]||n[h>=100?100:null])},week:{dow:1,doy:7}})}(c(10785))},98340:function(je,z,c){!function(r){"use strict";function n(M,T,E,y){var S={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return T?S[E][0]:S[E][1]}function f(M){if(M=parseInt(M,10),isNaN(M))return!1;if(M<0)return!0;if(M<10)return 4<=M&&M<=7;if(M<100){var T=M%10;return f(0===T?M/10:T)}if(M<1e4){for(;M>=10;)M/=10;return f(M)}return f(M/=1e3)}r.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function v(M){return f(M.substr(0,M.indexOf(" ")))?"a "+M:"an "+M},past:function h(M){return f(M.substr(0,M.indexOf(" ")))?"viru "+M:"virun "+M},s:"e puer Sekonnen",ss:"%d Sekonnen",m:n,mm:"%d Minutten",h:n,hh:"%d Stonnen",d:n,dd:"%d Deeg",M:n,MM:"%d M\xe9int",y:n,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},36391:function(je,z,c){!function(r){"use strict";r.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(v){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===v},meridiem:function(v,h,f){return v<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(v){return"\u0e97\u0eb5\u0ec8"+v}})}(c(10785))},29842:function(je,z,c){!function(r){"use strict";var n={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function h(E,y,S,l){return y?A(S)[0]:l?A(S)[1]:A(S)[2]}function f(E){return E%10==0||E>10&&E<20}function A(E){return n[E].split("_")}function M(E,y,S,l){var s=E+" ";return 1===E?s+h(0,y,S[0],l):y?s+(f(E)?A(S)[1]:A(S)[0]):l?s+A(S)[1]:s+(f(E)?A(S)[1]:A(S)[2])}r.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function v(E,y,S,l){return y?"kelios sekund\u0117s":l?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:M,m:h,mm:M,h,hh:M,d:h,dd:M,M:h,MM:M,y:h,yy:M},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(E){return E+"-oji"},week:{dow:1,doy:4}})}(c(10785))},19432:function(je,z,c){!function(r){"use strict";var n={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function v(T,E,y){return y?E%10==1&&E%100!=11?T[2]:T[3]:E%10==1&&E%100!=11?T[0]:T[1]}function h(T,E,y){return T+" "+v(n[y],T,E)}function f(T,E,y){return v(n[y],T,E)}r.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function A(T,E){return E?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:h,m:f,mm:h,h:f,hh:h,d:f,dd:h,M:f,MM:h,y:f,yy:h},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},49832:function(je,z,c){!function(r){"use strict";var n={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(h,f){return 1===h?f[0]:h>=2&&h<=4?f[1]:f[2]},translate:function(h,f,A){var M=n.words[A];return 1===A.length?f?M[0]:M[1]:h+" "+n.correctGrammaticalCase(h,M)}};r.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:"dan",dd:n.translate,M:"mjesec",MM:n.translate,y:"godinu",yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(c(10785))},82124:function(je,z,c){!function(r){"use strict";r.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(c(10785))},77526:function(je,z,c){!function(r){"use strict";r.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\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".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(v){var h=v%10,f=v%100;return 0===v?v+"-\u0435\u0432":0===f?v+"-\u0435\u043d":f>10&&f<20?v+"-\u0442\u0438":1===h?v+"-\u0432\u0438":2===h?v+"-\u0440\u0438":7===h||8===h?v+"-\u043c\u0438":v+"-\u0442\u0438"},week:{dow:1,doy:7}})}(c(10785))},87095:function(je,z,c){!function(r){"use strict";r.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(v,h){return 12===v&&(v=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===h&&v>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===h||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===h?v+12:v},meridiem:function(v,h,f){return v<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":v<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":v<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":v<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(c(10785))},63737:function(je,z,c){!function(r){"use strict";function n(h,f,A,M){switch(A){case"s":return f?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return h+(f?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return h+(f?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return h+(f?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return h+(f?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return h+(f?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return h+(f?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return h}}r.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(h){return"\u04ae\u0425"===h},meridiem:function(h,f,A){return h<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(h,f){switch(f){case"d":case"D":case"DDD":return h+" \u04e9\u0434\u04e9\u0440";default:return h}}})}(c(10785))},76621:function(je,z,c){!function(r){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},v={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function h(A,M,T,E){var y="";if(M)switch(T){case"s":y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":y="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":y="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":y="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":y="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":y="%d \u0924\u093e\u0938";break;case"d":y="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":y="%d \u0926\u093f\u0935\u0938";break;case"M":y="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":y="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":y="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":y="%d \u0935\u0930\u094d\u0937\u0947"}else switch(T){case"s":y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":y="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":y="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":y="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":y="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":y="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":y="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":y="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":y="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":y="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":y="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":y="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return y.replace(/%d/i,A)}r.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:h,ss:h,m:h,mm:h,h,hh:h,d:h,dd:h,M:h,MM:h,y:h,yy:h},preparse:function(A){return A.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(M){return v[M]})},postformat:function(A){return A.replace(/\d/g,function(M){return n[M]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(A,M){return 12===A&&(A=0),"\u092a\u0939\u093e\u091f\u0947"===M||"\u0938\u0915\u093e\u0933\u0940"===M?A:"\u0926\u0941\u092a\u093e\u0930\u0940"===M||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===M||"\u0930\u093e\u0924\u094d\u0930\u0940"===M?A>=12?A:A+12:void 0},meridiem:function(A,M,T){return A>=0&&A<6?"\u092a\u0939\u093e\u091f\u0947":A<12?"\u0938\u0915\u093e\u0933\u0940":A<17?"\u0926\u0941\u092a\u093e\u0930\u0940":A<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(c(10785))},49749:function(je,z,c){!function(r){"use strict";r.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(v,h){return 12===v&&(v=0),"pagi"===h?v:"tengahari"===h?v>=11?v:v+12:"petang"===h||"malam"===h?v+12:void 0},meridiem:function(v,h,f){return v<11?"pagi":v<15?"tengahari":v<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(c(10785))},43662:function(je,z,c){!function(r){"use strict";r.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(v,h){return 12===v&&(v=0),"pagi"===h?v:"tengahari"===h?v>=11?v:v+12:"petang"===h||"malam"===h?v+12:void 0},meridiem:function(v,h,f){return v<11?"pagi":v<15?"tengahari":v<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(c(10785))},4815:function(je,z,c){!function(r){"use strict";r.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(c(10785))},35644:function(je,z,c){!function(r){"use strict";var n={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},v={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};r.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(f){return f.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(A){return v[A]})},postformat:function(f){return f.replace(/\d/g,function(A){return n[A]})},week:{dow:1,doy:4}})}(c(10785))},73926:function(je,z,c){!function(r){"use strict";r.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},93607:function(je,z,c){!function(r){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},v={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};r.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(f){return f.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(A){return v[A]})},postformat:function(f){return f.replace(/\d/g,function(A){return n[A]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(f,A){return 12===f&&(f=0),"\u0930\u093e\u0924\u093f"===A?f<4?f:f+12:"\u092c\u093f\u0939\u093e\u0928"===A?f:"\u0926\u093f\u0909\u0901\u0938\u094b"===A?f>=10?f:f+12:"\u0938\u093e\u0901\u091d"===A?f+12:void 0},meridiem:function(f,A,M){return f<3?"\u0930\u093e\u0924\u093f":f<12?"\u092c\u093f\u0939\u093e\u0928":f<16?"\u0926\u093f\u0909\u0901\u0938\u094b":f<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(c(10785))},54316:function(je,z,c){!function(r){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),v="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),h=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],f=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;r.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(M,T){return M?/-MMM-/.test(T)?v[M.month()]:n[M.month()]:n},monthsRegex:f,monthsShortRegex:f,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(M){return M+(1===M||8===M||M>=20?"ste":"de")},week:{dow:1,doy:4}})}(c(10785))},46232:function(je,z,c){!function(r){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),v="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),h=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],f=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;r.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(M,T){return M?/-MMM-/.test(T)?v[M.month()]:n[M.month()]:n},monthsRegex:f,monthsShortRegex:f,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(M){return M+(1===M||8===M||M>=20?"ste":"de")},week:{dow:1,doy:4}})}(c(10785))},41634:function(je,z,c){!function(r){"use strict";r.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},93118:function(je,z,c){!function(r){"use strict";r.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(v,h){var f=1===v?"r":2===v?"n":3===v?"r":4===v?"t":"\xe8";return("w"===h||"W"===h)&&(f="a"),v+f},week:{dow:1,doy:4}})}(c(10785))},98557:function(je,z,c){!function(r){"use strict";var n={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},v={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};r.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(f){return f.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(A){return v[A]})},postformat:function(f){return f.replace(/\d/g,function(A){return n[A]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(f,A){return 12===f&&(f=0),"\u0a30\u0a3e\u0a24"===A?f<4?f:f+12:"\u0a38\u0a35\u0a47\u0a30"===A?f:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===A?f>=10?f:f+12:"\u0a38\u0a3c\u0a3e\u0a2e"===A?f+12:void 0},meridiem:function(f,A,M){return f<4?"\u0a30\u0a3e\u0a24":f<10?"\u0a38\u0a35\u0a47\u0a30":f<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":f<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(c(10785))},37110:function(je,z,c){!function(r){"use strict";var n="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),v="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),h=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function f(T){return T%10<5&&T%10>1&&~~(T/10)%10!=1}function A(T,E,y){var S=T+" ";switch(y){case"ss":return S+(f(T)?"sekundy":"sekund");case"m":return E?"minuta":"minut\u0119";case"mm":return S+(f(T)?"minuty":"minut");case"h":return E?"godzina":"godzin\u0119";case"hh":return S+(f(T)?"godziny":"godzin");case"ww":return S+(f(T)?"tygodnie":"tygodni");case"MM":return S+(f(T)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return S+(f(T)?"lata":"lat")}}r.defineLocale("pl",{months:function(T,E){return T?/D MMMM/.test(E)?v[T.month()]:n[T.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:A,m:A,mm:A,h:A,hh:A,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:A,M:"miesi\u0105c",MM:A,y:"rok",yy:A},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},95875:function(je,z,c){!function(r){"use strict";r.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(c(10785))},68558:function(je,z,c){!function(r){"use strict";r.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(c(10785))},63741:function(je,z,c){!function(r){"use strict";function n(h,f,A){var T=" ";return(h%100>=20||h>=100&&h%100==0)&&(T=" de "),h+T+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[A]}r.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:n,m:"un minut",mm:n,h:"o or\u0103",hh:n,d:"o zi",dd:n,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:n,M:"o lun\u0103",MM:n,y:"un an",yy:n},week:{dow:1,doy:7}})}(c(10785))},16803:function(je,z,c){!function(r){"use strict";function v(A,M,T){return"m"===T?M?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":A+" "+function n(A,M){var T=A.split("_");return M%10==1&&M%100!=11?T[0]:M%10>=2&&M%10<=4&&(M%100<10||M%100>=20)?T[1]:T[2]}({ss:M?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:M?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[T],+A)}var h=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];r.defineLocale("ru",{months:{format:"\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".split("_"),standalone:"\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".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\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.".split("_")},weekdays:{standalone:"\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".split("_"),format:"\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".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:h,longMonthsParse:h,shortMonthsParse:h,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\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,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(A){if(A.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(A){if(A.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:v,m:v,mm:v,h:"\u0447\u0430\u0441",hh:v,d:"\u0434\u0435\u043d\u044c",dd:v,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:v,M:"\u043c\u0435\u0441\u044f\u0446",MM:v,y:"\u0433\u043e\u0434",yy:v},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(A){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(A)},meridiem:function(A,M,T){return A<4?"\u043d\u043e\u0447\u0438":A<12?"\u0443\u0442\u0440\u0430":A<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(A,M){switch(M){case"M":case"d":case"DDD":return A+"-\u0439";case"D":return A+"-\u0433\u043e";case"w":case"W":return A+"-\u044f";default:return A}},week:{dow:1,doy:4}})}(c(10785))},81481:function(je,z,c){!function(r){"use strict";var n=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],v=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];r.defineLocale("sd",{months:n,monthsShort:n,weekdays:v,weekdaysShort:v,weekdaysMin:v,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(f){return"\u0634\u0627\u0645"===f},meridiem:function(f,A,M){return f<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(f){return f.replace(/\u060c/g,",")},postformat:function(f){return f.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(c(10785))},68954:function(je,z,c){!function(r){"use strict";r.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},21806:function(je,z,c){!function(r){"use strict";r.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(v){return v+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(v){return"\u0db4.\u0dc0."===v||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===v},meridiem:function(v,h,f){return v>11?f?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":f?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(c(10785))},57924:function(je,z,c){!function(r){"use strict";var n="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),v="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function h(M){return M>1&&M<5}function f(M,T,E,y){var S=M+" ";switch(E){case"s":return T||y?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return T||y?S+(h(M)?"sekundy":"sek\xfand"):S+"sekundami";case"m":return T?"min\xfata":y?"min\xfatu":"min\xfatou";case"mm":return T||y?S+(h(M)?"min\xfaty":"min\xfat"):S+"min\xfatami";case"h":return T?"hodina":y?"hodinu":"hodinou";case"hh":return T||y?S+(h(M)?"hodiny":"hod\xedn"):S+"hodinami";case"d":return T||y?"de\u0148":"d\u0148om";case"dd":return T||y?S+(h(M)?"dni":"dn\xed"):S+"d\u0148ami";case"M":return T||y?"mesiac":"mesiacom";case"MM":return T||y?S+(h(M)?"mesiace":"mesiacov"):S+"mesiacmi";case"y":return T||y?"rok":"rokom";case"yy":return T||y?S+(h(M)?"roky":"rokov"):S+"rokmi"}}r.defineLocale("sk",{months:n,monthsShort:v,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:f,ss:f,m:f,mm:f,h:f,hh:f,d:f,dd:f,M:f,MM:f,y:f,yy:f},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},4945:function(je,z,c){!function(r){"use strict";function n(h,f,A,M){var T=h+" ";switch(A){case"s":return f||M?"nekaj sekund":"nekaj sekundami";case"ss":return T+(1===h?f?"sekundo":"sekundi":2===h?f||M?"sekundi":"sekundah":h<5?f||M?"sekunde":"sekundah":"sekund");case"m":return f?"ena minuta":"eno minuto";case"mm":return T+(1===h?f?"minuta":"minuto":2===h?f||M?"minuti":"minutama":h<5?f||M?"minute":"minutami":f||M?"minut":"minutami");case"h":return f?"ena ura":"eno uro";case"hh":return T+(1===h?f?"ura":"uro":2===h?f||M?"uri":"urama":h<5?f||M?"ure":"urami":f||M?"ur":"urami");case"d":return f||M?"en dan":"enim dnem";case"dd":return T+(1===h?f||M?"dan":"dnem":2===h?f||M?"dni":"dnevoma":f||M?"dni":"dnevi");case"M":return f||M?"en mesec":"enim mesecem";case"MM":return T+(1===h?f||M?"mesec":"mesecem":2===h?f||M?"meseca":"mesecema":h<5?f||M?"mesece":"meseci":f||M?"mesecev":"meseci");case"y":return f||M?"eno leto":"enim letom";case"yy":return T+(1===h?f||M?"leto":"letom":2===h?f||M?"leti":"letoma":h<5?f||M?"leta":"leti":f||M?"let":"leti")}}r.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(c(10785))},6710:function(je,z,c){!function(r){"use strict";r.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(v){return"M"===v.charAt(0)},meridiem:function(v,h,f){return v<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},80574:function(je,z,c){!function(r){"use strict";var n={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(h,f){return h%10>=1&&h%10<=4&&(h%100<10||h%100>=20)?h%10==1?f[0]:f[1]:f[2]},translate:function(h,f,A,M){var E,T=n.words[A];return 1===A.length?"y"===A&&f?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":M||f?T[0]:T[1]:(E=n.correctGrammaticalCase(h,T),"yy"===A&&f&&"\u0433\u043e\u0434\u0438\u043d\u0443"===E?h+" \u0433\u043e\u0434\u0438\u043d\u0430":h+" "+E)}};r.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(c(10785))},60531:function(je,z,c){!function(r){"use strict";var n={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(h,f){return h%10>=1&&h%10<=4&&(h%100<10||h%100>=20)?h%10==1?f[0]:f[1]:f[2]},translate:function(h,f,A,M){var E,T=n.words[A];return 1===A.length?"y"===A&&f?"jedna godina":M||f?T[0]:T[1]:(E=n.correctGrammaticalCase(h,T),"yy"===A&&f&&"godinu"===E?h+" godina":h+" "+E)}};r.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(c(10785))},60268:function(je,z,c){!function(r){"use strict";r.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(v,h,f){return v<11?"ekuseni":v<15?"emini":v<19?"entsambama":"ebusuku"},meridiemHour:function(v,h){return 12===v&&(v=0),"ekuseni"===h?v:"emini"===h?v>=11?v:v+12:"entsambama"===h||"ebusuku"===h?0===v?0:v+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(c(10785))},65239:function(je,z,c){!function(r){"use strict";r.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(v){var h=v%10;return v+(1==~~(v%100/10)?":e":1===h||2===h?":a":":e")},week:{dow:1,doy:4}})}(c(10785))},75520:function(je,z,c){!function(r){"use strict";r.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(c(10785))},42373:function(je,z,c){!function(r){"use strict";var n={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},v={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};r.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(f){return f+"\u0bb5\u0ba4\u0bc1"},preparse:function(f){return f.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(A){return v[A]})},postformat:function(f){return f.replace(/\d/g,function(A){return n[A]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(f,A,M){return f<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":f<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":f<10?" \u0b95\u0bbe\u0bb2\u0bc8":f<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":f<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":f<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(f,A){return 12===f&&(f=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===A?f<2?f:f+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===A||"\u0b95\u0bbe\u0bb2\u0bc8"===A||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===A&&f>=10?f:f+12},week:{dow:0,doy:6}})}(c(10785))},26409:function(je,z,c){!function(r){"use strict";r.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(v,h){return 12===v&&(v=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===h?v<4?v:v+12:"\u0c09\u0c26\u0c2f\u0c02"===h?v:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===h?v>=10?v:v+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===h?v+12:void 0},meridiem:function(v,h,f){return v<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":v<10?"\u0c09\u0c26\u0c2f\u0c02":v<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":v<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(c(10785))},39353:function(je,z,c){!function(r){"use strict";r.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(v){var h=v%10;return v+(1==~~(v%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(c(10785))},82919:function(je,z,c){!function(r){"use strict";var n={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};r.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(h,f){return 12===h&&(h=0),"\u0448\u0430\u0431"===f?h<4?h:h+12:"\u0441\u0443\u0431\u04b3"===f?h:"\u0440\u04ef\u0437"===f?h>=11?h:h+12:"\u0431\u0435\u0433\u043e\u04b3"===f?h+12:void 0},meridiem:function(h,f,A){return h<4?"\u0448\u0430\u0431":h<11?"\u0441\u0443\u0431\u04b3":h<16?"\u0440\u04ef\u0437":h<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(h){return h+(n[h]||n[h%10]||n[h>=100?100:null])},week:{dow:1,doy:7}})}(c(10785))},50382:function(je,z,c){!function(r){"use strict";r.defineLocale("th",{months:"\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".split("_"),monthsShort:"\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.".split("_"),monthsParseExact:!0,weekdays:"\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".split("_"),weekdaysShort:"\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_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(v){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===v},meridiem:function(v,h,f){return v<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(c(10785))},11:function(je,z,c){!function(r){"use strict";var n={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};r.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(h,f){switch(f){case"d":case"D":case"Do":case"DD":return h;default:if(0===h)return h+"'unjy";var A=h%10;return h+(n[A]||n[h%100-A]||n[h>=100?100:null])}},week:{dow:1,doy:7}})}(c(10785))},78171:function(je,z,c){!function(r){"use strict";r.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(v){return v},week:{dow:1,doy:4}})}(c(10785))},64720:function(je,z,c){!function(r){"use strict";var n="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function f(T,E,y,S){var l=function A(T){var E=Math.floor(T%1e3/100),y=Math.floor(T%100/10),S=T%10,l="";return E>0&&(l+=n[E]+"vatlh"),y>0&&(l+=(""!==l?" ":"")+n[y]+"maH"),S>0&&(l+=(""!==l?" ":"")+n[S]),""===l?"pagh":l}(T);switch(y){case"ss":return l+" lup";case"mm":return l+" tup";case"hh":return l+" rep";case"dd":return l+" jaj";case"MM":return l+" jar";case"yy":return l+" DIS"}}r.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function v(T){var E=T;return-1!==T.indexOf("jaj")?E.slice(0,-3)+"leS":-1!==T.indexOf("jar")?E.slice(0,-3)+"waQ":-1!==T.indexOf("DIS")?E.slice(0,-3)+"nem":E+" pIq"},past:function h(T){var E=T;return-1!==T.indexOf("jaj")?E.slice(0,-3)+"Hu\u2019":-1!==T.indexOf("jar")?E.slice(0,-3)+"wen":-1!==T.indexOf("DIS")?E.slice(0,-3)+"ben":E+" ret"},s:"puS lup",ss:f,m:"wa\u2019 tup",mm:f,h:"wa\u2019 rep",hh:f,d:"wa\u2019 jaj",dd:f,M:"wa\u2019 jar",MM:f,y:"wa\u2019 DIS",yy:f},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},5196:function(je,z,c){!function(r){"use strict";var n={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};r.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(h,f,A){return h<12?A?"\xf6\xf6":"\xd6\xd6":A?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(h){return"\xf6s"===h||"\xd6S"===h},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(h,f){switch(f){case"d":case"D":case"Do":case"DD":return h;default:if(0===h)return h+"'\u0131nc\u0131";var A=h%10;return h+(n[A]||n[h%100-A]||n[h>=100?100:null])}},week:{dow:1,doy:7}})}(c(10785))},36026:function(je,z,c){!function(r){"use strict";function v(h,f,A,M){var T={s:["viensas secunds","'iensas secunds"],ss:[h+" secunds",h+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[h+" m\xeduts",h+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[h+" \xfeoras",h+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[h+" ziuas",h+" ziuas"],M:["'n mes","'iens mes"],MM:[h+" mesen",h+" mesen"],y:["'n ar","'iens ar"],yy:[h+" ars",h+" ars"]};return M||f?T[A][0]:T[A][1]}r.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(h){return"d'o"===h.toLowerCase()},meridiem:function(h,f,A){return h>11?A?"d'o":"D'O":A?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:v,ss:v,m:v,mm:v,h:v,hh:v,d:v,dd:v,M:v,MM:v,y:v,yy:v},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(10785))},79995:function(je,z,c){!function(r){"use strict";r.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(c(10785))},91081:function(je,z,c){!function(r){"use strict";r.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(c(10785))},94546:function(je,z,c){!function(r){"use strict";r.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(v,h){return 12===v&&(v=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===h||"\u0633\u06d5\u06be\u06d5\u0631"===h||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===h?v:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===h||"\u0643\u06d5\u0686"===h?v+12:v>=11?v:v+12},meridiem:function(v,h,f){var A=100*v+h;return A<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":A<900?"\u0633\u06d5\u06be\u06d5\u0631":A<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":A<1230?"\u0686\u06c8\u0634":A<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(v,h){switch(h){case"d":case"D":case"DDD":return v+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return v+"-\u06be\u06d5\u067e\u062a\u06d5";default:return v}},preparse:function(v){return v.replace(/\u060c/g,",")},postformat:function(v){return v.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(c(10785))},43358:function(je,z,c){!function(r){"use strict";function v(M,T,E){return"m"===E?T?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===E?T?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":M+" "+function n(M,T){var E=M.split("_");return T%10==1&&T%100!=11?E[0]:T%10>=2&&T%10<=4&&(T%100<10||T%100>=20)?E[1]:E[2]}({ss:T?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:T?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:T?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[E],+M)}function f(M){return function(){return M+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}r.defineLocale("uk",{months:{format:"\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".split("_"),standalone:"\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".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function h(M,T){var E={nominative:"\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".split("_"),accusative:"\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".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===M?E.nominative.slice(1,7).concat(E.nominative.slice(0,1)):M?E[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(T)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(T)?"genitive":"nominative"][M.day()]:E.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:f("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:f("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:f("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:f("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return f("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return f("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:v,m:v,mm:v,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:v,d:"\u0434\u0435\u043d\u044c",dd:v,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:v,y:"\u0440\u0456\u043a",yy:v},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(M){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(M)},meridiem:function(M,T,E){return M<4?"\u043d\u043e\u0447\u0456":M<12?"\u0440\u0430\u043d\u043a\u0443":M<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(M,T){switch(T){case"M":case"d":case"DDD":case"w":case"W":return M+"-\u0439";case"D":return M+"-\u0433\u043e";default:return M}},week:{dow:1,doy:7}})}(c(10785))},72773:function(je,z,c){!function(r){"use strict";var n=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],v=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];r.defineLocale("ur",{months:n,monthsShort:n,weekdays:v,weekdaysShort:v,weekdaysMin:v,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(f){return"\u0634\u0627\u0645"===f},meridiem:function(f,A,M){return f<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(f){return f.replace(/\u060c/g,",")},postformat:function(f){return f.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(c(10785))},66999:function(je,z,c){!function(r){"use strict";r.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(c(10785))},23149:function(je,z,c){!function(r){"use strict";r.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(c(10785))},66419:function(je,z,c){!function(r){"use strict";r.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(v){return/^ch$/i.test(v)},meridiem:function(v,h,f){return v<12?f?"sa":"SA":f?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(v){return v},week:{dow:1,doy:4}})}(c(10785))},19943:function(je,z,c){!function(r){"use strict";r.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(v){var h=v%10;return v+(1==~~(v%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(c(10785))},142:function(je,z,c){!function(r){"use strict";r.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(c(10785))},12076:function(je,z,c){!function(r){"use strict";r.defineLocale("zh-cn",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(v,h){return 12===v&&(v=0),"\u51cc\u6668"===h||"\u65e9\u4e0a"===h||"\u4e0a\u5348"===h?v:"\u4e0b\u5348"===h||"\u665a\u4e0a"===h?v+12:v>=11?v:v+12},meridiem:function(v,h,f){var A=100*v+h;return A<600?"\u51cc\u6668":A<900?"\u65e9\u4e0a":A<1130?"\u4e0a\u5348":A<1230?"\u4e2d\u5348":A<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(v){return v.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(v){return this.week()!==v.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(v,h){switch(h){case"d":case"D":case"DDD":return v+"\u65e5";case"M":return v+"\u6708";case"w":case"W":return v+"\u5468";default:return v}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(c(10785))},8556:function(je,z,c){!function(r){"use strict";r.defineLocale("zh-hk",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(v,h){return 12===v&&(v=0),"\u51cc\u6668"===h||"\u65e9\u4e0a"===h||"\u4e0a\u5348"===h?v:"\u4e2d\u5348"===h?v>=11?v:v+12:"\u4e0b\u5348"===h||"\u665a\u4e0a"===h?v+12:void 0},meridiem:function(v,h,f){var A=100*v+h;return A<600?"\u51cc\u6668":A<900?"\u65e9\u4e0a":A<1200?"\u4e0a\u5348":1200===A?"\u4e2d\u5348":A<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(v,h){switch(h){case"d":case"D":case"DDD":return v+"\u65e5";case"M":return v+"\u6708";case"w":case"W":return v+"\u9031";default:return v}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(c(10785))},88257:function(je,z,c){!function(r){"use strict";r.defineLocale("zh-mo",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(v,h){return 12===v&&(v=0),"\u51cc\u6668"===h||"\u65e9\u4e0a"===h||"\u4e0a\u5348"===h?v:"\u4e2d\u5348"===h?v>=11?v:v+12:"\u4e0b\u5348"===h||"\u665a\u4e0a"===h?v+12:void 0},meridiem:function(v,h,f){var A=100*v+h;return A<600?"\u51cc\u6668":A<900?"\u65e9\u4e0a":A<1130?"\u4e0a\u5348":A<1230?"\u4e2d\u5348":A<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(v,h){switch(h){case"d":case"D":case"DDD":return v+"\u65e5";case"M":return v+"\u6708";case"w":case"W":return v+"\u9031";default:return v}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(c(10785))},57068:function(je,z,c){!function(r){"use strict";r.defineLocale("zh-tw",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(v,h){return 12===v&&(v=0),"\u51cc\u6668"===h||"\u65e9\u4e0a"===h||"\u4e0a\u5348"===h?v:"\u4e2d\u5348"===h?v>=11?v:v+12:"\u4e0b\u5348"===h||"\u665a\u4e0a"===h?v+12:void 0},meridiem:function(v,h,f){var A=100*v+h;return A<600?"\u51cc\u6668":A<900?"\u65e9\u4e0a":A<1130?"\u4e0a\u5348":A<1230?"\u4e2d\u5348":A<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(v,h){switch(h){case"d":case"D":case"DDD":return v+"\u65e5";case"M":return v+"\u6708";case"w":case"W":return v+"\u9031";default:return v}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(c(10785))},10785:function(je,z,c){(je=c.nmd(je)).exports=function(){"use strict";var r,I;function n(){return r.apply(null,arguments)}function h(q){return q instanceof Array||"[object Array]"===Object.prototype.toString.call(q)}function f(q){return null!=q&&"[object Object]"===Object.prototype.toString.call(q)}function A(q,Ne){return Object.prototype.hasOwnProperty.call(q,Ne)}function M(q){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(q).length;var Ne;for(Ne in q)if(A(q,Ne))return!1;return!0}function T(q){return void 0===q}function E(q){return"number"==typeof q||"[object Number]"===Object.prototype.toString.call(q)}function y(q){return q instanceof Date||"[object Date]"===Object.prototype.toString.call(q)}function S(q,Ne){var Yt,yt=[],un=q.length;for(Yt=0;Yt<un;++Yt)yt.push(Ne(q[Yt],Yt));return yt}function l(q,Ne){for(var yt in Ne)A(Ne,yt)&&(q[yt]=Ne[yt]);return A(Ne,"toString")&&(q.toString=Ne.toString),A(Ne,"valueOf")&&(q.valueOf=Ne.valueOf),q}function s(q,Ne,yt,Yt){return Ui(q,Ne,yt,Yt,!0).utc()}function m(q){return null==q._pf&&(q._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),q._pf}function R(q){if(null==q._isValid){var Ne=m(q),yt=I.call(Ne.parsedDateParts,function(un){return null!=un}),Yt=!isNaN(q._d.getTime())&&Ne.overflow<0&&!Ne.empty&&!Ne.invalidEra&&!Ne.invalidMonth&&!Ne.invalidWeekday&&!Ne.weekdayMismatch&&!Ne.nullInput&&!Ne.invalidFormat&&!Ne.userInvalidated&&(!Ne.meridiem||Ne.meridiem&&yt);if(q._strict&&(Yt=Yt&&0===Ne.charsLeftOver&&0===Ne.unusedTokens.length&&void 0===Ne.bigHour),null!=Object.isFrozen&&Object.isFrozen(q))return Yt;q._isValid=Yt}return q._isValid}function O(q){var Ne=s(NaN);return null!=q?l(m(Ne),q):m(Ne).userInvalidated=!0,Ne}I=Array.prototype.some?Array.prototype.some:function(q){var Yt,Ne=Object(this),yt=Ne.length>>>0;for(Yt=0;Yt<yt;Yt++)if(Yt in Ne&&q.call(this,Ne[Yt],Yt,Ne))return!0;return!1};var Y=n.momentProperties=[],j=!1;function fe(q,Ne){var yt,Yt,un,ui=Y.length;if(T(Ne._isAMomentObject)||(q._isAMomentObject=Ne._isAMomentObject),T(Ne._i)||(q._i=Ne._i),T(Ne._f)||(q._f=Ne._f),T(Ne._l)||(q._l=Ne._l),T(Ne._strict)||(q._strict=Ne._strict),T(Ne._tzm)||(q._tzm=Ne._tzm),T(Ne._isUTC)||(q._isUTC=Ne._isUTC),T(Ne._offset)||(q._offset=Ne._offset),T(Ne._pf)||(q._pf=m(Ne)),T(Ne._locale)||(q._locale=Ne._locale),ui>0)for(yt=0;yt<ui;yt++)T(un=Ne[Yt=Y[yt]])||(q[Yt]=un);return q}function te(q){fe(this,q),this._d=new Date(null!=q._d?q._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===j&&(j=!0,n.updateOffset(this),j=!1)}function ce(q){return q instanceof te||null!=q&&null!=q._isAMomentObject}function H(q){!1===n.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+q)}function Z(q,Ne){var yt=!0;return l(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,q),yt){var un,ui,zi,Yt=[],io=arguments.length;for(ui=0;ui<io;ui++){if(un="","object"==typeof arguments[ui]){for(zi in un+="\n["+ui+"] ",arguments[0])A(arguments[0],zi)&&(un+=zi+": "+arguments[0][zi]+", ");un=un.slice(0,-2)}else un=arguments[ui];Yt.push(un)}H(q+"\nArguments: "+Array.prototype.slice.call(Yt).join("")+"\n"+(new Error).stack),yt=!1}return Ne.apply(this,arguments)},Ne)}var Ge,X={};function ue(q,Ne){null!=n.deprecationHandler&&n.deprecationHandler(q,Ne),X[q]||(H(Ne),X[q]=!0)}function Me(q){return typeof Function<"u"&&q instanceof Function||"[object Function]"===Object.prototype.toString.call(q)}function Q(q,Ne){var Yt,yt=l({},q);for(Yt in Ne)A(Ne,Yt)&&(f(q[Yt])&&f(Ne[Yt])?(yt[Yt]={},l(yt[Yt],q[Yt]),l(yt[Yt],Ne[Yt])):null!=Ne[Yt]?yt[Yt]=Ne[Yt]:delete yt[Yt]);for(Yt in q)A(q,Yt)&&!A(Ne,Yt)&&f(q[Yt])&&(yt[Yt]=l({},yt[Yt]));return yt}function ne(q){null!=q&&this.set(q)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,Ge=Object.keys?Object.keys:function(q){var Ne,yt=[];for(Ne in q)A(q,Ne)&&yt.push(Ne);return yt};function ot(q,Ne,yt){var Yt=""+Math.abs(q);return(q>=0?yt?"+":"":"-")+Math.pow(10,Math.max(0,Ne-Yt.length)).toString().substr(1)+Yt}var dt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,xe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Re={},Ue={};function ee(q,Ne,yt,Yt){var un=Yt;"string"==typeof Yt&&(un=function(){return this[Yt]()}),q&&(Ue[q]=un),Ne&&(Ue[Ne[0]]=function(){return ot(un.apply(this,arguments),Ne[1],Ne[2])}),yt&&(Ue[yt]=function(){return this.localeData().ordinal(un.apply(this,arguments),q)})}function W(q){return q.match(/\[[\s\S]/)?q.replace(/^\[|\]$/g,""):q.replace(/\\/g,"")}function le(q,Ne){return q.isValid()?(Ne=oe(Ne,q.localeData()),Re[Ne]=Re[Ne]||function Pe(q){var yt,Yt,Ne=q.match(dt);for(yt=0,Yt=Ne.length;yt<Yt;yt++)Ne[yt]=Ue[Ne[yt]]?Ue[Ne[yt]]:W(Ne[yt]);return function(un){var zi,ui="";for(zi=0;zi<Yt;zi++)ui+=Me(Ne[zi])?Ne[zi].call(un,q):Ne[zi];return ui}}(Ne),Re[Ne](q)):q.localeData().invalidDate()}function oe(q,Ne){var yt=5;function Yt(un){return Ne.longDateFormat(un)||un}for(xe.lastIndex=0;yt>=0&&xe.test(q);)q=q.replace(xe,Yt),xe.lastIndex=0,yt-=1;return q}var zt={};function Vt(q,Ne){var yt=q.toLowerCase();zt[yt]=zt[yt+"s"]=zt[Ne]=q}function de(q){return"string"==typeof q?zt[q]||zt[q.toLowerCase()]:void 0}function J(q){var yt,Yt,Ne={};for(Yt in q)A(q,Yt)&&(yt=de(Yt))&&(Ne[yt]=q[Yt]);return Ne}var $e={};function st(q,Ne){$e[q]=Ne}function Zt(q){return q%4==0&&q%100!=0||q%400==0}function kn(q){return q<0?Math.ceil(q)||0:Math.floor(q)}function Un(q){var Ne=+q,yt=0;return 0!==Ne&&isFinite(Ne)&&(yt=kn(Ne)),yt}function ni(q,Ne){return function(yt){return null!=yt?(mi(this,q,yt),n.updateOffset(this,Ne),this):qe(this,q)}}function qe(q,Ne){return q.isValid()?q._d["get"+(q._isUTC?"UTC":"")+Ne]():NaN}function mi(q,Ne,yt){q.isValid()&&!isNaN(yt)&&("FullYear"===Ne&&Zt(q.year())&&1===q.month()&&29===q.date()?(yt=Un(yt),q._d["set"+(q._isUTC?"UTC":"")+Ne](yt,q.month(),er(yt,q.month()))):q._d["set"+(q._isUTC?"UTC":"")+Ne](yt))}var Tn,Bn=/\d/,jn=/\d\d/,It=/\d{3}/,vn=/\d{4}/,Vn=/[+-]?\d{6}/,ht=/\d\d?/,it=/\d\d\d\d?/,Ct=/\d\d\d\d\d\d?/,Et=/\d{1,3}/,We=/\d{1,4}/,bt=/[+-]?\d{1,6}/,gt=/\d+/,wt=/[+-]?\d+/,rn=/Z|[+-]\d\d:?\d\d/gi,In=/Z|[+-]\d\d(?::?\d\d)?/gi,En=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Cn(q,Ne,yt){Tn[q]=Me(Ne)?Ne:function(Yt,un){return Yt&&yt?yt:Ne}}function Wn(q,Ne){return A(Tn,q)?Tn[q](Ne._strict,Ne._locale):new RegExp(function Oi(q){return Qn(q.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(Ne,yt,Yt,un,ui){return yt||Yt||un||ui}))}(q))}function Qn(q){return q.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Tn={};var Fi={};function Ai(q,Ne){var yt,un,Yt=Ne;for("string"==typeof q&&(q=[q]),E(Ne)&&(Yt=function(ui,zi){zi[Ne]=Un(ui)}),un=q.length,yt=0;yt<un;yt++)Fi[q[yt]]=Yt}function ln(q,Ne){Ai(q,function(yt,Yt,un,ui){un._w=un._w||{},Ne(yt,un._w,un,ui)})}function Mn(q,Ne,yt){null!=Ne&&A(Fi,q)&&Fi[q](Ne,yt._a,yt,q)}var li,bi=0,Hi=1,Mr=2,Wr=3,uo=4,Nr=5,ss=6,Cs=7,Pn=8;function er(q,Ne){if(isNaN(q)||isNaN(Ne))return NaN;var yt=function Pi(q,Ne){return(q%Ne+Ne)%Ne}(Ne,12);return q+=(Ne-yt)/12,1===yt?Zt(q)?29:28:31-yt%7%2}li=Array.prototype.indexOf?Array.prototype.indexOf:function(q){var Ne;for(Ne=0;Ne<this.length;++Ne)if(this[Ne]===q)return Ne;return-1},ee("M",["MM",2],"Mo",function(){return this.month()+1}),ee("MMM",0,0,function(q){return this.localeData().monthsShort(this,q)}),ee("MMMM",0,0,function(q){return this.localeData().months(this,q)}),Vt("month","M"),st("month",8),Cn("M",ht),Cn("MM",ht,jn),Cn("MMM",function(q,Ne){return Ne.monthsShortRegex(q)}),Cn("MMMM",function(q,Ne){return Ne.monthsRegex(q)}),Ai(["M","MM"],function(q,Ne){Ne[Hi]=Un(q)-1}),Ai(["MMM","MMMM"],function(q,Ne,yt,Yt){var un=yt._locale.monthsParse(q,Yt,yt._strict);null!=un?Ne[Hi]=un:m(yt).invalidMonth=q});var Fr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),dn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Fn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xi=En,fi=En;function Qi(q,Ne,yt){var Yt,un,ui,zi=q.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Yt=0;Yt<12;++Yt)ui=s([2e3,Yt]),this._shortMonthsParse[Yt]=this.monthsShort(ui,"").toLocaleLowerCase(),this._longMonthsParse[Yt]=this.months(ui,"").toLocaleLowerCase();return yt?"MMM"===Ne?-1!==(un=li.call(this._shortMonthsParse,zi))?un:null:-1!==(un=li.call(this._longMonthsParse,zi))?un:null:"MMM"===Ne?-1!==(un=li.call(this._shortMonthsParse,zi))||-1!==(un=li.call(this._longMonthsParse,zi))?un:null:-1!==(un=li.call(this._longMonthsParse,zi))||-1!==(un=li.call(this._shortMonthsParse,zi))?un:null}function Dr(q,Ne){var yt;if(!q.isValid())return q;if("string"==typeof Ne)if(/^\d+$/.test(Ne))Ne=Un(Ne);else if(!E(Ne=q.localeData().monthsParse(Ne)))return q;return yt=Math.min(q.date(),er(q.year(),Ne)),q._d["set"+(q._isUTC?"UTC":"")+"Month"](Ne,yt),q}function br(q){return null!=q?(Dr(this,q),n.updateOffset(this,!0),this):qe(this,"Month")}function Ao(){function q(zi,io){return io.length-zi.length}var un,ui,Ne=[],yt=[],Yt=[];for(un=0;un<12;un++)ui=s([2e3,un]),Ne.push(this.monthsShort(ui,"")),yt.push(this.months(ui,"")),Yt.push(this.months(ui,"")),Yt.push(this.monthsShort(ui,""));for(Ne.sort(q),yt.sort(q),Yt.sort(q),un=0;un<12;un++)Ne[un]=Qn(Ne[un]),yt[un]=Qn(yt[un]);for(un=0;un<24;un++)Yt[un]=Qn(Yt[un]);this._monthsRegex=new RegExp("^("+Yt.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+yt.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+Ne.join("|")+")","i")}function Co(q){return Zt(q)?366:365}ee("Y",0,0,function(){var q=this.year();return q<=9999?ot(q,4):"+"+q}),ee(0,["YY",2],0,function(){return this.year()%100}),ee(0,["YYYY",4],0,"year"),ee(0,["YYYYY",5],0,"year"),ee(0,["YYYYYY",6,!0],0,"year"),Vt("year","y"),st("year",1),Cn("Y",wt),Cn("YY",ht,jn),Cn("YYYY",We,vn),Cn("YYYYY",bt,Vn),Cn("YYYYYY",bt,Vn),Ai(["YYYYY","YYYYYY"],bi),Ai("YYYY",function(q,Ne){Ne[bi]=2===q.length?n.parseTwoDigitYear(q):Un(q)}),Ai("YY",function(q,Ne){Ne[bi]=n.parseTwoDigitYear(q)}),Ai("Y",function(q,Ne){Ne[bi]=parseInt(q,10)}),n.parseTwoDigitYear=function(q){return Un(q)+(Un(q)>68?1900:2e3)};var Lo=ni("FullYear",!0);function Ar(q,Ne,yt,Yt,un,ui,zi){var io;return q<100&&q>=0?(io=new Date(q+400,Ne,yt,Yt,un,ui,zi),isFinite(io.getFullYear())&&io.setFullYear(q)):io=new Date(q,Ne,yt,Yt,un,ui,zi),io}function sn(q){var Ne,yt;return q<100&&q>=0?((yt=Array.prototype.slice.call(arguments))[0]=q+400,Ne=new Date(Date.UTC.apply(null,yt)),isFinite(Ne.getUTCFullYear())&&Ne.setUTCFullYear(q)):Ne=new Date(Date.UTC.apply(null,arguments)),Ne}function Gn(q,Ne,yt){var Yt=7+Ne-yt;return-(7+sn(q,0,Yt).getUTCDay()-Ne)%7+Yt-1}function $n(q,Ne,yt,Yt,un){var vo,Is,io=1+7*(Ne-1)+(7+yt-Yt)%7+Gn(q,Yt,un);return io<=0?Is=Co(vo=q-1)+io:io>Co(q)?(vo=q+1,Is=io-Co(q)):(vo=q,Is=io),{year:vo,dayOfYear:Is}}function Ci(q,Ne,yt){var ui,zi,Yt=Gn(q.year(),Ne,yt),un=Math.floor((q.dayOfYear()-Yt-1)/7)+1;return un<1?ui=un+Wi(zi=q.year()-1,Ne,yt):un>Wi(q.year(),Ne,yt)?(ui=un-Wi(q.year(),Ne,yt),zi=q.year()+1):(zi=q.year(),ui=un),{week:ui,year:zi}}function Wi(q,Ne,yt){var Yt=Gn(q,Ne,yt),un=Gn(q+1,Ne,yt);return(Co(q)-Yt+un)/7}ee("w",["ww",2],"wo","week"),ee("W",["WW",2],"Wo","isoWeek"),Vt("week","w"),Vt("isoWeek","W"),st("week",5),st("isoWeek",5),Cn("w",ht),Cn("ww",ht,jn),Cn("W",ht),Cn("WW",ht,jn),ln(["w","ww","W","WW"],function(q,Ne,yt,Yt){Ne[Yt.substr(0,1)]=Un(q)});function Qr(q,Ne){return q.slice(Ne,7).concat(q.slice(0,Ne))}ee("d",0,"do","day"),ee("dd",0,0,function(q){return this.localeData().weekdaysMin(this,q)}),ee("ddd",0,0,function(q){return this.localeData().weekdaysShort(this,q)}),ee("dddd",0,0,function(q){return this.localeData().weekdays(this,q)}),ee("e",0,0,"weekday"),ee("E",0,0,"isoWeekday"),Vt("day","d"),Vt("weekday","e"),Vt("isoWeekday","E"),st("day",11),st("weekday",11),st("isoWeekday",11),Cn("d",ht),Cn("e",ht),Cn("E",ht),Cn("dd",function(q,Ne){return Ne.weekdaysMinRegex(q)}),Cn("ddd",function(q,Ne){return Ne.weekdaysShortRegex(q)}),Cn("dddd",function(q,Ne){return Ne.weekdaysRegex(q)}),ln(["dd","ddd","dddd"],function(q,Ne,yt,Yt){var un=yt._locale.weekdaysParse(q,Yt,yt._strict);null!=un?Ne.d=un:m(yt).invalidWeekday=q}),ln(["d","e","E"],function(q,Ne,yt,Yt){Ne[Yt]=Un(q)});var ca="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Js="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ts="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qo=En,xs=En,hl=En;function Er(q,Ne,yt){var Yt,un,ui,zi=q.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Yt=0;Yt<7;++Yt)ui=s([2e3,1]).day(Yt),this._minWeekdaysParse[Yt]=this.weekdaysMin(ui,"").toLocaleLowerCase(),this._shortWeekdaysParse[Yt]=this.weekdaysShort(ui,"").toLocaleLowerCase(),this._weekdaysParse[Yt]=this.weekdays(ui,"").toLocaleLowerCase();return yt?"dddd"===Ne?-1!==(un=li.call(this._weekdaysParse,zi))?un:null:"ddd"===Ne?-1!==(un=li.call(this._shortWeekdaysParse,zi))?un:null:-1!==(un=li.call(this._minWeekdaysParse,zi))?un:null:"dddd"===Ne?-1!==(un=li.call(this._weekdaysParse,zi))||-1!==(un=li.call(this._shortWeekdaysParse,zi))||-1!==(un=li.call(this._minWeekdaysParse,zi))?un:null:"ddd"===Ne?-1!==(un=li.call(this._shortWeekdaysParse,zi))||-1!==(un=li.call(this._weekdaysParse,zi))||-1!==(un=li.call(this._minWeekdaysParse,zi))?un:null:-1!==(un=li.call(this._minWeekdaysParse,zi))||-1!==(un=li.call(this._weekdaysParse,zi))||-1!==(un=li.call(this._shortWeekdaysParse,zi))?un:null}function cs(){function q(Vi,yo){return yo.length-Vi.length}var ui,zi,io,vo,Is,Ne=[],yt=[],Yt=[],un=[];for(ui=0;ui<7;ui++)zi=s([2e3,1]).day(ui),io=Qn(this.weekdaysMin(zi,"")),vo=Qn(this.weekdaysShort(zi,"")),Is=Qn(this.weekdays(zi,"")),Ne.push(io),yt.push(vo),Yt.push(Is),un.push(io),un.push(vo),un.push(Is);Ne.sort(q),yt.sort(q),Yt.sort(q),un.sort(q),this._weekdaysRegex=new RegExp("^("+un.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Yt.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+yt.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Ne.join("|")+")","i")}function Pa(){return this.hours()%12||12}function $s(q,Ne){ee(q,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),Ne)})}function fa(q,Ne){return Ne._meridiemParse}ee("H",["HH",2],0,"hour"),ee("h",["hh",2],0,Pa),ee("k",["kk",2],0,function _r(){return this.hours()||24}),ee("hmm",0,0,function(){return""+Pa.apply(this)+ot(this.minutes(),2)}),ee("hmmss",0,0,function(){return""+Pa.apply(this)+ot(this.minutes(),2)+ot(this.seconds(),2)}),ee("Hmm",0,0,function(){return""+this.hours()+ot(this.minutes(),2)}),ee("Hmmss",0,0,function(){return""+this.hours()+ot(this.minutes(),2)+ot(this.seconds(),2)}),$s("a",!0),$s("A",!1),Vt("hour","h"),st("hour",13),Cn("a",fa),Cn("A",fa),Cn("H",ht),Cn("h",ht),Cn("k",ht),Cn("HH",ht,jn),Cn("hh",ht,jn),Cn("kk",ht,jn),Cn("hmm",it),Cn("hmmss",Ct),Cn("Hmm",it),Cn("Hmmss",Ct),Ai(["H","HH"],Wr),Ai(["k","kk"],function(q,Ne,yt){var Yt=Un(q);Ne[Wr]=24===Yt?0:Yt}),Ai(["a","A"],function(q,Ne,yt){yt._isPm=yt._locale.isPM(q),yt._meridiem=q}),Ai(["h","hh"],function(q,Ne,yt){Ne[Wr]=Un(q),m(yt).bigHour=!0}),Ai("hmm",function(q,Ne,yt){var Yt=q.length-2;Ne[Wr]=Un(q.substr(0,Yt)),Ne[uo]=Un(q.substr(Yt)),m(yt).bigHour=!0}),Ai("hmmss",function(q,Ne,yt){var Yt=q.length-4,un=q.length-2;Ne[Wr]=Un(q.substr(0,Yt)),Ne[uo]=Un(q.substr(Yt,2)),Ne[Nr]=Un(q.substr(un)),m(yt).bigHour=!0}),Ai("Hmm",function(q,Ne,yt){var Yt=q.length-2;Ne[Wr]=Un(q.substr(0,Yt)),Ne[uo]=Un(q.substr(Yt))}),Ai("Hmmss",function(q,Ne,yt){var Yt=q.length-4,un=q.length-2;Ne[Wr]=Un(q.substr(0,Yt)),Ne[uo]=Un(q.substr(Yt,2)),Ne[Nr]=Un(q.substr(un))});var Ml=ni("Hours",!0);var ta,wa={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Fr,monthsShort:dn,week:{dow:0,doy:6},weekdays:ca,weekdaysMin:ts,weekdaysShort:Js,meridiemParse:/[ap]\.?m?\.?/i},To={},po={};function Ls(q,Ne){var yt,Yt=Math.min(q.length,Ne.length);for(yt=0;yt<Yt;yt+=1)if(q[yt]!==Ne[yt])return yt;return Yt}function zs(q){return q&&q.toLowerCase().replace("_","-")}function Ii(q){var Ne=null;if(void 0===To[q]&&je&&je.exports&&function Zn(q){return null!=q.match("^[^/\\\\]*$")}(q))try{Ne=ta._abbr,c(35358)("./"+q),ei(Ne)}catch{To[q]=null}return To[q]}function ei(q,Ne){var yt;return q&&((yt=T(Ne)?Ri(q):di(q,Ne))?ta=yt:typeof console<"u"&&console.warn&&console.warn("Locale "+q+" not found. Did you forget to load it?")),ta._abbr}function di(q,Ne){if(null!==Ne){var yt,Yt=wa;if(Ne.abbr=q,null!=To[q])ue("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),Yt=To[q]._config;else if(null!=Ne.parentLocale)if(null!=To[Ne.parentLocale])Yt=To[Ne.parentLocale]._config;else{if(null==(yt=Ii(Ne.parentLocale)))return po[Ne.parentLocale]||(po[Ne.parentLocale]=[]),po[Ne.parentLocale].push({name:q,config:Ne}),null;Yt=yt._config}return To[q]=new ne(Q(Yt,Ne)),po[q]&&po[q].forEach(function(un){di(un.name,un.config)}),ei(q),To[q]}return delete To[q],null}function Ri(q){var Ne;if(q&&q._locale&&q._locale._abbr&&(q=q._locale._abbr),!q)return ta;if(!h(q)){if(Ne=Ii(q))return Ne;q=[q]}return function Kt(q){for(var yt,Yt,un,ui,Ne=0;Ne<q.length;){for(yt=(ui=zs(q[Ne]).split("-")).length,Yt=(Yt=zs(q[Ne+1]))?Yt.split("-"):null;yt>0;){if(un=Ii(ui.slice(0,yt).join("-")))return un;if(Yt&&Yt.length>=yt&&Ls(ui,Yt)>=yt-1)break;yt--}Ne++}return ta}(q)}function Dt(q){var Ne,yt=q._a;return yt&&-2===m(q).overflow&&(Ne=yt[Hi]<0||yt[Hi]>11?Hi:yt[Mr]<1||yt[Mr]>er(yt[bi],yt[Hi])?Mr:yt[Wr]<0||yt[Wr]>24||24===yt[Wr]&&(0!==yt[uo]||0!==yt[Nr]||0!==yt[ss])?Wr:yt[uo]<0||yt[uo]>59?uo:yt[Nr]<0||yt[Nr]>59?Nr:yt[ss]<0||yt[ss]>999?ss:-1,m(q)._overflowDayOfYear&&(Ne<bi||Ne>Mr)&&(Ne=Mr),m(q)._overflowWeeks&&-1===Ne&&(Ne=Cs),m(q)._overflowWeekday&&-1===Ne&&(Ne=Pn),m(q).overflow=Ne),q}var Xt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,St=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,Jn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],oi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ji=/^\/?Date\((-?\d+)/i,Ei=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ee={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pr(q){var Ne,yt,ui,zi,io,vo,Yt=q._i,un=Xt.exec(Yt)||St.exec(Yt),Is=Jn.length,Vi=oi.length;if(un){for(m(q).iso=!0,Ne=0,yt=Is;Ne<yt;Ne++)if(Jn[Ne][1].exec(un[1])){zi=Jn[Ne][0],ui=!1!==Jn[Ne][2];break}if(null==zi)return void(q._isValid=!1);if(un[3]){for(Ne=0,yt=Vi;Ne<yt;Ne++)if(oi[Ne][1].exec(un[3])){io=(un[2]||" ")+oi[Ne][0];break}if(null==io)return void(q._isValid=!1)}if(!ui&&null!=io)return void(q._isValid=!1);if(un[4]){if(!Sn.exec(un[4]))return void(q._isValid=!1);vo="Z"}q._f=zi+(io||"")+(vo||""),kt(q)}else q._isValid=!1}function Ds(q){var Ne=parseInt(q,10);return Ne<=49?2e3+Ne:Ne<=999?1900+Ne:Ne}function Os(q){var yt,Ne=Ei.exec(function ga(q){return q.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(q._i));if(Ne){if(yt=function Ra(q,Ne,yt,Yt,un,ui){var zi=[Ds(q),dn.indexOf(Ne),parseInt(yt,10),parseInt(Yt,10),parseInt(un,10)];return ui&&zi.push(parseInt(ui,10)),zi}(Ne[4],Ne[3],Ne[2],Ne[5],Ne[6],Ne[7]),!function Ns(q,Ne,yt){return!q||Js.indexOf(q)===new Date(Ne[0],Ne[1],Ne[2]).getDay()||(m(yt).weekdayMismatch=!0,yt._isValid=!1,!1)}(Ne[1],yt,q))return;q._a=yt,q._tzm=function ba(q,Ne,yt){if(q)return Ee[q];if(Ne)return 0;var Yt=parseInt(yt,10),un=Yt%100;return(Yt-un)/100*60+un}(Ne[8],Ne[9],Ne[10]),q._d=sn.apply(null,q._a),q._d.setUTCMinutes(q._d.getUTCMinutes()-q._tzm),m(q).rfc2822=!0}else q._isValid=!1}function oa(q,Ne,yt){return q??Ne??yt}function mt(q){var Ne,yt,un,ui,zi,Yt=[];if(!q._d){for(un=function Ft(q){var Ne=new Date(n.now());return q._useUTC?[Ne.getUTCFullYear(),Ne.getUTCMonth(),Ne.getUTCDate()]:[Ne.getFullYear(),Ne.getMonth(),Ne.getDate()]}(q),q._w&&null==q._a[Mr]&&null==q._a[Hi]&&function nn(q){var Ne,yt,Yt,un,ui,zi,io,vo,Is;null!=(Ne=q._w).GG||null!=Ne.W||null!=Ne.E?(ui=1,zi=4,yt=oa(Ne.GG,q._a[bi],Ci(ns(),1,4).year),Yt=oa(Ne.W,1),((un=oa(Ne.E,1))<1||un>7)&&(vo=!0)):(ui=q._locale._week.dow,zi=q._locale._week.doy,Is=Ci(ns(),ui,zi),yt=oa(Ne.gg,q._a[bi],Is.year),Yt=oa(Ne.w,Is.week),null!=Ne.d?((un=Ne.d)<0||un>6)&&(vo=!0):null!=Ne.e?(un=Ne.e+ui,(Ne.e<0||Ne.e>6)&&(vo=!0)):un=ui),Yt<1||Yt>Wi(yt,ui,zi)?m(q)._overflowWeeks=!0:null!=vo?m(q)._overflowWeekday=!0:(io=$n(yt,Yt,un,ui,zi),q._a[bi]=io.year,q._dayOfYear=io.dayOfYear)}(q),null!=q._dayOfYear&&(zi=oa(q._a[bi],un[bi]),(q._dayOfYear>Co(zi)||0===q._dayOfYear)&&(m(q)._overflowDayOfYear=!0),yt=sn(zi,0,q._dayOfYear),q._a[Hi]=yt.getUTCMonth(),q._a[Mr]=yt.getUTCDate()),Ne=0;Ne<3&&null==q._a[Ne];++Ne)q._a[Ne]=Yt[Ne]=un[Ne];for(;Ne<7;Ne++)q._a[Ne]=Yt[Ne]=null==q._a[Ne]?2===Ne?1:0:q._a[Ne];24===q._a[Wr]&&0===q._a[uo]&&0===q._a[Nr]&&0===q._a[ss]&&(q._nextDay=!0,q._a[Wr]=0),q._d=(q._useUTC?sn:Ar).apply(null,Yt),ui=q._useUTC?q._d.getUTCDay():q._d.getDay(),null!=q._tzm&&q._d.setUTCMinutes(q._d.getUTCMinutes()-q._tzm),q._nextDay&&(q._a[Wr]=24),q._w&&typeof q._w.d<"u"&&q._w.d!==ui&&(m(q).weekdayMismatch=!0)}}function kt(q){if(q._f!==n.ISO_8601)if(q._f!==n.RFC_2822){q._a=[],m(q).empty=!0;var yt,Yt,un,ui,zi,Is,Vi,Ne=""+q._i,io=Ne.length,vo=0;for(Vi=(un=oe(q._f,q._locale).match(dt)||[]).length,yt=0;yt<Vi;yt++)(Yt=(Ne.match(Wn(ui=un[yt],q))||[])[0])&&((zi=Ne.substr(0,Ne.indexOf(Yt))).length>0&&m(q).unusedInput.push(zi),Ne=Ne.slice(Ne.indexOf(Yt)+Yt.length),vo+=Yt.length),Ue[ui]?(Yt?m(q).empty=!1:m(q).unusedTokens.push(ui),Mn(ui,Yt,q)):q._strict&&!Yt&&m(q).unusedTokens.push(ui);m(q).charsLeftOver=io-vo,Ne.length>0&&m(q).unusedInput.push(Ne),q._a[Wr]<=12&&!0===m(q).bigHour&&q._a[Wr]>0&&(m(q).bigHour=void 0),m(q).parsedDateParts=q._a.slice(0),m(q).meridiem=q._meridiem,q._a[Wr]=function bn(q,Ne,yt){var Yt;return null==yt?Ne:null!=q.meridiemHour?q.meridiemHour(Ne,yt):(null!=q.isPM&&((Yt=q.isPM(yt))&&Ne<12&&(Ne+=12),!Yt&&12===Ne&&(Ne=0)),Ne)}(q._locale,q._a[Wr],q._meridiem),null!==(Is=m(q).era)&&(q._a[bi]=q._locale.erasConvertYear(Is,q._a[bi])),mt(q),Dt(q)}else Os(q);else Pr(q)}function xo(q){var Ne=q._i,yt=q._f;return q._locale=q._locale||Ri(q._l),null===Ne||void 0===yt&&""===Ne?O({nullInput:!0}):("string"==typeof Ne&&(q._i=Ne=q._locale.preparse(Ne)),ce(Ne)?new te(Dt(Ne)):(y(Ne)?q._d=Ne:h(yt)?function lr(q){var Ne,yt,Yt,un,ui,zi,io=!1,vo=q._f.length;if(0===vo)return m(q).invalidFormat=!0,void(q._d=new Date(NaN));for(un=0;un<vo;un++)ui=0,zi=!1,Ne=fe({},q),null!=q._useUTC&&(Ne._useUTC=q._useUTC),Ne._f=q._f[un],kt(Ne),R(Ne)&&(zi=!0),ui+=m(Ne).charsLeftOver,ui+=10*m(Ne).unusedTokens.length,m(Ne).score=ui,io?ui<Yt&&(Yt=ui,yt=Ne):(null==Yt||ui<Yt||zi)&&(Yt=ui,yt=Ne,zi&&(io=!0));l(q,yt||Ne)}(q):yt?kt(q):function Go(q){var Ne=q._i;T(Ne)?q._d=new Date(n.now()):y(Ne)?q._d=new Date(Ne.valueOf()):"string"==typeof Ne?function $i(q){var Ne=Ji.exec(q._i);null===Ne?(Pr(q),!1===q._isValid&&(delete q._isValid,Os(q),!1===q._isValid&&(delete q._isValid,q._strict?q._isValid=!1:n.createFromInputFallback(q)))):q._d=new Date(+Ne[1])}(q):h(Ne)?(q._a=S(Ne.slice(0),function(yt){return parseInt(yt,10)}),mt(q)):f(Ne)?function to(q){if(!q._d){var Ne=J(q._i);q._a=S([Ne.year,Ne.month,void 0===Ne.day?Ne.date:Ne.day,Ne.hour,Ne.minute,Ne.second,Ne.millisecond],function(Yt){return Yt&&parseInt(Yt,10)}),mt(q)}}(q):E(Ne)?q._d=new Date(Ne):n.createFromInputFallback(q)}(q),R(q)||(q._d=null),q))}function Ui(q,Ne,yt,Yt,un){var ui={};return(!0===Ne||!1===Ne)&&(Yt=Ne,Ne=void 0),(!0===yt||!1===yt)&&(Yt=yt,yt=void 0),(f(q)&&M(q)||h(q)&&0===q.length)&&(q=void 0),ui._isAMomentObject=!0,ui._useUTC=ui._isUTC=un,ui._l=yt,ui._i=q,ui._f=Ne,ui._strict=Yt,function ls(q){var Ne=new te(Dt(xo(q)));return Ne._nextDay&&(Ne.add(1,"d"),Ne._nextDay=void 0),Ne}(ui)}function ns(q,Ne,yt,Yt){return Ui(q,Ne,yt,Yt,!1)}n.createFromInputFallback=Z("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(q){q._d=new Date(q._i+(q._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){};var La=Z("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var q=ns.apply(null,arguments);return this.isValid()&&q.isValid()?q<this?this:q:O()}),Ps=Z("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var q=ns.apply(null,arguments);return this.isValid()&&q.isValid()?q>this?this:q:O()});function Or(q,Ne){var yt,Yt;if(1===Ne.length&&h(Ne[0])&&(Ne=Ne[0]),!Ne.length)return ns();for(yt=Ne[0],Yt=1;Yt<Ne.length;++Yt)(!Ne[Yt].isValid()||Ne[Yt][q](yt))&&(yt=Ne[Yt]);return yt}var is=["year","quarter","month","week","day","hour","minute","second","millisecond"];function wr(q){var Ne=J(q),yt=Ne.year||0,Yt=Ne.quarter||0,un=Ne.month||0,ui=Ne.week||Ne.isoWeek||0,zi=Ne.day||0,io=Ne.hour||0,vo=Ne.minute||0,Is=Ne.second||0,Vi=Ne.millisecond||0;this._isValid=function pr(q){var Ne,Yt,yt=!1,un=is.length;for(Ne in q)if(A(q,Ne)&&(-1===li.call(is,Ne)||null!=q[Ne]&&isNaN(q[Ne])))return!1;for(Yt=0;Yt<un;++Yt)if(q[is[Yt]]){if(yt)return!1;parseFloat(q[is[Yt]])!==Un(q[is[Yt]])&&(yt=!0)}return!0}(Ne),this._milliseconds=+Vi+1e3*Is+6e4*vo+1e3*io*60*60,this._days=+zi+7*ui,this._months=+un+3*Yt+12*yt,this._data={},this._locale=Ri(),this._bubble()}function ys(q){return q instanceof wr}function fo(q){return q<0?-1*Math.round(-1*q):Math.round(q)}function yr(q,Ne){ee(q,0,0,function(){var yt=this.utcOffset(),Yt="+";return yt<0&&(yt=-yt,Yt="-"),Yt+ot(~~(yt/60),2)+Ne+ot(~~yt%60,2)})}yr("Z",":"),yr("ZZ",""),Cn("Z",In),Cn("ZZ",In),Ai(["Z","ZZ"],function(q,Ne,yt){yt._useUTC=!0,yt._tzm=tn(In,q)});var Cr=/([\+\-]|\d\d)/gi;function tn(q,Ne){var un,ui,yt=(Ne||"").match(q);return null===yt?null:0===(ui=60*(un=((yt[yt.length-1]||[])+"").match(Cr)||["-",0,0])[1]+Un(un[2]))?0:"+"===un[0]?ui:-ui}function xt(q,Ne){var yt,Yt;return Ne._isUTC?(yt=Ne.clone(),Yt=(ce(q)||y(q)?q.valueOf():ns(q).valueOf())-yt.valueOf(),yt._d.setTime(yt._d.valueOf()+Yt),n.updateOffset(yt,!1),yt):ns(q).local()}function Ht(q){return-Math.round(q._d.getTimezoneOffset())}function cr(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var ji=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function No(q,Ne){var un,ui,zi,yt=q,Yt=null;return ys(q)?yt={ms:q._milliseconds,d:q._days,M:q._months}:E(q)||!isNaN(+q)?(yt={},Ne?yt[Ne]=+q:yt.milliseconds=+q):(Yt=ji.exec(q))?(un="-"===Yt[1]?-1:1,yt={y:0,d:Un(Yt[Mr])*un,h:Un(Yt[Wr])*un,m:Un(Yt[uo])*un,s:Un(Yt[Nr])*un,ms:Un(fo(1e3*Yt[ss]))*un}):(Yt=jr.exec(q))?yt={y:Ur(Yt[2],un="-"===Yt[1]?-1:1),M:Ur(Yt[3],un),w:Ur(Yt[4],un),d:Ur(Yt[5],un),h:Ur(Yt[6],un),m:Ur(Yt[7],un),s:Ur(Yt[8],un)}:null==yt?yt={}:"object"==typeof yt&&("from"in yt||"to"in yt)&&(zi=function Xr(q,Ne){var yt;return q.isValid()&&Ne.isValid()?(Ne=xt(Ne,q),q.isBefore(Ne)?yt=go(q,Ne):((yt=go(Ne,q)).milliseconds=-yt.milliseconds,yt.months=-yt.months),yt):{milliseconds:0,months:0}}(ns(yt.from),ns(yt.to)),(yt={}).ms=zi.milliseconds,yt.M=zi.months),ui=new wr(yt),ys(q)&&A(q,"_locale")&&(ui._locale=q._locale),ys(q)&&A(q,"_isValid")&&(ui._isValid=q._isValid),ui}function Ur(q,Ne){var yt=q&&parseFloat(q.replace(",","."));return(isNaN(yt)?0:yt)*Ne}function go(q,Ne){var yt={};return yt.months=Ne.month()-q.month()+12*(Ne.year()-q.year()),q.clone().add(yt.months,"M").isAfter(Ne)&&--yt.months,yt.milliseconds=+Ne-+q.clone().add(yt.months,"M"),yt}function Ks(q,Ne){return function(yt,Yt){var ui;return null!==Yt&&!isNaN(+Yt)&&(ue(Ne,"moment()."+Ne+"(period, number) is deprecated. Please use moment()."+Ne+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),ui=yt,yt=Yt,Yt=ui),Ca(this,No(yt,Yt),q),this}}function Ca(q,Ne,yt,Yt){var un=Ne._milliseconds,ui=fo(Ne._days),zi=fo(Ne._months);q.isValid()&&(Yt=Yt??!0,zi&&Dr(q,qe(q,"Month")+zi*yt),ui&&mi(q,"Date",qe(q,"Date")+ui*yt),un&&q._d.setTime(q._d.valueOf()+un*yt),Yt&&n.updateOffset(q,ui||zi))}No.fn=wr.prototype,No.invalid=function xr(){return No(NaN)};var Xs=Ks(1,"add"),ds=Ks(-1,"subtract");function Xa(q){return"string"==typeof q||q instanceof String}function fs(q){return ce(q)||y(q)||Xa(q)||E(q)||function Ea(q){var Ne=h(q),yt=!1;return Ne&&(yt=0===q.filter(function(Yt){return!E(Yt)&&Xa(q)}).length),Ne&&yt}(q)||function Ho(q){var un,Ne=f(q)&&!M(q),yt=!1,Yt=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],zi=Yt.length;for(un=0;un<zi;un+=1)yt=yt||A(q,Yt[un]);return Ne&&yt}(q)||null==q}function Va(q,Ne){if(q.date()<Ne.date())return-Va(Ne,q);var yt=12*(Ne.year()-q.year())+(Ne.month()-q.month()),Yt=q.clone().add(yt,"months");return-(yt+(Ne-Yt<0?(Ne-Yt)/(Yt-q.clone().add(yt-1,"months")):(Ne-Yt)/(q.clone().add(yt+1,"months")-Yt)))||0}function Se(q){var Ne;return void 0===q?this._locale._abbr:(null!=(Ne=Ri(q))&&(this._locale=Ne),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var we=Z("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(q){return void 0===q?this.localeData():this.locale(q)});function tt(){return this._locale}var Ot=6e4,At=60*Ot,Ke=3506328*At;function Ye(q,Ne){return(q%Ne+Ne)%Ne}function vt(q,Ne,yt){return q<100&&q>=0?new Date(q+400,Ne,yt)-Ke:new Date(q,Ne,yt).valueOf()}function Be(q,Ne,yt){return q<100&&q>=0?Date.UTC(q+400,Ne,yt)-Ke:Date.UTC(q,Ne,yt)}function mr(q,Ne){return Ne.erasAbbrRegex(q)}function aa(){var un,ui,q=[],Ne=[],yt=[],Yt=[],zi=this.eras();for(un=0,ui=zi.length;un<ui;++un)Ne.push(Qn(zi[un].name)),q.push(Qn(zi[un].abbr)),yt.push(Qn(zi[un].narrow)),Yt.push(Qn(zi[un].name)),Yt.push(Qn(zi[un].abbr)),Yt.push(Qn(zi[un].narrow));this._erasRegex=new RegExp("^("+Yt.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+Ne.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+q.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+yt.join("|")+")","i")}function gs(q,Ne){ee(0,[q,q.length],0,Ne)}function va(q,Ne,yt,Yt,un){var ui;return null==q?Ci(this,Yt,un).year:(Ne>(ui=Wi(q,Yt,un))&&(Ne=ui),Yo.call(this,q,Ne,yt,Yt,un))}function Yo(q,Ne,yt,Yt,un){var ui=$n(q,Ne,yt,Yt,un),zi=sn(ui.year,0,ui.dayOfYear);return this.year(zi.getUTCFullYear()),this.month(zi.getUTCMonth()),this.date(zi.getUTCDate()),this}ee("N",0,0,"eraAbbr"),ee("NN",0,0,"eraAbbr"),ee("NNN",0,0,"eraAbbr"),ee("NNNN",0,0,"eraName"),ee("NNNNN",0,0,"eraNarrow"),ee("y",["y",1],"yo","eraYear"),ee("y",["yy",2],0,"eraYear"),ee("y",["yyy",3],0,"eraYear"),ee("y",["yyyy",4],0,"eraYear"),Cn("N",mr),Cn("NN",mr),Cn("NNN",mr),Cn("NNNN",function Yr(q,Ne){return Ne.erasNameRegex(q)}),Cn("NNNNN",function jo(q,Ne){return Ne.erasNarrowRegex(q)}),Ai(["N","NN","NNN","NNNN","NNNNN"],function(q,Ne,yt,Yt){var un=yt._locale.erasParse(q,Yt,yt._strict);un?m(yt).era=un:m(yt).invalidEra=q}),Cn("y",gt),Cn("yy",gt),Cn("yyy",gt),Cn("yyyy",gt),Cn("yo",function ia(q,Ne){return Ne._eraYearOrdinalRegex||gt}),Ai(["y","yy","yyy","yyyy"],bi),Ai(["yo"],function(q,Ne,yt,Yt){var un;yt._locale._eraYearOrdinalRegex&&(un=q.match(yt._locale._eraYearOrdinalRegex)),Ne[bi]=yt._locale.eraYearOrdinalParse?yt._locale.eraYearOrdinalParse(q,un):parseInt(q,10)}),ee(0,["gg",2],0,function(){return this.weekYear()%100}),ee(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gs("gggg","weekYear"),gs("ggggg","weekYear"),gs("GGGG","isoWeekYear"),gs("GGGGG","isoWeekYear"),Vt("weekYear","gg"),Vt("isoWeekYear","GG"),st("weekYear",1),st("isoWeekYear",1),Cn("G",wt),Cn("g",wt),Cn("GG",ht,jn),Cn("gg",ht,jn),Cn("GGGG",We,vn),Cn("gggg",We,vn),Cn("GGGGG",bt,Vn),Cn("ggggg",bt,Vn),ln(["gggg","ggggg","GGGG","GGGGG"],function(q,Ne,yt,Yt){Ne[Yt.substr(0,2)]=Un(q)}),ln(["gg","GG"],function(q,Ne,yt,Yt){Ne[Yt]=n.parseTwoDigitYear(q)}),ee("Q",0,"Qo","quarter"),Vt("quarter","Q"),st("quarter",7),Cn("Q",Bn),Ai("Q",function(q,Ne){Ne[Hi]=3*(Un(q)-1)}),ee("D",["DD",2],"Do","date"),Vt("date","D"),st("date",9),Cn("D",ht),Cn("DD",ht,jn),Cn("Do",function(q,Ne){return q?Ne._dayOfMonthOrdinalParse||Ne._ordinalParse:Ne._dayOfMonthOrdinalParseLenient}),Ai(["D","DD"],Mr),Ai("Do",function(q,Ne){Ne[Mr]=Un(q.match(ht)[0])});var fc=ni("Date",!0);ee("DDD",["DDDD",3],"DDDo","dayOfYear"),Vt("dayOfYear","DDD"),st("dayOfYear",4),Cn("DDD",Et),Cn("DDDD",It),Ai(["DDD","DDDD"],function(q,Ne,yt){yt._dayOfYear=Un(q)}),ee("m",["mm",2],0,"minute"),Vt("minute","m"),st("minute",14),Cn("m",ht),Cn("mm",ht,jn),Ai(["m","mm"],uo);var Ul=ni("Minutes",!1);ee("s",["ss",2],0,"second"),Vt("second","s"),st("second",15),Cn("s",ht),Cn("ss",ht,jn),Ai(["s","ss"],Nr);var ol,od,xl=ni("Seconds",!1);for(ee("S",0,0,function(){return~~(this.millisecond()/100)}),ee(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ee(0,["SSS",3],0,"millisecond"),ee(0,["SSSS",4],0,function(){return 10*this.millisecond()}),ee(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),ee(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),ee(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),ee(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),ee(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Vt("millisecond","ms"),st("millisecond",16),Cn("S",Et,Bn),Cn("SS",Et,jn),Cn("SSS",Et,It),ol="SSSS";ol.length<=9;ol+="S")Cn(ol,gt);function ml(q,Ne){Ne[ss]=Un(1e3*("0."+q))}for(ol="S";ol.length<=9;ol+="S")Ai(ol,ml);od=ni("Milliseconds",!1),ee("z",0,0,"zoneAbbr"),ee("zz",0,0,"zoneName");var Je=te.prototype;function pn(q){return q}Je.add=Xs,Je.calendar=function Vo(q,Ne){1===arguments.length&&(arguments[0]?fs(arguments[0])?(q=arguments[0],Ne=void 0):function Al(q){var un,Ne=f(q)&&!M(q),yt=!1,Yt=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(un=0;un<Yt.length;un+=1)yt=yt||A(q,Yt[un]);return Ne&&yt}(arguments[0])&&(Ne=arguments[0],q=void 0):(q=void 0,Ne=void 0));var yt=q||ns(),Yt=xt(yt,this).startOf("day"),un=n.calendarFormat(this,Yt)||"sameElse",ui=Ne&&(Me(Ne[un])?Ne[un].call(this,yt):Ne[un]);return this.format(ui||this.localeData().calendar(un,this,ns(yt)))},Je.clone=function Ki(){return new te(this)},Je.diff=function na(q,Ne,yt){var Yt,un,ui;if(!this.isValid())return NaN;if(!(Yt=xt(q,this)).isValid())return NaN;switch(un=6e4*(Yt.utcOffset()-this.utcOffset()),Ne=de(Ne)){case"year":ui=Va(this,Yt)/12;break;case"month":ui=Va(this,Yt);break;case"quarter":ui=Va(this,Yt)/3;break;case"second":ui=(this-Yt)/1e3;break;case"minute":ui=(this-Yt)/6e4;break;case"hour":ui=(this-Yt)/36e5;break;case"day":ui=(this-Yt-un)/864e5;break;case"week":ui=(this-Yt-un)/6048e5;break;default:ui=this-Yt}return yt?ui:kn(ui)},Je.endOf=function pt(q){var Ne,yt;if(void 0===(q=de(q))||"millisecond"===q||!this.isValid())return this;switch(yt=this._isUTC?Be:vt,q){case"year":Ne=yt(this.year()+1,0,1)-1;break;case"quarter":Ne=yt(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":Ne=yt(this.year(),this.month()+1,1)-1;break;case"week":Ne=yt(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":Ne=yt(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":Ne=yt(this.year(),this.month(),this.date()+1)-1;break;case"hour":Ne=this._d.valueOf(),Ne+=At-Ye(Ne+(this._isUTC?0:this.utcOffset()*Ot),At)-1;break;case"minute":Ne=this._d.valueOf(),Ne+=Ot-Ye(Ne,Ot)-1;break;case"second":Ne=this._d.valueOf(),Ne+=1e3-Ye(Ne,1e3)-1}return this._d.setTime(Ne),n.updateOffset(this,!0),this},Je.format=function L(q){q||(q=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var Ne=le(this,q);return this.localeData().postformat(Ne)},Je.from=function D(q,Ne){return this.isValid()&&(ce(q)&&q.isValid()||ns(q).isValid())?No({to:this,from:q}).locale(this.locale()).humanize(!Ne):this.localeData().invalidDate()},Je.fromNow=function B(q){return this.from(ns(),q)},Je.to=function re(q,Ne){return this.isValid()&&(ce(q)&&q.isValid()||ns(q).isValid())?No({from:this,to:q}).locale(this.locale()).humanize(!Ne):this.localeData().invalidDate()},Je.toNow=function he(q){return this.to(ns(),q)},Je.get=function Bi(q){return Me(this[q=de(q)])?this[q]():this},Je.invalidAt=function fn(){return m(this).overflow},Je.isAfter=function Uo(q,Ne){var yt=ce(q)?q:ns(q);return!(!this.isValid()||!yt.isValid())&&("millisecond"===(Ne=de(Ne)||"millisecond")?this.valueOf()>yt.valueOf():yt.valueOf()<this.clone().startOf(Ne).valueOf())},Je.isBefore=function fl(q,Ne){var yt=ce(q)?q:ns(q);return!(!this.isValid()||!yt.isValid())&&("millisecond"===(Ne=de(Ne)||"millisecond")?this.valueOf()<yt.valueOf():this.clone().endOf(Ne).valueOf()<yt.valueOf())},Je.isBetween=function gl(q,Ne,yt,Yt){var un=ce(q)?q:ns(q),ui=ce(Ne)?Ne:ns(Ne);return!!(this.isValid()&&un.isValid()&&ui.isValid())&&("("===(Yt=Yt||"()")[0]?this.isAfter(un,yt):!this.isBefore(un,yt))&&(")"===Yt[1]?this.isBefore(ui,yt):!this.isAfter(ui,yt))},Je.isSame=function Tl(q,Ne){var Yt,yt=ce(q)?q:ns(q);return!(!this.isValid()||!yt.isValid())&&("millisecond"===(Ne=de(Ne)||"millisecond")?this.valueOf()===yt.valueOf():(Yt=yt.valueOf(),this.clone().startOf(Ne).valueOf()<=Yt&&Yt<=this.clone().endOf(Ne).valueOf()))},Je.isSameOrAfter=function rd(q,Ne){return this.isSame(q,Ne)||this.isAfter(q,Ne)},Je.isSameOrBefore=function Fl(q,Ne){return this.isSame(q,Ne)||this.isBefore(q,Ne)},Je.isValid=function Bt(){return R(this)},Je.lang=we,Je.locale=Se,Je.localeData=tt,Je.max=Ps,Je.min=La,Je.parsingFlags=function Rt(){return l({},m(this))},Je.set=function _i(q,Ne){if("object"==typeof q){var Yt,yt=function Gt(q){var yt,Ne=[];for(yt in q)A(q,yt)&&Ne.push({unit:yt,priority:$e[yt]});return Ne.sort(function(Yt,un){return Yt.priority-un.priority}),Ne}(q=J(q)),un=yt.length;for(Yt=0;Yt<un;Yt++)this[yt[Yt].unit](q[yt[Yt].unit])}else if(Me(this[q=de(q)]))return this[q](Ne);return this},Je.startOf=function _t(q){var Ne,yt;if(void 0===(q=de(q))||"millisecond"===q||!this.isValid())return this;switch(yt=this._isUTC?Be:vt,q){case"year":Ne=yt(this.year(),0,1);break;case"quarter":Ne=yt(this.year(),this.month()-this.month()%3,1);break;case"month":Ne=yt(this.year(),this.month(),1);break;case"week":Ne=yt(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":Ne=yt(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":Ne=yt(this.year(),this.month(),this.date());break;case"hour":Ne=this._d.valueOf(),Ne-=Ye(Ne+(this._isUTC?0:this.utcOffset()*Ot),At);break;case"minute":Ne=this._d.valueOf(),Ne-=Ye(Ne,Ot);break;case"second":Ne=this._d.valueOf(),Ne-=Ye(Ne,1e3)}return this._d.setTime(Ne),n.updateOffset(this,!0),this},Je.subtract=ds,Je.toArray=function yn(){var q=this;return[q.year(),q.month(),q.date(),q.hour(),q.minute(),q.second(),q.millisecond()]},Je.toObject=function ci(){var q=this;return{years:q.year(),months:q.month(),date:q.date(),hours:q.hours(),minutes:q.minutes(),seconds:q.seconds(),milliseconds:q.milliseconds()}},Je.toDate=function mn(){return new Date(this.valueOf())},Je.toISOString=function ke(q){if(!this.isValid())return null;var Ne=!0!==q,yt=Ne?this.clone().utc():this;return yt.year()<0||yt.year()>9999?le(yt,Ne?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Me(Date.prototype.toISOString)?Ne?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",le(yt,"Z")):le(yt,Ne?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Je.inspect=function _(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var yt,Yt,q="moment",Ne="";return this.isLocal()||(q=0===this.utcOffset()?"moment.utc":"moment.parseZone",Ne="Z"),yt="["+q+'("]',Yt=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(yt+Yt+"-MM-DD[T]HH:mm:ss.SSS"+Ne+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Je[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Je.toJSON=function yi(){return this.isValid()?this.toISOString():null},Je.toString=function Kr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Je.unix=function hn(){return Math.floor(this.valueOf()/1e3)},Je.valueOf=function $t(){return this._d.valueOf()-6e4*(this._offset||0)},Je.creationData=function An(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Je.eraName=function Xn(){var q,Ne,yt,Yt=this.localeData().eras();for(q=0,Ne=Yt.length;q<Ne;++q)if(yt=this.clone().startOf("day").valueOf(),Yt[q].since<=yt&&yt<=Yt[q].until||Yt[q].until<=yt&&yt<=Yt[q].since)return Yt[q].name;return""},Je.eraNarrow=function ai(){var q,Ne,yt,Yt=this.localeData().eras();for(q=0,Ne=Yt.length;q<Ne;++q)if(yt=this.clone().startOf("day").valueOf(),Yt[q].since<=yt&&yt<=Yt[q].until||Yt[q].until<=yt&&yt<=Yt[q].since)return Yt[q].narrow;return""},Je.eraAbbr=function Ni(){var q,Ne,yt,Yt=this.localeData().eras();for(q=0,Ne=Yt.length;q<Ne;++q)if(yt=this.clone().startOf("day").valueOf(),Yt[q].since<=yt&&yt<=Yt[q].until||Yt[q].until<=yt&&yt<=Yt[q].since)return Yt[q].abbr;return""},Je.eraYear=function Zr(){var q,Ne,yt,Yt,un=this.localeData().eras();for(q=0,Ne=un.length;q<Ne;++q)if(yt=un[q].since<=un[q].until?1:-1,Yt=this.clone().startOf("day").valueOf(),un[q].since<=Yt&&Yt<=un[q].until||un[q].until<=Yt&&Yt<=un[q].since)return(this.year()-n(un[q].since).year())*yt+un[q].offset;return this.year()},Je.year=Lo,Je.isLeapYear=function ao(){return Zt(this.year())},Je.weekYear=function $r(q){return va.call(this,q,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Je.isoWeekYear=function ma(q){return va.call(this,q,this.isoWeek(),this.isoWeekday(),1,4)},Je.quarter=Je.quarters=function _a(q){return null==q?Math.ceil((this.month()+1)/3):this.month(3*(q-1)+this.month()%3)},Je.month=br,Je.daysInMonth=function ro(){return er(this.year(),this.month())},Je.week=Je.weeks=function zo(q){var Ne=this.localeData().week(this);return null==q?Ne:this.add(7*(q-Ne),"d")},Je.isoWeek=Je.isoWeeks=function as(q){var Ne=Ci(this,1,4).week;return null==q?Ne:this.add(7*(q-Ne),"d")},Je.weeksInYear=function Es(){var q=this.localeData()._week;return Wi(this.year(),q.dow,q.doy)},Je.weeksInWeekYear=function no(){var q=this.localeData()._week;return Wi(this.weekYear(),q.dow,q.doy)},Je.isoWeeksInYear=function oo(){return Wi(this.year(),1,4)},Je.isoWeeksInISOWeekYear=function Eo(){return Wi(this.isoWeekYear(),1,4)},Je.date=fc,Je.day=Je.days=function ea(q){if(!this.isValid())return null!=q?this:NaN;var Ne=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=q?(q=function ps(q,Ne){return"string"!=typeof q?q:isNaN(q)?"number"==typeof(q=Ne.weekdaysParse(q))?q:null:parseInt(q,10)}(q,this.localeData()),this.add(q-Ne,"d")):Ne},Je.weekday=function Zo(q){if(!this.isValid())return null!=q?this:NaN;var Ne=(this.day()+7-this.localeData()._week.dow)%7;return null==q?Ne:this.add(q-Ne,"d")},Je.isoWeekday=function vs(q){if(!this.isValid())return null!=q?this:NaN;if(null!=q){var Ne=function Hs(q,Ne){return"string"==typeof q?Ne.weekdaysParse(q)%7||7:isNaN(q)?null:q}(q,this.localeData());return this.day(this.day()%7?Ne:Ne-7)}return this.day()||7},Je.dayOfYear=function gc(q){var Ne=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==q?Ne:this.add(q-Ne,"d")},Je.hour=Je.hours=Ml,Je.minute=Je.minutes=Ul,Je.second=Je.seconds=xl,Je.millisecond=Je.milliseconds=od,Je.utcOffset=function ut(q,Ne,yt){var un,Yt=this._offset||0;if(!this.isValid())return null!=q?this:NaN;if(null!=q){if("string"==typeof q){if(null===(q=tn(In,q)))return this}else Math.abs(q)<16&&!yt&&(q*=60);return!this._isUTC&&Ne&&(un=Ht(this)),this._offset=q,this._isUTC=!0,null!=un&&this.add(un,"m"),Yt!==q&&(!Ne||this._changeInProgress?Ca(this,No(q-Yt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?Yt:Ht(this)},Je.utc=function si(q){return this.utcOffset(0,q)},Je.local=function vi(q){return this._isUTC&&(this.utcOffset(0,q),this._isUTC=!1,q&&this.subtract(Ht(this),"m")),this},Je.parseZone=function ur(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var q=tn(rn,this._i);null!=q?this.utcOffset(q):this.utcOffset(0,!0)}return this},Je.hasAlignedHourOffset=function gr(q){return!!this.isValid()&&(q=q?ns(q).utcOffset():0,(this.utcOffset()-q)%60==0)},Je.isDST=function or(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Je.isLocal=function pi(){return!!this.isValid()&&!this._isUTC},Je.isUtcOffset=function Kn(){return!!this.isValid()&&this._isUTC},Je.isUtc=cr,Je.isUTC=cr,Je.zoneAbbr=function Te(){return this._isUTC?"UTC":""},Je.zoneName=function ze(){return this._isUTC?"Coordinated Universal Time":""},Je.dates=Z("dates accessor is deprecated. Use date instead.",fc),Je.months=Z("months accessor is deprecated. Use month instead",br),Je.years=Z("years accessor is deprecated. Use year instead",Lo),Je.zone=Z("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function cn(q,Ne){return null!=q?("string"!=typeof q&&(q=-q),this.utcOffset(q,Ne),this):-this.utcOffset()}),Je.isDSTShifted=Z("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function zn(){if(!T(this._isDSTShifted))return this._isDSTShifted;var Ne,q={};return fe(q,this),(q=xo(q))._a?(Ne=q._isUTC?s(q._a):ns(q._a),this._isDSTShifted=this.isValid()&&function Ts(q,Ne,yt){var zi,Yt=Math.min(q.length,Ne.length),un=Math.abs(q.length-Ne.length),ui=0;for(zi=0;zi<Yt;zi++)(yt&&q[zi]!==Ne[zi]||!yt&&Un(q[zi])!==Un(Ne[zi]))&&ui++;return ui+un}(q._a,Ne.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var gn=ne.prototype;function Di(q,Ne,yt,Yt){var un=Ri(),ui=s().set(Yt,Ne);return un[yt](ui,q)}function ar(q,Ne,yt){if(E(q)&&(Ne=q,q=void 0),q=q||"",null!=Ne)return Di(q,Ne,yt,"month");var Yt,un=[];for(Yt=0;Yt<12;Yt++)un[Yt]=Di(q,Yt,yt,"month");return un}function Xi(q,Ne,yt,Yt){"boolean"==typeof q?(E(Ne)&&(yt=Ne,Ne=void 0),Ne=Ne||""):(yt=Ne=q,q=!1,E(Ne)&&(yt=Ne,Ne=void 0),Ne=Ne||"");var zi,un=Ri(),ui=q?un._week.dow:0,io=[];if(null!=yt)return Di(Ne,(yt+ui)%7,Yt,"day");for(zi=0;zi<7;zi++)io[zi]=Di(Ne,(zi+ui)%7,Yt,"day");return io}gn.calendar=function Xe(q,Ne,yt){var Yt=this._calendar[q]||this._calendar.sameElse;return Me(Yt)?Yt.call(Ne,yt):Yt},gn.longDateFormat=function Oe(q){var Ne=this._longDateFormat[q],yt=this._longDateFormat[q.toUpperCase()];return Ne||!yt?Ne:(this._longDateFormat[q]=yt.match(dt).map(function(Yt){return"MMMM"===Yt||"MM"===Yt||"DD"===Yt||"dddd"===Yt?Yt.slice(1):Yt}).join(""),this._longDateFormat[q])},gn.invalidDate=function Ie(){return this._invalidDate},gn.ordinal=function ve(q){return this._ordinal.replace("%d",q)},gn.preparse=pn,gn.postformat=pn,gn.relativeTime=function pe(q,Ne,yt,Yt){var un=this._relativeTime[yt];return Me(un)?un(q,Ne,yt,Yt):un.replace(/%d/i,q)},gn.pastFuture=function Qe(q,Ne){var yt=this._relativeTime[q>0?"future":"past"];return Me(yt)?yt(Ne):yt.replace(/%s/i,Ne)},gn.set=function be(q){var Ne,yt;for(yt in q)A(q,yt)&&(Me(Ne=q[yt])?this[yt]=Ne:this["_"+yt]=Ne);this._config=q,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.eras=function Nn(q,Ne){var yt,Yt,un,ui=this._eras||Ri("en")._eras;for(yt=0,Yt=ui.length;yt<Yt;++yt)switch("string"==typeof ui[yt].since&&(un=n(ui[yt].since).startOf("day"),ui[yt].since=un.valueOf()),typeof ui[yt].until){case"undefined":ui[yt].until=1/0;break;case"string":un=n(ui[yt].until).startOf("day").valueOf(),ui[yt].until=un.valueOf()}return ui},gn.erasParse=function Rn(q,Ne,yt){var Yt,un,zi,io,vo,ui=this.eras();for(q=q.toUpperCase(),Yt=0,un=ui.length;Yt<un;++Yt)if(zi=ui[Yt].name.toUpperCase(),io=ui[Yt].abbr.toUpperCase(),vo=ui[Yt].narrow.toUpperCase(),yt)switch(Ne){case"N":case"NN":case"NNN":if(io===q)return ui[Yt];break;case"NNNN":if(zi===q)return ui[Yt];break;case"NNNNN":if(vo===q)return ui[Yt]}else if([zi,io,vo].indexOf(q)>=0)return ui[Yt]},gn.erasConvertYear=function Hn(q,Ne){var yt=q.since<=q.until?1:-1;return void 0===Ne?n(q.since).year():n(q.since).year()+(Ne-q.offset)*yt},gn.erasAbbrRegex=function Ir(q){return A(this,"_erasAbbrRegex")||aa.call(this),q?this._erasAbbrRegex:this._erasRegex},gn.erasNameRegex=function en(q){return A(this,"_erasNameRegex")||aa.call(this),q?this._erasNameRegex:this._erasRegex},gn.erasNarrowRegex=function Do(q){return A(this,"_erasNarrowRegex")||aa.call(this),q?this._erasNarrowRegex:this._erasRegex},gn.months=function Si(q,Ne){return q?h(this._months)?this._months[q.month()]:this._months[(this._months.isFormat||Fn).test(Ne)?"format":"standalone"][q.month()]:h(this._months)?this._months:this._months.standalone},gn.monthsShort=function Yi(q,Ne){return q?h(this._monthsShort)?this._monthsShort[q.month()]:this._monthsShort[Fn.test(Ne)?"format":"standalone"][q.month()]:h(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function vr(q,Ne,yt){var Yt,un,ui;if(this._monthsParseExact)return Qi.call(this,q,Ne,yt);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),Yt=0;Yt<12;Yt++){if(un=s([2e3,Yt]),yt&&!this._longMonthsParse[Yt]&&(this._longMonthsParse[Yt]=new RegExp("^"+this.months(un,"").replace(".","")+"$","i"),this._shortMonthsParse[Yt]=new RegExp("^"+this.monthsShort(un,"").replace(".","")+"$","i")),!yt&&!this._monthsParse[Yt]&&(ui="^"+this.months(un,"")+"|^"+this.monthsShort(un,""),this._monthsParse[Yt]=new RegExp(ui.replace(".",""),"i")),yt&&"MMMM"===Ne&&this._longMonthsParse[Yt].test(q))return Yt;if(yt&&"MMM"===Ne&&this._shortMonthsParse[Yt].test(q))return Yt;if(!yt&&this._monthsParse[Yt].test(q))return Yt}},gn.monthsRegex=function Hr(q){return this._monthsParseExact?(A(this,"_monthsRegex")||Ao.call(this),q?this._monthsStrictRegex:this._monthsRegex):(A(this,"_monthsRegex")||(this._monthsRegex=fi),this._monthsStrictRegex&&q?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function Oo(q){return this._monthsParseExact?(A(this,"_monthsRegex")||Ao.call(this),q?this._monthsShortStrictRegex:this._monthsShortRegex):(A(this,"_monthsShortRegex")||(this._monthsShortRegex=xi),this._monthsShortStrictRegex&&q?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function Ti(q){return Ci(q,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function _o(){return this._week.doy},gn.firstDayOfWeek=function Tr(){return this._week.dow},gn.weekdays=function Bs(q,Ne){var yt=h(this._weekdays)?this._weekdays:this._weekdays[q&&!0!==q&&this._weekdays.isFormat.test(Ne)?"format":"standalone"];return!0===q?Qr(yt,this._week.dow):q?yt[q.day()]:yt},gn.weekdaysMin=function qs(q){return!0===q?Qr(this._weekdaysMin,this._week.dow):q?this._weekdaysMin[q.day()]:this._weekdaysMin},gn.weekdaysShort=function Oa(q){return!0===q?Qr(this._weekdaysShort,this._week.dow):q?this._weekdaysShort[q.day()]:this._weekdaysShort},gn.weekdaysParse=function js(q,Ne,yt){var Yt,un,ui;if(this._weekdaysParseExact)return Er.call(this,q,Ne,yt);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),Yt=0;Yt<7;Yt++){if(un=s([2e3,1]).day(Yt),yt&&!this._fullWeekdaysParse[Yt]&&(this._fullWeekdaysParse[Yt]=new RegExp("^"+this.weekdays(un,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[Yt]=new RegExp("^"+this.weekdaysShort(un,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[Yt]=new RegExp("^"+this.weekdaysMin(un,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[Yt]||(ui="^"+this.weekdays(un,"")+"|^"+this.weekdaysShort(un,"")+"|^"+this.weekdaysMin(un,""),this._weekdaysParse[Yt]=new RegExp(ui.replace(".",""),"i")),yt&&"dddd"===Ne&&this._fullWeekdaysParse[Yt].test(q))return Yt;if(yt&&"ddd"===Ne&&this._shortWeekdaysParse[Yt].test(q))return Yt;if(yt&&"dd"===Ne&&this._minWeekdaysParse[Yt].test(q))return Yt;if(!yt&&this._weekdaysParse[Yt].test(q))return Yt}},gn.weekdaysRegex=function Ys(q){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||cs.call(this),q?this._weekdaysStrictRegex:this._weekdaysRegex):(A(this,"_weekdaysRegex")||(this._weekdaysRegex=Qo),this._weekdaysStrictRegex&&q?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function ho(q){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||cs.call(this),q?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(A(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xs),this._weekdaysShortStrictRegex&&q?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function Bo(q){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||cs.call(this),q?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(A(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=hl),this._weekdaysMinStrictRegex&&q?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function sa(q){return"p"===(q+"").toLowerCase().charAt(0)},gn.meridiem=function _s(q,Ne,yt){return q>11?yt?"pm":"PM":yt?"am":"AM"},ei("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(q){var Ne=q%10;return q+(1===Un(q%100/10)?"th":1===Ne?"st":2===Ne?"nd":3===Ne?"rd":"th")}}),n.lang=Z("moment.lang is deprecated. Use moment.locale instead.",ei),n.langData=Z("moment.langData is deprecated. Use moment.localeData instead.",Ri);var kr=Math.abs;function Qa(q,Ne,yt,Yt){var un=No(Ne,yt);return q._milliseconds+=Yt*un._milliseconds,q._days+=Yt*un._days,q._months+=Yt*un._months,q._bubble()}function $l(q){return q<0?Math.floor(q):Math.ceil(q)}function sd(q){return 4800*q/146097}function vl(q){return 146097*q/4800}function Bl(q){return function(){return this.as(q)}}var Kd=Bl("ms"),Ga=Bl("s"),Za=Bl("m"),Ol=Bl("h"),zl=Bl("d"),cu=Bl("w"),Lc=Bl("M"),Fo=Bl("Q"),ld=Bl("y");function mc(q){return function(){return this.isValid()?this._data[q]:NaN}}var Nc=mc("milliseconds"),Vl=mc("seconds"),_l=mc("minutes"),Aa=mc("hours"),Td=mc("days"),xd=mc("months"),vc=mc("years");var oc=Math.round,cd={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Wc(q,Ne,yt,Yt,un){return un.relativeTime(Ne||1,!!yt,q,Yt)}var ks=Math.abs;function lo(q){return(q>0)-(q<0)||+q}function dd(){if(!this.isValid())return this.localeData().invalidDate();var Yt,un,ui,zi,vo,Is,Vi,yo,q=ks(this._milliseconds)/1e3,Ne=ks(this._days),yt=ks(this._months),io=this.asSeconds();return io?(Yt=kn(q/60),un=kn(Yt/60),q%=60,Yt%=60,ui=kn(yt/12),yt%=12,zi=q?q.toFixed(3).replace(/\.?0+$/,""):"",vo=io<0?"-":"",Is=lo(this._months)!==lo(io)?"-":"",Vi=lo(this._days)!==lo(io)?"-":"",yo=lo(this._milliseconds)!==lo(io)?"-":"",vo+"P"+(ui?Is+ui+"Y":"")+(yt?Is+yt+"M":"")+(Ne?Vi+Ne+"D":"")+(un||Yt||q?"T":"")+(un?yo+un+"H":"")+(Yt?yo+Yt+"M":"")+(q?yo+zi+"S":"")):"P0D"}var Ss=wr.prototype;return Ss.isValid=function Br(){return this._isValid},Ss.abs=function Dl(){var q=this._data;return this._milliseconds=kr(this._milliseconds),this._days=kr(this._days),this._months=kr(this._months),q.milliseconds=kr(q.milliseconds),q.seconds=kr(q.seconds),q.minutes=kr(q.minutes),q.hours=kr(q.hours),q.months=kr(q.months),q.years=kr(q.years),this},Ss.add=function zd(q,Ne){return Qa(this,q,Ne,1)},Ss.subtract=function Nu(q,Ne){return Qa(this,q,Ne,-1)},Ss.as=function Yc(q){if(!this.isValid())return NaN;var Ne,yt,Yt=this._milliseconds;if("month"===(q=de(q))||"quarter"===q||"year"===q)switch(Ne=this._days+Yt/864e5,yt=this._months+sd(Ne),q){case"month":return yt;case"quarter":return yt/3;case"year":return yt/12}else switch(Ne=this._days+Math.round(vl(this._months)),q){case"week":return Ne/7+Yt/6048e5;case"day":return Ne+Yt/864e5;case"hour":return 24*Ne+Yt/36e5;case"minute":return 1440*Ne+Yt/6e4;case"second":return 86400*Ne+Yt/1e3;case"millisecond":return Math.floor(864e5*Ne)+Yt;default:throw new Error("Unknown unit "+q)}},Ss.asMilliseconds=Kd,Ss.asSeconds=Ga,Ss.asMinutes=Za,Ss.asHours=Ol,Ss.asDays=zl,Ss.asWeeks=cu,Ss.asMonths=Lc,Ss.asQuarters=Fo,Ss.asYears=ld,Ss.valueOf=function ad(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Un(this._months/12):NaN},Ss._bubble=function ku(){var un,ui,zi,io,vo,q=this._milliseconds,Ne=this._days,yt=this._months,Yt=this._data;return q>=0&&Ne>=0&&yt>=0||q<=0&&Ne<=0&&yt<=0||(q+=864e5*$l(vl(yt)+Ne),Ne=0,yt=0),Yt.milliseconds=q%1e3,un=kn(q/1e3),Yt.seconds=un%60,ui=kn(un/60),Yt.minutes=ui%60,zi=kn(ui/60),Yt.hours=zi%24,Ne+=kn(zi/24),yt+=vo=kn(sd(Ne)),Ne-=$l(vl(vo)),io=kn(yt/12),yt%=12,Yt.days=Ne,Yt.months=yt,Yt.years=io,this},Ss.clone=function Ad(){return No(this)},Ss.get=function la(q){return q=de(q),this.isValid()?this[q+"s"]():NaN},Ss.milliseconds=Nc,Ss.seconds=Vl,Ss.minutes=_l,Ss.hours=Aa,Ss.days=Td,Ss.weeks=function mh(){return kn(this.days()/7)},Ss.months=xd,Ss.years=vc,Ss.humanize=function Gl(q,Ne){if(!this.isValid())return this.localeData().invalidDate();var un,ui,yt=!1,Yt=cd;return"object"==typeof q&&(Ne=q,q=!1),"boolean"==typeof q&&(yt=q),"object"==typeof Ne&&(Yt=Object.assign({},cd,Ne),null!=Ne.s&&null==Ne.ss&&(Yt.ss=Ne.s-1)),ui=function du(q,Ne,yt,Yt){var un=No(q).abs(),ui=oc(un.as("s")),zi=oc(un.as("m")),io=oc(un.as("h")),vo=oc(un.as("d")),Is=oc(un.as("M")),Vi=oc(un.as("w")),yo=oc(un.as("y")),Pl=ui<=yt.ss&&["s",ui]||ui<yt.s&&["ss",ui]||zi<=1&&["m"]||zi<yt.m&&["mm",zi]||io<=1&&["h"]||io<yt.h&&["hh",io]||vo<=1&&["d"]||vo<yt.d&&["dd",vo];return null!=yt.w&&(Pl=Pl||Vi<=1&&["w"]||Vi<yt.w&&["ww",Vi]),(Pl=Pl||Is<=1&&["M"]||Is<yt.M&&["MM",Is]||yo<=1&&["y"]||["yy",yo])[2]=Ne,Pl[3]=+q>0,Pl[4]=Yt,Wc.apply(null,Pl)}(this,!yt,Yt,un=this.localeData()),yt&&(ui=un.pastFuture(+this,ui)),un.postformat(ui)},Ss.toISOString=dd,Ss.toString=dd,Ss.toJSON=dd,Ss.locale=Se,Ss.localeData=tt,Ss.toIsoString=Z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",dd),Ss.lang=we,ee("X",0,0,"unix"),ee("x",0,0,"valueOf"),Cn("x",wt),Cn("X",/[+-]?\d+(\.\d{1,3})?/),Ai("X",function(q,Ne,yt){yt._d=new Date(1e3*parseFloat(q))}),Ai("x",function(q,Ne,yt){yt._d=new Date(Un(q))}),n.version="2.29.4",function v(q){r=q}(ns),n.fn=Je,n.min=function pl(){return Or("isBefore",[].slice.call(arguments,0))},n.max=function Na(){return Or("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=s,n.unix=function Ze(q){return ns(1e3*q)},n.months=function mo(q,Ne){return ar(q,Ne,"months")},n.isDate=y,n.locale=ei,n.invalid=O,n.duration=No,n.isMoment=ce,n.weekdays=function ko(q,Ne,yt){return Xi(q,Ne,yt,"weekdays")},n.parseZone=function Mt(){return ns.apply(null,arguments).parseZone()},n.localeData=Ri,n.isDuration=ys,n.monthsShort=function Jo(q,Ne){return ar(q,Ne,"monthsShort")},n.weekdaysMin=function ra(q,Ne,yt){return Xi(q,Ne,yt,"weekdaysMin")},n.defineLocale=di,n.updateLocale=function wi(q,Ne){if(null!=Ne){var yt,Yt,un=wa;null!=To[q]&&null!=To[q].parentLocale?To[q].set(Q(To[q]._config,Ne)):(null!=(Yt=Ii(q))&&(un=Yt._config),Ne=Q(un,Ne),null==Yt&&(Ne.abbr=q),(yt=new ne(Ne)).parentLocale=To[q],To[q]=yt),ei(q)}else null!=To[q]&&(null!=To[q].parentLocale?(To[q]=To[q].parentLocale,q===ei()&&ei(q)):null!=To[q]&&delete To[q]);return To[q]},n.locales=function Nt(){return Ge(To)},n.weekdaysShort=function ya(q,Ne,yt){return Xi(q,Ne,yt,"weekdaysShort")},n.normalizeUnits=de,n.relativeTimeRounding=function Dd(q){return void 0===q?oc:"function"==typeof q&&(oc=q,!0)},n.relativeTimeThreshold=function _c(q,Ne){return void 0!==cd[q]&&(void 0===Ne?cd[q]:(cd[q]=Ne,"s"===q&&(cd.ss=Ne-1),!0))},n.calendarFormat=function Ma(q,Ne){var yt=q.diff(Ne,"days",!0);return yt<-6?"sameElse":yt<-1?"lastWeek":yt<0?"lastDay":yt<1?"sameDay":yt<2?"nextDay":yt<7?"nextWeek":"sameElse"},n.prototype=Je,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()},99759:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=function(){return function r(n){this.buffer=n}}()},30880:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.FORMAT_BINARY="binary",z.FORMAT_TEXT_MAP="text_map",z.FORMAT_HTTP_HEADERS="http_headers",z.REFERENCE_CHILD_OF="child_of",z.REFERENCE_FOLLOWS_FROM="follows_from"},38880:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.SPAN_KIND="span.kind",z.SPAN_KIND_RPC_CLIENT="client",z.SPAN_KIND_RPC_SERVER="server",z.SPAN_KIND_MESSAGING_PRODUCER="producer",z.SPAN_KIND_MESSAGING_CONSUMER="consumer",z.ERROR="error",z.COMPONENT="component",z.SAMPLING_PRIORITY="sampling.priority",z.PEER_SERVICE="peer.service",z.PEER_HOSTNAME="peer.hostname",z.PEER_ADDRESS="peer.address",z.PEER_HOST_IPV4="peer.ipv4",z.PEER_HOST_IPV6="peer.ipv6",z.PEER_PORT="peer.port",z.HTTP_URL="http.url",z.HTTP_METHOD="http.method",z.HTTP_STATUS_CODE="http.status_code",z.MESSAGE_BUS_DESTINATION="message_bus.destination",z.DB_INSTANCE="db.instance",z.DB_STATEMENT="db.statement",z.DB_TYPE="db.type",z.DB_USER="db.user"},42828:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var r=c(30880),n=c(81588),v=c(74901);z.childOf=function h(A){return A instanceof v.default&&(A=A.context()),new n.default(r.REFERENCE_CHILD_OF,A)},z.followsFrom=function f(A){return A instanceof v.default&&(A=A.context()),new n.default(r.REFERENCE_FOLLOWS_FROM,A)}},58712:function(je,z,c){"use strict";var r=this&&this.__extends||function(){var E=function(y,S){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,s){l.__proto__=s}||function(l,s){for(var u in s)s.hasOwnProperty(u)&&(l[u]=s[u])})(y,S)};return function(y,S){function l(){this.constructor=y}E(y,S),y.prototype=null===S?Object.create(S):(l.prototype=S.prototype,new l)}}();Object.defineProperty(z,"__esModule",{value:!0});var n=c(86572),v=new n.default,h=null,f=function(E){function y(){return null!==E&&E.apply(this,arguments)||this}return r(y,E),y.prototype.startSpan=function(){var S=h||v;return S.startSpan.apply(S,arguments)},y.prototype.inject=function(){var S=h||v;return S.inject.apply(S,arguments)},y.prototype.extract=function(){var S=h||v;return S.extract.apply(S,arguments)},y}(n.default),A=new f;z.initGlobalTracer=function M(E){h=E},z.globalTracer=function T(){return A}},26745:(je,z,c)=>{"use strict";function r(y){for(var S in y)z.hasOwnProperty(S)||(z[S]=y[S])}Object.defineProperty(z,"__esModule",{value:!0});var n=c(99759);z.BinaryCarrier=n.default;var v=c(38880);z.Tags=v;var h=c(8297),f=c(81588);z.Reference=f.default;var A=c(74901);z.Span=A.default;var M=c(39529);z.SpanContext=M.default;var T=c(86572);z.Tracer=T.Tracer;var E=c(72152);z.MockTracer=E.MockTracer,r(c(58712)),r(c(30880)),r(c(42828)),h.initialize()},72152:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var r=c(93764);z.MockContext=r.default;var n=c(38891);z.MockSpan=n.default;var v=c(62614);z.MockTracer=v.default},93764:function(je,z,c){"use strict";var r=this&&this.__extends||function(){var h=function(f,A){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,T){M.__proto__=T}||function(M,T){for(var E in T)T.hasOwnProperty(E)&&(M[E]=T[E])})(f,A)};return function(f,A){function M(){this.constructor=f}h(f,A),f.prototype=null===A?Object.create(A):(M.prototype=A.prototype,new M)}}();Object.defineProperty(z,"__esModule",{value:!0});var v=function(h){function f(A){var M=h.call(this)||this;return M._span=A,M}return r(f,h),f.prototype.span=function(){return this._span},f}(c(39529).SpanContext);z.MockContext=v,z.default=v},41017:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var c=function(){function r(n){var v=this;this.spans=n,this.spansByUUID={},this.spansByTag={},this.debugSpans=[],this.unfinishedSpans=[],n.forEach(function(h){0===h._finishMs&&v.unfinishedSpans.push(h),v.spansByUUID[h.uuid()]=h,v.debugSpans.push(h.debug());var f=h.tags();Object.keys(f).forEach(function(A){var M=f[A];v.spansByTag[A]=v.spansByTag[A]||{},v.spansByTag[A][M]=v.spansByTag[A][M]||[],v.spansByTag[A][M].push(h)})})}return r.prototype.firstSpanWithTagValue=function(n,v){var h=this.spansByTag[n];if(!h)return null;var f=h[v];return f?f[0]:null},r}();z.MockReport=c,z.default=c},38891:function(je,z,c){"use strict";var r=this&&this.__extends||function(){var f=function(A,M){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,E){T.__proto__=E}||function(T,E){for(var y in E)E.hasOwnProperty(y)&&(T[y]=E[y])})(A,M)};return function(A,M){function T(){this.constructor=A}f(A,M),A.prototype=null===M?Object.create(M):(T.prototype=M.prototype,new T)}}();Object.defineProperty(z,"__esModule",{value:!0});var n=c(26745),v=c(93764),h=function(f){function A(M){var T=f.call(this)||this;return T._mockTracer=M,T._uuid=T._generateUUID(),T._startMs=Date.now(),T._finishMs=0,T._operationName="",T._tags={},T._logs=[],T}return r(A,f),A.prototype._context=function(){return new v.default(this)},A.prototype._setOperationName=function(M){this._operationName=M},A.prototype._addTags=function(M){for(var E=0,y=Object.keys(M);E<y.length;E++){var S=y[E];this._tags[S]=M[S]}},A.prototype._log=function(M,T){this._logs.push({fields:M,timestamp:T})},A.prototype._finish=function(M){this._finishMs=M||Date.now()},A.prototype.uuid=function(){return this._uuid},A.prototype.operationName=function(){return this._operationName},A.prototype.durationMs=function(){return this._finishMs-this._startMs},A.prototype.tags=function(){return this._tags},A.prototype.tracer=function(){return this._mockTracer},A.prototype._generateUUID=function(){return""+("00000000"+Math.abs(4294967295*Math.random()|0).toString(16)).substr(-8)+("00000000"+Math.abs(4294967295*Math.random()|0).toString(16)).substr(-8)},A.prototype.addReference=function(M){},A.prototype.debug=function(){var M={uuid:this._uuid,operation:this._operationName,millis:[this._finishMs-this._startMs,this._startMs,this._finishMs]};return Object.keys(this._tags).length&&(M.tags=this._tags),M},A}(n.Span);z.MockSpan=h,z.default=h},62614:function(je,z,c){"use strict";var r=this&&this.__extends||function(){var A=function(M,T){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,y){E.__proto__=y}||function(E,y){for(var S in y)y.hasOwnProperty(S)&&(E[S]=y[S])})(M,T)};return function(M,T){function E(){this.constructor=M}A(M,T),M.prototype=null===T?Object.create(T):(E.prototype=T.prototype,new E)}}();Object.defineProperty(z,"__esModule",{value:!0});var n=c(26745),v=c(41017),h=c(38891),f=function(A){function M(){var T=A.call(this)||this;return T._spans=[],T}return r(M,A),M.prototype._startSpan=function(T,E){var y=this._allocSpan();if(y.setOperationName(T),this._spans.push(y),E.references)for(var S=0,l=E.references;S<l.length;S++)y.addReference(l[S]);return y._startStack=(new Error).stack,y},M.prototype._inject=function(T,E,y){throw new Error("NOT YET IMPLEMENTED")},M.prototype._extract=function(T,E){throw new Error("NOT YET IMPLEMENTED")},M.prototype._allocSpan=function(){return new h.default(this)},M.prototype.clear=function(){this._spans=[]},M.prototype.report=function(){return new v.default(this._spans)},M}(n.Tracer);z.MockTracer=f,z.default=f},8297:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var r=c(74901),n=c(39529),v=c(86572);z.tracer=null,z.spanContext=null,z.span=null,z.initialize=function h(){z.tracer=new v.default,z.span=new r.default,z.spanContext=new n.default}},81588:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var r=c(74901),n=function(){function v(h,f){this._type=h,this._referencedContext=f instanceof r.default?f.context():f}return v.prototype.type=function(){return this._type},v.prototype.referencedContext=function(){return this._referencedContext},v}();z.default=n},74901:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var r=c(8297),n=function(){function v(){}return v.prototype.context=function(){return this._context()},v.prototype.tracer=function(){return this._tracer()},v.prototype.setOperationName=function(h){return this._setOperationName(h),this},v.prototype.setBaggageItem=function(h,f){return this._setBaggageItem(h,f),this},v.prototype.getBaggageItem=function(h){return this._getBaggageItem(h)},v.prototype.setTag=function(h,f){var A;return this._addTags(((A={})[h]=f,A)),this},v.prototype.addTags=function(h){return this._addTags(h),this},v.prototype.log=function(h,f){return this._log(h,f),this},v.prototype.logEvent=function(h,f){return this._log({event:h,payload:f})},v.prototype.finish=function(h){this._finish(h)},v.prototype._context=function(){return r.spanContext},v.prototype._tracer=function(){return r.tracer},v.prototype._setOperationName=function(h){},v.prototype._setBaggageItem=function(h,f){},v.prototype._getBaggageItem=function(h){},v.prototype._addTags=function(h){},v.prototype._log=function(h,f){},v.prototype._finish=function(h){},v}();z.Span=n,z.default=n},39529:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var c=function(){function r(){}return r.prototype.toTraceId=function(){return""},r.prototype.toSpanId=function(){return""},r}();z.SpanContext=c,z.default=c},86572:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var r=c(42828),n=c(8297),v=c(74901),h=function(){function f(){}return f.prototype.startSpan=function(A,M){if(void 0===M&&(M={}),M.childOf){var T=r.childOf(M.childOf);M.references?M.references.push(T):M.references=[T],delete M.childOf}return this._startSpan(A,M)},f.prototype.inject=function(A,M,T){return A instanceof v.default&&(A=A.context()),this._inject(A,M,T)},f.prototype.extract=function(A,M){return this._extract(A,M)},f.prototype._startSpan=function(A,M){return n.span},f.prototype._inject=function(A,M,T){},f.prototype._extract=function(A,M){return n.spanContext},f}();z.Tracer=h,z.default=h},85667:(je,z,c)=>{const n=c(56281),v=c(92649),h=c(36967),f=c(66288);function A(M,T,E,y,S){const l=[].slice.call(arguments,1),s=l.length,u="function"==typeof l[s-1];if(!u&&!n())throw new Error("Callback required as last argument");if(!u){if(s<1)throw new Error("Too few arguments provided");return 1===s?(E=T,T=y=void 0):2===s&&!T.getContext&&(y=E,E=T,T=void 0),new Promise(function(m,I){try{const R=v.create(E,y);m(M(R,T,y))}catch(R){I(R)}})}if(s<2)throw new Error("Too few arguments provided");2===s?(S=E,E=T,T=y=void 0):3===s&&(T.getContext&&typeof S>"u"?(S=y,y=void 0):(S=y,y=E,E=T,T=void 0));try{const m=v.create(E,y);S(null,M(m,T,y))}catch(m){S(m)}}z.mo=A.bind(null,h.render),z.dY=A.bind(null,h.renderToDataURL),z.toString=A.bind(null,function(M,T,E){return f.render(M,E)})},56281:je=>{je.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},68817:(je,z,c)=>{const r=c(17610).getSymbolSize;z.getRowColCoords=function(v){if(1===v)return[];const h=Math.floor(v/7)+2,f=r(v),A=145===f?26:2*Math.ceil((f-13)/(2*h-2)),M=[f-7];for(let T=1;T<h-1;T++)M[T]=M[T-1]-A;return M.push(6),M.reverse()},z.getPositions=function(v){const h=[],f=z.getRowColCoords(v),A=f.length;for(let M=0;M<A;M++)for(let T=0;T<A;T++)0===M&&0===T||0===M&&T===A-1||M===A-1&&0===T||h.push([f[M],f[T]]);return h}},61925:(je,z,c)=>{const r=c(7092),n=["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 v(h){this.mode=r.ALPHANUMERIC,this.data=h}v.getBitsLength=function(f){return 11*Math.floor(f/2)+f%2*6},v.prototype.getLength=function(){return this.data.length},v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)},v.prototype.write=function(f){let A;for(A=0;A+2<=this.data.length;A+=2){let M=45*n.indexOf(this.data[A]);M+=n.indexOf(this.data[A+1]),f.put(M,11)}this.data.length%2&&f.put(n.indexOf(this.data[A]),6)},je.exports=v},71535:je=>{function z(){this.buffer=[],this.length=0}z.prototype={get:function(c){const r=Math.floor(c/8);return 1==(this.buffer[r]>>>7-c%8&1)},put:function(c,r){for(let n=0;n<r;n++)this.putBit(1==(c>>>r-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(c){const r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),c&&(this.buffer[r]|=128>>>this.length%8),this.length++}},je.exports=z},37672:je=>{function z(c){if(!c||c<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=c,this.data=new Uint8Array(c*c),this.reservedBit=new Uint8Array(c*c)}z.prototype.set=function(c,r,n,v){const h=c*this.size+r;this.data[h]=n,v&&(this.reservedBit[h]=!0)},z.prototype.get=function(c,r){return this.data[c*this.size+r]},z.prototype.xor=function(c,r,n){this.data[c*this.size+r]^=n},z.prototype.isReserved=function(c,r){return this.reservedBit[c*this.size+r]},je.exports=z},19138:(je,z,c)=>{const r=c(30741),n=c(7092);function v(h){this.mode=n.BYTE,"string"==typeof h&&(h=r(h)),this.data=new Uint8Array(h)}v.getBitsLength=function(f){return 8*f},v.prototype.getLength=function(){return this.data.length},v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)},v.prototype.write=function(h){for(let f=0,A=this.data.length;f<A;f++)h.put(this.data[f],8)},je.exports=v},16554:(je,z,c)=>{const r=c(89605),n=[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],v=[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(f,A){switch(A){case r.L:return n[4*(f-1)+0];case r.M:return n[4*(f-1)+1];case r.Q:return n[4*(f-1)+2];case r.H:return n[4*(f-1)+3];default:return}},z.getTotalCodewordsCount=function(f,A){switch(A){case r.L:return v[4*(f-1)+0];case r.M:return v[4*(f-1)+1];case r.Q:return v[4*(f-1)+2];case r.H:return v[4*(f-1)+3];default:return}}},89605:(je,z)=>{z.L={bit:1},z.M={bit:0},z.Q={bit:3},z.H={bit:2},z.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},z.from=function(n,v){if(z.isValid(n))return n;try{return function c(r){if("string"!=typeof r)throw new Error("Param is not a string");switch(r.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: "+r)}}(n)}catch{return v}}},30008:(je,z,c)=>{const r=c(17610).getSymbolSize;z.getPositions=function(h){const f=r(h);return[[0,0],[f-7,0],[0,f-7]]}},44321:(je,z,c)=>{const r=c(17610),h=r.getBCHDigit(1335);z.getEncodedBits=function(A,M){const T=A.bit<<3|M;let E=T<<10;for(;r.getBCHDigit(E)-h>=0;)E^=1335<<r.getBCHDigit(E)-h;return 21522^(T<<10|E)}},5199:(je,z)=>{const c=new Uint8Array(512),r=new Uint8Array(256);(function(){let v=1;for(let h=0;h<255;h++)c[h]=v,r[v]=h,v<<=1,256&v&&(v^=285);for(let h=255;h<512;h++)c[h]=c[h-255]})(),z.log=function(v){if(v<1)throw new Error("log("+v+")");return r[v]},z.exp=function(v){return c[v]},z.mul=function(v,h){return 0===v||0===h?0:c[r[v]+r[h]]}},8897:(je,z,c)=>{const r=c(7092),n=c(17610);function v(h){this.mode=r.KANJI,this.data=h}v.getBitsLength=function(f){return 13*f},v.prototype.getLength=function(){return this.data.length},v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)},v.prototype.write=function(h){let f;for(f=0;f<this.data.length;f++){let A=n.toSJIS(this.data[f]);if(A>=33088&&A<=40956)A-=33088;else{if(!(A>=57408&&A<=60351))throw new Error("Invalid SJIS character: "+this.data[f]+"\nMake sure your charset is UTF-8");A-=49472}A=192*(A>>>8&255)+(255&A),h.put(A,13)}},je.exports=v},43800:(je,z)=>{z.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function r(n,v,h){switch(n){case z.Patterns.PATTERN000:return(v+h)%2==0;case z.Patterns.PATTERN001:return v%2==0;case z.Patterns.PATTERN010:return h%3==0;case z.Patterns.PATTERN011:return(v+h)%3==0;case z.Patterns.PATTERN100:return(Math.floor(v/2)+Math.floor(h/3))%2==0;case z.Patterns.PATTERN101:return v*h%2+v*h%3==0;case z.Patterns.PATTERN110:return(v*h%2+v*h%3)%2==0;case z.Patterns.PATTERN111:return(v*h%3+(v+h)%2)%2==0;default:throw new Error("bad maskPattern:"+n)}}z.isValid=function(v){return null!=v&&""!==v&&!isNaN(v)&&v>=0&&v<=7},z.from=function(v){return z.isValid(v)?parseInt(v,10):void 0},z.getPenaltyN1=function(v){const h=v.size;let f=0,A=0,M=0,T=null,E=null;for(let y=0;y<h;y++){A=M=0,T=E=null;for(let S=0;S<h;S++){let l=v.get(y,S);l===T?A++:(A>=5&&(f+=A-5+3),T=l,A=1),l=v.get(S,y),l===E?M++:(M>=5&&(f+=M-5+3),E=l,M=1)}A>=5&&(f+=A-5+3),M>=5&&(f+=M-5+3)}return f},z.getPenaltyN2=function(v){const h=v.size;let f=0;for(let A=0;A<h-1;A++)for(let M=0;M<h-1;M++){const T=v.get(A,M)+v.get(A,M+1)+v.get(A+1,M)+v.get(A+1,M+1);(4===T||0===T)&&f++}return 3*f},z.getPenaltyN3=function(v){const h=v.size;let f=0,A=0,M=0;for(let T=0;T<h;T++){A=M=0;for(let E=0;E<h;E++)A=A<<1&2047|v.get(T,E),E>=10&&(1488===A||93===A)&&f++,M=M<<1&2047|v.get(E,T),E>=10&&(1488===M||93===M)&&f++}return 40*f},z.getPenaltyN4=function(v){let h=0;const f=v.data.length;for(let M=0;M<f;M++)h+=v.data[M];return 10*Math.abs(Math.ceil(100*h/f/5)-10)},z.applyMask=function(v,h){const f=h.size;for(let A=0;A<f;A++)for(let M=0;M<f;M++)h.isReserved(M,A)||h.xor(M,A,r(v,M,A))},z.getBestMask=function(v,h){const f=Object.keys(z.Patterns).length;let A=0,M=1/0;for(let T=0;T<f;T++){h(T),z.applyMask(T,v);const E=z.getPenaltyN1(v)+z.getPenaltyN2(v)+z.getPenaltyN3(v)+z.getPenaltyN4(v);z.applyMask(T,v),E<M&&(M=E,A=T)}return A}},7092:(je,z,c)=>{const r=c(74242),n=c(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(f,A){if(!f.ccBits)throw new Error("Invalid mode: "+f);if(!r.isValid(A))throw new Error("Invalid version: "+A);return A>=1&&A<10?f.ccBits[0]:A<27?f.ccBits[1]:f.ccBits[2]},z.getBestModeForData=function(f){return n.testNumeric(f)?z.NUMERIC:n.testAlphanumeric(f)?z.ALPHANUMERIC:n.testKanji(f)?z.KANJI:z.BYTE},z.toString=function(f){if(f&&f.id)return f.id;throw new Error("Invalid mode")},z.isValid=function(f){return f&&f.bit&&f.ccBits},z.from=function(f,A){if(z.isValid(f))return f;try{return function v(h){if("string"!=typeof h)throw new Error("Param is not a string");switch(h.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: "+h)}}(f)}catch{return A}}},69569:(je,z,c)=>{const r=c(7092);function n(v){this.mode=r.NUMERIC,this.data=v.toString()}n.getBitsLength=function(h){return 10*Math.floor(h/3)+(h%3?h%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(h){let f,A,M;for(f=0;f+3<=this.data.length;f+=3)A=this.data.substr(f,3),M=parseInt(A,10),h.put(M,10);const T=this.data.length-f;T>0&&(A=this.data.substr(f),M=parseInt(A,10),h.put(M,3*T+1))},je.exports=n},84333:(je,z,c)=>{const r=c(5199);z.mul=function(v,h){const f=new Uint8Array(v.length+h.length-1);for(let A=0;A<v.length;A++)for(let M=0;M<h.length;M++)f[A+M]^=r.mul(v[A],h[M]);return f},z.mod=function(v,h){let f=new Uint8Array(v);for(;f.length-h.length>=0;){const A=f[0];for(let T=0;T<h.length;T++)f[T]^=r.mul(h[T],A);let M=0;for(;M<f.length&&0===f[M];)M++;f=f.slice(M)}return f},z.generateECPolynomial=function(v){let h=new Uint8Array([1]);for(let f=0;f<v;f++)h=z.mul(h,new Uint8Array([1,r.exp(f)]));return h}},92649:(je,z,c)=>{const r=c(17610),n=c(89605),v=c(71535),h=c(37672),f=c(68817),A=c(30008),M=c(43800),T=c(16554),E=c(85968),y=c(11167),S=c(44321),l=c(7092),s=c(42765);function O(ce,H,Z){const X=ce.size,ue=S.getEncodedBits(H,Z);let Me,be;for(Me=0;Me<15;Me++)be=1==(ue>>Me&1),ce.set(Me<6?Me:Me<8?Me+1:X-15+Me,8,be,!0),ce.set(8,Me<8?X-Me-1:Me<9?15-Me-1+1:15-Me-1,be,!0);ce.set(X-8,8,1,!0)}function te(ce,H,Z,X){let ue;if(Array.isArray(ce))ue=s.fromArray(ce);else{if("string"!=typeof ce)throw new Error("Invalid data");{let Ge=H;if(!Ge){const ge=s.rawSplit(ce);Ge=y.getBestVersionForData(ge,Z)}ue=s.fromString(ce,Ge||40)}}const Me=y.getBestVersionForData(ue,Z);if(!Me)throw new Error("The amount of data is too big to be stored in a QR Code");if(H){if(H<Me)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+Me+".\n")}else H=Me;const be=function j(ce,H,Z){const X=new v;Z.forEach(function(ne){X.put(ne.mode.bit,4),X.put(ne.getLength(),l.getCharCountIndicator(ne.mode,ce)),ne.write(X)});const be=8*(r.getSymbolTotalCodewords(ce)-T.getTotalCodewordsCount(ce,H));for(X.getLengthInBits()+4<=be&&X.put(0,4);X.getLengthInBits()%8!=0;)X.putBit(0);const Q=(be-X.getLengthInBits())/8;for(let ne=0;ne<Q;ne++)X.put(ne%2?17:236,8);return function fe(ce,H,Z){const X=r.getSymbolTotalCodewords(H),Me=X-T.getTotalCodewordsCount(H,Z),be=T.getBlocksCount(H,Z),ne=be-X%be,Ge=Math.floor(X/be),ge=Math.floor(Me/be),Xe=ge+1,ot=Ge-ge,dt=new E(ot);let xe=0;const Re=new Array(be),Ue=new Array(be);let ee=0;const W=new Uint8Array(ce.buffer);for(let Oe=0;Oe<be;Oe++){const ye=Oe<ne?ge:Xe;Re[Oe]=W.slice(xe,xe+ye),Ue[Oe]=dt.encode(Re[Oe]),xe+=ye,ee=Math.max(ee,ye)}const Pe=new Uint8Array(X);let oe,Le,le=0;for(oe=0;oe<ee;oe++)for(Le=0;Le<be;Le++)oe<Re[Le].length&&(Pe[le++]=Re[Le][oe]);for(oe=0;oe<ot;oe++)for(Le=0;Le<be;Le++)Pe[le++]=Ue[Le][oe];return Pe}(X,ce,H)}(H,Z,ue),Q=r.getSymbolSize(H),ne=new h(Q);return function u(ce,H){const Z=ce.size,X=A.getPositions(H);for(let ue=0;ue<X.length;ue++){const Me=X[ue][0],be=X[ue][1];for(let Q=-1;Q<=7;Q++)if(!(Me+Q<=-1||Z<=Me+Q))for(let ne=-1;ne<=7;ne++)be+ne<=-1||Z<=be+ne||ce.set(Me+Q,be+ne,Q>=0&&Q<=6&&(0===ne||6===ne)||ne>=0&&ne<=6&&(0===Q||6===Q)||Q>=2&&Q<=4&&ne>=2&&ne<=4,!0)}}(ne,H),function m(ce){const H=ce.size;for(let Z=8;Z<H-8;Z++){const X=Z%2==0;ce.set(Z,6,X,!0),ce.set(6,Z,X,!0)}}(ne),function I(ce,H){const Z=f.getPositions(H);for(let X=0;X<Z.length;X++){const ue=Z[X][0],Me=Z[X][1];for(let be=-2;be<=2;be++)for(let Q=-2;Q<=2;Q++)ce.set(ue+be,Me+Q,-2===be||2===be||-2===Q||2===Q||0===be&&0===Q,!0)}}(ne,H),O(ne,Z,0),H>=7&&function R(ce,H){const Z=ce.size,X=y.getEncodedBits(H);let ue,Me,be;for(let Q=0;Q<18;Q++)ue=Math.floor(Q/3),Me=Q%3+Z-8-3,be=1==(X>>Q&1),ce.set(ue,Me,be,!0),ce.set(Me,ue,be,!0)}(ne,H),function Y(ce,H){const Z=ce.size;let X=-1,ue=Z-1,Me=7,be=0;for(let Q=Z-1;Q>0;Q-=2)for(6===Q&&Q--;;){for(let ne=0;ne<2;ne++)if(!ce.isReserved(ue,Q-ne)){let Ge=!1;be<H.length&&(Ge=1==(H[be]>>>Me&1)),ce.set(ue,Q-ne,Ge),Me--,-1===Me&&(be++,Me=7)}if(ue+=X,ue<0||Z<=ue){ue-=X,X=-X;break}}}(ne,be),isNaN(X)&&(X=M.getBestMask(ne,O.bind(null,ne,Z))),M.applyMask(X,ne),O(ne,Z,X),{modules:ne,version:H,errorCorrectionLevel:Z,maskPattern:X,segments:ue}}z.create=function(H,Z){if(typeof H>"u"||""===H)throw new Error("No input text");let ue,Me,X=n.M;return typeof Z<"u"&&(X=n.from(Z.errorCorrectionLevel,n.M),ue=y.from(Z.version),Me=M.from(Z.maskPattern),Z.toSJISFunc&&r.setToSJISFunction(Z.toSJISFunc)),te(H,ue,X,Me)}},85968:(je,z,c)=>{const r=c(84333);function n(v){this.genPoly=void 0,this.degree=v,this.degree&&this.initialize(this.degree)}n.prototype.initialize=function(h){this.degree=h,this.genPoly=r.generateECPolynomial(this.degree)},n.prototype.encode=function(h){if(!this.genPoly)throw new Error("Encoder not initialized");const f=new Uint8Array(h.length+this.degree);f.set(h);const A=r.mod(f,this.genPoly),M=this.degree-A.length;if(M>0){const T=new Uint8Array(this.degree);return T.set(A,M),T}return A},je.exports=n},94568:(je,z)=>{const c="[0-9]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const v="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";z.KANJI=new RegExp(n,"g"),z.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),z.BYTE=new RegExp(v,"g"),z.NUMERIC=new RegExp(c,"g"),z.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const h=new RegExp("^"+n+"$"),f=new RegExp("^"+c+"$"),A=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");z.testKanji=function(T){return h.test(T)},z.testNumeric=function(T){return f.test(T)},z.testAlphanumeric=function(T){return A.test(T)}},42765:(je,z,c)=>{const r=c(7092),n=c(69569),v=c(61925),h=c(19138),f=c(8897),A=c(94568),M=c(17610),T=c(19884);function E(R){return unescape(encodeURIComponent(R)).length}function y(R,O,Y){const j=[];let fe;for(;null!==(fe=R.exec(Y));)j.push({data:fe[0],index:fe.index,mode:O,length:fe[0].length});return j}function S(R){const O=y(A.NUMERIC,r.NUMERIC,R),Y=y(A.ALPHANUMERIC,r.ALPHANUMERIC,R);let j,fe;return M.isKanjiModeEnabled()?(j=y(A.BYTE,r.BYTE,R),fe=y(A.KANJI,r.KANJI,R)):(j=y(A.BYTE_KANJI,r.BYTE,R),fe=[]),O.concat(Y,j,fe).sort(function(ce,H){return ce.index-H.index}).map(function(ce){return{data:ce.data,mode:ce.mode,length:ce.length}})}function l(R,O){switch(O){case r.NUMERIC:return n.getBitsLength(R);case r.ALPHANUMERIC:return v.getBitsLength(R);case r.KANJI:return f.getBitsLength(R);case r.BYTE:return h.getBitsLength(R)}}function I(R,O){let Y;const j=r.getBestModeForData(R);if(Y=r.from(O,j),Y!==r.BYTE&&Y.bit<j.bit)throw new Error('"'+R+'" cannot be encoded with mode '+r.toString(Y)+".\n Suggested mode is: "+r.toString(j));switch(Y===r.KANJI&&!M.isKanjiModeEnabled()&&(Y=r.BYTE),Y){case r.NUMERIC:return new n(R);case r.ALPHANUMERIC:return new v(R);case r.KANJI:return new f(R);case r.BYTE:return new h(R)}}z.fromArray=function(O){return O.reduce(function(Y,j){return"string"==typeof j?Y.push(I(j,null)):j.data&&Y.push(I(j.data,j.mode)),Y},[])},z.fromString=function(O,Y){const fe=function u(R){const O=[];for(let Y=0;Y<R.length;Y++){const j=R[Y];switch(j.mode){case r.NUMERIC:O.push([j,{data:j.data,mode:r.ALPHANUMERIC,length:j.length},{data:j.data,mode:r.BYTE,length:j.length}]);break;case r.ALPHANUMERIC:O.push([j,{data:j.data,mode:r.BYTE,length:j.length}]);break;case r.KANJI:O.push([j,{data:j.data,mode:r.BYTE,length:E(j.data)}]);break;case r.BYTE:O.push([{data:j.data,mode:r.BYTE,length:E(j.data)}])}}return O}(S(O,M.isKanjiModeEnabled())),te=function m(R,O){const Y={},j={start:{}};let fe=["start"];for(let te=0;te<R.length;te++){const ce=R[te],H=[];for(let Z=0;Z<ce.length;Z++){const X=ce[Z],ue=""+te+Z;H.push(ue),Y[ue]={node:X,lastCount:0},j[ue]={};for(let Me=0;Me<fe.length;Me++){const be=fe[Me];Y[be]&&Y[be].node.mode===X.mode?(j[be][ue]=l(Y[be].lastCount+X.length,X.mode)-l(Y[be].lastCount,X.mode),Y[be].lastCount+=X.length):(Y[be]&&(Y[be].lastCount=X.length),j[be][ue]=l(X.length,X.mode)+4+r.getCharCountIndicator(X.mode,O))}}fe=H}for(let te=0;te<fe.length;te++)j[fe[te]].end=0;return{map:j,table:Y}}(fe,Y),ce=T.find_path(te.map,"start","end"),H=[];for(let Z=1;Z<ce.length-1;Z++)H.push(te.table[ce[Z]].node);return z.fromArray(function s(R){return R.reduce(function(O,Y){const j=O.length-1>=0?O[O.length-1]:null;return j&&j.mode===Y.mode?(O[O.length-1].data+=Y.data,O):(O.push(Y),O)},[])}(H))},z.rawSplit=function(O){return z.fromArray(S(O,M.isKanjiModeEnabled()))}},17610:(je,z)=>{let c;const r=[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(v){if(!v)throw new Error('"version" cannot be null or undefined');if(v<1||v>40)throw new Error('"version" should be in range from 1 to 40');return 4*v+17},z.getSymbolTotalCodewords=function(v){return r[v]},z.getBCHDigit=function(n){let v=0;for(;0!==n;)v++,n>>>=1;return v},z.setToSJISFunction=function(v){if("function"!=typeof v)throw new Error('"toSJISFunc" is not a valid function.');c=v},z.isKanjiModeEnabled=function(){return typeof c<"u"},z.toSJIS=function(v){return c(v)}},74242:(je,z)=>{z.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}},11167:(je,z,c)=>{const r=c(17610),n=c(16554),v=c(89605),h=c(7092),f=c(74242),M=r.getBCHDigit(7973);function E(l,s){return h.getCharCountIndicator(l,s)+4}function y(l,s){let u=0;return l.forEach(function(m){const I=E(m.mode,s);u+=I+m.getBitsLength()}),u}z.from=function(s,u){return f.isValid(s)?parseInt(s,10):u},z.getCapacity=function(s,u,m){if(!f.isValid(s))throw new Error("Invalid QR Code version");typeof m>"u"&&(m=h.BYTE);const O=8*(r.getSymbolTotalCodewords(s)-n.getTotalCodewordsCount(s,u));if(m===h.MIXED)return O;const Y=O-E(m,s);switch(m){case h.NUMERIC:return Math.floor(Y/10*3);case h.ALPHANUMERIC:return Math.floor(Y/11*2);case h.KANJI:return Math.floor(Y/13);default:return Math.floor(Y/8)}},z.getBestVersionForData=function(s,u){let m;const I=v.from(u,v.M);if(Array.isArray(s)){if(s.length>1)return function S(l,s){for(let u=1;u<=40;u++)if(y(l,u)<=z.getCapacity(u,s,h.MIXED))return u}(s,I);if(0===s.length)return 1;m=s[0]}else m=s;return function T(l,s,u){for(let m=1;m<=40;m++)if(s<=z.getCapacity(m,u,l))return m}(m.mode,m.getLength(),I)},z.getEncodedBits=function(s){if(!f.isValid(s)||s<7)throw new Error("Invalid QR Code version");let u=s<<12;for(;r.getBCHDigit(u)-M>=0;)u^=7973<<r.getBCHDigit(u)-M;return s<<12|u}},36967:(je,z,c)=>{const r=c(41618);z.render=function(f,A,M){let T=M,E=A;typeof T>"u"&&(!A||!A.getContext)&&(T=A,A=void 0),A||(E=function v(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),T=r.getOptions(T);const y=r.getImageWidth(f.modules.size,T),S=E.getContext("2d"),l=S.createImageData(y,y);return r.qrToImageData(l.data,f,T),function n(h,f,A){h.clearRect(0,0,f.width,f.height),f.style||(f.style={}),f.height=A,f.width=A,f.style.height=A+"px",f.style.width=A+"px"}(S,E,y),S.putImageData(l,0,0),E},z.renderToDataURL=function(f,A,M){let T=M;return typeof T>"u"&&(!A||!A.getContext)&&(T=A,A=void 0),T||(T={}),z.render(f,A,T).toDataURL(T.type||"image/png",(T.rendererOpts||{}).quality)}},66288:(je,z,c)=>{const r=c(41618);function n(f,A){const M=f.a/255,T=A+'="'+f.hex+'"';return M<1?T+" "+A+'-opacity="'+M.toFixed(2).slice(1)+'"':T}function v(f,A,M){let T=f+A;return typeof M<"u"&&(T+=" "+M),T}z.render=function(A,M,T){const E=r.getOptions(M),y=A.modules.size,S=A.modules.data,l=y+2*E.margin,s=E.color.light.a?"<path "+n(E.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",u="<path "+n(E.color.dark,"stroke")+' d="'+function h(f,A,M){let T="",E=0,y=!1,S=0;for(let l=0;l<f.length;l++){const s=Math.floor(l%A),u=Math.floor(l/A);!s&&!y&&(y=!0),f[l]?(S++,l>0&&s>0&&f[l-1]||(T+=y?v("M",s+M,.5+u+M):v("m",E,0),E=0,y=!1),s+1<A&&f[l+1]||(T+=v("h",S),S=0)):E++}return T}(S,y,E.margin)+'"/>',R='<svg xmlns="http://www.w3.org/2000/svg" '+(E.width?'width="'+E.width+'" height="'+E.width+'" ':"")+'viewBox="0 0 '+l+" "+l+'" shape-rendering="crispEdges">'+s+u+"</svg>\n";return"function"==typeof T&&T(null,R),R}},41618:(je,z)=>{function c(r){if("number"==typeof r&&(r=r.toString()),"string"!=typeof r)throw new Error("Color should be defined as hex string");let n=r.slice().replace("#","").split("");if(n.length<3||5===n.length||n.length>8)throw new Error("Invalid hex color: "+r);(3===n.length||4===n.length)&&(n=Array.prototype.concat.apply([],n.map(function(h){return[h,h]}))),6===n.length&&n.push("F","F");const v=parseInt(n.join(""),16);return{r:v>>24&255,g:v>>16&255,b:v>>8&255,a:255&v,hex:"#"+n.slice(0,6).join("")}}z.getOptions=function(n){n||(n={}),n.color||(n.color={});const h=n.width&&n.width>=21?n.width:void 0;return{width:h,scale:h?4:n.scale||4,margin:typeof n.margin>"u"||null===n.margin||n.margin<0?4:n.margin,color:{dark:c(n.color.dark||"#000000ff"),light:c(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},z.getScale=function(n,v){return v.width&&v.width>=n+2*v.margin?v.width/(n+2*v.margin):v.scale},z.getImageWidth=function(n,v){const h=z.getScale(n,v);return Math.floor((n+2*v.margin)*h)},z.qrToImageData=function(n,v,h){const f=v.modules.size,A=v.modules.data,M=z.getScale(f,h),T=Math.floor((f+2*h.margin)*M),E=h.margin*M,y=[h.color.light,h.color.dark];for(let S=0;S<T;S++)for(let l=0;l<T;l++){let s=4*(S*T+l),u=h.color.light;S>=E&&l>=E&&S<T-E&&l<T-E&&(u=y[A[Math.floor((S-E)/M)*f+Math.floor((l-E)/M)]?1:0]),n[s++]=u.r,n[s++]=u.g,n[s++]=u.b,n[s]=u.a}}},26513:(je,z,c)=>{"use strict";c.d(z,{t:()=>v});var r=c(80583),n=c(38058);class v extends r.B7{constructor(f){super(),this._value=f}get value(){return this.getValue()}_subscribe(f){const A=super._subscribe(f);return A&&!A.closed&&f.next(this._value),A}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new n.P;return this._value}next(f){super.next(this._value=f)}}},75252:(je,z,c)=>{"use strict";c.d(z,{E:()=>f});var r=c(12532),n=c(43848),v=c(59859);class f{constructor(M,T,E){this.kind=M,this.value=T,this.error=E,this.hasValue="N"===M}observe(M){switch(this.kind){case"N":return M.next&&M.next(this.value);case"E":return M.error&&M.error(this.error);case"C":return M.complete&&M.complete()}}do(M,T,E){switch(this.kind){case"N":return M&&M(this.value);case"E":return T&&T(this.error);case"C":return E&&E()}}accept(M,T,E){return M&&"function"==typeof M.next?this.observe(M):this.do(M,T,E)}toObservable(){switch(this.kind){case"N":return(0,n.of)(this.value);case"E":return(0,v.$)(this.error);case"C":return(0,r.I)()}throw new Error("unexpected notification kind value")}static createNext(M){return typeof M<"u"?new f("N",M):f.undefinedValueNotification}static createError(M){return new f("E",void 0,M)}static createComplete(){return f.completeNotification}}f.completeNotification=new f("C"),f.undefinedValueNotification=new f("N",void 0)},17053:(je,z,c)=>{"use strict";c.d(z,{c:()=>E});var r=c(27721),v=c(73302),h=c(41469),A=c(15587),M=c(97462),T=c(71337);let E=(()=>{class S{constructor(s){this._isScalar=!1,s&&(this._subscribe=s)}lift(s){const u=new S;return u.source=this,u.operator=s,u}subscribe(s,u,m){const{operator:I}=this,R=function f(S,l,s){if(S){if(S instanceof r.v)return S;if(S[v.D])return S[v.D]()}return S||l||s?new r.v(S,l,s):new r.v(h.I)}(s,u,m);if(R.add(I?I.call(R,this.source):this.source||T.$.useDeprecatedSynchronousErrorHandling&&!R.syncErrorThrowable?this._subscribe(R):this._trySubscribe(R)),T.$.useDeprecatedSynchronousErrorHandling&&R.syncErrorThrowable&&(R.syncErrorThrowable=!1,R.syncErrorThrown))throw R.syncErrorValue;return R}_trySubscribe(s){try{return this._subscribe(s)}catch(u){T.$.useDeprecatedSynchronousErrorHandling&&(s.syncErrorThrown=!0,s.syncErrorValue=u),function n(S){for(;S;){const{closed:l,destination:s,isStopped:u}=S;if(l||u)return!1;S=s&&s instanceof r.v?s:null}return!0}(s)?s.error(u):console.warn(u)}}forEach(s,u){return new(u=y(u))((m,I)=>{let R;R=this.subscribe(O=>{try{s(O)}catch(Y){I(Y),R&&R.unsubscribe()}},I,m)})}_subscribe(s){const{source:u}=this;return u&&u.subscribe(s)}[A.s](){return this}pipe(...s){return 0===s.length?this:(0,M.m)(s)(this)}toPromise(s){return new(s=y(s))((u,m)=>{let I;this.subscribe(R=>I=R,R=>m(R),()=>u(I))})}}return S.create=l=>new S(l),S})();function y(S){if(S||(S=T.$.Promise||Promise),!S)throw new Error("no Promise impl found");return S}},41469:(je,z,c)=>{"use strict";c.d(z,{I:()=>v});var r=c(71337),n=c(81498);const v={closed:!0,next(h){},error(h){if(r.$.useDeprecatedSynchronousErrorHandling)throw h;(0,n.T)(h)},complete(){}}},88134:(je,z,c)=>{"use strict";c.d(z,{E:()=>n});var r=c(27721);class n extends r.v{notifyNext(h,f,A,M,T){this.destination.next(f)}notifyError(h,f){this.destination.error(h)}notifyComplete(h){this.destination.complete()}}},57258:(je,z,c)=>{"use strict";c.d(z,{m:()=>R});var r=c(80583),n=c(86369),h=c(4065);const M=new class f extends h.q{}(class v extends n.R{constructor(j,fe){super(j,fe),this.scheduler=j,this.work=fe}schedule(j,fe=0){return fe>0?super.schedule(j,fe):(this.delay=fe,this.state=j,this.scheduler.flush(this),this)}execute(j,fe){return fe>0||this.closed?super.execute(j,fe):this._execute(j,fe)}requestAsyncId(j,fe,te=0){return null!==te&&te>0||null===te&&this.delay>0?super.requestAsyncId(j,fe,te):j.flush(this)}});var T=c(10399),E=c(27721),y=c(75252);class s extends E.v{constructor(j,fe,te=0){super(j),this.scheduler=fe,this.delay=te}static dispatch(j){const{notification:fe,destination:te}=j;fe.observe(te),this.unsubscribe()}scheduleMessage(j){this.destination.add(this.scheduler.schedule(s.dispatch,this.delay,new u(j,this.destination)))}_next(j){this.scheduleMessage(y.E.createNext(j))}_error(j){this.scheduleMessage(y.E.createError(j)),this.unsubscribe()}_complete(){this.scheduleMessage(y.E.createComplete()),this.unsubscribe()}}class u{constructor(j,fe){this.notification=j,this.destination=fe}}var m=c(38058),I=c(29482);class R extends r.B7{constructor(j=Number.POSITIVE_INFINITY,fe=Number.POSITIVE_INFINITY,te){super(),this.scheduler=te,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=j<1?1:j,this._windowTime=fe<1?1:fe,fe===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(j){const fe=this._events;fe.push(j),fe.length>this._bufferSize&&fe.shift(),super.next(j)}nextTimeWindow(j){this._events.push(new O(this._getNow(),j)),this._trimBufferThenGetEvents(),super.next(j)}_subscribe(j){const fe=this._infiniteTimeWindow,te=fe?this._events:this._trimBufferThenGetEvents(),ce=this.scheduler,H=te.length;let Z;if(this.closed)throw new m.P;if(this.isStopped||this.hasError?Z=T.y.EMPTY:(this.observers.push(j),Z=new I.Y(this,j)),ce&&j.add(j=new s(j,ce)),fe)for(let X=0;X<H&&!j.closed;X++)j.next(te[X]);else for(let X=0;X<H&&!j.closed;X++)j.next(te[X].value);return this.hasError?j.error(this.thrownError):this.isStopped&&j.complete(),Z}_getNow(){return(this.scheduler||M).now()}_trimBufferThenGetEvents(){const j=this._getNow(),fe=this._bufferSize,te=this._windowTime,ce=this._events,H=ce.length;let Z=0;for(;Z<H&&!(j-ce[Z].time<te);)Z++;return H>fe&&(Z=Math.max(Z,H-fe)),Z>0&&ce.splice(0,Z),ce}}class O{constructor(j,fe){this.time=j,this.value=fe}}},80583:(je,z,c)=>{"use strict";c.d(z,{B7:()=>T,PJ:()=>M});var r=c(17053),n=c(27721),v=c(10399),h=c(38058),f=c(29482),A=c(73302);class M extends n.v{constructor(S){super(S),this.destination=S}}let T=(()=>{class y extends r.c{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[A.D](){return new M(this)}lift(l){const s=new E(this,this);return s.operator=l,s}next(l){if(this.closed)throw new h.P;if(!this.isStopped){const{observers:s}=this,u=s.length,m=s.slice();for(let I=0;I<u;I++)m[I].next(l)}}error(l){if(this.closed)throw new h.P;this.hasError=!0,this.thrownError=l,this.isStopped=!0;const{observers:s}=this,u=s.length,m=s.slice();for(let I=0;I<u;I++)m[I].error(l);this.observers.length=0}complete(){if(this.closed)throw new h.P;this.isStopped=!0;const{observers:l}=this,s=l.length,u=l.slice();for(let m=0;m<s;m++)u[m].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(l){if(this.closed)throw new h.P;return super._trySubscribe(l)}_subscribe(l){if(this.closed)throw new h.P;return this.hasError?(l.error(this.thrownError),v.y.EMPTY):this.isStopped?(l.complete(),v.y.EMPTY):(this.observers.push(l),new f.Y(this,l))}asObservable(){const l=new r.c;return l.source=this,l}}return y.create=(S,l)=>new E(S,l),y})();class E extends T{constructor(S,l){super(),this.destination=S,this.source=l}next(S){const{destination:l}=this;l&&l.next&&l.next(S)}error(S){const{destination:l}=this;l&&l.error&&this.destination.error(S)}complete(){const{destination:S}=this;S&&S.complete&&this.destination.complete()}_subscribe(S){const{source:l}=this;return l?this.source.subscribe(S):v.y.EMPTY}}},29482:(je,z,c)=>{"use strict";c.d(z,{Y:()=>n});var r=c(10399);class n extends r.y{constructor(h,f){super(),this.subject=h,this.subscriber=f,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const h=this.subject,f=h.observers;if(this.subject=null,!f||0===f.length||h.isStopped||h.closed)return;const A=f.indexOf(this.subscriber);-1!==A&&f.splice(A,1)}}},27721:(je,z,c)=>{"use strict";c.d(z,{v:()=>M});var r=c(50710),n=c(41469),v=c(10399),h=c(73302),f=c(71337),A=c(81498);class M extends v.y{constructor(y,S,l){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=n.I;break;case 1:if(!y){this.destination=n.I;break}if("object"==typeof y){y instanceof M?(this.syncErrorThrowable=y.syncErrorThrowable,this.destination=y,y.add(this)):(this.syncErrorThrowable=!0,this.destination=new T(this,y));break}default:this.syncErrorThrowable=!0,this.destination=new T(this,y,S,l)}}[h.D](){return this}static create(y,S,l){const s=new M(y,S,l);return s.syncErrorThrowable=!1,s}next(y){this.isStopped||this._next(y)}error(y){this.isStopped||(this.isStopped=!0,this._error(y))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(y){this.destination.next(y)}_error(y){this.destination.error(y),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:y}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=y,this}}class T extends M{constructor(y,S,l,s){super(),this._parentSubscriber=y;let u,m=this;(0,r.T)(S)?u=S:S&&(u=S.next,l=S.error,s=S.complete,S!==n.I&&(m=Object.create(S),(0,r.T)(m.unsubscribe)&&this.add(m.unsubscribe.bind(m)),m.unsubscribe=this.unsubscribe.bind(this))),this._context=m,this._next=u,this._error=l,this._complete=s}next(y){if(!this.isStopped&&this._next){const{_parentSubscriber:S}=this;f.$.useDeprecatedSynchronousErrorHandling&&S.syncErrorThrowable?this.__tryOrSetError(S,this._next,y)&&this.unsubscribe():this.__tryOrUnsub(this._next,y)}}error(y){if(!this.isStopped){const{_parentSubscriber:S}=this,{useDeprecatedSynchronousErrorHandling:l}=f.$;if(this._error)l&&S.syncErrorThrowable?(this.__tryOrSetError(S,this._error,y),this.unsubscribe()):(this.__tryOrUnsub(this._error,y),this.unsubscribe());else if(S.syncErrorThrowable)l?(S.syncErrorValue=y,S.syncErrorThrown=!0):(0,A.T)(y),this.unsubscribe();else{if(this.unsubscribe(),l)throw y;(0,A.T)(y)}}}complete(){if(!this.isStopped){const{_parentSubscriber:y}=this;if(this._complete){const S=()=>this._complete.call(this._context);f.$.useDeprecatedSynchronousErrorHandling&&y.syncErrorThrowable?(this.__tryOrSetError(y,S),this.unsubscribe()):(this.__tryOrUnsub(S),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(y,S){try{y.call(this._context,S)}catch(l){if(this.unsubscribe(),f.$.useDeprecatedSynchronousErrorHandling)throw l;(0,A.T)(l)}}__tryOrSetError(y,S,l){if(!f.$.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{S.call(this._context,l)}catch(s){return f.$.useDeprecatedSynchronousErrorHandling?(y.syncErrorValue=s,y.syncErrorThrown=!0,!0):((0,A.T)(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:y}=this;this._context=null,this._parentSubscriber=null,y.unsubscribe()}}},10399:(je,z,c)=>{"use strict";c.d(z,{y:()=>A});var r=c(34277),n=c(96305),v=c(50710);const f=(()=>{function T(E){return Error.call(this),this.message=E?`${E.length} errors occurred during unsubscription:\n${E.map((y,S)=>`${S+1}) ${y.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=E,this}return T.prototype=Object.create(Error.prototype),T})();class A{constructor(E){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,E&&(this._ctorUnsubscribe=!0,this._unsubscribe=E)}unsubscribe(){let E;if(this.closed)return;let{_parentOrParents:y,_ctorUnsubscribe:S,_unsubscribe:l,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,y instanceof A)y.remove(this);else if(null!==y)for(let u=0;u<y.length;++u)y[u].remove(this);if((0,v.T)(l)){S&&(this._unsubscribe=void 0);try{l.call(this)}catch(u){E=u instanceof f?M(u.errors):[u]}}if((0,r.c)(s)){let u=-1,m=s.length;for(;++u<m;){const I=s[u];if((0,n.G)(I))try{I.unsubscribe()}catch(R){E=E||[],R instanceof f?E=E.concat(M(R.errors)):E.push(R)}}}if(E)throw new f(E)}add(E){let y=E;if(!E)return A.EMPTY;switch(typeof E){case"function":y=new A(E);case"object":if(y===this||y.closed||"function"!=typeof y.unsubscribe)return y;if(this.closed)return y.unsubscribe(),y;if(!(y instanceof A)){const s=y;y=new A,y._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+E+" added to Subscription.")}let{_parentOrParents:S}=y;if(null===S)y._parentOrParents=this;else if(S instanceof A){if(S===this)return y;y._parentOrParents=[S,this]}else{if(-1!==S.indexOf(this))return y;S.push(this)}const l=this._subscriptions;return null===l?this._subscriptions=[y]:l.push(y),y}remove(E){const y=this._subscriptions;if(y){const S=y.indexOf(E);-1!==S&&y.splice(S,1)}}}var T;function M(T){return T.reduce((E,y)=>E.concat(y instanceof f?y.errors:y),[])}A.EMPTY=((T=new A).closed=!0,T)},71337:(je,z,c)=>{"use strict";c.d(z,{$:()=>n});let r=!1;const n={Promise:void 0,set useDeprecatedSynchronousErrorHandling(v){if(v){const h=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+h.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=v},get useDeprecatedSynchronousErrorHandling(){return r}}},7583:(je,z,c)=>{"use strict";c.d(z,{gn:()=>A,tS:()=>T,zA:()=>h});var r=c(27721),n=c(17053),v=c(37233);class h extends r.v{constructor(y){super(),this.parent=y}_next(y){this.parent.notifyNext(y)}_error(y){this.parent.notifyError(y),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class A extends r.v{notifyNext(y){this.destination.next(y)}notifyError(y){this.destination.error(y)}notifyComplete(){this.destination.complete()}}function T(E,y){if(!y.closed)return E instanceof n.c?E.subscribe(y):(0,v.i)(E)(y)}},96090:(je,z,c)=>{"use strict";c.d(z,{G:()=>A,f:()=>M});var r=c(80583),n=c(17053),h=(c(27721),c(10399)),f=c(60837);class A extends n.c{constructor(l,s){super(),this.source=l,this.subjectFactory=s,this._refCount=0,this._isComplete=!1}_subscribe(l){return this.getSubject().subscribe(l)}getSubject(){const l=this._subject;return(!l||l.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let l=this._connection;return l||(this._isComplete=!1,l=this._connection=new h.y,l.add(this.source.subscribe(new T(this.getSubject(),this))),l.closed&&(this._connection=null,l=h.y.EMPTY)),l}refCount(){return(0,f.B)()(this)}}const M=(()=>{const S=A.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:S._subscribe},_isComplete:{value:S._isComplete,writable:!0},getSubject:{value:S.getSubject},connect:{value:S.connect},refCount:{value:S.refCount}}})();class T extends r.PJ{constructor(l,s){super(l),this.connectable=s}_error(l){this._unsubscribe(),super._error(l)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const l=this.connectable;if(l){this.connectable=null;const s=l._connection;l._refCount=0,l._subject=null,l._connection=null,s&&s.unsubscribe()}}}},31315:(je,z,c)=>{"use strict";c.d(z,{zV:()=>M});var r=c(44897),n=c(34277),v=c(88134),h=c(1447),f=c(1724);const A={};function M(...y){let S,l;return(0,r.m)(y[y.length-1])&&(l=y.pop()),"function"==typeof y[y.length-1]&&(S=y.pop()),1===y.length&&(0,n.c)(y[0])&&(y=y[0]),(0,f.c)(y,l).lift(new T(S))}class T{constructor(S){this.resultSelector=S}call(S,l){return l.subscribe(new E(S,this.resultSelector))}}class E extends v.E{constructor(S,l){super(S),this.resultSelector=l,this.active=0,this.values=[],this.observables=[]}_next(S){this.values.push(A),this.observables.push(S)}_complete(){const S=this.observables,l=S.length;if(0===l)this.destination.complete();else{this.active=l,this.toRespond=l;for(let s=0;s<l;s++)this.add((0,h.F)(this,S[s],void 0,s))}}notifyComplete(S){0==(this.active-=1)&&this.destination.complete()}notifyNext(S,l,s){const u=this.values,I=this.toRespond?u[s]===A?--this.toRespond:this.toRespond:0;u[s]=l,0===I&&(this.resultSelector?this._tryResultSelector(u):this.destination.next(u.slice()))}_tryResultSelector(S){let l;try{l=this.resultSelector.apply(this,S)}catch(s){return void this.destination.error(s)}this.destination.next(l)}}},82e3:(je,z,c)=>{"use strict";c.d(z,{x:()=>h});var r=c(43848),n=c(40466);function h(...f){return function v(){return(0,n.U)(1)}()((0,r.of)(...f))}},63997:(je,z,c)=>{"use strict";c.d(z,{v:()=>h});var r=c(17053),n=c(19392),v=c(12532);function h(f){return new r.c(A=>{let M;try{M=f()}catch(E){return void A.error(E)}return(M?(0,n.H)(M):(0,v.I)()).subscribe(A)})}},12532:(je,z,c)=>{"use strict";c.d(z,{I:()=>v,w:()=>n});var r=c(17053);const n=new r.c(f=>f.complete());function v(f){return f?function h(f){return new r.c(A=>f.schedule(()=>A.complete()))}(f):n}},93181:(je,z,c)=>{"use strict";c.d(z,{p:()=>A});var r=c(17053),n=c(34277),v=c(83915),h=c(96305),f=c(19392);function A(...T){if(1===T.length){const E=T[0];if((0,n.c)(E))return M(E,null);if((0,h.G)(E)&&Object.getPrototypeOf(E)===Object.prototype){const y=Object.keys(E);return M(y.map(S=>E[S]),y)}}if("function"==typeof T[T.length-1]){const E=T.pop();return M(T=1===T.length&&(0,n.c)(T[0])?T[0]:T,null).pipe((0,v.T)(y=>E(...y)))}return M(T,null)}function M(T,E){return new r.c(y=>{const S=T.length;if(0===S)return void y.complete();const l=new Array(S);let s=0,u=0;for(let m=0;m<S;m++){const I=(0,f.H)(T[m]);let R=!1;y.add(I.subscribe({next:O=>{R||(R=!0,u++),l[m]=O},error:O=>y.error(O),complete:()=>{s++,(s===S||!R)&&(u===S&&y.next(E?E.reduce((O,Y,j)=>(O[Y]=l[j],O),{}):l),y.complete())}}))}})}},19392:(je,z,c)=>{"use strict";c.d(z,{H:()=>m});var r=c(17053),n=c(37233),v=c(10399),h=c(15587),M=c(57797),T=c(63320),S=c(48089),l=c(19730);function m(I,R){return R?function u(I,R){if(null!=I){if(function y(I){return I&&"function"==typeof I[h.s]}(I))return function f(I,R){return new r.c(O=>{const Y=new v.y;return Y.add(R.schedule(()=>{const j=I[h.s]();Y.add(j.subscribe({next(fe){Y.add(R.schedule(()=>O.next(fe)))},error(fe){Y.add(R.schedule(()=>O.error(fe)))},complete(){Y.add(R.schedule(()=>O.complete()))}}))})),Y})}(I,R);if((0,S.y)(I))return function A(I,R){return new r.c(O=>{const Y=new v.y;return Y.add(R.schedule(()=>I.then(j=>{Y.add(R.schedule(()=>{O.next(j),Y.add(R.schedule(()=>O.complete()))}))},j=>{Y.add(R.schedule(()=>O.error(j)))}))),Y})}(I,R);if((0,l.X)(I))return(0,M.V)(I,R);if(function s(I){return I&&"function"==typeof I[T.lJ]}(I)||"string"==typeof I)return function E(I,R){if(!I)throw new Error("Iterable cannot be null");return new r.c(O=>{const Y=new v.y;let j;return Y.add(()=>{j&&"function"==typeof j.return&&j.return()}),Y.add(R.schedule(()=>{j=I[T.lJ](),Y.add(R.schedule(function(){if(O.closed)return;let fe,te;try{const ce=j.next();fe=ce.value,te=ce.done}catch(ce){return void O.error(ce)}te?O.complete():(O.next(fe),this.schedule())}))})),Y})}(I,R)}throw new TypeError((null!==I&&typeof I||I)+" is not observable")}(I,R):I instanceof r.c?I:new r.c((0,n.i)(I))}},1724:(je,z,c)=>{"use strict";c.d(z,{c:()=>h});var r=c(17053),n=c(46936),v=c(57797);function h(f,A){return A?(0,v.V)(f,A):new r.c((0,n.v)(f))}},36877:(je,z,c)=>{"use strict";c.d(z,{R:()=>A});var r=c(17053),n=c(34277),v=c(50710),h=c(83915);function A(S,l,s,u){return(0,v.T)(s)&&(u=s,s=void 0),u?A(S,l,s).pipe((0,h.T)(m=>(0,n.c)(m)?u(...m):u(m))):new r.c(m=>{M(S,l,function I(R){m.next(arguments.length>1?Array.prototype.slice.call(arguments):R)},m,s)})}function M(S,l,s,u,m){let I;if(function y(S){return S&&"function"==typeof S.addEventListener&&"function"==typeof S.removeEventListener}(S)){const R=S;S.addEventListener(l,s,m),I=()=>R.removeEventListener(l,s,m)}else if(function E(S){return S&&"function"==typeof S.on&&"function"==typeof S.off}(S)){const R=S;S.on(l,s),I=()=>R.off(l,s)}else if(function T(S){return S&&"function"==typeof S.addListener&&"function"==typeof S.removeListener}(S)){const R=S;S.addListener(l,s),I=()=>R.removeListener(l,s)}else{if(!S||!S.length)throw new TypeError("Invalid event target");for(let R=0,O=S.length;R<O;R++)M(S[R],l,s,u,m)}u.add(I)}},56237:(je,z,c)=>{"use strict";c.d(z,{T:()=>v});var r=c(63997),n=c(12532);function v(h,f=n.w,A=n.w){return(0,r.v)(()=>h()?f:A)}},892:(je,z,c)=>{"use strict";c.d(z,{Y:()=>h});var r=c(17053),n=c(90093),v=c(37803);function h(A=0,M=n.b){return(!(0,v.k)(A)||A<0)&&(A=0),(!M||"function"!=typeof M.schedule)&&(M=n.b),new r.c(T=>(T.add(M.schedule(f,A,{subscriber:T,counter:0,period:A})),T))}function f(A){const{subscriber:M,counter:T,period:E}=A;M.next(T),this.schedule({subscriber:M,counter:T+1,period:E},E)}},16229:(je,z,c)=>{"use strict";c.d(z,{h:()=>f});var r=c(17053),n=c(44897),v=c(40466),h=c(1724);function f(...A){let M=Number.POSITIVE_INFINITY,T=null,E=A[A.length-1];return(0,n.m)(E)?(T=A.pop(),A.length>1&&"number"==typeof A[A.length-1]&&(M=A.pop())):"number"==typeof E&&(M=A.pop()),null===T&&1===A.length&&A[0]instanceof r.c?A[0]:(0,v.U)(M)((0,h.c)(A,T))}},27731:(je,z,c)=>{"use strict";c.d(z,{t:()=>v});var r=c(17053),n=c(36466);const v=new r.c(n.l)},43848:(je,z,c)=>{"use strict";c.d(z,{of:()=>h});var r=c(44897),n=c(1724),v=c(57797);function h(...f){let A=f[f.length-1];return(0,r.m)(A)?(f.pop(),(0,v.V)(f,A)):(0,n.c)(f)}},15652:(je,z,c)=>{"use strict";c.d(z,{O4:()=>f});var r=c(34277),n=c(1724),v=c(88134),h=c(1447);function f(...T){if(1===T.length){if(!(0,r.c)(T[0]))return T[0];T=T[0]}return(0,n.c)(T,void 0).lift(new A)}class A{call(E,y){return y.subscribe(new M(E))}}class M extends v.E{constructor(E){super(E),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(E){this.observables.push(E)}_complete(){const E=this.observables,y=E.length;if(0===y)this.destination.complete();else{for(let S=0;S<y&&!this.hasFirst;S++){const s=(0,h.F)(this,E[S],void 0,S);this.subscriptions&&this.subscriptions.push(s),this.add(s)}this.observables=null}}notifyNext(E,y,S){if(!this.hasFirst){this.hasFirst=!0;for(let l=0;l<this.subscriptions.length;l++)if(l!==S){let s=this.subscriptions[l];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(y)}}},59859:(je,z,c)=>{"use strict";c.d(z,{$:()=>n});var r=c(17053);function n(h,f){return new r.c(f?A=>f.schedule(v,0,{error:h,subscriber:A}):A=>A.error(h))}function v({error:h,subscriber:f}){f.error(h)}},3496:(je,z,c)=>{"use strict";c.d(z,{O:()=>f});var r=c(17053),n=c(90093),v=c(37803),h=c(44897);function f(M=0,T,E){let y=-1;return(0,v.k)(T)?y=Number(T)<1?1:Number(T):(0,h.m)(T)&&(E=T),(0,h.m)(E)||(E=n.b),new r.c(S=>{const l=(0,v.k)(M)?M:+M-E.now();return E.schedule(A,l,{index:0,period:y,subscriber:S})})}function A(M){const{index:T,period:E,subscriber:y}=M;if(y.next(T),!y.closed){if(-1===E)return y.complete();M.index=T+1,this.schedule(M,E)}}},35146:(je,z,c)=>{"use strict";c.d(z,{yU:()=>A});var r=c(1724),n=c(34277),v=c(27721),h=c(63320),f=c(7583);function A(...l){const s=l[l.length-1];return"function"==typeof s&&l.pop(),(0,r.c)(l,void 0).lift(new M(s))}class M{constructor(s){this.resultSelector=s}call(s,u){return u.subscribe(new T(s,this.resultSelector))}}class T extends v.v{constructor(s,u,m=Object.create(null)){super(s),this.resultSelector=u,this.iterators=[],this.active=0,this.resultSelector="function"==typeof u?u:void 0}_next(s){const u=this.iterators;(0,n.c)(s)?u.push(new y(s)):u.push("function"==typeof s[h.lJ]?new E(s[h.lJ]()):new S(this.destination,this,s))}_complete(){const s=this.iterators,u=s.length;if(this.unsubscribe(),0!==u){this.active=u;for(let m=0;m<u;m++){let I=s[m];I.stillUnsubscribed?this.destination.add(I.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const s=this.iterators,u=s.length,m=this.destination;for(let O=0;O<u;O++){let Y=s[O];if("function"==typeof Y.hasValue&&!Y.hasValue())return}let I=!1;const R=[];for(let O=0;O<u;O++){let Y=s[O],j=Y.next();if(Y.hasCompleted()&&(I=!0),j.done)return void m.complete();R.push(j.value)}this.resultSelector?this._tryresultSelector(R):m.next(R),I&&m.complete()}_tryresultSelector(s){let u;try{u=this.resultSelector.apply(this,s)}catch(m){return void this.destination.error(m)}this.destination.next(u)}}class E{constructor(s){this.iterator=s,this.nextResult=s.next()}hasValue(){return!0}next(){const s=this.nextResult;return this.nextResult=this.iterator.next(),s}hasCompleted(){const s=this.nextResult;return!(!s||!s.done)}}class y{constructor(s){this.array=s,this.index=0,this.length=0,this.length=s.length}[h.lJ](){return this}next(s){const u=this.index++;return u<this.length?{value:this.array[u],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class S extends f.gn{constructor(s,u,m){super(s),this.parent=u,this.observable=m,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[h.lJ](){return this}next(){const s=this.buffer;return 0===s.length&&this.isComplete?{value:null,done:!0}:{value:s.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(s){this.buffer.push(s),this.parent.checkIterators()}subscribe(){return(0,f.tS)(this.observable,new f.zA(this))}}},14714:(je,z,c)=>{"use strict";c.d(z,{W:()=>n});var r=c(7583);function n(f){return function(M){const T=new v(f),E=M.lift(T);return T.caught=E}}class v{constructor(A){this.selector=A}call(A,M){return M.subscribe(new h(A,this.selector,this.caught))}}class h extends r.gn{constructor(A,M,T){super(A),this.selector=M,this.caught=T}error(A){if(!this.isStopped){let M;try{M=this.selector(A,this.caught)}catch(y){return void super.error(y)}this._unsubscribeAndRecycle();const T=new r.zA(this);this.add(T);const E=(0,r.tS)(M,T);E!==T&&this.add(E)}}}},79539:(je,z,c)=>{"use strict";c.d(z,{H:()=>n});var r=c(75707);function n(v,h){return(0,r.ZZ)(v,h,1)}},62931:(je,z,c)=>{"use strict";c.d(z,{B:()=>v});var r=c(27721),n=c(90093);function v(M,T=n.b){return E=>E.lift(new h(M,T))}class h{constructor(T,E){this.dueTime=T,this.scheduler=E}call(T,E){return E.subscribe(new f(T,this.dueTime,this.scheduler))}}class f extends r.v{constructor(T,E,y){super(T),this.dueTime=E,this.scheduler=y,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(T){this.clearDebounce(),this.lastValue=T,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(A,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:T}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(T)}}clearDebounce(){const T=this.debouncedSubscription;null!==T&&(this.remove(T),T.unsubscribe(),this.debouncedSubscription=null)}}function A(M){M.debouncedNext()}},67110:(je,z,c)=>{"use strict";c.d(z,{U:()=>n});var r=c(27721);function n(f=null){return A=>A.lift(new v(f))}class v{constructor(A){this.defaultValue=A}call(A,M){return M.subscribe(new h(A,this.defaultValue))}}class h extends r.v{constructor(A,M){super(A),this.defaultValue=M,this.isEmpty=!0}_next(A){this.isEmpty=!1,this.destination.next(A)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},65726:(je,z,c)=>{"use strict";c.d(z,{c:()=>f});var r=c(90093),n=c(29734),v=c(27721),h=c(75252);function f(E,y=r.b){const l=(0,n.$)(E)?+E-y.now():Math.abs(E);return s=>s.lift(new A(l,y))}class A{constructor(y,S){this.delay=y,this.scheduler=S}call(y,S){return S.subscribe(new M(y,this.delay,this.scheduler))}}class M extends v.v{constructor(y,S,l){super(y),this.delay=S,this.scheduler=l,this.queue=[],this.active=!1,this.errored=!1}static dispatch(y){const S=y.source,l=S.queue,s=y.scheduler,u=y.destination;for(;l.length>0&&l[0].time-s.now()<=0;)l.shift().notification.observe(u);if(l.length>0){const m=Math.max(0,l[0].time-s.now());this.schedule(y,m)}else this.unsubscribe(),S.active=!1}_schedule(y){this.active=!0,this.destination.add(y.schedule(M.dispatch,this.delay,{source:this,destination:this.destination,scheduler:y}))}scheduleNotification(y){if(!0===this.errored)return;const S=this.scheduler,l=new T(S.now()+this.delay,y);this.queue.push(l),!1===this.active&&this._schedule(S)}_next(y){this.scheduleNotification(h.E.createNext(y))}_error(y){this.errored=!0,this.queue=[],this.destination.error(y),this.unsubscribe()}_complete(){this.scheduleNotification(h.E.createComplete()),this.unsubscribe()}}class T{constructor(y,S){this.time=y,this.notification=S}}},53461:(je,z,c)=>{"use strict";c.d(z,{F:()=>n});var r=c(27721);function n(f,A){return M=>M.lift(new v(f,A))}class v{constructor(A,M){this.compare=A,this.keySelector=M}call(A,M){return M.subscribe(new h(A,this.compare,this.keySelector))}}class h extends r.v{constructor(A,M,T){super(A),this.keySelector=T,this.hasKey=!1,"function"==typeof M&&(this.compare=M)}compare(A,M){return A===M}_next(A){let M;try{const{keySelector:E}=this;M=E?E(A):A}catch(E){return this.destination.error(E)}let T=!1;if(this.hasKey)try{const{compare:E}=this;T=E(this.key,M)}catch(E){return this.destination.error(E)}else this.hasKey=!0;T||(this.key=M,this.destination.next(A))}}},8619:(je,z,c)=>{"use strict";c.d(z,{p:()=>n});var r=c(27721);function n(f,A){return function(T){return T.lift(new v(f,A))}}class v{constructor(A,M){this.predicate=A,this.thisArg=M}call(A,M){return M.subscribe(new h(A,this.predicate,this.thisArg))}}class h extends r.v{constructor(A,M,T){super(A),this.predicate=M,this.thisArg=T,this.count=0}_next(A){let M;try{M=this.predicate.call(this.thisArg,A,this.count++)}catch(T){return void this.destination.error(T)}M&&this.destination.next(A)}}},43615:(je,z,c)=>{"use strict";c.d(z,{j:()=>v});var r=c(27721),n=c(10399);function v(A){return M=>M.lift(new h(A))}class h{constructor(M){this.callback=M}call(M,T){return T.subscribe(new f(M,this.callback))}}class f extends r.v{constructor(M,T){super(M),this.add(new n.y(T))}}},99047:(je,z,c)=>{"use strict";c.d(z,{$:()=>M});var r=c(64971),n=c(8619),v=c(65706),h=c(67110),f=c(56681),A=c(92932);function M(T,E){const y=arguments.length>=2;return S=>S.pipe(T?(0,n.p)((l,s)=>T(l,s,S)):A.D,(0,v.s)(1),y?(0,h.U)(E):(0,f.v)(()=>new r.G))}},25577:(je,z,c)=>{"use strict";c.d(z,{H:()=>M});var r=c(64971),n=c(8619),v=c(93702),h=c(56681),f=c(67110),A=c(92932);function M(T,E){const y=arguments.length>=2;return S=>S.pipe(T?(0,n.p)((l,s)=>T(l,s,S)):A.D,(0,v.o)(1),y?(0,f.U)(E):(0,h.v)(()=>new r.G))}},83915:(je,z,c)=>{"use strict";c.d(z,{T:()=>n});var r=c(27721);function n(f,A){return function(T){if("function"!=typeof f)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return T.lift(new v(f,A))}}class v{constructor(A,M){this.project=A,this.thisArg=M}call(A,M){return M.subscribe(new h(A,this.project,this.thisArg))}}class h extends r.v{constructor(A,M,T){super(A),this.project=M,this.count=0,this.thisArg=T||this}_next(A){let M;try{M=this.project.call(this.thisArg,A,this.count++)}catch(T){return void this.destination.error(T)}this.destination.next(M)}}},10174:(je,z,c)=>{"use strict";c.d(z,{u:()=>n});var r=c(27721);function n(f){return A=>A.lift(new v(f))}class v{constructor(A){this.value=A}call(A,M){return M.subscribe(new h(A,this.value))}}class h extends r.v{constructor(A,M){super(A),this.value=M}_next(A){this.destination.next(this.value)}}},40466:(je,z,c)=>{"use strict";c.d(z,{U:()=>v});var r=c(75707),n=c(92932);function v(h=Number.POSITIVE_INFINITY){return(0,r.ZZ)(n.D,h)}},75707:(je,z,c)=>{"use strict";c.d(z,{ZZ:()=>h});var r=c(83915),n=c(19392),v=c(7583);function h(T,E,y=Number.POSITIVE_INFINITY){return"function"==typeof E?S=>S.pipe(h((l,s)=>(0,n.H)(T(l,s)).pipe((0,r.T)((u,m)=>E(l,u,s,m))),y)):("number"==typeof E&&(y=E),S=>S.lift(new f(T,y)))}class f{constructor(E,y=Number.POSITIVE_INFINITY){this.project=E,this.concurrent=y}call(E,y){return y.subscribe(new A(E,this.project,this.concurrent))}}class A extends v.gn{constructor(E,y,S=Number.POSITIVE_INFINITY){super(E),this.project=y,this.concurrent=S,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(E){this.active<this.concurrent?this._tryNext(E):this.buffer.push(E)}_tryNext(E){let y;const S=this.index++;try{y=this.project(E,S)}catch(l){return void this.destination.error(l)}this.active++,this._innerSub(y)}_innerSub(E){const y=new v.zA(this),S=this.destination;S.add(y);const l=(0,v.tS)(E,y);l!==y&&S.add(l)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(E){this.destination.next(E)}notifyComplete(){const E=this.buffer;this.active--,E.length>0?this._next(E.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},14749:(je,z,c)=>{"use strict";c.d(z,{J:()=>n});var r=c(27721);function n(){return f=>f.lift(new v)}class v{call(A,M){return M.subscribe(new h(A))}}class h extends r.v{constructor(A){super(A),this.hasPrev=!1}_next(A){let M;this.hasPrev?M=[this.prev,A]:this.hasPrev=!0,this.prev=A,M&&this.destination.next(M)}}},60837:(je,z,c)=>{"use strict";c.d(z,{B:()=>n});var r=c(27721);function n(){return function(A){return A.lift(new v(A))}}class v{constructor(A){this.connectable=A}call(A,M){const{connectable:T}=this;T._refCount++;const E=new h(A,T),y=M.subscribe(E);return E.closed||(E.connection=T.connect()),y}}class h extends r.v{constructor(A,M){super(A),this.connectable=M}_unsubscribe(){const{connectable:A}=this;if(!A)return void(this.connection=null);this.connectable=null;const M=A._refCount;if(M<=0)return void(this.connection=null);if(A._refCount=M-1,M>1)return void(this.connection=null);const{connection:T}=this,E=A._connection;this.connection=null,E&&(!T||E===T)&&E.unsubscribe()}}},86447:(je,z,c)=>{"use strict";c.d(z,{l:()=>v});var r=c(80583),n=c(7583);function v(A){return M=>M.lift(new h(A,M))}class h{constructor(M,T){this.notifier=M,this.source=T}call(M,T){return T.subscribe(new f(M,this.notifier,this.source))}}class f extends n.gn{constructor(M,T,E){super(M),this.notifier=T,this.source=E}error(M){if(!this.isStopped){let T=this.errors,E=this.retries,y=this.retriesSubscription;if(E)this.errors=void 0,this.retriesSubscription=void 0;else{T=new r.B7;try{const{notifier:S}=this;E=S(T)}catch(S){return super.error(S)}y=(0,n.tS)(E,new n.zA(this))}this._unsubscribeAndRecycle(),this.errors=T,this.retries=E,this.retriesSubscription=y,T.next(M)}}_unsubscribe(){const{errors:M,retriesSubscription:T}=this;M&&(M.unsubscribe(),this.errors=void 0),T&&(T.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:M}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=M,this.source.subscribe(this)}}},8282:(je,z,c)=>{"use strict";c.d(z,{u:()=>M});var r=c(96090);class v{constructor(E,y){this.subjectFactory=E,this.selector=y}call(E,y){const{selector:S}=this,l=this.subjectFactory(),s=S(l).subscribe(E);return s.add(y.subscribe(l)),s}}var h=c(60837),f=c(80583);function A(){return new f.B7}function M(){return T=>(0,h.B)()(function n(T,E){return function(S){let l;if(l="function"==typeof T?T:function(){return T},"function"==typeof E)return S.lift(new v(l,E));const s=Object.create(S,r.f);return s.source=S,s.subjectFactory=l,s}}(A)(T))}},55833:(je,z,c)=>{"use strict";c.d(z,{t:()=>n});var r=c(57258);function n(h,f,A){let M;return M=h&&"object"==typeof h?h:{bufferSize:h,windowTime:f,refCount:!1,scheduler:A},T=>T.lift(function v({bufferSize:h=Number.POSITIVE_INFINITY,windowTime:f=Number.POSITIVE_INFINITY,refCount:A,scheduler:M}){let T,y,E=0,S=!1,l=!1;return function(u){let m;E++,!T||S?(S=!1,T=new r.m(h,f,M),m=T.subscribe(this),y=u.subscribe({next(I){T.next(I)},error(I){S=!0,T.error(I)},complete(){l=!0,y=void 0,T.complete()}})):m=T.subscribe(this),this.add(()=>{E--,m.unsubscribe(),y&&!l&&A&&0===E&&(y.unsubscribe(),y=void 0,T=void 0)})}}(M))}},36666:(je,z,c)=>{"use strict";c.d(z,{i:()=>n});var r=c(27721);function n(f){return A=>A.lift(new v(f))}class v{constructor(A){this.total=A}call(A,M){return M.subscribe(new h(A,this.total))}}class h extends r.v{constructor(A,M){super(A),this.total=M,this.count=0}_next(A){++this.count>this.total&&this.destination.next(A)}}},34593:(je,z,c)=>{"use strict";c.d(z,{Z:()=>v});var r=c(82e3),n=c(44897);function v(...h){const f=h[h.length-1];return(0,n.m)(f)?(h.pop(),A=>(0,r.x)(h,A,f)):A=>(0,r.x)(h,A)}},72147:(je,z,c)=>{"use strict";c.d(z,{n:()=>h});var r=c(83915),n=c(19392),v=c(7583);function h(M,T){return"function"==typeof T?E=>E.pipe(h((y,S)=>(0,n.H)(M(y,S)).pipe((0,r.T)((l,s)=>T(y,l,S,s))))):E=>E.lift(new f(M))}class f{constructor(T){this.project=T}call(T,E){return E.subscribe(new A(T,this.project))}}class A extends v.gn{constructor(T,E){super(T),this.project=E,this.index=0}_next(T){let E;const y=this.index++;try{E=this.project(T,y)}catch(S){return void this.destination.error(S)}this._innerSub(E)}_innerSub(T){const E=this.innerSubscription;E&&E.unsubscribe();const y=new v.zA(this),S=this.destination;S.add(y),this.innerSubscription=(0,v.tS)(T,y),this.innerSubscription!==y&&S.add(this.innerSubscription)}_complete(){const{innerSubscription:T}=this;(!T||T.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(T){this.destination.next(T)}}},65706:(je,z,c)=>{"use strict";c.d(z,{s:()=>h});var r=c(27721),n=c(86133),v=c(12532);function h(M){return T=>0===M?(0,v.I)():T.lift(new f(M))}class f{constructor(T){if(this.total=T,this.total<0)throw new n.k}call(T,E){return E.subscribe(new A(T,this.total))}}class A extends r.v{constructor(T,E){super(T),this.total=E,this.count=0}_next(T){const E=this.total,y=++this.count;y<=E&&(this.destination.next(T),y===E&&(this.destination.complete(),this.unsubscribe()))}}},93702:(je,z,c)=>{"use strict";c.d(z,{o:()=>h});var r=c(27721),n=c(86133),v=c(12532);function h(M){return function(E){return 0===M?(0,v.I)():E.lift(new f(M))}}class f{constructor(T){if(this.total=T,this.total<0)throw new n.k}call(T,E){return E.subscribe(new A(T,this.total))}}class A extends r.v{constructor(T,E){super(T),this.total=E,this.ring=new Array,this.count=0}_next(T){const E=this.ring,y=this.total,S=this.count++;E.length<y?E.push(T):E[S%y]=T}_complete(){const T=this.destination;let E=this.count;if(E>0){const y=this.count>=this.total?this.total:this.count,S=this.ring;for(let l=0;l<y;l++){const s=E++%y;T.next(S[s])}}T.complete()}}},4208:(je,z,c)=>{"use strict";c.d(z,{Q:()=>n});var r=c(7583);function n(f){return A=>A.lift(new v(f))}class v{constructor(A){this.notifier=A}call(A,M){const T=new h(A),E=(0,r.tS)(this.notifier,new r.zA(T));return E&&!T.seenValue?(T.add(E),M.subscribe(T)):T}}class h extends r.gn{constructor(A){super(A),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},48765:(je,z,c)=>{"use strict";c.d(z,{v:()=>n});var r=c(27721);function n(f,A=!1){return M=>M.lift(new v(f,A))}class v{constructor(A,M){this.predicate=A,this.inclusive=M}call(A,M){return M.subscribe(new h(A,this.predicate,this.inclusive))}}class h extends r.v{constructor(A,M,T){super(A),this.predicate=M,this.inclusive=T,this.index=0}_next(A){const M=this.destination;let T;try{T=this.predicate(A,this.index++)}catch(E){return void M.error(E)}this.nextOrComplete(A,T)}nextOrComplete(A,M){const T=this.destination;M?T.next(A):(this.inclusive&&T.next(A),T.complete())}}},91384:(je,z,c)=>{"use strict";c.d(z,{M:()=>h});var r=c(27721),n=c(36466),v=c(50710);function h(M,T,E){return function(S){return S.lift(new f(M,T,E))}}class f{constructor(T,E,y){this.nextOrObserver=T,this.error=E,this.complete=y}call(T,E){return E.subscribe(new A(T,this.nextOrObserver,this.error,this.complete))}}class A extends r.v{constructor(T,E,y,S){super(T),this._tapNext=n.l,this._tapError=n.l,this._tapComplete=n.l,this._tapError=y||n.l,this._tapComplete=S||n.l,(0,v.T)(E)?(this._context=this,this._tapNext=E):E&&(this._context=E,this._tapNext=E.next||n.l,this._tapError=E.error||n.l,this._tapComplete=E.complete||n.l)}_next(T){try{this._tapNext.call(this._context,T)}catch(E){return void this.destination.error(E)}this.destination.next(T)}_error(T){try{this._tapError.call(this._context,T)}catch(E){return void this.destination.error(E)}this.destination.error(T)}_complete(){try{this._tapComplete.call(this._context)}catch(T){return void this.destination.error(T)}return this.destination.complete()}}},43780:(je,z,c)=>{"use strict";c.d(z,{c:()=>T});var r=c(27721),n=c(90093);c(7583);const h={leading:!0,trailing:!1};function T(l,s=n.b,u=h){return m=>m.lift(new E(l,s,u.leading,u.trailing))}class E{constructor(s,u,m,I){this.duration=s,this.scheduler=u,this.leading=m,this.trailing=I}call(s,u){return u.subscribe(new y(s,this.duration,this.scheduler,this.leading,this.trailing))}}class y extends r.v{constructor(s,u,m,I,R){super(s),this.duration=u,this.scheduler=m,this.leading=I,this.trailing=R,this._hasTrailingValue=!1,this._trailingValue=null}_next(s){this.throttled?this.trailing&&(this._trailingValue=s,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(S,this.duration,{subscriber:this})),this.leading?this.destination.next(s):this.trailing&&(this._trailingValue=s,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const s=this.throttled;s&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),s.unsubscribe(),this.remove(s),this.throttled=null)}}function S(l){const{subscriber:s}=l;s.clearThrottle()}},56681:(je,z,c)=>{"use strict";c.d(z,{v:()=>v});var r=c(64971),n=c(27721);function v(M=A){return T=>T.lift(new h(M))}class h{constructor(T){this.errorFactory=T}call(T,E){return E.subscribe(new f(T,this.errorFactory))}}class f extends n.v{constructor(T,E){super(T),this.errorFactory=E,this.hasValue=!1}_next(T){this.hasValue=!0,this.destination.next(T)}_complete(){if(this.hasValue)return this.destination.complete();{let T;try{T=this.errorFactory()}catch(E){T=E}this.destination.error(T)}}}function A(){return new r.G}},40198:(je,z,c)=>{"use strict";c.d(z,{w:()=>f});var r=c(90093),n=c(99021),v=c(12962),h=c(59859);function f(A,M=r.b){return(0,v.o)(A,(0,h.$)(new n.M),M)}},12962:(je,z,c)=>{"use strict";c.d(z,{o:()=>h});var r=c(90093),n=c(29734),v=c(7583);function h(M,T,E=r.b){return y=>{let S=(0,n.$)(M),l=S?+M-E.now():Math.abs(M);return y.lift(new f(l,S,T,E))}}class f{constructor(T,E,y,S){this.waitFor=T,this.absoluteTimeout=E,this.withObservable=y,this.scheduler=S}call(T,E){return E.subscribe(new A(T,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class A extends v.gn{constructor(T,E,y,S,l){super(T),this.absoluteTimeout=E,this.waitFor=y,this.withObservable=S,this.scheduler=l,this.scheduleTimeout()}static dispatchTimeout(T){const{withObservable:E}=T;T._unsubscribeAndRecycle(),T.add((0,v.tS)(E,new v.zA(T)))}scheduleTimeout(){const{action:T}=this;T?this.action=T.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(A.dispatchTimeout,this.waitFor,this))}_next(T){this.absoluteTimeout||this.scheduleTimeout(),super._next(T)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}},57797:(je,z,c)=>{"use strict";c.d(z,{V:()=>v});var r=c(17053),n=c(10399);function v(h,f){return new r.c(A=>{const M=new n.y;let T=0;return M.add(f.schedule(function(){T!==h.length?(A.next(h[T++]),A.closed||M.add(this.schedule())):A.complete()})),M})}},86369:(je,z,c)=>{"use strict";c.d(z,{R:()=>v});var r=c(10399);class n extends r.y{constructor(f,A){super()}schedule(f,A=0){return this}}class v extends n{constructor(f,A){super(f,A),this.scheduler=f,this.work=A,this.pending=!1}schedule(f,A=0){if(this.closed)return this;this.state=f;const M=this.id,T=this.scheduler;return null!=M&&(this.id=this.recycleAsyncId(T,M,A)),this.pending=!0,this.delay=A,this.id=this.id||this.requestAsyncId(T,this.id,A),this}requestAsyncId(f,A,M=0){return setInterval(f.flush.bind(f,this),M)}recycleAsyncId(f,A,M=0){if(null!==M&&this.delay===M&&!1===this.pending)return A;clearInterval(A)}execute(f,A){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const M=this._execute(f,A);if(M)return M;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(f,A){let T,M=!1;try{this.work(f)}catch(E){M=!0,T=!!E&&E||new Error(E)}if(M)return this.unsubscribe(),T}_unsubscribe(){const f=this.id,A=this.scheduler,M=A.actions,T=M.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==T&&M.splice(T,1),null!=f&&(this.id=this.recycleAsyncId(A,f,null)),this.delay=null}}},4065:(je,z,c)=>{"use strict";c.d(z,{q:()=>n});let r=(()=>{class v{constructor(f,A=v.now){this.SchedulerAction=f,this.now=A}schedule(f,A=0,M){return new this.SchedulerAction(this,f).schedule(M,A)}}return v.now=()=>Date.now(),v})();class n extends r{constructor(h,f=r.now){super(h,()=>n.delegate&&n.delegate!==this?n.delegate.now():f()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(h,f=0,A){return n.delegate&&n.delegate!==this?n.delegate.schedule(h,f,A):super.schedule(h,f,A)}flush(h){const{actions:f}=this;if(this.active)return void f.push(h);let A;this.active=!0;do{if(A=h.execute(h.state,h.delay))break}while(h=f.shift());if(this.active=!1,A){for(;h=f.shift();)h.unsubscribe();throw A}}}},27594:(je,z,c)=>{"use strict";c.d(z,{X:()=>f});var r=c(86369),v=c(4065);const f=new class h extends v.q{flush(T){this.active=!0,this.scheduled=void 0;const{actions:E}=this;let y,S=-1,l=E.length;T=T||E.shift();do{if(y=T.execute(T.state,T.delay))break}while(++S<l&&(T=E.shift()));if(this.active=!1,y){for(;++S<l&&(T=E.shift());)T.unsubscribe();throw y}}}(class n extends r.R{constructor(T,E){super(T,E),this.scheduler=T,this.work=E}requestAsyncId(T,E,y=0){return null!==y&&y>0?super.requestAsyncId(T,E,y):(T.actions.push(this),T.scheduled||(T.scheduled=requestAnimationFrame(()=>T.flush(null))))}recycleAsyncId(T,E,y=0){if(null!==y&&y>0||null===y&&this.delay>0)return super.recycleAsyncId(T,E,y);0===T.actions.length&&(cancelAnimationFrame(E),T.scheduled=void 0)}})},62366:(je,z,c)=>{"use strict";c.d(z,{$:()=>S});let r=1;const n=Promise.resolve(),v={};function h(s){return s in v&&(delete v[s],!0)}const f={setImmediate(s){const u=r++;return v[u]=!0,n.then(()=>h(u)&&s()),u},clearImmediate(s){h(s)}};var M=c(86369),E=c(4065);const S=new class y extends E.q{flush(u){this.active=!0,this.scheduled=void 0;const{actions:m}=this;let I,R=-1,O=m.length;u=u||m.shift();do{if(I=u.execute(u.state,u.delay))break}while(++R<O&&(u=m.shift()));if(this.active=!1,I){for(;++R<O&&(u=m.shift());)u.unsubscribe();throw I}}}(class T extends M.R{constructor(u,m){super(u,m),this.scheduler=u,this.work=m}requestAsyncId(u,m,I=0){return null!==I&&I>0?super.requestAsyncId(u,m,I):(u.actions.push(this),u.scheduled||(u.scheduled=f.setImmediate(u.flush.bind(u,null))))}recycleAsyncId(u,m,I=0){if(null!==I&&I>0||null===I&&this.delay>0)return super.recycleAsyncId(u,m,I);0===u.actions.length&&(f.clearImmediate(m),u.scheduled=void 0)}})},90093:(je,z,c)=>{"use strict";c.d(z,{E:()=>v,b:()=>h});var r=c(86369);const v=new(c(4065).q)(r.R),h=v},63320:(je,z,c)=>{"use strict";c.d(z,{lJ:()=>n});const n=function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},15587:(je,z,c)=>{"use strict";c.d(z,{s:()=>r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},73302:(je,z,c)=>{"use strict";c.d(z,{D:()=>r});const r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},86133:(je,z,c)=>{"use strict";c.d(z,{k:()=>n});const n=(()=>{function v(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return v.prototype=Object.create(Error.prototype),v})()},64971:(je,z,c)=>{"use strict";c.d(z,{G:()=>n});const n=(()=>{function v(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return v.prototype=Object.create(Error.prototype),v})()},38058:(je,z,c)=>{"use strict";c.d(z,{P:()=>n});const n=(()=>{function v(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return v.prototype=Object.create(Error.prototype),v})()},99021:(je,z,c)=>{"use strict";c.d(z,{M:()=>n});const n=(()=>{function v(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return v.prototype=Object.create(Error.prototype),v})()},81498:(je,z,c)=>{"use strict";function r(n){setTimeout(()=>{throw n},0)}c.d(z,{T:()=>r})},92932:(je,z,c)=>{"use strict";function r(n){return n}c.d(z,{D:()=>r})},34277:(je,z,c)=>{"use strict";c.d(z,{c:()=>r});const r=Array.isArray||(n=>n&&"number"==typeof n.length)},19730:(je,z,c)=>{"use strict";c.d(z,{X:()=>r});const r=n=>n&&"number"==typeof n.length&&"function"!=typeof n},29734:(je,z,c)=>{"use strict";function r(n){return n instanceof Date&&!isNaN(+n)}c.d(z,{$:()=>r})},50710:(je,z,c)=>{"use strict";function r(n){return"function"==typeof n}c.d(z,{T:()=>r})},37803:(je,z,c)=>{"use strict";c.d(z,{k:()=>n});var r=c(34277);function n(v){return!(0,r.c)(v)&&v-parseFloat(v)+1>=0}},96305:(je,z,c)=>{"use strict";function r(n){return null!==n&&"object"==typeof n}c.d(z,{G:()=>r})},39595:(je,z,c)=>{"use strict";c.d(z,{A:()=>n});var r=c(17053);function n(v){return!!v&&(v instanceof r.c||"function"==typeof v.lift&&"function"==typeof v.subscribe)}},48089:(je,z,c)=>{"use strict";function r(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}c.d(z,{y:()=>r})},44897:(je,z,c)=>{"use strict";function r(n){return n&&"function"==typeof n.schedule}c.d(z,{m:()=>r})},36466:(je,z,c)=>{"use strict";function r(){}c.d(z,{l:()=>r})},97462:(je,z,c)=>{"use strict";c.d(z,{F:()=>n,m:()=>v});var r=c(92932);function n(...h){return v(h)}function v(h){return 0===h.length?r.D:1===h.length?h[0]:function(A){return h.reduce((M,T)=>T(M),A)}}},37233:(je,z,c)=>{"use strict";c.d(z,{i:()=>S});var r=c(46936),n=c(81498),h=c(63320),A=c(15587),T=c(19730),E=c(48089),y=c(96305);const S=l=>{if(l&&"function"==typeof l[A.s])return(l=>s=>{const u=l[A.s]();if("function"!=typeof u.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return u.subscribe(s)})(l);if((0,T.X)(l))return(0,r.v)(l);if((0,E.y)(l))return(l=>s=>(l.then(u=>{s.closed||(s.next(u),s.complete())},u=>s.error(u)).then(null,n.T),s))(l);if(l&&"function"==typeof l[h.lJ])return(l=>s=>{const u=l[h.lJ]();for(;;){let m;try{m=u.next()}catch(I){return s.error(I),s}if(m.done){s.complete();break}if(s.next(m.value),s.closed)break}return"function"==typeof u.return&&s.add(()=>{u.return&&u.return()}),s})(l);{const u=`You provided ${(0,y.G)(l)?"an invalid object":`'${l}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(u)}}},46936:(je,z,c)=>{"use strict";c.d(z,{v:()=>r});const r=n=>v=>{for(let h=0,f=n.length;h<f&&!v.closed;h++)v.next(n[h]);v.complete()}},1447:(je,z,c)=>{"use strict";c.d(z,{F:()=>f});var r=c(27721);class n extends r.v{constructor(M,T,E){super(),this.parent=M,this.outerValue=T,this.outerIndex=E,this.index=0}_next(M){this.parent.notifyNext(this.outerValue,M,this.outerIndex,this.index++,this)}_error(M){this.parent.notifyError(M,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var v=c(37233),h=c(17053);function f(A,M,T,E,y=new n(A,T,E)){if(!y.closed)return M instanceof h.c?M.subscribe(y):(0,v.i)(M)(y)}},19087:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var r=c(28691),n=c(29234),v=c(54616),h=c(59409),f=c(8628),A=function(){function T(E){this._isScalar=!1,E&&(this._subscribe=E)}return T.prototype.lift=function(E){var y=new T;return y.source=this,y.operator=E,y},T.prototype.subscribe=function(E,y,S){var l=this.operator,s=n.toSubscriber(E,y,S);if(s.add(l?l.call(s,this.source):this.source||f.config.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),f.config.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},T.prototype._trySubscribe=function(E){try{return this._subscribe(E)}catch(y){f.config.useDeprecatedSynchronousErrorHandling&&(E.syncErrorThrown=!0,E.syncErrorValue=y),r.canReportError(E)?E.error(y):console.warn(y)}},T.prototype.forEach=function(E,y){var S=this;return new(y=M(y))(function(l,s){var u;u=S.subscribe(function(m){try{E(m)}catch(I){s(I),u&&u.unsubscribe()}},s,l)})},T.prototype._subscribe=function(E){var y=this.source;return y&&y.subscribe(E)},T.prototype[v.observable]=function(){return this},T.prototype.pipe=function(){for(var E=[],y=0;y<arguments.length;y++)E[y]=arguments[y];return 0===E.length?this:h.pipeFromArray(E)(this)},T.prototype.toPromise=function(E){var y=this;return new(E=M(E))(function(S,l){var s;y.subscribe(function(u){return s=u},function(u){return l(u)},function(){return S(s)})})},T.create=function(E){return new T(E)},T}();function M(T){if(T||(T=f.config.Promise||Promise),!T)throw new Error("no Promise impl found");return T}z.Observable=A},1588:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var r=c(8628),n=c(65919);z.empty={closed:!0,next:function(v){},error:function(v){if(r.config.useDeprecatedSynchronousErrorHandling)throw v;n.hostReportError(v)},complete:function(){}}},5932:function(je,z,c){"use strict";var r=this&&this.__extends||function(){var S=function(l,s){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,m){u.__proto__=m}||function(u,m){for(var I in m)m.hasOwnProperty(I)&&(u[I]=m[I])})(l,s)};return function(l,s){function u(){this.constructor=l}S(l,s),l.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)}}();Object.defineProperty(z,"__esModule",{value:!0});var n=c(19087),v=c(88776),h=c(49307),f=c(12027),A=c(55877),M=c(43297),T=function(S){function l(s){var u=S.call(this,s)||this;return u.destination=s,u}return r(l,S),l}(v.Subscriber);z.SubjectSubscriber=T;var E=function(S){function l(){var s=S.call(this)||this;return s.observers=[],s.closed=!1,s.isStopped=!1,s.hasError=!1,s.thrownError=null,s}return r(l,S),l.prototype[M.rxSubscriber]=function(){return new T(this)},l.prototype.lift=function(s){var u=new y(this,this);return u.operator=s,u},l.prototype.next=function(s){if(this.closed)throw new f.ObjectUnsubscribedError;if(!this.isStopped)for(var u=this.observers,m=u.length,I=u.slice(),R=0;R<m;R++)I[R].next(s)},l.prototype.error=function(s){if(this.closed)throw new f.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=s,this.isStopped=!0;for(var u=this.observers,m=u.length,I=u.slice(),R=0;R<m;R++)I[R].error(s);this.observers.length=0},l.prototype.complete=function(){if(this.closed)throw new f.ObjectUnsubscribedError;this.isStopped=!0;for(var s=this.observers,u=s.length,m=s.slice(),I=0;I<u;I++)m[I].complete();this.observers.length=0},l.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},l.prototype._trySubscribe=function(s){if(this.closed)throw new f.ObjectUnsubscribedError;return S.prototype._trySubscribe.call(this,s)},l.prototype._subscribe=function(s){if(this.closed)throw new f.ObjectUnsubscribedError;return this.hasError?(s.error(this.thrownError),h.Subscription.EMPTY):this.isStopped?(s.complete(),h.Subscription.EMPTY):(this.observers.push(s),new A.SubjectSubscription(this,s))},l.prototype.asObservable=function(){var s=new n.Observable;return s.source=this,s},l.create=function(s,u){return new y(s,u)},l}(n.Observable);z.Subject=E;var y=function(S){function l(s,u){var m=S.call(this)||this;return m.destination=s,m.source=u,m}return r(l,S),l.prototype.next=function(s){var u=this.destination;u&&u.next&&u.next(s)},l.prototype.error=function(s){var u=this.destination;u&&u.error&&this.destination.error(s)},l.prototype.complete=function(){var s=this.destination;s&&s.complete&&this.destination.complete()},l.prototype._subscribe=function(s){return this.source?this.source.subscribe(s):h.Subscription.EMPTY},l}(E);z.AnonymousSubject=y},55877:function(je,z,c){"use strict";var r=this&&this.__extends||function(){var h=function(f,A){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,T){M.__proto__=T}||function(M,T){for(var E in T)T.hasOwnProperty(E)&&(M[E]=T[E])})(f,A)};return function(f,A){function M(){this.constructor=f}h(f,A),f.prototype=null===A?Object.create(A):(M.prototype=A.prototype,new M)}}();Object.defineProperty(z,"__esModule",{value:!0});var v=function(h){function f(A,M){var T=h.call(this)||this;return T.subject=A,T.subscriber=M,T.closed=!1,T}return r(f,h),f.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var A=this.subject,M=A.observers;if(this.subject=null,M&&0!==M.length&&!A.isStopped&&!A.closed){var T=M.indexOf(this.subscriber);-1!==T&&M.splice(T,1)}}},f}(c(49307).Subscription);z.SubjectSubscription=v},88776:function(je,z,c){"use strict";var r=this&&this.__extends||function(){var y=function(S,l){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var m in u)u.hasOwnProperty(m)&&(s[m]=u[m])})(S,l)};return function(S,l){function s(){this.constructor=S}y(S,l),S.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(z,"__esModule",{value:!0});var n=c(44981),v=c(1588),h=c(49307),f=c(43297),A=c(8628),M=c(65919),T=function(y){function S(l,s,u){var m=y.call(this)||this;switch(m.syncErrorValue=null,m.syncErrorThrown=!1,m.syncErrorThrowable=!1,m.isStopped=!1,arguments.length){case 0:m.destination=v.empty;break;case 1:if(!l){m.destination=v.empty;break}if("object"==typeof l){l instanceof S?(m.syncErrorThrowable=l.syncErrorThrowable,m.destination=l,l.add(m)):(m.syncErrorThrowable=!0,m.destination=new E(m,l));break}default:m.syncErrorThrowable=!0,m.destination=new E(m,l,s,u)}return m}return r(S,y),S.prototype[f.rxSubscriber]=function(){return this},S.create=function(l,s,u){var m=new S(l,s,u);return m.syncErrorThrowable=!1,m},S.prototype.next=function(l){this.isStopped||this._next(l)},S.prototype.error=function(l){this.isStopped||(this.isStopped=!0,this._error(l))},S.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},S.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,y.prototype.unsubscribe.call(this))},S.prototype._next=function(l){this.destination.next(l)},S.prototype._error=function(l){this.destination.error(l),this.unsubscribe()},S.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},S.prototype._unsubscribeAndRecycle=function(){var l=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=l,this},S}(h.Subscription);z.Subscriber=T;var E=function(y){function S(l,s,u,m){var I=y.call(this)||this;I._parentSubscriber=l;var R,O=I;return n.isFunction(s)?R=s:s&&(R=s.next,u=s.error,m=s.complete,s!==v.empty&&(O=Object.create(s),n.isFunction(O.unsubscribe)&&I.add(O.unsubscribe.bind(O)),O.unsubscribe=I.unsubscribe.bind(I))),I._context=O,I._next=R,I._error=u,I._complete=m,I}return r(S,y),S.prototype.next=function(l){if(!this.isStopped&&this._next){var s=this._parentSubscriber;A.config.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable?this.__tryOrSetError(s,this._next,l)&&this.unsubscribe():this.__tryOrUnsub(this._next,l)}},S.prototype.error=function(l){if(!this.isStopped){var s=this._parentSubscriber,u=A.config.useDeprecatedSynchronousErrorHandling;if(this._error)u&&s.syncErrorThrowable?(this.__tryOrSetError(s,this._error,l),this.unsubscribe()):(this.__tryOrUnsub(this._error,l),this.unsubscribe());else if(s.syncErrorThrowable)u?(s.syncErrorValue=l,s.syncErrorThrown=!0):M.hostReportError(l),this.unsubscribe();else{if(this.unsubscribe(),u)throw l;M.hostReportError(l)}}},S.prototype.complete=function(){var l=this;if(!this.isStopped){var s=this._parentSubscriber;if(this._complete){var u=function(){return l._complete.call(l._context)};A.config.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable?(this.__tryOrSetError(s,u),this.unsubscribe()):(this.__tryOrUnsub(u),this.unsubscribe())}else this.unsubscribe()}},S.prototype.__tryOrUnsub=function(l,s){try{l.call(this._context,s)}catch(u){if(this.unsubscribe(),A.config.useDeprecatedSynchronousErrorHandling)throw u;M.hostReportError(u)}},S.prototype.__tryOrSetError=function(l,s,u){if(!A.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{s.call(this._context,u)}catch(m){return A.config.useDeprecatedSynchronousErrorHandling?(l.syncErrorValue=m,l.syncErrorThrown=!0,!0):(M.hostReportError(m),!0)}return!1},S.prototype._unsubscribe=function(){var l=this._parentSubscriber;this._context=null,this._parentSubscriber=null,l.unsubscribe()},S}(T);z.SafeSubscriber=E},49307:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var r=c(92940),n=c(30662),v=c(44981),h=c(44977),f=function(){function M(T){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,T&&(this._ctorUnsubscribe=!0,this._unsubscribe=T)}return M.prototype.unsubscribe=function(){var T;if(!this.closed){var E=this,y=E._parentOrParents,S=E._ctorUnsubscribe,l=E._unsubscribe,s=E._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,y instanceof M)y.remove(this);else if(null!==y)for(var u=0;u<y.length;++u)y[u].remove(this);if(v.isFunction(l)){S&&(this._unsubscribe=void 0);try{l.call(this)}catch(O){T=O instanceof h.UnsubscriptionError?A(O.errors):[O]}}if(r.isArray(s)){u=-1;for(var I=s.length;++u<I;){var R=s[u];if(n.isObject(R))try{R.unsubscribe()}catch(Y){T=T||[],Y instanceof h.UnsubscriptionError?T=T.concat(A(Y.errors)):T.push(Y)}}}if(T)throw new h.UnsubscriptionError(T)}},M.prototype.add=function(T){var E=T;if(!T)return M.EMPTY;switch(typeof T){case"function":E=new M(T);case"object":if(E===this||E.closed||"function"!=typeof E.unsubscribe)return E;if(this.closed)return E.unsubscribe(),E;if(!(E instanceof M)){var y=E;(E=new M)._subscriptions=[y]}break;default:throw new Error("unrecognized teardown "+T+" added to Subscription.")}var S=E._parentOrParents;if(null===S)E._parentOrParents=this;else if(S instanceof M){if(S===this)return E;E._parentOrParents=[S,this]}else{if(-1!==S.indexOf(this))return E;S.push(this)}var l=this._subscriptions;return null===l?this._subscriptions=[E]:l.push(E),E},M.prototype.remove=function(T){var E=this._subscriptions;if(E){var y=E.indexOf(T);-1!==y&&E.splice(y,1)}},M.EMPTY=((T=new M).closed=!0,T),M;var T}();function A(M){return M.reduce(function(T,E){return T.concat(E instanceof h.UnsubscriptionError?E.errors:E)},[])}z.Subscription=f},8628:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var c=!1;z.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(r){if(r){var n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else c&&console.log("RxJS: Back to a better error behavior. Thank you. <3");c=r},get useDeprecatedSynchronousErrorHandling(){return c}}},54616:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},43297:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),z.$$rxSubscriber=z.rxSubscriber},12027:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var c=function(){function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return r.prototype=Object.create(Error.prototype),r}();z.ObjectUnsubscribedError=c},44977:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var c=function(){function r(n){return Error.call(this),this.message=n?n.length+" errors occurred during unsubscription:\n"+n.map(function(v,h){return h+1+") "+v.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=n,this}return r.prototype=Object.create(Error.prototype),r}();z.UnsubscriptionError=c},28691:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var r=c(88776);z.canReportError=function n(v){for(;v;){var A=v.destination;if(v.closed||v.isStopped)return!1;v=A&&A instanceof r.Subscriber?A:null}return!0}},65919:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.hostReportError=function c(r){setTimeout(function(){throw r},0)}},77719:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.identity=function c(r){return r}},92940:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.isArray=Array.isArray||function(c){return c&&"number"==typeof c.length}},44981:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.isFunction=function c(r){return"function"==typeof r}},30662:(je,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.isObject=function c(r){return null!==r&&"object"==typeof r}},59409:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var r=c(77719);function v(h){return 0===h.length?r.identity:1===h.length?h[0]:function(A){return h.reduce(function(M,T){return T(M)},A)}}z.pipe=function n(){for(var h=[],f=0;f<arguments.length;f++)h[f]=arguments[f];return v(h)},z.pipeFromArray=v},29234:(je,z,c)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var r=c(88776),n=c(43297),v=c(1588);z.toSubscriber=function h(f,A,M){if(f){if(f instanceof r.Subscriber)return f;if(f[n.rxSubscriber])return f[n.rxSubscriber]()}return f||A||M?new r.Subscriber(f,A,M):new r.Subscriber(v.empty)}},35358:(je,z,c)=>{var r={"./af":39165,"./af.js":39165,"./ar":69041,"./ar-dz":15572,"./ar-dz.js":15572,"./ar-kw":75032,"./ar-kw.js":75032,"./ar-ly":6501,"./ar-ly.js":6501,"./ar-ma":67844,"./ar-ma.js":67844,"./ar-sa":76694,"./ar-sa.js":76694,"./ar-tn":35944,"./ar-tn.js":35944,"./ar.js":69041,"./az":68873,"./az.js":68873,"./be":61219,"./be.js":61219,"./bg":86533,"./bg.js":86533,"./bm":78347,"./bm.js":78347,"./bn":71246,"./bn-bd":1817,"./bn-bd.js":1817,"./bn.js":71246,"./bo":20557,"./bo.js":20557,"./br":37418,"./br.js":37418,"./bs":7673,"./bs.js":7673,"./ca":51862,"./ca.js":51862,"./cs":9980,"./cs.js":9980,"./cv":57479,"./cv.js":57479,"./cy":17998,"./cy.js":17998,"./da":57045,"./da.js":57045,"./de":34297,"./de-at":66627,"./de-at.js":66627,"./de-ch":5061,"./de-ch.js":5061,"./de.js":34297,"./dv":87024,"./dv.js":87024,"./el":45231,"./el.js":45231,"./en-au":22452,"./en-au.js":22452,"./en-ca":98374,"./en-ca.js":98374,"./en-gb":92119,"./en-gb.js":92119,"./en-ie":83964,"./en-ie.js":83964,"./en-il":15979,"./en-il.js":15979,"./en-in":75469,"./en-in.js":75469,"./en-nz":61518,"./en-nz.js":61518,"./en-sg":34752,"./en-sg.js":34752,"./eo":47746,"./eo.js":47746,"./es":34294,"./es-do":38554,"./es-do.js":38554,"./es-mx":12254,"./es-mx.js":12254,"./es-us":62267,"./es-us.js":62267,"./es.js":34294,"./et":27511,"./et.js":27511,"./eu":86208,"./eu.js":86208,"./fa":25675,"./fa.js":25675,"./fi":8547,"./fi.js":8547,"./fil":79839,"./fil.js":79839,"./fo":35721,"./fo.js":35721,"./fr":22270,"./fr-ca":85207,"./fr-ca.js":85207,"./fr-ch":75688,"./fr-ch.js":75688,"./fr.js":22270,"./fy":38963,"./fy.js":38963,"./ga":77050,"./ga.js":77050,"./gd":28837,"./gd.js":28837,"./gl":74253,"./gl.js":74253,"./gom-deva":25008,"./gom-deva.js":25008,"./gom-latn":80523,"./gom-latn.js":80523,"./gu":98454,"./gu.js":98454,"./he":34117,"./he.js":34117,"./hi":66737,"./hi.js":66737,"./hr":3136,"./hr.js":3136,"./hu":3637,"./hu.js":3637,"./hy-am":48204,"./hy-am.js":48204,"./id":51795,"./id.js":51795,"./is":17690,"./is.js":17690,"./it":21379,"./it-ch":69127,"./it-ch.js":69127,"./it.js":21379,"./ja":48319,"./ja.js":48319,"./jv":30830,"./jv.js":30830,"./ka":25806,"./ka.js":25806,"./kk":95004,"./kk.js":95004,"./km":96250,"./km.js":96250,"./kn":99975,"./kn.js":99975,"./ko":75824,"./ko.js":75824,"./ku":94482,"./ku.js":94482,"./ky":36886,"./ky.js":36886,"./lb":98340,"./lb.js":98340,"./lo":36391,"./lo.js":36391,"./lt":29842,"./lt.js":29842,"./lv":19432,"./lv.js":19432,"./me":49832,"./me.js":49832,"./mi":82124,"./mi.js":82124,"./mk":77526,"./mk.js":77526,"./ml":87095,"./ml.js":87095,"./mn":63737,"./mn.js":63737,"./mr":76621,"./mr.js":76621,"./ms":43662,"./ms-my":49749,"./ms-my.js":49749,"./ms.js":43662,"./mt":4815,"./mt.js":4815,"./my":35644,"./my.js":35644,"./nb":73926,"./nb.js":73926,"./ne":93607,"./ne.js":93607,"./nl":46232,"./nl-be":54316,"./nl-be.js":54316,"./nl.js":46232,"./nn":41634,"./nn.js":41634,"./oc-lnc":93118,"./oc-lnc.js":93118,"./pa-in":98557,"./pa-in.js":98557,"./pl":37110,"./pl.js":37110,"./pt":68558,"./pt-br":95875,"./pt-br.js":95875,"./pt.js":68558,"./ro":63741,"./ro.js":63741,"./ru":16803,"./ru.js":16803,"./sd":81481,"./sd.js":81481,"./se":68954,"./se.js":68954,"./si":21806,"./si.js":21806,"./sk":57924,"./sk.js":57924,"./sl":4945,"./sl.js":4945,"./sq":6710,"./sq.js":6710,"./sr":60531,"./sr-cyrl":80574,"./sr-cyrl.js":80574,"./sr.js":60531,"./ss":60268,"./ss.js":60268,"./sv":65239,"./sv.js":65239,"./sw":75520,"./sw.js":75520,"./ta":42373,"./ta.js":42373,"./te":26409,"./te.js":26409,"./tet":39353,"./tet.js":39353,"./tg":82919,"./tg.js":82919,"./th":50382,"./th.js":50382,"./tk":11,"./tk.js":11,"./tl-ph":78171,"./tl-ph.js":78171,"./tlh":64720,"./tlh.js":64720,"./tr":5196,"./tr.js":5196,"./tzl":36026,"./tzl.js":36026,"./tzm":91081,"./tzm-latn":79995,"./tzm-latn.js":79995,"./tzm.js":91081,"./ug-cn":94546,"./ug-cn.js":94546,"./uk":43358,"./uk.js":43358,"./ur":72773,"./ur.js":72773,"./uz":23149,"./uz-latn":66999,"./uz-latn.js":66999,"./uz.js":23149,"./vi":66419,"./vi.js":66419,"./x-pseudo":19943,"./x-pseudo.js":19943,"./yo":142,"./yo.js":142,"./zh-cn":12076,"./zh-cn.js":12076,"./zh-hk":8556,"./zh-hk.js":8556,"./zh-mo":88257,"./zh-mo.js":88257,"./zh-tw":57068,"./zh-tw.js":57068};function n(h){var f=v(h);return c(f)}function v(h){if(!c.o(r,h)){var f=new Error("Cannot find module '"+h+"'");throw f.code="MODULE_NOT_FOUND",f}return r[h]}n.keys=function(){return Object.keys(r)},n.resolve=v,je.exports=n,n.id=35358},91903:()=>{},24394:()=>{},8536:je=>{function z(r,n,v,h,f,A,M){try{var T=r[A](M),E=T.value}catch(y){return void v(y)}T.done?n(E):Promise.resolve(E).then(h,f)}je.exports=function c(r){return function(){var n=this,v=arguments;return new Promise(function(h,f){var A=r.apply(n,v);function M(E){z(A,h,f,M,T,"next",E)}function T(E){z(A,h,f,M,T,"throw",E)}M(void 0)})}},je.exports.__esModule=!0,je.exports.default=je.exports},70650:(je,z,c)=>{"use strict";function r(v,h,f,A,M,T,E){try{var y=v[T](E),S=y.value}catch(l){return void f(l)}y.done?h(S):Promise.resolve(S).then(A,M)}function n(v){return function(){var h=this,f=arguments;return new Promise(function(A,M){var T=v.apply(h,f);function E(S){r(T,A,M,E,y,"next",S)}function y(S){r(T,A,M,E,y,"throw",S)}E(void 0)})}}c.d(z,{A:()=>n})},40262:(je,z,c)=>{"use strict";c.d(z,{FX:()=>Me,If:()=>v,K2:()=>T,MA:()=>u,Os:()=>M,P:()=>I,S6:()=>O,hZ:()=>f,i0:()=>A,i7:()=>S,iF:()=>E,kY:()=>l,kp:()=>h,sf:()=>X,ui:()=>ue,wk:()=>y});var r=c(61142),n=c(58527),v=function(be){return be[be.State=0]="State",be[be.Transition=1]="Transition",be[be.Sequence=2]="Sequence",be[be.Group=3]="Group",be[be.Animate=4]="Animate",be[be.Keyframes=5]="Keyframes",be[be.Style=6]="Style",be[be.Trigger=7]="Trigger",be[be.Reference=8]="Reference",be[be.AnimateChild=9]="AnimateChild",be[be.AnimateRef=10]="AnimateRef",be[be.Query=11]="Query",be[be.Stagger=12]="Stagger",be}(v||{});const h="*";function f(be,Q){return{type:v.Trigger,name:be,definitions:Q,options:{}}}function A(be,Q=null){return{type:v.Animate,styles:Q,timings:be}}function M(be,Q=null){return{type:v.Group,steps:be,options:Q}}function T(be,Q=null){return{type:v.Sequence,steps:be,options:Q}}function E(be){return{type:v.Style,styles:be,offset:null}}function y(be,Q,ne){return{type:v.State,name:be,styles:Q,options:ne}}function S(be){return{type:v.Keyframes,steps:be}}function l(be,Q,ne=null){return{type:v.Transition,expr:be,animation:Q,options:ne}}function u(be=null){return{type:v.AnimateChild,options:be}}function I(be,Q,ne=null){return{type:v.Query,selector:be,animation:Q,options:ne}}let O=(()=>{var be;class Q{}return(be=Q).\u0275fac=function(Ge){return new(Ge||be)},be.\u0275prov=n.jDH({token:be,factory:()=>(0,n.WQX)(j),providedIn:"root"}),Q})();class Y{}let j=(()=>{var be;class Q extends O{constructor(Ge,ge){if(super(),this.animationModuleType=(0,n.WQX)(n.bc$,{optional:!0}),this._nextAnimationId=0,this._renderer=Ge.createRenderer(ge.body,{id:"0",encapsulation:n.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function Z(be){const Q=be.\u0275type;return 0===Q||1===Q}(this._renderer))throw new n.wOt(3600,!1)}build(Ge){const ge=this._nextAnimationId;this._nextAnimationId++;const Xe=Array.isArray(Ge)?T(Ge):Ge;return ce(this._renderer,null,ge,"register",[Xe]),new fe(ge,this._renderer)}}return(be=Q).\u0275fac=function(Ge){return new(Ge||be)(n.KVO(n._9s),n.KVO(r.qQ))},be.\u0275prov=n.jDH({token:be,factory:be.\u0275fac,providedIn:"root"}),Q})();class fe extends Y{constructor(Q,ne){super(),this._id=Q,this._renderer=ne}create(Q,ne){return new te(this._id,Q,ne||{},this._renderer)}}class te{constructor(Q,ne,Ge,ge){this.id=Q,this.element=ne,this._renderer=ge,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Ge)}_listen(Q,ne){return this._renderer.listen(this.element,`@@${this.id}:${Q}`,ne)}_command(Q,...ne){ce(this._renderer,this.element,this.id,Q,ne)}onDone(Q){this._listen("done",Q)}onStart(Q){this._listen("start",Q)}onDestroy(Q){this._listen("destroy",Q)}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(Q){this._command("setPosition",Q)}getPosition(){return function H(be){const Q=be.\u0275type;return 0===Q?be:1===Q?be.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function ce(be,Q,ne,Ge,ge){be.setProperty(Q,`@@${ne}:${Ge}`,ge)}class X{constructor(Q=0,ne=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=Q+ne}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Q=>Q()),this._onDoneFns=[])}onStart(Q){this._originalOnStartFns.push(Q),this._onStartFns.push(Q)}onDone(Q){this._originalOnDoneFns.push(Q),this._onDoneFns.push(Q)}onDestroy(Q){this._onDestroyFns.push(Q)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Q=>Q()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Q=>Q()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Q){this._position=this.totalTime?Q*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Q){const ne="start"==Q?this._onStartFns:this._onDoneFns;ne.forEach(Ge=>Ge()),ne.length=0}}class ue{constructor(Q){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Q;let ne=0,Ge=0,ge=0;const Xe=this.players.length;0==Xe?queueMicrotask(()=>this._onFinish()):this.players.forEach(ot=>{ot.onDone(()=>{++ne==Xe&&this._onFinish()}),ot.onDestroy(()=>{++Ge==Xe&&this._onDestroy()}),ot.onStart(()=>{++ge==Xe&&this._onStart()})}),this.totalTime=this.players.reduce((ot,dt)=>Math.max(ot,dt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Q=>Q()),this._onDoneFns=[])}init(){this.players.forEach(Q=>Q.init())}onStart(Q){this._onStartFns.push(Q)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Q=>Q()),this._onStartFns=[])}onDone(Q){this._onDoneFns.push(Q)}onDestroy(Q){this._onDestroyFns.push(Q)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Q=>Q.play())}pause(){this.players.forEach(Q=>Q.pause())}restart(){this.players.forEach(Q=>Q.restart())}finish(){this._onFinish(),this.players.forEach(Q=>Q.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Q=>Q.destroy()),this._onDestroyFns.forEach(Q=>Q()),this._onDestroyFns=[])}reset(){this.players.forEach(Q=>Q.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Q){const ne=Q*this.totalTime;this.players.forEach(Ge=>{const ge=Ge.totalTime?Math.min(1,ne/Ge.totalTime):1;Ge.setPosition(ge)})}getPosition(){const Q=this.players.reduce((ne,Ge)=>null===ne||Ge.totalTime>ne.totalTime?Ge:ne,null);return null!=Q?Q.getPosition():0}beforeDestroy(){this.players.forEach(Q=>{Q.beforeDestroy&&Q.beforeDestroy()})}triggerCallback(Q){const ne="start"==Q?this._onStartFns:this._onDoneFns;ne.forEach(Ge=>Ge()),ne.length=0}}const Me="!"},31308:(je,z,c)=>{"use strict";c.d(z,{Ae:()=>te,Ai:()=>mi,Au:()=>Ge,Bu:()=>ge,FN:()=>jn,GX:()=>at,Pd:()=>Ct,Q_:()=>it,Z7:()=>ot,_G:()=>Vt,px:()=>fe,vR:()=>It,vr:()=>Me,w6:()=>de});var r=c(61142),n=c(58527),v=c(72653),h=c(80583),f=c(10399),A=c(26513),M=c(43848),T=c(25373),E=c(91384),y=c(62931),S=c(8619),l=c(83915),s=c(65706),u=c(36666),m=c(53461),I=c(4208),R=c(6364),O=c(26321),Y=c(76706);const j=" ";function fe(Et,We,bt){const gt=ce(Et,We);gt.some(wt=>wt.trim()==bt.trim())||(gt.push(bt.trim()),Et.setAttribute(We,gt.join(j)))}function te(Et,We,bt){const wt=ce(Et,We).filter(rn=>rn!=bt.trim());wt.length?Et.setAttribute(We,wt.join(j)):Et.removeAttribute(We)}function ce(Et,We){return(Et.getAttribute(We)||"").match(/\S+/g)||[]}const Z="cdk-describedby-message",X="cdk-describedby-host";let ue=0,Me=(()=>{var Et;class We{constructor(gt,wt){this._platform=wt,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ue++,this._document=gt,this._id=(0,n.WQX)(n.sZ2)+"-"+ue++}describe(gt,wt,rn){if(!this._canBeDescribed(gt,wt))return;const In=be(wt,rn);"string"!=typeof wt?(Q(wt,this._id),this._messageRegistry.set(In,{messageElement:wt,referenceCount:0})):this._messageRegistry.has(In)||this._createMessageElement(wt,rn),this._isElementDescribedByMessage(gt,In)||this._addMessageReference(gt,In)}removeDescription(gt,wt,rn){if(!wt||!this._isElementNode(gt))return;const In=be(wt,rn);if(this._isElementDescribedByMessage(gt,In)&&this._removeMessageReference(gt,In),"string"==typeof wt){const Mi=this._messageRegistry.get(In);Mi&&0===Mi.referenceCount&&this._deleteMessageElement(In)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const gt=this._document.querySelectorAll(`[${X}="${this._id}"]`);for(let wt=0;wt<gt.length;wt++)this._removeCdkDescribedByReferenceIds(gt[wt]),gt[wt].removeAttribute(X);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(gt,wt){const rn=this._document.createElement("div");Q(rn,this._id),rn.textContent=gt,wt&&rn.setAttribute("role",wt),this._createMessagesContainer(),this._messagesContainer.appendChild(rn),this._messageRegistry.set(be(gt,wt),{messageElement:rn,referenceCount:0})}_deleteMessageElement(gt){this._messageRegistry.get(gt)?.messageElement?.remove(),this._messageRegistry.delete(gt)}_createMessagesContainer(){if(this._messagesContainer)return;const gt="cdk-describedby-message-container",wt=this._document.querySelectorAll(`.${gt}[platform="server"]`);for(let In=0;In<wt.length;In++)wt[In].remove();const rn=this._document.createElement("div");rn.style.visibility="hidden",rn.classList.add(gt),rn.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&rn.setAttribute("platform","server"),this._document.body.appendChild(rn),this._messagesContainer=rn}_removeCdkDescribedByReferenceIds(gt){const wt=ce(gt,"aria-describedby").filter(rn=>0!=rn.indexOf(Z));gt.setAttribute("aria-describedby",wt.join(" "))}_addMessageReference(gt,wt){const rn=this._messageRegistry.get(wt);fe(gt,"aria-describedby",rn.messageElement.id),gt.setAttribute(X,this._id),rn.referenceCount++}_removeMessageReference(gt,wt){const rn=this._messageRegistry.get(wt);rn.referenceCount--,te(gt,"aria-describedby",rn.messageElement.id),gt.removeAttribute(X)}_isElementDescribedByMessage(gt,wt){const rn=ce(gt,"aria-describedby"),In=this._messageRegistry.get(wt),Mi=In&&In.messageElement.id;return!!Mi&&-1!=rn.indexOf(Mi)}_canBeDescribed(gt,wt){if(!this._isElementNode(gt))return!1;if(wt&&"object"==typeof wt)return!0;const rn=null==wt?"":`${wt}`.trim(),In=gt.getAttribute("aria-label");return!(!rn||In&&In.trim()===rn)}_isElementNode(gt){return gt.nodeType===this._document.ELEMENT_NODE}}return(Et=We).\u0275fac=function(gt){return new(gt||Et)(n.KVO(r.qQ),n.KVO(v.OD))},Et.\u0275prov=n.jDH({token:Et,factory:Et.\u0275fac,providedIn:"root"}),We})();function be(Et,We){return"string"==typeof Et?`${We||""}/${Et}`:Et}function Q(Et,We){Et.id||(Et.id=`${Z}-${We}-${ue++}`)}class ne{constructor(We){this._items=We,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new h.B7,this._typeaheadSubscription=f.y.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=bt=>bt.disabled,this._pressedLetters=[],this.tabOut=new h.B7,this.change=new h.B7,We instanceof n.rOR&&(this._itemChangesSubscription=We.changes.subscribe(bt=>{if(this._activeItem){const wt=bt.toArray().indexOf(this._activeItem);wt>-1&&wt!==this._activeItemIndex&&(this._activeItemIndex=wt)}}))}skipPredicate(We){return this._skipPredicateFn=We,this}withWrap(We=!0){return this._wrap=We,this}withVerticalOrientation(We=!0){return this._vertical=We,this}withHorizontalOrientation(We){return this._horizontal=We,this}withAllowedModifierKeys(We){return this._allowedModifierKeys=We,this}withTypeAhead(We=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,E.M)(bt=>this._pressedLetters.push(bt)),(0,y.B)(We),(0,S.p)(()=>this._pressedLetters.length>0),(0,l.T)(()=>this._pressedLetters.join(""))).subscribe(bt=>{const gt=this._getItemsArray();for(let wt=1;wt<gt.length+1;wt++){const rn=(this._activeItemIndex+wt)%gt.length,In=gt[rn];if(!this._skipPredicateFn(In)&&0===In.getLabel().toUpperCase().trim().indexOf(bt)){this.setActiveItem(rn);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(We=!0){return this._homeAndEnd=We,this}withPageUpDown(We=!0,bt=10){return this._pageUpAndDown={enabled:We,delta:bt},this}setActiveItem(We){const bt=this._activeItem;this.updateActiveItem(We),this._activeItem!==bt&&this.change.next(this._activeItemIndex)}onKeydown(We){const bt=We.keyCode,wt=["altKey","ctrlKey","metaKey","shiftKey"].every(rn=>!We[rn]||this._allowedModifierKeys.indexOf(rn)>-1);switch(bt){case T.wn:return void this.tabOut.next();case T.n6:if(this._vertical&&wt){this.setNextItemActive();break}return;case T.i7:if(this._vertical&&wt){this.setPreviousItemActive();break}return;case T.LE:if(this._horizontal&&wt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case T.UQ:if(this._horizontal&&wt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case T.yZ:if(this._homeAndEnd&&wt){this.setFirstItemActive();break}return;case T.Kp:if(this._homeAndEnd&&wt){this.setLastItemActive();break}return;case T.w_:if(this._pageUpAndDown.enabled&&wt){const rn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(rn>0?rn:0,1);break}return;case T.dB:if(this._pageUpAndDown.enabled&&wt){const rn=this._activeItemIndex+this._pageUpAndDown.delta,In=this._getItemsArray().length;this._setActiveItemByIndex(rn<In?rn:In-1,-1);break}return;default:return void((wt||(0,T.rp)(We,"shiftKey"))&&(We.key&&1===We.key.length?this._letterKeyStream.next(We.key.toLocaleUpperCase()):(bt>=T.A&&bt<=T.Z||bt>=T.f2&&bt<=T.bn)&&this._letterKeyStream.next(String.fromCharCode(bt))))}this._pressedLetters=[],We.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(We){const bt=this._getItemsArray(),gt="number"==typeof We?We:bt.indexOf(We);this._activeItem=bt[gt]??null,this._activeItemIndex=gt}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(We){this._wrap?this._setActiveInWrapMode(We):this._setActiveInDefaultMode(We)}_setActiveInWrapMode(We){const bt=this._getItemsArray();for(let gt=1;gt<=bt.length;gt++){const wt=(this._activeItemIndex+We*gt+bt.length)%bt.length;if(!this._skipPredicateFn(bt[wt]))return void this.setActiveItem(wt)}}_setActiveInDefaultMode(We){this._setActiveItemByIndex(this._activeItemIndex+We,We)}_setActiveItemByIndex(We,bt){const gt=this._getItemsArray();if(gt[We]){for(;this._skipPredicateFn(gt[We]);)if(!gt[We+=bt])return;this.setActiveItem(We)}}_getItemsArray(){return this._items instanceof n.rOR?this._items.toArray():this._items}}class Ge extends ne{setActiveItem(We){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(We),this.activeItem&&this.activeItem.setActiveStyles()}}class ge extends ne{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(We){return this._origin=We,this}setActiveItem(We){super.setActiveItem(We),this.activeItem&&this.activeItem.focus(this._origin)}}let ot=(()=>{var Et;class We{constructor(gt){this._platform=gt}isDisabled(gt){return gt.hasAttribute("disabled")}isVisible(gt){return function xe(Et){return!!(Et.offsetWidth||Et.offsetHeight||"function"==typeof Et.getClientRects&&Et.getClientRects().length)}(gt)&&"visible"===getComputedStyle(gt).visibility}isTabbable(gt){if(!this._platform.isBrowser)return!1;const wt=function dt(Et){try{return Et.frameElement}catch{return null}}(function ye(Et){return Et.ownerDocument&&Et.ownerDocument.defaultView||window}(gt));if(wt&&(-1===oe(wt)||!this.isVisible(wt)))return!1;let rn=gt.nodeName.toLowerCase(),In=oe(gt);return gt.hasAttribute("contenteditable")?-1!==In:!("iframe"===rn||"object"===rn||this._platform.WEBKIT&&this._platform.IOS&&!function Le(Et){let We=Et.nodeName.toLowerCase(),bt="input"===We&&Et.type;return"text"===bt||"password"===bt||"select"===We||"textarea"===We}(gt))&&("audio"===rn?!!gt.hasAttribute("controls")&&-1!==In:"video"===rn?-1!==In&&(null!==In||this._platform.FIREFOX||gt.hasAttribute("controls")):gt.tabIndex>=0)}isFocusable(gt,wt){return function Oe(Et){return!function Ue(Et){return function W(Et){return"input"==Et.nodeName.toLowerCase()}(Et)&&"hidden"==Et.type}(Et)&&(function Re(Et){let We=Et.nodeName.toLowerCase();return"input"===We||"select"===We||"button"===We||"textarea"===We}(Et)||function ee(Et){return function Pe(Et){return"a"==Et.nodeName.toLowerCase()}(Et)&&Et.hasAttribute("href")}(Et)||Et.hasAttribute("contenteditable")||le(Et))}(gt)&&!this.isDisabled(gt)&&(wt?.ignoreVisibility||this.isVisible(gt))}}return(Et=We).\u0275fac=function(gt){return new(gt||Et)(n.KVO(v.OD))},Et.\u0275prov=n.jDH({token:Et,factory:Et.\u0275fac,providedIn:"root"}),We})();function le(Et){if(!Et.hasAttribute("tabindex")||void 0===Et.tabIndex)return!1;let We=Et.getAttribute("tabindex");return!(!We||isNaN(parseInt(We,10)))}function oe(Et){if(!le(Et))return null;const We=parseInt(Et.getAttribute("tabindex")||"",10);return isNaN(We)?-1:We}class Ie{get enabled(){return this._enabled}set enabled(We){this._enabled=We,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(We,this._startAnchor),this._toggleAnchorTabIndex(We,this._endAnchor))}constructor(We,bt,gt,wt,rn=!1){this._element=We,this._checker=bt,this._ngZone=gt,this._document=wt,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,rn||this.attachAnchors()}destroy(){const We=this._startAnchor,bt=this._endAnchor;We&&(We.removeEventListener("focus",this.startAnchorListener),We.remove()),bt&&(bt.removeEventListener("focus",this.endAnchorListener),bt.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(We){return new Promise(bt=>{this._executeOnStable(()=>bt(this.focusInitialElement(We)))})}focusFirstTabbableElementWhenReady(We){return new Promise(bt=>{this._executeOnStable(()=>bt(this.focusFirstTabbableElement(We)))})}focusLastTabbableElementWhenReady(We){return new Promise(bt=>{this._executeOnStable(()=>bt(this.focusLastTabbableElement(We)))})}_getRegionBoundary(We){const bt=this._element.querySelectorAll(`[cdk-focus-region-${We}], [cdkFocusRegion${We}], [cdk-focus-${We}]`);return"start"==We?bt.length?bt[0]:this._getFirstTabbableElement(this._element):bt.length?bt[bt.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(We){const bt=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(bt){if(!this._checker.isFocusable(bt)){const gt=this._getFirstTabbableElement(bt);return gt?.focus(We),!!gt}return bt.focus(We),!0}return this.focusFirstTabbableElement(We)}focusFirstTabbableElement(We){const bt=this._getRegionBoundary("start");return bt&&bt.focus(We),!!bt}focusLastTabbableElement(We){const bt=this._getRegionBoundary("end");return bt&&bt.focus(We),!!bt}hasAttached(){return this._hasAttached}_getFirstTabbableElement(We){if(this._checker.isFocusable(We)&&this._checker.isTabbable(We))return We;const bt=We.children;for(let gt=0;gt<bt.length;gt++){const wt=bt[gt].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(bt[gt]):null;if(wt)return wt}return null}_getLastTabbableElement(We){if(this._checker.isFocusable(We)&&this._checker.isTabbable(We))return We;const bt=We.children;for(let gt=bt.length-1;gt>=0;gt--){const wt=bt[gt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(bt[gt]):null;if(wt)return wt}return null}_createAnchor(){const We=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,We),We.classList.add("cdk-visually-hidden"),We.classList.add("cdk-focus-trap-anchor"),We.setAttribute("aria-hidden","true"),We}_toggleAnchorTabIndex(We,bt){We?bt.setAttribute("tabindex","0"):bt.removeAttribute("tabindex")}toggleAnchors(We){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(We,this._startAnchor),this._toggleAnchorTabIndex(We,this._endAnchor))}_executeOnStable(We){this._ngZone.isStable?We():this._ngZone.onStable.pipe((0,s.s)(1)).subscribe(We)}}let at=(()=>{var Et;class We{constructor(gt,wt,rn){this._checker=gt,this._ngZone=wt,this._document=rn}create(gt,wt=!1){return new Ie(gt,this._checker,this._ngZone,this._document,wt)}}return(Et=We).\u0275fac=function(gt){return new(gt||Et)(n.KVO(ot),n.KVO(n.SKi),n.KVO(r.qQ))},Et.\u0275prov=n.jDH({token:Et,factory:Et.\u0275fac,providedIn:"root"}),We})();function Vt(Et){return 0===Et.buttons||0===Et.detail}function de(Et){const We=Et.touches&&Et.touches[0]||Et.changedTouches&&Et.changedTouches[0];return!(!We||-1!==We.identifier||null!=We.radiusX&&1!==We.radiusX||null!=We.radiusY&&1!==We.radiusY)}const J=new n.nKC("cdk-input-modality-detector-options"),$e={ignoreKeys:[T.A$,T.W3,T.eg,T.Ge,T.FX]},Gt=(0,v.BQ)({passive:!0,capture:!0});let Zt=(()=>{var Et;class We{get mostRecentModality(){return this._modality.value}constructor(gt,wt,rn,In){this._platform=gt,this._mostRecentTarget=null,this._modality=new A.t(null),this._lastTouchMs=0,this._onKeydown=Mi=>{this._options?.ignoreKeys?.some(En=>En===Mi.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,v.Fb)(Mi))},this._onMousedown=Mi=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Vt(Mi)?"keyboard":"mouse"),this._mostRecentTarget=(0,v.Fb)(Mi))},this._onTouchstart=Mi=>{de(Mi)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,v.Fb)(Mi))},this._options={...$e,...In},this.modalityDetected=this._modality.pipe((0,u.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,m.F)()),gt.isBrowser&&wt.runOutsideAngular(()=>{rn.addEventListener("keydown",this._onKeydown,Gt),rn.addEventListener("mousedown",this._onMousedown,Gt),rn.addEventListener("touchstart",this._onTouchstart,Gt)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Gt),document.removeEventListener("mousedown",this._onMousedown,Gt),document.removeEventListener("touchstart",this._onTouchstart,Gt))}}return(Et=We).\u0275fac=function(gt){return new(gt||Et)(n.KVO(v.OD),n.KVO(n.SKi),n.KVO(r.qQ),n.KVO(J,8))},Et.\u0275prov=n.jDH({token:Et,factory:Et.\u0275fac,providedIn:"root"}),We})();const kn=new n.nKC("liveAnnouncerElement",{providedIn:"root",factory:function Un(){return null}}),ni=new n.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let qe=0,mi=(()=>{var Et;class We{constructor(gt,wt,rn,In){this._ngZone=wt,this._defaultOptions=In,this._document=rn,this._liveElement=gt||this._createLiveElement()}announce(gt,...wt){const rn=this._defaultOptions;let In,Mi;return 1===wt.length&&"number"==typeof wt[0]?Mi=wt[0]:[In,Mi]=wt,this.clear(),clearTimeout(this._previousTimeout),In||(In=rn&&rn.politeness?rn.politeness:"polite"),null==Mi&&rn&&(Mi=rn.duration),this._liveElement.setAttribute("aria-live",In),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(En=>this._currentResolve=En)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=gt,"number"==typeof Mi&&(this._previousTimeout=setTimeout(()=>this.clear(),Mi)),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 gt="cdk-live-announcer-element",wt=this._document.getElementsByClassName(gt),rn=this._document.createElement("div");for(let In=0;In<wt.length;In++)wt[In].remove();return rn.classList.add(gt),rn.classList.add("cdk-visually-hidden"),rn.setAttribute("aria-atomic","true"),rn.setAttribute("aria-live","polite"),rn.id="cdk-live-announcer-"+qe++,this._document.body.appendChild(rn),rn}_exposeAnnouncerToModals(gt){const wt=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let rn=0;rn<wt.length;rn++){const In=wt[rn],Mi=In.getAttribute("aria-owns");Mi?-1===Mi.indexOf(gt)&&In.setAttribute("aria-owns",Mi+" "+gt):In.setAttribute("aria-owns",gt)}}}return(Et=We).\u0275fac=function(gt){return new(gt||Et)(n.KVO(kn,8),n.KVO(n.SKi),n.KVO(r.qQ),n.KVO(ni,8))},Et.\u0275prov=n.jDH({token:Et,factory:Et.\u0275fac,providedIn:"root"}),We})();const _i=new n.nKC("cdk-focus-monitor-default-options"),Bn=(0,v.BQ)({passive:!0,capture:!0});let jn=(()=>{var Et;class We{constructor(gt,wt,rn,In,Mi){this._ngZone=gt,this._platform=wt,this._inputModalityDetector=rn,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 h.B7,this._rootNodeFocusAndBlurListener=En=>{for(let Cn=(0,v.Fb)(En);Cn;Cn=Cn.parentElement)"focus"===En.type?this._onFocus(En,Cn):this._onBlur(En,Cn)},this._document=In,this._detectionMode=Mi?.detectionMode||0}monitor(gt,wt=!1){const rn=(0,R.i8)(gt);if(!this._platform.isBrowser||1!==rn.nodeType)return(0,M.of)();const In=(0,v.KT)(rn)||this._getDocument(),Mi=this._elementInfo.get(rn);if(Mi)return wt&&(Mi.checkChildren=!0),Mi.subject;const En={checkChildren:wt,subject:new h.B7,rootNode:In};return this._elementInfo.set(rn,En),this._registerGlobalListeners(En),En.subject}stopMonitoring(gt){const wt=(0,R.i8)(gt),rn=this._elementInfo.get(wt);rn&&(rn.subject.complete(),this._setClasses(wt),this._elementInfo.delete(wt),this._removeGlobalListeners(rn))}focusVia(gt,wt,rn){const In=(0,R.i8)(gt);In===this._getDocument().activeElement?this._getClosestElementsInfo(In).forEach(([En,Tn])=>this._originChanged(En,wt,Tn)):(this._setOrigin(wt),"function"==typeof In.focus&&In.focus(rn))}ngOnDestroy(){this._elementInfo.forEach((gt,wt)=>this.stopMonitoring(wt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(gt){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(gt)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:gt&&this._isLastInteractionFromInputLabel(gt)?"mouse":"program"}_shouldBeAttributedToTouch(gt){return 1===this._detectionMode||!!gt?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(gt,wt){gt.classList.toggle("cdk-focused",!!wt),gt.classList.toggle("cdk-touch-focused","touch"===wt),gt.classList.toggle("cdk-keyboard-focused","keyboard"===wt),gt.classList.toggle("cdk-mouse-focused","mouse"===wt),gt.classList.toggle("cdk-program-focused","program"===wt)}_setOrigin(gt,wt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=gt,this._originFromTouchInteraction="touch"===gt&&wt,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(gt,wt){const rn=this._elementInfo.get(wt),In=(0,v.Fb)(gt);!rn||!rn.checkChildren&&wt!==In||this._originChanged(wt,this._getFocusOrigin(In),rn)}_onBlur(gt,wt){const rn=this._elementInfo.get(wt);!rn||rn.checkChildren&&gt.relatedTarget instanceof Node&&wt.contains(gt.relatedTarget)||(this._setClasses(wt),this._emitOrigin(rn,null))}_emitOrigin(gt,wt){gt.subject.observers.length&&this._ngZone.run(()=>gt.subject.next(wt))}_registerGlobalListeners(gt){if(!this._platform.isBrowser)return;const wt=gt.rootNode,rn=this._rootNodeFocusListenerCount.get(wt)||0;rn||this._ngZone.runOutsideAngular(()=>{wt.addEventListener("focus",this._rootNodeFocusAndBlurListener,Bn),wt.addEventListener("blur",this._rootNodeFocusAndBlurListener,Bn)}),this._rootNodeFocusListenerCount.set(wt,rn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,I.Q)(this._stopInputModalityDetector)).subscribe(In=>{this._setOrigin(In,!0)}))}_removeGlobalListeners(gt){const wt=gt.rootNode;if(this._rootNodeFocusListenerCount.has(wt)){const rn=this._rootNodeFocusListenerCount.get(wt);rn>1?this._rootNodeFocusListenerCount.set(wt,rn-1):(wt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Bn),wt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Bn),this._rootNodeFocusListenerCount.delete(wt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(gt,wt,rn){this._setClasses(gt,wt),this._emitOrigin(rn,wt),this._lastFocusOrigin=wt}_getClosestElementsInfo(gt){const wt=[];return this._elementInfo.forEach((rn,In)=>{(In===gt||rn.checkChildren&&In.contains(gt))&&wt.push([In,rn])}),wt}_isLastInteractionFromInputLabel(gt){const{_mostRecentTarget:wt,mostRecentModality:rn}=this._inputModalityDetector;if("mouse"!==rn||!wt||wt===gt||"INPUT"!==gt.nodeName&&"TEXTAREA"!==gt.nodeName||gt.disabled)return!1;const In=gt.labels;if(In)for(let Mi=0;Mi<In.length;Mi++)if(In[Mi].contains(wt))return!0;return!1}}return(Et=We).\u0275fac=function(gt){return new(gt||Et)(n.KVO(n.SKi),n.KVO(v.OD),n.KVO(Zt),n.KVO(r.qQ,8),n.KVO(_i,8))},Et.\u0275prov=n.jDH({token:Et,factory:Et.\u0275fac,providedIn:"root"}),We})(),It=(()=>{var Et;class We{constructor(gt,wt){this._elementRef=gt,this._focusMonitor=wt,this._focusOrigin=null,this.cdkFocusChange=new n.bkB}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const gt=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(gt,1===gt.nodeType&&gt.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(wt=>{this._focusOrigin=wt,this.cdkFocusChange.emit(wt)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return(Et=We).\u0275fac=function(gt){return new(gt||Et)(n.rXU(n.aKT),n.rXU(jn))},Et.\u0275dir=n.FsC({type:Et,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),We})();const vn="cdk-high-contrast-black-on-white",Vn="cdk-high-contrast-white-on-black",ht="cdk-high-contrast-active";let it=(()=>{var Et;class We{constructor(gt,wt){this._platform=gt,this._document=wt,this._breakpointSubscription=(0,n.WQX)(Y.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const gt=this._document.createElement("div");gt.style.backgroundColor="rgb(1,2,3)",gt.style.position="absolute",this._document.body.appendChild(gt);const wt=this._document.defaultView||window,rn=wt&&wt.getComputedStyle?wt.getComputedStyle(gt):null,In=(rn&&rn.backgroundColor||"").replace(/ /g,"");switch(gt.remove(),In){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 gt=this._document.body.classList;gt.remove(ht,vn,Vn),this._hasCheckedHighContrastMode=!0;const wt=this.getHighContrastMode();1===wt?gt.add(ht,vn):2===wt&&gt.add(ht,Vn)}}}return(Et=We).\u0275fac=function(gt){return new(gt||Et)(n.KVO(v.OD),n.KVO(r.qQ))},Et.\u0275prov=n.jDH({token:Et,factory:Et.\u0275fac,providedIn:"root"}),We})(),Ct=(()=>{var Et;class We{constructor(gt){gt._applyBodyHighContrastModeCssClasses()}}return(Et=We).\u0275fac=function(gt){return new(gt||Et)(n.KVO(it))},Et.\u0275mod=n.$C({type:Et}),Et.\u0275inj=n.G2t({imports:[O.w5]}),We})()},51394:(je,z,c)=>{"use strict";c.d(z,{dS:()=>M,ig:()=>T,jI:()=>E});var r=c(58527),n=c(61142);const v=new r.nKC("cdk-dir-doc",{providedIn:"root",factory:function h(){return(0,r.WQX)(n.qQ)}}),f=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function A(y){const S=y?.toLowerCase()||"";return"auto"===S&&typeof navigator<"u"&&navigator?.language?f.test(navigator.language)?"rtl":"ltr":"rtl"===S?"rtl":"ltr"}let M=(()=>{var y;class S{constructor(s){this.value="ltr",this.change=new r.bkB,s&&(this.value=A((s.body?s.body.dir:null)||(s.documentElement?s.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(y=S).\u0275fac=function(s){return new(s||y)(r.KVO(v,8))},y.\u0275prov=r.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),S})(),T=(()=>{var y;class S{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new r.bkB}get dir(){return this._dir}set dir(s){const u=this._dir;this._dir=A(s),this._rawDir=s,u!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return(y=S).\u0275fac=function(s){return new(s||y)},y.\u0275dir=r.FsC({type:y,selectors:[["","dir",""]],hostVars:1,hostBindings:function(s,u){2&s&&r.BMQ("dir",u._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[r.Jv_([{provide:M,useExisting:y}])]}),S})(),E=(()=>{var y;class S{}return(y=S).\u0275fac=function(s){return new(s||y)},y.\u0275mod=r.$C({type:y}),y.\u0275inj=r.G2t({}),S})()},6364:(je,z,c)=>{"use strict";c.d(z,{FG:()=>f,OE:()=>v,a1:()=>A,he:()=>n,i8:()=>M});var r=c(58527);function n(E){return null!=E&&"false"!=`${E}`}function v(E,y=0){return function h(E){return!isNaN(parseFloat(E))&&!isNaN(Number(E))}(E)?Number(E):y}function f(E){return Array.isArray(E)?E:[E]}function A(E){return null==E?"":"string"==typeof E?E:`${E}px`}function M(E){return E instanceof r.aKT?E.nativeElement:E}},40567:(je,z,c)=>{"use strict";c.d(z,{CB:()=>S,DQ:()=>y,hx:()=>T,sL:()=>u,y4:()=>M,zP:()=>s});var r=c(96090),n=c(39595),v=c(43848),h=c(80583),f=c(58527);class A{}function M(m){return m&&"function"==typeof m.connect&&!(m instanceof r.G)}class T extends A{constructor(I){super(),this._data=I}connect(){return(0,n.A)(this._data)?this._data:(0,v.of)(this._data)}disconnect(){}}class y{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(I,R,O,Y,j){I.forEachOperation((fe,te,ce)=>{let H,Z;null==fe.previousIndex?(H=this._insertView(()=>O(fe,te,ce),ce,R,Y(fe)),Z=H?1:0):null==ce?(this._detachAndCacheView(te,R),Z=3):(H=this._moveView(te,ce,R,Y(fe)),Z=2),j&&j({context:H?.context,operation:Z,record:fe})})}detach(){for(const I of this._viewCache)I.destroy();this._viewCache=[]}_insertView(I,R,O,Y){const j=this._insertViewFromCache(R,O);if(j)return void(j.context.$implicit=Y);const fe=I();return O.createEmbeddedView(fe.templateRef,fe.context,fe.index)}_detachAndCacheView(I,R){const O=R.detach(I);this._maybeCacheView(O,R)}_moveView(I,R,O,Y){const j=O.get(I);return O.move(j,R),j.context.$implicit=Y,j}_maybeCacheView(I,R){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(I);else{const O=R.indexOf(I);-1===O?I.destroy():R.remove(O)}}_insertViewFromCache(I,R){const O=this._viewCache.pop();return O&&R.insert(O,I),O||null}}class S{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(I=!1,R,O=!0,Y){this._multiple=I,this._emitChanges=O,this.compareWith=Y,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new h.B7,R&&R.length&&(I?R.forEach(j=>this._markSelected(j)):this._markSelected(R[0]),this._selectedToEmit.length=0)}select(...I){this._verifyValueAssignment(I),I.forEach(O=>this._markSelected(O));const R=this._hasQueuedChanges();return this._emitChangeEvent(),R}deselect(...I){this._verifyValueAssignment(I),I.forEach(O=>this._unmarkSelected(O));const R=this._hasQueuedChanges();return this._emitChangeEvent(),R}setSelection(...I){this._verifyValueAssignment(I);const R=this.selected,O=new Set(I);I.forEach(j=>this._markSelected(j)),R.filter(j=>!O.has(j)).forEach(j=>this._unmarkSelected(j));const Y=this._hasQueuedChanges();return this._emitChangeEvent(),Y}toggle(I){return this.isSelected(I)?this.deselect(I):this.select(I)}clear(I=!0){this._unmarkAll();const R=this._hasQueuedChanges();return I&&this._emitChangeEvent(),R}isSelected(I){return this._selection.has(this._getConcreteValue(I))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(I){this._multiple&&this.selected&&this._selected.sort(I)}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(I){I=this._getConcreteValue(I),this.isSelected(I)||(this._multiple||this._unmarkAll(),this.isSelected(I)||this._selection.add(I),this._emitChanges&&this._selectedToEmit.push(I))}_unmarkSelected(I){I=this._getConcreteValue(I),this.isSelected(I)&&(this._selection.delete(I),this._emitChanges&&this._deselectedToEmit.push(I))}_unmarkAll(){this.isEmpty()||this._selection.forEach(I=>this._unmarkSelected(I))}_verifyValueAssignment(I){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(I){if(this.compareWith){for(let R of this._selection)if(this.compareWith(I,R))return R;return I}return I}}let s=(()=>{var m;class I{constructor(){this._listeners=[]}notify(O,Y){for(let j of this._listeners)j(O,Y)}listen(O){return this._listeners.push(O),()=>{this._listeners=this._listeners.filter(Y=>O!==Y)}}ngOnDestroy(){this._listeners=[]}}return(m=I).\u0275fac=function(O){return new(O||m)},m.\u0275prov=f.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),I})();const u=new f.nKC("_ViewRepeater")},78064:(je,z,c)=>{"use strict";c.d(z,{Pe:()=>u,Ph:()=>X,lG:()=>H,sU:()=>I});var r=c(31308),n=c(61904),v=c(72653),h=c(76614),f=c(61142),A=c(58527),M=c(25373),T=c(80583),E=c(63997),y=c(43848),S=c(51394),l=c(34593);function s(ue,Me){}class u{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 I=(()=>{var ue;class Me extends h.lb{constructor(Q,ne,Ge,ge,Xe,ot,dt,xe){super(),this._elementRef=Q,this._focusTrapFactory=ne,this._config=ge,this._interactivityChecker=Xe,this._ngZone=ot,this._overlayRef=dt,this._focusMonitor=xe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=Re=>{this._portalOutlet.hasAttached();const Ue=this._portalOutlet.attachDomPortal(Re);return this._contentAttached(),Ue},this._document=Ge,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(Q){this._portalOutlet.hasAttached();const ne=this._portalOutlet.attachComponentPortal(Q);return this._contentAttached(),ne}attachTemplatePortal(Q){this._portalOutlet.hasAttached();const ne=this._portalOutlet.attachTemplatePortal(Q);return this._contentAttached(),ne}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Q,ne){this._interactivityChecker.isFocusable(Q)||(Q.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ge=()=>{Q.removeEventListener("blur",Ge),Q.removeEventListener("mousedown",Ge),Q.removeAttribute("tabindex")};Q.addEventListener("blur",Ge),Q.addEventListener("mousedown",Ge)})),Q.focus(ne)}_focusByCssSelector(Q,ne){let Ge=this._elementRef.nativeElement.querySelector(Q);Ge&&this._forceFocus(Ge,ne)}_trapFocus(){const Q=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||Q.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(ne=>{ne||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 Q=this._config.restoreFocus;let ne=null;if("string"==typeof Q?ne=this._document.querySelector(Q):"boolean"==typeof Q?ne=Q?this._elementFocusedBeforeDialogWasOpened:null:Q&&(ne=Q),this._config.restoreFocus&&ne&&"function"==typeof ne.focus){const Ge=(0,v.vc)(),ge=this._elementRef.nativeElement;(!Ge||Ge===this._document.body||Ge===ge||ge.contains(Ge))&&(this._focusMonitor?(this._focusMonitor.focusVia(ne,this._closeInteractionType),this._closeInteractionType=null):ne.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const Q=this._elementRef.nativeElement,ne=(0,v.vc)();return Q===ne||Q.contains(ne)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,v.vc)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return(ue=Me).\u0275fac=function(Q){return new(Q||ue)(A.rXU(A.aKT),A.rXU(r.GX),A.rXU(f.qQ,8),A.rXU(u),A.rXU(r.Z7),A.rXU(A.SKi),A.rXU(n.yY),A.rXU(r.FN))},ue.\u0275cmp=A.VBU({type:ue,selectors:[["cdk-dialog-container"]],viewQuery:function(Q,ne){if(1&Q&&A.GBs(h.I3,7),2&Q){let Ge;A.mGM(Ge=A.lsd())&&(ne._portalOutlet=Ge.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(Q,ne){2&Q&&A.BMQ("id",ne._config.id||null)("role",ne._config.role)("aria-modal",ne._config.ariaModal)("aria-labelledby",ne._config.ariaLabel?null:ne._ariaLabelledByQueue[0])("aria-label",ne._config.ariaLabel)("aria-describedby",ne._config.ariaDescribedBy||null)},features:[A.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Q,ne){1&Q&&A.DNE(0,s,0,0,"ng-template",0)},dependencies:[h.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),Me})();class R{constructor(Me,be){this.overlayRef=Me,this.config=be,this.closed=new T.B7,this.disableClose=be.disableClose,this.backdropClick=Me.backdropClick(),this.keydownEvents=Me.keydownEvents(),this.outsidePointerEvents=Me.outsidePointerEvents(),this.id=be.id,this.keydownEvents.subscribe(Q=>{Q.keyCode===M._f&&!this.disableClose&&!(0,M.rp)(Q)&&(Q.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=Me.detachments().subscribe(()=>{!1!==be.closeOnOverlayDetachments&&this.close()})}close(Me,be){if(this.containerInstance){const Q=this.closed;this.containerInstance._closeInteractionType=be?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),Q.next(Me),Q.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Me="",be=""){return this.overlayRef.updateSize({width:Me,height:be}),this}addPanelClass(Me){return this.overlayRef.addPanelClass(Me),this}removePanelClass(Me){return this.overlayRef.removePanelClass(Me),this}}const O=new A.nKC("DialogScrollStrategy"),Y=new A.nKC("DialogData"),j=new A.nKC("DefaultDialogConfig"),te={provide:O,deps:[n.hJ],useFactory:function fe(ue){return()=>ue.scrollStrategies.block()}};let ce=0,H=(()=>{var ue;class Me{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(Q,ne,Ge,ge,Xe,ot){this._overlay=Q,this._injector=ne,this._defaultOptions=Ge,this._parentDialog=ge,this._overlayContainer=Xe,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new T.B7,this._afterOpenedAtThisLevel=new T.B7,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,E.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,l.Z)(void 0))),this._scrollStrategy=ot}open(Q,ne){(ne={...this._defaultOptions||new u,...ne}).id=ne.id||"cdk-dialog-"+ce++,ne.id&&this.getDialogById(ne.id);const ge=this._getOverlayConfig(ne),Xe=this._overlay.create(ge),ot=new R(Xe,ne),dt=this._attachContainer(Xe,ot,ne);return ot.containerInstance=dt,this._attachDialogContent(Q,ot,dt,ne),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(ot),ot.closed.subscribe(()=>this._removeOpenDialog(ot,!0)),this.afterOpened.next(ot),ot}closeAll(){Z(this.openDialogs,Q=>Q.close())}getDialogById(Q){return this.openDialogs.find(ne=>ne.id===Q)}ngOnDestroy(){Z(this._openDialogsAtThisLevel,Q=>{!1===Q.config.closeOnDestroy&&this._removeOpenDialog(Q,!1)}),Z(this._openDialogsAtThisLevel,Q=>Q.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(Q){const ne=new n.rR({positionStrategy:Q.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:Q.scrollStrategy||this._scrollStrategy(),panelClass:Q.panelClass,hasBackdrop:Q.hasBackdrop,direction:Q.direction,minWidth:Q.minWidth,minHeight:Q.minHeight,maxWidth:Q.maxWidth,maxHeight:Q.maxHeight,width:Q.width,height:Q.height,disposeOnNavigation:Q.closeOnNavigation});return Q.backdropClass&&(ne.backdropClass=Q.backdropClass),ne}_attachContainer(Q,ne,Ge){const ge=Ge.injector||Ge.viewContainerRef?.injector,Xe=[{provide:u,useValue:Ge},{provide:R,useValue:ne},{provide:n.yY,useValue:Q}];let ot;Ge.container?"function"==typeof Ge.container?ot=Ge.container:(ot=Ge.container.type,Xe.push(...Ge.container.providers(Ge))):ot=I;const dt=new h.A8(ot,Ge.viewContainerRef,A.zZn.create({parent:ge||this._injector,providers:Xe}),Ge.componentFactoryResolver);return Q.attach(dt).instance}_attachDialogContent(Q,ne,Ge,ge){if(Q instanceof A.C4Q){const Xe=this._createInjector(ge,ne,Ge,void 0);let ot={$implicit:ge.data,dialogRef:ne};ge.templateContext&&(ot={...ot,..."function"==typeof ge.templateContext?ge.templateContext():ge.templateContext}),Ge.attachTemplatePortal(new h.VA(Q,null,ot,Xe))}else{const Xe=this._createInjector(ge,ne,Ge,this._injector),ot=Ge.attachComponentPortal(new h.A8(Q,ge.viewContainerRef,Xe,ge.componentFactoryResolver));ne.componentRef=ot,ne.componentInstance=ot.instance}}_createInjector(Q,ne,Ge,ge){const Xe=Q.injector||Q.viewContainerRef?.injector,ot=[{provide:Y,useValue:Q.data},{provide:R,useValue:ne}];return Q.providers&&("function"==typeof Q.providers?ot.push(...Q.providers(ne,Q,Ge)):ot.push(...Q.providers)),Q.direction&&(!Xe||!Xe.get(S.dS,null,{optional:!0}))&&ot.push({provide:S.dS,useValue:{value:Q.direction,change:(0,y.of)()}}),A.zZn.create({parent:Xe||ge,providers:ot})}_removeOpenDialog(Q,ne){const Ge=this.openDialogs.indexOf(Q);Ge>-1&&(this.openDialogs.splice(Ge,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ge,Xe)=>{ge?Xe.setAttribute("aria-hidden",ge):Xe.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),ne&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const Q=this._overlayContainer.getContainerElement();if(Q.parentElement){const ne=Q.parentElement.children;for(let Ge=ne.length-1;Ge>-1;Ge--){const ge=ne[Ge];ge!==Q&&"SCRIPT"!==ge.nodeName&&"STYLE"!==ge.nodeName&&!ge.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(ge,ge.getAttribute("aria-hidden")),ge.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const Q=this._parentDialog;return Q?Q._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return(ue=Me).\u0275fac=function(Q){return new(Q||ue)(A.KVO(n.hJ),A.KVO(A.zZn),A.KVO(j,8),A.KVO(ue,12),A.KVO(n.Sf),A.KVO(O))},ue.\u0275prov=A.jDH({token:ue,factory:ue.\u0275fac}),Me})();function Z(ue,Me){let be=ue.length;for(;be--;)Me(ue[be])}let X=(()=>{var ue;class Me{}return(ue=Me).\u0275fac=function(Q){return new(Q||ue)},ue.\u0275mod=A.$C({type:ue}),ue.\u0275inj=A.G2t({providers:[H,te],imports:[n.z_,h.jc,r.Pd,h.jc]}),Me})()},25373:(je,z,c)=>{"use strict";c.d(z,{A:()=>Ue,A$:()=>T,FX:()=>A,Fm:()=>f,G_:()=>n,Ge:()=>ni,Kp:()=>m,LE:()=>Y,SJ:()=>H,UQ:()=>R,W3:()=>M,Z:()=>Un,_f:()=>S,bn:()=>Xe,dB:()=>u,eg:()=>ro,f2:()=>Z,i7:()=>O,n6:()=>j,rp:()=>Oo,t6:()=>l,w_:()=>s,wn:()=>v,yZ:()=>I});const n=8,v=9,f=13,A=16,M=17,T=18,S=27,l=32,s=33,u=34,m=35,I=36,R=37,O=38,Y=39,j=40,H=46,Z=48,Xe=57,Ue=65,Un=90,ni=91,ro=224;function Oo(Hr,...Ao){return Ao.length?Ao.some(Co=>Hr[Co]):Hr.altKey||Hr.shiftKey||Hr.ctrlKey||Hr.metaKey}},76706:(je,z,c)=>{"use strict";c.d(z,{QP:()=>j,Rp:()=>te});var r=c(58527),n=c(6364),v=c(80583),h=c(31315),f=c(82e3),A=c(17053),M=c(65706),T=c(36666),E=c(62931),y=c(83915),S=c(34593),l=c(4208),s=c(72653);const m=new Set;let I,R=(()=>{var ce;class H{constructor(X,ue){this._platform=X,this._nonce=ue,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Y}matchMedia(X){return(this._platform.WEBKIT||this._platform.BLINK)&&function O(ce,H){if(!m.has(ce))try{I||(I=document.createElement("style"),H&&(I.nonce=H),I.setAttribute("type","text/css"),document.head.appendChild(I)),I.sheet&&(I.sheet.insertRule(`@media ${ce} {body{ }}`,0),m.add(ce))}catch(Z){console.error(Z)}}(X,this._nonce),this._matchMedia(X)}}return(ce=H).\u0275fac=function(X){return new(X||ce)(r.KVO(s.OD),r.KVO(r.BIS,8))},ce.\u0275prov=r.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"}),H})();function Y(ce){return{matches:"all"===ce||""===ce,media:ce,addListener:()=>{},removeListener:()=>{}}}let j=(()=>{var ce;class H{constructor(X,ue){this._mediaMatcher=X,this._zone=ue,this._queries=new Map,this._destroySubject=new v.B7}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(X){return fe((0,n.FG)(X)).some(Me=>this._registerQuery(Me).mql.matches)}observe(X){const Me=fe((0,n.FG)(X)).map(Q=>this._registerQuery(Q).observable);let be=(0,h.zV)(Me);return be=(0,f.x)(be.pipe((0,M.s)(1)),be.pipe((0,T.i)(1),(0,E.B)(0))),be.pipe((0,y.T)(Q=>{const ne={matches:!1,breakpoints:{}};return Q.forEach(({matches:Ge,query:ge})=>{ne.matches=ne.matches||Ge,ne.breakpoints[ge]=Ge}),ne}))}_registerQuery(X){if(this._queries.has(X))return this._queries.get(X);const ue=this._mediaMatcher.matchMedia(X),be={observable:new A.c(Q=>{const ne=Ge=>this._zone.run(()=>Q.next(Ge));return ue.addListener(ne),()=>{ue.removeListener(ne)}}).pipe((0,S.Z)(ue),(0,y.T)(({matches:Q})=>({query:X,matches:Q})),(0,l.Q)(this._destroySubject)),mql:ue};return this._queries.set(X,be),be}}return(ce=H).\u0275fac=function(X){return new(X||ce)(r.KVO(R),r.KVO(r.SKi))},ce.\u0275prov=r.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"}),H})();function fe(ce){return ce.map(H=>H.split(",")).reduce((H,Z)=>H.concat(Z)).map(H=>H.trim())}const te={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:(je,z,c)=>{"use strict";c.d(z,{Wv:()=>T,w5:()=>E});var r=c(6364),n=c(58527),v=c(17053),h=c(80583),f=c(62931);let A=(()=>{var y;class S{create(s){return typeof MutationObserver>"u"?null:new MutationObserver(s)}}return(y=S).\u0275fac=function(s){return new(s||y)},y.\u0275prov=n.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),S})(),M=(()=>{var y;class S{constructor(s){this._mutationObserverFactory=s,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((s,u)=>this._cleanupObserver(u))}observe(s){const u=(0,r.i8)(s);return new v.c(m=>{const R=this._observeElement(u).subscribe(m);return()=>{R.unsubscribe(),this._unobserveElement(u)}})}_observeElement(s){if(this._observedElements.has(s))this._observedElements.get(s).count++;else{const u=new h.B7,m=this._mutationObserverFactory.create(I=>u.next(I));m&&m.observe(s,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(s,{observer:m,stream:u,count:1})}return this._observedElements.get(s).stream}_unobserveElement(s){this._observedElements.has(s)&&(this._observedElements.get(s).count--,this._observedElements.get(s).count||this._cleanupObserver(s))}_cleanupObserver(s){if(this._observedElements.has(s)){const{observer:u,stream:m}=this._observedElements.get(s);u&&u.disconnect(),m.complete(),this._observedElements.delete(s)}}}return(y=S).\u0275fac=function(s){return new(s||y)(n.KVO(A))},y.\u0275prov=n.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),S})(),T=(()=>{var y;class S{get disabled(){return this._disabled}set disabled(s){this._disabled=(0,r.he)(s),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(s){this._debounce=(0,r.OE)(s),this._subscribe()}constructor(s,u,m){this._contentObserver=s,this._elementRef=u,this._ngZone=m,this.event=new n.bkB,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const s=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?s.pipe((0,f.B)(this.debounce)):s).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return(y=S).\u0275fac=function(s){return new(s||y)(n.rXU(M),n.rXU(n.aKT),n.rXU(n.SKi))},y.\u0275dir=n.FsC({type:y,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[n.Mj6.None,"cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),S})(),E=(()=>{var y;class S{}return(y=S).\u0275fac=function(s){return new(s||y)},y.\u0275mod=n.$C({type:y}),y.\u0275inj=n.G2t({providers:[A]}),S})()},61904:(je,z,c)=>{"use strict";c.d(z,{$Q:()=>ve,Sf:()=>Xe,WB:()=>De,hJ:()=>Ie,rR:()=>Z,yY:()=>ot,z_:()=>zt});var r=c(37278),n=c(61142),v=c(58527),h=c(6364),f=c(72653),A=c(8619),M=c(65706),T=c(4208),E=c(48765),y=c(51394),S=c(76614),l=c(80583),s=c(10399),u=c(16229),m=c(25373);const I=(0,f.CZ)();class R{constructor(J,$e){this._viewportRuler=J,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=$e}attach(){}enable(){if(this._canBeEnabled()){const J=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=J.style.left||"",this._previousHTMLStyles.top=J.style.top||"",J.style.left=(0,h.a1)(-this._previousScrollPosition.left),J.style.top=(0,h.a1)(-this._previousScrollPosition.top),J.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const J=this._document.documentElement,st=J.style,Gt=this._document.body.style,Zt=st.scrollBehavior||"",kn=Gt.scrollBehavior||"";this._isEnabled=!1,st.left=this._previousHTMLStyles.left,st.top=this._previousHTMLStyles.top,J.classList.remove("cdk-global-scrollblock"),I&&(st.scrollBehavior=Gt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),I&&(st.scrollBehavior=Zt,Gt.scrollBehavior=kn)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const $e=this._document.body,st=this._viewportRuler.getViewportSize();return $e.scrollHeight>st.height||$e.scrollWidth>st.width}}class Y{constructor(J,$e,st,Gt){this._scrollDispatcher=J,this._ngZone=$e,this._viewportRuler=st,this._config=Gt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(J){this._overlayRef=J}enable(){if(this._scrollSubscription)return;const J=this._scrollDispatcher.scrolled(0).pipe((0,A.p)($e=>!$e||!this._overlayRef.overlayElement.contains($e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=J.subscribe(()=>{const $e=this._viewportRuler.getViewportScrollPosition().top;Math.abs($e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=J.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class j{enable(){}disable(){}attach(){}}function fe(de,J){return J.some($e=>de.bottom<$e.top||de.top>$e.bottom||de.right<$e.left||de.left>$e.right)}function te(de,J){return J.some($e=>de.top<$e.top||de.bottom>$e.bottom||de.left<$e.left||de.right>$e.right)}class ce{constructor(J,$e,st,Gt){this._scrollDispatcher=J,this._viewportRuler=$e,this._ngZone=st,this._config=Gt,this._scrollSubscription=null}attach(J){this._overlayRef=J}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 $e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:st,height:Gt}=this._viewportRuler.getViewportSize();fe($e,[{width:st,height:Gt,bottom:Gt,right:st,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 H=(()=>{var de;class J{constructor(st,Gt,Zt,kn){this._scrollDispatcher=st,this._viewportRuler=Gt,this._ngZone=Zt,this.noop=()=>new j,this.close=Un=>new Y(this._scrollDispatcher,this._ngZone,this._viewportRuler,Un),this.block=()=>new R(this._viewportRuler,this._document),this.reposition=Un=>new ce(this._scrollDispatcher,this._viewportRuler,this._ngZone,Un),this._document=kn}}return(de=J).\u0275fac=function(st){return new(st||de)(v.KVO(r.R),v.KVO(r.Xj),v.KVO(v.SKi),v.KVO(n.qQ))},de.\u0275prov=v.jDH({token:de,factory:de.\u0275fac,providedIn:"root"}),J})();class Z{constructor(J){if(this.scrollStrategy=new j,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,J){const $e=Object.keys(J);for(const st of $e)void 0!==J[st]&&(this[st]=J[st])}}}class Me{constructor(J,$e){this.connectionPair=J,this.scrollableViewProperties=$e}}let ne=(()=>{var de;class J{constructor(st){this._attachedOverlays=[],this._document=st}ngOnDestroy(){this.detach()}add(st){this.remove(st),this._attachedOverlays.push(st)}remove(st){const Gt=this._attachedOverlays.indexOf(st);Gt>-1&&this._attachedOverlays.splice(Gt,1),0===this._attachedOverlays.length&&this.detach()}}return(de=J).\u0275fac=function(st){return new(st||de)(v.KVO(n.qQ))},de.\u0275prov=v.jDH({token:de,factory:de.\u0275fac,providedIn:"root"}),J})(),Ge=(()=>{var de;class J extends ne{constructor(st,Gt){super(st),this._ngZone=Gt,this._keydownListener=Zt=>{const kn=this._attachedOverlays;for(let Un=kn.length-1;Un>-1;Un--)if(kn[Un]._keydownEvents.observers.length>0){const ni=kn[Un]._keydownEvents;this._ngZone?this._ngZone.run(()=>ni.next(Zt)):ni.next(Zt);break}}}add(st){super.add(st),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)}}return(de=J).\u0275fac=function(st){return new(st||de)(v.KVO(n.qQ),v.KVO(v.SKi,8))},de.\u0275prov=v.jDH({token:de,factory:de.\u0275fac,providedIn:"root"}),J})(),ge=(()=>{var de;class J extends ne{constructor(st,Gt,Zt){super(st),this._platform=Gt,this._ngZone=Zt,this._cursorStyleIsSet=!1,this._pointerDownListener=kn=>{this._pointerDownEventTarget=(0,f.Fb)(kn)},this._clickListener=kn=>{const Un=(0,f.Fb)(kn),ni="click"===kn.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Un;this._pointerDownEventTarget=null;const qe=this._attachedOverlays.slice();for(let mi=qe.length-1;mi>-1;mi--){const Bi=qe[mi];if(Bi._outsidePointerEvents.observers.length<1||!Bi.hasAttached())continue;if(Bi.overlayElement.contains(Un)||Bi.overlayElement.contains(ni))break;const _i=Bi._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>_i.next(kn)):_i.next(kn)}}}add(st){if(super.add(st),!this._isAttached){const Gt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Gt)):this._addEventListeners(Gt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Gt.style.cursor,Gt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const st=this._document.body;st.removeEventListener("pointerdown",this._pointerDownListener,!0),st.removeEventListener("click",this._clickListener,!0),st.removeEventListener("auxclick",this._clickListener,!0),st.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(st.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(st){st.addEventListener("pointerdown",this._pointerDownListener,!0),st.addEventListener("click",this._clickListener,!0),st.addEventListener("auxclick",this._clickListener,!0),st.addEventListener("contextmenu",this._clickListener,!0)}}return(de=J).\u0275fac=function(st){return new(st||de)(v.KVO(n.qQ),v.KVO(f.OD),v.KVO(v.SKi,8))},de.\u0275prov=v.jDH({token:de,factory:de.\u0275fac,providedIn:"root"}),J})(),Xe=(()=>{var de;class J{constructor(st,Gt){this._platform=Gt,this._document=st}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const st="cdk-overlay-container";if(this._platform.isBrowser||(0,f.v8)()){const Zt=this._document.querySelectorAll(`.${st}[platform="server"], .${st}[platform="test"]`);for(let kn=0;kn<Zt.length;kn++)Zt[kn].remove()}const Gt=this._document.createElement("div");Gt.classList.add(st),(0,f.v8)()?Gt.setAttribute("platform","test"):this._platform.isBrowser||Gt.setAttribute("platform","server"),this._document.body.appendChild(Gt),this._containerElement=Gt}}return(de=J).\u0275fac=function(st){return new(st||de)(v.KVO(n.qQ),v.KVO(f.OD))},de.\u0275prov=v.jDH({token:de,factory:de.\u0275fac,providedIn:"root"}),J})();class ot{constructor(J,$e,st,Gt,Zt,kn,Un,ni,qe,mi=!1){this._portalOutlet=J,this._host=$e,this._pane=st,this._config=Gt,this._ngZone=Zt,this._keyboardDispatcher=kn,this._document=Un,this._location=ni,this._outsideClickDispatcher=qe,this._animationsDisabled=mi,this._backdropElement=null,this._backdropClick=new l.B7,this._attachments=new l.B7,this._detachments=new l.B7,this._locationChanges=s.y.EMPTY,this._backdropClickHandler=Bi=>this._backdropClick.next(Bi),this._backdropTransitionendHandler=Bi=>{this._disposeBackdrop(Bi.target)},this._keydownEvents=new l.B7,this._outsidePointerEvents=new l.B7,Gt.scrollStrategy&&(this._scrollStrategy=Gt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Gt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(J){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const $e=this._portalOutlet.attach(J);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,M.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 $e?.onDestroy&&$e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),$e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const J=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),J}dispose(){const J=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,J&&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(J){J!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=J,this.hasAttached()&&(J.attach(this),this.updatePosition()))}updateSize(J){this._config={...this._config,...J},this._updateElementSize()}setDirection(J){this._config={...this._config,direction:J},this._updateElementDirection()}addPanelClass(J){this._pane&&this._toggleClasses(this._pane,J,!0)}removePanelClass(J){this._pane&&this._toggleClasses(this._pane,J,!1)}getDirection(){const J=this._config.direction;return J?"string"==typeof J?J:J.value:"ltr"}updateScrollStrategy(J){J!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=J,this.hasAttached()&&(J.attach(this),J.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const J=this._pane.style;J.width=(0,h.a1)(this._config.width),J.height=(0,h.a1)(this._config.height),J.minWidth=(0,h.a1)(this._config.minWidth),J.minHeight=(0,h.a1)(this._config.minHeight),J.maxWidth=(0,h.a1)(this._config.maxWidth),J.maxHeight=(0,h.a1)(this._config.maxHeight)}_togglePointerEvents(J){this._pane.style.pointerEvents=J?"":"none"}_attachBackdrop(){const J="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(J)})}):this._backdropElement.classList.add(J)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const J=this._backdropElement;if(J){if(this._animationsDisabled)return void this._disposeBackdrop(J);J.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{J.addEventListener("transitionend",this._backdropTransitionendHandler)}),J.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(J)},500))}}_toggleClasses(J,$e,st){const Gt=(0,h.FG)($e||[]).filter(Zt=>!!Zt);Gt.length&&(st?J.classList.add(...Gt):J.classList.remove(...Gt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const J=this._ngZone.onStable.pipe((0,T.Q)((0,u.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()),J.unsubscribe())})})}_disposeScrollStrategy(){const J=this._scrollStrategy;J&&(J.disable(),J.detach&&J.detach())}_disposeBackdrop(J){J&&(J.removeEventListener("click",this._backdropClickHandler),J.removeEventListener("transitionend",this._backdropTransitionendHandler),J.remove(),this._backdropElement===J&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const dt="cdk-overlay-connected-position-bounding-box",xe=/([A-Za-z%]+)$/;class Re{get positions(){return this._preferredPositions}constructor(J,$e,st,Gt,Zt){this._viewportRuler=$e,this._document=st,this._platform=Gt,this._overlayContainer=Zt,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 l.B7,this._resizeSubscription=s.y.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(J)}attach(J){this._validatePositions(),J.hostElement.classList.add(dt),this._overlayRef=J,this._boundingBox=J.hostElement,this._pane=J.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 J=this._originRect,$e=this._overlayRect,st=this._viewportRect,Gt=this._containerRect,Zt=[];let kn;for(let Un of this._preferredPositions){let ni=this._getOriginPoint(J,Gt,Un),qe=this._getOverlayPoint(ni,$e,Un),mi=this._getOverlayFit(qe,$e,st,Un);if(mi.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Un,ni);this._canFitWithFlexibleDimensions(mi,qe,st)?Zt.push({position:Un,origin:ni,overlayRect:$e,boundingBoxRect:this._calculateBoundingBoxRect(ni,Un)}):(!kn||kn.overlayFit.visibleArea<mi.visibleArea)&&(kn={overlayFit:mi,overlayPoint:qe,originPoint:ni,position:Un,overlayRect:$e})}if(Zt.length){let Un=null,ni=-1;for(const qe of Zt){const mi=qe.boundingBoxRect.width*qe.boundingBoxRect.height*(qe.position.weight||1);mi>ni&&(ni=mi,Un=qe)}return this._isPushed=!1,void this._applyPosition(Un.position,Un.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(kn.position,kn.originPoint);this._applyPosition(kn.position,kn.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ue(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const J=this._lastPosition;if(J){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const $e=this._getOriginPoint(this._originRect,this._containerRect,J);this._applyPosition(J,$e)}else this.apply()}withScrollableContainers(J){return this._scrollables=J,this}withPositions(J){return this._preferredPositions=J,-1===J.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(J){return this._viewportMargin=J,this}withFlexibleDimensions(J=!0){return this._hasFlexibleDimensions=J,this}withGrowAfterOpen(J=!0){return this._growAfterOpen=J,this}withPush(J=!0){return this._canPush=J,this}withLockedPosition(J=!0){return this._positionLocked=J,this}setOrigin(J){return this._origin=J,this}withDefaultOffsetX(J){return this._offsetX=J,this}withDefaultOffsetY(J){return this._offsetY=J,this}withTransformOriginOn(J){return this._transformOriginSelector=J,this}_getOriginPoint(J,$e,st){let Gt,Zt;if("center"==st.originX)Gt=J.left+J.width/2;else{const kn=this._isRtl()?J.right:J.left,Un=this._isRtl()?J.left:J.right;Gt="start"==st.originX?kn:Un}return $e.left<0&&(Gt-=$e.left),Zt="center"==st.originY?J.top+J.height/2:"top"==st.originY?J.top:J.bottom,$e.top<0&&(Zt-=$e.top),{x:Gt,y:Zt}}_getOverlayPoint(J,$e,st){let Gt,Zt;return Gt="center"==st.overlayX?-$e.width/2:"start"===st.overlayX?this._isRtl()?-$e.width:0:this._isRtl()?0:-$e.width,Zt="center"==st.overlayY?-$e.height/2:"top"==st.overlayY?0:-$e.height,{x:J.x+Gt,y:J.y+Zt}}_getOverlayFit(J,$e,st,Gt){const Zt=W($e);let{x:kn,y:Un}=J,ni=this._getOffset(Gt,"x"),qe=this._getOffset(Gt,"y");ni&&(kn+=ni),qe&&(Un+=qe);let _i=0-Un,Bn=Un+Zt.height-st.height,jn=this._subtractOverflows(Zt.width,0-kn,kn+Zt.width-st.width),It=this._subtractOverflows(Zt.height,_i,Bn),vn=jn*It;return{visibleArea:vn,isCompletelyWithinViewport:Zt.width*Zt.height===vn,fitsInViewportVertically:It===Zt.height,fitsInViewportHorizontally:jn==Zt.width}}_canFitWithFlexibleDimensions(J,$e,st){if(this._hasFlexibleDimensions){const Gt=st.bottom-$e.y,Zt=st.right-$e.x,kn=ee(this._overlayRef.getConfig().minHeight),Un=ee(this._overlayRef.getConfig().minWidth);return(J.fitsInViewportVertically||null!=kn&&kn<=Gt)&&(J.fitsInViewportHorizontally||null!=Un&&Un<=Zt)}return!1}_pushOverlayOnScreen(J,$e,st){if(this._previousPushAmount&&this._positionLocked)return{x:J.x+this._previousPushAmount.x,y:J.y+this._previousPushAmount.y};const Gt=W($e),Zt=this._viewportRect,kn=Math.max(J.x+Gt.width-Zt.width,0),Un=Math.max(J.y+Gt.height-Zt.height,0),ni=Math.max(Zt.top-st.top-J.y,0),qe=Math.max(Zt.left-st.left-J.x,0);let mi=0,Bi=0;return mi=Gt.width<=Zt.width?qe||-kn:J.x<this._viewportMargin?Zt.left-st.left-J.x:0,Bi=Gt.height<=Zt.height?ni||-Un:J.y<this._viewportMargin?Zt.top-st.top-J.y:0,this._previousPushAmount={x:mi,y:Bi},{x:J.x+mi,y:J.y+Bi}}_applyPosition(J,$e){if(this._setTransformOrigin(J),this._setOverlayElementStyles($e,J),this._setBoundingBoxStyles($e,J),J.panelClass&&this._addPanelClasses(J.panelClass),this._lastPosition=J,this._positionChanges.observers.length){const st=this._getScrollVisibility(),Gt=new Me(J,st);this._positionChanges.next(Gt)}this._isInitialRender=!1}_setTransformOrigin(J){if(!this._transformOriginSelector)return;const $e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let st,Gt=J.overlayY;st="center"===J.overlayX?"center":this._isRtl()?"start"===J.overlayX?"right":"left":"start"===J.overlayX?"left":"right";for(let Zt=0;Zt<$e.length;Zt++)$e[Zt].style.transformOrigin=`${st} ${Gt}`}_calculateBoundingBoxRect(J,$e){const st=this._viewportRect,Gt=this._isRtl();let Zt,kn,Un,mi,Bi,_i;if("top"===$e.overlayY)kn=J.y,Zt=st.height-kn+this._viewportMargin;else if("bottom"===$e.overlayY)Un=st.height-J.y+2*this._viewportMargin,Zt=st.height-Un+this._viewportMargin;else{const Bn=Math.min(st.bottom-J.y+st.top,J.y),jn=this._lastBoundingBoxSize.height;Zt=2*Bn,kn=J.y-Bn,Zt>jn&&!this._isInitialRender&&!this._growAfterOpen&&(kn=J.y-jn/2)}if("end"===$e.overlayX&&!Gt||"start"===$e.overlayX&&Gt)_i=st.width-J.x+this._viewportMargin,mi=J.x-this._viewportMargin;else if("start"===$e.overlayX&&!Gt||"end"===$e.overlayX&&Gt)Bi=J.x,mi=st.right-J.x;else{const Bn=Math.min(st.right-J.x+st.left,J.x),jn=this._lastBoundingBoxSize.width;mi=2*Bn,Bi=J.x-Bn,mi>jn&&!this._isInitialRender&&!this._growAfterOpen&&(Bi=J.x-jn/2)}return{top:kn,left:Bi,bottom:Un,right:_i,width:mi,height:Zt}}_setBoundingBoxStyles(J,$e){const st=this._calculateBoundingBoxRect(J,$e);!this._isInitialRender&&!this._growAfterOpen&&(st.height=Math.min(st.height,this._lastBoundingBoxSize.height),st.width=Math.min(st.width,this._lastBoundingBoxSize.width));const Gt={};if(this._hasExactPosition())Gt.top=Gt.left="0",Gt.bottom=Gt.right=Gt.maxHeight=Gt.maxWidth="",Gt.width=Gt.height="100%";else{const Zt=this._overlayRef.getConfig().maxHeight,kn=this._overlayRef.getConfig().maxWidth;Gt.height=(0,h.a1)(st.height),Gt.top=(0,h.a1)(st.top),Gt.bottom=(0,h.a1)(st.bottom),Gt.width=(0,h.a1)(st.width),Gt.left=(0,h.a1)(st.left),Gt.right=(0,h.a1)(st.right),Gt.alignItems="center"===$e.overlayX?"center":"end"===$e.overlayX?"flex-end":"flex-start",Gt.justifyContent="center"===$e.overlayY?"center":"bottom"===$e.overlayY?"flex-end":"flex-start",Zt&&(Gt.maxHeight=(0,h.a1)(Zt)),kn&&(Gt.maxWidth=(0,h.a1)(kn))}this._lastBoundingBoxSize=st,Ue(this._boundingBox.style,Gt)}_resetBoundingBoxStyles(){Ue(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ue(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(J,$e){const st={},Gt=this._hasExactPosition(),Zt=this._hasFlexibleDimensions,kn=this._overlayRef.getConfig();if(Gt){const mi=this._viewportRuler.getViewportScrollPosition();Ue(st,this._getExactOverlayY($e,J,mi)),Ue(st,this._getExactOverlayX($e,J,mi))}else st.position="static";let Un="",ni=this._getOffset($e,"x"),qe=this._getOffset($e,"y");ni&&(Un+=`translateX(${ni}px) `),qe&&(Un+=`translateY(${qe}px)`),st.transform=Un.trim(),kn.maxHeight&&(Gt?st.maxHeight=(0,h.a1)(kn.maxHeight):Zt&&(st.maxHeight="")),kn.maxWidth&&(Gt?st.maxWidth=(0,h.a1)(kn.maxWidth):Zt&&(st.maxWidth="")),Ue(this._pane.style,st)}_getExactOverlayY(J,$e,st){let Gt={top:"",bottom:""},Zt=this._getOverlayPoint($e,this._overlayRect,J);return this._isPushed&&(Zt=this._pushOverlayOnScreen(Zt,this._overlayRect,st)),"bottom"===J.overlayY?Gt.bottom=this._document.documentElement.clientHeight-(Zt.y+this._overlayRect.height)+"px":Gt.top=(0,h.a1)(Zt.y),Gt}_getExactOverlayX(J,$e,st){let kn,Gt={left:"",right:""},Zt=this._getOverlayPoint($e,this._overlayRect,J);return this._isPushed&&(Zt=this._pushOverlayOnScreen(Zt,this._overlayRect,st)),kn=this._isRtl()?"end"===J.overlayX?"left":"right":"end"===J.overlayX?"right":"left","right"===kn?Gt.right=this._document.documentElement.clientWidth-(Zt.x+this._overlayRect.width)+"px":Gt.left=(0,h.a1)(Zt.x),Gt}_getScrollVisibility(){const J=this._getOriginRect(),$e=this._pane.getBoundingClientRect(),st=this._scrollables.map(Gt=>Gt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:te(J,st),isOriginOutsideView:fe(J,st),isOverlayClipped:te($e,st),isOverlayOutsideView:fe($e,st)}}_subtractOverflows(J,...$e){return $e.reduce((st,Gt)=>st-Math.max(Gt,0),J)}_getNarrowedViewportRect(){const J=this._document.documentElement.clientWidth,$e=this._document.documentElement.clientHeight,st=this._viewportRuler.getViewportScrollPosition();return{top:st.top+this._viewportMargin,left:st.left+this._viewportMargin,right:st.left+J-this._viewportMargin,bottom:st.top+$e-this._viewportMargin,width:J-2*this._viewportMargin,height:$e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(J,$e){return"x"===$e?null==J.offsetX?this._offsetX:J.offsetX:null==J.offsetY?this._offsetY:J.offsetY}_validatePositions(){}_addPanelClasses(J){this._pane&&(0,h.FG)(J).forEach($e=>{""!==$e&&-1===this._appliedPanelClasses.indexOf($e)&&(this._appliedPanelClasses.push($e),this._pane.classList.add($e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(J=>{this._pane.classList.remove(J)}),this._appliedPanelClasses=[])}_getOriginRect(){const J=this._origin;if(J instanceof v.aKT)return J.nativeElement.getBoundingClientRect();if(J instanceof Element)return J.getBoundingClientRect();const $e=J.width||0,st=J.height||0;return{top:J.y,bottom:J.y+st,left:J.x,right:J.x+$e,height:st,width:$e}}}function Ue(de,J){for(let $e in J)J.hasOwnProperty($e)&&(de[$e]=J[$e]);return de}function ee(de){if("number"!=typeof de&&null!=de){const[J,$e]=de.split(xe);return $e&&"px"!==$e?null:parseFloat(J)}return de||null}function W(de){return{top:Math.floor(de.top),right:Math.floor(de.right),bottom:Math.floor(de.bottom),left:Math.floor(de.left),width:Math.floor(de.width),height:Math.floor(de.height)}}const oe="cdk-global-overlay-wrapper";class Le{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(J){const $e=J.getConfig();this._overlayRef=J,this._width&&!$e.width&&J.updateSize({width:this._width}),this._height&&!$e.height&&J.updateSize({height:this._height}),J.hostElement.classList.add(oe),this._isDisposed=!1}top(J=""){return this._bottomOffset="",this._topOffset=J,this._alignItems="flex-start",this}left(J=""){return this._xOffset=J,this._xPosition="left",this}bottom(J=""){return this._topOffset="",this._bottomOffset=J,this._alignItems="flex-end",this}right(J=""){return this._xOffset=J,this._xPosition="right",this}start(J=""){return this._xOffset=J,this._xPosition="start",this}end(J=""){return this._xOffset=J,this._xPosition="end",this}width(J=""){return this._overlayRef?this._overlayRef.updateSize({width:J}):this._width=J,this}height(J=""){return this._overlayRef?this._overlayRef.updateSize({height:J}):this._height=J,this}centerHorizontally(J=""){return this.left(J),this._xPosition="center",this}centerVertically(J=""){return this.top(J),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const J=this._overlayRef.overlayElement.style,$e=this._overlayRef.hostElement.style,st=this._overlayRef.getConfig(),{width:Gt,height:Zt,maxWidth:kn,maxHeight:Un}=st,ni=!("100%"!==Gt&&"100vw"!==Gt||kn&&"100%"!==kn&&"100vw"!==kn),qe=!("100%"!==Zt&&"100vh"!==Zt||Un&&"100%"!==Un&&"100vh"!==Un),mi=this._xPosition,Bi=this._xOffset,_i="rtl"===this._overlayRef.getConfig().direction;let Bn="",jn="",It="";ni?It="flex-start":"center"===mi?(It="center",_i?jn=Bi:Bn=Bi):_i?"left"===mi||"end"===mi?(It="flex-end",Bn=Bi):("right"===mi||"start"===mi)&&(It="flex-start",jn=Bi):"left"===mi||"start"===mi?(It="flex-start",Bn=Bi):("right"===mi||"end"===mi)&&(It="flex-end",jn=Bi),J.position=this._cssPosition,J.marginLeft=ni?"0":Bn,J.marginTop=qe?"0":this._topOffset,J.marginBottom=this._bottomOffset,J.marginRight=ni?"0":jn,$e.justifyContent=It,$e.alignItems=qe?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const J=this._overlayRef.overlayElement.style,$e=this._overlayRef.hostElement,st=$e.style;$e.classList.remove(oe),st.justifyContent=st.alignItems=J.marginTop=J.marginBottom=J.marginLeft=J.marginRight=J.position="",this._overlayRef=null,this._isDisposed=!0}}let Oe=(()=>{var de;class J{constructor(st,Gt,Zt,kn){this._viewportRuler=st,this._document=Gt,this._platform=Zt,this._overlayContainer=kn}global(){return new Le}flexibleConnectedTo(st){return new Re(st,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(de=J).\u0275fac=function(st){return new(st||de)(v.KVO(r.Xj),v.KVO(n.qQ),v.KVO(f.OD),v.KVO(Xe))},de.\u0275prov=v.jDH({token:de,factory:de.\u0275fac,providedIn:"root"}),J})(),ye=0,Ie=(()=>{var de;class J{constructor(st,Gt,Zt,kn,Un,ni,qe,mi,Bi,_i,Bn,jn){this.scrollStrategies=st,this._overlayContainer=Gt,this._componentFactoryResolver=Zt,this._positionBuilder=kn,this._keyboardDispatcher=Un,this._injector=ni,this._ngZone=qe,this._document=mi,this._directionality=Bi,this._location=_i,this._outsideClickDispatcher=Bn,this._animationsModuleType=jn}create(st){const Gt=this._createHostElement(),Zt=this._createPaneElement(Gt),kn=this._createPortalOutlet(Zt),Un=new Z(st);return Un.direction=Un.direction||this._directionality.value,new ot(kn,Gt,Zt,Un,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(st){const Gt=this._document.createElement("div");return Gt.id="cdk-overlay-"+ye++,Gt.classList.add("cdk-overlay-pane"),st.appendChild(Gt),Gt}_createHostElement(){const st=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(st),st}_createPortalOutlet(st){return this._appRef||(this._appRef=this._injector.get(v.o8S)),new S.aI(st,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(de=J).\u0275fac=function(st){return new(st||de)(v.KVO(H),v.KVO(Xe),v.KVO(v.OM3),v.KVO(Oe),v.KVO(Ge),v.KVO(v.zZn),v.KVO(v.SKi),v.KVO(n.qQ),v.KVO(y.dS),v.KVO(n.aZ),v.KVO(ge),v.KVO(v.bc$,8))},de.\u0275prov=v.jDH({token:de,factory:de.\u0275fac,providedIn:"root"}),J})();const at=[{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"}],K=new v.nKC("cdk-connected-overlay-scroll-strategy");let ve=(()=>{var de;class J{constructor(st){this.elementRef=st}}return(de=J).\u0275fac=function(st){return new(st||de)(v.rXU(v.aKT))},de.\u0275dir=v.FsC({type:de,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),J})(),De=(()=>{var de;class J{get offsetX(){return this._offsetX}set offsetX(st){this._offsetX=st,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(st){this._offsetY=st,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(st){this._hasBackdrop=(0,h.he)(st)}get lockPosition(){return this._lockPosition}set lockPosition(st){this._lockPosition=(0,h.he)(st)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(st){this._flexibleDimensions=(0,h.he)(st)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(st){this._growAfterOpen=(0,h.he)(st)}get push(){return this._push}set push(st){this._push=(0,h.he)(st)}constructor(st,Gt,Zt,kn,Un){this._overlay=st,this._dir=Un,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=s.y.EMPTY,this._attachSubscription=s.y.EMPTY,this._detachSubscription=s.y.EMPTY,this._positionSubscription=s.y.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new v.bkB,this.positionChange=new v.bkB,this.attach=new v.bkB,this.detach=new v.bkB,this.overlayKeydown=new v.bkB,this.overlayOutsideClick=new v.bkB,this._templatePortal=new S.VA(Gt,Zt),this._scrollStrategyFactory=kn,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(st){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),st.origin&&this.open&&this._position.apply()),st.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=at);const st=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=st.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=st.detachments().subscribe(()=>this.detach.emit()),st.keydownEvents().subscribe(Gt=>{this.overlayKeydown.next(Gt),Gt.keyCode===m._f&&!this.disableClose&&!(0,m.rp)(Gt)&&(Gt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Gt=>{this.overlayOutsideClick.next(Gt)})}_buildConfig(){const st=this._position=this.positionStrategy||this._createPositionStrategy(),Gt=new Z({direction:this._dir,positionStrategy:st,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Gt.width=this.width),(this.height||0===this.height)&&(Gt.height=this.height),(this.minWidth||0===this.minWidth)&&(Gt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Gt.minHeight=this.minHeight),this.backdropClass&&(Gt.backdropClass=this.backdropClass),this.panelClass&&(Gt.panelClass=this.panelClass),Gt}_updatePositionStrategy(st){const Gt=this.positions.map(Zt=>({originX:Zt.originX,originY:Zt.originY,overlayX:Zt.overlayX,overlayY:Zt.overlayY,offsetX:Zt.offsetX||this.offsetX,offsetY:Zt.offsetY||this.offsetY,panelClass:Zt.panelClass||void 0}));return st.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Gt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const st=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(st),st}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ve?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(st=>{this.backdropClick.emit(st)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,E.v)(()=>this.positionChange.observers.length>0)).subscribe(st=>{this.positionChange.emit(st),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return(de=J).\u0275fac=function(st){return new(st||de)(v.rXU(Ie),v.rXU(v.C4Q),v.rXU(v.c1b),v.rXU(K),v.rXU(y.dS,8))},de.\u0275dir=v.FsC({type:de,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[v.Mj6.None,"cdkConnectedOverlayOrigin","origin"],positions:[v.Mj6.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[v.Mj6.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[v.Mj6.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[v.Mj6.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[v.Mj6.None,"cdkConnectedOverlayWidth","width"],height:[v.Mj6.None,"cdkConnectedOverlayHeight","height"],minWidth:[v.Mj6.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[v.Mj6.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[v.Mj6.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[v.Mj6.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[v.Mj6.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[v.Mj6.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[v.Mj6.None,"cdkConnectedOverlayOpen","open"],disableClose:[v.Mj6.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[v.Mj6.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[v.Mj6.None,"cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:[v.Mj6.None,"cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:[v.Mj6.None,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:[v.Mj6.None,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:[v.Mj6.None,"cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[v.OA$]}),J})();const Qe={provide:K,deps:[Ie],useFactory:function pe(de){return()=>de.scrollStrategies.reposition()}};let zt=(()=>{var de;class J{}return(de=J).\u0275fac=function(st){return new(st||de)},de.\u0275mod=v.$C({type:de}),de.\u0275inj=v.G2t({providers:[Ie,Qe],imports:[y.jI,S.jc,r.E9,r.E9]}),J})()},72653:(je,z,c)=>{"use strict";c.d(z,{BD:()=>m,BQ:()=>S,CZ:()=>u,Fb:()=>j,KT:()=>O,MU:()=>T,OD:()=>h,v8:()=>fe,vc:()=>Y});var r=c(58527),n=c(61142);let v;try{v=typeof Intl<"u"&&Intl.v8BreakIterator}catch{v=!1}let A,h=(()=>{var te;class ce{constructor(Z){this._platformId=Z,this.isBrowser=this._platformId?(0,n.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&&!v)&&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}}return(te=ce).\u0275fac=function(Z){return new(Z||te)(r.KVO(r.Agw))},te.\u0275prov=r.jDH({token:te,factory:te.\u0275fac,providedIn:"root"}),ce})();const M=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function T(){if(A)return A;if("object"!=typeof document||!document)return A=new Set(M),A;let te=document.createElement("input");return A=new Set(M.filter(ce=>(te.setAttribute("type",ce),te.type===ce))),A}let E,l,s,I;function S(te){return function y(){if(null==E&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>E=!0}))}finally{E=E||!1}return E}()?te:!!te.capture}function u(){if(null==s){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return s=!1,s;if("scrollBehavior"in document.documentElement.style)s=!0;else{const te=Element.prototype.scrollTo;s=!!te&&!/\{\s*\[native code\]\s*\}/.test(te.toString())}}return s}function m(){if("object"!=typeof document||!document)return 0;if(null==l){const te=document.createElement("div"),ce=te.style;te.dir="rtl",ce.width="100px",ce.overflow="auto",ce.visibility="hidden",ce.pointerEvents="none",ce.position="absolute";const H=document.createElement("div"),Z=H.style;Z.width="200px",Z.height="1px",te.appendChild(H),document.body.appendChild(te),l=0,0===te.scrollLeft&&(te.scrollLeft=1,l=0===te.scrollLeft?1:2),te.remove()}return l}function O(te){if(function R(){if(null==I){const te=typeof document<"u"?document.head:null;I=!(!te||!te.createShadowRoot&&!te.attachShadow)}return I}()){const ce=te.getRootNode?te.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ce instanceof ShadowRoot)return ce}return null}function Y(){let te=typeof document<"u"&&document?document.activeElement:null;for(;te&&te.shadowRoot;){const ce=te.shadowRoot.activeElement;if(ce===te)break;te=ce}return te}function j(te){return te.composedPath?te.composedPath()[0]:te.target}function fe(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},76614:(je,z,c)=>{"use strict";c.d(z,{A8:()=>y,I3:()=>Y,VA:()=>S,aI:()=>m,bV:()=>R,jc:()=>fe,lb:()=>s});var r=c(58527),n=c(61142);class E{attach(H){return this._attachedHost=H,H.attach(this)}detach(){let H=this._attachedHost;null!=H&&(this._attachedHost=null,H.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(H){this._attachedHost=H}}class y extends E{constructor(H,Z,X,ue,Me){super(),this.component=H,this.viewContainerRef=Z,this.injector=X,this.componentFactoryResolver=ue,this.projectableNodes=Me}}class S extends E{constructor(H,Z,X,ue){super(),this.templateRef=H,this.viewContainerRef=Z,this.context=X,this.injector=ue}get origin(){return this.templateRef.elementRef}attach(H,Z=this.context){return this.context=Z,super.attach(H)}detach(){return this.context=void 0,super.detach()}}class l extends E{constructor(H){super(),this.element=H instanceof r.aKT?H.nativeElement:H}}class s{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(H){return H instanceof y?(this._attachedPortal=H,this.attachComponentPortal(H)):H instanceof S?(this._attachedPortal=H,this.attachTemplatePortal(H)):this.attachDomPortal&&H instanceof l?(this._attachedPortal=H,this.attachDomPortal(H)):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(H){this._disposeFn=H}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class m extends s{constructor(H,Z,X,ue,Me){super(),this.outletElement=H,this._componentFactoryResolver=Z,this._appRef=X,this._defaultInjector=ue,this.attachDomPortal=be=>{const Q=be.element,ne=this._document.createComment("dom-portal");Q.parentNode.insertBefore(ne,Q),this.outletElement.appendChild(Q),this._attachedPortal=be,super.setDisposeFn(()=>{ne.parentNode&&ne.parentNode.replaceChild(Q,ne)})},this._document=Me}attachComponentPortal(H){const X=(H.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(H.component);let ue;return H.viewContainerRef?(ue=H.viewContainerRef.createComponent(X,H.viewContainerRef.length,H.injector||H.viewContainerRef.injector,H.projectableNodes||void 0),this.setDisposeFn(()=>ue.destroy())):(ue=X.create(H.injector||this._defaultInjector||r.zZn.NULL),this._appRef.attachView(ue.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ue.hostView),ue.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ue)),this._attachedPortal=H,ue}attachTemplatePortal(H){let Z=H.viewContainerRef,X=Z.createEmbeddedView(H.templateRef,H.context,{injector:H.injector});return X.rootNodes.forEach(ue=>this.outletElement.appendChild(ue)),X.detectChanges(),this.setDisposeFn(()=>{let ue=Z.indexOf(X);-1!==ue&&Z.remove(ue)}),this._attachedPortal=H,X}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(H){return H.hostView.rootNodes[0]}}let R=(()=>{var ce;class H extends S{constructor(X,ue){super(X,ue)}}return(ce=H).\u0275fac=function(X){return new(X||ce)(r.rXU(r.C4Q),r.rXU(r.c1b))},ce.\u0275dir=r.FsC({type:ce,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[r.Vt3]}),H})(),Y=(()=>{var ce;class H extends s{constructor(X,ue,Me){super(),this._componentFactoryResolver=X,this._viewContainerRef=ue,this._isInitialized=!1,this.attached=new r.bkB,this.attachDomPortal=be=>{const Q=be.element,ne=this._document.createComment("dom-portal");be.setAttachedHost(this),Q.parentNode.insertBefore(ne,Q),this._getRootNode().appendChild(Q),this._attachedPortal=be,super.setDisposeFn(()=>{ne.parentNode&&ne.parentNode.replaceChild(Q,ne)})},this._document=Me}get portal(){return this._attachedPortal}set portal(X){this.hasAttached()&&!X&&!this._isInitialized||(this.hasAttached()&&super.detach(),X&&super.attach(X),this._attachedPortal=X||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(X){X.setAttachedHost(this);const ue=null!=X.viewContainerRef?X.viewContainerRef:this._viewContainerRef,be=(X.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(X.component),Q=ue.createComponent(be,ue.length,X.injector||ue.injector,X.projectableNodes||void 0);return ue!==this._viewContainerRef&&this._getRootNode().appendChild(Q.hostView.rootNodes[0]),super.setDisposeFn(()=>Q.destroy()),this._attachedPortal=X,this._attachedRef=Q,this.attached.emit(Q),Q}attachTemplatePortal(X){X.setAttachedHost(this);const ue=this._viewContainerRef.createEmbeddedView(X.templateRef,X.context,{injector:X.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=X,this._attachedRef=ue,this.attached.emit(ue),ue}_getRootNode(){const X=this._viewContainerRef.element.nativeElement;return X.nodeType===X.ELEMENT_NODE?X:X.parentNode}}return(ce=H).\u0275fac=function(X){return new(X||ce)(r.rXU(r.OM3),r.rXU(r.c1b),r.rXU(n.qQ))},ce.\u0275dir=r.FsC({type:ce,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[r.Mj6.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.Vt3]}),H})(),fe=(()=>{var ce;class H{}return(ce=H).\u0275fac=function(X){return new(X||ce)},ce.\u0275mod=r.$C({type:ce}),ce.\u0275inj=r.G2t({}),H})()},37278:(je,z,c)=>{"use strict";c.d(z,{Gj:()=>Ie,E$:()=>Le,d6:()=>le,R:()=>ot,E9:()=>at,Mr:()=>Q,Xj:()=>Re});var r=c(6364),n=c(58527),v=c(80583),h=c(43848),f=c(17053),A=c(36877),M=c(27594),T=c(62366),E=c(10399),y=c(39595),S=c(90093),l=c(7583);class u{constructor(ve){this.durationSelector=ve}call(ve,De){return De.subscribe(new m(ve,this.durationSelector))}}class m extends l.gn{constructor(ve,De){super(ve),this.durationSelector=De,this.hasValue=!1}_next(ve){if(this.value=ve,this.hasValue=!0,!this.throttled){let De;try{const{durationSelector:Qe}=this;De=Qe(ve)}catch(Qe){return this.destination.error(Qe)}const pe=(0,l.tS)(De,new l.zA(this));!pe||pe.closed?this.clearThrottle():this.add(this.throttled=pe)}}clearThrottle(){const{value:ve,hasValue:De,throttled:pe}=this;pe&&(this.remove(pe),this.throttled=void 0,pe.unsubscribe()),De&&(this.value=void 0,this.hasValue=!1,this.destination.next(ve))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var I=c(3496);function R(K,ve=S.b){return function s(K){return function(De){return De.lift(new u(K))}}(()=>(0,I.O)(K,ve))}var O=c(8619),Y=c(4208),j=c(34593),fe=c(14749),te=c(72147),ce=c(55833),H=c(72653),Z=c(61142),X=c(51394),ue=c(40567);const Me=["contentWrapper"],be=["*"],Q=new n.nKC("VIRTUAL_SCROLL_STRATEGY");let ot=(()=>{var K;class ve{constructor(pe,Qe,zt){this._ngZone=pe,this._platform=Qe,this._scrolled=new v.B7,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=zt}register(pe){this.scrollContainers.has(pe)||this.scrollContainers.set(pe,pe.elementScrolled().subscribe(()=>this._scrolled.next(pe)))}deregister(pe){const Qe=this.scrollContainers.get(pe);Qe&&(Qe.unsubscribe(),this.scrollContainers.delete(pe))}scrolled(pe=20){return this._platform.isBrowser?new f.c(Qe=>{this._globalSubscription||this._addGlobalListener();const zt=pe>0?this._scrolled.pipe(R(pe)).subscribe(Qe):this._scrolled.subscribe(Qe);return this._scrolledCount++,()=>{zt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,h.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((pe,Qe)=>this.deregister(Qe)),this._scrolled.complete()}ancestorScrolled(pe,Qe){const zt=this.getAncestorScrollContainers(pe);return this.scrolled(Qe).pipe((0,O.p)(Vt=>!Vt||zt.indexOf(Vt)>-1))}getAncestorScrollContainers(pe){const Qe=[];return this.scrollContainers.forEach((zt,Vt)=>{this._scrollableContainsElement(Vt,pe)&&Qe.push(Vt)}),Qe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(pe,Qe){let zt=(0,r.i8)(Qe),Vt=pe.getElementRef().nativeElement;do{if(zt==Vt)return!0}while(zt=zt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const pe=this._getWindow();return(0,A.R)(pe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(K=ve).\u0275fac=function(pe){return new(pe||K)(n.KVO(n.SKi),n.KVO(H.OD),n.KVO(Z.qQ,8))},K.\u0275prov=n.jDH({token:K,factory:K.\u0275fac,providedIn:"root"}),ve})(),dt=(()=>{var K;class ve{constructor(pe,Qe,zt,Vt){this.elementRef=pe,this.scrollDispatcher=Qe,this.ngZone=zt,this.dir=Vt,this._destroyed=new v.B7,this._elementScrolled=new f.c(de=>this.ngZone.runOutsideAngular(()=>(0,A.R)(this.elementRef.nativeElement,"scroll").pipe((0,Y.Q)(this._destroyed)).subscribe(de)))}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(pe){const Qe=this.elementRef.nativeElement,zt=this.dir&&"rtl"==this.dir.value;null==pe.left&&(pe.left=zt?pe.end:pe.start),null==pe.right&&(pe.right=zt?pe.start:pe.end),null!=pe.bottom&&(pe.top=Qe.scrollHeight-Qe.clientHeight-pe.bottom),zt&&0!=(0,H.BD)()?(null!=pe.left&&(pe.right=Qe.scrollWidth-Qe.clientWidth-pe.left),2==(0,H.BD)()?pe.left=pe.right:1==(0,H.BD)()&&(pe.left=pe.right?-pe.right:pe.right)):null!=pe.right&&(pe.left=Qe.scrollWidth-Qe.clientWidth-pe.right),this._applyScrollToOptions(pe)}_applyScrollToOptions(pe){const Qe=this.elementRef.nativeElement;(0,H.CZ)()?Qe.scrollTo(pe):(null!=pe.top&&(Qe.scrollTop=pe.top),null!=pe.left&&(Qe.scrollLeft=pe.left))}measureScrollOffset(pe){const Qe="left",Vt=this.elementRef.nativeElement;if("top"==pe)return Vt.scrollTop;if("bottom"==pe)return Vt.scrollHeight-Vt.clientHeight-Vt.scrollTop;const de=this.dir&&"rtl"==this.dir.value;return"start"==pe?pe=de?"right":Qe:"end"==pe&&(pe=de?Qe:"right"),de&&2==(0,H.BD)()?pe==Qe?Vt.scrollWidth-Vt.clientWidth-Vt.scrollLeft:Vt.scrollLeft:de&&1==(0,H.BD)()?pe==Qe?Vt.scrollLeft+Vt.scrollWidth-Vt.clientWidth:-Vt.scrollLeft:pe==Qe?Vt.scrollLeft:Vt.scrollWidth-Vt.clientWidth-Vt.scrollLeft}}return(K=ve).\u0275fac=function(pe){return new(pe||K)(n.rXU(n.aKT),n.rXU(ot),n.rXU(n.SKi),n.rXU(X.dS,8))},K.\u0275dir=n.FsC({type:K,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),ve})(),Re=(()=>{var K;class ve{constructor(pe,Qe,zt){this._platform=pe,this._change=new v.B7,this._changeListener=Vt=>{this._change.next(Vt)},this._document=zt,Qe.runOutsideAngular(()=>{if(pe.isBrowser){const Vt=this._getWindow();Vt.addEventListener("resize",this._changeListener),Vt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const pe=this._getWindow();pe.removeEventListener("resize",this._changeListener),pe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const pe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),pe}getViewportRect(){const pe=this.getViewportScrollPosition(),{width:Qe,height:zt}=this.getViewportSize();return{top:pe.top,left:pe.left,bottom:pe.top+zt,right:pe.left+Qe,height:zt,width:Qe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const pe=this._document,Qe=this._getWindow(),zt=pe.documentElement,Vt=zt.getBoundingClientRect();return{top:-Vt.top||pe.body.scrollTop||Qe.scrollY||zt.scrollTop||0,left:-Vt.left||pe.body.scrollLeft||Qe.scrollX||zt.scrollLeft||0}}change(pe=20){return pe>0?this._change.pipe(R(pe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const pe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:pe.innerWidth,height:pe.innerHeight}:{width:0,height:0}}}return(K=ve).\u0275fac=function(pe){return new(pe||K)(n.KVO(H.OD),n.KVO(n.SKi),n.KVO(Z.qQ,8))},K.\u0275prov=n.jDH({token:K,factory:K.\u0275fac,providedIn:"root"}),ve})();const Ue=new n.nKC("VIRTUAL_SCROLLABLE");let ee=(()=>{var K;class ve extends dt{constructor(pe,Qe,zt,Vt){super(pe,Qe,zt,Vt)}measureViewportSize(pe){const Qe=this.elementRef.nativeElement;return"horizontal"===pe?Qe.clientWidth:Qe.clientHeight}}return(K=ve).\u0275fac=function(pe){return new(pe||K)(n.rXU(n.aKT),n.rXU(ot),n.rXU(n.SKi),n.rXU(X.dS,8))},K.\u0275dir=n.FsC({type:K,features:[n.Vt3]}),ve})();const Pe=typeof requestAnimationFrame<"u"?M.X:T.$;let le=(()=>{var K;class ve extends ee{get orientation(){return this._orientation}set orientation(pe){this._orientation!==pe&&(this._orientation=pe,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(pe){this._appendOnly=(0,r.he)(pe)}constructor(pe,Qe,zt,Vt,de,J,$e,st){super(pe,J,zt,de),this.elementRef=pe,this._changeDetectorRef=Qe,this._scrollStrategy=Vt,this.scrollable=st,this._platform=(0,n.WQX)(H.OD),this._detachedSubject=new v.B7,this._renderedRangeSubject=new v.B7,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new f.c(Gt=>this._scrollStrategy.scrolledIndexChange.subscribe(Zt=>Promise.resolve().then(()=>this.ngZone.run(()=>Gt.next(Zt))))),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=E.y.EMPTY,this._viewportChanges=$e.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,j.Z)(null),R(0,Pe),(0,Y.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(pe){this.ngZone.runOutsideAngular(()=>{this._forOf=pe,this._forOf.dataStream.pipe((0,Y.Q)(this._detachedSubject)).subscribe(Qe=>{const zt=Qe.length;zt!==this._dataLength&&(this._dataLength=zt,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(pe){return this.getElementRef().nativeElement.getBoundingClientRect()[pe]}setTotalContentSize(pe){this._totalContentSize!==pe&&(this._totalContentSize=pe,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(pe){(function W(K,ve){return K.start==ve.start&&K.end==ve.end})(this._renderedRange,pe)||(this.appendOnly&&(pe={start:0,end:Math.max(this._renderedRange.end,pe.end)}),this._renderedRangeSubject.next(this._renderedRange=pe),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(pe,Qe="to-start"){pe=this.appendOnly&&"to-start"===Qe?0:pe;const Vt="horizontal"==this.orientation,de=Vt?"X":"Y";let $e=`translate${de}(${Number((Vt&&this.dir&&"rtl"==this.dir.value?-1:1)*pe)}px)`;this._renderedContentOffset=pe,"to-end"===Qe&&($e+=` translate${de}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=$e&&(this._renderedContentTransform=$e,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(pe,Qe="auto"){const zt={behavior:Qe};"horizontal"===this.orientation?zt.start=pe:zt.top=pe,this.scrollable.scrollTo(zt)}scrollToIndex(pe,Qe="auto"){this._scrollStrategy.scrollToIndex(pe,Qe)}measureScrollOffset(pe){let Qe;return Qe=this.scrollable==this?zt=>super.measureScrollOffset(zt):zt=>this.scrollable.measureScrollOffset(zt),Math.max(0,Qe(pe??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(pe){let Qe;const de="rtl"==this.dir?.value;Qe="start"==pe?de?"right":"left":"end"==pe?de?"left":"right":pe||("horizontal"===this.orientation?"left":"top");const J=this.scrollable.measureBoundingClientRectWithScrollOffset(Qe);return this.elementRef.nativeElement.getBoundingClientRect()[Qe]-J}measureRenderedContentSize(){const pe=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?pe.offsetWidth:pe.offsetHeight}measureRangeSize(pe){return this._forOf?this._forOf.measureRangeSize(pe,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(pe){pe&&this._runAfterChangeDetection.push(pe),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 pe=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Qe of pe)Qe()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return(K=ve).\u0275fac=function(pe){return new(pe||K)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(n.SKi),n.rXU(Q,8),n.rXU(X.dS,8),n.rXU(ot),n.rXU(Re),n.rXU(Ue,8))},K.\u0275cmp=n.VBU({type:K,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(pe,Qe){if(1&pe&&n.GBs(Me,7),2&pe){let zt;n.mGM(zt=n.lsd())&&(Qe._contentWrapper=zt.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(pe,Qe){2&pe&&n.AVh("cdk-virtual-scroll-orientation-horizontal","horizontal"===Qe.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Qe.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[n.Jv_([{provide:dt,useFactory:(De,pe)=>De||pe,deps:[[new n.Xx1,new n.y_5(Ue)],K]}]),n.Vt3,n.aNF],ngContentSelectors:be,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(pe,Qe){1&pe&&(n.NAR(),n.j41(0,"div",1,0),n.SdG(2),n.k0s(),n.nrm(3,"div",2)),2&pe&&(n.R7$(3),n.xc7("width",Qe._totalContentWidth)("height",Qe._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}),ve})();function oe(K,ve,De){if(!De.getBoundingClientRect)return 0;const Qe=De.getBoundingClientRect();return"horizontal"===K?"start"===ve?Qe.left:Qe.right:"start"===ve?Qe.top:Qe.bottom}let Le=(()=>{var K;class ve{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(pe){this._cdkVirtualForOf=pe,(0,ue.y4)(pe)?this._dataSourceChanges.next(pe):this._dataSourceChanges.next(new ue.hx((0,y.A)(pe)?pe:Array.from(pe||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(pe){this._needsUpdate=!0,this._cdkVirtualForTrackBy=pe?(Qe,zt)=>pe(Qe+(this._renderedRange?this._renderedRange.start:0),zt):void 0}set cdkVirtualForTemplate(pe){pe&&(this._needsUpdate=!0,this._template=pe)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(pe){this._viewRepeater.viewCacheSize=(0,r.OE)(pe)}constructor(pe,Qe,zt,Vt,de,J){this._viewContainerRef=pe,this._template=Qe,this._differs=zt,this._viewRepeater=Vt,this._viewport=de,this.viewChange=new v.B7,this._dataSourceChanges=new v.B7,this.dataStream=this._dataSourceChanges.pipe((0,j.Z)(null),(0,fe.J)(),(0,te.n)(([$e,st])=>this._changeDataSource($e,st)),(0,ce.t)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new v.B7,this.dataStream.subscribe($e=>{this._data=$e,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,Y.Q)(this._destroyed)).subscribe($e=>{this._renderedRange=$e,this.viewChange.observers.length&&J.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(pe,Qe){if(pe.start>=pe.end)return 0;const zt=pe.start-this._renderedRange.start,Vt=pe.end-pe.start;let de,J;for(let $e=0;$e<Vt;$e++){const st=this._viewContainerRef.get($e+zt);if(st&&st.rootNodes.length){de=J=st.rootNodes[0];break}}for(let $e=Vt-1;$e>-1;$e--){const st=this._viewContainerRef.get($e+zt);if(st&&st.rootNodes.length){J=st.rootNodes[st.rootNodes.length-1];break}}return de&&J?oe(Qe,"end",J)-oe(Qe,"start",de):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const pe=this._differ.diff(this._renderedItems);pe?this._applyChanges(pe):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((pe,Qe)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(pe,Qe):Qe)),this._needsUpdate=!0)}_changeDataSource(pe,Qe){return pe&&pe.disconnect(this),this._needsUpdate=!0,Qe?Qe.connect(this):(0,h.of)()}_updateContext(){const pe=this._data.length;let Qe=this._viewContainerRef.length;for(;Qe--;){const zt=this._viewContainerRef.get(Qe);zt.context.index=this._renderedRange.start+Qe,zt.context.count=pe,this._updateComputedContextProperties(zt.context),zt.detectChanges()}}_applyChanges(pe){this._viewRepeater.applyChanges(pe,this._viewContainerRef,(Vt,de,J)=>this._getEmbeddedViewArgs(Vt,J),Vt=>Vt.item),pe.forEachIdentityChange(Vt=>{this._viewContainerRef.get(Vt.currentIndex).context.$implicit=Vt.item});const Qe=this._data.length;let zt=this._viewContainerRef.length;for(;zt--;){const Vt=this._viewContainerRef.get(zt);Vt.context.index=this._renderedRange.start+zt,Vt.context.count=Qe,this._updateComputedContextProperties(Vt.context)}}_updateComputedContextProperties(pe){pe.first=0===pe.index,pe.last=pe.index===pe.count-1,pe.even=pe.index%2==0,pe.odd=!pe.even}_getEmbeddedViewArgs(pe,Qe){return{templateRef:this._template,context:{$implicit:pe.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Qe}}}return(K=ve).\u0275fac=function(pe){return new(pe||K)(n.rXU(n.c1b),n.rXU(n.C4Q),n.rXU(n._q3),n.rXU(ue.sL),n.rXU(le,4),n.rXU(n.SKi))},K.\u0275dir=n.FsC({type:K,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[n.Jv_([{provide:ue.sL,useClass:ue.DQ}])]}),ve})(),Ie=(()=>{var K;class ve{}return(K=ve).\u0275fac=function(pe){return new(pe||K)},K.\u0275mod=n.$C({type:K}),K.\u0275inj=n.G2t({}),ve})(),at=(()=>{var K;class ve{}return(K=ve).\u0275fac=function(pe){return new(pe||K)},K.\u0275mod=n.$C({type:K}),K.\u0275inj=n.G2t({imports:[X.jI,Ie,X.jI,Ie]}),ve})()},61142:(je,z,c)=>{"use strict";c.d(z,{AJ:()=>Ba,B3:()=>Ti,Jj:()=>Qr,MD:()=>sa,N0:()=>di,Pc:()=>Qo,QT:()=>v,QX:()=>ho,Sm:()=>I,Sq:()=>Dr,T3:()=>Gi,UE:()=>To,VF:()=>f,Vy:()=>po,Xr:()=>Kt,YU:()=>Si,ZD:()=>h,_b:()=>Fn,aZ:()=>O,bT:()=>Oo,e1:()=>Ar,fG:()=>sn,fw:()=>R,hb:()=>u,hj:()=>E,lG:()=>vs,qQ:()=>M,ux:()=>ao,vh:()=>Oa});var r=c(58527);let n=null;function v(){return n}function h(ke){n??=ke}class f{}const M=new r.nKC("");let T=(()=>{var ke;class _{historyGo(D){throw new Error("")}}return(ke=_).\u0275fac=function(D){return new(D||ke)},ke.\u0275prov=r.jDH({token:ke,factory:()=>(0,r.WQX)(y),providedIn:"platform"}),_})();const E=new r.nKC("");let y=(()=>{var ke;class _ extends T{constructor(){super(),this._doc=(0,r.WQX)(M),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v().getBaseHref(this._doc)}onPopState(D){const B=v().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=v().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}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(D){this._location.pathname=D}pushState(D,B,re){this._history.pushState(D,B,re)}replaceState(D,B,re){this._history.replaceState(D,B,re)}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return(ke=_).\u0275fac=function(D){return new(D||ke)},ke.\u0275prov=r.jDH({token:ke,factory:()=>new ke,providedIn:"platform"}),_})();function S(ke,_){if(0==ke.length)return _;if(0==_.length)return ke;let L=0;return ke.endsWith("/")&&L++,_.startsWith("/")&&L++,2==L?ke+_.substring(1):1==L?ke+_:ke+"/"+_}function l(ke){const _=ke.match(/#|\?|$/),L=_&&_.index||ke.length;return ke.slice(0,L-("/"===ke[L-1]?1:0))+ke.slice(L)}function s(ke){return ke&&"?"!==ke[0]?"?"+ke:ke}let u=(()=>{var ke;class _{historyGo(D){throw new Error("")}}return(ke=_).\u0275fac=function(D){return new(D||ke)},ke.\u0275prov=r.jDH({token:ke,factory:()=>(0,r.WQX)(I),providedIn:"root"}),_})();const m=new r.nKC("");let I=(()=>{var ke;class _ extends u{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,r.WQX)(M).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return S(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+s(this._platformLocation.search),re=this._platformLocation.hash;return re&&D?`${B}${re}`:B}pushState(D,B,re,he){const Se=this.prepareExternalUrl(re+s(he));this._platformLocation.pushState(D,B,Se)}replaceState(D,B,re,he){const Se=this.prepareExternalUrl(re+s(he));this._platformLocation.replaceState(D,B,Se)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return(ke=_).\u0275fac=function(D){return new(D||ke)(r.KVO(T),r.KVO(m,8))},ke.\u0275prov=r.jDH({token:ke,factory:ke.\u0275fac,providedIn:"root"}),_})(),R=(()=>{var ke;class _ extends u{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){const B=this._platformLocation.hash??"#";return B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=S(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,re,he){let Se=this.prepareExternalUrl(re+s(he));0==Se.length&&(Se=this._platformLocation.pathname),this._platformLocation.pushState(D,B,Se)}replaceState(D,B,re,he){let Se=this.prepareExternalUrl(re+s(he));0==Se.length&&(Se=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,Se)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return(ke=_).\u0275fac=function(D){return new(D||ke)(r.KVO(T),r.KVO(m,8))},ke.\u0275prov=r.jDH({token:ke,factory:ke.\u0275fac}),_})(),O=(()=>{var ke;class _{constructor(D){this._subject=new r.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._basePath=function te(ke){if(new RegExp("^(https?:)?//").test(ke)){const[,L]=ke.split(/\/\/[^\/]+/);return L}return ke}(l(fe(B))),this._locationStrategy.onPopState(re=>{this._subject.emit({url:this.path(!0),pop:!0,state:re.state,type:re.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+s(B))}normalize(D){return _.stripTrailingSlash(function j(ke,_){if(!ke||!_.startsWith(ke))return _;const L=_.substring(ke.length);return""===L||["/",";","?","#"].includes(L[0])?L:_}(this._basePath,fe(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",re=null){this._locationStrategy.pushState(re,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+s(B)),re)}replaceState(D,B="",re=null){this._locationStrategy.replaceState(re,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+s(B)),re)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription??=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)}),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(re=>re(D,B))}subscribe(D,B,re){return this._subject.subscribe({next:D,error:B,complete:re})}}return(ke=_).normalizeQueryParams=s,ke.joinWithSlash=S,ke.stripTrailingSlash=l,ke.\u0275fac=function(D){return new(D||ke)(r.KVO(u))},ke.\u0275prov=r.jDH({token:ke,factory:()=>function Y(){return new O((0,r.KVO)(u))}(),providedIn:"root"}),_})();function fe(ke){return ke.replace(/\/index.html$/,"")}var H=function(ke){return ke[ke.Decimal=0]="Decimal",ke[ke.Percent=1]="Percent",ke[ke.Currency=2]="Currency",ke[ke.Scientific=3]="Scientific",ke}(H||{}),X=function(ke){return ke[ke.Format=0]="Format",ke[ke.Standalone=1]="Standalone",ke}(X||{}),ue=function(ke){return ke[ke.Narrow=0]="Narrow",ke[ke.Abbreviated=1]="Abbreviated",ke[ke.Wide=2]="Wide",ke[ke.Short=3]="Short",ke}(ue||{}),Me=function(ke){return ke[ke.Short=0]="Short",ke[ke.Medium=1]="Medium",ke[ke.Long=2]="Long",ke[ke.Full=3]="Full",ke}(Me||{});const be={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 Re(ke,_){return De((0,r.H5H)(ke)[r.KH2.DateFormat],_)}function Ue(ke,_){return De((0,r.H5H)(ke)[r.KH2.TimeFormat],_)}function ee(ke,_){return De((0,r.H5H)(ke)[r.KH2.DateTimeFormat],_)}function W(ke,_){const L=(0,r.H5H)(ke),D=L[r.KH2.NumberSymbols][_];if(typeof D>"u"){if(_===be.CurrencyDecimal)return L[r.KH2.NumberSymbols][be.Decimal];if(_===be.CurrencyGroup)return L[r.KH2.NumberSymbols][be.Group]}return D}function Ie(ke){if(!ke[r.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${ke[r.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function De(ke,_){for(let L=_;L>-1;L--)if(typeof ke[L]<"u")return ke[L];throw new Error("Locale data API: locale data undefined")}function pe(ke){const[_,L]=ke.split(":");return{hours:+_,minutes:+L}}const de=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,J={},$e=/((?:[^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 st=function(ke){return ke[ke.Short=0]="Short",ke[ke.ShortGMT=1]="ShortGMT",ke[ke.Long=2]="Long",ke[ke.Extended=3]="Extended",ke}(st||{}),Gt=function(ke){return ke[ke.FullYear=0]="FullYear",ke[ke.Month=1]="Month",ke[ke.Date=2]="Date",ke[ke.Hours=3]="Hours",ke[ke.Minutes=4]="Minutes",ke[ke.Seconds=5]="Seconds",ke[ke.FractionalSeconds=6]="FractionalSeconds",ke[ke.Day=7]="Day",ke}(Gt||{}),Zt=function(ke){return ke[ke.DayPeriods=0]="DayPeriods",ke[ke.Days=1]="Days",ke[ke.Months=2]="Months",ke[ke.Eras=3]="Eras",ke}(Zt||{});function kn(ke,_,L,D){let B=function Mi(ke){if(Tn(ke))return ke;if("number"==typeof ke&&!isNaN(ke))return new Date(ke);if("string"==typeof ke){if(ke=ke.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ke)){const[B,re=1,he=1]=ke.split("-").map(Se=>+Se);return Un(B,re-1,he)}const L=parseFloat(ke);if(!isNaN(ke-L))return new Date(L);let D;if(D=ke.match(de))return function En(ke){const _=new Date(0);let L=0,D=0;const B=ke[8]?_.setUTCFullYear:_.setFullYear,re=ke[8]?_.setUTCHours:_.setHours;ke[9]&&(L=Number(ke[9]+ke[10]),D=Number(ke[9]+ke[11])),B.call(_,Number(ke[1]),Number(ke[2])-1,Number(ke[3]));const he=Number(ke[4]||0)-L,Se=Number(ke[5]||0)-D,we=Number(ke[6]||0),tt=Math.floor(1e3*parseFloat("0."+(ke[7]||0)));return re.call(_,he,Se,we,tt),_}(D)}const _=new Date(ke);if(!Tn(_))throw new Error(`Unable to convert "${ke}" into a date`);return _}(ke);_=ni(L,_)||_;let Se,he=[];for(;_;){if(Se=$e.exec(_),!Se){he.push(_);break}{he=he.concat(Se.slice(1));const rt=he.pop();if(!rt)break;_=rt}}let we=B.getTimezoneOffset();D&&(we=wt(D,we),B=function In(ke,_,L){const D=L?-1:1,B=ke.getTimezoneOffset();return function rn(ke,_){return(ke=new Date(ke.getTime())).setMinutes(ke.getMinutes()+_),ke}(ke,D*(wt(_,B)-B))}(B,D,!0));let tt="";return he.forEach(rt=>{const Ot=function gt(ke){if(bt[ke])return bt[ke];let _;switch(ke){case"G":case"GG":case"GGG":_=jn(Zt.Eras,ue.Abbreviated);break;case"GGGG":_=jn(Zt.Eras,ue.Wide);break;case"GGGGG":_=jn(Zt.Eras,ue.Narrow);break;case"y":_=_i(Gt.FullYear,1,0,!1,!0);break;case"yy":_=_i(Gt.FullYear,2,0,!0,!0);break;case"yyy":_=_i(Gt.FullYear,3,0,!1,!0);break;case"yyyy":_=_i(Gt.FullYear,4,0,!1,!0);break;case"Y":_=We(1);break;case"YY":_=We(2,!0);break;case"YYY":_=We(3);break;case"YYYY":_=We(4);break;case"M":case"L":_=_i(Gt.Month,1,1);break;case"MM":case"LL":_=_i(Gt.Month,2,1);break;case"MMM":_=jn(Zt.Months,ue.Abbreviated);break;case"MMMM":_=jn(Zt.Months,ue.Wide);break;case"MMMMM":_=jn(Zt.Months,ue.Narrow);break;case"LLL":_=jn(Zt.Months,ue.Abbreviated,X.Standalone);break;case"LLLL":_=jn(Zt.Months,ue.Wide,X.Standalone);break;case"LLLLL":_=jn(Zt.Months,ue.Narrow,X.Standalone);break;case"w":_=Et(1);break;case"ww":_=Et(2);break;case"W":_=Et(1,!0);break;case"d":_=_i(Gt.Date,1);break;case"dd":_=_i(Gt.Date,2);break;case"c":case"cc":_=_i(Gt.Day,1);break;case"ccc":_=jn(Zt.Days,ue.Abbreviated,X.Standalone);break;case"cccc":_=jn(Zt.Days,ue.Wide,X.Standalone);break;case"ccccc":_=jn(Zt.Days,ue.Narrow,X.Standalone);break;case"cccccc":_=jn(Zt.Days,ue.Short,X.Standalone);break;case"E":case"EE":case"EEE":_=jn(Zt.Days,ue.Abbreviated);break;case"EEEE":_=jn(Zt.Days,ue.Wide);break;case"EEEEE":_=jn(Zt.Days,ue.Narrow);break;case"EEEEEE":_=jn(Zt.Days,ue.Short);break;case"a":case"aa":case"aaa":_=jn(Zt.DayPeriods,ue.Abbreviated);break;case"aaaa":_=jn(Zt.DayPeriods,ue.Wide);break;case"aaaaa":_=jn(Zt.DayPeriods,ue.Narrow);break;case"b":case"bb":case"bbb":_=jn(Zt.DayPeriods,ue.Abbreviated,X.Standalone,!0);break;case"bbbb":_=jn(Zt.DayPeriods,ue.Wide,X.Standalone,!0);break;case"bbbbb":_=jn(Zt.DayPeriods,ue.Narrow,X.Standalone,!0);break;case"B":case"BB":case"BBB":_=jn(Zt.DayPeriods,ue.Abbreviated,X.Format,!0);break;case"BBBB":_=jn(Zt.DayPeriods,ue.Wide,X.Format,!0);break;case"BBBBB":_=jn(Zt.DayPeriods,ue.Narrow,X.Format,!0);break;case"h":_=_i(Gt.Hours,1,-12);break;case"hh":_=_i(Gt.Hours,2,-12);break;case"H":_=_i(Gt.Hours,1);break;case"HH":_=_i(Gt.Hours,2);break;case"m":_=_i(Gt.Minutes,1);break;case"mm":_=_i(Gt.Minutes,2);break;case"s":_=_i(Gt.Seconds,1);break;case"ss":_=_i(Gt.Seconds,2);break;case"S":_=_i(Gt.FractionalSeconds,1);break;case"SS":_=_i(Gt.FractionalSeconds,2);break;case"SSS":_=_i(Gt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":_=vn(st.Short);break;case"ZZZZZ":_=vn(st.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":_=vn(st.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":_=vn(st.Long);break;default:return null}return bt[ke]=_,_}(rt);tt+=Ot?Ot(B,L,we):"''"===rt?"'":rt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),tt}function Un(ke,_,L){const D=new Date(0);return D.setFullYear(ke,_,L),D.setHours(0,0,0),D}function ni(ke,_){const L=function ne(ke){return(0,r.H5H)(ke)[r.KH2.LocaleId]}(ke);if(J[L]??={},J[L][_])return J[L][_];let D="";switch(_){case"shortDate":D=Re(ke,Me.Short);break;case"mediumDate":D=Re(ke,Me.Medium);break;case"longDate":D=Re(ke,Me.Long);break;case"fullDate":D=Re(ke,Me.Full);break;case"shortTime":D=Ue(ke,Me.Short);break;case"mediumTime":D=Ue(ke,Me.Medium);break;case"longTime":D=Ue(ke,Me.Long);break;case"fullTime":D=Ue(ke,Me.Full);break;case"short":const B=ni(ke,"shortTime"),re=ni(ke,"shortDate");D=qe(ee(ke,Me.Short),[B,re]);break;case"medium":const he=ni(ke,"mediumTime"),Se=ni(ke,"mediumDate");D=qe(ee(ke,Me.Medium),[he,Se]);break;case"long":const we=ni(ke,"longTime"),tt=ni(ke,"longDate");D=qe(ee(ke,Me.Long),[we,tt]);break;case"full":const rt=ni(ke,"fullTime"),Ot=ni(ke,"fullDate");D=qe(ee(ke,Me.Full),[rt,Ot])}return D&&(J[L][_]=D),D}function qe(ke,_){return _&&(ke=ke.replace(/\{([^}]+)}/g,function(L,D){return null!=_&&D in _?_[D]:L})),ke}function mi(ke,_,L="-",D,B){let re="";(ke<0||B&&ke<=0)&&(B?ke=1-ke:(ke=-ke,re=L));let he=String(ke);for(;he.length<_;)he="0"+he;return D&&(he=he.slice(he.length-_)),re+he}function _i(ke,_,L=0,D=!1,B=!1){return function(re,he){let Se=function Bn(ke,_){switch(ke){case Gt.FullYear:return _.getFullYear();case Gt.Month:return _.getMonth();case Gt.Date:return _.getDate();case Gt.Hours:return _.getHours();case Gt.Minutes:return _.getMinutes();case Gt.Seconds:return _.getSeconds();case Gt.FractionalSeconds:return _.getMilliseconds();case Gt.Day:return _.getDay();default:throw new Error(`Unknown DateType value "${ke}".`)}}(ke,re);if((L>0||Se>-L)&&(Se+=L),ke===Gt.Hours)0===Se&&-12===L&&(Se=12);else if(ke===Gt.FractionalSeconds)return function Bi(ke,_){return mi(ke,3).substring(0,_)}(Se,_);const we=W(he,be.MinusSign);return mi(Se,_,we,D,B)}}function jn(ke,_,L=X.Format,D=!1){return function(B,re){return function It(ke,_,L,D,B,re){switch(L){case Zt.Months:return function Xe(ke,_,L){const D=(0,r.H5H)(ke),re=De([D[r.KH2.MonthsFormat],D[r.KH2.MonthsStandalone]],_);return De(re,L)}(_,B,D)[ke.getMonth()];case Zt.Days:return function ge(ke,_,L){const D=(0,r.H5H)(ke),re=De([D[r.KH2.DaysFormat],D[r.KH2.DaysStandalone]],_);return De(re,L)}(_,B,D)[ke.getDay()];case Zt.DayPeriods:const he=ke.getHours(),Se=ke.getMinutes();if(re){const tt=function at(ke){const _=(0,r.H5H)(ke);return Ie(_),(_[r.KH2.ExtraData][2]||[]).map(D=>"string"==typeof D?pe(D):[pe(D[0]),pe(D[1])])}(_),rt=function K(ke,_,L){const D=(0,r.H5H)(ke);Ie(D);const re=De([D[r.KH2.ExtraData][0],D[r.KH2.ExtraData][1]],_)||[];return De(re,L)||[]}(_,B,D),Ot=tt.findIndex(At=>{if(Array.isArray(At)){const[Ke,Ye]=At,vt=he>=Ke.hours&&Se>=Ke.minutes,Be=he<Ye.hours||he===Ye.hours&&Se<Ye.minutes;if(Ke.hours<Ye.hours){if(vt&&Be)return!0}else if(vt||Be)return!0}else if(At.hours===he&&At.minutes===Se)return!0;return!1});if(-1!==Ot)return rt[Ot]}return function Ge(ke,_,L){const D=(0,r.H5H)(ke),re=De([D[r.KH2.DayPeriodsFormat],D[r.KH2.DayPeriodsStandalone]],_);return De(re,L)}(_,B,D)[he<12?0:1];case Zt.Eras:return function ot(ke,_){return De((0,r.H5H)(ke)[r.KH2.Eras],_)}(_,D)[ke.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${L}`)}}(B,re,ke,_,L,D)}}function vn(ke){return function(_,L,D){const B=-1*D,re=W(L,be.MinusSign),he=B>0?Math.floor(B/60):Math.ceil(B/60);switch(ke){case st.Short:return(B>=0?"+":"")+mi(he,2,re)+mi(Math.abs(B%60),2,re);case st.ShortGMT:return"GMT"+(B>=0?"+":"")+mi(he,1,re);case st.Long:return"GMT"+(B>=0?"+":"")+mi(he,2,re)+":"+mi(Math.abs(B%60),2,re);case st.Extended:return 0===D?"Z":(B>=0?"+":"")+mi(he,2,re)+":"+mi(Math.abs(B%60),2,re);default:throw new Error(`Unknown zone width "${ke}"`)}}}const Vn=0,ht=4;function Ct(ke){const _=ke.getDay(),L=0===_?-3:ht-_;return Un(ke.getFullYear(),ke.getMonth(),ke.getDate()+L)}function Et(ke,_=!1){return function(L,D){let B;if(_){const re=new Date(L.getFullYear(),L.getMonth(),1).getDay()-1,he=L.getDate();B=1+Math.floor((he+re)/7)}else{const re=Ct(L),he=function it(ke){const _=Un(ke,Vn,1).getDay();return Un(ke,0,1+(_<=ht?ht:ht+7)-_)}(re.getFullYear()),Se=re.getTime()-he.getTime();B=1+Math.round(Se/6048e5)}return mi(B,ke,W(D,be.MinusSign))}}function We(ke,_=!1){return function(L,D){return mi(Ct(L).getFullYear(),ke,W(D,be.MinusSign),_)}}const bt={};function wt(ke,_){ke=ke.replace(/:/g,"");const L=Date.parse("Jan 01, 1970 00:00:00 "+ke)/6e4;return isNaN(L)?_:L}function Tn(ke){return ke instanceof Date&&!isNaN(ke.valueOf())}const Cn=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Pi(ke){const _=parseInt(ke);if(isNaN(_))throw new Error("Invalid integer literal when parsing "+ke);return _}function Fn(ke,_){_=encodeURIComponent(_);for(const L of ke.split(";")){const D=L.indexOf("="),[B,re]=-1==D?[L,""]:[L.slice(0,D),L.slice(D+1)];if(B.trim()===_)return decodeURIComponent(re)}return null}const xi=/\s+/,fi=[];let Si=(()=>{var ke;class _{constructor(D,B){this._ngEl=D,this._renderer=B,this.initialClasses=fi,this.stateMap=new Map}set klass(D){this.initialClasses=null!=D?D.trim().split(xi):fi}set ngClass(D){this.rawClass="string"==typeof D?D.trim().split(xi):D}ngDoCheck(){for(const B of this.initialClasses)this._updateState(B,!0);const D=this.rawClass;if(Array.isArray(D)||D instanceof Set)for(const B of D)this._updateState(B,!0);else if(null!=D)for(const B of Object.keys(D))this._updateState(B,!!D[B]);this._applyStateDiff()}_updateState(D,B){const re=this.stateMap.get(D);void 0!==re?(re.enabled!==B&&(re.changed=!0,re.enabled=B),re.touched=!0):this.stateMap.set(D,{enabled:B,changed:!0,touched:!0})}_applyStateDiff(){for(const D of this.stateMap){const B=D[0],re=D[1];re.changed?(this._toggleClass(B,re.enabled),re.changed=!1):re.touched||(re.enabled&&this._toggleClass(B,!1),this.stateMap.delete(B)),re.touched=!1}}_toggleClass(D,B){(D=D.trim()).length>0&&D.split(xi).forEach(re=>{B?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return(ke=_).\u0275fac=function(D){return new(D||ke)(r.rXU(r.aKT),r.rXU(r.sFG))},ke.\u0275dir=r.FsC({type:ke,selectors:[["","ngClass",""]],inputs:{klass:[r.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0}),_})();class vr{constructor(_,L,D,B){this.$implicit=_,this.ngForOf=L,this.index=D,this.count=B}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 Dr=(()=>{var ke;class _{set ngForOf(D){this._ngForOf=D,this._ngForOfDirty=!0}set ngForTrackBy(D){this._trackByFn=D}get ngForTrackBy(){return this._trackByFn}constructor(D,B,re){this._viewContainer=D,this._template=B,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(D){D&&(this._template=D)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const D=this._ngForOf;!this._differ&&D&&(this._differ=this._differs.find(D).create(this.ngForTrackBy))}if(this._differ){const D=this._differ.diff(this._ngForOf);D&&this._applyChanges(D)}}_applyChanges(D){const B=this._viewContainer;D.forEachOperation((re,he,Se)=>{if(null==re.previousIndex)B.createEmbeddedView(this._template,new vr(re.item,this._ngForOf,-1,-1),null===Se?void 0:Se);else if(null==Se)B.remove(null===he?void 0:he);else if(null!==he){const we=B.get(he);B.move(we,Se),br(we,re)}});for(let re=0,he=B.length;re<he;re++){const we=B.get(re).context;we.index=re,we.count=he,we.ngForOf=this._ngForOf}D.forEachIdentityChange(re=>{br(B.get(re.currentIndex),re)})}static ngTemplateContextGuard(D,B){return!0}}return(ke=_).\u0275fac=function(D){return new(D||ke)(r.rXU(r.c1b),r.rXU(r.C4Q),r.rXU(r._q3))},ke.\u0275dir=r.FsC({type:ke,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),_})();function br(ke,_){ke.context.$implicit=_.item}let Oo=(()=>{var ke;class _{constructor(D,B){this._viewContainer=D,this._context=new Hr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){Ao("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){Ao("ngIfElse",D),this._elseTemplateRef=D,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(D,B){return!0}}return(ke=_).\u0275fac=function(D){return new(D||ke)(r.rXU(r.c1b),r.rXU(r.C4Q))},ke.\u0275dir=r.FsC({type:ke,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),_})();class Hr{constructor(){this.$implicit=null,this.ngIf=null}}function Ao(ke,_){if(_&&!_.createEmbeddedView)throw new Error(`${ke} must be a TemplateRef, but received '${(0,r.Tbb)(_)}'.`)}class Lo{constructor(_,L){this._viewContainerRef=_,this._templateRef=L,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(_){_&&!this._created?this.create():!_&&this._created&&this.destroy()}}let ao=(()=>{var ke;class _{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews.push(D)}_matchCase(D){const B=D===this._ngSwitch;return this._lastCasesMatched||=B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews.length>0&&D!==this._defaultUsed){this._defaultUsed=D;for(const B of this._defaultViews)B.enforceState(D)}}}return(ke=_).\u0275fac=function(D){return new(D||ke)},ke.\u0275dir=r.FsC({type:ke,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),_})(),Ar=(()=>{var ke;class _{constructor(D,B,re){this.ngSwitch=re,re._addCase(),this._view=new Lo(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return(ke=_).\u0275fac=function(D){return new(D||ke)(r.rXU(r.c1b),r.rXU(r.C4Q),r.rXU(ao,9))},ke.\u0275dir=r.FsC({type:ke,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),_})(),sn=(()=>{var ke;class _{constructor(D,B,re){re._addDefault(new Lo(D,B))}}return(ke=_).\u0275fac=function(D){return new(D||ke)(r.rXU(r.c1b),r.rXU(r.C4Q),r.rXU(ao,9))},ke.\u0275dir=r.FsC({type:ke,selectors:[["","ngSwitchDefault",""]],standalone:!0}),_})(),Ti=(()=>{var ke;class _{constructor(D,B,re){this._ngEl=D,this._differs=B,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[re,he]=D.split("."),Se=-1===re.indexOf("-")?void 0:r.czy.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,re,he?`${B}${he}`:B,Se):this._renderer.removeStyle(this._ngEl.nativeElement,re,Se)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return(ke=_).\u0275fac=function(D){return new(D||ke)(r.rXU(r.aKT),r.rXU(r.MKu),r.rXU(r.sFG))},ke.\u0275dir=r.FsC({type:ke,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),_})(),Gi=(()=>{var ke;class _{constructor(D){this._viewContainerRef=D,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(D){if(this._shouldRecreateView(D)){const B=this._viewContainerRef;if(this._viewRef&&B.remove(B.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const re=this._createContextForwardProxy();this._viewRef=B.createEmbeddedView(this.ngTemplateOutlet,re,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(D){return!!D.ngTemplateOutlet||!!D.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(D,B,re)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,B,re),get:(D,B,re)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,B,re)}})}}return(ke=_).\u0275fac=function(D){return new(D||ke)(r.rXU(r.c1b))},ke.\u0275dir=r.FsC({type:ke,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[r.OA$]}),_})();function _o(ke,_){return new r.wOt(2100,!1)}class zo{createSubscription(_,L){return(0,r.O8t)(()=>_.subscribe({next:L,error:D=>{throw D}}))}dispose(_){(0,r.O8t)(()=>_.unsubscribe())}}class as{createSubscription(_,L){return _.then(L,D=>{throw D})}dispose(_){}}const ps=new as,Hs=new zo;let Qr=(()=>{var ke;class _{constructor(D){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=D}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(D){if(!this._obj){if(D)try{this.markForCheckOnValueUpdate=!1,this._subscribe(D)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return D!==this._obj?(this._dispose(),this.transform(D)):this._latestValue}_subscribe(D){this._obj=D,this._strategy=this._selectStrategy(D),this._subscription=this._strategy.createSubscription(D,B=>this._updateLatestValue(D,B))}_selectStrategy(D){if((0,r.jNT)(D))return ps;if((0,r.zjR)(D))return Hs;throw _o()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(D,B){D===this._obj&&(this._latestValue=B,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}}return(ke=_).\u0275fac=function(D){return new(D||ke)(r.rXU(r.gRc,16))},ke.\u0275pipe=r.EJ8({name:"async",type:ke,pure:!1,standalone:!0}),_})(),Qo=(()=>{var ke;class _{transform(D){if(null==D)return null;if("string"!=typeof D)throw _o();return D.toUpperCase()}}return(ke=_).\u0275fac=function(D){return new(D||ke)},ke.\u0275pipe=r.EJ8({name:"uppercase",type:ke,pure:!0,standalone:!0}),_})();const hl=new r.nKC(""),Bs=new r.nKC("");let Oa=(()=>{var ke;class _{constructor(D,B,re){this.locale=D,this.defaultTimezone=B,this.defaultOptions=re}transform(D,B,re,he){if(null==D||""===D||D!=D)return null;try{return kn(D,B??this.defaultOptions?.dateFormat??"mediumDate",he||this.locale,re??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Se){throw _o()}}}return(ke=_).\u0275fac=function(D){return new(D||ke)(r.rXU(r.xe9,16),r.rXU(hl,24),r.rXU(Bs,24))},ke.\u0275pipe=r.EJ8({name:"date",type:ke,pure:!0,standalone:!0}),_})(),vs=(()=>{var ke;class _{constructor(D){this.differs=D,this.keyValues=[],this.compareFn=Ys}transform(D,B=Ys){if(!D||!(D instanceof Map)&&"object"!=typeof D)return null;this.differ??=this.differs.find(D).create();const re=this.differ.diff(D),he=B!==this.compareFn;return re&&(this.keyValues=[],re.forEachItem(Se=>{this.keyValues.push(function Zo(ke,_){return{key:ke,value:_}}(Se.key,Se.currentValue))})),(re||he)&&(this.keyValues.sort(B),this.compareFn=B),this.keyValues}}return(ke=_).\u0275fac=function(D){return new(D||ke)(r.rXU(r.MKu,16))},ke.\u0275pipe=r.EJ8({name:"keyvalue",type:ke,pure:!1,standalone:!0}),_})();function Ys(ke,_){const L=ke.key,D=_.key;if(L===D)return 0;if(void 0===L)return 1;if(void 0===D)return-1;if(null===L)return 1;if(null===D)return-1;if("string"==typeof L&&"string"==typeof D)return L<D?-1:1;if("number"==typeof L&&"number"==typeof D)return L-D;if("boolean"==typeof L&&"boolean"==typeof D)return L<D?-1:1;const B=String(L),re=String(D);return B==re?0:B<re?-1:1}let ho=(()=>{var ke;class _{constructor(D){this._locale=D}transform(D,B,re){if(!function Pa(ke){return!(null==ke||""===ke||ke!=ke)}(D))return null;re||=this._locale;try{return function uo(ke,_,L){return function Hi(ke,_,L,D,B,re,he=!1){let Se="",we=!1;if(isFinite(ke)){let tt=function Cs(ke){let D,B,re,he,Se,_=Math.abs(ke)+"",L=0;for((B=_.indexOf("."))>-1&&(_=_.replace(".","")),(re=_.search(/e/i))>0?(B<0&&(B=re),B+=+_.slice(re+1),_=_.substring(0,re)):B<0&&(B=_.length),re=0;"0"===_.charAt(re);re++);if(re===(Se=_.length))D=[0],B=1;else{for(Se--;"0"===_.charAt(Se);)Se--;for(B-=re,D=[],he=0;re<=Se;re++,he++)D[he]=Number(_.charAt(re))}return B>22&&(D=D.splice(0,21),L=B-1,B=1),{digits:D,exponent:L,integerLen:B}}(ke);he&&(tt=function ss(ke){if(0===ke.digits[0])return ke;const _=ke.digits.length-ke.integerLen;return ke.exponent?ke.exponent+=2:(0===_?ke.digits.push(0,0):1===_&&ke.digits.push(0),ke.integerLen+=2),ke}(tt));let rt=_.minInt,Ot=_.minFrac,At=_.maxFrac;if(re){const pt=re.match(Cn);if(null===pt)throw new Error(`${re} is not a valid digit info`);const $t=pt[1],hn=pt[3],mn=pt[5];null!=$t&&(rt=Pi($t)),null!=hn&&(Ot=Pi(hn)),null!=mn?At=Pi(mn):null!=hn&&Ot>At&&(At=Ot)}!function Pn(ke,_,L){if(_>L)throw new Error(`The minimum number of digits after fraction (${_}) is higher than the maximum (${L}).`);let D=ke.digits,B=D.length-ke.integerLen;const re=Math.min(Math.max(_,B),L);let he=re+ke.integerLen,Se=D[he];if(he>0){D.splice(Math.max(ke.integerLen,he));for(let Ot=he;Ot<D.length;Ot++)D[Ot]=0}else{B=Math.max(0,B),ke.integerLen=1,D.length=Math.max(1,he=re+1),D[0]=0;for(let Ot=1;Ot<he;Ot++)D[Ot]=0}if(Se>=5)if(he-1<0){for(let Ot=0;Ot>he;Ot--)D.unshift(0),ke.integerLen++;D.unshift(1),ke.integerLen++}else D[he-1]++;for(;B<Math.max(0,re);B++)D.push(0);let we=0!==re;const tt=_+ke.integerLen,rt=D.reduceRight(function(Ot,At,Ke,Ye){return Ye[Ke]=(At+=Ot)<10?At:At-10,we&&(0===Ye[Ke]&&Ke>=tt?Ye.pop():we=!1),At>=10?1:0},0);rt&&(D.unshift(rt),ke.integerLen++)}(tt,Ot,At);let Ke=tt.digits,Ye=tt.integerLen;const vt=tt.exponent;let Be=[];for(we=Ke.every(pt=>!pt);Ye<rt;Ye++)Ke.unshift(0);for(;Ye<0;Ye++)Ke.unshift(0);Ye>0?Be=Ke.splice(Ye,Ke.length):(Be=Ke,Ke=[0]);const _t=[];for(Ke.length>=_.lgSize&&_t.unshift(Ke.splice(-_.lgSize,Ke.length).join(""));Ke.length>_.gSize;)_t.unshift(Ke.splice(-_.gSize,Ke.length).join(""));Ke.length&&_t.unshift(Ke.join("")),Se=_t.join(W(L,D)),Be.length&&(Se+=W(L,B)+Be.join("")),vt&&(Se+=W(L,be.Exponential)+"+"+vt)}else Se=W(L,be.Infinity);return Se=ke<0&&!we?_.negPre+Se+_.negSuf:_.posPre+Se+_.posSuf,Se}(ke,function Nr(ke,_="-"){const L={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},D=ke.split(";"),B=D[0],re=D[1],he=-1!==B.indexOf(".")?B.split("."):[B.substring(0,B.lastIndexOf("0")+1),B.substring(B.lastIndexOf("0")+1)],Se=he[0],we=he[1]||"";L.posPre=Se.substring(0,Se.indexOf("#"));for(let rt=0;rt<we.length;rt++){const Ot=we.charAt(rt);"0"===Ot?L.minFrac=L.maxFrac=rt+1:"#"===Ot?L.maxFrac=rt+1:L.posSuf+=Ot}const tt=Se.split(",");if(L.gSize=tt[1]?tt[1].length:0,L.lgSize=tt[2]||tt[1]?(tt[2]||tt[1]).length:0,re){const rt=B.length-L.posPre.length-L.posSuf.length,Ot=re.indexOf("#");L.negPre=re.substring(0,Ot).replace(/'/g,""),L.negSuf=re.slice(Ot+rt).replace(/'/g,"")}else L.negPre=_+L.posPre,L.negSuf=L.posSuf;return L}(function Pe(ke,_){return(0,r.H5H)(ke)[r.KH2.NumberFormats][_]}(_,H.Decimal),W(_,be.MinusSign)),_,be.Group,be.Decimal,L)}(function _r(ke){if("string"==typeof ke&&!isNaN(Number(ke)-parseFloat(ke)))return Number(ke);if("number"!=typeof ke)throw new Error(`${ke} is not a number`);return ke}(D),re,B)}catch(he){throw _o()}}}return(ke=_).\u0275fac=function(D){return new(D||ke)(r.rXU(r.xe9,16))},ke.\u0275pipe=r.EJ8({name:"number",type:ke,pure:!0,standalone:!0}),_})();let sa=(()=>{var ke;class _{}return(ke=_).\u0275fac=function(D){return new(D||ke)},ke.\u0275mod=r.$C({type:ke}),ke.\u0275inj=r.G2t({}),_})();const Ba="browser",Ml="server";function To(ke){return ke===Ba}function po(ke){return ke===Ml}let Kt=(()=>{var ke;class _{}return(ke=_).\u0275prov=(0,r.jDH)({token:ke,providedIn:"root",factory:()=>To((0,r.WQX)(r.Agw))?new Zn((0,r.WQX)(M),window):new ei}),_})();class Zn{constructor(_,L){this.document=_,this.window=L,this.offset=()=>[0,0]}setOffset(_){this.offset=Array.isArray(_)?()=>_:_}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(_){this.window.scrollTo(_[0],_[1])}scrollToAnchor(_){const L=function Ii(ke,_){const L=ke.getElementById(_)||ke.getElementsByName(_)[0];if(L)return L;if("function"==typeof ke.createTreeWalker&&ke.body&&"function"==typeof ke.body.attachShadow){const D=ke.createTreeWalker(ke.body,NodeFilter.SHOW_ELEMENT);let B=D.currentNode;for(;B;){const re=B.shadowRoot;if(re){const he=re.getElementById(_)||re.querySelector(`[name="${_}"]`);if(he)return he}B=D.nextNode()}}return null}(this.document,_);L&&(this.scrollToElement(L),L.focus())}setHistoryScrollRestoration(_){this.window.history.scrollRestoration=_}scrollToElement(_){const L=_.getBoundingClientRect(),D=L.left+this.window.pageXOffset,B=L.top+this.window.pageYOffset,re=this.offset();this.window.scrollTo(D-re[0],B-re[1])}}class ei{setOffset(_){}getScrollPosition(){return[0,0]}scrollToPosition(_){}scrollToAnchor(_){}setHistoryScrollRestoration(_){}}class di{}},94485:(je,z,c)=>{"use strict";c.d(z,{JV:()=>s,Nl:()=>te,Qq:()=>Re,a7:()=>at,cS:()=>Xe,q1:()=>Fi,yz:()=>ot}),c(70650);var n=c(58527),v=c(43848),h=c(17053),f=c(19392),A=c(79539),M=c(8619),T=c(83915),E=c(43615),y=c(72147),S=c(61142);class l{}class s{}class u{constructor(Fn){this.normalizedNames=new Map,this.lazyUpdate=null,Fn?"string"==typeof Fn?this.lazyInit=()=>{this.headers=new Map,Fn.split("\n").forEach(xi=>{const fi=xi.indexOf(":");if(fi>0){const Si=xi.slice(0,fi),Yi=Si.toLowerCase(),Qi=xi.slice(fi+1).trim();this.maybeSetNormalizedName(Si,Yi),this.headers.has(Yi)?this.headers.get(Yi).push(Qi):this.headers.set(Yi,[Qi])}})}:typeof Headers<"u"&&Fn instanceof Headers?(this.headers=new Map,Fn.forEach((xi,fi)=>{this.setHeaderEntries(fi,xi)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Fn).forEach(([xi,fi])=>{this.setHeaderEntries(xi,fi)})}:this.headers=new Map}has(Fn){return this.init(),this.headers.has(Fn.toLowerCase())}get(Fn){this.init();const xi=this.headers.get(Fn.toLowerCase());return xi&&xi.length>0?xi[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Fn){return this.init(),this.headers.get(Fn.toLowerCase())||null}append(Fn,xi){return this.clone({name:Fn,value:xi,op:"a"})}set(Fn,xi){return this.clone({name:Fn,value:xi,op:"s"})}delete(Fn,xi){return this.clone({name:Fn,value:xi,op:"d"})}maybeSetNormalizedName(Fn,xi){this.normalizedNames.has(xi)||this.normalizedNames.set(xi,Fn)}init(){this.lazyInit&&(this.lazyInit instanceof u?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Fn=>this.applyUpdate(Fn)),this.lazyUpdate=null))}copyFrom(Fn){Fn.init(),Array.from(Fn.headers.keys()).forEach(xi=>{this.headers.set(xi,Fn.headers.get(xi)),this.normalizedNames.set(xi,Fn.normalizedNames.get(xi))})}clone(Fn){const xi=new u;return xi.lazyInit=this.lazyInit&&this.lazyInit instanceof u?this.lazyInit:this,xi.lazyUpdate=(this.lazyUpdate||[]).concat([Fn]),xi}applyUpdate(Fn){const xi=Fn.name.toLowerCase();switch(Fn.op){case"a":case"s":let fi=Fn.value;if("string"==typeof fi&&(fi=[fi]),0===fi.length)return;this.maybeSetNormalizedName(Fn.name,xi);const Si=("a"===Fn.op?this.headers.get(xi):void 0)||[];Si.push(...fi),this.headers.set(xi,Si);break;case"d":const Yi=Fn.value;if(Yi){let Qi=this.headers.get(xi);if(!Qi)return;Qi=Qi.filter(vr=>-1===Yi.indexOf(vr)),0===Qi.length?(this.headers.delete(xi),this.normalizedNames.delete(xi)):this.headers.set(xi,Qi)}else this.headers.delete(xi),this.normalizedNames.delete(xi)}}setHeaderEntries(Fn,xi){const fi=(Array.isArray(xi)?xi:[xi]).map(Yi=>Yi.toString()),Si=Fn.toLowerCase();this.headers.set(Si,fi),this.maybeSetNormalizedName(Fn,Si)}forEach(Fn){this.init(),Array.from(this.normalizedNames.keys()).forEach(xi=>Fn(this.normalizedNames.get(xi),this.headers.get(xi)))}}class I{encodeKey(Fn){return j(Fn)}encodeValue(Fn){return j(Fn)}decodeKey(Fn){return decodeURIComponent(Fn)}decodeValue(Fn){return decodeURIComponent(Fn)}}const O=/%(\d[a-f0-9])/gi,Y={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function j(dn){return encodeURIComponent(dn).replace(O,(Fn,xi)=>Y[xi]??Fn)}function fe(dn){return`${dn}`}class te{constructor(Fn={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Fn.encoder||new I,Fn.fromString){if(Fn.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function R(dn,Fn){const xi=new Map;return dn.length>0&&dn.replace(/^\?/,"").split("&").forEach(Si=>{const Yi=Si.indexOf("="),[Qi,vr]=-1==Yi?[Fn.decodeKey(Si),""]:[Fn.decodeKey(Si.slice(0,Yi)),Fn.decodeValue(Si.slice(Yi+1))],Dr=xi.get(Qi)||[];Dr.push(vr),xi.set(Qi,Dr)}),xi}(Fn.fromString,this.encoder)}else Fn.fromObject?(this.map=new Map,Object.keys(Fn.fromObject).forEach(xi=>{const fi=Fn.fromObject[xi],Si=Array.isArray(fi)?fi.map(fe):[fe(fi)];this.map.set(xi,Si)})):this.map=null}has(Fn){return this.init(),this.map.has(Fn)}get(Fn){this.init();const xi=this.map.get(Fn);return xi?xi[0]:null}getAll(Fn){return this.init(),this.map.get(Fn)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Fn,xi){return this.clone({param:Fn,value:xi,op:"a"})}appendAll(Fn){const xi=[];return Object.keys(Fn).forEach(fi=>{const Si=Fn[fi];Array.isArray(Si)?Si.forEach(Yi=>{xi.push({param:fi,value:Yi,op:"a"})}):xi.push({param:fi,value:Si,op:"a"})}),this.clone(xi)}set(Fn,xi){return this.clone({param:Fn,value:xi,op:"s"})}delete(Fn,xi){return this.clone({param:Fn,value:xi,op:"d"})}toString(){return this.init(),this.keys().map(Fn=>{const xi=this.encoder.encodeKey(Fn);return this.map.get(Fn).map(fi=>xi+"="+this.encoder.encodeValue(fi)).join("&")}).filter(Fn=>""!==Fn).join("&")}clone(Fn){const xi=new te({encoder:this.encoder});return xi.cloneFrom=this.cloneFrom||this,xi.updates=(this.updates||[]).concat(Fn),xi}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Fn=>this.map.set(Fn,this.cloneFrom.map.get(Fn))),this.updates.forEach(Fn=>{switch(Fn.op){case"a":case"s":const xi=("a"===Fn.op?this.map.get(Fn.param):void 0)||[];xi.push(fe(Fn.value)),this.map.set(Fn.param,xi);break;case"d":if(void 0===Fn.value){this.map.delete(Fn.param);break}{let fi=this.map.get(Fn.param)||[];const Si=fi.indexOf(fe(Fn.value));-1!==Si&&fi.splice(Si,1),fi.length>0?this.map.set(Fn.param,fi):this.map.delete(Fn.param)}}}),this.cloneFrom=this.updates=null)}}class H{constructor(){this.map=new Map}set(Fn,xi){return this.map.set(Fn,xi),this}get(Fn){return this.map.has(Fn)||this.map.set(Fn,Fn.defaultValue()),this.map.get(Fn)}delete(Fn){return this.map.delete(Fn),this}has(Fn){return this.map.has(Fn)}keys(){return this.map.keys()}}function X(dn){return typeof ArrayBuffer<"u"&&dn instanceof ArrayBuffer}function ue(dn){return typeof Blob<"u"&&dn instanceof Blob}function Me(dn){return typeof FormData<"u"&&dn instanceof FormData}class Q{constructor(Fn,xi,fi,Si){let Yi;if(this.url=xi,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Fn.toUpperCase(),function Z(dn){switch(dn){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Si?(this.body=void 0!==fi?fi:null,Yi=Si):Yi=fi,Yi&&(this.reportProgress=!!Yi.reportProgress,this.withCredentials=!!Yi.withCredentials,Yi.responseType&&(this.responseType=Yi.responseType),Yi.headers&&(this.headers=Yi.headers),Yi.context&&(this.context=Yi.context),Yi.params&&(this.params=Yi.params),this.transferCache=Yi.transferCache),this.headers??=new u,this.context??=new H,this.params){const Qi=this.params.toString();if(0===Qi.length)this.urlWithParams=xi;else{const vr=xi.indexOf("?");this.urlWithParams=xi+(-1===vr?"?":vr<xi.length-1?"&":"")+Qi}}else this.params=new te,this.urlWithParams=xi}serializeBody(){return null===this.body?null:"string"==typeof this.body||X(this.body)||ue(this.body)||Me(this.body)||function be(dn){return typeof URLSearchParams<"u"&&dn instanceof URLSearchParams}(this.body)?this.body:this.body instanceof te?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||Me(this.body)?null:ue(this.body)?this.body.type||null:X(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof te?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Fn={}){const xi=Fn.method||this.method,fi=Fn.url||this.url,Si=Fn.responseType||this.responseType,Yi=Fn.transferCache??this.transferCache,Qi=void 0!==Fn.body?Fn.body:this.body,vr=Fn.withCredentials??this.withCredentials,Dr=Fn.reportProgress??this.reportProgress;let br=Fn.headers||this.headers,ro=Fn.params||this.params;const Oo=Fn.context??this.context;return void 0!==Fn.setHeaders&&(br=Object.keys(Fn.setHeaders).reduce((Hr,Ao)=>Hr.set(Ao,Fn.setHeaders[Ao]),br)),Fn.setParams&&(ro=Object.keys(Fn.setParams).reduce((Hr,Ao)=>Hr.set(Ao,Fn.setParams[Ao]),ro)),new Q(xi,fi,Qi,{params:ro,headers:br,context:Oo,reportProgress:Dr,responseType:Si,withCredentials:vr,transferCache:Yi})}}var ne=function(dn){return dn[dn.Sent=0]="Sent",dn[dn.UploadProgress=1]="UploadProgress",dn[dn.ResponseHeader=2]="ResponseHeader",dn[dn.DownloadProgress=3]="DownloadProgress",dn[dn.Response=4]="Response",dn[dn.User=5]="User",dn}(ne||{});class Ge{constructor(Fn,xi=dt.Ok,fi="OK"){this.headers=Fn.headers||new u,this.status=void 0!==Fn.status?Fn.status:xi,this.statusText=Fn.statusText||fi,this.url=Fn.url||null,this.ok=this.status>=200&&this.status<300}}class ge extends Ge{constructor(Fn={}){super(Fn),this.type=ne.ResponseHeader}clone(Fn={}){return new ge({headers:Fn.headers||this.headers,status:void 0!==Fn.status?Fn.status:this.status,statusText:Fn.statusText||this.statusText,url:Fn.url||this.url||void 0})}}class Xe extends Ge{constructor(Fn={}){super(Fn),this.type=ne.Response,this.body=void 0!==Fn.body?Fn.body:null}clone(Fn={}){return new Xe({body:void 0!==Fn.body?Fn.body:this.body,headers:Fn.headers||this.headers,status:void 0!==Fn.status?Fn.status:this.status,statusText:Fn.statusText||this.statusText,url:Fn.url||this.url||void 0})}}class ot extends Ge{constructor(Fn){super(Fn,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Fn.url||"(unknown url)"}`:`Http failure response for ${Fn.url||"(unknown url)"}: ${Fn.status} ${Fn.statusText}`,this.error=Fn.error||null}}var dt=function(dn){return dn[dn.Continue=100]="Continue",dn[dn.SwitchingProtocols=101]="SwitchingProtocols",dn[dn.Processing=102]="Processing",dn[dn.EarlyHints=103]="EarlyHints",dn[dn.Ok=200]="Ok",dn[dn.Created=201]="Created",dn[dn.Accepted=202]="Accepted",dn[dn.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",dn[dn.NoContent=204]="NoContent",dn[dn.ResetContent=205]="ResetContent",dn[dn.PartialContent=206]="PartialContent",dn[dn.MultiStatus=207]="MultiStatus",dn[dn.AlreadyReported=208]="AlreadyReported",dn[dn.ImUsed=226]="ImUsed",dn[dn.MultipleChoices=300]="MultipleChoices",dn[dn.MovedPermanently=301]="MovedPermanently",dn[dn.Found=302]="Found",dn[dn.SeeOther=303]="SeeOther",dn[dn.NotModified=304]="NotModified",dn[dn.UseProxy=305]="UseProxy",dn[dn.Unused=306]="Unused",dn[dn.TemporaryRedirect=307]="TemporaryRedirect",dn[dn.PermanentRedirect=308]="PermanentRedirect",dn[dn.BadRequest=400]="BadRequest",dn[dn.Unauthorized=401]="Unauthorized",dn[dn.PaymentRequired=402]="PaymentRequired",dn[dn.Forbidden=403]="Forbidden",dn[dn.NotFound=404]="NotFound",dn[dn.MethodNotAllowed=405]="MethodNotAllowed",dn[dn.NotAcceptable=406]="NotAcceptable",dn[dn.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",dn[dn.RequestTimeout=408]="RequestTimeout",dn[dn.Conflict=409]="Conflict",dn[dn.Gone=410]="Gone",dn[dn.LengthRequired=411]="LengthRequired",dn[dn.PreconditionFailed=412]="PreconditionFailed",dn[dn.PayloadTooLarge=413]="PayloadTooLarge",dn[dn.UriTooLong=414]="UriTooLong",dn[dn.UnsupportedMediaType=415]="UnsupportedMediaType",dn[dn.RangeNotSatisfiable=416]="RangeNotSatisfiable",dn[dn.ExpectationFailed=417]="ExpectationFailed",dn[dn.ImATeapot=418]="ImATeapot",dn[dn.MisdirectedRequest=421]="MisdirectedRequest",dn[dn.UnprocessableEntity=422]="UnprocessableEntity",dn[dn.Locked=423]="Locked",dn[dn.FailedDependency=424]="FailedDependency",dn[dn.TooEarly=425]="TooEarly",dn[dn.UpgradeRequired=426]="UpgradeRequired",dn[dn.PreconditionRequired=428]="PreconditionRequired",dn[dn.TooManyRequests=429]="TooManyRequests",dn[dn.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",dn[dn.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",dn[dn.InternalServerError=500]="InternalServerError",dn[dn.NotImplemented=501]="NotImplemented",dn[dn.BadGateway=502]="BadGateway",dn[dn.ServiceUnavailable=503]="ServiceUnavailable",dn[dn.GatewayTimeout=504]="GatewayTimeout",dn[dn.HttpVersionNotSupported=505]="HttpVersionNotSupported",dn[dn.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",dn[dn.InsufficientStorage=507]="InsufficientStorage",dn[dn.LoopDetected=508]="LoopDetected",dn[dn.NotExtended=510]="NotExtended",dn[dn.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",dn}(dt||{});function xe(dn,Fn){return{body:Fn,headers:dn.headers,context:dn.context,observe:dn.observe,params:dn.params,reportProgress:dn.reportProgress,responseType:dn.responseType,withCredentials:dn.withCredentials,transferCache:dn.transferCache}}let Re=(()=>{var dn;class Fn{constructor(fi){this.handler=fi}request(fi,Si,Yi={}){let Qi;if(fi instanceof Q)Qi=fi;else{let br,ro;br=Yi.headers instanceof u?Yi.headers:new u(Yi.headers),Yi.params&&(ro=Yi.params instanceof te?Yi.params:new te({fromObject:Yi.params})),Qi=new Q(fi,Si,void 0!==Yi.body?Yi.body:null,{headers:br,context:Yi.context,params:ro,reportProgress:Yi.reportProgress,responseType:Yi.responseType||"json",withCredentials:Yi.withCredentials,transferCache:Yi.transferCache})}const vr=(0,v.of)(Qi).pipe((0,A.H)(br=>this.handler.handle(br)));if(fi instanceof Q||"events"===Yi.observe)return vr;const Dr=vr.pipe((0,M.p)(br=>br instanceof Xe));switch(Yi.observe||"body"){case"body":switch(Qi.responseType){case"arraybuffer":return Dr.pipe((0,T.T)(br=>{if(null!==br.body&&!(br.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return br.body}));case"blob":return Dr.pipe((0,T.T)(br=>{if(null!==br.body&&!(br.body instanceof Blob))throw new Error("Response is not a Blob.");return br.body}));case"text":return Dr.pipe((0,T.T)(br=>{if(null!==br.body&&"string"!=typeof br.body)throw new Error("Response is not a string.");return br.body}));default:return Dr.pipe((0,T.T)(br=>br.body))}case"response":return Dr;default:throw new Error(`Unreachable: unhandled observe type ${Yi.observe}}`)}}delete(fi,Si={}){return this.request("DELETE",fi,Si)}get(fi,Si={}){return this.request("GET",fi,Si)}head(fi,Si={}){return this.request("HEAD",fi,Si)}jsonp(fi,Si){return this.request("JSONP",fi,{params:(new te).append(Si,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(fi,Si={}){return this.request("OPTIONS",fi,Si)}patch(fi,Si,Yi={}){return this.request("PATCH",fi,xe(Yi,Si))}post(fi,Si,Yi={}){return this.request("POST",fi,xe(Yi,Si))}put(fi,Si,Yi={}){return this.request("PUT",fi,xe(Yi,Si))}}return(dn=Fn).\u0275fac=function(fi){return new(fi||dn)(n.KVO(l))},dn.\u0275prov=n.jDH({token:dn,factory:dn.\u0275fac}),Fn})();function Oe(dn,Fn){return Fn(dn)}function ye(dn,Fn){return(xi,fi)=>Fn.intercept(xi,{handle:Si=>dn(Si,fi)})}const at=new n.nKC(""),K=new n.nKC(""),ve=new n.nKC(""),De=new n.nKC("");function pe(){let dn=null;return(Fn,xi)=>{null===dn&&(dn=((0,n.WQX)(at,{optional:!0})??[]).reduceRight(ye,Oe));const fi=(0,n.WQX)(n.TgB),Si=fi.add();return dn(Fn,xi).pipe((0,E.j)(()=>fi.remove(Si)))}}let Vt=(()=>{var dn;class Fn extends l{constructor(fi,Si){super(),this.backend=fi,this.injector=Si,this.chain=null,this.pendingTasks=(0,n.WQX)(n.TgB);const Yi=(0,n.WQX)(De,{optional:!0});this.backend=Yi??fi}handle(fi){if(null===this.chain){const Yi=Array.from(new Set([...this.injector.get(K),...this.injector.get(ve,[])]));this.chain=Yi.reduceRight((Qi,vr)=>function Ie(dn,Fn,xi){return(fi,Si)=>(0,n.N4e)(xi,()=>Fn(fi,Yi=>dn(Yi,Si)))}(Qi,vr,this.injector),Oe)}const Si=this.pendingTasks.add();return this.chain(fi,Yi=>this.backend.handle(Yi)).pipe((0,E.j)(()=>this.pendingTasks.remove(Si)))}}return(dn=Fn).\u0275fac=function(fi){return new(fi||dn)(n.KVO(s),n.KVO(n.uvJ))},dn.\u0275prov=n.jDH({token:dn,factory:dn.\u0275fac}),Fn})();const Bi=/^\)\]\}',?\n/;let Bn=(()=>{var dn;class Fn{constructor(fi){this.xhrFactory=fi}handle(fi){if("JSONP"===fi.method)throw new n.wOt(-2800,!1);const Si=this.xhrFactory;return(Si.\u0275loadImpl?(0,f.H)(Si.\u0275loadImpl()):(0,v.of)(null)).pipe((0,y.n)(()=>new h.c(Qi=>{const vr=Si.build();if(vr.open(fi.method,fi.urlWithParams),fi.withCredentials&&(vr.withCredentials=!0),fi.headers.forEach((ao,Ar)=>vr.setRequestHeader(ao,Ar.join(","))),fi.headers.has("Accept")||vr.setRequestHeader("Accept","application/json, text/plain, */*"),!fi.headers.has("Content-Type")){const ao=fi.detectContentTypeHeader();null!==ao&&vr.setRequestHeader("Content-Type",ao)}if(fi.responseType){const ao=fi.responseType.toLowerCase();vr.responseType="json"!==ao?ao:"text"}const Dr=fi.serializeBody();let br=null;const ro=()=>{if(null!==br)return br;const ao=vr.statusText||"OK",Ar=new u(vr.getAllResponseHeaders()),sn=function _i(dn){return"responseURL"in dn&&dn.responseURL?dn.responseURL:/^X-Request-URL:/m.test(dn.getAllResponseHeaders())?dn.getResponseHeader("X-Request-URL"):null}(vr)||fi.url;return br=new ge({headers:Ar,status:vr.status,statusText:ao,url:sn}),br},Oo=()=>{let{headers:ao,status:Ar,statusText:sn,url:Gn}=ro(),$n=null;Ar!==dt.NoContent&&($n=typeof vr.response>"u"?vr.responseText:vr.response),0===Ar&&(Ar=$n?dt.Ok:0);let Ci=Ar>=200&&Ar<300;if("json"===fi.responseType&&"string"==typeof $n){const Wi=$n;$n=$n.replace(Bi,"");try{$n=""!==$n?JSON.parse($n):null}catch(Ti){$n=Wi,Ci&&(Ci=!1,$n={error:Ti,text:$n})}}Ci?(Qi.next(new Xe({body:$n,headers:ao,status:Ar,statusText:sn,url:Gn||void 0})),Qi.complete()):Qi.error(new ot({error:$n,headers:ao,status:Ar,statusText:sn,url:Gn||void 0}))},Hr=ao=>{const{url:Ar}=ro(),sn=new ot({error:ao,status:vr.status||0,statusText:vr.statusText||"Unknown Error",url:Ar||void 0});Qi.error(sn)};let Ao=!1;const Co=ao=>{Ao||(Qi.next(ro()),Ao=!0);let Ar={type:ne.DownloadProgress,loaded:ao.loaded};ao.lengthComputable&&(Ar.total=ao.total),"text"===fi.responseType&&vr.responseText&&(Ar.partialText=vr.responseText),Qi.next(Ar)},Lo=ao=>{let Ar={type:ne.UploadProgress,loaded:ao.loaded};ao.lengthComputable&&(Ar.total=ao.total),Qi.next(Ar)};return vr.addEventListener("load",Oo),vr.addEventListener("error",Hr),vr.addEventListener("timeout",Hr),vr.addEventListener("abort",Hr),fi.reportProgress&&(vr.addEventListener("progress",Co),null!==Dr&&vr.upload&&vr.upload.addEventListener("progress",Lo)),vr.send(Dr),Qi.next({type:ne.Sent}),()=>{vr.removeEventListener("error",Hr),vr.removeEventListener("abort",Hr),vr.removeEventListener("load",Oo),vr.removeEventListener("timeout",Hr),fi.reportProgress&&(vr.removeEventListener("progress",Co),null!==Dr&&vr.upload&&vr.upload.removeEventListener("progress",Lo)),vr.readyState!==vr.DONE&&vr.abort()}})))}}return(dn=Fn).\u0275fac=function(fi){return new(fi||dn)(n.KVO(S.N0))},dn.\u0275prov=n.jDH({token:dn,factory:dn.\u0275fac}),Fn})();const jn=new n.nKC(""),vn=new n.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),ht=new n.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class it{}let Ct=(()=>{var dn;class Fn{constructor(fi,Si,Yi){this.doc=fi,this.platform=Si,this.cookieName=Yi,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const fi=this.doc.cookie||"";return fi!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,S._b)(fi,this.cookieName),this.lastCookieString=fi),this.lastToken}}return(dn=Fn).\u0275fac=function(fi){return new(fi||dn)(n.KVO(S.qQ),n.KVO(n.Agw),n.KVO(vn))},dn.\u0275prov=n.jDH({token:dn,factory:dn.\u0275fac}),Fn})();function Et(dn,Fn){const xi=dn.url.toLowerCase();if(!(0,n.WQX)(jn)||"GET"===dn.method||"HEAD"===dn.method||xi.startsWith("http://")||xi.startsWith("https://"))return Fn(dn);const fi=(0,n.WQX)(it).getToken(),Si=(0,n.WQX)(ht);return null!=fi&&!dn.headers.has(Si)&&(dn=dn.clone({headers:dn.headers.set(Si,fi)})),Fn(dn)}var bt=function(dn){return dn[dn.Interceptors=0]="Interceptors",dn[dn.LegacyInterceptors=1]="LegacyInterceptors",dn[dn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",dn[dn.NoXsrfProtection=3]="NoXsrfProtection",dn[dn.JsonpSupport=4]="JsonpSupport",dn[dn.RequestsMadeViaParent=5]="RequestsMadeViaParent",dn[dn.Fetch=6]="Fetch",dn}(bt||{});function gt(dn,Fn){return{\u0275kind:dn,\u0275providers:Fn}}function wt(...dn){const Fn=[Re,Bn,Vt,{provide:l,useExisting:Vt},{provide:s,useExisting:Bn},{provide:K,useValue:Et,multi:!0},{provide:jn,useValue:!0},{provide:it,useClass:Ct}];for(const xi of dn)Fn.push(...xi.\u0275providers);return(0,n.EmA)(Fn)}const In=new n.nKC("");let Fi=(()=>{var dn;class Fn{}return(dn=Fn).\u0275fac=function(fi){return new(fi||dn)},dn.\u0275mod=n.$C({type:dn}),dn.\u0275inj=n.G2t({providers:[wt(gt(bt.LegacyInterceptors,[{provide:In,useFactory:pe},{provide:K,useExisting:In,multi:!0}]))]}),Fn})()},58527:(je,z,c)=>{"use strict";c.d(z,{bc$:()=>Vh,iLQ:()=>Gb,sZ2:()=>xp,hnV:()=>BM,Hbi:()=>oP,o8S:()=>Rm,BIS:()=>Eg,gRc:()=>JM,Ql9:()=>wO,OM3:()=>Ev,Ocv:()=>BO,Z63:()=>Pr,aKT:()=>Wu,uvJ:()=>Ea,zcH:()=>Bc,bkB:()=>Qs,y_5:()=>wa,$GK:()=>Qr,nKC:()=>Si,zZn:()=>Yl,_q3:()=>Xb,MKu:()=>Qb,xe9:()=>iy,Co$:()=>Zm,Vns:()=>uh,SKi:()=>Rc,Xx1:()=>To,Agw:()=>Xu,PLl:()=>Bh,rOR:()=>_d,sFG:()=>v1,_9s:()=>Hy,czy:()=>V,WPN:()=>iu,kdw:()=>ta,C4Q:()=>mv,NYb:()=>MO,giA:()=>FM,RxE:()=>OM,c1b:()=>d_,gXe:()=>ba,mal:()=>Xy,L39:()=>LP,Ol2:()=>Jm,w6W:()=>VS,oH4:()=>KM,SmG:()=>YO,Rfq:()=>Et,WQX:()=>_r,QuC:()=>Ht,EmA:()=>or,fpN:()=>rP,HJs:()=>HP,N4e:()=>na,O8t:()=>kP,An2:()=>Cv,H3F:()=>PM,H8p:()=>Xs,KH2:()=>Qv,TgB:()=>cg,wOt:()=>Qe,WHO:()=>NM,e01:()=>kM,lNU:()=>pe,h9k:()=>Rg,$MX:()=>Kh,ZF7:()=>eh,Kcf:()=>xu,e5t:()=>Ya,UyX:()=>tm,cWb:()=>qo,osQ:()=>dc,H5H:()=>mb,Zy3:()=>zt,mq5:()=>UC,JZv:()=>_i,LfX:()=>Pi,plB:()=>lm,jNT:()=>Bb,zjR:()=>UM,TL$:()=>Tp,Tbb:()=>Vn,rcV:()=>tl,Vt3:()=>b_,Mj6:()=>Os,GFd:()=>I0,OA$:()=>Nu,Jv_:()=>XE,aNF:()=>QE,R7$:()=>Md,BMQ:()=>qS,HbH:()=>MC,ZvI:()=>wC,AVh:()=>sb,wni:()=>AE,VBU:()=>Br,FsC:()=>Ts,jDH:()=>Nr,G2t:()=>Cs,$C:()=>ys,EJ8:()=>yr,rXU:()=>Cl,nrm:()=>hb,eu8:()=>pb,bVm:()=>$0,qex:()=>W0,k0s:()=>Y0,j41:()=>j0,RV6:()=>FC,xGo:()=>Mc,Mr5:()=>fb,KVO:()=>cs,kS0:()=>ju,QTQ:()=>ms,bIt:()=>yb,lsd:()=>DE,joV:()=>bh,qSk:()=>Vu,XpG:()=>fE,nI1:()=>cM,bMT:()=>dM,i5U:()=>uM,brH:()=>hM,SdG:()=>mE,NAR:()=>gE,Y8G:()=>ib,FS9:()=>Cb,lJ4:()=>qE,eq3:()=>eM,l_i:()=>tM,sMw:()=>nM,zJS:()=>iM,mGM:()=>xE,sdS:()=>OE,Njj:()=>kc,tSv:()=>Gg,eBV:()=>Pl,npT:()=>jp,f$h:()=>bd,B4B:()=>Xo,n$t:()=>Ng,wjB:()=>ZE,xc7:()=>ob,Kam:()=>Sb,zvX:()=>gb,DNE:()=>Tm,C5r:()=>pM,EFF:()=>BE,JRh:()=>Mb,SpI:()=>Z0,Lme:()=>Ab,E5c:()=>Tb,DH7:()=>zE,mxI:()=>Db,R50:()=>xb,GBs:()=>TE}),c(70650);let v=null,f=1;const A=Symbol("SIGNAL");function M(a){const d=v;return v=a,d}function u(a){if((!H(a)||a.dirty)&&(a.dirty||a.lastCleanEpoch!==f)){if(!a.producerMustRecompute(a)&&!j(a))return a.dirty=!1,void(a.lastCleanEpoch=f);a.producerRecomputeValue(a),a.dirty=!1,a.lastCleanEpoch=f}}function j(a){Z(a);for(let d=0;d<a.producerNode.length;d++){const g=a.producerNode[d],C=a.producerLastReadVersion[d];if(C!==g.version||(u(g),C!==g.version))return!0}return!1}function ce(a,d){if(function X(a){a.liveConsumerNode??=[],a.liveConsumerIndexOfThis??=[]}(a),Z(a),1===a.liveConsumerNode.length)for(let C=0;C<a.producerNode.length;C++)ce(a.producerNode[C],a.producerIndexOfThis[C]);const g=a.liveConsumerNode.length-1;if(a.liveConsumerNode[d]=a.liveConsumerNode[g],a.liveConsumerIndexOfThis[d]=a.liveConsumerIndexOfThis[g],a.liveConsumerNode.length--,a.liveConsumerIndexOfThis.length--,d<a.liveConsumerNode.length){const C=a.liveConsumerIndexOfThis[d],P=a.liveConsumerNode[d];Z(P),P.producerIndexOfThis[C]=d}}function H(a){return a.consumerIsAlwaysLive||(a?.liveConsumerNode?.length??0)>0}function Z(a){a.producerNode??=[],a.producerIndexOfThis??=[],a.producerLastReadVersion??=[]}let ge=null;var Ie=c(80583),at=c(10399),K=c(26513),ve=c(83915);const pe="https://g.co/ng/security#xss";class Qe extends Error{constructor(d,g){super(zt(d,g)),this.code=d}}function zt(a,d){return`NG0${Math.abs(a)}${d?": "+d:""}`}function Gt(a){return{toString:a}.toString()}const kn="__parameters__";function mi(a,d,g){return Gt(()=>{const C=function qe(a){return function(...g){if(a){const C=a(...g);for(const P in C)this[P]=C[P]}}}(d);function P(...G){if(this instanceof P)return C.apply(this,G),this;const se=new P(...G);return Ae.annotation=se,Ae;function Ae(Ve,Pt,Qt){const _n=Ve.hasOwnProperty(kn)?Ve[kn]:Object.defineProperty(Ve,kn,{value:[]})[kn];for(;_n.length<=Qt;)_n.push(null);return(_n[Qt]=_n[Qt]||[]).push(se),Ve}}return g&&(P.prototype=Object.create(g.prototype)),P.prototype.ngMetadataName=a,P.annotationCls=P,P})}const _i=globalThis;function It(a){for(let d in a)if(a[d]===It)return d;throw Error("Could not find renamed property on target object.")}function vn(a,d){for(const g in d)d.hasOwnProperty(g)&&!a.hasOwnProperty(g)&&(a[g]=d[g])}function Vn(a){if("string"==typeof a)return a;if(Array.isArray(a))return"["+a.map(Vn).join(", ")+"]";if(null==a)return""+a;if(a.overriddenName)return`${a.overriddenName}`;if(a.name)return`${a.name}`;const d=a.toString();if(null==d)return""+d;const g=d.indexOf("\n");return-1===g?d:d.substring(0,g)}function ht(a,d){return null==a||""===a?null===d?"":d:null==d||""===d?a:a+" "+d}const Ct=It({__forward_ref__:It});function Et(a){return a.__forward_ref__=Et,a.toString=function(){return Vn(this())},a}function We(a){return bt(a)?a():a}function bt(a){return"function"==typeof a&&a.hasOwnProperty(Ct)&&a.__forward_ref__===Et}function Nr(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}}function Cs(a){return{providers:a.providers||[],imports:a.imports||[]}}function Pn(a){return li(a,dn)||li(a,xi)}function Pi(a){return null!==Pn(a)}function li(a,d){return a.hasOwnProperty(d)?a[d]:null}function Fr(a){return a&&(a.hasOwnProperty(Fn)||a.hasOwnProperty(fi))?a[Fn]:null}const dn=It({\u0275prov:It}),Fn=It({\u0275inj:It}),xi=It({ngInjectableDef:It}),fi=It({ngInjectorDef:It});class Si{constructor(d,g){this._desc=d,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=Nr({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Lo(a){return a&&!!a.\u0275providers}const ao=It({\u0275cmp:It}),Ar=It({\u0275dir:It}),sn=It({\u0275pipe:It}),Gn=It({\u0275mod:It}),$n=It({\u0275fac:It}),Ci=It({__NG_ELEMENT_ID__:It}),Wi=It({__NG_ENV_ID__:It});function Ti(a){return"string"==typeof a?a:null==a?"":String(a)}function Hs(a,d){throw new Qe(-201,!1)}var Qr=function(a){return a[a.Default=0]="Default",a[a.Host=1]="Host",a[a.Self=2]="Self",a[a.SkipSelf=4]="SkipSelf",a[a.Optional=8]="Optional",a}(Qr||{});let ca;function Js(){return ca}function ts(a){const d=ca;return ca=a,d}function Qo(a,d,g){const C=Pn(a);return C&&"root"==C.providedIn?void 0===C.value?C.value=C.factory():C.value:g&Qr.Optional?null:void 0!==d?d:void Hs()}const Bs={},Oa="__NG_DI_FLAG__",qs="ngTempTokenPath",js=/\n/gm,Zo="__source";let vs;function ho(a){const d=vs;return vs=a,d}function Bo(a,d=Qr.Default){if(void 0===vs)throw new Qe(-203,!1);return null===vs?Qo(a,void 0,d):vs.get(a,d&Qr.Optional?null:void 0,d)}function cs(a,d=Qr.Default){return(Js()||Bo)(We(a),d)}function _r(a,d=Qr.Default){return cs(a,$s(d))}function $s(a){return typeof a>"u"||"number"==typeof a?a:(a.optional&&8)|(a.host&&1)|(a.self&&2)|(a.skipSelf&&4)}function fa(a){const d=[];for(let g=0;g<a.length;g++){const C=We(a[g]);if(Array.isArray(C)){if(0===C.length)throw new Qe(900,!1);let P,G=Qr.Default;for(let se=0;se<C.length;se++){const Ae=C[se],Ve=Ba(Ae);"number"==typeof Ve?-1===Ve?P=Ae.token:G|=Ve:P=Ae}d.push(cs(P,G))}else d.push(cs(C))}return d}function sa(a,d){return a[Oa]=d,a.prototype[Oa]=d,a}function Ba(a){return a[Oa]}const wa=sa(mi("Inject",a=>({token:a})),-1),To=sa(mi("Optional"),8),ta=sa(mi("SkipSelf"),4);function zs(a,d){return a.hasOwnProperty($n)?a[$n]:null}function Ii(a,d){a.forEach(g=>Array.isArray(g)?Ii(g,d):d(g))}function ei(a,d,g){d>=a.length?a.push(g):a.splice(d,0,g)}function di(a,d){return d>=a.length-1?a.pop():a.splice(d,1)[0]}function St(a,d,g){let C=Jn(a,d);return C>=0?a[1|C]=g:(C=~C,function Dt(a,d,g,C){let P=a.length;if(P==d)a.push(g,C);else if(1===P)a.push(C,a[0]),a[0]=g;else{for(P--,a.push(a[P-1],a[P]);P>d;)a[P]=a[P-2],P--;a[d]=g,a[d+1]=C}}(a,C,d,g)),C}function Sn(a,d){const g=Jn(a,d);if(g>=0)return a[1|g]}function Jn(a,d){return function Ji(a,d,g){let C=0,P=a.length>>g;for(;P!==C;){const G=C+(P-C>>1),se=a[G<<g];if(d===se)return G<<g;se>d?P=G:C=G+1}return~(P<<g)}(a,d,1)}const Ei={},Ee=[],Pr=new Si(""),Ra=new Si("",-1),Ds=new Si("");class ga{get(d,g=Bs){if(g===Bs){const C=new Error(`NullInjectorError: No provider for ${Vn(d)}!`);throw C.name="NullInjectorError",C}return g}}var Ns=function(a){return a[a.OnPush=0]="OnPush",a[a.Default=1]="Default",a}(Ns||{}),ba=function(a){return a[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom",a}(ba||{}),Os=function(a){return a[a.None=0]="None",a[a.SignalBased=1]="SignalBased",a[a.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",a}(Os||{});function $i(a,d,g){let C=a.length;for(;;){const P=a.indexOf(d,g);if(-1===P)return P;if(0===P||a.charCodeAt(P-1)<=32){const G=d.length;if(P+G===C||a.charCodeAt(P+G)<=32)return P}g=P+1}}function oa(a,d,g){let C=0;for(;C<g.length;){const P=g[C];if("number"==typeof P){if(0!==P)break;C++;const G=g[C++],se=g[C++],Ae=g[C++];a.setAttribute(d,se,Ae,G)}else{const G=P,se=g[++C];mt(G)?a.setProperty(d,G,se):a.setAttribute(d,G,se),C++}}return C}function Ft(a){return 3===a||4===a||6===a}function mt(a){return 64===a.charCodeAt(0)}function nn(a,d){if(null!==d&&0!==d.length)if(null===a||0===a.length)a=d.slice();else{let g=-1;for(let C=0;C<d.length;C++){const P=d[C];"number"==typeof P?g=P:0===g||kt(a,g,P,null,-1===g||2===g?d[++C]:null)}}return a}function kt(a,d,g,C,P){let G=0,se=a.length;if(-1===d)se=-1;else for(;G<a.length;){const Ae=a[G++];if("number"==typeof Ae){if(Ae===d){se=-1;break}if(Ae>d){se=G-1;break}}}for(;G<a.length;){const Ae=a[G];if("number"==typeof Ae)break;if(Ae===g){if(null===C)return void(null!==P&&(a[G+1]=P));if(C===a[G+1])return void(a[G+2]=P)}G++,null!==C&&G++,null!==P&&G++}-1!==se&&(a.splice(se,0,d),G=se+1),a.splice(G++,0,g),null!==C&&a.splice(G++,0,C),null!==P&&a.splice(G++,0,P)}const bn="ng-template";function lr(a,d,g,C){let P=0;if(C){for(;P<d.length&&"string"==typeof d[P];P+=2)if("class"===d[P]&&-1!==$i(d[P+1].toLowerCase(),g,0))return!0}else if(to(a))return!1;if(P=d.indexOf(1,P),P>-1){let G;for(;++P<d.length&&"string"==typeof(G=d[P]);)if(G.toLowerCase()===g)return!0}return!1}function to(a){return 4===a.type&&a.value!==bn}function ls(a,d,g){return d===(4!==a.type||g?a.value:bn)}function xo(a,d,g){let C=4;const P=a.attrs,G=null!==P?function Ps(a){for(let d=0;d<a.length;d++)if(Ft(a[d]))return d;return a.length}(P):0;let se=!1;for(let Ae=0;Ae<d.length;Ae++){const Ve=d[Ae];if("number"!=typeof Ve){if(!se)if(4&C){if(C=2|1&C,""!==Ve&&!ls(a,Ve,g)||""===Ve&&1===d.length){if(Go(C))return!1;se=!0}}else if(8&C){if(null===P||!lr(a,P,Ve,g)){if(Go(C))return!1;se=!0}}else{const Pt=d[++Ae],Qt=Ui(Ve,P,to(a),g);if(-1===Qt){if(Go(C))return!1;se=!0;continue}if(""!==Pt){let _n;if(_n=Qt>G?"":P[Qt+1].toLowerCase(),2&C&&Pt!==_n){if(Go(C))return!1;se=!0}}}}else{if(!se&&!Go(C)&&!Go(Ve))return!1;if(se&&Go(Ve))continue;se=!1,C=Ve|1&C}}return Go(C)||se}function Go(a){return!(1&a)}function Ui(a,d,g,C){if(null===d)return-1;let P=0;if(C||!g){let G=!1;for(;P<d.length;){const se=d[P];if(se===a)return P;if(3===se||6===se)G=!0;else{if(1===se||2===se){let Ae=d[++P];for(;"string"==typeof Ae;)Ae=d[++P];continue}if(4===se)break;if(0===se){P+=4;continue}}P+=G?1:2}return-1}return function Or(a,d){let g=a.indexOf(4);if(g>-1)for(g++;g<a.length;){const C=a[g];if("number"==typeof C)return-1;if(C===d)return g;g++}return-1}(d,a)}function ns(a,d,g=!1){for(let C=0;C<d.length;C++)if(xo(a,d[C],g))return!0;return!1}function pl(a,d){e:for(let g=0;g<d.length;g++){const C=d[g];if(a.length===C.length){for(let P=0;P<a.length;P++)if(a[P]!==C[P])continue e;return!0}}return!1}function Na(a,d){return a?":not("+d.trim()+")":d}function Ko(a){let d=a[0],g=1,C=2,P="",G=!1;for(;g<a.length;){let se=a[g];if("string"==typeof se)if(2&C){const Ae=a[++g];P+="["+se+(Ae.length>0?'="'+Ae+'"':"")+"]"}else 8&C?P+="."+se:4&C&&(P+=" "+se);else""!==P&&!Go(se)&&(d+=Na(G,P),P=""),C=se,G=G||!Go(C);g++}return""!==P&&(d+=Na(G,P)),d}function Br(a){return Gt(()=>{const d=cn(a),g={...d,decls:a.decls,vars:a.vars,template:a.template,consts:a.consts||null,ngContentSelectors:a.ngContentSelectors,onPush:a.changeDetection===Ns.OnPush,directiveDefs:null,pipeDefs:null,dependencies:d.standalone&&a.dependencies||null,getStandaloneInjector:null,signals:a.signals??!1,data:a.data||{},encapsulation:a.encapsulation||ba.Emulated,styles:a.styles||Ee,_:null,schemas:a.schemas||null,tView:null,id:""};si(g);const C=a.dependencies;return g.directiveDefs=vi(C,!1),g.pipeDefs=vi(C,!0),g.id=function gr(a){let d=0;const g=[a.selectors,a.ngContentSelectors,a.hostVars,a.hostAttrs,a.consts,a.vars,a.decls,a.encapsulation,a.standalone,a.signals,a.exportAs,JSON.stringify(a.inputs),JSON.stringify(a.outputs),Object.getOwnPropertyNames(a.type.prototype),!!a.contentQueries,!!a.viewQuery].join("|");for(const P of g)d=Math.imul(31,d)+P.charCodeAt(0)|0;return d+=2147483648,"c"+d}(g),g})}function xr(a){return Cr(a)||tn(a)}function wr(a){return null!==a}function ys(a){return Gt(()=>({type:a.type,bootstrap:a.bootstrap||Ee,declarations:a.declarations||Ee,imports:a.imports||Ee,exports:a.exports||Ee,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}))}function fo(a,d){if(null==a)return Ei;const g={};for(const C in a)if(a.hasOwnProperty(C)){const P=a[C];let G,se,Ae=Os.None;Array.isArray(P)?(Ae=P[0],G=P[1],se=P[2]??G):(G=P,se=P),d?(g[G]=Ae!==Os.None?[C,Ae]:C,d[G]=se):g[G]=C}return g}function Ts(a){return Gt(()=>{const d=cn(a);return si(d),d})}function yr(a){return{type:a.type,name:a.name,factory:null,pure:!1!==a.pure,standalone:!0===a.standalone,onDestroy:a.type.prototype.ngOnDestroy||null}}function Cr(a){return a[ao]||null}function tn(a){return a[Ar]||null}function xt(a){return a[sn]||null}function Ht(a){const d=Cr(a)||tn(a)||xt(a);return null!==d&&d.standalone}function ut(a,d){const g=a[Gn]||null;if(!g&&!0===d)throw new Error(`Type ${Vn(a)} does not have '\u0275mod' property.`);return g}function cn(a){const d={};return{type:a.type,providersResolver:null,factory:null,hostBindings:a.hostBindings||null,hostVars:a.hostVars||0,hostAttrs:a.hostAttrs||null,contentQueries:a.contentQueries||null,declaredInputs:d,inputTransforms:null,inputConfig:a.inputs||Ei,exportAs:a.exportAs||null,standalone:!0===a.standalone,signals:!0===a.signals,selectors:a.selectors||Ee,viewQuery:a.viewQuery||null,features:a.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:fo(a.inputs,d),outputs:fo(a.outputs),debugInfo:null}}function si(a){a.features?.forEach(d=>d(a))}function vi(a,d){if(!a)return null;const g=d?xt:xr;return()=>("function"==typeof a?a():a).map(C=>g(C)).filter(wr)}function or(a){return{\u0275providers:a}}function zn(...a){return{\u0275providers:pi(0,a),\u0275fromNgModule:!0}}function pi(a,...d){const g=[],C=new Set;let P;const G=se=>{g.push(se)};return Ii(d,se=>{const Ae=se;cr(Ae,G,[],C)&&(P||=[],P.push(Ae))}),void 0!==P&&Kn(P,G),g}function Kn(a,d){for(let g=0;g<a.length;g++){const{ngModule:C,providers:P}=a[g];jr(P,G=>{d(G,C)})}}function cr(a,d,g,C){if(!(a=We(a)))return!1;let P=null,G=Fr(a);const se=!G&&Cr(a);if(G||se){if(se&&!se.standalone)return!1;P=a}else{const Ve=a.ngModule;if(G=Fr(Ve),!G)return!1;P=Ve}const Ae=C.has(P);if(se){if(Ae)return!1;if(C.add(P),se.dependencies){const Ve="function"==typeof se.dependencies?se.dependencies():se.dependencies;for(const Pt of Ve)cr(Pt,d,g,C)}}else{if(!G)return!1;{if(null!=G.imports&&!Ae){let Pt;C.add(P);try{Ii(G.imports,Qt=>{cr(Qt,d,g,C)&&(Pt||=[],Pt.push(Qt))})}finally{}void 0!==Pt&&Kn(Pt,d)}if(!Ae){const Pt=zs(P)||(()=>new P);d({provide:P,useFactory:Pt,deps:Ee},P),d({provide:Ds,useValue:P,multi:!0},P),d({provide:Pr,useValue:()=>cs(P),multi:!0},P)}const Ve=G.providers;if(null!=Ve&&!Ae){const Pt=a;jr(Ve,Qt=>{d(Qt,Pt)})}}}return P!==a&&void 0!==a.providers}function jr(a,d){for(let g of a)Lo(g)&&(g=g.\u0275providers),Array.isArray(g)?jr(g,d):d(g)}const No=It({provide:String,useValue:It});function Ur(a){return null!==a&&"object"==typeof a&&No in a}function Ks(a){return"function"==typeof a}const Xs=new Si(""),ds={},Xa={};let fs;function Ho(){return void 0===fs&&(fs=new ga),fs}class Ea{}class Al extends Ea{get destroyed(){return this._destroyed}constructor(d,g,C,P){super(),this.parent=g,this.source=C,this.scopes=P,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Fl(d,se=>this.processProvider(se)),this.records.set(Ra,fl(void 0,this)),P.has("environment")&&this.records.set(Ea,fl(void 0,this));const G=this.records.get(Xs);null!=G&&"string"==typeof G.value&&this.scopes.add(G.value),this.injectorDefTypes=new Set(this.get(Ds,Ee,Qr.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const d=M(null);try{for(const C of this._ngOnDestroyHooks)C.ngOnDestroy();const g=this._onDestroyHooks;this._onDestroyHooks=[];for(const C of g)C()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),M(d)}}onDestroy(d){return this.assertNotDestroyed(),this._onDestroyHooks.push(d),()=>this.removeOnDestroy(d)}runInContext(d){this.assertNotDestroyed();const g=ho(this),C=ts(void 0);try{return d()}finally{ho(g),ts(C)}}get(d,g=Bs,C=Qr.Default){if(this.assertNotDestroyed(),d.hasOwnProperty(Wi))return d[Wi](this);C=$s(C);const G=ho(this),se=ts(void 0);try{if(!(C&Qr.SkipSelf)){let Ve=this.records.get(d);if(void 0===Ve){const Pt=function rd(a){return"function"==typeof a||"object"==typeof a&&a instanceof Si}(d)&&Pn(d);Ve=Pt&&this.injectableDefInScope(Pt)?fl(Ma(d),ds):null,this.records.set(d,Ve)}if(null!=Ve)return this.hydrate(d,Ve)}return(C&Qr.Self?Ho():this.parent).get(d,g=C&Qr.Optional&&g===Bs?null:g)}catch(Ae){if("NullInjectorError"===Ae.name){if((Ae[qs]=Ae[qs]||[]).unshift(Vn(d)),G)throw Ae;return function Ml(a,d,g,C){const P=a[qs];throw d[Zo]&&P.unshift(d[Zo]),a.message=function _s(a,d,g,C=null){a=a&&"\n"===a.charAt(0)&&"\u0275"==a.charAt(1)?a.slice(2):a;let P=Vn(d);if(Array.isArray(d))P=d.map(Vn).join(" -> ");else if("object"==typeof d){let G=[];for(let se in d)if(d.hasOwnProperty(se)){let Ae=d[se];G.push(se+":"+("string"==typeof Ae?JSON.stringify(Ae):Vn(Ae)))}P=`{${G.join(", ")}}`}return`${g}${C?"("+C+")":""}[${P}]: ${a.replace(js,"\n  ")}`}("\n"+a.message,P,g,C),a.ngTokenPath=P,a[qs]=null,a}(Ae,d,"R3InjectorError",this.source)}throw Ae}finally{ts(se),ho(G)}}resolveInjectorInitializers(){const d=M(null),g=ho(this),C=ts(void 0);try{const G=this.get(Pr,Ee,Qr.Self);for(const se of G)se()}finally{ho(g),ts(C),M(d)}}toString(){const d=[],g=this.records;for(const C of g.keys())d.push(Vn(C));return`R3Injector[${d.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Qe(205,!1)}processProvider(d){let g=Ks(d=We(d))?d:We(d&&d.provide);const C=function Ki(a){return Ur(a)?fl(void 0,a.useValue):fl(Uo(a),ds)}(d);if(!Ks(d)&&!0===d.multi){let P=this.records.get(g);P||(P=fl(void 0,ds,!0),P.factory=()=>fa(P.multi),this.records.set(g,P)),g=d,P.multi.push(d)}this.records.set(g,C)}hydrate(d,g){const C=M(null);try{return g.value===ds&&(g.value=Xa,g.value=g.factory()),"object"==typeof g.value&&g.value&&function Tl(a){return null!==a&&"object"==typeof a&&"function"==typeof a.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}finally{M(C)}}injectableDefInScope(d){if(!d.providedIn)return!1;const g=We(d.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}removeOnDestroy(d){const g=this._onDestroyHooks.indexOf(d);-1!==g&&this._onDestroyHooks.splice(g,1)}}function Ma(a){const d=Pn(a),g=null!==d?d.factory:zs(a);if(null!==g)return g;if(a instanceof Si)throw new Qe(204,!1);if(a instanceof Function)return function Vo(a){if(a.length>0)throw new Qe(204,!1);const g=function er(a){return a&&(a[dn]||a[xi])||null}(a);return null!==g?()=>g.factory(a):()=>new a}(a);throw new Qe(204,!1)}function Uo(a,d,g){let C;if(Ks(a)){const P=We(a);return zs(P)||Ma(P)}if(Ur(a))C=()=>We(a.useValue);else if(function Xr(a){return!(!a||!a.useFactory)}(a))C=()=>a.useFactory(...fa(a.deps||[]));else if(function go(a){return!(!a||!a.useExisting)}(a))C=()=>cs(We(a.useExisting));else{const P=We(a&&(a.useClass||a.provide));if(!function gl(a){return!!a.deps}(a))return zs(P)||Ma(P);C=()=>new P(...fa(a.deps))}return C}function fl(a,d,g=!1){return{factory:a,value:d,multi:g?[]:void 0}}function Fl(a,d){for(const g of a)Array.isArray(g)?Fl(g,d):g&&Lo(g)?Fl(g.\u0275providers,d):d(g)}function na(a,d){a instanceof Al&&a.assertNotDestroyed();const C=ho(a),P=ts(void 0);try{return d()}finally{ho(C),ts(P)}}function Va(){return void 0!==Js()||null!=function Ys(){return vs}()}const vt=0,Be=1,_t=2,pt=3,$t=4,hn=5,mn=6,yn=7,ci=8,yi=9,Bt=10,Rt=11,fn=12,An=13,Nn=14,Rn=15,Hn=16,Xn=17,ai=18,Ni=19,Zr=20,en=21,Ir=22,Do=23,mr=25,Yr=1,ia=7,gs=9,$r=10;var ma=function(a){return a[a.None=0]="None",a[a.HasTransplantedViews=2]="HasTransplantedViews",a}(ma||{});function oo(a){return Array.isArray(a)&&"object"==typeof a[Yr]}function Eo(a){return Array.isArray(a)&&!0===a[Yr]}function Es(a){return!!(4&a.flags)}function no(a){return a.componentOffset>-1}function va(a){return!(1&~a.flags)}function Yo(a){return!!a.template}function _a(a){return!!(512&a[_t])}class Qa{constructor(d,g,C){this.previousValue=d,this.currentValue=g,this.firstChange=C}isFirstChange(){return this.firstChange}}function zd(a,d,g,C){null!==d?d.applyValueToInputSignal(d,C):a[g]=C}function Nu(){return $l}function $l(a){return a.type.prototype.ngOnChanges&&(a.setInput=sd),ku}function ku(){const a=Yc(this),d=a?.current;if(d){const g=a.previous;if(g===Ei)a.previous=d;else for(let C in d)g[C]=d[C];a.current=null,this.ngOnChanges(d)}}function sd(a,d,g,C,P){const G=this.declaredInputs[C],se=Yc(a)||function ad(a,d){return a[vl]=d}(a,{previous:Ei,current:null}),Ae=se.current||(se.current={}),Ve=se.previous,Pt=Ve[G];Ae[G]=new Qa(Pt&&Pt.currentValue,g,Ve===Ei),zd(a,d,P,g)}Nu.ngInherit=!0;const vl="__ngSimpleChanges__";function Yc(a){return a[vl]||null}const Ga=function(a,d,g){},Za="svg";let zl=!1;function Fo(a){for(;Array.isArray(a);)a=a[vt];return a}function Ad(a,d){return Fo(d[a])}function la(a,d){return Fo(d[a.index])}function Nc(a,d){return a.data[d]}function Vl(a,d){return a[d]}function _l(a,d){const g=d[a];return oo(g)?g:g[vt]}function Td(a){return!(128&~a[_t])}function vc(a,d){return null==d?null:a[d]}function mh(a){a[Xn]=0}function oc(a){1024&a[_t]||(a[_t]|=1024,Td(a)&&Dd(a))}function Wc(a){return!!(9216&a[_t]||a[Do]?.dirty)}function du(a){a[Bt].changeDetectionScheduler?.notify(1),Wc(a)?Dd(a):64&a[_t]&&(function cu(){return zl}()?(a[_t]|=1024,Dd(a)):a[Bt].changeDetectionScheduler?.notify())}function Dd(a){a[Bt].changeDetectionScheduler?.notify();let d=ks(a);for(;null!==d&&!(8192&d[_t])&&(d[_t]|=8192,Td(d));)d=ks(d)}function _c(a,d){if(!(256&~a[_t]))throw new Qe(911,!1);null===a[en]&&(a[en]=[]),a[en].push(d)}function ks(a){const d=a[pt];return Eo(d)?d[pt]:d}const lo={lFrame:pu(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Yt(){return lo.bindingsEnabled}function un(){return null!==lo.skipHydrationRootTNode}function Vi(){return lo.lFrame.lView}function yo(){return lo.lFrame.tView}function Pl(a){return lo.lFrame.contextLView=a,a[ci]}function kc(a){return lo.lFrame.contextLView=null,a}function Po(){let a=ud();for(;null!==a&&64===a.type;)a=a.parent;return a}function ud(){return lo.lFrame.currentTNode}function yc(a,d){const g=lo.lFrame;g.currentTNode=a,g.isParent=d}function Xd(){return lo.lFrame.isParent}function uu(){lo.lFrame.isParent=!1}function Hl(){const a=lo.lFrame;let d=a.bindingRootIndex;return-1===d&&(d=a.bindingRootIndex=a.tView.bindingStartIndex),d}function hd(){return lo.lFrame.bindingIndex}function jl(){return lo.lFrame.bindingIndex++}function sc(a){const d=lo.lFrame,g=d.bindingIndex;return d.bindingIndex=d.bindingIndex+a,g}function tp(a,d){const g=lo.lFrame;g.bindingIndex=g.bindingRootIndex=a,vh(d)}function vh(a){lo.lFrame.currentDirectiveIndex=a}function _h(a){const d=lo.lFrame.currentDirectiveIndex;return-1===d?null:a[d]}function np(){return lo.lFrame.currentQueryIndex}function sl(a){lo.lFrame.currentQueryIndex=a}function $c(a){const d=a[Be];return 2===d.type?d.declTNode:1===d.type?a[hn]:null}function yh(a,d,g){if(g&Qr.SkipSelf){let P=d,G=a;for(;!(P=P.parent,null!==P||g&Qr.Host||(P=$c(G),null===P||(G=G[Nn],10&P.type))););if(null===P)return!1;d=P,a=G}const C=lo.lFrame=Uu();return C.currentTNode=d,C.lView=a,!0}function Fu(a){const d=Uu(),g=a[Be];lo.lFrame=d,d.currentTNode=g.firstChild,d.lView=a,d.tView=g,d.contextLView=a,d.bindingIndex=g.bindingStartIndex,d.inI18n=!1}function Uu(){const a=lo.lFrame,d=null===a?null:a.child;return null===d?pu(a):d}function pu(a){const d={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:a,child:null,inI18n:!1};return null!==a&&(a.child=d),d}function fd(){const a=lo.lFrame;return lo.lFrame=a.parent,a.currentTNode=null,a.lView=null,a}const Sh=fd;function Uc(){const a=fd();a.isParent=!0,a.tView=null,a.selectedIndex=-1,a.contextLView=null,a.elementDepthCount=0,a.currentDirectiveIndex=-1,a.currentNamespace=null,a.bindingRootIndex=-1,a.bindingIndex=-1,a.currentQueryIndex=0}function Ta(){return lo.lFrame.selectedIndex}function Kl(a){lo.lFrame.selectedIndex=a}function Ms(){const a=lo.lFrame;return Nc(a.tView,a.selectedIndex)}function Vu(){lo.lFrame.currentNamespace=Za}function bh(){!function hg(){lo.lFrame.currentNamespace=null}()}let op=!0;function fu(){return op}function Sc(a){op=a}function Eh(a,d){for(let g=d.directiveStart,C=d.directiveEnd;g<C;g++){const G=a.data[g].type.prototype,{ngAfterContentInit:se,ngAfterContentChecked:Ae,ngAfterViewInit:Ve,ngAfterViewChecked:Pt,ngOnDestroy:Qt}=G;se&&(a.contentHooks??=[]).push(-g,se),Ae&&((a.contentHooks??=[]).push(g,Ae),(a.contentCheckHooks??=[]).push(g,Ae)),Ve&&(a.viewHooks??=[]).push(-g,Ve),Pt&&((a.viewHooks??=[]).push(g,Pt),(a.viewCheckHooks??=[]).push(g,Pt)),null!=Qt&&(a.destroyHooks??=[]).push(g,Qt)}}function Od(a,d,g){tf(a,d,3,g)}function yl(a,d,g,C){(3&a[_t])===g&&tf(a,d,g,C)}function bc(a,d){let g=a[_t];(3&g)===d&&(g&=16383,g+=1,a[_t]=g)}function tf(a,d,g,C){const G=C??-1,se=d.length-1;let Ae=0;for(let Ve=void 0!==C?65535&a[Xn]:0;Ve<se;Ve++)if("number"==typeof d[Ve+1]){if(Ae=d[Ve],null!=C&&Ae>=C)break}else d[Ve]<0&&(a[Xn]+=65536),(Ae<G||-1==G)&&(Pd(a,g,d,Ve),a[Xn]=(4294901760&a[Xn])+Ve+2),Ve++}function nf(a,d){Ga(4,a,d);const g=M(null);try{d.call(a)}finally{M(g),Ga(5,a,d)}}function Pd(a,d,g,C){const P=g[C]<0,G=g[C+1],Ae=a[P?-g[C]:g[C]];P?a[_t]>>14<a[Xn]>>16&&(3&a[_t])===d&&(a[_t]+=16384,nf(Ae,G)):nf(Ae,G)}const al=-1;class gd{constructor(d,g,C){this.factory=d,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=C}}function Th(a){return a!==al}function Id(a){return 32767&a}function Qd(a,d){let g=function rf(a){return a>>16}(a),C=d;for(;g>0;)C=C[Nn],g--;return C}let xh=!0;function gu(a){const d=xh;return xh=a,d}const sf=255,Gu=5;let af=0;const ll={};function mu(a,d){const g=sp(a,d);if(-1!==g)return g;const C=d[Be];C.firstCreatePass&&(a.injectorIndex=d.length,Rs(C.data,a),Rs(d,null),Rs(C.blueprint,null));const P=vu(a,d),G=a.injectorIndex;if(Th(P)){const se=Id(P),Ae=Qd(P,d),Ve=Ae[Be].data;for(let Pt=0;Pt<8;Pt++)d[G+Pt]=Ae[se+Pt]|Ve[se+Pt]}return d[G+8]=P,G}function Rs(a,d){a.push(0,0,0,0,0,0,0,0,d)}function sp(a,d){return-1===a.injectorIndex||a.parent&&a.parent.injectorIndex===a.injectorIndex||null===d[a.injectorIndex+8]?-1:a.injectorIndex}function vu(a,d){if(a.parent&&-1!==a.parent.injectorIndex)return a.parent.injectorIndex;let g=0,C=null,P=d;for(;null!==P;){if(C=Fa(P),null===C)return al;if(g++,P=P[Nn],-1!==C.injectorIndex)return C.injectorIndex|g<<16}return al}function _u(a,d,g){!function lf(a,d,g){let C;"string"==typeof g?C=g.charCodeAt(0)||0:g.hasOwnProperty(Ci)&&(C=g[Ci]),null==C&&(C=g[Ci]=af++);const P=C&sf;d.data[a+(P>>Gu)]|=1<<P}(a,d,g)}function Ec(a,d,g){if(g&Qr.Optional||void 0!==a)return a;Hs()}function Rd(a,d,g,C){if(g&Qr.Optional&&void 0===C&&(C=null),!(g&(Qr.Self|Qr.Host))){const P=a[yi],G=ts(void 0);try{return P?P.get(d,C,g&Qr.Optional):Qo(d,C,g&Qr.Optional)}finally{ts(G)}}return Ec(C,0,g)}function ac(a,d,g,C=Qr.Default,P){if(null!==a){if(2048&d[_t]&&!(C&Qr.Self)){const se=function Ac(a,d,g,C,P){let G=a,se=d;for(;null!==G&&null!==se&&2048&se[_t]&&!(512&se[_t]);){const Ae=Xl(G,se,g,C|Qr.Self,ll);if(Ae!==ll)return Ae;let Ve=G.parent;if(!Ve){const Pt=se[Zr];if(Pt){const Qt=Pt.get(g,ll,C);if(Qt!==ll)return Qt}Ve=Fa(se),se=se[Nn]}G=Ve}return P}(a,d,g,C,ll);if(se!==ll)return se}const G=Xl(a,d,g,C,ll);if(G!==ll)return G}return Rd(d,g,C,P)}function Xl(a,d,g,C,P){const G=function da(a){if("string"==typeof a)return a.charCodeAt(0)||0;const d=a.hasOwnProperty(Ci)?a[Ci]:void 0;return"number"==typeof d?d>=0?d&sf:Dh:d}(g);if("function"==typeof G){if(!yh(d,a,C))return C&Qr.Host?Ec(P,0,C):Rd(d,g,C,P);try{let se;if(se=G(C),null!=se||C&Qr.Optional)return se;Hs()}finally{Sh()}}else if("number"==typeof G){let se=null,Ae=sp(a,d),Ve=al,Pt=C&Qr.Host?d[Rn][hn]:null;for((-1===Ae||C&Qr.SkipSelf)&&(Ve=-1===Ae?vu(a,d):d[Ae+8],Ve!==al&&Kc(C,!1)?(se=d[Be],Ae=Id(Ve),d=Qd(Ve,d)):Ae=-1);-1!==Ae;){const Qt=d[Be];if(Mo(G,Ae,Qt.data)){const _n=xa(Ae,d,g,se,C,Pt);if(_n!==ll)return _n}Ve=d[Ae+8],Ve!==al&&Kc(C,d[Be].data[Ae+8]===Pt)&&Mo(G,Ae,d)?(se=Qt,Ae=Id(Ve),d=Qd(Ve,d)):Ae=-1}}return P}function xa(a,d,g,C,P,G){const se=d[Be],Ae=se.data[a+8],Qt=zc(Ae,se,g,null==C?no(Ae)&&xh:C!=se&&!!(3&Ae.type),P&Qr.Host&&G===Ae);return null!==Qt?lc(d,se,Qt,Ae):ll}function zc(a,d,g,C,P){const G=a.providerIndexes,se=d.data,Ae=1048575&G,Ve=a.directiveStart,Qt=G>>20,ri=P?Ae+Qt:a.directiveEnd;for(let gi=C?Ae:Ae+Qt;gi<ri;gi++){const Li=se[gi];if(gi<Ve&&g===Li||gi>=Ve&&Li.type===g)return gi}if(P){const gi=se[Ve];if(gi&&Yo(gi)&&gi.type===g)return Ve}return null}function lc(a,d,g,C){let P=a[g];const G=d.data;if(function wd(a){return a instanceof gd}(P)){const se=P;se.resolving&&function zo(a,d){throw d&&d.join(" > "),new Qe(-200,a)}(function Gi(a){return"function"==typeof a?a.name||a.toString():"object"==typeof a&&null!=a&&"function"==typeof a.type?a.type.name||a.type.toString():Ti(a)}(G[g]));const Ae=gu(se.canSeeViewProviders);se.resolving=!0;const Pt=se.injectImpl?ts(se.injectImpl):null;yh(a,C,Qr.Default);try{P=a[g]=se.factory(void 0,G,a,C),d.firstCreatePass&&g>=C.directiveStart&&function Ch(a,d,g){const{ngOnChanges:C,ngOnInit:P,ngDoCheck:G}=d.type.prototype;if(C){const se=$l(d);(g.preOrderHooks??=[]).push(a,se),(g.preOrderCheckHooks??=[]).push(a,se)}P&&(g.preOrderHooks??=[]).push(0-a,P),G&&((g.preOrderHooks??=[]).push(a,G),(g.preOrderCheckHooks??=[]).push(a,G))}(g,G[g],d)}finally{null!==Pt&&ts(Pt),gu(Ae),se.resolving=!1,Sh()}}return P}function Mo(a,d,g){return!!(g[d+(a>>Gu)]&1<<a)}function Kc(a,d){return!(a&Qr.Self||a&Qr.Host&&d)}class Da{constructor(d,g){this._tNode=d,this._lView=g}get(d,g,C){return ac(this._tNode,this._lView,d,$s(C),g)}}function Dh(){return new Da(Po(),Vi())}function Mc(a){return Gt(()=>{const d=a.prototype.constructor,g=d[$n]||ua(d),C=Object.prototype;let P=Object.getPrototypeOf(a.prototype).constructor;for(;P&&P!==C;){const G=P[$n]||ua(P);if(G&&G!==g)return G;P=Object.getPrototypeOf(P)}return G=>new G})}function ua(a){return bt(a)?()=>{const d=ua(We(a));return d&&d()}:zs(a)}function Fa(a){const d=a[Be],g=d.type;return 2===g?d.declTNode:1===g?a[hn]:null}function ju(a){return function Hu(a,d){if("class"===d)return a.classes;if("style"===d)return a.styles;const g=a.attrs;if(g){const C=g.length;let P=0;for(;P<C;){const G=g[P];if(Ft(G))break;if(0===G)P+=2;else if("number"==typeof G)for(P++;P<C&&"string"==typeof g[P];)P++;else{if(G===d)return g[P+1];P+=2}}}return null}(Po(),a)}function wh(a,d=null,g=null,C){const P=dp(a,d,g,C);return P.resolveInjectorInitializers(),P}function dp(a,d=null,g=null,C,P=new Set){const G=[g||Ee,zn(a)];return C=C||("object"==typeof a?void 0:Vn(a)),new Al(G,d||Ho(),C||null,P)}let Yl=(()=>{var a;class d{static create(C,P){if(Array.isArray(C))return wh({name:""},P,C,"");{const G=C.name??"";return wh({name:G},C.parent,C.providers,G)}}}return(a=d).THROW_IF_NOT_FOUND=Bs,a.NULL=new ga,a.\u0275prov=Nr({token:a,providedIn:"any",factory:()=>cs(Ra)}),a.__NG_ELEMENT_ID__=-1,d})();function Tc(a){return a.ngOriginalError}class Bc{constructor(){this._console=console}handleError(d){const g=this._findOriginalError(d);this._console.error("ERROR",d),g&&this._console.error("ORIGINAL ERROR",g)}_findOriginalError(d){let g=d&&Tc(d);for(;g&&Tc(g);)g=Tc(g);return g||null}}const Nd=new Si("",{providedIn:"root",factory:()=>_r(Bc).handleError.bind(void 0)});let kd=(()=>{var a;class d{}return(a=d).__NG_ELEMENT_ID__=up,a.__NG_ENV_ID__=g=>g,d})();class Zd extends kd{constructor(d){super(),this._lView=d}onDestroy(d){return _c(this._lView,d),()=>function Gl(a,d){if(null===a[en])return;const g=a[en].indexOf(d);-1!==g&&a[en].splice(g,1)}(this._lView,d)}}function up(){return new Zd(Vi())}function hf(){return vd(Po(),Vi())}function vd(a,d){return new Wu(la(a,d))}let Wu=(()=>{class d{constructor(C){this.nativeElement=C}}return d.__NG_ELEMENT_ID__=hf,d})();function pf(a){return a instanceof Wu?a.nativeElement:a}function Rh(a){return d=>{setTimeout(a,void 0,d)}}const Qs=class ff extends Ie.B7{constructor(d=!1){super(),this.destroyRef=void 0,this.__isAsync=d,Va()&&(this.destroyRef=_r(kd,{optional:!0})??void 0)}emit(d){const g=M(null);try{super.next(d)}finally{M(g)}}subscribe(d,g,C){let P=d,G=g||(()=>null),se=C;if(d&&"object"==typeof d){const Ve=d;P=Ve.next?.bind(Ve),G=Ve.error?.bind(Ve),se=Ve.complete?.bind(Ve)}this.__isAsync&&(G=Rh(G),P&&(P=Rh(P)),se&&(se=Rh(se)));const Ae=super.subscribe({next:P,error:G,complete:se});return d instanceof at.y&&d.add(Ae),Ae}};function us(){return this._results[Symbol.iterator]()}class _d{get changes(){return this._changes??=new Qs}constructor(d=!1){this._emitDistinctChangesOnly=d,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 g=_d.prototype;g[Symbol.iterator]||(g[Symbol.iterator]=us)}get(d){return this._results[d]}map(d){return this._results.map(d)}filter(d){return this._results.filter(d)}find(d){return this._results.find(d)}reduce(d,g){return this._results.reduce(d,g)}forEach(d){this._results.forEach(d)}some(d){return this._results.some(d)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(d,g){this.dirty=!1;const C=function Zn(a){return a.flat(Number.POSITIVE_INFINITY)}(d);(this._changesDetected=!function Kt(a,d,g){if(a.length!==d.length)return!1;for(let C=0;C<a.length;C++){let P=a[C],G=d[C];if(g&&(P=g(P),G=g(G)),G!==P)return!1}return!0}(this._results,C,g))&&(this._results=C,this.length=C.length,this.last=C[this.length-1],this.first=C[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(d){this._onDirty=d}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function Ud(a){return!(128&~a.flags)}const Gc=new Map;let gf=0;const Nh="__ngContext__";function As(a,d){oo(d)?(a[Nh]=d[Ni],function vf(a){Gc.set(a[Ni],a)}(d)):a[Nh]=d}function Mf(a){return Af(a[fn])}function kh(a){return Af(a[$t])}function Af(a){for(;null!==a&&!Eo(a);)a=a[$t];return a}let Ap;function Tp(a){Ap=a}function yd(){if(void 0!==Ap)return Ap;if(typeof document<"u")return document;throw new Qe(210,!1)}const xp=new Si("",{providedIn:"root",factory:()=>Pf}),Pf="ng",Bh=new Si(""),Xu=new Si("",{providedIn:"platform",factory:()=>"unknown"}),Vh=new Si(""),Eg=new Si("",{providedIn:"root",factory:()=>yd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Mu=()=>null;function Pp(a,d,g=!1){return Mu(a,d,g)}const qa=new Si("",{providedIn:"root",factory:()=>!1});let tu,Fp;function nu(a){return function kp(){if(void 0===tu&&(tu=null,_i.trustedTypes))try{tu=_i.trustedTypes.createPolicy("angular",{createHTML:a=>a,createScript:a=>a,createScriptURL:a=>a})}catch{}return tu}()?.createHTML(a)||a}function Uf(){if(void 0===Fp&&(Fp=null,_i.trustedTypes))try{Fp=_i.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:a=>a,createScript:a=>a,createScriptURL:a=>a})}catch{}return Fp}function Bf(a){return Uf()?.createHTML(a)||a}function Vf(a){return Uf()?.createScriptURL(a)||a}class el{constructor(d){this.changingThisBreaksApplicationSecurity=d}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${pe})`}}class Gf extends el{getTypeName(){return"HTML"}}class em extends el{getTypeName(){return"Style"}}class Oc extends el{getTypeName(){return"Script"}}class Hf extends el{getTypeName(){return"URL"}}class jf extends el{getTypeName(){return"ResourceURL"}}function tl(a){return a instanceof el?a.changingThisBreaksApplicationSecurity:a}function eh(a,d){const g=function Yf(a){return a instanceof el&&a.getTypeName()||null}(a);if(null!=g&&g!==d){if("ResourceURL"===g&&"URL"===d)return!0;throw new Error(`Required a safe ${d}, got a ${g} (see ${pe})`)}return g===d}function xu(a){return new Gf(a)}function qo(a){return new em(a)}function tm(a){return new Oc(a)}function dc(a){return new Hf(a)}function Ya(a){return new jf(a)}class Gd{constructor(d){this.inertDocumentHelper=d}getInertBodyElement(d){d="<body><remove></remove>"+d;try{const g=(new window.DOMParser).parseFromString(nu(d),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(d):(g.removeChild(g.firstChild),g)}catch{return null}}}class Pg{constructor(d){this.defaultDoc=d,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(d){const g=this.inertDocument.createElement("template");return g.innerHTML=nu(d),g}}const nh=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Kh(a){return(a=String(a)).match(nh)?a:"unsafe:"+a}function Hd(a){const d={};for(const g of a.split(","))d[g]=!0;return d}function Zl(...a){const d={};for(const g of a)for(const C in g)g.hasOwnProperty(C)&&(d[C]=!0);return d}const Ou=Hd("area,br,col,hr,img,wbr"),Zc=Hd("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ih=Hd("rp,rt"),Qh=Zl(Ou,Zl(Zc,Hd("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")),Zl(ih,Hd("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")),Zl(ih,Zc)),Up=Hd("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Wf=Zl(Up,Hd("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"),Hd("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")),Ig=Hd("script,style,template");class Bp{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(d){let g=d.firstChild,C=!0,P=[];for(;g;)if(g.nodeType===Node.ELEMENT_NODE?C=this.startElement(g):g.nodeType===Node.TEXT_NODE?this.chars(g.nodeValue):this.sanitizedSomething=!0,C&&g.firstChild)P.push(g),g=zf(g);else for(;g;){g.nodeType===Node.ELEMENT_NODE&&this.endElement(g);let G=Pu(g);if(G){g=G;break}g=P.pop()}return this.buf.join("")}startElement(d){const g=Vp(d).toLowerCase();if(!Qh.hasOwnProperty(g))return this.sanitizedSomething=!0,!Ig.hasOwnProperty(g);this.buf.push("<"),this.buf.push(g);const C=d.attributes;for(let P=0;P<C.length;P++){const G=C.item(P),se=G.name,Ae=se.toLowerCase();if(!Wf.hasOwnProperty(Ae)){this.sanitizedSomething=!0;continue}let Ve=G.value;Up[Ae]&&(Ve=Kh(Ve)),this.buf.push(" ",se,'="',jd(Ve),'"')}return this.buf.push(">"),!0}endElement(d){const g=Vp(d).toLowerCase();Qh.hasOwnProperty(g)&&!Ou.hasOwnProperty(g)&&(this.buf.push("</"),this.buf.push(g),this.buf.push(">"))}chars(d){this.buf.push(jd(d))}}function Pu(a){const d=a.nextSibling;if(d&&a!==d.previousSibling)throw Gp(d);return d}function zf(a){const d=a.firstChild;if(d&&function $f(a,d){return(a.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(a,d))throw Gp(d);return d}function Vp(a){const d=a.nodeName;return"string"==typeof d?d:"FORM"}function Gp(a){return new Error(`Failed to sanitize html because the element is clobbered: ${a.outerHTML}`)}const Zh=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,uc=/([^\#-~ |!])/g;function jd(a){return a.replace(/&/g,"&amp;").replace(Zh,function(d){return"&#"+(1024*(d.charCodeAt(0)-55296)+(d.charCodeAt(1)-56320)+65536)+";"}).replace(uc,function(d){return"&#"+d.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Hp;function Rg(a,d){let g=null;try{Hp=Hp||function Du(a){const d=new Pg(a);return function th(){try{return!!(new window.DOMParser).parseFromString(nu(""),"text/html")}catch{return!1}}()?new Gd(d):d}(a);let C=d?String(d):"";g=Hp.getInertBodyElement(C);let P=5,G=C;do{if(0===P)throw new Error("Failed to sanitize html because the input is unstable");P--,C=G,G=g.innerHTML,g=Hp.getInertBodyElement(C)}while(C!==G);return nu((new Bp).sanitizeChildren(Kf(g)||g))}finally{if(g){const C=Kf(g)||g;for(;C.firstChild;)C.removeChild(C.firstChild)}}}function Kf(a){return"content"in a&&function wu(a){return a.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===a.nodeName}(a)?a.content:null}var iu=function(a){return a[a.NONE=0]="NONE",a[a.HTML=1]="HTML",a[a.STYLE=2]="STYLE",a[a.SCRIPT=3]="SCRIPT",a[a.URL=4]="URL",a[a.RESOURCE_URL=5]="RESOURCE_URL",a}(iu||{});function jp(a){const d=Yd();return d?Bf(d.sanitize(iu.HTML,a)||""):eh(a,"HTML")?Bf(tl(a)):Rg(yd(),Ti(a))}function Xo(a){const d=Yd();return d?d.sanitize(iu.URL,a)||"":eh(a,"URL")?tl(a):Kh(Ti(a))}function bd(a){const d=Yd();if(d)return Vf(d.sanitize(iu.RESOURCE_URL,a)||"");if(eh(a,"ResourceURL"))return Vf(tl(a));throw new Qe(904,!1)}function Ng(a,d,g){return function Fs(a,d){return"src"===d&&("embed"===a||"frame"===a||"iframe"===a||"media"===a||"script"===a)||"href"===d&&("base"===a||"link"===a)?bd:Xo}(d,g)(a)}function Yd(){const a=Vi();return a&&a[Bt].sanitizer}const kg=/^>|^->|<!--|-->|--!>|<!-$/g,Zf=/(<|>)/g,Fg="\u200b$1\u200b";function Gg(a){return a.ownerDocument.defaultView}function $a(a){return a instanceof Function?a():a}var V=function(a){return a[a.Important=1]="Important",a[a.DashCase=2]="DashCase",a}(V||{});let ae;function me(a,d){return ae(a,d)}function ct(a,d,g,C,P){if(null!=C){let G,se=!1;Eo(C)?G=C:oo(C)&&(se=!0,C=C[vt]);const Ae=Fo(C);0===a&&null!==g?null==P?za(d,g,Ae):Us(d,g,Ae,P||null,!0):1===a&&null!==g?Us(d,g,Ae,P||null,!0):2===a?function Ru(a,d,g){const C=il(a,d);C&&function ul(a,d,g,C){a.removeChild(d,g,C)}(a,C,d,g)}(d,Ae,se):3===a&&d.destroyNode(Ae),null!=G&&function rg(a,d,g,C,P){const G=g[ia];G!==Fo(g)&&ct(d,a,C,G,P);for(let Ae=$r;Ae<g.length;Ae++){const Ve=g[Ae];su(Ve[Be],Ve,a,d,C,G)}}(d,a,G,g,P)}}function qt(a,d){return a.createComment(function Yp(a){return a.replace(kg,d=>d.replace(Zf,Fg))}(d))}function on(a,d,g){return a.createElement(d,g)}function ki(a,d){d[Bt].changeDetectionScheduler?.notify(1),su(a,d,d[Rt],2,null,null)}function nr(a,d){const g=a[gs],C=g.indexOf(d);g.splice(C,1)}function fr(a,d){if(a.length<=$r)return;const g=$r+d,C=a[g];if(C){const P=C[Hn];null!==P&&P!==a&&nr(P,C),d>0&&(a[g-1][$t]=C[$t]);const G=di(a,$r+d);!function Dn(a,d){ki(a,d),d[vt]=null,d[hn]=null}(C[Be],C);const se=G[ai];null!==se&&se.detachView(G[Be]),C[pt]=null,C[$t]=null,C[_t]&=-129}return C}function So(a,d){if(!(256&d[_t])){const g=d[Rt];g.destroyNode&&su(a,d,g,3,null,null),function Ln(a){let d=a[fn];if(!d)return bo(a[Be],a);for(;d;){let g=null;if(oo(d))g=d[fn];else{const C=d[$r];C&&(g=C)}if(!g){for(;d&&!d[$t]&&d!==a;)oo(d)&&bo(d[Be],d),d=d[pt];null===d&&(d=a),oo(d)&&bo(d[Be],d),g=d&&d[$t]}d=g}}(d)}}function bo(a,d){if(256&d[_t])return;const g=M(null);try{d[_t]&=-129,d[_t]|=256,d[Do]&&function fe(a){if(Z(a),H(a))for(let d=0;d<a.producerNode.length;d++)ce(a.producerNode[d],a.producerIndexOfThis[d]);a.producerNode.length=a.producerLastReadVersion.length=a.producerIndexOfThis.length=0,a.liveConsumerNode&&(a.liveConsumerNode.length=a.liveConsumerIndexOfThis.length=0)}(d[Do]),function es(a,d){let g;if(null!=a&&null!=(g=a.destroyHooks))for(let C=0;C<g.length;C+=2){const P=d[g[C]];if(!(P instanceof gd)){const G=g[C+1];if(Array.isArray(G))for(let se=0;se<G.length;se+=2){const Ae=P[G[se]],Ve=G[se+1];Ga(4,Ae,Ve);try{Ve.call(Ae)}finally{Ga(5,Ae,Ve)}}else{Ga(4,P,G);try{G.call(P)}finally{Ga(5,P,G)}}}}}(a,d),function wo(a,d){const g=a.cleanup,C=d[yn];if(null!==g)for(let G=0;G<g.length-1;G+=2)if("string"==typeof g[G]){const se=g[G+3];se>=0?C[se]():C[-se].unsubscribe(),G+=2}else g[G].call(C[g[G+1]]);null!==C&&(d[yn]=null);const P=d[en];if(null!==P){d[en]=null;for(let G=0;G<P.length;G++)(0,P[G])()}}(a,d),1===d[Be].type&&d[Rt].destroy();const C=d[Hn];if(null!==C&&Eo(d[pt])){C!==d[pt]&&nr(C,d);const P=d[ai];null!==P&&P.detachView(a)}!function _f(a){Gc.delete(a[Ni])}(d)}finally{M(g)}}function ha(a,d,g){return function hs(a,d,g){let C=d;for(;null!==C&&40&C.type;)C=(d=C).parent;if(null===C)return g[vt];{const{componentOffset:P}=C;if(P>-1){const{encapsulation:G}=a.data[C.directiveStart+P];if(G===ba.None||G===ba.Emulated)return null}return la(C,g)}}(a,d.parent,g)}function Us(a,d,g,C,P){a.insertBefore(d,g,C,P)}function za(a,d,g){a.appendChild(d,g)}function nl(a,d,g,C,P){null!==C?Us(a,d,g,C,P):za(a,d,g)}function il(a,d){return a.parentNode(d)}function ql(a,d,g){return hc(a,d,g)}let Cd,hc=function Wl(a,d,g){return 40&a.type?la(a,g):null};function Ed(a,d,g,C){const P=ha(a,C,d),G=d[Rt],Ae=ql(C.parent||d[hn],C,d);if(null!=P)if(Array.isArray(g))for(let Ve=0;Ve<g.length;Ve++)nl(G,P,g[Ve],Ae,!1);else nl(G,P,g,Ae,!1);void 0!==Cd&&Cd(G,C,d,g,P)}function $d(a,d){if(null!==d){const g=d.type;if(3&g)return la(d,a);if(4&g)return qh(-1,a[d.index]);if(8&g){const C=d.child;if(null!==C)return $d(a,C);{const P=a[d.index];return Eo(P)?qh(-1,P):Fo(P)}}if(32&g)return me(d,a)()||Fo(a[d.index]);{const C=ah(a,d);return null!==C?Array.isArray(C)?C[0]:$d(ks(a[Rn]),C):$d(a,d.next)}}return null}function ah(a,d){return null!==d?a[Rn][hn].projection[d.projection]:null}function qh(a,d){const g=$r+a+1;if(g<d.length){const C=d[g],P=C[Be].firstChild;if(null!==P)return $d(C,P)}return d[ia]}function bl(a,d,g,C,P,G,se){for(;null!=g;){const Ae=C[g.index],Ve=g.type;if(se&&0===d&&(Ae&&As(Fo(Ae),C),g.flags|=2),32&~g.flags)if(8&Ve)bl(a,d,g.child,C,P,G,!1),ct(d,a,P,Ae,G);else if(32&Ve){const Pt=me(g,C);let Qt;for(;Qt=Pt();)ct(d,a,P,Qt,G);ct(d,a,P,Ae,G)}else 16&Ve?Qp(a,d,C,g,P,G):ct(d,a,P,Ae,G);g=se?g.projectionNext:g.next}}function su(a,d,g,C,P,G){bl(g,C,a.firstChild,d,P,G,!1)}function Qp(a,d,g,C,P,G){const se=g[Rn],Ve=se[hn].projection[C.projection];if(Array.isArray(Ve))for(let Pt=0;Pt<Ve.length;Pt++)ct(d,a,P,Ve[Pt],G);else{let Pt=Ve;const Qt=se[pt];Ud(C)&&(Pt.flags|=128),bl(a,d,Pt,Qt,P,G,!0)}}function Zp(a,d,g){""===g?a.removeAttribute(d,"class"):a.setAttribute(d,"class",g)}function lh(a,d,g){const{mergedAttrs:C,classes:P,styles:G}=g;null!==C&&oa(a,d,C),null!==P&&Zp(a,d,P),null!==G&&function ep(a,d,g){a.setAttribute(d,"style",g)}(a,d,G)}const $o={};function Md(a=1){wc(yo(),Vi(),Ta()+a,!1)}function wc(a,d,g,C){if(!C)if(3&~d[_t]){const G=a.preOrderHooks;null!==G&&yl(d,G,0,g)}else{const G=a.preOrderCheckHooks;null!==G&&Od(d,G,g)}Kl(g)}function Cl(a,d=Qr.Default){const g=Vi();return null===g?cs(a,d):ac(Po(),g,We(a),d)}function ms(){throw new Error("invalid")}function sg(a,d,g,C,P,G){const se=M(null);try{let Ae=null;P&Os.SignalBased&&(Ae=d[C][A]),null!==Ae&&void 0!==Ae.transformFn&&(G=Ae.transformFn(G)),P&Os.HasDecoratorInputTransform&&(G=a.inputTransforms[C].call(d,G)),null!==a.setInput?a.setInput(d,Ae,G,g,C):zd(d,Ae,C,G)}finally{M(se)}}function ag(a,d,g,C,P,G,se,Ae,Ve,Pt,Qt){const _n=d.blueprint.slice();return _n[vt]=P,_n[_t]=204|C,(null!==Pt||a&&2048&a[_t])&&(_n[_t]|=2048),mh(_n),_n[pt]=_n[Nn]=a,_n[ci]=g,_n[Bt]=se||a&&a[Bt],_n[Rt]=Ae||a&&a[Rt],_n[yi]=Ve||a&&a[yi]||null,_n[hn]=G,_n[Ni]=function mf(){return gf++}(),_n[mn]=Qt,_n[Zr]=Pt,_n[Rn]=2==d.type?a[Rn]:_n,_n}function ch(a,d,g,C,P){let G=a.data[d];if(null===G)G=function jg(a,d,g,C,P){const G=ud(),se=Xd(),Ve=a.data[d]=function U(a,d,g,C,P,G){let se=d?d.injectorIndex:-1,Ae=0;return un()&&(Ae|=128),{type:g,index:C,insertBeforeIndex:null,injectorIndex:se,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:Ae,providerIndexes:0,value:P,attrs:G,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:d,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,se?G:G&&G.parent,g,d,C,P);return null===a.firstChild&&(a.firstChild=Ve),null!==G&&(se?null==G.child&&null!==Ve.parent&&(G.child=Ve):null===G.next&&(G.next=Ve,Ve.prev=G)),Ve}(a,d,g,C,P),function hu(){return lo.lFrame.inI18n}()&&(G.flags|=32);else if(64&G.type){G.type=g,G.value=C,G.attrs=P;const se=function Ha(){const a=lo.lFrame,d=a.currentTNode;return a.isParent?d:d.parent}();G.injectorIndex=null===se?-1:se.injectorIndex}return yc(G,!0),G}function Yg(a,d,g,C){if(0===g)return-1;const P=d.length;for(let G=0;G<g;G++)d.push(C),a.blueprint.push(C),a.data.push(null);return P}function Wg(a,d,g,C,P){const G=Ta(),se=2&C;try{Kl(-1),se&&d.length>mr&&wc(a,d,mr,!1),Ga(se?2:0,P),g(C,P)}finally{Kl(G),Ga(se?3:1,P)}}function ym(a,d,g){if(Es(d)){const C=M(null);try{const G=d.directiveEnd;for(let se=d.directiveStart;se<G;se++){const Ae=a.data[se];Ae.contentQueries&&Ae.contentQueries(1,g[se],se)}}finally{M(C)}}}function sm(a,d,g){Yt()&&(function xn(a,d,g,C){const P=g.directiveStart,G=g.directiveEnd;no(g)&&function Io(a,d,g){const C=la(d,a),P=km(g);let se=16;g.signals?se=4096:g.onPush&&(se=64);const Ae=Sa(a,ag(a,P,null,se,C,d,null,a[Bt].rendererFactory.createRenderer(C,g),null,null,null));a[d.index]=Ae}(d,g,a.data[P+g.componentOffset]),a.firstCreatePass||mu(g,d),As(C,d);const se=g.initialInputs;for(let Ae=P;Ae<G;Ae++){const Ve=a.data[Ae],Pt=lc(d,a,Ae,g);As(Pt,d),null!==se&&ws(0,Ae-P,Pt,Ve,0,se),Yo(Ve)&&(_l(g.index,d)[ci]=lc(d,a,Ae,g))}}(a,d,g,la(g,d)),!(64&~g.flags)&&qn(a,d,g))}function Nm(a,d,g=la){const C=d.localNames;if(null!==C){let P=d.index+1;for(let G=0;G<C.length;G+=2){const se=C[G+1],Ae=-1===se?g(d,a):a[se];a[P++]=Ae}}}function km(a){const d=a.tView;return null===d||d.incompleteFirstPass?a.tView=Sm(1,null,a.template,a.decls,a.vars,a.directiveDefs,a.pipeDefs,a.viewQuery,a.schemas,a.consts,a.id):d}function Sm(a,d,g,C,P,G,se,Ae,Ve,Pt,Qt){const _n=mr+C,ri=_n+P,gi=function lv(a,d){const g=[];for(let C=0;C<d;C++)g.push(C<a?null:$o);return g}(_n,ri),Li="function"==typeof Pt?Pt():Pt;return gi[Be]={type:a,blueprint:gi,template:g,queries:null,viewQuery:Ae,declTNode:d,data:gi.slice().fill(null,_n),bindingStartIndex:_n,expandoStartIndex:ri,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 G?G():G,pipeRegistry:"function"==typeof se?se():se,firstChild:null,schemas:Ve,consts:Li,incompleteFirstPass:!1,ssrId:Qt}}let Um=()=>null;function b(a,d,g,C,P){for(let G in d){if(!d.hasOwnProperty(G))continue;const se=d[G];if(void 0===se)continue;C??={};let Ae,Ve=Os.None;Array.isArray(se)?(Ae=se[0],Ve=se[1]):Ae=se;let Pt=G;if(null!==P){if(!P.hasOwnProperty(G))continue;Pt=P[G]}0===a?N(C,g,Pt,Ae,Ve):N(C,g,Pt,Ae)}return C}function N(a,d,g,C,P){let G;a.hasOwnProperty(g)?(G=a[g]).push(d,C):G=a[g]=[d,C],void 0!==P&&G.push(P)}function Jt(a,d,g,C,P,G,se,Ae){const Ve=la(d,g);let Qt,Pt=d.inputs;!Ae&&null!=Pt&&(Qt=Pt[C])?(Ic(a,g,Qt,C,P),no(d)&&function wn(a,d){const g=_l(d,a);16&g[_t]||(g[_t]|=64)}(g,d.index)):3&d.type&&(C=function ft(a){return"class"===a?"className":"for"===a?"htmlFor":"formaction"===a?"formAction":"innerHtml"===a?"innerHTML":"readonly"===a?"readOnly":"tabindex"===a?"tabIndex":a}(C),P=null!=se?se(P,d.value||"",C):P,G.setProperty(Ve,C,P))}function _e(a,d,g,C){if(Yt()){const P=null===C?null:{"":-1},G=function qi(a,d){const g=a.directiveRegistry;let C=null,P=null;if(g)for(let G=0;G<g.length;G++){const se=g[G];if(ns(d,se.selectors,!1))if(C||(C=[]),Yo(se))if(null!==se.findHostDirectiveDefs){const Ae=[];P=P||new Map,se.findHostDirectiveDefs(se,Ae,P),C.unshift(...Ae,se),tr(a,d,Ae.length)}else C.unshift(se),tr(a,d,0);else P=P||new Map,se.findHostDirectiveDefs?.(se,C,P),C.push(se)}return null===C?null:[C,P]}(a,g);let se,Ae;null===G?se=Ae=null:[se,Ae]=G,null!==se&&lt(a,d,g,se,P,Ae),P&&function sr(a,d,g){if(d){const C=a.localNames=[];for(let P=0;P<d.length;P+=2){const G=g[d[P+1]];if(null==G)throw new Qe(-301,!1);C.push(d[P],G)}}}(g,C,P)}g.mergedAttrs=nn(g.mergedAttrs,g.attrs)}function lt(a,d,g,C,P,G){for(let Pt=0;Pt<C.length;Pt++)_u(mu(g,d),a,C[Pt].type);!function zr(a,d,g){a.flags|=1,a.directiveStart=d,a.directiveEnd=d+g,a.providerIndexes=d}(g,a.data.length,C.length);for(let Pt=0;Pt<C.length;Pt++){const Qt=C[Pt];Qt.providersResolver&&Qt.providersResolver(Qt)}let se=!1,Ae=!1,Ve=Yg(a,d,C.length,null);for(let Pt=0;Pt<C.length;Pt++){const Qt=C[Pt];g.mergedAttrs=nn(g.mergedAttrs,Qt.hostAttrs),eo(a,g,d,Ve,Qt),Rr(Ve,Qt,P),null!==Qt.contentQueries&&(g.flags|=4),(null!==Qt.hostBindings||null!==Qt.hostAttrs||0!==Qt.hostVars)&&(g.flags|=64);const _n=Qt.type.prototype;!se&&(_n.ngOnChanges||_n.ngOnInit||_n.ngDoCheck)&&((a.preOrderHooks??=[]).push(g.index),se=!0),!Ae&&(_n.ngOnChanges||_n.ngDoCheck)&&((a.preOrderCheckHooks??=[]).push(g.index),Ae=!0),Ve++}!function Ce(a,d,g){const P=d.directiveEnd,G=a.data,se=d.attrs,Ae=[];let Ve=null,Pt=null;for(let Qt=d.directiveStart;Qt<P;Qt++){const _n=G[Qt],ri=g?g.get(_n):null,Li=ri?ri.outputs:null;Ve=b(0,_n.inputs,Qt,Ve,ri?ri.inputs:null),Pt=b(1,_n.outputs,Qt,Pt,Li);const rr=null===Ve||null===se||to(d)?null:El(Ve,Qt,se);Ae.push(rr)}null!==Ve&&(Ve.hasOwnProperty("class")&&(d.flags|=8),Ve.hasOwnProperty("style")&&(d.flags|=16)),d.initialInputs=Ae,d.inputs=Ve,d.outputs=Pt}(a,g,G)}function qn(a,d,g){const C=g.directiveStart,P=g.directiveEnd,G=g.index,se=function Fc(){return lo.lFrame.currentDirectiveIndex}();try{Kl(G);for(let Ae=C;Ae<P;Ae++){const Ve=a.data[Ae],Pt=d[Ae];vh(Ae),(null!==Ve.hostBindings||0!==Ve.hostVars||null!==Ve.hostAttrs)&&hi(Ve,Pt)}}finally{Kl(-1),vh(se)}}function hi(a,d){null!==a.hostBindings&&a.hostBindings(1,d)}function tr(a,d,g){d.componentOffset=g,(a.components??=[]).push(d.index)}function Rr(a,d,g){if(g){if(d.exportAs)for(let C=0;C<d.exportAs.length;C++)g[d.exportAs[C]]=a;Yo(d)&&(g[""]=a)}}function eo(a,d,g,C,P){a.data[C]=P;const G=P.factory||(P.factory=zs(P.type)),se=new gd(G,Yo(P),Cl);a.blueprint[C]=se,g[C]=se,function Wt(a,d,g,C,P){const G=P.hostBindings;if(G){let se=a.hostBindingOpCodes;null===se&&(se=a.hostBindingOpCodes=[]);const Ae=~d.index;(function an(a){let d=a.length;for(;d>0;){const g=a[--d];if("number"==typeof g&&g<0)return g}return 0})(se)!=Ae&&se.push(Ae),se.push(g,C,G)}}(a,d,C,Yg(a,g,P.hostVars,$o),P)}function qr(a,d,g,C,P,G){const se=la(a,d);!function rs(a,d,g,C,P,G,se){if(null==G)a.removeAttribute(d,P,g);else{const Ae=null==se?Ti(G):se(G,C||"",P);a.setAttribute(d,P,Ae,g)}}(d[Rt],se,G,a.value,g,C,P)}function ws(a,d,g,C,P,G){const se=G[d];if(null!==se)for(let Ae=0;Ae<se.length;)sg(C,g,se[Ae++],se[Ae++],se[Ae++],se[Ae++])}function El(a,d,g){let C=null,P=0;for(;P<g.length;){const G=g[P];if(0!==G)if(5!==G){if("number"==typeof G)break;if(a.hasOwnProperty(G)){null===C&&(C=[]);const se=a[G];for(let Ae=0;Ae<se.length;Ae+=3)if(se[Ae]===d){C.push(G,se[Ae+1],se[Ae+2],g[P+1]);break}}P+=2}else P+=2;else P+=4}return C}function Nl(a,d,g,C){return[a,!0,0,d,null,C,null,g,null,null]}function ec(a,d){const g=a.contentQueries;if(null!==g){const C=M(null);try{for(let P=0;P<g.length;P+=2){const se=g[P+1];if(-1!==se){const Ae=a.data[se];sl(g[P]),Ae.contentQueries(2,d[se],se)}}}finally{M(C)}}}function Sa(a,d){return a[fn]?a[An][$t]=d:a[fn]=d,a[An]=d,d}function Vr(a,d,g){sl(0);const C=M(null);try{d(a,g)}finally{M(C)}}function Ro(a){return a[yn]||(a[yn]=[])}function Gs(a){return a.cleanup||(a.cleanup=[])}function kl(a,d,g){return(null===a||Yo(a))&&(g=function ld(a){for(;Array.isArray(a);){if("object"==typeof a[Yr])return a;a=a[vt]}return null}(g[d.index])),g[Rt]}function Jc(a,d){const g=a[yi],C=g?g.get(Bc,null):null;C&&C.handleError(d)}function Ic(a,d,g,C,P){for(let G=0;G<g.length;){const se=g[G++],Ae=g[G++],Ve=g[G++];sg(a.data[se],d[se],C,Ae,Ve,P)}}function pc(a,d,g){const C=Ad(d,a);!function Lt(a,d,g){a.setValue(d,g)}(a[Rt],C,g)}function Ka(a,d){const g=_l(d,a),C=g[Be];!function n_(a,d){for(let g=d.length;g<a.blueprint.length;g++)d.push(a.blueprint[g])}(C,g);const P=g[vt];null!==P&&null===g[mn]&&(g[mn]=Pp(P,g[yi])),uv(C,g,g[ci])}function uv(a,d,g){Fu(d);try{const C=a.viewQuery;null!==C&&Vr(1,C,g);const P=a.template;null!==P&&Wg(a,d,P,1,g),a.firstCreatePass&&(a.firstCreatePass=!1),d[ai]?.finishViewCreation(a),a.staticContentQueries&&ec(a,d),a.staticViewQueries&&Vr(2,a.viewQuery,g);const G=a.components;null!==G&&function qc(a,d){for(let g=0;g<d.length;g++)Ka(a,d[g])}(d,G)}catch(C){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=!1),C}finally{d[_t]&=-5,Uc()}}function Jp(a,d){return!d||null===d.firstChild||Ud(a)}function $g(a,d,g,C=!0){const P=d[Be];if(function ii(a,d,g,C){const P=$r+C,G=g.length;C>0&&(g[P-1][$t]=d),C<G-$r?(d[$t]=g[P],ei(g,$r+C,d)):(g.push(d),d[$t]=null),d[pt]=g;const se=d[Hn];null!==se&&g!==se&&function Zi(a,d){const g=a[gs];d[Rn]!==d[pt][pt][Rn]&&(a[_t]|=ma.HasTransplantedViews),null===g?a[gs]=[d]:g.push(d)}(se,d);const Ae=d[ai];null!==Ae&&Ae.insertView(a),du(d),d[_t]|=128}(P,d,a,g),C){const se=qh(g,a),Ae=d[Rt],Ve=il(Ae,a[ia]);null!==Ve&&function Yn(a,d,g,C,P,G){C[vt]=P,C[hn]=d,su(a,C,g,1,P,G)}(P,a[hn],Ae,d,Ve,se)}const G=d[mn];null!==G&&null!==G.firstChild&&(G.firstChild=null)}function hv(a,d,g,C,P=!1){for(;null!==g;){const G=d[g.index];null!==G&&C.push(Fo(G)),Eo(G)&&uy(G,C);const se=g.type;if(8&se)hv(a,d,g.child,C);else if(32&se){const Ae=me(g,d);let Ve;for(;Ve=Ae();)C.push(Ve)}else if(16&se){const Ae=ah(d,g);if(Array.isArray(Ae))C.push(...Ae);else{const Ve=ks(d[Rn]);hv(Ve[Be],Ve,Ae,C,!0)}}g=P?g.projectionNext:g.next}return C}function uy(a,d){for(let g=$r;g<a.length;g++){const C=a[g],P=C[Be].firstChild;null!==P&&hv(C[Be],C,P,d)}a[ia]!==a[vt]&&d.push(a[ia])}let hy=[];const gy={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:a=>{Dd(a.lView)},consumerOnSignalRead(){this.lView[Do]=this}},W_=100;function pv(a,d=!0,g=0){const C=a[Bt],P=C.rendererFactory;P.begin?.();try{!function e1(a,d){i_(a,d);let g=0;for(;Wc(a);){if(g===W_)throw new Qe(103,!1);g++,i_(a,1)}}(a,g)}catch(se){throw d&&Jc(a,se),se}finally{P.end?.(),C.inlineEffectRunner?.flush()}}function t1(a,d,g,C){const P=d[_t];if(!(256&~P))return;d[Bt].inlineEffectRunner?.flush(),Fu(d);let se=null,Ae=null;(function n1(a){return 2!==a.type})(a)&&(Ae=function qb(a){return a[Do]??function py(a){const d=hy.pop()??Object.create(gy);return d.lView=a,d}(a)}(d),se=function O(a){return a&&(a.nextProducerIndex=0),M(a)}(Ae));try{mh(d),function pd(a){return lo.lFrame.bindingIndex=a}(a.bindingStartIndex),null!==g&&Wg(a,d,g,2,C);const Ve=!(3&~P);if(Ve){const _n=a.preOrderCheckHooks;null!==_n&&Od(d,_n,null)}else{const _n=a.preOrderHooks;null!==_n&&yl(d,_n,0,null),bc(d,0)}if(function r1(a){for(let d=Mf(a);null!==d;d=kh(d)){if(!(d[_t]&ma.HasTransplantedViews))continue;const g=d[gs];for(let C=0;C<g.length;C++){oc(g[C])}}}(d),my(d,0),null!==a.contentQueries&&ec(a,d),Ve){const _n=a.contentCheckHooks;null!==_n&&Od(d,_n)}else{const _n=a.contentHooks;null!==_n&&yl(d,_n,1),bc(d,1)}!function av(a,d){const g=a.hostBindingOpCodes;if(null!==g)try{for(let C=0;C<g.length;C++){const P=g[C];if(P<0)Kl(~P);else{const G=P,se=g[++C],Ae=g[++C];tp(se,G),Ae(2,d[G])}}}finally{Kl(-1)}}(a,d);const Pt=a.components;null!==Pt&&_y(d,Pt,0);const Qt=a.viewQuery;if(null!==Qt&&Vr(2,Qt,C),Ve){const _n=a.viewCheckHooks;null!==_n&&Od(d,_n)}else{const _n=a.viewHooks;null!==_n&&yl(d,_n,2),bc(d,2)}if(!0===a.firstUpdatePass&&(a.firstUpdatePass=!1),d[Ir]){for(const _n of d[Ir])_n();d[Ir]=null}d[_t]&=-73}catch(Ve){throw Dd(d),Ve}finally{null!==Ae&&(function Y(a,d){if(M(d),a&&void 0!==a.producerNode&&void 0!==a.producerIndexOfThis&&void 0!==a.producerLastReadVersion){if(H(a))for(let g=a.nextProducerIndex;g<a.producerNode.length;g++)ce(a.producerNode[g],a.producerIndexOfThis[g]);for(;a.producerNode.length>a.nextProducerIndex;)a.producerNode.pop(),a.producerLastReadVersion.pop(),a.producerIndexOfThis.pop()}}(Ae,se),function fy(a){a.lView[Do]!==a&&(a.lView=null,hy.push(a))}(Ae)),Uc()}}function my(a,d){for(let g=Mf(a);null!==g;g=kh(g))for(let C=$r;C<g.length;C++)$_(g[C],d)}function vy(a,d,g){$_(_l(d,a),g)}function $_(a,d){Td(a)&&i_(a,d)}function i_(a,d){const C=a[Be],P=a[_t],G=a[Do];let se=!!(0===d&&16&P);if(se||=!!(64&P&&0===d),se||=!!(1024&P),se||=!(!G?.dirty||!j(G)),G&&(G.dirty=!1),a[_t]&=-9217,se)t1(C,a,C.template,a[ci]);else if(8192&P){my(a,1);const Ae=C.components;null!==Ae&&_y(a,Ae,1)}}function _y(a,d,g){for(let C=0;C<d.length;C++)vy(a,d[C],g)}function fv(a){for(a[Bt].changeDetectionScheduler?.notify();a;){a[_t]|=64;const d=ks(a);if(_a(a)&&!d)return a;a=d}return null}class gv{get rootNodes(){const d=this._lView,g=d[Be];return hv(g,d,g.firstChild,[])}constructor(d,g,C=!0){this._lView=d,this._cdRefInjectingView=g,this.notifyErrorHandler=C,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ci]}set context(d){this._lView[ci]=d}get destroyed(){return!(256&~this._lView[_t])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const d=this._lView[pt];if(Eo(d)){const g=d[8],C=g?g.indexOf(this):-1;C>-1&&(fr(d,C),di(g,C))}this._attachedToViewContainer=!1}So(this._lView[Be],this._lView)}onDestroy(d){_c(this._lView,d)}markForCheck(){fv(this._cdRefInjectingView||this._lView)}detach(){this._lView[_t]&=-129}reattach(){du(this._lView),this._lView[_t]|=128}detectChanges(){this._lView[_t]|=1024,pv(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Qe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,ki(this._lView[Be],this._lView)}attachToAppRef(d){if(this._attachedToViewContainer)throw new Qe(902,!1);this._appRef=d,du(this._lView)}}let mv=(()=>{class d{}return d.__NG_ELEMENT_ID__=by,d})();const yy=mv,Sy=class extends yy{constructor(d,g,C){super(),this._declarationLView=d,this._declarationTContainer=g,this.elementRef=C}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(d,g){return this.createEmbeddedViewImpl(d,g)}createEmbeddedViewImpl(d,g,C){const P=function dh(a,d,g,C){const P=M(null);try{const G=d.tView,Ve=ag(a,G,g,4096&a[_t]?4096:16,null,d,null,null,C?.injector??null,C?.embeddedViewInjector??null,C?.dehydratedView??null);Ve[Hn]=a[d.index];const Qt=a[ai];return null!==Qt&&(Ve[ai]=Qt.createEmbeddedView(G)),uv(G,Ve,g),Ve}finally{M(P)}}(this._declarationLView,this._declarationTContainer,d,{embeddedViewInjector:g,dehydratedView:C});return new gv(P)}};function by(){return vv(Po(),Vi())}function vv(a,d){return 4&a.type?new Sy(d,a,vd(a,d)):null}class Cv{}class By{}class e0{}class m1{resolveComponentFactory(d){throw function Vy(a){const d=Error(`No component factory found for ${Vn(a)}.`);return d.ngComponent=a,d}(d)}}let Ev=(()=>{class d{}return d.NULL=new m1,d})();class Hy{}let v1=(()=>{class d{constructor(){this.destroyNode=null}}return d.__NG_ELEMENT_ID__=()=>function _1(){const a=Vi(),g=_l(Po().index,a);return(oo(g)?g:a)[Rt]}(),d})(),y1=(()=>{var a;class d{}return(a=d).\u0275prov=Nr({token:a,providedIn:"root",factory:()=>null}),d})();const t0={},jy=new Set;function lg(a){jy.has(a)||(jy.add(a),performance?.mark?.("mark_feature_usage",{detail:{feature:a}}))}function Yy(...a){}class Rc{constructor({enableLongStackTrace:d=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:C=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Qs(!1),this.onMicrotaskEmpty=new Qs(!1),this.onStable=new Qs(!1),this.onError=new Qs(!1),typeof Zone>"u")throw new Qe(908,!1);Zone.assertZonePatched();const P=this;P._nesting=0,P._outer=P._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(P._inner=P._inner.fork(new Zone.TaskTrackingZoneSpec)),d&&Zone.longStackTraceZoneSpec&&(P._inner=P._inner.fork(Zone.longStackTraceZoneSpec)),P.shouldCoalesceEventChangeDetection=!C&&g,P.shouldCoalesceRunChangeDetection=C,P.lastRequestAnimationFrameId=-1,P.nativeRequestAnimationFrame=function S1(){const a="function"==typeof _i.requestAnimationFrame;let d=_i[a?"requestAnimationFrame":"setTimeout"],g=_i[a?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&d&&g){const C=d[Zone.__symbol__("OriginalDelegate")];C&&(d=C);const P=g[Zone.__symbol__("OriginalDelegate")];P&&(g=P)}return{nativeRequestAnimationFrame:d,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function E1(a){const d=()=>{!function C1(a){a.isCheckStableRunning||-1!==a.lastRequestAnimationFrameId||(a.lastRequestAnimationFrameId=a.nativeRequestAnimationFrame.call(_i,()=>{a.fakeTopEventTask||(a.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{a.lastRequestAnimationFrameId=-1,r0(a),a.isCheckStableRunning=!0,n0(a),a.isCheckStableRunning=!1},void 0,()=>{},()=>{})),a.fakeTopEventTask.invoke()}),r0(a))}(a)};a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,C,P,G,se,Ae)=>{if(function $y(a){return!(!Array.isArray(a)||1!==a.length)&&!0===a[0].data?.__ignore_ng_zone__}(Ae))return g.invokeTask(P,G,se,Ae);try{return Wy(a),g.invokeTask(P,G,se,Ae)}finally{(a.shouldCoalesceEventChangeDetection&&"eventTask"===G.type||a.shouldCoalesceRunChangeDetection)&&d(),o0(a)}},onInvoke:(g,C,P,G,se,Ae,Ve)=>{try{return Wy(a),g.invoke(P,G,se,Ae,Ve)}finally{a.shouldCoalesceRunChangeDetection&&d(),o0(a)}},onHasTask:(g,C,P,G)=>{g.hasTask(P,G),C===P&&("microTask"==G.change?(a._hasPendingMicrotasks=G.microTask,r0(a),n0(a)):"macroTask"==G.change&&(a.hasPendingMacrotasks=G.macroTask))},onHandleError:(g,C,P,G)=>(g.handleError(P,G),a.runOutsideAngular(()=>a.onError.emit(G)),!1)})}(P)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Rc.isInAngularZone())throw new Qe(909,!1)}static assertNotInAngularZone(){if(Rc.isInAngularZone())throw new Qe(909,!1)}run(d,g,C){return this._inner.run(d,g,C)}runTask(d,g,C,P){const G=this._inner,se=G.scheduleEventTask("NgZoneEvent: "+P,d,b1,Yy,Yy);try{return G.runTask(se,g,C)}finally{G.cancelTask(se)}}runGuarded(d,g,C){return this._inner.runGuarded(d,g,C)}runOutsideAngular(d){return this._outer.run(d)}}const b1={};function n0(a){if(0==a._nesting&&!a.hasPendingMicrotasks&&!a.isStable)try{a._nesting++,a.onMicrotaskEmpty.emit(null)}finally{if(a._nesting--,!a.hasPendingMicrotasks)try{a.runOutsideAngular(()=>a.onStable.emit(null))}finally{a.isStable=!0}}}function r0(a){a.hasPendingMicrotasks=!!(a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&-1!==a.lastRequestAnimationFrameId)}function Wy(a){a._nesting++,a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))}function o0(a){a._nesting--,n0(a)}class s0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Qs,this.onMicrotaskEmpty=new Qs,this.onStable=new Qs,this.onError=new Qs}run(d,g,C){return d.apply(g,C)}runGuarded(d,g,C){return d.apply(g,C)}runOutsideAngular(d){return d()}runTask(d,g,C,P){return d.apply(g,C)}}var am=function(a){return a[a.EarlyRead=0]="EarlyRead",a[a.Write=1]="Write",a[a.MixedReadWrite=2]="MixedReadWrite",a[a.Read=3]="Read",a}(am||{});const Ky={destroy(){}};function Xy(a,d){!d&&function Kr(a){if(!Va())throw new Qe(-203,!1)}();const g=d?.injector??_r(Yl);if(!function jc(a){return"browser"===(a??_r(Yl)).get(Xu)}(g))return Ky;lg("NgAfterNextRender");const C=g.get(Gm),P=C.handler??=new Zy,G=d?.phase??am.MixedReadWrite,se=()=>{P.unregister(Ve),Ae()},Ae=g.get(kd).onDestroy(se),Ve=na(g,()=>new Qy(G,()=>{se(),a()}));return P.register(Ve),{destroy:se}}class Qy{constructor(d,g){this.phase=d,this.callbackFn=g,this.zone=_r(Rc),this.errorHandler=_r(Bc,{optional:!0}),_r(Cv,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(d){this.errorHandler?.handleError(d)}}}class Zy{constructor(){this.executingCallbacks=!1,this.buckets={[am.EarlyRead]:new Set,[am.Write]:new Set,[am.MixedReadWrite]:new Set,[am.Read]:new Set},this.deferredCallbacks=new Set}register(d){(this.executingCallbacks?this.deferredCallbacks:this.buckets[d.phase]).add(d)}unregister(d){this.buckets[d.phase].delete(d),this.deferredCallbacks.delete(d)}execute(){this.executingCallbacks=!0;for(const d of Object.values(this.buckets))for(const g of d)g.invoke();this.executingCallbacks=!1;for(const d of this.deferredCallbacks)this.buckets[d.phase].add(d);this.deferredCallbacks.clear()}destroy(){for(const d of Object.values(this.buckets))d.clear();this.deferredCallbacks.clear()}}let Gm=(()=>{var a;class d{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const C=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const P of C)P()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(a=d).\u0275prov=Nr({token:a,providedIn:"root",factory:()=>new a}),d})();function lm(a){return!!ut(a)}function Mv(a,d,g){let C=g?a.styles:null,P=g?a.classes:null,G=0;if(null!==d)for(let se=0;se<d.length;se++){const Ae=d[se];"number"==typeof Ae?G=Ae:1==G?P=ht(P,Ae):2==G&&(C=ht(C,Ae+": "+d[++se]+";"))}g?a.styles=C:a.stylesWithoutHost=C,g?a.classes=P:a.classesWithoutHost=P}class c0 extends Ev{constructor(d){super(),this.ngModule=d}resolveComponentFactory(d){const g=Cr(d);return new Ym(g,this.ngModule)}}function d0(a){const d=[];for(const g in a){if(!a.hasOwnProperty(g))continue;const C=a[g];void 0!==C&&d.push({propName:Array.isArray(C)?C[0]:C,templateName:g})}return d}class Av{constructor(d,g){this.injector=d,this.parentInjector=g}get(d,g,C){C=$s(C);const P=this.injector.get(d,t0,C);return P!==t0||g===t0?P:this.parentInjector.get(d,g,C)}}class Ym extends e0{get inputs(){const d=this.componentDef,g=d.inputTransforms,C=d0(d.inputs);if(null!==g)for(const P of C)g.hasOwnProperty(P.propName)&&(P.transform=g[P.propName]);return C}get outputs(){return d0(this.componentDef.outputs)}constructor(d,g){super(),this.componentDef=d,this.ngModule=g,this.componentType=d.type,this.selector=function is(a){return a.map(Ko).join(",")}(d.selectors),this.ngContentSelectors=d.ngContentSelectors?d.ngContentSelectors:[],this.isBoundToModule=!!g}create(d,g,C,P){const G=M(null);try{let se=(P=P||this.ngModule)instanceof Ea?P:P?.injector;se&&null!==this.componentDef.getStandaloneInjector&&(se=this.componentDef.getStandaloneInjector(se)||se);const Ae=se?new Av(d,se):d,Ve=Ae.get(Hy,null);if(null===Ve)throw new Qe(407,!1);const Pt=Ae.get(y1,null),ri={rendererFactory:Ve,sanitizer:Pt,inlineEffectRunner:null,afterRenderEventManager:Ae.get(Gm,null),changeDetectionScheduler:Ae.get(Cv,null)},gi=Ve.createRenderer(null,this.componentDef),Li=this.componentDef.selectors[0][0]||"div",rr=C?function Fm(a,d,g,C){const G=C.get(qa,!1)||g===ba.ShadowDom,se=a.selectRootElement(d,G);return function cv(a){Um(a)}(se),se}(gi,C,this.componentDef.encapsulation,Ae):on(gi,Li,function tS(a){const d=a.toLowerCase();return"svg"===d?Za:"math"===d?"math":null}(Li));let Sr=512;this.componentDef.signals?Sr|=4096:this.componentDef.onPush||(Sr|=16);let Lr=null;null!==rr&&(Lr=Pp(rr,Ae,!0));const hr=Sm(0,null,null,1,0,null,null,null,null,null,null),os=ag(null,hr,null,Sr,null,null,ri,gi,Ae,null,Lr);let pa,rl;Fu(os);try{const id=this.componentDef;let gh,t_=null;id.findHostDirectiveDefs?(gh=[],t_=new Map,id.findHostDirectiveDefs(id,gh,t_),gh.push(id)):gh=[id];const OA=function iS(a,d){const g=a[Be],C=mr;return a[C]=d,ch(g,C,2,"#host",null)}(os,rr),jP=function rS(a,d,g,C,P,G,se){const Ae=P[Be];!function oS(a,d,g,C){for(const P of a)d.mergedAttrs=nn(d.mergedAttrs,P.hostAttrs);null!==d.mergedAttrs&&(Mv(d,d.mergedAttrs,!0),null!==g&&lh(C,g,d))}(C,a,d,se);let Ve=null;null!==d&&(Ve=Pp(d,P[yi]));const Pt=G.rendererFactory.createRenderer(d,g);let Qt=16;g.signals?Qt=4096:g.onPush&&(Qt=64);const _n=ag(P,km(g),null,Qt,P[a.index],a,G,Pt,null,null,Ve);return Ae.firstCreatePass&&tr(Ae,a,C.length-1),Sa(P,_n),P[a.index]=_n}(OA,rr,id,gh,os,ri,gi);rl=Nc(hr,mr),rr&&function aS(a,d,g,C){if(C)oa(a,g,["ng-version","17.3.11"]);else{const{attrs:P,classes:G}=function pr(a){const d=[],g=[];let C=1,P=2;for(;C<a.length;){let G=a[C];if("string"==typeof G)2===P?""!==G&&d.push(G,a[++C]):8===P&&g.push(G);else{if(!Go(P))break;P=G}C++}return{attrs:d,classes:g}}(d.selectors[0]);P&&oa(a,g,P),G&&G.length>0&&Zp(a,g,G.join(" "))}}(gi,id,rr,C),void 0!==g&&function lS(a,d,g){const C=a.projection=[];for(let P=0;P<d.length;P++){const G=g[P];C.push(null!=G?Array.from(G):null)}}(rl,this.ngContentSelectors,g),pa=function sS(a,d,g,C,P,G){const se=Po(),Ae=P[Be],Ve=la(se,P);lt(Ae,P,se,g,null,C);for(let Qt=0;Qt<g.length;Qt++)As(lc(P,Ae,se.directiveStart+Qt,se),P);qn(Ae,P,se),Ve&&As(Ve,P);const Pt=lc(P,Ae,se.directiveStart+se.componentOffset,se);if(a[ci]=P[ci]=Pt,null!==G)for(const Qt of G)Qt(Pt,d);return ym(Ae,se,P),Pt}(jP,id,gh,t_,os,[cS]),uv(hr,os,null)}finally{Uc()}return new nS(this.componentType,pa,vd(rl,os),os,rl)}finally{M(G)}}}class nS extends By{constructor(d,g,C,P,G){super(),this.location=C,this._rootLView=P,this._tNode=G,this.previousInputValues=null,this.instance=g,this.hostView=this.changeDetectorRef=new gv(P,void 0,!1),this.componentType=d}setInput(d,g){const C=this._tNode.inputs;let P;if(null!==C&&(P=C[d])){if(this.previousInputValues??=new Map,this.previousInputValues.has(d)&&Object.is(this.previousInputValues.get(d),g))return;const G=this._rootLView;Ic(G[Be],G,P,d,g),this.previousInputValues.set(d,g),fv(_l(this._tNode.index,G))}}get injector(){return new Da(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(d){this.hostView.onDestroy(d)}}function cS(){const a=Po();Eh(Vi()[Be],a)}let d_=(()=>{class d{}return d.__NG_ELEMENT_ID__=x1,d})();function x1(){return hS(Po(),Vi())}const D1=d_,dS=class extends D1{constructor(d,g,C){super(),this._lContainer=d,this._hostTNode=g,this._hostLView=C}get element(){return vd(this._hostTNode,this._hostLView)}get injector(){return new Da(this._hostTNode,this._hostLView)}get parentInjector(){const d=vu(this._hostTNode,this._hostLView);if(Th(d)){const g=Qd(d,this._hostLView),C=Id(d);return new Da(g[Be].data[C+8],g)}return new Da(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(d){const g=uS(this._lContainer);return null!==g&&g[d]||null}get length(){return this._lContainer.length-$r}createEmbeddedView(d,g,C){let P,G;"number"==typeof C?P=C:null!=C&&(P=C.index,G=C.injector);const Ae=d.createEmbeddedViewImpl(g||{},G,null);return this.insertImpl(Ae,P,Jp(this._hostTNode,null)),Ae}createComponent(d,g,C,P,G){const se=d&&!function he(a){return"function"==typeof a}(d);let Ae;if(se)Ae=g;else{const Li=g||{};Ae=Li.index,C=Li.injector,P=Li.projectableNodes,G=Li.environmentInjector||Li.ngModuleRef}const Ve=se?d:new Ym(Cr(d)),Pt=C||this.parentInjector;if(!G&&null==Ve.ngModule){const rr=(se?Pt:this.parentInjector).get(Ea,null);rr&&(G=rr)}Cr(Ve.componentType??{});const gi=Ve.create(Pt,P,null,G);return this.insertImpl(gi.hostView,Ae,Jp(this._hostTNode,null)),gi}insert(d,g){return this.insertImpl(d,g,!0)}insertImpl(d,g,C){const P=d._lView;if(function xd(a){return Eo(a[pt])}(P)){const Ae=this.indexOf(d);if(-1!==Ae)this.detach(Ae);else{const Ve=P[pt],Pt=new dS(Ve,Ve[hn],Ve[pt]);Pt.detach(Pt.indexOf(d))}}const G=this._adjustIndex(g),se=this._lContainer;return $g(se,P,G,C),d.attachToViewContainerRef(),ei(u0(se),G,d),d}move(d,g){return this.insert(d,g)}indexOf(d){const g=uS(this._lContainer);return null!==g?g.indexOf(d):-1}remove(d){const g=this._adjustIndex(d,-1),C=fr(this._lContainer,g);C&&(di(u0(this._lContainer),g),So(C[Be],C))}detach(d){const g=this._adjustIndex(d,-1),C=fr(this._lContainer,g);return C&&null!=di(u0(this._lContainer),g)?new gv(C):null}_adjustIndex(d,g=0){return d??this.length+g}};function uS(a){return a[8]}function u0(a){return a[8]||(a[8]=[])}function hS(a,d){let g;const C=d[a.index];return Eo(C)?g=C:(g=Nl(C,d,null,a),d[a.index]=g,Sa(d,g)),pS(g,d,a,C),new dS(g,a,d)}let pS=function gS(a,d,g,C){if(a[ia])return;let P;P=8&g.type?Fo(C):function O1(a,d){const g=a[Rt],C=g.createComment(""),P=la(d,a);return Us(g,il(g,P),C,function Jl(a,d){return a.nextSibling(d)}(g,P),!1),C}(d,g),a[ia]=P},h0=()=>!1;class p0{constructor(d){this.queryList=d,this.matches=null}clone(){return new p0(this.queryList)}setDirty(){this.queryList.setDirty()}}class f0{constructor(d=[]){this.queries=d}createEmbeddedView(d){const g=d.queries;if(null!==g){const C=null!==d.contentQueries?d.contentQueries[0]:g.length,P=[];for(let G=0;G<C;G++){const se=g.getByIndex(G);P.push(this.queries[se.indexInDeclarationView].clone())}return new f0(P)}return null}insertView(d){this.dirtyQueriesWithMatches(d)}detachView(d){this.dirtyQueriesWithMatches(d)}finishViewCreation(d){this.dirtyQueriesWithMatches(d)}dirtyQueriesWithMatches(d){for(let g=0;g<this.queries.length;g++)null!==Tv(d,g).matches&&this.queries[g].setDirty()}}class mS{constructor(d,g,C=null){this.flags=g,this.read=C,this.predicate="string"==typeof d?function _S(a){return a.split(",").map(d=>d.trim())}(d):d}}class u_{constructor(d=[]){this.queries=d}elementStart(d,g){for(let C=0;C<this.queries.length;C++)this.queries[C].elementStart(d,g)}elementEnd(d){for(let g=0;g<this.queries.length;g++)this.queries[g].elementEnd(d)}embeddedTView(d){let g=null;for(let C=0;C<this.length;C++){const P=null!==g?g.length:0,G=this.getByIndex(C).embeddedTView(d,P);G&&(G.indexInDeclarationView=C,null!==g?g.push(G):g=[G])}return null!==g?new u_(g):null}template(d,g){for(let C=0;C<this.queries.length;C++)this.queries[C].template(d,g)}getByIndex(d){return this.queries[d]}get length(){return this.queries.length}track(d){this.queries.push(d)}}class h_{constructor(d,g=-1){this.metadata=d,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=g}elementStart(d,g){this.isApplyingToNode(g)&&this.matchTNode(d,g)}elementEnd(d){this._declarationNodeIndex===d.index&&(this._appliesToNextNode=!1)}template(d,g){this.elementStart(d,g)}embeddedTView(d,g){return this.isApplyingToNode(d)?(this.crossesNgTemplate=!0,this.addMatch(-d.index,g),new h_(this.metadata)):null}isApplyingToNode(d){if(this._appliesToNextNode&&1&~this.metadata.flags){const g=this._declarationNodeIndex;let C=d.parent;for(;null!==C&&8&C.type&&C.index!==g;)C=C.parent;return g===(null!==C?C.index:-1)}return this._appliesToNextNode}matchTNode(d,g){const C=this.metadata.predicate;if(Array.isArray(C))for(let P=0;P<C.length;P++){const G=C[P];this.matchTNodeWithReadOption(d,g,R1(g,G)),this.matchTNodeWithReadOption(d,g,zc(g,d,G,!1,!1))}else C===mv?4&g.type&&this.matchTNodeWithReadOption(d,g,-1):this.matchTNodeWithReadOption(d,g,zc(g,d,C,!1,!1))}matchTNodeWithReadOption(d,g,C){if(null!==C){const P=this.metadata.read;if(null!==P)if(P===Wu||P===d_||P===mv&&4&g.type)this.addMatch(g.index,-2);else{const G=zc(g,d,P,!1,!1);null!==G&&this.addMatch(g.index,G)}else this.addMatch(g.index,C)}}addMatch(d,g){null===this.matches?this.matches=[d,g]:this.matches.push(d,g)}}function R1(a,d){const g=a.localNames;if(null!==g)for(let C=0;C<g.length;C+=2)if(g[C]===d)return g[C+1];return null}function N1(a,d,g,C){return-1===g?function L1(a,d){return 11&a.type?vd(a,d):4&a.type?vv(a,d):null}(d,a):-2===g?function vS(a,d,g){return g===Wu?vd(d,a):g===mv?vv(d,a):g===d_?hS(d,a):void 0}(a,d,C):lc(a,a[Be],g,d)}function g0(a,d,g,C){const P=d[ai].queries[C];if(null===P.matches){const G=a.data,se=g.matches,Ae=[];for(let Ve=0;null!==se&&Ve<se.length;Ve+=2){const Pt=se[Ve];Ae.push(Pt<0?null:N1(d,G[Pt],se[Ve+1],g.metadata.read))}P.matches=Ae}return P.matches}function p_(a,d,g,C){const P=a.queries.getByIndex(g),G=P.matches;if(null!==G){const se=g0(a,d,P,g);for(let Ae=0;Ae<G.length;Ae+=2){const Ve=G[Ae];if(Ve>0)C.push(se[Ae/2]);else{const Pt=G[Ae+1],Qt=d[-Ve];for(let _n=$r;_n<Qt.length;_n++){const ri=Qt[_n];ri[Hn]===ri[pt]&&p_(ri[Be],ri,Pt,C)}if(null!==Qt[gs]){const _n=Qt[gs];for(let ri=0;ri<_n.length;ri++){const gi=_n[ri];p_(gi[Be],gi,Pt,C)}}}}}return C}function Cm(a,d,g){const C=new _d(!(4&~g));return function $(a,d,g,C){const P=Ro(d);P.push(g),a.firstCreatePass&&Gs(a).push(C,P.length-1)}(a,d,C,C.destroy),(d[ai]??=new f0).queries.push(new p0(C))-1}function m0(a,d,g){null===a.queries&&(a.queries=new u_),a.queries.track(new h_(d,g))}function Tv(a,d){return a.queries.getByIndex(d)}function v0(a,d){const g=a[Be],C=Tv(g,d);return C.crossesNgTemplate?p_(g,a,d,[]):g0(g,a,C,d)}function dm(a){return function $m(a){return"function"==typeof a&&void 0!==a[A]}(a)&&"function"==typeof a.set}function b_(a){let d=function O0(a){return Object.getPrototypeOf(a.prototype).constructor}(a.type),g=!0;const C=[a];for(;d;){let P;if(Yo(a))P=d.\u0275cmp||d.\u0275dir;else{if(d.\u0275cmp)throw new Qe(903,!1);P=d.\u0275dir}if(P){if(g){C.push(P);const se=a;se.inputs=Ov(a.inputs),se.inputTransforms=Ov(a.inputTransforms),se.declaredInputs=Ov(a.declaredInputs),se.outputs=Ov(a.outputs);const Ae=P.hostBindings;Ae&&LS(a,Ae);const Ve=P.viewQuery,Pt=P.contentQueries;if(Ve&&IS(a,Ve),Pt&&RS(a,Pt),wS(a,P),vn(a.outputs,P.outputs),Yo(P)&&P.data.animation){const Qt=a.data;Qt.animation=(Qt.animation||[]).concat(P.data.animation)}}const G=P.features;if(G)for(let se=0;se<G.length;se++){const Ae=G[se];Ae&&Ae.ngInherit&&Ae(a),Ae===b_&&(g=!1)}}d=Object.getPrototypeOf(d)}!function P0(a){let d=0,g=null;for(let C=a.length-1;C>=0;C--){const P=a[C];P.hostVars=d+=P.hostVars,P.hostAttrs=nn(P.hostAttrs,g=nn(g,P.hostAttrs))}}(C)}function wS(a,d){for(const g in d.inputs){if(!d.inputs.hasOwnProperty(g)||a.inputs.hasOwnProperty(g))continue;const C=d.inputs[g];if(void 0!==C&&(a.inputs[g]=C,a.declaredInputs[g]=d.declaredInputs[g],null!==d.inputTransforms)){const P=Array.isArray(C)?C[0]:C;if(!d.inputTransforms.hasOwnProperty(P))continue;a.inputTransforms??={},a.inputTransforms[P]=d.inputTransforms[P]}}}function Ov(a){return a===Ei?{}:a===Ee?[]:a}function IS(a,d){const g=a.viewQuery;a.viewQuery=g?(C,P)=>{d(C,P),g(C,P)}:d}function RS(a,d){const g=a.contentQueries;a.contentQueries=g?(C,P,G)=>{d(C,P,G),g(C,P,G)}:d}function LS(a,d){const g=a.hostBindings;a.hostBindings=g?(C,P)=>{d(C,P),g(C,P)}:d}function I0(a){const d=a.inputConfig,g={};for(const C in d)if(d.hasOwnProperty(C)){const P=d[C];Array.isArray(P)&&P[3]&&(g[C]=P[3])}a.inputTransforms=g}class uh{}class Zm{}function VS(a,d){return new Pv(a,d??null,[])}class Pv extends uh{constructor(d,g,C){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new c0(this);const P=ut(d);this._bootstrapComponents=$a(P.bootstrap),this._r3Injector=dp(d,g,[{provide:uh,useValue:this},{provide:Ev,useValue:this.componentFactoryResolver},...C],Vn(d),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(d)}get injector(){return this._r3Injector}destroy(){const d=this._r3Injector;!d.destroyed&&d.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(d){this.destroyCbs.push(d)}}class E_ extends Zm{constructor(d){super(),this.moduleType=d}create(d){return new Pv(this.moduleType,d,[])}}class R0 extends uh{constructor(d){super(),this.componentFactoryResolver=new c0(this),this.instance=null;const g=new Al([...d.providers,{provide:uh,useValue:this},{provide:Ev,useValue:this.componentFactoryResolver}],d.parent||Ho(),d.debugName,new Set(["environment"]));this.injector=g,d.runEnvironmentInitializers&&g.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(d){this.injector.onDestroy(d)}}function Jm(a,d,g=null){return new R0({providers:a,parent:d,debugName:g,runEnvironmentInitializers:!0}).injector}let cg=(()=>{var a;class d{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new K.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)}}return(a=d).\u0275fac=function(C){return new(C||a)},a.\u0275prov=Nr({token:a,factory:a.\u0275fac,providedIn:"root"}),d})();function qm(a){return!!A_(a)&&(Array.isArray(a)||!(a instanceof Map)&&Symbol.iterator in a)}function A_(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function hh(a,d,g){return a[d]=g}function tc(a,d,g){return!Object.is(a[d],g)&&(a[d]=g,!0)}function Kg(a,d,g,C){const P=tc(a,d,g);return tc(a,d+1,C)||P}function Iv(a,d,g,C,P){const G=Kg(a,d,g,C);return tc(a,d+2,P)||G}function Tm(a,d,g,C,P,G,se,Ae){const Ve=Vi(),Pt=yo(),Qt=a+mr,_n=Pt.firstCreatePass?function N0(a,d,g,C,P,G,se,Ae,Ve){const Pt=d.consts,Qt=ch(d,a,4,se||null,vc(Pt,Ae));_e(d,g,Qt,vc(Pt,Ve)),Eh(d,Qt);const _n=Qt.tView=Sm(2,Qt,C,P,G,d.directiveRegistry,d.pipeRegistry,null,d.schemas,Pt,null);return null!==d.queries&&(d.queries.template(d,Qt),_n.queries=d.queries.embeddedTView(Qt)),Qt}(Qt,Pt,Ve,d,g,C,P,G,se):Pt.data[Qt];yc(_n,!1);const ri=k0(Pt,Ve,_n,a);fu()&&Ed(Pt,Ve,ri,_n),As(ri,Ve);const gi=Nl(ri,Ve,ri,_n);return Ve[Qt]=gi,Sa(Ve,gi),function fS(a,d,g){return h0(a,d,g)}(gi,_n,Ve),va(_n)&&sm(Pt,Ve,_n),null!=se&&Nm(Ve,_n,Ae),Tm}let k0=function F0(a,d,g,C){return Sc(!0),d[Rt].createComment("")};function qS(a,d,g,C){const P=Vi();return tc(P,jl(),d)&&(yo(),qr(Ms(),P,a,d,g,C)),qS}function Vv(a,d,g,C){return tc(a,jl(),g)?d+Ti(g)+C:$o}function G0(a,d){return a<<17|d<<2}function Im(a){return a>>17&32767}function eb(a){return 2|a}function rv(a){return(131068&a)>>2}function tb(a,d){return-131069&a|d<<2}function nb(a){return 1|a}function vC(a,d,g,C){const P=a[g+1],G=null===d;let se=C?Im(P):rv(P),Ae=!1;for(;0!==se&&(!1===Ae||G);){const Pt=a[se+1];fT(a[se],d)&&(Ae=!0,a[se+1]=C?nb(Pt):eb(Pt)),se=C?Im(Pt):rv(Pt)}Ae&&(a[g+1]=C?eb(P):nb(P))}function fT(a,d){return null===a||null==d||(Array.isArray(a)?a[1]:a)===d||!(!Array.isArray(a)||"string"!=typeof d)&&Jn(a,d)>=0}const td={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _C(a){return a.substring(td.key,td.keyEnd)}function yC(a,d){const g=td.textEnd;return g===d?-1:(d=td.keyEnd=function _T(a,d,g){for(;d<g&&a.charCodeAt(d)>32;)d++;return d}(a,td.key=d,g),Kv(a,d,g))}function Kv(a,d,g){for(;d<g&&a.charCodeAt(d)<=32;)d++;return d}function ib(a,d,g){const C=Vi();return tc(C,jl(),d)&&Jt(yo(),Ms(),C,a,d,C[Rt],g,!1),ib}function rb(a,d,g,C,P){const se=P?"class":"style";Ic(a,g,d.inputs[se],se,C)}function ob(a,d,g){return dg(a,d,g,!1),ob}function sb(a,d){return dg(a,d,null,!0),sb}function MC(a){ug(xT,Qg,a,!0)}function Qg(a,d){for(let g=function mT(a){return function bC(a){td.key=0,td.keyEnd=0,td.value=0,td.valueEnd=0,td.textEnd=a.length}(a),yC(a,Kv(a,0,td.textEnd))}(d);g>=0;g=yC(d,g))St(a,_C(d),!0)}function dg(a,d,g,C){const P=Vi(),G=yo(),se=sc(2);G.firstUpdatePass&&TC(G,a,se,C),d!==$o&&tc(P,se,d)&&DC(G,G.data[Ta()],P,P[Rt],a,P[se+1]=function OT(a,d){return null==a||""===a||("string"==typeof d?a+=d:"object"==typeof a&&(a=Vn(tl(a)))),a}(d,g),C,se)}function ug(a,d,g,C){const P=yo(),G=sc(2);P.firstUpdatePass&&TC(P,null,G,C);const se=Vi();if(g!==$o&&tc(se,G,g)){const Ae=P.data[Ta()];if(PC(Ae,C)&&!AC(P,G)){let Ve=C?Ae.classesWithoutHost:Ae.stylesWithoutHost;null!==Ve&&(g=ht(Ve,g||"")),rb(P,Ae,se,g,C)}else!function DT(a,d,g,C,P,G,se,Ae){P===$o&&(P=Ee);let Ve=0,Pt=0,Qt=0<P.length?P[0]:null,_n=0<G.length?G[0]:null;for(;null!==Qt||null!==_n;){const ri=Ve<P.length?P[Ve+1]:void 0,gi=Pt<G.length?G[Pt+1]:void 0;let rr,Li=null;Qt===_n?(Ve+=2,Pt+=2,ri!==gi&&(Li=_n,rr=gi)):null===_n||null!==Qt&&Qt<_n?(Ve+=2,Li=Qt):(Pt+=2,Li=_n,rr=gi),null!==Li&&DC(a,d,g,C,Li,rr,se,Ae),Qt=Ve<P.length?P[Ve]:null,_n=Pt<G.length?G[Pt]:null}}(P,Ae,se,se[Rt],se[G+1],se[G+1]=function TT(a,d,g){if(null==g||""===g)return Ee;const C=[],P=tl(g);if(Array.isArray(P))for(let G=0;G<P.length;G++)a(C,P[G],!0);else if("object"==typeof P)for(const G in P)P.hasOwnProperty(G)&&a(C,G,P[G]);else"string"==typeof P&&d(C,P);return C}(a,d,g),C,G)}}function AC(a,d){return d>=a.expandoStartIndex}function TC(a,d,g,C){const P=a.data;if(null===P[g+1]){const G=P[Ta()],se=AC(a,g);PC(G,C)&&null===d&&!se&&(d=!1),d=function CT(a,d,g,C){const P=_h(a);let G=C?d.residualClasses:d.residualStyles;if(null===P)0===(C?d.classBindings:d.styleBindings)&&(g=w_(g=ab(null,a,d,g,C),d.attrs,C),G=null);else{const se=d.directiveStylingLast;if(-1===se||a[se]!==P)if(g=ab(P,a,d,g,C),null===G){let Ve=function ET(a,d,g){const C=g?d.classBindings:d.styleBindings;if(0!==rv(C))return a[Im(C)]}(a,d,C);void 0!==Ve&&Array.isArray(Ve)&&(Ve=ab(null,a,d,Ve[1],C),Ve=w_(Ve,d.attrs,C),function MT(a,d,g,C){a[Im(g?d.classBindings:d.styleBindings)]=C}(a,d,C,Ve))}else G=function AT(a,d,g){let C;const P=d.directiveEnd;for(let G=1+d.directiveStylingLast;G<P;G++)C=w_(C,a[G].hostAttrs,g);return w_(C,d.attrs,g)}(a,d,C)}return void 0!==G&&(C?d.residualClasses=G:d.residualStyles=G),g}(P,G,d,C),function hT(a,d,g,C,P,G){let se=G?d.classBindings:d.styleBindings,Ae=Im(se),Ve=rv(se);a[C]=g;let Qt,Pt=!1;if(Array.isArray(g)?(Qt=g[1],(null===Qt||Jn(g,Qt)>0)&&(Pt=!0)):Qt=g,P)if(0!==Ve){const ri=Im(a[Ae+1]);a[C+1]=G0(ri,Ae),0!==ri&&(a[ri+1]=tb(a[ri+1],C)),a[Ae+1]=function dT(a,d){return 131071&a|d<<17}(a[Ae+1],C)}else a[C+1]=G0(Ae,0),0!==Ae&&(a[Ae+1]=tb(a[Ae+1],C)),Ae=C;else a[C+1]=G0(Ve,0),0===Ae?Ae=C:a[Ve+1]=tb(a[Ve+1],C),Ve=C;Pt&&(a[C+1]=eb(a[C+1])),vC(a,Qt,C,!0),vC(a,Qt,C,!1),function pT(a,d,g,C,P){const G=P?a.residualClasses:a.residualStyles;null!=G&&"string"==typeof d&&Jn(G,d)>=0&&(g[C+1]=nb(g[C+1]))}(d,Qt,a,C,G),se=G0(Ae,Ve),G?d.classBindings=se:d.styleBindings=se}(P,G,d,g,se,C)}}function ab(a,d,g,C,P){let G=null;const se=g.directiveEnd;let Ae=g.directiveStylingLast;for(-1===Ae?Ae=g.directiveStart:Ae++;Ae<se&&(G=d[Ae],C=w_(C,G.hostAttrs,P),G!==a);)Ae++;return null!==a&&(g.directiveStylingLast=Ae),C}function w_(a,d,g){const C=g?1:2;let P=-1;if(null!==d)for(let G=0;G<d.length;G++){const se=d[G];"number"==typeof se?P=se:P===C&&(Array.isArray(a)||(a=void 0===a?[]:["",a]),St(a,se,!!g||d[++G]))}return void 0===a?null:a}function xT(a,d,g){const C=String(d);""!==C&&!C.includes(" ")&&St(a,C,g)}function DC(a,d,g,C,P,G,se,Ae){if(!(3&d.type))return;const Ve=a.data,Pt=Ve[Ae+1],Qt=function uT(a){return!(1&~a)}(Pt)?OC(Ve,d,g,P,rv(Pt),se):void 0;H0(Qt)||(H0(G)||function cT(a){return!(2&~a)}(Pt)&&(G=OC(Ve,null,g,P,Ae,se)),function og(a,d,g,C,P){if(d)P?a.addClass(g,C):a.removeClass(g,C);else{let G=-1===C.indexOf("-")?void 0:V.DashCase;null==P?a.removeStyle(g,C,G):("string"==typeof P&&P.endsWith("!important")&&(P=P.slice(0,-10),G|=V.Important),a.setStyle(g,C,P,G))}}(C,se,Ad(Ta(),g),P,G))}function OC(a,d,g,C,P,G){const se=null===d;let Ae;for(;P>0;){const Ve=a[P],Pt=Array.isArray(Ve),Qt=Pt?Ve[1]:Ve,_n=null===Qt;let ri=g[P+1];ri===$o&&(ri=_n?Ee:void 0);let gi=_n?Sn(ri,C):Qt===C?ri:void 0;if(Pt&&!H0(gi)&&(gi=Sn(Ve,C)),H0(gi)&&(Ae=gi,se))return Ae;const Li=a[P+1];P=se?Im(Li):rv(Li)}if(null!==d){let Ve=G?d.residualClasses:d.residualStyles;null!=Ve&&(Ae=Sn(Ve,C))}return Ae}function H0(a){return void 0!==a}function PC(a,d){return!!(a.flags&(d?8:16))}function wC(a,d,g){ug(St,Qg,Vv(Vi(),a,d,g),!0)}function j0(a,d,g,C){const P=Vi(),G=yo(),se=mr+a,Ae=P[Rt],Ve=G.firstCreatePass?function ZT(a,d,g,C,P,G){const se=d.consts,Ve=ch(d,a,2,C,vc(se,P));return _e(d,g,Ve,vc(se,G)),null!==Ve.attrs&&Mv(Ve,Ve.attrs,!1),null!==Ve.mergedAttrs&&Mv(Ve,Ve.mergedAttrs,!0),null!==d.queries&&d.queries.elementStart(d,Ve),Ve}(se,G,P,d,g,C):G.data[se],Pt=NC(G,P,Ve,Ae,d,a);P[se]=Pt;const Qt=va(Ve);return yc(Ve,!0),lh(Ae,Pt,Ve),!function Am(a){return!(32&~a.flags)}(Ve)&&fu()&&Ed(G,P,Pt,Ve),0===function q(){return lo.lFrame.elementDepthCount}()&&As(Pt,P),function Ne(){lo.lFrame.elementDepthCount++}(),Qt&&(sm(G,P,Ve),ym(G,Ve,P)),null!==C&&Nm(P,Ve),j0}function Y0(){let a=Po();Xd()?uu():(a=a.parent,yc(a,!1));const d=a;(function ui(a){return lo.skipHydrationRootTNode===a})(d)&&function Is(){lo.skipHydrationRootTNode=null}(),function yt(){lo.lFrame.elementDepthCount--}();const g=yo();return g.firstCreatePass&&(Eh(g,a),Es(a)&&g.queries.elementEnd(a)),null!=d.classesWithoutHost&&function Cc(a){return!!(8&a.flags)}(d)&&rb(g,d,Vi(),d.classesWithoutHost,!0),null!=d.stylesWithoutHost&&function wl(a){return!!(16&a.flags)}(d)&&rb(g,d,Vi(),d.stylesWithoutHost,!1),Y0}function hb(a,d,g,C){return j0(a,d,g,C),Y0(),hb}let NC=(a,d,g,C,P,G)=>(Sc(!0),on(C,P,function rp(){return lo.lFrame.currentNamespace}()));function W0(a,d,g){const C=Vi(),P=yo(),G=a+mr,se=P.firstCreatePass?function ex(a,d,g,C,P){const G=d.consts,se=vc(G,C),Ae=ch(d,a,8,"ng-container",se);return null!==se&&Mv(Ae,se,!0),_e(d,g,Ae,vc(G,P)),null!==d.queries&&d.queries.elementStart(d,Ae),Ae}(G,P,C,d,g):P.data[G];yc(se,!0);const Ae=kC(P,C,se,a);return C[G]=Ae,fu()&&Ed(P,C,Ae,se),As(Ae,C),va(se)&&(sm(P,C,se),ym(P,se,C)),null!=g&&Nm(C,se),W0}function $0(){let a=Po();const d=yo();return Xd()?uu():(a=a.parent,yc(a,!1)),d.firstCreatePass&&(Eh(d,a),Es(a)&&d.queries.elementEnd(a)),$0}function pb(a,d,g){return W0(a,d,g),$0(),pb}let kC=(a,d,g,C)=>(Sc(!0),qt(d[Rt],""));function FC(){return Vi()}function fb(a,d,g){const C=Vi();return tc(C,jl(),d)&&Jt(yo(),Ms(),C,a,d,C[Rt],g,!0),fb}function gb(a,d,g){const C=Vi();if(tc(C,jl(),d)){const G=yo(),se=Ms();Jt(G,se,C,a,d,kl(_h(G.data),se,C),g,!0)}return gb}const ov=void 0;var rx=["en",[["a","p"],["AM","PM"],ov],[["AM","PM"],ov,ov],[["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"]],ov,[["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"]],ov,[["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}",ov,"{1} 'at' {0}",ov],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function ix(a){const g=Math.floor(Math.abs(a)),C=a.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===C?1:5}];let Xv={};function mb(a){const d=function ox(a){return a.toLowerCase().replace(/_/g,"-")}(a);let g=BC(d);if(g)return g;const C=d.split("-")[0];if(g=BC(C),g)return g;if("en"===C)return rx;throw new Qe(701,!1)}function UC(a){return mb(a)[Qv.PluralCase]}function BC(a){return a in Xv||(Xv[a]=_i.ng&&_i.ng.common&&_i.ng.common.locales&&_i.ng.common.locales[a]),Xv[a]}var Qv=function(a){return a[a.LocaleId=0]="LocaleId",a[a.DayPeriodsFormat=1]="DayPeriodsFormat",a[a.DayPeriodsStandalone=2]="DayPeriodsStandalone",a[a.DaysFormat=3]="DaysFormat",a[a.DaysStandalone=4]="DaysStandalone",a[a.MonthsFormat=5]="MonthsFormat",a[a.MonthsStandalone=6]="MonthsStandalone",a[a.Eras=7]="Eras",a[a.FirstDayOfWeek=8]="FirstDayOfWeek",a[a.WeekendRange=9]="WeekendRange",a[a.DateFormat=10]="DateFormat",a[a.TimeFormat=11]="TimeFormat",a[a.DateTimeFormat=12]="DateTimeFormat",a[a.NumberSymbols=13]="NumberSymbols",a[a.NumberFormats=14]="NumberFormats",a[a.CurrencyCode=15]="CurrencyCode",a[a.CurrencySymbol=16]="CurrencySymbol",a[a.CurrencyName=17]="CurrencyName",a[a.Currencies=18]="Currencies",a[a.Directionality=19]="Directionality",a[a.PluralCase=20]="PluralCase",a[a.ExtraData=21]="ExtraData",a}(Qv||{});const Zv="en-US";let VC=Zv;function yb(a,d,g,C){const P=Vi(),G=yo(),se=Po();return bb(G,P,P[Rt],se,a,d,C),yb}function Sb(a,d){const g=Po(),C=Vi(),P=yo();return bb(P,C,kl(_h(P.data),g,C),g,a,d),Sb}function bb(a,d,g,C,P,G,se){const Ae=va(C),Pt=a.firstCreatePass&&Gs(a),Qt=d[ci],_n=Ro(d);let ri=!0;if(3&C.type||se){const rr=la(C,d),Sr=se?se(rr):rr,Lr=_n.length,hr=se?pa=>se(Fo(pa[C.index])):C.index;let os=null;if(!se&&Ae&&(os=function tD(a,d,g,C){const P=a.cleanup;if(null!=P)for(let G=0;G<P.length-1;G+=2){const se=P[G];if(se===g&&P[G+1]===C){const Ae=d[yn],Ve=P[G+2];return Ae.length>Ve?Ae[Ve]:null}"string"==typeof se&&(G+=2)}return null}(a,d,P,C.index)),null!==os)(os.__ngLastListenerFn__||os).__ngNextListenerFn__=G,os.__ngLastListenerFn__=G,ri=!1;else{G=pE(C,d,Qt,G,!1);const pa=g.listen(Sr,P,G);_n.push(G,pa),Pt&&Pt.push(P,hr,Lr,Lr+1)}}else G=pE(C,d,Qt,G,!1);const gi=C.outputs;let Li;if(ri&&null!==gi&&(Li=gi[P])){const rr=Li.length;if(rr)for(let Sr=0;Sr<rr;Sr+=2){const rl=d[Li[Sr]][Li[Sr+1]].subscribe(G),id=_n.length;_n.push(G,rl),Pt&&Pt.push(P,C.index,id,-(id+1))}}}function hE(a,d,g,C){const P=M(null);try{return Ga(6,d,g),!1!==g(C)}catch(G){return Jc(a,G),!1}finally{Ga(7,d,g),M(P)}}function pE(a,d,g,C,P){return function G(se){if(se===Function)return C;fv(a.componentOffset>-1?_l(a.index,d):d);let Ve=hE(d,g,C,se),Pt=G.__ngNextListenerFn__;for(;Pt;)Ve=hE(d,g,Pt,se)&&Ve,Pt=Pt.__ngNextListenerFn__;return P&&!1===Ve&&se.preventDefault(),Ve}}function fE(a=1){return function Bu(a){return(lo.lFrame.contextLView=function cd(a,d){for(;a>0;)d=d[Nn],a--;return d}(a,lo.lFrame.contextLView))[ci]}(a)}function nD(a,d){let g=null;const C=function La(a){const d=a.attrs;if(null!=d){const g=d.indexOf(5);if(!(1&g))return d[g+1]}return null}(a);for(let P=0;P<d.length;P++){const G=d[P];if("*"!==G){if(null===C?ns(a,G,!0):pl(C,G))return P}else g=P}return g}function gE(a){const d=Vi()[Rn][hn];if(!d.projection){const C=d.projection=function wi(a,d){const g=[];for(let C=0;C<a;C++)g.push(d);return g}(a?a.length:1,null),P=C.slice();let G=d.child;for(;null!==G;){const se=a?nD(G,a):0;null!==se&&(P[se]?P[se].projectionNext=G:C[se]=G,P[se]=G),G=G.next}}}function mE(a,d=0,g){const C=Vi(),P=yo(),G=ch(P,mr+a,16,null,g||null);null===G.projection&&(G.projection=d),uu(),(!C[mn]||un())&&32&~G.flags&&function ig(a,d,g){Qp(d[Rt],0,d,g,ha(a,g,d),ql(g.parent||d[hn],g,d))}(P,C,G)}function Cb(a,d,g){return Eb(a,"",d,"",g),Cb}function Eb(a,d,g,C,P){const G=Vi(),se=Vv(G,d,g,C);return se!==$o&&Jt(yo(),Ms(),G,a,se,G[Rt],P,!1),Eb}function AE(a,d,g,C){!function cm(a,d,g,C){const P=yo();if(P.firstCreatePass){const G=Po();m0(P,new mS(d,g,C),G.index),function yS(a,d){const g=a.contentQueries||(a.contentQueries=[]);d!==(g.length?g[g.length-1]:-1)&&g.push(a.queries.length-1,d)}(P,a),!(2&~g)&&(P.staticContentQueries=!0)}return Cm(P,Vi(),g)}(a,d,g,C)}function TE(a,d,g){!function Wm(a,d,g){const C=yo();return C.firstCreatePass&&(m0(C,new mS(a,d,g),-1),!(2&~d)&&(C.staticViewQueries=!0)),Cm(C,Vi(),d)}(a,d,g)}function xE(a){const d=Vi(),g=yo(),C=np();sl(C+1);const P=Tv(g,C);if(a.dirty&&function Aa(a){return!(4&~a[_t])}(d)===!(2&~P.metadata.flags)){if(null===P.matches)a.reset([]);else{const G=v0(d,C);a.reset(G,pf),a.notifyOnChanges()}return!0}return!1}function DE(){return function f_(a,d){return a[ai].queries[d].queryList}(Vi(),np())}function OE(a){return Vl(function qp(){return lo.lFrame.contextLView}(),mr+a)}function BE(a,d=""){const g=Vi(),C=yo(),P=a+mr,G=C.firstCreatePass?ch(C,P,1,d,null):C.data[P],se=VE(C,g,G,d,a);g[P]=se,fu()&&Ed(C,g,se,G),yc(G,!1)}let VE=(a,d,g,C,P)=>(Sc(!0),function Ut(a,d){return a.createText(d)}(d[Rt],C));function Mb(a){return Z0("",a,""),Mb}function Z0(a,d,g){const C=Vi(),P=Vv(C,a,d,g);return P!==$o&&pc(C,Ta(),P),Z0}function Ab(a,d,g,C,P){const G=Vi(),se=function Gv(a,d,g,C,P,G){const Ae=Kg(a,hd(),g,P);return sc(2),Ae?d+Ti(g)+C+Ti(P)+G:$o}(G,a,d,g,C,P);return se!==$o&&pc(G,Ta(),se),Ab}function Tb(a,d,g,C,P,G,se){const Ae=Vi(),Ve=function Hv(a,d,g,C,P,G,se,Ae){const Pt=Iv(a,hd(),g,P,se);return sc(3),Pt?d+Ti(g)+C+Ti(P)+G+Ti(se)+Ae:$o}(Ae,a,d,g,C,P,G,se);return Ve!==$o&&pc(Ae,Ta(),Ve),Tb}function xb(a,d,g){dm(d)&&(d=d());const C=Vi();return tc(C,jl(),d)&&Jt(yo(),Ms(),C,a,d,C[Rt],g,!1),xb}function zE(a,d){const g=dm(a);return g&&a.set(d),g}function Db(a,d){const g=Vi(),C=yo(),P=Po();return bb(C,g,g[Rt],P,a,d),Db}function Ob(a,d,g,C,P){if(a=We(a),Array.isArray(a))for(let G=0;G<a.length;G++)Ob(a[G],d,g,C,P);else{const G=yo(),se=Vi(),Ae=Po();let Ve=Ks(a)?a:We(a.provide);const Pt=Uo(a),Qt=1048575&Ae.providerIndexes,_n=Ae.directiveStart,ri=Ae.providerIndexes>>20;if(Ks(a)||!a.multi){const gi=new gd(Pt,P,Cl),Li=wb(Ve,d,P?Qt:Qt+ri,_n);-1===Li?(_u(mu(Ae,se),G,Ve),Pb(G,a,d.length),d.push(Ve),Ae.directiveStart++,Ae.directiveEnd++,P&&(Ae.providerIndexes+=1048576),g.push(gi),se.push(gi)):(g[Li]=gi,se[Li]=gi)}else{const gi=wb(Ve,d,Qt+ri,_n),Li=wb(Ve,d,Qt,Qt+ri),Sr=Li>=0&&g[Li];if(P&&!Sr||!P&&!(gi>=0&&g[gi])){_u(mu(Ae,se),G,Ve);const Lr=function bD(a,d,g,C,P){const G=new gd(a,g,Cl);return G.multi=[],G.index=d,G.componentProviders=0,KE(G,P,C&&!g),G}(P?SD:yD,g.length,P,C,Pt);!P&&Sr&&(g[Li].providerFactory=Lr),Pb(G,a,d.length,0),d.push(Ve),Ae.directiveStart++,Ae.directiveEnd++,P&&(Ae.providerIndexes+=1048576),g.push(Lr),se.push(Lr)}else Pb(G,a,gi>-1?gi:Li,KE(g[P?Li:gi],Pt,!P&&C));!P&&C&&Sr&&g[Li].componentProviders++}}}function Pb(a,d,g,C){const P=Ks(d),G=function Ca(a){return!!a.useClass}(d);if(P||G){const Ve=(G?We(d.useClass):d).prototype.ngOnDestroy;if(Ve){const Pt=a.destroyHooks||(a.destroyHooks=[]);if(!P&&d.multi){const Qt=Pt.indexOf(g);-1===Qt?Pt.push(g,[C,Ve]):Pt[Qt+1].push(C,Ve)}else Pt.push(g,Ve)}}}function KE(a,d,g){return g&&a.componentProviders++,a.multi.push(d)-1}function wb(a,d,g,C){for(let P=g;P<C;P++)if(d[P]===a)return P;return-1}function yD(a,d,g,C){return Ib(this.multi,[])}function SD(a,d,g,C){const P=this.multi;let G;if(this.providerFactory){const se=this.providerFactory.componentProviders,Ae=lc(g,g[Be],this.providerFactory.index,C);G=Ae.slice(0,se),Ib(P,G);for(let Ve=se;Ve<Ae.length;Ve++)G.push(Ae[Ve])}else G=[],Ib(P,G);return G}function Ib(a,d){for(let g=0;g<a.length;g++)d.push((0,a[g])());return d}function XE(a,d=[]){return g=>{g.providersResolver=(C,P)=>function _D(a,d,g){const C=yo();if(C.firstCreatePass){const P=Yo(a);Ob(g,C.data,C.blueprint,P,!0),Ob(d,C.data,C.blueprint,P,!1)}}(C,P?P(a):a,d)}}let CD=(()=>{var a;class d{constructor(C){this._injector=C,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(C){if(!C.standalone)return null;if(!this.cachedInjectors.has(C)){const P=pi(0,C.type),G=P.length>0?Jm([P],this._injector,`Standalone[${C.type.name}]`):null;this.cachedInjectors.set(C,G)}return this.cachedInjectors.get(C)}ngOnDestroy(){try{for(const C of this.cachedInjectors.values())null!==C&&C.destroy()}finally{this.cachedInjectors.clear()}}}return(a=d).\u0275prov=Nr({token:a,providedIn:"environment",factory:()=>new a(cs(Ea))}),d})();function QE(a){lg("NgStandalone"),a.getStandaloneInjector=d=>d.get(CD).getOrCreateStandaloneInjector(a)}function ZE(a,d,g){const C=a.\u0275cmp;C.directiveDefs=vi(d,!1),C.pipeDefs=vi(g,!0)}function qE(a,d,g){const C=Hl()+a,P=Vi();return P[C]===$o?hh(P,C,g?d.call(g):d()):function Mm(a,d){return a[d]}(P,C)}function eM(a,d,g,C){return rM(Vi(),Hl(),a,d,g,C)}function tM(a,d,g,C,P){return oM(Vi(),Hl(),a,d,g,C,P)}function nM(a,d,g,C,P,G){return sM(Vi(),Hl(),a,d,g,C,P,G)}function iM(a,d,g,C){return function lM(a,d,g,C,P,G){let se=d+g,Ae=!1;for(let Ve=0;Ve<P.length;Ve++)tc(a,se++,P[Ve])&&(Ae=!0);return Ae?hh(a,se,C.apply(G,P)):U_(a,se)}(Vi(),Hl(),a,d,g,C)}function U_(a,d){const g=a[d];return g===$o?void 0:g}function rM(a,d,g,C,P,G){const se=d+g;return tc(a,se,P)?hh(a,se+1,G?C.call(G,P):C(P)):U_(a,se+1)}function oM(a,d,g,C,P,G,se){const Ae=d+g;return Kg(a,Ae,P,G)?hh(a,Ae+2,se?C.call(se,P,G):C(P,G)):U_(a,Ae+2)}function sM(a,d,g,C,P,G,se,Ae){const Ve=d+g;return Iv(a,Ve,P,G,se)?hh(a,Ve+3,Ae?C.call(Ae,P,G,se):C(P,G,se)):U_(a,Ve+3)}function cM(a,d){const g=yo();let C;const P=a+mr;g.firstCreatePass?(C=function OD(a,d){if(d)for(let g=d.length-1;g>=0;g--){const C=d[g];if(a===C.name)return C}}(d,g.pipeRegistry),g.data[P]=C,C.onDestroy&&(g.destroyHooks??=[]).push(P,C.onDestroy)):C=g.data[P];const G=C.factory||(C.factory=zs(C.type)),Ae=ts(Cl);try{const Ve=gu(!1),Pt=G();return gu(Ve),function sD(a,d,g,C){g>=a.data.length&&(a.data[g]=null,a.blueprint[g]=null),d[g]=C}(g,Vi(),P,Pt),Pt}finally{ts(Ae)}}function dM(a,d,g){const C=a+mr,P=Vi(),G=Vl(P,C);return B_(P,C)?rM(P,Hl(),d,G.transform,g,G):G.transform(g)}function uM(a,d,g,C){const P=a+mr,G=Vi(),se=Vl(G,P);return B_(G,P)?oM(G,Hl(),d,se.transform,g,C,se):se.transform(g,C)}function hM(a,d,g,C,P){const G=a+mr,se=Vi(),Ae=Vl(se,G);return B_(se,G)?sM(se,Hl(),d,Ae.transform,g,C,P,Ae):Ae.transform(g,C,P)}function B_(a,d){return a[Be].data[d].pure}function pM(a,d){return vv(a,d)}class OM{constructor(d){this.full=d;const g=d.split(".");this.major=g[0],this.minor=g[1],this.patch=g.slice(2).join(".")}}let PM=(()=>{var a;class d{log(C){console.log(C)}warn(C){console.warn(C)}}return(a=d).\u0275fac=function(C){return new(C||a)},a.\u0275prov=Nr({token:a,factory:a.\u0275fac,providedIn:"platform"}),d})();const NM=new Si(""),kM=new Si("");let Ub,MO=(()=>{var a;class d{constructor(C,P,G){this._ngZone=C,this.registry=P,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Ub||(function AO(a){Ub=a}(G),G.addToWindow(P)),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:()=>{Rc.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(P=>!P.updateCb||!P.updateCb(C)||(clearTimeout(P.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,P,G){let se=-1;P&&P>0&&(se=setTimeout(()=>{this._callbacks=this._callbacks.filter(Ae=>Ae.timeoutId!==se),C()},P)),this._callbacks.push({doneCb:C,timeoutId:se,updateCb:G})}whenStable(C,P,G){if(G&&!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,P,G),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,P,G){return[]}}return(a=d).\u0275fac=function(C){return new(C||a)(cs(Rc),cs(FM),cs(kM))},a.\u0275prov=Nr({token:a,factory:a.\u0275fac}),d})(),FM=(()=>{var a;class d{constructor(){this._applications=new Map}registerApplication(C,P){this._applications.set(C,P)}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,P=!0){return Ub?.findTestabilityInTree(this,C,P)??null}}return(a=d).\u0275fac=function(C){return new(C||a)},a.\u0275prov=Nr({token:a,factory:a.\u0275fac,providedIn:"platform"}),d})();function Bb(a){return!!a&&"function"==typeof a.then}function UM(a){return!!a&&"function"==typeof a.subscribe}const BM=new Si("");let Vb=(()=>{var a;class d{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((C,P)=>{this.resolve=C,this.reject=P}),this.appInits=_r(BM,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const C=[];for(const G of this.appInits){const se=G();if(Bb(se))C.push(se);else if(UM(se)){const Ae=new Promise((Ve,Pt)=>{se.subscribe({complete:Ve,error:Pt})});C.push(Ae)}}const P=()=>{this.done=!0,this.resolve()};Promise.all(C).then(()=>{P()}).catch(G=>{this.reject(G)}),0===C.length&&P(),this.initialized=!0}}return(a=d).\u0275fac=function(C){return new(C||a)},a.\u0275prov=Nr({token:a,factory:a.\u0275fac,providedIn:"root"}),d})();const Gb=new Si("");function HM(a,d){return Array.isArray(d)?d.reduce(HM,a):{...a,...d}}let Rm=(()=>{var a;class d{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=_r(Nd),this.afterRenderEffectManager=_r(Gm),this.externalTestViews=new Set,this.beforeRender=new Ie.B7,this.afterTick=new Ie.B7,this.componentTypes=[],this.components=[],this.isStable=_r(cg).hasPendingTasks.pipe((0,ve.T)(C=>!C)),this._injector=_r(Ea)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,P){const G=C instanceof e0;if(!this._injector.get(Vb).done)throw!G&&Ht(C),new Qe(405,!1);let Ae;Ae=G?C:this._injector.get(Ev).resolveComponentFactory(C),this.componentTypes.push(Ae.componentType);const Ve=function TO(a){return a.isBoundToModule}(Ae)?void 0:this._injector.get(uh),Qt=Ae.create(Yl.NULL,[],P||Ae.selector,Ve),_n=Qt.location.nativeElement,ri=Qt.injector.get(NM,null);return ri?.registerApplication(_n),Qt.onDestroy(()=>{this.detachView(Qt.hostView),ty(this.components,Qt),ri?.unregisterApplication(_n)}),this._loadComponent(Qt),Qt}tick(){this._tick(!0)}_tick(C){if(this._runningTick)throw new Qe(101,!1);const P=M(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(C)}catch(G){this.internalErrorHandler(G)}finally{this.afterTick.next(),this._runningTick=!1,M(P)}}detectChangesInAttachedViews(C){let P=0;const G=this.afterRenderEffectManager;for(;;){if(P===W_)throw new Qe(103,!1);if(C){const se=0===P;this.beforeRender.next(se);for(let{_lView:Ae,notifyErrorHandler:Ve}of this._views)DO(Ae,se,Ve)}if(P++,G.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:se})=>Hb(se))&&(G.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:se})=>Hb(se))))break}}attachView(C){const P=C;this._views.push(P),P.attachToAppRef(this)}detachView(C){const P=C;ty(this._views,P),P.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C);const P=this._injector.get(Gb,[]);[...this._bootstrapListeners,...P].forEach(G=>G(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),()=>ty(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new Qe(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(a=d).\u0275fac=function(C){return new(C||a)},a.\u0275prov=Nr({token:a,factory:a.\u0275fac,providedIn:"root"}),d})();function ty(a,d){const g=a.indexOf(d);g>-1&&a.splice(g,1)}function DO(a,d,g){!d&&!Hb(a)||function OO(a,d,g){let C;g?(C=0,a[_t]|=1024):C=64&a[_t]?0:1,pv(a,d,C)}(a,g,d)}function Hb(a){return Wc(a)}class PO{constructor(d,g){this.ngModuleFactory=d,this.componentFactories=g}}let wO=(()=>{var a;class d{compileModuleSync(C){return new E_(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const P=this.compileModuleSync(C),se=$a(ut(C).declarations).reduce((Ae,Ve)=>{const Pt=Cr(Ve);return Pt&&Ae.push(new Ym(Pt)),Ae},[]);return new PO(P,se)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return(a=d).\u0275fac=function(C){return new(C||a)},a.\u0275prov=Nr({token:a,factory:a.\u0275fac,providedIn:"root"}),d})(),LO=(()=>{var a;class d{constructor(){this.zone=_r(Rc),this.applicationRef=_r(Rm)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(a=d).\u0275fac=function(C){return new(C||a)},a.\u0275prov=Nr({token:a,factory:a.\u0275fac,providedIn:"root"}),d})();function NO(){const a=_r(Rc),d=_r(Bc);return g=>a.runOutsideAngular(()=>d.handleError(g))}let FO=(()=>{var a;class d{constructor(){this.subscription=new at.y,this.initialized=!1,this.zone=_r(Rc),this.pendingTasks=_r(cg)}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(()=>{Rc.assertNotInAngularZone(),queueMicrotask(()=>{null!==C&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(C),C=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Rc.assertInAngularZone(),C??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(a=d).\u0275fac=function(C){return new(C||a)},a.\u0275prov=Nr({token:a,factory:a.\u0275fac,providedIn:"root"}),d})();const iy=new Si("",{providedIn:"root",factory:()=>_r(iy,Qr.Optional|Qr.SkipSelf)||function UO(){return typeof $localize<"u"&&$localize.locale||Zv}()}),BO=new Si("",{providedIn:"root",factory:()=>"USD"}),jb=new Si("");let $M=(()=>{var a;class d{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,P){const G=function zy(a="zone.js",d){return"noop"===a?new s0:"zone.js"===a?new Rc(d):a}(P?.ngZone,function WM(a){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:a?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:a?.runCoalescing??!1}}({eventCoalescing:P?.ngZoneEventCoalescing,runCoalescing:P?.ngZoneRunCoalescing}));return G.run(()=>{const se=function GS(a,d,g){return new Pv(a,d,g)}(C.moduleType,this.injector,function YM(a){return[{provide:Rc,useFactory:a},{provide:Pr,multi:!0,useFactory:()=>{const d=_r(LO,{optional:!0});return()=>d.initialize()}},{provide:Pr,multi:!0,useFactory:()=>{const d=_r(FO);return()=>{d.initialize()}}},{provide:Nd,useFactory:NO}]}(()=>G)),Ae=se.injector.get(Bc,null);return G.runOutsideAngular(()=>{const Ve=G.onError.subscribe({next:Pt=>{Ae.handleError(Pt)}});se.onDestroy(()=>{ty(this._modules,se),Ve.unsubscribe()})}),function GM(a,d,g){try{const C=g();return Bb(C)?C.catch(P=>{throw d.runOutsideAngular(()=>a.handleError(P)),P}):C}catch(C){throw d.runOutsideAngular(()=>a.handleError(C)),C}}(Ae,G,()=>{const Ve=se.injector.get(Vb);return Ve.runInitializers(),Ve.donePromise.then(()=>(function GC(a){"string"==typeof a&&(VC=a.toLowerCase().replace(/_/g,"-"))}(se.injector.get(iy,Zv)||Zv),this._moduleDoBootstrap(se),se))})})}bootstrapModule(C,P=[]){const G=HM({},P);return function RO(a,d,g){const C=new E_(g);return Promise.resolve(C)}(0,0,C).then(se=>this.bootstrapModuleFactory(se,G))}_moduleDoBootstrap(C){const P=C.injector.get(Rm);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(G=>P.bootstrap(G));else{if(!C.instance.ngDoBootstrap)throw new Qe(-403,!1);C.instance.ngDoBootstrap(P)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Qe(404,!1);this._modules.slice().forEach(P=>P.destroy()),this._destroyListeners.forEach(P=>P());const C=this._injector.get(jb,null);C&&(C.forEach(P=>P()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(a=d).\u0275fac=function(C){return new(C||a)(cs(Yl))},a.\u0275prov=Nr({token:a,factory:a.\u0275fac,providedIn:"platform"}),d})(),Lm=null;const zM=new Si("");function KM(a,d,g=[]){const C=`Platform: ${d}`,P=new Si(C);return(G=[])=>{let se=Yb();if(!se||se.injector.get(zM,!1)){const Ae=[...g,...G,{provide:P,useValue:!0}];a?a(Ae):function GO(a){if(Lm&&!Lm.get(zM,!1))throw new Qe(400,!1);(function VM(){!function ot(a){ge=a}(()=>{throw new Qe(600,!1)})})(),Lm=a;const d=a.get($M);(function QM(a){a.get(Bh,null)?.forEach(g=>g())})(a)}(function XM(a=[],d){return Yl.create({name:d,providers:[{provide:Xs,useValue:"platform"},{provide:jb,useValue:new Set([()=>Lm=null])},...a]})}(Ae,C))}return function HO(a){const d=Yb();if(!d)throw new Qe(401,!1);return d}()}}function Yb(){return Lm?.get($M)??null}function YO(){}let JM=(()=>{class d{}return d.__NG_ELEMENT_ID__=WO,d})();function WO(a){return function $O(a,d,g){if(no(a)&&!g){const C=_l(a.index,d);return new gv(C,C)}return 47&a.type?new gv(d[Rn],d):null}(Po(),Vi(),!(16&~a))}class nA{constructor(){}supports(d){return qm(d)}create(d){return new ZO(d)}}const QO=(a,d)=>d;class ZO{constructor(d){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=d||QO}forEachItem(d){let g;for(g=this._itHead;null!==g;g=g._next)d(g)}forEachOperation(d){let g=this._itHead,C=this._removalsHead,P=0,G=null;for(;g||C;){const se=!C||g&&g.currentIndex<rA(C,P,G)?g:C,Ae=rA(se,P,G),Ve=se.currentIndex;if(se===C)P--,C=C._nextRemoved;else if(g=g._next,null==se.previousIndex)P++;else{G||(G=[]);const Pt=Ae-P,Qt=Ve-P;if(Pt!=Qt){for(let ri=0;ri<Pt;ri++){const gi=ri<G.length?G[ri]:G[ri]=0,Li=gi+ri;Qt<=Li&&Li<Pt&&(G[ri]=gi+1)}G[se.previousIndex]=Qt-Pt}}Ae!==Ve&&d(se,Ae,Ve)}}forEachPreviousItem(d){let g;for(g=this._previousItHead;null!==g;g=g._nextPrevious)d(g)}forEachAddedItem(d){let g;for(g=this._additionsHead;null!==g;g=g._nextAdded)d(g)}forEachMovedItem(d){let g;for(g=this._movesHead;null!==g;g=g._nextMoved)d(g)}forEachRemovedItem(d){let g;for(g=this._removalsHead;null!==g;g=g._nextRemoved)d(g)}forEachIdentityChange(d){let g;for(g=this._identityChangesHead;null!==g;g=g._nextIdentityChange)d(g)}diff(d){if(null==d&&(d=[]),!qm(d))throw new Qe(900,!1);return this.check(d)?this:null}onDestroy(){}check(d){this._reset();let P,G,se,g=this._itHead,C=!1;if(Array.isArray(d)){this.length=d.length;for(let Ae=0;Ae<this.length;Ae++)G=d[Ae],se=this._trackByFn(Ae,G),null!==g&&Object.is(g.trackById,se)?(C&&(g=this._verifyReinsertion(g,G,se,Ae)),Object.is(g.item,G)||this._addIdentityChange(g,G)):(g=this._mismatch(g,G,se,Ae),C=!0),g=g._next}else P=0,function $S(a,d){if(Array.isArray(a))for(let g=0;g<a.length;g++)d(a[g]);else{const g=a[Symbol.iterator]();let C;for(;!(C=g.next()).done;)d(C.value)}}(d,Ae=>{se=this._trackByFn(P,Ae),null!==g&&Object.is(g.trackById,se)?(C&&(g=this._verifyReinsertion(g,Ae,se,P)),Object.is(g.item,Ae)||this._addIdentityChange(g,Ae)):(g=this._mismatch(g,Ae,se,P),C=!0),g=g._next,P++}),this.length=P;return this._truncate(g),this.collection=d,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let d;for(d=this._previousItHead=this._itHead;null!==d;d=d._next)d._nextPrevious=d._next;for(d=this._additionsHead;null!==d;d=d._nextAdded)d.previousIndex=d.currentIndex;for(this._additionsHead=this._additionsTail=null,d=this._movesHead;null!==d;d=d._nextMoved)d.previousIndex=d.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(d,g,C,P){let G;return null===d?G=this._itTail:(G=d._prev,this._remove(d)),null!==(d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(C,null))?(Object.is(d.item,g)||this._addIdentityChange(d,g),this._reinsertAfter(d,G,P)):null!==(d=null===this._linkedRecords?null:this._linkedRecords.get(C,P))?(Object.is(d.item,g)||this._addIdentityChange(d,g),this._moveAfter(d,G,P)):d=this._addAfter(new JO(g,C),G,P),d}_verifyReinsertion(d,g,C,P){let G=null===this._unlinkedRecords?null:this._unlinkedRecords.get(C,null);return null!==G?d=this._reinsertAfter(G,d._prev,P):d.currentIndex!=P&&(d.currentIndex=P,this._addToMoves(d,P)),d}_truncate(d){for(;null!==d;){const g=d._next;this._addToRemovals(this._unlink(d)),d=g}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(d,g,C){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(d);const P=d._prevRemoved,G=d._nextRemoved;return null===P?this._removalsHead=G:P._nextRemoved=G,null===G?this._removalsTail=P:G._prevRemoved=P,this._insertAfter(d,g,C),this._addToMoves(d,C),d}_moveAfter(d,g,C){return this._unlink(d),this._insertAfter(d,g,C),this._addToMoves(d,C),d}_addAfter(d,g,C){return this._insertAfter(d,g,C),this._additionsTail=null===this._additionsTail?this._additionsHead=d:this._additionsTail._nextAdded=d,d}_insertAfter(d,g,C){const P=null===g?this._itHead:g._next;return d._next=P,d._prev=g,null===P?this._itTail=d:P._prev=d,null===g?this._itHead=d:g._next=d,null===this._linkedRecords&&(this._linkedRecords=new iA),this._linkedRecords.put(d),d.currentIndex=C,d}_remove(d){return this._addToRemovals(this._unlink(d))}_unlink(d){null!==this._linkedRecords&&this._linkedRecords.remove(d);const g=d._prev,C=d._next;return null===g?this._itHead=C:g._next=C,null===C?this._itTail=g:C._prev=g,d}_addToMoves(d,g){return d.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=d:this._movesTail._nextMoved=d),d}_addToRemovals(d){return null===this._unlinkedRecords&&(this._unlinkedRecords=new iA),this._unlinkedRecords.put(d),d.currentIndex=null,d._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=d,d._prevRemoved=null):(d._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=d),d}_addIdentityChange(d,g){return d.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=d:this._identityChangesTail._nextIdentityChange=d,d}}class JO{constructor(d,g){this.item=d,this.trackById=g,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 qO{constructor(){this._head=null,this._tail=null}add(d){null===this._head?(this._head=this._tail=d,d._nextDup=null,d._prevDup=null):(this._tail._nextDup=d,d._prevDup=this._tail,d._nextDup=null,this._tail=d)}get(d,g){let C;for(C=this._head;null!==C;C=C._nextDup)if((null===g||g<=C.currentIndex)&&Object.is(C.trackById,d))return C;return null}remove(d){const g=d._prevDup,C=d._nextDup;return null===g?this._head=C:g._nextDup=C,null===C?this._tail=g:C._prevDup=g,null===this._head}}class iA{constructor(){this.map=new Map}put(d){const g=d.trackById;let C=this.map.get(g);C||(C=new qO,this.map.set(g,C)),C.add(d)}get(d,g){const P=this.map.get(d);return P?P.get(d,g):null}remove(d){const g=d.trackById;return this.map.get(g).remove(d)&&this.map.delete(g),d}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function rA(a,d,g){const C=a.previousIndex;if(null===C)return C;let P=0;return g&&C<g.length&&(P=g[C]),C+d+P}class oA{constructor(){}supports(d){return d instanceof Map||A_(d)}create(){return new eP}}class eP{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(d){let g;for(g=this._mapHead;null!==g;g=g._next)d(g)}forEachPreviousItem(d){let g;for(g=this._previousMapHead;null!==g;g=g._nextPrevious)d(g)}forEachChangedItem(d){let g;for(g=this._changesHead;null!==g;g=g._nextChanged)d(g)}forEachAddedItem(d){let g;for(g=this._additionsHead;null!==g;g=g._nextAdded)d(g)}forEachRemovedItem(d){let g;for(g=this._removalsHead;null!==g;g=g._nextRemoved)d(g)}diff(d){if(d){if(!(d instanceof Map||A_(d)))throw new Qe(900,!1)}else d=new Map;return this.check(d)?this:null}onDestroy(){}check(d){this._reset();let g=this._mapHead;if(this._appendAfter=null,this._forEach(d,(C,P)=>{if(g&&g.key===P)this._maybeAddToChanges(g,C),this._appendAfter=g,g=g._next;else{const G=this._getOrCreateRecordForKey(P,C);g=this._insertBeforeOrAppend(g,G)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let C=g;null!==C;C=C._nextRemoved)C===this._mapHead&&(this._mapHead=null),this._records.delete(C.key),C._nextRemoved=C._next,C.previousValue=C.currentValue,C.currentValue=null,C._prev=null,C._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(d,g){if(d){const C=d._prev;return g._next=d,g._prev=C,d._prev=g,C&&(C._next=g),d===this._mapHead&&(this._mapHead=g),this._appendAfter=d,d}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(d,g){if(this._records.has(d)){const P=this._records.get(d);this._maybeAddToChanges(P,g);const G=P._prev,se=P._next;return G&&(G._next=se),se&&(se._prev=G),P._next=null,P._prev=null,P}const C=new tP(d);return this._records.set(d,C),C.currentValue=g,this._addToAdditions(C),C}_reset(){if(this.isDirty){let d;for(this._previousMapHead=this._mapHead,d=this._previousMapHead;null!==d;d=d._next)d._nextPrevious=d._next;for(d=this._changesHead;null!==d;d=d._nextChanged)d.previousValue=d.currentValue;for(d=this._additionsHead;null!=d;d=d._nextAdded)d.previousValue=d.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(d,g){Object.is(g,d.currentValue)||(d.previousValue=d.currentValue,d.currentValue=g,this._addToChanges(d))}_addToAdditions(d){null===this._additionsHead?this._additionsHead=this._additionsTail=d:(this._additionsTail._nextAdded=d,this._additionsTail=d)}_addToChanges(d){null===this._changesHead?this._changesHead=this._changesTail=d:(this._changesTail._nextChanged=d,this._changesTail=d)}_forEach(d,g){d instanceof Map?d.forEach(g):Object.keys(d).forEach(C=>g(d[C],C))}}class tP{constructor(d){this.key=d,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 sA(){return new Xb([new nA])}let Xb=(()=>{var a;class d{constructor(C){this.factories=C}static create(C,P){if(null!=P){const G=P.factories.slice();C=C.concat(G)}return new d(C)}static extend(C){return{provide:d,useFactory:P=>d.create(C,P||sA()),deps:[[d,new ta,new To]]}}find(C){const P=this.factories.find(G=>G.supports(C));if(null!=P)return P;throw new Qe(901,!1)}}return(a=d).\u0275prov=Nr({token:a,providedIn:"root",factory:sA}),d})();function aA(){return new Qb([new oA])}let Qb=(()=>{var a;class d{constructor(C){this.factories=C}static create(C,P){if(P){const G=P.factories.slice();C=C.concat(G)}return new d(C)}static extend(C){return{provide:d,useFactory:P=>d.create(C,P||aA()),deps:[[d,new ta,new To]]}}find(C){const P=this.factories.find(G=>G.supports(C));if(P)return P;throw new Qe(901,!1)}}return(a=d).\u0275prov=Nr({token:a,providedIn:"root",factory:aA}),d})();const rP=KM(null,"core",[]);let oP=(()=>{var a;class d{constructor(C){}}return(a=d).\u0275fac=function(C){return new(C||a)(cs(Rm))},a.\u0275mod=ys({type:a}),a.\u0275inj=Cs({}),d})();function LP(a){return"boolean"==typeof a?a:null!=a&&"false"!==a}function kP(a){const d=M(null);try{return a()}finally{M(d)}}function HP(a){const d=Cr(a);if(!d)return null;const g=new Ym(d);return{get selector(){return g.selector},get type(){return g.componentType},get inputs(){return g.inputs},get outputs(){return g.outputs},get ngContentSelectors(){return g.ngContentSelectors},get isStandalone(){return d.standalone},get isSignal(){return d.signals}}}},73004:(je,z,c)=>{"use strict";function r(y){for(let S in y){let l=y[S]??"";switch(S){case"display":y.display="flex"===l?["-webkit-flex","flex"]:"inline-flex"===l?["-webkit-inline-flex","inline-flex"]:l;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":y["-webkit-"+S]=l;break;case"flex-direction":y["-webkit-flex-direction"]=l,y["flex-direction"]=l;break;case"order":y.order=y["-webkit-"+S]=isNaN(+l)?"0":l}}return y}c.d(z,{C5:()=>E,O5:()=>r,Uo:()=>v,Vc:()=>A,uG:()=>h});const n="inline",v=["row","column","row-reverse","column-reverse"];function h(y){let[S,l,s]=f(y);return function T(y,S=null,l=!1){return{display:l?"inline-flex":"flex","box-sizing":"border-box","flex-direction":y,"flex-wrap":S||null}}(S,l,s)}function f(y){y=y?.toLowerCase()??"";let[S,l,s]=y.split(" ");return v.find(u=>u===S)||(S=v[0]),l===n&&(l=s!==n?s:"",s=n),[S,M(l),!!s]}function A(y){let[S]=f(y);return S.indexOf("row")>-1}function M(y){if(y)switch(y.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":y="wrap-reverse";break;case"no":case"none":case"nowrap":y="nowrap";break;default:y="wrap"}return y}function E(y,...S){if(null==y)throw TypeError("Cannot convert undefined or null to object");for(let l of S)if(null!=l)for(let s in l)l.hasOwnProperty(s)&&(y[s]=l[s]);return y}},2833:(je,z,c)=>{"use strict";c.d(z,{Ce:()=>O,DJ:()=>de,EA:()=>R,PV:()=>I,SL:()=>Y,Ui:()=>s,ZH:()=>te,cL:()=>_i,hN:()=>qe,qH:()=>zt,r3:()=>fe});var r=c(58527),n=c(61142),v=c(26513),h=c(17053),f=c(16229),A=c(80583),M=c(73004),T=c(8619),E=c(91384);const S={provide:r.iLQ,useFactory:function y(Bn,jn){return()=>{if((0,n.UE)(jn)){const It=Array.from(Bn.querySelectorAll(`[class*=${l}]`)),vn=/\bflex-layout-.+?\b/g;It.forEach(Vn=>{Vn.classList.contains(`${l}ssr`)&&Vn.parentNode?Vn.parentNode.removeChild(Vn):Vn.className.replace(vn,"")})}}},deps:[n.qQ,r.Agw],multi:!0},l="flex-layout-";let s=(()=>{class Bn{}return Bn.\u0275fac=function(It){return new(It||Bn)},Bn.\u0275mod=r.$C({type:Bn}),Bn.\u0275inj=r.G2t({providers:[S]}),Bn})();class u{constructor(jn=!1,It="all",vn="",Vn="",ht=0){this.matches=jn,this.mediaQuery=It,this.mqAlias=vn,this.suffix=Vn,this.priority=ht,this.property=""}clone(){return new u(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let m=(()=>{class Bn{constructor(){this.stylesheet=new Map}addStyleToElement(It,vn,Vn){const ht=this.stylesheet.get(It);ht?ht.set(vn,Vn):this.stylesheet.set(It,new Map([[vn,Vn]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(It,vn){const Vn=this.stylesheet.get(It);let ht="";if(Vn){const it=Vn.get(vn);("number"==typeof it||"string"==typeof it)&&(ht=it+"")}return ht}}return Bn.\u0275fac=function(It){return new(It||Bn)},Bn.\u0275prov=r.jDH({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();const I={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},R=new r.nKC("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>I}),O=new r.nKC("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Y=new r.nKC("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function j(Bn,jn){return Bn=Bn?.clone()??new u,jn&&(Bn.mqAlias=jn.alias,Bn.mediaQuery=jn.mediaQuery,Bn.suffix=jn.suffix,Bn.priority=jn.priority),Bn}class fe{constructor(){this.shouldCache=!0}sideEffect(jn,It,vn){}}let te=(()=>{class Bn{constructor(It,vn,Vn,ht){this._serverStylesheet=It,this._serverModuleLoaded=vn,this._platformId=Vn,this.layoutConfig=ht}applyStyleToElement(It,vn,Vn=null){let ht={};"string"==typeof vn&&(ht[vn]=Vn,vn=ht),ht=this.layoutConfig.disableVendorPrefixes?vn:(0,M.O5)(vn),this._applyMultiValueStyleToElement(ht,It)}applyStyleToElements(It,vn=[]){const Vn=this.layoutConfig.disableVendorPrefixes?It:(0,M.O5)(It);vn.forEach(ht=>{this._applyMultiValueStyleToElement(Vn,ht)})}getFlowDirection(It){const vn="flex-direction";let Vn=this.lookupStyle(It,vn);return[Vn||"row",this.lookupInlineStyle(It,vn)||(0,n.Vy)(this._platformId)&&this._serverModuleLoaded?Vn:""]}hasWrap(It){return"wrap"===this.lookupStyle(It,"flex-wrap")}lookupAttributeValue(It,vn){return It.getAttribute(vn)??""}lookupInlineStyle(It,vn){return(0,n.UE)(this._platformId)?It.style.getPropertyValue(vn):function ce(Bn,jn){return X(Bn)[jn]??""}(It,vn)}lookupStyle(It,vn,Vn=!1){let ht="";return It&&((ht=this.lookupInlineStyle(It,vn))||((0,n.UE)(this._platformId)?Vn||(ht=getComputedStyle(It).getPropertyValue(vn)):this._serverModuleLoaded&&(ht=this._serverStylesheet.getStyleForElement(It,vn)))),ht?ht.trim():""}_applyMultiValueStyleToElement(It,vn){Object.keys(It).sort().forEach(Vn=>{const ht=It[Vn],it=Array.isArray(ht)?ht:[ht];it.sort();for(let Ct of it)Ct=Ct?Ct+"":"",(0,n.UE)(this._platformId)||!this._serverModuleLoaded?(0,n.UE)(this._platformId)?vn.style.setProperty(Vn,Ct):H(vn,Vn,Ct):this._serverStylesheet.addStyleToElement(vn,Vn,Ct)})}}return Bn.\u0275fac=function(It){return new(It||Bn)(r.KVO(m),r.KVO(O),r.KVO(r.Agw),r.KVO(R))},Bn.\u0275prov=r.jDH({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();function H(Bn,jn,It){jn=jn.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const vn=X(Bn);vn[jn]=It??"",function Z(Bn,jn){let It="";for(const vn in jn)jn[vn]&&(It+=`${vn}:${jn[vn]};`);Bn.setAttribute("style",It)}(Bn,vn)}function X(Bn){const jn={},It=Bn.getAttribute("style");if(It){const vn=It.split(/;+/g);for(let Vn=0;Vn<vn.length;Vn++){const ht=vn[Vn].trim();if(ht.length>0){const it=ht.indexOf(":");if(-1===it)throw new Error(`Invalid CSS style: ${ht}`);jn[ht.substr(0,it).trim()]=ht.substr(it+1).trim()}}}return jn}function ue(Bn,jn){return(jn&&jn.priority||0)-(Bn&&Bn.priority||0)}function Me(Bn,jn){return(Bn.priority||0)-(jn.priority||0)}let be=(()=>{class Bn{constructor(It,vn,Vn){this._zone=It,this._platformId=vn,this._document=Vn,this.source=new v.t(new u(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const It=[];return this.registry.forEach((vn,Vn)=>{vn.matches&&It.push(Vn)}),It}isActive(It){return this.registry.get(It)?.matches??this.registerQuery(It).some(Vn=>Vn.matches)}observe(It,vn=!1){if(It&&It.length){const Vn=this._observable$.pipe((0,T.p)(it=>!vn||It.indexOf(it.mediaQuery)>-1)),ht=new h.c(it=>{const Ct=this.registerQuery(It);if(Ct.length){const Et=Ct.pop();Ct.forEach(We=>{it.next(We)}),this.source.next(Et)}it.complete()});return(0,f.h)(ht,Vn)}return this._observable$}registerQuery(It){const vn=Array.isArray(It)?It:[It],Vn=[];return function ne(Bn,jn){const It=Bn.filter(vn=>!Q[vn]);if(It.length>0){const vn=It.join(", ");try{const Vn=jn.createElement("style");Vn.setAttribute("type","text/css"),Vn.styleSheet||Vn.appendChild(jn.createTextNode(`\n/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media ${vn} {.fx-query-test{ }}\n`)),jn.head.appendChild(Vn),It.forEach(ht=>Q[ht]=Vn)}catch(Vn){console.error(Vn)}}}(vn,this._document),vn.forEach(ht=>{const it=Et=>{this._zone.run(()=>this.source.next(new u(Et.matches,ht)))};let Ct=this.registry.get(ht);Ct||(Ct=this.buildMQL(ht),Ct.addListener(it),this.pendingRemoveListenerFns.push(()=>Ct.removeListener(it)),this.registry.set(ht,Ct)),Ct.matches&&Vn.push(new u(!0,ht))}),Vn}ngOnDestroy(){let It;for(;It=this.pendingRemoveListenerFns.pop();)It()}buildMQL(It){return function ge(Bn,jn){return jn&&window.matchMedia("all").addListener?window.matchMedia(Bn):function Ge(Bn){const jn=new EventTarget;return jn.matches="all"===Bn||""===Bn,jn.media=Bn,jn.addListener=()=>{},jn.removeListener=()=>{},jn.addEventListener=()=>{},jn.dispatchEvent=()=>!1,jn.onchange=null,jn}(Bn)}(It,(0,n.UE)(this._platformId))}}return Bn.\u0275fac=function(It){return new(It||Bn)(r.KVO(r.SKi),r.KVO(r.Agw),r.KVO(n.qQ))},Bn.\u0275prov=r.jDH({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();const Q={},Xe=[{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}],ot="(orientation: portrait) and (max-width: 599.98px)",dt="(orientation: landscape) and (max-width: 959.98px)",xe="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Re="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Ue="(orientation: portrait) and (min-width: 840px)",ee="(orientation: landscape) and (min-width: 1280px)",W={HANDSET:`${ot}, ${dt}`,TABLET:`${xe} , ${Re}`,WEB:`${Ue}, ${ee} `,HANDSET_PORTRAIT:`${ot}`,TABLET_PORTRAIT:`${xe} `,WEB_PORTRAIT:`${Ue}`,HANDSET_LANDSCAPE:`${dt}`,TABLET_LANDSCAPE:`${Re}`,WEB_LANDSCAPE:`${ee}`},Pe=[{alias:"handset",priority:2e3,mediaQuery:W.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:W.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:W.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:W.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:W.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:W.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:W.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:W.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:W.WEB_PORTRAIT,overlapping:!0}],le=/(\.|-|_)/g;function oe(Bn){let jn=Bn.length>0?Bn.charAt(0):"",It=Bn.length>1?Bn.slice(1):"";return jn.toUpperCase()+It}const Ie=new r.nKC("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Bn=(0,r.WQX)(Y),jn=(0,r.WQX)(R),It=[].concat.apply([],(Bn||[]).map(Vn=>Array.isArray(Vn)?Vn:[Vn]));return function ye(Bn,jn=[]){const It={};return Bn.forEach(vn=>{It[vn.alias]=vn}),jn.forEach(vn=>{It[vn.alias]?(0,M.C5)(It[vn.alias],vn):It[vn.alias]=vn}),function Oe(Bn){return Bn.forEach(jn=>{jn.suffix||(jn.suffix=function Le(Bn){return Bn.replace(le,"|").split("|").map(oe).join("")}(jn.alias),jn.overlapping=!!jn.overlapping)}),Bn}(Object.keys(It).map(vn=>It[vn]))}((jn.disableDefaultBps?[]:Xe).concat(jn.addOrientationBps?Pe:[]),It)}});let at=(()=>{class Bn{constructor(It){this.findByMap=new Map,this.items=[...It].sort(Me)}findByAlias(It){return It?this.findWithPredicate(It,vn=>vn.alias===It):null}findByQuery(It){return this.findWithPredicate(It,vn=>vn.mediaQuery===It)}get overlappings(){return this.items.filter(It=>It.overlapping)}get aliases(){return this.items.map(It=>It.alias)}get suffixes(){return this.items.map(It=>It?.suffix??"")}findWithPredicate(It,vn){let Vn=this.findByMap.get(It);return Vn||(Vn=this.items.find(vn)??null,this.findByMap.set(It,Vn)),Vn??null}}return Bn.\u0275fac=function(It){return new(It||Bn)(r.KVO(Ie))},Bn.\u0275prov=r.jDH({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();const K="print",ve={alias:K,mediaQuery:K,priority:1e3};let De=(()=>{class Bn{constructor(It,vn,Vn){this.breakpoints=It,this.layoutConfig=vn,this._document=Vn,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new pe,this.deactivations=[]}withPrintQuery(It){return[...It,K]}isPrintEvent(It){return It.mediaQuery.startsWith(K)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(It=>this.breakpoints.findByAlias(It)).filter(It=>null!==It)}getEventBreakpoints({mediaQuery:It}){const vn=this.breakpoints.findByQuery(It);return(vn?[...this.printBreakPoints,vn]:this.printBreakPoints).sort(ue)}updateEvent(It){let vn=this.breakpoints.findByQuery(It.mediaQuery);return this.isPrintEvent(It)&&(vn=this.getEventBreakpoints(It)[0],It.mediaQuery=vn?.mediaQuery??""),j(It,vn)}registerBeforeAfterPrintHooks(It){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const vn=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(It,this.getEventBreakpoints(new u(!0,K))),It.updateStyles())},Vn=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(It),It.updateStyles())};this._document.defaultView.addEventListener("beforeprint",vn),this._document.defaultView.addEventListener("afterprint",Vn),this.beforePrintEventListeners.push(vn),this.afterPrintEventListeners.push(Vn)}interceptEvents(It){return vn=>{this.isPrintEvent(vn)?vn.matches&&!this.isPrinting?(this.startPrinting(It,this.getEventBreakpoints(vn)),It.updateStyles()):!vn.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(It),It.updateStyles()):this.collectActivations(It,vn)}}blockPropagation(){return It=>!(this.isPrinting||this.isPrintEvent(It))}startPrinting(It,vn){this.isPrinting=!0,this.formerActivations=It.activatedBreakpoints,It.activatedBreakpoints=this.queue.addPrintBreakpoints(vn)}stopPrinting(It){It.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(It,vn){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!vn.matches){const Vn=this.breakpoints.findByQuery(vn.mediaQuery);if(Vn){const ht=this.formerActivations&&this.formerActivations.includes(Vn),it=!this.formerActivations&&It.activatedBreakpoints.includes(Vn);(ht||it)&&(this.deactivations.push(Vn),this.deactivations.sort(ue))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(It=>this._document.defaultView.removeEventListener("beforeprint",It)),this.afterPrintEventListeners.forEach(It=>this._document.defaultView.removeEventListener("afterprint",It)))}}return Bn.\u0275fac=function(It){return new(It||Bn)(r.KVO(at),r.KVO(R),r.KVO(n.qQ))},Bn.\u0275prov=r.jDH({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();class pe{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(jn){return jn.push(ve),jn.sort(ue),jn.forEach(It=>this.addBreakpoint(It)),this.printBreakpoints}addBreakpoint(jn){jn&&void 0===this.printBreakpoints.find(vn=>vn.mediaQuery===jn.mediaQuery)&&(this.printBreakpoints=function Qe(Bn){return Bn?.mediaQuery.startsWith(K)??!1}(jn)?[jn,...this.printBreakpoints]:[...this.printBreakpoints,jn])}clear(){this.printBreakpoints=[]}}let zt=(()=>{class Bn{constructor(It,vn,Vn){this.matchMedia=It,this.breakpoints=vn,this.hook=Vn,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 A.B7,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(It){this._activatedBreakpoints=[...It]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(It){this._useFallbacks=It}onMediaChange(It){const vn=this.findByQuery(It.mediaQuery);if(vn){It=j(It,vn);const Vn=this.activatedBreakpoints.indexOf(vn);It.matches&&-1===Vn?(this._activatedBreakpoints.push(vn),this._activatedBreakpoints.sort(ue),this.updateStyles()):!It.matches&&-1!==Vn&&(this._activatedBreakpoints.splice(Vn,1),this._activatedBreakpoints.sort(ue),this.updateStyles())}}init(It,vn,Vn,ht,it=[]){Vt(this.updateMap,It,vn,Vn),Vt(this.clearMap,It,vn,ht),this.buildElementKeyMap(It,vn),this.watchExtraTriggers(It,vn,it)}getValue(It,vn,Vn){const ht=this.elementMap.get(It);if(ht){const it=void 0!==Vn?ht.get(Vn):this.getActivatedValues(ht,vn);if(it)return it.get(vn)}}hasValue(It,vn){const Vn=this.elementMap.get(It);if(Vn){const ht=this.getActivatedValues(Vn,vn);if(ht)return void 0!==ht.get(vn)||!1}return!1}setValue(It,vn,Vn,ht){let it=this.elementMap.get(It);if(it){const Et=(it.get(ht)??new Map).set(vn,Vn);it.set(ht,Et),this.elementMap.set(It,it)}else it=(new Map).set(ht,(new Map).set(vn,Vn)),this.elementMap.set(It,it);const Ct=this.getValue(It,vn);void 0!==Ct&&this.updateElement(It,vn,Ct)}trackValue(It,vn){return this.subject.asObservable().pipe((0,T.p)(Vn=>Vn.element===It&&Vn.key===vn))}updateStyles(){this.elementMap.forEach((It,vn)=>{if(1===It.size&&""===It.keys().next().value)return;const Vn=new Set(this.elementKeyMap.get(vn));let ht=this.getActivatedValues(It);ht&&ht.forEach((it,Ct)=>{this.updateElement(vn,Ct,it),Vn.delete(Ct)}),Vn.forEach(it=>{if(ht=this.getActivatedValues(It,it),ht){const Ct=ht.get(it);this.updateElement(vn,it,Ct)}else this.clearElement(vn,it)})})}clearElement(It,vn){const Vn=this.clearMap.get(It);if(Vn){const ht=Vn.get(vn);ht&&(ht(),this.subject.next({element:It,key:vn,value:""}))}}updateElement(It,vn,Vn){const ht=this.updateMap.get(It);if(ht){const it=ht.get(vn);it&&(it(Vn),this.subject.next({element:It,key:vn,value:Vn}))}}releaseElement(It){const vn=this.watcherMap.get(It);vn&&(vn.forEach(ht=>ht.unsubscribe()),this.watcherMap.delete(It));const Vn=this.elementMap.get(It);Vn&&(Vn.forEach((ht,it)=>Vn.delete(it)),this.elementMap.delete(It))}triggerUpdate(It,vn){const Vn=this.elementMap.get(It);if(Vn){const ht=this.getActivatedValues(Vn,vn);ht&&(vn?this.updateElement(It,vn,ht.get(vn)):ht.forEach((it,Ct)=>this.updateElement(It,Ct,it)))}}buildElementKeyMap(It,vn){let Vn=this.elementKeyMap.get(It);Vn||(Vn=new Set,this.elementKeyMap.set(It,Vn)),Vn.add(vn)}watchExtraTriggers(It,vn,Vn){if(Vn&&Vn.length){let ht=this.watcherMap.get(It);if(ht||(ht=new Map,this.watcherMap.set(It,ht)),!ht.get(vn)){const Ct=(0,f.h)(...Vn).subscribe(()=>{const Et=this.getValue(It,vn);this.updateElement(It,vn,Et)});ht.set(vn,Ct)}}}findByQuery(It){return this.breakpoints.findByQuery(It)}getActivatedValues(It,vn){for(let ht=0;ht<this.activatedBreakpoints.length;ht++){const Ct=It.get(this.activatedBreakpoints[ht].alias);if(Ct&&(void 0===vn||Ct.has(vn)&&null!=Ct.get(vn)))return Ct}if(!this._useFallbacks)return;const Vn=It.get("");return void 0===vn||Vn&&Vn.has(vn)?Vn:void 0}observeActivations(){const It=this.breakpoints.items.map(vn=>vn.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(It)).pipe((0,E.M)(this.hook.interceptEvents(this)),(0,T.p)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Bn.\u0275fac=function(It){return new(It||Bn)(r.KVO(be),r.KVO(at),r.KVO(De))},Bn.\u0275prov=r.jDH({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();function Vt(Bn,jn,It,vn){if(void 0!==vn){const Vn=Bn.get(jn)??new Map;Vn.set(It,vn),Bn.set(jn,Vn)}}let de=(()=>{class Bn{constructor(It,vn,Vn,ht){this.elementRef=It,this.styleBuilder=vn,this.styler=Vn,this.marshal=ht,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new A.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(It){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,It,this.marshal.activatedAlias)}ngOnChanges(It){Object.keys(It).forEach(vn=>{if(-1!==this.inputs.indexOf(vn)){const Vn=vn.split(".").slice(1).join(".");this.setValue(It[vn].currentValue,Vn)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(It=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),It)}addStyles(It,vn){const Vn=this.styleBuilder,ht=Vn.shouldCache;let it=this.styleCache.get(It);(!it||!ht)&&(it=Vn.buildStyles(It,vn),ht&&this.styleCache.set(It,it)),this.mru={...it},this.applyStyleToElement(it),Vn.sideEffect(It,it,vn)}clearStyles(){Object.keys(this.mru).forEach(It=>{this.mru[It]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(It,vn=!1){if(It){const[Vn,ht]=this.styler.getFlowDirection(It);if(!ht&&vn){const it=(0,M.uG)(Vn);this.styler.applyStyleToElements(it,[It])}return Vn.trim()}return"row"}hasWrap(It){return this.styler.hasWrap(It)}applyStyleToElement(It,vn,Vn=this.nativeElement){this.styler.applyStyleToElement(Vn,It,vn)}setValue(It,vn){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,It,vn)}updateWithValue(It){this.currentValue!==It&&(this.addStyles(It),this.currentValue=It)}}return Bn.\u0275fac=function(It){return new(It||Bn)(r.rXU(r.aKT),r.rXU(fe),r.rXU(te),r.rXU(zt))},Bn.\u0275dir=r.FsC({type:Bn,features:[r.OA$]}),Bn})();function qe(Bn,jn="1",It="1"){let vn=[jn,It,Bn],Vn=Bn.indexOf("calc");if(Vn>0){vn[2]=mi(Bn.substring(Vn).trim());let ht=Bn.substr(0,Vn).trim().split(" ");2==ht.length&&(vn[0]=ht[0],vn[1]=ht[1])}else if(0==Vn)vn[2]=mi(Bn.trim());else{let ht=Bn.split(" ");vn=3===ht.length?ht:[jn,It,Bn]}return vn}function mi(Bn){return Bn.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}EventTarget;const Bi="x";function _i(Bn,jn){if(void 0===jn)return Bn;const It=vn=>{const Vn=+vn.slice(0,-Bi.length);return Bn.endsWith(Bi)&&!isNaN(Vn)?`${Vn*jn.value}${jn.unit}`:Bn};return Bn.includes(" ")?Bn.split(" ").map(It).join(" "):It(Bn)}},28139:(je,z,c)=>{"use strict";c.d(z,{Cc:()=>dt,D9:()=>O,Om:()=>te,PW:()=>I,eI:()=>ge});var r=c(58527),n=c(2833),v=c(61142),h=c(6364),f=c(4208),A=c(74150);let s=(()=>{class xe extends n.DJ{constructor(Ue,ee,W,Pe,le,oe,Le){super(Ue,null,ee,W),this.ngClassInstance=Le,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new v.YU(Pe,le,Ue,oe)),this.init(),this.setValue("","")}set klass(Ue){this.ngClassInstance.klass=Ue,this.setValue(Ue,"")}updateWithValue(Ue){this.ngClassInstance.ngClass=Ue,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return xe.\u0275fac=function(Ue){return new(Ue||xe)(r.rXU(r.aKT),r.rXU(n.ZH),r.rXU(n.qH),r.rXU(r._q3),r.rXU(r.MKu),r.rXU(r.sFG),r.rXU(v.YU,10))},xe.\u0275dir=r.FsC({type:xe,inputs:{klass:[r.Mj6.None,"class","klass"]},features:[r.Vt3]}),xe})();const u=["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 I=(()=>{class xe extends s{constructor(){super(...arguments),this.inputs=u}}return xe.\u0275fac=(()=>{let Re;return function(ee){return(Re||(Re=r.xGo(xe)))(ee||xe)}})(),xe.\u0275dir=r.FsC({type:xe,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:[r.Vt3]}),xe})(),R=(()=>{class xe extends n.r3{buildStyles(Ue,ee){return{display:"true"===Ue?ee.display||(ee.isServer?"initial":""):"none"}}}return xe.\u0275fac=(()=>{let Re;return function(ee){return(Re||(Re=r.xGo(xe)))(ee||xe)}})(),xe.\u0275prov=r.jDH({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),O=(()=>{class xe extends n.DJ{constructor(Ue,ee,W,Pe,le,oe,Le){super(Ue,ee,W,Pe),this.layoutConfig=le,this.platformId=oe,this.serverModuleLoaded=Le,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const Ue=Array.from(this.nativeElement.children);for(let W=0;W<Ue.length;W++)if(this.marshal.hasValue(Ue[W],"flex")){this.hasFlexChild=!0;break}Y.has(this.nativeElement)?this.display=Y.get(this.nativeElement):(this.display=this.getDisplayStyle(),Y.set(this.nativeElement,this.display)),this.init();const ee=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===ee||""===ee?this.setValue(!0,""):this.triggerUpdate()}ngOnChanges(Ue){Object.keys(Ue).forEach(ee=>{if(-1!==this.inputs.indexOf(ee)){const W=ee.split("."),Pe=W.slice(1).join("."),le=Ue[ee].currentValue;let oe=""===le||0!==le&&(0,h.he)(le);"fxHide"===W[0]&&(oe=!oe),this.setValue(oe,Pe)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(Ue=>{this.marshal.trackValue(this.nativeElement,Ue).pipe((0,f.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(Ue=!0){if(""===Ue)return;const ee=(0,v.Vy)(this.platformId);this.addStyles(Ue?"true":"false",{display:this.display,isServer:ee}),ee&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return xe.\u0275fac=function(Ue){return new(Ue||xe)(r.rXU(r.aKT),r.rXU(R),r.rXU(n.ZH),r.rXU(n.qH),r.rXU(n.EA),r.rXU(r.Agw),r.rXU(n.Ce))},xe.\u0275dir=r.FsC({type:xe,features:[r.Vt3,r.OA$]}),xe})();const Y=new WeakMap,j=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let te=(()=>{class xe extends O{constructor(){super(...arguments),this.inputs=j}}return xe.\u0275fac=(()=>{let Re;return function(ee){return(Re||(Re=r.xGo(xe)))(ee||xe)}})(),xe.\u0275dir=r.FsC({type:xe,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[r.Vt3]}),xe})();class ce{constructor(Re,Ue,ee=!0){this.key=Re,this.value=Ue,this.key=ee?Re.replace(/['"]/g,"").trim():Re.trim(),this.value=ee?Ue.replace(/['"]/g,"").trim():Ue.trim(),this.value=this.value.replace(/;/,"")}}function H(xe){let Re=typeof xe;return"object"===Re?xe.constructor===Array?"array":xe.constructor===Set?"set":"object":Re}function Me(xe){const[Re,...Ue]=xe.split(":");return new ce(Re,Ue.join(":"))}function be(xe,Re){return Re.key&&(xe[Re.key]=Re.value),xe}let Q=(()=>{class xe extends n.DJ{constructor(Ue,ee,W,Pe,le,oe,Le,Oe,ye){super(Ue,null,ee,W),this.sanitizer=Pe,this.ngStyleInstance=Le,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new v.B3(Ue,le,oe)),this.init();const Ie=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(Ie),this.isServer=Oe&&(0,v.Vy)(ye)}updateWithValue(Ue){const ee=this.buildStyleMap(Ue);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...ee},this.isServer&&this.applyStyleToElement(ee),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(Ue){const ee=W=>this.sanitizer.sanitize(r.WPN.STYLE,W)??"";if(Ue)switch(H(Ue)){case"string":return Xe(function Z(xe,Re=";"){return String(xe).trim().split(Re).map(Ue=>Ue.trim()).filter(Ue=>""!==Ue)}(Ue),ee);case"array":return Xe(Ue,ee);default:return function ue(xe,Re){let Ue=[];return"set"===H(xe)?xe.forEach(ee=>Ue.push(ee)):Object.keys(xe).forEach(ee=>{Ue.push(`${ee}:${xe[ee]}`)}),function X(xe,Re){return xe.map(Me).filter(ee=>!!ee).map(ee=>(Re&&(ee.value=Re(ee.value)),ee)).reduce(be,{})}(Ue,Re)}(Ue,ee)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return xe.\u0275fac=function(Ue){return new(Ue||xe)(r.rXU(r.aKT),r.rXU(n.ZH),r.rXU(n.qH),r.rXU(A.up),r.rXU(r.MKu),r.rXU(r.sFG),r.rXU(v.B3,10),r.rXU(n.Ce),r.rXU(r.Agw))},xe.\u0275dir=r.FsC({type:xe,features:[r.Vt3]}),xe})();const ne=["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 ge=(()=>{class xe extends Q{constructor(){super(...arguments),this.inputs=ne}}return xe.\u0275fac=(()=>{let Re;return function(ee){return(Re||(Re=r.xGo(xe)))(ee||xe)}})(),xe.\u0275dir=r.FsC({type:xe,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:[r.Vt3]}),xe})();function Xe(xe,Re){return xe.map(Me).filter(ee=>!!ee).map(ee=>(Re&&(ee.value=Re(ee.value)),ee)).reduce(be,{})}let dt=(()=>{class xe{}return xe.\u0275fac=function(Ue){return new(Ue||xe)},xe.\u0275mod=r.$C({type:xe}),xe.\u0275inj=r.G2t({imports:[n.Ui]}),xe})()},3457:(je,z,c)=>{"use strict";c.d(z,{BO:()=>O,DJ:()=>S,G2:()=>st,R$:()=>de,UI:()=>Ge,sA:()=>qe,w2:()=>it});var r=c(58527),n=c(51394),v=c(2833),h=c(73004),f=c(80583),A=c(4208);let M=(()=>{class Ct extends v.r3{buildStyles(We,{display:bt}){const gt=(0,h.uG)(We);return{...gt,display:"none"===bt?bt:gt.display}}}return Ct.\u0275fac=(()=>{let Et;return function(bt){return(Et||(Et=r.xGo(Ct)))(bt||Ct)}})(),Ct.\u0275prov=r.jDH({token:Ct,factory:Ct.\u0275fac,providedIn:"root"}),Ct})();const T=["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 y=(()=>{class Ct extends v.DJ{constructor(We,bt,gt,wt,rn){super(We,gt,bt,wt),this._config=rn,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(We){const gt=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=l.get(gt)??new Map,l.set(gt,this.styleCache),this.currentValue!==We&&(this.addStyles(We,{display:gt}),this.currentValue=We)}}return Ct.\u0275fac=function(We){return new(We||Ct)(r.rXU(r.aKT),r.rXU(v.ZH),r.rXU(M),r.rXU(v.qH),r.rXU(v.EA))},Ct.\u0275dir=r.FsC({type:Ct,features:[r.Vt3]}),Ct})(),S=(()=>{class Ct extends y{constructor(){super(...arguments),this.inputs=T}}return Ct.\u0275fac=(()=>{let Et;return function(bt){return(Et||(Et=r.xGo(Ct)))(bt||Ct)}})(),Ct.\u0275dir=r.FsC({type:Ct,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:[r.Vt3]}),Ct})();const l=new Map,s={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let u=(()=>{class Ct extends v.r3{constructor(We,bt){super(),this._styler=We,this._config=bt}buildStyles(We,bt){return We.endsWith(ce)?(We=We.slice(0,We.indexOf(ce)),function Z(Ct,Et){const[We,bt]=Ct.split(" "),wt=En=>`-${En}`;let rn="0px",In=wt(bt??We),Mi="0px";return"rtl"===Et?Mi=wt(We):rn=wt(We),{margin:`0px ${rn} ${In} ${Mi}`}}(We=(0,v.cL)(We,this._config.multiplier),bt.directionality)):{}}sideEffect(We,bt,gt){const wt=gt.items;if(We.endsWith(ce)){We=We.slice(0,We.indexOf(ce));const rn=function H(Ct,Et){const[We,bt]=Ct.split(" ");let wt="0px",In="0px";return"rtl"===Et?In=We:wt=We,{padding:`0px ${wt} ${bt??We} ${In}`}}(We=(0,v.cL)(We,this._config.multiplier),gt.directionality);this._styler.applyStyleToElements(rn,gt.items)}else{We=(0,v.cL)(We,this._config.multiplier),We=this.addFallbackUnit(We);const rn=wt.pop(),In=function ue(Ct,Et){const We=X(Et.directionality,Et.layout),bt={...s};return bt[We]=Ct,bt}(We,gt);this._styler.applyStyleToElements(In,wt),this._styler.applyStyleToElements(s,[rn])}}addFallbackUnit(We){return isNaN(+We)?We:`${We}${this._config.defaultUnit}`}}return Ct.\u0275fac=function(We){return new(We||Ct)(r.KVO(v.ZH),r.KVO(v.EA))},Ct.\u0275prov=r.jDH({token:Ct,factory:Ct.\u0275fac,providedIn:"root"}),Ct})();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 R=(()=>{class Ct extends v.DJ{constructor(We,bt,gt,wt,rn,In){super(We,rn,wt,In),this.zone=bt,this.directionality=gt,this.styleUtils=wt,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new f.B7;const Mi=[this.directionality.change,this.observerSubject.asObservable()];this.init(Mi),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,A.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const We=this.nativeElement.children,bt=[];for(let gt=We.length;gt--;)bt[gt]=We[gt];return bt}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(We){const gt=We.value.split(" ");this.layout=gt[0],h.Uo.find(wt=>wt===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(We){const bt=this.childrenNodes.filter(gt=>1===gt.nodeType&&this.willDisplay(gt)).sort((gt,wt)=>{const rn=+this.styler.lookupStyle(gt,"order"),In=+this.styler.lookupStyle(wt,"order");return isNaN(rn)||isNaN(In)||rn===In?0:rn>In?1:-1});if(bt.length>0){const gt=this.directionality.value,wt=this.layout;"row"===wt&&"rtl"===gt?this.styleCache=Y:"row"===wt&&"rtl"!==gt?this.styleCache=fe:"column"===wt&&"rtl"===gt?this.styleCache=j:"column"===wt&&"rtl"!==gt&&(this.styleCache=te),this.addStyles(We,{directionality:gt,items:bt,layout:wt})}}clearStyles(){const We=Object.keys(this.mru).length>0,bt=We?"padding":X(this.directionality.value,this.layout);We&&super.clearStyles(),this.styleUtils.applyStyleToElements({[bt]:""},this.childrenNodes)}willDisplay(We){const bt=this.marshal.getValue(We,"show-hide");return!0===bt||void 0===bt&&"none"!==this.styleUtils.lookupStyle(We,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(We=>{We.some(gt=>gt.addedNodes&&gt.addedNodes.length>0||gt.removedNodes&&gt.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return Ct.\u0275fac=function(We){return new(We||Ct)(r.rXU(r.aKT),r.rXU(r.SKi),r.rXU(n.dS),r.rXU(v.ZH),r.rXU(u),r.rXU(v.qH))},Ct.\u0275dir=r.FsC({type:Ct,features:[r.Vt3]}),Ct})(),O=(()=>{class Ct extends R{constructor(){super(...arguments),this.inputs=m}}return Ct.\u0275fac=(()=>{let Et;return function(bt){return(Et||(Et=r.xGo(Ct)))(bt||Ct)}})(),Ct.\u0275dir=r.FsC({type:Ct,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:[r.Vt3]}),Ct})();const Y=new Map,j=new Map,fe=new Map,te=new Map,ce=" grid";function X(Ct,Et){switch(Et){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===Ct?"margin-left":"margin-right";case"row-reverse":return"rtl"===Ct?"margin-right":"margin-left"}}let Me=(()=>{class Ct extends v.r3{constructor(We){super(),this.layoutConfig=We}buildStyles(We,bt){let[gt,wt,...rn]=We.split(" "),In=rn.join(" ");const Mi=bt.direction.indexOf("column")>-1?"column":"row",En=(0,h.Vc)(Mi)?"max-width":"max-height",Tn=(0,h.Vc)(Mi)?"min-width":"min-height",Cn=String(In).indexOf("calc")>-1,Wn=Cn||"auto"===In,Oi=String(In).indexOf("%")>-1&&!Cn,Qn=String(In).indexOf("px")>-1||String(In).indexOf("rem")>-1||String(In).indexOf("em")>-1||String(In).indexOf("vw")>-1||String(In).indexOf("vh")>-1;let Fi=Cn||Qn;gt="0"==gt?0:gt,wt="0"==wt?0:wt;const Ai=!gt&&!wt;let ln={};const Mn={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(In||""){case"":In="row"===Mi?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":gt=0,In="auto";break;case"grow":In="100%";break;case"noshrink":wt=0,In="auto";break;case"auto":break;case"none":gt=0,wt=0,In="auto";break;default:!Fi&&!Oi&&!isNaN(In)&&(In+="%"),"0%"===In&&(Fi=!0),"0px"===In&&(In="0%"),ln=(0,h.C5)(Mn,Cn?{"flex-grow":gt,"flex-shrink":wt,"flex-basis":Fi?In:"100%"}:{flex:`${gt} ${wt} ${Fi?In:"100%"}`})}return ln.flex||ln["flex-grow"]||(ln=(0,h.C5)(Mn,Cn?{"flex-grow":gt,"flex-shrink":wt,"flex-basis":In}:{flex:`${gt} ${wt} ${In}`})),"0%"!==In&&"0px"!==In&&"0.000000001px"!==In&&"auto"!==In&&(ln[Tn]=Ai||Fi&&gt?In:null,ln[En]=Ai||!Wn&&wt?In:null),ln[Tn]||ln[En]?bt.hasWrap&&(ln[Cn?"flex-basis":"flex"]=ln[En]?Cn?ln[En]:`${gt} ${wt} ${ln[En]}`:Cn?ln[Tn]:`${gt} ${wt} ${ln[Tn]}`):ln=(0,h.C5)(Mn,Cn?{"flex-grow":gt,"flex-shrink":wt,"flex-basis":In}:{flex:`${gt} ${wt} ${In}`}),(0,h.C5)(ln,{"box-sizing":"border-box"})}}return Ct.\u0275fac=function(We){return new(We||Ct)(r.KVO(v.EA))},Ct.\u0275prov=r.jDH({token:Ct,factory:Ct.\u0275fac,providedIn:"root"}),Ct})();const be=["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 ne=(()=>{class Ct extends v.DJ{constructor(We,bt,gt,wt,rn){super(We,wt,bt,rn),this.layoutConfig=gt,this.marshal=rn,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(We){this.flexShrink=We||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(We){this.flexGrow=We||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,A.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,A.Q)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(We){const gt=We.value.split(" ");this.direction=gt[0],this.wrap=void 0!==gt[1]&&"wrap"===gt[1],this.triggerUpdate()}updateWithValue(We){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 gt=this.direction,wt=gt.startsWith("row"),rn=this.wrap;wt&&rn?this.styleCache=ot:wt&&!rn?this.styleCache=ge:!wt&&rn?this.styleCache=dt:!wt&&!rn&&(this.styleCache=Xe);const In=String(We).replace(";",""),Mi=(0,v.hN)(In,this.flexGrow,this.flexShrink);this.addStyles(Mi.join(" "),{direction:gt,hasWrap:rn})}triggerReflow(){const We=this.activatedValue;if(void 0!==We){const bt=(0,v.hN)(We+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,bt.join(" "))}}}return Ct.\u0275fac=function(We){return new(We||Ct)(r.rXU(r.aKT),r.rXU(v.ZH),r.rXU(v.EA),r.rXU(Me),r.rXU(v.qH))},Ct.\u0275dir=r.FsC({type:Ct,inputs:{shrink:[r.Mj6.None,"fxShrink","shrink"],grow:[r.Mj6.None,"fxGrow","grow"]},features:[r.Vt3]}),Ct})(),Ge=(()=>{class Ct extends ne{constructor(){super(...arguments),this.inputs=be}}return Ct.\u0275fac=(()=>{let Et;return function(bt){return(Et||(Et=r.xGo(Ct)))(bt||Ct)}})(),Ct.\u0275dir=r.FsC({type:Ct,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:[r.Vt3]}),Ct})();const ge=new Map,Xe=new Map,ot=new Map,dt=new Map;let De=(()=>{class Ct extends v.r3{buildStyles(We){const bt={};switch(We=We||"stretch"){case"start":bt["align-self"]="flex-start";break;case"end":bt["align-self"]="flex-end";break;default:bt["align-self"]=We}return bt}}return Ct.\u0275fac=(()=>{let Et;return function(bt){return(Et||(Et=r.xGo(Ct)))(bt||Ct)}})(),Ct.\u0275prov=r.jDH({token:Ct,factory:Ct.\u0275fac,providedIn:"root"}),Ct})();const pe=["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 zt=(()=>{class Ct extends v.DJ{constructor(We,bt,gt,wt){super(We,gt,bt,wt),this.DIRECTIVE_KEY="flex-align",this.styleCache=Vt,this.init()}}return Ct.\u0275fac=function(We){return new(We||Ct)(r.rXU(r.aKT),r.rXU(v.ZH),r.rXU(De),r.rXU(v.qH))},Ct.\u0275dir=r.FsC({type:Ct,features:[r.Vt3]}),Ct})();const Vt=new Map;let de=(()=>{class Ct extends zt{constructor(){super(...arguments),this.inputs=pe}}return Ct.\u0275fac=(()=>{let Et;return function(bt){return(Et||(Et=r.xGo(Ct)))(bt||Ct)}})(),Ct.\u0275dir=r.FsC({type:Ct,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:[r.Vt3]}),Ct})();const J={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let $e=(()=>{class Ct extends v.r3{buildStyles(We){return J}}return Ct.\u0275fac=(()=>{let Et;return function(bt){return(Et||(Et=r.xGo(Ct)))(bt||Ct)}})(),Ct.\u0275prov=r.jDH({token:Ct,factory:Ct.\u0275fac,providedIn:"root"}),Ct})(),st=(()=>{class Ct extends v.DJ{constructor(We,bt,gt,wt){super(We,gt,bt,wt),this.styleCache=Gt,this.addStyles("")}}return Ct.\u0275fac=function(We){return new(We||Ct)(r.rXU(r.aKT),r.rXU(v.ZH),r.rXU($e),r.rXU(v.qH))},Ct.\u0275dir=r.FsC({type:Ct,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[r.Vt3]}),Ct})();const Gt=new Map;let Zt=(()=>{class Ct extends v.r3{buildStyles(We,bt){const gt={},[wt,rn]=We.split(" ");switch(wt){case"center":gt["justify-content"]="center";break;case"space-around":gt["justify-content"]="space-around";break;case"space-between":gt["justify-content"]="space-between";break;case"space-evenly":gt["justify-content"]="space-evenly";break;case"end":case"flex-end":gt["justify-content"]="flex-end";break;default:gt["justify-content"]="flex-start"}switch(rn){case"start":case"flex-start":gt["align-items"]=gt["align-content"]="flex-start";break;case"center":gt["align-items"]=gt["align-content"]="center";break;case"end":case"flex-end":gt["align-items"]=gt["align-content"]="flex-end";break;case"space-between":gt["align-content"]="space-between",gt["align-items"]="stretch";break;case"space-around":gt["align-content"]="space-around",gt["align-items"]="stretch";break;case"baseline":gt["align-content"]="stretch",gt["align-items"]="baseline";break;default:gt["align-items"]=gt["align-content"]="stretch"}return(0,h.C5)(gt,{display:bt.inline?"inline-flex":"flex","flex-direction":bt.layout,"box-sizing":"border-box","max-width":"stretch"===rn?(0,h.Vc)(bt.layout)?null:"100%":null,"max-height":"stretch"===rn&&(0,h.Vc)(bt.layout)?"100%":null})}}return Ct.\u0275fac=(()=>{let Et;return function(bt){return(Et||(Et=r.xGo(Ct)))(bt||Ct)}})(),Ct.\u0275prov=r.jDH({token:Ct,factory:Ct.\u0275fac,providedIn:"root"}),Ct})();const kn=["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 ni=(()=>{class Ct extends v.DJ{constructor(We,bt,gt,wt){super(We,gt,bt,wt),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,A.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(We){const bt=this.layout||"row",gt=this.inline;"row"===bt&&gt?this.styleCache=jn:"row"!==bt||gt?"row-reverse"===bt&&gt?this.styleCache=vn:"row-reverse"!==bt||gt?"column"===bt&&gt?this.styleCache=It:"column"!==bt||gt?"column-reverse"===bt&&gt?this.styleCache=Vn:"column-reverse"===bt&&!gt&&(this.styleCache=Bn):this.styleCache=Bi:this.styleCache=_i:this.styleCache=mi,this.addStyles(We,{layout:bt,inline:gt})}onLayoutChange(We){const bt=We.value.split(" ");this.layout=bt[0],this.inline=We.value.includes("inline"),h.Uo.find(gt=>gt===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Ct.\u0275fac=function(We){return new(We||Ct)(r.rXU(r.aKT),r.rXU(v.ZH),r.rXU(Zt),r.rXU(v.qH))},Ct.\u0275dir=r.FsC({type:Ct,features:[r.Vt3]}),Ct})(),qe=(()=>{class Ct extends ni{constructor(){super(...arguments),this.inputs=kn}}return Ct.\u0275fac=(()=>{let Et;return function(bt){return(Et||(Et=r.xGo(Ct)))(bt||Ct)}})(),Ct.\u0275dir=r.FsC({type:Ct,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:[r.Vt3]}),Ct})();const mi=new Map,Bi=new Map,_i=new Map,Bn=new Map,jn=new Map,It=new Map,vn=new Map,Vn=new Map;let it=(()=>{class Ct{}return Ct.\u0275fac=function(We){return new(We||Ct)},Ct.\u0275mod=r.$C({type:Ct}),Ct.\u0275inj=r.G2t({imports:[v.Ui,n.jI]}),Ct})()},51006:(je,z,c)=>{"use strict";c.d(z,{YF:()=>Cs});var r=c(58527),n=c(2833),v=c(28139),h=c(3457);c(6364);let uo=(()=>{class Pn{}return Pn.\u0275fac=function(li){return new(li||Pn)},Pn.\u0275mod=r.$C({type:Pn}),Pn.\u0275inj=r.G2t({imports:[n.Ui]}),Pn})();var Nr=c(61142);let Cs=(()=>{class Pn{constructor(li,er){(0,Nr.Vy)(er)&&!li&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(li,er=[]){return{ngModule:Pn,providers:li.serverLoaded?[{provide:n.EA,useValue:{...n.PV,...li}},{provide:n.SL,useValue:er,multi:!0},{provide:n.Ce,useValue:!0}]:[{provide:n.EA,useValue:{...n.PV,...li}},{provide:n.SL,useValue:er,multi:!0}]}}}return Pn.\u0275fac=function(li){return new(li||Pn)(r.KVO(n.Ce),r.KVO(r.Agw))},Pn.\u0275mod=r.$C({type:Pn}),Pn.\u0275inj=r.G2t({imports:[h.w2,v.Cc,uo,h.w2,v.Cc,uo]}),Pn})()},56106:(je,z,c)=>{"use strict";c.d(z,{BC:()=>pe,YN:()=>$i,cV:()=>br,cz:()=>R,j4:()=>Bs,k0:()=>j,kq:()=>T,me:()=>u,vO:()=>at,vS:()=>Gi,xq:()=>ei});var r=c(58527),n=c(61142),v=c(19392),h=c(93181),f=c(83915);let A=(()=>{var Ft;class mt{constructor(kt,bn){this._renderer=kt,this._elementRef=bn,this.onChange=lr=>{},this.onTouched=()=>{}}setProperty(kt,bn){this._renderer.setProperty(this._elementRef.nativeElement,kt,bn)}registerOnTouched(kt){this.onTouched=kt}registerOnChange(kt){this.onChange=kt}setDisabledState(kt){this.setProperty("disabled",kt)}}return(Ft=mt).\u0275fac=function(kt){return new(kt||Ft)(r.rXU(r.sFG),r.rXU(r.aKT))},Ft.\u0275dir=r.FsC({type:Ft}),mt})(),M=(()=>{var Ft;class mt extends A{}return(Ft=mt).\u0275fac=(()=>{let nn;return function(bn){return(nn||(nn=r.xGo(Ft)))(bn||Ft)}})(),Ft.\u0275dir=r.FsC({type:Ft,features:[r.Vt3]}),mt})();const T=new r.nKC(""),S={provide:T,useExisting:(0,r.Rfq)(()=>u),multi:!0},s=new r.nKC("");let u=(()=>{var Ft;class mt extends A{constructor(kt,bn,lr){super(kt,bn),this._compositionMode=lr,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function l(){const Ft=(0,n.QT)()?(0,n.QT)().getUserAgent():"";return/android (\d+)/.test(Ft.toLowerCase())}())}writeValue(kt){this.setProperty("value",kt??"")}_handleInput(kt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(kt)}_compositionStart(){this._composing=!0}_compositionEnd(kt){this._composing=!1,this._compositionMode&&this.onChange(kt)}}return(Ft=mt).\u0275fac=function(kt){return new(kt||Ft)(r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(s,8))},Ft.\u0275dir=r.FsC({type:Ft,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(kt,bn){1&kt&&r.bIt("input",function(to){return bn._handleInput(to.target.value)})("blur",function(){return bn.onTouched()})("compositionstart",function(){return bn._compositionStart()})("compositionend",function(to){return bn._compositionEnd(to.target.value)})},features:[r.Jv_([S]),r.Vt3]}),mt})();function m(Ft){return null==Ft||("string"==typeof Ft||Array.isArray(Ft))&&0===Ft.length}function I(Ft){return null!=Ft&&"number"==typeof Ft.length}const R=new r.nKC(""),O=new r.nKC(""),Y=/^(?=.{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 j{static min(mt){return function fe(Ft){return mt=>{if(m(mt.value)||m(Ft))return null;const nn=parseFloat(mt.value);return!isNaN(nn)&&nn<Ft?{min:{min:Ft,actual:mt.value}}:null}}(mt)}static max(mt){return function te(Ft){return mt=>{if(m(mt.value)||m(Ft))return null;const nn=parseFloat(mt.value);return!isNaN(nn)&&nn>Ft?{max:{max:Ft,actual:mt.value}}:null}}(mt)}static required(mt){return ce(mt)}static requiredTrue(mt){return H(mt)}static email(mt){return function Z(Ft){return m(Ft.value)||Y.test(Ft.value)?null:{email:!0}}(mt)}static minLength(mt){return function X(Ft){return mt=>m(mt.value)||!I(mt.value)?null:mt.value.length<Ft?{minlength:{requiredLength:Ft,actualLength:mt.value.length}}:null}(mt)}static maxLength(mt){return function ue(Ft){return mt=>I(mt.value)&&mt.value.length>Ft?{maxlength:{requiredLength:Ft,actualLength:mt.value.length}}:null}(mt)}static pattern(mt){return function Me(Ft){if(!Ft)return be;let mt,nn;return"string"==typeof Ft?(nn="","^"!==Ft.charAt(0)&&(nn+="^"),nn+=Ft,"$"!==Ft.charAt(Ft.length-1)&&(nn+="$"),mt=new RegExp(nn)):(nn=Ft.toString(),mt=Ft),kt=>{if(m(kt.value))return null;const bn=kt.value;return mt.test(bn)?null:{pattern:{requiredPattern:nn,actualValue:bn}}}}(mt)}static nullValidator(mt){return null}static compose(mt){return dt(mt)}static composeAsync(mt){return Re(mt)}}function ce(Ft){return m(Ft.value)?{required:!0}:null}function H(Ft){return!0===Ft.value?null:{required:!0}}function be(Ft){return null}function Q(Ft){return null!=Ft}function ne(Ft){return(0,r.jNT)(Ft)?(0,v.H)(Ft):Ft}function Ge(Ft){let mt={};return Ft.forEach(nn=>{mt=null!=nn?{...mt,...nn}:mt}),0===Object.keys(mt).length?null:mt}function ge(Ft,mt){return mt.map(nn=>nn(Ft))}function ot(Ft){return Ft.map(mt=>function Xe(Ft){return!Ft.validate}(mt)?mt:nn=>mt.validate(nn))}function dt(Ft){if(!Ft)return null;const mt=Ft.filter(Q);return 0==mt.length?null:function(nn){return Ge(ge(nn,mt))}}function xe(Ft){return null!=Ft?dt(ot(Ft)):null}function Re(Ft){if(!Ft)return null;const mt=Ft.filter(Q);return 0==mt.length?null:function(nn){const kt=ge(nn,mt).map(ne);return(0,h.p)(kt).pipe((0,f.T)(Ge))}}function Ue(Ft){return null!=Ft?Re(ot(Ft)):null}function ee(Ft,mt){return null===Ft?[mt]:Array.isArray(Ft)?[...Ft,mt]:[Ft,mt]}function W(Ft){return Ft._rawValidators}function Pe(Ft){return Ft._rawAsyncValidators}function le(Ft){return Ft?Array.isArray(Ft)?Ft:[Ft]:[]}function oe(Ft,mt){return Array.isArray(Ft)?Ft.includes(mt):Ft===mt}function Le(Ft,mt){const nn=le(mt);return le(Ft).forEach(bn=>{oe(nn,bn)||nn.push(bn)}),nn}function Oe(Ft,mt){return le(mt).filter(nn=>!oe(Ft,nn))}class ye{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(mt){this._rawValidators=mt||[],this._composedValidatorFn=xe(this._rawValidators)}_setAsyncValidators(mt){this._rawAsyncValidators=mt||[],this._composedAsyncValidatorFn=Ue(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(mt){this._onDestroyCallbacks.push(mt)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(mt=>mt()),this._onDestroyCallbacks=[]}reset(mt=void 0){this.control&&this.control.reset(mt)}hasError(mt,nn){return!!this.control&&this.control.hasError(mt,nn)}getError(mt,nn){return this.control?this.control.getError(mt,nn):null}}class Ie extends ye{get formDirective(){return null}get path(){return null}}class at extends ye{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class K{constructor(mt){this._cd=mt}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 pe=(()=>{var Ft;class mt extends K{constructor(kt){super(kt)}}return(Ft=mt).\u0275fac=function(kt){return new(kt||Ft)(r.rXU(at,2))},Ft.\u0275dir=r.FsC({type:Ft,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(kt,bn){2&kt&&r.AVh("ng-untouched",bn.isUntouched)("ng-touched",bn.isTouched)("ng-pristine",bn.isPristine)("ng-dirty",bn.isDirty)("ng-valid",bn.isValid)("ng-invalid",bn.isInvalid)("ng-pending",bn.isPending)},features:[r.Vt3]}),mt})();const It="VALID",vn="INVALID",Vn="PENDING",ht="DISABLED";function it(Ft){return(bt(Ft)?Ft.validators:Ft)||null}function Et(Ft,mt){return(bt(mt)?mt.asyncValidators:Ft)||null}function bt(Ft){return null!=Ft&&!Array.isArray(Ft)&&"object"==typeof Ft}class rn{constructor(mt,nn){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(mt),this._assignAsyncValidators(nn)}get validator(){return this._composedValidatorFn}set validator(mt){this._rawValidators=this._composedValidatorFn=mt}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(mt){this._rawAsyncValidators=this._composedAsyncValidatorFn=mt}get parent(){return this._parent}get valid(){return this.status===It}get invalid(){return this.status===vn}get pending(){return this.status==Vn}get disabled(){return this.status===ht}get enabled(){return this.status!==ht}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(mt){this._assignValidators(mt)}setAsyncValidators(mt){this._assignAsyncValidators(mt)}addValidators(mt){this.setValidators(Le(mt,this._rawValidators))}addAsyncValidators(mt){this.setAsyncValidators(Le(mt,this._rawAsyncValidators))}removeValidators(mt){this.setValidators(Oe(mt,this._rawValidators))}removeAsyncValidators(mt){this.setAsyncValidators(Oe(mt,this._rawAsyncValidators))}hasValidator(mt){return oe(this._rawValidators,mt)}hasAsyncValidator(mt){return oe(this._rawAsyncValidators,mt)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(mt={}){this.touched=!0,this._parent&&!mt.onlySelf&&this._parent.markAsTouched(mt)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(mt=>mt.markAllAsTouched())}markAsUntouched(mt={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(nn=>{nn.markAsUntouched({onlySelf:!0})}),this._parent&&!mt.onlySelf&&this._parent._updateTouched(mt)}markAsDirty(mt={}){this.pristine=!1,this._parent&&!mt.onlySelf&&this._parent.markAsDirty(mt)}markAsPristine(mt={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(nn=>{nn.markAsPristine({onlySelf:!0})}),this._parent&&!mt.onlySelf&&this._parent._updatePristine(mt)}markAsPending(mt={}){this.status=Vn,!1!==mt.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!mt.onlySelf&&this._parent.markAsPending(mt)}disable(mt={}){const nn=this._parentMarkedDirty(mt.onlySelf);this.status=ht,this.errors=null,this._forEachChild(kt=>{kt.disable({...mt,onlySelf:!0})}),this._updateValue(),!1!==mt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...mt,skipPristineCheck:nn}),this._onDisabledChange.forEach(kt=>kt(!0))}enable(mt={}){const nn=this._parentMarkedDirty(mt.onlySelf);this.status=It,this._forEachChild(kt=>{kt.enable({...mt,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:mt.emitEvent}),this._updateAncestors({...mt,skipPristineCheck:nn}),this._onDisabledChange.forEach(kt=>kt(!1))}_updateAncestors(mt){this._parent&&!mt.onlySelf&&(this._parent.updateValueAndValidity(mt),mt.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(mt){this._parent=mt}getRawValue(){return this.value}updateValueAndValidity(mt={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===It||this.status===Vn)&&this._runAsyncValidator(mt.emitEvent)),!1!==mt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!mt.onlySelf&&this._parent.updateValueAndValidity(mt)}_updateTreeValidity(mt={emitEvent:!0}){this._forEachChild(nn=>nn._updateTreeValidity(mt)),this.updateValueAndValidity({onlySelf:!0,emitEvent:mt.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ht:It}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(mt){if(this.asyncValidator){this.status=Vn,this._hasOwnPendingAsyncValidator=!0;const nn=ne(this.asyncValidator(this));this._asyncValidationSubscription=nn.subscribe(kt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(kt,{emitEvent:mt})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(mt,nn={}){this.errors=mt,this._updateControlsErrors(!1!==nn.emitEvent)}get(mt){let nn=mt;return null==nn||(Array.isArray(nn)||(nn=nn.split(".")),0===nn.length)?null:nn.reduce((kt,bn)=>kt&&kt._find(bn),this)}getError(mt,nn){const kt=nn?this.get(nn):this;return kt&&kt.errors?kt.errors[mt]:null}hasError(mt,nn){return!!this.getError(mt,nn)}get root(){let mt=this;for(;mt._parent;)mt=mt._parent;return mt}_updateControlsErrors(mt){this.status=this._calculateStatus(),mt&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(mt)}_initObservables(){this.valueChanges=new r.bkB,this.statusChanges=new r.bkB}_calculateStatus(){return this._allControlsDisabled()?ht:this.errors?vn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vn)?Vn:this._anyControlsHaveStatus(vn)?vn:It}_anyControlsHaveStatus(mt){return this._anyControls(nn=>nn.status===mt)}_anyControlsDirty(){return this._anyControls(mt=>mt.dirty)}_anyControlsTouched(){return this._anyControls(mt=>mt.touched)}_updatePristine(mt={}){this.pristine=!this._anyControlsDirty(),this._parent&&!mt.onlySelf&&this._parent._updatePristine(mt)}_updateTouched(mt={}){this.touched=this._anyControlsTouched(),this._parent&&!mt.onlySelf&&this._parent._updateTouched(mt)}_registerOnCollectionChange(mt){this._onCollectionChange=mt}_setUpdateStrategy(mt){bt(mt)&&null!=mt.updateOn&&(this._updateOn=mt.updateOn)}_parentMarkedDirty(mt){return!mt&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(mt){return null}_assignValidators(mt){this._rawValidators=Array.isArray(mt)?mt.slice():mt,this._composedValidatorFn=function Ct(Ft){return Array.isArray(Ft)?xe(Ft):Ft||null}(this._rawValidators)}_assignAsyncValidators(mt){this._rawAsyncValidators=Array.isArray(mt)?mt.slice():mt,this._composedAsyncValidatorFn=function We(Ft){return Array.isArray(Ft)?Ue(Ft):Ft||null}(this._rawAsyncValidators)}}class In extends rn{constructor(mt,nn,kt){super(it(nn),Et(kt,nn)),this.controls=mt,this._initObservables(),this._setUpdateStrategy(nn),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(mt,nn){return this.controls[mt]?this.controls[mt]:(this.controls[mt]=nn,nn.setParent(this),nn._registerOnCollectionChange(this._onCollectionChange),nn)}addControl(mt,nn,kt={}){this.registerControl(mt,nn),this.updateValueAndValidity({emitEvent:kt.emitEvent}),this._onCollectionChange()}removeControl(mt,nn={}){this.controls[mt]&&this.controls[mt]._registerOnCollectionChange(()=>{}),delete this.controls[mt],this.updateValueAndValidity({emitEvent:nn.emitEvent}),this._onCollectionChange()}setControl(mt,nn,kt={}){this.controls[mt]&&this.controls[mt]._registerOnCollectionChange(()=>{}),delete this.controls[mt],nn&&this.registerControl(mt,nn),this.updateValueAndValidity({emitEvent:kt.emitEvent}),this._onCollectionChange()}contains(mt){return this.controls.hasOwnProperty(mt)&&this.controls[mt].enabled}setValue(mt,nn={}){(function wt(Ft,mt,nn){Ft._forEachChild((kt,bn)=>{if(void 0===nn[bn])throw new r.wOt(1002,"")})})(this,0,mt),Object.keys(mt).forEach(kt=>{(function gt(Ft,mt,nn){const kt=Ft.controls;if(!(mt?Object.keys(kt):kt).length)throw new r.wOt(1e3,"");if(!kt[nn])throw new r.wOt(1001,"")})(this,!0,kt),this.controls[kt].setValue(mt[kt],{onlySelf:!0,emitEvent:nn.emitEvent})}),this.updateValueAndValidity(nn)}patchValue(mt,nn={}){null!=mt&&(Object.keys(mt).forEach(kt=>{const bn=this.controls[kt];bn&&bn.patchValue(mt[kt],{onlySelf:!0,emitEvent:nn.emitEvent})}),this.updateValueAndValidity(nn))}reset(mt={},nn={}){this._forEachChild((kt,bn)=>{kt.reset(mt?mt[bn]:null,{onlySelf:!0,emitEvent:nn.emitEvent})}),this._updatePristine(nn),this._updateTouched(nn),this.updateValueAndValidity(nn)}getRawValue(){return this._reduceChildren({},(mt,nn,kt)=>(mt[kt]=nn.getRawValue(),mt))}_syncPendingControls(){let mt=this._reduceChildren(!1,(nn,kt)=>!!kt._syncPendingControls()||nn);return mt&&this.updateValueAndValidity({onlySelf:!0}),mt}_forEachChild(mt){Object.keys(this.controls).forEach(nn=>{const kt=this.controls[nn];kt&&mt(kt,nn)})}_setUpControls(){this._forEachChild(mt=>{mt.setParent(this),mt._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(mt){for(const[nn,kt]of Object.entries(this.controls))if(this.contains(nn)&&mt(kt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(nn,kt,bn)=>((kt.enabled||this.disabled)&&(nn[bn]=kt.value),nn))}_reduceChildren(mt,nn){let kt=mt;return this._forEachChild((bn,lr)=>{kt=nn(kt,bn,lr)}),kt}_allControlsDisabled(){for(const mt of Object.keys(this.controls))if(this.controls[mt].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(mt){return this.controls.hasOwnProperty(mt)?this.controls[mt]:null}}const Oi=new r.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>Qn}),Qn="always";function Ai(Ft,mt,nn=Qn){Hi(Ft,mt),mt.valueAccessor.writeValue(Ft.value),(Ft.disabled||"always"===nn)&&mt.valueAccessor.setDisabledState?.(Ft.disabled),function Wr(Ft,mt){mt.valueAccessor.registerOnChange(nn=>{Ft._pendingValue=nn,Ft._pendingChange=!0,Ft._pendingDirty=!0,"change"===Ft.updateOn&&Nr(Ft,mt)})}(Ft,mt),function ss(Ft,mt){const nn=(kt,bn)=>{mt.valueAccessor.writeValue(kt),bn&&mt.viewToModelUpdate(kt)};Ft.registerOnChange(nn),mt._registerOnDestroy(()=>{Ft._unregisterOnChange(nn)})}(Ft,mt),function uo(Ft,mt){mt.valueAccessor.registerOnTouched(()=>{Ft._pendingTouched=!0,"blur"===Ft.updateOn&&Ft._pendingChange&&Nr(Ft,mt),"submit"!==Ft.updateOn&&Ft.markAsTouched()})}(Ft,mt),function bi(Ft,mt){if(mt.valueAccessor.setDisabledState){const nn=kt=>{mt.valueAccessor.setDisabledState(kt)};Ft.registerOnDisabledChange(nn),mt._registerOnDestroy(()=>{Ft._unregisterOnDisabledChange(nn)})}}(Ft,mt)}function ln(Ft,mt,nn=!0){const kt=()=>{};mt.valueAccessor&&(mt.valueAccessor.registerOnChange(kt),mt.valueAccessor.registerOnTouched(kt)),Mr(Ft,mt),Ft&&(mt._invokeOnDestroyCallbacks(),Ft._registerOnCollectionChange(()=>{}))}function Mn(Ft,mt){Ft.forEach(nn=>{nn.registerOnValidatorChange&&nn.registerOnValidatorChange(mt)})}function Hi(Ft,mt){const nn=W(Ft);null!==mt.validator?Ft.setValidators(ee(nn,mt.validator)):"function"==typeof nn&&Ft.setValidators([nn]);const kt=Pe(Ft);null!==mt.asyncValidator?Ft.setAsyncValidators(ee(kt,mt.asyncValidator)):"function"==typeof kt&&Ft.setAsyncValidators([kt]);const bn=()=>Ft.updateValueAndValidity();Mn(mt._rawValidators,bn),Mn(mt._rawAsyncValidators,bn)}function Mr(Ft,mt){let nn=!1;if(null!==Ft){if(null!==mt.validator){const bn=W(Ft);if(Array.isArray(bn)&&bn.length>0){const lr=bn.filter(to=>to!==mt.validator);lr.length!==bn.length&&(nn=!0,Ft.setValidators(lr))}}if(null!==mt.asyncValidator){const bn=Pe(Ft);if(Array.isArray(bn)&&bn.length>0){const lr=bn.filter(to=>to!==mt.asyncValidator);lr.length!==bn.length&&(nn=!0,Ft.setAsyncValidators(lr))}}}const kt=()=>{};return Mn(mt._rawValidators,kt),Mn(mt._rawAsyncValidators,kt),nn}function Nr(Ft,mt){Ft._pendingDirty&&Ft.markAsDirty(),Ft.setValue(Ft._pendingValue,{emitModelToViewChange:!1}),mt.viewToModelUpdate(Ft._pendingValue),Ft._pendingChange=!1}function Cs(Ft,mt){Hi(Ft,mt)}function fi(Ft,mt){Ft._syncPendingControls(),mt.forEach(nn=>{const kt=nn.control;"submit"===kt.updateOn&&kt._pendingChange&&(nn.viewToModelUpdate(kt._pendingValue),kt._pendingChange=!1)})}const vr={provide:Ie,useExisting:(0,r.Rfq)(()=>br)},Dr=Promise.resolve();let br=(()=>{var Ft;class mt extends Ie{constructor(kt,bn,lr){super(),this.callSetDisabledState=lr,this.submitted=!1,this._directives=new Set,this.ngSubmit=new r.bkB,this.form=new In({},xe(kt),Ue(bn))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(kt){Dr.then(()=>{const bn=this._findContainer(kt.path);kt.control=bn.registerControl(kt.name,kt.control),Ai(kt.control,kt,this.callSetDisabledState),kt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(kt)})}getControl(kt){return this.form.get(kt.path)}removeControl(kt){Dr.then(()=>{const bn=this._findContainer(kt.path);bn&&bn.removeControl(kt.name),this._directives.delete(kt)})}addFormGroup(kt){Dr.then(()=>{const bn=this._findContainer(kt.path),lr=new In({});Cs(lr,kt),bn.registerControl(kt.name,lr),lr.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(kt){Dr.then(()=>{const bn=this._findContainer(kt.path);bn&&bn.removeControl(kt.name)})}getFormGroup(kt){return this.form.get(kt.path)}updateModel(kt,bn){Dr.then(()=>{this.form.get(kt.path).setValue(bn)})}setValue(kt){this.control.setValue(kt)}onSubmit(kt){return this.submitted=!0,fi(this.form,this._directives),this.ngSubmit.emit(kt),"dialog"===kt?.target?.method}onReset(){this.resetForm()}resetForm(kt=void 0){this.form.reset(kt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(kt){return kt.pop(),kt.length?this.form.get(kt):this.form}}return(Ft=mt).\u0275fac=function(kt){return new(kt||Ft)(r.rXU(R,10),r.rXU(O,10),r.rXU(Oi,8))},Ft.\u0275dir=r.FsC({type:Ft,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(kt,bn){1&kt&&r.bIt("submit",function(to){return bn.onSubmit(to)})("reset",function(){return bn.onReset()})},inputs:{options:[r.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Jv_([vr]),r.Vt3]}),mt})();function ro(Ft,mt){const nn=Ft.indexOf(mt);nn>-1&&Ft.splice(nn,1)}function Oo(Ft){return"object"==typeof Ft&&null!==Ft&&2===Object.keys(Ft).length&&"value"in Ft&&"disabled"in Ft}const Hr=class extends rn{constructor(mt=null,nn,kt){super(it(nn),Et(kt,nn)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(mt),this._setUpdateStrategy(nn),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),bt(nn)&&(nn.nonNullable||nn.initialValueIsDefault)&&(this.defaultValue=Oo(mt)?mt.value:mt)}setValue(mt,nn={}){this.value=this._pendingValue=mt,this._onChange.length&&!1!==nn.emitModelToViewChange&&this._onChange.forEach(kt=>kt(this.value,!1!==nn.emitViewToModelChange)),this.updateValueAndValidity(nn)}patchValue(mt,nn={}){this.setValue(mt,nn)}reset(mt=this.defaultValue,nn={}){this._applyFormState(mt),this.markAsPristine(nn),this.markAsUntouched(nn),this.setValue(this.value,nn),this._pendingChange=!1}_updateValue(){}_anyControls(mt){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(mt){this._onChange.push(mt)}_unregisterOnChange(mt){ro(this._onChange,mt)}registerOnDisabledChange(mt){this._onDisabledChange.push(mt)}_unregisterOnDisabledChange(mt){ro(this._onDisabledChange,mt)}_forEachChild(mt){}_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(mt){Oo(mt)?(this.value=this._pendingValue=mt.value,mt.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=mt}},Wi={provide:at,useExisting:(0,r.Rfq)(()=>Gi)},Ti=Promise.resolve();let Gi=(()=>{var Ft;class mt extends at{constructor(kt,bn,lr,to,ls,xo){super(),this._changeDetectorRef=ls,this.callSetDisabledState=xo,this.control=new Hr,this._registered=!1,this.name="",this.update=new r.bkB,this._parent=kt,this._setValidators(bn),this._setAsyncValidators(lr),this.valueAccessor=function Si(Ft,mt){if(!mt)return null;let nn,kt,bn;return Array.isArray(mt),mt.forEach(lr=>{lr.constructor===u?nn=lr:function xi(Ft){return Object.getPrototypeOf(Ft.constructor)===M}(lr)?kt=lr:bn=lr}),bn||kt||nn||null}(0,to)}ngOnChanges(kt){if(this._checkForErrors(),!this._registered||"name"in kt){if(this._registered&&(this._checkName(),this.formDirective)){const bn=kt.name.previousValue;this.formDirective.removeControl({name:bn,path:this._getPath(bn)})}this._setUpControl()}"isDisabled"in kt&&this._updateDisabled(kt),function Fn(Ft,mt){if(!Ft.hasOwnProperty("model"))return!1;const nn=Ft.model;return!!nn.isFirstChange()||!Object.is(mt,nn.currentValue)}(kt,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(kt){this.viewModel=kt,this.update.emit(kt)}_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(){Ai(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(kt){Ti.then(()=>{this.control.setValue(kt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(kt){const bn=kt.isDisabled.currentValue,lr=0!==bn&&(0,r.L39)(bn);Ti.then(()=>{lr&&!this.control.disabled?this.control.disable():!lr&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(kt){return this._parent?function Fi(Ft,mt){return[...mt.path,Ft]}(kt,this._parent):[kt]}}return(Ft=mt).\u0275fac=function(kt){return new(kt||Ft)(r.rXU(Ie,9),r.rXU(R,10),r.rXU(O,10),r.rXU(T,10),r.rXU(r.gRc,8),r.rXU(Oi,8))},Ft.\u0275dir=r.FsC({type:Ft,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[r.Mj6.None,"disabled","isDisabled"],model:[r.Mj6.None,"ngModel","model"],options:[r.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r.Jv_([Wi]),r.Vt3,r.OA$]}),mt})();const hl={provide:Ie,useExisting:(0,r.Rfq)(()=>Bs)};let Bs=(()=>{var Ft;class mt extends Ie{constructor(kt,bn,lr){super(),this.callSetDisabledState=lr,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new r.bkB,this._setValidators(kt),this._setAsyncValidators(bn)}ngOnChanges(kt){this._checkFormPresent(),kt.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Mr(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(kt){const bn=this.form.get(kt.path);return Ai(bn,kt,this.callSetDisabledState),bn.updateValueAndValidity({emitEvent:!1}),this.directives.push(kt),bn}getControl(kt){return this.form.get(kt.path)}removeControl(kt){ln(kt.control||null,kt,!1),function Yi(Ft,mt){const nn=Ft.indexOf(mt);nn>-1&&Ft.splice(nn,1)}(this.directives,kt)}addFormGroup(kt){this._setUpFormContainer(kt)}removeFormGroup(kt){this._cleanUpFormContainer(kt)}getFormGroup(kt){return this.form.get(kt.path)}addFormArray(kt){this._setUpFormContainer(kt)}removeFormArray(kt){this._cleanUpFormContainer(kt)}getFormArray(kt){return this.form.get(kt.path)}updateModel(kt,bn){this.form.get(kt.path).setValue(bn)}onSubmit(kt){return this.submitted=!0,fi(this.form,this.directives),this.ngSubmit.emit(kt),"dialog"===kt?.target?.method}onReset(){this.resetForm()}resetForm(kt=void 0){this.form.reset(kt),this.submitted=!1}_updateDomValue(){this.directives.forEach(kt=>{const bn=kt.control,lr=this.form.get(kt.path);bn!==lr&&(ln(bn||null,kt),(Ft=>Ft instanceof Hr)(lr)&&(Ai(lr,kt,this.callSetDisabledState),kt.control=lr))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(kt){const bn=this.form.get(kt.path);Cs(bn,kt),bn.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(kt){if(this.form){const bn=this.form.get(kt.path);bn&&function Pn(Ft,mt){return Mr(Ft,mt)}(bn,kt)&&bn.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Hi(this.form,this),this._oldForm&&Mr(this._oldForm,this)}_checkFormPresent(){}}return(Ft=mt).\u0275fac=function(kt){return new(kt||Ft)(r.rXU(R,10),r.rXU(O,10),r.rXU(Oi,8))},Ft.\u0275dir=r.FsC({type:Ft,selectors:[["","formGroup",""]],hostBindings:function(kt,bn){1&kt&&r.bIt("submit",function(to){return bn.onSubmit(to)})("reset",function(){return bn.onReset()})},inputs:{form:[r.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Jv_([hl]),r.Vt3,r.OA$]}),mt})(),To=(()=>{var Ft;class mt{constructor(){this._validator=be}ngOnChanges(kt){if(this.inputName in kt){const bn=this.normalizeInput(kt[this.inputName].currentValue);this._enabled=this.enabled(bn),this._validator=this._enabled?this.createValidator(bn):be,this._onChange&&this._onChange()}}validate(kt){return this._validator(kt)}registerOnValidatorChange(kt){this._onChange=kt}enabled(kt){return null!=kt}}return(Ft=mt).\u0275fac=function(kt){return new(kt||Ft)},Ft.\u0275dir=r.FsC({type:Ft,features:[r.OA$]}),mt})();const Kt={provide:R,useExisting:(0,r.Rfq)(()=>Ii),multi:!0},Zn={provide:R,useExisting:(0,r.Rfq)(()=>ei),multi:!0};let Ii=(()=>{var Ft;class mt extends To{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=r.L39,this.createValidator=kt=>ce}enabled(kt){return kt}}return(Ft=mt).\u0275fac=(()=>{let nn;return function(bn){return(nn||(nn=r.xGo(Ft)))(bn||Ft)}})(),Ft.\u0275dir=r.FsC({type:Ft,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(kt,bn){2&kt&&r.BMQ("required",bn._enabled?"":null)},inputs:{required:"required"},features:[r.Jv_([Kt]),r.Vt3]}),mt})(),ei=(()=>{var Ft;class mt extends Ii{constructor(){super(...arguments),this.createValidator=kt=>H}}return(Ft=mt).\u0275fac=(()=>{let nn;return function(bn){return(nn||(nn=r.xGo(Ft)))(bn||Ft)}})(),Ft.\u0275dir=r.FsC({type:Ft,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(kt,bn){2&kt&&r.BMQ("required",bn._enabled?"":null)},features:[r.Jv_([Zn]),r.Vt3]}),mt})(),Ei=(()=>{var Ft;class mt{}return(Ft=mt).\u0275fac=function(kt){return new(kt||Ft)},Ft.\u0275mod=r.$C({type:Ft}),Ft.\u0275inj=r.G2t({}),mt})(),$i=(()=>{var Ft;class mt{static withConfig(kt){return{ngModule:mt,providers:[{provide:Oi,useValue:kt.callSetDisabledState??Qn}]}}}return(Ft=mt).\u0275fac=function(kt){return new(kt||Ft)},Ft.\u0275mod=r.$C({type:Ft}),Ft.\u0275inj=r.G2t({imports:[Ei]}),mt})()},16490:(je,z,c)=>{"use strict";c.d(z,{J3:()=>j,Ox:()=>te,VK:()=>ce,eN:()=>fe,vF:()=>O,yj:()=>Y});var r=c(78064),n=c(76614),v=c(58527),h=c(51635),f=c(31308),A=c(76706),M=c(61904),T=c(61142),E=c(40262),y=c(25373),S=c(80583),l=c(16229),s=c(8619),u=c(65706);function m(H,Z){}const I={bottomSheetState:(0,E.hZ)("state",[(0,E.wk)("void, hidden",(0,E.iF)({transform:"translateY(100%)"})),(0,E.wk)("visible",(0,E.iF)({transform:"translateY(0%)"})),(0,E.kY)("visible => void, visible => hidden",(0,E.Os)([(0,E.i0)(`${h.ed.COMPLEX} ${h.r5.ACCELERATION_CURVE}`),(0,E.P)("@*",(0,E.MA)(),{optional:!0})])),(0,E.kY)("void => visible",(0,E.Os)([(0,E.i0)(`${h.ed.EXITING} ${h.r5.DECELERATION_CURVE}`),(0,E.P)("@*",(0,E.MA)(),{optional:!0})]))])};let R=(()=>{var H;class Z extends r.sU{constructor(ue,Me,be,Q,ne,Ge,ge,Xe,ot,dt){super(ue,Me,be,Q,ne,Ge,ge,dt),this._changeDetectorRef=ot,this._animationState="void",this._animationStateChanged=new v.bkB,this._breakpointSubscription=Xe.observe([A.Rp.Medium,A.Rp.Large,A.Rp.XLarge]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",Xe.isMatched(A.Rp.Medium)),this._toggleClass("mat-bottom-sheet-container-large",Xe.isMatched(A.Rp.Large)),this._toggleClass("mat-bottom-sheet-container-xlarge",Xe.isMatched(A.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(ue){"visible"===ue.toState&&this._trapFocus(),this._animationStateChanged.emit(ue)}_onAnimationStart(ue){this._animationStateChanged.emit(ue)}_captureInitialFocus(){}_toggleClass(ue,Me){this._elementRef.nativeElement.classList.toggle(ue,Me)}}return(H=Z).\u0275fac=function(ue){return new(ue||H)(v.rXU(v.aKT),v.rXU(f.GX),v.rXU(T.qQ,8),v.rXU(r.Pe),v.rXU(f.Z7),v.rXU(v.SKi),v.rXU(M.yY),v.rXU(A.QP),v.rXU(v.gRc),v.rXU(f.FN))},H.\u0275cmp=v.VBU({type:H,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(ue,Me){1&ue&&v.Kam("@state.start",function(Q){return Me._onAnimationStart(Q)})("@state.done",function(Q){return Me._onAnimationDone(Q)}),2&ue&&(v.zvX("@state",Me._animationState),v.BMQ("role",Me._config.role)("aria-modal",Me._config.ariaModal)("aria-label",Me._config.ariaLabel))},features:[v.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ue,Me){1&ue&&v.DNE(0,m,0,0,"ng-template",0)},dependencies:[n.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:[I.bottomSheetState]}}),Z})(),O=(()=>{var H;class Z{}return(H=Z).\u0275fac=function(ue){return new(ue||H)},H.\u0275mod=v.$C({type:H}),H.\u0275inj=v.G2t({imports:[r.Ph,h.yE,n.jc,h.yE]}),Z})();const Y=new v.nKC("MatBottomSheetData");class j{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 fe{get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}constructor(Z,X,ue){this._ref=Z,this._afterOpened=new S.B7,this.containerInstance=ue,this.disableClose=X.disableClose,ue._animationStateChanged.pipe((0,s.p)(Me=>"done"===Me.phaseName&&"visible"===Me.toState),(0,u.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ue._animationStateChanged.pipe((0,s.p)(Me=>"done"===Me.phaseName&&"hidden"===Me.toState),(0,u.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),Z.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),(0,l.h)(this.backdropClick(),this.keydownEvents().pipe((0,s.p)(Me=>Me.keyCode===y._f))).subscribe(Me=>{!this.disableClose&&("keydown"!==Me.type||!(0,y.rp)(Me))&&(Me.preventDefault(),this.dismiss())})}dismiss(Z){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe((0,s.p)(X=>"start"===X.phaseName),(0,u.s)(1)).subscribe(X=>{this._closeFallbackTimeout=setTimeout(()=>{this._ref.close(this._result)},X.totalTime+100),this._ref.overlayRef.detachBackdrop()}),this._result=Z,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 te=new v.nKC("mat-bottom-sheet-default-options");let ce=(()=>{var H;class Z{get _openedBottomSheetRef(){const ue=this._parentBottomSheet;return ue?ue._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(ue){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=ue:this._bottomSheetRefAtThisLevel=ue}constructor(ue,Me,be,Q){this._overlay=ue,this._parentBottomSheet=be,this._defaultOptions=Q,this._bottomSheetRefAtThisLevel=null,this._dialog=Me.get(r.lG)}open(ue,Me){const be={...this._defaultOptions||new j,...Me};let Q;return this._dialog.open(ue,{...be,disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:R,scrollStrategy:be.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:()=>({bottomSheetRef:Q}),providers:(ne,Ge,ge)=>(Q=new fe(ne,be,ge),[{provide:fe,useValue:Q},{provide:Y,useValue:be.data}])}),Q.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===Q&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>Q.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):Q.containerInstance.enter(),this._openedBottomSheetRef=Q,Q}dismiss(ue){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(ue)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}}return(H=Z).\u0275fac=function(ue){return new(ue||H)(v.KVO(M.hJ),v.KVO(v.zZn),v.KVO(H,12),v.KVO(te,8))},H.\u0275prov=v.jDH({token:H,factory:H.\u0275fac,providedIn:O}),Z})()},51635:(je,z,c)=>{"use strict";c.d(z,{r5:()=>fe,ed:()=>te,es:()=>Oe,QC:()=>Bn,is:()=>qe,$E:()=>Gt,yE:()=>Z,vu:()=>ye,Np:()=>K,D7:()=>jn,wT:()=>ht,Sy:()=>Et,wg:()=>Un,O5:()=>ni,r6:()=>Zt,pZ:()=>kn,ug:()=>$e,jb:()=>it,TL:()=>Ct,Zc:()=>Q,GG:()=>ne,Ob:()=>be,J8:()=>ge,BF:()=>Ge,IK:()=>Ie});var r=c(58527),n=c(31308),v=c(51394),f=c(61142),A=c(72653),M=c(6364),T=c(80583),E=c(34593),y=c(25373);const l=["*",[["mat-option"],["ng-container"]]],s=["*","mat-option, ng-container"],u=["text"],m=[[["mat-icon"]],"*"],I=["mat-icon","*"];function R(En,Tn){if(1&En&&r.nrm(0,"mat-pseudo-checkbox",6),2&En){const Cn=r.XpG();r.Y8G("disabled",Cn.disabled)("state",Cn.selected?"checked":"unchecked")}}function O(En,Tn){if(1&En&&r.nrm(0,"mat-pseudo-checkbox",7),2&En){const Cn=r.XpG();r.Y8G("disabled",Cn.disabled)}}function Y(En,Tn){if(1&En&&(r.j41(0,"span",8),r.EFF(1),r.k0s()),2&En){const Cn=r.XpG();r.R7$(),r.SpI("(",Cn.group.label,")")}}let fe=(()=>{var En;class Tn{}return(En=Tn).STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",En.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",En.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",En.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Tn})(),te=(()=>{var En;class Tn{}return(En=Tn).COMPLEX="375ms",En.ENTERING="225ms",En.EXITING="195ms",Tn})();const H=new r.nKC("mat-sanity-checks",{providedIn:"root",factory:function ce(){return!0}});let Z=(()=>{var En;class Tn{constructor(Wn,Oi,Qn){this._sanityChecks=Oi,this._document=Qn,this._hasDoneGlobalChecks=!1,Wn._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Wn){return!(0,A.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Wn])}}return(En=Tn).\u0275fac=function(Wn){return new(Wn||En)(r.KVO(n.Q_),r.KVO(H,8),r.KVO(f.qQ))},En.\u0275mod=r.$C({type:En}),En.\u0275inj=r.G2t({imports:[v.jI,v.jI]}),Tn})();function be(En){return class extends En{get disabled(){return this._disabled}set disabled(Tn){this._disabled=(0,M.he)(Tn)}constructor(...Tn){super(...Tn),this._disabled=!1}}}function Q(En,Tn){return class extends En{get color(){return this._color}set color(Cn){const Wn=Cn||this.defaultColor;Wn!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Wn&&this._elementRef.nativeElement.classList.add(`mat-${Wn}`),this._color=Wn)}constructor(...Cn){super(...Cn),this.defaultColor=Tn,this.color=Tn}}}function ne(En){return class extends En{get disableRipple(){return this._disableRipple}set disableRipple(Tn){this._disableRipple=(0,M.he)(Tn)}constructor(...Tn){super(...Tn),this._disableRipple=!1}}}function Ge(En,Tn=0){return class extends En{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Cn){this._tabIndex=null!=Cn?(0,M.OE)(Cn):this.defaultTabIndex}constructor(...Cn){super(...Cn),this._tabIndex=Tn,this.defaultTabIndex=Tn}}}function ge(En){return class extends En{updateErrorState(){const Tn=this.errorState,Qn=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Qn!==Tn&&(this.errorState=Qn,this.stateChanges.next())}constructor(...Tn){super(...Tn),this.errorState=!1}}}let Oe=(()=>{var En;class Tn{isErrorState(Wn,Oi){return!!(Wn&&Wn.invalid&&(Wn.touched||Oi&&Oi.submitted))}}return(En=Tn).\u0275fac=function(Wn){return new(Wn||En)},En.\u0275prov=r.jDH({token:En,factory:En.\u0275fac,providedIn:"root"}),Tn})(),ye=(()=>{var En;class Tn{}return(En=Tn).\u0275fac=function(Wn){return new(Wn||En)},En.\u0275dir=r.FsC({type:En,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Tn})();function Ie(En,Tn,Cn="mat"){En.changes.pipe((0,E.Z)(En)).subscribe(({length:Wn})=>{at(Tn,`${Cn}-2-line`,!1),at(Tn,`${Cn}-3-line`,!1),at(Tn,`${Cn}-multi-line`,!1),2===Wn||3===Wn?at(Tn,`${Cn}-${Wn}-line`,!0):Wn>3&&at(Tn,`${Cn}-multi-line`,!0)})}function at(En,Tn,Cn){En.nativeElement.classList.toggle(Tn,Cn)}let K=(()=>{var En;class Tn{}return(En=Tn).\u0275fac=function(Wn){return new(Wn||En)},En.\u0275mod=r.$C({type:En}),En.\u0275inj=r.G2t({imports:[Z,Z]}),Tn})();class ve{constructor(Tn,Cn,Wn,Oi=!1){this._renderer=Tn,this.element=Cn,this.config=Wn,this._animationForciblyDisabledThroughCss=Oi,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const De=(0,A.BQ)({passive:!0,capture:!0});class pe{constructor(){this._events=new Map,this._delegateEventHandler=Tn=>{const Cn=(0,A.Fb)(Tn);Cn&&this._events.get(Tn.type)?.forEach((Wn,Oi)=>{(Oi===Cn||Oi.contains(Cn))&&Wn.forEach(Qn=>Qn.handleEvent(Tn))})}}addHandler(Tn,Cn,Wn,Oi){const Qn=this._events.get(Cn);if(Qn){const Fi=Qn.get(Wn);Fi?Fi.add(Oi):Qn.set(Wn,new Set([Oi]))}else this._events.set(Cn,new Map([[Wn,new Set([Oi])]])),Tn.runOutsideAngular(()=>{document.addEventListener(Cn,this._delegateEventHandler,De)})}removeHandler(Tn,Cn,Wn){const Oi=this._events.get(Tn);if(!Oi)return;const Qn=Oi.get(Cn);Qn&&(Qn.delete(Wn),0===Qn.size&&Oi.delete(Cn),0===Oi.size&&(this._events.delete(Tn),document.removeEventListener(Tn,this._delegateEventHandler,De)))}}const Qe={enterDuration:225,exitDuration:150},Vt=(0,A.BQ)({passive:!0,capture:!0}),de=["mousedown","touchstart"],J=["mouseup","mouseleave","touchend","touchcancel"];class $e{constructor(Tn,Cn,Wn,Oi){this._target=Tn,this._ngZone=Cn,this._platform=Oi,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Oi.isBrowser&&(this._containerElement=(0,M.i8)(Wn))}fadeInRipple(Tn,Cn,Wn={}){const Oi=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Qn={...Qe,...Wn.animation};Wn.centered&&(Tn=Oi.left+Oi.width/2,Cn=Oi.top+Oi.height/2);const Fi=Wn.radius||function st(En,Tn,Cn){const Wn=Math.max(Math.abs(En-Cn.left),Math.abs(En-Cn.right)),Oi=Math.max(Math.abs(Tn-Cn.top),Math.abs(Tn-Cn.bottom));return Math.sqrt(Wn*Wn+Oi*Oi)}(Tn,Cn,Oi),Ai=Tn-Oi.left,ln=Cn-Oi.top,Mn=Qn.enterDuration,bi=document.createElement("div");bi.classList.add("mat-ripple-element"),bi.style.left=Ai-Fi+"px",bi.style.top=ln-Fi+"px",bi.style.height=2*Fi+"px",bi.style.width=2*Fi+"px",null!=Wn.color&&(bi.style.backgroundColor=Wn.color),bi.style.transitionDuration=`${Mn}ms`,this._containerElement.appendChild(bi);const Hi=window.getComputedStyle(bi),Wr=Hi.transitionDuration,uo="none"===Hi.transitionProperty||"0s"===Wr||"0s, 0s"===Wr||0===Oi.width&&0===Oi.height,Nr=new ve(this,bi,Wn,uo);bi.style.transform="scale3d(1, 1, 1)",Nr.state=0,Wn.persistent||(this._mostRecentTransientRipple=Nr);let ss=null;return!uo&&(Mn||Qn.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Cs=()=>this._finishRippleTransition(Nr),Pn=()=>this._destroyRipple(Nr);bi.addEventListener("transitionend",Cs),bi.addEventListener("transitioncancel",Pn),ss={onTransitionEnd:Cs,onTransitionCancel:Pn}}),this._activeRipples.set(Nr,ss),(uo||!Mn)&&this._finishRippleTransition(Nr),Nr}fadeOutRipple(Tn){if(2===Tn.state||3===Tn.state)return;const Cn=Tn.element,Wn={...Qe,...Tn.config.animation};Cn.style.transitionDuration=`${Wn.exitDuration}ms`,Cn.style.opacity="0",Tn.state=2,(Tn._animationForciblyDisabledThroughCss||!Wn.exitDuration)&&this._finishRippleTransition(Tn)}fadeOutAll(){this._getActiveRipples().forEach(Tn=>Tn.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Tn=>{Tn.config.persistent||Tn.fadeOut()})}setupTriggerEvents(Tn){const Cn=(0,M.i8)(Tn);!this._platform.isBrowser||!Cn||Cn===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Cn,de.forEach(Wn=>{$e._eventManager.addHandler(this._ngZone,Wn,Cn,this)}))}handleEvent(Tn){"mousedown"===Tn.type?this._onMousedown(Tn):"touchstart"===Tn.type?this._onTouchStart(Tn):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{J.forEach(Cn=>{this._triggerElement.addEventListener(Cn,this,Vt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Tn){0===Tn.state?this._startFadeOutTransition(Tn):2===Tn.state&&this._destroyRipple(Tn)}_startFadeOutTransition(Tn){const Cn=Tn===this._mostRecentTransientRipple,{persistent:Wn}=Tn.config;Tn.state=1,!Wn&&(!Cn||!this._isPointerDown)&&Tn.fadeOut()}_destroyRipple(Tn){const Cn=this._activeRipples.get(Tn)??null;this._activeRipples.delete(Tn),this._activeRipples.size||(this._containerRect=null),Tn===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Tn.state=3,null!==Cn&&(Tn.element.removeEventListener("transitionend",Cn.onTransitionEnd),Tn.element.removeEventListener("transitioncancel",Cn.onTransitionCancel)),Tn.element.remove()}_onMousedown(Tn){const Cn=(0,n._G)(Tn),Wn=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Cn&&!Wn&&(this._isPointerDown=!0,this.fadeInRipple(Tn.clientX,Tn.clientY,this._target.rippleConfig))}_onTouchStart(Tn){if(!this._target.rippleDisabled&&!(0,n.w6)(Tn)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const Cn=Tn.changedTouches;if(Cn)for(let Wn=0;Wn<Cn.length;Wn++)this.fadeInRipple(Cn[Wn].clientX,Cn[Wn].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(Tn=>{!Tn.config.persistent&&(1===Tn.state||Tn.config.terminateOnPointerUp&&0===Tn.state)&&Tn.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Tn=this._triggerElement;Tn&&(de.forEach(Cn=>$e._eventManager.removeHandler(Cn,Tn,this)),this._pointerUpEventsRegistered&&J.forEach(Cn=>Tn.removeEventListener(Cn,this,Vt)))}}$e._eventManager=new pe;const Gt=new r.nKC("mat-ripple-global-options");let Zt=(()=>{var En;class Tn{get disabled(){return this._disabled}set disabled(Wn){Wn&&this.fadeOutAllNonPersistent(),this._disabled=Wn,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Wn){this._trigger=Wn,this._setupTriggerEventsIfEnabled()}constructor(Wn,Oi,Qn,Fi,Ai){this._elementRef=Wn,this._animationMode=Ai,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Fi||{},this._rippleRenderer=new $e(this,Oi,Wn,Qn)}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(Wn,Oi=0,Qn){return"number"==typeof Wn?this._rippleRenderer.fadeInRipple(Wn,Oi,{...this.rippleConfig,...Qn}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Wn})}}return(En=Tn).\u0275fac=function(Wn){return new(Wn||En)(r.rXU(r.aKT),r.rXU(r.SKi),r.rXU(A.OD),r.rXU(Gt,8),r.rXU(r.bc$,8))},En.\u0275dir=r.FsC({type:En,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Wn,Oi){2&Wn&&r.AVh("mat-ripple-unbounded",Oi.unbounded)},inputs:{color:[r.Mj6.None,"matRippleColor","color"],unbounded:[r.Mj6.None,"matRippleUnbounded","unbounded"],centered:[r.Mj6.None,"matRippleCentered","centered"],radius:[r.Mj6.None,"matRippleRadius","radius"],animation:[r.Mj6.None,"matRippleAnimation","animation"],disabled:[r.Mj6.None,"matRippleDisabled","disabled"],trigger:[r.Mj6.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Tn})(),kn=(()=>{var En;class Tn{}return(En=Tn).\u0275fac=function(Wn){return new(Wn||En)},En.\u0275mod=r.$C({type:En}),En.\u0275inj=r.G2t({imports:[Z,Z]}),Tn})(),Un=(()=>{var En;class Tn{constructor(Wn){this._animationMode=Wn,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return(En=Tn).\u0275fac=function(Wn){return new(Wn||En)(r.rXU(r.bc$,8))},En.\u0275cmp=r.VBU({type:En,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(Wn,Oi){2&Wn&&r.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===Oi.state)("mat-pseudo-checkbox-checked","checked"===Oi.state)("mat-pseudo-checkbox-disabled",Oi.disabled)("mat-pseudo-checkbox-minimal","minimal"===Oi.appearance)("mat-pseudo-checkbox-full","full"===Oi.appearance)("_mat-animation-noopable","NoopAnimations"===Oi._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(Wn,Oi){},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}),Tn})(),ni=(()=>{var En;class Tn{}return(En=Tn).\u0275fac=function(Wn){return new(Wn||En)},En.\u0275mod=r.$C({type:En}),En.\u0275inj=r.G2t({imports:[Z]}),Tn})();const qe=new r.nKC("MAT_OPTION_PARENT_COMPONENT"),mi=be(class{});let Bi=0,_i=(()=>{var En;class Tn extends mi{constructor(Wn){super(),this._labelId="mat-optgroup-label-"+Bi++,this._inert=Wn?.inertGroups??!1}}return(En=Tn).\u0275fac=function(Wn){return new(Wn||En)(r.rXU(qe,8))},En.\u0275dir=r.FsC({type:En,inputs:{label:"label"},features:[r.Vt3]}),Tn})();const Bn=new r.nKC("MatOptgroup");let jn=(()=>{var En;class Tn extends _i{}return(En=Tn).\u0275fac=(()=>{let Cn;return function(Oi){return(Cn||(Cn=r.xGo(En)))(Oi||En)}})(),En.\u0275cmp=r.VBU({type:En,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(Wn,Oi){2&Wn&&r.BMQ("role",Oi._inert?null:"group")("aria-disabled",Oi._inert?null:Oi.disabled.toString())("aria-labelledby",Oi._inert?null:Oi._labelId)},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[r.Jv_([{provide:Bn,useExisting:En}]),r.Vt3],ngContentSelectors:s,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(Wn,Oi){1&Wn&&(r.NAR(l),r.j41(0,"span",0)(1,"span",1),r.EFF(2),r.SdG(3),r.k0s()(),r.SdG(4,1)),2&Wn&&(r.AVh("mdc-list-item--disabled",Oi.disabled),r.Y8G("id",Oi._labelId),r.R7$(2),r.SpI("",Oi.label," "))},styles:[".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;min-height:48px}.mat-mdc-optgroup-label:focus{outline:none}[dir=rtl] .mat-mdc-optgroup-label,.mat-mdc-optgroup-label[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],encapsulation:2,changeDetection:0}),Tn})(),It=0;class vn{constructor(Tn,Cn=!1){this.source=Tn,this.isUserInput=Cn}}let Vn=(()=>{var En;class Tn{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(Wn){this._disabled=(0,M.he)(Wn)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(Wn,Oi,Qn,Fi){this._element=Wn,this._changeDetectorRef=Oi,this._parent=Qn,this.group=Fi,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+It++,this.onSelectionChange=new r.bkB,this._stateChanges=new T.B7}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(Wn=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),Wn&&this._emitSelectionChangeEvent())}deselect(Wn=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),Wn&&this._emitSelectionChangeEvent())}focus(Wn,Oi){const Qn=this._getHostElement();"function"==typeof Qn.focus&&Qn.focus(Oi)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Wn){(Wn.keyCode===y.Fm||Wn.keyCode===y.t6)&&!(0,y.rp)(Wn)&&(this._selectViaInteraction(),Wn.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 Wn=this.viewValue;Wn!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=Wn)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Wn=!1){this.onSelectionChange.emit(new vn(this,Wn))}}return(En=Tn).\u0275fac=function(Wn){r.QTQ()},En.\u0275dir=r.FsC({type:En,viewQuery:function(Wn,Oi){if(1&Wn&&r.GBs(u,7),2&Wn){let Qn;r.mGM(Qn=r.lsd())&&(Oi._text=Qn.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Tn})(),ht=(()=>{var En;class Tn extends Vn{constructor(Wn,Oi,Qn,Fi){super(Wn,Oi,Qn,Fi)}}return(En=Tn).\u0275fac=function(Wn){return new(Wn||En)(r.rXU(r.aKT),r.rXU(r.gRc),r.rXU(qe,8),r.rXU(Bn,8))},En.\u0275cmp=r.VBU({type:En,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(Wn,Oi){1&Wn&&r.bIt("click",function(){return Oi._selectViaInteraction()})("keydown",function(Fi){return Oi._handleKeydown(Fi)}),2&Wn&&(r.Mr5("id",Oi.id),r.BMQ("aria-selected",Oi.selected)("aria-disabled",Oi.disabled.toString()),r.AVh("mdc-list-item--selected",Oi.selected)("mat-mdc-option-multiple",Oi.multiple)("mat-mdc-option-active",Oi.active)("mdc-list-item--disabled",Oi.disabled))},exportAs:["matOption"],features:[r.Vt3],ngContentSelectors:I,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(Wn,Oi){1&Wn&&(r.NAR(m),r.DNE(0,R,1,2,"mat-pseudo-checkbox",1),r.SdG(1),r.j41(2,"span",2,0),r.SdG(4,1),r.k0s(),r.DNE(5,O,1,1,"mat-pseudo-checkbox",3)(6,Y,2,1,"span",4),r.nrm(7,"div",5)),2&Wn&&(r.Y8G("ngIf",Oi.multiple),r.R7$(5),r.Y8G("ngIf",!Oi.multiple&&Oi.selected&&!Oi.hideSingleSelectionIndicator),r.R7$(),r.Y8G("ngIf",Oi.group&&Oi.group._inert),r.R7$(),r.Y8G("matRippleTrigger",Oi._getHostElement())("matRippleDisabled",Oi.disabled||Oi.disableRipple))},dependencies:[Zt,f.bT,Un],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}),Tn})();function it(En,Tn,Cn){if(Cn.length){let Wn=Tn.toArray(),Oi=Cn.toArray(),Qn=0;for(let Fi=0;Fi<En+1;Fi++)Wn[Fi].group&&Wn[Fi].group===Oi[Qn]&&Qn++;return Qn}return 0}function Ct(En,Tn,Cn,Wn){return En<Cn?En:En+Tn>Cn+Wn?Math.max(0,En-Wn+Tn):Cn}let Et=(()=>{var En;class Tn{}return(En=Tn).\u0275fac=function(Wn){return new(Wn||En)},En.\u0275mod=r.$C({type:En}),En.\u0275inj=r.G2t({imports:[kn,f.MD,Z,ni]}),Tn})()},26537:(je,z,c)=>{"use strict";c.d(z,{BI:()=>W,CP:()=>Me,E7:()=>le,Vh:()=>Q,Yi:()=>Pe,bZ:()=>Re,di:()=>ne,hM:()=>Le,ru:()=>O,tx:()=>ee});var r=c(61904),n=c(61142),v=c(58527),h=c(31308),f=c(78064),A=c(6364),M=c(76614),T=c(80583),E=c(16229),y=c(63997),S=c(8619),l=c(65706),s=c(34593),u=c(25373),m=c(51635);function R(Ie,at){}c(40262);class O{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 Y="mdc-dialog--open",j="mdc-dialog--opening",fe="mdc-dialog--closing";let H=(()=>{var Ie;class at extends f.sU{constructor(ve,De,pe,Qe,zt,Vt,de,J){super(ve,De,pe,Qe,zt,Vt,de,J),this._animationStateChanged=new v.bkB}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(ve){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:ve})}}return(Ie=at).\u0275fac=function(ve){return new(ve||Ie)(v.rXU(v.aKT),v.rXU(h.GX),v.rXU(n.qQ,8),v.rXU(O),v.rXU(h.Z7),v.rXU(v.SKi),v.rXU(r.yY),v.rXU(h.FN))},Ie.\u0275cmp=v.VBU({type:Ie,selectors:[["ng-component"]],features:[v.Vt3],decls:0,vars:0,template:function(ve,De){},encapsulation:2}),at})();const Z="--mat-dialog-transition-duration";function X(Ie){return null==Ie?null:"number"==typeof Ie?Ie:Ie.endsWith("ms")?(0,A.OE)(Ie.substring(0,Ie.length-2)):Ie.endsWith("s")?1e3*(0,A.OE)(Ie.substring(0,Ie.length-1)):"0"===Ie?0:null}let ue=(()=>{var Ie;class at extends H{constructor(ve,De,pe,Qe,zt,Vt,de,J,$e){super(ve,De,pe,Qe,zt,Vt,de,$e),this._animationMode=J,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?X(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?X(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(Z,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(j,Y)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Y),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Y),this._animationsEnabled?(this._hostElement.style.setProperty(Z,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(fe)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(j,fe)}_waitForAnimationToComplete(ve,De){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(De,ve)}_requestAnimationFrame(ve){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(ve):ve()})}}return(Ie=at).\u0275fac=function(ve){return new(ve||Ie)(v.rXU(v.aKT),v.rXU(h.GX),v.rXU(n.qQ,8),v.rXU(O),v.rXU(h.Z7),v.rXU(v.SKi),v.rXU(r.yY),v.rXU(v.bc$,8),v.rXU(h.FN))},Ie.\u0275cmp=v.VBU({type:Ie,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(ve,De){2&ve&&(v.Mr5("id",De._config.id),v.BMQ("aria-modal",De._config.ariaModal)("role",De._config.role)("aria-labelledby",De._config.ariaLabel?null:De._ariaLabelledByQueue[0])("aria-label",De._config.ariaLabel)("aria-describedby",De._config.ariaDescribedBy||null),v.AVh("_mat-animation-noopable",!De._animationsEnabled))},features:[v.Vt3],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(ve,De){1&ve&&(v.j41(0,"div",0)(1,"div",1),v.DNE(2,R,0,0,"ng-template",2),v.k0s()())},dependencies:[M.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}),at})();class Me{constructor(at,K,ve){this._ref=at,this._containerInstance=ve,this._afterOpened=new T.B7,this._beforeClosed=new T.B7,this._state=0,this.disableClose=K.disableClose,this.id=at.id,ve._animationStateChanged.pipe((0,S.p)(De=>"opened"===De.state),(0,l.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ve._animationStateChanged.pipe((0,S.p)(De=>"closed"===De.state),(0,l.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),at.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,E.h)(this.backdropClick(),this.keydownEvents().pipe((0,S.p)(De=>De.keyCode===u._f&&!this.disableClose&&!(0,u.rp)(De)))).subscribe(De=>{this.disableClose||(De.preventDefault(),be(this,"keydown"===De.type?"keyboard":"mouse"))})}close(at){this._result=at,this._containerInstance._animationStateChanged.pipe((0,S.p)(K=>"closing"===K.state),(0,l.s)(1)).subscribe(K=>{this._beforeClosed.next(at),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),K.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(at){let K=this._ref.config.positionStrategy;return at&&(at.left||at.right)?at.left?K.left(at.left):K.right(at.right):K.centerHorizontally(),at&&(at.top||at.bottom)?at.top?K.top(at.top):K.bottom(at.bottom):K.centerVertically(),this._ref.updatePosition(),this}updateSize(at="",K=""){return this._ref.updateSize(at,K),this}addPanelClass(at){return this._ref.addPanelClass(at),this}removePanelClass(at){return this._ref.removePanelClass(at),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function be(Ie,at,K){return Ie._closeInteractionType=at,Ie.close(K)}const Q=new v.nKC("MatMdcDialogData"),ne=new v.nKC("mat-mdc-dialog-default-options"),Ge=new v.nKC("mat-mdc-dialog-scroll-strategy"),Xe={provide:Ge,deps:[r.hJ],useFactory:function ge(Ie){return()=>Ie.scrollStrategies.block()}};let dt=0,xe=(()=>{var Ie;class at{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const ve=this._parentDialog;return ve?ve._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(ve,De,pe,Qe,zt,Vt,de,J,$e,st){this._overlay=ve,this._defaultOptions=pe,this._parentDialog=Qe,this._dialogRefConstructor=de,this._dialogContainerType=J,this._dialogDataToken=$e,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new T.B7,this._afterOpenedAtThisLevel=new T.B7,this._idPrefix="mat-dialog-",this.dialogConfigClass=O,this.afterAllClosed=(0,y.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,s.Z)(void 0))),this._scrollStrategy=Vt,this._dialog=De.get(f.lG)}open(ve,De){let pe;(De={...this._defaultOptions||new O,...De}).id=De.id||`${this._idPrefix}${dt++}`,De.scrollStrategy=De.scrollStrategy||this._scrollStrategy();const Qe=this._dialog.open(ve,{...De,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:De},{provide:f.Pe,useValue:De}]},templateContext:()=>({dialogRef:pe}),providers:(zt,Vt,de)=>(pe=new this._dialogRefConstructor(zt,De,de),pe.updatePosition(De?.position),[{provide:this._dialogContainerType,useValue:de},{provide:this._dialogDataToken,useValue:Vt.data},{provide:this._dialogRefConstructor,useValue:pe}])});return pe.componentRef=Qe.componentRef,pe.componentInstance=Qe.componentInstance,this.openDialogs.push(pe),this.afterOpened.next(pe),pe.afterClosed().subscribe(()=>{const zt=this.openDialogs.indexOf(pe);zt>-1&&(this.openDialogs.splice(zt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),pe}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(ve){return this.openDialogs.find(De=>De.id===ve)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(ve){let De=ve.length;for(;De--;)ve[De].close()}}return(Ie=at).\u0275fac=function(ve){v.QTQ()},Ie.\u0275prov=v.jDH({token:Ie,factory:Ie.\u0275fac}),at})(),Re=(()=>{var Ie;class at extends xe{constructor(ve,De,pe,Qe,zt,Vt,de,J){super(ve,De,Qe,Vt,de,zt,Me,ue,Q,J),this._idPrefix="mat-mdc-dialog-"}}return(Ie=at).\u0275fac=function(ve){return new(ve||Ie)(v.KVO(r.hJ),v.KVO(v.zZn),v.KVO(n.aZ,8),v.KVO(ne,8),v.KVO(Ge),v.KVO(Ie,12),v.KVO(r.Sf),v.KVO(v.bc$,8))},Ie.\u0275prov=v.jDH({token:Ie,factory:Ie.\u0275fac}),at})(),Ue=0,ee=(()=>{var Ie;class at{constructor(ve,De,pe){this.dialogRef=ve,this._elementRef=De,this._dialog=pe,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=oe(this._elementRef,this._dialog.openDialogs))}ngOnChanges(ve){const De=ve._matDialogClose||ve._matDialogCloseResult;De&&(this.dialogResult=De.currentValue)}_onButtonClick(ve){be(this.dialogRef,0===ve.screenX&&0===ve.screenY?"keyboard":"mouse",this.dialogResult)}}return(Ie=at).\u0275fac=function(ve){return new(ve||Ie)(v.rXU(Me,8),v.rXU(v.aKT),v.rXU(Re))},Ie.\u0275dir=v.FsC({type:Ie,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ve,De){1&ve&&v.bIt("click",function(Qe){return De._onButtonClick(Qe)}),2&ve&&v.BMQ("aria-label",De.ariaLabel||null)("type",De.type)},inputs:{ariaLabel:[v.Mj6.None,"aria-label","ariaLabel"],type:"type",dialogResult:[v.Mj6.None,"mat-dialog-close","dialogResult"],_matDialogClose:[v.Mj6.None,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[v.OA$]}),at})(),W=(()=>{var Ie;class at{constructor(ve,De,pe){this._dialogRef=ve,this._elementRef=De,this._dialog=pe,this.id="mat-mdc-dialog-title-"+Ue++}ngOnInit(){this._dialogRef||(this._dialogRef=oe(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const ve=this._dialogRef?._containerInstance?._ariaLabelledByQueue;ve&&Promise.resolve().then(()=>{const De=ve.indexOf(this.id);De>-1&&ve.splice(De,1)})}}return(Ie=at).\u0275fac=function(ve){return new(ve||Ie)(v.rXU(Me,8),v.rXU(v.aKT),v.rXU(Re))},Ie.\u0275dir=v.FsC({type:Ie,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(ve,De){2&ve&&v.Mr5("id",De.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),at})(),Pe=(()=>{var Ie;class at{}return(Ie=at).\u0275fac=function(ve){return new(ve||Ie)},Ie.\u0275dir=v.FsC({type:Ie,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),at})(),le=(()=>{var Ie;class at{constructor(){this.align="start"}}return(Ie=at).\u0275fac=function(ve){return new(ve||Ie)},Ie.\u0275dir=v.FsC({type:Ie,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(ve,De){2&ve&&v.AVh("mat-mdc-dialog-actions-align-center","center"===De.align)("mat-mdc-dialog-actions-align-end","end"===De.align)},inputs:{align:"align"}}),at})();function oe(Ie,at){let K=Ie.nativeElement.parentElement;for(;K&&!K.classList.contains("mat-mdc-dialog-container");)K=K.parentElement;return K?at.find(ve=>ve.id===K.id):null}let Le=(()=>{var Ie;class at{}return(Ie=at).\u0275fac=function(ve){return new(ve||Ie)},Ie.\u0275mod=v.$C({type:Ie}),Ie.\u0275inj=v.G2t({providers:[Re,Xe],imports:[f.Ph,r.z_,M.jc,m.yE,m.yE]}),at})()},44224:(je,z,c)=>{"use strict";c.d(z,{q:()=>h,w:()=>f});var r=c(58527),n=c(6364),v=c(51635);let h=(()=>{var A;class M{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(E){this._vertical=(0,n.he)(E)}get inset(){return this._inset}set inset(E){this._inset=(0,n.he)(E)}}return(A=M).\u0275fac=function(E){return new(E||A)},A.\u0275cmp=r.VBU({type:A,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(E,y){2&E&&(r.BMQ("aria-orientation",y.vertical?"vertical":"horizontal"),r.AVh("mat-divider-vertical",y.vertical)("mat-divider-horizontal",!y.vertical)("mat-divider-inset",y.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(E,y){},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}),M})(),f=(()=>{var A;class M{}return(A=M).\u0275fac=function(E){return new(E||A)},A.\u0275mod=r.$C({type:A}),A.\u0275inj=r.G2t({imports:[v.yE,v.yE]}),M})()},26945:(je,z,c)=>{"use strict";c.d(z,{BS:()=>Le,MY:()=>Oe,GK:()=>Re,Z2:()=>Pe});var r=c(58527),n=c(40567),v=c(6364),h=c(80583),f=c(10399);let A=0;const M=new r.nKC("CdkAccordion");let T=(()=>{var ye;class Ie{constructor(){this._stateChanges=new h.B7,this._openCloseAllActions=new h.B7,this.id="cdk-accordion-"+A++,this._multi=!1}get multi(){return this._multi}set multi(K){this._multi=(0,v.he)(K)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(K){this._stateChanges.next(K)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)},ye.\u0275dir=r.FsC({type:ye,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[r.Jv_([{provide:M,useExisting:ye}]),r.OA$]}),Ie})(),E=0,y=(()=>{var ye;class Ie{get expanded(){return this._expanded}set expanded(K){K=(0,v.he)(K),this._expanded!==K&&(this._expanded=K,this.expandedChange.emit(K),K?(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(K){this._disabled=(0,v.he)(K)}constructor(K,ve,De){this.accordion=K,this._changeDetectorRef=ve,this._expansionDispatcher=De,this._openCloseAllSubscription=f.y.EMPTY,this.closed=new r.bkB,this.opened=new r.bkB,this.destroyed=new r.bkB,this.expandedChange=new r.bkB,this.id="cdk-accordion-child-"+E++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=De.listen((pe,Qe)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Qe&&this.id!==pe&&(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(K=>{this.disabled||(this.expanded=K)})}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(r.rXU(M,12),r.rXU(r.gRc),r.rXU(n.zP))},ye.\u0275dir=r.FsC({type:ye,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[r.Jv_([{provide:M,useValue:void 0}])]}),Ie})(),S=(()=>{var ye;class Ie{}return(ye=Ie).\u0275fac=function(K){return new(K||ye)},ye.\u0275mod=r.$C({type:ye}),ye.\u0275inj=r.G2t({}),Ie})();var l=c(76614),s=c(61142),u=c(51635),m=c(31308),I=c(53461),R=c(34593),O=c(8619),Y=c(65706),j=c(25373),fe=c(12532),te=c(16229),ce=c(40262);const H=["body"],Z=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],X=["mat-expansion-panel-header","*","mat-action-row"];function ue(ye,Ie){}const Me=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],be=["mat-panel-title","mat-panel-description","*"];function Q(ye,Ie){if(1&ye&&r.nrm(0,"span",2),2&ye){const at=r.XpG();r.Y8G("@indicatorRotate",at._getExpandedState())}}const ne=new r.nKC("MAT_ACCORDION"),Ge="225ms cubic-bezier(0.4,0.0,0.2,1)",ge={indicatorRotate:(0,ce.hZ)("indicatorRotate",[(0,ce.wk)("collapsed, void",(0,ce.iF)({transform:"rotate(0deg)"})),(0,ce.wk)("expanded",(0,ce.iF)({transform:"rotate(180deg)"})),(0,ce.kY)("expanded <=> collapsed, void => collapsed",(0,ce.i0)(Ge))]),bodyExpansion:(0,ce.hZ)("bodyExpansion",[(0,ce.wk)("collapsed, void",(0,ce.iF)({height:"0px",visibility:"hidden"})),(0,ce.wk)("expanded",(0,ce.iF)({height:"*",visibility:""})),(0,ce.kY)("expanded <=> collapsed, void => collapsed",(0,ce.i0)(Ge))])},Xe=new r.nKC("MAT_EXPANSION_PANEL");let ot=(()=>{var ye;class Ie{constructor(K,ve){this._template=K,this._expansionPanel=ve}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(r.rXU(r.C4Q),r.rXU(Xe,8))},ye.\u0275dir=r.FsC({type:ye,selectors:[["ng-template","matExpansionPanelContent",""]]}),Ie})(),dt=0;const xe=new r.nKC("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Re=(()=>{var ye;class Ie extends y{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(K){this._hideToggle=(0,v.he)(K)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(K){this._togglePosition=K}constructor(K,ve,De,pe,Qe,zt,Vt){super(K,ve,De),this._viewContainerRef=pe,this._animationMode=zt,this._hideToggle=!1,this.afterExpand=new r.bkB,this.afterCollapse=new r.bkB,this._inputChanges=new h.B7,this._headerId="mat-expansion-panel-header-"+dt++,this._bodyAnimationDone=new h.B7,this.accordion=K,this._document=Qe,this._bodyAnimationDone.pipe((0,I.F)((de,J)=>de.fromState===J.fromState&&de.toState===J.toState)).subscribe(de=>{"void"!==de.fromState&&("expanded"===de.toState?this.afterExpand.emit():"collapsed"===de.toState&&this.afterCollapse.emit())}),Vt&&(this.hideToggle=Vt.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,R.Z)(null),(0,O.p)(()=>this.expanded&&!this._portal),(0,Y.s)(1)).subscribe(()=>{this._portal=new l.VA(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(K){this._inputChanges.next(K)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const K=this._document.activeElement,ve=this._body.nativeElement;return K===ve||ve.contains(K)}return!1}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(r.rXU(ne,12),r.rXU(r.gRc),r.rXU(n.zP),r.rXU(r.c1b),r.rXU(s.qQ),r.rXU(r.bc$,8),r.rXU(xe,8))},ye.\u0275cmp=r.VBU({type:ye,selectors:[["mat-expansion-panel"]],contentQueries:function(K,ve,De){if(1&K&&r.wni(De,ot,5),2&K){let pe;r.mGM(pe=r.lsd())&&(ve._lazyContent=pe.first)}},viewQuery:function(K,ve){if(1&K&&r.GBs(H,5),2&K){let De;r.mGM(De=r.lsd())&&(ve._body=De.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(K,ve){2&K&&r.AVh("mat-expanded",ve.expanded)("_mat-animation-noopable","NoopAnimations"===ve._animationMode)("mat-expansion-panel-spacing",ve._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[r.Jv_([{provide:ne,useValue:void 0},{provide:Xe,useExisting:ye}]),r.Vt3,r.OA$],ngContentSelectors:X,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(K,ve){if(1&K){const De=r.RV6();r.NAR(Z),r.SdG(0),r.j41(1,"div",1,0),r.bIt("@bodyExpansion.done",function(Qe){return r.eBV(De),r.Njj(ve._bodyAnimationDone.next(Qe))}),r.j41(3,"div",2),r.SdG(4,1),r.DNE(5,ue,0,0,"ng-template",3),r.k0s(),r.SdG(6,2),r.k0s()}2&K&&(r.R7$(),r.Y8G("@bodyExpansion",ve._getExpandedState())("id",ve.id),r.BMQ("aria-labelledby",ve._headerId),r.R7$(4),r.Y8G("cdkPortalOutlet",ve._portal))},dependencies:[l.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:[ge.bodyExpansion]},changeDetection:0}),Ie})();class ee{}const W=(0,u.BF)(ee);let Pe=(()=>{var ye;class Ie extends W{constructor(K,ve,De,pe,Qe,zt,Vt){super(),this.panel=K,this._element=ve,this._focusMonitor=De,this._changeDetectorRef=pe,this._animationMode=zt,this._parentChangeSubscription=f.y.EMPTY;const de=K.accordion?K.accordion._stateChanges.pipe((0,O.p)(J=>!(!J.hideToggle&&!J.togglePosition))):fe.w;this.tabIndex=parseInt(Vt||"")||0,this._parentChangeSubscription=(0,te.h)(K.opened,K.closed,de,K._inputChanges.pipe((0,O.p)(J=>!!(J.hideToggle||J.disabled||J.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),K.closed.pipe((0,O.p)(()=>K._containsFocus())).subscribe(()=>De.focusVia(ve,"program")),Qe&&(this.expandedHeight=Qe.expandedHeight,this.collapsedHeight=Qe.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 K=this._isExpanded();return K&&this.expandedHeight?this.expandedHeight:!K&&this.collapsedHeight?this.collapsedHeight:null}_keydown(K){switch(K.keyCode){case j.t6:case j.Fm:(0,j.rp)(K)||(K.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(K))}}focus(K,ve){K?this._focusMonitor.focusVia(this._element,K,ve):this._element.nativeElement.focus(ve)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(K=>{K&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return(ye=Ie).\u0275fac=function(K){return new(K||ye)(r.rXU(Re,1),r.rXU(r.aKT),r.rXU(m.FN),r.rXU(r.gRc),r.rXU(xe,8),r.rXU(r.bc$,8),r.kS0("tabindex"))},ye.\u0275cmp=r.VBU({type:ye,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(K,ve){1&K&&r.bIt("click",function(){return ve._toggle()})("keydown",function(pe){return ve._keydown(pe)}),2&K&&(r.BMQ("id",ve.panel._headerId)("tabindex",ve.tabIndex)("aria-controls",ve._getPanelId())("aria-expanded",ve._isExpanded())("aria-disabled",ve.panel.disabled),r.xc7("height",ve._getHeaderHeight()),r.AVh("mat-expanded",ve._isExpanded())("mat-expansion-toggle-indicator-after","after"===ve._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===ve._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===ve._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[r.Vt3],ngContentSelectors:be,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(K,ve){1&K&&(r.NAR(Me),r.j41(0,"span",0),r.SdG(1),r.SdG(2,1),r.SdG(3,2),r.k0s(),r.DNE(4,Q,1,1,"span",1)),2&K&&(r.AVh("mat-content-hide-toggle",!ve._showToggle()),r.R7$(4),r.Y8G("ngIf",ve._showToggle()))},dependencies:[s.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:[ge.indicatorRotate]},changeDetection:0}),Ie})(),Le=(()=>{var ye;class Ie extends T{constructor(){super(...arguments),this._ownHeaders=new r.rOR,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(K){this._hideToggle=(0,v.he)(K)}ngAfterContentInit(){this._headers.changes.pipe((0,R.Z)(this._headers)).subscribe(K=>{this._ownHeaders.reset(K.filter(ve=>ve.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new m.Bu(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(K){this._keyManager.onKeydown(K)}_handleHeaderFocus(K){this._keyManager.updateActiveItem(K)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}}return(ye=Ie).\u0275fac=(()=>{let at;return function(ve){return(at||(at=r.xGo(ye)))(ve||ye)}})(),ye.\u0275dir=r.FsC({type:ye,selectors:[["mat-accordion"]],contentQueries:function(K,ve,De){if(1&K&&r.wni(De,Pe,5),2&K){let pe;r.mGM(pe=r.lsd())&&(ve._headers=pe)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(K,ve){2&K&&r.AVh("mat-accordion-multi",ve.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[r.Jv_([{provide:ne,useExisting:ye}]),r.Vt3]}),Ie})(),Oe=(()=>{var ye;class Ie{}return(ye=Ie).\u0275fac=function(K){return new(K||ye)},ye.\u0275mod=r.$C({type:ye}),ye.\u0275inj=r.G2t({imports:[s.MD,u.yE,S,l.jc]}),Ie})()},74292:(je,z,c)=>{"use strict";c.d(z,{RG:()=>Gt,qT:()=>at,xb:()=>pe});var r=c(58527),v=(c(40262),c(61142)),h=c(26321),f=c(51635);let at=(()=>{var Zt;class kn{}return(Zt=kn).\u0275fac=function(ni){return new(ni||Zt)},Zt.\u0275dir=r.FsC({type:Zt}),kn})();const pe=new r.nKC("MatFormField");let Gt=(()=>{var Zt;class kn{}return(Zt=kn).\u0275fac=function(ni){return new(ni||Zt)},Zt.\u0275mod=r.$C({type:Zt}),Zt.\u0275inj=r.G2t({imports:[f.yE,v.MD,h.w5,f.yE]}),kn})()},29370:(je,z,c)=>{"use strict";c.d(z,{An:()=>Ue,m_:()=>ee,tp:()=>X});var r=c(58527),n=c(51635),v=c(6364),h=c(61142),f=c(43848),A=c(59859),M=c(93181),T=c(10399),E=c(91384),y=c(83915),S=c(14714),l=c(43615),s=c(8282),u=c(65706),m=c(94485),I=c(74150);const R=["*"];let O;function j(W){return function Y(){if(void 0===O&&(O=null,typeof window<"u")){const W=window;void 0!==W.trustedTypes&&(O=W.trustedTypes.createPolicy("angular#components",{createHTML:Pe=>Pe}))}return O}()?.createHTML(W)||W}function fe(W){return Error(`Unable to find icon with the name "${W}"`)}function ce(W){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${W}".`)}function H(W){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${W}".`)}class Z{constructor(Pe,le,oe){this.url=Pe,this.svgText=le,this.options=oe}}let X=(()=>{var W;class Pe{constructor(oe,Le,Oe,ye){this._httpClient=oe,this._sanitizer=Le,this._errorHandler=ye,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=Oe}addSvgIcon(oe,Le,Oe){return this.addSvgIconInNamespace("",oe,Le,Oe)}addSvgIconLiteral(oe,Le,Oe){return this.addSvgIconLiteralInNamespace("",oe,Le,Oe)}addSvgIconInNamespace(oe,Le,Oe,ye){return this._addSvgIconConfig(oe,Le,new Z(Oe,null,ye))}addSvgIconResolver(oe){return this._resolvers.push(oe),this}addSvgIconLiteralInNamespace(oe,Le,Oe,ye){const Ie=this._sanitizer.sanitize(r.WPN.HTML,Oe);if(!Ie)throw H(Oe);const at=j(Ie);return this._addSvgIconConfig(oe,Le,new Z("",at,ye))}addSvgIconSet(oe,Le){return this.addSvgIconSetInNamespace("",oe,Le)}addSvgIconSetLiteral(oe,Le){return this.addSvgIconSetLiteralInNamespace("",oe,Le)}addSvgIconSetInNamespace(oe,Le,Oe){return this._addSvgIconSetConfig(oe,new Z(Le,null,Oe))}addSvgIconSetLiteralInNamespace(oe,Le,Oe){const ye=this._sanitizer.sanitize(r.WPN.HTML,Le);if(!ye)throw H(Le);const Ie=j(ye);return this._addSvgIconSetConfig(oe,new Z("",Ie,Oe))}registerFontClassAlias(oe,Le=oe){return this._fontCssClassesByAlias.set(oe,Le),this}classNameForFontAlias(oe){return this._fontCssClassesByAlias.get(oe)||oe}setDefaultFontSetClass(...oe){return this._defaultFontSetClass=oe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(oe){const Le=this._sanitizer.sanitize(r.WPN.RESOURCE_URL,oe);if(!Le)throw ce(oe);const Oe=this._cachedIconsByUrl.get(Le);return Oe?(0,f.of)(be(Oe)):this._loadSvgIconFromConfig(new Z(oe,null)).pipe((0,E.M)(ye=>this._cachedIconsByUrl.set(Le,ye)),(0,y.T)(ye=>be(ye)))}getNamedSvgIcon(oe,Le=""){const Oe=Q(Le,oe);let ye=this._svgIconConfigs.get(Oe);if(ye)return this._getSvgFromConfig(ye);if(ye=this._getIconConfigFromResolvers(Le,oe),ye)return this._svgIconConfigs.set(Oe,ye),this._getSvgFromConfig(ye);const Ie=this._iconSetConfigs.get(Le);return Ie?this._getSvgFromIconSetConfigs(oe,Ie):(0,A.$)(fe(Oe))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(oe){return oe.svgText?(0,f.of)(be(this._svgElementFromConfig(oe))):this._loadSvgIconFromConfig(oe).pipe((0,y.T)(Le=>be(Le)))}_getSvgFromIconSetConfigs(oe,Le){const Oe=this._extractIconWithNameFromAnySet(oe,Le);if(Oe)return(0,f.of)(Oe);const ye=Le.filter(Ie=>!Ie.svgText).map(Ie=>this._loadSvgIconSetFromConfig(Ie).pipe((0,S.W)(at=>{const ve=`Loading icon set URL: ${this._sanitizer.sanitize(r.WPN.RESOURCE_URL,Ie.url)} failed: ${at.message}`;return this._errorHandler.handleError(new Error(ve)),(0,f.of)(null)})));return(0,M.p)(ye).pipe((0,y.T)(()=>{const Ie=this._extractIconWithNameFromAnySet(oe,Le);if(!Ie)throw fe(oe);return Ie}))}_extractIconWithNameFromAnySet(oe,Le){for(let Oe=Le.length-1;Oe>=0;Oe--){const ye=Le[Oe];if(ye.svgText&&ye.svgText.toString().indexOf(oe)>-1){const Ie=this._svgElementFromConfig(ye),at=this._extractSvgIconFromSet(Ie,oe,ye.options);if(at)return at}}return null}_loadSvgIconFromConfig(oe){return this._fetchIcon(oe).pipe((0,E.M)(Le=>oe.svgText=Le),(0,y.T)(()=>this._svgElementFromConfig(oe)))}_loadSvgIconSetFromConfig(oe){return oe.svgText?(0,f.of)(null):this._fetchIcon(oe).pipe((0,E.M)(Le=>oe.svgText=Le))}_extractSvgIconFromSet(oe,Le,Oe){const ye=oe.querySelector(`[id="${Le}"]`);if(!ye)return null;const Ie=ye.cloneNode(!0);if(Ie.removeAttribute("id"),"svg"===Ie.nodeName.toLowerCase())return this._setSvgAttributes(Ie,Oe);if("symbol"===Ie.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Ie),Oe);const at=this._svgElementFromString(j("<svg></svg>"));return at.appendChild(Ie),this._setSvgAttributes(at,Oe)}_svgElementFromString(oe){const Le=this._document.createElement("DIV");Le.innerHTML=oe;const Oe=Le.querySelector("svg");if(!Oe)throw Error("<svg> tag not found");return Oe}_toSvgElement(oe){const Le=this._svgElementFromString(j("<svg></svg>")),Oe=oe.attributes;for(let ye=0;ye<Oe.length;ye++){const{name:Ie,value:at}=Oe[ye];"id"!==Ie&&Le.setAttribute(Ie,at)}for(let ye=0;ye<oe.childNodes.length;ye++)oe.childNodes[ye].nodeType===this._document.ELEMENT_NODE&&Le.appendChild(oe.childNodes[ye].cloneNode(!0));return Le}_setSvgAttributes(oe,Le){return oe.setAttribute("fit",""),oe.setAttribute("height","100%"),oe.setAttribute("width","100%"),oe.setAttribute("preserveAspectRatio","xMidYMid meet"),oe.setAttribute("focusable","false"),Le&&Le.viewBox&&oe.setAttribute("viewBox",Le.viewBox),oe}_fetchIcon(oe){const{url:Le,options:Oe}=oe,ye=Oe?.withCredentials??!1;if(!this._httpClient)throw function te(){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==Le)throw Error(`Cannot fetch icon from URL "${Le}".`);const Ie=this._sanitizer.sanitize(r.WPN.RESOURCE_URL,Le);if(!Ie)throw ce(Le);const at=this._inProgressUrlFetches.get(Ie);if(at)return at;const K=this._httpClient.get(Ie,{responseType:"text",withCredentials:ye}).pipe((0,y.T)(ve=>j(ve)),(0,l.j)(()=>this._inProgressUrlFetches.delete(Ie)),(0,s.u)());return this._inProgressUrlFetches.set(Ie,K),K}_addSvgIconConfig(oe,Le,Oe){return this._svgIconConfigs.set(Q(oe,Le),Oe),this}_addSvgIconSetConfig(oe,Le){const Oe=this._iconSetConfigs.get(oe);return Oe?Oe.push(Le):this._iconSetConfigs.set(oe,[Le]),this}_svgElementFromConfig(oe){if(!oe.svgElement){const Le=this._svgElementFromString(oe.svgText);this._setSvgAttributes(Le,oe.options),oe.svgElement=Le}return oe.svgElement}_getIconConfigFromResolvers(oe,Le){for(let Oe=0;Oe<this._resolvers.length;Oe++){const ye=this._resolvers[Oe](Le,oe);if(ye)return ne(ye)?new Z(ye.url,null,ye.options):new Z(ye,null)}}}return(W=Pe).\u0275fac=function(oe){return new(oe||W)(r.KVO(m.Qq,8),r.KVO(I.up),r.KVO(h.qQ,8),r.KVO(r.zcH))},W.\u0275prov=r.jDH({token:W,factory:W.\u0275fac,providedIn:"root"}),Pe})();function be(W){return W.cloneNode(!0)}function Q(W,Pe){return W+":"+Pe}function ne(W){return!(!W.url||!W.options)}const Ge=(0,n.Zc)(class{constructor(W){this._elementRef=W}}),ge=new r.nKC("MAT_ICON_DEFAULT_OPTIONS"),Xe=new r.nKC("mat-icon-location",{providedIn:"root",factory:function ot(){const W=(0,r.WQX)(h.qQ),Pe=W?W.location:null;return{getPathname:()=>Pe?Pe.pathname+Pe.search:""}}}),dt=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],xe=dt.map(W=>`[${W}]`).join(", "),Re=/^url\(['"]?#(.*?)['"]?\)$/;let Ue=(()=>{var W;class Pe extends Ge{get inline(){return this._inline}set inline(oe){this._inline=(0,v.he)(oe)}get svgIcon(){return this._svgIcon}set svgIcon(oe){oe!==this._svgIcon&&(oe?this._updateSvgIcon(oe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=oe)}get fontSet(){return this._fontSet}set fontSet(oe){const Le=this._cleanupFontValue(oe);Le!==this._fontSet&&(this._fontSet=Le,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(oe){const Le=this._cleanupFontValue(oe);Le!==this._fontIcon&&(this._fontIcon=Le,this._updateFontIconClasses())}constructor(oe,Le,Oe,ye,Ie,at){super(oe),this._iconRegistry=Le,this._location=ye,this._errorHandler=Ie,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=T.y.EMPTY,at&&(at.color&&(this.color=this.defaultColor=at.color),at.fontSet&&(this.fontSet=at.fontSet)),Oe||oe.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(oe){if(!oe)return["",""];const Le=oe.split(":");switch(Le.length){case 1:return["",Le[0]];case 2:return Le;default:throw Error(`Invalid icon name: "${oe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const oe=this._elementsWithExternalReferences;if(oe&&oe.size){const Le=this._location.getPathname();Le!==this._previousPath&&(this._previousPath=Le,this._prependPathToReferences(Le))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(oe){this._clearSvgElement();const Le=this._location.getPathname();this._previousPath=Le,this._cacheChildrenWithExternalReferences(oe),this._prependPathToReferences(Le),this._elementRef.nativeElement.appendChild(oe)}_clearSvgElement(){const oe=this._elementRef.nativeElement;let Le=oe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Le--;){const Oe=oe.childNodes[Le];(1!==Oe.nodeType||"svg"===Oe.nodeName.toLowerCase())&&Oe.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const oe=this._elementRef.nativeElement,Le=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Oe=>Oe.length>0);this._previousFontSetClass.forEach(Oe=>oe.classList.remove(Oe)),Le.forEach(Oe=>oe.classList.add(Oe)),this._previousFontSetClass=Le,this.fontIcon!==this._previousFontIconClass&&!Le.includes("mat-ligature-font")&&(this._previousFontIconClass&&oe.classList.remove(this._previousFontIconClass),this.fontIcon&&oe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(oe){return"string"==typeof oe?oe.trim().split(" ")[0]:oe}_prependPathToReferences(oe){const Le=this._elementsWithExternalReferences;Le&&Le.forEach((Oe,ye)=>{Oe.forEach(Ie=>{ye.setAttribute(Ie.name,`url('${oe}#${Ie.value}')`)})})}_cacheChildrenWithExternalReferences(oe){const Le=oe.querySelectorAll(xe),Oe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ye=0;ye<Le.length;ye++)dt.forEach(Ie=>{const at=Le[ye],K=at.getAttribute(Ie),ve=K?K.match(Re):null;if(ve){let De=Oe.get(at);De||(De=[],Oe.set(at,De)),De.push({name:Ie,value:ve[1]})}})}_updateSvgIcon(oe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),oe){const[Le,Oe]=this._splitIconName(oe);Le&&(this._svgNamespace=Le),Oe&&(this._svgName=Oe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Oe,Le).pipe((0,u.s)(1)).subscribe(ye=>this._setSvgElement(ye),ye=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Le}:${Oe}! ${ye.message}`))})}}}return(W=Pe).\u0275fac=function(oe){return new(oe||W)(r.rXU(r.aKT),r.rXU(X),r.kS0("aria-hidden"),r.rXU(Xe),r.rXU(r.zcH),r.rXU(ge,8))},W.\u0275cmp=r.VBU({type:W,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(oe,Le){2&oe&&(r.BMQ("data-mat-icon-type",Le._usingFontIcon()?"font":"svg")("data-mat-icon-name",Le._svgName||Le.fontIcon)("data-mat-icon-namespace",Le._svgNamespace||Le.fontSet)("fontIcon",Le._usingFontIcon()?Le.fontIcon:null),r.AVh("mat-icon-inline",Le.inline)("mat-icon-no-color","primary"!==Le.color&&"accent"!==Le.color&&"warn"!==Le.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[r.Vt3],ngContentSelectors:R,decls:1,vars:0,template:function(oe,Le){1&oe&&(r.NAR(),r.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}),Pe})(),ee=(()=>{var W;class Pe{}return(W=Pe).\u0275fac=function(oe){return new(oe||W)},W.\u0275mod=r.$C({type:W}),W.\u0275inj=r.G2t({imports:[n.yE,n.yE]}),Pe})()},50599:(je,z,c)=>{"use strict";c.d(z,{fg:()=>Y,fS:()=>j});var r=c(6364),n=c(72653),v=c(58527),h=c(12532),f=c(80583);const A=(0,n.BQ)({passive:!0});let M=(()=>{var fe;class te{constructor(H,Z){this._platform=H,this._ngZone=Z,this._monitoredElements=new Map}monitor(H){if(!this._platform.isBrowser)return h.w;const Z=(0,r.i8)(H),X=this._monitoredElements.get(Z);if(X)return X.subject;const ue=new f.B7,Me="cdk-text-field-autofilled",be=Q=>{"cdk-text-field-autofill-start"!==Q.animationName||Z.classList.contains(Me)?"cdk-text-field-autofill-end"===Q.animationName&&Z.classList.contains(Me)&&(Z.classList.remove(Me),this._ngZone.run(()=>ue.next({target:Q.target,isAutofilled:!1}))):(Z.classList.add(Me),this._ngZone.run(()=>ue.next({target:Q.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Z.addEventListener("animationstart",be,A),Z.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Z,{subject:ue,unlisten:()=>{Z.removeEventListener("animationstart",be,A)}}),ue}stopMonitoring(H){const Z=(0,r.i8)(H),X=this._monitoredElements.get(Z);X&&(X.unlisten(),X.subject.complete(),Z.classList.remove("cdk-text-field-autofill-monitored"),Z.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Z))}ngOnDestroy(){this._monitoredElements.forEach((H,Z)=>this.stopMonitoring(Z))}}return(fe=te).\u0275fac=function(H){return new(H||fe)(v.KVO(n.OD),v.KVO(v.SKi))},fe.\u0275prov=v.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"}),te})(),y=(()=>{var fe;class te{}return(fe=te).\u0275fac=function(H){return new(H||fe)},fe.\u0275mod=v.$C({type:fe}),fe.\u0275inj=v.G2t({}),te})();var S=c(56106),l=c(51635),s=c(74292);const m=new v.nKC("MAT_INPUT_VALUE_ACCESSOR"),I=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let R=0;const O=(0,l.J8)(class{constructor(fe,te,ce,H){this._defaultErrorStateMatcher=fe,this._parentForm=te,this._parentFormGroup=ce,this.ngControl=H,this.stateChanges=new f.B7}});let Y=(()=>{var fe;class te extends O{get disabled(){return this._disabled}set disabled(H){this._disabled=(0,r.he)(H),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(H){this._id=H||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(S.k0.required)??!1}set required(H){this._required=(0,r.he)(H)}get type(){return this._type}set type(H){this._type=H||"text",this._validateType(),!this._isTextarea&&(0,n.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(H){H!==this.value&&(this._inputValueAccessor.value=H,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(H){this._readonly=(0,r.he)(H)}constructor(H,Z,X,ue,Me,be,Q,ne,Ge,ge){super(be,ue,Me,X),this._elementRef=H,this._platform=Z,this._autofillMonitor=ne,this._formField=ge,this._uid="mat-input-"+R++,this.focused=!1,this.stateChanges=new f.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(dt=>(0,n.MU)().has(dt)),this._iOSKeyupListener=dt=>{const xe=dt.target;!xe.value&&0===xe.selectionStart&&0===xe.selectionEnd&&(xe.setSelectionRange(1,1),xe.setSelectionRange(0,0))};const Xe=this._elementRef.nativeElement,ot=Xe.nodeName.toLowerCase();this._inputValueAccessor=Q||Xe,this._previousNativeValue=this.value,this.id=this.id,Z.IOS&&Ge.runOutsideAngular(()=>{H.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ot,this._isTextarea="textarea"===ot,this._isInFormField=!!ge,this._isNativeSelect&&(this.controlType=Xe.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(H=>{this.autofilled=H.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(H){this._elementRef.nativeElement.focus(H)}_focusChanged(H){H!==this.focused&&(this.focused=H,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const H=this._elementRef.nativeElement.value;this._previousNativeValue!==H&&(this._previousNativeValue=H,this.stateChanges.next())}_dirtyCheckPlaceholder(){const H=this._getPlaceholder();if(H!==this._previousPlaceholder){const Z=this._elementRef.nativeElement;this._previousPlaceholder=H,H?Z.setAttribute("placeholder",H):Z.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){I.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let H=this._elementRef.nativeElement.validity;return H&&H.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const H=this._elementRef.nativeElement,Z=H.options[0];return this.focused||H.multiple||!this.empty||!!(H.selectedIndex>-1&&Z&&Z.label)}return this.focused||!this.empty}setDescribedByIds(H){H.length?this._elementRef.nativeElement.setAttribute("aria-describedby",H.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const H=this._elementRef.nativeElement;return this._isNativeSelect&&(H.multiple||H.size>1)}}return(fe=te).\u0275fac=function(H){return new(H||fe)(v.rXU(v.aKT),v.rXU(n.OD),v.rXU(S.vO,10),v.rXU(S.cV,8),v.rXU(S.j4,8),v.rXU(l.es),v.rXU(m,10),v.rXU(M),v.rXU(v.SKi),v.rXU(s.xb,8))},fe.\u0275dir=v.FsC({type:fe,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(H,Z){1&H&&v.bIt("focus",function(){return Z._focusChanged(!0)})("blur",function(){return Z._focusChanged(!1)})("input",function(){return Z._onInput()}),2&H&&(v.Mr5("id",Z.id)("disabled",Z.disabled)("required",Z.required),v.BMQ("name",Z.name||null)("readonly",Z.readonly&&!Z._isNativeSelect||null)("aria-invalid",Z.empty&&Z.required?null:Z.errorState)("aria-required",Z.required)("id",Z.id),v.AVh("mat-input-server",Z._isServer)("mat-mdc-form-field-textarea-control",Z._isInFormField&&Z._isTextarea)("mat-mdc-form-field-input-control",Z._isInFormField)("mdc-text-field__input",Z._isInFormField)("mat-mdc-native-select-inline",Z._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[v.Mj6.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[v.Jv_([{provide:s.qT,useExisting:fe}]),v.Vt3,v.OA$]}),te})(),j=(()=>{var fe;class te{}return(fe=te).\u0275fac=function(H){return new(H||fe)},fe.\u0275mod=v.$C({type:fe}),fe.\u0275inj=v.G2t({imports:[l.yE,s.RG,s.RG,y,l.yE]}),te})()},47973:(je,z,c)=>{"use strict";c.d(z,{iV:()=>y,wG:()=>l});var r=c(58527),n=c(51635),v=c(31308);const h=["mat-button",""],f=["*"],T=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],E=(0,n.Zc)((0,n.Ob)((0,n.GG)(class{constructor(s){this._elementRef=s}})));let y=(()=>{var s;class u extends E{constructor(I,R,O){super(I),this._focusMonitor=R,this._animationMode=O,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Y of T)this._hasHostAttributes(Y)&&this._getHostElement().classList.add(Y);I.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(I,R){I?this._focusMonitor.focusVia(this._getHostElement(),I,R):this._getHostElement().focus(R)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...I){return I.some(R=>this._getHostElement().hasAttribute(R))}}return(s=u).\u0275fac=function(I){return new(I||s)(r.rXU(r.aKT),r.rXU(v.FN),r.rXU(r.bc$,8))},s.\u0275cmp=r.VBU({type:s,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(I,R){if(1&I&&r.GBs(n.r6,5),2&I){let O;r.mGM(O=r.lsd())&&(R.ripple=O.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(I,R){2&I&&(r.BMQ("disabled",R.disabled||null),r.AVh("_mat-animation-noopable","NoopAnimations"===R._animationMode)("mat-button-disabled",R.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.Vt3],attrs:h,ngContentSelectors:f,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(I,R){1&I&&(r.NAR(),r.j41(0,"span",0),r.SdG(1),r.k0s(),r.nrm(2,"span",1)(3,"span",2)),2&I&&(r.R7$(2),r.AVh("mat-button-ripple-round",R.isRoundButton||R.isIconButton),r.Y8G("matRippleDisabled",R._isRippleDisabled())("matRippleCentered",R.isIconButton)("matRippleTrigger",R._getHostElement()))},dependencies:[n.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}),u})(),l=(()=>{var s;class u{}return(s=u).\u0275fac=function(I){return new(I||s)},s.\u0275mod=r.$C({type:s}),s.\u0275inj=r.G2t({imports:[n.pZ,n.yE,n.yE]}),u})()},97979:(je,z,c)=>{"use strict";c.d(z,{ic:()=>ce});var r=c(58527),n=c(51635);let ce=(()=>{var H;class Z{}return(H=Z).\u0275fac=function(ue){return new(ue||H)},H.\u0275mod=r.$C({type:H}),H.\u0275inj=r.G2t({imports:[n.yE,n.yE]}),Z})()},33955:(je,z,c)=>{"use strict";c.d(z,{NZ:()=>ue,Dy:()=>Me});var r=c(31308),n=c(58527),v=c(56106),h=c(51635),f=c(6364);const A=["input"],M=["label"],E=new n.nKC("mat-checkbox-default-options",{providedIn:"root",factory:y});function y(){return{color:"accent",clickAction:"check-indeterminate"}}let s=0;const u=y(),m=(0,h.BF)((0,h.Zc)((0,h.GG)((0,h.Ob)(class{constructor(be){this._elementRef=be}}))));let I=(()=>{var be;class Q extends m{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(Ge){this._required=(0,f.he)(Ge)}constructor(Ge,ge,Xe,ot,dt,xe,Re){super(ge),this._changeDetectorRef=Xe,this._ngZone=ot,this._animationMode=xe,this._options=Re,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||u,this.color=this.defaultColor=this._options.color||u.color,this.tabIndex=parseInt(dt)||0,this.id=this._uniqueId=`${Ge}${++s}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(Ge){const ge=(0,f.he)(Ge);ge!=this.checked&&(this._checked=ge,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Ge){const ge=(0,f.he)(Ge);ge!==this.disabled&&(this._disabled=ge,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(Ge){const ge=Ge!=this._indeterminate;this._indeterminate=(0,f.he)(Ge),ge&&(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(Ge){this.checked=!!Ge}registerOnChange(Ge){this._controlValueAccessorChangeFn=Ge}registerOnTouched(Ge){this._onTouched=Ge}setDisabledState(Ge){this.disabled=Ge}_transitionCheckState(Ge){let ge=this._currentCheckState,Xe=this._getAnimationTargetElement();if(ge!==Ge&&Xe&&(this._currentAnimationClass&&Xe.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ge,Ge),this._currentCheckState=Ge,this._currentAnimationClass.length>0)){Xe.classList.add(this._currentAnimationClass);const ot=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Xe.classList.remove(ot)},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 Ge=this._options?.clickAction;this.disabled||"noop"===Ge?!this.disabled&&"noop"===Ge&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==Ge&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(Ge){Ge.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(Ge,ge){if("NoopAnimations"===this._animationMode)return"";switch(Ge){case 0:if(1===ge)return this._animationClasses.uncheckedToChecked;if(3==ge)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===ge?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===ge?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===ge?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(Ge){const ge=this._inputElement;ge&&(ge.nativeElement.indeterminate=Ge)}}return(be=Q).\u0275fac=function(Ge){n.QTQ()},be.\u0275dir=n.FsC({type:be,viewQuery:function(Ge,ge){if(1&Ge&&(n.GBs(A,5),n.GBs(M,5),n.GBs(h.r6,5)),2&Ge){let Xe;n.mGM(Xe=n.lsd())&&(ge._inputElement=Xe.first),n.mGM(Xe=n.lsd())&&(ge._labelElement=Xe.first),n.mGM(Xe=n.lsd())&&(ge.ripple=Xe.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]}),Q})(),j=(()=>{var be;class Q{}return(be=Q).\u0275fac=function(Ge){return new(Ge||be)},be.\u0275mod=n.$C({type:be}),be.\u0275inj=n.G2t({}),Q})();var te=c(26321);const ce=["*"],H=be=>({enterDuration:be});class Z{}const X={provide:v.kq,useExisting:(0,n.Rfq)(()=>ue),multi:!0};let ue=(()=>{var be;class Q extends I{constructor(Ge,ge,Xe,ot,dt,xe,Re){super("mat-checkbox-",Ge,ge,ot,dt,xe,Re),this._focusMonitor=Xe,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(Ge){const ge=new Z;return ge.source=this,ge.checked=Ge,ge}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(Ge=>{Ge||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(Ge){Ge.stopPropagation(),super._handleInputClick()}focus(Ge,ge){Ge?this._focusMonitor.focusVia(this._inputElement,Ge,ge):this._inputElement.nativeElement.focus(ge)}}return(be=Q).\u0275fac=function(Ge){return new(Ge||be)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(r.FN),n.rXU(n.SKi),n.kS0("tabindex"),n.rXU(n.bc$,8),n.rXU(E,8))},be.\u0275cmp=n.VBU({type:be,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(Ge,ge){2&Ge&&(n.Mr5("id",ge.id),n.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null),n.AVh("mat-checkbox-indeterminate",ge.indeterminate)("mat-checkbox-checked",ge.checked)("mat-checkbox-disabled",ge.disabled)("mat-checkbox-label-before","before"==ge.labelPosition)("_mat-animation-noopable","NoopAnimations"===ge._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[n.Jv_([X]),n.Vt3],ngContentSelectors:ce,decls:17,vars:20,consts:[["label",""],["input",""],["checkboxLabel",""],[1,"mat-checkbox-layout"],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"change","click","id","required","checked","disabled","tabIndex"],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],[2,"display","none"]],template:function(Ge,ge){if(1&Ge){const Xe=n.RV6();n.NAR(),n.j41(0,"label",3,0)(2,"span",4)(3,"input",5,1),n.bIt("change",function(dt){return n.eBV(Xe),n.Njj(ge._onInteractionEvent(dt))})("click",function(dt){return n.eBV(Xe),n.Njj(ge._onInputClick(dt))}),n.k0s(),n.j41(5,"span",6),n.nrm(6,"span",7),n.k0s(),n.nrm(7,"span",8),n.j41(8,"span",9),n.qSk(),n.j41(9,"svg",10),n.nrm(10,"path",11),n.k0s(),n.joV(),n.nrm(11,"span",12),n.k0s()(),n.j41(12,"span",13,2),n.bIt("cdkObserveContent",function(){return n.eBV(Xe),n.Njj(ge._onLabelTextChange())}),n.j41(14,"span",14),n.EFF(15,"\xa0"),n.k0s(),n.SdG(16),n.k0s()()}if(2&Ge){const Xe=n.sdS(1),ot=n.sdS(13);n.BMQ("for",ge.inputId),n.R7$(2),n.AVh("mat-checkbox-inner-container-no-side-margin",!ot.textContent||!ot.textContent.trim()),n.R7$(),n.Y8G("id",ge.inputId)("required",ge.required)("checked",ge.checked)("disabled",ge.disabled)("tabIndex",ge.tabIndex),n.BMQ("value",ge.value)("name",ge.name)("aria-label",ge.ariaLabel||null)("aria-labelledby",ge.ariaLabelledby)("aria-describedby",ge.ariaDescribedby),n.R7$(2),n.Y8G("matRippleTrigger",Xe)("matRippleDisabled",ge._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.eq3(18,H,"NoopAnimations"===ge._animationMode?0:150))}},dependencies:[h.r6,te.Wv],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-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 mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Q})(),Me=(()=>{var be;class Q{}return(be=Q).\u0275fac=function(Ge){return new(Ge||be)},be.\u0275mod=n.$C({type:be}),be.\u0275inj=n.G2t({imports:[h.pZ,h.yE,te.w5,j,h.yE,j]}),Q})()},46906:(je,z,c)=>{"use strict";c.d(z,{Id:()=>X,O_:()=>Ge,l2:()=>dt});var r=c(25373),n=c(58527),v=c(51635),h=c(6364),f=c(72653),A=c(61142),M=c(80583),T=c(16229),E=c(65706),y=c(4208),S=c(34593),l=c(31308),s=c(51394),u=c(40567),m=c(56106),I=c(74292);const R=["*"],Y=new n.nKC("MatChipRemove"),j=new n.nKC("MatChipAvatar"),fe=new n.nKC("MatChipTrailingIcon");class te{constructor(Re){this._elementRef=Re}}const ce=(0,v.BF)((0,v.Zc)((0,v.GG)(te),"primary"),-1);let X=(()=>{var xe;class Re extends ce{get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(ee){const W=(0,h.he)(ee);W!==this._selected&&(this._selected=W,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(ee){this._value=ee}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(ee){this._selectable=(0,h.he)(ee)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(ee){this._disabled=(0,h.he)(ee)}get removable(){return this._removable}set removable(ee){this._removable=(0,h.he)(ee)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}constructor(ee,W,Pe,le,oe,Le,Oe,ye){super(ee),this._ngZone=W,this._changeDetectorRef=oe,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new M.B7,this._onBlur=new M.B7,this.selectionChange=new n.bkB,this.destroyed=new n.bkB,this.removed=new n.bkB,this._addHostClassName(),this._chipRippleTarget=Le.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new v.ug(this,W,this._chipRippleTarget,Pe),this._chipRipple.setupTriggerEvents(ee),this.rippleConfig=le||{},this._animationsDisabled="NoopAnimations"===Oe,this.tabIndex=null!=ye&&parseInt(ye)||-1}_addHostClassName(){const ee="mat-basic-chip",W=this._elementRef.nativeElement;W.hasAttribute(ee)||W.tagName.toLowerCase()===ee?W.classList.add(ee):W.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(ee=!1){return this._selected=!this.selected,this._dispatchSelectionChange(ee),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(ee){this.disabled&&ee.preventDefault()}_handleKeydown(ee){if(!this.disabled)switch(ee.keyCode){case r.SJ:case r.G_:this.remove(),ee.preventDefault();break;case r.t6:this.selectable&&this.toggleSelected(!0),ee.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,E.s)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(ee=!1){this.selectionChange.emit({source:this,isUserInput:ee,selected:this._selected})}}return(xe=Re).\u0275fac=function(ee){return new(ee||xe)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(f.OD),n.rXU(v.$E,8),n.rXU(n.gRc),n.rXU(A.qQ),n.rXU(n.bc$,8),n.kS0("tabindex"))},xe.\u0275dir=n.FsC({type:xe,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(ee,W,Pe){if(1&ee&&(n.wni(Pe,j,5),n.wni(Pe,fe,5),n.wni(Pe,Y,5)),2&ee){let le;n.mGM(le=n.lsd())&&(W.avatar=le.first),n.mGM(le=n.lsd())&&(W.trailingIcon=le.first),n.mGM(le=n.lsd())&&(W.removeIcon=le.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(ee,W){1&ee&&n.bIt("click",function(le){return W._handleClick(le)})("keydown",function(le){return W._handleKeydown(le)})("focus",function(){return W.focus()})("blur",function(){return W._blur()}),2&ee&&(n.BMQ("tabindex",W.disabled?null:W.tabIndex)("role",W.role)("disabled",W.disabled||null)("aria-disabled",W.disabled.toString())("aria-selected",W.ariaSelected),n.AVh("mat-chip-selected",W.selected)("mat-chip-with-avatar",W.avatar)("mat-chip-with-trailing-icon",W.trailingIcon||W.removeIcon)("mat-chip-disabled",W.disabled)("_mat-animation-noopable",W._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[n.Vt3]}),Re})();const Me=new n.nKC("mat-chips-default-options"),be=(0,v.J8)(class{constructor(xe,Re,Ue,ee){this._defaultErrorStateMatcher=xe,this._parentForm=Re,this._parentFormGroup=Ue,this.ngControl=ee,this.stateChanges=new M.B7}});let Q=0;class ne{constructor(Re,Ue){this.source=Re,this.value=Ue}}let Ge=(()=>{var xe;class Re extends be{get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(ee){this._explicitRole=ee}get multiple(){return this._multiple}set multiple(ee){this._multiple=(0,h.he)(ee),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(ee){this._compareWith=ee,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(ee){this.writeValue(ee),this._value=ee}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(m.k0.required)??!1}set required(ee){this._required=(0,h.he)(ee),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(ee){this._placeholder=ee,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(ee){this._disabled=(0,h.he)(ee),this._syncChipsState()}get selectable(){return this._selectable}set selectable(ee){this._selectable=(0,h.he)(ee),this._syncChipsState()}set tabIndex(ee){this._userTabIndex=ee,this._tabIndex=ee}get chipSelectionChanges(){return(0,T.h)(...this.chips.map(ee=>ee.selectionChange))}get chipFocusChanges(){return(0,T.h)(...this.chips.map(ee=>ee._onFocus))}get chipBlurChanges(){return(0,T.h)(...this.chips.map(ee=>ee._onBlur))}get chipRemoveChanges(){return(0,T.h)(...this.chips.map(ee=>ee.destroyed))}constructor(ee,W,Pe,le,oe,Le,Oe){super(Le,le,oe,Oe),this._elementRef=ee,this._changeDetectorRef=W,this._dir=Pe,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new M.B7,this._uid="mat-chip-list-"+Q++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(ye,Ie)=>ye===Ie,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new n.bkB,this.valueChange=new n.bkB,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this._keyManager=new l.Bu(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,y.Q)(this._destroyed)).subscribe(ee=>this._keyManager.withHorizontalOrientation(ee)),this._keyManager.tabOut.subscribe(()=>this._allowFocusEscape()),this.chips.changes.pipe((0,S.Z)(null),(0,y.Q)(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new u.CB(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(ee){this._chipInput=ee,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",ee.id)}setDescribedByIds(ee){ee.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ee.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(ee){this.chips&&this._setSelectionByValue(ee,!1)}registerOnChange(ee){this._onChange=ee}registerOnTouched(ee){this._onTouched=ee}setDisabledState(ee){this.disabled=ee,this.stateChanges.next()}onContainerClick(ee){this._originatesFromChip(ee)||this.focus()}focus(ee){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(ee),this.stateChanges.next()))}_focusInput(ee){this._chipInput&&this._chipInput.focus(ee)}_keydown(ee){const W=ee.target;W&&W.classList.contains("mat-chip")&&(this._keyManager.onKeydown(ee),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const ee=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(ee)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(ee){return ee>=0&&ee<this.chips.length}_setSelectionByValue(ee,W=!0){if(this._clearSelection(),this.chips.forEach(Pe=>Pe.deselect()),Array.isArray(ee))ee.forEach(Pe=>this._selectValue(Pe,W)),this._sortValues();else{const Pe=this._selectValue(ee,W);Pe&&W&&this._keyManager.setActiveItem(Pe)}}_selectValue(ee,W=!0){const Pe=this.chips.find(le=>null!=le.value&&this._compareWith(le.value,ee));return Pe&&(W?Pe.selectViaInteraction():Pe.select(),this._selectionModel.select(Pe)),Pe}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(ee){this._selectionModel.clear(),this.chips.forEach(W=>{W!==ee&&W.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(ee=>{ee.selected&&this._selectionModel.select(ee)}),this.stateChanges.next())}_propagateChanges(ee){let W=null;W=Array.isArray(this.selected)?this.selected.map(Pe=>Pe.value):this.selected?this.selected.value:ee,this._value=W,this.change.emit(new ne(this,W)),this.valueChange.emit(W),this._onChange(W),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(ee=>{ee.source.selected?this._selectionModel.select(ee.source):this._selectionModel.deselect(ee.source),this.multiple||this.chips.forEach(W=>{!this._selectionModel.isSelected(W)&&W.selected&&W.deselect()}),ee.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(ee=>{let W=this.chips.toArray().indexOf(ee.chip);this._isValidIndex(W)&&this._keyManager.updateActiveItem(W),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(ee=>{const W=ee.chip,Pe=this.chips.toArray().indexOf(ee.chip);this._isValidIndex(Pe)&&W._hasFocus&&(this._lastDestroyedChipIndex=Pe)})}_originatesFromChip(ee){let W=ee.target;for(;W&&W!==this._elementRef.nativeElement;){if(W.classList.contains("mat-chip"))return!0;W=W.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(ee=>ee._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(ee=>{ee._chipListDisabled=this._disabled,ee._chipListMultiple=this.multiple,ee.chipListSelectable=this._selectable})}}return(xe=Re).\u0275fac=function(ee){return new(ee||xe)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(s.dS,8),n.rXU(m.cV,8),n.rXU(m.j4,8),n.rXU(v.es),n.rXU(m.vO,10))},xe.\u0275cmp=n.VBU({type:xe,selectors:[["mat-chip-list"]],contentQueries:function(ee,W,Pe){if(1&ee&&n.wni(Pe,X,5),2&ee){let le;n.mGM(le=n.lsd())&&(W.chips=le)}},hostAttrs:["ngSkipHydration","",1,"mat-chip-list"],hostVars:14,hostBindings:function(ee,W){1&ee&&n.bIt("focus",function(){return W.focus()})("blur",function(){return W._blur()})("keydown",function(le){return W._keydown(le)}),2&ee&&(n.Mr5("id",W._uid),n.BMQ("tabindex",W.disabled?null:W._tabIndex)("aria-required",W.role?W.required:null)("aria-disabled",W.disabled.toString())("aria-invalid",W.errorState)("aria-multiselectable",W.multiple)("role",W.role)("aria-orientation",W.ariaOrientation),n.AVh("mat-chip-list-disabled",W.disabled)("mat-chip-list-invalid",W.errorState)("mat-chip-list-required",W.required))},inputs:{role:"role",userAriaDescribedBy:[n.Mj6.None,"aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:[n.Mj6.None,"aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[n.Jv_([{provide:I.qT,useExisting:xe}]),n.Vt3],ngContentSelectors:R,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(ee,W){1&ee&&(n.NAR(),n.j41(0,"div",0),n.SdG(1),n.k0s())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),Re})(),dt=(()=>{var xe;class Re{}return(xe=Re).\u0275fac=function(ee){return new(ee||xe)},xe.\u0275mod=n.$C({type:xe}),xe.\u0275inj=n.G2t({providers:[v.es,{provide:Me,useValue:{separatorKeyCodes:[r.Fm]}}],imports:[v.yE]}),Re})()},96501:(je,z,c)=>{"use strict";c.d(z,{Wh:()=>ot});var r=c(61142),n=c(58527),v=c(51635),l=(c(6364),c(80583),c(34593),c(4208),c(31308),c(40567),c(25373),c(56106),c(44224));let ot=(()=>{var dt;class xe{}return(dt=xe).\u0275fac=function(Ue){return new(Ue||dt)},dt.\u0275mod=n.$C({type:dt}),dt.\u0275inj=n.G2t({imports:[v.Np,v.pZ,v.yE,v.O5,r.MD,v.Np,v.yE,v.O5,l.w]}),xe})()},44296:(je,z,c)=>{"use strict";c.d(z,{bB:()=>m,fS:()=>s,gy:()=>l,pI:()=>S});var r=c(58527),n=c(33668),v=c(61142),h=c(51635),f=c(61904),A=c(37278);const M=["*"];function T(I,R){if(1&I){const O=r.RV6();r.j41(0,"div",0),r.bIt("keydown",function(j){r.eBV(O);const fe=r.XpG();return r.Njj(fe._handleKeydown(j))})("click",function(){r.eBV(O);const j=r.XpG();return r.Njj(j.closed.emit("click"))})("@transformMenu.start",function(j){r.eBV(O);const fe=r.XpG();return r.Njj(fe._onAnimationStart(j))})("@transformMenu.done",function(j){r.eBV(O);const fe=r.XpG();return r.Njj(fe._onAnimationDone(j))}),r.j41(1,"div",1),r.SdG(2),r.k0s()()}if(2&I){const O=r.XpG();r.Y8G("id",O.panelId)("ngClass",O._classList)("@transformMenu",O._panelAnimationState),r.BMQ("aria-label",O.ariaLabel||null)("aria-labelledby",O.ariaLabelledby||null)("aria-describedby",O.ariaDescribedby||null)}}const E=["mat-menu-item",""];function y(I,R){1&I&&(r.qSk(),r.j41(0,"svg",2),r.nrm(1,"polygon",3),r.k0s())}let S=(()=>{var I;class R extends n.K1{constructor(Y,j,fe,te){super(Y,j,fe,te),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return(I=R).\u0275fac=function(Y){return new(Y||I)(r.rXU(r.aKT),r.rXU(r.SKi),r.rXU(n.sK),r.rXU(r.gRc))},I.\u0275cmp=r.VBU({type:I,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:4,hostBindings:function(Y,j){2&Y&&r.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)("mat-id-collision",null)},exportAs:["matMenu"],features:[r.Jv_([{provide:n.S_,useExisting:I}]),r.Vt3],ngContentSelectors:M,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"keydown","click","id","ngClass"],[1,"mat-menu-content"]],template:function(Y,j){1&Y&&(r.NAR(),r.DNE(0,T,3,6,"ng-template"))},dependencies:[v.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:[n.hE.transformMenu,n.hE.fadeInItems]},changeDetection:0}),R})(),l=(()=>{var I;class R extends n.fb{}return(I=R).\u0275fac=(()=>{let O;return function(j){return(O||(O=r.xGo(I)))(j||I)}})(),I.\u0275cmp=r.VBU({type:I,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:20,hostBindings:function(Y,j){2&Y&&(r.BMQ("role",j.role)("tabindex",j._getTabIndex())("aria-disabled",j.disabled.toString())("disabled",j.disabled||null),r.AVh("mat-menu-item",!0)("mat-menu-item-highlighted",j._highlighted)("mat-menu-item-submenu-trigger",j._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:[r.Jv_([{provide:n.fb,useExisting:I}]),r.Vt3],attrs:E,ngContentSelectors:M,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(Y,j){1&Y&&(r.NAR(),r.SdG(0),r.nrm(1,"div",0),r.DNE(2,y,2,0,"svg",1)),2&Y&&(r.R7$(),r.Y8G("matRippleDisabled",j.disableRipple||j.disabled)("matRippleTrigger",j._getHostElement()),r.R7$(),r.Y8G("ngIf",j._triggersSubmenu))},dependencies:[v.bT,h.r6],encapsulation:2,changeDetection:0}),R})(),s=(()=>{var I;class R extends n.eg{}return(I=R).\u0275fac=(()=>{let O;return function(j){return(O||(O=r.xGo(I)))(j||I)}})(),I.\u0275dir=r.FsC({type:I,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[r.Vt3]}),R})(),m=(()=>{var I;class R{}return(I=R).\u0275fac=function(Y){return new(Y||I)},I.\u0275mod=r.$C({type:I}),I.\u0275inj=r.G2t({providers:[n.uk],imports:[v.MD,h.yE,h.pZ,f.z_,A.Gj,h.yE]}),R})()},62141:(je,z,c)=>{"use strict";c.d(z,{P2:()=>Me,jm:()=>be});var r=c(26321),n=c(58527),v=c(51635),h=c(31308),f=c(56106),A=c(6364);c(61142);let u=0;const m=(0,v.BF)((0,v.Zc)((0,v.GG)((0,v.Ob)(class{constructor(Q){this._elementRef=Q}}))));let I=(()=>{var Q;class ne extends m{get required(){return this._required}set required(ge){this._required=(0,A.he)(ge)}get checked(){return this._checked}set checked(ge){this._checked=(0,A.he)(ge),this._changeDetectorRef.markForCheck()}get hideIcon(){return this._hideIcon}set hideIcon(ge){this._hideIcon=(0,A.he)(ge)}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(ge,Xe,ot,dt,xe,Re,Ue){super(ge),this._focusMonitor=Xe,this._changeDetectorRef=ot,this.defaults=xe,this._onChange=ee=>{},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 n.bkB,this.toggleChange=new n.bkB,this.tabIndex=parseInt(dt)||0,this.color=this.defaultColor=xe.color||"accent",this._noopAnimations="NoopAnimations"===Re,this.id=this._uniqueId=`${Ue}${++u}`,this._hideIcon=xe.hideIcon??!1}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ge=>{"keyboard"===ge||"program"===ge?(this._focused=!0,this._changeDetectorRef.markForCheck()):ge||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(ge){this.checked=!!ge}registerOnChange(ge){this._onChange=ge}registerOnTouched(ge){this._onTouched=ge}setDisabledState(ge){this.disabled=ge,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return(Q=ne).\u0275fac=function(ge){n.QTQ()},Q.\u0275dir=n.FsC({type:Q,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[n.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[n.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[n.Mj6.None,"aria-describedby","ariaDescribedby"],required:"required",checked:"checked",hideIcon:"hideIcon"},outputs:{change:"change",toggleChange:"toggleChange"},features:[n.Vt3]}),ne})(),j=(()=>{var Q;class ne{}return(Q=ne).\u0275fac=function(ge){return new(ge||Q)},Q.\u0275mod=n.$C({type:Q}),Q.\u0275inj=n.G2t({}),ne})();const te=["input"],ce=["*"],H=Q=>({enterDuration:Q}),Z=new n.nKC("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),X={provide:f.kq,useExisting:(0,n.Rfq)(()=>Me),multi:!0};class ue{constructor(ne,Ge){this.source=ne,this.checked=Ge}}let Me=(()=>{var Q;class ne extends I{constructor(ge,Xe,ot,dt,xe,Re){super(ge,Xe,ot,dt,xe,Re,"mat-slide-toggle-")}_createChangeEvent(ge){return new ue(this,ge)}_onChangeEvent(ge){ge.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(ge){ge.stopPropagation()}focus(ge,Xe){Xe?this._focusMonitor.focusVia(this._inputElement,Xe,ge):this._inputElement.nativeElement.focus(ge)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return(Q=ne).\u0275fac=function(ge){return new(ge||Q)(n.rXU(n.aKT),n.rXU(h.FN),n.rXU(n.gRc),n.kS0("tabindex"),n.rXU(Z),n.rXU(n.bc$,8))},Q.\u0275cmp=n.VBU({type:Q,selectors:[["mat-slide-toggle"]],viewQuery:function(ge,Xe){if(1&ge&&n.GBs(te,5),2&ge){let ot;n.mGM(ot=n.lsd())&&(Xe._inputElement=ot.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(ge,Xe){2&ge&&(n.Mr5("id",Xe.id),n.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),n.AVh("mat-checked",Xe.checked)("mat-disabled",Xe.disabled)("mat-slide-toggle-label-before","before"==Xe.labelPosition)("_mat-animation-noopable",Xe._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[n.Jv_([X]),n.Vt3],ngContentSelectors:ce,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(ge,Xe){if(1&ge){const ot=n.RV6();n.NAR(),n.j41(0,"label",3,0)(2,"span",4)(3,"input",5,1),n.bIt("change",function(xe){return n.eBV(ot),n.Njj(Xe._onChangeEvent(xe))})("click",function(xe){return n.eBV(ot),n.Njj(Xe._onInputClick(xe))}),n.k0s(),n.j41(5,"span",6),n.nrm(6,"span",7),n.j41(7,"span",8),n.nrm(8,"span",9),n.k0s()()(),n.j41(9,"span",10,2),n.bIt("cdkObserveContent",function(){return n.eBV(ot),n.Njj(Xe._onLabelTextChange())}),n.j41(11,"span",11),n.EFF(12,"\xa0"),n.k0s(),n.SdG(13),n.k0s()()}if(2&ge){const ot=n.sdS(1),dt=n.sdS(10);n.BMQ("for",Xe.inputId),n.R7$(2),n.AVh("mat-slide-toggle-bar-no-side-margin",!dt.textContent||!dt.textContent.trim()),n.R7$(),n.Y8G("id",Xe.inputId)("required",Xe.required)("tabIndex",Xe.tabIndex)("checked",Xe.checked)("disabled",Xe.disabled),n.BMQ("name",Xe.name)("aria-checked",Xe.checked)("aria-label",Xe.ariaLabel)("aria-labelledby",Xe.ariaLabelledby)("aria-describedby",Xe.ariaDescribedby),n.R7$(4),n.Y8G("matRippleTrigger",ot)("matRippleDisabled",Xe.disableRipple||Xe.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.eq3(18,H,Xe._noopAnimations?0:150))}},dependencies:[v.r6,r.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}),ne})(),be=(()=>{var Q;class ne{}return(Q=ne).\u0275fac=function(ge){return new(ge||Q)},Q.\u0275mod=n.$C({type:Q}),Q.\u0275inj=n.G2t({imports:[j,v.pZ,v.yE,r.w5,j,v.yE]}),ne})()},13186:(je,z,c)=>{"use strict";c.d(z,{Lq:()=>X,N$:()=>j});var r=c(61142),n=c(58527),v=c(51635),h=c(31308),f=c(51394),A=c(6364),M=c(25373),T=c(56106),E=c(72653),y=c(10399);const S=["sliderWrapper"],l=(0,E.BQ)({passive:!1}),R={provide:T.kq,useExisting:(0,n.Rfq)(()=>j),multi:!0};class O{}const Y=(0,v.BF)((0,v.Zc)((0,v.Ob)(class{constructor(ue){this._elementRef=ue}}),"accent"));let j=(()=>{var ue;class Me extends Y{get invert(){return this._invert}set invert(Q){this._invert=(0,A.he)(Q)}get max(){return this._max}set max(Q){this._max=(0,A.OE)(Q,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(Q){this._min=(0,A.OE)(Q,this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(Q){this._step=(0,A.OE)(Q,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(Q){this._thumbLabel=(0,A.he)(Q)}get tickInterval(){return this._tickInterval}set tickInterval(Q){this._tickInterval="auto"===Q?"auto":"number"==typeof Q||"string"==typeof Q?(0,A.OE)(Q,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(Q){if(Q!==this._value){let ne=(0,A.OE)(Q,0);this._roundToDecimal&&ne!==this.min&&ne!==this.max&&(ne=parseFloat(ne.toFixed(this._roundToDecimal))),this._value=ne,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(Q){this._vertical=(0,A.he)(Q)}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(Q){this._focusHostElement(Q)}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 ne=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(${ne})`}}_getTrackFillStyles(){const Q=this.percent,Ge=this.vertical?`1, ${Q}, 1`:`${Q}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${Ge})`,display:0===Q?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let Q=100*this._tickIntervalPercent,ot={backgroundSize:this.vertical?`2px ${Q}%`:`${Q}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${Q/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const dt=this._shouldInvertAxis();let xe;xe=this.vertical?dt?"Bottom":"Top":dt?"Right":"Left",ot[`padding${xe}`]=`${this._getThumbGap()}px`}return ot}_getThumbContainerStyles(){const Q=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?Q:!Q)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const Q=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?Q:!Q}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}constructor(Q,ne,Ge,ge,Xe,ot,dt,xe){super(Q),this._focusMonitor=ne,this._changeDetectorRef=Ge,this._dir=ge,this._ngZone=ot,this._animationMode=xe,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 n.bkB,this.input=new n.bkB,this.valueChange=new n.bkB,this.onTouched=()=>{},this._percent=0,this._isSliding=null,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=y.y.EMPTY,this._pointerDown=Re=>{this.disabled||this._isSliding||!te(Re)&&0!==Re.button||this._ngZone.run(()=>{this._touchId=te(Re)?function Z(ue,Me){for(let be=0;be<ue.touches.length;be++){const Q=ue.touches[be].target;if(Me===Q||Me.contains(Q))return ue.touches[be].identifier}}(Re,this._elementRef.nativeElement):void 0;const Ue=ce(Re,this._touchId);if(Ue){const ee=this.value;this._isSliding="pointer",this._lastPointerEvent=Re,this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(Re),this._focusHostElement(),this._updateValueFromPosition(Ue),this._valueOnSlideStart=ee,Re.cancelable&&Re.preventDefault(),ee!=this.value&&this._emitInputEvent()}})},this._pointerMove=Re=>{if("pointer"===this._isSliding){const Ue=ce(Re,this._touchId);if(Ue){Re.cancelable&&Re.preventDefault();const ee=this.value;this._lastPointerEvent=Re,this._updateValueFromPosition(Ue),ee!=this.value&&this._emitInputEvent()}}},this._pointerUp=Re=>{"pointer"===this._isSliding&&(!te(Re)||"number"!=typeof this._touchId||H(Re.changedTouches,this._touchId))&&(Re.cancelable&&Re.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=dt,this.tabIndex=parseInt(Xe)||0,ot.runOutsideAngular(()=>{const Re=Q.nativeElement;Re.addEventListener("mousedown",this._pointerDown,l),Re.addEventListener("touchstart",this._pointerDown,l)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Q=>{this._isActive=!!Q&&"keyboard"!==Q,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const Q=this._elementRef.nativeElement;Q.removeEventListener("mousedown",this._pointerDown,l),Q.removeEventListener("touchstart",this._pointerDown,l),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(Q){if(this.disabled||(0,M.rp)(Q)||this._isSliding&&"keyboard"!==this._isSliding)return;const ne=this.value;switch(Q.keyCode){case M.w_:this._increment(10);break;case M.dB:this._increment(-10);break;case M.Kp:this.value=this.max;break;case M.yZ:this.value=this.min;break;case M.UQ:this._increment("rtl"==this._getDirection()?1:-1);break;case M.i7:this._increment(1);break;case M.LE:this._increment("rtl"==this._getDirection()?-1:1);break;case M.n6:this._increment(-1);break;default:return}ne!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding="keyboard",Q.preventDefault()}_onKeyup(){"keyboard"===this._isSliding&&(this._isSliding=null)}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(Q){const ne=this._document,Ge=te(Q),Xe=Ge?"touchend":"mouseup";ne.addEventListener(Ge?"touchmove":"mousemove",this._pointerMove,l),ne.addEventListener(Xe,this._pointerUp,l),Ge&&ne.addEventListener("touchcancel",this._pointerUp,l);const ot=this._getWindow();typeof ot<"u"&&ot&&ot.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const Q=this._document;Q.removeEventListener("mousemove",this._pointerMove,l),Q.removeEventListener("mouseup",this._pointerUp,l),Q.removeEventListener("touchmove",this._pointerMove,l),Q.removeEventListener("touchend",this._pointerUp,l),Q.removeEventListener("touchcancel",this._pointerUp,l);const ne=this._getWindow();typeof ne<"u"&&ne&&ne.removeEventListener("blur",this._windowBlur)}_increment(Q){const ne=this._clamp(this.value||0,this.min,this.max);this.value=this._clamp(ne+this.step*Q,this.min,this.max)}_updateValueFromPosition(Q){if(!this._sliderDimensions)return;let Xe=this._clamp(((this.vertical?Q.y:Q.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(Xe=1-Xe),0===Xe)this.value=this.min;else if(1===Xe)this.value=this.max;else{const ot=this._calculateValue(Xe),dt=Math.round((ot-this.min)/this.step)*this.step+this.min;this.value=this._clamp(dt,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 Q;if("auto"==this.tickInterval){let ne=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width;Q=Math.ceil(30/(ne*this.step/(this.max-this.min)))*this.step/ne}else Q=this.tickInterval*this.step/(this.max-this.min);this._tickIntervalPercent=fe(Q)?Q:0}_createChangeEvent(Q=this.value){let ne=new O;return ne.source=this,ne.value=Q,ne}_calculatePercentage(Q){const ne=((Q||0)-this.min)/(this.max-this.min);return fe(ne)?ne:0}_calculateValue(Q){return this.min+Q*(this.max-this.min)}_clamp(Q,ne=0,Ge=1){return Math.max(ne,Math.min(Q,Ge))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(Q){this._elementRef.nativeElement.focus(Q)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(Q){this.value=Q}registerOnChange(Q){this._controlValueAccessorChangeFn=Q}registerOnTouched(Q){this.onTouched=Q}setDisabledState(Q){this.disabled=Q}}return(ue=Me).\u0275fac=function(Q){return new(Q||ue)(n.rXU(n.aKT),n.rXU(h.FN),n.rXU(n.gRc),n.rXU(f.dS,8),n.kS0("tabindex"),n.rXU(n.SKi),n.rXU(r.qQ),n.rXU(n.bc$,8))},ue.\u0275cmp=n.VBU({type:ue,selectors:[["mat-slider"]],viewQuery:function(Q,ne){if(1&Q&&n.GBs(S,5),2&Q){let Ge;n.mGM(Ge=n.lsd())&&(ne._sliderWrapper=Ge.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(Q,ne){1&Q&&n.bIt("focus",function(){return ne._onFocus()})("blur",function(){return ne._onBlur()})("keydown",function(ge){return ne._onKeydown(ge)})("keyup",function(){return ne._onKeyup()})("mouseenter",function(){return ne._onMouseenter()})("selectstart",function(ge){return ge.preventDefault()}),2&Q&&(n.Mr5("tabIndex",ne.tabIndex),n.BMQ("aria-disabled",ne.disabled)("aria-valuemax",ne.max)("aria-valuemin",ne.min)("aria-valuenow",ne.value)("aria-valuetext",null==ne.valueText?ne.displayValue:ne.valueText)("aria-orientation",ne.vertical?"vertical":"horizontal"),n.AVh("mat-slider-disabled",ne.disabled)("mat-slider-has-ticks",ne.tickInterval)("mat-slider-horizontal",!ne.vertical)("mat-slider-axis-inverted",ne._shouldInvertAxis())("mat-slider-invert-mouse-coords",ne._shouldInvertMouseCoords())("mat-slider-sliding",ne._isSliding)("mat-slider-thumb-label-showing",ne.thumbLabel)("mat-slider-vertical",ne.vertical)("mat-slider-min-value",ne._isMinValue())("mat-slider-hide-last-tick",ne.disabled||ne._isMinValue()&&ne._getThumbGap()&&ne._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===ne._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:[n.Jv_([R]),n.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(Q,ne){1&Q&&(n.j41(0,"div",1,0)(2,"div",2),n.nrm(3,"div",3)(4,"div",4),n.k0s(),n.j41(5,"div",5),n.nrm(6,"div",6),n.k0s(),n.j41(7,"div",7),n.nrm(8,"div",8)(9,"div",9),n.j41(10,"div",10)(11,"span",11),n.EFF(12),n.k0s()()()()),2&Q&&(n.R7$(3),n.Y8G("ngStyle",ne._getTrackBackgroundStyles()),n.R7$(),n.Y8G("ngStyle",ne._getTrackFillStyles()),n.R7$(),n.Y8G("ngStyle",ne._getTicksContainerStyles()),n.R7$(),n.Y8G("ngStyle",ne._getTicksStyles()),n.R7$(),n.Y8G("ngStyle",ne._getThumbContainerStyles()),n.R7$(5),n.JRh(ne.displayValue))},dependencies:[r.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}),Me})();function fe(ue){return!isNaN(ue)&&isFinite(ue)}function te(ue){return"t"===ue.type[0]}function ce(ue,Me){let be;return be=te(ue)?"number"==typeof Me?H(ue.touches,Me)||H(ue.changedTouches,Me):ue.touches[0]||ue.changedTouches[0]:ue,be?{x:be.clientX,y:be.clientY}:void 0}function H(ue,Me){for(let be=0;be<ue.length;be++)if(ue[be].identifier===Me)return ue[be]}let X=(()=>{var ue;class Me{}return(ue=Me).\u0275fac=function(Q){return new(Q||ue)},ue.\u0275mod=n.$C({type:ue}),ue.\u0275inj=n.G2t({imports:[r.MD,v.yE,v.yE]}),Me})()},30783:(je,z,c)=>{"use strict";c.d(z,{nf:()=>Ue,$D:()=>Re});var r=c(61904),n=c(76614),v=c(61142),h=c(58527),f=c(51635),A=c(47973),M=c(80583),T=c(40262),E=c(72653),y=c(65706),S=c(4208),l=c(31308),s=c(76706);const R=Math.pow(2,31)-1;class O{constructor(W,Pe){this._overlayRef=Pe,this._afterDismissed=new M.B7,this._afterOpened=new M.B7,this._onAction=new M.B7,this._dismissedByAction=!1,this.containerInstance=W,W._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(W){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(W,R))}_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 Y=new h.nKC("MatSnackBarData");class j{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const Z={snackBarState:(0,T.hZ)("state",[(0,T.wk)("void, hidden",(0,T.iF)({transform:"scale(0.8)",opacity:0})),(0,T.wk)("visible",(0,T.iF)({transform:"scale(1)",opacity:1})),(0,T.kY)("* => visible",(0,T.i0)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,T.kY)("* => void, * => hidden",(0,T.i0)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,T.iF)({opacity:0})))])};let X=0,ue=(()=>{var ee;class W extends n.lb{constructor(le,oe,Le,Oe,ye){super(),this._ngZone=le,this._elementRef=oe,this._changeDetectorRef=Le,this._platform=Oe,this.snackBarConfig=ye,this._document=(0,h.WQX)(v.qQ),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new M.B7,this._onExit=new M.B7,this._onEnter=new M.B7,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+X++,this.attachDomPortal=Ie=>{this._assertNotAttached();const at=this._portalOutlet.attachDomPortal(Ie);return this._afterPortalAttached(),at},this._live="assertive"!==ye.politeness||ye.announcementMessage?"off"===ye.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(le){this._assertNotAttached();const oe=this._portalOutlet.attachComponentPortal(le);return this._afterPortalAttached(),oe}attachTemplatePortal(le){this._assertNotAttached();const oe=this._portalOutlet.attachTemplatePortal(le);return this._afterPortalAttached(),oe}onAnimationEnd(le){const{fromState:oe,toState:Le}=le;if(("void"===Le&&"void"!==oe||"hidden"===Le)&&this._completeExit(),"visible"===Le){const Oe=this._onEnter;this._ngZone.run(()=>{Oe.next(),Oe.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,y.s)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const le=this._elementRef.nativeElement,oe=this.snackBarConfig.panelClass;oe&&(Array.isArray(oe)?oe.forEach(Le=>le.classList.add(Le)):le.classList.add(oe)),this._exposeToModals()}_exposeToModals(){const le=this._liveElementId,oe=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let Le=0;Le<oe.length;Le++){const Oe=oe[Le],ye=Oe.getAttribute("aria-owns");this._trackedModals.add(Oe),ye?-1===ye.indexOf(le)&&Oe.setAttribute("aria-owns",ye+" "+le):Oe.setAttribute("aria-owns",le)}}_clearFromModals(){this._trackedModals.forEach(le=>{const oe=le.getAttribute("aria-owns");if(oe){const Le=oe.replace(this._liveElementId,"").trim();Le.length>0?le.setAttribute("aria-owns",Le):le.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const le=this._elementRef.nativeElement.querySelector("[aria-hidden]"),oe=this._elementRef.nativeElement.querySelector("[aria-live]");if(le&&oe){let Le=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&le.contains(document.activeElement)&&(Le=document.activeElement),le.removeAttribute("aria-hidden"),oe.appendChild(le),Le?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return(ee=W).\u0275fac=function(le){return new(le||ee)(h.rXU(h.SKi),h.rXU(h.aKT),h.rXU(h.gRc),h.rXU(E.OD),h.rXU(j))},ee.\u0275dir=h.FsC({type:ee,viewQuery:function(le,oe){if(1&le&&h.GBs(n.I3,7),2&le){let Le;h.mGM(Le=h.lsd())&&(oe._portalOutlet=Le.first)}},features:[h.Vt3]}),W})();const ne=new h.nKC("mat-snack-bar-default-options",{providedIn:"root",factory:function Q(){return new j}});let Ge=(()=>{var ee;class W{get _openedSnackBarRef(){const le=this._parentSnackBar;return le?le._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(le){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=le:this._snackBarRefAtThisLevel=le}constructor(le,oe,Le,Oe,ye,Ie){this._overlay=le,this._live=oe,this._injector=Le,this._breakpointObserver=Oe,this._parentSnackBar=ye,this._defaultConfig=Ie,this._snackBarRefAtThisLevel=null}openFromComponent(le,oe){return this._attach(le,oe)}openFromTemplate(le,oe){return this._attach(le,oe)}open(le,oe="",Le){const Oe={...this._defaultConfig,...Le};return Oe.data={message:le,action:oe},Oe.announcementMessage===le&&(Oe.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Oe)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(le,oe){const Oe=h.zZn.create({parent:oe&&oe.viewContainerRef&&oe.viewContainerRef.injector||this._injector,providers:[{provide:j,useValue:oe}]}),ye=new n.A8(this.snackBarContainerComponent,oe.viewContainerRef,Oe),Ie=le.attach(ye);return Ie.instance.snackBarConfig=oe,Ie.instance}_attach(le,oe){const Le={...new j,...this._defaultConfig,...oe},Oe=this._createOverlay(Le),ye=this._attachSnackBarContainer(Oe,Le),Ie=new O(ye,Oe);if(le instanceof h.C4Q){const at=new n.VA(le,null,{$implicit:Le.data,snackBarRef:Ie});Ie.instance=ye.attachTemplatePortal(at)}else{const at=this._createInjector(Le,Ie),K=new n.A8(le,void 0,at),ve=ye.attachComponentPortal(K);Ie.instance=ve.instance}return this._breakpointObserver.observe(s.Rp.HandsetPortrait).pipe((0,S.Q)(Oe.detachments())).subscribe(at=>{Oe.overlayElement.classList.toggle(this.handsetCssClass,at.matches)}),Le.announcementMessage&&ye._onAnnounce.subscribe(()=>{this._live.announce(Le.announcementMessage,Le.politeness)}),this._animateSnackBar(Ie,Le),this._openedSnackBarRef=Ie,this._openedSnackBarRef}_animateSnackBar(le,oe){le.afterDismissed().subscribe(()=>{this._openedSnackBarRef==le&&(this._openedSnackBarRef=null),oe.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{le.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):le.containerInstance.enter(),oe.duration&&oe.duration>0&&le.afterOpened().subscribe(()=>le._dismissAfter(oe.duration))}_createOverlay(le){const oe=new r.rR;oe.direction=le.direction;let Le=this._overlay.position().global();const Oe="rtl"===le.direction,ye="left"===le.horizontalPosition||"start"===le.horizontalPosition&&!Oe||"end"===le.horizontalPosition&&Oe,Ie=!ye&&"center"!==le.horizontalPosition;return ye?Le.left("0"):Ie?Le.right("0"):Le.centerHorizontally(),"top"===le.verticalPosition?Le.top("0"):Le.bottom("0"),oe.positionStrategy=Le,this._overlay.create(oe)}_createInjector(le,oe){return h.zZn.create({parent:le&&le.viewContainerRef&&le.viewContainerRef.injector||this._injector,providers:[{provide:O,useValue:oe},{provide:Y,useValue:le.data}]})}}return(ee=W).\u0275fac=function(le){return new(le||ee)(h.KVO(r.hJ),h.KVO(l.Ai),h.KVO(h.zZn),h.KVO(s.QP),h.KVO(ee,12),h.KVO(ne))},ee.\u0275prov=h.jDH({token:ee,factory:ee.\u0275fac}),W})();function Xe(ee,W){if(1&ee){const Pe=h.RV6();h.j41(0,"div",2)(1,"button",3),h.bIt("click",function(){h.eBV(Pe);const oe=h.XpG();return h.Njj(oe.action())}),h.EFF(2),h.k0s()()}if(2&ee){const Pe=h.XpG();h.R7$(2),h.JRh(Pe.data.action)}}function ot(ee,W){}let dt=(()=>{var ee;class W{constructor(le,oe){this.snackBarRef=le,this.data=oe}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return(ee=W).\u0275fac=function(le){return new(le||ee)(h.rXU(O),h.rXU(Y))},ee.\u0275cmp=h.VBU({type:ee,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(le,oe){1&le&&(h.j41(0,"span",0),h.EFF(1),h.k0s(),h.DNE(2,Xe,3,1,"div",1)),2&le&&(h.R7$(),h.JRh(oe.data.message),h.R7$(),h.Y8G("ngIf",oe.hasAction))},dependencies:[v.bT,A.iV],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),W})(),xe=(()=>{var ee;class W extends ue{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return(ee=W).\u0275fac=(()=>{let Pe;return function(oe){return(Pe||(Pe=h.xGo(ee)))(oe||ee)}})(),ee.\u0275cmp=h.VBU({type:ee,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(le,oe){1&le&&h.Kam("@state.done",function(Oe){return oe.onAnimationEnd(Oe)}),2&le&&h.zvX("@state",oe._animationState)},features:[h.Vt3],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(le,oe){1&le&&(h.j41(0,"div",0),h.DNE(1,ot,0,0,"ng-template",1),h.k0s(),h.nrm(2,"div")),2&le&&(h.R7$(2),h.BMQ("aria-live",oe._live)("role",oe._role)("id",oe._liveElementId))},dependencies:[n.I3],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[Z.snackBarState]}}),W})(),Re=(()=>{var ee;class W{}return(ee=W).\u0275fac=function(le){return new(le||ee)},ee.\u0275mod=h.$C({type:ee}),ee.\u0275inj=h.G2t({imports:[r.z_,n.jc,v.MD,A.wG,f.yE,f.yE]}),W})(),Ue=(()=>{var ee;class W extends Ge{constructor(le,oe,Le,Oe,ye,Ie){super(le,oe,Le,Oe,ye,Ie),this.simpleSnackBarComponent=dt,this.snackBarContainerComponent=xe,this.handsetCssClass="mat-snack-bar-handset"}}return(ee=W).\u0275fac=function(le){return new(le||ee)(h.KVO(r.hJ),h.KVO(l.Ai),h.KVO(h.zZn),h.KVO(s.QP),h.KVO(ee,12),h.KVO(ne))},ee.\u0275prov=h.jDH({token:ee,factory:ee.\u0275fac,providedIn:Re}),W})()},33668:(je,z,c)=>{"use strict";c.d(z,{Cn:()=>Qe,K1:()=>Le,S_:()=>Q,eg:()=>De,fb:()=>Ge,hE:()=>Ue,sK:()=>le,uk:()=>at});var r=c(58527),n=c(31308),v=c(6364),h=c(25373),f=c(80583),A=c(16229),M=c(10399),T=c(43848),E=c(62366),y=c(34593),S=c(72147),l=c(65706),s=c(4208),u=c(8619),m=c(65726),I=c(51635),R=c(61142),O=c(76614),Y=c(40262),j=c(51394),fe=c(61904),te=c(72653),ce=c(37278);const H=["mat-menu-item",""],Z=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],X=["mat-icon, [matMenuItemIcon]","*"];function ue(zt,Vt){1&zt&&(r.qSk(),r.j41(0,"svg",3),r.nrm(1,"polygon",4),r.k0s())}const Q=new r.nKC("MAT_MENU_PANEL"),ne=(0,I.GG)((0,I.Ob)(class{}));let Ge=(()=>{var zt;class Vt extends ne{constructor(J,$e,st,Gt,Zt){super(),this._elementRef=J,this._document=$e,this._focusMonitor=st,this._parentMenu=Gt,this._changeDetectorRef=Zt,this.role="menuitem",this._hovered=new f.B7,this._focused=new f.B7,this._highlighted=!1,this._triggersSubmenu=!1,Gt?.addItem?.(this)}focus(J,$e){this._focusMonitor&&J?this._focusMonitor.focusVia(this._getHostElement(),J,$e):this._getHostElement().focus($e),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(J){this.disabled&&(J.preventDefault(),J.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const J=this._elementRef.nativeElement.cloneNode(!0),$e=J.querySelectorAll("mat-icon, .material-icons");for(let st=0;st<$e.length;st++)$e[st].remove();return J.textContent?.trim()||""}_setHighlighted(J){this._highlighted=J,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(J){this._triggersSubmenu=J,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return(zt=Vt).\u0275fac=function(J){return new(J||zt)(r.rXU(r.aKT),r.rXU(R.qQ),r.rXU(n.FN),r.rXU(Q,8),r.rXU(r.gRc))},zt.\u0275cmp=r.VBU({type:zt,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function(J,$e){1&J&&r.bIt("click",function(Gt){return $e._checkDisabled(Gt)})("mouseenter",function(){return $e._handleMouseEnter()}),2&J&&(r.BMQ("role",$e.role)("tabindex",$e._getTabIndex())("aria-disabled",$e.disabled)("disabled",$e.disabled||null),r.AVh("mat-mdc-menu-item-highlighted",$e._highlighted)("mat-mdc-menu-item-submenu-trigger",$e._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[r.Vt3],attrs:H,ngContentSelectors:X,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(J,$e){1&J&&(r.NAR(Z),r.SdG(0),r.j41(1,"span",0),r.SdG(2,1),r.k0s(),r.nrm(3,"div",1),r.DNE(4,ue,2,0,"svg",2)),2&J&&(r.R7$(3),r.Y8G("matRippleDisabled",$e.disableRipple||$e.disabled)("matRippleTrigger",$e._getHostElement()),r.R7$(),r.Y8G("ngIf",$e._triggersSubmenu))},dependencies:[R.bT,I.r6],encapsulation:2,changeDetection:0}),Vt})();const dt=new r.nKC("MatMenuContent"),Ue={transformMenu:(0,Y.hZ)("transformMenu",[(0,Y.wk)("void",(0,Y.iF)({opacity:0,transform:"scale(0.8)"})),(0,Y.kY)("void => enter",(0,Y.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Y.iF)({opacity:1,transform:"scale(1)"}))),(0,Y.kY)("* => void",(0,Y.i0)("100ms 25ms linear",(0,Y.iF)({opacity:0})))]),fadeInItems:(0,Y.hZ)("fadeInItems",[(0,Y.wk)("showing",(0,Y.iF)({opacity:1})),(0,Y.kY)("void => *",[(0,Y.iF)({opacity:0}),(0,Y.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Pe=0;const le=new r.nKC("mat-menu-default-options",{providedIn:"root",factory:function oe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Le=(()=>{var zt;class Vt{get xPosition(){return this._xPosition}set xPosition(J){this._xPosition=J,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(J){this._yPosition=J,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(J){this._overlapTrigger=(0,v.he)(J)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(J){this._hasBackdrop=(0,v.he)(J)}set panelClass(J){const $e=this._previousPanelClass;$e&&$e.length&&$e.split(" ").forEach(st=>{this._classList[st]=!1}),this._previousPanelClass=J,J&&J.length&&(J.split(" ").forEach(st=>{this._classList[st]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(J){this.panelClass=J}constructor(J,$e,st,Gt){this._elementRef=J,this._ngZone=$e,this._changeDetectorRef=Gt,this._directDescendantItems=new r.rOR,this._classList={},this._panelAnimationState="void",this._animationDone=new f.B7,this.closed=new r.bkB,this.close=this.closed,this.panelId="mat-menu-panel-"+Pe++,this.overlayPanelClass=st.overlayPanelClass||"",this._xPosition=st.xPosition,this._yPosition=st.yPosition,this.backdropClass=st.backdropClass,this._overlapTrigger=st.overlapTrigger,this._hasBackdrop=st.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,y.Z)(this._directDescendantItems),(0,S.n)(J=>(0,A.h)(...J.map($e=>$e._focused)))).subscribe(J=>this._keyManager.updateActiveItem(J)),this._directDescendantItems.changes.subscribe(J=>{const $e=this._keyManager;if("enter"===this._panelAnimationState&&$e.activeItem?._hasFocus()){const st=J.toArray(),Gt=Math.max(0,Math.min(st.length-1,$e.activeItemIndex||0));st[Gt]&&!st[Gt].disabled?$e.setActiveItem(Gt):$e.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,y.Z)(this._directDescendantItems),(0,S.n)($e=>(0,A.h)(...$e.map(st=>st._hovered))))}addItem(J){}removeItem(J){}_handleKeydown(J){const $e=J.keyCode,st=this._keyManager;switch($e){case h._f:(0,h.rp)(J)||(J.preventDefault(),this.closed.emit("keydown"));break;case h.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case h.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return($e===h.i7||$e===h.n6)&&st.setFocusOrigin("keyboard"),void st.onKeydown(J)}J.stopPropagation()}focusFirstItem(J="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,l.s)(1)).subscribe(()=>{let $e=null;if(this._directDescendantItems.length&&($e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!$e||!$e.contains(document.activeElement)){const st=this._keyManager;st.setFocusOrigin(J).setFirstItemActive(),!st.activeItem&&$e&&$e.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(J){const $e=Math.min(this._baseElevation+J,24),st=`${this._elevationPrefix}${$e}`,Gt=Object.keys(this._classList).find(Zt=>Zt.startsWith(this._elevationPrefix));(!Gt||Gt===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[st]=!0,this._previousElevation=st)}setPositionClasses(J=this.xPosition,$e=this.yPosition){const st=this._classList;st["mat-menu-before"]="before"===J,st["mat-menu-after"]="after"===J,st["mat-menu-above"]="above"===$e,st["mat-menu-below"]="below"===$e,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(J){this._animationDone.next(J),this._isAnimating=!1}_onAnimationStart(J){this._isAnimating=!0,"enter"===J.toState&&0===this._keyManager.activeItemIndex&&(J.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,y.Z)(this._allItems)).subscribe(J=>{this._directDescendantItems.reset(J.filter($e=>$e._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return(zt=Vt).\u0275fac=function(J){return new(J||zt)(r.rXU(r.aKT),r.rXU(r.SKi),r.rXU(le),r.rXU(r.gRc))},zt.\u0275dir=r.FsC({type:zt,contentQueries:function(J,$e,st){if(1&J&&(r.wni(st,dt,5),r.wni(st,Ge,5),r.wni(st,Ge,4)),2&J){let Gt;r.mGM(Gt=r.lsd())&&($e.lazyContent=Gt.first),r.mGM(Gt=r.lsd())&&($e._allItems=Gt),r.mGM(Gt=r.lsd())&&($e.items=Gt)}},viewQuery:function(J,$e){if(1&J&&r.GBs(r.C4Q,5),2&J){let st;r.mGM(st=r.lsd())&&($e.templateRef=st.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:[r.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[r.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[r.Mj6.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:[r.Mj6.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Vt})();const ye=new r.nKC("mat-menu-scroll-strategy"),at={provide:ye,deps:[fe.hJ],useFactory:function Ie(zt){return()=>zt.scrollStrategies.reposition()}},K=(0,te.BQ)({passive:!0});let De=(()=>{var zt;class Vt{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(J){this.menu=J}get menu(){return this._menu}set menu(J){J!==this._menu&&(this._menu=J,this._menuCloseSubscription.unsubscribe(),J&&(this._menuCloseSubscription=J.close.subscribe($e=>{this._destroyMenu($e),("click"===$e||"tab"===$e)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit($e)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(J,$e,st,Gt,Zt,kn,Un,ni,qe){this._overlay=J,this._element=$e,this._viewContainerRef=st,this._menuItemInstance=kn,this._dir=Un,this._focusMonitor=ni,this._ngZone=qe,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=M.y.EMPTY,this._hoverSubscription=M.y.EMPTY,this._menuCloseSubscription=M.y.EMPTY,this._changeDetectorRef=(0,r.WQX)(r.gRc),this._handleTouchStart=mi=>{(0,n.w6)(mi)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new r.bkB,this.onMenuOpen=this.menuOpened,this.menuClosed=new r.bkB,this.onMenuClose=this.menuClosed,this._scrollStrategy=Gt,this._parentMaterialMenu=Zt instanceof Le?Zt:void 0,$e.nativeElement.addEventListener("touchstart",this._handleTouchStart,K)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,K),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 J=this.menu;if(this._menuOpen||!J)return;const $e=this._createOverlay(J),st=$e.getConfig(),Gt=st.positionStrategy;this._setPosition(J,Gt),st.hasBackdrop=null==J.hasBackdrop?!this.triggersSubmenu():J.hasBackdrop,$e.attach(this._getPortal(J)),J.lazyContent&&J.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(J),J instanceof Le&&(J._startAnimation(),J._directDescendantItems.changes.pipe((0,s.Q)(J.close)).subscribe(()=>{Gt.withLockedPosition(!1).reapplyLastPosition(),Gt.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(J,$e){this._focusMonitor&&J?this._focusMonitor.focusVia(this._element,J,$e):this._element.nativeElement.focus($e)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(J){if(!this._overlayRef||!this.menuOpen)return;const $e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===J||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,$e instanceof Le?($e._resetAnimation(),$e.lazyContent?$e._animationDone.pipe((0,u.p)(st=>"void"===st.toState),(0,l.s)(1),(0,s.Q)($e.lazyContent._attached)).subscribe({next:()=>$e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),$e?.lazyContent?.detach())}_initMenu(J){J.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,J.direction=this.dir,this._setMenuElevation(J),J.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(J){if(J.setElevation){let $e=0,st=J.parentMenu;for(;st;)$e++,st=st.parentMenu;J.setElevation($e)}}_setIsMenuOpen(J){J!==this._menuOpen&&(this._menuOpen=J,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(J),this._changeDetectorRef.markForCheck())}_createOverlay(J){if(!this._overlayRef){const $e=this._getOverlayConfig(J);this._subscribeToPositions(J,$e.positionStrategy),this._overlayRef=this._overlay.create($e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(J){return new fe.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:J.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:J.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(J,$e){J.setPositionClasses&&$e.positionChanges.subscribe(st=>{const Gt="start"===st.connectionPair.overlayX?"after":"before",Zt="top"===st.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>J.setPositionClasses(Gt,Zt)):J.setPositionClasses(Gt,Zt)})}_setPosition(J,$e){let[st,Gt]="before"===J.xPosition?["end","start"]:["start","end"],[Zt,kn]="above"===J.yPosition?["bottom","top"]:["top","bottom"],[Un,ni]=[Zt,kn],[qe,mi]=[st,Gt],Bi=0;if(this.triggersSubmenu()){if(mi=st="before"===J.xPosition?"start":"end",Gt=qe="end"===st?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const _i=this._parentMaterialMenu.items.first;this._parentInnerPadding=_i?_i._getHostElement().offsetTop:0}Bi="bottom"===Zt?this._parentInnerPadding:-this._parentInnerPadding}}else J.overlapTrigger||(Un="top"===Zt?"bottom":"top",ni="top"===kn?"bottom":"top");$e.withPositions([{originX:st,originY:Un,overlayX:qe,overlayY:Zt,offsetY:Bi},{originX:Gt,originY:Un,overlayX:mi,overlayY:Zt,offsetY:Bi},{originX:st,originY:ni,overlayX:qe,overlayY:kn,offsetY:-Bi},{originX:Gt,originY:ni,overlayX:mi,overlayY:kn,offsetY:-Bi}])}_menuClosingActions(){const J=this._overlayRef.backdropClick(),$e=this._overlayRef.detachments(),st=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,T.of)(),Gt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,u.p)(Zt=>Zt!==this._menuItemInstance),(0,u.p)(()=>this._menuOpen)):(0,T.of)();return(0,A.h)(J,st,Gt,$e)}_handleMousedown(J){(0,n._G)(J)||(this._openedBy=0===J.button?"mouse":void 0,this.triggersSubmenu()&&J.preventDefault())}_handleKeydown(J){const $e=J.keyCode;($e===h.Fm||$e===h.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&($e===h.LE&&"ltr"===this.dir||$e===h.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(J){this.triggersSubmenu()?(J.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,u.p)(J=>J===this._menuItemInstance&&!J.disabled),(0,m.c)(0,E.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Le&&this.menu._isAnimating?this.menu._animationDone.pipe((0,l.s)(1),(0,m.c)(0,E.$),(0,s.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(J){return(!this._portal||this._portal.templateRef!==J.templateRef)&&(this._portal=new O.VA(J.templateRef,this._viewContainerRef)),this._portal}}return(zt=Vt).\u0275fac=function(J){return new(J||zt)(r.rXU(fe.hJ),r.rXU(r.aKT),r.rXU(r.c1b),r.rXU(ye),r.rXU(Q,8),r.rXU(Ge,10),r.rXU(j.dS,8),r.rXU(n.FN),r.rXU(r.SKi))},zt.\u0275dir=r.FsC({type:zt,hostVars:3,hostBindings:function(J,$e){1&J&&r.bIt("click",function(Gt){return $e._handleClick(Gt)})("mousedown",function(Gt){return $e._handleMousedown(Gt)})("keydown",function(Gt){return $e._handleKeydown(Gt)}),2&J&&r.BMQ("aria-haspopup",$e.menu?"menu":null)("aria-expanded",$e.menuOpen)("aria-controls",$e.menuOpen?$e.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[r.Mj6.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[r.Mj6.None,"matMenuTriggerFor","menu"],menuData:[r.Mj6.None,"matMenuTriggerData","menuData"],restoreFocus:[r.Mj6.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),Vt})(),Qe=(()=>{var zt;class Vt{}return(zt=Vt).\u0275fac=function(J){return new(J||zt)},zt.\u0275mod=r.$C({type:zt}),zt.\u0275inj=r.G2t({providers:[at],imports:[R.MD,I.pZ,I.yE,fe.z_,ce.Gj,I.yE]}),Vt})()},20288:(je,z,c)=>{"use strict";c.d(z,{HM:()=>E,PO:()=>S});var r=c(58527),v=(c(61142),c(51635)),h=c(6364);const f=new r.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),T=(0,v.Zc)(class{constructor(l){this._elementRef=l}},"primary");let E=(()=>{var l;class s extends T{constructor(m,I,R,O,Y){super(m),this._ngZone=I,this._changeDetectorRef=R,this._animationMode=O,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new r.bkB,this._mode="determinate",this._transitionendHandler=j=>{0===this.animationEnd.observers.length||!j.target||!j.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"===O,Y&&(Y.color&&(this.color=this.defaultColor=Y.color),this.mode=Y.mode||this.mode)}get value(){return this._value}set value(m){this._value=y((0,h.OE)(m)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(m){this._bufferValue=y((0,h.OE)(m)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(m){this._mode=m,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}}return(l=s).\u0275fac=function(m){return new(m||l)(r.rXU(r.aKT),r.rXU(r.SKi),r.rXU(r.gRc),r.rXU(r.bc$,8),r.rXU(f,8))},l.\u0275cmp=r.VBU({type:l,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,I){2&m&&(r.BMQ("aria-valuenow",I._isIndeterminate()?null:I.value)("mode",I.mode),r.AVh("_mat-animation-noopable",I._isNoopAnimation)("mdc-linear-progress--animation-ready",!I._isNoopAnimation)("mdc-linear-progress--indeterminate",I._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[r.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,I){1&m&&(r.j41(0,"div",0),r.nrm(1,"div",1)(2,"div",2),r.k0s(),r.j41(3,"div",3),r.nrm(4,"span",4),r.k0s(),r.j41(5,"div",5),r.nrm(6,"span",4),r.k0s()),2&m&&(r.R7$(),r.xc7("flex-basis",I._getBufferBarFlexBasis()),r.R7$(2),r.xc7("transform",I._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}),s})();function y(l,s=0,u=100){return Math.max(s,Math.min(u,l))}let S=(()=>{var l;class s{}return(l=s).\u0275fac=function(m){return new(m||l)},l.\u0275mod=r.$C({type:l}),l.\u0275inj=r.G2t({imports:[v.yE]}),s})()},99204:(je,z,c)=>{"use strict";c.d(z,{D6:()=>u,LG:()=>l});var r=c(58527),n=c(51635),v=c(6364),h=c(61142);const f=["determinateSpinner"];function A(m,I){if(1&m&&(r.qSk(),r.j41(0,"svg",11),r.nrm(1,"circle",12),r.k0s()),2&m){const R=r.XpG();r.BMQ("viewBox",R._viewBox()),r.R7$(),r.xc7("stroke-dasharray",R._strokeCircumference(),"px")("stroke-dashoffset",R._strokeCircumference()/2,"px")("stroke-width",R._circleStrokeWidth(),"%"),r.BMQ("r",R._circleRadius())}}const M=(0,n.Zc)(class{constructor(m){this._elementRef=m}},"primary"),T=new r.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function E(){return{diameter:y}}}),y=100;let l=(()=>{var m;class I extends M{constructor(O,Y,j){super(O),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=y,this._noopAnimations="NoopAnimations"===Y&&!!j&&!j._forceAnimations,j&&(j.color&&(this.color=this.defaultColor=j.color),j.diameter&&(this.diameter=j.diameter),j.strokeWidth&&(this.strokeWidth=j.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(O){this._value=Math.max(0,Math.min(100,(0,v.OE)(O)))}get diameter(){return this._diameter}set diameter(O){this._diameter=(0,v.OE)(O)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(O){this._strokeWidth=(0,v.OE)(O)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const O=2*this._circleRadius()+this.strokeWidth;return`0 0 ${O} ${O}`}_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}}return(m=I).\u0275fac=function(O){return new(O||m)(r.rXU(r.aKT),r.rXU(r.bc$,8),r.rXU(T))},m.\u0275cmp=r.VBU({type:m,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(O,Y){if(1&O&&r.GBs(f,5),2&O){let j;r.mGM(j=r.lsd())&&(Y._determinateCircle=j.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(O,Y){2&O&&(r.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===Y.mode?Y.value:null)("mode",Y.mode),r.xc7("width",Y.diameter,"px")("height",Y.diameter,"px")("--mdc-circular-progress-size",Y.diameter+"px")("--mdc-circular-progress-active-indicator-width",Y.diameter+"px"),r.AVh("_mat-animation-noopable",Y._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===Y.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[r.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(O,Y){if(1&O&&(r.DNE(0,A,2,8,"ng-template",null,0,r.C5r),r.j41(2,"div",2,1),r.qSk(),r.j41(4,"svg",3),r.nrm(5,"circle",4),r.k0s()(),r.joV(),r.j41(6,"div",5)(7,"div",6)(8,"div",7),r.eu8(9,8),r.k0s(),r.j41(10,"div",9),r.eu8(11,8),r.k0s(),r.j41(12,"div",10),r.eu8(13,8),r.k0s()()()),2&O){const j=r.sdS(1);r.R7$(4),r.BMQ("viewBox",Y._viewBox()),r.R7$(),r.xc7("stroke-dasharray",Y._strokeCircumference(),"px")("stroke-dashoffset",Y._strokeDashOffset(),"px")("stroke-width",Y._circleStrokeWidth(),"%"),r.BMQ("r",Y._circleRadius()),r.R7$(4),r.Y8G("ngTemplateOutlet",j),r.R7$(2),r.Y8G("ngTemplateOutlet",j),r.R7$(2),r.Y8G("ngTemplateOutlet",j)}},dependencies:[h.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}),I})(),u=(()=>{var m;class I{}return(m=I).\u0275fac=function(O){return new(O||m)},m.\u0275mod=r.$C({type:m}),m.\u0275inj=r.G2t({imports:[h.MD,n.yE]}),I})()},49678:(je,z,c)=>{"use strict";c.d(z,{KZ:()=>u,VT:()=>j,Wk:()=>te,_g:()=>fe});var r=c(58527),n=c(51635),v=c(31308),h=c(6364),f=c(40567),A=c(56106),M=c(61142);const T=["input"],E=["*"];let y=0;class S{constructor(H,Z){this.source=H,this.value=Z}}const l={provide:A.kq,useExisting:(0,r.Rfq)(()=>j),multi:!0},s=new r.nKC("MatRadioGroup"),u=new r.nKC("mat-radio-default-options",{providedIn:"root",factory:function m(){return{color:"accent"}}});let I=(()=>{var ce;class H{get name(){return this._name}set name(X){this._name=X,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(X){this._labelPosition="before"===X?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(X){this._value!==X&&(this._value=X,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(X){this._selected=X,this.value=X?X.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(X){this._disabled=(0,h.he)(X),this._markRadiosForCheck()}get required(){return this._required}set required(X){this._required=(0,h.he)(X),this._markRadiosForCheck()}constructor(X){this._changeDetector=X,this._value=null,this._name="mat-radio-group-"+y++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new r.bkB}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(X=>X===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(X=>{X.name=this.name,X._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(ue=>{ue.checked=this.value===ue.value,ue.checked&&(this._selected=ue)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new S(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(X=>X._markForCheck())}writeValue(X){this.value=X,this._changeDetector.markForCheck()}registerOnChange(X){this._controlValueAccessorChangeFn=X}registerOnTouched(X){this.onTouched=X}setDisabledState(X){this.disabled=X,this._changeDetector.markForCheck()}}return(ce=H).\u0275fac=function(X){return new(X||ce)(r.rXU(r.gRc))},ce.\u0275dir=r.FsC({type:ce,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),H})();class R{constructor(H){this._elementRef=H}}const O=(0,n.GG)((0,n.BF)(R));let Y=(()=>{var ce;class H extends O{get checked(){return this._checked}set checked(X){const ue=(0,h.he)(X);this._checked!==ue&&(this._checked=ue,ue&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!ue&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),ue&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(X){this._value!==X&&(this._value=X,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===X),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(X){this._labelPosition=X}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(X){this._setDisabled((0,h.he)(X))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(X){this._required=(0,h.he)(X)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(X){this._color=X}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(X,ue,Me,be,Q,ne,Ge,ge){super(ue),this._changeDetector=Me,this._focusMonitor=be,this._radioDispatcher=Q,this._providerOverride=Ge,this._uniqueId="mat-radio-"+ ++y,this.id=this._uniqueId,this.change=new r.bkB,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=X,this._noopAnimations="NoopAnimations"===ne,ge&&(this.tabIndex=(0,h.OE)(ge,0))}focus(X,ue){ue?this._focusMonitor.focusVia(this._inputElement,ue,X):this._inputElement.nativeElement.focus(X)}_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((X,ue)=>{X!==this.id&&ue===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(X=>{!X&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new S(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(X){X.stopPropagation()}_onInputInteraction(X){if(X.stopPropagation(),!this.checked&&!this.disabled){const ue=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),ue&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(X){this._onInputInteraction(X),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(X){this._disabled!==X&&(this._disabled=X,this._changeDetector.markForCheck())}_updateTabIndex(){const X=this.radioGroup;let ue;if(ue=X&&X.selected&&!this.disabled?X.selected===this?this.tabIndex:-1:this.tabIndex,ue!==this._previousTabIndex){const Me=this._inputElement?.nativeElement;Me&&(Me.setAttribute("tabindex",ue+""),this._previousTabIndex=ue)}}}return(ce=H).\u0275fac=function(X){r.QTQ()},ce.\u0275dir=r.FsC({type:ce,viewQuery:function(X,ue){if(1&X&&r.GBs(T,5),2&X){let Me;r.mGM(Me=r.lsd())&&(ue._inputElement=Me.first)}},inputs:{id:"id",name:"name",ariaLabel:[r.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[r.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[r.Mj6.None,"aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[r.Vt3]}),H})(),j=(()=>{var ce;class H extends I{}return(ce=H).\u0275fac=(()=>{let Z;return function(ue){return(Z||(Z=r.xGo(ce)))(ue||ce)}})(),ce.\u0275dir=r.FsC({type:ce,selectors:[["mat-radio-group"]],contentQueries:function(X,ue,Me){if(1&X&&r.wni(Me,fe,5),2&X){let be;r.mGM(be=r.lsd())&&(ue._radios=be)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[r.Jv_([l,{provide:s,useExisting:ce}]),r.Vt3]}),H})(),fe=(()=>{var ce;class H extends Y{constructor(X,ue,Me,be,Q,ne,Ge,ge){super(X,ue,Me,be,Q,ne,Ge,ge)}}return(ce=H).\u0275fac=function(X){return new(X||ce)(r.rXU(s,8),r.rXU(r.aKT),r.rXU(r.gRc),r.rXU(v.FN),r.rXU(f.zP),r.rXU(r.bc$,8),r.rXU(u,8),r.kS0("tabindex"))},ce.\u0275cmp=r.VBU({type:ce,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(X,ue){1&X&&r.bIt("focus",function(){return ue._inputElement.nativeElement.focus()}),2&X&&(r.BMQ("id",ue.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),r.AVh("mat-primary","primary"===ue.color)("mat-accent","accent"===ue.color)("mat-warn","warn"===ue.color)("mat-mdc-radio-checked",ue.checked)("_mat-animation-noopable",ue._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[r.Vt3],ngContentSelectors:E,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(X,ue){if(1&X){const Me=r.RV6();r.NAR(),r.j41(0,"div",2,0)(2,"div",3)(3,"div",4),r.bIt("click",function(Q){return r.eBV(Me),r.Njj(ue._onTouchTargetClick(Q))}),r.k0s(),r.j41(4,"input",5,1),r.bIt("change",function(Q){return r.eBV(Me),r.Njj(ue._onInputInteraction(Q))}),r.k0s(),r.j41(6,"div",6),r.nrm(7,"div",7)(8,"div",8),r.k0s(),r.j41(9,"div",9),r.nrm(10,"div",10),r.k0s()(),r.j41(11,"label",11),r.SdG(12),r.k0s()()}if(2&X){const Me=r.sdS(1);r.AVh("mdc-form-field--align-end","before"==ue.labelPosition),r.R7$(2),r.AVh("mdc-radio--disabled",ue.disabled),r.R7$(2),r.Y8G("id",ue.inputId)("checked",ue.checked)("disabled",ue.disabled)("required",ue.required),r.BMQ("name",ue.name)("value",ue.value)("aria-label",ue.ariaLabel)("aria-labelledby",ue.ariaLabelledby)("aria-describedby",ue.ariaDescribedby),r.R7$(5),r.Y8G("matRippleTrigger",Me)("matRippleDisabled",ue._isRippleDisabled())("matRippleCentered",!0),r.R7$(2),r.Y8G("for",ue.inputId)}},dependencies:[n.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}),H})(),te=(()=>{var ce;class H{}return(ce=H).\u0275fac=function(X){return new(X||ce)},ce.\u0275mod=r.$C({type:ce}),ce.\u0275inj=r.G2t({imports:[n.yE,M.MD,n.pZ,n.yE]}),H})()},12949:(je,z,c)=>{"use strict";c.d(z,{$2:()=>Oe,JO:()=>ee,VO:()=>ye,Ve:()=>Ie});var r=c(61904),n=c(61142),v=c(58527),h=c(51635),f=c(74292),A=c(37278),M=c(31308),T=c(51394),E=c(6364),y=c(40567),S=c(25373),l=c(56106),s=c(80583),u=c(63997),m=c(16229),I=c(34593),R=c(72147),O=c(65706),Y=c(8619),j=c(83915),fe=c(53461),te=c(4208),ce=c(40262);const H=["trigger"],Z=["panel"],X=[[["mat-select-trigger"]],"*"],ue=["mat-select-trigger","*"];function Me(at,K){if(1&at&&(v.j41(0,"span",11),v.EFF(1),v.k0s()),2&at){const ve=v.XpG();v.R7$(),v.JRh(ve.placeholder)}}function be(at,K){if(1&at&&(v.j41(0,"span",15),v.EFF(1),v.k0s()),2&at){const ve=v.XpG(2);v.R7$(),v.JRh(ve.triggerValue)}}function Q(at,K){1&at&&v.SdG(0,0,["*ngSwitchCase","true"])}function ne(at,K){if(1&at&&(v.j41(0,"span",12),v.DNE(1,be,2,1,"span",13)(2,Q,1,0,"ng-content",14),v.k0s()),2&at){const ve=v.XpG();v.Y8G("ngSwitch",!!ve.customTrigger),v.R7$(2),v.Y8G("ngSwitchCase",!0)}}function Ge(at,K){if(1&at){const ve=v.RV6();v.j41(0,"div",16,1),v.bIt("@transformPanel.done",function(pe){v.eBV(ve);const Qe=v.XpG();return v.Njj(Qe._panelDoneAnimatingStream.next(pe.toState))})("keydown",function(pe){v.eBV(ve);const Qe=v.XpG();return v.Njj(Qe._handleKeydown(pe))}),v.SdG(2,1),v.k0s()}if(2&at){const ve=v.XpG();v.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",ve._getPanelTheme(),""),v.Y8G("ngClass",ve.panelClass)("@transformPanel","showing"),v.BMQ("id",ve.id+"-panel")("aria-multiselectable",ve.multiple)("aria-label",ve.ariaLabel||null)("aria-labelledby",ve._getPanelAriaLabelledby())}}const ge={transformPanelWrap:(0,ce.hZ)("transformPanelWrap",[(0,ce.kY)("* => void",(0,ce.P)("@transformPanel",[(0,ce.MA)()],{optional:!0}))]),transformPanel:(0,ce.hZ)("transformPanel",[(0,ce.wk)("void",(0,ce.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,ce.kY)("void => showing",(0,ce.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ce.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,ce.kY)("* => void",(0,ce.i0)("100ms linear",(0,ce.iF)({opacity:0})))])};let xe=0;const Re=new v.nKC("mat-select-scroll-strategy"),ee=new v.nKC("MAT_SELECT_CONFIG"),W={provide:Re,deps:[r.hJ],useFactory:function Ue(at){return()=>at.scrollStrategies.reposition()}},Pe=new v.nKC("MatSelectTrigger");class le{constructor(K,ve){this.source=K,this.value=ve}}const oe=(0,h.GG)((0,h.BF)((0,h.Ob)((0,h.J8)(class{constructor(at,K,ve,De,pe){this._elementRef=at,this._defaultErrorStateMatcher=K,this._parentForm=ve,this._parentFormGroup=De,this.ngControl=pe,this.stateChanges=new s.B7}}))));let Le=(()=>{var at;class K extends oe{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(De){this._placeholder=De,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(l.k0.required)??!1}set required(De){this._required=(0,E.he)(De),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(De){this._multiple=(0,E.he)(De)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(De){this._disableOptionCentering=(0,E.he)(De)}get compareWith(){return this._compareWith}set compareWith(De){this._compareWith=De,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(De){this._assignValue(De)&&this._onChange(De)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(De){this._typeaheadDebounceInterval=(0,E.OE)(De)}get id(){return this._id}set id(De){this._id=De||this._uid,this.stateChanges.next()}constructor(De,pe,Qe,zt,Vt,de,J,$e,st,Gt,Zt,kn,Un,ni){super(Vt,zt,J,$e,Gt),this._viewportRuler=De,this._changeDetectorRef=pe,this._ngZone=Qe,this._dir=de,this._parentFormField=st,this._liveAnnouncer=Un,this._defaultOptions=ni,this._panelOpen=!1,this._compareWith=(qe,mi)=>qe===mi,this._uid="mat-select-"+xe++,this._triggerAriaLabelledBy=null,this._destroy=new s.B7,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+xe++,this._panelDoneAnimatingStream=new s.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,u.v)(()=>{const qe=this.options;return qe?qe.changes.pipe((0,I.Z)(qe),(0,R.n)(()=>(0,m.h)(...qe.map(mi=>mi.onSelectionChange)))):this._ngZone.onStable.pipe((0,O.s)(1),(0,R.n)(()=>this.optionSelectionChanges))}),this.openedChange=new v.bkB,this._openedStream=this.openedChange.pipe((0,Y.p)(qe=>qe),(0,j.T)(()=>{})),this._closedStream=this.openedChange.pipe((0,Y.p)(qe=>!qe),(0,j.T)(()=>{})),this.selectionChange=new v.bkB,this.valueChange=new v.bkB,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=ni?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=ni.typeaheadDebounceInterval),this._scrollStrategyFactory=kn,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Zt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new y.CB(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,fe.F)(),(0,te.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,te.Q)(this._destroy)).subscribe(De=>{De.added.forEach(pe=>pe.select()),De.removed.forEach(pe=>pe.deselect())}),this.options.changes.pipe((0,I.Z)(null),(0,te.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const De=this._getTriggerAriaLabelledby(),pe=this.ngControl;if(De!==this._triggerAriaLabelledBy){const Qe=this._elementRef.nativeElement;this._triggerAriaLabelledBy=De,De?Qe.setAttribute("aria-labelledby",De):Qe.removeAttribute("aria-labelledby")}pe&&(this._previousControl!==pe.control&&(void 0!==this._previousControl&&null!==pe.disabled&&pe.disabled!==this.disabled&&(this.disabled=pe.disabled),this._previousControl=pe.control),this.updateErrorState())}ngOnChanges(De){(De.disabled||De.userAriaDescribedBy)&&this.stateChanges.next(),De.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 De=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!De)return;const pe=`${this.id}-panel`;this._trackedModal&&(0,M.Ae)(this._trackedModal,"aria-owns",pe),(0,M.px)(De,"aria-owns",pe),this._trackedModal=De}_clearFromModal(){this._trackedModal&&((0,M.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(De){this._assignValue(De)}registerOnChange(De){this._onChange=De}registerOnTouched(De){this._onTouched=De}setDisabledState(De){this.disabled=De,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 De=this._selectionModel.selected.map(pe=>pe.viewValue);return this._isRtl()&&De.reverse(),De.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(De){this.disabled||(this.panelOpen?this._handleOpenKeydown(De):this._handleClosedKeydown(De))}_handleClosedKeydown(De){const pe=De.keyCode,Qe=pe===S.n6||pe===S.i7||pe===S.UQ||pe===S.LE,zt=pe===S.Fm||pe===S.t6,Vt=this._keyManager;if(!Vt.isTyping()&&zt&&!(0,S.rp)(De)||(this.multiple||De.altKey)&&Qe)De.preventDefault(),this.open();else if(!this.multiple){const de=this.selected;Vt.onKeydown(De);const J=this.selected;J&&de!==J&&this._liveAnnouncer.announce(J.viewValue,1e4)}}_handleOpenKeydown(De){const pe=this._keyManager,Qe=De.keyCode,zt=Qe===S.n6||Qe===S.i7,Vt=pe.isTyping();if(zt&&De.altKey)De.preventDefault(),this.close();else if(Vt||Qe!==S.Fm&&Qe!==S.t6||!pe.activeItem||(0,S.rp)(De))if(!Vt&&this._multiple&&Qe===S.A&&De.ctrlKey){De.preventDefault();const de=this.options.some(J=>!J.disabled&&!J.selected);this.options.forEach(J=>{J.disabled||(de?J.select():J.deselect())})}else{const de=pe.activeItemIndex;pe.onKeydown(De),this._multiple&&zt&&De.shiftKey&&pe.activeItem&&pe.activeItemIndex!==de&&pe.activeItem._selectViaInteraction()}else De.preventDefault(),pe.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,O.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(De){if(this.options.forEach(pe=>pe.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&De)Array.isArray(De),De.forEach(pe=>this._selectOptionByValue(pe)),this._sortValues();else{const pe=this._selectOptionByValue(De);pe?this._keyManager.updateActiveItem(pe):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(De){const pe=this.options.find(Qe=>{if(this._selectionModel.isSelected(Qe))return!1;try{return null!=Qe.value&&this._compareWith(Qe.value,De)}catch{return!1}});return pe&&this._selectionModel.select(pe),pe}_assignValue(De){return!!(De!==this._value||this._multiple&&Array.isArray(De))&&(this.options&&this._setSelectionByValue(De),this._value=De,!0)}_skipPredicate(De){return De.disabled}_initKeyManager(){this._keyManager=new M.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 De=(0,m.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,te.Q)(De)).subscribe(pe=>{this._onSelect(pe.source,pe.isUserInput),pe.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,m.h)(...this.options.map(pe=>pe._stateChanges)).pipe((0,te.Q)(De)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(De,pe){const Qe=this._selectionModel.isSelected(De);null!=De.value||this._multiple?(Qe!==De.selected&&(De.selected?this._selectionModel.select(De):this._selectionModel.deselect(De)),pe&&this._keyManager.setActiveItem(De),this.multiple&&(this._sortValues(),pe&&this.focus())):(De.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(De.value)),Qe!==this._selectionModel.isSelected(De)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const De=this.options.toArray();this._selectionModel.sort((pe,Qe)=>this.sortComparator?this.sortComparator(pe,Qe,De):De.indexOf(pe)-De.indexOf(Qe)),this.stateChanges.next()}}_propagateChanges(De){let pe=null;pe=this.multiple?this.selected.map(Qe=>Qe.value):this.selected?this.selected.value:De,this._value=pe,this.valueChange.emit(pe),this._onChange(pe),this.selectionChange.emit(this._getChangeEvent(pe)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let De=-1;for(let pe=0;pe<this.options.length;pe++)if(!this.options.get(pe).disabled){De=pe;break}this._keyManager.setActiveItem(De)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(De){this._elementRef.nativeElement.focus(De)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const De=this._parentFormField?.getLabelId();return this.ariaLabelledby?(De?De+" ":"")+this.ariaLabelledby:De}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const De=this._parentFormField?.getLabelId();let pe=(De?De+" ":"")+this._valueId;return this.ariaLabelledby&&(pe+=" "+this.ariaLabelledby),pe}_panelDoneAnimating(De){this.openedChange.emit(De)}setDescribedByIds(De){De.length?this._elementRef.nativeElement.setAttribute("aria-describedby",De.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return(at=K).\u0275fac=function(De){return new(De||at)(v.rXU(A.Xj),v.rXU(v.gRc),v.rXU(v.SKi),v.rXU(h.es),v.rXU(v.aKT),v.rXU(T.dS,8),v.rXU(l.cV,8),v.rXU(l.j4,8),v.rXU(f.xb,8),v.rXU(l.vO,10),v.kS0("tabindex"),v.rXU(Re),v.rXU(M.Ai),v.rXU(ee,8))},at.\u0275dir=v.FsC({type:at,viewQuery:function(De,pe){if(1&De&&(v.GBs(H,5),v.GBs(Z,5),v.GBs(r.WB,5)),2&De){let Qe;v.mGM(Qe=v.lsd())&&(pe.trigger=Qe.first),v.mGM(Qe=v.lsd())&&(pe.panel=Qe.first),v.mGM(Qe=v.lsd())&&(pe._overlayDir=Qe.first)}},inputs:{userAriaDescribedBy:[v.Mj6.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:[v.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[v.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:[v.Vt3,v.OA$]}),K})(),Oe=(()=>{var at;class K{}return(at=K).\u0275fac=function(De){return new(De||at)},at.\u0275dir=v.FsC({type:at,selectors:[["mat-select-trigger"]],features:[v.Jv_([{provide:Pe,useExisting:at}])]}),K})(),ye=(()=>{var at;class K extends Le{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=De=>!this.panelOpen&&De.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,te.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(De){const pe=this.options.toArray()[De];if(pe){const Qe=this.panel.nativeElement,zt=(0,h.jb)(De,this.options,this.optionGroups),Vt=pe._getHostElement();Qe.scrollTop=0===De&&1===zt?0:(0,h.TL)(Vt.offsetTop,Vt.offsetHeight,Qe.scrollTop,Qe.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(De){return new le(this,De)}_getOverlayWidth(De){return"auto"===this.panelWidth?(De instanceof r.$Q?De.elementRef:De||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(De){this._hideSingleSelectionIndicator=(0,E.he)(De),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const De of this.options)De._changeDetectorRef.markForCheck()}}return(at=K).\u0275fac=(()=>{let ve;return function(pe){return(ve||(ve=v.xGo(at)))(pe||at)}})(),at.\u0275cmp=v.VBU({type:at,selectors:[["mat-select"]],contentQueries:function(De,pe,Qe){if(1&De&&(v.wni(Qe,Pe,5),v.wni(Qe,h.wT,5),v.wni(Qe,h.QC,5)),2&De){let zt;v.mGM(zt=v.lsd())&&(pe.customTrigger=zt.first),v.mGM(zt=v.lsd())&&(pe.options=zt),v.mGM(zt=v.lsd())&&(pe.optionGroups=zt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(De,pe){1&De&&v.bIt("keydown",function(zt){return pe._handleKeydown(zt)})("focus",function(){return pe._onFocus()})("blur",function(){return pe._onBlur()}),2&De&&(v.BMQ("id",pe.id)("tabindex",pe.tabIndex)("aria-controls",pe.panelOpen?pe.id+"-panel":null)("aria-expanded",pe.panelOpen)("aria-label",pe.ariaLabel||null)("aria-required",pe.required.toString())("aria-disabled",pe.disabled.toString())("aria-invalid",pe.errorState)("aria-activedescendant",pe._getAriaActiveDescendant()),v.AVh("mat-mdc-select-disabled",pe.disabled)("mat-mdc-select-invalid",pe.errorState)("mat-mdc-select-required",pe.required)("mat-mdc-select-empty",pe.empty)("mat-mdc-select-multiple",pe.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[v.Jv_([{provide:f.qT,useExisting:at},{provide:h.is,useExisting:at}]),v.Vt3],ngContentSelectors:ue,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(De,pe){if(1&De){const Qe=v.RV6();v.NAR(X),v.j41(0,"div",2,0),v.bIt("click",function(){return v.eBV(Qe),v.Njj(pe.toggle())}),v.j41(3,"div",3),v.DNE(4,Me,2,1,"span",4)(5,ne,3,2,"span",5),v.k0s(),v.j41(6,"div",6)(7,"div",7),v.qSk(),v.j41(8,"svg",8),v.nrm(9,"path",9),v.k0s()()()(),v.DNE(10,Ge,3,9,"ng-template",10),v.bIt("backdropClick",function(){return v.eBV(Qe),v.Njj(pe.close())})("attach",function(){return v.eBV(Qe),v.Njj(pe._onAttached())})("detach",function(){return v.eBV(Qe),v.Njj(pe.close())})}if(2&De){const Qe=v.sdS(1);v.R7$(3),v.Y8G("ngSwitch",pe.empty),v.BMQ("id",pe._valueId),v.R7$(),v.Y8G("ngSwitchCase",!0),v.R7$(),v.Y8G("ngSwitchCase",!1),v.R7$(5),v.Y8G("cdkConnectedOverlayPanelClass",pe._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",pe._scrollStrategy)("cdkConnectedOverlayOrigin",pe._preferredOverlayOrigin||Qe)("cdkConnectedOverlayOpen",pe.panelOpen)("cdkConnectedOverlayPositions",pe._positions)("cdkConnectedOverlayWidth",pe._overlayWidth)}},dependencies:[n.YU,n.ux,n.e1,n.fG,r.WB,r.$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:[ge.transformPanel]},changeDetection:0}),K})(),Ie=(()=>{var at;class K{}return(at=K).\u0275fac=function(De){return new(De||at)},at.\u0275mod=v.$C({type:at}),at.\u0275inj=v.G2t({providers:[W],imports:[n.MD,r.z_,h.Sy,h.yE,A.Gj,f.RG,h.Sy,h.yE]}),K})()},68477:(je,z,c)=>{"use strict";c.d(z,{ES:()=>zt,RI:()=>Oi,T8:()=>bt,mq:()=>_i});var r=c(61142),n=c(58527),v=c(51635),h=c(76614),f=c(26321),A=c(31308),M=c(51394),T=c(10399),E=c(80583),y=c(36877),S=c(43848),l=c(16229),s=c(12532),u=c(17053),m=c(3496),I=c(34593),R=c(53461),O=c(4208),Y=c(65706),j=c(72147),fe=c(36666),te=c(8619),ce=c(40262),H=c(6364),Z=c(37278),X=c(72653),ue=c(25373);const Me=Qn=>({animationDuration:Qn}),be=(Qn,Fi)=>({value:Qn,params:Fi});function Q(Qn,Fi){}const ne=["*"];function Ge(Qn,Fi){1&Qn&&n.SdG(0)}const ge=["tabListContainer"],Xe=["tabList"],ot=["tabListInner"],dt=["nextPaginator"],xe=["previousPaginator"],Re=["tabBodyWrapper"],Ue=["tabHeader"];function ee(Qn,Fi){}function W(Qn,Fi){if(1&Qn&&n.DNE(0,ee,0,0,"ng-template",14),2&Qn){const Ai=n.XpG().$implicit;n.Y8G("cdkPortalOutlet",Ai.templateLabel)}}function Pe(Qn,Fi){if(1&Qn&&n.EFF(0),2&Qn){const Ai=n.XpG().$implicit;n.JRh(Ai.textLabel)}}function le(Qn,Fi){if(1&Qn){const Ai=n.RV6();n.j41(0,"div",8,2),n.bIt("click",function(){const Mn=n.eBV(Ai),bi=Mn.$implicit,Hi=Mn.index,Mr=n.XpG(),Wr=n.sdS(1);return n.Njj(Mr._handleClick(bi,Wr,Hi))})("cdkFocusChange",function(Mn){const bi=n.eBV(Ai).index,Hi=n.XpG();return n.Njj(Hi._tabFocusChanged(Mn,bi))}),n.nrm(2,"span",9)(3,"div",10),n.j41(4,"span",11)(5,"span",12),n.DNE(6,W,1,1,"ng-template",13)(7,Pe,1,1,"ng-template",null,3,n.C5r),n.k0s()()()}if(2&Qn){const Ai=Fi.$implicit,ln=Fi.index,Mn=n.sdS(1),bi=n.sdS(8),Hi=n.XpG();n.AVh("mdc-tab--active",Hi.selectedIndex===ln),n.Y8G("id",Hi._getTabLabelId(ln))("ngClass",Ai.labelClass)("disabled",Ai.disabled)("fitInkBarToContent",Hi.fitInkBarToContent),n.BMQ("tabIndex",Hi._getTabIndex(ln))("aria-posinset",ln+1)("aria-setsize",Hi._tabs.length)("aria-controls",Hi._getTabContentId(ln))("aria-selected",Hi.selectedIndex===ln)("aria-label",Ai.ariaLabel||null)("aria-labelledby",!Ai.ariaLabel&&Ai.ariaLabelledby?Ai.ariaLabelledby:null),n.R7$(3),n.Y8G("matRippleTrigger",Mn)("matRippleDisabled",Ai.disabled||Hi.disableRipple),n.R7$(3),n.Y8G("ngIf",Ai.templateLabel)("ngIfElse",bi)}}function oe(Qn,Fi){if(1&Qn){const Ai=n.RV6();n.j41(0,"mat-tab-body",15),n.bIt("_onCentered",function(){n.eBV(Ai);const Mn=n.XpG();return n.Njj(Mn._removeTabBodyWrapperHeight())})("_onCentering",function(Mn){n.eBV(Ai);const bi=n.XpG();return n.Njj(bi._setTabBodyWrapperHeight(Mn))}),n.k0s()}if(2&Qn){const Ai=Fi.$implicit,ln=Fi.index,Mn=n.XpG();n.AVh("mat-mdc-tab-body-active",Mn.selectedIndex===ln),n.Y8G("id",Mn._getTabContentId(ln))("ngClass",Ai.bodyClass)("content",Ai.content)("position",Ai.position)("origin",Ai.origin)("animationDuration",Mn.animationDuration)("preserveContent",Mn.preserveContent),n.BMQ("tabindex",null!=Mn.contentTabIndex&&Mn.selectedIndex===ln?Mn.contentTabIndex:null)("aria-labelledby",Mn._getTabLabelId(ln))("aria-hidden",Mn.selectedIndex!==ln)}}const ye={translateTab:(0,ce.hZ)("translateTab",[(0,ce.wk)("center, void, left-origin-center, right-origin-center",(0,ce.iF)({transform:"none"})),(0,ce.wk)("left",(0,ce.iF)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,ce.wk)("right",(0,ce.iF)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,ce.kY)("* => left, * => right, left => center, right => center",(0,ce.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,ce.kY)("void => left-origin-center",[(0,ce.iF)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,ce.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,ce.kY)("void => right-origin-center",[(0,ce.iF)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,ce.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Ie=(()=>{var Qn;class Fi extends h.I3{constructor(ln,Mn,bi,Hi){super(ln,Mn,Hi),this._host=bi,this._centeringSub=T.y.EMPTY,this._leavingSub=T.y.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,I.Z)(this._host._isCenterPosition(this._host._position))).subscribe(ln=>{ln&&!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()}}return(Qn=Fi).\u0275fac=function(ln){return new(ln||Qn)(n.rXU(n.OM3),n.rXU(n.c1b),n.rXU((0,n.Rfq)(()=>K)),n.rXU(r.qQ))},Qn.\u0275dir=n.FsC({type:Qn,selectors:[["","matTabBodyHost",""]],features:[n.Vt3]}),Fi})(),at=(()=>{var Qn;class Fi{set position(ln){this._positionIndex=ln,this._computePositionAnimationState()}constructor(ln,Mn,bi){this._elementRef=ln,this._dir=Mn,this._dirChangeSubscription=T.y.EMPTY,this._translateTabComplete=new E.B7,this._onCentering=new n.bkB,this._beforeCentering=new n.bkB,this._afterLeavingCenter=new n.bkB,this._onCentered=new n.bkB(!0),this.animationDuration="500ms",this.preserveContent=!1,Mn&&(this._dirChangeSubscription=Mn.change.subscribe(Hi=>{this._computePositionAnimationState(Hi),bi.markForCheck()})),this._translateTabComplete.pipe((0,R.F)((Hi,Mr)=>Hi.fromState===Mr.fromState&&Hi.toState===Mr.toState)).subscribe(Hi=>{this._isCenterPosition(Hi.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Hi.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(ln){const Mn=this._isCenterPosition(ln.toState);this._beforeCentering.emit(Mn),Mn&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(ln){return"center"==ln||"left-origin-center"==ln||"right-origin-center"==ln}_computePositionAnimationState(ln=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==ln?"left":"right":this._positionIndex>0?"ltr"==ln?"right":"left":"center"}_computePositionFromOrigin(ln){const Mn=this._getLayoutDirection();return"ltr"==Mn&&ln<=0||"rtl"==Mn&&ln>0?"left-origin-center":"right-origin-center"}}return(Qn=Fi).\u0275fac=function(ln){return new(ln||Qn)(n.rXU(n.aKT),n.rXU(M.dS,8),n.rXU(n.gRc))},Qn.\u0275dir=n.FsC({type:Qn,inputs:{_content:[n.Mj6.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Fi})(),K=(()=>{var Qn;class Fi extends at{constructor(ln,Mn,bi){super(ln,Mn,bi)}}return(Qn=Fi).\u0275fac=function(ln){return new(ln||Qn)(n.rXU(n.aKT),n.rXU(M.dS,8),n.rXU(n.gRc))},Qn.\u0275cmp=n.VBU({type:Qn,selectors:[["mat-tab-body"]],viewQuery:function(ln,Mn){if(1&ln&&n.GBs(h.I3,5),2&ln){let bi;n.mGM(bi=n.lsd())&&(Mn._portalHost=bi.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[n.Vt3],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(ln,Mn){if(1&ln){const bi=n.RV6();n.j41(0,"div",1,0),n.bIt("@translateTab.start",function(Mr){return n.eBV(bi),n.Njj(Mn._onTranslateTabStarted(Mr))})("@translateTab.done",function(Mr){return n.eBV(bi),n.Njj(Mn._translateTabComplete.next(Mr))}),n.DNE(2,Q,0,0,"ng-template",2),n.k0s()}2&ln&&n.Y8G("@translateTab",n.l_i(3,be,Mn._position,n.eq3(1,Me,Mn.animationDuration)))},dependencies:[Ie],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:[ye.translateTab]}}),Fi})();const ve=new n.nKC("MatTabContent");let De=(()=>{var Qn;class Fi{constructor(ln){this.template=ln}}return(Qn=Fi).\u0275fac=function(ln){return new(ln||Qn)(n.rXU(n.C4Q))},Qn.\u0275dir=n.FsC({type:Qn,selectors:[["","matTabContent",""]],features:[n.Jv_([{provide:ve,useExisting:Qn}])]}),Fi})();const pe=new n.nKC("MatTabLabel"),Qe=new n.nKC("MAT_TAB");let zt=(()=>{var Qn;class Fi extends h.bV{constructor(ln,Mn,bi){super(ln,Mn),this._closestTab=bi}}return(Qn=Fi).\u0275fac=function(ln){return new(ln||Qn)(n.rXU(n.C4Q),n.rXU(n.c1b),n.rXU(Qe,8))},Qn.\u0275dir=n.FsC({type:Qn,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[n.Jv_([{provide:pe,useExisting:Qn}]),n.Vt3]}),Fi})();const Vt="mdc-tab-indicator--active",de="mdc-tab-indicator--no-transition";class J{constructor(Fi){this._items=Fi}hide(){this._items.forEach(Fi=>Fi.deactivateInkBar())}alignToElement(Fi){const Ai=this._items.find(Mn=>Mn.elementRef.nativeElement===Fi),ln=this._currentItem;if(Ai!==ln&&(ln?.deactivateInkBar(),Ai)){const Mn=ln?.elementRef.nativeElement.getBoundingClientRect?.();Ai.activateInkBar(Mn),this._currentItem=Ai}}}function $e(Qn){return class extends Qn{constructor(...Fi){super(...Fi),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(Fi){const Ai=(0,H.he)(Fi);this._fitToContent!==Ai&&(this._fitToContent=Ai,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(Fi){const Ai=this.elementRef.nativeElement;if(!Fi||!Ai.getBoundingClientRect||!this._inkBarContentElement)return void Ai.classList.add(Vt);const ln=Ai.getBoundingClientRect(),Mn=Fi.width/ln.width,bi=Fi.left-ln.left;Ai.classList.add(de),this._inkBarContentElement.style.setProperty("transform",`translateX(${bi}px) scaleX(${Mn})`),Ai.getBoundingClientRect(),Ai.classList.remove(de),Ai.classList.add(Vt),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Vt)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const Fi=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=Fi.createElement("span"),this._inkBarContentElement=Fi.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 Zt=(0,v.Ob)(class{}),Un=$e((()=>{var Qn;class Fi extends Zt{constructor(ln){super(),this.elementRef=ln}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return(Qn=Fi).\u0275fac=function(ln){return new(ln||Qn)(n.rXU(n.aKT))},Qn.\u0275dir=n.FsC({type:Qn,features:[n.Vt3]}),Fi})());let ni=(()=>{var Qn;class Fi extends Un{}return(Qn=Fi).\u0275fac=(()=>{let Ai;return function(Mn){return(Ai||(Ai=n.xGo(Qn)))(Mn||Qn)}})(),Qn.\u0275dir=n.FsC({type:Qn,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(ln,Mn){2&ln&&(n.BMQ("aria-disabled",!!Mn.disabled),n.AVh("mat-mdc-tab-disabled",Mn.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[n.Vt3]}),Fi})();const qe=(0,v.Ob)(class{}),mi=new n.nKC("MAT_TAB_GROUP");let Bi=(()=>{var Qn;class Fi extends qe{get content(){return this._contentPortal}constructor(ln,Mn){super(),this._viewContainerRef=ln,this._closestTabGroup=Mn,this.textLabel="",this._contentPortal=null,this._stateChanges=new E.B7,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(ln){(ln.hasOwnProperty("textLabel")||ln.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new h.VA(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(ln){ln&&ln._closestTab===this&&(this._templateLabel=ln)}}return(Qn=Fi).\u0275fac=function(ln){return new(ln||Qn)(n.rXU(n.c1b),n.rXU(mi,8))},Qn.\u0275dir=n.FsC({type:Qn,viewQuery:function(ln,Mn){if(1&ln&&n.GBs(n.C4Q,7),2&ln){let bi;n.mGM(bi=n.lsd())&&(Mn._implicitContent=bi.first)}},inputs:{textLabel:[n.Mj6.None,"label","textLabel"],ariaLabel:[n.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[n.Mj6.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[n.Vt3,n.OA$]}),Fi})(),_i=(()=>{var Qn;class Fi extends Bi{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(ln){this._setTemplateLabelInput(ln)}}return(Qn=Fi).\u0275fac=(()=>{let Ai;return function(Mn){return(Ai||(Ai=n.xGo(Qn)))(Mn||Qn)}})(),Qn.\u0275cmp=n.VBU({type:Qn,selectors:[["mat-tab"]],contentQueries:function(ln,Mn,bi){if(1&ln&&(n.wni(bi,De,7,n.C4Q),n.wni(bi,zt,5)),2&ln){let Hi;n.mGM(Hi=n.lsd())&&(Mn._explicitContent=Hi.first),n.mGM(Hi=n.lsd())&&(Mn.templateLabel=Hi.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[n.Jv_([{provide:Qe,useExisting:Qn}]),n.Vt3],ngContentSelectors:ne,decls:1,vars:0,template:function(ln,Mn){1&ln&&(n.NAR(),n.DNE(0,Ge,1,0,"ng-template"))},encapsulation:2}),Fi})();const Bn=(0,X.BQ)({passive:!0});let vn=(()=>{var Qn;class Fi{get disablePagination(){return this._disablePagination}set disablePagination(ln){this._disablePagination=(0,H.he)(ln)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ln){ln=(0,H.OE)(ln),this._selectedIndex!=ln&&(this._selectedIndexChanged=!0,this._selectedIndex=ln,this._keyManager&&this._keyManager.updateActiveItem(ln))}constructor(ln,Mn,bi,Hi,Mr,Wr,uo){this._elementRef=ln,this._changeDetectorRef=Mn,this._viewportRuler=bi,this._dir=Hi,this._ngZone=Mr,this._platform=Wr,this._animationMode=uo,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new E.B7,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new E.B7,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new n.bkB,this.indexFocused=new n.bkB,Mr.runOutsideAngular(()=>{(0,y.R)(ln.nativeElement,"mouseleave").pipe((0,O.Q)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,y.R)(this._previousPaginator.nativeElement,"touchstart",Bn).pipe((0,O.Q)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,y.R)(this._nextPaginator.nativeElement,"touchstart",Bn).pipe((0,O.Q)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const ln=this._dir?this._dir.change:(0,S.of)("ltr"),Mn=this._viewportRuler.change(150),bi=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new A.Bu(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,Y.s)(1)).subscribe(bi),(0,l.h)(ln,Mn,this._items.changes,this._itemsResized()).pipe((0,O.Q)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),bi()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Hi=>{this.indexFocused.emit(Hi),this._setTabFocus(Hi)})}_itemsResized(){return"function"!=typeof ResizeObserver?s.w:this._items.changes.pipe((0,I.Z)(this._items),(0,j.n)(ln=>new u.c(Mn=>this._ngZone.runOutsideAngular(()=>{const bi=new ResizeObserver(Hi=>Mn.next(Hi));return ln.forEach(Hi=>bi.observe(Hi.elementRef.nativeElement)),()=>{bi.disconnect()}}))),(0,fe.i)(1),(0,te.p)(ln=>ln.some(Mn=>Mn.contentRect.width>0&&Mn.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(ln){if(!(0,ue.rp)(ln))switch(ln.keyCode){case ue.Fm:case ue.t6:if(this.focusIndex!==this.selectedIndex){const Mn=this._items.get(this.focusIndex);Mn&&!Mn.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(ln))}break;default:this._keyManager.onKeydown(ln)}}_onContentChanges(){const ln=this._elementRef.nativeElement.textContent;ln!==this._currentTextContent&&(this._currentTextContent=ln||"",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(ln){!this._isValidIndex(ln)||this.focusIndex===ln||!this._keyManager||this._keyManager.setActiveItem(ln)}_isValidIndex(ln){return!this._items||!!this._items.toArray()[ln]}_setTabFocus(ln){if(this._showPaginationControls&&this._scrollToLabel(ln),this._items&&this._items.length){this._items.toArray()[ln].focus();const Mn=this._tabListContainer.nativeElement;Mn.scrollLeft="ltr"==this._getLayoutDirection()?0:Mn.scrollWidth-Mn.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const ln=this.scrollDistance,Mn="ltr"===this._getLayoutDirection()?-ln:ln;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Mn)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(ln){this._scrollTo(ln)}_scrollHeader(ln){return this._scrollTo(this._scrollDistance+("before"==ln?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(ln){this._stopInterval(),this._scrollHeader(ln)}_scrollToLabel(ln){if(this.disablePagination)return;const Mn=this._items?this._items.toArray()[ln]:null;if(!Mn)return;const bi=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Hi,offsetWidth:Mr}=Mn.elementRef.nativeElement;let Wr,uo;"ltr"==this._getLayoutDirection()?(Wr=Hi,uo=Wr+Mr):(uo=this._tabListInner.nativeElement.offsetWidth-Hi,Wr=uo-Mr);const Nr=this.scrollDistance,ss=this.scrollDistance+bi;Wr<Nr?this.scrollDistance-=Nr-Wr:uo>ss&&(this.scrollDistance+=Math.min(uo-ss,Wr-Nr))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const ln=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;ln||(this.scrollDistance=0),ln!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=ln}}_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 ln=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Mn=ln?ln.elementRef.nativeElement:null;Mn?this._inkBar.alignToElement(Mn):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(ln,Mn){Mn&&null!=Mn.button&&0!==Mn.button||(this._stopInterval(),(0,m.O)(650,100).pipe((0,O.Q)((0,l.h)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:bi,distance:Hi}=this._scrollHeader(ln);(0===Hi||Hi>=bi)&&this._stopInterval()}))}_scrollTo(ln){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Mn=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Mn,ln)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Mn,distance:this._scrollDistance}}}return(Qn=Fi).\u0275fac=function(ln){return new(ln||Qn)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(Z.Xj),n.rXU(M.dS,8),n.rXU(n.SKi),n.rXU(X.OD),n.rXU(n.bc$,8))},Qn.\u0275dir=n.FsC({type:Qn,inputs:{disablePagination:"disablePagination"}}),Fi})(),Vn=(()=>{var Qn;class Fi extends vn{get disableRipple(){return this._disableRipple}set disableRipple(ln){this._disableRipple=(0,H.he)(ln)}constructor(ln,Mn,bi,Hi,Mr,Wr,uo){super(ln,Mn,bi,Hi,Mr,Wr,uo),this._disableRipple=!1}_itemSelected(ln){ln.preventDefault()}}return(Qn=Fi).\u0275fac=function(ln){return new(ln||Qn)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(Z.Xj),n.rXU(M.dS,8),n.rXU(n.SKi),n.rXU(X.OD),n.rXU(n.bc$,8))},Qn.\u0275dir=n.FsC({type:Qn,inputs:{disableRipple:"disableRipple"},features:[n.Vt3]}),Fi})(),ht=(()=>{var Qn;class Fi extends Vn{constructor(ln,Mn,bi,Hi,Mr,Wr,uo){super(ln,Mn,bi,Hi,Mr,Wr,uo)}ngAfterContentInit(){this._inkBar=new J(this._items),super.ngAfterContentInit()}}return(Qn=Fi).\u0275fac=function(ln){return new(ln||Qn)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(Z.Xj),n.rXU(M.dS,8),n.rXU(n.SKi),n.rXU(X.OD),n.rXU(n.bc$,8))},Qn.\u0275cmp=n.VBU({type:Qn,selectors:[["mat-tab-header"]],contentQueries:function(ln,Mn,bi){if(1&ln&&n.wni(bi,ni,4),2&ln){let Hi;n.mGM(Hi=n.lsd())&&(Mn._items=Hi)}},viewQuery:function(ln,Mn){if(1&ln&&(n.GBs(ge,7),n.GBs(Xe,7),n.GBs(ot,7),n.GBs(dt,5),n.GBs(xe,5)),2&ln){let bi;n.mGM(bi=n.lsd())&&(Mn._tabListContainer=bi.first),n.mGM(bi=n.lsd())&&(Mn._tabList=bi.first),n.mGM(bi=n.lsd())&&(Mn._tabListInner=bi.first),n.mGM(bi=n.lsd())&&(Mn._nextPaginator=bi.first),n.mGM(bi=n.lsd())&&(Mn._previousPaginator=bi.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(ln,Mn){2&ln&&n.AVh("mat-mdc-tab-header-pagination-controls-enabled",Mn._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==Mn._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[n.Vt3],ngContentSelectors:ne,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(ln,Mn){if(1&ln){const bi=n.RV6();n.NAR(),n.j41(0,"button",5,0),n.bIt("click",function(){return n.eBV(bi),n.Njj(Mn._handlePaginatorClick("before"))})("mousedown",function(Mr){return n.eBV(bi),n.Njj(Mn._handlePaginatorPress("before",Mr))})("touchend",function(){return n.eBV(bi),n.Njj(Mn._stopInterval())}),n.nrm(2,"div",6),n.k0s(),n.j41(3,"div",7,1),n.bIt("keydown",function(Mr){return n.eBV(bi),n.Njj(Mn._handleKeydown(Mr))}),n.j41(5,"div",8,2),n.bIt("cdkObserveContent",function(){return n.eBV(bi),n.Njj(Mn._onContentChanges())}),n.j41(7,"div",9,3),n.SdG(9),n.k0s()()(),n.j41(10,"button",10,4),n.bIt("mousedown",function(Mr){return n.eBV(bi),n.Njj(Mn._handlePaginatorPress("after",Mr))})("click",function(){return n.eBV(bi),n.Njj(Mn._handlePaginatorClick("after"))})("touchend",function(){return n.eBV(bi),n.Njj(Mn._stopInterval())}),n.nrm(12,"div",6),n.k0s()}2&ln&&(n.AVh("mat-mdc-tab-header-pagination-disabled",Mn._disableScrollBefore),n.Y8G("matRippleDisabled",Mn._disableScrollBefore||Mn.disableRipple)("disabled",Mn._disableScrollBefore||null),n.R7$(3),n.AVh("_mat-animation-noopable","NoopAnimations"===Mn._animationMode),n.R7$(7),n.AVh("mat-mdc-tab-header-pagination-disabled",Mn._disableScrollAfter),n.Y8G("matRippleDisabled",Mn._disableScrollAfter||Mn.disableRipple)("disabled",Mn._disableScrollAfter||null))},dependencies:[v.r6,f.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}),Fi})();const it=new n.nKC("MAT_TABS_CONFIG");let Ct=0;const Et=(0,v.Zc)((0,v.GG)(class{constructor(Qn){this._elementRef=Qn}}),"primary");let We=(()=>{var Qn;class Fi extends Et{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(ln){this._dynamicHeight=(0,H.he)(ln)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ln){this._indexToSelect=(0,H.OE)(ln,null)}get animationDuration(){return this._animationDuration}set animationDuration(ln){this._animationDuration=/^\d+$/.test(ln+"")?ln+"ms":ln}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(ln){this._contentTabIndex=(0,H.OE)(ln,null)}get disablePagination(){return this._disablePagination}set disablePagination(ln){this._disablePagination=(0,H.he)(ln)}get preserveContent(){return this._preserveContent}set preserveContent(ln){this._preserveContent=(0,H.he)(ln)}get backgroundColor(){return this._backgroundColor}set backgroundColor(ln){const Mn=this._elementRef.nativeElement.classList;Mn.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),ln&&Mn.add("mat-tabs-with-background",`mat-background-${ln}`),this._backgroundColor=ln}constructor(ln,Mn,bi,Hi){super(ln),this._changeDetectorRef=Mn,this._animationMode=Hi,this._tabs=new n.rOR,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=T.y.EMPTY,this._tabLabelSubscription=T.y.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new n.bkB,this.focusChange=new n.bkB,this.animationDone=new n.bkB,this.selectedTabChange=new n.bkB(!0),this._groupId=Ct++,this.animationDuration=bi&&bi.animationDuration?bi.animationDuration:"500ms",this.disablePagination=!(!bi||null==bi.disablePagination)&&bi.disablePagination,this.dynamicHeight=!(!bi||null==bi.dynamicHeight)&&bi.dynamicHeight,this.contentTabIndex=bi?.contentTabIndex??null,this.preserveContent=!!bi?.preserveContent}ngAfterContentChecked(){const ln=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=ln){const Mn=null==this._selectedIndex;if(!Mn){this.selectedTabChange.emit(this._createChangeEvent(ln));const bi=this._tabBodyWrapper.nativeElement;bi.style.minHeight=bi.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((bi,Hi)=>bi.isActive=Hi===ln),Mn||(this.selectedIndexChange.emit(ln),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Mn,bi)=>{Mn.position=bi-ln,null!=this._selectedIndex&&0==Mn.position&&!Mn.origin&&(Mn.origin=ln-this._selectedIndex)}),this._selectedIndex!==ln&&(this._selectedIndex=ln,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const ln=this._clampTabIndex(this._indexToSelect);if(ln===this._selectedIndex){const Mn=this._tabs.toArray();let bi;for(let Hi=0;Hi<Mn.length;Hi++)if(Mn[Hi].isActive){this._indexToSelect=this._selectedIndex=Hi,this._lastFocusedTabIndex=null,bi=Mn[Hi];break}!bi&&Mn[ln]&&Promise.resolve().then(()=>{Mn[ln].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(ln))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,I.Z)(this._allTabs)).subscribe(ln=>{this._tabs.reset(ln.filter(Mn=>Mn._closestTabGroup===this||!Mn._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(ln){const Mn=this._tabHeader;Mn&&(Mn.focusIndex=ln)}_focusChanged(ln){this._lastFocusedTabIndex=ln,this.focusChange.emit(this._createChangeEvent(ln))}_createChangeEvent(ln){const Mn=new gt;return Mn.index=ln,this._tabs&&this._tabs.length&&(Mn.tab=this._tabs.toArray()[ln]),Mn}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,l.h)(...this._tabs.map(ln=>ln._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(ln){return Math.min(this._tabs.length-1,Math.max(ln||0,0))}_getTabLabelId(ln){return`mat-tab-label-${this._groupId}-${ln}`}_getTabContentId(ln){return`mat-tab-content-${this._groupId}-${ln}`}_setTabBodyWrapperHeight(ln){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Mn=this._tabBodyWrapper.nativeElement;Mn.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Mn.style.height=ln+"px")}_removeTabBodyWrapperHeight(){const ln=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=ln.clientHeight,ln.style.height="",this.animationDone.emit()}_handleClick(ln,Mn,bi){Mn.focusIndex=bi,ln.disabled||(this.selectedIndex=bi)}_getTabIndex(ln){return ln===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(ln,Mn){ln&&"mouse"!==ln&&"touch"!==ln&&(this._tabHeader.focusIndex=Mn)}}return(Qn=Fi).\u0275fac=function(ln){return new(ln||Qn)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(it,8),n.rXU(n.bc$,8))},Qn.\u0275dir=n.FsC({type:Qn,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:[n.Vt3]}),Fi})(),bt=(()=>{var Qn;class Fi extends We{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(ln){this._fitInkBarToContent=(0,H.he)(ln),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(ln){this._stretchTabs=(0,H.he)(ln)}constructor(ln,Mn,bi,Hi){super(ln,Mn,bi,Hi),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!bi||null==bi.fitInkBarToContent)&&bi.fitInkBarToContent,this.stretchTabs=!bi||null==bi.stretchTabs||bi.stretchTabs}}return(Qn=Fi).\u0275fac=function(ln){return new(ln||Qn)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(it,8),n.rXU(n.bc$,8))},Qn.\u0275cmp=n.VBU({type:Qn,selectors:[["mat-tab-group"]],contentQueries:function(ln,Mn,bi){if(1&ln&&n.wni(bi,_i,5),2&ln){let Hi;n.mGM(Hi=n.lsd())&&(Mn._allTabs=Hi)}},viewQuery:function(ln,Mn){if(1&ln&&(n.GBs(Re,5),n.GBs(Ue,5)),2&ln){let bi;n.mGM(bi=n.lsd())&&(Mn._tabBodyWrapper=bi.first),n.mGM(bi=n.lsd())&&(Mn._tabHeader=bi.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(ln,Mn){2&ln&&(n.xc7("--mat-tab-animation-duration",Mn.animationDuration),n.AVh("mat-mdc-tab-group-dynamic-height",Mn.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===Mn.headerPosition)("mat-mdc-tab-group-stretch-tabs",Mn.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:[n.Mj6.None,"mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[n.Jv_([{provide:mi,useExisting:Qn}]),n.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(ln,Mn){if(1&ln){const bi=n.RV6();n.j41(0,"mat-tab-header",4,0),n.bIt("indexFocused",function(Mr){return n.eBV(bi),n.Njj(Mn._focusChanged(Mr))})("selectFocusedIndex",function(Mr){return n.eBV(bi),n.Njj(Mn.selectedIndex=Mr)}),n.DNE(2,le,9,17,"div",5),n.k0s(),n.j41(3,"div",6,1),n.DNE(5,oe,1,12,"mat-tab-body",7),n.k0s()}2&ln&&(n.Y8G("selectedIndex",Mn.selectedIndex||0)("disableRipple",Mn.disableRipple)("disablePagination",Mn.disablePagination),n.R7$(2),n.Y8G("ngForOf",Mn._tabs),n.R7$(),n.AVh("_mat-animation-noopable","NoopAnimations"===Mn._animationMode),n.R7$(2),n.Y8G("ngForOf",Mn._tabs))},dependencies:[r.YU,r.Sq,r.bT,h.I3,v.r6,A.vR,K,ni,ht],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}),Fi})();class gt{}let Oi=(()=>{var Qn;class Fi{}return(Qn=Fi).\u0275fac=function(ln){return new(ln||Qn)},Qn.\u0275mod=n.$C({type:Qn}),Qn.\u0275inj=n.G2t({imports:[r.MD,v.yE,h.jc,v.pZ,f.w5,A.Pd,v.yE]}),Fi})()},44186:(je,z,c)=>{"use strict";c.d(z,{oV:()=>ge,sM:()=>ce,uc:()=>xe});var r=c(4208),n=c(65706),v=c(6364),h=c(25373),f=c(58527),A=c(61142),M=c(72653),T=c(31308),E=c(51394),y=c(61904),S=c(37278),l=c(76614),s=c(80583),m=(c(40262),c(51635));const I=["tooltip"],Y=new f.nKC("mat-tooltip-scroll-strategy"),fe={provide:Y,deps:[y.hJ],useFactory:function j(Re){return()=>Re.scrollStrategies.reposition({scrollThrottle:20})}},ce=new f.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function te(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),Z="tooltip-panel",X=(0,M.BQ)({passive:!0});let Ge=(()=>{var Re;class Ue{get position(){return this._position}set position(W){W!==this._position&&(this._position=W,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(W){this._positionAtOrigin=(0,v.he)(W),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(W){this._disabled=(0,v.he)(W),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(W){this._showDelay=(0,v.OE)(W)}get hideDelay(){return this._hideDelay}set hideDelay(W){this._hideDelay=(0,v.OE)(W),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(W){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=W?String(W).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(W){this._tooltipClass=W,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(W,Pe,le,oe,Le,Oe,ye,Ie,at,K,ve,De){this._overlay=W,this._elementRef=Pe,this._scrollDispatcher=le,this._viewContainerRef=oe,this._ngZone=Le,this._platform=Oe,this._ariaDescriber=ye,this._focusMonitor=Ie,this._dir=K,this._defaultOptions=ve,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 s.B7,this._scrollStrategy=at,this._document=De,ve&&(this._showDelay=ve.showDelay,this._hideDelay=ve.hideDelay,ve.position&&(this.position=ve.position),ve.positionAtOrigin&&(this.positionAtOrigin=ve.positionAtOrigin),ve.touchGestures&&(this.touchGestures=ve.touchGestures)),K.change.pipe((0,r.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,r.Q)(this._destroyed)).subscribe(W=>{W?"keyboard"===W&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const W=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Pe,le])=>{W.removeEventListener(Pe,le,X)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(W,this.message,"tooltip"),this._focusMonitor.stopMonitoring(W)}show(W=this.showDelay,Pe){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const le=this._createOverlay(Pe);this._detach(),this._portal=this._portal||new l.A8(this._tooltipComponent,this._viewContainerRef);const oe=this._tooltipInstance=le.attach(this._portal).instance;oe._triggerElement=this._elementRef.nativeElement,oe._mouseLeaveHideDelay=this._hideDelay,oe.afterHidden().pipe((0,r.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),oe.show(W)}hide(W=this.hideDelay){const Pe=this._tooltipInstance;Pe&&(Pe.isVisible()?Pe.hide(W):(Pe._cancelPendingAnimations(),this._detach()))}toggle(W){this._isTooltipVisible()?this.hide():this.show(void 0,W)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(W){if(this._overlayRef){const oe=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!W)&&oe._origin instanceof f.aKT)return this._overlayRef;this._detach()}const Pe=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),le=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&W||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Pe);return le.positionChanges.pipe((0,r.Q)(this._destroyed)).subscribe(oe=>{this._updateCurrentPositionClass(oe.connectionPair),this._tooltipInstance&&oe.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:le,panelClass:`${this._cssClassPrefix}-${Z}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,r.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,r.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,r.Q)(this._destroyed)).subscribe(oe=>{this._isTooltipVisible()&&oe.keyCode===h._f&&!(0,h.rp)(oe)&&(oe.preventDefault(),oe.stopPropagation(),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(W){const Pe=W.getConfig().positionStrategy,le=this._getOrigin(),oe=this._getOverlayPosition();Pe.withPositions([this._addOffset({...le.main,...oe.main}),this._addOffset({...le.fallback,...oe.fallback})])}_addOffset(W){return W}_getOrigin(){const W=!this._dir||"ltr"==this._dir.value,Pe=this.position;let le;"above"==Pe||"below"==Pe?le={originX:"center",originY:"above"==Pe?"top":"bottom"}:"before"==Pe||"left"==Pe&&W||"right"==Pe&&!W?le={originX:"start",originY:"center"}:("after"==Pe||"right"==Pe&&W||"left"==Pe&&!W)&&(le={originX:"end",originY:"center"});const{x:oe,y:Le}=this._invertPosition(le.originX,le.originY);return{main:le,fallback:{originX:oe,originY:Le}}}_getOverlayPosition(){const W=!this._dir||"ltr"==this._dir.value,Pe=this.position;let le;"above"==Pe?le={overlayX:"center",overlayY:"bottom"}:"below"==Pe?le={overlayX:"center",overlayY:"top"}:"before"==Pe||"left"==Pe&&W||"right"==Pe&&!W?le={overlayX:"end",overlayY:"center"}:("after"==Pe||"right"==Pe&&W||"left"==Pe&&!W)&&(le={overlayX:"start",overlayY:"center"});const{x:oe,y:Le}=this._invertPosition(le.overlayX,le.overlayY);return{main:le,fallback:{overlayX:oe,overlayY:Le}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,n.s)(1),(0,r.Q)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(W){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=W,this._tooltipInstance._markForCheck())}_invertPosition(W,Pe){return"above"===this.position||"below"===this.position?"top"===Pe?Pe="bottom":"bottom"===Pe&&(Pe="top"):"end"===W?W="start":"start"===W&&(W="end"),{x:W,y:Pe}}_updateCurrentPositionClass(W){const{overlayY:Pe,originX:le,originY:oe}=W;let Le;if(Le="center"===Pe?this._dir&&"rtl"===this._dir.value?"end"===le?"left":"right":"start"===le?"left":"right":"bottom"===Pe&&"top"===oe?"above":"below",Le!==this._currentPosition){const Oe=this._overlayRef;if(Oe){const ye=`${this._cssClassPrefix}-${Z}-`;Oe.removePanelClass(ye+this._currentPosition),Oe.addPanelClass(ye+Le)}this._currentPosition=Le}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",W=>{let Pe;this._setupPointerExitEventsIfNeeded(),void 0!==W.x&&void 0!==W.y&&(Pe=W),this.show(void 0,Pe)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",W=>{const Pe=W.targetTouches?.[0],le=Pe?{x:Pe.clientX,y:Pe.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,le),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const W=[];if(this._platformSupportsMouseEvents())W.push(["mouseleave",Pe=>{const le=Pe.relatedTarget;(!le||!this._overlayRef?.overlayElement.contains(le))&&this.hide()}],["wheel",Pe=>this._wheelListener(Pe)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Pe=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};W.push(["touchend",Pe],["touchcancel",Pe])}this._addListeners(W),this._passiveListeners.push(...W)}_addListeners(W){W.forEach(([Pe,le])=>{this._elementRef.nativeElement.addEventListener(Pe,le,X)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(W){if(this._isTooltipVisible()){const Pe=this._document.elementFromPoint(W.clientX,W.clientY),le=this._elementRef.nativeElement;Pe!==le&&!le.contains(Pe)&&this.hide()}}_disableNativeGesturesIfNecessary(){const W=this.touchGestures;if("off"!==W){const Pe=this._elementRef.nativeElement,le=Pe.style;("on"===W||"INPUT"!==Pe.nodeName&&"TEXTAREA"!==Pe.nodeName)&&(le.userSelect=le.msUserSelect=le.webkitUserSelect=le.MozUserSelect="none"),("on"===W||!Pe.draggable)&&(le.webkitUserDrag="none"),le.touchAction="none",le.webkitTapHighlightColor="transparent"}}}return(Re=Ue).\u0275fac=function(W){f.QTQ()},Re.\u0275dir=f.FsC({type:Re,inputs:{position:[f.Mj6.None,"matTooltipPosition","position"],positionAtOrigin:[f.Mj6.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[f.Mj6.None,"matTooltipDisabled","disabled"],showDelay:[f.Mj6.None,"matTooltipShowDelay","showDelay"],hideDelay:[f.Mj6.None,"matTooltipHideDelay","hideDelay"],touchGestures:[f.Mj6.None,"matTooltipTouchGestures","touchGestures"],message:[f.Mj6.None,"matTooltip","message"],tooltipClass:[f.Mj6.None,"matTooltipClass","tooltipClass"]}}),Ue})(),ge=(()=>{var Re;class Ue extends Ge{constructor(W,Pe,le,oe,Le,Oe,ye,Ie,at,K,ve,De){super(W,Pe,le,oe,Le,Oe,ye,Ie,at,K,ve,De),this._tooltipComponent=ot,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(W){const le=!this._dir||"ltr"==this._dir.value;return"top"===W.originY?W.offsetY=-8:"bottom"===W.originY?W.offsetY=8:"start"===W.originX?W.offsetX=le?-8:8:"end"===W.originX&&(W.offsetX=le?8:-8),W}}return(Re=Ue).\u0275fac=function(W){return new(W||Re)(f.rXU(y.hJ),f.rXU(f.aKT),f.rXU(S.R),f.rXU(f.c1b),f.rXU(f.SKi),f.rXU(M.OD),f.rXU(T.vr),f.rXU(T.FN),f.rXU(Y),f.rXU(E.dS,8),f.rXU(ce,8),f.rXU(A.qQ))},Re.\u0275dir=f.FsC({type:Re,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(W,Pe){2&W&&f.AVh("mat-mdc-tooltip-disabled",Pe.disabled)},exportAs:["matTooltip"],features:[f.Vt3]}),Ue})(),Xe=(()=>{var Re;class Ue{constructor(W,Pe){this._changeDetectorRef=W,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new s.B7,this._animationsDisabled="NoopAnimations"===Pe}show(W){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},W)}hide(W){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},W)}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:W}){(!W||!this._triggerElement.contains(W))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:W}){(W===this._showAnimation||W===this._hideAnimation)&&this._finalizeAnimation(W===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(W){W?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(W){const Pe=this._tooltip.nativeElement,le=this._showAnimation,oe=this._hideAnimation;if(Pe.classList.remove(W?oe:le),Pe.classList.add(W?le:oe),this._isVisible=W,W&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Le=getComputedStyle(Pe);("0s"===Le.getPropertyValue("animation-duration")||"none"===Le.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}W&&this._onShow(),this._animationsDisabled&&(Pe.classList.add("_mat-animation-noopable"),this._finalizeAnimation(W))}}return(Re=Ue).\u0275fac=function(W){return new(W||Re)(f.rXU(f.gRc),f.rXU(f.bc$,8))},Re.\u0275dir=f.FsC({type:Re}),Ue})(),ot=(()=>{var Re;class Ue extends Xe{constructor(W,Pe,le){super(W,le),this._elementRef=Pe,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const W=this._elementRef.nativeElement.getBoundingClientRect();return W.height>24&&W.width>=200}}return(Re=Ue).\u0275fac=function(W){return new(W||Re)(f.rXU(f.gRc),f.rXU(f.aKT),f.rXU(f.bc$,8))},Re.\u0275cmp=f.VBU({type:Re,selectors:[["mat-tooltip-component"]],viewQuery:function(W,Pe){if(1&W&&f.GBs(I,7),2&W){let le;f.mGM(le=f.lsd())&&(Pe._tooltip=le.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(W,Pe){1&W&&f.bIt("mouseleave",function(oe){return Pe._handleMouseLeave(oe)}),2&W&&f.xc7("zoom",Pe.isVisible()?1:null)},features:[f.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(W,Pe){if(1&W){const le=f.RV6();f.j41(0,"div",1,0),f.bIt("animationend",function(Le){return f.eBV(le),f.Njj(Pe._handleAnimationEnd(Le))}),f.j41(2,"div",2),f.EFF(3),f.k0s()()}2&W&&(f.AVh("mdc-tooltip--multiline",Pe._isMultiline),f.Y8G("ngClass",Pe.tooltipClass),f.R7$(3),f.JRh(Pe.message))},dependencies:[A.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}),Ue})(),xe=(()=>{var Re;class Ue{}return(Re=Ue).\u0275fac=function(W){return new(W||Re)},Re.\u0275mod=f.$C({type:Re}),Re.\u0275inj=f.G2t({providers:[fe],imports:[T.Pd,A.MD,y.z_,m.yE,m.yE,S.Gj]}),Ue})()},74150:(je,z,c)=>{"use strict";c.d(z,{B7:()=>Z,Bb:()=>K,hE:()=>pe,sG:()=>Oe,up:()=>Bi});var r=c(58527),n=c(61142);class v extends n.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class h extends v{static makeCurrent(){(0,n.ZD)(new h)}onAndCancel(bt,gt,wt){return bt.addEventListener(gt,wt),()=>{bt.removeEventListener(gt,wt)}}dispatchEvent(bt,gt){bt.dispatchEvent(gt)}remove(bt){bt.parentNode&&bt.parentNode.removeChild(bt)}createElement(bt,gt){return(gt=gt||this.getDefaultDocument()).createElement(bt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(bt){return bt.nodeType===Node.ELEMENT_NODE}isShadowRoot(bt){return bt instanceof DocumentFragment}getGlobalEventTarget(bt,gt){return"window"===gt?window:"document"===gt?bt:"body"===gt?bt.body:null}getBaseHref(bt){const gt=function A(){return f=f||document.querySelector("base"),f?f.getAttribute("href"):null}();return null==gt?null:function M(We){return new URL(We,document.baseURI).pathname}(gt)}resetBaseElement(){f=null}getUserAgent(){return window.navigator.userAgent}getCookie(bt){return(0,n._b)(document.cookie,bt)}}let f=null,E=(()=>{var We;class bt{build(){return new XMLHttpRequest}}return(We=bt).\u0275fac=function(wt){return new(wt||We)},We.\u0275prov=r.jDH({token:We,factory:We.\u0275fac}),bt})();const y=new r.nKC("");let S=(()=>{var We;class bt{constructor(wt,rn){this._zone=rn,this._eventNameToPlugin=new Map,wt.forEach(In=>{In.manager=this}),this._plugins=wt.slice().reverse()}addEventListener(wt,rn,In){return this._findPluginFor(rn).addEventListener(wt,rn,In)}getZone(){return this._zone}_findPluginFor(wt){let rn=this._eventNameToPlugin.get(wt);if(rn)return rn;if(rn=this._plugins.find(Mi=>Mi.supports(wt)),!rn)throw new r.wOt(5101,!1);return this._eventNameToPlugin.set(wt,rn),rn}}return(We=bt).\u0275fac=function(wt){return new(wt||We)(r.KVO(y),r.KVO(r.SKi))},We.\u0275prov=r.jDH({token:We,factory:We.\u0275fac}),bt})();class l{constructor(bt){this._doc=bt}}const s="ng-app-id";let u=(()=>{var We;class bt{constructor(wt,rn,In,Mi={}){this.doc=wt,this.appId=rn,this.nonce=In,this.platformId=Mi,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,n.Vy)(Mi),this.resetHostNodes()}addStyles(wt){for(const rn of wt)1===this.changeUsageCount(rn,1)&&this.onStyleAdded(rn)}removeStyles(wt){for(const rn of wt)this.changeUsageCount(rn,-1)<=0&&this.onStyleRemoved(rn)}ngOnDestroy(){const wt=this.styleNodesInDOM;wt&&(wt.forEach(rn=>rn.remove()),wt.clear());for(const rn of this.getAllStyles())this.onStyleRemoved(rn);this.resetHostNodes()}addHost(wt){this.hostNodes.add(wt);for(const rn of this.getAllStyles())this.addStyleToHost(wt,rn)}removeHost(wt){this.hostNodes.delete(wt)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(wt){for(const rn of this.hostNodes)this.addStyleToHost(rn,wt)}onStyleRemoved(wt){const rn=this.styleRef;rn.get(wt)?.elements?.forEach(In=>In.remove()),rn.delete(wt)}collectServerRenderedStyles(){const wt=this.doc.head?.querySelectorAll(`style[${s}="${this.appId}"]`);if(wt?.length){const rn=new Map;return wt.forEach(In=>{null!=In.textContent&&rn.set(In.textContent,In)}),rn}return null}changeUsageCount(wt,rn){const In=this.styleRef;if(In.has(wt)){const Mi=In.get(wt);return Mi.usage+=rn,Mi.usage}return In.set(wt,{usage:rn,elements:[]}),rn}getStyleElement(wt,rn){const In=this.styleNodesInDOM,Mi=In?.get(rn);if(Mi?.parentNode===wt)return In.delete(rn),Mi.removeAttribute(s),Mi;{const En=this.doc.createElement("style");return this.nonce&&En.setAttribute("nonce",this.nonce),En.textContent=rn,this.platformIsServer&&En.setAttribute(s,this.appId),wt.appendChild(En),En}}addStyleToHost(wt,rn){const In=this.getStyleElement(wt,rn),Mi=this.styleRef,En=Mi.get(rn)?.elements;En?En.push(In):Mi.set(rn,{elements:[In],usage:1})}resetHostNodes(){const wt=this.hostNodes;wt.clear(),wt.add(this.doc.head)}}return(We=bt).\u0275fac=function(wt){return new(wt||We)(r.KVO(n.qQ),r.KVO(r.sZ2),r.KVO(r.BIS,8),r.KVO(r.Agw))},We.\u0275prov=r.jDH({token:We,factory:We.\u0275fac}),bt})();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/"},I=/%COMP%/g,R="%COMP%",O=`_nghost-${R}`,Y=`_ngcontent-${R}`,fe=new r.nKC("",{providedIn:"root",factory:()=>!0});function H(We,bt){return bt.map(gt=>gt.replace(I,We))}let Z=(()=>{var We;class bt{constructor(wt,rn,In,Mi,En,Tn,Cn,Wn=null){this.eventManager=wt,this.sharedStylesHost=rn,this.appId=In,this.removeStylesOnCompDestroy=Mi,this.doc=En,this.platformId=Tn,this.ngZone=Cn,this.nonce=Wn,this.rendererByCompId=new Map,this.platformIsServer=(0,n.Vy)(Tn),this.defaultRenderer=new X(wt,En,Cn,this.platformIsServer)}createRenderer(wt,rn){if(!wt||!rn)return this.defaultRenderer;this.platformIsServer&&rn.encapsulation===r.gXe.ShadowDom&&(rn={...rn,encapsulation:r.gXe.Emulated});const In=this.getOrCreateRenderer(wt,rn);return In instanceof Ge?In.applyToHost(wt):In instanceof ne&&In.applyStyles(),In}getOrCreateRenderer(wt,rn){const In=this.rendererByCompId;let Mi=In.get(rn.id);if(!Mi){const En=this.doc,Tn=this.ngZone,Cn=this.eventManager,Wn=this.sharedStylesHost,Oi=this.removeStylesOnCompDestroy,Qn=this.platformIsServer;switch(rn.encapsulation){case r.gXe.Emulated:Mi=new Ge(Cn,Wn,rn,this.appId,Oi,En,Tn,Qn);break;case r.gXe.ShadowDom:return new Q(Cn,Wn,wt,rn,En,Tn,this.nonce,Qn);default:Mi=new ne(Cn,Wn,rn,Oi,En,Tn,Qn)}In.set(rn.id,Mi)}return Mi}ngOnDestroy(){this.rendererByCompId.clear()}}return(We=bt).\u0275fac=function(wt){return new(wt||We)(r.KVO(S),r.KVO(u),r.KVO(r.sZ2),r.KVO(fe),r.KVO(n.qQ),r.KVO(r.Agw),r.KVO(r.SKi),r.KVO(r.BIS))},We.\u0275prov=r.jDH({token:We,factory:We.\u0275fac}),bt})();class X{constructor(bt,gt,wt,rn){this.eventManager=bt,this.doc=gt,this.ngZone=wt,this.platformIsServer=rn,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(bt,gt){return gt?this.doc.createElementNS(m[gt]||gt,bt):this.doc.createElement(bt)}createComment(bt){return this.doc.createComment(bt)}createText(bt){return this.doc.createTextNode(bt)}appendChild(bt,gt){(be(bt)?bt.content:bt).appendChild(gt)}insertBefore(bt,gt,wt){bt&&(be(bt)?bt.content:bt).insertBefore(gt,wt)}removeChild(bt,gt){bt&&bt.removeChild(gt)}selectRootElement(bt,gt){let wt="string"==typeof bt?this.doc.querySelector(bt):bt;if(!wt)throw new r.wOt(-5104,!1);return gt||(wt.textContent=""),wt}parentNode(bt){return bt.parentNode}nextSibling(bt){return bt.nextSibling}setAttribute(bt,gt,wt,rn){if(rn){gt=rn+":"+gt;const In=m[rn];In?bt.setAttributeNS(In,gt,wt):bt.setAttribute(gt,wt)}else bt.setAttribute(gt,wt)}removeAttribute(bt,gt,wt){if(wt){const rn=m[wt];rn?bt.removeAttributeNS(rn,gt):bt.removeAttribute(`${wt}:${gt}`)}else bt.removeAttribute(gt)}addClass(bt,gt){bt.classList.add(gt)}removeClass(bt,gt){bt.classList.remove(gt)}setStyle(bt,gt,wt,rn){rn&(r.czy.DashCase|r.czy.Important)?bt.style.setProperty(gt,wt,rn&r.czy.Important?"important":""):bt.style[gt]=wt}removeStyle(bt,gt,wt){wt&r.czy.DashCase?bt.style.removeProperty(gt):bt.style[gt]=""}setProperty(bt,gt,wt){null!=bt&&(bt[gt]=wt)}setValue(bt,gt){bt.nodeValue=gt}listen(bt,gt,wt){if("string"==typeof bt&&!(bt=(0,n.QT)().getGlobalEventTarget(this.doc,bt)))throw new Error(`Unsupported event target ${bt} for event ${gt}`);return this.eventManager.addEventListener(bt,gt,this.decoratePreventDefault(wt))}decoratePreventDefault(bt){return gt=>{if("__ngUnwrap__"===gt)return bt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>bt(gt)):bt(gt))&&gt.preventDefault()}}}function be(We){return"TEMPLATE"===We.tagName&&void 0!==We.content}class Q extends X{constructor(bt,gt,wt,rn,In,Mi,En,Tn){super(bt,In,Mi,Tn),this.sharedStylesHost=gt,this.hostEl=wt,this.shadowRoot=wt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Cn=H(rn.id,rn.styles);for(const Wn of Cn){const Oi=document.createElement("style");En&&Oi.setAttribute("nonce",En),Oi.textContent=Wn,this.shadowRoot.appendChild(Oi)}}nodeOrShadowRoot(bt){return bt===this.hostEl?this.shadowRoot:bt}appendChild(bt,gt){return super.appendChild(this.nodeOrShadowRoot(bt),gt)}insertBefore(bt,gt,wt){return super.insertBefore(this.nodeOrShadowRoot(bt),gt,wt)}removeChild(bt,gt){return super.removeChild(this.nodeOrShadowRoot(bt),gt)}parentNode(bt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(bt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ne extends X{constructor(bt,gt,wt,rn,In,Mi,En,Tn){super(bt,In,Mi,En),this.sharedStylesHost=gt,this.removeStylesOnCompDestroy=rn,this.styles=Tn?H(Tn,wt.styles):wt.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Ge extends ne{constructor(bt,gt,wt,rn,In,Mi,En,Tn){const Cn=rn+"-"+wt.id;super(bt,gt,wt,In,Mi,En,Tn,Cn),this.contentAttr=function te(We){return Y.replace(I,We)}(Cn),this.hostAttr=function ce(We){return O.replace(I,We)}(Cn)}applyToHost(bt){this.applyStyles(),this.setAttribute(bt,this.hostAttr,"")}createElement(bt,gt){const wt=super.createElement(bt,gt);return super.setAttribute(wt,this.contentAttr,""),wt}}let ge=(()=>{var We;class bt extends l{constructor(wt){super(wt)}supports(wt){return!0}addEventListener(wt,rn,In){return wt.addEventListener(rn,In,!1),()=>this.removeEventListener(wt,rn,In)}removeEventListener(wt,rn,In){return wt.removeEventListener(rn,In)}}return(We=bt).\u0275fac=function(wt){return new(wt||We)(r.KVO(n.qQ))},We.\u0275prov=r.jDH({token:We,factory:We.\u0275fac}),bt})();const Xe=["alt","control","meta","shift"],ot={"\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"},dt={alt:We=>We.altKey,control:We=>We.ctrlKey,meta:We=>We.metaKey,shift:We=>We.shiftKey};let xe=(()=>{var We;class bt extends l{constructor(wt){super(wt)}supports(wt){return null!=bt.parseEventName(wt)}addEventListener(wt,rn,In){const Mi=bt.parseEventName(rn),En=bt.eventCallback(Mi.fullKey,In,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.QT)().onAndCancel(wt,Mi.domEventName,En))}static parseEventName(wt){const rn=wt.toLowerCase().split("."),In=rn.shift();if(0===rn.length||"keydown"!==In&&"keyup"!==In)return null;const Mi=bt._normalizeKey(rn.pop());let En="",Tn=rn.indexOf("code");if(Tn>-1&&(rn.splice(Tn,1),En="code."),Xe.forEach(Wn=>{const Oi=rn.indexOf(Wn);Oi>-1&&(rn.splice(Oi,1),En+=Wn+".")}),En+=Mi,0!=rn.length||0===Mi.length)return null;const Cn={};return Cn.domEventName=In,Cn.fullKey=En,Cn}static matchEventFullKeyCode(wt,rn){let In=ot[wt.key]||wt.key,Mi="";return rn.indexOf("code.")>-1&&(In=wt.code,Mi="code."),!(null==In||!In)&&(In=In.toLowerCase()," "===In?In="space":"."===In&&(In="dot"),Xe.forEach(En=>{En!==In&&(0,dt[En])(wt)&&(Mi+=En+".")}),Mi+=In,Mi===rn)}static eventCallback(wt,rn,In){return Mi=>{bt.matchEventFullKeyCode(Mi,wt)&&In.runGuarded(()=>rn(Mi))}}static _normalizeKey(wt){return"esc"===wt?"escape":wt}}return(We=bt).\u0275fac=function(wt){return new(wt||We)(r.KVO(n.qQ))},We.\u0275prov=r.jDH({token:We,factory:We.\u0275fac}),bt})();const Oe=(0,r.oH4)(r.fpN,"browser",[{provide:r.Agw,useValue:n.AJ},{provide:r.PLl,useValue:function Pe(){h.makeCurrent()},multi:!0},{provide:n.qQ,useFactory:function oe(){return(0,r.TL$)(document),document},deps:[]}]),ye=new r.nKC(""),Ie=[{provide:r.e01,useClass:class T{addToWindow(bt){r.JZv.getAngularTestability=(wt,rn=!0)=>{const In=bt.findTestabilityInTree(wt,rn);if(null==In)throw new r.wOt(5103,!1);return In},r.JZv.getAllAngularTestabilities=()=>bt.getAllTestabilities(),r.JZv.getAllAngularRootElements=()=>bt.getAllRootElements(),r.JZv.frameworkStabilizers||(r.JZv.frameworkStabilizers=[]),r.JZv.frameworkStabilizers.push(wt=>{const rn=r.JZv.getAllAngularTestabilities();let In=rn.length;const Mi=function(){In--,0==In&&wt()};rn.forEach(En=>{En.whenStable(Mi)})})}findTestabilityInTree(bt,gt,wt){return null==gt?null:bt.getTestability(gt)??(wt?(0,n.QT)().isShadowRoot(gt)?this.findTestabilityInTree(bt,gt.host,!0):this.findTestabilityInTree(bt,gt.parentElement,!0):null)}},deps:[]},{provide:r.WHO,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]},{provide:r.NYb,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]}],at=[{provide:r.H8p,useValue:"root"},{provide:r.zcH,useFactory:function le(){return new r.zcH},deps:[]},{provide:y,useClass:ge,multi:!0,deps:[n.qQ,r.SKi,r.Agw]},{provide:y,useClass:xe,multi:!0,deps:[n.qQ]},Z,u,S,{provide:r._9s,useExisting:Z},{provide:n.N0,useClass:E,deps:[]},[]];let K=(()=>{var We;class bt{constructor(wt){}static withServerTransition(wt){return{ngModule:bt,providers:[{provide:r.sZ2,useValue:wt.appId}]}}}return(We=bt).\u0275fac=function(wt){return new(wt||We)(r.KVO(ye,12))},We.\u0275mod=r.$C({type:We}),We.\u0275inj=r.G2t({providers:[...at,...Ie],imports:[n.MD,r.Hbi]}),bt})(),pe=(()=>{var We;class bt{constructor(wt){this._doc=wt}getTitle(){return this._doc.title}setTitle(wt){this._doc.title=wt||""}}return(We=bt).\u0275fac=function(wt){return new(wt||We)(r.KVO(n.qQ))},We.\u0275prov=r.jDH({token:We,factory:We.\u0275fac,providedIn:"root"}),bt})(),Bi=(()=>{var We;class bt{}return(We=bt).\u0275fac=function(wt){return new(wt||We)},We.\u0275prov=r.jDH({token:We,factory:function(wt){let rn=null;return rn=wt?new(wt||We):r.KVO(_i),rn},providedIn:"root"}),bt})(),_i=(()=>{var We;class bt extends Bi{constructor(wt){super(),this._doc=wt}sanitize(wt,rn){if(null==rn)return null;switch(wt){case r.WPN.NONE:return rn;case r.WPN.HTML:return(0,r.ZF7)(rn,"HTML")?(0,r.rcV)(rn):(0,r.h9k)(this._doc,String(rn)).toString();case r.WPN.STYLE:return(0,r.ZF7)(rn,"Style")?(0,r.rcV)(rn):rn;case r.WPN.SCRIPT:if((0,r.ZF7)(rn,"Script"))return(0,r.rcV)(rn);throw new r.wOt(5200,!1);case r.WPN.URL:return(0,r.ZF7)(rn,"URL")?(0,r.rcV)(rn):(0,r.$MX)(String(rn));case r.WPN.RESOURCE_URL:if((0,r.ZF7)(rn,"ResourceURL"))return(0,r.rcV)(rn);throw new r.wOt(5201,!1);default:throw new r.wOt(5202,!1)}}bypassSecurityTrustHtml(wt){return(0,r.Kcf)(wt)}bypassSecurityTrustStyle(wt){return(0,r.cWb)(wt)}bypassSecurityTrustScript(wt){return(0,r.UyX)(wt)}bypassSecurityTrustUrl(wt){return(0,r.osQ)(wt)}bypassSecurityTrustResourceUrl(wt){return(0,r.e5t)(wt)}}return(We=bt).\u0275fac=function(wt){return new(wt||We)(r.KVO(n.qQ))},We.\u0275prov=r.jDH({token:We,factory:We.\u0275fac,providedIn:"root"}),bt})()},85161:(je,z,c)=>{"use strict";c.d(z,{nX:()=>qs,Gl:()=>D,wF:()=>br,Z:()=>Dr,AL:()=>$n,b:()=>L,Ix:()=>At,Wk:()=>vt,iI:()=>oo,n3:()=>cs,OY:()=>_o});var r=c(70650),n=c(58527),v=c(39595),h=c(19392),f=c(43848),A=c(26513),M=c(31315),T=c(64971),E=c(82e3),y=c(63997),S=c(97462),l=c(59859),s=c(12532),u=c(96090),m=c(80583),I=c(10399),R=c(61142),O=c(83915),Y=c(72147),j=c(65706),fe=c(34593),te=c(8619),ce=c(75707),H=c(99047),Z=c(79539),X=c(91384),ue=c(14714),Me=c(27721);class Q{constructor(ze,Je,Ze=!1){this.accumulator=ze,this.seed=Je,this.hasSeed=Ze}call(ze,Je){return Je.subscribe(new ne(ze,this.accumulator,this.seed,this.hasSeed))}}class ne extends Me.v{constructor(ze,Je,Ze,Mt){super(ze),this.accumulator=Je,this._seed=Ze,this.hasSeed=Mt,this.index=0}get seed(){return this._seed}set seed(ze){this.hasSeed=!0,this._seed=ze}_next(ze){if(this.hasSeed)return this._tryNext(ze);this.seed=ze,this.destination.next(ze)}_tryNext(ze){const Je=this.index++;let Ze;try{Ze=this.accumulator(this.seed,ze,Je)}catch(Mt){this.destination.error(Mt)}this.seed=Ze,this.destination.next(Ze)}}var Ge=c(67110),ge=c(25577),Xe=c(93702),ot=c(10174),dt=c(43615),xe=c(60837),Re=c(4208),Ue=c(40466),ee=c(74150);const W="primary",Pe=Symbol("RouteTitle");class le{constructor(ze){this.params=ze||{}}has(ze){return Object.prototype.hasOwnProperty.call(this.params,ze)}get(ze){if(this.has(ze)){const Je=this.params[ze];return Array.isArray(Je)?Je[0]:Je}return null}getAll(ze){if(this.has(ze)){const Je=this.params[ze];return Array.isArray(Je)?Je:[Je]}return[]}get keys(){return Object.keys(this.params)}}function oe(Te){return new le(Te)}function Le(Te,ze,Je){const Ze=Je.path.split("/");if(Ze.length>Te.length||"full"===Je.pathMatch&&(ze.hasChildren()||Ze.length<Te.length))return null;const Mt={};for(let pn=0;pn<Ze.length;pn++){const gn=Ze[pn],Di=Te[pn];if(gn.startsWith(":"))Mt[gn.substring(1)]=Di;else if(gn!==Di.path)return null}return{consumed:Te.slice(0,Ze.length),posParams:Mt}}function ye(Te,ze){const Je=Te?Ie(Te):void 0,Ze=ze?Ie(ze):void 0;if(!Je||!Ze||Je.length!=Ze.length)return!1;let Mt;for(let pn=0;pn<Je.length;pn++)if(Mt=Je[pn],!at(Te[Mt],ze[Mt]))return!1;return!0}function Ie(Te){return[...Object.keys(Te),...Object.getOwnPropertySymbols(Te)]}function at(Te,ze){if(Array.isArray(Te)&&Array.isArray(ze)){if(Te.length!==ze.length)return!1;const Je=[...Te].sort(),Ze=[...ze].sort();return Je.every((Mt,pn)=>Ze[pn]===Mt)}return Te===ze}function K(Te){return Te.length>0?Te[Te.length-1]:null}function ve(Te){return(0,v.A)(Te)?Te:(0,n.jNT)(Te)?(0,h.H)(Promise.resolve(Te)):(0,f.of)(Te)}const De={exact:function Vt(Te,ze,Je){if(!ni(Te.segments,ze.segments)||!st(Te.segments,ze.segments,Je)||Te.numberOfChildren!==ze.numberOfChildren)return!1;for(const Ze in ze.children)if(!Te.children[Ze]||!Vt(Te.children[Ze],ze.children[Ze],Je))return!1;return!0},subset:J},pe={exact:function zt(Te,ze){return ye(Te,ze)},subset:function de(Te,ze){return Object.keys(ze).length<=Object.keys(Te).length&&Object.keys(ze).every(Je=>at(Te[Je],ze[Je]))},ignored:()=>!0};function Qe(Te,ze,Je){return De[Je.paths](Te.root,ze.root,Je.matrixParams)&&pe[Je.queryParams](Te.queryParams,ze.queryParams)&&!("exact"===Je.fragment&&Te.fragment!==ze.fragment)}function J(Te,ze,Je){return $e(Te,ze,ze.segments,Je)}function $e(Te,ze,Je,Ze){if(Te.segments.length>Je.length){const Mt=Te.segments.slice(0,Je.length);return!(!ni(Mt,Je)||ze.hasChildren()||!st(Mt,Je,Ze))}if(Te.segments.length===Je.length){if(!ni(Te.segments,Je)||!st(Te.segments,Je,Ze))return!1;for(const Mt in ze.children)if(!Te.children[Mt]||!J(Te.children[Mt],ze.children[Mt],Ze))return!1;return!0}{const Mt=Je.slice(0,Te.segments.length),pn=Je.slice(Te.segments.length);return!!(ni(Te.segments,Mt)&&st(Te.segments,Mt,Ze)&&Te.children[W])&&$e(Te.children[W],ze,pn,Ze)}}function st(Te,ze,Je){return ze.every((Ze,Mt)=>pe[Je](Te[Mt].parameters,Ze.parameters))}class Gt{constructor(ze=new Zt([],{}),Je={},Ze=null){this.root=ze,this.queryParams=Je,this.fragment=Ze}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){return _i.serialize(this)}}class Zt{constructor(ze,Je){this.segments=ze,this.children=Je,this.parent=null,Object.values(Je).forEach(Ze=>Ze.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bn(this)}}class kn{constructor(ze,Je){this.path=ze,this.parameters=Je}get parameterMap(){return this._parameterMap??=oe(this.parameters),this._parameterMap}toString(){return Et(this)}}function ni(Te,ze){return Te.length===ze.length&&Te.every((Je,Ze)=>Je.path===ze[Ze].path)}let mi=(()=>{var Te;class ze{}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)},Te.\u0275prov=n.jDH({token:Te,factory:()=>new Bi,providedIn:"root"}),ze})();class Bi{parse(ze){const Je=new Wn(ze);return new Gt(Je.parseRootSegment(),Je.parseQueryParams(),Je.parseFragment())}serialize(ze){const Je=`/${jn(ze.root,!0)}`,Ze=function bt(Te){const ze=Object.entries(Te).map(([Je,Ze])=>Array.isArray(Ze)?Ze.map(Mt=>`${vn(Je)}=${vn(Mt)}`).join("&"):`${vn(Je)}=${vn(Ze)}`).filter(Je=>Je);return ze.length?`?${ze.join("&")}`:""}(ze.queryParams);return`${Je}${Ze}${"string"==typeof ze.fragment?`#${function Vn(Te){return encodeURI(Te)}(ze.fragment)}`:""}`}}const _i=new Bi;function Bn(Te){return Te.segments.map(ze=>Et(ze)).join("/")}function jn(Te,ze){if(!Te.hasChildren())return Bn(Te);if(ze){const Je=Te.children[W]?jn(Te.children[W],!1):"",Ze=[];return Object.entries(Te.children).forEach(([Mt,pn])=>{Mt!==W&&Ze.push(`${Mt}:${jn(pn,!1)}`)}),Ze.length>0?`${Je}(${Ze.join("//")})`:Je}{const Je=function qe(Te,ze){let Je=[];return Object.entries(Te.children).forEach(([Ze,Mt])=>{Ze===W&&(Je=Je.concat(ze(Mt,Ze)))}),Object.entries(Te.children).forEach(([Ze,Mt])=>{Ze!==W&&(Je=Je.concat(ze(Mt,Ze)))}),Je}(Te,(Ze,Mt)=>Mt===W?[jn(Te.children[W],!1)]:[`${Mt}:${jn(Ze,!1)}`]);return 1===Object.keys(Te.children).length&&null!=Te.children[W]?`${Bn(Te)}/${Je[0]}`:`${Bn(Te)}/(${Je.join("//")})`}}function It(Te){return encodeURIComponent(Te).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function vn(Te){return It(Te).replace(/%3B/gi,";")}function ht(Te){return It(Te).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function it(Te){return decodeURIComponent(Te)}function Ct(Te){return it(Te.replace(/\+/g,"%20"))}function Et(Te){return`${ht(Te.path)}${function We(Te){return Object.entries(Te).map(([ze,Je])=>`;${ht(ze)}=${ht(Je)}`).join("")}(Te.parameters)}`}const gt=/^[^\/()?;#]+/;function wt(Te){const ze=Te.match(gt);return ze?ze[0]:""}const rn=/^[^\/()?;=#]+/,Mi=/^[^=?&#]+/,Tn=/^[^&#]+/;class Wn{constructor(ze){this.url=ze,this.remaining=ze}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Zt([],{}):new Zt([],this.parseChildren())}parseQueryParams(){const ze={};if(this.consumeOptional("?"))do{this.parseQueryParam(ze)}while(this.consumeOptional("&"));return ze}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ze=[];for(this.peekStartsWith("(")||ze.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ze.push(this.parseSegment());let Je={};this.peekStartsWith("/(")&&(this.capture("/"),Je=this.parseParens(!0));let Ze={};return this.peekStartsWith("(")&&(Ze=this.parseParens(!1)),(ze.length>0||Object.keys(Je).length>0)&&(Ze[W]=new Zt(ze,Je)),Ze}parseSegment(){const ze=wt(this.remaining);if(""===ze&&this.peekStartsWith(";"))throw new n.wOt(4009,!1);return this.capture(ze),new kn(it(ze),this.parseMatrixParams())}parseMatrixParams(){const ze={};for(;this.consumeOptional(";");)this.parseParam(ze);return ze}parseParam(ze){const Je=function In(Te){const ze=Te.match(rn);return ze?ze[0]:""}(this.remaining);if(!Je)return;this.capture(Je);let Ze="";if(this.consumeOptional("=")){const Mt=wt(this.remaining);Mt&&(Ze=Mt,this.capture(Ze))}ze[it(Je)]=it(Ze)}parseQueryParam(ze){const Je=function En(Te){const ze=Te.match(Mi);return ze?ze[0]:""}(this.remaining);if(!Je)return;this.capture(Je);let Ze="";if(this.consumeOptional("=")){const gn=function Cn(Te){const ze=Te.match(Tn);return ze?ze[0]:""}(this.remaining);gn&&(Ze=gn,this.capture(Ze))}const Mt=Ct(Je),pn=Ct(Ze);if(ze.hasOwnProperty(Mt)){let gn=ze[Mt];Array.isArray(gn)||(gn=[gn],ze[Mt]=gn),gn.push(pn)}else ze[Mt]=pn}parseParens(ze){const Je={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ze=wt(this.remaining),Mt=this.remaining[Ze.length];if("/"!==Mt&&")"!==Mt&&";"!==Mt)throw new n.wOt(4010,!1);let pn;Ze.indexOf(":")>-1?(pn=Ze.slice(0,Ze.indexOf(":")),this.capture(pn),this.capture(":")):ze&&(pn=W);const gn=this.parseChildren();Je[pn]=1===Object.keys(gn).length?gn[W]:new Zt([],gn),this.consumeOptional("//")}return Je}peekStartsWith(ze){return this.remaining.startsWith(ze)}consumeOptional(ze){return!!this.peekStartsWith(ze)&&(this.remaining=this.remaining.substring(ze.length),!0)}capture(ze){if(!this.consumeOptional(ze))throw new n.wOt(4011,!1)}}function Oi(Te){return Te.segments.length>0?new Zt([],{[W]:Te}):Te}function Qn(Te){const ze={};for(const[Ze,Mt]of Object.entries(Te.children)){const pn=Qn(Mt);if(Ze===W&&0===pn.segments.length&&pn.hasChildren())for(const[gn,Di]of Object.entries(pn.children))ze[gn]=Di;else(pn.segments.length>0||pn.hasChildren())&&(ze[Ze]=pn)}return function Fi(Te){if(1===Te.numberOfChildren&&Te.children[W]){const ze=Te.children[W];return new Zt(Te.segments.concat(ze.segments),ze.children)}return Te}(new Zt(Te.segments,ze))}function Ai(Te){return Te instanceof Gt}function Mn(Te){let ze;const Mt=Oi(function Je(pn){const gn={};for(const ar of pn.children){const Xi=Je(ar);gn[ar.outlet]=Xi}const Di=new Zt(pn.url,gn);return pn===Te&&(ze=Di),Di}(Te.root));return ze??Mt}function bi(Te,ze,Je,Ze){let Mt=Te;for(;Mt.parent;)Mt=Mt.parent;if(0===ze.length)return Wr(Mt,Mt,Mt,Je,Ze);const pn=function ss(Te){if("string"==typeof Te[0]&&1===Te.length&&"/"===Te[0])return new Nr(!0,0,Te);let ze=0,Je=!1;const Ze=Te.reduce((Mt,pn,gn)=>{if("object"==typeof pn&&null!=pn){if(pn.outlets){const Di={};return Object.entries(pn.outlets).forEach(([ar,Xi])=>{Di[ar]="string"==typeof Xi?Xi.split("/"):Xi}),[...Mt,{outlets:Di}]}if(pn.segmentPath)return[...Mt,pn.segmentPath]}return"string"!=typeof pn?[...Mt,pn]:0===gn?(pn.split("/").forEach((Di,ar)=>{0==ar&&"."===Di||(0==ar&&""===Di?Je=!0:".."===Di?ze++:""!=Di&&Mt.push(Di))}),Mt):[...Mt,pn]},[]);return new Nr(Je,ze,Ze)}(ze);if(pn.toRoot())return Wr(Mt,Mt,new Zt([],{}),Je,Ze);const gn=function Pn(Te,ze,Je){if(Te.isAbsolute)return new Cs(ze,!0,0);if(!Je)return new Cs(ze,!1,NaN);if(null===Je.parent)return new Cs(Je,!0,0);const Ze=Hi(Te.commands[0])?0:1;return function Pi(Te,ze,Je){let Ze=Te,Mt=ze,pn=Je;for(;pn>Mt;){if(pn-=Mt,Ze=Ze.parent,!Ze)throw new n.wOt(4005,!1);Mt=Ze.segments.length}return new Cs(Ze,!1,Mt-pn)}(Je,Je.segments.length-1+Ze,Te.numberOfDoubleDots)}(pn,Mt,Te),Di=gn.processChildren?Fr(gn.segmentGroup,gn.index,pn.commands):er(gn.segmentGroup,gn.index,pn.commands);return Wr(Mt,gn.segmentGroup,Di,Je,Ze)}function Hi(Te){return"object"==typeof Te&&null!=Te&&!Te.outlets&&!Te.segmentPath}function Mr(Te){return"object"==typeof Te&&null!=Te&&Te.outlets}function Wr(Te,ze,Je,Ze,Mt){let gn,pn={};Ze&&Object.entries(Ze).forEach(([ar,Xi])=>{pn[ar]=Array.isArray(Xi)?Xi.map(mo=>`${mo}`):`${Xi}`}),gn=Te===ze?Je:uo(Te,ze,Je);const Di=Oi(Qn(gn));return new Gt(Di,pn,Mt)}function uo(Te,ze,Je){const Ze={};return Object.entries(Te.children).forEach(([Mt,pn])=>{Ze[Mt]=pn===ze?Je:uo(pn,ze,Je)}),new Zt(Te.segments,Ze)}class Nr{constructor(ze,Je,Ze){if(this.isAbsolute=ze,this.numberOfDoubleDots=Je,this.commands=Ze,ze&&Ze.length>0&&Hi(Ze[0]))throw new n.wOt(4003,!1);const Mt=Ze.find(Mr);if(Mt&&Mt!==K(Ze))throw new n.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Cs{constructor(ze,Je,Ze){this.segmentGroup=ze,this.processChildren=Je,this.index=Ze}}function er(Te,ze,Je){if(Te??=new Zt([],{}),0===Te.segments.length&&Te.hasChildren())return Fr(Te,ze,Je);const Ze=function dn(Te,ze,Je){let Ze=0,Mt=ze;const pn={match:!1,pathIndex:0,commandIndex:0};for(;Mt<Te.segments.length;){if(Ze>=Je.length)return pn;const gn=Te.segments[Mt],Di=Je[Ze];if(Mr(Di))break;const ar=`${Di}`,Xi=Ze<Je.length-1?Je[Ze+1]:null;if(Mt>0&&void 0===ar)break;if(ar&&Xi&&"object"==typeof Xi&&void 0===Xi.outlets){if(!Si(ar,Xi,gn))return pn;Ze+=2}else{if(!Si(ar,{},gn))return pn;Ze++}Mt++}return{match:!0,pathIndex:Mt,commandIndex:Ze}}(Te,ze,Je),Mt=Je.slice(Ze.commandIndex);if(Ze.match&&Ze.pathIndex<Te.segments.length){const pn=new Zt(Te.segments.slice(0,Ze.pathIndex),{});return pn.children[W]=new Zt(Te.segments.slice(Ze.pathIndex),Te.children),Fr(pn,0,Mt)}return Ze.match&&0===Mt.length?new Zt(Te.segments,{}):Ze.match&&!Te.hasChildren()?Fn(Te,ze,Je):Ze.match?Fr(Te,0,Mt):Fn(Te,ze,Je)}function Fr(Te,ze,Je){if(0===Je.length)return new Zt(Te.segments,{});{const Ze=function li(Te){return Mr(Te[0])?Te[0].outlets:{[W]:Te}}(Je),Mt={};if(Object.keys(Ze).some(pn=>pn!==W)&&Te.children[W]&&1===Te.numberOfChildren&&0===Te.children[W].segments.length){const pn=Fr(Te.children[W],ze,Je);return new Zt(Te.segments,pn.children)}return Object.entries(Ze).forEach(([pn,gn])=>{"string"==typeof gn&&(gn=[gn]),null!==gn&&(Mt[pn]=er(Te.children[pn],ze,gn))}),Object.entries(Te.children).forEach(([pn,gn])=>{void 0===Ze[pn]&&(Mt[pn]=gn)}),new Zt(Te.segments,Mt)}}function Fn(Te,ze,Je){const Ze=Te.segments.slice(0,ze);let Mt=0;for(;Mt<Je.length;){const pn=Je[Mt];if(Mr(pn)){const ar=xi(pn.outlets);return new Zt(Ze,ar)}if(0===Mt&&Hi(Je[0])){Ze.push(new kn(Te.segments[ze].path,fi(Je[0]))),Mt++;continue}const gn=Mr(pn)?pn.outlets[W]:`${pn}`,Di=Mt<Je.length-1?Je[Mt+1]:null;gn&&Di&&Hi(Di)?(Ze.push(new kn(gn,fi(Di))),Mt+=2):(Ze.push(new kn(gn,{})),Mt++)}return new Zt(Ze,{})}function xi(Te){const ze={};return Object.entries(Te).forEach(([Je,Ze])=>{"string"==typeof Ze&&(Ze=[Ze]),null!==Ze&&(ze[Je]=Fn(new Zt([],{}),0,Ze))}),ze}function fi(Te){const ze={};return Object.entries(Te).forEach(([Je,Ze])=>ze[Je]=`${Ze}`),ze}function Si(Te,ze,Je){return Te==Je.path&&ye(ze,Je.parameters)}const Yi="imperative";var Qi=function(Te){return Te[Te.NavigationStart=0]="NavigationStart",Te[Te.NavigationEnd=1]="NavigationEnd",Te[Te.NavigationCancel=2]="NavigationCancel",Te[Te.NavigationError=3]="NavigationError",Te[Te.RoutesRecognized=4]="RoutesRecognized",Te[Te.ResolveStart=5]="ResolveStart",Te[Te.ResolveEnd=6]="ResolveEnd",Te[Te.GuardsCheckStart=7]="GuardsCheckStart",Te[Te.GuardsCheckEnd=8]="GuardsCheckEnd",Te[Te.RouteConfigLoadStart=9]="RouteConfigLoadStart",Te[Te.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",Te[Te.ChildActivationStart=11]="ChildActivationStart",Te[Te.ChildActivationEnd=12]="ChildActivationEnd",Te[Te.ActivationStart=13]="ActivationStart",Te[Te.ActivationEnd=14]="ActivationEnd",Te[Te.Scroll=15]="Scroll",Te[Te.NavigationSkipped=16]="NavigationSkipped",Te}(Qi||{});class vr{constructor(ze,Je){this.id=ze,this.url=Je}}class Dr extends vr{constructor(ze,Je,Ze="imperative",Mt=null){super(ze,Je),this.type=Qi.NavigationStart,this.navigationTrigger=Ze,this.restoredState=Mt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class br extends vr{constructor(ze,Je,Ze){super(ze,Je),this.urlAfterRedirects=Ze,this.type=Qi.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ro=function(Te){return Te[Te.Redirect=0]="Redirect",Te[Te.SupersededByNewNavigation=1]="SupersededByNewNavigation",Te[Te.NoDataFromResolver=2]="NoDataFromResolver",Te[Te.GuardRejected=3]="GuardRejected",Te}(ro||{}),Oo=function(Te){return Te[Te.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",Te[Te.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",Te}(Oo||{});class Hr extends vr{constructor(ze,Je,Ze,Mt){super(ze,Je),this.reason=Ze,this.code=Mt,this.type=Qi.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ao extends vr{constructor(ze,Je,Ze,Mt){super(ze,Je),this.reason=Ze,this.code=Mt,this.type=Qi.NavigationSkipped}}class Co extends vr{constructor(ze,Je,Ze,Mt){super(ze,Je),this.error=Ze,this.target=Mt,this.type=Qi.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Lo extends vr{constructor(ze,Je,Ze,Mt){super(ze,Je),this.urlAfterRedirects=Ze,this.state=Mt,this.type=Qi.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ao extends vr{constructor(ze,Je,Ze,Mt){super(ze,Je),this.urlAfterRedirects=Ze,this.state=Mt,this.type=Qi.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ar extends vr{constructor(ze,Je,Ze,Mt,pn){super(ze,Je),this.urlAfterRedirects=Ze,this.state=Mt,this.shouldActivate=pn,this.type=Qi.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class sn extends vr{constructor(ze,Je,Ze,Mt){super(ze,Je),this.urlAfterRedirects=Ze,this.state=Mt,this.type=Qi.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gn extends vr{constructor(ze,Je,Ze,Mt){super(ze,Je),this.urlAfterRedirects=Ze,this.state=Mt,this.type=Qi.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $n{constructor(ze){this.route=ze,this.type=Qi.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ci{constructor(ze){this.route=ze,this.type=Qi.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Wi{constructor(ze){this.snapshot=ze,this.type=Qi.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ti{constructor(ze){this.snapshot=ze,this.type=Qi.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gi{constructor(ze){this.snapshot=ze,this.type=Qi.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Tr{constructor(ze){this.snapshot=ze,this.type=Qi.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _o{constructor(ze,Je,Ze){this.routerEvent=ze,this.position=Je,this.anchor=Ze,this.type=Qi.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class zo{}class as{constructor(ze){this.url=ze}}class Hs{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Qr,this.attachRef=null}}let Qr=(()=>{var Te;class ze{constructor(){this.contexts=new Map}onChildOutletCreated(Ze,Mt){const pn=this.getOrCreateContext(Ze);pn.outlet=Mt,this.contexts.set(Ze,pn)}onChildOutletDestroyed(Ze){const Mt=this.getContext(Ze);Mt&&(Mt.outlet=null,Mt.attachRef=null)}onOutletDeactivated(){const Ze=this.contexts;return this.contexts=new Map,Ze}onOutletReAttached(Ze){this.contexts=Ze}getOrCreateContext(Ze){let Mt=this.getContext(Ze);return Mt||(Mt=new Hs,this.contexts.set(Ze,Mt)),Mt}getContext(Ze){return this.contexts.get(Ze)||null}}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)},Te.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"}),ze})();class ca{constructor(ze){this._root=ze}get root(){return this._root.value}parent(ze){const Je=this.pathFromRoot(ze);return Je.length>1?Je[Je.length-2]:null}children(ze){const Je=Js(ze,this._root);return Je?Je.children.map(Ze=>Ze.value):[]}firstChild(ze){const Je=Js(ze,this._root);return Je&&Je.children.length>0?Je.children[0].value:null}siblings(ze){const Je=ts(ze,this._root);return Je.length<2?[]:Je[Je.length-2].children.map(Mt=>Mt.value).filter(Mt=>Mt!==ze)}pathFromRoot(ze){return ts(ze,this._root).map(Je=>Je.value)}}function Js(Te,ze){if(Te===ze.value)return ze;for(const Je of ze.children){const Ze=Js(Te,Je);if(Ze)return Ze}return null}function ts(Te,ze){if(Te===ze.value)return[ze];for(const Je of ze.children){const Ze=ts(Te,Je);if(Ze.length)return Ze.unshift(ze),Ze}return[]}class Qo{constructor(ze,Je){this.value=ze,this.children=Je}toString(){return`TreeNode(${this.value})`}}function xs(Te){const ze={};return Te&&Te.children.forEach(Je=>ze[Je.value.outlet]=Je),ze}class hl extends ca{constructor(ze,Je){super(ze),this.snapshot=Je,Zo(this,ze)}toString(){return this.snapshot.toString()}}function Bs(Te){const ze=function Oa(Te){const pn=new js([],{},{},"",{},W,Te,null,{});return new ea("",new Qo(pn,[]))}(Te),Je=new A.t([new kn("",{})]),Ze=new A.t({}),Mt=new A.t({}),pn=new A.t({}),gn=new A.t(""),Di=new qs(Je,Ze,pn,gn,Mt,W,Te,ze.root);return Di.snapshot=ze.root,new hl(new Qo(Di,[]),ze)}class qs{constructor(ze,Je,Ze,Mt,pn,gn,Di,ar){this.urlSubject=ze,this.paramsSubject=Je,this.queryParamsSubject=Ze,this.fragmentSubject=Mt,this.dataSubject=pn,this.outlet=gn,this.component=Di,this._futureSnapshot=ar,this.title=this.dataSubject?.pipe((0,O.T)(Xi=>Xi[Pe]))??(0,f.of)(void 0),this.url=ze,this.params=Je,this.queryParams=Ze,this.fragment=Mt,this.data=pn}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,O.T)(ze=>oe(ze))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,O.T)(ze=>oe(ze))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Er(Te,ze,Je="emptyOnly"){let Ze;const{routeConfig:Mt}=Te;return Ze=null===ze||"always"!==Je&&""!==Mt?.path&&(ze.component||ze.routeConfig?.loadComponent)?{params:{...Te.params},data:{...Te.data},resolve:{...Te.data,...Te._resolvedData??{}}}:{params:{...ze.params,...Te.params},data:{...ze.data,...Te.data},resolve:{...Te.data,...ze.data,...Mt?.data,...Te._resolvedData}},Mt&&Bo(Mt)&&(Ze.resolve[Pe]=Mt.title),Ze}class js{get title(){return this.data?.[Pe]}constructor(ze,Je,Ze,Mt,pn,gn,Di,ar,Xi){this.url=ze,this.params=Je,this.queryParams=Ze,this.fragment=Mt,this.data=pn,this.outlet=gn,this.component=Di,this.routeConfig=ar,this._resolve=Xi}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??=oe(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ze=>Ze.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ea extends ca{constructor(ze,Je){super(Je),this.url=ze,Zo(this,Je)}toString(){return vs(this._root)}}function Zo(Te,ze){ze.value._routerState=Te,ze.children.forEach(Je=>Zo(Te,Je))}function vs(Te){const ze=Te.children.length>0?` { ${Te.children.map(vs).join(", ")} } `:"";return`${Te.value}${ze}`}function Ys(Te){if(Te.snapshot){const ze=Te.snapshot,Je=Te._futureSnapshot;Te.snapshot=Je,ye(ze.queryParams,Je.queryParams)||Te.queryParamsSubject.next(Je.queryParams),ze.fragment!==Je.fragment&&Te.fragmentSubject.next(Je.fragment),ye(ze.params,Je.params)||Te.paramsSubject.next(Je.params),function Oe(Te,ze){if(Te.length!==ze.length)return!1;for(let Je=0;Je<Te.length;++Je)if(!ye(Te[Je],ze[Je]))return!1;return!0}(ze.url,Je.url)||Te.urlSubject.next(Je.url),ye(ze.data,Je.data)||Te.dataSubject.next(Je.data)}else Te.snapshot=Te._futureSnapshot,Te.dataSubject.next(Te._futureSnapshot.data)}function ho(Te,ze){const Je=ye(Te.params,ze.params)&&function Un(Te,ze){return ni(Te,ze)&&Te.every((Je,Ze)=>ye(Je.parameters,ze[Ze].parameters))}(Te.url,ze.url);return Je&&!(!Te.parent!=!ze.parent)&&(!Te.parent||ho(Te.parent,ze.parent))}function Bo(Te){return"string"==typeof Te.title||null===Te.title}let cs=(()=>{var Te;class ze{constructor(){this.activated=null,this._activatedRoute=null,this.name=W,this.activateEvents=new n.bkB,this.deactivateEvents=new n.bkB,this.attachEvents=new n.bkB,this.detachEvents=new n.bkB,this.parentContexts=(0,n.WQX)(Qr),this.location=(0,n.WQX)(n.c1b),this.changeDetector=(0,n.WQX)(n.gRc),this.environmentInjector=(0,n.WQX)(n.uvJ),this.inputBinder=(0,n.WQX)(_r,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(Ze){if(Ze.name){const{firstChange:Mt,previousValue:pn}=Ze.name;if(Mt)return;this.isTrackedInParentContexts(pn)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(pn)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(Ze){return this.parentContexts.getContext(Ze)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const Ze=this.parentContexts.getContext(this.name);Ze?.route&&(Ze.attachRef?this.attach(Ze.attachRef,Ze.route):this.activateWith(Ze.route,Ze.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new n.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new n.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new n.wOt(4012,!1);this.location.detach();const Ze=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(Ze.instance),Ze}attach(Ze,Mt){this.activated=Ze,this._activatedRoute=Mt,this.location.insert(Ze.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(Ze.instance)}deactivate(){if(this.activated){const Ze=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Ze)}}activateWith(Ze,Mt){if(this.isActivated)throw new n.wOt(4013,!1);this._activatedRoute=Ze;const pn=this.location,Di=Ze.snapshot.component,ar=this.parentContexts.getOrCreateContext(this.name).children,Xi=new Pa(Ze,ar,pn.injector);this.activated=pn.createComponent(Di,{index:pn.length,injector:Xi,environmentInjector:Mt??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)},Te.\u0275dir=n.FsC({type:Te,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[n.OA$]}),ze})();class Pa{__ngOutletInjector(ze){return new Pa(this.route,this.childContexts,ze)}constructor(ze,Je,Ze){this.route=ze,this.childContexts=Je,this.parent=Ze}get(ze,Je){return ze===qs?this.route:ze===Qr?this.childContexts:this.parent.get(ze,Je)}}const _r=new n.nKC("");let $s=(()=>{var Te;class ze{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(Ze){this.unsubscribeFromRouteData(Ze),this.subscribeToRouteData(Ze)}unsubscribeFromRouteData(Ze){this.outletDataSubscriptions.get(Ze)?.unsubscribe(),this.outletDataSubscriptions.delete(Ze)}subscribeToRouteData(Ze){const{activatedRoute:Mt}=Ze,pn=(0,M.zV)([Mt.queryParams,Mt.params,Mt.data]).pipe((0,Y.n)(([gn,Di,ar],Xi)=>(ar={...gn,...Di,...ar},0===Xi?(0,f.of)(ar):Promise.resolve(ar)))).subscribe(gn=>{if(!Ze.isActivated||!Ze.activatedComponentRef||Ze.activatedRoute!==Mt||null===Mt.component)return void this.unsubscribeFromRouteData(Ze);const Di=(0,n.HJs)(Mt.component);if(Di)for(const{templateName:ar}of Di.inputs)Ze.activatedComponentRef.setInput(ar,gn[ar]);else this.unsubscribeFromRouteData(Ze)});this.outletDataSubscriptions.set(Ze,pn)}}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)},Te.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac}),ze})();function sa(Te,ze,Je){if(Je&&Te.shouldReuseRoute(ze.value,Je.value.snapshot)){const Ze=Je.value;Ze._futureSnapshot=ze.value;const Mt=function Ba(Te,ze,Je){return ze.children.map(Ze=>{for(const Mt of Je.children)if(Te.shouldReuseRoute(Ze.value,Mt.value.snapshot))return sa(Te,Ze,Mt);return sa(Te,Ze)})}(Te,ze,Je);return new Qo(Ze,Mt)}{if(Te.shouldAttach(ze.value)){const pn=Te.retrieve(ze.value);if(null!==pn){const gn=pn.route;return gn.value._futureSnapshot=ze.value,gn.children=ze.children.map(Di=>sa(Te,Di)),gn}}const Ze=function Ml(Te){return new qs(new A.t(Te.url),new A.t(Te.params),new A.t(Te.queryParams),new A.t(Te.fragment),new A.t(Te.data),Te.outlet,Te.component,Te)}(ze.value),Mt=ze.children.map(pn=>sa(Te,pn));return new Qo(Ze,Mt)}}const _s="ngNavigationCancelingError";function wa(Te,ze){const{redirectTo:Je,navigationBehaviorOptions:Ze}=Ai(ze)?{redirectTo:ze,navigationBehaviorOptions:void 0}:ze,Mt=To(!1,ro.Redirect);return Mt.url=Je,Mt.navigationBehaviorOptions=Ze,Mt}function To(Te,ze){const Je=new Error(`NavigationCancelingError: ${Te||""}`);return Je[_s]=!0,Je.cancellationCode=ze,Je}function ta(Te){return!!Te&&Te[_s]}let Ls=(()=>{var Te;class ze{}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)},Te.\u0275cmp=n.VBU({type:Te,selectors:[["ng-component"]],standalone:!0,features:[n.aNF],decls:1,vars:0,template:function(Ze,Mt){1&Ze&&n.nrm(0,"router-outlet")},dependencies:[cs],encapsulation:2}),ze})();function Dt(Te){const ze=Te.children&&Te.children.map(Dt),Je=ze?{...Te,children:ze}:{...Te};return!Je.component&&!Je.loadComponent&&(ze||Je.loadChildren)&&Je.outlet&&Je.outlet!==W&&(Je.component=Ls),Je}function Xt(Te){return Te.outlet||W}function Sn(Te){if(!Te)return null;if(Te.routeConfig?._injector)return Te.routeConfig._injector;for(let ze=Te.parent;ze;ze=ze.parent){const Je=ze.routeConfig;if(Je?._loadedInjector)return Je._loadedInjector;if(Je?._injector)return Je._injector}return null}class Ji{constructor(ze,Je,Ze,Mt,pn){this.routeReuseStrategy=ze,this.futureState=Je,this.currState=Ze,this.forwardEvent=Mt,this.inputBindingEnabled=pn}activate(ze){const Je=this.futureState._root,Ze=this.currState?this.currState._root:null;this.deactivateChildRoutes(Je,Ze,ze),Ys(this.futureState.root),this.activateChildRoutes(Je,Ze,ze)}deactivateChildRoutes(ze,Je,Ze){const Mt=xs(Je);ze.children.forEach(pn=>{const gn=pn.value.outlet;this.deactivateRoutes(pn,Mt[gn],Ze),delete Mt[gn]}),Object.values(Mt).forEach(pn=>{this.deactivateRouteAndItsChildren(pn,Ze)})}deactivateRoutes(ze,Je,Ze){const Mt=ze.value,pn=Je?Je.value:null;if(Mt===pn)if(Mt.component){const gn=Ze.getContext(Mt.outlet);gn&&this.deactivateChildRoutes(ze,Je,gn.children)}else this.deactivateChildRoutes(ze,Je,Ze);else pn&&this.deactivateRouteAndItsChildren(Je,Ze)}deactivateRouteAndItsChildren(ze,Je){ze.value.component&&this.routeReuseStrategy.shouldDetach(ze.value.snapshot)?this.detachAndStoreRouteSubtree(ze,Je):this.deactivateRouteAndOutlet(ze,Je)}detachAndStoreRouteSubtree(ze,Je){const Ze=Je.getContext(ze.value.outlet),Mt=Ze&&ze.value.component?Ze.children:Je,pn=xs(ze);for(const gn of Object.values(pn))this.deactivateRouteAndItsChildren(gn,Mt);if(Ze&&Ze.outlet){const gn=Ze.outlet.detach(),Di=Ze.children.onOutletDeactivated();this.routeReuseStrategy.store(ze.value.snapshot,{componentRef:gn,route:ze,contexts:Di})}}deactivateRouteAndOutlet(ze,Je){const Ze=Je.getContext(ze.value.outlet),Mt=Ze&&ze.value.component?Ze.children:Je,pn=xs(ze);for(const gn of Object.values(pn))this.deactivateRouteAndItsChildren(gn,Mt);Ze&&(Ze.outlet&&(Ze.outlet.deactivate(),Ze.children.onOutletDeactivated()),Ze.attachRef=null,Ze.route=null)}activateChildRoutes(ze,Je,Ze){const Mt=xs(Je);ze.children.forEach(pn=>{this.activateRoutes(pn,Mt[pn.value.outlet],Ze),this.forwardEvent(new Tr(pn.value.snapshot))}),ze.children.length&&this.forwardEvent(new Ti(ze.value.snapshot))}activateRoutes(ze,Je,Ze){const Mt=ze.value,pn=Je?Je.value:null;if(Ys(Mt),Mt===pn)if(Mt.component){const gn=Ze.getOrCreateContext(Mt.outlet);this.activateChildRoutes(ze,Je,gn.children)}else this.activateChildRoutes(ze,Je,Ze);else if(Mt.component){const gn=Ze.getOrCreateContext(Mt.outlet);if(this.routeReuseStrategy.shouldAttach(Mt.snapshot)){const Di=this.routeReuseStrategy.retrieve(Mt.snapshot);this.routeReuseStrategy.store(Mt.snapshot,null),gn.children.onOutletReAttached(Di.contexts),gn.attachRef=Di.componentRef,gn.route=Di.route.value,gn.outlet&&gn.outlet.attach(Di.componentRef,Di.route.value),Ys(Di.route.value),this.activateChildRoutes(ze,null,gn.children)}else{const Di=Sn(Mt.snapshot);gn.attachRef=null,gn.route=Mt,gn.injector=Di,gn.outlet&&gn.outlet.activateWith(Mt,gn.injector),this.activateChildRoutes(ze,null,gn.children)}}else this.activateChildRoutes(ze,null,Ze)}}class Ei{constructor(ze){this.path=ze,this.route=this.path[this.path.length-1]}}class Ee{constructor(ze,Je){this.component=ze,this.route=Je}}function Pr(Te,ze,Je){const Ze=Te._root;return ga(Ze,ze?ze._root:null,Je,[Ze.value])}function Ds(Te,ze){const Je=Symbol(),Ze=ze.get(Te,Je);return Ze===Je?"function"!=typeof Te||(0,n.LfX)(Te)?ze.get(Te):Te:Ze}function ga(Te,ze,Je,Ze,Mt={canDeactivateChecks:[],canActivateChecks:[]}){const pn=xs(ze);return Te.children.forEach(gn=>{(function Ns(Te,ze,Je,Ze,Mt={canDeactivateChecks:[],canActivateChecks:[]}){const pn=Te.value,gn=ze?ze.value:null,Di=Je?Je.getContext(Te.value.outlet):null;if(gn&&pn.routeConfig===gn.routeConfig){const ar=function ba(Te,ze,Je){if("function"==typeof Je)return Je(Te,ze);switch(Je){case"pathParamsChange":return!ni(Te.url,ze.url);case"pathParamsOrQueryParamsChange":return!ni(Te.url,ze.url)||!ye(Te.queryParams,ze.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ho(Te,ze)||!ye(Te.queryParams,ze.queryParams);default:return!ho(Te,ze)}}(gn,pn,pn.routeConfig.runGuardsAndResolvers);ar?Mt.canActivateChecks.push(new Ei(Ze)):(pn.data=gn.data,pn._resolvedData=gn._resolvedData),ga(Te,ze,pn.component?Di?Di.children:null:Je,Ze,Mt),ar&&Di&&Di.outlet&&Di.outlet.isActivated&&Mt.canDeactivateChecks.push(new Ee(Di.outlet.component,gn))}else gn&&Os(ze,Di,Mt),Mt.canActivateChecks.push(new Ei(Ze)),ga(Te,null,pn.component?Di?Di.children:null:Je,Ze,Mt)})(gn,pn[gn.value.outlet],Je,Ze.concat([gn.value]),Mt),delete pn[gn.value.outlet]}),Object.entries(pn).forEach(([gn,Di])=>Os(Di,Je.getContext(gn),Mt)),Mt}function Os(Te,ze,Je){const Ze=xs(Te),Mt=Te.value;Object.entries(Ze).forEach(([pn,gn])=>{Os(gn,Mt.component?ze?ze.children.getContext(pn):null:ze,Je)}),Je.canDeactivateChecks.push(new Ee(Mt.component&&ze&&ze.outlet&&ze.outlet.isActivated?ze.outlet.component:null,Mt))}function $i(Te){return"function"==typeof Te}function lr(Te){return Te instanceof T.G||"EmptyError"===Te?.name}const to=Symbol("INITIAL_VALUE");function ls(){return(0,Y.n)(Te=>(0,M.zV)(Te.map(ze=>ze.pipe((0,j.s)(1),(0,fe.Z)(to)))).pipe((0,O.T)(ze=>{for(const Je of ze)if(!0!==Je){if(Je===to)return to;if(!1===Je||Je instanceof Gt)return Je}return!0}),(0,te.p)(ze=>ze!==to),(0,j.s)(1)))}function Ko(Te){return(0,S.F)((0,X.M)(ze=>{if(Ai(ze))throw wa(0,ze)}),(0,O.T)(ze=>!0===ze))}class pr{constructor(ze){this.segmentGroup=ze||null}}class Br extends Error{constructor(ze){super(),this.urlTree=ze}}function xr(Te){return(0,l.$)(new pr(Te))}class Ts{constructor(ze,Je){this.urlSerializer=ze,this.urlTree=Je}lineralizeSegments(ze,Je){let Ze=[],Mt=Je.root;for(;;){if(Ze=Ze.concat(Mt.segments),0===Mt.numberOfChildren)return(0,f.of)(Ze);if(Mt.numberOfChildren>1||!Mt.children[W])return(0,l.$)(new n.wOt(4e3,!1));Mt=Mt.children[W]}}applyRedirectCommands(ze,Je,Ze){const Mt=this.applyRedirectCreateUrlTree(Je,this.urlSerializer.parse(Je),ze,Ze);if(Je.startsWith("/"))throw new Br(Mt);return Mt}applyRedirectCreateUrlTree(ze,Je,Ze,Mt){const pn=this.createSegmentGroup(ze,Je.root,Ze,Mt);return new Gt(pn,this.createQueryParams(Je.queryParams,this.urlTree.queryParams),Je.fragment)}createQueryParams(ze,Je){const Ze={};return Object.entries(ze).forEach(([Mt,pn])=>{if("string"==typeof pn&&pn.startsWith(":")){const Di=pn.substring(1);Ze[Mt]=Je[Di]}else Ze[Mt]=pn}),Ze}createSegmentGroup(ze,Je,Ze,Mt){const pn=this.createSegments(ze,Je.segments,Ze,Mt);let gn={};return Object.entries(Je.children).forEach(([Di,ar])=>{gn[Di]=this.createSegmentGroup(ze,ar,Ze,Mt)}),new Zt(pn,gn)}createSegments(ze,Je,Ze,Mt){return Je.map(pn=>pn.path.startsWith(":")?this.findPosParam(ze,pn,Mt):this.findOrReturn(pn,Ze))}findPosParam(ze,Je,Ze){const Mt=Ze[Je.path.substring(1)];if(!Mt)throw new n.wOt(4001,!1);return Mt}findOrReturn(ze,Je){let Ze=0;for(const Mt of Je){if(Mt.path===ze.path)return Je.splice(Ze),Mt;Ze++}return ze}}const yr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Cr(Te,ze,Je,Ze,Mt){const pn=tn(Te,ze,Je);return pn.matched?(Ze=function zs(Te,ze){return Te.providers&&!Te._injector&&(Te._injector=(0,n.Ol2)(Te.providers,ze,`Route: ${Te.path}`)),Te._injector??ze}(ze,Ze),function is(Te,ze,Je,Ze){const Mt=ze.canMatch;if(!Mt||0===Mt.length)return(0,f.of)(!0);const pn=Mt.map(gn=>{const Di=Ds(gn,Te);return ve(function bn(Te){return Te&&$i(Te.canMatch)}(Di)?Di.canMatch(ze,Je):(0,n.N4e)(Te,()=>Di(ze,Je)))});return(0,f.of)(pn).pipe(ls(),Ko())}(Ze,ze,Je).pipe((0,O.T)(gn=>!0===gn?pn:{...yr}))):(0,f.of)(pn)}function tn(Te,ze,Je){if("**"===ze.path)return function xt(Te){return{matched:!0,parameters:Te.length>0?K(Te).parameters:{},consumedSegments:Te,remainingSegments:[],positionalParamSegments:{}}}(Je);if(""===ze.path)return"full"===ze.pathMatch&&(Te.hasChildren()||Je.length>0)?{...yr}:{matched:!0,consumedSegments:[],remainingSegments:Je,parameters:{},positionalParamSegments:{}};const Mt=(ze.matcher||Le)(Je,Te,ze);if(!Mt)return{...yr};const pn={};Object.entries(Mt.posParams??{}).forEach(([Di,ar])=>{pn[Di]=ar.path});const gn=Mt.consumed.length>0?{...pn,...Mt.consumed[Mt.consumed.length-1].parameters}:pn;return{matched:!0,consumedSegments:Mt.consumed,remainingSegments:Je.slice(Mt.consumed.length),parameters:gn,positionalParamSegments:Mt.posParams??{}}}function Ht(Te,ze,Je,Ze){return Je.length>0&&function si(Te,ze,Je){return Je.some(Ze=>ur(Te,ze,Ze)&&Xt(Ze)!==W)}(Te,Je,Ze)?{segmentGroup:new Zt(ze,cn(Ze,new Zt(Je,Te.children))),slicedSegments:[]}:0===Je.length&&function vi(Te,ze,Je){return Je.some(Ze=>ur(Te,ze,Ze))}(Te,Je,Ze)?{segmentGroup:new Zt(Te.segments,ut(Te,Je,Ze,Te.children)),slicedSegments:Je}:{segmentGroup:new Zt(Te.segments,Te.children),slicedSegments:Je}}function ut(Te,ze,Je,Ze){const Mt={};for(const pn of Je)if(ur(Te,ze,pn)&&!Ze[Xt(pn)]){const gn=new Zt([],{});Mt[Xt(pn)]=gn}return{...Ze,...Mt}}function cn(Te,ze){const Je={};Je[W]=ze;for(const Ze of Te)if(""===Ze.path&&Xt(Ze)!==W){const Mt=new Zt([],{});Je[Xt(Ze)]=Mt}return Je}function ur(Te,ze,Je){return(!(Te.hasChildren()||ze.length>0)||"full"!==Je.pathMatch)&&""===Je.path}class zn{}class cr{constructor(ze,Je,Ze,Mt,pn,gn,Di){this.injector=ze,this.configLoader=Je,this.rootComponentType=Ze,this.config=Mt,this.urlTree=pn,this.paramsInheritanceStrategy=gn,this.urlSerializer=Di,this.applyRedirects=new Ts(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(ze){return new n.wOt(4002,`'${ze.segmentGroup}'`)}recognize(){const ze=Ht(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(ze).pipe((0,O.T)(Je=>{const Ze=new js([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},W,this.rootComponentType,null,{}),Mt=new Qo(Ze,Je),pn=new ea("",Mt),gn=function ln(Te,ze,Je=null,Ze=null){return bi(Mn(Te),ze,Je,Ze)}(Ze,[],this.urlTree.queryParams,this.urlTree.fragment);return gn.queryParams=this.urlTree.queryParams,pn.url=this.urlSerializer.serialize(gn),this.inheritParamsAndData(pn._root,null),{state:pn,tree:gn}}))}match(ze){return this.processSegmentGroup(this.injector,this.config,ze,W).pipe((0,ue.W)(Ze=>{if(Ze instanceof Br)return this.urlTree=Ze.urlTree,this.match(Ze.urlTree.root);throw Ze instanceof pr?this.noMatchError(Ze):Ze}))}inheritParamsAndData(ze,Je){const Ze=ze.value,Mt=Er(Ze,Je,this.paramsInheritanceStrategy);Ze.params=Object.freeze(Mt.params),Ze.data=Object.freeze(Mt.data),ze.children.forEach(pn=>this.inheritParamsAndData(pn,Ze))}processSegmentGroup(ze,Je,Ze,Mt){return 0===Ze.segments.length&&Ze.hasChildren()?this.processChildren(ze,Je,Ze):this.processSegment(ze,Je,Ze,Ze.segments,Mt,!0).pipe((0,O.T)(pn=>pn instanceof Qo?[pn]:[]))}processChildren(ze,Je,Ze){const Mt=[];for(const pn of Object.keys(Ze.children))"primary"===pn?Mt.unshift(pn):Mt.push(pn);return(0,h.H)(Mt).pipe((0,Z.H)(pn=>{const gn=Ze.children[pn],Di=function St(Te,ze){const Je=Te.filter(Ze=>Xt(Ze)===ze);return Je.push(...Te.filter(Ze=>Xt(Ze)!==ze)),Je}(Je,pn);return this.processSegmentGroup(ze,Di,gn,pn)}),function be(Te,ze){let Je=!1;return arguments.length>=2&&(Je=!0),function(Mt){return Mt.lift(new Q(Te,ze,Je))}}((pn,gn)=>(pn.push(...gn),pn)),(0,Ge.U)(null),(0,ge.H)(),(0,ce.ZZ)(pn=>{if(null===pn)return xr(Ze);const gn=No(pn);return function ji(Te){Te.sort((ze,Je)=>ze.value.outlet===W?-1:Je.value.outlet===W?1:ze.value.outlet.localeCompare(Je.value.outlet))}(gn),(0,f.of)(gn)}))}processSegment(ze,Je,Ze,Mt,pn,gn){return(0,h.H)(Je).pipe((0,Z.H)(Di=>this.processSegmentAgainstRoute(Di._injector??ze,Je,Di,Ze,Mt,pn,gn).pipe((0,ue.W)(ar=>{if(ar instanceof pr)return(0,f.of)(null);throw ar}))),(0,H.$)(Di=>!!Di),(0,ue.W)(Di=>{if(lr(Di))return function or(Te,ze,Je){return 0===ze.length&&!Te.children[Je]}(Ze,Mt,pn)?(0,f.of)(new zn):xr(Ze);throw Di}))}processSegmentAgainstRoute(ze,Je,Ze,Mt,pn,gn,Di){return function gr(Te,ze,Je,Ze){return!!(Xt(Te)===Ze||Ze!==W&&ur(ze,Je,Te))&&tn(ze,Te,Je).matched}(Ze,Mt,pn,gn)?void 0===Ze.redirectTo?this.matchSegmentAgainstRoute(ze,Mt,Ze,pn,gn):this.allowRedirects&&Di?this.expandSegmentAgainstRouteUsingRedirect(ze,Mt,Je,Ze,pn,gn):xr(Mt):xr(Mt)}expandSegmentAgainstRouteUsingRedirect(ze,Je,Ze,Mt,pn,gn){const{matched:Di,consumedSegments:ar,positionalParamSegments:Xi,remainingSegments:mo}=tn(Je,Mt,pn);if(!Di)return xr(Je);Mt.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Jo=this.applyRedirects.applyRedirectCommands(ar,Mt.redirectTo,Xi);return this.applyRedirects.lineralizeSegments(Mt,Jo).pipe((0,ce.ZZ)(ko=>this.processSegment(ze,Ze,Je,ko.concat(mo),gn,!1)))}matchSegmentAgainstRoute(ze,Je,Ze,Mt,pn){const gn=Cr(Je,Ze,Mt,ze);return"**"===Ze.path&&(Je.children={}),gn.pipe((0,Y.n)(Di=>Di.matched?this.getChildConfig(ze=Ze._injector??ze,Ze,Mt).pipe((0,Y.n)(({routes:ar})=>{const Xi=Ze._loadedInjector??ze,{consumedSegments:mo,remainingSegments:Jo,parameters:ko}=Di,ya=new js(mo,ko,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function go(Te){return Te.data||{}}(Ze),Xt(Ze),Ze.component??Ze._loadedComponent??null,Ze,function Xr(Te){return Te.resolve||{}}(Ze)),{segmentGroup:ra,slicedSegments:kr}=Ht(Je,mo,Jo,ar);if(0===kr.length&&ra.hasChildren())return this.processChildren(Xi,ar,ra).pipe((0,O.T)(Qa=>null===Qa?null:new Qo(ya,Qa)));if(0===ar.length&&0===kr.length)return(0,f.of)(new Qo(ya,[]));const Dl=Xt(Ze)===pn;return this.processSegment(Xi,ar,ra,kr,Dl?W:pn,!0).pipe((0,O.T)(Qa=>new Qo(ya,Qa instanceof Qo?[Qa]:[])))})):xr(Je)))}getChildConfig(ze,Je,Ze){return Je.children?(0,f.of)({routes:Je.children,injector:ze}):Je.loadChildren?void 0!==Je._loadedRoutes?(0,f.of)({routes:Je._loadedRoutes,injector:Je._loadedInjector}):function Na(Te,ze,Je,Ze){const Mt=ze.canLoad;if(void 0===Mt||0===Mt.length)return(0,f.of)(!0);const pn=Mt.map(gn=>{const Di=Ds(gn,Te);return ve(function Ft(Te){return Te&&$i(Te.canLoad)}(Di)?Di.canLoad(ze,Je):(0,n.N4e)(Te,()=>Di(ze,Je)))});return(0,f.of)(pn).pipe(ls(),Ko())}(ze,Je,Ze).pipe((0,ce.ZZ)(Mt=>Mt?this.configLoader.loadChildren(ze,Je).pipe((0,X.M)(pn=>{Je._loadedRoutes=pn.routes,Je._loadedInjector=pn.injector})):function fo(Te){return(0,l.$)(To(!1,ro.GuardRejected))}())):(0,f.of)({routes:[],injector:ze})}}function jr(Te){const ze=Te.value.routeConfig;return ze&&""===ze.path}function No(Te){const ze=[],Je=new Set;for(const Ze of Te){if(!jr(Ze)){ze.push(Ze);continue}const Mt=ze.find(pn=>Ze.value.routeConfig===pn.value.routeConfig);void 0!==Mt?(Mt.children.push(...Ze.children),Je.add(Mt)):ze.push(Ze)}for(const Ze of Je){const Mt=No(Ze.children);ze.push(new Qo(Ze.value,Mt))}return ze.filter(Ze=>!Je.has(Ze))}function Xs(Te){const ze=Te.children.map(Je=>Xs(Je)).flat();return[Te,...ze]}function Ho(Te){return(0,Y.n)(ze=>{const Je=Te(ze);return Je?(0,h.H)(Je).pipe((0,O.T)(()=>ze)):(0,f.of)(ze)})}let Ea=(()=>{var Te;class ze{buildTitle(Ze){let Mt,pn=Ze.root;for(;void 0!==pn;)Mt=this.getResolvedTitleForRoute(pn)??Mt,pn=pn.children.find(gn=>gn.outlet===W);return Mt}getResolvedTitleForRoute(Ze){return Ze.data[Pe]}}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)},Te.\u0275prov=n.jDH({token:Te,factory:()=>(0,n.WQX)(Al),providedIn:"root"}),ze})(),Al=(()=>{var Te;class ze extends Ea{constructor(Ze){super(),this.title=Ze}updateTitle(Ze){const Mt=this.buildTitle(Ze);void 0!==Mt&&this.title.setTitle(Mt)}}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)(n.KVO(ee.hE))},Te.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"}),ze})();const Ma=new n.nKC("",{providedIn:"root",factory:()=>({})}),Vo=new n.nKC("");let Ki=(()=>{var Te;class ze{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,n.WQX)(n.Ql9)}loadComponent(Ze){if(this.componentLoaders.get(Ze))return this.componentLoaders.get(Ze);if(Ze._loadedComponent)return(0,f.of)(Ze._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(Ze);const Mt=ve(Ze.loadComponent()).pipe((0,O.T)(gl),(0,X.M)(gn=>{this.onLoadEndListener&&this.onLoadEndListener(Ze),Ze._loadedComponent=gn}),(0,dt.j)(()=>{this.componentLoaders.delete(Ze)})),pn=new u.G(Mt,()=>new m.B7).pipe((0,xe.B)());return this.componentLoaders.set(Ze,pn),pn}loadChildren(Ze,Mt){if(this.childrenLoaders.get(Mt))return this.childrenLoaders.get(Mt);if(Mt._loadedRoutes)return(0,f.of)({routes:Mt._loadedRoutes,injector:Mt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Mt);const gn=function Uo(Te,ze,Je,Ze){return ve(Te.loadChildren()).pipe((0,O.T)(gl),(0,ce.ZZ)(Mt=>Mt instanceof n.Co$||Array.isArray(Mt)?(0,f.of)(Mt):(0,h.H)(ze.compileModuleAsync(Mt))),(0,O.T)(Mt=>{Ze&&Ze(Te);let pn,gn,Di=!1;return Array.isArray(Mt)?(gn=Mt,!0):(pn=Mt.create(Je).injector,gn=pn.get(Vo,[],{optional:!0,self:!0}).flat()),{routes:gn.map(Dt),injector:pn}}))}(Mt,this.compiler,Ze,this.onLoadEndListener).pipe((0,dt.j)(()=>{this.childrenLoaders.delete(Mt)})),Di=new u.G(gn,()=>new m.B7).pipe((0,xe.B)());return this.childrenLoaders.set(Mt,Di),Di}}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)},Te.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"}),ze})();function gl(Te){return function fl(Te){return Te&&"object"==typeof Te&&"default"in Te}(Te)?Te.default:Te}let Tl=(()=>{var Te;class ze{}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)},Te.\u0275prov=n.jDH({token:Te,factory:()=>(0,n.WQX)(rd),providedIn:"root"}),ze})(),rd=(()=>{var Te;class ze{shouldProcessUrl(Ze){return!0}extract(Ze){return Ze}merge(Ze,Mt){return Ze}}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)},Te.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"}),ze})();const Fl=new n.nKC(""),na=new n.nKC("");function Va(Te,ze,Je){const Ze=Te.get(na),Mt=Te.get(R.qQ);return Te.get(n.SKi).runOutsideAngular(()=>{if(!Mt.startViewTransition||Ze.skipNextTransition)return Ze.skipNextTransition=!1,new Promise(Xi=>setTimeout(Xi));let pn;const gn=new Promise(Xi=>{pn=Xi}),Di=Mt.startViewTransition(()=>(pn(),function Kr(Te){return new Promise(ze=>{(0,n.mal)(ze,{injector:Te})})}(Te))),{onViewTransitionCreated:ar}=Ze;return ar&&(0,n.N4e)(Te,()=>ar({transition:Di,from:ze,to:Je})),gn})}let ke=(()=>{var Te;class ze{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,n.WQX)(Ki),this.environmentInjector=(0,n.WQX)(n.uvJ),this.urlSerializer=(0,n.WQX)(mi),this.rootContexts=(0,n.WQX)(Qr),this.location=(0,n.WQX)(R.aZ),this.inputBindingEnabled=null!==(0,n.WQX)(_r,{optional:!0}),this.titleStrategy=(0,n.WQX)(Ea),this.options=(0,n.WQX)(Ma,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,n.WQX)(Tl),this.createViewTransition=(0,n.WQX)(Fl,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,f.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=pn=>this.events.next(new Ci(pn)),this.configLoader.onLoadStartListener=pn=>this.events.next(new $n(pn))}complete(){this.transitions?.complete()}handleNavigationRequest(Ze){const Mt=++this.navigationId;this.transitions?.next({...this.transitions.value,...Ze,id:Mt})}setupNavigations(Ze,Mt,pn){return this.transitions=new A.t({id:0,currentUrlTree:Mt,currentRawUrl:Mt,extractedUrl:this.urlHandlingStrategy.extract(Mt),urlAfterRedirects:this.urlHandlingStrategy.extract(Mt),rawUrl:Mt,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Yi,restoredState:null,currentSnapshot:pn.snapshot,targetSnapshot:null,currentRouterState:pn,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,te.p)(gn=>0!==gn.id),(0,O.T)(gn=>({...gn,extractedUrl:this.urlHandlingStrategy.extract(gn.rawUrl)})),(0,Y.n)(gn=>{let Di=!1,ar=!1;return(0,f.of)(gn).pipe((0,Y.n)(Xi=>{if(this.navigationId>gn.id)return this.cancelNavigationTransition(gn,"",ro.SupersededByNewNavigation),s.w;this.currentTransition=gn,this.currentNavigation={id:Xi.id,initialUrl:Xi.rawUrl,extractedUrl:Xi.extractedUrl,trigger:Xi.source,extras:Xi.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const mo=!Ze.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!mo&&"reload"!==(Xi.extras.onSameUrlNavigation??Ze.onSameUrlNavigation)){const ko="";return this.events.next(new Ao(Xi.id,this.urlSerializer.serialize(Xi.rawUrl),ko,Oo.IgnoredSameUrlNavigation)),Xi.resolve(null),s.w}if(this.urlHandlingStrategy.shouldProcessUrl(Xi.rawUrl))return(0,f.of)(Xi).pipe((0,Y.n)(ko=>{const ya=this.transitions?.getValue();return this.events.next(new Dr(ko.id,this.urlSerializer.serialize(ko.extractedUrl),ko.source,ko.restoredState)),ya!==this.transitions?.getValue()?s.w:Promise.resolve(ko)}),function Ks(Te,ze,Je,Ze,Mt,pn){return(0,ce.ZZ)(gn=>function pi(Te,ze,Je,Ze,Mt,pn,gn="emptyOnly"){return new cr(Te,ze,Je,Ze,Mt,gn,pn).recognize()}(Te,ze,Je,Ze,gn.extractedUrl,Mt,pn).pipe((0,O.T)(({state:Di,tree:ar})=>({...gn,targetSnapshot:Di,urlAfterRedirects:ar}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,Ze.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,X.M)(ko=>{gn.targetSnapshot=ko.targetSnapshot,gn.urlAfterRedirects=ko.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:ko.urlAfterRedirects};const ya=new Lo(ko.id,this.urlSerializer.serialize(ko.extractedUrl),this.urlSerializer.serialize(ko.urlAfterRedirects),ko.targetSnapshot);this.events.next(ya)}));if(mo&&this.urlHandlingStrategy.shouldProcessUrl(Xi.currentRawUrl)){const{id:ko,extractedUrl:ya,source:ra,restoredState:kr,extras:Dl}=Xi,Qa=new Dr(ko,this.urlSerializer.serialize(ya),ra,kr);this.events.next(Qa);const zd=Bs(this.rootComponentType).snapshot;return this.currentTransition=gn={...Xi,targetSnapshot:zd,urlAfterRedirects:ya,extras:{...Dl,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=ya,(0,f.of)(gn)}{const ko="";return this.events.next(new Ao(Xi.id,this.urlSerializer.serialize(Xi.extractedUrl),ko,Oo.IgnoredByUrlHandlingStrategy)),Xi.resolve(null),s.w}}),(0,X.M)(Xi=>{const mo=new ao(Xi.id,this.urlSerializer.serialize(Xi.extractedUrl),this.urlSerializer.serialize(Xi.urlAfterRedirects),Xi.targetSnapshot);this.events.next(mo)}),(0,O.T)(Xi=>(this.currentTransition=gn={...Xi,guards:Pr(Xi.targetSnapshot,Xi.currentSnapshot,this.rootContexts)},gn)),function xo(Te,ze){return(0,ce.ZZ)(Je=>{const{targetSnapshot:Ze,currentSnapshot:Mt,guards:{canActivateChecks:pn,canDeactivateChecks:gn}}=Je;return 0===gn.length&&0===pn.length?(0,f.of)({...Je,guardsResult:!0}):function Go(Te,ze,Je,Ze){return(0,h.H)(Te).pipe((0,ce.ZZ)(Mt=>function pl(Te,ze,Je,Ze,Mt){const pn=ze&&ze.routeConfig?ze.routeConfig.canDeactivate:null;if(!pn||0===pn.length)return(0,f.of)(!0);const gn=pn.map(Di=>{const ar=Sn(ze)??Mt,Xi=Ds(Di,ar);return ve(function kt(Te){return Te&&$i(Te.canDeactivate)}(Xi)?Xi.canDeactivate(Te,ze,Je,Ze):(0,n.N4e)(ar,()=>Xi(Te,ze,Je,Ze))).pipe((0,H.$)())});return(0,f.of)(gn).pipe(ls())}(Mt.component,Mt.route,Je,ze,Ze)),(0,H.$)(Mt=>!0!==Mt,!0))}(gn,Ze,Mt,Te).pipe((0,ce.ZZ)(Di=>Di&&function oa(Te){return"boolean"==typeof Te}(Di)?function Ui(Te,ze,Je,Ze){return(0,h.H)(ze).pipe((0,Z.H)(Mt=>(0,E.x)(function La(Te,ze){return null!==Te&&ze&&ze(new Wi(Te)),(0,f.of)(!0)}(Mt.route.parent,Ze),function ns(Te,ze){return null!==Te&&ze&&ze(new Gi(Te)),(0,f.of)(!0)}(Mt.route,Ze),function Or(Te,ze,Je){const Ze=ze[ze.length-1],pn=ze.slice(0,ze.length-1).reverse().map(gn=>function Ra(Te){const ze=Te.routeConfig?Te.routeConfig.canActivateChild:null;return ze&&0!==ze.length?{node:Te,guards:ze}:null}(gn)).filter(gn=>null!==gn).map(gn=>(0,y.v)(()=>{const Di=gn.guards.map(ar=>{const Xi=Sn(gn.node)??Je,mo=Ds(ar,Xi);return ve(function nn(Te){return Te&&$i(Te.canActivateChild)}(mo)?mo.canActivateChild(Ze,Te):(0,n.N4e)(Xi,()=>mo(Ze,Te))).pipe((0,H.$)())});return(0,f.of)(Di).pipe(ls())}));return(0,f.of)(pn).pipe(ls())}(Te,Mt.path,Je),function Ps(Te,ze,Je){const Ze=ze.routeConfig?ze.routeConfig.canActivate:null;if(!Ze||0===Ze.length)return(0,f.of)(!0);const Mt=Ze.map(pn=>(0,y.v)(()=>{const gn=Sn(ze)??Je,Di=Ds(pn,gn);return ve(function mt(Te){return Te&&$i(Te.canActivate)}(Di)?Di.canActivate(ze,Te):(0,n.N4e)(gn,()=>Di(ze,Te))).pipe((0,H.$)())}));return(0,f.of)(Mt).pipe(ls())}(Te,Mt.route,Je))),(0,H.$)(Mt=>!0!==Mt,!0))}(Ze,pn,Te,ze):(0,f.of)(Di)),(0,O.T)(Di=>({...Je,guardsResult:Di})))})}(this.environmentInjector,Xi=>this.events.next(Xi)),(0,X.M)(Xi=>{if(gn.guardsResult=Xi.guardsResult,Ai(Xi.guardsResult))throw wa(0,Xi.guardsResult);const mo=new Ar(Xi.id,this.urlSerializer.serialize(Xi.extractedUrl),this.urlSerializer.serialize(Xi.urlAfterRedirects),Xi.targetSnapshot,!!Xi.guardsResult);this.events.next(mo)}),(0,te.p)(Xi=>!!Xi.guardsResult||(this.cancelNavigationTransition(Xi,"",ro.GuardRejected),!1)),Ho(Xi=>{if(Xi.guards.canActivateChecks.length)return(0,f.of)(Xi).pipe((0,X.M)(mo=>{const Jo=new sn(mo.id,this.urlSerializer.serialize(mo.extractedUrl),this.urlSerializer.serialize(mo.urlAfterRedirects),mo.targetSnapshot);this.events.next(Jo)}),(0,Y.n)(mo=>{let Jo=!1;return(0,f.of)(mo).pipe(function Ca(Te,ze){return(0,ce.ZZ)(Je=>{const{targetSnapshot:Ze,guards:{canActivateChecks:Mt}}=Je;if(!Mt.length)return(0,f.of)(Je);const pn=new Set(Mt.map(ar=>ar.route)),gn=new Set;for(const ar of pn)if(!gn.has(ar))for(const Xi of Xs(ar))gn.add(Xi);let Di=0;return(0,h.H)(gn).pipe((0,Z.H)(ar=>pn.has(ar)?function ds(Te,ze,Je,Ze){const Mt=Te.routeConfig,pn=Te._resolve;return void 0!==Mt?.title&&!Bo(Mt)&&(pn[Pe]=Mt.title),function Xa(Te,ze,Je,Ze){const Mt=Ie(Te);if(0===Mt.length)return(0,f.of)({});const pn={};return(0,h.H)(Mt).pipe((0,ce.ZZ)(gn=>function fs(Te,ze,Je,Ze){const Mt=Sn(ze)??Ze,pn=Ds(Te,Mt);return ve(pn.resolve?pn.resolve(ze,Je):(0,n.N4e)(Mt,()=>pn(ze,Je)))}(Te[gn],ze,Je,Ze).pipe((0,H.$)(),(0,X.M)(Di=>{pn[gn]=Di}))),(0,Xe.o)(1),(0,ot.u)(pn),(0,ue.W)(gn=>lr(gn)?s.w:(0,l.$)(gn)))}(pn,Te,ze,Ze).pipe((0,O.T)(gn=>(Te._resolvedData=gn,Te.data=Er(Te,Te.parent,Je).resolve,null)))}(ar,Ze,Te,ze):(ar.data=Er(ar,ar.parent,Te).resolve,(0,f.of)(void 0))),(0,X.M)(()=>Di++),(0,Xe.o)(1),(0,ce.ZZ)(ar=>Di===gn.size?(0,f.of)(Je):s.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,X.M)({next:()=>Jo=!0,complete:()=>{Jo||this.cancelNavigationTransition(mo,"",ro.NoDataFromResolver)}}))}),(0,X.M)(mo=>{const Jo=new Gn(mo.id,this.urlSerializer.serialize(mo.extractedUrl),this.urlSerializer.serialize(mo.urlAfterRedirects),mo.targetSnapshot);this.events.next(Jo)}))}),Ho(Xi=>{const mo=Jo=>{const ko=[];Jo.routeConfig?.loadComponent&&!Jo.routeConfig._loadedComponent&&ko.push(this.configLoader.loadComponent(Jo.routeConfig).pipe((0,X.M)(ya=>{Jo.component=ya}),(0,O.T)(()=>{})));for(const ya of Jo.children)ko.push(...mo(ya));return ko};return(0,M.zV)(mo(Xi.targetSnapshot.root)).pipe((0,Ge.U)(null),(0,j.s)(1))}),Ho(()=>this.afterPreactivation()),(0,Y.n)(()=>{const{currentSnapshot:Xi,targetSnapshot:mo}=gn,Jo=this.createViewTransition?.(this.environmentInjector,Xi.root,mo.root);return Jo?(0,h.H)(Jo).pipe((0,O.T)(()=>gn)):(0,f.of)(gn)}),(0,O.T)(Xi=>{const mo=function fa(Te,ze,Je){const Ze=sa(Te,ze._root,Je?Je._root:void 0);return new hl(Ze,ze)}(Ze.routeReuseStrategy,Xi.targetSnapshot,Xi.currentRouterState);return this.currentTransition=gn={...Xi,targetRouterState:mo},this.currentNavigation.targetRouterState=mo,gn}),(0,X.M)(()=>{this.events.next(new zo)}),((Te,ze,Je,Ze)=>(0,O.T)(Mt=>(new Ji(ze,Mt.targetRouterState,Mt.currentRouterState,Je,Ze).activate(Te),Mt)))(this.rootContexts,Ze.routeReuseStrategy,Xi=>this.events.next(Xi),this.inputBindingEnabled),(0,j.s)(1),(0,X.M)({next:Xi=>{Di=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new br(Xi.id,this.urlSerializer.serialize(Xi.extractedUrl),this.urlSerializer.serialize(Xi.urlAfterRedirects))),this.titleStrategy?.updateTitle(Xi.targetRouterState.snapshot),Xi.resolve(!0)},complete:()=>{Di=!0}}),(0,Re.Q)(this.transitionAbortSubject.pipe((0,X.M)(Xi=>{throw Xi}))),(0,dt.j)(()=>{!Di&&!ar&&this.cancelNavigationTransition(gn,"",ro.SupersededByNewNavigation),this.currentTransition?.id===gn.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,ue.W)(Xi=>{if(ar=!0,ta(Xi))this.events.next(new Hr(gn.id,this.urlSerializer.serialize(gn.extractedUrl),Xi.message,Xi.cancellationCode)),function po(Te){return ta(Te)&&Ai(Te.url)}(Xi)?this.events.next(new as(Xi.url)):gn.resolve(!1);else{this.events.next(new Co(gn.id,this.urlSerializer.serialize(gn.extractedUrl),Xi,gn.targetSnapshot??void 0));try{gn.resolve(Ze.errorHandler(Xi))}catch(mo){this.options.resolveNavigationPromiseOnError?gn.resolve(!1):gn.reject(mo)}}return s.w}))}))}cancelNavigationTransition(Ze,Mt,pn){const gn=new Hr(Ze.id,this.urlSerializer.serialize(Ze.extractedUrl),Mt,pn);this.events.next(gn),Ze.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}}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)},Te.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"}),ze})();function _(Te){return Te!==Yi}let L=(()=>{var Te;class ze{}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)},Te.\u0275prov=n.jDH({token:Te,factory:()=>(0,n.WQX)(B),providedIn:"root"}),ze})();class D{shouldDetach(ze){return!1}store(ze,Je){}shouldAttach(ze){return!1}retrieve(ze){return null}shouldReuseRoute(ze,Je){return ze.routeConfig===Je.routeConfig}}let B=(()=>{var Te;class ze extends D{}return(Te=ze).\u0275fac=(()=>{let Je;return function(Mt){return(Je||(Je=n.xGo(Te)))(Mt||Te)}})(),Te.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"}),ze})(),re=(()=>{var Te;class ze{}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)},Te.\u0275prov=n.jDH({token:Te,factory:()=>(0,n.WQX)(he),providedIn:"root"}),ze})(),he=(()=>{var Te;class ze extends re{constructor(){super(...arguments),this.location=(0,n.WQX)(R.aZ),this.urlSerializer=(0,n.WQX)(mi),this.options=(0,n.WQX)(Ma,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,n.WQX)(Tl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Gt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Bs(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(Ze){return this.location.subscribe(Mt=>{"popstate"===Mt.type&&Ze(Mt.url,Mt.state)})}handleRouterEvent(Ze,Mt){if(Ze instanceof Dr)this.stateMemento=this.createStateMemento();else if(Ze instanceof Ao)this.rawUrlTree=Mt.initialUrl;else if(Ze instanceof Lo){if("eager"===this.urlUpdateStrategy&&!Mt.extras.skipLocationChange){const pn=this.urlHandlingStrategy.merge(Mt.finalUrl,Mt.initialUrl);this.setBrowserUrl(pn,Mt)}}else Ze instanceof zo?(this.currentUrlTree=Mt.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(Mt.finalUrl,Mt.initialUrl),this.routerState=Mt.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Mt.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Mt))):Ze instanceof Hr&&(Ze.code===ro.GuardRejected||Ze.code===ro.NoDataFromResolver)?this.restoreHistory(Mt):Ze instanceof Co?this.restoreHistory(Mt,!0):Ze instanceof br&&(this.lastSuccessfulId=Ze.id,this.currentPageId=this.browserPageId)}setBrowserUrl(Ze,Mt){const pn=this.urlSerializer.serialize(Ze);if(this.location.isCurrentPathEqualTo(pn)||Mt.extras.replaceUrl){const Di={...Mt.extras.state,...this.generateNgRouterState(Mt.id,this.browserPageId)};this.location.replaceState(pn,"",Di)}else{const gn={...Mt.extras.state,...this.generateNgRouterState(Mt.id,this.browserPageId+1)};this.location.go(pn,"",gn)}}restoreHistory(Ze,Mt=!1){if("computed"===this.canceledNavigationResolution){const gn=this.currentPageId-this.browserPageId;0!==gn?this.location.historyGo(gn):this.currentUrlTree===Ze.finalUrl&&0===gn&&(this.resetState(Ze),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(Mt&&this.resetState(Ze),this.resetUrlToCurrentUrlTree())}resetState(Ze){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,Ze.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(Ze,Mt){return"computed"===this.canceledNavigationResolution?{navigationId:Ze,\u0275routerPageId:Mt}:{navigationId:Ze}}}return(Te=ze).\u0275fac=(()=>{let Je;return function(Mt){return(Je||(Je=n.xGo(Te)))(Mt||Te)}})(),Te.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"}),ze})();var Se=function(Te){return Te[Te.COMPLETE=0]="COMPLETE",Te[Te.FAILED=1]="FAILED",Te[Te.REDIRECTING=2]="REDIRECTING",Te}(Se||{});function we(Te,ze){Te.events.pipe((0,te.p)(Je=>Je instanceof br||Je instanceof Hr||Je instanceof Co||Je instanceof Ao),(0,O.T)(Je=>Je instanceof br||Je instanceof Ao?Se.COMPLETE:Je instanceof Hr&&(Je.code===ro.Redirect||Je.code===ro.SupersededByNewNavigation)?Se.REDIRECTING:Se.FAILED),(0,te.p)(Je=>Je!==Se.REDIRECTING),(0,j.s)(1)).subscribe(()=>{ze()})}function tt(Te){throw Te}const rt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ot={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let At=(()=>{var Te;class ze{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,n.WQX)(n.H3F),this.stateManager=(0,n.WQX)(re),this.options=(0,n.WQX)(Ma,{optional:!0})||{},this.pendingTasks=(0,n.WQX)(n.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,n.WQX)(ke),this.urlSerializer=(0,n.WQX)(mi),this.location=(0,n.WQX)(R.aZ),this.urlHandlingStrategy=(0,n.WQX)(Tl),this._events=new m.B7,this.errorHandler=this.options.errorHandler||tt,this.navigated=!1,this.routeReuseStrategy=(0,n.WQX)(L),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,n.WQX)(Vo,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,n.WQX)(_r,{optional:!0}),this.eventsSubscription=new I.y,this.isNgZoneEnabled=(0,n.WQX)(n.SKi)instanceof n.SKi&&n.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:Ze=>{this.console.warn(Ze)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const Ze=this.navigationTransitions.events.subscribe(Mt=>{try{const pn=this.navigationTransitions.currentTransition,gn=this.navigationTransitions.currentNavigation;if(null!==pn&&null!==gn)if(this.stateManager.handleRouterEvent(Mt,gn),Mt instanceof Hr&&Mt.code!==ro.Redirect&&Mt.code!==ro.SupersededByNewNavigation)this.navigated=!0;else if(Mt instanceof br)this.navigated=!0;else if(Mt instanceof as){const Di=this.urlHandlingStrategy.merge(Mt.url,pn.currentRawUrl),ar={info:pn.extras.info,skipLocationChange:pn.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||_(pn.source)};this.scheduleNavigation(Di,Yi,null,ar,{resolve:pn.resolve,reject:pn.reject,promise:pn.promise})}(function Ye(Te){return!(Te instanceof zo||Te instanceof as)})(Mt)&&this._events.next(Mt)}catch(pn){this.navigationTransitions.transitionAbortSubject.next(pn)}});this.eventsSubscription.add(Ze)}resetRootComponentType(Ze){this.routerState.root.component=Ze,this.navigationTransitions.rootComponentType=Ze}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Yi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((Ze,Mt)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(Ze,"popstate",Mt)},0)})}navigateToSyncWithBrowser(Ze,Mt,pn){const gn={replaceUrl:!0},Di=pn?.navigationId?pn:null;if(pn){const Xi={...pn};delete Xi.navigationId,delete Xi.\u0275routerPageId,0!==Object.keys(Xi).length&&(gn.state=Xi)}const ar=this.parseUrl(Ze);this.scheduleNavigation(ar,Mt,Di,gn)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(Ze){this.config=Ze.map(Dt),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(Ze,Mt={}){const{relativeTo:pn,queryParams:gn,fragment:Di,queryParamsHandling:ar,preserveFragment:Xi}=Mt,mo=Xi?this.currentUrlTree.fragment:Di;let ko,Jo=null;switch(ar){case"merge":Jo={...this.currentUrlTree.queryParams,...gn};break;case"preserve":Jo=this.currentUrlTree.queryParams;break;default:Jo=gn||null}null!==Jo&&(Jo=this.removeEmptyProps(Jo));try{ko=Mn(pn?pn.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof Ze[0]||!Ze[0].startsWith("/"))&&(Ze=[]),ko=this.currentUrlTree.root}return bi(ko,Ze,Jo,mo??null)}navigateByUrl(Ze,Mt={skipLocationChange:!1}){const pn=Ai(Ze)?Ze:this.parseUrl(Ze),gn=this.urlHandlingStrategy.merge(pn,this.rawUrlTree);return this.scheduleNavigation(gn,Yi,null,Mt)}navigate(Ze,Mt={skipLocationChange:!1}){return function Ke(Te){for(let ze=0;ze<Te.length;ze++)if(null==Te[ze])throw new n.wOt(4008,!1)}(Ze),this.navigateByUrl(this.createUrlTree(Ze,Mt),Mt)}serializeUrl(Ze){return this.urlSerializer.serialize(Ze)}parseUrl(Ze){try{return this.urlSerializer.parse(Ze)}catch{return this.urlSerializer.parse("/")}}isActive(Ze,Mt){let pn;if(pn=!0===Mt?{...rt}:!1===Mt?{...Ot}:Mt,Ai(Ze))return Qe(this.currentUrlTree,Ze,pn);const gn=this.parseUrl(Ze);return Qe(this.currentUrlTree,gn,pn)}removeEmptyProps(Ze){return Object.entries(Ze).reduce((Mt,[pn,gn])=>(null!=gn&&(Mt[pn]=gn),Mt),{})}scheduleNavigation(Ze,Mt,pn,gn,Di){if(this.disposed)return Promise.resolve(!1);let ar,Xi,mo;Di?(ar=Di.resolve,Xi=Di.reject,mo=Di.promise):mo=new Promise((ko,ya)=>{ar=ko,Xi=ya});const Jo=this.pendingTasks.add();return we(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Jo))}),this.navigationTransitions.handleNavigationRequest({source:Mt,restoredState:pn,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:Ze,extras:gn,resolve:ar,reject:Xi,promise:mo,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),mo.catch(ko=>Promise.reject(ko))}}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)},Te.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"}),ze})(),vt=(()=>{var Te;class ze{constructor(Ze,Mt,pn,gn,Di,ar){this.router=Ze,this.route=Mt,this.tabIndexAttribute=pn,this.renderer=gn,this.el=Di,this.locationStrategy=ar,this.href=null,this.commands=null,this.onChanges=new m.B7,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Xi=Di.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Xi||"area"===Xi,this.isAnchorElement?this.subscription=Ze.events.subscribe(mo=>{mo instanceof br&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(Ze){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",Ze)}ngOnChanges(Ze){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(Ze){null!=Ze?(this.commands=Array.isArray(Ze)?Ze:[Ze],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(Ze,Mt,pn,gn,Di){const ar=this.urlTree;return!!(null===ar||this.isAnchorElement&&(0!==Ze||Mt||pn||gn||Di||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(ar,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const Ze=this.urlTree;this.href=null!==Ze&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(Ze)):null;const Mt=null===this.href?null:(0,n.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",Mt)}applyAttributeValue(Ze,Mt){const pn=this.renderer,gn=this.el.nativeElement;null!==Mt?pn.setAttribute(gn,Ze,Mt):pn.removeAttribute(gn,Ze)}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})}}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)(n.rXU(At),n.rXU(qs),n.kS0("tabindex"),n.rXU(n.sFG),n.rXU(n.aKT),n.rXU(R.hb))},Te.\u0275dir=n.FsC({type:Te,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(Ze,Mt){1&Ze&&n.bIt("click",function(gn){return Mt.onClick(gn.button,gn.ctrlKey,gn.shiftKey,gn.altKey,gn.metaKey)}),2&Ze&&n.BMQ("target",Mt.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[n.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",n.L39],skipLocationChange:[n.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",n.L39],replaceUrl:[n.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",n.L39],routerLink:"routerLink"},standalone:!0,features:[n.GFd,n.OA$]}),ze})();class pt{}let mn=(()=>{var Te;class ze{constructor(Ze,Mt,pn,gn,Di){this.router=Ze,this.injector=pn,this.preloadingStrategy=gn,this.loader=Di}setUpPreloading(){this.subscription=this.router.events.pipe((0,te.p)(Ze=>Ze instanceof br),(0,Z.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(Ze,Mt){const pn=[];for(const gn of Mt){gn.providers&&!gn._injector&&(gn._injector=(0,n.Ol2)(gn.providers,Ze,`Route: ${gn.path}`));const Di=gn._injector??Ze,ar=gn._loadedInjector??Di;(gn.loadChildren&&!gn._loadedRoutes&&void 0===gn.canLoad||gn.loadComponent&&!gn._loadedComponent)&&pn.push(this.preloadConfig(Di,gn)),(gn.children||gn._loadedRoutes)&&pn.push(this.processRoutes(ar,gn.children??gn._loadedRoutes))}return(0,h.H)(pn).pipe((0,Ue.U)())}preloadConfig(Ze,Mt){return this.preloadingStrategy.preload(Mt,()=>{let pn;pn=Mt.loadChildren&&void 0===Mt.canLoad?this.loader.loadChildren(Ze,Mt):(0,f.of)(null);const gn=pn.pipe((0,ce.ZZ)(Di=>null===Di?(0,f.of)(void 0):(Mt._loadedRoutes=Di.routes,Mt._loadedInjector=Di.injector,this.processRoutes(Di.injector??Ze,Di.routes))));if(Mt.loadComponent&&!Mt._loadedComponent){const Di=this.loader.loadComponent(Mt);return(0,h.H)([gn,Di]).pipe((0,Ue.U)())}return gn})}}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)(n.KVO(At),n.KVO(n.Ql9),n.KVO(n.uvJ),n.KVO(pt),n.KVO(Ki))},Te.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"}),ze})();const yn=new n.nKC("");let ci=(()=>{var Te;class ze{constructor(Ze,Mt,pn,gn,Di={}){this.urlSerializer=Ze,this.transitions=Mt,this.viewportScroller=pn,this.zone=gn,this.options=Di,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,n.WQX)(n.uvJ),Di.scrollPositionRestoration||="disabled",Di.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(Ze=>{Ze instanceof Dr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=Ze.navigationTrigger,this.restoredId=Ze.restoredState?Ze.restoredState.navigationId:0):Ze instanceof br?(this.lastId=Ze.id,this.scheduleScrollEvent(Ze,this.urlSerializer.parse(Ze.urlAfterRedirects).fragment)):Ze instanceof Ao&&Ze.code===Oo.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(Ze,this.urlSerializer.parse(Ze.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(Ze=>{Ze instanceof _o&&(Ze.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(Ze.position):Ze.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(Ze.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(Ze,Mt){var pn=this;this.zone.runOutsideAngular((0,r.A)(function*(){yield new Promise(gn=>{setTimeout(()=>{gn()}),(0,n.mal)(()=>{gn()},{injector:pn.environmentInjector})}),pn.zone.run(()=>{pn.transitions.events.next(new _o(Ze,"popstate"===pn.lastSource?pn.store[pn.restoredId]:null,Mt))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(Te=ze).\u0275fac=function(Ze){n.QTQ()},Te.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac}),ze})();function Rt(Te,ze){return{\u0275kind:Te,\u0275providers:ze}}function Hn(){const Te=(0,n.WQX)(n.zZn);return ze=>{const Je=Te.get(n.o8S);if(ze!==Je.components[0])return;const Ze=Te.get(At),Mt=Te.get(Xn);1===Te.get(ai)&&Ze.initialNavigation(),Te.get(Ir,null,n.$GK.Optional)?.setUpPreloading(),Te.get(yn,null,n.$GK.Optional)?.init(),Ze.resetRootComponentType(Je.componentTypes[0]),Mt.closed||(Mt.next(),Mt.complete(),Mt.unsubscribe())}}const Xn=new n.nKC("",{factory:()=>new m.B7}),ai=new n.nKC("",{providedIn:"root",factory:()=>1}),Ir=new n.nKC("");function Do(Te){return Rt(0,[{provide:Ir,useExisting:mn},{provide:pt,useExisting:Te}])}function aa(Te){return Rt(9,[{provide:Fl,useValue:Va},{provide:na,useValue:{skipNextTransition:!!Te?.skipInitialTransition,...Te}}])}const $r=new n.nKC("ROUTER_FORROOT_GUARD"),ma=[R.aZ,{provide:mi,useClass:Bi},At,Qr,{provide:qs,useFactory:function Bt(Te){return Te.routerState.root},deps:[At]},Ki,[]];let oo=(()=>{var Te;class ze{constructor(Ze){}static forRoot(Ze,Mt){return{ngModule:ze,providers:[ma,[],{provide:Vo,multi:!0,useValue:Ze},{provide:$r,useFactory:va,deps:[[At,new n.Xx1,new n.kdw]]},{provide:Ma,useValue:Mt||{}},Mt?.useHash?{provide:R.hb,useClass:R.fw}:{provide:R.hb,useClass:R.Sm},{provide:yn,useFactory:()=>{const Te=(0,n.WQX)(R.Xr),ze=(0,n.WQX)(n.SKi),Je=(0,n.WQX)(Ma),Ze=(0,n.WQX)(ke),Mt=(0,n.WQX)(mi);return Je.scrollOffset&&Te.setOffset(Je.scrollOffset),new ci(Mt,Ze,Te,ze,Je)}},Mt?.preloadingStrategy?Do(Mt.preloadingStrategy).\u0275providers:[],Mt?.initialNavigation?Yo(Mt):[],Mt?.bindToComponentInputs?Rt(8,[$s,{provide:_r,useExisting:$s}]).\u0275providers:[],Mt?.enableViewTransitions?aa().\u0275providers:[],[{provide:_a,useFactory:Hn},{provide:n.iLQ,multi:!0,useExisting:_a}]]}}static forChild(Ze){return{ngModule:ze,providers:[{provide:Vo,multi:!0,useValue:Ze}]}}}return(Te=ze).\u0275fac=function(Ze){return new(Ze||Te)(n.KVO($r,8))},Te.\u0275mod=n.$C({type:Te}),Te.\u0275inj=n.G2t({}),ze})();function va(Te){return"guarded"}function Yo(Te){return["disabled"===Te.initialNavigation?Rt(3,[{provide:n.hnV,multi:!0,useFactory:()=>{const ze=(0,n.WQX)(At);return()=>{ze.setUpLocationChangeListener()}}},{provide:ai,useValue:2}]).\u0275providers:[],"enabledBlocking"===Te.initialNavigation?Rt(2,[{provide:ai,useValue:0},{provide:n.hnV,multi:!0,deps:[n.zZn],useFactory:ze=>{const Je=ze.get(R.hj,Promise.resolve());return()=>Je.then(()=>new Promise(Ze=>{const Mt=ze.get(At),pn=ze.get(Xn);we(Mt,()=>{Ze(!0)}),ze.get(ke).afterPreactivation=()=>(Ze(!0),pn.closed?(0,f.of)(void 0):pn),Mt.initialNavigation()}))}}]).\u0275providers:[]]}const _a=new n.nKC("")},65240:(je,z,c)=>{"use strict";function r(xe){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Re){return typeof Re}:function(Re){return Re&&"function"==typeof Symbol&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re})(xe)}function h(xe,Re,Ue){return(Re=function v(xe){var Re=function n(xe,Re){if("object"!=r(xe)||!xe)return xe;var Ue=xe[Symbol.toPrimitive];if(void 0!==Ue){var ee=Ue.call(xe,Re||"default");if("object"!=r(ee))return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Re?String:Number)(xe)}(xe,"string");return"symbol"==r(Re)?Re:String(Re)}(Re))in xe?Object.defineProperty(xe,Re,{value:Ue,enumerable:!0,configurable:!0,writable:!0}):xe[Re]=Ue,xe}c.d(z,{Wr:()=>I,h:()=>dt,D9:()=>ot,c$:()=>ge});var f=c(58527),A=c(43848),M=c(39595),T=c(93181),E=c(82e3),y=c(63997),S=c(65706),l=c(55833),s=c(83915),u=c(79539),m=c(72147);class I{}let R=(()=>{var xe;class Re extends I{getTranslation(ee){return(0,A.of)({})}}return xe=Re,h(Re,"\u0275fac",(()=>{let Ue;return function(W){return(Ue||(Ue=f.xGo(xe)))(W||xe)}})()),h(Re,"\u0275prov",f.jDH({token:xe,factory:xe.\u0275fac})),Re})();class O{}let Y=(()=>{var xe;class Re{handle(ee){return ee.key}}return xe=Re,h(Re,"\u0275fac",function(ee){return new(ee||xe)}),h(Re,"\u0275prov",f.jDH({token:xe,factory:xe.\u0275fac})),Re})();function j(xe,Re){if(xe===Re)return!0;if(null===xe||null===Re)return!1;if(xe!=xe&&Re!=Re)return!0;let W,Pe,le,Ue=typeof xe;if(Ue==typeof Re&&"object"==Ue){if(!Array.isArray(xe)){if(Array.isArray(Re))return!1;for(Pe in le=Object.create(null),xe){if(!j(xe[Pe],Re[Pe]))return!1;le[Pe]=!0}for(Pe in Re)if(!(Pe in le)&&typeof Re[Pe]<"u")return!1;return!0}if(!Array.isArray(Re))return!1;if((W=xe.length)==Re.length){for(Pe=0;Pe<W;Pe++)if(!j(xe[Pe],Re[Pe]))return!1;return!0}}return!1}function fe(xe){return typeof xe<"u"&&null!==xe}function te(xe){return xe&&"object"==typeof xe&&!Array.isArray(xe)}function ce(xe,Re){let Ue=Object.assign({},xe);return te(xe)&&te(Re)&&Object.keys(Re).forEach(ee=>{te(Re[ee])?ee in xe?Ue[ee]=ce(xe[ee],Re[ee]):Object.assign(Ue,{[ee]:Re[ee]}):Object.assign(Ue,{[ee]:Re[ee]})}),Ue}class H{}let Z=(()=>{var xe;class Re extends H{constructor(...ee){super(...ee),h(this,"templateMatcher",/{{\s?([^{}\s]*)\s?}}/g)}interpolate(ee,W){let Pe;return Pe="string"==typeof ee?this.interpolateString(ee,W):"function"==typeof ee?this.interpolateFunction(ee,W):ee,Pe}getValue(ee,W){let Pe="string"==typeof W?W.split("."):[W];W="";do{W+=Pe.shift(),!fe(ee)||!fe(ee[W])||"object"!=typeof ee[W]&&Pe.length?Pe.length?W+=".":ee=void 0:(ee=ee[W],W="")}while(Pe.length);return ee}interpolateFunction(ee,W){return ee(W)}interpolateString(ee,W){return W?ee.replace(this.templateMatcher,(Pe,le)=>{let oe=this.getValue(W,le);return fe(oe)?oe:Pe}):ee}}return xe=Re,h(Re,"\u0275fac",(()=>{let Ue;return function(W){return(Ue||(Ue=f.xGo(xe)))(W||xe)}})()),h(Re,"\u0275prov",f.jDH({token:xe,factory:xe.\u0275fac})),Re})();class X{}let ue=(()=>{var xe;class Re extends X{compile(ee,W){return ee}compileTranslations(ee,W){return ee}}return xe=Re,h(Re,"\u0275fac",(()=>{let Ue;return function(W){return(Ue||(Ue=f.xGo(xe)))(W||xe)}})()),h(Re,"\u0275prov",f.jDH({token:xe,factory:xe.\u0275fac})),Re})();class Me{constructor(){h(this,"defaultLang",void 0),h(this,"currentLang",this.defaultLang),h(this,"translations",{}),h(this,"langs",[]),h(this,"onTranslationChange",new f.bkB),h(this,"onLangChange",new f.bkB),h(this,"onDefaultLangChange",new f.bkB)}}const be=new f.nKC("USE_STORE"),Q=new f.nKC("USE_DEFAULT_LANG"),ne=new f.nKC("DEFAULT_LANGUAGE"),Ge=new f.nKC("USE_EXTEND");let ge=(()=>{var xe;class Re{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(ee){this.isolate?this._defaultLang=ee:this.store.defaultLang=ee}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(ee){this.isolate?this._currentLang=ee:this.store.currentLang=ee}get langs(){return this.isolate?this._langs:this.store.langs}set langs(ee){this.isolate?this._langs=ee:this.store.langs=ee}get translations(){return this.isolate?this._translations:this.store.translations}set translations(ee){this.isolate?this._translations=ee:this.store.translations=ee}constructor(ee,W,Pe,le,oe,Le=!0,Oe=!1,ye=!1,Ie){h(this,"store",void 0),h(this,"currentLoader",void 0),h(this,"compiler",void 0),h(this,"parser",void 0),h(this,"missingTranslationHandler",void 0),h(this,"useDefaultLang",void 0),h(this,"isolate",void 0),h(this,"extend",void 0),h(this,"loadingTranslations",void 0),h(this,"pending",!1),h(this,"_onTranslationChange",new f.bkB),h(this,"_onLangChange",new f.bkB),h(this,"_onDefaultLangChange",new f.bkB),h(this,"_defaultLang",void 0),h(this,"_currentLang",void 0),h(this,"_langs",[]),h(this,"_translations",{}),h(this,"_translationRequests",{}),this.store=ee,this.currentLoader=W,this.compiler=Pe,this.parser=le,this.missingTranslationHandler=oe,this.useDefaultLang=Le,this.isolate=Oe,this.extend=ye,Ie&&this.setDefaultLang(Ie)}setDefaultLang(ee){if(ee===this.defaultLang)return;let W=this.retrieveTranslations(ee);typeof W<"u"?(null==this.defaultLang&&(this.defaultLang=ee),W.pipe((0,S.s)(1)).subscribe(Pe=>{this.changeDefaultLang(ee)})):this.changeDefaultLang(ee)}getDefaultLang(){return this.defaultLang}use(ee){if(ee===this.currentLang)return(0,A.of)(this.translations[ee]);let W=this.retrieveTranslations(ee);return typeof W<"u"?(this.currentLang||(this.currentLang=ee),W.pipe((0,S.s)(1)).subscribe(Pe=>{this.changeLang(ee)}),W):(this.changeLang(ee),(0,A.of)(this.translations[ee]))}retrieveTranslations(ee){let W;return(typeof this.translations[ee]>"u"||this.extend)&&(this._translationRequests[ee]=this._translationRequests[ee]||this.getTranslation(ee),W=this._translationRequests[ee]),W}getTranslation(ee){this.pending=!0;const W=this.currentLoader.getTranslation(ee).pipe((0,l.t)(1),(0,S.s)(1));return this.loadingTranslations=W.pipe((0,s.T)(Pe=>this.compiler.compileTranslations(Pe,ee)),(0,l.t)(1),(0,S.s)(1)),this.loadingTranslations.subscribe({next:Pe=>{this.translations[ee]=this.extend&&this.translations[ee]?{...Pe,...this.translations[ee]}:Pe,this.updateLangs(),this.pending=!1},error:Pe=>{this.pending=!1}}),W}setTranslation(ee,W,Pe=!1){W=this.compiler.compileTranslations(W,ee),this.translations[ee]=(Pe||this.extend)&&this.translations[ee]?ce(this.translations[ee],W):W,this.updateLangs(),this.onTranslationChange.emit({lang:ee,translations:this.translations[ee]})}getLangs(){return this.langs}addLangs(ee){ee.forEach(W=>{-1===this.langs.indexOf(W)&&this.langs.push(W)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(ee,W,Pe){let le;if(W instanceof Array){let oe={},Le=!1;for(let Oe of W)oe[Oe]=this.getParsedResult(ee,Oe,Pe),(0,M.A)(oe[Oe])&&(Le=!0);if(Le){const Oe=W.map(ye=>(0,M.A)(oe[ye])?oe[ye]:(0,A.of)(oe[ye]));return(0,T.p)(Oe).pipe((0,s.T)(ye=>{let Ie={};return ye.forEach((at,K)=>{Ie[W[K]]=at}),Ie}))}return oe}if(ee&&(le=this.parser.interpolate(this.parser.getValue(ee,W),Pe)),typeof le>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(le=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],W),Pe)),typeof le>"u"){let oe={key:W,translateService:this};typeof Pe<"u"&&(oe.interpolateParams=Pe),le=this.missingTranslationHandler.handle(oe)}return typeof le<"u"?le:W}get(ee,W){if(!fe(ee)||!ee.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,u.H)(Pe=>(Pe=this.getParsedResult(Pe,ee,W),(0,M.A)(Pe)?Pe:(0,A.of)(Pe))));{let Pe=this.getParsedResult(this.translations[this.currentLang],ee,W);return(0,M.A)(Pe)?Pe:(0,A.of)(Pe)}}getStreamOnTranslationChange(ee,W){if(!fe(ee)||!ee.length)throw new Error('Parameter "key" required');return(0,E.x)((0,y.v)(()=>this.get(ee,W)),this.onTranslationChange.pipe((0,m.n)(Pe=>{const le=this.getParsedResult(Pe.translations,ee,W);return"function"==typeof le.subscribe?le:(0,A.of)(le)})))}stream(ee,W){if(!fe(ee)||!ee.length)throw new Error('Parameter "key" required');return(0,E.x)((0,y.v)(()=>this.get(ee,W)),this.onLangChange.pipe((0,m.n)(Pe=>{const le=this.getParsedResult(Pe.translations,ee,W);return(0,M.A)(le)?le:(0,A.of)(le)})))}instant(ee,W){if(!fe(ee)||!ee.length)throw new Error('Parameter "key" required');let Pe=this.getParsedResult(this.translations[this.currentLang],ee,W);if((0,M.A)(Pe)){if(ee instanceof Array){let le={};return ee.forEach((oe,Le)=>{le[ee[Le]]=ee[Le]}),le}return ee}return Pe}set(ee,W,Pe=this.currentLang){this.translations[Pe][ee]=this.compiler.compile(W,Pe),this.updateLangs(),this.onTranslationChange.emit({lang:Pe,translations:this.translations[Pe]})}changeLang(ee){this.currentLang=ee,this.onLangChange.emit({lang:ee,translations:this.translations[ee]}),null==this.defaultLang&&this.changeDefaultLang(ee)}changeDefaultLang(ee){this.defaultLang=ee,this.onDefaultLangChange.emit({lang:ee,translations:this.translations[ee]})}reloadLang(ee){return this.resetLang(ee),this.getTranslation(ee)}resetLang(ee){this._translationRequests[ee]=void 0,this.translations[ee]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let ee=window.navigator.languages?window.navigator.languages[0]:null;return ee=ee||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof ee>"u"?void 0:(-1!==ee.indexOf("-")&&(ee=ee.split("-")[0]),-1!==ee.indexOf("_")&&(ee=ee.split("_")[0]),ee)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let ee=window.navigator.languages?window.navigator.languages[0]:null;return ee=ee||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,ee}}return xe=Re,h(Re,"\u0275fac",function(ee){return new(ee||xe)(f.KVO(Me),f.KVO(I),f.KVO(X),f.KVO(H),f.KVO(O),f.KVO(Q),f.KVO(be),f.KVO(Ge),f.KVO(ne))}),h(Re,"\u0275prov",f.jDH({token:xe,factory:xe.\u0275fac})),Re})(),ot=(()=>{var xe;class Re{constructor(ee,W){h(this,"translate",void 0),h(this,"_ref",void 0),h(this,"value",""),h(this,"lastKey",null),h(this,"lastParams",[]),h(this,"onTranslationChange",void 0),h(this,"onLangChange",void 0),h(this,"onDefaultLangChange",void 0),this.translate=ee,this._ref=W}updateValue(ee,W,Pe){let le=oe=>{this.value=void 0!==oe?oe:ee,this.lastKey=ee,this._ref.markForCheck()};if(Pe){let oe=this.translate.getParsedResult(Pe,ee,W);(0,M.A)(oe.subscribe)?oe.subscribe(le):le(oe)}this.translate.get(ee,W).subscribe(le)}transform(ee,...W){if(!ee||!ee.length)return ee;if(j(ee,this.lastKey)&&j(W,this.lastParams))return this.value;let Pe;if(fe(W[0])&&W.length)if("string"==typeof W[0]&&W[0].length){let le=W[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{Pe=JSON.parse(le)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${W[0]}`)}}else"object"==typeof W[0]&&!Array.isArray(W[0])&&(Pe=W[0]);return this.lastKey=ee,this.lastParams=W,this.updateValue(ee,Pe),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(le=>{this.lastKey&&le.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(ee,Pe,le.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(le=>{this.lastKey&&(this.lastKey=null,this.updateValue(ee,Pe,le.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(ee,Pe))})),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()}}return xe=Re,h(Re,"\u0275fac",function(ee){return new(ee||xe)(f.rXU(ge,16),f.rXU(f.gRc,16))}),h(Re,"\u0275pipe",f.EJ8({name:"translate",type:xe,pure:!1})),h(Re,"\u0275prov",f.jDH({token:xe,factory:xe.\u0275fac})),Re})(),dt=(()=>{var xe;class Re{static forRoot(ee={}){return{ngModule:Re,providers:[ee.loader||{provide:I,useClass:R},ee.compiler||{provide:X,useClass:ue},ee.parser||{provide:H,useClass:Z},ee.missingTranslationHandler||{provide:O,useClass:Y},Me,{provide:be,useValue:ee.isolate},{provide:Q,useValue:ee.useDefaultLang},{provide:Ge,useValue:ee.extend},{provide:ne,useValue:ee.defaultLanguage},ge]}}static forChild(ee={}){return{ngModule:Re,providers:[ee.loader||{provide:I,useClass:R},ee.compiler||{provide:X,useClass:ue},ee.parser||{provide:H,useClass:Z},ee.missingTranslationHandler||{provide:O,useClass:Y},{provide:be,useValue:ee.isolate},{provide:Q,useValue:ee.useDefaultLang},{provide:Ge,useValue:ee.extend},{provide:ne,useValue:ee.defaultLanguage},ge]}}}return xe=Re,h(Re,"\u0275fac",function(ee){return new(ee||xe)}),h(Re,"\u0275mod",f.$C({type:xe})),h(Re,"\u0275inj",f.G2t({})),Re})()},81248:je=>{"use strict";je.exports=JSON.parse('{"components/menu-item":"Verbose"}')}},je=>{je(je.s=29541)}]);
// SIG // Begin signature block
// SIG // MIImNgYJKoZIhvcNAQcCoIImJzCCJiMCAQExDzANBglg
// SIG // hkgBZQMEAgEFADB3BgorBgEEAYI3AgEEoGkwZzAyBgor
// SIG // BgEEAYI3AgEeMCQCAQEEEBDgyQbOONQRoqMAEEvTUJAC
// SIG // AQACAQACAQACAQACAQAwMTANBglghkgBZQMEAgEFAAQg
// SIG // zcq1bDMmjwuuWfxJJXroUaXAwhghn6/jTmIOjnoB1oOg
// 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 // eBMWDQ5e0t8ADV8KGzGCF9owghfWAgEBMH0waTELMAkG
// SIG // A1UEBhMCVVMxFzAVBgNVBAoTDkRpZ2lDZXJ0LCBJbmMu
// SIG // MUEwPwYDVQQDEzhEaWdpQ2VydCBUcnVzdGVkIEc0IENv
// SIG // ZGUgU2lnbmluZyBSU0E0MDk2IFNIQTM4NCAyMDIxIENB
// SIG // MQIQCZfFbKpZBVOU2anNuL7rVjANBglghkgBZQMEAgEF
// SIG // AKB8MBAGCisGAQQBgjcCAQwxAjAAMBkGCSqGSIb3DQEJ
// SIG // AzEMBgorBgEEAYI3AgEEMBwGCisGAQQBgjcCAQsxDjAM
// SIG // BgorBgEEAYI3AgEVMC8GCSqGSIb3DQEJBDEiBCDsyRT9
// SIG // pGRFcoUZiY+uUrUTbWM30YlivzFyWelCb5X+VDANBgkq
// SIG // hkiG9w0BAQEFAASCAYBUy0paEh4NedISNSHhqIdoS0FM
// SIG // rersSVWbXcMBPxV3rQIHGMBK16CgBKBHfxQiWbecJqnw
// SIG // 98K4yRoHeI1ldBliXUTUpFngWif55nJQDm3sXoHYJrND
// SIG // ImKsg4+/yEgN6lDHmyPDTW3LVH1JOH9/Bjv7KmlCRsd3
// SIG // 3g/IX02Ow1dgLa0kbuu98nsE/YYRQ5/qpxHcNdg08GYf
// SIG // d7hg8y4QW2WWPQRI2z1MHHSX2J2BFRLE/lWkeXPHgXVa
// SIG // gj0rdbiD1Y5MLe2/WUd/tcOZlFUJgdoXWy8bu1Xo50SH
// SIG // smwArqD5J0YiDI8Rnk7gC2kSljRST3r2xKQ798YDIMf0
// SIG // a5iD+/DuR9H2+w6Bavetp91dZ4cjFGc77bYPp7B6jNiq
// SIG // nsodHYXo1HJzmuBDxyURg2TfsdQ1g2tg2NMFEGVUVi6C
// SIG // g6JladtVEOYjO8uCqDfgXN1+OOXQ0jf9ObptppgoxYSz
// SIG // HSm6J+Wu2izM2rduM/YVJZTOUE0UCjuBvUvXi6oEs3qY
// SIG // X02hghUwMIIVLAYKKwYBBAGCNwMDATGCFRwwghUYBgkq
// SIG // hkiG9w0BBwKgghUJMIIVBQIBAzENMAsGCWCGSAFlAwQC
// SIG // ATCB9AYLKoZIhvcNAQkQAQSggeQEgeEwgd4CAQEGCmCG
// SIG // SAGG+mwKAwUwMTANBglghkgBZQMEAgEFAAQgYMttYX2d
// SIG // t+7qO83JtGTlBc4Hmy/D8CAeY/qS3cyMCA8CCQC7me5c
// SIG // XfSoGxgPMjAyNDExMDgwMDI4MTNaMAMCAQGgeaR3MHUx
// SIG // CzAJBgNVBAYTAkNBMRAwDgYDVQQIEwdPbnRhcmlvMQ8w
// SIG // DQYDVQQHEwZPdHRhd2ExFjAUBgNVBAoTDUVudHJ1c3Qs
// SIG // IEluYy4xKzApBgNVBAMTIkVudHJ1c3QgVGltZXN0YW1w
// SIG // IEF1dGhvcml0eSAtIFRTQTGggg9YMIIEKjCCAxKgAwIB
// SIG // AgIEOGPe+DANBgkqhkiG9w0BAQUFADCBtDEUMBIGA1UE
// SIG // ChMLRW50cnVzdC5uZXQxQDA+BgNVBAsUN3d3dy5lbnRy
// SIG // dXN0Lm5ldC9DUFNfMjA0OCBpbmNvcnAuIGJ5IHJlZi4g
// SIG // KGxpbWl0cyBsaWFiLikxJTAjBgNVBAsTHChjKSAxOTk5
// SIG // IEVudHJ1c3QubmV0IExpbWl0ZWQxMzAxBgNVBAMTKkVu
// SIG // dHJ1c3QubmV0IENlcnRpZmljYXRpb24gQXV0aG9yaXR5
// SIG // ICgyMDQ4KTAeFw05OTEyMjQxNzUwNTFaFw0yOTA3MjQx
// SIG // NDE1MTJaMIG0MRQwEgYDVQQKEwtFbnRydXN0Lm5ldDFA
// SIG // MD4GA1UECxQ3d3d3LmVudHJ1c3QubmV0L0NQU18yMDQ4
// SIG // IGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxpYWIuKTEl
// SIG // MCMGA1UECxMcKGMpIDE5OTkgRW50cnVzdC5uZXQgTGlt
// SIG // aXRlZDEzMDEGA1UEAxMqRW50cnVzdC5uZXQgQ2VydGlm
// SIG // aWNhdGlvbiBBdXRob3JpdHkgKDIwNDgpMIIBIjANBgkq
// SIG // hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArU1LqRKGsuqj
// SIG // IAcVFmQqK0vRvwtKTY7tgHalZ7d4QMBzQshowNtTK91e
// SIG // uHaYNZOLGp18EzoOH1u3Hs/lJBQesYGpjX24zGtLA/EC
// SIG // DNyrpUAkAH90lKGdCCmziAv1h3edVc3kw37XamSrhRSG
// SIG // lVuXMlBvPci6Zgzj/L24ScF2iUkZ/cCovYmjZy/Gn7xx
// SIG // GWC4LeksyZB2ZnuU4q941mVTXTzWnLLPKQP5L6RQstRI
// SIG // zgUyVYr9smRMDuSYB3Xbf9+5CFVghTAp+XtIpGmG4zU/
// SIG // HoZdenoVve8AjhUiVBcAkCaTvA5JaJG/+EfTnZVCwQ5N
// SIG // 328mz8MYIWJmQ3DW1cAH4QIDAQABo0IwQDAOBgNVHQ8B
// SIG // Af8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E
// SIG // FgQUVeSB0RGAvtiJuQijMfmhJAkWuXAwDQYJKoZIhvcN
// SIG // AQEFBQADggEBADubj1abMOdTmXx6eadNl9cZlZD7Bh/K
// SIG // M3xGY4+WZiT6QBshJ8rmcnPyT/4xmf3IDExoU8aAghOY
// SIG // +rat2l098c5u9hURlIIM7j+VrxGrD9cv3h8Dj1csHsm7
// SIG // mhpElesYT6YfzX1XEC+bBAlahLVu2B064dae0Wx5Xnkc
// SIG // FMXj0EyTO2U87d89vqbllRrDtRnDvV5bu/8j72gZyxKT
// SIG // J1wDLW8w0B62GqzeWvfRqqgnpv55gcR5mTNXuhKwqeBC
// SIG // bJPKVt7+bYQLCIt+jerXmCHG8+c8eS9enNFMFY3h7CI3
// SIG // zJpDC5fcgJCNs2ebb0gIFVbPv/ErfF6adulZkMV8gzUR
// SIG // ZVEwggUTMIID+6ADAgECAgxY2hP/AAAAAFHODfcwDQYJ
// SIG // KoZIhvcNAQELBQAwgbQxFDASBgNVBAoTC0VudHJ1c3Qu
// SIG // bmV0MUAwPgYDVQQLFDd3d3cuZW50cnVzdC5uZXQvQ1BT
// SIG // XzIwNDggaW5jb3JwLiBieSByZWYuIChsaW1pdHMgbGlh
// SIG // Yi4pMSUwIwYDVQQLExwoYykgMTk5OSBFbnRydXN0Lm5l
// SIG // dCBMaW1pdGVkMTMwMQYDVQQDEypFbnRydXN0Lm5ldCBD
// SIG // ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAoMjA0OCkwHhcN
// SIG // MTUwNzIyMTkwMjU0WhcNMjkwNjIyMTkzMjU0WjCBsjEL
// SIG // MAkGA1UEBhMCVVMxFjAUBgNVBAoTDUVudHJ1c3QsIElu
// SIG // Yy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQv
// SIG // bGVnYWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDE1IEVu
// SIG // dHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ug
// SIG // b25seTEmMCQGA1UEAxMdRW50cnVzdCBUaW1lc3RhbXBp
// SIG // bmcgQ0EgLSBUUzEwggEiMA0GCSqGSIb3DQEBAQUAA4IB
// SIG // DwAwggEKAoIBAQDZI+YUpOh8S4VxWPv4geZyi11Gw4gA
// SIG // HzjQiuHWblYw5a/aZFB9whM5+71mtNqE+4PQKB/Lduhg
// SIG // UGmb885PE+LBPsHfEssyo/heRCIOzDrpjUm5YHTI3lQ9
// SIG // QV5DXyhGqaa3yhArIrxbTVuMF2UShv0sd9XFoIzKwoPg
// SIG // R1d853CuYkUnMRgK1MCkGFVS92DGBEuz3WgybhAfNBG4
// SIG // Enhk8e6p4PfjsSKPNFply4r04UVQdN+Tl6Y05tBMO583
// SIG // SVKnU06fLmdc7Zb8pb90UYjjqo692bEvX1AwFvRRYCJr
// SIG // mcv/4VQ7uftEOKUIOSObaUf6PMTQ56rfRrLs8ooZrCmy
// SIG // OJV1AgMBAAGjggEjMIIBHzASBgNVHRMBAf8ECDAGAQH/
// SIG // AgEAMA4GA1UdDwEB/wQEAwIBBjA7BgNVHSAENDAyMDAG
// SIG // BFUdIAAwKDAmBggrBgEFBQcCARYaaHR0cDovL3d3dy5l
// SIG // bnRydXN0Lm5ldC9ycGEwMwYIKwYBBQUHAQEEJzAlMCMG
// SIG // CCsGAQUFBzABhhdodHRwOi8vb2NzcC5lbnRydXN0Lm5l
// SIG // dDAyBgNVHR8EKzApMCegJaAjhiFodHRwOi8vY3JsLmVu
// SIG // dHJ1c3QubmV0LzIwNDhjYS5jcmwwEwYDVR0lBAwwCgYI
// SIG // KwYBBQUHAwgwHQYDVR0OBBYEFMPCcdJ712gFrjs5mzQl
// SIG // DGIDx1doMB8GA1UdIwQYMBaAFFXkgdERgL7YibkIozH5
// SIG // oSQJFrlwMA0GCSqGSIb3DQEBCwUAA4IBAQAdJOeadFuq
// SIG // cPyxDjFF1ywAf2Y6K6CaNKqsY22J+Z/fDXf9JCP8T5y3
// SIG // b4/z9B+2wf3WHMSMiGbBY426V3fTuBoeyFGtzGA2Godq
// SIG // KOoRZd7MPCyMdLfoUEPTzCjoFWwRKp8UlSnJBVe1Zzbo
// SIG // PKmD70HBIRbTfvctEUdmdmCCEmmMdlVzD98vS13pbCP4
// SIG // B/a1fdZpRZxYfWEu/HhLQ06JkUZELKBTqEWh9hZYu5ET
// SIG // 8kvF3wvA564per1Fs+dwMOc0jut69tO10d5rE5lGs4vS
// SIG // TZN1tfFvv9wAKMIlv7zno2U07D8NHZeM+qqIIqQYNdsF
// SIG // jnbjEMgpj2PQrqwY2drEn1ESMIIGDzCCBPegAwIBAgIQ
// SIG // B9cTU9olYbRh6ZBHikzOBDANBgkqhkiG9w0BAQsFADCB
// SIG // sjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUVudHJ1c3Qs
// SIG // IEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5u
// SIG // ZXQvbGVnYWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDE1
// SIG // IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1
// SIG // c2Ugb25seTEmMCQGA1UEAxMdRW50cnVzdCBUaW1lc3Rh
// SIG // bXBpbmcgQ0EgLSBUUzEwHhcNMjQwMTE5MTY0NjI4WhcN
// SIG // MjkwNjAxMDAwMDAwWjB1MQswCQYDVQQGEwJDQTEQMA4G
// SIG // A1UECBMHT250YXJpbzEPMA0GA1UEBxMGT3R0YXdhMRYw
// SIG // FAYDVQQKEw1FbnRydXN0LCBJbmMuMSswKQYDVQQDEyJF
// SIG // bnRydXN0IFRpbWVzdGFtcCBBdXRob3JpdHkgLSBUU0Ex
// SIG // MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA
// SIG // x5I4QTn/oD9fTU2KlzHjm4fDeAVpNgtSs6qDXbDSvX6+
// SIG // g6BfXp6X89s1F6n52xVifMr2xck0FeIRpZKxLuBpVF0O
// SIG // K75VxgGMhWOySS01X+VOQ8RxC6S0HjRN/0XI/k/hMOjp
// SIG // ZWxrZdO+1Cxo0K0Em2q50FT7NQCQMcbYaGpdr+p+0Pmd
// SIG // E+/OnWNkQnIHhfsGMYvjnQum1TLbUqVODDzBwJrRfwJ3
// SIG // YxPN8z08HgJLNobgBLR4d+SbL+GJKt6CXevkGtyNunuk
// SIG // n4+ObHXrA+CABL+xCRz6YXqzm4G3C8kTCnjtCPbMpl9C
// SIG // RxI6R3h2/rzamT9k6zdeKt9S4pmw/e+EypE6orCnsbZW
// SIG // HD9E+H6R73imJP7eKR749fdRf7Z4LYe0vQC5xh7g6OET
// SIG // 7u5f117upHx1YM6hNZBYwqu1SEN76cd3iYmLxqGMaZfP
// SIG // bnpD/vRf+2PlJOrf4BCQpxKQzButCIrRjYUgom6hixYn
// SIG // lTHTz24DKZ9EwicIrLf0iU035CWJWlMsUw2CFHPG7MWw
// SIG // 2YfYmxLuJjpfly9wyTB4oVpKbdJISg9Van72W+KHX9oR
// SIG // G3e+Gl73SAqYcQx9riqBfbKekWAO0dlqMBKK5Jrspktv
// SIG // hQZJEA6FSD8u5hTPWuNPOCqv1zEAvCyWlZKtc896HFHL
// SIG // /i3pwC5YDgoVZcuIezIbYA0CAwEAAaOCAVswggFXMAwG
// SIG // A1UdEwEB/wQCMAAwHQYDVR0OBBYEFENoH2+fItD4Xwn3
// SIG // /LjlI8aOB0KSMB8GA1UdIwQYMBaAFMPCcdJ712gFrjs5
// SIG // mzQlDGIDx1doMGgGCCsGAQUFBwEBBFwwWjAjBggrBgEF
// SIG // BQcwAYYXaHR0cDovL29jc3AuZW50cnVzdC5uZXQwMwYI
// SIG // KwYBBQUHMAKGJ2h0dHA6Ly9haWEuZW50cnVzdC5uZXQv
// SIG // dHMxLWNoYWluMjU2LmNlcjAxBgNVHR8EKjAoMCagJKAi
// SIG // hiBodHRwOi8vY3JsLmVudHJ1c3QubmV0L3RzMWNhLmNy
// SIG // bDAOBgNVHQ8BAf8EBAMCB4AwFgYDVR0lAQH/BAwwCgYI
// SIG // KwYBBQUHAwgwQgYDVR0gBDswOTA3BgpghkgBhvpsCgEH
// SIG // MCkwJwYIKwYBBQUHAgEWG2h0dHBzOi8vd3d3LmVudHJ1
// SIG // c3QubmV0L3JwYTANBgkqhkiG9w0BAQsFAAOCAQEAvrDc
// SIG // /bz6Zqf8Ix3z2Vdi9CTfHS/5WMvKzAx9z26H9W6CWive
// SIG // 41/GzhrkCK+OBAEe/wL4BVO4qGKFe5mrRXvZqrEXg9Ep
// SIG // fpMh6DaIQiE4+/sNgcnDiozKKl5mr/mc9I18Evt6bTqK
// SIG // sAD3O3ClD7u1U6nhxikm6twSSi9dWgS4quOHC33Ingb+
// SIG // aWZLjqf0vjDJpeKQoaiBDT5HIZJQXTLk8lbPqZQhuzDC
// SIG // dxgRmiau8eI+L/w/iTM3XZTn3RrF5cxmbPoAzpbigO34
// SIG // LKfFaBNpfARErQjV+avJrRdm1S8LV/Cbz1weqw0nRmn+
// SIG // qLcFJY7gshUzSl+6nIvQKAk8tYWy4TGCBJwwggSYAgEB
// SIG // MIHHMIGyMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNRW50
// SIG // cnVzdCwgSW5jLjEoMCYGA1UECxMfU2VlIHd3dy5lbnRy
// SIG // dXN0Lm5ldC9sZWdhbC10ZXJtczE5MDcGA1UECxMwKGMp
// SIG // IDIwMTUgRW50cnVzdCwgSW5jLiAtIGZvciBhdXRob3Jp
// SIG // emVkIHVzZSBvbmx5MSYwJAYDVQQDEx1FbnRydXN0IFRp
// SIG // bWVzdGFtcGluZyBDQSAtIFRTMQIQB9cTU9olYbRh6ZBH
// SIG // ikzOBDALBglghkgBZQMEAgGgggGnMBoGCSqGSIb3DQEJ
// SIG // AzENBgsqhkiG9w0BCRABBDAcBgkqhkiG9w0BCQUxDxcN
// SIG // MjQxMTA4MDAyODEzWjArBgkqhkiG9w0BCTQxHjAcMAsG
// SIG // CWCGSAFlAwQCAaENBgkqhkiG9w0BAQsFADAvBgkqhkiG
// SIG // 9w0BCQQxIgQgNOB0VwyCHiJwdD1ApYYvqeUjimAK6jWf
// SIG // /rizAaw23nswggELBgsqhkiG9w0BCRACLzGB+zCB+DCB
// SIG // 9TCB8gQgKEn3MRjXQUUFYXPNPuzLvVNLXg7w+gYWjbDi
// SIG // c0kD7o8wgc0wgbikgbUwgbIxCzAJBgNVBAYTAlVTMRYw
// SIG // FAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9T
// SIG // ZWUgd3d3LmVudHJ1c3QubmV0L2xlZ2FsLXRlcm1zMTkw
// SIG // NwYDVQQLEzAoYykgMjAxNSBFbnRydXN0LCBJbmMuIC0g
// SIG // Zm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxJjAkBgNVBAMT
// SIG // HUVudHJ1c3QgVGltZXN0YW1waW5nIENBIC0gVFMxAhAH
// SIG // 1xNT2iVhtGHpkEeKTM4EMA0GCSqGSIb3DQEBCwUABIIC
// SIG // AJtpAEbJAt1Y69+O2xR1pP4XZhoJhIA+FrBGFS5elzEG
// SIG // /4ZYl3BiKyS4+5E9IoMFZgPyZAIXxHZyE7A7CQoYxsjt
// SIG // oPI5wbua4OaT+eWuZkVwzZxczySxv1AoUsyrmtAafEjx
// SIG // hNKCJHnzPWNYAzzR6o/hr7EvMA8dMhdNifKhoW+xvArC
// SIG // ndOXm7MWLrav1M0CvR8J1Id4mZI5XEl1q4BpAg6VDS5p
// SIG // CRGdKAcOZudhCBa8PMSpQfyvMvLCGXkpjNibQCbIatDY
// SIG // KVbAub2Ecp+L3teOUgRxdUBr9xm/KW6l2REfiP7+M7fW
// SIG // cbLotRniU2QjFeRJj7IqrBdnEKsaYuadP2Cq/MlTDZZI
// SIG // LXsMhOGtX2IIiLBrG2Ypy+9H+rwqm+Rx4lRSB4nyTmPF
// SIG // Fhasd+rKB63fRRDVfMkBnBq/nxLz97xxa3rJZ9iVDiCo
// SIG // Hx3FzGWOb0naz+KkrFGkHZAJ0uu8jkrGwnCyIDp6I0n2
// SIG // pLX3b0w3A/vUeYr98+A2w3TjsgFum4JQdW4tJGPXB6Zt
// SIG // 7JkIzBOiEU/eQ227RbqHRLhFEM1bE2mBzCw6wypLBneG
// SIG // 9wSCPaFxYf55LAIwVzx0TcOcWNiWNnrzdYEJO/klfU8L
// SIG // dHEVsvAPv389wqxAqFd4sOJj166HlyQ3xL81ZFxZMRuJ
// SIG // bxoAbJPqxMmOKHsVgTMRxodu
// SIG // End signature block

Anon7 - 2021