function BestInPlaceEditor(n){"use strict";this.element=n,this.initOptions(),this.bindForm(),this.initPlaceHolder(),jQuery(this.activator).bind("click",{editor:this},this.clickHandler)}!function(n,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?e(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return e(n)}:e(n)}("undefined"!=typeof window?window:this,function(n,e){function t(n){var e=!!n&&"length"in n&&n.length,t=Cn.type(n);return"function"!==t&&!Cn.isWindow(n)&&("array"===t||0===e||"number"==typeof e&&e>0&&e-1 in n)}function g(n,e,t){if(Cn.isFunction(e))return Cn.grep(n,function(n,g){return!!e.call(n,g,n)!==t});if(e.nodeType)return Cn.grep(n,function(n){return n===e!==t});if("string"==typeof e){if(pn.test(e))return Cn.filter(e,n,t);e=Cn.filter(e,n)}return Cn.grep(n,function(n){return Cn.inArray(n,e)>-1!==t})}function c(n,e){do n=n[e];while(n&&1!==n.nodeType);return n}function I(n){var e={};return Cn.each(n.match(Nn)||[],function(n,t){e[t]=!0}),e}function l(){gn.addEventListener?(gn.removeEventListener("DOMContentLoaded",i),n.removeEventListener("load",i)):(gn.detachEvent("onreadystatechange",i),n.detachEvent("onload",i))}function i(){(gn.addEventListener||"load"===n.event.type||"complete"===gn.readyState)&&(l(),Cn.ready())}function a(n,e,t){if(void 0===t&&1===n.nodeType){var g="data-"+e.replace(Hn,"-$1").toLowerCase();if(t=n.getAttribute(g),"string"==typeof t){try{t="true"===t||"false"!==t&&("null"===t?null:+t+""===t?+t:Yn.test(t)?Cn.parseJSON(t):t)}catch(n){}Cn.data(n,e,t)}else t=void 0}return t}function B(n){var e;for(e in n)if(("data"!==e||!Cn.isEmptyObject(n[e]))&&"toJSON"!==e)return!1;return!0}function b(n,e,t,g){if(xn(n)){var c,I,l=Cn.expando,i=n.nodeType,a=i?Cn.cache:n,B=i?n[l]:n[l]&&l;if(B&&a[B]&&(g||a[B].data)||void 0!==t||"string"!=typeof e)return B||(B=i?n[l]=tn.pop()||Cn.guid++:l),a[B]||(a[B]=i?{}:{toJSON:Cn.noop}),"object"!=typeof e&&"function"!=typeof e||(g?a[B]=Cn.extend(a[B],e):a[B].data=Cn.extend(a[B].data,e)),I=a[B],g||(I.data||(I.data={}),I=I.data),void 0!==t&&(I[Cn.camelCase(e)]=t),"string"==typeof e?(c=I[e],null==c&&(c=I[Cn.camelCase(e)])):c=I,c}}function d(n,e,t){if(xn(n)){var g,c,I=n.nodeType,l=I?Cn.cache:n,i=I?n[Cn.expando]:Cn.expando;if(l[i]){if(e&&(g=t?l[i]:l[i].data)){Cn.isArray(e)?e=e.concat(Cn.map(e,Cn.camelCase)):e in g?e=[e]:(e=Cn.camelCase(e),e=e in g?[e]:e.split(" ")),c=e.length;for(;c--;)delete g[e[c]];if(t?!B(g):!Cn.isEmptyObject(g))return}(t||(delete l[i].data,B(l[i])))&&(I?Cn.cleanData([n],!0):on.deleteExpando||l!=l.window?delete l[i]:l[i]=void 0)}}}function o(n,e,t,g){var c,I=1,l=20,i=g?function(){return g.cur()}:function(){return Cn.css(n,e,"")},a=i(),B=t&&t[3]||(Cn.cssNumber[e]?"":"px"),b=(Cn.cssNumber[e]||"px"!==B&&+a)&&Tn.exec(Cn.css(n,e));if(b&&b[3]!==B){B=B||b[3],t=t||[],b=+a||1;do I=I||".5",b/=I,Cn.style(n,e,b+B);while(I!==(I=i()/a)&&1!==I&&--l)}return t&&(b=+b||+a||0,c=t[1]?b+(t[1]+1)*t[2]:+t[2],g&&(g.unit=B,g.start=b,g.end=c)),c}function u(n){var e=Ln.split("|"),t=n.createDocumentFragment();if(t.createElement)for(;e.length;)t.createElement(e.pop());return t}function C(n,e){var t,g,c=0,I="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(e||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(e||"*"):void 0;if(!I)for(I=[],t=n.childNodes||n;null!=(g=t[c]);c++)!e||Cn.nodeName(g,e)?I.push(g):Cn.merge(I,C(g,e));return void 0===e||e&&Cn.nodeName(n,e)?Cn.merge([n],I):I}function s(n,e){for(var t,g=0;null!=(t=n[g]);g++)Cn._data(t,"globalEval",!e||Cn._data(e[g],"globalEval"))}function G(n){Dn.test(n.type)&&(n.defaultChecked=n.checked)}function r(n,e,t,g,c){for(var I,l,i,a,B,b,d,o=n.length,r=u(e),Q=[],m=0;m"!==d[1]||Mn.test(l)?0:a:a.firstChild,I=l&&l.childNodes.length;I--;)Cn.nodeName(b=l.childNodes[I],"tbody")&&!b.childNodes.length&&l.removeChild(b);for(Cn.merge(Q,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=r.lastChild}else Q.push(e.createTextNode(l));for(a&&r.removeChild(a),on.appendChecked||Cn.grep(C(Q,"input"),G),m=0;l=Q[m++];)if(g&&Cn.inArray(l,g)>-1)c&&c.push(l);else if(i=Cn.contains(l.ownerDocument,l),a=C(r.appendChild(l),"script"),i&&s(a),t)for(I=0;l=a[I++];)kn.test(l.type||"")&&t.push(l);return a=null,r}function Q(){return!0}function m(){return!1}function Z(){try{return gn.activeElement}catch(n){}}function A(n,e,t,g,c,I){var l,i;if("object"==typeof e){"string"!=typeof t&&(g=g||t,t=void 0);for(i in e)A(n,i,t,g,e[i],I);return n}if(null==g&&null==c?(c=t,g=t=void 0):null==c&&("string"==typeof t?(c=g,g=void 0):(c=g,g=t,t=void 0)),c===!1)c=m;else if(!c)return n;return 1===I&&(l=c,c=function(n){return Cn().off(n),l.apply(this,arguments)},c.guid=l.guid||(l.guid=Cn.guid++)),n.each(function(){Cn.event.add(this,e,c,g,t)})}function F(n,e){return Cn.nodeName(n,"table")&&Cn.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function h(n){return n.type=(null!==Cn.find.attr(n,"type"))+"/"+n.type,n}function p(n){var e=Ie.exec(n.type);return e?n.type=e[1]:n.removeAttribute("type"),n}function X(n,e){if(1===e.nodeType&&Cn.hasData(n)){var t,g,c,I=Cn._data(n),l=Cn._data(e,I),i=I.events;if(i){delete l.handle,l.events={};for(t in i)for(g=0,c=i[t].length;g1&&"string"==typeof u&&!on.checkClone&&ce.test(u))return n.each(function(c){var I=n.eq(c);s&&(e[0]=u.call(this,c,I.html())),W(I,e,t,g)});if(d&&(B=r(e,n[0].ownerDocument,!1,n,g),c=B.firstChild,1===B.childNodes.length&&(B=c),c||g)){for(i=Cn.map(C(B,"script"),h),l=i.length;b")).appendTo(e.documentElement),e=(Be[0].contentWindow||Be[0].contentDocument).document,e.write(),e.close(),t=V(n,e),Be.detach()),be[n]=t),t}function v(n,e){return{get:function(){return n()?void delete this.get:(this.get=e).apply(this,arguments)}}}function R(n){if(n in Xe)return n;for(var e=n.charAt(0).toUpperCase()+n.slice(1),t=pe.length;t--;)if(n=pe[t]+e,n in Xe)return n}function x(n,e){for(var t,g,c,I=[],l=0,i=n.length;l=0&&t=0},isEmptyObject:function(n){var e;for(e in n)return!1;return!0},isPlainObject:function(n){var e;if(!n||"object"!==Cn.type(n)||n.nodeType||Cn.isWindow(n))return!1;try{if(n.constructor&&!dn.call(n,"constructor")&&!dn.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!on.ownFirst)for(e in n)return dn.call(n,e);for(e in n);return void 0===e||dn.call(n,e)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?Bn[bn.call(n)]||"object":typeof n},globalEval:function(e){e&&Cn.trim(e)&&(n.execScript||function(e){n.eval.call(n,e)})(e)},camelCase:function(n){return n.replace(Gn,"ms-").replace(rn,Qn)},nodeName:function(n,e){return n.nodeName&&n.nodeName.toLowerCase()===e.toLowerCase()},each:function(n,e){var g,c=0;if(t(n))for(g=n.length;cF.cacheLength&&delete n[e.shift()],n[t+" "]=g}var e=[];return n}function g(n){return n[S]=!0,n}function c(n){var e=R.createElement("div");try{return!!n(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function I(n,e){for(var t=n.split("|"),g=t.length;g--;)F.attrHandle[t[g]]=e}function l(n,e){var t=e&&n,g=t&&1===n.nodeType&&1===e.nodeType&&(~e.sourceIndex||j)-(~n.sourceIndex||j);if(g)return g;if(t)for(;t=t.nextSibling;)if(t===e)return-1;return n?1:-1}function i(n){return function(e){var t=e.nodeName.toLowerCase();return"input"===t&&e.type===n}}function a(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function B(n){return g(function(e){return e=+e,g(function(t,g){for(var c,I=n([],t.length,e),l=I.length;l--;)t[c=I[l]]&&(t[c]=!(g[c]=t[c]))})})}function b(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function d(){}function o(n){for(var e=0,t=n.length,g="";e1?function(e,t,g){for(var c=n.length;c--;)if(!n[c](e,t,g))return!1;return!0}:n[0]}function s(n,t,g){for(var c=0,I=t.length;c-1&&(g[B]=!(l[B]=d))}}else m=G(m===l?m.splice(C,m.length):m),I?I(null,l,m,a):q.apply(l,m)})}function Q(n){for(var e,t,g,c=n.length,I=F.relative[n[0].type],l=I||F.relative[" "],i=I?1:0,a=u(function(n){return n===e},l,!0),B=u(function(n){return nn(e,n)>-1},l,!0),b=[function(n,t,g){var c=!I&&(g||t!==U)||((e=t).nodeType?a(n,t,g):B(n,t,g));return e=null,c}];i1&&C(b),i>1&&o(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(an,"$1"),t,i0,I=n.length>0,l=function(g,l,i,a,B){var b,d,o,u=0,C="0",s=g&&[],r=[],Q=U,m=g||I&&F.find.TAG("*",B),Z=D+=null==Q?1:Math.random()||.1,A=m.length;for(B&&(U=l===R||l||B);C!==A&&null!=(b=m[C]);C++){if(I&&b){for(d=0,l||b.ownerDocument===R||(v(b),i=!Y);o=n[d++];)if(o(b,l||R,i)){a.push(b);break}B&&(D=Z)}c&&((b=!o&&b)&&u--,g&&s.push(b))}if(u+=C,c&&C!==u){for(d=0;o=t[d++];)o(s,r,l,i);if(g){if(u>0)for(;C--;)s[C]||r[C]||(r[C]=_.call(a));r=G(r)}q.apply(a,r),B&&!g&&r.length>0&&u+t.length>1&&e.uniqueSort(a)}return B&&(D=Z,U=Q),s};return c?g(l):l}var Z,A,F,h,p,X,y,W,U,V,N,v,R,x,Y,H,J,T,f,S="sizzle"+1*new Date,E=n.document,D=0,w=0,k=t(),O=t(),L=t(),z=function(n,e){return n===e&&(N=!0),0},j=1<<31,M={}.hasOwnProperty,K=[],_=K.pop,P=K.push,q=K.push,$=K.slice,nn=function(n,e){for(var t=0,g=n.length;t+~]|"+tn+")"+tn+"*"),dn=new RegExp("="+tn+"*([^\\]'\"]*?)"+tn+"*\\]","g"),on=new RegExp(In),un=new RegExp("^"+gn+"$"),Cn={ID:new RegExp("^#("+gn+")"),CLASS:new RegExp("^\\.("+gn+")"),TAG:new RegExp("^("+gn+"|[*])"),ATTR:new RegExp("^"+cn),PSEUDO:new RegExp("^"+In),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tn+"*(even|odd|(([+-]|)(\\d*)n|)"+tn+"*(?:([+-]|)"+tn+"*(\\d+)|))"+tn+"*\\)|)","i"),bool:new RegExp("^(?:"+en+")$","i"),needsContext:new RegExp("^"+tn+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tn+"*((?:-\\d)?\\d*)"+tn+"*\\)|)(?=[^-]|$)","i")},sn=/^(?:input|select|textarea|button)$/i,Gn=/^h\d$/i,rn=/^[^{]+\{\s*\[native \w/,Qn=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mn=/[+~]/,Zn=/'|\\/g,An=new RegExp("\\\\([\\da-f]{1,6}"+tn+"?|("+tn+")|.)","ig"),Fn=function(n,e,t){var g="0x"+e-65536;return g!==g||t?e:g<0?String.fromCharCode(g+65536):String.fromCharCode(g>>10|55296,1023&g|56320)},hn=function(){v()};try{q.apply(K=$.call(E.childNodes),E.childNodes),K[E.childNodes.length].nodeType}catch(n){q={apply:K.length?function(n,e){P.apply(n,$.call(e))}:function(n,e){for(var t=n.length,g=0;n[t++]=e[g++];);n.length=t-1}}}A=e.support={},p=e.isXML=function(n){var e=n&&(n.ownerDocument||n).documentElement;return!!e&&"HTML"!==e.nodeName},v=e.setDocument=function(n){var e,t,g=n?n.ownerDocument||n:E;return g!==R&&9===g.nodeType&&g.documentElement?(R=g,x=R.documentElement,Y=!p(R),(t=R.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",hn,!1):t.attachEvent&&t.attachEvent("onunload",hn)),A.attributes=c(function(n){return n.className="i",!n.getAttribute("className")}),A.getElementsByTagName=c(function(n){return n.appendChild(R.createComment("")),!n.getElementsByTagName("*").length}),A.getElementsByClassName=rn.test(R.getElementsByClassName),A.getById=c(function(n){return x.appendChild(n).id=S,!R.getElementsByName||!R.getElementsByName(S).length}),A.getById?(F.find.ID=function(n,e){if("undefined"!=typeof e.getElementById&&Y){var t=e.getElementById(n);return t?[t]:[]}},F.filter.ID=function(n){var e=n.replace(An,Fn);return function(n){return n.getAttribute("id")===e}}):(delete F.find.ID,F.filter.ID=function(n){var e=n.replace(An,Fn);return function(n){var t="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return t&&t.value===e}}),F.find.TAG=A.getElementsByTagName?function(n,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(n):A.qsa?e.querySelectorAll(n):void 0}:function(n,e){var t,g=[],c=0,I=e.getElementsByTagName(n);if("*"===n){for(;t=I[c++];)1===t.nodeType&&g.push(t);return g}return I},F.find.CLASS=A.getElementsByClassName&&function(n,e){if("undefined"!=typeof e.getElementsByClassName&&Y)return e.getElementsByClassName(n)},J=[],H=[],(A.qsa=rn.test(R.querySelectorAll))&&(c(function(n){x.appendChild(n).innerHTML="",n.querySelectorAll("[msallowcapture^='']").length&&H.push("[*^$]="+tn+"*(?:''|\"\")"),n.querySelectorAll("[selected]").length||H.push("\\["+tn+"*(?:value|"+en+")"),n.querySelectorAll("[id~="+S+"-]").length||H.push("~="),n.querySelectorAll(":checked").length||H.push(":checked"),n.querySelectorAll("a#"+S+"+*").length||H.push(".#.+[+~]")}),c(function(n){var e=R.createElement("input");e.setAttribute("type","hidden"),n.appendChild(e).setAttribute("name","D"),n.querySelectorAll("[name=d]").length&&H.push("name"+tn+"*[*^$|!~]?="),n.querySelectorAll(":enabled").length||H.push(":enabled",":disabled"),n.querySelectorAll("*,:x"),H.push(",.*:")})),(A.matchesSelector=rn.test(T=x.matches||x.webkitMatchesSelector||x.mozMatchesSelector||x.oMatchesSelector||x.msMatchesSelector))&&c(function(n){A.disconnectedMatch=T.call(n,"div"),T.call(n,"[s!='']:x"),J.push("!=",In)}),H=H.length&&new RegExp(H.join("|")),J=J.length&&new RegExp(J.join("|")),e=rn.test(x.compareDocumentPosition),f=e||rn.test(x.contains)?function(n,e){var t=9===n.nodeType?n.documentElement:n,g=e&&e.parentNode;return n===g||!(!g||1!==g.nodeType||!(t.contains?t.contains(g):n.compareDocumentPosition&&16&n.compareDocumentPosition(g)))}:function(n,e){if(e)for(;e=e.parentNode;)if(e===n)return!0;return!1},z=e?function(n,e){if(n===e)return N=!0,0;var t=!n.compareDocumentPosition-!e.compareDocumentPosition;return t?t:(t=(n.ownerDocument||n)===(e.ownerDocument||e)?n.compareDocumentPosition(e):1,1&t||!A.sortDetached&&e.compareDocumentPosition(n)===t?n===R||n.ownerDocument===E&&f(E,n)?-1:e===R||e.ownerDocument===E&&f(E,e)?1:V?nn(V,n)-nn(V,e):0:4&t?-1:1)}:function(n,e){if(n===e)return N=!0,0;var t,g=0,c=n.parentNode,I=e.parentNode,i=[n],a=[e];if(!c||!I)return n===R?-1:e===R?1:c?-1:I?1:V?nn(V,n)-nn(V,e):0;if(c===I)return l(n,e);for(t=n;t=t.parentNode;)i.unshift(t);for(t=e;t=t.parentNode;)a.unshift(t);for(;i[g]===a[g];)g++;return g?l(i[g],a[g]):i[g]===E?-1:a[g]===E?1:0},R):R},e.matches=function(n,t){return e(n,null,null,t)},e.matchesSelector=function(n,t){if((n.ownerDocument||n)!==R&&v(n),t=t.replace(dn,"='$1']"),A.matchesSelector&&Y&&!L[t+" "]&&(!J||!J.test(t))&&(!H||!H.test(t)))try{var g=T.call(n,t);if(g||A.disconnectedMatch||n.document&&11!==n.document.nodeType)return g}catch(n){}return e(t,R,null,[n]).length>0},e.contains=function(n,e){return(n.ownerDocument||n)!==R&&v(n),f(n,e)},e.attr=function(n,e){(n.ownerDocument||n)!==R&&v(n);var t=F.attrHandle[e.toLowerCase()],g=t&&M.call(F.attrHandle,e.toLowerCase())?t(n,e,!Y):void 0;return void 0!==g?g:A.attributes||!Y?n.getAttribute(e):(g=n.getAttributeNode(e))&&g.specified?g.value:null},e.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n)},e.uniqueSort=function(n){var e,t=[],g=0,c=0;if(N=!A.detectDuplicates,V=!A.sortStable&&n.slice(0),n.sort(z),N){for(;e=n[c++];)e===n[c]&&(g=t.push(c));for(;g--;)n.splice(t[g],1)}return V=null,n},h=e.getText=function(n){var e,t="",g=0,c=n.nodeType;if(c){if(1===c||9===c||11===c){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)t+=h(n)}else if(3===c||4===c)return n.nodeValue}else for(;e=n[g++];)t+=h(e);return t},F=e.selectors={cacheLength:50,createPseudo:g,match:Cn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(An,Fn),n[3]=(n[3]||n[4]||n[5]||"").replace(An,Fn),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||e.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&e.error(n[0]),n},PSEUDO:function(n){var e,t=!n[6]&&n[2];return Cn.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&on.test(t)&&(e=X(t,!0))&&(e=t.indexOf(")",t.length-e)-t.length)&&(n[0]=n[0].slice(0,e),n[2]=t.slice(0,e)),n.slice(0,3))}},filter:{TAG:function(n){var e=n.replace(An,Fn).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===e}},CLASS:function(n){var e=k[n+" "];return e||(e=new RegExp("(^|"+tn+")"+n+"("+tn+"|$)"))&&k(n,function(n){return e.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,g){return function(c){var I=e.attr(c,n);return null==I?"!="===t:!t||(I+="","="===t?I===g:"!="===t?I!==g:"^="===t?g&&0===I.indexOf(g):"*="===t?g&&I.indexOf(g)>-1:"$="===t?g&&I.slice(-g.length)===g:"~="===t?(" "+I.replace(ln," ")+" ").indexOf(g)>-1:"|="===t&&(I===g||I.slice(0,g.length+1)===g+"-"))}},CHILD:function(n,e,t,g,c){var I="nth"!==n.slice(0,3),l="last"!==n.slice(-4),i="of-type"===e;return 1===g&&0===c?function(n){return!!n.parentNode}:function(e,t,a){var B,b,d,o,u,C,s=I!==l?"nextSibling":"previousSibling",G=e.parentNode,r=i&&e.nodeName.toLowerCase(),Q=!a&&!i,m=!1;if(G){if(I){for(;s;){for(o=e;o=o[s];)if(i?o.nodeName.toLowerCase()===r:1===o.nodeType)return!1;C=s="only"===n&&!C&&"nextSibling"}return!0}if(C=[l?G.firstChild:G.lastChild],l&&Q){for(o=G,d=o[S]||(o[S]={}),b=d[o.uniqueID]||(d[o.uniqueID]={}),B=b[n]||[],u=B[0]===D&&B[1],m=u&&B[2],o=u&&G.childNodes[u];o=++u&&o&&o[s]||(m=u=0)||C.pop();)if(1===o.nodeType&&++m&&o===e){b[n]=[D,u,m];break}}else if(Q&&(o=e,d=o[S]||(o[S]={}),b=d[o.uniqueID]||(d[o.uniqueID]={}),B=b[n]||[],u=B[0]===D&&B[1],m=u),m===!1)for(;(o=++u&&o&&o[s]||(m=u=0)||C.pop())&&((i?o.nodeName.toLowerCase()!==r:1!==o.nodeType)||!++m||(Q&&(d=o[S]||(o[S]={}),b=d[o.uniqueID]||(d[o.uniqueID]={}),b[n]=[D,m]),o!==e)););return m-=c,m===g||m%g===0&&m/g>=0}}},PSEUDO:function(n,t){var c,I=F.pseudos[n]||F.setFilters[n.toLowerCase()]||e.error("unsupported pseudo: "+n);return I[S]?I(t):I.length>1?(c=[n,n,"",t], F.setFilters.hasOwnProperty(n.toLowerCase())?g(function(n,e){for(var g,c=I(n,t),l=c.length;l--;)g=nn(n,c[l]),n[g]=!(e[g]=c[l])}):function(n){return I(n,0,c)}):I}},pseudos:{not:g(function(n){var e=[],t=[],c=y(n.replace(an,"$1"));return c[S]?g(function(n,e,t,g){for(var I,l=c(n,null,g,[]),i=n.length;i--;)(I=l[i])&&(n[i]=!(e[i]=I))}):function(n,g,I){return e[0]=n,c(e,null,I,t),e[0]=null,!t.pop()}}),has:g(function(n){return function(t){return e(n,t).length>0}}),contains:g(function(n){return n=n.replace(An,Fn),function(e){return(e.textContent||e.innerText||h(e)).indexOf(n)>-1}}),lang:g(function(n){return un.test(n||"")||e.error("unsupported lang: "+n),n=n.replace(An,Fn).toLowerCase(),function(e){var t;do if(t=Y?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return t=t.toLowerCase(),t===n||0===t.indexOf(n+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(n){return n===x},focus:function(n){return n===R.activeElement&&(!R.hasFocus||R.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var e=n.nodeName.toLowerCase();return"input"===e&&!!n.checked||"option"===e&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!F.pseudos.empty(n)},header:function(n){return Gn.test(n.nodeName)},input:function(n){return sn.test(n.nodeName)},button:function(n){var e=n.nodeName.toLowerCase();return"input"===e&&"button"===n.type||"button"===e},text:function(n){var e;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(e=n.getAttribute("type"))||"text"===e.toLowerCase())},first:B(function(){return[0]}),last:B(function(n,e){return[e-1]}),eq:B(function(n,e,t){return[t<0?t+e:t]}),even:B(function(n,e){for(var t=0;t=0;)n.push(g);return n}),gt:B(function(n,e,t){for(var g=t<0?t+e:t;++g2&&"ID"===(l=I[0]).type&&A.getById&&9===e.nodeType&&Y&&F.relative[I[1].type]){if(e=(F.find.ID(l.matches[0].replace(An,Fn),e)||[])[0],!e)return t;B&&(e=e.parentNode),n=n.slice(I.shift().value.length)}for(c=Cn.needsContext.test(n)?0:I.length;c--&&(l=I[c],!F.relative[i=l.type]);)if((a=F.find[i])&&(g=a(l.matches[0].replace(An,Fn),mn.test(I[0].type)&&b(e.parentNode)||e))){if(I.splice(c,1),n=g.length&&o(I),!n)return q.apply(t,g),t;break}}return(B||y(n,d))(g,e,!Y,t,!e||mn.test(n)&&b(e.parentNode)||e),t},A.sortStable=S.split("").sort(z).join("")===S,A.detectDuplicates=!!N,v(),A.sortDetached=c(function(n){return 1&n.compareDocumentPosition(R.createElement("div"))}),c(function(n){return n.innerHTML="","#"===n.firstChild.getAttribute("href")})||I("type|href|height|width",function(n,e,t){if(!t)return n.getAttribute(e,"type"===e.toLowerCase()?1:2)}),A.attributes&&c(function(n){return n.innerHTML="",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||I("value",function(n,e,t){if(!t&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),c(function(n){return null==n.getAttribute("disabled")})||I(en,function(n,e,t){var g;if(!t)return n[e]===!0?e.toLowerCase():(g=n.getAttributeNode(e))&&g.specified?g.value:null}),e}(n);Cn.find=mn,Cn.expr=mn.selectors,Cn.expr[":"]=Cn.expr.pseudos,Cn.uniqueSort=Cn.unique=mn.uniqueSort,Cn.text=mn.getText,Cn.isXMLDoc=mn.isXML,Cn.contains=mn.contains;var Zn=function(n,e,t){for(var g=[],c=void 0!==t;(n=n[e])&&9!==n.nodeType;)if(1===n.nodeType){if(c&&Cn(n).is(t))break;g.push(n)}return g},An=function(n,e){for(var t=[];n;n=n.nextSibling)1===n.nodeType&&n!==e&&t.push(n);return t},Fn=Cn.expr.match.needsContext,hn=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,pn=/^.[^:#\[\.,]*$/;Cn.filter=function(n,e,t){var g=e[0];return t&&(n=":not("+n+")"),1===e.length&&1===g.nodeType?Cn.find.matchesSelector(g,n)?[g]:[]:Cn.find.matches(n,Cn.grep(e,function(n){return 1===n.nodeType}))},Cn.fn.extend({find:function(n){var e,t=[],g=this,c=g.length;if("string"!=typeof n)return this.pushStack(Cn(n).filter(function(){for(e=0;e1?Cn.unique(t):t),t.selector=this.selector?this.selector+" "+n:n,t},filter:function(n){return this.pushStack(g(this,n||[],!1))},not:function(n){return this.pushStack(g(this,n||[],!0))},is:function(n){return!!g(this,"string"==typeof n&&Fn.test(n)?Cn(n):n||[],!1).length}});var Xn,yn=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Wn=Cn.fn.init=function(n,e,t){var g,c;if(!n)return this;if(t=t||Xn,"string"==typeof n){if(g="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:yn.exec(n),!g||!g[1]&&e)return!e||e.jquery?(e||t).find(n):this.constructor(e).find(n);if(g[1]){if(e=e instanceof Cn?e[0]:e,Cn.merge(this,Cn.parseHTML(g[1],e&&e.nodeType?e.ownerDocument||e:gn,!0)),hn.test(g[1])&&Cn.isPlainObject(e))for(g in e)Cn.isFunction(this[g])?this[g](e[g]):this.attr(g,e[g]);return this}if(c=gn.getElementById(g[2]),c&&c.parentNode){if(c.id!==g[2])return Xn.find(n);this.length=1,this[0]=c}return this.context=gn,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):Cn.isFunction(n)?"undefined"!=typeof t.ready?t.ready(n):n(Cn):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),Cn.makeArray(n,this))};Wn.prototype=Cn.fn,Xn=Cn(gn);var Un=/^(?:parents|prev(?:Until|All))/,Vn={children:!0,contents:!0,next:!0,prev:!0};Cn.fn.extend({has:function(n){var e,t=Cn(n,this),g=t.length;return this.filter(function(){for(e=0;e-1:1===t.nodeType&&Cn.find.matchesSelector(t,n))){I.push(t);break}return this.pushStack(I.length>1?Cn.uniqueSort(I):I)},index:function(n){return n?"string"==typeof n?Cn.inArray(this[0],Cn(n)):Cn.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,e){return this.pushStack(Cn.uniqueSort(Cn.merge(this.get(),Cn(n,e))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}}),Cn.each({parent:function(n){var e=n.parentNode;return e&&11!==e.nodeType?e:null},parents:function(n){return Zn(n,"parentNode")},parentsUntil:function(n,e,t){return Zn(n,"parentNode",t)},next:function(n){return c(n,"nextSibling")},prev:function(n){return c(n,"previousSibling")},nextAll:function(n){return Zn(n,"nextSibling")},prevAll:function(n){return Zn(n,"previousSibling")},nextUntil:function(n,e,t){return Zn(n,"nextSibling",t)},prevUntil:function(n,e,t){return Zn(n,"previousSibling",t)},siblings:function(n){return An((n.parentNode||{}).firstChild,n)},children:function(n){return An(n.firstChild)},contents:function(n){return Cn.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:Cn.merge([],n.childNodes)}},function(n,e){Cn.fn[n]=function(t,g){var c=Cn.map(this,e,t);return"Until"!==n.slice(-5)&&(g=t),g&&"string"==typeof g&&(c=Cn.filter(g,c)),this.length>1&&(Vn[n]||(c=Cn.uniqueSort(c)),Un.test(n)&&(c=c.reverse())),this.pushStack(c)}});var Nn=/\S+/g;Cn.Callbacks=function(n){n="string"==typeof n?I(n):Cn.extend({},n);var e,t,g,c,l=[],i=[],a=-1,B=function(){for(c=n.once,g=e=!0;i.length;a=-1)for(t=i.shift();++a-1;)l.splice(t,1),t<=a&&a--}),this},has:function(n){return n?Cn.inArray(n,l)>-1:l.length>0},empty:function(){return l&&(l=[]),this},disable:function(){return c=i=[],l=t="",this},disabled:function(){return!l},lock:function(){return c=!0,t||b.disable(),this},locked:function(){return!!c},fireWith:function(n,t){return c||(t=t||[],t=[n,t.slice?t.slice():t],i.push(t),e||B()),this},fire:function(){return b.fireWith(this,arguments),this},fired:function(){return!!g}};return b},Cn.extend({Deferred:function(n){var e=[["resolve","done",Cn.Callbacks("once memory"),"resolved"],["reject","fail",Cn.Callbacks("once memory"),"rejected"],["notify","progress",Cn.Callbacks("memory")]],t="pending",g={state:function(){return t},always:function(){return c.done(arguments).fail(arguments),this},then:function(){var n=arguments;return Cn.Deferred(function(t){Cn.each(e,function(e,I){var l=Cn.isFunction(n[e])&&n[e];c[I[1]](function(){var n=l&&l.apply(this,arguments);n&&Cn.isFunction(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[I[0]+"With"](this===g?t.promise():this,l?[n]:arguments)})}),n=null}).promise()},promise:function(n){return null!=n?Cn.extend(n,g):g}},c={};return g.pipe=g.then,Cn.each(e,function(n,I){var l=I[2],i=I[3];g[I[1]]=l.add,i&&l.add(function(){t=i},e[1^n][2].disable,e[2][2].lock),c[I[0]]=function(){return c[I[0]+"With"](this===c?g:this,arguments),this},c[I[0]+"With"]=l.fireWith}),g.promise(c),n&&n.call(c,c),c},when:function(n){var e,t,g,c=0,I=cn.call(arguments),l=I.length,i=1!==l||n&&Cn.isFunction(n.promise)?l:0,a=1===i?n:Cn.Deferred(),B=function(n,t,g){return function(c){t[n]=this,g[n]=arguments.length>1?cn.call(arguments):c,g===e?a.notifyWith(t,g):--i||a.resolveWith(t,g)}};if(l>1)for(e=new Array(l),t=new Array(l),g=new Array(l);c0||(vn.resolveWith(gn,[Cn]),Cn.fn.triggerHandler&&(Cn(gn).triggerHandler("ready"),Cn(gn).off("ready"))))}}),Cn.ready.promise=function(e){if(!vn)if(vn=Cn.Deferred(),"complete"===gn.readyState||"loading"!==gn.readyState&&!gn.documentElement.doScroll)n.setTimeout(Cn.ready);else if(gn.addEventListener)gn.addEventListener("DOMContentLoaded",i),n.addEventListener("load",i);else{gn.attachEvent("onreadystatechange",i),n.attachEvent("onload",i);var t=!1;try{t=null==n.frameElement&&gn.documentElement}catch(n){}t&&t.doScroll&&!function e(){if(!Cn.isReady){try{t.doScroll("left")}catch(t){return n.setTimeout(e,50)}l(),Cn.ready()}}()}return vn.promise(e)},Cn.ready.promise();var Rn;for(Rn in Cn(on))break;on.ownFirst="0"===Rn,on.inlineBlockNeedsLayout=!1,Cn(function(){var n,e,t,g;t=gn.getElementsByTagName("body")[0],t&&t.style&&(e=gn.createElement("div"),g=gn.createElement("div"),g.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(g).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",on.inlineBlockNeedsLayout=n=3===e.offsetWidth,n&&(t.style.zoom=1)),t.removeChild(g))}),function(){var n=gn.createElement("div");on.deleteExpando=!0;try{delete n.test}catch(n){on.deleteExpando=!1}n=null}();var xn=function(n){var e=Cn.noData[(n.nodeName+" ").toLowerCase()],t=+n.nodeType||1;return(1===t||9===t)&&(!e||e!==!0&&n.getAttribute("classid")===e)},Yn=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Hn=/([A-Z])/g;Cn.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?Cn.cache[n[Cn.expando]]:n[Cn.expando],!!n&&!B(n)},data:function(n,e,t){return b(n,e,t)},removeData:function(n,e){return d(n,e)},_data:function(n,e,t){return b(n,e,t,!0)},_removeData:function(n,e){return d(n,e,!0)}}),Cn.fn.extend({data:function(n,e){var t,g,c,I=this[0],l=I&&I.attributes;if(void 0===n){if(this.length&&(c=Cn.data(I),1===I.nodeType&&!Cn._data(I,"parsedAttrs"))){for(t=l.length;t--;)l[t]&&(g=l[t].name,0===g.indexOf("data-")&&(g=Cn.camelCase(g.slice(5)),a(I,g,c[g])));Cn._data(I,"parsedAttrs",!0)}return c}return"object"==typeof n?this.each(function(){Cn.data(this,n)}):arguments.length>1?this.each(function(){Cn.data(this,n,e)}):I?a(I,n,Cn.data(I,n)):void 0},removeData:function(n){return this.each(function(){Cn.removeData(this,n)})}}),Cn.extend({queue:function(n,e,t){var g;if(n)return e=(e||"fx")+"queue",g=Cn._data(n,e),t&&(!g||Cn.isArray(t)?g=Cn._data(n,e,Cn.makeArray(t)):g.push(t)),g||[]},dequeue:function(n,e){e=e||"fx";var t=Cn.queue(n,e),g=t.length,c=t.shift(),I=Cn._queueHooks(n,e),l=function(){Cn.dequeue(n,e)};"inprogress"===c&&(c=t.shift(),g--),c&&("fx"===e&&t.unshift("inprogress"),delete I.stop,c.call(n,l,I)),!g&&I&&I.empty.fire()},_queueHooks:function(n,e){var t=e+"queueHooks";return Cn._data(n,t)||Cn._data(n,t,{empty:Cn.Callbacks("once memory").add(function(){Cn._removeData(n,e+"queue"),Cn._removeData(n,t)})})}}),Cn.fn.extend({queue:function(n,e){var t=2;return"string"!=typeof n&&(e=n,n="fx",t--),arguments.length
a",on.leadingWhitespace=3===n.firstChild.nodeType,on.tbody=!n.getElementsByTagName("tbody").length,on.htmlSerialize=!!n.getElementsByTagName("link").length,on.html5Clone="<:nav>"!==gn.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,e.appendChild(t),on.appendChecked=t.checked,n.innerHTML="",on.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue,e.appendChild(n),t=gn.createElement("input"),t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),n.appendChild(t),on.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,on.noCloneEvent=!!n.addEventListener,n[Cn.expando]=1,on.attributes=!n.getAttribute(Cn.expando)}();var zn={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:on.htmlSerialize?[0,"",""]:[1,"X
","
"]};zn.optgroup=zn.option,zn.tbody=zn.tfoot=zn.colgroup=zn.caption=zn.thead,zn.th=zn.td;var jn=/<|&#?\w+;/,Mn=/-1&&(C=u.split("."),u=C.shift(),C.sort()),l=u.indexOf(":")<0&&"on"+u,e=e[Cn.expando]?e:new Cn.Event(u,"object"==typeof e&&e),e.isTrigger=c?2:3,e.namespace=C.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+C.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=g),t=null==t?[e]:Cn.makeArray(t,[e]),B=Cn.event.special[u]||{},c||!B.trigger||B.trigger.apply(g,t)!==!1)){if(!c&&!B.noBubble&&!Cn.isWindow(g)){for(a=B.delegateType||u,qn.test(a+u)||(i=i.parentNode);i;i=i.parentNode)o.push(i),b=i;b===(g.ownerDocument||gn)&&o.push(b.defaultView||b.parentWindow||n)}for(d=0;(i=o[d++])&&!e.isPropagationStopped();)e.type=d>1?a:B.bindType||u,I=(Cn._data(i,"events")||{})[e.type]&&Cn._data(i,"handle"),I&&I.apply(i,t),I=l&&i[l],I&&I.apply&&xn(i)&&(e.result=I.apply(i,t),e.result===!1&&e.preventDefault());if(e.type=u,!c&&!e.isDefaultPrevented()&&(!B._default||B._default.apply(o.pop(),t)===!1)&&xn(g)&&l&&g[u]&&!Cn.isWindow(g)){b=g[l],b&&(g[l]=null),Cn.event.triggered=u;try{g[u]()}catch(n){}Cn.event.triggered=void 0,b&&(g[l]=b)}return e.result}},dispatch:function(n){n=Cn.event.fix(n);var e,t,g,c,I,l=[],i=cn.call(arguments),a=(Cn._data(this,"events")||{})[n.type]||[],B=Cn.event.special[n.type]||{};if(i[0]=n,n.delegateTarget=this,!B.preDispatch||B.preDispatch.call(this,n)!==!1){for(l=Cn.event.handlers.call(this,n,a),e=0;(c=l[e++])&&!n.isPropagationStopped();)for(n.currentTarget=c.elem,t=0;(I=c.handlers[t++])&&!n.isImmediatePropagationStopped();)n.rnamespace&&!n.rnamespace.test(I.namespace)||(n.handleObj=I,n.data=I.data,g=((Cn.event.special[I.origType]||{}).handle||I.handler).apply(c.elem,i),void 0!==g&&(n.result=g)===!1&&(n.preventDefault(),n.stopPropagation()));return B.postDispatch&&B.postDispatch.call(this,n),n.result}},handlers:function(n,e){var t,g,c,I,l=[],i=e.delegateCount,a=n.target;if(i&&a.nodeType&&("click"!==n.type||isNaN(n.button)||n.button<1))for(;a!=this;a=a.parentNode||this)if(1===a.nodeType&&(a.disabled!==!0||"click"!==n.type)){for(g=[],t=0;t-1:Cn.find(c,this,null,[a]).length),g[c]&&g.push(I);g.length&&l.push({elem:a,handlers:g})}return i]","i"),te=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ge=/\s*$/g,ie=u(gn),ae=ie.appendChild(gn.createElement("div"));Cn.extend({htmlPrefilter:function(n){return n.replace(te,"<$1>")},clone:function(n,e,t){var g,c,I,l,i,a=Cn.contains(n.ownerDocument,n);if(on.html5Clone||Cn.isXMLDoc(n)||!ee.test("<"+n.nodeName+">")?I=n.cloneNode(!0):(ae.innerHTML=n.outerHTML,ae.removeChild(I=ae.firstChild)),!(on.noCloneEvent&&on.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||Cn.isXMLDoc(n)))for(g=C(I),i=C(n),l=0;null!=(c=i[l]);++l)g[l]&&y(c,g[l]);if(e)if(t)for(i=i||C(n),g=g||C(I),l=0;null!=(c=i[l]);l++)X(c,g[l]);else X(n,I);return g=C(I,"script"),g.length>0&&s(g,!a&&C(n,"script")),g=i=c=null,I},cleanData:function(n,e){for(var t,g,c,I,l=0,i=Cn.expando,a=Cn.cache,B=on.attributes,b=Cn.event.special;null!=(t=n[l]);l++)if((e||xn(t))&&(c=t[i],I=c&&a[c])){if(I.events)for(g in I.events)b[g]?Cn.event.remove(t,g):Cn.removeEvent(t,g,I.handle);a[c]&&(delete a[c],B||"undefined"==typeof t.removeAttribute?t[i]=void 0:t.removeAttribute(i),tn.push(c))}}}),Cn.fn.extend({domManip:W,detach:function(n){return U(this,n,!0)},remove:function(n){return U(this,n)},text:function(n){return En(this,function(n){return void 0===n?Cn.text(this):this.empty().append((this[0]&&this[0].ownerDocument||gn).createTextNode(n))},null,n,arguments.length)},append:function(){return W(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=F(this,n);e.appendChild(n)}})},prepend:function(){return W(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=F(this,n);e.insertBefore(n,e.firstChild)}})},before:function(){return W(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return W(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,e=0;null!=(n=this[e]);e++){for(1===n.nodeType&&Cn.cleanData(C(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&Cn.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,e){return n=null!=n&&n,e=null==e?n:e,this.map(function(){return Cn.clone(this,n,e)})},html:function(n){return En(this,function(n){var e=this[0]||{},t=0,g=this.length;if(void 0===n)return 1===e.nodeType?e.innerHTML.replace(ne,""):void 0;if("string"==typeof n&&!ge.test(n)&&(on.htmlSerialize||!ee.test(n))&&(on.leadingWhitespace||!On.test(n))&&!zn[(wn.exec(n)||["",""])[1].toLowerCase()]){n=Cn.htmlPrefilter(n);try{for(;tt",B.childNodes[0].style.borderCollapse="separate",e=B.getElementsByTagName("td"),e[0].style.cssText="margin:0;border:0;padding:0;display:none",I=0===e[0].offsetHeight,I&&(e[0].style.display="",e[1].style.display="none",I=0===e[0].offsetHeight)),d.removeChild(a)}var t,g,c,I,l,i,a=gn.createElement("div"),B=gn.createElement("div");B.style&&(B.style.cssText="float:left;opacity:.5",on.opacity="0.5"===B.style.opacity,on.cssFloat=!!B.style.cssFloat,B.style.backgroundClip="content-box",B.cloneNode(!0).style.backgroundClip="",on.clearCloneStyle="content-box"===B.style.backgroundClip,a=gn.createElement("div"),a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",B.innerHTML="",a.appendChild(B),on.boxSizing=""===B.style.boxSizing||""===B.style.MozBoxSizing||""===B.style.WebkitBoxSizing,Cn.extend(on,{reliableHiddenOffsets:function(){return null==t&&e(),I},boxSizingReliable:function(){return null==t&&e(),c},pixelMarginRight:function(){return null==t&&e(),g},pixelPosition:function(){return null==t&&e(),t},reliableMarginRight:function(){return null==t&&e(),l},reliableMarginLeft:function(){return null==t&&e(),i}}))}();var se,Ge,re=/^(top|right|bottom|left)$/;n.getComputedStyle?(se=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ge=function(n,e,t){var g,c,I,l,i=n.style;return t=t||se(n),l=t?t.getPropertyValue(e)||t[e]:void 0,""!==l&&void 0!==l||Cn.contains(n.ownerDocument,n)||(l=Cn.style(n,e)),t&&!on.pixelMarginRight()&&oe.test(l)&&de.test(e)&&(g=i.width,c=i.minWidth,I=i.maxWidth,i.minWidth=i.maxWidth=i.width=l,l=t.width,i.width=g,i.minWidth=c,i.maxWidth=I),void 0===l?l:l+""}):Ce.currentStyle&&(se=function(n){return n.currentStyle},Ge=function(n,e,t){var g,c,I,l,i=n.style;return t=t||se(n),l=t?t[e]:void 0,null==l&&i&&i[e]&&(l=i[e]),oe.test(l)&&!re.test(e)&&(g=i.left,c=n.runtimeStyle,I=c&&c.left,I&&(c.left=n.currentStyle.left),i.left="fontSize"===e?"1em":l,l=i.pixelLeft+"px",i.left=g,I&&(c.left=I)),void 0===l?l:l+""||"auto"});var Qe=/alpha\([^)]*\)/i,me=/opacity\s*=\s*([^)]*)/i,Ze=/^(none|table(?!-c[ea]).+)/,Ae=new RegExp("^("+Jn+")(.*)$","i"),Fe={position:"absolute",visibility:"hidden",display:"block"},he={letterSpacing:"0",fontWeight:"400"},pe=["Webkit","O","Moz","ms"],Xe=gn.createElement("div").style;Cn.extend({cssHooks:{opacity:{get:function(n,e){if(e){var t=Ge(n,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":on.cssFloat?"cssFloat":"styleFloat"},style:function(n,e,t,g){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var c,I,l,i=Cn.camelCase(e),a=n.style;if(e=Cn.cssProps[i]||(Cn.cssProps[i]=R(i)||i),l=Cn.cssHooks[e]||Cn.cssHooks[i],void 0===t)return l&&"get"in l&&void 0!==(c=l.get(n,!1,g))?c:a[e];if(I=typeof t,"string"===I&&(c=Tn.exec(t))&&c[1]&&(t=o(n,e,c),I="number"),null!=t&&t===t&&("number"===I&&(t+=c&&c[3]||(Cn.cssNumber[i]?"":"px")),on.clearCloneStyle||""!==t||0!==e.indexOf("background")||(a[e]="inherit"),!(l&&"set"in l&&void 0===(t=l.set(n,t,g)))))try{a[e]=t}catch(n){}}},css:function(n,e,t,g){var c,I,l,i=Cn.camelCase(e);return e=Cn.cssProps[i]||(Cn.cssProps[i]=R(i)||i),l=Cn.cssHooks[e]||Cn.cssHooks[i],l&&"get"in l&&(I=l.get(n,!0,t)),void 0===I&&(I=Ge(n,e,g)),"normal"===I&&e in he&&(I=he[e]),""===t||t?(c=parseFloat(I),t===!0||isFinite(c)?c||0:I):I}}),Cn.each(["height","width"],function(n,e){Cn.cssHooks[e]={get:function(n,t,g){if(t)return Ze.test(Cn.css(n,"display"))&&0===n.offsetWidth?ue(n,Fe,function(){return J(n,e,g)}):J(n,e,g)},set:function(n,t,g){var c=g&&se(n);return Y(n,t,g?H(n,e,g,on.boxSizing&&"border-box"===Cn.css(n,"boxSizing",!1,c),c):0)}}}),on.opacity||(Cn.cssHooks.opacity={get:function(n,e){return me.test((e&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(n,e){var t=n.style,g=n.currentStyle,c=Cn.isNumeric(e)?"alpha(opacity="+100*e+")":"",I=g&&g.filter||t.filter||"";t.zoom=1,(e>=1||""===e)&&""===Cn.trim(I.replace(Qe,""))&&t.removeAttribute&&(t.removeAttribute("filter"),""===e||g&&!g.filter)||(t.filter=Qe.test(I)?I.replace(Qe,c):I+" "+c)}}),Cn.cssHooks.marginRight=v(on.reliableMarginRight,function(n,e){if(e)return ue(n,{display:"inline-block"},Ge,[n,"marginRight"])}),Cn.cssHooks.marginLeft=v(on.reliableMarginLeft,function(n,e){if(e)return(parseFloat(Ge(n,"marginLeft"))||(Cn.contains(n.ownerDocument,n)?n.getBoundingClientRect().left-ue(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}):0))+"px"}),Cn.each({margin:"",padding:"",border:"Width"},function(n,e){Cn.cssHooks[n+e]={expand:function(t){for(var g=0,c={},I="string"==typeof t?t.split(" "):[t];g<4;g++)c[n+fn[g]+e]=I[g]||I[g-2]||I[0];return c}},de.test(n)||(Cn.cssHooks[n+e].set=Y)}),Cn.fn.extend({css:function(n,e){return En(this,function(n,e,t){var g,c,I={},l=0;if(Cn.isArray(e)){for(g=se(n),c=e.length;l1)},show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){Sn(this)?Cn(this).show():Cn(this).hide()})}}),Cn.Tween=T,T.prototype={constructor:T,init:function(n,e,t,g,c,I){this.elem=n,this.prop=t,this.easing=c||Cn.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=g,this.unit=I||(Cn.cssNumber[t]?"":"px")},cur:function(){var n=T.propHooks[this.prop];return n&&n.get?n.get(this):T.propHooks._default.get(this)},run:function(n){var e,t=T.propHooks[this.prop];return this.options.duration?this.pos=e=Cn.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):this.pos=e=n,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):T.propHooks._default.set(this),this}},T.prototype.init.prototype=T.prototype,T.propHooks={_default:{get:function(n){var e;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(e=Cn.css(n.elem,n.prop,""),e&&"auto"!==e?e:0)},set:function(n){Cn.fx.step[n.prop]?Cn.fx.step[n.prop](n):1!==n.elem.nodeType||null==n.elem.style[Cn.cssProps[n.prop]]&&!Cn.cssHooks[n.prop]?n.elem[n.prop]=n.now:Cn.style(n.elem,n.prop,n.now+n.unit)}}},T.propHooks.scrollTop=T.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}},Cn.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"},Cn.fx=T.prototype.init,Cn.fx.step={};var ye,We,Ue=/^(?:toggle|show|hide)$/,Ve=/queueHooks$/;Cn.Animation=Cn.extend(k,{tweeners:{"*":[function(n,e){var t=this.createTween(n,e);return o(t.elem,n,Tn.exec(e),t),t}]},tweener:function(n,e){Cn.isFunction(n)?(e=n,n=["*"]):n=n.match(Nn);for(var t,g=0,c=n.length;g
a",n=t.getElementsByTagName("a")[0],e.setAttribute("type","checkbox"),t.appendChild(e),n=t.getElementsByTagName("a")[0],n.style.cssText="top:1px",on.getSetAttribute="t"!==t.className,on.style=/top/.test(n.getAttribute("style")),on.hrefNormalized="/a"===n.getAttribute("href"),on.checkOn=!!e.value,on.optSelected=c.selected,on.enctype=!!gn.createElement("form").enctype,g.disabled=!0,on.optDisabled=!c.disabled,e=gn.createElement("input"),e.setAttribute("value",""),on.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),on.radioValue="t"===e.value}();var Ne=/\r/g,ve=/[\x20\t\r\n\f]+/g;Cn.fn.extend({val:function(n){var e,t,g,c=this[0];{if(arguments.length)return g=Cn.isFunction(n),this.each(function(t){var c;1===this.nodeType&&(c=g?n.call(this,t,Cn(this).val()):n,null==c?c="":"number"==typeof c?c+="":Cn.isArray(c)&&(c=Cn.map(c,function(n){return null==n?"":n+""})),e=Cn.valHooks[this.type]||Cn.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,c,"value")||(this.value=c))});if(c)return e=Cn.valHooks[c.type]||Cn.valHooks[c.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(t=e.get(c,"value"))?t:(t=c.value,"string"==typeof t?t.replace(Ne,""):null==t?"":t)}}}),Cn.extend({valHooks:{option:{get:function(n){var e=Cn.find.attr(n,"value");return null!=e?e:Cn.trim(Cn.text(n)).replace(ve," ")}},select:{get:function(n){for(var e,t,g=n.options,c=n.selectedIndex,I="select-one"===n.type||c<0,l=I?null:[],i=I?c+1:g.length,a=c<0?i:I?c:0;a-1)try{g.selected=t=!0}catch(n){g.scrollHeight}else g.selected=!1;return t||(n.selectedIndex=-1),c}}}}),Cn.each(["radio","checkbox"],function(){Cn.valHooks[this]={set:function(n,e){if(Cn.isArray(e))return n.checked=Cn.inArray(Cn(n).val(),e)>-1}},on.checkOn||(Cn.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var Re,xe,Ye=Cn.expr.attrHandle,He=/^(?:checked|selected)$/i,Je=on.getSetAttribute,Te=on.input;Cn.fn.extend({attr:function(n,e){return En(this,Cn.attr,n,e,arguments.length>1)},removeAttr:function(n){return this.each(function(){Cn.removeAttr(this,n)})}}),Cn.extend({attr:function(n,e,t){var g,c,I=n.nodeType;if(3!==I&&8!==I&&2!==I)return"undefined"==typeof n.getAttribute?Cn.prop(n,e,t):(1===I&&Cn.isXMLDoc(n)||(e=e.toLowerCase(),c=Cn.attrHooks[e]||(Cn.expr.match.bool.test(e)?xe:Re)),void 0!==t?null===t?void Cn.removeAttr(n,e):c&&"set"in c&&void 0!==(g=c.set(n,t,e))?g:(n.setAttribute(e,t+""),t):c&&"get"in c&&null!==(g=c.get(n,e))?g:(g=Cn.find.attr(n,e),null==g?void 0:g))},attrHooks:{type:{set:function(n,e){if(!on.radioValue&&"radio"===e&&Cn.nodeName(n,"input")){var t=n.value;return n.setAttribute("type",e),t&&(n.value=t),e}}}},removeAttr:function(n,e){var t,g,c=0,I=e&&e.match(Nn);if(I&&1===n.nodeType)for(;t=I[c++];)g=Cn.propFix[t]||t,Cn.expr.match.bool.test(t)?Te&&Je||!He.test(t)?n[g]=!1:n[Cn.camelCase("default-"+t)]=n[g]=!1:Cn.attr(n,t,""),n.removeAttribute(Je?t:g)}}),xe={set:function(n,e,t){return e===!1?Cn.removeAttr(n,t):Te&&Je||!He.test(t)?n.setAttribute(!Je&&Cn.propFix[t]||t,t):n[Cn.camelCase("default-"+t)]=n[t]=!0,t}},Cn.each(Cn.expr.match.bool.source.match(/\w+/g),function(n,e){var t=Ye[e]||Cn.find.attr;Te&&Je||!He.test(e)?Ye[e]=function(n,e,g){var c,I;return g||(I=Ye[e],Ye[e]=c,c=null!=t(n,e,g)?e.toLowerCase():null,Ye[e]=I),c}:Ye[e]=function(n,e,t){if(!t)return n[Cn.camelCase("default-"+e)]?e.toLowerCase():null}}),Te&&Je||(Cn.attrHooks.value={set:function(n,e,t){return Cn.nodeName(n,"input")?void(n.defaultValue=e):Re&&Re.set(n,e,t)}}),Je||(Re={set:function(n,e,t){var g=n.getAttributeNode(t);if(g||n.setAttributeNode(g=n.ownerDocument.createAttribute(t)),g.value=e+="","value"===t||e===n.getAttribute(t))return e}},Ye.id=Ye.name=Ye.coords=function(n,e,t){var g;if(!t)return(g=n.getAttributeNode(e))&&""!==g.value?g.value:null},Cn.valHooks.button={get:function(n,e){var t=n.getAttributeNode(e);if(t&&t.specified)return t.value},set:Re.set},Cn.attrHooks.contenteditable={set:function(n,e,t){Re.set(n,""!==e&&e,t)}},Cn.each(["width","height"],function(n,e){Cn.attrHooks[e]={set:function(n,t){if(""===t)return n.setAttribute(e,"auto"),t}}})),on.style||(Cn.attrHooks.style={get:function(n){return n.style.cssText||void 0},set:function(n,e){return n.style.cssText=e+""}});var fe=/^(?:input|select|textarea|button|object)$/i,Se=/^(?:a|area)$/i;Cn.fn.extend({prop:function(n,e){return En(this,Cn.prop,n,e,arguments.length>1)},removeProp:function(n){return n=Cn.propFix[n]||n,this.each(function(){try{this[n]=void 0,delete this[n]}catch(n){}})}}),Cn.extend({prop:function(n,e,t){var g,c,I=n.nodeType;if(3!==I&&8!==I&&2!==I)return 1===I&&Cn.isXMLDoc(n)||(e=Cn.propFix[e]||e,c=Cn.propHooks[e]),void 0!==t?c&&"set"in c&&void 0!==(g=c.set(n,t,e))?g:n[e]=t:c&&"get"in c&&null!==(g=c.get(n,e))?g:n[e]},propHooks:{tabIndex:{get:function(n){var e=Cn.find.attr(n,"tabindex");return e?parseInt(e,10):fe.test(n.nodeName)||Se.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),on.hrefNormalized||Cn.each(["href","src"],function(n,e){Cn.propHooks[e]={get:function(n){return n.getAttribute(e,4)}}}),on.optSelected||(Cn.propHooks.selected={get:function(n){var e=n.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(n){var e=n.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),Cn.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Cn.propFix[this.toLowerCase()]=this}),on.enctype||(Cn.propFix.enctype="encoding");var Ee=/[\t\r\n\f]/g;Cn.fn.extend({addClass:function(n){var e,t,g,c,I,l,i,a=0;if(Cn.isFunction(n))return this.each(function(e){Cn(this).addClass(n.call(this,e,O(this)))});if("string"==typeof n&&n)for(e=n.match(Nn)||[];t=this[a++];)if(c=O(t),g=1===t.nodeType&&(" "+c+" ").replace(Ee," ")){for(l=0;I=e[l++];)g.indexOf(" "+I+" ")<0&&(g+=I+" ");i=Cn.trim(g),c!==i&&Cn.attr(t,"class",i)}return this},removeClass:function(n){var e,t,g,c,I,l,i,a=0;if(Cn.isFunction(n))return this.each(function(e){Cn(this).removeClass(n.call(this,e,O(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof n&&n)for(e=n.match(Nn)||[];t=this[a++];)if(c=O(t),g=1===t.nodeType&&(" "+c+" ").replace(Ee," ")){for(l=0;I=e[l++];)for(;g.indexOf(" "+I+" ")>-1;)g=g.replace(" "+I+" "," ");i=Cn.trim(g),c!==i&&Cn.attr(t,"class",i)}return this},toggleClass:function(n,e){var t=typeof n;return"boolean"==typeof e&&"string"===t?e?this.addClass(n):this.removeClass(n):Cn.isFunction(n)?this.each(function(t){Cn(this).toggleClass(n.call(this,t,O(this),e),e)}):this.each(function(){var e,g,c,I;if("string"===t)for(g=0,c=Cn(this),I=n.match(Nn)||[];e=I[g++];)c.hasClass(e)?c.removeClass(e):c.addClass(e);else void 0!==n&&"boolean"!==t||(e=O(this),e&&Cn._data(this,"__className__",e),Cn.attr(this,"class",e||n===!1?"":Cn._data(this,"__className__")||""))})},hasClass:function(n){var e,t,g=0;for(e=" "+n+" ";t=this[g++];)if(1===t.nodeType&&(" "+O(t)+" ").replace(Ee," ").indexOf(e)>-1)return!0;return!1}}),Cn.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(n,e){Cn.fn[e]=function(n,t){return arguments.length>0?this.on(e,null,n,t):this.trigger(e)}}),Cn.fn.extend({hover:function(n,e){return this.mouseenter(n).mouseleave(e||n)}});var De=n.location,we=Cn.now(),ke=/\?/,Oe=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;Cn.parseJSON=function(e){if(n.JSON&&n.JSON.parse)return n.JSON.parse(e+"");var t,g=null,c=Cn.trim(e+"");return c&&!Cn.trim(c.replace(Oe,function(n,e,c,I){return t&&e&&(g=0),0===g?n:(t=c||e,g+=!I-!c,"")}))?Function("return "+c)():Cn.error("Invalid JSON: "+e)},Cn.parseXML=function(e){var t,g;if(!e||"string"!=typeof e)return null;try{n.DOMParser?(g=new n.DOMParser,t=g.parseFromString(e,"text/xml")):(t=new n.ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e))}catch(n){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||Cn.error("Invalid XML: "+e),t};var Le=/#.*$/,ze=/([?&])_=[^&]*/,je=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Me=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ke=/^(?:GET|HEAD)$/,_e=/^\/\//,Pe=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,qe={},$e={},nt="*/".concat("*"),et=De.href,tt=Pe.exec(et.toLowerCase())||[];Cn.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:et,type:"GET",isLocal:Me.test(tt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":nt,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":Cn.parseJSON,"text xml":Cn.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,e){return e?j(j(n,Cn.ajaxSettings),e):j(Cn.ajaxSettings,n)},ajaxPrefilter:L(qe),ajaxTransport:L($e),ajax:function(e,t){function g(e,t,g,c){var I,d,Q,m,A,h=t;2!==Z&&(Z=2,a&&n.clearTimeout(a),b=void 0,i=c||"",F.readyState=e>0?4:0,I=e>=200&&e<300||304===e,g&&(m=M(o,F,g)),m=K(o,m,F,I),I?(o.ifModified&&(A=F.getResponseHeader("Last-Modified"),A&&(Cn.lastModified[l]=A),A=F.getResponseHeader("etag"),A&&(Cn.etag[l]=A)),204===e||"HEAD"===o.type?h="nocontent":304===e?h="notmodified":(h=m.state,d=m.data,Q=m.error,I=!Q)):(Q=h,!e&&h||(h="error",e<0&&(e=0))),F.status=e,F.statusText=(t||h)+"",I?s.resolveWith(u,[d,h,F]):s.rejectWith(u,[F,h,Q]),F.statusCode(r),r=void 0,B&&C.trigger(I?"ajaxSuccess":"ajaxError",[F,o,I?d:Q]),G.fireWith(u,[F,h]),B&&(C.trigger("ajaxComplete",[F,o]),--Cn.active||Cn.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,I,l,i,a,B,b,d,o=Cn.ajaxSetup({},t),u=o.context||o,C=o.context&&(u.nodeType||u.jquery)?Cn(u):Cn.event,s=Cn.Deferred(),G=Cn.Callbacks("once memory"),r=o.statusCode||{},Q={},m={},Z=0,A="canceled",F={readyState:0,getResponseHeader:function(n){var e;if(2===Z){if(!d)for(d={};e=je.exec(i);)d[e[1].toLowerCase()]=e[2];e=d[n.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===Z?i:null},setRequestHeader:function(n,e){var t=n.toLowerCase();return Z||(n=m[t]=m[t]||n,Q[n]=e),this},overrideMimeType:function(n){return Z||(o.mimeType=n),this},statusCode:function(n){var e;if(n)if(Z<2)for(e in n)r[e]=[r[e],n[e]];else F.always(n[F.status]);return this},abort:function(n){var e=n||A;return b&&b.abort(e),g(0,e),this}};if(s.promise(F).complete=G.add,F.success=F.done,F.error=F.fail,o.url=((e||o.url||et)+"").replace(Le,"").replace(_e,tt[1]+"//"),o.type=t.method||t.type||o.method||o.type,o.dataTypes=Cn.trim(o.dataType||"*").toLowerCase().match(Nn)||[""],null==o.crossDomain&&(c=Pe.exec(o.url.toLowerCase()),o.crossDomain=!(!c||c[1]===tt[1]&&c[2]===tt[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(tt[3]||("http:"===tt[1]?"80":"443")))),o.data&&o.processData&&"string"!=typeof o.data&&(o.data=Cn.param(o.data,o.traditional)),z(qe,o,t,F),2===Z)return F;B=Cn.event&&o.global,B&&0===Cn.active++&&Cn.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Ke.test(o.type),l=o.url,o.hasContent||(o.data&&(l=o.url+=(ke.test(l)?"&":"?")+o.data,delete o.data),o.cache===!1&&(o.url=ze.test(l)?l.replace(ze,"$1_="+we++):l+(ke.test(l)?"&":"?")+"_="+we++)),o.ifModified&&(Cn.lastModified[l]&&F.setRequestHeader("If-Modified-Since",Cn.lastModified[l]),Cn.etag[l]&&F.setRequestHeader("If-None-Match",Cn.etag[l])),(o.data&&o.hasContent&&o.contentType!==!1||t.contentType)&&F.setRequestHeader("Content-Type",o.contentType),F.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+nt+"; q=0.01":""):o.accepts["*"]);for(I in o.headers)F.setRequestHeader(I,o.headers[I]);if(o.beforeSend&&(o.beforeSend.call(u,F,o)===!1||2===Z))return F.abort();A="abort";for(I in{success:1,error:1,complete:1})F[I](o[I]);if(b=z($e,o,t,F)){if(F.readyState=1,B&&C.trigger("ajaxSend",[F,o]),2===Z)return F;o.async&&o.timeout>0&&(a=n.setTimeout(function(){F.abort("timeout")},o.timeout));try{Z=1,b.send(Q,g)}catch(n){if(!(Z<2))throw n;g(-1,n)}}else g(-1,"No Transport");return F},getJSON:function(n,e,t){return Cn.get(n,e,t,"json")},getScript:function(n,e){return Cn.get(n,void 0,e,"script")}}),Cn.each(["get","post"],function(n,e){Cn[e]=function(n,t,g,c){return Cn.isFunction(t)&&(c=c||g,g=t,t=void 0),Cn.ajax(Cn.extend({url:n,type:e,dataType:c,data:t,success:g},Cn.isPlainObject(n)&&n))}}),Cn._evalUrl=function(n){return Cn.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},Cn.fn.extend({wrapAll:function(n){if(Cn.isFunction(n))return this.each(function(e){Cn(this).wrapAll(n.call(this,e))});if(this[0]){var e=Cn(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return Cn.isFunction(n)?this.each(function(e){Cn(this).wrapInner(n.call(this,e))}):this.each(function(){var e=Cn(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(n){var e=Cn.isFunction(n);return this.each(function(t){Cn(this).wrapAll(e?n.call(this,t):n)})},unwrap:function(){return this.parent().each(function(){Cn.nodeName(this,"body")||Cn(this).replaceWith(this.childNodes)}).end()}}),Cn.expr.filters.hidden=function(n){return on.reliableHiddenOffsets()?n.offsetWidth<=0&&n.offsetHeight<=0&&!n.getClientRects().length:P(n)},Cn.expr.filters.visible=function(n){return!Cn.expr.filters.hidden(n)};var gt=/%20/g,ct=/\[\]$/,It=/\r?\n/g,lt=/^(?:submit|button|image|reset|file)$/i,it=/^(?:input|select|textarea|keygen)/i;Cn.param=function(n,e){var t,g=[],c=function(n,e){e=Cn.isFunction(e)?e():null==e?"":e,g[g.length]=encodeURIComponent(n)+"="+encodeURIComponent(e)};if(void 0===e&&(e=Cn.ajaxSettings&&Cn.ajaxSettings.traditional),Cn.isArray(n)||n.jquery&&!Cn.isPlainObject(n))Cn.each(n,function(){c(this.name,this.value)});else for(t in n)q(t,n[t],e,c);return g.join("&").replace(gt,"+")},Cn.fn.extend({serialize:function(){return Cn.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=Cn.prop(this,"elements");return n?Cn.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!Cn(this).is(":disabled")&&it.test(this.nodeName)&&!lt.test(n)&&(this.checked||!Dn.test(n))}).map(function(n,e){var t=Cn(this).val();return null==t?null:Cn.isArray(t)?Cn.map(t,function(n){return{name:e.name,value:n.replace(It,"\r\n")}}):{name:e.name,value:t.replace(It,"\r\n")}}).get()}}),Cn.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return this.isLocal?nn():gn.documentMode>8?$():/^(get|post|head|put|delete|options)$/i.test(this.type)&&$()||nn()}:$;var at=0,Bt={},bt=Cn.ajaxSettings.xhr();n.attachEvent&&n.attachEvent("onunload",function(){for(var n in Bt)Bt[n](void 0,!0)}),on.cors=!!bt&&"withCredentials"in bt,bt=on.ajax=!!bt,bt&&Cn.ajaxTransport(function(e){if(!e.crossDomain||on.cors){var t;return{send:function(g,c){var I,l=e.xhr(),i=++at;if(l.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(I in e.xhrFields)l[I]=e.xhrFields[I];e.mimeType&&l.overrideMimeType&&l.overrideMimeType(e.mimeType),e.crossDomain||g["X-Requested-With"]||(g["X-Requested-With"]="XMLHttpRequest");for(I in g)void 0!==g[I]&&l.setRequestHeader(I,g[I]+"");l.send(e.hasContent&&e.data||null),t=function(n,g){var I,a,B;if(t&&(g||4===l.readyState))if(delete Bt[i],t=void 0,l.onreadystatechange=Cn.noop,g)4!==l.readyState&&l.abort();else{B={},I=l.status,"string"==typeof l.responseText&&(B.text=l.responseText);try{a=l.statusText}catch(n){a=""}I||!e.isLocal||e.crossDomain?1223===I&&(I=204):I=B.text?200:404}B&&c(I,a,B,l.getAllResponseHeaders())},e.async?4===l.readyState?n.setTimeout(t):l.onreadystatechange=Bt[i]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),Cn.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return Cn.globalEval(n),n}}}),Cn.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1),n.crossDomain&&(n.type="GET",n.global=!1)}),Cn.ajaxTransport("script",function(n){if(n.crossDomain){var e,t=gn.head||Cn("head")[0]||gn.documentElement;return{send:function(g,c){e=gn.createElement("script"),e.async=!0,n.scriptCharset&&(e.charset=n.scriptCharset),e.src=n.url,e.onload=e.onreadystatechange=function(n,t){(t||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,t||c(200,"success"))},t.insertBefore(e,t.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var dt=[],ot=/(=)\?(?=&|$)|\?\?/;Cn.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=dt.pop()||Cn.expando+"_"+we++;return this[n]=!0,n}}),Cn.ajaxPrefilter("json jsonp",function(e,t,g){var c,I,l,i=e.jsonp!==!1&&(ot.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ot.test(e.data)&&"data");if(i||"jsonp"===e.dataTypes[0])return c=e.jsonpCallback=Cn.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,i?e[i]=e[i].replace(ot,"$1"+c):e.jsonp!==!1&&(e.url+=(ke.test(e.url)?"&":"?")+e.jsonp+"="+c),e.converters["script json"]=function(){return l||Cn.error(c+" was not called"),l[0]},e.dataTypes[0]="json",I=n[c],n[c]=function(){l=arguments},g.always(function(){void 0===I?Cn(n).removeProp(c):n[c]=I,e[c]&&(e.jsonpCallback=t.jsonpCallback,dt.push(c)),l&&Cn.isFunction(I)&&I(l[0]),l=I=void 0}),"script"}),Cn.parseHTML=function(n,e,t){if(!n||"string"!=typeof n)return null;"boolean"==typeof e&&(t=e,e=!1),e=e||gn;var g=hn.exec(n),c=!t&&[];return g?[e.createElement(g[1])]:(g=r([n],e,c),c&&c.length&&Cn(c).remove(),Cn.merge([],g.childNodes))};var ut=Cn.fn.load;Cn.fn.load=function(n,e,t){if("string"!=typeof n&&ut)return ut.apply(this,arguments);var g,c,I,l=this,i=n.indexOf(" ");return i>-1&&(g=Cn.trim(n.slice(i,n.length)),n=n.slice(0,i)),Cn.isFunction(e)?(t=e,e=void 0):e&&"object"==typeof e&&(c="POST"),l.length>0&&Cn.ajax({url:n,type:c||"GET",dataType:"html",data:e}).done(function(n){I=arguments,l.html(g?Cn("
").append(Cn.parseHTML(n)).find(g):n)}).always(t&&function(n,e){l.each(function(){t.apply(this,I||[n.responseText,e,n])})}),this},Cn.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,e){Cn.fn[e]=function(n){return this.on(e,n)}}),Cn.expr.filters.animated=function(n){return Cn.grep(Cn.timers,function(e){return n===e.elem}).length},Cn.offset={setOffset:function(n,e,t){var g,c,I,l,i,a,B,b=Cn.css(n,"position"),d=Cn(n),o={};"static"===b&&(n.style.position="relative"),i=d.offset(),I=Cn.css(n,"top"),a=Cn.css(n,"left"),B=("absolute"===b||"fixed"===b)&&Cn.inArray("auto",[I,a])>-1,B?(g=d.position(),l=g.top,c=g.left):(l=parseFloat(I)||0,c=parseFloat(a)||0),Cn.isFunction(e)&&(e=e.call(n,t,Cn.extend({},i))),null!=e.top&&(o.top=e.top-i.top+l),null!=e.left&&(o.left=e.left-i.left+c),"using"in e?e.using.call(n,o):d.css(o)}},Cn.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(e){Cn.offset.setOffset(this,n,e)});var e,t,g={top:0,left:0},c=this[0],I=c&&c.ownerDocument;if(I)return e=I.documentElement,Cn.contains(e,c)?("undefined"!=typeof c.getBoundingClientRect&&(g=c.getBoundingClientRect()),t=en(I),{top:g.top+(t.pageYOffset||e.scrollTop)-(e.clientTop||0),left:g.left+(t.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):g},position:function(){if(this[0]){var n,e,t={top:0,left:0},g=this[0];return"fixed"===Cn.css(g,"position")?e=g.getBoundingClientRect():(n=this.offsetParent(),e=this.offset(),Cn.nodeName(n[0],"html")||(t=n.offset()),t.top+=Cn.css(n[0],"borderTopWidth",!0),t.left+=Cn.css(n[0],"borderLeftWidth",!0)),{top:e.top-t.top-Cn.css(g,"marginTop",!0),left:e.left-t.left-Cn.css(g,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&!Cn.nodeName(n,"html")&&"static"===Cn.css(n,"position");)n=n.offsetParent;return n||Ce})}}),Cn.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,e){var t=/Y/.test(e);Cn.fn[n]=function(g){return En(this,function(n,g,c){var I=en(n);return void 0===c?I?e in I?I[e]:I.document.documentElement[g]:n[g]:void(I?I.scrollTo(t?Cn(I).scrollLeft():c,t?c:Cn(I).scrollTop()):n[g]=c)},n,g,arguments.length,null)}}),Cn.each(["top","left"],function(n,e){Cn.cssHooks[e]=v(on.pixelPosition,function(n,t){if(t)return t=Ge(n,e),oe.test(t)?Cn(n).position()[e]+"px":t})}),Cn.each({Height:"height",Width:"width"},function(n,e){Cn.each({padding:"inner"+n,content:e,"":"outer"+n},function(t,g){Cn.fn[g]=function(g,c){var I=arguments.length&&(t||"boolean"!=typeof g),l=t||(g===!0||c===!0?"margin":"border");return En(this,function(e,t,g){var c;return Cn.isWindow(e)?e.document.documentElement["client"+n]:9===e.nodeType?(c=e.documentElement,Math.max(e.body["scroll"+n],c["scroll"+n],e.body["offset"+n],c["offset"+n],c["client"+n])):void 0===g?Cn.css(e,t,l):Cn.style(e,t,g,l)},e,I?g:void 0,I,null)}})}),Cn.fn.extend({bind:function(n,e,t){return this.on(n,null,e,t)},unbind:function(n,e){return this.off(n,null,e)},delegate:function(n,e,t,g){return this.on(e,n,t,g)},undelegate:function(n,e,t){return 1===arguments.length?this.off(n,"**"):this.off(e,n||"**",t)}}),Cn.fn.size=function(){return this.length},Cn.fn.andSelf=Cn.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return Cn});var Ct=n.jQuery,st=n.$;return Cn.noConflict=function(e){return n.$===Cn&&(n.$=st),e&&n.jQuery===Cn&&(n.jQuery=Ct),Cn},e||(n.jQuery=n.$=Cn),Cn}),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function e(e,g){var c,I,l,i=e.nodeName.toLowerCase();return"area"===i?(c=e.parentNode,I=c.name,!(!e.href||!I||"map"!==c.nodeName.toLowerCase())&&(l=n("img[usemap='#"+I+"']")[0],!!l&&t(l))):(/^(input|select|textarea|button|object)$/.test(i)?!e.disabled:"a"===i?e.href||g:g)&&t(e)}function t(e){return n.expr.filters.visible(e)&&!n(e).parents().addBack().filter(function(){ return"hidden"===n.css(this,"visibility")}).length}n.ui=n.ui||{},n.extend(n.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),n.fn.extend({scrollParent:function(e){var t=this.css("position"),g="absolute"===t,c=e?/(auto|scroll|hidden)/:/(auto|scroll)/,I=this.parents().filter(function(){var e=n(this);return(!g||"static"!==e.css("position"))&&c.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&I.length?I:n(this[0].ownerDocument||document)},uniqueId:function(){var n=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&n(this).removeAttr("id")})}}),n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(e){return function(t){return!!n.data(t,e)}}):function(e,t,g){return!!n.data(e,g[3])},focusable:function(t){return e(t,!isNaN(n.attr(t,"tabindex")))},tabbable:function(t){var g=n.attr(t,"tabindex"),c=isNaN(g);return(c||g>=0)&&e(t,!c)}}),n("").outerWidth(1).jquery||n.each(["Width","Height"],function(e,t){function g(e,t,g,I){return n.each(c,function(){t-=parseFloat(n.css(e,"padding"+this))||0,g&&(t-=parseFloat(n.css(e,"border"+this+"Width"))||0),I&&(t-=parseFloat(n.css(e,"margin"+this))||0)}),t}var c="Width"===t?["Left","Right"]:["Top","Bottom"],I=t.toLowerCase(),l={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+t]=function(e){return void 0===e?l["inner"+t].call(this):this.each(function(){n(this).css(I,g(this,e)+"px")})},n.fn["outer"+t]=function(e,c){return"number"!=typeof e?l["outer"+t].call(this,e):this.each(function(){n(this).css(I,g(this,e,!0,c)+"px")})}}),n.fn.addBack||(n.fn.addBack=function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}),n("").data("a-b","a").removeData("a-b").data("a-b")&&(n.fn.removeData=function(e){return function(t){return arguments.length?e.call(this,n.camelCase(t)):e.call(this)}}(n.fn.removeData)),n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),n.fn.extend({focus:function(e){return function(t,g){return"number"==typeof t?this.each(function(){var e=this;setTimeout(function(){n(e).focus(),g&&g.call(e)},t)}):e.apply(this,arguments)}}(n.fn.focus),disableSelection:function(){var n="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(n+".ui-disableSelection",function(n){n.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var t,g,c=n(this[0]);c.length&&c[0]!==document;){if(t=c.css("position"),("absolute"===t||"relative"===t||"fixed"===t)&&(g=parseInt(c.css("zIndex"),10),!isNaN(g)&&0!==g))return g;c=c.parent()}return 0}}),n.ui.plugin={add:function(e,t,g){var c,I=n.ui[e].prototype;for(c in g)I.plugins[c]=I.plugins[c]||[],I.plugins[c].push([t,g[c]])},call:function(n,e,t,g){var c,I=n.plugins[e];if(I&&(g||n.element[0].parentNode&&11!==n.element[0].parentNode.nodeType))for(c=0;c",options:{disabled:!1,create:null},_createWidget:function(t,g){g=n(g||this.defaultElement||this)[0],this.element=n(g),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=n(),this.hoverable=n(),this.focusable=n(),g!==this&&(n.data(g,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===g&&this.destroy()}}),this.document=n(g.style?g.ownerDocument:g.document||g),this.window=n(this.document[0].defaultView||this.document[0].parentWindow)),this.options=n.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:n.noop,_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(n.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:n.noop,widget:function(){return this.element},option:function(e,t){var g,c,I,l=e;if(0===arguments.length)return n.widget.extend({},this.options);if("string"==typeof e)if(l={},g=e.split("."),e=g.shift(),g.length){for(c=l[e]=n.widget.extend({},this.options[e]),I=0;I li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=n(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||e.active!==!1&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():n()}},_createIcons:function(){var e=this.options.icons;e&&(n("").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var n;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),n=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&n.css("height","")},_setOption:function(n,e){return"active"===n?void this._activate(e):("event"===n&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(n,e),"collapsible"!==n||e||this.options.active!==!1||this._activate(0),"icons"===n&&(this._destroyIcons(),e&&this._createIcons()),void("disabled"===n&&(this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e))))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var t=n.ui.keyCode,g=this.headers.length,c=this.headers.index(e.target),I=!1;switch(e.keyCode){case t.RIGHT:case t.DOWN:I=this.headers[(c+1)%g];break;case t.LEFT:case t.UP:I=this.headers[(c-1+g)%g];break;case t.SPACE:case t.ENTER:this._eventHandler(e);break;case t.HOME:I=this.headers[0];break;case t.END:I=this.headers[g-1]}I&&(n(e.target).attr("tabIndex",-1),n(I).attr("tabIndex",0),I.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===n.ui.keyCode.UP&&e.ctrlKey&&n(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=n()):e.active===!1?this._activate(0):this.active.length&&!n.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=n()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var n=this.headers,e=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide(),e&&(this._off(n.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,t=this.options,g=t.heightStyle,c=this.element.parent();this.active=this._findActive(t.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(){var e=n(this),t=e.uniqueId().attr("id"),g=e.next(),c=g.uniqueId().attr("id");e.attr("aria-controls",c),g.attr("aria-labelledby",t)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===g?(e=c.height(),this.element.siblings(":visible").each(function(){var t=n(this),g=t.css("position");"absolute"!==g&&"fixed"!==g&&(e-=t.outerHeight(!0))}),this.headers.each(function(){e-=n(this).outerHeight(!0)}),this.headers.next().each(function(){n(this).height(Math.max(0,e-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):"auto"===g&&(e=0,this.headers.next().each(function(){e=Math.max(e,n(this).css("height","").height())}).height(e))},_activate:function(e){var t=this._findActive(e)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:n.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):n()},_setupEvents:function(e){var t={keydown:"_keydown"};e&&n.each(e.split(" "),function(n,e){t[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,t),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var t=this.options,g=this.active,c=n(e.currentTarget),I=c[0]===g[0],l=I&&t.collapsible,i=l?n():c.next(),a=g.next(),B={oldHeader:g,oldPanel:a,newHeader:l?n():c,newPanel:i};e.preventDefault(),I&&!t.collapsible||this._trigger("beforeActivate",e,B)===!1||(t.active=!l&&this.headers.index(c),this.active=I?n():c,this._toggle(B),g.removeClass("ui-accordion-header-active ui-state-active"),t.icons&&g.children(".ui-accordion-header-icon").removeClass(t.icons.activeHeader).addClass(t.icons.header),I||(c.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),t.icons&&c.children(".ui-accordion-header-icon").removeClass(t.icons.header).addClass(t.icons.activeHeader),c.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var t=e.newPanel,g=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=t,this.prevHide=g,this.options.animate?this._animate(t,g,e):(g.hide(),t.show(),this._toggleComplete(e)),g.attr({"aria-hidden":"true"}),g.prev().attr({"aria-selected":"false","aria-expanded":"false"}),t.length&&g.length?g.prev().attr({tabIndex:-1,"aria-expanded":"false"}):t.length&&this.headers.filter(function(){return 0===parseInt(n(this).attr("tabIndex"),10)}).attr("tabIndex",-1),t.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(n,e,t){var g,c,I,l=this,i=0,a=n.css("box-sizing"),B=n.length&&(!e.length||n.index()
"),I=g.children()[0];return n("body").append(g),e=I.offsetWidth,g.css("overflow","scroll"),t=I.offsetWidth,e===t&&(t=g[0].clientWidth),g.remove(),c=e-t},getScrollInfo:function(e){var t=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),g=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),c="scroll"===t||"auto"===t&&e.width0?"right":"center",vertical:I<0?"top":g>0?"bottom":"middle"};sl(i(g),i(I))?a.important="horizontal":a.important="vertical",c.using.call(this,n,a)}),b.offset(n.extend(W,{using:B}))})},n.ui.position={fit:{left:function(n,e){var t,g=e.within,c=g.isWindow?g.scrollLeft:g.offset.left,I=g.width,i=n.left-e.collisionPosition.marginLeft,a=c-i,B=i+e.collisionWidth-I-c;e.collisionWidth>I?a>0&&B<=0?(t=n.left+a+e.collisionWidth-I-c,n.left+=a-t):B>0&&a<=0?n.left=c:a>B?n.left=c+I-e.collisionWidth:n.left=c:a>0?n.left+=a:B>0?n.left-=B:n.left=l(n.left-i,n.left)},top:function(n,e){var t,g=e.within,c=g.isWindow?g.scrollTop:g.offset.top,I=e.within.height,i=n.top-e.collisionPosition.marginTop,a=c-i,B=i+e.collisionHeight-I-c;e.collisionHeight>I?a>0&&B<=0?(t=n.top+a+e.collisionHeight-I-c,n.top+=a-t):B>0&&a<=0?n.top=c:a>B?n.top=c+I-e.collisionHeight:n.top=c:a>0?n.top+=a:B>0?n.top-=B:n.top=l(n.top-i,n.top)}},flip:{left:function(n,e){var t,g,c=e.within,I=c.offset.left+c.scrollLeft,l=c.width,a=c.isWindow?c.scrollLeft:c.offset.left,B=n.left-e.collisionPosition.marginLeft,b=B-a,d=B+e.collisionWidth-l-a,o="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,u="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,C=-2*e.offset[0];b<0?(t=n.left+o+u+C+e.collisionWidth-l-I,(t<0||t0&&(g=n.left-e.collisionPosition.marginLeft+o+u+C-a,(g>0||i(g)0&&(t=n.top-e.collisionPosition.marginTop+u+C+s-a,(t>0||i(t)10&&c<11,e.innerHTML="",t.removeChild(e)}()}(),n.ui.position}),function(n){"function"==typeof define&&define.amd?define(["jquery","./core","./widget","./position"],n):n(jQuery)}(function(n){return n.widget("ui.menu",{version:"1.11.4",defaultElement:"