diff --git a/dist/ushio-footer.js b/dist/ushio-footer.js
index 9c60d3f..055e177 100644
--- a/dist/ushio-footer.js
+++ b/dist/ushio-footer.js
@@ -891,5 +891,5 @@ function drawBrand(){
if(!session.status){
session_ajax_ini();
}
- console.log('\n' + ' %c Ushio v3.4.8 %c ' + page.ip + ' %c '+ ((session.method == 'WebSocket')?'WebSocket':'Ajax') +' %c https://ushio.cool/ \n', 'color: #FFFFCC; background: #030307; padding:5px 0;', 'color: #FF99FF; background: #030307; padding:5px 0;', 'color: '+((session.method == 'WebSocket')?'#91FF3A':'#F8FF00')+'; background: #030307; padding:5px 0;', 'background: #4682B4; padding:5px 0;');
+ console.log('\n' + ' %c Ushio v3.4.9 %c ' + page.ip + ' %c '+ ((session.method == 'WebSocket')?'WebSocket':'Ajax') +' %c https://ushio.cool/ \n', 'color: #FFFFCC; background: #030307; padding:5px 0;', 'color: #FF99FF; background: #030307; padding:5px 0;', 'color: '+((session.method == 'WebSocket')?'#91FF3A':'#F8FF00')+'; background: #030307; padding:5px 0;', 'background: #4682B4; padding:5px 0;');
}
\ No newline at end of file
diff --git a/dist/ushio-footer.min.js b/dist/ushio-footer.min.js
index e8e85fc..59d63a7 100644
--- a/dist/ushio-footer.min.js
+++ b/dist/ushio-footer.min.js
@@ -8,5 +8,5 @@ if(!page.ushio){throw new Error("ushio::Ushio quitted!")}(function(t,e,i){"use s
* Depends:
* jquery.ui.widget.js
* jquery.ui.mouse.js
- */!function(t){function e(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var i=t.originalEvent.changedTouches[0],n=document.createEvent("MouseEvents");n.initMouseEvent(e,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}}if(t.support.touch="ontouchend"in document,t.support.touch){var i,n=t.ui.mouse.prototype,s=n._mouseInit,a=n._mouseDestroy;n._touchStart=function(t){var n=this;!i&&n._mouseCapture(t.originalEvent.changedTouches[0])&&(i=!0,n._touchMoved=!1,e(t,"mouseover"),e(t,"mousemove"),e(t,"mousedown"))},n._touchMove=function(t){i&&(this._touchMoved=!0,e(t,"mousemove"))},n._touchEnd=function(t){i&&(e(t,"mouseup"),e(t,"mouseout"),this._touchMoved||e(t,"click"),i=!1)},n._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),s.call(e)},n._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),a.call(e)}}}(jQuery);$("head").append('');$("title").remove();$("head").append("
"+page.title+"");$('[rel="icon"]').remove();$("head").append('');if(!$('[name="viewport"]').length&&typeof block_viewport=="undefined"){$("head").append('')}if(!$('[name="keywords"]').length){$("head").append('')}if(!$('[name="description"]').length){$("head").append('')}function getHiddenProp(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;e﹏<)";else document.title="Wow, page crashed(>﹏<)"}setTimeout("document.title = page.title",2400);clearInterval(page.TimerObj);page.TimerObj=null}if(document[getVisibilityState()]=="visible"){document.title=page.title;page.window=true;page.LastWindowOpenTime=(new Date).valueOf();session.open();if(page.TimerObj==null)page.TimerObj=setInterval("page.Timer++",1e3)}}),false)}async function log_ini(){page.fp=await fp;page.fpObj=await fp_details;page.fpObj.forEach(t=>{page[t.key]=t.value});$.get("https://log.yimian.xyz/iis.php",{fp:page.fp,url:page.url,lang:page.language,timezone:page.timezone,platform:page.platform,ram:page.deviceMemory,screen:page.screenResolution,userAgent:page.userAgent,webgl:page.webglVendorAndRenderer},(function(t){page.sid=JSON.parse(t).sid;page.ip=JSON.parse(t).ip;who()}));updateHref()}function who(){$.get("https://auth.yimian.xyz/who.php?mask="+page.mask+"&fp="+page.fp+"&ip="+page.ip,(function(t){if(t.code==200){session_ini_pre()}else{window.location.href="https://auth.yimian.xyz/?from="+window.btoa(page.url);throw new Error("ushio::Redirect to Ushio-auth!")}}))}async function session_ini_pre(){if(typeof WebSocket!="undefined"){session_websocket_ini()}else{session_ajax_ini()}if(session.status)drawBrand();else setTimeout(drawBrand,3300)}function log_update(){$.get("https://log.yimian.xyz/iis.php",{sid:page.sid,sessiontime:page.Timer})}setTimeout("log_ini();",20);function updateHref(){if(page.url.indexOf("?from=")!=-1)window.history.replaceState(null,"ushio",page.url.substr(0,page.url.indexOf("?from=")));if(page.url.indexOf("&from=")!=-1)window.history.replaceState(null,"ushio",page.url.substr(0,page.url.indexOf("&from=")));var t=$(document).find("a");for(var e in t){var i=t.eq(e).attr("href");var n=t.eq(e).attr("id");if(n)n=n.substr(0,5);if(i!=null){if(i.indexOf("?")==-1&&n=="ushio")t.eq(e).attr("href",i+(page.host?"?from=https://"+page.host:""));else if(n=="ushio")t.eq(e).attr("href",i+(page.host?"&from=https://"+page.host:""))}}}function session_websocket_ini(){page.ws=new ReconnectingWebSocket("wss://session.yimian.xyz/websocket/?fp="+page.fp+"&mask="+page.mask+"&flag="+page.flag);page.ws.maxReconnectInterval=60;page.ws.onopen=function(t){if(session.status===false)console.log("Ushio - Session Connected!!");page.ws.send("get");session.set=function(t,e){page.session[t]=e;page.session["LastOperateTime"]=(new Date).valueOf();page.ws.send('{"key":"'+t+'", "val": "'+e+'", "t":'+page.session.LastOperateTime+"}");page.ws.send("get");if(session.status)return true;else return false};session.get=function(t){page.ws.send("get");return page.session[t]};session.del=function(t){delete page.session[t];page.session["LastOperateTime"]=(new Date).valueOf();page.ws.send('{"del":"'+t+'", "t":"'+page.session["LastOperateTime"]+'"}');page.ws.send("get");if(session.status)return true;else return false};session.close=function(){try{page.ws.close()}catch(t){}session.status=false;delete page.ws};session.open=function(){session_websocket_ini()}};page.ws.onmessage=function(t){page.session=JSON.parse(t.data);session.method="WebSocket";session.status=true};page.ws.onerror=function(t){console.log("Ushio - Session Error::"+JSON.stringify(t));session.status=false};page.ws.onclose=function(){console.log("Ushio - Session Connection Lost!!");session.status=false}}function session_ajax_ini(t){var e=["",""];if(t){e=["php/",".php"]}try{session.close();delete session.set;delete session.get;delete session.del;delete session.open;delete session.close}catch(t){}session.set=function(i,n){page.session[i]=n;page.session["LastOperateTime"]=(new Date).valueOf();$.get("https://session.yimian.xyz/"+e[0]+"set"+e[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask+"&key="+i+"&val="+n+"&t="+page.session.LastOperateTime).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));$.get("https://session.yimian.xyz/"+e[0]+"get"+e[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask,(function(e){if(t)e=JSON.parse(e);page.session=e;session.status=true;session.method="ajax"})).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));if(session.status)return true;else return false};session.get=function(i){$.get("https://session.yimian.xyz/"+e[0]+"get"+e[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask,(function(e){if(t)e=JSON.parse(e);page.session=e;session.status=true;session.method="ajax"})).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));return page.session[i]};session.del=function(i){delete page.session[i];page.session["LastOperateTime"]=(new Date).valueOf();$.get("https://session.yimian.xyz/"+e[0]+"del"+e[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask+"&del="+i+"&t="+page.session.LastOperateTime).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));$.get("https://session.yimian.xyz/"+e[0]+"get"+e[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask,(function(e){if(t)e=JSON.parse(e);page.session=e;session.status=true;session.method="ajax"})).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));if(session.status)return true;else return false};session.close=function(){console.log("Ushio - Session Connection Lost!!");session.status=false};session.open=function(){session.get("LastOperateTime")};$.get("https://session.yimian.xyz/"+e[0]+"get"+e[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask,(function(e){if(t)e=JSON.parse(e);page.session=e;if(session.status===false)console.log("Ushio - Session Connected!!");session.status=true}))}var session_ini=function(t,e,i){if(!e||i!=session.get("hash")){t();return}setTimeout(session_ini,500,t,--e,i)};var session_wait=function(t){var e=session.get("hash");session_ini(t,0,e)};session.onload((function(){console.log("Ushio - session loaded.. "+((new Date).valueOf()/1e3-page.openTime)+"s")}));session.onload((function(){if(typeof block_aplayer=="undefined"||session.get("aplayer/status")=="play"){if(typeof block_aplayer=="undefined"&&session.get("aplayer/status")!="play"){setTimeout((function(){player_ini()}),25e3)}else{player_ini()}}}));session.onload((function(){var t=false;if(typeof session.get("group")=="undefined"){t=true;if(page.tran.getLang()=="zh")alert("Ushio-session没有您的记录,将登出...");else alert("Ushio-session do not have your record, Ushio will logout..");window.location.href="https://auth.yimian.xyz/checkout.php?from="+btoa(page.url);throw new Error("ushio::Redirect to Ushio-Logout!")}if(page.auth.indexOf("any")!=-1){if(session.get("group")=="anonymous"){t=true;if(page.tran.getLang()=="zh")alert("此页面需要您的联系方式,将跳转至登录页面...");else alert("This page needs your contact information..");window.location.href="https://login.yimian.xyz/?from="+page.url;throw new Error("ushio::Redirect to Ushio-Login!")}}else{page.auth.forEach((function(e){if(!t){if(!session.get(e)){t=true;if(page.tran.getLang()=="zh")alert("此页面需要您的"+e+",将跳转至登录页面...");else alert("This page needs your "+e+"..");window.location.href="https://login.yimian.xyz/?require="+e+"&from="+page.url;throw new Error("ushio::Redirect to Ushio-Login!")}}}))}}));session.onload((function(){var t=session.get("group");if(page.group.length){var e=0;page.group.forEach((function(i,n){if(t.indexOf(i)!=-1){e=n+1}}));if(!e){if(page.tran.getLang()=="zh")alert("本页面需要"+page.group[e]+"权限,您被拒绝访问。如有疑惑请联系站长i@iotcat.me!");else alert("You are denied to access this page because you do not have "+page.group[e]+" permission. Please contact i@iotcat.me for further information!");window.location.href="https://guide.yimian.xyz/"}}}));session.onload((function(){if(typeof lang!="undefined"&&lang.length>0){var t=lang[0];if(session.get("lang")){page.lang=[(navigator.language||navigator.userLanguage).substr(0,2)];page.lang=page.lang.concat(JSON.parse(atob(session.get("lang"))));cookie.set("_lang",session.get("lang"))}else{cookie.del("_lang")}if(session.get("nolang")){page.nolang=JSON.parse(atob(session.get("nolang")))}for(var e=0;e{if(page.tran.getLang()=="zh"){tips.warning({title:"Warnning",message:"This page is only available in Chinese~"})}if(page.tran.getLang()=="en"){tips.warning({title:"警告",message:"此页面仅提供英文版本~"})}};var n=function(t,e,n,a,o){tips.question({timeout:2e4,close:false,overlay:true,id:"question",zindex:999,title:t,message:e,position:"center",buttons:[["",function(t,e){var i=[];if(session.get("lang")){i=i.concat(JSON.parse(atob(session.get("lang"))))}i.push(o);session.set("lang",btoa(JSON.stringify(i)));page.tran.setLang(o);page.lang.push(o);t.hide({transitionOut:"fadeOut"},e,"button")},true],["",function(t,e){var n=[];if(session.get("nolang")){n=n.concat(JSON.parse(atob(session.get("nolang"))))}n.push(o);session.set("nolang",btoa(JSON.stringify(n)));page.nolang=n;if(lang.every(t=>page.nolang.indexOf(t)!=-1)){i()}t.hide({transitionOut:"fadeOut"},e,"button");s()}]]})};var s=()=>{for(var t=0;tpage.nolang.indexOf(t)!=-1)){i()}}}));function player_ini(){$.post("https://api.yimian.xyz/msc/?type=single&id="+(session.get("aplayer/playing")==undefined?"477215840":session.get("aplayer/playing"))+"&limit=15&random=true",(function(t){$.post("https://api.yimian.xyz/msc/?type=playlist&id="+(typeof aplayer_playlist=="undefined"?"808097971":aplayer_playlist)+"&limit=14&random=true",(function(e){e.unshift(t);$("body").append('');var i=new APlayer({element:document.getElementById("ap-f"),autoplay:false,fixed:true,loop:"all",order:"list",listFolded:true,showlrc:3,theme:"#00CBFF",listmaxheight:"200px",music:e});window.aplayers||(window.aplayers=[]),window.aplayers.push(i);window.aplayers[0].lrc.hide();if(session.get("aplayer/status")=="play"){window.aplayers[0].play();if(window.aplayers[0].audio.paused){window.aplayers[0].notice("Click Here",5e3,.8);if(page.tran.getLang()=="zh")tips.info({message:"戳左下角继续音乐哦(^_−)☆"});else tips.info({message:"Click bottom left conner to continue music (^_−)☆"})}}window.aplayers[0].on("play",(function(){session.set("aplayer/status","play");window.aplayers[0].lrc.show();if(window.aplayers[0].firstTime===undefined){adjustSeek();window.aplayers[0].firstTime=false}}));window.aplayers[0].on("pause",(function(){session.set("aplayer/status","pause");window.aplayers[0].lrc.hide()}));window.aplayers[0].on("listswitch",(function(t){session.set("aplayer/playing",window.aplayers[0].list.audios[t.index].id)}));setInterval((function(){try{if(!window.aplayers[0].audio.paused)session.set("aplayer/seek",window.aplayers[0].audio.currentTime)}catch(t){}}),5e3)}))}))}function adjustSeek(){if(session.get("aplayer/seek")!=undefined&&window.aplayers[0].audio.currentTime1){r+="
此页面提供以下语言版本,您可以点击切换:";lang.forEach((function(t){r+=' , "}))}}else{var t="Ushio Menu";var e="Guide";var i="Cool";var n="Github";var s="Account Setting";var a="Close";var o="Visitor";if(session.get("group")=="anonymous"){s="Login/Register"}if(session.get("nickname")){o=session.get("nickname")}var r="Hi, "+o;if(typeof lang!="undefined"&&lang.length>1){r+="
This page provides these language versions, you may click them to switch:";lang.forEach((function(t){r+=' , "}))}}r+="
";tips.question({timeout:3e4,close:false,overlay:true,id:"ushio-selection",zindex:999,title:t,color:"#80cbff",message:r,position:"center",buttons:[["",function(t,e){window.location.href="https://guide.yimian.xyz/";t.hide({transitionOut:"fadeOut"},e,"button")},true],["",function(t,e){window.location.href="https://ushio.cool/";t.hide({transitionOut:"fadeOut"},e,"button")},true],["",function(t,e){window.location.href="https://github.yimian.xyz/"+page.proj;t.hide({transitionOut:"fadeOut"},e,"button")},true],["",function(t,e){window.location.href="https://login.yimian.xyz/";t.hide({transitionOut:"fadeOut"},e,"button")},true],["",function(t,e){t.hide({transitionOut:"fadeOut"},e,"button")},true]],onOpening:function(){$("#_setting").hide()},onClosed:function(){$("#_setting").show()}})}))};page.setting={setting:{startline:0,scrollto:0,scrollduration:400,fadeduration:[500,100]},controlHTML:'',controlattrs:{offsetx:20,offsety:430},anchorkeyword:"#_setting",lastStartTime:0,lastStopTime:0,state:{isvisible:false,shouldvisible:false},scrollup:function(){page.showUshio()},keepfixed:function(){var t=jQuery(window);var e=t.scrollLeft()+t.width()-this.$control.width()-this.controlattrs.offsetx;var i=t.scrollTop()+t.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:e+"px",top:i+"px"})},togglecontrol:function(){var t=jQuery(window).scrollTop();if(!this.cssfixedsupport){this.keepfixed()}this.state.shouldvisible=t>=this.setting.startline?true:false;if(this.state.shouldvisible&&!this.state.isvisible){this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]);this.state.isvisible=true}else{if(this.state.shouldvisible==false&&this.state.isvisible){this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]);this.state.isvisible=false}}},init:function(){jQuery(document).ready((function(t){var e=page.setting;var i=document.all;e.cssfixedsupport=!i||i&&document.compatMode=="CSS1Compat"&&window.XMLHttpRequest;e.$body=window.opera?document.compatMode=="CSS1Compat"?t("html"):t("body"):t("html,body");e.$control=t(''+e.controlHTML+"
").css({position:e.cssfixedsupport?"fixed":"absolute","z-index":9999999,bottom:e.controlattrs.offsety,right:e.controlattrs.offsetx,opacity:0,cursor:"pointer"}).attr({title:"Ushio Setting"}).click((function(){})).appendTo("body");if(document.all&&!window.XMLHttpRequest&&e.$control.text()!=""){e.$control.css({width:e.$control.width()})}e.togglecontrol();t(window).bind("scroll resize",(function(t){}));t("#_setting").draggable({start:function(){e.lastStartTime=(new Date).valueOf();console.log("33333")},stop:function(){e.lastStopTime=(new Date).valueOf();console.log(e.lastStopTime-e.lastStartTime);if(e.lastStopTime-e.lastStartTime>0&&e.lastStopTime-e.lastStartTime<70){e.scrollup()}}});t("#_setting").click((function(){setTimeout((function(){if(!t(this).hasClass("dragging")){e.scrollup()}}),10)}))}))}};if(typeof block_setting=="undefined"){page.setting.init()}SessionLastCntTime=(new Date).valueOf();var session_errCnt=1;setInterval(()=>{if(session.status){SessionLastCntTime=(new Date).valueOf()}if(!page.window)return;if(page.LastWindowOpenTime>(new Date).valueOf()-1e4)SessionLastCntTime=page.LastWindowOpenTime;if((new Date).valueOf()-SessionLastCntTime>1e4){console.log("Session unhealthy!!");session_ajax_ini(session_errCnt++%2)}if((new Date).valueOf()-SessionLastCntTime>3e4){alert("Session Error!!! Page will reload!");window.location.reload();throw new Error("ushio::Page Reload!")}},7e3);function drawBrand(){if(!session.status){session_ajax_ini()}console.log("\n"+" %c Ushio v3.4.8 %c "+page.ip+" %c "+(session.method=="WebSocket"?"WebSocket":"Ajax")+" %c https://ushio.cool/ \n","color: #FFFFCC; background: #030307; padding:5px 0;","color: #FF99FF; background: #030307; padding:5px 0;","color: "+(session.method=="WebSocket"?"#91FF3A":"#F8FF00")+"; background: #030307; padding:5px 0;","background: #4682B4; padding:5px 0;")}
+ */!function(t){function e(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var i=t.originalEvent.changedTouches[0],n=document.createEvent("MouseEvents");n.initMouseEvent(e,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}}if(t.support.touch="ontouchend"in document,t.support.touch){var i,n=t.ui.mouse.prototype,s=n._mouseInit,a=n._mouseDestroy;n._touchStart=function(t){var n=this;!i&&n._mouseCapture(t.originalEvent.changedTouches[0])&&(i=!0,n._touchMoved=!1,e(t,"mouseover"),e(t,"mousemove"),e(t,"mousedown"))},n._touchMove=function(t){i&&(this._touchMoved=!0,e(t,"mousemove"))},n._touchEnd=function(t){i&&(e(t,"mouseup"),e(t,"mouseout"),this._touchMoved||e(t,"click"),i=!1)},n._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),s.call(e)},n._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),a.call(e)}}}(jQuery);$("head").append('');$("title").remove();$("head").append(""+page.title+"");$('[rel="icon"]').remove();$("head").append('');if(!$('[name="viewport"]').length&&typeof block_viewport=="undefined"){$("head").append('')}if(!$('[name="keywords"]').length){$("head").append('')}if(!$('[name="description"]').length){$("head").append('')}function getHiddenProp(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;e﹏<)";else document.title="Wow, page crashed(>﹏<)"}setTimeout("document.title = page.title",2400);clearInterval(page.TimerObj);page.TimerObj=null}if(document[getVisibilityState()]=="visible"){document.title=page.title;page.window=true;page.LastWindowOpenTime=(new Date).valueOf();session.open();if(page.TimerObj==null)page.TimerObj=setInterval("page.Timer++",1e3)}}),false)}async function log_ini(){page.fp=await fp;page.fpObj=await fp_details;page.fpObj.forEach(t=>{page[t.key]=t.value});$.get("https://log.yimian.xyz/iis.php",{fp:page.fp,url:page.url,lang:page.language,timezone:page.timezone,platform:page.platform,ram:page.deviceMemory,screen:page.screenResolution,userAgent:page.userAgent,webgl:page.webglVendorAndRenderer},(function(t){page.sid=JSON.parse(t).sid;page.ip=JSON.parse(t).ip;who()}));updateHref()}function who(){$.get("https://auth.yimian.xyz/who.php?mask="+page.mask+"&fp="+page.fp+"&ip="+page.ip,(function(t){if(t.code==200){session_ini_pre()}else{window.location.href="https://auth.yimian.xyz/?from="+window.btoa(page.url);throw new Error("ushio::Redirect to Ushio-auth!")}}))}async function session_ini_pre(){if(typeof WebSocket!="undefined"){session_websocket_ini()}else{session_ajax_ini()}if(session.status)drawBrand();else setTimeout(drawBrand,3300)}function log_update(){$.get("https://log.yimian.xyz/iis.php",{sid:page.sid,sessiontime:page.Timer})}setTimeout("log_ini();",20);function updateHref(){if(page.url.indexOf("?from=")!=-1)window.history.replaceState(null,"ushio",page.url.substr(0,page.url.indexOf("?from=")));if(page.url.indexOf("&from=")!=-1)window.history.replaceState(null,"ushio",page.url.substr(0,page.url.indexOf("&from=")));var t=$(document).find("a");for(var e in t){var i=t.eq(e).attr("href");var n=t.eq(e).attr("id");if(n)n=n.substr(0,5);if(i!=null){if(i.indexOf("?")==-1&&n=="ushio")t.eq(e).attr("href",i+(page.host?"?from=https://"+page.host:""));else if(n=="ushio")t.eq(e).attr("href",i+(page.host?"&from=https://"+page.host:""))}}}function session_websocket_ini(){page.ws=new ReconnectingWebSocket("wss://session.yimian.xyz/websocket/?fp="+page.fp+"&mask="+page.mask+"&flag="+page.flag);page.ws.maxReconnectInterval=60;page.ws.onopen=function(t){if(session.status===false)console.log("Ushio - Session Connected!!");page.ws.send("get");session.set=function(t,e){page.session[t]=e;page.session["LastOperateTime"]=(new Date).valueOf();page.ws.send('{"key":"'+t+'", "val": "'+e+'", "t":'+page.session.LastOperateTime+"}");page.ws.send("get");if(session.status)return true;else return false};session.get=function(t){page.ws.send("get");return page.session[t]};session.del=function(t){delete page.session[t];page.session["LastOperateTime"]=(new Date).valueOf();page.ws.send('{"del":"'+t+'", "t":"'+page.session["LastOperateTime"]+'"}');page.ws.send("get");if(session.status)return true;else return false};session.close=function(){try{page.ws.close()}catch(t){}session.status=false;delete page.ws};session.open=function(){session_websocket_ini()}};page.ws.onmessage=function(t){page.session=JSON.parse(t.data);session.method="WebSocket";session.status=true};page.ws.onerror=function(t){console.log("Ushio - Session Error::"+JSON.stringify(t));session.status=false};page.ws.onclose=function(){console.log("Ushio - Session Connection Lost!!");session.status=false}}function session_ajax_ini(t){var e=["",""];if(t){e=["php/",".php"]}try{session.close();delete session.set;delete session.get;delete session.del;delete session.open;delete session.close}catch(t){}session.set=function(i,n){page.session[i]=n;page.session["LastOperateTime"]=(new Date).valueOf();$.get("https://session.yimian.xyz/"+e[0]+"set"+e[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask+"&key="+i+"&val="+n+"&t="+page.session.LastOperateTime).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));$.get("https://session.yimian.xyz/"+e[0]+"get"+e[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask,(function(e){if(t)e=JSON.parse(e);page.session=e;session.status=true;session.method="ajax"})).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));if(session.status)return true;else return false};session.get=function(i){$.get("https://session.yimian.xyz/"+e[0]+"get"+e[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask,(function(e){if(t)e=JSON.parse(e);page.session=e;session.status=true;session.method="ajax"})).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));return page.session[i]};session.del=function(i){delete page.session[i];page.session["LastOperateTime"]=(new Date).valueOf();$.get("https://session.yimian.xyz/"+e[0]+"del"+e[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask+"&del="+i+"&t="+page.session.LastOperateTime).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));$.get("https://session.yimian.xyz/"+e[0]+"get"+e[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask,(function(e){if(t)e=JSON.parse(e);page.session=e;session.status=true;session.method="ajax"})).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));if(session.status)return true;else return false};session.close=function(){console.log("Ushio - Session Connection Lost!!");session.status=false};session.open=function(){session.get("LastOperateTime")};$.get("https://session.yimian.xyz/"+e[0]+"get"+e[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask,(function(e){if(t)e=JSON.parse(e);page.session=e;if(session.status===false)console.log("Ushio - Session Connected!!");session.status=true}))}var session_ini=function(t,e,i){if(!e||i!=session.get("hash")){t();return}setTimeout(session_ini,500,t,--e,i)};var session_wait=function(t){var e=session.get("hash");session_ini(t,0,e)};session.onload((function(){console.log("Ushio - session loaded.. "+((new Date).valueOf()/1e3-page.openTime)+"s")}));session.onload((function(){if(typeof block_aplayer=="undefined"||session.get("aplayer/status")=="play"){if(typeof block_aplayer=="undefined"&&session.get("aplayer/status")!="play"){setTimeout((function(){player_ini()}),25e3)}else{player_ini()}}}));session.onload((function(){var t=false;if(typeof session.get("group")=="undefined"){t=true;if(page.tran.getLang()=="zh")alert("Ushio-session没有您的记录,将登出...");else alert("Ushio-session do not have your record, Ushio will logout..");window.location.href="https://auth.yimian.xyz/checkout.php?from="+btoa(page.url);throw new Error("ushio::Redirect to Ushio-Logout!")}if(page.auth.indexOf("any")!=-1){if(session.get("group")=="anonymous"){t=true;if(page.tran.getLang()=="zh")alert("此页面需要您的联系方式,将跳转至登录页面...");else alert("This page needs your contact information..");window.location.href="https://login.yimian.xyz/?from="+page.url;throw new Error("ushio::Redirect to Ushio-Login!")}}else{page.auth.forEach((function(e){if(!t){if(!session.get(e)){t=true;if(page.tran.getLang()=="zh")alert("此页面需要您的"+e+",将跳转至登录页面...");else alert("This page needs your "+e+"..");window.location.href="https://login.yimian.xyz/?require="+e+"&from="+page.url;throw new Error("ushio::Redirect to Ushio-Login!")}}}))}}));session.onload((function(){var t=session.get("group");if(page.group.length){var e=0;page.group.forEach((function(i,n){if(t.indexOf(i)!=-1){e=n+1}}));if(!e){if(page.tran.getLang()=="zh")alert("本页面需要"+page.group[e]+"权限,您被拒绝访问。如有疑惑请联系站长i@iotcat.me!");else alert("You are denied to access this page because you do not have "+page.group[e]+" permission. Please contact i@iotcat.me for further information!");window.location.href="https://guide.yimian.xyz/"}}}));session.onload((function(){if(typeof lang!="undefined"&&lang.length>0){var t=lang[0];if(session.get("lang")){page.lang=[(navigator.language||navigator.userLanguage).substr(0,2)];page.lang=page.lang.concat(JSON.parse(atob(session.get("lang"))));cookie.set("_lang",session.get("lang"))}else{cookie.del("_lang")}if(session.get("nolang")){page.nolang=JSON.parse(atob(session.get("nolang")))}for(var e=0;e{if(page.tran.getLang()=="zh"){tips.warning({title:"Warnning",message:"This page is only available in Chinese~"})}if(page.tran.getLang()=="en"){tips.warning({title:"警告",message:"此页面仅提供英文版本~"})}};var n=function(t,e,n,a,o){tips.question({timeout:2e4,close:false,overlay:true,id:"question",zindex:999,title:t,message:e,position:"center",buttons:[["",function(t,e){var i=[];if(session.get("lang")){i=i.concat(JSON.parse(atob(session.get("lang"))))}i.push(o);session.set("lang",btoa(JSON.stringify(i)));page.tran.setLang(o);page.lang.push(o);t.hide({transitionOut:"fadeOut"},e,"button")},true],["",function(t,e){var n=[];if(session.get("nolang")){n=n.concat(JSON.parse(atob(session.get("nolang"))))}n.push(o);session.set("nolang",btoa(JSON.stringify(n)));page.nolang=n;if(lang.every(t=>page.nolang.indexOf(t)!=-1)){i()}t.hide({transitionOut:"fadeOut"},e,"button");s()}]]})};var s=()=>{for(var t=0;tpage.nolang.indexOf(t)!=-1)){i()}}}));function player_ini(){$.post("https://api.yimian.xyz/msc/?type=single&id="+(session.get("aplayer/playing")==undefined?"477215840":session.get("aplayer/playing"))+"&limit=15&random=true",(function(t){$.post("https://api.yimian.xyz/msc/?type=playlist&id="+(typeof aplayer_playlist=="undefined"?"808097971":aplayer_playlist)+"&limit=14&random=true",(function(e){e.unshift(t);$("body").append('');var i=new APlayer({element:document.getElementById("ap-f"),autoplay:false,fixed:true,loop:"all",order:"list",listFolded:true,showlrc:3,theme:"#00CBFF",listmaxheight:"200px",music:e});window.aplayers||(window.aplayers=[]),window.aplayers.push(i);window.aplayers[0].lrc.hide();if(session.get("aplayer/status")=="play"){window.aplayers[0].play();if(window.aplayers[0].audio.paused){window.aplayers[0].notice("Click Here",5e3,.8);if(page.tran.getLang()=="zh")tips.info({message:"戳左下角继续音乐哦(^_−)☆"});else tips.info({message:"Click bottom left conner to continue music (^_−)☆"})}}window.aplayers[0].on("play",(function(){session.set("aplayer/status","play");window.aplayers[0].lrc.show();if(window.aplayers[0].firstTime===undefined){adjustSeek();window.aplayers[0].firstTime=false}}));window.aplayers[0].on("pause",(function(){session.set("aplayer/status","pause");window.aplayers[0].lrc.hide()}));window.aplayers[0].on("listswitch",(function(t){session.set("aplayer/playing",window.aplayers[0].list.audios[t.index].id)}));setInterval((function(){try{if(!window.aplayers[0].audio.paused)session.set("aplayer/seek",window.aplayers[0].audio.currentTime)}catch(t){}}),5e3)}))}))}function adjustSeek(){if(session.get("aplayer/seek")!=undefined&&window.aplayers[0].audio.currentTime1){r+="
此页面提供以下语言版本,您可以点击切换:";lang.forEach((function(t){r+=' , "}))}}else{var t="Ushio Menu";var e="Guide";var i="Cool";var n="Github";var s="Account Setting";var a="Close";var o="Visitor";if(session.get("group")=="anonymous"){s="Login/Register"}if(session.get("nickname")){o=session.get("nickname")}var r="Hi, "+o;if(typeof lang!="undefined"&&lang.length>1){r+="
This page provides these language versions, you may click them to switch:";lang.forEach((function(t){r+=' , "}))}}r+="
";tips.question({timeout:3e4,close:false,overlay:true,id:"ushio-selection",zindex:999,title:t,color:"#80cbff",message:r,position:"center",buttons:[["",function(t,e){window.location.href="https://guide.yimian.xyz/";t.hide({transitionOut:"fadeOut"},e,"button")},true],["",function(t,e){window.location.href="https://ushio.cool/";t.hide({transitionOut:"fadeOut"},e,"button")},true],["",function(t,e){window.location.href="https://github.yimian.xyz/"+page.proj;t.hide({transitionOut:"fadeOut"},e,"button")},true],["",function(t,e){window.location.href="https://login.yimian.xyz/";t.hide({transitionOut:"fadeOut"},e,"button")},true],["",function(t,e){t.hide({transitionOut:"fadeOut"},e,"button")},true]],onOpening:function(){$("#_setting").hide()},onClosed:function(){$("#_setting").show()}})}))};page.setting={setting:{startline:0,scrollto:0,scrollduration:400,fadeduration:[500,100]},controlHTML:'',controlattrs:{offsetx:20,offsety:430},anchorkeyword:"#_setting",lastStartTime:0,lastStopTime:0,state:{isvisible:false,shouldvisible:false},scrollup:function(){page.showUshio()},keepfixed:function(){var t=jQuery(window);var e=t.scrollLeft()+t.width()-this.$control.width()-this.controlattrs.offsetx;var i=t.scrollTop()+t.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:e+"px",top:i+"px"})},togglecontrol:function(){var t=jQuery(window).scrollTop();if(!this.cssfixedsupport){this.keepfixed()}this.state.shouldvisible=t>=this.setting.startline?true:false;if(this.state.shouldvisible&&!this.state.isvisible){this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]);this.state.isvisible=true}else{if(this.state.shouldvisible==false&&this.state.isvisible){this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]);this.state.isvisible=false}}},init:function(){jQuery(document).ready((function(t){var e=page.setting;var i=document.all;e.cssfixedsupport=!i||i&&document.compatMode=="CSS1Compat"&&window.XMLHttpRequest;e.$body=window.opera?document.compatMode=="CSS1Compat"?t("html"):t("body"):t("html,body");e.$control=t(''+e.controlHTML+"
").css({position:e.cssfixedsupport?"fixed":"absolute","z-index":9999999,bottom:e.controlattrs.offsety,right:e.controlattrs.offsetx,opacity:0,cursor:"pointer"}).attr({title:"Ushio Setting"}).click((function(){})).appendTo("body");if(document.all&&!window.XMLHttpRequest&&e.$control.text()!=""){e.$control.css({width:e.$control.width()})}e.togglecontrol();t(window).bind("scroll resize",(function(t){}));t("#_setting").draggable({start:function(){e.lastStartTime=(new Date).valueOf();console.log("33333")},stop:function(){e.lastStopTime=(new Date).valueOf();console.log(e.lastStopTime-e.lastStartTime);if(e.lastStopTime-e.lastStartTime>0&&e.lastStopTime-e.lastStartTime<70){e.scrollup()}}});t("#_setting").click((function(){setTimeout((function(){if(!t(this).hasClass("dragging")){e.scrollup()}}),10)}))}))}};if(typeof block_setting=="undefined"){page.setting.init()}SessionLastCntTime=(new Date).valueOf();var session_errCnt=1;setInterval(()=>{if(session.status){SessionLastCntTime=(new Date).valueOf()}if(!page.window)return;if(page.LastWindowOpenTime>(new Date).valueOf()-1e4)SessionLastCntTime=page.LastWindowOpenTime;if((new Date).valueOf()-SessionLastCntTime>1e4){console.log("Session unhealthy!!");session_ajax_ini(session_errCnt++%2)}if((new Date).valueOf()-SessionLastCntTime>3e4){alert("Session Error!!! Page will reload!");window.location.reload();throw new Error("ushio::Page Reload!")}},7e3);function drawBrand(){if(!session.status){session_ajax_ini()}console.log("\n"+" %c Ushio v3.4.9 %c "+page.ip+" %c "+(session.method=="WebSocket"?"WebSocket":"Ajax")+" %c https://ushio.cool/ \n","color: #FFFFCC; background: #030307; padding:5px 0;","color: #FF99FF; background: #030307; padding:5px 0;","color: "+(session.method=="WebSocket"?"#91FF3A":"#F8FF00")+"; background: #030307; padding:5px 0;","background: #4682B4; padding:5px 0;")}
//# sourceMappingURL=C
\ No newline at end of file
diff --git a/dist/ushio-head.js b/dist/ushio-head.js
index 603af23..57719c8 100644
--- a/dist/ushio-head.js
+++ b/dist/ushio-head.js
@@ -132,7 +132,7 @@ if(cookie.get('_lang')){
$('.\\.'+l).show();
page.tran.getLang = function(){return l;}
}
-
+ page.tran.getLang = function(){return (navigator.language||navigator.userLanguage).substr(0, 2);}
$(function(){
page.tran.setLang(l);
});
diff --git a/dist/ushio-head.min.js b/dist/ushio-head.min.js
index 0f35df7..4b010ac 100644
--- a/dist/ushio-head.min.js
+++ b/dist/ushio-head.min.js
@@ -1,2 +1,2 @@
-!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],k=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,m=n.hasOwnProperty,a=m.toString,l=a.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||k).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",E=function(e,t){return new E.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!y(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),Y={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+_),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=we(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){q.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(e,t,n,r){var i,o,a,s,u,l,c,f=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!r&&((t?t.ownerDocument||t:y)!==C&&T(t),t=t||C,k)){if(11!==p&&(u=Z.exec(e)))if(i=u[1]){if(9===p){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&v(t,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&d.getElementsByClassName&&t.getElementsByClassName)return H.apply(n,t.getElementsByClassName(i)),n}if(d.qsa&&!j[e+" "]&&(!m||!m.test(e))&&(1!==p||"object"!==t.nodeName.toLowerCase())){if(c=e,f=t,1===p&&U.test(e)){(s=t.getAttribute("id"))?s=s.replace(re,ie):t.setAttribute("id",s=E),o=(l=h(e)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(e)&&ve(t.parentNode)||t}try{return H.apply(n,f.querySelectorAll(c)),n}catch(t){j(e,!0)}finally{s===E&&t.removeAttribute("id")}}}return g(e.replace(F,"$1"),t,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>w.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[E]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)w.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function me(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:y;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,k=!i(C),y!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=E,!C.getElementsByName||!C.getElementsByName(E).length}),d.getById?(w.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&k){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&k){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&k)return t.getElementsByClassName(e)},s=[],m=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+E+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||m.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),m=m.length&&new RegExp(m.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),v=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===y&&v(y,e)?-1:t===C||t.ownerDocument===y&&v(y,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===y?-1:s[r]===y?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&k&&!j[t+" "]&&(!s||!s.test(t))&&(!m||!m.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){j(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(e,n,r){return y(n)?E.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?E.grep(e,function(e){return e===n!==r}):"string"!=typeof n?E.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||L,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:k,!0)),N.test(r[1])&&E.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=k.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,L=E(k);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function me(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&j(e,t)?E.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;nx",v.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ke=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function Se(){return!1}function De(e,t){return e===function(){try{return k.activeElement}catch(e){}}()==("focus"===t)}function je(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)je(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return E().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=E.guid++)),e.each(function(){E.event.add(this,t,i,r,n)})}function Ne(e,i,o){o?(Q.set(e,i,!1),E.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(E.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:E.event.trigger(E.extend(r[0],E.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&E.event.add(e,i,Ee)}E.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,m=Q.get(t);if(m){n.handler&&(n=(o=n).handler,i=o.selector),i&&E.find.matchesSelector(ie,i),n.guid||(n.guid=E.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(e){return"undefined"!=typeof E&&E.event.triggered!==e.type?E.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=ke.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=E.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=E.event.special[d]||{},c=E.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&E.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),E.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,m=Q.hasData(e)&&Q.get(e);if(m&&(u=m.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=ke.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=E.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,m.handle)||E.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)E.event.remove(e,d+t[l],n,r,!0);E.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=E.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=E.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,Le=/