-
Notifications
You must be signed in to change notification settings - Fork 0
/
JSmol.min.js
447 lines (447 loc) · 223 KB
/
JSmol.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
(function(a,m){"object"===typeof module&&"object"===typeof module.exports?module.exports=a.document?m(a,!0):function(a){if(!a.document)throw Error("jQuery requires a window with a document");return m(a)}:m(a)})("undefined"!==typeof window?window:this,function(a,m){function l(f){var w=f.length,a=g.type(f);return"function"===a||g.isWindow(f)?!1:1===f.nodeType&&w?!0:"array"===a||0===w||"number"===typeof w&&0<w&&w-1 in f}function h(f,w,a){if(g.isFunction(w))return g.grep(f,function(f,g){return!!w.call(f,
g,f)!==a});if(w.nodeType)return g.grep(f,function(f){return f===w!==a});if("string"===typeof w){if(Vc.test(w))return g.filter(w,f,a);w=g.filter(w,f)}return g.grep(f,function(f){return 0<=g.inArray(f,w)!==a})}function e(f,w){do f=f[w];while(f&&1!==f.nodeType);return f}function k(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",q,!1),a.removeEventListener("load",q,!1)):(y.detachEvent("onreadystatechange",q),a.detachEvent("onload",q))}function q(){if(y.addEventListener||"load"===event.type||
"complete"===y.readyState)k(),g.ready()}function s(f,w,a){if(void 0===a&&1===f.nodeType)if(a="data-"+w.replace(Wc,"-$1").toLowerCase(),a=f.getAttribute(a),"string"===typeof a){try{a="true"===a?!0:"false"===a?!1:"null"===a?null:+a+""===a?+a:Xc.test(a)?g.parseJSON(a):a}catch(A){}g.data(f,w,a)}else a=void 0;return a}function u(f){for(var a in f)if(!("data"===a&&g.isEmptyObject(f[a]))&&"toJSON"!==a)return!1;return!0}function b(f,a,p,A){if(g.acceptData(f)){var b=g.expando,c=f.nodeType,d=c?g.cache:f,n=
c?f[b]:f[b]&&b;if(n&&d[n]&&(A||d[n].data)||!(void 0===p&&"string"===typeof a)){n||(n=c?f[b]=j.pop()||g.guid++:b);d[n]||(d[n]=c?{}:{toJSON:g.noop});if("object"===typeof a||"function"===typeof a)A?d[n]=g.extend(d[n],a):d[n].data=g.extend(d[n].data,a);f=d[n];A||(f.data||(f.data={}),f=f.data);void 0!==p&&(f[g.camelCase(a)]=p);"string"===typeof a?(p=f[a],null==p&&(p=f[g.camelCase(a)])):p=f;return p}}}function c(f,a,p){if(g.acceptData(f)){var A,b,c=f.nodeType,j=c?g.cache:f,d=c?f[g.expando]:g.expando;if(j[d]){if(a&&
(A=p?j[d]:j[d].data)){g.isArray(a)?a=a.concat(g.map(a,g.camelCase)):a in A?a=[a]:(a=g.camelCase(a),a=a in A?[a]:a.split(" "));for(b=a.length;b--;)delete A[a[b]];if(p?!u(A):!g.isEmptyObject(A))return}if(!p&&(delete j[d].data,!u(j[d])))return;c?g.cleanData([f],!0):v.deleteExpando||j!=j.window?delete j[d]:j[d]=null}}}function d(){return!0}function t(){return!1}function F(){try{return y.activeElement}catch(f){}}function C(f){var a=mc.split("|");f=f.createDocumentFragment();if(f.createElement)for(;a.length;)f.createElement(a.pop());
return f}function K(f,a){var p,A,b=0,c=typeof f.getElementsByTagName!==ka?f.getElementsByTagName(a||"*"):typeof f.querySelectorAll!==ka?f.querySelectorAll(a||"*"):void 0;if(!c){c=[];for(p=f.childNodes||f;null!=(A=p[b]);b++)!a||g.nodeName(A,a)?c.push(A):g.merge(c,K(A,a))}return void 0===a||a&&g.nodeName(f,a)?g.merge([f],c):c}function rb(f){Mb.test(f.type)&&(f.defaultChecked=f.checked)}function Ya(f,a){return g.nodeName(f,"table")&&g.nodeName(11!==a.nodeType?a:a.firstChild,"tr")?f.getElementsByTagName("tbody")[0]||
f.appendChild(f.ownerDocument.createElement("tbody")):f}function Ea(f){f.type=(null!==g.find.attr(f,"type"))+"/"+f.type;return f}function U(f){var a=Yc.exec(f.type);a?f.type=a[1]:f.removeAttribute("type");return f}function P(f,a){for(var p,A=0;null!=(p=f[A]);A++)g._data(p,"globalEval",!a||g._data(a[A],"globalEval"))}function Fa(f,a){if(1===a.nodeType&&g.hasData(f)){var p,A,b;A=g._data(f);var c=g._data(a,A),j=A.events;if(j)for(p in delete c.handle,c.events={},j){A=0;for(b=j[p].length;A<b;A++)g.event.add(a,
p,j[p][A])}c.data&&(c.data=g.extend({},c.data))}}function Pa(f,w){var p=g(w.createElement(f)).appendTo(w.body),A=a.getDefaultComputedStyle?a.getDefaultComputedStyle(p[0]).display:g.css(p[0],"display");p.detach();return A}function db(f){var a=y,p=nc[f];if(!p){p=Pa(f,a);if("none"===p||!p)eb=(eb||g("<iframe frameborder='0' width='0' height='0'/>")).appendTo(a.documentElement),a=(eb[0].contentWindow||eb[0].contentDocument).document,a.write(),a.close(),p=Pa(f,a),eb.detach();nc[f]=p}return p}function fb(f,
a){return{get:function(){var p=f();if(null!=p)if(p)delete this.get;else return(this.get=a).apply(this,arguments)}}}function gb(f,a){if(a in f)return a;for(var p=a.charAt(0).toUpperCase()+a.slice(1),A=a,b=oc.length;b--;)if(a=oc[b]+p,a in f)return a;return A}function va(f,a){for(var p,A,b,c=[],j=0,d=f.length;j<d;j++)if(A=f[j],A.style)if(c[j]=g._data(A,"olddisplay"),p=A.style.display,a)!c[j]&&"none"===p&&(A.style.display=""),""===A.style.display&&hb(A)&&(c[j]=g._data(A,"olddisplay",db(A.nodeName)));
else if(!c[j]&&(b=hb(A),p&&"none"!==p||!b))g._data(A,"olddisplay",b?p:g.css(A,"display"));for(j=0;j<d;j++)if(A=f[j],A.style&&(!a||"none"===A.style.display||""===A.style.display))A.style.display=a?c[j]||"":"none";return f}function la(f,a,p){return(f=Zc.exec(a))?Math.max(0,f[1]-(p||0))+(f[2]||"px"):a}function x(f,a,p,b,c){a=p===(b?"border":"content")?4:"width"===a?1:0;for(var j=0;4>a;a+=2)"margin"===p&&(j+=g.css(f,p+Qa[a],!0,c)),b?("content"===p&&(j-=g.css(f,"padding"+Qa[a],!0,c)),"margin"!==p&&(j-=
g.css(f,"border"+Qa[a]+"Width",!0,c))):(j+=g.css(f,"padding"+Qa[a],!0,c),"padding"!==p&&(j+=g.css(f,"border"+Qa[a]+"Width",!0,c)));return j}function Z(f,a,p){var b=!0,c="width"===a?f.offsetWidth:f.offsetHeight,j=Ra(f),d=v.boxSizing()&&"border-box"===g.css(f,"boxSizing",!1,j);if(0>=c||null==c){c=Sa(f,a,j);if(0>c||null==c)c=f.style[a];if(sb.test(c))return c;b=d&&(v.boxSizingReliable()||c===f.style[a]);c=parseFloat(c)||0}return c+x(f,a,p||(d?"border":"content"),b,j)+"px"}function L(f,a,p,b,g){return new L.prototype.init(f,
a,p,b,g)}function fa(){setTimeout(function(){Za=void 0});return Za=g.now()}function O(f,a){var p,b={height:f},g=0;for(a=a?1:0;4>g;g+=2-a)p=Qa[g],b["margin"+p]=b["padding"+p]=f;a&&(b.opacity=b.width=f);return b}function wa(f,a,p){for(var b,g=(ib[a]||[]).concat(ib["*"]),c=0,j=g.length;c<j;c++)if(b=g[c].call(p,a,f))return b}function jb(f,a,p){var b,c,j=0,d=tb.length,n=g.Deferred().always(function(){delete e.elem}),e=function(){if(c)return!1;for(var a=Za||fa(),a=Math.max(0,r.startTime+r.duration-a),w=
1-(a/r.duration||0),p=0,b=r.tweens.length;p<b;p++)r.tweens[p].run(w);n.notifyWith(f,[r,w,a]);if(1>w&&b)return a;n.resolveWith(f,[r]);return!1},r=n.promise({elem:f,props:g.extend({},a),opts:g.extend(!0,{specialEasing:{}},p),originalProperties:a,originalOptions:p,startTime:Za||fa(),duration:p.duration,tweens:[],createTween:function(a,w){var p=g.Tween(f,r.opts,a,w,r.opts.specialEasing[a]||r.opts.easing);r.tweens.push(p);return p},stop:function(a){var w=0,p=a?r.tweens.length:0;if(c)return this;for(c=
!0;w<p;w++)r.tweens[w].run(1);a?n.resolveWith(f,[r,a]):n.rejectWith(f,[r,a]);return this}});a=r.props;p=r.opts.specialEasing;var h,t,l,k;for(b in a)if(h=g.camelCase(b),t=p[h],l=a[b],g.isArray(l)&&(t=l[1],l=a[b]=l[0]),b!==h&&(a[h]=l,delete a[b]),(k=g.cssHooks[h])&&"expand"in k)for(b in l=k.expand(l),delete a[h],l)b in a||(a[b]=l[b],p[b]=t);else p[h]=t;for(;j<d;j++)if(b=tb[j].call(r,f,a,r.opts))return b;g.map(a,wa,r);g.isFunction(r.opts.start)&&r.opts.start.call(f,r);g.fx.timer(g.extend(e,{elem:f,anim:r,
queue:r.opts.queue}));return r.progress(r.opts.progress).done(r.opts.done,r.opts.complete).fail(r.opts.fail).always(r.opts.always)}function kb(f){return function(a,p){"string"!==typeof a&&(p=a,a="*");var b,c=0,j=a.toLowerCase().match(xa)||[];if(g.isFunction(p))for(;b=j[c++];)"+"===b.charAt(0)?(b=b.slice(1)||"*",(f[b]=f[b]||[]).unshift(p)):(f[b]=f[b]||[]).push(p)}}function ub(f,a,p,b){function c(n){var e;j[n]=!0;g.each(f[n]||[],function(f,g){var n=g(a,p,b);if("string"===typeof n&&!d&&!j[n])return a.dataTypes.unshift(n),
c(n),!1;if(d)return!(e=n)});return e}var j={},d=f===Nb;return c(a.dataTypes[0])||!j["*"]&&c("*")}function ya(f,a){var p,b,c=g.ajaxSettings.flatOptions||{};for(b in a)void 0!==a[b]&&((c[b]?f:p||(p={}))[b]=a[b]);p&&g.extend(!0,f,p);return f}function ma(f,a,p,b){var c;if(g.isArray(a))g.each(a,function(a,w){p||ad.test(f)?b(f,w):ma(f+"["+("object"===typeof w?a:"")+"]",w,p,b)});else if(!p&&"object"===g.type(a))for(c in a)ma(f+"["+c+"]",a[c],p,b);else b(f,a)}function D(f){try{return f?new a.ActiveXObject("Microsoft.XMLHTTP"):
new a.XMLHttpRequest}catch(w){}}function aa(){try{return new a.XMLHttpRequest}catch(f){}}function V(f){return g.isWindow(f)?f:9===f.nodeType?f.defaultView||f.parentWindow:!1}var j=[],n=j.slice,r=j.concat,z=j.push,G=j.indexOf,Q={},bd=Q.toString,za=Q.hasOwnProperty,Ob="".trim,v={},g=function(f,a){return new g.fn.init(f,a)},cd=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,dd=/^-ms-/,ed=/-([\da-z])/gi,fd=function(f,a){return a.toUpperCase()};g.fn=g.prototype={jquery:"1.11.0",constructor:g,selector:"",length:0,
toArray:function(){return n.call(this)},get:function(f){return null!=f?0>f?this[f+this.length]:this[f]:n.call(this)},pushStack:function(f){f=g.merge(this.constructor(),f);f.prevObject=this;f.context=this.context;return f},each:function(f,a){return g.each(this,f,a)},map:function(f){return this.pushStack(g.map(this,function(a,p){return f.call(a,p,a)}))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(f){var a=
this.length;f=+f+(0>f?a:0);return this.pushStack(0<=f&&f<a?[this[f]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:z,sort:j.sort,splice:j.splice};g.extend=g.fn.extend=function(){var f,a,p,b,c,j=arguments[0]||{},d=1,n=arguments.length,e=!1;"boolean"===typeof j&&(e=j,j=arguments[d]||{},d++);"object"!==typeof j&&!g.isFunction(j)&&(j={});d===n&&(j=this,d--);for(;d<n;d++)if(null!=(c=arguments[d]))for(b in c)f=j[b],p=c[b],j!==p&&(e&&p&&(g.isPlainObject(p)||(a=g.isArray(p)))?(a?
(a=!1,f=f&&g.isArray(f)?f:[]):f=f&&g.isPlainObject(f)?f:{},j[b]=g.extend(e,f,p)):void 0!==p&&(j[b]=p));return j};g.extend({expando:"jQuery"+("1.11.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(f){throw Error(f);},noop:function(){},isFunction:function(f){return"function"===g.type(f)},isArray:Array.isArray||function(f){return"array"===g.type(f)},isWindow:function(f){return null!=f&&f==f.window},isNumeric:function(f){return 0<=f-parseFloat(f)},isEmptyObject:function(f){for(var a in f)return!1;
return!0},isPlainObject:function(f){var a;if(!f||"object"!==g.type(f)||f.nodeType||g.isWindow(f))return!1;try{if(f.constructor&&!za.call(f,"constructor")&&!za.call(f.constructor.prototype,"isPrototypeOf"))return!1}catch(p){return!1}if(v.ownLast)for(a in f)return za.call(f,a);for(a in f);return void 0===a||za.call(f,a)},type:function(f){return null==f?f+"":"object"===typeof f||"function"===typeof f?Q[bd.call(f)]||"object":typeof f},globalEval:function(f){f&&g.trim(f)&&(a.execScript||function(f){a.eval.call(a,
f)})(f)},camelCase:function(f){return f.replace(dd,"ms-").replace(ed,fd)},nodeName:function(f,a){return f.nodeName&&f.nodeName.toLowerCase()===a.toLowerCase()},each:function(f,a,p){var b,g=0,c=f.length;b=l(f);if(p)if(b)for(;g<c&&!(b=a.apply(f[g],p),!1===b);g++);else for(g in f){if(b=a.apply(f[g],p),!1===b)break}else if(b)for(;g<c&&!(b=a.call(f[g],g,f[g]),!1===b);g++);else for(g in f)if(b=a.call(f[g],g,f[g]),!1===b)break;return f},trim:Ob&&!Ob.call("\ufeff\u00a0")?function(f){return null==f?"":Ob.call(f)}:
function(f){return null==f?"":(f+"").replace(cd,"")},makeArray:function(f,a){var p=a||[];null!=f&&(l(Object(f))?g.merge(p,"string"===typeof f?[f]:f):z.call(p,f));return p},inArray:function(f,a,p){var b;if(a){if(G)return G.call(a,f,p);b=a.length;for(p=p?0>p?Math.max(0,b+p):p:0;p<b;p++)if(p in a&&a[p]===f)return p}return-1},merge:function(f,a){for(var p=+a.length,b=0,g=f.length;b<p;)f[g++]=a[b++];if(p!==p)for(;void 0!==a[b];)f[g++]=a[b++];f.length=g;return f},grep:function(f,a,p){for(var b=[],g=0,c=
f.length,j=!p;g<c;g++)p=!a(f[g],g),p!==j&&b.push(f[g]);return b},map:function(f,a,p){var b,g=0,c=f.length,j=[];if(l(f))for(;g<c;g++)b=a(f[g],g,p),null!=b&&j.push(b);else for(g in f)b=a(f[g],g,p),null!=b&&j.push(b);return r.apply([],j)},guid:1,proxy:function(f,a){var p,b;"string"===typeof a&&(b=f[a],a=f,f=b);if(g.isFunction(f))return p=n.call(arguments,2),b=function(){return f.apply(a||this,p.concat(n.call(arguments)))},b.guid=f.guid=f.guid||g.guid++,b},now:function(){return+new Date},support:v});
g.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(f,a){Q["[object "+a+"]"]=a.toLowerCase()});var Pb=a,E=function(f,a,p,b){var g,c,j,d,n;(a?a.ownerDocument||a:W)!==R&&na(a);a=a||R;p=p||[];if(!f||"string"!==typeof f)return p;if(1!==(d=a.nodeType)&&9!==d)return[];if(X&&!b){if(g=gd.exec(f))if(j=g[1])if(9===d)if((c=a.getElementById(j))&&c.parentNode){if(c.id===j)return p.push(c),p}else return p;else{if(a.ownerDocument&&(c=a.ownerDocument.getElementById(j))&&ra(a,
c)&&c.id===j)return p.push(c),p}else{if(g[2])return Ga.apply(p,a.getElementsByTagName(f)),p;if((j=g[3])&&I.getElementsByClassName&&a.getElementsByClassName)return Ga.apply(p,a.getElementsByClassName(j)),p}if(I.qsa&&(!S||!S.test(f))){c=g=M;j=a;n=9===d&&f;if(1===d&&"object"!==a.nodeName.toLowerCase()){d=sa(f);(g=a.getAttribute("id"))?c=g.replace(hd,"\\$&"):a.setAttribute("id",c);c="[id='"+c+"'] ";for(j=d.length;j--;)d[j]=c+vb(d[j]);j=Qb.test(f)&&ga(a.parentNode)||a;n=d.join(",")}if(n)try{return Ga.apply(p,
j.querySelectorAll(n)),p}catch(e){}finally{g||a.removeAttribute("id")}}}var r;a:{f=f.replace(wb,"$1");c=sa(f);if(!b&&1===c.length){g=c[0]=c[0].slice(0);if(2<g.length&&"ID"===(r=g[0]).type&&I.getById&&9===a.nodeType&&X&&H.relative[g[1].type]){a=(H.find.ID(r.matches[0].replace(Ha,Ia),a)||[])[0];if(!a){r=p;break a}f=f.slice(g.shift().value.length)}for(d=xb.needsContext.test(f)?0:g.length;d--;){r=g[d];if(H.relative[j=r.type])break;if(j=H.find[j])if(b=j(r.matches[0].replace(Ha,Ia),Qb.test(g[0].type)&&
ga(a.parentNode)||a)){g.splice(d,1);f=b.length&&vb(g);if(!f){Ga.apply(p,b);r=p;break a}break}}}$a(f,c)(b,a,!X,p,Qb.test(f)&&ga(a.parentNode)||a);r=p}return r},Rb=function(){function f(p,b){a.push(p+" ")>H.cacheLength&&delete f[a.shift()];return f[p+" "]=b}var a=[];return f},oa=function(f){f[M]=!0;return f},pa=function(f){var a=R.createElement("div");try{return!!f(a)}catch(p){return!1}finally{a.parentNode&&a.parentNode.removeChild(a)}},Sb=function(f,a){for(var p=f.split("|"),b=f.length;b--;)H.attrHandle[p[b]]=
a},pc=function(f,a){var p=a&&f,b=p&&1===f.nodeType&&1===a.nodeType&&(~a.sourceIndex||ha)-(~f.sourceIndex||ha);if(b)return b;if(p)for(;p=p.nextSibling;)if(p===a)return-1;return f?1:-1},id=function(f){return function(a){return"input"===a.nodeName.toLowerCase()&&a.type===f}},jd=function(f){return function(a){var p=a.nodeName.toLowerCase();return("input"===p||"button"===p)&&a.type===f}},ta=function(f){return oa(function(a){a=+a;return oa(function(p,b){for(var g,c=f([],p.length,a),j=c.length;j--;)if(p[g=
c[j]])p[g]=!(b[g]=p[g])})})},ga=function(f){return f&&typeof f.getElementsByTagName!==T&&f},qc=function(){},sa=function(f,a){var p,b,g,c,j,d,n;if(j=Ja[f+" "])return a?0:j.slice(0);j=f;d=[];for(n=H.preFilter;j;){if(!p||(b=kd.exec(j)))b&&(j=j.slice(b[0].length)||j),d.push(g=[]);p=!1;if(b=ld.exec(j))p=b.shift(),g.push({value:p,type:b[0].replace(wb," ")}),j=j.slice(p.length);for(c in H.filter)if((b=xb[c].exec(j))&&(!n[c]||(b=n[c](b))))p=b.shift(),g.push({value:p,type:c,matches:b}),j=j.slice(p.length);
if(!p)break}return a?j.length:j?E.error(f):Ja(f,d).slice(0)},vb=function(f){for(var a=0,p=f.length,b="";a<p;a++)b+=f[a].value;return b},Tb=function(f,a,p){var b=a.dir,g=p&&"parentNode"===b,c=md++;return a.first?function(a,p,w){for(;a=a[b];)if(1===a.nodeType||g)return f(a,p,w)}:function(a,p,w){var j,d,n=[ba,c];if(w)for(;a=a[b];){if((1===a.nodeType||g)&&f(a,p,w))return!0}else for(;a=a[b];)if(1===a.nodeType||g){d=a[M]||(a[M]={});if((j=d[b])&&j[0]===ba&&j[1]===c)return n[2]=j[2];d[b]=n;if(n[2]=f(a,p,
w))return!0}}},Ub=function(f){return 1<f.length?function(a,p,b){for(var g=f.length;g--;)if(!f[g](a,p,b))return!1;return!0}:f[0]},Ta=function(f,a,p,b,g){for(var c,j=[],d=0,n=f.length,e=null!=a;d<n;d++)if(c=f[d])if(!p||p(c,b,g))j.push(c),e&&a.push(d);return j},Vb=function(f,a,p,b,g,c){b&&!b[M]&&(b=Vb(b));g&&!g[M]&&(g=Vb(g,c));return oa(function(c,j,d,n){var e,r,ea=[],l=[],h=j.length,t;if(!(t=c)){t=a||"*";for(var k=d.nodeType?[d]:d,B=[],z=0,T=k.length;z<T;z++)E(t,k[z],B);t=B}t=f&&(c||!a)?Ta(t,ea,f,d,
n):t;k=p?g||(c?f:h||b)?[]:j:t;p&&p(t,k,d,n);if(b){e=Ta(k,l);b(e,[],d,n);for(d=e.length;d--;)if(r=e[d])k[l[d]]=!(t[l[d]]=r)}if(c){if(g||f){if(g){e=[];for(d=k.length;d--;)if(r=k[d])e.push(t[d]=r);g(null,k=[],e,n)}for(d=k.length;d--;)if((r=k[d])&&-1<(e=g?Ua.call(c,r):ea[d]))c[e]=!(j[e]=r)}}else k=Ta(k===j?k.splice(h,k.length):k),g?g(null,j,k,n):Ga.apply(j,k)})},Wb=function(f){var a,p,b,g=f.length,c=H.relative[f[0].type];p=c||H.relative[" "];for(var j=c?1:0,d=Tb(function(f){return f===a},p,!0),n=Tb(function(f){return-1<
Ua.call(a,f)},p,!0),e=[function(f,p,b){return!c&&(b||p!==Aa)||((a=p).nodeType?d(f,p,b):n(f,p,b))}];j<g;j++)if(p=H.relative[f[j].type])e=[Tb(Ub(e),p)];else{p=H.filter[f[j].type].apply(null,f[j].matches);if(p[M]){for(b=++j;b<g&&!H.relative[f[b].type];b++);return Vb(1<j&&Ub(e),1<j&&vb(f.slice(0,j-1).concat({value:" "===f[j-2].type?"*":""})).replace(wb,"$1"),p,j<b&&Wb(f.slice(j,b)),b<g&&Wb(f=f.slice(b)),b<g&&vb(f))}e.push(p)}return Ub(e)},Ba,I,H,Ka,rc,$a,Aa,qa,Ca,na,R,ia,X,S,ca,La,ra,M="sizzle"+-new Date,
W=Pb.document,ba=0,md=0,sc=Rb(),Ja=Rb(),Da=Rb(),B=function(f,a){f===a&&(Ca=!0);return 0},T="undefined",ha=-2147483648,da={}.hasOwnProperty,N=[],ua=N.pop,nd=N.push,Ga=N.push,tc=N.slice,Ua=N.indexOf||function(f){for(var a=0,p=this.length;a<p;a++)if(this[a]===f)return a;return-1},uc="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w#"),vc="\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)[\\x20\\t\\r\\n\\f]*(?:([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+uc+")|)|)[\\x20\\t\\r\\n\\f]*\\]",
Xb=":((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+vc.replace(3,8)+")*)|.*)\\)|)",wb=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),kd=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,ld=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,od=RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),pd=RegExp(Xb),qd=RegExp("^"+uc+"$"),xb={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,
TAG:RegExp("^("+"(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+vc),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")},rd=/^(?:input|select|textarea|button)$/i,sd=/^h\d$/i,lb=/^[^{]+\{\s*\[native \w/,gd=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Qb=/[+~]/,hd=/'|\\/g,Ha=RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),Ia=function(f,a,p){f="0x"+a-65536;return f!==f||p?a:0>f?String.fromCharCode(f+65536):String.fromCharCode(f>>10|55296,f&1023|56320)};try{Ga.apply(N=tc.call(W.childNodes),W.childNodes),N[W.childNodes.length].nodeType}catch(Zd){Ga={apply:N.length?function(f,a){nd.apply(f,tc.call(a))}:
function(f,a){for(var p=f.length,b=0;f[p++]=a[b++];);f.length=p-1}}}I=E.support={};rc=E.isXML=function(f){return(f=f&&(f.ownerDocument||f).documentElement)?"HTML"!==f.nodeName:!1};na=E.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;ia=a.documentElement;X=!rc(a);f&&f!==f.top&&(f.addEventListener?f.addEventListener("unload",function(){na()},!1):f.attachEvent&&f.attachEvent("onunload",function(){na()}));I.attributes=pa(function(f){f.className=
"i";return!f.getAttribute("className")});I.getElementsByTagName=pa(function(f){f.appendChild(a.createComment(""));return!f.getElementsByTagName("*").length});I.getElementsByClassName=lb.test(a.getElementsByClassName)&&pa(function(f){f.innerHTML="<div class='a'></div><div class='a i'></div>";f.firstChild.className="i";return 2===f.getElementsByClassName("i").length});I.getById=pa(function(f){ia.appendChild(f).id=M;return!a.getElementsByName||!a.getElementsByName(M).length});I.getById?(H.find.ID=function(f,
a){if(typeof a.getElementById!==T&&X){var b=a.getElementById(f);return b&&b.parentNode?[b]:[]}},H.filter.ID=function(f){var a=f.replace(Ha,Ia);return function(f){return f.getAttribute("id")===a}}):(delete H.find.ID,H.filter.ID=function(f){var a=f.replace(Ha,Ia);return function(f){return(f=typeof f.getAttributeNode!==T&&f.getAttributeNode("id"))&&f.value===a}});H.find.TAG=I.getElementsByTagName?function(f,a){if(typeof a.getElementsByTagName!==T)return a.getElementsByTagName(f)}:function(f,a){var b,
w=[],g=0,c=a.getElementsByTagName(f);if("*"===f){for(;b=c[g++];)1===b.nodeType&&w.push(b);return w}return c};H.find.CLASS=I.getElementsByClassName&&function(f,a){if(typeof a.getElementsByClassName!==T&&X)return a.getElementsByClassName(f)};ca=[];S=[];if(I.qsa=lb.test(a.querySelectorAll))pa(function(f){f.innerHTML="<select t=''><option selected=''></option></select>";f.querySelectorAll("[t^='']").length&&S.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");f.querySelectorAll("[selected]").length||S.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||S.push(":checked")}),pa(function(f){var b=a.createElement("input");b.setAttribute("type","hidden");f.appendChild(b).setAttribute("name","D");f.querySelectorAll("[name=d]").length&&S.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");f.querySelectorAll(":enabled").length||S.push(":enabled",":disabled");f.querySelectorAll("*,:x");S.push(",.*:")});(I.matchesSelector=lb.test(La=ia.webkitMatchesSelector||ia.mozMatchesSelector||ia.oMatchesSelector||ia.msMatchesSelector))&&
pa(function(f){I.disconnectedMatch=La.call(f,"div");La.call(f,"[s!='']:x");ca.push("!=",Xb)});S=S.length&&RegExp(S.join("|"));ca=ca.length&&RegExp(ca.join("|"));ra=(f=lb.test(ia.compareDocumentPosition))||lb.test(ia.contains)?function(f,a){var b=9===f.nodeType?f.documentElement:f,w=a&&a.parentNode;return f===w||!(!w||!(1===w.nodeType&&(b.contains?b.contains(w):f.compareDocumentPosition&&f.compareDocumentPosition(w)&16)))}:function(f,a){if(a)for(;a=a.parentNode;)if(a===f)return!0;return!1};B=f?function(f,
b){if(f===b)return Ca=!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||!I.sortDetached&&b.compareDocumentPosition(f)===g?f===a||f.ownerDocument===W&&ra(W,f)?-1:b===a||b.ownerDocument===W&&ra(W,b)?1:qa?Ua.call(qa,f)-Ua.call(qa,b):0:g&4?-1:1}:function(f,b){if(f===b)return Ca=!0,0;var g,c=0;g=f.parentNode;var j=b.parentNode,d=[f],n=[b];if(!g||!j)return f===a?-1:b===a?1:g?-1:j?1:qa?Ua.call(qa,
f)-Ua.call(qa,b):0;if(g===j)return pc(f,b);for(g=f;g=g.parentNode;)d.unshift(g);for(g=b;g=g.parentNode;)n.unshift(g);for(;d[c]===n[c];)c++;return c?pc(d[c],n[c]):d[c]===W?-1:n[c]===W?1:0};return a};E.matches=function(f,a){return E(f,null,null,a)};E.matchesSelector=function(f,a){(f.ownerDocument||f)!==R&&na(f);a=a.replace(od,"='$1']");if(I.matchesSelector&&X&&(!ca||!ca.test(a))&&(!S||!S.test(a)))try{var b=La.call(f,a);if(b||I.disconnectedMatch||f.document&&11!==f.document.nodeType)return b}catch(g){}return 0<
E(a,R,null,[f]).length};E.contains=function(f,a){(f.ownerDocument||f)!==R&&na(f);return ra(f,a)};E.attr=function(f,a){(f.ownerDocument||f)!==R&&na(f);var b=H.attrHandle[a.toLowerCase()],b=b&&da.call(H.attrHandle,a.toLowerCase())?b(f,a,!X):void 0;return void 0!==b?b:I.attributes||!X?f.getAttribute(a):(b=f.getAttributeNode(a))&&b.specified?b.value:null};E.error=function(f){throw Error("Syntax error, unrecognized expression: "+f);};E.uniqueSort=function(f){var a,b=[],g=0,c=0;Ca=!I.detectDuplicates;qa=
!I.sortStable&&f.slice(0);f.sort(B);if(Ca){for(;a=f[c++];)a===f[c]&&(g=b.push(c));for(;g--;)f.splice(b[g],1)}qa=null;return f};Ka=E.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+=Ka(f)}else{if(3===a||4===a)return f.nodeValue}else for(;a=f[g++];)b+=Ka(a);return b};H=E.selectors={cacheLength:50,createPseudo:oa,match:xb,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0},
" ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(f){f[1]=f[1].replace(Ha,Ia);f[3]=(f[4]||f[5]||"").replace(Ha,Ia);"~="===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]||E.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]&&E.error(f[0]);return f},PSEUDO:function(f){var a,b=!f[5]&&f[2];if(xb.CHILD.test(f[0]))return null;
if(f[3]&&void 0!==f[4])f[2]=f[4];else if(b&&pd.test(b)&&(a=sa(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(Ha,Ia).toLowerCase();return"*"===f?function(){return!0}:function(f){return f.nodeName&&f.nodeName.toLowerCase()===a}},CLASS:function(f){var a=sc[f+" "];return a||(a=RegExp("(^|[\\x20\\t\\r\\n\\f])"+f+"([\\x20\\t\\r\\n\\f]|$)"))&&sc(f,function(f){return a.test("string"===typeof f.className&&
f.className||typeof f.getAttribute!==T&&f.getAttribute("class")||"")})},ATTR:function(f,a,b){return function(g){g=E.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&&-1<g.indexOf(b):"$="===a?b&&g.slice(-b.length)===b:"~="===a?-1<(" "+g+" ").indexOf(b):"|="===a?g===b||g.slice(0,b.length+1)===b+"-":!1}},CHILD:function(f,a,b,g,c){var j="nth"!==f.slice(0,3),d="last"!==f.slice(-4),n="of-type"===a;return 1===g&&0===c?function(f){return!!f.parentNode}:
function(a,b,p){var w,e,r,k,t;b=j!==d?"nextSibling":"previousSibling";var l=a.parentNode,h=n&&a.nodeName.toLowerCase();p=!p&&!n;if(l){if(j){for(;b;){for(e=a;e=e[b];)if(n?e.nodeName.toLowerCase()===h:1===e.nodeType)return!1;t=b="only"===f&&!t&&"nextSibling"}return!0}t=[d?l.firstChild:l.lastChild];if(d&&p){p=l[M]||(l[M]={});w=p[f]||[];k=w[0]===ba&&w[1];r=w[0]===ba&&w[2];for(e=k&&l.childNodes[k];e=++k&&e&&e[b]||(r=k=0)||t.pop();)if(1===e.nodeType&&++r&&e===a){p[f]=[ba,k,r];break}}else if(p&&(w=(a[M]||
(a[M]={}))[f])&&w[0]===ba)r=w[1];else for(;e=++k&&e&&e[b]||(r=k=0)||t.pop();)if((n?e.nodeName.toLowerCase()===h:1===e.nodeType)&&++r)if(p&&((e[M]||(e[M]={}))[f]=[ba,r]),e===a)break;r-=c;return r===g||0===r%g&&0<=r/g}}},PSEUDO:function(f,a){var b,g=H.pseudos[f]||H.setFilters[f.toLowerCase()]||E.error("unsupported pseudo: "+f);return g[M]?g(a):1<g.length?(b=[f,f,"",a],H.setFilters.hasOwnProperty(f.toLowerCase())?oa(function(f,b){for(var p,c=g(f,a),j=c.length;j--;)p=Ua.call(f,c[j]),f[p]=!(b[p]=c[j])}):
function(f){return g(f,0,b)}):g}},pseudos:{not:oa(function(f){var a=[],b=[],g=$a(f.replace(wb,"$1"));return g[M]?oa(function(f,a,b,p){p=g(f,null,p,[]);for(var w=f.length;w--;)if(b=p[w])f[w]=!(a[w]=b)}):function(f,c,j){a[0]=f;g(a,null,j,b);return!b.pop()}}),has:oa(function(f){return function(a){return 0<E(f,a).length}}),contains:oa(function(f){return function(a){return-1<(a.textContent||a.innerText||Ka(a)).indexOf(f)}}),lang:oa(function(f){qd.test(f||"")||E.error("unsupported lang: "+f);f=f.replace(Ha,
Ia).toLowerCase();return function(a){var b;do if(b=X?a.lang:a.getAttribute("xml:lang")||a.getAttribute("lang"))return b=b.toLowerCase(),b===f||0===b.indexOf(f+"-");while((a=a.parentNode)&&1===a.nodeType);return!1}}),target:function(f){var a=Pb.location&&Pb.location.hash;return a&&a.slice(1)===f.id},root:function(f){return f===ia},focus:function(f){return f===R.activeElement&&(!R.hasFocus||R.hasFocus())&&!(!f.type&&!f.href&&!~f.tabIndex)},enabled:function(f){return!1===f.disabled},disabled:function(f){return!0===
f.disabled},checked:function(f){var a=f.nodeName.toLowerCase();return"input"===a&&!!f.checked||"option"===a&&!!f.selected},selected:function(f){f.parentNode&&f.parentNode.selectedIndex;return!0===f.selected},empty:function(f){for(f=f.firstChild;f;f=f.nextSibling)if(6>f.nodeType)return!1;return!0},parent:function(f){return!H.pseudos.empty(f)},header:function(f){return sd.test(f.nodeName)},input:function(f){return rd.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:ta(function(){return[0]}),last:ta(function(f,a){return[a-1]}),eq:ta(function(f,a,b){return[0>b?b+a:b]}),even:ta(function(f,a){for(var b=0;b<a;b+=2)f.push(b);return f}),odd:ta(function(f,a){for(var b=1;b<a;b+=2)f.push(b);return f}),lt:ta(function(f,a,b){for(a=0>b?b+a:b;0<=--a;)f.push(a);return f}),gt:ta(function(f,
a,b){for(b=0>b?b+a:b;++b<a;)f.push(b);return f})}};H.pseudos.nth=H.pseudos.eq;for(Ba in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})H.pseudos[Ba]=id(Ba);for(Ba in{submit:!0,reset:!0})H.pseudos[Ba]=jd(Ba);qc.prototype=H.filters=H.pseudos;H.setFilters=new qc;$a=E.compile=function(f,a){var b,g=[],c=[],j=Da[f+" "];if(!j){a||(a=sa(f));for(b=a.length;b--;)j=Wb(a[b]),j[M]?g.push(j):c.push(j);var d=0<g.length,n=0<c.length;b=function(f,a,b,p,w){var j,e,r,k=0,ea="0",t=f&&[],l=[],h=Aa,B=f||n&&H.find.TAG("*",
w),z=ba+=null==h?1:Math.random()||0.1,T=B.length;for(w&&(Aa=a!==R&&a);ea!==T&&null!=(j=B[ea]);ea++){if(n&&j){for(e=0;r=c[e++];)if(r(j,a,b)){p.push(j);break}w&&(ba=z)}d&&((j=!r&&j)&&k--,f&&t.push(j))}k+=ea;if(d&&ea!==k){for(e=0;r=g[e++];)r(t,l,a,b);if(f){if(0<k)for(;ea--;)!t[ea]&&!l[ea]&&(l[ea]=ua.call(p));l=Ta(l)}Ga.apply(p,l);w&&(!f&&0<l.length&&1<k+g.length)&&E.uniqueSort(p)}w&&(ba=z,Aa=h);return t};b=d?oa(b):b;j=Da(f,b)}return j};I.sortStable=M.split("").sort(B).join("")===M;I.detectDuplicates=
!!Ca;na();I.sortDetached=pa(function(f){return f.compareDocumentPosition(R.createElement("div"))&1});pa(function(f){f.innerHTML="<a href='#'></a>";return"#"===f.firstChild.getAttribute("href")})||Sb("type|href|height|width",function(f,a,b){if(!b)return f.getAttribute(a,"type"===a.toLowerCase()?1:2)});(!I.attributes||!pa(function(f){f.innerHTML="<input/>";f.firstChild.setAttribute("value","");return""===f.firstChild.getAttribute("value")}))&&Sb("value",function(f,a,b){if(!b&&"input"===f.nodeName.toLowerCase())return f.defaultValue});
pa(function(f){return null==f.getAttribute("disabled")})||Sb("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=E;g.expr=E.selectors;g.expr[":"]=g.expr.pseudos;g.unique=E.uniqueSort;g.text=E.getText;g.isXMLDoc=E.isXML;g.contains=E.contains;var wc=g.expr.match.needsContext,xc=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Vc=
/^.[^:#\[\.,]*$/;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<c;a++)if(g.contains(j[a],this))return!0}));for(a=0;a<c;a++)g.find(f,j[a],b);b=this.pushStack(1<c?g.unique(b):b);b.selector=this.selector?this.selector+" "+
f:f;return b},filter:function(f){return this.pushStack(h(this,f||[],!1))},not:function(f){return this.pushStack(h(this,f||[],!0))},is:function(f){return!!h(this,"string"===typeof f&&wc.test(f)?g(f):f||[],!1).length}});var mb,y=a.document,td=/^(?:\s*(<[\w\W]+>)[^>]*|#([\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]:td.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)),xc.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 mb.find(f);this.length=1;this[0]=j}this.context=y;this.selector=f}return this}return!a||a.jquery?(a||mb).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 mb.ready?mb.ready(f):
f(g);void 0!==f.selector&&(this.selector=f.selector,this.context=f.context);return g.makeArray(f,this)}).prototype=g.fn;mb=g(y);var ud=/^(?:parents|prev(?:Until|All))/,vd={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<j;a++)if(g.contains(this,b[a]))return!0})},closest:function(f,a){for(var b,j=0,c=this.length,d=[],n=wc.test(f)||"string"!==typeof f?g(f,a||this.context):0;j<c;j++)for(b=this[j];b&&b!==a;b=b.parentNode)if(11>b.nodeType&&(n?-1<n.index(b):1===b.nodeType&&g.find.matchesSelector(b,f))){d.push(b);break}return this.pushStack(1<d.length?g.unique(d):d)},index:function(f){return!f?this[0]&&this[0].parentNode?this.first().prevAll().length:-1:"string"===
typeof f?g.inArray(this[0],g(f)):g.inArray(f.jquery?f[0]:f,this)},add:function(f,a){return this.pushStack(g.unique(g.merge(this.get(),g(f,a))))},addBack:function(f){return this.add(null==f?this.prevObject:this.prevObject.filter(f))}});g.each({parent:function(f){return(f=f.parentNode)&&11!==f.nodeType?f:null},parents:function(f){return g.dir(f,"parentNode")},parentsUntil:function(f,a,b){return g.dir(f,"parentNode",b)},next:function(f){return e(f,"nextSibling")},prev:function(f){return e(f,"previousSibling")},
nextAll:function(f){return g.dir(f,"nextSibling")},prevAll:function(f){return g.dir(f,"previousSibling")},nextUntil:function(f,a,b){return g.dir(f,"nextSibling",b)},prevUntil:function(f,a,b){return g.dir(f,"previousSibling",b)},siblings:function(f){return g.sibling((f.parentNode||{}).firstChild,f)},children:function(f){return g.sibling(f.firstChild)},contents:function(f){return g.nodeName(f,"iframe")?f.contentDocument||f.contentWindow.document:g.merge([],f.childNodes)}},function(f,a){g.fn[f]=function(b,
j){var c=g.map(this,a,b);"Until"!==f.slice(-5)&&(j=b);j&&"string"===typeof j&&(c=g.filter(j,c));1<this.length&&(vd[f]||(c=g.unique(c)),ud.test(f)&&(c=c.reverse()));return this.pushStack(c)}});var xa=/\S+/g,yc={};g.Callbacks=function(f){var a;if("string"===typeof f){if(!(a=yc[f])){a=f;var b=yc[a]={};g.each(a.match(xa)||[],function(f,a){b[a]=!0});a=b}}else a=g.extend({},f);f=a;var j,c,d,n,e,r,k=[],l=!f.once&&[],t=function(a){c=f.memory&&a;d=!0;e=r||0;r=0;n=k.length;for(j=!0;k&&e<n;e++)if(!1===k[e].apply(a[0],
a[1])&&f.stopOnFalse){c=!1;break}j=!1;k&&(l?l.length&&t(l.shift()):c?k=[]:h.disable())},h={add:function(){if(k){var a=k.length;(function $c(a){g.each(a,function(a,b){var p=g.type(b);"function"===p?(!f.unique||!h.has(b))&&k.push(b):b&&(b.length&&"string"!==p)&&$c(b)})})(arguments);j?n=k.length:c&&(r=a,t(c))}return this},remove:function(){k&&g.each(arguments,function(f,a){for(var b;-1<(b=g.inArray(a,k,b));)k.splice(b,1),j&&(b<=n&&n--,b<=e&&e--)});return this},has:function(f){return f?-1<g.inArray(f,
k):!(!k||!k.length)},empty:function(){k=[];n=0;return this},disable:function(){k=l=c=void 0;return this},disabled:function(){return!k},lock:function(){l=void 0;c||h.disable();return this},locked:function(){return!l},fireWith:function(f,a){if(k&&(!d||l))a=a||[],a=[f,a.slice?a.slice():a],j?l.push(a):t(a);return this},fire:function(){h.fireWith(this,arguments);return this},fired:function(){return!!d}};return h};g.extend({Deferred:function(f){var a=[["resolve","done",g.Callbacks("once memory"),"resolved"],
["reject","fail",g.Callbacks("once memory"),"rejected"],["notify","progress",g.Callbacks("memory")]],b="pending",j={state:function(){return b},always:function(){c.done(arguments).fail(arguments);return this},then:function(){var f=arguments;return g.Deferred(function(b){g.each(a,function(a,p){var w=g.isFunction(f[a])&&f[a];c[p[1]](function(){var f=w&&w.apply(this,arguments);if(f&&g.isFunction(f.promise))f.promise().done(b.resolve).fail(b.reject).progress(b.notify);else b[p[0]+"With"](this===j?b.promise():
this,w?[f]:arguments)})});f=null}).promise()},promise:function(f){return null!=f?g.extend(f,j):j}},c={};j.pipe=j.then;g.each(a,function(f,g){var d=g[2],n=g[3];j[g[1]]=d.add;n&&d.add(function(){b=n},a[f^1][2].disable,a[2][2].lock);c[g[0]]=function(){c[g[0]+"With"](this===c?j:this,arguments);return this};c[g[0]+"With"]=d.fireWith});j.promise(c);f&&f.call(c,c);return c},when:function(f){var a=0,b=n.call(arguments),j=b.length,c=1!==j||f&&g.isFunction(f.promise)?j:0,d=1===c?f:g.Deferred(),e=function(f,
a,b){return function(g){a[f]=this;b[f]=1<arguments.length?n.call(arguments):g;b===r?d.notifyWith(a,b):--c||d.resolveWith(a,b)}},r,k,l;if(1<j){r=Array(j);k=Array(j);for(l=Array(j);a<j;a++)b[a]&&g.isFunction(b[a].promise)?b[a].promise().done(e(a,l,b)).fail(d.reject).progress(e(a,k,r)):--c}c||d.resolveWith(l,b);return d.promise()}});var yb;g.fn.ready=function(f){g.ready.promise().done(f);return this};g.extend({isReady:!1,readyWait:1,holdReady:function(f){f?g.readyWait++:g.ready(!0)},ready:function(f){if(!(!0===
f?--g.readyWait:g.isReady)){if(!y.body)return setTimeout(g.ready);g.isReady=!0;!0!==f&&0<--g.readyWait||(yb.resolveWith(y,[g]),g.fn.trigger&&g(y).trigger("ready").off("ready"))}}});g.ready.promise=function(f){if(!yb)if(yb=g.Deferred(),"complete"===y.readyState)setTimeout(g.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",q,!1),a.addEventListener("load",q,!1);else{y.attachEvent("onreadystatechange",q);a.attachEvent("onload",q);var b=!1;try{b=null==a.frameElement&&y.documentElement}catch(j){}b&&
b.doScroll&&function Uc(){if(!g.isReady){try{b.doScroll("left")}catch(f){return setTimeout(Uc,50)}k();g.ready()}}()}return yb.promise(f)};var ka="undefined",zc;for(zc in g(v))break;v.ownLast="0"!==zc;v.inlineBlockNeedsLayout=!1;g(function(){var f,a,b=y.getElementsByTagName("body")[0];if(b){f=y.createElement("div");f.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px";a=y.createElement("div");b.appendChild(f).appendChild(a);if(typeof a.style.zoom!==ka&&(a.style.cssText=
"border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",v.inlineBlockNeedsLayout=3===a.offsetWidth))b.style.zoom=1;b.removeChild(f)}});var wd=y.createElement("div");if(null==v.deleteExpando){v.deleteExpando=!0;try{delete wd.test}catch($d){v.deleteExpando=!1}}g.acceptData=function(f){var a=g.noData[(f.nodeName+" ").toLowerCase()],b=+f.nodeType||1;return 1!==b&&9!==b?!1:!a||!0!==a&&f.getAttribute("classid")===a};var Xc=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Wc=/([A-Z])/g;g.extend({cache:{},noData:{"applet ":!0,
"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(f){f=f.nodeType?g.cache[f[g.expando]]:f[g.expando];return!!f&&!u(f)},data:function(f,a,g){return b(f,a,g)},removeData:function(f,a){return c(f,a)},_data:function(f,a,g){return b(f,a,g,!0)},_removeData:function(f,a){return c(f,a,!0)}});g.fn.extend({data:function(f,a){var b,j,c,d=this[0],n=d&&d.attributes;if(void 0===f){if(this.length&&(c=g.data(d),1===d.nodeType&&!g._data(d,"parsedAttrs"))){for(b=n.length;b--;)j=n[b].name,
0===j.indexOf("data-")&&(j=g.camelCase(j.slice(5)),s(d,j,c[j]));g._data(d,"parsedAttrs",!0)}return c}return"object"===typeof f?this.each(function(){g.data(this,f)}):1<arguments.length?this.each(function(){g.data(this,f,a)}):d?s(d,f,g.data(d,f)):void 0},removeData:function(f){return this.each(function(){g.removeData(this,f)})}});g.extend({queue:function(f,a,b){var j;if(f)return a=(a||"fx")+"queue",j=g._data(f,a),b&&(!j||g.isArray(b)?j=g._data(f,a,g.makeArray(b)):j.push(b)),j||[]},dequeue:function(f,
a){a=a||"fx";var b=g.queue(f,a),j=b.length,c=b.shift(),d=g._queueHooks(f,a),n=function(){g.dequeue(f,a)};"inprogress"===c&&(c=b.shift(),j--);c&&("fx"===a&&b.unshift("inprogress"),delete d.stop,c.call(f,n,d));!j&&d&&d.empty.fire()},_queueHooks:function(f,a){var b=a+"queueHooks";return g._data(f,b)||g._data(f,b,{empty:g.Callbacks("once memory").add(function(){g._removeData(f,a+"queue");g._removeData(f,b)})})}});g.fn.extend({queue:function(f,a){var b=2;"string"!==typeof f&&(a=f,f="fx",b--);return arguments.length<
b?g.queue(this[0],f):void 0===a?this:this.each(function(){var b=g.queue(this,f,a);g._queueHooks(this,f);"fx"===f&&"inprogress"!==b[0]&&g.dequeue(this,f)})},dequeue:function(f){return this.each(function(){g.dequeue(this,f)})},clearQueue:function(f){return this.queue(f||"fx",[])},promise:function(f,a){var b,j=1,c=g.Deferred(),d=this,n=this.length,e=function(){--j||c.resolveWith(d,[d])};"string"!==typeof f&&(a=f,f=void 0);for(f=f||"fx";n--;)if((b=g._data(d[n],f+"queueHooks"))&&b.empty)j++,b.empty.add(e);
e();return c.promise(a)}});var zb=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Qa=["Top","Right","Bottom","Left"],hb=function(a,b){a=b||a;return"none"===g.css(a,"display")||!g.contains(a.ownerDocument,a)},Va=g.access=function(a,b,j,c,d,n,e){var r=0,k=a.length,l=null==j;if("object"===g.type(j))for(r in d=!0,j)g.access(a,b,r,j[r],!0,n,e);else if(void 0!==c&&(d=!0,g.isFunction(c)||(e=!0),l&&(e?(b.call(a,c),b=null):(l=b,b=function(a,f,b){return l.call(g(a),b)})),b))for(;r<k;r++)b(a[r],j,e?c:c.call(a[r],
r,b(a[r],j)));return d?a:l?b.call(a):k?b(a[0],j):n},Mb=/^(?:checkbox|radio)$/i,Yb=y.createDocumentFragment(),Y=y.createElement("div"),nb=y.createElement("input");Y.setAttribute("className","t");Y.innerHTML=" <link/><table></table><a href='/a'>a</a>";v.leadingWhitespace=3===Y.firstChild.nodeType;v.tbody=!Y.getElementsByTagName("tbody").length;v.htmlSerialize=!!Y.getElementsByTagName("link").length;v.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML;nb.type="checkbox";nb.checked=
!0;Yb.appendChild(nb);v.appendChecked=nb.checked;Y.innerHTML="<textarea>x</textarea>";v.noCloneChecked=!!Y.cloneNode(!0).lastChild.defaultValue;Yb.appendChild(Y);Y.innerHTML="<input type='radio' checked='checked' name='t'/>";v.checkClone=Y.cloneNode(!0).cloneNode(!0).lastChild.checked;v.noCloneEvent=!0;Y.attachEvent&&(Y.attachEvent("onclick",function(){v.noCloneEvent=!1}),Y.cloneNode(!0).click());if(null==v.deleteExpando){v.deleteExpando=!0;try{delete Y.test}catch(ae){v.deleteExpando=!1}}var Yb=Y=
nb=null,Ab,Bb,Ac=y.createElement("div");for(Ab in{submit:!0,change:!0,focusin:!0})if(Bb="on"+Ab,!(v[Ab+"Bubbles"]=Bb in a))Ac.setAttribute(Bb,"t"),v[Ab+"Bubbles"]=!1===Ac.attributes[Bb].expando;var Zb=/^(?:input|select|textarea)$/i,xd=/^key/,yd=/^(?:mouse|contextmenu)|click/,Bc=/^(?:focusinfocus|focusoutblur)$/,Cc=/^([^.]*)(?:\.(.+)|)$/;g.event={global:{},add:function(a,b,j,c,d){var n,e,r,k,l,t,h,B,z;if(r=g._data(a)){j.handler&&(k=j,j=k.handler,d=k.selector);j.guid||(j.guid=g.guid++);if(!(e=r.events))e=
r.events={};if(!(l=r.handle))l=r.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(xa)||[""];for(r=b.length;r--;)if(n=Cc.exec(b[r])||[],B=t=n[1],z=(n[2]||"").split(".").sort(),B){n=g.event.special[B]||{};B=(d?n.delegateType:n.bindType)||B;n=g.event.special[B]||{};t=g.extend({type:B,origType:t,data:c,handler:j,guid:j.guid,selector:d,needsContext:d&&g.expr.match.needsContext.test(d),namespace:z.join(".")},
k);if(!(h=e[B]))if(h=e[B]=[],h.delegateCount=0,!n.setup||!1===n.setup.call(a,c,z,l))a.addEventListener?a.addEventListener(B,l,!1):a.attachEvent&&a.attachEvent("on"+B,l);n.add&&(n.add.call(a,t),t.handler.guid||(t.handler.guid=j.guid));d?h.splice(h.delegateCount++,0,t):h.push(t);g.event.global[B]=!0}a=null}},remove:function(a,b,j,c,d){var n,e,r,k,l,t,h,B,z,T,q,m=g.hasData(a)&&g._data(a);if(m&&(t=m.events)){b=(b||"").match(xa)||[""];for(l=b.length;l--;)if(r=Cc.exec(b[l])||[],z=q=r[1],T=(r[2]||"").split(".").sort(),
z){h=g.event.special[z]||{};z=(c?h.delegateType:h.bindType)||z;B=t[z]||[];r=r[2]&&RegExp("(^|\\.)"+T.join("\\.(?:.*\\.|)")+"(\\.|$)");for(k=n=B.length;n--;)if(e=B[n],(d||q===e.origType)&&(!j||j.guid===e.guid)&&(!r||r.test(e.namespace))&&(!c||c===e.selector||"**"===c&&e.selector))B.splice(n,1),e.selector&&B.delegateCount--,h.remove&&h.remove.call(a,e);k&&!B.length&&((!h.teardown||!1===h.teardown.call(a,T,m.handle))&&g.removeEvent(a,z,m.handle),delete t[z])}else for(z in t)g.event.remove(a,z+b[l],j,
c,!0);g.isEmptyObject(t)&&(delete m.handle,g._removeData(a,"events"))}},trigger:function(f,b,j,c){var d,n,e,r,k,l,t=[j||y],h=za.call(f,"type")?f.type:f;k=za.call(f,"namespace")?f.namespace.split("."):[];e=d=j=j||y;if(!(3===j.nodeType||8===j.nodeType)&&!Bc.test(h+g.event.triggered))if(0<=h.indexOf(".")&&(k=h.split("."),h=k.shift(),k.sort()),n=0>h.indexOf(":")&&"on"+h,f=f[g.expando]?f:new g.Event(h,"object"===typeof f&&f),f.isTrigger=c?2:3,f.namespace=k.join("."),f.namespace_re=f.namespace?RegExp("(^|\\.)"+
k.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,f.result=void 0,f.target||(f.target=j),b=null==b?[f]:g.makeArray(b,[f]),k=g.event.special[h]||{},c||!(k.trigger&&!1===k.trigger.apply(j,b))){if(!c&&!k.noBubble&&!g.isWindow(j)){r=k.delegateType||h;Bc.test(r+h)||(e=e.parentNode);for(;e;e=e.parentNode)t.push(e),d=e;if(d===(j.ownerDocument||y))t.push(d.defaultView||d.parentWindow||a)}for(l=0;(e=t[l++])&&!f.isPropagationStopped();)if(f.type=1<l?r:k.bindType||h,(d=(g._data(e,"events")||{})[f.type]&&g._data(e,"handle"))&&
d.apply(e,b),(d=n&&e[n])&&d.apply&&g.acceptData(e))f.result=d.apply(e,b),!1===f.result&&f.preventDefault();f.type=h;if(!c&&!f.isDefaultPrevented()&&(!k._default||!1===k._default.apply(t.pop(),b))&&g.acceptData(j)&&n&&j[h]&&!g.isWindow(j)){(d=j[n])&&(j[n]=null);g.event.triggered=h;try{j[h]()}catch(B){}g.event.triggered=void 0;d&&(j[n]=d)}return f.result}},dispatch:function(a){a=g.event.fix(a);var b,j,c,d,e=[],r=n.call(arguments);b=(g._data(this,"events")||{})[a.type]||[];var k=g.event.special[a.type]||
{};r[0]=a;a.delegateTarget=this;if(!(k.preDispatch&&!1===k.preDispatch.call(this,a))){e=g.event.handlers.call(this,a,b);for(b=0;(c=e[b++])&&!a.isPropagationStopped();){a.currentTarget=c.elem;for(d=0;(j=c.handlers[d++])&&!a.isImmediatePropagationStopped();)if(!a.namespace_re||a.namespace_re.test(j.namespace))if(a.handleObj=j,a.data=j.data,j=((g.event.special[j.origType]||{}).handle||j.handler).apply(c.elem,r),void 0!==j&&!1===(a.result=j))a.preventDefault(),a.stopPropagation()}k.postDispatch&&k.postDispatch.call(this,
a);return a.result}},handlers:function(a,b){var j,c,d,n,e=[],r=b.delegateCount,k=a.target;if(r&&k.nodeType&&(!a.button||"click"!==a.type))for(;k!=this;k=k.parentNode||this)if(1===k.nodeType&&(!0!==k.disabled||"click"!==a.type)){d=[];for(n=0;n<r;n++)c=b[n],j=c.selector+" ",void 0===d[j]&&(d[j]=c.needsContext?0<=g(j,this).index(k):g.find(j,this,null,[k]).length),d[j]&&d.push(c);d.length&&e.push({elem:k,handlers:d})}r<b.length&&e.push({elem:this,handlers:b.slice(r)});return e},fix:function(a){if(a[g.expando])return a;
var b,j,c;b=a.type;var d=a,n=this.fixHooks[b];n||(this.fixHooks[b]=n=yd.test(b)?this.mouseHooks:xd.test(b)?this.keyHooks:{});c=n.props?this.props.concat(n.props):this.props;a=new g.Event(d);for(b=c.length;b--;)j=c[b],a[j]=d[j];a.target||(a.target=d.srcElement||y);3===a.target.nodeType&&(a.target=a.target.parentNode);a.metaKey=!!a.metaKey;return n.filter?n.filter(a,d):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
fixHooks:{},keyHooks:{props:["char","charCode","key","keyCode"],filter:function(a,b){null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var g,j,c=b.button,d=b.fromElement;null==a.pageX&&null!=b.clientX&&(g=a.target.ownerDocument||y,j=g.documentElement,g=g.body,a.pageX=b.clientX+(j&&j.scrollLeft||g&&g.scrollLeft||0)-(j&&j.clientLeft||
g&&g.clientLeft||0),a.pageY=b.clientY+(j&&j.scrollTop||g&&g.scrollTop||0)-(j&&j.clientTop||g&&g.clientTop||0));!a.relatedTarget&&d&&(a.relatedTarget=d===a.target?b.toElement:d);!a.which&&void 0!==c&&(a.which=c&1?1:c&2?3:c&4?2:0);return a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==F()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){if(this===F()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(g.nodeName(this,
"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(a){return g.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,j,c){a=g.extend(new g.Event,j,{type:a,isSimulated:!0,originalEvent:{}});c?g.event.trigger(a,null,b):g.event.dispatch.call(b,a);a.isDefaultPrevented()&&j.preventDefault()}};g.removeEvent=y.removeEventListener?function(a,b,g){a.removeEventListener&&a.removeEventListener(b,
g,!1)}:function(a,b,g){b="on"+b;a.detachEvent&&(typeof a[b]===ka&&(a[b]=null),a.detachEvent(b,g))};g.Event=function(a,b){if(!(this instanceof g.Event))return new g.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&(!1===a.returnValue||a.getPreventDefault&&a.getPreventDefault())?d:t):this.type=a;b&&g.extend(this,b);this.timeStamp=a&&a.timeStamp||g.now();this[g.expando]=!0};g.Event.prototype={isDefaultPrevented:t,isPropagationStopped:t,
isImmediatePropagationStopped:t,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=d;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=d;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=d;this.stopPropagation()}};g.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){g.event.special[a]={delegateType:b,
bindType:b,handle:function(a){var f,j=a.relatedTarget,c=a.handleObj;if(!j||j!==this&&!g.contains(this,j))a.type=c.origType,f=c.handler.apply(this,arguments),a.type=b;return f}}});v.submitBubbles||(g.event.special.submit={setup:function(){if(g.nodeName(this,"form"))return!1;g.event.add(this,"click._submit keypress._submit",function(a){a=a.target;if((a=g.nodeName(a,"input")||g.nodeName(a,"button")?a.form:void 0)&&!g._data(a,"submitBubbles"))g.event.add(a,"submit._submit",function(a){a._submit_bubble=
!0}),g._data(a,"submitBubbles",!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&g.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(g.nodeName(this,"form"))return!1;g.event.remove(this,"._submit")}});v.changeBubbles||(g.event.special.change={setup:function(){if(Zb.test(this.nodeName)){if("checkbox"===this.type||"radio"===this.type)g.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&
(this._just_changed=!0)}),g.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1);g.event.simulate("change",this,a,!0)});return!1}g.event.add(this,"beforeactivate._change",function(a){a=a.target;Zb.test(a.nodeName)&&!g._data(a,"changeBubbles")&&(g.event.add(a,"change._change",function(a){this.parentNode&&(!a.isSimulated&&!a.isTrigger)&&g.event.simulate("change",this.parentNode,a,!0)}),g._data(a,"changeBubbles",!0))})},handle:function(a){var b=a.target;
if(this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type)return a.handleObj.handler.apply(this,arguments)},teardown:function(){g.event.remove(this,"._change");return!Zb.test(this.nodeName)}});v.focusinBubbles||g.each({focus:"focusin",blur:"focusout"},function(a,b){var j=function(a){g.event.simulate(b,a.target,g.event.fix(a),!0)};g.event.special[b]={setup:function(){var c=this.ownerDocument||this,d=g._data(c,b);d||c.addEventListener(a,j,!0);g._data(c,b,(d||0)+1)},teardown:function(){var c=
this.ownerDocument||this,d=g._data(c,b)-1;d?g._data(c,b,d):(c.removeEventListener(a,j,!0),g._removeData(c,b))}}});g.fn.extend({on:function(a,b,j,c,d){var n,e;if("object"===typeof a){"string"!==typeof b&&(j=j||b,b=void 0);for(n in a)this.on(n,b,j,a[n],d);return this}null==j&&null==c?(c=b,j=b=void 0):null==c&&("string"===typeof b?(c=j,j=void 0):(c=j,j=b,b=void 0));if(!1===c)c=t;else if(!c)return this;1===d&&(e=c,c=function(a){g().off(a);return e.apply(this,arguments)},c.guid=e.guid||(e.guid=g.guid++));
return this.each(function(){g.event.add(this,a,c,j,b)})},one:function(a,b,g,j){return this.on(a,b,g,j,1)},off:function(a,b,j){var c;if(a&&a.preventDefault&&a.handleObj)return c=a.handleObj,g(a.delegateTarget).off(c.namespace?c.origType+"."+c.namespace:c.origType,c.selector,c.handler),this;if("object"===typeof a){for(c in a)this.off(c,b,a[c]);return this}if(!1===b||"function"===typeof b)j=b,b=void 0;!1===j&&(j=t);return this.each(function(){g.event.remove(this,a,j,b)})},trigger:function(a,b){return this.each(function(){g.event.trigger(a,
b,this)})},triggerHandler:function(a,b){var j=this[0];if(j)return g.event.trigger(a,b,j,!0)}});var mc="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",zd=/ jQuery\d+="(?:null|\d+)"/g,Dc=RegExp("<(?:"+mc+")[\\s/>]","i"),$b=/^\s+/,Ec=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Fc=/<([\w:]+)/,Gc=/<tbody/i,Ad=/<|&#?\w+;/,Bd=/<(?:script|style|link)/i,Cd=/checked\s*(?:[^=]|=\s*.checked.)/i,
Hc=/^$|\/(?:java|ecma)script/i,Yc=/^true\/(.*)/,Dd=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ja={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:v.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},ac=
C(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,e,r,k=g.contains(a.ownerDocument,a);v.html5Clone||g.isXMLDoc(a)||!Dc.test("<"+a.nodeName+">")?n=a.cloneNode(!0):(ac.innerHTML=a.outerHTML,ac.removeChild(n=ac.firstChild));if((!v.noCloneEvent||!v.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!g.isXMLDoc(a)){c=K(n);r=K(a);for(e=0;null!=(d=r[e]);++e)if(c[e]){var l=c[e],h=void 0,t=
void 0,B=void 0;if(1===l.nodeType){h=l.nodeName.toLowerCase();if(!v.noCloneEvent&&l[g.expando]){B=g._data(l);for(t in B.events)g.removeEvent(l,t,B.handle);l.removeAttribute(g.expando)}if("script"===h&&l.text!==d.text)Ea(l).text=d.text,U(l);else if("object"===h)l.parentNode&&(l.outerHTML=d.outerHTML),v.html5Clone&&(d.innerHTML&&!g.trim(l.innerHTML))&&(l.innerHTML=d.innerHTML);else if("input"===h&&Mb.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){r=r||K(a);c=c||K(n);for(e=0;null!=(d=r[e]);e++)Fa(d,c[e])}else Fa(a,n);c=K(n,"script");0<c.length&&P(c,!k&&K(a,"script"));return n},buildFragment:function(a,b,j,c){for(var d,n,e,r,k,l,h=a.length,t=C(b),B=[],z=0;z<h;z++)if((n=a[z])||0===n)if("object"===g.type(n))g.merge(B,n.nodeType?[n]:n);else if(Ad.test(n)){e=e||t.appendChild(b.createElement("div"));r=(Fc.exec(n)||["",""])[1].toLowerCase();
l=ja[r]||ja._default;e.innerHTML=l[1]+n.replace(Ec,"<$1></$2>")+l[2];for(d=l[0];d--;)e=e.lastChild;!v.leadingWhitespace&&$b.test(n)&&B.push(b.createTextNode($b.exec(n)[0]));if(!v.tbody)for(d=(n="table"===r&&!Gc.test(n)?e.firstChild:"<table>"===l[1]&&!Gc.test(n)?e:0)&&n.childNodes.length;d--;)g.nodeName(k=n.childNodes[d],"tbody")&&!k.childNodes.length&&n.removeChild(k);g.merge(B,e.childNodes);for(e.textContent="";e.firstChild;)e.removeChild(e.firstChild);e=t.lastChild}else B.push(b.createTextNode(n));
e&&t.removeChild(e);v.appendChecked||g.grep(K(B,"input"),rb);for(z=0;n=B[z++];)if(!(c&&-1!==g.inArray(n,c))&&(a=g.contains(n.ownerDocument,n),e=K(t.appendChild(n),"script"),a&&P(e),j))for(d=0;n=e[d++];)Hc.test(n.type||"")&&j.push(n);return t},cleanData:function(a,b){for(var c,d,n,e,r=0,k=g.expando,l=g.cache,h=v.deleteExpando,t=g.event.special;null!=(c=a[r]);r++)if(b||g.acceptData(c))if(e=(n=c[k])&&l[n]){if(e.events)for(d in e.events)t[d]?g.event.remove(c,d):g.removeEvent(c,d,e.handle);l[n]&&(delete l[n],
h?delete c[k]:typeof c.removeAttribute!==ka?c.removeAttribute(k):c[k]=null,j.push(n))}}});g.fn.extend({text:function(a){return Va(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)&&Ya(this,a).appendChild(a)})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||
11===this.nodeType||9===this.nodeType){var b=Ya(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)&&P(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 Va(this,function(a){var f=this[0]||{},b=0,j=this.length;if(void 0===a)return 1===f.nodeType?f.innerHTML.replace(zd,
""):void 0;if("string"===typeof a&&!Bd.test(a)&&(v.htmlSerialize||!Dc.test(a))&&(v.leadingWhitespace||!$b.test(a))&&!ja[(Fc.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ec,"<$1></$2>");try{for(;b<j;b++)f=this[b]||{},1===f.nodeType&&(g.cleanData(K(f,!1)),f.innerHTML=a);f=0}catch(c){}}f&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];this.domManip(arguments,function(b){a=this.parentNode;g.cleanData(K(this));a&&a.replaceChild(b,this)});return a&&(a.length||
a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=r.apply([],a);var j,c,d,n,e=0,k=this.length,l=this,h=k-1,t=a[0],B=g.isFunction(t);if(B||1<k&&"string"===typeof t&&!v.checkClone&&Cd.test(t))return this.each(function(j){var g=l.eq(j);B&&(a[0]=t.call(this,j,g.html()));g.domManip(a,b)});if(k&&(n=g.buildFragment(a,this[0].ownerDocument,!1,this),j=n.firstChild,1===n.childNodes.length&&(n=j),j)){d=g.map(K(n,"script"),Ea);for(c=d.length;e<k;e++)j=n,e!==
h&&(j=g.clone(j,!0,!0),c&&g.merge(d,K(j,"script"))),b.call(this[e],j,e);if(c){n=d[d.length-1].ownerDocument;g.map(d,U);for(e=0;e<c;e++)if(j=d[e],Hc.test(j.type||"")&&!g._data(j,"globalEval")&&g.contains(n,j))j.src?g._evalUrl&&g._evalUrl(j.src):g.globalEval((j.text||j.textContent||j.innerHTML||"").replace(Dd,""))}n=j=null}return this}});g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){g.fn[a]=function(a){for(var f=0,j=[],
c=g(a),d=c.length-1;f<=d;f++)a=f===d?this:this.clone(!0),g(c[f])[b](a),z.apply(j,a.get());return this.pushStack(j)}});var eb,nc={},ob,Cb,ab=y.createElement("div");ab.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";ob=ab.getElementsByTagName("a")[0];ob.style.cssText="float:left;opacity:.5";v.opacity=/^0.5/.test(ob.style.opacity);v.cssFloat=!!ob.style.cssFloat;ab.style.backgroundClip="content-box";ab.cloneNode(!0).style.backgroundClip="";v.clearCloneStyle="content-box"===
ab.style.backgroundClip;ob=ab=null;v.shrinkWrapBlocks=function(){var a,b,j;if(null==Cb){a=y.getElementsByTagName("body")[0];if(!a)return;b=y.createElement("div");j=y.createElement("div");a.appendChild(b).appendChild(j);Cb=!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="<div></div>",j.firstChild.style.width="5px",Cb=3!==j.offsetWidth);
a.removeChild(b)}return Cb};var Ic=/^margin/,sb=RegExp("^("+zb+")(?!px)[a-z%]+$","i"),Ra,Sa,Ed=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ra=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},Sa=function(a,b,j){var c,d,n=a.style;d=(j=j||Ra(a))?j.getPropertyValue(b)||j[b]:void 0;j&&(""===d&&!g.contains(a.ownerDocument,a)&&(d=g.style(a,b)),sb.test(d)&&Ic.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&&(Ra=function(a){return a.currentStyle},Sa=function(a,b,j){var g,c,d,n=a.style;d=(j=j||Ra(a))?j[b]:void 0;null==d&&(n&&n[b])&&(d=n[b]);if(sb.test(d)&&!Ed.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}),Db=!0,Eb=!1,Fb=!0,a.getComputedStyle&&(Eb="1%"!==(a.getComputedStyle(b,null)||{}).top,Db="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width),j.removeChild(f),b=j=null)},pb,Gb,cc,Db,Eb,Fb,
bb=y.createElement("div"),bc="border:0;width:0;height:0;position:absolute;top:0;left:-9999px";bb.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";pb=bb.getElementsByTagName("a")[0];pb.style.cssText="float:left;opacity:.5";v.opacity=/^0.5/.test(pb.style.opacity);v.cssFloat=!!pb.style.cssFloat;bb.style.backgroundClip="content-box";bb.cloneNode(!0).style.backgroundClip="";v.clearCloneStyle="content-box"===bb.style.backgroundClip;pb=bb=null;g.extend(v,{reliableHiddenOffsets:function(){if(null!=
Gb)return Gb;var a,b,j;b=y.createElement("div");var g=y.getElementsByTagName("body")[0];if(g)return b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=y.createElement("div"),a.style.cssText=bc,g.appendChild(a).appendChild(b),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",b=b.getElementsByTagName("td"),b[0].style.cssText="padding:0;margin:0;border:0;display:none",j=0===b[0].offsetHeight,b[0].style.display="",b[1].style.display=
"none",Gb=j&&0===b[0].offsetHeight,g.removeChild(a),Gb},boxSizing:function(){null==cc&&dc();return cc},boxSizingReliable:function(){null==Db&&dc();return Db},pixelPosition:function(){null==Eb&&dc();return Eb},reliableMarginRight:function(){var f,b,j,g;if(null==Fb&&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";Fb=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight);f.removeChild(b)}return Fb}});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,Fd=/opacity\s*=\s*([^)]*)/,Gd=/^(none|table(?!-c[ea]).+)/,Zc=RegExp("^("+
zb+")(.*)$","i"),Hd=RegExp("^([+-])=("+zb+")","i"),Id={position:"absolute",visibility:"hidden",display:"block"},Jc={letterSpacing:0,fontWeight:400},oc=["Webkit","O","Moz","ms"];g.extend({cssHooks:{opacity:{get:function(a,b){if(b){var j=Sa(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":v.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,j,c){if(a&&!(3===a.nodeType||
8===a.nodeType||!a.style)){var d,n,e,r=g.camelCase(b),k=a.style;b=g.cssProps[r]||(g.cssProps[r]=gb(k,r));e=g.cssHooks[b]||g.cssHooks[r];if(void 0!==j){n=typeof j;if("string"===n&&(d=Hd.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[r]&&(j+="px"),!v.clearCloneStyle&&(""===j&&0===b.indexOf("background"))&&(k[b]="inherit"),!e||!("set"in e)||void 0!==(j=e.set(a,j,c)))try{k[b]="",k[b]=j}catch(l){}}else return e&&"get"in e&&void 0!==(d=e.get(a,
!1,c))?d:k[b]}},css:function(a,b,j,c){var d,n;n=g.camelCase(b);b=g.cssProps[n]||(g.cssProps[n]=gb(a.style,n));(n=g.cssHooks[b]||g.cssHooks[n])&&"get"in n&&(d=n.get(a,!0,j));void 0===d&&(d=Sa(a,b,c));"normal"===d&&b in Jc&&(d=Jc[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&&Gd.test(g.css(a,"display"))?g.swap(a,Id,function(){return Z(a,b,j)}):Z(a,b,j)},set:function(a,
f,j){var c=j&&Ra(a);return la(a,f,j?x(a,b,j,v.boxSizing()&&"border-box"===g.css(a,"boxSizing",!1,c),c):0)}}});v.opacity||(g.cssHooks.opacity={get:function(a,b){return Fd.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=fb(v.reliableMarginRight,function(a,b){if(b)return g.swap(a,{display:"inline-block"},Sa,[a,"marginRight"])});g.each({margin:"",padding:"",border:"Width"},function(a,b){g.cssHooks[a+b]={expand:function(j){var c=0,g={};for(j="string"===typeof j?j.split(" "):[j];4>c;c++)g[a+Qa[c]+b]=j[c]||j[c-2]||j[0];return g}};Ic.test(a)||(g.cssHooks[a+b].set=la)});g.fn.extend({css:function(a,b){return Va(this,function(a,
f,b){var j,c={},d=0;if(g.isArray(f)){b=Ra(a);for(j=f.length;d<j;d++)c[f[d]]=g.css(a,f[d],!1,b);return c}return void 0!==b?g.style(a,f,b):g.css(a,f)},a,b,1<arguments.length)},show:function(){return va(this,!0)},hide:function(){return va(this)},toggle:function(a){return"boolean"===typeof a?a?this.show():this.hide():this.each(function(){hb(this)?g(this).show():g(this).hide()})}});g.Tween=L;L.prototype={constructor:L,init:function(a,b,j,c,d,n){this.elem=a;this.prop=j;this.easing=d||"swing";this.options=
b;this.start=this.now=this.cur();this.end=c;this.unit=n||(g.cssNumber[j]?"":"px")},cur:function(){var a=L.propHooks[this.prop];return a&&a.get?a.get(this):L.propHooks._default.get(this)},run:function(a){var b,j=L.propHooks[this.prop];this.pos=this.options.duration?b=g.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):b=a;this.now=(this.end-this.start)*b+this.start;this.options.step&&this.options.step.call(this.elem,this.now,this);j&&j.set?j.set(this):L.propHooks._default.set(this);
return this}};L.prototype.init.prototype=L.prototype;L.propHooks={_default:{get:function(a){if(null!=a.elem[a.prop]&&(!a.elem.style||null==a.elem.style[a.prop]))return a.elem[a.prop];a=g.css(a.elem,a.prop,"");return!a||"auto"===a?0:a},set:function(a){if(g.fx.step[a.prop])g.fx.step[a.prop](a);else a.elem.style&&(null!=a.elem.style[g.cssProps[a.prop]]||g.cssHooks[a.prop])?g.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}};L.propHooks.scrollTop=L.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&
a.elem.parentNode&&(a.elem[a.prop]=a.now)}};g.easing={linear:function(a){return a},swing:function(a){return 0.5-Math.cos(a*Math.PI)/2}};g.fx=L.prototype.init;g.fx.step={};var Za,Hb,Jd=/^(?:toggle|show|hide)$/,Kc=RegExp("^(?:([+-])=|)("+zb+")([a-z%]*)$","i"),Kd=/queueHooks$/,tb=[function(a,b,j){var c,d,n,e,r,k,l=this,h={},t=a.style,B=a.nodeType&&hb(a),z=g._data(a,"fxshow");j.queue||(e=g._queueHooks(a,"fx"),null==e.unqueued&&(e.unqueued=0,r=e.empty.fire,e.empty.fire=function(){e.unqueued||r()}),e.unqueued++,
l.always(function(){l.always(function(){e.unqueued--;g.queue(a,"fx").length||e.empty.fire()})}));if(1===a.nodeType&&("height"in b||"width"in b))j.overflow=[t.overflow,t.overflowX,t.overflowY],d=g.css(a,"display"),k=db(a.nodeName),"none"===d&&(d=k),"inline"===d&&"none"===g.css(a,"float")&&(!v.inlineBlockNeedsLayout||"inline"===k?t.display="inline-block":t.zoom=1);j.overflow&&(t.overflow="hidden",v.shrinkWrapBlocks()||l.always(function(){t.overflow=j.overflow[0];t.overflowX=j.overflow[1];t.overflowY=
j.overflow[2]}));for(c in b)if(d=b[c],Jd.exec(d)){delete b[c];n=n||"toggle"===d;if(d===(B?"hide":"show"))if("show"===d&&z&&void 0!==z[c])B=!0;else continue;h[c]=z&&z[c]||g.style(a,c)}if(!g.isEmptyObject(h))for(c in z?"hidden"in z&&(B=z.hidden):z=g._data(a,"fxshow",{}),n&&(z.hidden=!B),B?g(a).show():l.done(function(){g(a).hide()}),l.done(function(){var b;g._removeData(a,"fxshow");for(b in h)g.style(a,b,h[b])}),h)b=wa(B?z[c]:0,c,l),c in z||(z[c]=b.start,B&&(b.end=b.start,b.start="width"===c||"height"===
c?1:0))}],ib={"*":[function(a,b){var j=this.createTween(a,b),c=j.cur(),d=Kc.exec(b),n=d&&d[3]||(g.cssNumber[a]?"":"px"),e=(g.cssNumber[a]||"px"!==n&&+c)&&Kc.exec(g.css(j.elem,a)),r=1,k=20;if(e&&e[3]!==n){n=n||e[3];d=d||[];e=+c||1;do r=r||".5",e/=r,g.style(j.elem,a,e+n);while(r!==(r=j.cur()/c)&&1!==r&&--k)}d&&(e=j.start=+e||+c||0,j.unit=n,j.end=d[1]?e+(d[1]+1)*d[2]:+d[2]);return j}]};g.Animation=g.extend(jb,{tweener:function(a,b){g.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var j,c=0,d=a.length;c<
d;c++)j=a[c],ib[j]=ib[j]||[],ib[j].unshift(b)},prefilter:function(a,b){b?tb.unshift(a):tb.push(a)}});g.speed=function(a,b,j){var c=a&&"object"===typeof a?g.extend({},a):{complete:j||!j&&b||g.isFunction(a)&&a,duration:a,easing:j&&b||b&&!g.isFunction(b)&&b};c.duration=g.fx.off?0:"number"===typeof c.duration?c.duration:c.duration in g.fx.speeds?g.fx.speeds[c.duration]:g.fx.speeds._default;if(null==c.queue||!0===c.queue)c.queue="fx";c.old=c.complete;c.complete=function(){g.isFunction(c.old)&&c.old.call(this);
c.queue&&g.dequeue(this,c.queue)};return c};g.fn.extend({fadeTo:function(a,b,j,c){return this.filter(hb).css("opacity",0).show().end().animate({opacity:b},a,j,c)},animate:function(a,b,j,c){var d=g.isEmptyObject(a),n=g.speed(b,j,c);b=function(){var b=jb(this,g.extend({},a),n);(d||g._data(this,"finish"))&&b.stop(!0)};b.finish=b;return d||!1===n.queue?this.each(b):this.queue(n.queue,b)},stop:function(a,b,j){var c=function(a){var b=a.stop;delete a.stop;b(j)};"string"!==typeof a&&(j=b,b=a,a=void 0);b&&
!1!==a&&this.queue(a||"fx",[]);return this.each(function(){var b=!0,d=null!=a&&a+"queueHooks",n=g.timers,e=g._data(this);if(d)e[d]&&e[d].stop&&c(e[d]);else for(d in e)e[d]&&(e[d].stop&&Kd.test(d))&&c(e[d]);for(d=n.length;d--;)if(n[d].elem===this&&(null==a||n[d].queue===a))n[d].anim.stop(j),b=!1,n.splice(d,1);(b||!j)&&g.dequeue(this,a)})},finish:function(a){!1!==a&&(a=a||"fx");return this.each(function(){var b,j=g._data(this),c=j[a+"queue"];b=j[a+"queueHooks"];var d=g.timers,n=c?c.length:0;j.finish=
!0;g.queue(this,a,[]);b&&b.stop&&b.stop.call(this,!0);for(b=d.length;b--;)d[b].elem===this&&d[b].queue===a&&(d[b].anim.stop(!0),d.splice(b,1));for(b=0;b<n;b++)c[b]&&c[b].finish&&c[b].finish.call(this);delete j.finish})}});g.each(["toggle","show","hide"],function(a,b){var j=g.fn[b];g.fn[b]=function(a,f,c){return null==a||"boolean"===typeof a?j.apply(this,arguments):this.animate(O(b,!0),a,f,c)}});g.each({slideDown:O("show"),slideUp:O("hide"),slideToggle:O("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},
fadeToggle:{opacity:"toggle"}},function(a,b){g.fn[a]=function(a,f,j){return this.animate(b,a,f,j)}});g.timers=[];g.fx.tick=function(){var a,b=g.timers,j=0;for(Za=g.now();j<b.length;j++)a=b[j],!a()&&b[j]===a&&b.splice(j--,1);b.length||g.fx.stop();Za=void 0};g.fx.timer=function(a){g.timers.push(a);a()?g.fx.start():g.timers.pop()};g.fx.interval=13;g.fx.start=function(){Hb||(Hb=setInterval(g.fx.tick,g.fx.interval))};g.fx.stop=function(){clearInterval(Hb);Hb=null};g.fx.speeds={slow:600,fast:200,_default:400};
g.fn.delay=function(a,b){a=g.fx?g.fx.speeds[a]||a:a;return this.queue(b||"fx",function(b,j){var c=setTimeout(b,a);j.stop=function(){clearTimeout(c)}})};var Ib,Ma,fc,gc,qb=y.createElement("div");qb.setAttribute("className","t");qb.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";Ib=qb.getElementsByTagName("a")[0];fc=y.createElement("select");gc=fc.appendChild(y.createElement("option"));Ma=qb.getElementsByTagName("input")[0];Ib.style.cssText="top:1px";v.getSetAttribute=
"t"!==qb.className;v.style=/top/.test(Ib.getAttribute("style"));v.hrefNormalized="/a"===Ib.getAttribute("href");v.checkOn=!!Ma.value;v.optSelected=gc.selected;v.enctype=!!y.createElement("form").enctype;fc.disabled=!0;v.optDisabled=!gc.disabled;Ma=y.createElement("input");Ma.setAttribute("value","");v.input=""===Ma.getAttribute("value");Ma.value="t";Ma.setAttribute("type","radio");v.radioValue="t"===Ma.value;var Ld=/\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(Ld,""):
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,e=0>c?n:a?c:0;e<n;e++)if(b=j[e],(b.selected||e===c)&&(v.optDisabled?!b.disabled:null===b.getAttribute("disabled"))&&(!b.parentNode.disabled||!g.nodeName(b.parentNode,"optgroup"))){b=g(b).val();if(a)return b;d.push(b)}return d},set:function(a,b){for(var j,c,d=a.options,
n=g.makeArray(b),e=d.length;e--;)if(c=d[e],0<=g.inArray(g.valHooks.option.get(c),n))try{c.selected=j=!0}catch(r){c.scrollHeight}else c.selected=!1;j||(a.selectedIndex=-1);return d}}}});g.each(["radio","checkbox"],function(){g.valHooks[this]={set:function(a,b){if(g.isArray(b))return a.checked=0<=g.inArray(g(a).val(),b)}};v.checkOn||(g.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var cb,Lc,Na=g.expr.attrHandle,hc=/^(?:checked|selected)$/i,Wa=v.getSetAttribute,
Jb=v.input;g.fn.extend({attr:function(a,b){return Va(this,g.attr,a,b,1<arguments.length)},removeAttr:function(a){return this.each(function(){g.removeAttr(this,a)})}});g.extend({attr:function(a,b,j){var c,d,n=a.nodeType;if(a&&!(3===n||8===n||2===n)){if(typeof a.getAttribute===ka)return g.prop(a,b,j);if(1!==n||!g.isXMLDoc(a))b=b.toLowerCase(),c=g.attrHooks[b]||(g.expr.match.bool.test(b)?Lc:cb);if(void 0!==j)if(null===j)g.removeAttr(a,b);else{if(c&&"set"in c&&void 0!==(d=c.set(a,j,b)))return d;a.setAttribute(b,
j+"");return j}else{if(c&&"get"in c&&null!==(d=c.get(a,b)))return d;d=g.find.attr(a,b);return null==d?void 0:d}}},removeAttr:function(a,b){var j,c,d=0,n=b&&b.match(xa);if(n&&1===a.nodeType)for(;j=n[d++];)c=g.propFix[j]||j,g.expr.match.bool.test(j)?Jb&&Wa||!hc.test(j)?a[c]=!1:a[g.camelCase("default-"+j)]=a[c]=!1:g.attr(a,j,""),a.removeAttribute(Wa?j:c)},attrHooks:{type:{set:function(a,b){if(!v.radioValue&&"radio"===b&&g.nodeName(a,"input")){var j=a.value;a.setAttribute("type",b);j&&(a.value=j);return b}}}}});
Lc={set:function(a,b,j){!1===b?g.removeAttr(a,j):Jb&&Wa||!hc.test(j)?a.setAttribute(!Wa&&g.propFix[j]||j,j):a[g.camelCase("default-"+j)]=a[j]=!0;return j}};g.each(g.expr.match.bool.source.match(/\w+/g),function(a,b){var j=Na[b]||g.find.attr;Na[b]=Jb&&Wa||!hc.test(b)?function(a,b,f){var c,g;f||(g=Na[b],Na[b]=c,c=null!=j(a,b,f)?b.toLowerCase():null,Na[b]=g);return c}:function(a,b,f){if(!f)return a[g.camelCase("default-"+b)]?b.toLowerCase():null}});if(!Jb||!Wa)g.attrHooks.value={set:function(a,b,j){if(g.nodeName(a,
"input"))a.defaultValue=b;else return cb&&cb.set(a,b,j)}};Wa||(cb={set:function(a,b,j){var c=a.getAttributeNode(j);c||a.setAttributeNode(c=a.ownerDocument.createAttribute(j));c.value=b+="";if("value"===j||b===a.getAttribute(j))return b}},Na.id=Na.name=Na.coords=function(a,b,j){var c;if(!j)return(c=a.getAttributeNode(b))&&""!==c.value?c.value:null},g.valHooks.button={get:function(a,b){var j=a.getAttributeNode(b);if(j&&j.specified)return j.value},set:cb.set},g.attrHooks.contenteditable={set:function(a,
b,j){cb.set(a,""===b?!1:b,j)}},g.each(["width","height"],function(a,b){g.attrHooks[b]={set:function(a,f){if(""===f)return a.setAttribute(b,"auto"),f}}}));v.style||(g.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var Md=/^(?:input|select|textarea|button|object)$/i,Nd=/^(?:a|area)$/i;g.fn.extend({prop:function(a,b){return Va(this,g.prop,a,b,1<arguments.length)},removeProp:function(a){a=g.propFix[a]||a;return this.each(function(){try{this[a]=
void 0,delete this[a]}catch(b){}})}});g.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,j){var c,d,n;n=a.nodeType;if(a&&!(3===n||8===n||2===n)){if(n=1!==n||!g.isXMLDoc(a))b=g.propFix[b]||b,d=g.propHooks[b];return void 0!==j?d&&"set"in d&&void 0!==(c=d.set(a,j,b))?c:a[b]=j:d&&"get"in d&&null!==(c=d.get(a,b))?c:a[b]}},propHooks:{tabIndex:{get:function(a){var b=g.find.attr(a,"tabindex");return b?parseInt(b,10):Md.test(a.nodeName)||Nd.test(a.nodeName)&&a.href?0:-1}}}});v.hrefNormalized||
g.each(["href","src"],function(a,b){g.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}});v.optSelected||(g.propHooks.selected={get:function(a){if(a=a.parentNode)a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex;return null}});g.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),function(){g.propFix[this.toLowerCase()]=this});v.enctype||(g.propFix.enctype="encoding");var ic=/[\t\r\n\f]/g;g.fn.extend({addClass:function(a){var b,
j,c,d,n,e=0,r=this.length;b="string"===typeof a&&a;if(g.isFunction(a))return this.each(function(b){g(this).addClass(a.call(this,b,this.className))});if(b)for(b=(a||"").match(xa)||[];e<r;e++)if(j=this[e],c=1===j.nodeType&&(j.className?(" "+j.className+" ").replace(ic," "):" ")){for(n=0;d=b[n++];)0>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,e=0,r=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(xa)||[];e<r;e++)if(j=this[e],c=1===j.nodeType&&(j.className?(" "+j.className+" ").replace(ic," "):"")){for(n=0;d=b[n++];)for(;0<=c.indexOf(" "+d+" ");)c=c.replace(" "+d+" "," ");c=a?g.trim(c):"";j.className!==c&&(j.className=c)}return this},toggleClass:function(a,b){var j=typeof a;return"boolean"===typeof b&&"string"===j?b?this.addClass(a):this.removeClass(a):g.isFunction(a)?this.each(function(j){g(this).toggleClass(a.call(this,j,this.className,b),b)}):
this.each(function(){if("string"===j)for(var b,c=0,d=g(this),n=a.match(xa)||[];b=n[c++];)d.hasClass(b)?d.removeClass(b):d.addClass(b);else if(j===ka||"boolean"===j)this.className&&g._data(this,"__className__",this.className),this.className=this.className||!1===a?"":g._data(this,"__className__")||""})},hasClass:function(a){a=" "+a+" ";for(var b=0,j=this.length;b<j;b++)if(1===this[b].nodeType&&0<=(" "+this[b].className+" ").replace(ic," ").indexOf(a))return!0;return!1}});g.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),
function(a,b){g.fn[b]=function(a,f){return 0<arguments.length?this.on(b,null,a,f):this.trigger(b)}});g.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,j){return this.on(a,null,b,j)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,j,c){return this.on(b,a,j,c)},undelegate:function(a,b,j){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",j)}});var jc=g.now(),kc=/\?/,Od=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
g.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var j,c=null,d=g.trim(b+"");return d&&!g.trim(d.replace(Od,function(a,b,f,g){j&&b&&(c=0);if(0===c)return a;j=f||b;c+=!g-!f;return""}))?Function("return "+d)():g.error("Invalid JSON: "+b)};g.parseXML=function(b){var j,c;if(!b||"string"!==typeof b)return null;try{a.DOMParser?(c=new DOMParser,j=c.parseFromString(b,"text/xml")):(j=new ActiveXObject("Microsoft.XMLDOM"),j.async="false",j.loadXML(b))}catch(d){j=void 0}(!j||!j.documentElement||
j.getElementsByTagName("parsererror").length)&&g.error("Invalid XML: "+b);return j};var Xa,Oa,Pd=/#.*$/,Mc=/([?&])_=[^&]*/,Qd=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Rd=/^(?:GET|HEAD)$/,Sd=/^\/\//,Nc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Oc={},Nb={},Pc="*/".concat("*");try{Oa=location.href}catch(be){Oa=y.createElement("a"),Oa.href="",Oa=Oa.href}Xa=Nc.exec(Oa.toLowerCase())||[];g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Oa,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Xa[1]),
global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":g.parseJSON,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?ya(ya(a,
g.ajaxSettings),b):ya(g.ajaxSettings,a)},ajaxPrefilter:kb(Oc),ajaxTransport:kb(Nb),ajax:function(a,b){function j(a,b,f,c){var d,t,p,F;F=b;if(2!==da){da=2;r&&clearTimeout(r);l=void 0;e=c||"";s.readyState=0<a?4:0;c=200<=a&&300>a||304===a;if(f){p=h;for(var w=s,N,ha,G,C,Q=p.contents,A=p.dataTypes;"*"===A[0];)A.shift(),void 0===ha&&(ha=p.mimeType||w.getResponseHeader("Content-Type"));if(ha)for(C in Q)if(Q[C]&&Q[C].test(ha)){A.unshift(C);break}if(A[0]in f)G=A[0];else{for(C in f){if(!A[0]||p.converters[C+
" "+A[0]]){G=C;break}N||(N=C)}G=G||N}G?(G!==A[0]&&A.unshift(G),p=f[G]):p=void 0}a:{f=h;N=p;ha=s;G=c;var K,v,ua,w={},Q=f.dataTypes.slice();if(Q[1])for(v in f.converters)w[v.toLowerCase()]=f.converters[v];for(C=Q.shift();C;)if(f.responseFields[C]&&(ha[f.responseFields[C]]=N),!ua&&(G&&f.dataFilter)&&(N=f.dataFilter(N,f.dataType)),ua=C,C=Q.shift())if("*"===C)C=ua;else if("*"!==ua&&ua!==C){v=w[ua+" "+C]||w["* "+C];if(!v)for(K in w)if(p=K.split(" "),p[1]===C&&(v=w[ua+" "+p[0]]||w["* "+p[0]])){!0===v?v=
w[K]:!0!==w[K]&&(C=p[0],Q.unshift(p[1]));break}if(!0!==v)if(v&&f["throws"])N=v(N);else try{N=v(N)}catch(u){p={state:"parsererror",error:v?u:"No conversion from "+ua+" to "+C};break a}}p={state:"success",data:N}}if(c)h.ifModified&&((F=s.getResponseHeader("Last-Modified"))&&(g.lastModified[n]=F),(F=s.getResponseHeader("etag"))&&(g.etag[n]=F)),204===a||"HEAD"===h.type?F="nocontent":304===a?F="notmodified":(F=p.state,d=p.data,t=p.error,c=!t);else if(t=F,a||!F)F="error",0>a&&(a=0);s.status=a;s.statusText=
(b||F)+"";c?T.resolveWith(B,[d,F,s]):T.rejectWith(B,[s,F,t]);s.statusCode(m);m=void 0;k&&z.trigger(c?"ajaxSuccess":"ajaxError",[s,h,c?d:t]);q.fireWith(B,[s,F]);k&&(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,e,r,k,l,t,h=g.ajaxSetup({},b),B=h.context||h,z=h.context&&(B.nodeType||B.jquery)?g(B):g.event,T=g.Deferred(),q=g.Callbacks("once memory"),m=h.statusCode||{},F={},N={},da=0,ha="canceled",s={readyState:0,getResponseHeader:function(a){var b;
if(2===da){if(!t)for(t={};b=Qd.exec(e);)t[b[1].toLowerCase()]=b[2];b=t[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===da?e:null},setRequestHeader:function(a,b){var j=a.toLowerCase();da||(a=N[j]=N[j]||a,F[a]=b);return this},overrideMimeType:function(a){da||(h.mimeType=a);return this},statusCode:function(a){var b;if(a)if(2>da)for(b in a)m[b]=[m[b],a[b]];else s.always(a[s.status]);return this},abort:function(a){a=a||ha;l&&l.abort(a);j(0,a);return this}};T.promise(s).complete=
q.add;s.success=s.done;s.error=s.fail;h.url=((a||h.url||Oa)+"").replace(Pd,"").replace(Sd,Xa[1]+"//");h.type=b.method||b.type||h.method||h.type;h.dataTypes=g.trim(h.dataType||"*").toLowerCase().match(xa)||[""];null==h.crossDomain&&(c=Nc.exec(h.url.toLowerCase()),h.crossDomain=!(!c||!(c[1]!==Xa[1]||c[2]!==Xa[2]||(c[3]||("http:"===c[1]?"80":"443"))!==(Xa[3]||("http:"===Xa[1]?"80":"443")))));h.data&&(h.processData&&"string"!==typeof h.data)&&(h.data=g.param(h.data,h.traditional));ub(Oc,h,b,s);if(2===
da)return s;(k=h.global)&&0===g.active++&&g.event.trigger("ajaxStart");h.type=h.type.toUpperCase();h.hasContent=!Rd.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=Mc.test(n)?n.replace(Mc,"$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]?", "+Pc+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)s.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(B,s,h)||2===da))return s.abort();ha="abort";for(d in{success:1,error:1,complete:1})s[d](h[d]);if(l=ub(Nb,h,b,s)){s.readyState=1;k&&z.trigger("ajaxSend",[s,h]);h.async&&0<h.timeout&&(r=setTimeout(function(){s.abort("timeout")},
h.timeout));try{da=1,l.send(F,j)}catch(G){if(2>da)j(-1,G);else throw G;}}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||!v.reliableHiddenOffsets()&&"none"===(a.style&&
a.style.display||g.css(a,"display"))};g.expr.filters.visible=function(a){return!g.expr.filters.hidden(a)};var Td=/%20/g,ad=/\[\]$/,Qc=/\r?\n/g,Ud=/^(?:submit|button|image|reset|file)$/i,Vd=/^(?: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)ma(j,a[j],b,d);return c.join("&").replace(Td,"+")};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")&&Vd.test(this.nodeName)&&!Ud.test(a)&&(this.checked||!Mb.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(Qc,"\r\n")}}):{name:b.name,value:j.replace(Qc,"\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?D:function(){return(this.url==y.location||0==this.url.indexOf("http")||!this.isLocal)&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&
D()||D(1)};var Wd=0,Kb={},Lb=g.ajaxSettings.xhr();if(a.ActiveXObject)g(a).on("unload",function(){for(var a in Kb)Kb[a](void 0,!0)});v.cors=!!Lb&&"withCredentials"in Lb;(Lb=v.ajax=!!Lb)&&g.ajaxTransport(function(a){if(!a.crossDomain||v.cors){var b;return{send:function(j,c){var d,n=a.xhr(),e=++Wd;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 r,h,k;if(b&&(d||4===n.readyState))if(delete Kb[e],b=void 0,n.onreadystatechange=g.noop,d)4!==n.readyState&&n.abort();else{k={};r=n.status;"string"===typeof n.responseText&&(k.text=n.responseText);try{h=n.statusText}catch(l){h=""}!r&&a.isLocal&&!a.crossDomain?r=k.text?200:404:1223===r&&(r=204)}k&&c(r,h,k,n.getAllResponseHeaders())};
a.async?4===n.readyState?setTimeout(b):n.onreadystatechange=Kb[e]=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 Rc=[],lc=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",
jsonpCallback:function(){var a=Rc.pop()||g.expando+"_"+jc++;this[a]=!0;return a}});g.ajaxPrefilter("json jsonp",function(b,j,c){var d,n,e,r=!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(r||"jsonp"===b.dataTypes[0])return d=b.jsonpCallback=g.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,r?b[r]=b[r].replace(lc,"$1"+d):!1!==b.jsonp&&(b.url+=(kc.test(b.url)?"&":"?")+b.jsonp+"="+
d),b.converters["script json"]=function(){e||g.error(d+" was not called");return e[0]},b.dataTypes[0]="json",n=a[d],a[d]=function(){e=arguments},c.always(function(){a[d]=n;b[d]&&(b.jsonpCallback=j.jsonpCallback,Rc.push(d));e&&g.isFunction(n)&&n(e[0]);e=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=xc.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 Sc=g.fn.load;g.fn.load=function(a,b,j){if("string"!==typeof a&&Sc)return Sc.apply(this,arguments);var c,d,n,e=this,r=a.indexOf(" ");0<=r&&(c=a.slice(r,a.length),a=a.slice(0,r));g.isFunction(b)?(j=b,b=void 0):b&&"object"===typeof b&&(n="POST");0<e.length&&g.ajax({url:a,type:n,dataType:"html",data:b}).done(function(a){d=arguments;e.html(c?g("<div>").append(g.parseHTML(a)).find(c):a)}).complete(j&&function(a,b){e.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 Tc=a.document.documentElement;g.offset={setOffset:function(a,b,j){var c,d,n,e=g.css(a,"position"),r=g(a),h={};"static"===e&&(a.style.position="relative");n=r.offset();d=g.css(a,"top");c=g.css(a,"left");("absolute"===e||"fixed"===e)&&-1<g.inArray("auto",[d,c])?(c=r.position(),d=c.top,c=c.left):(d=parseFloat(d)||0,c=parseFloat(c)||0);g.isFunction(b)&&(b=b.call(a,j,n));null!=b.top&&(h.top=b.top-n.top+d);null!=b.left&&(h.left=
b.left-n.left+c);"using"in b?b.using.call(a,h):r.css(h)}};g.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){g.offset.setOffset(this,a,b)});var b,j,c={top:0,left:0},d=(j=this[0])&&j.ownerDocument;if(d){b=d.documentElement;if(!g.contains(b,j))return c;typeof j.getBoundingClientRect!==ka&&(c=j.getBoundingClientRect());j=V(d);return{top:c.top+(j.pageYOffset||b.scrollTop)-(b.clientTop||0),left:c.left+(j.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}}},position:function(){if(this[0]){var a,
b,j={top:0,left:0},c=this[0];"fixed"===g.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),g.nodeName(a[0],"html")||(j=a.offset()),j.top+=g.css(a[0],"borderTopWidth",!0),j.left+=g.css(a[0],"borderLeftWidth",!0));return{top:b.top-j.top-g.css(c,"marginTop",!0),left:b.left-j.left-g.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||Tc;a&&!g.nodeName(a,"html")&&"static"===g.css(a,"position");)a=a.offsetParent;return a||
Tc})}});g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var j=/Y/.test(b);g.fn[a]=function(c){return Va(this,function(a,c,f){var d=V(a);if(void 0===f)return d?b in d?d[b]:d.document.documentElement[c]:a[c];d?d.scrollTo(!j?f:g(d).scrollLeft(),j?f:g(d).scrollTop()):a[c]=f},a,c,arguments.length,null)}});g.each(["top","left"],function(a,b){g.cssHooks[b]=fb(v.pixelPosition,function(a,j){if(j)return j=Sa(a,b),sb.test(j)?g(a).position()[b]+"px":j})});g.each({Height:"height",Width:"width"},
function(a,b){g.each({padding:"inner"+a,content:b,"":"outer"+a},function(j,c){g.fn[c]=function(c,d){var n=arguments.length&&(j||"boolean"!==typeof c),e=j||(!0===c||!0===d?"margin":"border");return Va(this,function(b,j,c){return g.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(j=b.documentElement,Math.max(b.body["scroll"+a],j["scroll"+a],b.body["offset"+a],j["offset"+a],j["client"+a])):void 0===c?g.css(b,j,e):g.style(b,j,c,e)},b,n?c:void 0,n,null)}})});g.fn.size=function(){return this.length};
g.fn.andSelf=g.fn.addBack;"function"===typeof define&&define.amd&&define("jquery",[],function(){return g});var Xd=a.jQuery,Yd=a.$;g.noConflict=function(b){a.$===g&&(a.$=Yd);b&&a.jQuery===g&&(a.jQuery=Xd);return g};typeof m===ka&&(a.jQuery=a.$=g);return g});
(function(a){function m(a){try{return a?new window.ActiveXObject("Microsoft.XMLHTTP"):new window.XMLHttpRequest}catch(h){}}a.ajaxSettings.xhr=void 0===window.ActiveXObject?m:function(){return(this.url==document.location||0==this.url.indexOf("http")||!this.isLocal)&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&m()||m(1)};a.ajaxTransport("+script",function(a){var h,e=document.head||jQuery("head")[0]||document.documentElement;return{send:function(k,q){h=document.createElement("script");a.scriptCharset&&
(h.charset=a.scriptCharset);h.src=a.url;h.onload=h.onreadystatechange=function(a,e){if(e||!h.readyState||/loaded|complete/.test(h.readyState))h.onload=h.onreadystatechange=null,h.parentNode&&h.parentNode.removeChild(h),h=null,e||q(200,"success")};e.insertBefore(h,e.firstChild)},abort:function(){if(h)h.onload(void 0,!0)}}});a.extend(a.support,{iecors:!!window.XDomainRequest});a.support.iecors?a.ajaxTransport(function(a){return{send:function(h,e){var k=new window.XDomainRequest;k.onload=function(){e(200,
"OK",{text:k.responseText},{"Content-Type":k.contentType})};a.xhrFields&&(k.onerror=a.xhrFields.error,k.ontimeout=a.xhrFields.timeout);k.open(a.type,a.url);k.send(a.hasContent&&a.data||null)},abort:function(){xdr.abort()}}}):(a.ajaxSetup({accepts:{binary:"text/plain; charset=x-user-defined"},responseFields:{binary:"response"}}),a.ajaxTransport("binary",function(a){var h;return{send:function(e,k){var q=a.xhr();console.log("xhr.open binary async="+a.async+" url="+a.url);q.open(a.type,a.url,a.async);
var m=!1;try{q.hasOwnProperty("responseType")&&(q.responseType="arraybuffer",m=!0)}catch(u){}try{!m&&q.overrideMimeType&&q.overrideMimeType("text/plain; charset=x-user-defined")}catch(b){}!a.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(var c in e)q.setRequestHeader(c,e[c])}catch(d){}q.send(a.hasContent&&a.data||null);h=function(){var b=q.status,c="",d=q.getAllResponseHeaders(),e={};try{if(h&&4===q.readyState){h=void 0;try{e.text="string"===typeof q.responseText?
q.responseText:null}catch(m){}try{e.binary=q.response}catch(s){}try{c=q.statusText}catch(u){c=""}!b&&a.isLocal&&!a.crossDomain?b=e.text?200:404:1223===b&&(b=204);k(b,c,e,d)}}catch(U){alert(U),k(-1,U)}};a.async?4===q.readyState?setTimeout(h):q.onreadystatechange=h:h()},abort:function(){}}}))})(jQuery);
(function(a,m,l,h){function e(e,l){function s(b){a(u).each(function(){self.Jmol&&(0<=l.indexOf("mouseup")||0<=l.indexOf("touchend"))&&Jmol._setMouseOwner(null);var d=a(this);this!==b.target&&!d.has(b.target).length&&d.triggerHandler(l,[b.target,b])})}l=l||e+h;var u=a(),b=e+"."+l+"-special-event";a.event.special[l]={setup:function(){u=u.add(this);1===u.length&&a(m).bind(b,s)},teardown:function(){self.Jmol&&Jmol._setMouseOwner(null);u=u.not(this);0===u.length&&a(m).unbind(b)},add:function(a){var b=
a.handler;a.handler=function(a,c){a.target=c;b.apply(this,arguments)}}}}a.map(l.split(" "),function(a){e(a)});e("focusin","focus"+h);e("focusout","blur"+h)})(jQuery,document,"click mousemove mouseup touchmove touchend","outjsmol");"undefined"==typeof jQuery&&alert("Note -- JSmoljQuery is required for JSmol, but it's not defined.");self.Jmol||(Jmol={});
Jmol._version||(Jmol=function(a){var m=function(a){return{rear:a++,header:a++,main:a++,image:a++,front:a++,fileOpener:a++,coverImage:a++,dialog:a++,menu:a+9E4,console:a+91E3,consoleImage:a+91001,monitorZIndex:a+99999}},m={_version:"$Date: 2018-01-25 16:20:18 -0600 (Thu, 25 Jan 2018) $",_alertNoBinary:!0,_allowedJmolSize:[25,2048,300],_appletCssClass:"",_appletCssText:"",_fileCache:null,_jarFile:null,_j2sPath:null,_use:null,_j2sLoadMonitorOpacity:90,_applets:{},_asynchronous:!0,_ajaxQueue:[],_persistentMenu:!1,
_getZOrders:m,_z:m(Jmol.z||9E3),_debugCode:!0,_debugCore:!1,db:{_databasePrefixes:"$=:",_fileLoadScript:";if (_loadScript = '' && defaultLoadScript == '' && _filetype == 'Pdb') { select protein or nucleic;cartoons Only;color structure; select * };",_nciLoadScript:";n = ({molecule=1}.length < {molecule=2}.length ? 2 : 1); select molecule=n;display selected;center selected;",_pubChemLoadScript:"",_DirectDatabaseCalls:{"cactus.nci.nih.gov":null,".x3dna.org":null,"rruff.geo.arizona.edu":null,".rcsb.org":null,
"ftp.wwpdb.org":null,"pdbe.org":null,"materialsproject.org":null,".ebi.ac.uk":null,"pubchem.ncbi.nlm.nih.gov":null,"www.nmrdb.org/tools/jmol/predict.php":null,$:"https://cactus.nci.nih.gov/chemical/structure/%FILENCI/file?format=sdf&get3d=True",$$:"https://cactus.nci.nih.gov/chemical/structure/%FILENCI/file?format=sdf","=":"https://files.rcsb.org/download/%FILE.pdb","*":"https://www.ebi.ac.uk/pdbe/entry-files/download/%FILE.cif","==":"https://files.rcsb.org/ligands/download/%FILE.cif",":":"https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/%FILE/SDF?record_type=3d"},
_restQueryUrl:"http://www.rcsb.org/pdb/rest/search",_restQueryXml:"<orgPdbQuery><queryType>org.pdb.query.simple.AdvancedKeywordQuery</queryType><description>Text Search</description><keywords>QUERY</keywords></orgPdbQuery>",_restReportUrl:"http://www.pdb.org/pdb/rest/customReport?pdbids=IDLIST&customReportColumns=structureId,structureTitle"},_debugAlert:!1,_document:a,_isXHTML:!1,_lastAppletID:null,_mousePageX:null,_mouseOwner:null,_serverUrl:"https://your.server.here/jsmol.php",_syncId:(""+Math.random()).substring(3),
_touching:!1,_XhtmlElement:null,_XhtmlAppendChild:!1};a=a.location.href.toLowerCase();m._debugCore=0<=a.indexOf("j2sdebugcore");m._httpProto=0==a.indexOf("https")?"https://":"http://";m._isFile=0==a.indexOf("file:");m._isFile&&$.ajaxSetup({mimeType:"text/plain"});m._ajaxTestSite=m._httpProto+"google.com";a=m._isFile||0==a.indexOf("http://localhost")||0==a.indexOf("http://127.");m._tracker=!a&&"https://chemapps.stolaf.edu/jmol/JmolTracker.php?id=UA-45940799-1";m._isChrome=0<=navigator.userAgent.toLowerCase().indexOf("chrome");
m._isSafari=!m._isChrome&&0<=navigator.userAgent.toLowerCase().indexOf("safari");m._isMsie=void 0!==window.ActiveXObject;m._isEdge=0<=navigator.userAgent.indexOf("Edge/");m._useDataURI=!m._isSafari&&!m._isMsie&&!m._isEdge;window.requestAnimationFrame||(window.requestAnimationFrame=window.setTimeout);for(var l in Jmol)m[l]=Jmol[l];return m}(document,Jmol));
(function(a,m){a.__$=m;m(document).ready(function(){a._document=null});a.$=function(a,c){null==a&&alert(c+arguments.callee.caller.toString());return m(c?"#"+a._id+"_"+c:a)};a._$=function(a){return"string"==typeof a?m("#"+a):a};a.$ajax=function(b){a._ajaxCall=b.url;b.cache="NO"!=b.cache;b.url=a._fixProtocol(b.url);return m.ajax(b)};a._fixProtocol=function(b){0<=b.indexOf("get3d=True")&&(b=b.replace(/get3d\=True/,"get3d=true"));return 0==b.indexOf("http://www.rcsb.org/pdb/files/")&&0>b.indexOf("/ligand/")?
"http://files.rcsb.org/view/"+b.substring(30).replace(/\.gz/,""):0==b.indexOf("http://")&&("https://"==a._httpProto||0<b.indexOf(".gov/")||0==b.indexOf("http://www.materialsproject"))?"https"+b.substring(4):b};a._getNCIInfo=function(b,c){return a._getFileData("https://cactus.nci.nih.gov/chemical/structure/"+b+"/"+("name"==c?"names":c))};a.$appEvent=function(b,c,d,e){b=a.$(b,c);b.off(d)&&e&&b.on(d,e)};a.$resize=function(a){return m(window).resize(a)};a.$after=function(a,c){return m(a).after(c)};a.$append=
function(a,c){return m(a).append(c)};a.$bind=function(a,c,d){return d?m(a).bind(c,d):m(a).unbind(c)};a.$closest=function(a,c){return m(a).closest(c)};a.$get=function(a,c){return m(a).get(c)};a.$documentOff=function(a,c){return m(document).off(a,"#"+c)};a.$documentOn=function(a,c,d){return m(document).on(a,"#"+c,d)};a.$getAncestorDiv=function(a,c){return m("div."+c+":has(#"+a+")")[0]};a.$supportsIECrossDomainScripting=function(){return m.support.iecors};a.$attr=function(b,c,d){return a._$(b).attr(c,
d)};a.$css=function(b,c){return a._$(b).css(c)};a.$find=function(b,c){return a._$(b).find(c)};a.$focus=function(b){return a._$(b).focus()};a.$html=function(b,c){return a._$(b).html(c)};a.$offset=function(b){return a._$(b).offset()};a.$windowOn=function(a,c){return m(window).on(a,c)};a.$prop=function(b,c,d){var e=a._$(b);return 3==arguments.length?e.prop(c,d):e.prop(c)};a.$remove=function(b){return a._$(b).remove()};a.$scrollTo=function(b,c){var d=a._$(b);return d.scrollTop(0>c?d[0].scrollHeight:c)};
a.$setEnabled=function(b,c){return a._$(b).attr("disabled",c?null:"disabled")};a.$getSize=function(b){b=a._$(b);return[b.width(),b.height()]};a.$setSize=function(b,c,d){return a._$(b).width(c).height(d)};a.$is=function(b,c){return a._$(b).is(c)};a.$setVisible=function(b,c){var d=a._$(b);return c?d.show():d.hide()};a.$submit=function(b){return a._$(b).submit()};a.$val=function(b,c){var d=a._$(b);return 1==arguments.length?d.val():d.val(c)};a._clearVars=function(){delete jQuery;delete m;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,h=window,e={};e.ua=navigator.userAgent.toLowerCase();var k;a:{k=["linux","unix","mac","win"];for(var q=k.length;q--;)if(-1!=e.ua.indexOf(k[q])){k=k[q];break a}k="unknown"}e.os=k;e.browser=function(){for(var a=e.ua,c="konqueror webkit omniweb opera webtv icab msie mozilla".split(" "),d=0;d<c.length;d++)if(0<=a.indexOf(c[d]))return c[d];return"unknown"};e.browserName=e.browser();
e.browserVersion=parseFloat(e.ua.substring(e.ua.indexOf(e.browserName)+e.browserName.length+1));e.supportsXhr2=function(){return m.support.cors||m.support.iecors};e.allowDestroy="msie"!=e.browserName;e.allowHTML5="msie"!=e.browserName||0>navigator.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=h.WebGLRenderingContext&&
((b=l.createElement("canvas")).getContext("webgl")||b.getContext("experimental-webgl"))?1:-1}return 0<a.featureDetection._webGLtest};e.supportsLocalization=function(){for(var a=l.getElementsByTagName("meta"),c=a.length;0<=--c;)if(0<=a[c].outerHTML.toLowerCase().indexOf("utf-8"))return!0;return!1};e.supportsJava=function(){a.featureDetection._javaEnabled||(a.featureDetection._javaEnabled=a._isMsie?navigator.javaEnabled()?1:-1:navigator.javaEnabled()&&(!navigator.mimeTypes||navigator.mimeTypes["application/x-java-applet"])?
1:-1);return 0<a.featureDetection._javaEnabled};e.compliantBrowser=function(){var a=!!l.getElementById,c=e.os;if("opera"==e.browserName&&7.54>=e.browserVersion&&"mac"==c||"webkit"==e.browserName&&125.12>e.browserVersion||"msie"==e.browserName&&"mac"==c||"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=h.File&&h.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 c='<input type="text" id="ID_query" onfocus="jQuery(this).select()" onkeypress="if(13==event.which){Jmol._applets[\'ID\']._search();return false}" size="32" value="" />',d='<button id="ID_submit" onclick="Jmol._applets[\'ID\']._search()">Search</button></nobr>';1==a._grabberOptions.length?(c="<nobr>"+c+'<span style="display:none">',d="</span>"+d):c+="<br /><nobr>";for(var c=c+'<select id="ID_select">',e=0;e<a._grabberOptions.length;e++)var h=a._grabberOptions[e],
c=c+('<option value="'+h[0]+'" '+(0==e?"selected":"")+">"+h[1]+"</option>");c=(c+"</select>"+d).replace(/ID/g,b._id);return"<br />"+c};a._getScriptForDatabase=function(b){return"$"==b?a.db._nciLoadScript:":"==b?a.db._pubChemLoadScript:a.db._fileLoadScript};a._setInfo=function(a,c,d){var e=[],h="";if(0==d.indexOf("ERROR"))h=d;else switch(c){case "=":c=d.split("<dimStructure.structureId>");e=["<table>"];for(d=1;d<c.length;d++)e.push('<tr><td valign=top><a href="javascript:Jmol.search('+a._id+",'="+
c[d].substring(0,4)+"')\">"+c[d].substring(0,4)+"</a></td>"),e.push("<td>"+c[d].split("Title>")[1].split("</")[0]+"</td></tr>");e.push("</table>");h=c.length-1+" matches";break;case "$":case ":":break;default:return}a._infoHeader=h;a._info=e.join("");a._showInfo(!0)};a._loadSuccess=function(b,c){c&&(a._ajaxDone(),c(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,c){if(c&&!a.featureDetection.supportsXhr2())return b;var d=2,e=b.substring(0,d),h=a.db._DirectDatabaseCalls[e]||a.db._DirectDatabaseCalls[e=b.substring(0,--d)];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(d))):
b="cid/"+b.substring(1)):b=encodeURIComponent(b.substring(d)),0<=b.indexOf(".mmtf")?b="https://mmtf.rcsb.org/v1.0/full/"+b.replace(/\.mmtf/,""):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,c,d,e,h,k){b="?call=getRawDataFromDatabase&database="+b+(0<=c.indexOf("?POST?")?"?POST?":"")+"&query="+encodeURIComponent(c)+(h?"&encoding=base64":"")+(k?"":"&script="+encodeURIComponent(a._getScriptForDatabase(b)));
return a._contactServer(b,d,e)};a._checkFileName=function(b,c,d){a._isDatabaseCall(c)&&(d&&a._setQueryTerm(b,c),c=a._getDirectDatabaseCall(c,!0),a._isDatabaseCall(c)&&(c=a._getDirectDatabaseCall(c,!1),d&&(d[0]=!0)));return c};a._checkCache=function(b,c,d){if(b._cacheFiles&&a._fileCache&&!c.endsWith(".js")){if(b=a._fileCache[c])return System.out.println("using "+b.length+" bytes of cached data for "+c),d(b),null;d=function(b,c){d(a._fileCache[b]=c)}}return d};a._playAudio=function(a){var c=document.createElement("audio");
c.controls="true";c.src=a;c.play()};a._loadFileData=function(b,c,d,e){var h=[];c=a._checkFileName(b,c,h);d=a._checkCache(b,c,d);h[0]?a._getRawDataFromServer("_",c,d,e):(b={type:"GET",dataType:"text",url:c,async:a._asynchronous,success:function(b){a._loadSuccess(b,d)},error:function(){a._loadError(e)}},a._checkAjaxPost(b),a._ajax(b))};a._getInfoFromDatabase=function(b,c,d){if("===="==c){var e=a.db._restQueryXml.replace(/QUERY/,d),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,c,d,e)},error:function(){a._loadError(null)},async:a._asynchronous};return a._ajax(e)}d="?call=getInfoFromDatabase&database="+c+"&query="+encodeURIComponent(d);return a._contactServer(d,function(d){a._setInfo(b,c,d)})};a._extractInfoFromRCSB=function(b,c,d,e){var h=e.length/5;if(0!=h&&4==d.length&&1!=h){d=d.toUpperCase();var k=e.indexOf(d);0<k&&0<="123456789".indexOf(d.substring(0,
1))&&(e=d+","+e.substring(0,k)+e.substring(k+5));50<h&&(e=e.substring(0,250));e=e.replace(/\n/g,",");e=a._restReportUrl.replace(/IDLIST/,e);a._loadFileData(b,e,function(d){a._setInfo(b,c,d)})}};a._checkAjaxPost=function(a){var c=a.url.indexOf("?POST?");0<c&&(a.data=a.url.substring(c+6),a.url=a.url.substring(0,c),a.type="POST",a.contentType="application/x-www-form-urlencoded")};a._contactServer=function(b,c,d){b={dataType:"text",type:"GET",url:a._serverUrl+b,success:function(b){a._loadSuccess(b,c)},
error:function(){a._loadError(d)},async:c?a._asynchronous:!1};a._checkAjaxPost(b);return a._ajax(b)};a._setQueryTerm=function(b,c){if(c&&b._hasOptions&&"http://"!=c.substring(0,7)){if(a._isDatabaseCall(c)){var d=c.substring(0,1);c=c.substring(1);c.substring(0,1)==d&&0<="=$".indexOf(d)&&(c=c.substring(1));var e=a._getElement(b,"select");if(e&&e.options)for(var h=0;h<e.options.length;h++)e[h].value==d&&(e[h].selected=!0)}a.$val(a.$(b,"query"),c)}};a._search=function(b,c,d){1<arguments.length||(c=null);
a._setQueryTerm(b,c);c||(c=a.$val(a.$(b,"query")));0==c.indexOf("!")?b._script(c.substring(1)):(c&&(c=c.replace(/\"/g,"")),b._showInfo(!1),a._searchMol(b,c,d,!0))};a._searchMol=function(b,c,d,e){var h;a._isDatabaseCall(c)?(h=c.substring(0,1),c=c.substring(1)):h=b._hasOptions?a.$val(a.$(b,"select")):"$";"="==h&&3==c.length&&(c="="+c);var k=h+c;if(c&&!(0>k.indexOf("?")&&k==b._thisJmolModel)){b._thisJmolModel=k;var l;e&&null!=b._viewSet&&null!=(l=a.View.__findView(b._viewSet,{chemID:k}))?a.View.__setView(l,
b,!1):("$"==h||":"==h?b._jmolFileType="MOL":"="==h&&(b._jmolFileType="PDB"),b._searchDatabase(c,h,d))}};a._searchDatabase=function(b,c,d,e){b._showInfo(!1);return 0<=c.indexOf("?")?(a._getInfoFromDatabase(b,d,c.split("?")[0]),!0):a.db._DirectDatabaseCalls[d]?(b._loadFile(d+c,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 c=new window.XMLHttpRequest;
c.open("text",a._ajaxTestSite,!1);c.hasOwnProperty("responseType")?c.responseType="arraybuffer":c.overrideMimeType&&c.overrideMimeType("text/plain; charset=x-user-defined")}catch(d){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="mmtf .gz .bz2 .jpg .gif .png .zip .jmol .bin .smol .spartan .pmb .mrc .map .ccp4 .dn6 .delphi .omap .pse .dcd .uk/pdbe/densities/".split(" ");
a._isBinaryUrl=function(b){for(var c=a._binaryTypes.length;0<=--c;)if(0<=b.indexOf(a._binaryTypes[c]))return!0;return!1};a._getFileData=function(b,c,d){var e=a._isBinaryUrl(b),h=0<=b.indexOf(".gz")&&0<=b.indexOf("rcsb.org");h&&(b=b.replace(/\.gz/,""),e=!1);var h=e&&!c&&!a._canSyncBinary(h),k=0<=b.indexOf("?POST?");0==b.indexOf("file:/")&&0!=b.indexOf("file:///")&&(b="file://"+b.substring(5));var l=0>b.indexOf("://")||0==b.indexOf(document.location.protocol)&&0<=b.indexOf(document.location.host),q=
"https://"==a._httpProto&&0==b.indexOf("http://"),m=a._isDirectCall(b);!m&&0<=b.indexOf("?ALLOWSORIGIN?")&&(m=!0,b=b.replace(/\?ALLOWSORIGIN\?/,""));var s=!l&&a.$supportsIECrossDomainScripting(),u=null;if(q||h||!l&&!m||!c&&s)u=a._getRawDataFromServer("_",b,c,c,h,!0);else{b=b.replace(/file:\/\/\/\//,"file://");var P={dataType:e?"binary":"text",async:!!c};k?(P.type="POST",P.url=b.split("?POST?")[0],P.data=b.split("?POST?")[1]):(P.type="GET",P.url=b);c&&(P.success=function(){c(a._xhrReturn(P.xhr))},
P.error=function(){c(P.xhr.statusText)});P.xhr=a.$ajax(P);c||(u=a._xhrReturn(P.xhr))}if(!d)return u;null==u&&(u="",e=!1);e&&(e=a._canSyncBinary(!0));return e?a._strToBytes(u):JU.SB.newS(u)};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){if(0<=b.indexOf("?ALLOWSORIGIN?"))return!0;for(var c in a.db._DirectDatabaseCalls)if(0<=c.indexOf(".")&&0<=b.indexOf(c))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 c=a.substring(0,1);if("$"==c||":"==c)return"MOL";if("="==c)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,c){return b&&b._z&&b._z[c]||a._z[c]};a._incrZ=function(b,c){return b&&b._z&&++b._z[c]||++a._z[c]};a._hideLocalFileReader=function(b){b._localReader&&
a.$setVisible(b._localReader,!1);b._readingLocal=!1;a._setCursor(b,0)};a.loadFileFromDialog=function(b){a._loadFileAsynchronously(null,b,null,null)};a._loadFileAsynchronously=function(b,c,d,e){if(d&&0!=d.indexOf("?")){var h=d;d=a._checkFileName(c,d);var k=function(k){a._setData(b,d,h,k,e,c)},k=a._checkCache(c,d,k);0<=d.indexOf("|")&&(d=d.split("|")[0]);return null==k?null:a._getFileData(d,k)}if(!a.featureDetection.hasFileReader)return b?b.setData("Local file reading is not enabled in your browser",
null,null,e,c):alert("Local file reading is not enabled in your browser");c._localReader||(k='<div id="ID" style="z-index:'+a._getZ(c,"fileOpener")+';position:absolute;background:#E0E0E0;left:10px;top:10px"><div style="margin:5px 5px 5px 5px;"><button id="ID_loadurl">URL</button><input type="file" id="ID_files" /><button id="ID_loadfile">load</button><button id="ID_cancel">cancel</button></div><div>',a.$after("#"+c._id+"_appletdiv",k.replace(/ID/g,c._id+"_localReader")),c._localReader=a.$(c,"localReader"));
a.$appEvent(c,"localReader_loadurl","click");a.$appEvent(c,"localReader_loadurl","click",function(){var b=prompt("Enter a URL");b&&(a._hideLocalFileReader(c,0),a._setData(null,b,b,null,e,c))});a.$appEvent(c,"localReader_loadfile","click");a.$appEvent(c,"localReader_loadfile","click",function(){var d=a.$(c,"localReader_files")[0].files[0],h=new FileReader;h.onloadend=function(h){h.target.readyState==FileReader.DONE&&(a._hideLocalFileReader(c,0),a._setData(b,d.name,d.name,h.target.result,e,c))};try{h.readAsArrayBuffer(d)}catch(k){alert("You must select a file first.")}});
a.$appEvent(c,"localReader_cancel","click");a.$appEvent(c,"localReader_cancel","click",function(){a._hideLocalFileReader(c);b&&b.setData("#CANCELED#",null,null,e,c)});a.$setVisible(c._localReader,!0);c._readingLocal=!0};a._setData=function(b,c,d,e,h,k){e&&(e=a._strToBytes(e));null!=e&&(null==b||0<=c.indexOf(".jdx"))&&a.Cache.put("cache://"+c,e);null==b?k._applet.openFileAsyncSpecial(null==e?c:"cache://"+c,1):b.setData(c,d,e,h)};a._doAjax=function(b,c,d){b=b.toString();if(null!=d)return a._saveFile(b,
d);c&&(b+="?POST?"+c);return a._getFileData(b,null,!0)};a._saveFile=function(b,c,d,e){if(a._localFileSaveFunction&&a._localFileSaveFunction(b,c))return"OK";b=b.substring(b.lastIndexOf("/")+1);d||(d=0<=b.indexOf(".pdf")?"application/pdf":0<=b.indexOf(".png")?"image/png":0<=b.indexOf(".gif")?"image/gif":0<=b.indexOf(".jpg")?"image/jpg":"");c=(JU?JU:J.util).Base64.getBase64("string"==typeof c?c.getBytes("UTF-8"):c).toString();e||(e="base64");var h=a._serverUrl;h&&0<=h.indexOf("your.server")&&(h="");
a._useDataURI||!h?(e=document.createElement("a"),e.href="data:"+d+";base64,"+c,e.type=d||"text/plain;charset=utf-8",e.download=b,e.target="_blank",m("body").append(e),e.click(),e.remove()):(a._formdiv||(a.$after("body",'<div id="__jsmolformdiv__" style="display:none">\t\t\t\t\t\t<form id="__jsmolform__" method="post" target="_blank" action="">\t\t\t\t\t\t<input name="call" value="saveFile"/>\t\t\t\t\t\t<input id="__jsmolmimetype__" name="mimetype" value=""/>\t\t\t\t\t\t<input id="__jsmolencoding__" name="encoding" value=""/>\t\t\t\t\t\t<input id="__jsmolfilename__" name="filename" value=""/>\t\t\t\t\t\t<textarea id="__jsmoldata__" name="data"></textarea>\t\t\t\t\t\t</form>\t\t\t\t\t\t</div>'),
a._formdiv="__jsmolform__"),a.$attr(a._formdiv,"action",h+"?"+(new Date).getMilliseconds()),a.$val("__jsmoldata__",c),a.$val("__jsmolfilename__",b),a.$val("__jsmolmimetype__",d),a.$val("__jsmolencoding__",e),a.$submit("__jsmolform__"),a.$val("__jsmoldata__",""),a.$val("__jsmolfilename__",""));return"OK"};a._strToBytes=function(a){if(Clazz.instanceOf(a,self.ArrayBuffer))return Clazz.newByteArray(-1,a);for(var c=Clazz.newByteArray(a.length,0),d=a.length;0<=--d;)c[d]=a.charCodeAt(d)&255;return c};a._setConsoleDiv=
function(a){self.Clazz&&Clazz.setConsoleDiv(a)};a._registerApplet=function(b,c){return window[b]=a._applets[b]=a._applets[b+"__"+a._syncId+"__"]=c};a._readyCallback=function(b,c,d,e,h){b=b.split("_object")[0];var k=a._applets[b];if(d=d.booleanValue?d.booleanValue():d)k._appletPanel=h||e,k._applet=e;a._track(k)._readyCallback(b,c,d)};a._getWrapper=function(b,c){var d;if(c){var e="";if(b._coverImage)var e=' onclick="Jmol.coverApplet(ID, false)" title="'+b._coverTitle+'"',h='<image id="ID_coverclickgo" src="'+
b._makeLiveImage+'" style="width:25px;height:25px;position:absolute;bottom:10px;left:10px;z-index:'+a._getZ(b,"coverImage")+';opacity:0.5;"'+e+" />",e='<div id="ID_coverdiv" style="background-color:red;z-index:'+a._getZ(b,"coverImage")+';width:100%;height:100%;display:inline;position:absolute;top:0px;left:0px"><image id="ID_coverimage" src="'+b._coverImage+'" style="width:100%;height:100%"'+e+"/>"+h+"</div>";h=b._isJava?"":'<image id="ID_waitimage" src="'+b._j2sPath+'/img/cursor_wait.gif" style="display:none;position:absolute;bottom:10px;left:10px;z-index:'+
a._getZ(b,"coverImage")+';" />';d=a._appletCssText.replace(/\'/g,'"');var k=b._getSpinner&&b._getSpinner();b._spinner=k=!k||"none"==k?"":"background-image:url("+k+"); background-repeat:no-repeat; background-position:center;";d=k+(0<=d.indexOf('style="')?d.split('style="')[1]:'" '+d);d='...<div id="ID_appletinfotablediv" style="width:Wpx;height:Hpx;position:relative;font-size:14px;text-align:left">IMG WAIT......<div id="ID_appletdiv" style="z-index:'+a._getZ(b,"header")+";width:100%;height:100%;position:absolute;top:0px;left:0px;"+
d+">";var k=b._height,l=b._width;if("string"!==typeof k||0>k.indexOf("%"))k+="px";if("string"!==typeof l||0>l.indexOf("%"))l+="px";d=d.replace(/IMG/,e).replace(/WAIT/,h).replace(/Hpx/g,k).replace(/Wpx/g,l)}else d='......</div>......<div id="ID_2dappletdiv" style="position:absolute;width:100%;height:100%;overflow:hidden;display:none"></div>......<div id="ID_infotablediv" style="width:100%;height:100%;position:absolute;top:0px;left:0px">.........<div id="ID_infoheaderdiv" style="height:20px;width:100%;background:yellow;display:none"><span id="ID_infoheaderspan"></span><span id="ID_infocheckboxspan" style="position:absolute;text-align:right;right:1px;"><a href="javascript:Jmol.showInfo(ID,false)">[x]</a></span></div>.........<div id="ID_infodiv" style="position:absolute;top:20px;bottom:0px;width:100%;height:100%;overflow:auto"></div>......</div>...</div>';
return d.replace(/\.\.\./g,"").replace(/[\n\r]/g,"").replace(/ID/g,b._id)};a._hideLoadingSpinner=function(b){b._spinner&&a.$css(a.$(b,"appletdiv"),{"background-image":""})};a._documentWrite=function(b){if(a._document){if(a._isXHTML&&!a._XhtmlElement){var c=document.getElementsByTagName("script");a._XhtmlElement=c.item(c.length-1);a._XhtmlAppendChild=!1}a._XhtmlElement?a._domWrite(b):a._document.write(b)}return b};a._domWrite=function(b){for(var c=[0];c[0]<b.length;){var d=a._getDomElement(b,c);if(!d)break;
a._XhtmlAppendChild?a._XhtmlElement.appendChild(d):a._XhtmlElement.parentNode.insertBefore(d,_jmol.XhtmlElement)}};a._getDomElement=function(a,c){var d=document.createElement("span");d.innerHTML=a;c[0]=a.length;return d};a._setObject=function(b,c,d){b._id=c;b.__Info={};d.z&&d.zIndexBase&&(a._z=a._getZOrders(d.zIndexBase));for(var e in d)b.__Info[e]=d[e];(b._z=d.z)||d.zIndexBase&&(b._z=b.__Info.z=a._getZOrders(d.zIndexBase));b._width=d.width;b._height=d.height;b._noscript=!b._isJava&&d.noscript;b._console=
d.console;b._cacheFiles=!!d.cacheFiles;b._viewSet=null==d.viewSet||b._isJava?null:"Set"+d.viewSet;null!=b._viewSet&&(a.View.__init(b),b._currentView=null);!a._fileCache&&b._cacheFiles&&(a._fileCache={});b._console||(b._console=b._id+"_infodiv");"none"==b._console&&(b._console=null);b._color=d.color?d.color.replace(/0x/,"#"):"#FFFFFF";b._disableInitialConsole=d.disableInitialConsole;b._noMonitor=d.disableJ2SLoadMonitor;a._j2sPath&&(d.j2sPath=a._j2sPath);b._j2sPath=d.j2sPath;b._coverImage=d.coverImage;
b._makeLiveImage=d.makeLiveImage||d.j2sPath+"/img/play_make_live.jpg";b._isCovered=!!b._coverImage;b._deferApplet=d.deferApplet||b._isCovered&&b._isJava;b._deferUncover=d.deferUncover&&!b._isJava;b._coverScript=d.coverScript;b._coverTitle=d.coverTitle;b._coverTitle||(b._coverTitle=b._deferApplet?"activate 3D model":"3D model is loading...");b._containerWidth=b._width+(b._width==parseFloat(b._width)?"px":"");b._containerHeight=b._height+(b._height==parseFloat(b._height)?"px":"");b._info="";b._infoHeader=
b._jmolType+' "'+b._id+'"';b._hasOptions=d.addSelectionOptions;b._defaultModel=d.defaultModel;b._readyScript=d.script?d.script:"";b._readyFunction=d.readyFunction;b._coverImage&&!b._deferApplet&&(b._readyScript+=";javascript "+c+"._displayCoverImage(false)");b._src=d.src};a._addDefaultInfo=function(b,c){for(var d in c)"undefined"==typeof b[d]&&(b[d]=c[d]);a._use&&(b.use=a._use);0<=b.use.indexOf("SIGNED")&&(0>b.jarFile.indexOf("Signed")&&(b.jarFile=b.jarFile.replace(/Applet/,"AppletSigned")),b.use=
b.use.replace(/SIGNED/,"JAVA"),b.isSigned=!0)};a._syncedApplets=[];a._syncedCommands=[];a._syncedReady=[];a._syncReady=!1;a._isJmolJSVSync=!1;a._setReady=function(b){a._syncedReady[b]=1;for(var c=0,d=0;d<a._syncedApplets.length;d++){if(a._syncedApplets[d]==b._id)a._syncedApplets[d]=b,a._syncedReady[d]=1;else if(!a._syncedReady[d])continue;c++}c==a._syncedApplets.length&&a._setSyncReady()};a._setDestroy=function(b){a.featureDetection.allowDestroy&&a.$windowOn("beforeunload",function(){a._destroy(b)})};
a._destroy=function(b){try{b._appletPanel&&b._appletPanel.destroy();b._applet=null;a._unsetMouse(b._canvas);b._canvas=null;for(var c=0,d=0;d<a._syncedApplets.length;d++)a._syncedApplets[d]==b&&(a._syncedApplets[d]=null),a._syncedApplets[d]&&c++;0<c||a._clearVars()}catch(e){}};a._setSyncReady=function(){a._syncReady=!0;for(var b="",c=0;c<a._syncedApplets.length;c++)a._syncedCommands[c]&&(b+="Jmol.script(Jmol._syncedApplets["+c+"], Jmol._syncedCommands["+c+"]);");setTimeout(b,50)};a._mySyncCallback=
function(b,c){app=a._applets[b];if(app._viewSet)a.View.updateFromSync(app,c);else{if(!a._syncReady||!a._isJmolJSVSync)return 1;for(var d=0;d<a._syncedApplets.length;d++)0<=c.indexOf(a._syncedApplets[d]._syncKeyword)&&a._syncedApplets[d]._syncScript(c);return 0}};a._getElement=function(a,c){return document.getElementById(a._id+"_"+c)||{}};a._evalJSON=function(a,c){a+="";if(!a)return[];if("{"!=a.charAt(0))return 0<=a.indexOf(" | ")&&(a=a.replace(/\ \|\ /g,"\n")),a;var d=(new Function("return "+a))();
return!d?null:c&&void 0!=d[c]?d[c]:d};a._sortMessages=function(a){function c(a,b){return a[0]<b[0]?1:a[0]>b[0]?-1:0}if(!a||"object"!=typeof a)return[];for(var d=[],e=a.length-1;0<=e;e--)for(var h=0,k=a[e].length;h<k;h++)d[d.length]=a[e][h];if(0!=d.length)return d=d.sort(c)};a._setMouseOwner=function(b,c){null==b||c?a._mouseOwner=b:a._mouseOwner==b&&(a._mouseOwner=null)};a._jsGetMouseModifiers=function(a){var c=0;switch(a.button){case 0:c=16;break;case 1:c=8;break;case 2:c=4}a.shiftKey&&(c+=1);a.altKey&&
(c+=8);a.ctrlKey&&(c+=2);return c};a._jsGetXY=function(b,c){if(!b.applet._ready||a._touching&&0>c.type.indexOf("touch"))return!1;var d=a.$offset(b.id),e,h=c.originalEvent;c.pageX||(c.pageX=h.pageX);c.pageY||(c.pageY=h.pageY);a._mousePageX=c.pageX;a._mousePageY=c.pageY;h.targetTouches&&h.targetTouches[0]?(e=h.targetTouches[0].pageX-d.left,d=h.targetTouches[0].pageY-d.top):h.changedTouches?(e=h.changedTouches[0].pageX-d.left,d=h.changedTouches[0].pageY-d.top):(e=c.pageX-d.left,d=c.pageY-d.top);return void 0==
e?null:[Math.round(e),Math.round(d),a._jsGetMouseModifiers(c)]};a._setCursor=function(b,c){if(!b._isJava&&!b._readingLocal){var d;switch(c){case 1:d="crosshair";break;case 3:d="wait";a.$setVisible(a.$(b,"waitimage"),!0);break;case 8:d="ns-resize";break;case 12:d="grab";break;case 13:d="move";break;default:a.$setVisible(a.$(b,"waitimage"),!1),d="default"}b._canvas.style.cursor=d}};a._gestureUpdate=function(b,c){c.stopPropagation();c.preventDefault();var d=c.originalEvent;switch(c.type){case "touchstart":a._touching=
!0;break;case "touchend":a._touching=!1}if(!d.touches||2!=d.touches.length)return!1;switch(c.type){case "touchstart":b._touches=[[],[]];break;case "touchmove":var e=a.$offset(b.id),h=b._touches[0],k=b._touches[1];h.push([d.touches[0].pageX-e.left,d.touches[0].pageY-e.top]);k.push([d.touches[1].pageX-e.left,d.touches[1].pageY-e.top]);d=h.length;3<d&&(h.shift(),k.shift());2<=d&&b.applet._processGesture(b._touches)}return!0};a._jsSetMouse=function(b){var c=function(a){return!a.target||0<=(""+a.target.className).indexOf("swingjs-ui")};
a.$bind(b,"mousedown touchstart",function(d){if(c(d))return!0;a._setMouseOwner(b,!0);d.stopPropagation();var e=d.target["data-UI"];(!e||!e.handleJSEvent(b,501,d))&&d.preventDefault();b.isDragging=!0;if("touchstart"==d.type&&a._gestureUpdate(b,d))return!!e;a._setConsoleDiv(b.applet._console);var h=a._jsGetXY(b,d);h&&(2!=d.button&&a.Swing.hideMenus(b.applet),b.applet._processEvent(501,h));return!!e});a.$bind(b,"mouseup touchend",function(d){if(c(d))return!0;a._setMouseOwner(null);d.stopPropagation();
var e=d.target["data-UI"];(!e||!e.handleJSEvent(b,502,d))&&d.preventDefault();b.isDragging=!1;if("touchend"==d.type&&a._gestureUpdate(b,d))return!!e;(d=a._jsGetXY(b,d))&&b.applet._processEvent(502,d);return!!e});a.$bind(b,"mousemove touchmove",function(d){if(c(d))return!0;if(a._mouseOwner&&a._mouseOwner!=b&&a._mouseOwner.isDragging){if(!a._mouseOwner.mouseMove)return!0;a._mouseOwner.mouseMove(d);return!1}return a._drag(b,d)});a._drag=function(b,c){c.stopPropagation();c.preventDefault();if("touchmove"==
c.type&&a._gestureUpdate(b,c))return!1;var e=a._jsGetXY(b,c);if(!e)return!1;b.isDragging||(e[2]=0);var h=c.target["data-UI"];b.isdragging&&(!h||h.handleJSEvent(b,506,c));b.applet._processEvent(b.isDragging?506:503,e);return!!h};a.$bind(b,"DOMMouseScroll mousewheel",function(d){if(c(d))return!0;d.stopPropagation();d.preventDefault();b.isDragging=!1;var e=d.originalEvent,e=e.detail?e.detail:("mac"==a.featureDetection.os?1:-1)*e.wheelDelta;d=a._jsGetMouseModifiers(d);b.applet._processEvent(507,[0>e?
-1:1,0,d]);return!1});a.$bind(b,"contextmenu",function(){return!1});a.$bind(b,"mouseout",function(d){if(c(d))return!0;a._mouseOwner&&!a._mouseOwner.mouseMove&&a._setMouseOwner(null);b.applet._appletPanel&&b.applet._appletPanel.startHoverWatcher(!1);a._jsGetXY(b,d);return!1});a.$bind(b,"mouseenter",function(d){if(c(d))return!0;b.applet._appletPanel&&b.applet._appletPanel.startHoverWatcher(!0);if(0===d.buttons||0===d.which){b.isDragging=!1;d=a._jsGetXY(b,d);if(!d)return!1;b.applet._processEvent(504,
d);b.applet._processEvent(502,d);return!1}});a.$bind(b,"mousemoveoutjsmol",function(d,e,h){if(c(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(d){if(c(d))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 d=this;b.bind("mousedown touchstart",function(b){if(d.ignoreMouse)return d.ignoreMouse=!1,!0;a._setMouseOwner(d,!0);d.isDragging=!0;d.pageX=b.pageX;d.pageY=b.pageY;return!1});b.bind("mousemove touchmove",function(b){if(d.isDragging&&
a._mouseOwner==d)return d.mouseMove(b),!1});b.bind("mouseup touchend",function(b){d.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 d=this.pageX0+(b.pageX-this.pageX);b=this.pageY0+(b.pageY-this.pageY);a._mousePageX=d;a._mousePageY=b;this.container.css({top:b+"px",left:d+"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 d=this;this.container.bind("mousemoveoutjsmol touchmoveoutjsmol",function(a,b,c){d.mouseMove(c)});this.container.bind("mouseupoutjsmol touchendoutjsmol",function(a,b,c){d.mouseUp(c)})}})};s.JSDialog=function(){};s.setDraggable(s.JSDialog);s.getScreenDimensions=function(a){a.width=m(window).width();a.height=m(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,c){a.id=c+ ++s.count;s.htDialogs[a.id]=a};s.setDialog=function(b){a._setMouseOwner(null);a.$remove(b.id);var c=b.id+"_mover",d=a._$(c),e;d[0]?(d.html(b.html),e=d[0].jd):(a.$after("body","<div id='"+c+"' style='position:absolute;left:0px;top:0px;'>"+b.html+"</div>"),e=new s.JSDialog,d=a._$(c),b.container=d,e.applet=b.manager.vwr.html5Applet,e.setContainer(d),e.dialog=b,e.setPosition(),e.dragBind(!0),d[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,c){var d=s.htDialogs[b.id];if(d){var e=d.toString();if(0<=e.indexOf("JCheck"))d.selected=b.checked;else if(0<=e.indexOf("JCombo"))d.selectedIndex=b.selectedIndex;else if(null!=
d.text&&(d.text=b.value,c&&13!=(c.charCode||c.keyCode)))return}e=s.htDialogs[a.$getAncestorDiv(b.id,"JDialog").id];e.manager.actionPerformed(d?d.name:e.registryKey+"/"+b.id)};s.setFront=function(b){var c=b.manager.vwr.html5Applet;b.zIndex!=a._getZ(c,"dialog")&&(b.zIndex=a._incrZ(c,"dialog"));b.container&&((b.container[0]||b.container).style.zIndex=b.zIndex)};s.hideMenus=function(a){if(a=a._menus)for(var c in a)a[c]._visible&&s.hideMenu(a[c])};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 c='<iframe style="display:none" width="0" height="0" frameborder="0" tabindex="-1" src="'+(a._tracker+"&applet="+b._jmolType+"&version="+a._version+"&appver="+a.___JmolVersion+"&url="+encodeURIComponent(document.location.href))+'"></iframe>';a.$after("body",c)}catch(d){}delete a._tracker}return b};var u;a.getProfile=function(a){if(self.Clazz&&self.JSON)return u||Clazz._startProfiling(u=
0==arguments.length||a),Clazz.getProfile()};a._getInChIKey=function(a,c){0<=c.indexOf("MOL=")&&c.split("MOL=")[1].split('"')};a._getAttr=function(a,c){var d=a.indexOf(c+"=");return 0<=d&&0<=(d=a.indexOf('"',d))?a.substring(d+1,a.indexOf('"',d+1)):null};a.User={viewUpdatedCallback:null};a.View={count:0,applets:{},sets:{}};(function(b){b.resetView=function(b,d){debugger;if(d){if(d._viewSet){var e=a.View.applets[d._viewSet];for(b in e)b!=d&&a.View.resetView(b)}}else b&&(b._reset(),a.View.updateView(b))};
b.updateView=function(c,d){if(null!=c._viewSet){d||(d={});d.chemID||(c._searchQuery=null);d.data||(d.data="N/A");d.type=c._viewType;if(null==(c._currentView=b.__findView(c._viewSet,d)))c._currentView=b.__createViewSet(c._viewSet,d.chemID,d.viewID||d.chemID);c._currentView[d.type].data=d.data;c._currentView[d.type].smiles=c._getSmiles();a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(c,"updateView");b.__setView(c._currentView,c,!1)}};b.updateFromSync=function(c,d){c._updateMsg=d;var e=a._getAttr(d,
"sourceID")||a._getAttr(d,"file");if(e){var h=b.__findView(c._viewSet,{viewID:e});if(null==h)return a.updateView(c,d);h!=c._currentView&&b.__setView(h,c,!0);var k=(e=a._getAttr(d,"atoms"))&&0<=d.indexOf("selectionhalos ON")?eval("["+e+"]"):[];setTimeout(function(){c._currentView==h&&b.updateAtomPick(c,k)},10);a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(c,"updateFromSync")}};b.updateAtomPick=function(b,d){var e=b._currentView;if(null!=e){for(var h in e)"info"!=h&&e[h].applet!=b&&e[h].applet._updateAtomPick(d);
a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(b,"updateAtomPick")}};b.dumpViews=function(a){var d=b.sets[a];if(d){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=d.length;0<=--h;){a=d[h];var e=e+("\n\n<b>view="+h+" viewID="+a.info.viewID+" chemID="+a.info.chemID+"</b>\n"),k,l;for(l in a)"info"!=l&&(e+="\nview="+h+" type="+l+" applet="+((k=a[l]).applet?k.applet._id:null)+" SMILES="+
k.smiles+"\n atomMap="+JSON.stringify(k.atomMap)+"\n data=\n"+k.data+"\n")}return e}};b.__init=function(a){var d=a._viewSet,e=b.applets;e[d]||(e[d]={});e[d][a._viewType]=a};b.__findView=function(a,d){var e=b.sets[a];null==e&&(e=b.sets[a]=[]);for(var h=e.length;0<=--h;){var k=e[h];if(d.viewID){if(k.info.viewID==d.viewID)return k}else{if(null!=d.chemID&&d.chemID==k.info.chemID)return k;for(var l in k)if("info"!=l&&(null!=d.data&&null!=k[l].data?d.data==k[l].data:d.type==l))return k}}return null};b.__createViewSet=
function(c,d,e){b.count++;d={info:{chemID:d,viewID:e||"model_"+b.count}};for(var h in a._applets)e=a._applets[h],e._viewSet==c&&(d[e._viewType]={applet:e,data:null});b.sets[c].push(d);return d};b.__setView=function(a,b,e){for(var h in a)if("info"!=h){var k=a[h],l=k.applet,q=e||null!=l&&"<modified>"==l._molData;if(!(null==l||l==b&&!q)){var m=null==k.data,s=null!=l._currentView;l._currentView=a;if(!s||!(a[h].data==k.data&&!m&!q))if(l._loadModelFromView(a),m)break}}}})(a.View);a.Cache={fileCache:{}};
a.Cache.get=function(b){return a.Cache.fileCache[b]};a.Cache.put=function(b,c){a.Cache.fileCache[b]=c};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(c){var d=c.originalEvent;d.stopPropagation();d.preventDefault();var e=d.dataTransfer.files[0];if(null==e)try{e=""+d.dataTransfer.getData("text"),(0==e.indexOf("file:/")||0==e.indexOf("http:/")||
0==e.indexOf("https:/"))&&b._scriptLoad(e)}catch(h){}else d=new FileReader,d.onloadend=function(d){if(d.target.readyState==FileReader.DONE){var h="cache://DROP_"+e.name;d=Clazz.newByteArray(-1,d.target.result);h.endsWith(".spt")||b._appletPanel.cacheFileByName("cache://DROP_*",!1);"JSV"==b._viewType||h.endsWith(".jdx")?a.Cache.put(h,d):b._appletPanel.cachePut(h,d);(d=a._jsGetXY(b._canvas,c))&&(!b._appletPanel.setStatusDragDropped||b._appletPanel.setStatusDragDropped(0,d[0],d[1],h))&&b._appletPanel.openFileAsyncSpecial(h,
1)}},d.readAsArrayBuffer(e)})}})(Jmol,jQuery);Jmol._debugCode=!1;
(function(a){a._isAsync=!1;a._asyncCallbacks={};a._coreFiles=[];var m=!1,l=[],h=[],e=0,k=[],q=[],s=function(b){arguments.length||(b=!0);delete e;for(var d;0<h.length&&"done"==(d=h[0])[4];)h.shift();if(0!=h.length)if(!a._isAsync&&!b)setTimeout(s,10);else{d.push("done");var k="JSmol exec "+d[0]._id+" "+d[3]+" "+d[2];self.System&&System.out.println(k);self.console&&console.log(k+" -- OK");l.push(k);d[1](d[0],d[2])}},u=function(b){m?s():(m=!0,LoadClazz(),b._noMonitor&&(Clazz._LoaderProgressMonitor.showStatus=
function(){}),LoadClazz=null,b.__Info.uncompressed&&Clazz.loadClass(),Clazz._Loader.onGlobalLoaded=function(){Clazz._LoaderProgressMonitor.showStatus("Application loaded.",!0);if(!a._debugCode||!a.haveCore)a.haveCore=!0,s()},Clazz._Loader.loadPackageClasspath("java",null,!0,s))},b=function(a,b){Clazz._Loader.loadClass(b,function(){s()})};a.showExecLog=function(){return l.join("\n")};a._addExec=function(a){a[1]||(a[1]=b);var d="JSmol load "+a[0]._id+" "+a[3];self.console&&console.log(d+"...");l.push(d);
h.push(a)};a._addCoreFile=function(b,d,e){b=b.toLowerCase().split(".")[0];if(!(0<=k.join("").indexOf(b))){k.push(b);k.sort();a._coreFiles=[d+"/core/core"+k.join("")+".z.js"];if(e&&(e=e.split(" ")))for(b=0;b<e.length;b++)0>q.join("").indexOf(e[b])&&q.push(d+"/core/core"+e[b]+".z.js");for(b=0;b<q.length;b++)a._coreFiles.push(q[b])}};a._Canvas2D=function(b,d,e,h){this._uniqueId=(""+Math.random()).substring(3);this._id=b;this._is2D=!0;this._isJava=!1;this._jmolType="Jmol._Canvas2D ("+e+")";this._isLayered=
d._isLayered||!1;this._isSwing=d._isSwing||!1;this._isJSV=d._isJSV||!1;this._isAstex=d._isAstex||!1;this._platform=d._platform||"";if(h)return this;window[b]=this;this._createCanvas(b,d);if(!a._document||this._deferApplet)return this;this._init();return this};a._setAppletParams=function(b,d,e,h){for(var k in e)if(!b||0<=b.indexOf(";"+k.toLowerCase()+";"))null==e[k]||"language"==k&&!a.featureDetection.supportsLocalization()||(h?d.put(k,!0===e[k]?Boolean.TRUE:!1===e[k]?Boolean.FALSE:e[k]):d[k]=e[k])};
a._jsSetPrototype=function(b){b._init=function(){this._setupJS();this._showInfo(!0);this._disableInitialConsole&&this._showInfo(!1)};b._createCanvas=function(b,c,e){a._setObject(this,b,c);e&&(this._GLmol=e,this._GLmol.applet=this,this._GLmol.id=this._id);e=a._getWrapper(this,!0);this._deferApplet||(a._document?(a._documentWrite(e),this._newCanvas(!1),e=""):(this._deferApplet=!0,e+='<script type="text/javascript">'+b+"._cover(false)\x3c/script>"));e+=a._getWrapper(this,!1);c.addSelectionOptions&&(e+=
a._getGrabberOptions(this));a._debugAlert&&!a._document&&alert(e);this._code=a._documentWrite(e)};b._newCanvas=function(a){this._is2D?this._createCanvas2d(a):this._GLmol.create()};b._getHtml5Canvas=function(){return this._canvas};b._getWidth=function(){return this._canvas.width};b._getHeight=function(){return this._canvas.height};b._getContentLayer=function(){return a.$(this,"contentLayer")[0]};b._repaintNow=function(){a._repaint(this,!1)};b._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 e=Math.round(b.width()),h=Math.round(b.height()),k=document.createElement("canvas");k.applet=this;this._canvas=k;k.style.width="100%";k.style.height="100%";k.width=e;k.height=h;k.id=this._id+"_canvas2d";b.append(k);
a._$(k.id).css({"z-index":a._getZ(this,"main")});if(this._isLayered){var l=document.createElement("div");k.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?e:0)+"px",height:(this._isSwing?h: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:e+"px",height:h+"px",overflow:"hidden"}),this._mouseInterface=k.contentLayer,k.contentLayer.applet=this):this._mouseInterface=this._getLayer("front",b,e,h,!1)}else this._mouseInterface=k;a._jsSetMouse(this._mouseInterface)};b._getLayer=function(b,c,e,h,k){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=e;l.height=h;c.append(l);l.applet=this;a._$(l.id).css({background:k?"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};b._setupJS=function(){window["j2s.lib"]={base:this._j2sPath+"/",alias:".",console:this._console,monitorZIndex:a._getZ(this,"monitorZIndex")};0==h.length&&a._addExec([this,u,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)};b.__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 e=b._j2sPath+"/";if(0>e.indexOf("://")){var h=document.location.href.split("#")[0].split("?")[0].split("/");0==e.indexOf("/")?h=[h[0],e.substring(1)]:h[h.length-1]=e;e=h.join("/")}c.put("codePath",e);a._registerApplet(b._id,b);try{b._newApplet(c)}catch(k){System.out.println((a._isAsync?
"normal async abort from ":"")+k);return}b._jsSetScreenDimensions();s()};b._restoreState||(b._restoreState=function(){});b._jsSetScreenDimensions=function(){if(this._appletPanel){var b=a._getElement(this,this._is2D?"canvas2d":"canvas");this._appletPanel.setScreenDimension(b.width,b.height)}};b._show=function(b){a.$setVisible(a.$(this,"appletdiv"),b);b&&a._repaint(this,!0)};b._canScript=function(){return!0};b.equals=function(a){return this==a};b.clone=function(){return this};b.hashCode=function(){return parseInt(this._uniqueId)};
b._processGesture=function(a){return this._appletPanel.processTwoPointGesture(a)};b._processEvent=function(a,b){this._appletPanel.processMouseEvent(a,b[0],b[1],b[2],System.currentTimeMillis())};b._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 b};a._repaint=function(b,e){if(b&&b._appletPanel){var h=a.$(b,"appletdiv"),k=Math.round(h.width()),h=Math.round(h.height());if(b._is2D&&(b._canvas.width!=
k||b._canvas.height!=h))b._newCanvas(!0),b._appletPanel.setDisplay(b._canvas);b._appletPanel.setScreenDimension(k,h);k=function(){b._appletPanel.paint?b._appletPanel.paint(null):b._appletPanel.update(null)};e?requestAnimationFrame(k):k()}};a._loadImage=function(b,e,h,k,l,q){var m="echo_"+e+h+(k?"_"+k.length:""),s=a._getHiddenCanvas(b.vwr.html5Applet,m,0,0,!1,!0);if(null==s){if(null==q){q=new Image;if(null==k)return q.onload=function(){a._loadImage(b,e,h,null,l,q)},q.src=h,null;System.out.println("Jsmol.js Jmol._loadImage using data URI for "+
m);q.src="string"==typeof k?k:"data:"+JU.Rdr.guessMimeTypeForBytes(k)+";base64,"+JU.Base64.getBase64(k)}var u=q.width,U=q.height;"webgl"==e&&(u/=2,U/=2);s=a._getHiddenCanvas(b.vwr.html5Applet,m,u,U,!0,!1);s.imageWidth=u;s.imageHeight=U;s.id=m;s.image=q;a._setCanvasImage(s,u,U)}else System.out.println("Jsmol.js Jmol._loadImage reading cached image for "+m);return null==k?l(s,h):s};a._canvasCache={};a._getHiddenCanvas=function(b,e,h,k,l,q){e=b._id+"_"+e;b=a._canvasCache[e];if(q)return b;if(l||!b||b.width!=
h||b.height!=k)b=document.createElement("canvas"),b.width=b.style.width=h,b.height=b.style.height=k,b.id=e,a._canvasCache[e]=b;return b};a._setCanvasImage=function(a,b,e){a.buf32=null;a.width=b;a.height=e;a.getContext("2d").drawImage(a.image,0,0,a.image.width,a.image.height,0,0,b,e)};a._apply=function(a,b){return a(b)}})(Jmol);
(function(a,m){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,l){var b=!1;a._jarFile&&(l=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("/")),l=c.substring(c.lastIndexOf("/")+1)):b=!0):l=c;this_isSigned=h.isSigned=0<=l.indexOf("Signed")}this._jarPath=h.jarPath=e||".";this._jarFile=h.jarFile="string"==typeof l?l:(l?"JmolAppletSigned":"JmolApplet")+"0.jar";b&&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,h=a._Applet.prototype;l._get=function(e,h,q){q||(q=!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,makeLiveImage:null,coverTitle:"",coverCommand:"",deferApplet:!1,deferUncover:!1,disableJ2SLoadMonitor:!1,disableInitialConsole:!0,debug:!1});a._debugAlert=
h.debug;h.serverURL&&(a._serverUrl=h.serverURL);for(var m=!1,u=null,b=h.use.toUpperCase().split("#")[0].split(" "),c=0;c<b.length;c++){switch(b[c]){case "JAVA":m=!0;a.featureDetection.supportsJava()&&(u=new l(e,h,q));break;case "WEBGL":u=l._getCanvas(e,h,q,!0);break;case "HTML5":a.featureDetection.allowHTML5?u=l._getCanvas(e,h,q,!1):b.push("JAVA")}if(null!=u)break}null==u&&(q||!m?u={_jmolType:"none"}:m&&(u=new l(e,h)));return q?u:a._registerApplet(e,u)};l._getCanvas=function(e,h,q,m){h._isLayered=
!1;h._platform="J.awtjs2d.Platform";return m&&a.featureDetection.supportsWebGL()?(a._Canvas3D.prototype=a.GLmol.extendApplet(a._jsSetPrototype(new l(e,h,!0))),new a._Canvas3D(e,h,"Jmol",q)):!m?(a._Canvas2D.prototype=a._jsSetPrototype(new l(e,h,!0)),new a._Canvas2D(e,h,"Jmol",q)):null};l._noJavaMsg="Either you do not have Java applets enabled in your web<br />browser or your browser is blocking this applet.<br />\t\t\tCheck the warning message from your browser and/or enable Java applets in<br />\t\t\tyour web browser preferences, or install the Java Runtime Environment from <a href='http://www.java.com'>www.java.com</a>";
l._setCommonMethods=function(a){a._showInfo=h._showInfo;a._search=h._search;a._getName=h._getName;a._readyCallback=h._readyCallback};l._createApplet=function(e,h,q){e._initialize(h.jarPath,h.jarFile);var s=e._jarFile;a._isFile&&(s=s.replace(/0\.jar/,".jar"));var u=0<=e._containerWidth.indexOf("px")?e._containerWidth:"100%",b=0<=e._containerHeight.indexOf("px")?e._containerHeight:"100%",u=' style="width:'+u+";height:"+b+'" ',b="name='"+e._id+"_object' id='"+e._id+"_object' \n"+u+"\n";q.codebase=e._jarPath;
q.codePath=q.codebase+"/";if(0>q.codePath.indexOf("://")){var c=m.location.href.split("#")[0].split("?")[0].split("/");c[c.length-1]=q.codePath;q.codePath=c.join("/")}q.archive=s;q.mayscript="true";q.java_arguments="-Xmx"+Math.round(h.memoryLimit||e._memoryLimit)+"m";q.permissions=e._isSigned?"all-permissions":"sandbox";q.documentLocation=m.location.href;q.documentBase=m.location.href.split("#")[0].split("?")[0];q.jarPath=h.jarPath;a._syncedApplets.length&&(q.synccallback="Jmol._mySyncCallback");
e._startupScript&&(q.script=e._startupScript);var c="\n",d;for(d in q)q[d]&&(c+=" <param name='"+d+"' value='"+q[d]+"' />\n");c=a.featureDetection.useIEObject||a.featureDetection.useHtml4Object?"<object "+b+(a.featureDetection.useIEObject?" classid='clsid:8AD9C840-044E-11D1-B3E9-00805F499D93' codebase='http://java.sun.com/update/1.6.0/jinstall-6u22-windows-i586.cab'>":" type='application/x-java-applet'>")+c+"<p style='background-color:yellow;"+u.split('"')[1]+";text-align:center;vertical-align:middle;'>\n"+
l._noJavaMsg+"</p></object>\n":"<applet "+b+" code='"+q.code+"' codebase='"+e._jarPath+"' archive='"+s+"' mayscript='true'>\n"+c+"<table bgcolor='yellow'><tr><td align='center' valign='middle' "+u+">\n"+l._noJavaMsg+"</td></tr></table></applet>\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)};h._newApplet=function(a){this._is2D||a.put("script",(a.get("script")||
"")+";set multipleBondSpacing 0.35;");this._viewerOptions=a;return new J.appletjs.Jmol(a)};h._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"])};h._create=function(e,h){a._setObject(this,e,h);var q={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,q,h);var m;h.inlineModel?(m=h.inlineModel,m=m.replace(/\r|\n|\r\n/g,0<=m.indexOf("|")?"\\/n":"|").replace(/'/g,"'"),a._debugAlert&&alert("inline model:\n"+m)):m="";q.loadInline=m;q.appletReadyCallback="Jmol._readyCallback";a._syncedApplets.length&&(q.synccallback="Jmol._mySyncCallback");q.java_arguments="-Xmx"+Math.round(h.memoryLimit||this._memoryLimit)+"m";this._initialize(h.jarPath,
h.jarFile);l._createApplet(this,h,q)};h._restoreState=function(e,h){System.out.println("\n\nasynchronous restore state for "+e+" "+h);var l=this,m=l._applet&&l._applet.viewer;switch(h){case "setOptions":return function(){l.__startAppletJS(l)};case "render":return function(){setTimeout(function(){m.refresh(2)},10)};default:switch(e){case "J.shape.Balls":case "J.shape.Sticks":case "J.shape.Frank":return null}if(m&&m.isScriptExecuting&&m.isScriptExecuting()){if(a._asyncCallbacks[e])return System.out.println("...ignored"),
1;var u=m.getEvalContextAndHoldQueue(m.eval),b=u.pc-1;u.asyncID=e;a._asyncCallbacks[e]=function(a){u.pc=a;System.out.println("sc.asyncID="+u.asyncID+" sc.pc = "+u.pc);m.eval.resumeEval(u)};m.eval.pc=m.eval.pcEnd;System.out.println("setting resume for pc="+u.pc+" "+e+" to "+a._asyncCallbacks[e]+"//");return function(){System.out.println("resuming "+e+" "+a._asyncCallbacks[e]);a._asyncCallbacks[e](b)}}System.out.println(e+"?????????????????????"+h);return function(){setTimeout(function(){m.refresh(2)},
10)}}};h._readyCallback=function(e,h,l){if(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);if((e=this._2dapplet)&&e._isEmbedded&&e._ready&&e.__Info.visible)this._show2d(!0),this._show2d(!1),this._show2d(!0);a._hideLoadingSpinner(this)}};
h._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)}};h._show2d=function(a){this._2dapplet._show2d(a);this._2dapplet._isEmbedded&&(this._showInfo(!1),this._show(!a),
this._2dapplet.__showContainer(!0,!0))};h._getSpinner=function(){return this.__Info.appletLoadingImage||this._j2sPath+"/img/JSmol_spinner.gif"};h._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=[],m=[],u=0;u<a.length;u++){var b=a[u];l[b[0]+1]=b[1]-h+1;m[b[1]-h+1]=b[0]+1}return{fromJmol:l,toJmol:m}};h._show=function(e){var h=!e?2:"100%";a.$setSize(a.$(this,"object"),h,h);
this._isJava||a.$setVisible(a.$(this,"appletdiv"),e)};h._clearConsole=function(){this._console==this._id+"_infodiv"&&(this.info="");self.Clazz&&(a._setConsoleDiv(this._console),Clazz.Console.clear())};h._addScript=function(a){this._readyScript||(this.readyScript="");this._readyScript&&(this._readyScript+=";");this._readyScript+=a;return!0};h._script=function(e){if(!this._ready)return this._addScript(e);a._setConsoleDiv(this._console);a._hideLocalFileReader(this);this._applet.script(e)};h._syncScript=
function(a){this._applet.syncScript(a)};h._scriptCheck=function(a){return this._ready&&this._applet.scriptCheck(a)};h._scriptWait=function(a,h){var l=this._scriptWaitAsArray(a),m="";if(!h)for(var u=l.length;0<=--u;)for(var b=0,c=l[u].length;b<c;b++)m+=l[u][b]+"\n";return m};h._scriptEcho=function(a){a=this._scriptWaitAsArray(a);for(var h="",l=a.length;0<=--l;)for(var m=a[l].length;0<=--m;)"scriptEcho"==a[l][m][1]&&(h+=a[l][m][3]+"\n");return h.replace(/ \| /g,"\n")};h._scriptMessage=function(a){a=
this._scriptWaitAsArray(a);for(var h="",l=a.length;0<=--l;)for(var m=a[l].length;0<=--m;)"scriptStatus"==a[l][m][1]&&(h+=a[l][m][3]+"\n");return h.replace(/ \| /g,"\n")};h._scriptWaitOutput=function(a){var h="";try{a&&(h+=this._applet.scriptWaitOutput(a))}catch(l){}return h};h._scriptWaitAsArray=function(e){var h="";try{if(this._getStatus("scriptEcho,scriptMessage,scriptStatus,scriptError"),e&&(h+=this._applet.scriptWait(e),h=a._evalJSON(h,"jmolStatus"),"object"==typeof h))return h}catch(l){}return[[h]]};
h._getStatus=function(e){return a._sortMessages(this._getPropertyAsArray("jmolStatus",e))};h._getPropertyAsArray=function(e,h){return a._evalJSON(this._getPropertyAsJSON(e,h),e)};h._getPropertyAsString=function(a,h){void 0==h&&(h="");return this._applet.getPropertyAsString(a,h)+""};h._getPropertyAsJSON=function(a,h){void 0==h&&(h="");try{return this._applet.getPropertyAsJSON(a,h)+""}catch(l){return""}};h._getPropertyAsJavaObject=function(a,h){void 0==h&&(h="");return this._applet.getProperty(a,h)};
h._evaluate=function(a){null!=a||(a="");return this._getPropertyAsArray("variableInfo",a)};h._evaluateDEPRECATED=function(a){a=""+this._getPropertyAsJavaObject("evaluate",a);var h=a.replace(/\-*\d+/,"");if(""==h&&!isNaN(parseInt(a)))return parseInt(a);h=a.replace(/\-*\d*\.\d*/,"");return""==h&&!isNaN(parseFloat(a))?parseFloat(a):a};h._saveOrientation=function(a){return this._savedOrientations[a]=this._getPropertyAsArray("orientationInfo","info").moveTo};h._restoreOrientation=function(a){a=this._savedOrientations[a];
return!a||""==a?a.replace(/1\.0/,"0"):this._scriptWait(a)};h._restoreOrientationDelayed=function(a,h){1>arguments.length&&(h=1);var l=this._savedOrientations[a];return!l||""==l?l.replace(/1\.0/,h):this._scriptWait(l)};h._resizeApplet=function(e){function h(e,l){var b=""+e;return 0==b.length?l?"":a._allowedJmolSize[2]:b.indexOf("%")==b.length-1?b:1>=(e=parseFloat(e))&&0<e?100*e+"%":(isNaN(e=Math.floor(e))?a._allowedJmolSize[2]:e<a._allowedJmolSize[0]?a._allowedJmolSize[0]:e>a._allowedJmolSize[1]?a._allowedJmolSize[1]:
e)+(l?l:"")}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)};h._search=function(e,h){a._search(this,e,h)};h._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))};h._loadFile=function(e,h,l){this._showInfo(!1);h||(h="");this._thisJmolModel=""+Math.random();this._fileName=e;if(!this._scriptLoad(e,h)){var m=this;a._loadFileData(this,e,function(a){m.__loadModel(a,h,l)},function(){m.__loadModel(null)})}};h._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};h.__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}))};h._loadMolData=function(a,h,l){h||(h="");l=l?"append":"model";this._applet.scriptWait('load DATA "'+l+'"'+a+'\nEND "'+l+'" ;'+h)};h._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)};h._reset=function(){this._scriptWait("zap",!0)};h._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}")}))};h._atomPickedCallback=function(e,h){if(!(0>h)){var l=[h+1];a.View.updateAtomPick(this,l);this._updateAtomPick(l)}};h._updateAtomPick=function(a){this._script(0==a.length?"select none":"select on visible and (@"+a.join(",@")+")")};h._isDeferred=function(){return!this._canvas&&this._cover&&
this._isCovered&&this._deferApplet};h._checkDeferred=function(a){return this._isDeferred()?(this._coverScript=a,this._cover(!1),!0):!1};h._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())};h._displayCoverImage=function(e){this._coverImage&&this._isCovered!=e&&(this._isCovered=e,a._getElement(this,"coverdiv").style.display=e?"block":"none")};h._getSmiles=function(){return this._evaluate("{visible}.find('SMILES')")};h._getMol=function(){return this._evaluate("getProperty('ExtractModel',{visible})")};
h._getMol2D=function(){return this._evaluate("script('select visible;show chemical sdf')")};a.jmolSmiles=function(a){return a._getSmiles()}})(Jmol,document);
(function(a){var m=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:""};
m._addScript=function(a,h){var e=m._scripts.length;m._scripts[e]=[a,h];return e};m._getIdForControl=function(a,h){return"string"==typeof a?a:!h||!a._canScript||a._canScript(h)?a._id:null};m._radio=function(a,h,e,k,q,s,u,b){var c=m._getIdForControl(a,h);if(null==c)return null;++m._radioCount;void 0!=s&&null!=s||(s="jmolRadioGroup"+(m._radioGroupCount-1));if(!h)return"";void 0!=u&&null!=u||(u="jmolRadio"+(m._radioCount-1));void 0!=e&&null!=e||(e=h.substring(0,32));q||(q="");a="</span>";m._actions[u]=
m._addScript(c,h);h='<span id="span_'+u+'"'+(b?' title="'+b+'"':"")+"><input name='"+s+"' id='"+u+"' type='radio' onclick='Jmol.controls._click(this);return true;' onmouseover='Jmol.controls._mouseOver(this);return true;' onmouseout='Jmol.controls._mouseOut()' "+(k?"checked='true' ":"")+m._radioCssText+" />";0<=e.toLowerCase().indexOf("<td>")&&(h+=a,a="");return h+('<label for="'+u+'">'+e+"</label>"+a+q)};m._scriptExecute=function(l,h){var e=a._applets[h[0]],k=h[1];if("object"==typeof k)k[0](l,k,
e);else"function"==typeof k?k(e):a.script(e,k)};m.__checkScript=function(a,h){var e=0<=h.value.indexOf("JSCONSOLE ")||""===a._scriptCheck(h.value);h.style.color=e?"black":"red";return e};m.__getCmd=function(a,h){if(h._cmds&&h._cmds.length){var e=h._cmds[h._cmdpt=(h._cmdpt+h._cmds.length+a)%h._cmds.length];setTimeout(function(){h.value=e},10);h._cmdadd=1;h._cmddir=a}};m._commandKeyPress=function(l,h,e){l=13==l?13:window.event?window.event.keyCode:l?l.keyCode||l.which:0;var k=document.getElementById(h),
q=a._applets[e];switch(l){case 13:return h=k.value,m._scriptExecute(k,[e,h]),k._cmds||(k._cmds=[],k._cmddir=0,k._cmdpt=-1,k._cmdadd=0),h&&0==k._cmdadd?(++k._cmdpt,k._cmds.splice(k._cmdpt,0,h),k._cmdadd=0,k._cmddir=0):k._cmdadd=0,k.value="",!1;case 27:return setTimeout(function(){k.value=""},20),!1;case 38:m.__getCmd(-1,k);break;case 40:m.__getCmd(1,k);break;default:k._cmdadd=0}setTimeout(function(){m.__checkScript(q,k)},20);return!0};m._click=function(a,h){m._element=a;1==arguments.length&&(h=m._actions[a.id]);
m._scriptExecute(a,m._scripts[h])};m._menuSelected=function(a){var h=a.value;if(void 0!=h)m._scriptExecute(a,m._scripts[h]);else{h=a.length;if("number"==typeof h)for(var e=0;e<h;++e)if(a[e].selected){m._click(a[e],a[e].value);return}alert("?Que? menu selected bug #8734")}};m._cbNotifyMaster=function(a){var h=!0,e=!0,k=!1,q,s;for(s in a.chkGroup)q=a.chkGroup[s],q.checked?e=!1:h=!1,q.indeterminate&&(k=!0);q=a.chkMaster;h?q.checked=!0:e?q.checked=!1:k=!0;q.indeterminate=k;(a=m._checkboxItems[q.id])&&
(q=a.chkMaster)&&m._cbNotifyMaster(m._checkboxMasters[q.id])};m._cbNotifyGroup=function(a,h){for(var e in a.chkGroup){var k=a.chkGroup[e];k.checked!=h&&(k.checked=h,m._cbClick(k));m._checkboxMasters[k.id]&&m._cbNotifyGroup(m._checkboxMasters[k.id],h)}};m._cbSetCheckboxGroup=function(a,h,e){var k=a;"number"==typeof k&&(k="jmolCheckbox"+k);(a=document.getElementById(k))||alert("jmolSetCheckboxGroup: master checkbox not found: "+k);var q=m._checkboxMasters[k]={};q.chkMaster=a;q.chkGroup={};"string"==
typeof h?(h=e,k=1):k=0;for(a=k;a<h.length;a++)k=h[a],"number"==typeof k&&(k="jmolCheckbox"+k),(e=document.getElementById(k))||alert("jmolSetCheckboxGroup: group checkbox not found: "+k),q.chkGroup[k]=e,m._checkboxItems[k]=q};m._cbClick=function(a){m._control=a;var h=m._actions[a.id][0],e=m._actions[a.id][1];m._click(a,a.checked?h:e);m._checkboxMasters[a.id]&&m._cbNotifyGroup(m._checkboxMasters[a.id],a.checked);m._checkboxItems[a.id]&&m._cbNotifyMaster(m._checkboxItems[a.id])};m._cbOver=function(a){var h=
m._actions[a.id][0],e=m._actions[a.id][1];window.status=m._scripts[a.checked?e:h]};m._mouseOver=function(a,h){1==arguments.length&&(h=m._actions[a.id]);window.status=m._scripts[h]};m._mouseOut=function(){window.status=" ";return!0};m._onloadResetForms=function(){m._hasResetForms||(m._hasResetForms=!0,m._previousOnloadHandler=window.onload,window.onload=function(){if(0<m._buttonCount+m._checkboxCount+m._menuCount+m._radioCount+m._radioGroupCount)for(var a=document.forms,h=a.length;0<=--h;)a[h].reset();
m._previousOnloadHandler&&m._previousOnloadHandler()})};m._getButton=function(l,h,e,k,q){l=m._getIdForControl(l,h);if(null==l)return"";void 0!=k&&null!=k||(k="jmolButton"+m._buttonCount);void 0!=e&&null!=e||(e=h.substring(0,32));++m._buttonCount;m._actions[k]=m._addScript(l,h);h='<span id="span_'+k+'"'+(q?' title="'+q+'"':"")+"><input type='button' name='"+k+"' id='"+k+"' value='"+e+"' onclick='Jmol.controls._click(this)' onmouseover='Jmol.controls._mouseOver(this);return true' onmouseout='Jmol.controls._mouseOut()' "+
m._buttonCssText+" /></span>";a._debugAlert&&alert(h);return a._documentWrite(h)};m._getCheckbox=function(l,h,e,k,q,s,u){var b=m._getIdForControl(l,h);null!=b&&(b=m._getIdForControl(l,e));if(null==b)return"";void 0!=s&&null!=s||(s="jmolCheckbox"+m._checkboxCount);++m._checkboxCount;if(void 0==h||null==h||void 0==e||null==e)alert("jmolCheckbox requires two scripts");else if(void 0==k||null==k)alert("jmolCheckbox requires a label");else return m._actions[s]=[m._addScript(b,h),m._addScript(b,e)],l="</span>",
q='<span id="span_'+s+'"'+(u?' title="'+u+'"':"")+"><input type='checkbox' name='"+s+"' id='"+s+"' onclick='Jmol.controls._cbClick(this)' onmouseover='Jmol.controls._cbOver(this);return true' onmouseout='Jmol.controls._mouseOut()' "+(q?"checked='true' ":"")+m._checkboxCssText+" />",0<=k.toLowerCase().indexOf("<td>")&&(q+=l,l=""),q+='<label for="'+s+'">'+k+"</label>"+l,a._debugAlert&&alert(q),a._documentWrite(q)};m._getCommandInput=function(l,h,e,k,q,s){l=m._getIdForControl(l,"x");if(null==l)return"";
void 0!=k&&null!=k||(k="jmolCmd"+m._cmdCount);void 0!=h&&null!=h||(h="Execute");void 0!=e&&!isNaN(e)||(e=60);void 0!=s||(s="help");++m._cmdCount;h='<span id="span_'+k+'"'+(q?' title="'+q+'"':"")+"><input name='"+k+"' id='"+k+"' size='"+e+"' onkeydown='return Jmol.controls._commandKeyPress(event,\""+k+'","'+l+"\")' value='"+s+"'/><input type='button' name='"+k+"Btn' id='"+k+"Btn' value = '"+h+"' onclick='Jmol.controls._commandKeyPress(13,\""+k+'","'+l+"\")' /></span>";a._debugAlert&&alert(h);return a._documentWrite(h)};
m._getLink=function(l,h,e,k,q){l=m._getIdForControl(l,h);if(null==l)return"";void 0!=k&&null!=k||(k="jmolLink"+m._linkCount);void 0!=e&&null!=e||(e=h.substring(0,32));++m._linkCount;h=m._addScript(l,h);e='<span id="span_'+k+'"'+(q?' title="'+q+'"':"")+"><a name='"+k+"' id='"+k+"' href='javascript:Jmol.controls._click(null,"+h+");' onmouseover='Jmol.controls._mouseOver(null,"+h+");return true;' onmouseout='Jmol.controls._mouseOut()' "+m._linkCssText+">"+e+"</a></span>";a._debugAlert&&alert(e);return a._documentWrite(e)};
m._getMenu=function(l,h,e,k,q){var s=m._getIdForControl(l,null);void 0!=k&&null!=k||(k="jmolMenu"+m._menuCount);++m._menuCount;s=typeof h;if(null!=s&&"object"==s&&h.length){var u=h.length;"number"!=typeof e||1==e?e=null:0>e&&(e=u);e='<span id="span_'+k+'"'+(q?' title="'+q+'"':"")+"><select name='"+k+"' id='"+k+"' onChange='Jmol.controls._menuSelected(this)'"+(e?" size='"+e+"' ":"")+m._menuCssText+">";for(k=0;k<u;++k){var b=h[k],s=typeof b,c=null,d=q=null;"object"==s&&null!=b?(c=b[0],q=b[1],d=b[2]):
c=q=b;s=m._getIdForControl(l,c);if(null==s)return"";null==q&&(q=c);"#optgroup"==c?e+="<optgroup label='"+q+"'>":"#optgroupEnd"==c?e+="</optgroup>":(s=m._addScript(s,c),e+="<option value='"+s+(d?"' selected='true'>":"'>")+q+"</option>")}e+="</select></span>";a._debugAlert&&alert(e);return a._documentWrite(e)}};m._getRadio=function(l,h,e,k,q,s,u,b){0==m._radioGroupCount&&++m._radioGroupCount;s||(s="jmolRadioGroup"+(m._radioGroupCount-1));l=m._radio(l,h,e,k,q,s,u?u:s+"_"+m._radioCount,b?b:0);if(null==
l)return"";a._debugAlert&&alert(l);return a._documentWrite(l)};m._getRadioGroup=function(l,h,e,k,q,s){var u=typeof h;if("object"!=u||null==u||!h.length)alert("invalid arrayOfRadioButtons");else{void 0!=e&&null!=e||(e="  ");var b=h.length;++m._radioGroupCount;k||(k="jmolRadioGroup"+(m._radioGroupCount-1));for(var c="<span id='"+(q?q:k)+"'>",d=0;d<b;++d){d==b-1&&(e="");var t=h[d],u=typeof t,F=null,c="object"==u?c+(F=m._radio(l,t[0],t[1],t[2],e,k,3<t.length?t[3]:(q?q:k)+"_"+d,4<t.length?t[4]:0,
s)):c+(F=m._radio(l,t,null,null,e,k,(q?q:k)+"_"+d,s));if(null==F)return""}c+="</span>";a._debugAlert&&alert(c);return a._documentWrite(c)}}})(Jmol);
(function(a){var m=function(a){a="&"+a+"=";return decodeURI(("&"+document.location.search.substring(1)+a).split(a)[1].split("&")[0])};a._j2sPath=m("_J2S");a._jarFile=m("_JAR");a._use=m("_USE");a.getVersion=function(){return a._jmolInfo.version};a.getApplet=function(l,h,e){return a._Applet._get(l,h,e)};a.getJMEApplet=function(l,h,e,k){return a._JMEApplet._get(l,h,e,k)};a.getJSVApplet=function(l,h,e){return a._JSVApplet._get(l,h,e)};a.loadFile=function(a,h,e){a._loadFile(h,e)};a.script=function(a,h){a._checkDeferred(h)||
a._script(h)};a.scriptCheck=function(a,h){return a&&a._scriptCheck&&a._ready&&a._scriptCheck(h)};a.scriptWait=function(a,h){return a._scriptWait(h)};a.scriptEcho=function(a,h){return a._scriptEcho(h)};a.scriptMessage=function(a,h){return a._scriptMessage(h)};a.scriptWaitOutput=function(a,h){return a._scriptWait(h)};a.scriptWaitAsArray=function(a,h){return a._scriptWaitAsArray(h)};a.search=function(a,h,e){a._search(h,e)};a.evaluateVar=function(a,h){return a._evaluate(h)};a.evaluate=function(a,h){return a._evaluateDEPRECATED(h)};
a.getAppletHtml=function(l,h){if(h){var e=a._document;a._document=null;l=a.getApplet(l,h);a._document=e}return l._code};a.getPropertyAsArray=function(a,h,e){return a._getPropertyAsArray(h,e)};a.getPropertyAsJavaObject=function(a,h,e){return a._getPropertyAsJavaObject(h,e)};a.getPropertyAsJSON=function(a,h,e){return a._getPropertyAsJSON(h,e)};a.getPropertyAsString=function(a,h,e){return a._getPropertyAsString(h,e)};a.getStatus=function(a,h){return a._getStatus(h)};a.resizeApplet=function(a,h){return a._resizeApplet(h)};
a.restoreOrientation=function(a,h){return a._restoreOrientation(h)};a.restoreOrientationDelayed=function(a,h,e){return a._restoreOrientationDelayed(h,e)};a.saveOrientation=function(a,h){return a._saveOrientation(h)};a.say=function(a){alert(a)};a.clearConsole=function(a){a._clearConsole()};a.getInfo=function(a){return a._info};a.setInfo=function(a,h,e){a._info=h;2<arguments.length&&a._showInfo(e)};a.showInfo=function(a,h){a._showInfo(h)};a.show2d=function(a,h){a._show2d(h)};a.jmolBr=function(){return a._documentWrite("<br>")};
a.jmolButton=function(l,h,e,k,m){return a.controls._getButton(l,h,e,k,m)};a.jmolCheckbox=function(l,h,e,k,m,s,u){return a.controls._getCheckbox(l,h,e,k,m,s,u)};a.jmolCommandInput=function(l,h,e,k,m,s){return a.controls._getCommandInput(l,h,e,k,m,s)};a.jmolHtml=function(l){return a._documentWrite(l)};a.jmolLink=function(l,h,e,k,m){return a.controls._getLink(l,h,e,k,m)};a.jmolMenu=function(l,h,e,k,m){return a.controls._getMenu(l,h,e,k,m)};a.jmolRadio=function(l,h,e,k,m,s,u,b){return a.controls._getRadio(l,
h,e,k,m,s,u,b)};a.jmolRadioGroup=function(l,h,e,k,m,s){return a.controls._getRadioGroup(l,h,e,k,m,s)};a.setCheckboxGroup=function(l,h){a.controls._cbSetCheckboxGroup(l,h,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,h){null!=l&&(a._appletCssClass=l);a._appletCssText=h?h+" ":l?'class="'+l+'" ':""};a.setButtonCss=function(l,
h){null!=l&&(a.controls._buttonCssClass=l);a.controls._buttonCssText=h?h+" ":l?'class="'+l+'" ':""};a.setCheckboxCss=function(l,h){null!=l&&(a.controls._checkboxCssClass=l);a.controls._checkboxCssText=h?h+" ":l?'class="'+l+'" ':""};a.setRadioCss=function(l,h){null!=l&&(a.controls._radioCssClass=l);a.controls._radioCssText=h?h+" ":l?'class="'+l+'" ':""};a.setLinkCss=function(l,h){null!=l&&(a.controls._linkCssClass=l);a.controls._linkCssText=h?h+" ":l?'class="'+l+'" ':""};a.setMenuCss=function(l,h){null!=
l&&(a.controls._menuCssClass=l);a.controls._menuCssText=h?h+" ":l?'class="'+l+'" ':""};a.setAppletSync=function(l,h,e){a._syncedApplets=l;a._syncedCommands=h;a._syncedReady={};a._isJmolJSVSync=e};a.setGrabberOptions=function(l){a._grabberOptions=l};a.setAppletHtml=function(l,h){l._code&&(a.$html(h,l._code),l._init&&!l._deferApplet&&l._init())};a.coverApplet=function(a,h){a._cover&&a._cover(h)};a.setFileCaching=function(l,h){l?l._cacheFiles=h:a.fileCache=h?{}:null};a.resetView=function(l,h){a.View.resetView(l,
h)};a.updateView=function(a,h,e){a._updateView(h,e)};a.getChemicalInfo=function(l,h,e){h||(h="name");"string"!=typeof l&&(l=l._getSmiles());return a._getNCIInfo(l,h,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,m){try{a._debugging=0<=document.location.href.indexOf("j2sdebug")}catch(l){}var h=["j2s.clazzloaded","j2s.object.native"];a.setGlobal=function(a,b){h.push(a);window[a]=b};a.getGlobals=function(){return h.sort().join("\n")};a.setConsoleDiv=function(a){window["j2s.lib"]&&(window["j2s.lib"].console=
a)};var e=null;a._startProfiling=function(a){e=a&&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 k=a._O.prototype;k.equals=function(a){return this==a};k.hashCode=function(){return this._$hashcode||(this._$hashcode=++a._hashCode)};k.getClass=function(){return a.getClass(this)};
k.clone=function(){return a.clone(this)};a.clone=function(a){var b=a instanceof Array?Array(a.length):new a.constructor,c;for(c in a)b[c]=a[c];return b};k.finalize=function(){};k.notify=function(){};k.notifyAll=function(){};k.wait=function(){};k.to$tring=Object.prototype.toString;k.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<a._extendedObjectMethods.length;d++){var e=a._extendedObjectMethods[d];b.prototype[e]=a._O.prototype[e]}};a.extractClassName=function(a){a=a.substring(1,a.length-1);return 0<=a.indexOf("Array")?"Array":0<=a.indexOf("object ")?a.substring(7):a};a.getClassName=function(b,c){if(null==b)return"NullObject";if(b instanceof a.CastedNull)return b.clazzName;switch(typeof b){case "number":return"n";
case "boolean":return"b";case "string":return"String";case "function":if(b.__CLASS_NAME__)return c?b.__CLASS_NAME__:"Class";var d=b.toString(),e=d.indexOf("function");if(0>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||b.BYTES_PER_ELEMENT)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 q=function(b,c){for(var d=0;d<a.innerFunctionNames.length;d++)if(c==a.innerFunctionNames[d]&&a._innerFunctions[c]===b[c])return!0;return!1},s=function(){};a.inheritArgs=new s;a.inheritClass=function(b,c,d){for(var e in c)"b$"!=e&&("prototype"!=e&&"superClazz"!=e&&"__CLASS_NAME__"!=e&&"implementz"!=e&&!q(c,e))&&(b[e]=c[e]);a.unloadedClasses[a.getClassName(b,!0)]||(b.prototype=d?d:c!==Number?new c(a.inheritArgs):
new Number);b.superClazz=c;b.prototype.__CLASS_NAME__=b.__CLASS_NAME__};a.implementOf=function(a,b){if(2<=arguments.length){a.implementz||(a.implementz=[]);var c=a.implementz;if(2==arguments.length)if("function"==typeof b)c.push(b),u(a,b);else{if(b instanceof Array)for(var d=0;d<b.length;d++)c.push(b[d]),u(a,b[d])}else for(d=1;d<arguments.length;d++)c.push(arguments[d]),u(a,arguments[d])}};var u=function(a,b){for(var c in b)if("b$"!=c&&"prototype"!=c&&"superClazz"!=c&&"__CLASS_NAME__"!=c&&"implementz"!=
c&&("function"!=typeof b[c]||!q(b,c)))a[c]=a.prototype[c]=b[c]};a.extendInterface=a.implementOf;a.equalsOrExtendsLevel=function(b,c){if(b===c)return 0;if(b.implementz)for(var d=b.implementz,e=0;e<d.length;e++){var h=a.equalsOrExtendsLevel(d[e],c);if(0<=h)return h+1}return-1};a.getInheritedLevel=function(b,c){if(b===c)return 0;var d="string"==typeof b;if(d&&("void"==b||"unknown"==b))return-1;var e="string"==typeof c;if(e&&("void"==c||"unknown"==c))return-1;if(b===(d?"NullObject":NullObject))switch(c){case "n":case "b":return-1;
case Number:case Boolean:case NullObject:break;default:return 0}d&&(b=a.evalType(b));e&&(c=a.evalType(c));if(!c||!b)return-1;d=0;for(e=b;e!==c&&10>d;){if(e.implementz)for(var h=e.implementz,k=0;k<h.length;k++){var l=a.equalsOrExtendsLevel(h[k],c);if(0<=l)return d+l+1}e=e.superClazz;if(!e)return c===Object||c===a._O?d+1.5:-1;d++}return d};a.instanceOf=function(b,c){return null!=b&&c&&(b==c||b instanceof c||0<=a.getInheritedLevel(a.getClassName(b),c))};a.superCall=function(b,c,d,e){var h=null,k=-1,
l=b[d];if(l)if(l.claxxOwner)l.claxxOwner!==c&&(h=l);else if(!l.stacks&&(!l.lastClaxxRef||!l.lastClaxxRef.prototype[d]||!l.lastClaxxRef.prototype[d].stacks))h=l;else{var m=l.stacks;m||(m=l.lastClaxxRef.prototype[d].stacks);for(k=m.length;0<=--k;)if(c===m[k]){h=0<k?m[--k].prototype[d]:m[0].prototype[d]["\\unknown"];break}else if(0<a.getInheritedLevel(c,m[k])){h=m[k].prototype[d];break}}if(h)return 0==k&&"construct"==d&&(c=l.stacks)&&(!c[0].superClazz&&c[0].con$truct)&&c[0].con$truct.apply(b,[]),h.apply(b,
e||[]);"construct"!=d&&(a.alert(["j2slib","no class found",e.typeString]),fb(b,c,d,a.getParamsType(e).typeString))};a.superConstructor=function(b,c,d){a.superCall(b,c,"construct",d);c.con$truct&&c.con$truct.apply(b,[])};a.CastedNull=function(b){this.clazzName=b?b instanceof String?b:b instanceof Function?a.getClassName(b,!0):""+b:"Object";this.toString=function(){return null};this.valueOf=function(){return null}};a.castNullAs=function(b){return new a.CastedNull(b)};a._initializingException=!1;a._callingStackTraces=
[];var b=function(){this.toString=function(){return"J2S MethodException"}},c;try{null.hello()}catch(d){if(k=function(a,b,c){c||(c="[^\\s]+");var d=a.indexOf(b);a=a.substring(0,d)+c+a.substring(d+b.length);return RegExp("^"+a+"$")},/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){var k=d.message.indexOf(":"),t=d.message.indexOf(":",k+2),F=d.message.substr(k+1,t-k-20);c=function(a){return-1!=a.message.indexOf(F)}}else if(-1!=navigator.userAgent.toLowerCase().indexOf("webkit")){var C=k(d.message,"hello");
c=function(a){return C.test(a.message)}}else C=k(d.message,"$$o$$"),c=function(a){return C.test(a.message)}}a.exceptionOf=function(b,d){if(b.__CLASS_NAME__)return a.instanceOf(b,d);b.getMessage||(b.getMessage=function(){return""+b+(b.stack?"\n"+b.stack:"")});b.printStackTrace||(b.printStackTrace=function(){});if(d==Error){if(0>(""+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<a&&(c=c.caller);e++){var h=c.toString?c.toString().substring(0,c.toString().indexOf("{")):"<native method>",b=b+(e+" "+(c.exName?(c.claxxOwner?c.claxxOwner.__CLASS_NAME__+".":"")+c.exName+h.replace(/function /,""):h)+"\n");if(c==c.caller){b+="<recursing>\n";break}if(d)for(var h=c.arguments,k=0;k<h.length;k++){var l=""+h[k];60<l.length&&(l=l.substring(0,60)+"...");b+=" args["+k+"]="+l.replace(/\s+/g," ")+"\n"}}return b};a.makeConstructor=
function(b,c,d){a.defineMethod(b,"construct",c,d);b.con$truct&&(b.con$truct.index=b.con$truct.stacks.length)};a.overrideConstructor=function(b,c,d){a.overrideMethod(b,"construct",c,d);b.con$truct&&(b.con$truct.index=b.con$truct.stacks.length)};a.defineMethod=function(j,c,d,h){d.exName=c;h=Ea(h);var k=j.prototype,l=k[c];a._Loader._checkLoad&&K(j,c,h);if(!l||l.claxxOwner===j&&l.funParams==h)return d.funParams=h,d.claxxOwner=j,d.exClazz=j,k[c]=d;var m=null,q=l.stacks;q||(q=[],m=l,l.claxxOwner&&(q[0]=
m.claxxOwner));if(!l.stacks||l.claxxReference!==j){++P;l=function(){var j;a:{var c=arguments.callee.claxxReference,d=arguments.callee.methodName;j=arguments;fx=this[d];var h=a.getParamsType(j);if(!fx)try{System.out.println(a.getStackTrace(5))}catch(n){}if(e){var k=c.__CLASS_NAME__+" "+d+" ";0>U.indexOf(k)&&(U+=k+"\n");e[k]||(e[k]=0);e[k]++}if(fx.lastParams==h.typeString&&fx.lastClaxxRef===c){if(h.hasCastedNull){c=[];for(d=0;d<j.length;d++)c[d]=j[d]instanceof a.CastedNull?null:j[d]}else c=j;j=fx.lastMethod?
fx.lastMethod.apply(this,c):null}else{fx.lastParams=h.typeString;fx.lastClaxxRef=c;k=fx.stacks;k||(k=c.prototype[d].stacks);for(var r=!1,l=k.length;0<=--l;)if(r||k[l]===c){var m=k[l].prototype[d],z=h,r=j,q=fx,s=[],t=!0,G=void 0;for(G in m)if(92==G.charCodeAt(0)){var u=G.substring(1).split("\\");u.length==z.length&&s.push(u);t=!1}else if(t&&"funParams"==G&&m.funParams){G=m.funParams;u=G.substring(1).split("\\");u.length==z.length&&(s[0]=u);break}G=void 0;if(!(G=0==s.length)){G=void 0;for(var G=[],
Q=s.length,u=0;u<Q;u++){for(var x=[],za=!0,D=s[u].length,C=0;C<D;C++)if(x[C]=a.getInheritedLevel(z[C],s[u][C]),0>x[C]){za=!1;break}za&&(x[z.length]=u,G.push(x))}if(0==G.length)G=null;else{Q=G[0];for(u=1;u<G.length;u++){x=!0;for(C=0;C<z.length;C++)if(Q[C]<G[u][C]){x=!1;break}x&&(Q=G[u])}G=s[Q[z.length]].join("\\")}G=!(s=G)}if(G)r=new b;else{m=t?m:m["\\"+s];t=null;if(z.hasCastedNull){t=[];for(z=0;z<r.length;z++)t[z]=r[z]instanceof a.CastedNull?null:r[z]}else t=r;q.lastMethod=m;r=m.apply(this,t)}if(!(r instanceof
b)){j=r;break a}r=!0}"construct"!=d&&fb(this,c,d,h.typeString);j=void 0}}return j};l.methodName=c;l.claxxReference=j;l=k[c]=l;c=[];for(k=0;k<q.length;k++)c[k]=q[k];l.stacks=c}q=l.stacks;0>rb(q,j)&&q.push(j);m&&(m.claxxOwner===j?(l[m.funParams]=m,m.claxxOwner=null,m.funParams=null):m.claxxOwner||(l["\\unknown"]=m));d.exClazz=j;l[h]=d;return l};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[e]&&(b+=c[e]+"\t"+e+"\n",d++);b="Duplicates: "+d+"\n\n"+b;System.out.println(b);a||alert(b)};var rb=function(a,b){if(a&&b)for(var c=a.length;0<=--c;)if(a[c]===b)return c;return-1},Ya=function(a,b){var c=rb(a,b);if(0<=c){for(var d=a.length-1;c<d;c++)a[c]=a[c+1];a.length--;return!0}},Ea=function(a){return a?
a.replace(/~([NABSO])/g,function(a,b){switch(b){case "N":return"n";case "B":return"b";case "S":return"String";case "O":return"Object";case "A":return"Array"}return"Unknown"}).replace(/\s+/g,"").replace(/^|,/g,"\\").replace(/\$/g,"org.eclipse.s"):"\\void"};a.overrideMethod=function(b,c,d,e){d.exName=c;e=Ea(e);a._Loader._checkLoad&&K(b,c,e);d.funParams=e;d.claxxOwner=b;return b.prototype[c]=d};var U="";a.getProfile=function(){var a="";if(e){var a=[],b;for(b in e){var c=""+e[b];a.push(" ".substring(c.length)+
c+"\t"+b)}a=a.sort().reverse().join("\r\n");e={}}return a};a.getParamsType=function(b){var c=b.length;switch(c){case 0:var d=["void"];d.typeString="\\void";return d;case 1:switch(typeof obj){case "number":return d=["n"],d.typeString="\\n",d;case "boolean":return d=["b"],d.typeString="\\b",d}}d=[];d.hasCastedNull=!1;if(b)for(var e=0;e<c;e++)d[e]=a.getClassName(b[e]),b[e]instanceof a.CastedNull&&(d.hasCastedNull=!0);d.typeString="\\"+d.join("\\");return d};var P=0;a.allPackage={};a.allClasses={};a.lastPackageName=
null;a.lastPackage=null;a.unloadedClasses=[];a.declarePackage=function(b){if(a.lastPackageName==b)return a.lastPackage;if(b&&b.length){for(var c=b.split(/\./),d=a.allPackage,e=0;e<c.length;e++)d[c[e]]||(d[c[e]]={__PKG_NAME__:d.__PKG_NAME__?d.__PKG_NAME__+"."+c[e]:c[e]},0==e&&a.setGlobal(c[e],d[c[e]])),d=d[c[e]];a.lastPackageName=b;return a.lastPackage=d}};a.evalType=function(b,c){var d=b.lastIndexOf(".");if(-1!=d){var e=b.substring(0,d),e=a.declarePackage(e),d=b.substring(d+1);return e[d]}if(c)return window[b];
switch(b){case "string":return String;case "number":return Number;case "object":return a._O;case "boolean":return Boolean;case "function":return Function;case "void":case "undefined":case "unknown":return b;case "NullObject":return NullObject;default:return window[b]}};a.defineType=function(b,c,d,e){var h=a.unloadedClasses[b];h&&(c=h);h=b.lastIndexOf(".");if(-1!=h){var k=b.substring(0,h),k=a.declarePackage(k),h=b.substring(h+1);if(k[h])return k[h];k[h]=c}else{if(window[b])return window[b];a.setGlobal(b,
c)}a.decorateAsType(c,b,d,e);b=a._innerFunctions;c.defineMethod=b.defineMethod;c.defineStaticMethod=b.defineStaticMethod;c.makeConstructor=b.makeConstructor;return c};var Fa=!1;-1!=navigator.userAgent.indexOf("Safari")&&(k=navigator.userAgent,t=k.indexOf("Version/"),-1!=t&&(k=k.substring(t+8),Fa=4<=parseFloat(k)));a.instantialize=function(a,b){if(!b||!(1==b.length&&b[0]&&b[0]instanceof s)){a instanceof Number&&(a.valueOf=function(){return this});if(Fa){for(var c=[],d=0;d<b.length;d++)c[d]=b[d];b=
c}(c=a.construct)?a.con$truct?a.getClass().superClazz?c.claxxOwner&&c.claxxOwner===a.getClass()||c.stacks&&c.stacks[c.stacks.length-1]==a.getClass()?c.apply(a,b):(c.claxxOwner&&!c.claxxOwner.superClazz&&c.claxxOwner.con$truct?c.claxxOwner.con$truct.apply(a,[]):c.stacks&&(1==c.stacks.length&&!c.stacks[0].superClazz)&&c.stacks[0].con$truct.apply(a,[]),c.apply(a,b),a.con$truct.apply(a,[])):(a.con$truct.apply(a,[]),c.apply(a,b)):c.apply(a,b):a.con$truct&&a.con$truct.apply(a,[])}};a.innerFunctionNames=
"isInstance equals hashCode getName getCanonicalName getClassLoader getResource getResourceAsStream defineMethod defineStaticMethod makeConstructor".split(" ");a._innerFunctions={isInstance:function(b){return a.instanceOf(b,this)},equals:function(a){return this===a},hashCode:function(){return this.getName().hashCode()},toString:function(){return"class "+this.getName()},getName:function(){return a.getClassName(this,!0)},getCanonicalName:function(){return this.__CLASS_NAME__},getClassLoader:function(){var b=
this.__CLASS_NAME__,c=a._Loader.getClasspathFor(b),d=c.lastIndexOf(b.replace(/\./g,"/")),c=-1!=d?c.substring(0,d):a._Loader.getClasspathFor(b,!0),b=a._Loader.requireLoaderByBase(c);b.getResourceAsStream=a._innerFunctions.getResourceAsStream;b.getResource=a._innerFunctions.getResource;return b},getResource:function(a){return(a=this.getResourceAsStream(a))?a.url:null},getResourceAsStream:function(b){if(!b)return null;b=b.replace(/\\/g,"/");var c=null,d=b,d=this.__CLASS_NAME__;2==arguments.length&&0!=
b.indexOf("/")&&(b="/"+b);if(0==b.indexOf("/"))if(2==arguments.length?(c=arguments[1])||(c=a.binaryFolders[0]):a._Loader&&(c=a._Loader.getClasspathFor(d,!0)),c){var c=c.replace(/\\/g,"/"),e=c.length,e=c.charAt(e-1);"/"!=e&&(c+="/");d=c+b.substring(1)}else d=b.substring(1);else{if(this.base)c=this.base;else if(a._Loader)if(c=a._Loader.getClasspathFor(d),e=c.lastIndexOf(d.replace(/\./g,"/")),-1!=e)c=c.substring(0,e);else if(e=-1,c.indexOf(".z.js")==c.length-5&&-1!=(e=c.lastIndexOf("/")))for(var c=c.substring(0,
e+1),e=d.split(/\./),h=1;h<e.length;h++){for(var k="/",l=0;l<h;l++)k+=e[l]+"/";if(k.length>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 q=document.location.href.split("?")[0].split("/");
q[q.length-1]=d;d=q.join("/")}c=new java.net.URL(d)}catch(s){}q=null==c?null:m._getFileData(d.toString());if(!q||"error"==q||0==q.indexOf("[Exception"))return null;q=(new java.lang.String(q)).getBytes();q=new java.io.BufferedInputStream(new java.io.ByteArrayInputStream(q));q.url=c;return q},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 Pa=
[];a.pu$h=function(a){a||(a=self.c$);a&&Pa.push(a)};a.p0p=function(){return Pa.pop()};a.decorateAsClass=function(b,c,d,e,h,k){var l=null;c&&(l=c.__PKG_NAME__,l||(l=c.__CLASS_NAME__));var m=(l?l+".":"")+d;a._Loader._classPending[m]&&(delete a._Loader._classPending[m],a._Loader._classCountOK++,a._Loader._classCountPending--);a._Loader&&a._Loader._checkLoad&&System.out.println("decorating class "+l+"."+d);(l=a.unloadedClasses[m])&&(b=l);db(b,c,d);k?a.inheritClass(b,e,k):e&&a.inheritClass(b,e);h&&a.implementOf(b,
h);return b};var db=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<c.length;d++)b[c[d]]=a._innerFunctions[c[d]];a._Loader&&a._Loader.updateNodeForFunctionDecoration(e)};a.declareInterface=function(b,c,d){var e=function(){};db(e,b,c);d&&a.implementOf(e,d);return e};a.declareType=function(b,c,d,e,h){return a.decorateAsClass(function(){a.instantialize(this,
arguments)},b,c,d,e,h)};a.declareAnonymous=function(b,c,d,e,h){return a.decorateAsClass(function(){a.prepareCallback(this,arguments);a.instantialize(this,arguments)},b,c,d,e,h)};a.decorateAsType=function(b,c,d,e,h,k){a.extendJO(b,c);b.equals=a._innerFunctions.equals;b.getName=a._innerFunctions.getName;if(k)for(c=0;c<a.innerFunctionNames.length;c++)k=a.innerFunctionNames[c],b[k]=a._innerFunctions[k];h?a.inheritClass(b,d,h):d&&a.inheritClass(b,d);e&&a.implementOf(b,e);return b};Number.prototype._numberToString=
Number.prototype.toString;a.declarePackage("java.io");a.declarePackage("java.lang.annotation");a.declarePackage("java.lang.instrument");a.declarePackage("java.lang.management");a.declarePackage("java.lang.reflect");a.declarePackage("java.lang.ref");java.lang.ref.reflect=java.lang.reflect;a.declarePackage("java.util");a.declarePackage("java.security");a.declareInterface(java.io,"Closeable");a.declareInterface(java.io,"DataInput");a.declareInterface(java.io,"DataOutput");a.declareInterface(java.io,
"Externalizable");a.declareInterface(java.io,"Flushable");a.declareInterface(java.io,"Serializable");a.declareInterface(java.lang,"Iterable");a.declareInterface(java.lang,"CharSequence");a.declareInterface(java.lang,"Cloneable");a.declareInterface(java.lang,"Appendable");a.declareInterface(java.lang,"Comparable");a.declareInterface(java.lang,"Runnable");a.declareInterface(java.util,"Comparator");java.lang.ClassLoader={__CLASS_NAME__:"ClassLoader"};var fb=function(b,c,d,e){b="";e&&(b=e.substring(1).replace(/\\/g,
","));c=(d&&"construct"!=d?"Method":"Constructor")+" "+a.getClassName(c,!0)+"."+d+"("+b+") is not found!";throw new java.lang.NoSuchMethodException(c);};a.prepareCallback=function(b,c){var d=c[0];if(b&&d&&d!==window){var e=a.getClassName(d,!0),h={};if(b.b$)for(var k in b.b$)h[k]=b.b$[k];b.b$=h;h[e]=d;for(e=a.getClass(d);e.superClazz;)e=e.superClazz,h[a.getClassName(e,!0)]=d;if(d=d.b$)for(k in d)h[k]=d[k]}for(h=0;h<c.length-1;h++)c[h]=c[h+1];0<c.length&&c.length--};a.innerTypeInstance=function(b,c,
d){b||(b=arguments.callee.caller);var e;if(d||c.$finals)if(e=new b(c,a.inheritArgs),d)if(c.f$){var h={},k;for(k in c.f$)h[k]=c.f$[k];for(k in d)h[k]=d[k];e.f$=h}else e.f$=d;else c.f$&&(e.f$=c.f$);else switch(arguments.length){case 3:return new b(c);case 4:return c.__CLASS_NAME__==b.__CLASS_NAME__&&arguments[3]===a.inheritArgs?c:new b(c,arguments[3]);case 5:return new b(c,arguments[3],arguments[4]);case 6:return new b(c,arguments[3],arguments[4],arguments[5]);case 7:return new b(c,arguments[3],arguments[4],
arguments[5],arguments[6]);case 8:return new b(c,arguments[3],arguments[4],arguments[5],arguments[6],arguments[7]);case 9:return new b(c,arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8]);case 10:return new b(c,arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9]);default:e=new b(c,a.inheritArgs)}k=arguments.length-3;for(h=Array(k);0<=--k;)h[k]=arguments[k+3];a.instantialize(e,h);return e};a.cloneFinals=function(){for(var a={},b=arguments.length/
2;0<=--b;)a[arguments[b+b]]=arguments[b+b+1];return a};a.isClassDefined=a.isDefinedClass=function(b){if(!b)return!1;if(a.allClasses[b])return!0;for(var c=b.split(/\./),d=null,e=0;e<c.length;e++)if(!(d=d?d[c[e]]:a.allPackage[c[0]]))return!1;return d&&(a.allClasses[b]=!0)};a.defineEnumConstant=function(a,b,c,d,e){e=e?new e:new a;e.$name=b;e.$ordinal=c;d&&d.length&&e.construct.apply(e,d);a[b]=e;a.prototype[b]=e;a["$ values"]||(a["$ values"]=[],a.values=function(){return this["$ values"]});a["$ values"].push(e);
return e};a.floatToInt=function(a){return isNaN(a)?0:0>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;var gb=function(a,b){a||(a=0);if("object"==typeof a)var c=a;else for(var c=Array(a),d=0;d<a;d++)c[d]=0;c.BYTES_PER_ELEMENT=b>>3;c._fake=!0;return c},va=function(a,b){a||(a=
0);b||(b=this.length);if(this._fake){var c=new this.constructor(b-a);System.arraycopy(this,a,c,0,b-a);return c}return new this.constructor(this.buffer.slice(a*this.BYTES_PER_ELEMENT,b*this.BYTES_PER_ELEMENT))};!0==(a.haveInt32=!!(self.Int32Array&&self.Int32Array!=Array))?Int32Array.prototype.sort||(Int32Array.prototype.sort=Array.prototype.sort):(Int32Array=function(a){return gb(a,32)},Int32Array.prototype.sort=Array.prototype.sort,Int32Array.prototype.toString=function(){return"[object Int32Array]"});
Int32Array.prototype.slice||(Int32Array.prototype.slice=function(){return va.apply(this,arguments)});Int32Array.prototype.clone=function(){var a=this.slice();a.BYTES_PER_ELEMENT=4;return a};!0==(a.haveFloat64=!!(self.Float64Array&&self.Float64Array!=Array))?Float64Array.prototype.sort||(Float64Array.prototype.sort=Array.prototype.sort):(Float64Array=function(a){return gb(a,64)},Float64Array.prototype.sort=Array.prototype.sort,Float64Array.prototype.toString=function(){return"[object Float64Array]"});
Float64Array.prototype.slice||(Float64Array.prototype.slice=function(){return va.apply(this,arguments)});Float64Array.prototype.clone=function(){return this.slice()};a.newArray=function(a,b,c,d){if(-1!=a||2==arguments.length)return la(arguments,0);a=b.slice(c,d);a.BYTES_PER_ELEMENT=b.BYTES_PER_ELEMENT;return a};var la=function(a,b){var c=a[0];"string"==typeof c&&(c=c.charCodeAt(0));var d=a.length-1,e=a[d];if(1<d){for(var e=Array(d),h=0;h<d;h++)e[h]=a[h+1];d=Array(c);for(h=0;h<c;h++)d[h]=la(e,b);return d}0<
b&&0>c&&(c=e);switch(b){case 8:return d=new Int8Array(c),d.BYTES_PER_ELEMENT=1,d;case 32:return d=new Int32Array(c),d.BYTES_PER_ELEMENT=4,d;case 64:return d=new Float64Array(c),d.BYTES_PER_ELEMENT=8,d;default:d=0>c?e:Array(c);d.BYTES_PER_ELEMENT=0;if(0<c&&null!=e)for(h=c;0<=--h;)d[h]=e;return d}};a.newByteArray=function(){return la(arguments,8)};a.newIntArray=function(){return la(arguments,32)};a.newFloatArray=function(){return la(arguments,64)};a.newDoubleArray=a.newFloatArray;a.newLongArray=a.newShortArray=
a.newIntArray;a.newCharArray=a.newBooleanArray=a.newArray;!0==(a.haveInt8=!!self.Int8Array)?(Int8Array.prototype.sort||(Int8Array.prototype.sort=Array.prototype.sort),Int8Array.prototype.slice||(Int8Array.prototype.slice=function(){return va.apply(this,arguments)})):a.newByteArray=a.newIntArray;Int8Array.prototype.clone=function(){var a=this.slice();a.BYTES_PER_ELEMENT=1;return a};a.isAB=function(a){return a&&"object"==typeof a&&1==a.BYTES_PER_ELEMENT};a.isAI=function(a){return a&&"object"==typeof a&&
4==a.BYTES_PER_ELEMENT};a.isAF=function(a){return a&&"object"==typeof a&&8==a.BYTES_PER_ELEMENT};a.isAS=function(a){return a&&"object"==typeof a&&a.constructor==Array&&("string"==typeof a[0]||"undefined"==typeof a[0])};a.isAII=function(b){return b&&"object"==typeof b&&a.isAI(b[0])};a.isAFF=function(b){return b&&"object"==typeof b&&a.isAF(b[0])};a.isAFFF=function(b){return b&&"object"==typeof b&&a.isAFF(b[0])};a.isASS=function(b){return b&&"object"==typeof b&&a.isAS(b[0])};a.isAFloat=function(b){return b&&
"object"==typeof b&&b.constructor==Array&&a.instanceOf(b[0],Float)};a.isAP=function(b){return b&&"JU.P3"==a.getClassName(b[0])};a.defineStatics=function(a){for(var b=arguments.length,c=(b-1)/2;0<=--c;){var d=arguments[--b],e=arguments[--b];a[e]=a.prototype[e]=d}};a.prepareFields=function(a,b){var c=[];if(a.con$truct)for(var d=a.con$truct.stacks,e=0;e<d.length;e++)c[e]=d[e];d=a.con$truct=function(){var a=arguments.callee.stacks;if(a)for(var b=0;b<a.length;b++)a[b].apply(this,[])};a.prototype.con$truct=
d;c.push(b);a.con$truct.stacks=c;a.con$truct.index=0};a.checkPrivateMethod=function(){me=arguments.callee.caller;caller=arguments.callee.caller.caller;var b="\\"+a.getParamsType(arguments[0]).join("\\");me.privateNote||(me.privateNote="You are seeing this note because the method "+me.exName+b+" in class "+me.exClazz.__CLASS_NAME__+" has a superclass method by the same name (possibly with the same parameters) that is private and therefore might be called improperly from this class. If your code does not run properly, or you want to make it run faster, change the name of this method to something else.",
System.out.println(me.privateNote),alert(me.privateNote));return null};java.lang.Object=a._O;a._O.getName=a._innerFunctions.getName;java.lang.System=System={props:null,$props:{},arraycopy:function(a,b,c,d,e){if(a!==c||b>d)for(;0<=--e;)c[d++]=a[b++];else{d+=e;for(b+=e;0<=--e;)a[--d]=a[--b]}},currentTimeMillis:function(){return(new Date).getTime()},gc:function(){},getProperties:function(){return System.props},getProperty:function(a,b){if(System.props)return System.props.getProperty(a,b);var c=System.$props[a];
if("undefined"!=typeof c)return c;if(0<a.indexOf(".")){c=null;switch(a){case "java.version":case "file.separator":case "path.separator":c="/";break;case "line.separator":c=0<=navigator.userAgent.indexOf("Windows")?"\r\n":"\n";break;case "os.name":case "os.version":c=navigator.userAgent}if(c)return System.$props[a]=c}return 1==arguments.length?null:null==b?a:b},getSecurityManager:function(){return null},setProperties:function(a){System.props=a},lineSeparator:function(){return"\n"},setProperty:function(a,
b){if(!System.props)return System.$props[a]=b;System.props.setProperty(a,b)}};System.identityHashCode=function(b){return null==b?0:b._$hashcode||(b._$hashcode=++a._hashCode)};System.out=new a._O;System.out.__CLASS_NAME__="java.io.PrintStream";System.out.print=function(){};System.out.printf=function(){};System.out.println=function(){};System.out.write=function(){};System.err=new a._O;System.err.__CLASS_NAME__="java.io.PrintStream";System.err.print=function(){};System.err.printf=function(){};System.err.println=
function(){};System.err.write=function(){};a.popup=a.assert=a.log=a.error=window.alert;Thread=function(){};Thread.J2S_THREAD=Thread.prototype.J2S_THREAD=new Thread;Thread.currentThread=Thread.prototype.currentThread=function(){return this.J2S_THREAD};a.innerFunctionNames=a.innerFunctionNames.concat("getSuperclass isAssignableFrom getConstructor getDeclaredMethod getDeclaredMethods getMethod getMethods getModifiers newInstance".split(" "));a._innerFunctions.getSuperclass=function(){return this.superClazz};
a._innerFunctions.isAssignableFrom=function(b){return 0<=a.getInheritedLevel(b,this)};a._innerFunctions.getConstructor=function(){return new java.lang.reflect.Constructor(this,[],[],java.lang.reflect.Modifier.PUBLIC)};a._innerFunctions.getDeclaredMethods=a._innerFunctions.getMethods=function(){var a=[],b=this.prototype,c;for(c in b)"function"==typeof b[c]&&!b[c].__CLASS_NAME__&&a.push(new java.lang.reflect.Method(this,c,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC));b=this;for(c in b)"function"==
typeof b[c]&&!b[c].__CLASS_NAME__&&a.push(new java.lang.reflect.Method(this,c,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC|java.lang.reflect.Modifier.STATIC));return a};a._innerFunctions.getDeclaredMethod=a._innerFunctions.getMethod=function(a){var b=this.prototype,c;for(c in b)if(a==c&&"function"==typeof b[c]&&!b[c].__CLASS_NAME__)return new java.lang.reflect.Method(this,c,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC);b=this;for(c in b)if(a==c&&"function"==typeof b[c]&&!b[c].__CLASS_NAME__)return new java.lang.reflect.Method(this,
c,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC|java.lang.reflect.Modifier.STATIC);return null};a._innerFunctions.getModifiers=function(){return java.lang.reflect.Modifier.PUBLIC};a._innerFunctions.newInstance=function(a){switch(null==a?0:a.length){case 0:return new this;case 1:return new this(a[0]);case 2:return new this(a[0],a[1]);case 3:return new this(a[0],a[1],a[2]);case 4:return new this(a[0],a[1],a[2],a[3]);default:for(var b="new "+this.__CLASS_NAME__+"(",c=0;c<a.length;c++)b+=(0==
c?"":",")+"a["+c+"]";return eval(b+")")}};k=a.innerFunctionNames;for(t=0;t<k.length;t++)a._O[k[t]]=a._innerFunctions[k[t]],Array[k[t]]=a._innerFunctions[k[t]];a._Loader=a.ClazzLoader=function(){};var x=function(){this.parents=[];this.musts=[];this.optionals=[];this.onLoaded=this.path=this.name=this.declaration=null;this.status=0;this.random=0.13412};(function(a,b){b._checkLoad=m._checkLoad;b.updateNodeForFunctionDecoration=function(a){(a=I(a))&&a.status==x.STATUS_KNOWN&&window.setTimeout(function(a){return function(){updateNode(a)}}(a),
1)};x.prototype.toString=function(){return this.name||this.path||"ClazzNode"};x.STATUS_UNKNOWN=0;x.STATUS_KNOWN=1;x.STATUS_CONTENT_LOADED=2;x.STATUS_MUSTS_LOADED=3;x.STATUS_DECLARED=4;x.STATUS_LOAD_COMPLETE=5;var c=[];b.requireLoaderByBase=function(a){for(var d=0;d<c.length;d++)if(c[d].base==a)return c[d];d=new b;d.base=a;c.push(d);return d};var d=new x,e={},h=0,k=6,l=navigator.userAgent.toLowerCase(),q=-1!=l.indexOf("opera"),s=-1!=l.indexOf("msie")&&!q,g=-1!=l.indexOf("gecko");if(q&&(k=1,q=l.indexOf("opera/"),
-1!=q)){var t=9;try{t=parseFloat(l.subString(q+6))}catch(u){}9.6<=t&&(k=6)}var C;self.Clazz&&a.isClassDefined?isClassDefined=a.isClassDefined:(C={},isClassDefined=function(a){return!0==C[a]});var D=function(a){if(!a||0==a.length)return[];for(var b=null,c=0;c<a.length;c++)if(a[c]){if("$"==a[c].charAt(0))if("."==a[c].charAt(1)){if(!b)continue;var d=b.lastIndexOf(".");-1!=d&&(b=b.substring(0,d),a[c]=b+a[c].substring(1))}else a[c]="org.eclipse.s"+a[c].substring(1);b=a[c]}return a},F=[],E={},K=0;b.loadPackageClasspath=
function(a,c,d,e,g,h){g||(g=0);e||(e=null);h||(h=0);var j=d&&E["@"+a];if(0==g&&(d&&!E["@java"]&&0!=a.indexOf("java")&&null!=window["java.registered"]&&!E["@java"])&&(b.loadPackage("java",e?function(){b.loadPackageClasspath(a,c,d,e,1)}:null),e))return;if(a instanceof Array)if(D(a),e)h<a.length?b.loadPackageClasspath(a[h],c,d,function(){b.loadPackageClasspath(a,c,d,e,1,h+1)},1):e();else for(j=0;j<a.length;j++)b.loadPackageClasspath(a[j],c,d,null);else{switch(a){case "java.*":a="java";case "java":c&&
(g="@net.sf.j2s.ajax",E[g]||(E[g]=c),g="@net.sf.j2s",E[g]||(E[g]=c));break;case "swt":a="org.eclipse.swt";break;case "ajax":a="net.sf.j2s.ajax";break;case "j2s":a="net.sf.j2s";break;default:a.lastIndexOf(".*")==a.length-2&&(a=a.substring(0,a.length-2))}c&&(E["@"+a]=c);d&&!j&&!window[a+".registered"]?(K++,"java"==a&&(a="core"),b.loadClass(a+".package",function(){0==--K&&ba()},!0,!0,1)):e&&e()}};a.loadClass=function(c,d,e){self.Class||(Class=a,Class.forName=a._4Name,JavaObject=a._O);return c&&b.loadClass(c,
d,!0,e,1)};b.loadClass=function(c,g,h,k,l){l||(l=0);null==k&&(k=!1);if("boolean"==typeof g)return a.evalType(c);null!=window["java.registered"]&&!E["@java"]&&b.loadPackage("java");b.keepOnLoading=!0;if(!h&&(K&&c.lastIndexOf(".package")!=c.length-8||0!=c.indexOf("java.")&&!isClassDefined(ca)))La.push([c,g]),System.out.println("loadclass-queuing"+c+ca+" "+isClassDefined(ca));else if((l=isClassDefined(c))||O["@"+c]){if(l&&g&&(h=I(c),!h||h.status>=x.STATUS_LOAD_COMPLETE))k?window.setTimeout(g,25):g()}else{var m=
b.getClasspathFor(c);l=e[m];if(!l)for(k=F.length;0<=--k;)if(F[k].path==m||F[k].name==c){l=!0;break}if(l){if(g&&(l=I(c)))if(l.onLoaded){if(g!=l.onLoaded){var r=l.onLoaded,q=g;l.onLoaded=function(){r();q()}}}else l.onLoaded=g}else{l=a.unloadedClasses[c]&&I(c)||new x;l.name=c;l.path=m;l.isPackage=m.lastIndexOf("package.js")==m.length-10;X(m,c,l);l.onLoaded=g;l.status=x.STATUS_KNOWN;c=!1;for(k=F.length;0<=--k;)if(F[k].status!=x.STATUS_LOAD_COMPLETE){c=!0;break}if(l.isPackage){for(k=F.length;0<=--k&&!F[k].isPackage;)F[k+
1]=F[k];F[++k]=l}else c&&F.push(l);if(!c){var s=!1;g&&(s=ga,ga=!0);h&&(g=null);Ja(d,l,!0);V(l,l.path,l.requiredBy,!1,g?function(){ga=s;g()}:null)}}}};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=[b]);D(b);m._debugCore&&(a=a.replace(/\.z\./,"."));for(var c=b.length;0<=--c;)E["#"+b[c]]=a;E["$"+a]=b};b.registerPackages=function(c,d){for(var e=
b.getClasspathFor(c+".*",!0),g=0;g<d.length;g++)window.Clazz&&a.declarePackage(c+"."+d[g]),b.loadPackageClasspath(c+"."+d[g],e)};b.getClasspathFor=function(c,d,e){var g=E["#"+c];if(!g||d||e){var h,k;if(g){if(c=c.replace(/\./g,"/"),0<=(k=g.lastIndexOf(c))||0<=(k=c.lastIndexOf("/"))&&0<=(k=g.lastIndexOf(c.substring(0,k))))h=g.substring(0,k)}else{for(k=c.length+2;0<=(k=c.lastIndexOf(".",k-2))&&!(h=E["@"+c.substring(0,k)]););d||(c=c.replace(/\./g,"/"))}null==h&&(h=window.Clazz&&a.binaryFolders&&a.binaryFolders.length?
a.binaryFolders[0]:b.binaryFolders&&b.binaryFolders.length?b.binaryFolders[0]:"j2s");g=(h.lastIndexOf("/")==h.length-1?h:h+"/")+(d?"":c.lastIndexOf("/*")==c.length-2?c.substring(0,k+1):c+(!e?".js":"."!=e.charAt(0)?"."+e:e))}return g};b.ignore=function(){var a=1==arguments.length&&arguments[0]instanceof Array?a=arguments[0]:null,b=a?a.length:arguments.length;if(!a)for(var a=Array(b),c=0;c<b;c++)a[c]=arguments[c];D(a);for(c=0;c<b;c++)O["@"+a[c]]=1};b.onScriptLoading=function(){};b.onScriptLoaded=function(){};
b.onScriptInitialized=function(){};b.onScriptCompleted=function(){};b.onClassUnloaded=function(){};b.onGlobalLoaded=function(){};b.keepOnLoading=!0;var L={},O={},U=function(c,d,e,g){if(!g)try{eval(e+";//# sourceURL="+c)}catch(h){if(a._isQuiet)return;c="[Java2Script] The required class file \n\n"+c+(0==e.indexOf("[Exception")&&e.indexOf("data: no")?"\nwas not found.\n":"\ncould not be loaded. Script error: "+h.message+" \n\ndata:\n\n"+e)+"\n\n"+a.getStackTrace();alert(c);a.alert(c);throw h;}b.onScriptLoaded(c,
!1);sa(d)},aa=function(a){return function(){if("interactive"!=a.readyState){try{a.parentNode&&a.parentNode.removeChild(a)}catch(b){}a=null}}},Z=function(a){window["j2s.script.debugging"]||window.setTimeout(aa(a),1)};a._4Name=function(c,d,e){if(a.isClassDefined(c))return a.evalType(c);d=m._isAsync&&d?d._restoreState(c,e):null;if(1==d)return null;if(b.setLoadingMode(d?b.MODE_SCRIPT:"xhr.sync"))return b.loadClass(c,d,!1,!0,1),null;b.loadClass(c);return a.evalType(c)};a.currentPath="";var V=function(c,
d,g,k,l){a.currentPath=d;k&&alert("WHY>>");k=e[d];e[d]=!0;Ya(F,d);M=!0;ra=!1;b._checkLoad&&System.out.println("\t"+d+(g?"\n -- required by "+g:"")+" ajax="+M+" async="+ra);g=d;a._debugging&&(d=d.replace(/\.z\.js/,".js"));k||System.out.println("loadScript "+d);b.onScriptLoading(d);if(M&&!ra){var r=m._getFileData(d);try{U(d,g,r,k)}catch(q){alert(q+" loading file "+d+" "+c.name+" "+a.getStackTrace())}l&&l()}else c={dataType:"script",async:!0,type:"GET",url:d,success:ta(d,!1,l),error:ta(d,!0,l)},h++,
k?setTimeout(c.success,0):m.$ajax(c)},ta=function(c,d,e){a.getStackTrace();return function(){g&&this.timeoutHandle&&(window.clearTimeout(this.timeoutHandle),this.timeoutHandle=null);0<h&&h--;this.onerror=this.onload=null;d&&alert("There was a problem loading "+c);b.onScriptLoaded(c,!0);var a=this,j;j=e?function(){Z(a);sa(c,e)}:function(){Z(a);sa(c)};0<=W?window.setTimeout(function(){sa(c,j)},W):sa(c,j)}},ga=!0,fa=!1,sa=function(c,g){var l=L["@"+c];if(l){var m,r=E["$"+c];if(r)for(var q=0;q<r.length;q++){var t=
r[q];if(t!=l.name&&(m=I(t)))m.status<x.STATUS_CONTENT_LOADED&&(m.status=x.STATUS_CONTENT_LOADED,updateNode(m));else{m=new x;m.name=t;var u=E["#"+t];u||(alert(t+" J2S error in tryToLoadNext"),error("Java2Script implementation error! Please report this bug!"));m.path=u;X(m.path,t,m);m.status=x.STATUS_CONTENT_LOADED;Ja(d,m,!1);updateNode(m)}}if(l instanceof Array)for(q=0;q<l.length;q++)l[q].status<x.STATUS_CONTENT_LOADED&&(l[q].status=x.STATUS_CONTENT_LOADED,updateNode(l[q]));else if(l.status<x.STATUS_CONTENT_LOADED){m=
!1;r=document.getElementsByTagName("SCRIPT");for(q=0;q<r.length;q++)if(s){if(r[q].onreadystatechange&&r[q].onreadystatechange.path==l.path&&"interactive"==r[q].readyState){m=!0;break}}else if(r[q].onload&&r[q].onload.path==l.path){m=!0;break}m||(l.status=x.STATUS_CONTENT_LOADED,updateNode(l))}if(b.keepOnLoading){q=!0;if(m=Ka(x.STATUS_KNOWN))for(S(m);h<k&&(m=Ka(x.STATUS_KNOWN));)S(m);else if(0!=F.length)m=F.shift(),!e[m.path]||0!=F.length||!ga||m.musts.length||m.optionals.length?(Ja(d,m,!0),V(m,m.path,
m.requiredBy,!1)):ga&&(ga=!1);else if(m=H(x.STATUS_KNOWN))for(S(m);h<k&&(m=H(x.STATUS_KNOWN));)S(m);else q=!1;if(!(q||0<h)){l=[Ka,H];r=null;for(q=0;2>q;q++)for(;m=l[q](x.STATUS_CONTENT_LOADED);)1==q&&r===m&&(m.status=x.STATUS_LOAD_COMPLETE),updateNode(m),r=m;for(;!(la=[],!ma(d,c)););for(q=0;2>q;q++)for(r=null;(m=l[q](x.STATUS_DECLARED))&&r!==m;)updateNode(r=m);r=[];for(q=0;2>q;q++)for(;m=l[q](x.STATUS_DECLARED);)r.push(m),m.status=x.STATUS_LOAD_COMPLETE;if(r.length){for(q=0;q<r.length;q++)Da(r[q]);
for(q=0;q<r.length;q++)if(l=r[q].onLoaded)r[q].onLoaded=null,l()}if(g)g();else if(b._classCountPending)for(t in b._classPending){if(m=I(t),System.out.println("class left pending "+t+" "+m),m){updateNode(m);break}}else b._checkLoad&&(System.out.println("I think I'm done: SAEM call count: "+P),a.showDuplicates(!0));b.onGlobalLoaded()}}}},la=[],ma=function(a,c){var d=la,e=d.length;d.push(a);for(var g=e;0<=--g&&!(d[g]===a&&d[g].status>=x.STATUS_DECLARED););if(0<=g){if(b._checkLoad){var h;System.out.println("cycle found loading "+
c+" for "+a)}for(;g<e;g++){var j=d[g];j.status=x.STATUS_LOAD_COMPLETE;Da(j);for(h=0;h<j.parents.length;h++)updateNode(j.parents[h]);j.parents=[];var k=j.onLoaded;b._checkLoad&&(h="cycle setting status to LOAD_COMPLETE for "+j.name+(k?" firing "+k.toString():""),System.out.println(h));k&&(j.onLoaded=null,k())}d.length=0;return!0}j=[a.musts,a.optionals];for(h=0;2>h;h++){k=j[h];for(g=k.length;0<=--g;)if(k[g].status==x.STATUS_DECLARED&&ma(k[g],c))return!0}d.length=e;return!1};b._classCountPending=0;b._classCountOK=
0;b._classPending={};b.showPending=function(){var a=[],c;for(c in b._classPending){var d=I(c);d?(a.push(d),System.out.println(va("","",d,"",0))):alert("No node for "+c)}return a};var va=function(a,b,c,d,e){b+="--"+c.name;a+=b+"\n";if(5<e)return a+(d+" ...\n");d+="\t";a+=d+"status: "+c.status+"\n";if(c.parents&&c.parents.length&&c.parents[0]&&c.parents[0].name){a+=d+"parents: "+c.parents.length+"\n";for(var g=0;g<c.parents.length;g++)a=va(a,b,c.parents[g],d+"\t",e+1);a+="\n"}return a};updateNode=function(a){if(!a.name||
a.status>=x.STATUS_LOAD_COMPLETE)Da(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<x.STATUS_DECLARED&&isClassDefined(g.name)){var h=[];g.status=x.STATUS_LOAD_COMPLETE;Da(g);if(g.declaration&&g.declaration.clazzList){for(var j=0,k=g.declaration.clazzList,l=k.length;j<l;j++){var m=I(k[j]);m&&(m.status!=x.STATUS_LOAD_COMPLETE&&m!==g)&&(m.status=g.status,m.declaration=null,Da(m),m.onLoaded&&h.push(m))}g.declaration=null}g.onLoaded&&
h.push(g);for(j=0;j<h.length;j++)if(k=h[j].onLoaded)h[j].onLoaded=null,k()}else g.status==x.STATUS_CONTENT_LOADED&&updateNode(g),g.status<x.STATUS_DECLARED&&(c=!1);a.musts.length!=d&&(e=d=a.musts.length,c=!0)}if(c){if(a.status<x.STATUS_DECLARED){if(e=a.declaration)e(),e.executed=!0;b._checkLoad&&b._classPending[a.name]&&(delete b._classPending[a.name],b._classCountOK,b._classCountPending--);a.status=x.STATUS_DECLARED;C&&(C[a.name]=!0);b.onScriptInitialized(a.path);if(a.declaration&&a.declaration.clazzList){j=
0;k=a.declaration.clazzList;for(l=k.length;j<l;j++)if((m=I(k[j]))&&m.status!=x.STATUS_DECLARED&&m!==a)m.status=x.STATUS_DECLARED,C&&(C[m.name]=!0),b.onScriptInitialized(m.path)}}c=x.STATUS_DECLARED;if(0==a.optionals.length&&0==a.musts.length||a.status>x.STATUS_KNOWN&&!a.declaration||Ta(a.musts,x.STATUS_LOAD_COMPLETE)&&Ta(a.optionals,x.STATUS_LOAD_COMPLETE)){c=x.STATUS_LOAD_COMPLETE;if(!wa(a,c))return!1;if(a.declaration&&a.declaration.clazzList){j=0;k=a.declaration.clazzList;for(l=k.length;j<l;j++)if((m=
I(k[j]))&&m.status!=c&&m!==a)if(m.declaration=null,!wa(m,c))return!1}}if(a.parents&&a.parents.length){for(e=0;e<a.parents.length;e++)j=a.parents[e],j.status<c&&updateNode(j,j.name);c==x.STATUS_LOAD_COMPLETE&&(a.parents=[])}}}};var Ta=function(a,b){for(var c=a.length;0<=--c;)if(a[c].status<b)return!1;return!0},wa=function(a,c){a.status=c;b.onScriptCompleted(a.path);var d=a.onLoaded;if(d&&(a.onLoaded=null,d(),!b.keepOnLoading))return!1;Da(a);return!0},ya={"r0.13412":1},Ba=function(){for(;;){var a=Math.random(),
b="r"+a;if(!ya[b])return ya[b]=1,d.random=a}},I=function(a){Ba();return Ea(a,d)},H=function(a){Ba();return Ca(d,a)},Ka=function(a){return qa(d,a)},Ea=function(a,b){var c;return b.name==a?b:(c=$a(a,b.musts))||(c=$a(a,b.optionals))?c:null},$a=function(a,b){for(var c=d.random,e=b.length;0<=--e;){var g=b[e];if(g.name==a||g.random!=c&&(g.random=c,g=Ea(a,g)))return g}return null},Aa=function(a,b){return a.status==b&&(b!=x.STATUS_KNOWN||!e[a.path])&&(b==x.STATUS_DECLARED||!isClassDefined(a.name))},qa=function(a,
b){for(var c=a.musts.length;0<=--c;){var d=a.musts[c];if(Aa(d,b)||(d=qa(d,b)))return d}return Aa(a,b)?a:null},Ca=function(a,b){var c;return(c=na(a.musts,b))||(c=na(a.optionals,b))||Aa(c=a,b)?c:null},na=function(a,b){if(a)for(var c=d.random,e=0;e<a.length;e++){var g=a[e];if(Aa(g,b)||g.random!=c&&(g.random=c,g=Ca(g,b)))return g}return null},R=function(a,c,e,g){if(c instanceof Array){D(c);for(var h=0;h<c.length;h++)R(a,c[h],e,g,c)}else{b._checkLoad&&!b._classPending[c]&&(b._classPending[c]=1,0==b._classCountPending++&&
(b._classCountOK=0),System.out.println("Loading class "+c));h=L["#"+c];h||(h=(h=I(c))?h:new x,h.name=c,h.path=E["#"+c]||"unknown",X(h.path,c,h),h.status=x.STATUS_KNOWN,Ja(d,h,!1));ia(h,a,!0);5==arguments.length&&g&&(g.status=h.status,g.clazzList=arguments[4]);if(h.declaration=g)h.status=x.STATUS_CONTENT_LOADED;ia(h,e,!1)}},ia=function(a,b,c){if(b&&b.length){D(b);for(var d=0;d<b.length;d++){var e=b[d];if(e&&!isClassDefined(e)&&!O["@"+e]){var g=I(e);g||(g=new x,g.name=e,g.status=x.STATUS_KNOWN);g.requiredBy=
a;Ja(a,g,c)}}}};window.Clazz?a.load=R:b.load=R;var X=function(a,b,c){var d="@"+a;if(a=L[d])if(a instanceof Array){for(var d=!1,e=0;e<a.length;e++)if(a[e].name==b){d=!0;break}d||a.push(c)}else L[d]=[a,c];else L[d]=c;L["#"+b]=c},S=function(a){var c=a.name;if(!isClassDefined(c)&&!O["@"+c]){var d=b.getClasspathFor(c);a.path=d;X(d,c,a);if(!e[d])return V(a,d,a.requiredBy,!1),!0}return!1},ca=b.runtimeKeyClass="java.lang.String",La=[];b.getJ2SLibBase=function(){var a=window["j2s.lib"];return a?a.base+("."==
a.alias?"":(a.alias?a.alias:a.version?a.version:"1.0.0")+"/"):null};var ra=!0,M=!1,W=-1;b.MODE_SCRIPT=4;b.MODE_XHR=2;b.MODE_SYNC=1;b.setLoadingMode=function(a,c){var d=!0,e=!0;"string"==typeof a?(a=a.toLowerCase(),0<=a.indexOf("script")?e=!1:a.indexOf("async"),d=!1):a&b.MODE_SCRIPT?e=!1:d=!(a&b.MODE_SYNC);M=e;W=(ra=d)&&0<=c?c:-1;return d};var ba=function(){if(!K&&isClassDefined(ca)){for(var a=La,c=0;c<a.length;c++)b.loadClass(a[c][0],a[c][1]);La=[]}};b.loadZJar=function(a,c){var d=null,e=c instanceof
Array;e?c=c[c.length-1]:d=c==ca?ba:null;b.jarClasspath(a,e?c:[c]);b.loadClass(c,d,!0)};var Fa={},Pa=[],Ja=function(a,b,c){var e=!1;c?(c=a.musts,b.requiredBy||(b.requiredBy=a)):c=a.optionals;Fa[b.name]||(Pa.push(b),Fa[b.name]=b);for(var g=0;g<c.length;g++)if(c[g].name==b.name){e=!0;break}e||(c.push(b),ga&&(0!=b.name.indexOf("java")&&0!=b.name.indexOf("net.sf.j2s.ajax"))&&(fa&&(ga=!1),fa=!0));a:{if(a.name&&a!=d&&a!=b)for(e=0;e<b.parents.length;e++)if(b.parents[e].name==a.name)break a;b.parents.push(a)}},
Da=function(a){var b=a.parents;if(b)for(var c=b.length;0<=--c;)Ya(b[c].musts,a)||Ya(b[c].optionals,a)};a.binaryFolders=b.binaryFolders=[b.getJ2SLibBase()]})(a,a._Loader);a._LoaderProgressMonitor={};var Z=a._LoaderProgressMonitor,L=null,fa=0,O=null,wa=0;Z.DEFAULT_OPACITY=m&&m._j2sLoadMonitorOpacity?m._j2sLoadMonitorOpacity:55;Z.hideMonitor=function(){O.style.display="none"};Z.showStatus=function(a,b){if(!O){var c=document.createElement("DIV");c.id="_Loader-status";c.style.cssText="position:absolute;bottom:4px;left:4px;padding:2px 8px;z-index:"+
(window["j2s.lib"].monitorZIndex||1E4)+";background-color:#8e0000;color:yellow;font-family:Arial, sans-serif;font-size:10pt;white-space:nowrap;";c.onmouseover=ub;O=c;document.body.appendChild(c);ya||(ya=!0)}jb(O);if(null==a)b?ma():Z.hideMonitor();else{O.appendChild(document.createTextNode(""+a));"none"==O.style.display&&(O.style.display="");kb(Z.DEFAULT_OPACITY);var d,c=navigator.userAgent;d=document.body;var e=d.parentNode,h=e.clientHeight;d=d.scrollTop+d.offsetTop;var k=e.scrollTop+e.offsetTop,
c=0>c.indexOf("Opera")&&document.all?0==h?d:k:0>c.indexOf("Gecko")?h==e.offsetHeight&&h==e.scrollHeight?d:k:d;wa!=c&&(wa=c,O.style.bottom=wa+4+"px");b&&ma()}};var jb=function(a){if(a)for(var b=a.childNodes.length;0<=--b;){var c=a.childNodes[b];if(c){c.childNodes&&c.childNodes.length&&jb(c);try{a.removeChild(c)}catch(d){}}}},kb=function(a){L&&a==Z.DEFAULT_OPACITY&&(window.clearTimeout(L),L=null);fa=a;navigator.userAgent.toLowerCase();O.style.filter="Alpha(Opacity="+a+")";O.style.opacity=a/100},ub=
function(){Z.hideMonitor()},ya=!1,ma=function(){"none"!=O.style.display&&(fa==Z.DEFAULT_OPACITY?(L=window.setTimeout(function(){ma()},750),fa-=5):0<=fa-10?(kb(fa-10),L=window.setTimeout(function(){ma()},40)):O.style.display="none")},D=a.Console,aa=System;D.maxTotalLines=1E4;D.setMaxTotalLines=function(a){D.maxTotalLines=0<a?a:999999};D.maxLatency=40;D.setMaxLatency=function(a){D.maxLatency=0<a?a:40};D.pinning=!1;D.enablePinning=function(a){D.pinning=a};D.linesCount=0;D.metLineBreak=!1;D.createConsoleWindow=
function(){var a=document.createElement("DIV");a.style.cssText="font-family:monospace, Arial, sans-serif;";document.body.appendChild(a);return a};var V=String.fromCharCode(160),V=V+(V+V+V);D.consoleOutput=function(a,b){var c=window["j2s.lib"];(c=c&&c.console)&&"string"==typeof c&&(c=document.getElementById(c));if(!c)return!1;if(D.linesCount>D.maxTotalLines){for(var d=0;d<D.linesCount-D.maxTotalLines;d++)c&&0<c.childNodes.length&&c.removeChild(c.childNodes[0]);D.linesCount=D.maxTotalLines}var e=!1;
a=("undefined"==typeof a?"":null==a?"null":""+a).replace(/\t/g,V);if(0<a.length)switch(a.charAt(a.length-1)){case "\n":case "\r":a=1<a.length?a.substring(0,a.length-("\r"==a.charAt(a.length-2)?2:1)):"",e=!0}var h=null;a=a.replace(/\t/g,V);for(var h=a.split(/\r\n|\r|\n/g),d=0,k=h.length-1;d<=k;d++){var l=null;if(D.metLineBreak||0==D.linesCount||1>c.childNodes.length)l=document.createElement("DIV"),c.appendChild(l),l.style.whiteSpace="nowrap",D.linesCount++;else try{l=c.childNodes[c.childNodes.length-
1]}catch(m){l=document.createElement("DIV"),c.appendChild(l),l.style.whiteSpace="nowrap",D.linesCount++}var q=document.createElement("SPAN");l.appendChild(q);q.style.whiteSpace="nowrap";b&&(q.style.color=b);l=h[d];0==l.length&&(l=V);q.appendChild(document.createTextNode(l));D.pinning||(c.scrollTop+=100);D.metLineBreak=d!=k||e}d=c.parentNode.className;!D.pinning&&(d&&-1!=d.indexOf("composite"))&&(c.parentNode.scrollTop=c.parentNode.scrollHeight);D.lastOutputTime=(new Date).getTime()};D.clear=function(){try{D.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]);D.linesCount=0}}catch(e){}};a.alert=function(a){D.consoleOutput(a+"\r\n")};aa.out.print=function(a){D.consoleOutput(a)};aa.out.println=function(a){D.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n")};aa.out.write=function(a,b,c){aa.out.print(String.instantialize(a).substring(b,b+c))};aa.err.__CLASS_NAME__="java.io.PrintStream";aa.err.print=
function(a){D.consoleOutput(a,"red")};aa.err.println=function(a){D.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n","red")};aa.err.write=function(a,b,c){aa.err.print(String.instantialize(a).substring(b,b+c))}}(Clazz,Jmol))};Jmol.___JmolDate="$Date: 2018-01-25 16:07:53 -0600 (Thu, 25 Jan 2018) $";Jmol.___fullJmolProperties="src/org/jmol/viewer/Jmol.properties";Jmol.___JmolVersion="14.29.1";