(function(e){var f=new function(){this.UniversalError=function(a,b,c){this.errorCode=a;this.errorMessage=b;this.errorOccurrenceCount=1;this.errorOccurrenceMax=c};this.HistoryEntry=function(a,b){this.category=a;this.page=b};this.Response=function(a,b,c,d){this.isBusy=d;this.hasError=a;this.error=b;this.data=c;this.getTypeString=function(){return"DeviceManager.Response"}};this.ValueInfo=function(a,b,c){this.parameterName=a;this.value=b;this.error=c;this.getTypeString=function(){return"DeviceManager.ValueInfo"}};
this.ArrayInfo=function(a,b,c,d){this.moduleItem=a;this.type=b;this.size=c;this.length=d;this.getTypeString=function(){return"DeviceManager.ArrayInfo"}};this.ModuleItem=function(a,b,c,d,g,e,f,h,k,l){this.internalId=a;this.id=b;this.name=c;this.address=d;this.subIndex=g;this.flags=e;this.type=f;this.size=h;this.access=k;this.parameters=l};this.ServiceTransferParameter=function(a,b){this.name=a;this.type=b;this.getTypeString=function(){return"DeviceManager.ServiceTransferParameter"}};this.ServiceTransferResponse=
function(){this.hasError=this.isBusy=!1;this.errCode=void 0;this.hasResult=!1;this.result=void 0;this.hasPercentage=!1;this.moduleItem=this.percentage=void 0;this.getTypeString=function(){return"DeviceManager.ServiceTransferResponse"}};this.WriteResponse=function(a,b){this.moduleItemsWritten=a;this.errorCodes=b};this.RequestParameter=function(a,b,c){this.parameterName=a;this.cyclic=b;this.moduleCount=c;this.isArray=!1;this.values=[];this.getHasValues=function(){if(0!=this.values.length)if(this.isArray)for(a=
0;a<this.values.length;a++){if(void 0!=this.values[a])for(var b=0;b<this.values[a].length;b++)if(void 0!=this.values[a][b]&&!this.values[a][b].getHasError())return!0}else for(var a=0;a<this.values.length;a++)if(void 0!=this.values[a]&&!this.values[a].getHasError())return!0;return!1};this.clearValues=function(){for(;0<this.values.length;)this.values.pop()};this.getTypeString=function(){return"DeviceManager.RequestParameter"}};this.ResponseInfo=function(a,b){this.data=a;this.error=b;this.getOutput=
function(){return this.getHasFatalError()?CommunicationModule_ERROR.ErrorCodeToErrorMessage(this.error):this.getHasError()?"":this.data};this.getHasError=function(){return 0===b?!1:!0};this.getHasFatalError=function(){return 0===b||3970302213===b||3970305792===b||3970306048===b?!1:!0}};this.BrowserInfo=function(a,b,c,d){this.name=a;this.version=b;this.major=c;this.agentStr=d;this.getTypeString=function(){return"DeviceManager.BrowserInfo"}}};e.Defines=f})(window);
