!function(){var e,s=new CSInterface,d=s.getSystemPath(SystemPath.USER_DATA)+"/BattleAxe/",o=d+"Overlord/";!function(){cep.fs.makedir(d),cep.fs.makedir(o),cep.fs.makedir(o+"/config/");var e=s.getSystemPath(SystemPath.EXTENSION)+"/bundle/config/",t=cep.fs.readdir(e).data,r=0;try{r=JSON.parse(cep.fs.readFile(o+"config/prefs.json").data).version}catch(e){}var a=JSON.parse(cep.fs.readFile(e+"prefs.json").data).version;if(r<a){var l=0!=r;!function e(t,r,a,l,s){for(var d=0;d<a.length;d++){var o=cep.fs.stat(t+a[d]).data.isFile();if(o){if(l&&"prefs.json"==a[d]){var i=JSON.parse(cep.fs.readFile(r+a[d]).data);i.version=s,i.registeredTo="overlord@battleaxe.co",cep.fs.writeFile(r+a[d],JSON.stringify(i,null,2),cep.encoding.UTF8);continue}var n=cep.fs.readFile(t+a[d]);cep.fs.writeFile(r+a[d],n.data,cep.encoding.UTF8)}else{var c=r+a[d]+"/",f=t+a[d]+"/",v=cep.fs.readdir(t+a[d]).data;cep.fs.makedir(c),e(f,c,v,l,s)}}}(e,o+"/config/",t,l,a)}}(),e=s.getSystemPath(SystemPath.USER_DATA),cep.fs.deleteFile(e+"/BattleAxe/Overlord/css/Overlord.css"),cep.fs.deleteFile(e+"/BattleAxe/Overlord/js/Overlord-modal.js"),cep.fs.deleteFile(e+"/BattleAxe/Overlord/js/Overlord.js"),cep.fs.deleteFile(e+"/BattleAxe/Overlord/jsx/Overlord.jsx"),cep.fs.deleteFile(e+"/BattleAxe/Overlord/Overlord-modal.html"),cep.fs.deleteFile(e+"/BattleAxe/Overlord/Overlord.html"),console.log(s.getExtensions(["com.overlord.panel"])),angular.module("BattleAxe",["ngAnimate"]),window.addEventListener("dragover",function(e){(e=e||event).preventDefault()},!1),window.addEventListener("drop",function(e){(e=e||event).preventDefault()},!1)}();