define(["exports"],function(_exports){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0;var userAgent=navigator.userAgent,browser={},userAgentLower=userAgent.toLowerCase();/(edg)[ \/]([\w.]+)/.exec(userAgentLower)&&(browser.edg=!0),browser.edg||((/(opera)[ \/]([\w.]+)/.exec(userAgentLower)||/(opr)[ \/]([\w.]+)/.exec(userAgentLower))&&(browser.opera=!0),/(safari)[ \/]([\w.]+)/.exec(userAgentLower)&&(browser.safari=!0),/(firefox)[ \/]([\w.]+)/.exec(userAgentLower)&&(browser.firefox=!0)),/(chrome)[ \/]([\w.]+)/.exec(userAgentLower)&&(browser.chrome=!0),!browser.chrome&&userAgentLower.includes("webkit")&&(browser.safari=!0),userAgentLower.includes("playstation")&&(browser.playstation=!0,browser.tv=!0,userAgentLower.includes("playstation 4"))&&(browser.ps4=!0),browser.xboxOne=function(userAgentLower){return!!userAgentLower.includes("xbox")||!("undefined"==typeof Windows||!Windows.System)&&"Windows.Xbox"===Windows.System.Profile.AnalyticsInfo.versionInfo.deviceFamily}(userAgentLower),browser.tizen=userAgentLower.includes("tizen")||null!=globalThis.tizen,browser.netcast=userAgentLower.includes("netcast")||userAgentLower.includes("Web0S".toLowerCase()),browser.electron=userAgentLower.includes("electron"),browser.windows=userAgentLower.includes("windows"),browser.ipad=userAgentLower.includes("ipad"),browser.iphone=userAgentLower.includes("iphone"),browser.android=userAgentLower.includes("android"),browser.tizen&&(browser.sdkVersion=function(){var v;if("undefined"!=typeof tizen&&tizen.systeminfo)return v=tizen.systeminfo.getCapability("http://tizen.org/feature/platform.version"),parseFloat(v)}()),browser.tv=function(userAgent){return!!((userAgent=userAgent.toLowerCase()).includes("tv")||userAgent.includes("viera")||userAgent.includes("web0s")||userAgent.includes("zidoo"))}(userAgent),(browser.tv&&userAgentLower.includes("opr/")||globalThis.location&&(globalThis.location.href||"").toString().toLowerCase().includes("operatv"))&&(browser.tv=!0,browser.operaTv=!0),(browser.xboxOne||browser.playstation||browser.tizen||browser.netcast||browser.operaTv||userAgentLower.includes("smarthub"))&&(browser.tv=!0),browser.iOS=browser.ipad||browser.iphone||browser.ipod,browser.iOS||(browser.osx=userAgentLower.includes("mac os x")),browser.chromecast=browser.chrome&&userAgentLower.includes("crkey"),function(browser,userAgent){var userAgentData=navigator.userAgentData;if(userAgentData||(userAgentData={},navigator.userAgentData=userAgentData),null==userAgentData.mobile)try{userAgentData.mobile=function(userAgent){var lower=userAgent.toLowerCase();if(lower.includes("android tv"))return!1;for(var terms=["mobi","ipad","iphone","ipod","silk","kindle fire","opera mini"],i=0,length=terms.length;i<length;i++)if(lower.includes(terms[i]))return!0;return"undefined"!=typeof document&&"ontouchstart"in document.documentElement}(userAgent)}catch(err){console.log("error setting userAgentData.mobile: "+err)}!function(userAgentData,browser){var brands=userAgentData.brands;if(brands||(userAgentData.brands=brands=[]),!brands.length){userAgentData=browser.edg?"Edge":browser.opera?"Opera":browser.chrome?"Chrome":browser.firefox?"Firefox":browser.safari?"Safari":"Web Browser";try{brands.push({brand:userAgentData})}catch(err){console.log("error adding brands: "+err)}if(browser.chrome)try{brands.push({brand:"Chromium"})}catch(err){console.log("error adding brands: "+err)}}}(userAgentData,browser),userAgentData.getHighEntropyValues||(userAgentData.getHighEntropyValues=function(){var info={};return this.android?info.platform="Android":this.iOS?info.platform="iOS":this.ipad?info.platform="iPadOS":this.osx?info.platform="macOS":this.xboxOne?info.platform="Xbox One":this.windows?info.platform="Windows":this.playstation?info.platform="PlayStation":this.netcast?info.platform="LG TV":this.tizen?info.platform="Samsung TV":this.operaTv&&(info.platform="Opera TV"),Promise.resolve(info)}.bind(browser))}(browser,userAgent),_exports.default=browser});