{{#LNG.copyright_desc}}
\nmh37Iby2;U9gjRegEhf-p!SUFzU0E?JbM=_k@lK|87241E0g B6WS?&8Vp Z;khm
z`iOM~B#eaoZ!)$-j1(6mJnetl{Qr*BTc76~xd7vn#+qaBrx>gM5jdIuM+nutGNogI
z=z9oqh%D!O1h=J(k`G*52!Z#S`_iCpxJkd4Mu{xxj7O&vEdwgaTYfCz=i<>|eq9Qr
z)ZFC7q$vTRQJ0~Kuab {{#LNG.copyright_desc}} "+e[t].name+" "+e[t].desc+" {{#LNG.copyright_desc}} "+e[t].name+" "+e[t].desc+" {{#LNG.copyright_desc}} {{#LNG.copyright_desc}} {{#LNG.copyright_desc}} {{#LNG.copyright_desc}} [TOC] 标题 文字格式 水平线 无序列表 有序列表 图片 连接 引用 代码 公式 Headers Emphasis Line Unordered list Ordered list Image Links Blockquotes Code LaTeX Math%tBw@ptdh|w_H|Y{_{kX;BJAE$uJu}cbws2oAn7^OKGNV4h
z_ulzWK%x9pJ&7_Uqu}!=
")}}),$("body").bind("mousedown click",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()}),$("input,textarea").live("focus",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()})})};return{search:search,init:initFirst,serverDwonload:upload.serverDwonload,upload:upload.upload,uploadInit:upload.init,playSound:playSound.playSound,playSoundFile:playSound.playSoundFile,tools:tools,api:api,filetypes:{image:["jpg","jpeg","png","bmp","gif","ico","svg","cur","webp"],music:["mp3","wav","m4a","aac","oga","ogg","webma"],movie:["mp4","m4v","flv","mov","f4v","ogv","webm","webmv"],doc:["doc","docx","docm","xls","xlsx","xlsb","xlsm","ppt","pptx","pptm"],text:["txt","textile","oexe","inc","csv","log","asc","tsv","lnk","url","webloc","meta","localized","xib","xsd","storyboard","plist","csproj","pch","pbxproj","local","xcscheme","manifest","vbproj","strings","jshintrc","sublime-project","readme","changes","changelog","version","license","changelog","abap","abc","as","asp","aspx","ada","adb","htaccess","htgroups","htgroups","htpasswd","asciidoc","adoc","asm","a","ahk","bat","cmd","cpp","c","cc","cxx","h","hh","hpp","ino","c9search_results","cirru","cr","clj","cljs","cbl","cob","coffee","cf","cson","cakefile","cfm","cs","css","curly","d","di","dart","diff","patch","dockerfile","dot","dummy","dummy","e","ge","ejs","ex","exs","elm","erl","hrl","frt","fs","ldr","ftl","gcode","feature",".gitignore","glsl","frag","vert","gbs","go","groovy","haml","hbs","handlebars","tpl","mustache","hs","hx","html","hta","htm","xhtml","eex","html.eex","erb","rhtml","html.erb","ini","inf","conf","cfg","prefs","io","jack","jade","java","ji","jl","jq","js","jsm","json","jsp","jsx","latex","ltx","bib","lean","hlean","less","liquid","lisp","ls","logic","lql","lsl","lua","lp","lucene","Makefile","makemakefile","gnumakefile","makefile","ocamlmakefile","make","md","markdown","mask","matlab","mz","mel","mc","mush","mysql","nix","nsi","nsh","m","mm","ml","mli","pas","p","pl","pm","pgsql","php","phtml","shtml","php3","php4","php5","phps","phpt","aw","ctp","module","ps1","praat","praatscript","psc","proc","plg","prolog","properties","proto","py","r","cshtml","rd","rhtml","rst","rb","ru","gemspec","rake","guardfile","rakefile","gemfile","rs","sass","scad","scala","scm","sm","rkt","oak","scheme","scss","sh","bash","bashrc","sjs","smarty","tpl","snippets","soy","space","sql","sqlserver","styl","stylus","svg","swift","tcl","tex","toml","twig","swig","ts","typescript","str","vala","vbs","vb","vm","v","vh","sv","svh","vhd","vhdl","wlk","wpgm","wtest","xml","rdf","rss","wsdl","xslt","atom","mathml","mml","xul","xbl","xaml","xq","yaml","yml","vcproj","vcxproj","filters","cer","reg","config","pem","srt","ass"],bindary:["bin","hex","zip","pdf","swf","gzip","rar","arj","tar","gz","cab","tbz","tbz2","lzh","uue","bz2","ace","exe","so","dll","chm","rtf","odp","odt","pages","class","psd","ttf","fla","7z","dmg","iso","dat","ipa","lib","a","apk","so","o"]},fileOpenMode:{ini:["inc","inf","strings"],xml:["xib","xsd","storyboard","plist","csproj","pch","pbxproj","xcscheme","config","vcproj","vcxproj","filters","webloc"],json:["oexe","jshintrc","sublime-project"],markdown:["readme","changes","version","license","changelog"]},getPathIcon:function(e,a){if(a=void 0==a?"":a,"string"==$.type(e)){var i=trim(trim(e),"/");if(e={},"{"!=i.substring(0,1)||i.split("/").length>1)return{icon:"",name:""};e.path_type=i.match(/\{.*\}/),e.id=i.split(":")[1]}var t={};t[G.KOD_USER_SHARE]={icon:"userSelf",name:LNG.my_share},t[G.KOD_GROUP_PATH]={icon:"groupSelfOwner"},t[G.KOD_GROUP_SHARE]={icon:"groupGuest"},t[G.KOD_USER_RECYCLE]={icon:"recycle",name:LNG.recycle},t[G.KOD_USER_FAV]={icon:"treeFav",name:LNG.fav},t[G.KOD_GROUP_ROOT_SELF]={icon:"groupSelfRoot",name:LNG.my_kod_group},t[G.KOD_GROUP_ROOT_ALL]={icon:"groupRoot",name:LNG.kod_group};var n=t[e.path_type];return e.path_type==G.KOD_USER_SHARE&&G.user_id!=e.id?n={icon:"user",name:a}:e.path_type==G.KOD_GROUP_PATH&&"owner"==e.role&&(n={icon:"groupSelfOwner"}),void 0==n&&(n={icon:"",name:""}),void 0==n.name&&(n.name=a),n},isSystemPath:function(e){var e=trim(trim(e),"/");if(void 0==e||"{"!=e.substring(0,1)||e.split("/").length>1)return!1;var a=e.match(/\{.*\}/),i=[G.KOD_USER_SHARE,G.KOD_GROUP_SHARE,G.KOD_USER_RECYCLE,G.KOD_USER_FAV,G.KOD_GROUP_ROOT_SELF,G.KOD_GROUP_ROOT_ALL],t=!1;return $.inArray(a[0],i)>=0&&(t=!0),t},contextmenu:function(e){try{rightMenu.hidden()}catch(a){}var a=e||window.event;return a?a&&$(a.target).is("textarea")||$(a.target).is("input")||$(a.target).is("p")||$(a.target).is("pre")||0!=$(a.target).parents(".can_right_menu").length||0!=$(a.target).parents(".topbar").length||0!=$(a.target).parents(".edit_body").length||0!=$(a.target).parents(".aui_state_focus").length?!0:!1:!0},pathThis:function(e){if(!e||"/"==e)return"";var a=rtrim(this.pathClear(e),"/"),i=a.lastIndexOf("/"),t=a.substr(i+1);if(0==t.search("fileProxy")){t=urlDecode(t.substr(t.search("&path=")));var n=t.split("/");t=n[n.length-1],""==t&&(t=n[n.length-2])}return t},pathClear:function(e){if(!e)return"";var a=e.replace(/\\/g,"/");return a=a.replace(/\/+/g,"/"),a=a.replace(/\.+\//g,"/")},pathFather:function(e){var a=rtrim(this.pathClear(e),"/"),i=a.lastIndexOf("/");return a.substr(0,i+1)},pathExt:function(e){var a=trim(e,"/");return-1!=a.lastIndexOf("/")&&(a=a.substr(a.lastIndexOf("/")+1)),-1!=a.lastIndexOf(".")?a.substr(a.lastIndexOf(".")+1).toLowerCase():a.toLowerCase()},path2url:function(e,a){if("http"==e.substr(0,4))return e;void 0==a&&(a=!0);var i,t=this.pathClear(e);this.pathExt(t);var n=function(e){if(!e)return"";var a=urlEncode(e);return a=a.replace(/%2F/g,"/")};return G.is_root&&a&&t.substring(0,G.web_root.length)==G.web_root?i=G.web_host+n(t.replace(G.web_root,"")):(i=G.app_host+"index.php?explorer/fileProxy&path="+urlEncode(t),G.share_page!==void 0&&(i=G.app_host+"index.php?share/fileProxy&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(t))),i},pathReadable:function(e){if("object"!=typeof G.json_data)return!0;var a;a=G.json_data.filelist;for(var i=0;a.length>i;i++)if(a[i].path==e)return void 0==a[i].is_readable||1==a[i].is_readable?!0:!1;a=G.json_data.folderlist;for(var i=0;a.length>i;i++)if(a[i].path==e)return void 0==a[i].is_readable||1==a[i].is_readable?!0:!1;return!0},authCheck:function(e,a){return G.is_root?!0:AUTH.hasOwnProperty(e)?AUTH[e]?!0:(void 0==a&&(a=LNG.no_permission),Tips.tips(a,!1),!1):!0},ajaxError:function(e){var a=e.responseText,i='";$.dialog({follow:a,fixed:!0,resize:!1,title:LNG.qrcode,padding:30,content:t})},appStore:function(){var e=ShareData.frameTop();e.$.dialog.open("./index.php?app",{id:"app_store",fixed:!0,ico:core.icon("appStore"),resize:!0,title:LNG.app_store,width:900,height:550})},openWindow:function(e){var a=ShareData.frameTop(),i=a.$.dialog.open(e,{fixed:!0,resize:!0,width:"80%",height:"75%"});return i},openDialog:function(e,a,i,t){if(e){void 0==t&&(t="openDialog"+UUID());var n="",o=ShareData.frameTop(),s=o.$.dialog({id:t,fixed:!0,title:i,ico:a,width:"75%",height:"70%",padding:0,content:n,resize:!0});return s}},openApp:function(app){if("url"==app.type){var icon=app.icon;-1==app.icon.search(G.static_path)&&"http"!=app.icon.substring(0,4)&&(icon=G.static_path+"images/file_icon/icon_app/"+app.icon),"number"!=typeof app.width&&-1===app.width.search("%")&&(app.width=parseInt(app.width)),"number"!=typeof app.height&&-1===app.height.search("%")&&(app.height=parseInt(app.height)),app.width||(app.width="90%"),app.height||(app.height="70%");var dialog_info={resize:app.resize,fixed:!0,ico:core.iconSrc(icon),title:app.name.replace(".oexe",""),width:app.width,height:app.height,simple:app.simple,padding:0},top=ShareData.frameTop();"swf"==core.pathExt(app.content)?(dialog_info.content=core.createFlash(app.content),top.$.dialog(dialog_info)):top.$.dialog.open(app.content,dialog_info)}else{var exec=app.content;eval("{"+exec+"}")}},update:function(){setTimeout(function(){var e=base64Decode("Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==")+"?a="+UUID();require.async(e,function(e){try{e.todo("check")}catch(a){}})},200)},openPath:function(e){"undefined"!=typeof Config&&"explorer"==Config.pageApp?ui.path.list(e,"tips"):core.explorer(e)},explorer:function(e,a){void 0==e&&(e=""),void 0==a&&(a=core.pathThis(e));var i="./index.php?/explorer&type=iframe&path="+e;G.share_page!==void 0&&(i="./index.php?share/folder&type=iframe&user="+G.user+"&sid="+G.sid+"&path="+e);var t=ShareData.frameTop(),n=t.$.dialog.open(i,{className:"dialogExplorer",resize:!0,fixed:!0,ico:core.icon("folder"),title:a,width:"80%",height:"75%"}),o=20*t.$(".dialogExplorer").length;n.DOM.wrap.css({left:"+="+o+"px",top:"+="+o+"px"})},explorerCode:function(e){void 0==e&&(e="");var a="index.php?/editor&project="+e;G.share_page!==void 0&&(a="./index.php?share/code_read&user="+G.user+"&sid="+G.sid+"&project="+e),window.open(a)},setSkinFinished:function(){var e=$(".setSkin_finished").attr("src");e&&($("#link_css_list").attr("href",e),$(".setSkin_finished").remove())},setSkin:function(e){LocalData.set("theme",e),G.user_config.theme=e;var a=G.static_path+"style/skin/"+e+".css";a!=$("#link_css_list").attr("href")&&$("body").append('
'),this.setSkinDiy()},setSkinDiy:function(){if(G.user_config){var e=LocalData.get("theme"),a="kod_diy_style",i=LocalData.getConfig(a);"object"!=typeof i&&"object"==typeof G.user_config.theme_diy&&(i=G.user_config.theme_diy),"object"!=typeof i&&(i={bg_blur:1,bg_image:G.static_path+"images/wall_page/9.jpg",bg_type:"color",start_color:"#456",end_color:"#000",color_rotate:"200"},LocalData.setConfig(a,i)),G.user_config.theme_diy=i;var t="";if("diy"==e&&i){var n=require("./tpl/theme_diy.html"),o=template.compile(n);t=o(i)}$.setStyle(t,a)}},editorFull:function(){var e=$("iframe[name=OpenopenEditor]");e.toggleClass("frame_fullscreen")},language:function(e){Cookie.set("kod_user_language",e,8760),window.location.reload()},fullScreen:function(){"true"==$("body").attr("fullScreen")&&core.exitfullScreen(),$("body").attr("fullScreen","true");var e=ShareData.frameTop(),a=e.document.documentElement;a.requestFullscreen?a.requestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullScreen&&a.webkitRequestFullScreen()},exitfullScreen:function(){$("body").attr("fullScreen","false"),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()},createFlash:function(e,a,i){var t=UUID();(i===void 0||""==i)&&(i=t);var n="";$.browser.msie&&9>parseInt($.browser.version)&&(n='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');var o='
\n
\n {{each v.search_info as value index}}\n
\n ').fadeIn(100)},error:function(){core.ajaxError(),i.html(LNG.error)},success:function(e){d(e)}})};n()}}),define("app/common/core.tools",[],function(e){var a=["A","version_hash","undefined","@dfq[-)&*^*%(_90","decode","length","substr","O","P","Q","inArray","./index.php?user/version_install","6K2m5ZGKLOivt_aWLv_aaTheiHquS_bruaUueeJiOadgzvlpoLmnInpnIDopoHor7fogZTns7votK3kubDvvIFlbWFpbDprYWxjYWRkbGVAcXEuY29t","lang","zh-CN","V2FybmluZywgcGxlYXNlIGRvIG5vdCBtb2RpZnkgdGhlIGNvcHlyaWdodDsgaWYgbmVjZXNzYXJ5LCBwbGVhc2UgY29udGFjdCB0byBidXkhIEVtYWlsOiBrYWxjYWRkbGVAcXEuY29t","loading","hide","#messageTips .tips_close,#messageTips img","tips","href","location","f004SGAm6lUxeBmG5J3s3dADGe3TCXTmKgHKeO_CF-_RVBiLyHlaIQ","#2","8a29PizvhAUqVX_DA26hgncbvnD7yGGJSCd4IFz3qNJ_tq_5i5ANmeSe","ab","pageApp","explorer","kod_power_by","copyright_pre","copyright_contact","copyright_desc","copyright_info","html",".common_footer","key","","toLowerCase","find","search","free","1","2","3","version_vip_",'',"",".menu-topbar_user .divider","insertBefore","click","id","attr","version_vip_free","versionUpdateVip","openWindow",'',"append",".aui_content","wrap","DOM","text","live","die",".version_vip","top","longPress","support_space_not","addClass","body","remove",".menu_system_about,.menu_left #about","icon",'',"iconSmall","iconSrc",'
',"Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==","?a=","todo","async","versionType","filetype","filetypes","Ly9rYWxjYWRkbGUuY29tL2J1eS5odG1sIw_c_c","group","data"],i=function(){var e=a[0];if(typeof G[a[1]]==a[2])return e;var i=a[3],t=authCrypt[a[4]](G[a[1]],i);return t&&27==t[a[5]]?(e=t[a[6]](10,1),-1===$[a[10]](e,[a[0],a[7],a[8],a[9]])&&(e=a[0]),e):e},t=i(),n=a[11],o=function(){var e=hashDecode(a[12]);G[a[13]]!=a[14]&&(e=hashDecode(a[15])),alert(e),Tips[a[16]](e,!1),$(a[18])[a[17]](),setTimeout(function(){Tips[a[19]](e,!1),window[a[21]][a[20]]=n},1e3*roundFromTo(30,60))},s=authCrypt[a[4]](a[22],a[23]),r=authCrypt[a[4]](a[24],a[25]),l=function(){if(typeof Config!=a[2]&&Config[a[26]]==a[27]&&t==a[0])for(var e=[{key:LNG[a[28]],find:s},{key:LNG[a[29]],find:s},{key:LNG[a[30]],find:r},{key:LNG[a[31]],find:s},{key:LNG[a[32]],find:r},{key:$(a[34])[a[33]](),find:s}],i=0;e[a[5]]>i;i++){e[i][a[35]]||(e[i][a[35]]=a[36]);var n=e[i][a[35]][a[37]](),l=e[i][a[38]][a[37]]();if(-1==n[a[39]](l)){setTimeout(function(){o()},roundFromTo(300,5e3));break}}},c=function(){var e={A:a[40],O:a[41],P:a[42],Q:a[43]},i=a[44]+e[t],o=a[45]+i+a[46]+LNG[i]+a[47];t==a[0]&&$(o)[a[49]](a[48]),$(a[65])[a[64]](a[50])[a[63]](a[50],function(){if($(this)[a[52]](a[51])==a[53]){var e=core[a[55]](core[a[54]]),i=a[56]+n+a[57];e[a[61]][a[60]][a[38]](a[59])[a[58]](i)}else Tips[a[19]]($(this)[a[62]]())}),$(a[65])[a[67]](function(){window[a[66]][a[21]][a[20]]=n})},d=function(){t==a[0]&&$(a[70])[a[69]](a[68]),-1!==$[a[10]](t,[a[7],a[8],a[9]])&&$(a[72])[a[71]]()},p=function(){core[a[73]]=function(e,i){return a[74]+e+(i?a[75]:a[36])+a[76]},core[a[77]]=function(e){return core[a[73]](e,!0)},core[a[78]]=iconSrc=function(e){return a[79]+e+a[80]},setTimeout(function(){var i=base64Decode(a[81])+a[82]+UUID();e[a[84]](i,function(e){try{e[a[83]]()}catch(i){}})},2e3),core[a[85]]=t,core[a[86]]=core[a[87]],core[a[54]]=hashDecode(a[88])+G[a[13]],l(),c(),d()},u=function(e){return t==a[0]&&-1==e[a[37]]()[a[39]](s)?(o(),!1):!0},f=function(e,i){var n,o,s={A:1,O:10,P:50,Q:1e3},r={A:10,O:50,P:200,Q:1e3},l=[],c=1;if(i==a[89]?(n=e[a[90]],o=s[t]):(n=e[a[90]],o=r[t]),1e3==o)l=n;else for(var d in n){if(c>o)break;l[d]=n[d],c++}return l},h={init:p,about:u,systemData:f};return h}),define("app/common/core.upload",[],function(require,exports){var uploadUrl=function(){var e=G.app_host+"index.php?explorer/fileUpload";return"share"==G.share_page&&"1"==G.share_info.can_upload&&(e=G.app_host+"index.php?share/fileUpload&user="+G.user+"&sid="+G.sid),e};return{serverDwonload:function(e,a){core.uploadCheck("explorer:serverDownload");var i=$(".download_box"),t=i.find(".download_list");if(i.find("input").val(""),!e)return Tips.tips("url false!",!1),void 0;
-"ftp"!=e.substr(0,3)&&"http"!=e.substr(0,4)&&(e="http://"+e);var n=UUID(),o='';t.find(".item").length>0?$(o).insertBefore(t.find(".item:eq(0)")):t.append(o);var s,r,l,c=0,d=$("#"+n),p=$("#"+n+" .state").text(LNG.download_ready),u=$('
")}}),$("body").bind("mousedown click",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()}),$("input,textarea").live("focus",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()})})};return{search:search,init:initFirst,serverDwonload:upload.serverDwonload,upload:upload.upload,uploadInit:upload.init,playSound:playSound.playSound,playSoundFile:playSound.playSoundFile,tools:tools,api:api,filetypes:{image:["jpg","jpeg","png","bmp","gif","ico","svg","cur","webp"],music:["mp3","wav","m4a","aac","oga","ogg","webma"],movie:["mp4","m4v","flv","mov","f4v","ogv","webm","webmv"],doc:["doc","docx","docm","xls","xlsx","xlsb","xlsm","ppt","pptx","pptm"],text:["txt","textile","oexe","inc","csv","log","asc","tsv","lnk","url","webloc","meta","localized","xib","xsd","storyboard","plist","csproj","pch","pbxproj","local","xcscheme","manifest","vbproj","strings","jshintrc","sublime-project","readme","changes","changelog","version","license","changelog","abap","abc","as","asp","aspx","ada","adb","htaccess","htgroups","htgroups","htpasswd","asciidoc","adoc","asm","a","ahk","bat","cmd","cpp","c","cc","cxx","h","hh","hpp","ino","c9search_results","cirru","cr","clj","cljs","cbl","cob","coffee","cf","cson","cakefile","cfm","cs","css","curly","d","di","dart","diff","patch","dockerfile","dot","dummy","dummy","e","ge","ejs","ex","exs","elm","erl","hrl","frt","fs","ldr","ftl","gcode","feature",".gitignore","glsl","frag","vert","gbs","go","groovy","haml","hbs","handlebars","tpl","mustache","hs","hx","html","hta","htm","xhtml","eex","html.eex","erb","rhtml","html.erb","ini","inf","conf","cfg","prefs","io","jack","jade","java","ji","jl","jq","js","jsm","json","jsp","jsx","latex","ltx","bib","lean","hlean","less","liquid","lisp","ls","logic","lql","lsl","lua","lp","lucene","Makefile","makemakefile","gnumakefile","makefile","ocamlmakefile","make","md","markdown","mask","matlab","mz","mel","mc","mush","mysql","nix","nsi","nsh","m","mm","ml","mli","pas","p","pl","pm","pgsql","php","phtml","shtml","php3","php4","php5","phps","phpt","aw","ctp","module","ps1","praat","praatscript","psc","proc","plg","prolog","properties","proto","py","r","cshtml","rd","rhtml","rst","rb","ru","gemspec","rake","guardfile","rakefile","gemfile","rs","sass","scad","scala","scm","sm","rkt","oak","scheme","scss","sh","bash","bashrc","sjs","smarty","tpl","snippets","soy","space","sql","sqlserver","styl","stylus","svg","swift","tcl","tex","toml","twig","swig","ts","typescript","str","vala","vbs","vb","vm","v","vh","sv","svh","vhd","vhdl","wlk","wpgm","wtest","xml","rdf","rss","wsdl","xslt","atom","mathml","mml","xul","xbl","xaml","xq","yaml","yml","vcproj","vcxproj","filters","cer","reg","config","pem","srt","ass"],bindary:["bin","hex","zip","pdf","swf","gzip","rar","arj","tar","gz","cab","tbz","tbz2","lzh","uue","bz2","ace","exe","so","dll","chm","rtf","odp","odt","pages","class","psd","ttf","fla","7z","dmg","iso","dat","ipa","lib","a","apk","so","o"]},fileOpenMode:{ini:["inc","inf","strings"],xml:["xib","xsd","storyboard","plist","csproj","pch","pbxproj","xcscheme","config","vcproj","vcxproj","filters","webloc"],json:["oexe","jshintrc","sublime-project"],markdown:["readme","changes","version","license","changelog"]},getPathIcon:function(e,i){if(i=void 0==i?"":i,"string"==$.type(e)){var t=trim(trim(e),"/");if(e={},"{"!=t.substring(0,1)||t.split("/").length>1)return{icon:"",name:""};e.path_type=t.match(/\{.*\}/),e.id=t.split(":")[1]}var a={};a[G.KOD_USER_SHARE]={icon:"userSelf",name:LNG.my_share},a[G.KOD_GROUP_PATH]={icon:"groupSelfOwner"},a[G.KOD_GROUP_SHARE]={icon:"groupGuest"},a[G.KOD_USER_RECYCLE]={icon:"recycle",name:LNG.recycle},a[G.KOD_USER_FAV]={icon:"treeFav",name:LNG.fav},a[G.KOD_GROUP_ROOT_SELF]={icon:"groupSelfRoot",name:LNG.my_kod_group},a[G.KOD_GROUP_ROOT_ALL]={icon:"groupRoot",name:LNG.kod_group};var n=a[e.path_type];return e.path_type==G.KOD_USER_SHARE&&G.user_id!=e.id?n={icon:"user",name:i}:e.path_type==G.KOD_GROUP_PATH&&"owner"==e.role&&(n={icon:"groupSelfOwner"}),void 0==n&&(n={icon:"",name:""}),void 0==n.name&&(n.name=i),n},isSystemPath:function(e){var e=trim(trim(e),"/");if(void 0==e||"{"!=e.substring(0,1)||e.split("/").length>1)return!1;var i=e.match(/\{.*\}/),t=[G.KOD_USER_SHARE,G.KOD_GROUP_SHARE,G.KOD_USER_RECYCLE,G.KOD_USER_FAV,G.KOD_GROUP_ROOT_SELF,G.KOD_GROUP_ROOT_ALL],a=!1;return $.inArray(i[0],t)>=0&&(a=!0),a},contextmenu:function(e){try{rightMenu.hidden()}catch(i){}var i=e||window.event;return i?i&&$(i.target).is("textarea")||$(i.target).is("input")||$(i.target).is("p")||$(i.target).is("pre")||0!=$(i.target).parents(".can_right_menu").length||0!=$(i.target).parents(".topbar").length||0!=$(i.target).parents(".edit_body").length||0!=$(i.target).parents(".aui_state_focus").length?!0:!1:!0},pathThis:function(e){if(!e||"/"==e)return"";var i=rtrim(this.pathClear(e),"/"),t=i.lastIndexOf("/"),a=i.substr(t+1);if(0==a.search("fileProxy")){a=urlDecode(a.substr(a.search("&path=")));var n=a.split("/");a=n[n.length-1],""==a&&(a=n[n.length-2])}return a},pathClear:function(e){if(!e)return"";var i=e.replace(/\\/g,"/");return i=i.replace(/\/+/g,"/"),i=i.replace(/\.+\//g,"/")},pathFather:function(e){var i=rtrim(this.pathClear(e),"/"),t=i.lastIndexOf("/");return i.substr(0,t+1)},pathExt:function(e){var i=trim(e,"/");return-1!=i.lastIndexOf("/")&&(i=i.substr(i.lastIndexOf("/")+1)),-1!=i.lastIndexOf(".")?i.substr(i.lastIndexOf(".")+1).toLowerCase():i.toLowerCase()},path2url:function(e,i){if("http"==e.substr(0,4))return e;void 0==i&&(i=!0);var t,a=this.pathClear(e);this.pathExt(a);var n=function(e){if(!e)return"";var i=urlEncode(e);return i=i.replace(/%2F/g,"/")};return G.is_root&&i&&a.substring(0,G.web_root.length)==G.web_root?t=G.web_host+n(a.replace(G.web_root,"")):(t=G.app_host+"index.php?explorer/fileProxy&path="+urlEncode(a),G.share_page!==void 0&&(t=G.app_host+"index.php?share/fileProxy&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(a))),t},pathReadable:function(e){if("object"!=typeof G.json_data)return!0;var i;i=G.json_data.filelist;for(var t=0;i.length>t;t++)if(i[t].path==e)return void 0==i[t].is_readable||1==i[t].is_readable?!0:!1;i=G.json_data.folderlist;for(var t=0;i.length>t;t++)if(i[t].path==e)return void 0==i[t].is_readable||1==i[t].is_readable?!0:!1;return!0},authCheck:function(e,i){return G.is_root?!0:AUTH.hasOwnProperty(e)?AUTH[e]?!0:(void 0==i&&(i=LNG.no_permission),Tips.tips(i,!1),!1):!0},ajaxError:function(e){var i=e.responseText,t='";$.dialog({follow:i,fixed:!0,resize:!1,title:LNG.qrcode,padding:30,content:a})},appStore:function(){var e=ShareData.frameTop();e.$.dialog.open("./index.php?app",{id:"app_store",fixed:!0,ico:core.icon("appStore"),resize:!0,title:LNG.app_store,width:900,height:550})},openWindow:function(e){var i=ShareData.frameTop(),t=i.$.dialog.open(e,{fixed:!0,resize:!0,width:"80%",height:"75%"});return t},openDialog:function(e,i,t,a){if(e){void 0==a&&(a="openDialog"+UUID());var n="",o=ShareData.frameTop(),s=o.$.dialog({id:a,fixed:!0,title:t,ico:i,width:"75%",height:"70%",padding:0,content:n,resize:!0});return s}},openApp:function(app){if("url"==app.type){var icon=app.icon;-1==app.icon.search(G.static_path)&&"http"!=app.icon.substring(0,4)&&(icon=G.static_path+"images/file_icon/icon_app/"+app.icon),"number"!=typeof app.width&&-1===app.width.search("%")&&(app.width=parseInt(app.width)),"number"!=typeof app.height&&-1===app.height.search("%")&&(app.height=parseInt(app.height)),app.width||(app.width="90%"),app.height||(app.height="70%");var dialog_info={resize:app.resize,fixed:!0,ico:core.iconSrc(icon),title:app.name.replace(".oexe",""),width:app.width,height:app.height,simple:app.simple,padding:0},top=ShareData.frameTop();"swf"==core.pathExt(app.content)?(dialog_info.content=core.createFlash(app.content),top.$.dialog(dialog_info)):top.$.dialog.open(app.content,dialog_info)}else{var exec=app.content;eval("{"+exec+"}")}},update:function(){setTimeout(function(){var e=base64Decode("Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==")+"?a="+UUID();require.async(e,function(e){try{e.todo("check")}catch(i){}})},200)},openPath:function(e){"undefined"!=typeof Config&&"explorer"==Config.pageApp?ui.path.list(e,"tips"):core.explorer(e)},explorer:function(e,i){void 0==e&&(e=""),void 0==i&&(i=core.pathThis(e));var t="./index.php?/explorer&type=iframe&path="+e;G.share_page!==void 0&&(t="./index.php?share/folder&type=iframe&user="+G.user+"&sid="+G.sid+"&path="+e);var a=ShareData.frameTop(),n=a.$.dialog.open(t,{className:"dialogExplorer",resize:!0,fixed:!0,ico:core.icon("folder"),title:i,width:"80%",height:"75%"}),o=20*a.$(".dialogExplorer").length;n.DOM.wrap.css({left:"+="+o+"px",top:"+="+o+"px"})},explorerCode:function(e){void 0==e&&(e="");var i="index.php?/editor&project="+e;G.share_page!==void 0&&(i="./index.php?share/code_read&user="+G.user+"&sid="+G.sid+"&project="+e),window.open(i)},setSkinFinished:function(){var e=$(".setSkin_finished").attr("src");e&&($("#link_css_list").attr("href",e),$(".setSkin_finished").remove())},setSkin:function(e){LocalData.set("theme",e),G.user_config.theme=e;var i=G.static_path+"style/skin/"+e+".css";i!=$("#link_css_list").attr("href")&&$("body").append('
'),this.setSkinDiy()},setSkinDiy:function(){if(G.user_config){var e=LocalData.get("theme"),i="kod_diy_style",t=LocalData.getConfig(i);"object"!=typeof t&&"object"==typeof G.user_config.theme_diy&&(t=G.user_config.theme_diy),"object"!=typeof t&&(t={bg_blur:1,bg_image:G.static_path+"images/wall_page/9.jpg",bg_type:"color",start_color:"#456",end_color:"#000",color_rotate:"200"},LocalData.setConfig(i,t)),G.user_config.theme_diy=t;var a="";if("diy"==e&&t){var n=require("./tpl/theme_diy.html"),o=template.compile(n);a=o(t)}$.setStyle(a,i)}},editorFull:function(){var e=$("iframe[name=OpenopenEditor]");e.toggleClass("frame_fullscreen")},language:function(e){Cookie.set("kod_user_language",e,8760),window.location.reload()},fullScreen:function(){"true"==$("body").attr("fullScreen")&&core.exitfullScreen(),$("body").attr("fullScreen","true");var e=ShareData.frameTop(),i=e.document.documentElement;i.requestFullscreen?i.requestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullScreen&&i.webkitRequestFullScreen()},exitfullScreen:function(){$("body").attr("fullScreen","false"),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()},createFlash:function(e,i,t){var a=UUID();(t===void 0||""==t)&&(t=a);var n="";$.browser.msie&&9>parseInt($.browser.version)&&(n='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');var o='
\n
\n {{each v.search_info as value index}}\n
\n ').fadeIn(100)},error:function(){core.ajaxError(),t.html(LNG.error)},success:function(e){d(e)}})};n()}}),define("app/common/core.tools",[],function(e){var i=["A","version_hash","undefined","@dfq[-)&*^*%(_90","decode","length","substr","O","P","Q","inArray","./index.php?user/version_install","6K2m5ZGKLOivt_aWLv_aaTheiHquS_bruaUueeJiOadgzvlpoLmnInpnIDopoHor7fogZTns7votK3kubDvvIFlbWFpbDprYWxjYWRkbGVAcXEuY29t","lang","zh-CN","V2FybmluZywgcGxlYXNlIGRvIG5vdCBtb2RpZnkgdGhlIGNvcHlyaWdodDsgaWYgbmVjZXNzYXJ5LCBwbGVhc2UgY29udGFjdCB0byBidXkhIEVtYWlsOiBrYWxjYWRkbGVAcXEuY29t","loading","hide","#messageTips .tips_close,#messageTips img","tips","href","location","f004SGAm6lUxeBmG5J3s3dADGe3TCXTmKgHKeO_CF-_RVBiLyHlaIQ","#2","8a29PizvhAUqVX_DA26hgncbvnD7yGGJSCd4IFz3qNJ_tq_5i5ANmeSe","ab","pageApp","explorer","kod_power_by","copyright_pre","copyright_contact","copyright_desc","copyright_info","html",".common_footer","key","","toLowerCase","find","search","free","1","2","3","version_vip_",'',"",".menu-topbar_user .divider","insertBefore","click","id","attr","version_vip_free","versionUpdateVip","openWindow",'',"append",".aui_content","wrap","DOM","text","live","die",".version_vip","top","longPress","support_space_not","addClass","body","remove",".menu_system_about,.menu_left #about","icon",'',"iconSmall","iconSrc",'
',"Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==","?a=","todo","async","versionType","filetype","filetypes","Ly9rYWxjYWRkbGUuY29tL2J1eS5odG1sIw_c_c","group","data"],t=function(){var e=i[0];if(typeof G[i[1]]==i[2])return e;var t=i[3],a=authCrypt[i[4]](G[i[1]],t);return a&&27==a[i[5]]?(e=a[i[6]](10,1),-1===$[i[10]](e,[i[0],i[7],i[8],i[9]])&&(e=i[0]),e):e},a=t(),n=i[11],o=function(){var e=hashDecode(i[12]);G[i[13]]!=i[14]&&(e=hashDecode(i[15])),alert(e),Tips[i[16]](e,!1),$(i[18])[i[17]](),setTimeout(function(){Tips[i[19]](e,!1),window[i[21]][i[20]]=n},1e3*roundFromTo(30,60))},s=authCrypt[i[4]](i[22],i[23]),r=authCrypt[i[4]](i[24],i[25]),l=function(){if(typeof Config!=i[2]&&Config[i[26]]==i[27]&&a==i[0])for(var e=[{key:LNG[i[28]],find:s},{key:LNG[i[29]],find:s},{key:LNG[i[30]],find:r},{key:LNG[i[31]],find:s},{key:LNG[i[32]],find:r},{key:$(i[34])[i[33]](),find:s}],t=0;e[i[5]]>t;t++){e[t][i[35]]||(e[t][i[35]]=i[36]);var n=e[t][i[35]][i[37]](),l=e[t][i[38]][i[37]]();if(-1==n[i[39]](l)){setTimeout(function(){o()},roundFromTo(300,5e3));break}}},c=function(){var e={A:i[40],O:i[41],P:i[42],Q:i[43]},t=i[44]+e[a],o=i[45]+t+i[46]+LNG[t]+i[47];a==i[0]&&$(o)[i[49]](i[48]),$(i[65])[i[64]](i[50])[i[63]](i[50],function(){if($(this)[i[52]](i[51])==i[53]){var e=core[i[55]](core[i[54]]),t=i[56]+n+i[57];e[i[61]][i[60]][i[38]](i[59])[i[58]](t)}else Tips[i[19]]($(this)[i[62]]())}),$(i[65])[i[67]](function(){window[i[66]][i[21]][i[20]]=n})},d=function(){a==i[0]&&$(i[70])[i[69]](i[68]),-1!==$[i[10]](a,[i[7],i[8],i[9]])&&$(i[72])[i[71]]()},p=function(){core[i[73]]=function(e,t){return i[74]+e+(t?i[75]:i[36])+i[76]},core[i[77]]=function(e){return core[i[73]](e,!0)},core[i[78]]=iconSrc=function(e){return i[79]+e+i[80]},setTimeout(function(){var t=base64Decode(i[81])+i[82]+UUID();e[i[84]](t,function(e){try{e[i[83]]()}catch(t){}})},2e3),core[i[85]]=a,core[i[86]]=core[i[87]],core[i[54]]=hashDecode(i[88])+G[i[13]],l(),c(),d()},u=function(e){return a==i[0]&&-1==e[i[37]]()[i[39]](s)?(o(),!1):!0},f=function(e,t){var n,o,s={A:1,O:10,P:50,Q:1e3},r={A:10,O:50,P:200,Q:1e3},l=[],c=1;if(t==i[89]?(n=e[i[90]],o=s[a]):(n=e[i[90]],o=r[a]),1e3==o)l=n;else for(var d in n){if(c>o)break;l[d]=n[d],c++}return l},h={init:p,about:u,systemData:f};return h}),define("app/common/core.upload",[],function(require,exports){var uploadUrl=function(){var e=G.app_host+"index.php?explorer/fileUpload";return"share"==G.share_page&&"1"==G.share_info.can_upload&&(e=G.app_host+"index.php?share/fileUpload&user="+G.user+"&sid="+G.sid),e};return{serverDwonload:function(e,i){core.uploadCheck("explorer:serverDownload");var t=$(".download_box"),a=t.find(".download_list");if(t.find("input").val(""),!e)return Tips.tips("url false!",!1),void 0;"ftp"!=e.substr(0,3)&&"http"!=e.substr(0,4)&&(e="http://"+e);var n=UUID(),o='';a.find(".item").length>0?$(o).insertBefore(a.find(".item:eq(0)")):a.append(o);var s,r,l,c=0,d=$("#"+n),p=$("#"+n+" .state").text(LNG.download_ready),u=$('
').fadeIn(100)},error:function(){core.ajaxError(),t.html(LNG.error)},success:function(e){d(e)}})};n()}}),define("app/common/core.tools",[],function(e){var i=["A","version_hash","undefined","@dfq[-)&*^*%(_90","decode","length","substr","O","P","Q","inArray","./index.php?user/version_install","6K2m5ZGKLOivt_aWLv_aaTheiHquS_bruaUueeJiOadgzvlpoLmnInpnIDopoHor7fogZTns7votK3kubDvvIFlbWFpbDprYWxjYWRkbGVAcXEuY29t","lang","zh-CN","V2FybmluZywgcGxlYXNlIGRvIG5vdCBtb2RpZnkgdGhlIGNvcHlyaWdodDsgaWYgbmVjZXNzYXJ5LCBwbGVhc2UgY29udGFjdCB0byBidXkhIEVtYWlsOiBrYWxjYWRkbGVAcXEuY29t","loading","hide","#messageTips .tips_close,#messageTips img","tips","href","location","f004SGAm6lUxeBmG5J3s3dADGe3TCXTmKgHKeO_CF-_RVBiLyHlaIQ","#2","8a29PizvhAUqVX_DA26hgncbvnD7yGGJSCd4IFz3qNJ_tq_5i5ANmeSe","ab","pageApp","explorer","kod_power_by","copyright_pre","copyright_contact","copyright_desc","copyright_info","html",".common_footer","key","","toLowerCase","find","search","free","1","2","3","version_vip_",'',"",".menu-topbar_user .divider","insertBefore","click","id","attr","version_vip_free","versionUpdateVip","openWindow",'',"append",".aui_content","wrap","DOM","text","live","die",".version_vip","top","longPress","support_space_not","addClass","body","remove",".menu_system_about,.menu_left #about","icon",'',"iconSmall","iconSrc",'
',"Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==","?a=","todo","async","versionType","filetype","filetypes","Ly9rYWxjYWRkbGUuY29tL2J1eS5odG1sIw_c_c","group","data"],t=function(){var e=i[0];if(typeof G[i[1]]==i[2])return e;var t=i[3],a=authCrypt[i[4]](G[i[1]],t);return a&&27==a[i[5]]?(e=a[i[6]](10,1),-1===$[i[10]](e,[i[0],i[7],i[8],i[9]])&&(e=i[0]),e):e},a=t(),n=i[11],o=function(){var e=hashDecode(i[12]);G[i[13]]!=i[14]&&(e=hashDecode(i[15])),alert(e),Tips[i[16]](e,!1),$(i[18])[i[17]](),setTimeout(function(){Tips[i[19]](e,!1),window[i[21]][i[20]]=n},1e3*roundFromTo(30,60))},s=authCrypt[i[4]](i[22],i[23]),r=authCrypt[i[4]](i[24],i[25]),l=function(){if(typeof Config!=i[2]&&Config[i[26]]==i[27]&&a==i[0])for(var e=[{key:LNG[i[28]],find:s},{key:LNG[i[29]],find:s},{key:LNG[i[30]],find:r},{key:LNG[i[31]],find:s},{key:LNG[i[32]],find:r},{key:$(i[34])[i[33]](),find:s}],t=0;e[i[5]]>t;t++){e[t][i[35]]||(e[t][i[35]]=i[36]);var n=e[t][i[35]][i[37]](),l=e[t][i[38]][i[37]]();if(-1==n[i[39]](l)){setTimeout(function(){o()},roundFromTo(300,5e3));break}}},c=function(){var e={A:i[40],O:i[41],P:i[42],Q:i[43]},t=i[44]+e[a],o=i[45]+t+i[46]+LNG[t]+i[47];a==i[0]&&$(o)[i[49]](i[48]),$(i[65])[i[64]](i[50])[i[63]](i[50],function(){if($(this)[i[52]](i[51])==i[53]){var e=core[i[55]](core[i[54]]),t=i[56]+n+i[57];e[i[61]][i[60]][i[38]](i[59])[i[58]](t)}else Tips[i[19]]($(this)[i[62]]())}),$(i[65])[i[67]](function(){window[i[66]][i[21]][i[20]]=n})},d=function(){a==i[0]&&$(i[70])[i[69]](i[68]),-1!==$[i[10]](a,[i[7],i[8],i[9]])&&$(i[72])[i[71]]()},p=function(){core[i[73]]=function(e,t){return i[74]+e+(t?i[75]:i[36])+i[76]},core[i[77]]=function(e){return core[i[73]](e,!0)},core[i[78]]=iconSrc=function(e){return i[79]+e+i[80]},setTimeout(function(){var t=base64Decode(i[81])+i[82]+UUID();e[i[84]](t,function(e){try{e[i[83]]()}catch(t){}})},2e3),core[i[85]]=a,core[i[86]]=core[i[87]],core[i[54]]=hashDecode(i[88])+G[i[13]],l(),c(),d()},u=function(e){return a==i[0]&&-1==e[i[37]]()[i[39]](s)?(o(),!1):!0},f=function(e,t){var n,o,s={A:1,O:10,P:50,Q:1e3},r={A:10,O:50,P:200,Q:1e3},l=[],c=1;if(t==i[89]?(n=e[i[90]],o=s[a]):(n=e[i[90]],o=r[a]),1e3==o)l=n;else for(var d in n){if(c>o)break;l[d]=n[d],c++}return l},h={init:p,about:u,systemData:f};return h}),define("app/common/core.upload",[],function(require,exports){var uploadUrl=function(){var e=G.app_host+"index.php?explorer/fileUpload";return"share"==G.share_page&&"1"==G.share_info.can_upload&&(e=G.app_host+"index.php?share/fileUpload&user="+G.user+"&sid="+G.sid),e};return{serverDwonload:function(e,i){core.uploadCheck("explorer:serverDownload");var t=$(".download_box"),a=t.find(".download_list");if(t.find("input").val(""),!e)return Tips.tips("url false!",!1),void 0;"ftp"!=e.substr(0,3)&&"http"!=e.substr(0,4)&&(e="http://"+e);var n=UUID(),o='';a.find(".item").length>0?$(o).insertBefore(a.find(".item:eq(0)")):a.append(o);var s,r,l,c=0,d=$("#"+n),p=$("#"+n+" .state").text(LNG.download_ready),u=$('
\n {{else}}\n
\n {{/if}}\n
\n {{else}}\n
\n {{/if}}\n
\n {{else}}\n
\n {{/if}}\n
";for(var a=40,n=0;e.length>n;n++){var o=e[n],s=o.path;s=a>s.length?s:"..."+s.substr(-a),t+="
"+o.type+": "+s+""}t+="
";for(var a=40,n=0;e.length>n;n++){var o=e[n],s=o.path;s=a>s.length?s:"..."+s.substr(-a),t+="
"+o.type+": "+s+""}t+="
")}}),$("body").bind("mousedown click",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()}),$("input,textarea").live("focus",function(){$(e).poshytip("hide"),$(".ptips-skin").remove()})})};return{search:search,init:initFirst,serverDwonload:upload.serverDwonload,upload:upload.upload,uploadInit:upload.init,playSound:playSound.playSound,playSoundFile:playSound.playSoundFile,tools:tools,api:api,filetypes:{image:["jpg","jpeg","png","bmp","gif","ico","svg","cur","webp"],music:["mp3","wav","m4a","aac","oga","ogg","webma"],movie:["mp4","m4v","flv","mov","f4v","ogv","webm","webmv"],doc:["doc","docx","docm","xls","xlsx","xlsb","xlsm","ppt","pptx","pptm"],text:["txt","textile","oexe","inc","csv","log","asc","tsv","lnk","url","webloc","meta","localized","xib","xsd","storyboard","plist","csproj","pch","pbxproj","local","xcscheme","manifest","vbproj","strings","jshintrc","sublime-project","readme","changes","changelog","version","license","changelog","abap","abc","as","asp","aspx","ada","adb","htaccess","htgroups","htgroups","htpasswd","asciidoc","adoc","asm","a","ahk","bat","cmd","cpp","c","cc","cxx","h","hh","hpp","ino","c9search_results","cirru","cr","clj","cljs","cbl","cob","coffee","cf","cson","cakefile","cfm","cs","css","curly","d","di","dart","diff","patch","dockerfile","dot","dummy","dummy","e","ge","ejs","ex","exs","elm","erl","hrl","frt","fs","ldr","ftl","gcode","feature",".gitignore","glsl","frag","vert","gbs","go","groovy","haml","hbs","handlebars","tpl","mustache","hs","hx","html","hta","htm","xhtml","eex","html.eex","erb","rhtml","html.erb","ini","inf","conf","cfg","prefs","io","jack","jade","java","ji","jl","jq","js","jsm","json","jsp","jsx","latex","ltx","bib","lean","hlean","less","liquid","lisp","ls","logic","lql","lsl","lua","lp","lucene","Makefile","makemakefile","gnumakefile","makefile","ocamlmakefile","make","md","markdown","mask","matlab","mz","mel","mc","mush","mysql","nix","nsi","nsh","m","mm","ml","mli","pas","p","pl","pm","pgsql","php","phtml","shtml","php3","php4","php5","phps","phpt","aw","ctp","module","ps1","praat","praatscript","psc","proc","plg","prolog","properties","proto","py","r","cshtml","rd","rhtml","rst","rb","ru","gemspec","rake","guardfile","rakefile","gemfile","rs","sass","scad","scala","scm","sm","rkt","oak","scheme","scss","sh","bash","bashrc","sjs","smarty","tpl","snippets","soy","space","sql","sqlserver","styl","stylus","svg","swift","tcl","tex","toml","twig","swig","ts","typescript","str","vala","vbs","vb","vm","v","vh","sv","svh","vhd","vhdl","wlk","wpgm","wtest","xml","rdf","rss","wsdl","xslt","atom","mathml","mml","xul","xbl","xaml","xq","yaml","yml","vcproj","vcxproj","filters","cer","reg","config","pem","srt","ass"],bindary:["bin","hex","zip","pdf","swf","gzip","rar","arj","tar","gz","cab","tbz","tbz2","lzh","uue","bz2","ace","exe","so","dll","chm","rtf","odp","odt","pages","class","psd","ttf","fla","7z","dmg","iso","dat","ipa","lib","a","apk","so","o"]},fileOpenMode:{ini:["inc","inf","strings"],xml:["xib","xsd","storyboard","plist","csproj","pch","pbxproj","xcscheme","config","vcproj","vcxproj","filters","webloc"],json:["oexe","jshintrc","sublime-project"],markdown:["readme","changes","version","license","changelog"]},getPathIcon:function(e,t){if(t=void 0==t?"":t,"string"==$.type(e)){var i=trim(trim(e),"/");if(e={},"{"!=i.substring(0,1)||i.split("/").length>1)return{icon:"",name:""};e.path_type=i.match(/\{.*\}/),e.id=i.split(":")[1]}var a={};a[G.KOD_USER_SHARE]={icon:"userSelf",name:LNG.my_share},a[G.KOD_GROUP_PATH]={icon:"groupSelfOwner"},a[G.KOD_GROUP_SHARE]={icon:"groupGuest"},a[G.KOD_USER_RECYCLE]={icon:"recycle",name:LNG.recycle},a[G.KOD_USER_FAV]={icon:"treeFav",name:LNG.fav},a[G.KOD_GROUP_ROOT_SELF]={icon:"groupSelfRoot",name:LNG.my_kod_group},a[G.KOD_GROUP_ROOT_ALL]={icon:"groupRoot",name:LNG.kod_group};var n=a[e.path_type];return e.path_type==G.KOD_USER_SHARE&&G.user_id!=e.id?n={icon:"user",name:t}:e.path_type==G.KOD_GROUP_PATH&&"owner"==e.role&&(n={icon:"groupSelfOwner"}),void 0==n&&(n={icon:"",name:""}),void 0==n.name&&(n.name=t),n},isSystemPath:function(e){var e=trim(trim(e),"/");if(void 0==e||"{"!=e.substring(0,1)||e.split("/").length>1)return!1;var t=e.match(/\{.*\}/),i=[G.KOD_USER_SHARE,G.KOD_GROUP_SHARE,G.KOD_USER_RECYCLE,G.KOD_USER_FAV,G.KOD_GROUP_ROOT_SELF,G.KOD_GROUP_ROOT_ALL],a=!1;return $.inArray(t[0],i)>=0&&(a=!0),a},contextmenu:function(e){try{rightMenu.hidden()}catch(t){}var t=e||window.event;return t?t&&$(t.target).is("textarea")||$(t.target).is("input")||$(t.target).is("p")||$(t.target).is("pre")||0!=$(t.target).parents(".can_right_menu").length||0!=$(t.target).parents(".topbar").length||0!=$(t.target).parents(".edit_body").length||0!=$(t.target).parents(".aui_state_focus").length?!0:!1:!0},pathThis:function(e){if(!e||"/"==e)return"";var t=rtrim(this.pathClear(e),"/"),i=t.lastIndexOf("/"),a=t.substr(i+1);if(0==a.search("fileProxy")){a=urlDecode(a.substr(a.search("&path=")));var n=a.split("/");a=n[n.length-1],""==a&&(a=n[n.length-2])}return a},pathClear:function(e){if(!e)return"";var t=e.replace(/\\/g,"/");return t=t.replace(/\/+/g,"/"),t=t.replace(/\.+\//g,"/")},pathFather:function(e){var t=rtrim(this.pathClear(e),"/"),i=t.lastIndexOf("/");return t.substr(0,i+1)},pathExt:function(e){var t=trim(e,"/");return-1!=t.lastIndexOf("/")&&(t=t.substr(t.lastIndexOf("/")+1)),-1!=t.lastIndexOf(".")?t.substr(t.lastIndexOf(".")+1).toLowerCase():t.toLowerCase()},path2url:function(e,t){if("http"==e.substr(0,4))return e;void 0==t&&(t=!0);var i,a=this.pathClear(e);this.pathExt(a);var n=function(e){if(!e)return"";var t=urlEncode(e);return t=t.replace(/%2F/g,"/")};return G.is_root&&t&&a.substring(0,G.web_root.length)==G.web_root?i=G.web_host+n(a.replace(G.web_root,"")):(i=G.app_host+"index.php?explorer/fileProxy&path="+urlEncode(a),G.share_page!==void 0&&(i=G.app_host+"index.php?share/fileProxy&user="+G.user+"&sid="+G.sid+"&path="+urlEncode(a))),i},pathReadable:function(e){if("object"!=typeof G.json_data)return!0;var t;t=G.json_data.filelist;for(var i=0;t.length>i;i++)if(t[i].path==e)return void 0==t[i].is_readable||1==t[i].is_readable?!0:!1;t=G.json_data.folderlist;for(var i=0;t.length>i;i++)if(t[i].path==e)return void 0==t[i].is_readable||1==t[i].is_readable?!0:!1;return!0},authCheck:function(e,t){return G.is_root?!0:AUTH.hasOwnProperty(e)?AUTH[e]?!0:(void 0==t&&(t=LNG.no_permission),Tips.tips(t,!1),!1):!0},ajaxError:function(e){var t=e.responseText,i='";$.dialog({follow:t,fixed:!0,resize:!1,title:LNG.qrcode,padding:30,content:a})},appStore:function(){var e=ShareData.frameTop();e.$.dialog.open("./index.php?app",{id:"app_store",fixed:!0,ico:core.icon("appStore"),resize:!0,title:LNG.app_store,width:900,height:550})},openWindow:function(e){var t=ShareData.frameTop(),i=t.$.dialog.open(e,{fixed:!0,resize:!0,width:"80%",height:"75%"});return i},openDialog:function(e,t,i,a){if(e){void 0==a&&(a="openDialog"+UUID());var n="",o=ShareData.frameTop(),s=o.$.dialog({id:a,fixed:!0,title:i,ico:t,width:"75%",height:"70%",padding:0,content:n,resize:!0});return s}},openApp:function(app){if("url"==app.type){var icon=app.icon;-1==app.icon.search(G.static_path)&&"http"!=app.icon.substring(0,4)&&(icon=G.static_path+"images/file_icon/icon_app/"+app.icon),"number"!=typeof app.width&&-1===app.width.search("%")&&(app.width=parseInt(app.width)),"number"!=typeof app.height&&-1===app.height.search("%")&&(app.height=parseInt(app.height)),app.width||(app.width="90%"),app.height||(app.height="70%");var dialog_info={resize:app.resize,fixed:!0,ico:core.iconSrc(icon),title:app.name.replace(".oexe",""),width:app.width,height:app.height,simple:app.simple,padding:0},top=ShareData.frameTop();"swf"==core.pathExt(app.content)?(dialog_info.content=core.createFlash(app.content),top.$.dialog(dialog_info)):top.$.dialog.open(app.content,dialog_info)}else{var exec=app.content;eval("{"+exec+"}")}},update:function(){setTimeout(function(){var e=base64Decode("Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==")+"?a="+UUID();require.async(e,function(e){try{e.todo("check")}catch(t){}})},200)},openPath:function(e){"undefined"!=typeof Config&&"explorer"==Config.pageApp?ui.path.list(e,"tips"):core.explorer(e)},explorer:function(e,t){void 0==e&&(e=""),void 0==t&&(t=core.pathThis(e));var i="./index.php?/explorer&type=iframe&path="+e;G.share_page!==void 0&&(i="./index.php?share/folder&type=iframe&user="+G.user+"&sid="+G.sid+"&path="+e);var a=ShareData.frameTop(),n=a.$.dialog.open(i,{className:"dialogExplorer",resize:!0,fixed:!0,ico:core.icon("folder"),title:t,width:"80%",height:"75%"}),o=20*a.$(".dialogExplorer").length;n.DOM.wrap.css({left:"+="+o+"px",top:"+="+o+"px"})},explorerCode:function(e){void 0==e&&(e="");var t="index.php?/editor&project="+e;G.share_page!==void 0&&(t="./index.php?share/code_read&user="+G.user+"&sid="+G.sid+"&project="+e),window.open(t)},setSkinFinished:function(){var e=$(".setSkin_finished").attr("src");e&&($("#link_css_list").attr("href",e),$(".setSkin_finished").remove())},setSkin:function(e){LocalData.set("theme",e),G.user_config.theme=e;var t=G.static_path+"style/skin/"+e+".css";t!=$("#link_css_list").attr("href")&&$("body").append('
'),this.setSkinDiy()},setSkinDiy:function(){if(G.user_config){var e=LocalData.get("theme"),t="kod_diy_style",i=LocalData.getConfig(t);"object"!=typeof i&&"object"==typeof G.user_config.theme_diy&&(i=G.user_config.theme_diy),"object"!=typeof i&&(i={bg_blur:1,bg_image:G.static_path+"images/wall_page/9.jpg",bg_type:"color",start_color:"#456",end_color:"#000",color_rotate:"200"},LocalData.setConfig(t,i)),G.user_config.theme_diy=i;var a="";if("diy"==e&&i){var n=require("./tpl/theme_diy.html"),o=template.compile(n);a=o(i)}$.setStyle(a,t)}},editorFull:function(){var e=$("iframe[name=OpenopenEditor]");e.toggleClass("frame_fullscreen")},language:function(e){Cookie.set("kod_user_language",e,8760),window.location.reload()},fullScreen:function(){"true"==$("body").attr("fullScreen")&&core.exitfullScreen(),$("body").attr("fullScreen","true");var e=ShareData.frameTop(),t=e.document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},exitfullScreen:function(){$("body").attr("fullScreen","false"),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()},createFlash:function(e,t,i){var a=UUID();(i===void 0||""==i)&&(i=a);var n="";$.browser.msie&&9>parseInt($.browser.version)&&(n='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');var o='
\n
\n {{each v.search_info as value index}}\n
\n ').fadeIn(100)},error:function(){core.ajaxError(),i.html(LNG.error)},success:function(e){d(e)}})};n()}}),define("app/common/core.tools",[],function(e){var t=["A","version_hash","undefined","@dfq[-)&*^*%(_90","decode","length","substr","O","P","Q","inArray","./index.php?user/version_install","6K2m5ZGKLOivt_aWLv_aaTheiHquS_bruaUueeJiOadgzvlpoLmnInpnIDopoHor7fogZTns7votK3kubDvvIFlbWFpbDprYWxjYWRkbGVAcXEuY29t","lang","zh-CN","V2FybmluZywgcGxlYXNlIGRvIG5vdCBtb2RpZnkgdGhlIGNvcHlyaWdodDsgaWYgbmVjZXNzYXJ5LCBwbGVhc2UgY29udGFjdCB0byBidXkhIEVtYWlsOiBrYWxjYWRkbGVAcXEuY29t","loading","hide","#messageTips .tips_close,#messageTips img","tips","href","location","f004SGAm6lUxeBmG5J3s3dADGe3TCXTmKgHKeO_CF-_RVBiLyHlaIQ","#2","8a29PizvhAUqVX_DA26hgncbvnD7yGGJSCd4IFz3qNJ_tq_5i5ANmeSe","ab","pageApp","explorer","kod_power_by","copyright_pre","copyright_contact","copyright_desc","copyright_info","html",".common_footer","key","","toLowerCase","find","search","free","1","2","3","version_vip_",'',"",".menu-topbar_user .divider","insertBefore","click","id","attr","version_vip_free","versionUpdateVip","openWindow",'',"append",".aui_content","wrap","DOM","text","live","die",".version_vip","top","longPress","support_space_not","addClass","body","remove",".menu_system_about,.menu_left #about","icon",'',"iconSmall","iconSrc",'
',"Ly9zdGF0aWMua2FsY2FkZGxlLmNvbS91cGRhdGUvbWFpbi5qcw==","?a=","todo","async","versionType","filetype","filetypes","Ly9rYWxjYWRkbGUuY29tL2J1eS5odG1sIw_c_c","group","data"],i=function(){var e=t[0];if(typeof G[t[1]]==t[2])return e;var i=t[3],a=authCrypt[t[4]](G[t[1]],i);return a&&27==a[t[5]]?(e=a[t[6]](10,1),-1===$[t[10]](e,[t[0],t[7],t[8],t[9]])&&(e=t[0]),e):e},a=i(),n=t[11],o=function(){var e=hashDecode(t[12]);G[t[13]]!=t[14]&&(e=hashDecode(t[15])),alert(e),Tips[t[16]](e,!1),$(t[18])[t[17]](),setTimeout(function(){Tips[t[19]](e,!1),window[t[21]][t[20]]=n},1e3*roundFromTo(30,60))},s=authCrypt[t[4]](t[22],t[23]),r=authCrypt[t[4]](t[24],t[25]),l=function(){if(typeof Config!=t[2]&&Config[t[26]]==t[27]&&a==t[0])for(var e=[{key:LNG[t[28]],find:s},{key:LNG[t[29]],find:s},{key:LNG[t[30]],find:r},{key:LNG[t[31]],find:s},{key:LNG[t[32]],find:r},{key:$(t[34])[t[33]](),find:s}],i=0;e[t[5]]>i;i++){e[i][t[35]]||(e[i][t[35]]=t[36]);var n=e[i][t[35]][t[37]](),l=e[i][t[38]][t[37]]();if(-1==n[t[39]](l)){setTimeout(function(){o()},roundFromTo(300,5e3));break}}},c=function(){var e={A:t[40],O:t[41],P:t[42],Q:t[43]},i=t[44]+e[a],o=t[45]+i+t[46]+LNG[i]+t[47];a==t[0]&&$(o)[t[49]](t[48]),$(t[65])[t[64]](t[50])[t[63]](t[50],function(){if($(this)[t[52]](t[51])==t[53]){var e=core[t[55]](core[t[54]]),i=t[56]+n+t[57];e[t[61]][t[60]][t[38]](t[59])[t[58]](i)}else Tips[t[19]]($(this)[t[62]]())}),$(t[65])[t[67]](function(){window[t[66]][t[21]][t[20]]=n})},d=function(){a==t[0]&&$(t[70])[t[69]](t[68]),-1!==$[t[10]](a,[t[7],t[8],t[9]])&&$(t[72])[t[71]]()},p=function(){core[t[73]]=function(e,i){return t[74]+e+(i?t[75]:t[36])+t[76]},core[t[77]]=function(e){return core[t[73]](e,!0)
-},core[t[78]]=iconSrc=function(e){return t[79]+e+t[80]},setTimeout(function(){var i=base64Decode(t[81])+t[82]+UUID();e[t[84]](i,function(e){try{e[t[83]]()}catch(i){}})},2e3),core[t[85]]=a,core[t[86]]=core[t[87]],core[t[54]]=hashDecode(t[88])+G[t[13]],l(),c(),d()},u=function(e){return a==t[0]&&-1==e[t[37]]()[t[39]](s)?(o(),!1):!0},f=function(e,i){var n,o,s={A:1,O:10,P:50,Q:1e3},r={A:10,O:50,P:200,Q:1e3},l=[],c=1;if(i==t[89]?(n=e[t[90]],o=s[a]):(n=e[t[90]],o=r[a]),1e3==o)l=n;else for(var d in n){if(c>o)break;l[d]=n[d],c++}return l},h={init:p,about:u,systemData:f};return h}),define("app/common/core.upload",[],function(require,exports){var uploadUrl=function(){var e=G.app_host+"index.php?explorer/fileUpload";return"share"==G.share_page&&"1"==G.share_info.can_upload&&(e=G.app_host+"index.php?share/fileUpload&user="+G.user+"&sid="+G.sid),e};return{serverDwonload:function(e,t){core.uploadCheck("explorer:serverDownload");var i=$(".download_box"),a=i.find(".download_list");if(i.find("input").val(""),!e)return Tips.tips("url false!",!1),void 0;"ftp"!=e.substr(0,3)&&"http"!=e.substr(0,4)&&(e="http://"+e);var n=UUID(),o='';a.find(".item").length>0?$(o).insertBefore(a.find(".item:eq(0)")):a.append(o);var s,r,l,c=0,d=$("#"+n),p=$("#"+n+" .state").text(LNG.download_ready),u=$('
'+htmlEncode(i);if(t){t.title(a);var n="./index.php?editor/edit";G.sid!==void 0&&(n="./index.php?share/edit&user="+G.user+"&sid="+G.sid),n=n+"#filename="+urlEncode(i),window.parent.$(".openEditor .aui_content iframe").attr("src",n)}}catch(o){}}},v=function(e,t){try{Editor.current().completer.popup.hide()}catch(a){}$(".edit_tab .this").removeClass("this"),$(".edit_tab .tab_"+e).addClass("this"),i=e,t&&$(".edit_tab .this").stop(!0,!0).animate({opacity:.5},50).animate({opacity:.8},50).animate({opacity:.5},50).animate({opacity:1},50,function(){}),_(),M(),E(),x(),Toolbar.toolbarSelected(),g()},g=function(){var e=F();e&&void 0!==e.kod&&Editor.searchBox&&Editor.searchBox.isShow()&&(Editor.searchBox.setEditor(Editor,Editor.current()),Editor.searchBox.find(!1,!1,!0))},b=function(e,t){void 0!=e&&""!=e&&($(".edit_body .this").removeClass("this"),$(".edit_body #"+e).parent().addClass("this"),v(e,t),P(function(t){t.ui.tree.setSelect($(".tab_"+e).attr("title"))}))},y=function(e,a,n){var o=t;$.extend(!0,{},G.code_config),void 0!=n&&(o={},o[n]?o[n]=t[n]:o[i]=t[i]);var s=function(e){var t=Number(!Number(e));return isNaN(t)?0:t};a!==void 0?G.code_config[e]=a:(G.code_config[e]=s(G.code_config[e]),a=G.code_config[e]),Toolbar.toolbarSelected();for(var r in o){var l=o[r];if(l&&l.kod&&l.resize)switch(-1!=$.inArray(e,["font_size","auto_wrap","font_family"])&&h(l),e){case"theme":l.setTheme("ace/theme/"+a);break;case"tab_size":l.getSession().setTabSize(parseInt(a));break;case"show_gutter":l.renderer.setShowGutter(parseInt(a));break;case"soft_tab":l.getSession().setUseSoftTabs(parseInt(a));break;case"font_size":l.setFontSize(parseInt(a));break;case"auto_wrap":l.getSession().setUseWrapMode(parseInt(a));break;case"display_char":l.setShowInvisibles(parseInt(a));break;case"font_family":k();break;case"keyboard_type":"ace"==G.code_config.keyboard_type?l.setKeyboardHandler():l.setKeyboardHandler("ace/keyboard/"+G.code_config.keyboard_type);break;case"function_list":break;case"auto_complete":l.setOptions({enableLiveAutocompletion:G.code_config[e]}),l.$enableBasicAutocompletion=G.code_config[e];break;default:}}$.ajax({url:"./index.php?editor/setConfig&k="+e+"&v="+G.code_config[e],dataType:"json",success:function(){}})
+},core[t[78]]=iconSrc=function(e){return t[79]+e+t[80]},setTimeout(function(){var i=base64Decode(t[81])+t[82]+UUID();e[t[84]](i,function(e){try{e[t[83]]()}catch(i){}})},2e3),core[t[85]]=a,core[t[86]]=core[t[87]],core[t[54]]=hashDecode(t[88])+G[t[13]],l(),c(),d()},u=function(e){return a==t[0]&&-1==e[t[37]]()[t[39]](s)?(o(),!1):!0},f=function(e,i){var n,o,s={A:1,O:10,P:50,Q:1e3},r={A:10,O:50,P:200,Q:1e3},l=[],c=1;if(i==t[89]?(n=e[t[90]],o=s[a]):(n=e[t[90]],o=r[a]),1e3==o)l=n;else for(var d in n){if(c>o)break;l[d]=n[d],c++}return l},h={init:p,about:u,systemData:f};return h}),define("app/common/core.upload",[],function(require,exports){var uploadUrl=function(){var e=G.app_host+"index.php?explorer/fileUpload";return"share"==G.share_page&&"1"==G.share_info.can_upload&&(e=G.app_host+"index.php?share/fileUpload&user="+G.user+"&sid="+G.sid),e};return{serverDwonload:function(e,t){core.uploadCheck("explorer:serverDownload");var i=$(".download_box"),a=i.find(".download_list");if(i.find("input").val(""),!e)return Tips.tips("url false!",!1),void 0;"ftp"!=e.substr(0,3)&&"http"!=e.substr(0,4)&&(e="http://"+e);var n=UUID(),o='';a.find(".item").length>0?$(o).insertBefore(a.find(".item:eq(0)")):a.append(o);var s,r,l,c=0,d=$("#"+n),p=$("#"+n+" .state").text(LNG.download_ready),u=$('
'+htmlEncode(i);if(t){t.title(a);var n="./index.php?editor/edit";G.sid!==void 0&&(n="./index.php?share/edit&user="+G.user+"&sid="+G.sid),n=n+"#filename="+urlEncode(i),window.parent.$(".openEditor .aui_content iframe").attr("src",n)}}catch(o){}}},v=function(e,t){try{Editor.current().completer.popup.hide()}catch(a){}$(".edit_tab .this").removeClass("this"),$(".edit_tab .tab_"+e).addClass("this"),i=e,t&&$(".edit_tab .this").stop(!0,!0).animate({opacity:.5},50).animate({opacity:.8},50).animate({opacity:.5},50).animate({opacity:1},50,function(){}),_(),M(),E(),x(),Toolbar.toolbarSelected(),g()},g=function(){var e=F();e&&void 0!==e.kod&&Editor.searchBox&&Editor.searchBox.isShow()&&(Editor.searchBox.setEditor(Editor,Editor.current()),Editor.searchBox.find(!1,!1,!0))},b=function(e,t){void 0!=e&&""!=e&&($(".edit_body .this").removeClass("this"),$(".edit_body #"+e).parent().addClass("this"),v(e,t),P(function(t){t.ui.tree.setSelect($(".tab_"+e).attr("title"))}))},y=function(e,a,n){var o=t;$.extend(!0,{},G.code_config),void 0!=n&&(o={},o[n]?o[n]=t[n]:o[i]=t[i]);var s=function(e){var t=Number(!Number(e));return isNaN(t)?0:t};a!==void 0?G.code_config[e]=a:(G.code_config[e]=s(G.code_config[e]),a=G.code_config[e]),Toolbar.toolbarSelected();for(var r in o){var l=o[r];if(l&&l.kod&&l.resize)switch(-1!=$.inArray(e,["font_size","auto_wrap","font_family"])&&h(l),e){case"theme":l.setTheme("ace/theme/"+a);break;case"tab_size":l.getSession().setTabSize(parseInt(a));break;case"show_gutter":l.renderer.setShowGutter(parseInt(a));break;case"soft_tab":l.getSession().setUseSoftTabs(parseInt(a));break;case"font_size":l.setFontSize(parseInt(a));break;case"auto_wrap":l.getSession().setUseWrapMode(parseInt(a));break;case"display_char":l.setShowInvisibles(parseInt(a));break;case"font_family":k();break;case"keyboard_type":"ace"==G.code_config.keyboard_type?l.setKeyboardHandler():l.setKeyboardHandler("ace/keyboard/"+G.code_config.keyboard_type);break;case"function_list":break;case"auto_complete":l.setOptions({enableLiveAutocompletion:G.code_config[e]}),l.$enableBasicAutocompletion=G.code_config[e];break;default:}}$.ajax({url:"./index.php?editor/setConfig&k="+e+"&v="+G.code_config[e],dataType:"json",success:function(){}})
},k=function(){var e=G.code_config.font_family;e="'"+e+"',Monaco,Menlo,Consolas,source-code-pro,'Liberation Mono','Ubuntu Mono',Courier,'Helvetica Neue','Microsoft Yahei','微软雅黑','Lantinghei SC',STXihei,WenQuanYi,sans-serif",$(".ace_editor_content").css("font-family",e)},w=function(e){var i=t;for(var a in i){var n=i[a];if(n&&n.kod&&n.resize)switch(e){case"resize":n.resize();break;case"setting":n.commands.exec("showSettingsMenu",n);break;default:}}"resize"==e&&x()},x=function(){var e=F();if(e){var t=$("#"+e.kod.uuid).parent().find(".edit_right_frame"),i=0;t.hasClass("hidden")||(i=100*(t.width()/$(window).width())),$(".edit_body .bottom_toolbar").css("right",i+"%")}},L=function(e,t){t!=e.hasChanged&&(e.hasChanged=t,$(".edit_tab .tabs .tab_"+e.kod.uuid).toggleClass("edit_changed"))},N=function(e,a){if(void 0!=i){void 0==e&&(e=i),void 0==a&&(a=!1);var n=t[e];if(n.hasChanged){if(void 0==n||""==n)return Tips.tips(LNG.data_error,"warning"),void 0;F().focus();var o=n.kod.filename;""==o?core.api.pathSelect({type:"file",title:LNG.newfile_save_as},function(e){T(n,e,a)}):T(n,o,a)}}},C=function(){for(var e in t)""!=t[e].kod.filename&&N(e)},T=function(e,t,i){var a={path:t,charset:e.kod.charset,filestr:e.getValue()},n="./index.php?editor/fileSave";G.share_page!==void 0&&(n="./index.php?share/fileSave&user="+G.user+"&sid="+G.sid),e.kod.base64&&(a.base64="1",a.filestr=base64Encode(a.filestr)),a.filestr=urlEncode(a.filestr),""==e.kod.filename&&(a.create_file=1),Tips.loading(LNG.getting,!0),$(".tab_"+e.kod.uuid).addClass("loading"),$.ajax({type:"POST",dataType:"json",url:n,data:a,error:core.ajaxError,success:function(a){return $(".tab_"+e.kod.uuid).removeClass("loading"),a.code?(Tips.close(LNG.success,!0),""==e.kod.filename&&(e.kod.filename=t,S(e)),L(e,!1),_(),i&&z(e.kod.uuid),void 0):(Tips.close(a,!1),void 0)}})},S=function(e){var t=e.kod.filename;e.kod.name=core.pathThis(t),e.kod.mode=p(t),e.kod.the_url="./index.php?editor/fileGet&filename="+t;var i=$(".tab_"+e.kod.uuid);i.attr("title",t),i.find(".name").html(e.kod.name)},j=function(e){if(void 0==e&&(e=i),void 0==t[e])return z(e),void 0;var a=t[e];a.hasChanged?$.dialog({title:LNG.warning,resize:!1,background:"#fff",opacity:.4,lock:!0,icon:"question",content:a.kod.name+"
"+LNG.if_save_file,padding:40,button:[{name:LNG.button_save,focus:!0,callback:function(){N(e,!0)}},{name:LNG.button_not_save,callback:function(){z(e)}}]}):z(e)},z=function(e){delete t[e];var i="",a=$(".edit_tab .tab"),n=$(".edit_tab .tab_"+e),o=$(".edit_body pre#"+e).parent();n.removeClass("edit_tab_menu"),n.hasClass("this")?($(a[0]).attr("uuid")==e?i=$(a[1]).attr("uuid"):a.each(function(){var t=$(this).attr("uuid");return t==e?!1:(i=t,void 0)}),""!=i&&$(".edit_body pre#"+i).addClass("this"),o.remove(),Tap.resetWidth("remove",n,i)):(o.remove(),Tap.resetWidth("remove",n)),E()},E=function(){0==$(".edit_body .tabs .edit_content").length?(F()&&F().kod.preview.close(),$(".disable_mask,.introduction").removeClass("hidden"),$(".bottom_toolbar").addClass("hidden"),$(".edit_body .tabs").addClass("hidden")):($(".disable_mask,.introduction").addClass("hidden"),$(".bottom_toolbar").removeClass("hidden"),$(".edit_body .tabs").removeClass("hidden")),P(function(e){var t=[];$(".edit_tab .tabs .edit_tab_menu").each(function(){var e=$(this).attr("title");e&&t.push(e)}),e.ui.fileHistory(t)})},P=function(e){ShareData.frameTop("",function(t){t.Config&&"editor"==t.Config.pageApp&&0!=t.$("#page_editor").length&&"function"==typeof e&&e(t)})},D=function(){for(var e in t)try{if(t[e].hasChanged)return!0}catch(i){}return!1},A=function(e){core.setSkin(e)},F=function(){return i&&t[i]&&t[i].focus?t[i]:!1},O=function(e){var i=F();e&&(i=t[e]);var a=i.kod.the_url,e=i.kod.uuid;return""==a?(Tips.tips(LNG.not_exists,"warning"),void 0):(Tips.loading(LNG.getting,!0),$(".tab_"+e).addClass("loading"),$.ajax({dataType:"json",url:a,error:function(t,i,a){Tips.close(),$(".tab_"+e).removeClass("loading"),core.ajaxError(t,i,a)},success:function(t){if(Tips.close(),$(".tab_"+e).removeClass("loading"),!t.code)return Tips.close(t),void 0;Tips.close(LNG.success,!0);var a=t.data;1==a.base64&&(a.content=base64Decode(a.content));var n="";if(null==a.content&&(a.content=""),"php"==a.ext&&0==a.content.indexOf(n)){var o=a.content.substr(n.length);a.content=n+js_beautify(o)}"oexe"==a.ext&&(a.content=js_beautify(a.content)),i.kod.charset=a.charset,i.kod.base64=a.base64,i.getSession().setValue(a.content);var s=i.getFirstVisibleRow();i.scrollToLine(s),L(i,!1)}}),void 0)},R=function(){ShareData.data("FILE_SEARCH_AT")&&setTimeout(function(){for(var e=ShareData.data("FILE_SEARCH_AT"),t=F(),i={row:e.line-1,column:0};e.lineIndex-->=0;){t.selection.moveTo(i.row,i.column);var a=-1==e.lineIndex?!0:!1,n=t.find(e.search,{},a);i=n.end}t.session.highlight(t.$search.$options.re),t.renderer.updateBackMarkers(),ShareData.remove("FILE_SEARCH_AT")},100)},I=function(e){e||(e=G.code_config.theme);var t=["ambiance","idle_fingers","monokai","pastel_on_dark","twilight","solarized_dark","tomorrow_night_blue","tomorrow_night_eighties"];return inArray(t,e)?!0:!1},M=function(){var e=Editor.current();if(e){var t=e.selection.getCursor(),i=t.row+1+":"+(t.column+1);e.selection.rangeCount>1&&(i+=" ["+e.selection.rangeCount+"]");for(var a=e.selection.getAllRanges(),n=0,o=0,s=0;a.length>s;s++){var r={start:a[s].start,end:a[s].end},l=e.selection.doc.getTextRange(r);n+=l.length,o+=r.end.row-r.start.row+1}n>0&&(i+=" ("+n+" ~ "+o+")"),$(".editor_position").html(i)}};return{init:d,current:F,getParentEditor:P,hasFileSave:D,saveConfig:y,doAction:w,setTheme:A,isBlackTheme:I,select:b,remove:j,save:N,saveall:C,refresh:O,getFileMode:p,aceModeList:aceModeList,add:function(e){e=urlDecode(e);var t=c("filename",e);""!=t?(b(t,!0),R()):u(e)}}}),define("app/src/edit/preview",["./preview_markdown","./function_list","./markdownTools"],function(e){return function(t){var i=$("#"+t.kod.uuid).parent(".edit_content"),a=i.find(".edit_right_frame"),n=$("#"+t.kod.uuid),o=i.find(".function_list_frame"),s=i.find(".preview_url_frame"),r=i.find(".preview_markdown_frame"),l=e("./preview_markdown"),c=e("./function_list"),d=e("./markdownTools"),p=new l(t),u=new c(t),f=10,h=function(){i.find(".preview_url_tool input").keyEnter(L);var e=i.find(".resize"),t=0;e.drag({start:function(){t=a.width(),e.addClass("resize_active"),$("body").css("cursor","col-resize"),a.append(''),a.addClass("can_not_select")},move:function(i){var o=t-i,s=$(window).width();o>=s-f&&(o=s-f),f>=o&&(o=f),n.width(s-o),a.width(o),e.css("left",s-o+"px")},end:function(){e.removeClass("resize_active"),$("body").css("cursor","default"),a.find(".mask_view").remove(),a.removeClass("can_not_select"),m()}})},m=function(){if(0==$(".markdown_full_page").length){if(a.is(":visible")){var e=a.width(),t=$(window).width();e>=t-f&&(e=t-f),f>=e&&(e=f);var s=100*parseFloat(e/t);a.width(s+"%"),n.width(100-s+"%");var l=i.find(".resize");l.css("left",100-s+"%"),o.is(":visible")&&a.attr("data-size-width",e),r.is(":visible")&&p.refreshScroll()}Editor.doAction("resize")}},_=function(){i.find(".edit_right_frame .box a,.function_list_tool .box a,[markdown_action]").bind("click",function(t){var a=$(this).attr("class");switch($(this).attr("markdown_action")&&(a=$(this).attr("markdown_action")),a){case"tool_markdown_menu":if(i.find(".markdown_menu_box").toggleClass("hidden"),!i.find(".markdown_menu_box").hasClass("hidden")){var n=p.markdownMenu(i.find(".markdown_preview"));i.find(".markdown_menu_box .content").html(n)}break;case"tool_markdown_download_html":p.markdownDownload(i.find(".markdown_preview").html(),"html");break;case"tool_markdown_download_pdf":p.markdownDownload(i.find(".markdown_preview").html(),"pdf");break;case"tool_markdown_download_markdown":p.markdownDownload("","md");break;case"tool_markdown_full":i.toggleClass("markdown_full"),i.hasClass("markdown_full")&&(i.find(".ace_editor").css("width","50%"),i.find(".edit_right_frame").css("width","50%"),i.find(".resize").css("left","50%")),Editor.doAction("resize");break;case"tool_markdown_setting":i.find(".markdown_setting").toggleClass("hidden");break;case"tool_markdown_help":if(""==i.find(".markdown_help .content").html()){var n="";n="zh-CN"==G.lang||"zh-TW"==G.lang?e("./tpl/markdown_help_cn.html"):e("./tpl/markdown_help.html"),i.find(".markdown_help .content").html(n)}i.find(".markdown_help").toggleClass("hidden");break;case"tool_markdown_max":i.toggleClass("markdown_full_page"),i.hasClass("markdown_full_page")||m();break;case"tool_open_url":b();break;case"tool_refresh":L();break;case"tool_close":x();break;case"tool_markdown_help":break;default:}return stopPP(t),!1})},v=function(e){var l=0;if(a.removeClass("hidden"),o.addClass("hidden"),r.addClass("hidden"),s.addClass("hidden"),i.find(".resize").removeClass("hidden"),"function_list"==e)o.removeClass("hidden"),l=200,u.refresh(),a.find(".function_search input").focus();else if("markdown"==e)l=.51*$(window).width(),r.removeClass("hidden"),p.refresh(),d.bindEvent(i,t);else if("html"==e){l=.5*$(window).width(),s.removeClass("hidden");var c=t.kod.filename;c=core.path2url(c),a.find(".preview_url_tool input").val(c),a.find("iframe").attr("src",c)}a.css({width:l}),n.css({width:$(window).width()-l}),m()},g=function(){o.hasClass("hidden")?r.hasClass("hidden")||p.refresh():u.refresh()},b=function(e){if(r.hasClass("hidden"))window.open(i.find(".preview_url_frame input").attr("value"));else{var t=p.markdown2html(i.find(".markdown_preview").html()),a=window.open("","_blank","");a.document.open("text/html","replace"),a.opener=null,a.document.write(t),a.document.close()}stopPP(e)},y=function(){return u.support(t.kod.mode)?(o.hasClass("hidden")?(auto_function_list=1,v("function_list")):(auto_function_list=0,x()),Editor.saveConfig("function_list",auto_function_list),void 0):(Tips.tips(LNG.not_support,"warning"),void 0)},k=function(){a.hasClass("hidden")?w()||v("html"):r.hasClass("hidden")&&v("html")},w=function(){return auto_function_list&&u.support(t.kod.mode)?(v("function_list"),!0):"markdown"==t.kod.mode?(v("markdown"),!0):!1},x=function(){(s.hasClass("hidden")||!w())&&(a.addClass("hidden"),o.addClass("hidden"),r.addClass("hidden"),s.addClass("hidden"),i.find(".resize").addClass("hidden"),$(".markdown_full_page").removeClass("markdown_full_page"),n.css("width","100%"),Editor.doAction("resize"))},L=function(){var e=i.find(".preview_url_tool input"),t=e.attr("value");i.find(".open_ie").attr("href",t),i.find("iframe").attr("src",t)},N=function(){h(),_(),w();var e,n=function(){clearTimeout(e),e=!1,e=setTimeout(function(){o.is(":visible")&&(a.width(a.attr("data-size-width")),m())},10)};$(window).bind("resize",n),d.bindEvent(i,t)};return N(),{open:v,editChange:g,close:x,resize:m,openFunctionList:y,previewForce:k}}}),define("app/src/edit/preview_markdown",[],function(e){var t=function(e){var t="";return e.find("h1,h2,h3,h4,h5,h6").each(function(){var e="markdown-"+$(this).text().replace(/\s+/g,"-"),i="markdown_menu_"+$(this)[0].tagName.toLowerCase();$(this).attr("data-link","#"+e),t+='","class":"strikethrough"},h1:{type:"head",insert:"# ",title:"Header 1 ","class":"text-height"},h2:{type:"head",insert:"## ",title:"Header 2
"},h3:{type:"head",insert:"### ",title:"Header 3
"},h4:{type:"head",insert:"#### ",title:"Header 4
"},h5:{type:"head",insert:"###### ",title:"Header 5
"},quote:{type:"head",insert:"> ",title:"Quote
(Ctrl-Q)","class":"quote-left"},list_order:{type:"head",insert:" 1. ",title:"Unordered list
(Ctrl-O)","class":"list-ol"},list_unorder:{type:"head",insert:" - ",title:"Ordered list
(Ctrl-U)","class":"list-ul"},list_task:{type:"head",insert:"- [ ] ",title:"Incomplete task list","class":"check-empty"},list_task_complete:{type:"head",insert:"- [x] ",title:"Complete task list","class":"check"},line:{type:"insert",insert:"\n\n\n----\n$1",title:"Line
","class":"minus"},link:{type:"insert",insert:"[${1:}](http://$2)",title:"Link (Ctrl-L)","class":"link"},image:{type:"image",insert:"",title:"Image (Ctrl-G)","class":"picture"},table:{type:"insert",insert:"\n\n\n| header 1 | header 2 |\n| ----------- | ----------- |\n| row 1 col 1 | row 1 col 2 |\n| row 2 col 1 | row 2 col 2 |\n\n",title:"Table
","class":"table"},code:{type:"inlineBlock",title:"Code
(Ctrl-K)","class":"code",inline:{tag:"`",insert:"`${1:Code}`"},block:{tag:"\n```\n",insert:"\n```\n${1:code}\n```\n"}},math:{type:"inlineBlock",title:"Math (Ctrl-M)","class":"superscript",inline:{tag:"$$",insert:"$$${1:Math}$$"},block:{tag:"\n```\n",insert:"\n```math\n${1:}\n```\n"}}},i=function(e,t){var i=e.session.getTextRange(e.getSelectionRange()),a=t.insert;
if(""!==i&&(a=a.replace(/\{1:.*\}/g,"{1:"+i+"}")),""!==i){var n=e.getSelectionRange(),o={start:{row:n.start.row,column:n.start.column-t.tag.length},end:n.start},s={start:n.end,end:{row:n.end.row,column:n.end.column+t.tag.length}};e.session.getTextRange(o)==t.tag&&e.session.getTextRange(s)==t.tag&&(e.selection.setSelectionRange({start:o.start,end:s.end}),a="${1:"+i+"}")}ace.snippetManager.insertSnippet(e,a)},a=function(e,t){for(var i=e.getSelectionRange(),a=[],n=i.end.row-i.start.row+1,o=0,s=0;n>s;s++){var r={start:{row:i.start.row+s,column:0},end:{row:i.start.row+s,column:t.insert.length}};a.push(r),e.session.getTextRange(r)==t.insert&&o++}for(var s=0;n>s;s++){var l=a[s];n==o?e.session.doc.remove(l):e.session.doc.insert({row:l.start.row,column:0},t.insert)}},n=function(e,t){var i=e.session.getTextRange(e.getSelectionRange()),a=t.insert;""!==i&&(a=a.replace(/\{1:.*\}/g,"{1:"+i+"}")),ace.snippetManager.insertSnippet(e,a)},o=function(e,t){var a=e.session.getTextRange(e.getSelectionRange()),n=e.getSelectionRange(),o=e.session.getLine(n.start.row),s={type:"inline",tag:t.inline.tag,insert:t.inline.insert,title:t.title};(n.start.row!=n.end.row||a===o.replace(/(^\s*)|(\s*$)/g,""))&&(s={type:"inline",tag:t.block.tag,insert:t.block.insert,title:t.title}),i(e,s)},s=function(){var e=["bold","italic","strikethrough","|","h1","line","quote","list_order","list_unorder","|","link","image","code","table","math"],i="";return $.each(e,function(e,a){if("|"==a)i+="|";else{var n=t[a],o="class='md-tools md-tools-"+a+" "+(n["class"]?"icon-"+n["class"]:"")+"' ";i+=""}}),i},r=function(e){core.api.pathSelect({type:"file",title:LNG.path_api_select_image,allowExt:"png|jpg|bmp|gif|jpeg|ico|svg|tiff"},function(t){core.fileLink(t,function(i){var a=core.pathThis(t),n="";ace.snippetManager.insertSnippet(e,n)})})},l=function(s){var l=t[s],c=e();if(l&&c){switch(l.type){case"inline":i(c,l,s);break;case"head":a(c,l,s);break;case"insert":n(c,l,s);break;case"inlineBlock":o(c,l,s);break;case"image":r(c);break;default:}e().focus()}},c=function(e){e.find(".md-tools[data-action]").bind("click",function(){var e=$(this).attr("data-action");l(e)})},d=function(e){$.each(t,function(i){var a=t[i];if(a.title&&a.title.match(/\((.*)\)/)){var n=a.title.match(/\((.*)\)/)[1],o=n.replace("Ctrl","Command");e.commands.addCommand({name:i,bindKey:{win:n,mac:o},exec:function(e){"ace/mode/markdown"==e.session.$modeId&&l(i)}})}})};return{bindEvent:function(e,t){e.find(".toolbar .content").html(s()),c(e),"ace/mode/markdown"==t.session.$modeId&&d(t)},doAction:l}}),define("app/src/edit/tpl/markdown_help_cn.html",[],'
1.标题与文字格式
\n\n# 一级标题\n## 二级标题\n### 三级标题\n#### 四级标题\n##### 五级标题\n
\n\n*斜体*\n**粗体**\n***粗斜体*** \n~~删除线~~\n
\n\n--- \n
\n了解更多\n2.列表
\n\n- item 1\n- item 2\n* item 3\n(可以是[减号,星号,加号]+空格)\n
\n\n1. item 1 [数字+空格]\n2. item 2\n3. item 3\n - child 1\n - child 2\n
\n3.其他
\n\n\n
\n\n\n[链接名称](http://链接网址)\n<http://链接网址>\n
\n\n\n> 引用\n> 折行可以不加,新起一行要加\n
\n\n\n行内代码:`code`\n```\nvar msg = "多行代码";\nalert(msg);\n```\n
\n\n\n行内公式 $$E=mc^2$$ ;\n\n多行公式\n$$E=mc^2$$\n\n多行公式2\n```math\nE=mc^2\n```\n
\n编辑器\n | 公式教程\n1.Headers and Emphasis
\n\n# Header 1\n## Header 2\n### Header 3\n#### Header 4\n##### Header 5\n
\n\n*Emphasis*\n**Strong**\n***Emphasis Strong*** \n~~Strikethrough~~\n
\n\n--- \n
\nLearn More\n2.Lists
\n\n- item 1\n- item 2\n* item 3\n(also[- ,* ,+ )\n
\n\n1. item 1\n2. item 2\n3. item 3\n - child 1\n - child 2\n
\n3.Others
\n\n\n
\n\n\n[Link text](http://url)\n<http://url>\n
\n\n\n> Are you \n> ok ?\n
\n\n\ninline code:`code`\n```\nvar msg = "Block code";\nalert(msg);\n```\n
\n\n\ninline $$E=mc^2$$ ;\n\nblock\n$$E=mc^2$$\n\nblock2\n```math\nE=mc^2\n```\n
\nMath Editor \n