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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}var Ajax=(()=>_createClass(function e(t,r,o,n){var a=!(4<arguments.length&&void 0!==arguments[4])||arguments[4];_classCallCheck(this,e),this.ajaxRequest(t,r,o,n,a)},[{key:"ajaxRequest",value:function(){var e,r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],o=1<arguments.length?arguments[1]:void 0,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:function(){},a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:function(){},t=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],i=this.generateUUID(),f=new FormData;for(e in r){var u=r[e];f.append(e,u)}var c={async:!0,crossDomain:!0,url:o,method:"POST",headers:{Isajax:"true",Webtv:"true"},processData:!1,contentType:!1,mimeType:"multipart/form-data",data:f};t||delete c.headers.Webtv,$.ajax(c).done(function(t){executeIfNotBrowser(function(){Log.addLog("[id: "+i+"] Request => url : "+o+" => parameters : "+JSON.stringify(r)+" => code : 200")});try{var e=JSON.parse(t);n(e)}catch(e){a(t)}}).fail(function(e){executeIfNotBrowser(function(){Log.addLog("[id: "+i+"] Erreur => url : "+o+" => parameters : "+JSON.stringify(r)+"message : "+JSON.stringify(e),2)}),a(e)})}},{key:"generateUUID",value:function(){var r=(new Date).getTime(),o="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random();return 0<r?(t=(r+t)%16|0,r=Math.floor(r/16)):(t=(o+t)%16|0,o=Math.floor(o/16)),("x"===e?t:3&t|8).toString(16)})}}]))();