From 6c06d1143c1844cbf915dcf6d2881de54968701e Mon Sep 17 00:00:00 2001 From: Armadillo Build Script Date: Sat, 6 Oct 2012 14:09:37 -0400 Subject: [PATCH] Stamp version.js @ 642.28 --- frontend/armadillo.js | 207 +++++++++++++++++++++++++++++++++++++++++- frontend/version.js | 4 +- 2 files changed, 207 insertions(+), 4 deletions(-) diff --git a/frontend/armadillo.js b/frontend/armadillo.js index cb1691d..a6d82ba 100644 --- a/frontend/armadillo.js +++ b/frontend/armadillo.js @@ -1,2 +1,205 @@ -/* I will be replaced on the next `make dist` with compiled JavaScript. */ -// This is a test. +(function(r,p){function K(a){var b=Ga[a]={},d,e;a=a.split(/\s+/);d=0;for(e=a.length;d=0===d})}function Ha(a){var b=Ia.split("|");a=a.createDocumentFragment();if(a.createElement)for(;b.length;)a.createElement(b.pop());return a}function Ja(a,b){if(!(b.nodeType!==1||!c.hasData(a))){var d,e,f;e=c._data(a);var g=c._data(b,e),i=e.events;if(i){delete g.handle;g.events={};for(d in i){e=0;for(f=i[d].length;e0){if(d!=="border")for(;g").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){if(!V){V=C.createElement("iframe");V.frameBorder=V.width=V.height=0}b.appendChild(V);if(!ia||!V.createElement){ia= +(V.contentWindow||V.contentDocument).document;ia.write((C.compatMode==="CSS1Compat"?"":"")+"");ia.close()}d=ia.createElement(a);ia.body.appendChild(d);e=c.css(d,"display");b.removeChild(V)}ya[a]=e}return ya[a]}function za(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var C=r.document,Bb=r.navigator,Cb=r.location,c=function(){function a(){if(!b.isReady){try{C.documentElement.doScroll("left")}catch(k){setTimeout(a,1);return}b.ready()}}var b= +function(k,v){return new b.fn.init(k,v,f)},d=r.jQuery,e=r.$,f,g=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,i=/\S/,l=/^\s+/,m=/\s+$/,q=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,x=/^[\],:{}\s]*$/,u=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,B=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,y=/(?:^|:|,)(?:\s*\[)+/g,G=/(webkit)[ \/]([\w.]+)/,J=/(opera)(?:.*version)?[ \/]([\w.]+)/,O=/(msie) ([\w.]+)/,L=/(mozilla)(?:.*? rv:([\w.]+))?/,Y=/-([a-z]|[0-9])/ig,R=/^-ms-/,H=function(k,v){return(v+"").toUpperCase()}, +T=Bb.userAgent,h,j,n=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=Array.prototype.push,t=Array.prototype.slice,D=String.prototype.trim,z=Array.prototype.indexOf,I={};b.fn=b.prototype={constructor:b,init:function(k,v,A){var w;if(!k)return this;if(k.nodeType){this.context=this[0]=k;this.length=1;return this}if(k==="body"&&!v&&C.body){this.context=C;this[0]=C.body;this.selector=k;this.length=1;return this}if(typeof k==="string")if((w=k.charAt(0)==="<"&&k.charAt(k.length-1)===">"&&k.length>= +3?[null,k,null]:g.exec(k))&&(w[1]||!v))if(w[1]){A=(v=v instanceof b?v[0]:v)?v.ownerDocument||v:C;if(k=q.exec(k))if(b.isPlainObject(v)){k=[C.createElement(k[1])];b.fn.attr.call(k,v,true)}else k=[A.createElement(k[1])];else{k=b.buildFragment([w[1]],[A]);k=(k.cacheable?b.clone(k.fragment):k.fragment).childNodes}return b.merge(this,k)}else{if((v=C.getElementById(w[2]))&&v.parentNode){if(v.id!==w[2])return A.find(k);this.length=1;this[0]=v}this.context=C;this.selector=k;return this}else return!v||v.jquery? +(v||A).find(k):this.constructor(v).find(k);else if(b.isFunction(k))return A.ready(k);if(k.selector!==p){this.selector=k.selector;this.context=k.context}return b.makeArray(k,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return t.call(this,0)},get:function(k){return k==null?this.toArray():k<0?this[this.length+k]:this[k]},pushStack:function(k,v,A){var w=this.constructor();b.isArray(k)?s.apply(w,k):b.merge(w,k);w.prevObject=this;w.context=this.context; +if(v==="find")w.selector=this.selector+(this.selector?" ":"")+A;else if(v)w.selector=this.selector+"."+v+"("+A+")";return w},each:function(k,v){return b.each(this,k,v)},ready:function(k){b.bindReady();h.add(k);return this},eq:function(k){k=+k;return k===-1?this.slice(k):this.slice(k,k+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(t.apply(this,arguments),"slice",t.call(arguments).join(","))},map:function(k){return this.pushStack(b.map(this, +function(v,A){return k.call(v,A,v)}))},end:function(){return this.prevObject||this.constructor(null)},push:s,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var k,v,A,w,F,E=arguments[0]||{},M=1,P=arguments.length,ba=false;if(typeof E==="boolean"){ba=E;E=arguments[1]||{};M=2}if(typeof E!=="object"&&!b.isFunction(E))E={};if(P===M){E=this;--M}for(;M0)){h.fireWith(C,[b]);b.fn.trigger&&b(C).trigger("ready").off("ready")}}}, +bindReady:function(){if(!h){h=b.Callbacks("once memory");if(C.readyState==="complete")return setTimeout(b.ready,1);if(C.addEventListener){C.addEventListener("DOMContentLoaded",j,false);r.addEventListener("load",b.ready,false)}else if(C.attachEvent){C.attachEvent("onreadystatechange",j);r.attachEvent("onload",b.ready);var k=false;try{k=r.frameElement==null}catch(v){}C.documentElement.doScroll&&k&&a()}}},isFunction:function(k){return b.type(k)==="function"},isArray:Array.isArray||function(k){return b.type(k)=== +"array"},isWindow:function(k){return k&&typeof k==="object"&&"setInterval"in k},isNumeric:function(k){return!isNaN(parseFloat(k))&&isFinite(k)},type:function(k){return k==null?String(k):I[n.call(k)]||"object"},isPlainObject:function(k){if(!k||b.type(k)!=="object"||k.nodeType||b.isWindow(k))return false;try{if(k.constructor&&!o.call(k,"constructor")&&!o.call(k.constructor.prototype,"isPrototypeOf"))return false}catch(v){return false}var A;for(A in k);return A===p||o.call(k,A)},isEmptyObject:function(k){for(var v in k)return false; +return true},error:function(k){throw Error(k);},parseJSON:function(k){if(typeof k!=="string"||!k)return null;k=b.trim(k);if(r.JSON&&r.JSON.parse)return r.JSON.parse(k);if(x.test(k.replace(u,"@").replace(B,"]").replace(y,"")))return(new Function("return "+k))();b.error("Invalid JSON: "+k)},parseXML:function(k){var v,A;try{if(r.DOMParser){A=new DOMParser;v=A.parseFromString(k,"text/xml")}else{v=new ActiveXObject("Microsoft.XMLDOM");v.async="false";v.loadXML(k)}}catch(w){v=p}if(!v||!v.documentElement|| +v.getElementsByTagName("parsererror").length)b.error("Invalid XML: "+k);return v},noop:function(){},globalEval:function(k){if(k&&i.test(k))(r.execScript||function(v){r.eval.call(r,v)})(k)},camelCase:function(k){return k.replace(R,"ms-").replace(Y,H)},nodeName:function(k,v){return k.nodeName&&k.nodeName.toUpperCase()===v.toUpperCase()},each:function(k,v,A){var w,F=0,E=k.length,M=E===p||b.isFunction(k);if(A)if(M)for(w in k){if(v.apply(k[w],A)===false)break}else for(;F0&&k[0]&&k[P-1]||P===0||b.isArray(k)))for(;M1?Aa.call(arguments,0):u;--l||m.resolveWith(m,e)}}function d(x){return function(u){i[x]=arguments.length>1?Aa.call(arguments,0):u;m.notifyWith(q, +i)}}var e=Aa.call(arguments,0),f=0,g=e.length,i=Array(g),l=g,m=g<=1&&a&&c.isFunction(a.promise)?a:c.Deferred(),q=m.promise();if(g>1){for(;f
a"; +b=m.getElementsByTagName("*");d=m.getElementsByTagName("a")[0];if(!b||!b.length||!d)return{};e=C.createElement("select");f=e.appendChild(C.createElement("option"));b=m.getElementsByTagName("input")[0];a={leadingWhitespace:m.firstChild.nodeType===3,tbody:!m.getElementsByTagName("tbody").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.55/.test(d.style.opacity),cssFloat:!!d.style.cssFloat, +checkOn:b.value==="on",optSelected:f.selected,getSetAttribute:m.className!=="t",enctype:!!C.createElement("form").enctype,html5Clone:C.createElement("nav").cloneNode(true).outerHTML!=="<:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};b.checked=true;a.noCloneChecked=b.cloneNode(true).checked;e.disabled=true;a.optDisabled=!f.disabled;try{delete m.test}catch(q){a.deleteExpando= +false}if(!m.addEventListener&&m.attachEvent&&m.fireEvent){m.attachEvent("onclick",function(){a.noCloneEvent=false});m.cloneNode(true).fireEvent("onclick")}b=C.createElement("input");b.value="t";b.setAttribute("type","radio");a.radioValue=b.value==="t";b.setAttribute("checked","checked");m.appendChild(b);d=C.createDocumentFragment();d.appendChild(m.lastChild);a.checkClone=d.cloneNode(true).cloneNode(true).lastChild.checked;a.appendChecked=b.checked;d.removeChild(b);d.appendChild(m);m.innerHTML=""; +if(r.getComputedStyle){b=C.createElement("div");b.style.width="0";b.style.marginRight="0";m.style.width="2px";m.appendChild(b);a.reliableMarginRight=(parseInt((r.getComputedStyle(b,null)||{marginRight:0}).marginRight,10)||0)===0}if(m.attachEvent)for(i in{submit:1,change:1,focusin:1}){b="on"+i;l=b in m;if(!l){m.setAttribute(b,"return;");l=typeof m[b]==="function"}a[i+"Bubbles"]=l}d.removeChild(m);d=e=f=b=m=b=null;c(function(){var x,u,B,y,G=C.getElementsByTagName("body")[0];if(G){x=C.createElement("div"); +x.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";G.insertBefore(x,G.firstChild);m=C.createElement("div");x.appendChild(m);m.innerHTML="
t
";g=m.getElementsByTagName("td");l=g[0].offsetHeight===0;g[0].style.display="";g[1].style.display="none";a.reliableHiddenOffsets=l&&g[0].offsetHeight===0;m.innerHTML="";m.style.width=m.style.paddingLeft="1px";c.boxModel=a.boxModel=m.offsetWidth=== +2;if(typeof m.style.zoom!=="undefined"){m.style.display="inline";m.style.zoom=1;a.inlineBlockNeedsLayout=m.offsetWidth===2;m.style.display="";m.innerHTML="
";a.shrinkWrapBlocks=m.offsetWidth!==2}m.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;visibility:hidden;border:0;";m.innerHTML="
"; +u=m.firstChild;B=u.firstChild;y={doesNotAddBorder:B.offsetTop!==5,doesAddBorderForTableAndCells:u.nextSibling.firstChild.firstChild.offsetTop===5};B.style.position="fixed";B.style.top="20px";y.fixedPosition=B.offsetTop===20||B.offsetTop===15;B.style.position=B.style.top="";u.style.overflow="hidden";u.style.position="relative";y.subtractsBorderForOverflowNotVisible=B.offsetTop===-5;y.doesNotIncludeMarginInBodyOffset=G.offsetTop!==1;G.removeChild(x);m=null;c.extend(a,y)}});return a}();var tb=/^(?:\{.*\}|\[.*\])$/, +sb=/([A-Z])/g;c.extend({cache:{},uuid:0,expando:"jQuery"+(c.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(a){a=a.nodeType?c.cache[a[c.expando]]:a[c.expando];return!!a&&!Q(a)},data:function(a,b,d,e){if(c.acceptData(a)){var f;f=c.expando;var g=typeof b==="string",i=a.nodeType,l=i?c.cache:a,m=i?a[f]:a[f]&&f,q=b==="events";if(!((!m||!l[m]||!q&&!e&&!l[m].data)&&g&&d===p)){if(!m)if(i)a[f]=m=++c.uuid;else m= +f;if(!l[m]){l[m]={};if(!i)l[m].toJSON=c.noop}if(typeof b==="object"||typeof b==="function")if(e)l[m]=c.extend(l[m],b);else l[m].data=c.extend(l[m].data,b);f=a=l[m];if(!e){if(!a.data)a.data={};a=a.data}if(d!==p)a[c.camelCase(b)]=d;if(q&&!a[b])return f.events;if(g){d=a[b];if(d==null)d=a[c.camelCase(b)]}else d=a;return d}}},removeData:function(a,b,d){if(c.acceptData(a)){var e,f,g,i=c.expando,l=a.nodeType,m=l?c.cache:a,q=l?a[i]:i;if(m[q]){if(b)if(e=d?m[q]:m[q].data){if(!c.isArray(b))if(b in e)b=[b];else{b= +c.camelCase(b);b=b in e?[b]:b.split(" ")}f=0;for(g=b.length;f-1)return true;return false},val:function(a){var b,d,e,f=this[0];if(arguments.length){e=c.isFunction(a);return this.each(function(g){var i=c(this);if(this.nodeType===1){g=e?a.call(this, +g,i.val()):a;if(g==null)g="";else if(typeof g==="number")g+="";else if(c.isArray(g))g=c.map(g,function(l){return l==null?"":l+""});b=c.valHooks[this.nodeName.toLowerCase()]||c.valHooks[this.type];if(!b||!("set"in b)||b.set(this,g,"value")===p)this.value=g}})}else if(f){if((b=c.valHooks[f.nodeName.toLowerCase()]||c.valHooks[f.type])&&"get"in b&&(d=b.get(f,"value"))!==p)return d;d=f.value;return typeof d==="string"?d.replace(Db,""):d==null?"":d}}});c.extend({valHooks:{option:{get:function(a){var b= +a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,d,e=a.selectedIndex,f=[],g=a.options,i=a.type==="select-one";if(e<0)return null;a=i?e:0;for(d=i?e+1:g.length;a=0});if(!d.length)a.selectedIndex=-1;return d}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,e){var f,g,i=a.nodeType;if(!(!a||i===3||i===8||i===2)){if(e&&b in c.attrFn)return c(a)[b](d);if(typeof a.getAttribute==="undefined")return c.prop(a,b,d);if(e=i!==1||!c.isXMLDoc(a)){b=b.toLowerCase();g=c.attrHooks[b]||(Wa.test(b)?Ya:W)}if(d!==p)if(d===null)c.removeAttr(a,b);else if(g&&"set"in g&&e&&(f=g.set(a,d,b))!== +p)return f;else{a.setAttribute(b,""+d);return d}else if(g&&"get"in g&&e&&(f=g.get(a,b))!==null)return f;else{f=a.getAttribute(b);return f===null?p:f}}},removeAttr:function(a,b){var d,e,f,g,i=0;if(b&&a.nodeType===1){e=b.toLowerCase().split(ra);for(g=e.length;i=0}})});var Ba=/^(?:textarea|input|select)$/i,$a=/^([^\.]*)?(?:\.(.+))?$/,Hb=/\bhover(\.\S+)?\b/,Ib=/^key/,Jb=/^(?:mouse|contextmenu)|click/,ab=/^(?:focusinfocus|focusoutblur)$/,Kb=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Lb=function(a){if(a=Kb.exec(a)){a[1]=(a[1]||"").toLowerCase();a[3]=a[3]&&RegExp("(?:^|\\s)"+a[3]+"(?:\\s|$)")}return a},bb=function(a){return c.event.special.hover?a:a.replace(Hb, +"mouseenter$1 mouseleave$1")};c.event={add:function(a,b,d,e,f){var g,i,l,m,q,x,u,B,y;if(!(a.nodeType===3||a.nodeType===8||!b||!d||!(g=c._data(a)))){if(d.handler){u=d;d=u.handler}if(!d.guid)d.guid=c.guid++;l=g.events;if(!l)g.events=l={};i=g.handle;if(!i){g.handle=i=function(G){return typeof c!=="undefined"&&(!G||c.event.triggered!==G.type)?c.event.dispatch.apply(i.elem,arguments):p};i.elem=a}b=c.trim(bb(b)).split(" ");for(g=0;g=0){f=f.slice(0,-1);i=true}if(f.indexOf(".")>=0){g=f.split(".");f=g.shift();g.sort()}if(!((!d||c.event.customEvent[f])&&!c.event.global[f])){a=typeof a==="object"?a[c.expando]?a:new c.Event(f,a):new c.Event(f);a.type=f;a.isTrigger=true;a.exclusive=i;a.namespace=g.join(".");a.namespace_re=a.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;i=f.indexOf(":")<0?"on"+f:"";if(d){a.result=p;if(!a.target)a.target=d;b=b!=null? +c.makeArray(b):[];b.unshift(a);m=c.event.special[f]||{};if(!(m.trigger&&m.trigger.apply(d,b)===false)){x=[[d,m.bindType||f]];if(!e&&!m.noBubble&&!c.isWindow(d)){q=m.delegateType||f;g=ab.test(q+f)?d:d.parentNode;for(l=null;g;g=g.parentNode){x.push([g,q]);l=g}if(l&&l===d.ownerDocument)x.push([l.defaultView||l.parentWindow||r,q])}for(l=0;ld&&g.push({elem:this,matches:b.slice(d)});for(i=0;i0?this.on(b,null,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true;if(Ib.test(b))c.event.fixHooks[b]=c.event.keyHooks;if(Jb.test(b))c.event.fixHooks[b]=c.event.mouseHooks});(function(){function a(h,j,n,o,s,t){s=0;for(var D=o.length;s0){I=z;break}}z=z[h]}o[s]=I}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),f=0,g=Object.prototype.toString, +i=false,l=true,m=/\\/g,q=/\r\n/g,x=/\W/;[0,0].sort(function(){l=false;return 0});var u=function(h,j,n,o){n=n||[];var s=j=j||C;if(j.nodeType!==1&&j.nodeType!==9)return[];if(!h||typeof h!=="string")return n;var t,D,z,I,k,v=true,A=u.isXML(j),w=[],F=h;do{d.exec("");if(t=d.exec(F)){F=t[3];w.push(t[1]);if(t[2]){I=t[3];break}}}while(t);if(w.length>1&&G.exec(h))if(w.length===2&&y.relative[w[0]])D=T(w[0]+w[1],j,o);else for(D=y.relative[w[0]]?[j]:u(w.shift(),j);w.length;){h=w.shift();if(y.relative[h])h+=w.shift(); +D=T(h,D,o)}else{if(!o&&w.length>1&&j.nodeType===9&&!A&&y.match.ID.test(w[0])&&!y.match.ID.test(w[w.length-1])){t=u.find(w.shift(),j,A);j=t.expr?u.filter(t.expr,t.set)[0]:t.set[0]}if(j){t=o?{expr:w.pop(),set:L(o)}:u.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&j.parentNode?j.parentNode:j,A);D=t.expr?u.filter(t.expr,t.set):t.set;if(w.length>0)z=L(D);else v=false;for(;w.length;){t=k=w.pop();if(y.relative[k])t=w.pop();else k="";if(t==null)t=j;y.relative[k](z,t,A)}}else z=[]}z||(z=D);z||u.error(k|| +h);if(g.call(z)==="[object Array]")if(v)if(j&&j.nodeType===1)for(h=0;z[h]!=null;h++){if(z[h]&&(z[h]===true||z[h].nodeType===1&&u.contains(j,z[h])))n.push(D[h])}else for(h=0;z[h]!=null;h++)z[h]&&z[h].nodeType===1&&n.push(D[h]);else n.push.apply(n,z);else L(z,n);if(I){u(I,s,n,o);u.uniqueSort(n)}return n};u.uniqueSort=function(h){if(R){i=l;h.sort(R);if(i)for(var j=1;j0};u.find=function(h,j,n){var o,s,t,D,z,I;if(!h)return[];s=0;for(t=y.order.length;s":function(h,j){var n,o=typeof j==="string",s=0,t=h.length;if(o&& +!x.test(j))for(j=j.toLowerCase();s=0))n||o.push(D);else if(n)j[t]=false;return false},ID:function(h){return h[1].replace(m,"")},TAG:function(h){return h[1].replace(m,"").toLowerCase()},CHILD:function(h){if(h[1]==="nth"){h[2]||u.error(h[0]);h[2]=h[2].replace(/^\+|\s*/g,"");var j=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(h[2]==="even"&&"2n"||h[2]==="odd"&&"2n+1"||!/\D/.test(h[2])&&"0n+"+h[2]||h[2]);h[2]=j[1]+(j[2]||1)-0;h[3]=j[3]-0}else h[2]&&u.error(h[0]);h[0]=f++;return h}, +ATTR:function(h,j,n,o,s,t){j=h[1]=h[1].replace(m,"");if(!t&&y.attrMap[j])h[1]=y.attrMap[j];h[4]=(h[4]||h[5]||"").replace(m,"");if(h[2]==="~=")h[4]=" "+h[4]+" ";return h},PSEUDO:function(h,j,n,o,s){if(h[1]==="not")if((d.exec(h[3])||"").length>1||/^\w/.test(h[3]))h[3]=u(h[3],null,null,j);else{h=u.filter(h[3],j,n,true^s);n||o.push.apply(o,h);return false}else if(y.match.POS.test(h[0])||y.match.CHILD.test(h[0]))return true;return h},POS:function(h){h.unshift(true);return h}},filters:{enabled:function(h){return h.disabled=== +false&&h.type!=="hidden"},disabled:function(h){return h.disabled===true},checked:function(h){return h.checked===true},selected:function(h){return h.selected===true},parent:function(h){return!!h.firstChild},empty:function(h){return!h.firstChild},has:function(h,j,n){return!!u(n[3],h).length},header:function(h){return/h\d/i.test(h.nodeName)},text:function(h){var j=h.getAttribute("type"),n=h.type;return h.nodeName.toLowerCase()==="input"&&"text"===n&&(j===n||j===null)},radio:function(h){return h.nodeName.toLowerCase()=== +"input"&&"radio"===h.type},checkbox:function(h){return h.nodeName.toLowerCase()==="input"&&"checkbox"===h.type},file:function(h){return h.nodeName.toLowerCase()==="input"&&"file"===h.type},password:function(h){return h.nodeName.toLowerCase()==="input"&&"password"===h.type},submit:function(h){var j=h.nodeName.toLowerCase();return(j==="input"||j==="button")&&"submit"===h.type},image:function(h){return h.nodeName.toLowerCase()==="input"&&"image"===h.type},reset:function(h){var j=h.nodeName.toLowerCase(); +return(j==="input"||j==="button")&&"reset"===h.type},button:function(h){var j=h.nodeName.toLowerCase();return j==="input"&&"button"===h.type||j==="button"},input:function(h){return/input|select|textarea|button/i.test(h.nodeName)},focus:function(h){return h===h.ownerDocument.activeElement}},setFilters:{first:function(h,j){return j===0},last:function(h,j,n,o){return j===o.length-1},even:function(h,j){return j%2===0},odd:function(h,j){return j%2===1},lt:function(h,j,n){return jn[3]-0},nth:function(h,j,n){return n[3]-0===j},eq:function(h,j,n){return n[3]-0===j}},filter:{PSEUDO:function(h,j,n,o){var s=j[1],t=y.filters[s];if(t)return t(h,n,j,o);else if(s==="contains")return(h.textContent||h.innerText||B([h])||"").indexOf(j[3])>=0;else if(s==="not"){j=j[3];n=0;for(o=j.length;n=0}},ID:function(h,j){return h.nodeType===1&&h.getAttribute("id")===j},TAG:function(h,j){return j==="*"&&h.nodeType===1||!!h.nodeName&&h.nodeName.toLowerCase()=== +j},CLASS:function(h,j){return(" "+(h.className||h.getAttribute("class"))+" ").indexOf(j)>-1},ATTR:function(h,j){var n=j[1];n=u.attr?u.attr(h,n):y.attrHandle[n]?y.attrHandle[n](h):h[n]!=null?h[n]:h.getAttribute(n);var o=n+"",s=j[2],t=j[4];return n==null?s==="!=":!s&&u.attr?n!=null:s==="="?o===t:s==="*="?o.indexOf(t)>=0:s==="~="?(" "+o+" ").indexOf(t)>=0:!t?o&&n!==false:s==="!="?o!==t:s==="^="?o.indexOf(t)===0:s==="$="?o.substr(o.length-t.length)===t:s==="|="?o===t||o.substr(0,t.length+1)===t+"-":false}, +POS:function(h,j,n,o){var s=y.setFilters[j[2]];if(s)return s(h,n,j,o)}}},G=y.match.POS,J=function(h,j){return"\\"+(j-0+1)};for(var O in y.match){y.match[O]=RegExp(y.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source);y.leftMatch[O]=RegExp(/(^(?:.|\r|\n)*?)/.source+y.match[O].source.replace(/\\(\d+)/g,J))}var L=function(h,j){h=Array.prototype.slice.call(h,0);if(j){j.push.apply(j,h);return j}return h};try{Array.prototype.slice.call(C.documentElement.childNodes,0)}catch(Y){L=function(h,j){var n=0,o=j|| +[];if(g.call(h)==="[object Array]")Array.prototype.push.apply(o,h);else if(typeof h.length==="number")for(var s=h.length;n";n.insertBefore(h,n.firstChild);if(C.getElementById(j)){y.find.ID=function(o,s,t){if(typeof s.getElementById!=="undefined"&&!t)return(s=s.getElementById(o[1]))?s.id===o[1]||typeof s.getAttributeNode!=="undefined"&&s.getAttributeNode("id").nodeValue===o[1]?[s]:p:[]};y.filter.ID=function(o,s){var t=typeof o.getAttributeNode!=="undefined"&&o.getAttributeNode("id");return o.nodeType===1&&t&&t.nodeValue===s}}n.removeChild(h);n=h=null})();(function(){var h= +C.createElement("div");h.appendChild(C.createComment(""));if(h.getElementsByTagName("*").length>0)y.find.TAG=function(j,n){var o=n.getElementsByTagName(j[1]);if(j[1]==="*"){for(var s=[],t=0;o[t];t++)o[t].nodeType===1&&s.push(o[t]);o=s}return o};h.innerHTML="";if(h.firstChild&&typeof h.firstChild.getAttribute!=="undefined"&&h.firstChild.getAttribute("href")!=="#")y.attrHandle.href=function(j){return j.getAttribute("href",2)};h=null})();C.querySelectorAll&&function(){var h=u,j=C.createElement("div"); +j.innerHTML="

";if(!(j.querySelectorAll&&j.querySelectorAll(".TEST").length===0)){u=function(o,s,t,D){s=s||C;if(!D&&!u.isXML(s)){var z=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(o);if(z&&(s.nodeType===1||s.nodeType===9))if(z[1])return L(s.getElementsByTagName(o),t);else if(z[2]&&y.find.CLASS&&s.getElementsByClassName)return L(s.getElementsByClassName(z[2]),t);if(s.nodeType===9){if(o==="body"&&s.body)return L([s.body],t);else if(z&&z[3]){var I=s.getElementById(z[3]);if(I&&I.parentNode){if(I.id=== +z[3])return L([I],t)}else return L([],t)}try{return L(s.querySelectorAll(o),t)}catch(k){}}else if(s.nodeType===1&&s.nodeName.toLowerCase()!=="object"){z=s;var v=(I=s.getAttribute("id"))||"__sizzle__",A=s.parentNode,w=/^\s*[+~]/.test(o);if(I)v=v.replace(/'/g,"\\$&");else s.setAttribute("id",v);if(w&&A)s=s.parentNode;try{if(!w||A)return L(s.querySelectorAll("[id='"+v+"'] "+o),t)}catch(F){}finally{I||z.removeAttribute("id")}}}return h(o,s,t,D)};for(var n in h)u[n]=h[n];j=null}}();(function(){var h=C.documentElement, +j=h.matchesSelector||h.mozMatchesSelector||h.webkitMatchesSelector||h.msMatchesSelector;if(j){var n=!j.call(C.createElement("div"),"div"),o=false;try{j.call(C.documentElement,"[test!='']:sizzle")}catch(s){o=true}u.matchesSelector=function(t,D){D=D.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u.isXML(t))try{if(o||!y.match.PSEUDO.test(D)&&!/!=/.test(D)){var z=j.call(t,D);if(z||!n||t.document&&t.document.nodeType!==11)return z}}catch(I){}return u(D,null,null,[t]).length>0}}})();(function(){var h=C.createElement("div"); +h.innerHTML="
";if(!(!h.getElementsByClassName||h.getElementsByClassName("e").length===0)){h.lastChild.className="e";if(h.getElementsByClassName("e").length!==1){y.order.splice(1,0,"CLASS");y.find.CLASS=function(j,n,o){if(typeof n.getElementsByClassName!=="undefined"&&!o)return n.getElementsByClassName(j[1])};h=null}}})();u.contains=C.documentElement.contains?function(h,j){return h!==j&&(h.contains?h.contains(j):true)}:C.documentElement.compareDocumentPosition? +function(h,j){return!!(h.compareDocumentPosition(j)&16)}:function(){return false};u.isXML=function(h){return(h=(h?h.ownerDocument||h:0).documentElement)?h.nodeName!=="HTML":false};var T=function(h,j,n){var o,s=[],t="";for(j=j.nodeType?[j]:j;o=y.match.PSEUDO.exec(h);){t+=o[0];h=h.replace(y.match.PSEUDO,"")}h=y.relative[h]?h+"*":h;o=0;for(var D=j.length;o0)for(i=g;i=0:c.filter(a,this).length>0:this.filter(a).length> +0)},closest:function(a,b){var d=[],e,f,g=this[0];if(c.isArray(a)){for(f=1;g&&g.ownerDocument&&g!==b;){for(e=0;e-1:c.find.matchesSelector(g,a)){d.push(g);break}else{g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}d=d.length>1?c.unique(d):d;return this.pushStack(d, +"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a==="string")return c.inArray(this[0],c(a));return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b):c.makeArray(a&&a.nodeType?[a]:a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}}); +c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling", +d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Mb.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1&&!Qb[a]?c.unique(f):f;if((this.length>1||Ob.test(e))&&Nb.test(a))f=f.reverse();return this.pushStack(f,a,Pb.call(arguments).join(","))}}); +c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===p||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ia="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", +Rb=/ jQuery\d+="(?:\d+|null)"/g,Ca=/^\s+/,db=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,eb=/<([\w:]+)/,Sb=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"", +"
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},hb=Ha(C);S.optgroup=S.option;S.tbody=S.tfoot=S.colgroup=S.caption=S.thead;S.th=S.td;if(!c.support.htmlSerialize)S._default=[1,"div
","
"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==p)return this.empty().append((this[0]&& +this[0].ownerDocument||C).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))}); +return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){var b=c.isFunction(a);return this.each(function(d){c(this).wrapAll(b?a.call(this,d):a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(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(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c.clean(arguments);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(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this, +"after",arguments);a.push.apply(a,c.clean(arguments));return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=a==null?false:a;b=b== +null?a:b;return this.map(function(){return c.clone(this,a,b)})},html:function(a){if(a===p)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Rb,""):null;else if(typeof a==="string"&&!Ub.test(a)&&(c.support.leadingWhitespace||!Ca.test(a))&&!S[(eb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(db,"<$1>");try{for(var b=0,d=this.length;b1&&f0?this.clone(true):this).get();c(d[f])[b](i);e=e.concat(i)}return this.pushStack(e,a,d.selector)}}});c.extend({clone:function(a,b,d){var e,f,g;if(c.support.html5Clone||!fb.test("<"+a.nodeName))e=a.cloneNode(true);else{e=C.createElement("div");hb.appendChild(e);e.innerHTML=a.outerHTML;e=e.firstChild}var i=e;if((!c.support.noCloneEvent|| +!c.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!c.isXMLDoc(a)){Ka(a,i);e=oa(a);f=oa(i);for(g=0;e[g];++g)f[g]&&Ka(e[g],f[g])}if(b){Ja(a,i);if(d){e=oa(a);f=oa(i);for(g=0;e[g];++g)Ja(e[g],f[g])}}return i},clean:function(a,b,d,e){b=b||C;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||C;for(var f=[],g,i=0,l;(l=a[i])!=null;i++){if(typeof l==="number")l+="";if(l){if(typeof l==="string")if(Tb.test(l)){l=l.replace(db,"<$1>");g=(eb.exec(l)||["",""])[1].toLowerCase(); +var m=S[g]||S._default,q=m[0],x=b.createElement("div");b===C?hb.appendChild(x):Ha(b).appendChild(x);for(x.innerHTML=m[1]+l+m[2];q--;)x=x.lastChild;if(!c.support.tbody){q=Sb.test(l);m=g==="table"&&!q?x.firstChild&&x.firstChild.childNodes:m[1]===""&&!q?x.childNodes:[];for(g=m.length-1;g>=0;--g)c.nodeName(m[g],"tbody")&&!m[g].childNodes.length&&m[g].parentNode.removeChild(m[g])}!c.support.leadingWhitespace&&Ca.test(l)&&x.insertBefore(b.createTextNode(Ca.exec(l)[0]),x.firstChild);l=x.childNodes}else l= +b.createTextNode(l);var u;if(!c.support.appendChecked)if(l[0]&&typeof(u=l.length)==="number")for(g=0;g=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return Xb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style,e=a.currentStyle,f=c.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=e&&e.filter||d.filter||"";d.zoom=1;if(b>=1&&c.trim(g.replace(Da,""))===""){d.removeAttribute("filter"); +if(e&&!e.filter)return}d.filter=Da.test(g)?g.replace(Da,f):g+" "+f}};c(function(){if(!c.support.reliableMarginRight)c.cssHooks.marginRight={get:function(a,b){var d;c.swap(a,{display:"inline-block"},function(){d=b?ga(a,"margin-right","marginRight"):a.style.marginRight});return d}}});if(C.defaultView&&C.defaultView.getComputedStyle)jb=function(a,b){var d,e,f;b=b.replace(Yb,"-$1").toLowerCase();if((e=a.ownerDocument.defaultView)&&(f=e.getComputedStyle(a,null))){d=f.getPropertyValue(b);if(d===""&&!c.contains(a.ownerDocument.documentElement, +a))d=c.style(a,b)}return d};if(C.documentElement.currentStyle)kb=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;if(f===null&&g&&(d=g[b]))f=d;if(!ib.test(f)&&Zb.test(f)){d=g.left;if(e=a.runtimeStyle&&a.runtimeStyle.left)a.runtimeStyle.left=a.currentStyle.left;g.left=b==="fontSize"?"1em":f||0;f=g.pixelLeft+"px";g.left=d;if(e)a.runtimeStyle.left=e}return f===""?"auto":f};ga=jb||kb;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth=== +0&&b===0||!c.support.reliableHiddenOffsets&&(a.style&&a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var bc=/%20/g,zb=/\[\]$/,lb=/\r?\n/g,cc=/#.*$/,dc=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,ec=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,fc=/^(?:GET|HEAD)$/,gc=/^\/\//,mb=/\?/,hc=/)<[^<]*)*<\/script>/gi,ic=/^(?:select|textarea)/i,Pa=/\s+/, +jc=/([?&])_=[^&]*/,nb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,ob=c.fn.load,wa={},pb={},ca,da,qb=["*/"]+["*"];try{ca=Cb.href}catch(rc){ca=C.createElement("a");ca.href="";ca=ca.href}da=nb.exec(ca.toLowerCase())||[];c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&ob)return ob.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=p}else if(typeof b==="object"){b=c.param(b, +c.ajaxSettings.traditional);e="POST"}var g=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(i,l,m){m=i.responseText;if(i.isResolved()){i.done(function(q){m=q});g.html(f?c("
").append(m.replace(hc,"")).find(f):m)}d&&g.each(d,[m,l,i])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked|| +ic.test(this.nodeName)||ec.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e.replace(lb,"\r\n")}}):{name:b.name,value:d.replace(lb,"\r\n")}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.on(b,d)}});c.each(["get","post"],function(a,b){c[b]=function(d,e,f,g){if(c.isFunction(e)){g=g||f;f=e;e=p}return c.ajax({type:b,url:d,data:e, +success:f,dataType:g})}});c.extend({getScript:function(a,b){return c.get(a,p,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},ajaxSetup:function(a,b){if(b)Qa(a,c.ajaxSettings);else{b=a;a=c.ajaxSettings}Qa(a,b);return a},ajaxSettings:{url:ca,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(da[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain", +json:"application/json, text/javascript","*":qb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":r.String,"text html":true,"text json":c.parseJSON,"text xml":c.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:Oa(wa),ajaxTransport:Oa(pb),ajax:function(a,b){function d(j,n,o,s){if(L!==2){L=2;J&&clearTimeout(J);G=p;B=s||"";H.readyState=j>0?4:0;var t,D,z;s=n;if(o){var I=e,k=H,v=I.contents,A=I.dataTypes,w=I.responseFields, +F,E,M,P;for(E in w)if(E in o)k[w[E]]=o[E];for(;A[0]==="*";){A.shift();if(F===p)F=I.mimeType||k.getResponseHeader("content-type")}if(F)for(E in v)if(v[E]&&v[E].test(F)){A.unshift(E);break}if(A[0]in o)M=A[0];else{for(E in o){if(!A[0]||I.converters[E+" "+A[0]]){M=E;break}P||(P=E)}M=M||P}if(M){M!==A[0]&&A.unshift(M);o=o[M]}else o=void 0}else o=p;o=o;if(j>=200&&j<300||j===304){if(e.ifModified){if(F=H.getResponseHeader("Last-Modified"))c.lastModified[q]=F;if(F=H.getResponseHeader("Etag"))c.etag[q]=F}if(j=== +304){s="notmodified";t=true}else try{F=e;o=o;if(F.dataFilter)o=F.dataFilter(o,F.dataType);var ba=F.dataTypes;E={};var na,sa,kc=ba.length,ta,Z=ba[0],ja,Ea,aa,ea,ka;for(na=1;na0)J=setTimeout(function(){H.abort("timeout")},e.timeout);try{L=1;G.send(x,d)}catch(h){if(L<2)d(-1,h);else throw h;}}else d(-1,"No Transport");return H},param:function(a,b){var d=[],e=function(g,i){i=c.isFunction(i)?i():i;d[d.length]=encodeURIComponent(g)+"="+encodeURIComponent(i)};if(b===p)b=c.ajaxSettings.traditional; +if(c.isArray(a)||a.jquery&&!c.isPlainObject(a))c.each(a,function(){e(this.name,this.value)});else for(var f in a)xa(f,a[f],b,e);return d.join("&").replace(bc,"+")}});c.extend({active:0,lastModified:{},etag:{}});var mc=c.now(),ua=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+mc++}});c.ajaxPrefilter("json jsonp",function(a,b,d){b=a.contentType==="application/x-www-form-urlencoded"&&typeof a.data==="string";if(a.dataTypes[0]==="jsonp"||a.jsonp!==false&& +(ua.test(a.url)||b&&ua.test(a.data))){var e,f=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,g=r[f],i=a.url,l=a.data,m="$1"+f+"$2";if(a.jsonp!==false){i=i.replace(ua,m);if(a.url===i){if(b)l=l.replace(ua,m);if(a.data===l)i+=(/\?/.test(i)?"&":"?")+a.jsonp+"="+f}}a.url=i;a.data=l;r[f]=function(q){e=[q]};d.always(function(){r[f]=g;e&&c.isFunction(g)&&r[f](e[0])});a.converters["script json"]=function(){e||c.error(f+" was not called");return e[0]};a.dataTypes[0]="json"; +return"script"}});c.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){c.globalEval(a);return a}}});c.ajaxPrefilter("script",function(a){if(a.cache===p)a.cache=false;if(a.crossDomain){a.type="GET";a.global=false}});c.ajaxTransport("script",function(a){if(a.crossDomain){var b,d=C.head||C.getElementsByTagName("head")[0]||C.documentElement;return{send:function(e, +f){b=C.createElement("script");b.async="async";if(a.scriptCharset)b.charset=a.scriptCharset;b.src=a.url;b.onload=b.onreadystatechange=function(g,i){if(i||!b.readyState||/loaded|complete/.test(b.readyState)){b.onload=b.onreadystatechange=null;d&&b.parentNode&&d.removeChild(b);b=p;i||f(200,"success")}};d.insertBefore(b,d.firstChild)},abort:function(){b&&b.onload(0,1)}}}});var Fa=r.ActiveXObject?function(){for(var a in la)la[a](0,1)}:false,nc=0,la;c.ajaxSettings.xhr=r.ActiveXObject?function(){var a; +if(!(a=!this.isLocal&&Ra()))a:{try{a=new r.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:Ra;(function(a){c.extend(c.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})})(c.ajaxSettings.xhr());c.support.ajax&&c.ajaxTransport(function(a){if(!a.crossDomain||c.support.cors){var b;return{send:function(d,e){var f=a.xhr(),g,i;a.username?f.open(a.type,a.url,a.async,a.username,a.password):f.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)f[i]=a.xhrFields[i];a.mimeType&& +f.overrideMimeType&&f.overrideMimeType(a.mimeType);if(!a.crossDomain&&!d["X-Requested-With"])d["X-Requested-With"]="XMLHttpRequest";try{for(i in d)f.setRequestHeader(i,d[i])}catch(l){}f.send(a.hasContent&&a.data||null);b=function(m,q){var x,u,B,y,G;try{if(b&&(q||f.readyState===4)){b=p;if(g){f.onreadystatechange=c.noop;Fa&&delete la[g]}if(q)f.readyState!==4&&f.abort();else{x=f.status;B=f.getAllResponseHeaders();y={};if((G=f.responseXML)&&G.documentElement)y.xml=G;y.text=f.responseText;try{u=f.statusText}catch(J){u= +""}if(!x&&a.isLocal&&!a.crossDomain)x=y.text?200:404;else if(x===1223)x=204}}}catch(O){q||e(-1,O)}y&&e(x,u,y,B)};if(!a.async||f.readyState===4)b();else{g=++nc;if(Fa){if(!la){la={};c(r).unload(Fa)}la[g]=b}f.onreadystatechange=b}},abort:function(){b&&b(0,1)}}}});var ya={},V,ia,oc=/^(?:toggle|show|hide)$/,pc=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,va,Ta=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],qa;c.fn.extend({show:function(a, +b,d){if(a||a===0)return this.animate(ha("show",3),a,b,d);else{d=0;for(var e=this.length;d=g.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();g.animatedProperties[this.prop]=true;for(b in g.animatedProperties)if(g.animatedProperties[b]!==true)e=false;if(e){g.overflow!=null&&!c.support.shrinkWrapBlocks&&c.each(["","X","Y"],function(i,l){f.style["overflow"+l]=g.overflow[i]});g.hide&&c(f).hide(); +if(g.hide||g.show)for(b in g.animatedProperties){c.style(f,b,g.orig[b]);c.removeData(f,"fxshow"+b,true);c.removeData(f,"toggle"+b,true)}if(a=g.complete){g.complete=false;a.call(f)}}return false}else{if(g.duration==Infinity)this.now=d;else{a=d-this.startTime;this.state=a/g.duration;this.pos=c.easing[g.animatedProperties[this.prop]](this.state,a,0,1,g.duration);this.now=this.start+(this.end-this.start)*this.pos}this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a,b=c.timers,d=0;d-1){q=f.position();e=q.top;l=q.left}else{e=parseFloat(i)||0;l=parseFloat(l)||0}if(c.isFunction(b))b=b.call(a,d,g);if(b.top!=null)m.top=b.top-g.top+e;if(b.left!=null)m.left=b.left-g.left+l;"using"in b?b.using.call(a,m):f.css(m)}};c.fn.extend({position:function(){if(!this[0])return null; +var a=this[0],b=this.offsetParent(),d=this.offset(),e=rb.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||C.body;a&&!rb.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}}); +c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f,g;if(e===p){f=this[0];if(!f)return null;return(g=za(f))?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:f[d]}return this.each(function(){if(g=za(this))g.scrollTo(!a?e:c(g).scrollLeft(),a?e:c(g).scrollTop());else this[d]=e})}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){var e=this[0];return e?e.style?parseFloat(c.css(e, +d,"padding")):this[d]():null};c.fn["outer"+b]=function(e){var f=this[0];return f?f.style?parseFloat(c.css(f,d,e?"margin":"border")):this[d]():null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(l){var m=c(this);m[d](e.call(this,l,m[d]()))});if(c.isWindow(f)){var g=f.document.documentElement["client"+b],i=f.document.body;return f.document.compatMode==="CSS1Compat"&&g||i&&i["client"+b]||g}else if(f.nodeType===9)return Math.max(f.documentElement["client"+ +b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===p){f=c.css(f,d);g=parseFloat(f);return c.isNumeric(g)?g:f}else return this.css(d,typeof e==="string"?e:e+"px")}});r.jQuery=r.$=c;typeof define==="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return c})})(window);$.extend({namespace:function(r){var p=window;this.each(r.split("."),function(K,N){p[N]=p[N]||{};p=p[N]})},createDom:function(r){return this(document.createElement(r))}}); +if(!Function.prototype.bind)Function.prototype.bind=function(r){if(typeof this!=="function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var p=Array.prototype.slice.call(arguments,1),K=this,N=function(){},Q=function(){return K.apply(this instanceof N?this:r||window,p.concat(Array.prototype.slice.call(arguments)))};N.prototype=this.prototype;Q.prototype=new N;return Q};$.namespace("armadillo.Version");armadillo.Version.MAJOR=0;armadillo.Version.MINOR=8;armadillo.Version.BUILD=642.28;armadillo.Version.STAMP=1349546971;$.namespace("armadillo.TVRenamer");armadillo.TVRenamer=function(r){this.file_=r};armadillo.TVRenamer.prototype.run=function(){var r=this.file_;app.sendRequest("tv_rename",{path:this.file_.getFullPath()},function(p){if(p.error)app.showError(p.message);else{app.clearError();r.move(p.path)}})};$.namespace("armadillo.PathControl");armadillo.PathControl=function(r,p){this.name_=this.path_=null;this.setPath(r);this.editableLastComponent_=p;this.nameControl_=null};armadillo.PathControl.prototype.setPath=function(r){this.path_=app.stripLastPathComponent(r);this.name_=r.substr(this.path_.length)};armadillo.PathControl.prototype.getPath=function(){return app.joinPath(this.path_,this.name_)};armadillo.PathControl.prototype.getNameControl=function(){return this.nameControl_}; +armadillo.PathControl.prototype.createDom=function(){this.element_=$.createDom("div");this.createDom_(this.element_);return this.element_}; +armadillo.PathControl.prototype.createDom_=function(r){var p=this.path_.split("/");p[0]="/";p[p.length-1]==""&&p.splice(-1);var K="";$.each(p,function(N,Q){r.append(this.createComponentNode_(K,Q));K=app.joinPath(K,Q)}.bind(this));if(this.editableLastComponent_){this.nameControl_=$.createDom("input");this.nameControl_.attr({type:"text",name:"pathName",value:this.name_});this.nameControl_.bind("change keydown",this.nameChanged_.bind(this))}else this.nameControl_=$.createDom("span").text(this.name_); +r.append(this.nameControl_)};armadillo.PathControl.prototype.enterDocument=function(){armadillo.PathControl.superClass_.enterDocument.call(this);this.nameControl_.getElement().focus()};armadillo.PathControl.prototype.createComponentNode_=function(r,p){var K=$.createDom("select");this.fetchMenuContents_(r,p,K);var N=$.createDom("option");N.text("Loading...").attr("selected","selected");K.append(N);K.change(this.componentChanged_.bind(this));return K}; +armadillo.PathControl.prototype.fetchMenuContents_=function(r,p,K){var N=this.path_;app.sendRequest("list",{path:app.joinPath(r,p)},function(Q){if(Q.error)app.showError(Q.message);else{Q.unshift("/");K.empty();$.each(Q,function(ma,U){if(app.isDirectory(U)){var X=$.createDom("option"),fa=app.joinPath(r,p,U);X.val(fa).text(U);K.append(X);N.substr(0,fa.length)==fa&&X.attr("selected","selected")}})}})}; +armadillo.PathControl.prototype.componentChanged_=function(r){this.path_=$(r.target).val();this.element_.empty();this.createDom_(this.element_)};armadillo.PathControl.prototype.nameChanged_=function(r){console.log(r);this.name_=r.target.value;r.stopPropagation();return true};$.namespace("armadillo.Actor");armadillo.Actor=function(r){this.file_=r;this.controlContainer_=this.element_=null};armadillo.Actor.prototype.getElement=function(){return this.element_};armadillo.Actor.options_={OPEN:"open",MOVE:"move",DELETE:"delete",TV_RENAME:"tv-rename",DOWNLOAD:"download"};armadillo.Actor.optionStrings_={open:"Open",move:"Move","delete":"Delete","tv-rename":"Rename TV Episode",download:"Download"}; +armadillo.Actor.prototype.createDom=function(){this.element_=$.createDom("div").addClass("actor").empty();for(var r in armadillo.Actor.options_){var p=this.createTile_(r);p&&this.element_.append(p)}this.controlContainer_=$.createDom("div");this.element_.append(this.controlContainer_);return this.element_}; +armadillo.Actor.prototype.createTile_=function(r){r=armadillo.Actor.options_[r];var p=$.createDom("span").addClass("title");p.text(armadillo.Actor.optionStrings_[r]);var K=$.createDom("div").addClass("tile");K.append(p);if(r==armadillo.Actor.options_.OPEN&&!this.file_.isDirectory())return null;K.click(this.tileClickHandler_.bind(this,r));return K}; +armadillo.Actor.prototype.tileClickHandler_=function(r){this.controlContainer_.empty();this.controlContainer_.show();if(r==armadillo.Actor.options_.OPEN)app.navigate(this.file_.getName());else if(r==armadillo.Actor.options_.MOVE)this.performMove_();else if(r==armadillo.Actor.options_.DELETE)this.performDelete_();else if(r==armadillo.Actor.options_.TV_RENAME)this.performTVRename_();else r==armadillo.Actor.options_.DOWNLOAD&&this.performDownload_()}; +armadillo.Actor.prototype.performMove_=function(){var r=new armadillo.PathControl(this.file_.getFullPath(),true);this.controlContainer_.append(r.createDom());this.createOkCancel_(function(){this.file_.move(r.getPath())}.bind(this),null)};armadillo.Actor.prototype.performDelete_=function(){this.controlContainer_.append($("
Are you sure you want to delete:
"+this.file_.getName()+"
"));this.createOkCancel_(function(){this.file_.remove()}.bind(this),null)}; +armadillo.Actor.prototype.performTVRename_=function(){(new armadillo.TVRenamer(this.file_)).run()};armadillo.Actor.prototype.performDownload_=function(){window.location="download?path="+this.file_.getFullPath()};armadillo.Actor.prototype.createOkCancel_=function(r,p){var K=$.createDom("button").text("OK");r&&K.click(r);var N=$.createDom("button").text("Cancel");p||(p=this.defaultCancelCallback_.bind(this));N.click(p);this.controlContainer_.append(K);this.controlContainer_.append(N)}; +armadillo.Actor.prototype.defaultCancelCallback_=function(){this.controlContainer_.empty()};$.namespace("armadillo.File");armadillo.File=function(r,p){this.name_=r;this.path_=p;this.highlight_="";this.isDirectory_=app.isDirectory(r);this.actor_=new armadillo.Actor(this)};armadillo.File.Highlight={NONE:"",SELECTED:"file-selected",ACTIVE:"file-active"};armadillo.File.prototype.getName=function(){return this.name_};armadillo.File.prototype.getParentPath=function(){return this.path_};armadillo.File.prototype.getFullPath=function(){return this.path_+this.name_}; +armadillo.File.prototype.isDirectory=function(){return this.isDirectory_};armadillo.File.prototype.getExtension=function(){if(this.isDirectory())return"";var r=this.getName().lastIndexOf(".");if(r==-1)return"";return this.getName().substring(r)};armadillo.File.prototype.setHighlight=function(){}; +armadillo.File.prototype.createDom=function(){if(!this.element_){this.element_=$.createDom("li");var r=this.isSpecial_()?this.clickHandler_:this.actorHandler_}this.element_.empty();this.title_=$.createDom("div");if(this.isDirectory()){this.link_=$.createDom("a");this.link_.text(this.name_);this.link_.click(this.clickHandler_.bind(this));this.title_.append(this.link_)}else this.title_.text(this.name_);this.element_.append(this.title_);this.title_.click(r.bind(this));return this.element_}; +armadillo.File.prototype.remove=function(){var r=this;app.sendRequest("remove",{path:this.path_+this.name_},function(p){if(p.error)app.showError(p.message);else{app.clearError();app.list(r.path_)}})};armadillo.File.prototype.move=function(r){app.sendRequest("move",{source:this.getFullPath(),target:r},function(p){if(p.error)app.showError(p.message);else{app.clearError();app.list(app.stripLastPathComponent(r))}})}; +armadillo.File.prototype.clickHandler_=function(r){this.isDirectory_&&app.navigate(this.name_);r.stopPropagation()};armadillo.File.prototype.actorHandler_=function(r){r.stopPropagation();if(!this.actor_.getElement()){r=this.actor_.createDom();r.hide();this.element_.append(r)}this.actor_.getElement().slideToggle("fast")};armadillo.File.prototype.isSpecial_=function(){return this.name_=="../"};$.namespace("armadillo.App");$(document).ready(function(){app=new armadillo.App});armadillo.App=function(){var r="/";if(window.location.hash)r=window.location.hash.substr(1);this.list(r);$(window).bind("hashchange",this.hashChanged_.bind(this));this.clearError(false);$("#mkdir").click(this.mkdirHandler_.bind(this));r="Armadillo "+armadillo.Version.MAJOR+"."+armadillo.Version.MINOR+" ("+armadillo.Version.BUILD+")";$("#footer").text(r)}; +armadillo.App.prototype.sendRequest=function(r,p,K){p.action=r;return $.ajax({url:"service",type:"POST",data:p,success:K})};armadillo.App.prototype.list=function(r){this.sendRequest("list",{path:r},function(p){if(p.error)app.showError(p.message);else{app.clearError(true);$("#pwd").text(r);app.currentPath_=r;window.location.hash=r;document.title=r+" - Armadillo";var K=$("#ls");K.empty();r!="/"&&r!=""&&p.unshift("../");$.each(p,function(N,Q){var ma=new armadillo.File(Q,r);K.append(ma.createDom())})}})}; +armadillo.App.prototype.navigate=function(r){r=="../"?this.list(this.stripLastPathComponent(this.currentPath_)):this.list(this.currentPath_+r)};armadillo.App.prototype.hashChanged_=function(){window.location.hash.length&&this.list(window.location.hash.substr(1))};armadillo.App.prototype.isDirectory=function(r){return r[r.length-1]=="/"};armadillo.App.prototype.getCurrentPath=function(){return this.currentPath_}; +armadillo.App.prototype.stripLastPathComponent=function(r){for(var p=r.length-1;p>=0;--p)if(r[p]=="/")if(p!=r.length-1)return r.substring(0,p+1);return"/"};armadillo.App.prototype.joinPath=function(){var r="",p=arguments.length-1;$.each(arguments,function(K,N){if(!(N=="/"&&K!=0)){r+=N;if(N[N.length-1]!="/"&&K!=p)r+="/"}});return r};armadillo.App.prototype.clearError=function(r){var p=$("#error");!p.text()||!r?p.hide():p.fadeOut(500,function(){p.text("")})};armadillo.App.prototype.showError=function(r){$("#error").text(r).fadeIn(1E3)}; +armadillo.App.prototype.mkdirHandler_=function(){var r=prompt("Name the new subdirectory","");r!=null&&r!=""&&this.sendRequest("mkdir",{path:this.joinPath(this.getCurrentPath(),r)},function(p){if(p.error)app.showError(p.message);else{app.clearError();app.list(app.getCurrentPath())}})}; diff --git a/frontend/version.js b/frontend/version.js index e881d05..90808a2 100644 --- a/frontend/version.js +++ b/frontend/version.js @@ -4,5 +4,5 @@ $.namespace('armadillo.Version'); armadillo.Version.MAJOR = 0; armadillo.Version.MINOR = 8; -armadillo.Version.BUILD = 642.1; -armadillo.Version.STAMP = 1346818356; +armadillo.Version.BUILD = 642.28; +armadillo.Version.STAMP = 1349546971; -- 2.43.5