this.JSON||(JSON={});
(function(){function f(p){return p<10?"0"+p:p}function b(p){i.lastIndex=0;return i.test(p)?'"'+p.replace(i,function(v){var w=n[v];return typeof w==="string"?w:"\\u"+("0000"+v.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+p+'"'}function e(p,v){var w,C,K,G,d=m,S,Z=v[p];if(Z&&typeof Z==="object"&&typeof Z.toJSON==="function")Z=Z.toJSON(p);if(typeof l==="function")Z=l.call(v,p,Z);switch(typeof Z){case "string":return b(Z);case "number":return isFinite(Z)?String(Z):"null";case "boolean":case "null":return String(Z);case "object":if(!Z)return"null";
m+=r;S=[];if(Object.prototype.toString.apply(Z)==="[object Array]"){G=Z.length;for(w=0;w<G;w+=1)S[w]=e(w,Z)||"null";K=S.length===0?"[]":m?"[\n"+m+S.join(",\n"+m)+"\n"+d+"]":"["+S.join(",")+"]";m=d;return K}if(l&&typeof l==="object"){G=l.length;for(w=0;w<G;w+=1){C=l[w];if(typeof C==="string")if(K=e(C,Z))S.push(b(C)+(m?": ":":")+K)}}else for(C in Z)if(Object.hasOwnProperty.call(Z,C))if(K=e(C,Z))S.push(b(C)+(m?": ":":")+K);K=S.length===0?"{}":m?"{\n"+m+S.join(",\n"+m)+"\n"+d+"}":"{"+S.join(",")+"}";
m=d;return K}}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var h=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
m,r,n={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},l;if(typeof JSON.stringify!=="function")JSON.stringify=function(p,v,w){var C;r=m="";if(typeof w==="number")for(C=0;C<w;C+=1)r+=" ";else if(typeof w==="string")r=w;if((l=v)&&typeof v!=="function"&&(typeof v!=="object"||typeof v.length!=="number"))throw new Error("JSON.stringify");return e("",{"":p})};if(typeof JSON.parse!=="function")JSON.parse=function(p,v){function w(K,G){var d,S,Z=K[G];if(Z&&typeof Z===
"object")for(d in Z)if(Object.hasOwnProperty.call(Z,d)){S=w(Z,d);if(S!==undefined)Z[d]=S;else delete Z[d]}return v.call(K,G,Z)}var C;h.lastIndex=0;if(h.test(p))p=p.replace(h,function(K){return"\\u"+("0000"+K.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(p.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){C=eval("("+p+")");return typeof v==="function"?w({"":C},""):
C}throw new SyntaxError("JSON.parse");}})();var hexcase=0,b64pad="=",chrsz=8;function hex_sha1(f){return binb2hex(core_sha1(str2binb(f),f.length*chrsz))}function b64_sha1(f){return binb2b64(core_sha1(str2binb(f),f.length*chrsz))}function str_sha1(f){return binb2str(core_sha1(str2binb(f),f.length*chrsz))}function hex_hmac_sha1(f,b){return binb2hex(core_hmac_sha1(f,b))}function b64_hmac_sha1(f,b){return binb2b64(core_hmac_sha1(f,b))}function str_hmac_sha1(f,b){return binb2str(core_hmac_sha1(f,b))}
function sha1_vm_test(){return hex_sha1("abc")=="a9993e364706816aba3e25717850c26c9cd0d89d"}
function core_sha1(f,b){f[b>>5]|=128<<24-b%32;f[(b+64>>9<<4)+15]=b;for(var e=Array(80),h=1732584193,i=-271733879,m=-1732584194,r=271733878,n=-1009589776,l=0;l<f.length;l+=16){for(var p=h,v=i,w=m,C=r,K=n,G=0;G<80;G++){e[G]=G<16?f[l+G]:rol(e[G-3]^e[G-8]^e[G-14]^e[G-16],1);var d=safe_add(safe_add(rol(h,5),sha1_ft(G,i,m,r)),safe_add(safe_add(n,e[G]),sha1_kt(G)));n=r;r=m;m=rol(i,30);i=h;h=d}h=safe_add(h,p);i=safe_add(i,v);m=safe_add(m,w);r=safe_add(r,C);n=safe_add(n,K)}return Array(h,i,m,r,n)}
function sha1_ft(f,b,e,h){if(f<20)return b&e|~b&h;if(f<40)return b^e^h;if(f<60)return b&e|b&h|e&h;return b^e^h}function sha1_kt(f){return f<20?1518500249:f<40?1859775393:f<60?-1894007588:-899497514}function core_hmac_sha1(f,b){var e=str2binb(f);if(e.length>16)e=core_sha1(e,f.length*chrsz);for(var h=Array(16),i=Array(16),m=0;m<16;m++){h[m]=e[m]^909522486;i[m]=e[m]^1549556828}e=core_sha1(h.concat(str2binb(b)),512+b.length*chrsz);return core_sha1(i.concat(e),672)}
function safe_add(f,b){var e=(f&65535)+(b&65535);return(f>>16)+(b>>16)+(e>>16)<<16|e&65535}function rol(f,b){return f<<b|f>>>32-b}function str2binb(f){for(var b=Array(),e=(1<<chrsz)-1,h=0;h<f.length*chrsz;h+=chrsz)b[h>>5]|=(f.charCodeAt(h/chrsz)&e)<<32-chrsz-h%32;return b}function binb2str(f){for(var b="",e=(1<<chrsz)-1,h=0;h<f.length*32;h+=chrsz)b+=String.fromCharCode(f[h>>5]>>>32-chrsz-h%32&e);return b}
function binb2hex(f){for(var b=hexcase?"0123456789ABCDEF":"0123456789abcdef",e="",h=0;h<f.length*4;h++)e+=b.charAt(f[h>>2]>>(3-h%4)*8+4&15)+b.charAt(f[h>>2]>>(3-h%4)*8&15);return e}function binb2b64(f){for(var b="",e=0;e<f.length*4;e+=3)for(var h=(f[e>>2]>>8*(3-e%4)&255)<<16|(f[e+1>>2]>>8*(3-(e+1)%4)&255)<<8|f[e+2>>2]>>8*(3-(e+2)%4)&255,i=0;i<4;i++)b+=e*8+i*6>f.length*32?b64pad:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>6*(3-i)&63);return b}
(function(f,b){function e(){if(!d.isReady){try{H.documentElement.doScroll("left")}catch(a){setTimeout(e,1);return}d.ready()}}function h(a,c){c.src?d.ajax({url:c.src,async:false,dataType:"script"}):d.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function i(a,c,g,j,k,s){var t=a.length;if(typeof c==="object"){for(var A in c)i(a,A,c[A],j,k,g);return a}if(g!==b){j=!s&&j&&d.isFunction(g);for(A=0;A<t;A++)k(a[A],c,j?g.call(a[A],A,k(a[A],c)):g,s);return a}return t?
k(a[0],c):b}function m(){return(new Date).getTime()}function r(){return false}function n(){return true}function l(a,c,g){g[0].type=a;return d.event.handle.apply(c,g)}function p(a){var c,g=[],j=[],k=arguments,s,t,A,x,B,L;t=d.data(this,"events");if(!(a.liveFired===this||!t||!t.live||a.button&&a.type==="click")){a.liveFired=this;var da=t.live.slice(0);for(x=0;x<da.length;x++){t=da[x];t.origType.replace(ea,"")===a.type?j.push(t.selector):da.splice(x--,1)}s=d(a.target).closest(j,a.currentTarget);B=0;for(L=
s.length;B<L;B++)for(x=0;x<da.length;x++){t=da[x];if(s[B].selector===t.selector){A=s[B].elem;j=null;if(t.preType==="mouseenter"||t.preType==="mouseleave")j=d(a.relatedTarget).closest(t.selector)[0];if(!j||j!==A)g.push({elem:A,handleObj:t})}}B=0;for(L=g.length;B<L;B++){s=g[B];a.currentTarget=s.elem;a.data=s.handleObj.data;a.handleObj=s.handleObj;if(s.handleObj.origHandler.apply(s.elem,k)===false){c=false;break}}return c}}function v(a,c){return"live."+(a&&a!=="*"?a+".":"")+c.replace(/\./g,"`").replace(/ /g,
"&")}function w(a,c){var g=0;c.each(function(){if(this.nodeName===(a[g]&&a[g].nodeName)){var j=d.data(a[g++]),k=d.data(this,j);if(j=j&&j.events){delete k.handle;k.events={};for(var s in j)for(var t in j[s])d.event.add(this,s,j[s][t],j[s][t].data)}}})}function C(a,c,g){var j,k,s;c=c&&c[0]?c[0].ownerDocument||c[0]:H;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&c===H&&!Ya.test(a[0])&&(d.support.checkClone||!Za.test(a[0]))){k=true;if(s=d.fragments[a[0]])if(s!==1)j=s}if(!j){j=c.createDocumentFragment();
d.clean(a,c,j,g)}if(k)d.fragments[a[0]]=s?j:1;return{fragment:j,cacheable:k}}function K(a,c){var g={};d.each($a.concat.apply([],$a.slice(0,c)),function(){g[this]=a});return g}function G(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var d=function(a,c){return new d.fn.init(a,c)},S=f.jQuery,Z=f.$,H=f.document,va,ja=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,wa=/^.[^:#\[\.,]*$/,Da=/\S/,Ea=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Fa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Ca=navigator.userAgent,
ua=false,qa=[],q,F=Object.prototype.toString,I=Object.prototype.hasOwnProperty,N=Array.prototype.push,X=Array.prototype.slice,sa=Array.prototype.indexOf;d.fn=d.prototype={init:function(a,c){var g,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!c){this.context=H;this[0]=H.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((g=ja.exec(a))&&(g[1]||!c))if(g[1]){k=c?c.ownerDocument||c:H;if(j=Fa.exec(a))if(d.isPlainObject(c)){a=
[H.createElement(j[1])];d.fn.attr.call(a,c,true)}else a=[k.createElement(j[1])];else{j=C([g[1]],[k]);a=(j.cacheable?j.fragment.cloneNode(true):j.fragment).childNodes}return d.merge(this,a)}else{if(j=H.getElementById(g[2])){if(j.id!==g[2])return va.find(a);this.length=1;this[0]=j}this.context=H;this.selector=a;return this}else if(!c&&/^\w+$/.test(a)){this.selector=a;this.context=H;a=H.getElementsByTagName(a);return d.merge(this,a)}else return!c||c.jquery?(c||va).find(a):d(c).find(a);else if(d.isFunction(a))return va.ready(a);
if(a.selector!==b){this.selector=a.selector;this.context=a.context}return d.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return X.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,c,g){var j=d();d.isArray(a)?N.apply(j,a):d.merge(j,a);j.prevObject=this;j.context=this.context;if(c==="find")j.selector=this.selector+(this.selector?" ":"")+g;else if(c)j.selector=this.selector+"."+
c+"("+g+")";return j},each:function(a,c){return d.each(this,a,c)},ready:function(a){d.bindReady();if(d.isReady)a.call(H,d);else qa&&qa.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(X.apply(this,arguments),"slice",X.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(c,g){return a.call(c,g,c)}))},end:function(){return this.prevObject||
d(null)},push:N,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a=arguments[0]||{},c=1,g=arguments.length,j=false,k,s,t,A;if(typeof a==="boolean"){j=a;a=arguments[1]||{};c=2}if(typeof a!=="object"&&!d.isFunction(a))a={};if(g===c){a=this;--c}for(;c<g;c++)if((k=arguments[c])!=null)for(s in k){t=a[s];A=k[s];if(a!==A)if(j&&A&&(d.isPlainObject(A)||d.isArray(A))){t=t&&(d.isPlainObject(t)||d.isArray(t))?t:d.isArray(A)?[]:{};a[s]=d.extend(j,t,A)}else if(A!==b)a[s]=
A}return a};d.extend({noConflict:function(a){f.$=Z;if(a)f.jQuery=S;return d},isReady:false,ready:function(){if(!d.isReady){if(!H.body)return setTimeout(d.ready,13);d.isReady=true;if(qa){for(var a,c=0;a=qa[c++];)a.call(H,d);qa=null}d.fn.triggerHandler&&d(H).triggerHandler("ready")}},bindReady:function(){if(!ua){ua=true;if(H.readyState==="complete")return d.ready();if(H.addEventListener){H.addEventListener("DOMContentLoaded",q,false);f.addEventListener("load",d.ready,false)}else if(H.attachEvent){H.attachEvent("onreadystatechange",
q);f.attachEvent("onload",d.ready);var a=false;try{a=f.frameElement==null}catch(c){}H.documentElement.doScroll&&a&&e()}}},isFunction:function(a){return F.call(a)==="[object Function]"},isArray:function(a){return F.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||F.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!I.call(a,"constructor")&&!I.call(a.constructor.prototype,"isPrototypeOf"))return false;var c;for(c in a);return c===b||I.call(a,c)},isEmptyObject:function(a){for(var c in a)return false;
return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=d.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return f.JSON&&f.JSON.parse?f.JSON.parse(a):(new Function("return "+a))();else d.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Da.test(a)){var c=H.getElementsByTagName("head")[0]||
H.documentElement,g=H.createElement("script");g.type="text/javascript";if(d.support.scriptEval)g.appendChild(H.createTextNode(a));else g.text=a;c.insertBefore(g,c.firstChild);c.removeChild(g)}},nodeName:function(a,c){return a.nodeName&&a.nodeName.toUpperCase()===c.toUpperCase()},each:function(a,c,g){var j,k=0,s=a.length,t=s===b||d.isFunction(a);if(g)if(t)for(j in a){if(c.apply(a[j],g)===false)break}else for(;k<s;){if(c.apply(a[k++],g)===false)break}else if(t)for(j in a){if(c.call(a[j],j,a[j])===false)break}else for(g=
a[0];k<s&&c.call(g,k,g)!==false;g=a[++k]);return a},trim:function(a){return(a||"").replace(Ea,"")},makeArray:function(a,c){var g=c||[];if(a!=null)a.length==null||typeof a==="string"||d.isFunction(a)||typeof a!=="function"&&a.setInterval?N.call(g,a):d.merge(g,a);return g},inArray:function(a,c){if(c.indexOf)return c.indexOf(a);for(var g=0,j=c.length;g<j;g++)if(c[g]===a)return g;return-1},merge:function(a,c){var g=a.length,j=0;if(typeof c.length==="number")for(var k=c.length;j<k;j++)a[g++]=c[j];else for(;c[j]!==
b;)a[g++]=c[j++];a.length=g;return a},grep:function(a,c,g){for(var j=[],k=0,s=a.length;k<s;k++)!g!==!c(a[k],k)&&j.push(a[k]);return j},map:function(a,c,g){for(var j=[],k,s=0,t=a.length;s<t;s++){k=c(a[s],s,g);if(k!=null)j[j.length]=k}return j.concat.apply([],j)},guid:1,proxy:function(a,c,g){if(arguments.length===2)if(typeof c==="string"){g=a;a=g[c];c=b}else if(c&&!d.isFunction(c)){g=c;c=b}if(!c&&a)c=function(){return a.apply(g||this,arguments)};if(a)c.guid=a.guid=a.guid||c.guid||d.guid++;return c},
uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});Ca=d.uaMatch(Ca);if(Ca.browser){d.browser[Ca.browser]=true;d.browser.version=Ca.version}if(d.browser.webkit)d.browser.safari=true;if(sa)d.inArray=function(a,c){return sa.call(c,a)};va=d(H);if(H.addEventListener)q=function(){H.removeEventListener("DOMContentLoaded",
q,false);d.ready()};else if(H.attachEvent)q=function(){if(H.readyState==="complete"){H.detachEvent("onreadystatechange",q);d.ready()}};(function(){d.support={};var a=H.documentElement,c=H.createElement("script"),g=H.createElement("div"),j="script"+m();g.style.display="none";g.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var k=g.getElementsByTagName("*"),s=g.getElementsByTagName("a")[0];if(!(!k||!k.length||!s)){d.support=
{leadingWhitespace:g.firstChild.nodeType===3,tbody:!g.getElementsByTagName("tbody").length,htmlSerialize:!!g.getElementsByTagName("link").length,style:/red/.test(s.getAttribute("style")),hrefNormalized:s.getAttribute("href")==="/a",opacity:/^0.55$/.test(s.style.opacity),cssFloat:!!s.style.cssFloat,checkOn:g.getElementsByTagName("input")[0].value==="on",optSelected:H.createElement("select").appendChild(H.createElement("option")).selected,parentNode:g.removeChild(g.appendChild(H.createElement("div"))).parentNode===
null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};c.type="text/javascript";try{c.appendChild(H.createTextNode("window."+j+"=1;"))}catch(t){}a.insertBefore(c,a.firstChild);if(f[j]){d.support.scriptEval=true;delete f[j]}try{delete c.test}catch(A){d.support.deleteExpando=false}a.removeChild(c);if(g.attachEvent&&g.fireEvent){g.attachEvent("onclick",function x(){d.support.noCloneEvent=false;g.detachEvent("onclick",x)});g.cloneNode(true).fireEvent("onclick")}g=H.createElement("div");
g.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=H.createDocumentFragment();a.appendChild(g.firstChild);d.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;d(function(){var x=H.createElement("div");x.style.width=x.style.paddingLeft="1px";H.body.appendChild(x);d.boxModel=d.support.boxModel=x.offsetWidth===2;H.body.removeChild(x).style.display="none"});a=function(x){var B=H.createElement("div");x="on"+x;var L=x in B;if(!L){B.setAttribute(x,"return;");L=typeof B[x]===
"function"}return L};d.support.submitBubbles=a("submit");d.support.changeBubbles=a("change");a=c=g=k=s=null}})();d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var xa="jQuery"+m(),ra=0,Pa={};d.extend({cache:{},expando:xa,noData:{embed:true,object:true,applet:true},data:function(a,c,g){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=
a==f?Pa:a;var j=a[xa],k=d.cache;if(!j&&typeof c==="string"&&g===b)return null;j||(j=++ra);if(typeof c==="object"){a[xa]=j;k[j]=d.extend(true,{},c)}else if(!k[j]){a[xa]=j;k[j]={}}a=k[j];if(g!==b)a[c]=g;return typeof c==="string"?a[c]:a}},removeData:function(a,c){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==f?Pa:a;var g=a[xa],j=d.cache,k=j[g];if(c){if(k){delete k[c];d.isEmptyObject(k)&&d.removeData(a)}}else{if(d.support.deleteExpando)delete a[d.expando];else a.removeAttribute&&a.removeAttribute(d.expando);
delete j[g]}}}});d.fn.extend({data:function(a,c){if(typeof a==="undefined"&&this.length)return d.data(this[0]);else if(typeof a==="object")return this.each(function(){d.data(this,a)});var g=a.split(".");g[1]=g[1]?"."+g[1]:"";if(c===b){var j=this.triggerHandler("getData"+g[1]+"!",[g[0]]);if(j===b&&this.length)j=d.data(this[0],a);return j===b&&g[1]?this.data(g[0]):j}else return this.trigger("setData"+g[1]+"!",[g[0],c]).each(function(){d.data(this,a,c)})},removeData:function(a){return this.each(function(){d.removeData(this,
a)})}});d.extend({queue:function(a,c,g){if(a){c=(c||"fx")+"queue";var j=d.data(a,c);if(!g)return j||[];if(!j||d.isArray(g))j=d.data(a,c,d.makeArray(g));else j.push(g);return j}},dequeue:function(a,c){c=c||"fx";var g=d.queue(a,c),j=g.shift();if(j==="inprogress")j=g.shift();if(j){c==="fx"&&g.unshift("inprogress");j.call(a,function(){d.dequeue(a,c)})}}});d.fn.extend({queue:function(a,c){if(typeof a!=="string"){c=a;a="fx"}if(c===b)return d.queue(this[0],a);return this.each(function(){var g=d.queue(this,
a,c);a==="fx"&&g[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,c){a=d.fx?d.fx.speeds[a]||a:a;c=c||"fx";return this.queue(c,function(){var g=this;setTimeout(function(){d.dequeue(g,c)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Ma=/[\n\t]/g,Na=/\s+/,Ja=/\r/g,M=/href|src|style/,P=/(button|input)/i,aa=/(button|input|object|select|textarea)/i,ba=/^(a|area)$/i,ia=/radio|checkbox/;d.fn.extend({attr:function(a,
c){return i(this,a,c,true,d.attr)},removeAttr:function(a){return this.each(function(){d.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(B){var L=d(this);L.addClass(a.call(this,B,L.attr("class")))});if(a&&typeof a==="string")for(var c=(a||"").split(Na),g=0,j=this.length;g<j;g++){var k=this[g];if(k.nodeType===1)if(k.className){for(var s=" "+k.className+" ",t=k.className,A=0,x=c.length;A<x;A++)if(s.indexOf(" "+c[A]+" ")<
0)t+=" "+c[A];k.className=d.trim(t)}else k.className=a}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(x){var B=d(this);B.removeClass(a.call(this,x,B.attr("class")))});if(a&&typeof a==="string"||a===b)for(var c=(a||"").split(Na),g=0,j=this.length;g<j;g++){var k=this[g];if(k.nodeType===1&&k.className)if(a){for(var s=(" "+k.className+" ").replace(Ma," "),t=0,A=c.length;t<A;t++)s=s.replace(" "+c[t]+" "," ");k.className=d.trim(s)}else k.className=""}return this},toggleClass:function(a,
c){var g=typeof a,j=typeof c==="boolean";if(d.isFunction(a))return this.each(function(k){var s=d(this);s.toggleClass(a.call(this,k,s.attr("class"),c),c)});return this.each(function(){if(g==="string")for(var k,s=0,t=d(this),A=c,x=a.split(Na);k=x[s++];){A=j?A:!t.hasClass(k);t[A?"addClass":"removeClass"](k)}else if(g==="undefined"||g==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=this.className||a===false?"":d.data(this,"__className__")||""}})},hasClass:function(a){for(var c=
0,g=this.length;c<g;c++)if((" "+this[c].className+" ").replace(Ma," ").indexOf(" "+a+" ")>-1)return true;return false},val:function(a){if(a===b){var c=this[0];if(c){if(d.nodeName(c,"option"))return(c.attributes.value||{}).specified?c.value:c.text;if(d.nodeName(c,"select")){var g=c.selectedIndex,j=[],k=c.options;c=c.type==="select-one";if(g<0)return null;var s=c?g:0;for(g=c?g+1:k.length;s<g;s++){var t=k[s];if(t.selected){a=d(t).val();if(c)return a;j.push(a)}}return j}if(ia.test(c.type)&&!d.support.checkOn)return c.getAttribute("value")===
null?"on":c.value;return(c.value||"").replace(Ja,"")}return b}var A=d.isFunction(a);return this.each(function(x){var B=d(this),L=a;if(this.nodeType===1){if(A)L=a.call(this,x,B.val());if(typeof L==="number")L+="";if(d.isArray(L)&&ia.test(this.type))this.checked=d.inArray(B.val(),L)>=0;else if(d.nodeName(this,"select")){var da=d.makeArray(L);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),da)>=0});if(!da.length)this.selectedIndex=-1}else this.value=L}})}});d.extend({attrFn:{val:true,
css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,c,g,j){if(!a||a.nodeType===3||a.nodeType===8)return b;if(j&&c in d.attrFn)return d(a)[c](g);j=a.nodeType!==1||!d.isXMLDoc(a);var k=g!==b;c=j&&d.props[c]||c;if(a.nodeType===1){var s=M.test(c);if(c in a&&j&&!s){if(k){c==="type"&&P.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed");a[c]=g}if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex")return(c=
a.getAttributeNode("tabIndex"))&&c.specified?c.value:aa.test(a.nodeName)||ba.test(a.nodeName)&&a.href?0:b;return a[c]}if(!d.support.style&&j&&c==="style"){if(k)a.style.cssText=""+g;return a.style.cssText}k&&a.setAttribute(c,""+g);a=!d.support.hrefNormalized&&j&&s?a.getAttribute(c,2):a.getAttribute(c);return a===null?b:a}return d.style(a,c,g)}});var ea=/\.(.*)$/,na=function(a){return a.replace(/[^\w\s\.\|`]/g,function(c){return"\\"+c})};d.event={add:function(a,c,g,j){if(!(a.nodeType===3||a.nodeType===
8)){if(a.setInterval&&a!==f&&!a.frameElement)a=f;var k,s;if(g.handler){k=g;g=k.handler}if(!g.guid)g.guid=d.guid++;if(s=d.data(a)){var t=s.events=s.events||{},A=s.handle;if(!A)s.handle=A=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(A.elem,arguments):b};A.elem=a;c=c.split(" ");for(var x,B=0,L;x=c[B++];){s=k?d.extend({},k):{handler:g,data:j};if(x.indexOf(".")>-1){L=x.split(".");x=L.shift();s.namespace=L.slice(0).sort().join(".")}else{L=[];s.namespace=""}s.type=x;
s.guid=g.guid;var da=t[x],ka=d.event.special[x]||{};if(!da){da=t[x]=[];if(!ka.setup||ka.setup.call(a,j,L,A)===false)if(a.addEventListener)a.addEventListener(x,A,false);else a.attachEvent&&a.attachEvent("on"+x,A)}if(ka.add){ka.add.call(a,s);if(!s.handler.guid)s.handler.guid=g.guid}da.push(s);d.event.global[x]=true}a=null}}},global:{},remove:function(a,c,g,j){if(!(a.nodeType===3||a.nodeType===8)){var k,s=0,t,A,x,B,L,da,ka=d.data(a),ta=ka&&ka.events;if(ka&&ta){if(c&&c.type){g=c.handler;c=c.type}if(!c||
typeof c==="string"&&c.charAt(0)===".")for(k in ta)d.event.remove(a,k+(c||""));else{for(c=c.split(" ");k=c[s++];){B=k;t=k.indexOf(".")<0;A=[];if(!t){A=k.split(".");k=A.shift();x=new RegExp("(^|\\.)"+d.map(A.slice(0).sort(),na).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(L=ta[k])if(g){B=d.event.special[k]||{};for(oa=j||0;oa<L.length;oa++){da=L[oa];if(g.guid===da.guid){if(t||x.test(da.namespace)){j==null&&L.splice(oa--,1);B.remove&&B.remove.call(a,da)}if(j!=null)break}}if(L.length===0||j!=null&&L.length===
1){if(!B.teardown||B.teardown.call(a,A)===false)fa(a,k,ka.handle);delete ta[k]}}else for(var oa=0;oa<L.length;oa++){da=L[oa];if(t||x.test(da.namespace)){d.event.remove(a,B,da.handler,oa);L.splice(oa--,1)}}}if(d.isEmptyObject(ta)){if(c=ka.handle)c.elem=null;delete ka.events;delete ka.handle;d.isEmptyObject(ka)&&d.removeData(a)}}}}},trigger:function(a,c,g,j){var k=a.type||a;if(!j){a=typeof a==="object"?a[xa]?a:d.extend(d.Event(k),a):d.Event(k);if(k.indexOf("!")>=0){a.type=k=k.slice(0,-1);a.exclusive=
true}if(!g){a.stopPropagation();d.event.global[k]&&d.each(d.cache,function(){this.events&&this.events[k]&&d.event.trigger(a,c,this.handle.elem)})}if(!g||g.nodeType===3||g.nodeType===8)return b;a.result=b;a.target=g;c=d.makeArray(c);c.unshift(a)}a.currentTarget=g;(j=d.data(g,"handle"))&&j.apply(g,c);j=g.parentNode||g.ownerDocument;try{if(!(g&&g.nodeName&&d.noData[g.nodeName.toLowerCase()]))if(g["on"+k]&&g["on"+k].apply(g,c)===false)a.result=false}catch(s){}if(!a.isPropagationStopped()&&j)d.event.trigger(a,
c,j,true);else if(!a.isDefaultPrevented()){j=a.target;var t,A=d.nodeName(j,"a")&&k==="click",x=d.event.special[k]||{};if((!x._default||x._default.call(g,a)===false)&&!A&&!(j&&j.nodeName&&d.noData[j.nodeName.toLowerCase()])){try{if(j[k]){if(t=j["on"+k])j["on"+k]=null;d.event.triggered=true;j[k]()}}catch(B){}if(t)j["on"+k]=t;d.event.triggered=false}}},handle:function(a){var c,g,j,k;a=arguments[0]=d.event.fix(a||f.event);a.currentTarget=this;c=a.type.indexOf(".")<0&&!a.exclusive;if(!c){g=a.type.split(".");
a.type=g.shift();j=new RegExp("(^|\\.)"+g.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}k=d.data(this,"events");g=k[a.type];if(k&&g){g=g.slice(0);k=0;for(var s=g.length;k<s;k++){var t=g[k];if(c||j.test(t.namespace)){a.handler=t.handler;a.data=t.data;a.handleObj=t;t=t.handler.apply(this,arguments);if(t!==b){a.result=t;if(t===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[xa])return a;var c=a;a=d.Event(c);for(var g=this.props.length,j;g;){j=this.props[--g];a[j]=c[j]}if(!a.target)a.target=a.srcElement||H;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){c=H.documentElement;g=H.body;a.pageX=a.clientX+(c&&c.scrollLeft||g&&g.scrollLeft||0)-(c&&c.clientLeft||g&&g.clientLeft||0);a.pageY=a.clientY+(c&&c.scrollTop||
g&&g.scrollTop||0)-(c&&c.clientTop||g&&g.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==b)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,a.origType,d.extend({},a,{handler:p}))},remove:function(a){var c=true,g=a.origType.replace(ea,"");d.each(d.data(this,
"events").live||[],function(){if(g===this.origType.replace(ea,""))return c=false});c&&d.event.remove(this,a.origType,p)}},beforeunload:{setup:function(a,c,g){if(this.setInterval)this.onbeforeunload=g;return false},teardown:function(a,c){if(this.onbeforeunload===c)this.onbeforeunload=null}}}};var fa=H.removeEventListener?function(a,c,g){a.removeEventListener(c,g,false)}:function(a,c,g){a.detachEvent("on"+c,g)};d.Event=function(a){if(!this.preventDefault)return new d.Event(a);if(a&&a.type){this.originalEvent=
a;this.type=a.type}else this.type=a;this.timeStamp=m();this[xa]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=n;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=n;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=n;this.stopPropagation()},isDefaultPrevented:r,isPropagationStopped:r,
isImmediatePropagationStopped:r};var la=function(a){var c=a.relatedTarget;try{for(;c&&c!==this;)c=c.parentNode;if(c!==this){a.type=a.data;d.event.handle.apply(this,arguments)}}catch(g){}},ca=function(a){a.type=a.data;d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,c){d.event.special[a]={setup:function(g){d.event.add(this,c,g&&g.selector?ca:la,a)},teardown:function(g){d.event.remove(this,c,g&&g.selector?ca:la)}}});if(!d.support.submitBubbles)d.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){d.event.add(this,"click.specialSubmit",function(a){var c=a.target,g=c.type;if((g==="submit"||g==="image")&&d(c).closest("form").length)return l("submit",this,arguments)});d.event.add(this,"keypress.specialSubmit",function(a){var c=a.target,g=c.type;if((g==="text"||g==="password")&&d(c).closest("form").length&&a.keyCode===13)return l("submit",this,arguments)})}else return false},teardown:function(){d.event.remove(this,".specialSubmit")}};if(!d.support.changeBubbles){var ma=
/textarea|input|select/i,ga,R=function(a){var c=a.type,g=a.value;if(c==="radio"||c==="checkbox")g=a.checked;else if(c==="select-multiple")g=a.selectedIndex>-1?d.map(a.options,function(j){return j.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")g=a.selectedIndex;return g},T=function(a,c){var g=a.target,j,k;if(!(!ma.test(g.nodeName)||g.readOnly)){j=d.data(g,"_change_data");k=R(g);if(a.type!=="focusout"||g.type!=="radio")d.data(g,"_change_data",k);if(!(j===b||k===j))if(j!=null||k){a.type=
"change";return d.event.trigger(a,c,g)}}};d.event.special.change={filters:{focusout:T,click:function(a){var c=a.target,g=c.type;if(g==="radio"||g==="checkbox"||c.nodeName.toLowerCase()==="select")return T.call(this,a)},keydown:function(a){var c=a.target,g=c.type;if(a.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(g==="checkbox"||g==="radio")||g==="select-multiple")return T.call(this,a)},beforeactivate:function(a){a=a.target;d.data(a,"_change_data",R(a))}},setup:function(){if(this.type===
"file")return false;for(var a in ga)d.event.add(this,a+".specialChange",ga[a]);return ma.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return ma.test(this.nodeName)}};ga=d.event.special.change.filters}H.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,c){function g(j){j=d.event.fix(j);j.type=c;return d.event.handle.call(this,j)}d.event.special[c]={setup:function(){this.addEventListener(a,g,true)},teardown:function(){this.removeEventListener(a,
g,true)}}});d.each(["bind","one"],function(a,c){d.fn[c]=function(g,j,k){if(typeof g==="object"){for(var s in g)this[c](s,j,g[s],k);return this}if(d.isFunction(j)){k=j;j=b}var t=c==="one"?d.proxy(k,function(x){d(this).unbind(x,t);return k.apply(this,arguments)}):k;if(g==="unload"&&c!=="one")this.one(g,j,k);else{s=0;for(var A=this.length;s<A;s++)d.event.add(this[s],g,t,j)}return this}});d.fn.extend({unbind:function(a,c){if(typeof a==="object"&&!a.preventDefault)for(var g in a)this.unbind(g,a[g]);else{g=
0;for(var j=this.length;g<j;g++)d.event.remove(this[g],a,c)}return this},delegate:function(a,c,g,j){return this.live(c,g,j,a)},undelegate:function(a,c,g){return arguments.length===0?this.unbind("live"):this.die(c,null,g,a)},trigger:function(a,c){return this.each(function(){d.event.trigger(a,c,this)})},triggerHandler:function(a,c){if(this[0]){var g=d.Event(a);g.preventDefault();g.stopPropagation();d.event.trigger(g,c,this[0]);return g.result}},toggle:function(a){for(var c=arguments,g=1;g<c.length;)d.proxy(a,
c[g++]);return this.click(d.proxy(a,function(j){var k=(d.data(this,"lastToggle"+a.guid)||0)%g;d.data(this,"lastToggle"+a.guid,k+1);j.preventDefault();return c[k].apply(this,arguments)||false}))},hover:function(a,c){return this.mouseenter(a).mouseleave(c||a)}});var Q={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(a,c){d.fn[c]=function(g,j,k,s){var t,A=0,x,B,L=s||this.selector,da=s?this:d(this.context);if(d.isFunction(j)){k=j;j=b}for(g=
(g||"").split(" ");(t=g[A++])!=null;){s=ea.exec(t);x="";if(s){x=s[0];t=t.replace(ea,"")}if(t==="hover")g.push("mouseenter"+x,"mouseleave"+x);else{B=t;if(t==="focus"||t==="blur"){g.push(Q[t]+x);t+=x}else t=(Q[t]||t)+x;c==="live"?da.each(function(){d.event.add(this,v(t,L),{data:j,selector:L,handler:k,origType:t,origHandler:k,preType:B})}):da.unbind(v(t,L),k)}}return this}});d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
function(a,c){d.fn[c]=function(g){return g?this.bind(c,g):this.trigger(c)};if(d.attrFn)d.attrFn[c]=true});f.attachEvent&&!f.addEventListener&&f.attachEvent("onunload",function(){for(var a in d.cache)if(d.cache[a].handle)try{d.event.remove(d.cache[a].handle.elem)}catch(c){}});(function(){function a(o){for(var u="",y,z=0;o[z];z++){y=o[z];if(y.nodeType===3||y.nodeType===4)u+=y.nodeValue;else if(y.nodeType!==8)u+=a(y.childNodes)}return u}function c(o,u,y,z,E,D){E=0;for(var Y=z.length;E<Y;E++){var V=z[E];
if(V){V=V[o];for(var ha=false;V;){if(V.sizcache===y){ha=z[V.sizset];break}if(V.nodeType===1&&!D){V.sizcache=y;V.sizset=E}if(V.nodeName.toLowerCase()===u){ha=V;break}V=V[o]}z[E]=ha}}}function g(o,u,y,z,E,D){E=0;for(var Y=z.length;E<Y;E++){var V=z[E];if(V){V=V[o];for(var ha=false;V;){if(V.sizcache===y){ha=z[V.sizset];break}if(V.nodeType===1){if(!D){V.sizcache=y;V.sizset=E}if(typeof u!=="string"){if(V===u){ha=true;break}}else if(x.filter(u,[V]).length>0){ha=V;break}}V=V[o]}z[E]=ha}}}var j=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
k=0,s=Object.prototype.toString,t=false,A=true;[0,0].sort(function(){A=false;return 0});var x=function(o,u,y,z){y=y||[];var E=u=u||H;if(u.nodeType!==1&&u.nodeType!==9)return[];if(!o||typeof o!=="string")return y;for(var D=[],Y,V,ha,Oa,Ga=true,Ka=$(u),Ha=o;(j.exec(""),Y=j.exec(Ha))!==null;){Ha=Y[3];D.push(Y[1]);if(Y[2]){Oa=Y[3];break}}if(D.length>1&&L.exec(o))if(D.length===2&&B.relative[D[0]])V=Sa(D[0]+D[1],u);else for(V=B.relative[D[0]]?[u]:x(D.shift(),u);D.length;){o=D.shift();if(B.relative[o])o+=
D.shift();V=Sa(o,V)}else{if(!z&&D.length>1&&u.nodeType===9&&!Ka&&B.match.ID.test(D[0])&&!B.match.ID.test(D[D.length-1])){Y=x.find(D.shift(),u,Ka);u=Y.expr?x.filter(Y.expr,Y.set)[0]:Y.set[0]}if(u){Y=z?{expr:D.pop(),set:ka(z)}:x.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&u.parentNode?u.parentNode:u,Ka);V=Y.expr?x.filter(Y.expr,Y.set):Y.set;if(D.length>0)ha=ka(V);else Ga=false;for(;D.length;){var Aa=D.pop();Y=Aa;if(B.relative[Aa])Y=D.pop();else Aa="";if(Y==null)Y=u;B.relative[Aa](ha,Y,Ka)}}else ha=
[]}ha||(ha=V);ha||x.error(Aa||o);if(s.call(ha)==="[object Array]")if(Ga)if(u&&u.nodeType===1)for(o=0;ha[o]!=null;o++){if(ha[o]&&(ha[o]===true||ha[o].nodeType===1&&za(u,ha[o])))y.push(V[o])}else for(o=0;ha[o]!=null;o++)ha[o]&&ha[o].nodeType===1&&y.push(V[o]);else y.push.apply(y,ha);else ka(ha,y);if(Oa){x(Oa,E,y,z);x.uniqueSort(y)}return y};x.uniqueSort=function(o){if(oa){t=A;o.sort(oa);if(t)for(var u=1;u<o.length;u++)o[u]===o[u-1]&&o.splice(u--,1)}return o};x.matches=function(o,u){return x(o,null,
null,u)};x.find=function(o,u,y){var z,E;if(!o)return[];for(var D=0,Y=B.order.length;D<Y;D++){var V=B.order[D];if(E=B.leftMatch[V].exec(o)){var ha=E[1];E.splice(1,1);if(ha.substr(ha.length-1)!=="\\"){E[1]=(E[1]||"").replace(/\\/g,"");z=B.find[V](E,u,y);if(z!=null){o=o.replace(B.match[V],"");break}}}}z||(z=u.getElementsByTagName("*"));return{set:z,expr:o}};x.filter=function(o,u,y,z){for(var E=o,D=[],Y=u,V,ha,Oa=u&&u[0]&&$(u[0]);o&&u.length;){for(var Ga in B.filter)if((V=B.leftMatch[Ga].exec(o))!=null&&
V[2]){var Ka=B.filter[Ga],Ha,Aa;Aa=V[1];ha=false;V.splice(1,1);if(Aa.substr(Aa.length-1)!=="\\"){if(Y===D)D=[];if(B.preFilter[Ga])if(V=B.preFilter[Ga](V,Y,y,D,z,Oa)){if(V===true)continue}else ha=Ha=true;if(V)for(var Qa=0;(Aa=Y[Qa])!=null;Qa++)if(Aa){Ha=Ka(Aa,V,Qa,Y);var ab=z^!!Ha;if(y&&Ha!=null)if(ab)ha=true;else Y[Qa]=false;else if(ab){D.push(Aa);ha=true}}if(Ha!==b){y||(Y=D);o=o.replace(B.match[Ga],"");if(!ha)return[];break}}}if(o===E)if(ha==null)x.error(o);else break;E=o}return Y};x.error=function(o){throw"Syntax error, unrecognized expression: "+
o;};var B=x.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},
leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(o){return o.getAttribute("href")}},relative:{"+":function(o,u){var y=typeof u==="string",z=y&&!/\W/.test(u);y=y&&!z;if(z)u=u.toLowerCase();z=0;for(var E=o.length,D;z<E;z++)if(D=o[z]){for(;(D=D.previousSibling)&&D.nodeType!==1;);o[z]=y||D&&D.nodeName.toLowerCase()===u?D||false:D===u}y&&x.filter(u,o,true)},">":function(o,u){var y=typeof u==="string";if(y&&!/\W/.test(u)){u=u.toLowerCase();for(var z=0,E=o.length;z<E;z++){var D=
o[z];if(D){y=D.parentNode;o[z]=y.nodeName.toLowerCase()===u?y:false}}}else{z=0;for(E=o.length;z<E;z++)if(D=o[z])o[z]=y?D.parentNode:D.parentNode===u;y&&x.filter(u,o,true)}},"":function(o,u,y){var z=k++,E=g;if(typeof u==="string"&&!/\W/.test(u)){var D=u=u.toLowerCase();E=c}E("parentNode",u,z,o,D,y)},"~":function(o,u,y){var z=k++,E=g;if(typeof u==="string"&&!/\W/.test(u)){var D=u=u.toLowerCase();E=c}E("previousSibling",u,z,o,D,y)}},find:{ID:function(o,u,y){if(typeof u.getElementById!=="undefined"&&
!y)return(o=u.getElementById(o[1]))?[o]:[]},NAME:function(o,u){if(typeof u.getElementsByName!=="undefined"){for(var y=[],z=u.getElementsByName(o[1]),E=0,D=z.length;E<D;E++)z[E].getAttribute("name")===o[1]&&y.push(z[E]);return y.length===0?null:y}},TAG:function(o,u){return u.getElementsByTagName(o[1])}},preFilter:{CLASS:function(o,u,y,z,E,D){o=" "+o[1].replace(/\\/g,"")+" ";if(D)return o;D=0;for(var Y;(Y=u[D])!=null;D++)if(Y)if(E^(Y.className&&(" "+Y.className+" ").replace(/[\t\n]/g," ").indexOf(o)>=
0))y||z.push(Y);else if(y)u[D]=false;return false},ID:function(o){return o[1].replace(/\\/g,"")},TAG:function(o){return o[1].toLowerCase()},CHILD:function(o){if(o[1]==="nth"){var u=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(o[2]==="even"&&"2n"||o[2]==="odd"&&"2n+1"||!/\D/.test(o[2])&&"0n+"+o[2]||o[2]);o[2]=u[1]+(u[2]||1)-0;o[3]=u[3]-0}o[0]=k++;return o},ATTR:function(o,u,y,z,E,D){u=o[1].replace(/\\/g,"");if(!D&&B.attrMap[u])o[1]=B.attrMap[u];if(o[2]==="~=")o[4]=" "+o[4]+" ";return o},PSEUDO:function(o,u,y,z,
E){if(o[1]==="not")if((j.exec(o[3])||"").length>1||/^\w/.test(o[3]))o[3]=x(o[3],null,null,u);else{o=x.filter(o[3],u,y,true^E);y||z.push.apply(z,o);return false}else if(B.match.POS.test(o[0])||B.match.CHILD.test(o[0]))return true;return o},POS:function(o){o.unshift(true);return o}},filters:{enabled:function(o){return o.disabled===false&&o.type!=="hidden"},disabled:function(o){return o.disabled===true},checked:function(o){return o.checked===true},selected:function(o){return o.selected===true},parent:function(o){return!!o.firstChild},
empty:function(o){return!o.firstChild},has:function(o,u,y){return!!x(y[3],o).length},header:function(o){return/h\d/i.test(o.nodeName)},text:function(o){return"text"===o.type},radio:function(o){return"radio"===o.type},checkbox:function(o){return"checkbox"===o.type},file:function(o){return"file"===o.type},password:function(o){return"password"===o.type},submit:function(o){return"submit"===o.type},image:function(o){return"image"===o.type},reset:function(o){return"reset"===o.type},button:function(o){return"button"===
o.type||o.nodeName.toLowerCase()==="button"},input:function(o){return/input|select|textarea|button/i.test(o.nodeName)}},setFilters:{first:function(o,u){return u===0},last:function(o,u,y,z){return u===z.length-1},even:function(o,u){return u%2===0},odd:function(o,u){return u%2===1},lt:function(o,u,y){return u<y[3]-0},gt:function(o,u,y){return u>y[3]-0},nth:function(o,u,y){return y[3]-0===u},eq:function(o,u,y){return y[3]-0===u}},filter:{PSEUDO:function(o,u,y,z){var E=u[1],D=B.filters[E];if(D)return D(o,
y,u,z);else if(E==="contains")return(o.textContent||o.innerText||a([o])||"").indexOf(u[3])>=0;else if(E==="not"){u=u[3];y=0;for(z=u.length;y<z;y++)if(u[y]===o)return false;return true}else x.error("Syntax error, unrecognized expression: "+E)},CHILD:function(o,u){var y=u[1],z=o;switch(y){case "only":case "first":for(;z=z.previousSibling;)if(z.nodeType===1)return false;if(y==="first")return true;z=o;case "last":for(;z=z.nextSibling;)if(z.nodeType===1)return false;return true;case "nth":y=u[2];var E=
u[3];if(y===1&&E===0)return true;var D=u[0],Y=o.parentNode;if(Y&&(Y.sizcache!==D||!o.nodeIndex)){var V=0;for(z=Y.firstChild;z;z=z.nextSibling)if(z.nodeType===1)z.nodeIndex=++V;Y.sizcache=D}z=o.nodeIndex-E;return y===0?z===0:z%y===0&&z/y>=0}},ID:function(o,u){return o.nodeType===1&&o.getAttribute("id")===u},TAG:function(o,u){return u==="*"&&o.nodeType===1||o.nodeName.toLowerCase()===u},CLASS:function(o,u){return(" "+(o.className||o.getAttribute("class"))+" ").indexOf(u)>-1},ATTR:function(o,u){var y=
u[1];y=B.attrHandle[y]?B.attrHandle[y](o):o[y]!=null?o[y]:o.getAttribute(y);var z=y+"",E=u[2],D=u[4];return y==null?E==="!=":E==="="?z===D:E==="*="?z.indexOf(D)>=0:E==="~="?(" "+z+" ").indexOf(D)>=0:!D?z&&y!==false:E==="!="?z!==D:E==="^="?z.indexOf(D)===0:E==="$="?z.substr(z.length-D.length)===D:E==="|="?z===D||z.substr(0,D.length+1)===D+"-":false},POS:function(o,u,y,z){var E=B.setFilters[u[2]];if(E)return E(o,y,u,z)}}},L=B.match.POS;for(var da in B.match){B.match[da]=new RegExp(B.match[da].source+
/(?![^\[]*\])(?![^\(]*\))/.source);B.leftMatch[da]=new RegExp(/(^(?:.|\r|\n)*?)/.source+B.match[da].source.replace(/\\(\d+)/g,function(o,u){return"\\"+(u-0+1)}))}var ka=function(o,u){o=Array.prototype.slice.call(o,0);if(u){u.push.apply(u,o);return u}return o};try{Array.prototype.slice.call(H.documentElement.childNodes,0)}catch(ta){ka=function(o,u){var y=u||[];if(s.call(o)==="[object Array]")Array.prototype.push.apply(y,o);else if(typeof o.length==="number")for(var z=0,E=o.length;z<E;z++)y.push(o[z]);
else for(z=0;o[z];z++)y.push(o[z]);return y}}var oa;if(H.documentElement.compareDocumentPosition)oa=function(o,u){if(!o.compareDocumentPosition||!u.compareDocumentPosition){if(o==u)t=true;return o.compareDocumentPosition?-1:1}var y=o.compareDocumentPosition(u)&4?-1:o===u?0:1;if(y===0)t=true;return y};else if("sourceIndex"in H.documentElement)oa=function(o,u){if(!o.sourceIndex||!u.sourceIndex){if(o==u)t=true;return o.sourceIndex?-1:1}var y=o.sourceIndex-u.sourceIndex;if(y===0)t=true;return y};else if(H.createRange)oa=
function(o,u){if(!o.ownerDocument||!u.ownerDocument){if(o==u)t=true;return o.ownerDocument?-1:1}var y=o.ownerDocument.createRange(),z=u.ownerDocument.createRange();y.setStart(o,0);y.setEnd(o,0);z.setStart(u,0);z.setEnd(u,0);y=y.compareBoundaryPoints(Range.START_TO_END,z);if(y===0)t=true;return y};(function(){var o=H.createElement("div"),u="script"+(new Date).getTime();o.innerHTML="<a name='"+u+"'/>";var y=H.documentElement;y.insertBefore(o,y.firstChild);if(H.getElementById(u)){B.find.ID=function(z,
E,D){if(typeof E.getElementById!=="undefined"&&!D)return(E=E.getElementById(z[1]))?E.id===z[1]||typeof E.getAttributeNode!=="undefined"&&E.getAttributeNode("id").nodeValue===z[1]?[E]:b:[]};B.filter.ID=function(z,E){var D=typeof z.getAttributeNode!=="undefined"&&z.getAttributeNode("id");return z.nodeType===1&&D&&D.nodeValue===E}}y.removeChild(o);y=o=null})();(function(){var o=H.createElement("div");o.appendChild(H.createComment(""));if(o.getElementsByTagName("*").length>0)B.find.TAG=function(u,y){var z=
y.getElementsByTagName(u[1]);if(u[1]==="*"){for(var E=[],D=0;z[D];D++)z[D].nodeType===1&&E.push(z[D]);z=E}return z};o.innerHTML="<a href='#'></a>";if(o.firstChild&&typeof o.firstChild.getAttribute!=="undefined"&&o.firstChild.getAttribute("href")!=="#")B.attrHandle.href=function(u){return u.getAttribute("href",2)};o=null})();H.querySelectorAll&&function(){var o=x,u=H.createElement("div");u.innerHTML="<p class='TEST'></p>";if(!(u.querySelectorAll&&u.querySelectorAll(".TEST").length===0)){x=function(z,
E,D,Y){E=E||H;if(!Y&&E.nodeType===9&&!$(E))try{return ka(E.querySelectorAll(z),D)}catch(V){}return o(z,E,D,Y)};for(var y in o)x[y]=o[y];u=null}}();(function(){var o=H.createElement("div");o.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!o.getElementsByClassName||o.getElementsByClassName("e").length===0)){o.lastChild.className="e";if(o.getElementsByClassName("e").length!==1){B.order.splice(1,0,"CLASS");B.find.CLASS=function(u,y,z){if(typeof y.getElementsByClassName!=="undefined"&&
!z)return y.getElementsByClassName(u[1])};o=null}}})();var za=H.compareDocumentPosition?function(o,u){return!!(o.compareDocumentPosition(u)&16)}:function(o,u){return o!==u&&(o.contains?o.contains(u):true)},$=function(o){return(o=(o?o.ownerDocument||o:0).documentElement)?o.nodeName!=="HTML":false},Sa=function(o,u){for(var y=[],z="",E,D=u.nodeType?[u]:u;E=B.match.PSEUDO.exec(o);){z+=E[0];o=o.replace(B.match.PSEUDO,"")}o=B.relative[o]?o+"*":o;E=0;for(var Y=D.length;E<Y;E++)x(o,D[E],y);return x.filter(z,
y)};d.find=x;d.expr=x.selectors;d.expr[":"]=d.expr.filters;d.unique=x.uniqueSort;d.text=a;d.isXMLDoc=$;d.contains=za})();var O=/Until$/,J=/^(?:parents|prevUntil|prevAll)/,U=/,/;X=Array.prototype.slice;var W=function(a,c,g){if(d.isFunction(c))return d.grep(a,function(k,s){return!!c.call(k,s,k)===g});else if(c.nodeType)return d.grep(a,function(k){return k===c===g});else if(typeof c==="string"){var j=d.grep(a,function(k){return k.nodeType===1});if(wa.test(c))return d.filter(c,j,!g);else c=d.filter(c,
j)}return d.grep(a,function(k){return d.inArray(k,c)>=0===g})};d.fn.extend({find:function(a){for(var c=this.pushStack("","find",a),g=0,j=0,k=this.length;j<k;j++){g=c.length;d.find(a,this[j],c);if(j>0)for(var s=g;s<c.length;s++)for(var t=0;t<g;t++)if(c[t]===c[s]){c.splice(s--,1);break}}return c},has:function(a){var c=d(a);return this.filter(function(){for(var g=0,j=c.length;g<j;g++)if(d.contains(this,c[g]))return true})},not:function(a){return this.pushStack(W(this,a,false),"not",a)},filter:function(a){return this.pushStack(W(this,
a,true),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>0},closest:function(a,c){if(d.isArray(a)){var g=[],j=this[0],k,s={},t;if(j&&a.length){k=0;for(var A=a.length;k<A;k++){t=a[k];s[t]||(s[t]=d.expr.match.POS.test(t)?d(t,c||this.context):t)}for(;j&&j.ownerDocument&&j!==c;){for(t in s){k=s[t];if(k.jquery?k.index(j)>-1:d(j).is(k)){g.push({selector:t,elem:j});delete s[t]}}j=j.parentNode}}return g}var x=d.expr.match.POS.test(a)?d(a,c||this.context):null;return this.map(function(B,L){for(;L&&
L.ownerDocument&&L!==c;){if(x?x.index(L)>-1:d(L).is(a))return L;L=L.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,c){var g=typeof a==="string"?d(a,c||this.context):d.makeArray(a),j=d.merge(this.get(),g);return this.pushStack(!g[0]||!g[0].parentNode||g[0].parentNode.nodeType===11||!j[0]||!j[0].parentNode||j[0].parentNode.nodeType===11?j:d.unique(j))},andSelf:function(){return this.add(this.prevObject)}});
d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,c,g){return d.dir(a,"parentNode",g)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,c,g){return d.dir(a,"nextSibling",g)},prevUntil:function(a,c,g){return d.dir(a,"previousSibling",
g)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,c){d.fn[a]=function(g,j){var k=d.map(this,c,g);O.test(a)||(j=g);if(j&&typeof j==="string")k=d.filter(j,k);k=this.length>1?d.unique(k):k;if((this.length>1||U.test(j))&&J.test(a))k=k.reverse();return this.pushStack(k,a,X.call(arguments).join(","))}});
d.extend({filter:function(a,c,g){if(g)a=":not("+a+")";return d.find.matches(a,c)},dir:function(a,c,g){var j=[];for(a=a[c];a&&a.nodeType!==9&&(g===b||a.nodeType!==1||!d(a).is(g));){a.nodeType===1&&j.push(a);a=a[c]}return j},nth:function(a,c,g){for(var j=0;a;a=a[g])if(a.nodeType===1&&++j===(c||1))break;return a},sibling:function(a,c){for(var g=[];a;a=a.nextSibling)a.nodeType===1&&a!==c&&g.push(a);return g}});var pa=/ jQuery\d+="(?:\d+|null)"/g,ya=/^\s+/,Ia=/(<([\w:]+)[^>]*?)\/>/g,gb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,
bb=/<([\w:]+)/,hb=/<tbody/i,ib=/<|&#?\w+;/,Ya=/<script|<object|<embed|<option|<style/i,Za=/checked\s*(?:[^=]|=\s*.checked.)/i,cb=function(a,c,g){return gb.test(g)?a:c+"></"+g+">"},Ba={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,
"",""]};Ba.optgroup=Ba.option;Ba.tbody=Ba.tfoot=Ba.colgroup=Ba.caption=Ba.thead;Ba.th=Ba.td;if(!d.support.htmlSerialize)Ba._default=[1,"div<div>","</div>"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(c){var g=d(this);g.text(a.call(this,c,g.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||H).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(g){d(this).wrapAll(a.call(this,
g))});if(this[0]){var c=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var g=this;g.firstChild&&g.firstChild.nodeType===1;)g=g.firstChild;return g}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(c){d(this).wrapInner(a.call(this,c))});return this.each(function(){var c=d(this),g=c.contents();g.length?g.wrapAll(a):c.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},
unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(c){this.parentNode.insertBefore(c,this)});else if(arguments.length){var a=
d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(c){this.parentNode.insertBefore(c,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,c){for(var g=0,j;(j=this[g])!=null;g++)if(!a||d.filter(a,[j]).length){if(!c&&j.nodeType===1){d.cleanData(j.getElementsByTagName("*"));
d.cleanData([j])}j.parentNode&&j.parentNode.removeChild(j)}return this},empty:function(){for(var a=0,c;(c=this[a])!=null;a++)for(c.nodeType===1&&d.cleanData(c.getElementsByTagName("*"));c.firstChild;)c.removeChild(c.firstChild);return this},clone:function(a){var c=this.map(function(){if(!d.support.noCloneEvent&&!d.isXMLDoc(this)){var g=this.outerHTML,j=this.ownerDocument;if(!g){g=j.createElement("div");g.appendChild(this.cloneNode(true));g=g.innerHTML}return d.clean([g.replace(pa,"").replace(/=([^="'>\s]+\/)>/g,
'="$1">').replace(ya,"")],j)[0]}else return this.cloneNode(true)});if(a===true){w(this,c);w(this.find("*"),c.find("*"))}return c},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(pa,""):null;else if(typeof a==="string"&&!Ya.test(a)&&(d.support.leadingWhitespace||!ya.test(a))&&!Ba[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ia,cb);try{for(var c=0,g=this.length;c<g;c++)if(this[c].nodeType===1){d.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=
a}}catch(j){this.empty().append(a)}}else d.isFunction(a)?this.each(function(k){var s=d(this),t=s.html();s.empty().append(function(){return a.call(this,k,t)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(c){var g=d(this),j=g.html();g.replaceWith(a.call(this,c,j))});if(typeof a!=="string")a=d(a).detach();return this.each(function(){var c=this.nextSibling,g=this.parentNode;d(this).remove();c?d(c).before(a):
d(g).append(a)})}else return this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,c,g){var j,k,s=a[0],t=[],A;if(!d.support.checkClone&&arguments.length===3&&typeof s==="string"&&Za.test(s))return this.each(function(){d(this).domManip(a,c,g,true)});if(d.isFunction(s))return this.each(function(B){var L=d(this);a[0]=s.call(this,B,c?L.html():b);L.domManip(a,c,g)});if(this[0]){j=s&&s.parentNode;j=d.support.parentNode&&j&&j.nodeType===
11&&j.childNodes.length===this.length?{fragment:j}:C(a,this,t);A=j.fragment;if(k=A.childNodes.length===1?(A=A.firstChild):A.firstChild){c=c&&d.nodeName(k,"tr");k=0;for(var x=this.length;k<x;k++)g.call(c?d.nodeName(this[k],"table")?this[k].getElementsByTagName("tbody")[0]||this[k].appendChild(this[k].ownerDocument.createElement("tbody")):this[k]:this[k],k>0||j.cacheable||this.length>1?A.cloneNode(true):A)}t.length&&d.each(t,h)}return this}});d.fragments={};d.each({appendTo:"append",prependTo:"prepend",
insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,c){d.fn[a]=function(g){var j=[];g=d(g);var k=this.length===1&&this[0].parentNode;if(k&&k.nodeType===11&&k.childNodes.length===1&&g.length===1){g[c](this[0]);return this}else{k=0;for(var s=g.length;k<s;k++){var t=(k>0?this.clone(true):this).get();d.fn[c].apply(d(g[k]),t);j=j.concat(t)}return this.pushStack(j,a,g.selector)}}});d.extend({clean:function(a,c,g,j){c=c||H;if(typeof c.createElement==="undefined")c=c.ownerDocument||
c[0]&&c[0].ownerDocument||H;for(var k=[],s=0,t;(t=a[s])!=null;s++){if(typeof t==="number")t+="";if(t){if(typeof t==="string"&&!ib.test(t))t=c.createTextNode(t);else if(typeof t==="string"){t=t.replace(Ia,cb);var A=(bb.exec(t)||["",""])[1].toLowerCase(),x=Ba[A]||Ba._default,B=x[0],L=c.createElement("div");for(L.innerHTML=x[1]+t+x[2];B--;)L=L.lastChild;if(!d.support.tbody){B=hb.test(t);A=A==="table"&&!B?L.firstChild&&L.firstChild.childNodes:x[1]==="<table>"&&!B?L.childNodes:[];for(x=A.length-1;x>=0;--x)d.nodeName(A[x],
"tbody")&&!A[x].childNodes.length&&A[x].parentNode.removeChild(A[x])}!d.support.leadingWhitespace&&ya.test(t)&&L.insertBefore(c.createTextNode(ya.exec(t)[0]),L.firstChild);t=L.childNodes}if(t.nodeType)k.push(t);else k=d.merge(k,t)}}if(g)for(s=0;k[s];s++)if(j&&d.nodeName(k[s],"script")&&(!k[s].type||k[s].type.toLowerCase()==="text/javascript"))j.push(k[s].parentNode?k[s].parentNode.removeChild(k[s]):k[s]);else{k[s].nodeType===1&&k.splice.apply(k,[s+1,0].concat(d.makeArray(k[s].getElementsByTagName("script"))));
g.appendChild(k[s])}return k},cleanData:function(a){for(var c,g,j=d.cache,k=d.event.special,s=d.support.deleteExpando,t=0,A;(A=a[t])!=null;t++)if(g=A[d.expando]){c=j[g];if(c.events)for(var x in c.events)k[x]?d.event.remove(A,x):fa(A,x,c.handle);if(s)delete A[d.expando];else A.removeAttribute&&A.removeAttribute(d.expando);delete j[g]}}});var jb=/z-?index|font-?weight|opacity|zoom|line-?height/i,db=/alpha\([^)]*\)/,eb=/opacity=([^)]*)/,Ta=/float/i,Ua=/-([a-z])/ig,kb=/([A-Z])/g,lb=/^-?\d+(?:px)?$/i,
mb=/^-?\d/,nb={position:"absolute",visibility:"hidden",display:"block"},ob=["Left","Right"],pb=["Top","Bottom"],qb=H.defaultView&&H.defaultView.getComputedStyle,fb=d.support.cssFloat?"cssFloat":"styleFloat",Va=function(a,c){return c.toUpperCase()};d.fn.css=function(a,c){return i(this,a,c,true,function(g,j,k){if(k===b)return d.curCSS(g,j);if(typeof k==="number"&&!jb.test(j))k+="px";d.style(g,j,k)})};d.extend({style:function(a,c,g){if(!a||a.nodeType===3||a.nodeType===8)return b;if((c==="width"||c===
"height")&&parseFloat(g)<0)g=b;var j=a.style||a,k=g!==b;if(!d.support.opacity&&c==="opacity"){if(k){j.zoom=1;c=parseInt(g,10)+""==="NaN"?"":"alpha(opacity="+g*100+")";a=j.filter||d.curCSS(a,"filter")||"";j.filter=db.test(a)?a.replace(db,c):c}return j.filter&&j.filter.indexOf("opacity=")>=0?parseFloat(eb.exec(j.filter)[1])/100+"":""}if(Ta.test(c))c=fb;c=c.replace(Ua,Va);if(k)j[c]=g;return j[c]},css:function(a,c,g,j){if(c==="width"||c==="height"){var k,s=c==="width"?ob:pb;g=function(){k=c==="width"?
a.offsetWidth:a.offsetHeight;j!=="border"&&d.each(s,function(){j||(k-=parseFloat(d.curCSS(a,"padding"+this,true))||0);if(j==="margin")k+=parseFloat(d.curCSS(a,"margin"+this,true))||0;else k-=parseFloat(d.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==0?g():d.swap(a,nb,g);return Math.max(0,Math.round(k))}return d.curCSS(a,c,g)},curCSS:function(a,c,g){var j,k=a.style;if(!d.support.opacity&&c==="opacity"&&a.currentStyle){j=eb.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":
"";return j===""?"1":j}if(Ta.test(c))c=fb;if(!g&&k&&k[c])j=k[c];else if(qb){if(Ta.test(c))c="float";c=c.replace(kb,"-$1").toLowerCase();k=a.ownerDocument.defaultView;if(!k)return null;if(a=k.getComputedStyle(a,null))j=a.getPropertyValue(c);if(c==="opacity"&&j==="")j="1"}else if(a.currentStyle){g=c.replace(Ua,Va);j=a.currentStyle[c]||a.currentStyle[g];if(!lb.test(j)&&mb.test(j)){c=k.left;var s=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;k.left=g==="fontSize"?"1em":j||0;j=k.pixelLeft+
"px";k.left=c;a.runtimeStyle.left=s}}return j},swap:function(a,c,g){var j={};for(var k in c){j[k]=a.style[k];a.style[k]=c[k]}g.call(a);for(k in c)a.style[k]=j[k]}});if(d.expr&&d.expr.filters){d.expr.filters.hidden=function(a){var c=a.offsetWidth,g=a.offsetHeight,j=a.nodeName.toLowerCase()==="tr";return c===0&&g===0&&!j?true:c>0&&g>0&&!j?false:d.curCSS(a,"display")==="none"};d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)}}var rb=m(),sb=/<script(.|\s)*?\/script>/gi,tb=/select|textarea/i,
ub=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,La=/=\?(&|$)/,Wa=/\?/,vb=/(\?|&)_=.*?(&|$)/,wb=/^(\w+:)?\/\/([^\/?#]+)/,xb=/%20/g,yb=d.fn.load;d.fn.extend({load:function(a,c,g){if(typeof a!=="string")return yb.call(this,a);else if(!this.length)return this;var j=a.indexOf(" ");if(j>=0){var k=a.slice(j,a.length);a=a.slice(0,j)}j="GET";if(c)if(d.isFunction(c)){g=c;c=null}else if(typeof c==="object"){c=d.param(c,d.ajaxSettings.traditional);j="POST"}var s=
this;d.ajax({url:a,type:j,dataType:"html",data:c,complete:function(t,A){if(A==="success"||A==="notmodified")s.html(k?d("<div />").append(t.responseText.replace(sb,"")).find(k):t.responseText);g&&s.each(g,[t.responseText,A,t])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||tb.test(this.nodeName)||
ub.test(this.type))}).map(function(a,c){var g=d(this).val();return g==null?null:d.isArray(g)?d.map(g,function(j){return{name:c.name,value:j}}):{name:c.name,value:g}}).get()}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,c){d.fn[c]=function(g){return this.bind(c,g)}});d.extend({get:function(a,c,g,j){if(d.isFunction(c)){j=j||g;g=c;c=null}return d.ajax({type:"GET",url:a,data:c,success:g,dataType:j})},getScript:function(a,c){return d.get(a,null,c,"script")},
getJSON:function(a,c,g){return d.get(a,c,g,"json")},post:function(a,c,g,j){if(d.isFunction(c)){j=j||g;g=c;c={}}return d.ajax({type:"POST",url:a,data:c,success:g,dataType:j})},ajaxSetup:function(a){d.extend(d.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:f.XMLHttpRequest&&(f.location.protocol!=="file:"||!f.ActiveXObject)?function(){return new f.XMLHttpRequest}:function(){try{return new f.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},
accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function c(){k.success&&k.success.call(x,A,t,$);k.global&&j("ajaxSuccess",[$,k])}function g(){k.complete&&k.complete.call(x,$,t);k.global&&j("ajaxComplete",[$,k]);k.global&&!--d.active&&d.event.trigger("ajaxStop")}function j(E,D){(k.context?d(k.context):d.event).trigger(E,D)}var k=
d.extend(true,{},d.ajaxSettings,a),s,t,A,x=a&&a.context||k,B=k.type.toUpperCase();if(k.data&&k.processData&&typeof k.data!=="string")k.data=d.param(k.data,k.traditional);if(k.dataType==="jsonp"){if(B==="GET")La.test(k.url)||(k.url+=(Wa.test(k.url)?"&":"?")+(k.jsonp||"callback")+"=?");else if(!k.data||!La.test(k.data))k.data=(k.data?k.data+"&":"")+(k.jsonp||"callback")+"=?";k.dataType="json"}if(k.dataType==="json"&&(k.data&&La.test(k.data)||La.test(k.url))){s=k.jsonpCallback||"jsonp"+rb++;if(k.data)k.data=
(k.data+"").replace(La,"="+s+"$1");k.url=k.url.replace(La,"="+s+"$1");k.dataType="script";f[s]=f[s]||function(E){A=E;c();g();f[s]=b;try{delete f[s]}catch(D){}ka&&ka.removeChild(ta)}}if(k.dataType==="script"&&k.cache===null)k.cache=false;if(k.cache===false&&B==="GET"){var L=m(),da=k.url.replace(vb,"$1_="+L+"$2");k.url=da+(da===k.url?(Wa.test(k.url)?"&":"?")+"_="+L:"")}if(k.data&&B==="GET")k.url+=(Wa.test(k.url)?"&":"?")+k.data;k.global&&!d.active++&&d.event.trigger("ajaxStart");L=(L=wb.exec(k.url))&&
(L[1]&&L[1]!==location.protocol||L[2]!==location.host);if(k.dataType==="script"&&B==="GET"&&L){var ka=H.getElementsByTagName("head")[0]||H.documentElement,ta=H.createElement("script");ta.src=k.url;if(k.scriptCharset)ta.charset=k.scriptCharset;if(!s){var oa=false;ta.onload=ta.onreadystatechange=function(){if(!oa&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){oa=true;c();g();ta.onload=ta.onreadystatechange=null;ka&&ta.parentNode&&ka.removeChild(ta)}}}ka.insertBefore(ta,
ka.firstChild);return b}var za=false,$=k.xhr();if($){k.username?$.open(B,k.url,k.async,k.username,k.password):$.open(B,k.url,k.async);try{if(k.data||a&&a.contentType)$.setRequestHeader("Content-Type",k.contentType);if(k.ifModified){d.lastModified[k.url]&&$.setRequestHeader("If-Modified-Since",d.lastModified[k.url]);d.etag[k.url]&&$.setRequestHeader("If-None-Match",d.etag[k.url])}L||$.setRequestHeader("X-Requested-With","XMLHttpRequest");$.setRequestHeader("Accept",k.dataType&&k.accepts[k.dataType]?
k.accepts[k.dataType]+", */*":k.accepts._default)}catch(Sa){}if(k.beforeSend&&k.beforeSend.call(x,$,k)===false){k.global&&!--d.active&&d.event.trigger("ajaxStop");$.abort();return false}k.global&&j("ajaxSend",[$,k]);var o=$.onreadystatechange=function(E){if(!$||$.readyState===0||E==="abort"){za||g();za=true;if($)$.onreadystatechange=d.noop}else if(!za&&$&&($.readyState===4||E==="timeout")){za=true;$.onreadystatechange=d.noop;t=E==="timeout"?"timeout":!d.httpSuccess($)?"error":k.ifModified&&d.httpNotModified($,
k.url)?"notmodified":"success";var D;if(t==="success")try{A=d.httpData($,k.dataType,k)}catch(Y){t="parsererror";D=Y}if(t==="success"||t==="notmodified")s||c();else d.handleError(k,$,t,D);g();E==="timeout"&&$.abort();if(k.async)$=null}};try{var u=$.abort;$.abort=function(){$&&u.call($);o("abort")}}catch(y){}k.async&&k.timeout>0&&setTimeout(function(){$&&!za&&o("timeout")},k.timeout);try{$.send(B==="POST"||B==="PUT"||B==="DELETE"?k.data:null)}catch(z){d.handleError(k,$,null,z);g()}k.async||o();return $}},
handleError:function(a,c,g,j){if(a.error)a.error.call(a.context||a,c,g,j);if(a.global)(a.context?d(a.context):d.event).trigger("ajaxError",[c,a,j])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(c){}return false},httpNotModified:function(a,c){var g=a.getResponseHeader("Last-Modified"),j=a.getResponseHeader("Etag");if(g)d.lastModified[c]=g;if(j)d.etag[c]=j;return a.status===304||a.status===
0},httpData:function(a,c,g){var j=a.getResponseHeader("content-type")||"",k=c==="xml"||!c&&j.indexOf("xml")>=0;a=k?a.responseXML:a.responseText;k&&a.documentElement.nodeName==="parsererror"&&d.error("parsererror");if(g&&g.dataFilter)a=g.dataFilter(a,c);if(typeof a==="string")if(c==="json"||!c&&j.indexOf("json")>=0)a=d.parseJSON(a);else if(c==="script"||!c&&j.indexOf("javascript")>=0)d.globalEval(a);return a},param:function(a,c){function g(t,A){if(d.isArray(A))d.each(A,function(x,B){c||/\[\]$/.test(t)?
j(t,B):g(t+"["+(typeof B==="object"||d.isArray(B)?x:"")+"]",B)});else!c&&A!=null&&typeof A==="object"?d.each(A,function(x,B){g(t+"["+x+"]",B)}):j(t,A)}function j(t,A){A=d.isFunction(A)?A():A;k[k.length]=encodeURIComponent(t)+"="+encodeURIComponent(A)}var k=[];if(c===b)c=d.ajaxSettings.traditional;if(d.isArray(a)||a.jquery)d.each(a,function(){j(this.name,this.value)});else for(var s in a)g(s,a[s]);return k.join("&").replace(xb,"+")}});var Xa={},zb=/toggle|show|hide/,Ab=/^([+-]=)?([\d+-.]+)(.*)$/,Ra,
$a=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,c){if(a||a===0)return this.animate(K("show",3),a,c);else{for(var g=0,j=this.length;g<j;g++){var k=d.data(this[g],"olddisplay");this[g].style.display=k||"";if(d.css(this[g],"display")==="none"){k=this[g].nodeName;var s;if(Xa[k])s=Xa[k];else{var t=d("<"+k+" />").appendTo("body");s=t.css("display");if(s==="none")s="block";t.remove();
Xa[k]=s}d.data(this[g],"olddisplay",s)}}g=0;for(j=this.length;g<j;g++)this[g].style.display=d.data(this[g],"olddisplay")||"";return this}},hide:function(a,c){if(a||a===0)return this.animate(K("hide",3),a,c);else{for(var g=0,j=this.length;g<j;g++){var k=d.data(this[g],"olddisplay");!k&&k!=="none"&&d.data(this[g],"olddisplay",d.css(this[g],"display"))}g=0;for(j=this.length;g<j;g++)this[g].style.display="none";return this}},_toggle:d.fn.toggle,toggle:function(a,c){var g=typeof a==="boolean";if(d.isFunction(a)&&
d.isFunction(c))this._toggle.apply(this,arguments);else a==null||g?this.each(function(){var j=g?a:d(this).is(":hidden");d(this)[j?"show":"hide"]()}):this.animate(K("toggle",3),a,c);return this},fadeTo:function(a,c,g){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},a,g)},animate:function(a,c,g,j){var k=d.speed(c,g,j);if(d.isEmptyObject(a))return this.each(k.complete);return this[k.queue===false?"each":"queue"](function(){var s=d.extend({},k),t,A=this.nodeType===1&&d(this).is(":hidden"),
x=this;for(t in a){var B=t.replace(Ua,Va);if(t!==B){a[B]=a[t];delete a[t];t=B}if(a[t]==="hide"&&A||a[t]==="show"&&!A)return s.complete.call(this);if((t==="height"||t==="width")&&this.style){s.display=d.css(this,"display");s.overflow=this.style.overflow}if(d.isArray(a[t])){(s.specialEasing=s.specialEasing||{})[t]=a[t][1];a[t]=a[t][0]}}if(s.overflow!=null)this.style.overflow="hidden";s.curAnim=d.extend({},a);d.each(a,function(L,da){var ka=new d.fx(x,s,L);if(zb.test(da))ka[da==="toggle"?A?"show":"hide":
da](a);else{var ta=Ab.exec(da),oa=ka.cur(true)||0;if(ta){var za=parseFloat(ta[2]),$=ta[3]||"px";if($!=="px"){x.style[L]=(za||1)+$;oa=(za||1)/ka.cur(true)*oa;x.style[L]=oa+$}if(ta[1])za=(ta[1]==="-="?-1:1)*za+oa;ka.custom(oa,za,$)}else ka.custom(oa,da,"")}});return true})},stop:function(a,c){var g=d.timers;a&&this.queue([]);this.each(function(){for(var j=g.length-1;j>=0;j--)if(g[j].elem===this){c&&g[j](true);g.splice(j,1)}});c||this.dequeue();return this}});d.each({slideDown:K("show",1),slideUp:K("hide",
1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,c){d.fn[a]=function(g,j){return this.animate(c,g,j)}});d.extend({speed:function(a,c,g){var j=a&&typeof a==="object"?a:{complete:g||!g&&c||d.isFunction(a)&&a,duration:a,easing:g&&c||c&&!d.isFunction(c)&&c};j.duration=d.fx.off?0:typeof j.duration==="number"?j.duration:d.fx.speeds[j.duration]||d.fx.speeds._default;j.old=j.complete;j.complete=function(){j.queue!==false&&d(this).dequeue();d.isFunction(j.old)&&j.old.call(this)};
return j},easing:{linear:function(a,c,g,j){return g+j*a},swing:function(a,c,g,j){return(-Math.cos(a*Math.PI)/2+0.5)*j+g}},timers:[],fx:function(a,c,g){this.options=c;this.elem=a;this.prop=g;if(!c.orig)c.orig={}}});d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]||d.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=
null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(d.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(d.curCSS(this.elem,this.prop))||0},custom:function(a,c,g){function j(s){return k.step(s)}this.startTime=m();this.start=a;this.end=c;this.unit=g||this.unit||"px";this.now=this.start;this.pos=this.state=0;var k=this;j.elem=this.elem;if(j()&&d.timers.push(j)&&!Ra)Ra=setInterval(d.fx.tick,13)},show:function(){this.options.orig[this.prop]=d.style(this.elem,
this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var c=m(),g=true;if(a||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var j in this.options.curAnim)if(this.options.curAnim[j]!==true)g=false;if(g){if(this.options.display!=
null){this.elem.style.overflow=this.options.overflow;a=d.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(d.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var k in this.options.curAnim)d.style(this.elem,k,this.options.orig[k]);this.options.complete.call(this.elem)}return false}else{k=c-this.startTime;this.state=k/this.options.duration;a=this.options.easing||(d.easing.swing?
"swing":"linear");this.pos=d.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,k,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};d.extend(d.fx,{tick:function(){for(var a=d.timers,c=0;c<a.length;c++)a[c]()||a.splice(c--,1);a.length||d.fx.stop()},stop:function(){clearInterval(Ra);Ra=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&
a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(d.expr&&d.expr.filters)d.expr.filters.animated=function(a){return d.grep(d.timers,function(c){return a===c.elem}).length};d.fn.offset="getBoundingClientRect"in H.documentElement?function(a){var c=this[0];if(a)return this.each(function(k){d.offset.setOffset(this,a,k)});if(!c||!c.ownerDocument)return null;if(c===c.ownerDocument.body)return d.offset.bodyOffset(c);
var g=c.getBoundingClientRect(),j=c.ownerDocument;c=j.body;j=j.documentElement;return{top:g.top+(self.pageYOffset||d.support.boxModel&&j.scrollTop||c.scrollTop)-(j.clientTop||c.clientTop||0),left:g.left+(self.pageXOffset||d.support.boxModel&&j.scrollLeft||c.scrollLeft)-(j.clientLeft||c.clientLeft||0)}}:function(a){var c=this[0];if(a)return this.each(function(L){d.offset.setOffset(this,a,L)});if(!c||!c.ownerDocument)return null;if(c===c.ownerDocument.body)return d.offset.bodyOffset(c);d.offset.initialize();
var g=c.offsetParent,j=c,k=c.ownerDocument,s,t=k.documentElement,A=k.body;j=(k=k.defaultView)?k.getComputedStyle(c,null):c.currentStyle;for(var x=c.offsetTop,B=c.offsetLeft;(c=c.parentNode)&&c!==A&&c!==t;){if(d.offset.supportsFixedPosition&&j.position==="fixed")break;s=k?k.getComputedStyle(c,null):c.currentStyle;x-=c.scrollTop;B-=c.scrollLeft;if(c===g){x+=c.offsetTop;B+=c.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(c.nodeName))){x+=parseFloat(s.borderTopWidth)||
0;B+=parseFloat(s.borderLeftWidth)||0}j=g;g=c.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&s.overflow!=="visible"){x+=parseFloat(s.borderTopWidth)||0;B+=parseFloat(s.borderLeftWidth)||0}j=s}if(j.position==="relative"||j.position==="static"){x+=A.offsetTop;B+=A.offsetLeft}if(d.offset.supportsFixedPosition&&j.position==="fixed"){x+=Math.max(t.scrollTop,A.scrollTop);B+=Math.max(t.scrollLeft,A.scrollLeft)}return{top:x,left:B}};d.offset={initialize:function(){var a=H.body,c=H.createElement("div"),
g,j,k,s=parseFloat(d.curCSS(a,"marginTop",true))||0;d.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(c,a.firstChild);
g=c.firstChild;j=g.firstChild;k=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=j.offsetTop!==5;this.doesAddBorderForTableAndCells=k.offsetTop===5;j.style.position="fixed";j.style.top="20px";this.supportsFixedPosition=j.offsetTop===20||j.offsetTop===15;j.style.position=j.style.top="";g.style.overflow="hidden";g.style.position="relative";this.subtractsBorderForOverflowNotVisible=j.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==s;a.removeChild(c);d.offset.initialize=d.noop},
bodyOffset:function(a){var c=a.offsetTop,g=a.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(d.curCSS(a,"marginTop",true))||0;g+=parseFloat(d.curCSS(a,"marginLeft",true))||0}return{top:c,left:g}},setOffset:function(a,c,g){if(/static/.test(d.curCSS(a,"position")))a.style.position="relative";var j=d(a),k=j.offset(),s=parseInt(d.curCSS(a,"top",true),10)||0,t=parseInt(d.curCSS(a,"left",true),10)||0;if(d.isFunction(c))c=c.call(a,g,k);g={top:c.top-k.top+s,left:c.left-
k.left+t};"using"in c?c.using.call(a,g):j.css(g)}};d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],c=this.offsetParent(),g=this.offset(),j=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();g.top-=parseFloat(d.curCSS(a,"marginTop",true))||0;g.left-=parseFloat(d.curCSS(a,"marginLeft",true))||0;j.top+=parseFloat(d.curCSS(c[0],"borderTopWidth",true))||0;j.left+=parseFloat(d.curCSS(c[0],"borderLeftWidth",true))||0;return{top:g.top-j.top,left:g.left-j.left}},offsetParent:function(){return this.map(function(){for(var a=
this.offsetParent||H.body;a&&!/^body|html$/i.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a})}});d.each(["Left","Top"],function(a,c){var g="scroll"+c;d.fn[g]=function(j){var k=this[0],s;if(!k)return null;if(j!==b)return this.each(function(){if(s=G(this))s.scrollTo(!a?j:d(s).scrollLeft(),a?j:d(s).scrollTop());else this[g]=j});else return(s=G(k))?"pageXOffset"in s?s[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&s.document.documentElement[g]||s.document.body[g]:k[g]}});
d.each(["Height","Width"],function(a,c){var g=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?d.css(this[0],g,false,"padding"):null};d.fn["outer"+c]=function(j){return this[0]?d.css(this[0],g,false,j?"margin":"border"):null};d.fn[g]=function(j){var k=this[0];if(!k)return j==null?null:this;if(d.isFunction(j))return this.each(function(s){var t=d(this);t[g](j.call(this,s,t[g]()))});return"scrollTo"in k&&k.document?k.document.compatMode==="CSS1Compat"&&k.document.documentElement["client"+c]||
k.document.body["client"+c]:k.nodeType===9?Math.max(k.documentElement["client"+c],k.body["scroll"+c],k.documentElement["scroll"+c],k.body["offset"+c],k.documentElement["offset"+c]):j===b?d.css(k,g):this.css(g,typeof j==="string"?j:j+"px")}});f.jQuery=f.$=d})(window);
(function(f){function b(n){var l=n.split("/");if(l[0]=="_design"){l.shift();return"_design/"+encodeURIComponent(l.join("/"))}return encodeURIComponent(n)}function e(n,l){if(typeof hex_sha1=="undefined")alert("creating a user doc requires sha1.js to be loaded in the page");else{n._id=n._id||"org.couchdb.user:"+n.name;if(l){n.salt=f.couch.newUUID();n.password_sha=hex_sha1(l+n.salt)}n.type="user";if(!n.roles)n.roles=[];return n}}function h(n,l,p,v){l=f.extend({successStatus:200},l);p=p||"Unknown error";
f.ajax(f.extend(f.extend({type:"GET",dataType:"json",complete:function(w){var C=f.httpData(w,"json");if(w.status==l.successStatus)l.success&&l.success(C);else l.error?l.error(w.status,C.error,C.reason):alert(p+": "+C.reason)}},n),v))}function i(n){var l=[];if(typeof n==="object"&&n!==null)for(var p in n)if(!(f.inArray(p,["error","success"])>=0)){var v=n[p];if(f.inArray(p,["key","startkey","endkey"])>=0)v=m(v);l.push(encodeURIComponent(p)+"="+encodeURIComponent(v))}return l.length?"?"+l.join("&"):
""}function m(n){return n!==null?JSON.stringify(n):null}f.couch=f.couch||{};var r=[];f.extend(f.couch,{urlPrefix:"",activeTasks:function(n){h({url:this.urlPrefix+"/_active_tasks"},n,"Active task status could not be retrieved")},allDbs:function(n){h({url:this.urlPrefix+"/_all_dbs"},n,"An error occurred retrieving the list of all databases")},config:function(n,l,p,v){var w={url:this.urlPrefix+"/_config/"};if(l){w.url+=encodeURIComponent(l)+"/";if(p)w.url+=encodeURIComponent(p)}if(v===null)w.type="DELETE";
else if(v!==undefined){w.type="PUT";w.data=m(v);w.contentType="application/json";w.processData=false}h(w,n,"An error occurred retrieving/updating the server configuration")},session:function(n){n=n||{};f.ajax({type:"GET",url:this.urlPrefix+"/_session",complete:function(l){var p=f.httpData(l,"json");if(l.status==200)n.success&&n.success(p);else n.error?n.error(l.status,p.error,p.reason):alert("An error occurred getting session info: "+p.reason)}})},userDb:function(n){f.couch.session({success:function(l){l=
f.couch.db(l.info.authentication_db);n(l)}})},signup:function(n,l,p){p=p||{};n=e(n,l);f.couch.userDb(function(v){v.saveDoc(n,p)})},login:function(n){n=n||{};f.ajax({type:"POST",url:this.urlPrefix+"/_session",dataType:"json",data:{name:n.name,password:n.password},complete:function(l){var p=f.httpData(l,"json");if(l.status==200)n.success&&n.success(p);else n.error?n.error(l.status,p.error,p.reason):alert("An error occurred logging in: "+p.reason)}})},logout:function(n){n=n||{};f.ajax({type:"DELETE",
url:this.urlPrefix+"/_session",dataType:"json",username:"_",password:"_",complete:function(l){var p=f.httpData(l,"json");if(l.status==200)n.success&&n.success(p);else n.error?n.error(l.status,p.error,p.reason):alert("An error occurred logging out: "+p.reason)}})},db:function(n){return{name:n,uri:this.urlPrefix+"/"+encodeURIComponent(n)+"/",compact:function(l){f.extend(l,{successStatus:202});h({type:"POST",url:this.uri+"_compact",data:"",processData:false},l,"The database could not be compacted")},
viewCleanup:function(l){f.extend(l,{successStatus:202});h({type:"POST",url:this.uri+"_view_cleanup",data:"",processData:false},l,"The views could not be cleaned up")},compactView:function(l,p){f.extend(p,{successStatus:202});h({type:"POST",url:this.uri+"_compact/"+l,data:"",processData:false},p,"The view could not be compacted")},create:function(l){f.extend(l,{successStatus:201});h({type:"PUT",url:this.uri,contentType:"application/json",data:"",processData:false},l,"The database could not be created")},
drop:function(l){h({type:"DELETE",url:this.uri},l,"The database could not be deleted")},info:function(l){h({url:this.uri},l,"Database information could not be retrieved")},allDocs:function(l){h({url:this.uri+"_all_docs"+i(l)},l,"An error occurred retrieving a list of all documents")},allDesignDocs:function(l){this.allDocs(f.extend({startkey:"_design",endkey:"_design0"},l))},allApps:function(l){l=l||{};var p=this;l.eachApp?this.allDesignDocs({success:function(v){f.each(v.rows,function(){p.openDoc(this.id,
{success:function(w){var C,K,G=w._id.split("/");G.shift();G=G.join("/");if(C=w.couchapp&&w.couchapp.index)K=["",n,w._id,C].join("/");else if(w._attachments&&w._attachments["index.html"])K=["",n,w._id,"index.html"].join("/");K&&l.eachApp(G,K,w)}})})}}):alert("please provide an eachApp function for allApps()")},openDoc:function(l,p,v){h({url:this.uri+b(l)+i(p)},p,"The document could not be retrieved",v)},saveDoc:function(l,p){p=p||{};if(l._id===undefined)var v="POST",w=this.uri;else{v="PUT";w=this.uri+
b(l._id)}f.ajax({type:v,url:w+i(p),contentType:"application/json",dataType:"json",data:m(l),complete:function(C){var K=f.httpData(C,"json");if(C.status==201){l._id=K.id;l._rev=K.rev;p.success&&p.success(K)}else p.error?p.error(C.status,K.error,K.reason):alert("The document could not be saved: "+K.reason)}})},bulkSave:function(l,p){f.extend(p,{successStatus:201});h({type:"POST",url:this.uri+"_bulk_docs"+i(p),data:m(l)},p,"The documents could not be saved")},removeDoc:function(l,p){h({type:"DELETE",
url:this.uri+b(l._id)+i({rev:l._rev})},p,"The document could not be deleted")},copyDoc:function(l,p,v){v=f.extend(v,{complete:function(w){var C=f.httpData(w,"json");if(w.status==201){l._id=C.id;l._rev=C.rev;p.success&&p.success(C)}else p.error?p.error(w.status,C.error,C.reason):alert("The document could not be copied: "+C.reason)}});h({type:"COPY",url:this.uri+b(l._id)+i({rev:l._rev})},p,"The document could not be copied",v)},query:function(l,p,v,w){v=v||"javascript";if(typeof l!=="string")l=l.toSource?
l.toSource():"("+l.toString()+")";l={language:v,map:l};if(p!=null){if(typeof p!=="string")p=p.toSource?p.toSource():"("+p.toString()+")";l.reduce=p}h({type:"POST",url:this.uri+"_temp_view"+i(w),contentType:"application/json",data:m(l)},w,"An error occurred querying the database")},view:function(l,p){l=l.split("/");p=p||{};var v="GET",w=null;if(p.keys){v="POST";w=p.keys;delete p.keys;w=m({keys:w})}h({type:v,data:w,url:this.uri+"_design/"+l[0]+"/_view/"+l[1]+i(p)},p,"An error occurred accessing the view")},
getDbProperty:function(l,p,v){h({url:this.uri+l+i(p)},p,"The property could not be retrieved",v)},setDbProperty:function(l,p,v,w){h({type:"PUT",url:this.uri+l+i(v),data:JSON.stringify(p)},v,"The property could not be updated",w)}}},encodeDocId:b,info:function(n){h({url:this.urlPrefix+"/"},n,"Server information could not be retrieved")},replicate:function(n,l,p){h({type:"POST",url:this.urlPrefix+"/_replicate",data:JSON.stringify({source:n,target:l}),contentType:"application/json"},p,"Replication failed")},
newUUID:function(n){if(n===undefined)n=1;r.length||h({url:this.urlPrefix+"/_uuids",data:{count:n},async:false},{success:function(l){r=l.uuids}},"Failed to retrieve UUID batch.");return r.shift()}})})(jQuery);
(function(f){function b(){f.fn.ajaxSubmit.debug&&window.console&&window.console.log&&window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}f.fn.ajaxSubmit=function(e){function h(){function w(){var ua=l.attr("target"),qa=l.attr("action");G.setAttribute("target",Z);G.getAttribute("method")!="POST"&&G.setAttribute("method","POST");G.getAttribute("action")!=d.url&&G.setAttribute("action",d.url);d.skipEncodingOverride||l.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});
d.timeout&&setTimeout(function(){Ea=true;C()},d.timeout);var q=[];try{if(d.extraData)for(var F in d.extraData)q.push(f('<input type="hidden" name="'+F+'" value="'+d.extraData[F]+'" />').appendTo(G)[0]);H.appendTo("body");H.data("form-plugin-onload",C);G.submit()}finally{G.setAttribute("action",qa);ua?G.setAttribute("target",ua):l.removeAttr("target");f(q).remove()}}function C(){if(!Da){var ua=true;try{if(Ea)throw"timeout";var qa,q;q=va.contentWindow?va.contentWindow.document:va.contentDocument?va.contentDocument:
va.document;var F=d.dataType=="xml"||q.XMLDocument||f.isXMLDoc(q);b("isXml="+F);if(!F&&(q.body==null||q.body.innerHTML=="")){if(--Ca){setTimeout(C,250);return}b("Could not access iframe DOM after 100 tries.");return}Da=true;ja.responseText=q.body?q.body.innerHTML:null;ja.responseXML=q.XMLDocument?q.XMLDocument:q;ja.getResponseHeader=function(sa){return{"content-type":d.dataType}[sa]};if(d.dataType=="json"||d.dataType=="script"){var I=q.getElementsByTagName("textarea")[0];if(I)ja.responseText=I.value;
else{var N=q.getElementsByTagName("pre")[0];if(N)ja.responseText=N.innerHTML}}else if(d.dataType=="xml"&&!ja.responseXML&&ja.responseText!=null)ja.responseXML=K(ja.responseText);qa=f.httpData(ja,d.dataType)}catch(X){ua=false;f.handleError(d,ja,"error",X)}if(ua){d.success(qa,"success");wa&&f.event.trigger("ajaxSuccess",[ja,d])}wa&&f.event.trigger("ajaxComplete",[ja,d]);wa&&!--f.active&&f.event.trigger("ajaxStop");if(d.complete)d.complete(ja,ua?"success":"error");setTimeout(function(){H.removeData("form-plugin-onload");
H.remove();ja.responseXML=null},100)}}function K(ua,qa){if(window.ActiveXObject){qa=new ActiveXObject("Microsoft.XMLDOM");qa.async="false";qa.loadXML(ua)}else qa=(new DOMParser).parseFromString(ua,"text/xml");return qa&&qa.documentElement&&qa.documentElement.tagName!="parsererror"?qa:null}var G=l[0];if(f(":input[name=submit]",G).length)alert('Error: Form elements must not be named "submit".');else{var d=f.extend({},f.ajaxSettings,e),S=f.extend(true,{},f.extend(true,{},f.ajaxSettings),d),Z="jqFormIO"+
(new Date).getTime(),H=f('<iframe id="'+Z+'" name="'+Z+'" src="'+d.iframeSrc+'" onload="(jQuery(this).data(\'form-plugin-onload\'))()" />'),va=H[0];H.css({position:"absolute",top:"-1000px",left:"-1000px"});var ja={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;H.attr("src",d.iframeSrc)}},wa=d.global;wa&&!f.active++&&f.event.trigger("ajaxStart");wa&&
f.event.trigger("ajaxSend",[ja,d]);if(S.beforeSend&&S.beforeSend(ja,S)===false)S.global&&f.active--;else if(!ja.aborted){var Da=false,Ea=0;if(S=G.clk){var Fa=S.name;if(Fa&&!S.disabled){d.extraData=d.extraData||{};d.extraData[Fa]=S.value;if(S.type=="image"){d.extraData[name+".x"]=G.clk_x;d.extraData[name+".y"]=G.clk_y}}}d.forceSync?w():setTimeout(w,10);var Ca=100}}}if(!this.length){b("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof e=="function")e={success:e};var i=
f.trim(this.attr("action"));if(i)i=(i.match(/^([^#]+)/)||[])[1];i=i||window.location.href||"";e=f.extend({url:i,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},e||{});i={};this.trigger("form-pre-serialize",[this,e,i]);if(i.veto){b("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(e.beforeSerialize&&e.beforeSerialize(this,e)===false){b("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var m=
this.formToArray(e.semantic);if(e.data){e.extraData=e.data;for(var r in e.data)if(e.data[r]instanceof Array)for(var n in e.data[r])m.push({name:r,value:e.data[r][n]});else m.push({name:r,value:e.data[r]})}if(e.beforeSubmit&&e.beforeSubmit(m,this,e)===false){b("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[m,this,e,i]);if(i.veto){b("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}r=f.param(m);if(e.type.toUpperCase()==
"GET"){e.url+=(e.url.indexOf("?")>=0?"&":"?")+r;e.data=null}else e.data=r;var l=this,p=[];e.resetForm&&p.push(function(){l.resetForm()});e.clearForm&&p.push(function(){l.clearForm()});if(!e.dataType&&e.target){var v=e.success||function(){};p.push(function(w){f(e.target).html(w).each(v,arguments)})}else e.success&&p.push(e.success);e.success=function(w,C,K){for(var G=0,d=p.length;G<d;G++)p[G].apply(e,[w,C,K||l,l])};r=f("input:file",this).fieldValue();n=false;for(i=0;i<r.length;i++)if(r[i])n=true;if(r.length&&
e.iframe!==false||e.iframe||n||0)e.closeKeepAlive?f.get(e.closeKeepAlive,h):h();else f.ajax(e);this.trigger("form-submit-notify",[this,e]);return this};f.fn.ajaxForm=function(e){return this.ajaxFormUnbind().bind("submit.form-plugin",function(h){h.preventDefault();f(this).ajaxSubmit(e)}).bind("click.form-plugin",function(h){var i=h.target,m=f(i);if(!m.is(":submit,input:image")){i=m.closest(":submit");if(i.length==0)return;i=i[0]}var r=this;r.clk=i;if(i.type=="image")if(h.offsetX!=undefined){r.clk_x=
h.offsetX;r.clk_y=h.offsetY}else if(typeof f.fn.offset=="function"){m=m.offset();r.clk_x=h.pageX-m.left;r.clk_y=h.pageY-m.top}else{r.clk_x=h.pageX-i.offsetLeft;r.clk_y=h.pageY-i.offsetTop}setTimeout(function(){r.clk=r.clk_x=r.clk_y=null},100)})};f.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};f.fn.formToArray=function(e){var h=[];if(this.length==0)return h;var i=this[0],m=e?i.getElementsByTagName("*"):i.elements;if(!m)return h;for(var r=0,n=m.length;r<n;r++){var l=
m[r],p=l.name;if(p)if(e&&i.clk&&l.type=="image"){if(!l.disabled&&i.clk==l){h.push({name:p,value:f(l).val()});h.push({name:p+".x",value:i.clk_x},{name:p+".y",value:i.clk_y})}}else if((l=f.fieldValue(l,true))&&l.constructor==Array)for(var v=0,w=l.length;v<w;v++)h.push({name:p,value:l[v]});else l!==null&&typeof l!="undefined"&&h.push({name:p,value:l})}if(!e&&i.clk){e=f(i.clk);m=e[0];if((p=m.name)&&!m.disabled&&m.type=="image"){h.push({name:p,value:e.val()});h.push({name:p+".x",value:i.clk_x},{name:p+
".y",value:i.clk_y})}}return h};f.fn.formSerialize=function(e){return f.param(this.formToArray(e))};f.fn.fieldSerialize=function(e){var h=[];this.each(function(){var i=this.name;if(i){var m=f.fieldValue(this,e);if(m&&m.constructor==Array)for(var r=0,n=m.length;r<n;r++)h.push({name:i,value:m[r]});else m!==null&&typeof m!="undefined"&&h.push({name:this.name,value:m})}});return f.param(h)};f.fn.fieldValue=function(e){for(var h=[],i=0,m=this.length;i<m;i++){var r=f.fieldValue(this[i],e);r===null||typeof r==
"undefined"||r.constructor==Array&&!r.length||(r.constructor==Array?f.merge(h,r):h.push(r))}return h};f.fieldValue=function(e,h){var i=e.name,m=e.type,r=e.tagName.toLowerCase();if(typeof h=="undefined")h=true;if(h&&(!i||e.disabled||m=="reset"||m=="button"||(m=="checkbox"||m=="radio")&&!e.checked||(m=="submit"||m=="image")&&e.form&&e.form.clk!=e||r=="select"&&e.selectedIndex==-1))return null;if(r=="select"){var n=e.selectedIndex;if(n<0)return null;i=[];r=e.options;var l=(m=m=="select-one")?n+1:r.length;
for(n=m?n:0;n<l;n++){var p=r[n];if(p.selected){var v=p.value;v||(v=p.attributes&&p.attributes.value&&!p.attributes.value.specified?p.text:p.value);if(m)return v;i.push(v)}}return i}return e.value};f.fn.clearForm=function(){return this.each(function(){f("input,select,textarea",this).clearFields()})};f.fn.clearFields=f.fn.clearInputs=function(){return this.each(function(){var e=this.type,h=this.tagName.toLowerCase();if(e=="text"||e=="password"||h=="textarea")this.value="";else if(e=="checkbox"||e==
"radio")this.checked=false;else if(h=="select")this.selectedIndex=-1})};f.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)this.reset()})};f.fn.enable=function(e){if(e==undefined)e=true;return this.each(function(){this.disabled=!e})};f.fn.selected=function(e){if(e==undefined)e=true;return this.each(function(){var h=this.type;if(h=="checkbox"||h=="radio")this.checked=e;else if(this.tagName.toLowerCase()=="option"){h=
f(this).parent("select");e&&h[0]&&h[0].type=="select-one"&&h.find("option").selected(false);this.selected=e}})}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(f,b,e,h,i){return jQuery.easing[jQuery.easing.def](f,b,e,h,i)},easeInQuad:function(f,b,e,h,i){return h*(b/=i)*b+e},easeOutQuad:function(f,b,e,h,i){return-h*(b/=i)*(b-2)+e},easeInOutQuad:function(f,b,e,h,i){if((b/=i/2)<1)return h/2*b*b+e;return-h/2*(--b*(b-2)-1)+e},easeInCubic:function(f,b,e,h,i){return h*(b/=i)*b*b+e},easeOutCubic:function(f,b,e,h,i){return h*((b=b/i-1)*b*b+1)+e},easeInOutCubic:function(f,b,e,h,i){if((b/=i/2)<1)return h/
2*b*b*b+e;return h/2*((b-=2)*b*b+2)+e},easeInQuart:function(f,b,e,h,i){return h*(b/=i)*b*b*b+e},easeOutQuart:function(f,b,e,h,i){return-h*((b=b/i-1)*b*b*b-1)+e},easeInOutQuart:function(f,b,e,h,i){if((b/=i/2)<1)return h/2*b*b*b*b+e;return-h/2*((b-=2)*b*b*b-2)+e},easeInQuint:function(f,b,e,h,i){return h*(b/=i)*b*b*b*b+e},easeOutQuint:function(f,b,e,h,i){return h*((b=b/i-1)*b*b*b*b+1)+e},easeInOutQuint:function(f,b,e,h,i){if((b/=i/2)<1)return h/2*b*b*b*b*b+e;return h/2*((b-=2)*b*b*b*b+2)+e},easeInSine:function(f,
b,e,h,i){return-h*Math.cos(b/i*(Math.PI/2))+h+e},easeOutSine:function(f,b,e,h,i){return h*Math.sin(b/i*(Math.PI/2))+e},easeInOutSine:function(f,b,e,h,i){return-h/2*(Math.cos(Math.PI*b/i)-1)+e},easeInExpo:function(f,b,e,h,i){return b==0?e:h*Math.pow(2,10*(b/i-1))+e},easeOutExpo:function(f,b,e,h,i){return b==i?e+h:h*(-Math.pow(2,-10*b/i)+1)+e},easeInOutExpo:function(f,b,e,h,i){if(b==0)return e;if(b==i)return e+h;if((b/=i/2)<1)return h/2*Math.pow(2,10*(b-1))+e;return h/2*(-Math.pow(2,-10*--b)+2)+e},
easeInCirc:function(f,b,e,h,i){return-h*(Math.sqrt(1-(b/=i)*b)-1)+e},easeOutCirc:function(f,b,e,h,i){return h*Math.sqrt(1-(b=b/i-1)*b)+e},easeInOutCirc:function(f,b,e,h,i){if((b/=i/2)<1)return-h/2*(Math.sqrt(1-b*b)-1)+e;return h/2*(Math.sqrt(1-(b-=2)*b)+1)+e},easeInElastic:function(f,b,e,h,i){f=1.70158;var m=0,r=h;if(b==0)return e;if((b/=i)==1)return e+h;m||(m=i*0.3);if(r<Math.abs(h)){r=h;f=m/4}else f=m/(2*Math.PI)*Math.asin(h/r);return-(r*Math.pow(2,10*(b-=1))*Math.sin((b*i-f)*2*Math.PI/m))+e},easeOutElastic:function(f,
b,e,h,i){f=1.70158;var m=0,r=h;if(b==0)return e;if((b/=i)==1)return e+h;m||(m=i*0.3);if(r<Math.abs(h)){r=h;f=m/4}else f=m/(2*Math.PI)*Math.asin(h/r);return r*Math.pow(2,-10*b)*Math.sin((b*i-f)*2*Math.PI/m)+h+e},easeInOutElastic:function(f,b,e,h,i){f=1.70158;var m=0,r=h;if(b==0)return e;if((b/=i/2)==2)return e+h;m||(m=i*0.3*1.5);if(r<Math.abs(h)){r=h;f=m/4}else f=m/(2*Math.PI)*Math.asin(h/r);if(b<1)return-0.5*r*Math.pow(2,10*(b-=1))*Math.sin((b*i-f)*2*Math.PI/m)+e;return r*Math.pow(2,-10*(b-=1))*Math.sin((b*
i-f)*2*Math.PI/m)*0.5+h+e},easeInBack:function(f,b,e,h,i,m){if(m==undefined)m=1.70158;return h*(b/=i)*b*((m+1)*b-m)+e},easeOutBack:function(f,b,e,h,i,m){if(m==undefined)m=1.70158;return h*((b=b/i-1)*b*((m+1)*b+m)+1)+e},easeInOutBack:function(f,b,e,h,i,m){if(m==undefined)m=1.70158;if((b/=i/2)<1)return h/2*b*b*(((m*=1.525)+1)*b-m)+e;return h/2*((b-=2)*b*(((m*=1.525)+1)*b+m)+2)+e},easeInBounce:function(f,b,e,h,i){return h-jQuery.easing.easeOutBounce(f,i-b,0,h,i)+e},easeOutBounce:function(f,b,e,h,i){return(b/=
i)<1/2.75?h*7.5625*b*b+e:b<2/2.75?h*(7.5625*(b-=1.5/2.75)*b+0.75)+e:b<2.5/2.75?h*(7.5625*(b-=2.25/2.75)*b+0.9375)+e:h*(7.5625*(b-=2.625/2.75)*b+0.984375)+e},easeInOutBounce:function(f,b,e,h,i){if(b<i/2)return jQuery.easing.easeInBounce(f,b*2,0,h,i)*0.5+e;return jQuery.easing.easeOutBounce(f,b*2-i,0,h,i)*0.5+h*0.5+e}});
jQuery.ui||function(f){f.browser.mozilla&&parseFloat(f.browser.version);f.ui={version:"1.8rc3",plugin:{add:function(b,e,h){b=f.ui[b].prototype;for(var i in h){b.plugins[i]=b.plugins[i]||[];b.plugins[i].push([e,h[i]])}},call:function(b,e,h){if((e=b.plugins[e])&&b.element[0].parentNode)for(var i=0;i<e.length;i++)b.options[e[i][0]]&&e[i][1].apply(b.element,h)}},contains:function(b,e){return document.compareDocumentPosition?b.compareDocumentPosition(e)&16:b!==e&&b.contains(e)},hasScroll:function(b,e){if(f(b).css("overflow")==
"hidden")return false;var h=e&&e=="left"?"scrollLeft":"scrollTop",i=false;if(b[h]>0)return true;b[h]=1;i=b[h]>0;b[h]=0;return i},isOverAxis:function(b,e,h){return b>e&&b<e+h},isOver:function(b,e,h,i,m,r){return f.ui.isOverAxis(b,h,m)&&f.ui.isOverAxis(e,i,r)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,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,SHIFT:16,SPACE:32,TAB:9,UP:38}};f.fn.extend({_focus:f.fn.focus,focus:function(b,e){return typeof b==="number"?this.each(function(){var h=this;setTimeout(function(){f(h).focus();e&&e.call(h)},b)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},
scrollParent:function(){var b;b=f.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(f.curCSS(this,"position",1))&&/(auto|scroll)/.test(f.curCSS(this,"overflow",1)+f.curCSS(this,"overflow-y",1)+f.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(f.curCSS(this,"overflow",1)+f.curCSS(this,"overflow-y",1)+f.curCSS(this,"overflow-x",1))}).eq(0);
return/fixed/.test(this.css("position"))||!b.length?f(document):b},zIndex:function(b){if(b!==undefined)return this.css("zIndex",b);if(this.length){b=f(this[0]);for(var e;b.length&&b[0]!==document;){e=b.css("position");if(e=="absolute"||e=="relative"||e=="fixed"){e=parseInt(b.css("zIndex"));if(!isNaN(e)&&e!=0)return e}b=b.parent()}}return 0}});f.extend(f.expr[":"],{data:function(b,e,h){return!!f.data(b,h[3])},focusable:function(b){var e=b.nodeName.toLowerCase(),h=f.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(e)?
!b.disabled:"a"==e||"area"==e?b.href||!isNaN(h):!isNaN(h))&&!f(b)["area"==e?"parents":"closest"](":hidden").length},tabbable:function(b){var e=f.attr(b,"tabindex");return(isNaN(e)||e>=0)&&f(b).is(":focusable")}})}(jQuery);
(function(f){var b=f.fn.remove;f.fn.remove=function(e,h){return this.each(function(){if(!h)if(!e||f.filter(e,[this]).length)f("*",this).add(this).each(function(){f(this).triggerHandler("remove")});return b.call(f(this),e,h)})};f.widget=function(e,h,i){var m=e.split(".")[0],r;e=e.split(".")[1];r=m+"-"+e;if(!i){i=h;h=f.Widget}f.expr[":"][r]=function(n){return!!f.data(n,e)};f[m]=f[m]||{};f[m][e]=function(n,l){arguments.length&&this._createWidget(n,l)};h=new h;h.options=f.extend({},h.options);f[m][e].prototype=
f.extend(true,h,{namespace:m,widgetName:e,widgetEventPrefix:f[m][e].prototype.widgetEventPrefix||e,widgetBaseClass:r},i);f.widget.bridge(e,f[m][e])};f.widget.bridge=function(e,h){f.fn[e]=function(i){var m=typeof i==="string",r=Array.prototype.slice.call(arguments,1),n=this;i=!m&&r.length?f.extend.apply(null,[true,i].concat(r)):i;if(m&&i.substring(0,1)==="_")return n;m?this.each(function(){var l=f.data(this,e),p=l&&f.isFunction(l[i])?l[i].apply(l,r):l;if(p!==l&&p!==undefined){n=p;return false}}):this.each(function(){var l=
f.data(this,e);if(l){i&&l.option(i);l._init()}else f.data(this,e,new h(i,this))});return n}};f.Widget=function(e,h){arguments.length&&this._createWidget(e,h)};f.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(e,h){this.element=f(h).data(this.widgetName,this);this.options=f.extend(true,{},this.options,f.metadata&&f.metadata.get(h)[this.widgetName],e);var i=this;this.element.bind("remove."+this.widgetName,function(){i.destroy()});this._create();
this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled")},widget:function(){return this.element},option:function(e,h){var i=e,m=this;if(arguments.length===0)return f.extend({},m.options);if(typeof e==="string"){if(h===undefined)return this.options[e];i={};i[e]=h}f.each(i,
function(r,n){m._setOption(r,n)});return m},_setOption:function(e,h){this.options[e]=h;if(e==="disabled")this.widget()[h?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",h);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(e,h,i){var m=this.options[e];h=f.Event(h);h.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase();
i=i||{};if(h.originalEvent){e=f.event.props.length;for(var r;e;){r=f.event.props[--e];h[r]=h.originalEvent[r]}}this.element.trigger(h,i);return!(f.isFunction(m)&&m.call(this.element[0],h,i)===false||h.isDefaultPrevented())}}})(jQuery);
(function(f){f.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(e){return b._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(b._preventClickEvent){b._preventClickEvent=false;e.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(!b.originalEvent.mouseHandled){this._mouseStarted&&
this._mouseUp(b);this._mouseDownEvent=b;var e=this,h=b.which==1,i=typeof this.options.cancel=="string"?f(b.target).parents().add(b.target).filter(this.options.cancel).length:false;if(!h||i||!this._mouseCapture(b))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==false;if(!this._mouseStarted){b.preventDefault();
return true}}this._mouseMoveDelegate=function(m){return e._mouseMove(m)};this._mouseUpDelegate=function(m){return e._mouseUp(m)};f(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);f.browser.safari||b.preventDefault();return b.originalEvent.mouseHandled=true}},_mouseMove:function(b){if(f.browser.msie&&!b.button)return this._mouseUp(b);if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&
this._mouseDelayMet(b))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false)?this._mouseDrag(b):this._mouseUp(b);return!this._mouseStarted},_mouseUp:function(b){f(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=b.target==this._mouseDownEvent.target;this._mouseStop(b)}return false},_mouseDistanceMet:function(b){return Math.max(Math.abs(this._mouseDownEvent.pageX-
b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(f){f.widget("ui.sortable",f.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var b=this.items.length-1;b>=0;b--)this.items[b].item.removeData("sortable-item");return this},_mouseCapture:function(b,e){if(this.reverting)return false;if(this.options.disabled||this.options.type==
"static")return false;this._refreshItems(b);var h=null,i=this;f(b.target).parents().each(function(){if(f.data(this,"sortable-item")==i){h=f(this);return false}});if(f.data(b.target,"sortable-item")==i)h=f(b.target);if(!h)return false;if(this.options.handle&&!e){var m=false;f(this.options.handle,h).find("*").andSelf().each(function(){if(this==b.target)m=true});if(!m)return false}this.currentItem=h;this._removeCurrentsFromItems();return true},_mouseStart:function(b,e,h){e=this.options;this.currentContainer=
this;this.refreshPositions();this.helper=this._createHelper(b);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};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");f.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();e.containment&&this._setContainment();if(e.cursor){if(f("body").css("cursor"))this._storedCursor=f("body").css("cursor");f("body").css("cursor",e.cursor)}if(e.opacity){if(this.helper.css("opacity"))this._storedOpacity=
this.helper.css("opacity");this.helper.css("opacity",e.opacity)}if(e.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",e.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",b,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!h)for(h=this.containers.length-1;h>=0;h--)this.containers[h]._trigger("activate",b,this._uiHash(this));
if(f.ui.ddmanager)f.ui.ddmanager.current=this;f.ui.ddmanager&&!e.dropBehaviour&&f.ui.ddmanager.prepareOffsets(this,b);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(b);return true},_mouseDrag:function(b){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var e=this.options,h=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!=
"HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<e.scrollSensitivity)this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop+e.scrollSpeed;else if(b.pageY-this.overflowOffset.top<e.scrollSensitivity)this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop-e.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<e.scrollSensitivity)this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft+e.scrollSpeed;else if(b.pageX-this.overflowOffset.left<
e.scrollSensitivity)this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft-e.scrollSpeed}else{if(b.pageY-f(document).scrollTop()<e.scrollSensitivity)h=f(document).scrollTop(f(document).scrollTop()-e.scrollSpeed);else if(f(window).height()-(b.pageY-f(document).scrollTop())<e.scrollSensitivity)h=f(document).scrollTop(f(document).scrollTop()+e.scrollSpeed);if(b.pageX-f(document).scrollLeft()<e.scrollSensitivity)h=f(document).scrollLeft(f(document).scrollLeft()-e.scrollSpeed);else if(f(window).width()-
(b.pageX-f(document).scrollLeft())<e.scrollSensitivity)h=f(document).scrollLeft(f(document).scrollLeft()+e.scrollSpeed)}h!==false&&f.ui.ddmanager&&!e.dropBehaviour&&f.ui.ddmanager.prepareOffsets(this,b)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(e=this.items.length-1;e>=0;e--){h=this.items[e];var i=
h.item[0],m=this._intersectsWithPointer(h);if(m)if(i!=this.currentItem[0]&&this.placeholder[m==1?"next":"prev"]()[0]!=i&&!f.ui.contains(this.placeholder[0],i)&&(this.options.type=="semi-dynamic"?!f.ui.contains(this.element[0],i):true)){this.direction=m==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(h))this._rearrange(b,h);else break;this._trigger("change",b,this._uiHash());break}}this._contactContainers(b);f.ui.ddmanager&&f.ui.ddmanager.drag(this,b);this._trigger("sort",
b,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(b,e){if(b){f.ui.ddmanager&&!this.options.dropBehaviour&&f.ui.ddmanager.drop(this,b);if(this.options.revert){var h=this,i=h.placeholder.offset();h.reverting=true;f(this.helper).animate({left:i.left-this.offset.parent.left-h.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:i.top-this.offset.parent.top-h.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},
parseInt(this.options.revert,10)||500,function(){h._clear(b)})}else this._clear(b,e);return false}},cancel:function(){if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",null,this._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,this._uiHash(this));this.containers[b].containerCache.over=
0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();f.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?f(this.domPosition.prev).after(this.currentItem):f(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(b){var e=this._getItemsAsjQuery(b&&b.connected),h=[];b=b||{};f(e).each(function(){var i=
(f(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);if(i)h.push((b.key||i[1]+"[]")+"="+(b.key&&b.expression?i[1]:i[2]))});return h.join("&")},toArray:function(b){var e=this._getItemsAsjQuery(b&&b.connected),h=[];b=b||{};e.each(function(){h.push(f(b.item||this).attr(b.attribute||"id")||"")});return h},_intersectsWith:function(b){var e=this.positionAbs.left,h=e+this.helperProportions.width,i=this.positionAbs.top,m=i+this.helperProportions.height,r=b.left,n=r+b.width,l=
b.top,p=l+b.height,v=this.offset.click.top,w=this.offset.click.left;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>b[this.floating?"width":"height"]?i+v>l&&i+v<p&&e+w>r&&e+w<n:r<e+this.helperProportions.width/2&&h-this.helperProportions.width/2<n&&l<i+this.helperProportions.height/2&&m-this.helperProportions.height/2<p},_intersectsWithPointer:function(b){var e=f.ui.isOverAxis(this.positionAbs.top+
this.offset.click.top,b.top,b.height);b=f.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width);e=e&&b;b=this._getDragVerticalDirection();var h=this._getDragHorizontalDirection();if(!e)return false;return this.floating?h&&h=="right"||b=="down"?2:1:b&&(b=="down"?2:1)},_intersectsWithSides:function(b){var e=f.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height);b=f.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width);
var h=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return this.floating&&i?i=="right"&&b||i=="left"&&!b:h&&(h=="down"&&e||h=="up"&&!e)},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions();return this},_connectWith:function(){var b=
this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var e=[],h=[],i=this._connectWith();if(i&&b)for(b=i.length-1;b>=0;b--)for(var m=f(i[b]),r=m.length-1;r>=0;r--){var n=f.data(m[r],"sortable");if(n&&n!=this&&!n.options.disabled)h.push([f.isFunction(n.options.items)?n.options.items.call(n.element):f(n.options.items,n.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),n])}h.push([f.isFunction(this.options.items)?this.options.items.call(this.element,
null,{options:this.options,item:this.currentItem}):f(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(b=h.length-1;b>=0;b--)h[b][0].each(function(){e.push(this)});return f(e)},_removeCurrentsFromItems:function(){for(var b=this.currentItem.find(":data(sortable-item)"),e=0;e<this.items.length;e++)for(var h=0;h<b.length;h++)b[h]==this.items[e].item[0]&&this.items.splice(e,1)},_refreshItems:function(b){this.items=[];this.containers=[this];var e=this.items,
h=[[f.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):f(this.options.items,this.element),this]],i=this._connectWith();if(i)for(var m=i.length-1;m>=0;m--)for(var r=f(i[m]),n=r.length-1;n>=0;n--){var l=f.data(r[n],"sortable");if(l&&l!=this&&!l.options.disabled){h.push([f.isFunction(l.options.items)?l.options.items.call(l.element[0],b,{item:this.currentItem}):f(l.options.items,l.element),l]);this.containers.push(l)}}for(m=h.length-1;m>=0;m--){b=h[m][1];
i=h[m][0];n=0;for(r=i.length;n<r;n++){l=f(i[n]);l.data("sortable-item",b);e.push({item:l,instance:b,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var e=this.items.length-1;e>=0;e--){var h=this.items[e],i=this.options.toleranceElement?f(this.options.toleranceElement,h.item):h.item;if(!b){h.width=i.outerWidth();h.height=i.outerHeight()}i=i.offset();h.left=i.left;h.top=i.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);
else for(e=this.containers.length-1;e>=0;e--){i=this.containers[e].element.offset();this.containers[e].containerCache.left=i.left;this.containers[e].containerCache.top=i.top;this.containers[e].containerCache.width=this.containers[e].element.outerWidth();this.containers[e].containerCache.height=this.containers[e].element.outerHeight()}return this},_createPlaceholder:function(b){var e=b||this,h=e.options;if(!h.placeholder||h.placeholder.constructor==String){var i=h.placeholder;h.placeholder={element:function(){var m=
f(document.createElement(e.currentItem[0].nodeName)).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!i)m.style.visibility="hidden";return m},update:function(m,r){if(!(i&&!h.forcePlaceholderSize)){r.height()||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10));r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||
0,10))}}}}e.placeholder=f(h.placeholder.element.call(e.element,e.currentItem));e.currentItem.after(e.placeholder);h.placeholder.update(e,e.placeholder)},_contactContainers:function(b){for(var e=null,h=null,i=this.containers.length-1;i>=0;i--)if(!f.ui.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(!(e&&f.ui.contains(this.containers[i].element[0],e.element[0]))){e=this.containers[i];h=i}}else if(this.containers[i].containerCache.over){this.containers[i]._trigger("out",
b,this._uiHash(this));this.containers[i].containerCache.over=0}if(e)if(this.currentContainer!=this.containers[h]){e=1E4;i=null;for(var m=this.positionAbs[this.containers[h].floating?"left":"top"],r=this.items.length-1;r>=0;r--)if(f.ui.contains(this.containers[h].element[0],this.items[r].item[0])){var n=this.items[r][this.containers[h].floating?"left":"top"];if(Math.abs(n-m)<e){e=Math.abs(n-m);i=this.items[r]}}if(i||this.options.dropOnEmpty){this.currentContainer=this.containers[h];i?this._rearrange(b,
i,null,true):this._rearrange(b,null,this.containers[h].element,true);this._trigger("change",b,this._uiHash());this.containers[h]._trigger("change",b,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[h]._trigger("over",b,this._uiHash(this));this.containers[h].containerCache.over=1}}},_createHelper:function(b){var e=this.options;b=f.isFunction(e.helper)?f(e.helper.apply(this.element[0],[b,this.currentItem])):e.helper=="clone"?this.currentItem.clone():
this.currentItem;b.parents("body").length||f(e.appendTo!="parent"?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0]);if(b[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")};if(b[0].style.width==""||e.forceHelperSize)b.width(this.currentItem.width());if(b[0].style.height==""||e.forceHelperSize)b.height(this.currentItem.height());
return b},_adjustOffsetFromHelper:function(b){if(typeof b=="string")b=b.split(" ");if(f.isArray(b))b={left:+b[0],top:+b[1]||0};if("left"in b)this.offset.click.left=b.left+this.margins.left;if("right"in b)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if("top"in b)this.offset.click.top=b.top+this.margins.top;if("bottom"in b)this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();
var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&f.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&f.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else 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 b=this.options;if(b.containment=="parent")b.containment=this.helper[0].parentNode;if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,f(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(f(b.containment=="document"?document:window).height()||
document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)){var e=f(b.containment)[0];b=f(b.containment).offset();var h=f(e).css("overflow")!="hidden";this.containment=[b.left+(parseInt(f(e).css("borderLeftWidth"),10)||0)+(parseInt(f(e).css("paddingLeft"),10)||0)-this.margins.left,b.top+(parseInt(f(e).css("borderTopWidth"),10)||0)+(parseInt(f(e).css("paddingTop"),10)||0)-this.margins.top,b.left+(h?Math.max(e.scrollWidth,
e.offsetWidth):e.offsetWidth)-(parseInt(f(e).css("borderLeftWidth"),10)||0)-(parseInt(f(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,b.top+(h?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(f(e).css("borderTopWidth"),10)||0)-(parseInt(f(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,e){if(!e)e=this.position;var h=b=="absolute"?1:-1,i=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=
document&&f.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,m=/(html|body)/i.test(i[0].tagName);return{top:e.top+this.offset.relative.top*h+this.offset.parent.top*h-(f.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():m?0:i.scrollTop())*h),left:e.left+this.offset.relative.left*h+this.offset.parent.left*h-(f.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
m?0:i.scrollLeft())*h)}},_generatePosition:function(b){var e=this.options,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&f.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=/(html|body)/i.test(h[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var m=b.pageX,r=b.pageY;if(this.originalPosition){if(this.containment){if(b.pageX-
this.offset.click.left<this.containment[0])m=this.containment[0]+this.offset.click.left;if(b.pageY-this.offset.click.top<this.containment[1])r=this.containment[1]+this.offset.click.top;if(b.pageX-this.offset.click.left>this.containment[2])m=this.containment[2]+this.offset.click.left;if(b.pageY-this.offset.click.top>this.containment[3])r=this.containment[3]+this.offset.click.top}if(e.grid){r=this.originalPageY+Math.round((r-this.originalPageY)/e.grid[1])*e.grid[1];r=this.containment?!(r-this.offset.click.top<
this.containment[1]||r-this.offset.click.top>this.containment[3])?r:!(r-this.offset.click.top<this.containment[1])?r-e.grid[1]:r+e.grid[1]:r;m=this.originalPageX+Math.round((m-this.originalPageX)/e.grid[0])*e.grid[0];m=this.containment?!(m-this.offset.click.left<this.containment[0]||m-this.offset.click.left>this.containment[2])?m:!(m-this.offset.click.left<this.containment[0])?m-e.grid[0]:m+e.grid[0]:m}}return{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(f.browser.safari&&
this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():i?0:h.scrollTop()),left:m-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(f.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())}},_rearrange:function(b,e,h,i){h?h[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?e.item[0]:e.item[0].nextSibling);this.counter=
this.counter?++this.counter:1;var m=this,r=this.counter;window.setTimeout(function(){r==m.counter&&m.refreshPositions(!i)},0)},_clear:function(b,e){this.reverting=false;var h=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var i in this._storedCSS)if(this._storedCSS[i]=="auto"||this._storedCSS[i]=="static")this._storedCSS[i]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();
this.fromOutside&&!e&&h.push(function(m){this._trigger("receive",m,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!e)h.push(function(m){this._trigger("update",m,this._uiHash())});if(!f.ui.contains(this.element[0],this.currentItem[0])){e||h.push(function(m){this._trigger("remove",m,this._uiHash())});for(i=this.containers.length-1;i>=0;i--)if(f.ui.contains(this.containers[i].element[0],
this.currentItem[0])&&!e){h.push(function(m){return function(r){m._trigger("receive",r,this._uiHash(this))}}.call(this,this.containers[i]));h.push(function(m){return function(r){m._trigger("update",r,this._uiHash(this))}}.call(this,this.containers[i]))}}for(i=this.containers.length-1;i>=0;i--){e||h.push(function(m){return function(r){m._trigger("deactivate",r,this._uiHash(this))}}.call(this,this.containers[i]));if(this.containers[i].containerCache.over){h.push(function(m){return function(r){m._trigger("out",
r,this._uiHash(this))}}.call(this,this.containers[i]));this.containers[i].containerCache.over=0}}this._storedCursor&&f("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!e){this._trigger("beforeStop",b,this._uiHash());for(i=0;i<h.length;i++)h[i].call(this,b);this._trigger("stop",b,this._uiHash())}return false}e||
this._trigger("beforeStop",b,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!e){for(i=0;i<h.length;i++)h[i].call(this,b);this._trigger("stop",b,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){f.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(b){var e=b||this;return{helper:e.helper,placeholder:e.placeholder||f([]),position:e.position,
originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:b?b.element:null}}});f.extend(f.ui.sortable,{version:"1.8rc3"})})(jQuery);
(function(f){f.fn.tabby=function(b){var e=f.extend({},f.fn.tabby.defaults,b),h=f.fn.tabby.pressed;return this.each(function(){$this=f(this);var i=f.meta?f.extend({},e,$this.data()):e;$this.bind("keydown",function(m){var r=f.fn.tabby.catch_kc(m);if(16==r)h.shft=true;if(17==r){h.ctrl=true;setTimeout("$.fn.tabby.pressed.ctrl = false;",1E3)}if(18==r){h.alt=true;setTimeout("$.fn.tabby.pressed.alt = false;",1E3)}if(9==r&&!h.ctrl&&!h.alt){m.preventDefault();h.last=r;setTimeout("$.fn.tabby.pressed.last = null;",
0);m=f(m.target).get(0);var n=h.shft;r=m.scrollTop;if(m.setSelectionRange){var l=m.selectionStart,p=m.selectionEnd;if(l==p)if(n)if("\t"==m.value.substring(l-i.tabString.length,l)){m.value=m.value.substring(0,l-i.tabString.length)+m.value.substring(l);m.focus();m.setSelectionRange(l-i.tabString.length,l-i.tabString.length)}else{if("\t"==m.value.substring(l,l+i.tabString.length)){m.value=m.value.substring(0,l)+m.value.substring(l+i.tabString.length);m.focus();m.setSelectionRange(l,l)}}else{m.value=
m.value.substring(0,l)+i.tabString+m.value.substring(l);m.focus();m.setSelectionRange(l+i.tabString.length,l+i.tabString.length)}else{var v=m.value.split("\n"),w=[],C=0,K=0;for(var G in v){K=C+v[G].length;w.push({start:C,end:K,selected:C<=l&&K>l||K>=p&&C<p||C>l&&K<p});C=K+1}v=0;for(G in w)if(w[G].selected){C=w[G].start+v;if(n&&i.tabString==m.value.substring(C,C+i.tabString.length)){m.value=m.value.substring(0,C)+m.value.substring(C+i.tabString.length);v-=i.tabString.length}else if(!n){m.value=m.value.substring(0,
C)+i.tabString+m.value.substring(C);v+=i.tabString.length}}m.focus();m.setSelectionRange(l+(v>0?i.tabString.length:v<0?-i.tabString.length:0),p+v)}}else if(document.selection){G=document.selection.createRange();if(m==G.parentElement())if(""==G.text){if(n){n=G.getBookmark();G.moveStart("character",-i.tabString.length);if(i.tabString==G.text)G.text="";else{G.moveToBookmark(n);G.moveEnd("character",i.tabString.length);if(i.tabString==G.text)G.text=""}G.collapse(true)}else{G.text=i.tabString;G.collapse(false)}G.select()}else{p=
G.text;l=p.length;w=p.split("\r\n");p=document.body.createTextRange();p.moveToElementText(m);p.setEndPoint("EndToStart",G);C=p.text;v=C.split("\r\n");C=C.length;K=document.body.createTextRange();K.moveToElementText(m);K.setEndPoint("StartToEnd",G);K=K.text;var d=document.body.createTextRange();d.moveToElementText(m);d.setEndPoint("StartToEnd",p);var S=d.text;d=f(m).html();f("#r3").text(C+" + "+l+" + "+K.length+" = "+d.length);if(C+S.length<d.length){v.push("");C+=2;if(n&&i.tabString==w[0].substring(0,
i.tabString.length))w[0]=w[0].substring(i.tabString.length);else n||(w[0]=i.tabString+w[0])}else if(n&&i.tabString==v[v.length-1].substring(0,i.tabString.length))v[v.length-1]=v[v.length-1].substring(i.tabString.length);else n||(v[v.length-1]=i.tabString+v[v.length-1]);for(S=1;S<w.length;S++)if(n&&i.tabString==w[S].substring(0,i.tabString.length))w[S]=w[S].substring(i.tabString.length);else n||(w[S]=i.tabString+w[S]);if(1==v.length&&0==C)if(n&&i.tabString==w[0].substring(0,i.tabString.length))w[0]=
w[0].substring(i.tabString.length);else n||(w[0]=i.tabString+w[0]);C+l+K.length<d.length&&w.push("");p.text=v.join("\r\n");G.text=w.join("\r\n");n=document.body.createTextRange();n.moveToElementText(m);0<C?n.setEndPoint("StartToEnd",p):n.setEndPoint("StartToStart",p);n.setEndPoint("EndToEnd",G);n.select()}}m.scrollTop=r;return false}}).bind("keyup",function(m){if(16==f.fn.tabby.catch_kc(m))h.shft=false}).bind("blur",function(m){9==h.last&&f(m.target).one("focus",function(){h.last=null}).get(0).focus()})})};
f.fn.tabby.catch_kc=function(b){return b.keyCode?b.keyCode:b.charCode?b.charCode:b.which};f.fn.tabby.pressed={shft:false,ctrl:false,alt:false,last:null};f.fn.tabby.defaults={tabString:String.fromCharCode(9)}})(jQuery);
(function(f){f.fn.swipe=function(b){var e={threshold:{x:30,y:10},swipeLeft:function(){alert("swiped left")},swipeRight:function(){alert("swiped right")},preventDefaultEvents:true};b=f.extend(e,b);if(!this)return false;return this.each(function(){var h=f(this),i={x:0,y:0},m={x:0,y:0};this.addEventListener("touchstart",function(r){console.log("Starting swipe gesture...");i.x=r.targetTouches[0].pageX;i.y=r.targetTouches[0].pageY},false);this.addEventListener("touchmove",function(r){e.preventDefaultEvents&&
r.preventDefault();m.x=r.targetTouches[0].pageX;m.y=r.targetTouches[0].pageY},false);this.addEventListener("touchend",function(){var r=(i.y-m.y)/h.height()*100,n=(i.x-m.x)/h.width()*100;console.log("Ending swipe gesture "+n+" "+r);if(r<e.threshold.y&&r>e.threshold.y*-1){n>e.threshold.x&&b.swipeLeft();n<e.threshold.x*-1&&b.swipeRight()}},false);this.addEventListener("touchcancel",function(){console.log("Canceling swipe gesture...")},false)})}})(jQuery);window.PR_SHOULD_USE_CONTINUATION=true;
window.PR_TAB_WIDTH=8;window.PR_normalizedHtml=window.PR=window.prettyPrintOne=window.prettyPrint=void 0;window._pr_isIE6=function(){var f=navigator&&navigator.userAgent&&navigator.userAgent.match(/\bMSIE ([678])\./);f=f?+f[1]:false;window._pr_isIE6=function(){return f};return f};
(function(){function f(M){return M.replace(wa,"&amp;").replace(Da,"&lt;").replace(Ea,"&gt;")}function b(M,P){switch(M.nodeType){case 1:var aa=M.tagName.toLowerCase();P.push("<",aa);for(var ba=0;ba<M.attributes.length;++ba){var ia=M.attributes[ba];if(ia.specified){P.push(" ");b(ia,P)}}P.push(">");for(ba=M.firstChild;ba;ba=ba.nextSibling)b(ba,P);if(M.firstChild||!/^(?:br|link|img)$/.test(aa))P.push("</",aa,">");break;case 2:P.push(M.name.toLowerCase(),'="',M.value.replace(wa,"&amp;").replace(Da,"&lt;").replace(Ea,
"&gt;").replace(Fa,"&quot;"),'"');break;case 3:case 4:P.push(f(M.nodeValue));break}}function e(M){function P(R){if(R.charAt(0)!=="\\")return R.charCodeAt(0);switch(R.charAt(1)){case "b":return 8;case "t":return 9;case "n":return 10;case "v":return 11;case "f":return 12;case "r":return 13;case "u":case "x":return parseInt(R.substring(2),16)||R.charCodeAt(1);case "0":case "1":case "2":case "3":case "4":case "5":case "6":case "7":return parseInt(R.substring(1),8);default:return R.charCodeAt(1)}}function aa(R){if(R<
32)return(R<16?"\\x0":"\\x")+R.toString(16);R=String.fromCharCode(R);if(R==="\\"||R==="-"||R==="["||R==="]")R="\\"+R;return R}function ba(R){var T=R.substring(1,R.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g"));R=[];for(var Q=[],O=T[0]==="^",J=O?1:0,U=T.length;J<U;++J){var W=T[J];switch(W){case "\\B":case "\\b":case "\\D":case "\\d":case "\\S":case "\\s":case "\\W":case "\\w":R.push(W);continue}W=P(W);var pa;if(J+
2<U&&"-"===T[J+1]){pa=P(T[J+2]);J+=2}else pa=W;Q.push([W,pa]);if(!(pa<65||W>122)){pa<65||W>90||Q.push([Math.max(65,W)|32,Math.min(pa,90)|32]);pa<97||W>122||Q.push([Math.max(97,W)&-33,Math.min(pa,122)&-33])}}Q.sort(function(ya,Ia){return ya[0]-Ia[0]||Ia[1]-ya[1]});T=[];W=[NaN,NaN];for(J=0;J<Q.length;++J){U=Q[J];if(U[0]<=W[1]+1)W[1]=Math.max(W[1],U[1]);else T.push(W=U)}Q=["["];O&&Q.push("^");Q.push.apply(Q,R);for(J=0;J<T.length;++J){U=T[J];Q.push(aa(U[0]));if(U[1]>U[0]){U[1]+1>U[0]&&Q.push("-");Q.push(aa(U[1]))}}Q.push("]");
return Q.join("")}function ia(R){for(var T=R.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Q=T.length,O=[],J=0,U=0;J<Q;++J){var W=T[J];if(W==="(")++U;else if("\\"===W.charAt(0))if((W=+W.substring(1))&&W<=U)O[W]=-1}for(J=1;J<O.length;++J)if(-1===O[J])O[J]=++ea;for(U=J=0;J<Q;++J){W=T[J];if(W==="("){++U;if(O[U]===undefined)T[J]="(?:"}else if("\\"===W.charAt(0))if((W=
+W.substring(1))&&W<=U)T[J]="\\"+O[U]}for(U=J=0;J<Q;++J)if("^"===T[J]&&"^"!==T[J+1])T[J]="";if(R.ignoreCase&&na)for(J=0;J<Q;++J){W=T[J];R=W.charAt(0);if(W.length>=2&&R==="[")T[J]=ba(W);else if(R!=="\\")T[J]=W.replace(/[a-zA-Z]/g,function(pa){pa=pa.charCodeAt(0);return"["+String.fromCharCode(pa&-33,pa|32)+"]"})}return T.join("")}for(var ea=0,na=false,fa=false,la=0,ca=M.length;la<ca;++la){var ma=M[la];if(ma.ignoreCase)fa=true;else if(/[a-z]/i.test(ma.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,
""))){na=true;fa=false;break}}var ga=[];la=0;for(ca=M.length;la<ca;++la){ma=M[la];if(ma.global||ma.multiline)throw new Error(""+ma);ga.push("(?:"+ia(ma)+")")}return new RegExp(ga.join("|"),fa?"gi":"g")}function h(M){var P=0;return function(aa){for(var ba=null,ia=0,ea=0,na=aa.length;ea<na;++ea)switch(aa.charAt(ea)){case "\t":ba||(ba=[]);ba.push(aa.substring(ia,ea));ia=M-P%M;for(P+=ia;ia>=0;ia-=16)ba.push("                ".substring(0,ia));ia=ea+1;break;case "\n":P=0;break;default:++P}if(!ba)return aa;
ba.push(aa.substring(ia));return ba.join("")}}function i(M,P,aa,ba){if(P){M={source:P,basePos:M};aa(M);ba.push.apply(ba,M.decorations)}}function m(M,P){var aa={},ba;(function(){for(var na=M.concat(P),fa=[],la={},ca=0,ma=na.length;ca<ma;++ca){var ga=na[ca],R=ga[3];if(R)for(var T=R.length;--T>=0;)aa[R.charAt(T)]=ga;ga=ga[1];R=""+ga;if(!la.hasOwnProperty(R)){fa.push(ga);la[R]=null}}fa.push(/[\0-\uffff]/);ba=e(fa)})();var ia=P.length,ea=function(na){for(var fa=na.basePos,la=[fa,Z],ca=0,ma=na.source.match(ba)||
[],ga={},R=0,T=ma.length;R<T;++R){var Q=ma[R],O=ga[Q],J=void 0,U;if(typeof O==="string")U=false;else{var W=aa[Q.charAt(0)];if(W){J=Q.match(W[1]);O=W[0]}else{for(U=0;U<ia;++U){W=P[U];if(J=Q.match(W[1])){O=W[0];break}}J||(O=Z)}if((U=O.length>=5&&"lang-"===O.substring(0,5))&&!(J&&typeof J[1]==="string")){U=false;O=H}U||(ga[Q]=O)}W=ca;ca+=Q.length;if(U){U=J[1];var pa=Q.indexOf(U),ya=pa+U.length;if(J[2]){ya=Q.length-J[2].length;pa=ya-U.length}O=O.substring(5);i(fa+W,Q.substring(0,pa),ea,la);i(fa+W+pa,
U,p(O,U),la);i(fa+W+ya,Q.substring(ya),ea,la)}else la.push(fa+W,O)}na.decorations=la};return ea}function r(M){var P=[],aa=[];if(M.tripleQuotedStrings)P.push([w,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]);else M.multiLineStrings?P.push([w,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):
P.push([w,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]);M.verbatimStrings&&aa.push([w,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);if(M.hashComments)if(M.cStyleComments){P.push([K,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]);aa.push([w,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else P.push([K,/^#[^\r\n]*/,null,"#"]);if(M.cStyleComments){aa.push([K,/^\/\/[^\r\n]*/,null]);
aa.push([K,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}M.regexLiterals&&aa.push(["lang-regex",new RegExp("^"+ja+"(/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/)")]);M=M.keywords.replace(/^\s+|\s+$/g,"");M.length&&aa.push([C,new RegExp("^(?:"+M.replace(/\s+/g,"|")+")\\b"),null]);P.push([Z,/^\s+/,null," \r\n\t\u00a0"]);aa.push([d,/^@[a-z_$][a-z_$@0-9]*/i,null],[G,/^@?[A-Z]+[a-z][A-Za-z_$@0-9]*/,null],[Z,/^[a-z_$][a-z_$@0-9]*/i,null],[d,/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,
null,"0123456789"],[S,/^.[^\s\w\.$@\'\"\`\/\#]*/,null]);return m(P,aa)}function n(M){function P(U){if(U>na){if(fa&&fa!==la){ea.push("</span>");fa=null}if(!fa&&la){fa=la;ea.push('<span class="',fa,'">')}var W=f(ga(aa.substring(na,U))).replace(J?T:R,"$1&nbsp;");J=O.test(W);var pa=window._pr_isIE6()?"&nbsp;<br />":"<br />";ea.push(W.replace(Q,pa));na=U}}for(var aa=M.source,ba=M.extractedTags,ia=M.decorations,ea=[],na=0,fa=null,la=null,ca=0,ma=0,ga=h(window.PR_TAB_WIDTH),R=/([\r\n ]) /g,T=/(^| ) /gm,
Q=/\r\n?|\n/g,O=/[ \r\n]$/,J=true;;)if(ca<ba.length?ma<ia.length?ba[ca]<=ia[ma]:true:false){P(ba[ca]);if(fa){ea.push("</span>");fa=null}ea.push(ba[ca+1]);ca+=2}else if(ma<ia.length){P(ia[ma]);la=ia[ma+1];ma+=2}else break;P(aa.length);fa&&ea.push("</span>");M.prettyPrintedHtml=ea.join("")}function l(M,P){for(var aa=P.length;--aa>=0;){var ba=P[aa];if(Ja.hasOwnProperty(ba))"console"in window&&console.warn("cannot override language handler %s",ba);else Ja[ba]=M}}function p(M,P){M&&Ja.hasOwnProperty(M)||
(M=/^\s*</.test(P)?"default-markup":"default-code");return Ja[M]}function v(M){var P=M.sourceCodeHtml,aa=M.langExtension;M.prettyPrintedHtml=P;try{var ba,ia=P.match(sa);P=[];var ea=0,na=[];if(ia)for(var fa=0,la=ia.length;fa<la;++fa){var ca=ia[fa];if(ca.length>1&&ca.charAt(0)==="<"){if(!xa.test(ca))if(ra.test(ca)){P.push(ca.substring(9,ca.length-3));ea+=ca.length-12}else if(Pa.test(ca)){P.push("\n");++ea}else if(ca.indexOf(va)>=0&&ca.replace(/\s(\w+)\s*=\s*(?:\"([^\"]*)\"|'([^\']*)'|(\S+))/g,' $1="$2$3$4"').match(/[cC][lL][aA][sS][sS]=\"[^\"]*\bnocode\b/)){var ma=
ca.match(Ma)[2],ga=1,R;R=fa+1;a:for(;R<la;++R){var T=ia[R].match(Ma);if(T&&T[2]===ma)if(T[1]==="/"){if(--ga===0)break a}else++ga}if(R<la){na.push(ea,ia.slice(fa,R+1).join(""));fa=R}else na.push(ea,ca)}else na.push(ea,ca)}else{var Q;ga=ca;var O=ga.indexOf("&");if(O<0)Q=ga;else{for(--O;(O=ga.indexOf("&#",O+1))>=0;){var J=ga.indexOf(";",O);if(J>=0){var U=ga.substring(O+3,J),W=10;if(U&&U.charAt(0)==="x"){U=U.substring(1);W=16}var pa=parseInt(U,W);isNaN(pa)||(ga=ga.substring(0,O)+String.fromCharCode(pa)+
ga.substring(J+1))}}Q=ga.replace(Ca,"<").replace(ua,">").replace(qa,"'").replace(q,'"').replace(I," ").replace(F,"&")}P.push(Q);ea+=Q.length}}ba={source:P.join(""),tags:na};var ya=ba.source;M.source=ya;M.basePos=0;M.extractedTags=ba.tags;p(aa,ya)(M);n(M)}catch(Ia){if("console"in window){console.log(Ia);console.trace()}}}var w="str",C="kwd",K="com",G="typ",d="lit",S="pun",Z="pln",H="src",va="nocode",ja=function(){for(var M=["!","!=","!==","#","%","%=","&","&&","&&=","&=","(","*","*=","+=",",","-=",
"->","/","/=",":","::",";","<","<<","<<=","<=","=","==","===",">",">=",">>",">>=",">>>",">>>=","?","@","[","^","^=","^^","^^=","{","|","|=","||","||=","~","break","case","continue","delete","do","else","finally","instanceof","return","throw","try","typeof"],P="(?:^^|[+-]",aa=0;aa<M.length;++aa)P+="|"+M[aa].replace(/([^=<>:&a-z])/g,"\\$1");P+=")\\s*";return P}(),wa=/&/g,Da=/</g,Ea=/>/g,Fa=/\"/g,Ca=/&lt;/g,ua=/&gt;/g,qa=/&apos;/g,q=/&quot;/g,F=/&amp;/g,I=/&nbsp;/g,N=/[\r\n]/g,X=null,sa=new RegExp("[^<]+|<!--[\\s\\S]*?--\>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>|</?[a-zA-Z](?:[^>\"']|'[^']*'|\"[^\"]*\")*>|<",
"g"),xa=/^<\!--/,ra=/^<!\[CDATA\[/,Pa=/^<br\b/i,Ma=/^<(\/?)([a-zA-Z][a-zA-Z0-9]*)/,Na=r({keywords:"break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try typeof alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename using virtual wchar_t where break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try typeof abstract boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params partial readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try typeof debugger eval export function get null set undefined var with Infinity NaN caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END break continue do else for if return while and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None break continue do else for if return while alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self super then true undef unless until when yield BEGIN END break continue do else for if return while case done elif esac eval fi function in local set then until ",
hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true}),Ja={};l(Na,["default-code"]);l(m([],[[Z,/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],[K,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[S,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup",
"htm","html","mxml","xhtml","xml","xsl"]);l(m([[Z,/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[S,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],
["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);l(m([],[["atv",/^[\s\S]+/]]),["uq.val"]);l(r({keywords:"break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try typeof alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename using virtual wchar_t where ",
hashComments:true,cStyleComments:true}),["c","cc","cpp","cxx","cyc","m"]);l(r({keywords:"null true false"}),["json"]);l(r({keywords:"break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try typeof abstract boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params partial readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var ",
hashComments:true,cStyleComments:true,verbatimStrings:true}),["cs"]);l(r({keywords:"break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try typeof abstract boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient ",
cStyleComments:true}),["java"]);l(r({keywords:"break continue do else for if return while case done elif esac eval fi function in local set then until ",hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);l(r({keywords:"break continue do else for if return while and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None ",hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);
l(r({keywords:"caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END ",hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);l(r({keywords:"break continue do else for if return while alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self super then true undef unless until when yield BEGIN END ",hashComments:true,
multiLineStrings:true,regexLiterals:true}),["rb"]);l(r({keywords:"break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try typeof debugger eval export function get null set undefined var with Infinity NaN ",cStyleComments:true,regexLiterals:true}),["js"]);l(m([],[[w,/^[\s\S]+/]]),
["regex"]);window.PR_normalizedHtml=b;window.prettyPrintOne=function(M,P){var aa={sourceCodeHtml:M,langExtension:P};v(aa);return aa.prettyPrintedHtml};window.prettyPrint=function(M){function P(){for(var R=window.PR_SHOULD_USE_CONTINUATION?ca.now()+250:Infinity;ma<ea.length&&ca.now()<R;ma++){var T=ea[ma];if(T.className&&T.className.indexOf("prettyprint")>=0){var Q=T.className.match(/\blang-(\w+)\b/);if(Q)Q=Q[1];for(var O=false,J=T.parentNode;J;J=J.parentNode)if((J.tagName==="pre"||J.tagName==="code"||
J.tagName==="xmp")&&J.className&&J.className.indexOf("prettyprint")>=0){O=true;break}if(!O){if(null===X){O=document.createElement("PRE");O.appendChild(document.createTextNode('<!DOCTYPE foo PUBLIC "foo bar">\n<foo />'));X=!/</.test(O.innerHTML)}if(X){O=T.innerHTML;if("XMP"===T.tagName)O=f(O);else{if("PRE"===T.tagName)J=true;else if(N.test(O)){J="";if(T.currentStyle)J=T.currentStyle.whiteSpace;else if(window.getComputedStyle)J=window.getComputedStyle(T,null).whiteSpace;J=!J||J==="pre"}else J=true;
J||(O=O.replace(/(<br\s*\/?>)[\r\n]+/g,"$1").replace(/(?:[\r\n]+[ \t]*)+/g," "))}O=O}else{O=[];for(J=T.firstChild;J;J=J.nextSibling)b(J,O);O=O.join("")}O=O.replace(/(?:\r\n?|\n)$/,"");ga={sourceCodeHtml:O,langExtension:Q,sourceNode:T};v(ga);if(T=ga.prettyPrintedHtml){Q=ga.sourceNode;if("XMP"===Q.tagName){O=document.createElement("PRE");for(J=0;J<Q.attributes.length;++J){var U=Q.attributes[J];if(U.specified)if(U.name.toLowerCase()==="class")O.className=U.value;else O.setAttribute(U.name,U.value)}O.innerHTML=
T;Q.parentNode.replaceChild(O,Q);Q=O}else Q.innerHTML=T;if(aa&&Q.tagName==="PRE"){T=Q.getElementsByTagName("br");for(Q=T.length;--Q>=0;){O=T[Q];O.parentNode.replaceChild(document.createTextNode(ba),O)}}}}}}if(ma<ea.length)setTimeout(P,250);else M&&M()}for(var aa=window._pr_isIE6(),ba=aa===6?"\r\n":"\r",ia=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],ea=[],na=0;na<ia.length;++na)for(var fa=0,la=ia[na].length;fa<la;++fa)ea.push(ia[na][fa]);
ia=null;var ca=Date;ca.now||(ca={now:function(){return(new Date).getTime()}});var ma=0,ga;P()};window.PR={combinePrefixPatterns:e,createSimpleLexer:m,registerLangHandler:l,sourceDecorator:r,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:K,PR_DECLARATION:"dec",PR_KEYWORD:C,PR_LITERAL:d,PR_NOCODE:va,PR_PLAIN:Z,PR_PUNCTUATION:S,PR_SOURCE:H,PR_STRING:w,PR_TAG:"tag",PR_TYPE:G}})();var Showdown={};
Showdown.converter=function(){var f,b,e,h=0;this.makeHtml=function(q){f=[];b=[];e=[];q=q.replace(/~/g,"~T");q=q.replace(/\$/g,"~D");q=q.replace(/\r\n/g,"\n");q=q.replace(/\r/g,"\n");q="\n\n"+q+"\n\n";q=Ca(q);q=q.replace(/^[ \t]+$/mg,"");q=m(q);q=i(q);q=n(q);q=Ea(q);q=q.replace(/~D/g,"$$");return q=q.replace(/~T/g,"~")};var i=function(q){return q=q.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|\Z)/gm,function(F,I,N,X,sa){I=I.toLowerCase();f[I]=
ja(N);if(X)return X+sa;else if(sa)b[I]=sa.replace(/"/g,"&quot;");return""})},m=function(q){q=q.replace(/\n/g,"\n\n");q=q.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b[^\r]*?\n<\/\2>[ \t]*(?=\n+))/gm,r);q=q.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math)\b[^\r]*?.*<\/\2>[ \t]*(?=\n+)\n)/gm,r);q=q.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,r);q=q.replace(/(\n\n[ ]{0,3}<!(--[^\r]*?--\s*)+>[ \t]*(?=\n{2,}))/g,
r);q=q.replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,r);return q=q.replace(/\n\n/g,"\n")},r=function(q,F){var I=F;I=I.replace(/\n\n/g,"\n");I=I.replace(/^\n/,"");I=I.replace(/\n+$/g,"");return I="\n\n~K"+(e.push(I)-1)+"K\n\n"},n=function(q){q=C(q);var F=S("<hr />");q=q.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm,F);q=q.replace(/^[ ]{0,2}([ ]?\-[ ]?){3,}[ \t]*$/gm,F);q=q.replace(/^[ ]{0,2}([ ]?\_[ ]?){3,}[ \t]*$/gm,F);q=G(q);q=d(q);q=va(q);q=q=m(q);q=q.replace(/^\n+/g,"");q=q.replace(/\n+$/g,
"");var I=q.split(/\n{2,}/g);q=[];F=I.length;for(var N=0;N<F;N++){var X=I[N];if(X.search(/~K(\d+)K/g)>=0)q.push(X);else if(X.search(/\S/)>=0){X=l(X);X=X.replace(/^([ \t]*)/g,"<p>");X+="</p>";q.push(X)}}F=q.length;for(N=0;N<F;N++)for(;q[N].search(/~K(\d+)K/)>=0;){I=e[RegExp.$1];I=I.replace(/\$/g,"$$$$");q[N]=q[N].replace(/~K\d+K/,I)}return q=q.join("\n\n")},l=function(q){q=Z(q);q=q=p(q);q=q.replace(/\\(\\)/g,qa);q=q=q.replace(/\\([`*_{}\[\]()>#+-.!])/g,qa);q=q.replace(/(!\[(.*?)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,
w);q=q=q.replace(/(!\[(.*?)\]\s?\([ \t]*()<?(\S+?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,w);q=q.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,v);q=q.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\]\([ \t]*()<?(.*?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,v);q=q=q.replace(/(\[([^\[\]]+)\])()()()()()/g,v);q=wa(q);q=q=ja(q);q=q.replace(/(\*\*|__)(?=\S)([^\r]*?\S[*_]*)\1/g,"<strong>$2</strong>");q=q=q.replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g,"<em>$2</em>");return q=q.replace(/  +\n/g," <br />\n")},
p=function(q){return q=q.replace(/(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|<!(--.*?--\s*)+>)/gi,function(F){F=F.replace(/(.)<\/?code>(?=.)/g,"$1`");return F=ua(F,"\\`*_")})},v=function(q,F,I,N,X,sa,xa,ra){if(ra==undefined)ra="";q=N.toLowerCase();X=X;ra=ra;if(X==""){if(q=="")q=I.toLowerCase().replace(/ ?\n/g," ");if(f[q]!=undefined){X=f[q];if(b[q]!=undefined)ra=b[q]}else if(F.search(/\(\s*\)$/m)>-1)X="";else return F}X=ua(X,"*_");F='<a href="'+X+'"';if(ra!=""){ra=ra.replace(/"/g,"&quot;");ra=ua(ra,"*_");
F+=' title="'+ra+'"'}F+=">"+I+"</a>";return F},w=function(q,F,I,N,X,sa,xa,ra){q=I;N=N.toLowerCase();X=X;(ra=ra)||(ra="");if(X==""){if(N=="")N=q.toLowerCase().replace(/ ?\n/g," ");if(f[N]!=undefined){X=f[N];if(b[N]!=undefined)ra=b[N]}else return F}q=q.replace(/"/g,"&quot;");X=ua(X,"*_");F='<img src="'+X+'" alt="'+q+'"';ra=ra.replace(/"/g,"&quot;");ra=ua(ra,"*_");F+=' title="'+ra+'"';F+=" />";return F},C=function(q){q=q.replace(/^(.+)[ \t]*\n=+[ \t]*\n+/gm,function(F,I){return S("<h1>"+l(I)+"</h1>")});
q=q.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm,function(F,I){return S("<h2>"+l(I)+"</h2>")});return q=q.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm,function(F,I,N){F=I.length;return S("<h"+F+">"+l(N)+"</h"+F+">")})},K,G=function(q){q+="~0";var F=/^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm;if(h)q=q.replace(F,function(I,N,X){I=N;X=X.search(/[*+-]/g)>-1?"ul":"ol";I=I.replace(/\n{2,}/g,"\n\n\n");I=K(I);I=I.replace(/\s+$/,"");return"<"+X+">"+I+"</"+X+">\n"});
else{F=/(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/g;q=q.replace(F,function(I,N,X,sa){I=X;sa=sa.search(/[*+-]/g)>-1?"ul":"ol";I=I.replace(/\n{2,}/g,"\n\n\n");I=K(I);return N+"<"+sa+">\n"+I+"</"+sa+">\n"})}return q=q.replace(/~0/,"")};K=function(q){h++;q=q.replace(/\n{2,}$/,"\n");q+="~0";q=q.replace(/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+([^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm,function(F,I,N,X,sa){F=sa;if(I||F.search(/\n{2,}/)>-1)F=
n(Fa(F));else{F=G(Fa(F));F=F.replace(/\n$/,"");F=l(F)}return"<li>"+F+"</li>\n"});q=q.replace(/~0/g,"");h--;return q};var d=function(q){q+="~0";q=q.replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,function(F,I,N){F=I;F=H(Fa(F));F=Ca(F);F=F.replace(/^\n+/g,"");F=F.replace(/\n+$/g,"");return S("<pre><code>"+F+"\n</code></pre>")+N});return q=q.replace(/~0/,"")},S=function(q){q=q.replace(/(^\n+|\n+$)/g,"");return"\n\n~K"+(e.push(q)-1)+"K\n\n"},Z=function(q){return q=q.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,
function(F,I,N,X){F=X;F=F.replace(/^([ \t]*)/g,"");F=F.replace(/[ \t]*$/g,"");F=H(F);return I+"<code>"+F+"</code>"})},H=function(q){q=q.replace(/&/g,"&amp;");q=q.replace(/</g,"&lt;");q=q.replace(/>/g,"&gt;");return q=ua(q,"*_{}[]\\",false)},va=function(q){return q=q.replace(/((^[ \t]*>[ \t]?.+\n(.+\n)*\n*)+)/gm,function(F,I){var N=I;N=N.replace(/^[ \t]*>[ \t]?/gm,"~0");N=N.replace(/~0/g,"");N=N.replace(/^[ \t]+$/gm,"");N=n(N);N=N.replace(/(^|\n)/g,"$1  ");N=N.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,
function(X,sa){var xa=sa;xa=xa.replace(/^  /mg,"~0");return xa=xa.replace(/~0/g,"")});return S("<blockquote>\n"+N+"\n</blockquote>")})},ja=function(q){q=q.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;");return q=q.replace(/<(?![a-z\/?\$!])/gi,"&lt;")},wa=function(q){q=q.replace(/<((https?|ftp|dict):[^'">\s]+)>/gi,'<a href="$1">$1</a>');return q=q.replace(/<(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,function(F,I){return Da(Ea(I))})},Da=function(q){var F=[function(I){return"&#"+
I.charCodeAt(0)+";"},function(I){I=I.charCodeAt(0);return"&#x"+("0123456789ABCDEF".charAt(I>>4)+"0123456789ABCDEF".charAt(I&15))+";"},function(I){return I}];q="mailto:"+q;q=q.replace(/./g,function(I){if(I=="@")I=F[Math.floor(Math.random()*2)](I);else if(I!=":"){var N=Math.random();I=N>0.9?F[2](I):N>0.45?F[1](I):F[0](I)}return I});q='<a href="'+q+'">'+q+"</a>";return q=q.replace(/">.+:/g,'">')},Ea=function(q){return q=q.replace(/~E(\d+)E/g,function(F,I){var N=parseInt(I);return String.fromCharCode(N)})},
Fa=function(q){q=q.replace(/^(\t|[ ]{1,4})/gm,"~0");return q=q.replace(/~0/g,"")},Ca=function(q){q=q.replace(/\t(?=\t)/g,"    ");q=q.replace(/\t/g,"~A~B");q=q.replace(/~B(.+?)~A/g,function(F,I){for(var N=I,X=4-N.length%4,sa=0;sa<X;sa++)N+=" ";return N});q=q.replace(/~A/g,"    ");return q=q.replace(/~B/g,"")},ua=function(q,F,I){F="(["+F.replace(/([\[\]\\])/g,"\\$1")+"])";if(I)F="\\\\"+F;return q=q.replace(new RegExp(F,"g"),qa)},qa=function(q,F){return"~E"+F.charCodeAt(0)+"E"}};
(function(f){var b,e=/:([\w\d]+)/g,h=/\?([^#]*)$/,i=decodeURIComponent,m=function(n){return function(l,p){return this.route.apply(this,[n,l,p])}},r=[];b=function(){var n=f.makeArray(arguments),l,p;b.apps=b.apps||{};if(n.length===0||n[0]&&f.isFunction(n[0]))return b.apply(b,["body"].concat(n));else if(typeof(p=n.shift())=="string"){l=b.apps[p]||new b.Application;l.element_selector=p;n.length>0&&f.each(n,function(v,w){l.use(w)});l.element_selector!=p&&delete b.apps[p];return b.apps[l.element_selector]=
l}};b.VERSION="0.5.1";b.addLogger=function(n){r.push(n)};b.log=function(){var n=f.makeArray(arguments);n.unshift("["+Date()+"]");f.each(r,function(l,p){p.apply(b,n)})};if(typeof window.console!="undefined")f.isFunction(console.log.apply)?b.addLogger(function(){window.console.log.apply(console,arguments)}):b.addLogger(function(){window.console.log(arguments)});else typeof console!="undefined"&&b.addLogger(function(){console.log.apply(console,arguments)});b.Object=function(n){return f.extend(this,n||
{})};f.extend(b.Object.prototype,{toHash:function(){var n={};f.each(this,function(l,p){f.isFunction(p)||(n[l]=p)});return n},toHTML:function(){var n="";f.each(this,function(l,p){f.isFunction(p)||(n+="<strong>"+l+"</strong> "+p+"<br />")});return n},uuid:function(){if(typeof this._uuid=="undefined"||!this._uuid)this._uuid=(new Date).getTime()+"-"+parseInt(Math.random()*1E3,10);return this._uuid},keys:function(n){var l=[];for(var p in this)if(!f.isFunction(this[p])||!n)l.push(p);return l},has:function(n){return this[n]&&
f.trim(this[n].toString())!=""},join:function(){var n=f.makeArray(arguments),l=n.shift();return n.join(l)},log:function(){b.log.apply(b,arguments)},toString:function(n){var l=[];f.each(this,function(p,v){if(!f.isFunction(v)||n)l.push('"'+p+'": '+v.toString())});return"Sammy.Object: {"+l.join(",")+"}"}});b.HashLocationProxy=function(n,l){this.app=n;if("onhashchange"in window){b.log("native hash change exists, using");this.is_native=true}else{b.log("no native hash change, falling back to polling");
this.is_native=false;this._startPolling(l)}};b.HashLocationProxy.prototype={bind:function(){var n=this.app;f(window).bind("hashchange."+this.app.eventNamespace(),function(){n.trigger("location-changed")})},unbind:function(){f(window).die("hashchange."+this.app.eventNamespace())},getLocation:function(){var n=window.location.toString().match(/^[^#]*(#.+)$/);return n?n[1]:""},setLocation:function(n){return window.location=n},_startPolling:function(n){var l=this;if(!b.HashLocationProxy._interval){n||
(n=10);var p=function(){current_location=l.getLocation();if(!b.HashLocationProxy._last_location||current_location!=b.HashLocationProxy._last_location)setTimeout(function(){f(window).trigger("hashchange")},1);b.HashLocationProxy._last_location=current_location};p();b.HashLocationProxy._interval=setInterval(p,n);f(window).bind("beforeunload",function(){clearInterval(b.HashLocationProxy._interval)})}}};b.DataLocationProxy=function(n,l){this.app=n;this.data_name=l||"sammy-location"};b.DataLocationProxy.prototype=
{bind:function(){var n=this;this.app.$element().bind("setData",function(l,p){p==n.data_name&&n.app.trigger("location-changed")})},unbind:function(){this.app.$element().die("setData")},getLocation:function(){return this.app.$element().data(this.data_name)},setLocation:function(n){return this.app.$element().data(this.data_name,n)}};b.Application=function(n){var l=this;this.routes={};this.listeners=new b.Object({});this.arounds=[];this.befores=[];this.namespace=this.uuid();this.context_prototype=function(){b.EventContext.apply(this,
arguments)};this.context_prototype.prototype=new b.EventContext;f.isFunction(n)&&n.apply(this,[this]);if(!this.location_proxy)this.location_proxy=new b.HashLocationProxy(l,this.run_interval_every);this.debug&&this.bindToAllEvents(function(p,v){l.log(l.toString(),p.cleaned_type,v||{})})};b.Application.prototype=f.extend({},b.Object.prototype,{ROUTE_VERBS:["get","post","put","delete"],APP_EVENTS:["run","unload","lookup-route","run-route","route-found","event-context-before","event-context-after","changed",
"error","check-form-submission","redirect"],_last_route:null,_running:false,element_selector:"body",debug:false,raise_errors:false,run_interval_every:50,location_proxy:null,template_engine:null,toString:function(){return"Sammy.Application:"+this.element_selector},$element:function(){return f(this.element_selector)},use:function(){var n=f.makeArray(arguments),l=n.shift();try{n.unshift(this);l.apply(this,n)}catch(p){if(typeof l=="undefined")this.error("Plugin Error: called use() but plugin is not defined",
p);else f.isFunction(l)?this.error("Plugin Error",p):this.error("Plugin Error: called use() but '"+l.toString()+"' is not a function",p)}return this},route:function(n,l,p){var v=this,w=[],C;if(!p&&f.isFunction(l)){p=l=n;n="any"}n=n.toLowerCase();if(l.constructor==String){for(e.lastIndex=0;(path_match=e.exec(l))!==null;)w.push(path_match[1]);l=new RegExp("^"+l.replace(e,"([^/]+)")+"$")}if(typeof p=="string")p=v[p];C=function(K){var G={verb:K,path:l,callback:p,param_names:w};v.routes[K]=v.routes[K]||
[];v.routes[K].push(G)};n==="any"?f.each(this.ROUTE_VERBS,function(K,G){C(G)}):C(n);return this},get:m("get"),post:m("post"),put:m("put"),del:m("delete"),any:m("any"),mapRoutes:function(n){var l=this;f.each(n,function(p,v){l.route.apply(l,v)});return this},eventNamespace:function(){return["sammy-app",this.namespace].join("-")},bind:function(n,l,p){var v=this;if(typeof p=="undefined")p=l;l=function(w,C){var K;if(C&&C.context){K=C.context;delete C.context}else K=new v.context_prototype(v,"bind",w.type,
C);w.cleaned_type=w.type.replace(v.eventNamespace(),"");p.apply(K,[w,C])};this.listeners[n]||(this.listeners[n]=[]);this.listeners[n].push(l);this.isRunning()&&this._listen(n,l);return this},trigger:function(n,l){this.$element().trigger([n,this.eventNamespace()].join("."),[l]);return this},refresh:function(){this.last_location=null;this.trigger("location-changed");return this},before:function(n,l){if(f.isFunction(n)){l=n;n={}}this.befores.push([n,l]);return this},after:function(n){return this.bind("event-context-after",
n)},around:function(n){this.arounds.push(n);return this},isRunning:function(){return this._running},helpers:function(n){f.extend(this.context_prototype.prototype,n);return this},helper:function(n,l){this.context_prototype.prototype[n]=l;return this},run:function(n){if(this.isRunning())return false;var l=this;f.each(this.listeners.toHash(),function(p,v){f.each(v,function(w,C){l._listen(p,C)})});this.trigger("run",{start_url:n});this._running=true;this.last_location=null;this.getLocation()==""&&typeof n!=
"undefined"&&this.setLocation(n);this._checkLocation();this.location_proxy.bind();this.bind("location-changed",function(){l._checkLocation()});this.bind("submit",function(p){return l._checkFormSubmission(f(p.target).closest("form"))===false?p.preventDefault():false});f(window).bind("beforeunload",function(){l.unload()});return this.trigger("changed")},unload:function(){if(!this.isRunning())return false;var n=this;this.trigger("unload");this.location_proxy.unbind();this.$element().unbind("submit").removeClass(n.eventNamespace());
f.each(this.listeners.toHash(),function(l,p){f.each(p,function(v,w){n._unlisten(l,w)})});this._running=false;return this},bindToAllEvents:function(n){var l=this;f.each(this.APP_EVENTS,function(p,v){l.bind(v,n)});f.each(this.listeners.keys(true),function(p,v){l.APP_EVENTS.indexOf(v)==-1&&l.bind(v,n)});return this},routablePath:function(n){return n.replace(h,"")},lookupRoute:function(n,l){var p=this,v=false;this.trigger("lookup-route",{verb:n,path:l});typeof this.routes[n]!="undefined"&&f.each(this.routes[n],
function(w,C){if(p.routablePath(l).match(C.path)){v=C;return false}});return v},runRoute:function(n,l,p){var v=this,w=this.lookupRoute(n,l),C,K,G,d,S,Z,H;this.log("runRoute",[n,l].join(" "));this.trigger("run-route",{verb:n,path:l,params:p});if(typeof p=="undefined")p={};f.extend(p,this._parseQueryString(l));if(w){this.trigger("route-found",{route:w});if((path_params=w.path.exec(this.routablePath(l)))!==null){path_params.shift();f.each(path_params,function(ja,wa){if(w.param_names[ja])p[w.param_names[ja]]=
i(wa);else{if(!p.splat)p.splat=[];p.splat.push(i(wa))}})}C=new this.context_prototype(this,n,l,p);G=this.arounds.slice(0);d=this.befores.slice(0);Z=[C].concat(p.splat);K=function(){for(var ja;d.length>0;){S=d.shift();if(v.contextMatchesOptions(C,S[0])){ja=S[1].apply(C,[C]);if(ja===false)return false}}v.last_route=w;C.trigger("event-context-before",{context:C});ja=w.callback.apply(C,Z);C.trigger("event-context-after",{context:C});return ja};f.each(G.reverse(),function(ja,wa){var Da=K;K=function(){return wa.apply(C,
[Da])}});try{H=K()}catch(va){this.error(["500 Error",n,l].join(" "),va)}return H}else return this.notFound(n,l)},contextMatchesOptions:function(n,l,p){l=l;if(typeof l==="undefined"||l=={})return true;if(typeof p==="undefined")p=true;if(typeof l==="string"||f.isFunction(l.test))l={path:l};if(l.only)return this.contextMatchesOptions(n,l.only,true);else if(l.except)return this.contextMatchesOptions(n,l.except,false);var v=true,w=true;if(l.path)v=f.isFunction(l.path.test)?l.path.test(n.path):l.path.toString()===
n.path;if(l.verb)w=l.verb===n.verb;return p?w&&v:!(w&&v)},getLocation:function(){return this.location_proxy.getLocation()},setLocation:function(n){return this.location_proxy.setLocation(n)},swap:function(n){return this.$element().html(n)},notFound:function(n,l){var p=this.error(["404 Not Found",n,l].join(" "));return n==="get"?p:true},error:function(n,l){l||(l=new Error);l.message=[n,l.message].join(" ");this.trigger("error",{message:l.message,error:l});if(this.raise_errors)throw l;else this.log(l.message,
l)},_checkLocation:function(){var n,l;n=this.getLocation();if(n!=this.last_location)l=this.runRoute("get",n);this.last_location=n;return l},_checkFormSubmission:function(n){var l,p;this.trigger("check-form-submission",{form:n});l=f(n);n=l.attr("action");p=f.trim(l.attr("method").toString().toLowerCase());if(!p||p=="")p="get";this.log("_checkFormSubmission",l,n,p);l=f.extend({},this._parseFormParams(l),{$form:l});n=this.runRoute(p,n,l);return typeof n=="undefined"?false:n},_parseFormParams:function(n){var l=
{};f.each(n.serializeArray(),function(p,v){if(l[v.name])if(f.isArray(l[v.name]))l[v.name].push(v.value);else l[v.name]=[l[v.name],v.value];else l[v.name]=v.value});return l},_parseQueryString:function(n){var l={},p,v;if(n=n.match(h)){n=n[1].split("&");for(v=0;v<n.length;v+=1){p=n[v].split("=");l[p[0]]=i(p[1])}}return l},_listen:function(n,l){return this.$element().bind([n,this.eventNamespace()].join("."),l)},_unlisten:function(n,l){return this.$element().unbind([n,this.eventNamespace()].join("."),
l)}});b.EventContext=function(n,l,p,v){this.app=n;this.verb=l;this.path=p;this.params=new b.Object(v)};b.EventContext.prototype=f.extend({},b.Object.prototype,{$element:function(){return this.app.$element()},partial:function(n,l,p){var v,w,C,K="partial:"+n,G=this;if(w=n.match(/\.([^\.]+)$/))w=w[1];if((!w||!f.isFunction(G[w]))&&this.app.template_engine)w=this.app.template_engine;if(w&&!f.isFunction(w)&&f.isFunction(G[w]))w=G[w];if(!p&&f.isFunction(l)){p=l;l={}}C=f.isArray(l)?l:[l||{}];v=function(d){var S=
d,Z="";f.each(C,function(H,va){f.extend(va,G);if(f.isFunction(w))S=w.apply(G,[d,va]);Z+=S;if(p)return p.apply(G,[S,H])});p||G.swap(Z);G.trigger("changed")};this.app.cache_partials&&this.cache(K)?v.apply(G,[this.cache(K)]):f.get(n,function(d){G.app.cache_partials&&G.cache(K,d);v.apply(G,[d])})},redirect:function(){var n;n=f.makeArray(arguments);var l=this.app.getLocation();if(n.length>1){n.unshift("/");n=this.join.apply(this,n)}else n=n[0];this.trigger("redirect",{to:n});this.app.last_location=this.path;
this.app.setLocation(n);l==n&&this.app.trigger("location-changed")},trigger:function(n,l){if(typeof l=="undefined")l={};if(!l.context)l.context=this;return this.app.trigger(n,l)},eventNamespace:function(){return this.app.eventNamespace()},swap:function(n){return this.app.swap(n)},notFound:function(){return this.app.notFound(this.verb,this.path)},toString:function(){return"Sammy.EventContext: "+[this.verb,this.path,this.params].join(" ")}});f.sammy=window.Sammy=b})(jQuery);
(function(f){Sammy=Sammy||{};Sammy.Store=function(b){this.options=b||{};this.name=this.options.name||"store";this.element=this.options.element||"body";this.$element=f(this.element);this.type=this.options.type||"memory";this.meta_key=this.options.meta_key||"__keys__";this.storage=new Sammy.Store[Sammy.Store.stores[this.type]](this.name,this.element,this.options)};Sammy.Store.stores={memory:"Memory",data:"Data",local:"LocalStorage",session:"SessionStorage",cookie:"Cookie"};f.extend(Sammy.Store.prototype,
{isAvailable:function(){if(f.isFunction(this.storage.isAvailable))return this.storage.isAvailable()},exists:function(b){return this.storage.exists(b)},set:function(b,e){var h=typeof e=="string"?e:JSON.stringify(e);b=b.toString();this.storage.set(b,h);if(b!=this.meta_key){this._addKey(b);this.$element.trigger("set-"+this.name+"."+b,{key:b,value:e})}return e},get:function(b){b=this.storage.get(b);if(typeof b=="undefined"||b==null||b=="")return b;try{return JSON.parse(b)}catch(e){return b}},clear:function(b){this._removeKey(b);
return this.storage.clear(b)},clearAll:function(){var b=this;f.each(this.keys(),function(e,h){b.clear(h)})},keys:function(){return this.get(this.meta_key)||[]},fetch:function(b,e){return this.exists(b)?this.get(b):this.set(b,e.apply(this))},load:function(b,e,h){var i=this;f.get(e,function(m){i.set(b,m);h&&h.apply(this,[m])})},_addKey:function(b){var e=this.keys();f.inArray(b,e)==-1&&e.push(b);this.set(this.meta_key,e)},_removeKey:function(b){var e=this.keys();b=f.inArray(b,e);b!=-1&&e.splice(b,1);
this.set(this.meta_key,e)}});Sammy.Store.isAvailable=function(b){try{return Sammy.Store[Sammy.Store.stores[b]].prototype.isAvailable()}catch(e){return false}};Sammy.Store.Memory=function(b,e){this.name=b;this.element=e;this.namespace=[this.element,this.name].join(".");Sammy.Store.Memory.store=Sammy.Store.Memory.store||{};Sammy.Store.Memory.store[this.namespace]=Sammy.Store.Memory.store[this.namespace]||{};this.store=Sammy.Store.Memory.store[this.namespace]};f.extend(Sammy.Store.Memory.prototype,{isAvailable:function(){return true},
exists:function(b){return typeof this.store[b]!="undefined"},set:function(b,e){return this.store[b]=e},get:function(b){return this.store[b]},clear:function(b){delete this.store[b]}});Sammy.Store.Data=function(b,e){this.name=b;this.element=e;this.$element=f(e)};f.extend(Sammy.Store.Data.prototype,{isAvailable:function(){return true},exists:function(b){return typeof this.$element.data(this._key(b))!="undefined"},set:function(b,e){return this.$element.data(this._key(b),e)},get:function(b){return this.$element.data(this._key(b))},
clear:function(b){this.$element.removeData(this._key(b))},_key:function(b){return["store",this.name,b].join(".")}});Sammy.Store.LocalStorage=function(b,e){this.name=b;this.element=e};f.extend(Sammy.Store.LocalStorage.prototype,{isAvailable:function(){return"localStorage"in window&&window.location.protocol!="file:"},exists:function(b){return this.get(b)!=null},set:function(b,e){return window.localStorage.setItem(this._key(b),e)},get:function(b){return window.localStorage.getItem(this._key(b))},clear:function(b){window.localStorage.removeItem(this._key(b))},
_key:function(b){return["store",this.element,this.name,b].join(".")}});Sammy.Store.SessionStorage=function(b,e){this.name=b;this.element=e};f.extend(Sammy.Store.SessionStorage.prototype,{isAvailable:function(){return"sessionStorage"in window&&window.location.protocol!="file:"&&f.isFunction(window.sessionStorage.setItem)},exists:function(b){return this.get(b)!=null},set:function(b,e){return window.sessionStorage.setItem(this._key(b),e)},get:function(b){if((b=window.sessionStorage.getItem(this._key(b)))&&
typeof b.value!="undefined")b=b.value;return b},clear:function(b){window.sessionStorage.removeItem(this._key(b))},_key:function(b){return["store",this.element,this.name,b].join(".")}});Sammy.Store.Cookie=function(b,e,h){this.name=b;this.element=e;this.options=h||{};this.path=this.options.path||"/";this.expires_in=this.options.expires_in||1209600};f.extend(Sammy.Store.Cookie.prototype,{isAvailable:function(){return"cookie"in document&&window.location.protocol!="file:"},exists:function(b){return this.get(b)!=
null},set:function(b,e){return this._setCookie(b,e)},get:function(b){return this._getCookie(b)},clear:function(b){this._setCookie(b,"",-1)},_key:function(b){return["store",this.element,this.name,b].join(".")},_getCookie:function(b){b=this._key(b).replace(/(\.|\*|\(|\)|\[|\])/g,"\\$1");return(b=document.cookie.match("(^|;\\s)"+b+"=([^;]*)(;|$)"))?b[2]:null},_setCookie:function(b,e,h){h||(h=this.expires_in*1E3);var i=new Date;i.setTime(i.getTime()+h);b=[this._key(b),"=",e,"; expires=",i.toGMTString(),
"; path=",this.path].join("");document.cookie=b}});Sammy.Storage=function(){this.use(Sammy.JSON);this.stores=this.stores||{};this.store=function(b,e){if(typeof this.stores[b]=="undefined"){var h="clear"+b.substr(0,1).toUpperCase()+b.substr(1);this.stores[b]=new Sammy.Store(f.extend({name:b,element:this.element_selector},e||{}));this[b]=function(i,m){return typeof m=="undefined"?this.stores[b].get(i):f.isFunction(m)?this.stores[b].fetch(i,m):this.stores[b].set(i,m)};this[h]=function(){return this.stores[b].clearAll()};
this.helper(b,function(){return this.app[b].apply(this.app,arguments)});this.helper(h,function(){return this.app[h]()})}return this.stores[b]};this.helpers({store:function(){return this.app.store.apply(this.app,arguments)}})};Sammy.Session=function(b,e){this.use(Sammy.Storage);var h="memory";if(Sammy.Store.isAvailable("local"))h="local";else if(Sammy.Store.isAvailable("cookie"))h="cookie";this.store("session",f.extend({type:h},e))};Sammy.Cache=function(b,e){this.use(Sammy.Storage);this.cache_partials=
true;var h="memory";if(Sammy.Store.isAvailable("local"))h="local";else if(Sammy.Store.isAvailable("session"))h="session";this.store("cache",f.extend({type:h},e))}})(jQuery);
(function(f){var b={};Sammy=Sammy||{};Sammy.Template=function(e,h){h||(h="template");e.helper(h,function(i,m,r){if(typeof r=="undefined")r=i;a:{r=r;m=f.extend({},this,m);var n,l;if(b[r])n=b[r];else{if(typeof i=="undefined"){i=false;break a}try{l="var p=[],print=function(){p.push.apply(p,arguments);};";l+='with(obj){p.push("';l+=i.replace(/[\r\t\n]/g," ").replace(/\"/g,'\\"').split("<%").join("\t").replace(/((^|%>)[^\t]*)/g,"$1\r").replace(/\t=(.*?)%>/g,'",$1,"').split("\t").join('");').split("%>").join('p.push("').split("\r").join("");
l+="\");}return p.join('');";n=b[r]=new Function("obj",l)}catch(p){Sammy.log(p)}}i=typeof m!="undefined"?n(m):n}return i})}})(jQuery);
(function(f){function b(h){h=unescape(h);return h==="true"?true:h==="false"?false:h}function e(h,i,m){var r;if(i.match(/^[^\[]+$/))m[i]=b(h);else if(r=i.match(/^([^\[]+)\[\](.*)$/)){i=r[1];r=r[2];if(m[i]&&!f.isArray(m[i]))throw"400 Bad Request";if(r){r=r.match(/^\[([^\]]+)\](.*)$/);if(!r)throw"400 Bad Request";if(m[i])m[i][m[i].length-1][r[1]]?m[i].push(e(h,r[1]+r[2],{})):f.extend(true,m[i][m[i].length-1],e(h,r[1]+r[2],{}));else m[i]=[e(h,r[1]+r[2],{})]}else if(m[i])m[i].push(b(h));else m[i]=[b(h)]}else if(r=
i.match(/^([^\[]+)\[([^\[]+)\](.*)$/)){i=r[1];r=r[2]+r[3];if(m[i]&&f.isArray(m[i]))throw"400 Bad Request";if(m[i])f.extend(true,m[i],e(h,r,m[i]));else m[i]=e(h,r,{})}return m}Sammy=Sammy||{};Sammy.NestedParams=function(h){f.extend(h,{_parseFormParams:function(i){var m={};f.each(i.serializeArray(),function(r,n){f.extend(true,m,e(n.value,n.name,m))});return m}})}})(jQuery);
(function(f){function b(h,i){if(typeof i==="undefined")return"";else if(f.isFunction(i))i=i.apply(h);return i.toString()}function e(h,i,m){var r="<";r+=h;typeof i!="undefined"&&f.each(i,function(n,l){if(l!=null){r+=" "+n+"='";r+=b(i,l).replace(/\'/g,"'");r+="'"}});if(m===false)r+=">";else if(typeof m!="undefined"){r+=">";r+=b(this,m);r+="</"+h+">"}else r+=" />";return r}Sammy=Sammy||{};Sammy.FormBuilder=function(h,i){this.name=h;this.object=i};f.extend(Sammy.FormBuilder.prototype,{open:function(h){return e("form",
f.extend({method:"post",action:"#/"+this.name+"s"},h),false)},close:function(){return"</form>"},label:function(h,i,m){h={"for":this._attributesForKeyPath(h).name};return e("label",f.extend(h,m),i)},hidden:function(h,i){i=f.extend({type:"hidden"},this._attributesForKeyPath(h),i);return e("input",i)},text:function(h,i){i=f.extend({type:"text"},this._attributesForKeyPath(h),i);return e("input",i)},textarea:function(h,i){var m;i=f.extend(this._attributesForKeyPath(h),i);m=i.value;delete i.value;return e("textarea",
i,m)},password:function(h,i){return this.text(h,f.extend({type:"password"},i))},select:function(h,i,m){var r="",n;m=f.extend(this._attributesForKeyPath(h),m);n=m.value;delete m.value;f.each(i,function(l,p){var v,w,C;if(f.isArray(p)){v=p[1];w=p[0]}else w=v=p;C={value:b(this.object,v)};if(v===n)C.selected="selected";r+=e("option",C,w)});return e("select",m,r)},radio:function(h,i,m){m=f.extend(this._attributesForKeyPath(h),m);h=m.value;m.value=b(this.object,i);if(h==m.value)m.checked="checked";return e("input",
f.extend({type:"radio"},m))},checkbox:function(h,i,m){var r="";m||(m={});if(m.hidden_element!==false)r+=this.hidden(h,{value:!i});delete m.hidden_element;r+=this.radio(h,i,f.extend({type:"checkbox"},m));return r},submit:function(h){return e("input",f.extend({type:"submit"},h))},_attributesForKeyPath:function(h){h=f.isArray(h)?h:h.split(/\./);var i=this.name,m=this.object,r=this.name;f.each(h,function(n,l){m=typeof m==="undefined"||m==""?"":typeof l=="number"||l.match(/^\d+$/)?m[parseInt(l,10)]:m[l];
i+="["+l+"]";r+="-"+l});return{name:i,value:b(this.object,m),"class":r}}});Sammy.Form=function(h){h.helpers({simple_element:e,formFor:function(i,m,r){if(f.isFunction(m)){r=m;m=this[i]}i=new Sammy.FormBuilder(i,m);r.apply(this,[i]);return i}})}})(jQuery);
(function(f){Sammy=Sammy||{};Sammy.Title=function(){this.setTitle=function(b){this.title_function=f.isFunction(b)?b:function(e){return[b,e].join(" ")}};this.helper("title",function(){var b=f.makeArray(arguments).join(" ");if(this.app.title_function)b=this.app.title_function(b);document.title=b})}})(jQuery);

