-1;)i.splice(n,1),n<=c&&c--})),this},has:function(e){return e?W.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return r=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return r=a=[],n||t||(i=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||s()),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!o}};return p},W.extend({Deferred:function(e){var t=[["notify","progress",W.Callbacks("memory"),W.Callbacks("memory"),2],["resolve","done",W.Callbacks("once memory"),W.Callbacks("once memory"),0,"resolved"],["reject","fail",W.Callbacks("once memory"),W.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return W.Deferred((function(n){W.each(t,(function(t,o){var r=O(e[o[4]])&&e[o[4]];i[o[1]]((function(){var e=r&&r.apply(this,arguments);e&&O(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,r){var i=0;function a(e,t,n,r){return function(){var c=this,s=arguments,p=function(){var o,p;if(!(e=i&&(n!==Q&&(c=void 0,s=[o]),t.rejectWith(c,s))}};e?l():(W.Deferred.getErrorHook?l.error=W.Deferred.getErrorHook():W.Deferred.getStackHook&&(l.error=W.Deferred.getStackHook()),o.setTimeout(l))}}return W.Deferred((function(o){t[0][3].add(a(0,o,O(r)?r:Y,o.notifyWith)),t[1][3].add(a(0,o,O(e)?e:Y)),t[2][3].add(a(0,o,O(n)?n:Q))})).promise()},promise:function(e){return null!=e?W.extend(e,r):r}},i={};return W.each(t,(function(e,o){var a=o[2],c=o[5];r[o[1]]=a.add,c&&a.add((function(){n=c}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(o[3].fire),i[o[0]]=function(){return i[o[0]+"With"](this===i?void 0:this,arguments),this},i[o[0]+"With"]=a.fireWith})),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,o=Array(n),r=c.call(arguments),i=W.Deferred(),a=function(e){return function(n){o[e]=this,r[e]=arguments.length>1?c.call(arguments):n,--t||i.resolveWith(o,r)}};if(t<=1&&(G(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||O(r[n]&&r[n].then)))return i.then();for(;n--;)G(r[n],a(n),i.reject);return i.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;W.Deferred.exceptionHook=function(e,t){o.console&&o.console.warn&&e&&K.test(e.name)&&o.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},W.readyException=function(e){o.setTimeout((function(){throw e}))};var J=W.Deferred();function Z(){A.removeEventListener("DOMContentLoaded",Z),o.removeEventListener("load",Z),W.ready()}W.fn.ready=function(e){return J.then(e).catch((function(e){W.readyException(e)})),this},W.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--W.readyWait:W.isReady)||(W.isReady=!0,!0!==e&&--W.readyWait>0||J.resolveWith(A,[W]))}}),W.ready.then=J.then,"complete"===A.readyState||"loading"!==A.readyState&&!A.documentElement.doScroll?o.setTimeout(W.ready):(A.addEventListener("DOMContentLoaded",Z),o.addEventListener("load",Z));var ee=function e(t,n,o,r,i,a,c){var s=0,p=t.length,l=null==o;if("object"===q(o))for(s in i=!0,o)e(t,n,s,o[s],!0,a,c);else if(void 0!==r&&(i=!0,O(r)||(c=!0),l&&(c?(n.call(t,r),n=null):(l=n,n=function(e,t,n){return l.call(W(e),n)})),n))for(;s 1,null,!0)},removeData:function(e){return this.each((function(){se.remove(this,e)}))}}),W.extend({queue:function(e,t,n){var o;if(e)return t=(t||"fx")+"queue",o=ce.get(e,t),n&&(!o||Array.isArray(n)?o=ce.access(e,t,W.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=W.queue(e,t),o=n.length,r=n.shift(),i=W._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,(function(){W.dequeue(e,t)}),i)),!o&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ce.get(e,n)||ce.access(e,n,{empty:W.Callbacks("once memory").add((function(){ce.remove(e,[t+"queue",n])}))})}}),W.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,We=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=A.createDocumentFragment().appendChild(A.createElement("div")),t=A.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),f.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",f.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML=" ",f.option=!!e.lastChild}();var Re={thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function we(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&w(e,t)?W.merge([e],n):n}function xe(e,t){for(var n=0,o=e.length;n",""]);var ke=/<|?\w+;/;function Le(e,t,n,o,r){for(var i,a,c,s,p,l,b=t.createDocumentFragment(),u=[],M=0,z=e.length;M-1)r&&r.push(i);else if(p=fe(i),a=we(b.appendChild(i),"script"),p&&xe(a),n)for(l=0;i=a[l++];)We.test(i.type||"")&&n.push(i);return b}var Ne=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Se(){return!1}function Be(e,t,n,o,r,i){var a,c;if("object"===typeof t){for(c in"string"!==typeof n&&(o=o||n,n=void 0),t)Be(e,c,n,o,t[c],i);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"===typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=Se;else if(!r)return e;return 1===i&&(a=r,r=function(e){return W().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=W.guid++)),e.each((function(){W.event.add(this,t,r,o,n)}))}function Ce(e,t,n){n?(ce.set(e,t,!1),W.event.add(e,t,{namespace:!1,handler:function(e){var n,o=ce.get(this,t);if(1&e.isTrigger&&this[t]){if(o)(W.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=c.call(arguments),ce.set(this,t,o),this[t](),n=ce.get(this,t),ce.set(this,t,!1),o!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else o&&(ce.set(this,t,W.event.trigger(o[0],o.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Te)}})):void 0===ce.get(e,t)&&W.event.add(e,t,Te)}W.event={global:{},add:function(e,t,n,o,r){var i,a,c,s,p,l,b,u,M,z,d,f=ce.get(e);if(ie(e))for(n.handler&&(n=(i=n).handler,r=i.selector),r&&W.find.matchesSelector(de,r),n.guid||(n.guid=W.guid++),(s=f.events)||(s=f.events=Object.create(null)),(a=f.handle)||(a=f.handle=function(t){return"undefined"!==typeof W&&W.event.triggered!==t.type?W.event.dispatch.apply(e,arguments):void 0}),p=(t=(t||"").match($)||[""]).length;p--;)M=d=(c=Ne.exec(t[p])||[])[1],z=(c[2]||"").split(".").sort(),M&&(b=W.event.special[M]||{},M=(r?b.delegateType:b.bindType)||M,b=W.event.special[M]||{},l=W.extend({type:M,origType:d,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&W.expr.match.needsContext.test(r),namespace:z.join(".")},i),(u=s[M])||((u=s[M]=[]).delegateCount=0,b.setup&&!1!==b.setup.call(e,o,z,a)||e.addEventListener&&e.addEventListener(M,a)),b.add&&(b.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),r?u.splice(u.delegateCount++,0,l):u.push(l),W.event.global[M]=!0)},remove:function(e,t,n,o,r){var i,a,c,s,p,l,b,u,M,z,d,f=ce.hasData(e)&&ce.get(e);if(f&&(s=f.events)){for(p=(t=(t||"").match($)||[""]).length;p--;)if(M=d=(c=Ne.exec(t[p])||[])[1],z=(c[2]||"").split(".").sort(),M){for(b=W.event.special[M]||{},u=s[M=(o?b.delegateType:b.bindType)||M]||[],c=c[2]&&new RegExp("(^|\\.)"+z.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=u.length;i--;)l=u[i],!r&&d!==l.origType||n&&n.guid!==l.guid||c&&!c.test(l.namespace)||o&&o!==l.selector&&("**"!==o||!l.selector)||(u.splice(i,1),l.selector&&u.delegateCount--,b.remove&&b.remove.call(e,l));a&&!u.length&&(b.teardown&&!1!==b.teardown.call(e,z,f.handle)||W.removeEvent(e,M,f.handle),delete s[M])}else for(M in s)W.event.remove(e,M+t[p],n,o,!0);W.isEmptyObject(s)&&ce.remove(e,"handle events")}},dispatch:function(e){var t,n,o,r,i,a,c=new Array(arguments.length),s=W.event.fix(e),p=(ce.get(this,"events")||Object.create(null))[s.type]||[],l=W.event.special[s.type]||{};for(c[0]=s,t=1;t=1))for(;p!==this;p=p.parentNode||this)if(1===p.nodeType&&("click"!==e.type||!0!==p.disabled)){for(i=[],a={},n=0;n-1:W.find(r,this,null,[p]).length),a[r]&&i.push(o);i.length&&c.push({elem:p,handlers:i})}return p=this,s\s*$/g;function De(e,t){return w(e,"table")&&w(11!==t.nodeType?t:t.firstChild,"tr")&&W(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var n,o,r,i,a,c;if(1===t.nodeType){if(ce.hasData(e)&&(c=ce.get(e).events))for(r in ce.remove(t,"handle events"),c)for(n=0,o=c[r].length;n1&&"string"===typeof z&&!f.checkClone&&Ee.test(z))return e.each((function(r){var i=e.eq(r);d&&(t[0]=z.call(this,r,i.html())),He(i,t,n,o)}));if(u&&(i=(r=Le(t,e[0].ownerDocument,!1,e,o)).firstChild,1===r.childNodes.length&&(r=i),i||o)){for(c=(a=W.map(we(r,"script"),Pe)).length;b0&&xe(a,!s&&we(e,"script")),c},cleanData:function(e){for(var t,n,o,r=W.event.special,i=0;void 0!==(n=e[i]);i++)if(ie(n)){if(t=n[ce.expando]){if(t.events)for(o in t.events)r[o]?W.event.remove(n,o):W.removeEvent(n,o,t.handle);n[ce.expando]=void 0}n[se.expando]&&(n[se.expando]=void 0)}}}),W.fn.extend({detach:function(e){return Ue(this,e,!0)},remove:function(e){return Ue(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?W.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return He(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)}))},prepend:function(){return He(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return He(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return He(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(W.cleanData(we(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return W.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!_e.test(e)&&!Re[(ye.exec(e)||["",""])[1].toLowerCase()]){e=W.htmlPrefilter(e);try{for(;n=0&&(s+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-s-c-.5))||0),s+p}function st(e,t,n){var o=Ye(e),r=(!f.boxSizingReliable()||n)&&"border-box"===W.css(e,"boxSizing",!1,o),i=r,a=Ke(e,t,o),c="offset"+t[0].toUpperCase()+t.slice(1);if(Ve.test(a)){if(!n)return a;a="auto"}return(!f.boxSizingReliable()&&r||!f.reliableTrDimensions()&&w(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===W.css(e,"display",!1,o))&&e.getClientRects().length&&(r="border-box"===W.css(e,"boxSizing",!1,o),(i=c in e)&&(a=e[c])),(a=parseFloat(a)||0)+ct(e,t,n||(r?"border":"content"),i,o,a)+"px"}function pt(e,t,n,o,r){return new pt.prototype.init(e,t,n,o,r)}W.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ke(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,i,a,c=re(t),s=$e.test(t),p=e.style;if(s||(t=nt(c)),a=W.cssHooks[t]||W.cssHooks[c],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,o))?r:p[t];"string"===(i=typeof n)&&(r=Me.exec(n))&&r[1]&&(n=Ae(e,t,r),i="number"),null!=n&&n===n&&("number"!==i||s||(n+=r&&r[3]||(W.cssNumber[c]?"":"px")),f.clearCloneStyle||""!==n||0!==t.indexOf("background")||(p[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,o))||(s?p.setProperty(t,n):p[t]=n))}},css:function(e,t,n,o){var r,i,a,c=re(t);return $e.test(t)||(t=nt(c)),(a=W.cssHooks[t]||W.cssHooks[c])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Ke(e,t,o)),"normal"===r&&t in it&&(r=it[t]),""===n||n?(i=parseFloat(r),!0===n||isFinite(i)?i||0:r):r}}),W.each(["height","width"],(function(e,t){W.cssHooks[t]={get:function(e,n,o){if(n)return!ot.test(W.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?st(e,t,o):Qe(e,rt,(function(){return st(e,t,o)}))},set:function(e,n,o){var r,i=Ye(e),a=!f.scrollboxSize()&&"absolute"===i.position,c=(a||o)&&"border-box"===W.css(e,"boxSizing",!1,i),s=o?ct(e,t,o,c,i):0;return c&&a&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-ct(e,t,"border",!1,i)-.5)),s&&(r=Me.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=W.css(e,t)),at(0,n,s)}}})),W.cssHooks.marginLeft=Je(f.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ke(e,"marginLeft"))||e.getBoundingClientRect().left-Qe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),W.each({margin:"",padding:"",border:"Width"},(function(e,t){W.cssHooks[e+t]={expand:function(n){for(var o=0,r={},i="string"===typeof n?n.split(" "):[n];o<4;o++)r[e+ze[o]+t]=i[o]||i[o-2]||i[0];return r}},"margin"!==e&&(W.cssHooks[e+t].set=at)})),W.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var o,r,i={},a=0;if(Array.isArray(t)){for(o=Ye(e),r=t.length;a1)}}),W.Tween=pt,pt.prototype={constructor:pt,init:function(e,t,n,o,r,i){this.elem=e,this.prop=n,this.easing=r||W.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=i||(W.cssNumber[n]?"":"px")},cur:function(){var e=pt.propHooks[this.prop];return e&&e.get?e.get(this):pt.propHooks._default.get(this)},run:function(e){var t,n=pt.propHooks[this.prop];return this.options.duration?this.pos=t=W.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):pt.propHooks._default.set(this),this}},pt.prototype.init.prototype=pt.prototype,pt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=W.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){W.fx.step[e.prop]?W.fx.step[e.prop](e):1!==e.elem.nodeType||!W.cssHooks[e.prop]&&null==e.elem.style[nt(e.prop)]?e.elem[e.prop]=e.now:W.style(e.elem,e.prop,e.now+e.unit)}}},pt.propHooks.scrollTop=pt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},W.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},W.fx=pt.prototype.init,W.fx.step={};var lt,bt,ut=/^(?:toggle|show|hide)$/,Mt=/queueHooks$/;function zt(){bt&&(!1===A.hidden&&o.requestAnimationFrame?o.requestAnimationFrame(zt):o.setTimeout(zt,W.fx.interval),W.fx.tick())}function dt(){return o.setTimeout((function(){lt=void 0})),lt=Date.now()}function ft(e,t){var n,o=0,r={height:e};for(t=t?1:0;o<4;o+=2-t)r["margin"+(n=ze[o])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function Ot(e,t,n){for(var o,r=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),i=0,a=r.length;i1)},removeAttr:function(e){return this.each((function(){W.removeAttr(this,e)}))}}),W.extend({attr:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return"undefined"===typeof e.getAttribute?W.prop(e,t,n):(1===i&&W.isXMLDoc(e)||(r=W.attrHooks[t.toLowerCase()]||(W.expr.match.bool.test(t)?At:void 0)),void 0!==n?null===n?void W.removeAttr(e,t):r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(o=r.get(e,t))?o:null==(o=W.find.attr(e,t))?void 0:o)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&"radio"===t&&w(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o=0,r=t&&t.match($);if(r&&1===e.nodeType)for(;n=r[o++];)e.removeAttribute(n)}}),At={set:function(e,t,n){return!1===t?W.removeAttr(e,n):e.setAttribute(n,n),n}},W.each(W.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||W.find.attr;mt[t]=function(e,t,o){var r,i,a=t.toLowerCase();return o||(i=mt[a],mt[a]=r,r=null!=n(e,t,o)?a:null,mt[a]=i),r}}));var vt=/^(?:input|select|textarea|button)$/i,qt=/^(?:a|area)$/i;function gt(e){return(e.match($)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function Wt(e){return Array.isArray(e)?e:"string"===typeof e&&e.match($)||[]}W.fn.extend({prop:function(e,t){return ee(this,W.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[W.propFix[e]||e]}))}}),W.extend({prop:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&W.isXMLDoc(e)||(t=W.propFix[t]||t,r=W.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:e[t]=n:r&&"get"in r&&null!==(o=r.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=W.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||qt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(W.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),W.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){W.propFix[this.toLowerCase()]=this})),W.fn.extend({addClass:function(e){var t,n,o,r,i,a;return O(e)?this.each((function(t){W(this).addClass(e.call(this,t,yt(this)))})):(t=Wt(e)).length?this.each((function(){if(o=yt(this),n=1===this.nodeType&&" "+gt(o)+" "){for(i=0;i-1;)n=n.replace(" "+r+" "," ");a=gt(n),o!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,o,r,i,a=typeof e,c="string"===a||Array.isArray(e);return O(e)?this.each((function(n){W(this).toggleClass(e.call(this,n,yt(this),t),t)})):"boolean"===typeof t&&c?t?this.addClass(e):this.removeClass(e):(n=Wt(e),this.each((function(){if(c)for(i=W(this),r=0;r-1)return!0;return!1}});var Rt=/\r/g;W.fn.extend({val:function(e){var t,n,o,r=this[0];return arguments.length?(o=O(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=o?e.call(this,n,W(this).val()):e)?r="":"number"===typeof r?r+="":Array.isArray(r)&&(r=W.map(r,(function(e){return null==e?"":e+""}))),(t=W.valHooks[this.type]||W.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=W.valHooks[r.type]||W.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"===typeof(n=r.value)?n.replace(Rt,""):null==n?"":n:void 0}}),W.extend({valHooks:{option:{get:function(e){var t=W.find.attr(e,"value");return null!=t?t:gt(W.text(e))}},select:{get:function(e){var t,n,o,r=e.options,i=e.selectedIndex,a="select-one"===e.type,c=a?null:[],s=a?i+1:r.length;for(o=i<0?s:a?i:0;o-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),W.each(["radio","checkbox"],(function(){W.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=W.inArray(W(e).val(),t)>-1}},f.checkOn||(W.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var wt=o.location,xt={guid:Date.now()},kt=/\?/;W.parseXML=function(e){var t,n;if(!e||"string"!==typeof e)return null;try{t=(new o.DOMParser).parseFromString(e,"text/xml")}catch(r){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||W.error("Invalid XML: "+(n?W.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Lt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};W.extend(W.event,{trigger:function(e,t,n,r){var i,a,c,s,p,l,b,u,z=[n||A],d=M.call(e,"type")?e.type:e,f=M.call(e,"namespace")?e.namespace.split("."):[];if(a=u=c=n=n||A,3!==n.nodeType&&8!==n.nodeType&&!Lt.test(d+W.event.triggered)&&(d.indexOf(".")>-1&&(f=d.split("."),d=f.shift(),f.sort()),p=d.indexOf(":")<0&&"on"+d,(e=e[W.expando]?e:new W.Event(d,"object"===typeof e&&e)).isTrigger=r?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:W.makeArray(t,[e]),b=W.event.special[d]||{},r||!b.trigger||!1!==b.trigger.apply(n,t))){if(!r&&!b.noBubble&&!h(n)){for(s=b.delegateType||d,Lt.test(s+d)||(a=a.parentNode);a;a=a.parentNode)z.push(a),c=a;c===(n.ownerDocument||A)&&z.push(c.defaultView||c.parentWindow||o)}for(i=0;(a=z[i++])&&!e.isPropagationStopped();)u=a,e.type=i>1?s:b.bindType||d,(l=(ce.get(a,"events")||Object.create(null))[e.type]&&ce.get(a,"handle"))&&l.apply(a,t),(l=p&&a[p])&&l.apply&&ie(a)&&(e.result=l.apply(a,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||b._default&&!1!==b._default.apply(z.pop(),t)||!ie(n)||p&&O(n[d])&&!h(n)&&((c=n[p])&&(n[p]=null),W.event.triggered=d,e.isPropagationStopped()&&u.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&u.removeEventListener(d,Nt),W.event.triggered=void 0,c&&(n[p]=c)),e.result}},simulate:function(e,t,n){var o=W.extend(new W.Event,n,{type:e,isSimulated:!0});W.event.trigger(o,null,t)}}),W.fn.extend({trigger:function(e,t){return this.each((function(){W.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return W.event.trigger(e,t,n,!0)}});var Tt=/\[\]$/,St=/\r?\n/g,Bt=/^(?:submit|button|image|reset|file)$/i,Ct=/^(?:input|select|textarea|keygen)/i;function _t(e,t,n,o){var r;if(Array.isArray(t))W.each(t,(function(t,r){n||Tt.test(e)?o(e,r):_t(e+"["+("object"===typeof r&&null!=r?t:"")+"]",r,n,o)}));else if(n||"object"!==q(t))o(e,t);else for(r in t)_t(e+"["+r+"]",t[r],n,o)}W.param=function(e,t){var n,o=[],r=function(e,t){var n=O(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!W.isPlainObject(e))W.each(e,(function(){r(this.name,this.value)}));else for(n in e)_t(n,e[n],t,r);return o.join("&")},W.fn.extend({serialize:function(){return W.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=W.prop(this,"elements");return e?W.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!W(this).is(":disabled")&&Ct.test(this.nodeName)&&!Bt.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=W(this).val();return null==n?null:Array.isArray(n)?W.map(n,(function(e){return{name:t.name,value:e.replace(St,"\r\n")}})):{name:t.name,value:n.replace(St,"\r\n")}})).get()}});var Et=/%20/g,Xt=/#.*$/,Dt=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,jt=/^(?:GET|HEAD)$/,It=/^\/\//,Ft={},Ht={},Ut="*/".concat("*"),Vt=A.createElement("a");function $t(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var o,r=0,i=t.toLowerCase().match($)||[];if(O(n))for(;o=i[r++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(n)):(e[o]=e[o]||[]).push(n)}}function Yt(e,t,n,o){var r={},i=e===Ht;function a(c){var s;return r[c]=!0,W.each(e[c]||[],(function(e,c){var p=c(t,n,o);return"string"!==typeof p||i||r[p]?i?!(s=p):void 0:(t.dataTypes.unshift(p),a(p),!1)})),s}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Qt(e,t){var n,o,r=W.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:o||(o={}))[n]=t[n]);return o&&W.extend(!0,e,o),e}Vt.href=wt.href,W.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ut,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":W.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Qt(Qt(e,W.ajaxSettings),t):Qt(W.ajaxSettings,e)},ajaxPrefilter:$t(Ft),ajaxTransport:$t(Ht),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0),t=t||{};var n,r,i,a,c,s,p,l,b,u,M=W.ajaxSetup({},t),z=M.context||M,d=M.context&&(z.nodeType||z.jquery)?W(z):W.event,f=W.Deferred(),O=W.Callbacks("once memory"),h=M.statusCode||{},m={},v={},q="canceled",g={readyState:0,getResponseHeader:function(e){var t;if(p){if(!a)for(a={};t=Pt.exec(i);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return p?i:null},setRequestHeader:function(e,t){return null==p&&(e=v[e.toLowerCase()]=v[e.toLowerCase()]||e,m[e]=t),this},overrideMimeType:function(e){return null==p&&(M.mimeType=e),this},statusCode:function(e){var t;if(e)if(p)g.always(e[g.status]);else for(t in e)h[t]=[h[t],e[t]];return this},abort:function(e){var t=e||q;return n&&n.abort(t),y(0,t),this}};if(f.promise(g),M.url=((e||M.url||wt.href)+"").replace(It,wt.protocol+"//"),M.type=t.method||t.type||M.method||M.type,M.dataTypes=(M.dataType||"*").toLowerCase().match($)||[""],null==M.crossDomain){s=A.createElement("a");try{s.href=M.url,s.href=s.href,M.crossDomain=Vt.protocol+"//"+Vt.host!==s.protocol+"//"+s.host}catch(R){M.crossDomain=!0}}if(M.data&&M.processData&&"string"!==typeof M.data&&(M.data=W.param(M.data,M.traditional)),Yt(Ft,M,t,g),p)return g;for(b in(l=W.event&&M.global)&&0===W.active++&&W.event.trigger("ajaxStart"),M.type=M.type.toUpperCase(),M.hasContent=!jt.test(M.type),r=M.url.replace(Xt,""),M.hasContent?M.data&&M.processData&&0===(M.contentType||"").indexOf("application/x-www-form-urlencoded")&&(M.data=M.data.replace(Et,"+")):(u=M.url.slice(r.length),M.data&&(M.processData||"string"===typeof M.data)&&(r+=(kt.test(r)?"&":"?")+M.data,delete M.data),!1===M.cache&&(r=r.replace(Dt,"$1"),u=(kt.test(r)?"&":"?")+"_="+xt.guid+++u),M.url=r+u),M.ifModified&&(W.lastModified[r]&&g.setRequestHeader("If-Modified-Since",W.lastModified[r]),W.etag[r]&&g.setRequestHeader("If-None-Match",W.etag[r])),(M.data&&M.hasContent&&!1!==M.contentType||t.contentType)&&g.setRequestHeader("Content-Type",M.contentType),g.setRequestHeader("Accept",M.dataTypes[0]&&M.accepts[M.dataTypes[0]]?M.accepts[M.dataTypes[0]]+("*"!==M.dataTypes[0]?", "+Ut+"; q=0.01":""):M.accepts["*"]),M.headers)g.setRequestHeader(b,M.headers[b]);if(M.beforeSend&&(!1===M.beforeSend.call(z,g,M)||p))return g.abort();if(q="abort",O.add(M.complete),g.done(M.success),g.fail(M.error),n=Yt(Ht,M,t,g)){if(g.readyState=1,l&&d.trigger("ajaxSend",[g,M]),p)return g;M.async&&M.timeout>0&&(c=o.setTimeout((function(){g.abort("timeout")}),M.timeout));try{p=!1,n.send(m,y)}catch(R){if(p)throw R;y(-1,R)}}else y(-1,"No Transport");function y(e,t,a,s){var b,u,A,m,v,q=t;p||(p=!0,c&&o.clearTimeout(c),n=void 0,i=s||"",g.readyState=e>0?4:0,b=e>=200&&e<300||304===e,a&&(m=function(e,t,n){for(var o,r,i,a,c=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(r in c)if(c[r]&&c[r].test(o)){s.unshift(r);break}if(s[0]in n)i=s[0];else{for(r in n){if(!s[0]||e.converters[r+" "+s[0]]){i=r;break}a||(a=r)}i=i||a}if(i)return i!==s[0]&&s.unshift(i),n[i]}(M,g,a)),!b&&W.inArray("script",M.dataTypes)>-1&&W.inArray("json",M.dataTypes)<0&&(M.converters["text script"]=function(){}),m=function(e,t,n,o){var r,i,a,c,s,p={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)p[a.toLowerCase()]=e.converters[a];for(i=l.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!s&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=i,i=l.shift())if("*"===i)i=s;else if("*"!==s&&s!==i){if(!(a=p[s+" "+i]||p["* "+i]))for(r in p)if((c=r.split(" "))[1]===i&&(a=p[s+" "+c[0]]||p["* "+c[0]])){!0===a?a=p[r]:!0!==p[r]&&(i=c[0],l.unshift(c[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(R){return{state:"parsererror",error:a?R:"No conversion from "+s+" to "+i}}}return{state:"success",data:t}}(M,m,g,b),b?(M.ifModified&&((v=g.getResponseHeader("Last-Modified"))&&(W.lastModified[r]=v),(v=g.getResponseHeader("etag"))&&(W.etag[r]=v)),204===e||"HEAD"===M.type?q="nocontent":304===e?q="notmodified":(q=m.state,u=m.data,b=!(A=m.error))):(A=q,!e&&q||(q="error",e<0&&(e=0))),g.status=e,g.statusText=(t||q)+"",b?f.resolveWith(z,[u,q,g]):f.rejectWith(z,[g,q,A]),g.statusCode(h),h=void 0,l&&d.trigger(b?"ajaxSuccess":"ajaxError",[g,M,b?u:A]),O.fireWith(z,[g,q]),l&&(d.trigger("ajaxComplete",[g,M]),--W.active||W.event.trigger("ajaxStop")))}return g},getJSON:function(e,t,n){return W.get(e,t,n,"json")},getScript:function(e,t){return W.get(e,void 0,t,"script")}}),W.each(["get","post"],(function(e,t){W[t]=function(e,n,o,r){return O(n)&&(r=r||o,o=n,n=void 0),W.ajax(W.extend({url:e,type:t,dataType:r,data:n,success:o},W.isPlainObject(e)&&e))}})),W.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),W._evalUrl=function(e,t,n){return W.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){W.globalEval(e,t,n)}})},W.fn.extend({wrapAll:function(e){var t;return this[0]&&(O(e)&&(e=e.call(this[0])),t=W(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return O(e)?this.each((function(t){W(this).wrapInner(e.call(this,t))})):this.each((function(){var t=W(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=O(e);return this.each((function(n){W(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){W(this).replaceWith(this.childNodes)})),this}}),W.expr.pseudos.hidden=function(e){return!W.expr.pseudos.visible(e)},W.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},W.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(e){}};var Gt={0:200,1223:204},Kt=W.ajaxSettings.xhr();f.cors=!!Kt&&"withCredentials"in Kt,f.ajax=Kt=!!Kt,W.ajaxTransport((function(e){var t,n;if(f.cors||Kt&&!e.crossDomain)return{send:function(r,i){var a,c=e.xhr();if(c.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)c[a]=e.xhrFields[a];for(a in e.mimeType&&c.overrideMimeType&&c.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)c.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=n=c.onload=c.onerror=c.onabort=c.ontimeout=c.onreadystatechange=null,"abort"===e?c.abort():"error"===e?"number"!==typeof c.status?i(0,"error"):i(c.status,c.statusText):i(Gt[c.status]||c.status,c.statusText,"text"!==(c.responseType||"text")||"string"!==typeof c.responseText?{binary:c.response}:{text:c.responseText},c.getAllResponseHeaders()))}},c.onload=t(),n=c.onerror=c.ontimeout=t("error"),void 0!==c.onabort?c.onabort=n:c.onreadystatechange=function(){4===c.readyState&&o.setTimeout((function(){t&&n()}))},t=t("abort");try{c.send(e.hasContent&&e.data||null)}catch(s){if(t)throw s}},abort:function(){t&&t()}}})),W.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),W.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return W.globalEval(e),e}}}),W.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),W.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(o,r){t=W("