import compareVersion from"./compare-version.js";const TAG_NAME="TRTC-ROOM",env=wx||qq;env||console.error(TAG_NAME,"不支持当前小程序环境");const systemInfo=env.getSystemInfoSync(),safeArea=systemInfo.safeArea;let isNewVersion;"iOS 13.3"===systemInfo.system||"iPhoneX"===systemInfo.model&&systemInfo.system,"undefined"!=typeof qq?isNewVersion=!0:"undefined"!=typeof wx&&(isNewVersion=compareVersion(systemInfo.version,"7.0.8")>=0||compareVersion(systemInfo.version,"2.4.0")>=0&&compareVersion(systemInfo.version,"6.0.0")<0&&compareVersion(systemInfo.SDKVersion,"2.10.0")>=0);export const IS_TRTC=isNewVersion;export const IS_QQ="undefined"!=typeof qq;export const IS_WX="undefined"!=typeof wx;export const IS_IOS=/iOS/i.test(systemInfo.system);export const IS_ANDROID=/Android/i.test(systemInfo.system);export const IS_MAC=/mac/i.test(systemInfo.system);export const APP_VERSION=systemInfo.version;export const LIB_VERSION=systemInfo.SDKBuild?systemInfo.SDKVersion+"-"+systemInfo.SDKBuild:systemInfo.SDKVersion;let isFullscreenDevie=!1;systemInfo.screenHeight>safeArea.bottom&&(isFullscreenDevie=!0);export const IS_FULLSCREEN_DEVICE=isFullscreenDevie;