function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,n,t){return n&&_defineProperties(e.prototype,n),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,n){if("object"!=_typeof(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return("string"===n?String:Number)(e);t=t.call(e,n||"default");if("object"!=_typeof(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}var Status=(()=>_createClass(function e(n){_classCallCheck(this,e);var t=this;t.url=protocol+"://"+urlBase+"/"+subdomain+"/",t.instanceMethodType=n,t.arrayStatus=[],t.ipPublicAdress=""},[{key:"etatMaj",value:function(){return 2}},{key:"screenWidth",value:function(o){return new Promise(function(n,e){function t(e){n(e)}"browser"===type?t(window.screen.width):o.instanceMethodType.screenWidth(t)})}},{key:"screenHeight",value:function(o){return new Promise(function(n,e){function t(e){n(e)}"browser"===type?t(window.screen.height):o.instanceMethodType.screenHeight(t)})}},{key:"windowWidth",value:function(){return window.innerWidth}},{key:"windowHeight",value:function(){return window.innerHeight}},{key:"systeme",value:function(e){return"browser"===type?navigator.userAgent:e.instanceMethodType.systeme()}},{key:"versionSysteme",value:function(o){return new Promise(function(n,e){function t(e){n(e)}"browser"===type?t(versionApplication):o.instanceMethodType.versionSysteme(t)})}},{key:"screen",value:function(){return"on"===localStorage.getItem("screenState")?0:1}},{key:"temperature",value:function(t){return new Promise(function(n,e){"browser"===type?n(""):t.instanceMethodType.getTemperature(function(e){n(e)})})}},{key:"espaceDisque",value:function(n){return new Promise(function(t,e){"browser"===type?t(""):n.instanceMethodType.espaceDisque(function(e){var n=Math.round(1e3*e.used/100)/10,e=Math.round(1e3*e.total/100)/10;t("".concat(n,"-").concat(e))})})}},{key:"versionApp",value:function(){return versionApplication}},{key:"utilisationMemoire",value:function(n){return new Promise(function(t,e){"browser"===type?t(""):n.instanceMethodType.utilisationMemoire(function(e){var n=Math.round(Math.round(e.memory.used/100)/10),e=Math.round(Math.round(e.memory.total/100)/10);t("".concat(n,"-").concat(e))},function(){console.log("erreur")})})}},{key:"speedConnectionValueKoParSecondes",value:function(){return new Promise(function(n,e){var t,o,r,i=protocol+"://"+urlBase+"/webox/TESTVITESSE/EMITYPaysage-TestVitesse.png";(o=new Image).onload=function(){var e=((5158328/(((new Date).getTime()-t)/1e3)).toFixed(2)/1024).toFixed(2);n(e)},r="?nnn="+(t=(new Date).getTime()),o.src=i+r})}},{key:"networkInfo",value:function(i){return new Promise(function(r,e){"browser"===type?r({macAddress:"00:00:00:00:00:00",connectionType:"browser"}):"chromeos"===type?i.instanceMethodType.getNetworkInfo(function(e){r({macAddress:e[connectionType].macAddress,connectionType:connectionType})}):i.instanceMethodType.getNetworkInfo(function(n){var t=Object.keys(n).filter(function(e){return"connected"===n[e].state&&"object"==_typeof(n[e])});0===t.length&&t.push("none");var o=n[t=t[0]].macAddress;o||i.osSpecificityManager.getNetworkMacInfo(function(e){o=e[t+"Info"].macAddress},function(){console.log("erreur")}),r({macAddress:o,connectionType:t="wired"===t?"ethernet":t})},function(){console.log("erreur")})})}},{key:"getPublicIp",value:function(t){return new Promise(function(n,e){setTimeout(function(){var e;""===t.ipPublicAdress?(e="".concat(protocol,"://").concat(urlBase,"/").concat(subdomain,"/?page=getClientIP"),new Ajax(null,e,function(e){t.ipPublicAdress=e.ip,n(t.ipPublicAdress)},function(){})):n(t.ipPublicAdress)},2e3)})}}]))();