var mejs;function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(e){mejs.YouTubeApi.flashReady(e)}function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(e){mejs.YouTubeApi.flashReady(e)}function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(e){mejs.YouTubeApi.flashReady(e)}function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(e){mejs.YouTubeApi.flashReady(e)}!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){var t=[],x=C.document,d=t.slice,f=t.concat,r=t.push,s=t.indexOf,i={},n=i.toString,m=i.hasOwnProperty,g={},o="2.2.4",M=function(e,t){return new M.fn.init(e,t)},a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,l=/^-ms-/,u=/-([\da-z])/gi,c=function(e,t){return t.toUpperCase()};function h(e){var t=!!e&&"length"in e&&e.length,i=M.type(e);return"function"!==i&&!M.isWindow(e)&&("array"===i||0===t||"number"==typeof t&&0+~]|"+H+")"+H+"*"),R=new RegExp("="+H+"*([^\\]'\"]*?)"+H+"*\\]","g"),U=new RegExp(G),q=new RegExp("^"+B+"$"),$={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,J=/'|\\/g,ee=new RegExp("\\\\([\\da-f]{1,6}"+H+"?|("+H+")|.)","ig"),te=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},ie=function(){S()};try{F.apply(t=I.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(e){F={apply:t.length?function(e,t){E.apply(e,I.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function ne(e,t,i,n){var s,o,a,r,l,u,d,c,h=t&&t.ownerDocument,p=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return i;if(!n&&((t?t.ownerDocument||t:y)!==C&&S(t),t=t||C,x)){if(11!==p&&(u=Q.exec(e)))if(s=u[1]){if(9===p){if(!(a=t.getElementById(s)))return i;if(a.id===s)return i.push(a),i}else if(h&&(a=h.getElementById(s))&&b(t,a)&&a.id===s)return i.push(a),i}else{if(u[2])return F.apply(i,t.getElementsByTagName(e)),i;if((s=u[3])&&m.getElementsByClassName&&t.getElementsByClassName)return F.apply(i,t.getElementsByClassName(s)),i}if(m.qsa&&!P[e+" "]&&(!v||!v.test(e))){if(1!==p)h=t,c=e;else if("object"!==t.nodeName.toLowerCase()){for((r=t.getAttribute("id"))?r=r.replace(J,"\\$&"):t.setAttribute("id",r=M),o=(d=f(e)).length,l=q.test(r)?"#"+r:"[id='"+r+"']";o--;)d[o]=l+" "+me(d[o]);c=d.join(","),h=Z.test(e)&&he(t.parentNode)||t}if(c)try{return F.apply(i,h.querySelectorAll(c)),i}catch(e){}finally{r===M&&t.removeAttribute("id")}}}return g(e.replace(z,"$1"),t,i,n)}function se(){var n=[];return function e(t,i){return n.push(t+" ")>T.cacheLength&&delete e[n.shift()],e[t+" "]=i}}function oe(e){return e[M]=!0,e}function ae(e){var t=C.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e,t){for(var i=e.split("|"),n=i.length;n--;)T.attrHandle[i[n]]=t}function le(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function ue(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function de(i){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===i}}function ce(a){return oe(function(o){return o=+o,oe(function(e,t){for(var i,n=a([],e.length,o),s=n.length;s--;)e[i=n[s]]&&(e[i]=!(t[i]=e[i]))})})}function he(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in m=ne.support={},s=ne.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},S=ne.setDocument=function(e){var t,i,n=e?e.ownerDocument||e:y;return n!==C&&9===n.nodeType&&n.documentElement&&(a=(C=n).documentElement,x=!s(C),(i=C.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ie,!1):i.attachEvent&&i.attachEvent("onunload",ie)),m.attributes=ae(function(e){return e.className="i",!e.getAttribute("className")}),m.getElementsByTagName=ae(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),m.getElementsByClassName=K.test(C.getElementsByClassName),m.getById=ae(function(e){return a.appendChild(e).id=M,!C.getElementsByName||!C.getElementsByName(M).length}),m.getById?(T.find.ID=function(e,t){if(void 0!==t.getElementById&&x){var i=t.getElementById(e);return i?[i]:[]}},T.filter.ID=function(e){var t=e.replace(ee,te);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var i=e.replace(ee,te);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===i}}),T.find.TAG=m.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):m.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;i=o[s++];)1===i.nodeType&&n.push(i);return n},T.find.CLASS=m.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&x)return t.getElementsByClassName(e)},r=[],v=[],(m.qsa=K.test(C.querySelectorAll))&&(ae(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+H+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+H+"*(?:value|"+N+")"),e.querySelectorAll("[id~="+M+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+M+"+*").length||v.push(".#.+[+~]")}),ae(function(e){var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+H+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(m.matchesSelector=K.test(d=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ae(function(e){m.disconnectedMatch=d.call(e,"div"),d.call(e,"[s!='']:x"),r.push("!=",G)}),v=v.length&&new RegExp(v.join("|")),r=r.length&&new RegExp(r.join("|")),t=K.test(a.compareDocumentPosition),b=t||K.test(a.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},_=t?function(e,t){if(e===t)return u=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===i?e===C||e.ownerDocument===y&&b(y,e)?-1:t===C||t.ownerDocument===y&&b(y,t)?1:l?D(l,e)-D(l,t):0:4&i?-1:1)}:function(e,t){if(e===t)return u=!0,0;var i,n=0,s=e.parentNode,o=t.parentNode,a=[e],r=[t];if(!s||!o)return e===C?-1:t===C?1:s?-1:o?1:l?D(l,e)-D(l,t):0;if(s===o)return le(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)r.unshift(i);for(;a[n]===r[n];)n++;return n?le(a[n],r[n]):a[n]===y?-1:r[n]===y?1:0}),C},ne.matches=function(e,t){return ne(e,null,null,t)},ne.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&S(e),t=t.replace(R,"='$1']"),m.matchesSelector&&x&&!P[t+" "]&&(!r||!r.test(t))&&(!v||!v.test(t)))try{var i=d.call(e,t);if(i||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ee,te),e[3]=(e[3]||e[4]||e[5]||"").replace(ee,te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ne.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ne.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&U.test(i)&&(t=f(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ee,te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=h[e+" "];return t||(t=new RegExp("(^|"+H+")"+e+"("+H+"|$)"))&&h(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(i,n,s){return function(e){var t=ne.attr(e,i);return null==t?"!="===n:!n||(t+="","="===n?t===s:"!="===n?t!==s:"^="===n?s&&0===t.indexOf(s):"*="===n?s&&-1(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function S(e,i,n){if(M.isFunction(i))return M.grep(e,function(e,t){return!!i.call(e,t,e)!==n});if(i.nodeType)return M.grep(e,function(e){return e===i!==n});if("string"==typeof i){if(w.test(i))return M.filter(i,e,n);i=M.filter(i,e)}return M.grep(e,function(e){return-1)[^>]*|#([\w-]*))$/;(M.fn.init=function(e,t,i){var n,s;if(!e)return this;if(i=i||k,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):M.isFunction(e)?void 0!==i.ready?i.ready(e):e(M):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),M.makeArray(e,this));if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:P.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof M?t[0]:t,M.merge(this,M.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:x,!0)),T.test(n[1])&&M.isPlainObject(t))for(n in t)M.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(s=x.getElementById(n[2]))&&s.parentNode&&(this.length=1,this[0]=s),this.context=x,this.selector=e,this}).prototype=M.fn,k=M(x);var _=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}M.fn.extend({has:function(e){var t=M(e,this),i=t.length;return this.filter(function(){for(var e=0;e",""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Q(e,t){var i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&M.nodeName(e,t)?M.merge([e],i):i}function Z(e,t){for(var i=0,n=e.length;ix",g.noCloneChecked=!!J.cloneNode(!0).lastChild.defaultValue;var ne=/^key/,se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oe=/^([^.]*)(?:\.(.+)|)/;function ae(){return!0}function re(){return!1}function le(){try{return x.activeElement}catch(e){}}function ue(e,t,i,n,s,o){var a,r;if("object"==typeof t){for(r in"string"!=typeof i&&(n=n||i,i=void 0),t)ue(e,r,i,n,t[r],o);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=re;else if(!s)return e;return 1===o&&(a=s,(s=function(e){return M().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=M.guid++)),e.each(function(){M.event.add(this,t,s,n,i)})}M.event={global:{},add:function(t,e,i,n,s){var o,a,r,l,u,d,c,h,p,m,f,g=B.get(t);if(g)for(i.handler&&(i=(o=i).handler,s=o.selector),i.guid||(i.guid=M.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(e){return void 0!==M&&M.event.triggered!==e.type?M.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(F)||[""]).length;u--;)p=f=(r=oe.exec(e[u])||[])[1],m=(r[2]||"").split(".").sort(),p&&(c=M.event.special[p]||{},p=(s?c.delegateType:c.bindType)||p,c=M.event.special[p]||{},d=M.extend({type:p,origType:f,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&M.expr.match.needsContext.test(s),namespace:m.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,n,m,a)||t.addEventListener&&t.addEventListener(p,a)),c.add&&(c.add.call(t,d),d.handler.guid||(d.handler.guid=i.guid)),s?h.splice(h.delegateCount++,0,d):h.push(d),M.event.global[p]=!0)},remove:function(e,t,i,n,s){var o,a,r,l,u,d,c,h,p,m,f,g=B.hasData(e)&&B.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(F)||[""]).length;u--;)if(p=f=(r=oe.exec(t[u])||[])[1],m=(r[2]||"").split(".").sort(),p){for(c=M.event.special[p]||{},h=l[p=(n?c.delegateType:c.bindType)||p]||[],r=r[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)d=h[o],!s&&f!==d.origType||i&&i.guid!==d.guid||r&&!r.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(h.splice(o,1),d.selector&&h.delegateCount--,c.remove&&c.remove.call(e,d));a&&!h.length&&(c.teardown&&!1!==c.teardown.call(e,m,g.handle)||M.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)M.event.remove(e,p+t[u],i,n,!0);M.isEmptyObject(l)&&B.remove(e,"handle events")}},dispatch:function(e){e=M.event.fix(e);var t,i,n,s,o,a,r=d.call(arguments),l=(B.get(this,"events")||{})[e.type]||[],u=M.event.special[e.type]||{};if((r[0]=e).delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(a=M.event.handlers.call(this,e,l),t=0;(s=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(n=((M.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,r))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,n,s,o,a=[],r=t.delegateCount,l=e.target;if(r&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(n=[],i=0;i]*)\/>/gi,ce=/\s*$/g;function fe(e,t){return M.nodeName(e,"table")&&M.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ge(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ve(e){var t=pe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function be(e,t){var i,n,s,o,a,r,l,u;if(1===t.nodeType){if(B.hasData(e)&&(o=B.access(e),a=B.set(t,o),u=o.events))for(s in delete a.handle,a.events={},u)for(i=0,n=u[s].length;i")},clone:function(e,t,i){var n,s,o,a,r,l,u,d=e.cloneNode(!0),c=M.contains(e.ownerDocument,e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||M.isXMLDoc(e)))for(a=Q(d),n=0,s=(o=Q(e)).length;n")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),i=Ce(e,t),we.detach()),Se[e]=i),i}var Me=/^margin/,ke=new RegExp("^("+V+")(?!px)[a-z%]+$","i"),Pe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},_e=function(e,t,i,n){var s,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in s=i.apply(e,n||[]),t)e.style[o]=a[o];return s},je=x.documentElement;function Ae(e,t,i){var n,s,o,a,r=e.style;return""!==(a=(i=i||Pe(e))?i.getPropertyValue(t)||i[t]:void 0)&&void 0!==a||M.contains(e.ownerDocument,e)||(a=M.style(e,t)),i&&!g.pixelMarginRight()&&ke.test(a)&&Me.test(t)&&(n=r.width,s=r.minWidth,o=r.maxWidth,r.minWidth=r.maxWidth=r.width=a,a=i.width,r.width=n,r.minWidth=s,r.maxWidth=o),void 0!==a?a+"":a}function Ee(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var t,i,n,s,o=x.createElement("div"),a=x.createElement("div");function e(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",je.appendChild(o);var e=C.getComputedStyle(a);t="1%"!==e.top,s="2px"===e.marginLeft,i="4px"===e.width,a.style.marginRight="50%",n="4px"===e.marginRight,je.removeChild(o)}a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),M.extend(g,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return null==i&&e(),i},pixelMarginRight:function(){return null==i&&e(),n},reliableMarginLeft:function(){return null==i&&e(),s},reliableMarginRight:function(){var e,t=a.appendChild(x.createElement("div"));return t.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",a.style.width="1px",je.appendChild(o),e=!parseFloat(C.getComputedStyle(t).marginRight),je.removeChild(o),a.removeChild(t),e}}))}();var Fe=/^(none|table(?!-c[ea]).+)/,Ie={position:"absolute",visibility:"hidden",display:"block"},De={letterSpacing:"0",fontWeight:"400"},Ne=["Webkit","O","Moz","ms"],He=x.createElement("div").style;function Be(e){if(e in He)return e;for(var t=e[0].toUpperCase()+e.slice(1),i=Ne.length;i--;)if((e=Ne[i]+t)in He)return e}function Le(e,t,i){var n=W.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function Ge(e,t,i,n,s){for(var o=i===(n?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===i&&(a+=M.css(e,i+R[o],!0,s)),n?("content"===i&&(a-=M.css(e,"padding"+R[o],!0,s)),"margin"!==i&&(a-=M.css(e,"border"+R[o]+"Width",!0,s))):(a+=M.css(e,"padding"+R[o],!0,s),"padding"!==i&&(a+=M.css(e,"border"+R[o]+"Width",!0,s)));return a}function Oe(e,t,i){var n=!0,s="width"===t?e.offsetWidth:e.offsetHeight,o=Pe(e),a="border-box"===M.css(e,"boxSizing",!1,o);if(s<=0||null==s){if(((s=Ae(e,t,o))<0||null==s)&&(s=e.style[t]),ke.test(s))return s;n=a&&(g.boxSizingReliable()||s===e.style[t]),s=parseFloat(s)||0}return s+Ge(e,t,i||(a?"border":"content"),n,o)+"px"}function ze(e,t){for(var i,n,s,o=[],a=0,r=e.length;a").prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(e){n.remove(),s=null,e&&t("error"===e.type?404:200,e.type)}),x.head.appendChild(n[0])},abort:function(){s&&s()}}});var Ft=[],It=/(=)\?(?=&|$)|\?\?/;M.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ft.pop()||M.expando+"_"+dt++;return this[e]=!0,e}}),M.ajaxPrefilter("json jsonp",function(e,t,i){var n,s,o,a=!1!==e.jsonp&&(It.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&It.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=M.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(It,"$1"+n):!1!==e.jsonp&&(e.url+=(ct.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return o||M.error(n+" was not called"),o[0]},e.dataTypes[0]="json",s=C[n],C[n]=function(){o=arguments},i.always(function(){void 0===s?M(C).removeProp(n):C[n]=s,e[n]&&(e.jsonpCallback=t.jsonpCallback,Ft.push(n)),o&&M.isFunction(s)&&s(o[0]),o=s=void 0}),"script"}),M.parseHTML=function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||x;var n=T.exec(e),s=!i&&[];return n?[t.createElement(n[1])]:(n=ie([e],t,s),s&&s.length&&M(s).remove(),M.merge([],n.childNodes))};var Dt=M.fn.load;function Nt(e){return M.isWindow(e)?e:9===e.nodeType&&e.defaultView}M.fn.load=function(e,t,i){if("string"!=typeof e&&Dt)return Dt.apply(this,arguments);var n,s,o,a=this,r=e.indexOf(" ");return-1").append(M.parseHTML(e)).find(n):e)}).always(i&&function(e,t){a.each(function(){i.apply(this,o||[e.responseText,t,e])})}),this},M.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){M.fn[t]=function(e){return this.on(t,e)}}),M.expr.filters.animated=function(t){return M.grep(M.timers,function(e){return t===e.elem}).length},M.offset={setOffset:function(e,t,i){var n,s,o,a,r,l,u=M.css(e,"position"),d=M(e),c={};"static"===u&&(e.style.position="relative"),r=d.offset(),o=M.css(e,"top"),l=M.css(e,"left"),s=("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(a=(n=d.position()).top,n.left):(a=parseFloat(o)||0,parseFloat(l)||0),M.isFunction(t)&&(t=t.call(e,i,M.extend({},r))),null!=t.top&&(c.top=t.top-r.top+a),null!=t.left&&(c.left=t.left-r.left+s),"using"in t?t.using.call(e,c):d.css(c)}},M.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){M.offset.setOffset(this,t,e)});var e,i,n=this[0],s={top:0,left:0},o=n&&n.ownerDocument;return o?(e=o.documentElement,M.contains(e,n)?(s=n.getBoundingClientRect(),i=Nt(o),{top:s.top+i.pageYOffset-e.clientTop,left:s.left+i.pageXOffset-e.clientLeft}):s):void 0},position:function(){if(this[0]){var e,t,i=this[0],n={top:0,left:0};return"fixed"===M.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),M.nodeName(e[0],"html")||(n=e.offset()),n.top+=M.css(e[0],"borderTopWidth",!0),n.left+=M.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-M.css(i,"marginTop",!0),left:t.left-n.left-M.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===M.css(e,"position");)e=e.offsetParent;return e||je})}}),M.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,s){var o="pageYOffset"===s;M.fn[t]=function(e){return D(this,function(e,t,i){var n=Nt(e);if(void 0===i)return n?n[s]:e[t];n?n.scrollTo(o?n.pageXOffset:i,o?i:n.pageYOffset):e[t]=i},t,e,arguments.length)}}),M.each(["top","left"],function(e,i){M.cssHooks[i]=Ee(g.pixelPosition,function(e,t){if(t)return t=Ae(e,i),ke.test(t)?M(e).position()[i]+"px":t})}),M.each({Height:"height",Width:"width"},function(o,a){M.each({padding:"inner"+o,content:a,"":"outer"+o},function(n,e){M.fn[e]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),s=n||(!0===e||!0===t?"margin":"border");return D(this,function(e,t,i){var n;return M.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+o],n["scroll"+o],e.body["offset"+o],n["offset"+o],n["client"+o])):void 0===i?M.css(e,t,s):M.style(e,t,i,s)},a,i?e:void 0,i,null)}})}),M.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},size:function(){return this.length}}),M.fn.andSelf=M.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return M});var Ht=C.jQuery,Bt=C.$;return M.noConflict=function(e){return C.$===M&&(C.$=Bt),e&&C.jQuery===M&&(C.jQuery=Ht),M},e||(C.jQuery=C.$=M),M}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(_){var e,t,i,n;function s(e,t){var i,n,s,o=e.nodeName.toLowerCase();return"area"===o?(n=(i=e.parentNode).name,!(!e.href||!n||"map"!==i.nodeName.toLowerCase())&&(!!(s=_("img[usemap='#"+n+"']")[0])&&a(s))):(/input|select|textarea|button|object/.test(o)?!e.disabled:"a"===o&&e.href||t)&&a(e)}function a(e){return _.expr.filters.visible(e)&&!_(e).parents().addBack().filter(function(){return"hidden"===_.css(this,"visibility")}).length}_.ui=_.ui||{},_.extend(_.ui,{version:"1.11.1",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}}),_.fn.extend({scrollParent:function(e){var t=this.css("position"),i="absolute"===t,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var e=_(this);return(!i||"static"!==e.css("position"))&&n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&s.length?s:_(this[0].ownerDocument||document)},uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&_(this).removeAttr("id")})}}),_.extend(_.expr[":"],{data:_.expr.createPseudo?_.expr.createPseudo(function(t){return function(e){return!!_.data(e,t)}}):function(e,t,i){return!!_.data(e,i[3])},focusable:function(e){return s(e,!isNaN(_.attr(e,"tabindex")))},tabbable:function(e){var t=_.attr(e,"tabindex"),i=isNaN(t);return(i||0<=t)&&s(e,!i)}}),_("").outerWidth(1).jquery||_.each(["Width","Height"],function(e,i){var s="Width"===i?["Left","Right"]:["Top","Bottom"],n=i.toLowerCase(),o={innerWidth:_.fn.innerWidth,innerHeight:_.fn.innerHeight,outerWidth:_.fn.outerWidth,outerHeight:_.fn.outerHeight};function a(e,t,i,n){return _.each(s,function(){t-=parseFloat(_.css(e,"padding"+this))||0,i&&(t-=parseFloat(_.css(e,"border"+this+"Width"))||0),n&&(t-=parseFloat(_.css(e,"margin"+this))||0)}),t}_.fn["inner"+i]=function(e){return void 0===e?o["inner"+i].call(this):this.each(function(){_(this).css(n,a(this,e)+"px")})},_.fn["outer"+i]=function(e,t){return"number"!=typeof e?o["outer"+i].call(this,e):this.each(function(){_(this).css(n,a(this,e,!0,t)+"px")})}}),_.fn.addBack||(_.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),_("").data("a-b","a").removeData("a-b").data("a-b")&&(_.fn.removeData=(t=_.fn.removeData,function(e){return arguments.length?t.call(this,_.camelCase(e)):t.call(this)})),_.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),_.fn.extend({focus:(n=_.fn.focus,function(t,i){return"number"==typeof t?this.each(function(){var e=this;setTimeout(function(){_(e).focus(),i&&i.call(e)},t)}):n.apply(this,arguments)}),disableSelection:(i="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.bind(i+".ui-disableSelection",function(e){e.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,i,n=_(this[0]);n.length&&n[0]!==document;){if(("absolute"===(t=n.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(n.css("zIndex"),10),!isNaN(i)&&0!==i))return i;n=n.parent()}return 0}}),_.ui.plugin={add:function(e,t,i){var n,s=_.ui[e].prototype;for(n in i)s.plugins[n]=s.plugins[n]||[],s.plugins[n].push([t,i[n]])},call:function(e,t,i,n){var s,o=e.plugins[t];if(o&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;s",options:{disabled:!1,create:null},_createWidget:function(e,t){t=_(t||this.defaultElement||this)[0],this.element=_(t),this.uuid=r++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=_.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=_(),this.hoverable=_(),this.focusable=_(),t!==this&&(_.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=_(t.style?t.ownerDocument:t.document||t),this.window=_(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:_.noop,_getCreateEventData:_.noop,_create:_.noop,_init:_.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(_.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:_.noop,widget:function(){return this.element},option:function(e,t){var i,n,s,o=e;if(0===arguments.length)return _.widget.extend({},this.options);if("string"==typeof e)if(o={},e=(i=e.split(".")).shift(),i.length){for(n=o[e]=_.widget.extend({},this.options[e]),s=0;s=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});!function(){_.ui=_.ui||{};var s,S,C=Math.max,x=Math.abs,M=Math.round,n=/left|center|right/,o=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,r=/^\w+/,l=/%$/,u=_.fn.position;function k(e,t,i){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?i/100:1)]}function P(e,t){return parseInt(_.css(e,t),10)||0}_.position={scrollbarWidth:function(){if(void 0!==s)return s;var e,t,i=_("
"),n=i.children()[0];return _("body").append(i),e=n.offsetWidth,i.css("overflow","scroll"),e===(t=n.offsetWidth)&&(t=i[0].clientWidth),i.remove(),s=e-t},getScrollInfo:function(e){var t=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===t||"auto"===t&&e.widthC(x(n),x(s))?o.important="horizontal":o.important="vertical",c.using.call(this,e,o)}),a.offset(_.extend(u,{using:e}))})},_.ui.position={fit:{left:function(e,t){var i,n=t.within,s=n.isWindow?n.scrollLeft:n.offset.left,o=n.width,a=e.left-t.collisionPosition.marginLeft,r=s-a,l=a+t.collisionWidth-o-s;t.collisionWidth>o?0o?0u&&(n<0||nd&&(0 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=_(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||!1!==e.active&&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():_()}},_createIcons:function(){var e=this.options.icons;e&&(_("").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 e;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(),e=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&&e.css("height","")},_setOption:function(e,t){"active"!==e?("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||!1!==this.options.active||this._activate(0),"icons"===e&&(this._destroyIcons(),t&&this._createIcons()),"disabled"===e&&(this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t))):this._activate(t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var t=_.ui.keyCode,i=this.headers.length,n=this.headers.index(e.target),s=!1;switch(e.keyCode){case t.RIGHT:case t.DOWN:s=this.headers[(n+1)%i];break;case t.LEFT:case t.UP:s=this.headers[(n-1+i)%i];break;case t.SPACE:case t.ENTER:this._eventHandler(e);break;case t.HOME:s=this.headers[0];break;case t.END:s=this.headers[i-1]}s&&(_(e.target).attr("tabIndex",-1),_(s).attr("tabIndex",0),s.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===_.ui.keyCode.UP&&e.ctrlKey&&_(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=_()):!1===e.active?this._activate(0):this.active.length&&!_.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=_()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var i,e=this.options,t=e.heightStyle,n=this.element.parent();this.active=this._findActive(e.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=_(this),t=e.uniqueId().attr("id"),i=e.next(),n=i.uniqueId().attr("id");e.attr("aria-controls",n),i.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(e.event),"fill"===t?(i=n.height(),this.element.siblings(":visible").each(function(){var e=_(this),t=e.css("position");"absolute"!==t&&"fixed"!==t&&(i-=e.outerHeight(!0))}),this.headers.each(function(){i-=_(this).outerHeight(!0)}),this.headers.next().each(function(){_(this).height(Math.max(0,i-_(this).innerHeight()+_(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.headers.next().each(function(){i=Math.max(i,_(this).css("height","").height())}).height(i))},_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:_.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):_()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&_.each(e.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var t=this.options,i=this.active,n=_(e.currentTarget),s=n[0]===i[0],o=s&&t.collapsible,a=o?_():n.next(),r=i.next(),l={oldHeader:i,oldPanel:r,newHeader:o?_():n,newPanel:a};e.preventDefault(),s&&!t.collapsible||!1===this._trigger("beforeActivate",e,l)||(t.active=!o&&this.headers.index(n),this.active=s?_():n,this._toggle(l),i.removeClass("ui-accordion-header-active ui-state-active"),t.icons&&i.children(".ui-accordion-header-icon").removeClass(t.icons.activeHeader).addClass(t.icons.header),s||(n.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),t.icons&&n.children(".ui-accordion-header-icon").removeClass(t.icons.header).addClass(t.icons.activeHeader),n.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var t=e.newPanel,i=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=t,this.prevHide=i,this.options.animate?this._animate(t,i,e):(i.hide(),t.show(),this._toggleComplete(e)),i.attr({"aria-hidden":"true"}),i.prev().attr("aria-selected","false"),t.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):t.length&&this.headers.filter(function(){return 0===_(this).attr("tabIndex")}).attr("tabIndex",-1),t.attr("aria-hidden","false").prev().attr({"aria-selected":"true",tabIndex:0,"aria-expanded":"true"})},_animate:function(e,i,t){var n,s,o,a=this,r=0,l=e.length&&(!i.length||e.index()",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(e){var t=_(e.target);!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&_(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var t=_(e.currentTarget);t.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(e,t)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,i)},blur:function(e){this._delay(function(){_.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=_(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){var t,i,n,s,o,a=!0;function r(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}switch(e.keyCode){case _.ui.keyCode.PAGE_UP:this.previousPage(e);break;case _.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case _.ui.keyCode.HOME:this._move("first","first",e);break;case _.ui.keyCode.END:this._move("last","last",e);break;case _.ui.keyCode.UP:this.previous(e);break;case _.ui.keyCode.DOWN:this.next(e);break;case _.ui.keyCode.LEFT:this.collapse(e);break;case _.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case _.ui.keyCode.ENTER:case _.ui.keyCode.SPACE:this._activate(e);break;case _.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,i=this.previousFilter||"",n=String.fromCharCode(e.keyCode),s=!1,clearTimeout(this.filterTimer),n===i?s=!0:n=i+n,o=new RegExp("^"+r(n),"i"),t=this.activeMenu.find(this.options.items).filter(function(){return o.test(_(this).text())}),(t=s&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(n=String.fromCharCode(e.keyCode),o=new RegExp("^"+r(n),"i"),t=this.activeMenu.find(this.options.items).filter(function(){return o.test(_(this).text())})),t.length?(this.focus(e,t),1").addClass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),(e=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=_(this);t._isDivider(e)&&e.addClass("ui-widget-content ui-menu-divider")}),e.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!_.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){"icons"===e&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this._super(e,t)},focus:function(e,t){var i,n;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),n=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,n,s,o,a;this._hasScroll()&&(t=parseFloat(_.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(_.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-t-i,s=this.activeMenu.scrollTop(),o=this.activeMenu.height(),a=e.outerHeight(),n<0?this.activeMenu.scrollTop(s+n):o",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var i,n,s,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,o="input"===e;this.isMultiLine=!!t||!o&&this.element.prop("isContentEditable"),this.valueMethod=this.element[t||o?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))n=s=i=!0;else{n=s=i=!1;var t=_.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:n=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault());if(!n){var t=_.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){if(s)return s=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(e),this._change(e))}}),this._initSource(),this.menu=_("