+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,nd=RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),od=RegExp(Xb),pd=RegExp("^"+vc+"$"),zb={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/, TAG:RegExp("^("+"(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+wc),PSEUDO:RegExp("^"+Xb),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")},qd=/^(?:input|select|textarea|button)$/i,rd=/^h\d$/i,mb=/^[^{]+\{\s*\[native \w/,gd=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Sb=/[+~]/,hd=/'|\\/g,Fa=RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),Ga=function(f,a,q){f="0x"+a-65536;return f!==f||q?a:0>f?String.fromCharCode(f+65536):String.fromCharCode(f>>10|55296,f&1023|56320)};try{Ea.apply(O=uc.call(W.childNodes),W.childNodes),O[W.childNodes.length].nodeType}catch(Yd){Ea={apply:O.length?function(f,a){bb.apply(f,uc.call(a))}: function(f,a){for(var q=f.length,b=0;f[q++]=a[b++];);f.length=q-1}}}G=I.support={};sc=I.isXML=function(f){return(f=f&&(f.ownerDocument||f).documentElement)?"HTML"!==f.nodeName:!1};oa=I.setDocument=function(f){var a=f?f.ownerDocument||f:W;f=a.defaultView;if(a===R||9!==a.nodeType||!a.documentElement)return R;R=a;da=a.documentElement;ca=!sc(a);f&&f!==f.top&&(f.addEventListener?f.addEventListener("unload",function(){oa()},!1):f.attachEvent&&f.attachEvent("onunload",function(){oa()}));G.attributes=X(function(f){f.className= "i";return!f.getAttribute("className")});G.getElementsByTagName=X(function(f){f.appendChild(a.createComment(""));return!f.getElementsByTagName("*").length});G.getElementsByClassName=mb.test(a.getElementsByClassName)&&X(function(f){f.innerHTML="";f.firstChild.className="i";return 2===f.getElementsByClassName("i").length});G.getById=X(function(f){da.appendChild(f).id=M;return!a.getElementsByName||!a.getElementsByName(M).length});G.getById?(H.find.ID=function(f, a){if(typeof a.getElementById!==A&&ca){var b=a.getElementById(f);return b&&b.parentNode?[b]:[]}},H.filter.ID=function(f){var a=f.replace(Fa,Ga);return function(f){return f.getAttribute("id")===a}}):(delete H.find.ID,H.filter.ID=function(f){var a=f.replace(Fa,Ga);return function(f){return(f=typeof f.getAttributeNode!==A&&f.getAttributeNode("id"))&&f.value===a}});H.find.TAG=G.getElementsByTagName?function(f,a){if(typeof a.getElementsByTagName!==A)return a.getElementsByTagName(f)}:function(f,a){var b, v=[],g=0,j=a.getElementsByTagName(f);if("*"===f){for(;b=j[g++];)1===b.nodeType&&v.push(b);return v}return j};H.find.CLASS=G.getElementsByClassName&&function(f,a){if(typeof a.getElementsByClassName!==A&&ca)return a.getElementsByClassName(f)};ia=[];Q=[];if(G.qsa=mb.test(a.querySelectorAll))X(function(f){f.innerHTML="";f.querySelectorAll("[t^='']").length&&Q.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");f.querySelectorAll("[selected]").length||Q.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)"); f.querySelectorAll(":checked").length||Q.push(":checked")}),X(function(f){var b=a.createElement("input");b.setAttribute("type","hidden");f.appendChild(b).setAttribute("name","D");f.querySelectorAll("[name=d]").length&&Q.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");f.querySelectorAll(":enabled").length||Q.push(":enabled",":disabled");f.querySelectorAll("*,:x");Q.push(",.*:")});(G.matchesSelector=mb.test(ua=da.webkitMatchesSelector||da.mozMatchesSelector||da.oMatchesSelector||da.msMatchesSelector))&& X(function(f){G.disconnectedMatch=ua.call(f,"div");ua.call(f,"[s!='']:x");ia.push("!=",Xb)});Q=Q.length&&RegExp(Q.join("|"));ia=ia.length&&RegExp(ia.join("|"));xa=(f=mb.test(da.compareDocumentPosition))||mb.test(da.contains)?function(f,a){var b=9===f.nodeType?f.documentElement:f,v=a&&a.parentNode;return f===v||!(!v||!(1===v.nodeType&&(b.contains?b.contains(v):f.compareDocumentPosition&&f.compareDocumentPosition(v)&16)))}:function(f,a){if(a)for(;a=a.parentNode;)if(a===f)return!0;return!1};va=f?function(f, b){if(f===b)return Aa=!0,0;var g=!f.compareDocumentPosition-!b.compareDocumentPosition;if(g)return g;g=(f.ownerDocument||f)===(b.ownerDocument||b)?f.compareDocumentPosition(b):1;return g&1||!G.sortDetached&&b.compareDocumentPosition(f)===g?f===a||f.ownerDocument===W&&xa(W,f)?-1:b===a||b.ownerDocument===W&&xa(W,b)?1:qa?Sa.call(qa,f)-Sa.call(qa,b):0:g&4?-1:1}:function(f,b){if(f===b)return Aa=!0,0;var g,j=0;g=f.parentNode;var c=b.parentNode,d=[f],n=[b];if(!g||!c)return f===a?-1:b===a?1:g?-1:c?1:qa?Sa.call(qa, f)-Sa.call(qa,b):0;if(g===c)return pc(f,b);for(g=f;g=g.parentNode;)d.unshift(g);for(g=b;g=g.parentNode;)n.unshift(g);for(;d[j]===n[j];)j++;return j?pc(d[j],n[j]):d[j]===W?-1:n[j]===W?1:0};return a};I.matches=function(f,a){return I(f,null,null,a)};I.matchesSelector=function(f,a){(f.ownerDocument||f)!==R&&oa(f);a=a.replace(nd,"='$1']");if(G.matchesSelector&&ca&&(!ia||!ia.test(a))&&(!Q||!Q.test(a)))try{var b=ua.call(f,a);if(b||G.disconnectedMatch||f.document&&11!==f.document.nodeType)return b}catch(g){}return 0< I(a,R,null,[f]).length};I.contains=function(f,a){(f.ownerDocument||f)!==R&&oa(f);return xa(f,a)};I.attr=function(f,a){(f.ownerDocument||f)!==R&&oa(f);var b=H.attrHandle[a.toLowerCase()],b=b&&ea.call(H.attrHandle,a.toLowerCase())?b(f,a,!ca):void 0;return void 0!==b?b:G.attributes||!ca?f.getAttribute(a):(b=f.getAttributeNode(a))&&b.specified?b.value:null};I.error=function(f){throw Error("Syntax error, unrecognized expression: "+f);};I.uniqueSort=function(f){var a,b=[],g=0,j=0;Aa=!G.detectDuplicates; qa=!G.sortStable&&f.slice(0);f.sort(va);if(Aa){for(;a=f[j++];)a===f[j]&&(g=b.push(j));for(;g--;)f.splice(b[g],1)}qa=null;return f};Ha=I.getText=function(f){var a,b="",g=0;if(a=f.nodeType)if(1===a||9===a||11===a){if("string"===typeof f.textContent)return f.textContent;for(f=f.firstChild;f;f=f.nextSibling)b+=Ha(f)}else{if(3===a||4===a)return f.nodeValue}else for(;a=f[g++];)b+=Ha(a);return b};H=I.selectors={cacheLength:50,createPseudo:pa,match:zb,attrHandle:{},find:{},relative:{">":{dir:"parentNode", first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(f){f[1]=f[1].replace(Fa,Ga);f[3]=(f[4]||f[5]||"").replace(Fa,Ga);"~="===f[2]&&(f[3]=" "+f[3]+" ");return f.slice(0,4)},CHILD:function(f){f[1]=f[1].toLowerCase();"nth"===f[1].slice(0,3)?(f[3]||I.error(f[0]),f[4]=+(f[4]?f[5]+(f[6]||1):2*("even"===f[3]||"odd"===f[3])),f[5]=+(f[7]+f[8]||"odd"===f[3])):f[3]&&I.error(f[0]);return f},PSEUDO:function(f){var a,b=!f[5]&&f[2];if(zb.CHILD.test(f[0]))return null; if(f[3]&&void 0!==f[4])f[2]=f[4];else if(b&&od.test(b)&&(a=ta(b,!0))&&(a=b.indexOf(")",b.length-a)-b.length))f[0]=f[0].slice(0,a),f[2]=b.slice(0,a);return f.slice(0,3)}},filter:{TAG:function(f){var a=f.replace(Fa,Ga).toLowerCase();return"*"===f?function(){return!0}:function(f){return f.nodeName&&f.nodeName.toLowerCase()===a}},CLASS:function(f){var a=tc[f+" "];return a||(a=RegExp("(^|[\\x20\\t\\r\\n\\f])"+f+"([\\x20\\t\\r\\n\\f]|$)"))&&tc(f,function(f){return a.test("string"===typeof f.className&& f.className||typeof f.getAttribute!==A&&f.getAttribute("class")||"")})},ATTR:function(f,a,b){return function(g){g=I.attr(g,f);if(null==g)return"!="===a;if(!a)return!0;g+="";return"="===a?g===b:"!="===a?g!==b:"^="===a?b&&0===g.indexOf(b):"*="===a?b&&-1f.nodeType)return!1;return!0},parent:function(f){return!H.pseudos.empty(f)},header:function(f){return rd.test(f.nodeName)},input:function(f){return qd.test(f.nodeName)},button:function(f){var a=f.nodeName.toLowerCase();return"input"===a&&"button"=== f.type||"button"===a},text:function(f){var a;return"input"===f.nodeName.toLowerCase()&&"text"===f.type&&(null==(a=f.getAttribute("type"))||"text"===a.toLowerCase())},first:Ra(function(){return[0]}),last:Ra(function(f,a){return[a-1]}),eq:Ra(function(f,a,b){return[0>b?b+a:b]}),even:Ra(function(f,a){for(var b=0;bb?b+a:b;0<=--a;)f.push(a);return f}),gt:Ra(function(f,a,b){for(b=0>b? b+a:b;++b";return"#"===f.firstChild.getAttribute("href")})||Ub("type|href|height|width",function(f,a,b){if(!b)return f.getAttribute(a,"type"===a.toLowerCase()?1:2)});(!G.attributes||!X(function(f){f.innerHTML="";f.firstChild.setAttribute("value","");return""===f.firstChild.getAttribute("value")}))&&Ub("value",function(f,a,b){if(!b&&"input"===f.nodeName.toLowerCase())return f.defaultValue}); X(function(f){return null==f.getAttribute("disabled")})||Ub("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(f,a,b){var g;if(!b)return!0===f[a]?a.toLowerCase():(g=f.getAttributeNode(a))&&g.specified?g.value:null});g.find=I;g.expr=I.selectors;g.expr[":"]=g.expr.pseudos;g.unique=I.uniqueSort;g.text=I.getText;g.isXMLDoc=I.isXML;g.contains=I.contains;var xc=g.expr.match.needsContext,yc=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Wc= /^.[^:#\[\.,]*$/;g.filter=function(f,a,b){var j=a[0];b&&(f=":not("+f+")");return 1===a.length&&1===j.nodeType?g.find.matchesSelector(j,f)?[j]:[]:g.find.matches(f,g.grep(a,function(f){return 1===f.nodeType}))};g.fn.extend({find:function(f){var a,b=[],j=this,c=j.length;if("string"!==typeof f)return this.pushStack(g(f).filter(function(){for(a=0;a )[^>]*|#([\w-]*))$/;(g.fn.init=function(f,a){var b,j;if(!f)return this;if("string"===typeof f){if((b="<"===f.charAt(0)&&">"===f.charAt(f.length-1)&&3<=f.length?[null,f,null]:sd.exec(f))&&(b[1]||!a)){if(b[1]){if(a=a instanceof g?a[0]:a,g.merge(this, g.parseHTML(b[1],a&&a.nodeType?a.ownerDocument||a:y,!0)),yc.test(b[1])&&g.isPlainObject(a))for(b in a)if(g.isFunction(this[b]))this[b](a[b]);else this.attr(b,a[b])}else{if((j=y.getElementById(b[2]))&&j.parentNode){if(j.id!==b[2])return nb.find(f);this.length=1;this[0]=j}this.context=y;this.selector=f}return this}return!a||a.jquery?(a||nb).find(f):this.constructor(a).find(f)}if(f.nodeType)return this.context=this[0]=f,this.length=1,this;if(g.isFunction(f))return"undefined"!==typeof nb.ready?nb.ready(f): f(g);void 0!==f.selector&&(this.selector=f.selector,this.context=f.context);return g.makeArray(f,this)}).prototype=g.fn;nb=g(y);var td=/^(?:parents|prev(?:Until|All))/,ud={children:!0,contents:!0,next:!0,prev:!0};g.extend({dir:function(f,a,b){var j=[];for(f=f[a];f&&9!==f.nodeType&&(void 0===b||1!==f.nodeType||!g(f).is(b));)1===f.nodeType&&j.push(f),f=f[a];return j},sibling:function(f,a){for(var b=[];f;f=f.nextSibling)1===f.nodeType&&f!==a&&b.push(f);return b}});g.fn.extend({has:function(f){var a, b=g(f,this),j=b.length;return this.filter(function(){for(a=0;a b.nodeType&&(n?-1 a";u.leadingWhitespace=3===Z.firstChild.nodeType;u.tbody=!Z.getElementsByTagName("tbody").length;u.htmlSerialize=!!Z.getElementsByTagName("link").length;u.html5Clone="<:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML;ob.type="checkbox";ob.checked= !0;Yb.appendChild(ob);u.appendChecked=ob.checked;Z.innerHTML="";u.noCloneChecked=!!Z.cloneNode(!0).lastChild.defaultValue;Yb.appendChild(Z);Z.innerHTML="";u.checkClone=Z.cloneNode(!0).cloneNode(!0).lastChild.checked;u.noCloneEvent=!0;Z.attachEvent&&(Z.attachEvent("onclick",function(){u.noCloneEvent=!1}),Z.cloneNode(!0).click());if(null==u.deleteExpando){u.deleteExpando=!0;try{delete Z.test}catch($d){u.deleteExpando=!1}}var Yb=Z= ob=null,Db,Eb,Bc=y.createElement("div");for(Db in{submit:!0,change:!0,focusin:!0})if(Eb="on"+Db,!(u[Db+"Bubbles"]=Eb in a))Bc.setAttribute(Eb,"t"),u[Db+"Bubbles"]=!1===Bc.attributes[Eb].expando;var Zb=/^(?:input|select|textarea)$/i,wd=/^key/,xd=/^(?:mouse|contextmenu)|click/,Cc=/^(?:focusinfocus|focusoutblur)$/,Dc=/^([^.]*)(?:\.(.+)|)$/;g.event={global:{},add:function(a,b,j,c,d){var n,m,e,r,l,h,k,A,z;if(e=g._data(a)){j.handler&&(r=j,j=r.handler,d=r.selector);j.guid||(j.guid=g.guid++);if(!(m=e.events))m= e.events={};if(!(l=e.handle))l=e.handle=function(a){return typeof g!==ka&&(!a||g.event.triggered!==a.type)?g.event.dispatch.apply(l.elem,arguments):void 0},l.elem=a;b=(b||"").match(wa)||[""];for(e=b.length;e--;)if(n=Dc.exec(b[e])||[],A=h=n[1],z=(n[2]||"").split(".").sort(),A){n=g.event.special[A]||{};A=(d?n.delegateType:n.bindType)||A;n=g.event.special[A]||{};h=g.extend({type:A,origType:h,data:c,handler:j,guid:j.guid,selector:d,needsContext:d&&g.expr.match.needsContext.test(d),namespace:z.join(".")}, r);if(!(k=m[A]))if(k=m[A]=[],k.delegateCount=0,!n.setup||!1===n.setup.call(a,c,z,l))a.addEventListener?a.addEventListener(A,l,!1):a.attachEvent&&a.attachEvent("on"+A,l);n.add&&(n.add.call(a,h),h.handler.guid||(h.handler.guid=j.guid));d?k.splice(k.delegateCount++,0,h):k.push(h);g.event.global[A]=!0}a=null}},remove:function(a,b,j,c,d){var n,m,e,r,l,h,k,A,z,ba,E,t=g.hasData(a)&&g._data(a);if(t&&(h=t.events)){b=(b||"").match(wa)||[""];for(l=b.length;l--;)if(e=Dc.exec(b[l])||[],z=E=e[1],ba=(e[2]||"").split(".").sort(), z){k=g.event.special[z]||{};z=(c?k.delegateType:k.bindType)||z;A=h[z]||[];e=e[2]&&RegExp("(^|\\.)"+ba.join("\\.(?:.*\\.|)")+"(\\.|$)");for(r=n=A.length;n--;)if(m=A[n],(d||E===m.origType)&&(!j||j.guid===m.guid)&&(!e||e.test(m.namespace))&&(!c||c===m.selector||"**"===c&&m.selector))A.splice(n,1),m.selector&&A.delegateCount--,k.remove&&k.remove.call(a,m);r&&!A.length&&((!k.teardown||!1===k.teardown.call(a,ba,t.handle))&&g.removeEvent(a,z,t.handle),delete h[z])}else for(z in h)g.event.remove(a,z+b[l], j,c,!0);g.isEmptyObject(h)&&(delete t.handle,g._removeData(a,"events"))}},trigger:function(f,b,j,c){var d,n,m,e,r,l,h=[j||y],k=Ya.call(f,"type")?f.type:f;r=Ya.call(f,"namespace")?f.namespace.split("."):[];m=d=j=j||y;if(!(3===j.nodeType||8===j.nodeType)&&!Cc.test(k+g.event.triggered))if(0<=k.indexOf(".")&&(r=k.split("."),k=r.shift(),r.sort()),n=0>k.indexOf(":")&&"on"+k,f=f[g.expando]?f:new g.Event(k,"object"===typeof f&&f),f.isTrigger=c?2:3,f.namespace=r.join("."),f.namespace_re=f.namespace?RegExp("(^|\\.)"+ r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,f.result=void 0,f.target||(f.target=j),b=null==b?[f]:g.makeArray(b,[f]),r=g.event.special[k]||{},c||!(r.trigger&&!1===r.trigger.apply(j,b))){if(!c&&!r.noBubble&&!g.isWindow(j)){e=r.delegateType||k;Cc.test(e+k)||(m=m.parentNode);for(;m;m=m.parentNode)h.push(m),d=m;if(d===(j.ownerDocument||y))h.push(d.defaultView||d.parentWindow||a)}for(l=0;(m=h[l++])&&!f.isPropagationStopped();)if(f.type=1
]","i"),$b=/^\s+/,Fc=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Gc=/<([\w:]+)/,Hc=/\s*$/g,ja={option:[1,""],legend:[1,""],area:[1,""],param:[1,""],thead:[1," ","
"],tr:[2,"","
"],col:[2,""],td:[3,"
"," "],_default:u.htmlSerialize?[0,"",""]:[1,"X
"," ",""]},ac= S(y).appendChild(y.createElement("div"));ja.optgroup=ja.option;ja.tbody=ja.tfoot=ja.colgroup=ja.caption=ja.thead;ja.th=ja.td;g.extend({clone:function(a,b,j){var c,d,n,m,e,r=g.contains(a.ownerDocument,a);u.html5Clone||g.isXMLDoc(a)||!Ec.test("<"+a.nodeName+">")?n=a.cloneNode(!0):(ac.innerHTML=a.outerHTML,ac.removeChild(n=ac.firstChild));if((!u.noCloneEvent||!u.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!g.isXMLDoc(a)){c=K(n);e=K(a);for(m=0;null!=(d=e[m]);++m)if(c[m]){var l=c[m],h=void 0,k= void 0,A=void 0;if(1===l.nodeType){h=l.nodeName.toLowerCase();if(!u.noCloneEvent&&l[g.expando]){A=g._data(l);for(k in A.events)g.removeEvent(l,k,A.handle);l.removeAttribute(g.expando)}if("script"===h&&l.text!==d.text)V(l).text=d.text,D(l);else if("object"===h)l.parentNode&&(l.outerHTML=d.outerHTML),u.html5Clone&&(d.innerHTML&&!g.trim(l.innerHTML))&&(l.innerHTML=d.innerHTML);else if("input"===h&&Pb.test(d.type))l.defaultChecked=l.checked=d.checked,l.value!==d.value&&(l.value=d.value);else if("option"=== h)l.defaultSelected=l.selected=d.defaultSelected;else if("input"===h||"textarea"===h)l.defaultValue=d.defaultValue}}}if(b)if(j){e=e||K(a);c=c||K(n);for(m=0;null!=(d=e[m]);m++)Ba(d,c[m])}else Ba(a,n);c=K(n,"script");0$2>")+l[2];for(d=l[0];d--;)m=m.lastChild;!u.leadingWhitespace&&$b.test(n)&&A.push(b.createTextNode($b.exec(n)[0]));if(!u.tbody)for(d=(n="table"===e&&!Hc.test(n)?m.firstChild:" "===l[1]&&!Hc.test(n)?m:0)&&n.childNodes.length;d--;)g.nodeName(r=n.childNodes[d],"tbody")&&!r.childNodes.length&&n.removeChild(r);g.merge(A,m.childNodes);for(m.textContent="";m.firstChild;)m.removeChild(m.firstChild);m=k.lastChild}else A.push(b.createTextNode(n)); m&&k.removeChild(m);u.appendChecked||g.grep(K(A,"input"),sb);for(z=0;n=A[z++];)if(!(c&&-1!==g.inArray(n,c))&&(a=g.contains(n.ownerDocument,n),m=K(k.appendChild(n),"script"),a&&Wa(m),j))for(d=0;n=m[d++];)Ic.test(n.type||"")&&j.push(n);return k},cleanData:function(a,b){for(var j,c,d,m,e=0,r=g.expando,l=g.cache,h=u.deleteExpando,k=g.event.special;null!=(j=a[e]);e++)if(b||g.acceptData(j))if(m=(d=j[r])&&l[d]){if(m.events)for(c in m.events)k[c]?g.event.remove(j,c):g.removeEvent(j,c,m.handle);l[d]&&(delete l[d], h?delete j[r]:typeof j.removeAttribute!==ka?j.removeAttribute(r):j[r]=null,n.push(d))}}});g.fn.extend({text:function(a){return Ta(this,function(a){return void 0===a?g.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&Ma(this,a).appendChild(a)})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType|| 11===this.nodeType||9===this.nodeType){var b=Ma(this,a);b.insertBefore(a,b.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,b){for(var j,c=a?g.filter(a,this):this,d=0;null!=(j=c[d]);d++)!b&&1===j.nodeType&&g.cleanData(K(j)),j.parentNode&&(b&&g.contains(j.ownerDocument, j)&&Wa(K(j,"script")),j.parentNode.removeChild(j));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){for(1===a.nodeType&&g.cleanData(K(a,!1));a.firstChild;)a.removeChild(a.firstChild);a.options&&g.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){a=null==a?!1:a;b=null==b?a:b;return this.map(function(){return g.clone(this,a,b)})},html:function(a){return Ta(this,function(a){var f=this[0]||{},b=0,j=this.length;if(void 0===a)return 1===f.nodeType?f.innerHTML.replace(yd, ""):void 0;if("string"===typeof a&&!Ad.test(a)&&(u.htmlSerialize||!Ec.test(a))&&(u.leadingWhitespace||!$b.test(a))&&!ja[(Gc.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Fc,"<$1>$2>");try{for(;b
a";pb=cb.getElementsByTagName("a")[0];pb.style.cssText="float:left;opacity:.5";u.opacity=/^0.5/.test(pb.style.opacity);u.cssFloat=!!pb.style.cssFloat;cb.style.backgroundClip="content-box";cb.cloneNode(!0).style.backgroundClip="";u.clearCloneStyle="content-box"=== cb.style.backgroundClip;pb=cb=null;u.shrinkWrapBlocks=function(){var a,b,j;if(null==Fb){a=y.getElementsByTagName("body")[0];if(!a)return;b=y.createElement("div");j=y.createElement("div");a.appendChild(b).appendChild(j);Fb=!1;typeof j.style.zoom!==ka&&(j.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",j.innerHTML="",j.firstChild.style.width="5px",Fb=3!==j.offsetWidth); a.removeChild(b)}return Fb};var Jc=/^margin/,tb=RegExp("^("+Cb+")(?!px)[a-z%]+$","i"),Pa,Qa,Dd=/^(top|right|bottom|left)$/;a.getComputedStyle?(Pa=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},Qa=function(a,b,j){var c,d,n=a.style;d=(j=j||Pa(a))?j.getPropertyValue(b)||j[b]:void 0;j&&(""===d&&!g.contains(a.ownerDocument,a)&&(d=g.style(a,b)),tb.test(d)&&Jc.test(b)&&(a=n.width,b=n.minWidth,c=n.maxWidth,n.minWidth=n.maxWidth=n.width=d,d=j.width,n.width=a,n.minWidth=b,n.maxWidth= c));return void 0===d?d:d+""}):y.documentElement.currentStyle&&(Pa=function(a){return a.currentStyle},Qa=function(a,b,j){var g,c,d,n=a.style;d=(j=j||Pa(a))?j[b]:void 0;null==d&&(n&&n[b])&&(d=n[b]);if(tb.test(d)&&!Dd.test(b)){j=n.left;if(c=(g=a.runtimeStyle)&&g.left)g.left=a.currentStyle.left;n.left="fontSize"===b?"1em":d;d=n.pixelLeft+"px";n.left=j;c&&(g.left=c)}return void 0===d?d:d+""||"auto"});var dc=function(){var f,b,j=y.getElementsByTagName("body")[0];j&&(f=y.createElement("div"),b=y.createElement("div"), f.style.cssText=bc,j.appendChild(f).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%",g.swap(j,null!=j.style.zoom?{zoom:1}:{},function(){cc=4===b.offsetWidth}),Gb=!0,Hb=!1,Ib=!0,a.getComputedStyle&&(Hb="1%"!==(a.getComputedStyle(b,null)||{}).top,Gb="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width),j.removeChild(f),b=j=null)},qb,Jb,cc,Gb,Hb,Ib, db=y.createElement("div"),bc="border:0;width:0;height:0;position:absolute;top:0;left:-9999px";db.innerHTML="
a";qb=db.getElementsByTagName("a")[0];qb.style.cssText="float:left;opacity:.5";u.opacity=/^0.5/.test(qb.style.opacity);u.cssFloat=!!qb.style.cssFloat;db.style.backgroundClip="content-box";db.cloneNode(!0).style.backgroundClip="";u.clearCloneStyle="content-box"===db.style.backgroundClip;qb=db=null;g.extend(u,{reliableHiddenOffsets:function(){if(null!= Jb)return Jb;var a,b,j;b=y.createElement("div");var g=y.getElementsByTagName("body")[0];if(g)return b.setAttribute("className","t"),b.innerHTML="
a",a=y.createElement("div"),a.style.cssText=bc,g.appendChild(a).appendChild(b),b.innerHTML="
",b=b.getElementsByTagName("td"),b[0].style.cssText="padding:0;margin:0;border:0;display:none",j=0===b[0].offsetHeight,b[0].style.display="",b[1].style.display= "none",Jb=j&&0===b[0].offsetHeight,g.removeChild(a),Jb},boxSizing:function(){null==cc&&dc();return cc},boxSizingReliable:function(){null==Gb&&dc();return Gb},pixelPosition:function(){null==Hb&&dc();return Hb},reliableMarginRight:function(){var f,b,j,g;if(null==Ib&&a.getComputedStyle){f=y.getElementsByTagName("body")[0];if(!f)return;b=y.createElement("div");j=y.createElement("div");b.style.cssText=bc;f.appendChild(b).appendChild(j);g=j.appendChild(y.createElement("div"));g.style.cssText=j.style.cssText= "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";g.style.marginRight=g.style.width="0";j.style.width="1px";Ib=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight);f.removeChild(b)}return Ib}});g.swap=function(a,b,j,g){var c,d={};for(c in b)d[c]=a.style[c],a.style[c]=b[c];j=j.apply(a,g||[]);for(c in b)a.style[c]=d[c];return j};var ec=/alpha\([^)]*\)/i,Ed=/opacity\s*=\s*([^)]*)/,Fd=/^(none|table(?!-c[ea]).+)/,$c=RegExp("^("+ Cb+")(.*)$","i"),Gd=RegExp("^([+-])=("+Cb+")","i"),Hd={position:"absolute",visibility:"hidden",display:"block"},Kc={letterSpacing:0,fontWeight:400},oc=["Webkit","O","Moz","ms"];g.extend({cssHooks:{opacity:{get:function(a,b){if(b){var j=Qa(a,"opacity");return""===j?"1":j}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":u.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,j,c){if(a&&!(3===a.nodeType|| 8===a.nodeType||!a.style)){var d,n,m,e=g.camelCase(b),r=a.style;b=g.cssProps[e]||(g.cssProps[e]=sa(r,e));m=g.cssHooks[b]||g.cssHooks[e];if(void 0!==j){n=typeof j;if("string"===n&&(d=Gd.exec(j)))j=(d[1]+1)*d[2]+parseFloat(g.css(a,b)),n="number";if(!(null==j||j!==j))if("number"===n&&!g.cssNumber[e]&&(j+="px"),!u.clearCloneStyle&&(""===j&&0===b.indexOf("background"))&&(r[b]="inherit"),!m||!("set"in m)||void 0!==(j=m.set(a,j,c)))try{r[b]="",r[b]=j}catch(l){}}else return m&&"get"in m&&void 0!==(d=m.get(a, !1,c))?d:r[b]}},css:function(a,b,j,c){var d,n;n=g.camelCase(b);b=g.cssProps[n]||(g.cssProps[n]=sa(a.style,n));(n=g.cssHooks[b]||g.cssHooks[n])&&"get"in n&&(d=n.get(a,!0,j));void 0===d&&(d=Qa(a,b,c));"normal"===d&&b in Kc&&(d=Kc[b]);return""===j||j?(a=parseFloat(d),!0===j||g.isNumeric(a)?a||0:d):d}});g.each(["height","width"],function(a,b){g.cssHooks[b]={get:function(a,f,j){if(f)return 0===a.offsetWidth&&Fd.test(g.css(a,"display"))?g.swap(a,Hd,function(){return la(a,b,j)}):la(a,b,j)},set:function(a, f,j){var c=j&&Pa(a);return w(a,f,j?$(a,b,j,u.boxSizing()&&"border-box"===g.css(a,"boxSizing",!1,c),c):0)}}});u.opacity||(g.cssHooks.opacity={get:function(a,b){return Ed.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var j=a.style,c=a.currentStyle,d=g.isNumeric(b)?"alpha(opacity="+100*b+")":"",n=c&&c.filter||j.filter||"";j.zoom=1;if((1<=b||""===b)&&""===g.trim(n.replace(ec,""))&&j.removeAttribute)if(j.removeAttribute("filter"), ""===b||c&&!c.filter)return;j.filter=ec.test(n)?n.replace(ec,d):n+" "+d}});g.cssHooks.marginRight=Na(u.reliableMarginRight,function(a,b){if(b)return g.swap(a,{display:"inline-block"},Qa,[a,"marginRight"])});g.each({margin:"",padding:"",border:"Width"},function(a,b){g.cssHooks[a+b]={expand:function(j){var g=0,c={};for(j="string"===typeof j?j.split(" "):[j];4>g;g++)c[a+Oa[g]+b]=j[g]||j[g-2]||j[0];return c}};Jc.test(a)||(g.cssHooks[a+b].set=w)});g.fn.extend({css:function(a,b){return Ta(this,function(a, f,b){var j,c={},d=0;if(g.isArray(f)){b=Pa(a);for(j=f.length;d
t a";Lb=rb.getElementsByTagName("a")[0];fc=y.createElement("select");gc=fc.appendChild(y.createElement("option"));Ja=rb.getElementsByTagName("input")[0];Lb.style.cssText="top:1px";u.getSetAttribute= "t"!==rb.className;u.style=/top/.test(Lb.getAttribute("style"));u.hrefNormalized="/a"===Lb.getAttribute("href");u.checkOn=!!Ja.value;u.optSelected=gc.selected;u.enctype=!!y.createElement("form").enctype;fc.disabled=!0;u.optDisabled=!gc.disabled;Ja=y.createElement("input");Ja.setAttribute("value","");u.input=""===Ja.getAttribute("value");Ja.value="t";Ja.setAttribute("type","radio");u.radioValue="t"===Ja.value;var Kd=/\r/g;g.fn.extend({val:function(a){var b,j,c,d=this[0];if(arguments.length)return c= g.isFunction(a),this.each(function(j){if(1===this.nodeType&&(j=c?a.call(this,j,g(this).val()):a,null==j?j="":"number"===typeof j?j+="":g.isArray(j)&&(j=g.map(j,function(a){return null==a?"":a+""})),b=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()],!b||!("set"in b)||void 0===b.set(this,j,"value")))this.value=j});if(d){if((b=g.valHooks[d.type]||g.valHooks[d.nodeName.toLowerCase()])&&"get"in b&&void 0!==(j=b.get(d,"value")))return j;j=d.value;return"string"===typeof j?j.replace(Kd,""): null==j?"":j}}});g.extend({valHooks:{option:{get:function(a){var b=g.find.attr(a,"value");return null!=b?b:g.text(a)}},select:{get:function(a){for(var b,j=a.options,c=a.selectedIndex,d=(a="select-one"===a.type||0>c)?null:[],n=a?c+1:j.length,m=0>c?n:a?c:0;m
c.indexOf(" "+d+" ")&&(c+=d+" ");c=g.trim(c);j.className!==c&&(j.className=c)}return this},removeClass:function(a){var b,j,c,d,n,m=0,e=this.length;b=0===arguments.length||"string"===typeof a&&a;if(g.isFunction(a))return this.each(function(b){g(this).removeClass(a.call(this, b,this.className))});if(b)for(b=(a||"").match(wa)||[];m a||304===a;if(f){q=h;for(var v=s,O,ra,F,B,P=q.contents,x=q.dataTypes;"*"===x[0];)x.shift(),void 0===ra&&(ra=q.mimeType||v.getResponseHeader("Content-Type"));if(ra)for(B in P)if(P[B]&&P[B].test(ra)){x.unshift(B);break}if(x[0]in f)F=x[0];else{for(B in f){if(!x[0]||q.converters[B+ " "+x[0]]){F=B;break}O||(O=B)}F=F||O}F?(F!==x[0]&&x.unshift(F),q=f[F]):q=void 0}a:{f=h;O=q;ra=s;F=c;var bb,u,S,v={},P=f.dataTypes.slice();if(P[1])for(u in f.converters)v[u.toLowerCase()]=f.converters[u];for(B=P.shift();B;)if(f.responseFields[B]&&(ra[f.responseFields[B]]=O),!S&&(F&&f.dataFilter)&&(O=f.dataFilter(O,f.dataType)),S=B,B=P.shift())if("*"===B)B=S;else if("*"!==S&&S!==B){u=v[S+" "+B]||v["* "+B];if(!u)for(bb in v)if(q=bb.split(" "),q[1]===B&&(u=v[S+" "+q[0]]||v["* "+q[0]])){!0===u?u=v[bb]: !0!==v[bb]&&(B=q[0],P.unshift(q[1]));break}if(!0!==u)if(u&&f["throws"])O=u(O);else try{O=u(O)}catch(ga){q={state:"parsererror",error:u?ga:"No conversion from "+S+" to "+B};break a}}q={state:"success",data:O}}if(c)h.ifModified&&((p=s.getResponseHeader("Last-Modified"))&&(g.lastModified[n]=p),(p=s.getResponseHeader("etag"))&&(g.etag[n]=p)),204===a||"HEAD"===h.type?p="nocontent":304===a?p="notmodified":(p=q.state,d=q.data,k=q.error,c=!k);else if(k=p,a||!p)p="error",0>a&&(a=0);s.status=a;s.statusText= (b||p)+"";c?ba.resolveWith(A,[d,p,s]):ba.rejectWith(A,[s,p,k]);s.statusCode(t);t=void 0;r&&z.trigger(c?"ajaxSuccess":"ajaxError",[s,h,c?d:k]);E.fireWith(A,[s,p]);r&&(z.trigger("ajaxComplete",[s,h]),--g.active||g.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=void 0);b=b||{};var c,d,n,m,e,r,l,k,h=g.ajaxSetup({},b),A=h.context||h,z=h.context&&(A.nodeType||A.jquery)?g(A):g.event,ba=g.Deferred(),E=g.Callbacks("once memory"),t=h.statusCode||{},p={},O={},ea=0,ra="canceled",s={readyState:0,getResponseHeader:function(a){var b; if(2===ea){if(!k)for(k={};b=Pd.exec(m);)k[b[1].toLowerCase()]=b[2];b=k[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===ea?m:null},setRequestHeader:function(a,b){var j=a.toLowerCase();ea||(a=O[j]=O[j]||a,p[a]=b);return this},overrideMimeType:function(a){ea||(h.mimeType=a);return this},statusCode:function(a){var b;if(a)if(2>ea)for(b in a)t[b]=[t[b],a[b]];else s.always(a[s.status]);return this},abort:function(a){a=a||ra;l&&l.abort(a);j(0,a);return this}};ba.promise(s).complete= E.add;s.success=s.done;s.error=s.fail;h.url=((a||h.url||La)+"").replace(Od,"").replace(Rd,Va[1]+"//");h.type=b.method||b.type||h.method||h.type;h.dataTypes=g.trim(h.dataType||"*").toLowerCase().match(wa)||[""];null==h.crossDomain&&(c=Oc.exec(h.url.toLowerCase()),h.crossDomain=!(!c||!(c[1]!==Va[1]||c[2]!==Va[2]||(c[3]||("http:"===c[1]?"80":"443"))!==(Va[3]||("http:"===Va[1]?"80":"443")))));h.data&&(h.processData&&"string"!==typeof h.data)&&(h.data=g.param(h.data,h.traditional));lb(Pc,h,b,s);if(2=== ea)return s;(r=h.global)&&0===g.active++&&g.event.trigger("ajaxStart");h.type=h.type.toUpperCase();h.hasContent=!Qd.test(h.type);n=h.url;h.hasContent||(h.data&&(n=h.url+=(kc.test(n)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=Nc.test(n)?n.replace(Nc,"$1_="+jc++):n+(kc.test(n)?"&":"?")+"_="+jc++));h.ifModified&&(g.lastModified[n]&&s.setRequestHeader("If-Modified-Since",g.lastModified[n]),g.etag[n]&&s.setRequestHeader("If-None-Match",g.etag[n]));(h.data&&h.hasContent&&!1!==h.contentType||b.contentType)&& s.setRequestHeader("Content-Type",h.contentType);s.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Qc+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)s.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(A,s,h)||2===ea))return s.abort();ra="abort";for(d in{success:1,error:1,complete:1})s[d](h[d]);if(l=lb(Qb,h,b,s)){s.readyState=1;r&&z.trigger("ajaxSend",[s,h]);h.async&&0 ea)j(-1,F);else throw F;}}else j(-1,"No Transport");return s},getJSON:function(a,b,j){return g.get(a,b,j,"json")},getScript:function(a,b){return g.get(a,void 0,b,"script")}});g.each(["get","post"],function(a,b){g[b]=function(a,j,f,c){g.isFunction(j)&&(c=c||f,f=j,j=void 0);return g.ajax({url:a,type:b,dataType:c,data:j,success:f})}});g.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){g.fn[b]=function(a){return this.on(b, a)}});g._evalUrl=function(a){return g.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})};g.fn.extend({wrapAll:function(a){if(g.isFunction(a))return this.each(function(b){g(this).wrapAll(a.call(this,b))});if(this[0]){var b=g(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 g.isFunction(a)? this.each(function(b){g(this).wrapInner(a.call(this,b))}):this.each(function(){var b=g(this),j=b.contents();j.length?j.wrapAll(a):b.append(a)})},wrap:function(a){var b=g.isFunction(a);return this.each(function(j){g(this).wrapAll(b?a.call(this,j):a)})},unwrap:function(){return this.parent().each(function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)}).end()}});g.expr.filters.hidden=function(a){return 0>=a.offsetWidth&&0>=a.offsetHeight||!u.reliableHiddenOffsets()&&"none"===(a.style&& a.style.display||g.css(a,"display"))};g.expr.filters.visible=function(a){return!g.expr.filters.hidden(a)};var Sd=/%20/g,bd=/\[\]$/,Rc=/\r?\n/g,Td=/^(?:submit|button|image|reset|file)$/i,Ud=/^(?:input|select|textarea|keygen)/i;g.param=function(a,b){var j,c=[],d=function(a,b){b=g.isFunction(b)?b():null==b?"":b;c[c.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};void 0===b&&(b=g.ajaxSettings&&g.ajaxSettings.traditional);if(g.isArray(a)||a.jquery&&!g.isPlainObject(a))g.each(a,function(){d(this.name, this.value)});else for(j in a)C(j,a[j],b,d);return c.join("&").replace(Sd,"+")};g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=g.prop(this,"elements");return a?g.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!g(this).is(":disabled")&&Ud.test(this.nodeName)&&!Td.test(a)&&(this.checked||!Pb.test(a))}).map(function(a,b){var j=g(this).val();return null==j?null:g.isArray(j)?g.map(j,function(a){return{name:b.name, value:a.replace(Rc,"\r\n")}}):{name:b.name,value:j.replace(Rc,"\r\n")}}).get()}});g.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){var b;if(!(b=!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&aa()))a:{try{b=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(j){}b=void 0}return b}:aa;g.ajaxSettings.xhr=void 0===a.ActiveXObject?U:function(){return(this.url==y.location||0==this.url.indexOf("http")||!this.isLocal)&&/^(get|post|head|put|delete|options)$/i.test(this.type)&& U()||U(1)};var Vd=0,Nb={},Ob=g.ajaxSettings.xhr();if(a.ActiveXObject)g(a).on("unload",function(){for(var a in Nb)Nb[a](void 0,!0)});u.cors=!!Ob&&"withCredentials"in Ob;(Ob=u.ajax=!!Ob)&&g.ajaxTransport(function(a){if(!a.crossDomain||u.cors){var b;return{send:function(j,c){var d,n=a.xhr(),m=++Vd;console.log("xhr.open async="+a.async+" url="+a.url);n.open(a.type,a.url,a.async,a.username,a.password);if(a.xhrFields)for(d in a.xhrFields)n[d]=a.xhrFields[d];a.mimeType&&n.overrideMimeType&&n.overrideMimeType(a.mimeType); !a.crossDomain&&!j["X-Requested-With"]&&(j["X-Requested-With"]="XMLHttpRequest");for(d in j)void 0!==j[d]&&n.setRequestHeader(d,j[d]+"");n.send(a.hasContent&&a.data||null);b=function(j,d){var e,r,h;if(b&&(d||4===n.readyState))if(delete Nb[m],b=void 0,n.onreadystatechange=g.noop,d)4!==n.readyState&&n.abort();else{h={};e=n.status;"string"===typeof n.responseText&&(h.text=n.responseText);try{r=n.statusText}catch(l){r=""}!e&&a.isLocal&&!a.crossDomain?e=h.text?200:404:1223===e&&(e=204)}h&&c(e,r,h,n.getAllResponseHeaders())}; a.async?4===n.readyState?setTimeout(b):n.onreadystatechange=Nb[m]=b:b()},abort:function(){b&&b(void 0,!0)}}}});g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){g.globalEval(a);return a}}});g.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});g.ajaxTransport("script",function(a){if(a.crossDomain){var b, j=y.head||g("head")[0]||y.documentElement;return{send:function(c,g){b=y.createElement("script");b.async=!0;a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,j){if(j||!b.readyState||/loaded|complete/.test(b.readyState))b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,j||g(200,"success")};j.insertBefore(b,j.firstChild)},abort:function(){if(b)b.onload(void 0,!0)}}}});var Sc=[],lc=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback", jsonpCallback:function(){var a=Sc.pop()||g.expando+"_"+jc++;this[a]=!0;return a}});g.ajaxPrefilter("json jsonp",function(b,j,c){var d,n,m,e=!1!==b.jsonp&&(lc.test(b.url)?"url":"string"===typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&lc.test(b.data)&&"data");if(e||"jsonp"===b.dataTypes[0])return d=b.jsonpCallback=g.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,e?b[e]=b[e].replace(lc,"$1"+d):!1!==b.jsonp&&(b.url+=(kc.test(b.url)?"&":"?")+b.jsonp+"="+ d),b.converters["script json"]=function(){m||g.error(d+" was not called");return m[0]},b.dataTypes[0]="json",n=a[d],a[d]=function(){m=arguments},c.always(function(){a[d]=n;b[d]&&(b.jsonpCallback=j.jsonpCallback,Sc.push(d));m&&g.isFunction(n)&&n(m[0]);m=n=void 0}),"script"});g.parseHTML=function(a,b,j){if(!a||"string"!==typeof a)return null;"boolean"===typeof b&&(j=b,b=!1);b=b||y;var c=yc.exec(a);j=!j&&[];if(c)return[b.createElement(c[1])];c=g.buildFragment([a],b,j);j&&j.length&&g(j).remove();return g.merge([], c.childNodes)};var Tc=g.fn.load;g.fn.load=function(a,b,j){if("string"!==typeof a&&Tc)return Tc.apply(this,arguments);var c,d,n,m=this,e=a.indexOf(" ");0<=e&&(c=a.slice(e,a.length),a=a.slice(0,e));g.isFunction(b)?(j=b,b=void 0):b&&"object"===typeof b&&(n="POST");0 ").append(g.parseHTML(a)).find(c):a)}).complete(j&&function(a,b){m.each(j,d||[a.responseText,b,a])});return this};g.expr.filters.animated= function(a){return g.grep(g.timers,function(b){return a===b.elem}).length};var Uc=a.document.documentElement;g.offset={setOffset:function(a,b,j){var c,d,n,m=g.css(a,"position"),e=g(a),h={};"static"===m&&(a.style.position="relative");n=e.offset();d=g.css(a,"top");c=g.css(a,"left");("absolute"===m||"fixed"===m)&&-1 org.pdb.query.simple.AdvancedKeywordQuery Text Search QUERY ",_restReportUrl:"http://www.pdb.org/pdb/rest/customReport?pdbids=IDLIST&customReportColumns=structureId,structureTitle"},_debugAlert:!1,_document:a,_isXHTML:!1,_lastAppletID:null,_mousePageX:null,_mouseOwner:null,_serverUrl:"http://your.server.here/jsmol.php",_syncId:(""+Math.random()).substring(3), _touching:!1,_XhtmlElement:null,_XhtmlAppendChild:!1};a=a.location.href.toLowerCase();p._httpProto=0==a.indexOf("https")?"https://":"http://";p._isFile=0==a.indexOf("file:");p._ajaxTestSite=p._httpProto+"google.com";a=p._isFile||0==a.indexOf("http://localhost")||0==a.indexOf("http://127.");p._tracker="http://"==p._httpProto&&!a&&"http://chemapps.stolaf.edu/jmol/JmolTracker.htm?id=UA-45940799-1";p._isChrome=0<=navigator.userAgent.toLowerCase().indexOf("chrome");p._isSafari=!p._isChrome&&0<=navigator.userAgent.toLowerCase().indexOf("safari"); p._isMsie=void 0!==window.ActiveXObject;p._useDataURI=!p._isSafari&&!p._isMsie;for(var l in Jmol)p[l]=Jmol[l];return p}(document,Jmol)); (function(a,p){a.__$=p;p(document).ready(function(){a._document=null});a.$=function(a,d){null==a&&alert(d+arguments.callee.caller.toString());return p(d?"#"+a._id+"_"+d:a)};a._$=function(a){return"string"==typeof a?p("#"+a):a};a.$ajax=function(b){a._ajaxCall=b.url;b.cache="NO"!=b.cache;0==b.url.indexOf("http://pubchem.ncbi.nlm.nih")&&(b.url="https://"+b.url.substring(7));return p.ajax(b)};a._getNCIInfo=function(b,d){return a._getFileData("http://cactus.nci.nih.gov/chemical/structure/"+b+"/"+("name"== d?"names":d))};a.$appEvent=function(b,d,c,e){b=a.$(b,d);b.off(c)&&e&&b.on(c,e)};a.$resize=function(a){return p(window).resize(a)};a.$after=function(a,d){return p(a).after(d)};a.$append=function(a,d){return p(a).append(d)};a.$bind=function(a,d,c){return c?p(a).bind(d,c):p(a).unbind(d)};a.$closest=function(a,d){return p(a).closest(d)};a.$get=function(a,d){return p(a).get(d)};a.$documentOff=function(a,d){return p(document).off(a,"#"+d)};a.$documentOn=function(a,d,c){return p(document).on(a,"#"+d,c)}; a.$getAncestorDiv=function(a,d){return p("div."+d+":has(#"+a+")")[0]};a.$supportsIECrossDomainScripting=function(){return p.support.iecors};a.$attr=function(b,d,c){return a._$(b).attr(d,c)};a.$css=function(b,d){return a._$(b).css(d)};a.$find=function(b,d){return a._$(b).find(d)};a.$focus=function(b){return a._$(b).focus()};a.$html=function(b,d){return a._$(b).html(d)};a.$offset=function(b){return a._$(b).offset()};a.$windowOn=function(a,d){return p(window).on(a,d)};a.$prop=function(b,d,c){var e=a._$(b); return 3==arguments.length?e.prop(d,c):e.prop(d)};a.$remove=function(b){return a._$(b).remove()};a.$scrollTo=function(b,d){var c=a._$(b);return c.scrollTop(0>d?c[0].scrollHeight:d)};a.$setEnabled=function(b,d){return a._$(b).attr("disabled",d?null:"disabled")};a.$getSize=function(b){b=a._$(b);return[b.width(),b.height()]};a.$setSize=function(b,d,c){return a._$(b).width(d).height(c)};a.$setVisible=function(b,d){var c=a._$(b);return d?c.show():c.hide()};a.$submit=function(b){return a._$(b).submit()}; a.$val=function(b,d){var c=a._$(b);return 1==arguments.length?c.val():c.val(d)};a._clearVars=function(){delete jQuery;delete p;delete a;delete SwingController;delete J;delete JM;delete JS;delete JSV;delete JU;delete JV;delete java;delete javajs;delete Clazz;delete c$};var l=document,k=window,e={};e.ua=navigator.userAgent.toLowerCase();var h;a:{h=["linux","unix","mac","win"];for(var t=h.length;t--;)if(-1!=e.ua.indexOf(h[t])){h=h[t];break a}h="unknown"}e.os=h;e.browser=function(){for(var a=e.ua,d="konqueror webkit omniweb opera webtv icab msie mozilla".split(" "), c=0;cnavigator.appVersion.indexOf("MSIE 8");e.getDefaultLanguage=function(){return navigator.language||navigator.userLanguage||"en-US"};e._webGLtest=0;e.supportsWebGL=function(){if(!a.featureDetection._webGLtest){var b; a.featureDetection._webGLtest=k.WebGLRenderingContext&&((b=l.createElement("canvas")).getContext("webgl")||b.getContext("experimental-webgl"))?1:-1}return 0 =e.browserVersion&&"mac"==d||"webkit"==e.browserName&&125.12>e.browserVersion||"msie"==e.browserName&&"mac"==d||"konqueror"==e.browserName&&3.3>=e.browserVersion)a=!1;return a};e.isFullyCompliant=function(){return e.compliantBrowser()&&e.supportsJava()};e.useIEObject="win"==e.os&&"msie"== e.browserName&&5.5<=e.browserVersion;e.useHtml4Object="mozilla"==e.browserName&&5<=e.browserVersion||"opera"==e.browserName&&8<=e.browserVersion||"webkit"==e.browserName;e.hasFileReader=k.File&&k.FileReader;a.featureDetection=e;a._ajax=function(b){if(!b.async)return a.$ajax(b).responseText;a._ajaxQueue.push(b);1==a._ajaxQueue.length&&a._ajaxDone()};a._ajaxDone=function(){var b=a._ajaxQueue.shift();b&&a.$ajax(b)};a._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"],["=", "RCSB(macromolecules)"],["*","PDBe(macromolecules)"]];a._getGrabberOptions=function(b){if(0==a._grabberOptions.length)return"";var d='',c='';1==a._grabberOptions.length?(d=" "+d+' "+c):d+="";for(var d= d+'"+c).replace(/ID/g,b._id);return"
"+d};a._getScriptForDatabase=function(b){return"$"==b?a.db._nciLoadScript:":"==b?a.db._pubChemLoadScript:a.db._fileLoadScript};a._setInfo=function(a,d,c){var e=[],h="";if(0==c.indexOf("ERROR"))h=c;else switch(d){case "=":d=c.split("");e=[" "];for(c= 1;c
");h=d.length-1+" matches";break;case "$":case ":":break;default:return}a._infoHeader=h;a._info=e.join("");a._showInfo(!0)};a._loadSuccess=function(b,d){d&&(a._ajaxDone(),d(b))};a._loadError=function(b){a._ajaxDone();a.say("Error connecting to server: "+a._ajaxCall); null!=b&&b()};a._isDatabaseCall=function(b){return 0<=a.db._databasePrefixes.indexOf(b.substring(0,1))};a._getDirectDatabaseCall=function(b,d){if(d&&!a.featureDetection.supportsXhr2())return b;var c=2,e,h=a.db._DirectDatabaseCalls[b.substring(0,c)]||a.db._DirectDatabaseCalls[e=b.substring(0,--c)];h&&(":"==e?(e=b.toLowerCase(),isNaN(parseInt(b.substring(1)))?0==e.indexOf(":smiles:")?(h+="?POST?smiles="+b.substring(8),b="smiles"):0==e.indexOf(":cid:")?b="cid/"+b.substring(5):(0==e.indexOf(":name:")? b=b.substring(5):0==e.indexOf(":cas:")&&(b=b.substring(4)),b="name/"+encodeURIComponent(b.substring(c))):b="cid/"+b.substring(1)):b=encodeURIComponent(b.substring(c)),0<=h.indexOf("FILENCI")?(b=b.replace(/\%2F/g,"/"),b=h.replace(/\%FILENCI/,b)):b=h.replace(/\%FILE/,b));return b};a._getRawDataFromServer=function(b,d,c,e,h,l){b="?call=getRawDataFromDatabase&database="+b+(0<=d.indexOf("?POST?")?"?POST?":"")+"&query="+encodeURIComponent(d)+(h?"&encoding=base64":"")+(l?"":"&script="+encodeURIComponent(a._getScriptForDatabase(b))); return a._contactServer(b,c,e)};a._checkFileName=function(b,d,c){a._isDatabaseCall(d)&&(c&&a._setQueryTerm(b,d),d=a._getDirectDatabaseCall(d,!0),a._isDatabaseCall(d)&&(d=a._getDirectDatabaseCall(d,!1),c&&(c[0]=!0)));return d};a._checkCache=function(b,d,c){if(b._cacheFiles&&a._fileCache&&!d.endsWith(".js")){if(b=a._fileCache[d])return System.out.println("using "+b.length+" bytes of cached data for "+d),c(b),null;c=function(b,d){c(a._fileCache[b]=d)}}return c};a._loadFileData=function(b,d,c,e){var h= [];d=a._checkFileName(b,d,h);c=a._checkCache(b,d,c);h[0]?a._getRawDataFromServer("_",d,c,e):(b={type:"GET",dataType:"text",url:d,async:a._asynchronous,success:function(b){a._loadSuccess(b,c)},error:function(){a._loadError(e)}},a._checkAjaxPost(b),a._ajax(b))};a._getInfoFromDatabase=function(b,d,c){if("===="==d){var e=a.db._restQueryXml.replace(/QUERY/,c),e={dataType:"text",type:"POST",contentType:"application/x-www-form-urlencoded",url:a.db._restQueryUrl,data:encodeURIComponent(e)+"&req=browser", success:function(e){a._ajaxDone();a._extractInfoFromRCSB(b,d,c,e)},error:function(){a._loadError(null)},async:a._asynchronous};return a._ajax(e)}c="?call=getInfoFromDatabase&database="+d+"&query="+encodeURIComponent(c);return a._contactServer(c,function(c){a._setInfo(b,d,c)})};a._extractInfoFromRCSB=function(b,d,c,e){var h=e.length/5;if(0!=h&&4==c.length&&1!=h){c=c.toUpperCase();var l=e.indexOf(c);0"+d[c].substring(0,4)+" "),e.push(""+d[c].split("Title>")[1].split("")[0]+" ");e.push("l.indexOf("?")&&l==b._thisJmolModel)){b._thisJmolModel=l;var k;e&&null!=b._viewSet&&null!=(k=a.View.__findView(b._viewSet,{chemID:l}))?a.View.__setView(k,b,!1):("$"==h||":"==h?b._jmolFileType="MOL":"="== h&&(b._jmolFileType="PDB"),b._searchDatabase(d,h,c))}};a._searchDatabase=function(b,d,c,e){b._showInfo(!1);return 0<=d.indexOf("?")?(a._getInfoFromDatabase(b,c,d.split("?")[0]),!0):a.db._DirectDatabaseCalls[c]?(b._loadFile(c+d,e),!0):!1};a._syncBinaryOK="?";a._canSyncBinary=function(b){if(a._isAsync)return!0;if(self.VBArray)return a._syncBinaryOK=!1;if("?"!=a._syncBinaryOK)return a._syncBinaryOK;a._syncBinaryOK=!0;try{var d=new window.XMLHttpRequest;d.open("text",a._ajaxTestSite,!1);d.hasOwnProperty("responseType")? d.responseType="arraybuffer":d.overrideMimeType&&d.overrideMimeType("text/plain; charset=x-user-defined")}catch(c){return System.out.println("JSmolCore.js: synchronous binary file transfer is requested but not available"),a._alertNoBinary&&!b&&alert("JSmolCore.js: synchronous binary file transfer is requested but not available"),a._syncBinaryOK=!1}return!0};a._binaryTypes=".gz .jpg .gif .png .zip .jmol .bin .smol .spartan .mrc .pse .map .omap .dcd".split(" ");a._isBinaryUrl=function(b){for(var d= a._binaryTypes.length;0<=--d;)if(0<=b.indexOf(a._binaryTypes[d]))return!0;return!1};a._getFileData=function(b,d,c){var e=a._isBinaryUrl(b),h=0<=b.indexOf("pdb.gz")&&0==b.indexOf("http://www.rcsb.org/pdb/files/"),l=e&&!a._canSyncBinary(h);l&&h&&(b=b.replace(/pdb\.gz/,"pdb"),l=e=!1);h=0<=b.indexOf("?POST?");0==b.indexOf("file:/")&&0!=b.indexOf("file:///")&&(b="file://"+b.substring(5));var k=0>b.indexOf("://")||0==b.indexOf(document.location.protocol)&&0<=b.indexOf(document.location.host),t="https://"== a._httpProto&&0==b.indexOf("http://"),p=a._isDirectCall(b),s=!k&&a.$supportsIECrossDomainScripting(),V=null;if(t||l||!k&&!p||!d&&s)V=a._getRawDataFromServer("_",b,d,d,l,!0);else{b=b.replace(/file:\/\/\/\//,"file://");var D={dataType:e?"binary":"text",async:!!d};h?(D.type="POST",D.url=b.split("?POST?")[0],D.data=b.split("?POST?")[1]):(D.type="GET",D.url=b);d&&(D.success=function(){d(a._xhrReturn(D.xhr))},D.error=function(){d(D.xhr.statusText)});D.xhr=a.$ajax(D);d||(V=a._xhrReturn(D.xhr))}if(!c)return V; null==V&&(V="",e=!1);e&&(e=a._canSyncBinary(!0));return e?a._strToBytes(V):JU.SB.newS(V)};a._xhrReturn=function(a){return!a.responseText||self.Clazz&&Clazz.instanceOf(a.response,self.ArrayBuffer)?a.response||a.statusText:a.responseText};a._isDirectCall=function(b){for(var d in a.db._DirectDatabaseCalls)if(0<=d.indexOf(".")&&0<=b.indexOf(d))return!0;return!1};a._cleanFileData=function(a){return 0<=a.indexOf("\r")&&0<=a.indexOf("\n")?a.replace(/\r\n/g,"\n"):0<=a.indexOf("\r")?a.replace(/\r/g,"\n"): a};a._getFileType=function(a){var d=a.substring(0,1);if("$"==d||":"==d)return"MOL";if("="==d)return"="==a.substring(1,2)?"LCIF":"PDB";a=a.split(".").pop().toUpperCase();return a.substring(0,Math.min(a.length,3))};a._getZ=function(b,d){return b&&b._z&&b._z[d]||a._z[d]};a._incrZ=function(b,d){return b&&b._z&&++b._z[d]||++a._z[d]};a._loadFileAsynchronously=function(b,d,c,e){if(0!=c.indexOf("?")){var h=c;c=a._checkFileName(d,c);var l=function(d){a._setData(b,c,h,d,e)},l=a._checkCache(d,c,l);0<=c.indexOf("|")&& (c=c.split("|")[0]);return null==l?null:a._getFileData(c,l)}if(!a.featureDetection.hasFileReader)return b.setData("Local file reading is not enabled in your browser",null,null,e);d._localReader||(l=' ',a.$after("#"+d._id+"_appletdiv", l.replace(/ID/g,d._id+"_localReader")),d._localReader=a.$(d,"localReader"));a.$appEvent(d,"localReader_loadfile","click");a.$appEvent(d,"localReader_loadfile","click",function(){var c=a.$(d,"localReader_files")[0].files[0],h=new FileReader;h.onloadend=function(h){h.target.readyState==FileReader.DONE&&(a.$css(a.$(d,"localReader"),{display:"none"}),a._setData(b,c.name,c.name,h.target.result,e))};h.readAsArrayBuffer(c)});a.$appEvent(d,"localReader_cancel","click");a.$appEvent(d,"localReader_cancel", "click",function(){a.$css(a.$(d,"localReader"),{display:"none"});b.setData(null,null,null,e)});a.$css(a.$(d,"localReader"),{display:"block"})};a._setData=function(b,d,c,e,h){e=a._strToBytes(e);0<=d.indexOf(".jdx")&&a.Cache.put("cache://"+d,e);b.setData(d,c,e,h)};a._toBytes=function(a){if("string"==typeof a)return a.getBytes();a=new Uint8Array(a);for(var d=Clazz.newByteArray(a.length,0),c=a.length;0<=--c;)d[c]=a[c];return d};a._doAjax=function(b,d,c){b=b.toString();if(null!=c)return a._saveFile(b, c);d&&(b+="?POST?"+d);return a._getFileData(b,null,!0)};a._saveFile=function(b,d,c,e){if(a._localFileSaveFunction&&a._localFileSaveFunction(b,d))return"OK";b=b.substring(b.lastIndexOf("/")+1);c||(c=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 h="string"==typeof d;h||(d=(JU?JU:J.util).Base64.getBase64(d).toString());e||(e=h?"":"base64");(h=a._serverUrl)&&0<=h.indexOf("your.server")&&(h="");a._useDataURI|| !h?(e||(d=btoa(d)),e=document.createElement("a"),e.href="data:"+c+";base64,"+d,e.type=c||"text/plain",e.download=b,e.target="_blank",p("body").append(e),e.click(),e.remove()):(a._formdiv||(a.$after("body",''), a._formdiv="__jsmolform__"),a.$attr(a._formdiv,"action",h+"?"+(new Date).getMilliseconds()),a.$val("__jsmoldata__",d),a.$val("__jsmolfilename__",b),a.$val("__jsmolmimetype__",c),a.$val("__jsmolencoding__",e),a.$submit("__jsmolform__"),a.$val("__jsmoldata__",""),a.$val("__jsmolfilename__",""));return"OK"};a._strToBytes=function(b){if(Clazz.instanceOf(b,self.ArrayBuffer))return a._toBytes(b);for(var d=Clazz.newByteArray(b.length,0),c=b.length;0<=--c;)d[c]=b.charCodeAt(c)&255;return d};a._setConsoleDiv= function(a){self.Clazz&&Clazz.setConsoleDiv(a)};a._registerApplet=function(b,d){return window[b]=a._applets[b]=a._applets[d]=a._applets[b+"__"+a._syncId+"__"]=d};a._readyCallback=function(b,d,c,e,h){b=b.split("_object")[0];var l=a._applets[b];if(c=c.booleanValue?c.booleanValue():c)l._appletPanel=h||e,l._applet=e;a._track(l._readyCallback(b,d,c))};a._getWrapper=function(b,d){var c;if(d){var e="";b._coverImage&&(e=' onclick="Jmol.coverApplet(ID, false)" title="'+b._coverTitle+'"',c='",e=' ");c=a._appletCssText.replace(/\'/g,'"');c=0<=c.indexOf('style="')?c.split('style="')[1]: '" '+c;c='..."+c+" IMG......'; return c.replace(/\.\.\./g,"").replace(/[\n\r]/g,"").replace(/ID/g,b._id)};a._documentWrite=function(b){if(a._document){if(a._isXHTML&&!a._XhtmlElement){var d=document.getElementsByTagName("script");a._XhtmlElement=d.item(d.length-1);a._XhtmlAppendChild=!1}a._XhtmlElement?a._domWrite(b):a._document.write(b)}return b};a._domWrite=function(b){for(var d=[0];d[0]";var h=b._height,l=b._width;if("string"!==typeof h||0>h.indexOf("%"))h+="px";if("string"!==typeof l||0>l.indexOf("%"))l+="px";c=c.replace(/IMG/,e).replace(/Hpx/g,h).replace(/Wpx/g,l)}else c='.............................. ...............b.jarFile.indexOf("Signed")&&(b.jarFile=b.jarFile.replace(/Applet/,"AppletSigned")),b.use=b.use.replace(/SIGNED/,"JAVA"),b.isSigned=!0)};a._syncedApplets=[];a._syncedCommands=[];a._syncedReady=[];a._syncReady=!1;a._isJmolJSVSync=!1;a._setReady=function(b){a._syncedReady[b]= 1;for(var d=0,c=0;c b[0]?-1:0}if(!a||"object"!=typeof a)return[];for(var c=[],e=a.length-1;0<=e;e--)for(var h=0,l=a[e].length;h d.type.indexOf("touch"))return!1;var c=a.$offset(b.id),e,h=d.originalEvent;d.pageX||(d.pageX=h.pageX);d.pageY||(d.pageY=h.pageY); a._mousePageX=d.pageX;a._mousePageY=d.pageY;h.targetTouches&&h.targetTouches[0]?(e=h.targetTouches[0].pageX-c.left,c=h.targetTouches[0].pageY-c.top):h.changedTouches?(e=h.changedTouches[0].pageX-c.left,c=h.changedTouches[0].pageY-c.top):(e=d.pageX-c.left,c=d.pageY-c.top);return void 0==e?null:[Math.round(e),Math.round(c),a._jsGetMouseModifiers(d)]};a._gestureUpdate=function(b,d){d.stopPropagation();d.preventDefault();var c=d.originalEvent;switch(d.type){case "touchstart":a._touching=!0;break;case "touchend":a._touching= !1}if(!c.touches||2!=c.touches.length)return!1;switch(d.type){case "touchstart":b._touches=[[],[]];break;case "touchmove":var e=a.$offset(b.id),h=b._touches[0],l=b._touches[1];h.push([c.touches[0].pageX-e.left,c.touches[0].pageY-e.top]);l.push([c.touches[1].pageX-e.left,c.touches[1].pageY-e.top]);c=h.length;3 e?-1:1,0,c]);return!1});a.$bind(b, "contextmenu",function(){return!1});a.$bind(b,"mouseout",function(c){if(d(c))return!0;a._mouseOwner&&!a._mouseOwner.mouseMove&&a._setMouseOwner(null);b.applet._appletPanel&&b.applet._appletPanel.startHoverWatcher(!1);a._jsGetXY(b,c);return!1});a.$bind(b,"mouseenter",function(c){if(d(c))return!0;b.applet._appletPanel&&b.applet._appletPanel.startHoverWatcher(!0);if(0===c.buttons||0===c.which){b.isDragging=!1;c=a._jsGetXY(b,c);if(!c)return!1;b.applet._processEvent(504,c);b.applet._processEvent(502,c); return!1}});a.$bind(b,"mousemoveoutjsmol",function(c,e,h){if(d(h))return!0;if(b==a._mouseOwner&&b.isDragging)return a._drag(b,h)});b.applet._is2D&&a.$resize(function(){b.applet&&b.applet._resize()});a.$bind("body","mouseup touchend",function(c){if(d(c))return!0;b.applet&&(b.isDragging=!1);a._setMouseOwner(null)})};a._jsUnsetMouse=function(b){b.applet=null;a.$bind(b,"mousedown touchstart mousemove touchmove mouseup touchend DOMMouseScroll mousewheel contextmenu mouseout mouseenter",null);a._setMouseOwner(null)}; a.Swing={count:0,menuInitialized:0,menuCounter:0,htDialogs:{}};var s=a.Swing;SwingController=s;s.setDraggable=function(b){b=b.prototype;b.setContainer||(b.setContainer=function(b){this.container=b;b.obj=this;this.ignoreMouse=this.isDragging=!1;var c=this;b.bind("mousedown touchstart",function(b){if(c.ignoreMouse)return c.ignoreMouse=!1,!0;a._setMouseOwner(c,!0);c.isDragging=!0;c.pageX=b.pageX;c.pageY=b.pageY;return!1});b.bind("mousemove touchmove",function(b){if(c.isDragging&&a._mouseOwner==c)return c.mouseMove(b), !1});b.bind("mouseup touchend",function(b){c.mouseUp(b);a._setMouseOwner(null)})},b.mouseUp=function(b){if(this.isDragging&&a._mouseOwner==this)return this.pageX0+=b.pageX-this.pageX,this.pageY0+=b.pageY-this.pageY,this.isDragging=!1;a._setMouseOwner(null)},b.setPosition=function(){if(null===a._mousePageX){var b=a.$offset(this.applet._id+"_"+(this.applet._is2D?"canvas2d":"canvas"));a._mousePageX=b.left;a._mousePageY=b.top}this.pageX0=a._mousePageX;this.pageY0=a._mousePageY;this.container.css({top:a._mousePageY+ "px",left:a._mousePageX+"px"})},b.mouseMove=function(b){if(this.isDragging&&a._mouseOwner==this){this.timestamp=System.currentTimeMillis();var c=this.pageX0+(b.pageX-this.pageX);b=this.pageY0+(b.pageY-this.pageY);a._mousePageX=c;a._mousePageY=b;this.container.css({top:b+"px",left:c+"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"); a._setMouseOwner(null);if(b){var c=this;this.container.bind("mousemoveoutjsmol touchmoveoutjsmol",function(a,b,d){c.mouseMove(d)});this.container.bind("mouseupoutjsmol touchendoutjsmol",function(a,b,d){c.mouseUp(d)})}})};s.JSDialog=function(){};s.setDraggable(s.JSDialog);s.getScreenDimensions=function(a){a.width=p(window).width();a.height=p(window).height()};s.dispose=function(b){a.$remove(b.id+"_mover");delete s.htDialogs[b.id];b.container.obj.dragBind(!1)};s.register=function(a,d){a.id=d+ ++s.count; s.htDialogs[a.id]=a};s.setDialog=function(b){a._setMouseOwner(null);a.$remove(b.id);var d=b.id+"_mover",c=a._$(d),e;c[0]?(c.html(b.html),e=c[0].jd):(a.$after("body"," "+b.html+""),e=new s.JSDialog,c=a._$(d),b.container=c,e.applet=b.manager.vwr.html5Applet,e.setContainer(c),e.dialog=b,e.setPosition(),e.dragBind(!0),c[0].jd=e);a.$bind("#"+b.id+" .JButton","mousedown touchstart",function(){e.ignoreMouse=!0});a.$bind("#"+b.id+" .JComboBox", "mousedown touchstart",function(){e.ignoreMouse=!0});a.$bind("#"+b.id+" .JCheckBox","mousedown touchstart",function(){e.ignoreMouse=!0});a.$bind("#"+b.id+" .JTextField","mousedown touchstart",function(){e.ignoreMouse=!0});a.$bind("#"+b.id+" .JTable","mousedown touchstart",function(){e.ignoreMouse=!0});a.$bind("#"+b.id+" .JScrollPane","mousedown touchstart",function(){e.ignoreMouse=!0});a.$bind("#"+b.id+" .JEditorPane","mousedown touchstart",function(){e.ignoreMouse=!0})};s.setSelected=function(b){a.$prop(b.id, "checked",!!b.selected)};s.setSelectedIndex=function(b){a.$prop(b.id,"selectedIndex",b.selectedIndex)};s.setText=function(b){a.$prop(b.id,"value",b.text)};s.setVisible=function(b){a.$setVisible(b.id,b.visible)};s.setEnabled=function(b){a.$setEnabled(b.id,b.enabled)};s.click=function(b,d){var c=s.htDialogs[b.id];if(c){var e=c.toString();if(0<=e.indexOf("JCheck"))c.selected=b.checked;else if(0<=e.indexOf("JCombo"))c.selectedIndex=b.selectedIndex;else if(null!=c.text&&(c.text=b.value,d&&13!=(d.charCode|| d.keyCode)))return}e=s.htDialogs[a.$getAncestorDiv(b.id,"JDialog").id];e.manager.actionPerformed(c?c.name:e.registryKey+"/"+b.id)};s.setFront=function(b){var d=b.manager.vwr.html5Applet;b.zIndex!=a._getZ(d,"dialog")&&(b.zIndex=a._incrZ(d,"dialog"));b.container&&((b.container[0]||b.container).style.zIndex=b.zIndex)};s.hideMenus=function(a){if(a=a._menus)for(var d in a)a[d].visible&&s.hideMenu(a[d])};s.windowClosing=function(b){b=s.htDialogs[a.$getAncestorDiv(b.id,"JDialog").id];b.registryKey?b.manager.processWindowClosing(b.registryKey): b.dispose()};a._track=function(b){if(a._tracker){try{var d='';a.$after("body",d)}catch(c){}delete a._tracker}return b};a.getProfile=function(){window["j2s.doProfile"]=!0;if(self.Clazz&&self.JSON)return Clazz._profile||(Clazz._profile={}),Clazz.getProfile()};a._getInChIKey= function(a,d){0<=d.indexOf("MOL=")&&d.split("MOL=")[1].split('"')};a._getAttr=function(a,d){var c=a.indexOf(d+"=");return 0<=c&&0<=(c=a.indexOf('"',c))?a.substring(c+1,a.indexOf('"',c+1)):null};a.User={viewUpdatedCallback:null};a.View={count:0,applets:{},sets:{}};(function(b){b.updateView=function(d,c){if(null!=d._viewSet){c.chemID||(d._searchQuery=null);c.data||(c.data="N/A");c.type=d._viewType;if(null==(d._currentView=b.__findView(d._viewSet,c)))d._currentView=b.__createViewSet(d._viewSet,c.chemID, c.viewID||c.chemID);d._currentView[c.type].data=c.data;d._currentView[c.type].smiles=d._getSmiles();a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(d,"updateView");b.__setView(d._currentView,d,!1)}};b.updateFromSync=function(d,c){d._updateMsg=c;var e=a._getAttr(c,"sourceID")||a._getAttr(c,"file");if(e){var h=b.__findView(d._viewSet,{viewID:e});if(null==h)return a.updateView(d,c);h!=d._currentView&&b.__setView(h,d,!0);var l=(e=a._getAttr(c,"atoms"))&&0<=c.indexOf("selectionhalos ON")?eval("["+ e+"]"):[];setTimeout(function(){d._currentView==h&&b.updateAtomPick(d,l)},10);a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(d,"updateFromSync")}};b.updateAtomPick=function(b,c){var e=b._currentView;if(null!=e){for(var h in e)"info"!=h&&e[h].applet!=b&&e[h].applet._updateAtomPick(c);a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(b,"updateAtomPick")}};b.dumpViews=function(a){var c=b.sets[a];if(c){var e="View set "+a+":\n";a=b.applets[a];for(var h in a)e+="\napplet "+a[h]._id+" currentView="+ (a[h]._currentView?a[h]._currentView.info.viewID:null);for(h=c.length;0<=--h;){a=c[h];var e=e+("\n\nview="+h+" viewID="+a.info.viewID+" chemID="+a.info.chemID+"\n"),l,k;for(k in a)"info"!=k&&(e+="\nview="+h+" type="+k+" applet="+((l=a[k]).applet?l.applet._id:null)+" SMILES="+l.smiles+"\n atomMap="+JSON.stringify(l.atomMap)+"\n data=\n"+l.data+"\n")}return e}};b.__init=function(a){var c=a._viewSet,e=b.applets;e[c]||(e[c]={});e[c][a._viewType]=a};b.__findView=function(a,c){var e=b.sets[a];null== e&&(e=b.sets[a]=[]);for(var h=e.length;0<=--h;){var l=e[h];if(c.viewID){if(l.info.viewID==c.viewID)return l}else{if(null!=c.chemID&&c.chemID==l.info.chemID)return l;for(var k in l)if("info"!=k&&(null!=c.data&&null!=l[k].data?c.data==l[k].data:c.type==k))return l}}return null};b.__createViewSet=function(d,c,e){b.count++;c={info:{chemID:c,viewID:e||"model_"+b.count}};for(var h in a._applets)e=a._applets[h],e._viewSet==d&&(c[e._viewType]={applet:e,data:null});b.sets[d].push(c);return c};b.__setView= function(a,b,e){for(var h in a)if("info"!=h){var l=a[h],k=l.applet,t=e||null!=k&&""==k._molData;if(!(null==k||k==b&&!t)){var p=null==l.data,s=null!=k._currentView;k._currentView=a;if(!s||!(a[h].data==l.data&&!p&!t))if(k._loadModelFromView(a),p)break}}}})(a.View);a.Cache={fileCache:{}};a.Cache.get=function(b){return a.Cache.fileCache[b]};a.Cache.put=function(b,d){a.Cache.fileCache[b]=d};a.Cache.setDragDrop=function(b){a.$appEvent(b,"appletdiv","dragover",function(a){a=a.originalEvent;a.stopPropagation(); a.preventDefault();a.dataTransfer.dropEffect="copy"});a.$appEvent(b,"appletdiv","drop",function(d){var c=d.originalEvent;c.stopPropagation();c.preventDefault();var e=c.dataTransfer.files[0];if(null==e)try{e=""+c.dataTransfer.getData("text"),(0==e.indexOf("file:/")||0==e.indexOf("http:/"))&&b._scriptLoad(e)}catch(h){}else c=new FileReader,c.onloadend=function(c){if(c.target.readyState==FileReader.DONE){var h="cache://DROP_"+e.name;c=a._toBytes(c.target.result);h.endsWith(".spt")||b._appletPanel.cacheFileByName("cache://DROP_*", !1);"JSV"==b._viewType||h.endsWith(".jdx")?a.Cache.put(h,c):b._appletPanel.cachePut(h,c);(c=a._jsGetXY(b._canvas,d))&&(!b._appletPanel.setStatusDragDropped||b._appletPanel.setStatusDragDropped(0,c[0],c[1],h))&&b._appletPanel.openFileAsyncSpecial(h,1)}},c.readAsArrayBuffer(e)})}})(Jmol,jQuery);Jmol._debugCode=!1; (function(a){a._isAsync=!1;a._asyncCallbacks={};a._coreFiles=[];var p=!1,l=[],k=[],e=0,h=[],t=[],s=function(b){arguments.length||(b=!0);delete e;for(var d;0 t.join("").indexOf(e[b])&&t.push(d+"/core/core"+e[b]+".z.js");for(b=0;b '+b+"._cover(false)\x3c/script>"));d+=a._getWrapper(this,!1);c.addSelectionOptions&&(d+= a._getGrabberOptions(this));a._debugAlert&&!a._document&&alert(d);this._code=a._documentWrite(d)};c._newCanvas=function(a){this._is2D?this._createCanvas2d(a):this._GLmol.create()};c._getHtml5Canvas=function(){return this._canvas};c._getWidth=function(){return this._canvas.width};c._getHeight=function(){return this._canvas.height};c._getContentLayer=function(){return a.$(this,"contentLayer")[0]};c._repaintNow=function(){a._repaint(this,!1)};c._createCanvas2d=function(){var b=a.$(this,"appletdiv"); try{b[0].removeChild(this._canvas),this._canvas.frontLayer&&b[0].removeChild(this._canvas.frontLayer),this._canvas.rearLayer&&b[0].removeChild(this._canvas.rearLayer),this._canvas.contentLayer&&b[0].removeChild(this._canvas.contentLayer),a._jsUnsetMouse(this._mouseInterface)}catch(c){}var d=Math.round(b.width()),e=Math.round(b.height()),h=document.createElement("canvas");h.applet=this;this._canvas=h;h.style.width="100%";h.style.height="100%";h.width=d;h.height=e;h.id=this._id+"_canvas2d";b.append(h); a._$(h.id).css({"z-index":a._getZ(this,"main")});if(this._isLayered){var l=document.createElement("div");h.contentLayer=l;l.id=this._id+"_contentLayer";b.append(l);a._$(l.id).css({zIndex:a._getZ(this,"image"),position:"absolute",left:"0px",top:"0px",width:(this._isSwing?d:0)+"px",height:(this._isSwing?e:0)+"px",overflow:"hidden"});this._isSwing?(b=document.createElement("div"),b.id=this._id+"_swingdiv",a._$(this._id+"_appletinfotablediv").append(b),a._$(b.id).css({zIndex:a._getZ(this,"rear"),position:"absolute", left:"0px",top:"0px",width:d+"px",height:e+"px",overflow:"hidden"}),this._mouseInterface=h.contentLayer,h.contentLayer.applet=this):this._mouseInterface=this._getLayer("front",b,d,e,!1)}else this._mouseInterface=h;a._jsSetMouse(this._mouseInterface)};c._getLayer=function(b,c,d,e,h){var l=document.createElement("canvas");this._canvas[b+"Layer"]=l;l.style.width="100%";l.style.height="100%";l.id=this._id+"_"+b+"Layer";l.width=d;l.height=e;c.append(l);l.applet=this;a._$(l.id).css({background:h?"rgb(0,0,0,1)": "rgb(0,0,0,0.001)","z-index":a._getZ(this,b),position:"absolute",left:"0px",top:"0px",overflow:"hidden"});return l};c._setupJS=function(){window["j2s.lib"]={base:this._j2sPath+"/",alias:".",console:this._console,monitorZIndex:a._getZ(this,"monitorZIndex")};0==k.length&&a._addExec([this,b,null,"loadClazz"]);this._addCoreFiles();a._addExec([this,this.__startAppletJS,null,"start applet"]);this._isSigned=!0;this._ready=!1;this._applet=null;this._canScript=function(){return!0};this._savedOrientations= [];e&&clearTimeout(e);e=setTimeout(s,100)};c.__startAppletJS=function(b){0==a._version.indexOf("$Date: ")&&(a._version=(a._version.substring(7)+" -").split(" -")[0]+" (JSmol/j2s)");var c=Clazz._4Name("java.util.Hashtable").newInstance();a._setAppletParams(b._availableParams,c,b.__Info,!0);c.put("appletReadyCallback","Jmol._readyCallback");c.put("applet",!0);c.put("name",b._id);c.put("syncId",a._syncId);a._isAsync&&c.put("async",!0);b._color&&c.put("bgcolor",b._color);b._startupScript&&c.put("script", b._startupScript);a._syncedApplets.length&&c.put("synccallback","Jmol._mySyncCallback");c.put("signedApplet","true");c.put("platform",b._platform);b._is2D&&c.put("display",b._id+"_canvas2d");c.put("documentBase",document.location.href);var d=b._j2sPath+"/";if(0>d.indexOf("://")){var e=document.location.href.split("#")[0].split("?")[0].split("/");0==d.indexOf("/")?e=[e[0],d.substring(1)]:e[e.length-1]=d;d=e.join("/")}c.put("codePath",d);a._registerApplet(b._id,b);try{b._newApplet(c)}catch(h){System.out.println((a._isAsync? "normal async abort from ":"")+h);return}b._jsSetScreenDimensions();s()};c._restoreState||(c._restoreState=function(){});c._jsSetScreenDimensions=function(){if(this._appletPanel){var b=a._getElement(this,this._is2D?"canvas2d":"canvas");this._appletPanel.setScreenDimension(b.width,b.height)}};c._show=function(b){a.$setVisible(a.$(this,"appletdiv"),b);b&&a._repaint(this,!0)};c._canScript=function(){return!0};c.equals=function(a){return this==a};c.clone=function(){return this};c.hashCode=function(){return parseInt(this._uniqueId)}; c._processGesture=function(a){return this._appletPanel.processTwoPointGesture(a)};c._processEvent=function(a,b){this._appletPanel.processMouseEvent(a,b[0],b[1],b[2],System.currentTimeMillis())};c._resize=function(){var b="__resizeTimeout_"+this._id;a[b]&&clearTimeout(a[b]);var c=this;a[b]=setTimeout(function(){a._repaint(c,!0);a[b]=null},100)};return c};a._repaint=function(b,d){if(b&&b._appletPanel){var e=a.$(b,"appletdiv"),h=Math.round(e.width()),e=Math.round(e.height());if(b._is2D&&(b._canvas.width!= h||b._canvas.height!=e))b._newCanvas(!0),b._appletPanel.setDisplay(b._canvas);b._appletPanel.setScreenDimension(h,e);h=function(){b._appletPanel.paint?b._appletPanel.paint(null):b._appletPanel.update(null)};d?setTimeout(h):h()}};a._loadImage=function(b,d,e,h,l,k){var t="echo_"+d+e+(h?"_"+h.length:""),p=a._getHiddenCanvas(b.vwr.html5Applet,t,0,0,!1,!0);if(null==p){if(null==k){k=new Image;if(null==h)return k.onload=function(){a._loadImage(b,d,e,null,l,k)},k.src=e,null;System.out.println("Jsmol.js Jmol._loadImage using data URI for "+ t);k.src="string"==typeof h?h:"data:"+JU.Rdr.guessMimeTypeForBytes(h)+";base64,"+JU.Base64.getBase64(h)}var s=k.width,D=k.height;"webgl"==d&&(s/=2,D/=2);p=a._getHiddenCanvas(b.vwr.html5Applet,t,s,D,!0,!1);p.imageWidth=s;p.imageHeight=D;p.id=t;p.image=k;a._setCanvasImage(p,s,D)}else System.out.println("Jsmol.js Jmol._loadImage reading cached image for "+t);return null==h?l(p,e):p};a._canvasCache={};a._getHiddenCanvas=function(b,d,e,h,l,k){d=b._id+"_"+d;b=a._canvasCache[d];if(k)return b;if(l||!b||b.width!= e||b.height!=h)b=document.createElement("canvas"),b.width=b.style.width=e,b.height=b.style.height=h,b.id=d,a._canvasCache[d]=b;return b};a._setCanvasImage=function(a,b,d){a.buf32=null;a.width=b;a.height=d;a.getContext("2d").drawImage(a.image,0,0,a.image.width,a.image.height,0,0,b,d)};a._apply=function(a,b){return a(b)}})(Jmol); (function(a,p){a._Applet=function(e,h,l){window[e]=this;this._jmolType="Jmol._Applet"+(h.isSigned?" (signed)":"");this._viewType="Jmol";this._isJava=!0;this._syncKeyword="Select:";this._availableParams=";progressbar;progresscolor;boxbgcolor;boxfgcolor;allowjavascript;boxmessage;\t\t\t\t\t\t\t\t\t;messagecallback;pickcallback;animframecallback;appletreadycallback;atommovedcallback;\t\t\t\t\t\t\t\t\t;echocallback;evalcallback;hovercallback;language;loadstructcallback;measurecallback;\t\t\t\t\t\t\t\t\t;minimizationcallback;resizecallback;scriptcallback;statusform;statustext;statustextarea;\t\t\t\t\t\t\t\t\t;synccallback;usecommandthread;syncid;appletid;startupscript;menufile;"; if(l)return this;this._isSigned=h.isSigned;this._readyFunction=h.readyFunction;this._ready=!1;this._isJava=!0;this._isInfoVisible=!1;this._applet=null;this._memoryLimit=h.memoryLimit||512;this._canScript=function(){return!0};this._savedOrientations=[];this._initialize=function(e,b){var d=!1;a._jarFile&&(b=a._jarFile);if(this._jarFile){var c=this._jarFile;0<=c.indexOf("/")?(alert("This web page URL is requesting that the applet used be "+c+". This is a possible security risk, particularly if the applet is signed, because signed applets can read and write files on your local machine or network."), "yes"==prompt("Do you want to use applet "+c+"? ","yes or no")?(e=c.substring(0,c.lastIndexOf("/")),b=c.substring(c.lastIndexOf("/")+1)):d=!0):b=c;this_isSigned=h.isSigned=0<=b.indexOf("Signed")}this._jarPath=h.jarPath=e||".";this._jarFile=h.jarFile="string"==typeof b?b:(b?"JmolAppletSigned":"JmolApplet")+"0.jar";d&&alert("The web page URL was ignored. Continuing using "+this._jarFile+' in directory "'+this._jarPath+'"');void 0==a.controls||a.controls._onloadResetForms()};this._create(e,h);return this}; var l=a._Applet,k=a._Applet.prototype;l._get=function(e,h,k){k||(k=!1);h||(h={});a._addDefaultInfo(h,{color:"#FFFFFF",width:300,height:300,addSelectionOptions:!1,serverURL:"http://your.server.here/jsmol.php",defaultModel:"",script:null,src:null,readyFunction:null,use:"HTML5",jarPath:"java",jarFile:"JmolApplet0.jar",isSigned:!1,j2sPath:"j2s",coverImage:null,coverTitle:"",coverCommand:"",deferApplet:!1,deferUncover:!1,disableJ2SLoadMonitor:!1,disableInitialConsole:!1,debug:!1});a._debugAlert=h.debug; h.serverURL&&(a._serverUrl=h.serverURL);for(var p=!1,b=null,d=h.use.toUpperCase().split("#")[0].split(" "),c=0;c browser or your browser is blocking this applet.
\t\t\tCheck the warning message from your browser and/or enable Java applets in
\t\t\tyour web browser preferences, or install the Java Runtime Environment from www.java.com"; l._setCommonMethods=function(a){a._showInfo=k._showInfo;a._search=k._search;a._getName=k._getName;a._readyCallback=k._readyCallback};l._createApplet=function(e,h,k){e._initialize(h.jarPath,h.jarFile);var s=e._jarFile;a._isFile&&(s=s.replace(/0\.jar/,".jar"));var b=0<=e._containerWidth.indexOf("px")?e._containerWidth:"100%",d=0<=e._containerHeight.indexOf("px")?e._containerHeight:"100%",b=' style="width:'+b+";height:"+d+'" ',d="name='"+e._id+"_object' id='"+e._id+"_object' \n"+b+"\n";k.codebase=e._jarPath; k.codePath=k.codebase+"/";if(0>k.codePath.indexOf("://")){var c=p.location.href.split("#")[0].split("?")[0].split("/");c[c.length-1]=k.codePath;k.codePath=c.join("/")}k.archive=s;k.mayscript="true";k.java_arguments="-Xmx"+Math.round(h.memoryLimit||e._memoryLimit)+"m";k.permissions=e._isSigned?"all-permissions":"sandbox";k.documentLocation=p.location.href;k.documentBase=p.location.href.split("#")[0].split("?")[0];k.jarPath=h.jarPath;a._syncedApplets.length&&(k.synccallback="Jmol._mySyncCallback"); e._startupScript&&(k.script=e._startupScript);var c="\n",r;for(r in k)k[r]&&(c+=" \n");c=a.featureDetection.useIEObject||a.featureDetection.useHtml4Object?"\n":"\n";e._deferApplet&&(e._javaCode=c,c="");c=a._getWrapper(e,!0)+c+a._getWrapper(e,!1)+(h.addSelectionOptions?a._getGrabberOptions(e):"");a._debugAlert&&alert(c);e._code=a._documentWrite(c)};k._newApplet=function(a){this._is2D||a.put("script",(a.get("script")|| "")+";set multipleBondSpacing 0.35;");this._viewerOptions=a;return new J.appletjs.Jmol(a)};k._addCoreFiles=function(){a._addCoreFile("jmol",this._j2sPath,this.__Info.preloadCore);this._is2D||a._addExec([this,null,"J.export.JSExporter","load JSExporter"]);a._debugCode&&a._addExec([this,null,"J.appletjs.Jmol","load Jmol"])};k._create=function(e,h){a._setObject(this,e,h);var k={syncId:a._syncId,progressbar:"true",progresscolor:"blue",boxbgcolor:this._color||"black",boxfgcolor:"white",boxmessage:"Downloading JmolApplet ...", script:this._color?'background "'+this._color+'"':"",code:"JmolApplet.class"};a._setAppletParams(this._availableParams,k,h);var p;h.inlineModel?(p=h.inlineModel,p=p.replace(/\r|\n|\r\n/g,0<=p.indexOf("|")?"\\/n":"|").replace(/'/g,"'"),a._debugAlert&&alert("inline model:\n"+p)):p="";k.loadInline=p;k.appletReadyCallback="Jmol._readyCallback";a._syncedApplets.length&&(k.synccallback="Jmol._mySyncCallback");k.java_arguments="-Xmx"+Math.round(h.memoryLimit||this._memoryLimit)+"m";this._initialize(h.jarPath, h.jarFile);l._createApplet(this,h,k)};k._restoreState=function(e,h){System.out.println("\n\nasynchronous restore state for "+e+" "+h);var l=this,k=l._applet&&l._applet.viewer;switch(h){case "setOptions":return function(){l.__startAppletJS(l)};case "render":return function(){setTimeout(function(){k.refresh(2)},10)};default:switch(e){case "J.shape.Balls":case "J.shape.Sticks":case "J.shape.Frank":return null}if(k&&k.isScriptExecuting&&k.isScriptExecuting()){if(a._asyncCallbacks[e])return System.out.println("...ignored"), 1;var b=k.getEvalContextAndHoldQueue(k.eval),d=b.pc-1;b.asyncID=e;a._asyncCallbacks[e]=function(a){b.pc=a;System.out.println("sc.asyncID="+b.asyncID+" sc.pc = "+b.pc);k.eval.resumeEval(b)};k.eval.pc=k.eval.pcEnd;System.out.println("setting resume for pc="+b.pc+" "+e+" to "+a._asyncCallbacks[e]+"//");return function(){System.out.println("resuming "+e+" "+a._asyncCallbacks[e]);a._asyncCallbacks[e](d)}}System.out.println(e+"?????????????????????"+h);return function(){setTimeout(function(){k.refresh(2)}, 10)}}};k._readyCallback=function(e,h,l){l&&(a._setDestroy(this),this._ready=!0,e=this._readyScript,this._defaultModel?a._search(this,this._defaultModel,e?";"+e:""):e?this._script(e):this._src&&this._script('load "'+this._src+'"'),this._showInfo(!0),this._showInfo(!1),a.Cache.setDragDrop(this),this._readyFunction&&this._readyFunction(this),a._setReady(this),(e=this._2dapplet)&&(e._isEmbedded&&e._ready&&e.__Info.visible)&&this._show2d(!0))};k._showInfo=function(e){e&&this._2dapplet&&this._2dapplet._show(!1); a.$html(a.$(this,"infoheaderspan"),this._infoHeader);this._info&&a.$html(a.$(this,"infodiv"),this._info);if(!this._isInfoVisible!=!e){this._isInfoVisible=e;if(this._isJava){var h=e?2:"100%";a.$setSize(a.$(this,"appletdiv"),h,h)}a.$setVisible(a.$(this,"infotablediv"),e);a.$setVisible(a.$(this,"infoheaderdiv"),e);this._show(!e)}};k._show2d=function(a){this._2dapplet._show2d(a);this._2dapplet._isEmbedded&&(this._showInfo(!1),this._show(!a),this._2dapplet.__showContainer(!0,!0))};k._getAtomCorrelation= function(a){this._loadMolData(a,"atommap = compare({1.1} {2.1} 'MAP' 'H'); zap 2.1",!0);a=this._evaluate("atommap");for(var h=this._evaluate("{*}.count"),l=[],k=[],b=0;barguments.length&&(h=1);var l=this._savedOrientations[a];return!l||""==l?l.replace(/1\.0/, h):this._scriptWait(l)};k._resizeApplet=function(e){function h(e,b){var d=""+e;return 0==d.length?b?"":a._allowedJmolSize[2]:d.indexOf("%")==d.length-1?d:1>=(e=parseFloat(e))&&0 a._allowedJmolSize[1]?a._allowedJmolSize[1]:e)+(b?b:"")}var l;"object"==typeof e&&null!=e?(l=e[0]||e.width,e=e[1]||e.height):l=e;l=[h(l,"px"),h(e,"px")];e=a._getElement(this,"appletinfotablediv");e.style.width=l[0];e.style.height= l[1];this._containerWidth=l[0];this._containerHeight=l[1];this._is2D&&a._repaint(this,!0)};k._search=function(e,h){a._search(this,e,h)};k._searchDatabase=function(e,h,l){if(this._2dapplet&&this._2dapplet._isEmbedded&&!a.$(this,"appletdiv:visible")[0])return this._2dapplet._searchDatabase(e,h,l);this._showInfo(!1);0<=e.indexOf("?")?a._getInfoFromDatabase(this,h,e.split("?")[0]):(l||(l=a._getScriptForDatabase(h)),e=h+e,this._currentView=null,this._searchQuery=e,this._loadFile(e,l,e))};k._loadFile=function(e, h,l){this._showInfo(!1);h||(h="");this._thisJmolModel=""+Math.random();this._fileName=e;if(!this._scriptLoad(e,h)){var k=this;a._loadFileData(this,e,function(a){k.__loadModel(a,h,l)},function(){k.__loadModel(null)})}};k._scriptLoad=function(a,h){h||(h="");var l=this._isJava||!this._noscript;l&&this._script("zap;set echo middle center;echo Retrieving data...");if(!this._isSigned||null!=this._viewSet)return!1;l?this._script('load async "'+a+'";'+h):this._applet.openFile(a);this._checkDeferred("");return!0}; k.__loadModel=function(e,h,l){null!=e&&(null!=this._viewSet&&(h||(h=""),h+=";if ({*}.molecule.max > 1 || {*}.modelindex.max > 0){ delete molecule > 1 or modelindex > 0;x = getProperty('extractModel',{*});load inline @x};"),!h&&this._noscript?this._applet.loadInlineString(e,"",!1):this._loadMolData(e,h,!1),null!=this._viewSet&&a.View.updateView(this,{chemID:l,data:e}))};k._loadMolData=function(a,h,l){h||(h="");l=l?"append":"model";this._applet.scriptWait('load DATA "'+l+'"'+a+'\nEND "'+l+'" ;'+h)}; k._loadModelFromView=function(e){this._currentView=e;var h=e.Jmol;null!=h.data?this.__loadModel(h.data,null,e.info.chemID):null!=e.info.chemID?a._searchMol(this,e.info.chemID,null,!1):(h=e.JME)&&h.applet._show2d(!1,this)};k._updateView=function(){null!=this._viewSet&&this._applet&&(chemID=""+this._getPropertyAsJavaObject("variableInfo","script('show chemical inchiKey')"),chemID=36>chemID.length()?null:chemID.substring(36).split("\n")[0],a.View.updateView(this,{chemID:chemID,data:""+this._getPropertyAsJavaObject("evaluate", "extractModel","{visible}")}))};k._atomPickedCallback=function(e,h){if(!(0>h)){var l=[h+1];a.View.updateAtomPick(this,l);this._updateAtomPick(l)}};k._updateAtomPick=function(a){this._script(0==a.length?"select none":"select on visible and (@"+a.join(",@")+")")};k._isDeferred=function(){return!this._canvas&&this._cover&&this._isCovered&&this._deferApplet};k._checkDeferred=function(a){return this._isDeferred()?(this._coverScript=a,this._cover(!1),!0):!1};k._cover=function(e){e||!this._deferApplet?this._displayCoverImage(e): (e=this._coverScript?this._coverScript:"",this._coverScript="",this._deferUncover&&(e+=";refresh;javascript "+this._id+"._displayCoverImage(false)"),this._script(e,!0),this._deferUncover&&"activate 3D model"==this._coverTitle&&(a._getElement(this,"coverimage").title="3D model is loading..."),this._isJava||this._newCanvas(!1),this._defaultModel&&a._search(this,this._defaultModel),this._showInfo(!1),this._deferUncover||this._displayCoverImage(!1),this._isJava&&a.$html(a.$(this,"appletdiv"),this._javaCode), this._init&&this._init())};k._displayCoverImage=function(e){this._coverImage&&this._isCovered!=e&&(this._isCovered=e,a._getElement(this,"coverdiv").style.display=e?"block":"none")};k._getSmiles=function(){return this._evaluate("{visible}.find('SMILES')")};k._getMol=function(){return this._evaluate("getProperty('ExtractModel',{visible})")};k._getMol2D=function(){return jmol._evaluate("script('select visible;show chemical sdf')")};a.jmolSmiles=function(a){return a._getSmiles()}})(Jmol,document); (function(a){var p=a.controls={_hasResetForms:!1,_scripts:[""],_checkboxMasters:{},_checkboxItems:{},_actions:{},_buttonCount:0,_checkboxCount:0,_radioGroupCount:0,_radioCount:0,_linkCount:0,_cmdCount:0,_menuCount:0,_previousOnloadHandler:null,_control:null,_element:null,_appletCssClass:null,_appletCssText:"",_buttonCssClass:null,_buttonCssText:"",_checkboxCssClass:null,_checkboxCssText:"",_radioCssClass:null,_radioCssText:"",_linkCssClass:null,_linkCssText:"",_menuCssClass:null,_menuCssText:""}; p._addScript=function(a,k){var e=p._scripts.length;p._scripts[e]=[a,k];return e};p._getIdForControl=function(a,k){return"string"==typeof a?a:!k||!a._canScript||a._canScript(k)?a._id:null};p._radio=function(a,k,e,h,t,s,b,d){var c=p._getIdForControl(a,k);if(null==c)return null;++p._radioCount;void 0!=s&&null!=s||(s="jmolRadioGroup"+(p._radioGroupCount-1));if(!k)return"";void 0!=b&&null!=b||(b="jmolRadio"+(p._radioCount-1));void 0!=e&&null!=e||(e=k.substring(0,32));t||(t="");a="";p._actions[b]= p._addScript(c,k);k='";0<=e.toLowerCase().indexOf(" ")&&(k+=a,a="");return k+('"+a+t)};p._scriptExecute=function(l,k){var e=a._applets[k[0]],h=k[1];if("object"==typeof h)h[0](l,h, e);else"function"==typeof h?h(e):a.script(e,h)};p.__checkScript=function(a,k){var e=0<=k.value.indexOf("JSCONSOLE ")||""===a._scriptCheck(k.value);k.style.color=e?"black":"red";return e};p.__getCmd=function(a,k){if(k._cmds&&k._cmds.length){var e=k._cmds[k._cmdpt=(k._cmdpt+k._cmds.length+a)%k._cmds.length];setTimeout(function(){k.value=e},10);k._cmdadd=1;k._cmddir=a}};p._commandKeyPress=function(l,k,e){l=13==l?13:window.event?window.event.keyCode:l?l.keyCode||l.which:0;var h=document.getElementById(k), t=a._applets[e];switch(l){case 13:return k=h.value,p._scriptExecute(h,[e,k]),h._cmds||(h._cmds=[],h._cmddir=0,h._cmdpt=-1,h._cmdadd=0),k&&0==h._cmdadd?(++h._cmdpt,h._cmds.splice(h._cmdpt,0,k),h._cmdadd=0,h._cmddir=0):h._cmdadd=0,h.value="",!1;case 27:return setTimeout(function(){h.value=""},20),!1;case 38:p.__getCmd(-1,h);break;case 40:p.__getCmd(1,h);break;default:h._cmdadd=0}setTimeout(function(){p.__checkScript(t,h)},20);return!0};p._click=function(a,k){p._element=a;1==arguments.length&&(k=p._actions[a.id]); p._scriptExecute(a,p._scripts[k])};p._menuSelected=function(a){var k=a.value;if(void 0!=k)p._scriptExecute(a,p._scripts[k]);else{k=a.length;if("number"==typeof k)for(var e=0;e ";a._debugAlert&&alert(k);return a._documentWrite(k)};p._getCheckbox=function(l,k,e,h,t,s,b){var d=p._getIdForControl(l,k);null!=d&&(d=p._getIdForControl(l,e));if(null==d)return"";void 0!=s&&null!=s||(s="jmolCheckbox"+p._checkboxCount);++p._checkboxCount;if(void 0==k||null==k||void 0==e||null==e)alert("jmolCheckbox requires two scripts");else if(void 0==h||null==h)alert("jmolCheckbox requires a label");else return p._actions[s]=[p._addScript(d,k),p._addScript(d,e)],l="", t='",0<=h.toLowerCase().indexOf(" ")&&(t+=l,l=""),t+='"+l,a._debugAlert&&alert(t),a._documentWrite(t)};p._getCommandInput=function(l,k,e,h,t,s){l=p._getIdForControl(l,"x");if(null==l)return""; void 0!=h&&null!=h||(h="jmolCmd"+p._cmdCount);void 0!=k&&null!=k||(k="Execute");void 0!=e&&!isNaN(e)||(e=60);void 0!=s||(s="help");++p._cmdCount;k='";a._debugAlert&&alert(k);return a._documentWrite(k)}; p._getLink=function(l,k,e,h,t){l=p._getIdForControl(l,k);if(null==l)return"";void 0!=h&&null!=h||(h="jmolLink"+p._linkCount);void 0!=e&&null!=e||(e=k.substring(0,32));++p._linkCount;k=p._addScript(l,k);e='"+e+"";a._debugAlert&&alert(e);return a._documentWrite(e)}; p._getMenu=function(l,k,e,h,t){var s=p._getIdForControl(l,null);void 0!=h&&null!=h||(h="jmolMenu"+p._menuCount);++p._menuCount;s=typeof k;if(null!=s&&"object"==s&&k.length){var b=k.length;"number"!=typeof e||1==e?e=null:0>e&&(e=b);e='";a._debugAlert&&alert(e);return a._documentWrite(e)}};p._getRadio=function(l,k,e,h,t,s,b,d){0==p._radioGroupCount&&++p._radioGroupCount;s||(s="jmolRadioGroup"+(p._radioGroupCount-1));l=p._radio(l,k,e,h,t,s,b?b:s+"_"+p._radioCount,d?d:0);if(null== l)return"";a._debugAlert&&alert(l);return a._documentWrite(l)};p._getRadioGroup=function(l,k,e,h,t,s){var b=typeof k;if("object"!=b||null==b||!k.length)alert("invalid arrayOfRadioButtons");else{void 0!=e&&null!=e||(e=" ");var d=k.length;++p._radioGroupCount;h||(h="jmolRadioGroup"+(p._radioGroupCount-1));for(var c="",r=0;r ";a._debugAlert&&alert(c);return a._documentWrite(c)}}})(Jmol); (function(a){var p=function(a){a="&"+a+"=";return decodeURI(("&"+document.location.search.substring(1)+a).split(a)[1].split("&")[0])};a._j2sPath=p("_J2S");a._jarFile=p("_JAR");a._use=p("_USE");a.getVersion=function(){return a._jmolInfo.version};a.getApplet=function(l,k,e){return a._Applet._get(l,k,e)};a.getJMEApplet=function(l,k,e,h){return a._JMEApplet._get(l,k,e,h)};a.getJSVApplet=function(l,k,e){return a._JSVApplet._get(l,k,e)};a.loadFile=function(a,k,e){a._loadFile(k,e)};a.script=function(a,k){a._checkDeferred(k)|| a._script(k)};a.scriptCheck=function(a,k){return a&&a._scriptCheck&&a._ready&&a._scriptCheck(k)};a.scriptWait=function(a,k){return a._scriptWait(k)};a.scriptEcho=function(a,k){return a._scriptEcho(k)};a.scriptMessage=function(a,k){return a._scriptMessage(k)};a.scriptWaitOutput=function(a,k){return a._scriptWait(k)};a.scriptWaitAsArray=function(a,k){return a._scriptWaitAsArray(k)};a.search=function(a,k,e){a._search(k,e)};a.evaluateVar=function(a,k){return a._evaluate(k)};a.evaluate=function(a,k){return a._evaluateDEPRECATED(k)}; a.getAppletHtml=function(l,k){if(k){var e=a._document;a._document=null;l=a.getApplet(l,k);a._document=e}return l._code};a.getPropertyAsArray=function(a,k,e){return a._getPropertyAsArray(k,e)};a.getPropertyAsJavaObject=function(a,k,e){return a._getPropertyAsJavaObject(k,e)};a.getPropertyAsJSON=function(a,k,e){return a._getPropertyAsJSON(k,e)};a.getPropertyAsString=function(a,k,e){return a._getPropertyAsString(k,e)};a.getStatus=function(a,k){return a._getStatus(k)};a.resizeApplet=function(a,k){return a._resizeApplet(k)}; a.restoreOrientation=function(a,k){return a._restoreOrientation(k)};a.restoreOrientationDelayed=function(a,k,e){return a._restoreOrientationDelayed(k,e)};a.saveOrientation=function(a,k){return a._saveOrientation(k)};a.say=function(a){alert(a)};a.clearConsole=function(a){a._clearConsole()};a.getInfo=function(a){return a._info};a.setInfo=function(a,k,e){a._info=k;2 ")}; a.jmolButton=function(l,k,e,h,p){return a.controls._getButton(l,k,e,h,p)};a.jmolCheckbox=function(l,k,e,h,p,s,b){return a.controls._getCheckbox(l,k,e,h,p,s,b)};a.jmolCommandInput=function(l,k,e,h,p,s){return a.controls._getCommandInput(l,k,e,h,p,s)};a.jmolHtml=function(l){return a._documentWrite(l)};a.jmolLink=function(l,k,e,h,p){return a.controls._getLink(l,k,e,h,p)};a.jmolMenu=function(l,k,e,h,p){return a.controls._getMenu(l,k,e,h,p)};a.jmolRadio=function(l,k,e,h,p,s,b,d){return a.controls._getRadio(l, k,e,h,p,s,b,d)};a.jmolRadioGroup=function(l,k,e,h,p,s){return a.controls._getRadioGroup(l,k,e,h,p,s)};a.setCheckboxGroup=function(l,k){a.controls._cbSetCheckboxGroup(l,k,arguments)};a.setDocument=function(l){a._document=l};a.setXHTML=function(l){a._isXHTML=!0;a._XhtmlElement=null;a._XhtmlAppendChild=!1;l&&(a._XhtmlElement=document.getElementById(l),a._XhtmlAppendChild=!0)};a.setAppletCss=function(l,k){null!=l&&(a._appletCssClass=l);a._appletCssText=k?k+" ":l?'class="'+l+'" ':""};a.setButtonCss=function(l, k){null!=l&&(a.controls._buttonCssClass=l);a.controls._buttonCssText=k?k+" ":l?'class="'+l+'" ':""};a.setCheckboxCss=function(l,k){null!=l&&(a.controls._checkboxCssClass=l);a.controls._checkboxCssText=k?k+" ":l?'class="'+l+'" ':""};a.setRadioCss=function(l,k){null!=l&&(a.controls._radioCssClass=l);a.controls._radioCssText=k?k+" ":l?'class="'+l+'" ':""};a.setLinkCss=function(l,k){null!=l&&(a.controls._linkCssClass=l);a.controls._linkCssText=k?k+" ":l?'class="'+l+'" ':""};a.setMenuCss=function(l,k){null!= l&&(a.controls._menuCssClass=l);a.controls._menuCssText=k?k+" ":l?'class="'+l+'" ':""};a.setAppletSync=function(l,k,e){a._syncedApplets=l;a._syncedCommands=k;a._syncedReady={};a._isJmolJSVSync=e};a.setGrabberOptions=function(l){a._grabberOptions=l};a.setAppletHtml=function(l,k){l._code&&(a.$html(k,l._code),l._init&&!l._deferApplet&&l._init())};a.coverApplet=function(a,k){a._cover&&a._cover(k)};a.setFileCaching=function(l,k){l?l._cacheFiles=k:a.fileCache=k?{}:null};a.updateView=function(a,k,e){a._updateView(k, e)};a.getChemicalInfo=function(l,k,e){k||(k="name");"string"!=typeof applet_or_Identifier&&(l=l._getSmiles());return a._getNCIInfo(l,k,e)};a.saveImage=function(a){switch(a._viewType){case "Jmol":a._script('write PNGJ "'+a._id+'.png"');break;case "JSV":a._script("write PDF");break;case "JME":a._script("print")}}})(Jmol); LoadClazz=function(){c$=null;window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!1);window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!0,window["j2s.object.native"]=!0,Clazz={_isQuiet:!1,_debugging:!1},function(a,p){try{a._debugging=0<=document.location.href.indexOf("j2sdebug")}catch(l){}var k=["j2s.clazzloaded","j2s.object.native"];a.setGlobal=function(a,b){k.push(a);window[a]=b};a.getGlobals=function(){return k.sort().join("\n")};a.setConsoleDiv=function(a){window["j2s.lib"]&&(window["j2s.lib"].console= a)};var e=window["j2s.doProfile"]&&self.JSON?{}:null;NullObject=function(){};a._supportsNativeObject=window["j2s.object.native"];a._supportsNativeObject?(a._O=function(){},a._O.__CLASS_NAME__="Object",a._O.getClass=function(){return a._O}):a._O=Object;a.Console={};a.dateToString=Date.prototype.toString;a._hashCode=0;var h=a._O.prototype;h.equals=function(a){return this==a};h.hashCode=function(){return this._$hashcode||(this._$hashcode=++a._hashCode)};h.getClass=function(){return a.getClass(this)}; h.clone=function(){return a.clone(this)};a.clone=function(a){var b=new a.constructor,c;for(c in a)b[c]=a[c];return b};h.finalize=function(){};h.notify=function(){};h.notifyAll=function(){};h.wait=function(){};h.to$tring=Object.prototype.toString;h.toString=function(){return this.__CLASS_NAME__?"["+this.__CLASS_NAME__+" object]":this.to$tring.apply(this,arguments)};a._extendedObjectMethods="equals hashCode getClass clone finalize notify notifyAll wait to$tring toString".split(" ");a.extendJO=function(b, c){c&&(b.__CLASS_NAME__=b.prototype.__CLASS_NAME__=c);if(a._supportsNativeObject)for(var d=0;d e)return"["==d.charAt(0)?a.extractClassName(d):d.replace(/[^a-zA-Z0-9]/g,"");var e=e+8,h=d.indexOf("(",e);if(0>h)break;d=d.substring(e,h);if(0<=d.indexOf("Array"))return"Array";d=d.replace(/^\s+/,"").replace(/\s+$/,"");return"anonymous"==d||""==d?"Function":d;case "object":if(b.__CLASS_NAME__)return b.__CLASS_NAME__;if(!b.constructor)break;if(!b.constructor.__CLASS_NAME__){if(b instanceof Number)return"Number";if(b instanceof Boolean)return"Boolean";if(b instanceof Array)return"Array";d=b.toString();if("["==d.charAt(0))return a.extractClassName(d)}return a.getClassName(b.constructor,!0)}return"Object"};a.getClass=function(b){if(!b)return a._O;if("function"==typeof b)return b;if(b instanceof a.CastedNull)b=b.clazzName;else switch(typeof b){case "string":return String;case "object":if(!b.__CLASS_NAME__)return b.constructor||a._O;b=b.__CLASS_NAME__;break;default:return b.constructor}return a.evalType(b, !0)};var t=function(b,c){for(var d=0;d d;){if(e.implementz)for(var h=e.implementz,k=0;k (""+b).indexOf("Error"))return!1;System.out.println(a.getStackTrace());return!0}return d==Exception||d==Throwable||d==NullPointerException&&c(b)};a.getStackTrace=function(a){a||(a=25);var b="\n",c=arguments.callee, d=0>a;d&&(a=-a);for(var e=0;e",b=b+(e+" "+(c.exName?(c.claxxOwner?c.claxxOwner.__CLASS_NAME__+".":"")+c.exName+h.replace(/function /,""):h)+"\n");if(c==c.caller){b+=" \n";break}if(d)for(var h=c.arguments,k=0;k D.indexOf(m)&&(D+=m+"\n");e[m]||(e[m]=0);e[m]++}if(fx.lastParams==n.typeString&&fx.lastClaxxRef===c){if(n.hasCastedNull){c=[];for(j=0;j C[B]){wb=!1;break}wb&&(C[z.length]=w,F.push(C))}if(0==F.length)F=null;else{ga=F[0];for(w=1;w sb(s,b)&&s.push(b);r&&(r.claxxOwner===b?(p[r.funParams]=r,r.claxxOwner=null,r.funParams=null):r.claxxOwner||(p["\\unknown"]=r));h.exClazz=b;p[k]=h;return p};duplicatedMethods={};var K=function(b,c,d){var e=b.prototype[c];if(e&&(e.claxxOwner||e.claxxReference)===b)key=b.__CLASS_NAME__+ "."+c+d,(b=duplicatedMethods[key])?(c="Warning! Duplicate method found for "+key,System.out.println(c),a.alert(c),duplicatedMethods[key]=b+1):duplicatedMethods[key]=1};a.showDuplicates=function(a){var b="",c=duplicatedMethods,d=0,e;for(e in c)1 c.length)break;if(c.indexOf(k)==c.length-k.length){c=c.substring(0,c.length-k.length+1);break}}else c=a._Loader.getClasspathFor(d,!0);else(e=a.binaryFolders)&&e.length&&(c=e[0]);c||(c="j2s/");c=c.replace(/\\/g,"/");e=c.length;e=c.charAt(e-1);"/"!=e&&(c+="/");this.base?d=c+b:(e=d.lastIndexOf("."),d=-1==e||this.base? c+b:c+d.substring(0,e).replace(/\./g,"/")+"/"+b)}c=null;try{if(0>d.indexOf(":/")){var r=document.location.href.split("?")[0].split("/");r[r.length-1]=d;d=r.join("/")}c=new java.net.URL(d)}catch(s){}r=null==c?null:p._getFileData(d.toString());if(!r||"error"==r||0==r.indexOf("[Exception"))return null;r=(new java.lang.String(r)).getBytes();r=new java.io.BufferedInputStream(new java.io.ByteArrayInputStream(r));r.url=c;return r},defineMethod:function(b,c,d){a.defineMethod(this,b,c,d)},defineStaticMethod:function(b, c,d){a.defineMethod(this,b,c,d);this[b]=this.prototype[b]},makeConstructor:function(b,c){a.makeConstructor(this,b,c)}};var Ca=[];a.pu$h=function(a){a||(a=self.c$);a&&Ca.push(a)};a.p0p=function(){return Ca.pop()};a.decorateAsClass=function(b,c,d,e,h,k){var l=null;c&&(l=c.__PKG_NAME__,l||(l=c.__CLASS_NAME__));var p=(l?l+".":"")+d;a._Loader._classPending[p]&&(delete a._Loader._classPending[p],a._Loader._classCountOK++,a._Loader._classCountPending--);a._Loader&&a._Loader._checkLoad&&System.out.println("decorating class "+ l+"."+d);(l=a.unloadedClasses[p])&&(b=l);Da(b,c,d);k?a.inheritClass(b,e,k):e&&a.inheritClass(b,e);h&&a.implementOf(b,h);return b};var Da=function(b,c,d){var e;c?c.__PKG_NAME__?(e=c.__PKG_NAME__+"."+d,c[d]=b,c===java.lang&&a.setGlobal(d,b)):(e=c.__CLASS_NAME__+"."+d,c[d]=b):(e=d,a.setGlobal(d,b));a.extendJO(b,e);c=a.innerFunctionNames;for(d=0;d a?Math.ceil(a):Math.floor(a)};a.floatToByte=a.floatToShort=a.floatToLong=a.floatToInt;a.doubleToByte=a.doubleToShort=a.doubleToLong=a.doubleToInt=a.floatToInt;a.floatToChar=function(a){return String.fromCharCode(0>a?Math.ceil(a):Math.floor(a))};a.doubleToChar=a.floatToChar;h=function(a){return function(){for(var b=this.length,c= 32==a?new Int32Array(b):new Float64Array(b);0<=--b;)c[b]=this[b];return c}};self.Int32Array&&self.Int32Array!=Array?(a.haveInt32=!0,Int32Array.prototype.sort||(Int32Array.prototype.sort=Array.prototype.sort),Int32Array.prototype.clone||(Int32Array.prototype.clone=h(32))):(Int32Array=function(a){a||(a=0);var b=Array(a);b.toString=function(){return"[object Int32Array]"};for(var c=0;cd?h:Array(d),k=d;0<=--k;)b[k]=h;return b; default:for(var l=Array(e),k=0;k d)d=h.length;var k=0>h?Array(d):c?new Int32Array(d):new Float64Array(d);if(e)for(e=d;0<=--e;)k[e]=h[e];return k}for(h=Array(e);0<=--e;)h[e]=b[e+1];k=Array(d);for(e= 0;e =w.STATUS_LOAD_COMPLETE))k?window.setTimeout(g,25):g()}else{var m=b.getClasspathFor(c);l=e[m];if(!l)for(k= D.length;0<=--k;)if(D[k].path==m||D[k].name==c){l=!0;break}if(l){if(g&&(l=G(c)))if(l.onLoaded){if(g!=l.onLoaded){var p=l.onLoaded,r=g;l.onLoaded=function(){p();r()}}}else l.onLoaded=g}else{l=a.unloadedClasses[c]&&G(c)||new w;l.name=c;l.path=m;l.isPackage=m.lastIndexOf("package.js")==m.length-10;Q(m,c,l);l.onLoaded=g;l.status=w.STATUS_KNOWN;c=!1;for(k=D.length;0<=--k;)if(D[k].status!=w.STATUS_LOAD_COMPLETE){c=!0;break}if(l.isPackage){for(k=D.length;0<=--k&&!D[k].isPackage;)D[k+1]=D[k];D[++k]=l}else c&& D.push(l);if(!c){var s=!1;g&&(s=ha,ha=!0);h&&(g=null);Ia(d,l,!0);U(l,l.path,l.requiredBy,!1,g?function(){ha=s;g()}:null)}}}};var L=function(a){return null!=window[a+".registered"]&&!N["@"+a]};b.loadPackage=function(a,c){c||(c=null);window[a+".registered"]=!1;b.loadPackageClasspath(a,b.J2SLibBase||(b.J2SLibBase=b.getJ2SLibBase()||"j2s/"),!0,c)};b.jarClasspath=function(a,b){b instanceof Array||(b=[classes]);E(b);for(var c=b.length;0<=--c;)N["#"+b[c]]=a;N["$"+a]=b};b.registerPackages=function(c,d){for(var e= b.getClasspathFor(c+".*",!0),g=0;g >");e[d]=!0;Ma(D,d);W=!0;M=!1;b._checkLoad&&System.out.println("\t"+d+(g?"\n -- required by "+g:"")+" ajax="+W+" async="+M);g=d;a._debugging&&(d=d.replace(/\.z\.js/,".js"));b.onScriptLoading(d);if(W&&!M){k=p._getFileData(d);try{S(d,g,k)}catch(m){alert(m+" loading file "+d+" "+c.name+" "+a.getStackTrace())}l&&l()}else System.out.println("for file "+d+" fSuccess = "+(l?l.toString():"")),c={dataType:"script",async:!0,type:"GET",url:d,success:$(d,!1,l),error:$(d, !0,l)},h++,p.$ajax(c)},$=function(c,d,e){a.getStackTrace();return function(){t&&this.timeoutHandle&&(window.clearTimeout(this.timeoutHandle),this.timeoutHandle=null);0 r;r++)for(;m=l[r](w.STATUS_CONTENT_LOADED);)1==r&&p===m&&(m.status=w.STATUS_LOAD_COMPLETE),updateNode(m),p=m;for(;!(la=[],!ma(d,c)););for(r=0;2>r;r++)for(p=null;(m=l[r](w.STATUS_DECLARED))&&p!==m;)updateNode(p=m);p=[];for(r=0;2>r;r++)for(;m=l[r](w.STATUS_DECLARED);)p.push(m),m.status=w.STATUS_LOAD_COMPLETE;if(p.length){for(r=0;r =w.STATUS_DECLARED););if(0<=e){if(b._checkLoad){var j;System.out.println("cycle found loading "+ c+" for "+a)}for(;e j;j++){k=h[j];for(e=k.length;0<=--e;)if(k[e].status==w.STATUS_DECLARED&&ma(k[e],c))return!0}d.length=g;return!1};b._classCountPending=0;b._classCountOK= 0;b._classPending={};b.showPending=function(){var a=[],c;for(c in b._classPending){var d=G(c);d?(a.push(d),System.out.println(na("","",d,"",0))):alert("No node for "+c)}return a};var na=function(a,b,c,d,e){b+="--"+c.name;a+=b+"\n";if(5 =w.STATUS_LOAD_COMPLETE)va(a);else{var c=!0;if(a.musts.length&&a.declaration)for(var d=a.musts.length,e=d;0<=--e;){var g=a.musts[e];g.requiredBy=a;if(g.status w.STATUS_KNOWN&&!a.declaration||sa(a.musts,w.STATUS_LOAD_COMPLETE)&&sa(a.optionals,w.STATUS_LOAD_COMPLETE)){c=w.STATUS_LOAD_COMPLETE;if(!$a(a,c))return!1;if(a.declaration&&a.declaration.clazzList){h=0;k=a.declaration.clazzList;for(l=k.length;h c.indexOf("Opera")&&document.all?0==h?d:k:0>c.indexOf("Gecko")?h==e.offsetHeight&&h==e.scrollHeight?d:k:d;ma!=c&&(ma=c,T.style.bottom=ma+4+"px");b&&na()}};var ib=function(a){if(a)for(var b=a.childNodes.length;0<= --b;){var c=a.childNodes[b];if(c){c.childNodes&&c.childNodes.length&&ib(c);try{a.removeChild(c)}catch(d){}}}},kb=function(a){la&&a==$.DEFAULT_OPACITY&&(window.clearTimeout(la),la=null);L=a;navigator.userAgent.toLowerCase();T.style.filter="Alpha(Opacity="+a+")";T.style.opacity=a/100},vb=function(){$.hideMonitor()},lb=!1,na=function(){"none"!=T.style.display&&(L==$.DEFAULT_OPACITY?(la=window.setTimeout(function(){na()},750),L-=5):0<=L-10?(kb(L-10),la=window.setTimeout(function(){na()},40)):T.style.display= "none")},C=a.Console,U=System;C.maxTotalLines=1E4;C.setMaxTotalLines=function(a){C.maxTotalLines=0C.maxTotalLines){for(var d=0;d c.childNodes.length)l=document.createElement("DIV"),c.appendChild(l),l.style.whiteSpace="nowrap",C.linesCount++;else try{l=c.childNodes[c.childNodes.length-1]}catch(p){l=document.createElement("DIV"),c.appendChild(l),l.style.whiteSpace="nowrap",C.linesCount++}var r=document.createElement("SPAN");l.appendChild(r);r.style.whiteSpace="nowrap";b&&(r.style.color=b);l=h[d]; 0==l.length&&(l=aa);r.appendChild(document.createTextNode(l));C.pinning||(c.scrollTop+=100);C.metLineBreak=d!=k||e}d=c.parentNode.className;!C.pinning&&(d&&-1!=d.indexOf("composite"))&&(c.parentNode.scrollTop=c.parentNode.scrollHeight);C.lastOutputTime=(new Date).getTime()};C.clear=function(){try{C.metLineBreak=!0;var a=window["j2s.lib"],b=a&&a.console;if(b&&(b=document.getElementById(b))){for(var c=b.childNodes,d=c.length;0<=--d;)b.removeChild(c[d]);C.linesCount=0}}catch(e){}};a.alert=function(a){C.consoleOutput(a+ "\r\n")};U.out.print=function(a){C.consoleOutput(a)};U.out.println=function(a){C.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n")};U.out.write=function(a,b,c){U.out.print(String.instantialize(a).substring(b,b+c))};U.err.__CLASS_NAME__="java.io.PrintStream";U.err.print=function(a){C.consoleOutput(a,"red")};U.err.println=function(a){C.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n","red")};U.err.write=function(a,b,c){U.err.print(String.instantialize(a).substring(b, b+c))}}(Clazz,Jmol))};Jmol.___JmolDate="$Date: 2015-12-13 10:26:55 -0600 (Sun, 13 Dec 2015) $";Jmol.___fullJmolProperties="src/org/jmol/viewer/Jmol.properties";Jmol.___JmolVersion="14.4.0_2015.12.13";