Skip to content

Instantly share code, notes, and snippets.

@adasq
Created December 13, 2016 09:47
Show Gist options
  • Save adasq/57a432e698b26cb306dd4b1c7f3bb352 to your computer and use it in GitHub Desktop.
Save adasq/57a432e698b26cb306dd4b1c7f3bb352 to your computer and use it in GitHub Desktop.
!function(e,t){function n(e){var t=e.length,n=ue.type(e);return!ue.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)))}function i(e){var t=Ce[e]={};return ue.each(e.match(ce)||[],function(e,n){t[n]=!0}),t}function r(e,n,i,r){if(ue.acceptData(e)){var o,a,s=ue.expando,u="string"==typeof n,l=e.nodeType,c=l?ue.cache:e,f=l?e[s]:e[s]&&s;if(f&&c[f]&&(r||c[f].data)||!u||i!==t)return f||(l?e[s]=f=K.pop()||ue.guid++:f=s),c[f]||(c[f]={},l||(c[f].toJSON=ue.noop)),"object"!=typeof n&&"function"!=typeof n||(r?c[f]=ue.extend(c[f],n):c[f].data=ue.extend(c[f].data,n)),o=c[f],r||(o.data||(o.data={}),o=o.data),i!==t&&(o[ue.camelCase(n)]=i),u?(a=o[n],null==a&&(a=o[ue.camelCase(n)])):a=o,a}}function o(e,t,n){if(ue.acceptData(e)){var i,r,o,a=e.nodeType,u=a?ue.cache:e,l=a?e[ue.expando]:ue.expando;if(u[l]){if(t&&(o=n?u[l]:u[l].data)){ue.isArray(t)?t=t.concat(ue.map(t,ue.camelCase)):t in o?t=[t]:(t=ue.camelCase(t),t=t in o?[t]:t.split(" "));for(i=0,r=t.length;i<r;i++)delete o[t[i]];if(!(n?s:ue.isEmptyObject)(o))return}(n||(delete u[l].data,s(u[l])))&&(a?ue.cleanData([e],!0):ue.support.deleteExpando||u!=u.window?delete u[l]:u[l]=null)}}}function a(e,n,i){if(i===t&&1===e.nodeType){var r="data-"+n.replace(Ee,"-$1").toLowerCase();if(i=e.getAttribute(r),"string"==typeof i){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:Ne.test(i)?ue.parseJSON(i):i)}catch(e){}ue.data(e,n,i)}else i=t}return i}function s(e){var t;for(t in e)if(("data"!==t||!ue.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(){return!0}function l(){return!1}function c(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function f(e,t,n){if(t=t||0,ue.isFunction(t))return ue.grep(e,function(e,i){var r=!!t.call(e,i,e);return r===n});if(t.nodeType)return ue.grep(e,function(e){return e===t===n});if("string"==typeof t){var i=ue.grep(e,function(e){return 1===e.nodeType});if(ze.test(t))return ue.filter(t,i,!n);t=ue.filter(t,i)}return ue.grep(e,function(e){return ue.inArray(e,t)>=0===n})}function p(e){var t=Ue.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function d(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function h(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function m(e){var t=rt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function g(e,t){for(var n,i=0;null!=(n=e[i]);i++)ue._data(n,"globalEval",!t||ue._data(t[i],"globalEval"))}function y(e,t){if(1===t.nodeType&&ue.hasData(e)){var n,i,r,o=ue._data(e),a=ue._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(i=0,r=s[n].length;i<r;i++)ue.event.add(t,n,s[n][i])}a.data&&(a.data=ue.extend({},a.data))}}function v(e,t){var n,i,r;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ue.support.noCloneEvent&&t[ue.expando]){r=ue._data(t);for(i in r.events)ue.removeEvent(t,i,r.handle);t.removeAttribute(ue.expando)}"script"===n&&t.text!==e.text?(h(t).text=e.text,m(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ue.support.html5Clone&&e.innerHTML&&!ue.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&tt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function x(e,n){var i,r,o=0,a=typeof e.getElementsByTagName!==Q?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==Q?e.querySelectorAll(n||"*"):t;if(!a)for(a=[],i=e.childNodes||e;null!=(r=i[o]);o++)!n||ue.nodeName(r,n)?a.push(r):ue.merge(a,x(r,n));return n===t||n&&ue.nodeName(e,n)?ue.merge([e],a):a}function b(e){tt.test(e.type)&&(e.defaultChecked=e.checked)}function T(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),i=t,r=Nt.length;r--;)if(t=Nt[r]+n,t in e)return t;return i}function w(e,t){return e=t||e,"none"===ue.css(e,"display")||!ue.contains(e.ownerDocument,e)}function C(e,t){for(var n,i,r,o=[],a=0,s=e.length;a<s;a++)i=e[a],i.style&&(o[a]=ue._data(i,"olddisplay"),n=i.style.display,t?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&w(i)&&(o[a]=ue._data(i,"olddisplay",D(i.nodeName)))):o[a]||(r=w(i),(n&&"none"!==n||!r)&&ue._data(i,"olddisplay",r?n:ue.css(i,"display"))));for(a=0;a<s;a++)i=e[a],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[a]||"":"none"));return e}function N(e,t,n){var i=yt.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function E(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=ue.css(e,n+Ct[o],!0,r)),i?("content"===n&&(a-=ue.css(e,"padding"+Ct[o],!0,r)),"margin"!==n&&(a-=ue.css(e,"border"+Ct[o]+"Width",!0,r))):(a+=ue.css(e,"padding"+Ct[o],!0,r),"padding"!==n&&(a+=ue.css(e,"border"+Ct[o]+"Width",!0,r)));return a}function k(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=ct(e),a=ue.support.boxSizing&&"border-box"===ue.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(r=ft(e,t,o),(r<0||null==r)&&(r=e.style[t]),vt.test(r))return r;i=a&&(ue.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+E(e,t,n||(a?"border":"content"),i,o)+"px"}function D(e){var t=V,n=bt[e];return n||(n=S(e,t),"none"!==n&&n||(lt=(lt||ue("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(lt[0].contentWindow||lt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=S(e,t),lt.detach()),bt[e]=n),n}function S(e,t){var n=ue(t.createElement(e)).appendTo(t.body),i=ue.css(n[0],"display");return n.remove(),i}function A(e,t,n,i){var r;if(ue.isArray(t))ue.each(t,function(t,r){n||kt.test(e)?i(e,r):A(e+"["+("object"==typeof r?t:"")+"]",r,n,i)});else if(n||"object"!==ue.type(t))i(e,t);else for(r in t)A(e+"["+r+"]",t[r],n,i)}function j(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(ce)||[];if(ue.isFunction(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function L(e,t,n,i){function r(s){var u;return o[s]=!0,ue.each(e[s]||[],function(e,s){var l=s(t,n,i);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),r(l),!1)}),u}var o={},a=e===zt;return r(t.dataTypes[0])||!o["*"]&&r("*")}function M(e,n){var i,r,o=ue.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((o[r]?e:i||(i={}))[r]=n[r]);return i&&ue.extend(!0,e,i),e}function H(e,n,i){var r,o,a,s,u=e.contents,l=e.dataTypes,c=e.responseFields;for(s in c)s in i&&(n[c[s]]=i[s]);for(;"*"===l[0];)l.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in u)if(u[s]&&u[s].test(o)){l.unshift(s);break}if(l[0]in i)a=l[0];else{for(s in i){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}r||(r=s)}a=a||r}if(a)return a!==l[0]&&l.unshift(a),i[a]}function B(e,t){var n,i,r,o,a={},s=0,u=e.dataTypes.slice(),l=u[0];if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u[1])for(r in e.converters)a[r.toLowerCase()]=e.converters[r];for(;i=u[++s];)if("*"!==i){if("*"!==l&&l!==i){if(r=a[l+" "+i]||a["* "+i],!r)for(n in a)if(o=n.split(" "),o[1]===i&&(r=a[l+" "+o[0]]||a["* "+o[0]])){r===!0?r=a[n]:a[n]!==!0&&(i=o[0],u.splice(s--,0,i));break}if(r!==!0)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+i}}}l=i}return{state:"success",data:t}}function F(){try{return new e.XMLHttpRequest}catch(e){}}function W(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function O(){return setTimeout(function(){Gt=t}),Gt=ue.now()}function $(e,t){ue.each(t,function(t,n){for(var i=(rn[t]||[]).concat(rn["*"]),r=0,o=i.length;r<o;r++)if(i[r].call(e,t,n))return})}function _(e,t,n){var i,r,o=0,a=nn.length,s=ue.Deferred().always(function(){delete u.elem}),u=function(){if(r)return!1;for(var t=Gt||O(),n=Math.max(0,l.startTime+l.duration-t),i=n/l.duration||0,o=1-i,a=0,u=l.tweens.length;a<u;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),o<1&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:ue.extend({},t),opts:ue.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Gt||O(),duration:n.duration,tweens:[],createTween:function(t,n){var i=ue.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(i),i},stop:function(t){var n=0,i=t?l.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(q(c,l.opts.specialEasing);o<a;o++)if(i=nn[o].call(l,e,c,l.opts))return i;return $(l,c),ue.isFunction(l.opts.start)&&l.opts.start.call(e,l),ue.fx.timer(ue.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function q(e,t){var n,i,r,o,a;for(r in e)if(i=ue.camelCase(r),o=t[i],n=e[r],ue.isArray(n)&&(o=n[1],n=e[r]=n[0]),r!==i&&(e[i]=n,delete e[r]),a=ue.cssHooks[i],a&&"expand"in a){n=a.expand(n),delete e[i];for(r in n)r in e||(e[r]=n[r],t[r]=o)}else t[i]=o}function P(e,t,n){var i,r,o,a,s,u,l,c,f,p=this,d=e.style,h={},m=[],g=e.nodeType&&w(e);n.queue||(c=ue._queueHooks(e,"fx"),null==c.unqueued&&(c.unqueued=0,f=c.empty.fire,c.empty.fire=function(){c.unqueued||f()}),c.unqueued++,p.always(function(){p.always(function(){c.unqueued--,ue.queue(e,"fx").length||c.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===ue.css(e,"display")&&"none"===ue.css(e,"float")&&(ue.support.inlineBlockNeedsLayout&&"inline"!==D(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",ue.support.shrinkWrapBlocks||p.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in t)if(a=t[r],Kt.exec(a)){if(delete t[r],u=u||"toggle"===a,a===(g?"hide":"show"))continue;m.push(r)}if(o=m.length){s=ue._data(e,"fxshow")||ue._data(e,"fxshow",{}),"hidden"in s&&(g=s.hidden),u&&(s.hidden=!g),g?ue(e).show():p.done(function(){ue(e).hide()}),p.done(function(){var t;ue._removeData(e,"fxshow");for(t in h)ue.style(e,t,h[t])});for(r=0;r<o;r++)i=m[r],l=p.createTween(i,g?s[i]:0),h[i]=s[i]||ue.style(e,i),i in s||(s[i]=l.start,g&&(l.end=l.start,l.start="width"===i||"height"===i?1:0))}}function R(e,t,n,i,r){return new R.prototype.init(e,t,n,i,r)}function z(e,t){var n,i={height:e},r=0;for(t=t?1:0;r<4;r+=2-t)n=Ct[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function I(e){return ue.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var X,U,Q=typeof t,V=e.document,Y=e.location,J=e.jQuery,G=e.$,Z={},K=[],ee="1.9.1",te=K.concat,ne=K.push,ie=K.slice,re=K.indexOf,oe=Z.toString,ae=Z.hasOwnProperty,se=ee.trim,ue=function(e,t){return new ue.fn.init(e,t,U)},le=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ce=/\S+/g,fe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,pe=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,de=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,he=/^[\],:{}\s]*$/,me=/(?:^|:|,)(?:\s*\[)+/g,ge=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,ye=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,ve=/^-ms-/,xe=/-([\da-z])/gi,be=function(e,t){return t.toUpperCase()},Te=function(e){(V.addEventListener||"load"===e.type||"complete"===V.readyState)&&(we(),ue.ready())},we=function(){V.addEventListener?(V.removeEventListener("DOMContentLoaded",Te,!1),e.removeEventListener("load",Te,!1)):(V.detachEvent("onreadystatechange",Te),e.detachEvent("onload",Te))};ue.fn=ue.prototype={jquery:ee,constructor:ue,init:function(e,n,i){var r,o;if(!e)return this;if("string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:pe.exec(e),!r||!r[1]&&n)return!n||n.jquery?(n||i).find(e):this.constructor(n).find(e);if(r[1]){if(n=n instanceof ue?n[0]:n,ue.merge(this,ue.parseHTML(r[1],n&&n.nodeType?n.ownerDocument||n:V,!0)),de.test(r[1])&&ue.isPlainObject(n))for(r in n)ue.isFunction(this[r])?this[r](n[r]):this.attr(r,n[r]);return this}if(o=V.getElementById(r[2]),o&&o.parentNode){if(o.id!==r[2])return i.find(e);this.length=1,this[0]=o}return this.context=V,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ue.isFunction(e)?i.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),ue.makeArray(e,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return ie.call(this)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e){var t=ue.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return ue.each(this,e,t)},ready:function(e){return ue.ready.promise().done(e),this},slice:function(){return this.pushStack(ie.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},map:function(e){return this.pushStack(ue.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:ne,sort:[].sort,splice:[].splice},ue.fn.init.prototype=ue.fn,ue.extend=ue.fn.extend=function(){var e,n,i,r,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"object"==typeof s||ue.isFunction(s)||(s={}),l===u&&(s=this,--u);u<l;u++)if(null!=(o=arguments[u]))for(r in o)e=s[r],i=o[r],s!==i&&(c&&i&&(ue.isPlainObject(i)||(n=ue.isArray(i)))?(n?(n=!1,a=e&&ue.isArray(e)?e:[]):a=e&&ue.isPlainObject(e)?e:{},s[r]=ue.extend(c,a,i)):i!==t&&(s[r]=i));return s},ue.extend({noConflict:function(t){return e.$===ue&&(e.$=G),t&&e.jQuery===ue&&(e.jQuery=J),ue},isReady:!1,readyWait:1,holdReady:function(e){e?ue.readyWait++:ue.ready(!0)},ready:function(e){if(e===!0?!--ue.readyWait:!ue.isReady){if(!V.body)return setTimeout(ue.ready);ue.isReady=!0,e!==!0&&--ue.readyWait>0||(X.resolveWith(V,[ue]),ue.fn.trigger&&ue(V).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===ue.type(e)},isArray:Array.isArray||function(e){return"array"===ue.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):"object"==typeof e||"function"==typeof e?Z[oe.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==ue.type(e)||e.nodeType||ue.isWindow(e))return!1;try{if(e.constructor&&!ae.call(e,"constructor")&&!ae.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}var n;for(n in e);return n===t||ae.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||V;var i=de.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=ue.buildFragment([e],t,r),r&&ue(r).remove(),ue.merge([],i.childNodes))},parseJSON:function(t){return e.JSON&&e.JSON.parse?e.JSON.parse(t):null===t?t:"string"==typeof t&&(t=ue.trim(t),t&&he.test(t.replace(ge,"@").replace(ye,"]").replace(me,"")))?new Function("return "+t)():void ue.error("Invalid JSON: "+t)},parseXML:function(n){var i,r;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(r=new DOMParser,i=r.parseFromString(n,"text/xml")):(i=new ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(n))}catch(e){i=t}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||ue.error("Invalid XML: "+n),i},noop:function(){},globalEval:function(t){t&&ue.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ve,"ms-").replace(xe,be)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var r,o=0,a=e.length,s=n(e);if(i){if(s)for(;o<a&&(r=t.apply(e[o],i),r!==!1);o++);else for(o in e)if(r=t.apply(e[o],i),r===!1)break}else if(s)for(;o<a&&(r=t.call(e[o],o,e[o]),r!==!1);o++);else for(o in e)if(r=t.call(e[o],o,e[o]),r===!1)break;return e},trim:se&&!se.call("\ufeff ")?function(e){return null==e?"":se.call(e)}:function(e){return null==e?"":(e+"").replace(fe,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?ue.merge(i,"string"==typeof e?[e]:e):ne.call(i,e)),i},inArray:function(e,t,n){var i;if(t){if(re)return re.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var i=n.length,r=e.length,o=0;if("number"==typeof i)for(;o<i;o++)e[r++]=n[o];else for(;n[o]!==t;)e[r++]=n[o++];return e.length=r,e},grep:function(e,t,n){var i,r=[],o=0,a=e.length;for(n=!!n;o<a;o++)i=!!t(e[o],o),n!==i&&r.push(e[o]);return r},map:function(e,t,i){var r,o=0,a=e.length,s=n(e),u=[];if(s)for(;o<a;o++)r=t(e[o],o,i),null!=r&&(u[u.length]=r);else for(o in e)r=t(e[o],o,i),null!=r&&(u[u.length]=r);return te.apply([],u)},guid:1,proxy:function(e,n){var i,r,o;return"string"==typeof n&&(o=e[n],n=e,e=o),ue.isFunction(e)?(i=ie.call(arguments,2),r=function(){return e.apply(n||this,i.concat(ie.call(arguments)))},r.guid=e.guid=e.guid||ue.guid++,r):t},access:function(e,n,i,r,o,a,s){var u=0,l=e.length,c=null==i;if("object"===ue.type(i)){o=!0;for(u in i)ue.access(e,n,u,i[u],!0,a,s)}else if(r!==t&&(o=!0,ue.isFunction(r)||(s=!0),c&&(s?(n.call(e,r),n=null):(c=n,n=function(e,t,n){return c.call(ue(e),n)})),n))for(;u<l;u++)n(e[u],i,s?r:r.call(e[u],u,n(e[u],i)));return o?e:c?n.call(e):l?n(e[0],i):a},now:function(){return(new Date).getTime()}}),ue.ready.promise=function(t){if(!X)if(X=ue.Deferred(),"complete"===V.readyState)setTimeout(ue.ready);else if(V.addEventListener)V.addEventListener("DOMContentLoaded",Te,!1),e.addEventListener("load",Te,!1);else{V.attachEvent("onreadystatechange",Te),e.attachEvent("onload",Te);var n=!1;try{n=null==e.frameElement&&V.documentElement}catch(e){}n&&n.doScroll&&!function e(){if(!ue.isReady){try{n.doScroll("left")}catch(t){return setTimeout(e,50)}we(),ue.ready()}}()}return X.promise(t)},ue.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Z["[object "+t+"]"]=t.toLowerCase()}),U=ue(V);var Ce={};ue.Callbacks=function(e){e="string"==typeof e?Ce[e]||i(e):ue.extend({},e);var n,r,o,a,s,u,l=[],c=!e.once&&[],f=function(t){for(r=e.memory&&t,o=!0,s=u||0,u=0,a=l.length,n=!0;l&&s<a;s++)if(l[s].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(c?c.length&&f(c.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;!function t(n){ue.each(n,function(n,i){var r=ue.type(i);"function"===r?e.unique&&p.has(i)||l.push(i):i&&i.length&&"string"!==r&&t(i)})}(arguments),n?a=l.length:r&&(u=t,f(r))}return this},remove:function(){return l&&ue.each(arguments,function(e,t){for(var i;(i=ue.inArray(t,l,i))>-1;)l.splice(i,1),n&&(i<=a&&a--,i<=s&&s--)}),this},has:function(e){return e?ue.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],this},disable:function(){return l=c=r=t,this},disabled:function(){return!l},lock:function(){return c=t,r||p.disable(),this},locked:function(){return!c},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!l||o&&!c||(n?c.push(t):f(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!o}};return p},ue.extend({Deferred:function(e){var t=[["resolve","done",ue.Callbacks("once memory"),"resolved"],["reject","fail",ue.Callbacks("once memory"),"rejected"],["notify","progress",ue.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ue.Deferred(function(n){ue.each(t,function(t,o){var a=o[0],s=ue.isFunction(e[t])&&e[t];r[o[1]](function(){var e=s&&s.apply(this,arguments);e&&ue.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===i?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ue.extend(e,i):i}},r={};return i.pipe=i.then,ue.each(t,function(e,o){var a=o[2],s=o[3];i[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=a.fireWith}),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,r=0,o=ie.call(arguments),a=o.length,s=1!==a||e&&ue.isFunction(e.promise)?a:0,u=1===s?e:ue.Deferred(),l=function(e,n,i){return function(r){n[e]=this,i[e]=arguments.length>1?ie.call(arguments):r,i===t?u.notifyWith(n,i):--s||u.resolveWith(n,i)}};if(a>1)for(t=new Array(a),n=new Array(a),i=new Array(a);r<a;r++)o[r]&&ue.isFunction(o[r].promise)?o[r].promise().done(l(r,i,o)).fail(u.reject).progress(l(r,n,t)):--s;return s||u.resolveWith(i,o),u.promise()}}),ue.support=function(){var t,n,i,r,o,a,s,u,l,c,f=V.createElement("div");if(f.setAttribute("className","t"),f.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=f.getElementsByTagName("*"),i=f.getElementsByTagName("a")[0],!n||!i||!n.length)return{};o=V.createElement("select"),s=o.appendChild(V.createElement("option")),r=f.getElementsByTagName("input")[0],i.style.cssText="top:1px;float:left;opacity:.5",t={getSetAttribute:"t"!==f.className,leadingWhitespace:3===f.firstChild.nodeType,tbody:!f.getElementsByTagName("tbody").length,htmlSerialize:!!f.getElementsByTagName("link").length,style:/top/.test(i.getAttribute("style")),hrefNormalized:"/a"===i.getAttribute("href"),opacity:/^0.5/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:!!r.value,optSelected:s.selected,enctype:!!V.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==V.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===V.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},r.checked=!0,t.noCloneChecked=r.cloneNode(!0).checked,o.disabled=!0,t.optDisabled=!s.disabled;try{delete f.test}catch(e){t.deleteExpando=!1}r=V.createElement("input"),r.setAttribute("value",""),t.input=""===r.getAttribute("value"),r.value="t",r.setAttribute("type","radio"),t.radioValue="t"===r.value,r.setAttribute("checked","t"),r.setAttribute("name","t"),a=V.createDocumentFragment(),a.appendChild(r),t.appendChecked=r.checked,t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,f.attachEvent&&(f.attachEvent("onclick",function(){t.noCloneEvent=!1}),f.cloneNode(!0).click());for(c in{submit:!0,change:!0,focusin:!0})f.setAttribute(u="on"+c,"t"),t[c+"Bubbles"]=u in e||f.attributes[u].expando===!1;return f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===f.style.backgroundClip,ue(function(){var n,i,r,o="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",a=V.getElementsByTagName("body")[0];a&&(n=V.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(n).appendChild(f),f.innerHTML="<table><tr><td></td><td>t</td></tr></table>",r=f.getElementsByTagName("td"),r[0].style.cssText="padding:0;margin:0;border:0;display:none",l=0===r[0].offsetHeight,r[0].style.display="",r[1].style.display="none",t.reliableHiddenOffsets=l&&0===r[0].offsetHeight,f.innerHTML="",f.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%;",t.boxSizing=4===f.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==a.offsetTop,e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(f,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(f,null)||{width:"4px"}).width,i=f.appendChild(V.createElement("div")),i.style.cssText=f.style.cssText=o,i.style.marginRight=i.style.width="0",f.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(i,null)||{}).marginRight)),typeof f.style.zoom!==Q&&(f.innerHTML="",f.style.cssText=o+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===f.offsetWidth,f.style.display="block",f.innerHTML="<div></div>",f.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==f.offsetWidth,t.inlineBlockNeedsLayout&&(a.style.zoom=1)),a.removeChild(n),n=f=r=i=null)}),n=o=a=s=i=r=null,t}();var Ne=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,Ee=/([A-Z])/g;ue.extend({cache:{},expando:"jQuery"+(ee+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?ue.cache[e[ue.expando]]:e[ue.expando],!!e&&!s(e)},data:function(e,t,n){return r(e,t,n)},removeData:function(e,t){return o(e,t)},_data:function(e,t,n){return r(e,t,n,!0)},_removeData:function(e,t){return o(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&ue.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),ue.fn.extend({data:function(e,n){var i,r,o=this[0],s=0,u=null;if(e===t){if(this.length&&(u=ue.data(o),1===o.nodeType&&!ue._data(o,"parsedAttrs"))){for(i=o.attributes;s<i.length;s++)r=i[s].name,r.indexOf("data-")||(r=ue.camelCase(r.slice(5)),a(o,r,u[r]));ue._data(o,"parsedAttrs",!0)}return u}return"object"==typeof e?this.each(function(){ue.data(this,e)}):ue.access(this,function(n){return n===t?o?a(o,e,ue.data(o,e)):null:void this.each(function(){ue.data(this,e,n)})},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){ue.removeData(this,e)})}}),ue.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=ue._data(e,t),n&&(!i||ue.isArray(n)?i=ue._data(e,t,ue.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=ue.queue(e,t),i=n.length,r=n.shift(),o=ue._queueHooks(e,t),a=function(){ue.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),o.cur=r,r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ue._data(e,n)||ue._data(e,n,{empty:ue.Callbacks("once memory").add(function(){ue._removeData(e,t+"queue"),ue._removeData(e,n)})})}}),ue.fn.extend({queue:function(e,n){var i=2;return"string"!=typeof e&&(n=e,e="fx",i--),arguments.length<i?ue.queue(this[0],e):n===t?this:this.each(function(){var t=ue.queue(this,e,n);ue._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&ue.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ue.dequeue(this,e)})},delay:function(e,t){return e=ue.fx?ue.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var i=setTimeout(t,e);n.stop=function(){clearTimeout(i)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var i,r=1,o=ue.Deferred(),a=this,s=this.length,u=function(){--r||o.resolveWith(a,[a])};for("string"!=typeof e&&(n=e,e=t),e=e||"fx";s--;)i=ue._data(a[s],e+"queueHooks"),i&&i.empty&&(r++,i.empty.add(u));return u(),o.promise(n)}});var ke,De,Se=/[\t\r\n]/g,Ae=/\r/g,je=/^(?:input|select|textarea|button|object)$/i,Le=/^(?:a|area)$/i,Me=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,He=/^(?:checked|selected)$/i,Be=ue.support.getSetAttribute,Fe=ue.support.input;ue.fn.extend({attr:function(e,t){return ue.access(this,ue.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ue.removeAttr(this,e)})},prop:function(e,t){return ue.access(this,ue.prop,e,t,arguments.length>1)},removeProp:function(e){return e=ue.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(e){}})},addClass:function(e){var t,n,i,r,o,a=0,s=this.length,u="string"==typeof e&&e;if(ue.isFunction(e))return this.each(function(t){ue(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(ce)||[];a<s;a++)if(n=this[a],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Se," "):" ")){for(o=0;r=t[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");n.className=ue.trim(i)}return this},removeClass:function(e){var t,n,i,r,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(ue.isFunction(e))return this.each(function(t){ue(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(ce)||[];a<s;a++)if(n=this[a],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Se," "):"")){for(o=0;r=t[o++];)for(;i.indexOf(" "+r+" ")>=0;)i=i.replace(" "+r+" "," ");n.className=e?ue.trim(i):""}return this},toggleClass:function(e,t){var n=typeof e,i="boolean"==typeof t;return ue.isFunction(e)?this.each(function(n){ue(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var r,o=0,a=ue(this),s=t,u=e.match(ce)||[];r=u[o++];)s=i?s:!a.hasClass(r),a[s?"addClass":"removeClass"](r);else n!==Q&&"boolean"!==n||(this.className&&ue._data(this,"__className__",this.className),this.className=this.className||e===!1?"":ue._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;n<i;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Se," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,i,r,o=this[0];{if(arguments.length)return r=ue.isFunction(e),this.each(function(n){var o,a=ue(this);1===this.nodeType&&(o=r?e.call(this,n,a.val()):e,null==o?o="":"number"==typeof o?o+="":ue.isArray(o)&&(o=ue.map(o,function(e){return null==e?"":e+""})),i=ue.valHooks[this.type]||ue.valHooks[this.nodeName.toLowerCase()],i&&"set"in i&&i.set(this,o,"value")!==t||(this.value=o))});if(o)return i=ue.valHooks[o.type]||ue.valHooks[o.nodeName.toLowerCase()],i&&"get"in i&&(n=i.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(Ae,""):null==n?"":n)}}}),ue.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||r<0,a=o?null:[],s=o?r+1:i.length,u=r<0?s:o?r:0;u<s;u++)if(n=i[u],(n.selected||u===r)&&(ue.support.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ue.nodeName(n.parentNode,"optgroup"))){if(t=ue(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n=ue.makeArray(t);return ue(e).find("option").each(function(){this.selected=ue.inArray(ue(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attr:function(e,n,i){var r,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===Q?ue.prop(e,n,i):(o=1!==s||!ue.isXMLDoc(e),o&&(n=n.toLowerCase(),r=ue.attrHooks[n]||(Me.test(n)?De:ke)),i===t?r&&o&&"get"in r&&null!==(a=r.get(e,n))?a:(typeof e.getAttribute!==Q&&(a=e.getAttribute(n)),null==a?t:a):null!==i?r&&o&&"set"in r&&(a=r.set(e,i,n))!==t?a:(e.setAttribute(n,i+""),i):void ue.removeAttr(e,n))},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match(ce);if(o&&1===e.nodeType)for(;n=o[r++];)i=ue.propFix[n]||n,Me.test(n)?!Be&&He.test(n)?e[ue.camelCase("default-"+n)]=e[i]=!1:e[i]=!1:ue.attr(e,n,""),e.removeAttribute(Be?n:i)},attrHooks:{type:{set:function(e,t){if(!ue.support.radioValue&&"radio"===t&&ue.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,i){var r,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!ue.isXMLDoc(e),a&&(n=ue.propFix[n]||n,o=ue.propHooks[n]),i!==t?o&&"set"in o&&(r=o.set(e,i,n))!==t?r:e[n]=i:o&&"get"in o&&null!==(r=o.get(e,n))?r:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):je.test(e.nodeName)||Le.test(e.nodeName)&&e.href?0:t}}}}),De={get:function(e,n){var i=ue.prop(e,n),r="boolean"==typeof i&&e.getAttribute(n),o="boolean"==typeof i?Fe&&Be?null!=r:He.test(n)?e[ue.camelCase("default-"+n)]:!!r:e.getAttributeNode(n);return o&&o.value!==!1?n.toLowerCase():t;
},set:function(e,t,n){return t===!1?ue.removeAttr(e,n):Fe&&Be||!He.test(n)?e.setAttribute(!Be&&ue.propFix[n]||n,n):e[ue.camelCase("default-"+n)]=e[n]=!0,n}},Fe&&Be||(ue.attrHooks.value={get:function(e,n){var i=e.getAttributeNode(n);return ue.nodeName(e,"input")?e.defaultValue:i&&i.specified?i.value:t},set:function(e,t,n){return ue.nodeName(e,"input")?void(e.defaultValue=t):ke&&ke.set(e,t,n)}}),Be||(ke=ue.valHooks.button={get:function(e,n){var i=e.getAttributeNode(n);return i&&("id"===n||"name"===n||"coords"===n?""!==i.value:i.specified)?i.value:t},set:function(e,n,i){var r=e.getAttributeNode(i);return r||e.setAttributeNode(r=e.ownerDocument.createAttribute(i)),r.value=n+="","value"===i||n===e.getAttribute(i)?n:t}},ue.attrHooks.contenteditable={get:ke.get,set:function(e,t,n){ke.set(e,""!==t&&t,n)}},ue.each(["width","height"],function(e,t){ue.attrHooks[t]=ue.extend(ue.attrHooks[t],{set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}})})),ue.support.hrefNormalized||(ue.each(["href","src","width","height"],function(e,n){ue.attrHooks[n]=ue.extend(ue.attrHooks[n],{get:function(e){var i=e.getAttribute(n,2);return null==i?t:i}})}),ue.each(["href","src"],function(e,t){ue.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),ue.support.style||(ue.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),ue.support.optSelected||(ue.propHooks.selected=ue.extend(ue.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),ue.support.enctype||(ue.propFix.enctype="encoding"),ue.support.checkOn||ue.each(["radio","checkbox"],function(){ue.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),ue.each(["radio","checkbox"],function(){ue.valHooks[this]=ue.extend(ue.valHooks[this],{set:function(e,t){if(ue.isArray(t))return e.checked=ue.inArray(ue(e).val(),t)>=0}})});var We=/^(?:input|select|textarea)$/i,Oe=/^key/,$e=/^(?:mouse|contextmenu)|click/,_e=/^(?:focusinfocus|focusoutblur)$/,qe=/^([^.]*)(?:\.(.+)|)$/;ue.event={global:{},add:function(e,n,i,r,o){var a,s,u,l,c,f,p,d,h,m,g,y=ue._data(e);if(y){for(i.handler&&(l=i,i=l.handler,o=l.selector),i.guid||(i.guid=ue.guid++),(s=y.events)||(s=y.events={}),(f=y.handle)||(f=y.handle=function(e){return typeof ue===Q||e&&ue.event.triggered===e.type?t:ue.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(ce)||[""],u=n.length;u--;)a=qe.exec(n[u])||[],h=g=a[1],m=(a[2]||"").split(".").sort(),c=ue.event.special[h]||{},h=(o?c.delegateType:c.bindType)||h,c=ue.event.special[h]||{},p=ue.extend({type:h,origType:g,data:r,handler:i,guid:i.guid,selector:o,needsContext:o&&ue.expr.match.needsContext.test(o),namespace:m.join(".")},l),(d=s[h])||(d=s[h]=[],d.delegateCount=0,c.setup&&c.setup.call(e,r,m,f)!==!1||(e.addEventListener?e.addEventListener(h,f,!1):e.attachEvent&&e.attachEvent("on"+h,f))),c.add&&(c.add.call(e,p),p.handler.guid||(p.handler.guid=i.guid)),o?d.splice(d.delegateCount++,0,p):d.push(p),ue.event.global[h]=!0;e=null}},remove:function(e,t,n,i,r){var o,a,s,u,l,c,f,p,d,h,m,g=ue.hasData(e)&&ue._data(e);if(g&&(c=g.events)){for(t=(t||"").match(ce)||[""],l=t.length;l--;)if(s=qe.exec(t[l])||[],d=m=s[1],h=(s[2]||"").split(".").sort(),d){for(f=ue.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,p=c[d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=p.length;o--;)a=p[o],!r&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(p.splice(o,1),a.selector&&p.delegateCount--,f.remove&&f.remove.call(e,a));u&&!p.length&&(f.teardown&&f.teardown.call(e,h,g.handle)!==!1||ue.removeEvent(e,d,g.handle),delete c[d])}else for(d in c)ue.event.remove(e,d+t[l],n,i,!0);ue.isEmptyObject(c)&&(delete g.handle,ue._removeData(e,"events"))}},trigger:function(n,i,r,o){var a,s,u,l,c,f,p,d=[r||V],h=ae.call(n,"type")?n.type:n,m=ae.call(n,"namespace")?n.namespace.split("."):[];if(u=f=r=r||V,3!==r.nodeType&&8!==r.nodeType&&!_e.test(h+ue.event.triggered)&&(h.indexOf(".")>=0&&(m=h.split("."),h=m.shift(),m.sort()),s=h.indexOf(":")<0&&"on"+h,n=n[ue.expando]?n:new ue.Event(h,"object"==typeof n&&n),n.isTrigger=!0,n.namespace=m.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=r),i=null==i?[n]:ue.makeArray(i,[n]),c=ue.event.special[h]||{},o||!c.trigger||c.trigger.apply(r,i)!==!1)){if(!o&&!c.noBubble&&!ue.isWindow(r)){for(l=c.delegateType||h,_e.test(l+h)||(u=u.parentNode);u;u=u.parentNode)d.push(u),f=u;f===(r.ownerDocument||V)&&d.push(f.defaultView||f.parentWindow||e)}for(p=0;(u=d[p++])&&!n.isPropagationStopped();)n.type=p>1?l:c.bindType||h,a=(ue._data(u,"events")||{})[n.type]&&ue._data(u,"handle"),a&&a.apply(u,i),a=s&&u[s],a&&ue.acceptData(u)&&a.apply&&a.apply(u,i)===!1&&n.preventDefault();if(n.type=h,!o&&!n.isDefaultPrevented()&&(!c._default||c._default.apply(r.ownerDocument,i)===!1)&&("click"!==h||!ue.nodeName(r,"a"))&&ue.acceptData(r)&&s&&r[h]&&!ue.isWindow(r)){f=r[s],f&&(r[s]=null),ue.event.triggered=h;try{r[h]()}catch(e){}ue.event.triggered=t,f&&(r[s]=f)}return n.result}},dispatch:function(e){e=ue.event.fix(e);var n,i,r,o,a,s=[],u=ie.call(arguments),l=(ue._data(this,"events")||{})[e.type]||[],c=ue.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){for(s=ue.event.handlers.call(this,e,l),n=0;(o=s[n++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,a=0;(r=o.handlers[a++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(r.namespace)||(e.handleObj=r,e.data=r.data,i=((ue.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,u),i!==t&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var i,r,o,a,s=[],u=n.delegateCount,l=e.target;if(u&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(o=[],a=0;a<u;a++)r=n[a],i=r.selector+" ",o[i]===t&&(o[i]=r.needsContext?ue(i,this).index(l)>=0:ue.find(i,this,null,[l]).length),o[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return u<n.length&&s.push({elem:this,handlers:n.slice(u)}),s},fix:function(e){if(e[ue.expando])return e;var t,n,i,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=$e.test(r)?this.mouseHooks:Oe.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new ue.Event(o),t=i.length;t--;)n=i[t],e[n]=o[n];return e.target||(e.target=o.srcElement||V),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var i,r,o,a=n.button,s=n.fromElement;return null==e.pageX&&null!=n.clientX&&(r=e.target.ownerDocument||V,o=r.documentElement,i=r.body,e.pageX=n.clientX+(o&&o.scrollLeft||i&&i.scrollLeft||0)-(o&&o.clientLeft||i&&i.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||i&&i.scrollTop||0)-(o&&o.clientTop||i&&i.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?n.toElement:s),e.which||a===t||(e.which=1&a?1:2&a?3:4&a?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){if(ue.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1}},focus:{trigger:function(){if(this!==V.activeElement&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===V.activeElement&&this.blur)return this.blur(),!1},delegateType:"focusout"},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,i){var r=ue.extend(new ue.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?ue.event.trigger(r,null,t):ue.event.dispatch.call(t,r),r.isDefaultPrevented()&&n.preventDefault()}},ue.removeEvent=V.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var i="on"+t;e.detachEvent&&(typeof e[i]===Q&&(e[i]=null),e.detachEvent(i,n))},ue.Event=function(e,t){return this instanceof ue.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?u:l):this.type=e,t&&ue.extend(this,t),this.timeStamp=e&&e.timeStamp||ue.now(),void(this[ue.expando]=!0)):new ue.Event(e,t)},ue.Event.prototype={isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=u,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=u,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u,this.stopPropagation()}},ue.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){ue.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,o=e.handleObj;return r&&(r===i||ue.contains(i,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),ue.support.submitBubbles||(ue.event.special.submit={setup:function(){return!ue.nodeName(this,"form")&&void ue.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,i=ue.nodeName(n,"input")||ue.nodeName(n,"button")?n.form:t;i&&!ue._data(i,"submitBubbles")&&(ue.event.add(i,"submit._submit",function(e){e._submit_bubble=!0}),ue._data(i,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&ue.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return!ue.nodeName(this,"form")&&void ue.event.remove(this,"._submit")}}),ue.support.changeBubbles||(ue.event.special.change={setup:function(){return We.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(ue.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),ue.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),ue.event.simulate("change",this,e,!0)})),!1):void ue.event.add(this,"beforeactivate._change",function(e){var t=e.target;We.test(t.nodeName)&&!ue._data(t,"changeBubbles")&&(ue.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||ue.event.simulate("change",this.parentNode,e,!0)}),ue._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return ue.event.remove(this,"._change"),!We.test(this.nodeName)}}),ue.support.focusinBubbles||ue.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,i=function(e){ue.event.simulate(t,e.target,ue.event.fix(e),!0)};ue.event.special[t]={setup:function(){0===n++&&V.addEventListener(e,i,!0)},teardown:function(){0===--n&&V.removeEventListener(e,i,!0)}}}),ue.fn.extend({on:function(e,n,i,r,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=t);for(a in e)this.on(a,n,i,e[a],o);return this}if(null==i&&null==r?(r=n,i=n=t):null==r&&("string"==typeof n?(r=i,i=t):(r=i,i=n,n=t)),r===!1)r=l;else if(!r)return this;return 1===o&&(s=r,r=function(e){return ue().off(e),s.apply(this,arguments)},r.guid=s.guid||(s.guid=ue.guid++)),this.each(function(){ue.event.add(this,e,r,i,n)})},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,n,i){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ue(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return n!==!1&&"function"!=typeof n||(i=n,n=t),i===!1&&(i=l),this.each(function(){ue.event.remove(this,e,i,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){ue.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ue.event.trigger(e,t,n,!0)}}),function(e,t){function n(e){return he.test(e+"")}function i(){var e,t=[];return e=function(n,i){return t.push(n+=" ")>N.cacheLength&&delete e[t.shift()],e[n]=i}}function r(e){return e[_]=!0,e}function o(e){var t=L.createElement("div");try{return e(t)}catch(e){return!1}finally{t=null}}function a(e,t,n,i){var r,o,a,s,u,l,c,d,h,m;if((t?t.ownerDocument||t:q)!==L&&j(t),t=t||L,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(!H&&!i){if(r=me.exec(e))if(a=r[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&O(t,o)&&o.id===a)return n.push(o),n}else{if(r[2])return G.apply(n,Z.call(t.getElementsByTagName(e),0)),n;if((a=r[3])&&P.getByClassName&&t.getElementsByClassName)return G.apply(n,Z.call(t.getElementsByClassName(a),0)),n}if(P.qsa&&!B.test(e)){if(c=!0,d=_,h=t,m=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(l=f(e),(c=t.getAttribute("id"))?d=c.replace(ve,"\\$&"):t.setAttribute("id",d),d="[id='"+d+"'] ",u=l.length;u--;)l[u]=d+p(l[u]);h=de.test(e)&&t.parentNode||t,m=l.join(",")}if(m)try{return G.apply(n,Z.call(h.querySelectorAll(m),0)),n}catch(e){}finally{c||t.removeAttribute("id")}}}return b(e.replace(ae,"$1"),t,n,i)}function s(e,t){var n=t&&e,i=n&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function u(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return r(function(t){return t=+t,r(function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function f(e,t){var n,i,r,o,s,u,l,c=X[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=N.preFilter;s;){n&&!(i=se.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(r=[])),n=!1,(i=le.exec(s))&&(n=i.shift(),r.push({value:n,type:i[0].replace(ae," ")}),s=s.slice(n.length));for(o in N.filter)!(i=pe[o].exec(s))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?a.error(e):X(e,u).slice(0)}function p(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function d(e,t,n){var i=t.dir,r=n&&"parentNode"===i,o=z++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,o)}:function(t,n,a){var s,u,l,c=R+" "+o;if(a){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,a))return!0}else for(;t=t[i];)if(1===t.nodeType||r)if(l=t[_]||(t[_]={}),(u=l[i])&&u[0]===c){if((s=u[1])===!0||s===C)return s===!0}else if(u=l[i]=[c],u[1]=e(t,n,a)||C,u[1]===!0)return!0}}function h(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function m(e,t,n,i,r){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),l&&t.push(s)));return a}function g(e,t,n,i,o,a){return i&&!i[_]&&(i=g(i)),o&&!o[_]&&(o=g(o,a)),r(function(r,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=r||x(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?g:m(g,p,e,s,u),v=n?o||(r?e:h||i)?[]:a:y;if(n&&n(y,v,s,u),i)for(l=m(v,d),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(v[d[c]]=!(y[d[c]]=f));if(r){if(o||e){if(o){for(l=[],c=v.length;c--;)(f=v[c])&&l.push(y[c]=f);o(null,v=[],l,u)}for(c=v.length;c--;)(f=v[c])&&(l=o?K.call(r,f):p[c])>-1&&(r[l]=!(a[l]=f))}}else v=m(v===a?v.splice(h,v.length):v),o?o(null,a,v,u):G.apply(a,v)})}function y(e){for(var t,n,i,r=e.length,o=N.relative[e[0].type],a=o||N.relative[" "],s=o?1:0,u=d(function(e){return e===t},a,!0),l=d(function(e){return K.call(t,e)>-1},a,!0),c=[function(e,n,i){return!o&&(i||n!==A)||((t=n).nodeType?u(e,n,i):l(e,n,i))}];s<r;s++)if(n=N.relative[e[s].type])c=[d(h(c),n)];else{if(n=N.filter[e[s].type].apply(null,e[s].matches),n[_]){for(i=++s;i<r&&!N.relative[e[i].type];i++);return g(s>1&&h(c),s>1&&p(e.slice(0,s-1)).replace(ae,"$1"),n,s<i&&y(e.slice(s,i)),i<r&&y(e=e.slice(i)),i<r&&p(e))}c.push(n)}return h(c)}function v(e,t){var n=0,i=t.length>0,o=e.length>0,s=function(r,s,u,l,c){var f,p,d,h=[],g=0,y="0",v=r&&[],x=null!=c,b=A,T=r||o&&N.find.TAG("*",c&&s.parentNode||s),w=R+=null==b?1:Math.random()||.1;for(x&&(A=s!==L&&s,C=n);null!=(f=T[y]);y++){if(o&&f){for(p=0;d=e[p++];)if(d(f,s,u)){l.push(f);break}x&&(R=w,C=++n)}i&&((f=!d&&f)&&g--,r&&v.push(f))}if(g+=y,i&&y!==g){for(p=0;d=t[p++];)d(v,h,s,u);if(r){if(g>0)for(;y--;)v[y]||h[y]||(h[y]=J.call(l));h=m(h)}G.apply(l,h),x&&!r&&h.length>0&&g+t.length>1&&a.uniqueSort(l)}return x&&(R=w,A=b),v};return i?r(s):s}function x(e,t,n){for(var i=0,r=t.length;i<r;i++)a(e,t[i],n);return n}function b(e,t,n,i){var r,o,a,s,u,l=f(e);if(!i&&1===l.length){if(o=l[0]=l[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&9===t.nodeType&&!H&&N.relative[o[1].type]){if(t=N.find.ID(a.matches[0].replace(be,Te),t)[0],!t)return n;e=e.slice(o.shift().value.length)}for(r=pe.needsContext.test(e)?0:o.length;r--&&(a=o[r],!N.relative[s=a.type]);)if((u=N.find[s])&&(i=u(a.matches[0].replace(be,Te),de.test(o[0].type)&&t.parentNode||t))){if(o.splice(r,1),e=i.length&&p(o),!e)return G.apply(n,Z.call(i,0)),n;break}}return D(e,l)(i,t,H,n,de.test(e)),n}function T(){}var w,C,N,E,k,D,S,A,j,L,M,H,B,F,W,O,$,_="sizzle"+-new Date,q=e.document,P={},R=0,z=0,I=i(),X=i(),U=i(),Q=typeof t,V=1<<31,Y=[],J=Y.pop,G=Y.push,Z=Y.slice,K=Y.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ne=te.replace("w","w#"),ie="([*^$|!~]?=)",re="\\["+ee+"*("+te+")"+ee+"*(?:"+ie+ee+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+ne+")|)|)"+ee+"*\\]",oe=":("+te+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+re.replace(3,8)+")*)|.*)\\)|)",ae=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),se=new RegExp("^"+ee+"*,"+ee+"*"),le=new RegExp("^"+ee+"*([\\x20\\t\\r\\n\\f>+~])"+ee+"*"),ce=new RegExp(oe),fe=new RegExp("^"+ne+"$"),pe={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),NAME:new RegExp("^\\[name=['\"]?("+te+")['\"]?\\]"),TAG:new RegExp("^("+te.replace("w","w*")+")"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},de=/[\x20\t\r\n\f]*[+~]/,he=/^[^{]+\{\s*\[native code/,me=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ge=/^(?:input|select|textarea|button)$/i,ye=/^h\d$/i,ve=/'|\\/g,xe=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,be=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,Te=function(e,t){var n="0x"+t-65536;return n!==n?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)};try{Z.call(q.documentElement.childNodes,0)[0].nodeType}catch(e){Z=function(e){for(var t,n=[];t=this[e++];)n.push(t);return n}}k=a.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},j=a.setDocument=function(e){var i=e?e.ownerDocument||e:q;return i!==L&&9===i.nodeType&&i.documentElement?(L=i,M=i.documentElement,H=k(i),P.tagNameNoComments=o(function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length}),P.attributes=o(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),P.getByClassName=o(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!(!e.getElementsByClassName||!e.getElementsByClassName("e").length)&&(e.lastChild.className="e",2===e.getElementsByClassName("e").length)}),P.getByName=o(function(e){e.id=_+0,e.innerHTML="<a name='"+_+"'></a><div name='"+_+"'></div>",M.insertBefore(e,M.firstChild);var t=i.getElementsByName&&i.getElementsByName(_).length===2+i.getElementsByName(_+0).length;return P.getIdNotName=!i.getElementById(_),M.removeChild(e),t}),N.attrHandle=o(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==Q&&"#"===e.firstChild.getAttribute("href")})?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},P.getIdNotName?(N.find.ID=function(e,t){if(typeof t.getElementById!==Q&&!H){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},N.filter.ID=function(e){var t=e.replace(be,Te);return function(e){return e.getAttribute("id")===t}}):(N.find.ID=function(e,n){if(typeof n.getElementById!==Q&&!H){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==Q&&i.getAttributeNode("id").value===e?[i]:t:[]}},N.filter.ID=function(e){var t=e.replace(be,Te);return function(e){var n=typeof e.getAttributeNode!==Q&&e.getAttributeNode("id");return n&&n.value===t}}),N.find.TAG=P.tagNameNoComments?function(e,t){if(typeof t.getElementsByTagName!==Q)return t.getElementsByTagName(e)}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},N.find.NAME=P.getByName&&function(e,t){if(typeof t.getElementsByName!==Q)return t.getElementsByName(name)},N.find.CLASS=P.getByClassName&&function(e,t){if(typeof t.getElementsByClassName!==Q&&!H)return t.getElementsByClassName(e)},F=[],B=[":focus"],(P.qsa=n(i.querySelectorAll))&&(o(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||B.push("\\["+ee+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||B.push(":checked")}),o(function(e){e.innerHTML="<input type='hidden' i=''/>",e.querySelectorAll("[i^='']").length&&B.push("[*^$]="+ee+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||B.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),B.push(",.*:")})),(P.matchesSelector=n(W=M.matchesSelector||M.mozMatchesSelector||M.webkitMatchesSelector||M.oMatchesSelector||M.msMatchesSelector))&&o(function(e){P.disconnectedMatch=W.call(e,"div"),W.call(e,"[s!='']:x"),F.push("!=",oe)}),B=new RegExp(B.join("|")),F=new RegExp(F.join("|")),O=n(M.contains)||M.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},$=M.compareDocumentPosition?function(e,t){var n;return e===t?(S=!0,0):(n=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&n||e.parentNode&&11===e.parentNode.nodeType?e===i||O(q,e)?-1:t===i||O(q,t)?1:0:4&n?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var n,r=0,o=e.parentNode,a=t.parentNode,u=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===i?-1:t===i?1:o?-1:a?1:0;if(o===a)return s(e,t);for(n=e;n=n.parentNode;)u.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;u[r]===l[r];)r++;return r?s(u[r],l[r]):u[r]===q?-1:l[r]===q?1:0},S=!1,[0,0].sort($),P.detectDuplicates=S,L):L},a.matches=function(e,t){return a(e,null,null,t)},a.matchesSelector=function(e,t){if((e.ownerDocument||e)!==L&&j(e),t=t.replace(xe,"='$1']"),P.matchesSelector&&!H&&(!F||!F.test(t))&&!B.test(t))try{var n=W.call(e,t);if(n||P.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return a(t,L,null,[e]).length>0},a.contains=function(e,t){return(e.ownerDocument||e)!==L&&j(e),O(e,t)},a.attr=function(e,t){var n;return(e.ownerDocument||e)!==L&&j(e),H||(t=t.toLowerCase()),(n=N.attrHandle[t])?n(e):H||P.attributes?e.getAttribute(t):((n=e.getAttributeNode(t))||e.getAttribute(t))&&e[t]===!0?t:n&&n.specified?n.value:null},a.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},a.uniqueSort=function(e){var t,n=[],i=1,r=0;if(S=!P.detectDuplicates,e.sort($),S){for(;t=e[i];i++)t===e[i-1]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return e},E=a.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=E(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i];i++)n+=E(t);return n},N=a.selectors={cacheLength:50,createPseudo:r,match:pe,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,Te),e[3]=(e[4]||e[5]||"").replace(be,Te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||a.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&a.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return pe.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&ce.test(n)&&(t=f(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(be,Te).toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=I[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&I(e,function(e){return t.test(e.className||typeof e.getAttribute!==Q&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var r=a.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&v){for(c=g[_]||(g[_]={}),l=c[e]||[],d=l[0]===R&&l[1],p=l[0]===R&&l[2],f=d&&g.childNodes[d];f=++d&&f&&f[m]||(p=d=0)||h.pop();)if(1===f.nodeType&&++p&&f===t){c[e]=[R,d,p];break}}else if(v&&(l=(t[_]||(t[_]={}))[e])&&l[0]===R)p=l[1];else for(;(f=++d&&f&&f[m]||(p=d=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++p||(v&&((f[_]||(f[_]={}))[e]=[R,p]),f!==t)););return p-=r,p===i||p%i===0&&p/i>=0}}},PSEUDO:function(e,t){var n,i=N.pseudos[e]||N.setFilters[e.toLowerCase()]||a.error("unsupported pseudo: "+e);return i[_]?i(t):i.length>1?(n=[e,e,"",t],N.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)r=K.call(e,o[a]),e[r]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:r(function(e){var t=[],n=[],i=D(e.replace(ae,"$1"));return i[_]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),!n.pop()}}),has:r(function(e){return function(t){return a(e,t).length>0}}),contains:r(function(e){return function(t){return(t.textContent||t.innerText||E(t)).indexOf(e)>-1}}),lang:r(function(e){return fe.test(e||"")||a.error("unsupported lang: "+e),e=e.replace(be,Te).toLowerCase(),function(t){var n;do if(n=H?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===M},focus:function(e){return e===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!N.pseudos.empty(e)},header:function(e){return ye.test(e.nodeName)},input:function(e){return ge.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[n<0?n+t:n]}),even:c(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e}),gt:c(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}};for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})N.pseudos[w]=u(w);for(w in{submit:!0,reset:!0})N.pseudos[w]=l(w);D=a.compile=function(e,t){var n,i=[],r=[],o=U[e+" "];if(!o){for(t||(t=f(e)),n=t.length;n--;)o=y(t[n]),o[_]?i.push(o):r.push(o);o=U(e,v(r,i))}return o},N.pseudos.nth=N.pseudos.eq,N.filters=T.prototype=N.pseudos,N.setFilters=new T,j(),a.attr=ue.attr,ue.find=a,ue.expr=a.selectors,ue.expr[":"]=ue.expr.pseudos,ue.unique=a.uniqueSort,ue.text=a.getText,ue.isXMLDoc=a.isXML,ue.contains=a.contains}(e);var Pe=/Until$/,Re=/^(?:parents|prev(?:Until|All))/,ze=/^.[^:#\[\.,]*$/,Ie=ue.expr.match.needsContext,Xe={children:!0,contents:!0,next:!0,prev:!0};ue.fn.extend({find:function(e){var t,n,i,r=this.length;if("string"!=typeof e)return i=this,this.pushStack(ue(e).filter(function(){for(t=0;t<r;t++)if(ue.contains(i[t],this))return!0}));for(n=[],t=0;t<r;t++)ue.find(e,this[t],n);return n=this.pushStack(r>1?ue.unique(n):n),n.selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=ue(e,this),i=n.length;return this.filter(function(){for(t=0;t<i;t++)if(ue.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(f(this,e,!1))},filter:function(e){return this.pushStack(f(this,e,!0))},is:function(e){return!!e&&("string"==typeof e?Ie.test(e)?ue(e,this.context).index(this[0])>=0:ue.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){for(var n,i=0,r=this.length,o=[],a=Ie.test(e)||"string"!=typeof e?ue(e,t||this.context):0;i<r;i++)for(n=this[i];n&&n.ownerDocument&&n!==t&&11!==n.nodeType;){if(a?a.index(n)>-1:ue.find.matchesSelector(n,e)){o.push(n);break}n=n.parentNode}return this.pushStack(o.length>1?ue.unique(o):o)},index:function(e){return e?"string"==typeof e?ue.inArray(this[0],ue(e)):ue.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?ue(e,t):ue.makeArray(e&&e.nodeType?[e]:e),i=ue.merge(this.get(),n);return this.pushStack(ue.unique(i))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ue.fn.andSelf=ue.fn.addBack,ue.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ue.dir(e,"parentNode")},parentsUntil:function(e,t,n){return ue.dir(e,"parentNode",n)},next:function(e){return c(e,"nextSibling")},prev:function(e){return c(e,"previousSibling");
},nextAll:function(e){return ue.dir(e,"nextSibling")},prevAll:function(e){return ue.dir(e,"previousSibling")},nextUntil:function(e,t,n){return ue.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return ue.dir(e,"previousSibling",n)},siblings:function(e){return ue.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return ue.sibling(e.firstChild)},contents:function(e){return ue.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:ue.merge([],e.childNodes)}},function(e,t){ue.fn[e]=function(n,i){var r=ue.map(this,t,n);return Pe.test(e)||(i=n),i&&"string"==typeof i&&(r=ue.filter(i,r)),r=this.length>1&&!Xe[e]?ue.unique(r):r,this.length>1&&Re.test(e)&&(r=r.reverse()),this.pushStack(r)}}),ue.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?ue.find.matchesSelector(t[0],e)?[t[0]]:[]:ue.find.matches(e,t)},dir:function(e,n,i){for(var r=[],o=e[n];o&&9!==o.nodeType&&(i===t||1!==o.nodeType||!ue(o).is(i));)1===o.nodeType&&r.push(o),o=o[n];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var Ue="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Qe=/ jQuery\d+="(?:null|\d+)"/g,Ve=new RegExp("<(?:"+Ue+")[\\s/>]","i"),Ye=/^\s+/,Je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ge=/<([\w:]+)/,Ze=/<tbody/i,Ke=/<|&#?\w+;/,et=/<(?:script|style|link)/i,tt=/^(?:checkbox|radio)$/i,nt=/checked\s*(?:[^=]|=\s*.checked.)/i,it=/^$|\/(?:java|ecma)script/i,rt=/^true\/(.*)/,ot=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,at={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ue.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},st=p(V),ut=st.appendChild(V.createElement("div"));at.optgroup=at.option,at.tbody=at.tfoot=at.colgroup=at.caption=at.thead,at.th=at.td,ue.fn.extend({text:function(e){return ue.access(this,function(e){return e===t?ue.text(this):this.empty().append((this[0]&&this[0].ownerDocument||V).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(ue.isFunction(e))return this.each(function(t){ue(this).wrapAll(e.call(this,t))});if(this[0]){var t=ue(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return ue.isFunction(e)?this.each(function(t){ue(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ue(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ue.isFunction(e);return this.each(function(n){ue(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ue.nodeName(this,"body")||ue(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||this.insertBefore(e,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,i=0;null!=(n=this[i]);i++)(!e||ue.filter(e,[n]).length>0)&&(t||1!==n.nodeType||ue.cleanData(x(n)),n.parentNode&&(t&&ue.contains(n.ownerDocument,n)&&g(x(n,"script")),n.parentNode.removeChild(n)));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&ue.cleanData(x(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&ue.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ue.clone(this,e,t)})},html:function(e){return ue.access(this,function(e){var n=this[0]||{},i=0,r=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(Qe,""):t;if("string"==typeof e&&!et.test(e)&&(ue.support.htmlSerialize||!Ve.test(e))&&(ue.support.leadingWhitespace||!Ye.test(e))&&!at[(Ge.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Je,"<$1></$2>");try{for(;i<r;i++)n=this[i]||{},1===n.nodeType&&(ue.cleanData(x(n,!1)),n.innerHTML=e);n=0}catch(e){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){var t=ue.isFunction(e);return t||"string"==typeof e||(e=ue(e).not(this).detach()),this.domManip([e],!0,function(e){var t=this.nextSibling,n=this.parentNode;n&&(ue(this).remove(),n.insertBefore(e,t))})},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,i){e=te.apply([],e);var r,o,a,s,u,l,c=0,f=this.length,p=this,g=f-1,y=e[0],v=ue.isFunction(y);if(v||!(f<=1||"string"!=typeof y||ue.support.checkClone)&&nt.test(y))return this.each(function(r){var o=p.eq(r);v&&(e[0]=y.call(this,r,n?o.html():t)),o.domManip(e,n,i)});if(f&&(l=ue.buildFragment(e,this[0].ownerDocument,!1,this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(n=n&&ue.nodeName(r,"tr"),s=ue.map(x(l,"script"),h),a=s.length;c<f;c++)o=l,c!==g&&(o=ue.clone(o,!0,!0),a&&ue.merge(s,x(o,"script"))),i.call(n&&ue.nodeName(this[c],"table")?d(this[c],"tbody"):this[c],o,c);if(a)for(u=s[s.length-1].ownerDocument,ue.map(s,m),c=0;c<a;c++)o=s[c],it.test(o.type||"")&&!ue._data(o,"globalEval")&&ue.contains(u,o)&&(o.src?ue.ajax({url:o.src,type:"GET",dataType:"script",async:!1,global:!1,throws:!0}):ue.globalEval((o.text||o.textContent||o.innerHTML||"").replace(ot,"")));l=r=null}return this}}),ue.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ue.fn[e]=function(e){for(var n,i=0,r=[],o=ue(e),a=o.length-1;i<=a;i++)n=i===a?this:this.clone(!0),ue(o[i])[t](n),ne.apply(r,n.get());return this.pushStack(r)}}),ue.extend({clone:function(e,t,n){var i,r,o,a,s,u=ue.contains(e.ownerDocument,e);if(ue.support.html5Clone||ue.isXMLDoc(e)||!Ve.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(ut.innerHTML=e.outerHTML,ut.removeChild(o=ut.firstChild)),!(ue.support.noCloneEvent&&ue.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ue.isXMLDoc(e)))for(i=x(o),s=x(e),a=0;null!=(r=s[a]);++a)i[a]&&v(r,i[a]);if(t)if(n)for(s=s||x(e),i=i||x(o),a=0;null!=(r=s[a]);a++)y(r,i[a]);else y(e,o);return i=x(o,"script"),i.length>0&&g(i,!u&&x(e,"script")),i=s=r=null,o},buildFragment:function(e,t,n,i){for(var r,o,a,s,u,l,c,f=e.length,d=p(t),h=[],m=0;m<f;m++)if(o=e[m],o||0===o)if("object"===ue.type(o))ue.merge(h,o.nodeType?[o]:o);else if(Ke.test(o)){for(s=s||d.appendChild(t.createElement("div")),u=(Ge.exec(o)||["",""])[1].toLowerCase(),c=at[u]||at._default,s.innerHTML=c[1]+o.replace(Je,"<$1></$2>")+c[2],r=c[0];r--;)s=s.lastChild;if(!ue.support.leadingWhitespace&&Ye.test(o)&&h.push(t.createTextNode(Ye.exec(o)[0])),!ue.support.tbody)for(o="table"!==u||Ze.test(o)?"<table>"!==c[1]||Ze.test(o)?0:s:s.firstChild,r=o&&o.childNodes.length;r--;)ue.nodeName(l=o.childNodes[r],"tbody")&&!l.childNodes.length&&o.removeChild(l);for(ue.merge(h,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else h.push(t.createTextNode(o));for(s&&d.removeChild(s),ue.support.appendChecked||ue.grep(x(h,"input"),b),m=0;o=h[m++];)if((!i||ue.inArray(o,i)===-1)&&(a=ue.contains(o.ownerDocument,o),s=x(d.appendChild(o),"script"),a&&g(s),n))for(r=0;o=s[r++];)it.test(o.type||"")&&n.push(o);return s=null,d},cleanData:function(e,t){for(var n,i,r,o,a=0,s=ue.expando,u=ue.cache,l=ue.support.deleteExpando,c=ue.event.special;null!=(n=e[a]);a++)if((t||ue.acceptData(n))&&(r=n[s],o=r&&u[r])){if(o.events)for(i in o.events)c[i]?ue.event.remove(n,i):ue.removeEvent(n,i,o.handle);u[r]&&(delete u[r],l?delete n[s]:typeof n.removeAttribute!==Q?n.removeAttribute(s):n[s]=null,K.push(r))}}});var lt,ct,ft,pt=/alpha\([^)]*\)/i,dt=/opacity\s*=\s*([^)]*)/,ht=/^(top|right|bottom|left)$/,mt=/^(none|table(?!-c[ea]).+)/,gt=/^margin/,yt=new RegExp("^("+le+")(.*)$","i"),vt=new RegExp("^("+le+")(?!px)[a-z%]+$","i"),xt=new RegExp("^([+-])=("+le+")","i"),bt={BODY:"block"},Tt={position:"absolute",visibility:"hidden",display:"block"},wt={letterSpacing:0,fontWeight:400},Ct=["Top","Right","Bottom","Left"],Nt=["Webkit","O","Moz","ms"];ue.fn.extend({css:function(e,n){return ue.access(this,function(e,n,i){var r,o,a={},s=0;if(ue.isArray(n)){for(o=ct(e),r=n.length;s<r;s++)a[n[s]]=ue.css(e,n[s],!1,o);return a}return i!==t?ue.style(e,n,i):ue.css(e,n)},e,n,arguments.length>1)},show:function(){return C(this,!0)},hide:function(){return C(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:w(this))?ue(this).show():ue(this).hide()})}}),ue.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ft(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:ue.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,i,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=ue.camelCase(n),l=e.style;if(n=ue.cssProps[u]||(ue.cssProps[u]=T(l,u)),s=ue.cssHooks[n]||ue.cssHooks[u],i===t)return s&&"get"in s&&(o=s.get(e,!1,r))!==t?o:l[n];if(a=typeof i,"string"===a&&(o=xt.exec(i))&&(i=(o[1]+1)*o[2]+parseFloat(ue.css(e,n)),a="number"),!(null==i||"number"===a&&isNaN(i)||("number"!==a||ue.cssNumber[u]||(i+="px"),ue.support.clearCloneStyle||""!==i||0!==n.indexOf("background")||(l[n]="inherit"),s&&"set"in s&&(i=s.set(e,i,r))===t)))try{l[n]=i}catch(e){}}},css:function(e,n,i,r){var o,a,s,u=ue.camelCase(n);return n=ue.cssProps[u]||(ue.cssProps[u]=T(e.style,u)),s=ue.cssHooks[n]||ue.cssHooks[u],s&&"get"in s&&(a=s.get(e,!0,i)),a===t&&(a=ft(e,n,r)),"normal"===a&&n in wt&&(a=wt[n]),""===i||i?(o=parseFloat(a),i===!0||ue.isNumeric(o)?o||0:a):a},swap:function(e,t,n,i){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];r=n.apply(e,i||[]);for(o in t)e.style[o]=a[o];return r}}),e.getComputedStyle?(ct=function(t){return e.getComputedStyle(t,null)},ft=function(e,n,i){var r,o,a,s=i||ct(e),u=s?s.getPropertyValue(n)||s[n]:t,l=e.style;return s&&(""!==u||ue.contains(e.ownerDocument,e)||(u=ue.style(e,n)),vt.test(u)&&gt.test(n)&&(r=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=u,u=s.width,l.width=r,l.minWidth=o,l.maxWidth=a)),u}):V.documentElement.currentStyle&&(ct=function(e){return e.currentStyle},ft=function(e,n,i){var r,o,a,s=i||ct(e),u=s?s[n]:t,l=e.style;return null==u&&l&&l[n]&&(u=l[n]),vt.test(u)&&!ht.test(n)&&(r=l.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),l.left="fontSize"===n?"1em":u,u=l.pixelLeft+"px",l.left=r,a&&(o.left=a)),""===u?"auto":u}),ue.each(["height","width"],function(e,t){ue.cssHooks[t]={get:function(e,n,i){if(n)return 0===e.offsetWidth&&mt.test(ue.css(e,"display"))?ue.swap(e,Tt,function(){return k(e,t,i)}):k(e,t,i)},set:function(e,n,i){var r=i&&ct(e);return N(e,n,i?E(e,t,i,ue.support.boxSizing&&"border-box"===ue.css(e,"boxSizing",!1,r),r):0)}}}),ue.support.opacity||(ue.cssHooks.opacity={get:function(e,t){return dt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=ue.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=i&&i.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===ue.trim(o.replace(pt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=pt.test(o)?o.replace(pt,r):o+" "+r)}}),ue(function(){ue.support.reliableMarginRight||(ue.cssHooks.marginRight={get:function(e,t){if(t)return ue.swap(e,{display:"inline-block"},ft,[e,"marginRight"])}}),!ue.support.pixelPosition&&ue.fn.position&&ue.each(["top","left"],function(e,t){ue.cssHooks[t]={get:function(e,n){if(n)return n=ft(e,t),vt.test(n)?ue(e).position()[t]+"px":n}}})}),ue.expr&&ue.expr.filters&&(ue.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!ue.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||ue.css(e,"display"))},ue.expr.filters.visible=function(e){return!ue.expr.filters.hidden(e)}),ue.each({margin:"",padding:"",border:"Width"},function(e,t){ue.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+Ct[i]+t]=o[i]||o[i-2]||o[0];return r}},gt.test(e)||(ue.cssHooks[e+t].set=N)});var Et=/%20/g,kt=/\[\]$/,Dt=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;ue.fn.extend({serialize:function(){return ue.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ue.prop(this,"elements");return e?ue.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ue(this).is(":disabled")&&At.test(this.nodeName)&&!St.test(e)&&(this.checked||!tt.test(e))}).map(function(e,t){var n=ue(this).val();return null==n?null:ue.isArray(n)?ue.map(n,function(e){return{name:t.name,value:e.replace(Dt,"\r\n")}}):{name:t.name,value:n.replace(Dt,"\r\n")}}).get()}}),ue.param=function(e,n){var i,r=[],o=function(e,t){t=ue.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=ue.ajaxSettings&&ue.ajaxSettings.traditional),ue.isArray(e)||e.jquery&&!ue.isPlainObject(e))ue.each(e,function(){o(this.name,this.value)});else for(i in e)A(i,e[i],n,o);return r.join("&").replace(Et,"+")},ue.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(e,t){ue.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ue.fn.hover=function(e,t){return this.mouseenter(e).mouseleave(t||e)};var jt,Lt,Mt=ue.now(),Ht=/\?/,Bt=/#.*$/,Ft=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ot=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$t=/^(?:GET|HEAD)$/,_t=/^\/\//,qt=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Pt=ue.fn.load,Rt={},zt={},It="*/".concat("*");try{Lt=Y.href}catch(e){Lt=V.createElement("a"),Lt.href="",Lt=Lt.href}jt=qt.exec(Lt.toLowerCase())||[],ue.fn.load=function(e,n,i){if("string"!=typeof e&&Pt)return Pt.apply(this,arguments);var r,o,a,s=this,u=e.indexOf(" ");return u>=0&&(r=e.slice(u,e.length),e=e.slice(0,u)),ue.isFunction(n)?(i=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&ue.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(r?ue("<div>").append(ue.parseHTML(e)).find(r):e)}).complete(i&&function(e,t){s.each(i,o||[e.responseText,t,e])}),this},ue.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ue.fn[t]=function(e){return this.on(t,e)}}),ue.each(["get","post"],function(e,n){ue[n]=function(e,i,r,o){return ue.isFunction(i)&&(o=o||r,r=i,i=t),ue.ajax({url:e,type:n,dataType:o,data:i,success:r})}}),ue.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lt,type:"GET",isLocal:Ot.test(jt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":ue.parseJSON,"text xml":ue.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?M(M(e,ue.ajaxSettings),t):M(ue.ajaxSettings,e)},ajaxPrefilter:j(Rt),ajaxTransport:j(zt),ajax:function(e,n){function i(e,n,i,r){var o,f,v,x,T,C=n;2!==b&&(b=2,u&&clearTimeout(u),c=t,s=r||"",w.readyState=e>0?4:0,i&&(x=H(p,w,i)),e>=200&&e<300||304===e?(p.ifModified&&(T=w.getResponseHeader("Last-Modified"),T&&(ue.lastModified[a]=T),T=w.getResponseHeader("etag"),T&&(ue.etag[a]=T)),204===e?(o=!0,C="nocontent"):304===e?(o=!0,C="notmodified"):(o=B(p,x),C=o.state,f=o.data,v=o.error,o=!v)):(v=C,!e&&C||(C="error",e<0&&(e=0))),w.status=e,w.statusText=(n||C)+"",o?m.resolveWith(d,[f,C,w]):m.rejectWith(d,[w,C,v]),w.statusCode(y),y=t,l&&h.trigger(o?"ajaxSuccess":"ajaxError",[w,p,o?f:v]),g.fireWith(d,[w,C]),l&&(h.trigger("ajaxComplete",[w,p]),--ue.active||ue.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=t),n=n||{};var r,o,a,s,u,l,c,f,p=ue.ajaxSetup({},n),d=p.context||p,h=p.context&&(d.nodeType||d.jquery)?ue(d):ue.event,m=ue.Deferred(),g=ue.Callbacks("once memory"),y=p.statusCode||{},v={},x={},b=0,T="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!f)for(f={};t=Wt.exec(s);)f[t[1].toLowerCase()]=t[2];t=f[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=x[n]=x[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)y[t]=[y[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||T;return c&&c.abort(t),i(0,t),this}};if(m.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,p.url=((e||p.url||Lt)+"").replace(Bt,"").replace(_t,jt[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=ue.trim(p.dataType||"*").toLowerCase().match(ce)||[""],null==p.crossDomain&&(r=qt.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===jt[1]&&r[2]===jt[2]&&(r[3]||("http:"===r[1]?80:443))==(jt[3]||("http:"===jt[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=ue.param(p.data,p.traditional)),L(Rt,p,n,w),2===b)return w;l=p.global,l&&0===ue.active++&&ue.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!$t.test(p.type),a=p.url,p.hasContent||(p.data&&(a=p.url+=(Ht.test(a)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=Ft.test(a)?a.replace(Ft,"$1_="+Mt++):a+(Ht.test(a)?"&":"?")+"_="+Mt++)),p.ifModified&&(ue.lastModified[a]&&w.setRequestHeader("If-Modified-Since",ue.lastModified[a]),ue.etag[a]&&w.setRequestHeader("If-None-Match",ue.etag[a])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+It+"; q=0.01":""):p.accepts["*"]);for(o in p.headers)w.setRequestHeader(o,p.headers[o]);if(p.beforeSend&&(p.beforeSend.call(d,w,p)===!1||2===b))return w.abort();T="abort";for(o in{success:1,error:1,complete:1})w[o](p[o]);if(c=L(zt,p,n,w)){w.readyState=1,l&&h.trigger("ajaxSend",[w,p]),p.async&&p.timeout>0&&(u=setTimeout(function(){w.abort("timeout")},p.timeout));try{b=1,c.send(v,i)}catch(e){if(!(b<2))throw e;i(-1,e)}}else i(-1,"No Transport");return w},getScript:function(e,n){return ue.get(e,t,n,"script")},getJSON:function(e,t,n){return ue.get(e,t,n,"json")}}),ue.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return ue.globalEval(e),e}}}),ue.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),ue.ajaxTransport("script",function(e){if(e.crossDomain){var n,i=V.head||ue("head")[0]||V.documentElement;return{send:function(t,r){n=V.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||r(200,"success"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Xt=[],Ut=/(=)\?(?=&|$)|\?\?/;ue.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||ue.expando+"_"+Mt++;return this[e]=!0,e}}),ue.ajaxPrefilter("json jsonp",function(n,i,r){var o,a,s,u=n.jsonp!==!1&&(Ut.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(n.data)&&"data");if(u||"jsonp"===n.dataTypes[0])return o=n.jsonpCallback=ue.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Ut,"$1"+o):n.jsonp!==!1&&(n.url+=(Ht.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||ue.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},r.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=i.jsonpCallback,Xt.push(o)),s&&ue.isFunction(a)&&a(s[0]),s=a=t}),"script"});var Qt,Vt,Yt=0,Jt=e.ActiveXObject&&function(){var e;for(e in Qt)Qt[e](t,!0)};ue.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&F()||W()}:F,Vt=ue.ajaxSettings.xhr(),ue.support.cors=!!Vt&&"withCredentials"in Vt,Vt=ue.support.ajax=!!Vt,Vt&&ue.ajaxTransport(function(n){if(!n.crossDomain||ue.support.cors){var i;return{send:function(r,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");try{for(s in r)u.setRequestHeader(s,r[s])}catch(e){}u.send(n.hasContent&&n.data||null),i=function(e,r){var s,l,c,f;try{if(i&&(r||4===u.readyState))if(i=t,a&&(u.onreadystatechange=ue.noop,Jt&&delete Qt[a]),r)4!==u.readyState&&u.abort();else{f={},s=u.status,l=u.getAllResponseHeaders(),"string"==typeof u.responseText&&(f.text=u.responseText);try{c=u.statusText}catch(e){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=f.text?200:404}}catch(e){r||o(-1,e)}f&&o(s,c,f,l)},n.async?4===u.readyState?setTimeout(i):(a=++Yt,Jt&&(Qt||(Qt={},ue(e).unload(Jt)),Qt[a]=i),u.onreadystatechange=i):i()},abort:function(){i&&i(t,!0)}}}});var Gt,Zt,Kt=/^(?:toggle|show|hide)$/,en=new RegExp("^(?:([+-])=|)("+le+")([a-z%]*)$","i"),tn=/queueHooks$/,nn=[P],rn={"*":[function(e,t){var n,i,r=this.createTween(e,t),o=en.exec(t),a=r.cur(),s=+a||0,u=1,l=20;if(o){if(n=+o[2],i=o[3]||(ue.cssNumber[e]?"":"px"),"px"!==i&&s){s=ue.css(r.elem,e,!0)||n||1;do u=u||".5",s/=u,ue.style(r.elem,e,s+i);while(u!==(u=r.cur()/a)&&1!==u&&--l)}r.unit=i,r.start=s,r.end=o[1]?s+(o[1]+1)*n:n}return r}]};ue.Animation=ue.extend(_,{tweener:function(e,t){ue.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,r=e.length;i<r;i++)n=e[i],rn[n]=rn[n]||[],rn[n].unshift(t)},prefilter:function(e,t){t?nn.unshift(e):nn.push(e)}}),ue.Tween=R,R.prototype={constructor:R,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(ue.cssNumber[n]?"":"px")},cur:function(){var e=R.propHooks[this.prop];return e&&e.get?e.get(this):R.propHooks._default.get(this)},run:function(e){var t,n=R.propHooks[this.prop];return this.options.duration?this.pos=t=ue.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=ue.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){ue.fx.step[e.prop]?ue.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[ue.cssProps[e.prop]]||ue.cssHooks[e.prop])?ue.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ue.each(["toggle","show","hide"],function(e,t){var n=ue.fn[t];ue.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(z(t,!0),e,i,r)}}),ue.fn.extend({fadeTo:function(e,t,n,i){return this.filter(w).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=ue.isEmptyObject(e),o=ue.speed(t,n,i),a=function(){var t=_(this,ue.extend({},e),o);a.finish=function(){t.stop(!0)},(r||ue._data(this,"finish"))&&t.stop(!0)};return a.finish=a,r||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,i){var r=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=ue.timers,a=ue._data(this);if(n)a[n]&&a[n].stop&&r(a[n]);else for(n in a)a[n]&&a[n].stop&&tn.test(n)&&r(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(i),t=!1,o.splice(n,1));!t&&i||ue.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=ue._data(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=ue.timers,a=i?i.length:0;for(n.finish=!0,ue.queue(this,e,[]),r&&r.cur&&r.cur.finish&&r.cur.finish.call(this),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),ue.each({slideDown:z("show"),slideUp:z("hide"),slideToggle:z("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ue.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),ue.speed=function(e,t,n){var i=e&&"object"==typeof e?ue.extend({},e):{complete:n||!n&&t||ue.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ue.isFunction(t)&&t};return i.duration=ue.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ue.fx.speeds?ue.fx.speeds[i.duration]:ue.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){ue.isFunction(i.old)&&i.old.call(this),i.queue&&ue.dequeue(this,i.queue)},i},ue.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},ue.timers=[],ue.fx=R.prototype.init,ue.fx.tick=function(){var e,n=ue.timers,i=0;for(Gt=ue.now();i<n.length;i++)e=n[i],e()||n[i]!==e||n.splice(i--,1);n.length||ue.fx.stop(),Gt=t},ue.fx.timer=function(e){e()&&ue.timers.push(e)&&ue.fx.start()},ue.fx.interval=13,ue.fx.start=function(){Zt||(Zt=setInterval(ue.fx.tick,ue.fx.interval))},ue.fx.stop=function(){clearInterval(Zt),Zt=null},ue.fx.speeds={slow:600,fast:200,_default:400},ue.fx.step={},ue.expr&&ue.expr.filters&&(ue.expr.filters.animated=function(e){return ue.grep(ue.timers,function(t){return e===t.elem}).length}),ue.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){ue.offset.setOffset(this,e,t)});var n,i,r={top:0,left:0},o=this[0],a=o&&o.ownerDocument;if(a)return n=a.documentElement,ue.contains(n,o)?(typeof o.getBoundingClientRect!==Q&&(r=o.getBoundingClientRect()),i=I(a),{top:r.top+(i.pageYOffset||n.scrollTop)-(n.clientTop||0),left:r.left+(i.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):r},ue.offset={setOffset:function(e,t,n){var i=ue.css(e,"position");"static"===i&&(e.style.position="relative");var r,o,a=ue(e),s=a.offset(),u=ue.css(e,"top"),l=ue.css(e,"left"),c=("absolute"===i||"fixed"===i)&&ue.inArray("auto",[u,l])>-1,f={},p={};c?(p=a.position(),r=p.top,o=p.left):(r=parseFloat(u)||0,o=parseFloat(l)||0),ue.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+r),null!=t.left&&(f.left=t.left-s.left+o),"using"in t?t.using.call(e,f):a.css(f)}},ue.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===ue.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ue.nodeName(e[0],"html")||(n=e.offset()),n.top+=ue.css(e[0],"borderTopWidth",!0),n.left+=ue.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-ue.css(i,"marginTop",!0),left:t.left-n.left-ue.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||V.documentElement;e&&!ue.nodeName(e,"html")&&"static"===ue.css(e,"position");)e=e.offsetParent;return e||V.documentElement})}}),ue.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var i=/Y/.test(n);ue.fn[e]=function(r){return ue.access(this,function(e,r,o){var a=I(e);return o===t?a?n in a?a[n]:a.document.documentElement[r]:e[r]:void(a?a.scrollTo(i?ue(a).scrollLeft():o,i?o:ue(a).scrollTop()):e[r]=o)},e,r,arguments.length,null)}}),ue.each({Height:"height",Width:"width"},function(e,n){ue.each({padding:"inner"+e,content:n,"":"outer"+e},function(i,r){ue.fn[r]=function(r,o){var a=arguments.length&&(i||"boolean"!=typeof r),s=i||(r===!0||o===!0?"margin":"border");return ue.access(this,function(n,i,r){var o;return ue.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):r===t?ue.css(n,i,s):ue.style(n,i,r,s)},n,a?r:t,a,null)}})}),e.jQuery=e.$=ue,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return ue})}(window),this.$=this.jQuery=jQuery.noConflict(!0);var Utils=new function(){this.splitTimeTextToMinutes=function(e){var t=e.split(":"),n=t[0][0];"-"!==n&&"+"!==n||(t[0]=t[0].substring(1,t[0].length));var i=60*parseInt(t[0])+parseInt(t[1]);return"-"===n&&(i*=-1),i},this.countMinutesDifference=function(e,t){if(""===t)return 0;var n=this.splitTimeTextToMinutes(e),i=this.splitTimeTextToMinutes(t);return i-n},this.addLeadingZeroToNumber=function(e){return e<10?"0"+e:e},this.createTimeString=function(e,t){return this.addLeadingZeroToNumber(e)+":"+this.addLeadingZeroToNumber(t)},this.getHoursAndMinutesFromMinutes=function(e){return hours=Math.floor(e/60),e-=60*hours,{hours:hours,minutes:e}},this.getDailyMinutesNorm=function(){return 480},this.countWorkingMinutesFormTimesPairs=function(e){var t=0,n=e.length;for(i=0;i<n;i++)difference=Utils.countMinutesDifference(e[i].entrance,e[i].departure),difference>0&&(t+=difference);return t}};this.$=this.jQuery=jQuery.noConflict(!0);var BiBinet=new function(){this.url="https://czas-pracy",this.fetchOverallMinutes=function(){var e=$.ajax({url:this.url+"/content.html?page=1",dataType:"html",async:!1}),t=$($(e.responseText).find("tr.sumy").children("td").get(7));return t.text()},this.switchToIndividualReportPage=function(){$.ajax({url:this.url+"/content.html?page=0"})},this.fillTimeOfDeparture=function(e){var t=this.getCurrentDayLastDepartureCell();""===t.text()&&t.css("color","#888888").css("font-style","italic").text(e)},this.getCurrentDayRowElement=function(){var e=["Pn","Wt","Śr","Cz","Pi","So","Ni"],t=new Date;return this.rowElement||(this.rowElement=$('td:contains("'+(t.getDate()<10?0:"")+t.getDate()+" "+e[t.getDay()-1]+'")').parent()),this.rowElement},this.getCurrentDayEntrancesCount=function(){var e=$(this.getCurrentDayRowElement().children().get(0)).attr("rowspan");return e?e:1},this._getCurrentDayTimeCell=function(e,t){var n,i=BiBinet.getCurrentDayRowElement();for(n=2;n<=e;n++)i=$(i.next());return $(i.children().get(t))},this.getCurrentDayEntranceTime=function(e){var t;return e="undefined"!=typeof e?e:1,t=1===e?2:0,this._getCurrentDayTimeCell(e,t).text()},this.getCurrentDayDepartureTime=function(e){var t,n,i;return e="undefined"!=typeof e?e:1,t=1===e?4:2,n=1===e?5:3,i=this._getCurrentDayTimeCell(e,n).text(),""===i?"":this._getCurrentDayTimeCell(e,t).text()},this.getCurrentDayLastEntranceTime=function(){var e=this.getCurrentDayEntrancesCount();return this.getCurrentDayEntranceTime(e)},this.getCurrentDayLastDepartureCell=function(){var e=this.getCurrentDayEntrancesCount();return cellNumber=1===e?4:2,this._getCurrentDayTimeCell(e,cellNumber)},this.getCurrentDayTimePairs=function(){var e,t=[],n=this.getCurrentDayEntrancesCount();for(e=1;e<=n;e++)t.push({entrance:this.getCurrentDayEntranceTime(e),departure:this.getCurrentDayDepartureTime(e)
});return t}};this.$=this.jQuery=jQuery.noConflict(!0);var TimeOfDepartureWidget=new function(){this.prepare=function(){return this.widgetElement=$("<div/>").attr("id","time-of-departure").attr("class","widget"),this.widgetElement.append($("<div/>").attr("class","description").text("Sugerowana godzina wyjścia:")),this.timeElement=$("<div/>").attr("class","time"),this.widgetElement.append(this.timeElement),this.widgetElement},this.getName=function(){return"time-of-departure"},this.fill=function(e){this.timeElement.text(e)},this.getHtml=function(){return this.widgetElement},this.getStyles=function(){return" #time-of-departure { border: 3px dashed #2B9019; padding: 10px; } #time-of-departure > .time { color: green; font-size: 28px; font-weight: bold; margin: 10px 0; } "}};this.$=this.jQuery=jQuery.noConflict(!0);var TimeRemainingToOvertimeZeroWidget=new function(){this.prepare=function(){return this.widgetElement=$("<div/>").attr("id","time-remaining-to-overtime-zero").attr("class","widget"),this.widgetElement.append($("<div/>").attr("class","description").html("Pozostały czas<br/>do sugerowanej godziny wyjścia:")),this.timeElement=$("<div/>").attr("class","time"),this.widgetElement.append(this.timeElement),this.widgetElement},this.getName=function(){return"time-remaining-to-overtime-zero"},this.setDueTime=function(e){this.dueTime=e;var t=new Date,n=Utils.countMinutesDifference(Utils.createTimeString(t.getHours(),t.getMinutes()),e);if(n<=0)this.widgetElement.remove();else{remainingTime=Utils.getHoursAndMinutesFromMinutes(n);var i=remainingTime.minutes+" min";remainingTime.hours>0&&(i=remainingTime.hours+"h "+i),this.timeElement.text(i)}},this.getHtml=function(){return this.widgetElement},this.getStyles=function(){return" #time-remaining-to-overtime-zero { border: 3px dashed #FFB100; padding: 10px; } #time-remaining-to-overtime-zero > .time { color: #FFB100; font-size: 28px; font-weight: bold; margin: 10px 0; } "}};this.$=this.jQuery=jQuery.noConflict(!0);var TimeBalanceWidget=new function(){this.prepare=function(){return this.widgetElement=$("<div/>").attr("id","time-balance").attr("class","widget"),this.widgetElement.append($("<div/>").attr("class","description").text("Bilans godzin:")),this.timeElement=$("<div/>").attr("class","time"),this.widgetElement.append(this.timeElement),this.widgetElement},this.getName=function(){return"time-balance"},this.setBalanceTime=function(e){var t=Utils.splitTimeTextToMinutes(e),n=!1;t<0&&(n=!0,t*=-1),balanceTime=Utils.getHoursAndMinutesFromMinutes(t);var i=balanceTime.minutes+" min";balanceTime.hours>0&&(i=balanceTime.hours+"h "+i);var r="+ ";n&&(r="- "),i=r+i,this.timeElement.text(i)},this.getHtml=function(){return this.widgetElement},this.getStyles=function(){return" #time-balance { border: 3px dashed #999; padding: 10px; color: #333; } #time-balance > .time { font-size: 24px; font-weight: bold; margin: 10px 0; } "}};this.$=this.jQuery=jQuery.noConflict(!0);var RemainingTimeToDailyNormWidget=new function(){this.prepare=function(){return this.widgetElement=$("<div/>").attr("id","remaining-time-to-daily-norm").attr("class","widget"),this.widgetElement.append($("<div/>").attr("class","description").text("Pozostały czas do normy dziennej:")),this.timeElement=$("<div/>").attr("class","time"),this.widgetElement.append(this.timeElement),this.widgetElement},this.getName=function(){return"remaining-time-to-daily-norm"},this._getAllWorkedMinutes=function(){var e,t,n,i,r=BiBinet.getCurrentDayEntrancesCount(),o=new Date;return e=Utils.countWorkingMinutesFormTimesPairs(BiBinet.getCurrentDayTimePairs()),t=BiBinet.getCurrentDayLastEntranceTime(),n=BiBinet.getCurrentDayDepartureTime(r),""===n&&(n=o.getHours()+":"+o.getMinutes()),i=Utils.countMinutesDifference(t,n),e+i},this.fill=function(e){var t=!1,n=Utils.getDailyMinutesNorm();difference=n-this._getAllWorkedMinutes(),difference<0&&(t=!0,difference*=-1,this._changeColorsToRed()),remainingTime=Utils.getHoursAndMinutesFromMinutes(difference);var i=remainingTime.minutes+" min";remainingTime.hours>0&&(i=remainingTime.hours+"h "+i),t&&(i="+ "+i),this.timeElement.text(i)},this._changeColorsToRed=function(){this.widgetElement.attr("style","border-color: #CC0F0F"),this.timeElement.attr("style","color: #CC0F0F")},this.getHtml=function(){return this.widgetElement},this.getStyles=function(){return" #remaining-time-to-daily-norm { border: 3px dashed #2B9019; padding: 10px; } #remaining-time-to-daily-norm > .time { color: #2B9019; font-size: 28px; font-weight: bold; margin: 10px 0; } "}};this.$=this.jQuery=jQuery.noConflict(!0);var DailyNormTimeWidget=new function(){this.prepare=function(){return this.widgetElement=$("<div/>").attr("id","daily-norm-time").attr("class","widget"),this.widgetElement.append($("<div/>").attr("class","description").text("Wyjście wg normy:")),this.timeElement=$("<div/>").attr("class","time"),this.widgetElement.append(this.timeElement),this.widgetElement},this.getName=function(){return"daily-norm-time"},this.fill=function(e){var t,n=BiBinet.getCurrentDayLastEntranceTime().split(":"),i=new Date;t=Utils.countWorkingMinutesFormTimesPairs(BiBinet.getCurrentDayTimePairs()),i.setHours(n[0]),i.setMinutes(n[1]),i.setMinutes(i.getMinutes()+(Utils.getDailyMinutesNorm()-t)),result=Utils.createTimeString(i.getHours(),i.getMinutes()),this.timeElement.text(result)},this.getHtml=function(){return this.widgetElement},this.getStyles=function(){return" #daily-norm-time { border: 3px dashed #999; padding: 10px; } #daily-norm-time > .time { font-size: 28px; font-weight: bold; margin: 10px 0; } "}};this.$=this.jQuery=jQuery.noConflict(!0);var ControlPanel=new function(){this.widgets={},this.create=function(){var e,t=$("<style/>").attr("type","text/css");t.append(" #control-panel { position: absolute; z-index: 1000; right: 50px; top: 60px; min-width: 100px; min-height: 50px; text-align: center; fons-size: 13px; } #control-panel .widget { margin-bottom: 20px; } "),this.element=$("<div/>").attr("id","control-panel");for(widgetName in this.widgets){var e=this.widgets[widgetName];t.append(e.getStyles()),this.element.append(e.getHtml())}$("head").append(t),$("body").prepend(this.element)},this.registerWidget=function(e){this.widgets[e.getName()]=e}},TimeCalculator=new function(){this.getOverallMinutesFromTimeWorkPage=function(){var e=BiBinet.fetchOverallMinutes();return BiBinet.switchToIndividualReportPage(),Utils.splitTimeTextToMinutes(e)},this.calculateTimeOfDeparture=function(){var e=TimeCalculator.getOverallMinutesFromTimeWorkPage(),t=BiBinet.getCurrentDayLastEntranceTime().split(":"),n=new Date;return e+=Utils.countWorkingMinutesFormTimesPairs(BiBinet.getCurrentDayTimePairs()),n.setHours(t[0]),n.setMinutes(t[1]),n.setMinutes(n.getMinutes()+(Utils.getDailyMinutesNorm()-e)),Utils.createTimeString(n.getHours(),n.getMinutes())}},View=new function(){this.bootstrap=function(){TimeOfDepartureWidget.prepare(),TimeRemainingToOvertimeZeroWidget.prepare(),TimeBalanceWidget.prepare(),DailyNormTimeWidget.prepare(),RemainingTimeToDailyNormWidget.prepare(),ControlPanel.registerWidget(TimeBalanceWidget),ControlPanel.registerWidget(TimeOfDepartureWidget),ControlPanel.registerWidget(TimeRemainingToOvertimeZeroWidget),ControlPanel.registerWidget(DailyNormTimeWidget),ControlPanel.registerWidget(RemainingTimeToDailyNormWidget),ControlPanel.create(),View.recalculate()},this.recalculate=function(){var e=TimeCalculator.calculateTimeOfDeparture();BiBinet.fillTimeOfDeparture(e),TimeOfDepartureWidget.fill(e),TimeRemainingToOvertimeZeroWidget.setDueTime(e),TimeBalanceWidget.setBalanceTime(BiBinet.fetchOverallMinutes()),DailyNormTimeWidget.fill(),RemainingTimeToDailyNormWidget.fill()}};$(document).ready(function(){setTimeout(View.bootstrap,1500),$("#dalej, #wstecz, .menulink").click(function(){setTimeout(View.recalculate,1500)})});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment