This repository has been archived by the owner on Nov 23, 2022. It is now read-only.
/
aeon.js
32 lines (32 loc) · 153 KB
/
aeon.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
window.__time=Number(new Date);
/*!
* jQuery JavaScript Library v1.6.4
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
*
* Date: Mon Sep 12 18:54:48 2011 -0400
*/
(function(n,t){function sr(n,r,u){if(u===t&&n.nodeType===1){var f="data-"+r.replace(hr,"-$1").toLowerCase();u=n.getAttribute(f);if(typeof u=="string"){try{u=u==="true"?!0:u==="false"?!1:u==="null"?null:i.isNaN(u)?or.test(u)?i.parseJSON(u):u:parseFloat(u)}catch(e){}i.data(n,r,u)}else u=t}return u}function kt(n){for(var t in n)if(t!=="toJSON")return!1;return!0}function ar(n,r,u){var o=r+"defer",s=r+"queue",f=r+"mark",e=i.data(n,o,t,!0);!e||u!=="queue"&&i.data(n,s,t,!0)||u!=="mark"&&i.data(n,f,t,!0)||setTimeout(function(){i.data(n,s,t,!0)||i.data(n,f,t,!0)||(i.removeData(n,o,!0),e.resolve())},0)}function h(){return!1}function it(){return!0}function yr(n,r,u){var f=i.extend({},u[0]);f.type=n,f.originalEvent={},f.liveFired=t,i.event.handle.call(r,f),f.isDefaultPrevented()&&u[0].preventDefault()}function tu(n){var w,a,e,r,t,s,u,f,c,k,h,p,y,l=[],b=[],v=i._data(this,"events"),o;if(n.liveFired===this||!v||!v.live||n.target.disabled||n.button&&n.type==="click")return;for(n.namespace&&(p=new RegExp("(^|\\.)"+n.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),n.liveFired=this,o=v.live.slice(0),u=0;u<o.length;u++)t=o[u],t.origType.replace(pt,"")===n.type?b.push(t.selector):o.splice(u--,1);for(r=i(n.target).closest(b,n.currentTarget),f=0,c=r.length;f<c;f++)for(h=r[f],u=0;u<o.length;u++)t=o[u],h.selector!==t.selector||p&&!p.test(t.namespace)||h.elem.disabled||(s=h.elem,e=null,(t.preType==="mouseenter"||t.preType==="mouseleave")&&(n.type=t.preType,e=i(n.relatedTarget).closest(t.selector)[0],e&&i.contains(s,e)&&(e=s)),e&&e===s||l.push({elem:s,handleObj:t,level:h.level}));for(f=0,c=l.length;f<c;f++){r=l[f];if(a&&r.level>a)break;n.currentTarget=r.elem,n.data=r.handleObj.data,n.handleObj=r.handleObj,y=r.handleObj.origHandler.apply(r.elem,arguments);if(y===!1||n.isPropagationStopped()){a=r.level,y===!1&&(w=!1);if(n.isImmediatePropagationStopped())break}}return w}function tt(n,t){return(n&&n!=="*"?n+".":"")+t.replace(au,"`").replace(vu,"&")}function ii(n){return!n||!n.parentNode||n.parentNode.nodeType===11}function oi(n,t,r){t=t||0;if(i.isFunction(t))return i.grep(n,function(n,i){var u=!!t.call(n,i,n);return u===r});if(t.nodeType)return i.grep(n,function(n){return n===t===r});if(typeof t=="string"){var u=i.grep(n,function(n){return n.nodeType===1});if(df.test(t))return i.filter(t,u,!r);t=i.filter(t,u)}return i.grep(n,function(n){return i.inArray(n,t)>=0===r})}function dr(n){return i.nodeName(n,"table")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function li(n,t){var r,f,u,h;if(t.nodeType!==1||!i.hasData(n))return;var s=i.expando,e=i.data(n),o=i.data(t,e);if(e=e[s]){r=e.events,o=o[s]=i.extend({},e);if(r){delete o.handle,o.events={};for(f in r)for(u=0,h=r[f].length;u<h;u++)i.event.add(t,f+(r[f][u].namespace?".":"")+r[f][u].namespace,r[f][u],r[f][u].data)}}}function vi(n,t){var r;if(t.nodeType!==1)return;t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(n),r=t.nodeName.toLowerCase(),r==="object"?t.outerHTML=n.outerHTML:r==="input"&&(n.type==="checkbox"||n.type==="radio")?(n.checked&&(t.defaultChecked=t.checked=n.checked),t.value!==n.value&&(t.value=n.value)):r==="option"?t.selected=n.defaultSelected:(r==="input"||r==="textarea")&&(t.defaultValue=n.defaultValue),t.removeAttribute(i.expando)}function nt(n){return"getElementsByTagName"in n?n.getElementsByTagName("*"):"querySelectorAll"in n?n.querySelectorAll("*"):[]}function bi(n){(n.type==="checkbox"||n.type==="radio")&&(n.defaultChecked=n.checked)}function pi(n){i.nodeName(n,"input")?bi(n):"getElementsByTagName"in n&&i.grep(n.getElementsByTagName("input"),bi)}function pu(n,t){t.src?i.ajax({url:t.src,async:!1,dataType:"script"}):i.globalEval((t.text||t.textContent||t.innerHTML||"").replace(lf,"/*$0*/")),t.parentNode&&t.parentNode.removeChild(t)}function ri(n,t,r){var u=t==="width"?n.offsetWidth:n.offsetHeight,f=t==="width"?vf:lu;return u>0?(r!=="border"&&i.each(f,function(){r||(u-=parseFloat(i.css(n,"padding"+this))||0),r==="margin"?u+=parseFloat(i.css(n,r+this))||0:u-=parseFloat(i.css(n,"border"+this+"Width"))||0}),u+"px"):(u=c(n,t,t),(u<0||u==null)&&(u=n.style[t]||0),u=parseFloat(u)||0,r&&i.each(f,function(){u+=parseFloat(i.css(n,"padding"+this))||0,r!=="padding"&&(u+=parseFloat(i.css(n,"border"+this+"Width"))||0),r==="margin"&&(u+=parseFloat(i.css(n,r+this))||0)}),u+"px")}function di(n){return function(t,r){typeof t!="string"&&(r=t,t="*");if(i.isFunction(r))for(var s=t.toLowerCase().split(ni),e=0,h=s.length,u,o,f;e<h;e++)u=s[e],f=/^\+/.test(u),f&&(u=u.substr(1)||"*"),o=n[u]=n[u]||[],o[f?"unshift":"push"](r)}}function k(n,i,r,u,f,e){f=f||i.dataTypes[0],e=e||{},e[f]=!0;for(var h=n[f],c=0,l=h?h.length:0,s=n===ct,o;c<l&&(s||!o);c++)o=h[c](i,r,u),typeof o=="string"&&(!s||e[o]?o=t:(i.dataTypes.unshift(o),o=k(n,i,r,u,o,e)));return!s&&o||e["*"]||(o=k(n,i,r,u,"*",e)),o}function cr(n,r){var u,f,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);f&&i.extend(!0,n,f)}function bt(n,t,r,u){if(i.isArray(t))i.each(t,function(t,f){r||br.test(n)?u(n,f):bt(n+"["+(typeof f=="object"||i.isArray(f)?t:"")+"]",f,r,u)});else if(r||t==null||typeof t!="object")u(n,t);else for(var f in t)bt(n+"["+f+"]",t[f],r,u)}function ef(n,i,r){var h=n.contents,f=n.dataTypes,c=n.responseFields,o,u,e,s;for(u in c)u in r&&(i[c[u]]=r[u]);while(f[0]==="*")f.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("content-type"));if(o)for(u in h)if(h[u]&&h[u].test(o)){f.unshift(u);break}if(f[0]in r)e=f[0];else{for(u in r){if(!f[0]||n.converters[u+" "+f[0]]){e=u;break}s||(s=u)}e=e||s}if(e)return e!==f[0]&&f.unshift(e),r[e]}function nf(n,r){n.dataFilter&&(r=n.dataFilter(r,n.dataType));for(var v=n.dataTypes,h={},a,p=v.length,l,f=v[0],s,y,u,e,o,c=1;c<p;c++){if(c===1)for(a in n.converters)typeof a=="string"&&(h[a.toLowerCase()]=n.converters[a]);s=f,f=v[c];if(f==="*")f=s;else if(s!=="*"&&s!==f){y=s+" "+f,u=h[y]||h["* "+f];if(!u){o=t;for(e in h){l=e.split(" ");if(l[0]===s||l[0]==="*"){o=h[l[1]+" "+f];if(o){e=h[e],e===!0?u=o:o===!0&&(u=e);break}}}}u||o||i.error("No conversion from "+y.replace(" "," to ")),u!==!0&&(r=u?u(r):o(e(r)))}}return r}function rr(){try{return new n.XMLHttpRequest}catch(t){}}function gu(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function gi(){return setTimeout(rf,0),rt=i.now()}function rf(){rt=t}function l(n,t){var r={};return i.each(nr.concat.apply([],nr.slice(0,t)),function(){r[this]=n}),r}function ur(n){if(!lt[n]){var e=r.body,t=i("<"+n+">").appendTo(e),u=t.css("display");t.remove(),(u==="none"||u==="")&&(f||(f=r.createElement("iframe"),f.frameBorder=f.width=f.height=0),e.appendChild(f),a&&f.createElement||(a=(f.contentWindow||f.contentDocument).document,a.write((r.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),a.close()),t=a.createElement(n),a.body.appendChild(t),u=i.css(t,"display"),e.removeChild(f)),lt[n]=u}return lt[n]}function wt(n){return i.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}var r=n.document,tf=n.navigator,ne=n.location,i=function(){function b(){if(i.isReady)return;try{r.documentElement.doScroll("left")}catch(n){setTimeout(b,1);return}i.ready()}var i=function(n,t){return new i.fn.init(n,t,y)},g=n.jQuery,it=n.$,y,tt=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,p=/\S/,v=/^\s+/,w=/\s+$/,vt=/\d/,ot=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,st=/^[\],:{}\s]*$/,et=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,ut=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ft=/(?:^|:|,)(?:\s*\[)+/g,ht=/(webkit)[ \/]([\w.]+)/,nt=/(opera)(?:.*version)?[ \/]([\w.]+)/,yt=/(msie) ([\w.]+)/,at=/(mozilla)(?:.*? rv:([\w.]+))?/,ct=/-([a-z]|[0-9])/ig,lt=/^-ms-/,rt=function(n,t){return(t+"").toUpperCase()},k=tf.userAgent,e,o,u,d=Object.prototype.toString,h=Object.prototype.hasOwnProperty,s=Array.prototype.push,f=Array.prototype.slice,l=String.prototype.trim,a=Array.prototype.indexOf,c={};return i.fn=i.prototype={constructor:i,init:function(n,u,f){var o,s,e,h;if(!n)return this;if(n.nodeType)return this.context=this[0]=n,this.length=1,this;if(n==="body"&&!u&&r.body)return this.context=r,this[0]=r.body,this.selector=n,this.length=1,this;if(typeof n=="string"){o=n.charAt(0)!=="<"||n.charAt(n.length-1)!==">"||n.length<3?tt.exec(n):[null,n,null];if(o&&(o[1]||!u)){if(o[1])return u=u instanceof i?u[0]:u,h=u?u.ownerDocument||u:r,e=ot.exec(n),e?i.isPlainObject(u)?(n=[r.createElement(e[1])],i.fn.attr.call(n,u,!0)):n=[h.createElement(e[1])]:(e=i.buildFragment([o[1]],[h]),n=(e.cacheable?i.clone(e.fragment):e.fragment).childNodes),i.merge(this,n);s=r.getElementById(o[2]);if(s&&s.parentNode){if(s.id!==o[2])return f.find(n);this.length=1,this[0]=s}return this.context=r,this.selector=n,this}return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n)}return i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return f.call(this,0)},get:function(n){return n==null?this.toArray():n<0?this[this.length+n]:this[n]},pushStack:function(n,t,r){var u=this.constructor();return i.isArray(n)?s.apply(u,n):i.merge(u,n),u.prevObject=this,u.context=this.context,t==="find"?u.selector=this.selector+(this.selector?" ":"")+r:t&&(u.selector=this.selector+"."+t+"("+r+")"),u},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.bindReady(),o.done(n),this},eq:function(n){return n===-1?this.slice(n):this.slice(n,+n+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(f.apply(this,arguments),"slice",f.call(arguments).join(","))},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:s,sort:[].sort,splice:[].splice},i.fn.init.prototype=i.fn,i.extend=i.fn.extend=function(){var s,e,u,r,h,c,n=arguments[0]||{},f=1,l=arguments.length,o=!1;for(typeof n=="boolean"&&(o=n,n=arguments[1]||{},f=2),typeof n=="object"||i.isFunction(n)||(n={}),l===f&&(n=this,--f);f<l;f++)if((s=arguments[f])!=null)for(e in s){u=n[e],r=s[e];if(n===r)continue;o&&r&&(i.isPlainObject(r)||(h=i.isArray(r)))?(h?(h=!1,c=u&&i.isArray(u)?u:[]):c=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(o,c,r)):r!==t&&(n[e]=r)}return n},i.extend({noConflict:function(t){return n.$===i&&(n.$=it),t&&n.jQuery===i&&(n.jQuery=g),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0&&!--i.readyWait||n!==!0&&!i.isReady){if(!r.body)return setTimeout(i.ready,1);i.isReady=!0;if(n!==!0&&--i.readyWait>0)return;o.resolveWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").unbind("ready")}},bindReady:function(){if(o)return;o=i._Deferred();if(r.readyState==="complete")return setTimeout(i.ready,1);if(r.addEventListener)r.addEventListener("DOMContentLoaded",u,!1),n.addEventListener("load",i.ready,!1);else if(r.attachEvent){r.attachEvent("onreadystatechange",u),n.attachEvent("onload",i.ready);var t=!1;try{t=n.frameElement==null}catch(f){}r.documentElement.doScroll&&t&&b()}},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n&&typeof n=="object"&&"setInterval"in n},isNaN:function(n){return n==null||!vt.test(n)||isNaN(n)},type:function(n){return n==null?String(n):c[d.call(n)]||"object"},isPlainObject:function(n){if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!h.call(n,"constructor")&&!h.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}var r;for(r in n);return r===t||h.call(n,r)},isEmptyObject:function(n){for(var t in n)return!1;return!0},error:function(n){throw n;},parseJSON:function(t){if(typeof t!="string"||!t)return null;t=i.trim(t);if(n.JSON&&n.JSON.parse)return n.JSON.parse(t);if(st.test(t.replace(et,"@").replace(ut,"]").replace(ft,"")))return new Function("return "+t)();i.error("Invalid JSON: "+t)},parseXML:function(r){var u,f;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&p.test(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(lt,"ms-").replace(ct,rt)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toUpperCase()===t.toUpperCase()},each:function(n,r,u){var e,f=0,o=n.length,s=o===t||i.isFunction(n);if(u){if(s){for(e in n)if(r.apply(n[e],u)===!1)break}else for(;f<o;)if(r.apply(n[f++],u)===!1)break}else if(s){for(e in n)if(r.call(n[e],e,n[e])===!1)break}else for(;f<o;)if(r.call(n[f],f,n[f++])===!1)break;return n},trim:l?function(n){return n==null?"":l.call(n)}:function(n){return n==null?"":n.toString().replace(v,"").replace(w,"")},makeArray:function(n,t){var u=t||[],r;return n!=null&&(r=i.type(n),n.length==null||r==="string"||r==="function"||r==="regexp"||i.isWindow(n)?s.call(u,n):i.merge(u,n)),u},inArray:function(n,t){if(!t)return-1;if(a)return a.call(t,n);for(var i=0,r=t.length;i<r;i++)if(t[i]===n)return i;return-1},merge:function(n,i){var u=n.length,r=0,f;if(typeof i.length=="number")for(f=i.length;r<f;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var f=[],e,r,u;for(i=!!i,r=0,u=n.length;r<u;r++)e=!!t(n[r],r),i!==e&&f.push(n[r]);return f},map:function(n,r,u){var o,h,f=[],s=0,e=n.length,c=n instanceof i||e!==t&&typeof e=="number"&&(e>0&&n[0]&&n[e-1]||e===0||i.isArray(n));if(c)for(;s<e;s++)o=r(n[s],s,u),o!=null&&(f[f.length]=o);else for(h in n)o=r(n[h],h,u),o!=null&&(f[f.length]=o);return f.concat.apply([],f)},guid:1,proxy:function(n,r){var e,o,u;return typeof r=="string"&&(e=n[r],r=n,n=e),i.isFunction(n)?(o=f.call(arguments,2),u=function(){return n.apply(r,o.concat(f.call(arguments)))},u.guid=n.guid=n.guid||u.guid||i.guid++,u):t},access:function(n,r,u,f,e,o){var c=n.length,h,s;if(typeof r=="object"){for(h in r)i.access(n,h,r[h],f,e,u);return n}if(u!==t){for(f=!o&&f&&i.isFunction(u),s=0;s<c;s++)e(n[s],r,f?u.call(n[s],s,e(n[s],r)):u,o);return n}return c?e(n[0],r):t},now:function(){return+new Date},uaMatch:function(n){n=n.toLowerCase();var t=ht.exec(n)||nt.exec(n)||yt.exec(n)||n.indexOf("compatible")<0&&at.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function n(t,i){return new n.fn.init(t,i)}i.extend(!0,n,this),n.superclass=this,n.fn=n.prototype=this(),n.fn.constructor=n,n.sub=this.sub,n.fn.init=function(r,u){return u&&u instanceof i&&!(u instanceof n)&&(u=n(u)),i.fn.init.call(this,r,u,t)},n.fn.init.prototype=n.fn;var t=n(r);return n},browser:{}}),i.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(n,t){c["[object "+t+"]"]=t.toLowerCase()}),e=i.uaMatch(k),e.browser&&(i.browser[e.browser]=!0,i.browser.version=e.version),i.browser.webkit&&(i.browser.safari=!0),p.test(" ")&&(v=/^[\s\xA0]+/,w=/[\s\xA0]+$/),y=i(r),r.addEventListener?u=function(){r.removeEventListener("DOMContentLoaded",u,!1),i.ready()}:r.attachEvent&&(u=function(){r.readyState==="complete"&&(r.detachEvent("onreadystatechange",u),i.ready())}),i}(),ot="done fail isResolved isRejected promise then always pipe".split(" "),fr=[].slice,or,hr,et,ut,y,st,w,b,tr,p,d,ir,v,pr,vt;i.extend({_Deferred:function(){var r=[],n,u,f,t={done:function(){if(!f){var h=arguments,e,c,u,s,o;for(n&&(o=n,n=0),e=0,c=h.length;e<c;e++)u=h[e],s=i.type(u),s==="array"?t.done.apply(t,u):s==="function"&&r.push(u);o&&t.resolveWith(o[0],o[1])}return this},resolveWith:function(t,i){if(!f&&!n&&!u){i=i||[],u=1;try{while(r[0])r.shift().apply(t,i)}finally{n=[t,i],u=0}}return this},resolve:function(){return t.resolveWith(this,arguments),this},isResolved:function(){return!!(u||n)},cancel:function(){return f=1,r=[],this}};return t},Deferred:function(n){var t=i._Deferred(),r=i._Deferred(),u;return i.extend(t,{then:function(n,i){return t.done(n).fail(i),this},always:function(){return t.done.apply(t,arguments).fail.apply(this,arguments)},fail:r.done,rejectWith:r.resolveWith,reject:r.resolve,isRejected:r.isResolved,pipe:function(n,r){return i.Deferred(function(u){i.each({done:[n,"resolve"],fail:[r,"reject"]},function(n,r){var e=r[0],o=r[1],f;i.isFunction(e)?t[n](function(){f=e.apply(this,arguments),f&&i.isFunction(f.promise)?f.promise().then(u.resolve,u.reject):u[o+"With"](this===t?u:this,[f])}):t[n](u[o])})}).promise()},promise:function(n){if(n==null){if(u)return u;u=n={}}var i=ot.length;while(i--)n[ot[i]]=t[ot[i]];return n}}),t.done(r.cancel).fail(t.cancel),delete t.cancel,n&&n.call(t,t),t},when:function(n){function o(n){return function(i){r[n]=arguments.length>1?fr.call(arguments,0):i,--e||t.resolveWith(t,fr.call(r,0))}}var r=arguments,u=0,f=r.length,e=f,t=f<=1&&n&&i.isFunction(n.promise)?n:i.Deferred();if(f>1){for(;u<f;u++)r[u]&&i.isFunction(r[u].promise)?r[u].promise().then(o(u),t.reject):--e;e||t.resolveWith(t,r)}else t!==n&&t.resolveWith(t,f?[n]:[]);return t.promise()}}),i.support=function(){var n=r.createElement("div"),d=r.documentElement,k,h,p,y,u,s,t,b,c,w,f,v,l,nt,a,e,o;n.setAttribute("className","t"),n.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",k=n.getElementsByTagName("*"),h=n.getElementsByTagName("a")[0];if(!k||!k.length||!h)return{};p=r.createElement("select"),y=p.appendChild(r.createElement("option")),u=n.getElementsByTagName("input")[0],t={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/top/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:u.value==="on",optSelected:y.selected,getSetAttribute:n.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,p.disabled=!0,t.optDisabled=!y.disabled;try{delete n.test}catch(g){t.deleteExpando=!1}!n.addEventListener&&n.attachEvent&&n.fireEvent&&(n.attachEvent("onclick",function(){t.noCloneEvent=!1}),n.cloneNode(!0).fireEvent("onclick")),u=r.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),n.appendChild(u),b=r.createDocumentFragment(),b.appendChild(n.firstChild),t.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,n.innerHTML="",n.style.width=n.style.paddingLeft="1px",c=r.getElementsByTagName("body")[0],f=r.createElement(c?"div":"body"),v={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},c&&i.extend(v,{position:"absolute",left:"-1000px",top:"-1000px"});for(e in v)f.style[e]=v[e];f.appendChild(n),w=c||d,w.insertBefore(f,w.firstChild),t.appendChecked=u.checked,t.boxModel=n.offsetWidth===2,"zoom"in n.style&&(n.style.display="inline",n.style.zoom=1,t.inlineBlockNeedsLayout=n.offsetWidth===2,n.style.display="",n.innerHTML="<div style='width:4px;'></div>",t.shrinkWrapBlocks=n.offsetWidth!==2),n.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",l=n.getElementsByTagName("td"),o=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",t.reliableHiddenOffsets=o&&l[0].offsetHeight===0,n.innerHTML="",r.defaultView&&r.defaultView.getComputedStyle&&(s=r.createElement("div"),s.style.width="0",s.style.marginRight="0",n.appendChild(s),t.reliableMarginRight=(parseInt((r.defaultView.getComputedStyle(s,null)||{marginRight:0}).marginRight,10)||0)===0),f.innerHTML="",w.removeChild(f);if(n.attachEvent)for(e in{submit:1,change:1,focusin:1})a="on"+e,o=a in n,o||(n.setAttribute(a,"return;"),o=typeof n[a]=="function"),t[e+"Bubbles"]=o;return f=b=p=y=c=s=n=u=null,t}(),i.boxModel=i.support.boxModel,or=/^(?:\{.*\}|\[.*\])$/,hr=/([A-Z])/g,i.extend({cache:{},uuid:0,expando:"jQuery"+(i.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!kt(n)},data:function(n,r,u,f){if(!i.acceptData(n))return;var o,c,h=i.expando,a=typeof r=="string",l=n.nodeType,s=l?i.cache:n,e=l?n[i.expando]:n[i.expando]&&i.expando;if(e&&(!f||!e||!s[e]||s[e][h])||!a||u!==t)return e||(l?n[i.expando]=e=++i.uuid:e=i.expando),s[e]||(s[e]={},l||(s[e].toJSON=i.noop)),(typeof r=="object"||typeof r=="function")&&(f?s[e][h]=i.extend(s[e][h],r):s[e]=i.extend(s[e],r)),o=s[e],f&&(o[h]||(o[h]={}),o=o[h]),u!==t&&(o[i.camelCase(r)]=u),r==="events"&&!o[r]?o[h]&&o[h].events:(a?(c=o[r],c==null&&(c=o[i.camelCase(r)])):c=o,c)},removeData:function(n,t,r){var h;if(!i.acceptData(n))return;var e,o=i.expando,s=n.nodeType,u=s?i.cache:n,f=s?n[i.expando]:i.expando;if(!u[f])return;if(t){e=r?u[f][o]:u[f];if(e){e[t]||(t=i.camelCase(t)),delete e[t];if(!kt(e))return}}if(r){delete u[f][o];if(!kt(u[f]))return}h=u[f][o],i.support.deleteExpando||!u.setInterval?delete u[f]:u[f]=null,h?(u[f]={},s||(u[f].toJSON=i.noop),u[f][o]=h):s&&(i.support.deleteExpando?delete n[i.expando]:n.removeAttribute?n.removeAttribute(i.expando):n[i.expando]=null)},_data:function(n,t,r){return i.data(n,t,r,!0)},acceptData:function(n){if(n.nodeName){var t=i.noData[n.nodeName.toLowerCase()];if(t)return!(t===!0||n.getAttribute("classid")!==t)}return!0}}),i.fn.extend({data:function(n,r){var f=null,s,e,o,h,u;if(typeof n=="undefined"){if(this.length){f=i.data(this[0]);if(this[0].nodeType===1)for(s=this[0].attributes,o=0,h=s.length;o<h;o++)e=s[o].name,e.indexOf("data-")===0&&(e=i.camelCase(e.substring(5)),sr(this[0],e,f[e]))}return f}return typeof n=="object"?this.each(function(){i.data(this,n)}):(u=n.split("."),u[1]=u[1]?"."+u[1]:"",r===t?(f=this.triggerHandler("getData"+u[1]+"!",[u[0]]),f===t&&this.length&&(f=i.data(this[0],n),f=sr(this[0],n,f)),f===t&&u[1]?this.data(u[0]):f):this.each(function(){var f=i(this),t=[u[0],r];f.triggerHandler("setData"+u[1]+"!",t),i.data(this,n,r),f.triggerHandler("changeData"+u[1]+"!",t)}))},removeData:function(n){return this.each(function(){i.removeData(this,n)})}}),i.extend({_mark:function(n,r){n&&(r=(r||"fx")+"mark",i.data(n,r,(i.data(n,r,t,!0)||0)+1,!0))},_unmark:function(n,r,u){n!==!0&&(u=r,r=n,n=!1);if(r){u=u||"fx";var f=u+"mark",e=n?0:(i.data(r,f,t,!0)||1)-1;e?i.data(r,f,e,!0):(i.removeData(r,f,!0),ar(r,u,"mark"))}},queue:function(n,r,u){if(n){r=(r||"fx")+"queue";var f=i.data(n,r,t,!0);return u&&(!f||i.isArray(u)?f=i.data(n,r,i.makeArray(u),!0):f.push(u)),f||[]}},dequeue:function(n,t){t=t||"fx";var u=i.queue(n,t),r=u.shift(),f;r==="inprogress"&&(r=u.shift()),r&&(t==="fx"&&u.unshift("inprogress"),r.call(n,function(){i.dequeue(n,t)})),u.length||(i.removeData(n,t+"queue",!0),ar(n,t,"queue"))}}),i.fn.extend({queue:function(n,r){return typeof n!="string"&&(r=n,n="fx"),r===t?i.queue(this[0],n):this.each(function(){var t=i.queue(this,n,r);n==="fx"&&t[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(){var r=this;setTimeout(function(){i.dequeue(r,t)},n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){function c(){--s||h.resolveWith(u,[u])}typeof n!="string"&&(r=n,n=t),n=n||"fx";var h=i.Deferred(),u=this,f=u.length,s=1,e=n+"defer",l=n+"queue",a=n+"mark",o;while(f--)(o=i.data(u[f],e,t,!0)||(i.data(u[f],l,t,!0)||i.data(u[f],a,t,!0))&&i.data(u[f],e,i._Deferred(),!0))&&(s++,o.done(c));return c(),h.promise()}});var wr=/[\n\t\r]/g,yt=/\s+/,of=/\r/g,uf=/^(?:button|input)$/i,ff=/^(?:button|input|object|select|textarea)$/i,yu=/^a(?:rea)?$/i,lr=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,e,ui;i.fn.extend({attr:function(n,t){return i.access(this,n,t,!0,i.attr)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,n,t,!0,i.prop)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t,delete this[n]}catch(i){}})},addClass:function(n){var u,e,s,t,f,r,o;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(n&&typeof n=="string")for(u=n.split(yt),e=0,s=this.length;e<s;e++){t=this[e];if(t.nodeType===1)if(t.className||u.length!==1){for(f=" "+t.className+" ",r=0,o=u.length;r<o;r++)~f.indexOf(" "+u[r]+" ")||(f+=u[r]+" ");t.className=i.trim(f)}else t.className=n}return this},removeClass:function(n){var o,e,h,r,u,f,s;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(n&&typeof n=="string"||n===t)for(o=(n||"").split(yt),e=0,h=this.length;e<h;e++){r=this[e];if(r.nodeType===1&&r.className)if(n){for(u=(" "+r.className+" ").replace(wr," "),f=0,s=o.length;f<s;f++)u=u.replace(" "+o[f]+" "," ");r.className=i.trim(u)}else r.className=""}return this},toggleClass:function(n,t){var r=typeof n,u=typeof t=="boolean";return i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if(r==="string"){var e,h=0,o=i(this),f=t,s=n.split(yt);while(e=s[h++])f=u?f:!o.hasClass(e),o[f?"addClass":"removeClass"](e)}else(r==="undefined"||r==="boolean")&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var r=" "+n+" ",t=0,i=this.length;t<i;t++)if(this[t].nodeType===1&&(" "+this[t].className+" ").replace(wr," ").indexOf(r)>-1)return!0;return!1},val:function(n){var r,u,f=this[0],e;return arguments.length?(e=i.isFunction(n),this.each(function(u){var o=i(this),f;if(this.nodeType!==1)return;f=e?n.call(this,u,o.val()):n,f==null?f="":typeof f=="number"?f+="":i.isArray(f)&&(f=i.map(f,function(n){return n==null?"":n+""})),r=i.valHooks[this.nodeName.toLowerCase()]||i.valHooks[this.type],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f)})):f?(r=i.valHooks[f.nodeName.toLowerCase()]||i.valHooks[f.type],r&&"get"in r&&(u=r.get(f,"value"))!==t?u:(u=f.value,typeof u=="string"?u.replace(of,""):u==null?"":u)):t}}),i.extend({valHooks:{option:{get:function(n){var t=n.attributes.value;return!t||t.specified?n.value:n.text}},select:{get:function(n){var o,e=n.selectedIndex,s=[],f=n.options,r=n.type==="select-one",u,h,t;if(e<0)return null;for(u=r?e:0,h=r?e+1:f.length;u<h;u++){t=f[u];if(t.selected&&(i.support.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){o=i(t).val();if(r)return o;s.push(o)}}return r&&!s.length&&f.length?i(f[e]).val():s},set:function(n,t){var r=i.makeArray(t);return i(n).find("option").each(function(){this.selected=i.inArray(i(this).val(),r)>=0}),r.length||(n.selectedIndex=-1),r}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(n,r,u,f){var c=n.nodeType,s,o,h;return!n||c===3||c===8||c===2?t:f&&r in i.attrFn?i(n)[r](u):"getAttribute"in n?(h=c!==1||!i.isXMLDoc(n),h&&(r=i.attrFix[r]||r,o=i.attrHooks[r],o||(lr.test(r)?o=ui:e&&(o=e))),u!==t?u===null?(i.removeAttr(n,r),t):o&&"set"in o&&h&&(s=o.set(n,u,r))!==t?s:(n.setAttribute(r,""+u),u):o&&"get"in o&&h&&(s=o.get(n,r))!==null?s:(s=n.getAttribute(r),s===null?t:s)):i.prop(n,r,u)},removeAttr:function(n,t){var r;n.nodeType===1&&(t=i.attrFix[t]||t,i.attr(n,t,""),n.removeAttribute(t),lr.test(t)&&(r=i.propFix[t]||t)in n&&(n[r]=!1))},attrHooks:{type:{set:function(n,t){if(uf.test(n.nodeName)&&n.parentNode)i.error("type property can't be changed");else if(!i.support.radioValue&&t==="radio"&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}},value:{get:function(n,t){return e&&i.nodeName(n,"button")?e.get(n,t):t in n?n.value:null},set:function(n,t,r){if(e&&i.nodeName(n,"button"))return e.set(n,t,r);n.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(n,r,u){var o=n.nodeType,e,f,s;return!n||o===3||o===8||o===2?t:(s=o!==1||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:n[r]=u:f&&"get"in f&&(e=f.get(n,r))!==null?e:n[r])},propHooks:{tabIndex:{get:function(n){var i=n.getAttributeNode("tabindex");return i&&i.specified?parseInt(i.value,10):ff.test(n.nodeName)||yu.test(n.nodeName)&&n.href?0:t}}}}),i.attrHooks.tabIndex=i.propHooks.tabIndex,ui={get:function(n,r){var u;return i.prop(n,r)===!0||(u=n.getAttributeNode(r))&&u.nodeValue!==!1?r.toLowerCase():t},set:function(n,t,r){var u;return t===!1?i.removeAttr(n,r):(u=i.propFix[r]||r,u in n&&(n[u]=!0),n.setAttribute(r,r.toLowerCase())),r}},i.support.getSetAttribute||(e=i.valHooks.button={get:function(n,i){var r;return r=n.getAttributeNode(i),r&&r.nodeValue!==""?r.nodeValue:t},set:function(n,t,i){var u=n.getAttributeNode(i);return u||(u=r.createAttribute(i),n.setAttributeNode(u)),u.nodeValue=t+""}},i.each(["width","height"],function(n,t){i.attrHooks[t]=i.extend(i.attrHooks[t],{set:function(n,i){if(i==="")return n.setAttribute(t,"auto"),i}})})),i.support.hrefNormalized||i.each(["href","src","width","height"],function(n,r){i.attrHooks[r]=i.extend(i.attrHooks[r],{get:function(n){var i=n.getAttribute(r,2);return i===null?t:i}})}),i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText.toLowerCase()||t},set:function(n,t){return n.style.cssText=""+t}}),i.support.optSelected||(i.propHooks.selected=i.extend(i.propHooks.selected,{get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),i.support.checkOn||i.each(["radio","checkbox"],function(){i.valHooks[this]={get:function(n){return n.getAttribute("value")===null?"on":n.value}}}),i.each(["radio","checkbox"],function(){i.valHooks[this]=i.extend(i.valHooks[this],{set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}})});var pt=/\.(.*)$/,ft=/^(?:textarea|input|select)$/i,au=/\./g,vu=/ /g,ku=/[^\w\s.|`]/g,du=function(n){return n.replace(ku,"\\$&")};i.event={add:function(n,r,u,f){var p,o,c,v,s,e,w,a,y,l;if(n.nodeType===3||n.nodeType===8)return;if(u===!1)u=h;else if(!u)return;u.handler&&(p=u,u=p.handler),u.guid||(u.guid=i.guid++),c=i._data(n);if(!c)return;v=c.events,s=c.handle,v||(c.events=v={}),s||(c.handle=s=function(n){return typeof i!="undefined"&&(!n||i.event.triggered!==n.type)?i.event.handle.apply(s.elem,arguments):t}),s.elem=n,r=r.split(" "),w=0;while(e=r[w++])o=p?i.extend({},p):{handler:u,data:f},e.indexOf(".")>-1?(a=e.split("."),e=a.shift(),o.namespace=a.slice(0).sort().join(".")):(a=[],o.namespace=""),o.type=e,o.guid||(o.guid=u.guid),y=v[e],l=i.event.special[e]||{},y||(y=v[e]=[],l.setup&&l.setup.call(n,f,a,s)!==!1||(n.addEventListener?n.addEventListener(e,s,!1):n.attachEvent&&n.attachEvent("on"+e,s))),l.add&&(l.add.call(n,o),o.handler.guid||(o.handler.guid=u.guid)),y.push(o),i.event.global[e]=!0;n=null},global:{},remove:function(n,r,u,f){var w;if(n.nodeType===3||n.nodeType===8)return;u===!1&&(u=h);var g,e,nt,o,d=0,p,a,b,v,s,l,k,c=i.hasData(n)&&i._data(n),y=c&&c.events;if(!c||!y)return;r&&r.type&&(u=r.handler,r=r.type);if(!r||typeof r=="string"&&r.charAt(0)==="."){r=r||"";for(e in y)i.event.remove(n,e+r);return}r=r.split(" ");while(e=r[d++]){k=e,l=null,p=e.indexOf(".")<0,a=[],p||(a=e.split("."),e=a.shift(),b=new RegExp("(^|\\.)"+i.map(a.slice(0).sort(),du).join("\\.(?:.*\\.)?")+"(\\.|$)")),s=y[e];if(!s)continue;if(!u){for(o=0;o<s.length;o++)l=s[o],(p||b.test(l.namespace))&&(i.event.remove(n,k,l.handler,o),s.splice(o--,1));continue}for(v=i.event.special[e]||{},o=f||0;o<s.length;o++){l=s[o];if(u.guid===l.guid){(p||b.test(l.namespace))&&(f==null&&s.splice(o--,1),v.remove&&v.remove.call(n,l));if(f!=null)break}}(s.length===0||f!=null&&s.length===1)&&(v.teardown&&v.teardown.call(n,a)!==!1||i.removeEvent(n,e,c.handle),g=null,delete y[e])}i.isEmptyObject(y)&&(w=c.handle,w&&(w.elem=null),delete c.events,delete c.handle,i.isEmptyObject(c)&&i.removeData(n,t,!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(r,u,f,e){var o=r.type||r,c=[],y,s,h,v,l,a;o.indexOf("!")<0||(o=o.slice(0,-1),y=!0),o.indexOf(".")<0||(c=o.split("."),o=c.shift(),c.sort());if((!f||i.event.customEvent[o])&&!i.event.global[o])return;r=typeof r=="object"?r[i.expando]?r:new i.Event(o,r):new i.Event(o),r.type=o,r.exclusive=y,r.namespace=c.join("."),r.namespace_re=new RegExp("(^|\\.)"+c.join("\\.(?:.*\\.)?")+"(\\.|$)"),(e||!f)&&(r.preventDefault(),r.stopPropagation());if(!f){i.each(i.cache,function(){var t=i.expando,n=this[t];n&&n.events&&n.events[o]&&i.event.trigger(r,u,n.handle.elem)});return}if(f.nodeType===3||f.nodeType===8)return;r.result=t,r.target=f,u=u!=null?i.makeArray(u):[],u.unshift(r),s=f,h=o.indexOf(":")<0?"on"+o:"";do v=i._data(s,"handle"),r.currentTarget=s,v&&v.apply(s,u),h&&i.acceptData(s)&&s[h]&&s[h].apply(s,u)===!1&&(r.result=!1,r.preventDefault()),s=s.parentNode||s.ownerDocument||s===r.target.ownerDocument&&n;while(s&&!r.isPropagationStopped());if(!r.isDefaultPrevented()){a=i.event.special[o]||{};if((!a._default||a._default.call(f.ownerDocument,r)===!1)&&!(o==="click"&&i.nodeName(f,"a"))&&i.acceptData(f)){try{h&&f[o]&&(l=f[h],l&&(f[h]=null),i.event.triggered=o,f[o]())}catch(p){}l&&(f[h]=l),i.event.triggered=t}}return r.result},handle:function(r){var f,h,u,e;r=i.event.fix(r||n.event);var s=((i._data(this,"events")||{})[r.type]||[]).slice(0),c=!r.exclusive&&!r.namespace,o=Array.prototype.slice.call(arguments,0);for(o[0]=r,r.currentTarget=this,f=0,h=s.length;f<h;f++){u=s[f];if(c||r.namespace_re.test(u.namespace)){r.handler=u.handler,r.data=u.data,r.handleObj=u,e=u.handler.apply(this,o),e!==t&&(r.result=e,e===!1&&(r.preventDefault(),r.stopPropagation()));if(r.isImmediatePropagationStopped())break}}return r.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(n){var e,s,o;if(n[i.expando])return n;for(e=n,n=i.Event(e),s=this.props.length;s;)o=this.props[--s],n[o]=e[o];n.target||(n.target=n.srcElement||r),n.target.nodeType===3&&(n.target=n.target.parentNode),!n.relatedTarget&&n.fromElement&&(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement);if(n.pageX==null&&n.clientX!=null){var h=n.target.ownerDocument||r,f=h.documentElement,u=h.body;n.pageX=n.clientX+(f&&f.scrollLeft||u&&u.scrollLeft||0)-(f&&f.clientLeft||u&&u.clientLeft||0),n.pageY=n.clientY+(f&&f.scrollTop||u&&u.scrollTop||0)-(f&&f.clientTop||u&&u.clientTop||0)}return n.which==null&&(n.charCode!=null||n.keyCode!=null)&&(n.which=n.charCode!=null?n.charCode:n.keyCode),!n.metaKey&&n.ctrlKey&&(n.metaKey=n.ctrlKey),n.which||n.button===t||(n.which=n.button&1?1:n.button&2?3:n.button&4?2:0),n},guid:1e8,proxy:i.proxy,special:{ready:{setup:i.bindReady,teardown:i.noop},live:{add:function(n){i.event.add(this,tt(n.origType,n.selector),i.extend({},n,{handler:tu,guid:n.handler.guid}))},remove:function(n){i.event.remove(this,tt(n.origType,n.selector),n)}},beforeunload:{setup:function(n,t,r){i.isWindow(this)&&(this.onbeforeunload=r)},teardown:function(n,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}}},i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){n.detachEvent&&n.detachEvent("on"+t,i)},i.Event=function(n,t){if(!this.preventDefault)return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?it:h):this.type=n,t&&i.extend(this,t),this.timeStamp=i.now(),this[i.expando]=!0},i.Event.prototype={preventDefault:function(){this.isDefaultPrevented=it;var n=this.originalEvent;if(!n)return;n.preventDefault?n.preventDefault():n.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=it;var n=this.originalEvent;if(!n)return;n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()},isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h},et=function(n){var t=n.relatedTarget,r=!1,u=n.type;n.type=n.data,t!==this&&(t&&(r=i.contains(this,t)),r||(i.event.handle.apply(this,arguments),n.type=u))},ut=function(n){n.type=n.data,i.event.handle.apply(this,arguments)},i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={setup:function(r){i.event.add(this,t,r&&r.selector?ut:et,n)},teardown:function(n){i.event.remove(this,t,n&&n.selector?ut:et)}}}),i.support.submitBubbles||(i.event.special.submit={setup:function(){if(i.nodeName(this,"form"))return!1;i.event.add(this,"click.specialSubmit",function(n){var t=n.target,r=i.nodeName(t,"input")||i.nodeName(t,"button")?t.type:"";(r==="submit"||r==="image")&&i(t).closest("form").length&&yr("submit",this,arguments)}),i.event.add(this,"keypress.specialSubmit",function(n){var t=n.target,r=i.nodeName(t,"input")||i.nodeName(t,"button")?t.type:"";(r==="text"||r==="password")&&i(t).closest("form").length&&n.keyCode===13&&yr("submit",this,arguments)})},teardown:function(){i.event.remove(this,".specialSubmit")}}),i.support.changeBubbles||(st=function(n){var r=i.nodeName(n,"input")?n.type:"",t=n.value;return r==="radio"||r==="checkbox"?t=n.checked:r==="select-multiple"?t=n.selectedIndex>-1?i.map(n.options,function(n){return n.selected}).join("-"):"":i.nodeName(n,"select")&&(t=n.selectedIndex),t},w=function(n){var r=n.target,f,u;if(!ft.test(r.nodeName)||r.readOnly)return;f=i._data(r,"_change_data"),u=st(r),(n.type!=="focusout"||r.type!=="radio")&&i._data(r,"_change_data",u);if(f===t||u===f)return;(f!=null||u)&&(n.type="change",n.liveFired=t,i.event.trigger(n,arguments[1],r))},i.event.special.change={filters:{focusout:w,beforedeactivate:w,click:function(n){var t=n.target,r=i.nodeName(t,"input")?t.type:"";(r==="radio"||r==="checkbox"||i.nodeName(t,"select"))&&w.call(this,n)},keydown:function(n){var r=n.target,t=i.nodeName(r,"input")?r.type:"";(n.keyCode!==13||i.nodeName(r,"textarea"))&&(n.keyCode!==32||t!=="checkbox"&&t!=="radio")&&t!=="select-multiple"||w.call(this,n)},beforeactivate:function(n){var t=n.target;i._data(t,"_change_data",st(t))}},setup:function(){if(this.type==="file")return!1;for(var n in y)i.event.add(this,n+".specialChange",y[n]);return ft.test(this.nodeName)},teardown:function(){return i.event.remove(this,".specialChange"),ft.test(this.nodeName)}},y=i.event.special.change.filters,y.focus=y.beforeactivate),i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){function f(n){var r=i.event.fix(n);r.type=t,r.originalEvent={},i.event.trigger(r,null,r.target),r.isDefaultPrevented()&&n.preventDefault()}var u=0;i.event.special[t]={setup:function(){u++==0&&r.addEventListener(n,f,!0)},teardown:function(){--u==0&&r.removeEventListener(n,f,!0)}}}),i.each(["bind","one"],function(n,r){i.fn[r]=function(n,u,f){var e,s,o,h;if(typeof n=="object"){for(s in n)this[r](s,u,n[s],f);return this}(arguments.length===2||u===!1)&&(f=u,u=t),r==="one"?(e=function(n){return i(this).unbind(n,e),f.apply(this,arguments)},e.guid=f.guid||i.guid++):e=f;if(n==="unload"&&r!=="one")this.one(n,u,f);else for(o=0,h=this.length;o<h;o++)i.event.add(this[o],n,e,u);return this}}),i.fn.extend({unbind:function(n,t){var u,r,f;if(typeof n!="object"||n.preventDefault)for(r=0,f=this.length;r<f;r++)i.event.remove(this[r],n,t);else for(u in n)this.unbind(u,n[u]);return this},delegate:function(n,t,i,r){return this.live(t,i,r,n)},undelegate:function(n,t,i){return arguments.length===0?this.unbind("live"):this.die(t,null,i,n)},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){if(this[0])return i.event.trigger(n,t,this[0],!0)},toggle:function(n){var r=arguments,f=n.guid||i.guid++,t=0,u=function(u){var f=(i.data(this,"lastToggle"+n.guid)||0)%t;return i.data(this,"lastToggle"+n.guid,f+1),u.preventDefault(),r[f].apply(this,arguments)||!1};u.guid=f;while(t<r.length)r[t++].guid=f;return this.click(u)},hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),b={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"},i.each(["live","die"],function(n,r){i.fn[r]=function(n,u,f,e){var o,k=0,y,s,w,l=e||this.selector,c=e?this:i(this.context),v,a,p;if(typeof n=="object"&&!n.preventDefault){for(v in n)c[r](v,u,n[v],l);return this}if(r==="die"&&!n&&e&&e.charAt(0)===".")return c.unbind(e),this;(u===!1||i.isFunction(u))&&(f=u||h,u=t),n=(n||"").split(" ");while((o=n[k++])!=null){y=pt.exec(o),s="",y&&(s=y[0],o=o.replace(pt,""));if(o==="hover"){n.push("mouseenter"+s,"mouseleave"+s);continue}w=o,b[o]?(n.push(b[o]+s),o=o+s):o=(b[o]||o)+s;if(r==="live")for(a=0,p=c.length;a<p;a++)i.event.add(c[a],"live."+tt(o,l),{data:u,selector:l,handler:f,origType:o,origHandler:f,preType:w});else c.unbind("live."+tt(o,l),f)}return this}}),i.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".split(" "),function(n,t){i.fn[t]=function(n,i){return i==null&&(i=n,n=null),arguments.length>0?this.bind(t,n,i):this.trigger(t)},i.attrFn&&(i.attrFn[t]=!0)});
/*!
* Sizzle CSS Selector Engine
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
* More information: http://sizzlejs.com/
*/
(function(){function b(n,t,i,r,u,f){for(var e,s,o=0,h=r.length;o<h;o++){e=r[o];if(e){s=!1,e=e[n];while(e){if(e.sizcache===i){s=r[e.sizset];break}e.nodeType!==1||f||(e.sizcache=i,e.sizset=o);if(e.nodeName.toLowerCase()===t){s=e;break}e=e[n]}r[o]=s}}}function w(t,i,r,u,f,e){for(var o,h,s=0,c=u.length;s<c;s++){o=u[s];if(o){h=!1,o=o[t];while(o){if(o.sizcache===r){h=u[o.sizset];break}if(o.nodeType===1){e||(o.sizcache=r,o.sizset=s);if(typeof i!="string"){if(o===i){h=!0;break}}else if(n.filter(i,[o]).length>0){h=o;break}}o=o[t]}u[s]=h}}}var y=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,a=0,p=Object.prototype.toString,l=!1,k=!0,e=/\\/g,h=/\W/,n,s,f,c,o,v;[0,0].sort(function(){return k=!1,0}),n=function(t,i,e,o){var it;e=e||[],i=i||r,it=i;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!t||typeof t!="string")return e;var w,a,h,nt,l,b,k,c,rt=!0,d=n.isXML(i),s=[],tt=t;do{y.exec(""),w=y.exec(tt);if(w){tt=w[3],s.push(w[1]);if(w[2]){nt=w[3];break}}}while(w);if(s.length>1&&g.exec(t))if(s.length===2&&u.relative[s[0]])a=v(s[0]+s[1],i);else{a=u.relative[s[0]]?[i]:n(s.shift(),i);while(s.length)t=s.shift(),u.relative[t]&&(t+=s.shift()),a=v(t,a)}else{o||s.length<=1||i.nodeType!==9||d||!u.match.ID.test(s[0])||u.match.ID.test(s[s.length-1])||(l=n.find(s.shift(),i,d),i=l.expr?n.filter(l.expr,l.set)[0]:l.set[0]);if(i){l=o?{expr:s.pop(),set:f(o)}:n.find(s.pop(),s.length===1&&(s[0]==="~"||s[0]==="+")&&i.parentNode?i.parentNode:i,d),a=l.expr?n.filter(l.expr,l.set):l.set,s.length>0?h=f(a):rt=!1;while(s.length)b=s.pop(),k=b,u.relative[b]?k=s.pop():b="",k==null&&(k=i),u.relative[b](h,k,d)}else h=s=[]}h||(h=a),h||n.error(b||t);if(p.call(h)==="[object Array]")if(rt)if(i&&i.nodeType===1)for(c=0;h[c]!=null;c++)h[c]&&(h[c]===!0||h[c].nodeType===1&&n.contains(i,h[c]))&&e.push(a[c]);else for(c=0;h[c]!=null;c++)h[c]&&h[c].nodeType===1&&e.push(a[c]);else e.push.apply(e,h);else f(h,e);return nt&&(n(nt,it,e,o),n.uniqueSort(e)),e},n.uniqueSort=function(n){if(c){l=k,n.sort(c);if(l)for(var t=1;t<n.length;t++)n[t]===n[t-1]&&n.splice(t--,1)}return n},n.matches=function(t,i){return n(t,null,null,i)},n.matchesSelector=function(t,i){return n(i,null,null,[t]).length>0},n.find=function(n,t,i){var f,s,c,r,o,h;if(!n)return[];for(s=0,c=u.order.length;s<c;s++){o=u.order[s];if(r=u.leftMatch[o].exec(n)){h=r[1],r.splice(1,1);if(h.substr(h.length-1)!=="\\"){r[1]=(r[1]||"").replace(e,""),f=u.find[o](r,t,i);if(f!=null){n=n.replace(u.match[o],"");break}}}}return f||(f=typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName("*"):[]),{set:f,expr:n}},n.filter=function(i,r,f,e){var o,h,b=i,v=[],s=r,d=r&&r[0]&&n.isXML(r[0]),c,a,y,k,p,l,w;while(i&&r.length){for(c in u.filter)if((o=u.leftMatch[c].exec(i))!=null&&o[2]){k=u.filter[c],p=o[1],h=!1,o.splice(1,1);if(p.substr(p.length-1)==="\\")continue;s===v&&(v=[]);if(u.preFilter[c]){o=u.preFilter[c](o,s,f,v,e,d);if(o){if(o===!0)continue}else h=a=!0}if(o)for(l=0;(y=s[l])!=null;l++)y&&(a=k(y,o,l,s),w=e^!!a,f&&a!=null?w?h=!0:s[l]=!1:w&&(v.push(y),h=!0));if(a!==t){f||(s=v),i=i.replace(u.match[c],"");if(!h)return[];break}}if(i===b)if(h==null)n.error(i);else break;b=i}return s},n.error=function(n){throw"Syntax error, unrecognized expression: "+n;};var u=n.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(n){return n.getAttribute("href")},type:function(n){return n.getAttribute("type")}},relative:{"+":function(t,i){var s=typeof i=="string",e=s&&!h.test(i),o=s&&!e,u,f,r;for(e&&(i=i.toLowerCase()),u=0,f=t.length;u<f;u++)if(r=t[u]){while((r=r.previousSibling)&&r.nodeType!==1);t[u]=o||r&&r.nodeName.toLowerCase()===i?r||!1:r===i}o&&n.filter(i,t,!0)},">":function(t,i){var u,e=typeof i=="string",r=0,o=t.length,f;if(e&&!h.test(i))for(i=i.toLowerCase();r<o;r++)u=t[r],u&&(f=u.parentNode,t[r]=f.nodeName.toLowerCase()===i?f:!1);else{for(;r<o;r++)u=t[r],u&&(t[r]=e?u.parentNode:u.parentNode===i);e&&n.filter(i,t,!0)}},"":function(n,t,i){var u,f=a++,r=w;typeof t!="string"||h.test(t)||(t=t.toLowerCase(),u=t,r=b),r("parentNode",t,f,n,u,i)},"~":function(n,t,i){var u,f=a++,r=w;typeof t!="string"||h.test(t)||(t=t.toLowerCase(),u=t,r=b),r("previousSibling",t,f,n,u,i)}},find:{ID:function(n,t,i){if(typeof t.getElementById!="undefined"&&!i){var r=t.getElementById(n[1]);return r&&r.parentNode?[r]:[]}},NAME:function(n,t){var u,r,i,f;if(typeof t.getElementsByName!="undefined"){for(u=[],r=t.getElementsByName(n[1]),i=0,f=r.length;i<f;i++)r[i].getAttribute("name")===n[1]&&u.push(r[i]);return u.length===0?null:u}},TAG:function(n,t){if(typeof t.getElementsByTagName!="undefined")return t.getElementsByTagName(n[1])}},preFilter:{CLASS:function(n,t,i,r,u,f){n=" "+n[1].replace(e,"")+" ";if(f)return n;for(var s=0,o;(o=t[s])!=null;s++)o&&(u^(o.className&&(" "+o.className+" ").replace(/[\t\n\r]/g," ").indexOf(n)>=0)?i||r.push(o):i&&(t[s]=!1));return!1},ID:function(n){return n[1].replace(e,"")},TAG:function(n){return n[1].replace(e,"").toLowerCase()},CHILD:function(t){if(t[1]==="nth"){t[2]||n.error(t[0]),t[2]=t[2].replace(/^\+|\s*/g,"");var i=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(t[2]==="even"&&"2n"||t[2]==="odd"&&"2n+1"||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=i[1]+(i[2]||1)-0,t[3]=i[3]-0}else t[2]&&n.error(t[0]);return t[0]=a++,t},ATTR:function(n,t,i,r,f,o){var s=n[1]=n[1].replace(e,"");return!o&&u.attrMap[s]&&(n[1]=u.attrMap[s]),n[4]=(n[4]||n[5]||"").replace(e,""),n[2]==="~="&&(n[4]=" "+n[4]+" "),n},PSEUDO:function(t,i,r,f,e){if(t[1]==="not")if((y.exec(t[3])||"").length>1||/^\w/.test(t[3]))t[3]=n(t[3],null,null,i);else{var o=n.filter(t[3],i,r,!0^e);return r||f.push.apply(f,o),!1}else if(u.match.POS.test(t[0])||u.match.CHILD.test(t[0]))return!0;return t},POS:function(n){return n.unshift(!0),n}},filters:{enabled:function(n){return n.disabled===!1&&n.type!=="hidden"},disabled:function(n){return n.disabled===!0},checked:function(n){return n.checked===!0},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},parent:function(n){return!!n.firstChild},empty:function(n){return!n.firstChild},has:function(t,i,r){return!!n(r[3],t).length},header:function(n){return/h\d/i.test(n.nodeName)},text:function(n){var i=n.getAttribute("type"),t=n.type;return n.nodeName.toLowerCase()==="input"&&"text"===t&&(i===t||i===null)},radio:function(n){return n.nodeName.toLowerCase()==="input"&&"radio"===n.type},checkbox:function(n){return n.nodeName.toLowerCase()==="input"&&"checkbox"===n.type},file:function(n){return n.nodeName.toLowerCase()==="input"&&"file"===n.type},password:function(n){return n.nodeName.toLowerCase()==="input"&&"password"===n.type},submit:function(n){var t=n.nodeName.toLowerCase();return(t==="input"||t==="button")&&"submit"===n.type},image:function(n){return n.nodeName.toLowerCase()==="input"&&"image"===n.type},reset:function(n){var t=n.nodeName.toLowerCase();return(t==="input"||t==="button")&&"reset"===n.type},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&"button"===n.type||t==="button"},input:function(n){return/input|select|textarea|button/i.test(n.nodeName)},focus:function(n){return n===n.ownerDocument.activeElement}},setFilters:{first:function(n,t){return t===0},last:function(n,t,i,r){return t===r.length-1},even:function(n,t){return t%2==0},odd:function(n,t){return t%2==1},lt:function(n,t,i){return t<i[3]-0},gt:function(n,t,i){return t>i[3]-0},nth:function(n,t,i){return i[3]-0===t},eq:function(n,t,i){return i[3]-0===t}},filter:{PSEUDO:function(t,i,r,f){var o=i[1],c=u.filters[o],s,e,h;if(c)return c(t,r,i,f);if(o==="contains")return(t.textContent||t.innerText||n.getText([t])||"").indexOf(i[3])>=0;if(o==="not"){for(s=i[3],e=0,h=s.length;e<h;e++)if(s[e]===t)return!1;return!0}n.error(o)},CHILD:function(n,t){var s=t[1],i=n,u,e,o,r,h,f;switch(s){case"only":case"first":while(i=i.previousSibling)if(i.nodeType===1)return!1;if(s==="first")return!0;i=n;case"last":while(i=i.nextSibling)if(i.nodeType===1)return!1;return!0;case"nth":u=t[2],e=t[3];if(u===1&&e===0)return!0;o=t[0],r=n.parentNode;if(r&&(r.sizcache!==o||!n.nodeIndex)){for(h=0,i=r.firstChild;i;i=i.nextSibling)i.nodeType===1&&(i.nodeIndex=++h);r.sizcache=o}return f=n.nodeIndex-e,u===0?f===0:f%u==0&&f/u>=0}},ID:function(n,t){return n.nodeType===1&&n.getAttribute("id")===t},TAG:function(n,t){return t==="*"&&n.nodeType===1||n.nodeName.toLowerCase()===t},CLASS:function(n,t){return(" "+(n.className||n.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(n,t){var e=t[1],o=u.attrHandle[e]?u.attrHandle[e](n):n[e]!=null?n[e]:n.getAttribute(e),r=o+"",f=t[2],i=t[4];return o==null?f==="!=":f==="="?r===i:f==="*="?r.indexOf(i)>=0:f==="~="?(" "+r+" ").indexOf(i)>=0:i?f==="!="?r!==i:f==="^="?r.indexOf(i)===0:f==="$="?r.substr(r.length-i.length)===i:f==="|="?r===i||r.substr(0,i.length+1)===i+"-":!1:r&&o!==!1},POS:function(n,t,i,r){var e=t[2],f=u.setFilters[e];if(f)return f(n,i,t,r)}}},g=u.match.POS,d=function(n,t){return"\\"+(+t+1)};for(s in u.match)u.match[s]=new RegExp(u.match[s].source+/(?![^\[]*\])(?![^\(]*\))/.source),u.leftMatch[s]=new RegExp(/(^(?:.|\r|\n)*?)/.source+u.match[s].source.replace(/\\(\d+)/g,d));f=function(n,t){return n=Array.prototype.slice.call(n,0),t?(t.push.apply(t,n),t):n};try{Array.prototype.slice.call(r.documentElement.childNodes,0)[0].nodeType}catch(nt){f=function(n,t){var i=0,r=t||[],u;if(p.call(n)==="[object Array]")Array.prototype.push.apply(r,n);else if(typeof n.length=="number")for(u=n.length;i<u;i++)r.push(n[i]);else for(;n[i];i++)r.push(n[i]);return r}}r.documentElement.compareDocumentPosition?c=function(n,t){return n===t?(l=!0,0):!n.compareDocumentPosition||!t.compareDocumentPosition?n.compareDocumentPosition?-1:1:n.compareDocumentPosition(t)&4?-1:1}:(c=function(n,t){var i;if(n===t)return l=!0,0;if(n.sourceIndex&&t.sourceIndex)return n.sourceIndex-t.sourceIndex;var h,c,u=[],f=[],s=n.parentNode,e=t.parentNode,r=s;if(s===e)return o(n,t);if(s){if(!e)return 1}else return-1;while(r)u.unshift(r),r=r.parentNode;r=e;while(r)f.unshift(r),r=r.parentNode;for(h=u.length,c=f.length,i=0;i<h&&i<c;i++)if(u[i]!==f[i])return o(u[i],f[i]);return i===h?o(n,f[i],-1):o(u[i],t,1)},o=function(n,t,i){if(n===t)return i;var r=n.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}),n.getText=function(t){for(var u="",i,r=0;t[r];r++)i=t[r],i.nodeType===3||i.nodeType===4?u+=i.nodeValue:i.nodeType!==8&&(u+=n.getText(i.childNodes));return u},function(){var i=r.createElement("div"),f="script"+ +new Date,n=r.documentElement;i.innerHTML="<a name='"+f+"'/>",n.insertBefore(i,n.firstChild),r.getElementById(f)&&(u.find.ID=function(n,i,r){if(typeof i.getElementById!="undefined"&&!r){var u=i.getElementById(n[1]);return u?u.id===n[1]||typeof u.getAttributeNode!="undefined"&&u.getAttributeNode("id").nodeValue===n[1]?[u]:t:[]}},u.filter.ID=function(n,t){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return n.nodeType===1&&i&&i.nodeValue===t}),n.removeChild(i),n=i=null}(),function(){var n=r.createElement("div");n.appendChild(r.createComment("")),n.getElementsByTagName("*").length>0&&(u.find.TAG=function(n,t){var r=t.getElementsByTagName(n[1]),u,i;if(n[1]==="*"){for(u=[],i=0;r[i];i++)r[i].nodeType===1&&u.push(r[i]);r=u}return r}),n.innerHTML="<a href='#'></a>",n.firstChild&&typeof n.firstChild.getAttribute!="undefined"&&n.firstChild.getAttribute("href")!=="#"&&(u.attrHandle.href=function(n){return n.getAttribute("href",2)}),n=null}(),r.querySelectorAll&&function(){var e=n,t=r.createElement("div"),o="__sizzle__",i;t.innerHTML="<p class='TEST'></p>";if(t.querySelectorAll&&t.querySelectorAll(".TEST").length===0)return;n=function(t,i,s,h){var c,l;i=i||r;if(!h&&!n.isXML(i)){c=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(c&&(i.nodeType===1||i.nodeType===9)){if(c[1])return f(i.getElementsByTagName(t),s);if(c[2]&&u.find.CLASS&&i.getElementsByClassName)return f(i.getElementsByClassName(c[2]),s)}if(i.nodeType===9){if(t==="body"&&i.body)return f([i.body],s);if(c&&c[3]){l=i.getElementById(c[3]);if(l&&l.parentNode){if(l.id===c[3])return f([l],s)}else return f([],s)}try{return f(i.querySelectorAll(t),s)}catch(k){}}else if(i.nodeType===1&&i.nodeName.toLowerCase()!=="object"){var w=i,v=i.getAttribute("id"),a=v||o,y=i.parentNode,p=/^\s*[+~]/.test(t);v?a=a.replace(/'/g,"\\$&"):i.setAttribute("id",a),p&&y&&(i=i.parentNode);try{if(!p||y)return f(i.querySelectorAll("[id='"+a+"'] "+t),s)}catch(b){}finally{v||w.removeAttribute("id")}}}return e(t,i,s,h)};for(i in e)n[i]=e[i];t=null}(),function(){var i=r.documentElement,t=i.matchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.msMatchesSelector,e,f;if(t){e=!t.call(r.createElement("div"),"div"),f=!1;try{t.call(r.documentElement,"[test!='']:sizzle")}catch(o){f=!0}n.matchesSelector=function(i,r){r=r.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(i))try{if(f||!u.match.PSEUDO.test(r)&&!/!=/.test(r)){var o=t.call(i,r);if(o||!e||i.document&&i.document.nodeType!==11)return o}}catch(s){}return n(r,null,null,[i]).length>0}}}(),function(){var n=r.createElement("div");n.innerHTML="<div class='test e'></div><div class='test'></div>";if(!n.getElementsByClassName||n.getElementsByClassName("e").length===0)return;n.lastChild.className="e";if(n.getElementsByClassName("e").length===1)return;u.order.splice(1,0,"CLASS"),u.find.CLASS=function(n,t,i){if(typeof t.getElementsByClassName!="undefined"&&!i)return t.getElementsByClassName(n[1])},n=null}(),n.contains=r.documentElement.contains?function(n,t){return n!==t&&(n.contains?n.contains(t):!0)}:r.documentElement.compareDocumentPosition?function(n,t){return!!(n.compareDocumentPosition(t)&16)}:function(){return!1},n.isXML=function(n){var t=(n?n.ownerDocument||n:0).documentElement;return t?t.nodeName!=="HTML":!1},v=function(t,i){var o,s=[],h="",f=i.nodeType?[i]:i,r,e;while(o=u.match.PSEUDO.exec(t))h+=o[0],t=t.replace(u.match.PSEUDO,"");for(t=u.relative[t]?t+"*":t,r=0,e=f.length;r<e;r++)n(t,f[r],s);return n.filter(h,s)},i.find=n,i.expr=n.selectors,i.expr[":"]=i.expr.filters,i.unique=n.uniqueSort,i.text=n.getText,i.isXMLDoc=n.isXML,i.contains=n.contains})();var wu=/Until$/,bu=/^(?:parents|prevUntil|prevAll)/,kf=/,/,df=/^.[^:#\[\.,]*$/,wf=Array.prototype.slice,gt=i.expr.match.POS,bf={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var s=this,t,e,r,o,u,f;if(typeof n!="string")return i(n).filter(function(){for(t=0,e=s.length;t<e;t++)if(i.contains(s[t],this))return!0});for(r=this.pushStack("","find",n),t=0,e=this.length;t<e;t++){o=r.length,i.find(n,this[t],r);if(t>0)for(u=o;u<r.length;u++)for(f=0;f<o;f++)if(r[f]===r[u]){r.splice(u--,1);break}}return r},has:function(n){var t=i(n);return this.filter(function(){for(var n=0,r=t.length;n<r;n++)if(i.contains(this,t[n]))return!0})},not:function(n){return this.pushStack(oi(this,n,!1),"not",n)},filter:function(n){return this.pushStack(oi(this,n,!0),"filter",n)},is:function(n){return!!n&&(typeof n=="string"?i.filter(n,this).length>0:this.filter(n).length>0)},closest:function(n,t){var f=[],e,s,r=this[0],h,u,o,l,c;if(i.isArray(n)){o={},l=1;if(r&&n.length){for(e=0,s=n.length;e<s;e++)u=n[e],o[u]||(o[u]=gt.test(u)?i(u,t||this.context):u);while(r&&r.ownerDocument&&r!==t){for(u in o)h=o[u],(h.jquery?h.index(r)>-1:i(r).is(h))&&f.push({selector:u,elem:r,level:l});r=r.parentNode,l++}}return f}for(c=gt.test(n)||typeof n!="string"?i(n,t||this.context):0,e=0,s=this.length;e<s;e++){r=this[e];while(r)if(c?c.index(r)>-1:i.find.matchesSelector(r,n)){f.push(r);break}else{r=r.parentNode;if(!r||!r.ownerDocument||r===t||r.nodeType===11)break}}return f=f.length>1?i.unique(f):f,this.pushStack(f,"closest",n)},index:function(n){return n?typeof n=="string"?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(n,t){var u=typeof n=="string"?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),r=i.merge(this.get(),u);return this.pushStack(ii(u[0])||ii(r[0])?r:i.unique(r))},andSelf:function(){return this.add(this.prevObject)}}),i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return i.nth(n,2,"nextSibling")},prev:function(n){return i.nth(n,2,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling(n.parentNode.firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.makeArray(n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r),e=wf.call(arguments);return wu.test(n)||(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),f=this.length>1&&!bf[n]?i.unique(f):f,(this.length>1||kf.test(u))&&bu.test(n)&&(f=f.reverse()),this.pushStack(f,n,e.join(","))}}),i.extend({filter:function(n,t,r){return r&&(n=":not("+n+")"),t.length===1?i.find.matchesSelector(t[0],n)?[t[0]]:[]:i.find.matches(n,t)},dir:function(n,r,u){var e=[],f=n[r];while(f&&f.nodeType!==9&&(u===t||f.nodeType!==1||!i(f).is(u)))f.nodeType===1&&e.push(f),f=f[r];return e},nth:function(n,t,i){t=t||1;for(var r=0;n;n=n[i])if(n.nodeType===1&&++r===t)break;return n},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});var te=/ jQuery\d+="(?:\d+|null)"/g,at=/^\s+/,yi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,wi=/<([\w:]+)/,ie=/<tbody/i,gf=/<|&#?\w+;/,er=/<(?:script|object|embed|option|style)/i,ki=/checked\s*(?:[^=]|=\s*.checked.)/i,cf=/\/(java|ecma)script/i,lf=/^\s*<!(?:\[CDATA\[|\-\-)/,u={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};u.optgroup=u.option,u.tbody=u.tfoot=u.colgroup=u.caption=u.thead,u.th=u.td,i.support.htmlSerialize||(u._default=[1,"div<div>","</div>"]),i.fn.extend({text:function(n){return i.isFunction(n)?this.each(function(t){var r=i(this);r.text(n.call(this,t,r.text()))}):typeof n!="object"&&n!==t?this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n)):i.text(this)},wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var n=this;while(n.firstChild&&n.firstChild.nodeType===1)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var r=i(this),t=r.contents();t.length?t.wrapAll(n):r.append(n)})},wrap:function(n){return this.each(function(){i(this).wrapAll(n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.appendChild(n)})},prepend:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.insertBefore(n,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this)});if(arguments.length){var n=i(arguments[0]);return n.push.apply(n,this.toArray()),this.pushStack(n,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this.nextSibling)});if(arguments.length){var n=this.pushStack(this,"after",arguments);return n.push.apply(n,i(arguments[0]).toArray()),n}},remove:function(n,t){for(var u=0,r;(r=this[u])!=null;u++)(!n||i.filter(n,[r]).length)&&(t||r.nodeType!==1||(i.cleanData(r.getElementsByTagName("*")),i.cleanData([r])),r.parentNode&&r.parentNode.removeChild(r));return this},empty:function(){for(var t=0,n;(n=this[t])!=null;t++){n.nodeType===1&&i.cleanData(n.getElementsByTagName("*"));while(n.firstChild)n.removeChild(n.firstChild)}return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){if(n===t)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(te,""):null;if(typeof n!="string"||er.test(n)||!i.support.leadingWhitespace&&at.test(n)||u[(wi.exec(n)||["",""])[1].toLowerCase()])i.isFunction(n)?this.each(function(t){var r=i(this);r.html(n.call(this,t,r.html()))}):this.empty().append(n);else{n=n.replace(yi,"<$1></$2>");try{for(var r=0,f=this.length;r<f;r++)this[r].nodeType===1&&(i.cleanData(this[r].getElementsByTagName("*")),this[r].innerHTML=n)}catch(e){this.empty().append(n)}}return this},replaceWith:function(n){return this[0]&&this[0].parentNode?i.isFunction(n)?this.each(function(t){var r=i(this),u=r.html();r.replaceWith(n.call(this,t,u))}):(typeof n!="string"&&(n=i(n).detach()),this.each(function(){var t=this.nextSibling,r=this.parentNode;i(this).remove(),t?i(t).before(n):i(r).append(n)})):this.length?this.pushStack(i(i.isFunction(n)?n():n),"replaceWith",n):this},detach:function(n){return this.remove(n,!0)},domManip:function(n,r,u){var l,h,f,o,e=n[0],a=[];if(!i.support.checkClone&&arguments.length===3&&typeof e=="string"&&ki.test(e))return this.each(function(){i(this).domManip(n,r,u,!0)});if(i.isFunction(e))return this.each(function(f){var o=i(this);n[0]=e.call(this,f,r?o.html():t),o.domManip(n,r,u)});if(this[0]){o=e&&e.parentNode,l=i.support.parentNode&&o&&o.nodeType===11&&o.childNodes.length===this.length?{fragment:o}:i.buildFragment(n,this,a),f=l.fragment,h=f.childNodes.length===1?f=f.firstChild:f.firstChild;if(h){r=r&&i.nodeName(h,"tr");for(var s=0,c=this.length,v=c-1;s<c;s++)u.call(r?dr(this[s],h):this[s],l.cacheable||c>1&&s<v?i.clone(f,!0,!0):f)}a.length&&i.each(a,pu)}return this}}),i.buildFragment=function(n,t,u){var e,s,o,f;return t&&t[0]&&(f=t[0].ownerDocument||t[0]),f.createDocumentFragment||(f=r),n.length===1&&typeof n[0]=="string"&&n[0].length<512&&f===r&&n[0].charAt(0)==="<"&&!er.test(n[0])&&(i.support.checkClone||!ki.test(n[0]))&&(s=!0,o=i.fragments[n[0]],o&&o!==1&&(e=o)),e||(e=f.createDocumentFragment(),i.clean(n,f,e,u)),s&&(i.fragments[n[0]]=o?e:1),{fragment:e,cacheable:s}},i.fragments={},i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(r){var o=[],u=i(r),s=this.length===1&&this[0].parentNode,f,h,e;if(s&&s.nodeType===11&&s.childNodes.length===1&&u.length===1)return u[t](this[0]),this;for(f=0,h=u.length;f<h;f++)e=(f>0?this.clone(!0):this).get(),i(u[f])[t](e),o=o.concat(e);return this.pushStack(o,n,u.selector)}}),i.extend({clone:function(n,t,r){var o=n.cloneNode(!0),f,e,u;if((!i.support.noCloneEvent||!i.support.noCloneChecked)&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(vi(n,o),f=nt(n),e=nt(o),u=0;f[u];++u)e[u]&&vi(f[u],e[u]);if(t){li(n,o);if(r)for(f=nt(n),e=nt(o),u=0;f[u];++u)li(f[u],e[u])}return f=e=null,o},clean:function(n,t,f,e){var p,s,c,h,o,y,a,b,w;for(t=t||r,typeof t.createElement=="undefined"&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||r),s=[],h=0;(o=n[h])!=null;h++){typeof o=="number"&&(o+="");if(!o)continue;if(typeof o=="string")if(gf.test(o)){o=o.replace(yi,"<$1></$2>");var k=(wi.exec(o)||["",""])[1].toLowerCase(),v=u[k]||u._default,d=v[0],l=t.createElement("div");l.innerHTML=v[1]+o+v[2];while(d--)l=l.lastChild;if(!i.support.tbody)for(y=ie.test(o),a=k==="table"&&!y?l.firstChild&&l.firstChild.childNodes:v[1]==="<table>"&&!y?l.childNodes:[],c=a.length-1;c>=0;--c)i.nodeName(a[c],"tbody")&&!a[c].childNodes.length&&a[c].parentNode.removeChild(a[c]);!i.support.leadingWhitespace&&at.test(o)&&l.insertBefore(t.createTextNode(at.exec(o)[0]),l.firstChild),o=l.childNodes}else o=t.createTextNode(o);if(!i.support.appendChecked)if(o[0]&&typeof(b=o.length)=="number")for(c=0;c<b;c++)pi(o[c]);else pi(o);o.nodeType?s.push(o):s=i.merge(s,o)}if(f)for(p=function(n){return!n.type||cf.test(n.type)},h=0;s[h];h++)e&&i.nodeName(s[h],"script")&&(!s[h].type||s[h].type.toLowerCase()==="text/javascript")?e.push(s[h].parentNode?s[h].parentNode.removeChild(s[h]):s[h]):(s[h].nodeType===1&&(w=i.grep(s[h].getElementsByTagName("script"),p),s.splice.apply(s,[h+1,0].concat(w))),f.appendChild(s[h]));return s},cleanData:function(n){for(var r,u,e=i.cache,s=i.expando,c=i.event.special,h=i.support.deleteExpando,t,f,o=0;(t=n[o])!=null;o++){if(t.nodeName&&i.noData[t.nodeName.toLowerCase()])continue;u=t[i.expando];if(u){r=e[u]&&e[u][s];if(r&&r.events){for(f in r.events)c[f]?i.event.remove(t,f):i.removeEvent(t,f,r.handle);r.handle&&(r.handle.elem=null)}h?delete t[i.expando]:t.removeAttribute&&t.removeAttribute(i.expando),delete e[u]}}}});var ht=/alpha\([^)]*\)/i,sf=/opacity=([^)]*)/,hf=/([A-Z]|^ms)/g,si=/^-?\d+(?:px)?$/i,yf=/^-?\d/,pf=/^([\-+])=([\-+.\de]+)/,af={position:"absolute",visibility:"hidden",display:"block"},vf=["Left","Right"],lu=["Top","Bottom"],c,ai,ci;i.fn.css=function(n,r){return arguments.length===2&&r===t?this:i.access(this,n,r,!0,function(n,r,u){return u!==t?i.style(n,r,u):i.css(n,r)})},i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=c(n,"opacity","opacity");return i===""?"1":i}return n.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(!n||n.nodeType===3||n.nodeType===8||!n.style)return;var s,o,h=i.camelCase(r),c=n.style,e=i.cssHooks[h];r=i.cssProps[h]||h;if(u!==t){o=typeof u,o==="string"&&(s=pf.exec(u))&&(u=+(s[1]+1)*+s[2]+parseFloat(i.css(n,r)),o="number");if(u==null||o==="number"&&isNaN(u))return;o!=="number"||i.cssNumber[h]||(u+="px");if(!e||!("set"in e)||(u=e.set(n,u))!==t)try{c[r]=u}catch(l){}}else return e&&"get"in e&&(s=e.get(n,!1,f))!==t?s:c[r]},css:function(n,r,u){var e,f;return r=i.camelCase(r),f=i.cssHooks[r],r=i.cssProps[r]||r,r==="cssFloat"&&(r="float"),f&&"get"in f&&(e=f.get(n,!0,u))!==t?e:c?c(n,r):void 0},swap:function(n,t,i){var u={},r;for(r in t)u[r]=n.style[r],n.style[r]=t[r];i.call(n);for(r in t)n.style[r]=u[r]}}),i.curCSS=i.css,i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){var f;if(r)return n.offsetWidth!==0?ri(n,t,u):(i.swap(n,af,function(){f=ri(n,t,u)}),f)},set:function(n,t){if(si.test(t)){t=parseFloat(t);if(t>=0)return t+"px"}else return t}}}),i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return sf.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(n,t){var f=n.style,u=n.currentStyle,e=i.isNaN(t)?"":"alpha(opacity="+t*100+")",r=u&&u.filter||f.filter||"";f.zoom=1;if(t>=1&&i.trim(r.replace(ht,""))===""){f.removeAttribute("filter");if(u&&!u.filter)return}f.filter=ht.test(r)?r.replace(ht,e):r+" "+e}}),i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,t){var r;return i.swap(n,{display:"inline-block"},function(){r=t?c(n,"margin-right","marginRight"):n.style.marginRight}),r}})}),r.defaultView&&r.defaultView.getComputedStyle&&(ai=function(n,r){var u,e,f;return r=r.replace(hf,"-$1").toLowerCase(),(e=n.ownerDocument.defaultView)?((f=e.getComputedStyle(n,null))&&(u=f.getPropertyValue(r),u!==""||i.contains(n.ownerDocument.documentElement,n)||(u=i.style(n,r))),u):t}),r.documentElement.currentStyle&&(ci=function(n,t){var f,i=n.currentStyle&&n.currentStyle[t],u=n.runtimeStyle&&n.runtimeStyle[t],r=n.style;return!si.test(i)&&yf.test(i)&&(f=r.left,u&&(n.runtimeStyle.left=n.currentStyle.left),r.left=t==="fontSize"?"1em":i||0,i=r.pixelLeft+"px",r.left=f,u&&(n.runtimeStyle.left=u)),i===""?"auto":i}),c=ai||ci,i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){var r=n.offsetWidth,t=n.offsetHeight;return r===0&&t===0||!i.support.reliableHiddenOffsets&&(n.style.display||i.css(n,"display"))==="none"},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});var iu=/%20/g,br=/\[\]$/,hi=/\r?\n/g,ou=/#.*$/,cu=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,uu=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ru=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,eu=/^(?:GET|HEAD)$/,su=/^\/\//,ti=/\?/,nu=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,kr=/^(?:select|textarea)/i,ni=/\s+/,fu=/([?&])_=[^&]*/,dt=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,fi=i.fn.load,ct={},ei={},s,o,vr=["*/"]+["*"];try{s=ne.href}catch(re){s=r.createElement("a"),s.href="",s=s.href}o=dt.exec(s.toLowerCase())||[],i.fn.extend({load:function(n,r,u){var f,s,o,e;return typeof n!="string"&&fi?fi.apply(this,arguments):this.length?(f=n.indexOf(" "),f<0||(s=n.slice(f,n.length),n=n.slice(0,f)),o="GET",r&&(i.isFunction(r)?(u=r,r=t):typeof r=="object"&&(r=i.param(r,i.ajaxSettings.traditional),o="POST")),e=this,i.ajax({url:n,type:o,dataType:"html",data:r,complete:function(n,t,r){r=n.responseText,n.isResolved()&&(n.done(function(n){r=n}),e.html(s?i("<div>").append(r.replace(nu,"")).find(s):r)),u&&e.each(u,[r,t,n])}}),this):this},serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?i.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||kr.test(this.nodeName)||uu.test(this.type))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(hi,"\r\n")}}):{name:t.name,value:r.replace(hi,"\r\n")}}).get()}}),i.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(n,t){i.fn[t]=function(n){return this.bind(t,n)}}),i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({type:r,url:n,data:u,success:f,dataType:e})}}),i.extend({getScript:function(n,r){return i.get(n,t,r,"script")},getJSON:function(n,t,r){return i.get(n,t,r,"json")},ajaxSetup:function(n,t){return t?cr(n,i.ajaxSettings):(t=n,n=i.ajaxSettings),cr(n,t),n},ajaxSettings:{url:s,isLocal:ru.test(o[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":vr},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":n.String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:di(ct),ajaxTransport:di(ei),ajax:function(n,r){function w(n,r,o,l){if(e===2)return;e=2,d&&clearTimeout(d),c=t,it=l||"",f.readyState=n>0?4:0;var y,b,w,a=r,rt=o?ef(u,f,o):t,g,k;if(n>=200&&n<300||n===304){u.ifModified&&((g=f.getResponseHeader("Last-Modified"))&&(i.lastModified[s]=g),(k=f.getResponseHeader("Etag"))&&(i.etag[s]=k));if(n===304)a="notmodified",y=!0;else try{b=nf(u,rt),a="success",y=!0}catch(ut){a="parsererror",w=ut}}else w=a,(!a||n)&&(a="error",n<0&&(n=0));f.status=n,f.statusText=""+(r||a),y?nt.resolveWith(h,[b,a,f]):nt.rejectWith(h,[f,a,w]),f.statusCode(p),p=t,v&&tt.trigger("ajax"+(y?"Success":"Error"),[f,u,y?b:w]),ft.resolveWith(h,[f,a]),v&&(tt.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop"))}var b,g;typeof n=="object"&&(r=n,n=t),r=r||{};var u=i.ajaxSetup({},r),h=u.context||u,tt=h!==u&&(h.nodeType||h instanceof i)?i(h):i.event,nt=i.Deferred(),ft=i._Deferred(),p=u.statusCode||{},s,ut={},rt={},it,y,c,d,l,e=0,v,a,f={readyState:0,setRequestHeader:function(n,t){if(!e){var i=n.toLowerCase();n=rt[i]=rt[i]||n,ut[n]=t}return this},getAllResponseHeaders:function(){return e===2?it:null},getResponseHeader:function(n){var i;if(e===2){if(!y){y={};while(i=cu.exec(it))y[i[1].toLowerCase()]=i[2]}i=y[n.toLowerCase()]}return i===t?null:i},overrideMimeType:function(n){return e||(u.mimeType=n),this},abort:function(n){return n=n||"abort",c&&c.abort(n),w(0,n),this}};nt.promise(f),f.success=f.done,f.error=f.fail,f.complete=ft.done,f.statusCode=function(n){if(n){var t;if(e<2)for(t in n)p[t]=[p[t],n[t]];else t=n[f.status],f.then(t,t)}return this},u.url=((n||u.url)+"").replace(ou,"").replace(su,o[1]+"//"),u.dataTypes=i.trim(u.dataType||"*").toLowerCase().split(ni),u.crossDomain==null&&(l=dt.exec(u.url.toLowerCase()),u.crossDomain=!!(l&&(l[1]!=o[1]||l[2]!=o[2]||(l[3]||(l[1]==="http:"?80:443))!=(o[3]||(o[1]==="http:"?80:443))))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),k(ct,u,r,f);if(e===2)return!1;v=u.global,u.type=u.type.toUpperCase(),u.hasContent=!eu.test(u.type),v&&i.active++==0&&i.event.trigger("ajaxStart"),u.hasContent||(u.data&&(u.url+=(ti.test(u.url)?"&":"?")+u.data,delete u.data),s=u.url,u.cache===!1&&(b=i.now(),g=u.url.replace(fu,"$1_="+b),u.url=g+(g===u.url?(ti.test(u.url)?"&":"?")+"_="+b:""))),(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType),u.ifModified&&(s=s||u.url,i.lastModified[s]&&f.setRequestHeader("If-Modified-Since",i.lastModified[s]),i.etag[s]&&f.setRequestHeader("If-None-Match",i.etag[s])),f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+vr+"; q=0.01":""):u.accepts["*"]);for(a in u.headers)f.setRequestHeader(a,u.headers[a]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||e===2))return f.abort(),!1;for(a in{success:1,error:1,complete:1})f[a](u[a]);c=k(ei,u,r,f);if(c){f.readyState=1,v&&tt.trigger("ajaxSend",[f,u]),u.async&&u.timeout>0&&(d=setTimeout(function(){f.abort("timeout")},u.timeout));try{e=1,c.send(ut,w)}catch(et){e<2?w(-1,et):i.error(et)}}else w(-1,"No Transport");return f},param:function(n,r){var f=[],e=function(n,t){t=i.isFunction(t)?t():t,f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)},u;r===t&&(r=i.ajaxSettings.traditional);if(i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(u in n)bt(u,n[u],r,e);return f.join("&").replace(iu,"+")}}),i.extend({active:0,lastModified:{},etag:{}}),tr=i.now(),p=/(\=)\?(&|$)|\?\?/i,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return i.expando+"_"+tr++}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var l=t.contentType==="application/x-www-form-urlencoded"&&typeof t.data=="string";if(t.dataTypes[0]==="jsonp"||t.jsonp!==!1&&(p.test(t.url)||l&&p.test(t.data))){var o,f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,c=n[f],e=t.url,s=t.data,h="$1"+f+"$2";return t.jsonp!==!1&&(e=e.replace(p,h),t.url===e&&(l&&(s=s.replace(p,h)),t.data===s&&(e+=(/\?/.test(e)?"&":"?")+t.jsonp+"="+f))),t.url=e,t.data=s,n[f]=function(n){o=[n]},u.always(function(){n[f]=c,o&&i.isFunction(c)&&n[f](o[0])}),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json","script"}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1),n.crossDomain&&(n.type="GET",n.global=!1)}),i.ajaxTransport("script",function(n){if(n.crossDomain){var i,u=r.head||r.getElementsByTagName("head")[0]||r.documentElement;return{send:function(f,e){i=r.createElement("script"),i.async="async",n.scriptCharset&&(i.charset=n.scriptCharset),i.src=n.url,i.onload=i.onreadystatechange=function(n,r){(r||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,u&&i.parentNode&&u.removeChild(i),i=t,r||e(200,"success"))},u.insertBefore(i,u.firstChild)},abort:function(){if(i)i.onload(0,1)}}}}),d=n.ActiveXObject?function(){for(var n in v)v[n](0,1)}:!1,ir=0,i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&rr()||gu()}:rr,function(n){i.extend(i.support,{ajax:!!n,cors:!!n&&"withCredentials"in n})}(i.ajaxSettings.xhr()),i.support.ajax&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var o=r.xhr(),h,s;r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async);if(r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType),r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null),u=function(n,f){var c,a,y,s,l;try{if(u&&(f||o.readyState===4)){u=t,h&&(o.onreadystatechange=i.noop,d&&delete v[h]);if(f)o.readyState!==4&&o.abort();else{c=o.status,y=o.getAllResponseHeaders(),s={},l=o.responseXML,l&&l.documentElement&&(s.xml=l),s.text=o.responseText;try{a=o.statusText}catch(w){a=""}c||!r.isLocal||r.crossDomain?c===1223&&(c=204):c=s.text?200:404}}}catch(p){f||e(-1,p)}s&&e(c,a,s,y)},r.async&&o.readyState!==4?(h=++ir,d&&(v||(v={},i(n).unload(d)),v[h]=u),o.onreadystatechange=u):u()},abort:function(){u&&u(0,1)}}}});var lt={},f,a,gr=/^(?:toggle|show|hide)$/,hu=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,g,nr=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],rt;i.fn.extend({show:function(n,t,r){var u,e,f,o;if(n||n===0)return this.animate(l("show",3),n,t,r);for(f=0,o=this.length;f<o;f++)u=this[f],u.style&&(e=u.style.display,i._data(u,"olddisplay")||e!=="none"||(e=u.style.display=""),e===""&&i.css(u,"display")==="none"&&i._data(u,"olddisplay",ur(u.nodeName)));for(f=0;f<o;f++)u=this[f],u.style&&(e=u.style.display,(e===""||e==="none")&&(u.style.display=i._data(u,"olddisplay")||""));return this},hide:function(n,t,r){var u,e,f;if(n||n===0)return this.animate(l("hide",3),n,t,r);for(u=0,e=this.length;u<e;u++)this[u].style&&(f=i.css(this[u],"display"),f==="none"||i._data(this[u],"olddisplay")||i._data(this[u],"olddisplay",f));for(u=0;u<e;u++)this[u].style&&(this[u].style.display="none");return this},_toggle:i.fn.toggle,toggle:function(n,t,r){var u=typeof n=="boolean";return i.isFunction(n)&&i.isFunction(t)?this._toggle.apply(this,arguments):n==null||u?this.each(function(){var t=u?n:i(this).is(":hidden");i(this)[t?"show":"hide"]()}):this.animate(l("toggle",3),n,t,r),this},fadeTo:function(n,t,i,r){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var f=i.speed(t,r,u);return i.isEmptyObject(n)?this.each(f.complete,[!1]):(n=i.extend({},n),this[f.queue===!1?"each":"queue"](function(){f.queue===!1&&i._mark(this);var u=i.extend({},f),y=this.nodeType===1,a=y&&i(this).is(":hidden"),e,t,r,v,h,s,o,c,l;u.animatedProperties={};for(r in n){e=i.camelCase(r),r!==e&&(n[e]=n[r],delete n[r]),t=n[e],i.isArray(t)?(u.animatedProperties[e]=t[1],t=n[e]=t[0]):u.animatedProperties[e]=u.specialEasing&&u.specialEasing[e]||u.easing||"swing";if(t==="hide"&&a||t==="show"&&!a)return u.complete.call(this);y&&(e==="height"||e==="width")&&(u.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],i.css(this,"display")==="inline"&&i.css(this,"float")==="none"&&(i.support.inlineBlockNeedsLayout?(v=ur(this.nodeName),v==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}u.overflow!=null&&(this.style.overflow="hidden");for(r in n)h=new i.fx(this,u,r),t=n[r],gr.test(t)?h[t==="toggle"?a?"show":"hide":t]():(s=hu.exec(t),o=h.cur(),s?(c=parseFloat(s[2]),l=s[3]||(i.cssNumber[r]?"":"px"),l!=="px"&&(i.style(this,r,(c||1)+l),o=(c||1)/h.cur()*o,i.style(this,r,o+l)),s[1]&&(c=(s[1]==="-="?-1:1)*c+o),h.custom(o,c,l)):h.custom(o,t,""));return!0}))},stop:function(n,t){return n&&this.queue([]),this.each(function(){var r=i.timers,n=r.length;t||i._unmark(!0,this);while(n--)r[n].elem===this&&(t&&r[n](!0),r.splice(n,1))}),t||this.dequeue(),this}}),i.each({slideDown:l("show",1),slideUp:l("hide",1),slideToggle:l("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}}),i.extend({speed:function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,u.old=u.complete,u.complete=function(n){i.isFunction(u.old)&&u.old.call(this),u.queue!==!1?i.dequeue(this):n!==!1&&i._unmark(this)},u},easing:{linear:function(n,t,i,r){return i+r*n},swing:function(n,t,i,r){return(-Math.cos(n*Math.PI)/2+.5)*r+i}},timers:[],fx:function(n,t,i){this.options=t,this.elem=n,this.prop=i,t.orig=t.orig||{}}}),i.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(i.fx.step[this.prop]||i.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var t,n=i.css(this.elem,this.prop);return isNaN(t=parseFloat(n))?!n||n==="auto"?0:n:t},custom:function(n,t,r){function u(n){return e.step(n)}var e=this,f=i.fx;this.startTime=rt||gi(),this.start=n,this.end=t,this.unit=r||this.unit||(i.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,u.elem=this.elem,u()&&i.timers.push(u)&&!g&&(g=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=i.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),i(this.elem).show()},hide:function(){this.options.orig[this.prop]=i.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(n){var f=rt||gi(),o=!0,r=this.elem,t=this.options,s,u,e;if(n||f>=t.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),t.animatedProperties[this.prop]=!0;for(s in t.animatedProperties)t.animatedProperties[s]!==!0&&(o=!1);if(o){t.overflow==null||i.support.shrinkWrapBlocks||i.each(["","X","Y"],function(n,i){r.style["overflow"+i]=t.overflow[n]}),t.hide&&i(r).hide();if(t.hide||t.show)for(e in t.animatedProperties)i.style(r,e,t.orig[e]);t.complete.call(r)}return!1}return t.duration==Infinity?this.now=f:(u=f-this.startTime,this.state=u/t.duration,this.pos=i.easing[t.animatedProperties[this.prop]](this.state,u,0,1,t.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},i.extend(i.fx,{tick:function(){for(var t=i.timers,n=0;n<t.length;++n)t[n]()||t.splice(n--,1);t.length||i.fx.stop()},interval:13,stop:function(){clearInterval(g),g=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(n){i.style(n.elem,"opacity",n.now)},_default:function(n){n.elem.style&&n.elem.style[n.prop]!=null?n.elem.style[n.prop]=(n.prop==="width"||n.prop==="height"?Math.max(0,n.now):n.now)+n.unit:n.elem[n.prop]=n.now}}}),i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length}),pr=/^t(?:able|d|h)$/i,vt=/^(?:body|html)$/i,i.fn.offset="getBoundingClientRect"in r.documentElement?function(n){var t=this[0],r,e,u;if(n)return this.each(function(t){i.offset.setOffset(this,n,t)});if(!t||!t.ownerDocument)return null;if(t===t.ownerDocument.body)return i.offset.bodyOffset(t);try{r=t.getBoundingClientRect()}catch(y){}e=t.ownerDocument,u=e.documentElement;if(!r||!i.contains(u,t))return r?{top:r.top,left:r.left}:{top:0,left:0};var f=e.body,o=wt(e),l=u.clientTop||f.clientTop||0,a=u.clientLeft||f.clientLeft||0,v=o.pageYOffset||i.support.boxModel&&u.scrollTop||f.scrollTop,s=o.pageXOffset||i.support.boxModel&&u.scrollLeft||f.scrollLeft,h=r.top+v-l,c=r.left+s-a;return{top:h,left:c}}:function(n){var t=this[0];if(n)return this.each(function(t){i.offset.setOffset(this,n,t)});if(!t||!t.ownerDocument)return null;if(t===t.ownerDocument.body)return i.offset.bodyOffset(t);i.offset.initialize();var f,h=t.offsetParent,a=t,l=t.ownerDocument,c=l.documentElement,o=l.body,s=l.defaultView,e=s?s.getComputedStyle(t,null):t.currentStyle,u=t.offsetTop,r=t.offsetLeft;while((t=t.parentNode)&&t!==o&&t!==c){if(i.offset.supportsFixedPosition&&e.position==="fixed")break;f=s?s.getComputedStyle(t,null):t.currentStyle,u-=t.scrollTop,r-=t.scrollLeft,t===h&&(u+=t.offsetTop,r+=t.offsetLeft,!i.offset.doesNotAddBorder||i.offset.doesAddBorderForTableAndCells&&pr.test(t.nodeName)||(u+=parseFloat(f.borderTopWidth)||0,r+=parseFloat(f.borderLeftWidth)||0),a=h,h=t.offsetParent),i.offset.subtractsBorderForOverflowNotVisible&&f.overflow!=="visible"&&(u+=parseFloat(f.borderTopWidth)||0,r+=parseFloat(f.borderLeftWidth)||0),e=f}return(e.position==="relative"||e.position==="static")&&(u+=o.offsetTop,r+=o.offsetLeft),i.offset.supportsFixedPosition&&e.position==="fixed"&&(u+=Math.max(c.scrollTop,o.scrollTop),r+=Math.max(c.scrollLeft,o.scrollLeft)),{top:u,left:r}},i.offset={initialize:function(){var t=r.body,f=r.createElement("div"),u,n,h,e,s=parseFloat(i.css(t,"marginTop"))||0,o="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";i.extend(f.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),f.innerHTML=o,t.insertBefore(f,t.firstChild),u=f.firstChild,n=u.firstChild,e=u.nextSibling.firstChild.firstChild,this.doesNotAddBorder=n.offsetTop!==5,this.doesAddBorderForTableAndCells=e.offsetTop===5,n.style.position="fixed",n.style.top="20px",this.supportsFixedPosition=n.offsetTop===20||n.offsetTop===15,n.style.position=n.style.top="",u.style.overflow="hidden",u.style.position="relative",this.subtractsBorderForOverflowNotVisible=n.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=t.offsetTop!==s,t.removeChild(f),i.offset.initialize=i.noop},bodyOffset:function(n){var r=n.offsetTop,t=n.offsetLeft;return i.offset.initialize(),i.offset.doesNotIncludeMarginInBodyOffset&&(r+=parseFloat(i.css(n,"marginTop"))||0,t+=parseFloat(i.css(n,"marginLeft"))||0),{top:r,left:t}},setOffset:function(n,t,r){var s=i.css(n,"position");s==="static"&&(n.style.position="relative");var h=i(n),c=h.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=(s==="absolute"||s==="fixed")&&i.inArray("auto",[l,a])>-1,u={},e={},f,o;v?(e=h.position(),f=e.top,o=e.left):(f=parseFloat(l)||0,o=parseFloat(a)||0),i.isFunction(t)&&(t=t.call(n,r,c)),t.top!=null&&(u.top=t.top-c.top+f),t.left!=null&&(u.left=t.left-c.left+o),"using"in t?t.using.call(n,u):h.css(u)}},i.fn.extend({position:function(){if(!this[0])return null;var u=this[0],r=this.offsetParent(),n=this.offset(),t=vt.test(r[0].nodeName)?{top:0,left:0}:r.offset();return n.top-=parseFloat(i.css(u,"marginTop"))||0,n.left-=parseFloat(i.css(u,"marginLeft"))||0,t.top+=parseFloat(i.css(r[0],"borderTopWidth"))||0,t.left+=parseFloat(i.css(r[0],"borderLeftWidth"))||0,{top:n.top-t.top,left:n.left-t.left}},offsetParent:function(){return this.map(function(){var n=this.offsetParent||r.body;while(n&&!vt.test(n.nodeName)&&i.css(n,"position")==="static")n=n.offsetParent;return n})}}),i.each(["Left","Top"],function(n,r){var u="scroll"+r;i.fn[u]=function(r){var e,f;return r===t?(e=this[0],e?(f=wt(e),f?"pageXOffset"in f?f[n?"pageYOffset":"pageXOffset"]:i.support.boxModel&&f.document.documentElement[u]||f.document.body[u]:e[u]):null):this.each(function(){f=wt(this),f?f.scrollTo(n?i(f).scrollLeft():r,n?r:i(f).scrollTop()):this[u]=r})}}),i.each(["Height","Width"],function(n,r){var u=r.toLowerCase();i.fn["inner"+r]=function(){var n=this[0];return n&&n.style?parseFloat(i.css(n,u,"padding")):null},i.fn["outer"+r]=function(n){var t=this[0];return t&&t.style?parseFloat(i.css(t,u,n?"margin":"border")):null},i.fn[u]=function(n){var f=this[0],s,h,e,o;return f?i.isFunction(n)?this.each(function(t){var r=i(this);r[u](n.call(this,t,r[u]()))}):i.isWindow(f)?(s=f.document.documentElement["client"+r],h=f.document.body,f.document.compatMode==="CSS1Compat"&&s||h&&h["client"+r]||s):f.nodeType===9?Math.max(f.documentElement["client"+r],f.body["scroll"+r],f.documentElement["scroll"+r],f.body["offset"+r],f.documentElement["offset"+r]):n===t?(e=i.css(f,u),o=parseFloat(e),i.isNaN(o)?e:o):this.css(u,typeof n=="string"?n:n+"px"):n==null?null:this}}),n.jQuery=n.$=i})(window),Enumerable=function(){var t=function(n){this.getEnumerator=n},o,u;t.choice=function(){var n=arguments[0]instanceof Array?arguments[0]:arguments;return new t(function(){return new i(r.Blank,function(){return this.yield(n[Math.floor(Math.random()*n.length)])},r.Blank)})},t.cycle=function(){var n=arguments[0]instanceof Array?arguments[0]:arguments;return new t(function(){var t=0;return new i(r.Blank,function(){return t<n.length||(t=0),this.yield(n[t++])},r.Blank)})},t.empty=function(){return new t(function(){return new i(r.Blank,function(){return!1},r.Blank)})},t.from=function(e){if(e==null)return t.empty();if(e instanceof t)return e;if(typeof e==f.Number||typeof e==f.Boolean)return t.repeat(e,1);if(typeof e==f.String)return new t(function(){var n=0;return new i(r.Blank,function(){return n<e.length?this.yield(e.charAt(n++)):!1},r.Blank)});if(typeof e!=f.Function){if(typeof e.length==f.Number)return new u(e);if(!(e instanceof Object)&&n.isIEnumerable(e))return new t(function(){var t=!0,n;return new i(function(){n=new Enumerator(e)},function(){return t?t=!1:n.moveNext(),n.atEnd()?!1:this.yield(n.item())},r.Blank)})}return new t(function(){var n=[],t=0;return new i(function(){for(var t in e)e[t]instanceof Function||n.push({key:t,value:e[t]})},function(){return t<n.length?this.yield(n[t++]):!1},r.Blank)})},t.return$=function(n){return t.repeat(n,1)},t.matches=function(n,u,f){return f==null&&(f=""),u instanceof RegExp&&(f+=u.ignoreCase?"i":"",f+=u.multiline?"m":"",u=u.source),f.indexOf("g")===-1&&(f+="g"),new t(function(){var t;return new i(function(){t=new RegExp(u,f)},function(){var i=t.exec(n);return i?this.yield(i):!1},r.Blank)})},t.range=function(n,i,r){return r==null&&(r=1),t.toInfinity(n,r).take(i)},t.rangeDown=function(n,i,r){return r==null&&(r=1),t.toNegativeInfinity(n,r).take(i)},t.rangeTo=function(n,i,r){return r==null&&(r=1),n<i?t.toInfinity(n,r).takeWhile(function(n){return n<=i}):t.toNegativeInfinity(n,r).takeWhile(function(n){return n>=i})},t.repeat=function(n,u){return u!=null?t.repeat(n).take(u):new t(function(){return new i(r.Blank,function(){return this.yield(n)},r.Blank)})},t.repeatWithFinalize=function(r,u){return r=n.createLambda(r),u=n.createLambda(u),new t(function(){var n;return new i(function(){n=r()},function(){return this.yield(n)},function(){n!=null&&(u(n),n=null)})})},t.generate=function(u,f){return f!=null?t.generate(u).take(f):(u=n.createLambda(u),new t(function(){return new i(r.Blank,function(){return this.yield(u())},r.Blank)}))},t.toInfinity=function(n,u){return n==null&&(n=0),u==null&&(u=1),new t(function(){var t;return new i(function(){t=n-u},function(){return this.yield(t+=u)},r.Blank)})},t.toNegativeInfinity=function(n,u){return n==null&&(n=0),u==null&&(u=1),new t(function(){var t;return new i(function(){t=n+u},function(){return this.yield(t-=u)},r.Blank)})},t.unfold=function(u,f){return f=n.createLambda(f),new t(function(){var t=!0,n;return new i(r.Blank,function(){return t?(t=!1,n=u,this.yield(n)):(n=f(n),this.yield(n))},r.Blank)})},t.prototype={cascadeBreadthFirst:function(r,u){var f=this;return r=n.createLambda(r),u=n.createLambda(u),new t(function(){var e,s=0,o=[];return new i(function(){e=f.getEnumerator()},function(){for(;;){if(e.moveNext())return o.push(e.current()),this.yield(u(e.current(),s));var i=t.from(o).selectMany(function(n){return r(n)});if(i.any())s++,o=[],n.dispose(e),e=i.getEnumerator();else return!1}},function(){n.dispose(e)})})},cascadeDepthFirst:function(r,u){var f=this;return r=n.createLambda(r),u=n.createLambda(u),new t(function(){var o=[],e;return new i(function(){e=f.getEnumerator()},function(){for(;;){if(e.moveNext()){var i=u(e.current(),o.length);return o.push(e),e=t.from(r(e.current())).getEnumerator(),this.yield(i)}if(o.length<=0)return!1;n.dispose(e),e=o.pop()}},function(){try{n.dispose(e)}finally{t.from(o).forEach(function(n){n.dispose()})}})})},flatten:function(){var u=this;return new t(function(){var e,f=null;return new i(function(){e=u.getEnumerator()},function(){for(;;){if(f!=null){if(f.moveNext())return this.yield(f.current());f=null}if(e.moveNext())if(e.current()instanceof Array){n.dispose(f),f=t.from(e.current()).selectMany(r.Identity).flatten().getEnumerator();continue}else return this.yield(e.current());return!1}},function(){try{n.dispose(e)}finally{n.dispose(f)}})})},pairwise:function(r){var u=this;return r=n.createLambda(r),new t(function(){var t;return new i(function(){t=u.getEnumerator(),t.moveNext()},function(){var n=t.current();return t.moveNext()?this.yield(r(n,t.current())):!1},function(){n.dispose(t)})})},scan:function(r,u,f){var e,o;return f!=null?this.scan(r,u).select(f):(u==null?(u=n.createLambda(r),e=!1):(u=n.createLambda(u),e=!0),o=this,new t(function(){var t,f,s=!0;return new i(function(){t=o.getEnumerator()},function(){if(s){s=!1;if(e)return this.yield(f=r);if(t.moveNext())return this.yield(f=t.current())}return t.moveNext()?this.yield(f=u(f,t.current())):!1},function(){n.dispose(t)})}))},select:function(r){var u=this;return r=n.createLambda(r),new t(function(){var t,f=0;return new i(function(){t=u.getEnumerator()},function(){return t.moveNext()?this.yield(r(t.current(),f++)):!1},function(){n.dispose(t)})})},selectMany:function(r,u){var f=this;return r=n.createLambda(r),u==null&&(u=function(n,t){return t}),u=n.createLambda(u),new t(function(){var o,e=undefined,s=0;return new i(function(){o=f.getEnumerator()},function(){if(e===undefined)if(!o.moveNext())return!1;do{if(e==null){var i=r(o.current(),s++);e=t.from(i).getEnumerator()}if(e.moveNext())return this.yield(u(o.current(),e.current()));n.dispose(e),e=null}while(o.moveNext());return!1},function(){try{n.dispose(o)}finally{n.dispose(e)}})})},where:function(r){r=n.createLambda(r);var u=this;return new t(function(){var t,f=0;return new i(function(){t=u.getEnumerator()},function(){while(t.moveNext())if(r(t.current(),f++))return this.yield(t.current());return!1},function(){n.dispose(t)})})},ofType:function(n){var t;switch(n){case Number:t=f.Number;break;case String:t=f.String;break;case Boolean:t=f.Boolean;break;case Function:t=f.Function;break;default:t=null}return t===null?this.where(function(t){return t instanceof n}):this.where(function(n){return typeof n===t})},zip:function(r,u){u=n.createLambda(u);var f=this;return new t(function(){var o,e,s=0;return new i(function(){o=f.getEnumerator(),e=t.from(r).getEnumerator()},function(){return o.moveNext()&&e.moveNext()?this.yield(u(o.current(),e.current(),s++)):!1},function(){try{n.dispose(o)}finally{n.dispose(e)}})})},join:function(u,f,e,o,s){f=n.createLambda(f),e=n.createLambda(e),o=n.createLambda(o),s=n.createLambda(s);var h=this;return new t(function(){var c,v,l=null,a=0;return new i(function(){c=h.getEnumerator(),v=t.from(u).toLookup(e,r.Identity,s)},function(){for(var n,t;;){if(l!=null){n=l[a++];if(n!==undefined)return this.yield(o(c.current(),n));n=null,a=0}if(c.moveNext())t=f(c.current()),l=v.get(t).toArray();else return!1}},function(){n.dispose(c)})})},groupJoin:function(u,f,e,o,s){f=n.createLambda(f),e=n.createLambda(e),o=n.createLambda(o),s=n.createLambda(s);var h=this;return new t(function(){var c=h.getEnumerator(),l=null;return new i(function(){c=h.getEnumerator(),l=t.from(u).toLookup(e,r.Identity,s)},function(){if(c.moveNext()){var n=l.get(f(c.current()));return this.yield(o(c.current(),n))}return!1},function(){n.dispose(c)})})},all:function(t){t=n.createLambda(t);var i=!0;return this.forEach(function(n){if(!t(n))return i=!1,!1}),i},any:function(t){t=n.createLambda(t);var i=this.getEnumerator();try{if(arguments.length==0)return i.moveNext();while(i.moveNext())if(t(i.current()))return!0;return!1}finally{n.dispose(i)}},concat:function(r){var u=this;return new t(function(){var e,f;return new i(function(){e=u.getEnumerator()},function(){if(f==null){if(e.moveNext())return this.yield(e.current());f=t.from(r).getEnumerator()}return f.moveNext()?this.yield(f.current()):!1},function(){try{n.dispose(e)}finally{n.dispose(f)}})})},insert:function(r,u){var f=this;return new t(function(){var o,e,h=0,s=!1;return new i(function(){o=f.getEnumerator(),e=t.from(u).getEnumerator()},function(){return h==r&&e.moveNext()?(s=!0,this.yield(e.current())):o.moveNext()?(h++,this.yield(o.current())):!s&&e.moveNext()?this.yield(e.current()):!1},function(){try{n.dispose(o)}finally{n.dispose(e)}})})},alternate:function(n){return n=t.return$(n),this.selectMany(function(i){return t.return$(i).concat(n)}).takeExceptLast()},contains:function(t,i){i=n.createLambda(i);var r=this.getEnumerator();try{while(r.moveNext())if(i(r.current())===t)return!0;return!1}finally{n.dispose(r)}},defaultIfEmpty:function(r){var u=this;return new t(function(){var t,f=!0;return new i(function(){t=u.getEnumerator()},function(){return t.moveNext()?(f=!1,this.yield(t.current())):f?(f=!1,this.yield(r)):!1},function(){n.dispose(t)})})},distinct:function(n){return this.Except(t.empty(),n)},Except:function(r,u){u=n.createLambda(u);var f=this;return new t(function(){var o,e;return new i(function(){o=f.getEnumerator(),e=new h(u),t.from(r).forEach(function(n){e.add(n)})},function(){while(o.moveNext()){var n=o.current();if(!e.contains(n))return e.add(n),this.yield(n)}return!1},function(){n.dispose(o)})})},intersect:function(r,u){u=n.createLambda(u);var f=this;return new t(function(){var e,s,o;return new i(function(){e=f.getEnumerator(),s=new h(u),t.from(r).forEach(function(n){s.add(n)}),o=new h(u)},function(){while(e.moveNext()){var n=e.current();if(!o.contains(n)&&s.contains(n))return o.add(n),this.yield(n)}return!1},function(){n.dispose(e)})})},sequenceEqual:function(i,r){var f,u;r=n.createLambda(r),f=this.getEnumerator();try{u=t.from(i).getEnumerator();try{while(f.moveNext())if(!u.moveNext()||r(f.current())!==r(u.current()))return!1;return u.moveNext()?!1:!0}finally{n.dispose(u)}}finally{n.dispose(f)}},union:function(r,u){u=n.createLambda(u);var f=this;return new t(function(){var s,o,e;return new i(function(){s=f.getEnumerator(),e=new h(u)},function(){var n;if(o===undefined){while(s.moveNext()){n=s.current();if(!e.contains(n))return e.add(n),this.yield(n)}o=t.from(r).getEnumerator()}while(o.moveNext()){n=o.current();if(!e.contains(n))return e.add(n),this.yield(n)}return!1},function(){try{n.dispose(s)}finally{n.dispose(o)}})})},orderBy:function(n){return new e(this,n,!1)},orderByDescending:function(n){return new e(this,n,!0)},reverse:function(){var n=this;return new t(function(){var u,t;return new i(function(){u=n.toArray(),t=u.length},function(){return t>0?this.yield(u[--t]):!1},r.Blank)})},shuffle:function(){var n=this;return new t(function(){var t;return new i(function(){t=n.toArray()},function(){if(t.length>0){var n=Math.floor(Math.random()*t.length);return this.yield(t.splice(n,1)[0])}return!1},r.Blank)})},groupBy:function(r,u,f,e){var o=this;return r=n.createLambda(r),u=n.createLambda(u),f!=null&&(f=n.createLambda(f)),e=n.createLambda(e),new t(function(){var t;return new i(function(){t=o.toLookup(r,u,e).toEnumerable().getEnumerator()},function(){while(t.moveNext())return f==null?this.yield(t.current()):this.yield(f(t.current().key(),t.current()));return!1},function(){n.dispose(t)})})},partitionBy:function(r,u,f,e){var s=this,o;return r=n.createLambda(r),u=n.createLambda(u),e=n.createLambda(e),f==null?(o=!1,f=function(n,t){return new c(n,t)}):(o=!0,f=n.createLambda(f)),new t(function(){var h,l,a,c=[];return new i(function(){h=s.getEnumerator(),h.moveNext()&&(l=r(h.current()),a=e(l),c.push(u(h.current())))},function(){var i,n;while((i=h.moveNext())==!0)if(a===e(r(h.current())))c.push(u(h.current()));else break;return c.length>0?(n=o?f(l,t.from(c)):f(l,c),i?(l=r(h.current()),a=e(l),c=[u(h.current())]):c=[],this.yield(n)):!1},function(){n.dispose(h)})})},bufferWithCount:function(r){var u=this;return new t(function(){var t;return new i(function(){t=u.getEnumerator()},function(){var n=[],i=0;while(t.moveNext()){n.push(t.current());if(++i>=r)return this.yield(n)}return n.length>0?this.yield(n):!1},function(){n.dispose(t)})})},aggregate:function(n,t,i){return this.scan(n,t,i).last()},average:function(t){t=n.createLambda(t);var r=0,i=0;return this.forEach(function(n){r+=t(n),++i}),r/i},count:function(t){t=t==null?r.True:n.createLambda(t);var i=0;return this.forEach(function(n,r){t(n,r)&&++i}),i},max:function(n){return n==null&&(n=r.Identity),this.select(n).aggregate(function(n,t){return n>t?n:t})},min:function(n){return n==null&&(n=r.Identity),this.select(n).aggregate(function(n,t){return n<t?n:t})},maxBy:function(t){return t=n.createLambda(t),this.aggregate(function(n,i){return t(n)>t(i)?n:i})},minBy:function(t){return t=n.createLambda(t),this.aggregate(function(n,i){return t(n)<t(i)?n:i})},sum:function(n){return n==null&&(n=r.Identity),this.select(n).aggregate(0,function(n,t){return n+t})},elementAt:function(n){var i,t=!1;this.forEach(function(r,u){if(u==n)return i=r,t=!0,!1});if(!t)throw new Error("index is less than 0 or greater than or equal to the number of elements in source.");return i},elementAtOrDefault:function(n,t){var r,i=!1;return this.forEach(function(t,u){if(u==n)return r=t,i=!0,!1}),i?r:t},first:function(n){if(n!=null)return this.where(n).first();var i,t=!1;this.forEach(function(n){return i=n,t=!0,!1});if(!t)throw new Error("First:No element satisfies the condition.");return i},firstOrDefault:function(n,t){if(t!=null)return this.where(t).firstOrDefault(n);var r,i=!1;return this.forEach(function(n){return r=n,i=!0,!1}),i?r:n},last:function(n){if(n!=null)return this.where(n).last();var i,t=!1;this.forEach(function(n){t=!0,i=n});if(!t)throw new Error("Last:No element satisfies the condition.");return i},lastOrDefault:function(n,t){if(t!=null)return this.where(t).lastOrDefault(n);var r,i=!1;return this.forEach(function(n){i=!0,r=n}),i?r:n},single:function(n){if(n!=null)return this.where(n).single();var i,t=!1;this.forEach(function(n){if(t)throw new Error("Single:sequence contains more than one element.");else t=!0,i=n});if(!t)throw new Error("Single:No element satisfies the condition.");return i},singleOrDefault:function(n,t){if(t!=null)return this.where(t).singleOrDefault(n);var r,i=!1;return this.forEach(function(n){if(i)throw new Error("Single:sequence contains more than one element.");else i=!0,r=n}),i?r:n},skip:function(r){var u=this;return new t(function(){var t,f=0;return new i(function(){t=u.getEnumerator();while(f++<r&&t.moveNext());},function(){return t.moveNext()?this.yield(t.current()):!1},function(){n.dispose(t)})})},skipWhile:function(r){r=n.createLambda(r);var u=this;return new t(function(){var t,e=0,f=!1;return new i(function(){t=u.getEnumerator()},function(){while(!f)if(t.moveNext()){if(!r(t.current(),e++))return f=!0,this.yield(t.current());continue}else return!1;return t.moveNext()?this.yield(t.current()):!1},function(){n.dispose(t)})})},take:function(r){var u=this;return new t(function(){var t,f=0;return new i(function(){t=u.getEnumerator()},function(){return f++<r&&t.moveNext()?this.yield(t.current()):!1},function(){n.dispose(t)})})},takeWhile:function(r){r=n.createLambda(r);var u=this;return new t(function(){var t,f=0;return new i(function(){t=u.getEnumerator()},function(){return t.moveNext()&&r(t.current(),f++)?this.yield(t.current()):!1},function(){n.dispose(t)})})},takeExceptLast:function(r){r==null&&(r=1);var u=this;return new t(function(){if(r<=0)return u.getEnumerator();var t,f=[];return new i(function(){t=u.getEnumerator()},function(){while(t.moveNext()){if(f.length==r)return f.push(t.current()),this.yield(f.shift());f.push(t.current())}return!1},function(){n.dispose(t)})})},takeFromLast:function(r){if(r<=0||r==null)return t.empty();var u=this;return new t(function(){var o,f,e=[];return new i(function(){o=u.getEnumerator()},function(){while(o.moveNext())e.length==r&&e.shift(),e.push(o.current());return f==null&&(f=t.from(e).getEnumerator()),f.moveNext()?this.yield(f.current()):!1},function(){n.dispose(f)})})},indexOf:function(n){var t=null;return this.forEach(function(i,r){if(i===n)return t=r,!0}),t!==null?t:-1},lastIndexOf:function(n){var t=-1;return this.forEach(function(i,r){i===n&&(t=r)}),t},toArray:function(){var n=[];return this.forEach(function(t){n.push(t)}),n},toLookup:function(t,i,r){t=n.createLambda(t),i=n.createLambda(i),r=n.createLambda(r);var u=new h(r);return this.forEach(function(n){var e=t(n),f=i(n),r=u.get(e);r!==undefined?r.push(f):u.add(e,[f])}),new a(u)},toObject:function(t,i){t=n.createLambda(t),i=n.createLambda(i);var r={};return this.forEach(function(n){r[t(n)]=i(n)}),r},toDictionary:function(t,i,r){t=n.createLambda(t),i=n.createLambda(i),r=n.createLambda(r);var u=new h(r);return this.forEach(function(n){u.add(t(n),i(n))}),u},toJSON:function(n,t){return JSON.stringify(this.toArray(),n,t)},toString:function(n,t){return n==null&&(n=""),t==null&&(t=r.Identity),this.select(t).toArray().join(n)},do$:function(r){var u=this;return r=n.createLambda(r),new t(function(){var t,f=0;return new i(function(){t=u.getEnumerator()},function(){return t.moveNext()?(r(t.current(),f++),this.yield(t.current())):!1},function(){n.dispose(t)})})},forEach:function(t){t=n.createLambda(t);var r=0,i=this.getEnumerator();try{while(i.moveNext())if(t(i.current(),r++)===!1)break}finally{n.dispose(i)}},write:function(t,i){t==null&&(t=""),i=n.createLambda(i);var r=!0;this.forEach(function(n){r?r=!1:document.write(t),document.write(i(n))})},writeLine:function(t){t=n.createLambda(t),this.forEach(function(n){document.write(t(n)),document.write("<br />")})},force:function(){var t=this.getEnumerator();try{while(t.moveNext());}finally{n.dispose(t)}},let:function(r){r=n.createLambda(r);var u=this;return new t(function(){var f;return new i(function(){f=t.from(r(u)).getEnumerator()},function(){return f.moveNext()?this.yield(f.current()):!1},function(){n.dispose(f)})})},share:function(){var u=this,n;return new t(function(){return new i(function(){n==null&&(n=u.getEnumerator())},function(){return n.moveNext()?this.yield(n.current()):!1},r.Blank)})},memoizeAll:function(){var f=this,u,n;return new t(function(){var t=-1;return new i(function(){n==null&&(n=f.getEnumerator(),u=[])},function(){return t++,u.length<=t?n.moveNext()?this.yield(u[t]=n.current()):!1:this.yield(u[t])},r.Blank)})},catch$:function(r){r=n.createLambda(r);var u=this;return new t(function(){var t;return new i(function(){t=u.getEnumerator()},function(){try{return t.moveNext()?this.yield(t.current()):!1}catch(n){return r(n),!1}},function(){n.dispose(t)})})},finally$:function(r){r=n.createLambda(r);var u=this;return new t(function(){var t;return new i(function(){t=u.getEnumerator()},function(){return t.moveNext()?this.yield(t.current()):!1},function(){try{n.dispose(t)}finally{r()}})})},trace:function(t,i){return t==null&&(t="Trace"),i=n.createLambda(i),this.do$(function(n){console.log(t,":",i(n))})}};var r={Identity:function(n){return n},True:function(){return!0},Blank:function(){}},f={Boolean:"boolean",Number:"number",String:"string",Object:"object",Undefined:typeof undefined,Function:typeof function(){}},n={createLambda:function(n){if(n==null)return r.Identity;if(typeof n==f.String){if(n=="")return r.Identity;if(n.indexOf("=>")==-1)return new Function("$,$$,$$$,$$$$","return "+n);var t=n.match(/^[(\s]*([^()]*?)[)\s]*=>(.*)/);return new Function(t[1],"return "+t[2])}return n},isIEnumerable:function(n){if(typeof Enumerator!=f.Undefined)try{return new Enumerator(n),!0}catch(t){}return!1},compare:function(n,t){return n===t?0:n>t?1:-1},dispose:function(n){n!=null&&n.dispose()}},s={Before:0,Running:1,After:2},i=function(n,t,i){var u=new l,r=s.Before;this.current=u.current,this.moveNext=function(){try{switch(r){case s.Before:r=s.Running,n();case s.Running:return t.apply(u)?!0:(this.dispose(),!1);case s.After:return!1}}catch(i){this.dispose();throw i;}},this.dispose=function(){if(r!=s.Running)return;try{i()}finally{r=s.After}}},l=function(){var n=null;this.current=function(){return n},this.yield=function(t){return n=t,!0}},e=function(t,i,r,u){this.source=t,this.keySelector=n.createLambda(i),this.descending=r,this.parent=u};e.prototype=new t,e.prototype.createOrderedEnumerable=function(n,t){return new e(this.source,n,t,this)},e.prototype.thenBy=function(n){return this.createOrderedEnumerable(n,!1)},e.prototype.thenByDescending=function(n){return this.createOrderedEnumerable(n,!0)},e.prototype.getEnumerator=function(){var f=this,t,n,u=0;return new i(function(){t=[],n=[],f.source.forEach(function(i,r){t.push(i),n.push(r)});var i=o.create(f,null);i.generateKeys(t),n.sort(function(n,t){return i.compare(n,t)})},function(){return u<n.length?this.yield(t[n[u++]]):!1},r.Blank)},o=function(n,t,i){this.keySelector=n,this.descending=t,this.child=i,this.keys=null},o.create=function(n,t){var i=new o(n.keySelector,n.descending,t);return n.parent!=null?o.create(n.parent,i):i},o.prototype.generateKeys=function(n){for(var r=n.length,u=this.keySelector,i=new Array(r),t=0;t<r;t++)i[t]=u(n[t]);this.keys=i,this.child!=null&&this.child.generateKeys(n)},o.prototype.compare=function(t,i){var r=n.compare(this.keys[t],this.keys[i]);if(r==0){if(this.child!=null)return this.child.compare(t,i);r=n.compare(t,i)}return this.descending?-r:r},u=function(n){this.source=n},u.prototype=new t,u.prototype.any=function(n){return n==null?this.source.length>0:t.prototype.any.apply(this,arguments)},u.prototype.count=function(n){return n==null?this.source.length:t.prototype.count.apply(this,arguments)},u.prototype.elementAt=function(n){return 0<=n&&n<this.source.length?this.source[n]:t.prototype.elementAt.apply(this,arguments)},u.prototype.elementAtOrDefault=function(n,t){return 0<=n&&n<this.source.length?this.source[n]:t},u.prototype.first=function(n){return n==null&&this.source.length>0?this.source[0]:t.prototype.first.apply(this,arguments)},u.prototype.firstOrDefault=function(n,i){return i!=null?t.prototype.firstOrDefault.apply(this,arguments):this.source.length>0?this.source[0]:n},u.prototype.last=function(n){return n==null&&this.source.length>0?this.source[this.source.length-1]:t.prototype.last.apply(this,arguments)},u.prototype.lastOrDefault=function(n,i){return i!=null?t.prototype.lastOrDefault.apply(this,arguments):this.source.length>0?this.source[this.source.length-1]:n},u.prototype.skip=function(n){var u=this.source;return new t(function(){var t;return new i(function(){t=n<0?0:n},function(){return t<u.length?this.yield(u[t++]):!1},r.Blank)})},u.prototype.takeExceptLast=function(n){return n==null&&(n=1),this.take(this.source.length-n)},u.prototype.takeFromLast=function(n){return this.skip(this.source.length-n)},u.prototype.reverse=function(){var n=this.source;return new t(function(){var t;return new i(function(){t=n.length},function(){return t>0?this.yield(n[--t]):!1},r.Blank)})},u.prototype.sequenceEqual=function(n,i){return(n instanceof u||n instanceof Array)&&i==null&&t.from(n).count()!=this.count()?!1:t.prototype.sequenceEqual.apply(this,arguments)},u.prototype.toString=function(n,i){return i!=null||!(this.source instanceof Array)?t.prototype.toString.apply(this,arguments):(n==null&&(n=""),this.source.join(n))},u.prototype.getEnumerator=function(){var t=this.source,n=0;return new i(r.Blank,function(){return n<t.length?this.yield(t[n++]):!1},r.Blank)};var h=function(){var u=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},n=function(n){return n===null?"null":n===undefined?"undefined":typeof n.toString===f.Function?n.toString():Object.prototype.toString.call(n)},s=function(n,t){this.key=n,this.value=t,this.prev=null,this.next=null},e=function(){this.first=null,this.last=null},o;return e.prototype={addLast:function(n){this.last!=null?(this.last.next=n,n.prev=this.last,this.last=n):this.first=this.last=n},replace:function(n,t){n.prev!=null?(n.prev.next=t,t.prev=n.prev):this.first=t,n.next!=null?(n.next.prev=t,t.next=n.next):this.last=t},remove:function(n){n.prev!=null?n.prev.next=n.next:this.first=n.next,n.next!=null?n.next.prev=n.prev:this.last=n.prev}},o=function(n){this.count=0,this.entryList=new e,this.buckets={},this.compareSelector=n==null?r.Identity:n},o.prototype={add:function(t,i){var h=this.compareSelector(t),o=n(h),e=new s(t,i),r,f;if(u(this.buckets,o)){for(r=this.buckets[o],f=0;f<r.length;f++)if(this.compareSelector(r[f].key)===h){this.entryList.replace(r[f],e),r[f]=e;return}r.push(e)}else this.buckets[o]=[e];this.count++,this.entryList.addLast(e)},get:function(t){var o=this.compareSelector(t),e=n(o),r,i,f;if(!u(this.buckets,e))return undefined;for(r=this.buckets[e],i=0;i<r.length;i++){f=r[i];if(this.compareSelector(f.key)===o)return f.value}return undefined},set:function(t,i){var h=this.compareSelector(t),o=n(h),f,r,e;if(u(this.buckets,o))for(f=this.buckets[o],r=0;r<f.length;r++)if(this.compareSelector(f[r].key)===h)return e=new s(t,i),this.entryList.replace(f[r],e),f[r]=e,!0;return!1},contains:function(t){var e=this.compareSelector(t),f=n(e),r,i;if(!u(this.buckets,f))return!1;for(r=this.buckets[f],i=0;i<r.length;i++)if(this.compareSelector(r[i].key)===e)return!0;return!1},clear:function(){this.count=0,this.buckets={},this.entryList=new e},remove:function(t){var e=this.compareSelector(t),f=n(e),i,r;if(!u(this.buckets,f))return;for(i=this.buckets[f],r=0;r<i.length;r++)if(this.compareSelector(i[r].key)===e){this.entryList.remove(i[r]),i.splice(r,1),i.length==0&&delete this.buckets[f],this.count--;return}},count:function(){return this.count},toEnumerable:function(){var n=this;return new t(function(){var t;return new i(function(){t=n.entryList.first},function(){if(t!=null){var n={key:t.key,value:t.value};return t=t.next,this.yield(n)}return!1},r.Blank)})}},o}(),a=function(n){this.count=function(){return n.count()},this.get=function(i){return t.from(n.get(i))},this.contains=function(t){return n.contains(t)},this.toEnumerable=function(){return n.toEnumerable().select(function(n){return new c(n.key,n.value)})}},c=function(n,t){this.key=function(){return n},u.call(this,t)};return c.prototype=new u,t}(),typeof jQuery!="undefined"&&(jQuery.extend({Enumerable:Enumerable}),jQuery.fn.toEnumerable=function(){return Enumerable.from(this).select(function(n){return $(n)})},jQuery.fn.tojQuery=function(){return $(this.toArray())});
/*!
* Aeon JavaScript Library v1.0
* http://cycle99.com/projects/aeon
*
* Copyright 2011, Igor France
*/
function Type(){}var $assert,$cookie,$evt,$log,$xml,$url,$dom,$css,$const,$init,$ctrl;
Type.registerNamespace=function(n){for(var i=n.split("."),r=window,t=0;t<i.length;t++)r[i[t]]==null&&(r[i[t]]={}),r=r[i[t]]},Type.isArray=function(n){return n==null?!1:n.isArray?!0:n.constructor==Array||n!=window&&!Type.isString(n)&&!Type.isFunction(n)&&Type.isNumber(n.length)},Type.isBoolean=function(n){return n==null?!1:typeof n=="boolean"||n.constructor==Boolean},Type.isFunction=function(n){return n==null?!1:typeof n=="function"||n.constructor==Function||!Type.isString(n)&&Boolean(String(n).match(/\bfunction\b/))},Type.isNull=function(n){return n==null||n==undefined},Type.isNumber=function(n){return n==null?!1:typeof n=="number"&&isFinite(n)||n.constructor==Number},Type.isNumeric=function(n){return!isNaN(parseFloat(n))},Type.isDate=function(n){return n==null?!1:n.isDate?!0:Type.isFunction(n.getDate)&&Type.isFunction(n.getTime)},Type.isObject=function(n){return n==null?!1:typeof n=="object"&&n.constructor!=String&&n.constructor!=Number||Type.isFunction(n)},Type.isString=function(n){return n==null?!1:typeof n=="string"||n!=null&&n.constructor==String},Type.isUndefined=function(n){return typeof n=="undefined"},Type.isNode=function(n){return Type.isObject(n)&&Type.isNumber(n.nodeType)},Type.isDocument=function(n){return Type.isNode(n)&&n.nodeType==9},Type.isElement=function(n){return Type.isNode(n)&&n.nodeType==1},Type.isHtmlElement=function(n){return Type.isElement(n)&&Type.isString(n.className)},Type.instanceOf=function(n,t){var r,i;if(!Type.isObject(n)||!Type.isFunction(t))return!1;if(n instanceof t)return!0;r=!1;if(n.___&&n.___.constructor==t)return!0;if(n.___&&n.___.base!=null){i=n;while(i=i.___.base)if(i.___.constructor==t)return!0}return!1},Type.implements=function(n,t){var i=!0,r;if(n==null||t==null)i=!1;else for(r in t)if(!Type.isFunction(n[r])){i=!1;break}return i},Array.prototype.isArray=!0,Array.fromArguments=function(n,t,i){var u,r;isNaN(parseInt(t))&&(t=0),u=[];if(n&&Type.isArray(n[t]))u=n[t];else if(n)for(isNaN(parseInt(i))&&(i=n.length-1),r=t;r<=i;r++)u.push(n[r]);return u},Array.prototype.append=function(){for(var t=[],i,n=0;n<this.length;n++)t.push(this[n]);for(i=Array.fromArguments(arguments),n=0;n<i.length;n++)t.push(i[n]);return t},Array.prototype.contains=function(n){return this.indexOf(n)!=-1},Array.prototype.indexOf=function(n){for(var i=-1,t=0;t<this.length;t++)if(this[t]===n){i=t;break}return i},Array.prototype.remove=function(){for(var i=[],r=!1,t,n=this.length-1;n>=0;n--){for(r=!1,t=0;t<arguments.length;t++)if(this[n]==arguments[t]){r=!0;break}r==!0&&i.push(n)}for(n=0;n<i.length;n++)this.splice(i[n],1);return this},Array.prototype.sum=function(){for(var t=0,n=0;n<this.length;n++)t+=Number(this[n])||0;return t},Array.prototype.each=function(n){for(var i,t=0;t<this.length;t++)i=n.call(this,t,this[t],this),i!=undefined&&(this[t]=i);return this},Number.random=function(n){var t=Math.abs(n);return Math.round(t*Math.random())},Number.randomInRange=function(n,t,i){var r=n+(t-n)*Math.random();return i?r:Math.round(r)},Date.prototype.isDate=!0,Date.today=function(){var n=new Date;return new Date(n.getFullYear(),n.getMonth(),n.getDate())},Date.offset=function(n,t){var r={s:1e3,m:6e4,h:36e5,d:864e5,M:2592e6,y:31536e6},i=0;return t!=undefined&&String(t).match(/^([+-]?(?:\d+|\d*\.\d*))([mhdMy]?)$/)&&(i=parseInt(r[RegExp.$2]*RegExp.$1)),n.setTime(n.getTime()+i),n},Date.prototype._toString=Date.prototype.toString(),Date.prototype.toString=function(n){return isNaN(this)?"NaN":n?String(n).replace(/\byyyy\b/g,this.getFullYear()).replace(/\byy\b/g,this.getFullYear().toString().substring(2,4)).replace(/\bMMMM\b/g,Date.monthNames[this.getMonth()]).replace(/\bMMM\b/g,Date.monthNames[this.getMonth()].substring(0,3)).replace(/\bMM\b/g,(this.getMonth()+1).toString().padLeft(2,0)).replace(/\bM\b/g,this.getMonth()+1).replace(/\bdd\b/g,this.getDate().toString().padLeft(2,0)).replace(/\bd\b/g,this.getDate()).replace(/\bhh\b/g,this.getHours().toString().padLeft(2,0)).replace(/\bh\b/g,this.getHours()).replace(/\bmm\b/g,this.getMinutes().toString().padLeft(2,0)).replace(/\bm\b/g,this.getMinutes()).replace(/\bss\b/g,this.getSeconds().toString().padLeft(2,0)).replace(/\bs\b/g,this.getSeconds()).replace(/\bwwww\b/g,Date.dayNames[this.getDay()]).replace(/\bwww\b/g,Date.dayNames[this.getDay()].substr(0,3)):this.__toString()},Function.EMPTY=new Function,Function.prototype.isFunction=!0,Function.getDelegate=function(n,t,i){var f,r,e,u;for(Function.callbacks==null&&(Function.callbacks=[]),f=0;f<Function.callbacks.length;f++){r=Function.callbacks[f],e=!0;if(r.fxargs&&i)for(u=0;u<r.fxargs.length;u++)r.fxargs[u]!=i[u]&&(e=!1);if(r.object==n&&r.method==t&&e==!0)return r}return null},Function.createDelegate=function(n,t,i){var u=t,r;return Type.isString(t)&&(u=n[t]),Type.isFunction(u)?(r=Function.getDelegate(n,u,i),r!=null?r:(r=function(){var i=arguments.callee.object,t=arguments.callee.method,n=arguments.callee.fxargs.append(arguments);return n.length?t.apply(i,n):t.apply(i)},r.object=n,r.method=u,r.fxargs=Type.isArray(i)?i:[],Function.callbacks.push(r),r)):($log.error("Method not found: "+t),null)},Function.setInterval=function(n,t){return window.setInterval(t,n)},Function.setTimeout=function(n,t){return window.setTimeout(t,n)},Function.prototype.getName=function(n,t){var i=this.toString().replace(/^[\s\S]*?function[\s\n]+(([\w.$]*)[\s\n]*\((.*)\))\W[\s\S]*$/,function(){var i=arguments[2]?arguments[2]:"anonymous",r=arguments[2]?arguments[1]:[i,"(",arguments[3],")"].join(String.EMPTY);return!n&&!t?i:n&&!t?r:n&&t?arguments[3]:void 0});return i.replace(/([\w\$])\$([\w\$])/g,"$1.$2")},Function.prototype.getStackTrace=function(n,t){var u=n||arguments.callee.caller,e=[],o=[],s=0,i;while(u!=null&&u.getName){if(t&&s>=t)break;else if(o.contains(u))break;var c=u.getName(),f=[],r=u.arguments;for(i=0;i<r.length;i++)Type.isFunction(r[i])&&Type.isFunction(r[i].getName)?f.push(r[i].getName(!0)):Type.isArray(r[i])?f.push("array[{0}]".format(r[i].length)):Type.isObject(r[i])?f.push("object{..}"):Type.isNull(r[i])?f.push("null"):Type.isString(r[i])?f.push(r[i].length<200?'"{0}"'.format(r[i]):"[string({0})]".format(r[i].length)):Type.isUndefined(r[i])?f.push("undefined"):f.push(r[i]);o.push(u),e.unshift(u.getName()+"("+f.join(", ")+")");try{u=u.caller}catch(h){break}s++}return e.toString=function(n){return this.join(n||"\n")},e},Function.prototype.inherits=function(n){if(n==null||n==this||n.prototype==null)return;this.prototype.___={base:n.prototype,constructor:n};for(var t in n.prototype)(this.prototype[t]==null||Object.prototype[t]!=null)&&(this.prototype[t]=n.prototype[t]);this.prototype.toString=n.prototype.toString,this.prototype.$method=Function.$method,this.prototype.$super=Function.$super},Function.$super=function(){var n,t;this.$$==null&&(this.$$=this),n=this.$$.___.constructor;try{n&&(t=Array.fromArguments(arguments),this.$$=this.$$.___.base,n.apply(this,arguments))}finally{this.$$=null}},Function.$method=function(n){var t,i,r;this.$$==null&&(this.$$=this),t=this.$$.___.base,i=undefined;try{t&&Type.isFunction(t[n])&&(r=Array.fromArguments(arguments,1),this.$$=this.$$.___.base,i=t[n].apply(this,r))}finally{this.$$=null}return i},Object.serialize=function(n){return Type.isNumber(n)?n:Type.isString(n)?Object.serializeString(n,!0):Type.isArray(n)?Object.serializeArray(n):Type.isDate(n)?Object.serializeDate(n):Type.isFunction(n)?Object.serializeFunction(n):Type.isObject(n)?Object.serializeObject(n):String(n)},Object.serializeDate=function(n){return n==null?"null":String.format("new Date({0})",n.getTime())},Object.serializeFunction=function(n){return n.toString()},Object.serializeArray=function(n){var t,r,i;if(n==null)return"null";for(t=[],t.push("["),r=[],i=0;i<n.length;i++)r.push(Object.serialize(n[i]));return t.push(r.join(", ")),t.push("]"),t.join(String.EMPTY)},Object.serializeObject=function(n){var i,r,u,t;if(n==null)return"null";i=[],i.push("{"),r=[];for(u in n)t=[],t.push(Object.serializeString(u,!0)),t.push(": "),t.push(Object.serialize(n[u])),r.push(t.join(String.EMPTY));return i.push(r.join(", ")),i.push("}"),i.join(String.EMPTY)},Object.serializeString=function(n,t){return n==null?"null":(n=String(n).replace(/(^|[^\\])\"/g,'$1\\"').replace(/(^|[^\\])\'/g,"$1\\'"),t?'"'+n+'"':n)},String.EMPTY="",String.LINEBREAK="\r\n",String.TAB="\t",String.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);return t.join(String.EMPTY)},String.format=function(n){function r(n,t,i,r){var f=String(n),e=t-f.length,u=new String;while(u.length<e)u+=i;return r==2?f+u:u+f}function i(){var n,i;try{n=new String(t[arguments[1]])}catch(u){n=String.EMPTY}return arguments[2]!=String.EMPTY&&arguments[3]!=String.EMPTY&&(i=arguments[4]=="+"?2:1,n=r(n,arguments[3],arguments[2]=="#"?"0":" ",i)),n}var t=Array.fromArguments(arguments,1);return String.RX_FORMAT==null&&(String.RX_FORMAT=/\{(\d+)([$#])?(\d+)?([+-])?\}/g),String(n).replace(String.RX_FORMAT,i)},String.trim=function(n,t){t==null&&(t="\\s");var i=new RegExp("^["+t+"]*([\\s\\S]*?)["+t+"]*$");return String(n).replace(i,"$1")},String.prototype.format=function(){return String.format(this,arguments)},String.prototype.padLeft=function(n,t){t==undefined&&(t=" ");var i=this.toString();while(i.length<n)i=t+i;return i},String.prototype.padRight=function(n,t){t==undefined&&(t=" ");var i=this.toString();while(i.length<n)i=i+t;return i},String.prototype.trim=function(n){return String.trim(this,n)},Type.registerNamespace("aeon.utils"),aeon.utils.Assert=new function(){},aeon.utils.Assert.isTrue=function(n,t){var i=n==!0;return i==!1&&aeon.utils.Assert.raiseError(t||"Value should be true."),i},aeon.utils.Assert.isFalse=function(n,t){var i=n==!1;return i==!1&&aeon.utils.Assert.raiseError(t||"Value should be false."),i},aeon.utils.Assert.isDefined=function(n,t){var i=typeof n!="undefined";return i==!1&&aeon.utils.Assert.raiseError(t||"Value should be defined."),i},aeon.utils.Assert.isNull=function(n,t){var i=n==null;return i==!1&&aeon.utils.Assert.raiseError(t||"Value should be null."),i},aeon.utils.Assert.isNotNull=function(n,t){var i=n!=null;return i==!1&&aeon.utils.Assert.raiseError(t||"Value should not be null."),i},aeon.utils.Assert.areEqual=function(n,t,i){var r=n==t;return r==!1&&aeon.utils.Assert.raiseError(i||"Value should be equal.",n,t),r},aeon.utils.Assert.areNotEqual=function(n,t,i){var r=n!=t;return r==!1&&aeon.utils.Assert.raiseError(i||"Value should not be equal.",n,t),r},aeon.utils.Assert.isString=function(n,t){var i=Type.isString(n);return i==!1&&aeon.utils.Assert.raiseError(t||"Value should be a string."),i},aeon.utils.Assert.isNumber=function(n,t){var i=Type.isNumber(n);return i==!1&&aeon.utils.Assert.raiseError(t||"Value should be a number."),i},aeon.utils.Assert.isObject=function(n,t){var i=Type.isObject(n);return i==!1&&aeon.utils.Assert.raiseError(t||"Value should be an object."),i},aeon.utils.Assert.isNode=function(n,t){var i=Type.isNode(n);return i==!1&&aeon.utils.Assert.raiseError(t||"Value should be a node."),i},aeon.utils.Assert.isElement=function(n,t){var i=Type.isElement(n);return i==!1&&aeon.utils.Assert.raiseError(t||"Value should be an element."),i},aeon.utils.Assert.isHtmlElement=function(n,t){var i=Type.isHtmlElement(n);return i==!1&&aeon.utils.Assert.raiseError(t||"Value should be an html element."),i},aeon.utils.Assert.isDocument=function(n,t){var i=Type.isDocument(n);return i==!1&&aeon.utils.Assert.raiseError(t||"Value should be an xml document."),i},aeon.utils.Assert.isArray=function(n,t){var i=Type.isArray(n);return i==!1&&aeon.utils.Assert.raiseError(t||"Value should be an array."),i},aeon.utils.Assert.isFunction=function(n,t){var i=Type.isFunction(n);return i==!1&&aeon.utils.Assert.raiseError(t||"Value should be a function."),i},aeon.utils.Assert.implements=function(n,t,i){var r=Type.implements(n,t);return r==!1&&aeon.utils.Assert.raiseError(i||"Value should implement the specified interface."),r},aeon.utils.Assert.instanceOf=function(n,t,i){var r=n instanceof t;return r==!1&&aeon.utils.Assert.raiseError(i||"Object should be an instance of "+t.getName(),n,t),r},aeon.utils.Assert.raiseError=function(n){$log.error(n);throw new Error(n);},$assert=aeon.utils.Assert,Type.registerNamespace("aeon.utils"),aeon.utils.Cookie=new function(){},aeon.utils.Cookie.set=function(n,t,i,r,u,f){var e=n+"="+escape(t);return i&&(e+="; expires="+$cookie.dateCalc(i)),r&&(e+="; domain="+r),u&&(e+="; path="+u),f&&(e+="; secure=true"),document.cookie=e,$cookie.get(n)},aeon.utils.Cookie.get=function(n){for(var i=document.cookie.split("; "),o,e,f,r,u,t=0;t<i.length;t++){o=i[t].substring(0,i[t].indexOf("=")),e=i[t].substring(i[t].indexOf("=")+1,i[t].length);if(o==n){if(e.indexOf("&")!=-1){f=strValue.split("&"),r={};for(t in f)u=f[t].split("="),r[u[0]]=u[1];return r}return unescape(e)}}return null},aeon.utils.Cookie.remove=function(n){var t=new Date;document.cookie=n+"=null; expires="+t.toGMTString()},aeon.utils.Cookie.dateCalc=function(n){var r=new Date,t={},i;t.s=1e3,t.m=6e4,t.h=36e5,t.d=864e5,t.M=2592e6,t.y=31536e6;if(n&&n!=""&&n.toLowerCase()!="now")if(matches=n.match(/^([+-]?(\d+|\d*\.\d*))([mhdMy]?)/))i=t[matches[3]]*matches[2];else return n;else i=0;return r.setTime(r.getTime()+i),r.toGMTString()},$cookie=aeon.utils.Cookie,Type.registerNamespace("aeon.utils"),aeon.utils.Event=function(n){return n!=null?n.domEvent||n:window.event},aeon.utils.Event.srcElement=function(n){var n=$evt(n);return n==null?null:n.srcElement?n.srcElement:n.target?n.target.nodeType==1||n.target.nodeType==9?n.target:n.target.parentNode:null},aeon.utils.Event.addListener=function(n,t,i,r){var e,f,o,u;if(n==null)return;for(e=Array.fromArguments(arguments,0,0),f=0;f<e.length;f++){n=e[f],n.$listeners==null&&(n.$listeners={}),t.indexOf("on")!=0&&(t="on"+t);if((n==window||n==document)&&t=="onready"){$(window).ready(i);return}for(n.$listeners[t]==null&&(n.$listeners[t]=[],n[t]!=null&&n.$listeners[t].push(n[t])),o=!1,u=0;u<n.$listeners[t].length;u++)n.$listeners[t][u]==i&&(o=!0);o==!1&&(r==!0?n.$listeners[t].unshift(i):n.$listeners[t].push(i)),n[t]=function(n){var t=this,i=$evt.wrapEvent(n,t);return $evt.fireEvent(t,i)},n[t].target=n}},aeon.utils.Event.wrapEvent=function(n,t){var r=$evt(n),i={},u;for(u in r)i[u]=r[u];return i.domEvent=r,i.target=$evt.srcElement(r),i.srcElement=i.target,i.currentTarget=t,i},aeon.utils.Event.fireEvent=function(n,t,i){var f,r,u;t!=null&&(i=t.type);if(n!=null&&n.$listeners!=null&&i!=null){for(i.indexOf("on")!=0&&(i="on"+i),f=null,r=null,u=0;u<n.$listeners[i].length;u++){try{r=n.$listeners[i][u].call(n,t)}catch(e){$log.error("Firing event {0} on {1} failed: {2}",i,n,e.message)}r!=undefined&&(f=r)}return f}},aeon.utils.Event.removeListener=function(n,t,i){if(!n||!n.nodeName)return;t.indexOf("on")!=0&&(t="on"+t);if(n.$listeners!=null&&n.$listeners[t]!=null)for(var r=0;r<n.$listeners[t].length;r++)n.$listeners[t][r]==i&&n.$listeners[t].splice(r,1)},aeon.utils.Event.preventDefault=function(n){var n=$evt(n);return n.preventDefault&&n.preventDefault(),!1},aeon.utils.Event.cancel=function(n){var n=$evt(n);return n.cancelBubble=!0,n.stopPropagation&&n.stopPropagation(),n.returnValue=!1,!1},$evt=aeon.utils.Event,Type.registerNamespace("aeon.utils"),window.console==null&&(window.console={}),window.console.log=Type.isFunction(window.console.log)?window.console.log:Function.EMPTY,window.console.group=Type.isFunction(window.console.group)?window.console.group:window.console.log,window.console.groupEnd=Type.isFunction(window.console.groupEnd)?window.console.groupEnd:Function.EMPTY,window.console.info=Type.isFunction(window.console.info)?window.console.info:window.console.log,window.console.warn=Type.isFunction(window.console.warn)?window.console.warn:window.console.log,window.console.error=Type.isFunction(window.console.error)?window.console.error:window.console.log,window.console.dir=Type.isFunction(window.console.dir)?window.console.dir:window.console.log,aeon.utils.Log=function(){$log.message.apply(this,arguments)},aeon.utils.Log.Level={},aeon.utils.Log.Level.ALL=0,aeon.utils.Log.Level.INFO=1,aeon.utils.Log.Level.WARN=2,aeon.utils.Log.Level.ERROR=4,aeon.utils.Log.Level.DEBUG=5,aeon.utils.Log.Level.NONE=9,aeon.utils.Log.level=aeon.utils.Log.Level.INFO,aeon.utils.Log.group=function(n,t){if($log.level>t)return;console.group(n)},aeon.utils.Log.groupEnd=function(n){if($log.level>n)return;console.groupEnd()},aeon.utils.Log.message=function(){console.log($log.getMessage(arguments))},aeon.utils.Log.info=function(){if($log.level>$log.Level.INFO)return;console.info($log.getMessage(arguments))},aeon.utils.Log.warn=function(){if($log.level>$log.Level.WARN)return;console.warn($log.getMessage(arguments))},aeon.utils.Log.error=function(){if($log.level>$log.Level.ERROR)return;console.error($log.getMessage(arguments))},aeon.utils.Log.errortrace=function(){if($log.level>$log.Level.ERROR)return;$log.error.apply(this,arguments),$log.trace.apply(this,arguments)},aeon.utils.Log.debug=function(){if($log.level>$log.Level.DEBUG)return;console.log($log.getMessage(arguments))},aeon.utils.Log.dir=function(){console.dir(arguments[0])},aeon.utils.Log.trace=function(){var i=arguments.callee.caller,t=arguments.callee,n=t.getStackTrace(i).toString();console.group($log.getMessage(arguments)),console.log(n),console.groupEnd()},aeon.utils.Log.getMessage=function(n){return n.length==1?n[0]:String.format.apply(this,n)},$log=aeon.utils.Log,Type.registerNamespace("aeon.utils"),aeon.utils.Xml=function(n){if(Type.isDocument(n))return $xml.serializeToString(n)},aeon.utils.Xml.PROGID_DOCUMENT="MSXML2.DomDocument",aeon.utils.Xml.PROGID_DOCUMENT_FT="MSXML2.FreeThreadedDomDocument",aeon.utils.Xml.PROGID_XSLTEMPLATE="MSXML2.XslTemplate",aeon.utils.Xml.outerXml=function(n){return $xml.serializeToString(n)},aeon.utils.Xml.innerText=function(n,t,i){$assert.isNode(n);var r=t?$xml.selectSingleNode(n,t,i):n;if(r)return r.textContent!=null?r.textContent:r.text!=null?n.text:r.innerText},aeon.utils.Xml.serializeToString=function(n){return $assert.isNode(n),window.ActiveXObject?n.xml:(new XMLSerializer).serializeToString(n)},aeon.utils.Xml.serializeToObject=function(n){var i,f,r,t,u;if(n==null||n.nodeType==null)return null;i={};if(n.nodeType==9)f=n.documentElement.nodeName,i[f]=$xml.serializeToObject(n.documentElement);else if(n.nodeType==1){for(r=0;r<n.attributes.length;r++)i[n.attributes[r].name]=n.getAttribute(n.attributes[r].name);for(r=0;r<n.childNodes.length;r++)t=n.childNodes[r],t.nodeType==1&&(u=$xml.serializeToObject(t),i[t.nodeName]!=null?(Type.isArray(i[t.nodeName])||(i[t.nodeName]=[i[t.nodeName]]),i[t.nodeName].push(u)):i[t.nodeName]=u),t.nodeType==3&&t.nodeValue.trim()!=""&&(i.$text=t.nodeValue)}return i},aeon.utils.Xml.createNsResolver=function(n){return $assert.isObject(n),function(t){return n[t]}},aeon.utils.Xml.selectSingleNode=function(n,t,i){var r,e,o,u,f;$assert.isNode(n),$assert.isString(t),r=n.nodeType==9?n:n.ownerDocument;if(r.evaluate)return e=i?$xml.createNsResolver(i):null,o=r.evaluate(t,n,e,XPathResult.FIRST_ORDERED_NODE_TYPE,null),o.singleNodeValue;u=[];for(f in i)u.push('xmlns:{0}="{1}"'.format(f,i[f]));return r.setProperty("SelectionNamespaces",u.join(" ")),n.selectSingleNode(t)},aeon.utils.Xml.selectNodes=function(n,t,i){var r,e,f;$assert.isNode(n),$assert.isString(t),r=n.nodeType==9?n:n.ownerDocument;if(r.evaluate){var h=i?$xml.createNsResolver(i):null,s=r.evaluate(t,n,h,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null),u=s.iterateNext(),o=[];while(u)o.push(u),u=s.iterateNext();return o}e=[];for(f in i)e.push('xmlns:{0}="{1}"'.format(f,i[f]));return r.setProperty("SelectionNamespaces",e.join(" ")),n.selectNodes(t)},aeon.utils.Xml.loadFile=function(n,t,i){$assert.isString(n),$assert.isFunction(t);var r=new aeon.net.WebRequest(n);return r.addListener("oncomplete",t),Type.isFunction(i)&&r.addListener("onerror",i),r.execute(),r},aeon.utils.Xml.loadXmlDocument=function(n,t,i){function r(n){var r=n.source,i=$xml.createXmlDocument(r.responseText);t(i)}$assert.isString(n),$assert.isFunction(t),$xml.loadFile(n,r,i)},aeon.utils.Xml.createXmlDocument=function(n,t){var i,r;return window.ActiveXObject?(i=t?new ActiveXObject(aeon.utils.Xml.PROGID_DOCUMENT_FT):new ActiveXObject(aeon.utils.Xml.PROGID_DOCUMENT),n&&(i.loadXML(n),i.parseError!=0&&$log.error("Error loading xml text: {0}{1}.".format(i.parseError.reason,i.parseError.line?" (on line "+i.parseError.line+")":String.EMPTY)))):n?(r=new DOMParser,i=r.parseFromString(n,"text/xml"),i.documentElement.localName=="parsererror"&&$log.error($xml.innerText(i.documentElement))):i=document.implementation.createDocument(String.EMPTY,String.EMPTY,null),i},aeon.utils.Xml.createXslProcessor=function(n){var t,r,i;return $assert.isDocument(n),t=null,window.ActiveXObject?(r=$xml.createXmlDocument(n.xml,!0),i=new ActiveXObject($xml.PROGID_XSLTEMPLATE),i.stylesheet=r,t=i.createProcessor()):(t=new XSLTProcessor,t.importStylesheet(n)),t},aeon.utils.Xml.transformToDocument=function(n,t){$assert.isDocument(n),$assert.isNotNull(t);var i=null;return window.ActiveXObject?(i=$xml.createXmlDocument(),t.input=n,t.output=i,t.transform()):i=t.transformToDocument(n),i},aeon.utils.Xml.transformToString=function(n,t){var i=$xml.transformToDocument(n,t);return $xml.serializeToString(i)},aeon.utils.Xml.NsResolver=function(n){return this.$ns==null&&(this.$ns={}),this.$ns[n]},aeon.utils.Xml.NsResolver.prototype.addNamespace=function(n,t){$assert.isString(n),$assert.isString(t),this.$ns==null&&(this.$ns={}),this.$ns[n]=t},$xml=aeon.utils.Xml,Type.registerNamespace("aeon.utils"),aeon.utils.Url=function(n){Type.isString(n)?this.parse(n):this.parse(location.href)},aeon.utils.Url.URL_EXPRESSION=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,aeon.utils.Url.MATCH_NAMES=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","hash"],aeon.utils.Url.PROTOCOL_SEPARATOR="://",aeon.utils.Url.EMPTY_HASH="!",aeon.utils.Url.combine=function(n,t){var i=String.concat(n,"/",t);while(i.match(/[^\/]+\/\.\.\//))i=i.replace(/[^\/]+\/\.\.\//,"");return i.replace(/\/{2,}/g,"/")},aeon.utils.Url.getQueryParam=function(n,t){return(new $url).getQueryParam(n)||t},aeon.utils.Url.getHashParam=function(n,t){return(new $url).getHashParam(n)||t},aeon.utils.Url.getHash=function(){return String(location.hash).substring(1)},aeon.utils.Url.getQuery=function(){return String(location.search).substring(1)},aeon.utils.Url.setHashParam=function(){var n=new $url(location),t;if(arguments.length==2)n.setHashParam(arguments[0],arguments[1]);else if(arguments.length==1)if(Type.isArray(arguments[0]))for(t in arguments[0])n.setHashParam(t,arguments[0][t]);else n.setHashParam(arguments[0],String.EMPTY);else return;aeon.utils.Url.setHash(n.getHash())},aeon.utils.Url.setHash=function(n){n==String.EMPTY&&(n=aeon.utils.Url.EMPTY_HASH),location.hash=n},aeon.utils.Url.removeHashParam=function(n){var t=new $url(location);t.removeHashParam(n),aeon.utils.Url.setHash(t.getHash())},aeon.utils.Url.getFileExtension=function(n){var t=n?n.lastIndexOf("."):-1;return t>-1?n.slice(t+1):""},aeon.utils.Url.getFileName=function(n){return n&&n.match(/[^\\\/]*$/)[0]},aeon.utils.Url.parseQuery=function(n){var u,t,r;if(!n)return{};for(u=String(n).split("&"),t={},r=0;r<u.length;r++){if(u[r].length==0)continue;var e=u[r].split("="),i=e[0],f=e[1]||String.EMPTY;t[i]!=null?(Type.isArray(t[i])||(t[i]=[t[i]]),t[i].push(f)):t[i]=f}return t},aeon.utils.Url.serializeParams=function(n,t,i){var f=[],r,o,e,u;for(r in n)o=i?encodeURIComponent(r):r,e=i?encodeURIComponent(n[r]||String.EMPTY):n[r],e?f.push(o+"="+e):f.push(o);return u=f.join("&"),t&&u.length?String.concat(t,u):u},aeon.utils.Url.prototype.init=function(){this.components={},this.hashParam={},this.queryParam={}},aeon.utils.Url.prototype.getHash=function(n){var r=[],i,t;for(i in this.hashParam)r.push(i+"="+this.hashParam[i]);return t=r.join("&"),t!=String.EMPTY&&n?"#"+t:t},aeon.utils.Url.prototype.getQuery=function(n){var r=[],i,t;for(i in this.queryParam)r.push(i+"="+this.queryParam[i]);return t=r.join("&"),t!=String.EMPTY&&n?"?"+t:t},aeon.utils.Url.prototype.getQueryParam=function(n){return this.queryParam[n]},aeon.utils.Url.prototype.getHashParam=function(n){return this.hashParam[n]},aeon.utils.Url.prototype.setQueryParam=function(n,t){this.queryParam[n]=t},aeon.utils.Url.prototype.setHashParam=function(n,t){return this.hashParam[n]=t},aeon.utils.Url.prototype.removeQueryParam=function(n){delete this.queryParam[n]},aeon.utils.Url.prototype.removeHashParam=function(n){delete this.hashParam[n]},aeon.utils.Url.prototype.parse=function(n){var f,r,t,i,u;if(n==null)return;for(this.init(),f=$url.URL_EXPRESSION.exec(n),r=$url.MATCH_NAMES,t=r.length-1;t>0;t--)this.components[r[t]]=f[t]||String.EMPTY;i=this.components.hash,u=this.components.query,i==aeon.utils.Url.EMPTY_HASH&&(i=String.EMPTY),this.hashParam=$url.parseQuery(i),this.queryParam=$url.parseQuery(u)},aeon.utils.Url.prototype.toString=function(){return String.concat(this.components.protocol,$url.PROTOCOL_SEPARATOR,this.components.authority,this.components.path,$url.serializeParams(this.queryParam,"?",!0),$url.serializeParams(this.hashParam,"#",!1))},$url=aeon.utils.Url,Type.registerNamespace("aeon.utils"),aeon.utils.Dom={},aeon.utils.Dom.uniqueID=function(n){if(n&&n.uniqueID)return n.uniqueID;aeon.utils.Dom.__uid==null&&(aeon.utils.Dom.__uid={});var t=+new Date;while(aeon.utils.Dom.__uid[t]!=null)t++;return aeon.utils.Dom.__uid[t]=t,t="__unique"+t,n&&(n.uniqueID=t),t},aeon.utils.Dom.makeUnselectable=function(){for(var r=Array.fromArguments(arguments),i,t,n=0;n<r.length;n++)for(i=r[n],i.style.userSelect=i.style.MozUserSelect="none",i.setAttribute("unselectable","on"),t=i.getElementsByTagName("*"),n=0;n<t.length;n++)t[n].style.userSelect=t[n].style.MozUserSelect="none",t[n].setAttribute("unselectable","on")},aeon.utils.Dom.makeSelectable=function(){for(var r=Array.fromArguments(arguments),i,t,n=0;n<r.length;n++)for(i=r[n],i.style.userSelect=i.style.MozUserSelect=String.EMPTY,i.removeAttribute("unselectable"),t=i.getElementsByTagName("*"),n=0;n<t.length;n++)t[n].style.userSelect=t[n].style.MozUserSelect=String.EMPTY,t[n].removeAttribute("unselectable")},$dom=aeon.utils.Dom,Type.registerNamespace("aeon.utils"),aeon.utils.Css={},aeon.utils.Css.parseCssFromStylesheet=function(n){for(var r={},i=n.rules||n.cssRules,t=0;t<i.length;t++)i[t].selectorText&&(r[i[t].selectorText]=i[t]);return r},aeon.utils.Css.computedCss=function(n){var u={},i,r,f,t;if(!n)return u;n.length&&(n=n[0]);if(window.getComputedStyle)for(i=window.getComputedStyle(n,null),r=0;r<i.length;r++)t=i[r],f=t.replace(/\-([a-z])/g,function(n,t){return t.toUpperCase()}),u[f]=i.getPropertyValue(t);if(n.currentStyle)for(t in n.currentStyle)u[t]=n.currentStyle[t];return u},aeon.utils.Css.computedStyle=function(n){return window.getComputedStyle?window.getComputedStyle(n,null):n.currentStyle?n.currentStyle:{}},aeon.utils.Css.parseCssFromDocument=function(n){for(var u={},r,t,i=0;i<n.styleSheets.length;i++){r=aeon.utils.Css.parseCssFromStylesheet(n.styleSheets[i]);for(t in r)u[t]=r[t]}return u},aeon.utils.Css.getAllRules=function(n){return(!aeon.utils.Css.__cachedCss||n)&&(aeon.utils.Css.__cachedCss=aeon.utils.Css.parseCssFromDocument(document)),aeon.utils.Css.__cachedCss},aeon.utils.Css.findRules=function(n){var r=this.getAllRules(),u,i,t;if(n){u=new RegExp(n),i={};for(t in r)t.match(u)&&(i[t]=r[t]);return i}return r},aeon.utils.Css.getCssRule=function(n,t){var i=aeon.utils.Css.getAllRules(t);return i[n]},aeon.utils.Css.getCssStyle=function(n,t){var i=aeon.utils.Css.getCssRule(n,t);return i?i.style.cssText:String.EMPTY},aeon.utils.Css.getCssProperty=function(n,t,i){var r=aeon.utils.Css.getCssRule(n,i);return r?r.style[t]:String.EMPTY},jQuery.fn.computedCss=function(){return $css.computedCss(this.eq(0))},$css=aeon.utils.Css,Type.registerNamespace("aeon"),aeon.Event=function(n,t,i){this.source=n,this.type=t,this.name=t,this.data={},this.cancel=!1;for(var r in i)this.data[r]=i[r]},Type.registerNamespace("aeon"),aeon.Constants={},aeon.Constants.Key={TAB:9,CONTROL:17,SHIFT:16,ALT:18,ENTER:13,UP:38,DOWN:40,LEFT:37,RIGHT:39,DELETE:46,BACKSPACE:8,ESCAPE:27},$const=aeon.Constants,Type.registerNamespace("aeon"),aeon.Dispatcher=function(){var t,n;for(this.$events=[],this.$listeners={},t=Array.fromArguments(arguments),n=0;n<t.length;n++)this.addEvent(t[n])},aeon.Dispatcher.prototype.addEvent=function(){for(var n,t=0;t<arguments.length;t++)n=arguments[t],this.hasEvent(n)||(this.$events.push(n),this.$listeners[n]=[])},aeon.Dispatcher.prototype.hasEvent=function(n){return this.$events.contains(n)},aeon.Dispatcher.prototype.addListener=function(n,t){this.hasEvent(n)?this.hasListener(n,t)||this.$listeners[n].push(t):$log.error("Did not add event '{0}' because the current object only supports '{1}'",n,this.$events.join(", "))},aeon.Dispatcher.prototype.removeListener=function(n,t){if(this.hasEvent(n))for(var i=0;i<this.$listeners[n].length;i++)if(this.$listeners[n][i]==t){this.$listeners[n].splice(i,1);return}},aeon.Dispatcher.prototype.hasListener=function(n,t){if(this.hasEvent(n))for(var i=0;i<this.$listeners[n].length;i++)if(this.$listeners[n][i]==t)return!0;return!1},aeon.Dispatcher.prototype.fireEvent=function(n,t){var u=null,f=null,i,r;n instanceof aeon.Event?(f=n.type,u=n):(t==null&&(t=this.createEventData()),f=n,u=new aeon.Event(this,f,t)),i=this.$listeners[f];if(i!=null&&i.length!=0){for(r=0;r<i.length;r++)if(Type.isFunction(i[r])){i[r](u);if(u.cancel)break}return u}return null},aeon.Dispatcher.prototype.createEventData=function(){return{}},aeon.Dispatcher.prototype.toString=function(){var t=[],n;for(n in this.$listeners)t.push("{0}: {1} listeners".format(n,this.$listeners[n].length));return"Dispatcher: {{0}}".format(t.join(", "))},Type.registerNamespace("aeon"),aeon.Initializer=new function(){this.modules=[],this.mainMethod=null},aeon.Initializer.registerMain=function(n){$assert.isFunction(n),this.mainMethod=n},aeon.Initializer.registerModule=function(n,t){$assert.isObject(n),$assert.isFunction(n.setup,"The module being registered must have the static setup method"),this.modules.push({type:n,isAsync:t}),$log.info("Registered module {0}",Type.isFunction(n)?n.getName():n.constructor.getName())},aeon.Initializer.setup=function(){function i(){++r==aeon.Initializer.modules.length&&aeon.Initializer.start()}var r=0,n,t;if(aeon.Initializer.modules.length==0)aeon.Initializer.start();else for(n=0;n<aeon.Initializer.modules.length;n++)t=aeon.Initializer.modules[n],t.isAsync?t.type.setup(i):(t.type.setup(),i())},aeon.Initializer.dispose=function(){for(var t,n=0;n<aeon.Initializer.modules.length;n++)t=aeon.Initializer.modules[n],Type.isFunction(t.type.dispose)&&t.type.dispose()},aeon.Initializer.start=function(){Type.isFunction(this.mainMethod)&&this.mainMethod()},$evt.addListener(window,"onready",aeon.Initializer.setup),$evt.addListener(window,"onunload",aeon.Initializer.dispose),$init=aeon.Initializer,Type.registerNamespace("aeon"),aeon.QueryString=function(n){this.scriptName=String.EMPTY,this.scriptPath=String.EMPTY,this.scriptNameFull=String.EMPTY,this.serverNameFull=String.EMPTY,this.protocol=String.EMPTY,this.serverName=String.EMPTY,this.query=String.EMPTY,this.hash=String.EMPTY,this.hashParams={},this.queryParams={},n!=null?this.parse(n):this.parse(location.href)},aeon.QueryString.prototype.getItem=function(n){return this.param[n]},aeon.QueryString.prototype.parse=function(n){if(n==null)return;this.url=new String(n),this.url.match(/^(((https?|ftp):\/\/([a-z-A-Z0-9.]+))([^#\?]+))?(?:\?([^#]*))?(?:\#(.*))?$/)?(this.scriptNameFull=RegExp.$1,this.scriptPath=RegExp.$5,this.serverName=RegExp.$4,this.serverNameFull=RegExp.$2,this.protocol=RegExp.$3,this.query=RegExp.$6,this.hash=RegExp.$7,this.scriptPath.match(/\//)?this.scriptPath.match(/^(.*\/)(.*)$/)&&(this.scriptPath=RegExp.$1,this.scriptName=RegExp.$2):(this.scriptName=this.scriptPath,this.scriptPath=String.EMPTY)):this.query=this.url,this.hashParams=aeon.QueryString.parseQueryString(this.hash),this.queryParams=aeon.QueryString.parseQueryString(this.query)},aeon.QueryString.parseQueryString=function(n){var t={},u,r;if(!n)return t;for(u=String(n).split("&"),r=0;r<u.length;r++){if(u[r].length==0)continue;var e=u[r].split("="),i=e[0],f=e[1];t[i]!=null?(Type.isArray(t[i])||(t[i]=[t[i]]),t[i].push(f)):t[i]=f}return t},aeon.QueryString.fromObject=function(n){var i=new aeon.QueryString(String.EMPTY),t;for(t in n)i.queryParams[t]=n[t];return i},aeon.QueryString.prototype.toString=function(n){var r=[],t,i,f,u,e;for(t in this.param)if(this.param[t]&&this.param[t].constructor==Array)for(i=0;i<this.param[t].length;i++)r.push(escape(t)+"="+escape(this.param[t][i]));else f=String(this.param[t]).match(/\{.*\}/)?this.param[t]:escape(this.param[t]),r.push(escape(t)+"="+f);return u=r.join("&"),e=n==!0?(r.length?this.scriptNameFull+"?"+u:this.scriptNameFull)+this.hash:u},Type.registerNamespace("aeon"),aeon.Settings=function(){},aeon.Settings.prototype.getValue=function(n,t,i,r){if(Type.isHtmlElement(i)){if(i.getAttribute("data-"+n))return i.getAttribute("data-"+n);if(i.getAttribute(n))return i.getAttribute(n)}else if(i&&i[n]!=null)return i[n];return t&&t[n]!=null?t[n]:r},aeon.Settings.prototype.getBoolean=function(n,t,i,r){var u=String(this.getValue(n,t,i,r)).toLowerCase();return u=="1"||u=="true"||u=="yes"?!0:!1},aeon.Settings.prototype.getNumber=function(n,t,i,r){var u=this.getValue(n,t,i,r);return Type.isNumeric(u)?parseInt(u):0},aeon.Settings.prototype.getString=function(n,t,i,r){return this.getValue(n,t,i,r)},aeon.Settings.prototype.getFunction=function(n,t,i,r){var u=this.getValue(n,t,i,r);return Type.isFunction(u)?u:null},Type.registerNamespace("aeon.controls"),aeon.controls.ControlTypeInfo=function(n,t,i){$assert.isFunction(n),$assert.isString(t),this.type=n,this.typeName=n.getName(),this.typeInitialized=!1,this.expression=t,this.isAsynchronous=i,this.constructors={},this.instances={},n.info=this;for(var r in aeon.controls.ControlTypeInfo.StaticControlInterface)n[r]=aeon.controls.ControlTypeInfo.StaticControlInterface[r]},aeon.controls.ControlTypeInfo.prototype.setup=function(n){$assert.isFunction(n);if(this.isAsynchronous){if(!Type.isFunction(this.type.setup))throw Error(String.format("For asynchronous initalization, the control type {0} needs its own static setup method",this.type.getName()));this.type.setup(n)}else Type.isFunction(this.type.setup)&&this.type.setup(),n();this.typeInitialized=!0},aeon.controls.ControlTypeInfo.prototype.registerClass=function(n,t){$assert.isFunction(n),$assert.isString(t),this.constructors[t]=n},aeon.controls.ControlTypeInfo.prototype.getType=function(){return this.type},aeon.controls.ControlTypeInfo.prototype.getTypeName=function(){return this.typeName},aeon.controls.ControlTypeInfo.prototype.getConstructor=function(n){var i,t;$assert.isHtmlElement(n),i=this.type;for(t in this.constructors)if(Sizzle.matches(t,[n]).length!=0){i=this.constructors[t];break}return i},aeon.controls.ControlTypeInfo.prototype.getControl=function(n){return $assert.isNotNull(n),Type.isElement(n)?this.getControlByElement(n):this.getControlByID(n)},aeon.controls.ControlTypeInfo.prototype.getControlByID=function(n){return $assert.isString(n),this.instances[n]},aeon.controls.ControlTypeInfo.prototype.getControlByElement=function(n){var r,t,i;$assert.isElement(n),r=null,t=this.instances;for(i in t){if(t[i].getElement==null)throw Error(String.format("The control '{0}' doesn't implement getElement() method.",i));if(t[i].getElement()[0]==n){r=t[i];break}}return r},aeon.controls.ControlTypeInfo.prototype.getControls=function(){return this.instances},aeon.controls.ControlTypeInfo.prototype.createInstance=function(n,t){var i;$assert.isHtmlElement(n),i=this.getControl(n);if(!i){var r=n.id||$dom.uniqueID(n),u=this.getConstructor(n),i=new u(n,t);Type.isFunction(i.initialize)&&i.initialize(),i.setId(r),this.instances[r]=i}return i},aeon.controls.ControlTypeInfo.StaticControlInterface={create:function(n,t){if(n==null)if(Type.isFunction(this.createElement))n=this.createElement(t);else throw Error(String.format("No element has been provided and the control '{0}' doesn't have 'createElement' method, therefore no new element can be created",this.getName()));return this.info.createInstance(n,t)},getControl:function(n){return this.info.getControl(n)},registerClass:function(n,t){this.info.registerClass(n,t)}},Type.registerNamespace("aeon.controls"),aeon.controls.ControlRegistry=new function(){this.types=[],this.typesReady=0},aeon.controls.ControlRegistry.registerControl=function(n,t,i){$assert.isFunction(n),$assert.isString(t),i=i==!0;var r=new aeon.controls.ControlTypeInfo(n,t,i);this.types.push(r),$log.info("Registered control {0} for expression '{1}' (async: {2}).",n.getName(),t,i)},aeon.controls.ControlRegistry.setup=function(n){function e(){++f==i.types.length&&(i.createControls(o),Type.isFunction(n)&&n())}var u,f,i,o,t,r;if(this.types.length==0){Type.isFunction(n)&&n();return}for(u=[],f=0,t=0;t<this.types.length;t++)u.push(this.types[t].expression);for(i=this,o=$(u.join(", ")),t=0;t<this.types.length;t++)r=this.types[t],r.typeInitialized?e():r.setup(e)},aeon.controls.ControlRegistry.dispose=function(){while(this.types.length){var n=this.types.shift();try{Type.isFunction(n.dispose)&&n.dispose()}catch(t){continue}}},aeon.controls.ControlRegistry.createControls=function(n){var i,r,u,t;for($assert.isArray(n),i=0;i<this.types.length;i++)for(r=this.types[i],u=n.filter(r.expression),t=0;t<u.length;t++)r.createInstance(u[t])},aeon.controls.ControlRegistry.getControl=function(n,t){var r,u,i;if(n==null)return null;for(r=null,u=0;u<this.types.length;u++){i=this.types[u];if(t!=null){if(i.expression.indexOf(t)!=-1||i.getType()==t||i.getTypeName()==t){r=i.getControl(n);break}}else{r=i.getControl(n);if(r!=null)break}}return r},aeon.Initializer.registerModule(aeon.controls.ControlRegistry,!0),$ctrl=aeon.controls.ControlRegistry,Type.registerNamespace("aeon.controls"),aeon.controls.HtmlControl=function(n){this.$super(Array.fromArguments(arguments,1)),this.element=$(n),this.id=this.element.attr("id")},aeon.controls.HtmlControl.inherits(aeon.Dispatcher),aeon.controls.HtmlControl.interface={setId:1,getId:1,getElement:1},aeon.controls.HtmlControl.prototype.setId=function(n){this.id=n,this.element.attr("id",n)},aeon.controls.HtmlControl.prototype.getId=function(){return this.id},aeon.controls.HtmlControl.prototype.getElement=function(){return this.element}