import{b as balBrowser}from"./browser-a623d3a0.js";var Orientation=function(){function e(){}Object.defineProperty(e.prototype,"isPortrait",{get:function(){if(balBrowser.hasWindow&&window.matchMedia){return window.matchMedia("(orientation: portrait)").matches}return false},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isLandscape",{get:function(){if(balBrowser.hasWindow&&window.matchMedia){return window.matchMedia("(orientation: landscape)").matches}return true},enumerable:false,configurable:true});e.prototype.toObject=function(){return{landscape:this.isLandscape,portrait:this.isPortrait}};return e}();var BalDevice=function(){function e(){this.orientation=new Orientation}Object.defineProperty(e.prototype,"isMobile",{get:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|OperaMini/i.test(balBrowser.userAgent)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hasTouchScreen",{get:function(){if(balBrowser.hasWindow&&balBrowser.hasNavigator){return!!("ontouchstart"in window||navigator.msMaxTouchPoints)}return false},enumerable:false,configurable:true});return e}();var balDevice=new BalDevice;export{BalDevice as B,balDevice as b};