(function(c,m){"object"===typeof module&&"object"===typeof module.exports?module.exports=c.document?m(c,!0):function(c){if(!c.document)throw Error("jQuery requires a window with a document");return m(c)}:m(c)})("undefined"!==typeof window?window:this,function(c,m){function h(a){var g=a.length,k=d.type(a);return"function"===k||d.isWindow(a)?!1:1===a.nodeType&&g?!0:"array"===k||0===g||"number"===typeof g&&0<g&&g-1 in a}function j(a,g,k){if(d.isFunction(g))return d.grep(a,function(a,d){return!!g.call(a,
d,a)!==k});if(g.nodeType)return d.grep(a,function(a){return a===g!==k});if("string"===typeof g){if(Vc.test(g))return d.filter(g,a,k);g=d.filter(g,a)}return d.grep(a,function(a){return 0<=d.inArray(a,g)!==k})}function l(a,g){do a=a[g];while(a&&1!==a.nodeType);return a}function n(){t.addEventListener?(t.removeEventListener("DOMContentLoaded",v,!1),c.removeEventListener("load",v,!1)):(t.detachEvent("onreadystatechange",v),c.detachEvent("onload",v))}function v(){if(t.addEventListener||"load"===event.type||
"complete"===t.readyState)n(),d.ready()}function u(a,g,k){if(void 0===k&&1===a.nodeType)if(k="data-"+g.replace(Wc,"-$1").toLowerCase(),k=a.getAttribute(k),"string"===typeof k){try{k="true"===k?!0:"false"===k?!1:"null"===k?null:+k+""===k?+k:Xc.test(k)?d.parseJSON(k):k}catch(q){}d.data(a,g,k)}else k=void 0;return k}function w(a){for(var g in a)if(!("data"===g&&d.isEmptyObject(a[g]))&&"toJSON"!==g)return!1;return!0}function b(a,g,k,q){if(d.acceptData(a)){var b=d.expando,c=a.nodeType,f=c?d.cache:a,e=
c?a[b]:a[b]&&b;if(e&&f[e]&&(q||f[e].data)||!(void 0===k&&"string"===typeof g)){e||(e=c?a[b]=X.pop()||d.guid++:b);f[e]||(f[e]=c?{}:{toJSON:d.noop});if("object"===typeof g||"function"===typeof g)q?f[e]=d.extend(f[e],g):f[e].data=d.extend(f[e].data,g);a=f[e];q||(a.data||(a.data={}),a=a.data);void 0!==k&&(a[d.camelCase(g)]=k);"string"===typeof g?(k=a[g],null==k&&(k=a[d.camelCase(g)])):k=a;return k}}}function f(a,g,k){if(d.acceptData(a)){var q,b,c=a.nodeType,f=c?d.cache:a,e=c?a[d.expando]:d.expando;if(f[e]){if(g&&
(q=k?f[e]:f[e].data)){d.isArray(g)?g=g.concat(d.map(g,d.camelCase)):g in q?g=[g]:(g=d.camelCase(g),g=g in q?[g]:g.split(" "));for(b=g.length;b--;)delete q[g[b]];if(k?!w(q):!d.isEmptyObject(q))return}if(!k&&(delete f[e].data,!w(f[e])))return;c?d.cleanData([a],!0):s.deleteExpando||f!=f.window?delete f[e]:f[e]=null}}}function e(){return!0}function p(){return!1}function r(){try{return t.activeElement}catch(a){}}function A(a){var g=Tb.split("|");a=a.createDocumentFragment();if(a.createElement)for(;g.length;)a.createElement(g.pop());
return a}function D(a,g){var k,q,b=0,c=typeof a.getElementsByTagName!==P?a.getElementsByTagName(g||"*"):typeof a.querySelectorAll!==P?a.querySelectorAll(g||"*"):void 0;if(!c){c=[];for(k=a.childNodes||a;null!=(q=k[b]);b++)!g||d.nodeName(q,g)?c.push(q):d.merge(c,D(q,g))}return void 0===g||g&&d.nodeName(a,g)?d.merge([a],c):c}function E(a){kb.test(a.type)&&(a.defaultChecked=a.checked)}function M(a,g){return d.nodeName(a,"table")&&d.nodeName(11!==g.nodeType?g:g.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||
a.appendChild(a.ownerDocument.createElement("tbody")):a}function lb(a){a.type=(null!==d.find.attr(a,"type"))+"/"+a.type;return a}function za(a){var g=Yc.exec(a.type);g?a.type=g[1]:a.removeAttribute("type");return a}function C(a,g){for(var k,q=0;null!=(k=a[q]);q++)d._data(k,"globalEval",!g||d._data(g[q],"globalEval"))}function Ub(a,g){if(1===g.nodeType&&d.hasData(a)){var k,q,b;q=d._data(a);var c=d._data(g,q),f=q.events;if(f)for(k in delete c.handle,c.events={},f){q=0;for(b=f[k].length;q<b;q++)d.event.add(g,
k,f[k][q])}c.data&&(c.data=d.extend({},c.data))}}function Vb(a,g){var k=d(g.createElement(a)).appendTo(g.body),q=c.getDefaultComputedStyle?c.getDefaultComputedStyle(k[0]).display:d.css(k[0],"display");k.detach();return q}function Wb(a){var g=t,k=Xb[a];if(!k){k=Vb(a,g);if("none"===k||!k)Aa=(Aa||d("<iframe frameborder='0' width='0' height='0'/>")).appendTo(g.documentElement),g=(Aa[0].contentWindow||Aa[0].contentDocument).document,g.write(),g.close(),k=Vb(a,g),Aa.detach();Xb[a]=k}return k}function Yb(a,
g){return{get:function(){var k=a();if(null!=k)if(k)delete this.get;else return(this.get=g).apply(this,arguments)}}}function Zb(a,g){if(g in a)return g;for(var k=g.charAt(0).toUpperCase()+g.slice(1),q=g,d=$b.length;d--;)if(g=$b[d]+k,g in a)return g;return q}function ac(a,g){for(var k,q,b,c=[],f=0,e=a.length;f<e;f++)if(q=a[f],q.style)if(c[f]=d._data(q,"olddisplay"),k=q.style.display,g)!c[f]&&"none"===k&&(q.style.display=""),""===q.style.display&&Ba(q)&&(c[f]=d._data(q,"olddisplay",Wb(q.nodeName)));
else if(!c[f]&&(b=Ba(q),k&&"none"!==k||!b))d._data(q,"olddisplay",b?k:d.css(q,"display"));for(f=0;f<e;f++)if(q=a[f],q.style&&(!g||"none"===q.style.display||""===q.style.display))q.style.display=g?c[f]||"":"none";return a}function bc(a,g,k){return(a=Zc.exec(g))?Math.max(0,a[1]-(k||0))+(a[2]||"px"):g}function cc(a,g,k,q,b){g=k===(q?"border":"content")?4:"width"===g?1:0;for(var c=0;4>g;g+=2)"margin"===k&&(c+=d.css(a,k+ia[g],!0,b)),q?("content"===k&&(c-=d.css(a,"padding"+ia[g],!0,b)),"margin"!==k&&(c-=
d.css(a,"border"+ia[g]+"Width",!0,b))):(c+=d.css(a,"padding"+ia[g],!0,b),"padding"!==k&&(c+=d.css(a,"border"+ia[g]+"Width",!0,b)));return c}function dc(a,g,k){var q=!0,b="width"===g?a.offsetWidth:a.offsetHeight,c=ja(a),f=s.boxSizing()&&"border-box"===d.css(a,"boxSizing",!1,c);if(0>=b||null==b){b=ka(a,g,c);if(0>b||null==b)b=a.style[g];if(Ka.test(b))return b;q=f&&(s.boxSizingReliable()||b===a.style[g]);b=parseFloat(b)||0}return b+cc(a,g,k||(f?"border":"content"),q,c)+"px"}function K(a,g,k,q,b){return new K.prototype.init(a,
g,k,q,b)}function ec(){setTimeout(function(){ra=void 0});return ra=d.now()}function La(a,g){var k,q={height:a},b=0;for(g=g?1:0;4>b;b+=2-g)k=ia[b],q["margin"+k]=q["padding"+k]=a;g&&(q.opacity=q.width=a);return q}function fc(a,g,k){for(var q,b=(Ca[g]||[]).concat(Ca["*"]),d=0,c=b.length;d<c;d++)if(q=b[d].call(k,g,a))return q}function gc(a,g,k){var q,b,c=0,f=Ma.length,e=d.Deferred().always(function(){delete h.elem}),h=function(){if(b)return!1;for(var g=ra||ec(),g=Math.max(0,p.startTime+p.duration-g),
k=1-(g/p.duration||0),q=0,d=p.tweens.length;q<d;q++)p.tweens[q].run(k);e.notifyWith(a,[p,k,g]);if(1>k&&d)return g;e.resolveWith(a,[p]);return!1},p=e.promise({elem:a,props:d.extend({},g),opts:d.extend(!0,{specialEasing:{}},k),originalProperties:g,originalOptions:k,startTime:ra||ec(),duration:k.duration,tweens:[],createTween:function(g,k){var q=d.Tween(a,p.opts,g,k,p.opts.specialEasing[g]||p.opts.easing);p.tweens.push(q);return q},stop:function(g){var k=0,q=g?p.tweens.length:0;if(b)return this;for(b=
!0;k<q;k++)p.tweens[k].run(1);g?e.resolveWith(a,[p,g]):e.rejectWith(a,[p,g]);return this}});g=p.props;k=p.opts.specialEasing;var j,Na,l,r;for(q in g)if(j=d.camelCase(q),Na=k[j],l=g[q],d.isArray(l)&&(Na=l[1],l=g[q]=l[0]),q!==j&&(g[j]=l,delete g[q]),(r=d.cssHooks[j])&&"expand"in r)for(q in l=r.expand(l),delete g[j],l)q in g||(g[q]=l[q],k[q]=Na);else k[j]=Na;for(;c<f;c++)if(q=Ma[c].call(p,a,g,p.opts))return q;d.map(g,fc,p);d.isFunction(p.opts.start)&&p.opts.start.call(a,p);d.fx.timer(d.extend(h,{elem:a,
anim:p,queue:p.opts.queue}));return p.progress(p.opts.progress).done(p.opts.done,p.opts.complete).fail(p.opts.fail).always(p.opts.always)}function hc(a){return function(g,k){"string"!==typeof g&&(k=g,g="*");var q,b=0,c=g.toLowerCase().match(V)||[];if(d.isFunction(k))for(;q=c[b++];)"+"===q.charAt(0)?(q=q.slice(1)||"*",(a[q]=a[q]||[]).unshift(k)):(a[q]=a[q]||[]).push(k)}}function ic(a,g,k,q){function b(e){var h;c[e]=!0;d.each(a[e]||[],function(a,d){var e=d(g,k,q);if("string"===typeof e&&!f&&!c[e])return g.dataTypes.unshift(e),
b(e),!1;if(f)return!(h=e)});return h}var c={},f=a===mb;return b(g.dataTypes[0])||!c["*"]&&b("*")}function nb(a,g){var k,q,b=d.ajaxSettings.flatOptions||{};for(q in g)void 0!==g[q]&&((b[q]?a:k||(k={}))[q]=g[q]);k&&d.extend(!0,a,k);return a}function ob(a,g,k,b){var c;if(d.isArray(g))d.each(g,function(g,d){k||ad.test(a)?b(a,d):ob(a+"["+("object"===typeof d?g:"")+"]",d,k,b)});else if(!k&&"object"===d.type(g))for(c in g)ob(a+"["+c+"]",g[c],k,b);else b(a,g)}function pb(a){try{return a?new c.ActiveXObject("Microsoft.XMLHTTP"):
new c.XMLHttpRequest}catch(g){}}function jc(){try{return new c.XMLHttpRequest}catch(a){}}function kc(a){return d.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var X=[],Y=X.slice,lc=X.concat,qb=X.push,mc=X.indexOf,Oa={},bd=Oa.toString,sa=Oa.hasOwnProperty,rb="".trim,s={},d=function(a,g){return new d.fn.init(a,g)},cd=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,dd=/^-ms-/,ed=/-([\da-z])/gi,fd=function(a,g){return g.toUpperCase()};d.fn=d.prototype={jquery:"1.11.0",constructor:d,selector:"",length:0,
toArray:function(){return Y.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:Y.call(this)},pushStack:function(a){a=d.merge(this.constructor(),a);a.prevObject=this;a.context=this.context;return a},each:function(a,g){return d.each(this,a,g)},map:function(a){return this.pushStack(d.map(this,function(g,k){return a.call(g,k,g)}))},slice:function(){return this.pushStack(Y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var g=
this.length;a=+a+(0>a?g:0);return this.pushStack(0<=a&&a<g?[this[a]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:qb,sort:X.sort,splice:X.splice};d.extend=d.fn.extend=function(){var a,g,k,b,c,f=arguments[0]||{},e=1,h=arguments.length,p=!1;"boolean"===typeof f&&(p=f,f=arguments[e]||{},e++);"object"!==typeof f&&!d.isFunction(f)&&(f={});e===h&&(f=this,e--);for(;e<h;e++)if(null!=(c=arguments[e]))for(b in c)a=f[b],k=c[b],f!==k&&(p&&k&&(d.isPlainObject(k)||(g=d.isArray(k)))?
(g?(g=!1,a=a&&d.isArray(a)?a:[]):a=a&&d.isPlainObject(a)?a:{},f[b]=d.extend(p,a,k)):void 0!==k&&(f[b]=k));return f};d.extend({expando:"jQuery"+("1.11.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw Error(a);},noop:function(){},isFunction:function(a){return"function"===d.type(a)},isArray:Array.isArray||function(a){return"array"===d.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return 0<=a-parseFloat(a)},isEmptyObject:function(a){for(var g in a)return!1;
return!0},isPlainObject:function(a){var g;if(!a||"object"!==d.type(a)||a.nodeType||d.isWindow(a))return!1;try{if(a.constructor&&!sa.call(a,"constructor")&&!sa.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(k){return!1}if(s.ownLast)for(g in a)return sa.call(a,g);for(g in a);return void 0===g||sa.call(a,g)},type:function(a){return null==a?a+"":"object"===typeof a||"function"===typeof a?Oa[bd.call(a)]||"object":typeof a},globalEval:function(a){a&&d.trim(a)&&(c.execScript||function(a){c.eval.call(c,
a)})(a)},camelCase:function(a){return a.replace(dd,"ms-").replace(ed,fd)},nodeName:function(a,g){return a.nodeName&&a.nodeName.toLowerCase()===g.toLowerCase()},each:function(a,g,k){var b,d=0,c=a.length;b=h(a);if(k)if(b)for(;d<c&&!(b=g.apply(a[d],k),!1===b);d++);else for(d in a){if(b=g.apply(a[d],k),!1===b)break}else if(b)for(;d<c&&!(b=g.call(a[d],d,a[d]),!1===b);d++);else for(d in a)if(b=g.call(a[d],d,a[d]),!1===b)break;return a},trim:rb&&!rb.call("\ufeff\u00a0")?function(a){return null==a?"":rb.call(a)}:
function(a){return null==a?"":(a+"").replace(cd,"")},makeArray:function(a,g){var k=g||[];null!=a&&(h(Object(a))?d.merge(k,"string"===typeof a?[a]:a):qb.call(k,a));return k},inArray:function(a,g,k){var b;if(g){if(mc)return mc.call(g,a,k);b=g.length;for(k=k?0>k?Math.max(0,b+k):k:0;k<b;k++)if(k in g&&g[k]===a)return k}return-1},merge:function(a,g){for(var k=+g.length,b=0,d=a.length;b<k;)a[d++]=g[b++];if(k!==k)for(;void 0!==g[b];)a[d++]=g[b++];a.length=d;return a},grep:function(a,g,k){for(var b=[],d=
0,c=a.length,f=!k;d<c;d++)k=!g(a[d],d),k!==f&&b.push(a[d]);return b},map:function(a,g,k){var b,d=0,c=a.length,f=[];if(h(a))for(;d<c;d++)b=g(a[d],d,k),null!=b&&f.push(b);else for(d in a)b=g(a[d],d,k),null!=b&&f.push(b);return lc.apply([],f)},guid:1,proxy:function(a,g){var k,b;"string"===typeof g&&(b=a[g],g=a,a=b);if(d.isFunction(a))return k=Y.call(arguments,2),b=function(){return a.apply(g||this,k.concat(Y.call(arguments)))},b.guid=a.guid=a.guid||d.guid++,b},now:function(){return+new Date},support:s});
d.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,g){Oa["[object "+g+"]"]=g.toLowerCase()});var sb=c,y=function(a,g,k,b){var d,c,f,e,h;(g?g.ownerDocument||g:Q)!==G&&Z(g);g=g||G;k=k||[];if(!a||"string"!==typeof a)return k;if(1!==(e=g.nodeType)&&9!==e)return[];if(U&&!b){if(d=gd.exec(a))if(f=d[1])if(9===e)if((c=g.getElementById(f))&&c.parentNode){if(c.id===f)return k.push(c),k}else return k;else{if(g.ownerDocument&&(c=g.ownerDocument.getElementById(f))&&Da(g,
c)&&c.id===f)return k.push(c),k}else{if(d[2])return aa.apply(k,g.getElementsByTagName(a)),k;if((f=d[3])&&B.getElementsByClassName&&g.getElementsByClassName)return aa.apply(k,g.getElementsByClassName(f)),k}if(B.qsa&&(!L||!L.test(a))){c=d=F;f=g;h=9===e&&a;if(1===e&&"object"!==g.nodeName.toLowerCase()){e=Pa(a);(d=g.getAttribute("id"))?c=d.replace(hd,"\\$&"):g.setAttribute("id",c);c="[id='"+c+"'] ";for(f=e.length;f--;)e[f]=c+Qa(e[f]);f=tb.test(a)&&ub(g.parentNode)||g;h=e.join(",")}if(h)try{return aa.apply(k,
f.querySelectorAll(h)),k}catch(p){}finally{d||g.removeAttribute("id")}}}var j;a:{a=a.replace(Ra,"$1");c=Pa(a);if(!b&&1===c.length){d=c[0]=c[0].slice(0);if(2<d.length&&"ID"===(j=d[0]).type&&B.getById&&9===g.nodeType&&U&&x.relative[d[1].type]){g=(x.find.ID(j.matches[0].replace(ba,ca),g)||[])[0];if(!g){j=k;break a}a=a.slice(d.shift().value.length)}for(e=Sa.needsContext.test(a)?0:d.length;e--;){j=d[e];if(x.relative[f=j.type])break;if(f=x.find[f])if(b=f(j.matches[0].replace(ba,ca),tb.test(d[0].type)&&
ub(g.parentNode)||g)){d.splice(e,1);a=b.length&&Qa(d);if(!a){aa.apply(k,b);j=k;break a}break}}}vb(a,c)(b,g,!U,k,tb.test(a)&&ub(g.parentNode)||g);j=k}return j},wb=function(){function a(k,b){g.push(k+" ")>x.cacheLength&&delete a[g.shift()];return a[k+" "]=b}var g=[];return a},R=function(a){a[F]=!0;return a},S=function(a){var g=G.createElement("div");try{return!!a(g)}catch(k){return!1}finally{g.parentNode&&g.parentNode.removeChild(g)}},xb=function(a,g){for(var k=a.split("|"),b=a.length;b--;)x.attrHandle[k[b]]=
g},oc=function(a,g){var k=g&&a,b=k&&1===a.nodeType&&1===g.nodeType&&(~g.sourceIndex||nc)-(~a.sourceIndex||nc);if(b)return b;if(k)for(;k=k.nextSibling;)if(k===g)return-1;return a?1:-1},id=function(a){return function(g){return"input"===g.nodeName.toLowerCase()&&g.type===a}},jd=function(a){return function(g){var k=g.nodeName.toLowerCase();return("input"===k||"button"===k)&&g.type===a}},la=function(a){return R(function(g){g=+g;return R(function(k,b){for(var d,c=a([],k.length,g),f=c.length;f--;)if(k[d=
c[f]])k[d]=!(b[d]=k[d])})})},ub=function(a){return a&&typeof a.getElementsByTagName!==ta&&a},pc=function(){},Pa=function(a,g){var k,b,d,c,f,e,h;if(f=qc[a+" "])return g?0:f.slice(0);f=a;e=[];for(h=x.preFilter;f;){if(!k||(b=kd.exec(f)))b&&(f=f.slice(b[0].length)||f),e.push(d=[]);k=!1;if(b=ld.exec(f))k=b.shift(),d.push({value:k,type:b[0].replace(Ra," ")}),f=f.slice(k.length);for(c in x.filter)if((b=Sa[c].exec(f))&&(!h[c]||(b=h[c](b))))k=b.shift(),d.push({value:k,type:c,matches:b}),f=f.slice(k.length);
if(!k)break}return g?f.length:f?y.error(a):qc(a,e).slice(0)},Qa=function(a){for(var g=0,k=a.length,b="";g<k;g++)b+=a[g].value;return b},yb=function(a,g,k){var b=g.dir,d=k&&"parentNode"===b,c=md++;return g.first?function(g,k,c){for(;g=g[b];)if(1===g.nodeType||d)return a(g,k,c)}:function(g,k,f){var e,h,p=[T,c];if(f)for(;g=g[b];){if((1===g.nodeType||d)&&a(g,k,f))return!0}else for(;g=g[b];)if(1===g.nodeType||d){h=g[F]||(g[F]={});if((e=h[b])&&e[0]===T&&e[1]===c)return p[2]=e[2];h[b]=p;if(p[2]=a(g,k,f))return!0}}},
zb=function(a){return 1<a.length?function(g,k,b){for(var d=a.length;d--;)if(!a[d](g,k,b))return!1;return!0}:a[0]},Ta=function(a,g,k,b,d){for(var c,f=[],e=0,h=a.length,p=null!=g;e<h;e++)if(c=a[e])if(!k||k(c,b,d))f.push(c),p&&g.push(e);return f},Ab=function(a,g,k,b,d,c){b&&!b[F]&&(b=Ab(b));d&&!d[F]&&(d=Ab(d,c));return R(function(c,f,e,O){var h,p,j=[],l=[],r=f.length,n;if(!(n=c)){n=g||"*";for(var m=e.nodeType?[e]:e,v=[],A=0,D=m.length;A<D;A++)y(n,m[A],v);n=v}n=a&&(c||!g)?Ta(n,j,a,e,O):n;m=k?d||(c?a:
r||b)?[]:f:n;k&&k(n,m,e,O);if(b){h=Ta(m,l);b(h,[],e,O);for(e=h.length;e--;)if(p=h[e])m[l[e]]=!(n[l[e]]=p)}if(c){if(d||a){if(d){h=[];for(e=m.length;e--;)if(p=m[e])h.push(n[e]=p);d(null,m=[],h,O)}for(e=m.length;e--;)if((p=m[e])&&-1<(h=d?ma.call(c,p):j[e]))c[h]=!(f[h]=p)}}else m=Ta(m===f?m.splice(r,m.length):m),d?d(null,f,m,O):aa.apply(f,m)})},Bb=function(a){var g,k,b,d=a.length,c=x.relative[a[0].type];k=c||x.relative[" "];for(var f=c?1:0,e=yb(function(a){return a===g},k,!0),h=yb(function(a){return-1<
ma.call(g,a)},k,!0),p=[function(a,k,b){return!c&&(b||k!==Ua)||((g=k).nodeType?e(a,k,b):h(a,k,b))}];f<d;f++)if(k=x.relative[a[f].type])p=[yb(zb(p),k)];else{k=x.filter[a[f].type].apply(null,a[f].matches);if(k[F]){for(b=++f;b<d&&!x.relative[a[b].type];b++);return Ab(1<f&&zb(p),1<f&&Qa(a.slice(0,f-1).concat({value:" "===a[f-2].type?"*":""})).replace(Ra,"$1"),k,f<b&&Bb(a.slice(f,b)),b<d&&Bb(a=a.slice(b)),b<d&&Qa(a))}p.push(k)}return zb(p)},ua,B,x,Va,rc,vb,Ua,da,va,Z,G,W,U,L,na,Wa,Da,F="sizzle"+-new Date,
Q=sb.document,T=0,md=0,sc=wb(),qc=wb(),tc=wb(),Cb=function(a,g){a===g&&(va=!0);return 0},ta="undefined",nc=-2147483648,nd={}.hasOwnProperty,ea=[],od=ea.pop,pd=ea.push,aa=ea.push,uc=ea.slice,ma=ea.indexOf||function(a){for(var g=0,k=this.length;g<k;g++)if(this[g]===a)return g;return-1},vc="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w#"),wc="\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)[\\x20\\t\\r\\n\\f]*(?:([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+vc+")|)|)[\\x20\\t\\r\\n\\f]*\\]",
Db=":((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+wc.replace(3,8)+")*)|.*)\\)|)",Ra=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),kd=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,ld=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,qd=RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),rd=RegExp(Db),sd=RegExp("^"+vc+"$"),Sa={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,
TAG:RegExp("^("+"(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+wc),PSEUDO:RegExp("^"+Db),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")},td=/^(?:input|select|textarea|button)$/i,ud=/^h\d$/i,Ea=/^[^{]+\{\s*\[native \w/,gd=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tb=/[+~]/,hd=/'|\\/g,ba=RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),ca=function(a,g,k){a="0x"+g-65536;return a!==a||k?g:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)};try{aa.apply(ea=uc.call(Q.childNodes),Q.childNodes),ea[Q.childNodes.length].nodeType}catch(ae){aa={apply:ea.length?function(a,g){pd.apply(a,uc.call(g))}:
function(a,g){for(var k=a.length,b=0;a[k++]=g[b++];);a.length=k-1}}}B=y.support={};rc=y.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};Z=y.setDocument=function(a){var g=a?a.ownerDocument||a:Q;a=g.defaultView;if(g===G||9!==g.nodeType||!g.documentElement)return G;G=g;W=g.documentElement;U=!rc(g);a&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",function(){Z()},!1):a.attachEvent&&a.attachEvent("onunload",function(){Z()}));B.attributes=S(function(a){a.className=
"i";return!a.getAttribute("className")});B.getElementsByTagName=S(function(a){a.appendChild(g.createComment(""));return!a.getElementsByTagName("*").length});B.getElementsByClassName=Ea.test(g.getElementsByClassName)&&S(function(a){a.innerHTML="<div class='a'></div><div class='a i'></div>";a.firstChild.className="i";return 2===a.getElementsByClassName("i").length});B.getById=S(function(a){W.appendChild(a).id=F;return!g.getElementsByName||!g.getElementsByName(F).length});B.getById?(x.find.ID=function(a,
g){if(typeof g.getElementById!==ta&&U){var b=g.getElementById(a);return b&&b.parentNode?[b]:[]}},x.filter.ID=function(a){var g=a.replace(ba,ca);return function(a){return a.getAttribute("id")===g}}):(delete x.find.ID,x.filter.ID=function(a){var g=a.replace(ba,ca);return function(a){return(a=typeof a.getAttributeNode!==ta&&a.getAttributeNode("id"))&&a.value===g}});x.find.TAG=B.getElementsByTagName?function(a,g){if(typeof g.getElementsByTagName!==ta)return g.getElementsByTagName(a)}:function(a,g){var b,
d=[],c=0,f=g.getElementsByTagName(a);if("*"===a){for(;b=f[c++];)1===b.nodeType&&d.push(b);return d}return f};x.find.CLASS=B.getElementsByClassName&&function(a,g){if(typeof g.getElementsByClassName!==ta&&U)return g.getElementsByClassName(a)};na=[];L=[];if(B.qsa=Ea.test(g.querySelectorAll))S(function(a){a.innerHTML="<select t=''><option selected=''></option></select>";a.querySelectorAll("[t^='']").length&&L.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");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")}),S(function(a){var b=g.createElement("input");b.setAttribute("type","hidden");a.appendChild(b).setAttribute("name","D");a.querySelectorAll("[name=d]").length&&L.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");a.querySelectorAll(":enabled").length||L.push(":enabled",":disabled");a.querySelectorAll("*,:x");L.push(",.*:")});(B.matchesSelector=Ea.test(Wa=W.webkitMatchesSelector||W.mozMatchesSelector||W.oMatchesSelector||W.msMatchesSelector))&&S(function(a){B.disconnectedMatch=
Wa.call(a,"div");Wa.call(a,"[s!='']:x");na.push("!=",Db)});L=L.length&&RegExp(L.join("|"));na=na.length&&RegExp(na.join("|"));Da=(a=Ea.test(W.compareDocumentPosition))||Ea.test(W.contains)?function(a,g){var b=9===a.nodeType?a.documentElement:a,d=g&&g.parentNode;return a===d||!(!d||!(1===d.nodeType&&(b.contains?b.contains(d):a.compareDocumentPosition&&a.compareDocumentPosition(d)&16)))}:function(a,g){if(g)for(;g=g.parentNode;)if(g===a)return!0;return!1};Cb=a?function(a,b){if(a===b)return va=!0,0;var d=
!a.compareDocumentPosition-!b.compareDocumentPosition;if(d)return d;d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1;return d&1||!B.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===Q&&Da(Q,a)?-1:b===g||b.ownerDocument===Q&&Da(Q,b)?1:da?ma.call(da,a)-ma.call(da,b):0:d&4?-1:1}:function(a,b){if(a===b)return va=!0,0;var d,c=0;d=a.parentNode;var f=b.parentNode,e=[a],h=[b];if(!d||!f)return a===g?-1:b===g?1:d?-1:f?1:da?ma.call(da,a)-ma.call(da,b):0;if(d===
f)return oc(a,b);for(d=a;d=d.parentNode;)e.unshift(d);for(d=b;d=d.parentNode;)h.unshift(d);for(;e[c]===h[c];)c++;return c?oc(e[c],h[c]):e[c]===Q?-1:h[c]===Q?1:0};return g};y.matches=function(a,g){return y(a,null,null,g)};y.matchesSelector=function(a,g){(a.ownerDocument||a)!==G&&Z(a);g=g.replace(qd,"='$1']");if(B.matchesSelector&&U&&(!na||!na.test(g))&&(!L||!L.test(g)))try{var k=Wa.call(a,g);if(k||B.disconnectedMatch||a.document&&11!==a.document.nodeType)return k}catch(b){}return 0<y(g,G,null,[a]).length};
y.contains=function(a,g){(a.ownerDocument||a)!==G&&Z(a);return Da(a,g)};y.attr=function(a,g){(a.ownerDocument||a)!==G&&Z(a);var k=x.attrHandle[g.toLowerCase()],k=k&&nd.call(x.attrHandle,g.toLowerCase())?k(a,g,!U):void 0;return void 0!==k?k:B.attributes||!U?a.getAttribute(g):(k=a.getAttributeNode(g))&&k.specified?k.value:null};y.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};y.uniqueSort=function(a){var g,k=[],b=0,d=0;va=!B.detectDuplicates;da=!B.sortStable&&a.slice(0);
a.sort(Cb);if(va){for(;g=a[d++];)g===a[d]&&(b=k.push(d));for(;b--;)a.splice(k[b],1)}da=null;return a};Va=y.getText=function(a){var g,k="",b=0;if(g=a.nodeType)if(1===g||9===g||11===g){if("string"===typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)k+=Va(a)}else{if(3===g||4===g)return a.nodeValue}else for(;g=a[b++];)k+=Va(g);return k};x=y.selectors={cacheLength:50,createPseudo:R,match:Sa,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},
"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(ba,ca);a[3]=(a[4]||a[5]||"").replace(ba,ca);"~="===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]||y.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]&&y.error(a[0]);return a},PSEUDO:function(a){var g,k=!a[5]&&a[2];if(Sa.CHILD.test(a[0]))return null;if(a[3]&&
void 0!==a[4])a[2]=a[4];else if(k&&rd.test(k)&&(g=Pa(k,!0))&&(g=k.indexOf(")",k.length-g)-k.length))a[0]=a[0].slice(0,g),a[2]=k.slice(0,g);return a.slice(0,3)}},filter:{TAG:function(a){var g=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===g}},CLASS:function(a){var g=sc[a+" "];return g||(g=RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"))&&sc(a,function(a){return g.test("string"===typeof a.className&&a.className||
typeof a.getAttribute!==ta&&a.getAttribute("class")||"")})},ATTR:function(a,g,k){return function(b){b=y.attr(b,a);if(null==b)return"!="===g;if(!g)return!0;b+="";return"="===g?b===k:"!="===g?b!==k:"^="===g?k&&0===b.indexOf(k):"*="===g?k&&-1<b.indexOf(k):"$="===g?k&&b.slice(-k.length)===k:"~="===g?-1<(" "+b+" ").indexOf(k):"|="===g?b===k||b.slice(0,k.length+1)===k+"-":!1}},CHILD:function(a,g,k,b,d){var c="nth"!==a.slice(0,3),f="last"!==a.slice(-4),e="of-type"===g;return 1===b&&0===d?function(a){return!!a.parentNode}:
function(g,k,h){var p,j,l,r,n;k=c!==f?"nextSibling":"previousSibling";var m=g.parentNode,v=e&&g.nodeName.toLowerCase();h=!h&&!e;if(m){if(c){for(;k;){for(j=g;j=j[k];)if(e?j.nodeName.toLowerCase()===v:1===j.nodeType)return!1;n=k="only"===a&&!n&&"nextSibling"}return!0}n=[f?m.firstChild:m.lastChild];if(f&&h){h=m[F]||(m[F]={});p=h[a]||[];r=p[0]===T&&p[1];l=p[0]===T&&p[2];for(j=r&&m.childNodes[r];j=++r&&j&&j[k]||(l=r=0)||n.pop();)if(1===j.nodeType&&++l&&j===g){h[a]=[T,r,l];break}}else if(h&&(p=(g[F]||(g[F]=
{}))[a])&&p[0]===T)l=p[1];else for(;j=++r&&j&&j[k]||(l=r=0)||n.pop();)if((e?j.nodeName.toLowerCase()===v:1===j.nodeType)&&++l)if(h&&((j[F]||(j[F]={}))[a]=[T,l]),j===g)break;l-=d;return l===b||0===l%b&&0<=l/b}}},PSEUDO:function(a,g){var k,b=x.pseudos[a]||x.setFilters[a.toLowerCase()]||y.error("unsupported pseudo: "+a);return b[F]?b(g):1<b.length?(k=[a,a,"",g],x.setFilters.hasOwnProperty(a.toLowerCase())?R(function(a,k){for(var d,c=b(a,g),f=c.length;f--;)d=ma.call(a,c[f]),a[d]=!(k[d]=c[f])}):function(a){return b(a,
0,k)}):b}},pseudos:{not:R(function(a){var g=[],k=[],b=vb(a.replace(Ra,"$1"));return b[F]?R(function(a,g,k,d){d=b(a,null,d,[]);for(var c=a.length;c--;)if(k=d[c])a[c]=!(g[c]=k)}):function(a,d,c){g[0]=a;b(g,null,c,k);return!k.pop()}}),has:R(function(a){return function(g){return 0<y(a,g).length}}),contains:R(function(a){return function(g){return-1<(g.textContent||g.innerText||Va(g)).indexOf(a)}}),lang:R(function(a){sd.test(a||"")||y.error("unsupported lang: "+a);a=a.replace(ba,ca).toLowerCase();return function(g){var k;
do if(k=U?g.lang:g.getAttribute("xml:lang")||g.getAttribute("lang"))return k=k.toLowerCase(),k===a||0===k.indexOf(a+"-");while((g=g.parentNode)&&1===g.nodeType);return!1}}),target:function(a){var g=sb.location&&sb.location.hash;return g&&g.slice(1)===a.id},root:function(a){return a===W},focus:function(a){return a===G.activeElement&&(!G.hasFocus||G.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 g=
a.nodeName.toLowerCase();return"input"===g&&!!a.checked||"option"===g&&!!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(6>a.nodeType)return!1;return!0},parent:function(a){return!x.pseudos.empty(a)},header:function(a){return ud.test(a.nodeName)},input:function(a){return td.test(a.nodeName)},button:function(a){var g=a.nodeName.toLowerCase();return"input"===g&&"button"===a.type||"button"===g},
text:function(a){var g;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(g=a.getAttribute("type"))||"text"===g.toLowerCase())},first:la(function(){return[0]}),last:la(function(a,g){return[g-1]}),eq:la(function(a,g,k){return[0>k?k+g:k]}),even:la(function(a,g){for(var k=0;k<g;k+=2)a.push(k);return a}),odd:la(function(a,g){for(var k=1;k<g;k+=2)a.push(k);return a}),lt:la(function(a,g,k){for(g=0>k?k+g:k;0<=--g;)a.push(g);return a}),gt:la(function(a,g,k){for(k=0>k?k+g:k;++k<g;)a.push(k);
return a})}};x.pseudos.nth=x.pseudos.eq;for(ua in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[ua]=id(ua);for(ua in{submit:!0,reset:!0})x.pseudos[ua]=jd(ua);pc.prototype=x.filters=x.pseudos;x.setFilters=new pc;vb=y.compile=function(a,g){var k,b=[],d=[],c=tc[a+" "];if(!c){g||(g=Pa(a));for(k=g.length;k--;)c=Bb(g[k]),c[F]?b.push(c):d.push(c);var f=0<b.length,e=0<d.length;k=function(a,g,k,c,O){var h,p,j,l=0,r="0",n=a&&[],m=[],v=Ua,A=a||e&&x.find.TAG("*",O),D=T+=null==v?1:Math.random()||
0.1,s=A.length;for(O&&(Ua=g!==G&&g);r!==s&&null!=(h=A[r]);r++){if(e&&h){for(p=0;j=d[p++];)if(j(h,g,k)){c.push(h);break}O&&(T=D)}f&&((h=!j&&h)&&l--,a&&n.push(h))}l+=r;if(f&&r!==l){for(p=0;j=b[p++];)j(n,m,g,k);if(a){if(0<l)for(;r--;)!n[r]&&!m[r]&&(m[r]=od.call(c));m=Ta(m)}aa.apply(c,m);O&&(!a&&0<m.length&&1<l+b.length)&&y.uniqueSort(c)}O&&(T=D,Ua=v);return n};k=f?R(k):k;c=tc(a,k)}return c};B.sortStable=F.split("").sort(Cb).join("")===F;B.detectDuplicates=!!va;Z();B.sortDetached=S(function(a){return a.compareDocumentPosition(G.createElement("div"))&
1});S(function(a){a.innerHTML="<a href='#'></a>";return"#"===a.firstChild.getAttribute("href")})||xb("type|href|height|width",function(a,g,k){if(!k)return a.getAttribute(g,"type"===g.toLowerCase()?1:2)});(!B.attributes||!S(function(a){a.innerHTML="<input/>";a.firstChild.setAttribute("value","");return""===a.firstChild.getAttribute("value")}))&&xb("value",function(a,g,k){if(!k&&"input"===a.nodeName.toLowerCase())return a.defaultValue});S(function(a){return null==a.getAttribute("disabled")})||xb("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
function(a,g,k){var b;if(!k)return!0===a[g]?g.toLowerCase():(b=a.getAttributeNode(g))&&b.specified?b.value:null});d.find=y;d.expr=y.selectors;d.expr[":"]=d.expr.pseudos;d.unique=y.uniqueSort;d.text=y.getText;d.isXMLDoc=y.isXML;d.contains=y.contains;var xc=d.expr.match.needsContext,yc=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Vc=/^.[^:#\[\.,]*$/;d.filter=function(a,g,k){var b=g[0];k&&(a=":not("+a+")");return 1===g.length&&1===b.nodeType?d.find.matchesSelector(b,a)?[b]:[]:d.find.matches(a,d.grep(g,function(a){return 1===
a.nodeType}))};d.fn.extend({find:function(a){var g,k=[],b=this,c=b.length;if("string"!==typeof a)return this.pushStack(d(a).filter(function(){for(g=0;g<c;g++)if(d.contains(b[g],this))return!0}));for(g=0;g<c;g++)d.find(a,b[g],k);k=this.pushStack(1<c?d.unique(k):k);k.selector=this.selector?this.selector+" "+a:a;return k},filter:function(a){return this.pushStack(j(this,a||[],!1))},not:function(a){return this.pushStack(j(this,a||[],!0))},is:function(a){return!!j(this,"string"===typeof a&&xc.test(a)?d(a):
a||[],!1).length}});var Fa,t=c.document,vd=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(d.fn.init=function(a,g){var k,b;if(!a)return this;if("string"===typeof a){if((k="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:vd.exec(a))&&(k[1]||!g)){if(k[1]){if(g=g instanceof d?g[0]:g,d.merge(this,d.parseHTML(k[1],g&&g.nodeType?g.ownerDocument||g:t,!0)),yc.test(k[1])&&d.isPlainObject(g))for(k in g)if(d.isFunction(this[k]))this[k](g[k]);else this.attr(k,g[k])}else{if((b=t.getElementById(k[2]))&&
b.parentNode){if(b.id!==k[2])return Fa.find(a);this.length=1;this[0]=b}this.context=t;this.selector=a}return this}return!g||g.jquery?(g||Fa).find(a):this.constructor(g).find(a)}if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(d.isFunction(a))return"undefined"!==typeof Fa.ready?Fa.ready(a):a(d);void 0!==a.selector&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)}).prototype=d.fn;Fa=d(t);var wd=/^(?:parents|prev(?:Until|All))/,xd={children:!0,contents:!0,
next:!0,prev:!0};d.extend({dir:function(a,g,k){var b=[];for(a=a[g];a&&9!==a.nodeType&&(void 0===k||1!==a.nodeType||!d(a).is(k));)1===a.nodeType&&b.push(a),a=a[g];return b},sibling:function(a,g){for(var k=[];a;a=a.nextSibling)1===a.nodeType&&a!==g&&k.push(a);return k}});d.fn.extend({has:function(a){var g,k=d(a,this),b=k.length;return this.filter(function(){for(g=0;g<b;g++)if(d.contains(this,k[g]))return!0})},closest:function(a,g){for(var k,b=0,c=this.length,f=[],e=xc.test(a)||"string"!==typeof a?d(a,
g||this.context):0;b<c;b++)for(k=this[b];k&&k!==g;k=k.parentNode)if(11>k.nodeType&&(e?-1<e.index(k):1===k.nodeType&&d.find.matchesSelector(k,a))){f.push(k);break}return this.pushStack(1<f.length?d.unique(f):f)},index:function(a){return!a?this[0]&&this[0].parentNode?this.first().prevAll().length:-1:"string"===typeof a?d.inArray(this[0],d(a)):d.inArray(a.jquery?a[0]:a,this)},add:function(a,g){return this.pushStack(d.unique(d.merge(this.get(),d(a,g))))},addBack:function(a){return this.add(null==a?this.prevObject:
this.prevObject.filter(a))}});d.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,g,b){return d.dir(a,"parentNode",b)},next:function(a){return l(a,"nextSibling")},prev:function(a){return l(a,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,g,b){return d.dir(a,"nextSibling",b)},prevUntil:function(a,g,b){return d.dir(a,
"previousSibling",b)},siblings:function(a){return d.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.merge([],a.childNodes)}},function(a,g){d.fn[a]=function(b,c){var f=d.map(this,g,b);"Until"!==a.slice(-5)&&(c=b);c&&"string"===typeof c&&(f=d.filter(c,f));1<this.length&&(xd[a]||(f=d.unique(f)),wd.test(a)&&(f=f.reverse()));return this.pushStack(f)}});var V=/\S+/g,
zc={};d.Callbacks=function(a){var g;if("string"===typeof a){if(!(g=zc[a])){g=a;var b=zc[g]={};d.each(g.match(V)||[],function(a,g){b[g]=!0});g=b}}else g=d.extend({},a);a=g;var c,f,e,h,p,j,l=[],r=!a.once&&[],m=function(g){f=a.memory&&g;e=!0;p=j||0;j=0;h=l.length;for(c=!0;l&&p<h;p++)if(!1===l[p].apply(g[0],g[1])&&a.stopOnFalse){f=!1;break}c=!1;l&&(r?r.length&&m(r.shift()):f?l=[]:n.disable())},n={add:function(){if(l){var g=l.length;(function $c(g){d.each(g,function(g,b){var k=d.type(b);"function"===k?
(!a.unique||!n.has(b))&&l.push(b):b&&(b.length&&"string"!==k)&&$c(b)})})(arguments);c?h=l.length:f&&(j=g,m(f))}return this},remove:function(){l&&d.each(arguments,function(a,g){for(var b;-1<(b=d.inArray(g,l,b));)l.splice(b,1),c&&(b<=h&&h--,b<=p&&p--)});return this},has:function(a){return a?-1<d.inArray(a,l):!(!l||!l.length)},empty:function(){l=[];h=0;return this},disable:function(){l=r=f=void 0;return this},disabled:function(){return!l},lock:function(){r=void 0;f||n.disable();return this},locked:function(){return!r},
fireWith:function(a,g){if(l&&(!e||r))g=g||[],g=[a,g.slice?g.slice():g],c?r.push(g):m(g);return this},fire:function(){n.fireWith(this,arguments);return this},fired:function(){return!!e}};return n};d.extend({Deferred:function(a){var g=[["resolve","done",d.Callbacks("once memory"),"resolved"],["reject","fail",d.Callbacks("once memory"),"rejected"],["notify","progress",d.Callbacks("memory")]],b="pending",c={state:function(){return b},always:function(){f.done(arguments).fail(arguments);return this},then:function(){var a=
arguments;return d.Deferred(function(b){d.each(g,function(g,k){var e=d.isFunction(a[g])&&a[g];f[k[1]](function(){var a=e&&e.apply(this,arguments);if(a&&d.isFunction(a.promise))a.promise().done(b.resolve).fail(b.reject).progress(b.notify);else b[k[0]+"With"](this===c?b.promise():this,e?[a]:arguments)})});a=null}).promise()},promise:function(a){return null!=a?d.extend(a,c):c}},f={};c.pipe=c.then;d.each(g,function(a,d){var e=d[2],h=d[3];c[d[1]]=e.add;h&&e.add(function(){b=h},g[a^1][2].disable,g[2][2].lock);
f[d[0]]=function(){f[d[0]+"With"](this===f?c:this,arguments);return this};f[d[0]+"With"]=e.fireWith});c.promise(f);a&&a.call(f,f);return f},when:function(a){var g=0,b=Y.call(arguments),c=b.length,f=1!==c||a&&d.isFunction(a.promise)?c:0,e=1===f?a:d.Deferred(),h=function(a,g,b){return function(k){g[a]=this;b[a]=1<arguments.length?Y.call(arguments):k;b===p?e.notifyWith(g,b):--f||e.resolveWith(g,b)}},p,j,l;if(1<c){p=Array(c);j=Array(c);for(l=Array(c);g<c;g++)b[g]&&d.isFunction(b[g].promise)?b[g].promise().done(h(g,
l,b)).fail(e.reject).progress(h(g,j,p)):--f}f||e.resolveWith(l,b);return e.promise()}});var Xa;d.fn.ready=function(a){d.ready.promise().done(a);return this};d.extend({isReady:!1,readyWait:1,holdReady:function(a){a?d.readyWait++:d.ready(!0)},ready:function(a){if(!(!0===a?--d.readyWait:d.isReady)){if(!t.body)return setTimeout(d.ready);d.isReady=!0;!0!==a&&0<--d.readyWait||(Xa.resolveWith(t,[d]),d.fn.trigger&&d(t).trigger("ready").off("ready"))}}});d.ready.promise=function(a){if(!Xa)if(Xa=d.Deferred(),
"complete"===t.readyState)setTimeout(d.ready);else if(t.addEventListener)t.addEventListener("DOMContentLoaded",v,!1),c.addEventListener("load",v,!1);else{t.attachEvent("onreadystatechange",v);c.attachEvent("onload",v);var g=!1;try{g=null==c.frameElement&&t.documentElement}catch(b){}g&&g.doScroll&&function I(){if(!d.isReady){try{g.doScroll("left")}catch(a){return setTimeout(I,50)}n();d.ready()}}()}return Xa.promise(a)};var P="undefined",Ac;for(Ac in d(s))break;s.ownLast="0"!==Ac;s.inlineBlockNeedsLayout=
!1;d(function(){var a,g,b=t.getElementsByTagName("body")[0];if(b){a=t.createElement("div");a.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px";g=t.createElement("div");b.appendChild(a).appendChild(g);if(typeof g.style.zoom!==P&&(g.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",s.inlineBlockNeedsLayout=3===g.offsetWidth))b.style.zoom=1;b.removeChild(a)}});var yd=t.createElement("div");if(null==s.deleteExpando){s.deleteExpando=
!0;try{delete yd.test}catch(be){s.deleteExpando=!1}}d.acceptData=function(a){var g=d.noData[(a.nodeName+" ").toLowerCase()],b=+a.nodeType||1;return 1!==b&&9!==b?!1:!g||!0!==g&&a.getAttribute("classid")===g};var Xc=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Wc=/([A-Z])/g;d.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!w(a)},data:function(a,g,k){return b(a,g,k)},removeData:function(a,
g){return f(a,g)},_data:function(a,g,k){return b(a,g,k,!0)},_removeData:function(a,g){return f(a,g,!0)}});d.fn.extend({data:function(a,g){var b,c,f,e=this[0],h=e&&e.attributes;if(void 0===a){if(this.length&&(f=d.data(e),1===e.nodeType&&!d._data(e,"parsedAttrs"))){for(b=h.length;b--;)c=h[b].name,0===c.indexOf("data-")&&(c=d.camelCase(c.slice(5)),u(e,c,f[c]));d._data(e,"parsedAttrs",!0)}return f}return"object"===typeof a?this.each(function(){d.data(this,a)}):1<arguments.length?this.each(function(){d.data(this,
a,g)}):e?u(e,a,d.data(e,a)):void 0},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});d.extend({queue:function(a,g,b){var c;if(a)return g=(g||"fx")+"queue",c=d._data(a,g),b&&(!c||d.isArray(b)?c=d._data(a,g,d.makeArray(b)):c.push(b)),c||[]},dequeue:function(a,g){g=g||"fx";var b=d.queue(a,g),c=b.length,f=b.shift(),e=d._queueHooks(a,g),h=function(){d.dequeue(a,g)};"inprogress"===f&&(f=b.shift(),c--);f&&("fx"===g&&b.unshift("inprogress"),delete e.stop,f.call(a,h,e));!c&&e&&
e.empty.fire()},_queueHooks:function(a,g){var b=g+"queueHooks";return d._data(a,b)||d._data(a,b,{empty:d.Callbacks("once memory").add(function(){d._removeData(a,g+"queue");d._removeData(a,b)})})}});d.fn.extend({queue:function(a,g){var b=2;"string"!==typeof a&&(g=a,a="fx",b--);return arguments.length<b?d.queue(this[0],a):void 0===g?this:this.each(function(){var b=d.queue(this,a,g);d._queueHooks(this,a);"fx"===a&&"inprogress"!==b[0]&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,
a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,g){var b,c=1,f=d.Deferred(),e=this,h=this.length,p=function(){--c||f.resolveWith(e,[e])};"string"!==typeof a&&(g=a,a=void 0);for(a=a||"fx";h--;)if((b=d._data(e[h],a+"queueHooks"))&&b.empty)c++,b.empty.add(p);p();return f.promise(g)}});var Ya=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ia=["Top","Right","Bottom","Left"],Ba=function(a,g){a=g||a;return"none"===d.css(a,"display")||!d.contains(a.ownerDocument,a)},oa=d.access=
function(a,g,b,c,f,e,h){var p=0,j=a.length,l=null==b;if("object"===d.type(b))for(p in f=!0,b)d.access(a,g,p,b[p],!0,e,h);else if(void 0!==c&&(f=!0,d.isFunction(c)||(h=!0),l&&(h?(g.call(a,c),g=null):(l=g,g=function(a,g,b){return l.call(d(a),b)})),g))for(;p<j;p++)g(a[p],b,h?c:c.call(a[p],p,g(a[p],b)));return f?a:l?g.call(a):j?g(a[0],b):e},kb=/^(?:checkbox|radio)$/i,Eb=t.createDocumentFragment(),H=t.createElement("div"),Ga=t.createElement("input");H.setAttribute("className","t");H.innerHTML="  <link/><table></table><a href='/a'>a</a>";
s.leadingWhitespace=3===H.firstChild.nodeType;s.tbody=!H.getElementsByTagName("tbody").length;s.htmlSerialize=!!H.getElementsByTagName("link").length;s.html5Clone="<:nav></:nav>"!==t.createElement("nav").cloneNode(!0).outerHTML;Ga.type="checkbox";Ga.checked=!0;Eb.appendChild(Ga);s.appendChecked=Ga.checked;H.innerHTML="<textarea>x</textarea>";s.noCloneChecked=!!H.cloneNode(!0).lastChild.defaultValue;Eb.appendChild(H);H.innerHTML="<input type='radio' checked='checked' name='t'/>";s.checkClone=H.cloneNode(!0).cloneNode(!0).lastChild.checked;
s.noCloneEvent=!0;H.attachEvent&&(H.attachEvent("onclick",function(){s.noCloneEvent=!1}),H.cloneNode(!0).click());if(null==s.deleteExpando){s.deleteExpando=!0;try{delete H.test}catch(ce){s.deleteExpando=!1}}var Eb=H=Ga=null,Za,$a,Bc=t.createElement("div");for(Za in{submit:!0,change:!0,focusin:!0})if($a="on"+Za,!(s[Za+"Bubbles"]=$a in c))Bc.setAttribute($a,"t"),s[Za+"Bubbles"]=!1===Bc.attributes[$a].expando;var Fb=/^(?:input|select|textarea)$/i,zd=/^key/,Ad=/^(?:mouse|contextmenu)|click/,Cc=/^(?:focusinfocus|focusoutblur)$/,
Dc=/^([^.]*)(?:\.(.+)|)$/;d.event={global:{},add:function(a,g,b,c,f){var e,h,p,j,l,r,m,n,v;if(p=d._data(a)){b.handler&&(j=b,b=j.handler,f=j.selector);b.guid||(b.guid=d.guid++);if(!(h=p.events))h=p.events={};if(!(l=p.handle))l=p.handle=function(a){return typeof d!==P&&(!a||d.event.triggered!==a.type)?d.event.dispatch.apply(l.elem,arguments):void 0},l.elem=a;g=(g||"").match(V)||[""];for(p=g.length;p--;)if(e=Dc.exec(g[p])||[],n=r=e[1],v=(e[2]||"").split(".").sort(),n){e=d.event.special[n]||{};n=(f?e.delegateType:
e.bindType)||n;e=d.event.special[n]||{};r=d.extend({type:n,origType:r,data:c,handler:b,guid:b.guid,selector:f,needsContext:f&&d.expr.match.needsContext.test(f),namespace:v.join(".")},j);if(!(m=h[n]))if(m=h[n]=[],m.delegateCount=0,!e.setup||!1===e.setup.call(a,c,v,l))a.addEventListener?a.addEventListener(n,l,!1):a.attachEvent&&a.attachEvent("on"+n,l);e.add&&(e.add.call(a,r),r.handler.guid||(r.handler.guid=b.guid));f?m.splice(m.delegateCount++,0,r):m.push(r);d.event.global[n]=!0}a=null}},remove:function(a,
g,b,c,f){var e,h,p,j,l,r,n,m,v,A,D,s=d.hasData(a)&&d._data(a);if(s&&(r=s.events)){g=(g||"").match(V)||[""];for(l=g.length;l--;)if(p=Dc.exec(g[l])||[],v=D=p[1],A=(p[2]||"").split(".").sort(),v){n=d.event.special[v]||{};v=(c?n.delegateType:n.bindType)||v;m=r[v]||[];p=p[2]&&RegExp("(^|\\.)"+A.join("\\.(?:.*\\.|)")+"(\\.|$)");for(j=e=m.length;e--;)if(h=m[e],(f||D===h.origType)&&(!b||b.guid===h.guid)&&(!p||p.test(h.namespace))&&(!c||c===h.selector||"**"===c&&h.selector))m.splice(e,1),h.selector&&m.delegateCount--,
n.remove&&n.remove.call(a,h);j&&!m.length&&((!n.teardown||!1===n.teardown.call(a,A,s.handle))&&d.removeEvent(a,v,s.handle),delete r[v])}else for(v in r)d.event.remove(a,v+g[l],b,c,!0);d.isEmptyObject(r)&&(delete s.handle,d._removeData(a,"events"))}},trigger:function(a,g,b,f){var e,h,p,j,l,r,n=[b||t],m=sa.call(a,"type")?a.type:a;l=sa.call(a,"namespace")?a.namespace.split("."):[];p=e=b=b||t;if(!(3===b.nodeType||8===b.nodeType)&&!Cc.test(m+d.event.triggered))if(0<=m.indexOf(".")&&(l=m.split("."),m=l.shift(),
l.sort()),h=0>m.indexOf(":")&&"on"+m,a=a[d.expando]?a:new d.Event(m,"object"===typeof a&&a),a.isTrigger=f?2:3,a.namespace=l.join("."),a.namespace_re=a.namespace?RegExp("(^|\\.)"+l.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=void 0,a.target||(a.target=b),g=null==g?[a]:d.makeArray(g,[a]),l=d.event.special[m]||{},f||!(l.trigger&&!1===l.trigger.apply(b,g))){if(!f&&!l.noBubble&&!d.isWindow(b)){j=l.delegateType||m;Cc.test(j+m)||(p=p.parentNode);for(;p;p=p.parentNode)n.push(p),e=p;if(e===(b.ownerDocument||
t))n.push(e.defaultView||e.parentWindow||c)}for(r=0;(p=n[r++])&&!a.isPropagationStopped();)if(a.type=1<r?j:l.bindType||m,(e=(d._data(p,"events")||{})[a.type]&&d._data(p,"handle"))&&e.apply(p,g),(e=h&&p[h])&&e.apply&&d.acceptData(p))a.result=e.apply(p,g),!1===a.result&&a.preventDefault();a.type=m;if(!f&&!a.isDefaultPrevented()&&(!l._default||!1===l._default.apply(n.pop(),g))&&d.acceptData(b)&&h&&b[m]&&!d.isWindow(b)){(e=b[h])&&(b[h]=null);d.event.triggered=m;try{b[m]()}catch(v){}d.event.triggered=
void 0;e&&(b[h]=e)}return a.result}},dispatch:function(a){a=d.event.fix(a);var g,b,c,f,e=[],h=Y.call(arguments);g=(d._data(this,"events")||{})[a.type]||[];var p=d.event.special[a.type]||{};h[0]=a;a.delegateTarget=this;if(!(p.preDispatch&&!1===p.preDispatch.call(this,a))){e=d.event.handlers.call(this,a,g);for(g=0;(c=e[g++])&&!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=((d.event.special[b.origType]||{}).handle||b.handler).apply(c.elem,h),void 0!==b&&!1===(a.result=b))a.preventDefault(),a.stopPropagation()}p.postDispatch&&p.postDispatch.call(this,a);return a.result}},handlers:function(a,g){var b,c,f,e,h=[],p=g.delegateCount,j=a.target;if(p&&j.nodeType&&(!a.button||"click"!==a.type))for(;j!=this;j=j.parentNode||this)if(1===j.nodeType&&(!0!==j.disabled||"click"!==a.type)){f=[];for(e=0;e<p;e++)c=g[e],b=c.selector+" ",void 0===f[b]&&(f[b]=c.needsContext?
0<=d(b,this).index(j):d.find(b,this,null,[j]).length),f[b]&&f.push(c);f.length&&h.push({elem:j,handlers:f})}p<g.length&&h.push({elem:this,handlers:g.slice(p)});return h},fix:function(a){if(a[d.expando])return a;var g,b,c;g=a.type;var f=a,e=this.fixHooks[g];e||(this.fixHooks[g]=e=Ad.test(g)?this.mouseHooks:zd.test(g)?this.keyHooks:{});c=e.props?this.props.concat(e.props):this.props;a=new d.Event(f);for(g=c.length;g--;)b=c[g],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 e.filter?e.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,g){null==a.which&&(a.which=null!=g.charCode?g.charCode:g.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,
g){var b,d,c=g.button,f=g.fromElement;null==a.pageX&&null!=g.clientX&&(b=a.target.ownerDocument||t,d=b.documentElement,b=b.body,a.pageX=g.clientX+(d&&d.scrollLeft||b&&b.scrollLeft||0)-(d&&d.clientLeft||b&&b.clientLeft||0),a.pageY=g.clientY+(d&&d.scrollTop||b&&b.scrollTop||0)-(d&&d.clientTop||b&&b.clientTop||0));!a.relatedTarget&&f&&(a.relatedTarget=f===a.target?g.toElement:f);!a.which&&void 0!==c&&(a.which=c&1?1:c&2?3:c&4?2:0);return a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==
r()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){if(this===r()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(d.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(a){return d.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,g,b,c){a=d.extend(new d.Event,b,{type:a,
isSimulated:!0,originalEvent:{}});c?d.event.trigger(a,null,g):d.event.dispatch.call(g,a);a.isDefaultPrevented()&&b.preventDefault()}};d.removeEvent=t.removeEventListener?function(a,g,b){a.removeEventListener&&a.removeEventListener(g,b,!1)}:function(a,g,b){g="on"+g;a.detachEvent&&(typeof a[g]===P&&(a[g]=null),a.detachEvent(g,b))};d.Event=function(a,g){if(!(this instanceof d.Event))return new d.Event(a,g);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===
a.defaultPrevented&&(!1===a.returnValue||a.getPreventDefault&&a.getPreventDefault())?e:p):this.type=a;g&&d.extend(this,g);this.timeStamp=a&&a.timeStamp||d.now();this[d.expando]=!0};d.Event.prototype={isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=e;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=e;a&&(a.stopPropagation&&
a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=e;this.stopPropagation()}};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,g){d.event.special[a]={delegateType:g,bindType:g,handle:function(a){var b,c=a.relatedTarget,f=a.handleObj;if(!c||c!==this&&!d.contains(this,c))a.type=f.origType,b=f.handler.apply(this,arguments),a.type=g;return b}}});s.submitBubbles||(d.event.special.submit={setup:function(){if(d.nodeName(this,"form"))return!1;
d.event.add(this,"click._submit keypress._submit",function(a){a=a.target;if((a=d.nodeName(a,"input")||d.nodeName(a,"button")?a.form:void 0)&&!d._data(a,"submitBubbles"))d.event.add(a,"submit._submit",function(a){a._submit_bubble=!0}),d._data(a,"submitBubbles",!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&d.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(d.nodeName(this,"form"))return!1;d.event.remove(this,"._submit")}});
s.changeBubbles||(d.event.special.change={setup:function(){if(Fb.test(this.nodeName)){if("checkbox"===this.type||"radio"===this.type)d.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),d.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1);d.event.simulate("change",this,a,!0)});return!1}d.event.add(this,"beforeactivate._change",function(a){a=a.target;Fb.test(a.nodeName)&&!d._data(a,
"changeBubbles")&&(d.event.add(a,"change._change",function(a){this.parentNode&&(!a.isSimulated&&!a.isTrigger)&&d.event.simulate("change",this.parentNode,a,!0)}),d._data(a,"changeBubbles",!0))})},handle:function(a){var g=a.target;if(this!==g||a.isSimulated||a.isTrigger||"radio"!==g.type&&"checkbox"!==g.type)return a.handleObj.handler.apply(this,arguments)},teardown:function(){d.event.remove(this,"._change");return!Fb.test(this.nodeName)}});s.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},
function(a,g){var b=function(a){d.event.simulate(g,a.target,d.event.fix(a),!0)};d.event.special[g]={setup:function(){var c=this.ownerDocument||this,f=d._data(c,g);f||c.addEventListener(a,b,!0);d._data(c,g,(f||0)+1)},teardown:function(){var c=this.ownerDocument||this,f=d._data(c,g)-1;f?d._data(c,g,f):(c.removeEventListener(a,b,!0),d._removeData(c,g))}}});d.fn.extend({on:function(a,g,b,c,f){var e,h;if("object"===typeof a){"string"!==typeof g&&(b=b||g,g=void 0);for(e in a)this.on(e,g,b,a[e],f);return this}null==
b&&null==c?(c=g,b=g=void 0):null==c&&("string"===typeof g?(c=b,b=void 0):(c=b,b=g,g=void 0));if(!1===c)c=p;else if(!c)return this;1===f&&(h=c,c=function(a){d().off(a);return h.apply(this,arguments)},c.guid=h.guid||(h.guid=d.guid++));return this.each(function(){d.event.add(this,a,c,b,g)})},one:function(a,g,b,c){return this.on(a,g,b,c,1)},off:function(a,g,b){var c;if(a&&a.preventDefault&&a.handleObj)return c=a.handleObj,d(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,g,a[c]);return this}if(!1===g||"function"===typeof g)b=g,g=void 0;!1===b&&(b=p);return this.each(function(){d.event.remove(this,a,b,g)})},trigger:function(a,g){return this.each(function(){d.event.trigger(a,g,this)})},triggerHandler:function(a,g){var b=this[0];if(b)return d.event.trigger(a,g,b,!0)}});var Tb="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
Bd=/ jQuery\d+="(?:null|\d+)"/g,Ec=RegExp("<(?:"+Tb+")[\\s/>]","i"),Gb=/^\s+/,Fc=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Gc=/<([\w:]+)/,Hc=/<tbody/i,Cd=/<|&#?\w+;/,Dd=/<(?:script|style|link)/i,Ed=/checked\s*(?:[^=]|=\s*.checked.)/i,Ic=/^$|\/(?:java|ecma)script/i,Yc=/^true\/(.*)/,Fd=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,N={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:s.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Hb=A(t).appendChild(t.createElement("div"));N.optgroup=N.option;N.tbody=N.tfoot=N.colgroup=N.caption=N.thead;N.th=N.td;d.extend({clone:function(a,g,b){var c,f,e,h,p,j=d.contains(a.ownerDocument,a);s.html5Clone||d.isXMLDoc(a)||!Ec.test("<"+
a.nodeName+">")?e=a.cloneNode(!0):(Hb.innerHTML=a.outerHTML,Hb.removeChild(e=Hb.firstChild));if((!s.noCloneEvent||!s.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!d.isXMLDoc(a)){c=D(e);p=D(a);for(h=0;null!=(f=p[h]);++h)if(c[h]){var l=c[h],r=void 0,m=void 0,n=void 0;if(1===l.nodeType){r=l.nodeName.toLowerCase();if(!s.noCloneEvent&&l[d.expando]){n=d._data(l);for(m in n.events)d.removeEvent(l,m,n.handle);l.removeAttribute(d.expando)}if("script"===r&&l.text!==f.text)lb(l).text=f.text,za(l);else if("object"===
r)l.parentNode&&(l.outerHTML=f.outerHTML),s.html5Clone&&(f.innerHTML&&!d.trim(l.innerHTML))&&(l.innerHTML=f.innerHTML);else if("input"===r&&kb.test(f.type))l.defaultChecked=l.checked=f.checked,l.value!==f.value&&(l.value=f.value);else if("option"===r)l.defaultSelected=l.selected=f.defaultSelected;else if("input"===r||"textarea"===r)l.defaultValue=f.defaultValue}}}if(g)if(b){p=p||D(a);c=c||D(e);for(h=0;null!=(f=p[h]);h++)Ub(f,c[h])}else Ub(a,e);c=D(e,"script");0<c.length&&C(c,!j&&D(a,"script"));return e},
buildFragment:function(a,g,b,c){for(var f,e,h,p,j,l,r=a.length,m=A(g),n=[],v=0;v<r;v++)if((e=a[v])||0===e)if("object"===d.type(e))d.merge(n,e.nodeType?[e]:e);else if(Cd.test(e)){h=h||m.appendChild(g.createElement("div"));p=(Gc.exec(e)||["",""])[1].toLowerCase();l=N[p]||N._default;h.innerHTML=l[1]+e.replace(Fc,"<$1></$2>")+l[2];for(f=l[0];f--;)h=h.lastChild;!s.leadingWhitespace&&Gb.test(e)&&n.push(g.createTextNode(Gb.exec(e)[0]));if(!s.tbody)for(f=(e="table"===p&&!Hc.test(e)?h.firstChild:"<table>"===
l[1]&&!Hc.test(e)?h:0)&&e.childNodes.length;f--;)d.nodeName(j=e.childNodes[f],"tbody")&&!j.childNodes.length&&e.removeChild(j);d.merge(n,h.childNodes);for(h.textContent="";h.firstChild;)h.removeChild(h.firstChild);h=m.lastChild}else n.push(g.createTextNode(e));h&&m.removeChild(h);s.appendChecked||d.grep(D(n,"input"),E);for(v=0;e=n[v++];)if(!(c&&-1!==d.inArray(e,c))&&(a=d.contains(e.ownerDocument,e),h=D(m.appendChild(e),"script"),a&&C(h),b))for(f=0;e=h[f++];)Ic.test(e.type||"")&&b.push(e);return m},
cleanData:function(a,g){for(var b,c,f,e,h=0,p=d.expando,j=d.cache,l=s.deleteExpando,r=d.event.special;null!=(b=a[h]);h++)if(g||d.acceptData(b))if(e=(f=b[p])&&j[f]){if(e.events)for(c in e.events)r[c]?d.event.remove(b,c):d.removeEvent(b,c,e.handle);j[f]&&(delete j[f],l?delete b[p]:typeof b.removeAttribute!==P?b.removeAttribute(p):b[p]=null,X.push(f))}}});d.fn.extend({text:function(a){return oa(this,function(a){return void 0===a?d.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)&&M(this,a).appendChild(a)})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var g=M(this,a);g.insertBefore(a,g.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,g){for(var b,c=a?d.filter(a,this):this,f=0;null!=(b=c[f]);f++)!g&&1===b.nodeType&&d.cleanData(D(b)),b.parentNode&&(g&&d.contains(b.ownerDocument,b)&&C(D(b,"script")),b.parentNode.removeChild(b));return this},empty:function(){for(var a,g=0;null!=(a=this[g]);g++){for(1===a.nodeType&&d.cleanData(D(a,!1));a.firstChild;)a.removeChild(a.firstChild);a.options&&d.nodeName(a,"select")&&(a.options.length=0)}return this},
clone:function(a,g){a=null==a?!1:a;g=null==g?a:g;return this.map(function(){return d.clone(this,a,g)})},html:function(a){return oa(this,function(a){var b=this[0]||{},c=0,f=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(Bd,""):void 0;if("string"===typeof a&&!Dd.test(a)&&(s.htmlSerialize||!Ec.test(a))&&(s.leadingWhitespace||!Gb.test(a))&&!N[(Gc.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Fc,"<$1></$2>");try{for(;c<f;c++)b=this[c]||{},1===b.nodeType&&(d.cleanData(D(b,!1)),b.innerHTML=
a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];this.domManip(arguments,function(g){a=this.parentNode;d.cleanData(D(this));a&&a.replaceChild(g,this)});return a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,g){a=lc.apply([],a);var b,c,f,e,h=0,p=this.length,j=this,l=p-1,r=a[0],m=d.isFunction(r);if(m||1<p&&"string"===typeof r&&!s.checkClone&&Ed.test(r))return this.each(function(b){var c=
j.eq(b);m&&(a[0]=r.call(this,b,c.html()));c.domManip(a,g)});if(p&&(e=d.buildFragment(a,this[0].ownerDocument,!1,this),b=e.firstChild,1===e.childNodes.length&&(e=b),b)){f=d.map(D(e,"script"),lb);for(c=f.length;h<p;h++)b=e,h!==l&&(b=d.clone(b,!0,!0),c&&d.merge(f,D(b,"script"))),g.call(this[h],b,h);if(c){e=f[f.length-1].ownerDocument;d.map(f,za);for(h=0;h<c;h++)if(b=f[h],Ic.test(b.type||"")&&!d._data(b,"globalEval")&&d.contains(e,b))b.src?d._evalUrl&&d._evalUrl(b.src):d.globalEval((b.text||b.textContent||
b.innerHTML||"").replace(Fd,""))}e=b=null}return this}});d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,g){d.fn[a]=function(a){for(var b=0,c=[],f=d(a),e=f.length-1;b<=e;b++)a=b===e?this:this.clone(!0),d(f[b])[g](a),qb.apply(c,a.get());return this.pushStack(c)}});var Aa,Xb={},Ha,ab,wa=t.createElement("div");wa.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";Ha=wa.getElementsByTagName("a")[0];
Ha.style.cssText="float:left;opacity:.5";s.opacity=/^0.5/.test(Ha.style.opacity);s.cssFloat=!!Ha.style.cssFloat;wa.style.backgroundClip="content-box";wa.cloneNode(!0).style.backgroundClip="";s.clearCloneStyle="content-box"===wa.style.backgroundClip;Ha=wa=null;s.shrinkWrapBlocks=function(){var a,g,b;if(null==ab){a=t.getElementsByTagName("body")[0];if(!a)return;g=t.createElement("div");b=t.createElement("div");a.appendChild(g).appendChild(b);ab=!1;typeof b.style.zoom!==P&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0;width:1px;padding:1px;zoom:1",
b.innerHTML="<div></div>",b.firstChild.style.width="5px",ab=3!==b.offsetWidth);a.removeChild(g)}return ab};var Jc=/^margin/,Ka=RegExp("^("+Ya+")(?!px)[a-z%]+$","i"),ja,ka,Gd=/^(top|right|bottom|left)$/;c.getComputedStyle?(ja=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},ka=function(a,b,c){var f,e,h=a.style;e=(c=c||ja(a))?c.getPropertyValue(b)||c[b]:void 0;c&&(""===e&&!d.contains(a.ownerDocument,a)&&(e=d.style(a,b)),Ka.test(e)&&Jc.test(b)&&(a=h.width,b=h.minWidth,f=h.maxWidth,
h.minWidth=h.maxWidth=h.width=e,e=c.width,h.width=a,h.minWidth=b,h.maxWidth=f));return void 0===e?e:e+""}):t.documentElement.currentStyle&&(ja=function(a){return a.currentStyle},ka=function(a,b,c){var d,f,e,h=a.style;e=(c=c||ja(a))?c[b]:void 0;null==e&&(h&&h[b])&&(e=h[b]);if(Ka.test(e)&&!Gd.test(b)){c=h.left;if(f=(d=a.runtimeStyle)&&d.left)d.left=a.currentStyle.left;h.left="fontSize"===b?"1em":e;e=h.pixelLeft+"px";h.left=c;f&&(d.left=f)}return void 0===e?e:e+""||"auto"});var Kb=function(){var a,b,
f=t.getElementsByTagName("body")[0];f&&(a=t.createElement("div"),b=t.createElement("div"),a.style.cssText=Ib,f.appendChild(a).appendChild(b),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",d.swap(f,null!=f.style.zoom?{zoom:1}:{},function(){Jb=4===b.offsetWidth}),bb=!0,cb=!1,db=!0,c.getComputedStyle&&(cb="1%"!==(c.getComputedStyle(b,null)||{}).top,bb="4px"===(c.getComputedStyle(b,
null)||{width:"4px"}).width),f.removeChild(a),b=f=null)},Ia,eb,Jb,bb,cb,db,xa=t.createElement("div"),Ib="border:0;width:0;height:0;position:absolute;top:0;left:-9999px";xa.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";Ia=xa.getElementsByTagName("a")[0];Ia.style.cssText="float:left;opacity:.5";s.opacity=/^0.5/.test(Ia.style.opacity);s.cssFloat=!!Ia.style.cssFloat;xa.style.backgroundClip="content-box";xa.cloneNode(!0).style.backgroundClip="";s.clearCloneStyle="content-box"===
xa.style.backgroundClip;Ia=xa=null;d.extend(s,{reliableHiddenOffsets:function(){if(null!=eb)return eb;var a,b,c;b=t.createElement("div");var d=t.getElementsByTagName("body")[0];if(d)return b.setAttribute("className","t"),b.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=t.createElement("div"),a.style.cssText=Ib,d.appendChild(a).appendChild(b),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",b=b.getElementsByTagName("td"),b[0].style.cssText="padding:0;margin:0;border:0;display:none",
c=0===b[0].offsetHeight,b[0].style.display="",b[1].style.display="none",eb=c&&0===b[0].offsetHeight,d.removeChild(a),eb},boxSizing:function(){null==Jb&&Kb();return Jb},boxSizingReliable:function(){null==bb&&Kb();return bb},pixelPosition:function(){null==cb&&Kb();return cb},reliableMarginRight:function(){var a,b,d,f;if(null==db&&c.getComputedStyle){a=t.getElementsByTagName("body")[0];if(!a)return;b=t.createElement("div");d=t.createElement("div");b.style.cssText=Ib;a.appendChild(b).appendChild(d);f=
d.appendChild(t.createElement("div"));f.style.cssText=d.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";f.style.marginRight=f.style.width="0";d.style.width="1px";db=!parseFloat((c.getComputedStyle(f,null)||{}).marginRight);a.removeChild(b)}return db}});d.swap=function(a,b,c,d){var f,e={};for(f in b)e[f]=a.style[f],a.style[f]=b[f];c=c.apply(a,d||[]);for(f in b)a.style[f]=e[f];return c};var Lb=/alpha\([^)]*\)/i,
Hd=/opacity\s*=\s*([^)]*)/,Id=/^(none|table(?!-c[ea]).+)/,Zc=RegExp("^("+Ya+")(.*)$","i"),Jd=RegExp("^([+-])=("+Ya+")","i"),Kd={position:"absolute",visibility:"hidden",display:"block"},Kc={letterSpacing:0,fontWeight:400},$b=["Webkit","O","Moz","ms"];d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=ka(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":s.cssFloat?
"cssFloat":"styleFloat"},style:function(a,b,c,f){if(a&&!(3===a.nodeType||8===a.nodeType||!a.style)){var e,h,p,j=d.camelCase(b),l=a.style;b=d.cssProps[j]||(d.cssProps[j]=Zb(l,j));p=d.cssHooks[b]||d.cssHooks[j];if(void 0!==c){h=typeof c;if("string"===h&&(e=Jd.exec(c)))c=(e[1]+1)*e[2]+parseFloat(d.css(a,b)),h="number";if(!(null==c||c!==c))if("number"===h&&!d.cssNumber[j]&&(c+="px"),!s.clearCloneStyle&&(""===c&&0===b.indexOf("background"))&&(l[b]="inherit"),!p||!("set"in p)||void 0!==(c=p.set(a,c,f)))try{l[b]=
"",l[b]=c}catch(r){}}else return p&&"get"in p&&void 0!==(e=p.get(a,!1,f))?e:l[b]}},css:function(a,b,c,f){var e,h;h=d.camelCase(b);b=d.cssProps[h]||(d.cssProps[h]=Zb(a.style,h));(h=d.cssHooks[b]||d.cssHooks[h])&&"get"in h&&(e=h.get(a,!0,c));void 0===e&&(e=ka(a,b,f));"normal"===e&&b in Kc&&(e=Kc[b]);return""===c||c?(a=parseFloat(e),!0===c||d.isNumeric(a)?a||0:e):e}});d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,f){if(c)return 0===a.offsetWidth&&Id.test(d.css(a,"display"))?
d.swap(a,Kd,function(){return dc(a,b,f)}):dc(a,b,f)},set:function(a,c,f){var e=f&&ja(a);return bc(a,c,f?cc(a,b,f,s.boxSizing()&&"border-box"===d.css(a,"boxSizing",!1,e),e):0)}}});s.opacity||(d.cssHooks.opacity={get:function(a,b){return Hd.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,f=a.currentStyle,e=d.isNumeric(b)?"alpha(opacity="+100*b+")":"",h=f&&f.filter||c.filter||"";c.zoom=1;if((1<=b||""===b)&&""===
d.trim(h.replace(Lb,""))&&c.removeAttribute)if(c.removeAttribute("filter"),""===b||f&&!f.filter)return;c.filter=Lb.test(h)?h.replace(Lb,e):h+" "+e}});d.cssHooks.marginRight=Yb(s.reliableMarginRight,function(a,b){if(b)return d.swap(a,{display:"inline-block"},ka,[a,"marginRight"])});d.each({margin:"",padding:"",border:"Width"},function(a,b){d.cssHooks[a+b]={expand:function(c){var d=0,f={};for(c="string"===typeof c?c.split(" "):[c];4>d;d++)f[a+ia[d]+b]=c[d]||c[d-2]||c[0];return f}};Jc.test(a)||(d.cssHooks[a+
b].set=bc)});d.fn.extend({css:function(a,b){return oa(this,function(a,b,g){var c,f={},e=0;if(d.isArray(b)){g=ja(a);for(c=b.length;e<c;e++)f[b[e]]=d.css(a,b[e],!1,g);return f}return void 0!==g?d.style(a,b,g):d.css(a,b)},a,b,1<arguments.length)},show:function(){return ac(this,!0)},hide:function(){return ac(this)},toggle:function(a){return"boolean"===typeof a?a?this.show():this.hide():this.each(function(){Ba(this)?d(this).show():d(this).hide()})}});d.Tween=K;K.prototype={constructor:K,init:function(a,
b,c,f,e,h){this.elem=a;this.prop=c;this.easing=e||"swing";this.options=b;this.start=this.now=this.cur();this.end=f;this.unit=h||(d.cssNumber[c]?"":"px")},cur:function(){var a=K.propHooks[this.prop];return a&&a.get?a.get(this):K.propHooks._default.get(this)},run:function(a){var b,c=K.propHooks[this.prop];this.pos=this.options.duration?b=d.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):b=a;this.now=(this.end-this.start)*b+this.start;this.options.step&&this.options.step.call(this.elem,
this.now,this);c&&c.set?c.set(this):K.propHooks._default.set(this);return this}};K.prototype.init.prototype=K.prototype;K.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=d.css(a.elem,a.prop,"");return!a||"auto"===a?0:a},set:function(a){if(d.fx.step[a.prop])d.fx.step[a.prop](a);else a.elem.style&&(null!=a.elem.style[d.cssProps[a.prop]]||d.cssHooks[a.prop])?d.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}};K.propHooks.scrollTop=
K.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}};d.easing={linear:function(a){return a},swing:function(a){return 0.5-Math.cos(a*Math.PI)/2}};d.fx=K.prototype.init;d.fx.step={};var ra,fb,Ld=/^(?:toggle|show|hide)$/,Lc=RegExp("^(?:([+-])=|)("+Ya+")([a-z%]*)$","i"),Md=/queueHooks$/,Ma=[function(a,b,c){var f,e,h,p,j,l,r=this,m={},n=a.style,v=a.nodeType&&Ba(a),A=d._data(a,"fxshow");c.queue||(p=d._queueHooks(a,"fx"),null==p.unqueued&&(p.unqueued=0,j=p.empty.fire,
p.empty.fire=function(){p.unqueued||j()}),p.unqueued++,r.always(function(){r.always(function(){p.unqueued--;d.queue(a,"fx").length||p.empty.fire()})}));if(1===a.nodeType&&("height"in b||"width"in b))c.overflow=[n.overflow,n.overflowX,n.overflowY],e=d.css(a,"display"),l=Wb(a.nodeName),"none"===e&&(e=l),"inline"===e&&"none"===d.css(a,"float")&&(!s.inlineBlockNeedsLayout||"inline"===l?n.display="inline-block":n.zoom=1);c.overflow&&(n.overflow="hidden",s.shrinkWrapBlocks()||r.always(function(){n.overflow=
c.overflow[0];n.overflowX=c.overflow[1];n.overflowY=c.overflow[2]}));for(f in b)if(e=b[f],Ld.exec(e)){delete b[f];h=h||"toggle"===e;if(e===(v?"hide":"show"))if("show"===e&&A&&void 0!==A[f])v=!0;else continue;m[f]=A&&A[f]||d.style(a,f)}if(!d.isEmptyObject(m))for(f in A?"hidden"in A&&(v=A.hidden):A=d._data(a,"fxshow",{}),h&&(A.hidden=!v),v?d(a).show():r.done(function(){d(a).hide()}),r.done(function(){var b;d._removeData(a,"fxshow");for(b in m)d.style(a,b,m[b])}),m)b=fc(v?A[f]:0,f,r),f in A||(A[f]=b.start,
v&&(b.end=b.start,b.start="width"===f||"height"===f?1:0))}],Ca={"*":[function(a,b){var c=this.createTween(a,b),f=c.cur(),e=Lc.exec(b),h=e&&e[3]||(d.cssNumber[a]?"":"px"),p=(d.cssNumber[a]||"px"!==h&&+f)&&Lc.exec(d.css(c.elem,a)),j=1,l=20;if(p&&p[3]!==h){h=h||p[3];e=e||[];p=+f||1;do j=j||".5",p/=j,d.style(c.elem,a,p+h);while(j!==(j=c.cur()/f)&&1!==j&&--l)}e&&(p=c.start=+p||+f||0,c.unit=h,c.end=e[1]?p+(e[1]+1)*e[2]:+e[2]);return c}]};d.Animation=d.extend(gc,{tweener:function(a,b){d.isFunction(a)?(b=
a,a=["*"]):a=a.split(" ");for(var c,f=0,e=a.length;f<e;f++)c=a[f],Ca[c]=Ca[c]||[],Ca[c].unshift(b)},prefilter:function(a,b){b?Ma.unshift(a):Ma.push(a)}});d.speed=function(a,b,c){var f=a&&"object"===typeof a?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};f.duration=d.fx.off?0:"number"===typeof f.duration?f.duration:f.duration in d.fx.speeds?d.fx.speeds[f.duration]:d.fx.speeds._default;if(null==f.queue||!0===f.queue)f.queue="fx";f.old=f.complete;
f.complete=function(){d.isFunction(f.old)&&f.old.call(this);f.queue&&d.dequeue(this,f.queue)};return f};d.fn.extend({fadeTo:function(a,b,c,d){return this.filter(Ba).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,f){var e=d.isEmptyObject(a),h=d.speed(b,c,f);b=function(){var b=gc(this,d.extend({},a),h);(e||d._data(this,"finish"))&&b.stop(!0)};b.finish=b;return e||!1===h.queue?this.each(b):this.queue(h.queue,b)},stop:function(a,b,c){var f=function(a){var b=a.stop;delete a.stop;
b(c)};"string"!==typeof a&&(c=b,b=a,a=void 0);b&&!1!==a&&this.queue(a||"fx",[]);return this.each(function(){var b=!0,g=null!=a&&a+"queueHooks",e=d.timers,h=d._data(this);if(g)h[g]&&h[g].stop&&f(h[g]);else for(g in h)h[g]&&(h[g].stop&&Md.test(g))&&f(h[g]);for(g=e.length;g--;)if(e[g].elem===this&&(null==a||e[g].queue===a))e[g].anim.stop(c),b=!1,e.splice(g,1);(b||!c)&&d.dequeue(this,a)})},finish:function(a){!1!==a&&(a=a||"fx");return this.each(function(){var b,c=d._data(this),f=c[a+"queue"];b=c[a+"queueHooks"];
var e=d.timers,h=f?f.length:0;c.finish=!0;d.queue(this,a,[]);b&&b.stop&&b.stop.call(this,!0);for(b=e.length;b--;)e[b].elem===this&&e[b].queue===a&&(e[b].anim.stop(!0),e.splice(b,1));for(b=0;b<h;b++)f[b]&&f[b].finish&&f[b].finish.call(this);delete c.finish})}});d.each(["toggle","show","hide"],function(a,b){var c=d.fn[b];d.fn[b]=function(a,d,f){return null==a||"boolean"===typeof a?c.apply(this,arguments):this.animate(La(b,!0),a,d,f)}});d.each({slideDown:La("show"),slideUp:La("hide"),slideToggle:La("toggle"),
fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}});d.timers=[];d.fx.tick=function(){var a,b=d.timers,c=0;for(ra=d.now();c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||d.fx.stop();ra=void 0};d.fx.timer=function(a){d.timers.push(a);a()?d.fx.start():d.timers.pop()};d.fx.interval=13;d.fx.start=function(){fb||(fb=setInterval(d.fx.tick,d.fx.interval))};d.fx.stop=function(){clearInterval(fb);
fb=null};d.fx.speeds={slow:600,fast:200,_default:400};d.fn.delay=function(a,b){a=d.fx?d.fx.speeds[a]||a:a;return this.queue(b||"fx",function(b,g){var c=setTimeout(b,a);g.stop=function(){clearTimeout(c)}})};var gb,fa,Mb,Nb,Ja=t.createElement("div");Ja.setAttribute("className","t");Ja.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";gb=Ja.getElementsByTagName("a")[0];Mb=t.createElement("select");Nb=Mb.appendChild(t.createElement("option"));fa=Ja.getElementsByTagName("input")[0];
gb.style.cssText="top:1px";s.getSetAttribute="t"!==Ja.className;s.style=/top/.test(gb.getAttribute("style"));s.hrefNormalized="/a"===gb.getAttribute("href");s.checkOn=!!fa.value;s.optSelected=Nb.selected;s.enctype=!!t.createElement("form").enctype;Mb.disabled=!0;s.optDisabled=!Nb.disabled;fa=t.createElement("input");fa.setAttribute("value","");s.input=""===fa.getAttribute("value");fa.value="t";fa.setAttribute("type","radio");s.radioValue="t"===fa.value;var Nd=/\r/g;d.fn.extend({val:function(a){var b,
c,f,e=this[0];if(arguments.length)return f=d.isFunction(a),this.each(function(c){if(1===this.nodeType&&(c=f?a.call(this,c,d(this).val()):a,null==c?c="":"number"===typeof c?c+="":d.isArray(c)&&(c=d.map(c,function(a){return null==a?"":a+""})),b=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],!b||!("set"in b)||void 0===b.set(this,c,"value")))this.value=c});if(e){if((b=d.valHooks[e.type]||d.valHooks[e.nodeName.toLowerCase()])&&"get"in b&&void 0!==(c=b.get(e,"value")))return c;c=e.value;
return"string"===typeof c?c.replace(Nd,""):null==c?"":c}}});d.extend({valHooks:{option:{get:function(a){var b=d.find.attr(a,"value");return null!=b?b:d.text(a)}},select:{get:function(a){for(var b,c=a.options,f=a.selectedIndex,e=(a="select-one"===a.type||0>f)?null:[],h=a?f+1:c.length,p=0>f?h:a?f:0;p<h;p++)if(b=c[p],(b.selected||p===f)&&(s.optDisabled?!b.disabled:null===b.getAttribute("disabled"))&&(!b.parentNode.disabled||!d.nodeName(b.parentNode,"optgroup"))){b=d(b).val();if(a)return b;e.push(b)}return e},
set:function(a,b){for(var c,f,e=a.options,h=d.makeArray(b),p=e.length;p--;)if(f=e[p],0<=d.inArray(d.valHooks.option.get(f),h))try{f.selected=c=!0}catch(j){f.scrollHeight}else f.selected=!1;c||(a.selectedIndex=-1);return e}}}});d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(a,b){if(d.isArray(b))return a.checked=0<=d.inArray(d(a).val(),b)}};s.checkOn||(d.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var ya,Mc,ga=d.expr.attrHandle,Ob=/^(?:checked|selected)$/i,
pa=s.getSetAttribute,hb=s.input;d.fn.extend({attr:function(a,b){return oa(this,d.attr,a,b,1<arguments.length)},removeAttr:function(a){return this.each(function(){d.removeAttr(this,a)})}});d.extend({attr:function(a,b,c){var f,e,h=a.nodeType;if(a&&!(3===h||8===h||2===h)){if(typeof a.getAttribute===P)return d.prop(a,b,c);if(1!==h||!d.isXMLDoc(a))b=b.toLowerCase(),f=d.attrHooks[b]||(d.expr.match.bool.test(b)?Mc:ya);if(void 0!==c)if(null===c)d.removeAttr(a,b);else{if(f&&"set"in f&&void 0!==(e=f.set(a,
c,b)))return e;a.setAttribute(b,c+"");return c}else{if(f&&"get"in f&&null!==(e=f.get(a,b)))return e;e=d.find.attr(a,b);return null==e?void 0:e}}},removeAttr:function(a,b){var c,f,e=0,h=b&&b.match(V);if(h&&1===a.nodeType)for(;c=h[e++];)f=d.propFix[c]||c,d.expr.match.bool.test(c)?hb&&pa||!Ob.test(c)?a[f]=!1:a[d.camelCase("default-"+c)]=a[f]=!1:d.attr(a,c,""),a.removeAttribute(pa?c:f)},attrHooks:{type:{set:function(a,b){if(!s.radioValue&&"radio"===b&&d.nodeName(a,"input")){var c=a.value;a.setAttribute("type",
b);c&&(a.value=c);return b}}}}});Mc={set:function(a,b,c){!1===b?d.removeAttr(a,c):hb&&pa||!Ob.test(c)?a.setAttribute(!pa&&d.propFix[c]||c,c):a[d.camelCase("default-"+c)]=a[c]=!0;return c}};d.each(d.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ga[b]||d.find.attr;ga[b]=hb&&pa||!Ob.test(b)?function(a,b,g){var d,f;g||(f=ga[b],ga[b]=d,d=null!=c(a,b,g)?b.toLowerCase():null,ga[b]=f);return d}:function(a,b,c){if(!c)return a[d.camelCase("default-"+b)]?b.toLowerCase():null}});if(!hb||!pa)d.attrHooks.value=
{set:function(a,b,c){if(d.nodeName(a,"input"))a.defaultValue=b;else return ya&&ya.set(a,b,c)}};pa||(ya={set:function(a,b,c){var d=a.getAttributeNode(c);d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c));d.value=b+="";if("value"===c||b===a.getAttribute(c))return b}},ga.id=ga.name=ga.coords=function(a,b,c){var d;if(!c)return(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},d.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);if(c&&c.specified)return c.value},set:ya.set},d.attrHooks.contenteditable=
{set:function(a,b,c){ya.set(a,""===b?!1:b,c)}},d.each(["width","height"],function(a,b){d.attrHooks[b]={set:function(a,c){if(""===c)return a.setAttribute(b,"auto"),c}}}));s.style||(d.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var Od=/^(?:input|select|textarea|button|object)$/i,Pd=/^(?:a|area)$/i;d.fn.extend({prop:function(a,b){return oa(this,d.prop,a,b,1<arguments.length)},removeProp:function(a){a=d.propFix[a]||a;return this.each(function(){try{this[a]=
void 0,delete this[a]}catch(b){}})}});d.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var f,e,h;h=a.nodeType;if(a&&!(3===h||8===h||2===h)){if(h=1!==h||!d.isXMLDoc(a))b=d.propFix[b]||b,e=d.propHooks[b];return void 0!==c?e&&"set"in e&&void 0!==(f=e.set(a,c,b))?f:a[b]=c:e&&"get"in e&&null!==(f=e.get(a,b))?f:a[b]}},propHooks:{tabIndex:{get:function(a){var b=d.find.attr(a,"tabindex");return b?parseInt(b,10):Od.test(a.nodeName)||Pd.test(a.nodeName)&&a.href?0:-1}}}});s.hrefNormalized||
d.each(["href","src"],function(a,b){d.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}});s.optSelected||(d.propHooks.selected={get:function(a){if(a=a.parentNode)a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex;return null}});d.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),function(){d.propFix[this.toLowerCase()]=this});s.enctype||(d.propFix.enctype="encoding");var Pb=/[\t\r\n\f]/g;d.fn.extend({addClass:function(a){var b,
c,f,e,h,p=0,j=this.length;b="string"===typeof a&&a;if(d.isFunction(a))return this.each(function(b){d(this).addClass(a.call(this,b,this.className))});if(b)for(b=(a||"").match(V)||[];p<j;p++)if(c=this[p],f=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(Pb," "):" ")){for(h=0;e=b[h++];)0>f.indexOf(" "+e+" ")&&(f+=e+" ");f=d.trim(f);c.className!==f&&(c.className=f)}return this},removeClass:function(a){var b,c,f,e,h,p=0,j=this.length;b=0===arguments.length||"string"===typeof a&&a;if(d.isFunction(a))return this.each(function(b){d(this).removeClass(a.call(this,
b,this.className))});if(b)for(b=(a||"").match(V)||[];p<j;p++)if(c=this[p],f=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(Pb," "):"")){for(h=0;e=b[h++];)for(;0<=f.indexOf(" "+e+" ");)f=f.replace(" "+e+" "," ");f=a?d.trim(f):"";c.className!==f&&(c.className=f)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"===typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):d.isFunction(a)?this.each(function(c){d(this).toggleClass(a.call(this,c,this.className,b),b)}):
this.each(function(){if("string"===c)for(var b,g=0,f=d(this),e=a.match(V)||[];b=e[g++];)f.hasClass(b)?f.removeClass(b):f.addClass(b);else if(c===P||"boolean"===c)this.className&&d._data(this,"__className__",this.className),this.className=this.className||!1===a?"":d._data(this,"__className__")||""})},hasClass:function(a){a=" "+a+" ";for(var b=0,c=this.length;b<c;b++)if(1===this[b].nodeType&&0<=(" "+this[b].className+" ").replace(Pb," ").indexOf(a))return!0;return!1}});d.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,b){d.fn[b]=function(a,c){return 0<arguments.length?this.on(b,null,a,c):this.trigger(b)}});d.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,f){return this.on(b,a,c,f)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var Qb=d.now(),Rb=/\?/,Qd=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
d.parseJSON=function(a){if(c.JSON&&c.JSON.parse)return c.JSON.parse(a+"");var b,f=null,e=d.trim(a+"");return e&&!d.trim(e.replace(Qd,function(a,c,d,e){b&&c&&(f=0);if(0===f)return a;b=d||c;f+=!e-!d;return""}))?Function("return "+e)():d.error("Invalid JSON: "+a)};d.parseXML=function(a){var b,f;if(!a||"string"!==typeof a)return null;try{c.DOMParser?(f=new DOMParser,b=f.parseFromString(a,"text/xml")):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a))}catch(e){b=void 0}(!b||!b.documentElement||
b.getElementsByTagName("parsererror").length)&&d.error("Invalid XML: "+a);return b};var qa,ha,Rd=/#.*$/,Nc=/([?&])_=[^&]*/,Sd=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Td=/^(?:GET|HEAD)$/,Ud=/^\/\//,Oc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Pc={},mb={},Qc="*/".concat("*");try{ha=location.href}catch(de){ha=t.createElement("a"),ha.href="",ha=ha.href}qa=Oc.exec(ha.toLowerCase())||[];d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ha,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(qa[1]),
global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qc,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":d.parseJSON,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?nb(nb(a,
d.ajaxSettings),b):nb(d.ajaxSettings,a)},ajaxPrefilter:hc(Pc),ajaxTransport:hc(mb),ajax:function(a,b){function c(a,b,f,g){var e,k,m,q;q=b;if(2!==x){x=2;j&&clearTimeout(j);r=void 0;p=g||"";z.readyState=0<a?4:0;g=200<=a&&300>a||304===a;if(f){m=n;for(var t=z,I,w,y,E,B=m.contents,M=m.dataTypes;"*"===M[0];)M.shift(),void 0===w&&(w=m.mimeType||t.getResponseHeader("Content-Type"));if(w)for(E in B)if(B[E]&&B[E].test(w)){M.unshift(E);break}if(M[0]in f)y=M[0];else{for(E in f){if(!M[0]||m.converters[E+" "+M[0]]){y=
E;break}I||(I=E)}y=y||I}y?(y!==M[0]&&M.unshift(y),m=f[y]):m=void 0}a:{f=n;I=m;w=z;y=g;var F,C,G,t={},B=f.dataTypes.slice();if(B[1])for(C in f.converters)t[C.toLowerCase()]=f.converters[C];for(E=B.shift();E;)if(f.responseFields[E]&&(w[f.responseFields[E]]=I),!G&&(y&&f.dataFilter)&&(I=f.dataFilter(I,f.dataType)),G=E,E=B.shift())if("*"===E)E=G;else if("*"!==G&&G!==E){C=t[G+" "+E]||t["* "+E];if(!C)for(F in t)if(m=F.split(" "),m[1]===E&&(C=t[G+" "+m[0]]||t["* "+m[0]])){!0===C?C=t[F]:!0!==t[F]&&(E=m[0],
B.unshift(m[1]));break}if(!0!==C)if(C&&f["throws"])I=C(I);else try{I=C(I)}catch(H){m={state:"parsererror",error:C?H:"No conversion from "+G+" to "+E};break a}}m={state:"success",data:I}}if(g)n.ifModified&&((q=z.getResponseHeader("Last-Modified"))&&(d.lastModified[h]=q),(q=z.getResponseHeader("etag"))&&(d.etag[h]=q)),204===a||"HEAD"===n.type?q="nocontent":304===a?q="notmodified":(q=m.state,e=m.data,k=m.error,g=!k);else if(k=q,a||!q)q="error",0>a&&(a=0);z.status=a;z.statusText=(b||q)+"";g?D.resolveWith(v,
[e,q,z]):D.rejectWith(v,[z,q,k]);z.statusCode(u);u=void 0;l&&A.trigger(g?"ajaxSuccess":"ajaxError",[z,n,g?e:k]);s.fireWith(v,[z,q]);l&&(A.trigger("ajaxComplete",[z,n]),--d.active||d.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=void 0);b=b||{};var f,e,h,p,j,l,r,m,n=d.ajaxSetup({},b),v=n.context||n,A=n.context&&(v.nodeType||v.jquery)?d(v):d.event,D=d.Deferred(),s=d.Callbacks("once memory"),u=n.statusCode||{},t={},w={},x=0,y="canceled",z={readyState:0,getResponseHeader:function(a){var b;if(2===
x){if(!m)for(m={};b=Sd.exec(p);)m[b[1].toLowerCase()]=b[2];b=m[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===x?p:null},setRequestHeader:function(a,b){var c=a.toLowerCase();x||(a=w[c]=w[c]||a,t[a]=b);return this},overrideMimeType:function(a){x||(n.mimeType=a);return this},statusCode:function(a){var b;if(a)if(2>x)for(b in a)u[b]=[u[b],a[b]];else z.always(a[z.status]);return this},abort:function(a){a=a||y;r&&r.abort(a);c(0,a);return this}};D.promise(z).complete=
s.add;z.success=z.done;z.error=z.fail;n.url=((a||n.url||ha)+"").replace(Rd,"").replace(Ud,qa[1]+"//");n.type=b.method||b.type||n.method||n.type;n.dataTypes=d.trim(n.dataType||"*").toLowerCase().match(V)||[""];null==n.crossDomain&&(f=Oc.exec(n.url.toLowerCase()),n.crossDomain=!(!f||!(f[1]!==qa[1]||f[2]!==qa[2]||(f[3]||("http:"===f[1]?"80":"443"))!==(qa[3]||("http:"===qa[1]?"80":"443")))));n.data&&(n.processData&&"string"!==typeof n.data)&&(n.data=d.param(n.data,n.traditional));ic(Pc,n,b,z);if(2===
x)return z;(l=n.global)&&0===d.active++&&d.event.trigger("ajaxStart");n.type=n.type.toUpperCase();n.hasContent=!Td.test(n.type);h=n.url;n.hasContent||(n.data&&(h=n.url+=(Rb.test(h)?"&":"?")+n.data,delete n.data),!1===n.cache&&(n.url=Nc.test(h)?h.replace(Nc,"$1_="+Qb++):h+(Rb.test(h)?"&":"?")+"_="+Qb++));n.ifModified&&(d.lastModified[h]&&z.setRequestHeader("If-Modified-Since",d.lastModified[h]),d.etag[h]&&z.setRequestHeader("If-None-Match",d.etag[h]));(n.data&&n.hasContent&&!1!==n.contentType||b.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]?", "+Qc+"; q=0.01":""):n.accepts["*"]);for(e in n.headers)z.setRequestHeader(e,n.headers[e]);if(n.beforeSend&&(!1===n.beforeSend.call(v,z,n)||2===x))return z.abort();y="abort";for(e in{success:1,error:1,complete:1})z[e](n[e]);if(r=ic(mb,n,b,z)){z.readyState=1;l&&A.trigger("ajaxSend",[z,n]);n.async&&0<n.timeout&&(j=setTimeout(function(){z.abort("timeout")},
n.timeout));try{x=1,r.send(t,c)}catch(E){if(2>x)c(-1,E);else throw E;}}else c(-1,"No Transport");return z},getJSON:function(a,b,c){return d.get(a,b,c,"json")},getScript:function(a,b){return d.get(a,void 0,b,"script")}});d.each(["get","post"],function(a,b){d[b]=function(a,c,f,e){d.isFunction(c)&&(e=e||f,f=c,c=void 0);return d.ajax({url:a,type:b,dataType:e,data:c,success:f})}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.on(b,
a)}});d._evalUrl=function(a){return d.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})};d.fn.extend({wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.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 d.isFunction(a)?
this.each(function(b){d(this).wrapInner(a.call(this,b))}):this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=d.isFunction(a);return this.each(function(c){d(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()}});d.expr.filters.hidden=function(a){return 0>=a.offsetWidth&&0>=a.offsetHeight||!s.reliableHiddenOffsets()&&"none"===(a.style&&
a.style.display||d.css(a,"display"))};d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)};var Vd=/%20/g,ad=/\[\]$/,Rc=/\r?\n/g,Wd=/^(?:submit|button|image|reset|file)$/i,Xd=/^(?:input|select|textarea|keygen)/i;d.param=function(a,b){var c,f=[],e=function(a,b){b=d.isFunction(b)?b():null==b?"":b;f[f.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};void 0===b&&(b=d.ajaxSettings&&d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){e(this.name,
this.value)});else for(c in a)ob(c,a[c],b,e);return f.join("&").replace(Vd,"+")};d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=d.prop(this,"elements");return a?d.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!d(this).is(":disabled")&&Xd.test(this.nodeName)&&!Wd.test(a)&&(this.checked||!kb.test(a))}).map(function(a,b){var c=d(this).val();return null==c?null:d.isArray(c)?d.map(c,function(a){return{name:b.name,
value:a.replace(Rc,"\r\n")}}):{name:b.name,value:c.replace(Rc,"\r\n")}}).get()}});d.ajaxSettings.xhr=void 0!==c.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&jc()))a:{try{a=new c.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:jc;d.ajaxSettings.xhr=void 0===c.ActiveXObject?pb:function(){return(this.url==t.location||0==this.url.indexOf("http")||!this.isLocal)&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&
pb()||pb(1)};var Yd=0,ib={},jb=d.ajaxSettings.xhr();if(c.ActiveXObject)d(c).on("unload",function(){for(var a in ib)ib[a](void 0,!0)});s.cors=!!jb&&"withCredentials"in jb;(jb=s.ajax=!!jb)&&d.ajaxTransport(function(a){if(!a.crossDomain||s.cors){var b;return{send:function(c,f){var e,h=a.xhr(),p=++Yd;console.log("xhr.open async="+a.async+" url="+a.url);h.open(a.type,a.url,a.async,a.username,a.password);if(a.xhrFields)for(e in a.xhrFields)h[e]=a.xhrFields[e];a.mimeType&&h.overrideMimeType&&h.overrideMimeType(a.mimeType);
!a.crossDomain&&!c["X-Requested-With"]&&(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&h.setRequestHeader(e,c[e]+"");h.send(a.hasContent&&a.data||null);b=function(c,e){var k,j,l;if(b&&(e||4===h.readyState))if(delete ib[p],b=void 0,h.onreadystatechange=d.noop,e)4!==h.readyState&&h.abort();else{l={};k=h.status;"string"===typeof h.responseText&&(l.text=h.responseText);try{j=h.statusText}catch(n){j=""}!k&&a.isLocal&&!a.crossDomain?k=l.text?200:404:1223===k&&(k=204)}l&&f(k,j,l,h.getAllResponseHeaders())};
a.async?4===h.readyState?setTimeout(b):h.onreadystatechange=ib[p]=b:b()},abort:function(){b&&b(void 0,!0)}}}});d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){d.globalEval(a);return a}}});d.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});d.ajaxTransport("script",function(a){if(a.crossDomain){var b,
c=t.head||d("head")[0]||t.documentElement;return{send:function(f,d){b=t.createElement("script");b.async=!0;a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,c){if(c||!b.readyState||/loaded|complete/.test(b.readyState))b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||d(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(void 0,!0)}}}});var Sc=[],Sb=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",
jsonpCallback:function(){var a=Sc.pop()||d.expando+"_"+Qb++;this[a]=!0;return a}});d.ajaxPrefilter("json jsonp",function(a,b,f){var e,h,p,j=!1!==a.jsonp&&(Sb.test(a.url)?"url":"string"===typeof a.data&&!(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&Sb.test(a.data)&&"data");if(j||"jsonp"===a.dataTypes[0])return e=a.jsonpCallback=d.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,j?a[j]=a[j].replace(Sb,"$1"+e):!1!==a.jsonp&&(a.url+=(Rb.test(a.url)?"&":"?")+a.jsonp+"="+
e),a.converters["script json"]=function(){p||d.error(e+" was not called");return p[0]},a.dataTypes[0]="json",h=c[e],c[e]=function(){p=arguments},f.always(function(){c[e]=h;a[e]&&(a.jsonpCallback=b.jsonpCallback,Sc.push(e));p&&d.isFunction(h)&&h(p[0]);p=h=void 0}),"script"});d.parseHTML=function(a,b,c){if(!a||"string"!==typeof a)return null;"boolean"===typeof b&&(c=b,b=!1);b=b||t;var f=yc.exec(a);c=!c&&[];if(f)return[b.createElement(f[1])];f=d.buildFragment([a],b,c);c&&c.length&&d(c).remove();return d.merge([],
f.childNodes)};var Tc=d.fn.load;d.fn.load=function(a,b,c){if("string"!==typeof a&&Tc)return Tc.apply(this,arguments);var f,e,h,p=this,j=a.indexOf(" ");0<=j&&(f=a.slice(j,a.length),a=a.slice(0,j));d.isFunction(b)?(c=b,b=void 0):b&&"object"===typeof b&&(h="POST");0<p.length&&d.ajax({url:a,type:h,dataType:"html",data:b}).done(function(a){e=arguments;p.html(f?d("<div>").append(d.parseHTML(a)).find(f):a)}).complete(c&&function(a,b){p.each(c,e||[a.responseText,b,a])});return this};d.expr.filters.animated=
function(a){return d.grep(d.timers,function(b){return a===b.elem}).length};var Uc=c.document.documentElement;d.offset={setOffset:function(a,b,c){var f,e,h,p=d.css(a,"position"),j=d(a),l={};"static"===p&&(a.style.position="relative");h=j.offset();e=d.css(a,"top");f=d.css(a,"left");("absolute"===p||"fixed"===p)&&-1<d.inArray("auto",[e,f])?(f=j.position(),e=f.top,f=f.left):(e=parseFloat(e)||0,f=parseFloat(f)||0);d.isFunction(b)&&(b=b.call(a,c,h));null!=b.top&&(l.top=b.top-h.top+e);null!=b.left&&(l.left=
b.left-h.left+f);"using"in b?b.using.call(a,l):j.css(l)}};d.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){d.offset.setOffset(this,a,b)});var b,c,f={top:0,left:0},e=(c=this[0])&&c.ownerDocument;if(e){b=e.documentElement;if(!d.contains(b,c))return f;typeof c.getBoundingClientRect!==P&&(f=c.getBoundingClientRect());c=kc(e);return{top:f.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:f.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}}},position:function(){if(this[0]){var a,
b,c={top:0,left:0},f=this[0];"fixed"===d.css(f,"position")?b=f.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),d.nodeName(a[0],"html")||(c=a.offset()),c.top+=d.css(a[0],"borderTopWidth",!0),c.left+=d.css(a[0],"borderLeftWidth",!0));return{top:b.top-c.top-d.css(f,"marginTop",!0),left:b.left-c.left-d.css(f,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||Uc;a&&!d.nodeName(a,"html")&&"static"===d.css(a,"position");)a=a.offsetParent;return a||
Uc})}});d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);d.fn[a]=function(f){return oa(this,function(a,f,e){var h=kc(a);if(void 0===e)return h?b in h?h[b]:h.document.documentElement[f]:a[f];h?h.scrollTo(!c?e:d(h).scrollLeft(),c?e:d(h).scrollTop()):a[f]=e},a,f,arguments.length,null)}});d.each(["top","left"],function(a,b){d.cssHooks[b]=Yb(s.pixelPosition,function(a,c){if(c)return c=ka(a,b),Ka.test(c)?d(a).position()[b]+"px":c})});d.each({Height:"height",Width:"width"},
function(a,b){d.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,f){d.fn[f]=function(f,e){var h=arguments.length&&(c||"boolean"!==typeof f),p=c||(!0===f||!0===e?"margin":"border");return oa(this,function(b,c,f){return d.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(c=b.documentElement,Math.max(b.body["scroll"+a],c["scroll"+a],b.body["offset"+a],c["offset"+a],c["client"+a])):void 0===f?d.css(b,c,p):d.style(b,c,f,p)},b,h?f:void 0,h,null)}})});d.fn.size=function(){return this.length};
d.fn.andSelf=d.fn.addBack;"function"===typeof define&&define.amd&&define("jquery",[],function(){return d});var Zd=c.jQuery,$d=c.$;d.noConflict=function(a){c.$===d&&(c.$=$d);a&&c.jQuery===d&&(c.jQuery=Zd);return d};typeof m===P&&(c.jQuery=c.$=d);return d});
(function(c){function m(c){try{return c?new window.ActiveXObject("Microsoft.XMLHTTP"):new window.XMLHttpRequest}catch(j){}}c.ajaxSettings.xhr=void 0===window.ActiveXObject?m:function(){return(this.url==document.location||0==this.url.indexOf("http")||!this.isLocal)&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&m()||m(1)};c.ajaxTransport("+script",function(c){var j,l=document.head||jQuery("head")[0]||document.documentElement;return{send:function(n,m){j=document.createElement("script");c.scriptCharset&&
(j.charset=c.scriptCharset);j.src=c.url;j.onload=j.onreadystatechange=function(c,h){if(h||!j.readyState||/loaded|complete/.test(j.readyState))j.onload=j.onreadystatechange=null,j.parentNode&&j.parentNode.removeChild(j),j=null,h||m(200,"success")};l.insertBefore(j,l.firstChild)},abort:function(){if(j)j.onload(void 0,!0)}}});c.extend(c.support,{iecors:!!window.XDomainRequest});c.support.iecors?c.ajaxTransport(function(c){return{send:function(j,l){var n=new window.XDomainRequest;n.onload=function(){l(200,
"OK",{text:n.responseText},{"Content-Type":n.contentType})};c.xhrFields&&(n.onerror=c.xhrFields.error,n.ontimeout=c.xhrFields.timeout);n.open(c.type,c.url);n.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(l,n){var m=c.xhr();console.log("xhr.open binary async="+c.async+" url="+c.url);m.open(c.type,c.url,c.async);
var u=!1;try{m.hasOwnProperty("responseType")&&(m.responseType="arraybuffer",u=!0)}catch(w){}try{!u&&m.overrideMimeType&&m.overrideMimeType("text/plain; charset=x-user-defined")}catch(b){}!c.crossDomain&&!l["X-Requested-With"]&&(l["X-Requested-With"]="XMLHttpRequest");try{for(var f in l)m.setRequestHeader(f,l[f])}catch(e){}m.send(c.hasContent&&c.data||null);j=function(){var b=m.status,f="",e=m.getAllResponseHeaders(),l={};try{if(j&&4===m.readyState){j=void 0;try{l.text="string"===typeof m.responseText?
m.responseText:null}catch(u){}try{l.binary=m.response}catch(w){}try{f=m.statusText}catch(lb){f=""}!b&&c.isLocal&&!c.crossDomain?b=l.text?200:404:1223===b&&(b=204);n(b,f,l,e)}}catch(za){alert(za),n(-1,za)}};c.async?4===m.readyState?setTimeout(j):m.onreadystatechange=j:j()},abort:function(){}}}))})(jQuery);
(function(c,m,h,j){function l(h,l){function u(b){c(w).each(function(){self.Jmol&&(0<=l.indexOf("mouseup")||0<=l.indexOf("touchend"))&&Jmol._setMouseOwner(null);var e=c(this);this!==b.target&&!e.has(b.target).length&&e.triggerHandler(l,[b.target,b])})}l=l||h+j;var w=c(),b=h+"."+l+"-special-event";c.event.special[l]={setup:function(){w=w.add(this);1===w.length&&c(m).bind(b,u)},teardown:function(){self.Jmol&&Jmol._setMouseOwner(null);w=w.not(this);0===w.length&&c(m).unbind(b)},add:function(b){var c=
b.handler;b.handler=function(b,f){b.target=f;c.apply(this,arguments)}}}}c.map(h.split(" "),function(c){l(c)});l("focusin","focus"+j);l("focusout","blur"+j)})(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={});
Jmol._version||(Jmol=function(c){var m=function(c){return{rear:c++,header:c++,main:c++,image:c++,front:c++,fileOpener:c++,coverImage:c++,dialog:c++,menu:c+9E4,console:c+91E3,consoleImage:c+91001,monitorZIndex:c+99999}},m={_version:"$Date: 2019-06-08 00:17:46 -0500 (Sat, 08 Jun 2019) $",_alertNoBinary:!0,_allowedJmolSize:[25,2048,300],_appletCssClass:"",_appletCssText:"",_fileCache:null,_jarFile:null,_j2sPath:null,_use:null,_j2sLoadMonitorOpacity:90,_applets:{},_asynchronous:!0,_ajaxQueue:[],_persistentMenu:!1,
_getZOrders:m,_z:m(Jmol.z||9E3),_debugCode:!0,_debugCore:!1,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":null,".x3dna.org":null,"rruff.geo.arizona.edu":null,".rcsb.org":null,
"ftp.wwpdb.org":null,"pdbe.org":null,"materialsproject.org":null,".ebi.ac.uk":null,"pubchem.ncbi.nlm.nih.gov":null,"www.nmrdb.org/tools/jmol/predict.php":null,$:"https://cactus.nci.nih.gov/chemical/structure/%FILENCI/file?format=sdf&get3d=True",$$:"https://cactus.nci.nih.gov/chemical/structure/%FILENCI/file?format=sdf","=":"https://files.rcsb.org/download/%FILE.pdb","*":"https://www.ebi.ac.uk/pdbe/entry-files/download/%FILE.cif","==":"https://files.rcsb.org/ligands/download/%FILE.cif",":":"https://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,_isXHTML:!1,_lastAppletID:null,_mousePageX:null,_mouseOwner:null,_serverUrl:"https://your.server.here/jsmol.php",_syncId:(""+Math.random()).substring(3),
_touching:!1,_XhtmlElement:null,_XhtmlAppendChild:!1};c=c.location.href.toLowerCase();m._debugCore=0<=c.indexOf("j2sdebugcore");m._httpProto=0==c.indexOf("https")?"https://":"http://";m._isFile=0==c.indexOf("file:");m._isFile&&$.ajaxSetup({mimeType:"text/plain"});m._ajaxTestSite=m._httpProto+"google.com";c=m._isFile||0==c.indexOf("http://localhost")||0==c.indexOf("http://127.");m._tracker=!c&&"https://chemapps.stolaf.edu/jmol/JmolTracker.php?id=UA-45940799-1";m._isChrome=0<=navigator.userAgent.toLowerCase().indexOf("chrome");
m._isSafari=!m._isChrome&&0<=navigator.userAgent.toLowerCase().indexOf("safari");m._isMsie=void 0!==window.ActiveXObject;m._isEdge=0<=navigator.userAgent.indexOf("Edge/");m._useDataURI=!m._isSafari&&!m._isMsie&&!m._isEdge;window.requestAnimationFrame||(window.requestAnimationFrame=window.setTimeout);for(var h in Jmol)m[h]=Jmol[h];return m}(document,Jmol));
(function(c,m){c.__$=m;m(document).ready(function(){c._document=null});c.$=function(b,c){null==b&&alert(c+arguments.callee.caller.toString());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;b.url=c._fixProtocol(b.url);return m.ajax(b)};c._fixProtocol=function(b){0<=b.indexOf("get3d=True")&&(b=b.replace(/get3d\=True/,"get3d=true"));return 0==b.indexOf("http://www.rcsb.org/pdb/files/")&&0>b.indexOf("/ligand/")?
"http://files.rcsb.org/view/"+b.substring(30).replace(/\.gz/,""):0==b.indexOf("http://")&&("https://"==c._httpProto||0<b.indexOf(".gov/")||0==b.indexOf("http://www.materialsproject"))?"https"+b.substring(4):b};c._getNCIInfo=function(b,f){return c._getFileData("https://cactus.nci.nih.gov/chemical/structure/"+b+"/"+("name"==f?"names":f))};c.$appEvent=function(b,f,e,h){b=c.$(b,f);b.off(e)&&h&&b.on(e,h)};c.$resize=function(b){return m(window).resize(b)};c.$after=function(b,c){return m(b).after(c)};c.$append=
function(b,c){return m(b).append(c)};c.$bind=function(b,c,e){return e?m(b).bind(c,e):m(b).unbind(c)};c.$closest=function(b,c){return m(b).closest(c)};c.$get=function(b,c){return m(b).get(c)};c.$documentOff=function(b,c){return m(document).off(b,"#"+c)};c.$documentOn=function(b,c,e){return m(document).on(b,"#"+c,e)};c.$getAncestorDiv=function(b,c){return m("div."+c+":has(#"+b+")")[0]};c.$supportsIECrossDomainScripting=function(){return m.support.iecors};c.$attr=function(b,f,e){return c._$(b).attr(f,
e)};c.$css=function(b,f){return c._$(b).css(f)};c.$find=function(b,f){return c._$(b).find(f)};c.$focus=function(b){return c._$(b).focus()};c.$html=function(b,f){return c._$(b).html(f)};c.$offset=function(b){return c._$(b).offset()};c.$windowOn=function(b,c){return m(window).on(b,c)};c.$prop=function(b,f,e){var h=c._$(b);return 3==arguments.length?h.prop(f,e):h.prop(f)};c.$remove=function(b){return c._$(b).remove()};c.$scrollTo=function(b,f){var e=c._$(b);return e.scrollTop(0>f?e[0].scrollHeight:f)};
c.$setEnabled=function(b,f){return c._$(b).attr("disabled",f?null:"disabled")};c.$getSize=function(b){b=c._$(b);return[b.width(),b.height()]};c.$setSize=function(b,f,e){return c._$(b).width(f).height(e)};c.$is=function(b,f){return c._$(b).is(f)};c.$setVisible=function(b,f){var e=c._$(b);return f?e.show():e.hide()};c.$submit=function(b){return c._$(b).submit()};c.$val=function(b,f){var e=c._$(b);return 1==arguments.length?e.val():e.val(f)};c._clearVars=function(){delete jQuery;delete m;delete c;delete SwingController;
delete J;delete JM;delete JS;delete JSV;delete JU;delete JV;delete java;delete javajs;delete Clazz;delete c$};var h=document,j=window,l={};l.ua=navigator.userAgent.toLowerCase();var n;a:{n=["linux","unix","mac","win"];for(var v=n.length;v--;)if(-1!=l.ua.indexOf(n[v])){n=n[v];break a}n="unknown"}l.os=n;l.browser=function(){for(var b=l.ua,c="konqueror webkit omniweb opera webtv icab msie mozilla".split(" "),e=0;e<c.length;e++)if(0<=b.indexOf(c[e]))return c[e];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=j.WebGLRenderingContext&&
((b=h.createElement("canvas")).getContext("webgl")||b.getContext("experimental-webgl"))?1:-1}return 0<c.featureDetection._webGLtest};l.supportsLocalization=function(){for(var b=h.getElementsByTagName("meta"),c=b.length;0<=--c;)if(0<=b[c].outerHTML.toLowerCase().indexOf("utf-8"))return!0;return!1};l.supportsJava=function(){c.featureDetection._javaEnabled||(c.featureDetection._javaEnabled=c._isMsie?navigator.javaEnabled()?1:-1:navigator.javaEnabled()&&(!navigator.mimeTypes||navigator.mimeTypes["application/x-java-applet"])?
1:-1);return 0<c.featureDetection._javaEnabled};l.compliantBrowser=function(){var b=!!h.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=j.File&&j.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)"],["*","PDBe(macromolecules)"]];c._getGrabberOptions=function(b){if(0==
c._grabberOptions.length)return"";var f='<input type="text" id="ID_query" onfocus="jQuery(this).select()" onkeypress="if(13==event.which){Jmol._applets[\'ID\']._search();return false}" size="32" value="" />',e='<button id="ID_submit" onclick="Jmol._applets[\'ID\']._search()">Search</button></nobr>';1==c._grabberOptions.length?(f="<nobr>"+f+'<span style="display:none">',e="</span>"+e):f+="<br /><nobr>";for(var f=f+'<select id="ID_select">',h=0;h<c._grabberOptions.length;h++)var j=c._grabberOptions[h],
f=f+('<option value="'+j[0]+'" '+(0==h?"selected":"")+">"+j[1]+"</option>");f=(f+"</select>"+e).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,e){var h=[],j="";if(0==e.indexOf("ERROR"))j=e;else switch(c){case "=":c=e.split("<dimStructure.structureId>");h=["<table>"];for(e=1;e<c.length;e++)h.push('<tr><td valign=top><a href="javascript:Jmol.search('+b._id+",'="+
c[e].substring(0,4)+"')\">"+c[e].substring(0,4)+"</a></td>"),h.push("<td>"+c[e].split("Title>")[1].split("</")[0]+"</td></tr>");h.push("</table>");j=c.length-1+" matches";break;case "$":case ":":break;default:return}b._infoHeader=j;b._info=h.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 e=2,h=b.substring(0,e),j=c.db._DirectDatabaseCalls[h]||c.db._DirectDatabaseCalls[h=b.substring(0,--e)];j&&(":"==h?(h=b.toLowerCase(),isNaN(parseInt(b.substring(1)))?0==h.indexOf(":smiles:")?(j+="?POST?smiles="+b.substring(8),b="smiles"):0==h.indexOf(":cid:")?b="cid/"+b.substring(5):(0==h.indexOf(":name:")?b=b.substring(5):0==h.indexOf(":cas:")&&(b=b.substring(4)),b="name/"+encodeURIComponent(b.substring(e))):
b="cid/"+b.substring(1)):b=encodeURIComponent(b.substring(e)),0<=b.indexOf(".mmtf")?b="https://mmtf.rcsb.org/v1.0/full/"+b.replace(/\.mmtf/,""):0<=j.indexOf("FILENCI")?(b=b.replace(/\%2F/g,"/"),b=j.replace(/\%FILENCI/,b)):b=j.replace(/\%FILE/,b));return b};c._getRawDataFromServer=function(b,f,e,h,j,l){b="?call=getRawDataFromDatabase&database="+b+(0<=f.indexOf("?POST?")?"?POST?":"")+"&query="+encodeURIComponent(f)+(j?"&encoding=base64":"")+(l?"":"&script="+encodeURIComponent(c._getScriptForDatabase(b)));
return c._contactServer(b,e,h)};c._checkFileName=function(b,f,e){c._isDatabaseCall(f)&&(e&&c._setQueryTerm(b,f),f=c._getDirectDatabaseCall(f,!0),c._isDatabaseCall(f)&&(f=c._getDirectDatabaseCall(f,!1),e&&(e[0]=!0)));return f};c._checkCache=function(b,f,e){if(b._cacheFiles&&c._fileCache&&!f.endsWith(".js")){if(b=c._fileCache[f])return System.out.println("using "+b.length+" bytes of cached data for "+f),e(b),null;e=function(b,f){e(c._fileCache[b]=f)}}return e};c.playAudio=function(b){c.playAudio(null,
b)};c.playAudio=function(b,c){var e=c.get?function(b){return c.get(b)}:null,h=c.put?function(b,e){return c.put(b,e)}:null,j=e?e("audioFile"):c,l=e&&e("audioPlayer"),n=document.createElement("audio");h&&h("audioElement",n);var m=null;l&&(m=function(b){l.processUpdate(b)},l.myClip={open:function(){m("open")},start:function(){n.play();m("start")},loop:function(b){n.loop=0!=b},stop:function(){n.pause()},close:function(){m("close")},setMicrosecondPosition:function(b){n.currentTime=b/1E6}});n.controls=
"true";n.src=j;e&&e("loop")&&(n.loop="true");m&&(n.addEventListener("pause",function(){m("pause")}),n.addEventListener("play",function(){m("play")}),n.addEventListener("playing",function(){m("playing")}),n.addEventListener("ended",function(){m("ended")}),m("open"))};c._loadFileData=function(b,f,e,h){var j=[];f=c._checkFileName(b,f,j);e=c._checkCache(b,f,e);j[0]?c._getRawDataFromServer("_",f,e,h):(b={type:"GET",dataType:"text",url:f,async:c._asynchronous,success:function(b){c._loadSuccess(b,e)},error:function(){c._loadError(h)}},
c._checkAjaxPost(b),c._ajax(b))};c._getInfoFromDatabase=function(b,f,e){if("===="==f){var h=c.db._restQueryXml.replace(/QUERY/,e),h={dataType:"text",type:"POST",contentType:"application/x-www-form-urlencoded",url:c.db._restQueryUrl,data:encodeURIComponent(h)+"&req=browser",success:function(h){c._ajaxDone();c._extractInfoFromRCSB(b,f,e,h)},error:function(){c._loadError(null)},async:c._asynchronous};return c._ajax(h)}e="?call=getInfoFromDatabase&database="+f+"&query="+encodeURIComponent(e);return c._contactServer(e,
function(e){c._setInfo(b,f,e)})};c._extractInfoFromRCSB=function(b,f,e,h){var j=h.length/5;if(0!=j&&4==e.length&&1!=j){e=e.toUpperCase();var l=h.indexOf(e);0<l&&0<="123456789".indexOf(e.substring(0,1))&&(h=e+","+h.substring(0,l)+h.substring(l+5));50<j&&(h=h.substring(0,250));h=h.replace(/\n/g,",");h=c._restReportUrl.replace(/IDLIST/,h);c._loadFileData(b,h,function(e){c._setInfo(b,f,e)})}};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,e){b={dataType:"text",type:"GET",url:c._serverUrl+b,success:function(b){c._loadSuccess(b,f)},error:function(){c._loadError(e)},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 e=f.substring(0,1);f=f.substring(1);f.substring(0,1)==e&&0<="=$".indexOf(e)&&(f=f.substring(1));var h=
c._getElement(b,"select");if(h&&h.options)for(var j=0;j<h.options.length;j++)h[j].value==e&&(h[j].selected=!0)}c.$val(c.$(b,"query"),f)}};c._search=function(b,f,e){1<arguments.length||(f=null);c._setQueryTerm(b,f);f||(f=c.$val(c.$(b,"query")));0==f.indexOf("!")?b._script(f.substring(1)):(f&&(f=f.replace(/\"/g,"")),b._showInfo(!1),c._searchMol(b,f,e,!0))};c._searchMol=function(b,f,e,h){var j;c._isDatabaseCall(f)?(j=f.substring(0,1),f=f.substring(1)):j=b._hasOptions?c.$val(c.$(b,"select")):"$";"="==
j&&3==f.length&&(f="="+f);var l=j+f;if(f&&!(0>l.indexOf("?")&&l==b._thisJmolModel)){b._thisJmolModel=l;var n;h&&null!=b._viewSet&&null!=(n=c.View.__findView(b._viewSet,{chemID:l}))?c.View.__setView(n,b,!1):("$"==j||":"==j?b._jmolFileType="MOL":"="==j&&(b._jmolFileType="PDB"),b._searchDatabase(f,j,e))}};c._searchDatabase=function(b,f,e,h){b._showInfo(!1);return 0<=f.indexOf("?")?(c._getInfoFromDatabase(b,e,f.split("?")[0]),!0):c.db._DirectDatabaseCalls[e]?(b._loadFile(e+f,h),!0):!1};c._syncBinaryOK=
"?";c._canSyncBinary=function(b){if(c._isAsync)return!0;if(self.VBArray)return c._syncBinaryOK=!1;if("?"!=c._syncBinaryOK)return c._syncBinaryOK;c._syncBinaryOK=!0;try{var f=new window.XMLHttpRequest;f.open("text",c._ajaxTestSite,!1);f.hasOwnProperty("responseType")?f.responseType="arraybuffer":f.overrideMimeType&&f.overrideMimeType("text/plain; charset=x-user-defined")}catch(e){return System.out.println("JSmolCore.js: synchronous binary file transfer is requested but not available"),c._alertNoBinary&&
!b&&alert("JSmolCore.js: synchronous binary file transfer is requested but not available"),c._syncBinaryOK=!1}return!0};c._binaryTypes="mmtf .gz .bz2 .jpg .gif .png .zip .jmol .bin .smol .spartan .pmb .mrc .map .ccp4 .dn6 .delphi .omap .pse .dcd .uk/pdbe/densities/".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,f,e){var h=c.isBinaryUrl(b),j=0<=b.indexOf(".gz")&&0<=b.indexOf("rcsb.org");j&&
(b=b.replace(/\.gz/,""),h=!1);var j=h&&!f&&!c._canSyncBinary(j),l=0<=b.indexOf("?POST?");0==b.indexOf("file:/")&&0!=b.indexOf("file:///")&&(b="file://"+b.substring(5));var n=0>b.indexOf("://")||0==b.indexOf(document.location.protocol)&&0<=b.indexOf(document.location.host),m="https://"==c._httpProto&&0==b.indexOf("http://"),v=c._isDirectCall(b);!v&&0<=b.indexOf("?ALLOWSORIGIN?")&&(v=!0,b=b.replace(/\?ALLOWSORIGIN\?/,""));var u=!n&&c.$supportsIECrossDomainScripting(),w=null;if(m||j||!n&&!v||!f&&u)w=
c._getRawDataFromServer("_",b,f,f,j,!0);else{b=b.replace(/file:\/\/\/\//,"file://");var C={dataType:h?"binary":"text",async:!!f};l?(C.type="POST",C.url=b.split("?POST?")[0],C.data=b.split("?POST?")[1]):(C.type="GET",C.url=b);f&&(C.success=function(){f(c._xhrReturn(C.xhr))},C.error=function(){f(C.xhr.statusText)});C.xhr=c.$ajax(C);f||(w=c._xhrReturn(C.xhr))}if(!e)return w;null==w&&(w="",h=!1);h&&(h=c._canSyncBinary(!0));return h?c._strToBytes(w):JU.SB.newS(w)};c._xhrReturn=function(b){return!b.responseText||
self.Clazz&&Clazz.instanceOf(b.response,self.ArrayBuffer)?b.response||b.statusText:b.responseText};c._isDirectCall=function(b){if(0<=b.indexOf("?ALLOWSORIGIN?"))return!0;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._getZ=function(b,f){return b&&b._z&&b._z[f]||c._z[f]};c._incrZ=function(b,f){return b&&b._z&&++b._z[f]||++c._z[f]};c._hideLocalFileReader=function(b){b._localReader&&c.$setVisible(b._localReader,!1);b._readingLocal=!1;c.setCursor(b,0)};c.loadFileFromDialog=function(b){c.loadFileAsynchronously(null,b,null,null)};c.loadFileAsynchronously=function(b,f,e,h){if(e&&0!=e.indexOf("?")){var j=e;e=
c._checkFileName(f,e);var l=function(l){c._setData(b,e,j,l,h,f)},l=c._checkCache(f,e,l);0<=e.indexOf("|")&&(e=e.split("|")[0]);return null==l?null:c._getFileData(e,l)}if(!c.featureDetection.hasFileReader)return b?b.setData("Local file reading is not enabled in your browser",null,null,h,f):alert("Local file reading is not enabled in your browser");f._localReader||(l='<div id="ID" style="z-index:'+c._getZ(f,"fileOpener")+';position:absolute;background:#E0E0E0;left:10px;top:10px"><div style="margin:5px 5px 5px 5px;"><button id="ID_loadurl">URL</button><input type="file" id="ID_files" /><button id="ID_loadfile">load</button><button id="ID_cancel">cancel</button></div><div>',
c.$after("#"+f._id+"_appletdiv",l.replace(/ID/g,f._id+"_localReader")),f._localReader=c.$(f,"localReader"));c.$appEvent(f,"localReader_loadurl","click");c.$appEvent(f,"localReader_loadurl","click",function(){var b=prompt("Enter a URL");b&&(c._hideLocalFileReader(f,0),c._setData(null,b,b,null,h,f))});c.$appEvent(f,"localReader_loadfile","click");c.$appEvent(f,"localReader_loadfile","click",function(){var e=c.$(f,"localReader_files")[0].files[0],j=new FileReader;j.onloadend=function(j){j.target.readyState==
FileReader.DONE&&(c._hideLocalFileReader(f,0),c._setData(b,e.name,e.name,j.target.result,h,f))};try{j.readAsArrayBuffer(e)}catch(l){alert("You must select a file first.")}});c.$appEvent(f,"localReader_cancel","click");c.$appEvent(f,"localReader_cancel","click",function(){c._hideLocalFileReader(f);b&&b.setData("#CANCELED#",null,null,h,f)});c.$setVisible(f._localReader,!0);f._readingLocal=!0};c._setData=function(b,f,e,h,j,l){h&&(h=c._strToBytes(h));null!=h&&(null==b||0<=f.indexOf(".jdx"))&&c.Cache.put("cache://"+
f,h);null==b?l._applet.openFileAsyncSpecial(null==h?f:"cache://"+f,1):b.setData(f,e,h,j)};c.doAjax=function(b,f,e){b=b.toString();if(e){if(0!=b.indexOf("http://")&&0!=b.indexOf("https://"))return c._saveFile(b,e);b={async:!1,url:b,type:"POST",data:"string"==typeof data?e:";base64,"+(JU||J.util).Base64.getBase64(e).toString(),processData:!1};return c.$ajax(b).responseText}f&&(b+="?POST?"+f);return c._getFileData(b,null,!0)};c._saveFile=function(b,f,e,h){if(c._localFileSaveFunction&&c._localFileSaveFunction(b,
f))return"OK";b=b.substring(b.lastIndexOf("/")+1);e||(e=0<=b.indexOf(".pdf")?"application/pdf":0<=b.indexOf(".png")?"image/png":0<=b.indexOf(".gif")?"image/gif":0<=b.indexOf(".jpg")?"image/jpg":"");var j="string"==typeof f;f=j&&0<=f.indexOf(";base64,")?f.split(";base64,")[1]:(JU||J.util).Base64.getBase64(j?f.getBytes("UTF-8"):f).toString();h||(h="base64");(j=c._serverUrl)&&0<=j.indexOf("your.server")&&(j="");c._useDataURI||!j?(h=document.createElement("a"),h.href="data:"+e+";base64,"+f,h.type=e||
"text/plain;charset=utf-8",h.download=b,h.target="_blank",m("body").append(h),h.click(),h.remove()):(c._formdiv||(c.$after("body",'<div id="__jsmolformdiv__" style="display:none">\t\t\t\t\t\t<form id="__jsmolform__" method="post" target="_blank" action="">\t\t\t\t\t\t<input name="call" value="saveFile"/>\t\t\t\t\t\t<input id="__jsmolmimetype__" name="mimetype" value=""/>\t\t\t\t\t\t<input id="__jsmolencoding__" name="encoding" value=""/>\t\t\t\t\t\t<input id="__jsmolfilename__" name="filename" value=""/>\t\t\t\t\t\t<textarea id="__jsmoldata__" name="data"></textarea>\t\t\t\t\t\t</form>\t\t\t\t\t\t</div>'),
c._formdiv="__jsmolform__"),c.$attr(c._formdiv,"action",j+"?"+(new Date).getMilliseconds()),c.$val("__jsmoldata__",f),c.$val("__jsmolfilename__",b),c.$val("__jsmolmimetype__",e),c.$val("__jsmolencoding__",h),c.$submit("__jsmolform__"),c.$val("__jsmoldata__",""),c.$val("__jsmolfilename__",""));return"OK"};c._strToBytes=function(b){if(Clazz.instanceOf(b,self.ArrayBuffer))return Clazz.newByteArray(-1,b);for(var c=Clazz.newByteArray(b.length,0),e=b.length;0<=--e;)c[e]=b.charCodeAt(e)&255;return c};c._setConsoleDiv=
function(b){self.Clazz&&Clazz.setConsoleDiv(b)};c._registerApplet=function(b,f){return window[b]=c._applets[b]=c._applets[b+"__"+c._syncId+"__"]=f};c._readyCallback=function(b,f,e,h,j){b=b.split("_object")[0];var l=c._applets[b];if(e=e.booleanValue?e.booleanValue():e)l._appletPanel=j||h,l._applet=h;c._track(l)._readyCallback(b,f,e)};c._getWrapper=function(b,f){var e;if(f){var h="";if(b._coverImage)var h=' onclick="Jmol.coverApplet(ID, false)" title="'+b._coverTitle+'"',j='<image id="ID_coverclickgo" src="'+
b._makeLiveImage+'" style="width:25px;height:25px;position:absolute;bottom:10px;left:10px;z-index:'+c._getZ(b,"coverImage")+';opacity:0.5;"'+h+" />",h='<div id="ID_coverdiv" style="background-color:red;z-index:'+c._getZ(b,"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%"'+h+"/>"+j+"</div>";j=b._isJava?"":'<image id="ID_waitimage" src="'+b._j2sPath+'/img/cursor_wait.gif" style="display:none;position:absolute;bottom:10px;left:10px;z-index:'+
c._getZ(b,"coverImage")+';" />';e=c._appletCssText.replace(/\'/g,'"');var l=b._getSpinner&&b._getSpinner();b._spinner=l=!l||"none"==l?"":"background-image:url("+l+"); background-repeat:no-repeat; background-position:center;";e=l+(0<=e.indexOf('style="')?e.split('style="')[1]:'" '+e);e='...<div id="ID_appletinfotablediv" style="width:Wpx;height:Hpx;position:relative;font-size:14px;text-align:left">IMG WAIT......<div id="ID_appletdiv" style="z-index:'+c._getZ(b,"header")+";width:100%;height:100%;position:absolute;top:0px;left:0px;"+
e+">";var l=b._height,n=b._width;if("string"!==typeof l||0>l.indexOf("%"))l+="px";if("string"!==typeof n||0>n.indexOf("%"))n+="px";e=e.replace(/IMG/,h).replace(/WAIT/,j).replace(/Hpx/g,l).replace(/Wpx/g,n)}else e='......</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 e.replace(/\.\.\./g,"").replace(/[\n\r]/g,"").replace(/ID/g,b._id)};c._hideLoadingSpinner=function(b){b._spinner&&c.$css(c.$(b,"appletdiv"),{"background-image":""})};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 e=c._getDomElement(b,f);if(!e)break;
c._XhtmlAppendChild?c._XhtmlElement.appendChild(e):c._XhtmlElement.parentNode.insertBefore(e,_jmol.XhtmlElement)}};c._getDomElement=function(b,c){var e=document.createElement("span");e.innerHTML=b;c[0]=b.length;return e};c._setObject=function(b,f,e){b._id=f;b.__Info={};e.z&&e.zIndexBase&&(c._z=c._getZOrders(e.zIndexBase));for(var h in e)b.__Info[h]=e[h];(b._z=e.z)||e.zIndexBase&&(b._z=b.__Info.z=c._getZOrders(e.zIndexBase));b._width=e.width;b._height=e.height;b._noscript=!b._isJava&&e.noscript;b._console=
e.console;b._cacheFiles=!!e.cacheFiles;b._viewSet=null==e.viewSet||b._isJava?null:"Set"+e.viewSet;null!=b._viewSet&&(c.View.__init(b),b._currentView=null);!c._fileCache&&b._cacheFiles&&(c._fileCache={});b._console||(b._console=b._id+"_infodiv");"none"==b._console&&(b._console=null);b._color=e.color?e.color.replace(/0x/,"#"):"#FFFFFF";b._disableInitialConsole=e.disableInitialConsole;b._noMonitor=e.disableJ2SLoadMonitor;c._j2sPath&&(e.j2sPath=c._j2sPath);b._j2sPath=e.j2sPath;b._coverImage=e.coverImage;
b._makeLiveImage=e.makeLiveImage||e.j2sPath+"/img/play_make_live.jpg";b._isCovered=!!b._coverImage;b._deferApplet=e.deferApplet||b._isCovered&&b._isJava;b._deferUncover=e.deferUncover&&!b._isJava;b._coverScript=e.coverScript;b._coverTitle=e.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=e.addSelectionOptions;b._defaultModel=e.defaultModel;b._readyScript=e.script?e.script:"";b._readyFunction=e.readyFunction;b._coverImage&&!b._deferApplet&&(b._readyScript+=";javascript "+f+"._displayCoverImage(false)");b._src=e.src};c._addDefaultInfo=function(b,f){for(var e in f)"undefined"==typeof b[e]&&(b[e]=f[e]);c._use&&(b.use=c._use);0<=b.use.indexOf("SIGNED")&&(0>b.jarFile.indexOf("Signed")&&(b.jarFile=b.jarFile.replace(/Applet/,"AppletSigned")),b.use=
b.use.replace(/SIGNED/,"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,e=0;e<c._syncedApplets.length;e++){if(c._syncedApplets[e]==b._id)c._syncedApplets[e]=b,c._syncedReady[e]=1;else if(!c._syncedReady[e])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._appletPanel&&b._appletPanel.destroy();b._applet=null;c._unsetMouse(b._canvas);b._canvas=null;for(var f=0,e=0;e<c._syncedApplets.length;e++)c._syncedApplets[e]==b&&(c._syncedApplets[e]=null),c._syncedApplets[e]&&f++;0<f||c._clearVars()}catch(h){}};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){app=c._applets[b];if(app._viewSet)c.View.updateFromSync(app,f);else{if(!c._syncReady||!c._isJmolJSVSync)return 1;for(var e=0;e<c._syncedApplets.length;e++)0<=f.indexOf(c._syncedApplets[e]._syncKeyword)&&c._syncedApplets[e]._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 e=(new Function("return "+b))();
return!e?null:c&&void 0!=e[c]?e[c]:e};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 e=[],h=b.length-1;0<=h;h--)for(var j=0,l=b[h].length;j<l;j++)e[e.length]=b[h][j];if(0!=e.length)return e=e.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;var e=c.$offset(b.id),h,j=f.originalEvent;f.pageX||(f.pageX=j.pageX);f.pageY||(f.pageY=j.pageY);c._mousePageX=f.pageX;c._mousePageY=f.pageY;j.targetTouches&&j.targetTouches[0]?(h=j.targetTouches[0].pageX-e.left,e=j.targetTouches[0].pageY-e.top):j.changedTouches?(h=j.changedTouches[0].pageX-e.left,e=j.changedTouches[0].pageY-e.top):(h=f.pageX-e.left,e=f.pageY-e.top);return void 0==
h?null:[Math.round(h),Math.round(e),c._jsGetMouseModifiers(f)]};c.setCursor=function(b,f){if(!b._isJava&&!b._readingLocal){var e;switch(f){case 1:e="crosshair";break;case 3:e="wait";c.$setVisible(c.$(b,"waitimage"),!0);break;case 8:e="ns-resize";break;case 12:e="grab";break;case 13:e="move";break;default:c.$setVisible(c.$(b,"waitimage"),!1),e="default"}b._canvas.style.cursor=e}};c._gestureUpdate=function(b,f){f.stopPropagation();f.preventDefault();var e=f.originalEvent;switch(f.type){case "touchstart":c._touching=
!0;break;case "touchend":c._touching=!1}if(!e.touches||2!=e.touches.length)return!1;switch(f.type){case "touchstart":b._touches=[[],[]];break;case "touchmove":var h=c.$offset(b.id),j=b._touches[0],l=b._touches[1];j.push([e.touches[0].pageX-h.left,e.touches[0].pageY-h.top]);l.push([e.touches[1].pageX-h.left,e.touches[1].pageY-h.top]);e=j.length;3<e&&(j.shift(),l.shift());2<=e&&b.applet._processGesture(b._touches)}return!0};c._jsSetMouse=function(b){var f=function(b){return!b.target||0<=(""+b.target.className).indexOf("swingjs-ui")};
c.$bind(b,"mousedown touchstart",function(e){if(f(e))return!0;c._setMouseOwner(b,!0);e.stopPropagation();var h=e.target["data-UI"];(!h||!h.handleJSEvent(b,501,e))&&e.preventDefault();b.isDragging=!0;if("touchstart"==e.type&&c._gestureUpdate(b,e))return!!h;c._setConsoleDiv(b.applet._console);var j=c._jsGetXY(b,e);j&&(2!=e.button&&c.Swing.hideMenus(b.applet),b.applet._processEvent(501,j));return!!h});c.$bind(b,"mouseup touchend",function(e){if(f(e))return!0;c._setMouseOwner(null);e.stopPropagation();
var h=e.target["data-UI"];(!h||!h.handleJSEvent(b,502,e))&&e.preventDefault();b.isDragging=!1;if("touchend"==e.type&&c._gestureUpdate(b,e))return!!h;(e=c._jsGetXY(b,e))&&b.applet._processEvent(502,e);return!!h});c.$bind(b,"mousemove touchmove",function(e){if(f(e))return!0;if(c._mouseOwner&&c._mouseOwner!=b&&c._mouseOwner.isDragging){if(!c._mouseOwner.mouseMove)return!0;c._mouseOwner.mouseMove(e);return!1}return c._drag(b,e)});c._drag=function(b,f){f.stopPropagation();f.preventDefault();if("touchmove"==
f.type&&c._gestureUpdate(b,f))return!1;var h=c._jsGetXY(b,f);if(!h)return!1;b.isDragging||(h[2]=0);var j=f.target["data-UI"];b.isdragging&&(!j||j.handleJSEvent(b,506,f));b.applet._processEvent(b.isDragging?506:503,h);return!!j};c.$bind(b,"DOMMouseScroll mousewheel",function(e){if(f(e))return!0;e.stopPropagation();e.preventDefault();b.isDragging=!1;var h=e.originalEvent,h=h.detail?h.detail:("mac"==c.featureDetection.os?1:-1)*h.wheelDelta;e=c._jsGetMouseModifiers(e);b.applet._processEvent(507,[0>h?
-1:1,0,e]);return!1});c.$bind(b,"contextmenu",function(){return!1});c.$bind(b,"mouseout",function(e){if(f(e))return!0;c._mouseOwner&&!c._mouseOwner.mouseMove&&c._setMouseOwner(null);b.applet._appletPanel&&b.applet._appletPanel.startHoverWatcher(!1);c._jsGetXY(b,e);return!1});c.$bind(b,"mouseenter",function(e){if(f(e))return!0;b.applet._appletPanel&&b.applet._appletPanel.startHoverWatcher(!0);if(0===e.buttons||0===e.which){b.isDragging=!1;e=c._jsGetXY(b,e);if(!e)return!1;b.applet._processEvent(504,
e);b.applet._processEvent(502,e);return!1}});c.$bind(b,"mousemoveoutjsmol",function(e,h,j){if(f(j))return!0;if(b==c._mouseOwner&&b.isDragging)return c._drag(b,j)});b.applet._is2D&&c.$resize(function(){b.applet&&b.applet._resize()});c.$bind("body","mouseup touchend",function(e){if(f(e))return!0;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.Swing={count:0,menuInitialized:0,menuCounter:0,htDialogs:{}};var u=c.Swing;SwingController=u;u.setDraggable=function(b){b=b.prototype;b.setContainer||(b.setContainer=function(b){this.container=b;b.obj=this;this.ignoreMouse=this.isDragging=!1;var e=this;b.bind("mousedown touchstart",function(b){if(e.ignoreMouse)return e.ignoreMouse=!1,!0;c._setMouseOwner(e,!0);e.isDragging=!0;e.pageX=b.pageX;e.pageY=b.pageY;return!1});b.bind("mousemove touchmove",function(b){if(e.isDragging&&
c._mouseOwner==e)return e.mouseMove(b),!1});b.bind("mouseup touchend",function(b){e.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){if(this.isDragging&&c._mouseOwner==this){this.timestamp=System.currentTimeMillis();var e=this.pageX0+(b.pageX-this.pageX);b=this.pageY0+(b.pageY-this.pageY);c._mousePageX=e;c._mousePageY=b;this.container.css({top:b+"px",left:e+"px"})}},b.dragBind=function(b){this.applet._ignoreMouse=!b;this.container.unbind("mousemoveoutjsmol");this.container.unbind("touchmoveoutjsmol");this.container.unbind("mouseupoutjsmol");
this.container.unbind("touchendoutjsmol");c._setMouseOwner(null);if(b){var e=this;this.container.bind("mousemoveoutjsmol touchmoveoutjsmol",function(b,c,f){e.mouseMove(f)});this.container.bind("mouseupoutjsmol touchendoutjsmol",function(b,c,f){e.mouseUp(f)})}})};u.JSDialog=function(){};u.setDraggable(u.JSDialog);u.getScreenDimensions=function(b){b.width=m(window).width();b.height=m(window).height()};u.dispose=function(b){c.$remove(b.id+"_mover");delete u.htDialogs[b.id];b.container.obj.dragBind(!1)};
u.register=function(b,c){b.id=c+ ++u.count;u.htDialogs[b.id]=b};u.setDialog=function(b){c._setMouseOwner(null);c.$remove(b.id);var f=b.id+"_mover",e=c._$(f),h;e[0]?(e.html(b.html),h=e[0].jd):(c.$after("body","<div id='"+f+"' style='position:absolute;left:0px;top:0px;'>"+b.html+"</div>"),h=new u.JSDialog,e=c._$(f),b.container=e,h.applet=b.manager.vwr.html5Applet,h.setContainer(e),h.dialog=b,h.setPosition(),h.dragBind(!0),e[0].jd=h);c.$bind("#"+b.id+" .JButton","mousedown touchstart",function(){h.ignoreMouse=
!0});c.$bind("#"+b.id+" .JComboBox","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JCheckBox","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JTextField","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JTable","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JScrollPane","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JEditorPane","mousedown touchstart",function(){h.ignoreMouse=
!0})};u.setSelected=function(b){c.$prop(b.id,"checked",!!b.selected)};u.setSelectedIndex=function(b){c.$prop(b.id,"selectedIndex",b.selectedIndex)};u.setText=function(b){c.$prop(b.id,"value",b.text)};u.setVisible=function(b){c.$setVisible(b.id,b._visible)};u.setEnabled=function(b){c.$setEnabled(b.id,b.enabled)};u.click=function(b,f){var e=u.htDialogs[b.id];if(e){var h=e.toString();if(0<=h.indexOf("JCheck"))e.selected=b.checked;else if(0<=h.indexOf("JCombo"))e.selectedIndex=b.selectedIndex;else if(null!=
e.text&&(e.text=b.value,f&&13!=(f.charCode||f.keyCode)))return}h=u.htDialogs[c.$getAncestorDiv(b.id,"JDialog").id];h.manager.actionPerformed(e?e.name:h.registryKey+"/"+b.id)};u.setFront=function(b){var f=b.manager.vwr.html5Applet;b.zIndex!=c._getZ(f,"dialog")&&(b.zIndex=c._incrZ(f,"dialog"));b.container&&((b.container[0]||b.container).style.zIndex=b.zIndex)};u.hideMenus=function(b){if(b=b._menus)for(var c in b)b[c]._visible&&u.hideMenu(b[c])};u.windowClosing=function(b){b=u.htDialogs[c.$getAncestorDiv(b.id,
"JDialog").id];b.registryKey?b.manager.processWindowClosing(b.registryKey):b.dispose()};c._track=function(b){if(c._tracker){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="+c.___JmolVersion+"&url="+encodeURIComponent(document.location.href))+'"></iframe>';c.$after("body",f)}catch(e){}delete c._tracker}return b};var w;c.getProfile=function(b){if(self.Clazz&&self.JSON)return w||Clazz._startProfiling(w=
0==arguments.length||b),Clazz.getProfile()};c._getInChIKey=function(b,c){0<=c.indexOf("MOL=")&&c.split("MOL=")[1].split('"')};c._getAttr=function(b,c){var e=b.indexOf(c+"=");return 0<=e&&0<=(e=b.indexOf('"',e))?b.substring(e+1,b.indexOf('"',e+1)):null};c.User={viewUpdatedCallback:null};c.View={count:0,applets:{},sets:{}};(function(b){b.resetView=function(b,e){debugger;if(e){if(e._viewSet){var h=c.View.applets[e._viewSet];for(b in h)b!=e&&c.View.resetView(b)}}else b&&(b._reset(),c.View.updateView(b))};
b.updateView=function(f,e){if(null!=f._viewSet){e||(e={});e.chemID||(f._searchQuery=null);e.data||(e.data="N/A");e.type=f._viewType;if(null==(f._currentView=b.__findView(f._viewSet,e)))f._currentView=b.__createViewSet(f._viewSet,e.chemID,e.viewID||e.chemID);f._currentView[e.type].data=e.data;f._currentView[e.type].smiles=f._getSmiles();c.User.viewUpdatedCallback&&c.User.viewUpdatedCallback(f,"updateView");b.__setView(f._currentView,f,!1)}};b.updateFromSync=function(f,e){f._updateMsg=e;var h=c._getAttr(e,
"sourceID")||c._getAttr(e,"file");if(h){var j=b.__findView(f._viewSet,{viewID:h});if(null==j)return c.updateView(f,e);j!=f._currentView&&b.__setView(j,f,!0);var l=(h=c._getAttr(e,"atoms"))&&0<=e.indexOf("selectionhalos ON")?eval("["+h+"]"):[];setTimeout(function(){f._currentView==j&&b.updateAtomPick(f,l)},10);c.User.viewUpdatedCallback&&c.User.viewUpdatedCallback(f,"updateFromSync")}};b.updateAtomPick=function(b,e){var h=b._currentView;if(null!=h){for(var j in h)"info"!=j&&h[j].applet!=b&&h[j].applet._updateAtomPick(e);
c.User.viewUpdatedCallback&&c.User.viewUpdatedCallback(b,"updateAtomPick")}};b.dumpViews=function(c){var e=b.sets[c];if(e){var h="View set "+c+":\n";c=b.applets[c];for(var j in c)h+="\napplet "+c[j]._id+" currentView="+(c[j]._currentView?c[j]._currentView.info.viewID:null);for(j=e.length;0<=--j;){c=e[j];var h=h+("\n\n<b>view="+j+" viewID="+c.info.viewID+" chemID="+c.info.chemID+"</b>\n"),l,n;for(n in c)"info"!=n&&(h+="\nview="+j+" type="+n+" applet="+((l=c[n]).applet?l.applet._id:null)+" SMILES="+
l.smiles+"\n atomMap="+JSON.stringify(l.atomMap)+"\n data=\n"+l.data+"\n")}return h}};b.__init=function(c){var e=c._viewSet,h=b.applets;h[e]||(h[e]={});h[e][c._viewType]=c};b.__findView=function(c,e){var h=b.sets[c];null==h&&(h=b.sets[c]=[]);for(var j=h.length;0<=--j;){var l=h[j];if(e.viewID){if(l.info.viewID==e.viewID)return l}else{if(null!=e.chemID&&e.chemID==l.info.chemID)return l;for(var n in l)if("info"!=n&&(null!=e.data&&null!=l[n].data?e.data==l[n].data:e.type==n))return l}}return null};b.__createViewSet=
function(f,e,h){b.count++;e={info:{chemID:e,viewID:h||"model_"+b.count}};for(var j in c._applets)h=c._applets[j],h._viewSet==f&&(e[h._viewType]={applet:h,data:null});b.sets[f].push(e);return e};b.__setView=function(b,c,h){for(var j in b)if("info"!=j){var l=b[j],n=l.applet,m=h||null!=n&&"<modified>"==n._molData;if(!(null==n||n==c&&!m)){var v=null==l.data,u=null!=n._currentView;n._currentView=b;if(!u||!(b[j].data==l.data&&!v&!m))if(n._loadModelFromView(b),v)break}}}})(c.View);c.Cache={fileCache:{}};
c.Cache.get=function(b){return c.Cache.fileCache[b]};c.Cache.put=function(b,f){c.Cache.fileCache[b]=f};c.Cache.setDragDrop=function(b){c.$appEvent(b,"appletdiv","dragover",function(b){b=b.originalEvent;b.stopPropagation();b.preventDefault();b.dataTransfer.dropEffect="copy"});c.$appEvent(b,"appletdiv","drop",function(f){var e=f.originalEvent;e.stopPropagation();e.preventDefault();var h=e.dataTransfer.files[0];if(null==h)try{h=""+e.dataTransfer.getData("text"),(0==h.indexOf("file:/")||0==h.indexOf("http:/")||
0==h.indexOf("https:/"))&&b._scriptLoad(h)}catch(j){}else e=new FileReader,e.onloadend=function(e){if(e.target.readyState==FileReader.DONE){var j="cache://DROP_"+h.name;e=Clazz.newByteArray(-1,e.target.result);j.endsWith(".spt")||b._appletPanel.cacheFileByName("cache://DROP_*",!1);"JSV"==b._viewType||j.endsWith(".jdx")?c.Cache.put(j,e):b._appletPanel.cachePut(j,e);(e=c._jsGetXY(b._canvas,f))&&(!b._appletPanel.setStatusDragDropped||b._appletPanel.setStatusDragDropped(0,e[0],e[1],j))&&b._appletPanel.openFileAsyncSpecial(j,
1)}},e.readAsArrayBuffer(h)})}})(Jmol,jQuery);Jmol._debugCode=!1;Jmol._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"]];Jmol.say=function(c){alert(c)};Jmol._TMApplet=function(c,m,h){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(h)return this;this._createCanvas(c,m);return this};
Jmol._TMApplet._getApplet=function(c,m,h){if(!Jmol.featureDetection.allowHTML5)return null;h||(h=!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,
h);return h?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 j=this;c=1E3/this.spinFPS;this._mouseDown||(this._rotate(this.spinRateY,this.spinRateX),this._draw());this._spinThread=setTimeout(function(){j._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,j){Jmol._setObject(this,c,j);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);j.addSelectionOptions&&(l+=Jmol._getGrabberOptions(this,""));Jmol._debugAlert&&!Jmol._document&&alert(l);this._code=Jmol._documentWrite(l)};m._createCanvas2d=function(c){var j=document.createElement("canvas"),l=Jmol.$(this,"appletdiv");c&&(l[0].removeChild(this._canvas),Jmol._jsUnsetMouse(this._canvas));c=Math.round(l.width());var n=Math.round(l.height());j.applet=this;this._canvas=j;j.style.width="100%";j.style.height="100%";j.width=
c;j.height=n;j.id=this._id+"_canvas2d";l.append(j);setTimeout(this._id+"._start()",10)};m._start=function(){Jmol._jsSetMouse(this._canvas);this._defaultModel?Jmol._search(this,this._defaultModel,this._readyScript?this._readyScript:""):this._src&&this._loadFile(this._src);this._showInfo(!0);this._showInfo(!1)};m._search=function(c,j){Jmol._search(this,c,j)};m._searchDatabase=function(c,j,l){this._showInfo(!1);0<=c.indexOf("?")?Jmol._getInfoFromDatabase(this,j,c.split("?")[0]):this._loadFile(j+c,l)};
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 j=this;Jmol[c]=setTimeout(function(){j._draw();Jmol[c]=null},100)};m._canScript=function(){return!0};m._script=function(c){for(var j=c.split(";"),l=0;l<j.length;l++)c=j[l].trim(),"image"==c?window.open(this._canvas.toDataURL("image/png")):0==c.indexOf("load ")?this._loadFile(c.substring(5).trim()):0==c.indexOf("spin ")&&this.spin(0>c.toLowerCase().indexOf("off"))};m._loadFile=
function(c){this._showInfo(!1);this._thisJmolModel=c;var j=this;Jmol._loadFileData(this,c,function(c){j.__loadModel(c)})};m._processEvent=function(c,j){switch(c){case 502:case 503:this._mouseDown=!1;default:return;case 501:this._mouseX=j[0];this._mouseY=j[1];this._mouseDown=!0;return;case 506:var l=j[0]-this._mouseX,n=j[1]-this._mouseY,l=0>l?-1:0<l?1:0,n=0>n?-1:0<n?1:0;switch(j[2]){case 17:this._zoomBy(n);break;case 24:this.center2D[0]+=l;this.center2D[1]+=n;break;default:this._rotate(l,n)}this._mouseX=
j[0];this._mouseY=j[1];break;case -1:this._zoomBy(j[1])}this._draw()};m._processGesture=function(h){if(!(2>h[0].length)){var j=h[0],l=h[1],n=j[0],m=j[l.length-1];h=n[0];var u=m[0],n=n[1],m=m[1],w=[u-h,m-n,0],b=c._length(w),f=l[0],e=l[l.length-1],l=f[0],p=e[0],f=f[1],e=e[1],r=[p-l,e-f,0],A=c._length(r);3>b||3>A||(c._scale(w,1/b),c._scale(r,1/A),w=c._dot(w,r),0.8<w?(h=Math.round(u-j[j.length-2][0]),j=Math.round(m-j[j.length-2][1]),this.center2D[0]+=h,this.center2D[1]+=j):-0.8>w&&(w=[l-h,f-n,0],r=[p-
u,e-m,0],j=c._length(r)-c._length(w),this.zoom+=(0>j?-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(h,j){var l=this._getRotationScaling();j&&(c._m3.rotX(j*l[1]),this.rotation.mul(c._m3));h&&
(c._m3.rotY(h*l[0]),this.rotation.mul(c._m3))};m._getCenterAndRadius=function(){Math.min(this._canvas.width,this._canvas.height);for(var h=[999999,999999,999999],j=[-999999,-999999,-999999],l=this.atoms.length;0<=--l;)for(var n=3;0<=--n;){var m=this.atoms[l].xyz[n];m<h[n]&&(h[n]=m);m>j[n]&&(j[n]=m)}m=[0,0,0];for(n=3;0<=--n;)m[n]=(j[n]+h[n])/2;h=0;for(l=this.atoms.length;0<=--l;)j=this.atoms[l],j=c._distance(j.xyz,m)+(1==j.elemNo?1:1.5),j>h&&(h=j);this.center=m;this.modelRadius=0==h?10:h};m._setScreenCoords=
function(){for(var c=this.center,j=this.rotation,l=this.center2D,n=Math.min(this._canvas.width,this._canvas.height)/2/this.modelRadius*this.zoom/100,m=this.atoms.length;0<=--m;){var u=this.atoms[m];this._transform(u.xyz,u.sxyz,c,j,n,l);u.srad=n*u.radius}for(m=this.bonds.length;0<=--m;)u=this.bonds[m],this._transform(u.xyz,u.sxyz,c,j,n,l),this._transform(u.pts[0],u.spts[0],c,j,n,l),this._transform(u.pts[1],u.spts[1],c,j,n,l)};m._transform=function(h,j,l,n,m,u){for(var w=c._temp1,b=c._temp2,f=3;0<=
--f;)w[f]=(h[f]-l[f])*m;n.transform(w,b);b[1]=-b[1];b[2]=-b[2];for(f=3;0<=--f;)j[f]=b[f]+u[f]};m._parse=function(c){this._parseSDF(c)};m._parseSDF=function(h){this._mol=h;if(!c._elemNo.H)for(var j=c._elem.length;0<=--j;)c._elemNo[c._elem[j]]=j;h=h.split("\n");var l=3,n=h[l++];this.nAtoms=parseFloat(n.substring(0,3));this.nBonds=parseFloat(n.substring(3,6));this.atoms=Array(this.nAtoms);this.bonds=Array(this.nBonds);this.elements=Array(this.nAtoms+this.nBonds);for(var m=0,u,w,b,j=0;j<this.nAtoms;j++){n=
h[l++];u=parseFloat(n.substring(0,10));w=parseFloat(n.substring(10,20));b=parseFloat(n.substring(20,30));var n=n.substring(31,34).replace(/\s+/g,""),n=c._elemNo[n]||0,f=1==n?0.23:0.35,e=c._CPK[n]||c._CPK[0];this.elements[m++]=this.atoms[j]={type:0,elemNo:n,xyz:[u,w,b],sxyz:[0,0,0],radius:f,color:e,color50:e}}for(j=0;j<this.nBonds;j++){n=h[l++];u=this.atoms[parseFloat(n.substring(0,3))-1];w=this.atoms[parseFloat(n.substring(3,6))-1];b=Math.abs(parseFloat(n.substring(6,9)));switch(b){case 4:case 5:case 6:case 8:b=
1;break;case 7:b=2}n=c._getPointAlong(u.xyz,w.xyz,0.5);e=c._distance(u.xyz,n);f=u.radius<e?c._getPointAlong(u.xyz,n,u.radius/e):[0,0,99999];e=w.radius<e?c._getPointAlong(w.xyz,n,w.radius/e):[0,0,99999];this.elements[m++]=this.bonds[j]={type:1,atoms:[u,w],xyz:n,pts:[f,e],sxyz:[0,0,0],spts:[[0,0,0],[0,0,0]],order:b,color:0}}};m._getColor=function(c,j){"#FFFFFF"==c&&(c="#D0D0D0");var l=parseInt("0x"+c.substring(1),16),n=l>>16&255,m=l>>8&255,l=l&255;255!=n&&(n+=Math.floor((255-n)*j));255!=m&&(m+=Math.floor((255-
m)*j));255!=l&&(l+=Math.floor((255-l)*j));n="000000"+(n<<16|m<<8|l).toString(16);return"#"+n.substring(n.length-6,n.length)};m._draw=function(){if(this.atoms){this._setParams();this._setScreenCoords();var h=this.elements;h.sort(c._zorder);var j=this._canvas.getContext("2d");j.fillStyle=this._color;j.fillRect(0,0,this._canvas.width,this._canvas.height);for(var l=h.length;0<=--l;){var n=h[l];0==n.type?this._drawAtom(j,n):this._drawBond(j,n)}}};m._drawAtom=function(h,j){h.beginPath();if(this.shadeAtoms){var l=
j.srad/4,l=h.createRadialGradient(j.sxyz[0]-l,j.sxyz[1]-l,l,j.sxyz[0],j.sxyz[1],j.srad);l.addColorStop(0,j.color50);l.addColorStop(1,"#FFFFFF"==j.color?"#D0D0D0":j.color);h.fillStyle=l;h.arc(j.sxyz[0],j.sxyz[1],j.srad,0,c._pi2);h.fill()}else h.fillStyle=j.color,h.arc(j.sxyz[0],j.sxyz[1],j.srad,0,c._pi2),h.fill(),h.strokeStyle="#000000",h.lineWidth=1,h.stroke()};m._drawBond=function(c,j){99999!=j.pts[0][2]&&this._drawBondLines(c,j,j.spts[0],j.atoms[0].color);99999!=j.pts[1][2]&&this._drawBondLines(c,
j,j.spts[1],j.atoms[1].color)};m._drawBondLines=function(h,j,l,n){var m=c._temp;m.width=this.bondWidth;m.color=j.color?j.color:n;if(1==j.order)m.pt1=l,m.pt2=j.sxyz,this._drawLine(h,m);else{m.pt1=c._temp1;m.pt2=c._temp2;m.pta=l;m.ptb=j.sxyz;m.dx=m.ptb[0]-m.pta[0];m.dy=m.ptb[1]-m.pta[1];m.mag2d=Math.round(Math.sqrt(m.dx*m.dx+m.dy*m.dy));m.bondOrder=j.order;for(this._resetAxisCoordinates(m);0<m.bondOrder;)this._drawLine(h,m),m.bondOrder--,this._stepAxisCoordinates(m)}};m._drawLine=function(c,j){c.beginPath();
c.strokeStyle=j.color;c.moveTo(j.pt1[0],j.pt1[1]);c.lineTo(j.pt2[0],j.pt2[1]);c.lineWidth=j.width;c.stroke()};m._resetAxisCoordinates=function(c){var j=c.mag2d>>3;1!=this.multipleBondSpacing&&(j*=this.multipleBondSpacing);j=c.width+j;c.dxStep=Math.round(j*c.dy/c.mag2d);c.dyStep=Math.round(j*-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];j=c.bondOrder-1;c.pt1[0]-=Math.round(c.dxStep*j/2);c.pt1[1]-=Math.round(c.dyStep*j/2);c.pt2[0]-=Math.round(c.dxStep*j/2);c.pt2[1]-=
Math.round(c.dyStep*j/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,j){for(var l=0,m=3;0<=--m;)var v=c[m]-j[m],l=l+v*v;return Math.sqrt(l)};c._dot=function(c,j){for(var l=0,m=3;0<=--m;)l+=c[m]*j[m];return l};c._setPt=function(c,j){for(var l=3;0<=--l;)j[l]=c[l];return j};c._scale=function(c,j){for(var l=3;0<=--l;)c[l]*=j};c._length=function(c){for(var j=0,l=3;0<=--l;)j+=c[l]*c[l];return Math.sqrt(j)};c._getPointAlong=
function(c,j,l){return[(j[0]-c[0])*l+c[0],(j[1]-c[1])*l+c[1],(j[2]-c[2])*l+c[2]]};c._zorder=function(c,j){var l=c.sxyz[2],m=j.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,j,l,m,v,u,w,b,f){this.m00=c;this.m01=j;this.m02=l;this.m10=m;this.m11=v;this.m12=u;this.m20=w;this.m21=b;this.m22=f};c.M3.prototype.transform=function(c,j){j[0]=this.m00*c[0]+this.m01*c[1]+this.m02*c[2];j[1]=
this.m10*c[0]+this.m11*c[1]+this.m12*c[2];j[2]=this.m20*c[0]+this.m21*c[1]+this.m22*c[2]};c.M3.prototype.rotX=function(c){var j=Math.cos(c);c=Math.sin(c);this.m00=1;this.m10=this.m02=this.m01=0;this.m11=j;this.m12=-c;this.m20=0;this.m21=c;this.m22=j};c.M3.prototype.rotY=function(c){var j=Math.cos(c);c=Math.sin(c);this.m00=j;this.m01=0;this.m02=c;this.m10=0;this.m11=1;this.m12=0;this.m20=-c;this.m21=0;this.m22=j};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);
