!function(a,m){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?m(a,!0):function(a){if(!a.document)throw Error("jQuery requires a window with a document");return m(a)}:m(a)}("undefined"!=typeof window?window:this,function(a,m){function f(a){var c=a.length,b=k.type(a);return"function"===b||k.isWindow(a)?!1:1===a.nodeType&&c?!0:"array"===b||0===c||"number"==typeof c&&0<c&&c-1 in a}function g(a,c,b){if(k.isFunction(c))return k.grep(a,function(a,d){return!!c.call(a,d,
a)!==b});if(c.nodeType)return k.grep(a,function(a){return a===c!==b});if("string"==typeof c){if(zb.test(c))return k.filter(c,a,b);c=k.filter(c,a)}return k.grep(a,function(a){return 0<=k.inArray(a,c)!==b})}function e(a,c){do a=a[c];while(a&&1!==a.nodeType);return a}function d(a){var c=$a[a]={};return k.each(a.match(ga)||[],function(a,b){c[b]=!0}),c}function b(){I.addEventListener?(I.removeEventListener("DOMContentLoaded",c,!1),a.removeEventListener("load",c,!1)):(I.detachEvent("onreadystatechange",
c),a.detachEvent("onload",c))}function c(){(I.addEventListener||"load"===event.type||"complete"===I.readyState)&&(b(),k.ready())}function h(a,c,b){if(void 0===b&&1===a.nodeType){var d="data-"+c.replace(Ab,"-$1").toLowerCase();if(b=a.getAttribute(d),"string"==typeof b){try{b="true"===b?!0:"false"===b?!1:"null"===b?null:+b+""===b?+b:Bb.test(b)?k.parseJSON(b):b}catch(e){}k.data(a,c,b)}else b=void 0}return b}function l(a){for(var c in a)if(("data"!==c||!k.isEmptyObject(a[c]))&&"toJSON"!==c)return!1;return!0}
function n(a,c,b,d){if(k.acceptData(a)){var e,f,h=k.expando,g=a.nodeType,l=g?k.cache:a,p=g?a[h]:a[h]&&h;if(p&&l[p]&&(d||l[p].data)||void 0!==b||"string"!=typeof c)return p||(p=g?a[h]=ca.pop()||k.guid++:h),l[p]||(l[p]=g?{}:{toJSON:k.noop}),("object"==typeof c||"function"==typeof c)&&(d?l[p]=k.extend(l[p],c):l[p].data=k.extend(l[p].data,c)),f=l[p],d||(f.data||(f.data={}),f=f.data),void 0!==b&&(f[k.camelCase(c)]=b),"string"==typeof c?(e=f[c],null==e&&(e=f[k.camelCase(c)])):e=f,e}}function q(a,c,b){if(k.acceptData(a)){var d,
e,f=a.nodeType,h=f?k.cache:a,g=f?a[k.expando]:k.expando;if(h[g]){if(c&&(d=b?h[g]:h[g].data)){k.isArray(c)?c=c.concat(k.map(c,k.camelCase)):c in d?c=[c]:(c=k.camelCase(c),c=c in d?[c]:c.split(" "));for(e=c.length;e--;)delete d[c[e]];if(b?!l(d):!k.isEmptyObject(d))return}(b||(delete h[g].data,l(h[g])))&&(f?k.cleanData([a],!0):E.deleteExpando||h!=h.window?delete h[g]:h[g]=null)}}}function t(){return!0}function z(){return!1}function v(){try{return I.activeElement}catch(a){}}function A(a){var c=ab.split("|");
a=a.createDocumentFragment();if(a.createElement)for(;c.length;)a.createElement(c.pop());return a}function s(a,c){var b,d,e=0,f=typeof a.getElementsByTagName!==da?a.getElementsByTagName(c||"*"):typeof a.querySelectorAll!==da?a.querySelectorAll(c||"*"):void 0;if(!f)for(f=[],b=a.childNodes||a;null!=(d=b[e]);e++)!c||k.nodeName(d,c)?f.push(d):k.merge(f,s(d,c));return void 0===c||c&&k.nodeName(a,c)?k.merge([a],f):f}function F(a){Na.test(a.type)&&(a.defaultChecked=a.checked)}function u(a,c){return k.nodeName(a,
"table")&&k.nodeName(11!==c.nodeType?c:c.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function B(a){return a.type=(null!==k.find.attr(a,"type"))+"/"+a.type,a}function r(a){var c=Db.exec(a.type);return c?a.type=c[1]:a.removeAttribute("type"),a}function p(a,c){for(var b,d=0;null!=(b=a[d]);d++)k._data(b,"globalEval",!c||k._data(c[d],"globalEval"))}function x(a,c){if(1===c.nodeType&&k.hasData(a)){var b,d,e;d=k._data(a);var f=k._data(c,d),
h=d.events;if(h)for(b in delete f.handle,f.events={},h)for(d=0,e=h[b].length;e>d;d++)k.event.add(c,b,h[b][d]);f.data&&(f.data=k.extend({},f.data))}}function y(c,b){var d,e=k(b.createElement(c)).appendTo(b.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:k.css(e[0],"display");return e.detach(),f}function H(a){var c=I,b=bb[a];return b||(b=y(a,c),"none"!==b&&b||(xa=(xa||k("<iframe frameborder='0' width='0' height='0'/>")).appendTo(c.documentElement),c=(xa[0].contentWindow||
xa[0].contentDocument).document,c.write(),c.close(),b=y(a,c),xa.detach()),bb[a]=b),b}function K(a,c){return{get:function(){var b=a();if(null!=b)return b?void delete this.get:(this.get=c).apply(this,arguments)}}}function O(a,c){if(c in a)return c;for(var b=c.charAt(0).toUpperCase()+c.slice(1),d=c,e=cb.length;e--;)if(c=cb[e]+b,c in a)return c;return d}function N(a,c){for(var b,d,e,f=[],h=0,g=a.length;g>h;h++)d=a[h],d.style&&(f[h]=k._data(d,"olddisplay"),b=d.style.display,c?(f[h]||"none"!==b||(d.style.display=
""),""===d.style.display&&za(d)&&(f[h]=k._data(d,"olddisplay",H(d.nodeName)))):(e=za(d),(b&&"none"!==b||!e)&&k._data(d,"olddisplay",e?b:k.css(d,"display"))));for(h=0;g>h;h++)d=a[h],d.style&&(c&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=c?f[h]||"":"none"));return a}function aa(a,c,b){return(a=Eb.exec(c))?Math.max(0,a[1]-(b||0))+(a[2]||"px"):c}function Y(a,c,b,d,e){c=b===(d?"border":"content")?4:"width"===c?1:0;for(var f=0;4>c;c+=2)"margin"===b&&(f+=k.css(a,b+ha[c],!0,e)),d?("content"===
b&&(f-=k.css(a,"padding"+ha[c],!0,e)),"margin"!==b&&(f-=k.css(a,"border"+ha[c]+"Width",!0,e))):(f+=k.css(a,"padding"+ha[c],!0,e),"padding"!==b&&(f+=k.css(a,"border"+ha[c]+"Width",!0,e)));return f}function S(a,c,b){var d=!0,e="width"===c?a.offsetWidth:a.offsetHeight,f=oa(a),h=E.boxSizing&&"border-box"===k.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=pa(a,c,f),(0>e||null==e)&&(e=a.style[c]),Ea.test(e))return e;d=h&&(E.boxSizingReliable()||e===a.style[c]);e=parseFloat(e)||0}return e+Y(a,c,b||(h?"border":
"content"),d,f)+"px"}function Q(a,c,b,d,e){return new Q.prototype.init(a,c,b,d,e)}function V(){return setTimeout(function(){ta=void 0}),ta=k.now()}function W(a,c){var b,d={height:a},e=0;for(c=c?1:0;4>e;e+=2-c)b=ha[e],d["margin"+b]=d["padding"+b]=a;return c&&(d.opacity=d.width=a),d}function L(a,c,b){for(var d,e=(Ba[c]||[]).concat(Ba["*"]),f=0,h=e.length;h>f;f++)if(d=e[f].call(b,c,a))return d}function C(a,c){var b,d,e,f,h;for(b in a)if(d=k.camelCase(b),e=c[d],f=a[b],k.isArray(f)&&(e=f[1],f=a[b]=f[0]),
b!==d&&(a[d]=f,delete a[b]),h=k.cssHooks[d],h&&"expand"in h)for(b in f=h.expand(f),delete a[d],f)b in a||(a[b]=f[b],c[b]=e);else c[d]=e}function J(a,c,b){var d,e=0,f=Fa.length,h=k.Deferred().always(function(){delete g.elem}),g=function(){if(d)return!1;for(var c=ta||V(),c=Math.max(0,l.startTime+l.duration-c),b=1-(c/l.duration||0),e=0,f=l.tweens.length;f>e;e++)l.tweens[e].run(b);return h.notifyWith(a,[l,b,c]),1>b&&f?c:(h.resolveWith(a,[l]),!1)},l=h.promise({elem:a,props:k.extend({},c),opts:k.extend(!0,
{specialEasing:{}},b),originalProperties:c,originalOptions:b,startTime:ta||V(),duration:b.duration,tweens:[],createTween:function(c,b){var d=k.Tween(a,l.opts,c,b,l.opts.specialEasing[c]||l.opts.easing);return l.tweens.push(d),d},stop:function(c){var b=0,e=c?l.tweens.length:0;if(d)return this;for(d=!0;e>b;b++)l.tweens[b].run(1);return c?h.resolveWith(a,[l,c]):h.rejectWith(a,[l,c]),this}});b=l.props;for(C(b,l.opts.specialEasing);f>e;e++)if(c=Fa[e].call(l,a,b,l.opts))return c;return k.map(b,L,l),k.isFunction(l.opts.start)&&
l.opts.start.call(a,l),k.fx.timer(k.extend(g,{elem:a,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function P(a){return function(c,b){"string"!=typeof c&&(b=c,c="*");var d,e=0,f=c.toLowerCase().match(ga)||[];if(k.isFunction(b))for(;d=f[e++];)"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(b)):(a[d]=a[d]||[]).push(b)}}function M(a,c,b,d){function e(g){var l;return f[g]=!0,k.each(a[g]||[],function(a,D){var g=
D(c,b,d);return"string"!=typeof g||h||f[g]?h?!(l=g):void 0:(c.dataTypes.unshift(g),e(g),!1)}),l}var f={},h=a===Oa;return e(c.dataTypes[0])||!f["*"]&&e("*")}function G(a,c){var b,d,e=k.ajaxSettings.flatOptions||{};for(d in c)void 0!==c[d]&&((e[d]?a:b||(b={}))[d]=c[d]);return b&&k.extend(!0,a,b),a}function Z(a,c,b,d){var e;if(k.isArray(c))k.each(c,function(c,e){b||Fb.test(a)?d(a,e):Z(a+"["+("object"==typeof e?c:"")+"]",e,b,d)});else if(b||"object"!==k.type(c))d(a,c);else for(e in c)Z(a+"["+e+"]",c[e],
b,d)}function U(){try{return new a.XMLHttpRequest}catch(c){}}function R(a){return k.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var ca=[],ia=ca.slice,la=ca.concat,Ca=ca.push,Ga=ca.indexOf,Aa={},Pa=Aa.toString,ea=Aa.hasOwnProperty,E={},k=function(a,c){return new k.fn.init(a,c)},Qa=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ya=/^-ms-/,Gb=/-([\da-z])/gi,Hb=function(a,c){return c.toUpperCase()};k.fn=k.prototype={jquery:"1.11.1",constructor:k,selector:"",length:0,toArray:function(){return ia.call(this)},
get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:ia.call(this)},pushStack:function(a){a=k.merge(this.constructor(),a);return a.prevObject=this,a.context=this.context,a},each:function(a,c){return k.each(this,a,c)},map:function(a){return this.pushStack(k.map(this,function(c,b){return a.call(c,b,c)}))},slice:function(){return this.pushStack(ia.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var c=this.length;a=+a+(0>a?c:0);
return this.pushStack(0<=a&&c>a?[this[a]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:Ca,sort:ca.sort,splice:ca.splice};k.extend=k.fn.extend=function(){var a,c,b,d,e,f,h=arguments[0]||{},g=1,l=arguments.length,p=!1;"boolean"==typeof h&&(p=h,h=arguments[g]||{},g++);"object"==typeof h||k.isFunction(h)||(h={});for(g===l&&(h=this,g--);l>g;g++)if(null!=(e=arguments[g]))for(d in e)a=h[d],b=e[d],h!==b&&(p&&b&&(k.isPlainObject(b)||(c=k.isArray(b)))?(c?(c=!1,f=a&&k.isArray(a)?
a:[]):f=a&&k.isPlainObject(a)?a:{},h[d]=k.extend(p,f,b)):void 0!==b&&(h[d]=b));return h};k.extend({expando:"jQuery"+("1.11.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw Error(a);},noop:function(){},isFunction:function(a){return"function"===k.type(a)},isArray:Array.isArray||function(a){return"array"===k.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!k.isArray(a)&&0<=a-parseFloat(a)},isEmptyObject:function(a){for(var c in a)return!1;
return!0},isPlainObject:function(a){var c;if(!a||"object"!==k.type(a)||a.nodeType||k.isWindow(a))return!1;try{if(a.constructor&&!ea.call(a,"constructor")&&!ea.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}if(E.ownLast)for(c in a)return ea.call(a,c);for(c in a);return void 0===c||ea.call(a,c)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?Aa[Pa.call(a)]||"object":typeof a},globalEval:function(c){c&&k.trim(c)&&(a.execScript||function(c){a.eval.call(a,
c)})(c)},camelCase:function(a){return a.replace(ya,"ms-").replace(Gb,Hb)},nodeName:function(a,c){return a.nodeName&&a.nodeName.toLowerCase()===c.toLowerCase()},each:function(a,c,b){var d,e=0,h=a.length,g=f(a);if(b)if(g)for(;h>e&&(d=c.apply(a[e],b),!1!==d);e++);else for(e in a){if(d=c.apply(a[e],b),!1===d)break}else if(g)for(;h>e&&(d=c.call(a[e],e,a[e]),!1!==d);e++);else for(e in a)if(d=c.call(a[e],e,a[e]),!1===d)break;return a},trim:function(a){return null==a?"":(a+"").replace(Qa,"")},makeArray:function(a,
c){var b=c||[];return null!=a&&(f(Object(a))?k.merge(b,"string"==typeof a?[a]:a):Ca.call(b,a)),b},inArray:function(a,c,b){var d;if(c){if(Ga)return Ga.call(c,a,b);d=c.length;for(b=b?0>b?Math.max(0,d+b):b:0;d>b;b++)if(b in c&&c[b]===a)return b}return-1},merge:function(a,c){for(var b=+c.length,d=0,e=a.length;b>d;)a[e++]=c[d++];if(b!==b)for(;void 0!==c[d];)a[e++]=c[d++];return a.length=e,a},grep:function(a,c,b){for(var d=[],e=0,f=a.length,h=!b;f>e;e++)b=!c(a[e],e),b!==h&&d.push(a[e]);return d},map:function(a,
c,b){var d,e=0,h=a.length,g=[];if(f(a))for(;h>e;e++)d=c(a[e],e,b),null!=d&&g.push(d);else for(e in a)d=c(a[e],e,b),null!=d&&g.push(d);return la.apply([],g)},guid:1,proxy:function(a,c){var b,d,e;return"string"==typeof c&&(e=a[c],c=a,a=e),k.isFunction(a)?(b=ia.call(arguments,2),d=function(){return a.apply(c||this,b.concat(ia.call(arguments)))},d.guid=a.guid=a.guid||k.guid++,d):void 0},now:function(){return+new Date},support:E});k.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),
function(a,c){Aa["[object "+c+"]"]=c.toLowerCase()});var wa=function(a){function c(a,b,d,e){var f,h,D,g,l;if((b?b.ownerDocument||b:S)!==B&&O(b),b=b||B,d=d||[],!a||"string"!=typeof a)return d;if(1!==(g=b.nodeType)&&9!==g)return[];if(G&&!e){if(f=wa.exec(a))if(D=f[1])if(9===g){if(h=b.getElementById(D),!h||!h.parentNode)return d;if(h.id===D)return d.push(h),d}else{if(b.ownerDocument&&(h=b.ownerDocument.getElementById(D))&&Y(b,h)&&h.id===D)return d.push(h),d}else{if(f[2])return X.apply(d,b.getElementsByTagName(a)),
d;if((D=f[3])&&r.getElementsByClassName&&b.getElementsByClassName)return X.apply(d,b.getElementsByClassName(D)),d}if(r.qsa&&(!U||!U.test(a))){if(h=f=R,D=b,l=9===g&&a,1===g&&"object"!==b.nodeName.toLowerCase()){g=F(a);(f=b.getAttribute("id"))?h=f.replace(xa,"\\$&"):b.setAttribute("id",h);h="[id='"+h+"'] ";for(D=g.length;D--;)g[D]=h+x(g[D]);D=na.test(a)&&p(b.parentNode)||b;l=g.join(",")}if(l)try{return X.apply(d,D.querySelectorAll(l)),d}catch(k){}finally{f||b.removeAttribute("id")}}}return A(a.replace(ha,
"$1"),b,d,e)}function b(){function a(b,d){return c.push(b+" ")>t.cacheLength&&delete a[c.shift()],a[b+" "]=d}var c=[];return a}function d(a){return a[R]=!0,a}function e(a){var c=B.createElement("div");try{return!!a(c)}catch(b){return!1}finally{c.parentNode&&c.parentNode.removeChild(c)}}function f(a,c){for(var b=a.split("|"),d=a.length;d--;)t.attrHandle[b[d]]=c}function h(a,c){var b=c&&a,d=b&&1===a.nodeType&&1===c.nodeType&&(~c.sourceIndex||V)-(~a.sourceIndex||V);if(d)return d;if(b)for(;b=b.nextSibling;)if(b===
c)return-1;return a?1:-1}function g(a){return function(c){return"input"===c.nodeName.toLowerCase()&&c.type===a}}function l(a){return function(c){var b=c.nodeName.toLowerCase();return("input"===b||"button"===b)&&c.type===a}}function k(a){return d(function(c){return c=+c,d(function(b,d){for(var e,f=a([],b.length,c),h=f.length;h--;)b[e=f[h]]&&(b[e]=!(d[e]=b[e]))})})}function p(a){return a&&typeof a.getElementsByTagName!==I&&a}function n(){}function x(a){for(var c=0,b=a.length,d="";b>c;c++)d+=a[c].value;
return d}function q(a,c,b){var d=c.dir,e=b&&"parentNode"===d,f=Q++;return c.first?function(c,b,f){for(;c=c[d];)if(1===c.nodeType||e)return a(c,b,f)}:function(c,b,h){var D,g,l=[E,f];if(h)for(;c=c[d];){if((1===c.nodeType||e)&&a(c,b,h))return!0}else for(;c=c[d];)if(1===c.nodeType||e){if(g=c[R]||(c[R]={}),(D=g[d])&&D[0]===E&&D[1]===f)return l[2]=D[2];if(g[d]=l,l[2]=a(c,b,h))return!0}}}function C(a){return 1<a.length?function(c,b,d){for(var e=a.length;e--;)if(!a[e](c,b,d))return!1;return!0}:a[0]}function y(a,
c,b,d,e){for(var f,h=[],D=0,g=a.length,l=null!=c;g>D;D++)(f=a[D])&&(!b||b(f,d,e))&&(h.push(f),l&&c.push(D));return h}function z(a,b,e,f,h,D){return f&&!f[R]&&(f=z(f)),h&&!h[R]&&(h=z(h,D)),d(function(d,D,g,l){var k,p,n=[],ba=[],x=D.length,T;if(!(T=d)){T=b||"*";for(var q=g.nodeType?[g]:g,C=[],sa=0,z=q.length;z>sa;sa++)c(T,q[sa],C);T=C}T=!a||!d&&b?T:y(T,n,a,g,l);q=e?h||(d?a:x||f)?[]:D:T;if(e&&e(T,q,g,l),f)for(k=y(q,ba),f(k,[],g,l),g=k.length;g--;)(p=k[g])&&(q[ba[g]]=!(T[ba[g]]=p));if(d){if(h||a){if(h){k=
[];for(g=q.length;g--;)(p=q[g])&&k.push(T[g]=p);h(null,q=[],k,l)}for(g=q.length;g--;)(p=q[g])&&-1<(k=h?ea.call(d,p):n[g])&&(d[k]=!(D[k]=p))}}else q=y(q===D?q.splice(x,q.length):q),h?h(null,D,q,l):X.apply(D,q)})}function K(a){var c,b,d,e=a.length,f=t.relative[a[0].type];b=f||t.relative[" "];for(var h=f?1:0,D=q(function(a){return a===c},b,!0),g=q(function(a){return-1<ea.call(c,a)},b,!0),l=[function(a,b,d){return!f&&(d||b!==Z)||((c=b).nodeType?D(a,b,d):g(a,b,d))}];e>h;h++)if(b=t.relative[a[h].type])l=
[q(C(l),b)];else{if(b=t.filter[a[h].type].apply(null,a[h].matches),b[R]){for(d=++h;e>d&&!t.relative[a[d].type];d++);return z(1<h&&C(l),1<h&&x(a.slice(0,h-1).concat({value:" "===a[h-2].type?"*":""})).replace(ha,"$1"),b,d>h&&K(a.slice(h,d)),e>d&&K(a=a.slice(d)),e>d&&x(a))}l.push(b)}return C(l)}function v(a,b){var e=0<b.length,f=0<a.length,h=function(d,h,D,g,l){var k,p,n,ba=0,T="0",x=d&&[],q=[],C=Z,sa=d||f&&t.find.TAG("*",l),z=E+=null==C?1:Math.random()||0.1,Cb=sa.length;for(l&&(Z=h!==B&&h);T!==Cb&&
null!=(k=sa[T]);T++){if(f&&k){for(p=0;n=a[p++];)if(n(k,h,D)){g.push(k);break}l&&(E=z)}e&&((k=!n&&k)&&ba--,d&&x.push(k))}if(ba+=T,e&&T!==ba){for(p=0;n=b[p++];)n(x,q,h,D);if(d){if(0<ba)for(;T--;)x[T]||q[T]||(q[T]=Aa.call(g));q=y(q)}X.apply(g,q);l&&!d&&0<q.length&&1<ba+b.length&&c.uniqueSort(g)}return l&&(E=z,Z=C),x};return e?d(h):h}var m,r,t,H,J,F,s,A,Z,u,P,O,B,N,G,U,M,aa,Y,R="sizzle"+-new Date,S=a.document,E=0,Q=0,L=b(),ca=b(),W=b(),ia=function(a,c){return a===c&&(P=!0),0},I="undefined",V=-2147483648,
Ca={}.hasOwnProperty,la=[],Aa=la.pop,Ga=la.push,X=la.push,da=la.slice,ea=la.indexOf||function(a){for(var c=0,b=this.length;b>c;c++)if(this[c]===a)return c;return-1},ga="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w#"),ma="\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ga+"))|)[\\x20\\t\\r\\n\\f]*\\]",ka=":((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+
ma+")*)|.*)\\)|)",ha=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),oa=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,pa=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,Pa=RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),qa=RegExp(ka),ra=RegExp("^"+ga+"$"),ja={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:RegExp("^("+"(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+ma),PSEUDO:RegExp("^"+
ka),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)",
"i")},ta=/^(?:input|select|textarea|button)$/i,Qa=/^h\d$/i,ya=/^[^{]+\{\s*\[native \w/,wa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,na=/[+~]/,xa=/'|\\/g,ua=RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),va=function(a,c,b){a="0x"+c-65536;return a!==a||b?c:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,1023&a|56320)};try{X.apply(la=da.call(S.childNodes),S.childNodes),la[S.childNodes.length].nodeType}catch(za){X={apply:la.length?function(a,c){Ga.apply(a,da.call(c))}:
function(a,c){for(var b=a.length,d=0;a[b++]=c[d++];);a.length=b-1}}}r=c.support={};J=c.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};O=c.setDocument=function(a){var c,b=a?a.ownerDocument||a:S;a=b.defaultView;return b!==B&&9===b.nodeType&&b.documentElement?(B=b,N=b.documentElement,G=!J(b),a&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",function(){O()},!1):a.attachEvent&&a.attachEvent("onunload",function(){O()})),r.attributes=e(function(a){return a.className=
"i",!a.getAttribute("className")}),r.getElementsByTagName=e(function(a){return a.appendChild(b.createComment("")),!a.getElementsByTagName("*").length}),r.getElementsByClassName=ya.test(b.getElementsByClassName)&&e(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),r.getById=e(function(a){return N.appendChild(a).id=R,!b.getElementsByName||!b.getElementsByName(R).length}),r.getById?(t.find.ID=function(a,
c){if(typeof c.getElementById!==I&&G){var b=c.getElementById(a);return b&&b.parentNode?[b]:[]}},t.filter.ID=function(a){var c=a.replace(ua,va);return function(a){return a.getAttribute("id")===c}}):(delete t.find.ID,t.filter.ID=function(a){var c=a.replace(ua,va);return function(a){return(a=typeof a.getAttributeNode!==I&&a.getAttributeNode("id"))&&a.value===c}}),t.find.TAG=r.getElementsByTagName?function(a,c){return typeof c.getElementsByTagName!==I?c.getElementsByTagName(a):void 0}:function(a,c){var b,
d=[],e=0,f=c.getElementsByTagName(a);if("*"===a){for(;b=f[e++];)1===b.nodeType&&d.push(b);return d}return f},t.find.CLASS=r.getElementsByClassName&&function(a,c){return typeof c.getElementsByClassName!==I&&G?c.getElementsByClassName(a):void 0},M=[],U=[],(r.qsa=ya.test(b.querySelectorAll))&&(e(function(a){a.innerHTML="<select msallowclip=''><option selected=''></option></select>";a.querySelectorAll("[msallowclip^='']").length&&U.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll("[selected]").length||
U.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");a.querySelectorAll(":checked").length||U.push(":checked")}),e(function(a){var c=b.createElement("input");c.setAttribute("type","hidden");a.appendChild(c).setAttribute("name","D");a.querySelectorAll("[name=d]").length&&U.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");a.querySelectorAll(":enabled").length||U.push(":enabled",":disabled");a.querySelectorAll("*,:x");
U.push(",.*:")})),(r.matchesSelector=ya.test(aa=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&e(function(a){r.disconnectedMatch=aa.call(a,"div");aa.call(a,"[s!='']:x");M.push("!=",ka)}),U=U.length&&RegExp(U.join("|")),M=M.length&&RegExp(M.join("|")),c=ya.test(N.compareDocumentPosition),Y=c||ya.test(N.contains)?function(a,c){var b=9===a.nodeType?a.documentElement:a,d=c&&c.parentNode;return a===d||!(!d||1!==d.nodeType||!(b.contains?b.contains(d):
a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,c){if(c)for(;c=c.parentNode;)if(c===a)return!0;return!1},ia=c?function(a,c){if(a===c)return P=!0,0;var d=!a.compareDocumentPosition-!c.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(c.ownerDocument||c)?a.compareDocumentPosition(c):1,1&d||!r.sortDetached&&c.compareDocumentPosition(a)===d?a===b||a.ownerDocument===S&&Y(S,a)?-1:c===b||c.ownerDocument===S&&Y(S,c)?1:u?ea.call(u,a)-ea.call(u,c):0:4&d?-1:1)}:function(a,
c){if(a===c)return P=!0,0;var d,e=0;d=a.parentNode;var f=c.parentNode,D=[a],g=[c];if(!d||!f)return a===b?-1:c===b?1:d?-1:f?1:u?ea.call(u,a)-ea.call(u,c):0;if(d===f)return h(a,c);for(d=a;d=d.parentNode;)D.unshift(d);for(d=c;d=d.parentNode;)g.unshift(d);for(;D[e]===g[e];)e++;return e?h(D[e],g[e]):D[e]===S?-1:g[e]===S?1:0},b):B};c.matches=function(a,b){return c(a,null,null,b)};c.matchesSelector=function(a,b){if((a.ownerDocument||a)!==B&&O(a),b=b.replace(Pa,"='$1']"),r.matchesSelector&&G&&!(M&&M.test(b)||
U&&U.test(b)))try{var d=aa.call(a,b);if(d||r.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return 0<c(b,B,null,[a]).length};c.contains=function(a,c){return(a.ownerDocument||a)!==B&&O(a),Y(a,c)};c.attr=function(a,c){(a.ownerDocument||a)!==B&&O(a);var b=t.attrHandle[c.toLowerCase()],b=b&&Ca.call(t.attrHandle,c.toLowerCase())?b(a,c,!G):void 0;return void 0!==b?b:r.attributes||!G?a.getAttribute(c):(b=a.getAttributeNode(c))&&b.specified?b.value:null};c.error=function(a){throw Error("Syntax error, unrecognized expression: "+
a);};c.uniqueSort=function(a){var c,b=[],d=0,e=0;if(P=!r.detectDuplicates,u=!r.sortStable&&a.slice(0),a.sort(ia),P){for(;c=a[e++];)c===a[e]&&(d=b.push(e));for(;d--;)a.splice(b[d],1)}return u=null,a};H=c.getText=function(a){var c,b="",d=0;if(c=a.nodeType)if(1===c||9===c||11===c){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)b+=H(a)}else{if(3===c||4===c)return a.nodeValue}else for(;c=a[d++];)b+=H(c);return b};t=c.selectors={cacheLength:50,createPseudo:d,
match:ja,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ua,va),a[3]=(a[3]||a[4]||a[5]||"").replace(ua,va),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||c.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&
c.error(a[0]),a},PSEUDO:function(a){var c,b=!a[6]&&a[2];return ja.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":b&&qa.test(b)&&(c=F(b,!0))&&(c=b.indexOf(")",b.length-c)-b.length)&&(a[0]=a[0].slice(0,c),a[2]=b.slice(0,c)),a.slice(0,3))}},filter:{TAG:function(a){var c=a.replace(ua,va).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===c}},CLASS:function(a){var c=L[a+" "];return c||(c=RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"))&&
L(a,function(a){return c.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==I&&a.getAttribute("class")||"")})},ATTR:function(a,b,d){return function(e){e=c.attr(e,a);return null==e?"!="===b:b?(e+="","="===b?e===d:"!="===b?e!==d:"^="===b?d&&0===e.indexOf(d):"*="===b?d&&-1<e.indexOf(d):"$="===b?d&&e.slice(-d.length)===d:"~="===b?-1<(" "+e+" ").indexOf(d):"|="===b?e===d||e.slice(0,d.length+1)===d+"-":!1):!0}},CHILD:function(a,c,b,d,e){var f="nth"!==a.slice(0,3),h="last"!==a.slice(-4),
D="of-type"===c;return 1===d&&0===e?function(a){return!!a.parentNode}:function(c,b,g){var l,k,fa,p,n;b=f!==h?"nextSibling":"previousSibling";var ba=c.parentNode,T=D&&c.nodeName.toLowerCase();g=!g&&!D;if(ba){if(f){for(;b;){for(k=c;k=k[b];)if(D?k.nodeName.toLowerCase()===T:1===k.nodeType)return!1;n=b="only"===a&&!n&&"nextSibling"}return!0}if(n=[h?ba.firstChild:ba.lastChild],h&&g)for(g=ba[R]||(ba[R]={}),l=g[a]||[],p=l[0]===E&&l[1],fa=l[0]===E&&l[2],k=p&&ba.childNodes[p];k=++p&&k&&k[b]||(fa=p=0)||n.pop();){if(1===
k.nodeType&&++fa&&k===c){g[a]=[E,p,fa];break}}else if(g&&(l=(c[R]||(c[R]={}))[a])&&l[0]===E)fa=l[1];else for(;(k=++p&&k&&k[b]||(fa=p=0)||n.pop())&&((D?k.nodeName.toLowerCase()!==T:1!==k.nodeType)||!++fa||(g&&((k[R]||(k[R]={}))[a]=[E,fa]),k!==c)););return fa-=e,fa===d||0===fa%d&&0<=fa/d}}},PSEUDO:function(a,b){var e,f=t.pseudos[a]||t.setFilters[a.toLowerCase()]||c.error("unsupported pseudo: "+a);return f[R]?f(b):1<f.length?(e=[a,a,"",b],t.setFilters.hasOwnProperty(a.toLowerCase())?d(function(a,c){for(var d,
e=f(a,b),h=e.length;h--;)d=ea.call(a,e[h]),a[d]=!(c[d]=e[h])}):function(a){return f(a,0,e)}):f}},pseudos:{not:d(function(a){var c=[],b=[],e=s(a.replace(ha,"$1"));return e[R]?d(function(a,c,b,d){var f;b=e(a,null,d,[]);for(d=a.length;d--;)(f=b[d])&&(a[d]=!(c[d]=f))}):function(a,d,f){return c[0]=a,e(c,null,f,b),!b.pop()}}),has:d(function(a){return function(b){return 0<c(a,b).length}}),contains:d(function(a){return function(c){return-1<(c.textContent||c.innerText||H(c)).indexOf(a)}}),lang:d(function(a){return ra.test(a||
"")||c.error("unsupported lang: "+a),a=a.replace(ua,va).toLowerCase(),function(c){var b;do if(b=G?c.lang:c.getAttribute("xml:lang")||c.getAttribute("lang"))return b=b.toLowerCase(),b===a||0===b.indexOf(a+"-");while((c=c.parentNode)&&1===c.nodeType);return!1}}),target:function(c){var b=a.location&&a.location.hash;return b&&b.slice(1)===c.id},root:function(a){return a===N},focus:function(a){return a===B.activeElement&&(!B.hasFocus||B.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return!1===
a.disabled},disabled:function(a){return!0===a.disabled},checked:function(a){var c=a.nodeName.toLowerCase();return"input"===c&&!!a.checked||"option"===c&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,!0===a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(6>a.nodeType)return!1;return!0},parent:function(a){return!t.pseudos.empty(a)},header:function(a){return Qa.test(a.nodeName)},input:function(a){return ta.test(a.nodeName)},button:function(a){var c=
a.nodeName.toLowerCase();return"input"===c&&"button"===a.type||"button"===c},text:function(a){var c;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(c=a.getAttribute("type"))||"text"===c.toLowerCase())},first:k(function(){return[0]}),last:k(function(a,c){return[c-1]}),eq:k(function(a,c,b){return[0>b?b+c:b]}),even:k(function(a,c){for(var b=0;c>b;b+=2)a.push(b);return a}),odd:k(function(a,c){for(var b=1;c>b;b+=2)a.push(b);return a}),lt:k(function(a,c,b){for(c=0>b?b+c:b;0<=--c;)a.push(c);
return a}),gt:k(function(a,c,b){for(b=0>b?b+c:b;++b<c;)a.push(b);return a})}};t.pseudos.nth=t.pseudos.eq;for(m in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[m]=g(m);for(m in{submit:!0,reset:!0})t.pseudos[m]=l(m);n.prototype=t.filters=t.pseudos;t.setFilters=new n;F=c.tokenize=function(a,b){var d,e,f,h,D,g,l;if(D=ca[a+" "])return b?0:D.slice(0);D=a;g=[];for(l=t.preFilter;D;){d&&!(e=oa.exec(D))||(e&&(D=D.slice(e[0].length)||D),g.push(f=[]));d=!1;(e=pa.exec(D))&&(d=e.shift(),f.push({value:d,
type:e[0].replace(ha," ")}),D=D.slice(d.length));for(h in t.filter)!(e=ja[h].exec(D))||l[h]&&!(e=l[h](e))||(d=e.shift(),f.push({value:d,type:h,matches:e}),D=D.slice(d.length));if(!d)break}return b?D.length:D?c.error(a):ca(a,g).slice(0)};return s=c.compile=function(a,c){var b,d=[],e=[],f=W[a+" "];if(!f){c||(c=F(a));for(b=c.length;b--;)f=K(c[b]),f[R]?d.push(f):e.push(f);f=W(a,v(e,d));f.selector=a}return f},A=c.select=function(a,c,b,d){var e,f,h,D,g,l="function"==typeof a&&a,k=!d&&F(a=l.selector||a);
if(b=b||[],1===k.length){if(f=k[0]=k[0].slice(0),2<f.length&&"ID"===(h=f[0]).type&&r.getById&&9===c.nodeType&&G&&t.relative[f[1].type]){if(c=(t.find.ID(h.matches[0].replace(ua,va),c)||[])[0],!c)return b;l&&(c=c.parentNode);a=a.slice(f.shift().value.length)}for(e=ja.needsContext.test(a)?0:f.length;e--&&(h=f[e],!t.relative[D=h.type]);)if((g=t.find[D])&&(d=g(h.matches[0].replace(ua,va),na.test(f[0].type)&&p(c.parentNode)||c))){if(f.splice(e,1),a=d.length&&x(f),!a)return X.apply(b,d),b;break}}return(l||
s(a,k))(d,c,!G,b,na.test(a)&&p(c.parentNode)||c),b},r.sortStable=R.split("").sort(ia).join("")===R,r.detectDuplicates=!!P,O(),r.sortDetached=e(function(a){return 1&a.compareDocumentPosition(B.createElement("div"))}),e(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||f("type|href|height|width",function(a,c,b){return b?void 0:a.getAttribute(c,"type"===c.toLowerCase()?1:2)}),r.attributes&&e(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",
""),""===a.firstChild.getAttribute("value")})||f("value",function(a,c,b){return b||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),e(function(a){return null==a.getAttribute("disabled")})||f("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(a,c,b){var d;return b?void 0:!0===a[c]?c.toLowerCase():(d=a.getAttributeNode(c))&&d.specified?d.value:null}),c}(a);k.find=wa;k.expr=wa.selectors;k.expr[":"]=k.expr.pseudos;
k.unique=wa.uniqueSort;k.text=wa.getText;k.isXMLDoc=wa.isXML;k.contains=wa.contains;var db=k.expr.match.needsContext,eb=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,zb=/^.[^:#\[\.,]*$/;k.filter=function(a,c,b){var d=c[0];return b&&(a=":not("+a+")"),1===c.length&&1===d.nodeType?k.find.matchesSelector(d,a)?[d]:[]:k.find.matches(a,k.grep(c,function(a){return 1===a.nodeType}))};k.fn.extend({find:function(a){var c,b=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(k(a).filter(function(){for(c=0;e>c;c++)if(k.contains(d[c],
this))return!0}));for(c=0;e>c;c++)k.find(a,d[c],b);return b=this.pushStack(1<e?k.unique(b):b),b.selector=this.selector?this.selector+" "+a:a,b},filter:function(a){return this.pushStack(g(this,a||[],!1))},not:function(a){return this.pushStack(g(this,a||[],!0))},is:function(a){return!!g(this,"string"==typeof a&&db.test(a)?k(a):a||[],!1).length}});var Da,I=a.document,Jb=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(k.fn.init=function(a,c){var b,d;if(!a)return this;if("string"==typeof a){if(b="<"===a.charAt(0)&&
">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:Jb.exec(a),!b||!b[1]&&c)return!c||c.jquery?(c||Da).find(a):this.constructor(c).find(a);if(b[1]){if(c=c instanceof k?c[0]:c,k.merge(this,k.parseHTML(b[1],c&&c.nodeType?c.ownerDocument||c:I,!0)),eb.test(b[1])&&k.isPlainObject(c))for(b in c)k.isFunction(this[b])?this[b](c[b]):this.attr(b,c[b]);return this}if(d=I.getElementById(b[2]),d&&d.parentNode){if(d.id!==b[2])return Da.find(a);this.length=1;this[0]=d}return this.context=I,this.selector=a,this}return a.nodeType?
(this.context=this[0]=a,this.length=1,this):k.isFunction(a)?"undefined"!=typeof Da.ready?Da.ready(a):a(k):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),k.makeArray(a,this))}).prototype=k.fn;Da=k(I);var Kb=/^(?:parents|prev(?:Until|All))/,Lb={children:!0,contents:!0,next:!0,prev:!0};k.extend({dir:function(a,c,b){var d=[];for(a=a[c];a&&9!==a.nodeType&&(void 0===b||1!==a.nodeType||!k(a).is(b));)1===a.nodeType&&d.push(a),a=a[c];return d},sibling:function(a,c){for(var b=[];a;a=
a.nextSibling)1===a.nodeType&&a!==c&&b.push(a);return b}});k.fn.extend({has:function(a){var c,b=k(a,this),d=b.length;return this.filter(function(){for(c=0;d>c;c++)if(k.contains(this,b[c]))return!0})},closest:function(a,c){for(var b,d=0,e=this.length,f=[],h=db.test(a)||"string"!=typeof a?k(a,c||this.context):0;e>d;d++)for(b=this[d];b&&b!==c;b=b.parentNode)if(11>b.nodeType&&(h?-1<h.index(b):1===b.nodeType&&k.find.matchesSelector(b,a))){f.push(b);break}return this.pushStack(1<f.length?k.unique(f):f)},
index:function(a){return a?"string"==typeof a?k.inArray(this[0],k(a)):k.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,c){return this.pushStack(k.unique(k.merge(this.get(),k(a,c))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});k.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return k.dir(a,"parentNode")},parentsUntil:function(a,c,b){return k.dir(a,
"parentNode",b)},next:function(a){return e(a,"nextSibling")},prev:function(a){return e(a,"previousSibling")},nextAll:function(a){return k.dir(a,"nextSibling")},prevAll:function(a){return k.dir(a,"previousSibling")},nextUntil:function(a,c,b){return k.dir(a,"nextSibling",b)},prevUntil:function(a,c,b){return k.dir(a,"previousSibling",b)},siblings:function(a){return k.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return k.sibling(a.firstChild)},contents:function(a){return k.nodeName(a,
"iframe")?a.contentDocument||a.contentWindow.document:k.merge([],a.childNodes)}},function(a,c){k.fn[a]=function(b,d){var e=k.map(this,c,b);return"Until"!==a.slice(-5)&&(d=b),d&&"string"==typeof d&&(e=k.filter(d,e)),1<this.length&&(Lb[a]||(e=k.unique(e)),Kb.test(a)&&(e=e.reverse())),this.pushStack(e)}});var ga=/\S+/g,$a={};k.Callbacks=function(a){a="string"==typeof a?$a[a]||d(a):k.extend({},a);var c,b,e,f,h,g,l=[],p=!a.once&&[],n=function(d){b=a.memory&&d;e=!0;h=g||0;g=0;f=l.length;for(c=!0;l&&f>h;h++)if(!1===
l[h].apply(d[0],d[1])&&a.stopOnFalse){b=!1;break}c=!1;l&&(p?p.length&&n(p.shift()):b?l=[]:x.disable())},x={add:function(){if(l){var d=l.length;!function Ib(c){k.each(c,function(c,b){var d=k.type(b);"function"===d?a.unique&&x.has(b)||l.push(b):b&&b.length&&"string"!==d&&Ib(b)})}(arguments);c?f=l.length:b&&(g=d,n(b))}return this},remove:function(){return l&&k.each(arguments,function(a,b){for(var d;-1<(d=k.inArray(b,l,d));)l.splice(d,1),c&&(f>=d&&f--,h>=d&&h--)}),this},has:function(a){return a?-1<k.inArray(a,
l):!(!l||!l.length)},empty:function(){return l=[],f=0,this},disable:function(){return l=p=b=void 0,this},disabled:function(){return!l},lock:function(){return p=void 0,b||x.disable(),this},locked:function(){return!p},fireWith:function(a,b){return!l||e&&!p||(b=b||[],b=[a,b.slice?b.slice():b],c?p.push(b):n(b)),this},fire:function(){return x.fireWith(this,arguments),this},fired:function(){return!!e}};return x};k.extend({Deferred:function(a){var c=[["resolve","done",k.Callbacks("once memory"),"resolved"],
["reject","fail",k.Callbacks("once memory"),"rejected"],["notify","progress",k.Callbacks("memory")]],b="pending",d={state:function(){return b},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return k.Deferred(function(b){k.each(c,function(c,f){var h=k.isFunction(a[c])&&a[c];e[f[1]](function(){var a=h&&h.apply(this,arguments);a&&k.isFunction(a.promise)?a.promise().done(b.resolve).fail(b.reject).progress(b.notify):b[f[0]+"With"](this===d?b.promise():
this,h?[a]:arguments)})});a=null}).promise()},promise:function(a){return null!=a?k.extend(a,d):d}},e={};return d.pipe=d.then,k.each(c,function(a,f){var h=f[2],g=f[3];d[f[1]]=h.add;g&&h.add(function(){b=g},c[1^a][2].disable,c[2][2].lock);e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this};e[f[0]+"With"]=h.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var c=0,b=ia.call(arguments),d=b.length,e=1!==d||a&&k.isFunction(a.promise)?d:0,f=1===e?a:k.Deferred(),h=function(a,
c,b){return function(d){c[a]=this;b[a]=1<arguments.length?ia.call(arguments):d;b===g?f.notifyWith(c,b):--e||f.resolveWith(c,b)}},g,l,p;if(1<d)for(g=Array(d),l=Array(d),p=Array(d);d>c;c++)b[c]&&k.isFunction(b[c].promise)?b[c].promise().done(h(c,p,b)).fail(f.reject).progress(h(c,l,g)):--e;return e||f.resolveWith(p,b),f.promise()}});var Ha;k.fn.ready=function(a){return k.ready.promise().done(a),this};k.extend({isReady:!1,readyWait:1,holdReady:function(a){a?k.readyWait++:k.ready(!0)},ready:function(a){if(!0===
a?!--k.readyWait:!k.isReady){if(!I.body)return setTimeout(k.ready);k.isReady=!0;!0!==a&&0<--k.readyWait||(Ha.resolveWith(I,[k]),k.fn.triggerHandler&&(k(I).triggerHandler("ready"),k(I).off("ready")))}}});k.ready.promise=function(d){if(!Ha)if(Ha=k.Deferred(),"complete"===I.readyState)setTimeout(k.ready);else if(I.addEventListener)I.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1);else{I.attachEvent("onreadystatechange",c);a.attachEvent("onload",c);var e=!1;try{e=null==a.frameElement&&
I.documentElement}catch(f){}e&&e.doScroll&&!function sa(){if(!k.isReady){try{e.doScroll("left")}catch(a){return setTimeout(sa,50)}b();k.ready()}}()}return Ha.promise(d)};var da="undefined",fb;for(fb in k(E))break;E.ownLast="0"!==fb;E.inlineBlockNeedsLayout=!1;k(function(){var a,c,b,d;(b=I.getElementsByTagName("body")[0])&&b.style&&(c=I.createElement("div"),d=I.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",b.appendChild(d).appendChild(c),typeof c.style.zoom!==
da&&(c.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",E.inlineBlockNeedsLayout=a=3===c.offsetWidth,a&&(b.style.zoom=1)),b.removeChild(d))});(function(){var a=I.createElement("div");if(null==E.deleteExpando){E.deleteExpando=!0;try{delete a.test}catch(c){E.deleteExpando=!1}}})();k.acceptData=function(a){var c=k.noData[(a.nodeName+" ").toLowerCase()],b=+a.nodeType||1;return 1!==b&&9!==b?!1:!c||!0!==c&&a.getAttribute("classid")===c};var Bb=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
Ab=/([A-Z])/g;k.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?k.cache[a[k.expando]]:a[k.expando],!!a&&!l(a)},data:function(a,c,b){return n(a,c,b)},removeData:function(a,c){return q(a,c)},_data:function(a,c,b){return n(a,c,b,!0)},_removeData:function(a,c){return q(a,c,!0)}});k.fn.extend({data:function(a,c){var b,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=k.data(f),1===f.nodeType&&
!k._data(f,"parsedAttrs"))){for(b=g.length;b--;)g[b]&&(d=g[b].name,0===d.indexOf("data-")&&(d=k.camelCase(d.slice(5)),h(f,d,e[d])));k._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){k.data(this,a)}):1<arguments.length?this.each(function(){k.data(this,a,c)}):f?h(f,a,k.data(f,a)):void 0},removeData:function(a){return this.each(function(){k.removeData(this,a)})}});k.extend({queue:function(a,c,b){var d;return a?(c=(c||"fx")+"queue",d=k._data(a,c),b&&(!d||k.isArray(b)?
d=k._data(a,c,k.makeArray(b)):d.push(b)),d||[]):void 0},dequeue:function(a,c){c=c||"fx";var b=k.queue(a,c),d=b.length,e=b.shift(),f=k._queueHooks(a,c),h=function(){k.dequeue(a,c)};"inprogress"===e&&(e=b.shift(),d--);e&&("fx"===c&&b.unshift("inprogress"),delete f.stop,e.call(a,h,f));!d&&f&&f.empty.fire()},_queueHooks:function(a,c){var b=c+"queueHooks";return k._data(a,b)||k._data(a,b,{empty:k.Callbacks("once memory").add(function(){k._removeData(a,c+"queue");k._removeData(a,b)})})}});k.fn.extend({queue:function(a,
c){var b=2;return"string"!=typeof a&&(c=a,a="fx",b--),arguments.length<b?k.queue(this[0],a):void 0===c?this:this.each(function(){var b=k.queue(this,a,c);k._queueHooks(this,a);"fx"===a&&"inprogress"!==b[0]&&k.dequeue(this,a)})},dequeue:function(a){return this.each(function(){k.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){var b,d=1,e=k.Deferred(),f=this,h=this.length,g=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(c=a,a=void 0);for(a=a||
"fx";h--;)(b=k._data(f[h],a+"queueHooks"))&&b.empty&&(d++,b.empty.add(g));return g(),e.promise(c)}});var Ia=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ha=["Top","Right","Bottom","Left"],za=function(a,c){return a=c||a,"none"===k.css(a,"display")||!k.contains(a.ownerDocument,a)},qa=k.access=function(a,c,b,d,e,f,h){var g=0,l=a.length,p=null==b;if("object"===k.type(b))for(g in e=!0,b)k.access(a,c,g,b[g],!0,f,h);else if(void 0!==d&&(e=!0,k.isFunction(d)||(h=!0),p&&(h?(c.call(a,d),c=null):(p=c,c=function(a,
c,b){return p.call(k(a),b)})),c))for(;l>g;g++)c(a[g],b,h?d:d.call(a[g],g,c(a[g],b)));return e?a:p?c.call(a):l?c(a[0],b):f},Na=/^(?:checkbox|radio)$/i;!function(){var a=I.createElement("input"),c=I.createElement("div"),b=I.createDocumentFragment();if(c.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",E.leadingWhitespace=3===c.firstChild.nodeType,E.tbody=!c.getElementsByTagName("tbody").length,E.htmlSerialize=!!c.getElementsByTagName("link").length,E.html5Clone="<:nav></:nav>"!==
I.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,b.appendChild(a),E.appendChecked=a.checked,c.innerHTML="<textarea>x</textarea>",E.noCloneChecked=!!c.cloneNode(!0).lastChild.defaultValue,b.appendChild(c),c.innerHTML="<input type='radio' checked='checked' name='t'/>",E.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked,E.noCloneEvent=!0,c.attachEvent&&(c.attachEvent("onclick",function(){E.noCloneEvent=!1}),c.cloneNode(!0).click()),null==E.deleteExpando){E.deleteExpando=
!0;try{delete c.test}catch(d){E.deleteExpando=!1}}}();(function(){var c,b,d=I.createElement("div");for(c in{submit:!0,change:!0,focusin:!0})b="on"+c,(E[c+"Bubbles"]=b in a)||(d.setAttribute(b,"t"),E[c+"Bubbles"]=!1===d.attributes[b].expando)})();var Ra=/^(?:input|select|textarea)$/i,Mb=/^key/,Nb=/^(?:mouse|pointer|contextmenu)|click/,gb=/^(?:focusinfocus|focusoutblur)$/,hb=/^([^.]*)(?:\.(.+)|)$/;k.event={global:{},add:function(a,c,b,d,e){var f,h,g,l,p,n,x,q,C,y;if(g=k._data(a)){b.handler&&(l=b,b=
l.handler,e=l.selector);b.guid||(b.guid=k.guid++);(h=g.events)||(h=g.events={});(n=g.handle)||(n=g.handle=function(a){return typeof k===da||a&&k.event.triggered===a.type?void 0:k.event.dispatch.apply(n.elem,arguments)},n.elem=a);c=(c||"").match(ga)||[""];for(g=c.length;g--;)f=hb.exec(c[g])||[],C=y=f[1],f=(f[2]||"").split(".").sort(),C&&(p=k.event.special[C]||{},C=(e?p.delegateType:p.bindType)||C,p=k.event.special[C]||{},x=k.extend({type:C,origType:y,data:d,handler:b,guid:b.guid,selector:e,needsContext:e&&
k.expr.match.needsContext.test(e),namespace:f.join(".")},l),(q=h[C])||(q=h[C]=[],q.delegateCount=0,p.setup&&!1!==p.setup.call(a,d,f,n)||(a.addEventListener?a.addEventListener(C,n,!1):a.attachEvent&&a.attachEvent("on"+C,n))),p.add&&(p.add.call(a,x),x.handler.guid||(x.handler.guid=b.guid)),e?q.splice(q.delegateCount++,0,x):q.push(x),k.event.global[C]=!0);a=null}},remove:function(a,c,b,d,e){var f,h,g,l,p,n,x,q,C,y,z,t=k.hasData(a)&&k._data(a);if(t&&(n=t.events)){c=(c||"").match(ga)||[""];for(p=c.length;p--;)if(g=
hb.exec(c[p])||[],C=z=g[1],y=(g[2]||"").split(".").sort(),C){x=k.event.special[C]||{};C=(d?x.delegateType:x.bindType)||C;q=n[C]||[];g=g[2]&&RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)");for(l=f=q.length;f--;)h=q[f],!e&&z!==h.origType||b&&b.guid!==h.guid||g&&!g.test(h.namespace)||d&&d!==h.selector&&("**"!==d||!h.selector)||(q.splice(f,1),h.selector&&q.delegateCount--,x.remove&&x.remove.call(a,h));l&&!q.length&&(x.teardown&&!1!==x.teardown.call(a,y,t.handle)||k.removeEvent(a,C,t.handle),delete n[C])}else for(C in n)k.event.remove(a,
C+c[p],b,d,!0);k.isEmptyObject(n)&&(delete t.handle,k._removeData(a,"events"))}},trigger:function(c,b,d,e){var f,h,g,l,p,n,x=[d||I],q=ea.call(c,"type")?c.type:c;n=ea.call(c,"namespace")?c.namespace.split("."):[];if(g=f=d=d||I,3!==d.nodeType&&8!==d.nodeType&&!gb.test(q+k.event.triggered)&&(0<=q.indexOf(".")&&(n=q.split("."),q=n.shift(),n.sort()),h=0>q.indexOf(":")&&"on"+q,c=c[k.expando]?c:new k.Event(q,"object"==typeof c&&c),c.isTrigger=e?2:3,c.namespace=n.join("."),c.namespace_re=c.namespace?RegExp("(^|\\.)"+
n.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c.result=void 0,c.target||(c.target=d),b=null==b?[c]:k.makeArray(b,[c]),p=k.event.special[q]||{},e||!p.trigger||!1!==p.trigger.apply(d,b))){if(!e&&!p.noBubble&&!k.isWindow(d)){l=p.delegateType||q;for(gb.test(l+q)||(g=g.parentNode);g;g=g.parentNode)x.push(g),f=g;f===(d.ownerDocument||I)&&x.push(f.defaultView||f.parentWindow||a)}for(n=0;(g=x[n++])&&!c.isPropagationStopped();)c.type=1<n?l:p.bindType||q,(f=(k._data(g,"events")||{})[c.type]&&k._data(g,"handle"))&&
f.apply(g,b),(f=h&&g[h])&&f.apply&&k.acceptData(g)&&(c.result=f.apply(g,b),!1===c.result&&c.preventDefault());if(c.type=q,!(e||c.isDefaultPrevented()||p._default&&!1!==p._default.apply(x.pop(),b))&&k.acceptData(d)&&h&&d[q]&&!k.isWindow(d)){(f=d[h])&&(d[h]=null);k.event.triggered=q;try{d[q]()}catch(C){}k.event.triggered=void 0;f&&(d[h]=f)}return c.result}},dispatch:function(a){a=k.event.fix(a);var c,b,d,e,f,h=[],g=ia.call(arguments);c=(k._data(this,"events")||{})[a.type]||[];var l=k.event.special[a.type]||
{};if(g[0]=a,a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){h=k.event.handlers.call(this,a,c);for(c=0;(e=h[c++])&&!a.isPropagationStopped();)for(a.currentTarget=e.elem,f=0;(d=e.handlers[f++])&&!a.isImmediatePropagationStopped();)a.namespace_re&&!a.namespace_re.test(d.namespace)||(a.handleObj=d,a.data=d.data,b=((k.event.special[d.origType]||{}).handle||d.handler).apply(e.elem,g),void 0===b||!1!==(a.result=b)||(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&
l.postDispatch.call(this,a),a.result}},handlers:function(a,c){var b,d,e,f,h=[],g=c.delegateCount,l=a.target;if(g&&l.nodeType&&(!a.button||"click"!==a.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==a.type)){e=[];for(f=0;g>f;f++)d=c[f],b=d.selector+" ",void 0===e[b]&&(e[b]=d.needsContext?0<=k(b,this).index(l):k.find(b,this,null,[l]).length),e[b]&&e.push(d);e.length&&h.push({elem:l,handlers:e})}return g<c.length&&h.push({elem:this,handlers:c.slice(g)}),h},fix:function(a){if(a[k.expando])return a;
var c,b,d;c=a.type;var e=a,f=this.fixHooks[c];f||(this.fixHooks[c]=f=Nb.test(c)?this.mouseHooks:Mb.test(c)?this.keyHooks:{});d=f.props?this.props.concat(f.props):this.props;a=new k.Event(e);for(c=d.length;c--;)b=d[c],a[b]=e[b];return a.target||(a.target=e.srcElement||I),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,f.filter?f.filter(a,e):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
fixHooks:{},keyHooks:{props:["char","charCode","key","keyCode"],filter:function(a,c){return null==a.which&&(a.which=null!=c.charCode?c.charCode:c.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,c){var b,d,e,f=c.button,h=c.fromElement;return null==a.pageX&&null!=c.clientX&&(d=a.target.ownerDocument||I,e=d.documentElement,b=d.body,a.pageX=c.clientX+(e&&e.scrollLeft||b&&b.scrollLeft||0)-(e&&
e.clientLeft||b&&b.clientLeft||0),a.pageY=c.clientY+(e&&e.scrollTop||b&&b.scrollTop||0)-(e&&e.clientTop||b&&b.clientTop||0)),!a.relatedTarget&&h&&(a.relatedTarget=h===a.target?c.toElement:h),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==v()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===v()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return k.nodeName(this,
"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return k.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,c,b,d){a=k.extend(new k.Event,b,{type:a,isSimulated:!0,originalEvent:{}});d?k.event.trigger(a,null,c):k.event.dispatch.call(c,a);a.isDefaultPrevented()&&b.preventDefault()}};k.removeEvent=I.removeEventListener?function(a,c,b){a.removeEventListener&&
a.removeEventListener(c,b,!1)}:function(a,c,b){c="on"+c;a.detachEvent&&(typeof a[c]===da&&(a[c]=null),a.detachEvent(c,b))};k.Event=function(a,c){return this instanceof k.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&!1===a.returnValue?t:z):this.type=a,c&&k.extend(this,c),this.timeStamp=a&&a.timeStamp||k.now(),void(this[k.expando]=!0)):new k.Event(a,c)};k.Event.prototype={isDefaultPrevented:z,isPropagationStopped:z,
isImmediatePropagationStopped:z,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=t;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=t;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=t;a&&a.stopImmediatePropagation&&a.stopImmediatePropagation();this.stopPropagation()}};k.each({mouseenter:"mouseover",
mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,c){k.event.special[a]={delegateType:c,bindType:c,handle:function(a){var b,d=a.relatedTarget,e=a.handleObj;return(!d||d!==this&&!k.contains(this,d))&&(a.type=e.origType,b=e.handler.apply(this,arguments),a.type=c),b}}});E.submitBubbles||(k.event.special.submit={setup:function(){return k.nodeName(this,"form")?!1:void k.event.add(this,"click._submit keypress._submit",function(a){a=a.target;(a=k.nodeName(a,"input")||
k.nodeName(a,"button")?a.form:void 0)&&!k._data(a,"submitBubbles")&&(k.event.add(a,"submit._submit",function(a){a._submit_bubble=!0}),k._data(a,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&k.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return k.nodeName(this,"form")?!1:void k.event.remove(this,"._submit")}});E.changeBubbles||(k.event.special.change={setup:function(){return Ra.test(this.nodeName)?(("checkbox"===
this.type||"radio"===this.type)&&(k.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),k.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1);k.event.simulate("change",this,a,!0)})),!1):void k.event.add(this,"beforeactivate._change",function(a){a=a.target;Ra.test(a.nodeName)&&!k._data(a,"changeBubbles")&&(k.event.add(a,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||
k.event.simulate("change",this.parentNode,a,!0)}),k._data(a,"changeBubbles",!0))})},handle:function(a){var c=a.target;return this!==c||a.isSimulated||a.isTrigger||"radio"!==c.type&&"checkbox"!==c.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return k.event.remove(this,"._change"),!Ra.test(this.nodeName)}});E.focusinBubbles||k.each({focus:"focusin",blur:"focusout"},function(a,c){var b=function(a){k.event.simulate(c,a.target,k.event.fix(a),!0)};k.event.special[c]={setup:function(){var d=
this.ownerDocument||this,e=k._data(d,c);e||d.addEventListener(a,b,!0);k._data(d,c,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=k._data(d,c)-1;e?k._data(d,c,e):(d.removeEventListener(a,b,!0),k._removeData(d,c))}}});k.fn.extend({on:function(a,c,b,d,e){var f,h;if("object"==typeof a){"string"!=typeof c&&(b=b||c,c=void 0);for(f in a)this.on(f,c,b,a[f],e);return this}if(null==b&&null==d?(d=c,b=c=void 0):null==d&&("string"==typeof c?(d=b,b=void 0):(d=b,b=c,c=void 0)),!1===d)d=z;else if(!d)return this;
return 1===e&&(h=d,d=function(a){return k().off(a),h.apply(this,arguments)},d.guid=h.guid||(h.guid=k.guid++)),this.each(function(){k.event.add(this,a,d,b,c)})},one:function(a,c,b,d){return this.on(a,c,b,d,1)},off:function(a,c,b){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,k(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,c,a[e]);return this}return(!1===c||"function"==typeof c)&&(b=
c,c=void 0),!1===b&&(b=z),this.each(function(){k.event.remove(this,a,b,c)})},trigger:function(a,c){return this.each(function(){k.event.trigger(a,c,this)})},triggerHandler:function(a,c){var b=this[0];return b?k.event.trigger(a,c,b,!0):void 0}});var ab="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Ob=/ jQuery\d+="(?:null|\d+)"/g,ib=RegExp("<(?:"+ab+")[\\s/>]","i"),Sa=/^\s+/,jb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
kb=/<([\w:]+)/,lb=/<tbody/i,Pb=/<|&#?\w+;/,Qb=/<(?:script|style|link)/i,Rb=/checked\s*(?:[^=]|=\s*.checked.)/i,mb=/^$|\/(?:java|ecma)script/i,Db=/^true\/(.*)/,Sb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,X={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,
"<table><tbody><tr>","</tr></tbody></table>"],_default:E.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Ta=A(I).appendChild(I.createElement("div"));X.optgroup=X.option;X.tbody=X.tfoot=X.colgroup=X.caption=X.thead;X.th=X.td;k.extend({clone:function(a,c,b){var d,e,f,h,g,l=k.contains(a.ownerDocument,a);if(E.html5Clone||k.isXMLDoc(a)||!ib.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Ta.innerHTML=a.outerHTML,Ta.removeChild(f=Ta.firstChild)),!(E.noCloneEvent&&E.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||
k.isXMLDoc(a)))for(d=s(f),g=s(a),h=0;null!=(e=g[h]);++h)if(d[h]){var n=d[h],q=void 0,C=void 0,y=void 0;if(1===n.nodeType){if(q=n.nodeName.toLowerCase(),!E.noCloneEvent&&n[k.expando]){y=k._data(n);for(C in y.events)k.removeEvent(n,C,y.handle);n.removeAttribute(k.expando)}"script"===q&&n.text!==e.text?(B(n).text=e.text,r(n)):"object"===q?(n.parentNode&&(n.outerHTML=e.outerHTML),E.html5Clone&&e.innerHTML&&!k.trim(n.innerHTML)&&(n.innerHTML=e.innerHTML)):"input"===q&&Na.test(e.type)?(n.defaultChecked=
n.checked=e.checked,n.value!==e.value&&(n.value=e.value)):"option"===q?n.defaultSelected=n.selected=e.defaultSelected:("input"===q||"textarea"===q)&&(n.defaultValue=e.defaultValue)}}if(c)if(b)for(g=g||s(a),d=d||s(f),h=0;null!=(e=g[h]);h++)x(e,d[h]);else x(a,f);return d=s(f,"script"),0<d.length&&p(d,!l&&s(a,"script")),f},buildFragment:function(a,c,b,d){for(var e,f,h,g,l,n,q,x=a.length,C=A(c),y=[],z=0;x>z;z++)if(f=a[z],f||0===f)if("object"===k.type(f))k.merge(y,f.nodeType?[f]:f);else if(Pb.test(f)){g=
g||C.appendChild(c.createElement("div"));l=(kb.exec(f)||["",""])[1].toLowerCase();q=X[l]||X._default;g.innerHTML=q[1]+f.replace(jb,"<$1></$2>")+q[2];for(e=q[0];e--;)g=g.lastChild;if(!E.leadingWhitespace&&Sa.test(f)&&y.push(c.createTextNode(Sa.exec(f)[0])),!E.tbody)for(e=(f="table"!==l||lb.test(f)?"<table>"!==q[1]||lb.test(f)?0:g:g.firstChild)&&f.childNodes.length;e--;)k.nodeName(n=f.childNodes[e],"tbody")&&!n.childNodes.length&&f.removeChild(n);k.merge(y,g.childNodes);for(g.textContent="";g.firstChild;)g.removeChild(g.firstChild);
g=C.lastChild}else y.push(c.createTextNode(f));g&&C.removeChild(g);E.appendChecked||k.grep(s(y,"input"),F);for(z=0;f=y[z++];)if((!d||-1===k.inArray(f,d))&&(h=k.contains(f.ownerDocument,f),g=s(C.appendChild(f),"script"),h&&p(g),b))for(e=0;f=g[e++];)mb.test(f.type||"")&&b.push(f);return C},cleanData:function(a,c){for(var b,d,e,f,h=0,g=k.expando,l=k.cache,p=E.deleteExpando,n=k.event.special;null!=(b=a[h]);h++)if((c||k.acceptData(b))&&(e=b[g],f=e&&l[e])){if(f.events)for(d in f.events)n[d]?k.event.remove(b,
d):k.removeEvent(b,d,f.handle);l[e]&&(delete l[e],p?delete b[g]:typeof b.removeAttribute!==da?b.removeAttribute(g):b[g]=null,ca.push(e))}}});k.fn.extend({text:function(a){return qa(this,function(a){return void 0===a?k.text(this):this.empty().append((this[0]&&this[0].ownerDocument||I).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||u(this,a).appendChild(a)})},prepend:function(){return this.domManip(arguments,
function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var c=u(this,a);c.insertBefore(a,c.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,c){for(var b,d=a?k.filter(a,this):this,e=0;null!=(b=d[e]);e++)c||1!==b.nodeType||k.cleanData(s(b)),b.parentNode&&
(c&&k.contains(b.ownerDocument,b)&&p(s(b,"script")),b.parentNode.removeChild(b));return this},empty:function(){for(var a,c=0;null!=(a=this[c]);c++){for(1===a.nodeType&&k.cleanData(s(a,!1));a.firstChild;)a.removeChild(a.firstChild);a.options&&k.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,c){return a=null==a?!1:a,c=null==c?a:c,this.map(function(){return k.clone(this,a,c)})},html:function(a){return qa(this,function(a){var c=this[0]||{},b=0,d=this.length;if(void 0===a)return 1===
c.nodeType?c.innerHTML.replace(Ob,""):void 0;if(!("string"!=typeof a||Qb.test(a)||!E.htmlSerialize&&ib.test(a)||!E.leadingWhitespace&&Sa.test(a)||X[(kb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(jb,"<$1></$2>");try{for(;d>b;b++)c=this[b]||{},1===c.nodeType&&(k.cleanData(s(c,!1)),c.innerHTML=a);c=0}catch(e){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(c){a=this.parentNode;k.cleanData(s(this));a&&a.replaceChild(c,
this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,c){a=la.apply([],a);var b,d,e,f,h=0,g=this.length,l=this,p=g-1,n=a[0],q=k.isFunction(n);if(q||1<g&&"string"==typeof n&&!E.checkClone&&Rb.test(n))return this.each(function(b){var d=l.eq(b);q&&(a[0]=n.call(this,b,d.html()));d.domManip(a,c)});if(g&&(f=k.buildFragment(a,this[0].ownerDocument,!1,this),b=f.firstChild,1===f.childNodes.length&&(f=b),b)){e=k.map(s(f,"script"),B);for(d=e.length;g>
h;h++)b=f,h!==p&&(b=k.clone(b,!0,!0),d&&k.merge(e,s(b,"script"))),c.call(this[h],b,h);if(d)for(f=e[e.length-1].ownerDocument,k.map(e,r),h=0;d>h;h++)b=e[h],mb.test(b.type||"")&&!k._data(b,"globalEval")&&k.contains(f,b)&&(b.src?k._evalUrl&&k._evalUrl(b.src):k.globalEval((b.text||b.textContent||b.innerHTML||"").replace(Sb,"")));f=b=null}return this}});k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,c){k.fn[a]=function(a){for(var b=
0,d=[],e=k(a),f=e.length-1;f>=b;b++)a=b===f?this:this.clone(!0),k(e[b])[c](a),Ca.apply(d,a.get());return this.pushStack(d)}});var xa,bb={};!function(){var a;E.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var c,b,d;return b=I.getElementsByTagName("body")[0],b&&b.style?(c=I.createElement("div"),d=I.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",b.appendChild(d).appendChild(c),typeof c.style.zoom!==da&&(c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",
c.appendChild(I.createElement("div")).style.width="5px",a=3!==c.offsetWidth),b.removeChild(d),a):void 0}}();var nb=/^margin/,Ea=RegExp("^("+Ia+")(?!px)[a-z%]+$","i"),oa,pa,Tb=/^(top|right|bottom|left)$/;a.getComputedStyle?(oa=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},pa=function(a,c,b){var d,e,f,h,g=a.style;return b=b||oa(a),h=b?b.getPropertyValue(c)||b[c]:void 0,b&&(""!==h||k.contains(a.ownerDocument,a)||(h=k.style(a,c)),Ea.test(h)&&nb.test(c)&&(d=g.width,e=g.minWidth,
f=g.maxWidth,g.minWidth=g.maxWidth=g.width=h,h=b.width,g.width=d,g.minWidth=e,g.maxWidth=f)),void 0===h?h:h+""}):I.documentElement.currentStyle&&(oa=function(a){return a.currentStyle},pa=function(a,c,b){var d,e,f,h,g=a.style;return b=b||oa(a),h=b?b[c]:void 0,null==h&&g&&g[c]&&(h=g[c]),Ea.test(h)&&!Tb.test(c)&&(d=g.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),g.left="fontSize"===c?"1em":h,h=g.pixelLeft+"px",g.left=d,f&&(e.left=f)),void 0===h?h:h+""||"auto"});!function(){var c,
b,d,e,f,h,g;if(c=I.createElement("div"),c.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=c.getElementsByTagName("a")[0],b=d&&d.style){b.cssText="float:left;opacity:.5";E.opacity="0.5"===b.opacity;E.cssFloat=!!b.cssFloat;c.style.backgroundClip="content-box";c.cloneNode(!0).style.backgroundClip="";E.clearCloneStyle="content-box"===c.style.backgroundClip;E.boxSizing=""===b.boxSizing||""===b.MozBoxSizing||""===b.WebkitBoxSizing;k.extend(E,{reliableHiddenOffsets:function(){return null==
h&&l(),h},boxSizingReliable:function(){return null==f&&l(),f},pixelPosition:function(){return null==e&&l(),e},reliableMarginRight:function(){return null==g&&l(),g}});var l=function(){var c,b,d,l;(b=I.getElementsByTagName("body")[0])&&b.style&&(c=I.createElement("div"),d=I.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",b.appendChild(d).appendChild(c),c.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",
e=f=!1,g=!0,a.getComputedStyle&&(e="1%"!==(a.getComputedStyle(c,null)||{}).top,f="4px"===(a.getComputedStyle(c,null)||{width:"4px"}).width,l=c.appendChild(I.createElement("div")),l.style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",l.style.marginRight=l.style.width="0",c.style.width="1px",g=!parseFloat((a.getComputedStyle(l,null)||{}).marginRight)),c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",
l=c.getElementsByTagName("td"),l[0].style.cssText="margin:0;border:0;padding:0;display:none",h=0===l[0].offsetHeight,h&&(l[0].style.display="",l[1].style.display="none",h=0===l[0].offsetHeight),b.removeChild(d))}}}();k.swap=function(a,c,b,d){var e,f={};for(e in c)f[e]=a.style[e],a.style[e]=c[e];b=b.apply(a,d||[]);for(e in c)a.style[e]=f[e];return b};var Ua=/alpha\([^)]*\)/i,Ub=/opacity\s*=\s*([^)]*)/,Vb=/^(none|table(?!-c[ea]).+)/,Eb=RegExp("^("+Ia+")(.*)$","i"),Wb=RegExp("^([+-])=("+Ia+")","i"),
Xb={position:"absolute",visibility:"hidden",display:"block"},ob={letterSpacing:"0",fontWeight:"400"},cb=["Webkit","O","Moz","ms"];k.extend({cssHooks:{opacity:{get:function(a,c){if(c){var b=pa(a,"opacity");return""===b?"1":b}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":E.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,b,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,
f,h,g=k.camelCase(c),l=a.style;if(c=k.cssProps[g]||(k.cssProps[g]=O(l,g)),h=k.cssHooks[c]||k.cssHooks[g],void 0===b)return h&&"get"in h&&void 0!==(e=h.get(a,!1,d))?e:l[c];if(f=typeof b,"string"===f&&(e=Wb.exec(b))&&(b=(e[1]+1)*e[2]+parseFloat(k.css(a,c)),f="number"),null!=b&&b===b&&("number"!==f||k.cssNumber[g]||(b+="px"),E.clearCloneStyle||""!==b||0!==c.indexOf("background")||(l[c]="inherit"),!(h&&"set"in h&&void 0===(b=h.set(a,b,d)))))try{l[c]=b}catch(p){}}},css:function(a,c,b,d){var e,f,h,g=k.camelCase(c);
return c=k.cssProps[g]||(k.cssProps[g]=O(a.style,g)),h=k.cssHooks[c]||k.cssHooks[g],h&&"get"in h&&(f=h.get(a,!0,b)),void 0===f&&(f=pa(a,c,d)),"normal"===f&&c in ob&&(f=ob[c]),""===b||b?(e=parseFloat(f),!0===b||k.isNumeric(e)?e||0:f):f}});k.each(["height","width"],function(a,c){k.cssHooks[c]={get:function(a,b,d){return b?Vb.test(k.css(a,"display"))&&0===a.offsetWidth?k.swap(a,Xb,function(){return S(a,c,d)}):S(a,c,d):void 0},set:function(a,b,d){var e=d&&oa(a);return aa(a,b,d?Y(a,c,d,E.boxSizing&&"border-box"===
k.css(a,"boxSizing",!1,e),e):0)}}});E.opacity||(k.cssHooks.opacity={get:function(a,c){return Ub.test((c&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":c?"1":""},set:function(a,c){var b=a.style,d=a.currentStyle,e=k.isNumeric(c)?"alpha(opacity="+100*c+")":"",f=d&&d.filter||b.filter||"";b.zoom=1;(1<=c||""===c)&&""===k.trim(f.replace(Ua,""))&&b.removeAttribute&&(b.removeAttribute("filter"),""===c||d&&!d.filter)||(b.filter=Ua.test(f)?f.replace(Ua,e):f+" "+e)}});
k.cssHooks.marginRight=K(E.reliableMarginRight,function(a,c){return c?k.swap(a,{display:"inline-block"},pa,[a,"marginRight"]):void 0});k.each({margin:"",padding:"",border:"Width"},function(a,c){k.cssHooks[a+c]={expand:function(b){var d=0,e={};for(b="string"==typeof b?b.split(" "):[b];4>d;d++)e[a+ha[d]+c]=b[d]||b[d-2]||b[0];return e}};nb.test(a)||(k.cssHooks[a+c].set=aa)});k.fn.extend({css:function(a,c){return qa(this,function(a,c,b){var d,e={},f=0;if(k.isArray(c)){b=oa(a);for(d=c.length;d>f;f++)e[c[f]]=
k.css(a,c[f],!1,b);return e}return void 0!==b?k.style(a,c,b):k.css(a,c)},a,c,1<arguments.length)},show:function(){return N(this,!0)},hide:function(){return N(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){za(this)?k(this).show():k(this).hide()})}});k.Tween=Q;Q.prototype={constructor:Q,init:function(a,c,b,d,e,f){this.elem=a;this.prop=b;this.easing=e||"swing";this.options=c;this.start=this.now=this.cur();this.end=d;this.unit=f||(k.cssNumber[b]?"":
"px")},cur:function(){var a=Q.propHooks[this.prop];return a&&a.get?a.get(this):Q.propHooks._default.get(this)},run:function(a){var c,b=Q.propHooks[this.prop];return this.pos=c=this.options.duration?k.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*c+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),b&&b.set?b.set(this):Q.propHooks._default.set(this),this}};Q.prototype.init.prototype=Q.prototype;Q.propHooks={_default:{get:function(a){var c;
return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(c=k.css(a.elem,a.prop,""),c&&"auto"!==c?c:0):a.elem[a.prop]},set:function(a){k.fx.step[a.prop]?k.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[k.cssProps[a.prop]]||k.cssHooks[a.prop])?k.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}};Q.propHooks.scrollTop=Q.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}};k.easing={linear:function(a){return a},swing:function(a){return 0.5-
Math.cos(a*Math.PI)/2}};k.fx=Q.prototype.init;k.fx.step={};var ta,Ja,Yb=/^(?:toggle|show|hide)$/,pb=RegExp("^(?:([+-])=|)("+Ia+")([a-z%]*)$","i"),Zb=/queueHooks$/,Fa=[function(a,c,b){var d,e,f,h,g,l,p,n=this,q={},x=a.style,C=a.nodeType&&za(a),y=k._data(a,"fxshow");b.queue||(h=k._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,g=h.empty.fire,h.empty.fire=function(){h.unqueued||g()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--;k.queue(a,"fx").length||h.empty.fire()})}));1===
a.nodeType&&("height"in c||"width"in c)&&(b.overflow=[x.overflow,x.overflowX,x.overflowY],l=k.css(a,"display"),p="none"===l?k._data(a,"olddisplay")||H(a.nodeName):l,"inline"===p&&"none"===k.css(a,"float")&&(E.inlineBlockNeedsLayout&&"inline"!==H(a.nodeName)?x.zoom=1:x.display="inline-block"));b.overflow&&(x.overflow="hidden",E.shrinkWrapBlocks()||n.always(function(){x.overflow=b.overflow[0];x.overflowX=b.overflow[1];x.overflowY=b.overflow[2]}));for(d in c)if(e=c[d],Yb.exec(e)){if(delete c[d],f=f||
"toggle"===e,e===(C?"hide":"show")){if("show"!==e||!y||void 0===y[d])continue;C=!0}q[d]=y&&y[d]||k.style(a,d)}else l=void 0;if(k.isEmptyObject(q))"inline"===("none"===l?H(a.nodeName):l)&&(x.display=l);else for(d in y?"hidden"in y&&(C=y.hidden):y=k._data(a,"fxshow",{}),f&&(y.hidden=!C),C?k(a).show():n.done(function(){k(a).hide()}),n.done(function(){var c;k._removeData(a,"fxshow");for(c in q)k.style(a,c,q[c])}),q)c=L(C?y[d]:0,d,n),d in y||(y[d]=c.start,C&&(c.end=c.start,c.start="width"===d||"height"===
d?1:0))}],Ba={"*":[function(a,c){var b=this.createTween(a,c),d=b.cur(),e=pb.exec(c),f=e&&e[3]||(k.cssNumber[a]?"":"px"),h=(k.cssNumber[a]||"px"!==f&&+d)&&pb.exec(k.css(b.elem,a)),g=1,l=20;if(h&&h[3]!==f){f=f||h[3];e=e||[];h=+d||1;do g=g||".5",h/=g,k.style(b.elem,a,h+f);while(g!==(g=b.cur()/d)&&1!==g&&--l)}return e&&(h=b.start=+h||+d||0,b.unit=f,b.end=e[1]?h+(e[1]+1)*e[2]:+e[2]),b}]};k.Animation=k.extend(J,{tweener:function(a,c){k.isFunction(a)?(c=a,a=["*"]):a=a.split(" ");for(var b,d=0,e=a.length;e>
d;d++)b=a[d],Ba[b]=Ba[b]||[],Ba[b].unshift(c)},prefilter:function(a,c){c?Fa.unshift(a):Fa.push(a)}});k.speed=function(a,c,b){var d=a&&"object"==typeof a?k.extend({},a):{complete:b||!b&&c||k.isFunction(a)&&a,duration:a,easing:b&&c||c&&!k.isFunction(c)&&c};return d.duration=k.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in k.fx.speeds?k.fx.speeds[d.duration]:k.fx.speeds._default,(null==d.queue||!0===d.queue)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){k.isFunction(d.old)&&d.old.call(this);
d.queue&&k.dequeue(this,d.queue)},d};k.fn.extend({fadeTo:function(a,c,b,d){return this.filter(za).css("opacity",0).show().end().animate({opacity:c},a,b,d)},animate:function(a,c,b,d){var e=k.isEmptyObject(a),f=k.speed(c,b,d);c=function(){var c=J(this,k.extend({},a),f);(e||k._data(this,"finish"))&&c.stop(!0)};return c.finish=c,e||!1===f.queue?this.each(c):this.queue(f.queue,c)},stop:function(a,c,b){var d=function(a){var c=a.stop;delete a.stop;c(b)};return"string"!=typeof a&&(b=c,c=a,a=void 0),c&&!1!==
a&&this.queue(a||"fx",[]),this.each(function(){var c=!0,e=null!=a&&a+"queueHooks",f=k.timers,h=k._data(this);if(e)h[e]&&h[e].stop&&d(h[e]);else for(e in h)h[e]&&h[e].stop&&Zb.test(e)&&d(h[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(b),c=!1,f.splice(e,1));!c&&b||k.dequeue(this,a)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var c,b=k._data(this),d=b[a+"queue"];c=b[a+"queueHooks"];var e=k.timers,f=d?d.length:0;b.finish=!0;k.queue(this,a,
[]);c&&c.stop&&c.stop.call(this,!0);for(c=e.length;c--;)e[c].elem===this&&e[c].queue===a&&(e[c].anim.stop(!0),e.splice(c,1));for(c=0;f>c;c++)d[c]&&d[c].finish&&d[c].finish.call(this);delete b.finish})}});k.each(["toggle","show","hide"],function(a,c){var b=k.fn[c];k.fn[c]=function(a,d,e){return null==a||"boolean"==typeof a?b.apply(this,arguments):this.animate(W(c,!0),a,d,e)}});k.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},
function(a,c){k.fn[a]=function(a,b,d){return this.animate(c,a,b,d)}});k.timers=[];k.fx.tick=function(){var a,c=k.timers,b=0;for(ta=k.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||k.fx.stop();ta=void 0};k.fx.timer=function(a){k.timers.push(a);a()?k.fx.start():k.timers.pop()};k.fx.interval=13;k.fx.start=function(){Ja||(Ja=setInterval(k.fx.tick,k.fx.interval))};k.fx.stop=function(){clearInterval(Ja);Ja=null};k.fx.speeds={slow:600,fast:200,_default:400};k.fn.delay=function(a,c){return a=
k.fx?k.fx.speeds[a]||a:a,c=c||"fx",this.queue(c,function(c,b){var d=setTimeout(c,a);b.stop=function(){clearTimeout(d)}})};(function(){var a,c,b,d,e;c=I.createElement("div");c.setAttribute("className","t");c.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";d=c.getElementsByTagName("a")[0];b=I.createElement("select");e=b.appendChild(I.createElement("option"));a=c.getElementsByTagName("input")[0];d.style.cssText="top:1px";E.getSetAttribute="t"!==c.className;E.style=/top/.test(d.getAttribute("style"));
E.hrefNormalized="/a"===d.getAttribute("href");E.checkOn=!!a.value;E.optSelected=e.selected;E.enctype=!!I.createElement("form").enctype;b.disabled=!0;E.optDisabled=!e.disabled;a=I.createElement("input");a.setAttribute("value","");E.input=""===a.getAttribute("value");a.value="t";a.setAttribute("type","radio");E.radioValue="t"===a.value})();var $b=/\r/g;k.fn.extend({val:function(a){var c,b,d,e=this[0];if(arguments.length)return d=k.isFunction(a),this.each(function(b){var e;1===this.nodeType&&(e=d?a.call(this,
b,k(this).val()):a,null==e?e="":"number"==typeof e?e+="":k.isArray(e)&&(e=k.map(e,function(a){return null==a?"":a+""})),c=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()],c&&"set"in c&&void 0!==c.set(this,e,"value")||(this.value=e))});if(e)return c=k.valHooks[e.type]||k.valHooks[e.nodeName.toLowerCase()],c&&"get"in c&&void 0!==(b=c.get(e,"value"))?b:(b=e.value,"string"==typeof b?b.replace($b,""):null==b?"":b)}});k.extend({valHooks:{option:{get:function(a){var c=k.find.attr(a,"value");
return null!=c?c:k.trim(k.text(a))}},select:{get:function(a){for(var c,b=a.options,d=a.selectedIndex,e="select-one"===a.type||0>d,f=e?null:[],h=e?d+1:b.length,g=0>d?h:e?d:0;h>g;g++)if(c=b[g],!(!c.selected&&g!==d||(E.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&k.nodeName(c.parentNode,"optgroup"))){if(a=k(c).val(),e)return a;f.push(a)}return f},set:function(a,c){for(var b,d,e=a.options,f=k.makeArray(c),h=e.length;h--;)if(d=e[h],0<=k.inArray(k.valHooks.option.get(d),
f))try{d.selected=b=!0}catch(g){d.scrollHeight}else d.selected=!1;return b||(a.selectedIndex=-1),e}}}});k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(a,c){return k.isArray(c)?a.checked=0<=k.inArray(k(a).val(),c):void 0}};E.checkOn||(k.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var na,qb,ma=k.expr.attrHandle,Va=/^(?:checked|selected)$/i,ra=E.getSetAttribute,Ka=E.input;k.fn.extend({attr:function(a,c){return qa(this,k.attr,a,c,1<arguments.length)},
removeAttr:function(a){return this.each(function(){k.removeAttr(this,a)})}});k.extend({attr:function(a,c,b){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===da?k.prop(a,c,b):(1===f&&k.isXMLDoc(a)||(c=c.toLowerCase(),d=k.attrHooks[c]||(k.expr.match.bool.test(c)?qb:na)),void 0===b?d&&"get"in d&&null!==(e=d.get(a,c))?e:(e=k.find.attr(a,c),null==e?void 0:e):null!==b?d&&"set"in d&&void 0!==(e=d.set(a,b,c))?e:(a.setAttribute(c,b+""),b):void k.removeAttr(a,c))},removeAttr:function(a,
c){var b,d,e=0,f=c&&c.match(ga);if(f&&1===a.nodeType)for(;b=f[e++];)d=k.propFix[b]||b,k.expr.match.bool.test(b)?Ka&&ra||!Va.test(b)?a[d]=!1:a[k.camelCase("default-"+b)]=a[d]=!1:k.attr(a,b,""),a.removeAttribute(ra?b:d)},attrHooks:{type:{set:function(a,c){if(!E.radioValue&&"radio"===c&&k.nodeName(a,"input")){var b=a.value;return a.setAttribute("type",c),b&&(a.value=b),c}}}}});qb={set:function(a,c,b){return!1===c?k.removeAttr(a,b):Ka&&ra||!Va.test(b)?a.setAttribute(!ra&&k.propFix[b]||b,b):a[k.camelCase("default-"+
b)]=a[b]=!0,b}};k.each(k.expr.match.bool.source.match(/\w+/g),function(a,c){var b=ma[c]||k.find.attr;ma[c]=Ka&&ra||!Va.test(c)?function(a,c,d){var e,f;return d||(f=ma[c],ma[c]=e,e=null!=b(a,c,d)?c.toLowerCase():null,ma[c]=f),e}:function(a,c,b){return b?void 0:a[k.camelCase("default-"+c)]?c.toLowerCase():null}});Ka&&ra||(k.attrHooks.value={set:function(a,c,b){return k.nodeName(a,"input")?void(a.defaultValue=c):na&&na.set(a,c,b)}});ra||(na={set:function(a,c,b){var d=a.getAttributeNode(b);return d||
a.setAttributeNode(d=a.ownerDocument.createAttribute(b)),d.value=c+="","value"===b||c===a.getAttribute(b)?c:void 0}},ma.id=ma.name=ma.coords=function(a,c,b){var d;return b?void 0:(d=a.getAttributeNode(c))&&""!==d.value?d.value:null},k.valHooks.button={get:function(a,c){var b=a.getAttributeNode(c);return b&&b.specified?b.value:void 0},set:na.set},k.attrHooks.contenteditable={set:function(a,c,b){na.set(a,""===c?!1:c,b)}},k.each(["width","height"],function(a,c){k.attrHooks[c]={set:function(a,b){return""===
b?(a.setAttribute(c,"auto"),b):void 0}}}));E.style||(k.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,c){return a.style.cssText=c+""}});var ac=/^(?:input|select|textarea|button|object)$/i,bc=/^(?:a|area)$/i;k.fn.extend({prop:function(a,c){return qa(this,k.prop,a,c,1<arguments.length)},removeProp:function(a){return a=k.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(c){}})}});k.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,
c,b){var d,e,f,h=a.nodeType;if(a&&3!==h&&8!==h&&2!==h)return f=1!==h||!k.isXMLDoc(a),f&&(c=k.propFix[c]||c,e=k.propHooks[c]),void 0!==b?e&&"set"in e&&void 0!==(d=e.set(a,b,c))?d:a[c]=b:e&&"get"in e&&null!==(d=e.get(a,c))?d:a[c]},propHooks:{tabIndex:{get:function(a){var c=k.find.attr(a,"tabindex");return c?parseInt(c,10):ac.test(a.nodeName)||bc.test(a.nodeName)&&a.href?0:-1}}}});E.hrefNormalized||k.each(["href","src"],function(a,c){k.propHooks[c]={get:function(a){return a.getAttribute(c,4)}}});E.optSelected||
(k.propHooks.selected={get:function(a){a=a.parentNode;return a&&(a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex),null}});k.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),function(){k.propFix[this.toLowerCase()]=this});E.enctype||(k.propFix.enctype="encoding");var Wa=/[\t\r\n\f]/g;k.fn.extend({addClass:function(a){var c,b,d,e,f,h=0,g=this.length;c="string"==typeof a&&a;if(k.isFunction(a))return this.each(function(c){k(this).addClass(a.call(this,
c,this.className))});if(c)for(c=(a||"").match(ga)||[];g>h;h++)if(b=this[h],d=1===b.nodeType&&(b.className?(" "+b.className+" ").replace(Wa," "):" ")){for(f=0;e=c[f++];)0>d.indexOf(" "+e+" ")&&(d+=e+" ");d=k.trim(d);b.className!==d&&(b.className=d)}return this},removeClass:function(a){var c,b,d,e,f,h=0,g=this.length;c=0===arguments.length||"string"==typeof a&&a;if(k.isFunction(a))return this.each(function(c){k(this).removeClass(a.call(this,c,this.className))});if(c)for(c=(a||"").match(ga)||[];g>h;h++)if(b=
this[h],d=1===b.nodeType&&(b.className?(" "+b.className+" ").replace(Wa," "):"")){for(f=0;e=c[f++];)for(;0<=d.indexOf(" "+e+" ");)d=d.replace(" "+e+" "," ");d=a?k.trim(d):"";b.className!==d&&(b.className=d)}return this},toggleClass:function(a,c){var b=typeof a;return"boolean"==typeof c&&"string"===b?c?this.addClass(a):this.removeClass(a):this.each(k.isFunction(a)?function(b){k(this).toggleClass(a.call(this,b,this.className,c),c)}:function(){if("string"===b)for(var c,d=0,e=k(this),f=a.match(ga)||[];c=
f[d++];)e.hasClass(c)?e.removeClass(c):e.addClass(c);else(b===da||"boolean"===b)&&(this.className&&k._data(this,"__className__",this.className),this.className=this.className||!1===a?"":k._data(this,"__className__")||"")})},hasClass:function(a){a=" "+a+" ";for(var c=0,b=this.length;b>c;c++)if(1===this[c].nodeType&&0<=(" "+this[c].className+" ").replace(Wa," ").indexOf(a))return!0;return!1}});k.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),
function(a,c){k.fn[c]=function(a,b){return 0<arguments.length?this.on(c,null,a,b):this.trigger(c)}});k.fn.extend({hover:function(a,c){return this.mouseenter(a).mouseleave(c||a)},bind:function(a,c,b){return this.on(a,null,c,b)},unbind:function(a,c){return this.off(a,null,c)},delegate:function(a,c,b,d){return this.on(c,a,b,d)},undelegate:function(a,c,b){return 1===arguments.length?this.off(a,"**"):this.off(c,a||"**",b)}});var Xa=k.now(),Ya=/\?/,cc=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
k.parseJSON=function(c){if(a.JSON&&a.JSON.parse)return a.JSON.parse(c+"");var b,d=null,e=k.trim(c+"");return e&&!k.trim(e.replace(cc,function(a,c,e,f){return b&&c&&(d=0),0===d?a:(b=e||c,d+=!f-!e,"")}))?Function("return "+e)():k.error("Invalid JSON: "+c)};k.parseXML=function(c){var b,d;if(!c||"string"!=typeof c)return null;try{a.DOMParser?(d=new DOMParser,b=d.parseFromString(c,"text/xml")):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(c))}catch(e){b=void 0}return b&&b.documentElement&&
!b.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+c),b};var ja,ka,dc=/#.*$/,rb=/([?&])_=[^&]*/,ec=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,fc=/^(?:GET|HEAD)$/,gc=/^\/\//,sb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,tb={},Oa={},ub="*/".concat("*");try{ka=location.href}catch(nc){ka=I.createElement("a"),ka.href="",ka=ka.href}ja=sb.exec(ka.toLowerCase())||[];k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ka,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ja[1]),
global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ub,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":k.parseJSON,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,c){return c?G(G(a,
k.ajaxSettings),c):G(k.ajaxSettings,a)},ajaxPrefilter:P(tb),ajaxTransport:P(Oa),ajax:function(a,c){function b(a,c,d,e){var n,r,K,m,J=c;if(2!==v){v=2;g&&clearTimeout(g);p=void 0;h=e||"";H.readyState=0<a?4:0;e=200<=a&&300>a||304===a;if(d){K=q;for(var F=H,s,Z,A,D,u=K.contents,P=K.dataTypes;"*"===P[0];)P.shift(),void 0===Z&&(Z=K.mimeType||F.getResponseHeader("Content-Type"));if(Z)for(D in u)if(u[D]&&u[D].test(Z)){P.unshift(D);break}if(P[0]in d)A=P[0];else{for(D in d){if(!P[0]||K.converters[D+" "+P[0]]){A=
D;break}s||(s=D)}A=A||s}K=A?(A!==P[0]&&P.unshift(A),d[A]):void 0}var B;a:{d=q;s=K;Z=H;A=e;var O,N,G;K={};F=d.dataTypes.slice();if(F[1])for(O in d.converters)K[O.toLowerCase()]=d.converters[O];for(D=F.shift();D;)if(d.responseFields[D]&&(Z[d.responseFields[D]]=s),!G&&A&&d.dataFilter&&(s=d.dataFilter(s,d.dataType)),G=D,D=F.shift())if("*"===D)D=G;else if("*"!==G&&G!==D){if(O=K[G+" "+D]||K["* "+D],!O)for(B in K)if(N=B.split(" "),N[1]===D&&(O=K[G+" "+N[0]]||K["* "+N[0]])){!0===O?O=K[B]:!0!==K[B]&&(D=N[0],
F.unshift(N[1]));break}if(!0!==O)if(O&&d["throws"])s=O(s);else try{s=O(s)}catch(U){B={state:"parsererror",error:O?U:"No conversion from "+G+" to "+D};break a}}B={state:"success",data:s}}K=B;e?(q.ifModified&&(m=H.getResponseHeader("Last-Modified"),m&&(k.lastModified[f]=m),m=H.getResponseHeader("etag"),m&&(k.etag[f]=m)),204===a||"HEAD"===q.type?J="nocontent":304===a?J="notmodified":(J=K.state,n=K.data,r=K.error,e=!r)):(r=J,(a||!J)&&(J="error",0>a&&(a=0)));H.status=a;H.statusText=(c||J)+"";e?y.resolveWith(x,
[n,J,H]):y.rejectWith(x,[H,J,r]);H.statusCode(t);t=void 0;l&&C.trigger(e?"ajaxSuccess":"ajaxError",[H,q,e?n:r]);z.fireWith(x,[H,J]);l&&(C.trigger("ajaxComplete",[H,q]),--k.active||k.event.trigger("ajaxStop"))}}"object"==typeof a&&(c=a,a=void 0);c=c||{};var d,e,f,h,g,l,p,n,q=k.ajaxSetup({},c),x=q.context||q,C=q.context&&(x.nodeType||x.jquery)?k(x):k.event,y=k.Deferred(),z=k.Callbacks("once memory"),t=q.statusCode||{},r={},K={},v=0,m="canceled",H={readyState:0,getResponseHeader:function(a){var c;if(2===
v){if(!n)for(n={};c=ec.exec(h);)n[c[1].toLowerCase()]=c[2];c=n[a.toLowerCase()]}return null==c?null:c},getAllResponseHeaders:function(){return 2===v?h:null},setRequestHeader:function(a,c){var b=a.toLowerCase();return v||(a=K[b]=K[b]||a,r[a]=c),this},overrideMimeType:function(a){return v||(q.mimeType=a),this},statusCode:function(a){var c;if(a)if(2>v)for(c in a)t[c]=[t[c],a[c]];else H.always(a[H.status]);return this},abort:function(a){a=a||m;return p&&p.abort(a),b(0,a),this}};if(y.promise(H).complete=
z.add,H.success=H.done,H.error=H.fail,q.url=((a||q.url||ka)+"").replace(dc,"").replace(gc,ja[1]+"//"),q.type=c.method||c.type||q.method||q.type,q.dataTypes=k.trim(q.dataType||"*").toLowerCase().match(ga)||[""],null==q.crossDomain&&(d=sb.exec(q.url.toLowerCase()),q.crossDomain=!(!d||d[1]===ja[1]&&d[2]===ja[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(ja[3]||("http:"===ja[1]?"80":"443")))),q.data&&q.processData&&"string"!=typeof q.data&&(q.data=k.param(q.data,q.traditional)),M(tb,q,c,H),2===v)return H;
(l=q.global)&&0===k.active++&&k.event.trigger("ajaxStart");q.type=q.type.toUpperCase();q.hasContent=!fc.test(q.type);f=q.url;q.hasContent||(q.data&&(f=q.url+=(Ya.test(f)?"&":"?")+q.data,delete q.data),!1===q.cache&&(q.url=rb.test(f)?f.replace(rb,"$1_="+Xa++):f+(Ya.test(f)?"&":"?")+"_="+Xa++));q.ifModified&&(k.lastModified[f]&&H.setRequestHeader("If-Modified-Since",k.lastModified[f]),k.etag[f]&&H.setRequestHeader("If-None-Match",k.etag[f]));(q.data&&q.hasContent&&!1!==q.contentType||c.contentType)&&
H.setRequestHeader("Content-Type",q.contentType);H.setRequestHeader("Accept",q.dataTypes[0]&&q.accepts[q.dataTypes[0]]?q.accepts[q.dataTypes[0]]+("*"!==q.dataTypes[0]?", "+ub+"; q=0.01":""):q.accepts["*"]);for(e in q.headers)H.setRequestHeader(e,q.headers[e]);if(q.beforeSend&&(!1===q.beforeSend.call(x,H,q)||2===v))return H.abort();m="abort";for(e in{success:1,error:1,complete:1})H[e](q[e]);if(p=M(Oa,q,c,H)){H.readyState=1;l&&C.trigger("ajaxSend",[H,q]);q.async&&0<q.timeout&&(g=setTimeout(function(){H.abort("timeout")},
q.timeout));try{v=1,p.send(r,b)}catch(J){if(!(2>v))throw J;b(-1,J)}}else b(-1,"No Transport");return H},getJSON:function(a,c,b){return k.get(a,c,b,"json")},getScript:function(a,c){return k.get(a,void 0,c,"script")}});k.each(["get","post"],function(a,c){k[c]=function(a,b,d,e){return k.isFunction(b)&&(e=e||d,d=b,b=void 0),k.ajax({url:a,type:c,dataType:e,data:b,success:d})}});k.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,c){k.fn[c]=function(a){return this.on(c,
a)}});k._evalUrl=function(a){return k.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})};k.fn.extend({wrapAll:function(a){if(k.isFunction(a))return this.each(function(c){k(this).wrapAll(a.call(this,c))});if(this[0]){var c=k(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(k.isFunction(a)?
function(c){k(this).wrapInner(a.call(this,c))}:function(){var c=k(this),b=c.contents();b.length?b.wrapAll(a):c.append(a)})},wrap:function(a){var c=k.isFunction(a);return this.each(function(b){k(this).wrapAll(c?a.call(this,b):a)})},unwrap:function(){return this.parent().each(function(){k.nodeName(this,"body")||k(this).replaceWith(this.childNodes)}).end()}});k.expr.filters.hidden=function(a){return 0>=a.offsetWidth&&0>=a.offsetHeight||!E.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||
k.css(a,"display"))};k.expr.filters.visible=function(a){return!k.expr.filters.hidden(a)};var hc=/%20/g,Fb=/\[\]$/,vb=/\r?\n/g,ic=/^(?:submit|button|image|reset|file)$/i,jc=/^(?:input|select|textarea|keygen)/i;k.param=function(a,c){var b,d=[],e=function(a,c){c=k.isFunction(c)?c():null==c?"":c;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(c)};if(void 0===c&&(c=k.ajaxSettings&&k.ajaxSettings.traditional),k.isArray(a)||a.jquery&&!k.isPlainObject(a))k.each(a,function(){e(this.name,this.value)});
else for(b in a)Z(b,a[b],c,e);return d.join("&").replace(hc,"+")};k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=k.prop(this,"elements");return a?k.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!k(this).is(":disabled")&&jc.test(this.nodeName)&&!ic.test(a)&&(this.checked||!Na.test(a))}).map(function(a,c){var b=k(this).val();return null==b?null:k.isArray(b)?k.map(b,function(a){return{name:c.name,
value:a.replace(vb,"\r\n")}}):{name:c.name,value:b.replace(vb,"\r\n")}}).get()}});k.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){var c;if(!(c=!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&U()))a:{try{c=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}c=void 0}return c}:U;var kc=0,La={},Ma=k.ajaxSettings.xhr();a.ActiveXObject&&k(a).on("unload",function(){for(var a in La)La[a](void 0,!0)});E.cors=!!Ma&&"withCredentials"in Ma;(Ma=E.ajax=!!Ma)&&k.ajaxTransport(function(a){if(!a.crossDomain||
E.cors){var c;return{send:function(b,d){var e,f=a.xhr(),h=++kc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType);a.crossDomain||b["X-Requested-With"]||(b["X-Requested-With"]="XMLHttpRequest");for(e in b)void 0!==b[e]&&f.setRequestHeader(e,b[e]+"");f.send(a.hasContent&&a.data||null);c=function(b,e){var g,l,p;if(c&&(e||4===f.readyState))if(delete La[h],c=void 0,f.onreadystatechange=
k.noop,e)4!==f.readyState&&f.abort();else{p={};g=f.status;"string"==typeof f.responseText&&(p.text=f.responseText);try{l=f.statusText}catch(n){l=""}g||!a.isLocal||a.crossDomain?1223===g&&(g=204):g=p.text?200:404}p&&d(g,l,p,f.getAllResponseHeaders())};a.async?4===f.readyState?setTimeout(c):f.onreadystatechange=La[h]=c:c()},abort:function(){c&&c(void 0,!0)}}}});k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},
converters:{"text script":function(a){return k.globalEval(a),a}}});k.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});k.ajaxTransport("script",function(a){if(a.crossDomain){var c,b=I.head||k("head")[0]||I.documentElement;return{send:function(d,e){c=I.createElement("script");c.async=!0;a.scriptCharset&&(c.charset=a.scriptCharset);c.src=a.url;c.onload=c.onreadystatechange=function(a,b){(b||!c.readyState||/loaded|complete/.test(c.readyState))&&
(c.onload=c.onreadystatechange=null,c.parentNode&&c.parentNode.removeChild(c),c=null,b||e(200,"success"))};b.insertBefore(c,b.firstChild)},abort:function(){c&&c.onload(void 0,!0)}}}});var wb=[],Za=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=wb.pop()||k.expando+"_"+Xa++;return this[a]=!0,a}});k.ajaxPrefilter("json jsonp",function(c,b,d){var e,f,h,g=!1!==c.jsonp&&(Za.test(c.url)?"url":"string"==typeof c.data&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&
Za.test(c.data)&&"data");return g||"jsonp"===c.dataTypes[0]?(e=c.jsonpCallback=k.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g?c[g]=c[g].replace(Za,"$1"+e):!1!==c.jsonp&&(c.url+=(Ya.test(c.url)?"&":"?")+c.jsonp+"="+e),c.converters["script json"]=function(){return h||k.error(e+" was not called"),h[0]},c.dataTypes[0]="json",f=a[e],a[e]=function(){h=arguments},d.always(function(){a[e]=f;c[e]&&(c.jsonpCallback=b.jsonpCallback,wb.push(e));h&&k.isFunction(f)&&f(h[0]);h=f=void 0}),"script"):
void 0});k.parseHTML=function(a,c,b){if(!a||"string"!=typeof a)return null;"boolean"==typeof c&&(b=c,c=!1);c=c||I;var d=eb.exec(a);b=!b&&[];return d?[c.createElement(d[1])]:(d=k.buildFragment([a],c,b),b&&b.length&&k(b).remove(),k.merge([],d.childNodes))};var xb=k.fn.load;k.fn.load=function(a,c,b){if("string"!=typeof a&&xb)return xb.apply(this,arguments);var d,e,f,h=this,g=a.indexOf(" ");return 0<=g&&(d=k.trim(a.slice(g,a.length)),a=a.slice(0,g)),k.isFunction(c)?(b=c,c=void 0):c&&"object"==typeof c&&
(f="POST"),0<h.length&&k.ajax({url:a,type:f,dataType:"html",data:c}).done(function(a){e=arguments;h.html(d?k("<div>").append(k.parseHTML(a)).find(d):a)}).complete(b&&function(a,c){h.each(b,e||[a.responseText,c,a])}),this};k.expr.filters.animated=function(a){return k.grep(k.timers,function(c){return a===c.elem}).length};var yb=a.document.documentElement;k.offset={setOffset:function(a,c,b){var d,e,f,h,g,l,p=k.css(a,"position"),n=k(a),q={};"static"===p&&(a.style.position="relative");g=n.offset();f=k.css(a,
"top");l=k.css(a,"left");("absolute"===p||"fixed"===p)&&-1<k.inArray("auto",[f,l])?(d=n.position(),h=d.top,e=d.left):(h=parseFloat(f)||0,e=parseFloat(l)||0);k.isFunction(c)&&(c=c.call(a,b,g));null!=c.top&&(q.top=c.top-g.top+h);null!=c.left&&(q.left=c.left-g.left+e);"using"in c?c.using.call(a,q):n.css(q)}};k.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(c){k.offset.setOffset(this,a,c)});var c,b,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return c=
f.documentElement,k.contains(c,e)?(typeof e.getBoundingClientRect!==da&&(d=e.getBoundingClientRect()),b=R(f),{top:d.top+(b.pageYOffset||c.scrollTop)-(c.clientTop||0),left:d.left+(b.pageXOffset||c.scrollLeft)-(c.clientLeft||0)}):d},position:function(){if(this[0]){var a,c,b={top:0,left:0},d=this[0];return"fixed"===k.css(d,"position")?c=d.getBoundingClientRect():(a=this.offsetParent(),c=this.offset(),k.nodeName(a[0],"html")||(b=a.offset()),b.top+=k.css(a[0],"borderTopWidth",!0),b.left+=k.css(a[0],"borderLeftWidth",
!0)),{top:c.top-b.top-k.css(d,"marginTop",!0),left:c.left-b.left-k.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||yb;a&&!k.nodeName(a,"html")&&"static"===k.css(a,"position");)a=a.offsetParent;return a||yb})}});k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var b=/Y/.test(c);k.fn[a]=function(d){return qa(this,function(a,d,e){var f=R(a);return void 0===e?f?c in f?f[c]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(b?
k(f).scrollLeft():e,b?e:k(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}});k.each(["top","left"],function(a,c){k.cssHooks[c]=K(E.pixelPosition,function(a,b){return b?(b=pa(a,c),Ea.test(b)?k(a).position()[c]+"px":b):void 0})});k.each({Height:"height",Width:"width"},function(a,c){k.each({padding:"inner"+a,content:c,"":"outer"+a},function(b,d){k.fn[d]=function(d,e){var f=arguments.length&&(b||"boolean"!=typeof d),h=b||(!0===d||!0===e?"margin":"border");return qa(this,function(c,b,d){var e;return k.isWindow(c)?
c.document.documentElement["client"+a]:9===c.nodeType?(e=c.documentElement,Math.max(c.body["scroll"+a],e["scroll"+a],c.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?k.css(c,b,h):k.style(c,b,d,h)},c,f?d:void 0,f,null)}})});k.fn.size=function(){return this.length};k.fn.andSelf=k.fn.addBack;"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var lc=a.jQuery,mc=a.$;return k.noConflict=function(c){return a.$===k&&(a.$=mc),c&&a.jQuery===k&&(a.jQuery=lc),k},typeof m===
da&&(a.jQuery=a.$=k),k});(function(a,m){function f(b,c){var d,e;d=b.nodeName.toLowerCase();if("area"===d){d=b.parentNode;e=d.name;if(!b.href||!e||"map"!==d.nodeName.toLowerCase())return!1;d=a("img[usemap=#"+e+"]")[0];return!!d&&g(d)}return(/input|select|textarea|button|object/.test(d)?!b.disabled:"a"===d?b.href||c:c)&&g(b)}function g(b){return a.expr.filters.visible(b)&&!a(b).parents().andSelf().filter(function(){return"hidden"===a.css(this,"visibility")}).length}var e=0,d=/^ui-id-\d+$/;a.ui=a.ui||{};a.ui.version||(a.extend(a.ui,
{version:"1.9.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({_focus:a.fn.focus,focus:function(b,c){return"number"===typeof b?this.each(function(){var d=this;setTimeout(function(){a(d).focus();c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;
b=a.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.css(this,"position"))&&/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):
b},zIndex:function(b){if(b!==m)return this.css("zIndex",b);if(this.length){b=a(this[0]);for(var c;b.length&&b[0]!==document;){c=b.css("position");if("absolute"===c||"relative"===c||"fixed"===c)if(c=parseInt(b.css("zIndex"),10),!isNaN(c)&&0!==c)return c;b=b.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})},removeUniqueId:function(){return this.each(function(){d.test(this.id)&&a(this).removeAttr("id")})}}),a("<a>").outerWidth(1).jquery||a.each(["Width",
"Height"],function(b,c){function d(c,b,f,h){a.each(e,function(){b-=parseFloat(a.css(c,"padding"+this))||0;f&&(b-=parseFloat(a.css(c,"border"+this+"Width"))||0);h&&(b-=parseFloat(a.css(c,"margin"+this))||0)});return b}var e="Width"===c?["Left","Right"]:["Top","Bottom"],f=c.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+c]=function(b){return b===m?g["inner"+c].call(this):this.each(function(){a(this).css(f,
d(this,b)+"px")})};a.fn["outer"+c]=function(b,e){return"number"!==typeof b?g["outer"+c].call(this,b):this.each(function(){a(this).css(f,d(this,b,!0,e)+"px")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return f(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var c=a.attr(b,"tabindex"),d=isNaN(c);return(d||0<=c)&&f(b,!d)}}),a(function(){var b=document.body,
c=b.appendChild(c=document.createElement("div"));c.offsetHeight;a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=100===c.offsetHeight;a.support.selectstart="onselectstart"in c;b.removeChild(c).style.display="none"}),function(){var b=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];a.ui.ie=b.length?!0:!1;a.ui.ie6=6===parseFloat(b[1],10)}(),a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+
".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.extend(a.ui,{plugin:{add:function(b,c,d){var e;b=a.ui[b].prototype;for(e in d)b.plugins[e]=b.plugins[e]||[],b.plugins[e].push([c,d[e]])},call:function(a,c,d){var e=a.plugins[c];if(e&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(c=0;c<e.length;c++)a.options[e[c][0]]&&e[c][1].apply(a.element,d)}},contains:a.contains,hasScroll:function(b,c){if("hidden"===
a(b).css("overflow"))return!1;var d=c&&"left"===c?"scrollLeft":"scrollTop",e=!1;if(0<b[d])return!0;b[d]=1;e=0<b[d];b[d]=0;return e},isOverAxis:function(a,c,d){return a>c&&a<c+d},isOver:function(b,c,d,e,f,g){return a.ui.isOverAxis(b,d,f)&&a.ui.isOverAxis(c,e,g)}}))})(jQuery);
(function(a,m){var f=0,g=Array.prototype.slice,e=a.cleanData;a.cleanData=function(d){for(var b=0,c;null!=(c=d[b]);b++)try{a(c).triggerHandler("remove")}catch(f){}e(d)};a.widget=function(d,b,c){var e,f,g,q,t=d.split(".")[0];d=d.split(".")[1];e=t+"-"+d;c||(c=b,b=a.Widget);a.expr[":"][e.toLowerCase()]=function(c){return!!a.data(c,e)};a[t]=a[t]||{};f=a[t][d];g=a[t][d]=function(a,c){if(!this._createWidget)return new g(a,c);arguments.length&&this._createWidget(a,c)};a.extend(g,f,{version:c.version,_proto:a.extend({},
c),_childConstructors:[]});q=new b;q.options=a.widget.extend({},q.options);a.each(c,function(d,e){a.isFunction(e)&&(c[d]=function(){var a=function(){return b.prototype[d].apply(this,arguments)},c=function(a){return b.prototype[d].apply(this,a)};return function(){var b=this._super,d=this._superApply,f;this._super=a;this._superApply=c;f=e.apply(this,arguments);this._super=b;this._superApply=d;return f}}())});g.prototype=a.widget.extend(q,{widgetEventPrefix:q.widgetEventPrefix||d},c,{constructor:g,namespace:t,
widgetName:d,widgetBaseClass:e,widgetFullName:e});f?(a.each(f._childConstructors,function(c,b){var d=b.prototype;a.widget(d.namespace+"."+d.widgetName,g,b._proto)}),delete f._childConstructors):b._childConstructors.push(g);a.widget.bridge(d,g)};a.widget.extend=function(d){for(var b=g.call(arguments,1),c=0,e=b.length,f,n;c<e;c++)for(f in b[c])n=b[c][f],b[c].hasOwnProperty(f)&&n!==m&&(a.isPlainObject(n)?d[f]=a.isPlainObject(d[f])?a.widget.extend({},d[f],n):a.widget.extend({},n):d[f]=n);return d};a.widget.bridge=
function(d,b){var c=b.prototype.widgetFullName;a.fn[d]=function(e){var f="string"===typeof e,n=g.call(arguments,1),q=this;e=!f&&n.length?a.widget.extend.apply(null,[e].concat(n)):e;f?this.each(function(){var b,f=a.data(this,c);if(!f)return a.error("cannot call methods on "+d+" prior to initialization; attempted to call method '"+e+"'");if(!a.isFunction(f[e])||"_"===e.charAt(0))return a.error("no such method '"+e+"' for "+d+" widget instance");b=f[e].apply(f,n);if(b!==f&&b!==m)return q=b&&b.jquery?
q.pushStack(b.get()):b,!1}):this.each(function(){var d=a.data(this,c);d?d.option(e||{})._init():new b(e,this)});return q}};a.Widget=function(){};a.Widget._childConstructors=[];a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(d,b){b=a(b||this.defaultElement||this)[0];this.element=a(b);this.uuid=f++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=a.widget.extend({},this.options,this._getCreateOptions(),
d);this.bindings=a();this.hoverable=a();this.focusable=a();b!==this&&(a.data(b,this.widgetName,this),a.data(b,this.widgetFullName,this),this._on(this.element,{remove:function(a){a.target===b&&this.destroy()}}),this.document=a(b.style?b.ownerDocument:b.document||b),this.window=a(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,
destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:a.noop,widget:function(){return this.element},
option:function(d,b){var c=d,e,f,g;if(0===arguments.length)return a.widget.extend({},this.options);if("string"===typeof d)if(c={},e=d.split("."),d=e.shift(),e.length){f=c[d]=a.widget.extend({},this.options[d]);for(g=0;g<e.length-1;g++)f[e[g]]=f[e[g]]||{},f=f[e[g]];d=e.pop();if(b===m)return f[d]===m?null:f[d];f[d]=b}else{if(b===m)return this.options[d]===m?null:this.options[d];c[d]=b}this._setOptions(c);return this},_setOptions:function(a){for(var b in a)this._setOption(b,a[b]);return this},_setOption:function(a,
b){this.options[a]=b;"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!b).attr("aria-disabled",b),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"));return this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(d,b){var c,e=this;b?(d=c=a(d),this.bindings=this.bindings.add(d)):(b=d,d=this.element,c=this.widget());a.each(b,function(b,f){function g(){if(!0!==
e.options.disabled&&!a(this).hasClass("ui-state-disabled"))return("string"===typeof f?e[f]:f).apply(e,arguments)}"string"!==typeof f&&(g.guid=f.guid=f.guid||g.guid||a.guid++);var t=b.match(/^(\w+)\s*(.*)$/),z=t[1]+e.eventNamespace;(t=t[2])?c.delegate(t,z,g):d.bind(z,g)})},_off:function(a,b){b=(b||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;a.unbind(b).undelegate(b)},_delay:function(a,b){var c=this;return setTimeout(function(){return("string"===typeof a?c[a]:a).apply(c,arguments)},
b||0)},_hoverable:function(d){this.hoverable=this.hoverable.add(d);this._on(d,{mouseenter:function(b){a(b.currentTarget).addClass("ui-state-hover")},mouseleave:function(b){a(b.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(d){this.focusable=this.focusable.add(d);this._on(d,{focusin:function(b){a(b.currentTarget).addClass("ui-state-focus")},focusout:function(b){a(b.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(d,b,c){var e,f=this.options[d];c=c||{};b=a.Event(b);
b.type=(d===this.widgetEventPrefix?d:this.widgetEventPrefix+d).toLowerCase();b.target=this.element[0];if(d=b.originalEvent)for(e in d)e in b||(b[e]=d[e]);this.element.trigger(b,c);return!(a.isFunction(f)&&!1===f.apply(this.element[0],[b].concat(c))||b.isDefaultPrevented())}};a.each({show:"fadeIn",hide:"fadeOut"},function(d,b){a.Widget.prototype["_"+d]=function(c,e,f){"string"===typeof e&&(e={effect:e});var g,q=e?!0===e||"number"===typeof e?b:e.effect||b:d;e=e||{};"number"===typeof e&&(e={duration:e});
g=!a.isEmptyObject(e);e.complete=f;e.delay&&c.delay(e.delay);if(g&&a.effects&&(a.effects.effect[q]||!1!==a.uiBackCompat&&a.effects[q]))c[d](e);else if(q!==d&&c[q])c[q](e.duration,e.easing,f);else c.queue(function(b){a(this)[d]();f&&f.call(c[0]);b()})}});!1!==a.uiBackCompat&&(a.Widget.prototype._getCreateOptions=function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]})})(jQuery);
(function(a,m){var f=!1;a(document).mouseup(function(a){f=!1});a.widget("ui.mouse",{version:"1.9.1",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var f=this;this.element.bind("mousedown."+this.widgetName,function(a){return f._mouseDown(a)}).bind("click."+this.widgetName,function(e){if(!0===a.data(e.target,f.widgetName+".preventClickEvent"))return a.removeData(e.target,f.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1});this.started=
!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);this._mouseMoveDelegate&&a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(g){if(!f){this._mouseStarted&&this._mouseUp(g);this._mouseDownEvent=g;var e=this,d=1===g.which,b="string"===typeof this.options.cancel&&g.target.nodeName?a(g.target).closest(this.options.cancel).length:!1;if(!d||b||!this._mouseCapture(g))return!0;this.mouseDelayMet=
!this.options.delay;this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay));if(this._mouseDistanceMet(g)&&this._mouseDelayMet(g)&&(this._mouseStarted=!1!==this._mouseStart(g),!this._mouseStarted))return g.preventDefault(),!0;!0===a.data(g.target,this.widgetName+".preventClickEvent")&&a.removeData(g.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return e._mouseMove(a)};this._mouseUpDelegate=function(a){return e._mouseUp(a)};
a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);g.preventDefault();return f=!0}},_mouseMove:function(f){if(a.ui.ie&&!(9<=document.documentMode||f.button))return this._mouseUp(f);if(this._mouseStarted)return this._mouseDrag(f),f.preventDefault();this._mouseDistanceMet(f)&&this._mouseDelayMet(f)&&((this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,f))?this._mouseDrag(f):this._mouseUp(f));return!this._mouseStarted},
_mouseUp:function(f){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);this._mouseStarted&&(this._mouseStarted=!1,f.target===this._mouseDownEvent.target&&a.data(f.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(f));return!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(a){return this.mouseDelayMet},
_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return!0}})})(jQuery);
(function(a,m){a.widget("ui.draggable",a.ui.mouse,{version:"1.9.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){"original"!=this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||
(this.element[0].style.position="relative");this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(f){var g=this.options;if(this.helper||g.disabled||a(f.target).is(".ui-resizable-handle"))return!1;this.handle=this._getHandle(f);if(!this.handle)return!1;a(!0===
g.iframeFix?"iframe":g.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")});return!0},_mouseStart:function(f){var g=this.options;this.helper=this._createHelper(f);this.helper.addClass("ui-draggable-dragging");this._cacheHelperProportions();a.ui.ddmanager&&(a.ui.ddmanager.current=this);this._cacheMargins();
this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:f.pageX-this.offset.left,top:f.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(f);this.originalPageX=f.pageX;this.originalPageY=f.pageY;
g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt);g.containment&&this._setContainment();if(!1===this._trigger("start",f))return this._clear(),!1;this._cacheHelperProportions();a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,f);this._mouseDrag(f,!0);a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,f);return!0},_mouseDrag:function(f,g){this.position=this._generatePosition(f);this.positionAbs=this._convertPositionTo("absolute");if(!g){var e=this._uiHash();if(!1===this._trigger("drag",
f,e))return this._mouseUp({}),!1;this.position=e.position}this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px");this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px");a.ui.ddmanager&&a.ui.ddmanager.drag(this,f);return!1},_mouseStop:function(f){var g=!1;a.ui.ddmanager&&!this.options.dropBehaviour&&(g=a.ui.ddmanager.drop(this,f));this.dropped&&(g=this.dropped,this.dropped=!1);for(var e=this.element[0],d=!1;e&&(e=e.parentNode);)e==
document&&(d=!0);if(!d&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!g||"valid"==this.options.revert&&g||!0===this.options.revert||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,g)){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==b._trigger("stop",f)&&b._clear()})}else!1!==this._trigger("stop",f)&&this._clear();return!1},_mouseUp:function(f){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});
a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,f);return a.ui.mouse.prototype._mouseUp.call(this,f)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(f){var g=this.options.handle&&a(this.options.handle,this.element).length?!1:!0;a(this.options.handle,this.element).find("*").andSelf().each(function(){this==f.target&&(g=!0)});return g},_createHelper:function(f){var g=this.options;f=a.isFunction(g.helper)?a(g.helper.apply(this.element[0],
[f])):"clone"==g.helper?this.element.clone().removeAttr("id"):this.element;f.parents("body").length||f.appendTo("parent"==g.appendTo?this.element[0].parentNode:g.appendTo);f[0]==this.element[0]||/(fixed|absolute)/.test(f.css("position"))||f.css("position","absolute");return f},_adjustOffsetFromHelper:function(f){"string"==typeof f&&(f=f.split(" "));a.isArray(f)&&(f={left:+f[0],top:+f[1]||0});"left"in f&&(this.offset.click.left=f.left+this.margins.left);"right"in f&&(this.offset.click.left=this.helperProportions.width-
f.right+this.margins.left);"top"in f&&(this.offset.click.top=f.top+this.margins.top);"bottom"in f&&(this.offset.click.top=this.helperProportions.height-f.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var f=this.offsetParent.offset();"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(f.left+=this.scrollParent.scrollLeft(),f.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==
document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)f={top:0,left:0};return{top:f.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:f.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||
0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;"parent"==f.containment&&
(f.containment=this.helper[0].parentNode);if("document"==f.containment||"window"==f.containment)this.containment=["document"==f.containment?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==f.containment?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==f.containment?0:a(window).scrollLeft())+a("document"==f.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==f.containment?0:a(window).scrollTop())+
(a("document"==f.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(/^(document|window|parent)$/.test(f.containment)||f.containment.constructor==Array)f.containment.constructor==Array&&(this.containment=f.containment);else{var f=a(f.containment),g=f[0];if(g){f.offset();var e="hidden"!=a(g).css("overflow");this.containment=[(parseInt(a(g).css("borderLeftWidth"),10)||0)+(parseInt(a(g).css("paddingLeft"),10)||0),(parseInt(a(g).css("borderTopWidth"),
10)||0)+(parseInt(a(g).css("paddingTop"),10)||0),(e?Math.max(g.scrollWidth,g.offsetWidth):g.offsetWidth)-(parseInt(a(g).css("borderLeftWidth"),10)||0)-(parseInt(a(g).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(g.scrollHeight,g.offsetHeight):g.offsetHeight)-(parseInt(a(g).css("borderTopWidth"),10)||0)-(parseInt(a(g).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=f}}},
_convertPositionTo:function(f,g){g||(g=this.position);var e="absolute"==f?1:-1,d="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,b=/(html|body)/i.test(d[0].tagName);return{top:g.top+this.offset.relative.top*e+this.offset.parent.top*e-("fixed"==this.cssPosition?-this.scrollParent.scrollTop():b?0:d.scrollTop())*e,left:g.left+this.offset.relative.left*e+this.offset.parent.left*e-("fixed"==this.cssPosition?
-this.scrollParent.scrollLeft():b?0:d.scrollLeft())*e}},_generatePosition:function(f){var g=this.options,e="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,d=/(html|body)/i.test(e[0].tagName),b=f.pageX,c=f.pageY;if(this.originalPosition){var h;this.containment&&(this.relative_container?(h=this.relative_container.offset(),h=[this.containment[0]+h.left,this.containment[1]+h.top,this.containment[2]+
h.left,this.containment[3]+h.top]):h=this.containment,f.pageX-this.offset.click.left<h[0]&&(b=h[0]+this.offset.click.left),f.pageY-this.offset.click.top<h[1]&&(c=h[1]+this.offset.click.top),f.pageX-this.offset.click.left>h[2]&&(b=h[2]+this.offset.click.left),f.pageY-this.offset.click.top>h[3]&&(c=h[3]+this.offset.click.top));g.grid&&(c=g.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/g.grid[1])*g.grid[1]:this.originalPageY,c=h?c-this.offset.click.top<h[1]||c-this.offset.click.top>h[3]?
c-this.offset.click.top<h[1]?c+g.grid[1]:c-g.grid[1]:c:c,b=g.grid[0]?this.originalPageX+Math.round((b-this.originalPageX)/g.grid[0])*g.grid[0]:this.originalPageX,b=h?b-this.offset.click.left<h[0]||b-this.offset.click.left>h[2]?b-this.offset.click.left<h[0]?b+g.grid[0]:b-g.grid[0]:b:b)}return{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"==this.cssPosition?-this.scrollParent.scrollTop():d?0:e.scrollTop()),left:b-this.offset.click.left-this.offset.relative.left-
this.offset.parent.left+("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():d?0:e.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]==this.element[0]||this.cancelHelperRemoval||this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1},_trigger:function(f,g,e){e=e||this._uiHash();a.ui.plugin.call(this,f,[g,e]);"drag"==f&&(this.positionAbs=this._convertPositionTo("absolute"));return a.Widget.prototype._trigger.call(this,f,g,e)},plugins:{},
_uiHash:function(a){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.ui.plugin.add("draggable","connectToSortable",{start:function(f,g){var e=a(this).data("draggable"),d=e.options,b=a.extend({},g,{item:e.element});e.sortables=[];a(d.connectToSortable).each(function(){var c=a.data(this,"sortable");c&&!c.options.disabled&&(e.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",f,b))})},
stop:function(f,g){var e=a(this).data("draggable"),d=a.extend({},g,{item:e.element});a.each(e.sortables,function(){this.instance.isOver?(this.instance.isOver=0,e.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(f),this.instance.options.helper=this.instance.options._helper,"original"==e.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",
f,d))})},drag:function(f,g){var e=a(this).data("draggable"),d=this;a.each(e.sortables,function(b){var c=!1,h=this;this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;this.instance._intersectsWith(this.instance.containerCache)&&(c=!0,a.each(e.sortables,function(){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;this!=h&&this.instance._intersectsWith(this.instance.containerCache)&&
a.ui.contains(h.instance.element[0],this.instance.element[0])&&(c=!1);return c}));c?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=a(d).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return g.helper[0]},f.target=this.instance.currentItem[0],this.instance._mouseCapture(f,!0),this.instance._mouseStart(f,!0,!0),this.instance.offset.click.top=
e.offset.click.top,this.instance.offset.click.left=e.offset.click.left,this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top,e._trigger("toSortable",f),e.dropped=this.instance.element,e.currentItem=e.element,this.instance.fromOutside=e),this.instance.currentItem&&this.instance._mouseDrag(f)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=
!1,this.instance._trigger("out",f,this.instance._uiHash(this.instance)),this.instance._mouseStop(f,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),e._trigger("fromSortable",f),e.dropped=!1)})}});a.ui.plugin.add("draggable","cursor",{start:function(f,g){var e=a("body"),d=a(this).data("draggable").options;e.css("cursor")&&(d._cursor=e.css("cursor"));e.css("cursor",d.cursor)},stop:function(f,
g){var e=a(this).data("draggable").options;e._cursor&&a("body").css("cursor",e._cursor)}});a.ui.plugin.add("draggable","opacity",{start:function(f,g){var e=a(g.helper),d=a(this).data("draggable").options;e.css("opacity")&&(d._opacity=e.css("opacity"));e.css("opacity",d.opacity)},stop:function(f,g){var e=a(this).data("draggable").options;e._opacity&&a(g.helper).css("opacity",e._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(f,g){var e=a(this).data("draggable");e.scrollParent[0]!=
document&&"HTML"!=e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(f,g){var e=a(this).data("draggable"),d=e.options,b=!1;e.scrollParent[0]!=document&&"HTML"!=e.scrollParent[0].tagName?(d.axis&&"x"==d.axis||(e.overflowOffset.top+e.scrollParent[0].offsetHeight-f.pageY<d.scrollSensitivity?e.scrollParent[0].scrollTop=b=e.scrollParent[0].scrollTop+d.scrollSpeed:f.pageY-e.overflowOffset.top<d.scrollSensitivity&&(e.scrollParent[0].scrollTop=b=e.scrollParent[0].scrollTop-
d.scrollSpeed)),d.axis&&"y"==d.axis||(e.overflowOffset.left+e.scrollParent[0].offsetWidth-f.pageX<d.scrollSensitivity?e.scrollParent[0].scrollLeft=b=e.scrollParent[0].scrollLeft+d.scrollSpeed:f.pageX-e.overflowOffset.left<d.scrollSensitivity&&(e.scrollParent[0].scrollLeft=b=e.scrollParent[0].scrollLeft-d.scrollSpeed))):(d.axis&&"x"==d.axis||(f.pageY-a(document).scrollTop()<d.scrollSensitivity?b=a(document).scrollTop(a(document).scrollTop()-d.scrollSpeed):a(window).height()-(f.pageY-a(document).scrollTop())<
d.scrollSensitivity&&(b=a(document).scrollTop(a(document).scrollTop()+d.scrollSpeed))),d.axis&&"y"==d.axis||(f.pageX-a(document).scrollLeft()<d.scrollSensitivity?b=a(document).scrollLeft(a(document).scrollLeft()-d.scrollSpeed):a(window).width()-(f.pageX-a(document).scrollLeft())<d.scrollSensitivity&&(b=a(document).scrollLeft(a(document).scrollLeft()+d.scrollSpeed))));!1!==b&&a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(e,f)}});a.ui.plugin.add("draggable","snap",{start:function(f,
g){var e=a(this).data("draggable"),d=e.options;e.snapElements=[];a(d.snap.constructor!=String?d.snap.items||":data(draggable)":d.snap).each(function(){var b=a(this),c=b.offset();this!=e.element[0]&&e.snapElements.push({item:this,width:b.outerWidth(),height:b.outerHeight(),top:c.top,left:c.left})})},drag:function(f,g){for(var e=a(this).data("draggable"),d=e.options,b=d.snapTolerance,c=g.offset.left,h=c+e.helperProportions.width,l=g.offset.top,n=l+e.helperProportions.height,q=e.snapElements.length-
1;0<=q;q--){var m=e.snapElements[q].left,z=m+e.snapElements[q].width,v=e.snapElements[q].top,A=v+e.snapElements[q].height;if(m-b<c&&c<z+b&&v-b<l&&l<A+b||m-b<c&&c<z+b&&v-b<n&&n<A+b||m-b<h&&h<z+b&&v-b<l&&l<A+b||m-b<h&&h<z+b&&v-b<n&&n<A+b){if("inner"!=d.snapMode){var s=Math.abs(v-n)<=b,F=Math.abs(A-l)<=b,u=Math.abs(m-h)<=b,B=Math.abs(z-c)<=b;s&&(g.position.top=e._convertPositionTo("relative",{top:v-e.helperProportions.height,left:0}).top-e.margins.top);F&&(g.position.top=e._convertPositionTo("relative",
{top:A,left:0}).top-e.margins.top);u&&(g.position.left=e._convertPositionTo("relative",{top:0,left:m-e.helperProportions.width}).left-e.margins.left);B&&(g.position.left=e._convertPositionTo("relative",{top:0,left:z}).left-e.margins.left)}var r=s||F||u||B;"outer"!=d.snapMode&&(s=Math.abs(v-l)<=b,F=Math.abs(A-n)<=b,u=Math.abs(m-c)<=b,B=Math.abs(z-h)<=b,s&&(g.position.top=e._convertPositionTo("relative",{top:v,left:0}).top-e.margins.top),F&&(g.position.top=e._convertPositionTo("relative",{top:A-e.helperProportions.height,
left:0}).top-e.margins.top),u&&(g.position.left=e._convertPositionTo("relative",{top:0,left:m}).left-e.margins.left),B&&(g.position.left=e._convertPositionTo("relative",{top:0,left:z-e.helperProportions.width}).left-e.margins.left));!e.snapElements[q].snapping&&(s||F||u||B||r)&&e.options.snap.snap&&e.options.snap.snap.call(e.element,f,a.extend(e._uiHash(),{snapItem:e.snapElements[q].item}));e.snapElements[q].snapping=s||F||u||B||r}else e.snapElements[q].snapping&&e.options.snap.release&&e.options.snap.release.call(e.element,
f,a.extend(e._uiHash(),{snapItem:e.snapElements[q].item})),e.snapElements[q].snapping=!1}}});a.ui.plugin.add("draggable","stack",{start:function(f,g){var e=a(this).data("draggable").options,e=a.makeArray(a(e.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});if(e.length){var d=parseInt(e[0].style.zIndex)||0;a(e).each(function(a){this.style.zIndex=d+a});this[0].style.zIndex=d+e.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(f,
g){var e=a(g.helper),d=a(this).data("draggable").options;e.css("zIndex")&&(d._zIndex=e.css("zIndex"));e.css("zIndex",d.zIndex)},stop:function(f,g){var e=a(this).data("draggable").options;e._zIndex&&a(g.helper).css("zIndex",e._zIndex)}})})(jQuery);
(function(a,m){a.widget("ui.droppable",{version:"1.9.1",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var f=this.options,g=f.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(g)?g:function(a){return a.is(g)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[f.scope]=a.ui.ddmanager.droppables[f.scope]||[];a.ui.ddmanager.droppables[f.scope].push(this);
f.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var f=a.ui.ddmanager.droppables[this.options.scope],g=0;g<f.length;g++)f[g]==this&&f.splice(g,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(f,g){"accept"==f&&(this.accept=a.isFunction(g)?g:function(a){return a.is(g)});a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(f){var g=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);
g&&this._trigger("activate",f,this.ui(g))},_deactivate:function(f){var g=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);g&&this._trigger("deactivate",f,this.ui(g))},_over:function(f){var g=a.ui.ddmanager.current;g&&(g.currentItem||g.element)[0]!=this.element[0]&&this.accept.call(this.element[0],g.currentItem||g.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",f,this.ui(g)))},_out:function(f){var g=
a.ui.ddmanager.current;g&&(g.currentItem||g.element)[0]!=this.element[0]&&this.accept.call(this.element[0],g.currentItem||g.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",f,this.ui(g)))},_drop:function(f,g){var e=g||a.ui.ddmanager.current;if(!e||(e.currentItem||e.element)[0]==this.element[0])return!1;var d=!1;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var b=a.data(this,"droppable");if(b.options.greedy&&
!b.options.disabled&&b.options.scope==e.options.scope&&b.accept.call(b.element[0],e.currentItem||e.element)&&a.ui.intersect(e,a.extend(b,{offset:b.element.offset()}),b.options.tolerance))return d=!0,!1});return d?!1:this.accept.call(this.element[0],e.currentItem||e.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",f,this.ui(e)),this.element):!1},ui:function(a){return{draggable:a.currentItem||
a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});a.ui.intersect=function(f,g,e){if(!g.offset)return!1;var d=(f.positionAbs||f.position.absolute).left,b=d+f.helperProportions.width,c=(f.positionAbs||f.position.absolute).top,h=c+f.helperProportions.height,l=g.offset.left,n=l+g.proportions.width,q=g.offset.top,m=q+g.proportions.height;switch(e){case "fit":return l<=d&&b<=n&&q<=c&&h<=m;case "intersect":return l<d+f.helperProportions.width/2&&b-f.helperProportions.width/2<n&&q<c+
f.helperProportions.height/2&&h-f.helperProportions.height/2<m;case "pointer":return a.ui.isOver((f.positionAbs||f.position.absolute).top+(f.clickOffset||f.offset.click).top,(f.positionAbs||f.position.absolute).left+(f.clickOffset||f.offset.click).left,q,l,g.proportions.height,g.proportions.width);case "touch":return(c>=q&&c<=m||h>=q&&h<=m||c<q&&h>m)&&(d>=l&&d<=n||b>=l&&b<=n||d<l&&b>n);default:return!1}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(f,g){var e=a.ui.ddmanager.droppables[f.options.scope]||
[],d=g?g.type:null,b=(f.currentItem||f.element).find(":data(droppable)").andSelf(),c=0;a:for(;c<e.length;c++)if(!(e[c].options.disabled||f&&!e[c].accept.call(e[c].element[0],f.currentItem||f.element))){for(var h=0;h<b.length;h++)if(b[h]==e[c].element[0]){e[c].proportions.height=0;continue a}e[c].visible="none"!=e[c].element.css("display");e[c].visible&&("mousedown"==d&&e[c]._activate.call(e[c],g),e[c].offset=e[c].element.offset(),e[c].proportions={width:e[c].element[0].offsetWidth,height:e[c].element[0].offsetHeight})}},
drop:function(f,g){var e=!1;a.each(a.ui.ddmanager.droppables[f.options.scope]||[],function(){this.options&&(!this.options.disabled&&this.visible&&a.ui.intersect(f,this,this.options.tolerance)&&(e=this._drop.call(this,g)||e),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],f.currentItem||f.element)&&(this.isout=1,this.isover=0,this._deactivate.call(this,g)))});return e},dragStart:function(f,g){f.element.parentsUntil("body").bind("scroll.droppable",function(){f.options.refreshPositions||
a.ui.ddmanager.prepareOffsets(f,g)})},drag:function(f,g){f.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(f,g);a.each(a.ui.ddmanager.droppables[f.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var e=a.ui.intersect(f,this,this.options.tolerance);if(e=e||1!=this.isover?e&&0==this.isover?"isover":null:"isout"){var d;if(this.options.greedy){var b=this.options.scope,c=this.element.parents(":data(droppable)").filter(function(){return a.data(this,"droppable").options.scope===
b});c.length&&(d=a.data(c[0],"droppable"),d.greedyChild="isover"==e?1:0)}d&&"isover"==e&&(d.isover=0,d.isout=1,d._out.call(d,g));this[e]=1;this["isout"==e?"isover":"isout"]=0;this["isover"==e?"_over":"_out"].call(this,g);d&&"isout"==e&&(d.isout=0,d.isover=1,d._over.call(d,g))}}})},dragStop:function(f,g){f.element.parentsUntil("body").unbind("scroll.droppable");f.options.refreshPositions||a.ui.ddmanager.prepareOffsets(f,g)}}})(jQuery);
(function(a,m){a.widget("ui.resizable",a.ui.mouse,{version:"1.9.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var e=this,d=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!d.aspectRatio,aspectRatio:d.aspectRatio,originalElement:this.element,
_proportionallyResizeElements:[],_helper:d.helper||d.ghost||d.animate?d.helper||"ui-resizable-helper":null});this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),
this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",
zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize());this.handles=d.handles||(a(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se");if(this.handles.constructor==String){"all"==this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw");var b=this.handles.split(",");
this.handles={};for(var c=0;c<b.length;c++){var f=a.trim(b[c]),g=a('<div class="ui-resizable-handle ui-resizable-'+f+'"></div>');g.css({zIndex:d.zIndex});"se"==f&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[f]=".ui-resizable-"+f;this.element.append(g)}}this._renderAxis=function(c){c=c||this.element;for(var b in this.handles){this.handles[b].constructor==String&&(this.handles[b]=a(this.handles[b],this.element).show());if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var d=
a(this.handles[b],this.element),e=0,e=/sw|ne|nw|se|n|s/.test(b)?d.outerHeight():d.outerWidth(),d=["padding",/ne|nw|n/.test(b)?"Top":/se|sw|s/.test(b)?"Bottom":/^e$/.test(b)?"Right":"Left"].join("");c.css(d,e);this._proportionallyResize()}a(this.handles[b])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!e.resizing){if(this.className)var a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);e.axis=
a&&a[1]?a[1]:"se"}});d.autoHide&&(this._handles.hide(),a(this.element).addClass("ui-resizable-autohide").mouseenter(function(){d.disabled||(a(this).removeClass("ui-resizable-autohide"),e._handles.show())}).mouseleave(function(){d.disabled||e.resizing||(a(this).addClass("ui-resizable-autohide"),e._handles.hide())}));this._mouseInit()},_destroy:function(){this._mouseDestroy();var e=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
if(this.elementIsWrapper){e(this.element);var d=this.element;this.originalElement.css({position:d.css("position"),width:d.outerWidth(),height:d.outerHeight(),top:d.css("top"),left:d.css("left")}).insertAfter(d);d.remove()}this.originalElement.css("resize",this.originalResizeStyle);e(this.originalElement);return this},_mouseCapture:function(e){var d=!1,b;for(b in this.handles)a(this.handles[b])[0]==e.target&&(d=!0);return!this.options.disabled&&d},_mouseStart:function(e){var d=this.options,b=this.element.position(),
c=this.element;this.resizing=!0;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};(c.is(".ui-draggable")||/absolute/.test(c.css("position")))&&c.css({position:"absolute",top:b.top,left:b.left});this._renderProxy();var b=f(this.helper.css("left")),h=f(this.helper.css("top"));d.containment&&(b+=a(d.containment).scrollLeft()||0,h+=a(d.containment).scrollTop()||0);this.offset=this.helper.offset();this.position={left:b,top:h};this.size=this._helper?{width:c.outerWidth(),height:c.outerHeight()}:
{width:c.width(),height:c.height()};this.originalSize=this._helper?{width:c.outerWidth(),height:c.outerHeight()}:{width:c.width(),height:c.height()};this.originalPosition={left:b,top:h};this.sizeDiff={width:c.outerWidth()-c.width(),height:c.outerHeight()-c.height()};this.originalMousePosition={left:e.pageX,top:e.pageY};this.aspectRatio="number"==typeof d.aspectRatio?d.aspectRatio:this.originalSize.width/this.originalSize.height||1;d=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",
"auto"==d?this.axis+"-resize":d);c.addClass("ui-resizable-resizing");this._propagate("start",e);return!0},_mouseDrag:function(a){var d=this.helper,b=this.originalMousePosition,c=this._change[this.axis];if(!c)return!1;b=c.apply(this,[a,a.pageX-b.left||0,a.pageY-b.top||0]);this._updateVirtualBoundaries(a.shiftKey);if(this._aspectRatio||a.shiftKey)b=this._updateRatio(b,a);b=this._respectSize(b,a);this._propagate("resize",a);d.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+
"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(b);this._trigger("resize",a,this.ui());return!1},_mouseStop:function(e){this.resizing=!1;var d=this.options;if(this._helper){var b=this._proportionallyResizeElements,c=b.length&&/textarea/i.test(b[0].nodeName),b=c&&a.ui.hasScroll(b[0],"left")?0:this.sizeDiff.height,c=c?0:this.sizeDiff.width,c={width:this.helper.width()-c,height:this.helper.height()-b},b=parseInt(this.element.css("left"),
10)+(this.position.left-this.originalPosition.left)||null,f=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;d.animate||this.element.css(a.extend(c,{top:f,left:b}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!d.animate&&this._proportionallyResize()}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",e);this._helper&&this.helper.remove();return!1},_updateVirtualBoundaries:function(a){var d=
this.options,b,c,f,d={minWidth:g(d.minWidth)?d.minWidth:0,maxWidth:g(d.maxWidth)?d.maxWidth:Infinity,minHeight:g(d.minHeight)?d.minHeight:0,maxHeight:g(d.maxHeight)?d.maxHeight:Infinity};if(this._aspectRatio||a)a=d.minHeight*this.aspectRatio,c=d.minWidth/this.aspectRatio,b=d.maxHeight*this.aspectRatio,f=d.maxWidth/this.aspectRatio,a>d.minWidth&&(d.minWidth=a),c>d.minHeight&&(d.minHeight=c),b<d.maxWidth&&(d.maxWidth=b),f<d.maxHeight&&(d.maxHeight=f);this._vBoundaries=d},_updateCache:function(a){this.offset=
this.helper.offset();g(a.left)&&(this.position.left=a.left);g(a.top)&&(this.position.top=a.top);g(a.height)&&(this.size.height=a.height);g(a.width)&&(this.size.width=a.width)},_updateRatio:function(a,d){var b=this.position,c=this.size,f=this.axis;g(a.height)?a.width=a.height*this.aspectRatio:g(a.width)&&(a.height=a.width/this.aspectRatio);"sw"==f&&(a.left=b.left+(c.width-a.width),a.top=null);"nw"==f&&(a.top=b.top+(c.height-a.height),a.left=b.left+(c.width-a.width));return a},_respectSize:function(a,
d){var b=this._vBoundaries,c=this.axis,f=g(a.width)&&b.maxWidth&&b.maxWidth<a.width,l=g(a.height)&&b.maxHeight&&b.maxHeight<a.height,n=g(a.width)&&b.minWidth&&b.minWidth>a.width,q=g(a.height)&&b.minHeight&&b.minHeight>a.height;n&&(a.width=b.minWidth);q&&(a.height=b.minHeight);f&&(a.width=b.maxWidth);l&&(a.height=b.maxHeight);var m=this.originalPosition.left+this.originalSize.width,z=this.position.top+this.size.height,v=/sw|nw|w/.test(c),c=/nw|ne|n/.test(c);n&&v&&(a.left=m-b.minWidth);f&&v&&(a.left=
m-b.maxWidth);q&&c&&(a.top=z-b.minHeight);l&&c&&(a.top=z-b.maxHeight);(b=!a.width&&!a.height)&&!a.left&&a.top?a.top=null:b&&!a.top&&a.left&&(a.left=null);return a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e=this.helper||this.element,d=0;d<this._proportionallyResizeElements.length;d++){var b=this._proportionallyResizeElements[d];if(!this.borderDif){var c=[b.css("borderTopWidth"),b.css("borderRightWidth"),b.css("borderBottomWidth"),b.css("borderLeftWidth")],
f=[b.css("paddingTop"),b.css("paddingRight"),b.css("paddingBottom"),b.css("paddingLeft")];this.borderDif=a.map(c,function(a,c){var b=parseInt(a,10)||0,d=parseInt(f[c],10)||0;return b+d})}b.css({height:e.height()-this.borderDif[0]-this.borderDif[2]||0,width:e.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var e=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var d=a.ui.ie6?1:0,b=a.ui.ie6?
2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+b,height:this.element.outerHeight()+b,position:"absolute",left:this.elementOffset.left-d+"px",top:this.elementOffset.top-d+"px",zIndex:++e.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(a,d,b){return{width:this.originalSize.width+d}},w:function(a,d,b){return{left:this.originalPosition.left+d,width:this.originalSize.width-d}},n:function(a,d,b){return{top:this.originalPosition.top+
b,height:this.originalSize.height-b}},s:function(a,d,b){return{height:this.originalSize.height+b}},se:function(e,d,b){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,d,b]))},sw:function(e,d,b){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,d,b]))},ne:function(e,d,b){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,d,b]))},nw:function(e,d,b){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,
[e,d,b]))}},_propagate:function(e,d){a.ui.plugin.call(this,e,[d,this.ui()]);"resize"!=e&&this._trigger(e,d,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});a.ui.plugin.add("resizable","alsoResize",{start:function(e,d){var b=a(this).data("resizable").options,c=function(c){a(c).each(function(){var c=a(this);c.data("resizable-alsoresize",
{width:parseInt(c.width(),10),height:parseInt(c.height(),10),left:parseInt(c.css("left"),10),top:parseInt(c.css("top"),10)})})};"object"!=typeof b.alsoResize||b.alsoResize.parentNode?c(b.alsoResize):b.alsoResize.length?(b.alsoResize=b.alsoResize[0],c(b.alsoResize)):a.each(b.alsoResize,function(a){c(a)})},resize:function(e,d){var b=a(this).data("resizable"),c=b.options,f=b.originalSize,g=b.originalPosition,n={height:b.size.height-f.height||0,width:b.size.width-f.width||0,top:b.position.top-g.top||
0,left:b.position.left-g.left||0},q=function(c,b){a(c).each(function(){var c=a(this),e=a(this).data("resizable-alsoresize"),f={},h=b&&b.length?b:c.parents(d.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(h,function(a,c){var b=(e[c]||0)+(n[c]||0);b&&0<=b&&(f[c]=b||null)});c.css(f)})};"object"!=typeof c.alsoResize||c.alsoResize.nodeType?q(c.alsoResize):a.each(c.alsoResize,function(a,c){q(a,c)})},stop:function(e,d){a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable",
"animate",{stop:function(e,d){var b=a(this).data("resizable"),c=b.options,f=b._proportionallyResizeElements,g=f.length&&/textarea/i.test(f[0].nodeName),n=g&&a.ui.hasScroll(f[0],"left")?0:b.sizeDiff.height,g={width:b.size.width-(g?0:b.sizeDiff.width),height:b.size.height-n},n=parseInt(b.element.css("left"),10)+(b.position.left-b.originalPosition.left)||null,q=parseInt(b.element.css("top"),10)+(b.position.top-b.originalPosition.top)||null;b.element.animate(a.extend(g,q&&n?{top:q,left:n}:{}),{duration:c.animateDuration,
easing:c.animateEasing,step:function(){var c={width:parseInt(b.element.css("width"),10),height:parseInt(b.element.css("height"),10),top:parseInt(b.element.css("top"),10),left:parseInt(b.element.css("left"),10)};f&&f.length&&a(f[0]).css({width:c.width,height:c.height});b._updateCache(c);b._propagate("resize",e)}})}});a.ui.plugin.add("resizable","containment",{start:function(e,d){var b=a(this).data("resizable"),c=b.element,h=b.options.containment;if(c=h instanceof a?h.get(0):/parent/.test(h)?c.parent().get(0):
h)if(b.containerElement=a(c),/document/.test(h)||h==document)b.containerOffset={left:0,top:0},b.containerPosition={left:0,top:0},b.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight};else{var g=a(c),n=[];a(["Top","Right","Left","Bottom"]).each(function(a,c){n[a]=f(g.css("padding"+c))});b.containerOffset=g.offset();b.containerPosition=g.position();b.containerSize={height:g.innerHeight()-n[3],width:g.innerWidth()-
n[1]};var h=b.containerOffset,q=b.containerSize.height,m=b.containerSize.width,m=a.ui.hasScroll(c,"left")?c.scrollWidth:m,q=a.ui.hasScroll(c)?c.scrollHeight:q;b.parentData={element:c,left:h.left,top:h.top,width:m,height:q}}},resize:function(e,d){var b=a(this).data("resizable"),c=b.options,f=b.containerOffset,g=b.position,n=b._aspectRatio||e.shiftKey,q={top:0,left:0},m=b.containerElement;m[0]!=document&&/static/.test(m.css("position"))&&(q=f);g.left<(b._helper?f.left:0)&&(b.size.width+=b._helper?b.position.left-
f.left:b.position.left-q.left,n&&(b.size.height=b.size.width/b.aspectRatio),b.position.left=c.helper?f.left:0);g.top<(b._helper?f.top:0)&&(b.size.height+=b._helper?b.position.top-f.top:b.position.top,n&&(b.size.width=b.size.height*b.aspectRatio),b.position.top=b._helper?f.top:0);b.offset.left=b.parentData.left+b.position.left;b.offset.top=b.parentData.top+b.position.top;c=Math.abs(b.offset.left-q.left+b.sizeDiff.width);f=Math.abs((b._helper?b.offset.top-q.top:b.offset.top-f.top)+b.sizeDiff.height);
q=b.containerElement.get(0)==b.element.parent().get(0);g=/relative|absolute/.test(b.containerElement.css("position"));q&&g&&(c-=b.parentData.left);c+b.size.width>=b.parentData.width&&(b.size.width=b.parentData.width-c,n&&(b.size.height=b.size.width/b.aspectRatio));f+b.size.height>=b.parentData.height&&(b.size.height=b.parentData.height-f,n&&(b.size.width=b.size.height*b.aspectRatio))},stop:function(e,d){var b=a(this).data("resizable"),c=b.options,f=b.containerOffset,g=b.containerPosition,n=b.containerElement,
q=a(b.helper),m=q.offset(),z=q.outerWidth()-b.sizeDiff.width,q=q.outerHeight()-b.sizeDiff.height;b._helper&&!c.animate&&/relative/.test(n.css("position"))&&a(this).css({left:m.left-g.left-f.left,width:z,height:q});b._helper&&!c.animate&&/static/.test(n.css("position"))&&a(this).css({left:m.left-g.left-f.left,width:z,height:q})}});a.ui.plugin.add("resizable","ghost",{start:function(e,d){var b=a(this).data("resizable"),c=b.options,f=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,
display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof c.ghost?c.ghost:"");b.ghost.appendTo(b.helper)},resize:function(e,d){var b=a(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(e,d){var b=a(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});a.ui.plugin.add("resizable","grid",{resize:function(e,
d){var b=a(this).data("resizable"),c=b.options,f=b.size,g=b.originalSize,n=b.originalPosition,q=b.axis;c.grid="number"==typeof c.grid?[c.grid,c.grid]:c.grid;var m=Math.round((f.width-g.width)/(c.grid[0]||1))*(c.grid[0]||1),c=Math.round((f.height-g.height)/(c.grid[1]||1))*(c.grid[1]||1);/^(se|s|e)$/.test(q)?(b.size.width=g.width+m,b.size.height=g.height+c):/^(ne)$/.test(q)?(b.size.width=g.width+m,b.size.height=g.height+c,b.position.top=n.top-c):(/^(sw)$/.test(q)?(b.size.width=g.width+m,b.size.height=
g.height+c):(b.size.width=g.width+m,b.size.height=g.height+c,b.position.top=n.top-c),b.position.left=n.left-m)}});var f=function(a){return parseInt(a,10)||0},g=function(a){return!isNaN(parseInt(a,10))}})(jQuery);
(function(a,m){a.widget("ui.selectable",a.ui.mouse,{version:"1.9.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var f=this;this.element.addClass("ui-selectable");this.dragged=!1;var g;this.refresh=function(){g=a(f.options.filter,f.element[0]);g.addClass("ui-selectee");g.each(function(){var e=a(this),d=e.offset();a.data(this,"selectable-item",{element:this,$element:e,left:d.left,top:d.top,right:d.left+e.outerWidth(),bottom:d.top+e.outerHeight(),
startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})};this.refresh();this.selectees=g.addClass("ui-selectee");this._mouseInit();this.helper=a("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled");this._mouseDestroy()},_mouseStart:function(f){var g=this;this.opos=[f.pageX,
f.pageY];if(!this.options.disabled){var e=this.options;this.selectees=a(e.filter,this.element[0]);this._trigger("start",f);a(e.appendTo).append(this.helper);this.helper.css({left:f.clientX,top:f.clientY,width:0,height:0});e.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var d=a.data(this,"selectable-item");d.startselected=!0;f.metaKey||f.ctrlKey||(d.$element.removeClass("ui-selected"),d.selected=!1,d.$element.addClass("ui-unselecting"),d.unselecting=!0,g._trigger("unselecting",
f,{unselecting:d.element}))});a(f.target).parents().andSelf().each(function(){var d=a.data(this,"selectable-item");if(d){var b=!f.metaKey&&!f.ctrlKey||!d.$element.hasClass("ui-selected");d.$element.removeClass(b?"ui-unselecting":"ui-selected").addClass(b?"ui-selecting":"ui-unselecting");d.unselecting=!b;d.selecting=b;(d.selected=b)?g._trigger("selecting",f,{selecting:d.element}):g._trigger("unselecting",f,{unselecting:d.element});return!1}})}},_mouseDrag:function(f){var g=this;this.dragged=!0;if(!this.options.disabled){var e=
this.options,d=this.opos[0],b=this.opos[1],c=f.pageX,h=f.pageY;if(d>c)var l=c,c=d,d=l;b>h&&(l=h,h=b,b=l);this.helper.css({left:d,top:b,width:c-d,height:h-b});this.selectees.each(function(){var l=a.data(this,"selectable-item");if(l&&l.element!=g.element[0]){var q=!1;"touch"==e.tolerance?q=!(l.left>c||l.right<d||l.top>h||l.bottom<b):"fit"==e.tolerance&&(q=l.left>d&&l.right<c&&l.top>b&&l.bottom<h);q?(l.selected&&(l.$element.removeClass("ui-selected"),l.selected=!1),l.unselecting&&(l.$element.removeClass("ui-unselecting"),
l.unselecting=!1),l.selecting||(l.$element.addClass("ui-selecting"),l.selecting=!0,g._trigger("selecting",f,{selecting:l.element}))):(l.selecting&&((f.metaKey||f.ctrlKey)&&l.startselected?(l.$element.removeClass("ui-selecting"),l.selecting=!1,l.$element.addClass("ui-selected"),l.selected=!0):(l.$element.removeClass("ui-selecting"),l.selecting=!1,l.startselected&&(l.$element.addClass("ui-unselecting"),l.unselecting=!0),g._trigger("unselecting",f,{unselecting:l.element}))),!l.selected||f.metaKey||f.ctrlKey||
l.startselected||(l.$element.removeClass("ui-selected"),l.selected=!1,l.$element.addClass("ui-unselecting"),l.unselecting=!0,g._trigger("unselecting",f,{unselecting:l.element})))}});return!1}},_mouseStop:function(f){var g=this;this.dragged=!1;a(".ui-unselecting",this.element[0]).each(function(){var e=a.data(this,"selectable-item");e.$element.removeClass("ui-unselecting");e.unselecting=!1;e.startselected=!1;g._trigger("unselected",f,{unselected:e.element})});a(".ui-selecting",this.element[0]).each(function(){var e=
a.data(this,"selectable-item");e.$element.removeClass("ui-selecting").addClass("ui-selected");e.selecting=!1;e.selected=!0;e.startselected=!0;g._trigger("selected",f,{selected:e.element})});this._trigger("stop",f);this.helper.remove();return!1}})})(jQuery);
(function(a,m){a.widget("ui.sortable",a.ui.mouse,{version:"1.9.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){var a=this.options;this.containerCache={};this.element.addClass("ui-sortable");
this.refresh();this.floating=this.items.length?"x"===a.axis||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):!1;this.offset=this.element.offset();this._mouseInit();this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled");this._mouseDestroy();for(var a=this.items.length-1;0<=a;a--)this.items[a].item.removeData(this.widgetName+"-item");return this},_setOption:function(f,g){"disabled"===f?(this.options[f]=
g,this.widget().toggleClass("ui-sortable-disabled",!!g)):a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(f,g){var e=this;if(this.reverting||this.options.disabled||"static"==this.options.type)return!1;this._refreshItems(f);var d=null;a(f.target).parents().each(function(){if(a.data(this,e.widgetName+"-item")==e)return d=a(this),!1});a.data(f.target,e.widgetName+"-item")==e&&(d=a(f.target));if(!d)return!1;if(this.options.handle&&!g){var b=!1;a(this.options.handle,d).find("*").andSelf().each(function(){this==
f.target&&(b=!0)});if(!b)return!1}this.currentItem=d;this._removeCurrentsFromItems();return!0},_mouseStart:function(f,g,e){g=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(f);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:f.pageX-this.offset.left,
top:f.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");this.originalPosition=this._generatePosition(f);this.originalPageX=f.pageX;this.originalPageY=f.pageY;g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();
g.containment&&this._setContainment();g.cursor&&(a("body").css("cursor")&&(this._storedCursor=a("body").css("cursor")),a("body").css("cursor",g.cursor));g.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",g.opacity));g.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",g.zIndex));this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset());
this._trigger("start",f,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!e)for(e=this.containers.length-1;0<=e;e--)this.containers[e]._trigger("activate",f,this._uiHash(this));a.ui.ddmanager&&(a.ui.ddmanager.current=this);a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,f);this.dragging=!0;this.helper.addClass("ui-sortable-helper");this._mouseDrag(f);return!0},_mouseDrag:function(f){this.position=this._generatePosition(f);this.positionAbs=this._convertPositionTo("absolute");
this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs);if(this.options.scroll){var g=this.options,e=!1;this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-f.pageY<g.scrollSensitivity?this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop+g.scrollSpeed:f.pageY-this.overflowOffset.top<g.scrollSensitivity&&(this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop-g.scrollSpeed),this.overflowOffset.left+
this.scrollParent[0].offsetWidth-f.pageX<g.scrollSensitivity?this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft+g.scrollSpeed:f.pageX-this.overflowOffset.left<g.scrollSensitivity&&(this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft-g.scrollSpeed)):(f.pageY-a(document).scrollTop()<g.scrollSensitivity?e=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed):a(window).height()-(f.pageY-a(document).scrollTop())<g.scrollSensitivity&&(e=a(document).scrollTop(a(document).scrollTop()+
g.scrollSpeed)),f.pageX-a(document).scrollLeft()<g.scrollSensitivity?e=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed):a(window).width()-(f.pageX-a(document).scrollLeft())<g.scrollSensitivity&&(e=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)));!1!==e&&a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,f)}this.positionAbs=this._convertPositionTo("absolute");this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px");
this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px");for(g=this.items.length-1;0<=g;g--){var e=this.items[g],d=e.item[0],b=this._intersectsWithPointer(e);if(b&&e.instance===this.currentContainer&&d!=this.currentItem[0]&&this.placeholder[1==b?"next":"prev"]()[0]!=d&&!a.contains(this.placeholder[0],d)&&("semi-dynamic"==this.options.type?!a.contains(this.element[0],d):1)){this.direction=1==b?"down":"up";if("pointer"==this.options.tolerance||this._intersectsWithSides(e))this._rearrange(f,
e);else break;this._trigger("change",f,this._uiHash());break}}this._contactContainers(f);a.ui.ddmanager&&a.ui.ddmanager.drag(this,f);this._trigger("sort",f,this._uiHash());this.lastPositionAbs=this.positionAbs;return!1},_mouseStop:function(f,g){if(f){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,f);if(this.options.revert){var e=this,d=this.placeholder.offset();this.reverting=!0;a(this.helper).animate({left:d.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){e._clear(f)})}else this._clear(f,g);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null});"original"==this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var f=this.containers.length-1;0<=f;f--)this.containers[f]._trigger("deactivate",
null,this._uiHash(this)),this.containers[f].containerCache.over&&(this.containers[f]._trigger("out",null,this._uiHash(this)),this.containers[f].containerCache.over=0)}this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!=this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):
a(this.domPosition.parent).prepend(this.currentItem));return this},serialize:function(f){var g=this._getItemsAsjQuery(f&&f.connected),e=[];f=f||{};a(g).each(function(){var d=(a(f.item||this).attr(f.attribute||"id")||"").match(f.expression||/(.+)[-=_](.+)/);d&&e.push((f.key||d[1]+"[]")+"="+(f.key&&f.expression?d[1]:d[2]))});!e.length&&f.key&&e.push(f.key+"=");return e.join("&")},toArray:function(f){var g=this._getItemsAsjQuery(f&&f.connected),e=[];f=f||{};g.each(function(){e.push(a(f.item||this).attr(f.attribute||
"id")||"")});return e},_intersectsWith:function(a){var g=this.positionAbs.left,e=g+this.helperProportions.width,d=this.positionAbs.top,b=d+this.helperProportions.height,c=a.left,h=c+a.width,l=a.top,n=l+a.height,q=this.offset.click.top,m=this.offset.click.left;return"pointer"==this.options.tolerance||this.options.forcePointerForContainers||"pointer"!=this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?d+q>l&&d+q<n&&g+m>c&&g+m<h:c<g+this.helperProportions.width/
2&&e-this.helperProportions.width/2<h&&l<d+this.helperProportions.height/2&&b-this.helperProportions.height/2<n},_intersectsWithPointer:function(f){var g="x"===this.options.axis||a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,f.top,f.height);f="y"===this.options.axis||a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,f.left,f.width);g=g&&f;f=this._getDragVerticalDirection();var e=this._getDragHorizontalDirection();return g?this.floating?e&&"right"==e||"down"==f?2:1:f&&("down"==
f?2:1):!1},_intersectsWithSides:function(f){var g=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,f.top+f.height/2,f.height);f=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,f.left+f.width/2,f.width);var e=this._getDragVerticalDirection(),d=this._getDragHorizontalDirection();return this.floating&&d?"right"==d&&f||"left"==d&&!f:e&&("down"==e&&g||"up"==e&&!g)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return 0!=a&&(0<a?"down":"up")},
_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return 0!=a&&(0<a?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(f){var g=[],e=[],d=this._connectWith();if(d&&f)for(f=d.length-1;0<=f;f--)for(var b=a(d[f]),c=b.length-1;0<=c;c--){var h=a.data(b[c],this.widgetName);h&&
h!=this&&!h.options.disabled&&e.push([a.isFunction(h.options.items)?h.options.items.call(h.element):a(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(f=e.length-1;0<=f;f--)e[f][0].each(function(){g.push(this)});return a(g)},_removeCurrentsFromItems:function(){var f=
this.currentItem.find(":data("+this.widgetName+"-item)");this.items=a.grep(this.items,function(a){for(var e=0;e<f.length;e++)if(f[e]==a.item[0])return!1;return!0})},_refreshItems:function(f){this.items=[];this.containers=[this];var g=this.items,e=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],f,{item:this.currentItem}):a(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(var b=d.length-1;0<=b;b--)for(var c=a(d[b]),h=c.length-1;0<=h;h--){var l=
a.data(c[h],this.widgetName);l&&l!=this&&!l.options.disabled&&(e.push([a.isFunction(l.options.items)?l.options.items.call(l.element[0],f,{item:this.currentItem}):a(l.options.items,l.element),l]),this.containers.push(l))}for(b=e.length-1;0<=b;b--)for(f=e[b][1],d=e[b][0],h=0,c=d.length;h<c;h++)l=a(d[h]),l.data(this.widgetName+"-item",f),g.push({item:l,instance:f,width:0,height:0,left:0,top:0})},refreshPositions:function(f){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());
for(var g=this.items.length-1;0<=g;g--){var e=this.items[g];if(e.instance==this.currentContainer||!this.currentContainer||e.item[0]==this.currentItem[0]){var d=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;f||(e.width=d.outerWidth(),e.height=d.outerHeight());d=d.offset();e.left=d.left;e.top=d.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(g=this.containers.length-1;0<=g;g--)d=this.containers[g].element.offset(),
this.containers[g].containerCache.left=d.left,this.containers[g].containerCache.top=d.top,this.containers[g].containerCache.width=this.containers[g].element.outerWidth(),this.containers[g].containerCache.height=this.containers[g].element.outerHeight();return this},_createPlaceholder:function(f){f=f||this;var g=f.options;if(!g.placeholder||g.placeholder.constructor==String){var e=g.placeholder;g.placeholder={element:function(){var d=a(document.createElement(f.currentItem[0].nodeName)).addClass(e||
f.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];e||(d.style.visibility="hidden");return d},update:function(a,b){if(!e||g.forcePlaceholderSize)b.height()||b.height(f.currentItem.innerHeight()-parseInt(f.currentItem.css("paddingTop")||0,10)-parseInt(f.currentItem.css("paddingBottom")||0,10)),b.width()||b.width(f.currentItem.innerWidth()-parseInt(f.currentItem.css("paddingLeft")||0,10)-parseInt(f.currentItem.css("paddingRight")||0,10))}}}f.placeholder=a(g.placeholder.element.call(f.element,
f.currentItem));f.currentItem.after(f.placeholder);g.placeholder.update(f,f.placeholder)},_contactContainers:function(f){for(var g=null,e=null,d=this.containers.length-1;0<=d;d--)a.contains(this.currentItem[0],this.containers[d].element[0])||(this._intersectsWith(this.containers[d].containerCache)?g&&a.contains(this.containers[d].element[0],g.element[0])||(g=this.containers[d],e=d):this.containers[d].containerCache.over&&(this.containers[d]._trigger("out",f,this._uiHash(this)),this.containers[d].containerCache.over=
0));if(g)if(1===this.containers.length)this.containers[e]._trigger("over",f,this._uiHash(this)),this.containers[e].containerCache.over=1;else{for(var g=1E4,d=null,b=this.containers[e].floating?"left":"top",c=this.containers[e].floating?"width":"height",h=this.positionAbs[b]+this.offset.click[b],l=this.items.length-1;0<=l;l--)if(a.contains(this.containers[e].element[0],this.items[l].item[0])&&this.items[l].item[0]!=this.currentItem[0]){var n=this.items[l].item.offset()[b],q=!1;Math.abs(n-h)>Math.abs(n+
this.items[l][c]-h)&&(q=!0,n+=this.items[l][c]);Math.abs(n-h)<g&&(g=Math.abs(n-h),d=this.items[l],this.direction=q?"up":"down")}if(d||this.options.dropOnEmpty)this.currentContainer=this.containers[e],d?this._rearrange(f,d,null,!0):this._rearrange(f,null,this.containers[e].element,!0),this._trigger("change",f,this._uiHash()),this.containers[e]._trigger("change",f,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[e]._trigger("over",f,this._uiHash(this)),
this.containers[e].containerCache.over=1}},_createHelper:function(f){var g=this.options;f=a.isFunction(g.helper)?a(g.helper.apply(this.element[0],[f,this.currentItem])):"clone"==g.helper?this.currentItem.clone():this.currentItem;f.parents("body").length||a("parent"!=g.appendTo?g.appendTo:this.currentItem[0].parentNode)[0].appendChild(f[0]);f[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),
top:this.currentItem.css("top"),left:this.currentItem.css("left")});(""==f[0].style.width||g.forceHelperSize)&&f.width(this.currentItem.width());(""==f[0].style.height||g.forceHelperSize)&&f.height(this.currentItem.height());return f},_adjustOffsetFromHelper:function(f){"string"==typeof f&&(f=f.split(" "));a.isArray(f)&&(f={left:+f[0],top:+f[1]||0});"left"in f&&(this.offset.click.left=f.left+this.margins.left);"right"in f&&(this.offset.click.left=this.helperProportions.width-f.right+this.margins.left);
"top"in f&&(this.offset.click.top=f.top+this.margins.top);"bottom"in f&&(this.offset.click.top=this.helperProportions.height-f.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var f=this.offsetParent.offset();"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(f.left+=this.scrollParent.scrollLeft(),f.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&
"html"==this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)f={top:0,left:0};return{top:f.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:f.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,
left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;"parent"==f.containment&&(f.containment=this.helper[0].parentNode);if("document"==f.containment||"window"==f.containment)this.containment=[0-this.offset.relative.left-this.offset.parent.left,
0-this.offset.relative.top-this.offset.parent.top,a("document"==f.containment?document:window).width()-this.helperProportions.width-this.margins.left,(a("document"==f.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(f.containment)){var g=a(f.containment)[0],f=a(f.containment).offset(),e="hidden"!=a(g).css("overflow");this.containment=[f.left+(parseInt(a(g).css("borderLeftWidth"),10)||
0)+(parseInt(a(g).css("paddingLeft"),10)||0)-this.margins.left,f.top+(parseInt(a(g).css("borderTopWidth"),10)||0)+(parseInt(a(g).css("paddingTop"),10)||0)-this.margins.top,f.left+(e?Math.max(g.scrollWidth,g.offsetWidth):g.offsetWidth)-(parseInt(a(g).css("borderLeftWidth"),10)||0)-(parseInt(a(g).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,f.top+(e?Math.max(g.scrollHeight,g.offsetHeight):g.offsetHeight)-(parseInt(a(g).css("borderTopWidth"),10)||0)-(parseInt(a(g).css("paddingBottom"),
10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(f,g){g||(g=this.position);var e="absolute"==f?1:-1,d="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,b=/(html|body)/i.test(d[0].tagName);return{top:g.top+this.offset.relative.top*e+this.offset.parent.top*e-("fixed"==this.cssPosition?-this.scrollParent.scrollTop():b?0:d.scrollTop())*e,left:g.left+this.offset.relative.left*
e+this.offset.parent.left*e-("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():b?0:d.scrollLeft())*e}},_generatePosition:function(f){var g=this.options,e="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,d=/(html|body)/i.test(e[0].tagName);"relative"!=this.cssPosition||this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset());
var b=f.pageX,c=f.pageY;this.originalPosition&&(this.containment&&(f.pageX-this.offset.click.left<this.containment[0]&&(b=this.containment[0]+this.offset.click.left),f.pageY-this.offset.click.top<this.containment[1]&&(c=this.containment[1]+this.offset.click.top),f.pageX-this.offset.click.left>this.containment[2]&&(b=this.containment[2]+this.offset.click.left),f.pageY-this.offset.click.top>this.containment[3]&&(c=this.containment[3]+this.offset.click.top)),g.grid&&(c=this.originalPageY+Math.round((c-
this.originalPageY)/g.grid[1])*g.grid[1],c=this.containment?c-this.offset.click.top<this.containment[1]||c-this.offset.click.top>this.containment[3]?c-this.offset.click.top<this.containment[1]?c+g.grid[1]:c-g.grid[1]:c:c,b=this.originalPageX+Math.round((b-this.originalPageX)/g.grid[0])*g.grid[0],b=this.containment?b-this.offset.click.left<this.containment[0]||b-this.offset.click.left>this.containment[2]?b-this.offset.click.left<this.containment[0]?b+g.grid[0]:b-g.grid[0]:b:b));return{top:c-this.offset.click.top-
this.offset.relative.top-this.offset.parent.top+("fixed"==this.cssPosition?-this.scrollParent.scrollTop():d?0:e.scrollTop()),left:b-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():d?0:e.scrollLeft())}},_rearrange:function(a,g,e,d){e?e[0].appendChild(this.placeholder[0]):g.item[0].parentNode.insertBefore(this.placeholder[0],"down"==this.direction?g.item[0]:g.item[0].nextSibling);var b=this.counter=this.counter?++this.counter:
1;this._delay(function(){b==this.counter&&this.refreshPositions(!d)})},_clear:function(f,g){this.reverting=!1;var e=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var d in this._storedCSS)if("auto"==this._storedCSS[d]||"static"==this._storedCSS[d])this._storedCSS[d]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&
!g&&e.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))});!this.fromOutside&&this.domPosition.prev==this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent==this.currentItem.parent()[0]||g||e.push(function(a){this._trigger("update",a,this._uiHash())});this===this.currentContainer||g||(e.push(function(a){this._trigger("remove",a,this._uiHash())}),e.push(function(a){return function(c){a._trigger("receive",c,this._uiHash(this))}}.call(this,this.currentContainer)),
e.push(function(a){return function(c){a._trigger("update",c,this._uiHash(this))}}.call(this,this.currentContainer)));for(d=this.containers.length-1;0<=d;d--)g||e.push(function(a){return function(c){a._trigger("deactivate",c,this._uiHash(this))}}.call(this,this.containers[d])),this.containers[d].containerCache.over&&(e.push(function(a){return function(c){a._trigger("out",c,this._uiHash(this))}}.call(this,this.containers[d])),this.containers[d].containerCache.over=0);this._storedCursor&&a("body").css("cursor",
this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);this._storedZIndex&&this.helper.css("zIndex","auto"==this._storedZIndex?"":this._storedZIndex);this.dragging=!1;if(this.cancelHelperRemoval){if(!g){this._trigger("beforeStop",f,this._uiHash());for(d=0;d<e.length;d++)e[d].call(this,f);this._trigger("stop",f,this._uiHash())}return this.fromOutside=!1}g||this._trigger("beforeStop",f,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=
this.currentItem[0]&&this.helper.remove();this.helper=null;if(!g){for(d=0;d<e.length;d++)e[d].call(this,f);this._trigger("stop",f,this._uiHash())}this.fromOutside=!1;return!0},_trigger:function(){!1===a.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(f){var g=f||this;return{helper:g.helper,placeholder:g.placeholder||a([]),position:g.position,originalPosition:g.originalPosition,offset:g.positionAbs,item:g.currentItem,sender:f?f.element:null}}})})(jQuery);
jQuery.effects||function(a,m){var f=!1!==a.uiBackCompat;a.effects={effect:{}};(function(f,e){function d(a,c,b){var d=m[c.type]||{};if(null==a)return b||!c.def?null:c.def;a=d.floor?~~a:parseFloat(a);return isNaN(a)?c.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max<a?d.max:a}function b(a){var c=n(),b=c._rgba=[];a=a.toLowerCase();s(l,function(d,e){var f,h=e.re.exec(a);f=h&&e.parse(h);h=e.space||"rgba";if(f)return f=c[h](f),c[q[h].cache]=f[q[h].cache],b=c._rgba=f._rgba,!1});return b.length?("0,0,0,0"===b.join()&&
f.extend(b,A.transparent),c):A[a]}function c(a,c,b){b=(b+1)%1;return 1>6*b?a+6*(c-a)*b:1>2*b?c:2>3*b?a+6*(c-a)*(2/3-b):a}var h=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],n=f.Color=function(a,c,b,d){return new f.Color.fn.parse(a,c,b,d)},q={rgba:{props:{red:{idx:0,type:"byte"},
green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},m={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},z=n.support={},v=f("<p>")[0],A,s=f.each;v.style.cssText="background-color:rgba(1,1,1,.5)";z.rgba=-1<v.style.backgroundColor.indexOf("rgba");s(q,function(a,c){c.cache="_"+a;c.props.alpha={idx:3,type:"percent",def:1}});n.fn=f.extend(n.prototype,{parse:function(c,h,l,
m){if(c===e)return this._rgba=[null,null,null,null],this;if(c.jquery||c.nodeType)c=f(c).css(h),h=e;var p=this,x=f.type(c),y=this._rgba=[];h!==e&&(c=[c,h,l,m],x="array");if("string"===x)return this.parse(b(c)||A._default);if("array"===x)return s(q.rgba.props,function(a,b){y[b.idx]=d(c[b.idx],b)}),this;if("object"===x)return c instanceof n?s(q,function(a,b){c[b.cache]&&(p[b.cache]=c[b.cache].slice())}):s(q,function(b,e){var f=e.cache;s(e.props,function(a,b){if(!p[f]&&e.to){if("alpha"===a||null==c[a])return;
p[f]=e.to(p._rgba)}p[f][b.idx]=d(c[a],b,!0)});p[f]&&0>a.inArray(null,p[f].slice(0,3))&&(p[f][3]=1,e.from&&(p._rgba=e.from(p[f])))}),this},is:function(a){var c=n(a),b=!0,d=this;s(q,function(a,e){var f,h=c[e.cache];h&&(f=d[e.cache]||e.to&&e.to(d._rgba)||[],s(e.props,function(a,c){if(null!=h[c.idx])return b=h[c.idx]===f[c.idx]}));return b});return b},_space:function(){var a=[],c=this;s(q,function(b,d){c[d.cache]&&a.push(b)});return a.pop()},transition:function(a,c){var b=n(a),e=b._space(),f=q[e],h=0===
this.alpha()?n("transparent"):this,g=h[f.cache]||f.to(h._rgba),l=g.slice(),b=b[f.cache];s(f.props,function(a,e){var f=e.idx,h=g[f],p=b[f],n=m[e.type]||{};null!==p&&(null===h?l[f]=p:(n.mod&&(p-h>n.mod/2?h+=n.mod:h-p>n.mod/2&&(h-=n.mod)),l[f]=d((p-h)*c+h,e)))});return this[e](l)},blend:function(a){if(1===this._rgba[3])return this;var c=this._rgba.slice(),b=c.pop(),d=n(a)._rgba;return n(f.map(c,function(a,c){return(1-b)*d[c]+b*a}))},toRgbaString:function(){var a="rgba(",c=f.map(this._rgba,function(a,
c){return null==a?2<c?1:0:a});1===c[3]&&(c.pop(),a="rgb(");return a+c.join()+")"},toHslaString:function(){var a="hsla(",c=f.map(this.hsla(),function(a,c){null==a&&(a=2<c?1:0);c&&3>c&&(a=Math.round(100*a)+"%");return a});1===c[3]&&(c.pop(),a="hsl(");return a+c.join()+")"},toHexString:function(a){var c=this._rgba.slice(),b=c.pop();a&&c.push(~~(255*b));return"#"+f.map(c,function(a){a=(a||0).toString(16);return 1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":
this.toRgbaString()}});n.fn.parse.prototype=n.fn;q.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var c=a[0]/255,b=a[1]/255,d=a[2]/255;a=a[3];var e=Math.max(c,b,d),f=Math.min(c,b,d),h=e-f,g=e+f,l=0.5*g,g=0===l||1===l?l:0.5>=l?h/g:h/(2-g);return[Math.round(f===e?0:c===e?60*(b-d)/h+360:b===e?60*(d-c)/h+120:60*(c-b)/h+240)%360,g,l,null==a?1:a]};q.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,d=a[1],e=a[2];
a=a[3];d=0.5>=e?e*(1+d):e+d-e*d;e=2*e-d;return[Math.round(255*c(e,d,b+1/3)),Math.round(255*c(e,d,b)),Math.round(255*c(e,d,b-1/3)),a]};s(q,function(a,c){var b=c.props,l=c.cache,p=c.to,q=c.from;n.fn[a]=function(a){p&&!this[l]&&(this[l]=p(this._rgba));if(a===e)return this[l].slice();var c,h=f.type(a),m="array"===h||"object"===h?a:arguments,z=this[l].slice();s(b,function(a,c){var b=m["object"===h?a:c.idx];null==b&&(b=z[c.idx]);z[c.idx]=d(b,c)});return q?(c=n(q(z)),c[l]=z,c):n(z)};s(b,function(c,b){n.fn[c]||
(n.fn[c]=function(d){var e=f.type(d),l="alpha"===c?this._hsla?"hsla":"rgba":a,p=this[l](),n=p[b.idx];if("undefined"===e)return n;"function"===e&&(d=d.call(this,n),e=f.type(d));if(null==d&&b.empty)return this;"string"===e&&(e=h.exec(d))&&(d=n+parseFloat(e[2])*("+"===e[1]?1:-1));p[b.idx]=d;return this[l](p)})})});s("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor".split(" "),function(a,c){f.cssHooks[c]=
{set:function(a,d){var e,h="";if("string"!==f.type(d)||(e=b(d))){d=n(e||d);if(!z.rgba&&1!==d._rgba[3]){for(e="backgroundColor"===c?a.parentNode:a;(""===h||"transparent"===h)&&e&&e.style;)try{h=f.css(e,"backgroundColor"),e=e.parentNode}catch(l){}d=d.blend(h&&"transparent"!==h?h:"_default")}d=d.toRgbaString()}try{a.style[c]=d}catch(q){}}};f.fx.step[c]=function(a){a.colorInit||(a.start=n(a.elem,c),a.end=n(a.end),a.colorInit=!0);f.cssHooks[c].set(a.elem,a.start.transition(a.end,a.pos))}});f.cssHooks.borderColor=
{expand:function(a){var c={};s(["Top","Right","Bottom","Left"],function(b,d){c["border"+d+"Color"]=a});return c}};A=f.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(jQuery);(function(){function f(){var b=this.ownerDocument.defaultView?
this.ownerDocument.defaultView.getComputedStyle(this,null):this.currentStyle,c={},d,e;if(b&&b.length&&b[0]&&b[b[0]])for(e=b.length;e--;)d=b[e],"string"===typeof b[d]&&(c[a.camelCase(d)]=b[d]);else for(d in b)"string"===typeof b[d]&&(c[d]=b[d]);return c}var e=["add","remove","toggle"],d={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(b,c){a.fx.step[c]=
function(a){if("none"!==a.end&&!a.setAttr||1===a.pos&&!a.setAttr)jQuery.style(a.elem,c,a.end),a.setAttr=!0}});a.effects.animateClass=function(b,c,h,l){var n=a.speed(c,h,l);return this.queue(function(){var c=a(this),h=c.attr("class")||"",l,m=n.children?c.find("*").andSelf():c,m=m.map(function(){return{el:a(this),start:f.call(this)}});l=function(){a.each(e,function(a,d){if(b[d])c[d+"Class"](b[d])})};l();m=m.map(function(){this.end=f.call(this.el[0]);var c=this.start,b=this.end,e={},h,l;for(h in b)l=
b[h],c[h]===l||d[h]||!a.fx.step[h]&&isNaN(parseFloat(l))||(e[h]=l);this.diff=e;return this});c.attr("class",h);m=m.map(function(){var c=this,b=a.Deferred(),d=jQuery.extend({},n,{queue:!1,complete:function(){b.resolve(c)}});this.el.animate(this.diff,d);return b.promise()});a.when.apply(a,m.get()).done(function(){l();a.each(arguments,function(){var c=this.el;a.each(this.diff,function(a){c.css(a,"")})});n.complete.call(c[0])})})};a.fn.extend({_addClass:a.fn.addClass,addClass:function(b,c,d,e){return c?
a.effects.animateClass.call(this,{add:b},c,d,e):this._addClass(b)},_removeClass:a.fn.removeClass,removeClass:function(b,c,d,e){return c?a.effects.animateClass.call(this,{remove:b},c,d,e):this._removeClass(b)},_toggleClass:a.fn.toggleClass,toggleClass:function(b,c,d,e,f){return"boolean"===typeof c||c===m?d?a.effects.animateClass.call(this,c?{add:b}:{remove:b},d,e,f):this._toggleClass(b,c):a.effects.animateClass.call(this,{toggle:b},c,d,e)},switchClass:function(b,c,d,e,f){return a.effects.animateClass.call(this,
{add:c,remove:b},d,e,f)}})})();(function(){function g(d,b,c,e){a.isPlainObject(d)&&(b=d,d=d.effect);d={effect:d};null==b&&(b={});a.isFunction(b)&&(e=b,c=null,b={});if("number"===typeof b||a.fx.speeds[b])e=c,c=b,b={};a.isFunction(c)&&(e=c,c=null);b&&a.extend(d,b);c=c||b.duration;d.duration=a.fx.off?0:"number"===typeof c?c:c in a.fx.speeds?a.fx.speeds[c]:a.fx.speeds._default;d.complete=e||b.complete;return d}function e(d){return!d||"number"===typeof d||a.fx.speeds[d]?!0:"string"!==typeof d||a.effects.effect[d]?
!1:f&&a.effects[d]?!1:!0}a.extend(a.effects,{version:"1.9.1",save:function(a,b){for(var c=0;c<b.length;c++)null!==b[c]&&a.data("ui-effects-"+b[c],a[0].style[b[c]])},restore:function(a,b){var c,e;for(e=0;e<b.length;e++)null!==b[e]&&(c=a.data("ui-effects-"+b[e]),c===m&&(c=""),a.css(b[e],c))},setMode:function(a,b){"toggle"===b&&(b=a.is(":hidden")?"show":"hide");return b},getBaseline:function(a,b){var c,e;switch(a[0]){case "top":c=0;break;case "middle":c=0.5;break;case "bottom":c=1;break;default:c=a[0]/
b.height}switch(a[1]){case "left":e=0;break;case "center":e=0.5;break;case "right":e=1;break;default:e=a[1]/b.width}return{x:e,y:c}},createWrapper:function(d){if(d.parent().is(".ui-effects-wrapper"))return d.parent();var b={width:d.outerWidth(!0),height:d.outerHeight(!0),"float":d.css("float")},c=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:d.width(),height:d.height()},f=document.activeElement;try{f.id}catch(g){f=
document.body}d.wrap(c);(d[0]===f||a.contains(d[0],f))&&a(f).focus();c=d.parent();"static"===d.css("position")?(c.css({position:"relative"}),d.css({position:"relative"})):(a.extend(b,{position:d.css("position"),zIndex:d.css("z-index")}),a.each(["top","left","bottom","right"],function(a,c){b[c]=d.css(c);isNaN(parseInt(b[c],10))&&(b[c]="auto")}),d.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"}));d.css(e);return c.css(b).show()},removeWrapper:function(d){var b=document.activeElement;
d.parent().is(".ui-effects-wrapper")&&(d.parent().replaceWith(d),(d[0]===b||a.contains(d[0],b))&&a(b).focus());return d},setTransition:function(d,b,c,e){e=e||{};a.each(b,function(a,b){var f=d.cssUnit(b);0<f[0]&&(e[b]=f[0]*c+f[1])});return e}});a.fn.extend({effect:function(){function d(c){function d(){a.isFunction(f)&&f.call(e[0]);a.isFunction(c)&&c()}var e=a(this),f=b.complete,h=b.mode;(e.is(":hidden")?"hide"===h:"show"===h)?d():l.call(e[0],b,d)}var b=g.apply(this,arguments),c=b.mode,e=b.queue,l=
a.effects.effect[b.effect],n=!l&&f&&a.effects[b.effect];return a.fx.off||!l&&!n?c?this[c](b.duration,b.complete):this.each(function(){b.complete&&b.complete.call(this)}):l?!1===e?this.each(d):this.queue(e||"fx",d):n.call(this,{options:b,duration:b.duration,callback:b.complete,mode:b.mode})},_show:a.fn.show,show:function(a){if(e(a))return this._show.apply(this,arguments);var b=g.apply(this,arguments);b.mode="show";return this.effect.call(this,b)},_hide:a.fn.hide,hide:function(a){if(e(a))return this._hide.apply(this,
arguments);var b=g.apply(this,arguments);b.mode="hide";return this.effect.call(this,b)},__toggle:a.fn.toggle,toggle:function(d){if(e(d)||"boolean"===typeof d||a.isFunction(d))return this.__toggle.apply(this,arguments);var b=g.apply(this,arguments);b.mode="toggle";return this.effect.call(this,b)},cssUnit:function(d){var b=this.css(d),c=[];a.each(["em","px","%","pt"],function(a,d){0<b.indexOf(d)&&(c=[parseFloat(b),d])});return c}})})();(function(){var f={};a.each(["Quad","Cubic","Quart","Quint","Expo"],
function(a,d){f[d]=function(b){return Math.pow(b,a+2)}});a.extend(f,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var d,b=4;a<((d=Math.pow(2,--b))-1)/11;);return 1/Math.pow(4,3-b)-7.5625*Math.pow((3*d-2)/22-a,2)}});a.each(f,function(e,d){a.easing["easeIn"+e]=d;a.easing["easeOut"+e]=function(a){return 1-
d(1-a)};a.easing["easeInOut"+e]=function(a){return 0.5>a?d(2*a)/2:1-d(-2*a+2)/2}})})()}(jQuery);
(function(a,m){var f=0,g={},e={};g.height=g.paddingTop=g.paddingBottom=g.borderTopWidth=g.borderBottomWidth="hide";e.height=e.paddingTop=e.paddingBottom=e.borderTopWidth=e.borderBottomWidth="show";a.widget("ui.accordion",{version:"1.9.1",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var d=this.accordionId=
"ui-accordion-"+(this.element.attr("id")||++f),b=this.options;this.prevShow=this.prevHide=a();this.element.addClass("ui-accordion ui-widget ui-helper-reset");this.headers=this.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all");this._hoverable(this.headers);this._focusable(this.headers);this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide();b.collapsible||!1!==b.active&&null!=b.active||(b.active=
0);0>b.active&&(b.active+=this.headers.length);this.active=this._findActive(b.active).addClass("ui-accordion-header-active ui-state-active").toggleClass("ui-corner-all ui-corner-top");this.active.next().addClass("ui-accordion-content-active").show();this._createIcons();this.refresh();this.element.attr("role","tablist");this.headers.attr("role","tab").each(function(c){var b=a(this),e=b.attr("id"),f=b.next(),g=f.attr("id");e||(e=d+"-header-"+c,b.attr("id",e));g||(g=d+"-panel-"+c,f.attr("id",g));b.attr("aria-controls",
g);f.attr("aria-labelledby",e)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide();this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0);this._on(this.headers,{keydown:"_keydown"});this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._setupEvents(b.event)},
_getCreateEventData:function(){return{header:this.active,content:this.active.length?this.active.next():a()}},_createIcons:function(){var d=this.options.icons;d&&(a("<span>").addClass("ui-accordion-header-icon ui-icon "+d.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(d.header).addClass(d.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},
_destroy:function(){var a;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")});this._destroyIcons();a=this.headers.next().css("display",
"").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")});"content"!==this.options.heightStyle&&a.css("height","")},_setOption:function(a,b){"active"===a?this._activate(b):("event"===a&&(this.options.event&&this._off(this.headers,this.options.event),
this._setupEvents(b)),this._super(a,b),"collapsible"!==a||b||!1!==this.options.active||this._activate(0),"icons"===a&&(this._destroyIcons(),b&&this._createIcons()),"disabled"===a&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!b))},_keydown:function(d){if(!d.altKey&&!d.ctrlKey){var b=a.ui.keyCode,c=this.headers.length,e=this.headers.index(d.target),f=!1;switch(d.keyCode){case b.RIGHT:case b.DOWN:f=this.headers[(e+1)%c];break;case b.LEFT:case b.UP:f=this.headers[(e-1+c)%c];
break;case b.SPACE:case b.ENTER:this._eventHandler(d);break;case b.HOME:f=this.headers[0];break;case b.END:f=this.headers[c-1]}f&&(a(d.target).attr("tabIndex",-1),a(f).attr("tabIndex",0),f.focus(),d.preventDefault())}},_panelKeyDown:function(d){d.keyCode===a.ui.keyCode.UP&&d.ctrlKey&&a(d.currentTarget).prev().focus()},refresh:function(){var d,b,c=this.options.heightStyle,e=this.element.parent();"fill"===c?(a.support.minHeight||(b=e.css("overflow"),e.css("overflow","hidden")),d=e.height(),this.element.siblings(":visible").each(function(){var c=
a(this),b=c.css("position");"absolute"!==b&&"fixed"!==b&&(d-=c.outerHeight(!0))}),b&&e.css("overflow",b),this.headers.each(function(){d-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,d-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===c&&(d=0,this.headers.next().each(function(){d=Math.max(d,a(this).height("").height())}).height(d))},_activate:function(d){d=this._findActive(d)[0];d!==this.active[0]&&(d=d||this.active[0],this._eventHandler({target:d,
currentTarget:d,preventDefault:a.noop}))},_findActive:function(d){return"number"===typeof d?this.headers.eq(d):a()},_setupEvents:function(d){var b={};d&&(a.each(d.split(" "),function(a,d){b[d]="_eventHandler"}),this._on(this.headers,b))},_eventHandler:function(d){var b=this.options,c=this.active,e=a(d.currentTarget),f=e[0]===c[0],g=f&&b.collapsible,q=g?a():e.next(),m=c.next(),q={oldHeader:c,oldPanel:m,newHeader:g?a():e,newPanel:q};d.preventDefault();f&&!b.collapsible||!1===this._trigger("beforeActivate",
d,q)||(b.active=g?!1:this.headers.index(e),this.active=f?a():e,this._toggle(q),c.removeClass("ui-accordion-header-active ui-state-active"),b.icons&&c.children(".ui-accordion-header-icon").removeClass(b.icons.activeHeader).addClass(b.icons.header),f||(e.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),b.icons&&e.children(".ui-accordion-header-icon").removeClass(b.icons.header).addClass(b.icons.activeHeader),e.next().addClass("ui-accordion-content-active")))},
_toggle:function(d){var b=d.newPanel,c=this.prevShow.length?this.prevShow:d.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0);this.prevShow=b;this.prevHide=c;this.options.animate?this._animate(b,c,d):(c.hide(),b.show(),this._toggleComplete(d));c.attr({"aria-expanded":"false","aria-hidden":"true"});c.prev().attr("aria-selected","false");b.length&&c.length?c.prev().attr("tabIndex",-1):b.length&&this.headers.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1);b.attr({"aria-expanded":"true",
"aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(a,b,c){var f,l,n,q=this,m=0,z=a.length&&(!b.length||a.index()<b.index()),v=this.options.animate||{},z=z&&v.down||v,A=function(){q._toggleComplete(c)};"number"===typeof z&&(n=z);"string"===typeof z&&(l=z);l=l||z.easing||v.easing;n=n||z.duration||v.duration;if(!b.length)return a.animate(e,n,l,A);if(!a.length)return b.animate(g,n,l,A);f=a.show().outerHeight();b.animate(g,{duration:n,easing:l,step:function(a,c){c.now=
Math.round(a)}});a.hide().animate(e,{duration:n,easing:l,complete:A,step:function(a,c){c.now=Math.round(a);"height"!==c.prop?m+=c.now:"content"!==q.options.heightStyle&&(c.now=Math.round(f-b.outerHeight()-m),m=0)}})},_toggleComplete:function(a){var b=a.oldPanel;b.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all");b.length&&(b.parent()[0].className=b.parent()[0].className);this._trigger("activate",null,a)}});!1!==a.uiBackCompat&&(function(a,b){a.extend(b.options,
{navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}});var c=b._create;b._create=function(){if(this.options.navigation){var b=this,e=this.element.find(this.options.header),f=e.next(),g=e.add(f).find("a").filter(this.options.navigationFilter)[0];g&&e.add(f).each(function(c){if(a.contains(this,g))return b.options.active=Math.floor(c/2),!1})}c.call(this)}}(jQuery,jQuery.ui.accordion.prototype),function(a,b){a.extend(b.options,{heightStyle:null,autoHeight:!0,
clearStyle:!1,fillSpace:!1});var c=b._create,e=b._setOption;a.extend(b,{_create:function(){this.options.heightStyle=this.options.heightStyle||this._mergeHeightStyle();c.call(this)},_setOption:function(a){if("autoHeight"===a||"clearStyle"===a||"fillSpace"===a)this.options.heightStyle=this._mergeHeightStyle();e.apply(this,arguments)},_mergeHeightStyle:function(){var a=this.options;if(a.fillSpace)return"fill";if(a.clearStyle)return"content";if(a.autoHeight)return"auto"}})}(jQuery,jQuery.ui.accordion.prototype),
function(a,b){a.extend(b.options.icons,{activeHeader:null,headerSelected:"ui-icon-triangle-1-s"});var c=b._createIcons;b._createIcons=function(){this.options.icons&&(this.options.icons.activeHeader=this.options.icons.activeHeader||this.options.icons.headerSelected);c.call(this)}}(jQuery,jQuery.ui.accordion.prototype),function(a,b){b.activate=b._activate;var c=b._findActive;b._findActive=function(a){-1===a&&(a=!1);a&&"number"!==typeof a&&(a=this.headers.index(this.headers.filter(a)),-1===a&&(a=!1));
return c.call(this,a)}}(jQuery,jQuery.ui.accordion.prototype),jQuery.ui.accordion.prototype.resize=jQuery.ui.accordion.prototype.refresh,function(a,b){a.extend(b.options,{change:null,changestart:null});var c=b._trigger;b._trigger=function(a,b,d){var e=c.apply(this,arguments);if(!e)return!1;"beforeActivate"===a?e=c.call(this,"changestart",b,{oldHeader:d.oldHeader,oldContent:d.oldPanel,newHeader:d.newHeader,newContent:d.newPanel}):"activate"===a&&(e=c.call(this,"change",b,{oldHeader:d.oldHeader,oldContent:d.oldPanel,
newHeader:d.newHeader,newContent:d.newPanel}));return e}}(jQuery,jQuery.ui.accordion.prototype),function(a,b){a.extend(b.options,{animate:null,animated:"slide"});var c=b._create;b._create=function(){var a=this.options;null===a.animate&&(a.animate=a.animated?"slide"===a.animated?300:"bounceslide"===a.animated?{duration:200,down:{easing:"easeOutBounce",duration:1E3}}:a.animated:!1);c.call(this)}}(jQuery,jQuery.ui.accordion.prototype))})(jQuery);
(function(a,m){var f=0;a.widget("ui.autocomplete",{version:"1.9.1",defaultElement:"<input>",options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var f,e,d;this.isMultiLine=this._isMultiLine();this.valueMethod=this.element[this.element.is("input,textarea")?"val":"text"];this.isNewMenu=!0;this.element.addClass("ui-autocomplete-input").attr("autocomplete",
"off");this._on(this.element,{keydown:function(b){if(this.element.prop("readOnly"))e=d=f=!0;else{e=d=f=!1;var c=a.ui.keyCode;switch(b.keyCode){case c.PAGE_UP:f=!0;this._move("previousPage",b);break;case c.PAGE_DOWN:f=!0;this._move("nextPage",b);break;case c.UP:f=!0;this._keyEvent("previous",b);break;case c.DOWN:f=!0;this._keyEvent("next",b);break;case c.ENTER:case c.NUMPAD_ENTER:this.menu.active&&(f=!0,b.preventDefault(),this.menu.select(b));break;case c.TAB:this.menu.active&&this.menu.select(b);
break;case c.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(b),b.preventDefault());break;default:e=!0,this._searchTimeout(b)}}},keypress:function(b){if(f)f=!1,b.preventDefault();else if(!e){var c=a.ui.keyCode;switch(b.keyCode){case c.PAGE_UP:this._move("previousPage",b);break;case c.PAGE_DOWN:this._move("nextPage",b);break;case c.UP:this._keyEvent("previous",b);break;case c.DOWN:this._keyEvent("next",b)}}},input:function(a){d?(d=!1,a.preventDefault()):this._searchTimeout(a)},
focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(a){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(a),this._change(a))}});this._initSource();this.menu=a("<ul>").addClass("ui-autocomplete").appendTo(this.document.find(this.options.appendTo||"body")[0]).menu({input:a(),role:null}).zIndex(this.element.zIndex()+1).hide().data("menu");this._on(this.menu.element,{mousedown:function(b){b.preventDefault();this.cancelBlur=!0;this._delay(function(){delete this.cancelBlur});
var c=this.menu.element[0];a(b.target).closest(".ui-menu-item").length||this._delay(function(){var b=this;this.document.one("mousedown",function(d){d.target===b.element[0]||d.target===c||a.contains(c,d.target)||b.close()})})},menufocus:function(b,c){if(this.isNewMenu&&(this.isNewMenu=!1,b.originalEvent&&/^mouse/.test(b.originalEvent.type))){this.menu.blur();this.document.one("mousemove",function(){a(b.target).trigger(b.originalEvent)});return}var d=c.item.data("ui-autocomplete-item")||c.item.data("item.autocomplete");
!1!==this._trigger("focus",b,{item:d})?b.originalEvent&&/^key/.test(b.originalEvent.type)&&this._value(d.value):this.liveRegion.text(d.value)},menuselect:function(a,c){var d=c.item.data("ui-autocomplete-item")||c.item.data("item.autocomplete"),e=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=e,this._delay(function(){this.previous=e;this.selectedItem=d}));!1!==this._trigger("select",a,{item:d})&&this._value(d.value);this.term=this._value();this.close(a);
this.selectedItem=d}});this.liveRegion=a("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertAfter(this.element);a.fn.bgiframe&&this.menu.element.bgiframe();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(a,e){this._super(a,
e);"source"===a&&this._initSource();"appendTo"===a&&this.menu.element.appendTo(this.document.find(e||"body")[0]);"disabled"===a&&e&&this.xhr&&this.xhr.abort()},_isMultiLine:function(){return this.element.is("textarea")?!0:this.element.is("input")?!1:this.element.prop("isContentEditable")},_initSource:function(){var f,e,d=this;a.isArray(this.options.source)?(f=this.options.source,this.source=function(b,c){c(a.ui.autocomplete.filter(f,b.term))}):"string"===typeof this.options.source?(e=this.options.source,
this.source=function(b,c){d.xhr&&d.xhr.abort();d.xhr=a.ajax({url:e,data:b,dataType:"json",success:function(a){c(a)},error:function(){c([])}})}):this.source=this.options.source},_searchTimeout:function(a){clearTimeout(this.searching);this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,a))},this.options.delay)},search:function(a,e){a=null!=a?a:this._value();this.term=this._value();if(a.length<this.options.minLength)return this.close(e);if(!1!==this._trigger("search",
e))return this._search(a)},_search:function(a){this.pending++;this.element.addClass("ui-autocomplete-loading");this.cancelSearch=!1;this.source({term:a},this._response())},_response:function(){var a=this,e=++f;return function(d){e===f&&a.__response(d);a.pending--;a.pending||a.element.removeClass("ui-autocomplete-loading")}},__response:function(a){a&&(a=this._normalize(a));this._trigger("response",null,{content:a});!this.options.disabled&&a&&a.length&&!this.cancelSearch?(this._suggest(a),this._trigger("open")):
this._close()},close:function(a){this.cancelSearch=!0;this._close(a)},_close:function(a){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",a))},_change:function(a){this.previous!==this._value()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(f){return f.length&&f[0].label&&f[0].value?f:a.map(f,function(e){return"string"===typeof e?{label:e,value:e}:a.extend({label:e.label||e.value,value:e.value||e.label},e)})},
_suggest:function(f){var e=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(e,f);this.menu.refresh();e.show();this._resizeMenu();e.position(a.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(f,e){var d=this;a.each(e,function(a,c){d._renderItemData(f,c)})},_renderItemData:function(a,e){return this._renderItem(a,
e).data("ui-autocomplete-item",e)},_renderItem:function(f,e){return a("<li>").append(a("<a>").text(e.label)).appendTo(f)},_move:function(a,e){if(this.menu.element.is(":visible"))if(this.menu.isFirstItem()&&/^previous/.test(a)||this.menu.isLastItem()&&/^next/.test(a))this._value(this.term),this.menu.blur();else this.menu[a](e);else this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(a,e){if(!this.isMultiLine||
this.menu.element.is(":visible"))this._move(a,e),e.preventDefault()}});a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(f,e){var d=RegExp(a.ui.autocomplete.escapeRegex(e),"i");return a.grep(f,function(a){return d.test(a.label||a.value||a)})}});a.widget("ui.autocomplete",a.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(a){return a+(1<a?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},
__response:function(a){var e;this._superApply(arguments);this.options.disabled||this.cancelSearch||(e=a&&a.length?this.options.messages.results(a.length):this.options.messages.noResults,this.liveRegion.text(e))}})})(jQuery);
(function(a,m){var f,g,e,d,b=function(){var c=a(this).find(":ui-button");setTimeout(function(){c.button("refresh")},1)},c=function(c){var b=c.name,d=c.form,e=a([]);b&&(e=d?a(d).find("[name='"+b+"']"):a("[name='"+b+"']",c.ownerDocument).filter(function(){return!this.form}));return e};a.widget("ui.button",{version:"1.9.1",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+
this.eventNamespace,b);"boolean"!==typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled);this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var h=this,l=this.options,n="checkbox"===this.type||"radio"===this.type,q="ui-state-hover"+(n?"":" ui-state-active");null===l.label&&(l.label="input"===this.type?this.buttonElement.val():this.buttonElement.html());this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role",
"button").bind("mouseenter"+this.eventNamespace,function(){l.disabled||(a(this).addClass("ui-state-hover"),this===f&&a(this).addClass("ui-state-active"))}).bind("mouseleave"+this.eventNamespace,function(){l.disabled||a(this).removeClass(q)}).bind("click"+this.eventNamespace,function(a){l.disabled&&(a.preventDefault(),a.stopImmediatePropagation())});this.element.bind("focus"+this.eventNamespace,function(){h.buttonElement.addClass("ui-state-focus")}).bind("blur"+this.eventNamespace,function(){h.buttonElement.removeClass("ui-state-focus")});
n&&(this.element.bind("change"+this.eventNamespace,function(){d||h.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(a){l.disabled||(d=!1,g=a.pageX,e=a.pageY)}).bind("mouseup"+this.eventNamespace,function(a){l.disabled||g===a.pageX&&e===a.pageY||(d=!0)}));"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(l.disabled||d)return!1;a(this).toggleClass("ui-state-active");h.buttonElement.attr("aria-pressed",h.element[0].checked)}):"radio"===
this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(l.disabled||d)return!1;a(this).addClass("ui-state-active");h.buttonElement.attr("aria-pressed","true");var b=h.element[0];c(b).not(b).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(l.disabled)return!1;a(this).addClass("ui-state-active");f=this;h.document.one("mouseup",function(){f=null})}).bind("mouseup"+
this.eventNamespace,function(){if(l.disabled)return!1;a(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(c){if(l.disabled)return!1;c.keyCode!==a.ui.keyCode.SPACE&&c.keyCode!==a.ui.keyCode.ENTER||a(this).addClass("ui-state-active")}).bind("keyup"+this.eventNamespace,function(){a(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(c){c.keyCode===a.ui.keyCode.SPACE&&a(this).click()}));this._setOption("disabled",l.disabled);
this._resetButton()},_determineButtonType:function(){var a,c;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button";"checkbox"===this.type||"radio"===this.type?(a=this.element.parents().last(),c="label[for='"+this.element.attr("id")+"']",this.buttonElement=a.find(c),this.buttonElement.length||(a=a.length?a.siblings():this.element.siblings(),this.buttonElement=a.filter(c),this.buttonElement.length||
(this.buttonElement=a.find(c))),this.element.addClass("ui-helper-hidden-accessible"),(a=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",a)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(a,c){this._super(a,c);"disabled"===a?c?this.element.prop("disabled",!0):this.element.prop("disabled",!1):this._resetButton()},refresh:function(){var b=this.element.is(":disabled")||this.element.hasClass("ui-button-disabled");b!==this.options.disabled&&this._setOption("disabled",b);"radio"===this.type?c(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
"true"):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)this.options.label&&this.element.val(this.options.label);else{var c=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
b=a("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(c.empty()).text(),d=this.options.icons,e=d.primary&&d.secondary,f=[];d.primary||d.secondary?(this.options.text&&f.push("ui-button-text-icon"+(e?"s":d.primary?"-primary":"-secondary")),d.primary&&c.prepend("<span class='ui-button-icon-primary ui-icon "+d.primary+"'></span>"),d.secondary&&c.append("<span class='ui-button-icon-secondary ui-icon "+d.secondary+"'></span>"),this.options.text||(f.push(e?"ui-button-icons-only":
"ui-button-icon-only"),this.hasTitle||c.attr("title",a.trim(b)))):f.push("ui-button-text-only");c.addClass(f.join(" "))}}});a.widget("ui.buttonset",{version:"1.9.1",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(a,c){"disabled"===a&&this.buttons.button("option",a,c);this._super(a,c)},refresh:function(){var c=
"rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(c?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(c?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})})(jQuery);
(function(a,m){function f(){this.debug=!1;this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._inDialog=this._datepickerShowing=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:"January February March April May June July August September October November December".split(" "),monthNamesShort:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),dayNames:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),dayNamesShort:"Sun Mon Tue Wed Thu Fri Sat".split(" "),dayNamesMin:"Su Mo Tu We Th Fr Sa".split(" "),
weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,
beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};a.extend(this._defaults,this.regional[""]);this.dpDiv=g(a('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function g(c){return c.delegate("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a",
"mouseout",function(){a(this).removeClass("ui-state-hover");-1!=this.className.indexOf("ui-datepicker-prev")&&a(this).removeClass("ui-datepicker-prev-hover");-1!=this.className.indexOf("ui-datepicker-next")&&a(this).removeClass("ui-datepicker-next-hover")}).delegate("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a","mouseover",function(){a.datepicker._isDisabledDatepicker(b.inline?c.parent()[0]:b.input[0])||(a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),
a(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-datepicker-prev")&&a(this).addClass("ui-datepicker-prev-hover"),-1!=this.className.indexOf("ui-datepicker-next")&&a(this).addClass("ui-datepicker-next-hover"))})}function e(c,b){a.extend(c,b);for(var d in b)if(null==b[d]||b[d]==m)c[d]=b[d];return c}a.extend(a.ui,{datepicker:{version:"1.9.1"}});var d=(new Date).getTime(),b;a.extend(f.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",
arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){e(this._defaults,a||{});return this},_attachDatepicker:function(c,b){var d=null,e;for(e in this._defaults){var f=c.getAttribute("date:"+e);if(f){d=d||{};try{d[e]=eval(f)}catch(g){d[e]=f}}}e=c.nodeName.toLowerCase();f="div"==e||"span"==e;c.id||(this.uuid+=1,c.id="dp"+this.uuid);var m=this._newInst(a(c),f);m.settings=a.extend({},b||{},d||{});"input"==e?this._connectDatepicker(c,m):f&&this._inlineDatepicker(c,m)},_newInst:function(c,
b){return{id:c[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:c,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:b?g(a('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')):this.dpDiv}},_connectDatepicker:function(c,b){var d=a(c);b.append=a([]);b.trigger=a([]);d.hasClass(this.markerClassName)||(this._attachments(d,b),d.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",
function(a,c,d){b.settings[c]=d}).bind("getData.datepicker",function(a,c){return this._get(b,c)}),this._autoSize(b),a.data(c,"datepicker",b),b.settings.disabled&&this._disableDatepicker(c))},_attachments:function(c,b){var d=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();d&&(b.append=a('<span class="'+this._appendClass+'">'+d+"</span>"),c[e?"before":"after"](b.append));c.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();d=this._get(b,"showOn");"focus"!=
d&&"both"!=d||c.focus(this._showDatepicker);if("button"==d||"both"==d){var d=this._get(b,"buttonText"),f=this._get(b,"buttonImage");b.trigger=a(this._get(b,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:f,alt:d,title:d}):a('<button type="button"></button>').addClass(this._triggerClass).html(""==f?d:a("<img/>").attr({src:f,alt:d,title:d})));c[e?"before":"after"](b.trigger);b.trigger.click(function(){a.datepicker._datepickerShowing&&a.datepicker._lastInput==c[0]?a.datepicker._hideDatepicker():
(a.datepicker._datepickerShowing&&a.datepicker._lastInput!=c[0]&&a.datepicker._hideDatepicker(),a.datepicker._showDatepicker(c[0]));return!1})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),d=this._get(a,"dateFormat");if(d.match(/[DM]/)){var e=function(a){for(var c=0,b=0,d=0;d<a.length;d++)a[d].length>c&&(c=a[d].length,b=d);return b};b.setMonth(e(this._get(a,d.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,d.match(/DD/)?"dayNames":
"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(c,b){var d=a(c);d.hasClass(this.markerClassName)||(d.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(a,c,d){b.settings[c]=d}).bind("getData.datepicker",function(a,c){return this._get(b,c)}),a.data(c,"datepicker",b),this._setDate(b,this._getDefaultDate(b),!0),this._updateDatepicker(b),this._updateAlternate(b),b.settings.disabled&&this._disableDatepicker(c),
b.dpDiv.css("display","block"))},_dialogDatepicker:function(c,b,d,f,g){c=this._dialogInst;c||(this.uuid+=1,this._dialogInput=a('<input type="text" id="dp'+this.uuid+'" style="position: absolute; top: -100px; width: 0px;"/>'),this._dialogInput.keydown(this._doKeyDown),a("body").append(this._dialogInput),c=this._dialogInst=this._newInst(this._dialogInput,!1),c.settings={},a.data(this._dialogInput[0],"datepicker",c));e(c.settings,f||{});b=b&&b.constructor==Date?this._formatDate(c,b):b;this._dialogInput.val(b);
this._pos=g?g.length?g:[g.pageX,g.pageY]:null;this._pos||(this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]);this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");c.settings.onSelect=d;this._inDialog=!0;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);a.blockUI&&a.blockUI(this.dpDiv);
a.data(this._dialogInput[0],"datepicker",c);return this},_destroyDatepicker:function(c){var b=a(c),d=a.data(c,"datepicker");if(b.hasClass(this.markerClassName)){var e=c.nodeName.toLowerCase();a.removeData(c,"datepicker");"input"==e?(d.append.remove(),d.trigger.remove(),b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!=e&&"span"!=e||b.removeClass(this.markerClassName).empty()}},
_enableDatepicker:function(c){var b=a(c),d=a.data(c,"datepicker");if(b.hasClass(this.markerClassName)){var e=c.nodeName.toLowerCase();if("input"==e)c.disabled=!1,d.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if("div"==e||"span"==e)b=b.children("."+this._inlineClass),b.children().removeClass("ui-state-disabled"),b.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1);this._disabledInputs=a.map(this._disabledInputs,
function(a){return a==c?null:a})}},_disableDatepicker:function(c){var b=a(c),d=a.data(c,"datepicker");if(b.hasClass(this.markerClassName)){var e=c.nodeName.toLowerCase();if("input"==e)c.disabled=!0,d.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if("div"==e||"span"==e)b=b.children("."+this._inlineClass),b.children().addClass("ui-state-disabled"),b.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",
!0);this._disabledInputs=a.map(this._disabledInputs,function(a){return a==c?null:a});this._disabledInputs[this._disabledInputs.length]=c}},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return!0;return!1},_getInst:function(c){try{return a.data(c,"datepicker")}catch(b){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(c,b,d){var f=this._getInst(c);if(2==arguments.length&&"string"==typeof b)return"defaults"==
b?a.extend({},a.datepicker._defaults):f?"all"==b?a.extend({},f.settings):this._get(f,b):null;var g=b||{};"string"==typeof b&&(g={},g[b]=d);if(f){this._curInst==f&&this._hideDatepicker();var t=this._getDateDatepicker(c,!0),z=this._getMinMaxDate(f,"min"),v=this._getMinMaxDate(f,"max");e(f.settings,g);null!==z&&g.dateFormat!==m&&g.minDate===m&&(f.settings.minDate=this._formatDate(f,z));null!==v&&g.dateFormat!==m&&g.maxDate===m&&(f.settings.maxDate=this._formatDate(f,v));this._attachments(a(c),f);this._autoSize(f);
this._setDate(f,t);this._updateAlternate(f);this._updateDatepicker(f)}},_changeDatepicker:function(a,b,d){this._optionDatepicker(a,b,d)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){var d=this._getInst(a);d&&(this._setDate(d,b),this._updateDatepicker(d),this._updateAlternate(d))},_getDateDatepicker:function(a,b){var d=this._getInst(a);d&&!d.inline&&this._setDateFromField(d,b);return d?this._getDate(d):null},_doKeyDown:function(c){var b=
a.datepicker._getInst(c.target),d=!0,e=b.dpDiv.is(".ui-datepicker-rtl");b._keyEvent=!0;if(a.datepicker._datepickerShowing)switch(c.keyCode){case 9:a.datepicker._hideDatepicker();d=!1;break;case 13:return d=a("td."+a.datepicker._dayOverClass+":not(."+a.datepicker._currentClass+")",b.dpDiv),d[0]&&a.datepicker._selectDay(c.target,b.selectedMonth,b.selectedYear,d[0]),(c=a.datepicker._get(b,"onSelect"))?(d=a.datepicker._formatDate(b),c.apply(b.input?b.input[0]:null,[d,b])):a.datepicker._hideDatepicker(),
!1;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(c.target,c.ctrlKey?-a.datepicker._get(b,"stepBigMonths"):-a.datepicker._get(b,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(c.target,c.ctrlKey?+a.datepicker._get(b,"stepBigMonths"):+a.datepicker._get(b,"stepMonths"),"M");break;case 35:(c.ctrlKey||c.metaKey)&&a.datepicker._clearDate(c.target);d=c.ctrlKey||c.metaKey;break;case 36:(c.ctrlKey||c.metaKey)&&a.datepicker._gotoToday(c.target);d=c.ctrlKey||c.metaKey;
break;case 37:(c.ctrlKey||c.metaKey)&&a.datepicker._adjustDate(c.target,e?1:-1,"D");d=c.ctrlKey||c.metaKey;c.originalEvent.altKey&&a.datepicker._adjustDate(c.target,c.ctrlKey?-a.datepicker._get(b,"stepBigMonths"):-a.datepicker._get(b,"stepMonths"),"M");break;case 38:(c.ctrlKey||c.metaKey)&&a.datepicker._adjustDate(c.target,-7,"D");d=c.ctrlKey||c.metaKey;break;case 39:(c.ctrlKey||c.metaKey)&&a.datepicker._adjustDate(c.target,e?-1:1,"D");d=c.ctrlKey||c.metaKey;c.originalEvent.altKey&&a.datepicker._adjustDate(c.target,
c.ctrlKey?+a.datepicker._get(b,"stepBigMonths"):+a.datepicker._get(b,"stepMonths"),"M");break;case 40:(c.ctrlKey||c.metaKey)&&a.datepicker._adjustDate(c.target,7,"D");d=c.ctrlKey||c.metaKey;break;default:d=!1}else 36==c.keyCode&&c.ctrlKey?a.datepicker._showDatepicker(this):d=!1;d&&(c.preventDefault(),c.stopPropagation())},_doKeyPress:function(c){var b=a.datepicker._getInst(c.target);if(a.datepicker._get(b,"constrainInput")){var b=a.datepicker._possibleChars(a.datepicker._get(b,"dateFormat")),d=String.fromCharCode(c.charCode==
m?c.keyCode:c.charCode);return c.ctrlKey||c.metaKey||" ">d||!b||-1<b.indexOf(d)}},_doKeyUp:function(c){c=a.datepicker._getInst(c.target);if(c.input.val()!=c.lastVal)try{a.datepicker.parseDate(a.datepicker._get(c,"dateFormat"),c.input?c.input.val():null,a.datepicker._getFormatConfig(c))&&(a.datepicker._setDateFromField(c),a.datepicker._updateAlternate(c),a.datepicker._updateDatepicker(c))}catch(b){a.datepicker.log(b)}return!0},_showDatepicker:function(c){c=c.target||c;"input"!=c.nodeName.toLowerCase()&&
(c=a("input",c.parentNode)[0]);if(!a.datepicker._isDisabledDatepicker(c)&&a.datepicker._lastInput!=c){var b=a.datepicker._getInst(c);a.datepicker._curInst&&a.datepicker._curInst!=b&&(a.datepicker._curInst.dpDiv.stop(!0,!0),b&&a.datepicker._datepickerShowing&&a.datepicker._hideDatepicker(a.datepicker._curInst.input[0]));var d=a.datepicker._get(b,"beforeShow"),d=d?d.apply(c,[c,b]):{};if(!1!==d){e(b.settings,d);b.lastVal=null;a.datepicker._lastInput=c;a.datepicker._setDateFromField(b);a.datepicker._inDialog&&
(c.value="");a.datepicker._pos||(a.datepicker._pos=a.datepicker._findPos(c),a.datepicker._pos[1]+=c.offsetHeight);var f=!1;a(c).parents().each(function(){f|="fixed"==a(this).css("position");return!f});d={left:a.datepicker._pos[0],top:a.datepicker._pos[1]};a.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});a.datepicker._updateDatepicker(b);d=a.datepicker._checkOffset(b,d,f);b.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":f?"fixed":
"absolute",display:"none",left:d.left+"px",top:d.top+"px"});if(!b.inline){var d=a.datepicker._get(b,"showAnim"),g=a.datepicker._get(b,"duration"),m=function(){var c=b.dpDiv.find("iframe.ui-datepicker-cover");if(c.length){var d=a.datepicker._getBorders(b.dpDiv);c.css({left:-d[0],top:-d[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(a(c).zIndex()+1);a.datepicker._datepickerShowing=!0;if(a.effects&&(a.effects.effect[d]||a.effects[d]))b.dpDiv.show(d,a.datepicker._get(b,
"showOptions"),g,m);else b.dpDiv[d||"show"](d?g:null,m);d&&g||m();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();a.datepicker._curInst=b}}}},_updateDatepicker:function(c){this.maxRows=4;var d=a.datepicker._getBorders(c.dpDiv);b=c;c.dpDiv.empty().append(this._generateHTML(c));this._attachHandlers(c);var e=c.dpDiv.find("iframe.ui-datepicker-cover");e.length&&e.css({left:-d[0],top:-d[1],width:c.dpDiv.outerWidth(),height:c.dpDiv.outerHeight()});c.dpDiv.find("."+this._dayOverClass+" a").mouseover();
d=this._getNumberOfMonths(c);e=d[1];c.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");1<e&&c.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em");c.dpDiv[(1!=d[0]||1!=d[1]?"add":"remove")+"Class"]("ui-datepicker-multi");c.dpDiv[(this._get(c,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");c==a.datepicker._curInst&&a.datepicker._datepickerShowing&&c.input&&c.input.is(":visible")&&!c.input.is(":disabled")&&c.input[0]!=document.activeElement&&
c.input.focus();if(c.yearshtml){var f=c.yearshtml;setTimeout(function(){f===c.yearshtml&&c.yearshtml&&c.dpDiv.find("select.ui-datepicker-year:first").replaceWith(c.yearshtml);f=c.yearshtml=null},0)}},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(c,b,d){var e=c.dpDiv.outerWidth(),f=c.dpDiv.outerHeight(),g=c.input?c.input.outerWidth():0,m=c.input?c.input.outerHeight():
0,v=document.documentElement.clientWidth+(d?0:a(document).scrollLeft()),A=document.documentElement.clientHeight+(d?0:a(document).scrollTop());b.left-=this._get(c,"isRTL")?e-g:0;b.left-=d&&b.left==c.input.offset().left?a(document).scrollLeft():0;b.top-=d&&b.top==c.input.offset().top+m?a(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>v&&v>e?Math.abs(b.left+e-v):0);b.top-=Math.min(b.top,b.top+f>A&&A>f?Math.abs(f+m):0);return b},_findPos:function(c){for(var b=this._getInst(c),b=this._get(b,
"isRTL");c&&("hidden"==c.type||1!=c.nodeType||a.expr.filters.hidden(c));)c=c[b?"previousSibling":"nextSibling"];c=a(c).offset();return[c.left,c.top]},_hideDatepicker:function(c){var b=this._curInst;if(b&&(!c||b==a.data(c,"datepicker"))&&this._datepickerShowing){c=this._get(b,"showAnim");var d=this._get(b,"duration"),e=function(){a.datepicker._tidyDialog(b)};if(a.effects&&(a.effects.effect[c]||a.effects[c]))b.dpDiv.hide(c,a.datepicker._get(b,"showOptions"),d,e);else b.dpDiv["slideDown"==c?"slideUp":
"fadeIn"==c?"fadeOut":"hide"](c?d:null,e);c||e();this._datepickerShowing=!1;(c=this._get(b,"onClose"))&&c.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b]);this._lastInput=null;this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv)));this._inDialog=!1}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(c){if(a.datepicker._curInst){c=
a(c.target);var b=a.datepicker._getInst(c[0]);(c[0].id!=a.datepicker._mainDivId&&0==c.parents("#"+a.datepicker._mainDivId).length&&!(c.hasClass(a.datepicker.markerClassName)||c.closest("."+a.datepicker._triggerClass).length||!a.datepicker._datepickerShowing||a.datepicker._inDialog&&a.blockUI)||c.hasClass(a.datepicker.markerClassName)&&a.datepicker._curInst!=b)&&a.datepicker._hideDatepicker()}},_adjustDate:function(c,b,d){c=a(c);var e=this._getInst(c[0]);this._isDisabledDatepicker(c[0])||(this._adjustInstDate(e,
b+("M"==d?this._get(e,"showCurrentAtPos"):0),d),this._updateDatepicker(e))},_gotoToday:function(c){c=a(c);var b=this._getInst(c[0]);if(this._get(b,"gotoCurrent")&&b.currentDay)b.selectedDay=b.currentDay,b.drawMonth=b.selectedMonth=b.currentMonth,b.drawYear=b.selectedYear=b.currentYear;else{var d=new Date;b.selectedDay=d.getDate();b.drawMonth=b.selectedMonth=d.getMonth();b.drawYear=b.selectedYear=d.getFullYear()}this._notifyChange(b);this._adjustDate(c)},_selectMonthYear:function(c,b,d){c=a(c);var e=
this._getInst(c[0]);e["selected"+("M"==d?"Month":"Year")]=e["draw"+("M"==d?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(c)},_selectDay:function(c,b,d,e){var f=a(c);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0])||(f=this._getInst(f[0]),f.selectedDay=f.currentDay=a("a",e).html(),f.selectedMonth=f.currentMonth=b,f.selectedYear=f.currentYear=d,this._selectDate(c,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},
_clearDate:function(c){c=a(c);this._getInst(c[0]);this._selectDate(c,"")},_selectDate:function(c,b){var d=a(c),d=this._getInst(d[0]);b=null!=b?b:this._formatDate(d);d.input&&d.input.val(b);this._updateAlternate(d);var e=this._get(d,"onSelect");e?e.apply(d.input?d.input[0]:null,[b,d]):d.input&&d.input.trigger("change");d.inline?this._updateDatepicker(d):(this._hideDatepicker(),this._lastInput=d.input[0],"object"!=typeof d.input[0]&&d.input.focus(),this._lastInput=null)},_updateAlternate:function(c){var b=
this._get(c,"altField");if(b){var d=this._get(c,"altFormat")||this._get(c,"dateFormat"),e=this._getDate(c),f=this.formatDate(d,e,this._getFormatConfig(c));a(b).each(function(){a(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[0<a&&6>a,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(c,b,d){if(null==c||null==b)throw"Invalid arguments";
b="object"==typeof b?b.toString():b+"";if(""==b)return null;for(var e=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),f=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,g=(d?d.dayNames:null)||this._defaults.dayNames,m=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,v=(d?d.monthNames:null)||this._defaults.monthNames,A=d=-1,s=-1,F=-1,u=!1,B=function(a){(a=H+1<c.length&&c.charAt(H+1)==a)&&H++;return a},r=function(a){var c=
B(a);a=RegExp("^\\d{1,"+("@"==a?14:"!"==a?20:"y"==a&&c?4:"o"==a?3:2)+"}");a=b.substring(y).match(a);if(!a)throw"Missing number at position "+y;y+=a[0].length;return parseInt(a[0],10)},p=function(c,d,e){c=a.map(B(c)?e:d,function(a,c){return[[c,a]]}).sort(function(a,c){return-(a[1].length-c[1].length)});var f=-1;a.each(c,function(a,c){var d=c[1];if(b.substr(y,d.length).toLowerCase()==d.toLowerCase())return f=c[0],y+=d.length,!1});if(-1!=f)return f+1;throw"Unknown name at position "+y;},x=function(){if(b.charAt(y)!=
c.charAt(H))throw"Unexpected literal at position "+y;y++},y=0,H=0;H<c.length;H++)if(u)"'"!=c.charAt(H)||B("'")?x():u=!1;else switch(c.charAt(H)){case "d":s=r("d");break;case "D":p("D",f,g);break;case "o":F=r("o");break;case "m":A=r("m");break;case "M":A=p("M",m,v);break;case "y":d=r("y");break;case "@":var K=new Date(r("@"));d=K.getFullYear();A=K.getMonth()+1;s=K.getDate();break;case "!":K=new Date((r("!")-this._ticksTo1970)/1E4);d=K.getFullYear();A=K.getMonth()+1;s=K.getDate();break;case "'":B("'")?
x():u=!0;break;default:x()}if(y<b.length&&(f=b.substr(y),!/^\s+/.test(f)))throw"Extra/unparsed characters found in date: "+f;-1==d?d=(new Date).getFullYear():100>d&&(d+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d<=e?0:-100));if(-1<F){A=1;s=F;do{e=this._getDaysInMonth(d,A-1);if(s<=e)break;A++;s-=e}while(1)}K=this._daylightSavingAdjust(new Date(d,A-1,s));if(K.getFullYear()!=d||K.getMonth()+1!=A||K.getDate()!=s)throw"Invalid date";return K},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",
RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864E9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(a,b,d){if(!b)return"";var e=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,f=(d?d.dayNames:null)||this._defaults.dayNames,g=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort;d=(d?d.monthNames:null)||this._defaults.monthNames;var m=
function(b){(b=u+1<a.length&&a.charAt(u+1)==b)&&u++;return b},v=function(a,c,b){c=""+c;if(m(a))for(;c.length<b;)c="0"+c;return c},A=function(a,c,b,d){return m(a)?d[c]:b[c]},s="",F=!1;if(b)for(var u=0;u<a.length;u++)if(F)"'"!=a.charAt(u)||m("'")?s+=a.charAt(u):F=!1;else switch(a.charAt(u)){case "d":s+=v("d",b.getDate(),2);break;case "D":s+=A("D",b.getDay(),e,f);break;case "o":s+=v("o",Math.round(((new Date(b.getFullYear(),b.getMonth(),b.getDate())).getTime()-(new Date(b.getFullYear(),0,0)).getTime())/
864E5),3);break;case "m":s+=v("m",b.getMonth()+1,2);break;case "M":s+=A("M",b.getMonth(),g,d);break;case "y":s+=m("y")?b.getFullYear():(10>b.getYear()%100?"0":"")+b.getYear()%100;break;case "@":s+=b.getTime();break;case "!":s+=1E4*b.getTime()+this._ticksTo1970;break;case "'":m("'")?s+="'":F=!0;break;default:s+=a.charAt(u)}return s},_possibleChars:function(a){for(var b="",d=!1,e=function(b){(b=f+1<a.length&&a.charAt(f+1)==b)&&f++;return b},f=0;f<a.length;f++)if(d)"'"!=a.charAt(f)||e("'")?b+=a.charAt(f):
d=!1;else switch(a.charAt(f)){case "d":case "m":case "y":case "@":b+="0123456789";break;case "D":case "M":return null;case "'":e("'")?b+="'":d=!0;break;default:b+=a.charAt(f)}return b},_get:function(a,b){return a.settings[b]!==m?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var d=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,g;f=g=this._getDefaultDate(a);var m=this._getFormatConfig(a);try{f=this.parseDate(d,e,m)||g}catch(v){this.log(v),
e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(c,b,d){var e=function(a){var c=new Date;c.setDate(c.getDate()+a);return c},f=function(b){try{return a.datepicker.parseDate(a.datepicker._get(c,
"dateFormat"),b,a.datepicker._getFormatConfig(c))}catch(d){}for(var e=(b.toLowerCase().match(/^c/)?a.datepicker._getDate(c):null)||new Date,f=e.getFullYear(),g=e.getMonth(),e=e.getDate(),h=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=h.exec(b);l;){switch(l[2]||"d"){case "d":case "D":e+=parseInt(l[1],10);break;case "w":case "W":e+=7*parseInt(l[1],10);break;case "m":case "M":g+=parseInt(l[1],10);e=Math.min(e,a.datepicker._getDaysInMonth(f,g));break;case "y":case "Y":f+=parseInt(l[1],10),e=Math.min(e,a.datepicker._getDaysInMonth(f,
g))}l=h.exec(b)}return new Date(f,g,e)};if(b=(b=null==b||""===b?d:"string"==typeof b?f(b):"number"==typeof b?isNaN(b)?d:e(b):new Date(b.getTime()))&&"Invalid Date"==b.toString()?d:b)b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0);return this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(12<a.getHours()?a.getHours()+2:0);return a},_setDate:function(a,b,d){var e=!b,f=a.selectedMonth,g=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,
b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();f==a.selectedMonth&&g==a.selectedYear||d||this._notifyChange(a);this._adjustInstDate(a);a.input&&a.input.val(e?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&""==a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_attachHandlers:function(c){var b=this._get(c,
"stepMonths"),e="#"+c.id.replace(/\\\\/g,"\\");c.dpDiv.find("[data-handler]").map(function(){a(this).bind(this.getAttribute("data-event"),{prev:function(){window["DP_jQuery_"+d].datepicker._adjustDate(e,-b,"M")},next:function(){window["DP_jQuery_"+d].datepicker._adjustDate(e,+b,"M")},hide:function(){window["DP_jQuery_"+d].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+d].datepicker._gotoToday(e)},selectDay:function(){window["DP_jQuery_"+d].datepicker._selectDay(e,+this.getAttribute("data-month"),
+this.getAttribute("data-year"),this);return!1},selectMonth:function(){window["DP_jQuery_"+d].datepicker._selectMonthYear(e,this,"M");return!1},selectYear:function(){window["DP_jQuery_"+d].datepicker._selectMonthYear(e,this,"Y");return!1}}[this.getAttribute("data-handler")])})},_generateHTML:function(c){var b=new Date,b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate())),d=this._get(c,"isRTL"),e=this._get(c,"showButtonPanel"),f=this._get(c,"hideIfNoPrevNext"),g=this._get(c,
"navigationAsDateFormat"),m=this._getNumberOfMonths(c),v=this._get(c,"showCurrentAtPos"),A=this._get(c,"stepMonths"),s=1!=m[0]||1!=m[1],F=this._daylightSavingAdjust(c.currentDay?new Date(c.currentYear,c.currentMonth,c.currentDay):new Date(9999,9,9)),u=this._getMinMaxDate(c,"min"),B=this._getMinMaxDate(c,"max"),v=c.drawMonth-v,r=c.drawYear;0>v&&(v+=12,r--);if(B)for(var p=this._daylightSavingAdjust(new Date(B.getFullYear(),B.getMonth()-m[0]*m[1]+1,B.getDate())),p=u&&p<u?u:p;this._daylightSavingAdjust(new Date(r,
v,1))>p;)v--,0>v&&(v=11,r--);c.drawMonth=v;c.drawYear=r;var p=this._get(c,"prevText"),p=g?this.formatDate(p,this._daylightSavingAdjust(new Date(r,v-A,1)),this._getFormatConfig(c)):p,p=this._canAdjustMonth(c,-1,r,v)?'<a class="ui-datepicker-prev ui-corner-all" data-handler="prev" data-event="click" title="'+p+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"e":"w")+'">'+p+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+p+'"><span class="ui-icon ui-icon-circle-triangle-'+
(d?"e":"w")+'">'+p+"</span></a>",x=this._get(c,"nextText"),x=g?this.formatDate(x,this._daylightSavingAdjust(new Date(r,v+A,1)),this._getFormatConfig(c)):x,f=this._canAdjustMonth(c,1,r,v)?'<a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click" title="'+x+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"w":"e")+'">'+x+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+x+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"w":
"e")+'">'+x+"</span></a>",A=this._get(c,"currentText"),x=this._get(c,"gotoCurrent")&&c.currentDay?F:b,A=g?this.formatDate(A,x,this._getFormatConfig(c)):A,g=c.inline?"":'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" data-handler="hide" data-event="click">'+this._get(c,"closeText")+"</button>",e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(d?g:"")+(this._isInRange(c,x)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler="today" data-event="click">'+
A+"</button>":"")+(d?"":g)+"</div>":"",g=parseInt(this._get(c,"firstDay"),10),g=isNaN(g)?0:g,A=this._get(c,"showWeek"),x=this._get(c,"dayNames");this._get(c,"dayNamesShort");var y=this._get(c,"dayNamesMin"),H=this._get(c,"monthNames"),K=this._get(c,"monthNamesShort"),O=this._get(c,"beforeShowDay"),N=this._get(c,"showOtherMonths"),aa=this._get(c,"selectOtherMonths");this._get(c,"calculateWeek");for(var Y=this._getDefaultDate(c),S="",Q=0;Q<m[0];Q++){var V="";this.maxRows=4;for(var W=0;W<m[1];W++){var L=
this._daylightSavingAdjust(new Date(r,v,c.selectedDay)),C=" ui-corner-all",J="";if(s){J+='<div class="ui-datepicker-group';if(1<m[1])switch(W){case 0:J+=" ui-datepicker-group-first";C=" ui-corner-"+(d?"right":"left");break;case m[1]-1:J+=" ui-datepicker-group-last";C=" ui-corner-"+(d?"left":"right");break;default:J+=" ui-datepicker-group-middle",C=""}J+='">'}for(var J=J+('<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+C+'">'+(/all|left/.test(C)&&0==Q?d?f:p:"")+(/all|right/.test(C)&&
0==Q?d?p:f:"")+this._generateMonthYearHeader(c,v,r,u,B,0<Q||0<W,H,K)+'</div><table class="ui-datepicker-calendar"><thead><tr>'),P=A?'<th class="ui-datepicker-week-col">'+this._get(c,"weekHeader")+"</th>":"",C=0;7>C;C++)var M=(C+g)%7,P=P+("<th"+(5<=(C+g+6)%7?' class="ui-datepicker-week-end"':"")+'><span title="'+x[M]+'">'+y[M]+"</span></th>");J+=P+"</tr></thead><tbody>";P=this._getDaysInMonth(r,v);r==c.selectedYear&&v==c.selectedMonth&&(c.selectedDay=Math.min(c.selectedDay,P));C=(this._getFirstDayOfMonth(r,
v)-g+7)%7;P=Math.ceil((C+P)/7);this.maxRows=P=s?this.maxRows>P?this.maxRows:P:P;for(var M=this._daylightSavingAdjust(new Date(r,v,1-C)),G=0;G<P;G++){for(var J=J+"<tr>",Z=A?'<td class="ui-datepicker-week-col">'+this._get(c,"calculateWeek")(M)+"</td>":"",C=0;7>C;C++){var U=O?O.apply(c.input?c.input[0]:null,[M]):[!0,""],R=M.getMonth()!=v,ca=R&&!aa||!U[0]||u&&M<u||B&&M>B,Z=Z+('<td class="'+(5<=(C+g+6)%7?" ui-datepicker-week-end":"")+(R?" ui-datepicker-other-month":"")+(M.getTime()==L.getTime()&&v==c.selectedMonth&&
c._keyEvent||Y.getTime()==M.getTime()&&Y.getTime()==L.getTime()?" "+this._dayOverClass:"")+(ca?" "+this._unselectableClass+" ui-state-disabled":"")+(R&&!N?"":" "+U[1]+(M.getTime()==F.getTime()?" "+this._currentClass:"")+(M.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+(R&&!N||!U[2]?"":' title="'+U[2]+'"')+(ca?"":' data-handler="selectDay" data-event="click" data-month="'+M.getMonth()+'" data-year="'+M.getFullYear()+'"')+">"+(R&&!N?"&#xa0;":ca?'<span class="ui-state-default">'+M.getDate()+
"</span>":'<a class="ui-state-default'+(M.getTime()==b.getTime()?" ui-state-highlight":"")+(M.getTime()==F.getTime()?" ui-state-active":"")+(R?" ui-priority-secondary":"")+'" href="#">'+M.getDate()+"</a>")+"</td>");M.setDate(M.getDate()+1);M=this._daylightSavingAdjust(M)}J+=Z+"</tr>"}v++;11<v&&(v=0,r++);J+="</tbody></table>"+(s?"</div>"+(0<m[0]&&W==m[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");V+=J}S+=V}S+=e+(a.ui.ie6&&!c.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':
"");c._keyEvent=!1;return S},_generateMonthYearHeader:function(a,b,d,e,f,g,m,v){var A=this._get(a,"changeMonth"),s=this._get(a,"changeYear"),F=this._get(a,"showMonthAfterYear"),u='<div class="ui-datepicker-title">',B="";if(g||!A)B+='<span class="ui-datepicker-month">'+m[b]+"</span>";else{m=e&&e.getFullYear()==d;for(var r=f&&f.getFullYear()==d,B=B+'<select class="ui-datepicker-month" data-handler="selectMonth" data-event="change">',p=0;12>p;p++)(!m||p>=e.getMonth())&&(!r||p<=f.getMonth())&&(B+='<option value="'+
p+'"'+(p==b?' selected="selected"':"")+">"+v[p]+"</option>");B+="</select>"}F||(u+=B+(!g&&A&&s?"":"&#xa0;"));if(!a.yearshtml)if(a.yearshtml="",g||!s)u+='<span class="ui-datepicker-year">'+d+"</span>";else{v=this._get(a,"yearRange").split(":");var x=(new Date).getFullYear();m=function(a){a=a.match(/c[+-].*/)?d+parseInt(a.substring(1),10):a.match(/[+-].*/)?x+parseInt(a,10):parseInt(a,10);return isNaN(a)?x:a};b=m(v[0]);v=Math.max(b,m(v[1]||""));b=e?Math.max(b,e.getFullYear()):b;v=f?Math.min(v,f.getFullYear()):
v;for(a.yearshtml+='<select class="ui-datepicker-year" data-handler="selectYear" data-event="change">';b<=v;b++)a.yearshtml+='<option value="'+b+'"'+(b==d?' selected="selected"':"")+">"+b+"</option>";a.yearshtml+="</select>";u+=a.yearshtml;a.yearshtml=null}u+=this._get(a,"yearSuffix");F&&(u+=(!g&&A&&s?"":"&#xa0;")+B);return u+"</div>"},_adjustInstDate:function(a,b,d){var e=a.drawYear+("Y"==d?b:0),f=a.drawMonth+("M"==d?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+("D"==d?b:0);e=this._restrictMinMax(a,
this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();"M"!=d&&"Y"!=d||this._notifyChange(a)},_restrictMinMax:function(a,b){var d=this._getMinMaxDate(a,"min"),e=this._getMinMaxDate(a,"max"),d=d&&b<d?d:b;return e&&d>e?e:d},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,
"numberOfMonths");return null==a?[1,1]:"number"==typeof a?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,d,e){var f=this._getNumberOfMonths(a);d=this._daylightSavingAdjust(new Date(d,e+(0>b?b:f[0]*f[1]),1));0>b&&d.setDate(this._getDaysInMonth(d.getFullYear(),
d.getMonth()));return this._isInRange(a,d)},_isInRange:function(a,b){var d=this._getMinMaxDate(a,"min"),e=this._getMinMaxDate(a,"max");return(!d||b.getTime()>=d.getTime())&&(!e||b.getTime()<=e.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff"),b="string"!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,
"monthNames")}},_formatDate:function(a,b,d,e){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);b=b?"object"==typeof b?b:this._daylightSavingAdjust(new Date(e,d,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});a.fn.datepicker=function(b){if(!this.length)return this;a.datepicker.initialized||(a(document).mousedown(a.datepicker._checkExternalClick).find(document.body).append(a.datepicker.dpDiv),
a.datepicker.initialized=!0);var d=Array.prototype.slice.call(arguments,1);return"string"==typeof b&&("isDisabled"==b||"getDate"==b||"widget"==b)||"option"==b&&2==arguments.length&&"string"==typeof arguments[1]?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(d)):this.each(function(){"string"==typeof b?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(d)):a.datepicker._attachDatepicker(this,b)})};a.datepicker=new f;a.datepicker.initialized=!1;a.datepicker.uuid=
(new Date).getTime();a.datepicker.version="1.9.1";window["DP_jQuery_"+d]=a})(jQuery);
(function(a,m){var f={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},g={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};a.widget("ui.dialog",{version:"1.9.1",options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var d=a(this).css(e).offset().top;0>d&&a(this).css("top",
e.top-d)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");"string"!==typeof this.originalTitle&&(this.originalTitle="");this.oldPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.options.title=this.options.title||this.originalTitle;var e=this,d=this.options,b=d.title||"&#160;",c,f,g,n;c=(this.uiDialog=a("<div>")).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
d.dialogClass).css({display:"none",outline:0,zIndex:d.zIndex}).attr("tabIndex",-1).keydown(function(b){d.closeOnEscape&&!b.isDefaultPrevented()&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE&&(e.close(b),b.preventDefault())}).mousedown(function(a){e.moveToTop(!1,a)}).appendTo("body");this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(c);f=(this.uiDialogTitlebar=a("<div>")).addClass("ui-dialog-titlebar  ui-widget-header  ui-corner-all  ui-helper-clearfix").bind("mousedown",
function(){c.focus()}).prependTo(c);g=a("<a href='#'></a>").addClass("ui-dialog-titlebar-close  ui-corner-all").attr("role","button").click(function(a){a.preventDefault();e.close(a)}).appendTo(f);(this.uiDialogTitlebarCloseText=a("<span>")).addClass("ui-icon ui-icon-closethick").text(d.closeText).appendTo(g);b=a("<span>").uniqueId().addClass("ui-dialog-title").html(b).prependTo(f);n=(this.uiDialogButtonPane=a("<div>")).addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");(this.uiButtonSet=
a("<div>")).addClass("ui-dialog-buttonset").appendTo(n);c.attr({role:"dialog","aria-labelledby":b.attr("id")});f.find("*").add(f).disableSelection();this._hoverable(g);this._focusable(g);d.draggable&&a.fn.draggable&&this._makeDraggable();d.resizable&&a.fn.resizable&&this._makeResizable();this._createButtons(d.buttons);this._isOpen=!1;a.fn.bgiframe&&c.bgiframe();this._on(c,{keydown:function(b){if(d.modal&&b.keyCode===a.ui.keyCode.TAB){var e=a(":tabbable",c),f=e.filter(":first"),e=e.filter(":last");
if(b.target===e[0]&&!b.shiftKey)return f.focus(1),!1;if(b.target===f[0]&&b.shiftKey)return e.focus(1),!1}}})},_init:function(){this.options.autoOpen&&this.open()},_destroy:function(){var a,d=this.oldPosition;this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);a=d.parent.children().eq(d.index);a.length&&a[0]!==this.element[0]?
a.before(this.element):d.parent.append(this.element)},widget:function(){return this.uiDialog},close:function(e){var d=this,b,c;if(this._isOpen&&!1!==this._trigger("beforeClose",e))return this._isOpen=!1,this.overlay&&this.overlay.destroy(),this.options.hide?this._hide(this.uiDialog,this.options.hide,function(){d._trigger("close",e)}):(this.uiDialog.hide(),this._trigger("close",e)),a.ui.dialog.overlay.resize(),this.options.modal&&(b=0,a(".ui-dialog").each(function(){this!==d.uiDialog[0]&&(c=a(this).css("z-index"),
isNaN(c)||(b=Math.max(b,c)))}),a.ui.dialog.maxZ=b),this},isOpen:function(){return this._isOpen},moveToTop:function(e,d){var b=this.options;if(b.modal&&!e||!b.stack&&!b.modal)return this._trigger("focus",d);b.zIndex>a.ui.dialog.maxZ&&(a.ui.dialog.maxZ=b.zIndex);this.overlay&&(a.ui.dialog.maxZ+=1,a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ,this.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ));b={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()};a.ui.dialog.maxZ+=1;this.uiDialog.css("z-index",
a.ui.dialog.maxZ);this.element.attr(b);this._trigger("focus",d);return this},open:function(){if(!this._isOpen){var e;e=this.options;var d=this.uiDialog;this._size();this._position(e.position);d.show(e.show);this.overlay=e.modal?new a.ui.dialog.overlay(this):null;this.moveToTop(!0);e=this.element.find(":tabbable");e.length||(e=this.uiDialogButtonPane.find(":tabbable"),e.length||(e=d));e.eq(0).focus();this._isOpen=!0;this._trigger("open");return this}},_createButtons:function(e){var d=this,b=!1;this.uiDialogButtonPane.remove();
this.uiButtonSet.empty();"object"===typeof e&&null!==e&&a.each(e,function(){return!(b=!0)});b?(a.each(e,function(b,e){e=a.isFunction(e)?{click:e,text:b}:e;var f=a("<button type='button'></button>").attr(e,!0).unbind("click").click(function(){e.click.apply(d.element[0],arguments)}).appendTo(d.uiButtonSet);a.fn.button&&f.button()}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)):this.uiDialog.removeClass("ui-dialog-buttons")},_makeDraggable:function(){function e(a){return{position:a.position,
offset:a.offset}}var d=this,b=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(b,f){a(this).addClass("ui-dialog-dragging");d._trigger("dragStart",b,e(f))},drag:function(a,b){d._trigger("drag",a,e(b))},stop:function(c,f){b.position=[f.position.left-d.document.scrollLeft(),f.position.top-d.document.scrollTop()];a(this).removeClass("ui-dialog-dragging");d._trigger("dragStop",c,e(f));a.ui.dialog.overlay.resize()}})},
_makeResizable:function(e){function d(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}e=e===m?this.options.resizable:e;var b=this,c=this.options,f=this.uiDialog.css("position");e="string"===typeof e?e:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:c.maxWidth,maxHeight:c.maxHeight,minWidth:c.minWidth,minHeight:this._minHeight(),handles:e,start:function(c,e){a(this).addClass("ui-dialog-resizing");
b._trigger("resizeStart",c,d(e))},resize:function(a,c){b._trigger("resize",a,d(c))},stop:function(e,f){a(this).removeClass("ui-dialog-resizing");c.height=a(this).height();c.width=a(this).width();b._trigger("resizeStop",e,d(f));a.ui.dialog.overlay.resize()}}).css("position",f).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return"auto"===a.height?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(e){var d=[],b=[0,0],c;if(e){if("string"===
typeof e||"object"===typeof e&&"0"in e)d=e.split?e.split(" "):[e[0],e[1]],1===d.length&&(d[1]=d[0]),a.each(["left","top"],function(a,c){+d[a]===d[a]&&(b[a]=d[a],d[a]=c)}),e={my:d[0]+(0>b[0]?b[0]:"+"+b[0])+" "+d[1]+(0>b[1]?b[1]:"+"+b[1]),at:d.join(" ")};e=a.extend({},a.ui.dialog.prototype.options.position,e)}else e=a.ui.dialog.prototype.options.position;(c=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.position(e);c||this.uiDialog.hide()},_setOptions:function(e){var d=this,b={},
c=!1;a.each(e,function(a,e){d._setOption(a,e);a in f&&(c=!0);a in g&&(b[a]=e)});c&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",b)},_setOption:function(e,d){var b,c=this.uiDialog;switch(e){case "buttons":this._createButtons(d);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+d);break;case "dialogClass":c.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+d);break;case "disabled":d?c.addClass("ui-dialog-disabled"):
c.removeClass("ui-dialog-disabled");break;case "draggable":(b=c.is(":data(draggable)"))&&!d&&c.draggable("destroy");!b&&d&&this._makeDraggable();break;case "position":this._position(d);break;case "resizable":(b=c.is(":data(resizable)"))&&!d&&c.resizable("destroy");b&&"string"===typeof d&&c.resizable("option","handles",d);b||!1===d||this._makeResizable(d);break;case "title":a(".ui-dialog-title",this.uiDialogTitlebar).html(""+(d||"&#160;"))}this._super(e,d)},_size:function(){var e,d,b=this.options,
c=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});b.minWidth>b.width&&(b.width=b.minWidth);e=this.uiDialog.css({height:"auto",width:b.width}).outerHeight();d=Math.max(0,b.minHeight-e);"auto"===b.height?a.support.minHeight?this.element.css({minHeight:d,height:"auto"}):(this.uiDialog.show(),e=this.element.css("height","auto").height(),c||this.uiDialog.hide(),this.element.height(Math.max(e,d))):this.element.height(Math.max(b.height-e,0));this.uiDialog.is(":data(resizable)")&&
this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");a||(a=this.uuid+=1);return"ui-dialog-title-"+a},overlay:function(e){this.$el=a.ui.dialog.overlay.create(e)}});a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus mousedown mouseup keydown keypress click".split(" "),function(a){return a+".dialog-overlay"}).join(" "),create:function(e){0===this.instances.length&&(setTimeout(function(){a.ui.dialog.overlay.instances.length&&
a(document).bind(a.ui.dialog.overlay.events,function(b){if(a(b.target).zIndex()<a.ui.dialog.overlay.maxZ)return!1})},1),a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize));var d=this.oldInstances.pop()||a("<div>").addClass("ui-widget-overlay");a(document).bind("keydown.dialog-overlay",function(b){var c=a.ui.dialog.overlay.instances;0!==c.length&&c[c.length-1]===d&&e.options.closeOnEscape&&!b.isDefaultPrevented()&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE&&(e.close(b),b.preventDefault())});
d.appendTo(document.body).css({width:this.width(),height:this.height()});a.fn.bgiframe&&d.bgiframe();this.instances.push(d);return d},destroy:function(e){var d=a.inArray(e,this.instances),b=0;-1!==d&&this.oldInstances.push(this.instances.splice(d,1)[0]);0===this.instances.length&&a([document,window]).unbind(".dialog-overlay");e.height(0).width(0).remove();a.each(this.instances,function(){b=Math.max(b,this.css("z-index"))});this.maxZ=b},height:function(){var e,d;return a.ui.ie?(e=Math.max(document.documentElement.scrollHeight,
document.body.scrollHeight),d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),e<d?a(window).height()+"px":e+"px"):a(document).height()+"px"},width:function(){var e,d;return a.ui.ie?(e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),d=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),e<d?a(window).width()+"px":e+"px"):a(document).width()+"px"},resize:function(){var e=a([]);a.each(a.ui.dialog.overlay.instances,function(){e=e.add(this)});
e.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(a,m){var f=/up|down|vertical/,g=/up|left|vertical|horizontal/;a.effects.effect.blind=function(e,d){var b=a(this),c="position top bottom left right height width".split(" "),h=a.effects.setMode(b,e.mode||"hide"),l=e.direction||"up",n=f.test(l),m=n?"height":"width",t=n?"top":"left",l=g.test(l),z={},v="show"===h,A,s,F;b.parent().is(".ui-effects-wrapper")?a.effects.save(b.parent(),c):a.effects.save(b,c);b.show();A=a.effects.createWrapper(b).css({overflow:"hidden"});s=A[m]();F=parseFloat(A.css(t))||
0;z[m]=v?s:0;l||(b.css(n?"bottom":"right",0).css(n?"top":"left","auto").css({position:"absolute"}),z[t]=v?F:s+F);v&&(A.css(m,0),l||A.css(t,F+s));A.animate(z,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===h&&b.hide();a.effects.restore(b,c);a.effects.removeWrapper(b);d()}})}})(jQuery);
(function(a,m){a.effects.effect.bounce=function(f,g){var e=a(this),d="position top bottom left right height width".split(" "),b=a.effects.setMode(e,f.mode||"effect"),c="hide"===b,h="show"===b,l=f.direction||"up",b=f.distance,n=f.times||5,m=2*n+(h||c?1:0),t=f.duration/m,z=f.easing,v="up"===l||"down"===l?"top":"left",l="up"===l||"left"===l,A,s,F=e.queue(),u=F.length;(h||c)&&d.push("opacity");a.effects.save(e,d);e.show();a.effects.createWrapper(e);b||(b=e["top"===v?"outerHeight":"outerWidth"]()/3);h&&
(s={opacity:1},s[v]=0,e.css("opacity",0).css(v,l?2*-b:2*b).animate(s,t,z));c&&(b/=Math.pow(2,n-1));s={};for(h=s[v]=0;h<n;h++)A={},A[v]=(l?"-=":"+=")+b,e.animate(A,t,z).animate(s,t,z),b=c?2*b:b/2;c&&(A={opacity:0},A[v]=(l?"-=":"+=")+b,e.animate(A,t,z));e.queue(function(){c&&e.hide();a.effects.restore(e,d);a.effects.removeWrapper(e);g()});1<u&&F.splice.apply(F,[1,0].concat(F.splice(u,m+1)));e.dequeue()}})(jQuery);
(function(a,m){a.effects.effect.clip=function(f,g){var e=a(this),d="position top bottom left right height width".split(" "),b="show"===a.effects.setMode(e,f.mode||"hide"),c="vertical"===(f.direction||"vertical"),h=c?"height":"width",c=c?"top":"left",l={},n,m;a.effects.save(e,d);e.show();n=a.effects.createWrapper(e).css({overflow:"hidden"});n="IMG"===e[0].tagName?n:e;m=n[h]();b&&(n.css(h,0),n.css(c,m/2));l[h]=b?m:0;l[c]=b?0:m/2;n.animate(l,{queue:!1,duration:f.duration,easing:f.easing,complete:function(){b||
e.hide();a.effects.restore(e,d);a.effects.removeWrapper(e);g()}})}})(jQuery);
(function(a,m){a.effects.effect.drop=function(f,g){var e=a(this),d="position top bottom left right opacity height width".split(" "),b=a.effects.setMode(e,f.mode||"hide"),c="show"===b,h=f.direction||"left",l="up"===h||"down"===h?"top":"left",h="up"===h||"left"===h?"pos":"neg",n={opacity:c?1:0},m;a.effects.save(e,d);e.show();a.effects.createWrapper(e);m=f.distance||e["top"===l?"outerHeight":"outerWidth"](!0)/2;c&&e.css("opacity",0).css(l,"pos"===h?-m:m);n[l]=(c?"pos"===h?"+=":"-=":"pos"===h?"-=":"+=")+
m;e.animate(n,{queue:!1,duration:f.duration,easing:f.easing,complete:function(){"hide"===b&&e.hide();a.effects.restore(e,d);a.effects.removeWrapper(e);g()}})}})(jQuery);
(function(a,m){a.effects.effect.explode=function(f,g){function e(){t.push(this);t.length===d*b&&(c.css({visibility:"visible"}),a(t).remove(),h||c.hide(),g())}var d=f.pieces?Math.round(Math.sqrt(f.pieces)):3,b=d,c=a(this),h="show"===a.effects.setMode(c,f.mode||"hide"),l=c.show().css("visibility","hidden").offset(),n=Math.ceil(c.outerWidth()/b),m=Math.ceil(c.outerHeight()/d),t=[],z,v,A,s,F,u;for(z=0;z<d;z++)for(s=l.top+z*m,u=z-(d-1)/2,v=0;v<b;v++)A=l.left+v*n,F=v-(b-1)/2,c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",
visibility:"visible",left:-v*n,top:-z*m}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:n,height:m,left:A+(h?F*n:0),top:s+(h?u*m:0),opacity:h?0:1}).animate({left:A+(h?0:F*n),top:s+(h?0:u*m),opacity:h?1:0},f.duration||500,f.easing,e)}})(jQuery);(function(a,m){a.effects.effect.fade=function(f,g){var e=a(this),d=a.effects.setMode(e,f.mode||"toggle");e.animate({opacity:d},{queue:!1,duration:f.duration,easing:f.easing,complete:g})}})(jQuery);
(function(a,m){a.effects.effect.fold=function(f,g){var e=a(this),d="position top bottom left right height width".split(" "),b=a.effects.setMode(e,f.mode||"hide"),c="show"===b,h="hide"===b,b=f.size||15,l=/([0-9]+)%/.exec(b),n=!!f.horizFirst,m=c!==n,t=m?["width","height"]:["height","width"],z=f.duration/2,v,A={},s={};a.effects.save(e,d);e.show();v=a.effects.createWrapper(e).css({overflow:"hidden"});m=m?[v.width(),v.height()]:[v.height(),v.width()];l&&(b=parseInt(l[1],10)/100*m[h?0:1]);c&&v.css(n?{height:0,
width:b}:{height:b,width:0});A[t[0]]=c?m[0]:b;s[t[1]]=c?m[1]:0;v.animate(A,z,f.easing).animate(s,z,f.easing,function(){h&&e.hide();a.effects.restore(e,d);a.effects.removeWrapper(e);g()})}})(jQuery);
(function(a,m){a.effects.effect.highlight=function(f,g){var e=a(this),d=["backgroundImage","backgroundColor","opacity"],b=a.effects.setMode(e,f.mode||"show"),c={backgroundColor:e.css("backgroundColor")};"hide"===b&&(c.opacity=0);a.effects.save(e,d);e.show().css({backgroundImage:"none",backgroundColor:f.color||"#ffff99"}).animate(c,{queue:!1,duration:f.duration,easing:f.easing,complete:function(){"hide"===b&&e.hide();a.effects.restore(e,d);g()}})}})(jQuery);
(function(a,m){a.effects.effect.pulsate=function(f,g){var e=a(this),d=a.effects.setMode(e,f.mode||"show"),b="show"===d,c="hide"===d,d=2*(f.times||5)+(b||"hide"===d?1:0),h=f.duration/d,l=0,n=e.queue(),m=n.length;if(b||!e.is(":visible"))e.css("opacity",0).show(),l=1;for(b=1;b<d;b++)e.animate({opacity:l},h,f.easing),l=1-l;e.animate({opacity:l},h,f.easing);e.queue(function(){c&&e.hide();g()});1<m&&n.splice.apply(n,[1,0].concat(n.splice(m,d+1)));e.dequeue()}})(jQuery);
(function(a,m){a.effects.effect.puff=function(f,g){var e=a(this),d=a.effects.setMode(e,f.mode||"hide"),b="hide"===d,c=parseInt(f.percent,10)||150,h=c/100,l={height:e.height(),width:e.width()};a.extend(f,{effect:"scale",queue:!1,fade:!0,mode:d,complete:g,percent:b?c:100,from:b?l:{height:l.height*h,width:l.width*h}});e.effect(f)};a.effects.effect.scale=function(f,g){var e=a(this),d=a.extend(!0,{},f),b=a.effects.setMode(e,f.mode||"effect"),c=parseInt(f.percent,10)||(0===parseInt(f.percent,10)?0:"hide"===
b?0:100),h=f.direction||"both",l=f.origin,n={height:e.height(),width:e.width(),outerHeight:e.outerHeight(),outerWidth:e.outerWidth()},m="horizontal"!==h?c/100:1,c="vertical"!==h?c/100:1;d.effect="size";d.queue=!1;d.complete=g;"effect"!==b&&(d.origin=l||["middle","center"],d.restore=!0);d.from=f.from||("show"===b?{height:0,width:0}:n);d.to={height:n.height*m,width:n.width*c,outerHeight:n.outerHeight*m,outerWidth:n.outerWidth*c};d.fade&&("show"===b&&(d.from.opacity=0,d.to.opacity=1),"hide"===b&&(d.from.opacity=
1,d.to.opacity=0));e.effect(d)};a.effects.effect.size=function(f,g){var e,d,b,c,h,l,n=a(this),m="position top bottom left right width height overflow opacity".split(" ");h="position top bottom left right overflow opacity".split(" ");var t=["width","height","overflow"],z=["fontSize"],v=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],A=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],s=a.effects.setMode(n,f.mode||"effect"),F=f.restore||"effect"!==s,u=f.scale||
"both";l=f.origin||["middle","center"];var B=n.css("position"),r=F?m:h,p={height:0,width:0};"show"===s&&n.show();h={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};"toggle"===f.mode&&"show"===s?(n.from=f.to||p,n.to=f.from||h):(n.from=f.from||("show"===s?p:h),n.to=f.to||("hide"===s?p:h));b=n.from.height/h.height;c=n.from.width/h.width;e=n.to.height/h.height;d=n.to.width/h.width;if("box"===u||"both"===u)b!==e&&(r=r.concat(v),n.from=a.effects.setTransition(n,
v,b,n.from),n.to=a.effects.setTransition(n,v,e,n.to)),c!==d&&(r=r.concat(A),n.from=a.effects.setTransition(n,A,c,n.from),n.to=a.effects.setTransition(n,A,d,n.to));"content"!==u&&"both"!==u||b===e||(r=r.concat(z).concat(t),n.from=a.effects.setTransition(n,z,b,n.from),n.to=a.effects.setTransition(n,z,e,n.to));a.effects.save(n,r);n.show();a.effects.createWrapper(n);n.css("overflow","hidden").css(n.from);l&&(l=a.effects.getBaseline(l,h),n.from.top=(h.outerHeight-n.outerHeight())*l.y,n.from.left=(h.outerWidth-
n.outerWidth())*l.x,n.to.top=(h.outerHeight-n.to.outerHeight)*l.y,n.to.left=(h.outerWidth-n.to.outerWidth)*l.x);n.css(n.from);if("content"===u||"both"===u)v=v.concat(["marginTop","marginBottom"]).concat(z),A=A.concat(["marginLeft","marginRight"]),t=m.concat(v).concat(A),n.find("*[width]").each(function(){var g=a(this),h=g.height(),p=g.width();F&&a.effects.save(g,t);g.from={height:h*b,width:p*c};g.to={height:h*e,width:p*d};b!==e&&(g.from=a.effects.setTransition(g,v,b,g.from),g.to=a.effects.setTransition(g,
v,e,g.to));c!==d&&(g.from=a.effects.setTransition(g,A,c,g.from),g.to=a.effects.setTransition(g,A,d,g.to));g.css(g.from);g.animate(g.to,f.duration,f.easing,function(){F&&a.effects.restore(g,t)})});n.animate(n.to,{queue:!1,duration:f.duration,easing:f.easing,complete:function(){0===n.to.opacity&&n.css("opacity",n.from.opacity);"hide"===s&&n.hide();a.effects.restore(n,r);F||("static"===B?n.css({position:"relative",top:n.to.top,left:n.to.left}):a.each(["top","left"],function(a,b){n.css(b,function(b,c){var d=
parseInt(c,10),e=a?n.to.left:n.to.top;return"auto"===c?e+"px":d+e+"px"})}));a.effects.removeWrapper(n);g()}})}})(jQuery);
(function(a,m){a.effects.effect.shake=function(f,g){var e=a(this),d="position top bottom left right height width".split(" "),b=a.effects.setMode(e,f.mode||"effect"),c=f.direction||"left",h=f.distance||20,l=f.times||3,m=2*l+1,q=Math.round(f.duration/m),t="up"===c||"down"===c?"top":"left",z="up"===c||"left"===c,c={},v={},A={},s=e.queue(),F=s.length;a.effects.save(e,d);e.show();a.effects.createWrapper(e);c[t]=(z?"-=":"+=")+h;v[t]=(z?"+=":"-=")+2*h;A[t]=(z?"-=":"+=")+2*h;e.animate(c,q,f.easing);for(h=
1;h<l;h++)e.animate(v,q,f.easing).animate(A,q,f.easing);e.animate(v,q,f.easing).animate(c,q/2,f.easing).queue(function(){"hide"===b&&e.hide();a.effects.restore(e,d);a.effects.removeWrapper(e);g()});1<F&&s.splice.apply(s,[1,0].concat(s.splice(F,m+1)));e.dequeue()}})(jQuery);
(function(a,m){a.effects.effect.slide=function(f,g){var e=a(this),d="position top bottom left right width height".split(" "),b=a.effects.setMode(e,f.mode||"show"),c="show"===b,h=f.direction||"left",l="up"===h||"down"===h?"top":"left",h="up"===h||"left"===h,m,q={};a.effects.save(e,d);e.show();m=f.distance||e["top"===l?"outerHeight":"outerWidth"](!0);a.effects.createWrapper(e).css({overflow:"hidden"});c&&e.css(l,h?isNaN(m)?"-"+m:-m:m);q[l]=(c?h?"+=":"-=":h?"-=":"+=")+m;e.animate(q,{queue:!1,duration:f.duration,
easing:f.easing,complete:function(){"hide"===b&&e.hide();a.effects.restore(e,d);a.effects.removeWrapper(e);g()}})}})(jQuery);
(function(a,m){a.effects.effect.transfer=function(f,g){var e=a(this),d=a(f.to),b="fixed"===d.css("position"),c=a("body"),h=b?c.scrollTop():0,c=b?c.scrollLeft():0,l=d.offset(),d={top:l.top-h,left:l.left-c,height:d.innerHeight(),width:d.innerWidth()},l=e.offset(),m=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(f.className).css({top:l.top-h,left:l.left-c,height:e.innerHeight(),width:e.innerWidth(),position:b?"fixed":"absolute"}).animate(d,f.duration,f.easing,function(){m.remove();
g()})}})(jQuery);
(function(a,m){var f=!1;a.widget("ui.menu",{version:"1.9.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,
a.proxy(function(a){this.options.disabled&&a.preventDefault()},this));this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item > a":function(a){a.preventDefault()},"click .ui-state-disabled > a":function(a){a.preventDefault()},"click .ui-menu-item:has(a)":function(g){var e=a(g.target).closest(".ui-menu-item");!f&&e.not(".ui-state-disabled").length&&(f=!0,this.select(g),e.has(".ui-menu").length?this.expand(g):this.element.is(":focus")||
(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(f){var e=a(f.currentTarget);e.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(f,e)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,e){var d=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(a,d)},blur:function(f){this._delay(function(){a.contains(this.element[0],
this.document[0].activeElement)||this.collapseAll(f)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(g){a(g.target).closest(".ui-menu").length||this.collapseAll(g);f=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();
this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var f=a(this);f.data("ui-menu-submenu-carat")&&f.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(f){function e(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,
"\\$&")}var d,b,c,h,l=!0;switch(f.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(f);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(f);break;case a.ui.keyCode.HOME:this._move("first","first",f);break;case a.ui.keyCode.END:this._move("last","last",f);break;case a.ui.keyCode.UP:this.previous(f);break;case a.ui.keyCode.DOWN:this.next(f);break;case a.ui.keyCode.LEFT:this.collapse(f);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(f);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(f);
break;case a.ui.keyCode.ESCAPE:this.collapse(f);break;default:l=!1,d=this.previousFilter||"",b=String.fromCharCode(f.keyCode),c=!1,clearTimeout(this.filterTimer),b===d?c=!0:b=d+b,h=RegExp("^"+e(b),"i"),d=this.activeMenu.children(".ui-menu-item").filter(function(){return h.test(a(this).children("a").text())}),d=c&&-1!==d.index(this.active.next())?this.active.nextAll(".ui-menu-item"):d,d.length||(b=String.fromCharCode(f.keyCode),h=RegExp("^"+e(b),"i"),d=this.activeMenu.children(".ui-menu-item").filter(function(){return h.test(a(this).children("a").text())})),
d.length?(this.focus(f,d),1<d.length?(this.previousFilter=b,this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)):delete this.previousFilter):delete this.previousFilter}l&&f.preventDefault()},_activate:function(a){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(a):this.select(a))},refresh:function(){var f,e=this.options.icons.submenu,d=this.element.find(this.options.menus+":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,
"aria-hidden":"true","aria-expanded":"false"});f=d.add(this.element);f.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()});f.children(":not(.ui-menu-item)").each(function(){var b=a(this);/[^\-\u2014\u2013\s]/.test(b.text())||b.addClass("ui-widget-content ui-menu-divider")});f.children(".ui-state-disabled").attr("aria-disabled","true");d.each(function(){var b=a(this),
c=b.prev("a"),d=a("<span>").addClass("ui-menu-icon ui-icon "+e).data("ui-menu-submenu-carat",!0);c.attr("aria-haspopup","true").prepend(d);b.attr("aria-labelledby",c.attr("id"))});this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(a,e){var d;this.blur(a,a&&"focus"===a.type);this._scrollIntoView(e);this.active=e.first();d=this.active.children("a").addClass("ui-state-focus");this.options.role&&
this.element.attr("aria-activedescendant",d.attr("id"));this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");a&&"keydown"===a.type?this._close():this.timer=this._delay(function(){this._close()},this.delay);d=e.children(".ui-menu");d.length&&/^mouse/.test(a.type)&&this._startOpening(d);this.activeMenu=e.parent();this._trigger("focus",a,{item:e})},_scrollIntoView:function(f){var e,d,b;this._hasScroll()&&(e=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||
0,d=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,e=f.offset().top-this.activeMenu.offset().top-e-d,d=this.activeMenu.scrollTop(),b=this.activeMenu.height(),f=f.height(),0>e?this.activeMenu.scrollTop(d+e):e+f>b&&this.activeMenu.scrollTop(d+e-b+f))},blur:function(a,e){e||clearTimeout(this.timer);this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",a,{item:this.active}))},_startOpening:function(a){clearTimeout(this.timer);"true"===a.attr("aria-hidden")&&
(this.timer=this._delay(function(){this._close();this._open(a)},this.delay))},_open:function(f){var e=a.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(f.parents(".ui-menu")).hide().attr("aria-hidden","true");f.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(f,e){clearTimeout(this.timer);this.timer=this._delay(function(){var d=e?this.element:a(f&&f.target).closest(this.element.find(".ui-menu"));
d.length||(d=this.element);this._close(d);this.blur(f);this.activeMenu=d},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element);a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(a){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(a,e))},expand:function(a){var e=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();
e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(a,e)}))},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(a,e,d){var b;this.active&&(b="first"===a||"last"===a?this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[a+
"All"](".ui-menu-item").eq(0));b&&b.length&&this.active||(b=this.activeMenu.children(".ui-menu-item")[e]());this.focus(d,b)},nextPage:function(f){var e,d,b;this.active?this.isLastItem()||(this._hasScroll()?(d=this.active.offset().top,b=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){e=a(this);return 0>e.offset().top-d-b}),this.focus(f,e)):this.focus(f,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())):this.next(f)},previousPage:function(f){var e,d,
b;this.active?this.isFirstItem()||(this._hasScroll()?(d=this.active.offset().top,b=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){e=a(this);return 0<e.offset().top-d+b}),this.focus(f,e)):this.focus(f,this.activeMenu.children(".ui-menu-item").first())):this.next(f)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(f){this.active=this.active||a(f.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||
this.collapseAll(f,!0);this._trigger("select",f,e)}})})(jQuery);
(function(a,m){function f(a,b,c){return[parseInt(a[0],10)*(q.test(a[0])?b/100:1),parseInt(a[1],10)*(q.test(a[1])?c/100:1)]}a.ui=a.ui||{};var g,e=Math.max,d=Math.abs,b=Math.round,c=/left|center|right/,h=/top|center|bottom/,l=/[\+\-]\d+%?/,n=/^\w+/,q=/%$/,t=a.fn.position;a.position={scrollbarWidth:function(){if(g!==m)return g;var b,c,d=a("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>");c=d.children()[0];a("body").append(d);b=c.offsetWidth;
d.css("overflow","scroll");c=c.offsetWidth;b===c&&(c=d[0].clientWidth);d.remove();return g=b-c},getScrollInfo:function(b){var c=b.isWindow?"":b.element.css("overflow-x"),d=b.isWindow?"":b.element.css("overflow-y"),d="scroll"===d||"auto"===d&&b.height<b.element[0].scrollHeight;return{width:"scroll"===c||"auto"===c&&b.width<b.element[0].scrollWidth?a.position.scrollbarWidth():0,height:d?a.position.scrollbarWidth():0}},getWithinInfo:function(b){b=a(b||window);var c=a.isWindow(b[0]);return{element:b,
isWindow:c,offset:b.offset()||{left:0,top:0},scrollLeft:b.scrollLeft(),scrollTop:b.scrollTop(),width:c?b.width():b.outerWidth(),height:c?b.height():b.outerHeight()}}};a.fn.position=function(g){if(!g||!g.of)return t.apply(this,arguments);g=a.extend({},g);var m,q,s,F,u,B=a(g.of),r=a.position.getWithinInfo(g.within),p=a.position.getScrollInfo(r),x=B[0],y=(g.collision||"flip").split(" "),H={};9===x.nodeType?(q=B.width(),s=B.height(),F={top:0,left:0}):a.isWindow(x)?(q=B.width(),s=B.height(),F={top:B.scrollTop(),
left:B.scrollLeft()}):x.preventDefault?(g.at="left top",q=s=0,F={top:x.pageY,left:x.pageX}):(q=B.outerWidth(),s=B.outerHeight(),F=B.offset());u=a.extend({},F);a.each(["my","at"],function(){var a=(g[this]||"").split(" "),b,d;1===a.length&&(a=c.test(a[0])?a.concat(["center"]):h.test(a[0])?["center"].concat(a):["center","center"]);a[0]=c.test(a[0])?a[0]:"center";a[1]=h.test(a[1])?a[1]:"center";b=l.exec(a[0]);d=l.exec(a[1]);H[this]=[b?b[0]:0,d?d[0]:0];g[this]=[n.exec(a[0])[0],n.exec(a[1])[0]]});1===y.length&&
(y[1]=y[0]);"right"===g.at[0]?u.left+=q:"center"===g.at[0]&&(u.left+=q/2);"bottom"===g.at[1]?u.top+=s:"center"===g.at[1]&&(u.top+=s/2);m=f(H.at,q,s);u.left+=m[0];u.top+=m[1];return this.each(function(){var c,h,l=a(this),x=l.outerWidth(),n=l.outerHeight(),t=parseInt(a.css(this,"marginLeft"),10)||0,Q=parseInt(a.css(this,"marginTop"),10)||0,V=x+t+(parseInt(a.css(this,"marginRight"),10)||0)+p.width,W=n+Q+(parseInt(a.css(this,"marginBottom"),10)||0)+p.height,L=a.extend({},u),C=f(H.my,l.outerWidth(),l.outerHeight());
"right"===g.my[0]?L.left-=x:"center"===g.my[0]&&(L.left-=x/2);"bottom"===g.my[1]?L.top-=n:"center"===g.my[1]&&(L.top-=n/2);L.left+=C[0];L.top+=C[1];a.support.offsetFractions||(L.left=b(L.left),L.top=b(L.top));c={marginLeft:t,marginTop:Q};a.each(["left","top"],function(b,d){if(a.ui.position[y[b]])a.ui.position[y[b]][d](L,{targetWidth:q,targetHeight:s,elemWidth:x,elemHeight:n,collisionPosition:c,collisionWidth:V,collisionHeight:W,offset:[m[0]+C[0],m[1]+C[1]],my:g.my,at:g.at,within:r,elem:l})});a.fn.bgiframe&&
l.bgiframe();g.using&&(h=function(a){var b=F.left-L.left,c=b+q-x,f=F.top-L.top,h=f+s-n,p={target:{element:B,left:F.left,top:F.top,width:q,height:s},element:{element:l,left:L.left,top:L.top,width:x,height:n},horizontal:0>c?"left":0<b?"right":"center",vertical:0>h?"top":0<f?"bottom":"middle"};q<x&&d(b+c)<q&&(p.horizontal="center");s<n&&d(f+h)<s&&(p.vertical="middle");e(d(b),d(c))>e(d(f),d(h))?p.important="horizontal":p.important="vertical";g.using.call(this,a,p)});l.offset(a.extend(L,{using:h}))})};
a.ui.position={fit:{left:function(a,b){var c=b.within,d=c.isWindow?c.scrollLeft:c.offset.left,f=c.width,g=a.left-b.collisionPosition.marginLeft,c=d-g,h=g+b.collisionWidth-f-d;b.collisionWidth>f?0<c&&0>=h?(d=a.left+c+b.collisionWidth-f-d,a.left+=c-d):a.left=0<h&&0>=c?d:c>h?d+f-b.collisionWidth:d:a.left=0<c?a.left+c:0<h?a.left-h:e(a.left-g,a.left)},top:function(a,b){var c=b.within,d=c.isWindow?c.scrollTop:c.offset.top,f=b.within.height,g=a.top-b.collisionPosition.marginTop,c=d-g,h=g+b.collisionHeight-
f-d;b.collisionHeight>f?0<c&&0>=h?(d=a.top+c+b.collisionHeight-f-d,a.top+=c-d):a.top=0<h&&0>=c?d:c>h?d+f-b.collisionHeight:d:a.top=0<c?a.top+c:0<h?a.top-h:e(a.top-g,a.top)}},flip:{left:function(a,b){var c=b.within,e=c.offset.left+c.scrollLeft,f=c.width,g=c.isWindow?c.scrollLeft:c.offset.left,h=a.left-b.collisionPosition.marginLeft,c=h-g,l=h+b.collisionWidth-f-g,h="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,p="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,m=-2*
b.offset[0];if(0>c){if(e=a.left+h+p+m+b.collisionWidth-f-e,0>e||e<d(c))a.left+=h+p+m}else 0<l&&(e=a.left-b.collisionPosition.marginLeft+h+p+m-g,0<e||d(e)<l)&&(a.left+=h+p+m)},top:function(a,b){var c=b.within,e=c.offset.top+c.scrollTop,f=c.height,g=c.isWindow?c.scrollTop:c.offset.top,h=a.top-b.collisionPosition.marginTop,c=h-g,l=h+b.collisionHeight-f-g,h="top"===b.my[1]?-b.elemHeight:"bottom"===b.my[1]?b.elemHeight:0,p="top"===b.at[1]?b.targetHeight:"bottom"===b.at[1]?-b.targetHeight:0,m=-2*b.offset[1];
0>c?(e=a.top+h+p+m+b.collisionHeight-f-e,a.top+h+p+m>c&&(0>e||e<d(c))&&(a.top+=h+p+m)):0<l&&(e=a.top-b.collisionPosition.marginTop+h+p+m-g,a.top+h+p+m>l&&(0<e||d(e)<l)&&(a.top+=h+p+m))}},flipfit:{left:function(){a.ui.position.flip.left.apply(this,arguments);a.ui.position.fit.left.apply(this,arguments)},top:function(){a.ui.position.flip.top.apply(this,arguments);a.ui.position.fit.top.apply(this,arguments)}}};(function(){var b,c,d,e,f=document.getElementsByTagName("body")[0];d=document.createElement("div");
b=document.createElement(f?"div":"body");c={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};f&&a.extend(c,{position:"absolute",left:"-1000px",top:"-1000px"});for(e in c)b.style[e]=c[e];b.appendChild(d);c=f||document.documentElement;c.insertBefore(b,c.firstChild);d.style.cssText="position: absolute; left: 10.7432222px;";d=a(d).offset().left;a.support.offsetFractions=10<d&&11>d;b.innerHTML="";c.removeChild(b)})();!1!==a.uiBackCompat&&function(a){var b=a.fn.position;a.fn.position=
function(c){if(!c||!c.offset)return b.call(this,c);var d=c.offset.split(" "),e=c.at.split(" ");1===d.length&&(d[1]=d[0]);/^\d/.test(d[0])&&(d[0]="+"+d[0]);/^\d/.test(d[1])&&(d[1]="+"+d[1]);1===e.length&&(/left|center|right/.test(e[0])?e[1]="center":(e[1]=e[0],e[0]="center"));return b.call(this,a.extend(c,{at:e[0]+d[0]+" "+e[1]+d[1],offset:m}))}}(jQuery)})(jQuery);
(function(a,m){a.widget("ui.progressbar",{version:"1.9.1",options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
this.valueDiv.remove()},value:function(a){if(a===m)return this._value();this._setOption("value",a);return this},_setOption:function(a,g){"value"===a&&(this.options.value=g,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete"));this._super(a,g)},_value:function(){var a=this.options.value;"number"!==typeof a&&(a=0);return Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var a=this.value(),
g=this._percentage();this.oldValue!==a&&(this.oldValue=a,this._trigger("change"));this.valueDiv.toggle(a>this.min).toggleClass("ui-corner-right",a===this.options.max).width(g.toFixed(0)+"%");this.element.attr("aria-valuenow",a)}})})(jQuery);
(function(a,m){a.widget("ui.slider",a.ui.mouse,{version:"1.9.1",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var f,g,e=this.options,d=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),b=[];this._mouseSliding=this._keySliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+
" ui-widget ui-widget-content ui-corner-all"+(e.disabled?" ui-slider-disabled ui-disabled":""));this.range=a([]);e.range&&(!0===e.range&&(e.values||(e.values=[this._valueMin(),this._valueMin()]),e.values.length&&2!==e.values.length&&(e.values=[e.values[0],e.values[0]])),this.range=a("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:"")));g=e.values&&e.values.length||1;for(f=d.length;f<g;f++)b.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");
this.handles=d.add(a(b.join("")).appendTo(this.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).mouseenter(function(){e.disabled||a(this).addClass("ui-state-hover")}).mouseleave(function(){a(this).removeClass("ui-state-hover")}).focus(function(){e.disabled?a(this).blur():(a(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),a(this).addClass("ui-state-focus"))}).blur(function(){a(this).removeClass("ui-state-focus")});
this.handles.each(function(b){a(this).data("ui-slider-handle-index",b)});this._on(this.handles,{keydown:function(b){var d,e,f,g=a(b.target).data("ui-slider-handle-index");switch(b.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(b.preventDefault(),!this._keySliding&&(this._keySliding=!0,a(b.target).addClass("ui-state-active"),d=this._start(b,g),!1===
d))return}f=this.options.step;d=this.options.values&&this.options.values.length?e=this.values(g):e=this.value();switch(b.keyCode){case a.ui.keyCode.HOME:e=this._valueMin();break;case a.ui.keyCode.END:e=this._valueMax();break;case a.ui.keyCode.PAGE_UP:e=this._trimAlignValue(d+(this._valueMax()-this._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:e=this._trimAlignValue(d-(this._valueMax()-this._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(d===this._valueMax())return;e=this._trimAlignValue(d+
f);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(d===this._valueMin())return;e=this._trimAlignValue(d-f)}this._slide(b,g,e)},keyup:function(b){var d=a(b.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(b,d),this._change(b,d),a(b.target).removeClass("ui-state-active"))}});this._refreshValue();this._animateOff=!1},_destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all");
this._mouseDestroy()},_mouseCapture:function(f){var g,e,d,b,c,h=this;c=this.options;if(c.disabled)return!1;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();g=this._normValueFromMouse({x:f.pageX,y:f.pageY});e=this._valueMax()-this._valueMin()+1;this.handles.each(function(c){var f=Math.abs(g-h.values(c));e>f&&(e=f,d=a(this),b=c)});!0===c.range&&this.values(1)===c.min&&(b+=1,d=a(this.handles[b]));if(!1===this._start(f,b))return!1;
this._mouseSliding=!0;this._handleIndex=b;d.addClass("ui-state-active").focus();c=d.offset();this._clickOffset=a(f.target).parents().andSelf().is(".ui-slider-handle")?{left:f.pageX-c.left-d.width()/2,top:f.pageY-c.top-d.height()/2-(parseInt(d.css("borderTopWidth"),10)||0)-(parseInt(d.css("borderBottomWidth"),10)||0)+(parseInt(d.css("marginTop"),10)||0)}:{left:0,top:0};this.handles.hasClass("ui-state-hover")||this._slide(f,b,g);return this._animateOff=!0},_mouseStart:function(){return!0},_mouseDrag:function(a){var g=
this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,g);return!1},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=!1;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(a){var g;"horizontal"===this.orientation?(g=this.elementSize.width,
a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(g=this.elementSize.height,a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0));g=a/g;1<g&&(g=1);0>g&&(g=0);"vertical"===this.orientation&&(g=1-g);a=this._valueMax()-this._valueMin();g=this._valueMin()+g*a;return this._trimAlignValue(g)},_start:function(a,g){var e={handle:this.handles[g],value:this.value()};this.options.values&&this.options.values.length&&(e.value=this.values(g),e.values=this.values());
return this._trigger("start",a,e)},_slide:function(a,g,e){var d;this.options.values&&this.options.values.length?(d=this.values(g?0:1),2===this.options.values.length&&!0===this.options.range&&(0===g&&e>d||1===g&&e<d)&&(e=d),e!==this.values(g)&&(d=this.values(),d[g]=e,a=this._trigger("slide",a,{handle:this.handles[g],value:e,values:d}),this.values(g?0:1),!1!==a&&this.values(g,e,!0))):e!==this.value()&&(a=this._trigger("slide",a,{handle:this.handles[g],value:e}),!1!==a&&this.value(e))},_stop:function(a,
g){var e={handle:this.handles[g],value:this.value()};this.options.values&&this.options.values.length&&(e.value=this.values(g),e.values=this.values());this._trigger("stop",a,e)},_change:function(a,g){if(!this._keySliding&&!this._mouseSliding){var e={handle:this.handles[g],value:this.value()};this.options.values&&this.options.values.length&&(e.value=this.values(g),e.values=this.values());this._trigger("change",a,e)}},value:function(a){if(arguments.length)this.options.value=this._trimAlignValue(a),this._refreshValue(),
this._change(null,0);else return this._value()},values:function(f,g){var e,d,b;if(1<arguments.length)this.options.values[f]=this._trimAlignValue(g),this._refreshValue(),this._change(null,f);else if(arguments.length)if(a.isArray(arguments[0])){e=this.options.values;d=arguments[0];for(b=0;b<e.length;b+=1)e[b]=this._trimAlignValue(d[b]),this._change(null,b);this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(f):this.value();else return this._values()},_setOption:function(f,
g){var e,d=0;a.isArray(this.options.values)&&(d=this.options.values.length);a.Widget.prototype._setOption.apply(this,arguments);switch(f){case "disabled":g?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.prop("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.prop("disabled",!1),this.element.removeClass("ui-disabled"));break;case "orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+
this.orientation);this._refreshValue();break;case "value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case "values":this._animateOff=!0;this._refreshValue();for(e=0;e<d;e+=1)this._change(null,e);this._animateOff=!1;break;case "min":case "max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var g,e;if(arguments.length)return g=this.options.values[a],
g=this._trimAlignValue(g);g=this.options.values.slice();for(e=0;e<g.length;e+=1)g[e]=this._trimAlignValue(g[e]);return g},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var g=0<this.options.step?this.options.step:1,e=(a-this._valueMin())%g;a-=e;2*Math.abs(e)>=g&&(a+=0<e?g:-g);return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var f,
g,e,d,b,c=this.options.range,h=this.options,l=this,m=this._animateOff?!1:h.animate,q={};if(this.options.values&&this.options.values.length)this.handles.each(function(b){g=100*((l.values(b)-l._valueMin())/(l._valueMax()-l._valueMin()));q["horizontal"===l.orientation?"left":"bottom"]=g+"%";a(this).stop(1,1)[m?"animate":"css"](q,h.animate);if(!0===l.options.range)if("horizontal"===l.orientation){if(0===b)l.range.stop(1,1)[m?"animate":"css"]({left:g+"%"},h.animate);if(1===b)l.range[m?"animate":"css"]({width:g-
f+"%"},{queue:!1,duration:h.animate})}else{if(0===b)l.range.stop(1,1)[m?"animate":"css"]({bottom:g+"%"},h.animate);if(1===b)l.range[m?"animate":"css"]({height:g-f+"%"},{queue:!1,duration:h.animate})}f=g});else{e=this.value();d=this._valueMin();b=this._valueMax();g=b!==d?100*((e-d)/(b-d)):0;q["horizontal"===this.orientation?"left":"bottom"]=g+"%";this.handle.stop(1,1)[m?"animate":"css"](q,h.animate);if("min"===c&&"horizontal"===this.orientation)this.range.stop(1,1)[m?"animate":"css"]({width:g+"%"},
h.animate);if("max"===c&&"horizontal"===this.orientation)this.range[m?"animate":"css"]({width:100-g+"%"},{queue:!1,duration:h.animate});if("min"===c&&"vertical"===this.orientation)this.range.stop(1,1)[m?"animate":"css"]({height:g+"%"},h.animate);if("max"===c&&"vertical"===this.orientation)this.range[m?"animate":"css"]({height:100-g+"%"},{queue:!1,duration:h.animate})}}})})(jQuery);
(function(a){function m(a){return function(){var g=this.element.val();a.apply(this,arguments);this._refresh();g!==this.element.val()&&this._trigger("change")}}a.widget("ui.spinner",{version:"1.9.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);
this._setOption("min",this.options.min);this._setOption("step",this.options.step);this._value(this.element.val(),!0);this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var f={},g=this.element;a.each(["min","max","step"],function(a,d){var b=g.attr(d);void 0!==b&&b.length&&(f[d]=b)});return f},_events:{keydown:function(a){this._start(a)&&this._keydown(a)&&a.preventDefault()},keyup:"_stop",
focus:function(){this.previous=this.element.val()},blur:function(a){this.cancelBlur?delete this.cancelBlur:(this._refresh(),this.previous!==this.element.val()&&this._trigger("change",a))},mousewheel:function(a,g){if(g){if(!this.spinning&&!this._start(a))return!1;this._spin((0<g?1:-1)*this.options.step,a);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(a)},100);a.preventDefault()}},"mousedown .ui-spinner-button":function(f){function g(){this.element[0]!==
this.document[0].activeElement&&(this.element.focus(),this.previous=e,this._delay(function(){this.previous=e}))}var e;e=this.element[0]===this.document[0].activeElement?this.previous:this.element.val();f.preventDefault();g.call(this);this.cancelBlur=!0;this._delay(function(){delete this.cancelBlur;g.call(this)});!1!==this._start(f)&&this._repeat(null,a(f.currentTarget).hasClass("ui-spinner-up")?1:-1,f)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(f){if(a(f.currentTarget).hasClass("ui-state-active")){if(!1===
this._start(f))return!1;this._repeat(null,a(f.currentTarget).hasClass("ui-spinner-up")?1:-1,f)}},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var a=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton");this.buttons=a.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all");this.buttons.height()>Math.ceil(0.5*a.height())&&0<a.height()&&
a.height(a.height());this.options.disabled&&this.disable()},_keydown:function(f){var g=this.options,e=a.ui.keyCode;switch(f.keyCode){case e.UP:return this._repeat(null,1,f),!0;case e.DOWN:return this._repeat(null,-1,f),!0;case e.PAGE_UP:return this._repeat(null,g.page,f),!0;case e.PAGE_DOWN:return this._repeat(null,-g.page,f),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+
this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(a){if(!this.spinning&&!1===this._trigger("start",a))return!1;this.counter||(this.counter=1);return this.spinning=!0},_repeat:function(a,g,e){a=a||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,g,e)},a);this._spin(g*this.options.step,e)},_spin:function(a,g){var e=this.value()||0;this.counter||
(this.counter=1);e=this._adjustValue(e+a*this._increment(this.counter));this.spinning&&!1===this._trigger("spin",g,{value:e})||(this._value(e),this.counter++)},_increment:function(f){var g=this.options.incremental;return g?a.isFunction(g)?g(f):Math.floor(f*f*f/5E4-f*f/500+17*f/200+1):1},_precision:function(){var a=this._precisionOf(this.options.step);null!==this.options.min&&(a=Math.max(a,this._precisionOf(this.options.min)));return a},_precisionOf:function(a){a=a.toString();var g=a.indexOf(".");
return-1===g?0:a.length-g-1},_adjustValue:function(a){var g,e=this.options;g=null!==e.min?e.min:0;a=Math.round((a-g)/e.step)*e.step;a=g+a;a=parseFloat(a.toFixed(this._precision()));return null!==e.max&&a>e.max?e.max:null!==e.min&&a<e.min?e.min:a},_stop:function(a){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",a))},_setOption:function(a,g){if("culture"===a||"numberFormat"===a){var e=this._parse(this.element.val());this.options[a]=
g;this.element.val(this._format(e))}else"max"!==a&&"min"!==a&&"step"!==a||"string"!==typeof g||(g=this._parse(g)),this._super(a,g),"disabled"===a&&(g?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:m(function(a){this._super(a);this._value(this.element.val())}),_parse:function(a){"string"===typeof a&&""!==a&&(a=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(a,10,this.options.culture):
+a);return""===a||isNaN(a)?null:a},_format:function(a){return""===a?"":window.Globalize&&this.options.numberFormat?Globalize.format(a,this.options.numberFormat,this.options.culture):a},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(a,g){var e;""!==a&&(e=this._parse(a),null!==e&&(g||(e=this._adjustValue(e)),a=this._format(e)));this.element.val(a);this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",
!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.uiSpinner.replaceWith(this.element)},stepUp:m(function(a){this._stepUp(a)}),_stepUp:function(a){this._spin((a||1)*this.options.step)},stepDown:m(function(a){this._stepDown(a)}),_stepDown:function(a){this._spin((a||1)*-this.options.step)},pageUp:m(function(a){this._stepUp((a||1)*this.options.page)}),pageDown:m(function(a){this._stepDown((a||1)*this.options.page)}),
value:function(a){if(!arguments.length)return this._parse(this.element.val());m(this._value).call(this,a)},widget:function(){return this.uiSpinner}})})(jQuery);
(function(a,m){function f(a){return 1<a.hash.length&&a.href.replace(e,"")===location.href.replace(e,"")}var g=0,e=/#.*$/;a.widget("ui.tabs",{version:"1.9.1",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var d=this,b=this.options,c=b.active,e=location.hash.substring(1);this.running=!1;this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",
b.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(b){a(this).is(".ui-state-disabled")&&b.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){a(this).closest("li").is(".ui-state-disabled")&&this.blur()});this._processTabs();null===c&&(e&&this.tabs.each(function(b,d){if(a(d).attr("aria-controls")===e)return c=b,!1}),null===c&&(c=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null===c||-1===c)&&(c=this.tabs.length?0:!1);!1!==
c&&(c=this.tabs.index(this.tabs.eq(c)),-1===c&&(c=b.collapsible?!1:0));b.active=c;!b.collapsible&&!1===b.active&&this.anchors.length&&(b.active=0);a.isArray(b.disabled)&&(b.disabled=a.unique(b.disabled.concat(a.map(this.tabs.filter(".ui-state-disabled"),function(a){return d.tabs.index(a)}))).sort());this.active=!1!==this.options.active&&this.anchors.length?this._findActive(this.options.active):a();this._refresh();this.active.length&&this.load(b.active)},_getCreateEventData:function(){return{tab:this.active,
panel:this.active.length?this._getPanelForTab(this.active):a()}},_tabKeydown:function(d){var b=a(this.document[0].activeElement).closest("li"),c=this.tabs.index(b),e=!0;if(!this._handlePageNav(d)){switch(d.keyCode){case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:c++;break;case a.ui.keyCode.UP:case a.ui.keyCode.LEFT:e=!1;c--;break;case a.ui.keyCode.END:c=this.anchors.length-1;break;case a.ui.keyCode.HOME:c=0;break;case a.ui.keyCode.SPACE:d.preventDefault();clearTimeout(this.activating);this._activate(c);
return;case a.ui.keyCode.ENTER:d.preventDefault();clearTimeout(this.activating);this._activate(c===this.options.active?!1:c);return;default:return}d.preventDefault();clearTimeout(this.activating);c=this._focusNextTab(c,e);d.ctrlKey||(b.attr("aria-selected","false"),this.tabs.eq(c).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",c)},this.delay))}},_panelKeydown:function(d){!this._handlePageNav(d)&&d.ctrlKey&&d.keyCode===a.ui.keyCode.UP&&(d.preventDefault(),
this.active.focus())},_handlePageNav:function(d){if(d.altKey&&d.keyCode===a.ui.keyCode.PAGE_UP)return this._activate(this._focusNextTab(this.options.active-1,!1)),!0;if(d.altKey&&d.keyCode===a.ui.keyCode.PAGE_DOWN)return this._activate(this._focusNextTab(this.options.active+1,!0)),!0},_findNextTab:function(d,b){function c(){d>e&&(d=0);0>d&&(d=e);return d}for(var e=this.tabs.length-1;-1!==a.inArray(c(),this.options.disabled);)d=b?d+1:d-1;return d},_focusNextTab:function(a,b){a=this._findNextTab(a,
b);this.tabs.eq(a).focus();return a},_setOption:function(a,b){"active"===a?this._activate(b):"disabled"===a?this._setupDisabled(b):(this._super(a,b),"collapsible"===a&&(this.element.toggleClass("ui-tabs-collapsible",b),b||!1!==this.options.active||this._activate(0)),"event"===a&&this._setupEvents(b),"heightStyle"===a&&this._setupHeightStyle(b))},_tabId:function(a){return a.attr("aria-controls")||"ui-tabs-"+ ++g},_sanitizeSelector:function(a){return a?a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,
"\\$&"):""},refresh:function(){var d=this.options,b=this.tablist.children(":has(a[href])");d.disabled=a.map(b.filter(".ui-state-disabled"),function(a){return b.index(a)});this._processTabs();!1!==d.active&&this.anchors.length?this.active.length&&!a.contains(this.tablist[0],this.active[0])?this.tabs.length===d.disabled.length?(d.active=!1,this.active=a()):this._activate(this._findNextTab(Math.max(0,d.active-1),!1)):d.active=this.tabs.index(this.active):(d.active=!1,this.active=a());this._refresh()},
_refresh:function(){this._setupDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"});this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true",
"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var d=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist");this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1});this.anchors=this.tabs.map(function(){return a("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1});this.panels=
a();this.anchors.each(function(b,c){var e,g,m,q=a(c).uniqueId().attr("id"),t=a(c).closest("li"),z=t.attr("aria-controls");f(c)?(e=c.hash,g=d.element.find(d._sanitizeSelector(e))):(m=d._tabId(t),e="#"+m,g=d.element.find(e),g.length||(g=d._createPanel(m),g.insertAfter(d.panels[b-1]||d.tablist)),g.attr("aria-live","polite"));g.length&&(d.panels=d.panels.add(g));z&&t.data("ui-tabs-aria-controls",z);t.attr({"aria-controls":e.substring(1),"aria-labelledby":q});g.attr("aria-labelledby",q)});this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role",
"tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(d){return a("<div>").attr("id",d).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(d){a.isArray(d)&&(d.length?d.length===this.anchors.length&&(d=!0):d=!1);for(var b=0,c;c=this.tabs[b];b++)!0===d||-1!==a.inArray(b,d)?a(c).addClass("ui-state-disabled").attr("aria-disabled","true"):a(c).removeClass("ui-state-disabled").removeAttr("aria-disabled");
this.options.disabled=d},_setupEvents:function(d){var b={click:function(a){a.preventDefault()}};d&&a.each(d.split(" "),function(a,d){b[d]="_eventHandler"});this._off(this.anchors.add(this.tabs).add(this.panels));this._on(this.anchors,b);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(d){var b,c,e=this.element.parent();"fill"===d?(a.support.minHeight||(c=e.css("overflow"),e.css("overflow",
"hidden")),b=e.height(),this.element.siblings(":visible").each(function(){var c=a(this),d=c.css("position");"absolute"!==d&&"fixed"!==d&&(b-=c.outerHeight(!0))}),c&&e.css("overflow",c),this.element.children().not(this.panels).each(function(){b-=a(this).outerHeight(!0)}),this.panels.each(function(){a(this).height(Math.max(0,b-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===d&&(b=0,this.panels.each(function(){b=Math.max(b,a(this).height("").height())}).height(b))},_eventHandler:function(d){var b=
this.options,c=this.active,e=a(d.currentTarget).closest("li"),f=e[0]===c[0],g=f&&b.collapsible,m=g?a():this._getPanelForTab(e),t=c.length?this._getPanelForTab(c):a(),c={oldTab:c,oldPanel:t,newTab:g?a():e,newPanel:m};d.preventDefault();e.hasClass("ui-state-disabled")||e.hasClass("ui-tabs-loading")||this.running||f&&!b.collapsible||!1===this._trigger("beforeActivate",d,c)||(b.active=g?!1:this.tabs.index(e),this.active=f?a():e,this.xhr&&this.xhr.abort(),t.length||m.length||a.error("jQuery UI Tabs: Mismatching fragment identifier."),
m.length&&this.load(this.tabs.index(e),d),this._toggle(d,c))},_toggle:function(d,b){function c(){f.running=!1;f._trigger("activate",d,b)}function e(){b.newTab.closest("li").addClass("ui-tabs-active ui-state-active");g.length&&f.options.show?f._show(g,f.options.show,c):(g.show(),c())}var f=this,g=b.newPanel,m=b.oldPanel;this.running=!0;m.length&&this.options.hide?this._hide(m,this.options.hide,function(){b.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");e()}):(b.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),
m.hide(),e());m.attr({"aria-expanded":"false","aria-hidden":"true"});b.oldTab.attr("aria-selected","false");g.length&&m.length?b.oldTab.attr("tabIndex",-1):g.length&&this.tabs.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1);g.attr({"aria-expanded":"true","aria-hidden":"false"});b.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(d){d=this._findActive(d);d[0]!==this.active[0]&&(d.length||(d=this.active),d=d.find(".ui-tabs-anchor")[0],this._eventHandler({target:d,
currentTarget:d,preventDefault:a.noop}))},_findActive:function(d){return!1===d?a():this.tabs.eq(d)},_getIndex:function(a){"string"===typeof a&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']")));return a},_destroy:function(){this.xhr&&this.xhr.abort();this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible");this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role");this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeData("href.tabs").removeData("load.tabs").removeUniqueId();
this.tabs.add(this.panels).each(function(){a.data(this,"ui-tabs-destroy")?a(this).remove():a(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")});this.tabs.each(function(){var d=a(this),b=d.data("ui-tabs-aria-controls");
b?d.attr("aria-controls",b):d.removeAttr("aria-controls")});"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(d){var b=this.options.disabled;!1!==b&&(d===m?b=!1:(d=this._getIndex(d),b=a.isArray(b)?a.map(b,function(a){return a!==d?a:null}):a.map(this.tabs,function(a,b){return b!==d?b:null})),this._setupDisabled(b))},disable:function(d){var b=this.options.disabled;if(!0!==b){if(d===m)b=!0;else{d=this._getIndex(d);if(-1!==a.inArray(d,b))return;b=a.isArray(b)?a.merge([d],
b).sort():[d]}this._setupDisabled(b)}},load:function(d,b){d=this._getIndex(d);var c=this,e=this.tabs.eq(d),g=e.find(".ui-tabs-anchor"),m=this._getPanelForTab(e),q={tab:e,panel:m};f(g[0])||(this.xhr=a.ajax(this._ajaxSettings(g,b,q)))&&"canceled"!==this.xhr.statusText&&(e.addClass("ui-tabs-loading"),m.attr("aria-busy","true"),this.xhr.success(function(a){setTimeout(function(){m.html(a);c._trigger("load",b,q)},1)}).complete(function(a,b){setTimeout(function(){"abort"===b&&c.panels.stop(!1,!0);e.removeClass("ui-tabs-loading");
m.removeAttr("aria-busy");a===c.xhr&&delete c.xhr},1)}))},_ajaxSettings:function(d,b,c){var e=this;return{url:d.attr("href"),beforeSend:function(d,f){return e._trigger("beforeLoad",b,a.extend({jqXHR:d,ajaxSettings:f},c))}}},_getPanelForTab:function(d){d=a(d).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+d))}});!1!==a.uiBackCompat&&(a.ui.tabs.prototype._ui=function(a,b){return{tab:a,panel:b,index:this.anchors.index(a)}},a.widget("ui.tabs",a.ui.tabs,{url:function(a,b){this.anchors.eq(a).attr("href",
b)}}),a.widget("ui.tabs",a.ui.tabs,{options:{ajaxOptions:null,cache:!1},_create:function(){this._super();var d=this;this._on({tabsbeforeload:function(b,c){a.data(c.tab[0],"cache.tabs")?b.preventDefault():c.jqXHR.success(function(){d.options.cache&&a.data(c.tab[0],"cache.tabs",!0)})}})},_ajaxSettings:function(d,b,c){var e=this.options.ajaxOptions;return a.extend({},e,{error:function(a,b){try{e.error(a,b,c.tab.closest("li").index(),c.tab[0])}catch(d){}}},this._superApply(arguments))},_setOption:function(a,
b){"cache"===a&&!1===b&&this.anchors.removeData("cache.tabs");this._super(a,b)},_destroy:function(){this.anchors.removeData("cache.tabs");this._super()},url:function(a){this.anchors.eq(a).removeData("cache.tabs");this._superApply(arguments)}}),a.widget("ui.tabs",a.ui.tabs,{abort:function(){this.xhr&&this.xhr.abort()}}),a.widget("ui.tabs",a.ui.tabs,{options:{spinner:"<em>Loading&#8230;</em>"},_create:function(){this._super();this._on({tabsbeforeload:function(a,b){if(a.target===this.element[0]&&this.options.spinner){var c=
b.tab.find("span"),e=c.html();c.html(this.options.spinner);b.jqXHR.complete(function(){c.html(e)})}}})}}),a.widget("ui.tabs",a.ui.tabs,{options:{enable:null,disable:null},enable:function(d){var b=this.options,c;if(d&&!0===b.disabled||a.isArray(b.disabled)&&-1!==a.inArray(d,b.disabled))c=!0;this._superApply(arguments);c&&this._trigger("enable",null,this._ui(this.anchors[d],this.panels[d]))},disable:function(d){var b=this.options,c;if(d&&!1===b.disabled||a.isArray(b.disabled)&&-1===a.inArray(d,b.disabled))c=
!0;this._superApply(arguments);c&&this._trigger("disable",null,this._ui(this.anchors[d],this.panels[d]))}}),a.widget("ui.tabs",a.ui.tabs,{options:{add:null,remove:null,tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},add:function(d,b,c){c===m&&(c=this.anchors.length);var e,f=this.options;b=a(f.tabTemplate.replace(/#\{href\}/g,d).replace(/#\{label\}/g,b));var g=d.indexOf("#")?this._tabId(b):d.replace("#","");b.addClass("ui-state-default ui-corner-top").data("ui-tabs-destroy",!0);
b.attr("aria-controls",g);d=c>=this.tabs.length;e=this.element.find("#"+g);e.length||(e=this._createPanel(g),d?0<c?e.insertAfter(this.panels.eq(-1)):e.appendTo(this.element):e.insertBefore(this.panels[c]));e.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").hide();d?b.appendTo(this.tablist):b.insertBefore(this.tabs[c]);f.disabled=a.map(f.disabled,function(a){return a>=c?++a:a});this.refresh();1===this.tabs.length&&!1===f.active&&this.option("active",0);this._trigger("add",null,this._ui(this.anchors[c],
this.panels[c]));return this},remove:function(d){d=this._getIndex(d);var b=this.options,c=this.tabs.eq(d).remove(),e=this._getPanelForTab(c).remove();c.hasClass("ui-tabs-active")&&2<this.anchors.length&&this._activate(d+(d+1<this.anchors.length?1:-1));b.disabled=a.map(a.grep(b.disabled,function(a){return a!==d}),function(a){return a>=d?--a:a});this.refresh();this._trigger("remove",null,this._ui(c.find("a")[0],e[0]));return this}}),a.widget("ui.tabs",a.ui.tabs,{length:function(){return this.anchors.length}}),
a.widget("ui.tabs",a.ui.tabs,{options:{idPrefix:"ui-tabs-"},_tabId:function(d){d=d.is("li")?d.find("a[href]"):d;d=d[0];return a(d).closest("li").attr("aria-controls")||d.title&&d.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF\-]/g,"")||this.options.idPrefix+ ++g}}),a.widget("ui.tabs",a.ui.tabs,{options:{panelTemplate:"<div></div>"},_createPanel:function(d){return a(this.options.panelTemplate).attr("id",d).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)}}),
a.widget("ui.tabs",a.ui.tabs,{_create:function(){var a=this.options;null===a.active&&a.selected!==m&&(a.active=-1===a.selected?!1:a.selected);this._super();a.selected=a.active;!1===a.selected&&(a.selected=-1)},_setOption:function(a,b){if("selected"!==a)return this._super(a,b);var c=this.options;this._super("active",-1===b?!1:b);c.selected=c.active;!1===c.selected&&(c.selected=-1)},_eventHandler:function(){this._superApply(arguments);this.options.selected=this.options.active;!1===this.options.selected&&
(this.options.selected=-1)}}),a.widget("ui.tabs",a.ui.tabs,{options:{show:null,select:null},_create:function(){this._super();!1!==this.options.active&&this._trigger("show",null,this._ui(this.active.find(".ui-tabs-anchor")[0],this._getPanelForTab(this.active)[0]))},_trigger:function(a,b,c){var e=this._superApply(arguments);if(!e)return!1;"beforeActivate"===a&&c.newTab.length?e=this._super("select",b,{tab:c.newTab.find(".ui-tabs-anchor")[0],panel:c.newPanel[0],index:c.newTab.closest("li").index()}):
"activate"===a&&c.newTab.length&&(e=this._super("show",b,{tab:c.newTab.find(".ui-tabs-anchor")[0],panel:c.newPanel[0],index:c.newTab.closest("li").index()}));return e}}),a.widget("ui.tabs",a.ui.tabs,{select:function(a){a=this._getIndex(a);if(-1===a)if(this.options.collapsible&&-1!==this.options.selected)a=this.options.selected;else return;this.anchors.eq(a).trigger(this.options.event+this.eventNamespace)}}),function(){var d=0;a.widget("ui.tabs",a.ui.tabs,{options:{cookie:null},_create:function(){var a=
this.options,c;null==a.active&&a.cookie&&(c=parseInt(this._cookie(),10),-1===c&&(c=!1),a.active=c);this._super()},_cookie:function(b){var c=[this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++d)];arguments.length&&(c.push(!1===b?-1:b),c.push(this.options.cookie));return a.cookie.apply(null,c)},_refresh:function(){this._super();this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_eventHandler:function(){this._superApply(arguments);this.options.cookie&&this._cookie(this.options.active,
this.options.cookie)},_destroy:function(){this._super();this.options.cookie&&this._cookie(null,this.options.cookie)}})}(),a.widget("ui.tabs",a.ui.tabs,{_trigger:function(d,b,c){c=a.extend({},c);"load"===d&&(c.panel=c.panel[0],c.tab=c.tab.find(".ui-tabs-anchor")[0]);return this._super(d,b,c)}}),a.widget("ui.tabs",a.ui.tabs,{options:{fx:null},_getFx:function(){var d,b,c=this.options.fx;c&&(a.isArray(c)?(d=c[0],b=c[1]):d=b=c);return c?{show:b,hide:d}:null},_toggle:function(a,b){function c(){f.running=
!1;f._trigger("activate",a,b)}function e(){b.newTab.closest("li").addClass("ui-tabs-active ui-state-active");g.length&&t.show?g.animate(t.show,t.show.duration,function(){c()}):(g.show(),c())}var f=this,g=b.newPanel,m=b.oldPanel,t=this._getFx();if(!t)return this._super(a,b);f.running=!0;m.length&&t.hide?m.animate(t.hide,t.hide.duration,function(){b.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");e()}):(b.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),m.hide(),
e())}}))})(jQuery);
(function(a){function m(e,d){var b=(e.attr("aria-describedby")||"").split(/\s+/);b.push(d);e.data("ui-tooltip-id",d).attr("aria-describedby",a.trim(b.join(" ")))}function f(e){var d=e.data("ui-tooltip-id"),b=(e.attr("aria-describedby")||"").split(/\s+/),d=a.inArray(d,b);-1!==d&&b.splice(d,1);e.removeData("ui-tooltip-id");(b=a.trim(b.join(" ")))?e.attr("aria-describedby",b):e.removeAttr("aria-describedby")}var g=0;a.widget("ui.tooltip",{version:"1.9.1",options:{content:function(){return a(this).attr("title")},hide:!0,
items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flipfit"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};this.options.disabled&&this._disable()},_setOption:function(e,d){var b=this;"disabled"===e?(this[d?"_disable":"_enable"](),this.options[e]=d):(this._super(e,d),"content"===e&&a.each(this.tooltips,function(a,d){b._updateContent(d)}))},_disable:function(){var e=
this;a.each(this.tooltips,function(d,b){var c=a.Event("blur");c.target=c.currentTarget=b[0];e.close(c,!0)});this.element.find(this.options.items).andSelf().each(function(){var d=a(this);d.is("[title]")&&d.data("ui-tooltip-title",d.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).andSelf().each(function(){var e=a(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var d=this,b=a(e?e.target:this.element).closest(this.options.items);
b.length&&(this.options.track&&b.data("ui-tooltip-id")?(this._find(b).position(a.extend({of:b},this.options.position)),this._off(this.document,"mousemove")):(b.attr("title")&&b.data("ui-tooltip-title",b.attr("title")),b.data("tooltip-open",!0),e&&"mouseover"===e.type&&b.parents().each(function(){var b;a(this).data("tooltip-open")&&(b=a.Event("blur"),b.target=b.currentTarget=this,d.close(b,!0));this.title&&(a(this).uniqueId(),d.parents[this.id]={element:this,title:this.title},this.title="")}),this._updateContent(b,
e)))},_updateContent:function(a,d){var b;b=this.options.content;var c=this;if("string"===typeof b)return this._open(d,a,b);(b=b.call(a[0],function(b){a.data("tooltip-open")&&c._delay(function(){this._open(d,a,b)})}))&&this._open(d,a,b)},_open:function(e,d,b){function c(a){n.of=a;f.is(":hidden")||f.position(n)}var f,g,n=a.extend({},this.options.position);b&&(f=this._find(d),f.length?f.find(".ui-tooltip-content").html(b):(d.is("[title]")&&(e&&"mouseover"===e.type?d.attr("title",""):d.removeAttr("title")),
f=this._tooltip(d),m(d,f.attr("id")),f.find(".ui-tooltip-content").html(b),this.options.track&&e&&/^mouse/.test(e.originalEvent.type)?(this._on(this.document,{mousemove:c}),c(e)):f.position(a.extend({of:d},this.options.position)),f.hide(),this._show(f,this.options.show),this.options.show&&this.options.show.delay&&(g=setInterval(function(){f.is(":visible")&&(c(n.of),clearInterval(g))},a.fx.interval)),this._trigger("open",e,{tooltip:f}),b={keyup:function(b){b.keyCode===a.ui.keyCode.ESCAPE&&(b=a.Event(b),
b.currentTarget=d[0],this.close(b,!0))},remove:function(){this._removeTooltip(f)}},e&&"mouseover"!==e.type||(b.mouseleave="close"),e&&"focusin"!==e.type||(b.focusout="close"),this._on(d,b)))},close:function(e){var d=this,b=a(e?e.currentTarget:this.element),c=this._find(b);this.closing||(b.data("ui-tooltip-title")&&b.attr("title",b.data("ui-tooltip-title")),f(b),c.stop(!0),this._hide(c,this.options.hide,function(){d._removeTooltip(a(this))}),b.removeData("tooltip-open"),this._off(b,"mouseleave focusout keyup"),
b[0]!==this.element[0]&&this._off(b,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&a.each(this.parents,function(a,b){b.element.title=b.title;delete d.parents[a]}),this.closing=!0,this._trigger("close",e,{tooltip:c}),this.closing=!1)},_tooltip:function(e){var d="ui-tooltip-"+g++,b=a("<div>").attr({id:d,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));a("<div>").addClass("ui-tooltip-content").appendTo(b);b.appendTo(this.document[0].body);
a.fn.bgiframe&&b.bgiframe();this.tooltips[d]=e;return b},_find:function(e){return(e=e.data("ui-tooltip-id"))?a("#"+e):a()},_removeTooltip:function(a){a.remove();delete this.tooltips[a.attr("id")]},_destroy:function(){var e=this;a.each(this.tooltips,function(d,b){var c=a.Event("blur");c.target=c.currentTarget=b[0];e.close(c,!0);a("#"+d).remove();b.data("ui-tooltip-title")&&(b.attr("title",b.data("ui-tooltip-title")),b.removeData("ui-tooltip-title"))})}})})(jQuery);var swfobject=function(){function a(){if(!L){try{var a=y.getElementsByTagName("body")[0].appendChild(y.createElement("span"));a.parentNode.removeChild(a)}catch(b){return}L=!0;for(var a=O.length,c=0;c<a;c++)O[c]()}}function m(a){L?a():O[O.length]=a}function f(a){if(typeof x.addEventListener!=u)x.addEventListener("load",a,!1);else if(typeof y.addEventListener!=u)y.addEventListener("load",a,!1);else if(typeof x.attachEvent!=u)z(x,"onload",a);else if("function"==typeof x.onload){var b=x.onload;x.onload=
function(){b();a()}}else x.onload=a}function g(){var a=y.getElementsByTagName("body")[0],b=y.createElement(B);b.setAttribute("type",r);var c=a.appendChild(b);if(c){var d=0;(function(){if(typeof c.GetVariable!=u){var f=c.GetVariable("$version");f&&(f=f.split(" ")[1].split(","),G.pv=[parseInt(f[0],10),parseInt(f[1],10),parseInt(f[2],10)])}else if(10>d){d++;setTimeout(arguments.callee,10);return}a.removeChild(b);c=null;e()})()}else e()}function e(){var a=N.length;if(0<a)for(var e=0;e<a;e++){var f=N[e].id,
g=N[e].callbackFn,p={success:!1,id:f};if(0<G.pv[0]){var l=t(f);if(l)if(!v(N[e].swfVersion)||G.wk&&312>G.wk)if(N[e].expressInstall&&b()){p={};p.data=N[e].expressInstall;p.width=l.getAttribute("width")||"0";p.height=l.getAttribute("height")||"0";l.getAttribute("class")&&(p.styleclass=l.getAttribute("class"));l.getAttribute("align")&&(p.align=l.getAttribute("align"));for(var m={},l=l.getElementsByTagName("param"),C=l.length,x=0;x<C;x++)"movie"!=l[x].getAttribute("name").toLowerCase()&&(m[l[x].getAttribute("name")]=
l[x].getAttribute("value"));c(p,m,f,g)}else h(l),g&&g(p);else s(f,!0),g&&(p.success=!0,p.ref=d(f),g(p))}else s(f,!0),g&&((f=d(f))&&typeof f.SetVariable!=u&&(p.success=!0,p.ref=f),g(p))}}function d(a){var b=null;(a=t(a))&&"OBJECT"==a.nodeName&&(typeof a.SetVariable!=u?b=a:(a=a.getElementsByTagName(B)[0])&&(b=a));return b}function b(){return!C&&v("6.0.65")&&(G.win||G.mac)&&!(G.wk&&312>G.wk)}function c(a,b,c,d){C=!0;V=d||null;W={success:!1,id:c};var e=t(c);if(e){"OBJECT"==e.nodeName?(S=l(e),Q=null):
(S=e,Q=c);a.id=p;if(typeof a.width==u||!/%$/.test(a.width)&&310>parseInt(a.width,10))a.width="310";if(typeof a.height==u||!/%$/.test(a.height)&&137>parseInt(a.height,10))a.height="137";y.title=y.title.slice(0,47)+" - Flash Player Installation";d=G.ie&&G.win?"ActiveX":"PlugIn";d="MMredirectURL="+x.location.toString().replace(/&/g,"%26")+"&MMplayerType="+d+"&MMdoctitle="+y.title;b.flashvars=typeof b.flashvars!=u?b.flashvars+("&"+d):d;G.ie&&G.win&&4!=e.readyState&&(d=y.createElement("div"),c+="SWFObjectNew",
d.setAttribute("id",c),e.parentNode.insertBefore(d,e),e.style.display="none",function(){4==e.readyState?e.parentNode.removeChild(e):setTimeout(arguments.callee,10)}());n(a,b,c)}}function h(a){if(G.ie&&G.win&&4!=a.readyState){var b=y.createElement("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(l(a),b);a.style.display="none";(function(){4==a.readyState?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)})()}else a.parentNode.replaceChild(l(a),a)}function l(a){var b=y.createElement("div");
if(G.win&&G.ie)b.innerHTML=a.innerHTML;else if(a=a.getElementsByTagName(B)[0])if(a=a.childNodes)for(var c=a.length,d=0;d<c;d++)1==a[d].nodeType&&"PARAM"==a[d].nodeName||8==a[d].nodeType||b.appendChild(a[d].cloneNode(!0));return b}function n(a,b,c){var d,e=t(c);if(G.wk&&312>G.wk)return d;if(e)if(typeof a.id==u&&(a.id=c),G.ie&&G.win){var f="",g;for(g in a)a[g]!=Object.prototype[g]&&("data"==g.toLowerCase()?b.movie=a[g]:"styleclass"==g.toLowerCase()?f+=' class="'+a[g]+'"':"classid"!=g.toLowerCase()&&
(f+=" "+g+'="'+a[g]+'"'));g="";for(var h in b)b[h]!=Object.prototype[h]&&(g+='<param name="'+h+'" value="'+b[h]+'" />');e.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+">"+g+"</object>";aa[aa.length]=a.id;d=t(a.id)}else{h=y.createElement(B);h.setAttribute("type",r);for(var p in a)a[p]!=Object.prototype[p]&&("styleclass"==p.toLowerCase()?h.setAttribute("class",a[p]):"classid"!=p.toLowerCase()&&h.setAttribute(p,a[p]));for(f in b)b[f]!=Object.prototype[f]&&"movie"!=f.toLowerCase()&&
(a=h,g=f,p=b[f],c=y.createElement("param"),c.setAttribute("name",g),c.setAttribute("value",p),a.appendChild(c));e.parentNode.replaceChild(h,e);d=h}return d}function q(a){var b=t(a);b&&"OBJECT"==b.nodeName&&(G.ie&&G.win?(b.style.display="none",function(){if(4==b.readyState){var c=t(a);if(c){for(var d in c)"function"==typeof c[d]&&(c[d]=null);c.parentNode.removeChild(c)}}else setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function t(a){var b=null;try{b=y.getElementById(a)}catch(c){}return b}
function z(a,b,c){a.attachEvent(b,c);Y[Y.length]=[a,b,c]}function v(a){var b=G.pv;a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?!0:!1}function A(a,b,c,d){if(!G.ie||!G.mac){var e=y.getElementsByTagName("head")[0];e&&(c=c&&"string"==typeof c?c:"screen",d&&(P=J=null),J&&P==c||(d=y.createElement("style"),d.setAttribute("type","text/css"),d.setAttribute("media",c),J=e.appendChild(d),
G.ie&&G.win&&typeof y.styleSheets!=u&&0<y.styleSheets.length&&(J=y.styleSheets[y.styleSheets.length-1]),P=c),G.ie&&G.win?J&&typeof J.addRule==B&&J.addRule(a,b):J&&typeof y.createTextNode!=u&&J.appendChild(y.createTextNode(a+" {"+b+"}")))}}function s(a,b){if(M){var c=b?"visible":"hidden";L&&t(a)?t(a).style.visibility=c:A("#"+a,"visibility:"+c)}}function F(a){return null!=/[\\\"<>\.;]/.exec(a)&&typeof encodeURIComponent!=u?encodeURIComponent(a):a}var u="undefined",B="object",r="application/x-shockwave-flash",
p="SWFObjectExprInst",x=window,y=document,H=navigator,K=!1,O=[function(){K?g():e()}],N=[],aa=[],Y=[],S,Q,V,W,L=!1,C=!1,J,P,M=!0,G=function(){var a=typeof y.getElementById!=u&&typeof y.getElementsByTagName!=u&&typeof y.createElement!=u,b=H.userAgent.toLowerCase(),c=H.platform.toLowerCase(),d=c?/win/.test(c):/win/.test(b),c=c?/mac/.test(c):/mac/.test(b),b=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,e=!+"\v1",f=[0,0,0],g=null;if(typeof H.plugins!=u&&typeof H.plugins["Shockwave Flash"]==
B)!(g=H.plugins["Shockwave Flash"].description)||typeof H.mimeTypes!=u&&H.mimeTypes[r]&&!H.mimeTypes[r].enabledPlugin||(K=!0,e=!1,g=g.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),f[0]=parseInt(g.replace(/^(.*)\..*$/,"$1"),10),f[1]=parseInt(g.replace(/^.*\.(.*)\s.*$/,"$1"),10),f[2]=/[a-zA-Z]/.test(g)?parseInt(g.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof x.ActiveXObject!=u)try{var h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");h&&(g=h.GetVariable("$version"))&&(e=!0,g=g.split(" ")[1].split(","),
f=[parseInt(g[0],10),parseInt(g[1],10),parseInt(g[2],10)])}catch(p){}return{w3:a,pv:f,wk:b,ie:e,win:d,mac:c}}();(function(){G.w3&&((typeof y.readyState!=u&&"complete"==y.readyState||typeof y.readyState==u&&(y.getElementsByTagName("body")[0]||y.body))&&a(),L||(typeof y.addEventListener!=u&&y.addEventListener("DOMContentLoaded",a,!1),G.ie&&G.win&&(y.attachEvent("onreadystatechange",function(){"complete"==y.readyState&&(y.detachEvent("onreadystatechange",arguments.callee),a())}),x==top&&function(){if(!L){try{y.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,
0);return}a()}}()),G.wk&&function(){L||(/loaded|complete/.test(y.readyState)?a():setTimeout(arguments.callee,0))}(),f(a)))})();(function(){G.ie&&G.win&&window.attachEvent("onunload",function(){for(var a=Y.length,b=0;b<a;b++)Y[b][0].detachEvent(Y[b][1],Y[b][2]);a=aa.length;for(b=0;b<a;b++)q(aa[b]);for(var c in G)G[c]=null;G=null;for(var d in swfobject)swfobject[d]=null;swfobject=null})})();return{registerObject:function(a,b,c,d){if(G.w3&&a&&b){var e={};e.id=a;e.swfVersion=b;e.expressInstall=c;e.callbackFn=
d;N[N.length]=e;s(a,!1)}else d&&d({success:!1,id:a})},getObjectById:function(a){if(G.w3)return d(a)},embedSWF:function(a,d,e,f,g,h,p,l,x,C){var y={success:!1,id:d};G.w3&&!(G.wk&&312>G.wk)&&a&&d&&e&&f&&g?(s(d,!1),m(function(){e+="";f+="";var m={};if(x&&typeof x===B)for(var k in x)m[k]=x[k];m.data=a;m.width=e;m.height=f;k={};if(l&&typeof l===B)for(var q in l)k[q]=l[q];if(p&&typeof p===B)for(var H in p)k.flashvars=typeof k.flashvars!=u?k.flashvars+("&"+H+"="+p[H]):H+"="+p[H];if(v(g))q=n(m,k,d),m.id==
d&&s(d,!0),y.success=!0,y.ref=q;else{if(h&&b()){m.data=h;c(m,k,d,C);return}s(d,!0)}C&&C(y)})):C&&C(y)},switchOffAutoHideShow:function(){M=!1},ua:G,getFlashPlayerVersion:function(){return{major:G.pv[0],minor:G.pv[1],release:G.pv[2]}},hasFlashPlayerVersion:v,createSWF:function(a,b,c){if(G.w3)return n(a,b,c)},showExpressInstall:function(a,d,e,f){G.w3&&b()&&c(a,d,e,f)},removeSWF:function(a){G.w3&&q(a)},createCSS:function(a,b,c,d){G.w3&&A(a,b,c,d)},addDomLoadEvent:m,addLoadEvent:f,getQueryParamValue:function(a){var b=
y.location.search||y.location.hash;if(b){/\?/.test(b)&&(b=b.split("?")[1]);if(null==a)return F(b);for(var b=b.split("&"),c=0;c<b.length;c++)if(b[c].substring(0,b[c].indexOf("="))==a)return F(b[c].substring(b[c].indexOf("=")+1))}return""},expressInstallCallback:function(){if(C){var a=t(p);a&&S&&(a.parentNode.replaceChild(S,a),Q&&(s(Q,!0),G.ie&&G.win&&(S.style.display="block")),V&&V(W));C=!1}}}}();(function(){function a(b,c,d){if(b===c)return 0!==b||1/b==1/c;if(null==b||null==c)return b===c;b._chain&&(b=b._wrapped);c._chain&&(c=c._wrapped);if(b.isEqual&&p.isFunction(b.isEqual))return b.isEqual(c);if(c.isEqual&&p.isFunction(c.isEqual))return c.isEqual(b);var e=h.call(b);if(e!=h.call(c))return!1;switch(e){case "[object String]":return b==String(c);case "[object Number]":return b!=+b?c!=+c:0==b?1/b==1/c:b==+c;case "[object Date]":case "[object Boolean]":return+b==+c;case "[object RegExp]":return b.source==
c.source&&b.global==c.global&&b.multiline==c.multiline&&b.ignoreCase==c.ignoreCase}if("object"!=typeof b||"object"!=typeof c)return!1;for(var f=d.length;f--;)if(d[f]==b)return!0;d.push(b);var f=0,g=!0;if("[object Array]"==e){if(f=b.length,g=f==c.length)for(;f--&&(g=f in b==f in c&&a(b[f],c[f],d)););}else{if("constructor"in b!="constructor"in c||b.constructor!=c.constructor)return!1;for(var l in b)if(p.has(b,l)&&(f++,!(g=p.has(c,l)&&a(b[l],c[l],d))))break;if(g){for(l in c)if(p.has(c,l)&&!f--)break;
g=!f}}d.pop();return g}var m=this,f=m._,g={},e=Array.prototype,d=Object.prototype,b=e.slice,c=e.unshift,h=d.toString,l=d.hasOwnProperty,n=e.forEach,q=e.map,t=e.reduce,z=e.reduceRight,v=e.filter,A=e.every,s=e.some,F=e.indexOf,u=e.lastIndexOf,d=Array.isArray,B=Object.keys,r=Function.prototype.bind,p=function(a){return new V(a)};"undefined"!==typeof exports?("undefined"!==typeof module&&module.exports&&(exports=module.exports=p),exports._=p):m._=p;p.VERSION="1.3.3";var x=p.each=p.forEach=function(a,
b,c){if(null!=a)if(n&&a.forEach===n)a.forEach(b,c);else if(a.length===+a.length)for(var d=0,e=a.length;d<e&&!(d in a&&b.call(c,a[d],d,a)===g);d++);else for(d in a)if(p.has(a,d)&&b.call(c,a[d],d,a)===g)break};p.map=p.collect=function(a,b,c){var d=[];if(null==a)return d;if(q&&a.map===q)return a.map(b,c);x(a,function(a,e,f){d[d.length]=b.call(c,a,e,f)});a.length===+a.length&&(d.length=a.length);return d};p.reduce=p.foldl=p.inject=function(a,b,c,d){var e=2<arguments.length;null==a&&(a=[]);if(t&&a.reduce===
t)return d&&(b=p.bind(b,d)),e?a.reduce(b,c):a.reduce(b);x(a,function(a,f,g){e?c=b.call(d,c,a,f,g):(c=a,e=!0)});if(!e)throw new TypeError("Reduce of empty array with no initial value");return c};p.reduceRight=p.foldr=function(a,b,c,d){var e=2<arguments.length;null==a&&(a=[]);if(z&&a.reduceRight===z)return d&&(b=p.bind(b,d)),e?a.reduceRight(b,c):a.reduceRight(b);var f=p.toArray(a).reverse();d&&!e&&(b=p.bind(b,d));return e?p.reduce(f,b,c,d):p.reduce(f,b)};p.find=p.detect=function(a,b,c){var d;y(a,function(a,
e,f){if(b.call(c,a,e,f))return d=a,!0});return d};p.filter=p.select=function(a,b,c){var d=[];if(null==a)return d;if(v&&a.filter===v)return a.filter(b,c);x(a,function(a,e,f){b.call(c,a,e,f)&&(d[d.length]=a)});return d};p.reject=function(a,b,c){var d=[];if(null==a)return d;x(a,function(a,e,f){b.call(c,a,e,f)||(d[d.length]=a)});return d};p.every=p.all=function(a,b,c){var d=!0;if(null==a)return d;if(A&&a.every===A)return a.every(b,c);x(a,function(a,e,f){if(!(d=d&&b.call(c,a,e,f)))return g});return!!d};
var y=p.some=p.any=function(a,b,c){b||(b=p.identity);var d=!1;if(null==a)return d;if(s&&a.some===s)return a.some(b,c);x(a,function(a,e,f){if(d||(d=b.call(c,a,e,f)))return g});return!!d};p.include=p.contains=function(a,b){var c=!1;return null==a?c:F&&a.indexOf===F?-1!=a.indexOf(b):c=y(a,function(a){return a===b})};p.invoke=function(a,c){var d=b.call(arguments,2);return p.map(a,function(a){return(p.isFunction(c)?c||a:a[c]).apply(a,d)})};p.pluck=function(a,b){return p.map(a,function(a){return a[b]})};
p.max=function(a,b,c){if(!b&&p.isArray(a)&&a[0]===+a[0])return Math.max.apply(Math,a);if(!b&&p.isEmpty(a))return-Infinity;var d={computed:-Infinity};x(a,function(a,e,f){e=b?b.call(c,a,e,f):a;e>=d.computed&&(d={value:a,computed:e})});return d.value};p.min=function(a,b,c){if(!b&&p.isArray(a)&&a[0]===+a[0])return Math.min.apply(Math,a);if(!b&&p.isEmpty(a))return Infinity;var d={computed:Infinity};x(a,function(a,e,f){e=b?b.call(c,a,e,f):a;e<d.computed&&(d={value:a,computed:e})});return d.value};p.shuffle=
function(a){var b=[],c;x(a,function(a,d,e){c=Math.floor(Math.random()*(d+1));b[d]=b[c];b[c]=a});return b};p.sortBy=function(a,b,c){var d=p.isFunction(b)?b:function(a){return a[b]};return p.pluck(p.map(a,function(a,b,e){return{value:a,criteria:d.call(c,a,b,e)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;return void 0===c?1:void 0===d?-1:c<d?-1:c>d?1:0}),"value")};p.groupBy=function(a,b){var c={},d=p.isFunction(b)?b:function(a){return a[b]};x(a,function(a,b){var e=d(a,b);(c[e]||(c[e]=[])).push(a)});
return c};p.sortedIndex=function(a,b,c){c||(c=p.identity);for(var d=0,e=a.length;d<e;){var f=d+e>>1;c(a[f])<c(b)?d=f+1:e=f}return d};p.toArray=function(a){return a?p.isArray(a)||p.isArguments(a)?b.call(a):a.toArray&&p.isFunction(a.toArray)?a.toArray():p.values(a):[]};p.size=function(a){return p.isArray(a)?a.length:p.keys(a).length};p.first=p.head=p.take=function(a,c,d){return null==c||d?a[0]:b.call(a,0,c)};p.initial=function(a,c,d){return b.call(a,0,a.length-(null==c||d?1:c))};p.last=function(a,c,
d){return null==c||d?a[a.length-1]:b.call(a,Math.max(a.length-c,0))};p.rest=p.tail=function(a,c,d){return b.call(a,null==c||d?1:c)};p.compact=function(a){return p.filter(a,function(a){return!!a})};p.flatten=function(a,b){return p.reduce(a,function(a,c){if(p.isArray(c))return a.concat(b?c:p.flatten(c));a[a.length]=c;return a},[])};p.without=function(a){return p.difference(a,b.call(arguments,1))};p.uniq=p.unique=function(a,b,c){c=c?p.map(a,c):a;var d=[];3>a.length&&(b=!0);p.reduce(c,function(c,e,f){(b?
p.last(c)===e&&c.length:p.include(c,e))||(c.push(e),d.push(a[f]));return c},[]);return d};p.union=function(){return p.uniq(p.flatten(arguments,!0))};p.intersection=p.intersect=function(a){var c=b.call(arguments,1);return p.filter(p.uniq(a),function(a){return p.every(c,function(b){return 0<=p.indexOf(b,a)})})};p.difference=function(a){var c=p.flatten(b.call(arguments,1),!0);return p.filter(a,function(a){return!p.include(c,a)})};p.zip=function(){for(var a=b.call(arguments),c=p.max(p.pluck(a,"length")),
d=Array(c),e=0;e<c;e++)d[e]=p.pluck(a,""+e);return d};p.indexOf=function(a,b,c){if(null==a)return-1;var d;if(c)return c=p.sortedIndex(a,b),a[c]===b?c:-1;if(F&&a.indexOf===F)return a.indexOf(b);c=0;for(d=a.length;c<d;c++)if(c in a&&a[c]===b)return c;return-1};p.lastIndexOf=function(a,b){if(null==a)return-1;if(u&&a.lastIndexOf===u)return a.lastIndexOf(b);for(var c=a.length;c--;)if(c in a&&a[c]===b)return c;return-1};p.range=function(a,b,c){1>=arguments.length&&(b=a||0,a=0);c=arguments[2]||1;for(var d=
Math.max(Math.ceil((b-a)/c),0),e=0,f=Array(d);e<d;)f[e++]=a,a+=c;return f};var H=function(){};p.bind=function(a,c){var d,e;if(a.bind===r&&r)return r.apply(a,b.call(arguments,1));if(!p.isFunction(a))throw new TypeError;e=b.call(arguments,2);return d=function(){if(!(this instanceof d))return a.apply(c,e.concat(b.call(arguments)));H.prototype=a.prototype;var f=new H,g=a.apply(f,e.concat(b.call(arguments)));return Object(g)===g?g:f}};p.bindAll=function(a){var c=b.call(arguments,1);0==c.length&&(c=p.functions(a));
x(c,function(b){a[b]=p.bind(a[b],a)});return a};p.memoize=function(a,b){var c={};b||(b=p.identity);return function(){var d=b.apply(this,arguments);return p.has(c,d)?c[d]:c[d]=a.apply(this,arguments)}};p.delay=function(a,c){var d=b.call(arguments,2);return setTimeout(function(){return a.apply(null,d)},c)};p.defer=function(a){return p.delay.apply(p,[a,1].concat(b.call(arguments,1)))};p.throttle=function(a,b){var c,d,e,f,g,h,l=p.debounce(function(){g=f=!1},b);return function(){c=this;d=arguments;e||
(e=setTimeout(function(){e=null;g&&a.apply(c,d);l()},b));f?g=!0:h=a.apply(c,d);l();f=!0;return h}};p.debounce=function(a,b,c){var d;return function(){var e=this,f=arguments;c&&!d&&a.apply(e,f);clearTimeout(d);d=setTimeout(function(){d=null;c||a.apply(e,f)},b)}};p.once=function(a){var b=!1,c;return function(){if(b)return c;b=!0;return c=a.apply(this,arguments)}};p.wrap=function(a,c){return function(){var d=[a].concat(b.call(arguments,0));return c.apply(this,d)}};p.compose=function(){var a=arguments;
return function(){for(var b=arguments,c=a.length-1;0<=c;c--)b=[a[c].apply(this,b)];return b[0]}};p.after=function(a,b){return 0>=a?b():function(){if(1>--a)return b.apply(this,arguments)}};p.keys=B||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var b=[],c;for(c in a)p.has(a,c)&&(b[b.length]=c);return b};p.values=function(a){return p.map(a,p.identity)};p.functions=p.methods=function(a){var b=[],c;for(c in a)p.isFunction(a[c])&&b.push(c);return b.sort()};p.extend=function(a){x(b.call(arguments,
1),function(b){for(var c in b)a[c]=b[c]});return a};p.pick=function(a){var c={};x(p.flatten(b.call(arguments,1)),function(b){b in a&&(c[b]=a[b])});return c};p.defaults=function(a){x(b.call(arguments,1),function(b){for(var c in b)null==a[c]&&(a[c]=b[c])});return a};p.clone=function(a){return p.isObject(a)?p.isArray(a)?a.slice():p.extend({},a):a};p.tap=function(a,b){b(a);return a};p.isEqual=function(b,c){return a(b,c,[])};p.isEmpty=function(a){if(null==a)return!0;if(p.isArray(a)||p.isString(a))return 0===
a.length;for(var b in a)if(p.has(a,b))return!1;return!0};p.isElement=function(a){return!(!a||1!=a.nodeType)};p.isArray=d||function(a){return"[object Array]"==h.call(a)};p.isObject=function(a){return a===Object(a)};p.isArguments=function(a){return"[object Arguments]"==h.call(a)};p.isArguments(arguments)||(p.isArguments=function(a){return!(!a||!p.has(a,"callee"))});p.isFunction=function(a){return"[object Function]"==h.call(a)};p.isString=function(a){return"[object String]"==h.call(a)};p.isNumber=function(a){return"[object Number]"==
h.call(a)};p.isFinite=function(a){return p.isNumber(a)&&isFinite(a)};p.isNaN=function(a){return a!==a};p.isBoolean=function(a){return!0===a||!1===a||"[object Boolean]"==h.call(a)};p.isDate=function(a){return"[object Date]"==h.call(a)};p.isRegExp=function(a){return"[object RegExp]"==h.call(a)};p.isNull=function(a){return null===a};p.isUndefined=function(a){return void 0===a};p.has=function(a,b){return l.call(a,b)};p.noConflict=function(){m._=f;return this};p.identity=function(a){return a};p.times=
function(a,b,c){for(var d=0;d<a;d++)b.call(c,d)};p.escape=function(a){return(""+a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")};p.result=function(a,b){if(null==a)return null;var c=a[b];return p.isFunction(c)?c.call(a):c};p.mixin=function(a){x(p.functions(a),function(b){L(b,p[b]=a[b])})};var K=0;p.uniqueId=function(a){var b=K++;return a?a+b:b};p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,
escape:/<%-([\s\S]+?)%>/g};var O=/.^/,N={"\\":"\\","'":"'",r:"\r",n:"\n",t:"\t",u2028:"\u2028",u2029:"\u2029"},aa;for(aa in N)N[N[aa]]=aa;var Y=/\\|'|\r|\n|\t|\u2028|\u2029/g,S=/\\(\\|'|r|n|t|u2028|u2029)/g,Q=function(a){return a.replace(S,function(a,b){return N[b]})};p.template=function(a,b,c){c=p.defaults(c||{},p.templateSettings);a="__p+='"+a.replace(Y,function(a){return"\\"+N[a]}).replace(c.escape||O,function(a,b){return"'+\n_.escape("+Q(b)+")+\n'"}).replace(c.interpolate||O,function(a,b){return"'+\n("+
Q(b)+")+\n'"}).replace(c.evaluate||O,function(a,b){return"';\n"+Q(b)+"\n;__p+='"})+"';\n";c.variable||(a="with(obj||{}){\n"+a+"}\n");a="var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};\n"+a+"return __p;\n";var d=new Function(c.variable||"obj","_",a);if(b)return d(b,p);b=function(a){return d.call(this,a,p)};b.source="function("+(c.variable||"obj")+"){\n"+a+"}";return b};p.chain=function(a){return p(a).chain()};var V=function(a){this._wrapped=a};p.prototype=V.prototype;
var W=function(a,b){return b?p(a).chain():a},L=function(a,d){V.prototype[a]=function(){var a=b.call(arguments);c.call(a,this._wrapped);return W(d.apply(p,a),this._chain)}};p.mixin(p);x("pop push reverse shift sort splice unshift".split(" "),function(a){var b=e[a];V.prototype[a]=function(){var c=this._wrapped;b.apply(c,arguments);var d=c.length;"shift"!=a&&"splice"!=a||0!==d||delete c[0];return W(c,this._chain)}});x(["concat","join","slice"],function(a){var b=e[a];V.prototype[a]=function(){return W(b.apply(this._wrapped,
arguments),this._chain)}});V.prototype.chain=function(){this._chain=!0;return this};V.prototype.value=function(){return this._wrapped}}).call(this);LazyLoad=function(a){function m(b,c){var d=a.createElement(b),e;for(e in c)c.hasOwnProperty(e)&&d.setAttribute(e,c[e]);return d}function f(a){var b=l[a],c,d;b&&(c=b.callback,d=b.urls,d.shift(),n=0,d.length||(c&&c.call(b.context,b.obj),l[a]=null,q[a].length&&e(a)))}function g(){var b=navigator.userAgent;c={async:!0===a.createElement("script").async};(c.webkit=/AppleWebKit\//.test(b))||(c.ie=/MSIE|Trident/.test(b))||(c.opera=/Opera/.test(b))||(c.gecko=/Gecko\//.test(b))||(c.unknown=!0)}function e(e,
n,t,s,F){var u=function(){f(e)},B="css"===e,r=[],p,x,y,H;c||g();if(n)if(n="string"===typeof n?[n]:n.concat(),B||c.async||c.gecko||c.opera)q[e].push({urls:n,callback:t,obj:s,context:F});else for(p=0,x=n.length;p<x;++p)q[e].push({urls:[n[p]],callback:p===x-1?t:null,obj:s,context:F});if(!l[e]&&(H=l[e]=q[e].shift())){h||(h=a.head||a.getElementsByTagName("head")[0]);n=H.urls.concat();p=0;for(x=n.length;p<x;++p)t=n[p],B?y=c.gecko?m("style"):m("link",{href:t,rel:"stylesheet"}):(y=m("script",{src:t}),y.async=
!1),y.className="lazyload",y.setAttribute("charset","utf-8"),c.ie&&!B&&"onreadystatechange"in y&&!("draggable"in y)?y.onreadystatechange=function(){/loaded|complete/.test(y.readyState)&&(y.onreadystatechange=null,u())}:B&&(c.gecko||c.webkit)?c.webkit?(H.urls[p]=y.href,b()):(y.innerHTML='@import "'+t+'";',d(y)):y.onload=y.onerror=u,r.push(y);p=0;for(x=r.length;p<x;++p)h.appendChild(r[p])}}function d(a){var b;try{b=!!a.sheet.cssRules}catch(c){n+=1;200>n?setTimeout(function(){d(a)},50):b&&f("css");return}f("css")}
function b(){var a=l.css,c;if(a){for(c=t.length;0<=--c;)if(t[c].href===a.urls[0]){f("css");break}n+=1;a&&(200>n?setTimeout(b,50):f("css"))}}var c,h,l={},n=0,q={css:[],js:[]},t=a.styleSheets;return{css:function(a,b,c,d){e("css",a,b,c,d)},js:function(a,b,c,d){e("js",a,b,c,d)}}}(this.document);var browseimp_nextBatchURL="";
(function(a,m,f){m.infinitescroll=function(a,b,c){this.element=m(c);this._create(a,b)};m.infinitescroll.defaults={loading:{finished:f,finishedMsg:"",img:"http://www.sciencedirect.com/scidirimg/space.gif",msg:null,msgText:"",selector:null,speed:"fast",start:f},state:{isDuringAjax:!1,isInvalidPage:!1,isDestroyed:!1,isDone:!1,isPaused:!1,currPage:1},callback:f,debug:!1,behavior:f,binder:m(a),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",
animate:!1,pathParse:f,dataType:"html",appendCallback:!0,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:f,path:f};m.infinitescroll.prototype={_binding:function(a){var b=this,c=b.options;if(c.behavior&&this["_binding_"+c.behavior]!==f)this["_binding_"+c.behavior].call(this);else{if("bind"!==a&&"unbind"!==a)return this._debug("Binding value  "+a+" not valid"),!1;if("unbind"==a)this.options.binder.unbind("smartscroll.infscr."+b.options.infid);else this.options.binder[a]("smartscroll.infscr."+
b.options.infid,function(){b.scroll()});this._debug("Binding",a)}},_create:function(a,b){if(!this._validate(a))return!1;var c=this.options=m.extend(!0,{},m.infinitescroll.defaults,a),e=m(c.nextSelector).attr("href");c.contentSelector=c.contentSelector||this.element;c.loading.selector=c.loading.selector||c.contentSelector;e?(c.path=this._determinepath(e),c.loading.msg=m('<div style="display: none;" id="infscr-loading"><img alt="Loading..." src="'+c.loading.img+'" /><div>'+c.loading.msgText+"</div></div>"),
c.pixelsFromNavToBottom=m(document).height()-m(c.navSelector).offset().top,c.loading.start=c.loading.start||function(){m(c.navSelector).hide();c.loading.msg.appendTo(c.loading.selector).show(c.loading.speed,function(){beginAjax(c)})},c.loading.finished=c.loading.finished||function(){c.loading.msg.fadeOut("normal")},c.callback=function(a,d){c.behavior&&a["_callback_"+c.behavior]!==f&&a["_callback_"+c.behavior].call(m(c.contentSelector)[0],d);b&&b.call(m(c.contentSelector)[0],d)},this._setup()):this._debug("Navigation selector not found")},
_debug:function(){if(this.options.debug)return a.console&&console.log.call(console,arguments)},_determinepath:function(a){var b=this.options;if(b.behavior&&this["_determinepath_"+b.behavior]!==f)this["_determinepath_"+b.behavior].call(this,a);else{if(b.pathParse)return this._debug("pathParse manual"),b.pathParse;if(a.match(/^(.*?)\b2\b(.*?$)/))a=a.match(/^(.*?)\b2\b(.*?$)/).slice(1);else if(a.match(/^(.*?)2(.*?$)/)){if(a.match(/^(.*?page=)2(\/.*|$)/))return a=a.match(/^(.*?page=)2(\/.*|$)/).slice(1);
a=a.match(/^(.*?)2(.*?$)/).slice(1)}else{if(a.match(/^(.*?page=)1(\/.*|$)/))return a=a.match(/^(.*?page=)1(\/.*|$)/).slice(1);this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com.");b.state.isInvalidPage=!0}this._debug("determinePath",a);return a}},_error:function(a){var b=this.options;b.behavior&&this["_error_"+b.behavior]!==f?this["_error_"+
b.behavior].call(this,a):("destroy"!==a&&"end"!==a&&(a="unknown"),this._debug("Error",a),"end"==a&&this._showdonemsg(),b.state.isDone=!0,b.state.currPage=1,b.state.isPaused=!1,this._binding("unbind"))},_loadcallback:function(d,b){var c=this.options,e=this.options.callback,g=c.state.isDone?"done":c.appendCallback?"append":"no-append";if(c.behavior&&this["_loadcallback_"+c.behavior]!==f)this["_loadcallback_"+c.behavior].call(this,d,b);else{switch(g){case "done":return this._showdonemsg(),!1;case "no-append":"html"==
c.dataType&&(b=m("<div>"+b+"</div>").find(c.itemSelector));break;case "append":var n=d.children();if(0==n.length)return this._error("end");for(g=document.createDocumentFragment();d[0].firstChild;)g.appendChild(d[0].firstChild);this._debug("contentSelector",m(c.contentSelector)[0]);m(c.contentSelector)[0].appendChild(g);b=n.get()}c.loading.finished.call(m(c.contentSelector)[0],c);c.animate&&(g=m(a).scrollTop()+m("#infscr-loading").height()+c.extraScrollPx+"px",m("html,body").animate({scrollTop:g},
800,function(){c.state.isDuringAjax=!1}));c.animate||(c.state.isDuringAjax=!1);e(this,b)}},_nearbottom:function(){var d=this.options,b=0+m(document).height()-d.binder.scrollTop()-m(a).height();if(d.behavior&&this["_nearbottom_"+d.behavior]!==f)this["_nearbottom_"+d.behavior].call(this);else return this._debug("math:",b,d.pixelsFromNavToBottom),b-d.bufferPx<d.pixelsFromNavToBottom},_pausing:function(a){var b=this.options;if(b.behavior&&this["_pausing_"+b.behavior]!==f)this["_pausing_"+b.behavior].call(this,
a);else{"pause"!==a&&"resume"!==a&&null!==a&&this._debug("Invalid argument. Toggling pause value instead");switch(!a||"pause"!=a&&"resume"!=a?"toggle":a){case "pause":b.state.isPaused=!0;break;case "resume":b.state.isPaused=!1;break;case "toggle":b.state.isPaused=!b.state.isPaused}this._debug("Paused",b.state.isPaused);return!1}},_setup:function(){var a=this.options;if(a.behavior&&this["_setup_"+a.behavior]!==f)this["_setup_"+a.behavior].call(this);else return this._binding("bind"),!1},_showdonemsg:function(){var a=
this.options;a.behavior&&this["_showdonemsg_"+a.behavior]!==f?this["_showdonemsg_"+a.behavior].call(this):(a.loading.msg.find("img").hide().parent().find("div").html(a.loading.finishedMsg).animate({opacity:1},2E3,function(){m(this).parent().fadeOut("normal")}),a.errorCallback.call(m(a.contentSelector)[0],"done"))},_validate:function(a){for(var b in a)return b.indexOf&&-1<b.indexOf("Selector")&&0===m(a[b]).length?(this._debug("Your "+b+" found no elements."),!1):!0},bind:function(){this._binding("bind")},
destroy:function(){this.options.state.isDestroyed=!0;return this._error("destroy")},pause:function(){this._pausing("pause")},resume:function(){this._pausing("resume")},retrieve:function(a){var b=this,c=b.options,e=c.path,g,n,q,t;a=a||null;beginAjax=function(a){a.state.currPage++;b._debug("heading into ajax",e);g=m(a.contentSelector).is("table")?m("<tbody/>"):m("<div/>");if(0<browseimp_nextBatchURL.length)switch(n=browseimp_nextBatchURL,q="html"==a.dataType||"json"==a.dataType?a.dataType:"html+callback",
a.appendCallback&&"html"==a.dataType&&(q+="+callback"),q){case "html+callback":b._debug("Using HTML via .load() method");g.load(n+" "+a.itemSelector,null,function(a){b._loadcallback(g,a)});break;case "html":case "json":b._debug("Using "+q.toUpperCase()+" via $.ajax() method"),m.ajax({url:n,dataType:a.dataType,complete:function(a,c){(t="undefined"!==typeof a.isResolved?a.isResolved():"success"===c||"notmodified"===c)?b._loadcallback(g,a.responseText):b._error("end")}})}};if(c.behavior&&this["retrieve_"+
c.behavior]!==f)this["retrieve_"+c.behavior].call(this,a);else{if(c.state.isDestroyed)return this._debug("Instance is destroyed"),!1;c.state.isDuringAjax=!0;c.loading.start.call(m(c.contentSelector)[0],c)}},scroll:function(){var a=this.options,b=a.state;a.behavior&&this["scroll_"+a.behavior]!==f?this["scroll_"+a.behavior].call(this):b.isDuringAjax||b.isInvalidPage||b.isDone||b.isDestroyed||b.isPaused||this._nearbottom()&&this.retrieve()},toggle:function(){this._pausing()},unbind:function(){this._binding("unbind")},
update:function(a){m.isPlainObject(a)&&(this.options=m.extend(!0,this.options,a))}};m.fn.infinitescroll=function(a,b){switch(typeof a){case "string":var c=Array.prototype.slice.call(arguments,1);this.each(function(){var b=m.data(this,"infinitescroll");if(!b||!m.isFunction(b[a])||"_"===a.charAt(0))return!1;b[a].apply(b,c)});break;case "object":this.each(function(){var c=m.data(this,"infinitescroll");c?c.update(a):m.data(this,"infinitescroll",new m.infinitescroll(a,b,this))})}return this};var g=m.event,
e;g.special.smartscroll={setup:function(){m(this).bind("scroll",g.special.smartscroll.handler)},teardown:function(){m(this).unbind("scroll",g.special.smartscroll.handler)},handler:function(a,b){var c=this,f=arguments;a.type="smartscroll";e&&clearTimeout(e);e=setTimeout(function(){m.event.handle.apply(c,f)},"execAsap"===b?0:100)}};m.fn.smartscroll=function(a){return a?this.bind("smartscroll",a):this.trigger("smartscroll",["execAsap"])}})(window,jQuery);searchhi={highlightWord:function(a,m){if(a.hasChildNodes)for(var f=0;f<a.childNodes.length;f++)searchhi.highlightWord(a.childNodes[f],m);if(3==a.nodeType&&(tempNodeVal=a.nodeValue.toLowerCase(),tempWordVal=m.toLowerCase(),-1!=tempNodeVal.indexOf(tempWordVal))){for(var g=f=a.parentNode;9!=g.nodeType&&"body"!=g.nodeName.toLowerCase();){if(g.className.match(/\bnosearchhi\b/)||g.className.match(/\blinkText\b/))return;g=g.parentNode}if("searchword swh"!=f.className){var e=a.nodeValue,d=tempNodeVal.indexOf(tempWordVal),
g=document.createTextNode(e.substr(0,d)),b=e.substr(d,m.length),e=document.createTextNode(e.substr(d+m.length)),b=document.createTextNode(b),d=document.createElement("span");d.className="searchword swh";d.appendChild(b);f.insertBefore(g,a);f.insertBefore(d,a);f.insertBefore(e,a);f.removeChild(a);searchhi.found+=1;1==searchhi.found&&f.scrollIntoView()}}},googleSearchHighlight:function(){var a=document.referrer;if(-1!=a.indexOf("?"))for(var a=a.substr(a.indexOf("?")+1).split("&"),m=0;m<a.length;m++){var f=
a[m].split("=");1==f.length||"q"!=f[0]&&"p"!=f[0]||(f=unescape(f[1].replace(/\+/g," ")),searchhi.process(f))}},process:function(a,m){searchhi.found=0;var f=m.split(/\s+/);for(w=0;w<f.length;w++)searchhi.highlightWord(a,f[w]);0===searchhi.found&&searchhi.nohits()},nohits:function(){},init:function(){if(document.createElement&&document.getElementsByTagName){for(var a=document.getElementsByTagName("form"),m=0;m<a.length;m++)a[m].className.match(/\bsearchhi\b/)&&(a[m].onsubmit=function(){for(var a=this.getElementsByTagName("input"),
g=0;g<a.length;g++)if("text"==a[g].type)return searchhi.process(a[g].value),!1});searchhi.googleSearchHighlight()}}};(function(a){var m=navigator.userAgent,f=setTimeout;/webkit/i.test(m)?f(function(){var g=document.readyState;"loaded"==g||"complete"==g?a():f(arguments.callee,10)},10):/mozilla/i.test(m)&&!/(compati)/.test(m)||/opera/i.test(m)?document.addEventListener("DOMContentLoaded",a,!1):window.onload=a})(searchhi.init);!function(a){a.extend({tablesorter:new function(){function f(){var a=arguments[0],b=1<arguments.length?Array.prototype.slice.call(arguments):a;if("undefined"!==typeof console&&"undefined"!==typeof console.log)console[/error/i.test(a)?"error":/warn/i.test(a)?"warn":"log"](b);else alert(b)}function g(a,b){f(a+" ("+((new Date).getTime()-b.getTime())+"ms)")}function e(a){for(var b in a)return!1;return!0}function d(b,c,d){if(!c)return"";var e,f=b.config,g=f.textExtraction||"",h="",h="basic"===g?a(c).attr(f.textAttribute)||
c.textContent||c.innerText||a(c).text()||"":"function"===typeof g?g(c,b,d):"function"===typeof(e=r.getColumnData(b,g,d))?e(c,b,d):c.textContent||c.innerText||a(c).text()||"";return a.trim(h)}function b(a){var b=a.config,c=b.$tbodies=b.$table.children("tbody:not(."+b.cssInfoBlock+")"),e,h,l,m,n,q,s,t,v,z=0,u="",A=c.length;if(0===A)return b.debug?f("Warning: *Empty table!* Not building a parser cache"):"";b.debug&&(v=new Date,f("Detecting parsers for each column"));for(h=[];z<A;){e=c[z].rows;if(e[z])for(l=
b.columns,m=0;m<l;m++){n=b.$headers.filter('[data-column="'+m+'"]:last');q=r.getColumnData(a,b.headers,m);t=r.getParserById(r.getData(n,q,"sorter"));s="false"===r.getData(n,q,"parser");b.empties[m]=r.getData(n,q,"empty")||b.emptyTo||(b.emptyToBottom?"bottom":"top");b.strings[m]=r.getData(n,q,"string")||b.stringTo||"max";s&&(t=r.getParserById("no-parser"));if(!t)a:{n=a;q=e;s=-1;t=m;for(var B=void 0,F=r.parsers.length,M=!1,G="",B=!0;""===G&&B;)s++,q[s]?(M=q[s].cells[t],G=d(n,M,t),n.config.debug&&f("Checking if value was empty on row "+
s+", column: "+t+': "'+G+'"')):B=!1;for(;0<=--F;)if((B=r.parsers[F])&&"text"!==B.id&&B.is&&B.is(G,n,M)){t=B;break a}t=r.getParserById("text")}b.debug&&(u+="column:"+m+"; parser:"+t.id+"; string:"+b.strings[m]+"; empty: "+b.empties[m]+"\n");h[m]=t}z+=h.length?A:1}b.debug&&(f(u?u:"No parsers detected"),g("Completed detecting parsers",v));b.parsers=h}function c(b){var c,e,h,l,m,n,q,s,t,v,z,u=b.config,A=u.$table.children("tbody"),C=u.parsers;u.cache={};if(!C)return u.debug?f("Warning: *Empty table!* Not building a cache"):
"";u.debug&&(s=new Date);u.showProcessing&&r.isProcessing(b,!0);for(m=0;m<A.length;m++)if(z=[],c=u.cache[m]={normalized:[]},!A.eq(m).hasClass(u.cssInfoBlock)){t=A[m]&&A[m].rows.length||0;for(h=0;h<t;++h)if(v={child:[]},n=a(A[m].rows[h]),q=[],n.hasClass(u.cssChildRow)&&0!==h)e=c.normalized.length-1,c.normalized[e][u.columns].$row=c.normalized[e][u.columns].$row.add(n),n.prev().hasClass(u.cssChildRow)||n.prev().addClass(r.css.cssHasChild),v.child[e]=a.trim(n[0].textContent||n[0].innerText||n.text()||
"");else{v.$row=n;v.order=h;for(l=0;l<u.columns;++l)"undefined"===typeof C[l]?u.debug&&f("No parser found for cell:",n[0].cells[l],"does it have a header?"):(e=d(b,n[0].cells[l],l),e="no-parser"===C[l].id?"":C[l].format(e,b,n[0].cells[l],l),q.push(e),"numeric"===(C[l].type||"").toLowerCase()&&(z[l]=Math.max(Math.abs(e)||0,z[l]||0)));q[u.columns]=v;c.normalized.push(q)}c.colMax=z}u.showProcessing&&r.isProcessing(b);u.debug&&g("Building cache for "+t+" rows",s)}function h(b,c){var d=b.config,f=d.widgetOptions,
h=b.tBodies,l=[],m=d.cache,n,q,s,t,v,u;if(e(m))return d.appender?d.appender(b,l):b.isUpdating?d.$table.trigger("updateComplete",b):"";d.debug&&(u=new Date);for(v=0;v<h.length;v++)if(n=a(h[v]),n.length&&!n.hasClass(d.cssInfoBlock)){s=r.processTbody(b,n,!0);n=m[v].normalized;q=n.length;for(t=0;t<q;t++)l.push(n[t][d.columns].$row),d.appender&&(!d.pager||d.pager.removeRows&&f.pager_removeRows||d.pager.ajax)||s.append(n[t][d.columns].$row);r.processTbody(b,s,!1)}d.appender&&d.appender(b,l);d.debug&&g("Rebuilt table",
u);c||d.appender||r.applyWidget(b);b.isUpdating&&d.$table.trigger("updateComplete",b)}function l(b){var c,d,e,h,l,m,n,s=b.config;s.headerList=[];s.headerContent=[];s.debug&&(n=new Date);s.columns=r.computeColumnIndex(s.$table.children("thead, tfoot").children("tr"));h=s.cssIcon?'<i class="'+(s.cssIcon===r.css.icon?r.css.icon:s.cssIcon+" "+r.css.icon)+'"></i>':"";s.$headers.each(function(f){d=a(this);c=r.getColumnData(b,s.headers,f,!0);s.headerContent[f]=a(this).html();l=s.headerTemplate.replace(/\{content\}/g,
a(this).html()).replace(/\{icon\}/g,h);s.onRenderTemplate&&(e=s.onRenderTemplate.apply(d,[f,l]))&&"string"===typeof e&&(l=e);a(this).html('<a class="'+r.css.headerIn+'">'+l+"</a>");s.onRenderHeader&&s.onRenderHeader.apply(d,[f]);this.column=parseInt(a(this).attr("data-column"),10);var g=r.getData(d,c,"sortInitialOrder")||s.sortInitialOrder;this.order=/^d/i.test(g)||1===g?[1,0,2]:[0,1,2];this.count=-1;this.lockedOrder=!1;m=r.getData(d,c,"lockedOrder")||!1;"undefined"!==typeof m&&!1!==m&&(this.order=
this.lockedOrder=/^d/i.test(m)||1===m?[1,1,1]:[0,0,0]);d.addClass(r.css.header+" "+s.cssHeader);s.headerList[f]=this;d.parent().addClass(r.css.headerRow+" "+s.cssHeaderRow).attr("role","row");s.tabIndex&&d.attr("tabindex",0)}).attr({scope:"col",role:"columnheader"});q(b);s.debug&&(g("Built headers:",n),f(s.$headers))}function m(a,d,e){var f=a.config;f.$table.find(f.selectorRemove).remove();b(a);c(a);u(f.$table,d,e)}function q(b){var c,d,e=b.config;e.$headers.each(function(f,g){d=a(g);c="false"===
r.getData(g,r.getColumnData(b,e.headers,f,!0),"sorter");g.sortDisabled=c;d[c?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+c);b.id&&(c?d.removeAttr("aria-controls"):d.attr("aria-controls",b.id))})}function t(b){var c,d,e=b.config,f=e.sortList,g=f.length,h=r.css.sortNone+" "+e.cssNone,l=[r.css.sortAsc+" "+e.cssAsc,r.css.sortDesc+" "+e.cssDesc],m=["ascending","descending"],n=a(b).find("tfoot tr").children().add(e.$extraHeaders).removeClass(l.join(" "));e.$headers.removeClass(l.join(" ")).addClass(h).attr("aria-sort",
"none");for(c=0;c<g;c++)if(2!==f[c][1]&&(b=e.$headers.not(".sorter-false").filter('[data-column="'+f[c][0]+'"]'+(1===g?":last":"")),b.length)){for(d=0;d<b.length;d++)b[d].sortDisabled||b[d].secondarySort||b.eq(d).removeClass(h).addClass(l[f[c][1]]).attr("aria-sort",m[f[c][1]]);n.length&&n.filter('[data-column="'+f[c][0]+'"]').removeClass(h).addClass(l[f[c][1]])}e.$headers.not(".sorter-false").each(function(){var b=a(this),c=this.order[(this.count+1)%(e.sortReset?3:2)],c=b.text()+": "+r.language[b.hasClass(r.css.sortAsc)?
"sortAsc":b.hasClass(r.css.sortDesc)?"sortDesc":"sortNone"]+r.language[0===c?"nextAsc":1===c?"nextDesc":"nextNone"];b.attr("aria-label",c)})}function z(b){if(b.config.widthFixed&&0===a(b).find("colgroup").length){var c=a("<colgroup>"),d=a(b).width();a(b.tBodies[0]).find("tr:first").children("td:visible").each(function(){c.append(a("<col>").css("width",parseInt(1E3*(a(this).width()/d),10)/10+"%"))});a(b).prepend(c)}}function v(b,c){var d,e,f,g,h,l=b.config,m=c||l.sortList;l.sortList=[];a.each(m,function(b,
c){g=parseInt(c[0],10);if(f=l.$headers.filter('[data-column="'+g+'"]:last')[0]){e=(e=(""+c[1]).match(/^(1|d|s|o|n)/))?e[0]:"";switch(e){case "1":case "d":e=1;break;case "s":e=h||0;break;case "o":d=f.order[(h||0)%(l.sortReset?3:2)];e=0===d?1:1===d?0:2;break;case "n":f.count+=1;e=f.order[f.count%(l.sortReset?3:2)];break;default:e=0}h=0===b?e:h;d=[g,parseInt(e,10)||0];l.sortList.push(d);e=a.inArray(d[1],f.order);f.count=0<=e?e:d[1]%(l.sortReset?3:2)}})}function A(b,c,d){var e,f,g,l=b.config,m=!d[l.sortMultiSortKey],
n=l.$table;n.trigger("sortStart",b);c.count=d[l.sortResetKey]?2:(c.count+1)%(l.sortReset?3:2);l.sortRestart&&(f=c,l.$headers.each(function(){this===f||!m&&a(this).is("."+r.css.sortDesc+",."+r.css.sortAsc)||(this.count=-1)}));f=c.column;if(m){l.sortList=[];if(null!==l.sortForce)for(e=l.sortForce,d=0;d<e.length;d++)e[d][0]!==f&&l.sortList.push(e[d]);e=c.order[c.count];if(2>e&&(l.sortList.push([f,e]),1<c.colSpan))for(d=1;d<c.colSpan;d++)l.sortList.push([f+d,e])}else{if(l.sortAppend&&1<l.sortList.length)for(d=
0;d<l.sortAppend.length;d++)g=r.isValueInArray(l.sortAppend[d][0],l.sortList),0<=g&&l.sortList.splice(g,1);if(0<=r.isValueInArray(f,l.sortList))for(d=0;d<l.sortList.length;d++)g=l.sortList[d],e=l.$headers.filter('[data-column="'+g[0]+'"]:last')[0],g[0]===f&&(g[1]=e.order[c.count],2===g[1]&&(l.sortList.splice(d,1),e.count=-1));else if(e=c.order[c.count],2>e&&(l.sortList.push([f,e]),1<c.colSpan))for(d=1;d<c.colSpan;d++)l.sortList.push([f+d,e])}if(null!==l.sortAppend)for(e=l.sortAppend,d=0;d<e.length;d++)e[d][0]!==
f?(l.sortList.push(e[d]),l.$headers[d].secondarySort=!0):l.$headers[d].secondarySort=!1;n.trigger("sortBegin",b);setTimeout(function(){t(b);s(b);h(b);n.trigger("sortEnd",b)},1)}function s(a){var b,c,d,f,h,l,m,n,q,s,t,v=0,u=a.config,z=u.textSorter||"",A=u.sortList,B=A.length,F=a.tBodies.length;if(!u.serverSideSorting&&!e(u.cache)){u.debug&&(h=new Date);for(c=0;c<F;c++)l=u.cache[c].colMax,m=u.cache[c].normalized,m.sort(function(c,e){for(b=0;b<B;b++){f=A[b][0];n=A[b][1];v=0===n;if(u.sortStable&&c[f]===
e[f]&&1===B)break;(d=/n/i.test(u.parsers&&u.parsers[f]?u.parsers[f].type||"":""))&&u.strings[f]?(d="boolean"===typeof u.string[u.strings[f]]?(v?1:-1)*(u.string[u.strings[f]]?-1:1):u.strings[f]?u.string[u.strings[f]]||0:0,q=u.numberSorter?u.numberSorter(c[f],e[f],v,l[f],a):r["sortNumeric"+(v?"Asc":"Desc")](c[f],e[f],d,l[f],f,a)):(s=v?c:e,t=v?e:c,q="function"===typeof z?z(s[f],t[f],v,f,a):"object"===typeof z&&z.hasOwnProperty(f)?z[f](s[f],t[f],v,f,a):r["sortNatural"+(v?"Asc":"Desc")](c[f],e[f],f,a,
u));if(q)return q}return c[u.columns].order-e[u.columns].order});u.debug&&g("Sorting on "+A.toString()+" and dir "+n+" time",h)}}function F(b,c){b[0].isUpdating&&b.trigger("updateComplete");a.isFunction(c)&&c(b[0])}function u(a,b,c){var d=a[0].config.sortList;!1!==b&&!a[0].isProcessing&&d.length?a.trigger("sorton",[d,function(){F(a,c)},!0]):(F(a,c),r.applyWidget(a[0],!1))}function B(f){var g=f.config,y=g.$table;y.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(g.namespace+
" ")).bind("sortReset"+g.namespace,function(b,c){b.stopPropagation();g.sortList=[];t(f);s(f);h(f);a.isFunction(c)&&c(f)}).bind("updateAll"+g.namespace,function(a,b,c){a.stopPropagation();f.isUpdating=!0;r.refreshWidgets(f,!0,!0);r.restoreHeaders(f);l(f);r.bindEvents(f,g.$headers,!0);B(f);m(f,b,c)}).bind("update"+g.namespace+" updateRows"+g.namespace,function(a,b,c){a.stopPropagation();f.isUpdating=!0;q(f);m(f,b,c)}).bind("updateCell"+g.namespace,function(b,c,e,h){b.stopPropagation();f.isUpdating=
!0;y.find(g.selectorRemove).remove();var l,m;l=y.find("tbody");m=a(c);b=l.index(a.fn.closest?m.closest("tbody"):m.parents("tbody").filter(":first"));var n=a.fn.closest?m.closest("tr"):m.parents("tr").filter(":first");c=m[0];l.length&&0<=b&&(l=l.eq(b).find("tr").index(n),m=m.index(),g.cache[b].normalized[l][g.columns].$row=n,c=g.cache[b].normalized[l][m]="no-parser"===g.parsers[m].id?"":g.parsers[m].format(d(f,c,m),f,c,m),"numeric"===(g.parsers[m].type||"").toLowerCase()&&(g.cache[b].colMax[m]=Math.max(Math.abs(c)||
0,g.cache[b].colMax[m]||0)),u(y,e,h))}).bind("addRows"+g.namespace,function(c,h,l,r){c.stopPropagation();f.isUpdating=!0;if(e(g.cache))q(f),m(f,l,r);else{h=a(h);var s,t,v,z,A=h.filter("tr").length,B=y.find("tbody").index(h.parents("tbody").filter(":first"));g.parsers&&g.parsers.length||b(f);for(c=0;c<A;c++){t=h[c].cells.length;z=[];v={child:[],$row:h.eq(c),order:g.cache[B].normalized.length};for(s=0;s<t;s++)z[s]="no-parser"===g.parsers[s].id?"":g.parsers[s].format(d(f,h[c].cells[s],s),f,h[c].cells[s],
s),"numeric"===(g.parsers[s].type||"").toLowerCase()&&(g.cache[B].colMax[s]=Math.max(Math.abs(z[s])||0,g.cache[B].colMax[s]||0));z.push(v);g.cache[B].normalized.push(z)}u(y,l,r)}}).bind("updateComplete"+g.namespace,function(){f.isUpdating=!1}).bind("sorton"+g.namespace,function(b,d,g,l){var m=f.config;b.stopPropagation();y.trigger("sortStart",this);v(f,d);t(f);m.delayInit&&e(m.cache)&&c(f);y.trigger("sortBegin",this);s(f);h(f,l);y.trigger("sortEnd",this);r.applyWidget(f);a.isFunction(g)&&g(f)}).bind("appendCache"+
g.namespace,function(b,c,d){b.stopPropagation();h(f,d);a.isFunction(c)&&c(f)}).bind("updateCache"+g.namespace,function(d,e){g.parsers&&g.parsers.length||b(f);c(f);a.isFunction(e)&&e(f)}).bind("applyWidgetId"+g.namespace,function(a,b){a.stopPropagation();r.getWidgetById(b).format(f,g,g.widgetOptions)}).bind("applyWidgets"+g.namespace,function(a,b){a.stopPropagation();r.applyWidget(f,b)}).bind("refreshWidgets"+g.namespace,function(a,b,c){a.stopPropagation();r.refreshWidgets(f,b,c)}).bind("destroy"+
g.namespace,function(a,b,c){a.stopPropagation();r.destroy(f,b,c)}).bind("resetToLoadState"+g.namespace,function(){r.refreshWidgets(f,!0,!0);g=a.extend(!0,r.defaults,g.originalSettings);f.hasInitialized=!1;r.setup(f,g)})}var r=this;r.version="2.17.1";r.parsers=[];r.widgets=[];r.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",
usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",
cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]};r.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",
sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"};r.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"};r.log=f;r.benchmark=g;r.construct=function(b){return this.each(function(){var c=a.extend(!0,{},r.defaults,b);c.originalSettings=b;!this.hasInitialized&&r.buildTable&&"TABLE"!==this.tagName?
r.buildTable(this,c):r.setup(this,c)})};r.setup=function(d,e){if(!d||!d.tHead||0===d.tBodies.length||!0===d.hasInitialized)return e.debug?f("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var g="",h=a(d),m=a.metadata;d.hasInitialized=!1;d.isProcessing=!0;d.config=e;a.data(d,"tablesorter",e);e.debug&&a.data(d,"startoveralltimer",new Date);e.supportsDataObject=function(a){a[0]=parseInt(a[0],10);return 1<a[0]||1===a[0]&&4<=parseInt(a[1],10)}(a.fn.jquery.split("."));
e.string={max:1,min:-1,emptyMin:1,emptyMax:-1,zero:0,none:0,"null":0,top:!0,bottom:!1};/tablesorter\-/.test(h.attr("class"))||(g=""!==e.theme?" tablesorter-"+e.theme:"");e.$table=h.addClass(r.css.table+" "+e.tableClass+g).attr({role:"grid"});e.$headers=a(d).find(e.selectorHeaders);e.namespace=e.namespace?"."+e.namespace.replace(/\W/g,""):".tablesorter"+Math.random().toString(16).slice(2);e.$tbodies=h.children("tbody:not(."+e.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"});e.$table.find("caption").length&&
e.$table.attr("aria-labelledby","theCaption");e.widgetInit={};e.textExtraction=e.$table.attr("data-text-extraction")||e.textExtraction||"basic";l(d);z(d);b(d);e.delayInit||c(d);r.bindEvents(d,e.$headers,!0);B(d);e.supportsDataObject&&"undefined"!==typeof h.data().sortlist?e.sortList=h.data().sortlist:m&&h.metadata()&&h.metadata().sortlist&&(e.sortList=h.metadata().sortlist);r.applyWidget(d,!0);0<e.sortList.length?h.trigger("sorton",[e.sortList,{},!e.initWidgets,!0]):(t(d),e.initWidgets&&r.applyWidget(d,
!1));e.showProcessing&&h.unbind("sortBegin"+e.namespace+" sortEnd"+e.namespace).bind("sortBegin"+e.namespace+" sortEnd"+e.namespace,function(a){clearTimeout(e.processTimer);r.isProcessing(d);"sortBegin"===a.type&&(e.processTimer=setTimeout(function(){r.isProcessing(d,!0)},500))});d.hasInitialized=!0;d.isProcessing=!1;e.debug&&r.benchmark("Overall initialization time",a.data(d,"startoveralltimer"));h.trigger("tablesorter-initialized",d);"function"===typeof e.initialized&&e.initialized(d)};r.getColumnData=
function(b,c,d,e){if("undefined"!==typeof c&&null!==c){b=a(b)[0];var f,g=b.config;if(c[d])return e?c[d]:c[g.$headers.index(g.$headers.filter('[data-column="'+d+'"]:last'))];for(f in c)if("string"===typeof f&&(b=e?g.$headers.eq(d).filter(f):g.$headers.filter('[data-column="'+d+'"]:last').filter(f),b.length))return c[f]}};r.computeColumnIndex=function(b){var c=[],d=0,e,f,g,h,l,m,n,q,r,s;for(e=0;e<b.length;e++)for(l=b[e].cells,f=0;f<l.length;f++){g=l[f];h=a(g);m=g.parentNode.rowIndex;h.index();n=g.rowSpan||
1;q=g.colSpan||1;"undefined"===typeof c[m]&&(c[m]=[]);for(g=0;g<c[m].length+1;g++)if("undefined"===typeof c[m][g]){r=g;break}d=Math.max(r,d);h.attr({"data-column":r});for(g=m;g<m+n;g++)for("undefined"===typeof c[g]&&(c[g]=[]),s=c[g],h=r;h<r+q;h++)s[h]="x"}return d+1};r.isProcessing=function(b,c,d){b=a(b);var e=b[0].config;b=d||b.find("."+r.css.header);c?("undefined"!==typeof d&&0<e.sortList.length&&(b=b.filter(function(){return this.sortDisabled?!1:0<=r.isValueInArray(parseFloat(a(this).attr("data-column")),
e.sortList)})),b.addClass(r.css.processing+" "+e.cssProcessing)):b.removeClass(r.css.processing+" "+e.cssProcessing)};r.processTbody=function(b,c,d){b=a(b)[0];if(d)return b.isProcessing=!0,c.before('<span class="tablesorter-savemyplace"/>'),d=a.fn.detach?c.detach():c.remove();d=a(b).find("span.tablesorter-savemyplace");c.insertAfter(d);d.remove();b.isProcessing=!1};r.clearTableBody=function(b){a(b)[0].config.$tbodies.detach()};r.bindEvents=function(b,d,f){b=a(b)[0];var g,h=b.config;!0!==f&&(h.$extraHeaders=
h.$extraHeaders?h.$extraHeaders.add(d):d);d.find(h.selectorSort).add(d.filter(h.selectorSort)).unbind(["mousedown","mouseup","sort","keyup",""].join(h.namespace+" ")).bind(["mousedown","mouseup","sort","keyup",""].join(h.namespace+" "),function(f,l){var m;m=f.type;if(!(1!==(f.which||f.button)&&!/sort|keyup/.test(m)||"keyup"===m&&13!==f.which||"mouseup"===m&&!0!==l&&250<(new Date).getTime()-g)){if("mousedown"===m)return g=(new Date).getTime(),/(input|select|button|textarea)/i.test(f.target.tagName)?
"":!h.cancelSelection;h.delayInit&&e(h.cache)&&c(b);m=a.fn.closest?a(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:a(this).parents("th, td")[0];m=h.$headers[d.index(m)];m.sortDisabled||A(b,m,f)}});h.cancelSelection&&d.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})};r.restoreHeaders=function(b){var c=a(b)[0].config;c.$table.find(c.selectorHeaders).each(function(b){a(this).find("."+r.css.headerIn).length&&a(this).html(c.headerContent[b])})};
r.destroy=function(b,c,d){b=a(b)[0];if(b.hasInitialized){r.refreshWidgets(b,!0,!0);var e=a(b),f=b.config,g=e.find("thead:first"),h=g.find("tr."+r.css.headerRow).removeClass(r.css.headerRow+" "+f.cssHeaderRow),l=e.find("tfoot:first > tr").children("th, td");!1===c&&0<=a.inArray("uitheme",f.widgets)&&(e.trigger("applyWidgetId",["uitheme"]),e.trigger("applyWidgetId",["zebra"]));g.find("tr").not(h).remove();e.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(f.namespace+
" "));f.$headers.add(l).removeClass([r.css.header,f.cssHeader,f.cssAsc,f.cssDesc,r.css.sortAsc,r.css.sortDesc,r.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true");h.find(f.selectorSort).unbind(["mousedown","mouseup","keypress",""].join(f.namespace+" "));r.restoreHeaders(b);e.toggleClass(r.css.table+" "+f.tableClass+" tablesorter-"+f.theme,!1===c);b.hasInitialized=!1;delete b.config.cache;"function"===typeof d&&d(b)}};r.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,
chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i};r.sortNatural=function(a,b){if(a===b)return 0;var c,d,e,f,g,h;d=r.regex;if(d.hex.test(b)){c=parseInt(a.match(d.hex),16);e=parseInt(b.match(d.hex),16);if(c<e)return-1;if(c>e)return 1}c=a.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0");d=b.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0");h=Math.max(c.length,d.length);for(g=0;g<h;g++){e=isNaN(c[g])?c[g]||0:parseFloat(c[g])||0;f=isNaN(d[g])?d[g]||0:parseFloat(d[g])||0;if(isNaN(e)!==
isNaN(f))return isNaN(e)?1:-1;typeof e!==typeof f&&(e+="",f+="");if(e<f)return-1;if(e>f)return 1}return 0};r.sortNaturalAsc=function(a,b,c,d,e){if(a===b)return 0;c=e.string[e.empties[c]||e.emptyTo];return""===a&&0!==c?"boolean"===typeof c?c?-1:1:-c||-1:""===b&&0!==c?"boolean"===typeof c?c?1:-1:c||1:r.sortNatural(a,b)};r.sortNaturalDesc=function(a,b,c,d,e){if(a===b)return 0;c=e.string[e.empties[c]||e.emptyTo];return""===a&&0!==c?"boolean"===typeof c?c?-1:1:c||1:""===b&&0!==c?"boolean"===typeof c?c?
1:-1:-c||-1:r.sortNatural(b,a)};r.sortText=function(a,b){return a>b?1:a<b?-1:0};r.getTextValue=function(a,b,c){if(c){var d=a?a.length:0,e=c+b;for(c=0;c<d;c++)e+=a.charCodeAt(c);return b*e}return 0};r.sortNumericAsc=function(a,b,c,d,e,f){if(a===b)return 0;f=f.config;e=f.string[f.empties[e]||f.emptyTo];if(""===a&&0!==e)return"boolean"===typeof e?e?-1:1:-e||-1;if(""===b&&0!==e)return"boolean"===typeof e?e?1:-1:e||1;isNaN(a)&&(a=r.getTextValue(a,c,d));isNaN(b)&&(b=r.getTextValue(b,c,d));return a-b};r.sortNumericDesc=
function(a,b,c,d,e,f){if(a===b)return 0;f=f.config;e=f.string[f.empties[e]||f.emptyTo];if(""===a&&0!==e)return"boolean"===typeof e?e?-1:1:e||1;if(""===b&&0!==e)return"boolean"===typeof e?e?1:-1:-e||-1;isNaN(a)&&(a=r.getTextValue(a,c,d));isNaN(b)&&(b=r.getTextValue(b,c,d));return b-a};r.sortNumeric=function(a,b){return a-b};r.characterEquivalents={a:"\u00e1\u00e0\u00e2\u00e3\u00e4\u0105\u00e5",A:"\u00c1\u00c0\u00c2\u00c3\u00c4\u0104\u00c5",c:"\u00e7\u0107\u010d",C:"\u00c7\u0106\u010c",e:"\u00e9\u00e8\u00ea\u00eb\u011b\u0119",
E:"\u00c9\u00c8\u00ca\u00cb\u011a\u0118",i:"\u00ed\u00ec\u0130\u00ee\u00ef\u0131",I:"\u00cd\u00cc\u0130\u00ce\u00cf",o:"\u00f3\u00f2\u00f4\u00f5\u00f6",O:"\u00d3\u00d2\u00d4\u00d5\u00d6",ss:"\u00df",SS:"\u1e9e",u:"\u00fa\u00f9\u00fb\u00fc\u016f",U:"\u00da\u00d9\u00db\u00dc\u016e"};r.replaceAccents=function(a){var b,c="[",d=r.characterEquivalents;if(!r.characterRegex){r.characterRegexArray={};for(b in d)"string"===typeof b&&(c+=d[b],r.characterRegexArray[b]=RegExp("["+d[b]+"]","g"));r.characterRegex=
RegExp(c+"]")}if(r.characterRegex.test(a))for(b in d)"string"===typeof b&&(a=a.replace(r.characterRegexArray[b],b));return a};r.isValueInArray=function(a,b){var c,d=b.length;for(c=0;c<d;c++)if(b[c][0]===a)return c;return-1};r.addParser=function(a){var b,c=r.parsers.length,d=!0;for(b=0;b<c;b++)r.parsers[b].id.toLowerCase()===a.id.toLowerCase()&&(d=!1);d&&r.parsers.push(a)};r.getParserById=function(a){if("false"==a)return!1;var b,c=r.parsers.length;for(b=0;b<c;b++)if(r.parsers[b].id.toLowerCase()===
a.toString().toLowerCase())return r.parsers[b];return!1};r.addWidget=function(a){r.widgets.push(a)};r.getWidgetById=function(a){var b,c,d=r.widgets.length;for(b=0;b<d;b++)if((c=r.widgets[b])&&c.hasOwnProperty("id")&&c.id.toLowerCase()===a.toLowerCase())return c};r.applyWidget=function(b,c){b=a(b)[0];var d=b.config,e=d.widgetOptions,f=[],h,l,m;!1!==c&&b.hasInitialized&&(b.isApplyingWidgets||b.isUpdating)||(d.debug&&(h=new Date),d.widgets.length&&(b.isApplyingWidgets=!0,d.widgets=a.grep(d.widgets,function(b,
c){return a.inArray(b,d.widgets)===c}),a.each(d.widgets||[],function(a,b){(m=r.getWidgetById(b))&&m.id&&(m.priority||(m.priority=10),f[a]=m)}),f.sort(function(a,b){return a.priority<b.priority?-1:a.priority===b.priority?0:1}),a.each(f,function(f,g){if(g){if(c||!d.widgetInit[g.id])g.hasOwnProperty("options")&&(e=b.config.widgetOptions=a.extend(!0,{},g.options,e)),g.hasOwnProperty("init")&&g.init(b,g,d,e),d.widgetInit[g.id]=!0;!c&&g.hasOwnProperty("format")&&g.format(b,d,e,!1)}})),setTimeout(function(){b.isApplyingWidgets=
!1},0),d.debug&&(l=d.widgets.length,g("Completed "+(!0===c?"initializing ":"applying ")+l+" widget"+(1!==l?"s":""),h)))};r.refreshWidgets=function(b,c,d){b=a(b)[0];var e,g=b.config,h=g.widgets,l=r.widgets,m=l.length;for(e=0;e<m;e++)l[e]&&l[e].id&&(c||0>a.inArray(l[e].id,h))&&(g.debug&&f('Refeshing widgets: Removing "'+l[e].id+'"'),l[e].hasOwnProperty("remove")&&g.widgetInit[l[e].id]&&(l[e].remove(b,g,g.widgetOptions),g.widgetInit[l[e].id]=!1));!0!==d&&r.applyWidget(b,c)};r.getData=function(b,c,d){var e=
"";b=a(b);var f,g;if(!b.length)return"";f=a.metadata?b.metadata():!1;g=" "+(b.attr("class")||"");"undefined"!==typeof b.data(d)||"undefined"!==typeof b.data(d.toLowerCase())?e+=b.data(d)||b.data(d.toLowerCase()):f&&"undefined"!==typeof f[d]?e+=f[d]:c&&"undefined"!==typeof c[d]?e+=c[d]:" "!==g&&g.match(" "+d+"-")&&(e=g.match(RegExp("\\s"+d+"-([\\w-]+)"))[1]||"");return a.trim(e)};r.formatFloat=function(b,c){if("string"!==typeof b||""===b)return b;var d;b=(c&&c.config?!1!==c.config.usNumberFormat:"undefined"!==
typeof c?c:1)?b.replace(/,/g,""):b.replace(/[\s|\.]/g,"").replace(/,/g,".");/^\s*\([.\d]+\)/.test(b)&&(b=b.replace(/^\s*\(([.\d]+)\)/,"-$1"));d=parseFloat(b);return isNaN(d)?a.trim(b):d};r.isDigit=function(a){return isNaN(a)?/^[\-+(]?\d+[)]?$/.test(a.toString().replace(/[,.'"\s]/g,"")):!0}}});var m=a.tablesorter;a.fn.extend({tablesorter:m.construct});m.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"});m.addParser({id:"text",is:function(){return!0},format:function(f,
g){var e=g.config;f&&(f=a.trim(e.ignoreCase?f.toLocaleLowerCase():f),f=e.sortLocaleCompare?m.replaceAccents(f):f);return f},type:"text"});m.addParser({id:"digit",is:function(a){return m.isDigit(a)},format:function(f,g){var e=m.formatFloat((f||"").replace(/[^\w,. \-()]/g,""),g);return f&&"number"===typeof e?e:f?a.trim(f&&g.config.ignoreCase?f.toLocaleLowerCase():f):f},type:"numeric"});m.addParser({id:"currency",is:function(a){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((a||
"").replace(/[+\-,. ]/g,""))},format:function(f,g){var e=m.formatFloat((f||"").replace(/[^\w,. \-()]/g,""),g);return f&&"number"===typeof e?e:f?a.trim(f&&g.config.ignoreCase?f.toLocaleLowerCase():f):f},type:"numeric"});m.addParser({id:"ipAddress",is:function(a){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(a)},format:function(a,g){var e,d=a?a.split("."):"",b="",c=d.length;for(e=0;e<c;e++)b+=("00"+d[e]).slice(-3);return a?m.formatFloat(b,g):a},type:"numeric"});m.addParser({id:"url",is:function(a){return/^(https?|ftp|file):\/\//.test(a)},
format:function(f){return f?a.trim(f.replace(/(https?|ftp|file):\/\//,"")):f},type:"text"});m.addParser({id:"isoDate",is:function(a){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(a)},format:function(a,g){return a?m.formatFloat(""!==a?(new Date(a.replace(/-/g,"/"))).getTime()||a:"",g):a},type:"numeric"});m.addParser({id:"percent",is:function(a){return/(\d\s*?%|%\s*?\d)/.test(a)&&15>a.length},format:function(a,g){return a?m.formatFloat(a.replace(/%/g,""),g):a},type:"numeric"});m.addParser({id:"usLongDate",
is:function(a){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(a)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(a)},format:function(a,g){return a?m.formatFloat((new Date(a.replace(/(\S)([AP]M)$/i,"$1 $2"))).getTime()||a,g):a},type:"numeric"});m.addParser({id:"shortDate",is:function(a){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((a||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(a,g,e,d){if(a){e=g.config;
var b=e.$headers.filter("[data-column="+d+"]:last");d=b.length&&b[0].dateFormat||m.getData(b,m.getColumnData(g,e.headers,d),"dateFormat")||e.dateFormat;a=a.replace(/\s+/g," ").replace(/[\-.,]/g,"/");"mmddyyyy"===d?a=a.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===d?a=a.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===d&&(a=a.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return a?m.formatFloat((new Date(a)).getTime()||a,g):a},type:"numeric"});
m.addParser({id:"time",is:function(a){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(a)},format:function(a,g){return a?m.formatFloat((new Date("2000/01/01 "+a.replace(/(\S)([AP]M)$/i,"$1 $2"))).getTime()||a,g):a},type:"numeric"});m.addParser({id:"metadata",is:function(){return!1},format:function(f,g,e){f=g.config;f=f.parserMetadataName?f.parserMetadataName:"sortValue";return a(e).metadata()[f]},type:"numeric"});m.addWidget({id:"zebra",priority:90,format:function(f,g,e){var d,b,
c,h,l,n,q=RegExp(g.cssChildRow,"i"),t=g.$tbodies;g.debug&&(l=new Date);for(f=0;f<t.length;f++)d=t.eq(f),n=d.children("tr").length,1<n&&(c=0,d=d.children("tr:visible").not(g.selectorRemove),d.each(function(){b=a(this);q.test(this.className)||c++;h=0===c%2;b.removeClass(e.zebra[h?1:0]).addClass(e.zebra[h?0:1])}));g.debug&&m.benchmark("Applying Zebra widget",l)},remove:function(f,g,e){var d;g=g.$tbodies;var b=(e.zebra||["even","odd"]).join(" ");for(e=0;e<g.length;e++)d=a.tablesorter.processTbody(f,g.eq(e),
!0),d.children().removeClass(b),a.tablesorter.processTbody(f,d,!1)}})}(jQuery);var doc=document;doc.getById=doc.getElementById;
var SDU={isIE:function(a,m){var f="",g="";return"undefined"!=typeof a?(g=a,"undefined"!=typeof m&&(f=m),$("#isIE"+f+g+"test").length||$("#isIE"+f+g).length||$("body").prepend('<div id="isIE'+f+g+'test">\x3c!--[if '+f+" IE "+g+']><div id="isIE'+f+g+'"></div><![endif]--\x3e</div>'),0<$("#isIE"+f+g).length):$.browser.msie},isIEless:function(a){return this.isIE(a,"lt")},isIE6:function(){return this.isIE(6)},isIE7:function(){return this.isIE(7)},isIE8:function(){return this.isIE(8)},isIE9:function(){return this.isIE(9)},
isIE78:function(){return this.isIE(7)||this.isIE(8)},cookieAvail:function(){var a=(new Date).getTime();document.cookie="__cp="+a+";path=/";a=-1!==document.cookie.indexOf(a);document.cookie="__cp=;expires=Fri, 01-Jan-70 01:02:03 UTC;";return a},sessionStorageAvail:function(){try{return null!=typeof sessionStorage&&null!=typeof sessionStorage.setItem?!0:!1}catch(a){return!1}},localStorageAvail:function(){try{return null!=typeof localStorage&&null!=typeof localStorage.setItem?!0:!1}catch(a){return!1}}};
$.fn.doTheScrollJitter=function(a){void 0==a&&(a=1);if(0!=$(this).scrollTop()){var m=$(this).scrollTop()-a;$(this).scrollTop(m);m=$(this).scrollTop()+a;$(this).scrollTop(m)}};$.fn.backgroundColor=function(){var a=$(this).css("backgroundColor");if("rgba(0, 0, 0, 0)"==a||"transparent"==a){var m="";$(this).parents().each(function(){"rgba(0, 0, 0, 0)"!=$(this).css("backgroundColor")&&"transparent"!=$(this).css("backgroundColor")&&""==m&&(m=$(this).css("backgroundColor"))});return m}return a};
$.scrollBarWidth=function(){var a=doc.createElement("div");a.style.cssText="overflow:scroll;width:100px;height:100px";doc.body.appendChild(a);var m=a.offsetWidth-a.clientWidth;doc.body.removeChild(a);$.scrollBarWidth=function(){return m}};$.fn.attrsToString=function(){for(var a="",m=this.get(0).attributes,f=0;f<m.length;f++)a=a+m[f].nodeName+'="'+m[f].nodeValue+'" ';return a.slice(0,-1)};
$.fn.syncTo=function(a){var m={selector:".syncItems",focus:{scrollSyncSel:"",idConvert:function(a){return"sync_"+a},cssFocusFirst:"focusFirst",cssFocus:"focus",cssFocusLast:"focusLast",contentArea:""}},f="#"+$(this).attr("id");return this.each(function(){a&&$.extend(!0,m,a);var g=$(f);$(m.focus.scrollSyncSel).scroll(function(a){if($(g).is(":visible")){a=$(this).scrollTop();var d=a+$(this).height();$("#"+m.focus.contentArea)[0]&&(d-=$("#"+m.focus.contentArea).position().top);var b=$(m.selector),b=
_.filter(b,function(a){return 0==$(a).parents(".textboxBody").length}),c=b.length;$(f).children().removeClass(m.focus.cssFocus+" "+m.focus.cssFocusFirst+" "+m.focus.cssFocusLast);for(objIndex=0;objIndex<c;objIndex++){var h=$(b[objIndex]);if(void 0!=$(h).attr("id")){var l=$(b[objIndex]).position().top,n;n=objIndex==c-1?d+1:$(b[objIndex+1]).position().top;var h="#"+m.focus.idConvert(h.attr("id").replace(/[\.]/g,"\\.").replace(/[\:]/g,"\\:")),q=$(h);q.parent().removeClass(m.focus.cssFocusFirst+" "+m.focus.cssFocusLast);
q.removeClass(m.focus.cssFocusFirst+" "+m.focus.cssFocusLast);l>=a&&n<=d||l<=a&&n>=a||l<=d&&n>=d||l<=a&&n>=d?(g.find(h)[0]||void 0==q.attr("data-parent")||(q=$("#"+m.focus.idConvert(q.attr("data-parent").replace(/[\.]/g,"\\.").replace(/[\:]/g,"\\:")))),q.parent().addClass(m.focus.cssFocus)):(q.parent().removeClass(m.focus.cssFocus),q.removeClass(m.focus.cssFocus))}}d=$(f+" ."+m.focus.cssFocus);1<d.length&&d.each(function(){$(this).prev().hasClass(m.focus.cssFocus)||$(this).next().hasClass(m.focus.cssFocus)||
$(this).removeClass(m.focus.cssFocus)});d=$(f+" ."+m.focus.cssFocus);0<d.length&&($(d[0]).is(":visible")?$(d[0]).addClass(m.focus.cssFocusFirst):$(d[0]).prevAll("li.li_h2:first").addClass(m.focus.cssFocusFirst+" "+m.focus.cssFocus),d.not(":visible").removeClass(m.focus.cssFocus),$(d[d.length-1]).is(":visible")?$(d[d.length-1]).addClass(m.focus.cssFocusLast):$(d[d.length-1]).prevAll("li.li_h2:first").addClass(m.focus.cssFocusLast+" "+m.focus.cssFocus));d=$(f+" ."+m.focus.cssFocus);0<d.length&&(a=$(d[0]).position().top,
d=$(d[d.length-1]).position().top+$(d[d.length-1]).height(),0>a?(a=$("#outline").scrollTop()+a-20,$("#outline").scrollTop(a),$("#outline").attr("data-st",a)):d+5>$("#outline").height()&&(a=$("#outline").scrollTop()+(d-$("#outline").height())+40,$("#outline").scrollTop(a),$("#outline").attr("data-st",a)))}})})};
$.fn.moveTo=function(a,m){var f={scrollSpeed:100,offset:-40,bounce:!0,bounceSpeed:125,bounceHeight:10,focus:!0,focusColor:"#D9D9D9",focusReturnColor:"ORIGINAL",focusUp:200,focusHold:300,focusDown:200,setFocus:!0,cbFunc:function(){}};m&&$.extend(f,m);a=a.replace(/[\.]/g,"\\.");a=a.replace(/[\:]/g,"\\:");var g=$("#"+a);if($("#"+a)[0]){var e=$("#"+a).is(":visible")?$("#"+a).position().top+f.offset:$("#"+a).closest(":visible").position().top+f.offset;!0==f.bounce&&e==$(this).scrollTop()?$(this).animate({scrollTop:"-="+
f.bounceHeight.toString()},f.bounceSpeed).animate({scrollTop:"+="+f.bounceHeight.toString()},f.bounceSpeed,function(){!0==f.setFocus&&(g[0].tabIndex=0,g[0].focus(),g[0].tabIndex=-1);f.cbFunc()}):$(this).animate({scrollTop:e},f.scrollSpeed,function(){!0==f.setFocus&&(g[0].tabIndex=0,g[0].focus(),g[0].tabIndex=-1);f.cbFunc()});"ORIGINAL"==f.focusReturnColor&&(f.focusReturnColor=g.backgroundColor());!0==f.focus&&$("#"+a).animate({backgroundColor:f.focusColor},f.focusUp,function(){setTimeout(function(){$("#"+
a).animate({backgroundColor:f.focusReturnColor},f.focusDown)},f.focusHold)})}return!1};
$.fn.tree=function(a){var m=$.extend({expanded:""},a);return $(this).each(function(){if(!$(this).parents(".tree").length){var a=$(this);$("body").is("[role]")||$("body").attr("role","application");a.attr({role:"tree"}).addClass("tree");a.find("a:eq(0)").attr("tabindex","0");a.find("a:gt(0)").attr("tabindex","-1");a.find("ul").attr("role","group").addClass("tree-group-collapsed");a.find("li").attr("role","treeitem");a.find("li.hasChildren").attr("aria-expanded","false").find(">a").addClass("tree-parent tree-parent-collapsed");
a.find("li>a").not("a.module").prepend("<span>&nbsp;</span>");a.find("li.hasChildren>a>span").addClass("srcPartClosed");a.find(m.expanded).attr("aria-expanded","true").find(">a").removeClass("tree-parent-collapsed").next().removeClass("tree-group-collapsed");a.find("a.tree-parent").not("a.tree-parent-collapsed").find(">span").toggleClass("srcPartClosed").toggleClass("srcPartOpened");a.bind("expand",function(g){var e=$(g.target)||a.find("a[tabindex=0]");e.removeClass("tree-parent-collapsed").find(">span").toggleClass("srcPartOpened").toggleClass("srcPartClosed");
e.parent().children("ul")[0]?e.next().hide().removeClass("tree-group-collapsed").slideDown(150,function(){$(this).removeAttr("style");e.parent().attr("aria-expanded","true").find(">span").toggleClass("srcPartClosed").toggleClass("srcPartOpened")}):$.get(e.parent().attr("data-childUrl"),function(a){e.parent().attr("aria-expanded","true");a=$("<ul>"+a+"</ul>");a.find("li.hasChildren").attr("aria-expanded","false").find(">a").addClass("tree-parent tree-parent-collapsed");a.find("li>a").not("a.module").prepend("<span>&nbsp;</span>");
a.find("li.hasChildren>a>span").addClass("srcPartClosed");e.parent().append(a)})}).bind("collapse",function(g){var e=$(g.target)||a.find("a[tabindex=0]");e.next().slideUp(150,function(){e.parent().attr("aria-expanded","false");$(this).addClass("tree-group-collapsed").removeAttr("style")});e.addClass("tree-parent-collapsed").find(">span").toggleClass("srcPartOpened").toggleClass("srcPartClosed")}).bind("toggle",function(g){g=$(g.target)||a.find("a[tabindex=0]");g.parent().is("[aria-expanded=false]")?
g.trigger("expand"):g.trigger("collapse")}).bind("traverseDown",function(g){g=$(g.target)||a.find("a[tabindex=0]");var e=g.parent();e.is("[aria-expanded=true]")?g.next().find("a").eq(0).focus():e.next().length?e.next().find("a").eq(0).focus():e.parents("li").next().find("a").eq(0).focus()}).bind("traverseUp",function(g){g=($(g.target)||a.find("a[tabindex=0]")).parent();g.prev().length?g.prev().is("[aria-expanded=true]")?g.prev().find("li:visible:last a").eq(0).focus():g.prev().find("a").eq(0).focus():
g.parents("li:eq(0)").find("a").eq(0).focus()});a.focus(function(g){a.find("[tabindex=0]").attr("tabindex","-1").removeClass("tree-item-active");$(g.target).attr("tabindex","0").addClass("tree-item-active")}).click(function(a){a=$(a.target);if(a.parent("a").is("a.tree-parent"))return a.closest("a").trigger("toggle"),a.closest("a").eq(0).focus(),!1}).keydown(function(g){var e=a.find("a[tabindex=0]");if(37==g.keyCode||38==g.keyCode||39==g.keyCode||40==g.keyCode)return 37==g.keyCode&&(e.parent().is("[aria-expanded=true]")?
e.trigger("collapse"):e.parents("li:eq(1)").find("a").eq(0).focus()),39==g.keyCode&&(e.parent().is("[aria-expanded=false]")?e.trigger("expand"):e.parents("li:eq(0)").find("li a").eq(0).focus()),38==g.keyCode&&e.trigger("traverseUp"),40==g.keyCode&&e.trigger("traverseDown"),!1;if((13==g.keyCode||32==g.keyCode)&&e.is("a.tree-parent"))return e.trigger("toggle"),!1})}})};jQuery.browser={};
(function(){jQuery.browser.msie=!1;jQuery.browser.version=0;navigator.userAgent.match(/MSIE ([0-9]+)\./)?(jQuery.browser.msie=!0,jQuery.browser.version=RegExp.$1):navigator.userAgent.match(/Trident\/7\./)&&(jQuery.browser.msie=!0,jQuery.browser.version=11)})();
(function(a,m,f){function g(a){a=a||m[b][c];return a.replace(/^[^#]*#?(.*)$/,"$1")}var e,d=a.event.special,b="location",c="href",h=document.documentMode,l=a.browser.msie&&(h===f||8>h),n="onhashchange"in m&&!l;a.hashchangeDelay=100;d.hashchange=a.extend(d.hashchange,{setup:function(){if(n)return!1;a(e.start)},teardown:function(){if(n)return!1;a(e.stop)}});e=function(){function d(){n=s=function(a){return a};l&&(h=a('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow,s=function(){return g(h.document[b][c])},
n=function(a,c){if(a!==c){var d=h.document;d.open().close();d[b].hash="#"+a}},n(g()))}var e={},f,h,n,s;e.start=function(){if(!f){var e=g();n||d();(function B(){var d=g(),h=s(e);d!==e?(n(e=d,h),a(m).trigger("hashchange")):h!==e&&(m[b][c]=m[b][c].replace(/#.*/,"")+"#"+h);f=setTimeout(B,a.hashchangeDelay)})()}};e.stop=function(){h||(f&&clearTimeout(f),f=0)};return e}()})(jQuery,this);
$.fn.selectRange=function(a,m){return this.each(function(){if(this.setSelectionRange)this.setSelectionRange(a,m);else if(this.createTextRange){var f=this.createTextRange();f.collapse(!0);f.moveEnd("character",m);f.moveStart("character",a);f.select()}})};
$.fn.addEllipsis=function(){var a=document.documentElement.style,a="textOverflow"in a||"OTextOverflow"in a,m=$(this).hasClass("multiline");if(!a||m)return this.each(function(){var a=$(this);a.clone();var g=a.clone(),e=a.width(),d=function(){e!==a.width()&&a.is(":visible")&&(a.replaceWith(g),a=g,g=a.clone(),a.addEllipsis(),e=a.width())};if("hidden"==a.css("overflow")){var b=a.html(),c=b,h=a.hasClass("multiline"),l=$(this.cloneNode(!0)).hide().css("position","absolute").css("overflow","visible").width(h?
a.width():"auto").height(h?"auto":a.height());a.after(l);var m=function(){return l.height()>a.height()},q=function(){return l.width()>a.width()};if(l.height()>a.height()){for(h=h?m:q;0<b.length&&h();)b=b.substr(0,b.length-1),l.html(b+"...");a.html(l.html());a.attr("data-fullText",c);setInterval(d,200)}else a.css("height","auto");l.remove()}});$(this).css({"text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap"})};browseimp_nextBatchURL="";
(function(a,m,f){m.infinitescroll=function(a,b,c){this.element=m(c);this._create(a,b)};m.infinitescroll.defaults={loading:{finished:f,finishedMsg:"",img:"http://www.sciencedirect.com/scidirimg/space.gif",msg:null,msgText:"",selector:null,speed:"fast",start:f},state:{isDuringAjax:!1,isInvalidPage:!1,isDestroyed:!1,isDone:!1,isPaused:!1,currPage:1},callback:f,debug:!1,behavior:f,binder:m(a),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",
animate:!1,pathParse:f,dataType:"html",appendCallback:!0,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:f,path:f};m.infinitescroll.prototype={_binding:function(a){var b=this,c=b.options;if(c.behavior&&this["_binding_"+c.behavior]!==f)this["_binding_"+c.behavior].call(this);else{if("bind"!==a&&"unbind"!==a)return this._debug("Binding value  "+a+" not valid"),!1;if("unbind"==a)this.options.binder.unbind("smartscroll.infscr."+b.options.infid);else this.options.binder[a]("smartscroll.infscr."+
b.options.infid,function(){b.scroll()});this._debug("Binding",a)}},_create:function(a,b){if(!this._validate(a))return!1;var c=this.options=m.extend(!0,{},m.infinitescroll.defaults,a),e=m(c.nextSelector).attr("href");c.contentSelector=c.contentSelector||this.element;c.loading.selector=c.loading.selector||c.contentSelector;e?(c.path=this._determinepath(e),c.loading.msg=m('<div style="display: none;" id="infscr-loading"><img alt="Loading..." src="'+c.loading.img+'" /><div>'+c.loading.msgText+"</div></div>"),
c.pixelsFromNavToBottom=m(document).height()-m(c.navSelector).offset().top,c.loading.start=c.loading.start||function(){m(c.navSelector).hide();c.loading.msg.appendTo(c.loading.selector).show(c.loading.speed,function(){beginAjax(c)})},c.loading.finished=c.loading.finished||function(){c.loading.msg.fadeOut("normal")},c.callback=function(a,d){c.behavior&&a["_callback_"+c.behavior]!==f&&a["_callback_"+c.behavior].call(m(c.contentSelector)[0],d);b&&b.call(m(c.contentSelector)[0],d)},this._setup()):this._debug("Navigation selector not found")},
_debug:function(){if(this.options.debug)return a.console&&console.log.call(console,arguments)},_determinepath:function(a){var b=this.options;if(b.behavior&&this["_determinepath_"+b.behavior]!==f)this["_determinepath_"+b.behavior].call(this,a);else{if(b.pathParse)return this._debug("pathParse manual"),b.pathParse;if(a.match(/^(.*?)\b2\b(.*?$)/))a=a.match(/^(.*?)\b2\b(.*?$)/).slice(1);else if(a.match(/^(.*?)2(.*?$)/)){if(a.match(/^(.*?page=)2(\/.*|$)/))return a=a.match(/^(.*?page=)2(\/.*|$)/).slice(1);
a=a.match(/^(.*?)2(.*?$)/).slice(1)}else{if(a.match(/^(.*?page=)1(\/.*|$)/))return a=a.match(/^(.*?page=)1(\/.*|$)/).slice(1);this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com.");b.state.isInvalidPage=!0}this._debug("determinePath",a);return a}},_error:function(a){var b=this.options;b.behavior&&this["_error_"+b.behavior]!==f?this["_error_"+
b.behavior].call(this,a):("destroy"!==a&&"end"!==a&&(a="unknown"),this._debug("Error",a),"end"==a&&this._showdonemsg(),b.state.isDone=!0,b.state.currPage=1,b.state.isPaused=!1,this._binding("unbind"))},_loadcallback:function(d,b){var c=this.options,e=this.options.callback,g=c.state.isDone?"done":c.appendCallback?"append":"no-append";if(c.behavior&&this["_loadcallback_"+c.behavior]!==f)this["_loadcallback_"+c.behavior].call(this,d,b);else{switch(g){case "done":return this._showdonemsg(),!1;case "no-append":"html"==
c.dataType&&(b=m("<div>"+b+"</div>").find(c.itemSelector));break;case "append":var n=d.children();if(0==n.length)return this._error("end");for(g=document.createDocumentFragment();d[0].firstChild;)g.appendChild(d[0].firstChild);this._debug("contentSelector",m(c.contentSelector)[0]);m(c.contentSelector)[0].appendChild(g);b=n.get()}c.loading.finished.call(m(c.contentSelector)[0],c);c.animate&&(g=m(a).scrollTop()+m("#infscr-loading").height()+c.extraScrollPx+"px",m("html,body").animate({scrollTop:g},
800,function(){c.state.isDuringAjax=!1}));c.animate||(c.state.isDuringAjax=!1);e(this,b)}},_nearbottom:function(){var d=this.options,b=0+m(document).height()-d.binder.scrollTop()-m(a).height();if(d.behavior&&this["_nearbottom_"+d.behavior]!==f)this["_nearbottom_"+d.behavior].call(this);else return this._debug("math:",b,d.pixelsFromNavToBottom),b-d.bufferPx<d.pixelsFromNavToBottom},_pausing:function(a){var b=this.options;if(b.behavior&&this["_pausing_"+b.behavior]!==f)this["_pausing_"+b.behavior].call(this,
a);else{"pause"!==a&&"resume"!==a&&null!==a&&this._debug("Invalid argument. Toggling pause value instead");switch(!a||"pause"!=a&&"resume"!=a?"toggle":a){case "pause":b.state.isPaused=!0;break;case "resume":b.state.isPaused=!1;break;case "toggle":b.state.isPaused=!b.state.isPaused}this._debug("Paused",b.state.isPaused);return!1}},_setup:function(){var a=this.options;if(a.behavior&&this["_setup_"+a.behavior]!==f)this["_setup_"+a.behavior].call(this);else return this._binding("bind"),!1},_showdonemsg:function(){var a=
this.options;a.behavior&&this["_showdonemsg_"+a.behavior]!==f?this["_showdonemsg_"+a.behavior].call(this):(a.loading.msg.find("img").hide().parent().find("div").html(a.loading.finishedMsg).animate({opacity:1},2E3,function(){m(this).parent().fadeOut("normal")}),a.errorCallback.call(m(a.contentSelector)[0],"done"))},_validate:function(a){for(var b in a)return b.indexOf&&-1<b.indexOf("Selector")&&0===m(a[b]).length?(this._debug("Your "+b+" found no elements."),!1):!0},bind:function(){this._binding("bind")},
destroy:function(){this.options.state.isDestroyed=!0;return this._error("destroy")},pause:function(){this._pausing("pause")},resume:function(){this._pausing("resume")},retrieve:function(a){var b=this,c=b.options,e=c.path,g,n,q,t;a=a||null;beginAjax=function(a){a.state.currPage++;b._debug("heading into ajax",e);g=m(a.contentSelector).is("table")?m("<tbody/>"):m("<div/>");if(0<browseimp_nextBatchURL.length)switch(n=browseimp_nextBatchURL,q="html"==a.dataType||"json"==a.dataType?a.dataType:"html+callback",
a.appendCallback&&"html"==a.dataType&&(q+="+callback"),q){case "html+callback":b._debug("Using HTML via .load() method");g.load(n+" "+a.itemSelector,null,function(a){b._loadcallback(g,a)});break;case "html":case "json":b._debug("Using "+q.toUpperCase()+" via $.ajax() method"),m.ajax({url:n,dataType:a.dataType,complete:function(a,c){if(t="undefined"!==typeof a.isResolved?a.isResolved():"success"===c||"notmodified"===c){var d;d=browseTitles.setResponse(a.responseText,!0);g.append(d)}t?b._loadcallback(g,
d):b._error("end")}})}};if(c.behavior&&this["retrieve_"+c.behavior]!==f)this["retrieve_"+c.behavior].call(this,a);else{if(c.state.isDestroyed)return this._debug("Instance is destroyed"),!1;c.state.isDuringAjax=!0;c.loading.start.call(m(c.contentSelector)[0],c)}},scroll:function(){var a=this.options,b=a.state;a.behavior&&this["scroll_"+a.behavior]!==f?this["scroll_"+a.behavior].call(this):b.isDuringAjax||b.isInvalidPage||b.isDone||b.isDestroyed||b.isPaused||this._nearbottom()&&this.retrieve()},toggle:function(){this._pausing()},
unbind:function(){this._binding("unbind")},update:function(a){m.isPlainObject(a)&&(this.options=m.extend(!0,this.options,a))}};m.fn.infinitescroll=function(a,b){switch(typeof a){case "string":var c=Array.prototype.slice.call(arguments,1);this.each(function(){var b=m.data(this,"infinitescroll");if(!b||!m.isFunction(b[a])||"_"===a.charAt(0))return!1;b[a].apply(b,c)});break;case "object":this.each(function(){var c=m.data(this,"infinitescroll");c?c.update(a):m.data(this,"infinitescroll",new m.infinitescroll(a,
b,this))})}return this};var g=m.event,e;g.special.smartscroll={setup:function(){m(this).bind("scroll",g.special.smartscroll.handler)},teardown:function(){m(this).unbind("scroll",g.special.smartscroll.handler)},handler:function(a,b){var c=this,f=arguments;a.type="smartscroll";e&&clearTimeout(e);e=setTimeout(function(){m(c).trigger("smartscroll",f)},"execAsap"===b?0:100)}};m.fn.smartscroll=function(a){return a?this.bind("smartscroll",a):this.trigger("smartscroll",["execAsap"])}})(window,jQuery);$.fn.tree=function(a){var m=$.extend({expanded:""},a);return $(this).each(function(){if(!$(this).parents(".tree").length){var a=$(this);$("body").is("[role]")||$("body").attr("role","application");a.attr({role:"tree"}).addClass("tree");a.find("a:eq(0)").attr("tabindex","0");a.find("a:gt(0)").attr("tabindex","-1");a.find("ul").attr("role","group").addClass("tree-group-collapsed");a.find("li").attr("role","treeitem");a.find("li.hasChildren").attr("aria-expanded","false").find(">a").addClass("tree-parent tree-parent-collapsed");
a.find("li>a").not("a.module").prepend("<span>&nbsp;</span>");a.find("li.hasChildren>a>span").addClass("srcPartClosed");a.find(m.expanded).attr("aria-expanded","true").find(">a").removeClass("tree-parent-collapsed").next().removeClass("tree-group-collapsed");a.find("a.tree-parent").not("a.tree-parent-collapsed").find(">span").toggleClass("srcPartClosed").toggleClass("srcPartOpened");a.bind("expand",function(g){var e=$(g.target)||a.find("a[tabindex=0]");e.removeClass("tree-parent-collapsed").find(">span").toggleClass("srcPartOpened").toggleClass("srcPartClosed");
e.parent().children("ul")[0]?e.next().hide().removeClass("tree-group-collapsed").slideDown(150,function(){$(this).removeAttr("style");e.parent().attr("aria-expanded","true").find(">span").toggleClass("srcPartClosed").toggleClass("srcPartOpened")}):$.get(e.parent().attr("data-childUrl"),function(a){e.parent().attr("aria-expanded","true");a=$("<ul>"+a+"</ul>");a.find("li.hasChildren").attr("aria-expanded","false").find(">a").addClass("tree-parent tree-parent-collapsed");a.find("li>a").not("a.module").prepend("<span>&nbsp;</span>");
a.find("li.hasChildren>a>span").addClass("srcPartClosed");e.parent().append(a)})}).bind("collapse",function(g){var e=$(g.target)||a.find("a[tabindex=0]");e.next().slideUp(150,function(){e.parent().attr("aria-expanded","false");$(this).addClass("tree-group-collapsed").removeAttr("style")});e.addClass("tree-parent-collapsed").find(">span").toggleClass("srcPartOpened").toggleClass("srcPartClosed")}).bind("toggle",function(g){g=$(g.target)||a.find("a[tabindex=0]");g.parent().is("[aria-expanded=false]")?
g.trigger("expand"):g.trigger("collapse")}).bind("traverseDown",function(g){g=$(g.target)||a.find("a[tabindex=0]");var e=g.parent();e.is("[aria-expanded=true]")?g.next().find("a").eq(0).focus():e.next().length?e.next().find("a").eq(0).focus():e.parents("li").next().find("a").eq(0).focus()}).bind("traverseUp",function(g){g=($(g.target)||a.find("a[tabindex=0]")).parent();g.prev().length?g.prev().is("[aria-expanded=true]")?g.prev().find("li:visible:last a").eq(0).focus():g.prev().find("a").eq(0).focus():
g.parents("li:eq(0)").find("a").eq(0).focus()});a.focus(function(g){a.find("[tabindex=0]").attr("tabindex","-1").removeClass("tree-item-active");$(g.target).attr("tabindex","0").addClass("tree-item-active")}).click(function(a){a=$(a.target);if(a.parent("a").is("a.tree-parent"))return a.closest("a").trigger("toggle"),a.closest("a").eq(0).focus(),!1}).keydown(function(g){var e=a.find("a[tabindex=0]");if(37==g.keyCode||38==g.keyCode||39==g.keyCode||40==g.keyCode)return 37==g.keyCode&&(e.parent().is("[aria-expanded=true]")?
e.trigger("collapse"):e.parents("li:eq(1)").find("a").eq(0).focus()),39==g.keyCode&&(e.parent().is("[aria-expanded=false]")?e.trigger("expand"):e.parents("li:eq(0)").find("li a").eq(0).focus()),38==g.keyCode&&e.trigger("traverseUp"),40==g.keyCode&&e.trigger("traverseDown"),!1;if((13==g.keyCode||32==g.keyCode)&&e.is("a.tree-parent"))return e.trigger("toggle"),!1})}})};
(function(a){if(!document.winResizeFired){document.winResizeFired=!0;var m=a(window),f=m.width(),g=m.height();m.bind("resize",function(a){var d=m.width(),b=m.height();f==d&&g==b?(a.preventDefault(),a.stopImmediatePropagation()):(f=d,g=b)})}})(jQuery);
