denniskuczynski/beanstalkd_view

View on GitHub
lib/beanstalkd_view/resources/js/beanstalkd_view.min.js

Summary

Maintainability
A
0 mins
Test Coverage
"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(t){return 10>t?"0"+t:t}function quote(t){return escapable.lastIndex=0,escapable.test(t)?'"'+t.replace(escapable,function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function str(t,e){var n,i,s,r,o,a=gap,l=e[t];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(t)),"function"==typeof rep&&(l=rep.call(e,t,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?l+"":"null";case"boolean":case"null":return l+"";case"object":if(!l)return"null";if(gap+=indent,o=[],"[object Array]"===Object.prototype.toString.apply(l)){for(r=l.length,n=0;r>n;n+=1)o[n]=str(n,l)||"null";return s=0===o.length?"[]":gap?"[\n"+gap+o.join(",\n"+gap)+"\n"+a+"]":"["+o.join(",")+"]",gap=a,s}if(rep&&"object"==typeof rep)for(r=rep.length,n=0;r>n;n+=1)"string"==typeof rep[n]&&(i=rep[n],s=str(i,l),s&&o.push(quote(i)+(gap?": ":":")+s));else for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(s=str(i,l),s&&o.push(quote(i)+(gap?": ":":")+s));return s=0===o.length?"{}":gap?"{\n"+gap+o.join(",\n"+gap)+"\n"+a+"}":"{"+o.join(",")+"}",gap=a,s}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","    ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;"function"!=typeof JSON.stringify&&(JSON.stringify=function(t,e,n){var i;if(gap="",indent="","number"==typeof n)for(i=0;n>i;i+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(t,e){var n,i,s=t[e];if(s&&"object"==typeof s)for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(i=walk(s,n),void 0!==i?s[n]=i:delete s[n]);return reviver.call(t,e,s)}var j;if(text+="",cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),function(t,e){function n(t){var e=pe[t]={};return K.each(t.split(ee),function(t,n){e[n]=!0}),e}function i(t,n,i){if(i===e&&1===t.nodeType){var s="data-"+n.replace(me,"-$1").toLowerCase();if(i=t.getAttribute(s),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:_e.test(i)?K.parseJSON(i):i}catch(r){}K.data(t,n,i)}else i=e}return i}function s(t){var e;for(e in t)if(("data"!==e||!K.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function r(){return!1}function o(){return!0}function a(t){return!t||!t.parentNode||11===t.parentNode.nodeType}function l(t,e){do t=t[e];while(t&&1!==t.nodeType);return t}function h(t,e,n){if(e=e||0,K.isFunction(e))return K.grep(t,function(t,i){var s=!!e.call(t,i,t);return s===n});if(e.nodeType)return K.grep(t,function(t){return t===e===n});if("string"==typeof e){var i=K.grep(t,function(t){return 1===t.nodeType});if(Oe.test(e))return K.filter(e,i,!n);e=K.filter(e,i)}return K.grep(t,function(t){return K.inArray(t,e)>=0===n})}function u(t){var e=Re.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function c(t,e){return t.getElementsByTagName(e)[0]||t.appendChild(t.ownerDocument.createElement(e))}function f(t,e){if(1===e.nodeType&&K.hasData(t)){var n,i,s,r=K._data(t),o=K._data(e,r),a=r.events;if(a){delete o.handle,o.events={};for(n in a)for(i=0,s=a[n].length;s>i;i++)K.event.add(e,n,a[n][i])}o.data&&(o.data=K.extend({},o.data))}}function d(t,e){var n;1===e.nodeType&&(e.clearAttributes&&e.clearAttributes(),e.mergeAttributes&&e.mergeAttributes(t),n=e.nodeName.toLowerCase(),"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),K.support.html5Clone&&t.innerHTML&&!K.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&Ge.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.selected=t.defaultSelected:"input"===n||"textarea"===n?e.defaultValue=t.defaultValue:"script"===n&&e.text!==t.text&&(e.text=t.text),e.removeAttribute(K.expando))}function p(t){return t.getElementsByTagName!==e?t.getElementsByTagName("*"):t.querySelectorAll!==e?t.querySelectorAll("*"):[]}function _(t){Ge.test(t.type)&&(t.defaultChecked=t.checked)}function m(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,s=vn.length;s--;)if(e=vn[s]+n,e in t)return e;return i}function g(t,e){return t=e||t,"none"===K.css(t,"display")||!K.contains(t.ownerDocument,t)}function v(t,e){for(var n,i,s=[],r=0,o=t.length;o>r;r++)n=t[r],n.style&&(s[r]=K._data(n,"olddisplay"),e?(s[r]||"none"!==n.style.display||(n.style.display=""),""===n.style.display&&g(n)&&(s[r]=K._data(n,"olddisplay",k(n.nodeName)))):(i=nn(n,"display"),s[r]||"none"===i||K._data(n,"olddisplay",i)));for(r=0;o>r;r++)n=t[r],n.style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?s[r]||"":"none"));return t}function y(t,e,n){var i=cn.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function b(t,e,n,i){for(var s=n===(i?"border":"content")?4:"width"===e?1:0,r=0;4>s;s+=2)"margin"===n&&(r+=K.css(t,n+gn[s],!0)),i?("content"===n&&(r-=parseFloat(nn(t,"padding"+gn[s]))||0),"margin"!==n&&(r-=parseFloat(nn(t,"border"+gn[s]+"Width"))||0)):(r+=parseFloat(nn(t,"padding"+gn[s]))||0,"padding"!==n&&(r+=parseFloat(nn(t,"border"+gn[s]+"Width"))||0));return r}function x(t,e,n){var i="width"===e?t.offsetWidth:t.offsetHeight,s=!0,r=K.support.boxSizing&&"border-box"===K.css(t,"boxSizing");if(0>=i||null==i){if(i=nn(t,e),(0>i||null==i)&&(i=t.style[e]),fn.test(i))return i;s=r&&(K.support.boxSizingReliable||i===t.style[e]),i=parseFloat(i)||0}return i+b(t,e,n||(r?"border":"content"),s)+"px"}function k(t){if(pn[t])return pn[t];var e=K("<"+t+">").appendTo(J.body),n=e.css("display");return e.remove(),("none"===n||""===n)&&(sn=J.body.appendChild(sn||K.extend(J.createElement("iframe"),{frameBorder:0,width:0,height:0})),rn&&sn.createElement||(rn=(sn.contentWindow||sn.contentDocument).document,rn.write("<!doctype html><html><body>"),rn.close()),e=rn.body.appendChild(rn.createElement(t)),n=nn(e,"display"),J.body.removeChild(sn)),pn[t]=n,n}function w(t,e,n,i){var s;if(K.isArray(e))K.each(e,function(e,s){n||xn.test(t)?i(t,s):w(t+"["+("object"==typeof s?e:"")+"]",s,n,i)});else if(n||"object"!==K.type(e))i(t,e);else for(s in e)w(t+"["+s+"]",e[s],n,i)}function T(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,s,r,o=e.toLowerCase().split(ee),a=0,l=o.length;if(K.isFunction(n))for(;l>a;a++)i=o[a],r=/^\+/.test(i),r&&(i=i.substr(1)||"*"),s=t[i]=t[i]||[],s[r?"unshift":"push"](n)}}function A(t,n,i,s,r,o){r=r||n.dataTypes[0],o=o||{},o[r]=!0;for(var a,l=t[r],h=0,u=l?l.length:0,c=t===In;u>h&&(c||!a);h++)a=l[h](n,i,s),"string"==typeof a&&(!c||o[a]?a=e:(n.dataTypes.unshift(a),a=A(t,n,i,s,a,o)));return!c&&a||o["*"]||(a=A(t,n,i,s,"*",o)),a}function E(t,n){var i,s,r=K.ajaxSettings.flatOptions||{};for(i in n)n[i]!==e&&((r[i]?t:s||(s={}))[i]=n[i]);s&&K.extend(!0,t,s)}function S(t,n,i){var s,r,o,a,l=t.contents,h=t.dataTypes,u=t.responseFields;for(r in u)r in i&&(n[u[r]]=i[r]);for(;"*"===h[0];)h.shift(),s===e&&(s=t.mimeType||n.getResponseHeader("content-type"));if(s)for(r in l)if(l[r]&&l[r].test(s)){h.unshift(r);break}if(h[0]in i)o=h[0];else{for(r in i){if(!h[0]||t.converters[r+" "+h[0]]){o=r;break}a||(a=r)}o=o||a}return o?(o!==h[0]&&h.unshift(o),i[o]):e}function C(t,e){var n,i,s,r,o=t.dataTypes.slice(),a=o[0],l={},h=0;if(t.dataFilter&&(e=t.dataFilter(e,t.dataType)),o[1])for(n in t.converters)l[n.toLowerCase()]=t.converters[n];for(;s=o[++h];)if("*"!==s){if("*"!==a&&a!==s){if(n=l[a+" "+s]||l["* "+s],!n)for(i in l)if(r=i.split(" "),r[1]===s&&(n=l[a+" "+r[0]]||l["* "+r[0]])){n===!0?n=l[i]:l[i]!==!0&&(s=r[0],o.splice(h--,0,s));break}if(n!==!0)if(n&&t["throws"])e=n(e);else try{e=n(e)}catch(u){return{state:"parsererror",error:n?u:"No conversion from "+a+" to "+s}}}a=s}return{state:"success",data:e}}function N(){try{return new t.XMLHttpRequest}catch(e){}}function D(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function B(){return setTimeout(function(){Vn=e},0),Vn=K.now()}function L(t,e){K.each(e,function(e,n){for(var i=(ti[e]||[]).concat(ti["*"]),s=0,r=i.length;r>s;s++)if(i[s].call(t,e,n))return})}function j(t,e,n){var i,s=0,r=Zn.length,o=K.Deferred().always(function(){delete a.elem}),a=function(){for(var e=Vn||B(),n=Math.max(0,l.startTime+l.duration-e),i=n/l.duration||0,s=1-i,r=0,a=l.tweens.length;a>r;r++)l.tweens[r].run(s);return o.notifyWith(t,[l,s,n]),1>s&&a?n:(o.resolveWith(t,[l]),!1)},l=o.promise({elem:t,props:K.extend({},e),opts:K.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Vn||B(),duration:n.duration,tweens:[],createTween:function(e,n){var i=K.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(i),i},stop:function(e){for(var n=0,i=e?l.tweens.length:0;i>n;n++)l.tweens[n].run(1);return e?o.resolveWith(t,[l,e]):o.rejectWith(t,[l,e]),this}}),h=l.props;for($(h,l.opts.specialEasing);r>s;s++)if(i=Zn[s].call(l,t,h,l.opts))return i;return L(l,h),K.isFunction(l.opts.start)&&l.opts.start.call(t,l),K.fx.timer(K.extend(a,{anim:l,queue:l.opts.queue,elem:t})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function $(t,e){var n,i,s,r,o;for(n in t)if(i=K.camelCase(n),s=e[i],r=t[n],K.isArray(r)&&(s=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),o=K.cssHooks[i],o&&"expand"in o){r=o.expand(r),delete t[i];for(n in r)n in t||(t[n]=r[n],e[n]=s)}else e[i]=s}function M(t,e,n){var i,s,r,o,a,l,h,u,c,f=this,d=t.style,p={},_=[],m=t.nodeType&&g(t);n.queue||(u=K._queueHooks(t,"fx"),null==u.unqueued&&(u.unqueued=0,c=u.empty.fire,u.empty.fire=function(){u.unqueued||c()}),u.unqueued++,f.always(function(){f.always(function(){u.unqueued--,K.queue(t,"fx").length||u.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===K.css(t,"display")&&"none"===K.css(t,"float")&&(K.support.inlineBlockNeedsLayout&&"inline"!==k(t.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",K.support.shrinkWrapBlocks||f.done(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(i in e)if(r=e[i],Qn.exec(r)){if(delete e[i],l=l||"toggle"===r,r===(m?"hide":"show"))continue;_.push(i)}if(o=_.length){a=K._data(t,"fxshow")||K._data(t,"fxshow",{}),"hidden"in a&&(m=a.hidden),l&&(a.hidden=!m),m?K(t).show():f.done(function(){K(t).hide()}),f.done(function(){var e;K.removeData(t,"fxshow",!0);for(e in p)K.style(t,e,p[e])});for(i=0;o>i;i++)s=_[i],h=f.createTween(s,m?a[s]:0),p[s]=a[s]||K.style(t,s),s in a||(a[s]=h.start,m&&(h.end=h.start,h.start="width"===s||"height"===s?1:0))}}function O(t,e,n,i,s){return new O.prototype.init(t,e,n,i,s)}function I(t,e){var n,i={height:t},s=0;for(e=e?1:0;4>s;s+=2-e)n=gn[s],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function F(t){return K.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}var R,H,J=t.document,z=t.location,P=t.navigator,X=t.jQuery,q=t.$,W=Array.prototype.push,U=Array.prototype.slice,V=Array.prototype.indexOf,G=Object.prototype.toString,Q=Object.prototype.hasOwnProperty,Y=String.prototype.trim,K=function(t,e){return new K.fn.init(t,e,R)},Z=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,te=/\S/,ee=/\s+/,ne=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ie=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,se=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,re=/^[\],:{}\s]*$/,oe=/(?:^|:|,)(?:\s*\[)+/g,ae=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,le=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,he=/^-ms-/,ue=/-([\da-z])/gi,ce=function(t,e){return(e+"").toUpperCase()},fe=function(){J.addEventListener?(J.removeEventListener("DOMContentLoaded",fe,!1),K.ready()):"complete"===J.readyState&&(J.detachEvent("onreadystatechange",fe),K.ready())},de={};K.fn=K.prototype={constructor:K,init:function(t,n,i){var s,r,o;if(!t)return this;if(t.nodeType)return this.context=this[0]=t,this.length=1,this;if("string"==typeof t){if(s="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:ie.exec(t),!s||!s[1]&&n)return!n||n.jquery?(n||i).find(t):this.constructor(n).find(t);if(s[1])return n=n instanceof K?n[0]:n,o=n&&n.nodeType?n.ownerDocument||n:J,t=K.parseHTML(s[1],o,!0),se.test(s[1])&&K.isPlainObject(n)&&this.attr.call(t,n,!0),K.merge(this,t);if(r=J.getElementById(s[2]),r&&r.parentNode){if(r.id!==s[2])return i.find(t);this.length=1,this[0]=r}return this.context=J,this.selector=t,this}return K.isFunction(t)?i.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),K.makeArray(t,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return U.call(this)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t,e,n){var i=K.merge(this.constructor(),t);return i.prevObject=this,i.context=this.context,"find"===e?i.selector=this.selector+(this.selector?" ":"")+n:e&&(i.selector=this.selector+"."+e+"("+n+")"),i},each:function(t,e){return K.each(this,t,e)},ready:function(t){return K.ready.promise().done(t),this},eq:function(t){return t=+t,-1===t?this.slice(t):this.slice(t,t+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(U.apply(this,arguments),"slice",U.call(arguments).join(","))},map:function(t){return this.pushStack(K.map(this,function(e,n){return t.call(e,n,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:W,sort:[].sort,splice:[].splice},K.fn.init.prototype=K.fn,K.extend=K.fn.extend=function(){var t,n,i,s,r,o,a=arguments[0]||{},l=1,h=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[1]||{},l=2),"object"==typeof a||K.isFunction(a)||(a={}),h===l&&(a=this,--l);h>l;l++)if(null!=(t=arguments[l]))for(n in t)i=a[n],s=t[n],a!==s&&(u&&s&&(K.isPlainObject(s)||(r=K.isArray(s)))?(r?(r=!1,o=i&&K.isArray(i)?i:[]):o=i&&K.isPlainObject(i)?i:{},a[n]=K.extend(u,o,s)):s!==e&&(a[n]=s));return a},K.extend({noConflict:function(e){return t.$===K&&(t.$=q),e&&t.jQuery===K&&(t.jQuery=X),K},isReady:!1,readyWait:1,holdReady:function(t){t?K.readyWait++:K.ready(!0)},ready:function(t){if(t===!0?!--K.readyWait:!K.isReady){if(!J.body)return setTimeout(K.ready,1);K.isReady=!0,t!==!0&&--K.readyWait>0||(H.resolveWith(J,[K]),K.fn.trigger&&K(J).trigger("ready").off("ready"))}},isFunction:function(t){return"function"===K.type(t)},isArray:Array.isArray||function(t){return"array"===K.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?t+"":de[G.call(t)]||"object"},isPlainObject:function(t){if(!t||"object"!==K.type(t)||t.nodeType||K.isWindow(t))return!1;try{if(t.constructor&&!Q.call(t,"constructor")&&!Q.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var i;for(i in t);return i===e||Q.call(t,i)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},error:function(t){throw Error(t)},parseHTML:function(t,e,n){var i;return t&&"string"==typeof t?("boolean"==typeof e&&(n=e,e=0),e=e||J,(i=se.exec(t))?[e.createElement(i[1])]:(i=K.buildFragment([t],e,n?null:[]),K.merge([],(i.cacheable?K.clone(i.fragment):i.fragment).childNodes))):null},parseJSON:function(n){return n&&"string"==typeof n?(n=K.trim(n),t.JSON&&t.JSON.parse?t.JSON.parse(n):re.test(n.replace(ae,"@").replace(le,"]").replace(oe,""))?Function("return "+n)():(K.error("Invalid JSON: "+n),e)):null},parseXML:function(n){var i,s;if(!n||"string"!=typeof n)return null;try{t.DOMParser?(s=new DOMParser,i=s.parseFromString(n,"text/xml")):(i=new ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(n))}catch(r){i=e}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||K.error("Invalid XML: "+n),i},noop:function(){},globalEval:function(e){e&&te.test(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(he,"ms-").replace(ue,ce)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,n,i){var s,r=0,o=t.length,a=o===e||K.isFunction(t);if(i)if(a){for(s in t)if(n.apply(t[s],i)===!1)break}else for(;o>r&&n.apply(t[r++],i)!==!1;);else if(a){for(s in t)if(n.call(t[s],s,t[s])===!1)break}else for(;o>r&&n.call(t[r],r,t[r++])!==!1;);return t},trim:Y&&!Y.call(" ")?function(t){return null==t?"":Y.call(t)}:function(t){return null==t?"":(t+"").replace(ne,"")},makeArray:function(t,e){var n,i=e||[];return null!=t&&(n=K.type(t),null==t.length||"string"===n||"function"===n||"regexp"===n||K.isWindow(t)?W.call(i,t):K.merge(i,t)),i},inArray:function(t,e,n){var i;if(e){if(V)return V.call(e,t,n);for(i=e.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,n){var i=n.length,s=t.length,r=0;if("number"==typeof i)for(;i>r;r++)t[s++]=n[r];else for(;n[r]!==e;)t[s++]=n[r++];return t.length=s,t},grep:function(t,e,n){var i,s=[],r=0,o=t.length;for(n=!!n;o>r;r++)i=!!e(t[r],r),n!==i&&s.push(t[r]);return s},map:function(t,n,i){var s,r,o=[],a=0,l=t.length,h=t instanceof K||l!==e&&"number"==typeof l&&(l>0&&t[0]&&t[l-1]||0===l||K.isArray(t));if(h)for(;l>a;a++)s=n(t[a],a,i),null!=s&&(o[o.length]=s);else for(r in t)s=n(t[r],r,i),null!=s&&(o[o.length]=s);return o.concat.apply([],o)},guid:1,proxy:function(t,n){var i,s,r;return"string"==typeof n&&(i=t[n],n=t,t=i),K.isFunction(t)?(s=U.call(arguments,2),r=function(){return t.apply(n,s.concat(U.call(arguments)))},r.guid=t.guid=t.guid||K.guid++,r):e},access:function(t,n,i,s,r,o,a){var l,h=null==i,u=0,c=t.length;if(i&&"object"==typeof i){for(u in i)K.access(t,n,u,i[u],1,o,s);r=1}else if(s!==e){if(l=a===e&&K.isFunction(s),h&&(l?(l=n,n=function(t,e,n){return l.call(K(t),n)}):(n.call(t,s),n=null)),n)for(;c>u;u++)n(t[u],i,l?s.call(t[u],u,n(t[u],i)):s,a);r=1}return r?t:h?n.call(t):c?n(t[0],i):o},now:function(){return(new Date).getTime()}}),K.ready.promise=function(e){if(!H)if(H=K.Deferred(),"complete"===J.readyState)setTimeout(K.ready,1);else if(J.addEventListener)J.addEventListener("DOMContentLoaded",fe,!1),t.addEventListener("load",K.ready,!1);else{J.attachEvent("onreadystatechange",fe),t.attachEvent("onload",K.ready);var n=!1;try{n=null==t.frameElement&&J.documentElement}catch(i){}n&&n.doScroll&&function s(){if(!K.isReady){try{n.doScroll("left")}catch(t){return setTimeout(s,50)}K.ready()}}()}return H.promise(e)},K.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(t,e){de["[object "+e+"]"]=e.toLowerCase()}),R=K(J);var pe={};K.Callbacks=function(t){t="string"==typeof t?pe[t]||n(t):K.extend({},t);var i,s,r,o,a,l,h=[],u=!t.once&&[],c=function(e){for(i=t.memory&&e,s=!0,l=o||0,o=0,a=h.length,r=!0;h&&a>l;l++)if(h[l].apply(e[0],e[1])===!1&&t.stopOnFalse){i=!1;break}r=!1,h&&(u?u.length&&c(u.shift()):i?h=[]:f.disable())},f={add:function(){if(h){var e=h.length;(function n(e){K.each(e,function(e,i){var s=K.type(i);"function"===s?t.unique&&f.has(i)||h.push(i):i&&i.length&&"string"!==s&&n(i)})})(arguments),r?a=h.length:i&&(o=e,c(i))}return this},remove:function(){return h&&K.each(arguments,function(t,e){for(var n;(n=K.inArray(e,h,n))>-1;)h.splice(n,1),r&&(a>=n&&a--,l>=n&&l--)}),this},has:function(t){return K.inArray(t,h)>-1},empty:function(){return h=[],this},disable:function(){return h=u=i=e,this},disabled:function(){return!h},lock:function(){return u=e,i||f.disable(),this},locked:function(){return!u},fireWith:function(t,e){return e=e||[],e=[t,e.slice?e.slice():e],!h||s&&!u||(r?u.push(e):c(e)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!s}};return f},K.extend({Deferred:function(t){var e=[["resolve","done",K.Callbacks("once memory"),"resolved"],["reject","fail",K.Callbacks("once memory"),"rejected"],["notify","progress",K.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var t=arguments;return K.Deferred(function(n){K.each(e,function(e,i){var r=i[0],o=t[e];s[i[1]](K.isFunction(o)?function(){var t=o.apply(this,arguments);t&&K.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[r+"With"](this===s?n:this,[t])}:n[r])}),t=null}).promise()},promise:function(t){return null!=t?K.extend(t,i):i}},s={};return i.pipe=i.then,K.each(e,function(t,r){var o=r[2],a=r[3];i[r[1]]=o.add,a&&o.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),s[r[0]]=o.fire,s[r[0]+"With"]=o.fireWith}),i.promise(s),t&&t.call(s,s),s},when:function(t){var e,n,i,s=0,r=U.call(arguments),o=r.length,a=1!==o||t&&K.isFunction(t.promise)?o:0,l=1===a?t:K.Deferred(),h=function(t,n,i){return function(s){n[t]=this,i[t]=arguments.length>1?U.call(arguments):s,i===e?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(o>1)for(e=Array(o),n=Array(o),i=Array(o);o>s;s++)r[s]&&K.isFunction(r[s].promise)?r[s].promise().done(h(s,i,r)).fail(l.reject).progress(h(s,n,e)):--a;return a||l.resolveWith(i,r),l.promise()}}),K.support=function(){var n,i,s,r,o,a,l,h,u,c,f,d=J.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=d.getElementsByTagName("*"),s=d.getElementsByTagName("a")[0],!i||!s||!i.length)return{};r=J.createElement("select"),o=r.appendChild(J.createElement("option")),a=d.getElementsByTagName("input")[0],s.style.cssText="top:1px;float:left;opacity:.5",n={leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(s.getAttribute("style")),hrefNormalized:"/a"===s.getAttribute("href"),opacity:/^0.5/.test(s.style.opacity),cssFloat:!!s.style.cssFloat,checkOn:"on"===a.value,optSelected:o.selected,getSetAttribute:"t"!==d.className,enctype:!!J.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==J.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===J.compatMode,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},a.checked=!0,n.noCloneChecked=a.cloneNode(!0).checked,r.disabled=!0,n.optDisabled=!o.disabled;try{delete d.test}catch(p){n.deleteExpando=!1}if(!d.addEventListener&&d.attachEvent&&d.fireEvent&&(d.attachEvent("onclick",f=function(){n.noCloneEvent=!1}),d.cloneNode(!0).fireEvent("onclick"),d.detachEvent("onclick",f)),a=J.createElement("input"),a.value="t",a.setAttribute("type","radio"),n.radioValue="t"===a.value,a.setAttribute("checked","checked"),a.setAttribute("name","t"),d.appendChild(a),l=J.createDocumentFragment(),l.appendChild(d.lastChild),n.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,n.appendChecked=a.checked,l.removeChild(a),l.appendChild(d),d.attachEvent)for(u in{submit:!0,change:!0,focusin:!0})h="on"+u,c=h in d,c||(d.setAttribute(h,"return;"),c="function"==typeof d[h]),n[u+"Bubbles"]=c;return K(function(){var i,s,r,o,a="padding:0;margin:0;border:0;display:block;overflow:hidden;",l=J.getElementsByTagName("body")[0];l&&(i=J.createElement("div"),i.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",l.insertBefore(i,l.firstChild),s=J.createElement("div"),i.appendChild(s),s.innerHTML="<table><tr><td></td><td>t</td></tr></table>",r=s.getElementsByTagName("td"),r[0].style.cssText="padding:0;margin:0;border:0;display:none",c=0===r[0].offsetHeight,r[0].style.display="",r[1].style.display="none",n.reliableHiddenOffsets=c&&0===r[0].offsetHeight,s.innerHTML="",s.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",n.boxSizing=4===s.offsetWidth,n.doesNotIncludeMarginInBodyOffset=1!==l.offsetTop,t.getComputedStyle&&(n.pixelPosition="1%"!==(t.getComputedStyle(s,null)||{}).top,n.boxSizingReliable="4px"===(t.getComputedStyle(s,null)||{width:"4px"}).width,o=J.createElement("div"),o.style.cssText=s.style.cssText=a,o.style.marginRight=o.style.width="0",s.style.width="1px",s.appendChild(o),n.reliableMarginRight=!parseFloat((t.getComputedStyle(o,null)||{}).marginRight)),s.style.zoom!==e&&(s.innerHTML="",s.style.cssText=a+"width:1px;padding:1px;display:inline;zoom:1",n.inlineBlockNeedsLayout=3===s.offsetWidth,s.style.display="block",s.style.overflow="visible",s.innerHTML="<div></div>",s.firstChild.style.width="5px",n.shrinkWrapBlocks=3!==s.offsetWidth,i.style.zoom=1),l.removeChild(i),i=s=r=o=null)}),l.removeChild(d),i=s=r=o=a=l=d=null,n}();var _e=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,me=/([A-Z])/g;K.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(K.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(t){return t=t.nodeType?K.cache[t[K.expando]]:t[K.expando],!!t&&!s(t)},data:function(t,n,i,s){if(K.acceptData(t)){var r,o,a=K.expando,l="string"==typeof n,h=t.nodeType,u=h?K.cache:t,c=h?t[a]:t[a]&&a;if(c&&u[c]&&(s||u[c].data)||!l||i!==e)return c||(h?t[a]=c=K.deletedIds.pop()||K.guid++:c=a),u[c]||(u[c]={},h||(u[c].toJSON=K.noop)),("object"==typeof n||"function"==typeof n)&&(s?u[c]=K.extend(u[c],n):u[c].data=K.extend(u[c].data,n)),r=u[c],s||(r.data||(r.data={}),r=r.data),i!==e&&(r[K.camelCase(n)]=i),l?(o=r[n],null==o&&(o=r[K.camelCase(n)])):o=r,o}},removeData:function(t,e,n){if(K.acceptData(t)){var i,r,o,a=t.nodeType,l=a?K.cache:t,h=a?t[K.expando]:K.expando;if(l[h]){if(e&&(i=n?l[h]:l[h].data)){K.isArray(e)||(e in i?e=[e]:(e=K.camelCase(e),e=e in i?[e]:e.split(" ")));for(r=0,o=e.length;o>r;r++)delete i[e[r]];if(!(n?s:K.isEmptyObject)(i))return}(n||(delete l[h].data,s(l[h])))&&(a?K.cleanData([t],!0):K.support.deleteExpando||l!=l.window?delete l[h]:l[h]=null)}}},_data:function(t,e,n){return K.data(t,e,n,!0)},acceptData:function(t){var e=t.nodeName&&K.noData[t.nodeName.toLowerCase()];return!e||e!==!0&&t.getAttribute("classid")===e}}),K.fn.extend({data:function(t,n){var s,r,o,a,l,h=this[0],u=0,c=null;if(t===e){if(this.length&&(c=K.data(h),1===h.nodeType&&!K._data(h,"parsedAttrs"))){for(o=h.attributes,l=o.length;l>u;u++)a=o[u].name,a.indexOf("data-")||(a=K.camelCase(a.substring(5)),i(h,a,c[a]));K._data(h,"parsedAttrs",!0)}return c}return"object"==typeof t?this.each(function(){K.data(this,t)}):(s=t.split(".",2),s[1]=s[1]?"."+s[1]:"",r=s[1]+"!",K.access(this,function(n){return n===e?(c=this.triggerHandler("getData"+r,[s[0]]),c===e&&h&&(c=K.data(h,t),c=i(h,t,c)),c===e&&s[1]?this.data(s[0]):c):(s[1]=n,this.each(function(){var e=K(this);e.triggerHandler("setData"+r,s),K.data(this,t,n),e.triggerHandler("changeData"+r,s)}),e)},null,n,arguments.length>1,null,!1))},removeData:function(t){return this.each(function(){K.removeData(this,t)})}}),K.extend({queue:function(t,n,i){var s;return t?(n=(n||"fx")+"queue",s=K._data(t,n),i&&(!s||K.isArray(i)?s=K._data(t,n,K.makeArray(i)):s.push(i)),s||[]):e},dequeue:function(t,e){e=e||"fx";var n=K.queue(t,e),i=n.length,s=n.shift(),r=K._queueHooks(t,e),o=function(){K.dequeue(t,e)};"inprogress"===s&&(s=n.shift(),i--),s&&("fx"===e&&n.unshift("inprogress"),delete r.stop,s.call(t,o,r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return K._data(t,n)||K._data(t,n,{empty:K.Callbacks("once memory").add(function(){K.removeData(t,e+"queue",!0),K.removeData(t,n,!0)})})}}),K.fn.extend({queue:function(t,n){var i=2;return"string"!=typeof t&&(n=t,t="fx",i--),i>arguments.length?K.queue(this[0],t):n===e?this:this.each(function(){var e=K.queue(this,t,n);K._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&K.dequeue(this,t)})},dequeue:function(t){return this.each(function(){K.dequeue(this,t)})},delay:function(t,e){return t=K.fx?K.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){var i,s=1,r=K.Deferred(),o=this,a=this.length,l=function(){--s||r.resolveWith(o,[o])};for("string"!=typeof t&&(n=t,t=e),t=t||"fx";a--;)i=K._data(o[a],t+"queueHooks"),i&&i.empty&&(s++,i.empty.add(l));return l(),r.promise(n)}});var ge,ve,ye,be=/[\t\r\n]/g,xe=/\r/g,ke=/^(?:button|input)$/i,we=/^(?:button|input|object|select|textarea)$/i,Te=/^a(?:rea|)$/i,Ae=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Ee=K.support.getSetAttribute;K.fn.extend({attr:function(t,e){return K.access(this,K.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){K.removeAttr(this,t)})},prop:function(t,e){return K.access(this,K.prop,t,e,arguments.length>1)},removeProp:function(t){return t=K.propFix[t]||t,this.each(function(){try{this[t]=e,delete this[t]}catch(n){}})},addClass:function(t){var e,n,i,s,r,o,a;if(K.isFunction(t))return this.each(function(e){K(this).addClass(t.call(this,e,this.className))});if(t&&"string"==typeof t)for(e=t.split(ee),n=0,i=this.length;i>n;n++)if(s=this[n],1===s.nodeType)if(s.className||1!==e.length){for(r=" "+s.className+" ",o=0,a=e.length;a>o;o++)0>r.indexOf(" "+e[o]+" ")&&(r+=e[o]+" ");s.className=K.trim(r)}else s.className=t;return this},removeClass:function(t){var n,i,s,r,o,a,l;if(K.isFunction(t))return this.each(function(e){K(this).removeClass(t.call(this,e,this.className))});if(t&&"string"==typeof t||t===e)for(n=(t||"").split(ee),a=0,l=this.length;l>a;a++)if(s=this[a],1===s.nodeType&&s.className){for(i=(" "+s.className+" ").replace(be," "),r=0,o=n.length;o>r;r++)for(;i.indexOf(" "+n[r]+" ")>=0;)i=i.replace(" "+n[r]+" "," ");s.className=t?K.trim(i):""}return this},toggleClass:function(t,e){var n=typeof t,i="boolean"==typeof e;return K.isFunction(t)?this.each(function(n){K(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var s,r=0,o=K(this),a=e,l=t.split(ee);s=l[r++];)a=i?a:!o.hasClass(s),o[a?"addClass":"removeClass"](s);else("undefined"===n||"boolean"===n)&&(this.className&&K._data(this,"__className__",this.className),this.className=this.className||t===!1?"":K._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(be," ").indexOf(e)>=0)return!0;return!1},val:function(t){var n,i,s,r=this[0];{if(arguments.length)return s=K.isFunction(t),this.each(function(i){var r,o=K(this);1===this.nodeType&&(r=s?t.call(this,i,o.val()):t,null==r?r="":"number"==typeof r?r+="":K.isArray(r)&&(r=K.map(r,function(t){return null==t?"":t+""})),n=K.valHooks[this.type]||K.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&n.set(this,r,"value")!==e||(this.value=r))});if(r)return n=K.valHooks[r.type]||K.valHooks[r.nodeName.toLowerCase()],n&&"get"in n&&(i=n.get(r,"value"))!==e?i:(i=r.value,"string"==typeof i?i.replace(xe,""):null==i?"":i)}}}),K.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){for(var e,n,i=t.options,s=t.selectedIndex,r="select-one"===t.type||0>s,o=r?null:[],a=r?s+1:i.length,l=0>s?a:r?s:0;a>l;l++)if(n=i[l],!(!n.selected&&l!==s||(K.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&K.nodeName(n.parentNode,"optgroup"))){if(e=K(n).val(),r)return e;
o.push(e)}return o},set:function(t,e){var n=K.makeArray(e);return K(t).find("option").each(function(){this.selected=K.inArray(K(this).val(),n)>=0}),n.length||(t.selectedIndex=-1),n}}},attrFn:{},attr:function(t,n,i,s){var r,o,a,l=t.nodeType;if(t&&3!==l&&8!==l&&2!==l)return s&&K.isFunction(K.fn[n])?K(t)[n](i):t.getAttribute===e?K.prop(t,n,i):(a=1!==l||!K.isXMLDoc(t),a&&(n=n.toLowerCase(),o=K.attrHooks[n]||(Ae.test(n)?ve:ge)),i!==e?null===i?(K.removeAttr(t,n),e):o&&"set"in o&&a&&(r=o.set(t,i,n))!==e?r:(t.setAttribute(n,i+""),i):o&&"get"in o&&a&&null!==(r=o.get(t,n))?r:(r=t.getAttribute(n),null===r?e:r))},removeAttr:function(t,e){var n,i,s,r,o=0;if(e&&1===t.nodeType)for(i=e.split(ee);i.length>o;o++)s=i[o],s&&(n=K.propFix[s]||s,r=Ae.test(s),r||K.attr(t,s,""),t.removeAttribute(Ee?s:n),r&&n in t&&(t[n]=!1))},attrHooks:{type:{set:function(t,e){if(ke.test(t.nodeName)&&t.parentNode)K.error("type property can't be changed");else if(!K.support.radioValue&&"radio"===e&&K.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}},value:{get:function(t,e){return ge&&K.nodeName(t,"button")?ge.get(t,e):e in t?t.value:null},set:function(t,n,i){return ge&&K.nodeName(t,"button")?ge.set(t,n,i):(t.value=n,e)}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(t,n,i){var s,r,o,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return o=1!==a||!K.isXMLDoc(t),o&&(n=K.propFix[n]||n,r=K.propHooks[n]),i!==e?r&&"set"in r&&(s=r.set(t,i,n))!==e?s:t[n]=i:r&&"get"in r&&null!==(s=r.get(t,n))?s:t[n]},propHooks:{tabIndex:{get:function(t){var n=t.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):we.test(t.nodeName)||Te.test(t.nodeName)&&t.href?0:e}}}}),ve={get:function(t,n){var i,s=K.prop(t,n);return s===!0||"boolean"!=typeof s&&(i=t.getAttributeNode(n))&&i.nodeValue!==!1?n.toLowerCase():e},set:function(t,e,n){var i;return e===!1?K.removeAttr(t,n):(i=K.propFix[n]||n,i in t&&(t[i]=!0),t.setAttribute(n,n.toLowerCase())),n}},Ee||(ye={name:!0,id:!0,coords:!0},ge=K.valHooks.button={get:function(t,n){var i;return i=t.getAttributeNode(n),i&&(ye[n]?""!==i.value:i.specified)?i.value:e},set:function(t,e,n){var i=t.getAttributeNode(n);return i||(i=J.createAttribute(n),t.setAttributeNode(i)),i.value=e+""}},K.each(["width","height"],function(t,n){K.attrHooks[n]=K.extend(K.attrHooks[n],{set:function(t,i){return""===i?(t.setAttribute(n,"auto"),i):e}})}),K.attrHooks.contenteditable={get:ge.get,set:function(t,e,n){""===e&&(e="false"),ge.set(t,e,n)}}),K.support.hrefNormalized||K.each(["href","src","width","height"],function(t,n){K.attrHooks[n]=K.extend(K.attrHooks[n],{get:function(t){var i=t.getAttribute(n,2);return null===i?e:i}})}),K.support.style||(K.attrHooks.style={get:function(t){return t.style.cssText.toLowerCase()||e},set:function(t,e){return t.style.cssText=e+""}}),K.support.optSelected||(K.propHooks.selected=K.extend(K.propHooks.selected,{get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}})),K.support.enctype||(K.propFix.enctype="encoding"),K.support.checkOn||K.each(["radio","checkbox"],function(){K.valHooks[this]={get:function(t){return null===t.getAttribute("value")?"on":t.value}}}),K.each(["radio","checkbox"],function(){K.valHooks[this]=K.extend(K.valHooks[this],{set:function(t,n){return K.isArray(n)?t.checked=K.inArray(K(t).val(),n)>=0:e}})});var Se=/^(?:textarea|input|select)$/i,Ce=/^([^\.]*|)(?:\.(.+)|)$/,Ne=/(?:^|\s)hover(\.\S+|)\b/,De=/^key/,Be=/^(?:mouse|contextmenu)|click/,Le=/^(?:focusinfocus|focusoutblur)$/,je=function(t){return K.event.special.hover?t:t.replace(Ne,"mouseenter$1 mouseleave$1")};K.event={add:function(t,n,i,s,r){var o,a,l,h,u,c,f,d,p,_,m;if(3!==t.nodeType&&8!==t.nodeType&&n&&i&&(o=K._data(t))){for(i.handler&&(p=i,i=p.handler,r=p.selector),i.guid||(i.guid=K.guid++),l=o.events,l||(o.events=l={}),a=o.handle,a||(o.handle=a=function(t){return K===e||t&&K.event.triggered===t.type?e:K.event.dispatch.apply(a.elem,arguments)},a.elem=t),n=K.trim(je(n)).split(" "),h=0;n.length>h;h++)u=Ce.exec(n[h])||[],c=u[1],f=(u[2]||"").split(".").sort(),m=K.event.special[c]||{},c=(r?m.delegateType:m.bindType)||c,m=K.event.special[c]||{},d=K.extend({type:c,origType:u[1],data:s,handler:i,guid:i.guid,selector:r,needsContext:r&&K.expr.match.needsContext.test(r),namespace:f.join(".")},p),_=l[c],_||(_=l[c]=[],_.delegateCount=0,m.setup&&m.setup.call(t,s,f,a)!==!1||(t.addEventListener?t.addEventListener(c,a,!1):t.attachEvent&&t.attachEvent("on"+c,a))),m.add&&(m.add.call(t,d),d.handler.guid||(d.handler.guid=i.guid)),r?_.splice(_.delegateCount++,0,d):_.push(d),K.event.global[c]=!0;t=null}},global:{},remove:function(t,e,n,i,s){var r,o,a,l,h,u,c,f,d,p,_,m=K.hasData(t)&&K._data(t);if(m&&(f=m.events)){for(e=K.trim(je(e||"")).split(" "),r=0;e.length>r;r++)if(o=Ce.exec(e[r])||[],a=l=o[1],h=o[2],a){for(d=K.event.special[a]||{},a=(i?d.delegateType:d.bindType)||a,p=f[a]||[],u=p.length,h=h?RegExp("(^|\\.)"+h.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c=0;p.length>c;c++)_=p[c],!s&&l!==_.origType||n&&n.guid!==_.guid||h&&!h.test(_.namespace)||i&&i!==_.selector&&("**"!==i||!_.selector)||(p.splice(c--,1),_.selector&&p.delegateCount--,d.remove&&d.remove.call(t,_));0===p.length&&u!==p.length&&(d.teardown&&d.teardown.call(t,h,m.handle)!==!1||K.removeEvent(t,a,m.handle),delete f[a])}else for(a in f)K.event.remove(t,a+e[r],n,i,!0);K.isEmptyObject(f)&&(delete m.handle,K.removeData(t,"events",!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,i,s,r){if(!s||3!==s.nodeType&&8!==s.nodeType){var o,a,l,h,u,c,f,d,p,_,m=n.type||n,g=[];if(!Le.test(m+K.event.triggered)&&(m.indexOf("!")>=0&&(m=m.slice(0,-1),a=!0),m.indexOf(".")>=0&&(g=m.split("."),m=g.shift(),g.sort()),s&&!K.event.customEvent[m]||K.event.global[m]))if(n="object"==typeof n?n[K.expando]?n:new K.Event(m,n):new K.Event(m),n.type=m,n.isTrigger=!0,n.exclusive=a,n.namespace=g.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c=0>m.indexOf(":")?"on"+m:"",s){if(n.result=e,n.target||(n.target=s),i=null!=i?K.makeArray(i):[],i.unshift(n),f=K.event.special[m]||{},!f.trigger||f.trigger.apply(s,i)!==!1){if(p=[[s,f.bindType||m]],!r&&!f.noBubble&&!K.isWindow(s)){for(_=f.delegateType||m,h=Le.test(_+m)?s:s.parentNode,u=s;h;h=h.parentNode)p.push([h,_]),u=h;u===(s.ownerDocument||J)&&p.push([u.defaultView||u.parentWindow||t,_])}for(l=0;p.length>l&&!n.isPropagationStopped();l++)h=p[l][0],n.type=p[l][1],d=(K._data(h,"events")||{})[n.type]&&K._data(h,"handle"),d&&d.apply(h,i),d=c&&h[c],d&&K.acceptData(h)&&d.apply&&d.apply(h,i)===!1&&n.preventDefault();return n.type=m,r||n.isDefaultPrevented()||f._default&&f._default.apply(s.ownerDocument,i)!==!1||"click"===m&&K.nodeName(s,"a")||!K.acceptData(s)||c&&s[m]&&("focus"!==m&&"blur"!==m||0!==n.target.offsetWidth)&&!K.isWindow(s)&&(u=s[c],u&&(s[c]=null),K.event.triggered=m,s[m](),K.event.triggered=e,u&&(s[c]=u)),n.result}}else{o=K.cache;for(l in o)o[l].events&&o[l].events[m]&&K.event.trigger(n,i,o[l].handle.elem,!0)}}},dispatch:function(n){n=K.event.fix(n||t.event);var i,s,r,o,a,l,h,u,c,f=(K._data(this,"events")||{})[n.type]||[],d=f.delegateCount,p=U.call(arguments),_=!n.exclusive&&!n.namespace,m=K.event.special[n.type]||{},g=[];if(p[0]=n,n.delegateTarget=this,!m.preDispatch||m.preDispatch.call(this,n)!==!1){if(d&&(!n.button||"click"!==n.type))for(r=n.target;r!=this;r=r.parentNode||this)if(r.disabled!==!0||"click"!==n.type){for(a={},h=[],i=0;d>i;i++)u=f[i],c=u.selector,a[c]===e&&(a[c]=u.needsContext?K(c,this).index(r)>=0:K.find(c,this,null,[r]).length),a[c]&&h.push(u);h.length&&g.push({elem:r,matches:h})}for(f.length>d&&g.push({elem:this,matches:f.slice(d)}),i=0;g.length>i&&!n.isPropagationStopped();i++)for(l=g[i],n.currentTarget=l.elem,s=0;l.matches.length>s&&!n.isImmediatePropagationStopped();s++)u=l.matches[s],(_||!n.namespace&&!u.namespace||n.namespace_re&&n.namespace_re.test(u.namespace))&&(n.data=u.data,n.handleObj=u,o=((K.event.special[u.origType]||{}).handle||u.handler).apply(l.elem,p),o!==e&&(n.result=o,o===!1&&(n.preventDefault(),n.stopPropagation())));return m.postDispatch&&m.postDispatch.call(this,n),n.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,n){var i,s,r,o=n.button,a=n.fromElement;return null==t.pageX&&null!=n.clientX&&(i=t.target.ownerDocument||J,s=i.documentElement,r=i.body,t.pageX=n.clientX+(s&&s.scrollLeft||r&&r.scrollLeft||0)-(s&&s.clientLeft||r&&r.clientLeft||0),t.pageY=n.clientY+(s&&s.scrollTop||r&&r.scrollTop||0)-(s&&s.clientTop||r&&r.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?n.toElement:a),t.which||o===e||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[K.expando])return t;var e,n,i=t,s=K.event.fixHooks[t.type]||{},r=s.props?this.props.concat(s.props):this.props;for(t=K.Event(i),e=r.length;e;)n=r[--e],t[n]=i[n];return t.target||(t.target=i.srcElement||J),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,s.filter?s.filter(t,i):t},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(t,e,n){K.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(t,e){this.onbeforeunload===e&&(this.onbeforeunload=null)}}},simulate:function(t,e,n,i){var s=K.extend(new K.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?K.event.trigger(s,null,e):K.event.dispatch.call(e,s),s.isDefaultPrevented()&&n.preventDefault()}},K.event.handle=K.event.dispatch,K.removeEvent=J.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,n,i){var s="on"+n;t.detachEvent&&(t[s]===e&&(t[s]=null),t.detachEvent(s,i))},K.Event=function(t,n){return this instanceof K.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.returnValue===!1||t.getPreventDefault&&t.getPreventDefault()?o:r):this.type=t,n&&K.extend(this,n),this.timeStamp=t&&t.timeStamp||K.now(),this[K.expando]=!0,e):new K.Event(t,n)},K.Event.prototype={preventDefault:function(){this.isDefaultPrevented=o;var t=this.originalEvent;t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=o;var t=this.originalEvent;t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=o,this.stopPropagation()},isDefaultPrevented:r,isPropagationStopped:r,isImmediatePropagationStopped:r},K.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){K.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,s=t.relatedTarget,r=t.handleObj;return r.selector,(!s||s!==i&&!K.contains(i,s))&&(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),K.support.submitBubbles||(K.event.special.submit={setup:function(){return K.nodeName(this,"form")?!1:(K.event.add(this,"click._submit keypress._submit",function(t){var n=t.target,i=K.nodeName(n,"input")||K.nodeName(n,"button")?n.form:e;i&&!K._data(i,"_submit_attached")&&(K.event.add(i,"submit._submit",function(t){t._submit_bubble=!0}),K._data(i,"_submit_attached",!0))}),e)},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&K.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){return K.nodeName(this,"form")?!1:(K.event.remove(this,"._submit"),e)}}),K.support.changeBubbles||(K.event.special.change={setup:function(){return Se.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(K.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),K.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),K.event.simulate("change",this,t,!0)})),!1):(K.event.add(this,"beforeactivate._change",function(t){var e=t.target;Se.test(e.nodeName)&&!K._data(e,"_change_attached")&&(K.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||K.event.simulate("change",this.parentNode,t,!0)}),K._data(e,"_change_attached",!0))}),e)},handle:function(t){var n=t.target;return this!==n||t.isSimulated||t.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?t.handleObj.handler.apply(this,arguments):e},teardown:function(){return K.event.remove(this,"._change"),!Se.test(this.nodeName)}}),K.support.focusinBubbles||K.each({focus:"focusin",blur:"focusout"},function(t,e){var n=0,i=function(t){K.event.simulate(e,t.target,K.event.fix(t),!0)};K.event.special[e]={setup:function(){0===n++&&J.addEventListener(t,i,!0)},teardown:function(){0===--n&&J.removeEventListener(t,i,!0)}}}),K.fn.extend({on:function(t,n,i,s,o){var a,l;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=e);for(l in t)this.on(l,n,i,t[l],o);return this}if(null==i&&null==s?(s=n,i=n=e):null==s&&("string"==typeof n?(s=i,i=e):(s=i,i=n,n=e)),s===!1)s=r;else if(!s)return this;return 1===o&&(a=s,s=function(t){return K().off(t),a.apply(this,arguments)},s.guid=a.guid||(a.guid=K.guid++)),this.each(function(){K.event.add(this,t,s,i,n)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,n,i){var s,o;if(t&&t.preventDefault&&t.handleObj)return s=t.handleObj,K(t.delegateTarget).off(s.namespace?s.origType+"."+s.namespace:s.origType,s.selector,s.handler),this;if("object"==typeof t){for(o in t)this.off(o,n,t[o]);return this}return(n===!1||"function"==typeof n)&&(i=n,n=e),i===!1&&(i=r),this.each(function(){K.event.remove(this,t,i,n)})},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},live:function(t,e,n){return K(this.context).on(t,this.selector,e,n),this},die:function(t,e){return K(this.context).off(t,this.selector||"**",e),this},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},trigger:function(t,e){return this.each(function(){K.event.trigger(t,e,this)})},triggerHandler:function(t,n){return this[0]?K.event.trigger(t,n,this[0],!0):e},toggle:function(t){var e=arguments,n=t.guid||K.guid++,i=0,s=function(n){var s=(K._data(this,"lastToggle"+t.guid)||0)%i;return K._data(this,"lastToggle"+t.guid,s+1),n.preventDefault(),e[s].apply(this,arguments)||!1};for(s.guid=n;e.length>i;)e[i++].guid=n;return this.click(s)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),K.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){K.fn[e]=function(t,n){return null==n&&(n=t,t=null),arguments.length>0?this.on(e,null,t,n):this.trigger(e)},De.test(e)&&(K.event.fixHooks[e]=K.event.keyHooks),Be.test(e)&&(K.event.fixHooks[e]=K.event.mouseHooks)}),function(t,e){function n(t,e,n,i){n=n||[],e=e||B;var s,r,o,a,l=e.nodeType;if(!t||"string"!=typeof t)return n;if(1!==l&&9!==l)return[];if(o=x(e),!o&&!i&&(s=ne.exec(t)))if(a=s[1]){if(9===l){if(r=e.getElementById(a),!r||!r.parentNode)return n;if(r.id===a)return n.push(r),n}else if(e.ownerDocument&&(r=e.ownerDocument.getElementById(a))&&k(e,r)&&r.id===a)return n.push(r),n}else{if(s[2])return O.apply(n,I.call(e.getElementsByTagName(t),0)),n;if((a=s[3])&&fe&&e.getElementsByClassName)return O.apply(n,I.call(e.getElementsByClassName(a),0)),n}return _(t.replace(Y,"$1"),e,n,i,o)}function i(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function s(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function r(t){return R(function(e){return e=+e,R(function(n,i){for(var s,r=t([],n.length,e),o=r.length;o--;)n[s=r[o]]&&(n[s]=!(i[s]=n[s]))})})}function o(t,e,n){if(t===e)return n;for(var i=t.nextSibling;i;){if(i===e)return-1;i=i.nextSibling}return 1}function a(t,e){var i,s,r,o,a,l,h,u=z[N][t+" "];if(u)return e?0:u.slice(0);for(a=t,l=[],h=y.preFilter;a;){(!i||(s=Z.exec(a)))&&(s&&(a=a.slice(s[0].length)||a),l.push(r=[])),i=!1,(s=te.exec(a))&&(r.push(i=new D(s.shift())),a=a.slice(i.length),i.type=s[0].replace(Y," "));for(o in y.filter)!(s=ae[o].exec(a))||h[o]&&!(s=h[o](s))||(r.push(i=new D(s.shift())),a=a.slice(i.length),i.type=o,i.matches=s);if(!i)break}return e?a.length:a?n.error(t):z(t,l).slice(0)}function l(t,e,n){var i=e.dir,s=n&&"parentNode"===e.dir,r=$++;return e.first?function(e,n,r){for(;e=e[i];)if(s||1===e.nodeType)return t(e,n,r)}:function(e,n,o){if(o){for(;e=e[i];)if((s||1===e.nodeType)&&t(e,n,o))return e}else for(var a,l=j+" "+r+" ",h=l+g;e=e[i];)if(s||1===e.nodeType){if((a=e[N])===h)return e.sizset;if("string"==typeof a&&0===a.indexOf(l)){if(e.sizset)return e}else{if(e[N]=h,t(e,n,o))return e.sizset=!0,e;e.sizset=!1}}}}function h(t){return t.length>1?function(e,n,i){for(var s=t.length;s--;)if(!t[s](e,n,i))return!1;return!0}:t[0]}function u(t,e,n,i,s){for(var r,o=[],a=0,l=t.length,h=null!=e;l>a;a++)(r=t[a])&&(!n||n(r,i,s))&&(o.push(r),h&&e.push(a));return o}function c(t,e,n,i,s,r){return i&&!i[N]&&(i=c(i)),s&&!s[N]&&(s=c(s,r)),R(function(r,o,a,l){var h,c,f,d=[],_=[],m=o.length,g=r||p(e||"*",a.nodeType?[a]:a,[]),v=!t||!r&&e?g:u(g,d,t,a,l),y=n?s||(r?t:m||i)?[]:o:v;if(n&&n(v,y,a,l),i)for(h=u(y,_),i(h,[],a,l),c=h.length;c--;)(f=h[c])&&(y[_[c]]=!(v[_[c]]=f));if(r){if(s||t){if(s){for(h=[],c=y.length;c--;)(f=y[c])&&h.push(v[c]=f);s(null,y=[],h,l)}for(c=y.length;c--;)(f=y[c])&&(h=s?F.call(r,f):d[c])>-1&&(r[h]=!(o[h]=f))}}else y=u(y===o?y.splice(m,y.length):y),s?s(null,o,y,l):O.apply(o,y)})}function f(t){for(var e,n,i,s=t.length,r=y.relative[t[0].type],o=r||y.relative[" "],a=r?1:0,u=l(function(t){return t===e},o,!0),d=l(function(t){return F.call(e,t)>-1},o,!0),p=[function(t,n,i){return!r&&(i||n!==E)||((e=n).nodeType?u(t,n,i):d(t,n,i))}];s>a;a++)if(n=y.relative[t[a].type])p=[l(h(p),n)];else{if(n=y.filter[t[a].type].apply(null,t[a].matches),n[N]){for(i=++a;s>i&&!y.relative[t[i].type];i++);return c(a>1&&h(p),a>1&&t.slice(0,a-1).join("").replace(Y,"$1"),n,i>a&&f(t.slice(a,i)),s>i&&f(t=t.slice(i)),s>i&&t.join(""))}p.push(n)}return h(p)}function d(t,e){var i=e.length>0,s=t.length>0,r=function(o,a,l,h,c){var f,d,p,_=[],m=0,v="0",b=o&&[],x=null!=c,k=E,w=o||s&&y.find.TAG("*",c&&a.parentNode||a),T=j+=null==k?1:Math.E;for(x&&(E=a!==B&&a,g=r.el);null!=(f=w[v]);v++){if(s&&f){for(d=0;p=t[d];d++)if(p(f,a,l)){h.push(f);break}x&&(j=T,g=++r.el)}i&&((f=!p&&f)&&m--,o&&b.push(f))}if(m+=v,i&&v!==m){for(d=0;p=e[d];d++)p(b,_,a,l);if(o){if(m>0)for(;v--;)b[v]||_[v]||(_[v]=M.call(h));_=u(_)}O.apply(h,_),x&&!o&&_.length>0&&m+e.length>1&&n.uniqueSort(h)}return x&&(j=T,E=k),b};return r.el=0,i?R(r):r}function p(t,e,i){for(var s=0,r=e.length;r>s;s++)n(t,e[s],i);return i}function _(t,e,n,i,s){var r,o,l,h,u,c=a(t);if(c.length,!i&&1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(l=o[0]).type&&9===e.nodeType&&!s&&y.relative[o[1].type]){if(e=y.find.ID(l.matches[0].replace(oe,""),e,s)[0],!e)return n;t=t.slice(o.shift().length)}for(r=ae.POS.test(t)?-1:o.length-1;r>=0&&(l=o[r],!y.relative[h=l.type]);r--)if((u=y.find[h])&&(i=u(l.matches[0].replace(oe,""),ie.test(o[0].type)&&e.parentNode||e,s))){if(o.splice(r,1),t=i.length&&o.join(""),!t)return O.apply(n,I.call(i,0)),n;break}}return w(t,c)(i,e,s,n,ie.test(t)),n}function m(){}var g,v,y,b,x,k,w,T,A,E,S=!0,C="undefined",N=("sizcache"+Math.random()).replace(".",""),D=String,B=t.document,L=B.documentElement,j=0,$=0,M=[].pop,O=[].push,I=[].slice,F=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(this[e]===t)return e;return-1},R=function(t,e){return t[N]=null==e||e,t},H=function(){var t={},e=[];return R(function(n,i){return e.push(n)>y.cacheLength&&delete t[e.shift()],t[n+" "]=i},t)},J=H(),z=H(),P=H(),X="[\\x20\\t\\r\\n\\f]",q="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",W=q.replace("w","w#"),U="([*^$|!~]?=)",V="\\["+X+"*("+q+")"+X+"*(?:"+U+X+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+X+"*\\]",G=":("+q+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+V+")|[^:]|\\\\.)*|.*))\\)|)",Q=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+X+"*((?:-\\d)?\\d*)"+X+"*\\)|)(?=[^-]|$)",Y=RegExp("^"+X+"+|((?:^|[^\\\\])(?:\\\\.)*)"+X+"+$","g"),Z=RegExp("^"+X+"*,"+X+"*"),te=RegExp("^"+X+"*([\\x20\\t\\r\\n\\f>+~])"+X+"*"),ee=RegExp(G),ne=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,ie=/[\x20\t\r\n\f]*[+~]/,se=/h\d/i,re=/input|select|textarea|button/i,oe=/\\(?!\\)/g,ae={ID:RegExp("^#("+q+")"),CLASS:RegExp("^\\.("+q+")"),NAME:RegExp("^\\[name=['\"]?("+q+")['\"]?\\]"),TAG:RegExp("^("+q.replace("w","w*")+")"),ATTR:RegExp("^"+V),PSEUDO:RegExp("^"+G),POS:RegExp(Q,"i"),CHILD:RegExp("^:(only|nth|first|last)-child(?:\\("+X+"*(even|odd|(([+-]|)(\\d*)n|)"+X+"*(?:([+-]|)"+X+"*(\\d+)|))"+X+"*\\)|)","i"),needsContext:RegExp("^"+X+"*[>+~]|"+Q,"i")},le=function(t){var e=B.createElement("div");try{return t(e)}catch(n){return!1}finally{e=null}},he=le(function(t){return t.appendChild(B.createComment("")),!t.getElementsByTagName("*").length}),ue=le(function(t){return t.innerHTML="<a href='#'></a>",t.firstChild&&typeof t.firstChild.getAttribute!==C&&"#"===t.firstChild.getAttribute("href")}),ce=le(function(t){t.innerHTML="<select></select>";var e=typeof t.lastChild.getAttribute("multiple");return"boolean"!==e&&"string"!==e}),fe=le(function(t){return t.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",t.getElementsByClassName&&t.getElementsByClassName("e").length?(t.lastChild.className="e",2===t.getElementsByClassName("e").length):!1}),de=le(function(t){t.id=N+0,t.innerHTML="<a name='"+N+"'></a><div name='"+N+"'></div>",L.insertBefore(t,L.firstChild);var e=B.getElementsByName&&B.getElementsByName(N).length===2+B.getElementsByName(N+0).length;return v=!B.getElementById(N),L.removeChild(t),e});try{I.call(L.childNodes,0)[0].nodeType}catch(pe){I=function(t){for(var e,n=[];e=this[t];t++)n.push(e);return n}}n.matches=function(t,e){return n(t,null,null,e)},n.matchesSelector=function(t,e){return n(e,null,null,[t]).length>0},b=n.getText=function(t){var e,n="",i=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=b(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[i];i++)n+=b(e);return n},x=n.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},k=n.contains=L.contains?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!!(i&&1===i.nodeType&&n.contains&&n.contains(i))}:L.compareDocumentPosition?function(t,e){return e&&!!(16&t.compareDocumentPosition(e))}:function(t,e){for(;e=e.parentNode;)if(e===t)return!0;return!1},n.attr=function(t,e){var n,i=x(t);return i||(e=e.toLowerCase()),(n=y.attrHandle[e])?n(t):i||ce?t.getAttribute(e):(n=t.getAttributeNode(e),n?"boolean"==typeof t[e]?t[e]?e:null:n.specified?n.value:null:null)},y=n.selectors={cacheLength:50,createPseudo:R,match:ae,attrHandle:ue?{}:{href:function(t){return t.getAttribute("href",2)},type:function(t){return t.getAttribute("type")}},find:{ID:v?function(t,e,n){if(typeof e.getElementById!==C&&!n){var i=e.getElementById(t);return i&&i.parentNode?[i]:[]}}:function(t,n,i){if(typeof n.getElementById!==C&&!i){var s=n.getElementById(t);return s?s.id===t||typeof s.getAttributeNode!==C&&s.getAttributeNode("id").value===t?[s]:e:[]}},TAG:he?function(t,n){return typeof n.getElementsByTagName!==C?n.getElementsByTagName(t):e}:function(t,e){var n=e.getElementsByTagName(t);if("*"===t){for(var i,s=[],r=0;i=n[r];r++)1===i.nodeType&&s.push(i);return s}return n},NAME:de&&function(t,n){return typeof n.getElementsByName!==C?n.getElementsByName(name):e},CLASS:fe&&function(t,n,i){return typeof n.getElementsByClassName===C||i?e:n.getElementsByClassName(t)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(oe,""),t[3]=(t[4]||t[5]||"").replace(oe,""),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1]?(t[2]||n.error(t[0]),t[3]=+(t[3]?t[4]+(t[5]||1):2*("even"===t[2]||"odd"===t[2])),t[4]=+(t[6]+t[7]||"odd"===t[2])):t[2]&&n.error(t[0]),t},PSEUDO:function(t){var e,n;return ae.CHILD.test(t[0])?null:(t[3]?t[2]=t[3]:(e=t[4])&&(ee.test(e)&&(n=a(e,!0))&&(n=e.indexOf(")",e.length-n)-e.length)&&(e=e.slice(0,n),t[0]=t[0].slice(0,n)),t[2]=e),t.slice(0,3))}},filter:{ID:v?function(t){return t=t.replace(oe,""),function(e){return e.getAttribute("id")===t}}:function(t){return t=t.replace(oe,""),function(e){var n=typeof e.getAttributeNode!==C&&e.getAttributeNode("id");return n&&n.value===t}},TAG:function(t){return"*"===t?function(){return!0}:(t=t.replace(oe,"").toLowerCase(),function(e){return e.nodeName&&e.nodeName.toLowerCase()===t})},CLASS:function(t){var e=J[N][t+" "];return e||(e=RegExp("(^|"+X+")"+t+"("+X+"|$)"))&&J(t,function(t){return e.test(t.className||typeof t.getAttribute!==C&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(s){var r=n.attr(s,t);return null==r?"!="===e:e?(r+="","="===e?r===i:"!="===e?r!==i:"^="===e?i&&0===r.indexOf(i):"*="===e?i&&r.indexOf(i)>-1:"$="===e?i&&r.substr(r.length-i.length)===i:"~="===e?(" "+r+" ").indexOf(i)>-1:"|="===e?r===i||r.substr(0,i.length+1)===i+"-":!1):!0}},CHILD:function(t,e,n,i){return"nth"===t?function(t){var e,s,r=t.parentNode;if(1===n&&0===i)return!0;if(r)for(s=0,e=r.firstChild;e&&(1!==e.nodeType||(s++,t!==e));e=e.nextSibling);return s-=i,s===n||0===s%n&&s/n>=0}:function(e){var n=e;switch(t){case"only":case"first":for(;n=n.previousSibling;)if(1===n.nodeType)return!1;if("first"===t)return!0;n=e;case"last":for(;n=n.nextSibling;)if(1===n.nodeType)return!1;return!0}}},PSEUDO:function(t,e){var i,s=y.pseudos[t]||y.setFilters[t.toLowerCase()]||n.error("unsupported pseudo: "+t);return s[N]?s(e):s.length>1?(i=[t,t,"",e],y.setFilters.hasOwnProperty(t.toLowerCase())?R(function(t,n){for(var i,r=s(t,e),o=r.length;o--;)i=F.call(t,r[o]),t[i]=!(n[i]=r[o])}):function(t){return s(t,0,i)}):s}},pseudos:{not:R(function(t){var e=[],n=[],i=w(t.replace(Y,"$1"));return i[N]?R(function(t,e,n,s){for(var r,o=i(t,null,s,[]),a=t.length;a--;)(r=o[a])&&(t[a]=!(e[a]=r))}):function(t,s,r){return e[0]=t,i(e,null,r,n),!n.pop()}}),has:R(function(t){return function(e){return n(t,e).length>0}}),contains:R(function(t){return function(e){return(e.textContent||e.innerText||b(e)).indexOf(t)>-1}}),enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},parent:function(t){return!y.pseudos.empty(t)},empty:function(t){var e;for(t=t.firstChild;t;){if(t.nodeName>"@"||3===(e=t.nodeType)||4===e)return!1;t=t.nextSibling}return!0},header:function(t){return se.test(t.nodeName)},text:function(t){var e,n;return"input"===t.nodeName.toLowerCase()&&"text"===(e=t.type)&&(null==(n=t.getAttribute("type"))||n.toLowerCase()===e)},radio:i("radio"),checkbox:i("checkbox"),file:i("file"),password:i("password"),image:i("image"),submit:s("submit"),reset:s("reset"),button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},input:function(t){return re.test(t.nodeName)},focus:function(t){var e=t.ownerDocument;return t===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},active:function(t){return t===t.ownerDocument.activeElement},first:r(function(){return[0]}),last:r(function(t,e){return[e-1]}),eq:r(function(t,e,n){return[0>n?n+e:n]}),even:r(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:r(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:r(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:r(function(t,e,n){for(var i=0>n?n+e:n;e>++i;)t.push(i);return t})}},T=L.compareDocumentPosition?function(t,e){return t===e?(A=!0,0):(t.compareDocumentPosition&&e.compareDocumentPosition?4&t.compareDocumentPosition(e):t.compareDocumentPosition)?-1:1}:function(t,e){if(t===e)return A=!0,0;if(t.sourceIndex&&e.sourceIndex)return t.sourceIndex-e.sourceIndex;var n,i,s=[],r=[],a=t.parentNode,l=e.parentNode,h=a;if(a===l)return o(t,e);if(!a)return-1;if(!l)return 1;for(;h;)s.unshift(h),h=h.parentNode;for(h=l;h;)r.unshift(h),h=h.parentNode;n=s.length,i=r.length;for(var u=0;n>u&&i>u;u++)if(s[u]!==r[u])return o(s[u],r[u]);return u===n?o(t,r[u],-1):o(s[u],e,1)},[0,0].sort(T),S=!A,n.uniqueSort=function(t){var e,n=[],i=1,s=0;if(A=S,t.sort(T),A){for(;e=t[i];i++)e===t[i-1]&&(s=n.push(i));for(;s--;)t.splice(n[s],1)}return t},n.error=function(t){throw Error("Syntax error, unrecognized expression: "+t)},w=n.compile=function(t,e){var n,i=[],s=[],r=P[N][t+" "];if(!r){for(e||(e=a(t)),n=e.length;n--;)r=f(e[n]),r[N]?i.push(r):s.push(r);r=P(t,d(s,i))}return r},B.querySelectorAll&&function(){var t,e=_,i=/'|\\/g,s=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,r=[":focus"],o=[":active"],l=L.matchesSelector||L.mozMatchesSelector||L.webkitMatchesSelector||L.oMatchesSelector||L.msMatchesSelector;le(function(t){t.innerHTML="<select><option selected=''></option></select>",t.querySelectorAll("[selected]").length||r.push("\\["+X+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),t.querySelectorAll(":checked").length||r.push(":checked")}),le(function(t){t.innerHTML="<p test=''></p>",t.querySelectorAll("[test^='']").length&&r.push("[*^$]="+X+"*(?:\"\"|'')"),t.innerHTML="<input type='hidden'/>",t.querySelectorAll(":enabled").length||r.push(":enabled",":disabled")}),r=RegExp(r.join("|")),_=function(t,n,s,o,l){if(!o&&!l&&!r.test(t)){var h,u,c=!0,f=N,d=n,p=9===n.nodeType&&t;if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){for(h=a(t),(c=n.getAttribute("id"))?f=c.replace(i,"\\$&"):n.setAttribute("id",f),f="[id='"+f+"'] ",u=h.length;u--;)h[u]=f+h[u].join("");d=ie.test(t)&&n.parentNode||n,p=h.join(",")}if(p)try{return O.apply(s,I.call(d.querySelectorAll(p),0)),s}catch(_){}finally{c||n.removeAttribute("id")}}return e(t,n,s,o,l)},l&&(le(function(e){t=l.call(e,"div");try{l.call(e,"[test!='']:sizzle"),o.push("!=",G)}catch(n){}}),o=RegExp(o.join("|")),n.matchesSelector=function(e,i){if(i=i.replace(s,"='$1']"),!x(e)&&!o.test(i)&&!r.test(i))try{var a=l.call(e,i);if(a||t||e.document&&11!==e.document.nodeType)return a}catch(h){}return n(i,null,null,[e]).length>0})}(),y.pseudos.nth=y.pseudos.eq,y.filters=m.prototype=y.pseudos,y.setFilters=new m,n.attr=K.attr,K.find=n,K.expr=n.selectors,K.expr[":"]=K.expr.pseudos,K.unique=n.uniqueSort,K.text=n.getText,K.isXMLDoc=n.isXML,K.contains=n.contains}(t);var $e=/Until$/,Me=/^(?:parents|prev(?:Until|All))/,Oe=/^.[^:#\[\.,]*$/,Ie=K.expr.match.needsContext,Fe={children:!0,contents:!0,next:!0,prev:!0};K.fn.extend({find:function(t){var e,n,i,s,r,o,a=this;if("string"!=typeof t)return K(t).filter(function(){for(e=0,n=a.length;n>e;e++)if(K.contains(a[e],this))return!0});for(o=this.pushStack("","find",t),e=0,n=this.length;n>e;e++)if(i=o.length,K.find(t,this[e],o),e>0)for(s=i;o.length>s;s++)for(r=0;i>r;r++)if(o[r]===o[s]){o.splice(s--,1);break}return o},has:function(t){var e,n=K(t,this),i=n.length;return this.filter(function(){for(e=0;i>e;e++)if(K.contains(this,n[e]))return!0})},not:function(t){return this.pushStack(h(this,t,!1),"not",t)},filter:function(t){return this.pushStack(h(this,t,!0),"filter",t)
},is:function(t){return!!t&&("string"==typeof t?Ie.test(t)?K(t,this.context).index(this[0])>=0:K.filter(t,this).length>0:this.filter(t).length>0)},closest:function(t,e){for(var n,i=0,s=this.length,r=[],o=Ie.test(t)||"string"!=typeof t?K(t,e||this.context):0;s>i;i++)for(n=this[i];n&&n.ownerDocument&&n!==e&&11!==n.nodeType;){if(o?o.index(n)>-1:K.find.matchesSelector(n,t)){r.push(n);break}n=n.parentNode}return r=r.length>1?K.unique(r):r,this.pushStack(r,"closest",t)},index:function(t){return t?"string"==typeof t?K.inArray(this[0],K(t)):K.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(t,e){var n="string"==typeof t?K(t,e):K.makeArray(t&&t.nodeType?[t]:t),i=K.merge(this.get(),n);return this.pushStack(a(n[0])||a(i[0])?i:K.unique(i))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),K.fn.andSelf=K.fn.addBack,K.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return K.dir(t,"parentNode")},parentsUntil:function(t,e,n){return K.dir(t,"parentNode",n)},next:function(t){return l(t,"nextSibling")},prev:function(t){return l(t,"previousSibling")},nextAll:function(t){return K.dir(t,"nextSibling")},prevAll:function(t){return K.dir(t,"previousSibling")},nextUntil:function(t,e,n){return K.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return K.dir(t,"previousSibling",n)},siblings:function(t){return K.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return K.sibling(t.firstChild)},contents:function(t){return K.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:K.merge([],t.childNodes)}},function(t,e){K.fn[t]=function(n,i){var s=K.map(this,e,n);return $e.test(t)||(i=n),i&&"string"==typeof i&&(s=K.filter(i,s)),s=this.length>1&&!Fe[t]?K.unique(s):s,this.length>1&&Me.test(t)&&(s=s.reverse()),this.pushStack(s,t,U.call(arguments).join(","))}}),K.extend({filter:function(t,e,n){return n&&(t=":not("+t+")"),1===e.length?K.find.matchesSelector(e[0],t)?[e[0]]:[]:K.find.matches(t,e)},dir:function(t,n,i){for(var s=[],r=t[n];r&&9!==r.nodeType&&(i===e||1!==r.nodeType||!K(r).is(i));)1===r.nodeType&&s.push(r),r=r[n];return s},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}});var Re="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",He=/ jQuery\d+="(?:null|\d+)"/g,Je=/^\s+/,ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Pe=/<([\w:]+)/,Xe=/<tbody/i,qe=/<|&#?\w+;/,We=/<(?:script|style|link)/i,Ue=/<(?:script|object|embed|option|style)/i,Ve=RegExp("<(?:"+Re+")[\\s/>]","i"),Ge=/^(?:checkbox|radio)$/,Qe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ye=/\/(java|ecma)script/i,Ke=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,Ze={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,"",""]},tn=u(J),en=tn.appendChild(J.createElement("div"));Ze.optgroup=Ze.option,Ze.tbody=Ze.tfoot=Ze.colgroup=Ze.caption=Ze.thead,Ze.th=Ze.td,K.support.htmlSerialize||(Ze._default=[1,"X<div>","</div>"]),K.fn.extend({text:function(t){return K.access(this,function(t){return t===e?K.text(this):this.empty().append((this[0]&&this[0].ownerDocument||J).createTextNode(t))},null,t,arguments.length)},wrapAll:function(t){if(K.isFunction(t))return this.each(function(e){K(this).wrapAll(t.call(this,e))});if(this[0]){var e=K(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return K.isFunction(t)?this.each(function(e){K(this).wrapInner(t.call(this,e))}):this.each(function(){var e=K(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=K.isFunction(t);return this.each(function(n){K(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){K.nodeName(this,"body")||K(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(t){(1===this.nodeType||11===this.nodeType)&&this.appendChild(t)})},prepend:function(){return this.domManip(arguments,!0,function(t){(1===this.nodeType||11===this.nodeType)&&this.insertBefore(t,this.firstChild)})},before:function(){if(!a(this[0]))return this.domManip(arguments,!1,function(t){this.parentNode.insertBefore(t,this)});if(arguments.length){var t=K.clean(arguments);return this.pushStack(K.merge(t,this),"before",this.selector)}},after:function(){if(!a(this[0]))return this.domManip(arguments,!1,function(t){this.parentNode.insertBefore(t,this.nextSibling)});if(arguments.length){var t=K.clean(arguments);return this.pushStack(K.merge(this,t),"after",this.selector)}},remove:function(t,e){for(var n,i=0;null!=(n=this[i]);i++)(!t||K.filter(t,[n]).length)&&(e||1!==n.nodeType||(K.cleanData(n.getElementsByTagName("*")),K.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)for(1===t.nodeType&&K.cleanData(t.getElementsByTagName("*"));t.firstChild;)t.removeChild(t.firstChild);return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return K.clone(this,t,e)})},html:function(t){return K.access(this,function(t){var n=this[0]||{},i=0,s=this.length;if(t===e)return 1===n.nodeType?n.innerHTML.replace(He,""):e;if(!("string"!=typeof t||We.test(t)||!K.support.htmlSerialize&&Ve.test(t)||!K.support.leadingWhitespace&&Je.test(t)||Ze[(Pe.exec(t)||["",""])[1].toLowerCase()])){t=t.replace(ze,"<$1></$2>");try{for(;s>i;i++)n=this[i]||{},1===n.nodeType&&(K.cleanData(n.getElementsByTagName("*")),n.innerHTML=t);n=0}catch(r){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(t){return a(this[0])?this.length?this.pushStack(K(K.isFunction(t)?t():t),"replaceWith",t):this:K.isFunction(t)?this.each(function(e){var n=K(this),i=n.html();n.replaceWith(t.call(this,e,i))}):("string"!=typeof t&&(t=K(t).detach()),this.each(function(){var e=this.nextSibling,n=this.parentNode;K(this).remove(),e?K(e).before(t):K(n).append(t)}))},detach:function(t){return this.remove(t,!0)},domManip:function(t,n,i){t=[].concat.apply([],t);var s,r,o,a,l=0,h=t[0],u=[],f=this.length;if(!K.support.checkClone&&f>1&&"string"==typeof h&&Qe.test(h))return this.each(function(){K(this).domManip(t,n,i)});if(K.isFunction(h))return this.each(function(s){var r=K(this);t[0]=h.call(this,s,n?r.html():e),r.domManip(t,n,i)});if(this[0]){if(s=K.buildFragment(t,this,u),o=s.fragment,r=o.firstChild,1===o.childNodes.length&&(o=r),r)for(n=n&&K.nodeName(r,"tr"),a=s.cacheable||f-1;f>l;l++)i.call(n&&K.nodeName(this[l],"table")?c(this[l],"tbody"):this[l],l===a?o:K.clone(o,!0,!0));o=r=null,u.length&&K.each(u,function(t,e){e.src?K.ajax?K.ajax({url:e.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):K.error("no ajax"):K.globalEval((e.text||e.textContent||e.innerHTML||"").replace(Ke,"")),e.parentNode&&e.parentNode.removeChild(e)})}return this}}),K.buildFragment=function(t,n,i){var s,r,o,a=t[0];return n=n||J,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,!(1===t.length&&"string"==typeof a&&512>a.length&&n===J&&"<"===a.charAt(0))||Ue.test(a)||!K.support.checkClone&&Qe.test(a)||!K.support.html5Clone&&Ve.test(a)||(r=!0,s=K.fragments[a],o=s!==e),s||(s=n.createDocumentFragment(),K.clean(t,n,s,i),r&&(K.fragments[a]=o&&s)),{fragment:s,cacheable:r}},K.fragments={},K.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){K.fn[t]=function(n){var i,s=0,r=[],o=K(n),a=o.length,l=1===this.length&&this[0].parentNode;if((null==l||l&&11===l.nodeType&&1===l.childNodes.length)&&1===a)return o[e](this[0]),this;for(;a>s;s++)i=(s>0?this.clone(!0):this).get(),K(o[s])[e](i),r=r.concat(i);return this.pushStack(r,t,o.selector)}}),K.extend({clone:function(t,e,n){var i,s,r,o;if(K.support.html5Clone||K.isXMLDoc(t)||!Ve.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(en.innerHTML=t.outerHTML,en.removeChild(o=en.firstChild)),!(K.support.noCloneEvent&&K.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||K.isXMLDoc(t)))for(d(t,o),i=p(t),s=p(o),r=0;i[r];++r)s[r]&&d(i[r],s[r]);if(e&&(f(t,o),n))for(i=p(t),s=p(o),r=0;i[r];++r)f(i[r],s[r]);return i=s=null,o},clean:function(t,n,i,s){var r,o,a,l,h,c,f,d,p,m,g,v=n===J&&tn,y=[];for(n&&n.createDocumentFragment!==e||(n=J),r=0;null!=(a=t[r]);r++)if("number"==typeof a&&(a+=""),a){if("string"==typeof a)if(qe.test(a)){for(v=v||u(n),f=n.createElement("div"),v.appendChild(f),a=a.replace(ze,"<$1></$2>"),l=(Pe.exec(a)||["",""])[1].toLowerCase(),h=Ze[l]||Ze._default,c=h[0],f.innerHTML=h[1]+a+h[2];c--;)f=f.lastChild;if(!K.support.tbody)for(d=Xe.test(a),p="table"!==l||d?"<table>"!==h[1]||d?[]:f.childNodes:f.firstChild&&f.firstChild.childNodes,o=p.length-1;o>=0;--o)K.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o]);!K.support.leadingWhitespace&&Je.test(a)&&f.insertBefore(n.createTextNode(Je.exec(a)[0]),f.firstChild),a=f.childNodes,f.parentNode.removeChild(f)}else a=n.createTextNode(a);a.nodeType?y.push(a):K.merge(y,a)}if(f&&(a=f=v=null),!K.support.appendChecked)for(r=0;null!=(a=y[r]);r++)K.nodeName(a,"input")?_(a):a.getElementsByTagName!==e&&K.grep(a.getElementsByTagName("input"),_);if(i)for(m=function(t){return!t.type||Ye.test(t.type)?s?s.push(t.parentNode?t.parentNode.removeChild(t):t):i.appendChild(t):e},r=0;null!=(a=y[r]);r++)K.nodeName(a,"script")&&m(a)||(i.appendChild(a),a.getElementsByTagName!==e&&(g=K.grep(K.merge([],a.getElementsByTagName("script")),m),y.splice.apply(y,[r+1,0].concat(g)),r+=g.length));return y},cleanData:function(t,e){for(var n,i,s,r,o=0,a=K.expando,l=K.cache,h=K.support.deleteExpando,u=K.event.special;null!=(s=t[o]);o++)if((e||K.acceptData(s))&&(i=s[a],n=i&&l[i])){if(n.events)for(r in n.events)u[r]?K.event.remove(s,r):K.removeEvent(s,r,n.handle);l[i]&&(delete l[i],h?delete s[a]:s.removeAttribute?s.removeAttribute(a):s[a]=null,K.deletedIds.push(i))}}}),function(){var t,e;K.uaMatch=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||0>t.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},t=K.uaMatch(P.userAgent),e={},t.browser&&(e[t.browser]=!0,e.version=t.version),e.chrome?e.webkit=!0:e.webkit&&(e.safari=!0),K.browser=e,K.sub=function(){function t(e,n){return new t.fn.init(e,n)}K.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(n,i){return i&&i instanceof K&&!(i instanceof t)&&(i=t(i)),K.fn.init.call(this,n,i,e)},t.fn.init.prototype=t.fn;var e=t(J);return t}}();var nn,sn,rn,on=/alpha\([^)]*\)/i,an=/opacity=([^)]*)/,ln=/^(top|right|bottom|left)$/,hn=/^(none|table(?!-c[ea]).+)/,un=/^margin/,cn=RegExp("^("+Z+")(.*)$","i"),fn=RegExp("^("+Z+")(?!px)[a-z%]+$","i"),dn=RegExp("^([-+])=("+Z+")","i"),pn={BODY:"block"},_n={position:"absolute",visibility:"hidden",display:"block"},mn={letterSpacing:0,fontWeight:400},gn=["Top","Right","Bottom","Left"],vn=["Webkit","O","Moz","ms"],yn=K.fn.toggle;K.fn.extend({css:function(t,n){return K.access(this,function(t,n,i){return i!==e?K.style(t,n,i):K.css(t,n)},t,n,arguments.length>1)},show:function(){return v(this,!0)},hide:function(){return v(this)},toggle:function(t,e){var n="boolean"==typeof t;return K.isFunction(t)&&K.isFunction(e)?yn.apply(this,arguments):this.each(function(){(n?t:g(this))?K(this).show():K(this).hide()})}}),K.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=nn(t,"opacity");return""===n?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":K.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,n,i,s){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,l=K.camelCase(n),h=t.style;if(n=K.cssProps[l]||(K.cssProps[l]=m(h,l)),a=K.cssHooks[n]||K.cssHooks[l],i===e)return a&&"get"in a&&(r=a.get(t,!1,s))!==e?r:h[n];if(o=typeof i,"string"===o&&(r=dn.exec(i))&&(i=(r[1]+1)*r[2]+parseFloat(K.css(t,n)),o="number"),!(null==i||"number"===o&&isNaN(i)||("number"!==o||K.cssNumber[l]||(i+="px"),a&&"set"in a&&(i=a.set(t,i,s))===e)))try{h[n]=i}catch(u){}}},css:function(t,n,i,s){var r,o,a,l=K.camelCase(n);return n=K.cssProps[l]||(K.cssProps[l]=m(t.style,l)),a=K.cssHooks[n]||K.cssHooks[l],a&&"get"in a&&(r=a.get(t,!0,s)),r===e&&(r=nn(t,n)),"normal"===r&&n in mn&&(r=mn[n]),i||s!==e?(o=parseFloat(r),i||K.isNumeric(o)?o||0:r):r},swap:function(t,e,n){var i,s,r={};for(s in e)r[s]=t.style[s],t.style[s]=e[s];i=n.call(t);for(s in e)t.style[s]=r[s];return i}}),t.getComputedStyle?nn=function(e,n){var i,s,r,o,a=t.getComputedStyle(e,null),l=e.style;return a&&(i=a.getPropertyValue(n)||a[n],""!==i||K.contains(e.ownerDocument,e)||(i=K.style(e,n)),fn.test(i)&&un.test(n)&&(s=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=i,i=a.width,l.width=s,l.minWidth=r,l.maxWidth=o)),i}:J.documentElement.currentStyle&&(nn=function(t,e){var n,i,s=t.currentStyle&&t.currentStyle[e],r=t.style;return null==s&&r&&r[e]&&(s=r[e]),fn.test(s)&&!ln.test(e)&&(n=r.left,i=t.runtimeStyle&&t.runtimeStyle.left,i&&(t.runtimeStyle.left=t.currentStyle.left),r.left="fontSize"===e?"1em":s,s=r.pixelLeft+"px",r.left=n,i&&(t.runtimeStyle.left=i)),""===s?"auto":s}),K.each(["height","width"],function(t,n){K.cssHooks[n]={get:function(t,i,s){return i?0===t.offsetWidth&&hn.test(nn(t,"display"))?K.swap(t,_n,function(){return x(t,n,s)}):x(t,n,s):e},set:function(t,e,i){return y(t,e,i?b(t,n,i,K.support.boxSizing&&"border-box"===K.css(t,"boxSizing")):0)}}}),K.support.opacity||(K.cssHooks.opacity={get:function(t,e){return an.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,s=K.isNumeric(e)?"alpha(opacity="+100*e+")":"",r=i&&i.filter||n.filter||"";n.zoom=1,e>=1&&""===K.trim(r.replace(on,""))&&n.removeAttribute&&(n.removeAttribute("filter"),i&&!i.filter)||(n.filter=on.test(r)?r.replace(on,s):r+" "+s)}}),K(function(){K.support.reliableMarginRight||(K.cssHooks.marginRight={get:function(t,n){return K.swap(t,{display:"inline-block"},function(){return n?nn(t,"marginRight"):e})}}),!K.support.pixelPosition&&K.fn.position&&K.each(["top","left"],function(t,e){K.cssHooks[e]={get:function(t,n){if(n){var i=nn(t,e);return fn.test(i)?K(t).position()[e]+"px":i}}}})}),K.expr&&K.expr.filters&&(K.expr.filters.hidden=function(t){return 0===t.offsetWidth&&0===t.offsetHeight||!K.support.reliableHiddenOffsets&&"none"===(t.style&&t.style.display||nn(t,"display"))},K.expr.filters.visible=function(t){return!K.expr.filters.hidden(t)}),K.each({margin:"",padding:"",border:"Width"},function(t,e){K.cssHooks[t+e]={expand:function(n){var i,s="string"==typeof n?n.split(" "):[n],r={};for(i=0;4>i;i++)r[t+gn[i]+e]=s[i]||s[i-2]||s[0];return r}},un.test(t)||(K.cssHooks[t+e].set=y)});var bn=/%20/g,xn=/\[\]$/,kn=/\r?\n/g,wn=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Tn=/^(?:select|textarea)/i;K.fn.extend({serialize:function(){return K.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?K.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Tn.test(this.nodeName)||wn.test(this.type))}).map(function(t,e){var n=K(this).val();return null==n?null:K.isArray(n)?K.map(n,function(t){return{name:e.name,value:t.replace(kn,"\r\n")}}):{name:e.name,value:n.replace(kn,"\r\n")}}).get()}}),K.param=function(t,n){var i,s=[],r=function(t,e){e=K.isFunction(e)?e():null==e?"":e,s[s.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(n===e&&(n=K.ajaxSettings&&K.ajaxSettings.traditional),K.isArray(t)||t.jquery&&!K.isPlainObject(t))K.each(t,function(){r(this.name,this.value)});else for(i in t)w(i,t[i],n,r);return s.join("&").replace(bn,"+")};var An,En,Sn=/#.*$/,Cn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Nn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Dn=/^(?:GET|HEAD)$/,Bn=/^\/\//,Ln=/\?/,jn=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,$n=/([?&])_=[^&]*/,Mn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,On=K.fn.load,In={},Fn={},Rn=["*/"]+["*"];try{En=z.href}catch(Hn){En=J.createElement("a"),En.href="",En=En.href}An=Mn.exec(En.toLowerCase())||[],K.fn.load=function(t,n,i){if("string"!=typeof t&&On)return On.apply(this,arguments);if(!this.length)return this;var s,r,o,a=this,l=t.indexOf(" ");return l>=0&&(s=t.slice(l,t.length),t=t.slice(0,l)),K.isFunction(n)?(i=n,n=e):n&&"object"==typeof n&&(r="POST"),K.ajax({url:t,type:r,dataType:"html",data:n,complete:function(t,e){i&&a.each(i,o||[t.responseText,e,t])}}).done(function(t){o=arguments,a.html(s?K("<div>").append(t.replace(jn,"")).find(s):t)}),this},K.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(t,e){K.fn[e]=function(t){return this.on(e,t)}}),K.each(["get","post"],function(t,n){K[n]=function(t,i,s,r){return K.isFunction(i)&&(r=r||s,s=i,i=e),K.ajax({type:n,url:t,data:i,success:s,dataType:r})}}),K.extend({getScript:function(t,n){return K.get(t,e,n,"script")},getJSON:function(t,e,n){return K.get(t,e,n,"json")},ajaxSetup:function(t,e){return e?E(t,K.ajaxSettings):(e=t,t=K.ajaxSettings),E(t,e),t},ajaxSettings:{url:En,isLocal:Nn.test(An[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Rn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":t.String,"text html":!0,"text json":K.parseJSON,"text xml":K.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:T(In),ajaxTransport:T(Fn),ajax:function(t,n){function i(t,n,i,o){var h,c,v,y,x,w=n;2!==b&&(b=2,l&&clearTimeout(l),a=e,r=o||"",k.readyState=t>0?4:0,i&&(y=S(f,k,i)),t>=200&&300>t||304===t?(f.ifModified&&(x=k.getResponseHeader("Last-Modified"),x&&(K.lastModified[s]=x),x=k.getResponseHeader("Etag"),x&&(K.etag[s]=x)),304===t?(w="notmodified",h=!0):(h=C(f,y),w=h.state,c=h.data,v=h.error,h=!v)):(v=w,(!w||t)&&(w="error",0>t&&(t=0))),k.status=t,k.statusText=(n||w)+"",h?_.resolveWith(d,[c,w,k]):_.rejectWith(d,[k,w,v]),k.statusCode(g),g=e,u&&p.trigger("ajax"+(h?"Success":"Error"),[k,f,h?c:v]),m.fireWith(d,[k,w]),u&&(p.trigger("ajaxComplete",[k,f]),--K.active||K.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=e),n=n||{};var s,r,o,a,l,h,u,c,f=K.ajaxSetup({},n),d=f.context||f,p=d!==f&&(d.nodeType||d instanceof K)?K(d):K.event,_=K.Deferred(),m=K.Callbacks("once memory"),g=f.statusCode||{},v={},y={},b=0,x="canceled",k={readyState:0,setRequestHeader:function(t,e){if(!b){var n=t.toLowerCase();t=y[n]=y[n]||t,v[t]=e}return this},getAllResponseHeaders:function(){return 2===b?r:null},getResponseHeader:function(t){var n;if(2===b){if(!o)for(o={};n=Cn.exec(r);)o[n[1].toLowerCase()]=n[2];n=o[t.toLowerCase()]}return n===e?null:n},overrideMimeType:function(t){return b||(f.mimeType=t),this},abort:function(t){return t=t||x,a&&a.abort(t),i(0,t),this}};if(_.promise(k),k.success=k.done,k.error=k.fail,k.complete=m.add,k.statusCode=function(t){if(t){var e;if(2>b)for(e in t)g[e]=[g[e],t[e]];else e=t[k.status],k.always(e)}return this},f.url=((t||f.url)+"").replace(Sn,"").replace(Bn,An[1]+"//"),f.dataTypes=K.trim(f.dataType||"*").toLowerCase().split(ee),null==f.crossDomain&&(h=Mn.exec(f.url.toLowerCase()),f.crossDomain=!(!h||h[1]===An[1]&&h[2]===An[2]&&(h[3]||("http:"===h[1]?80:443))==(An[3]||("http:"===An[1]?80:443)))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=K.param(f.data,f.traditional)),A(In,f,n,k),2===b)return k;if(u=f.global,f.type=f.type.toUpperCase(),f.hasContent=!Dn.test(f.type),u&&0===K.active++&&K.event.trigger("ajaxStart"),!f.hasContent&&(f.data&&(f.url+=(Ln.test(f.url)?"&":"?")+f.data,delete f.data),s=f.url,f.cache===!1)){var w=K.now(),T=f.url.replace($n,"$1_="+w);f.url=T+(T===f.url?(Ln.test(f.url)?"&":"?")+"_="+w:"")}(f.data&&f.hasContent&&f.contentType!==!1||n.contentType)&&k.setRequestHeader("Content-Type",f.contentType),f.ifModified&&(s=s||f.url,K.lastModified[s]&&k.setRequestHeader("If-Modified-Since",K.lastModified[s]),K.etag[s]&&k.setRequestHeader("If-None-Match",K.etag[s])),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Rn+"; q=0.01":""):f.accepts["*"]);for(c in f.headers)k.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(f.beforeSend.call(d,k,f)===!1||2===b))return k.abort();x="abort";for(c in{success:1,error:1,complete:1})k[c](f[c]);if(a=A(Fn,f,n,k)){k.readyState=1,u&&p.trigger("ajaxSend",[k,f]),f.async&&f.timeout>0&&(l=setTimeout(function(){k.abort("timeout")},f.timeout));try{b=1,a.send(v,i)}catch(E){if(!(2>b))throw E;i(-1,E)}}else i(-1,"No Transport");return k},active:0,lastModified:{},etag:{}});var Jn=[],zn=/\?/,Pn=/(=)\?(?=&|$)|\?\?/,Xn=K.now();K.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Jn.pop()||K.expando+"_"+Xn++;return this[t]=!0,t}}),K.ajaxPrefilter("json jsonp",function(n,i,s){var r,o,a,l=n.data,h=n.url,u=n.jsonp!==!1,c=u&&Pn.test(h),f=u&&!c&&"string"==typeof l&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Pn.test(l);return"jsonp"===n.dataTypes[0]||c||f?(r=n.jsonpCallback=K.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=t[r],c?n.url=h.replace(Pn,"$1"+r):f?n.data=l.replace(Pn,"$1"+r):u&&(n.url+=(zn.test(h)?"&":"?")+n.jsonp+"="+r),n.converters["script json"]=function(){return a||K.error(r+" was not called"),a[0]},n.dataTypes[0]="json",t[r]=function(){a=arguments},s.always(function(){t[r]=o,n[r]&&(n.jsonpCallback=i.jsonpCallback,Jn.push(r)),a&&K.isFunction(o)&&o(a[0]),a=o=e}),"script"):e}),K.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(t){return K.globalEval(t),t}}}),K.ajaxPrefilter("script",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),K.ajaxTransport("script",function(t){if(t.crossDomain){var n,i=J.head||J.getElementsByTagName("head")[0]||J.documentElement;return{send:function(s,r){n=J.createElement("script"),n.async="async",t.scriptCharset&&(n.charset=t.scriptCharset),n.src=t.url,n.onload=n.onreadystatechange=function(t,s){(s||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,i&&n.parentNode&&i.removeChild(n),n=e,s||r(200,"success"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var qn,Wn=t.ActiveXObject?function(){for(var t in qn)qn[t](0,1)}:!1,Un=0;K.ajaxSettings.xhr=t.ActiveXObject?function(){return!this.isLocal&&N()||D()}:N,function(t){K.extend(K.support,{ajax:!!t,cors:!!t&&"withCredentials"in t})}(K.ajaxSettings.xhr()),K.support.ajax&&K.ajaxTransport(function(n){if(!n.crossDomain||K.support.cors){var i;return{send:function(s,r){var o,a,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(a in n.xhrFields)l[a]=n.xhrFields[a];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest");try{for(a in s)l.setRequestHeader(a,s[a])}catch(h){}l.send(n.hasContent&&n.data||null),i=function(t,s){var a,h,u,c,f;try{if(i&&(s||4===l.readyState))if(i=e,o&&(l.onreadystatechange=K.noop,Wn&&delete qn[o]),s)4!==l.readyState&&l.abort();else{a=l.status,u=l.getAllResponseHeaders(),c={},f=l.responseXML,f&&f.documentElement&&(c.xml=f);try{c.text=l.responseText}catch(d){}try{h=l.statusText}catch(d){h=""}a||!n.isLocal||n.crossDomain?1223===a&&(a=204):a=c.text?200:404}}catch(p){s||r(-1,p)}c&&r(a,h,c,u)},n.async?4===l.readyState?setTimeout(i,0):(o=++Un,Wn&&(qn||(qn={},K(t).unload(Wn)),qn[o]=i),l.onreadystatechange=i):i()},abort:function(){i&&i(0,1)}}}});var Vn,Gn,Qn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([-+])=|)("+Z+")([a-z%]*)$","i"),Kn=/queueHooks$/,Zn=[M],ti={"*":[function(t,e){var n,i,s=this.createTween(t,e),r=Yn.exec(e),o=s.cur(),a=+o||0,l=1,h=20;if(r){if(n=+r[2],i=r[3]||(K.cssNumber[t]?"":"px"),"px"!==i&&a){a=K.css(s.elem,t,!0)||n||1;do l=l||".5",a/=l,K.style(s.elem,t,a+i);while(l!==(l=s.cur()/o)&&1!==l&&--h)}s.unit=i,s.start=a,s.end=r[1]?a+(r[1]+1)*n:n}return s}]};K.Animation=K.extend(j,{tweener:function(t,e){K.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,s=t.length;s>i;i++)n=t[i],ti[n]=ti[n]||[],ti[n].unshift(e)},prefilter:function(t,e){e?Zn.unshift(t):Zn.push(t)}}),K.Tween=O,O.prototype={constructor:O,init:function(t,e,n,i,s,r){this.elem=t,this.prop=n,this.easing=s||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(K.cssNumber[n]?"":"px")},cur:function(){var t=O.propHooks[this.prop];return t&&t.get?t.get(this):O.propHooks._default.get(this)},run:function(t){var e,n=O.propHooks[this.prop];return this.pos=e=this.options.duration?K.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):O.propHooks._default.set(this),this}},O.prototype.init.prototype=O.prototype,O.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=K.css(t.elem,t.prop,!1,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){K.fx.step[t.prop]?K.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[K.cssProps[t.prop]]||K.cssHooks[t.prop])?K.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},O.propHooks.scrollTop=O.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},K.each(["toggle","show","hide"],function(t,e){var n=K.fn[e];K.fn[e]=function(i,s,r){return null==i||"boolean"==typeof i||!t&&K.isFunction(i)&&K.isFunction(s)?n.apply(this,arguments):this.animate(I(e,!0),i,s,r)}}),K.fn.extend({fadeTo:function(t,e,n,i){return this.filter(g).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var s=K.isEmptyObject(t),r=K.speed(e,n,i),o=function(){var e=j(this,K.extend({},t),r);s&&e.stop(!0)};return s||r.queue===!1?this.each(o):this.queue(r.queue,o)},stop:function(t,n,i){var s=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=n,n=t,t=e),n&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,n=null!=t&&t+"queueHooks",r=K.timers,o=K._data(this);if(n)o[n]&&o[n].stop&&s(o[n]);else for(n in o)o[n]&&o[n].stop&&Kn.test(n)&&s(o[n]);for(n=r.length;n--;)r[n].elem!==this||null!=t&&r[n].queue!==t||(r[n].anim.stop(i),e=!1,r.splice(n,1));(e||!i)&&K.dequeue(this,t)})}}),K.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){K.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),K.speed=function(t,e,n){var i=t&&"object"==typeof t?K.extend({},t):{complete:n||!n&&e||K.isFunction(t)&&t,duration:t,easing:n&&e||e&&!K.isFunction(e)&&e};return i.duration=K.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in K.fx.speeds?K.fx.speeds[i.duration]:K.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){K.isFunction(i.old)&&i.old.call(this),i.queue&&K.dequeue(this,i.queue)},i},K.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},K.timers=[],K.fx=O.prototype.init,K.fx.tick=function(){var t,n=K.timers,i=0;for(Vn=K.now();n.length>i;i++)t=n[i],t()||n[i]!==t||n.splice(i--,1);n.length||K.fx.stop(),Vn=e},K.fx.timer=function(t){t()&&K.timers.push(t)&&!Gn&&(Gn=setInterval(K.fx.tick,K.fx.interval))},K.fx.interval=13,K.fx.stop=function(){clearInterval(Gn),Gn=null},K.fx.speeds={slow:600,fast:200,_default:400},K.fx.step={},K.expr&&K.expr.filters&&(K.expr.filters.animated=function(t){return K.grep(K.timers,function(e){return t===e.elem}).length});var ei=/^(?:body|html)$/i;K.fn.offset=function(t){if(arguments.length)return t===e?this:this.each(function(e){K.offset.setOffset(this,t,e)});var n,i,s,r,o,a,l,h={top:0,left:0},u=this[0],c=u&&u.ownerDocument;if(c)return(i=c.body)===u?K.offset.bodyOffset(u):(n=c.documentElement,K.contains(n,u)?(u.getBoundingClientRect!==e&&(h=u.getBoundingClientRect()),s=F(c),r=n.clientTop||i.clientTop||0,o=n.clientLeft||i.clientLeft||0,a=s.pageYOffset||n.scrollTop,l=s.pageXOffset||n.scrollLeft,{top:h.top+a-r,left:h.left+l-o}):h)},K.offset={bodyOffset:function(t){var e=t.offsetTop,n=t.offsetLeft;return K.support.doesNotIncludeMarginInBodyOffset&&(e+=parseFloat(K.css(t,"marginTop"))||0,n+=parseFloat(K.css(t,"marginLeft"))||0),{top:e,left:n}},setOffset:function(t,e,n){var i=K.css(t,"position");"static"===i&&(t.style.position="relative");var s,r,o=K(t),a=o.offset(),l=K.css(t,"top"),h=K.css(t,"left"),u=("absolute"===i||"fixed"===i)&&K.inArray("auto",[l,h])>-1,c={},f={};u?(f=o.position(),s=f.top,r=f.left):(s=parseFloat(l)||0,r=parseFloat(h)||0),K.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(c.top=e.top-a.top+s),null!=e.left&&(c.left=e.left-a.left+r),"using"in e?e.using.call(t,c):o.css(c)}},K.fn.extend({position:function(){if(this[0]){var t=this[0],e=this.offsetParent(),n=this.offset(),i=ei.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(K.css(t,"marginTop"))||0,n.left-=parseFloat(K.css(t,"marginLeft"))||0,i.top+=parseFloat(K.css(e[0],"borderTopWidth"))||0,i.left+=parseFloat(K.css(e[0],"borderLeftWidth"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||J.body;t&&!ei.test(t.nodeName)&&"static"===K.css(t,"position");)t=t.offsetParent;return t||J.body})}}),K.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var i=/Y/.test(n);K.fn[t]=function(s){return K.access(this,function(t,s,r){var o=F(t);return r===e?o?n in o?o[n]:o.document.documentElement[s]:t[s]:(o?o.scrollTo(i?K(o).scrollLeft():r,i?r:K(o).scrollTop()):t[s]=r,e)},t,s,arguments.length,null)}}),K.each({Height:"height",Width:"width"},function(t,n){K.each({padding:"inner"+t,content:n,"":"outer"+t},function(i,s){K.fn[s]=function(s,r){var o=arguments.length&&(i||"boolean"!=typeof s),a=i||(s===!0||r===!0?"margin":"border");return K.access(this,function(n,i,s){var r;return K.isWindow(n)?n.document.documentElement["client"+t]:9===n.nodeType?(r=n.documentElement,Math.max(n.body["scroll"+t],r["scroll"+t],n.body["offset"+t],r["offset"+t],r["client"+t])):s===e?K.css(n,i,s,a):K.style(n,i,s,a)},n,o?s:e,o,null)}})}),t.jQuery=t.$=K,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return K})}(window),!function(t){"use strict";t(function(){t.support.transition=function(){var t=function(){var t,e=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in n)if(void 0!==e.style[t])return n[t]}();return t&&{end:t}}()})}(window.jQuery),!function(t){"use strict";var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.prototype.close=function(e){function n(){i.trigger("closed").remove()}var i,s=t(this),r=s.attr("data-target");r||(r=s.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=t(r),e&&e.preventDefault(),i.length||(i=s.hasClass("alert")?s:s.parent()),i.trigger(e=t.Event("close")),e.isDefaultPrevented()||(i.removeClass("in"),t.support.transition&&i.hasClass("fade")?i.on(t.support.transition.end,n):n())
};var i=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var i=t(this),s=i.data("alert");s||i.data("alert",s=new n(this)),"string"==typeof e&&s[e].call(i)})},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.alert.data-api",e,n.prototype.close)}(window.jQuery),!function(t){"use strict";var e=function(e,n){this.$element=t(e),this.options=t.extend({},t.fn.button.defaults,n)};e.prototype.setState=function(t){var e="disabled",n=this.$element,i=n.data(),s=n.is("input")?"val":"html";t+="Text",i.resetText||n.data("resetText",n[s]()),n[s](i[t]||this.options[t]),setTimeout(function(){"loadingText"==t?n.addClass(e).attr(e,e):n.removeClass(e).removeAttr(e)},0)},e.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons-radio"]');t&&t.find(".active").removeClass("active"),this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=function(n){return this.each(function(){var i=t(this),s=i.data("button"),r="object"==typeof n&&n;s||i.data("button",s=new e(this,r)),"toggle"==n?s.toggle():n&&s.setState(n)})},t.fn.button.defaults={loadingText:"loading..."},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.button.data-api","[data-toggle^=button]",function(e){var n=t(e.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle")})}(window.jQuery),!function(t){"use strict";var e=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,"hover"==this.options.pause&&this.$element.on("mouseenter",t.proxy(this.pause,this)).on("mouseleave",t.proxy(this.cycle,this))};e.prototype={cycle:function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(e){var n=this.getActiveIndex(),i=this;if(!(e>this.$items.length-1||0>e))return this.sliding?this.$element.one("slid",function(){i.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",t(this.$items[e]))},pause:function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition.end&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){return this.sliding?void 0:this.slide("next")},prev:function(){return this.sliding?void 0:this.slide("prev")},slide:function(e,n){var i,s=this.$element.find(".item.active"),r=n||s[e](),o=this.interval,a="next"==e?"left":"right",l="next"==e?"first":"last",h=this;if(this.sliding=!0,o&&this.pause(),r=r.length?r:this.$element.find(".item")[l](),i=t.Event("slide",{relatedTarget:r[0],direction:a}),!r.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var e=t(h.$indicators.children()[h.getActiveIndex()]);e&&e.addClass("active")})),t.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(i),i.isDefaultPrevented())return;r.addClass(e),r[0].offsetWidth,s.addClass(a),r.addClass(a),this.$element.one(t.support.transition.end,function(){r.removeClass([e,a].join(" ")).addClass("active"),s.removeClass(["active",a].join(" ")),h.sliding=!1,setTimeout(function(){h.$element.trigger("slid")},0)})}else{if(this.$element.trigger(i),i.isDefaultPrevented())return;s.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return o&&this.cycle(),this}}};var n=t.fn.carousel;t.fn.carousel=function(n){return this.each(function(){var i=t(this),s=i.data("carousel"),r=t.extend({},t.fn.carousel.defaults,"object"==typeof n&&n),o="string"==typeof n?n:r.slide;s||i.data("carousel",s=new e(this,r)),"number"==typeof n?s.to(n):o?s[o]():r.interval&&s.pause().cycle()})},t.fn.carousel.defaults={interval:5e3,pause:"hover"},t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this},t(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(e){var n,i,s=t(this),r=t(s.attr("data-target")||(n=s.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"")),o=t.extend({},r.data(),s.data());r.carousel(o),(i=s.attr("data-slide-to"))&&r.data("carousel").pause().to(i).cycle(),e.preventDefault()})}(window.jQuery),!function(t){"use strict";var e=function(e,n){this.$element=t(e),this.options=t.extend({},t.fn.collapse.defaults,n),this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};e.prototype={constructor:e,dimension:function(){var t=this.$element.hasClass("width");return t?"width":"height"},show:function(){var e,n,i,s;if(!this.transitioning&&!this.$element.hasClass("in")){if(e=this.dimension(),n=t.camelCase(["scroll",e].join("-")),i=this.$parent&&this.$parent.find("> .accordion-group > .in"),i&&i.length){if(s=i.data("collapse"),s&&s.transitioning)return;i.collapse("hide"),s||i.data("collapse",null)}this.$element[e](0),this.transition("addClass",t.Event("show"),"shown"),t.support.transition&&this.$element[e](this.$element[0][n])}},hide:function(){var e;!this.transitioning&&this.$element.hasClass("in")&&(e=this.dimension(),this.reset(this.$element[e]()),this.transition("removeClass",t.Event("hide"),"hidden"),this.$element[e](0))},reset:function(t){var e=this.dimension();return this.$element.removeClass("collapse")[e](t||"auto")[0].offsetWidth,this.$element[null!==t?"addClass":"removeClass"]("collapse"),this},transition:function(e,n,i){var s=this,r=function(){"show"==n.type&&s.reset(),s.transitioning=0,s.$element.trigger(i)};this.$element.trigger(n),n.isDefaultPrevented()||(this.transitioning=1,this.$element[e]("in"),t.support.transition&&this.$element.hasClass("collapse")?this.$element.one(t.support.transition.end,r):r())},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var n=t.fn.collapse;t.fn.collapse=function(n){return this.each(function(){var i=t(this),s=i.data("collapse"),r=t.extend({},t.fn.collapse.defaults,i.data(),"object"==typeof n&&n);s||i.data("collapse",s=new e(this,r)),"string"==typeof n&&s[n]()})},t.fn.collapse.defaults={toggle:!0},t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=n,this},t(document).on("click.collapse.data-api","[data-toggle=collapse]",function(e){var n,i=t(this),s=i.attr("data-target")||e.preventDefault()||(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""),r=t(s).data("collapse")?"toggle":i.data();i[t(s).hasClass("in")?"addClass":"removeClass"]("collapsed"),t(s).collapse(r)})}(window.jQuery),!function(t){"use strict";function e(){t(i).each(function(){n(t(this)).removeClass("open")})}function n(e){var n,i=e.attr("data-target");return i||(i=e.attr("href"),i=i&&/#/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),n=i&&t(i),n&&n.length||(n=e.parent()),n}var i="[data-toggle=dropdown]",s=function(e){var n=t(e).on("click.dropdown.data-api",this.toggle);t("html").on("click.dropdown.data-api",function(){n.parent().removeClass("open")})};s.prototype={constructor:s,toggle:function(){var i,s,r=t(this);if(!r.is(".disabled, :disabled"))return i=n(r),s=i.hasClass("open"),e(),s||i.toggleClass("open"),r.focus(),!1},keydown:function(e){var s,r,o,a,l;if(/(38|40|27)/.test(e.keyCode)&&(s=t(this),e.preventDefault(),e.stopPropagation(),!s.is(".disabled, :disabled"))){if(o=n(s),a=o.hasClass("open"),!a||a&&27==e.keyCode)return 27==e.which&&o.find(i).focus(),s.click();r=t("[role=menu] li:not(.divider):visible a",o),r.length&&(l=r.index(r.filter(":focus")),38==e.keyCode&&l>0&&l--,40==e.keyCode&&r.length-1>l&&l++,~l||(l=0),r.eq(l).focus())}}};var r=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var n=t(this),i=n.data("dropdown");i||n.data("dropdown",i=new s(this)),"string"==typeof e&&i[e].call(n)})},t.fn.dropdown.Constructor=s,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=r,this},t(document).on("click.dropdown.data-api",e).on("click.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.dropdown-menu",function(t){t.stopPropagation()}).on("click.dropdown.data-api",i,s.prototype.toggle).on("keydown.dropdown.data-api",i+", [role=menu]",s.prototype.keydown)}(window.jQuery),!function(t){"use strict";var e=function(e,n){this.options=n,this.$element=t(e).delegate('[data-dismiss="modal"]',"click.dismiss.modal",t.proxy(this.hide,this)),this.options.remote&&this.$element.find(".modal-body").load(this.options.remote)};e.prototype={constructor:e,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var e=this,n=t.Event("show");this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.backdrop(function(){var n=t.support.transition&&e.$element.hasClass("fade");e.$element.parent().length||e.$element.appendTo(document.body),e.$element.show(),n&&e.$element[0].offsetWidth,e.$element.addClass("in").attr("aria-hidden",!1),e.enforceFocus(),n?e.$element.one(t.support.transition.end,function(){e.$element.focus().trigger("shown")}):e.$element.focus().trigger("shown")}))},hide:function(e){e&&e.preventDefault(),e=t.Event("hide"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),t(document).off("focusin.modal"),this.$element.removeClass("in").attr("aria-hidden",!0),t.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal())},enforceFocus:function(){var e=this;t(document).on("focusin.modal",function(t){e.$element[0]===t.target||e.$element.has(t.target).length||e.$element.focus()})},escape:function(){var t=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.modal",function(e){27==e.which&&t.hide()}):this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var e=this,n=setTimeout(function(){e.$element.off(t.support.transition.end),e.hideModal()},500);this.$element.one(t.support.transition.end,function(){clearTimeout(n),e.hideModal()})},hideModal:function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden")})},removeBackdrop:function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},backdrop:function(e){var n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=t.support.transition&&n;if(this.$backdrop=t('<div class="modal-backdrop '+n+'" />').appendTo(document.body),this.$backdrop.click("static"==this.options.backdrop?t.proxy(this.$element[0].focus,this.$element[0]):t.proxy(this.hide,this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;i?this.$backdrop.one(t.support.transition.end,e):e()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(t.support.transition.end,e):e()):e&&e()}};var n=t.fn.modal;t.fn.modal=function(n){return this.each(function(){var i=t(this),s=i.data("modal"),r=t.extend({},t.fn.modal.defaults,i.data(),"object"==typeof n&&n);s||i.data("modal",s=new e(this,r)),"string"==typeof n?s[n]():r.show&&s.show()})},t.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.modal.data-api",'[data-toggle="modal"]',function(e){var n=t(this),i=n.attr("href"),s=t(n.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),r=s.data("modal")?"toggle":t.extend({remote:!/#/.test(i)&&i},s.data(),n.data());e.preventDefault(),s.modal(r).one("hide",function(){n.focus()})})}(window.jQuery),!function(t){"use strict";var e=function(t,e){this.init("tooltip",t,e)};e.prototype={constructor:e,init:function(e,n,i){var s,r,o,a,l;for(this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.enabled=!0,o=this.options.trigger.split(" "),l=o.length;l--;)a=o[l],"click"==a?this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this)):"manual"!=a&&(s="hover"==a?"mouseenter":"focus",r="hover"==a?"mouseleave":"blur",this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.leave,this)));this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(e){return e=t.extend({},t.fn[this.type].defaults,this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},enter:function(e){var n,i=t.fn[this.type].defaults,s={};return this._options&&t.each(this._options,function(t,e){i[t]!=e&&(s[t]=e)},this),n=t(e.currentTarget)[this.type](s).data(this.type),n.options.delay&&n.options.delay.show?(clearTimeout(this.timeout),n.hoverState="in",this.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show),void 0):n.show()},leave:function(e){var n=t(e.currentTarget)[this.type](this._options).data(this.type);return this.timeout&&clearTimeout(this.timeout),n.options.delay&&n.options.delay.hide?(n.hoverState="out",this.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide),void 0):n.hide()},show:function(){var e,n,i,s,r,o,a=t.Event("show");if(this.hasContent()&&this.enabled){if(this.$element.trigger(a),a.isDefaultPrevented())return;switch(e=this.tip(),this.setContent(),this.options.animation&&e.addClass("fade"),r="function"==typeof this.options.placement?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,e.detach().css({top:0,left:0,display:"block"}),this.options.container?e.appendTo(this.options.container):e.insertAfter(this.$element),n=this.getPosition(),i=e[0].offsetWidth,s=e[0].offsetHeight,r){case"bottom":o={top:n.top+n.height,left:n.left+n.width/2-i/2};break;case"top":o={top:n.top-s,left:n.left+n.width/2-i/2};break;case"left":o={top:n.top+n.height/2-s/2,left:n.left-i};break;case"right":o={top:n.top+n.height/2-s/2,left:n.left+n.width}}this.applyPlacement(o,r),this.$element.trigger("shown")}},applyPlacement:function(t,e){var n,i,s,r,o=this.tip(),a=o[0].offsetWidth,l=o[0].offsetHeight;o.offset(t).addClass(e).addClass("in"),n=o[0].offsetWidth,i=o[0].offsetHeight,"top"==e&&i!=l&&(t.top=t.top+l-i,r=!0),"bottom"==e||"top"==e?(s=0,0>t.left&&(s=-2*t.left,t.left=0,o.offset(t),n=o[0].offsetWidth,i=o[0].offsetHeight),this.replaceArrow(s-a+n,n,"left")):this.replaceArrow(i-l,i,"top"),r&&o.offset(t)},replaceArrow:function(t,e,n){this.arrow().css(n,t?50*(1-t/e)+"%":"")},setContent:function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},hide:function(){function e(){var e=setTimeout(function(){n.off(t.support.transition.end).detach()},500);n.one(t.support.transition.end,function(){clearTimeout(e),n.detach()})}var n=this.tip(),i=t.Event("hide");return this.$element.trigger(i),i.isDefaultPrevented()?void 0:(n.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?e():n.detach(),this.$element.trigger("hidden"),this)},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(){var e=this.$element[0];return t.extend({},"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():{width:e.offsetWidth,height:e.offsetHeight},this.$element.offset())},getTitle:function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},tip:function(){return this.$tip=this.$tip||t(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(e){var n=e?t(e.currentTarget)[this.type](this._options).data(this.type):this;n.tip().hasClass("in")?n.hide():n.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each(function(){var i=t(this),s=i.data("tooltip"),r="object"==typeof n&&n;s||i.data("tooltip",s=new e(this,r)),"string"==typeof n&&s[n]()})},t.fn.tooltip.Constructor=e,t.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(window.jQuery),!function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype,{constructor:e,setContent:function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"html":"text"](n),t.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var t,e=this.$element,n=this.options;return t=("function"==typeof n.content?n.content.call(e[0]):n.content)||e.attr("data-content")},tip:function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var i=t(this),s=i.data("popover"),r="object"==typeof n&&n;s||i.data("popover",s=new e(this,r)),"string"==typeof n&&s[n]()})},t.fn.popover.Constructor=e,t.fn.popover.defaults=t.extend({},t.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(window.jQuery),!function(t){"use strict";function e(e,n){var i,s=t.proxy(this.process,this),r=t(e).is("body")?t(window):t(e);this.options=t.extend({},t.fn.scrollspy.defaults,n),this.$scrollElement=r.on("scroll.scroll-spy.data-api",s),this.selector=(this.options.target||(i=t(e).attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=t("body"),this.refresh(),this.process()}e.prototype={constructor:e,refresh:function(){var e,n=this;this.offsets=t([]),this.targets=t([]),e=this.$body.find(this.selector).map(function(){var e=t(this),i=e.data("target")||e.attr("href"),s=/^#\w/.test(i)&&t(i);return s&&s.length&&[[s.position().top+(!t.isWindow(n.$scrollElement.get(0))&&n.$scrollElement.scrollTop()),i]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},process:function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,i=n-this.$scrollElement.height(),s=this.offsets,r=this.targets,o=this.activeTarget;if(e>=i)return o!=(t=r.last()[0])&&this.activate(t);for(t=s.length;t--;)o!=r[t]&&e>=s[t]&&(!s[t+1]||s[t+1]>=e)&&this.activate(r[t])},activate:function(e){var n,i;this.activeTarget=e,t(this.selector).parent(".active").removeClass("active"),i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parent("li").addClass("active"),n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate")}};var n=t.fn.scrollspy;t.fn.scrollspy=function(n){return this.each(function(){var i=t(this),s=i.data("scrollspy"),r="object"==typeof n&&n;s||i.data("scrollspy",s=new e(this,r)),"string"==typeof n&&s[n]()})},t.fn.scrollspy.Constructor=e,t.fn.scrollspy.defaults={offset:10},t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);e.scrollspy(e.data())})})}(window.jQuery),!function(t){"use strict";var e=function(e){this.element=t(e)};e.prototype={constructor:e,show:function(){var e,n,i,s=this.element,r=s.closest("ul:not(.dropdown-menu)"),o=s.attr("data-target");o||(o=s.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),s.parent("li").hasClass("active")||(e=r.find(".active:last a")[0],i=t.Event("show",{relatedTarget:e}),s.trigger(i),i.isDefaultPrevented()||(n=t(o),this.activate(s.parent("li"),r),this.activate(n,n.parent(),function(){s.trigger({type:"shown",relatedTarget:e})})))},activate:function(e,n,i){function s(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),o?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),i&&i()}var r=n.find("> .active"),o=i&&t.support.transition&&r.hasClass("fade");o?r.one(t.support.transition.end,s):s(),r.removeClass("in")}};var n=t.fn.tab;t.fn.tab=function(n){return this.each(function(){var i=t(this),s=i.data("tab");s||i.data("tab",s=new e(this)),"string"==typeof n&&s[n]()})},t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=n,this},t(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault(),t(this).tab("show")})}(window.jQuery),!function(t){"use strict";var e=function(e,n){this.$element=t(e),this.options=t.extend({},t.fn.typeahead.defaults,n),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.source=this.options.source,this.$menu=t(this.options.menu),this.shown=!1,this.listen()};e.prototype={constructor:e,select:function(){var t=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(t)).change(),this.hide()},updater:function(t){return t},show:function(){var e=t.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return this.$menu.insertAfter(this.$element).css({top:e.top+e.height,left:e.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(){var e;return this.query=this.$element.val(),!this.query||this.query.length<this.options.minLength?this.shown?this.hide():this:(e=t.isFunction(this.source)?this.source(this.query,t.proxy(this.process,this)):this.source,e?this.process(e):this)},process:function(e){var n=this;return e=t.grep(e,function(t){return n.matcher(t)}),e=this.sorter(e),e.length?this.render(e.slice(0,this.options.items)).show():this.shown?this.hide():this},matcher:function(t){return~t.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(t){for(var e,n=[],i=[],s=[];e=t.shift();)e.toLowerCase().indexOf(this.query.toLowerCase())?~e.indexOf(this.query)?i.push(e):s.push(e):n.push(e);return n.concat(i,s)},highlighter:function(t){var e=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return t.replace(RegExp("("+e+")","ig"),function(t,e){return"<strong>"+e+"</strong>"})},render:function(e){var n=this;return e=t(e).map(function(e,i){return e=t(n.options.item).attr("data-value",i),e.find("a").html(n.highlighter(i)),e[0]}),e.first().addClass("active"),this.$menu.html(e),this},next:function(){var e=this.$menu.find(".active").removeClass("active"),n=e.next();n.length||(n=t(this.$menu.find("li")[0])),n.addClass("active")},prev:function(){var t=this.$menu.find(".active").removeClass("active"),e=t.prev();e.length||(e=this.$menu.find("li").last()),e.addClass("active")},listen:function(){this.$element.on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("keypress",t.proxy(this.keypress,this)).on("keyup",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",t.proxy(this.keydown,this)),this.$menu.on("click",t.proxy(this.click,this)).on("mouseenter","li",t.proxy(this.mouseenter,this)).on("mouseleave","li",t.proxy(this.mouseleave,this))},eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},move:function(t){if(this.shown){switch(t.keyCode){case 9:case 13:case 27:t.preventDefault();break;case 38:t.preventDefault(),this.prev();break;case 40:t.preventDefault(),this.next()}t.stopPropagation()}},keydown:function(e){this.suppressKeyPressRepeat=~t.inArray(e.keyCode,[40,38,9,13,27]),this.move(e)},keypress:function(t){this.suppressKeyPressRepeat||this.move(t)},keyup:function(t){switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}t.stopPropagation(),t.preventDefault()},focus:function(){this.focused=!0},blur:function(){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(t){t.stopPropagation(),t.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(e){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),t(e.currentTarget).addClass("active")},mouseleave:function(){this.mousedover=!1,!this.focused&&this.shown&&this.hide()}};var n=t.fn.typeahead;t.fn.typeahead=function(n){return this.each(function(){var i=t(this),s=i.data("typeahead"),r="object"==typeof n&&n;s||i.data("typeahead",s=new e(this,r)),"string"==typeof n&&s[n]()})},t.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>',minLength:1},t.fn.typeahead.Constructor=e,t.fn.typeahead.noConflict=function(){return t.fn.typeahead=n,this},t(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(){var e=t(this);e.data("typeahead")||e.typeahead(e.data())})}(window.jQuery),!function(t){"use strict";var e=function(e,n){this.options=t.extend({},t.fn.affix.defaults,n),this.$window=t(window).on("scroll.affix.data-api",t.proxy(this.checkPosition,this)).on("click.affix.data-api",t.proxy(function(){setTimeout(t.proxy(this.checkPosition,this),1)},this)),this.$element=t(e),this.checkPosition()};e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e,n=t(document).height(),i=this.$window.scrollTop(),s=this.$element.offset(),r=this.options.offset,o=r.bottom,a=r.top,l="affix affix-top affix-bottom";"object"!=typeof r&&(o=a=r),"function"==typeof a&&(a=r.top()),"function"==typeof o&&(o=r.bottom()),e=null!=this.unpin&&i+this.unpin<=s.top?!1:null!=o&&s.top+this.$element.height()>=n-o?"bottom":null!=a&&a>=i?"top":!1,this.affixed!==e&&(this.affixed=e,this.unpin="bottom"==e?s.top-i:null,this.$element.removeClass(l).addClass("affix"+(e?"-"+e:"")))}};var n=t.fn.affix;t.fn.affix=function(n){return this.each(function(){var i=t(this),s=i.data("affix"),r="object"==typeof n&&n;s||i.data("affix",s=new e(this,r)),"string"==typeof n&&s[n]()})},t.fn.affix.Constructor=e,t.fn.affix.defaults={offset:0},t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),n=e.data();n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),e.affix(n)})})}(window.jQuery),function(){var t=this,e=t._,n={},i=Array.prototype,s=Object.prototype,r=Function.prototype,o=i.push,a=i.slice,l=i.concat,h=s.toString,u=s.hasOwnProperty,c=i.forEach,f=i.map,d=i.reduce,p=i.reduceRight,_=i.filter,m=i.every,g=i.some,v=i.indexOf,y=i.lastIndexOf,b=Array.isArray,x=Object.keys,k=r.bind,w=function(t){return t instanceof w?t:this instanceof w?(this._wrapped=t,void 0):new w(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=w),exports._=w):t._=w,w.VERSION="1.4.4";var T=w.each=w.forEach=function(t,e,i){if(null!=t)if(c&&t.forEach===c)t.forEach(e,i);else if(t.length===+t.length){for(var s=0,r=t.length;r>s;s++)if(e.call(i,t[s],s,t)===n)return}else for(var o in t)if(w.has(t,o)&&e.call(i,t[o],o,t)===n)return};w.map=w.collect=function(t,e,n){var i=[];return null==t?i:f&&t.map===f?t.map(e,n):(T(t,function(t,s,r){i[i.length]=e.call(n,t,s,r)}),i)};var A="Reduce of empty array with no initial value";w.reduce=w.foldl=w.inject=function(t,e,n,i){var s=arguments.length>2;if(null==t&&(t=[]),d&&t.reduce===d)return i&&(e=w.bind(e,i)),s?t.reduce(e,n):t.reduce(e);if(T(t,function(t,r,o){s?n=e.call(i,n,t,r,o):(n=t,s=!0)}),!s)throw new TypeError(A);return n},w.reduceRight=w.foldr=function(t,e,n,i){var s=arguments.length>2;if(null==t&&(t=[]),p&&t.reduceRight===p)return i&&(e=w.bind(e,i)),s?t.reduceRight(e,n):t.reduceRight(e);var r=t.length;if(r!==+r){var o=w.keys(t);r=o.length}if(T(t,function(a,l,h){l=o?o[--r]:--r,s?n=e.call(i,n,t[l],l,h):(n=t[l],s=!0)}),!s)throw new TypeError(A);return n},w.find=w.detect=function(t,e,n){var i;return E(t,function(t,s,r){return e.call(n,t,s,r)?(i=t,!0):void 0}),i},w.filter=w.select=function(t,e,n){var i=[];return null==t?i:_&&t.filter===_?t.filter(e,n):(T(t,function(t,s,r){e.call(n,t,s,r)&&(i[i.length]=t)}),i)},w.reject=function(t,e,n){return w.filter(t,function(t,i,s){return!e.call(n,t,i,s)},n)},w.every=w.all=function(t,e,i){e||(e=w.identity);var s=!0;return null==t?s:m&&t.every===m?t.every(e,i):(T(t,function(t,r,o){return(s=s&&e.call(i,t,r,o))?void 0:n}),!!s)};var E=w.some=w.any=function(t,e,i){e||(e=w.identity);var s=!1;return null==t?s:g&&t.some===g?t.some(e,i):(T(t,function(t,r,o){return s||(s=e.call(i,t,r,o))?n:void 0}),!!s)};w.contains=w.include=function(t,e){return null==t?!1:v&&t.indexOf===v?-1!=t.indexOf(e):E(t,function(t){return t===e})},w.invoke=function(t,e){var n=a.call(arguments,2),i=w.isFunction(e);return w.map(t,function(t){return(i?e:t[e]).apply(t,n)})},w.pluck=function(t,e){return w.map(t,function(t){return t[e]})},w.where=function(t,e,n){return w.isEmpty(e)?n?null:[]:w[n?"find":"filter"](t,function(t){for(var n in e)if(e[n]!==t[n])return!1;return!0})},w.findWhere=function(t,e){return w.where(t,e,!0)},w.max=function(t,e,n){if(!e&&w.isArray(t)&&t[0]===+t[0]&&65535>t.length)return Math.max.apply(Math,t);if(!e&&w.isEmpty(t))return-1/0;var i={computed:-1/0,value:-1/0};return T(t,function(t,s,r){var o=e?e.call(n,t,s,r):t;o>=i.computed&&(i={value:t,computed:o})}),i.value},w.min=function(t,e,n){if(!e&&w.isArray(t)&&t[0]===+t[0]&&65535>t.length)return Math.min.apply(Math,t);if(!e&&w.isEmpty(t))return 1/0;var i={computed:1/0,value:1/0};return T(t,function(t,s,r){var o=e?e.call(n,t,s,r):t;i.computed>o&&(i={value:t,computed:o})}),i.value},w.shuffle=function(t){var e,n=0,i=[];return T(t,function(t){e=w.random(n++),i[n-1]=i[e],i[e]=t}),i};var S=function(t){return w.isFunction(t)?t:function(e){return e[t]}};w.sortBy=function(t,e,n){var i=S(e);return w.pluck(w.map(t,function(t,e,s){return{value:t,index:e,criteria:i.call(n,t,e,s)}}).sort(function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(i>n||void 0===i)return-1}return t.index<e.index?-1:1}),"value")};var C=function(t,e,n,i){var s={},r=S(e||w.identity);return T(t,function(e,o){var a=r.call(n,e,o,t);i(s,a,e)}),s};w.groupBy=function(t,e,n){return C(t,e,n,function(t,e,n){(w.has(t,e)?t[e]:t[e]=[]).push(n)})},w.countBy=function(t,e,n){return C(t,e,n,function(t,e){w.has(t,e)||(t[e]=0),t[e]++})},w.sortedIndex=function(t,e,n,i){n=null==n?w.identity:S(n);for(var s=n.call(i,e),r=0,o=t.length;o>r;){var a=r+o>>>1;s>n.call(i,t[a])?r=a+1:o=a}return r},w.toArray=function(t){return t?w.isArray(t)?a.call(t):t.length===+t.length?w.map(t,w.identity):w.values(t):[]},w.size=function(t){return null==t?0:t.length===+t.length?t.length:w.keys(t).length},w.first=w.head=w.take=function(t,e,n){return null==t?void 0:null==e||n?t[0]:a.call(t,0,e)},w.initial=function(t,e,n){return a.call(t,0,t.length-(null==e||n?1:e))},w.last=function(t,e,n){return null==t?void 0:null==e||n?t[t.length-1]:a.call(t,Math.max(t.length-e,0))
},w.rest=w.tail=w.drop=function(t,e,n){return a.call(t,null==e||n?1:e)},w.compact=function(t){return w.filter(t,w.identity)};var N=function(t,e,n){return T(t,function(t){w.isArray(t)?e?o.apply(n,t):N(t,e,n):n.push(t)}),n};w.flatten=function(t,e){return N(t,e,[])},w.without=function(t){return w.difference(t,a.call(arguments,1))},w.uniq=w.unique=function(t,e,n,i){w.isFunction(e)&&(i=n,n=e,e=!1);var s=n?w.map(t,n,i):t,r=[],o=[];return T(s,function(n,i){(e?i&&o[o.length-1]===n:w.contains(o,n))||(o.push(n),r.push(t[i]))}),r},w.union=function(){return w.uniq(l.apply(i,arguments))},w.intersection=function(t){var e=a.call(arguments,1);return w.filter(w.uniq(t),function(t){return w.every(e,function(e){return w.indexOf(e,t)>=0})})},w.difference=function(t){var e=l.apply(i,a.call(arguments,1));return w.filter(t,function(t){return!w.contains(e,t)})},w.zip=function(){for(var t=a.call(arguments),e=w.max(w.pluck(t,"length")),n=Array(e),i=0;e>i;i++)n[i]=w.pluck(t,""+i);return n},w.object=function(t,e){if(null==t)return{};for(var n={},i=0,s=t.length;s>i;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n},w.indexOf=function(t,e,n){if(null==t)return-1;var i=0,s=t.length;if(n){if("number"!=typeof n)return i=w.sortedIndex(t,e),t[i]===e?i:-1;i=0>n?Math.max(0,s+n):n}if(v&&t.indexOf===v)return t.indexOf(e,n);for(;s>i;i++)if(t[i]===e)return i;return-1},w.lastIndexOf=function(t,e,n){if(null==t)return-1;var i=null!=n;if(y&&t.lastIndexOf===y)return i?t.lastIndexOf(e,n):t.lastIndexOf(e);for(var s=i?n:t.length;s--;)if(t[s]===e)return s;return-1},w.range=function(t,e,n){1>=arguments.length&&(e=t||0,t=0),n=arguments[2]||1;for(var i=Math.max(Math.ceil((e-t)/n),0),s=0,r=Array(i);i>s;)r[s++]=t,t+=n;return r},w.bind=function(t,e){if(t.bind===k&&k)return k.apply(t,a.call(arguments,1));var n=a.call(arguments,2);return function(){return t.apply(e,n.concat(a.call(arguments)))}},w.partial=function(t){var e=a.call(arguments,1);return function(){return t.apply(this,e.concat(a.call(arguments)))}},w.bindAll=function(t){var e=a.call(arguments,1);return 0===e.length&&(e=w.functions(t)),T(e,function(e){t[e]=w.bind(t[e],t)}),t},w.memoize=function(t,e){var n={};return e||(e=w.identity),function(){var i=e.apply(this,arguments);return w.has(n,i)?n[i]:n[i]=t.apply(this,arguments)}},w.delay=function(t,e){var n=a.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},w.defer=function(t){return w.delay.apply(w,[t,1].concat(a.call(arguments,1)))},w.throttle=function(t,e){var n,i,s,r,o=0,a=function(){o=new Date,s=null,r=t.apply(n,i)};return function(){var l=new Date,h=e-(l-o);return n=this,i=arguments,0>=h?(clearTimeout(s),s=null,o=l,r=t.apply(n,i)):s||(s=setTimeout(a,h)),r}},w.debounce=function(t,e,n){var i,s;return function(){var r=this,o=arguments,a=function(){i=null,n||(s=t.apply(r,o))},l=n&&!i;return clearTimeout(i),i=setTimeout(a,e),l&&(s=t.apply(r,o)),s}},w.once=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments),t=null,e)}},w.wrap=function(t,e){return function(){var n=[t];return o.apply(n,arguments),e.apply(this,n)}},w.compose=function(){var t=arguments;return function(){for(var e=arguments,n=t.length-1;n>=0;n--)e=[t[n].apply(this,e)];return e[0]}},w.after=function(t,e){return 0>=t?e():function(){return 1>--t?e.apply(this,arguments):void 0}},w.keys=x||function(t){if(t!==Object(t))throw new TypeError("Invalid object");var e=[];for(var n in t)w.has(t,n)&&(e[e.length]=n);return e},w.values=function(t){var e=[];for(var n in t)w.has(t,n)&&e.push(t[n]);return e},w.pairs=function(t){var e=[];for(var n in t)w.has(t,n)&&e.push([n,t[n]]);return e},w.invert=function(t){var e={};for(var n in t)w.has(t,n)&&(e[t[n]]=n);return e},w.functions=w.methods=function(t){var e=[];for(var n in t)w.isFunction(t[n])&&e.push(n);return e.sort()},w.extend=function(t){return T(a.call(arguments,1),function(e){if(e)for(var n in e)t[n]=e[n]}),t},w.pick=function(t){var e={},n=l.apply(i,a.call(arguments,1));return T(n,function(n){n in t&&(e[n]=t[n])}),e},w.omit=function(t){var e={},n=l.apply(i,a.call(arguments,1));for(var s in t)w.contains(n,s)||(e[s]=t[s]);return e},w.defaults=function(t){return T(a.call(arguments,1),function(e){if(e)for(var n in e)null==t[n]&&(t[n]=e[n])}),t},w.clone=function(t){return w.isObject(t)?w.isArray(t)?t.slice():w.extend({},t):t},w.tap=function(t,e){return e(t),t};var D=function(t,e,n,i){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof w&&(t=t._wrapped),e instanceof w&&(e=e._wrapped);var s=h.call(t);if(s!=h.call(e))return!1;switch(s){case"[object String]":return t==e+"";case"[object Number]":return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object RegExp]":return t.source==e.source&&t.global==e.global&&t.multiline==e.multiline&&t.ignoreCase==e.ignoreCase}if("object"!=typeof t||"object"!=typeof e)return!1;for(var r=n.length;r--;)if(n[r]==t)return i[r]==e;n.push(t),i.push(e);var o=0,a=!0;if("[object Array]"==s){if(o=t.length,a=o==e.length)for(;o--&&(a=D(t[o],e[o],n,i)););}else{var l=t.constructor,u=e.constructor;if(l!==u&&!(w.isFunction(l)&&l instanceof l&&w.isFunction(u)&&u instanceof u))return!1;for(var c in t)if(w.has(t,c)&&(o++,!(a=w.has(e,c)&&D(t[c],e[c],n,i))))break;if(a){for(c in e)if(w.has(e,c)&&!o--)break;a=!o}}return n.pop(),i.pop(),a};w.isEqual=function(t,e){return D(t,e,[],[])},w.isEmpty=function(t){if(null==t)return!0;if(w.isArray(t)||w.isString(t))return 0===t.length;for(var e in t)if(w.has(t,e))return!1;return!0},w.isElement=function(t){return!(!t||1!==t.nodeType)},w.isArray=b||function(t){return"[object Array]"==h.call(t)},w.isObject=function(t){return t===Object(t)},T(["Arguments","Function","String","Number","Date","RegExp"],function(t){w["is"+t]=function(e){return h.call(e)=="[object "+t+"]"}}),w.isArguments(arguments)||(w.isArguments=function(t){return!(!t||!w.has(t,"callee"))}),w.isFunction=function(t){return"function"==typeof t},w.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},w.isNaN=function(t){return w.isNumber(t)&&t!=+t},w.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"==h.call(t)},w.isNull=function(t){return null===t},w.isUndefined=function(t){return void 0===t},w.has=function(t,e){return u.call(t,e)},w.noConflict=function(){return t._=e,this},w.identity=function(t){return t},w.times=function(t,e,n){for(var i=Array(t),s=0;t>s;s++)i[s]=e.call(n,s);return i},w.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))};var B={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"}};B.unescape=w.invert(B.escape);var L={escape:RegExp("["+w.keys(B.escape).join("")+"]","g"),unescape:RegExp("("+w.keys(B.unescape).join("|")+")","g")};w.each(["escape","unescape"],function(t){w[t]=function(e){return null==e?"":(""+e).replace(L[t],function(e){return B[t][e]})}}),w.result=function(t,e){if(null==t)return null;var n=t[e];return w.isFunction(n)?n.call(t):n},w.mixin=function(t){T(w.functions(t),function(e){var n=w[e]=t[e];w.prototype[e]=function(){var t=[this._wrapped];return o.apply(t,arguments),I.call(this,n.apply(w,t))}})};var j=0;w.uniqueId=function(t){var e=++j+"";return t?t+e:e},w.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var $=/(.)^/,M={"'":"'","\\":"\\","\r":"r","\n":"n","    ":"t","\u2028":"u2028","\u2029":"u2029"},O=/\\|'|\r|\n|\t|\u2028|\u2029/g;w.template=function(t,e,n){var i;n=w.defaults({},n,w.templateSettings);var s=RegExp([(n.escape||$).source,(n.interpolate||$).source,(n.evaluate||$).source].join("|")+"|$","g"),r=0,o="__p+='";t.replace(s,function(e,n,i,s,a){return o+=t.slice(r,a).replace(O,function(t){return"\\"+M[t]}),n&&(o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'"),i&&(o+="'+\n((__t=("+i+"))==null?'':__t)+\n'"),s&&(o+="';\n"+s+"\n__p+='"),r=a+e.length,e}),o+="';\n",n.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{i=Function(n.variable||"obj","_",o)}catch(a){throw a.source=o,a}if(e)return i(e,w);var l=function(t){return i.call(this,t,w)};return l.source="function("+(n.variable||"obj")+"){\n"+o+"}",l},w.chain=function(t){return w(t).chain()};var I=function(t){return this._chain?w(t).chain():t};w.mixin(w),T(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=i[t];w.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!=t&&"splice"!=t||0!==n.length||delete n[0],I.call(this,n)}}),T(["concat","join","slice"],function(t){var e=i[t];w.prototype[t]=function(){return I.call(this,e.apply(this._wrapped,arguments))}}),w.extend(w.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}.call(this),this.JS=this.JS||{},JS.extend=function(t,e){e=e||{};for(var n in e)t[n]!==e[n]&&(t[n]=e[n]);return t},JS.extend(JS,{makeFunction:function(){return function(){return this.initialize?this.initialize.apply(this,arguments)||this:this}},makeBridge:function(t){var e=function(){};return e.prototype=t.prototype,new e},bind:function(){var t=JS.array(arguments),e=t.shift(),n=t.shift()||null;return function(){return e.apply(n,t.concat(JS.array(arguments)))}},callsSuper:function(t){return void 0===t.SUPER?t.SUPER=/\bcallSuper\b/.test(""+t):t.SUPER},mask:function(t){var e=(""+t).replace(/callSuper/g,"super");return t.toString=function(){return e},t},array:function(t){if(!t)return[];if(t.toArray)return t.toArray();for(var e=t.length,n=[];e--;)n[e]=t[e];return n},indexOf:function(t,e){for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n;return-1},isFn:function(t){return t instanceof Function},isType:function(t,e){return t&&e?e instanceof Function&&t instanceof e||"string"==typeof e&&typeof t===e||t.isA&&t.isA(e):!1},ignore:function(t,e){return/^(include|extend)$/.test(t)&&"object"==typeof e}}),JS.Module=JS.makeFunction(),JS.extend(JS.Module.prototype,{END_WITHOUT_DOT:/([^\.])$/,initialize:function(t,e,n){this.__mod__=this,this.__inc__=[],this.__fns__={},this.__dep__=[],this.__mct__={},"string"==typeof t?this.__nom__=this.displayName=t:(this.__nom__=this.displayName="",n=e,e=t),n=n||{},this.__res__=n._1||null,e&&this.include(e,!1),JS.Module.__chainq__&&JS.Module.__chainq__.push(this)},setName:function(t){this.__nom__=this.displayName=t||"";for(var e in this.__mod__.__fns__)this.__name__(e);t&&this.__meta__&&this.__meta__.setName(t+".")},__name__:function(t){if(this.__nom__){var e=this.__mod__.__fns__[t]||{};return t=this.__nom__.replace(this.END_WITHOUT_DOT,"$1#")+t,JS.isFn(e.setName)?e.setName(t):(JS.isFn(e)&&(e.displayName=t),void 0)}},define:function(t,e,n,i){var s=(i||{})._0||this;this.__fns__[t]=e,this.__name__(t),JS.Module._0&&s&&JS.isFn(e)&&JS.Module._0(t,s),n!==!1&&this.resolve()},instanceMethod:function(t){var e=this.lookup(t).pop();return JS.isFn(e)?e:null},instanceMethods:function(t,e){var n,i=this.__mod__,e=e||[],s=i.ancestors(),r=s.length;for(n in i.__fns__)i.__fns__.hasOwnProperty(n)&&JS.isFn(i.__fns__[n])&&-1===JS.indexOf(e,n)&&e.push(n);if(t===!1)return e;for(;r--;)s[r].instanceMethods(!1,e);return e},include:function(t,e,n){if(e=e!==!1,!t)return e?this.resolve():this.uncache();n=n||{},t.__mod__&&(t=t.__mod__);var i,s,r,o,a=t.include,l=t.extend,h=n._4||this;if(t.__inc__&&t.__fns__)this.__inc__.push(t),t.__dep__.push(this),n._2?t.extended&&t.extended(n._2):t.included&&t.included(h);else{if(!n._5){if("object"==typeof a||JS.isType(a,JS.Module))for(i=[].concat(a),r=0,o=i.length;o>r;r++)h.include(i[r],e,n);if("object"==typeof l||JS.isType(l,JS.Module)){for(i=[].concat(l),r=0,o=i.length;o>r;r++)h.extend(i[r],!1);h.extend()}return n._5=!0,h.include(t,e,n)}for(s in t)JS.ignore(s,t[s])||this.define(s,t[s],!1,{_0:h||n._2||this})}e?this.resolve():this.uncache()},includes:function(t){var e=this.__mod__,n=e.__inc__.length;if(Object===t||e===t||e.__res__===t.prototype)return!0;for(;n--;)if(e.__inc__[n].includes(t))return!0;return!1},match:function(t){return t.isA&&t.isA(this)},ancestors:function(t){var e,n,i=this.__mod__,s=void 0===t,r=(i.__res__||{}).klass,o=r&&i.__res__===r.prototype?r:i;if(s&&i.__anc__)return i.__anc__.slice();for(t=t||[],e=0,n=i.__inc__.length;n>e;e++)i.__inc__[e].ancestors(t);return-1===JS.indexOf(t,o)&&t.push(o),s&&(i.__anc__=t.slice()),t},lookup:function(t){var e=this.__mod__,n=e.__mct__;if(n[t])return n[t].slice();var i,s,r,o=e.ancestors(),a=[];for(i=0,s=o.length;s>i;i++)r=o[i].__mod__.__fns__[t],r&&a.push(r);return n[t]=a.slice(),a},make:function(t,e){if(!JS.isFn(e)||!JS.callsSuper(e))return e;var n=this;return function(){return n.chain(this,t,arguments)}},chain:JS.mask(function(t,e,n){var i,s=this.lookup(e),r=s.length-1,o=t.callSuper,a=JS.array(n);return t.callSuper=function(){for(var e=arguments.length;e--;)a[e]=arguments[e];r-=1;var n=s[r].apply(t,a);return r+=1,n},i=s.pop().apply(t,a),o?t.callSuper=o:delete t.callSuper,i}),resolve:function(t){var e,n,i,s,r=this.__mod__,t=t||r,o=t.__res__;if(t===r)for(r.uncache(!1),e=r.__dep__.length;e--;)r.__dep__[e].resolve();if(o){for(e=0,n=r.__inc__.length;n>e;e++)r.__inc__[e].resolve(t);for(i in r.__fns__)s=t.make(i,r.__fns__[i]),o[i]!==s&&(o[i]=s)}},uncache:function(t){var e=this.__mod__,n=e.__dep__.length;if(e.__anc__=null,e.__mct__={},t!==!1)for(;n--;)e.__dep__[n].uncache()}}),JS.Class=JS.makeFunction(),JS.extend(JS.Class.prototype=JS.makeBridge(JS.Module),{initialize:function(t,e,n){"string"==typeof t?this.__nom__=this.displayName=t:(this.__nom__=this.displayName="",n=e,e=t);var i=JS.extend(JS.makeFunction(),this);i.klass=i.constructor=this.klass,JS.isFn(e)||(n=e,e=Object),i.inherit(e),i.include(n,!1),i.resolve();do e.inherited&&e.inherited(i);while(e=e.superclass);return i},inherit:function(t){this.superclass=t,this.__eigen__&&t.__eigen__&&this.extend(t.__eigen__(),!0),this.subclasses=[],(t.subclasses||[]).push(this);var e=this.prototype=JS.makeBridge(t);e.klass=e.constructor=this,this.__mod__=new JS.Module(this.__nom__,{},{_1:this.prototype}),this.include(JS.Kernel,!1),t!==Object&&this.include(t.__mod__||new JS.Module(t.prototype,{_1:t.prototype}),!1)},include:function(t,e,n){if(t){var i=this.__mod__,n=n||{};return n._4=this,i.include(t,e,n)}},define:function(t,e,n,i){var s=this.__mod__;i=i||{},i._0=this,s.define(t,e,n,i)}}),JS.Module=new JS.Class("Module",JS.Module.prototype),JS.Class=new JS.Class("Class",JS.Module,JS.Class.prototype),JS.Module.klass=JS.Module.constructor=JS.Class.klass=JS.Class.constructor=JS.Class,JS.extend(JS.Module,{_3:[],__chainq__:[],methodAdded:function(t,e){this._3.push([t,e])},_0:function(t,e){for(var n=this._3,i=n.length;i--;)n[i][0].call(n[i][1]||null,t,e)}}),JS.Kernel=JS.extend(new JS.Module("Kernel",{__eigen__:function(){if(this.__meta__)return this.__meta__;var t=this.__nom__,e=this.klass.__nom__,n=t||(e?"#<"+e+">":""),i=this.__meta__=new JS.Module(n?n+".":"",{},{_1:this});return i.include(this.klass.__mod__,!1),i},equals:function(t){return this===t},extend:function(t,e){return this.__eigen__().include(t,e,{_2:this})},hash:function(){return this.__hashcode__=this.__hashcode__||JS.Kernel.getHashCode()},isA:function(t){return this.__eigen__().includes(t)},method:function(t){var e=this,n=e.__mcache__=e.__mcache__||{};return(n[t]||{}).fn===e[t]?n[t].bd:(n[t]={fn:e[t],bd:JS.bind(e[t],e)}).bd},methods:function(){return this.__eigen__().instanceMethods(!0)},tap:function(t,e){return t.call(e||null,this),this}}),{__hashIndex__:0,getHashCode:function(){return this.__hashIndex__+=1,(Math.floor((new Date).getTime()/1e3)+this.__hashIndex__).toString(16)}}),JS.Module.include(JS.Kernel),JS.extend(JS.Module,JS.Kernel.__fns__),JS.Class.include(JS.Kernel),JS.extend(JS.Class,JS.Kernel.__fns__),JS.Interface=new JS.Class({initialize:function(t){this.test=function(e,n){for(var i=t.length;i--;)if(!JS.isFn(e[t[i]]))return n?t[i]:!1;return!0}},extend:{ensure:function(){for(var t,e,n=JS.array(arguments),i=n.shift();t=n.shift();)if(e=t.test(i,!0),e!==!0)throw Error("object does not implement "+e+"()")}}}),JS.Singleton=new JS.Class({initialize:function(t,e,n){return new new JS.Class(t,e,n)}}),Bluff={VERSION:"0.3.6",array:function(t){if(void 0===t.length)return[t];for(var e=[],n=t.length;n--;)e[n]=t[n];return e},array_new:function(t,e){for(var n=[];t--;)n.push(e);return n},each:function(t,e,n){for(var i=0,s=t.length;s>i;i++)e.call(n||null,t[i],i)},index:function(t,e){for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n;return-1},keys:function(t){var e,n=[];for(e in t)n.push(e);return n},map:function(t,e,n){var i=[];return this.each(t,function(t){i.push(e.call(n||null,t))}),i},reverse_each:function(t,e,n){for(var i=t.length;i--;)e.call(n||null,t[i],i)},sum:function(t){for(var e=0,n=t.length;n--;)e+=t[n];return e},Mini:{}},Bluff.Base=new JS.Class({extend:{DEBUG:!1,DATA_LABEL_INDEX:0,DATA_VALUES_INDEX:1,DATA_COLOR_INDEX:2,LEGEND_MARGIN:20,TITLE_MARGIN:20,LABEL_MARGIN:10,DEFAULT_MARGIN:20,DEFAULT_TARGET_WIDTH:800,THOUSAND_SEPARATOR:","},top_margin:null,bottom_margin:null,right_margin:null,left_margin:null,title_margin:null,legend_margin:null,labels:null,center_labels_over_point:null,has_left_labels:null,x_axis_label:null,y_axis_label:null,y_axis_increment:null,colors:null,title:null,font:null,font_color:null,hide_line_markers:null,hide_legend:null,hide_title:null,hide_line_numbers:null,no_data_message:null,title_font_size:null,legend_font_size:null,marker_font_size:null,marker_color:null,marker_count:null,minimum_value:null,maximum_value:null,sort:null,additional_line_values:null,stacked:null,legend_box_size:null,tooltips:!1,initialize:function(t,e){this._0=new Bluff.Renderer(t),e=e||this.klass.DEFAULT_TARGET_WIDTH;var n;"number"!=typeof e?(n=e.split("x"),this._j=parseFloat(n[0]),this._t=parseFloat(n[1])):(this._j=parseFloat(e),this._t=.75*this._j),this.initialize_ivars(),this._1j(),this.theme_keynote(),this._10={}},initialize_ivars:function(){this._b=800,this._L=800*(this._t/this._j),this._5=0,this.marker_count=null,this.maximum_value=this.minimum_value=null,this._c=!1,this._1=[],this.labels={},this._u={},this.sort=!0,this.title=null,this._a=this._j/this._b,this.marker_font_size=21,this.legend_font_size=20,this.title_font_size=36,this.top_margin=this.bottom_margin=this.left_margin=this.right_margin=this.klass.DEFAULT_MARGIN,this.legend_margin=this.klass.LEGEND_MARGIN,this.title_margin=this.klass.TITLE_MARGIN,this.legend_box_size=20,this.no_data_message="No Data",this.hide_line_markers=this.hide_legend=this.hide_title=this.hide_line_numbers=!1,this.center_labels_over_point=!0,this.has_left_labels=!1,this.additional_line_values=[],this._1C=[],this._k={},this.x_axis_label=this.y_axis_label=null,this.y_axis_increment=null,this.stacked=null,this._9=null},set_margins:function(t){this.top_margin=this.left_margin=this.right_margin=this.bottom_margin=t},set_font:function(t){this.font=t,this._0.font=this.font},add_color:function(t){this.colors.push(t)},replace_colors:function(t){this.colors=t||[],this._w=0},set_theme:function(t){this._1j(),this._k={colors:["black","white"],additional_line_colors:[],marker_color:"white",font_color:"black",background_colors:null,background_image:null};for(var e in t)this._k[e]=t[e];this.colors=this._k.colors,this.marker_color=this._k.marker_color,this.font_color=this._k.font_color||this.marker_color,this._1C=this._k.additional_line_colors,this._M()},set_background:function(t){t.colors&&(this._k.background_colors=t.colors),t.image&&(this._k.background_image=t.image),this._M()},theme_keynote:function(){this._11="#6886B4",this._12="#FDD84E",this._v="#72AE6E",this._D="#D1695E",this._13="#8A6EAF",this._E="#EFAA43",this._F="white",this.colors=[this._12,this._11,this._v,this._D,this._13,this._E,this._F],this.set_theme({colors:this.colors,marker_color:"white",font_color:"white",background_colors:["black","#4a465a"]})},theme_37signals:function(){this._v="#339933",this._13="#cc99cc",this._11="#336699",this._12="#FFF804",this._D="#ff0000",this._E="#cf5910",this._G="black",this.colors=[this._12,this._11,this._v,this._D,this._13,this._E,this._G],this.set_theme({colors:this.colors,marker_color:"black",font_color:"black",background_colors:["#d1edf5","white"]})},theme_rails_keynote:function(){this._v="#00ff00",this._14="#333333",this._E="#ff5d00",this._D="#f61100",this._F="white",this._15="#999999",this._G="black",this.colors=[this._v,this._14,this._E,this._D,this._F,this._15,this._G],this.set_theme({colors:this.colors,marker_color:"white",font_color:"white",background_colors:["#0083a3","#0083a3"]})},theme_odeo:function(){this._14="#202020",this._F="white",this._1D="#a21764",this._v="#8ab438",this._15="#999999",this._1E="#3a5b87",this._G="black",this.colors=[this._14,this._F,this._1E,this._1D,this._v,this._15,this._G],this.set_theme({colors:this.colors,marker_color:"white",font_color:"white",background_colors:["#ff47a4","#ff1f81"]})},theme_pastel:function(){this.colors=["#a9dada","#aedaa9","#daaea9","#dadaa9","#a9a9da","#daaeda","#dadada"],this.set_theme({colors:this.colors,marker_color:"#aea9a9",font_color:"black",background_colors:"white"})},theme_greyscale:function(){this.colors=["#282828","#383838","#686868","#989898","#c8c8c8","#e8e8e8"],this.set_theme({colors:this.colors,marker_color:"#aea9a9",font_color:"black",background_colors:"white"})},data:function(t,e,n){e=void 0===e?[]:e,n=n||null,e=Bluff.array(e),this._1.push([t,e,n||this._1F()]),this._5=e.length>this._5?e.length:this._5,Bluff.each(e,function(t){void 0!==t&&(null===this.maximum_value&&null===this.minimum_value&&(this.maximum_value=this.minimum_value=t),this.maximum_value=this._1k(t)?t:this.maximum_value,this.maximum_value>=0&&(this._c=!0),this.minimum_value=this._1G(t)?t:this.minimum_value,0>this.minimum_value&&(this._c=!0))},this)},draw:function(){this.stacked&&this._1H(),this._1I(),this._x(function(){this._0.rectangle(this.left_margin,this.top_margin,this._b-this.right_margin,this._L-this.bottom_margin),this._0.rectangle(this._2,this._7,this._l,this._g)})},clear:function(){this._M()},on:function(t,e,n){var i=this._10[t]=this._10[t]||[];i.push([e,n])},trigger:function(t,e){var n=this._10[t];n&&Bluff.each(n,function(t){t[0].call(t[1],e)})},_1I:function(){return this._c?(this._16(),this._1K(),this.sort&&this._1L(),this._1M(),this._N(),this._1N(),this._1O(),void 0):this._1J()},_16:function(t){if(null===this._9||t===!0){if(this._9=[],!this._c)return;this._1l(),Bluff.each(this._1,function(t){var e=[];Bluff.each(t[this.klass.DATA_VALUES_INDEX],function(t){null===t||void 0===t?e.push(null):e.push((t-this.minimum_value)/this._i)},this),this._9.push([t[this.klass.DATA_LABEL_INDEX],e,t[this.klass.DATA_COLOR_INDEX]])},this)}},_1l:function(){this._i=this.maximum_value-this.minimum_value,this._i=this._i>0?this._i:1;var t=Math.round(Math.LOG10E*Math.log(this._i));this._1m=Math.pow(10,3-t)},_1K:function(){this._O=this.hide_line_markers?0:this._P(this.marker_font_size),this._1n=this.hide_title?0:this._P(this.title_font_size),this._1o=this.hide_legend?0:this._P(this.legend_font_size);var t,e,n,i,s,r,o;if(this.hide_line_markers)this._2=this.left_margin,this._17=this.right_margin,this._1p=this.bottom_margin;else{if(e=0,this.has_left_labels){t="";for(o in this.labels)t=t.length>this.labels[o].length?t:this.labels[o];e=1.25*this._H(this.marker_font_size,t)}else e=this._H(this.marker_font_size,this._Q(this.maximum_value));n=this.hide_line_numbers&&!this.has_left_labels?0:e+2*this.klass.LABEL_MARGIN,this._2=this.left_margin+n+(null===this.y_axis_label?0:this._O+2*this.klass.LABEL_MARGIN),i=-1/0;for(o in this.labels)i=i>Number(o)?i:Number(o);i=Math.round(i),s=i>=this._5-1&&this.center_labels_over_point?this._H(this.marker_font_size,this.labels[i])/2:0,this._17=this.right_margin+s,this._1p=this.bottom_margin+this._O+this.klass.LABEL_MARGIN}this._l=this._b-this._17,this._6=this._b-this._2-this._17,this._7=this.top_margin+(this.hide_title?this.title_margin:this._1n+this.title_margin)+(this.hide_legend?this.legend_margin:this._1o+this.legend_margin),r=null===this.x_axis_label?0:this._O+this.klass.LABEL_MARGIN,this._g=this._L-this._1p-r,this._3=this._g-this._7},_1N:function(){if(this.x_axis_label){var t=this._g+2*this.klass.LABEL_MARGIN+this._O;this._0.fill=this.font_color,this.font&&(this._0.font=this.font),this._0.stroke="transparent",this._0.pointsize=this._d(this.marker_font_size),this._0.gravity="north",this._0.annotate_scaled(this._b,1,0,t,this.x_axis_label,this._a),this._x(function(){this._0.line(0,t,this._b,t)})}},_N:function(){if(!this.hide_line_markers){null===this.y_axis_increment?(null===this.marker_count&&(Bluff.each([3,4,5,6,7],function(t){this.marker_count||0!==this._i%t||(this.marker_count=t)},this),this.marker_count=this.marker_count||4),this._18=this._i>0?this._19(this._i/this.marker_count):1):(this.maximum_value=Math.max(Math.ceil(this.maximum_value),this.y_axis_increment),this.minimum_value=Math.floor(this.minimum_value),this._1l(),this._16(!0),this.marker_count=Math.round(this._i/this.y_axis_increment),this._18=this.y_axis_increment),this._1P=this._3/(this._i/this._18);var t,e,n,i;for(t=0,e=this.marker_count;e>=t;t++)n=this._7+this._3-t*this._1P,this._0.stroke=this.marker_color,this._0.stroke_width=1,this._0.line(this._2,n,this._l,n),i=t*this._18+this.minimum_value,this.hide_line_numbers||(this._0.fill=this.font_color,this.font&&(this._0.font=this.font),this._0.font_weight="normal",this._0.stroke="transparent",this._0.pointsize=this._d(this.marker_font_size),this._0.gravity="east",this._0.annotate_scaled(this._2-this.klass.LABEL_MARGIN,1,0,n,this._Q(i),this._a))}},_1q:function(t){return(this._b-t)/2},_1M:function(){if(!this.hide_legend){this._I=Bluff.map(this._1,function(t){return t[this.klass.DATA_LABEL_INDEX]},this);var t=this.legend_box_size;this.font&&(this._0.font=this.font),this._0.pointsize=this.legend_font_size;var e=[[]];Bluff.each(this._I,function(n){var i=e.length-1,s=this._0.get_type_metrics(n),r=s.width+2.7*t;e[i].push(r),Bluff.sum(e[i])>.9*this._b&&e.push([e[i].pop()])},this);var n=this._1q(Bluff.sum(e[0])),i=this.hide_title?this.top_margin+this.title_margin:this.top_margin+this.title_margin+this._1n;this._x(function(){this._0.stroke_width=1,this._0.line(0,i,this._b,i)}),Bluff.each(this._I,function(s,r){this._0.fill=this.font_color,this.font&&(this._0.font=this.font),this._0.pointsize=this._d(this.legend_font_size),this._0.stroke="transparent",this._0.font_weight="normal",this._0.gravity="west",this._0.annotate_scaled(this._b,1,n+1.7*t,i,s,this._a),this._0.stroke="transparent",this._0.fill=this._1[r][this.klass.DATA_COLOR_INDEX],this._0.rectangle(n,i-t/2,n+t,i+t/2),this._0.pointsize=this.legend_font_size;var o,a=this._0.get_type_metrics(s),l=a.width+2.7*t;e[0].shift(),0==e[0].length?(this._x(function(){this._0.line(0,i,this._b,i)}),e.shift(),e.length>0&&(n=this._1q(Bluff.sum(e[0]))),o=Math.max(this._1o,t)+this.legend_margin,e.length>0&&(i+=o,this._7+=o,this._3=this._g-this._7)):n+=l},this),this._w=0}},_1O:function(){!this.hide_title&&this.title&&(this._0.fill=this.font_color,this.font&&(this._0.font=this.font),this._0.pointsize=this._d(this.title_font_size),this._0.font_weight="bold",this._0.gravity="north",this._0.annotate_scaled(this._b,1,0,this.top_margin,this.title,this._a))},_e:function(t,e){if(!this.hide_line_markers){var n;this.labels[e]&&!this._u[e]&&(n=this._g+this.klass.LABEL_MARGIN,this._0.fill=this.font_color,this.font&&(this._0.font=this.font),this._0.stroke="transparent",this._0.font_weight="normal",this._0.pointsize=this._d(this.marker_font_size),this._0.gravity="north",this._0.annotate_scaled(1,1,t,n,this.labels[e],this._a),this._u[e]=!0,this._x(function(){this._0.stroke_width=1,this._0.line(0,n,this._b,n)}))}},_y:function(t,e,n,i,s,r,o,a){if(this.tooltips){var l=this._0.tooltip(t,e,n,i,s,r,o);Bluff.Event.observe(l,"click",function(){var t={series:s,label:this.labels[a],value:o,color:r};this.trigger("click:datapoint",t)},this)}},_1J:function(){this._0.fill=this.font_color,this.font&&(this._0.font=this.font),this._0.stroke="transparent",this._0.font_weight="normal",this._0.pointsize=this._d(80),this._0.gravity="center",this._0.annotate_scaled(this._b,this._L/2,0,10,this.no_data_message,this._a)},_M:function(){var t=this._k.background_colors;switch(!0){case t instanceof Array:this._1Q.apply(this,t);break;case"string"==typeof t:this._1R(t);break;default:this._1S(this._k.background_image)}},_1R:function(t){this._0.render_solid_background(this._j,this._t,t)},_1Q:function(t,e){this._0.render_gradiated_background(this._j,this._t,t,e)},_1S:function(){},_1j:function(){this._w=0,this._u={},this._k={},this._0.scale(this._a,this._a)},_2k:function(t){return this._a*t},_d:function(t){var e=t*this._a;return e},_R:function(t,e){return t>e?e:t},_1k:function(t){return t>this.maximum_value},_1G:function(t){return this.minimum_value>t},_1r:function(t){return t},_2l:function(t){return t},_19:function(t){if(0==t)return 1;for(var e=1;10>t;)t*=10,e/=10;for(;t>100;)t/=10,e*=10;return Math.floor(t)*e},_1L:function(){var t=this._1T,e=this.klass.DATA_VALUES_INDEX;this._9.sort(function(n,i){return t(i[e])-t(n[e])}),this._1.sort(function(n,i){return t(i[e])-t(n[e])})},_1T:function(t){var e=0;return Bluff.each(t,function(t){e+=t||0}),e},_1H:function(){for(var t=[],e=this._5;e--;)t[e]=0;Bluff.each(this._1,function(e){Bluff.each(e[this.klass.DATA_VALUES_INDEX],function(e,n){t[n]+=e},this),e[this.klass.DATA_VALUES_INDEX]=Bluff.array(t)},this)},_x:function(t){this.klass.DEBUG&&(this._0.fill="transparent",this._0.stroke="turquoise",t.call(this))},_1F:function(){var t=this._w;return this._w=(this._w+1)%this.colors.length,this.colors[t]},_Q:function(t){var e=this.klass.THOUSAND_SEPARATOR,n=0==this._i%this.marker_count||null!==this.y_axis_increment?Math.round(t)+"":Math.floor(t*this._1m)/this._1m+"",i=n.split(".");return i[0]=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+e),i.join(".")},_P:function(t){return this._0.caps_height(t)},_H:function(t,e){return this._0.text_width(t,e)}}),Bluff.Area=new JS.Class(Bluff.Base,{draw:function(){this.callSuper(),this._c&&(this._S=this._6/(this._5-1),this._0.stroke="transparent",Bluff.each(this._9,function(t){var e=[],n=0,i=0;Bluff.each(t[this.klass.DATA_VALUES_INDEX],function(t,s){var r=this._2+this._S*s,o=this._7+(this._3-t*this._3);n>0&&i>0?(e.push(r),e.push(o)):(e.push(this._2),e.push(this._g-1),e.push(r),e.push(o)),this._e(r,s),n=r,i=o},this),e.push(this._l),e.push(this._g-1),e.push(this._2),e.push(this._g-1),this._0.fill=t[this.klass.DATA_COLOR_INDEX],this._0.polyline(e)},this))}}),Bluff.BarConversion=new JS.Class({mode:null,zero:null,graph_top:null,graph_height:null,minimum_value:null,spread:null,getLeftYRightYscaled:function(t,e){var n;switch(this.mode){case 1:e[0]=this.graph_top+this.graph_height*(1-t)+1,e[1]=this.graph_top+this.graph_height-1;break;case 2:e[0]=this.graph_top+1,e[1]=this.graph_top+this.graph_height*(1-t)-1;break;case 3:n=t-this.minimum_value/this.spread,t>=this.zero?(e[0]=this.graph_top+this.graph_height*(1-(n-this.zero))+1,e[1]=this.graph_top+this.graph_height*(1-this.zero)-1):(e[0]=this.graph_top+this.graph_height*(1-(n-this.zero))+1,e[1]=this.graph_top+this.graph_height*(1-this.zero)-1);break;default:e[0]=0,e[1]=0}}}),Bluff.Bar=new JS.Class(Bluff.Base,{bar_spacing:.9,draw:function(){this.center_labels_over_point=Bluff.keys(this.labels).length>this._5,this.callSuper(),this._c&&this._T()},_T:function(){this._8=this._6/(this._5*this._1.length);var t=this._8*(1-this.bar_spacing)/2;this._0.stroke_opacity=0;var e=new Bluff.BarConversion;e.graph_height=this._3,e.graph_top=this._7,this.minimum_value>=0?e.mode=1:0>=this.maximum_value?e.mode=2:(e.mode=3,e.spread=this._i,e.minimum_value=this.minimum_value,e.zero=-this.minimum_value/this._i),Bluff.each(this._9,function(n,i){var s=this._1[i][this.klass.DATA_VALUES_INDEX];Bluff.each(n[this.klass.DATA_VALUES_INDEX],function(r,o){var a=this._2+this._8*(i+o+(this._1.length-1)*o)+t,l=a+this._8*this.bar_spacing,h=[];e.getLeftYRightYscaled(r,h),this._0.fill=n[this.klass.DATA_COLOR_INDEX],this._0.rectangle(a,h[0],l,h[1]),this._y(a,h[0],l-a,h[1]-h[0],n[this.klass.DATA_LABEL_INDEX],n[this.klass.DATA_COLOR_INDEX],s[o],o);
var u=this._2+this._1.length*this._8*o+this._1.length*this._8/2;this._e(u-(this.center_labels_over_point?this._8/2:0),o)},this)},this),this.center_labels_over_point&&this._e(this._l,this._5)}}),Bluff.Line=new JS.Class(Bluff.Base,{baseline_value:null,baseline_color:null,line_width:null,dot_radius:null,hide_dots:null,hide_lines:null,initialize:function(t){if(arguments.length>3)throw"Wrong number of arguments";1===arguments.length||"number"!=typeof arguments[1]&&"string"!=typeof arguments[1]?this.callSuper(t,null):this.callSuper(),this.hide_dots=this.hide_lines=!1,this.baseline_color="red",this.baseline_value=null},draw:function(){if(this.callSuper(),this._c){this.x_increment=this._5>1?this._6/(this._5-1):this._6;var t;void 0!==this._U&&(t=this._7+(this._3-this._U*this._3),this._0.push(),this._0.stroke=this.baseline_color,this._0.fill_opacity=0,this._0.stroke_width=3,this._0.line(this._2,t,this._2+this._6,t),this._0.pop()),Bluff.each(this._9,function(t,e){var n=null,i=null,s=this._1[e][this.klass.DATA_VALUES_INDEX];this._1U=this._1V(t),Bluff.each(t[this.klass.DATA_VALUES_INDEX],function(e,r){var o=this._2+this.x_increment*r;if("number"==typeof e){this._e(o,r);var a=this._7+(this._3-e*this._3);this._0.stroke=t[this.klass.DATA_COLOR_INDEX],this._0.fill=t[this.klass.DATA_COLOR_INDEX],this._0.stroke_opacity=1,this._0.stroke_width=this.line_width||this._R(this._j/(6*this._9[0][this.klass.DATA_VALUES_INDEX].length),3);var l=this.dot_radius||this._R(this._j/(2*this._9[0][this.klass.DATA_VALUES_INDEX].length),7);this.hide_lines||null===n||null===i?this._1U&&this._0.circle(o,a,o-l,a):this._0.line(n,i,o,a),this.hide_dots||this._0.circle(o,a,o-l,a),this._y(o-l,a-l,2*l,2*l,t[this.klass.DATA_LABEL_INDEX],t[this.klass.DATA_COLOR_INDEX],s[r],r),n=o,i=a}},this)},this)}},_16:function(){this.maximum_value=Math.max(this.maximum_value,this.baseline_value),this.callSuper(),null!==this.baseline_value&&(this._U=this.baseline_value/this.maximum_value)},_1V:function(t){var e=0;return Bluff.each(t[this.klass.DATA_VALUES_INDEX],function(t){void 0!==t&&(e+=1)}),1===e}}),Bluff.Dot=new JS.Class(Bluff.Base,{draw:function(){if(this.has_left_labels=!0,this.callSuper(),this._c){var t=1;this._J=this._3/this._5,this._1a=this._J*t/this._9.length,this._0.stroke_opacity=0;var e=(Bluff.array_new(this._5,0),Bluff.array_new(this._5,this._2),this._J*(1-t)/2);Bluff.each(this._9,function(t,n){Bluff.each(t[this.klass.DATA_VALUES_INDEX],function(i,s){var r=this._2+i*this._6-Math.round(this._1a/6),o=this._7+this._J*s+e+Math.round(this._1a/2);0===n&&(this._0.stroke=this.marker_color,this._0.stroke_width=1,this._0.opacity=.1,this._0.line(this._2,o,this._2+this._6,o)),this._0.fill=t[this.klass.DATA_COLOR_INDEX],this._0.stroke="transparent",this._0.circle(r,o,r+Math.round(this._1a/3),o);var a=this._7+(this._J*s+this._J/2)+e;this._e(a,s)},this)},this)}},_N:function(){if(!this.hide_line_markers){this._0.stroke_antialias=!1,this._0.stroke_width=1;for(var t=5,e=this._19(this.maximum_value/t),n=0;t>=n;n++){var i=(this._l-this._2)/t,s=this._l-i*n-1,r=n-t,o=Math.abs(r)*e;this._0.stroke=this.marker_color,this._0.line(s,this._g,s,this._g+.5*this.klass.LABEL_MARGIN),this.hide_line_numbers||(this._0.fill=this.font_color,this.font&&(this._0.font=this.font),this._0.stroke="transparent",this._0.pointsize=this._d(this.marker_font_size),this._0.gravity="center",this._0.annotate_scaled(0,0,s,this._g+2*this.klass.LABEL_MARGIN,o,this._a)),this._0.stroke_antialias=!0}}},_e:function(t,e){this.labels[e]&&!this._u[e]&&(this._0.fill=this.font_color,this.font&&(this._0.font=this.font),this._0.stroke="transparent",this._0.font_weight="normal",this._0.pointsize=this._d(this.marker_font_size),this._0.gravity="east",this._0.annotate_scaled(1,1,this._2-2*this.klass.LABEL_MARGIN,t,this.labels[e],this._a),this._u[e]=!0)}}),Bluff.Net=new JS.Class(Bluff.Base,{hide_dots:null,line_width:null,dot_radius:null,initialize:function(){this.callSuper(),this.hide_dots=!1,this.hide_line_numbers=!0},draw:function(){if(this.callSuper(),this._c){this._z=this._3/2,this._A=this._2+this._6/2,this._B=this._7+this._3/2-10,this._S=this._6/(this._5-1);var t=this.dot_radius||this._R(this._j/(2.5*this._9[0][this.klass.DATA_VALUES_INDEX].length),7);this._0.stroke_opacity=1,this._0.stroke_width=this.line_width||this._R(this._j/(4*this._9[0][this.klass.DATA_VALUES_INDEX].length),3);var e;void 0!==this._U&&(e=this._7+(this._3-this._U*this._3),this._0.push(),this._0.stroke_color=this.baseline_color,this._0.fill_opacity=0,this._0.stroke_width=5,this._0.line(this._2,e,this._2+this._6,e),this._0.pop()),Bluff.each(this._9,function(e){Bluff.each(e[this.klass.DATA_VALUES_INDEX],function(n,i){if(void 0!==n){var s=2*i*Math.PI/this._5,r=n*this._z,o=this._A+Math.sin(s)*r,a=this._B-Math.cos(s)*r,l=e[this.klass.DATA_VALUES_INDEX].length>i+1?i+1:0,h=2*l*Math.PI/this._5,u=e[this.klass.DATA_VALUES_INDEX][l]*this._z,c=this._A+Math.sin(h)*u,f=this._B-Math.cos(h)*u;this._0.stroke=e[this.klass.DATA_COLOR_INDEX],this._0.fill=e[this.klass.DATA_COLOR_INDEX],this._0.line(o,a,c,f),this.hide_dots||this._0.circle(o,a,o-t,a)}},this)},this)}},_N:function(){if(!this.hide_line_markers){this._z=this._3/2,this._A=this._2+this._6/2,this._B=this._7+this._3/2-10;for(var t,e,n=0,i=this._5;i>n;n++)t=2*n*Math.PI/this._5,this._0.stroke=this.marker_color,this._0.stroke_width=1,this._0.line(this._A,this._B,this._A+Math.sin(t)*this._z,this._B-Math.cos(t)*this._z),e=this.labels[n]?this.labels[n]:"000",this._e(this._A,this._B,360*t/(2*Math.PI),this._z,e)}},_e:function(t,e,n,i,s){var r=1.1,o=t,a=e,l=n*Math.PI/180,h=o+i*r*Math.sin(l),u=a-i*r*Math.cos(l);this._0.fill=this.marker_color,this.font&&(this._0.font=this.font),this._0.pointsize=this._d(20),this._0.stroke="transparent",this._0.font_weight="bold",this._0.gravity="center",this._0.annotate_scaled(0,0,h,u,s,this._a)}}),Bluff.Pie=new JS.Class(Bluff.Base,{extend:{TEXT_OFFSET_PERCENTAGE:.08},zero_degreee:null,hide_labels_less_than:null,initialize_ivars:function(){this.callSuper(),this.zero_degree=0,this.hide_labels_less_than=0},draw:function(){if(this.hide_line_markers=!0,this.callSuper(),this._c){var t=this._3,e=.8*(Math.min(this._6,this._3)/2),n=(this._2+(this._6-t)/2,this._2+this._6/2),i=this._7+this._3/2-10,s=this._1W(),r=this.zero_degree,o=this.klass.DATA_VALUES_INDEX;this.sort&&this._1.sort(function(t,e){return t[o][0]-e[o][0]}),Bluff.each(this._1,function(t,o){if(t[this.klass.DATA_VALUES_INDEX][0]>0){this._0.fill=t[this.klass.DATA_COLOR_INDEX];var a=360*(t[this.klass.DATA_VALUES_INDEX][0]/s);this._0.circle(n,i,n+e,i,r,r+a+.5);var l,h=r+(r+a-r)/2,u=Math.round(100*(t[this.klass.DATA_VALUES_INDEX][0]/s));u>=this.hide_labels_less_than&&(l=this._Q(t[this.klass.DATA_VALUES_INDEX][0]),this._e(n,i,h,e+e*this.klass.TEXT_OFFSET_PERCENTAGE,l,t,o)),r+=a}},this)}},_e:function(t,e,n,i,s,r,o){var a=20,l=t,h=e,u=i+a,c=.15*u,f=l+(u+c)*Math.cos(n*Math.PI/180),d=h+u*Math.sin(n*Math.PI/180);this._0.fill=this.font_color,this.font&&(this._0.font=this.font),this._0.pointsize=this._d(this.marker_font_size),this._0.font_weight="bold",this._0.gravity="center",this._0.annotate_scaled(0,0,f,d,s,this._a),this._y(f-20,d-20,40,40,r[this.klass.DATA_LABEL_INDEX],r[this.klass.DATA_COLOR_INDEX],s,o)},_1W:function(){var t=0;return Bluff.each(this._1,function(e){t+=e[this.klass.DATA_VALUES_INDEX][0]},this),t}}),Bluff.SideBar=new JS.Class(Bluff.Base,{bar_spacing:.9,draw:function(){this.has_left_labels=!0,this.callSuper(),this._c&&this._T()},_T:function(){this._V=this._3/this._5,this._8=this._V/this._9.length,this._0.stroke_opacity=0;var t=Bluff.array_new(this._5,0),e=Bluff.array_new(this._5,this._2),n=this._8*(1-this.bar_spacing)/2;Bluff.each(this._9,function(i,s){var r=this._1[s][this.klass.DATA_VALUES_INDEX];Bluff.each(i[this.klass.DATA_VALUES_INDEX],function(o,a){var l=this._2+(this._6-o*this._6-t[a]),h=this._2+this._6-t[a],u=h-l,c=e[a]-1,f=this._7+this._V*a+this._8*s+n,d=c+u,p=f+this._8*this.bar_spacing;t[a]+=o*this._6,this._0.stroke="transparent",this._0.fill=i[this.klass.DATA_COLOR_INDEX],this._0.rectangle(c,f,d,p),this._y(c,f,d-c,p-f,i[this.klass.DATA_LABEL_INDEX],i[this.klass.DATA_COLOR_INDEX],r[a],a);var _=this._7+(this._V*a+this._V/2);this._e(_,a)},this)},this)},_N:function(){if(!this.hide_line_markers){this._0.stroke_antialias=!1,this._0.stroke_width=1;for(var t,e,n,i,s=5,r=this._19(this._i/s),o=0;s>=o;o++)t=(this._l-this._2)/s,e=this._l-t*o-1,n=o-s,i=Math.abs(n)*r+this.minimum_value,this._0.stroke=this.marker_color,this._0.line(e,this._g,e,this._7),this.hide_line_numbers||(this._0.fill=this.font_color,this.font&&(this._0.font=this.font),this._0.stroke="transparent",this._0.pointsize=this._d(this.marker_font_size),this._0.gravity="center",this._0.annotate_scaled(0,0,e,this._g+2*this.klass.LABEL_MARGIN,this._Q(i),this._a))}},_e:function(t,e){this.labels[e]&&!this._u[e]&&(this._0.fill=this.font_color,this.font&&(this._0.font=this.font),this._0.stroke="transparent",this._0.font_weight="normal",this._0.pointsize=this._d(this.marker_font_size),this._0.gravity="east",this._0.annotate_scaled(1,1,this._2-2*this.klass.LABEL_MARGIN,t,this.labels[e],this._a),this._u[e]=!0)}}),Bluff.Spider=new JS.Class(Bluff.Base,{hide_text:null,hide_axes:null,transparent_background:null,initialize:function(t,e,n){this.callSuper(t,n),this._1X=e,this.hide_legend=!0},draw:function(){if(this.hide_line_markers=!0,this.callSuper(),this._c){var t=this._3,e=this._3/2,n=(this._2+(this._6-t)/2,this._2+this._6/2),i=this._7+this._3/2-25;this._1Y=e/this._1X;var s=(this._1Z(),2*Math.PI/this._1.length);this.hide_axes||this._20(n,i,e,s),this._21(n,i,s)}},_1s:function(t){return t*this._1Y},_e:function(t,e,n,i,s){var r=50,o=t,a=e+0,l=o+(i+r)*Math.cos(n),h=a+(i+r)*Math.sin(n);this._0.fill=this.marker_color,this.font&&(this._0.font=this.font),this._0.pointsize=this._d(this.legend_font_size),this._0.stroke="transparent",this._0.font_weight="bold",this._0.gravity="center",this._0.annotate_scaled(0,0,l,h,s,this._a)},_20:function(t,e,n,i,s){if(!this.hide_axes){var r=0;Bluff.each(this._1,function(o){this._0.stroke=s||o[this.klass.DATA_COLOR_INDEX],this._0.stroke_width=5;var a=n*Math.cos(r),l=n*Math.sin(r);this._0.line(t,e,t+a,e+l),this.hide_text||this._e(t,e,r,n,o[this.klass.DATA_LABEL_INDEX]),r+=i},this)}},_21:function(t,e,n,i){var s=[],r=0;Bluff.each(this._1,function(i){s.push(t+this._1s(i[this.klass.DATA_VALUES_INDEX][0])*Math.cos(r)),s.push(e+this._1s(i[this.klass.DATA_VALUES_INDEX][0])*Math.sin(r)),r+=n},this),this._0.stroke_width=1,this._0.stroke=i||this.marker_color,this._0.fill=i||this.marker_color,this._0.fill_opacity=.4,this._0.polyline(s)},_1Z:function(){var t=0;return Bluff.each(this._1,function(e){t+=e[this.klass.DATA_VALUES_INDEX][0]},this),t}}),Bluff.Base.StackedMixin=new JS.Module({_1b:function(){var t={};Bluff.each(this._1,function(e){Bluff.each(e[this.klass.DATA_VALUES_INDEX],function(e,n){t[n]||(t[n]=0),t[n]+=e},this)},this);for(var e in t)t[e]>this.maximum_value&&(this.maximum_value=t[e]);this.minimum_value=0}}),Bluff.StackedArea=new JS.Class(Bluff.Base,{include:Bluff.Base.StackedMixin,last_series_goes_on_bottom:null,draw:function(){if(this._1b(),this.callSuper(),this._c){this._S=this._6/(this._5-1),this._0.stroke="transparent";var t=Bluff.array_new(this._5,0),e=null,n=this.last_series_goes_on_bottom?"reverse_each":"each";Bluff[n](this._9,function(n){var i=e;e=[],Bluff.each(n[this.klass.DATA_VALUES_INDEX],function(n,i){var s=this._2+this._S*i,r=this._7+(this._3-n*this._3-t[i]);t[i]+=n*this._3,e.push(s),e.push(r),this._e(s,i)},this);var s,r;if(i){for(s=Bluff.array(e),r=i.length/2-1;r>=0;r--)s.push(i[2*r]),s.push(i[2*r+1]);s.push(e[0]),s.push(e[1])}else s=Bluff.array(e),s.push(this._l),s.push(this._g-1),s.push(this._2),s.push(this._g-1),s.push(e[0]),s.push(e[1]);this._0.fill=n[this.klass.DATA_COLOR_INDEX],this._0.polyline(s)},this)}}}),Bluff.StackedBar=new JS.Class(Bluff.Base,{include:Bluff.Base.StackedMixin,bar_spacing:.9,draw:function(){if(this._1b(),this.callSuper(),this._c){this._8=this._6/this._5;var t=this._8*(1-this.bar_spacing)/2;this._0.stroke_opacity=0;var e=Bluff.array_new(this._5,0);Bluff.each(this._9,function(n,i){var s=this._1[i][this.klass.DATA_VALUES_INDEX];Bluff.each(n[this.klass.DATA_VALUES_INDEX],function(i,r){var o=this._2+this._8*r+this._8*this.bar_spacing/2;if(this._e(o,r),0!=i){var a=this._2+this._8*r+t,l=this._7+(this._3-i*this._3-e[r])+1,h=a+this._8*this.bar_spacing,u=this._7+this._3-e[r]-1;e[r]+=i*this._3,this._0.fill=n[this.klass.DATA_COLOR_INDEX],this._0.rectangle(a,l,h,u),this._y(a,l,h-a,u-l,n[this.klass.DATA_LABEL_INDEX],n[this.klass.DATA_COLOR_INDEX],s[r],r)}},this)},this)}}}),Bluff.AccumulatorBar=new JS.Class(Bluff.StackedBar,{draw:function(){if(1!==this._1.length)throw"Incorrect number of datasets";var t=[],e=0,n=[];Bluff.each(this._1[0][this.klass.DATA_VALUES_INDEX],function(i){var s=-1/0;Bluff.each(n,function(t){s=Math.max(s,t)}),n.push(e>0?i+s:i),t.push(n[e]-i),e+=1},this),this.data("Accumulator",t),this.callSuper()}}),Bluff.SideStackedBar=new JS.Class(Bluff.SideBar,{include:Bluff.Base.StackedMixin,bar_spacing:.9,draw:function(){this.has_left_labels=!0,this._1b(),this.callSuper()},_T:function(){this._8=this._3/this._5;var t=Bluff.array_new(this._5,0),e=Bluff.array_new(this._5,this._2),n=this._8*(1-this.bar_spacing)/2;Bluff.each(this._9,function(i,s){var r=this._1[s][this.klass.DATA_VALUES_INDEX];Bluff.each(i[this.klass.DATA_VALUES_INDEX],function(s,o){var a=this._2+(this._6-s*this._6-t[o])+1,l=this._2+this._6-t[o]-1,h=l-a;this._0.fill=i[this.klass.DATA_COLOR_INDEX];var u=e[o],c=this._7+this._8*o+n,f=u+h,d=c+this._8*this.bar_spacing;e[o]+=h,t[o]+=s*this._6-2,this._0.rectangle(u,c,f,d),this._y(u,c,f-u,d-c,i[this.klass.DATA_LABEL_INDEX],i[this.klass.DATA_COLOR_INDEX],r[o],o);var p=this._7+this._8*o+this._8*this.bar_spacing/2;this._e(p,o)},this)},this)},_1k:function(t,e){return e=e||0,this._1r(t,e)>this.maximum_value},_1r:function(t,e){var n=0;return Bluff.each(this._1,function(t){n+=t[this.klass.DATA_VALUES_INDEX][e]},this),n}}),Bluff.Mini.Legend=new JS.Module({hide_mini_legend:!1,_1c:function(){if(!this.hide_mini_legend){this._I=Bluff.map(this._1,function(t){return t[this.klass.DATA_LABEL_INDEX]},this);var t=this._d(this._1.length*this._1t()+this.top_margin+this.bottom_margin);switch(this._22=this._L,this._23=this._b,this.legend_position){case"right":this._t=Math.max(this._t,t),this._j+=this._24()+this.left_margin;break;default:this._t+=t}this._M()}},_1t:function(){return 1.7*this._P(this.legend_font_size)},_24:function(){var t=0;return Bluff.each(this._I,function(e){t=Math.max(this._H(this.legend_font_size,e),t)},this),this._d(t+68)},_1d:function(){if(!this.hide_mini_legend){var t=40,e=100,n=40;this.font&&(this._0.font=this.font),this._0.pointsize=this.legend_font_size;var i,s;switch(this.legend_position){case"right":i=this._23+this.left_margin,s=this.top_margin+n;break;default:i=e,s=this._22+n}this._x(function(){this._0.line(0,s,this._b,s)}),Bluff.each(this._I,function(e,n){this._0.fill=this.font_color,this.font&&(this._0.font=this.font),this._0.pointsize=this._d(this.legend_font_size),this._0.stroke="transparent",this._0.font_weight="normal",this._0.gravity="west",this._0.annotate_scaled(this._b,1,i+1.7*t,s,this._25(e),this._a),this._0.stroke="transparent",this._0.fill=this._1[n][this.klass.DATA_COLOR_INDEX],this._0.rectangle(i,s-t/2,i+t,s+t/2),s+=this._1t()},this),this._w=0}},_25:function(t){for(var e=t+"";this._H(this._d(this.legend_font_size),e)>this._j-this.legend_left_margin-this.right_margin&&e.length>1;)e=e.substr(0,e.length-1);return e+(e.length<(t+"").length?"...":"")}}),Bluff.Mini.Bar=new JS.Class(Bluff.Bar,{include:Bluff.Mini.Legend,initialize_ivars:function(){this.callSuper(),this.hide_legend=!0,this.hide_title=!0,this.hide_line_numbers=!0,this.marker_font_size=50,this.minimum_value=0,this.maximum_value=0,this.legend_font_size=60},draw:function(){this._1c(),this.callSuper(),this._1d()}}),Bluff.Mini.Pie=new JS.Class(Bluff.Pie,{include:Bluff.Mini.Legend,initialize_ivars:function(){this.callSuper(),this.hide_legend=!0,this.hide_title=!0,this.hide_line_numbers=!0,this.marker_font_size=60,this.legend_font_size=60},draw:function(){this._1c(),this.callSuper(),this._1d()}}),Bluff.Mini.SideBar=new JS.Class(Bluff.SideBar,{include:Bluff.Mini.Legend,initialize_ivars:function(){this.callSuper(),this.hide_legend=!0,this.hide_title=!0,this.hide_line_numbers=!0,this.marker_font_size=50,this.legend_font_size=50},draw:function(){this._1c(),this.callSuper(),this._1d()}}),Bluff.Renderer=new JS.Class({extend:{WRAPPER_CLASS:"bluff-wrapper",TEXT_CLASS:"bluff-text",TARGET_CLASS:"bluff-tooltip-target"},font:"Arial, Helvetica, Verdana, sans-serif",gravity:"north",initialize:function(t){this._n=document.getElementById(t),this._4=this._n.getContext("2d")},scale:function(t,e){this._f=t,this._h=e||t},caps_height:function(t){var e=this._W(t,"X"),n=this._K(e).height;return this._X(e),n},text_width:function(t,e){var n=this._W(t,e),i=this._K(n).width;return this._X(n),i},get_type_metrics:function(t){var e=this._W(this.pointsize,t);document.body.appendChild(e);var n=this._K(e);return this._X(e),n},clear:function(t,e){this._n.width=t,this._n.height=e,this._4.clearRect(0,0,t,e);var n=this._1u(),i=n.childNodes,s=i.length;for(n.style.width=t+"px",n.style.height=e+"px";s--;)"canvas"!==i[s].tagName.toLowerCase()&&(Bluff.Event.stopObserving(i[s]),this._X(i[s]))},push:function(){this._4.save()},pop:function(){this._4.restore()},render_gradiated_background:function(t,e,n,i){this.clear(t,e);var s=this._4.createLinearGradient(0,0,0,e);s.addColorStop(0,n),s.addColorStop(1,i),this._4.fillStyle=s,this._4.fillRect(0,0,t,e)},render_solid_background:function(t,e,n){this.clear(t,e),this._4.fillStyle=n,this._4.fillRect(0,0,t,e)},annotate_scaled:function(t,e,n,i,s,r){var o=t*r>=1?t*r:1,a=e*r>=1?e*r:1,s=this._W(this.pointsize,s);s.style.color=this.fill,s.style.cursor="default",s.style.fontWeight=this.font_weight,s.style.textAlign="center",s.style.left=this._f*n+this._26(s,o)+"px",s.style.top=this._h*i+this._27(s,a)+"px"},tooltip:function(t,e,n,i,s,r,o){0>n&&(t+=n),0>i&&(e+=i);var a=this._n.parentNode,l=document.createElement("div");return l.className=this.klass.TARGET_CLASS,l.style.cursor="default",l.style.position="absolute",l.style.left=this._f*t-3+"px",l.style.top=this._h*e-3+"px",l.style.width=this._f*Math.abs(n)+5+"px",l.style.height=this._h*Math.abs(i)+5+"px",l.style.fontSize=0,l.style.overflow="hidden",Bluff.Event.observe(l,"mouseover",function(){Bluff.Tooltip.show(s,r,o)}),Bluff.Event.observe(l,"mouseout",function(){Bluff.Tooltip.hide()}),a.appendChild(l),l},circle:function(t,e,n,i,s,r){var o=Math.sqrt(Math.pow(n-t,2)+Math.pow(i-e,2)),a=0,l=2*Math.PI;this._4.fillStyle=this.fill,this._4.beginPath(),void 0!==s&&void 0!==r&&360!==Math.abs(Math.floor(r-s))&&(a=s*Math.PI/180,l=r*Math.PI/180,this._4.moveTo(this._f*(t+o*Math.cos(l)),this._h*(e+o*Math.sin(l))),this._4.lineTo(this._f*t,this._h*e),this._4.lineTo(this._f*(t+o*Math.cos(a)),this._h*(e+o*Math.sin(a)))),this._4.arc(this._f*t,this._h*e,this._f*o,a,l,!1),this._4.fill()},line:function(t,e,n,i){this._4.strokeStyle=this.stroke,this._4.lineWidth=this.stroke_width,this._4.beginPath(),this._4.moveTo(this._f*t,this._h*e),this._4.lineTo(this._f*n,this._h*i),this._4.stroke()},polyline:function(t){this._4.fillStyle=this.fill,this._4.globalAlpha=this.fill_opacity||1;try{this._4.strokeStyle=this.stroke}catch(e){}var n=t.shift(),i=t.shift();for(this._4.beginPath(),this._4.moveTo(this._f*n,this._h*i);t.length>0;)n=t.shift(),i=t.shift(),this._4.lineTo(this._f*n,this._h*i);this._4.fill()},rectangle:function(t,e,n,i){var s;t>n&&(s=t,t=n,n=s),e>i&&(s=e,e=i,i=s);try{this._4.fillStyle=this.fill,this._4.fillRect(this._f*t,this._h*e,this._f*(n-t),this._h*(i-e))}catch(r){}try{this._4.strokeStyle=this.stroke,"transparent"!==this.stroke&&this._4.strokeRect(this._f*t,this._h*e,this._f*(n-t),this._h*(i-e))}catch(r){}},_26:function(t,e){var n=this._K(t).width;switch(this.gravity){case"west":return 0;case"east":return e-n;case"north":case"south":case"center":return(e-n)/2}},_27:function(t,e){var n=this._K(t).height;switch(this.gravity){case"north":return 0;case"south":return e-n;case"west":case"east":case"center":return(e-n)/2}},_1u:function(){var t=this._n.parentNode;return t.className===this.klass.WRAPPER_CLASS?t:(t=document.createElement("div"),t.className=this.klass.WRAPPER_CLASS,t.style.position="relative",t.style.border="none",t.style.padding="0 0 0 0",this._n.parentNode.insertBefore(t,this._n),t.appendChild(this._n),t)},_W:function(t,e){var n=this._28(e);return n.style.fontFamily=this.font,n.style.fontSize="number"==typeof t?t+"px":t,n},_28:function(t){var e=document.createElement("div");return e.className=this.klass.TEXT_CLASS,e.style.position="absolute",e.appendChild(document.createTextNode(t)),this._1u().appendChild(e),e},_X:function(t){t.parentNode.removeChild(t),t.className===this.klass.TARGET_CLASS&&Bluff.Event.stopObserving(t)},_K:function(t){var e=t.style.display;return e&&"none"!==e?{width:t.offsetWidth,height:t.offsetHeight}:{width:t.clientWidth,height:t.clientHeight}}}),Bluff.Event={_Y:[],_1v:window.attachEvent&&-1===navigator.userAgent.indexOf("Opera"),observe:function(t,e,n,i){var s=Bluff.map(this._1w(t,e),function(t){return t._29});if(-1===Bluff.index(s,n)){var r=function(e){n.call(i||null,t,Bluff.Event._2a(e))};this._Y.push({_Z:t,_1e:e,_29:n,_1x:r}),t.addEventListener?t.addEventListener(e,r,!1):t.attachEvent("on"+e,r)}},stopObserving:function(t){var e=t?this._1w(t):this._Y;Bluff.each(e,function(t){t._Z.removeEventListener?t._Z.removeEventListener(t._1e,t._1x,!1):t._Z.detachEvent("on"+t._1e,t._1x)})},_1w:function(t,e){var n=[];return Bluff.each(this._Y,function(i){t&&i._Z!==t||e&&i._1e!==e||n.push(i)}),n},_2a:function(t){if(!this._1v)return t;if(!t)return!1;if(t._2b)return t;t._2b=!0;var e=this._2c(t);return t.target=t.srcElement,t.pageX=e.x,t.pageY=e.y,t},_2c:function(t){var e=document.documentElement,n=document.body||{scrollLeft:0,scrollTop:0};return{x:t.pageX||t.clientX+(e.scrollLeft||n.scrollLeft)-(e.clientLeft||0),y:t.pageY||t.clientY+(e.scrollTop||n.scrollTop)-(e.clientTop||0)}}},Bluff.Event._1v&&window.attachEvent("onunload",function(){Bluff.Event.stopObserving(),Bluff.Event._Y=null}),navigator.userAgent.indexOf("AppleWebKit/")>-1&&window.addEventListener("unload",function(){},!1),Bluff.Tooltip=new JS.Singleton({LEFT_OFFSET:20,TOP_OFFSET:-6,DATA_LENGTH:8,CLASS_NAME:"bluff-tooltip",setup:function(){this._o=document.createElement("div"),this._o.className=this.CLASS_NAME,this._o.style.position="absolute",this.hide(),document.body.appendChild(this._o),Bluff.Event.observe(document.body,"mousemove",function(t,e){this._o.style.left=e.pageX+this.LEFT_OFFSET+"px",this._o.style.top=e.pageY+this.TOP_OFFSET+"px"},this)},show:function(t,e,n){n=Number((n+"").substr(0,this.DATA_LENGTH)),this._o.innerHTML='<span class="color" style="background: '+e+';">&nbsp;</span> <span class="label">'+t+'</span> <span class="data">'+n+"</span>",this._o.style.display=""},hide:function(){this._o.style.display="none"}}),Bluff.Event.observe(window,"load",Bluff.Tooltip.method("setup")),Bluff.TableReader=new JS.Class({NUMBER_FORMAT:/\-?(0|[1-9]\d*)(\.\d+)?(e[\+\-]?\d+)?/i,initialize:function(t,e){this._1f=e||{},this._2d=this._1f.orientation||"auto",this._2e="string"==typeof t?document.getElementById(t):t},get_data:function(){return this._1||this._1y(),this._1},get_labels:function(){return this._1g||this._1y(),this._1g},get_title:function(){return this._2f},get_series:function(t){return this._1[t]?this._1[t]:this._1[t]={points:[]}},_1y:function(){this._C=this._m=0,this._p=this._q=0,this._1=[],this._1g={},this._r=[],this._s=[],this._1h=[],this._1i=[],this._1z(this._2e),this._2g(),this._2h(),Bluff.each(this._s,function(t,e){this.get_series(e-this._q).name=t},this),Bluff.each(this._r,function(t,e){this._1g[e-this._p]=t},this)},_1z:function(t){this._2i(t);var e,n=t.childNodes,i=n.length;for(e=0;i>e;e++)this._1z(n[e])},_2i:function(t){if(t.tagName){var e,n,i=this._1A(t.innerHTML);switch(t.tagName.toUpperCase()){case"TR":this._c||(this._p=this._C),this._C+=1,this._m=0;break;case"TD":this._c||(this._q=this._m),this._c=!0,this._m+=1,i=i.match(this.NUMBER_FORMAT),null===i?this.get_series(e).points[n]=null:(e=this._m-this._q-1,n=this._C-this._p-1,this.get_series(e).points[n]=parseFloat(i[0]));break;case"TH":this._m+=1,this._2j(t)&&(this._1i.push(this._m),this._1h.push(this._C)),1===this._m&&1===this._C?this._r[0]=this._s[0]=i:"row"===t.scope||1===this._m?this._r[this._C-1]=i:this._s[this._m-1]=i;break;case"CAPTION":this._2f=i}}},_2j:function(t){if(!this._1f.except)return!1;var e=this._1A(t.innerHTML),n=(t.className||"").split(/\s+/),i=[].concat(this._1f.except);if(Bluff.index(i,e)>=0)return!0;for(var s=n.length;s--;)if(Bluff.index(i,n[s])>=0)return!0;return!1},_2g:function(){for(var t,e=this._1i.length;e--;)t=this._1i[e],this._q>=t||(this._s.splice(t-1,1),t>=this._q&&this._1.splice(t-1-this._q,1));for(var t,e=this._1h.length;e--;)t=this._1h[e],this._p>=t||(this._r.splice(t-1,1),Bluff.each(this._1,function(e){t>=this._p&&e.points.splice(t-1-this._p,1)},this))},_2h:function(){switch(this._2d){case"auto":(this._r.length>1&&1===this._s.length||this._r.length<this._s.length)&&this._1B();break;case"rows":this._1B()}},_1B:function(){var t,e=this._1;this._1=[],Bluff.each(e,function(t,e){Bluff.each(t.points,function(t,n){this.get_series(n).points[e]=t},this)},this),t=this._r,this._r=this._s,this._s=t,t=this._p,this._p=this._q,this._q=t},_1A:function(t){return t.replace(/<\/?[^>]+>/gi,"")},extend:{Mixin:new JS.Module({data_from_table:function(t,e){var n=new Bluff.TableReader(t,e),i=n.get_data();Bluff.each(i,function(t){this.data(t.name,t.points)},this),this.labels=n.get_labels(),this.title=n.get_title()||this.title}})}}),Bluff.Base.include(Bluff.TableReader.Mixin),function(){$(document).ready(function(){function t(t,e){var n=new Bluff.Bar(t,460),i=["#6886B4","#FDD84E","#72AE6E","#D1695E","#8A6EAF","#EFAA43","white"];n.set_theme({colors:i,marker_color:"white",font_color:"white",background_colors:["#008000","#008000"]}),n.tooltips=!0,n.hide_line_markers=!1,n.minimum_value=0;var s=0;for(var r in e.items){var o=e.items[r];n.data(o.label,o.data),o.data>s&&(s=o.data)}n.maximum_value=s,n.draw()}if($("#total_jobs_chart").length>0){var e=$("#total_jobs_chart").data("set");null!==e&&(t("total_jobs_chart",e),$("#total_jobs_container").css("visibility","visible"))}if($("#buried_jobs_chart").length>0){var n=$("#buried_jobs_chart").data("set");null!==n&&(t("buried_jobs_chart",n),$("#buried_jobs_container").css("visibility","visible"))}})}(),function(){$(document).ready(function(){if($("[rel=tooltip]").tooltip(),$("#form_tube_name").length>0){var t=$("#form_tube_name").data("tubes");$("#form_tube_name").typeahead({source:t})}_.templateSettings={interpolate:/\{\{\=(.+?)\}\}/g,evaluate:/\{\{(.+?)\}\}/g}})}(),function(){$(document).ready(function(){function t(t){var e=document.getElementById("form_tube_name").value,n=document.getElementById("form_url_base").value;$.getJSON(n+"peek/"+encodeURIComponent(e)+"/"+t,function(t){t.hasOwnProperty("error")?alert(t.error):($("#job_info_popup_title").html(r(t)),$("#job_info_popup_body").html(o(t)),$("#job_info_popup_footer").html(i(e,t,n)),$("[rel=tooltip]").tooltip(),$("#job_info_popup").modal({}))}).error(function(){alert("An error occurred while trying to peek at the next job.")})}function e(){var t=document.getElementById("form_tube_name").value,e=document.getElementById("form_job_priority").value,i=document.getElementById("form_job_delay").value,r=document.getElementById("form_job_ttr").value,a=document.getElementById("form_job_body").value;""===t&&(t="default",document.getElementById("form_tube_name").value=t),""===e&&(e="65536",document.getElementById("form_job_priority").value=e),""===i&&(i="0",document.getElementById("form_job_delay").value=i),""===r&&(r="120",document.getElementById("form_job_ttr").value=r),""===a&&(a="{}",document.getElementById("form_job_body").value=a);var l=null,h=null;try{if(l=JSON.parse(a),l.constructor==Array)throw"Job Body JSON must be a Hash"}catch(u){h=u}null!==h?alert("Job Body JSON parse error: "+h):(data={},data.tube=t,data.pri=e,data.delay=i,data.ttr=r,data.body=JSON.stringify(l),$("#job_info_popup_title").html(s()),$("#job_info_popup_body").html(o(data)),$("#job_info_popup_footer").html(n()),$("#confirm_add_job_btn").click(function(){$("#add_job_form").submit()}),$("[rel=tooltip]").tooltip(),$("#job_info_popup").modal({}))}function n(){var t="";return t+='<a id="confirm_add_job_btn" href="#" class="btn">Add Job</a>'}function i(t,e,n){var i=e.id;e.pri;var s="";return s+='<a href="'+n+"delete/"+encodeURIComponent(t)+"/"+i+'" class="btn">Delete Job</a>'}function s(){return"<h3>Add new job?</h3>"}function r(t){var e=t.id,n=t.state;return"<h3>Job id: "+e+" ("+n+")</h3>"}function o(t){var e=_.template($("#job_modal_template").text());return e({data:t})}$("#peek_ready_btn").length>0&&$("#peek_ready_btn").click(function(e){e.preventDefault(),t("ready")}),$("#peek_delayed_btn").length>0&&$("#peek_delayed_btn").click(function(e){e.preventDefault(),t("delayed")}),$("#peek_buried_btn").length>0&&$("#peek_buried_btn").click(function(e){e.preventDefault(),t("buried")}),$("#add_job_btn").length>0&&$("#add_job_btn").click(function(t){t.preventDefault(),e()})})}(),function(){$(document).ready(function(){function t(){var t=$("#peek_range_tube_select").val();""===t?$("tr.datum[data-tube]").show():($('tr.datum[data-tube!="'+t+'"]').hide(),$('tr.datum[data-tube="'+t+'"]').show())}$("#peek_range_table").length>0&&($("#peek_range_tube_select").change(function(){t()}),t())})}();