").append(b.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.each(["get","post"],function(e,n){b[n]=function(e,r,i,o){return b.isFunction(r)&&(o=o||i,i=r,r=t),b.ajax({url:e,type:n,dataType:o,data:r,success:i})}}),b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Nn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Mn(Mn(e,b.ajaxSettings),t):Mn(b.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,u,l,c,p=b.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?b(f):b.event,h=b.Deferred(),g=b.Callbacks("once memory"),m=p.statusCode||{},y={},v={},x=0,T="canceled",N={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return x||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)m[t]=[m[t],e[t]];else N.always(e[N.status]);return this},abort:function(e){var t=e||T;return l&&l.abort(t),k(0,t),this}};if(h.promise(N).complete=g.add,N.success=N.done,N.error=N.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=b.trim(p.dataType||"*").toLowerCase().match(w)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?80:443))==(mn[3]||("http:"===mn[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=b.param(p.data,p.traditional)),qn(An,p,n,N),2===x)return N;u=p.global,u&&0===b.active++&&b.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Cn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(b.lastModified[o]&&N.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&N.setRequestHeader("If-None-Match",b.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&N.setRequestHeader("Content-Type",p.contentType),N.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)N.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,N,p)===!1||2===x))return N.abort();T="abort";for(i in{success:1,error:1,complete:1})N[i](p[i]);if(l=qn(jn,p,n,N)){N.readyState=1,u&&d.trigger("ajaxSend",[N,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){N.abort("timeout")},p.timeout));try{x=1,l.send(y,k)}catch(C){if(!(2>x))throw C;k(-1,C)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,C=n;2!==x&&(x=2,s&&clearTimeout(s),l=t,a=i||"",N.readyState=e>0?4:0,r&&(w=_n(p,N,r)),e>=200&&300>e||304===e?(p.ifModified&&(T=N.getResponseHeader("Last-Modified"),T&&(b.lastModified[o]=T),T=N.getResponseHeader("etag"),T&&(b.etag[o]=T)),204===e?(c=!0,C="nocontent"):304===e?(c=!0,C="notmodified"):(c=Fn(p,w),C=c.state,y=c.data,v=c.error,c=!v)):(v=C,(e||!C)&&(C="error",0>e&&(e=0))),N.status=e,N.statusText=(n||C)+"",c?h.resolveWith(f,[y,C,N]):h.rejectWith(f,[N,C,v]),N.statusCode(m),m=t,u&&d.trigger(c?"ajaxSuccess":"ajaxError",[N,p,c?y:v]),g.fireWith(f,[N,C]),u&&(d.trigger("ajaxComplete",[N,p]),--b.active||b.event.trigger("ajaxStop")))}return N},getScript:function(e,n){return b.get(e,t,n,"script")},getJSON:function(e,t,n){return b.get(e,t,n,"json")}});function _n(e,n,r){var i,o,a,s,u=e.contents,l=e.dataTypes,c=e.responseFields;for(s in c)s in r&&(n[c[s]]=r[s]);while("*"===l[0])l.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in u)if(u[s]&&u[s].test(o)){l.unshift(s);break}if(l[0]in r)a=l[0];else{for(s in r){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==l[0]&&l.unshift(a),r[a]):t}function Fn(e,t){var n,r,i,o,a={},s=0,u=e.dataTypes.slice(),l=u[0];if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u[1])for(i in e.converters)a[i.toLowerCase()]=e.converters[i];for(;r=u[++s];)if("*"!==r){if("*"!==l&&l!==r){if(i=a[l+" "+r]||a["* "+r],!i)for(n in a)if(o=n.split(" "),o[1]===r&&(i=a[l+" "+o[0]]||a["* "+o[0]])){i===!0?i=a[n]:a[n]!==!0&&(r=o[0],u.splice(s--,0,r));break}if(i!==!0)if(i&&e["throws"])t=i(t);else try{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"No conversion from "+l+" to "+r}}}l=r}return{state:"success",data:t}}b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),b.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=o.head||b("head")[0]||o.documentElement;return{send:function(t,i){n=o.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var On=[],Bn=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=On.pop()||b.expando+"_"+vn++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=b.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||b.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,On.push(o)),s&&b.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}b.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=b.ajaxSettings.xhr(),b.support.cors=!!Rn&&"withCredentials"in Rn,Rn=b.support.ajax=!!Rn,Rn&&b.ajaxTransport(function(n){if(!n.crossDomain||b.support.cors){var r;return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catch(l){}u.send(n.hasContent&&n.data||null),r=function(e,i){var s,l,c,p;try{if(r&&(i||4===u.readyState))if(r=t,a&&(u.onreadystatechange=b.noop,$n&&delete Pn[a]),i)4!==u.readyState&&u.abort();else{p={},s=u.status,l=u.getAllResponseHeaders(),"string"==typeof u.responseText&&(p.text=u.responseText);try{c=u.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,l)},n.async?4===u.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},b(e).unload($n)),Pn[a]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+x+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n,r,i=this.createTween(e,t),o=Yn.exec(t),a=i.cur(),s=+a||0,u=1,l=20;if(o){if(n=+o[2],r=o[3]||(b.cssNumber[e]?"":"px"),"px"!==r&&s){s=b.css(i.elem,e,!0)||n||1;do u=u||".5",s/=u,b.style(i.elem,e,s+r);while(u!==(u=i.cur()/a)&&1!==u&&--l)}i.unit=r,i.start=s,i.end=o[1]?s+(o[1]+1)*n:n}return i}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=b.now()}function Zn(e,t){b.each(t,function(t,n){var r=(Qn[t]||[]).concat(Qn["*"]),i=0,o=r.length;for(;o>i;i++)if(r[i].call(e,t,n))return})}function er(e,t,n){var r,i,o=0,a=Gn.length,s=b.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;for(;u>a;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),1>o&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(tr(c,l.opts.specialEasing);a>o;o++)if(r=Gn[o].call(l,e,c,l.opts))return r;return Zn(l,c),b.isFunction(l.opts.start)&&l.opts.start.call(e,l),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function tr(e,t){var n,r,i,o,a;for(i in e)if(r=b.camelCase(i),o=t[r],n=e[i],b.isArray(n)&&(o=n[1],n=e[i]=n[0]),i!==r&&(e[r]=n,delete e[i]),a=b.cssHooks[r],a&&"expand"in a){n=a.expand(n),delete e[r];for(i in n)i in e||(e[i]=n[i],t[i]=o)}else t[r]=o}b.Animation=b.extend(er,{tweener:function(e,t){b.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,u,l,c,p,f=this,d=e.style,h={},g=[],m=e.nodeType&&nn(e);n.queue||(c=b._queueHooks(e,"fx"),null==c.unqueued&&(c.unqueued=0,p=c.empty.fire,c.empty.fire=function(){c.unqueued||p()}),c.unqueued++,f.always(function(){f.always(function(){c.unqueued--,b.queue(e,"fx").length||c.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===b.css(e,"display")&&"none"===b.css(e,"float")&&(b.support.inlineBlockNeedsLayout&&"inline"!==un(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",b.support.shrinkWrapBlocks||f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(i in t)if(a=t[i],Vn.exec(a)){if(delete t[i],u=u||"toggle"===a,a===(m?"hide":"show"))continue;g.push(i)}if(o=g.length){s=b._data(e,"fxshow")||b._data(e,"fxshow",{}),"hidden"in s&&(m=s.hidden),u&&(s.hidden=!m),m?b(e).show():f.done(function(){b(e).hide()}),f.done(function(){var t;b._removeData(e,"fxshow");for(t in h)b.style(e,t,h[t])});for(i=0;o>i;i++)r=g[i],l=f.createTween(r,m?s[r]:0),h[r]=s[r]||b.style(e,r),r in s||(s[r]=l.start,m&&(l.end=l.start,l.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}b.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=b.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[b.cssProps[e.prop]]||b.cssHooks[e.prop])?b.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.each(["toggle","show","hide"],function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),a=function(){var t=er(this,b.extend({},e),o);a.finish=function(){t.stop(!0)},(i||b._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=b.timers,a=b._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&b.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=b._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}b.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||b.isFunction(e)&&e,duration:e,easing:n&&t||t&&!b.isFunction(t)&&t};return r.duration=b.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in b.fx.speeds?b.fx.speeds[r.duration]:b.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){b.isFunction(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},b.timers=[],b.fx=rr.prototype.init,b.fx.tick=function(){var e,n=b.timers,r=0;for(Xn=b.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||b.fx.stop(),Xn=t},b.fx.timer=function(e){e()&&b.timers.push(e)&&b.fx.start()},b.fx.interval=13,b.fx.start=function(){Un||(Un=setInterval(b.fx.tick,b.fx.interval))},b.fx.stop=function(){clearInterval(Un),Un=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fx.step={},b.expr&&b.expr.filters&&(b.expr.filters.animated=function(e){return b.grep(b.timers,function(t){return e===t.elem}).length}),b.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){b.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,b.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},b.offset={setOffset:function(e,t,n){var r=b.css(e,"position");"static"===r&&(e.style.position="relative");var i=b(e),o=i.offset(),a=b.css(e,"top"),s=b.css(e,"left"),u=("absolute"===r||"fixed"===r)&&b.inArray("auto",[a,s])>-1,l={},c={},p,f;u?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),b.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(l.top=t.top-o.top+p),null!=t.left&&(l.left=t.left-o.left+f),"using"in t?t.using.call(e,l):i.css(l)}},b.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===b.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),b.nodeName(e[0],"html")||(n=e.offset()),n.top+=b.css(e[0],"borderTopWidth",!0),n.left+=b.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-b.css(r,"marginTop",!0),left:t.left-n.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||o.documentElement;while(e&&!b.nodeName(e,"html")&&"static"===b.css(e,"position"))e=e.offsetParent;return e||o.documentElement})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);b.fn[e]=function(i){return b.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?b(a).scrollLeft():o,r?o:b(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return b.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}b.each({Height:"height",Width:"width"},function(e,n){b.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){b.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return b.access(this,function(n,r,i){var o;return b.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?b.css(n,r,s):b.style(n,r,i,s)},n,a?i:t,a,null)}})}),e.jQuery=e.$=b,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return b})})(window);
\ No newline at end of file
diff --git a/assets/js/popup.js b/assets/js/popup.js
new file mode 100644
index 0000000..fcf6653
--- /dev/null
+++ b/assets/js/popup.js
@@ -0,0 +1,25 @@
+const btn = document.querySelector("#switch");
+
+chrome.storage.sync.get("linkOpen", ({ linkOpen }) => {
+ btn.checked = linkOpen;
+});
+
+btn.addEventListener("change", () => {
+ if (btn.checked) {
+ chrome.storage.sync.set({ linkOpen: true });
+ } else {
+ chrome.storage.sync.set({ linkOpen: false });
+ }
+ // 获取当前tab窗口
+ chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
+ chrome.scripting.executeScript({
+ target: { tabId: tabs[0].id },
+ func: refreshPage,
+ });
+ });
+});
+
+// 刷新页面
+function refreshPage() {
+ window.location.reload();
+}
\ No newline at end of file
diff --git a/assets/js/url.js b/assets/js/url.js
new file mode 100644
index 0000000..ace9ac8
--- /dev/null
+++ b/assets/js/url.js
@@ -0,0 +1,100 @@
+window.onload = function(){
+
+ chrome.storage.sync.get("linkOpen", ({ linkOpen })=>{
+ if(linkOpen){
+ let locHost = location.host,locHref = location.href;
+
+ let methods = {
+ http(link, s = false) {
+ return link.startsWith("http")
+ ? link
+ : (s ? "https://" : "http://") + link;
+ },
+ };
+
+ let RedirectPage = {
+ sites: {
+ "c.pc.qq.com": {
+ include: "middlem.html?pfurl=",
+ selector: "#url",
+ },
+ "docs.qq.com": {
+ include: "scenario/link.html?url=",
+ selector: "span.url-src",
+ timeout: 500,
+ },
+ "www.tianyancha.com": {
+ include: "security?target=",
+ selector: "div.security-link",
+ },
+ "jump.bdimg.com": {
+ include: "safecheck/index?url=",
+ selector: "div.warning_info.fl>a",
+ },
+ "jump2.bdimg.com": {
+ include: "safecheck/index?url=",
+ selector: "div.warning_info.fl>a",
+ },
+ "www.chinaz.com": {
+ include: "go.shtml?url=",
+ selector: "div.link-bd__text",
+ },
+ "www.douban.com": {
+ include: "link2/?url=",
+ selector: "a.btn-redir",
+ },
+ "iphone.myzaker.com" : {
+ include: "zaker/link.php?",
+ selector: "a.btn",
+ },
+ "www.itdaan.com": {
+ include: "link/",
+ selector: "a.c-footer-a1",
+ },
+ "link.csdn.net": {
+ include: "?target=",
+ selector: "a.loading-btn",
+ timeout: 100,
+ },
+ "link.zhihu.com":{
+ include :"?target=",
+ selector : "a.button"
+ },
+ "link.juejin.cn": {
+ include: "?target=",
+ selector: 'p[style="margin: 0px;"]',
+ },
+ "www.jianshu.com": {
+ include: "go-wild?ac=2&url=",
+ selector: 'div[title^="http"], div[title^="www"]',
+ },
+ // QQ、腾讯文档、天眼查、百度贴吧、站长之家、豆瓣、Zaker、开发者知识库、CSDN、知乎、掘金、简书etc...
+ },
+
+ redirect(host){
+ let site = this.sites[host];
+ if (site) {
+ let include = host + "/" + site.include;
+ if (locHref.includes(include) || site.match && locHref.match(site.match)) {
+
+ let target = document.querySelector(site.selector);
+ if (target.length) location.replace(target.href || target.innerText);
+
+ }
+ }
+ }
+ }
+
+ locHref = locHref.split(RedirectPage.sites[locHost].include);
+ if(locHref){
+ location.replace(decodeURIComponent(locHref[1]));
+ }else{
+ //改进
+ let target = document.querySelector(RedirectPage.sites[locHost].selector);
+ location.replace(target.href || target.innerText)
+ }
+
+ //两种方案 默认不阻止重定向 阻止重定向直接跳转
+ }
+ })
+}
\ No newline at end of file
diff --git a/images/get_started128.png b/images/get_started128.png
new file mode 100644
index 0000000000000000000000000000000000000000..4c1cf87615c86adb4e84f935297e12f425548a9e
GIT binary patch
literal 2816
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
literal 0
HcmV?d00001
diff --git a/images/get_started32.png b/images/get_started32.png
new file mode 100644
index 0000000000000000000000000000000000000000..77152233a85eb4834ebbb36106282159e75f1337
GIT binary patch
literal 814
zcmV+}1JV46P)~_VHC%IvsV{qU02gZG!e{~XbscS1eJo8EDJQm
zFhvk55~V;XLZOH3A*h~$uqcQKdyxpDV0-f+i6BwI!tw$oq#3okx;s1WOb>QZyzK6{
zt>%>YtLy^0xeqHPh?R8~)RH*k
zMp^bOW*Km0LUE#mKLAF<@|b-Hz!uD>0+k)a62r{#U9|V?mynHxvtv^
z-D6S%8|fYu07G^TI#K+W%A_RV^D5nyHFVbuAc!IhwawTM9^l;2t)HFdioUH_vH0;cNVfM$AoXB9aFf?D3mQ6Z$PMSpy{C>
zue5RVbPvhA9$Dn(sjHaDAo=^<4gEu&0%gyB^wssWc83oB$GnnC>tjE1#%Uy5sdfNC
z6w$S`)A3XeJNR;ljvg6bcBgg#xvYX$6LCy=6ip{(%A??ZZ(%;QL1PBWD{&9WoBAKP
zhh!v2jWz()YSX;?se~Md%-&AUAV!4YN4MfIK^@4Its!eHx2}O##&G
z6G)x9t_>hC&`;9L7%rz#Q}D_H6ZYW1y84IJ3xsQJ)a?#LEQQNyq$4j^Fgr=T(?(sP6}>^g;{%%of{K8ucrXRO
sVz8$m*>A5K)NDzEiKRI~*y`)~FN@&$%M1luYybcN07*qoM6N<$g4-l}MF0Q*
literal 0
HcmV?d00001
diff --git a/images/get_started48.png b/images/get_started48.png
new file mode 100644
index 0000000000000000000000000000000000000000..94ddde9b35a3d70e95966d838a3948959465272f
GIT binary patch
literal 1231
zcmV;=1Tg!FP)Fbri=xz4z|6r5$Vp+A-XOEoCrSmo3{+#1ONL
zgz3vBf(a!WBMM+fc&$T2Nv&-!fy2Y=IS@}e~dXVyOn0ldATkqhptvjJwz-Eu%P
z0CU40c(N+)@jHrYd2D4R7u;9>zbB-N)@|9VI9T?={c|9d%`BVv;E84;?w@Dtug?)#jOj=E3z
z9C(oKQ#u0C=ssluqSbxM0z|9(l+1xxbf0n&h*kHRM?fwuL$;UAc2;O3L&`{4_nH96
zrDaIl8pzyG34rT%m>U!K7JK$Qk=4M_r$6B<$2as`>AR!*pAN<4H(>zLnuGDx!gCxbQ`=kLFw`|3*zlBkcNXL;W2LDtZ
zIL7Hxah_25;iMAd;a&9d`cBM7|#w}aPDz?$yvt#&
zUQ-FLYt;rIT>C6PIux8PRkK~W^Lsz?qGeG>A!-28nnPBxjblSWO^+2$m&&k9C1`yv
zxd3u$8B>8U{SF1K?buKVU3Nv1C1fk+vTI@bz)n{fqbWP8PioWvVcR1yZ&vZz@Yr;Y
z37KottDw1imrkpCAQ6iRz@*nLOl=&4pQr&c&Yq^wDlP~>!GC^|+Lchpu4B&=V_Kbf
zZKF+Ma^kP#M!?^HYWn4CwC@8vzD7d2^+R$2B3>_^GXvC=$eK>xo-bipEFj$IPJR+A
z-JfI66S3!O7lo#3J%O8pL_8Oh4-h=}E1ok0yi%*zBp2!`WC|=Ig5zE7_5ok(n`Frf
zEl(MfE}h0|1AgbHQLlbn01>a3+s#dsKNLwCM4?6GaJ_-4(c=hLKGeP@R-6uet#7fp
zFha*}6V@d{LbCaIw~3JJB+|u~7p^N2=s$(0xsesZZ8~?GXxJ26UfA;`+IE^~tTqt1
z`ZdN&2N%9Cq&OXT_U%M|=6SZ)Z>PS(%y&bf>C$kHldE-!Kxw{6O^J*>PsH>0MU=B`
z=wj@L&I^#;{!yG~;7jPUm$Id38Fdwl0GJ9!xI7ldtcL>2^zk61L{I{5BA#)~q8AF9
z5NV3qjV^O7Fftq9#^gAko$sDkR7;InJe-+3&+8|^H-YFEF=iN$g$yi9r<=KsTT`fE
tm2uxq9PW_>;y%JJuHWwfrTgD){sr(yu)2
+
+
+
+
+
+ Document
+
+
+
+
+
+ 开启:
+
+
+
+
+
+
\ No newline at end of file