define(["exports"],function(_exports){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0;var userAgent=navigator.userAgent,browser={},userAgentLower=userAgent.toLowerCase(),_navigator$platform=(/(edg)[ \/]([\w.]+)/.exec(userAgentLower)?browser.edg=!0:/(opera)[ \/]([\w.]+)/.exec(userAgentLower)||/(opr)[ \/]([\w.]+)/.exec(userAgentLower)?browser.opera=!0:/(firefox)[ \/]([\w.]+)/.exec(userAgentLower)&&(browser.firefox=!0),browser.firefox||(/(chrome)[ \/]([\w.]+)/.exec(userAgentLower)?browser.chrome=!0:(/(safari)[ \/]([\w.]+)/.exec(userAgentLower)||userAgentLower.includes("webkit"))&&(browser.safari=!0)),userAgentLower.includes("playstation")&&(browser.playstation=!0,browser.tv=!0,userAgentLower.includes("playstation 4"))&&(browser.ps4=!0),browser.xboxOne=!!userAgentLower.includes("xbox"),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.android=userAgentLower.includes("android"),browser.vegaos=userAgentLower.includes("kepler"),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("kepler")||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")||userAgentLower.includes("smarttv")||userAgentLower.includes("tv/"))&&(browser.tv=!0),(null==(_navigator$platform=navigator.platform)?void 0:_navigator$platform.toLowerCase())||"");browser.iOS=userAgentLower.includes("ipad")||userAgentLower.includes("iphone")||userAgentLower.includes("ipod touch")||"iphone"===_navigator$platform||_navigator$platform.startsWith("mac")&&1<navigator.maxTouchPoints,browser.iOS||(browser.osx=userAgentLower.includes("mac os x")||_navigator$platform.startsWith("mac")),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.error("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.error("error adding brands: ",err)}if(browser.chrome)try{brands.push({brand:"Chromium"})}catch(err){console.error("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":this.vegaos&&(info.platform="Vega OS"),Promise.resolve(info)}.bind(browser))}(browser,userAgent),_exports.default=browser});