(function(c,m){function j(a){var d=a.length,k=e.type(a);return e.isWindow(a)?!1:1===a.nodeType&&d?!0:"array"===k||"function"!==k&&(0===d||"number"===typeof d&&0<d&&d-1 in a)}function h(a,d,k,r){if(e.acceptData(a)){var A=e.expando,b=a.nodeType,c=b?e.cache:a,f=b?a[A]:a[A]&&A;if(f&&c[f]&&(r||c[f].data)||!(k===m&&"string"===typeof d)){f||(f=b?a[A]=na.pop()||e.guid++:A);c[f]||(c[f]=b?{}:{toJSON:e.noop});if("object"===typeof d||"function"===typeof d)r?c[f]=e.extend(c[f],d):c[f].data=e.extend(c[f].data,
d);a=c[f];r||(a.data||(a.data={}),a=a.data);k!==m&&(a[e.camelCase(d)]=k);"string"===typeof d?(k=a[d],null==k&&(k=a[e.camelCase(d)])):k=a;return k}}}function l(a,d,k){if(e.acceptData(a)){var r,A,b=a.nodeType,c=b?e.cache:a,f=b?a[e.expando]:e.expando;if(c[f]){if(d&&(r=k?c[f]:c[f].data)){e.isArray(d)?d=d.concat(e.map(d,e.camelCase)):d in r?d=[d]:(d=e.camelCase(d),d=d in r?[d]:d.split(" "));for(A=d.length;A--;)delete r[d[A]];if(k?!s(r):!e.isEmptyObject(r))return}if(!k&&(delete c[f].data,!s(c[f])))return;
b?e.cleanData([a],!0):e.support.deleteExpando||c!=c.window?delete c[f]:c[f]=null}}}function p(a,d,k){if(k===m&&1===a.nodeType)if(k="data-"+d.replace(Cc,"-$1").toLowerCase(),k=a.getAttribute(k),"string"===typeof k){try{k="true"===k?!0:"false"===k?!1:"null"===k?null:+k+""===k?+k:Dc.test(k)?e.parseJSON(k):k}catch(r){}e.data(a,d,k)}else k=m;return k}function s(a){for(var d in a)if(!("data"===d&&e.isEmptyObject(a[d]))&&"toJSON"!==d)return!1;return!0}function b(){return!0}function f(){return!1}function g(){try{return t.activeElement}catch(a){}}
function q(a,d){do a=a[d];while(a&&1!==a.nodeType);return a}function n(a,d,k){if(e.isFunction(d))return e.grep(a,function(a,e){return!!d.call(a,e,a)!==k});if(d.nodeType)return e.grep(a,function(a){return a===d!==k});if("string"===typeof d){if(Ec.test(d))return e.filter(d,a,k);d=e.filter(d,a)}return e.grep(a,function(a){return 0<=e.inArray(a,d)!==k})}function K(a){var d=Ab.split("|");a=a.createDocumentFragment();if(a.createElement)for(;d.length;)a.createElement(d.pop());return a}function F(a,d){return e.nodeName(a,
"table")&&e.nodeName(1===d.nodeType?d:d.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function oa(a){a.type=(null!==e.find.attr(a,"type"))+"/"+a.type;return a}function va(a){var d=Fc.exec(a.type);d?a.type=d[1]:a.removeAttribute("type");return a}function Wa(a,d){for(var k,r=0;null!=(k=a[r]);r++)e._data(k,"globalEval",!d||e._data(d[r],"globalEval"))}function Bb(a,d){if(1===d.nodeType&&e.hasData(a)){var k,r,A;r=e._data(a);var b=e._data(d,
r),c=r.events;if(c)for(k in delete b.handle,b.events={},c){r=0;for(A=c[k].length;r<A;r++)e.event.add(d,k,c[k][r])}b.data&&(b.data=e.extend({},b.data))}}function D(a,d){var k,r,b=0,c=typeof a.getElementsByTagName!==S?a.getElementsByTagName(d||"*"):typeof a.querySelectorAll!==S?a.querySelectorAll(d||"*"):m;if(!c){c=[];for(k=a.childNodes||a;null!=(r=k[b]);b++)!d||e.nodeName(r,d)?c.push(r):e.merge(c,D(r,d))}return d===m||d&&e.nodeName(a,d)?e.merge([a],c):c}function Gc(a){Xa.test(a.type)&&(a.defaultChecked=
a.checked)}function Cb(a,d){if(d in a)return d;for(var k=d.charAt(0).toUpperCase()+d.slice(1),e=d,b=Db.length;b--;)if(d=Db[b]+k,d in a)return d;return e}function wa(a,d){a=d||a;return"none"===e.css(a,"display")||!e.contains(a.ownerDocument,a)}function Eb(a,d){for(var k,r,b,c=[],f=0,g=a.length;f<g;f++)if(r=a[f],r.style)if(c[f]=e._data(r,"olddisplay"),k=r.style.display,d)!c[f]&&"none"===k&&(r.style.display=""),""===r.style.display&&wa(r)&&(c[f]=e._data(r,"olddisplay",Fb(r.nodeName)));else if(!c[f]&&
(b=wa(r),k&&"none"!==k||!b))e._data(r,"olddisplay",b?k:e.css(r,"display"));for(f=0;f<g;f++)if(r=a[f],r.style&&(!d||"none"===r.style.display||""===r.style.display))r.style.display=d?c[f]||"":"none";return a}function Gb(a,d,k){return(a=Hc.exec(d))?Math.max(0,a[1]-(k||0))+(a[2]||"px"):d}function Hb(a,d,k,r,b){d=k===(r?"border":"content")?4:"width"===d?1:0;for(var c=0;4>d;d+=2)"margin"===k&&(c+=e.css(a,k+ca[d],!0,b)),r?("content"===k&&(c-=e.css(a,"padding"+ca[d],!0,b)),"margin"!==k&&(c-=e.css(a,"border"+
ca[d]+"Width",!0,b))):(c+=e.css(a,"padding"+ca[d],!0,b),"padding"!==k&&(c+=e.css(a,"border"+ca[d]+"Width",!0,b)));return c}function Ib(a,d,k){var r=!0,b="width"===d?a.offsetWidth:a.offsetHeight,c=da(a),f=e.support.boxSizing&&"border-box"===e.css(a,"boxSizing",!1,c);if(0>=b||null==b){b=ea(a,d,c);if(0>b||null==b)b=a.style[d];if(Ca.test(b))return b;r=f&&(e.support.boxSizingReliable||b===a.style[d]);b=parseFloat(b)||0}return b+Hb(a,d,k||(f?"border":"content"),r,c)+"px"}function Fb(a){var d=t,k=Jb[a];
if(!k){k=Kb(a,d);if("none"===k||!k)xa=(xa||e("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(d.documentElement),d=(xa[0].contentWindow||xa[0].contentDocument).document,d.write("<!doctype html><html><body>"),d.close(),k=Kb(a,d),xa.detach();Jb[a]=k}return k}function Kb(a,d){var k=e(d.createElement(a)).appendTo(d.body),r=e.css(k[0],"display");k.remove();return r}function Ya(a,d,k,r){var b;if(e.isArray(d))e.each(d,function(d,e){k||Ic.test(a)?r(a,e):
Ya(a+"["+("object"===typeof e?d:"")+"]",e,k,r)});else if(!k&&"object"===e.type(d))for(b in d)Ya(a+"["+b+"]",d[b],k,r);else r(a,d)}function Lb(a){return function(d,k){"string"!==typeof d&&(k=d,d="*");var r,b=0,c=d.toLowerCase().match(T)||[];if(e.isFunction(k))for(;r=c[b++];)"+"===r[0]?(r=r.slice(1)||"*",(a[r]=a[r]||[]).unshift(k)):(a[r]=a[r]||[]).push(k)}}function Mb(a,d,k,r){function b(g){var j;c[g]=!0;e.each(a[g]||[],function(a,e){var g=e(d,k,r);if("string"===typeof g&&!f&&!c[g])return d.dataTypes.unshift(g),
b(g),!1;if(f)return!(j=g)});return j}var c={},f=a===Za;return b(d.dataTypes[0])||!c["*"]&&b("*")}function $a(a,d){var k,r,b=e.ajaxSettings.flatOptions||{};for(r in d)d[r]!==m&&((b[r]?a:k||(k={}))[r]=d[r]);k&&e.extend(!0,a,k);return a}function Nb(){try{return new c.XMLHttpRequest}catch(a){}}function Ob(){setTimeout(function(){pa=m});return pa=e.now()}function Pb(a,d,k){for(var e,b=(ya[d]||[]).concat(ya["*"]),c=0,f=b.length;c<f;c++)if(e=b[c].call(k,d,a))return e}function Qb(a,d,k){var r,b,c=0,f=Da.length,
g=e.Deferred().always(function(){delete j.elem}),j=function(){if(b)return!1;for(var d=pa||Ob(),d=Math.max(0,h.startTime+h.duration-d),k=1-(d/h.duration||0),e=0,r=h.tweens.length;e<r;e++)h.tweens[e].run(k);g.notifyWith(a,[h,k,d]);if(1>k&&r)return d;g.resolveWith(a,[h]);return!1},h=g.promise({elem:a,props:e.extend({},d),opts:e.extend(!0,{specialEasing:{}},k),originalProperties:d,originalOptions:k,startTime:pa||Ob(),duration:k.duration,tweens:[],createTween:function(d,k){var r=e.Tween(a,h.opts,d,k,h.opts.specialEasing[d]||
h.opts.easing);h.tweens.push(r);return r},stop:function(d){var k=0,e=d?h.tweens.length:0;if(b)return this;for(b=!0;k<e;k++)h.tweens[k].run(1);d?g.resolveWith(a,[h,d]):g.rejectWith(a,[h,d]);return this}});d=h.props;k=h.opts.specialEasing;var q,m,l,p;for(r in d)if(q=e.camelCase(r),m=k[q],l=d[r],e.isArray(l)&&(m=l[1],l=d[r]=l[0]),r!==q&&(d[q]=l,delete d[r]),(p=e.cssHooks[q])&&"expand"in p)for(r in l=p.expand(l),delete d[q],l)r in d||(d[r]=l[r],k[r]=m);else k[q]=m;for(;c<f;c++)if(r=Da[c].call(h,a,d,h.opts))return r;
e.map(d,Pb,h);e.isFunction(h.opts.start)&&h.opts.start.call(a,h);e.fx.timer(e.extend(j,{elem:a,anim:h,queue:h.opts.queue}));return h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always)}function G(a,d,k,e,b){return new G.prototype.init(a,d,k,e,b)}function Ea(a,d){var k,e={height:a},b=0;for(d=d?1:0;4>b;b+=2-d)k=ca[b],e["margin"+k]=e["padding"+k]=a;d&&(e.opacity=e.width=a);return e}function Rb(a){return e.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:
!1}var Fa,Sb,S=typeof m,Kc=c.location,t=c.document,Tb=t.documentElement,Lc=c.jQuery,Mc=c.$,Ga={},na=[],Ub=na.concat,ab=na.push,fa=na.slice,Vb=na.indexOf,Nc=Ga.toString,qa=Ga.hasOwnProperty,bb="1.10.2".trim,e=function(a,d){return new e.fn.init(a,d,Sb)},Ha=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,Oc=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Pc=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Wb=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Qc=/^[\],:{}\s]*$/,Rc=/(?:^|:|,)(?:\s*\[)+/g,Sc=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,
Tc=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,Uc=/^-ms-/,Vc=/-([\da-z])/gi,Wc=function(a,d){return d.toUpperCase()},W=function(a){if(t.addEventListener||"load"===a.type||"complete"===t.readyState)Xb(),e.ready()},Xb=function(){t.addEventListener?(t.removeEventListener("DOMContentLoaded",W,!1),c.removeEventListener("load",W,!1)):(t.detachEvent("onreadystatechange",W),c.detachEvent("onload",W))};e.fn=e.prototype={jquery:"1.10.2",constructor:e,init:function(a,d,k){var r;if(!a)return this;
if("string"===typeof a){if((r="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:Pc.exec(a))&&(r[1]||!d)){if(r[1]){if(d=d instanceof e?d[0]:d,e.merge(this,e.parseHTML(r[1],d&&d.nodeType?d.ownerDocument||d:t,!0)),Wb.test(r[1])&&e.isPlainObject(d))for(r in d)if(e.isFunction(this[r]))this[r](d[r]);else this.attr(r,d[r])}else{if((d=t.getElementById(r[2]))&&d.parentNode){if(d.id!==r[2])return k.find(a);this.length=1;this[0]=d}this.context=t;this.selector=a}return this}return!d||d.jquery?
(d||k).find(a):this.constructor(d).find(a)}if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(e.isFunction(a))return k.ready(a);a.selector!==m&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",length:0,toArray:function(){return fa.call(this)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(a){a=e.merge(this.constructor(),a);a.prevObject=this;a.context=this.context;return a},each:function(a,d){return e.each(this,
a,d)},ready:function(a){e.ready.promise().done(a);return this},slice:function(){return this.pushStack(fa.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var d=this.length;a=+a+(0>a?d:0);return this.pushStack(0<=a&&a<d?[this[a]]:[])},map:function(a){return this.pushStack(e.map(this,function(d,k){return a.call(d,k,d)}))},end:function(){return this.prevObject||this.constructor(null)},push:ab,sort:[].sort,splice:[].splice};e.fn.init.prototype=
e.fn;e.extend=e.fn.extend=function(){var a,d,k,r,b,c=arguments[0]||{},f=1,g=arguments.length,j=!1;"boolean"===typeof c&&(j=c,c=arguments[1]||{},f=2);"object"!==typeof c&&!e.isFunction(c)&&(c={});g===f&&(c=this,--f);for(;f<g;f++)if(null!=(b=arguments[f]))for(r in b)a=c[r],k=b[r],c!==k&&(j&&k&&(e.isPlainObject(k)||(d=e.isArray(k)))?(d?(d=!1,a=a&&e.isArray(a)?a:[]):a=a&&e.isPlainObject(a)?a:{},c[r]=e.extend(j,a,k)):k!==m&&(c[r]=k));return c};e.extend({expando:"jQuery"+("1.10.2"+Math.random()).replace(/\D/g,
""),noConflict:function(a){c.$===e&&(c.$=Mc);a&&c.jQuery===e&&(c.jQuery=Lc);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(!(!0===a?--e.readyWait:e.isReady)){if(!t.body)return setTimeout(e.ready);e.isReady=!0;!0!==a&&0<--e.readyWait||(Fa.resolveWith(t,[e]),e.fn.trigger&&e(t).trigger("ready").off("ready"))}},isFunction:function(a){return"function"===e.type(a)},isArray:Array.isArray||function(a){return"array"===e.type(a)},isWindow:function(a){return null!=
a&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return null==a?String(a):"object"===typeof a||"function"===typeof a?Ga[Nc.call(a)]||"object":typeof a},isPlainObject:function(a){var d;if(!a||"object"!==e.type(a)||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!qa.call(a,"constructor")&&!qa.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(k){return!1}if(e.support.ownLast)for(d in a)return qa.call(a,d);for(d in a);return d===m||qa.call(a,
d)},isEmptyObject:function(a){for(var d in a)return!1;return!0},error:function(a){throw Error(a);},parseHTML:function(a,d,k){if(!a||"string"!==typeof a)return null;"boolean"===typeof d&&(k=d,d=!1);d=d||t;var r=Wb.exec(a);k=!k&&[];if(r)return[d.createElement(r[1])];r=e.buildFragment([a],d,k);k&&e(k).remove();return e.merge([],r.childNodes)},parseJSON:function(a){if(c.JSON&&c.JSON.parse)return c.JSON.parse(a);if(null===a)return a;if("string"===typeof a&&(a=e.trim(a))&&Qc.test(a.replace(Sc,"@").replace(Tc,
"]").replace(Rc,"")))return(new Function("return "+a))();e.error("Invalid JSON: "+a)},parseXML:function(a){var d,k;if(!a||"string"!==typeof a)return null;try{c.DOMParser?(k=new DOMParser,d=k.parseFromString(a,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(a))}catch(r){d=m}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+a);return d},noop:function(){},globalEval:function(a){a&&e.trim(a)&&(c.execScript||function(a){c.eval.call(c,
a)})(a)},camelCase:function(a){return a.replace(Uc,"ms-").replace(Vc,Wc)},nodeName:function(a,d){return a.nodeName&&a.nodeName.toLowerCase()===d.toLowerCase()},each:function(a,d,k){var e,b=0,c=a.length;e=j(a);if(k)if(e)for(;b<c&&!(e=d.apply(a[b],k),!1===e);b++);else for(b in a){if(e=d.apply(a[b],k),!1===e)break}else if(e)for(;b<c&&!(e=d.call(a[b],b,a[b]),!1===e);b++);else for(b in a)if(e=d.call(a[b],b,a[b]),!1===e)break;return a},trim:bb&&!bb.call("\ufeff\u00a0")?function(a){return null==a?"":bb.call(a)}:
function(a){return null==a?"":(a+"").replace(Oc,"")},makeArray:function(a,d){var k=d||[];null!=a&&(j(Object(a))?e.merge(k,"string"===typeof a?[a]:a):ab.call(k,a));return k},inArray:function(a,d,k){var e;if(d){if(Vb)return Vb.call(d,a,k);e=d.length;for(k=k?0>k?Math.max(0,e+k):k:0;k<e;k++)if(k in d&&d[k]===a)return k}return-1},merge:function(a,d){var k=d.length,e=a.length,b=0;if("number"===typeof k)for(;b<k;b++)a[e++]=d[b];else for(;d[b]!==m;)a[e++]=d[b++];a.length=e;return a},grep:function(a,d,k){var e,
b=[],c=0,f=a.length;for(k=!!k;c<f;c++)e=!!d(a[c],c),k!==e&&b.push(a[c]);return b},map:function(a,d,k){var e,b=0,c=a.length,f=[];if(j(a))for(;b<c;b++)e=d(a[b],b,k),null!=e&&(f[f.length]=e);else for(b in a)e=d(a[b],b,k),null!=e&&(f[f.length]=e);return Ub.apply([],f)},guid:1,proxy:function(a,d){var k,r;"string"===typeof d&&(r=a[d],d=a,a=r);if(!e.isFunction(a))return m;k=fa.call(arguments,2);r=function(){return a.apply(d||this,k.concat(fa.call(arguments)))};r.guid=a.guid=a.guid||e.guid++;return r},access:function(a,
d,k,r,b,c,f){var g=0,j=a.length,h=null==k;if("object"===e.type(k))for(g in b=!0,k)e.access(a,d,g,k[g],!0,c,f);else if(r!==m&&(b=!0,e.isFunction(r)||(f=!0),h&&(f?(d.call(a,r),d=null):(h=d,d=function(a,d,k){return h.call(e(a),k)})),d))for(;g<j;g++)d(a[g],k,f?r:r.call(a[g],g,d(a[g],k)));return b?a:h?d.call(a):j?d(a[0],k):c},now:function(){return(new Date).getTime()},swap:function(a,d,k,e){var b,c={};for(b in d)c[b]=a.style[b],a.style[b]=d[b];k=k.apply(a,e||[]);for(b in d)a.style[b]=c[b];return k}});
e.ready.promise=function(a){if(!Fa)if(Fa=e.Deferred(),"complete"===t.readyState)setTimeout(e.ready);else if(t.addEventListener)t.addEventListener("DOMContentLoaded",W,!1),c.addEventListener("load",W,!1);else{t.attachEvent("onreadystatechange",W);c.attachEvent("onload",W);var d=!1;try{d=null==c.frameElement&&t.documentElement}catch(k){}d&&d.doScroll&&function A(){if(!e.isReady){try{d.doScroll("left")}catch(a){return setTimeout(A,50)}Xb();e.ready()}}()}return Fa.promise(a)};e.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),
function(a,d){Ga["[object "+d+"]"]=d.toLowerCase()});Sb=e(t);var cb=c,w=function(a,d,k,e){var b,c,f,g,j;(d?d.ownerDocument||d:U)!==I&&ga(d);d=d||I;k=k||[];if(!a||"string"!==typeof a)return k;if(1!==(g=d.nodeType)&&9!==g)return[];if(P&&!e){if(b=Xc.exec(a))if(f=b[1])if(9===g)if((c=d.getElementById(f))&&c.parentNode){if(c.id===f)return k.push(c),k}else return k;else{if(d.ownerDocument&&(c=d.ownerDocument.getElementById(f))&&za(d,c)&&c.id===f)return k.push(c),k}else{if(b[2])return X.apply(k,d.getElementsByTagName(a)),
k;if((f=b[3])&&y.getElementsByClassName&&d.getElementsByClassName)return X.apply(k,d.getElementsByClassName(f)),k}if(y.qsa&&(!L||!L.test(a))){c=b=B;f=d;j=9===g&&a;if(1===g&&"object"!==d.nodeName.toLowerCase()){g=Ia(a);(b=d.getAttribute("id"))?c=b.replace(Yc,"\\$&"):d.setAttribute("id",c);c="[id='"+c+"'] ";for(f=g.length;f--;)g[f]=c+Ja(g[f]);f=db.test(a)&&d.parentNode||d;j=g.join(",")}if(j)try{return X.apply(k,f.querySelectorAll(j)),k}catch(h){}finally{b||d.removeAttribute("id")}}}var q;a:{a=a.replace(Ka,
"$1");c=Ia(a);if(!e&&1===c.length){b=c[0]=c[0].slice(0);if(2<b.length&&"ID"===(q=b[0]).type&&y.getById&&9===d.nodeType&&P&&x.relative[b[1].type]){d=(x.find.ID(q.matches[0].replace(Y,Z),d)||[])[0];if(!d){q=k;break a}a=a.slice(b.shift().value.length)}for(g=La.needsContext.test(a)?0:b.length;g--;){q=b[g];if(x.relative[f=q.type])break;if(f=x.find[f])if(e=f(q.matches[0].replace(Y,Z),db.test(b[0].type)&&d.parentNode||d)){b.splice(g,1);a=e.length&&Ja(b);if(!a){X.apply(k,e);q=k;break a}break}}}eb(a,c)(e,
d,!P,k,db.test(a));q=k}return q},fb=function(){function a(k,e){d.push(k+=" ")>x.cacheLength&&delete a[d.shift()];return a[k]=e}var d=[];return a},N=function(a){a[B]=!0;return a},O=function(a){var d=I.createElement("div");try{return!!a(d)}catch(k){return!1}finally{d.parentNode&&d.parentNode.removeChild(d)}},gb=function(a,d){for(var k=a.split("|"),e=a.length;e--;)x.attrHandle[k[e]]=d},Zb=function(a,d){var k=d&&a,e=k&&1===a.nodeType&&1===d.nodeType&&(~d.sourceIndex||Yb)-(~a.sourceIndex||Yb);if(e)return e;
if(k)for(;k=k.nextSibling;)if(k===d)return-1;return a?1:-1},Zc=function(a){return function(d){return"input"===d.nodeName.toLowerCase()&&d.type===a}},$c=function(a){return function(d){var k=d.nodeName.toLowerCase();return("input"===k||"button"===k)&&d.type===a}},ha=function(a){return N(function(d){d=+d;return N(function(k,e){for(var b,c=a([],k.length,d),f=c.length;f--;)if(k[b=c[f]])k[b]=!(e[b]=k[b])})})},$b=function(){},Ia=function(a,d){var k,e,b,c,f,g,j;if(f=ac[a+" "])return d?0:f.slice(0);f=a;g=
[];for(j=x.preFilter;f;){if(!k||(e=ad.exec(f)))e&&(f=f.slice(e[0].length)||f),g.push(b=[]);k=!1;if(e=bd.exec(f))k=e.shift(),b.push({value:k,type:e[0].replace(Ka," ")}),f=f.slice(k.length);for(c in x.filter)if((e=La[c].exec(f))&&(!j[c]||(e=j[c](e))))k=e.shift(),b.push({value:k,type:c,matches:e}),f=f.slice(k.length);if(!k)break}return d?f.length:f?w.error(a):ac(a,g).slice(0)},Ja=function(a){for(var d=0,k=a.length,e="";d<k;d++)e+=a[d].value;return e},hb=function(a,d,k){var e=d.dir,b=k&&"parentNode"===
e,c=cd++;return d.first?function(d,k,c){for(;d=d[e];)if(1===d.nodeType||b)return a(d,k,c)}:function(d,k,f){var g,j,h,q=Q+" "+c;if(f)for(;d=d[e];){if((1===d.nodeType||b)&&a(d,k,f))return!0}else for(;d=d[e];)if(1===d.nodeType||b)if(h=d[B]||(d[B]={}),(j=h[e])&&j[0]===q){if(!0===(g=j[1])||g===Ma)return!0===g}else if(j=h[e]=[q],j[1]=a(d,k,f)||Ma,!0===j[1])return!0}},ib=function(a){return 1<a.length?function(d,k,e){for(var b=a.length;b--;)if(!a[b](d,k,e))return!1;return!0}:a[0]},Na=function(a,d,k,e,b){for(var c,
f=[],g=0,j=a.length,h=null!=d;g<j;g++)if(c=a[g])if(!k||k(c,e,b))f.push(c),h&&d.push(g);return f},jb=function(a,d,k,e,b,c){e&&!e[B]&&(e=jb(e));b&&!b[B]&&(b=jb(b,c));return N(function(c,f,E,g){var j,h,q=[],l=[],m=f.length,p;if(!(p=c)){p=d||"*";for(var n=E.nodeType?[E]:E,s=[],t=0,u=n.length;t<u;t++)w(p,n[t],s);p=s}p=a&&(c||!d)?Na(p,q,a,E,g):p;n=k?b||(c?a:m||e)?[]:f:p;k&&k(p,n,E,g);if(e){j=Na(n,l);e(j,[],E,g);for(E=j.length;E--;)if(h=j[E])n[l[E]]=!(p[l[E]]=h)}if(c){if(b||a){if(b){j=[];for(E=n.length;E--;)if(h=
n[E])j.push(p[E]=h);b(null,n=[],j,g)}for(E=n.length;E--;)if((h=n[E])&&-1<(j=b?ia.call(c,h):q[E]))c[j]=!(f[j]=h)}}else n=Na(n===f?n.splice(m,n.length):n),b?b(null,f,n,g):X.apply(f,n)})},kb=function(a){var d,k,e,b=a.length,c=x.relative[a[0].type];k=c||x.relative[" "];for(var f=c?1:0,g=hb(function(a){return a===d},k,!0),j=hb(function(a){return-1<ia.call(d,a)},k,!0),h=[function(a,k,e){return!c&&(e||k!==Oa)||((d=k).nodeType?g(a,k,e):j(a,k,e))}];f<b;f++)if(k=x.relative[a[f].type])h=[hb(ib(h),k)];else{k=
x.filter[a[f].type].apply(null,a[f].matches);if(k[B]){for(e=++f;e<b&&!x.relative[a[e].type];e++);return jb(1<f&&ib(h),1<f&&Ja(a.slice(0,f-1).concat({value:" "===a[f-2].type?"*":""})).replace(Ka,"$1"),k,f<e&&kb(a.slice(f,e)),e<b&&kb(a=a.slice(e)),e<b&&Ja(a))}h.push(k)}return ib(h)},ra,y,Ma,x,Pa,bc,eb,Oa,ja,ga,I,R,P,L,ka,Qa,za,B="sizzle"+-new Date,U=cb.document,Q=0,cd=0,cc=fb(),ac=fb(),dc=fb(),sa=!1,lb=function(a,d){a===d&&(sa=!0);return 0},Yb=-2147483648,dd={}.hasOwnProperty,$=[],ed=$.pop,fd=$.push,
X=$.push,ec=$.slice,ia=$.indexOf||function(a){for(var d=0,k=this.length;d<k;d++)if(this[d]===a)return d;return-1},fc="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w#"),gc="\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)[\\x20\\t\\r\\n\\f]*(?:([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+fc+")|)|)[\\x20\\t\\r\\n\\f]*\\]",mb=":((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+gc.replace(3,8)+")*)|.*)\\)|)",Ka=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$",
"g"),ad=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,bd=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,db=/[\x20\t\r\n\f]*[+~]/,gd=RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*)[\\x20\\t\\r\\n\\f]*\\]","g"),hd=RegExp(mb),id=RegExp("^"+fc+"$"),La={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:RegExp("^("+"(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+gc),PSEUDO:RegExp("^"+mb),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)",
"i"),bool:RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},nb=/^[^{]+\{\s*\[native \w/,Xc=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,jd=/^(?:input|select|textarea|button)$/i,kd=/^h\d$/i,Yc=/'|\\/g,Y=RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)",
"ig"),Z=function(a,d,k){a="0x"+d-65536;return a!==a||k?d:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)};try{X.apply($=ec.call(U.childNodes),U.childNodes),$[U.childNodes.length].nodeType}catch(Nd){X={apply:$.length?function(a,d){fd.apply(a,ec.call(d))}:function(a,d){for(var k=a.length,e=0;a[k++]=d[e++];);a.length=k-1}}}bc=w.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};y=w.support={};ga=w.setDocument=function(a){var d=a?
a.ownerDocument||a:U;a=d.defaultView;if(d===I||9!==d.nodeType||!d.documentElement)return I;I=d;R=d.documentElement;P=!bc(d);a&&(a.attachEvent&&a!==a.top)&&a.attachEvent("onbeforeunload",function(){ga()});y.attributes=O(function(a){a.className="i";return!a.getAttribute("className")});y.getElementsByTagName=O(function(a){a.appendChild(d.createComment(""));return!a.getElementsByTagName("*").length});y.getElementsByClassName=O(function(a){a.innerHTML="<div class='a'></div><div class='a i'></div>";a.firstChild.className=
"i";return 2===a.getElementsByClassName("i").length});y.getById=O(function(a){R.appendChild(a).id=B;return!d.getElementsByName||!d.getElementsByName(B).length});y.getById?(x.find.ID=function(a,d){if("undefined"!==typeof d.getElementById&&P){var e=d.getElementById(a);return e&&e.parentNode?[e]:[]}},x.filter.ID=function(a){var d=a.replace(Y,Z);return function(a){return a.getAttribute("id")===d}}):(delete x.find.ID,x.filter.ID=function(a){var d=a.replace(Y,Z);return function(a){return(a="undefined"!==
typeof a.getAttributeNode&&a.getAttributeNode("id"))&&a.value===d}});x.find.TAG=y.getElementsByTagName?function(a,d){if("undefined"!==typeof d.getElementsByTagName)return d.getElementsByTagName(a)}:function(a,d){var e,b=[],c=0,f=d.getElementsByTagName(a);if("*"===a){for(;e=f[c++];)1===e.nodeType&&b.push(e);return b}return f};x.find.CLASS=y.getElementsByClassName&&function(a,d){if("undefined"!==typeof d.getElementsByClassName&&P)return d.getElementsByClassName(a)};ka=[];L=[];if(y.qsa=nb.test(d.querySelectorAll))O(function(a){a.innerHTML=
"<select><option selected=''></option></select>";a.querySelectorAll("[selected]").length||L.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");a.querySelectorAll(":checked").length||L.push(":checked")}),O(function(a){var e=d.createElement("input");e.setAttribute("type","hidden");a.appendChild(e).setAttribute("t","");a.querySelectorAll("[t^='']").length&&L.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");
a.querySelectorAll(":enabled").length||L.push(":enabled",":disabled");a.querySelectorAll("*,:x");L.push(",.*:")});(y.matchesSelector=nb.test(Qa=R.webkitMatchesSelector||R.mozMatchesSelector||R.oMatchesSelector||R.msMatchesSelector))&&O(function(a){y.disconnectedMatch=Qa.call(a,"div");Qa.call(a,"[s!='']:x");ka.push("!=",mb)});L=L.length&&RegExp(L.join("|"));ka=ka.length&&RegExp(ka.join("|"));za=nb.test(R.contains)||R.compareDocumentPosition?function(a,d){var e=9===a.nodeType?a.documentElement:a,b=
d&&d.parentNode;return a===b||!(!b||!(1===b.nodeType&&(e.contains?e.contains(b):a.compareDocumentPosition&&a.compareDocumentPosition(b)&16)))}:function(a,d){if(d)for(;d=d.parentNode;)if(d===a)return!0;return!1};lb=R.compareDocumentPosition?function(a,e){if(a===e)return sa=!0,0;var b=e.compareDocumentPosition&&a.compareDocumentPosition&&a.compareDocumentPosition(e);return b?b&1||!y.sortDetached&&e.compareDocumentPosition(a)===b?a===d||za(U,a)?-1:e===d||za(U,e)?1:ja?ia.call(ja,a)-ia.call(ja,e):0:b&
4?-1:1:a.compareDocumentPosition?-1:1}:function(a,e){var b,c=0;b=a.parentNode;var f=e.parentNode,g=[a],j=[e];if(a===e)return sa=!0,0;if(!b||!f)return a===d?-1:e===d?1:b?-1:f?1:ja?ia.call(ja,a)-ia.call(ja,e):0;if(b===f)return Zb(a,e);for(b=a;b=b.parentNode;)g.unshift(b);for(b=e;b=b.parentNode;)j.unshift(b);for(;g[c]===j[c];)c++;return c?Zb(g[c],j[c]):g[c]===U?-1:j[c]===U?1:0};return d};w.matches=function(a,d){return w(a,null,null,d)};w.matchesSelector=function(a,d){(a.ownerDocument||a)!==I&&ga(a);
d=d.replace(gd,"='$1']");if(y.matchesSelector&&P&&(!ka||!ka.test(d))&&(!L||!L.test(d)))try{var k=Qa.call(a,d);if(k||y.disconnectedMatch||a.document&&11!==a.document.nodeType)return k}catch(e){}return 0<w(d,I,null,[a]).length};w.contains=function(a,d){(a.ownerDocument||a)!==I&&ga(a);return za(a,d)};w.attr=function(a,d){(a.ownerDocument||a)!==I&&ga(a);var k=x.attrHandle[d.toLowerCase()],k=k&&dd.call(x.attrHandle,d.toLowerCase())?k(a,d,!P):void 0;return void 0===k?y.attributes||!P?a.getAttribute(d):
(k=a.getAttributeNode(d))&&k.specified?k.value:null:k};w.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};w.uniqueSort=function(a){var d,k=[],e=0,b=0;sa=!y.detectDuplicates;ja=!y.sortStable&&a.slice(0);a.sort(lb);if(sa){for(;d=a[b++];)d===a[b]&&(e=k.push(b));for(;e--;)a.splice(k[e],1)}return a};Pa=w.getText=function(a){var d,e="",b=0;if(d=a.nodeType)if(1===d||9===d||11===d){if("string"===typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)e+=
Pa(a)}else{if(3===d||4===d)return a.nodeValue}else for(;d=a[b];b++)e+=Pa(d);return e};x=w.selectors={cacheLength:50,createPseudo:N,match:La,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(Y,Z);a[3]=(a[4]||a[5]||"").replace(Y,Z);"~="===a[2]&&(a[3]=" "+a[3]+" ");return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();"nth"===a[1].slice(0,3)?(a[3]||
w.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&w.error(a[0]);return a},PSEUDO:function(a){var d,e=!a[5]&&a[2];if(La.CHILD.test(a[0]))return null;if(a[3]&&void 0!==a[4])a[2]=a[4];else if(e&&hd.test(e)&&(d=Ia(e,!0))&&(d=e.indexOf(")",e.length-d)-e.length))a[0]=a[0].slice(0,d),a[2]=e.slice(0,d);return a.slice(0,3)}},filter:{TAG:function(a){var d=a.replace(Y,Z).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&
a.nodeName.toLowerCase()===d}},CLASS:function(a){var d=cc[a+" "];return d||(d=RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"))&&cc(a,function(a){return d.test("string"===typeof a.className&&a.className||"undefined"!==typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,d,e){return function(b){b=w.attr(b,a);if(null==b)return"!="===d;if(!d)return!0;b+="";return"="===d?b===e:"!="===d?b!==e:"^="===d?e&&0===b.indexOf(e):"*="===d?e&&-1<b.indexOf(e):"$="===d?e&&b.slice(-e.length)===
e:"~="===d?-1<(" "+b+" ").indexOf(e):"|="===d?b===e||b.slice(0,e.length+1)===e+"-":!1}},CHILD:function(a,d,e,b,c){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),j="of-type"===d;return 1===b&&0===c?function(a){return!!a.parentNode}:function(d,e,k){var h,q,l,m,p;e=f!==g?"nextSibling":"previousSibling";var n=d.parentNode,s=j&&d.nodeName.toLowerCase();k=!k&&!j;if(n){if(f){for(;e;){for(q=d;q=q[e];)if(j?q.nodeName.toLowerCase()===s:1===q.nodeType)return!1;p=e="only"===a&&!p&&"nextSibling"}return!0}p=
[g?n.firstChild:n.lastChild];if(g&&k){k=n[B]||(n[B]={});h=k[a]||[];m=h[0]===Q&&h[1];l=h[0]===Q&&h[2];for(q=m&&n.childNodes[m];q=++m&&q&&q[e]||(l=m=0)||p.pop();)if(1===q.nodeType&&++l&&q===d){k[a]=[Q,m,l];break}}else if(k&&(h=(d[B]||(d[B]={}))[a])&&h[0]===Q)l=h[1];else for(;q=++m&&q&&q[e]||(l=m=0)||p.pop();)if((j?q.nodeName.toLowerCase()===s:1===q.nodeType)&&++l)if(k&&((q[B]||(q[B]={}))[a]=[Q,l]),q===d)break;l-=c;return l===b||0===l%b&&0<=l/b}}},PSEUDO:function(a,d){var e,b=x.pseudos[a]||x.setFilters[a.toLowerCase()]||
w.error("unsupported pseudo: "+a);return b[B]?b(d):1<b.length?(e=[a,a,"",d],x.setFilters.hasOwnProperty(a.toLowerCase())?N(function(a,e){for(var k,c=b(a,d),f=c.length;f--;)k=ia.call(a,c[f]),a[k]=!(e[k]=c[f])}):function(a){return b(a,0,e)}):b}},pseudos:{not:N(function(a){var d=[],e=[],b=eb(a.replace(Ka,"$1"));return b[B]?N(function(a,d,e,k){k=b(a,null,k,[]);for(var c=a.length;c--;)if(e=k[c])a[c]=!(d[c]=e)}):function(a,c,f){d[0]=a;b(d,null,f,e);return!e.pop()}}),has:N(function(a){return function(d){return 0<
w(a,d).length}}),contains:N(function(a){return function(d){return-1<(d.textContent||d.innerText||Pa(d)).indexOf(a)}}),lang:N(function(a){id.test(a||"")||w.error("unsupported lang: "+a);a=a.replace(Y,Z).toLowerCase();return function(d){var e;do if(e=P?d.lang:d.getAttribute("xml:lang")||d.getAttribute("lang"))return e=e.toLowerCase(),e===a||0===e.indexOf(a+"-");while((d=d.parentNode)&&1===d.nodeType);return!1}}),target:function(a){var d=cb.location&&cb.location.hash;return d&&d.slice(1)===a.id},root:function(a){return a===
R},focus:function(a){return a===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!(!a.type&&!a.href&&!~a.tabIndex)},enabled:function(a){return!1===a.disabled},disabled:function(a){return!0===a.disabled},checked:function(a){var d=a.nodeName.toLowerCase();return"input"===d&&!!a.checked||"option"===d&&!!a.selected},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return!0===a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if("@"<a.nodeName||3===a.nodeType||4===a.nodeType)return!1;
return!0},parent:function(a){return!x.pseudos.empty(a)},header:function(a){return kd.test(a.nodeName)},input:function(a){return jd.test(a.nodeName)},button:function(a){var d=a.nodeName.toLowerCase();return"input"===d&&"button"===a.type||"button"===d},text:function(a){var d;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(d=a.getAttribute("type"))||d.toLowerCase()===a.type)},first:ha(function(){return[0]}),last:ha(function(a,d){return[d-1]}),eq:ha(function(a,d,e){return[0>e?e+d:e]}),
even:ha(function(a,d){for(var e=0;e<d;e+=2)a.push(e);return a}),odd:ha(function(a,d){for(var e=1;e<d;e+=2)a.push(e);return a}),lt:ha(function(a,d,e){for(d=0>e?e+d:e;0<=--d;)a.push(d);return a}),gt:ha(function(a,d,e){for(e=0>e?e+d:e;++e<d;)a.push(e);return a})}};x.pseudos.nth=x.pseudos.eq;for(ra in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[ra]=Zc(ra);for(ra in{submit:!0,reset:!0})x.pseudos[ra]=$c(ra);$b.prototype=x.filters=x.pseudos;x.setFilters=new $b;eb=w.compile=function(a,d){var e,
b=[],c=[],f=dc[a+" "];if(!f){d||(d=Ia(a));for(e=d.length;e--;)f=kb(d[e]),f[B]?b.push(f):c.push(f);var g=0,j=0<b.length,h=0<c.length;e=function(a,d,e,k,f){var E,q,l=[],m=0,p="0",n=a&&[],s=null!=f,t=Oa,u=a||h&&x.find.TAG("*",f&&d.parentNode||d),v=Q+=null==t?1:Math.random()||0.1;s&&(Oa=d!==I&&d,Ma=g);for(;null!=(f=u[p]);p++){if(h&&f){for(E=0;q=c[E++];)if(q(f,d,e)){k.push(f);break}s&&(Q=v,Ma=++g)}j&&((f=!q&&f)&&m--,a&&n.push(f))}m+=p;if(j&&p!==m){for(E=0;q=b[E++];)q(n,l,d,e);if(a){if(0<m)for(;p--;)!n[p]&&
!l[p]&&(l[p]=ed.call(k));l=Na(l)}X.apply(k,l);s&&(!a&&0<l.length&&1<m+b.length)&&w.uniqueSort(k)}s&&(Q=v,Oa=t);return n};e=j?N(e):e;f=dc(a,e)}return f};y.sortStable=B.split("").sort(lb).join("")===B;y.detectDuplicates=sa;ga();y.sortDetached=O(function(a){return a.compareDocumentPosition(I.createElement("div"))&1});O(function(a){a.innerHTML="<a href='#'></a>";return"#"===a.firstChild.getAttribute("href")})||gb("type|href|height|width",function(a,d,e){if(!e)return a.getAttribute(d,"type"===d.toLowerCase()?
1:2)});(!y.attributes||!O(function(a){a.innerHTML="<input/>";a.firstChild.setAttribute("value","");return""===a.firstChild.getAttribute("value")}))&&gb("value",function(a,d,e){if(!e&&"input"===a.nodeName.toLowerCase())return a.defaultValue});O(function(a){return null==a.getAttribute("disabled")})||gb("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(a,d,e){var b;if(!e)return(b=a.getAttributeNode(d))&&b.specified?b.value:
!0===a[d]?d.toLowerCase():null});e.find=w;e.expr=w.selectors;e.expr[":"]=e.expr.pseudos;e.unique=w.uniqueSort;e.text=w.getText;e.isXMLDoc=w.isXML;e.contains=w.contains;var hc={};e.Callbacks=function(a){var d;if("string"===typeof a){if(!(d=hc[a])){d=a;var k=hc[d]={};e.each(d.match(T)||[],function(a,d){k[d]=!0});d=k}}else d=e.extend({},a);a=d;var b,c,f,g,j,h,q=[],l=!a.once&&[],p=function(d){c=a.memory&&d;f=!0;j=h||0;h=0;g=q.length;for(b=!0;q&&j<g;j++)if(!1===q[j].apply(d[0],d[1])&&a.stopOnFalse){c=
!1;break}b=!1;q&&(l?l.length&&p(l.shift()):c?q=[]:n.disable())},n={add:function(){if(q){var d=q.length;(function Jc(d){e.each(d,function(d,k){var b=e.type(k);"function"===b?(!a.unique||!n.has(k))&&q.push(k):k&&(k.length&&"string"!==b)&&Jc(k)})})(arguments);b?g=q.length:c&&(h=d,p(c))}return this},remove:function(){q&&e.each(arguments,function(a,d){for(var k;-1<(k=e.inArray(d,q,k));)q.splice(k,1),b&&(k<=g&&g--,k<=j&&j--)});return this},has:function(a){return a?-1<e.inArray(a,q):!(!q||!q.length)},empty:function(){q=
[];g=0;return this},disable:function(){q=l=c=m;return this},disabled:function(){return!q},lock:function(){l=m;c||n.disable();return this},locked:function(){return!l},fireWith:function(a,d){if(q&&(!f||l))d=d||[],d=[a,d.slice?d.slice():d],b?l.push(d):p(d);return this},fire:function(){n.fireWith(this,arguments);return this},fired:function(){return!!f}};return n};e.extend({Deferred:function(a){var d=[["resolve","done",e.Callbacks("once memory"),"resolved"],["reject","fail",e.Callbacks("once memory"),
"rejected"],["notify","progress",e.Callbacks("memory")]],k="pending",b={state:function(){return k},always:function(){c.done(arguments).fail(arguments);return this},then:function(){var a=arguments;return e.Deferred(function(k){e.each(d,function(d,f){var g=f[0],j=e.isFunction(a[d])&&a[d];c[f[1]](function(){var a=j&&j.apply(this,arguments);if(a&&e.isFunction(a.promise))a.promise().done(k.resolve).fail(k.reject).progress(k.notify);else k[g+"With"](this===b?k.promise():this,j?[a]:arguments)})});a=null}).promise()},
promise:function(a){return null!=a?e.extend(a,b):b}},c={};b.pipe=b.then;e.each(d,function(a,e){var f=e[2],g=e[3];b[e[1]]=f.add;g&&f.add(function(){k=g},d[a^1][2].disable,d[2][2].lock);c[e[0]]=function(){c[e[0]+"With"](this===c?b:this,arguments);return this};c[e[0]+"With"]=f.fireWith});b.promise(c);a&&a.call(c,c);return c},when:function(a){var d=0,k=fa.call(arguments),b=k.length,c=1!==b||a&&e.isFunction(a.promise)?b:0,f=1===c?a:e.Deferred(),g=function(a,d,e){return function(k){d[a]=this;e[a]=1<arguments.length?
fa.call(arguments):k;e===j?f.notifyWith(d,e):--c||f.resolveWith(d,e)}},j,h,q;if(1<b){j=Array(b);h=Array(b);for(q=Array(b);d<b;d++)k[d]&&e.isFunction(k[d].promise)?k[d].promise().done(g(d,q,k)).fail(f.reject).progress(g(d,h,j)):--c}c||f.resolveWith(q,k);return f.promise()}});var ld=e;var u={},ob,aa,C,Ra,Sa,Ta,pb,ic,Aa,v=t.createElement("div");v.setAttribute("className","t");v.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";ob=v.getElementsByTagName("*")||[];if((aa=v.getElementsByTagName("a")[0])&&
aa.style&&ob.length){Ra=t.createElement("select");Ta=Ra.appendChild(t.createElement("option"));C=v.getElementsByTagName("input")[0];aa.style.cssText="top:1px;float:left;opacity:.5";u.getSetAttribute="t"!==v.className;u.leadingWhitespace=3===v.firstChild.nodeType;u.tbody=!v.getElementsByTagName("tbody").length;u.htmlSerialize=!!v.getElementsByTagName("link").length;u.style=/top/.test(aa.getAttribute("style"));u.hrefNormalized="/a"===aa.getAttribute("href");u.opacity=/^0.5/.test(aa.style.opacity);u.cssFloat=
!!aa.style.cssFloat;u.checkOn=!!C.value;u.optSelected=Ta.selected;u.enctype=!!t.createElement("form").enctype;u.html5Clone="<:nav></:nav>"!==t.createElement("nav").cloneNode(!0).outerHTML;u.inlineBlockNeedsLayout=!1;u.shrinkWrapBlocks=!1;u.pixelPosition=!1;u.deleteExpando=!0;u.noCloneEvent=!0;u.reliableMarginRight=!0;u.boxSizingReliable=!0;C.checked=!0;u.noCloneChecked=C.cloneNode(!0).checked;Ra.disabled=!0;u.optDisabled=!Ta.disabled;try{delete v.test}catch(Od){u.deleteExpando=!1}C=t.createElement("input");
C.setAttribute("value","");u.input=""===C.getAttribute("value");C.value="t";C.setAttribute("type","radio");u.radioValue="t"===C.value;C.setAttribute("checked","t");C.setAttribute("name","t");Sa=t.createDocumentFragment();Sa.appendChild(C);u.appendChecked=C.checked;u.checkClone=Sa.cloneNode(!0).cloneNode(!0).lastChild.checked;v.attachEvent&&(v.attachEvent("onclick",function(){u.noCloneEvent=!1}),v.cloneNode(!0).click());for(Aa in{submit:!0,change:!0,focusin:!0})v.setAttribute(pb="on"+Aa,"t"),u[Aa+
"Bubbles"]=pb in c||!1===v.attributes[pb].expando;v.style.backgroundClip="content-box";v.cloneNode(!0).style.backgroundClip="";u.clearCloneStyle="content-box"===v.style.backgroundClip;for(Aa in e(u))break;u.ownLast="0"!==Aa;e(function(){var a,d,k=t.getElementsByTagName("body")[0];k&&(a=t.createElement("div"),a.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",k.appendChild(a).appendChild(v),v.innerHTML="<table><tr><td></td><td>t</td></tr></table>",d=v.getElementsByTagName("td"),
d[0].style.cssText="padding:0;margin:0;border:0;display:none",ic=0===d[0].offsetHeight,d[0].style.display="",d[1].style.display="none",u.reliableHiddenOffsets=ic&&0===d[0].offsetHeight,v.innerHTML="",v.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",e.swap(k,null!=k.style.zoom?{zoom:1}:{},function(){u.boxSizing=4===v.offsetWidth}),c.getComputedStyle&&(u.pixelPosition=
"1%"!==(c.getComputedStyle(v,null)||{}).top,u.boxSizingReliable="4px"===(c.getComputedStyle(v,null)||{width:"4px"}).width,d=v.appendChild(t.createElement("div")),d.style.cssText=v.style.cssText="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",d.style.marginRight=d.style.width="0",v.style.width="1px",u.reliableMarginRight=!parseFloat((c.getComputedStyle(d,null)||{}).marginRight)),typeof v.style.zoom!==S&&(v.innerHTML="",
v.style.cssText="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;width:1px;padding:1px;display:inline;zoom:1",u.inlineBlockNeedsLayout=3===v.offsetWidth,v.style.display="block",v.innerHTML="<div></div>",v.firstChild.style.width="5px",u.shrinkWrapBlocks=3!==v.offsetWidth,u.inlineBlockNeedsLayout&&(k.style.zoom=1)),k.removeChild(a),a=v=d=d=null)});ob=Ra=Sa=Ta=aa=C=null}ld.support=u;var Dc=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,Cc=/([A-Z])/g;
e.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){a=a.nodeType?e.cache[a[e.expando]]:a[e.expando];return!!a&&!s(a)},data:function(a,d,e){return h(a,d,e)},removeData:function(a,d){return l(a,d)},_data:function(a,d,e){return h(a,d,e,!0)},_removeData:function(a,d){return l(a,d,!0)},acceptData:function(a){if(a.nodeType&&1!==a.nodeType&&9!==a.nodeType)return!1;var d=a.nodeName&&e.noData[a.nodeName.toLowerCase()];return!d||!0!==d&&a.getAttribute("classid")===
d}});e.fn.extend({data:function(a,d){var k,b,c=null,f=0,g=this[0];if(a===m){if(this.length&&(c=e.data(g),1===g.nodeType&&!e._data(g,"parsedAttrs"))){for(k=g.attributes;f<k.length;f++)b=k[f].name,0===b.indexOf("data-")&&(b=e.camelCase(b.slice(5)),p(g,b,c[b]));e._data(g,"parsedAttrs",!0)}return c}return"object"===typeof a?this.each(function(){e.data(this,a)}):1<arguments.length?this.each(function(){e.data(this,a,d)}):g?p(g,a,e.data(g,a)):null},removeData:function(a){return this.each(function(){e.removeData(this,
a)})}});e.extend({queue:function(a,d,k){var b;if(a)return d=(d||"fx")+"queue",b=e._data(a,d),k&&(!b||e.isArray(k)?b=e._data(a,d,e.makeArray(k)):b.push(k)),b||[]},dequeue:function(a,d){d=d||"fx";var k=e.queue(a,d),b=k.length,c=k.shift(),f=e._queueHooks(a,d),g=function(){e.dequeue(a,d)};"inprogress"===c&&(c=k.shift(),b--);c&&("fx"===d&&k.unshift("inprogress"),delete f.stop,c.call(a,g,f));!b&&f&&f.empty.fire()},_queueHooks:function(a,d){var k=d+"queueHooks";return e._data(a,k)||e._data(a,k,{empty:e.Callbacks("once memory").add(function(){e._removeData(a,
d+"queue");e._removeData(a,k)})})}});e.fn.extend({queue:function(a,d){var k=2;"string"!==typeof a&&(d=a,a="fx",k--);return arguments.length<k?e.queue(this[0],a):d===m?this:this.each(function(){var k=e.queue(this,a,d);e._queueHooks(this,a);"fx"===a&&"inprogress"!==k[0]&&e.dequeue(this,a)})},dequeue:function(a){return this.each(function(){e.dequeue(this,a)})},delay:function(a,d){a=e.fx?e.fx.speeds[a]||a:a;return this.queue(d||"fx",function(d,e){var b=setTimeout(d,a);e.stop=function(){clearTimeout(b)}})},
clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,d){var k,b=1,c=e.Deferred(),f=this,g=this.length,j=function(){--b||c.resolveWith(f,[f])};"string"!==typeof a&&(d=a,a=m);for(a=a||"fx";g--;)if((k=e._data(f[g],a+"queueHooks"))&&k.empty)b++,k.empty.add(j);j();return c.promise(d)}});var ta,jc,qb=/[\t\r\n\f]/g,md=/\r/g,nd=/^(?:input|select|textarea|button|object)$/i,od=/^(?:a|area)$/i,rb=/^(?:checked|selected)$/i,la=e.support.getSetAttribute,Ua=e.support.input;e.fn.extend({attr:function(a,
d){return e.access(this,e.attr,a,d,1<arguments.length)},removeAttr:function(a){return this.each(function(){e.removeAttr(this,a)})},prop:function(a,d){return e.access(this,e.prop,a,d,1<arguments.length)},removeProp:function(a){a=e.propFix[a]||a;return this.each(function(){try{this[a]=m,delete this[a]}catch(d){}})},addClass:function(a){var d,k,b,c,f,g=0,j=this.length;d="string"===typeof a&&a;if(e.isFunction(a))return this.each(function(d){e(this).addClass(a.call(this,d,this.className))});if(d)for(d=
(a||"").match(T)||[];g<j;g++)if(k=this[g],b=1===k.nodeType&&(k.className?(" "+k.className+" ").replace(qb," "):" ")){for(f=0;c=d[f++];)0>b.indexOf(" "+c+" ")&&(b+=c+" ");k.className=e.trim(b)}return this},removeClass:function(a){var d,k,b,c,f,g=0,j=this.length;d=0===arguments.length||"string"===typeof a&&a;if(e.isFunction(a))return this.each(function(d){e(this).removeClass(a.call(this,d,this.className))});if(d)for(d=(a||"").match(T)||[];g<j;g++)if(k=this[g],b=1===k.nodeType&&(k.className?(" "+k.className+
" ").replace(qb," "):"")){for(f=0;c=d[f++];)for(;0<=b.indexOf(" "+c+" ");)b=b.replace(" "+c+" "," ");k.className=a?e.trim(b):""}return this},toggleClass:function(a,d){var k=typeof a;return"boolean"===typeof d&&"string"===k?d?this.addClass(a):this.removeClass(a):e.isFunction(a)?this.each(function(k){e(this).toggleClass(a.call(this,k,this.className,d),d)}):this.each(function(){if("string"===k)for(var d,b=0,c=e(this),f=a.match(T)||[];d=f[b++];)c.hasClass(d)?c.removeClass(d):c.addClass(d);else if(k===
S||"boolean"===k)this.className&&e._data(this,"__className__",this.className),this.className=this.className||!1===a?"":e._data(this,"__className__")||""})},hasClass:function(a){a=" "+a+" ";for(var d=0,e=this.length;d<e;d++)if(1===this[d].nodeType&&0<=(" "+this[d].className+" ").replace(qb," ").indexOf(a))return!0;return!1},val:function(a){var d,k,b,c=this[0];if(arguments.length)return b=e.isFunction(a),this.each(function(d){if(1===this.nodeType&&(d=b?a.call(this,d,e(this).val()):a,null==d?d="":"number"===
typeof d?d+="":e.isArray(d)&&(d=e.map(d,function(a){return null==a?"":a+""})),k=e.valHooks[this.type]||e.valHooks[this.nodeName.toLowerCase()],!k||!("set"in k)||k.set(this,d,"value")===m))this.value=d});if(c){if((k=e.valHooks[c.type]||e.valHooks[c.nodeName.toLowerCase()])&&"get"in k&&(d=k.get(c,"value"))!==m)return d;d=c.value;return"string"===typeof d?d.replace(md,""):null==d?"":d}}});e.extend({valHooks:{option:{get:function(a){var d=e.find.attr(a,"value");return null!=d?d:a.text}},select:{get:function(a){for(var d,
k=a.options,b=a.selectedIndex,c=(a="select-one"===a.type||0>b)?null:[],f=a?b+1:k.length,g=0>b?f:a?b:0;g<f;g++)if(d=k[g],(d.selected||g===b)&&(e.support.optDisabled?!d.disabled:null===d.getAttribute("disabled"))&&(!d.parentNode.disabled||!e.nodeName(d.parentNode,"optgroup"))){d=e(d).val();if(a)return d;c.push(d)}return c},set:function(a,d){for(var k,b,c=a.options,f=e.makeArray(d),g=c.length;g--;)if(b=c[g],b.selected=0<=e.inArray(e(b).val(),f))k=!0;k||(a.selectedIndex=-1);return f}}},attr:function(a,
d,b){var c,f,g=a.nodeType;if(a&&!(3===g||8===g||2===g)){if(typeof a.getAttribute===S)return e.prop(a,d,b);if(1!==g||!e.isXMLDoc(a))d=d.toLowerCase(),c=e.attrHooks[d]||(e.expr.match.bool.test(d)?jc:ta);if(b!==m)if(null===b)e.removeAttr(a,d);else{if(c&&"set"in c&&(f=c.set(a,b,d))!==m)return f;a.setAttribute(d,b+"");return b}else{if(c&&"get"in c&&null!==(f=c.get(a,d)))return f;f=e.find.attr(a,d);return null==f?m:f}}},removeAttr:function(a,d){var b,c,f=0,g=d&&d.match(T);if(g&&1===a.nodeType)for(;b=g[f++];)c=
e.propFix[b]||b,e.expr.match.bool.test(b)?Ua&&la||!rb.test(b)?a[c]=!1:a[e.camelCase("default-"+b)]=a[c]=!1:e.attr(a,b,""),a.removeAttribute(la?b:c)},attrHooks:{type:{set:function(a,d){if(!e.support.radioValue&&"radio"===d&&e.nodeName(a,"input")){var b=a.value;a.setAttribute("type",d);b&&(a.value=b);return d}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(a,d,b){var c,f,g;g=a.nodeType;if(a&&!(3===g||8===g||2===g)){if(g=1!==g||!e.isXMLDoc(a))d=e.propFix[d]||d,f=e.propHooks[d];return b!==
m?f&&"set"in f&&(c=f.set(a,b,d))!==m?c:a[d]=b:f&&"get"in f&&null!==(c=f.get(a,d))?c:a[d]}},propHooks:{tabIndex:{get:function(a){var d=e.find.attr(a,"tabindex");return d?parseInt(d,10):nd.test(a.nodeName)||od.test(a.nodeName)&&a.href?0:-1}}}});jc={set:function(a,d,b){!1===d?e.removeAttr(a,b):Ua&&la||!rb.test(b)?a.setAttribute(!la&&e.propFix[b]||b,b):a[e.camelCase("default-"+b)]=a[b]=!0;return b}};e.each(e.expr.match.bool.source.match(/\w+/g),function(a,d){var b=e.expr.attrHandle[d]||e.find.attr;e.expr.attrHandle[d]=
Ua&&la||!rb.test(d)?function(a,d,c){var f=e.expr.attrHandle[d];a=c?m:(e.expr.attrHandle[d]=m)!=b(a,d,c)?d.toLowerCase():null;e.expr.attrHandle[d]=f;return a}:function(a,d,b){return b?m:a[e.camelCase("default-"+d)]?d.toLowerCase():null}});if(!Ua||!la)e.attrHooks.value={set:function(a,d,b){if(e.nodeName(a,"input"))a.defaultValue=d;else return ta&&ta.set(a,d,b)}};la||(ta={set:function(a,d,e){var b=a.getAttributeNode(e);b||a.setAttributeNode(b=a.ownerDocument.createAttribute(e));b.value=d+="";return"value"===
e||d===a.getAttribute(e)?d:m}},e.expr.attrHandle.id=e.expr.attrHandle.name=e.expr.attrHandle.coords=function(a,d,e){var b;return e?m:(b=a.getAttributeNode(d))&&""!==b.value?b.value:null},e.valHooks.button={get:function(a,d){var e=a.getAttributeNode(d);return e&&e.specified?e.value:m},set:ta.set},e.attrHooks.contenteditable={set:function(a,d,e){ta.set(a,""===d?!1:d,e)}},e.each(["width","height"],function(a,d){e.attrHooks[d]={set:function(a,e){if(""===e)return a.setAttribute(d,"auto"),e}}}));e.support.hrefNormalized||
e.each(["href","src"],function(a,d){e.propHooks[d]={get:function(a){return a.getAttribute(d,4)}}});e.support.style||(e.attrHooks.style={get:function(a){return a.style.cssText||m},set:function(a,d){return a.style.cssText=d+""}});e.support.optSelected||(e.propHooks.selected={get:function(a){if(a=a.parentNode)a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex;return null}});e.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),
function(){e.propFix[this.toLowerCase()]=this});e.support.enctype||(e.propFix.enctype="encoding");e.each(["radio","checkbox"],function(){e.valHooks[this]={set:function(a,d){if(e.isArray(d))return a.checked=0<=e.inArray(e(a).val(),d)}};e.support.checkOn||(e.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var sb=/^(?:input|select|textarea)$/i,pd=/^key/,qd=/^(?:mouse|contextmenu)|click/,kc=/^(?:focusinfocus|focusoutblur)$/,lc=/^([^.]*)(?:\.(.+)|)$/;e.event={global:{},
add:function(a,d,b,c,f){var g,j,h,q,l,p,n,s,t;if(h=e._data(a)){b.handler&&(q=b,b=q.handler,f=q.selector);b.guid||(b.guid=e.guid++);if(!(j=h.events))j=h.events={};if(!(l=h.handle))l=h.handle=function(a){return typeof e!==S&&(!a||e.event.triggered!==a.type)?e.event.dispatch.apply(l.elem,arguments):m},l.elem=a;d=(d||"").match(T)||[""];for(h=d.length;h--;)if(g=lc.exec(d[h])||[],s=p=g[1],t=(g[2]||"").split(".").sort(),s){g=e.event.special[s]||{};s=(f?g.delegateType:g.bindType)||s;g=e.event.special[s]||
{};p=e.extend({type:s,origType:p,data:c,handler:b,guid:b.guid,selector:f,needsContext:f&&e.expr.match.needsContext.test(f),namespace:t.join(".")},q);if(!(n=j[s]))if(n=j[s]=[],n.delegateCount=0,!g.setup||!1===g.setup.call(a,c,t,l))a.addEventListener?a.addEventListener(s,l,!1):a.attachEvent&&a.attachEvent("on"+s,l);g.add&&(g.add.call(a,p),p.handler.guid||(p.handler.guid=b.guid));f?n.splice(n.delegateCount++,0,p):n.push(p);e.event.global[s]=!0}a=null}},remove:function(a,d,b,c,f){var g,j,h,q,l,m,p,n,
s,t,u,v=e.hasData(a)&&e._data(a);if(v&&(m=v.events)){d=(d||"").match(T)||[""];for(l=d.length;l--;)if(h=lc.exec(d[l])||[],s=u=h[1],t=(h[2]||"").split(".").sort(),s){p=e.event.special[s]||{};s=(c?p.delegateType:p.bindType)||s;n=m[s]||[];h=h[2]&&RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)");for(q=g=n.length;g--;)if(j=n[g],(f||u===j.origType)&&(!b||b.guid===j.guid)&&(!h||h.test(j.namespace))&&(!c||c===j.selector||"**"===c&&j.selector))n.splice(g,1),j.selector&&n.delegateCount--,p.remove&&p.remove.call(a,
j);q&&!n.length&&((!p.teardown||!1===p.teardown.call(a,t,v.handle))&&e.removeEvent(a,s,v.handle),delete m[s])}else for(s in m)e.event.remove(a,s+d[l],b,c,!0);e.isEmptyObject(m)&&(delete v.handle,e._removeData(a,"events"))}},trigger:function(a,d,b,f){var g,j,h,q,l,p,n=[b||t],s=qa.call(a,"type")?a.type:a;l=qa.call(a,"namespace")?a.namespace.split("."):[];h=g=b=b||t;if(!(3===b.nodeType||8===b.nodeType)&&!kc.test(s+e.event.triggered))if(0<=s.indexOf(".")&&(l=s.split("."),s=l.shift(),l.sort()),j=0>s.indexOf(":")&&
"on"+s,a=a[e.expando]?a:new e.Event(s,"object"===typeof a&&a),a.isTrigger=f?2:3,a.namespace=l.join("."),a.namespace_re=a.namespace?RegExp("(^|\\.)"+l.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=m,a.target||(a.target=b),d=null==d?[a]:e.makeArray(d,[a]),l=e.event.special[s]||{},f||!(l.trigger&&!1===l.trigger.apply(b,d))){if(!f&&!l.noBubble&&!e.isWindow(b)){q=l.delegateType||s;kc.test(q+s)||(h=h.parentNode);for(;h;h=h.parentNode)n.push(h),g=h;if(g===(b.ownerDocument||t))n.push(g.defaultView||g.parentWindow||
c)}for(p=0;(h=n[p++])&&!a.isPropagationStopped();)a.type=1<p?q:l.bindType||s,(g=(e._data(h,"events")||{})[a.type]&&e._data(h,"handle"))&&g.apply(h,d),(g=j&&h[j])&&(e.acceptData(h)&&g.apply&&!1===g.apply(h,d))&&a.preventDefault();a.type=s;if(!f&&!a.isDefaultPrevented()&&(!l._default||!1===l._default.apply(n.pop(),d))&&e.acceptData(b)&&j&&b[s]&&!e.isWindow(b)){(g=b[j])&&(b[j]=null);e.event.triggered=s;try{b[s]()}catch(u){}e.event.triggered=m;g&&(b[j]=g)}return a.result}},dispatch:function(a){a=e.event.fix(a);
var d,b,c,f,g=[],j=fa.call(arguments);d=(e._data(this,"events")||{})[a.type]||[];var h=e.event.special[a.type]||{};j[0]=a;a.delegateTarget=this;if(!(h.preDispatch&&!1===h.preDispatch.call(this,a))){g=e.event.handlers.call(this,a,d);for(d=0;(c=g[d++])&&!a.isPropagationStopped();){a.currentTarget=c.elem;for(f=0;(b=c.handlers[f++])&&!a.isImmediatePropagationStopped();)if(!a.namespace_re||a.namespace_re.test(b.namespace))if(a.handleObj=b,a.data=b.data,b=((e.event.special[b.origType]||{}).handle||b.handler).apply(c.elem,
j),b!==m&&!1===(a.result=b))a.preventDefault(),a.stopPropagation()}h.postDispatch&&h.postDispatch.call(this,a);return a.result}},handlers:function(a,d){var b,c,f,g,j=[],h=d.delegateCount,q=a.target;if(h&&q.nodeType&&(!a.button||"click"!==a.type))for(;q!=this;q=q.parentNode||this)if(1===q.nodeType&&(!0!==q.disabled||"click"!==a.type)){f=[];for(g=0;g<h;g++)c=d[g],b=c.selector+" ",f[b]===m&&(f[b]=c.needsContext?0<=e(b,this).index(q):e.find(b,this,null,[q]).length),f[b]&&f.push(c);f.length&&j.push({elem:q,
handlers:f})}h<d.length&&j.push({elem:this,handlers:d.slice(h)});return j},fix:function(a){if(a[e.expando])return a;var d,b,c;d=a.type;var f=a,g=this.fixHooks[d];g||(this.fixHooks[d]=g=qd.test(d)?this.mouseHooks:pd.test(d)?this.keyHooks:{});c=g.props?this.props.concat(g.props):this.props;a=new e.Event(f);for(d=c.length;d--;)b=c[d],a[b]=f[b];a.target||(a.target=f.srcElement||t);3===a.target.nodeType&&(a.target=a.target.parentNode);a.metaKey=!!a.metaKey;return g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
fixHooks:{},keyHooks:{props:["char","charCode","key","keyCode"],filter:function(a,d){null==a.which&&(a.which=null!=d.charCode?d.charCode:d.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,b,c=d.button,f=d.fromElement;null==a.pageX&&null!=d.clientX&&(e=a.target.ownerDocument||t,b=e.documentElement,e=e.body,a.pageX=d.clientX+(b&&b.scrollLeft||e&&e.scrollLeft||0)-(b&&b.clientLeft||
e&&e.clientLeft||0),a.pageY=d.clientY+(b&&b.scrollTop||e&&e.scrollTop||0)-(b&&b.clientTop||e&&e.clientTop||0));!a.relatedTarget&&f&&(a.relatedTarget=f===a.target?d.toElement:f);!a.which&&c!==m&&(a.which=c&1?1:c&2?3:c&4?2:0);return a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==g()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){if(this===g()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(e.nodeName(this,
"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(a){return e.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){a.result!==m&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,d,b,c){a=e.extend(new e.Event,b,{type:a,isSimulated:!0,originalEvent:{}});c?e.event.trigger(a,null,d):e.event.dispatch.call(d,a);a.isDefaultPrevented()&&b.preventDefault()}};e.removeEvent=t.removeEventListener?function(a,d,e){a.removeEventListener&&a.removeEventListener(d,
e,!1)}:function(a,d,e){d="on"+d;a.detachEvent&&(typeof a[d]===S&&(a[d]=null),a.detachEvent(d,e))};e.Event=function(a,d){if(!(this instanceof e.Event))return new e.Event(a,d);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||!1===a.returnValue||a.getPreventDefault&&a.getPreventDefault()?b:f):this.type=a;d&&e.extend(this,d);this.timeStamp=a&&a.timeStamp||e.now();this[e.expando]=!0};e.Event.prototype={isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,
preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=b;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=b;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=b;this.stopPropagation()}};e.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,d){e.event.special[a]={delegateType:d,bindType:d,handle:function(a){var b,
c=a.relatedTarget,f=a.handleObj;if(!c||c!==this&&!e.contains(this,c))a.type=f.origType,b=f.handler.apply(this,arguments),a.type=d;return b}}});e.support.submitBubbles||(e.event.special.submit={setup:function(){if(e.nodeName(this,"form"))return!1;e.event.add(this,"click._submit keypress._submit",function(a){a=a.target;if((a=e.nodeName(a,"input")||e.nodeName(a,"button")?a.form:m)&&!e._data(a,"submitBubbles"))e.event.add(a,"submit._submit",function(a){a._submit_bubble=!0}),e._data(a,"submitBubbles",
!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&e.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(e.nodeName(this,"form"))return!1;e.event.remove(this,"._submit")}});e.support.changeBubbles||(e.event.special.change={setup:function(){if(sb.test(this.nodeName)){if("checkbox"===this.type||"radio"===this.type)e.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=
!0)}),e.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1);e.event.simulate("change",this,a,!0)});return!1}e.event.add(this,"beforeactivate._change",function(a){a=a.target;sb.test(a.nodeName)&&!e._data(a,"changeBubbles")&&(e.event.add(a,"change._change",function(a){this.parentNode&&(!a.isSimulated&&!a.isTrigger)&&e.event.simulate("change",this.parentNode,a,!0)}),e._data(a,"changeBubbles",!0))})},handle:function(a){var d=a.target;if(this!==d||a.isSimulated||
a.isTrigger||"radio"!==d.type&&"checkbox"!==d.type)return a.handleObj.handler.apply(this,arguments)},teardown:function(){e.event.remove(this,"._change");return!sb.test(this.nodeName)}});e.support.focusinBubbles||e.each({focus:"focusin",blur:"focusout"},function(a,d){var b=0,c=function(a){e.event.simulate(d,a.target,e.event.fix(a),!0)};e.event.special[d]={setup:function(){0===b++&&t.addEventListener(a,c,!0)},teardown:function(){0===--b&&t.removeEventListener(a,c,!0)}}});e.fn.extend({on:function(a,
d,b,c,g){var j,h;if("object"===typeof a){"string"!==typeof d&&(b=b||d,d=m);for(j in a)this.on(j,d,b,a[j],g);return this}null==b&&null==c?(c=d,b=d=m):null==c&&("string"===typeof d?(c=b,b=m):(c=b,b=d,d=m));if(!1===c)c=f;else if(!c)return this;1===g&&(h=c,c=function(a){e().off(a);return h.apply(this,arguments)},c.guid=h.guid||(h.guid=e.guid++));return this.each(function(){e.event.add(this,a,c,b,d)})},one:function(a,d,e,b){return this.on(a,d,e,b,1)},off:function(a,d,b){var c;if(a&&a.preventDefault&&a.handleObj)return c=
a.handleObj,e(a.delegateTarget).off(c.namespace?c.origType+"."+c.namespace:c.origType,c.selector,c.handler),this;if("object"===typeof a){for(c in a)this.off(c,d,a[c]);return this}if(!1===d||"function"===typeof d)b=d,d=m;!1===b&&(b=f);return this.each(function(){e.event.remove(this,a,b,d)})},trigger:function(a,d){return this.each(function(){e.event.trigger(a,d,this)})},triggerHandler:function(a,d){var b=this[0];if(b)return e.event.trigger(a,d,b,!0)}});var Ec=/^.[^:#\[\.,]*$/,rd=/^(?:parents|prev(?:Until|All))/,
mc=e.expr.match.needsContext,sd={children:!0,contents:!0,next:!0,prev:!0};e.fn.extend({find:function(a){var d,b=[],c=this,f=c.length;if("string"!==typeof a)return this.pushStack(e(a).filter(function(){for(d=0;d<f;d++)if(e.contains(c[d],this))return!0}));for(d=0;d<f;d++)e.find(a,c[d],b);b=this.pushStack(1<f?e.unique(b):b);b.selector=this.selector?this.selector+" "+a:a;return b},has:function(a){var d,b=e(a,this),c=b.length;return this.filter(function(){for(d=0;d<c;d++)if(e.contains(this,b[d]))return!0})},
not:function(a){return this.pushStack(n(this,a||[],!0))},filter:function(a){return this.pushStack(n(this,a||[],!1))},is:function(a){return!!n(this,"string"===typeof a&&mc.test(a)?e(a):a||[],!1).length},closest:function(a,d){for(var b,c=0,f=this.length,g=[],j=mc.test(a)||"string"!==typeof a?e(a,d||this.context):0;c<f;c++)for(b=this[c];b&&b!==d;b=b.parentNode)if(11>b.nodeType&&(j?-1<j.index(b):1===b.nodeType&&e.find.matchesSelector(b,a))){g.push(b);break}return this.pushStack(1<g.length?e.unique(g):
g)},index:function(a){return!a?this[0]&&this[0].parentNode?this.first().prevAll().length:-1:"string"===typeof a?e.inArray(this[0],e(a)):e.inArray(a.jquery?a[0]:a,this)},add:function(a,d){var b="string"===typeof a?e(a,d):e.makeArray(a&&a.nodeType?[a]:a),b=e.merge(this.get(),b);return this.pushStack(e.unique(b))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});e.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return e.dir(a,
"parentNode")},parentsUntil:function(a,d,b){return e.dir(a,"parentNode",b)},next:function(a){return q(a,"nextSibling")},prev:function(a){return q(a,"previousSibling")},nextAll:function(a){return e.dir(a,"nextSibling")},prevAll:function(a){return e.dir(a,"previousSibling")},nextUntil:function(a,d,b){return e.dir(a,"nextSibling",b)},prevUntil:function(a,d,b){return e.dir(a,"previousSibling",b)},siblings:function(a){return e.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return e.sibling(a.firstChild)},
contents:function(a){return e.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:e.merge([],a.childNodes)}},function(a,d){e.fn[a]=function(b,c){var f=e.map(this,d,b);"Until"!==a.slice(-5)&&(c=b);c&&"string"===typeof c&&(f=e.filter(c,f));1<this.length&&(sd[a]||(f=e.unique(f)),rd.test(a)&&(f=f.reverse()));return this.pushStack(f)}});e.extend({filter:function(a,d,b){var c=d[0];b&&(a=":not("+a+")");return 1===d.length&&1===c.nodeType?e.find.matchesSelector(c,a)?[c]:[]:e.find.matches(a,e.grep(d,
function(a){return 1===a.nodeType}))},dir:function(a,d,b){var c=[];for(a=a[d];a&&9!==a.nodeType&&(b===m||1!==a.nodeType||!e(a).is(b));)1===a.nodeType&&c.push(a),a=a[d];return c},sibling:function(a,d){for(var e=[];a;a=a.nextSibling)1===a.nodeType&&a!==d&&e.push(a);return e}});var Ab="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",td=/ jQuery\d+="(?:null|\d+)"/g,nc=RegExp("<(?:"+Ab+")[\\s/>]",
"i"),tb=/^\s+/,oc=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,pc=/<([\w:]+)/,qc=/<tbody/i,ud=/<|&#?\w+;/,vd=/<(?:script|style|link)/i,Xa=/^(?:checkbox|radio)$/i,wd=/checked\s*(?:[^=]|=\s*.checked.)/i,rc=/^$|\/(?:java|ecma)script/i,Fc=/^true\/(.*)/,xd=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,M={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],
tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:e.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},ub=K(t).appendChild(t.createElement("div"));M.optgroup=M.option;M.tbody=M.tfoot=M.colgroup=M.caption=M.thead;M.th=M.td;e.fn.extend({text:function(a){return e.access(this,function(a){return a===m?e.text(this):this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a))},
null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&F(this,a).appendChild(a)})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var d=F(this,a);d.insertBefore(a,d.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,
function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,d){for(var b,c=a?e.filter(a,this):this,f=0;null!=(b=c[f]);f++)!d&&1===b.nodeType&&e.cleanData(D(b)),b.parentNode&&(d&&e.contains(b.ownerDocument,b)&&Wa(D(b,"script")),b.parentNode.removeChild(b));return this},empty:function(){for(var a,d=0;null!=(a=this[d]);d++){for(1===a.nodeType&&e.cleanData(D(a,!1));a.firstChild;)a.removeChild(a.firstChild);a.options&&e.nodeName(a,"select")&&(a.options.length=0)}return this},
clone:function(a,d){a=null==a?!1:a;d=null==d?a:d;return this.map(function(){return e.clone(this,a,d)})},html:function(a){return e.access(this,function(a){var b=this[0]||{},c=0,f=this.length;if(a===m)return 1===b.nodeType?b.innerHTML.replace(td,""):m;if("string"===typeof a&&!vd.test(a)&&(e.support.htmlSerialize||!nc.test(a))&&(e.support.leadingWhitespace||!tb.test(a))&&!M[(pc.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(oc,"<$1></$2>");try{for(;c<f;c++)b=this[c]||{},1===b.nodeType&&(e.cleanData(D(b,
!1)),b.innerHTML=a);b=0}catch(g){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=e.map(this,function(a){return[a.nextSibling,a.parentNode]}),d=0;this.domManip(arguments,function(b){var c=a[d++],f=a[d++];f&&(c&&c.parentNode!==f&&(c=this.nextSibling),e(this).remove(),f.insertBefore(b,c))},!0);return d?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,d,b){a=Ub.apply([],a);var c,f,g,j,h=0,q=this.length,l=this,m=q-1,p=a[0],n=e.isFunction(p);
if(n||!(1>=q||"string"!==typeof p||e.support.checkClone||!wd.test(p)))return this.each(function(e){var c=l.eq(e);n&&(a[0]=p.call(this,e,c.html()));c.domManip(a,d,b)});if(q&&(j=e.buildFragment(a,this[0].ownerDocument,!1,!b&&this),c=j.firstChild,1===j.childNodes.length&&(j=c),c)){g=e.map(D(j,"script"),oa);for(f=g.length;h<q;h++)c=j,h!==m&&(c=e.clone(c,!0,!0),f&&e.merge(g,D(c,"script"))),d.call(this[h],c,h);if(f){j=g[g.length-1].ownerDocument;e.map(g,va);for(h=0;h<f;h++)if(c=g[h],rc.test(c.type||"")&&
!e._data(c,"globalEval")&&e.contains(j,c))c.src?e._evalUrl(c.src):e.globalEval((c.text||c.textContent||c.innerHTML||"").replace(xd,""))}j=c=null}return this}});e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,d){e.fn[a]=function(a){for(var b=0,c=[],f=e(a),g=f.length-1;b<=g;b++)a=b===g?this:this.clone(!0),e(f[b])[d](a),ab.apply(c,a.get());return this.pushStack(c)}});e.extend({clone:function(a,d,b){var c,f,g,j,h,q=e.contains(a.ownerDocument,
a);e.support.html5Clone||e.isXMLDoc(a)||!nc.test("<"+a.nodeName+">")?g=a.cloneNode(!0):(ub.innerHTML=a.outerHTML,ub.removeChild(g=ub.firstChild));if((!e.support.noCloneEvent||!e.support.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!e.isXMLDoc(a)){c=D(g);h=D(a);for(j=0;null!=(f=h[j]);++j)if(c[j]){var l=c[j],m=void 0,p=void 0,n=void 0;if(1===l.nodeType){m=l.nodeName.toLowerCase();if(!e.support.noCloneEvent&&l[e.expando]){n=e._data(l);for(p in n.events)e.removeEvent(l,p,n.handle);l.removeAttribute(e.expando)}if("script"===
m&&l.text!==f.text)oa(l).text=f.text,va(l);else if("object"===m)l.parentNode&&(l.outerHTML=f.outerHTML),e.support.html5Clone&&(f.innerHTML&&!e.trim(l.innerHTML))&&(l.innerHTML=f.innerHTML);else if("input"===m&&Xa.test(f.type))l.defaultChecked=l.checked=f.checked,l.value!==f.value&&(l.value=f.value);else if("option"===m)l.defaultSelected=l.selected=f.defaultSelected;else if("input"===m||"textarea"===m)l.defaultValue=f.defaultValue}}}if(d)if(b){h=h||D(a);c=c||D(g);for(j=0;null!=(f=h[j]);j++)Bb(f,c[j])}else Bb(a,
g);c=D(g,"script");0<c.length&&Wa(c,!q&&D(a,"script"));return g},buildFragment:function(a,d,b,c){for(var f,g,j,h,q,l,m=a.length,p=K(d),n=[],s=0;s<m;s++)if((g=a[s])||0===g)if("object"===e.type(g))e.merge(n,g.nodeType?[g]:g);else if(ud.test(g)){j=j||p.appendChild(d.createElement("div"));h=(pc.exec(g)||["",""])[1].toLowerCase();l=M[h]||M._default;j.innerHTML=l[1]+g.replace(oc,"<$1></$2>")+l[2];for(f=l[0];f--;)j=j.lastChild;!e.support.leadingWhitespace&&tb.test(g)&&n.push(d.createTextNode(tb.exec(g)[0]));
if(!e.support.tbody)for(f=(g="table"===h&&!qc.test(g)?j.firstChild:"<table>"===l[1]&&!qc.test(g)?j:0)&&g.childNodes.length;f--;)e.nodeName(q=g.childNodes[f],"tbody")&&!q.childNodes.length&&g.removeChild(q);e.merge(n,j.childNodes);for(j.textContent="";j.firstChild;)j.removeChild(j.firstChild);j=p.lastChild}else n.push(d.createTextNode(g));j&&p.removeChild(j);e.support.appendChecked||e.grep(D(n,"input"),Gc);for(s=0;g=n[s++];)if(!(c&&-1!==e.inArray(g,c))&&(a=e.contains(g.ownerDocument,g),j=D(p.appendChild(g),
"script"),a&&Wa(j),b))for(f=0;g=j[f++];)rc.test(g.type||"")&&b.push(g);return p},cleanData:function(a,d){for(var b,c,f,g,j=0,h=e.expando,q=e.cache,l=e.support.deleteExpando,m=e.event.special;null!=(b=a[j]);j++)if(d||e.acceptData(b))if(g=(f=b[h])&&q[f]){if(g.events)for(c in g.events)m[c]?e.event.remove(b,c):e.removeEvent(b,c,g.handle);q[f]&&(delete q[f],l?delete b[h]:typeof b.removeAttribute!==S?b.removeAttribute(h):b[h]=null,na.push(f))}},_evalUrl:function(a){return e.ajax({url:a,type:"GET",dataType:"script",
async:!1,global:!1,"throws":!0})}});e.fn.extend({wrapAll:function(a){if(e.isFunction(a))return this.each(function(d){e(this).wrapAll(a.call(this,d))});if(this[0]){var d=e(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&d.insertBefore(this[0]);d.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return e.isFunction(a)?this.each(function(d){e(this).wrapInner(a.call(this,d))}):this.each(function(){var d=
e(this),b=d.contents();b.length?b.wrapAll(a):d.append(a)})},wrap:function(a){var d=e.isFunction(a);return this.each(function(b){e(this).wrapAll(d?a.call(this,b):a)})},unwrap:function(){return this.parent().each(function(){e.nodeName(this,"body")||e(this).replaceWith(this.childNodes)}).end()}});var xa,da,ea,vb=/alpha\([^)]*\)/i,yd=/opacity\s*=\s*([^)]*)/,zd=/^(top|right|bottom|left)$/,Ad=/^(none|table(?!-c[ea]).+)/,sc=/^margin/,Hc=RegExp("^("+Ha+")(.*)$","i"),Ca=RegExp("^("+Ha+")(?!px)[a-z%]+$","i"),
Bd=RegExp("^([+-])=("+Ha+")","i"),Jb={BODY:"block"},Cd={position:"absolute",visibility:"hidden",display:"block"},tc={letterSpacing:0,fontWeight:400},ca=["Top","Right","Bottom","Left"],Db=["Webkit","O","Moz","ms"];e.fn.extend({css:function(a,d){return e.access(this,function(a,d,b){var c,f={},g=0;if(e.isArray(d)){c=da(a);for(b=d.length;g<b;g++)f[d[g]]=e.css(a,d[g],!1,c);return f}return b!==m?e.style(a,d,b):e.css(a,d)},a,d,1<arguments.length)},show:function(){return Eb(this,!0)},hide:function(){return Eb(this)},
toggle:function(a){return"boolean"===typeof a?a?this.show():this.hide():this.each(function(){wa(this)?e(this).show():e(this).hide()})}});e.extend({cssHooks:{opacity:{get:function(a,d){if(d){var b=ea(a,"opacity");return""===b?"1":b}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":e.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,d,b,c){if(a&&!(3===a.nodeType||8===a.nodeType||!a.style)){var f,
g,j,h=e.camelCase(d),q=a.style;d=e.cssProps[h]||(e.cssProps[h]=Cb(q,h));j=e.cssHooks[d]||e.cssHooks[h];if(b!==m){g=typeof b;if("string"===g&&(f=Bd.exec(b)))b=(f[1]+1)*f[2]+parseFloat(e.css(a,d)),g="number";if(!(null==b||"number"===g&&isNaN(b)))if("number"===g&&!e.cssNumber[h]&&(b+="px"),!e.support.clearCloneStyle&&(""===b&&0===d.indexOf("background"))&&(q[d]="inherit"),!j||!("set"in j)||(b=j.set(a,b,c))!==m)try{q[d]=b}catch(l){}}else return j&&"get"in j&&(f=j.get(a,!1,c))!==m?f:q[d]}},css:function(a,
d,b,c){var f,g;g=e.camelCase(d);d=e.cssProps[g]||(e.cssProps[g]=Cb(a.style,g));(g=e.cssHooks[d]||e.cssHooks[g])&&"get"in g&&(f=g.get(a,!0,b));f===m&&(f=ea(a,d,c));"normal"===f&&d in tc&&(f=tc[d]);return""===b||b?(a=parseFloat(f),!0===b||e.isNumeric(a)?a||0:f):f}});c.getComputedStyle?(da=function(a){return c.getComputedStyle(a,null)},ea=function(a,d,b){var c,f=(b=b||da(a))?b.getPropertyValue(d)||b[d]:m,g=a.style;b&&(""===f&&!e.contains(a.ownerDocument,a)&&(f=e.style(a,d)),Ca.test(f)&&sc.test(d)&&(a=
g.width,d=g.minWidth,c=g.maxWidth,g.minWidth=g.maxWidth=g.width=f,f=b.width,g.width=a,g.minWidth=d,g.maxWidth=c));return f}):t.documentElement.currentStyle&&(da=function(a){return a.currentStyle},ea=function(a,d,b){var e,c,f=(b=b||da(a))?b[d]:m,g=a.style;null==f&&(g&&g[d])&&(f=g[d]);if(Ca.test(f)&&!zd.test(d)){b=g.left;if(c=(e=a.runtimeStyle)&&e.left)e.left=a.currentStyle.left;g.left="fontSize"===d?"1em":f;f=g.pixelLeft+"px";g.left=b;c&&(e.left=c)}return""===f?"auto":f});e.each(["height","width"],
function(a,d){e.cssHooks[d]={get:function(a,b,c){if(b)return 0===a.offsetWidth&&Ad.test(e.css(a,"display"))?e.swap(a,Cd,function(){return Ib(a,d,c)}):Ib(a,d,c)},set:function(a,b,c){var f=c&&da(a);return Gb(a,b,c?Hb(a,d,c,e.support.boxSizing&&"border-box"===e.css(a,"boxSizing",!1,f),f):0)}}});e.support.opacity||(e.cssHooks.opacity={get:function(a,d){return yd.test((d&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":d?"1":""},set:function(a,d){var b=a.style,c=
a.currentStyle,f=e.isNumeric(d)?"alpha(opacity="+100*d+")":"",g=c&&c.filter||b.filter||"";b.zoom=1;if((1<=d||""===d)&&""===e.trim(g.replace(vb,""))&&b.removeAttribute)if(b.removeAttribute("filter"),""===d||c&&!c.filter)return;b.filter=vb.test(g)?g.replace(vb,f):g+" "+f}});e(function(){e.support.reliableMarginRight||(e.cssHooks.marginRight={get:function(a,d){if(d)return e.swap(a,{display:"inline-block"},ea,[a,"marginRight"])}});!e.support.pixelPosition&&e.fn.position&&e.each(["top","left"],function(a,
d){e.cssHooks[d]={get:function(a,b){if(b)return b=ea(a,d),Ca.test(b)?e(a).position()[d]+"px":b}}})});e.expr&&e.expr.filters&&(e.expr.filters.hidden=function(a){return 0>=a.offsetWidth&&0>=a.offsetHeight||!e.support.reliableHiddenOffsets&&"none"===(a.style&&a.style.display||e.css(a,"display"))},e.expr.filters.visible=function(a){return!e.expr.filters.hidden(a)});e.each({margin:"",padding:"",border:"Width"},function(a,d){e.cssHooks[a+d]={expand:function(b){var e=0,c={};for(b="string"===typeof b?b.split(" "):
[b];4>e;e++)c[a+ca[e]+d]=b[e]||b[e-2]||b[0];return c}};sc.test(a)||(e.cssHooks[a+d].set=Gb)});var Dd=/%20/g,Ic=/\[\]$/,uc=/\r?\n/g,Ed=/^(?:submit|button|image|reset|file)$/i,Fd=/^(?:input|select|textarea|keygen)/i;e.fn.extend({serialize:function(){return e.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=e.prop(this,"elements");return a?e.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!e(this).is(":disabled")&&Fd.test(this.nodeName)&&
!Ed.test(a)&&(this.checked||!Xa.test(a))}).map(function(a,d){var b=e(this).val();return null==b?null:e.isArray(b)?e.map(b,function(a){return{name:d.name,value:a.replace(uc,"\r\n")}}):{name:d.name,value:b.replace(uc,"\r\n")}}).get()}});e.param=function(a,d){var b,c=[],f=function(a,d){d=e.isFunction(d)?d():null==d?"":d;c[c.length]=encodeURIComponent(a)+"="+encodeURIComponent(d)};d===m&&(d=e.ajaxSettings&&e.ajaxSettings.traditional);if(e.isArray(a)||a.jquery&&!e.isPlainObject(a))e.each(a,function(){f(this.name,
this.value)});else for(b in a)Ya(b,a[b],d,f);return c.join("&").replace(Dd,"+")};e.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,d){e.fn[d]=function(a,b){return 0<arguments.length?this.on(d,null,a,b):this.trigger(d)}});e.fn.extend({hover:function(a,d){return this.mouseenter(a).mouseleave(d||a)},bind:function(a,d,b){return this.on(a,
null,d,b)},unbind:function(a,d){return this.off(a,null,d)},delegate:function(a,d,b,e){return this.on(d,a,b,e)},undelegate:function(a,d,b){return 1===arguments.length?this.off(a,"**"):this.off(d,a||"**",b)}});var ma,ba,wb=e.now(),xb=/\?/,Gd=/#.*$/,vc=/([?&])_=[^&]*/,Hd=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Id=/^(?:GET|HEAD)$/,Jd=/^\/\//,wc=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,xc=e.fn.load,yc={},Za={},zc="*/".concat("*");try{ba=Kc.href}catch(Pd){ba=t.createElement("a"),ba.href="",ba=ba.href}ma=wc.exec(ba.toLowerCase())||
[];e.fn.load=function(a,d,b){if("string"!==typeof a&&xc)return xc.apply(this,arguments);var c,f,g,j=this,h=a.indexOf(" ");0<=h&&(c=a.slice(h,a.length),a=a.slice(0,h));e.isFunction(d)?(b=d,d=m):d&&"object"===typeof d&&(g="POST");0<j.length&&e.ajax({url:a,type:g,dataType:"html",data:d}).done(function(a){f=arguments;j.html(c?e("<div>").append(e.parseHTML(a)).find(c):a)}).complete(b&&function(a,d){j.each(b,f||[a.responseText,d,a])});return this};e.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),
function(a,d){e.fn[d]=function(a){return this.on(d,a)}});e.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ba,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ma[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zc,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",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":e.parseJSON,"text xml":e.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,d){return d?$a($a(a,e.ajaxSettings),d):$a(e.ajaxSettings,a)},ajaxPrefilter:Lb(yc),ajaxTransport:Lb(Za),ajax:function(a,d){function b(a,d,c,f){var k,r,p,A;A=d;if(2!==y){y=2;h&&clearTimeout(h);l=m;j=f||"";z.readyState=0<a?4:0;f=200<=a&&300>a||304===a;if(c){p=n;for(var K=z,w,B,F,H,V=p.contents,D=p.dataTypes;"*"===D[0];)D.shift(),
B===m&&(B=p.mimeType||K.getResponseHeader("Content-Type"));if(B)for(H in V)if(V[H]&&V[H].test(B)){D.unshift(H);break}if(D[0]in c)F=D[0];else{for(H in c){if(!D[0]||p.converters[H+" "+D[0]]){F=H;break}w||(w=H)}F=F||w}F?(F!==D[0]&&D.unshift(F),p=c[F]):p=void 0}a:{c=n;w=p;B=z;F=f;var I,C,G,K={},V=c.dataTypes.slice();if(V[1])for(C in c.converters)K[C.toLowerCase()]=c.converters[C];for(H=V.shift();H;)if(c.responseFields[H]&&(B[c.responseFields[H]]=w),!G&&(F&&c.dataFilter)&&(w=c.dataFilter(w,c.dataType)),
G=H,H=V.shift())if("*"===H)H=G;else if("*"!==G&&G!==H){C=K[G+" "+H]||K["* "+H];if(!C)for(I in K)if(p=I.split(" "),p[1]===H&&(C=K[G+" "+p[0]]||K["* "+p[0]])){!0===C?C=K[I]:!0!==K[I]&&(H=p[0],V.unshift(p[1]));break}if(!0!==C)if(C&&c["throws"])w=C(w);else try{w=C(w)}catch(L){p={state:"parsererror",error:C?L:"No conversion from "+G+" to "+H};break a}}p={state:"success",data:w}}if(f)n.ifModified&&((A=z.getResponseHeader("Last-Modified"))&&(e.lastModified[g]=A),(A=z.getResponseHeader("etag"))&&(e.etag[g]=
A)),204===a||"HEAD"===n.type?A="nocontent":304===a?A="notmodified":(A=p.state,k=p.data,r=p.error,f=!r);else if(r=A,a||!A)A="error",0>a&&(a=0);z.status=a;z.statusText=(d||A)+"";f?u.resolveWith(s,[k,A,z]):u.rejectWith(s,[z,A,r]);z.statusCode(x);x=m;q&&t.trigger(f?"ajaxSuccess":"ajaxError",[z,n,f?k:r]);v.fireWith(s,[z,A]);q&&(t.trigger("ajaxComplete",[z,n]),--e.active||e.event.trigger("ajaxStop"))}}"object"===typeof a&&(d=a,a=m);d=d||{};var c,f,g,j,h,q,l,p,n=e.ajaxSetup({},d),s=n.context||n,t=n.context&&
(s.nodeType||s.jquery)?e(s):e.event,u=e.Deferred(),v=e.Callbacks("once memory"),x=n.statusCode||{},K={},w={},y=0,B="canceled",z={readyState:0,getResponseHeader:function(a){var d;if(2===y){if(!p)for(p={};d=Hd.exec(j);)p[d[1].toLowerCase()]=d[2];d=p[a.toLowerCase()]}return null==d?null:d},getAllResponseHeaders:function(){return 2===y?j:null},setRequestHeader:function(a,d){var b=a.toLowerCase();y||(a=w[b]=w[b]||a,K[a]=d);return this},overrideMimeType:function(a){y||(n.mimeType=a);return this},statusCode:function(a){var d;
if(a)if(2>y)for(d in a)x[d]=[x[d],a[d]];else z.always(a[z.status]);return this},abort:function(a){a=a||B;l&&l.abort(a);b(0,a);return this}};u.promise(z).complete=v.add;z.success=z.done;z.error=z.fail;n.url=((a||n.url||ba)+"").replace(Gd,"").replace(Jd,ma[1]+"//");n.type=d.method||d.type||n.method||n.type;n.dataTypes=e.trim(n.dataType||"*").toLowerCase().match(T)||[""];null==n.crossDomain&&(c=wc.exec(n.url.toLowerCase()),n.crossDomain=!(!c||!(c[1]!==ma[1]||c[2]!==ma[2]||(c[3]||("http:"===c[1]?"80":
"443"))!==(ma[3]||("http:"===ma[1]?"80":"443")))));n.data&&(n.processData&&"string"!==typeof n.data)&&(n.data=e.param(n.data,n.traditional));Mb(yc,n,d,z);if(2===y)return z;(q=n.global)&&0===e.active++&&e.event.trigger("ajaxStart");n.type=n.type.toUpperCase();n.hasContent=!Id.test(n.type);g=n.url;n.hasContent||(n.data&&(g=n.url+=(xb.test(g)?"&":"?")+n.data,delete n.data),!1===n.cache&&(n.url=vc.test(g)?g.replace(vc,"$1_="+wb++):g+(xb.test(g)?"&":"?")+"_="+wb++));n.ifModified&&(e.lastModified[g]&&z.setRequestHeader("If-Modified-Since",
e.lastModified[g]),e.etag[g]&&z.setRequestHeader("If-None-Match",e.etag[g]));(n.data&&n.hasContent&&!1!==n.contentType||d.contentType)&&z.setRequestHeader("Content-Type",n.contentType);z.setRequestHeader("Accept",n.dataTypes[0]&&n.accepts[n.dataTypes[0]]?n.accepts[n.dataTypes[0]]+("*"!==n.dataTypes[0]?", "+zc+"; q=0.01":""):n.accepts["*"]);for(f in n.headers)z.setRequestHeader(f,n.headers[f]);if(n.beforeSend&&(!1===n.beforeSend.call(s,z,n)||2===y))return z.abort();B="abort";for(f in{success:1,error:1,
complete:1})z[f](n[f]);if(l=Mb(Za,n,d,z)){z.readyState=1;q&&t.trigger("ajaxSend",[z,n]);n.async&&0<n.timeout&&(h=setTimeout(function(){z.abort("timeout")},n.timeout));try{y=1,l.send(K,b)}catch(F){if(2>y)b(-1,F);else throw F;}}else b(-1,"No Transport");return z},getJSON:function(a,d,b){return e.get(a,d,b,"json")},getScript:function(a,d){return e.get(a,m,d,"script")}});e.each(["get","post"],function(a,d){e[d]=function(a,b,c,f){e.isFunction(b)&&(f=f||c,c=b,b=m);return e.ajax({url:a,type:d,dataType:f,
data:b,success:c})}});e.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){e.globalEval(a);return a}}});e.ajaxPrefilter("script",function(a){a.cache===m&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});e.ajaxTransport("script",function(a){if(a.crossDomain){var d,b=t.head||e("head")[0]||t.documentElement;return{send:function(e,c){d=t.createElement("script");
d.async=!0;a.scriptCharset&&(d.charset=a.scriptCharset);d.src=a.url;d.onload=d.onreadystatechange=function(a,b){if(b||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,d.parentNode&&d.parentNode.removeChild(d),d=null,b||c(200,"success")};b.insertBefore(d,b.firstChild)},abort:function(){if(d)d.onload(m,!0)}}}});var Ac=[],yb=/(=)\?(?=&|$)|\?\?/;e.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Ac.pop()||e.expando+"_"+wb++;this[a]=!0;return a}});e.ajaxPrefilter("json jsonp",
function(a,d,b){var f,g,j,h=!1!==a.jsonp&&(yb.test(a.url)?"url":"string"===typeof a.data&&!(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&yb.test(a.data)&&"data");if(h||"jsonp"===a.dataTypes[0])return f=a.jsonpCallback=e.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,h?a[h]=a[h].replace(yb,"$1"+f):!1!==a.jsonp&&(a.url+=(xb.test(a.url)?"&":"?")+a.jsonp+"="+f),a.converters["script json"]=function(){j||e.error(f+" was not called");return j[0]},a.dataTypes[0]="json",
g=c[f],c[f]=function(){j=arguments},b.always(function(){c[f]=g;a[f]&&(a.jsonpCallback=d.jsonpCallback,Ac.push(f));j&&e.isFunction(g)&&g(j[0]);j=g=m}),"script"});var ua,Ba,Kd=0,zb=c.ActiveXObject&&function(){for(var a in ua)ua[a](m,!0)};e.ajaxSettings.xhr=c.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&Nb()))a:{try{a=new c.ActiveXObject("Microsoft.XMLHTTP");break a}catch(d){}a=void 0}return a}:Nb;Ba=e.ajaxSettings.xhr();e.support.cors=!!Ba&&"withCredentials"in Ba;(Ba=e.support.ajax=!!Ba)&&e.ajaxTransport(function(a){if(!a.crossDomain||
e.support.cors){var d;return{send:function(b,f){var g,j,h=a.xhr();a.username?h.open(a.type,a.url,a.async,a.username,a.password):h.open(a.type,a.url,a.async);if(a.xhrFields)for(j in a.xhrFields)h[j]=a.xhrFields[j];a.mimeType&&h.overrideMimeType&&h.overrideMimeType(a.mimeType);!a.crossDomain&&!b["X-Requested-With"]&&(b["X-Requested-With"]="XMLHttpRequest");try{for(j in b)h.setRequestHeader(j,b[j])}catch(q){}h.send(a.hasContent&&a.data||null);d=function(b,c){var k,j,q,l;try{if(d&&(c||4===h.readyState))if(d=
m,g&&(h.onreadystatechange=e.noop,zb&&delete ua[g]),c)4!==h.readyState&&h.abort();else{l={};k=h.status;j=h.getAllResponseHeaders();"string"===typeof h.responseText&&(l.text=h.responseText);try{q=h.statusText}catch(n){q=""}!k&&a.isLocal&&!a.crossDomain?k=l.text?200:404:1223===k&&(k=204)}}catch(p){c||f(-1,p)}l&&f(k,q,l,j)};a.async?4===h.readyState?setTimeout(d):(g=++Kd,zb&&(ua||(ua={},e(c).unload(zb)),ua[g]=d),h.onreadystatechange=d):d()},abort:function(){d&&d(m,!0)}}}});var pa,Va,Ld=/^(?:toggle|show|hide)$/,
Bc=RegExp("^(?:([+-])=|)("+Ha+")([a-z%]*)$","i"),Md=/queueHooks$/,Da=[function(a,d,b){var c,f,g,j,h,q=this,l={},n=a.style,m=a.nodeType&&wa(a),p=e._data(a,"fxshow");b.queue||(j=e._queueHooks(a,"fx"),null==j.unqueued&&(j.unqueued=0,h=j.empty.fire,j.empty.fire=function(){j.unqueued||h()}),j.unqueued++,q.always(function(){q.always(function(){j.unqueued--;e.queue(a,"fx").length||j.empty.fire()})}));if(1===a.nodeType&&("height"in d||"width"in d))b.overflow=[n.overflow,n.overflowX,n.overflowY],"inline"===
e.css(a,"display")&&"none"===e.css(a,"float")&&(!e.support.inlineBlockNeedsLayout||"inline"===Fb(a.nodeName)?n.display="inline-block":n.zoom=1);b.overflow&&(n.overflow="hidden",e.support.shrinkWrapBlocks||q.always(function(){n.overflow=b.overflow[0];n.overflowX=b.overflow[1];n.overflowY=b.overflow[2]}));for(c in d)if(f=d[c],Ld.exec(f)&&(delete d[c],g=g||"toggle"===f,f!==(m?"hide":"show")))l[c]=p&&p[c]||e.style(a,c);if(!e.isEmptyObject(l))for(c in p?"hidden"in p&&(m=p.hidden):p=e._data(a,"fxshow",
{}),g&&(p.hidden=!m),m?e(a).show():q.done(function(){e(a).hide()}),q.done(function(){var d;e._removeData(a,"fxshow");for(d in l)e.style(a,d,l[d])}),l)d=Pb(m?p[c]:0,c,q),c in p||(p[c]=d.start,m&&(d.end=d.start,d.start="width"===c||"height"===c?1:0))}],ya={"*":[function(a,d){var b=this.createTween(a,d),c=b.cur(),f=Bc.exec(d),g=f&&f[3]||(e.cssNumber[a]?"":"px"),j=(e.cssNumber[a]||"px"!==g&&+c)&&Bc.exec(e.css(b.elem,a)),h=1,q=20;if(j&&j[3]!==g){g=g||j[3];f=f||[];j=+c||1;do h=h||".5",j/=h,e.style(b.elem,
a,j+g);while(h!==(h=b.cur()/c)&&1!==h&&--q)}f&&(j=b.start=+j||+c||0,b.unit=g,b.end=f[1]?j+(f[1]+1)*f[2]:+f[2]);return b}]};e.Animation=e.extend(Qb,{tweener:function(a,d){e.isFunction(a)?(d=a,a=["*"]):a=a.split(" ");for(var b,c=0,f=a.length;c<f;c++)b=a[c],ya[b]=ya[b]||[],ya[b].unshift(d)},prefilter:function(a,d){d?Da.unshift(a):Da.push(a)}});e.Tween=G;G.prototype={constructor:G,init:function(a,d,b,c,f,g){this.elem=a;this.prop=b;this.easing=f||"swing";this.options=d;this.start=this.now=this.cur();this.end=
c;this.unit=g||(e.cssNumber[b]?"":"px")},cur:function(){var a=G.propHooks[this.prop];return a&&a.get?a.get(this):G.propHooks._default.get(this)},run:function(a){var d,b=G.propHooks[this.prop];this.pos=this.options.duration?d=e.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):d=a;this.now=(this.end-this.start)*d+this.start;this.options.step&&this.options.step.call(this.elem,this.now,this);b&&b.set?b.set(this):G.propHooks._default.set(this);return this}};G.prototype.init.prototype=
G.prototype;G.propHooks={_default:{get:function(a){if(null!=a.elem[a.prop]&&(!a.elem.style||null==a.elem.style[a.prop]))return a.elem[a.prop];a=e.css(a.elem,a.prop,"");return!a||"auto"===a?0:a},set:function(a){if(e.fx.step[a.prop])e.fx.step[a.prop](a);else a.elem.style&&(null!=a.elem.style[e.cssProps[a.prop]]||e.cssHooks[a.prop])?e.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}};G.propHooks.scrollTop=G.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=
a.now)}};e.each(["toggle","show","hide"],function(a,d){var b=e.fn[d];e.fn[d]=function(a,e,c){return null==a||"boolean"===typeof a?b.apply(this,arguments):this.animate(Ea(d,!0),a,e,c)}});e.fn.extend({fadeTo:function(a,d,b,e){return this.filter(wa).css("opacity",0).show().end().animate({opacity:d},a,b,e)},animate:function(a,d,b,c){var f=e.isEmptyObject(a),g=e.speed(d,b,c);d=function(){var d=Qb(this,e.extend({},a),g);(f||e._data(this,"finish"))&&d.stop(!0)};d.finish=d;return f||!1===g.queue?this.each(d):
this.queue(g.queue,d)},stop:function(a,d,b){var c=function(a){var d=a.stop;delete a.stop;d(b)};"string"!==typeof a&&(b=d,d=a,a=m);d&&!1!==a&&this.queue(a||"fx",[]);return this.each(function(){var d=!0,f=null!=a&&a+"queueHooks",g=e.timers,j=e._data(this);if(f)j[f]&&j[f].stop&&c(j[f]);else for(f in j)j[f]&&(j[f].stop&&Md.test(f))&&c(j[f]);for(f=g.length;f--;)if(g[f].elem===this&&(null==a||g[f].queue===a))g[f].anim.stop(b),d=!1,g.splice(f,1);(d||!b)&&e.dequeue(this,a)})},finish:function(a){!1!==a&&(a=
a||"fx");return this.each(function(){var d,b=e._data(this),c=b[a+"queue"];d=b[a+"queueHooks"];var f=e.timers,g=c?c.length:0;b.finish=!0;e.queue(this,a,[]);d&&d.stop&&d.stop.call(this,!0);for(d=f.length;d--;)f[d].elem===this&&f[d].queue===a&&(f[d].anim.stop(!0),f.splice(d,1));for(d=0;d<g;d++)c[d]&&c[d].finish&&c[d].finish.call(this);delete b.finish})}});e.each({slideDown:Ea("show"),slideUp:Ea("hide"),slideToggle:Ea("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},
function(a,d){e.fn[a]=function(a,b,e){return this.animate(d,a,b,e)}});e.speed=function(a,d,b){var c=a&&"object"===typeof a?e.extend({},a):{complete:b||!b&&d||e.isFunction(a)&&a,duration:a,easing:b&&d||d&&!e.isFunction(d)&&d};c.duration=e.fx.off?0:"number"===typeof c.duration?c.duration:c.duration in e.fx.speeds?e.fx.speeds[c.duration]:e.fx.speeds._default;if(null==c.queue||!0===c.queue)c.queue="fx";c.old=c.complete;c.complete=function(){e.isFunction(c.old)&&c.old.call(this);c.queue&&e.dequeue(this,
c.queue)};return c};e.easing={linear:function(a){return a},swing:function(a){return 0.5-Math.cos(a*Math.PI)/2}};e.timers=[];e.fx=G.prototype.init;e.fx.tick=function(){var a,d=e.timers,b=0;for(pa=e.now();b<d.length;b++)a=d[b],!a()&&d[b]===a&&d.splice(b--,1);d.length||e.fx.stop();pa=m};e.fx.timer=function(a){a()&&e.timers.push(a)&&e.fx.start()};e.fx.interval=13;e.fx.start=function(){Va||(Va=setInterval(e.fx.tick,e.fx.interval))};e.fx.stop=function(){clearInterval(Va);Va=null};e.fx.speeds={slow:600,
fast:200,_default:400};e.fx.step={};e.expr&&e.expr.filters&&(e.expr.filters.animated=function(a){return e.grep(e.timers,function(d){return a===d.elem}).length});e.fn.offset=function(a){if(arguments.length)return a===m?this:this.each(function(d){e.offset.setOffset(this,a,d)});var d,b,c={top:0,left:0},f=(b=this[0])&&b.ownerDocument;if(f){d=f.documentElement;if(!e.contains(d,b))return c;typeof b.getBoundingClientRect!==S&&(c=b.getBoundingClientRect());b=Rb(f);return{top:c.top+(b.pageYOffset||d.scrollTop)-
(d.clientTop||0),left:c.left+(b.pageXOffset||d.scrollLeft)-(d.clientLeft||0)}}};e.offset={setOffset:function(a,d,b){var c=e.css(a,"position");"static"===c&&(a.style.position="relative");var f=e(a),g=f.offset(),j=e.css(a,"top"),h=e.css(a,"left"),q={},l={};("absolute"===c||"fixed"===c)&&-1<e.inArray("auto",[j,h])?(l=f.position(),c=l.top,h=l.left):(c=parseFloat(j)||0,h=parseFloat(h)||0);e.isFunction(d)&&(d=d.call(a,b,g));null!=d.top&&(q.top=d.top-g.top+c);null!=d.left&&(q.left=d.left-g.left+h);"using"in
d?d.using.call(a,q):f.css(q)}};e.fn.extend({position:function(){if(this[0]){var a,d,b={top:0,left:0},c=this[0];"fixed"===e.css(c,"position")?d=c.getBoundingClientRect():(a=this.offsetParent(),d=this.offset(),e.nodeName(a[0],"html")||(b=a.offset()),b.top+=e.css(a[0],"borderTopWidth",!0),b.left+=e.css(a[0],"borderLeftWidth",!0));return{top:d.top-b.top-e.css(c,"marginTop",!0),left:d.left-b.left-e.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||
Tb;a&&!e.nodeName(a,"html")&&"static"===e.css(a,"position");)a=a.offsetParent;return a||Tb})}});e.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,d){var b=/Y/.test(d);e.fn[a]=function(c){return e.access(this,function(a,c,f){var g=Rb(a);if(f===m)return g?d in g?g[d]:g.document.documentElement[c]:a[c];g?g.scrollTo(!b?f:e(g).scrollLeft(),b?f:e(g).scrollTop()):a[c]=f},a,c,arguments.length,null)}});e.each({Height:"height",Width:"width"},function(a,d){e.each({padding:"inner"+a,content:d,
"":"outer"+a},function(b,c){e.fn[c]=function(c,f){var g=arguments.length&&(b||"boolean"!==typeof c),j=b||(!0===c||!0===f?"margin":"border");return e.access(this,function(d,b,c){return e.isWindow(d)?d.document.documentElement["client"+a]:9===d.nodeType?(b=d.documentElement,Math.max(d.body["scroll"+a],b["scroll"+a],d.body["offset"+a],b["offset"+a],b["client"+a])):c===m?e.css(d,b,j):e.style(d,b,c,j)},d,g?c:m,g,null)}})});e.fn.size=function(){return this.length};e.fn.andSelf=e.fn.addBack;"object"===typeof module&&
module&&"object"===typeof module.exports?module.exports=e:(c.jQuery=c.$=e,"function"===typeof define&&define.amd&&define("jquery",[],function(){return e}))})(window);
(function(c){c.extend(c.support,{iecors:!!window.XDomainRequest});c.support.iecors?c.ajaxTransport(function(c){return{send:function(j,h){var l=new window.XDomainRequest;l.onload=function(){h(200,"OK",{text:l.responseText},{"Content-Type":l.contentType})};c.xhrFields&&(l.onerror=c.xhrFields.error,l.ontimeout=c.xhrFields.timeout);l.open(c.type,c.url);l.send(c.hasContent&&c.data||null)},abort:function(){xdr.abort()}}}):(c.ajaxSetup({accepts:{binary:"text/plain; charset=x-user-defined"},responseFields:{binary:"response"}}),
c.ajaxTransport("binary",function(c){var j;return{send:function(h,l){var p=c.xhr();p.open(c.type,c.url,!1);p.hasOwnProperty("responseType")?p.responseType="arraybuffer":p.overrideMimeType&&p.overrideMimeType("text/plain; charset=x-user-defined");!c.crossDomain&&!h["X-Requested-With"]&&(h["X-Requested-With"]="XMLHttpRequest");try{for(var s in h)p.setRequestHeader(s,h[s])}catch(b){}p.send(c.hasContent&&c.data||null);j=function(){var b=p.status,g="",h=p.getAllResponseHeaders(),n={};try{if(j&&4===p.readyState){j=
void 0;try{n.text="string"===typeof p.responseText?p.responseText:null}catch(s){}try{n.binary=p.response}catch(F){}try{g=p.statusText}catch(oa){g=""}!b&&c.isLocal&&!c.crossDomain?b=n.text?200:404:1223===b&&(b=204);l(b,g,n,h)}}catch(va){alert(va),l(-1,va)}};j()},abort:function(){}}}))})(jQuery);
(function(c,m,j,h){function l(j,l){function b(b){c(f).each(function(){self.Jmol&&(0<=l.indexOf("mouseup")||0<=l.indexOf("touchend"))&&Jmol._setMouseOwner(null);var f=c(this);this!==b.target&&!f.has(b.target).length&&f.triggerHandler(l,[b.target,b])})}l=l||j+h;var f=c(),g=j+"."+l+"-special-event";c.event.special[l]={setup:function(){f=f.add(this);1===f.length&&c(m).bind(g,b)},teardown:function(){self.Jmol&&Jmol._setMouseOwner(null);f=f.not(this);0===f.length&&c(m).unbind(g)},add:function(b){var c=
b.handler;b.handler=function(b,f){b.target=f;c.apply(this,arguments)}}}}c.map(j.split(" "),function(c){l(c)});l("focusin","focus"+h);l("focusout","blur"+h)})(jQuery,document,"click mousemove mouseup touchmove touchend","outjsmol");"undefined"==typeof jQuery&&alert("Note -- JSmoljQuery is required for JSmol, but it's not defined.");
self.Jmol||(Jmol=function(c){var m=9E3,j=0==c.location.href.indexOf("https")?"https":"http";return{_version:"JSmol 13.3.9 11/23/2013 10:51:10 PM",_alertNoBinary:!0,_tracker:"http://chemapps.stolaf.edu/jmol/JmolTracker.htm?id=UA-45940799-1",_isLocal:0==c.location.protocol.toLowerCase().indexOf("file:"),_allowedJmolSize:[25,2048,300],_jarFile:null,_j2sPath:null,_use:null,_j2sLoadMonitorOpacity:55,_applets:{},_asynchronous:!0,_ajaxQueue:[],_ajaxTestSite:j+"://google.com",_z:{header:m,main:m++,image:m++,
top:m++,dialog:m++,menu:m+1E3,fileOpener:m+1001,coverImage:m+2E3},_debugCode:!0,db:{_databasePrefixes:"$=:",_fileLoadScript:";if (_loadScript = '' && defaultLoadScript == '' && _filetype == 'Pdb') { select protein or nucleic;cartoons Only;color structure; select * };",_nciLoadScript:";n = ({molecule=1}.length < {molecule=2}.length ? 2 : 1); select molecule=n;display selected;center selected;",_pubChemLoadScript:"",_DirectDatabaseCalls:{"cactus.nci.nih.gov":"%URL","www.rcsb.org":"%URL","pubchem.ncbi.nlm.nih.gov":"%URL",
$:"http://cactus.nci.nih.gov/chemical/structure/%FILE/file?format=sdf&get3d=True",$$:"http://cactus.nci.nih.gov/chemical/structure/%FILE/file?format=sdf","=":"http://www.rcsb.org/pdb/files/%FILE.pdb","==":"http://www.rcsb.org/pdb/files/ligand/%FILE.cif",":":"http://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/%FILE/SDF?record_type=3d"},_restQueryUrl:"http://www.rcsb.org/pdb/rest/search",_restQueryXml:"<orgPdbQuery><queryType>org.pdb.query.simple.AdvancedKeywordQuery</queryType><description>Text Search</description><keywords>QUERY</keywords></orgPdbQuery>",
_restReportUrl:"http://www.pdb.org/pdb/rest/customReport?pdbids=IDLIST&customReportColumns=structureId,structureTitle"},_debugAlert:!1,_document:c,_execLog:"",_execStack:[],_isMsie:0<=navigator.userAgent.toLowerCase().indexOf("msie"),_isXHTML:!1,_lastAppletID:null,_mousePageX:null,_mouseOwner:null,_serverUrl:"http://your.server.here/jsmol.php",_syncId:(""+Math.random()).substring(3),_touching:!1,_XhtmlElement:null,_XhtmlAppendChild:!1}}(document));
(function(c,m){c.$=function(b,c){return m(c?"#"+b._id+"_"+c:b)};c._$=function(b){return"string"==typeof b?m("#"+b):b};c.$ajax=function(b){c._ajaxCall=b.url;b.cache="NO"!=b.cache;return m.ajax(b)};c.$appEvent=function(b,f,g,j){b=c.$(b,f);b.off(g)&&j&&b.on(g,j)};c.$after=function(b,c){return m(b).after(c)};c.$bind=function(b,c,g){return g?m(b).bind(c,g):m(b).unbind(c)};c.$get=function(b,c){return m(b).get(c)};c.$attr=function(b,f,g){return c._$(b).attr(f,g)};c.$css=function(b,f){return c._$(b).css(f)};
c.$focus=function(b){return c._$(b).focus()};c.$getAncestorDiv=function(b,c){return m("div."+c+":has(#"+b+")")[0]};c.$html=function(b,f){return c._$(b).html(f)};c.$offset=function(b){return c._$(b).offset()};c.$documentOff=function(b,c){return m(document).off(b,"#"+c)};c.$documentOn=function(b,c,g){return m(document).on(b,"#"+c,g)};c.$windowOn=function(b,c){return m(window).on(b,c)};c.$prop=function(b,f,g){var j=c._$(b);return 3==arguments.length?j.prop(f,g):j.prop(f)};c.$remove=function(b){return c._$(b).remove()};
c.$resize=function(b){return m(window).resize(b)};c.$scrollTo=function(b,f){var g=c._$(b);return g.scrollTop(0>f?g[0].scrollHeight:f)};c.$setSize=function(b,f,g){return c._$(b).width(f).height(g)};c.$setVisible=function(b,f){var g=c._$(b);return f?g.show():g.hide()};c.$submit=function(b){return c._$(b).submit()};c.$supportsIECrossDomainScripting=function(){return m.support.iecors};c.$val=function(b,f){var g=c._$(b);return 1==arguments.length?g.val():g.val(f)};c._clearVars=function(){delete jQuery;
delete m;delete c;self.Clazz&&(delete J,delete JU,delete JSV,delete JZ,delete java,delete Clazz,delete ClassLoader,delete ClassLoaderProgressMonitor,delete JavaObject,delete c$,delete $_A,delete $_AB,delete $_AC,delete $_AD,delete $_AF,delete $_AI,delete $_AL,delete $_AS,delete $_Ab,delete $_B,delete $_C,delete $_D,delete $_E,delete $_F,delete $_G,delete $_H,delete $_I,delete $_J,delete $_K,delete $_L,delete $_M,delete $_N,delete $_O,delete $_P,delete $_Q,delete $_R,delete $_S,delete $_T,delete $_U,
delete $_V,delete $_W,delete $_X,delete $_Y,delete $_Z,delete $_k,delete $_s,delete $t$)};var j=document,h=window,l={};l.ua=navigator.userAgent.toLowerCase();var p;a:{p=["linux","unix","mac","win"];for(var s=p.length;s--;)if(-1!=l.ua.indexOf(p[s])){p=p[s];break a}p="unknown"}l.os=p;l.browser=function(){for(var b=l.ua,c="konqueror webkit omniweb opera webtv icab msie mozilla".split(" "),g=0;g<c.length;g++)if(0<=b.indexOf(c[g]))return c[g];return"unknown"};l.browserName=l.browser();l.browserVersion=
parseFloat(l.ua.substring(l.ua.indexOf(l.browserName)+l.browserName.length+1));l.supportsXhr2=function(){return m.support.cors||m.support.iecors};l.allowDestroy="msie"!=l.browserName;l.allowHTML5="msie"!=l.browserName||0>navigator.appVersion.indexOf("MSIE 8");l.getDefaultLanguage=function(){return navigator.language||navigator.userLanguage||"en-US"};l._webGLtest=0;l.supportsWebGL=function(){if(!c.featureDetection._webGLtest){var b;c.featureDetection._webGLtest=h.WebGLRenderingContext&&((b=j.createElement("canvas")).getContext("webgl")||
b.getContext("experimental-webgl"))?1:-1}return 0<c.featureDetection._webGLtest};l.supportsLocalization=function(){for(var b=j.getElementsByTagName("meta"),c=b.length;0<=--c;)if(0<=b[c].outerHTML.toLowerCase().indexOf("utf-8"))return!0;return!1};l.supportsJava=function(){if(!c.featureDetection._javaEnabled){if(c._isMsie)return!0;c.featureDetection._javaEnabled=navigator.javaEnabled()?1:-1}return 0<c.featureDetection._javaEnabled};l.compliantBrowser=function(){var b=!!j.getElementById,c=l.os;if("opera"==
l.browserName&&7.54>=l.browserVersion&&"mac"==c||"webkit"==l.browserName&&125.12>l.browserVersion||"msie"==l.browserName&&"mac"==c||"konqueror"==l.browserName&&3.3>=l.browserVersion)b=!1;return b};l.isFullyCompliant=function(){return l.compliantBrowser()&&l.supportsJava()};l.useIEObject="win"==l.os&&"msie"==l.browserName&&5.5<=l.browserVersion;l.useHtml4Object="mozilla"==l.browserName&&5<=l.browserVersion||"opera"==l.browserName&&8<=l.browserVersion||"webkit"==l.browserName;l.hasFileReader=h.File&&
h.FileReader;c.featureDetection=l;c._ajax=function(b){if(!b.async)return c.$ajax(b).responseText;c._ajaxQueue.push(b);1==c._ajaxQueue.length&&c._ajaxDone()};c._ajaxDone=function(){var b=c._ajaxQueue.shift();b&&c.$ajax(b)};c._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"],["=","RCSB(macromolecules)"]];c._getGrabberOptions=function(b){if(0==c._grabberOptions.length)return"";var f='<input type="text" id="ID_query" onkeypress="if(13==event.which){Jmol._applets[\'ID\']._search();return false}" size="32" value="" />',
g='<button id="ID_submit" onclick="Jmol._applets[\'ID\']._search()">Search</button></nobr>';1==c._grabberOptions.length?(f="<nobr>"+f+'<span style="display:none">',g="</span>"+g):f+="<br /><nobr>";for(var f=f+'<select id="ID_select">',j=0;j<c._grabberOptions.length;j++)var h=c._grabberOptions[j],f=f+('<option value="'+h[0]+'" '+(0==j?"selected":"")+">"+h[1]+"</option>");f=(f+"</select>"+g).replace(/ID/g,b._id);return"<br />"+f};c._getScriptForDatabase=function(b){return"$"==b?c.db._nciLoadScript:
":"==b?c.db._pubChemLoadScript:c.db._fileLoadScript};c._setInfo=function(b,c,g){var j=[],h="";if(0==g.indexOf("ERROR"))h=g;else switch(c){case "=":c=g.split("<dimStructure.structureId>");j=["<table>"];for(g=1;g<c.length;g++)j.push('<tr><td valign=top><a href="javascript:Jmol.search('+b._id+",'="+c[g].substring(0,4)+"')\">"+c[g].substring(0,4)+"</a></td>"),j.push("<td>"+c[g].split("Title>")[1].split("</")[0]+"</td></tr>");j.push("</table>");h=c.length-1+" matches";break;case "$":case ":":break;default:return}b._infoHeader=
h;b._info=j.join("");b._showInfo(!0)};c._loadSuccess=function(b,f){f&&(c._ajaxDone(),f(b))};c._loadError=function(b){c._ajaxDone();c.say("Error connecting to server: "+c._ajaxCall);null!=b&&b()};c._isDatabaseCall=function(b){return 0<=c.db._databasePrefixes.indexOf(b.substring(0,1))};c._getDirectDatabaseCall=function(b,f){if(f&&!c.featureDetection.supportsXhr2())return b;var g=2,j,h=c.db._DirectDatabaseCalls[b.substring(0,g)];h||(h=c.db._DirectDatabaseCalls[j=b.substring(0,--g)]);h&&":"==j&&(j=b.toLowerCase(),
isNaN(parseInt(b.substring(1)))?0==j.indexOf(":smiles:")?(h+="?POST?smiles="+b.substring(8),b=":smiles"):0==j.indexOf(":cid:")?b=":cid/"+b.substring(5):(0==j.indexOf(":name:")?b=b.substring(5):0==j.indexOf(":cas:")&&(b=b.substring(4)),b=":name/"+encodeURIComponent(b.substring(1))):b=":cid/"+b.substring(1));return b=h?h.replace(/\%FILE/,b.substring(g)):b};c._getRawDataFromServer=function(b,f,g,j,h,l){b="?call=getRawDataFromDatabase&database="+b+(0<=f.indexOf("?POST?")?"?POST?":"")+"&query="+encodeURIComponent(f)+
(h?"&encoding=base64":"")+(l?"":"&script="+encodeURIComponent(c._getScriptForDatabase(b)));return c._contactServer(b,g,j)};c._getInfoFromDatabase=function(b,f,g){if("===="==f){var j=c.db._restQueryXml.replace(/QUERY/,g),j={dataType:"text",type:"POST",contentType:"application/x-www-form-urlencoded",url:c.db._restQueryUrl,data:encodeURIComponent(j)+"&req=browser",success:function(j){c._ajaxDone();c._extractInfoFromRCSB(b,f,g,j)},error:function(){c._loadError(null)},async:c._asynchronous};return c._ajax(j)}g=
"?call=getInfoFromDatabase&database="+f+"&query="+encodeURIComponent(g);return c._contactServer(g,function(g){c._setInfo(b,f,g)})};c._extractInfoFromRCSB=function(b,f,g,j){var h=j.length/5;if(0!=h&&4==g.length&&1!=h){g=g.toUpperCase();var l=j.indexOf(g);0<l&&0<="123456789".indexOf(g.substring(0,1))&&(j=g+","+j.substring(0,l)+j.substring(l+5));50<h&&(j=j.substring(0,250));j=j.replace(/\n/g,",");j=c._restReportUrl.replace(/IDLIST/,j);c._loadFileData(b,j,function(g){c._setInfo(b,f,g)})}};c._loadFileData=
function(b,f,g,j){if(c._isDatabaseCall(f)&&(c._setQueryTerm(b,f),f=c._getDirectDatabaseCall(f,!0),c._isDatabaseCall(f))){f=c._getDirectDatabaseCall(f,!1);c._getRawDataFromServer("_",f,g,j);return}b={type:"GET",dataType:"text",url:f,async:c._asynchronous,success:function(b){c._loadSuccess(b,g)},error:function(){c._loadError(j)}};c._checkAjaxPost(b);c._ajax(b)};c._checkAjaxPost=function(b){var c=b.url.indexOf("?POST?");0<c&&(b.data=b.url.substring(c+6),b.url=b.url.substring(0,c),b.type="POST",b.contentType=
"application/x-www-form-urlencoded")};c._contactServer=function(b,f,g){b={dataType:"text",type:"GET",url:c._serverUrl+b,success:function(b){c._loadSuccess(b,f)},error:function(){c._loadError(g)},async:f?c._asynchronous:!1};c._checkAjaxPost(b);return c._ajax(b)};c._setQueryTerm=function(b,f){if(f&&b._hasOptions&&"http://"!=f.substring(0,7)){if(c._isDatabaseCall(f)){var g=f.substring(0,1);f=f.substring(1);f.substring(0,1)==g&&0<="=$".indexOf(g)&&(f=f.substring(1));var j=c._getElement(b,"select");if(j&&
j.options)for(var h=0;h<j.options.length;h++)j[h].value==g&&(j[h].selected=!0)}c._getElement(b,"query").value=f}};c._search=function(b,f,g){1<arguments.length||(f=null);c._setQueryTerm(b,f);f||(f=c._getElement(b,"query").value);if(0==f.indexOf("!"))b._script(f.substring(1));else{f&&(f=f.replace(/\"/g,""));b._showInfo(!1);var j;c._isDatabaseCall(f)?(j=f.substring(0,1),f=f.substring(1)):j=b._hasOptions?c._getElement(b,"select").value:"$";"="==j&&3==f.length&&(f="="+f);var h=j+f;f&&!(0>h.indexOf("?")&&
h==b._thisJmolModel)&&(b._thisJmolModel=h,"$"==j||":"==j?b._jmolFileType="MOL":"="==j&&(b._jmolFileType="PDB"),b._searchDatabase(f,j,g))}};c._searchDatabase=function(b,f,g,j){b._showInfo(!1);return 0<=f.indexOf("?")?(c._getInfoFromDatabase(b,g,f.split("?")[0]),!0):c.db._DirectDatabaseCalls[g]?(b._loadFile(g+f,j),!0):!1};c._syncBinaryOK="?";c._canSyncBinary=function(){if(self.VBArray)return c._syncBinaryOK=!1;if("?"!=c._syncBinaryOK)return c._syncBinaryOK;c._syncBinaryOK=!0;try{var b=new window.XMLHttpRequest;
b.open("text",c._ajaxTestSite,!1);b.hasOwnProperty("responseType")?b.responseType="arraybuffer":b.overrideMimeType&&b.overrideMimeType("text/plain; charset=x-user-defined")}catch(f){return System.out.println("JmolCore.js: synchronous binary file transfer is requested but not available"),c._alertNoBinary&&alert("JmolCore.js: synchronous binary file transfer is requested but not available"),c._syncBinaryOK=!1}return!0};c._binaryTypes=".gz .jpg .png .zip .jmol .bin .smol .spartan .mrc .pse .map .omap".split(" ");
c._isBinaryUrl=function(b){for(var f=c._binaryTypes.length;0<=--f;)if(0<=b.indexOf(c._binaryTypes[f]))return!0;return!1};c._getFileData=function(b){var f=c._isBinaryUrl(b)?"binary":"text",g="binary"==f&&!c._canSyncBinary();g&&(0<=b.indexOf("pdb.gz")&&0==b.indexOf("http://www.rcsb.org/pdb/files/"))&&(b=b.replace(/pdb\.gz/,"pdb"),g=!1,f="text");var j=0<=b.indexOf("?POST?");0==b.indexOf("file:/")&&0!=b.indexOf("file:///")&&(b="file://"+b.substring(5));var h=0>b.indexOf("://")||0==b.indexOf(document.location.protocol)&&
0<=b.indexOf(document.location.host),l=c._isDirectCall(b);if(!h&&c.$supportsIECrossDomainScripting()||g||!h&&!l)return c._getRawDataFromServer("_",b,null,null,g,!0);b=b.replace(/file:\/\/\/\//,"file://");f={dataType:f,async:!1};j?(f.type="POST",f.url=b.split("?POST?")[0],f.data=b.split("?POST?")[1]):(f.type="GET",f.url=b);b=c.$ajax(f);return!b.responseText||self.Clazz&&Clazz.instanceOf(b.response,self.ArrayBuffer)?b.response:b.responseText};c._isDirectCall=function(b){for(var f in c.db._DirectDatabaseCalls)if(0<=
f.indexOf(".")&&0<=b.indexOf(f))return!0;return!1};c._cleanFileData=function(b){return 0<=b.indexOf("\r")&&0<=b.indexOf("\n")?b.replace(/\r\n/g,"\n"):0<=b.indexOf("\r")?b.replace(/\r/g,"\n"):b};c._getFileType=function(b){var c=b.substring(0,1);if("$"==c||":"==c)return"MOL";if("="==c)return"="==b.substring(1,2)?"LCIF":"PDB";b=b.split(".").pop().toUpperCase();return b.substring(0,Math.min(b.length,3))};c._scriptLoad=function(b,c,g,j){var h=b._isJava||!b._noscript||1<g.length;h&&b._script("zap;set echo middle center;echo Retrieving data...");
if(!j)return!1;h?b._script('load "'+c+'"'+g):b._applet.viewer.openFile(c);b._checkDeferred("");return!0};c._loadFileAsynchronously=function(b,f){if(!c.featureDetection.hasFileReader)return b.setData("Local file reading is not enabled in your browser");f._localReader||(c.$after("#"+f._id+"_appletdiv",('<div id="ID" style="z-index:'+c._z.fileOpener+';position:absolute;background:#E0E0E0;left:10px;top:10px"><div style="margin:5px 5px 5px 5px;"><input type="file" id="ID_files" /><button id="ID_loadfile">load</button><button id="ID_cancel">cancel</button></div><div>').replace(/ID/g,
f._id+"_localReader")),f._localReader=c.$(f,"localReader"));c.$appEvent(f,"localReader_loadfile","click");c.$appEvent(f,"localReader_loadfile","click",function(){var g=c.$(f,"localReader_files")[0].files[0],j=new FileReader;j.onloadend=function(j){j.target.readyState==FileReader.DONE&&(c.$css(c.$(f,"localReader"),{display:"none"}),b.setData(g.name,c._toBytes(j.target.result)))};j.readAsArrayBuffer(g)});c.$appEvent(f,"localReader_cancel","click");c.$appEvent(f,"localReader_cancel","click",function(){c.$css(c.$(f,
"localReader"),{display:"none"});b.setData(null,"#CANCELED#")});c.$css(c.$(f,"localReader"),{display:"block"})};c._toBytes=function(b){b=new Uint8Array(b);for(var c=Clazz.newByteArray(b.length,0),g=b.length;0<=--g;)c[g]=b[g];return c};c._doAjax=function(b,f,g){b=b.toString();if(null!=g)return c._saveFile(b,g);f&&(b+="?POST?"+f);f=c._getFileData(b);return c._processData(f,c._isBinaryUrl(b))};c._saveFile=function(b,f){var g=c._serverUrl;if(c._localFileSaveFunction&&c._localFileSaveFunction(b,f))return"OK";
if(!g)return"Jmol._serverUrl is not defined";var j="string"==typeof f,h=j?"":"base64";j||(f=(JU?JU:J.util).Base64.getBase64(f).toString());b=b.substring(b.lastIndexOf("/")+1);j=0<=b.indexOf(".png")?"image/png":0<=b.indexOf(".jpg")?"image/jpg":"";c._formdiv||(c.$after("body",'<div id="__jsmolformdiv__" style="display:none">          <form id="__jsmolform__" method="post" target="_blank" action="">          <input name="call" value="saveFile"/>          <input id="__jsmolmimetype__" name="mimetype" value=""/>          <input id="__jsmolencoding__" name="encoding" value=""/>          <input id="__jsmolfilename__" name="filename" value=""/>          <textarea id="__jsmoldata__" name="data"></textarea>          </form>          </div>'),
c._formdiv="__jsmolform__");c.$attr(c._formdiv,"action",g+"?"+(new Date).getMilliseconds());c.$val("__jsmoldata__",f);c.$val("__jsmolfilename__",b);c.$val("__jsmolmimetype__",j);c.$val("__jsmolencoding__",h);c.$submit("__jsmolform__");c.$val("__jsmoldata__","");c.$val("__jsmolfilename__","");return"OK"};c._processData=function(b,f){"undefined"==typeof b&&(b="",f=!1);f&&(f=c._canSyncBinary());if(!f)return self.JU&&JU.SB?JU.SB.newS(b):J.util.SB.newS(b);var g;if(Clazz.instanceOf(b,self.ArrayBuffer))return c._toBytes(b);
g=Clazz.newByteArray(b.length,0);for(var j=b.length;0<=--j;)g[j]=b.charCodeAt(j)&255;return g};c._setConsoleDiv=function(b){self.Clazz&&Clazz.setConsoleDiv(b)};c._setJmolParams=function(b,f,g){for(var j in f)if(0<=";progressbar;progresscolor;boxbgcolor;boxfgcolor;allowjavascript;boxmessage;                  ;messagecallback;pickcallback;animframecallback;appletreadycallback;atommovedcallback;                  ;echocallback;evalcallback;hovercallback;language;loadstructcallback;measurecallback;                  ;minimizationcallback;resizecallback;scriptcallback;statusform;statustext;statustextarea;                  ;synccallback;usecommandthread;syncid;appletid;startupscript;".indexOf(";"+
j.toLowerCase()+";")&&("language"!=j||c.featureDetection.supportsLocalization()))g?b.put(j,!0===f[j]?Boolean.TRUE:!1===f[j]?Boolean.FALSE:f[j]):b[j]=f[j]};c._registerApplet=function(b,f){return window[b]=c._applets[b]=c._applets[f]=f};c._readyCallback=function(b,f,g,j){b=b.split("_object")[0];g=g.booleanValue?g.booleanValue():g;c._track(c._applets[b])._readyCallback(b,f,g,j)};c._getWrapper=function(b,f){var g;if(f){var j="";b._coverImage&&(g=' onclick="Jmol.coverApplet(ID, false)" title="'+b._coverTitle+
'"',j='<div id="ID_coverdiv" style="background-color:red;z-index:'+c._z.coverImage+';width:100%;height:100%;display:inline;position:absolute;top:0px;left:0px"><image id="ID_coverimage" src="'+b._coverImage+'" style="width:100%;height:100%"'+g+"/>"+('<image id="ID_coverclickgo" src="'+b._j2sPath+'/img/play_make_live.jpg" style="width:25px;height:25px;position:absolute;bottom:10px;left:10px;z-index:'+c._z.coverImage+';opacity:0.5;"'+g+" />")+"</div>");g='...<div id="ID_appletinfotablediv" style="width:Wpx;height:Hpx;position:relative;font-size:14px;text-align:left">IMG......<div id="ID_appletdiv" style="z-index:'+
c._z.header+';width:100%;height:100%;position:absolute;top:0px;left:0px;">';var h=b._height,l=b._width;if("string"!==typeof h||0>h.indexOf("%"))h+="px";if("string"!==typeof l||0>l.indexOf("%"))l+="px";g=g.replace(/IMG/,j).replace(/Hpx/g,h).replace(/Wpx/g,l)}else g='......</div>......<div id="ID_2dappletdiv" style="position:absolute;width:100%;height:100%;overflow:hidden;display:none"></div>......<div id="ID_infotablediv" style="width:100%;height:100%;position:absolute;top:0px;left:0px">.........<div id="ID_infoheaderdiv" style="height:20px;width:100%;background:yellow;display:none"><span id="ID_infoheaderspan"></span><span id="ID_infocheckboxspan" style="position:absolute;text-align:right;right:1px;"><a href="javascript:Jmol.showInfo(ID,false)">[x]</a></span></div>.........<div id="ID_infodiv" style="position:absolute;top:20px;bottom:0px;width:100%;height:100%;overflow:auto"></div>......</div>...</div>';
return g.replace(/\.\.\./g,"").replace(/[\n\r]/g,"").replace(/ID/g,b._id)};c._documentWrite=function(b){if(c._document){if(c._isXHTML&&!c._XhtmlElement){var f=document.getElementsByTagName("script");c._XhtmlElement=f.item(f.length-1);c._XhtmlAppendChild=!1}c._XhtmlElement?c._domWrite(b):c._document.write(b)}return b};c._domWrite=function(b){for(var f=[0];f[0]<b.length;){var g=c._getDomElement(b,f);if(!g)break;c._XhtmlAppendChild?c._XhtmlElement.appendChild(g):c._XhtmlElement.parentNode.insertBefore(g,
_jmol.XhtmlElement)}};c._getDomElement=function(b,c){var g=document.createElement("span");g.innerHTML=b;c[0]=b.length;return g};c._setObject=function(b,f,g){b._id=f;b.__Info={};for(var j in g)b.__Info[j]=g[j];b._width=g.width;b._height=g.height;b._noscript=!b._isJava&&g.noscript;b._console=g.console;b._console||(b._console=b._id+"_infodiv");"none"==b._console&&(b._console=null);b._color=g.color?g.color.replace(/0x/,"#"):"#FFFFFF";b._disableInitialConsole=g.disableInitialConsole;b._noMonitor=g.disableJ2SLoadMonitor;
c._j2sPath&&(g.j2sPath=c._j2sPath);b._j2sPath=g.j2sPath;b._deferApplet=g.deferApplet;b._deferUncover=g.deferUncover;b._coverImage=!b._isJava&&g.coverImage;b._isCovered=!!b._coverImage;b._coverScript=g.coverScript;b._coverTitle=g.coverTitle;b._coverTitle||(b._coverTitle=b._deferApplet?"activate 3D model":"3D model is loading...");b._containerWidth=b._width+(b._width==parseFloat(b._width)?"px":"");b._containerHeight=b._height+(b._height==parseFloat(b._height)?"px":"");b._info="";b._infoHeader=b._jmolType+
' "'+b._id+'"';b._hasOptions=g.addSelectionOptions;b._defaultModel=g.defaultModel;b._readyScript=g.script?g.script:"";b._readyFunction=g.readyFunction;b._coverImage&&!b._deferApplet&&(b._readyScript+=";javascript "+f+"._displayCoverImage(false)");b._src=g.src};c._addDefaultInfo=function(b,f){for(var g in f)"undefined"==typeof b[g]&&(b[g]=f[g]);c._use&&(b.use=c._use);"SIGNED"==b.use&&(0>b.jarFile.indexOf("Signed")&&(b.jarFile=b.jarFile.replace(/Applet/,"AppletSigned")),b.use="JAVA",b.isSigned=!0)};
c._syncedApplets=[];c._syncedCommands=[];c._syncedReady=[];c._syncReady=!1;c._isJmolJSVSync=!1;c._setReady=function(b){c._syncedReady[b]=1;for(var f=0,g=0;g<c._syncedApplets.length;g++){if(c._syncedApplets[g]==b._id)c._syncedApplets[g]=b,c._syncedReady[g]=1;else if(!c._syncedReady[g])continue;f++}f==c._syncedApplets.length&&c._setSyncReady()};c._setDestroy=function(b){c.featureDetection.allowDestroy&&c.$windowOn("beforeunload",function(){c._destroy(b)})};c._destroy=function(b){try{b._applet&&b._applet.destroy();
b._applet=null;c._unsetMouse(b._canvas);b._canvas=null;for(var f=0,g=0;g<c._syncedApplets.length;g++)c._syncedApplets[g]==b&&(c._syncedApplets[g]=null),c._syncedApplets[g]&&f++;0<f||c._clearVars()}catch(j){}};c._setSyncReady=function(){c._syncReady=!0;for(var b="",f=0;f<c._syncedApplets.length;f++)c._syncedCommands[f]&&(b+="Jmol.script(Jmol._syncedApplets["+f+"], Jmol._syncedCommands["+f+"]);");setTimeout(b,50)};c._mySyncCallback=function(b,f){if(!c._syncReady||!c._isJmolJSVSync)return 1;for(var g=
0;g<c._syncedApplets.length;g++)0<=f.indexOf(c._syncedApplets[g]._syncKeyword)&&c._syncedApplets[g]._syncScript(f);return 0};c._getElement=function(b,c){return document.getElementById(b._id+"_"+c)||{}};c._evalJSON=function(b,c){b+="";if(!b)return[];if("{"!=b.charAt(0))return 0<=b.indexOf(" | ")&&(b=b.replace(/\ \|\ /g,"\n")),b;var g=(new Function("return "+b))();return!g?null:c&&void 0!=g[c]?g[c]:g};c._sortMessages=function(b){function c(b,f){return b[0]<f[0]?1:b[0]>f[0]?-1:0}if(!b||"object"!=typeof b)return[];
for(var g=[],j=b.length-1;0<=j;j--)for(var h=0,l=b[j].length;h<l;h++)g[g.length]=b[j][h];if(0!=g.length)return g=g.sort(c)};c._setMouseOwner=function(b,f){null==b||f?c._mouseOwner=b:c._mouseOwner==b&&(c._mouseOwner=null)};c._jsGetMouseModifiers=function(b){var c=0;switch(b.button){case 0:c=16;break;case 1:c=8;break;case 2:c=4}b.shiftKey&&(c+=1);b.altKey&&(c+=8);b.ctrlKey&&(c+=2);return c};c._jsGetXY=function(b,f){if(!b.applet._ready||c._touching&&0>f.type.indexOf("touch"))return!1;f.preventDefault();
var g=c.$offset(b.id),j,h=f.originalEvent;c._mousePageX=f.pageX;c._mousePageY=f.pageY;h.targetTouches&&h.targetTouches[0]?(j=h.targetTouches[0].pageX-g.left,g=h.targetTouches[0].pageY-g.top):h.changedTouches?(j=h.changedTouches[0].pageX-g.left,g=h.changedTouches[0].pageY-g.top):(j=f.pageX-g.left,g=f.pageY-g.top);return void 0==j?null:[Math.round(j),Math.round(g),c._jsGetMouseModifiers(f)]};c._gestureUpdate=function(b,f){f.stopPropagation();f.preventDefault();var g=f.originalEvent;switch(f.type){case "touchstart":c._touching=
!0;break;case "touchend":c._touching=!1}if(!g.touches||2!=g.touches.length)return!1;switch(f.type){case "touchstart":b._touches=[[],[]];break;case "touchmove":var j=c.$offset(b.id),h=b._touches[0],l=b._touches[1];h.push([g.touches[0].pageX-j.left,g.touches[0].pageY-j.top]);l.push([g.touches[1].pageX-j.left,g.touches[1].pageY-j.top]);g=h.length;3<g&&(h.shift(),l.shift());2<=g&&b.applet._processGesture(b._touches)}return!0};c._jsSetMouse=function(b){c.$bind(b,"mousedown touchstart",function(f){c._setMouseOwner(b,
!0);f.stopPropagation();f.preventDefault();b.isDragging=!0;if("touchstart"==f.type&&c._gestureUpdate(b,f))return!1;c._setConsoleDiv(b.applet._console);var g=c._jsGetXY(b,f);if(!g)return!1;2!=f.button&&b.applet._popups&&c.Menu.hidePopups(b.applet._popups);b.applet._processEvent(501,g);return!1});c.$bind(b,"mouseup touchend",function(f){c._setMouseOwner(null);f.stopPropagation();f.preventDefault();b.isDragging=!1;if("touchend"==f.type&&c._gestureUpdate(b,f))return!1;f=c._jsGetXY(b,f);if(!f)return!1;
b.applet._processEvent(502,f);return!1});c.$bind(b,"mousemove touchmove",function(f){f.stopPropagation();f.preventDefault();if("touchmove"==f.type&&c._gestureUpdate(b,f))return!1;f=c._jsGetXY(b,f);if(!f)return!1;b.isDragging||(f[2]=0);b.applet._processEvent(b.isDragging?506:503,f);return!1});c.$bind(b,"DOMMouseScroll mousewheel",function(f){f.stopPropagation();f.preventDefault();b.isDragging=!1;var g=f.originalEvent,g=g.detail?g.detail:("mac"==c.featureDetection.os?1:-1)*g.wheelDelta;f=c._jsGetMouseModifiers(f);
b.applet._processEvent(-1,[0>g?-1:1,0,f]);return!1});c.$bind(b,"contextmenu",function(){return!1});c.$bind(b,"mouseout",function(){b.applet._applet&&b.applet._applet.viewer.startHoverWatcher(!1);b.isDragging=!1});c.$bind(b,"mouseenter",function(f){b.applet._applet&&b.applet._applet.viewer.startHoverWatcher(!0);if(0===f.buttons||0===f.which){b.isDragging=!1;f=c._jsGetXY(b,f);if(!f)return!1;b.applet._processEvent(502,f)}});b.applet._is2D&&c.$resize(function(){b.applet&&b.applet._resize()});c.$bind("body",
"mouseup touchend",function(){b.applet&&(b.isDragging=!1);c._setMouseOwner(null)})};c._jsUnsetMouse=function(b){b.applet=null;c.$bind(b,"mousedown touchstart mousemove touchmove mouseup touchend DOMMouseScroll mousewheel contextmenu mouseout mouseenter",null);c._setMouseOwner(null)};c._setDraggable=function(b){b=b.prototype;b.setContainer=function(b){this.container=b;b.obj=this;this.ignoreMouse=this.isDragging=!1;var g=this;b.bind("mousedown touchstart",function(b){if(g.ignoreMouse)return g.ignoreMouse=
!1,!0;c._setMouseOwner(g,!0);g.isDragging=!0;g.pageX=b.pageX;g.pageY=b.pageY;return!1});b.bind("mousemove touchmove",function(b){if(g.isDragging&&c._mouseOwner==g)return g.mouseMove(b),!1});b.bind("mouseup touchend",function(b){g.mouseUp(b);c._setMouseOwner(null)})};b.mouseUp=function(b){if(this.isDragging&&c._mouseOwner==this)return this.pageX0+=b.pageX-this.pageX,this.pageY0+=b.pageY-this.pageY,this.isDragging=!1;c._setMouseOwner(null)};b.setPosition=function(){if(null===c._mousePageX){var b=c.$offset(this.applet._id+
"_"+(this.applet._is2D?"canvas2d":"canvas"));c._mousePageX=b.left;c._mousePageY=b.top}this.pageX0=c._mousePageX;this.pageY0=c._mousePageY;this.container.css({top:c._mousePageY+"px",left:c._mousePageX+"px"})};b.mouseMove=function(b){this.isDragging&&c._mouseOwner==this&&this.container.css({top:this.pageY0+(b.pageY-this.pageY)+"px",left:this.pageX0+(b.pageX-this.pageX)+"px"})};b.dragBind=function(b){this.container.unbind("mousemoveoutjsmol");this.container.unbind("touchmoveoutjsmol");this.container.unbind("mouseupoutjsmol");
this.container.unbind("touchendoutjsmol");c._setMouseOwner(null);if(b){var g=this;this.container.bind("mousemoveoutjsmol touchmoveoutjsmol",function(b,c,f){g.mouseMove(f)});this.container.bind("mouseupoutjsmol touchendoutjsmol",function(b,c,f){g.mouseUp(f)})}}};c.Dialog={count:0,htDialogs:{}};SwingController=c.Dialog;c.Dialog.JSDialog=function(){};c._setDraggable(c.Dialog.JSDialog);c.Dialog.getScreenDimensions=function(b){b.width=m(window).width();b.height=m(window).height()};c.Dialog.dispose=function(b){c.$remove(b.id+
"_mover");delete c.Dialog.htDialogs[b.id];b.container.obj.dragBind(!1);System.out.println("JmolCore.js: dispose "+b.id)};c.Dialog.register=function(b,f){b.id=f+ ++c.Dialog.count;c.Dialog.htDialogs[b.id]=b;System.out.println("JmolCore.js: register "+b.id)};c.Dialog.setDialog=function(b){c._setMouseOwner(null);c.$remove(b.id);System.out.println("removed "+b.id);var f=b.id+"_mover",g=c.$("#"+f),j;System.out.println("JmolCore.js: setDialog "+b.id);g[0]?(g.html(b.html),j=g[0].jd):(c.$after("body","<div id='"+
f+"' style='position:absolute;left:0px;top:0px;'>"+b.html+"</div>"),j=new c.Dialog.JSDialog,g=c.$("#"+f),b.container=g,j.applet=b.manager.viewer.applet,j.setContainer(g),j.dialog=b,j.setPosition(),j.dragBind(!0),g[0].jd=j);c.$bind("#"+b.id+" .JButton","mousedown touchstart",function(){j.ignoreMouse=!0});c.$bind("#"+b.id+" .JComboBox","mousedown touchstart",function(){j.ignoreMouse=!0});c.$bind("#"+b.id+" .JCheckBox","mousedown touchstart",function(){j.ignoreMouse=!0});c.$bind("#"+b.id+" .JTextField",
"mousedown touchstart",function(){j.ignoreMouse=!0});c.$bind("#"+b.id+" .JTable","mousedown touchstart",function(){j.ignoreMouse=!0});c.$bind("#"+b.id+" .JScrollPane","mousedown touchstart",function(){j.ignoreMouse=!0});c.$bind("#"+b.id+" .JEditorPane","mousedown touchstart",function(){j.ignoreMouse=!0})};c.Dialog.setSelected=function(b){c.$prop(b.id,"checked",!!b.selected)};c.Dialog.setSelectedIndex=function(b){c.$prop(b.id,"selectedIndex",b.selectedIndex)};c.Dialog.setText=function(b){c.$prop(b.id,
"value",b.text)};c.Dialog.setVisible=function(b){c.$setVisible(b.id,b.visible)};c.Dialog.click=function(b,f){var g=c.Dialog.htDialogs[b.id];if(g){System.out.println("click "+b+" "+g);var j=g.toString();if(0<=j.indexOf("JCheck"))g.selected=b.checked;else if(0<=j.indexOf("JCombo"))g.selectedIndex=b.selectedIndex;else if(null!=g.text&&(g.text=b.value,f&&13!=(f.charCode||f.keyCode)))return}j=c.Dialog.htDialogs[c.$getAncestorDiv(b.id,"JDialog").id];g=g?g.name:j.registryKey+"/"+b.id;System.out.println("JmolCore.js: click "+
g);j.manager.actionPerformed(g)};c.Dialog.windowClosing=function(b){b=c.Dialog.htDialogs[c.$getAncestorDiv(b.id,"JDialog").id];System.out.println("JmolCore.js: windowClosing "+b.registryKey);b.manager.processWindowClosing(b.registryKey)};c._track=function(b){if(c._tracker&&!c._isLocal)try{var f='<iframe style="display:none" width="0" height="0" frameborder="0" tabindex="-1" src="'+(c._tracker+"&applet="+b._jmolType+"&version="+c._version+"&appver="+self.___JmolVersion+"&url="+encodeURIComponent(document.location.href))+
'"></iframe>';c.$after("body",f)}catch(g){}delete c._tracker;return b};c.getProfile=function(){window["j2s.doProfile"]=!0;if(self.Clazz)return Clazz.profile=self.JSON&&{},Clazz.getProfile()}})(Jmol,jQuery);Jmol._debugCode=!1;Jmol._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"]];Jmol.say=function(c){alert(c)};
Jmol._TMApplet=function(c,m,j){this._uniqueId=(""+Math.random()).substring(3);this._id=c;this._is2D=!0;this._isJava=!1;this._ready=!0;this._mouseDown=!1;this._jmolType="Jmol._Canvas2D (TwirlyMol)";if(j)return this;this._createCanvas(c,m);return this};
Jmol._TMApplet._getApplet=function(c,m,j){if(!Jmol.featureDetection.allowHTML5)return null;j||(j=!1);m||(m={});Jmol._addDefaultInfo(m,{color:"#FFFFFF",width:300,height:300,addSelectionOptions:!1,serverURL:"http://your.server.here/jsmol.php",defaultModel:"",readyFunction:null,use:"HTML5",bondWidth:5,shadeAtoms:!1,zoomScaling:1.5,pinchScaling:2,mouseDragFactor:0.5,touchDragFactor:0.15,multipleBondSpacing:4,spinRateX:0,spinRateY:0.5,spinFPS:20,spin:!1,noscript:!0,debug:!1});m=new Jmol._TMApplet(c,m,
j);return j?m:Jmol._registerApplet(c,m)};Jmol.getTMApplet=Jmol._TMApplet._getApplet;
(function(c){c._CPK="#FF1493 #FFFFFF #D9FFFF #CC80FF #C2FF00 #FFB5B5 #909090 #3050F8 #FF0D0D #90E050 #B3E3F5 #AB5CF2 #8AFF00 #BFA6A6 #F0C8A0 #FF8000 #FFFF30 #1FF01F #80D1E3 #8F40D4 #3DFF00 #E6E6E6 #BFC2C7 #A6A6AB #8A99C7 #9C7AC7 #E06633 #F090A0 #50D050 #C88033 #7D80B0 #C28F8F #668F8F #BD80E3 #FFA100 #A62929 #5CB8D1 #702EB0 #00FF00 #94FFFF #94E0E0 #73C2C9 #54B5B5 #3B9E9E #248F8F #0A7D8C #006985 #C0C0C0 #FFD98F #A67573 #668080 #9E63B5 #D47A00 #940094 #429EB0 #57178F #00C900".split(" ");c._elem="X H He Li Be B C N O F Ne Na Mg Al Si P S Cl Ar K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe Cs Ba La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn Fr Ra Ac Th Pa U Np Pu Am Cm Bk Cf Es".split(" ");
c._elemNo={};var m=c.prototype;m.spin=function(c){this.__Info.spin=c;this._spin(c)};m._spin=function(c){this._spinThread&&clearTimeout(this._spinThread);if(0==this.spinFPS||0==this.spinRateX&&0==this.spinRateY)c=!1;if(c){var h=this;c=1E3/this.spinFPS;this._mouseDown||(this._rotate(this.spinRateY,this.spinRateX),this._draw());this._spinThread=setTimeout(function(){h._spin(!0)},c)}};m._initParams=function(){this.zoom=this.__Info.defaultZoom||100;this.doSpin=this.__Info.spin||!1;this.center2D=[this._canvas.width/
2,this._canvas.height/2,0];this._getCenterAndRadius();this.rotation=new c.M3;this.shadeAtoms=!1;this._setParams()};m._setParams=function(){this.bondWidth=this.__Info.bondWidth||5;this.zoomScaling=this.__Info.zoomScaling||1.5;this.pinchScaling=this.__Info.pinchScaling||1;this.mouseDragFactor=this.__Info.mouseDragFactor||0.5;this.touchDragFactor=this.__Info.touchDragFactor||0.15;this.multipleBondSpacing=this.__Info.multipleBondSpacing||4;this.spinRateX=this.__Info.spinRateX||0;this.spinRateY=this.__Info.spinRateY||
0;this.spinFPS=this.__Info.spinFPS||0;var c=this.shadeAtoms;(this.shadeAtoms=this.__Info.shadeAtoms||!1)&&!c&&this._setAtomShades()};m._setAtomShades=function(){if(this.atoms)for(var c=this.atoms.length;0<=--c;)this.atoms[c].color50=this._getColor(this.atoms[c].color,0.5)};m._createCanvas=function(c,h){Jmol._setObject(this,c,h);this._color=this._color.replace(/0x/,"#");var l=Jmol._getWrapper(this,!0);Jmol._document?(Jmol._documentWrite(l),this._createCanvas2d(!1),l=""):l+='<script type="text/javascript">'+
c+"._createCanvas2d(false)\x3c/script>";l+=Jmol._getWrapper(this,!1);h.addSelectionOptions&&(l+=Jmol._getGrabberOptions(this,""));Jmol._debugAlert&&!Jmol._document&&alert(l);this._code=Jmol._documentWrite(l)};m._readyCallback=function(c,h,l,p){l&&(Jmol._setDestroy(this),this._ready=!0,c=this._readyScript,this._applet=p,this._defaultModel?this._search(this._defaultModel,c?";"+c:""):this._src&&this._loadFile(this._src),this._showInfo(!0),this._showInfo(!1),this._readyFunction&&this._readyFunction(this),
Jmol._setReady(this))};m._createCanvas2d=function(c){var h=document.createElement("canvas"),l=Jmol.$(this,"appletdiv");c&&(l[0].removeChild(this._canvas),Jmol._jsUnsetMouse(this._canvas));c=Math.round(l.width());var p=Math.round(l.height());h.applet=this;this._canvas=h;h.style.width="100%";h.style.height="100%";h.width=c;h.height=p;h.id=this._id+"_canvas2d";l.append(h);setTimeout(this._id+"._start()",10)};m._start=function(){Jmol._jsSetMouse(this._canvas);this._defaultModel?Jmol._search(this,this._defaultModel):
this._src&&this._loadFile(this._src);this._showInfo(!0);this._showInfo(!1)};m._search=function(c,h){Jmol._search(this,c,h)};m._searchDatabase=function(c,h,l){this._showInfo(!1);if(0<=c.indexOf("?"))Jmol._getInfoFromDatabase(this,h,c.split("?")[0]);else{var p=h+c;if(Jmol.db._DirectDatabaseCalls[h])this._loadFile(p,l);else{var m=this;Jmol._getRawDataFromServer(h,c,function(b){m._loadModel(b,"")})}}};m._loadModel=function(c){this._spin(!1);"''"==c&&(c=this._mol);c?(this._parse(c),this._initParams(),
this._draw(),this._showInfo(!1),this.doSpin&&this._spin(!0)):alert("No model data.")};m._showInfo=function(c){Jmol.$html(Jmol.$(this,"infoheaderspan"),this._infoHeader);this._info&&Jmol.$html(Jmol.$(this,"infodiv"),this._info);!this._isInfoVisible!=!c&&(this._isInfoVisible=c,Jmol.$setVisible(Jmol.$(this,"infotablediv"),c),Jmol.$setVisible(Jmol.$(this,"infoheaderdiv"),c),this._show(!c))};m._show=function(c){Jmol.$setVisible(Jmol.$(this,"appletdiv"),c);c&&this._draw()};m._resize=function(){var c="__resizeTimeout_"+
this._id;Jmol[c]&&clearTimeout(Jmol[c]);var h=this;Jmol[c]=setTimeout(function(){h._draw();Jmol[c]=null},100)};m._canScript=function(){return!1};m._loadFile=function(c){this._showInfo(!1);this._thisJmolModel=c;var h=this;Jmol._loadFileData(this,c,function(c){h._loadModel(c)})};m._processEvent=function(c,h){switch(c){case 502:case 503:this._mouseDown=!1;default:return;case 501:this._mouseX=h[0];this._mouseY=h[1];this._mouseDown=!0;return;case 506:var l=h[0]-this._mouseX,p=h[1]-this._mouseY,l=0>l?-1:
0<l?1:0,p=0>p?-1:0<p?1:0;switch(h[2]){case 17:this._zoomBy(p);break;case 24:this.center2D[0]+=l;this.center2D[1]+=p;break;default:this._rotate(l,p)}this._mouseX=h[0];this._mouseY=h[1];break;case -1:this._zoomBy(h[1])}this._draw()};m._processGesture=function(j){if(!(2>j[0].length)){var h=j[0],l=j[1],p=h[0],m=h[l.length-1];j=p[0];var b=m[0],p=p[1],m=m[1],f=[b-j,m-p,0],g=c._length(f),q=l[0],n=l[l.length-1],l=q[0],K=n[0],q=q[1],n=n[1],F=[K-l,n-q,0],oa=c._length(F);3>g||3>oa||(c._scale(f,1/g),c._scale(F,
1/oa),f=c._dot(f,F),0.8<f?(j=Math.round(b-h[h.length-2][0]),h=Math.round(m-h[h.length-2][1]),this.center2D[0]+=j,this.center2D[1]+=h):-0.8>f&&(f=[l-j,q-p,0],F=[K-b,n-m,0],h=c._length(F)-c._length(f),this.zoom+=(0>h?-1:1)*this.pinchScaling),this._draw())}};m._zoomBy=function(c){this.zoom+=c*this.zoomScaling;5>this.zoom&&(this.zoom=5);500<this.zoom&&(this.zoom=500)};m._getRotationScaling=function(){return[1/Math.max(this._canvas.width,500)*this.mouseDragFactor*c.deg_per_radian,1/Math.max(this._canvas.height,
500)*this.mouseDragFactor*c.deg_per_radian]};m._rotate=function(j,h){var l=this._getRotationScaling();h&&(c._m3.rotX(h*l[1]),this.rotation.mul(c._m3));j&&(c._m3.rotY(j*l[0]),this.rotation.mul(c._m3))};m._getCenterAndRadius=function(){Math.min(this._canvas.width,this._canvas.height);for(var j=[999999,999999,999999],h=[-999999,-999999,-999999],l=this.atoms.length;0<=--l;)for(var p=3;0<=--p;){var m=this.atoms[l].xyz[p];m<j[p]&&(j[p]=m);m>h[p]&&(h[p]=m)}m=[0,0,0];for(p=3;0<=--p;)m[p]=(h[p]+j[p])/2;j=
0;for(l=this.atoms.length;0<=--l;)h=this.atoms[l],h=c._distance(h.xyz,m)+(1==h.elemNo?1:1.5),h>j&&(j=h);this.center=m;this.modelRadius=0==j?10:j};m._setScreenCoords=function(){for(var c=this.center,h=this.rotation,l=this.center2D,m=Math.min(this._canvas.width,this._canvas.height)/2/this.modelRadius*this.zoom/100,s=this.atoms.length;0<=--s;){var b=this.atoms[s];this._transform(b.xyz,b.sxyz,c,h,m,l);b.srad=m*b.radius}for(s=this.bonds.length;0<=--s;)b=this.bonds[s],this._transform(b.xyz,b.sxyz,c,h,m,
l),this._transform(b.pts[0],b.spts[0],c,h,m,l),this._transform(b.pts[1],b.spts[1],c,h,m,l)};m._transform=function(j,h,l,m,s,b){for(var f=c._temp1,g=c._temp2,q=3;0<=--q;)f[q]=(j[q]-l[q])*s;m.transform(f,g);g[1]=-g[1];g[2]=-g[2];for(q=3;0<=--q;)h[q]=g[q]+b[q]};m._parse=function(c){this._parseSDF(c)};m._parseSDF=function(j){this._mol=j;if(!c._elemNo.H)for(var h=c._elem.length;0<=--h;)c._elemNo[c._elem[h]]=h;j=j.split("\n");var l=3,m=j[l++];this.nAtoms=parseFloat(m.substring(0,3));this.nBonds=parseFloat(m.substring(3,
6));this.atoms=Array(this.nAtoms);this.bonds=Array(this.nBonds);this.elements=Array(this.nAtoms+this.nBonds);for(var s=0,b,f,g,h=0;h<this.nAtoms;h++){m=j[l++];b=parseFloat(m.substring(0,10));f=parseFloat(m.substring(10,20));g=parseFloat(m.substring(20,30));var m=m.substring(31,34).replace(/\s+/g,""),m=c._elemNo[m]||0,q=1==m?0.23:0.35,n=c._CPK[m]||c._CPK[0];this.elements[s++]=this.atoms[h]={type:0,elemNo:m,xyz:[b,f,g],sxyz:[0,0,0],radius:q,color:n,color50:n}}for(h=0;h<this.nBonds;h++){m=j[l++];b=this.atoms[parseFloat(m.substring(0,
3))-1];f=this.atoms[parseFloat(m.substring(3,6))-1];g=Math.abs(parseFloat(m.substring(6,9)));switch(g){case 4:case 5:case 6:case 8:g=1;break;case 7:g=2}m=c._getPointAlong(b.xyz,f.xyz,0.5);n=c._distance(b.xyz,m);q=b.radius<n?c._getPointAlong(b.xyz,m,b.radius/n):[0,0,99999];n=f.radius<n?c._getPointAlong(f.xyz,m,f.radius/n):[0,0,99999];this.elements[s++]=this.bonds[h]={type:1,atoms:[b,f],xyz:m,pts:[q,n],sxyz:[0,0,0],spts:[[0,0,0],[0,0,0]],order:g,color:0}}};m._getColor=function(c,h){"#FFFFFF"==c&&(c=
"#D0D0D0");var l=parseInt("0x"+c.substring(1),16),m=l>>16&255,s=l>>8&255,l=l&255;255!=m&&(m+=Math.floor((255-m)*h));255!=s&&(s+=Math.floor((255-s)*h));255!=l&&(l+=Math.floor((255-l)*h));m="000000"+(m<<16|s<<8|l).toString(16);return"#"+m.substring(m.length-6,m.length)};m._draw=function(){if(this.atoms){this._setParams();this._setScreenCoords();var j=this.elements;j.sort(c._zorder);var h=this._canvas.getContext("2d");h.fillStyle=this._color;h.fillRect(0,0,this._canvas.width,this._canvas.height);for(var l=
j.length;0<=--l;){var m=j[l];0==m.type?this._drawAtom(h,m):this._drawBond(h,m)}}};m._drawAtom=function(j,h){j.beginPath();if(this.shadeAtoms){var l=h.srad/4,l=j.createRadialGradient(h.sxyz[0]-l,h.sxyz[1]-l,l,h.sxyz[0],h.sxyz[1],h.srad);l.addColorStop(0,h.color50);l.addColorStop(1,"#FFFFFF"==h.color?"#D0D0D0":h.color);j.fillStyle=l;j.arc(h.sxyz[0],h.sxyz[1],h.srad,0,c._pi2);j.fill()}else j.fillStyle=h.color,j.arc(h.sxyz[0],h.sxyz[1],h.srad,0,c._pi2),j.fill(),j.strokeStyle="#000000",j.lineWidth=1,j.stroke()};
m._drawBond=function(c,h){99999!=h.pts[0][2]&&this._drawBondLines(c,h,h.spts[0],h.atoms[0].color);99999!=h.pts[1][2]&&this._drawBondLines(c,h,h.spts[1],h.atoms[1].color)};m._drawBondLines=function(j,h,l,m){var s=c._temp;s.width=this.bondWidth;s.color=h.color?h.color:m;if(1==h.order)s.pt1=l,s.pt2=h.sxyz,this._drawLine(j,s);else{s.pt1=c._temp1;s.pt2=c._temp2;s.pta=l;s.ptb=h.sxyz;s.dx=s.ptb[0]-s.pta[0];s.dy=s.ptb[1]-s.pta[1];s.mag2d=Math.round(Math.sqrt(s.dx*s.dx+s.dy*s.dy));s.bondOrder=h.order;for(this._resetAxisCoordinates(s);0<
s.bondOrder;)this._drawLine(j,s),s.bondOrder--,this._stepAxisCoordinates(s)}};m._drawLine=function(c,h){c.beginPath();c.strokeStyle=h.color;c.moveTo(h.pt1[0],h.pt1[1]);c.lineTo(h.pt2[0],h.pt2[1]);c.lineWidth=h.width;c.stroke()};m._resetAxisCoordinates=function(c){var h=c.mag2d>>3;1!=this.multipleBondSpacing&&(h*=this.multipleBondSpacing);h=c.width+h;c.dxStep=Math.round(h*c.dy/c.mag2d);c.dyStep=Math.round(h*-c.dx/c.mag2d);c.pt1[0]=c.pta[0];c.pt1[1]=c.pta[1];c.pt2[0]=c.ptb[0];c.pt2[1]=c.ptb[1];h=c.bondOrder-
1;c.pt1[0]-=Math.round(c.dxStep*h/2);c.pt1[1]-=Math.round(c.dyStep*h/2);c.pt2[0]-=Math.round(c.dxStep*h/2);c.pt2[1]-=Math.round(c.dyStep*h/2)};m._stepAxisCoordinates=function(c){c.pt1[0]+=c.dxStep;c.pt1[1]+=c.dyStep;c.pt2[0]+=c.dxStep;c.pt2[1]+=c.dyStep};c._distance=function(c,h){for(var l=0,m=3;0<=--m;)var s=c[m]-h[m],l=l+s*s;return Math.sqrt(l)};c._dot=function(c,h){for(var l=0,m=3;0<=--m;)l+=c[m]*h[m];return l};c._setPt=function(c,h){for(var l=3;0<=--l;)h[l]=c[l];return h};c._scale=function(c,
h){for(var l=3;0<=--l;)c[l]*=h};c._length=function(c){for(var h=0,l=3;0<=--l;)h+=c[l]*c[l];return Math.sqrt(h)};c._getPointAlong=function(c,h,l){return[(h[0]-c[0])*l+c[0],(h[1]-c[1])*l+c[1],(h[2]-c[2])*l+c[2]]};c._zorder=function(c,h){var l=c.sxyz[2],m=h.sxyz[2];return l<m?-1:l>m?1:0};c.M3=function(){this.m00=1;this.m10=this.m02=this.m01=0;this.m11=1;this.m21=this.m20=this.m12=0;this.m22=1};c.M3.prototype.set=function(c,h,l,m,s,b,f,g,q){this.m00=c;this.m01=h;this.m02=l;this.m10=m;this.m11=s;this.m12=
b;this.m20=f;this.m21=g;this.m22=q};c.M3.prototype.transform=function(c,h){h[0]=this.m00*c[0]+this.m01*c[1]+this.m02*c[2];h[1]=this.m10*c[0]+this.m11*c[1]+this.m12*c[2];h[2]=this.m20*c[0]+this.m21*c[1]+this.m22*c[2]};c.M3.prototype.rotX=function(c){var h=Math.cos(c);c=Math.sin(c);this.m00=1;this.m10=this.m02=this.m01=0;this.m11=h;this.m12=-c;this.m20=0;this.m21=c;this.m22=h};c.M3.prototype.rotY=function(c){var h=Math.cos(c);c=Math.sin(c);this.m00=h;this.m01=0;this.m02=c;this.m10=0;this.m11=1;this.m12=
0;this.m20=-c;this.m21=0;this.m22=h};c.M3.prototype.mul=function(c){this.set(c.m00*this.m00+c.m01*this.m10+c.m02*this.m20,c.m00*this.m01+c.m01*this.m11+c.m02*this.m21,c.m00*this.m02+c.m01*this.m12+c.m02*this.m22,c.m10*this.m00+c.m11*this.m10+c.m12*this.m20,c.m10*this.m01+c.m11*this.m11+c.m12*this.m21,c.m10*this.m02+c.m11*this.m12+c.m12*this.m22,c.m20*this.m00+c.m21*this.m10+c.m22*this.m20,c.m20*this.m01+c.m21*this.m11+c.m22*this.m21,c.m20*this.m02+c.m21*this.m12+c.m22*this.m22)};c._pi2=2*Math.PI;
c.deg_per_radian=180/Math.PI;c._z3=[0,0,0];c._temp1=[0,0,0];c._temp2=[0,0,0];c._temp={};c._m3=new c.M3})(Jmol._TMApplet);
