9212a8e20ebbb8a60acbde9f23bfb3df287a064d.svn-base
55.2 KB
(function(tool,data){var $=tool(),app={data:undefined,type:$.customerType(),init:function(val){var data=val;data&&$.jsonp({src:data[0]+".js",callback:data[1],time:1E4,failFn:this.jsonpFailure,fn:this.jsonpSuccess})},loadDom:function(){var daa=this.data,head=function(){if(daa.headTitle)this.append($("\x3ch1.title\x3e").html(daa.headTitle));if(daa.headLink)for(var k in daa.headLink){var v=daa.headLink[k];this.append('\x3ca target\x3d"_blank" href\x3d"'+v+'"\x3e'+k+"\x3c/a\x3e")}return this},sidebar=function(){var head=$("\x3cdiv.sidebar-head\x3e"),body=$("\x3cdiv.sidebar-body\x3e"),menu=$("\x3cul\x3e"),searchBox=$("\x3cul.search\x3e"),copyright=$("\x3cdiv.sidebar-copyright\x3e"),up=app.updateContent,dataChange=function(title,data){var typeFn={string:function(tit,daa){this.title=tit;var daa=daa.split(":");if(daa.length<=1)return this;this.type=daa[0];if(daa[0].indexOf(".open")>-1){this.open=true;this.type=this.type.replace(/\.open/g,"")}if(daa[0].indexOf("[")>0&&daa[0].indexOf("]")>0){this.type=this.type.replace(/\[.*\]/g,"");this.notes=daa[0].substring(daa[0].indexOf("[")+1,daa[0].indexOf("]"))}daa[1]=daa[1].split("\x3d\x3e");this.name=daa[1].length>1?daa[1][0]:"data";this.key=daa[1].length>1?daa[1][1]:daa[1][0];return this},array:function(tit,daa){$.objAssign(this,new typeFn.string(tit,daa[0]+":"+daa[1]));this.data={};for(var i=2;i<daa.length;i++){var v=daa[i];if(v instanceof Array)this.data[v[0]]=new typeFn.string(v[0],v[1]+":"+v[2]);else if(typeof v=="object")this.data[v.name]=new typeFn.object(v.name,v);else if(typeof v=="string"){v=v.split(",");this.data[v[0]]=new typeFn.string(v[0],v[1])}}return this},object:function(tit,daa){$.objAssign(this,new typeFn.string(tit,daa.type+":"+daa.value));this.data={};for(var k in daa){var v=daa[k];if(v instanceof Array)this.data[k]=new typeFn.array(k,v);else if(typeof v=="object")this.data[k]=new typeFn.string(k,v.type+":"+v.value);else if(typeof v=="string")this.data[k]=new typeFn.string(k,v)}return this}};if(typeof data=="string")return new typeFn.string(title,data);else if(data instanceof Array)return new typeFn.array(title,data);else if(typeof data=="object")return new typeFn.object(title,data)},inputFn=function(){var val=this.dom.val();searchBox.remove();if(val!=""){body.append(searchBox.html(""));body.child("li").each(function(dom){if(dom.child("ul").length>0)return;if(dom.text().indexOf(val)>-1){var domParent=dom.parent().parent(),daaGroup=domParent.tagName("li")?false:true,daaName=$(domParent.child("a")[0]).html().replace(/<\em>.*<\/em>/g,""),daaKey=dom.html().replace(/<\em>.*<\/em>|<\a>|<\/a>/g,""),daa=daaGroup?{key:daaName,val:app.tmp.menu[daaName],notes:app.tmp.menu[daaName]["notes"]}:{key:daaKey,val:app.tmp.menu[daaName]["data"][daaKey],notes:app.tmp.menu[daaName]["data"][daaKey]["notes"]};searchBox.append($("\x3cli\x3e").html(function(){return $("\x3ca\x3e").html(function(){var ret=daa.key.replace(val,'\x3cb style\x3d"color:#4183c4"\x3e'+val+"\x3c/b\x3e"),notes=daa.notes&&"\x3cem\x3e"+daa.notes.replace(val,'\x3cb style\x3d"color:#4183c4"\x3e'+val+"\x3c/b\x3e")+"\x3cem\x3e";return ret+(notes||"")}).on("click",daa.val,clickFn)}))}});searchBox.html().length<1&&searchBox.html("\x3cp\x3e\u6682\u65e0\u76f8\u5173\u641c\u7d22\u7ed3\u679c\uff01\x3c/p\x3e")}},clickFn=function(){var parameter=this.parameter,dom=this.dom,up=app.updateContent;body.child("li").removeClass("active");if(parameter.type!="group")up[parameter.type+"Fn"]&&up[parameter.type+"Fn"](parameter);else dom.parent().toggleClass("open");dom.parent().addClass("active")};if(daa.sidebar.title)head.append($("\x3cp.title\x3e").html(daa.sidebar.title));if(daa.sidebar.search){var search=$("\x3cdiv.search-form\x3e");search.append($("\x3cinput\x3e").attr({type:"text",placeholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5173\u952e\u8bcd..."}).on("input",inputFn)).append($("\x3cbutton\x3e"));head.append(search)}body.append(menu);for(var k in daa.sidebar.data){var v=new dataChange(k,daa.sidebar.data[k]),li=$("\x3cli\x3e");app.tmp=app.tmp||{};app.tmp.menu=app.tmp.menu||{};app.tmp.menu[k]=v;if(!v.type)continue;menu.append(li.html(function(){return $("\x3ca\x3e").on("click",v,clickFn).html(k+(v.notes?"\x3cem\x3e"+v.notes+"\x3c/em\x3e":""))}).addClass(v.open&&"open"));if(v.type=="group"){var ul=$("\x3cul\x3e");li.append(ul);for(var k2 in v.data){var v2=v.data[k2];if(!v2.type)continue;ul.append($("\x3cli\x3e").html(function(){return $("\x3ca\x3e").on("click",v2,clickFn).html(k2+(v2.notes?"\x3cem\x3e"+v2.notes+"\x3c/em\x3e":""))}))}}}if(daa.sidebar.copyright)copyright.html(daa.sidebar.copyright);this.append(head).append(body).append(copyright);return this},workspace=function(){var article=$("\x3cdiv.article\x3e");article.html($("\x3cdiv.article-head\x3e").html($("\x3cp.title\x3e")));article.append($("\x3cdiv.article-body\x3e"));this.append(article);daa.progress&&this.append($("\x3cdiv.tool-progress\x3e"));daa.progress&&article.on("scroll",function(){$("div.tool-progress").width((this.dom[0]["scrollTop"]/(this.dom[0]["scrollHeight"]-this.dom[0]["clientHeight"])*100).toFixed(2)+"%")});this.append($("\x3cbutton.tool-menu\x3e").on("click",function(){if($("body").attr("fn")==null)$("body").attr("fn","");else $("body").removeAttr("fn")}));return this};$("body").html($("\x3cdiv.head\x3e").fn(head)).append($("\x3cdiv.sidebar\x3e").fn(sidebar)).append($("\x3cdiv.workspace\x3e").fn(workspace))},updateContent:{content:function(html){return $(".article .article-body").html(html)},title:function(html){return $(".article .article-head .title").html(html)},dataChange:function(data){if(typeof data=="string"){var daa=data.split(",");this.title=daa.length>1?daa[0]:"";daa=(daa.length>1?daa[1]:daa[0]).split("\x3d\x3e");this.name=daa.length>1?daa[0]:"data";this.key=daa.length>1?daa[1]:daa[0];this.val=app.data.data[this.name][this.key];this.data=app.data.data}else if(typeof data=="object"){this.name=data.name;this.key=data.key;this.val=app.data.data[this.name][this.key];this.data=app.data.data;this.title=data.title}},dataFn:function(data){var daa=new this.dataChange(data),generate=function(parentEle,log){var typeFn={string:{"init":function(ele,data){if(data.indexOf("type:")==0)this.type(data,ele);else ele.append(data)},"type":function(data,ele){var assembly=app.updateContent.assembly,daa=data.split(":");daa=daa[1].split(",");assembly[daa[0]]&&assembly[daa[0]](daa,ele)}},object:{"init":function(ele,data){var html;if(data.type)this.type(data,ele);else for(var k in data){var v=data[k];if(v instanceof HTMLElement)ele.append($(v));else if(v instanceof Array)typeFn.array.init(ele,v)}},"type":function(data){var assembly=app.updateContent.assembly;data=[data.type,[data.type,data.name,data.data]];if(data[1][2]instanceof Array){var daa=data[1][2];for(var i=0;i<daa.length;i++)data[1][i+2]=daa[i]}assembly[data[0]]&&assembly[data[0]](data[1],ele)}},array:{"init":function(ele,data){var html;if(data[0].indexOf("type:")>-1)this.type(data,ele);else{html=$("\x3c"+data[0]+"\x3e");if(typeof data[1]=="object")if(data[1]instanceof Array)this[$.multiAry(data[1])?1:0](html,data[1]);else typeFn.object.init(html,data[1]);if(typeof data[1]=="string")html.html(data[1]);html.attr(typeof data[2]=="object"?data[2]:{});typeof data[3]=="function"&&data[3]["call"](html,html);typeof data[2]=="function"&&data[2]["call"](html,html)}ele.append(html)},0:function(ele,data){this.init(ele,data)},1:function(ele,data){for(var k in data)this.init(ele,data[k])},"type":function(data,ele){var assembly=app.updateContent.assembly,type=data[0].substring(data[0].indexOf(":")+1);assembly[type]&&assembly[type](data,ele)}}};if(this instanceof Array)typeFn.array.init(parentEle,this);else if(typeof this=="string"||this instanceof String)typeFn.string.init(parentEle,this);else if(typeof this=="object")typeFn.object.init(parentEle,this)};if(typeof data=="boolean")return generate;var ele=this.content(""),elePra=ele.parent();app.up&&elePra.attr("state","load");if(daa.val){this.title(daa.title);for(var k in daa.val){var v=daa.val[k];generate.call(v,ele)}}else{this.title("");this.content('\x3ch3\x3e\u5728\u8bfb\u53d6\u8d44\u6e90\u4e2d\u53d1\u751f\u4e86\u9519\u8bef\uff01\x3c/h3\x3e\x3cblockquote\x3e\u539f\u56e0\uff1a\x3cli\x3e\u6570\u636e\u5e76\u4e0d\u4e0d\u5b58\u5728\x3c/li\x3e\x3cli\x3e\u8bfb\u53d6\u6570\u636e\u7684\u6307\u5411\u503c\u4e0d\u6b63\u786e\x3c/li\x3e\x3c/blockquote\x3e\x3cfont class\x3d"lose"\x3e404\x3c/font\x3e')}elePra[0]["scrollTop"]=0;setTimeout(function(){app.up&&elePra.attr("state","ready")},500);app.up=app.up?app.up:true},assembly:{href:function(data,ele){var daa=data[1].split(","),title=daa[0],val=daa[1],generate=app.updateContent.dataFn(true);generate.call([data[2],data[3],data[4],function(){typeof data[5]=="function"&&data[5]();this.on("click",function(){var daa=val.split("\x3d\x3e"),name=daa.length>1?daa[0]:"data",key=daa.length>1?daa[1]:daa[0];$(".sidebar-body").child(".active").removeClass("active");app.updateContent.dataFn({name:name,key:key,title:title})})}],ele)},layObj:function(data,ele){var id=data[1],introduce=this.introduce,code=$("#"+id).child("li");code.each(function(dom){var v=$(dom).text();if(v.indexOf(":")>0){v=v.substring(0,v.indexOf(":"));introduce(["introduce","obj\x3d\x3e"+v],ele)}})},table:function(data,ele){var tableBox=$("\x3cdiv.table\x3e"),table=$("\x3ctable\x3e"),tableTh=$("\x3cthead\x3e"),tableThTr=$("\x3ctr\x3e"),tableTb=$("\x3ctbody\x3e"),thDaa=data[1].split(","),tbDaa=data[2].split(",");tableTh.html(tableThTr);for(var k in thDaa){var v=thDaa[k].split("|");tableThTr.append($("\x3cth\x3e").html(v[0]).attr("width",v[1]?v[1]:""))}for(var i=0;i<tbDaa.length;i=i+thDaa.length){var tr=$("\x3ctr\x3e");for(var n=i;n<i+thDaa.length&&n<tbDaa.length;n++)tr.append($("\x3ctd\x3e").html(tbDaa[n]));tableTb.append(tr)}ele.append(tableBox.append(table.append(tableTh).append(tableTb)))},introduce:function(data,ele){var data=data[1].split("\x3d\x3e"),name=data.length>1?data[0]:"data",key=data.length>1?data[1]:data[0],daa=app.data.data[name][key],generate=app.updateContent.dataFn(true);for(var k in daa){var v=daa[k];generate.call(v,ele,1)}},code:function(data,ele){var js={beautify:function(js_source_text,indent_size,indent_character,indent_level){var input,output,token_text,last_type,last_text,last_word,current_mode,modes,indent_string;var whitespace,wordchar,punct,parser_pos,line_starters,in_case;var prefix,token_type,do_block_just_closed,var_line,var_line_tainted;function trim_output(){while(output.length&&(output[output.length-1]===" "||output[output.length-1]===indent_string))output.pop()}function print_newline(ignore_repeated){ignore_repeated=typeof ignore_repeated==="undefined"?true:ignore_repeated;trim_output();if(!output.length)return;if(output[output.length-1]!=="\n"||!ignore_repeated)output.push("\n");for(var i=0;i<indent_level;i++)output.push(indent_string)}function print_space(){var last_output=output.length?output[output.length-1]:" ";if(last_output!==" "&&last_output!=="\n"&&last_output!==indent_string)output.push(" ")}function print_token(){output.push(token_text)}function indent(){indent_level++}function unindent(){if(indent_level)indent_level--}function remove_indent(){if(output.length&&output[output.length-1]===indent_string)output.pop()}function set_mode(mode){modes.push(current_mode);current_mode=mode}function restore_mode(){do_block_just_closed=current_mode==="DO_BLOCK";current_mode=modes.pop()}function in_array(what,arr){for(var i=0;i<arr.length;i++)if(arr[i]===what)return true;return false}function get_next_token(){var n_newlines=0;var c="";do{if(parser_pos>=input.length)return["","TK_EOF"];c=input.charAt(parser_pos);parser_pos+=1;if(c==="\n")n_newlines+=1}while(in_array(c,whitespace));if(n_newlines>1)for(var i=0;i<2;i++)print_newline(i===0);var wanted_newline=n_newlines===1;if(in_array(c,wordchar)){if(parser_pos<input.length)while(in_array(input.charAt(parser_pos),wordchar)){c+=input.charAt(parser_pos);parser_pos+=1;if(parser_pos===input.length)break}if(parser_pos!==input.length&&c.match(/^[0-9]+[Ee]$/)&&input.charAt(parser_pos)==="-"){parser_pos+=1;var t=get_next_token(parser_pos);c+="-"+t[0];return[c,"TK_WORD"]}if(c==="in")return[c,"TK_OPERATOR"];return[c,"TK_WORD"]}if(c==="("||c==="[")return[c,"TK_START_EXPR"];if(c===")"||c==="]")return[c,"TK_END_EXPR"];if(c==="{")return[c,"TK_START_BLOCK"];if(c==="}")return[c,"TK_END_BLOCK"];if(c===";")return[c,"TK_END_COMMAND"];if(c==="/"){var comment="";if(input.charAt(parser_pos)==="*"){parser_pos+=1;if(parser_pos<input.length)while(!(input.charAt(parser_pos)==="*"&&input.charAt(parser_pos+1)&&input.charAt(parser_pos+1)==="/")&&parser_pos<input.length){comment+=input.charAt(parser_pos);parser_pos+=1;if(parser_pos>=input.length)break}parser_pos+=2;return["/*"+comment+"*/","TK_BLOCK_COMMENT"]}if(input.charAt(parser_pos)==="/"){comment=c;while(input.charAt(parser_pos)!=="\r"&&input.charAt(parser_pos)!=="\n"){comment+=input.charAt(parser_pos);parser_pos+=1;if(parser_pos>=input.length)break}parser_pos+=1;if(wanted_newline)print_newline();return[comment,"TK_COMMENT"]}}if(c==="'"||c==='"'||c==="/"&&(last_type==="TK_WORD"&&last_text==="return"||(last_type==="TK_START_EXPR"||last_type==="TK_END_BLOCK"||last_type==="TK_OPERATOR"||last_type==="TK_EOF"||last_type==="TK_END_COMMAND"))){var sep=c;var esc=false;c="";if(parser_pos<input.length)while(esc||input.charAt(parser_pos)!==sep){c+=input.charAt(parser_pos);if(!esc)esc=input.charAt(parser_pos)==="\\";else esc=false;parser_pos+=1;if(parser_pos>=input.length)break}parser_pos+=1;if(last_type==="TK_END_COMMAND")print_newline();return[sep+c+sep,"TK_STRING"]}if(in_array(c,punct)){while(parser_pos<input.length&&in_array(c+input.charAt(parser_pos),punct)){c+=input.charAt(parser_pos);parser_pos+=1;if(parser_pos>=input.length)break}return[c,"TK_OPERATOR"]}return[c,"TK_UNKNOWN"]}indent_character=indent_character||" ";indent_size=indent_size||4;indent_string="";while(indent_size--)indent_string+=indent_character;input=js_source_text;last_word="";last_type="TK_START_EXPR";last_text="";output=[];do_block_just_closed=false;var_line=false;var_line_tainted=false;whitespace="\n\r\t ".split("");wordchar="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$".split("");punct="+ - * / % \x26 ++ -- \x3d +\x3d -\x3d *\x3d /\x3d %\x3d \x3d\x3d \x3d\x3d\x3d !\x3d !\x3d\x3d \x3e \x3c \x3e\x3d \x3c\x3d \x3e\x3e \x3c\x3c \x3e\x3e\x3e \x3e\x3e\x3e\x3d \x3e\x3e\x3d \x3c\x3c\x3d \x26\x26 \x26\x3d | || ! !! , : ? ^ ^\x3d |\x3d".split(" ");line_starters="continue,try,throw,return,var,if,switch,case,default,for,while,break,function".split(",");current_mode="BLOCK";modes=[current_mode];indent_level=indent_level||0;parser_pos=0;in_case=false;while(true){var t=get_next_token(parser_pos);token_text=t[0];token_type=t[1];if(token_type==="TK_EOF")break;switch(token_type){case "TK_START_EXPR":var_line=false;set_mode("EXPRESSION");if(last_type==="TK_END_EXPR"||last_type==="TK_START_EXPR");else if(last_type!=="TK_WORD"&&last_type!=="TK_OPERATOR")print_space();else if(in_array(last_word,line_starters)&&last_word!=="function")print_space();print_token();break;case "TK_END_EXPR":print_token();restore_mode();break;case "TK_START_BLOCK":if(last_word==="do")set_mode("DO_BLOCK");else set_mode("BLOCK");if(last_type!=="TK_OPERATOR"&&last_type!=="TK_START_EXPR")if(last_type==="TK_START_BLOCK")print_newline();else print_space();print_token();indent();break;case "TK_END_BLOCK":if(last_type==="TK_START_BLOCK"){trim_output();unindent()}else{unindent();print_newline()}print_token();restore_mode();break;case "TK_WORD":if(do_block_just_closed){print_space();print_token();print_space();break}if(token_text==="case"||token_text==="default"){if(last_text===":")remove_indent();else{unindent();print_newline();indent()}print_token();in_case=true;break}prefix="NONE";if(last_type==="TK_END_BLOCK")if(!in_array(token_text.toLowerCase(),["else","catch","finally"]))prefix="NEWLINE";else{prefix="SPACE";print_space()}else if(last_type==="TK_END_COMMAND"&&(current_mode==="BLOCK"||current_mode==="DO_BLOCK"))prefix="NEWLINE";else if(last_type==="TK_END_COMMAND"&¤t_mode==="EXPRESSION")prefix="SPACE";else if(last_type==="TK_WORD")prefix="SPACE";else if(last_type==="TK_START_BLOCK")prefix="NEWLINE";else if(last_type==="TK_END_EXPR"){print_space();prefix="NEWLINE"}if(last_type!=="TK_END_BLOCK"&&in_array(token_text.toLowerCase(),["else","catch","finally"]))print_newline();else if(in_array(token_text,line_starters)||prefix==="NEWLINE")if(last_text==="else")print_space();else if((last_type==="TK_START_EXPR"||last_text==="\x3d")&&token_text==="function");else if(last_type==="TK_WORD"&&(last_text==="return"||last_text==="throw"))print_space();else if(last_type!=="TK_END_EXPR"){if((last_type!=="TK_START_EXPR"||token_text!=="var")&&last_text!==":")if(token_text==="if"&&last_type==="TK_WORD"&&last_word==="else")print_space();else print_newline()}else{if(in_array(token_text,line_starters)&&last_text!==")")print_newline()}else if(prefix==="SPACE")print_space();print_token();last_word=token_text;if(token_text==="var"){var_line=true;var_line_tainted=false}break;case "TK_END_COMMAND":print_token();var_line=false;break;case "TK_STRING":if(last_type==="TK_START_BLOCK"||last_type==="TK_END_BLOCK")print_newline();else if(last_type==="TK_WORD")print_space();print_token();break;case "TK_OPERATOR":var start_delim=true;var end_delim=true;if(var_line&&token_text!==","){var_line_tainted=true;if(token_text===":")var_line=false}if(token_text===":"&&in_case){print_token();print_newline();break}in_case=false;if(token_text===","){if(var_line)if(var_line_tainted){print_token();print_newline();var_line_tainted=false}else{print_token();print_space()}else if(last_type==="TK_END_BLOCK"){print_token();print_newline()}else if(current_mode==="BLOCK"){print_token();print_newline()}else{print_token();print_space()}break}else if(token_text==="--"||token_text==="++")if(last_text===";"){start_delim=true;end_delim=false}else{start_delim=false;end_delim=false}else if(token_text==="!"&&last_type==="TK_START_EXPR"){start_delim=false;end_delim=false}else if(last_type==="TK_OPERATOR"){start_delim=false;end_delim=false}else if(last_type==="TK_END_EXPR"){start_delim=true;end_delim=true}else if(token_text==="."){start_delim=false;end_delim=false}else if(token_text===":")if(last_text.match(/^\d+$/))start_delim=true;else start_delim=false;if(start_delim)print_space();print_token();if(end_delim)print_space();break;case "TK_BLOCK_COMMENT":print_newline();print_token();print_newline();break;case "TK_COMMENT":print_space();print_token();print_newline();break;case "TK_UNKNOWN":print_token();break}last_type=token_type;last_text=token_text}return output.join("")},color:function(js_str){var colorMap={"stateEve":"#DB7800","version":"#DB7800","clientInfo":"#DB7800","pcIn":"#DB7800","imgReg":"#DB7800","tipsReg":"#DB7800","mask":"#DB7800","getAlias":"#DB7800","alias":"#DB7800","getjQuery":"#DB7800","getLayer":"#DB7800","control":"#DB7800","p":"#DB7800","pop":"#DB7800","alert":"#DB7800","news":"#DB7800","confirm":"#DB7800","iframe":"#DB7800","prompt":"#DB7800","custom":"#DB7800","lateral":"#DB7800","wait":"#DB7800","cfg":"#DB7800","close":"#DB7800","getinput":"#DB7800","log":"#366DC6","console":"#366DC6","function":"#366DC6","true":"#C043EB","false":"#C043EB","(":"#000",")":"#000","{":"#000","}":"#000","[":"#000","]":"#000","'":"#248C85"},characters=js_str.split(""),keywords=new Array,colorize=function(word,color){return"\x3cspan style\x3d'color:"+color+"'\x3e"+word+"\x3c/span\x3e"};for(var i=0;i<characters.length;i++)if(i==0)keywords.push(characters[0]);else{var letterPattern=/[a-z]/i;if(letterPattern.test(characters[i-1])&&letterPattern.test(characters[i])){var mid=keywords.pop();keywords.push(mid+characters[i])}else keywords.push(characters[i])}for(var i=0;i<keywords.length;i++){if(colorMap[keywords[i]]!=undefined)keywords[i]=colorize(keywords[i],colorMap[keywords[i]]);if(keywords[i]=="\x3c")keywords[i]="\x3c";if(keywords[i]=="\x3e")keywords[i]="\x3e";if(keywords[i]==" ")keywords[i]=" "}return keywords.join("")}},codeBox=$("\x3cdiv.editor\x3e"),title=$("\x3cp\x3e").html("code"),evalBtn=$("\x3cbutton\x3e").html("eval"),ollist=$("\x3col\x3e").attr("contenteditable","true"),codeDaa=js.beautify(data[2]).split(/[\n]/);data[1].length>0&&title.html(data[1]);for(var k in codeDaa){var v=codeDaa[k];ollist.append($("\x3cli\x3e").html(js.color(v)))}evalBtn.on("click",function(){eval(ollist.text())});if(data[3])codeBox.attr("id",data[3]);ele.append(codeBox.append(title.append(evalBtn)).append(ollist))}}},headSet:function(js){var head=$("head"),script=js,src=script.length>0&&script.attr("src"),val=script.length>0&&src.substring(src.indexOf("?")+1).split("\x26");head.append(function(){return data[0].length>0&&$("\x3cstyle\x3e").attr({name:"document",type:"text/css"}).html(data[0])}).append(function(){return data[1].length>0&&$("\x3clink[rel\x3da]\x3e").attr({name:"document",href:data[1],rel:"shortcut icon"})});script.removeAttr("src").attr({name:"documenet"}).html("js\u7248\u6587\u6863\u63d2\u4ef6");return val},jsonpSuccess:function(ev){app.data=ev;app.loadDom();var type=ev.initial_DATA instanceof Array?true:false,daa=ev.initial_DATA;app.updateContent.dataFn(daa[type?"1":"title"]+","+daa[type?"0":"value"]);$("title").html(app.data.title)},jsonpFailure:function(){},show:function(){$("body").attr("app",app.type=="PC"?"pc":"mb")}},val=app.headSet($($("script")[0]));$(function(){app.init(val);$(true,app.show)})})(function(ev){var $=function(e,n){return new $.fn.init(e,n)};$.data={};$.cfg={name:"pop",domOBJName:undefined};$.eve={domOBJName:function(){if(!$.cfg.domOBJName)$.cfg.domOBJName=$.generateUUID($.cfg.name,"_")},domData:function(dom,name,key,val){var domOBJName=$.cfg.domOBJName,dom=dom instanceof HTMLElement||dom instanceof Document?dom:dom[0]?dom[0]:{},domObj=dom[domOBJName],data=$.data;if(!dom||!dom instanceof HTMLElement)return undefined;else if(!name&&dom[domOBJName]){for(var k1 in dom[domOBJName])for(var k2 in dom[domOBJName][k1]){delete data[k1][k2][dom[domOBJName][k1][k2]];if($.objLength(data[k1])<1)delete data[k1]}delete dom[domOBJName]}else if(!key&&domObj&&domObj[name]){for(var k in domObj&&domObj[name])delete data[name][k];if($.objLength(data[name])<1)delete data[name];delete domObj[name]}else if(!val&&val!=undefined&&domObj&&domObj[name]&&domObj[name][key]){delete domObj[name][key];delete data[name][key]}else if(!val&&val==undefined){var val={};if(name=="all")for(var k1 in domObj){val[k1]={};for(var k2 in domObj[k1])val[k1][k2]=data[k1][k2][domObj[k1][k2]]}else if(key=="all")for(var k in domObj[name])val[k]=data[name][k][domObj[name][k]];else if(domObj&&domObj[name]&&domObj[name][key]&&domObj[name]&&domObj[name][key])return data[name][key][domObj[name][key]];else return undefined;return val}else if(val){var l,domObj;domObj=dom[domOBJName]=dom[domOBJName]||{};data[name]=data[name]||{};data[name][key]=data[name][key]||{};domObj[name]=domObj[name]||{};domObj[name][key]=domObj[name][key]||{};l=String.fromCharCode(65+Math.ceil(Math.random()*25))+(new Date).valueOf();data[name][key][l]=val;domObj[name][key]=l}}};$.fn=$.prototype={hasScrolled:function(data){var returnVal={},length=undefined;this.each(this,function(dom,index){var x=dom.scrollWidth>dom.clientWidth,y=dom.scrollHeight>dom.clientHeight;if(data)returnVal[index]=x||y||false;else returnVal[index]={x:x,y:y};length=index+1});return length?length>1?returnVal:returnVal[0]:this},focus:function(){this.each(this,function(dom,index){if(dom.setSelectionRange)dom.focus();else if(dom.createTextRange){var range=dom.createTextRange();range.collapse(true);range.moveEnd("character",-1);range.moveStart("character",-1);range.select()}});return this},tagName:function(name){var returnVal={},length=undefined;this.each(this,function(dom,index){if(name)returnVal[index]=name.toLowerCase()==dom.tagName.toLowerCase();else returnVal[index]=dom.tagName&&dom.tagName.toLowerCase();length=index+1});return length?length>1?returnVal:returnVal[0]:this},show:function(fn,time){var returnVal={},length=undefined;time=typeof fn=="number"?fn:time?time:0;fn=typeof fn=="function"?fn:undefined;time=time>1?time/100:time;this.each(this,function(dom,index){dom=$(dom);if(time>0){dom.css({display:"block",opacity:0});var i=0,intervalId=setInterval(function(){if(i<100){i++;dom.css("opacity",i*.01)}else{clearInterval(intervalId);fn&&fn.call(dom,dom)}},time)}else{dom.css("display","block");fn&&fn.call(dom,dom)}returnVal[index]=new $.fn.init(dom);length=index+1});return length?length>1?returnVal:returnVal[0]:this},hide:function(fn,time){var returnVal={},length=undefined;time=typeof fn=="number"?fn:time?time:0;fn=typeof fn=="function"?fn:undefined;time=time>1?time/100:time;this.each(this,function(dom,index){dom=$(dom);if(time>0)var i=100,intervalId=setInterval(function(){if(i>0){i--;dom.css("opacity",i*.01)}else{dom.css("display","none");clearInterval(intervalId);fn&&fn.call(dom,dom)}},time);else{dom.css("display","none");fn&&fn.call(dom,dom)}returnVal[index]=new $.fn.init(dom[0]);length=index+1});return length?length>1?returnVal:returnVal[0]:this},css:function(key,val){var key=typeof key=="function"?key():key,returnVal={},length,prohibit=["opacity","zIndex"],css=function(key,val,dom){val=val!=undefined?val+(prohibit.indexOf(key)<0&&typeof val=="number"?"px":""):"";dom.style[key]=val};this.each(this,function(dom,index){if($.typeOf(key,[2])&&val===undefined){if(dom.currentStyle)returnVal[index]=dom.currentStyle[key];else if(window.getComputedStyle)returnVal[index]=window.getComputedStyle(dom,null)[key];else returnVal[index]=dom.style[key];length=index+1}else{var keyObj={};if(!$.typeOf(key,[4]))keyObj[key]=val;else keyObj=key;for(var k in keyObj)css(k,keyObj[k],dom);type=true}});return length?length>1?returnVal:returnVal[0]:this},fn:function(fn){typeof fn=="function"&&fn.call(this,this);return this},child:function(val){var returnVal={},length=undefined;this.each(this,function(dom,index){if(val&&typeof val=="string")returnVal[index]=new $.fn.init(val,dom);else returnVal[index]=new $.fn.init(dom.children[0]);length=length?length++:1});return length?length>1?returnVal:returnVal[0]:this},offset:function(val){var returnVal={},length=undefined,type=undefined,val=typeof val=="function"?val():val;this.each(this,function(dom,index){if(typeof val=="object"&&val instanceof HTMLElement==false){dom.offsetLeft=val.left||dom.offsetLeft;dom.offsetTop=val.top||dom.offsetTop}else if(typeof val=="string"){var ele=dom;returnVal[index]={x:0,y:0};while(ele&&ele instanceof HTMLElement&&ele.tagName!=val){returnVal[index]["x"]=returnVal[index]["x"]+ele.offsetLeft;returnVal[index]["y"]=returnVal[index]["y"]+ele.offsetTop;ele=ele.parentNode}length=index+1}else{returnVal[index]={x:dom.offsetLeft,y:dom.offsetTop};length=index+1}});return type?this:length?length>1?returnVal:returnVal[0]:this},val:function(val){var returnVal={},length=undefined,type=undefined,val=typeof val=="function"?val():val;this.each(this,function(dom,index){if(typeof val=="string"){dom.value=val;type=true}else if(!val){returnVal[index]=dom.value;length=index+1}});return type?this:length?length>1?returnVal:returnVal[0]:this},parent:function(val){var returnVal={},length=undefined;this.each(this,function(dom,index){if(val){var matchesSelector=dom.matches||dom.webkitMatchesSelector||dom.mozMatchesSelector||dom.msMatchesSelector;while(dom){if(matchesSelector.call(dom,val))break;dom=dom.parentElement}}else dom=dom.parentNode;returnVal[index]=dom?$(dom):undefined;length=length?length++:1});return length?length>1?returnVal:returnVal[0]:this},cache:function(key,val){var val=typeof val=="function"?val():val,dataName="cache",domData=$.eve.domData,returnVal={},length=undefined,type=undefined;this.each(this,function(dom,index){if($.typeOf(key,[2,3])&&val===undefined){returnVal[index]=domData(dom,dataName,key);length=length?length++:1}else{var keyObj={};if(!$.typeOf(key,[4]))keyObj[key]=val;else keyObj=key;for(var k in keyObj)domData(dom,dataName,k,keyObj[k]);type=true}});return type?this:length?length>1?returnVal:returnVal[0]:null},data:function(key,val){var val=typeof val=="function"?val():val,dataName=$.cfg.name+"-data",returnVal={},length=undefined,type=undefined;this.each(this,function(dom,index){if($.typeOf(key,[2,3])&&val===undefined){var data=dom.getAttribute(dataName),data=data?$.strToObj(data):{};returnVal[index]=data[key];length=length?length++:1}else{var keyObj={};if(!$.typeOf(key,[4]))keyObj[key]=val;else keyObj=key;for(var k in keyObj)if(!$.typeOf(keyObj[k],[2,3])||!keyObj[k])delete keyObj[k];if($.objLength(keyObj)>0)dom.setAttribute(dataName,$.strToObj(keyObj));type=true}});return type?this:length?length>1?returnVal:returnVal[0]:null},height:function(val){var returnVal={},length=undefined,val=typeof val=="function"?val():val;this.each(this,function(dom,index){if(val&&typeof val!="boolean")$(dom).css("height",val);else returnVal[index]=val?dom.offsetHeight:dom.clientHeight;length=length?length++:1});return length?length>1?returnVal:returnVal[0]:this},width:function(val){var returnVal={},length=undefined,val=typeof val=="function"?val():val;this.each(this,function(dom,index){if(val&&typeof val!="boolean")$(dom).css("width",val);else returnVal[index]=val?dom.offsetWidth:dom.clientWidth;length=length?length++:1});return length?length>1?returnVal:returnVal[0]:this},off:function(type){var type=type.split(",");this.each(this,function(dom,index){for(var k in type){var v=type[k],key="",val=v,handler,removeFn=function(key,val,handler){$.eve.domData(dom,"handler",key,null);if(dom.removeEventListener)dom.removeEventListener(val,handler,false);else if(dom.deattachEvent)dom.deattachEvent("on"+val,handler);else dom["on"+val]=null};if(v.indexOf(".")>0)key=v.substring(v.indexOf(".")+1),val=v.substring(0,v.indexOf("."));handler=$.eve.domData(dom,"handler",key.length<1?"all":val+key);if(typeof handler=="function")removeFn(key,val,handler);else if(typeof handler=="object")for(var k in handler)k.indexOf(v)>-1&&removeFn(k,v,handler[k])}});return this},on:function(type,parameter,handlerFn){var type=type.split(",");if(typeof parameter=="function"){handlerFn=parameter;parameter=undefined}this.each(this,function(dom,index){var handler=function(ev){handlerFn.call({MouseEvent:ev,parameter:parameter,dom:$(dom)},ev,parameter,$(dom))};for(var k in type){var v=type[k],key="",val=v;if(v.indexOf(".")>0)key=v.substring(v.indexOf(".")+1),val=v.substring(0,v.indexOf("."));$.eve.domData(dom,"handler",val+key,handler);if(dom.addEventListener)dom.addEventListener(val,handler,false);else if(dom.attachEvent)dom.attachEvent("on"+val,handler);else dom["on"+val]=handler}});return this},remove:function(){this.each(this,function(dom,index){dom&&dom.parentNode&&dom.parentNode.removeChild(dom)})},init:function(e,n){if(typeof e=="string")if(e[0]=="\x3c"&&e[e.length-1]=="\x3e"&&e.length>2){var Tag=e.substring(1,e.length-1),TagDef="Tag",TagObj={};this.length=1;if(/[\.#\[\]=]/.test(Tag)){for(var k in Tag){if(Tag[k]==".")TagDef="class";else if(Tag[k]=="#")TagDef="id";else if(Tag[k]=="["||Tag[k]=="]"||Tag[k]=="\x3d")TagDef="attr";TagObj[TagDef]=TagObj[TagDef]?TagObj[TagDef]+Tag[k]:Tag[k]}this[0]=document.createElement(TagObj.Tag);if(TagObj["class"]){TagObj["class"]=TagObj["class"].split(".");for(var k in TagObj["class"])if(TagObj["class"][k].length>0)this[0].classList.add(TagObj["class"][k])}if(TagObj["id"]){TagObj["id"]=TagObj["id"].split("#");for(var k in TagObj["id"])if(TagObj["id"][k].length>0)this[0].setAttribute("id",TagObj["class"][k])}if(TagObj["attr"]){TagObj["attr"]=TagObj["attr"].replace(/\]/g,"").split("[");for(var k in TagObj["attr"])if(TagObj["attr"][k].length>0){var key=TagObj["attr"][k],val="";if(TagObj["attr"][k].indexOf("\x3d")>0){var a=TagObj["attr"][k].split("\x3d");key=a[0];val=a[1]}this[0].setAttribute(key,val)}}}else this[0]=document.createElement(Tag)}else{var dom,length=0,condition=e.indexOf(",")?e.split(","):[e];for(var k in condition){var v=condition[k];if(v==""||v==null||typeof v=="undefined"||v.length<1)continue;dom=n instanceof HTMLElement?n.querySelectorAll(v):document.querySelectorAll(v);for(var i=0;i<dom.length;i++){this[length]=dom[i];length++}}this.length=length}else if(typeof e=="object")if(e instanceof HTMLElement||e instanceof Document||e instanceof Window){this[0]=e;this.length=1}else if(e instanceof NodeList||e instanceof $||e instanceof jQuery)for(var i=0;i<e.length;i++){this[i]=e[i];this.length=i+1}else{if(e instanceof Array){var length=0;for(var k in e){var dom=new $.fn.init(e[k]);for(var i=0;i<dom.length;i++){this[length]=dom[i];length++}}this.length=length}}else if(typeof e=="function"||typeof e=="boolean")if(typeof e=="boolean"&&typeof n=="function")window.onload=n;else if(typeof e=="function"&&!n)if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);e()},false);else if(document.attachEvent)document.attachEvent("onreadytstatechange",function(){if(document.readyState=="complete"){document.detachEvent("onreadystatechange",arguments.callee);e()}});else if(document.lastChild==document.body)e();this["__proto__"]=$.fn;return this},each:function(dom,fn){if(typeof dom=="object"&&typeof fn=="function")for(var i=0;i<dom.length;i++)fn(dom[i],i);else if(typeof dom=="function"&&!fn)for(var i=0;i<this.length;i++)dom($(this[i]),i)},addClass:function(val){var val=typeof val=="function"?val():val;if(val&&val.length>1){val=val.split(" ").filter(function(s){return s&&s.trim()});this.each(this,function(dom){var n=val;for(var k in n)n[k]&&dom.classList.add(n[k])})}return this},removeClass:function(val){var val=typeof val=="function"?val():val;if(val&&val.length>1){val=val.split(" ").filter(function(s){return s&&s.trim()});this.each(this,function(dom){var n=val;for(var k in n)dom.classList.remove(n[k])})}return this},hasClass:function(val){var val=typeof val=="function"?val().split(" "):val.split(" ");returnVal={},length;this.each(this,function(dom,index){returnVal[index]=dom.classList.contains(val);length=index+1});return length?length>1?returnVal:returnVal[0]:this},toggleClass:function(val){var val=typeof val=="function"?val().split(" "):val.split(" ");this.each(this,function(dom){var n=val;for(var k in n)if(dom.classList.contains(val))dom.classList.remove(n[k]);else dom.classList.add(n[k])});return this},attr:function(key,val){var key=typeof key=="function"?key():key,returnVal={},length;this.each(this,function(dom,index){if($.typeOf(key,[2])&&val===undefined){returnVal[index]=dom.getAttribute(key);length=index+1}else{var keyObj={};if(!$.typeOf(key,[4]))keyObj[key]=val;else keyObj=key;for(var k in keyObj)dom.setAttribute(k,keyObj[k]);type=true}});return length?length>1?returnVal:returnVal[0]:this},removeAttr:function(val){var val=typeof val=="function"?val():val;this.each(this,function(dom){dom.removeAttribute(val)});return this},html:function(val){var returnVal={},length=undefined,val=typeof val=="function"?val():val;this.each(this,function(dom,index){if(typeof val=="string"&&val.length>=0)dom.innerHTML=val;else if(val&&typeof val=="object"){var n=val;dom.innerHTML="";for(var i=0;i<n.length;i++)dom.appendChild(n[i])}else if(!val){returnVal[index]=dom.innerHTML;length=index+1}});return length?length>1?returnVal:returnVal[0]:this},text:function(val){var returnVal={},length=undefined,val=typeof val=="function"?val():val;this.each(this,function(dom,index){if(typeof val=="string"&&val.length>=0)dom.innerText=val;else if(!val){returnVal[index]=dom.innerText;length=index+1}});return length?length>1?returnVal:returnVal[0]:this},append:function(val){var val=typeof val=="function"?val():val;this.each(this,function(dom,index){if(val&&typeof val=="string")dom.innerHTML=dom.innerHTML+val;else if(val&&typeof val=="object"){var n=val;for(var i=0;i<n.length;i++)dom.appendChild(n[i])}});return this},prepend:function(val){var val=typeof val=="function"?val():val;this.each(this,function(dom,index){if(val&&typeof val=="string")dom.innerHTML=val+dom.innerHTML;else if(val&&typeof val=="object"){var n=val;for(var i=0;i<n.length;i++)dom.insertBefore(n[i],dom.childNodes[0])}});return this}};$.way=$.__proto__={strToObj:function(data){try{if(typeof data=="string")return JSON.parse(data);if(typeof data=="object")return JSON.stringify(data)}catch(e){return undefined}},typeOf:function(data,type,Must){var val=0,dataType=typeof data,type=type instanceof Array?type:[type],typeAry=["undefined","boolean","string","number","object","function","empty"];for(var k in type){var typeVal=typeof type[k]=="number"?typeAry[type[k]]?typeAry[type[k]]:undefined:type[k];if(typeVal==="empty"&&data)val++;else if(dataType==typeVal)val++}if(Must)val=val>=type.length?true:false;else val=val>0?true:false;return val},objAssign:function(){var objArray=arguments;for(var i=1;i<objArray.length;i++)if(Object.assign)Object.assign(objArray[0],objArray[i]);else for(var k in objArray[i])objArray[0][k]=objArray[i][k];return objArray[0]},objLength:function(obj){var length=undefined;if(typeof obj=="object")if(obj instanceof Array)length=obj.length;else length=Object.keys(obj).length;return length},generateUUID:function(key,Delimiter){var date=(new Date).getTime(),Delimiter=Delimiter||"-";if(window.performance&&typeof window.performance.now==="function")date+=performance.now();var uuid="xxxxxxxx-xxxx-yxxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var r=(date+Math.random()*16)%16|0;date=Math.floor(date/16);return(c=="x"?r:r&3|8).toString(16)});if(Delimiter!="-")uuid=uuid.replace(/[-]/g,Delimiter);if(key&&key.replace(/\w/g,"").length<1)uuid=key+uuid;return uuid},jsonp:function(src,callback,fn){var obj=typeof src=="object"?src:{src:src,callback:callback,fn:fn};if(obj.src&&obj.callback&&obj.fn){var head=document.getElementsByTagName("head")[0],script=document.createElement("script"),setTime;script.src=obj.src;script.setAttribute("type","text/jscript");try{head.appendChild(script)}catch(e){console.log("\u6587\u4ef6\u8def\u5f84\u9519\u8bef")}head.appendChild(script);window[obj.callback]=function(e){clearTimeout(setTime);obj.fn(e);head.removeChild(script);window[obj.callback]=undefined;delete window[obj.callback]};setTime=setTimeout(function(){obj.failFn&&obj.failFn()},obj.time||1E4)}},strAry:function(data){return data?data instanceof Array?data:data.replace(/[|.\s]/g,",").split(","):[]},multiAry:function(data,length){if(data instanceof Array){var len=0;for(var i=0;i<data.length;i++){if(data[i]instanceof Array)len+=$.multiAry(data[i],true);len++}return!length?data.length<len?true:false:len}},customerType:function(){var Agents=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],agentinfo=false;for(var i=0;i<Agents.length;i++)if(window.navigator.userAgent.indexOf(Agents[i])>0){agentinfo=Agents[i];break}return agentinfo?agentinfo:"PC"},timeFn:function(fn,time){return setTimeout(fn,time)}};if(ev&&typeof ev=="string"){var tool=function(e,n){return $(e,n)};tool.way=tool.__proto__=$.__proto__;tool.fn=tool.prototype=$.prototype;window[ev]=tool}return $},['html,body{width:100%;height:100%;overflow:hidden}body{background-color:#fff;font-size:14px;line-height:1.4285em;color:rgba(0,0,0,.87);font-family:Helvetica Neue,NotoSansHans-Regular,AvenirNext-Regular,arial,Hiragino Sans GB,Microsoft Yahei,WenQuanYi Micro Hei,Arial,Helvetica,sans-serif}body *{transition:all .3s ease-out;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:rgba(255,255,255,0);user-select:none;margin:0;padding:0;outline:0}a{margin:0;padding:0;border:0;font-size:100%;cursor:pointer;vertical-align:baseline;background:transparent;transition-duration:.2s;color:#4183c4;text-decoration:none}a:hover,a:focus{color:#1e70bf;bblr:expression(this.onFocus\x3dthis.blur());outline-style:none}table{border-collapse:collapse;border-spacing:0}input,select,button{outline:0;vertical-align:middle}ul,li{list-style-type:none}.clearfix::before,.clearfix::after{content:"";height:0;line-height:0;display:block;visibility:hidden;clear:both}.clearfix:after{clear:both}.clearfix{*zoom:1}body *:after,body *:before,body:after,body:before{display:inline-block;width:0;height:0;position:absolute;content:"";box-sizing:border-box}body:before{position:fixed;top:0;left:0;width:100%;height:100%;z-index:100;background-color:#fff}body:after{content:"";position:fixed;left:50%;top:50%;padding:30px;border:4px solid rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.5);border-radius:50%;margin:-34px 0 0 -34px;animation:rotate 1.2s linear infinite;z-index:100}body[app]:before{animation:app 1.2s;animation-fill-mode:forwards}body[app]:after{animation:rotate 1.2s linear infinite,app 1.2s;animation-fill-mode:forwards}@keyframes rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes app{0%{opacity:1}100%{opacity:0;z-index:-1;display:none}}.head,.sidebar,.workspace{background-color:#fff}.head{position:fixed;width:100%;border:0;border-bottom:1px solid #ddd;height:55px;padding:0 15px;z-index:8;top:0;left:0;box-sizing:border-box;user-select:none;box-shadow:0 0 2px rgba(0,0,0,.02)}.head div{display:inline-block}.head .title{color:#333;color:#333;font-size:16px;line-height:55px;font-weight:700;white-space:nowrap;display:inline-block;transition:color .1s ease;margin-right:15px}.head a{color:rgba(0,0,0,.87);padding:6px 12px;margin:0 5px;color:rgba(0,0,0,.87);font-weight:700;cursor:pointer;border-radius:5px;text-decoration:none}.head a:hover{background-color:#f2f2f2}.sidebar{position:fixed;top:55px;bottom:0;width:280px;border-right:1px solid #ddd;background-color:#fafafa;user-select:none;overflow:hidden;display:flex;flex-direction:column;z-index:10}.sidebar .sidebar-head{flex:none}.sidebar .sidebar-head .title{padding:0 12px;border-bottom:1px solid #ddd;color:inherit;line-height:55px;color:rgba(0,0,0,0.87);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;display:block;font-size:16px}.sidebar .sidebar-head .search-form{padding:12px;border-bottom:1px solid #ddd;position:relative;display:block}.sidebar .sidebar-head .search-form\x3einput[type\x3dtext]{width:100%;padding:10px 12px;box-sizing:border-box;background:#fff;border:1px solid rgba(34,36,38,.15);color:rgba(0,0,0,.87);border-radius:5px;padding-right:33px;transition-duration:.2s}.sidebar .sidebar-head .search-form\x3einput[type\x3dtext]:focus{border-color:#85B7D9}.sidebar .sidebar-head .search-form\x3einput[type\x3dtext]:focus+button:before{border-color:#3c3c3c}.sidebar .sidebar-head .search-form\x3einput[type\x3dtext]:focus+button:after{background-color:#3c3c3c}.sidebar .sidebar-head .search-form button{position:absolute;border:0;background-color:transparent;cursor:pointer;width:35px;height:35px;top:12px;right:12px;transition:all .2s}.sidebar .sidebar-head .search-form button:before{width:11px;height:11px;position:absolute;border:2px solid #909090;top:11px;left:11px;border-radius:50%;transition:all .2s}.sidebar .sidebar-head .search-form button:after{border-radius:2px;position:absolute;width:7px;height:2px;background-color:#909090;top:22px;right:9px;transform:rotate(48deg)}.sidebar .sidebar-body{flex:auto;overflow-y:auto;width:100%;position:relative}.sidebar .sidebar-body\x3eul\x3eli{transition-duration:.1s}.sidebar .sidebar-body\x3eul\x3eli{line-height:30px;cursor:pointer;white-space:nowrap;display:block;max-height:30px;overflow:hidden;position:relative;width:280px}.sidebar .sidebar-body\x3eul\x3eli.open{max-height:930px}.sidebar .sidebar-body\x3eul\x3eli a{padding-left:50px;color:#666;line-height:30px;display:block}.sidebar .sidebar-body\x3eul\x3eli a em{font-size:12px;color:#bbb;padding:0 5px;font-style:normal}.sidebar .sidebar-body\x3eul\x3eli\x3ea{padding-left:24px}.sidebar .sidebar-body li a:hover{background-color:#F2F2F2}.sidebar-body li.active\x3ea,.sidebar-body li.active\x3ea:hover{background-color:#e5e5e5}.sidebar .sidebar-body\x3eul\x3eli\x3ea+ul:before{content:"";position:absolute;border:5px solid transparent;border-left-color:#222;left:8px;top:9px;transition:all .3s}.sidebar .sidebar-body\x3eul\x3eli.open\x3ea+ul:before{transform:rotate(90deg);top:13px;left:4px}.sidebar .sidebar-body .search{position:absolute;left:0;top:0;right:0;bottom:0;overflow:auto;background-color:#fafafa;padding-top:15px;transition-duration:0s}.sidebar .sidebar-body .search p{position:absolute;top:50%;width:100%;font-weight:200;text-align:center;color:#999;transform:translateY(-50%);box-sizing:border-box;padding-right:inherit}.sidebar .sidebar-body .search p:before{width:35px;height:35px;border:6px solid #999;border-radius:50%;margin-left:40px;margin-top:-70px}.sidebar .sidebar-body .search p:after{width:5px;border-radius:2px;height:20px;background-color:#999;margin-left:-51px;margin-top:-45px;transform:rotate(-48deg)}.sidebar-copyright{background:#fafafa;border-top:1px solid #ddd;font-size:12px;padding:5px 0;text-align:center;line-height:24px;flex:none;position:relative}.workspace{position:fixed;top:55px;right:0;bottom:0;overflow:hidden;z-index:9}.workspace .article{width:calc(100% + 20px);height:100%;overflow-y:auto}.workspace .article .load{position:absolute;left:0;top:0;bottom:0;right:0;background-color:#fff}.workspace .article .load:before{opacity:1;position:absolute;left:50%;top:50%;padding:30px;border:4px solid rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.5);border-radius:50%;margin:-34px 0 0 -34px;animation:rotate 1.2s linear infinite;z-index:-1}.workspace .article .article-head{height:50px;width:100%;box-sizing:border-box}.workspace .article .article-head .title{font-size:20px;font-weight:200;text-align:center;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7e888b}.workspace .article .article-head .title em{display:none}.workspace .article .article-body{margin:0 auto;width:100%;max-width:980px;box-sizing:border-box;position:relative}.workspace .article .article-body,.workspace .article .article-body *{user-select:text;-webkit-user-select:text;-moz-user-focus:text;-moz-user-select:text}.workspace .article.wide{overflow:hidden}.workspace .article.wide .article-body{margin:0;padding:0;max-width:100%;width::100%;height:calc(100% - 50px);position:relative;box-sizing:border-box}.workspace .article[state\x3dload]:before{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;background-color:#fff}.workspace .article[state\x3dload]:after{content:"";position:absolute;left:50%;top:50%;padding:30px;border:4px solid rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.5);border-radius:50%;margin:-34px 0 0 -34px;animation:rotate 1.2s linear infinite;z-index:100}.workspace .article[state\x3dready]:before{animation:app 1.2s;animation-fill-mode:forwards}.workspace .article[state\x3dready]:after{animation:rotate 1.2s linear infinite,app 1.2s;animation-fill-mode:forwards}.workspace .article .lose{display:block;position:fixed;font-size:20em;color:rgba(0,0,0,.1);right:.1em;bottom:.1em;z-index:-1;text-shadow:10px 10px .1em rgba(0,0,0,.02)}.workspace .tool-menu{position:absolute;border:0;background-color:#ccc;width:14px;height:14px;cursor:pointer;overflow:hidden;z-index:10;top:20px;left:20px}.workspace .tool-menu:hover{background-color:#333}.workspace .tool-menu:before,.workspace .tool-menu:after{border:2px solid #fff;border-left:none;border-right:0;background-color:transparent;left:0;width:18px}.workspace .tool-menu:before{top:2px;height:10px}.workspace .tool-menu:after{top:6px;height:6px}.workspace .tool-progress{background-color:#85B7D9;display:block;position:fixed;height:2px;z-index:10;width:0;border-radius:0 2px 2px 0;top:0;left:0;transition-timing-function:ease-out;transition-duration:.5s}.workspace .article-body h1,.workspace .article-body h2,.workspace .article-body h3,.workspace .article-body h4,.workspace .article-body h5{line-height:1.28571429em;margin:calc(2rem - .14286em) 0 1rem;font-weight:400}.workspace .article-body h1{min-height:1rem;font-size:2rem}.workspace .article-body h2{font-size:1.71428571rem}.workspace .article-body h3{font-size:1.28571429rem}.workspace .article-body h4{font-size:1.07142857rem}.workspace .article-body h5{font-size:1rem}.workspace .article-body *[data]{cursor:pointer}.workspace .article-body:after{display:block;width:100%;height:100px}.workspace blockquote{padding:10px 15px;border-left:4px solid #ddd;background-color:#f5f5f5;margin:14px 0;line-height:1.43;font-weight:400}.workspace blockquote.danger{color:#d9534f;background-color:#fdf7f7;border-color:#d9534f}.workspace blockquote.default{background-color:#f4f8fa;color:#5bc0de;border-color:#5bc0de}.workspace blockquote.success{background-color:#f3f8f3;border-color:#50af51;color:#50af51}.workspace code{background:#f9fafa;border:1px solid #ded9d9;margin:0 5px;padding:2px 6px;display:inline-block;border-radius:4px;word-break:break-all;white-space:pre;line-height:1.3;font-size:1em}.workspace .article button{display:inline-block;padding:6px 17px;margin:5px;background-color:#fafafa;border:1px solid #ccc;cursor:pointer;border-radius:5px;color:#444;line-height:20px}.workspace .article button:hover{background-color:#eee;border-color:#ddd;color:#000}.workspace hr{border:0;border-bottom:1px solid #ddd;margin-bottom:.5em;box-sizing:content-box;height:0;overflow:visible}.workspace p{line-height:2}.workspace ul{padding-left:28px;margin:14px 0;line-height:1.2}.workspace li{line-height:2;list-style-type:disc}.workspace iframe{width:100%;height:100%;border:0}.workspace xmp{background:#f9fafa;border:1px solid #ded9d9;padding:16px;overflow:auto;line-height:1.45;border-radius:3px;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace}.workspace fieldset{border-width:1px 0 0;padding:0;border-style:solid;border-color:#e6e6e6}.workspace fieldset legend{margin-left:20px;padding:0 10px;font-size:20px;font-weight:300}.workspace .site fieldset{margin:30px 0 20px}.workspace .site p{margin-bottom:10px;line-height:22px}.workspace .editor{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New;position:relative}.workspace .editor p{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2;position:relative;font-size:12px;font-weight:400;position:relative}.workspace .editor ol{outline:0}.workspace .editor li{outline:0;position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;background-color:#fff;color:#333;font-family:Courier New}.workspace .editor p button{font-size:12px;letter-spacing:0;border:1px solid #ccc;background-color:#fafafa;cursor:pointer;border-radius:3px;padding:2px 10px;margin:0;right:3px;top:3px;color:#888;position:absolute}.workspace .editor p button:hover{background-color:#fff;border-color:#d3d3d3;color:#444}.workspace .table table{width:100%;border:0;border-collapse:collapse;margin:0;padding:0;box-sizing:border-box}.workspace .table table *{transition:all .3s}.workspace .table table th{font-weight:bold;text-align:left;color:#000;background:#f5f5f5;border:#dfdfdf solid 1px;padding:8px 10px;word-break:break-all;vertical-align:middle;font-size:14px}.workspace .table table td{border:#dfdfdf solid 1px;padding:5px 10px;font-size:14px;word-break:break-all;vertical-align:middle;line-height:23px}.workspace .table table tbody tr:hover{background-color:#f9f9f9}.workspace .table table tbody td:nth-child(1),.workspace .table table tbody td:nth-child(3){white-space:nowrap}body[app\x3dmb] .sidebar{left:-281px}body[app\x3dmb] .workspace{left:0}body[app\x3dpc] .sidebar{left:0}body[app\x3dpc] .workspace{left:281px}body[app\x3dmb][fn] .sidebar{left:0}body[app\x3dpc][fn] .sidebar{left:-281px}body[app\x3dpc][fn] .workspace{left:0}body[app] .sidebar .sidebar-body,body[app] .workspace .article{width:calc(100% + 20px);overflow:hidden;overflow:auto}body[app] .workspace .article .article-head{padding:10px 20px}body[app\x3dmb] .workspace .article .article-head{padding-right:40px}body[app\x3dpc] .workspace .article .article-body{padding:0 24px}body[app\x3dmb] .workspace .article .article-body{padding:0 10px;padding-right:30px}body[app] .sidebar .sidebar-body\x3eul{padding-right:18px}body[scroll] .sidebar .sidebar-body,body[scroll] .workspace .article{width:100%}body[scroll] .workspace .article .article-head{padding-right:20px}body[app\x3dmb][scroll] .workspace .article .article-body{padding-right:10px}body[app\x3dmb] .head .title{width:calc(100% - 30px);margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body[scroll] .sidebar .sidebar-body ul{padding-right:0}body .mobileMask{position:fixed;top:0;bottom:0;right:0;left:0;z-index:9;background-color:rgba(0,0,0,.5);display:none}body[app\x3dmb] .sidebar{top:0}body[app\x3dmb][fn] .mobileMask{display:block}body[app\x3dmb] .head a{display:none}body[app\x3dmb] .workspace .article .article-body .lose{font-size:8em}body[app\x3dmb] .workspace .tool-menu{position:fixed;right:18px;top:18px;left:auto;bottom:auto}body[error]{padding:20px;box-sizing:border-box}body[error] h1{font-size:25px;padding:8px 0}body[error] p{font-size:16px;padding-bottom:5px;border-bottom:1px solid #ccc}::-webkit-scrollbar{width:6px;height:0}::-webkit-scrollbar-track{width:0}::-webkit-scrollbar-thumb{background-color:#999;background-clip:padding-box;min-height:28px;border-radius:2em}.update code{font-size:50%;color:#555}',"data:image/x-icon;base64,AAABAAEAGBgAAAEAIACICQAAFgAAACgAAAAYAAAAMAAAAAEAIAAAAAAAAAkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwAAAB8AAAAfAAAAHwAAAB8AAAAfAAAAHwAAAB8AAAAfAAAAHwAAAB8AAAAfAAAAHwAAAB8AAAAfAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbwAAAOQAAADjAAAA5AAAAOQAAADkAAAA5AAAAOQAAADkAAAA5AAAAOQAAADkAAAA5AAAAOMAAADkAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAPUAAACRAAAAgAAAAIEAAACBAAAAggAAAIEAAACBAAAAgQAAAIEAAACBAAAAgAAAAJEAAAD1AAAAgQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgQAAAOMAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAAAAAAAAAAAAAAAAAAAAABwAAADkAAAAggAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAOQAAAAfAAAAAAAAAAAAAAAAAAAAAAAAAAsAAACPAAAAhQAAAD0AAAAPAAAAAAAAABsAAADgAAAAgwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAOQAAAAfAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACFAAAA/wAAAPIAAADHAAAAbQAAAAoAAABwAAAAcwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAOQAAAAfAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9AAAA8wAAAP4AAAD/AAAA+wAAAIEAAAAMAAAAFwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAOQAAAAfAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPAAAAxgAAAJIAAACEAAAA+gAAAPsAAACBAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAOQAAAAfAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbQAAAJAAAAATAAAAgAAAAPsAAAD7AAAAgQAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAOQAAAAfAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAIAAAACMAAAAFAAAAIAAAAD7AAAA+wAAAIEAAAAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAOQAAAAfAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAB/AAAAjAAAABQAAACAAAAA+wAAAPsAAACCAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAOQAAAAfAAAAAAAAAAAAAAAAAAAAAAAAAA8AAABwAAAAgwAAAFcAAAANAAAAfwAAAIwAAAAUAAAAgAAAAPwAAADyAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAOQAAAAfAAAAAAAAAAAAAAAAAAAAAAAAAB8AAADkAAAA9gAAANUAAABQAAAABAAAAH8AAACMAAAAFAAAAH0AAAB8AAAAPgAAAGkAAAAIAAAAAAAAAAAAAAAAAAAAgAAAAOQAAAAfAAAAAAAAAAAAAAAAAAAAAAAAAB8AAADjAAAAkQAAABoAAABLAAAAXAAAAA4AAACAAAAAhgAAAAcAAAA1AAAAzwAAAPsAAACCAAAACgAAAAAAAAAAAAAAgAAAAOQAAAAfAAAAAAAAAAAAAAAAAAAAAAAAAB8AAADkAAAAfgAAAC0AAADSAAAA0wAAABwAAAAIAAAAPwAAADwAAADQAAAA/wAAAP8AAADxAAAAQQAAAAAAAAAAAAAAgAAAAOQAAAAfAAAAAAAAAAAAAAAAAAAAAAAAAB8AAADiAAAAsAAAAM8AAADiAAAARgAAAAAAAAAAAAAAAAAAAGkAAAD7AAAA/wAAAPkAAACCAAAACgAAAAAAAAAAAAAAgQAAAOMAAAAcAAAAAAAAAAAAAAAAAAAAAAAAABwAAADgAAAA/wAAAOAAAABFAAAAAAAAAAAAAAAAAAAAAAAAAAgAAACCAAAA8QAAAIIAAAAHAAAAAAAAAAAAAAAAAAAAgAAAAPUAAACRAAAAgAAAAIEAAACBAAAAgAAAAJEAAAD0AAAA4AAAAEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAQgAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAbwAAAOQAAADjAAAA5AAAAOQAAADkAAAA5AAAAOUAAADPAAAARQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwAAAB8AAAAfAAAAHwAAAB8AAAAfAAAAHwAAAB8AAAAWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAA/AAAAPwAAAD8AAAA/AAAAPwAGAD8ABgA/AAYAPwAHAB8ABwAPAAcABwAGAAMABgABAAYAAAAGAAAABgAAAAYAAAAAAAAAAAEBAAADgwAAB/8AAA//AP///wA\x3d"]);