require.scopes.io=function(){var e={};e.IO={_getFileEntry:function(e,i,n,t){e instanceof FakeFile?e=e.path:"spec"in e&&(e=e.spec),e=e.replace(/^.*[\/\\]/,""),(window.requestFileSystem||window.webkitRequestFileSystem)(window.PERSISTENT,1073741824,function(r){r.root.getFile(e,{create:i},function(e){n(r,e)},t)},t)},lineBreak:"\n",resolveFilePath:function(e){return new FakeFile(e)},readFromFile:function(e,i,n,t,r){return"spec"in e&&/^defaults\b/.test(e.spec)?(localStorage.currentVersion&&(seenDataCorruption=!0),delete localStorage.currentVersion,void t(null)):void this._getFileEntry(e,!1,function(e,i){i.file(function(e){var i=new FileReader;i.onloadend=function(){if(i.error)t(i.error);else{for(var e=i.result.split(/[\r\n]+/),r=0;r<e.length;r++)n.process(e[r]);n.process(null),t(null)}},i.readAsText(e)},t)},t)},writeToFile:function(e,i,n,t,r){this._getFileEntry(e,!0,function(e,i){i.createWriter(function(e){var i=function(i,n){e.onwriteend=function(){e.error?t(e.error):n()}.bind(this),i()}.bind(this);i(e.truncate.bind(e,0),function(){var r;try{r=new Blob([n.join(this.lineBreak)+this.lineBreak],{type:"text/plain"})}catch(o){if(!(o instanceof TypeError))throw o;var l=new window.BlobBuilder||window.WebKitBlobBuilder();l.append(n.join(this.lineBreak)+this.lineBreak),r=l.getBlob("text/plain")}i(e.write.bind(e,r),t.bind(null,null))}.bind(this))}.bind(this),t)}.bind(this),t)},copyFile:function(e,i,n){var t=[];this.readFromFile(e,!1,{process:function(e){null!==e&&t.push(e)}},function(e){e?n(e):this.writeToFile(i,!1,t,n)}.bind(this))},renameFile:function(e,i,n){this._getFileEntry(e,!1,function(e,t){t.moveTo(e.root,i,function(){n(null)},n)},n)},removeFile:function(e,i){this._getFileEntry(e,!1,function(e,n){n.remove(function(){i(null)},i)},i)},statFile:function(e,i){this._getFileEntry(e,!1,function(e,n){n.getMetadata(function(e){i(null,{exists:!0,isDirectory:n.isDirectory,isFile:n.isFile,lastModified:e.modificationTime.getTime()})},i)},i)}};return e}();