if(!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(T,t){"use strict";function g(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item}function m(t){return null!=t&&t===t.window}var e=[],n=Object.getPrototypeOf,a=e.slice,v=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},l=e.push,o=e.indexOf,i={},r=i.toString,y=i.hasOwnProperty,s=y.toString,u=s.call(Object),b={},C=T.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var i,o,r=(n=n||C).createElement("script");if(r.text=t,e)for(i in c)(o=e[i]||e.getAttribute&&e.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function h(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?i[r.call(t)]||"object":typeof t}var d="3.6.0",E=function(t,e){return new E.fn.init(t,e)};function f(t){var e=!!t&&"length"in t&&t.length,n=h(t);return!g(t)&&!m(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}E.fn=E.prototype={jquery:d,constructor:E,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=E.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return E.each(this,t)},map:function(n){return this.pushStack(E.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(E.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:e.sort,splice:e.splice},E.extend=E.fn.extend=function(){var t,e,n,i,o,r=arguments[0]||{},s=1,a=arguments.length,l=!1;for("boolean"==typeof r&&(l=r,r=arguments[s]||{},s++),"object"==typeof r||g(r)||(r={}),s===a&&(r=this,s--);s<a;s++)if(null!=(t=arguments[s]))for(e in t)n=t[e],"__proto__"!==e&&r!==n&&(l&&n&&(E.isPlainObject(n)||(i=Array.isArray(n)))?(o=r[e],o=i&&!Array.isArray(o)?[]:i||E.isPlainObject(o)?o:{},i=!1,r[e]=E.extend(l,o,n)):void 0!==n&&(r[e]=n));return r},E.extend({expando:"jQuery"+(d+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==r.call(t))&&(!(t=n(t))||"function"==typeof(t=y.call(t,"constructor")&&t.constructor)&&s.call(t)===u)},isEmptyObject:function(t){for(var e in t)return!1;return!0},globalEval:function(t,e,n){x(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(f(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){e=e||[];return null!=t&&(f(Object(t))?E.merge(e,"string"==typeof t?[t]:t):l.call(e,t)),e},inArray:function(t,e,n){return null==e?-1:o.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,s=!n;o<r;o++)!e(t[o],o)!=s&&i.push(t[o]);return i},map:function(t,e,n){var i,o,r=0,s=[];if(f(t))for(i=t.length;r<i;r++)null!=(o=e(t[r],r,n))&&s.push(o);else for(r in t)null!=(o=e(t[r],r,n))&&s.push(o);return v(s)},guid:1,support:b}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=e[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){i["[object "+e+"]"]=e.toLowerCase()});var p=function(n){function d(t,e){return t="0x"+t.slice(1)-65536,e||(t<0?String.fromCharCode(65536+t):String.fromCharCode(t>>10|55296,1023&t|56320))}function f(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function i(){T()}var t,p,x,r,o,h,g,m,w,l,u,T,C,s,E,v,a,c,y,S="sizzle"+ +new Date,b=n.document,A=0,k=0,$=lt(),D=lt(),j=lt(),N=lt(),O=function(t,e){return t===e&&(u=!0),0},I={}.hasOwnProperty,e=[],L=e.pop,R=e.push,P=e.push,q=e.slice,F=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",U="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+U+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+M+"*\\]",B=":("+U+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",_=new RegExp(M+"+","g"),z=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),V=new RegExp("^"+M+"*,"+M+"*"),Q=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),X=new RegExp(M+"|>"),G=new RegExp(B),Y=new RegExp("^"+U+"$"),J={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,et=/^[^{]+\{\s*\[native \w/,nt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,it=/[+~]/,ot=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,st=yt(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{P.apply(e=q.call(b.childNodes),b.childNodes),e[b.childNodes.length].nodeType}catch(t){P={apply:e.length?function(t,e){R.apply(t,q.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function at(e,t,n,i){var o,r,s,a,l,u,c=t&&t.ownerDocument,d=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return n;if(!i&&(T(t),t=t||C,E)){if(11!==d&&(a=nt.exec(e)))if(u=a[1]){if(9===d){if(!(r=t.getElementById(u)))return n;if(r.id===u)return n.push(r),n}else if(c&&(r=c.getElementById(u))&&y(t,r)&&r.id===u)return n.push(r),n}else{if(a[2])return P.apply(n,t.getElementsByTagName(e)),n;if((u=a[3])&&p.getElementsByClassName&&t.getElementsByClassName)return P.apply(n,t.getElementsByClassName(u)),n}if(p.qsa&&!N[e+" "]&&(!v||!v.test(e))&&(1!==d||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===d&&(X.test(e)||Q.test(e))){for((c=it.test(e)&&gt(t.parentNode)||t)===t&&p.scope||((s=t.getAttribute("id"))?s=s.replace(rt,f):t.setAttribute("id",s=S)),o=(l=h(e)).length;o--;)l[o]=(s?"#"+s:":scope")+" "+vt(l[o]);u=l.join(",")}try{return P.apply(n,c.querySelectorAll(u)),n}catch(t){N(e,!0)}finally{s===S&&t.removeAttribute("id")}}}return m(e.replace(z,"$1"),t,n,i)}function lt(){var n=[];function i(t,e){return n.push(t+" ")>x.cacheLength&&delete i[n.shift()],i[t+" "]=e}return i}function ut(t){return t[S]=!0,t}function ct(t){var e=C.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function dt(t,e){for(var n=t.split("|"),i=n.length;i--;)x.attrHandle[n[i]]=e}function ft(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function pt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&st(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ht(s){return ut(function(r){return r=+r,ut(function(t,e){for(var n,i=s([],t.length,r),o=i.length;o--;)t[n=i[o]]&&(t[n]=!(e[n]=t[n]))})})}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in p=at.support={},o=at.isXML=function(t){var e=t&&t.namespaceURI,t=t&&(t.ownerDocument||t).documentElement;return!K.test(e||t&&t.nodeName||"HTML")},T=at.setDocument=function(t){var e,t=t?t.ownerDocument||t:b;return t!=C&&9===t.nodeType&&t.documentElement&&(s=(C=t).documentElement,E=!o(C),b!=C&&(e=C.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",i,!1):e.attachEvent&&e.attachEvent("onunload",i)),p.scope=ct(function(t){return s.appendChild(t).appendChild(C.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),p.attributes=ct(function(t){return t.className="i",!t.getAttribute("className")}),p.getElementsByTagName=ct(function(t){return t.appendChild(C.createComment("")),!t.getElementsByTagName("*").length}),p.getElementsByClassName=et.test(C.getElementsByClassName),p.getById=ct(function(t){return s.appendChild(t).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),p.getById?(x.filter.ID=function(t){var e=t.replace(ot,d);return function(t){return t.getAttribute("id")===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&E){t=e.getElementById(t);return t?[t]:[]}}):(x.filter.ID=function(t){var e=t.replace(ot,d);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&E){var n,i,o,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(o=e.getElementsByName(t),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),x.find.TAG=p.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):p.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"!==t)return r;for(;n=r[o++];)1===n.nodeType&&i.push(n);return i},x.find.CLASS=p.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&E)return e.getElementsByClassName(t)},a=[],v=[],(p.qsa=et.test(C.querySelectorAll))&&(ct(function(t){var e;s.appendChild(t).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+H+")"),t.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(e=C.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),t.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ct(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=C.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),s.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")})),(p.matchesSelector=et.test(c=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ct(function(t){p.disconnectedMatch=c.call(t,"*"),c.call(t,"[s!='']:x"),a.push("!=",B)}),v=v.length&&new RegExp(v.join("|")),a=a.length&&new RegExp(a.join("|")),e=et.test(s.compareDocumentPosition),y=e||et.test(s.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},O=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!p.sortDetached&&e.compareDocumentPosition(t)===n?t==C||t.ownerDocument==b&&y(b,t)?-1:e==C||e.ownerDocument==b&&y(b,e)?1:l?F(l,t)-F(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,s=[t],a=[e];if(!o||!r)return t==C?-1:e==C?1:o?-1:r?1:l?F(l,t)-F(l,e):0;if(o===r)return ft(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ft(s[i],a[i]):s[i]==b?-1:a[i]==b?1:0}),C},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if(T(t),p.matchesSelector&&E&&!N[e+" "]&&(!a||!a.test(e))&&(!v||!v.test(e)))try{var n=c.call(t,e);if(n||p.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){N(e,!0)}return 0<at(e,C,null,[t]).length},at.contains=function(t,e){return(t.ownerDocument||t)!=C&&T(t),y(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!=C&&T(t);var n=x.attrHandle[e.toLowerCase()],n=n&&I.call(x.attrHandle,e.toLowerCase())?n(t,e,!E):void 0;return void 0!==n?n:p.attributes||!E?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},at.escape=function(t){return(t+"").replace(rt,f)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,n=[],i=0,o=0;if(u=!p.detectDuplicates,l=!p.sortStable&&t.slice(0),t.sort(O),u){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return l=null,t},r=at.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},(x=at.selectors={cacheLength:50,createPseudo:ut,match:J,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(ot,d),t[3]=(t[3]||t[4]||t[5]||"").replace(ot,d),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return J.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&G.test(n)&&(e=h(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(ot,d).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=$[t+" "];return e||(e=new RegExp("(^|"+M+")"+t+"("+M+"|$)"))&&$(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(t){t=at.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===i:"!="===n?t!==i:"^="===n?i&&0===t.indexOf(i):"*="===n?i&&-1<t.indexOf(i):"$="===n?i&&t.slice(-i.length)===i:"~="===n?-1<(" "+t.replace(_," ")+" ").indexOf(i):"|="===n&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,t,e,g,m){var v="nth"!==h.slice(0,3),y="last"!==h.slice(-4),b="of-type"===t;return 1===g&&0===m?function(t){return!!t.parentNode}:function(t,e,n){var i,o,r,s,a,l,u=v!=y?"nextSibling":"previousSibling",c=t.parentNode,d=b&&t.nodeName.toLowerCase(),f=!n&&!b,p=!1;if(c){if(v){for(;u;){for(s=t;s=s[u];)if(b?s.nodeName.toLowerCase()===d:1===s.nodeType)return!1;l=u="only"===h&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&f){for(p=(a=(i=(o=(r=(s=c)[S]||(s[S]={}))[s.uniqueID]||(r[s.uniqueID]={}))[h]||[])[0]===A&&i[1])&&i[2],s=a&&c.childNodes[a];s=++a&&s&&s[u]||(p=a=0)||l.pop();)if(1===s.nodeType&&++p&&s===t){o[h]=[A,a,p];break}}else if(!1===(p=f?a=(i=(o=(r=(s=t)[S]||(s[S]={}))[s.uniqueID]||(r[s.uniqueID]={}))[h]||[])[0]===A&&i[1]:p))for(;(s=++a&&s&&s[u]||(p=a=0)||l.pop())&&((b?s.nodeName.toLowerCase()!==d:1!==s.nodeType)||!++p||(f&&((o=(r=s[S]||(s[S]={}))[s.uniqueID]||(r[s.uniqueID]={}))[h]=[A,p]),s!==t)););return(p-=m)===g||p%g==0&&0<=p/g}}},PSEUDO:function(t,r){var e,s=x.pseudos[t]||x.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return s[S]?s(r):1<s.length?(e=[t,t,"",r],x.setFilters.hasOwnProperty(t.toLowerCase())?ut(function(t,e){for(var n,i=s(t,r),o=i.length;o--;)t[n=F(t,i[o])]=!(e[n]=i[o])}):function(t){return s(t,0,e)}):s}},pseudos:{not:ut(function(t){var i=[],o=[],a=g(t.replace(z,"$1"));return a[S]?ut(function(t,e,n,i){for(var o,r=a(t,null,i,[]),s=t.length;s--;)(o=r[s])&&(t[s]=!(e[s]=o))}):function(t,e,n){return i[0]=t,a(i,null,n,o),i[0]=null,!o.pop()}}),has:ut(function(e){return function(t){return 0<at(e,t).length}}),contains:ut(function(e){return e=e.replace(ot,d),function(t){return-1<(t.textContent||r(t)).indexOf(e)}}),lang:ut(function(n){return Y.test(n||"")||at.error("unsupported lang: "+n),n=n.replace(ot,d).toLowerCase(),function(t){var e;do{if(e=E?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===s},focus:function(t){return t===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:pt(!1),disabled:pt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return tt.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:ht(function(){return[0]}),last:ht(function(t,e){return[e-1]}),eq:ht(function(t,e,n){return[n<0?n+e:n]}),even:ht(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:ht(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:ht(function(t,e,n){for(var i=n<0?n+e:e<n?e:n;0<=--i;)t.push(i);return t}),gt:ht(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})x.pseudos[t]=function(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}(t);function mt(){}function vt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function yt(s,t,e){var a=t.dir,l=t.next,u=l||a,c=e&&"parentNode"===u,d=k++;return t.first?function(t,e,n){for(;t=t[a];)if(1===t.nodeType||c)return s(t,e,n);return!1}:function(t,e,n){var i,o,r=[A,d];if(n){for(;t=t[a];)if((1===t.nodeType||c)&&s(t,e,n))return!0}else for(;t=t[a];)if(1===t.nodeType||c)if(i=(o=t[S]||(t[S]={}))[t.uniqueID]||(o[t.uniqueID]={}),l&&l===t.nodeName.toLowerCase())t=t[a]||t;else{if((o=i[u])&&o[0]===A&&o[1]===d)return r[2]=o[2];if((i[u]=r)[2]=s(t,e,n))return!0}return!1}}function bt(o){return 1<o.length?function(t,e,n){for(var i=o.length;i--;)if(!o[i](t,e,n))return!1;return!0}:o[0]}function xt(t,e,n,i,o){for(var r,s=[],a=0,l=t.length,u=null!=e;a<l;a++)(r=t[a])&&(n&&!n(r,i,o)||(s.push(r),u&&e.push(a)));return s}function wt(p,h,g,m,v,t){return m&&!m[S]&&(m=wt(m)),v&&!v[S]&&(v=wt(v,t)),ut(function(t,e,n,i){var o,r,s,a=[],l=[],u=e.length,c=t||function(t,e,n){for(var i=0,o=e.length;i<o;i++)at(t,e[i],n);return n}(h||"*",n.nodeType?[n]:n,[]),d=!p||!t&&h?c:xt(c,a,p,n,i),f=g?v||(t?p:u||m)?[]:e:d;if(g&&g(d,f,n,i),m)for(o=xt(f,l),m(o,[],n,i),r=o.length;r--;)(s=o[r])&&(f[l[r]]=!(d[l[r]]=s));if(t){if(v||p){if(v){for(o=[],r=f.length;r--;)(s=f[r])&&o.push(d[r]=s);v(null,f=[],o,i)}for(r=f.length;r--;)(s=f[r])&&-1<(o=v?F(t,s):a[r])&&(t[o]=!(e[o]=s))}}else f=xt(f===e?f.splice(u,f.length):f),v?v(null,e,f,i):P.apply(e,f)})}function Tt(m,v){function t(t,e,n,i,o){var r,s,a,l=0,u="0",c=t&&[],d=[],f=w,p=t||b&&x.find.TAG("*",o),h=A+=null==f?1:Math.random()||.1,g=p.length;for(o&&(w=e==C||e||o);u!==g&&null!=(r=p[u]);u++){if(b&&r){for(s=0,e||r.ownerDocument==C||(T(r),n=!E);a=m[s++];)if(a(r,e||C,n)){i.push(r);break}o&&(A=h)}y&&((r=!a&&r)&&l--,t&&c.push(r))}if(l+=u,y&&u!==l){for(s=0;a=v[s++];)a(c,d,e,n);if(t){if(0<l)for(;u--;)c[u]||d[u]||(d[u]=L.call(i));d=xt(d)}P.apply(i,d),o&&!t&&0<d.length&&1<l+v.length&&at.uniqueSort(i)}return o&&(A=h,w=f),c}var y=0<v.length,b=0<m.length;return y?ut(t):t}return mt.prototype=x.filters=x.pseudos,x.setFilters=new mt,h=at.tokenize=function(t,e){var n,i,o,r,s,a,l,u=D[t+" "];if(u)return e?0:u.slice(0);for(s=t,a=[],l=x.preFilter;s;){for(r in n&&!(i=V.exec(s))||(i&&(s=s.slice(i[0].length)||s),a.push(o=[])),n=!1,(i=Q.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(z," ")}),s=s.slice(n.length)),x.filter)!(i=J[r].exec(s))||l[r]&&!(i=l[r](i))||(n=i.shift(),o.push({value:n,type:r,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?at.error(t):D(t,a).slice(0)},g=at.compile=function(t,e){var n,i=[],o=[],r=j[t+" "];if(!r){for(n=(e=e||h(t)).length;n--;)((r=function t(e){for(var i,n,o,r=e.length,s=x.relative[e[0].type],a=s||x.relative[" "],l=s?1:0,u=yt(function(t){return t===i},a,!0),c=yt(function(t){return-1<F(i,t)},a,!0),d=[function(t,e,n){return n=!s&&(n||e!==w)||((i=e).nodeType?u:c)(t,e,n),i=null,n}];l<r;l++)if(n=x.relative[e[l].type])d=[yt(bt(d),n)];else{if((n=x.filter[e[l].type].apply(null,e[l].matches))[S]){for(o=++l;o<r&&!x.relative[e[o].type];o++);return wt(1<l&&bt(d),1<l&&vt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,l<o&&t(e.slice(l,o)),o<r&&t(e=e.slice(o)),o<r&&vt(e))}d.push(n)}return bt(d)}(e[n]))[S]?i:o).push(r);(r=j(t,Tt(o,i))).selector=t}return r},m=at.select=function(t,e,n,i){var o,r,s,a,l,u="function"==typeof t&&t,c=!i&&h(t=u.selector||t);if(n=n||[],1===c.length){if(2<(r=c[0]=c[0].slice(0)).length&&"ID"===(s=r[0]).type&&9===e.nodeType&&E&&x.relative[r[1].type]){if(!(e=(x.find.ID(s.matches[0].replace(ot,d),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(o=J.needsContext.test(t)?0:r.length;o--&&(s=r[o],!x.relative[a=s.type]);)if((l=x.find[a])&&(i=l(s.matches[0].replace(ot,d),it.test(r[0].type)&&gt(e.parentNode)||e))){if(r.splice(o,1),!(t=i.length&&vt(r)))return P.apply(n,i),n;break}}return(u||g(t,c))(i,e,!E,n,!e||it.test(t)&&gt(e.parentNode)||e),n},p.sortStable=S.split("").sort(O).join("")===S,p.detectDuplicates=!!u,T(),p.sortDetached=ct(function(t){return 1&t.compareDocumentPosition(C.createElement("fieldset"))}),ct(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||dt("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),p.attributes&&ct(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||dt("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ct(function(t){return null==t.getAttribute("disabled")})||dt(H,function(t,e,n){if(!n)return!0===t[e]?e.toLowerCase():(e=t.getAttributeNode(e))&&e.specified?e.value:null}),at}(T);E.find=p,E.expr=p.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=p.uniqueSort,E.text=p.getText,E.isXMLDoc=p.isXML,E.contains=p.contains,E.escapeSelector=p.escape;function w(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&E(t).is(n))break;i.push(t)}return i}function S(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var A=E.expr.match.needsContext;function k(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var $=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(t,n,i){return g(n)?E.grep(t,function(t,e){return!!n.call(t,e,t)!==i}):n.nodeType?E.grep(t,function(t){return t===n!==i}):"string"!=typeof n?E.grep(t,function(t){return-1<o.call(n,t)!==i}):E.filter(n,t,i)}E.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?E.find.matchesSelector(i,t)?[i]:[]:E.find.matches(t,E.grep(e,function(t){return 1===t.nodeType}))},E.fn.extend({find:function(t){var e,n,i=this.length,o=this;if("string"!=typeof t)return this.pushStack(E(t).filter(function(){for(e=0;e<i;e++)if(E.contains(o[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)E.find(t,o[e],n);return 1<i?E.uniqueSort(n):n},filter:function(t){return this.pushStack(D(this,t||[],!1))},not:function(t){return this.pushStack(D(this,t||[],!0))},is:function(t){return!!D(this,"string"==typeof t&&A.test(t)?E(t):t||[],!1).length}});var j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(t,e,n){if(!t)return this;if(n=n||N,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):g(t)?void 0!==n.ready?n.ready(t):t(E):E.makeArray(t,this);if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:j.exec(t))||!i[1]&&e)return(!e||e.jquery?e||n:this.constructor(e)).find(t);if(i[1]){if(e=e instanceof E?e[0]:e,E.merge(this,E.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:C,!0)),$.test(i[1])&&E.isPlainObject(e))for(var i in e)g(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(t=C.getElementById(i[2]))&&(this[0]=t,this.length=1),this}).prototype=E.fn;var N=E(C),O=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function L(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}E.fn.extend({has:function(t){var e=E(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(E.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,o=this.length,r=[],s="string"!=typeof t&&E(t);if(!A.test(t))for(;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&E.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(1<r.length?E.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?o.call(E(t),this[0]):o.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),E.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return w(t,"parentNode")},parentsUntil:function(t,e,n){return w(t,"parentNode",n)},next:function(t){return L(t,"nextSibling")},prev:function(t){return L(t,"previousSibling")},nextAll:function(t){return w(t,"nextSibling")},prevAll:function(t){return w(t,"previousSibling")},nextUntil:function(t,e,n){return w(t,"nextSibling",n)},prevUntil:function(t,e,n){return w(t,"previousSibling",n)},siblings:function(t){return S((t.parentNode||{}).firstChild,t)},children:function(t){return S(t.firstChild)},contents:function(t){return null!=t.contentDocument&&n(t.contentDocument)?t.contentDocument:(k(t,"template")&&(t=t.content||t),E.merge([],t.childNodes))}},function(i,o){E.fn[i]=function(t,e){var n=E.map(this,o,t);return(e="Until"!==i.slice(-5)?t:e)&&"string"==typeof e&&(n=E.filter(e,n)),1<this.length&&(I[i]||E.uniqueSort(n),O.test(i)&&n.reverse()),this.pushStack(n)}});var R=/[^\x20\t\r\n\f]+/g;function P(t){return t}function q(t){throw t}function F(t,e,n,i){var o;try{t&&g(o=t.promise)?o.call(t).done(e).fail(n):t&&g(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}E.Callbacks=function(i){var t,n;i="string"==typeof i?(t=i,n={},E.each(t.match(R)||[],function(t,e){n[e]=!0}),n):E.extend({},i);function o(){for(a=a||i.once,s=r=!0;u.length;c=-1)for(e=u.shift();++c<l.length;)!1===l[c].apply(e[0],e[1])&&i.stopOnFalse&&(c=l.length,e=!1);i.memory||(e=!1),r=!1,a&&(l=e?[]:"")}var r,e,s,a,l=[],u=[],c=-1,d={add:function(){return l&&(e&&!r&&(c=l.length-1,u.push(e)),function n(t){E.each(t,function(t,e){g(e)?i.unique&&d.has(e)||l.push(e):e&&e.length&&"string"!==h(e)&&n(e)})}(arguments),e&&!r&&o()),this},remove:function(){return E.each(arguments,function(t,e){for(var n;-1<(n=E.inArray(e,l,n));)l.splice(n,1),n<=c&&c--}),this},has:function(t){return t?-1<E.inArray(t,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=u=[],l=e="",this},disabled:function(){return!l},lock:function(){return a=u=[],e||r||(l=e=""),this},locked:function(){return!!a},fireWith:function(t,e){return a||(e=[t,(e=e||[]).slice?e.slice():e],u.push(e),r||o()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!s}};return d},E.extend({Deferred:function(t){var r=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],o="pending",s={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return s.then(null,t)},pipe:function(){var o=arguments;return E.Deferred(function(i){E.each(r,function(t,e){var n=g(o[e[4]])&&o[e[4]];a[e[1]](function(){var t=n&&n.apply(this,arguments);t&&g(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[e[0]+"With"](this,n?[t]:arguments)})}),o=null}).promise()},then:function(e,n,i){var l=0;function u(o,r,s,a){return function(){function t(){var t,e;if(!(o<l)){if((t=s.apply(n,i))===r.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,g(e)?a?e.call(t,u(l,r,P,a),u(l,r,q,a)):(l++,e.call(t,u(l,r,P,a),u(l,r,q,a),u(l,r,P,r.notifyWith))):(s!==P&&(n=void 0,i=[t]),(a||r.resolveWith)(n,i))}}var n=this,i=arguments,e=a?t:function(){try{t()}catch(t){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(t,e.stackTrace),l<=o+1&&(s!==q&&(n=void 0,i=[t]),r.rejectWith(n,i))}};o?e():(E.Deferred.getStackHook&&(e.stackTrace=E.Deferred.getStackHook()),T.setTimeout(e))}}return E.Deferred(function(t){r[0][3].add(u(0,t,g(i)?i:P,t.notifyWith)),r[1][3].add(u(0,t,g(e)?e:P)),r[2][3].add(u(0,t,g(n)?n:q))}).promise()},promise:function(t){return null!=t?E.extend(t,s):s}},a={};return E.each(r,function(t,e){var n=e[2],i=e[5];s[e[1]]=n.add,i&&n.add(function(){o=i},r[3-t][2].disable,r[3-t][3].disable,r[0][2].lock,r[0][3].lock),n.add(e[3].fire),a[e[0]]=function(){return a[e[0]+"With"](this===a?void 0:this,arguments),this},a[e[0]+"With"]=n.fireWith}),s.promise(a),t&&t.call(a,a),a},when:function(t){function e(e){return function(t){o[e]=this,r[e]=1<arguments.length?a.call(arguments):t,--n||s.resolveWith(o,r)}}var n=arguments.length,i=n,o=Array(i),r=a.call(arguments),s=E.Deferred();if(n<=1&&(F(t,s.done(e(i)).resolve,s.reject,!n),"pending"===s.state()||g(r[i]&&r[i].then)))return s.then();for(;i--;)F(r[i],e(i),s.reject);return s.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(t,e){T.console&&T.console.warn&&t&&H.test(t.name)&&T.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},E.readyException=function(t){T.setTimeout(function(){throw t})};var M=E.Deferred();function U(){C.removeEventListener("DOMContentLoaded",U),T.removeEventListener("load",U),E.ready()}E.fn.ready=function(t){return M.then(t).catch(function(t){E.readyException(t)}),this},E.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--E.readyWait:E.isReady)||(E.isReady=!0)!==t&&0<--E.readyWait||M.resolveWith(C,[E])}}),E.ready.then=M.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?T.setTimeout(E.ready):(C.addEventListener("DOMContentLoaded",U),T.addEventListener("load",U));function W(t,e,n,i,o,r,s){var a=0,l=t.length,u=null==n;if("object"===h(n))for(a in o=!0,n)W(t,e,a,n[a],!0,r,s);else if(void 0!==i&&(o=!0,g(i)||(s=!0),e=u?s?(e.call(t,i),null):(u=e,function(t,e,n){return u.call(E(t),n)}):e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return o?t:u?e.call(t):l?e(t[0],n):r}var B=/^-ms-/,_=/-([a-z])/g;function z(t,e){return e.toUpperCase()}function V(t){return t.replace(B,"ms-").replace(_,z)}function Q(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function X(){this.expando=E.expando+X.uid++}X.uid=1,X.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Q(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[V(e)]=n;else for(i in e)o[V(i)]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][V(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(V):(e=V(e))in i?[e]:e.match(R)||[]).length;for(;n--;)delete i[e[n]]}void 0!==e&&!E.isEmptyObject(i)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!E.isEmptyObject(t)}};var G=new X,Y=new X,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(t,e,n){var i,o;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(K,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:J.test(o)?JSON.parse(o):o)}catch(t){}Y.set(t,e,n)}else n=void 0;return n}E.extend({hasData:function(t){return Y.hasData(t)||G.hasData(t)},data:function(t,e,n){return Y.access(t,e,n)},removeData:function(t,e){Y.remove(t,e)},_data:function(t,e,n){return G.access(t,e,n)},_removeData:function(t,e){G.remove(t,e)}}),E.fn.extend({data:function(n,t){var e,i,o,r=this[0],s=r&&r.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){Y.set(this,n)}):W(this,function(t){var e;return r&&void 0===t?void 0!==(e=Y.get(r,n))||void 0!==(e=Z(r,n))?e:void 0:void this.each(function(){Y.set(this,n,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(o=Y.get(r),1===r.nodeType&&!G.get(r,"hasDataAttrs"))){for(e=s.length;e--;)s[e]&&0===(i=s[e].name).indexOf("data-")&&(i=V(i.slice(5)),Z(r,i,o[i]));G.set(r,"hasDataAttrs",!0)}return o},removeData:function(t){return this.each(function(){Y.remove(this,t)})}}),E.extend({queue:function(t,e,n){var i;if(t)return i=G.get(t,e=(e||"fx")+"queue"),n&&(!i||Array.isArray(n)?i=G.access(t,e,E.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=E.queue(t,e),i=n.length,o=n.shift(),r=E._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,function(){E.dequeue(t,e)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return G.get(t,n)||G.access(t,n,{empty:E.Callbacks("once memory").add(function(){G.remove(t,[e+"queue",n])})})}}),E.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?E.queue(this[0],e):void 0===n?this:this.each(function(){var t=E.queue(this,e,n);E._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&E.dequeue(this,e)})},dequeue:function(t){return this.each(function(){E.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--o||r.resolveWith(s,[s])}var i,o=1,r=E.Deferred(),s=this,a=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=G.get(s[a],t+"queueHooks"))&&i.empty&&(o++,i.empty.add(n));return n(),r.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),nt=["Top","Right","Bottom","Left"],it=C.documentElement,ot=function(t){return E.contains(t.ownerDocument,t)},rt={composed:!0};it.getRootNode&&(ot=function(t){return E.contains(t.ownerDocument,t)||t.getRootNode(rt)===t.ownerDocument});function st(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&ot(t)&&"none"===E.css(t,"display")}function at(t,e,n,i){var o,r,s=20,a=i?function(){return i.cur()}:function(){return E.css(t,e,"")},l=a(),u=n&&n[3]||(E.cssNumber[e]?"":"px"),c=t.nodeType&&(E.cssNumber[e]||"px"!==u&&+l)&&et.exec(E.css(t,e));if(c&&c[3]!==u){for(u=u||c[3],c=+(l/=2)||1;s--;)E.style(t,e,c+u),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),c/=r;E.style(t,e,(c*=2)+u),n=n||[]}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}var lt={};function ut(t,e){for(var n,i,o,r,s,a=[],l=0,u=t.length;l<u;l++)(i=t[l]).style&&(n=i.style.display,e?("none"===n&&(a[l]=G.get(i,"display")||null,a[l]||(i.style.display="")),""===i.style.display&&st(i)&&(a[l]=(s=r=void 0,r=(o=i).ownerDocument,s=o.nodeName,(o=lt[s])||(r=r.body.appendChild(r.createElement(s)),o=E.css(r,"display"),r.parentNode.removeChild(r),lt[s]=o="none"===o?"block":o)))):"none"!==n&&(a[l]="none",G.set(i,"display",n)));for(l=0;l<u;l++)null!=a[l]&&(t[l].style.display=a[l]);return t}E.fn.extend({show:function(){return ut(this,!0)},hide:function(){return ut(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){st(this)?E(this).show():E(this).hide()})}});var ct=/^(?:checkbox|radio)$/i,dt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ft=/^$|^module$|\/(?:java|ecma)script/i;d=C.createDocumentFragment().appendChild(C.createElement("div")),(p=C.createElement("input")).setAttribute("type","radio"),p.setAttribute("checked","checked"),p.setAttribute("name","t"),d.appendChild(p),b.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked,d.innerHTML="<textarea>x</textarea>",b.noCloneChecked=!!d.cloneNode(!0).lastChild.defaultValue,d.innerHTML="<option></option>",b.option=!!d.lastChild;var pt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ht(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&k(t,e)?E.merge([t],n):n}function gt(t,e){for(var n=0,i=t.length;n<i;n++)G.set(t[n],"globalEval",!e||G.get(e[n],"globalEval"))}pt.tbody=pt.tfoot=pt.colgroup=pt.caption=pt.thead,pt.th=pt.td,b.option||(pt.optgroup=pt.option=[1,"<select multiple='multiple'>","</select>"]);var mt=/<|&#?\w+;/;function vt(t,e,n,i,o){for(var r,s,a,l,u,c=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((r=t[f])||0===r)if("object"===h(r))E.merge(d,r.nodeType?[r]:r);else if(mt.test(r)){for(s=s||c.appendChild(e.createElement("div")),a=(dt.exec(r)||["",""])[1].toLowerCase(),a=pt[a]||pt._default,s.innerHTML=a[1]+E.htmlPrefilter(r)+a[2],u=a[0];u--;)s=s.lastChild;E.merge(d,s.childNodes),(s=c.firstChild).textContent=""}else d.push(e.createTextNode(r));for(c.textContent="",f=0;r=d[f++];)if(i&&-1<E.inArray(r,i))o&&o.push(r);else if(l=ot(r),s=ht(c.appendChild(r),"script"),l&&gt(s),n)for(u=0;r=s[u++];)ft.test(r.type||"")&&n.push(r);return c}var yt=/^([^.]*)(?:\.(.+)|)/;function bt(){return!0}function xt(){return!1}function wt(t,e){return t===function(){try{return C.activeElement}catch(t){}}()==("focus"===e)}function Tt(t,e,n,i,o,r){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Tt(t,a,n,i,e[a],r);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=xt;else if(!o)return t;return 1===r&&(s=o,(o=function(t){return E().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=E.guid++)),t.each(function(){E.event.add(this,e,o,i,n)})}function Ct(t,o,r){r?(G.set(t,o,!1),E.event.add(t,o,{namespace:!1,handler:function(t){var e,n,i=G.get(this,o);if(1&t.isTrigger&&this[o]){if(i.length)(E.event.special[o]||{}).delegateType&&t.stopPropagation();else if(i=a.call(arguments),G.set(this,o,i),e=r(this,o),this[o](),i!==(n=G.get(this,o))||e?G.set(this,o,!1):n={},i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n&&n.value}else i.length&&(G.set(this,o,{value:E.event.trigger(E.extend(i[0],E.Event.prototype),i.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===G.get(t,o)&&E.event.add(t,o,bt)}E.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,u,c,d,f,p,h=G.get(e);if(Q(e))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&E.find.matchesSelector(it,o),n.guid||(n.guid=E.guid++),(a=h.events)||(a=h.events=Object.create(null)),(s=h.handle)||(s=h.handle=function(t){return void 0!==E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(R)||[""]).length;l--;)d=p=(u=yt.exec(t[l])||[])[1],f=(u[2]||"").split(".").sort(),d&&(c=E.event.special[d]||{},d=(o?c.delegateType:c.bindType)||d,c=E.event.special[d]||{},u=E.extend({type:d,origType:p,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&E.expr.match.needsContext.test(o),namespace:f.join(".")},r),(p=a[d])||((p=a[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,i,f,s)||e.addEventListener&&e.addEventListener(d,s)),c.add&&(c.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),E.event.global[d]=!0)},remove:function(t,e,n,i,o){var r,s,a,l,u,c,d,f,p,h,g,m=G.hasData(t)&&G.get(t);if(m&&(l=m.events)){for(u=(e=(e||"").match(R)||[""]).length;u--;)if(p=g=(a=yt.exec(e[u])||[])[1],h=(a[2]||"").split(".").sort(),p){for(d=E.event.special[p]||{},f=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=f.length;r--;)c=f[r],!o&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(r,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(t,c));s&&!f.length&&(d.teardown&&!1!==d.teardown.call(t,h,m.handle)||E.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)E.event.remove(t,p+e[u],n,i,!0);E.isEmptyObject(l)&&G.remove(t,"handle events")}},dispatch:function(t){var e,n,i,o,r,s=new Array(arguments.length),a=E.event.fix(t),l=(G.get(this,"events")||Object.create(null))[a.type]||[],t=E.event.special[a.type]||{};for(s[0]=a,e=1;e<arguments.length;e++)s[e]=arguments[e];if(a.delegateTarget=this,!t.preDispatch||!1!==t.preDispatch.call(this,a)){for(r=E.event.handlers.call(this,a,l),e=0;(i=r[e++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==o.namespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(o=((E.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(a.result=o)&&(a.preventDefault(),a.stopPropagation()));return t.postDispatch&&t.postDispatch.call(this,a),a.result}},handlers:function(t,e){var n,i,o,r,s,a=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&1<=t.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(r=[],s={},n=0;n<l;n++)void 0===s[o=(i=e[n]).selector+" "]&&(s[o]=i.needsContext?-1<E(o,this).index(u):E.find(o,this,null,[u]).length),s[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return u=this,l<e.length&&a.push({elem:u,handlers:e.slice(l)}),a},addProp:function(e,t){Object.defineProperty(E.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[E.expando]?t:new E.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){t=this||t;return ct.test(t.type)&&t.click&&k(t,"input")&&Ct(t,"click",bt),!1},trigger:function(t){t=this||t;return ct.test(t.type)&&t.click&&k(t,"input")&&Ct(t,"click"),!0},_default:function(t){t=t.target;return ct.test(t.type)&&t.click&&k(t,"input")&&G.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},E.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},E.Event=function(t,e){if(!(this instanceof E.Event))return new E.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?bt:xt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&E.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:xt,isPropagationStopped:xt,isImmediatePropagationStopped:xt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=bt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=bt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=bt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},function(t,e){E.event.special[t]={setup:function(){return Ct(this,t,wt),!1},trigger:function(){return Ct(this,t),!0},_default:function(){return!0},delegateType:e}}),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,o){E.event.special[t]={delegateType:o,bindType:o,handle:function(t){var e,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||E.contains(this,n))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=o),e}}}),E.fn.extend({on:function(t,e,n,i){return Tt(this,t,e,n,i)},one:function(t,e,n,i){return Tt(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,E(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=xt),this.each(function(){E.event.remove(this,t,n,e)});for(o in t)this.off(o,e,t[o]);return this}});var Et=/<script|<style|<link/i,St=/checked\s*(?:[^=]|=\s*.checked.)/i,At=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function kt(t,e){return k(t,"table")&&k(11!==e.nodeType?e:e.firstChild,"tr")&&E(t).children("tbody")[0]||t}function $t(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Dt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function jt(t,e){var n,i,o,r;if(1===e.nodeType){if(G.hasData(t)&&(r=G.get(t).events))for(o in G.remove(e,"handle events"),r)for(n=0,i=r[o].length;n<i;n++)E.event.add(e,o,r[o][n]);Y.hasData(t)&&(t=Y.access(t),t=E.extend({},t),Y.set(e,t))}}function Nt(n,i,o,r){i=v(i);var t,e,s,a,l,u,c=0,d=n.length,f=d-1,p=i[0],h=g(p);if(h||1<d&&"string"==typeof p&&!b.checkClone&&St.test(p))return n.each(function(t){var e=n.eq(t);h&&(i[0]=p.call(this,t,e.html())),Nt(e,i,o,r)});if(d&&(e=(t=vt(i,n[0].ownerDocument,!1,n,r)).firstChild,1===t.childNodes.length&&(t=e),e||r)){for(a=(s=E.map(ht(t,"script"),$t)).length;c<d;c++)l=t,c!==f&&(l=E.clone(l,!0,!0),a&&E.merge(s,ht(l,"script"))),o.call(n[c],l,c);if(a)for(u=s[s.length-1].ownerDocument,E.map(s,Dt),c=0;c<a;c++)l=s[c],ft.test(l.type||"")&&!G.access(l,"globalEval")&&E.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?E._evalUrl&&!l.noModule&&E._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):x(l.textContent.replace(At,""),l,u))}return n}function Ot(t,e,n){for(var i,o=e?E.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||E.cleanData(ht(i)),i.parentNode&&(n&&ot(i)&&gt(ht(i,"script")),i.parentNode.removeChild(i));return t}E.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,o,r,s,a,l,u,c=t.cloneNode(!0),d=ot(t);if(!(b.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||E.isXMLDoc(t)))for(s=ht(c),i=0,o=(r=ht(t)).length;i<o;i++)a=r[i],l=s[i],u=void 0,"input"===(u=l.nodeName.toLowerCase())&&ct.test(a.type)?l.checked=a.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=a.defaultValue);if(e)if(n)for(r=r||ht(t),s=s||ht(c),i=0,o=r.length;i<o;i++)jt(r[i],s[i]);else jt(t,c);return 0<(s=ht(c,"script")).length&&gt(s,!d&&ht(t,"script")),c},cleanData:function(t){for(var e,n,i,o=E.event.special,r=0;void 0!==(n=t[r]);r++)if(Q(n)){if(e=n[G.expando]){if(e.events)for(i in e.events)o[i]?E.event.remove(n,i):E.removeEvent(n,i,e.handle);n[G.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),E.fn.extend({detach:function(t){return Ot(this,t,!0)},remove:function(t){return Ot(this,t)},text:function(t){return W(this,function(t){return void 0===t?E.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Nt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||kt(this,t).appendChild(t)})},prepend:function(){return Nt(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=kt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return Nt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Nt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(E.cleanData(ht(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return E.clone(this,t,e)})},html:function(t){return W(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Et.test(t)&&!pt[(dt.exec(t)||["",""])[1].toLowerCase()]){t=E.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(E.cleanData(ht(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return Nt(this,arguments,function(t){var e=this.parentNode;E.inArray(this,n)<0&&(E.cleanData(ht(this)),e&&e.replaceChild(t,this))},n)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,s){E.fn[t]=function(t){for(var e,n=[],i=E(t),o=i.length-1,r=0;r<=o;r++)e=r===o?this:this.clone(!0),E(i[r])[s](e),l.apply(n,e.get());return this.pushStack(n)}});function It(t){var e=t.ownerDocument.defaultView;return(e=!e||!e.opener?T:e).getComputedStyle(t)}function Lt(t,e,n){var i,o={};for(i in e)o[i]=t.style[i],t.style[i]=e[i];for(i in n=n.call(t),e)t.style[i]=o[i];return n}var Rt,Pt,qt,Ft,Ht,Mt,Ut,Wt,Bt=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),_t=new RegExp(nt.join("|"),"i");function zt(){var t;Wt&&(Ut.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Wt.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",it.appendChild(Ut).appendChild(Wt),t=T.getComputedStyle(Wt),Rt="1%"!==t.top,Mt=12===Vt(t.marginLeft),Wt.style.right="60%",Ft=36===Vt(t.right),Pt=36===Vt(t.width),Wt.style.position="absolute",qt=12===Vt(Wt.offsetWidth/3),it.removeChild(Ut),Wt=null)}function Vt(t){return Math.round(parseFloat(t))}function Qt(t,e,n){var i,o,r=t.style;return(n=n||It(t))&&(""!==(o=n.getPropertyValue(e)||n[e])||ot(t)||(o=E.style(t,e)),!b.pixelBoxStyles()&&Bt.test(o)&&_t.test(e)&&(i=r.width,t=r.minWidth,e=r.maxWidth,r.minWidth=r.maxWidth=r.width=o,o=n.width,r.width=i,r.minWidth=t,r.maxWidth=e)),void 0!==o?o+"":o}function Xt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}Ut=C.createElement("div"),(Wt=C.createElement("div")).style&&(Wt.style.backgroundClip="content-box",Wt.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===Wt.style.backgroundClip,E.extend(b,{boxSizingReliable:function(){return zt(),Pt},pixelBoxStyles:function(){return zt(),Ft},pixelPosition:function(){return zt(),Rt},reliableMarginLeft:function(){return zt(),Mt},scrollboxSize:function(){return zt(),qt},reliableTrDimensions:function(){var t,e,n;return null==Ht&&(t=C.createElement("table"),e=C.createElement("tr"),n=C.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",it.appendChild(t).appendChild(e).appendChild(n),n=T.getComputedStyle(e),Ht=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===e.offsetHeight,it.removeChild(t)),Ht}}));var Gt=["Webkit","Moz","ms"],Yt=C.createElement("div").style,Jt={};function Kt(t){var e=E.cssProps[t]||Jt[t];return e||(t in Yt?t:Jt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Gt.length;n--;)if((t=Gt[n]+e)in Yt)return t}(t)||t)}var Zt=/^(none|table(?!-c[ea]).+)/,te=/^--/,ee={position:"absolute",visibility:"hidden",display:"block"},ne={letterSpacing:"0",fontWeight:"400"};function ie(t,e,n){var i=et.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function oe(t,e,n,i,o,r){var s="width"===e?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=E.css(t,n+nt[s],!0,o)),i?("content"===n&&(l-=E.css(t,"padding"+nt[s],!0,o)),"margin"!==n&&(l-=E.css(t,"border"+nt[s]+"Width",!0,o))):(l+=E.css(t,"padding"+nt[s],!0,o),"padding"!==n?l+=E.css(t,"border"+nt[s]+"Width",!0,o):a+=E.css(t,"border"+nt[s]+"Width",!0,o));return!i&&0<=r&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-a-.5))||0),l}function re(t,e,n){var i=It(t),o=(!b.boxSizingReliable()||n)&&"border-box"===E.css(t,"boxSizing",!1,i),r=o,s=Qt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Bt.test(s)){if(!n)return s;s="auto"}return(!b.boxSizingReliable()&&o||!b.reliableTrDimensions()&&k(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===E.css(t,"display",!1,i))&&t.getClientRects().length&&(o="border-box"===E.css(t,"boxSizing",!1,i),(r=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+oe(t,e,n||(o?"border":"content"),r,i,s)+"px"}function se(t,e,n,i,o){return new se.prototype.init(t,e,n,i,o)}E.extend({cssHooks:{opacity:{get:function(t,e){if(e){t=Qt(t,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,s,a=V(e),l=te.test(e),u=t.style;if(l||(e=Kt(a)),s=E.cssHooks[e]||E.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(t,!1,i))?o:u[e];"string"===(r=typeof n)&&(o=et.exec(n))&&o[1]&&(n=at(t,e,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(E.cssNumber[a]?"":"px")),b.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var o,r=V(e);return te.test(e)||(e=Kt(r)),"normal"===(o=void 0===(o=(r=E.cssHooks[e]||E.cssHooks[r])&&"get"in r?r.get(t,!0,n):o)?Qt(t,e,i):o)&&e in ne&&(o=ne[e]),""===n||n?(e=parseFloat(o),!0===n||isFinite(e)?e||0:o):o}}),E.each(["height","width"],function(t,a){E.cssHooks[a]={get:function(t,e,n){if(e)return!Zt.test(E.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?re(t,a,n):Lt(t,ee,function(){return re(t,a,n)})},set:function(t,e,n){var i,o=It(t),r=!b.scrollboxSize()&&"absolute"===o.position,s=(r||n)&&"border-box"===E.css(t,"boxSizing",!1,o),n=n?oe(t,a,n,s,o):0;return s&&r&&(n-=Math.ceil(t["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(o[a])-oe(t,a,"border",!1,o)-.5)),n&&(i=et.exec(e))&&"px"!==(i[3]||"px")&&(t.style[a]=e,e=E.css(t,a)),ie(0,e,n)}}}),E.cssHooks.marginLeft=Xt(b.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Qt(t,"marginLeft"))||t.getBoundingClientRect().left-Lt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(o,r){E.cssHooks[o+r]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[o+nt[e]+r]=i[e]||i[e-2]||i[0];return n}},"margin"!==o&&(E.cssHooks[o+r].set=ie)}),E.fn.extend({css:function(t,e){return W(this,function(t,e,n){var i,o,r={},s=0;if(Array.isArray(e)){for(i=It(t),o=e.length;s<o;s++)r[e[s]]=E.css(t,e[s],!1,i);return r}return void 0!==n?E.style(t,e,n):E.css(t,e)},t,e,1<arguments.length)}}),((E.Tween=se).prototype={constructor:se,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||E.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(E.cssNumber[n]?"":"px")},cur:function(){var t=se.propHooks[this.prop];return(t&&t.get?t:se.propHooks._default).get(this)},run:function(t){var e,n=se.propHooks[this.prop];return this.options.duration?this.pos=e=E.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:se.propHooks._default).set(this),this}}).init.prototype=se.prototype,(se.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=E.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):1!==t.elem.nodeType||!E.cssHooks[t.prop]&&null==t.elem.style[Kt(t.prop)]?t.elem[t.prop]=t.now:E.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=se.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},E.fx=se.prototype.init,E.fx.step={};var ae,le,ue=/^(?:toggle|show|hide)$/,ce=/queueHooks$/;function de(){le&&(!1===C.hidden&&T.requestAnimationFrame?T.requestAnimationFrame(de):T.setTimeout(de,E.fx.interval),E.fx.tick())}function fe(){return T.setTimeout(function(){ae=void 0}),ae=Date.now()}function pe(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=nt[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function he(t,e,n){for(var i,o=(ge.tweeners[e]||[]).concat(ge.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,e,t))return i}function ge(o,t,e){var n,r,i=0,s=ge.prefilters.length,a=E.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=ae||fe(),t=Math.max(0,u.startTime+u.duration-t),e=1-(t/u.duration||0),n=0,i=u.tweens.length;n<i;n++)u.tweens[n].run(e);return a.notifyWith(o,[u,e,t]),e<1&&i?t:(i||a.notifyWith(o,[u,1,0]),a.resolveWith(o,[u]),!1)},u=a.promise({elem:o,props:E.extend({},t),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},e),originalProperties:t,originalOptions:e,startTime:ae||fe(),duration:e.duration,tweens:[],createTween:function(t,e){t=E.Tween(o,u.opts,t,e,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(t),t},stop:function(t){var e=0,n=t?u.tweens.length:0;if(r)return this;for(r=!0;e<n;e++)u.tweens[e].run(1);return t?(a.notifyWith(o,[u,1,0]),a.resolveWith(o,[u,t])):a.rejectWith(o,[u,t]),this}}),c=u.props;for(!function(t,e){var n,i,o,r,s;for(n in t)if(o=e[i=V(n)],r=t[n],Array.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(s=E.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete t[i],r)n in t||(t[n]=r[n],e[n]=o);else e[i]=o}(c,u.opts.specialEasing);i<s;i++)if(n=ge.prefilters[i].call(u,o,c,u.opts))return g(n.stop)&&(E._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n)),n;return E.map(c,he,u),g(u.opts.start)&&u.opts.start.call(o,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),E.fx.timer(E.extend(l,{elem:o,anim:u,queue:u.opts.queue})),u}E.Animation=E.extend(ge,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return at(n.elem,t,et.exec(e),n),n}]},tweener:function(t,e){for(var n,i=0,o=(t=g(t)?(e=t,["*"]):t.match(R)).length;i<o;i++)n=t[i],ge.tweeners[n]=ge.tweeners[n]||[],ge.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,o,r,s,a,l,u,c="width"in e||"height"in e,d=this,f={},p=t.style,h=t.nodeType&&st(t),g=G.get(t,"fxshow");for(i in n.queue||(null==(s=E._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,E.queue(t,"fx").length||s.empty.fire()})})),e)if(o=e[i],ue.test(o)){if(delete e[i],r=r||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;h=!0}f[i]=g&&g[i]||E.style(t,i)}if((l=!E.isEmptyObject(e))||!E.isEmptyObject(f))for(i in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=g&&g.display)&&(u=G.get(t,"display")),"none"===(c=E.css(t,"display"))&&(u?c=u:(ut([t],!0),u=t.style.display||u,c=E.css(t,"display"),ut([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===E.css(t,"float")&&(l||(d.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(g?"hidden"in g&&(h=g.hidden):g=G.access(t,"fxshow",{display:u}),r&&(g.hidden=!h),h&&ut([t],!0),d.done(function(){for(i in h||ut([t]),G.remove(t,"fxshow"),f)E.style(t,i,f[i])})),l=he(h?g[i]:0,i,d),i in g||(g[i]=l.start,h&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ge.prefilters.unshift(t):ge.prefilters.push(t)}}),E.speed=function(t,e,n){var i=t&&"object"==typeof t?E.extend({},t):{complete:n||!n&&e||g(t)&&t,duration:t,easing:n&&e||e&&!g(e)&&e};return E.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in E.fx.speeds?i.duration=E.fx.speeds[i.duration]:i.duration=E.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){g(i.old)&&i.old.call(this),i.queue&&E.dequeue(this,i.queue)},i},E.fn.extend({fadeTo:function(t,e,n,i){return this.filter(st).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){var o=E.isEmptyObject(e),r=E.speed(t,n,i),i=function(){var t=ge(this,E.extend({},e),r);(o||G.get(this,"finish"))&&t.stop(!0)};return i.finish=i,o||!1===r.queue?this.each(i):this.queue(r.queue,i)},stop:function(o,t,r){function s(t){var e=t.stop;delete t.stop,e(r)}return"string"!=typeof o&&(r=t,t=o,o=void 0),t&&this.queue(o||"fx",[]),this.each(function(){var t=!0,e=null!=o&&o+"queueHooks",n=E.timers,i=G.get(this);if(e)i[e]&&i[e].stop&&s(i[e]);else for(e in i)i[e]&&i[e].stop&&ce.test(e)&&s(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=o&&n[e].queue!==o||(n[e].anim.stop(r),t=!1,n.splice(e,1));!t&&r||E.dequeue(this,o)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var t,e=G.get(this),n=e[s+"queue"],i=e[s+"queueHooks"],o=E.timers,r=n?n.length:0;for(e.finish=!0,E.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===s&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<r;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),E.each(["toggle","show","hide"],function(t,i){var o=E.fn[i];E.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?o.apply(this,arguments):this.animate(pe(i,!0),t,e,n)}}),E.each({slideDown:pe("show"),slideUp:pe("hide"),slideToggle:pe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){E.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),E.timers=[],E.fx.tick=function(){var t,e=0,n=E.timers;for(ae=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||E.fx.stop(),ae=void 0},E.fx.timer=function(t){E.timers.push(t),E.fx.start()},E.fx.interval=13,E.fx.start=function(){le||(le=!0,de())},E.fx.stop=function(){le=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(i,t){return i=E.fx&&E.fx.speeds[i]||i,this.queue(t=t||"fx",function(t,e){var n=T.setTimeout(t,i);e.stop=function(){T.clearTimeout(n)}})},d=C.createElement("input"),tt=C.createElement("select").appendChild(C.createElement("option")),d.type="checkbox",b.checkOn=""!==d.value,b.optSelected=tt.selected,(d=C.createElement("input")).value="t",d.type="radio",b.radioValue="t"===d.value;var me,ve=E.expr.attrHandle;E.fn.extend({attr:function(t,e){return W(this,E.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){E.removeAttr(this,t)})}}),E.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?E.prop(t,e,n):(1===r&&E.isXMLDoc(t)||(o=E.attrHooks[e.toLowerCase()]||(E.expr.match.bool.test(e)?me:void 0)),void 0!==n?null===n?void E.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):!(o&&"get"in o&&null!==(i=o.get(t,e)))&&null==(i=E.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!b.radioValue&&"radio"===e&&k(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,o=e&&e.match(R);if(o&&1===t.nodeType)for(;n=o[i++];)t.removeAttribute(n)}}),me={set:function(t,e,n){return!1===e?E.removeAttr(t,n):t.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(t,e){var s=ve[e]||E.find.attr;ve[e]=function(t,e,n){var i,o,r=e.toLowerCase();return n||(o=ve[r],ve[r]=i,i=null!=s(t,e,n)?r:null,ve[r]=o),i}});var ye=/^(?:input|select|textarea|button)$/i,be=/^(?:a|area)$/i;function xe(t){return(t.match(R)||[]).join(" ")}function we(t){return t.getAttribute&&t.getAttribute("class")||""}function Te(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(R)||[]}E.fn.extend({prop:function(t,e){return W(this,E.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[E.propFix[t]||t]})}}),E.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&E.isXMLDoc(t)||(e=E.propFix[e]||e,o=E.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=E.find.attr(t,"tabindex");return e?parseInt(e,10):ye.test(t.nodeName)||be.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(E.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(e){var t,n,i,o,r,s,a=0;if(g(e))return this.each(function(t){E(this).addClass(e.call(this,t,we(this)))});if((t=Te(e)).length)for(;n=this[a++];)if(s=we(n),i=1===n.nodeType&&" "+xe(s)+" "){for(r=0;o=t[r++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s!==(s=xe(i))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,i,o,r,s,a=0;if(g(e))return this.each(function(t){E(this).removeClass(e.call(this,t,we(this)))});if(!arguments.length)return this.attr("class","");if((t=Te(e)).length)for(;n=this[a++];)if(s=we(n),i=1===n.nodeType&&" "+xe(s)+" "){for(r=0;o=t[r++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");s!==(s=xe(i))&&n.setAttribute("class",s)}return this},toggleClass:function(o,e){var r=typeof o,s="string"==r||Array.isArray(o);return"boolean"==typeof e&&s?e?this.addClass(o):this.removeClass(o):g(o)?this.each(function(t){E(this).toggleClass(o.call(this,t,we(this),e),e)}):this.each(function(){var t,e,n,i;if(s)for(e=0,n=E(this),i=Te(o);t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==o&&"boolean"!=r||((t=we(this))&&G.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==o&&G.get(this,"__className__")||""))})},hasClass:function(t){for(var e,n=0,i=" "+t+" ";e=this[n++];)if(1===e.nodeType&&-1<(" "+xe(we(e))+" ").indexOf(i))return!0;return!1}});var Ce=/\r/g;E.fn.extend({val:function(e){var n,t,i,o=this[0];return arguments.length?(i=g(e),this.each(function(t){1===this.nodeType&&(null==(t=i?e.call(this,t,E(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=E.map(t,function(t){return null==t?"":t+""})),(n=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):o?(n=E.valHooks[o.type]||E.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(o,"value"))?t:"string"==typeof(t=o.value)?t.replace(Ce,""):null==t?"":t:void 0}}),E.extend({valHooks:{option:{get:function(t){var e=E.find.attr(t,"value");return null!=e?e:xe(E.text(t))}},select:{get:function(t){for(var e,n=t.options,i=t.selectedIndex,o="select-one"===t.type,r=o?null:[],s=o?i+1:n.length,a=i<0?s:o?i:0;a<s;a++)if(((e=n[a]).selected||a===i)&&!e.disabled&&(!e.parentNode.disabled||!k(e.parentNode,"optgroup"))){if(e=E(e).val(),o)return e;r.push(e)}return r},set:function(t,e){for(var n,i,o=t.options,r=E.makeArray(e),s=o.length;s--;)((i=o[s]).selected=-1<E.inArray(E.valHooks.option.get(i),r))&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<E.inArray(E(t).val(),e)}},b.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),b.focusin="onfocusin"in T;function Ee(t){t.stopPropagation()}var Se=/^(?:focusinfocus|focusoutblur)$/;E.extend(E.event,{trigger:function(t,e,n,i){var o,r,s,a,l,u,c,d=[n||C],f=y.call(t,"type")?t.type:t,p=y.call(t,"namespace")?t.namespace.split("."):[],h=c=r=n=n||C;if(3!==n.nodeType&&8!==n.nodeType&&!Se.test(f+E.event.triggered)&&(-1<f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),a=f.indexOf(":")<0&&"on"+f,(t=t[E.expando]?t:new E.Event(f,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:E.makeArray(e,[t]),u=E.event.special[f]||{},i||!u.trigger||!1!==u.trigger.apply(n,e))){if(!i&&!u.noBubble&&!m(n)){for(s=u.delegateType||f,Se.test(s+f)||(h=h.parentNode);h;h=h.parentNode)d.push(h),r=h;r===(n.ownerDocument||C)&&d.push(r.defaultView||r.parentWindow||T)}for(o=0;(h=d[o++])&&!t.isPropagationStopped();)c=h,t.type=1<o?s:u.bindType||f,(l=(G.get(h,"events")||Object.create(null))[t.type]&&G.get(h,"handle"))&&l.apply(h,e),(l=a&&h[a])&&l.apply&&Q(h)&&(t.result=l.apply(h,e),!1===t.result&&t.preventDefault());return t.type=f,i||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),e)||!Q(n)||a&&g(n[f])&&!m(n)&&((r=n[a])&&(n[a]=null),E.event.triggered=f,t.isPropagationStopped()&&c.addEventListener(f,Ee),n[f](),t.isPropagationStopped()&&c.removeEventListener(f,Ee),E.event.triggered=void 0,r&&(n[a]=r)),t.result}},simulate:function(t,e,n){t=E.extend(new E.Event,n,{type:t,isSimulated:!0});E.event.trigger(t,null,e)}}),E.fn.extend({trigger:function(t,e){return this.each(function(){E.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return E.event.trigger(t,e,n,!0)}}),b.focusin||E.each({focus:"focusin",blur:"focusout"},function(n,i){function o(t){E.event.simulate(i,t.target,E.event.fix(t))}E.event.special[i]={setup:function(){var t=this.ownerDocument||this.document||this,e=G.access(t,i);e||t.addEventListener(n,o,!0),G.access(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,e=G.access(t,i)-1;e?G.access(t,i,e):(t.removeEventListener(n,o,!0),G.remove(t,i))}}});var Ae=T.location,ke={guid:Date.now()},$e=/\?/;E.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new T.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||E.error("Invalid XML: "+(n?E.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var De=/\[\]$/,je=/\r?\n/g,Ne=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i;E.param=function(t,e){function n(t,e){e=g(e)?e():e,o[o.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var i,o=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,function(){n(this.name,this.value)});else for(i in t)!function n(i,t,o,r){if(Array.isArray(t))E.each(t,function(t,e){o||De.test(i)?r(i,e):n(i+"["+("object"==typeof e&&null!=e?t:"")+"]",e,o,r)});else if(o||"object"!==h(t))r(i,t);else for(var e in t)n(i+"["+e+"]",t[e],o,r)}(i,t[i],e,n);return o.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&Oe.test(this.nodeName)&&!Ne.test(t)&&(this.checked||!ct.test(t))}).map(function(t,e){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,function(t){return{name:e.name,value:t.replace(je,"\r\n")}}):{name:e.name,value:n.replace(je,"\r\n")}}).get()}});var Ie=/%20/g,Le=/#.*$/,Re=/([?&])_=[^&]*/,Pe=/^(.*?):[ \t]*([^\r\n]*)$/gm,qe=/^(?:GET|HEAD)$/,Fe=/^\/\//,He={},Me={},Ue="*/".concat("*"),We=C.createElement("a");function Be(r){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,o=t.toLowerCase().match(R)||[];if(g(e))for(;n=o[i++];)"+"===n[0]?(n=n.slice(1)||"*",(r[n]=r[n]||[]).unshift(e)):(r[n]=r[n]||[]).push(e)}}function _e(e,i,o,r){var s={},a=e===Me;function l(t){var n;return s[t]=!0,E.each(e[t]||[],function(t,e){e=e(i,o,r);return"string"!=typeof e||a||s[e]?a?!(n=e):void 0:(i.dataTypes.unshift(e),l(e),!1)}),n}return l(i.dataTypes[0])||!s["*"]&&l("*")}function ze(t,e){var n,i,o=E.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i=i||{})[n]=e[n]);return i&&E.extend(!0,t,i),t}We.href=Ae.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ae.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ae.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ue,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ze(ze(t,E.ajaxSettings),e):ze(E.ajaxSettings,t)},ajaxPrefilter:Be(He),ajaxTransport:Be(Me),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var l,u,c,n,d,f,p,i,o,h=E.ajaxSetup({},e=e||{}),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?E(g):E.event,v=E.Deferred(),y=E.Callbacks("once memory"),b=h.statusCode||{},r={},s={},a="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(f){if(!n)for(n={};e=Pe.exec(c);)n[e[1].toLowerCase()+" "]=(n[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=n[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return f?c:null},setRequestHeader:function(t,e){return null==f&&(t=s[t.toLowerCase()]=s[t.toLowerCase()]||t,r[t]=e),this},overrideMimeType:function(t){return null==f&&(h.mimeType=t),this},statusCode:function(t){if(t)if(f)x.always(t[x.status]);else for(var e in t)b[e]=[b[e],t[e]];return this},abort:function(t){t=t||a;return l&&l.abort(t),w(0,t),this}};if(v.promise(x),h.url=((t||h.url||Ae.href)+"").replace(Fe,Ae.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(R)||[""],null==h.crossDomain){o=C.createElement("a");try{o.href=h.url,o.href=o.href,h.crossDomain=We.protocol+"//"+We.host!=o.protocol+"//"+o.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=E.param(h.data,h.traditional)),_e(He,h,e,x),f)return x;for(i in(p=E.event&&h.global)&&0==E.active++&&E.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!qe.test(h.type),u=h.url.replace(Le,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ie,"+")):(o=h.url.slice(u.length),h.data&&(h.processData||"string"==typeof h.data)&&(u+=($e.test(u)?"&":"?")+h.data,delete h.data),!1===h.cache&&(u=u.replace(Re,"$1"),o=($e.test(u)?"&":"?")+"_="+ke.guid+++o),h.url=u+o),h.ifModified&&(E.lastModified[u]&&x.setRequestHeader("If-Modified-Since",E.lastModified[u]),E.etag[u]&&x.setRequestHeader("If-None-Match",E.etag[u])),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ue+"; q=0.01":""):h.accepts["*"]),h.headers)x.setRequestHeader(i,h.headers[i]);if(h.beforeSend&&(!1===h.beforeSend.call(g,x,h)||f))return x.abort();if(a="abort",y.add(h.complete),x.done(h.success),x.fail(h.error),l=_e(Me,h,e,x)){if(x.readyState=1,p&&m.trigger("ajaxSend",[x,h]),f)return x;h.async&&0<h.timeout&&(d=T.setTimeout(function(){x.abort("timeout")},h.timeout));try{f=!1,l.send(r,w)}catch(t){if(f)throw t;w(-1,t)}}else w(-1,"No Transport");function w(t,e,n,i){var o,r,s,a=e;f||(f=!0,d&&T.clearTimeout(d),l=void 0,c=i||"",x.readyState=0<t?4:0,i=200<=t&&t<300||304===t,n&&(s=function(t,e,n){for(var i,o,r,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}s=s||o}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(h,x,n)),!i&&-1<E.inArray("script",h.dataTypes)&&E.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),s=function(t,e,n,i){var o,r,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(r=c.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=u[l+" "+r]||u["* "+r]))for(o in u)if((a=o.split(" "))[1]===r&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[o]:!0!==u[o]&&(r=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(h,s,x,i),i?(h.ifModified&&((n=x.getResponseHeader("Last-Modified"))&&(E.lastModified[u]=n),(n=x.getResponseHeader("etag"))&&(E.etag[u]=n)),204===t||"HEAD"===h.type?a="nocontent":304===t?a="notmodified":(a=s.state,o=s.data,i=!(r=s.error))):(r=a,!t&&a||(a="error",t<0&&(t=0))),x.status=t,x.statusText=(e||a)+"",i?v.resolveWith(g,[o,a,x]):v.rejectWith(g,[x,a,r]),x.statusCode(b),b=void 0,p&&m.trigger(i?"ajaxSuccess":"ajaxError",[x,h,i?o:r]),y.fireWith(g,[x,a]),p&&(m.trigger("ajaxComplete",[x,h]),--E.active||E.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,n){return E.get(t,e,n,"json")},getScript:function(t,e){return E.get(t,void 0,e,"script")}}),E.each(["get","post"],function(t,o){E[o]=function(t,e,n,i){return g(e)&&(i=i||n,n=e,e=void 0),E.ajax(E.extend({url:t,type:o,dataType:i,data:e,success:n},E.isPlainObject(t)&&t))}}),E.ajaxPrefilter(function(t){for(var e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),E._evalUrl=function(t,e,n){return E.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){E.globalEval(t,e,n)}})},E.fn.extend({wrapAll:function(t){return this[0]&&(g(t)&&(t=t.call(this[0])),t=E(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(n){return g(n)?this.each(function(t){E(this).wrapInner(n.call(this,t))}):this.each(function(){var t=E(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=g(e);return this.each(function(t){E(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(t){return!E.expr.pseudos.visible(t)},E.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new T.XMLHttpRequest}catch(t){}};var Ve={0:200,1223:204},Qe=E.ajaxSettings.xhr();b.cors=!!Qe&&"withCredentials"in Qe,b.ajax=Qe=!!Qe,E.ajaxTransport(function(o){var r,s;if(b.cors||Qe&&!o.crossDomain)return{send:function(t,e){var n,i=o.xhr();if(i.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)i[n]=o.xhrFields[n];for(n in o.mimeType&&i.overrideMimeType&&i.overrideMimeType(o.mimeType),o.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);r=function(t){return function(){r&&(r=s=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===t?i.abort():"error"===t?"number"!=typeof i.status?e(0,"error"):e(i.status,i.statusText):e(Ve[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=r(),s=i.onerror=i.ontimeout=r("error"),void 0!==i.onabort?i.onabort=s:i.onreadystatechange=function(){4===i.readyState&&T.setTimeout(function(){r&&s()})},r=r("abort");try{i.send(o.hasContent&&o.data||null)}catch(t){if(r)throw t}},abort:function(){r&&r()}}}),E.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return E.globalEval(t),t}}}),E.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),E.ajaxTransport("script",function(n){var i,o;if(n.crossDomain||n.scriptAttrs)return{send:function(t,e){i=E("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(t){i.remove(),o=null,t&&e("error"===t.type?404:200,t.type)}),C.head.appendChild(i[0])},abort:function(){o&&o()}}});var Xe=[],Ge=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||E.expando+"_"+ke.guid++;return this[t]=!0,t}}),E.ajaxPrefilter("json jsonp",function(t,e,n){var i,o,r,s=!1!==t.jsonp&&(Ge.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ge.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=g(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ge,"$1"+i):!1!==t.jsonp&&(t.url+=($e.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return r||E.error(i+" was not called"),r[0]},t.dataTypes[0]="json",o=T[i],T[i]=function(){r=arguments},n.always(function(){void 0===o?E(T).removeProp(i):T[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Xe.push(i)),r&&g(o)&&o(r[0]),r=o=void 0}),"script"}),b.createHTMLDocument=((d=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===d.childNodes.length),E.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(b.createHTMLDocument?((i=(e=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,e.head.appendChild(i)):e=C),i=!n&&[],(n=$.exec(t))?[e.createElement(n[1])]:(n=vt([t],e,i),i&&i.length&&E(i).remove(),E.merge([],n.childNodes)));var i},E.fn.load=function(t,e,n){var i,o,r,s=this,a=t.indexOf(" ");return-1<a&&(i=xe(t.slice(a)),t=t.slice(0,a)),g(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),0<s.length&&E.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){r=arguments,s.html(i?E("<div>").append(E.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},E.expr.pseudos.animated=function(e){return E.grep(E.timers,function(t){return e===t.elem}).length},E.offset={setOffset:function(t,e,n){var i,o,r,s,a=E.css(t,"position"),l=E(t),u={};"static"===a&&(t.style.position="relative"),r=l.offset(),i=E.css(t,"top"),s=E.css(t,"left"),s=("absolute"===a||"fixed"===a)&&-1<(i+s).indexOf("auto")?(o=(a=l.position()).top,a.left):(o=parseFloat(i)||0,parseFloat(s)||0),null!=(e=g(e)?e.call(t,n,E.extend({},r)):e).top&&(u.top=e.top-r.top+o),null!=e.left&&(u.left=e.left-r.left+s),"using"in e?e.using.call(t,u):l.css(u)}},E.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){E.offset.setOffset(this,e,t)});var t,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],o={top:0,left:0};if("fixed"===E.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===E.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((o=E(t).offset()).top+=E.css(t,"borderTopWidth",!0),o.left+=E.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-E.css(i,"marginTop",!0),left:e.left-o.left-E.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===E.css(t,"position");)t=t.offsetParent;return t||it})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,o){var r="pageYOffset"===o;E.fn[e]=function(t){return W(this,function(t,e,n){var i;return m(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===n?i?i[o]:t[e]:void(i?i.scrollTo(r?i.pageXOffset:n,r?n:i.pageYOffset):t[e]=n)},e,t,arguments.length)}}),E.each(["top","left"],function(t,n){E.cssHooks[n]=Xt(b.pixelPosition,function(t,e){if(e)return e=Qt(t,n),Bt.test(e)?E(t).position()[n]+"px":e})}),E.each({Height:"height",Width:"width"},function(s,a){E.each({padding:"inner"+s,content:a,"":"outer"+s},function(i,r){E.fn[r]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),o=i||(!0===t||!0===e?"margin":"border");return W(this,function(t,e,n){var i;return m(t)?0===r.indexOf("outer")?t["inner"+s]:t.document.documentElement["client"+s]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+s],i["scroll"+s],t.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?E.css(t,e,o):E.style(t,e,n,o)},a,n?t:void 0,n)}})}),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){E.fn[e]=function(t){return this.on(e,t)}}),E.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,n){E.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}});var Ye=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;E.proxy=function(t,e){var n,i;if("string"==typeof e&&(i=t[e],e=t,t=i),g(t))return n=a.call(arguments,2),(i=function(){return t.apply(e||this,n.concat(a.call(arguments)))}).guid=t.guid=t.guid||E.guid++,i},E.holdReady=function(t){t?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=k,E.isFunction=g,E.isWindow=m,E.camelCase=V,E.type=h,E.now=Date.now,E.isNumeric=function(t){var e=E.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},E.trim=function(t){return null==t?"":(t+"").replace(Ye,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return E});var Je=T.jQuery,Ke=T.$;return E.noConflict=function(t){return T.$===E&&(T.$=Ke),t&&T.jQuery===E&&(T.jQuery=Je),E},void 0===t&&(T.jQuery=T.$=E),E}),window.yii=function(h){var g={reloadableScripts:[],clickableSelector:'a, button, input[type="submit"], input[type="button"], input[type="reset"], input[type="image"]',changeableSelector:"select, input, textarea",getCsrfParam:function(){return h("meta[name=csrf-param]").attr("content")},getCsrfToken:function(){return h("meta[name=csrf-token]").attr("content")},setCsrfToken:function(t,e){h("meta[name=csrf-param]").attr("content",t),h("meta[name=csrf-token]").attr("content",e)},refreshCsrfToken:function(){var t=g.getCsrfToken();t&&h('form input[name="'+g.getCsrfParam()+'"]').val(t)},confirm:function(t,e,n){window.confirm(t)?e&&e():n&&n()},handleAction:function(t,e){var n,i,o,r,s=t.attr("data-form")?h("#"+t.attr("data-form")):t.closest("form"),a=!t.data("method")&&s?s.attr("method"):t.data("method"),l=t.attr("href"),u=l&&"#"!==l,c=t.data("params"),d=c&&h.isPlainObject(c),f=t.data("pjax"),f=void 0!==f&&0!==f&&h.support.pjax,p={};f&&((r=void 0===(r=t.data("pjax-container"))||!r.length?t.closest("[data-pjax-container]").attr("id")?"#"+t.closest("[data-pjax-container]").attr("id"):"":r).length||(r="body"),p={container:r,push:!!t.data("pjax-push-state"),replace:!!t.data("pjax-replace-state"),scrollTo:t.data("pjax-scrollto"),pushRedirect:t.data("pjax-push-redirect"),replaceRedirect:t.data("pjax-replace-redirect"),skipOuterContainers:t.data("pjax-skip-outer-containers"),timeout:t.data("pjax-timeout"),originalEvent:e,originalTarget:t}),void 0!==a?((o=!s.length)?(u||(l=g.getCurrentUrl()),s=h("<form/>",{method:a,action:l}),(r=t.attr("target"))&&s.attr("target",r),/(get|post)/i.test(a)||(s.append(h("<input/>",{name:"_method",value:a,type:"hidden"})),s.attr("method",a="post")),!/post/i.test(a)||(r=g.getCsrfParam())&&s.append(h("<input/>",{name:r,value:g.getCsrfToken(),type:"hidden"})),s.hide().appendTo("body")):(n=s.attr("method"),s.attr("method",a),u&&(i=s.attr("action"),s.attr("action",l))),(a=s.data("yiiActiveForm"))&&(a.submitObject=t),d&&h.each(c,function(t,e){s.append(h("<input/>").attr({name:t,value:e,type:"hidden"}))}),f&&s.on("submit",function(t){h.pjax.submit(t,p)}),s.trigger("submit"),h.when(s.data("yiiSubmitFinalizePromise")).done(function(){o?s.remove():(void 0!==i&&s.attr("action",i),s.attr("method",n),d&&h.each(c,function(t){h('input[name="'+t+'"]',s).remove()}))})):u?f?h.pjax.click(e,p):window.location.assign(l):t.is(":submit")&&s.length&&(f&&s.on("submit",function(t){h.pjax.submit(t,p)}),s.trigger("submit"))},getQueryParams:function(t){var e=t.indexOf("?");if(e<0)return{};for(var n=h.grep(t.substring(e+1).split("#")[0].split("&"),function(t){return""!==t}),i={},o=0,r=n.length;o<r;o++){var s=n[o].split("="),a=decodeURIComponent(s[0].replace(/\+/g,"%20")),s=decodeURIComponent(s[1].replace(/\+/g,"%20"));a.length&&(void 0===i[a]?i[a]=s||"":(h.isArray(i[a])||(i[a]=[i[a]]),i[a].push(s||"")))}return i},initModule:function(t){void 0!==t.isActive&&!t.isActive||(h.isFunction(t.init)&&t.init(),h.each(t,function(){h.isPlainObject(this)&&g.initModule(this)}))},init:function(){var s;function t(t){var e=h(this),n=e.data("method"),i=e.data("confirm"),o=e.data("form");return void 0===n&&void 0===i&&void 0===o||(void 0!==i?h.proxy(g.confirm,this)(i,function(){g.handleAction(e,t)}):g.handleAction(e,t),t.stopImmediatePropagation(),!1)}h.ajaxPrefilter(function(t,e,n){!t.crossDomain&&g.getCsrfParam()&&n.setRequestHeader("X-CSRF-Token",g.getCsrfToken())}),g.refreshCsrfToken(),h(document).ajaxComplete(function(t,e){e=e&&e.getResponseHeader("X-Redirect");e&&window.location.assign(e)}),s={},h("script[src]").each(function(){var t=a(this.src);s[t]=!0}),h.ajaxPrefilter("script",function(t,e,n){var i,o;"jsonp"!=t.dataType&&(i=a(t.url),o=!0===s[i]&&!r(i),t=void 0!==s[i]&&!0===s[i].xhrDone,o||t?n.abort():(void 0!==s[i]&&!0!==s[i]||(s[i]={xhrList:[],xhrDone:!1}),n.done(function(t,e,n){if(!0!==s[n.yiiUrl].xhrDone){s[n.yiiUrl].xhrDone=!0;for(var i=0,o=s[n.yiiUrl].xhrList.length;i<o;i++){var r=s[n.yiiUrl].xhrList[i];r&&r.readyState!==XMLHttpRequest.DONE&&r.abort()}s[n.yiiUrl]=!0}}).fail(function(t,e){if("abort"!==e){delete s[t.yiiUrl].xhrList[t.yiiIndex];for(var n=!0,i=0,o=s[t.yiiUrl].xhrList.length;i<o;i++)s[t.yiiUrl].xhrList[i]&&(n=!1);n&&delete s[t.yiiUrl]}}),n.yiiIndex=s[i].xhrList.length,n.yiiUrl=i,s[i].xhrList[n.yiiIndex]=n))}),h(document).ajaxComplete(function(){var e=[];h("link[rel=stylesheet]").each(function(){var t=a(this.href);r(t)||(-1===h.inArray(t,e)?e.push(t):h(this).remove())})}),h(document).on("click.yii",g.clickableSelector,t).on("change.yii",g.changeableSelector,t)},getBaseCurrentUrl:function(){return window.location.protocol+"//"+window.location.host},getCurrentUrl:function(){return window.location.href}};function r(t){for(var e=0;e<g.reloadableScripts.length;e++){var n=a(g.reloadableScripts[e]);if(!0===new RegExp("^"+n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").split("\\*").join(".+")+"$").test(t))return 1}}function a(t){return"/"===t.charAt(0)?g.getBaseCurrentUrl()+t:t}return g}(window.jQuery),window.jQuery(function(){window.yii.initModule(window.yii)}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(i){"use strict";i.fn.emulateTransitionEnd=function(t){var e=!1,n=this;i(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||i(n).trigger(i.support.transition.end)},t),this},i(function(){i.support.transition=function(){var t,e=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in n)if(void 0!==e.style[t])return{end:n[t]};return!1}(),i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(t){if(i(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(r){"use strict";function s(t){r(t).on("click",e,this.close)}var e='[data-dismiss="alert"]';s.VERSION="3.3.7",s.TRANSITION_DURATION=150,s.prototype.close=function(t){var e=r(this),n=(n=e.attr("data-target"))||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""),i=r("#"===n?[]:n);function o(){i.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),(i=!i.length?e.closest(".alert"):i).trigger(t=r.Event("close.bs.alert")),t.isDefaultPrevented()||(i.removeClass("in"),r.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",o).emulateTransitionEnd(s.TRANSITION_DURATION):o())};var t=r.fn.alert;r.fn.alert=function(n){return this.each(function(){var t=r(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new s(this)),"string"==typeof n&&e[n].call(t)})},r.fn.alert.Constructor=s,r.fn.alert.noConflict=function(){return r.fn.alert=t,this},r(document).on("click.bs.alert.data-api",e,s.prototype.close)}(jQuery),function(r){"use strict";function i(t,e){this.$element=r(t),this.options=r.extend({},i.DEFAULTS,e),this.isLoading=!1}function n(n){return this.each(function(){var t=r(this),e=t.data("bs.button");e||t.data("bs.button",e=new i(this,"object"==typeof n&&n)),"toggle"==n?e.toggle():n&&e.setState(n)})}i.VERSION="3.3.7",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(t){var e="disabled",n=this.$element,i=n.is("input")?"val":"html",o=n.data();t+="Text",null==o.resetText&&n.data("resetText",n[i]()),setTimeout(r.proxy(function(){n[i]((null==o[t]?this.options:o)[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},i.prototype.toggle=function(){var t,e=!0,n=this.$element.closest('[data-toggle="buttons"]');n.length?("radio"==(t=this.$element.find("input")).prop("type")?(t.prop("checked")&&(e=!1),n.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==t.prop("type")&&(t.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),t.prop("checked",this.$element.hasClass("active")),e&&t.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};var t=r.fn.button;r.fn.button=n,r.fn.button.Constructor=i,r.fn.button.noConflict=function(){return r.fn.button=t,this},r(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=r(t.target).closest(".btn");n.call(e,"toggle"),r(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),(e.is("input,button")?e:e.find("input:visible,button:visible").first()).trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){r(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(u){"use strict";function c(t,e){this.$element=u(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",u.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",u.proxy(this.pause,this)).on("mouseleave.bs.carousel",u.proxy(this.cycle,this))}function o(o){return this.each(function(){var t=u(this),e=t.data("bs.carousel"),n=u.extend({},c.DEFAULTS,t.data(),"object"==typeof o&&o),i="string"==typeof o?o:n.slide;e||t.data("bs.carousel",e=new c(this,n)),"number"==typeof o?e.to(o):i?e[i]():n.interval&&e.pause().cycle()})}c.VERSION="3.3.7",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},c.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(u.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},c.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;t=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(t)},c.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(n<t?"next":"prev",this.$items.eq(t))},c.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&u.support.transition&&(this.$element.trigger(u.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(t,e){var n=this.$element.find(".item.active"),i=e||this.getItemForDirection(t,n),o=this.interval,r="next"==t?"left":"right",s=this;if(i.hasClass("active"))return this.sliding=!1;var a=i[0],e=u.Event("slide.bs.carousel",{relatedTarget:a,direction:r});if(this.$element.trigger(e),!e.isDefaultPrevented()){this.sliding=!0,o&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),(e=u(this.$indicators.children()[this.getItemIndex(i)]))&&e.addClass("active"));var l=u.Event("slid.bs.carousel",{relatedTarget:a,direction:r});return u.support.transition&&this.$element.hasClass("slide")?(i.addClass(t),i[0].offsetWidth,n.addClass(r),i.addClass(r),n.one("bsTransitionEnd",function(){i.removeClass([t,r].join(" ")).addClass("active"),n.removeClass(["active",r].join(" ")),s.sliding=!1,setTimeout(function(){s.$element.trigger(l)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(n.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger(l)),o&&this.cycle(),this}};var t=u.fn.carousel;u.fn.carousel=o,u.fn.carousel.Constructor=c,u.fn.carousel.noConflict=function(){return u.fn.carousel=t,this};function e(t){var e,n=u(this),i=u(n.attr("data-target")||(e=n.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""));i.hasClass("carousel")&&(e=u.extend({},i.data(),n.data()),(n=n.attr("data-slide-to"))&&(e.interval=!1),o.call(i,e),n&&i.data("bs.carousel").to(n),t.preventDefault())}u(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),u(window).on("load",function(){u('[data-ride="carousel"]').each(function(){var t=u(this);o.call(t,t.data())})})}(jQuery),function(o){"use strict";function r(t,e){this.$element=o(t),this.options=o.extend({},r.DEFAULTS,e),this.$trigger=o('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()}function n(t){var e=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return o(e)}function s(i){return this.each(function(){var t=o(this),e=t.data("bs.collapse"),n=o.extend({},r.DEFAULTS,t.data(),"object"==typeof i&&i);!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||t.data("bs.collapse",e=new r(this,n)),"string"==typeof i&&e[i]()})}r.VERSION="3.3.7",r.TRANSITION_DURATION=350,r.DEFAULTS={toggle:!0},r.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},r.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&(i=t.data("bs.collapse"))&&i.transitioning)){var e=o.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){t&&t.length&&(s.call(t,"hide"),i||t.data("bs.collapse",null));var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var i=function(){this.$element.removeClass("collapsing").addClass("collapse in")[n](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!o.support.transition)return i.call(this);t=o.camelCase(["scroll",n].join("-"));this.$element.one("bsTransitionEnd",o.proxy(i,this)).emulateTransitionEnd(r.TRANSITION_DURATION)[n](this.$element[0][t])}}}},r.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=o.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;t=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!o.support.transition)return t.call(this);this.$element[e](0).one("bsTransitionEnd",o.proxy(t,this)).emulateTransitionEnd(r.TRANSITION_DURATION)}}},r.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},r.prototype.getParent=function(){return o(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(o.proxy(function(t,e){e=o(e);this.addAriaAndCollapsedClass(n(e),e)},this)).end()},r.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var t=o.fn.collapse;o.fn.collapse=s,o.fn.collapse.Constructor=r,o.fn.collapse.noConflict=function(){return o.fn.collapse=t,this},o(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=o(this);e.attr("data-target")||t.preventDefault();t=n(e),e=t.data("bs.collapse")?"toggle":e.data();s.call(t,e)})}(jQuery),function(o){"use strict";function i(t){o(t).on("click.bs.dropdown",this.toggle)}var r='[data-toggle="dropdown"]';function s(t){var e=t.attr("data-target"),e=(e=e||(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))&&o(e);return e&&e.length?e:t.parent()}function a(i){i&&3===i.which||(o(".dropdown-backdrop").remove(),o(r).each(function(){var t=o(this),e=s(t),n={relatedTarget:this};e.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&o.contains(e[0],i.target)||(e.trigger(i=o.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(o.Event("hidden.bs.dropdown",n)))))}))}i.VERSION="3.3.7",i.prototype.toggle=function(t){var e=o(this);if(!e.is(".disabled, :disabled")){var n=s(e),i=n.hasClass("open");if(a(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&o(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(o(this)).on("click",a);i={relatedTarget:this};if(n.trigger(t=o.Event("show.bs.dropdown",i)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(o.Event("shown.bs.dropdown",i))}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=o(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=s(e),i=n.hasClass("open");if(!i&&27!=t.which||i&&27==t.which)return 27==t.which&&n.find(r).trigger("focus"),e.trigger("click");e=n.find(".dropdown-menu li:not(.disabled):visible a");e.length&&(n=e.index(t.target),38==t.which&&0<n&&n--,40==t.which&&n<e.length-1&&n++,e.eq(n=!~n?0:n).trigger("focus"))}}};var t=o.fn.dropdown;o.fn.dropdown=function(n){return this.each(function(){var t=o(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new i(this)),"string"==typeof n&&e[n].call(t)})},o.fn.dropdown.Constructor=i,o.fn.dropdown.noConflict=function(){return o.fn.dropdown=t,this},o(document).on("click.bs.dropdown.data-api",a).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",r,i.prototype.toggle).on("keydown.bs.dropdown.data-api",r,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(r){"use strict";function s(t,e){this.options=e,this.$body=r(document.body),this.$element=r(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,r.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function o(i,o){return this.each(function(){var t=r(this),e=t.data("bs.modal"),n=r.extend({},s.DEFAULTS,t.data(),"object"==typeof i&&i);e||t.data("bs.modal",e=new s(this,n)),"string"==typeof i?e[i](o):n.show&&e.show(o)})}s.VERSION="3.3.7",s.TRANSITION_DURATION=300,s.BACKDROP_TRANSITION_DURATION=150,s.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},s.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},s.prototype.show=function(n){var i=this,t=r.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',r.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){r(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=r.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),t&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var e=r.Event("shown.bs.modal",{relatedTarget:n});t?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(s.TRANSITION_DURATION):i.$element.trigger("focus").trigger(e)}))},s.prototype.hide=function(t){t&&t.preventDefault(),t=r.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),r(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),r.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",r.proxy(this.hideModal,this)).emulateTransitionEnd(s.TRANSITION_DURATION):this.hideModal())},s.prototype.enforceFocus=function(){r(document).off("focusin.bs.modal").on("focusin.bs.modal",r.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},s.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",r.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},s.prototype.resize=function(){this.isShown?r(window).on("resize.bs.modal",r.proxy(this.handleUpdate,this)):r(window).off("resize.bs.modal")},s.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},s.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},s.prototype.backdrop=function(t){var e,n=this,i=this.$element.hasClass("fade")?"fade":"";this.isShown&&this.options.backdrop?(e=r.support.transition&&i,this.$backdrop=r(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",r.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),t&&(e?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):t())):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e=function(){n.removeBackdrop(),t&&t()},r.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):e()):t&&t()},s.prototype.handleUpdate=function(){this.adjustDialog()},s.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},s.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},s.prototype.checkScrollbar=function(){var t,e=window.innerWidth;e||(e=(t=document.documentElement.getBoundingClientRect()).right-Math.abs(t.left)),this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},s.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},s.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},s.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=r.fn.modal;r.fn.modal=o,r.fn.modal.Constructor=s,r.fn.modal.noConflict=function(){return r.fn.modal=t,this},r(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=r(this),n=e.attr("href"),i=r(e.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),n=i.data("bs.modal")?"toggle":r.extend({remote:!/#/.test(n)&&n},i.data(),e.data());e.is("a")&&t.preventDefault(),i.one("show.bs.modal",function(t){t.isDefaultPrevented()||i.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),o.call(i,n,this)})}(jQuery),function(l){"use strict";function u(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}u.VERSION="3.3.7",u.TRANSITION_DURATION=150,u.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},u.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=l(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&l(l.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var r,s=i[o];"click"==s?this.$element.on("click."+this.type,this.options.selector,l.proxy(this.toggle,this)):"manual"!=s&&(r="hover"==s?"mouseleave":"focusout",this.$element.on(("hover"==s?"mouseenter":"focusin")+"."+this.type,this.options.selector,l.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,l.proxy(this.leave,this)))}this.options.selector?this._options=l.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},u.prototype.getDefaults=function(){return u.DEFAULTS},u.prototype.getOptions=function(t){return(t=l.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},u.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&l.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)}),n},u.prototype.enter=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t instanceof l.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},u.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},u.prototype.leave=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t instanceof l.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},u.prototype.show=function(){var e,t,n,i,o,r,s,a=l.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(a),n=l.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!a.isDefaultPrevented()&&n&&(t=(e=this).tip(),r=this.getUID(this.type),this.setContent(),t.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&t.addClass("fade"),s="function"==typeof this.options.placement?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,(o=(i=/\s?auto?\s?/i).test(s))&&(s=s.replace(i,"")||"top"),t.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?t.appendTo(this.options.container):t.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),a=this.getPosition(),n=t[0].offsetWidth,r=t[0].offsetHeight,o&&(i=s,o=this.getPosition(this.$viewport),s="bottom"==s&&a.bottom+r>o.bottom?"top":"top"==s&&a.top-r<o.top?"bottom":"right"==s&&a.right+n>o.width?"left":"left"==s&&a.left-n<o.left?"right":s,t.removeClass(i).addClass(s)),r=this.getCalculatedOffset(s,a,n,r),this.applyPlacement(r,s),s=function(){var t=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==t&&e.leave(e)},l.support.transition&&this.$tip.hasClass("fade")?t.one("bsTransitionEnd",s).emulateTransitionEnd(u.TRANSITION_DURATION):s()))},u.prototype.applyPlacement=function(t,e){var n=this.tip(),i=n[0].offsetWidth,o=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),s=parseInt(n.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(s)&&(s=0),t.top+=r,t.left+=s,l.offset.setOffset(n[0],l.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),n.addClass("in");var a=n[0].offsetWidth,r=n[0].offsetHeight;"top"==e&&r!=o&&(t.top=t.top+o-r);s=this.getViewportAdjustedDelta(e,t,a,r);s.left?t.left+=s.left:t.top+=s.top;e=/top|bottom/.test(e),o=e?2*s.left-i+a:2*s.top-o+r,r=e?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(o,n[0][r],e)},u.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},u.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},u.prototype.hide=function(t){var e=this,n=l(this.$tip),i=l.Event("hide.bs."+this.type);function o(){"in"!=e.hoverState&&n.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(i),!i.isDefaultPrevented())return n.removeClass("in"),l.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",o).emulateTransitionEnd(u.TRANSITION_DURATION):o(),this.hoverState=null,this},u.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},u.prototype.hasContent=function(){return this.getTitle()},u.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],n="BODY"==e.tagName,i=e.getBoundingClientRect();null==i.width&&(i=l.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));e=window.SVGElement&&e instanceof window.SVGElement,e=n?{top:0,left:0}:e?null:t.offset(),t={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},n=n?{width:l(window).width(),height:l(window).height()}:null;return l.extend({},i,t,n,e)},u.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},u.prototype.getViewportAdjustedDelta=function(t,e,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var r,s=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);return/right|left/.test(t)?(t=e.top-s-a.scroll,r=e.top+s-a.scroll+i,t<a.top?o.top=a.top-t:r>a.top+a.height&&(o.top=a.top+a.height-r)):(r=e.left-s,n=e.left+s+n,r<a.left?o.left=a.left-r:n>a.right&&(o.left=a.left+a.width-n)),o},u.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},u.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},u.prototype.tip=function(){if(!this.$tip&&(this.$tip=l(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},u.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},u.prototype.enable=function(){this.enabled=!0},u.prototype.disable=function(){this.enabled=!1},u.prototype.toggleEnabled=function(){this.enabled=!this.enabled},u.prototype.toggle=function(t){var e=this;t&&((e=l(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},u.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var t=l.fn.tooltip;l.fn.tooltip=function(i){return this.each(function(){var t=l(this),e=t.data("bs.tooltip"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.tooltip",e=new u(this,n)),"string"==typeof i&&e[i]())})},l.fn.tooltip.Constructor=u,l.fn.tooltip.noConflict=function(){return l.fn.tooltip=t,this}}(jQuery),function(o){"use strict";function r(t,e){this.init("popover",t,e)}if(!o.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.3.7",r.DEFAULTS=o.extend({},o.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((r.prototype=o.extend({},o.fn.tooltip.Constructor.prototype)).constructor=r).prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=o.fn.popover;o.fn.popover=function(i){return this.each(function(){var t=o(this),e=t.data("bs.popover"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.popover",e=new r(this,n)),"string"==typeof i&&e[i]())})},o.fn.popover.Constructor=r,o.fn.popover.noConflict=function(){return o.fn.popover=t,this}}(jQuery),function(o){"use strict";function i(t,e){this.$body=o(document.body),this.$scrollElement=o(t).is(document.body)?o(window):o(t),this.options=o.extend({},i.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o.proxy(this.process,this)),this.refresh(),this.process()}function e(n){return this.each(function(){var t=o(this),e=t.data("bs.scrollspy");e||t.data("bs.scrollspy",e=new i(this,"object"==typeof n&&n)),"string"==typeof n&&e[n]()})}i.VERSION="3.3.7",i.DEFAULTS={offset:10},i.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},i.prototype.refresh=function(){var t=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),o.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=o(this),e=t.data("target")||t.attr("href"),t=/^#./.test(e)&&o(e);return t&&t.length&&t.is(":visible")?[[t[n]().top+i,e]]:null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},i.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,r=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=e)return s!=(t=r[r.length-1])&&this.activate(t);if(s&&e<o[0])return this.activeTarget=null,this.clear();for(t=o.length;t--;)s!=r[t]&&e>=o[t]&&(void 0===o[t+1]||e<o[t+1])&&this.activate(r[t])},i.prototype.activate=function(t){this.activeTarget=t,this.clear();t=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',t=o(t).parents("li").addClass("active");(t=t.parent(".dropdown-menu").length?t.closest("li.dropdown").addClass("active"):t).trigger("activate.bs.scrollspy")},i.prototype.clear=function(){o(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=o.fn.scrollspy;o.fn.scrollspy=e,o.fn.scrollspy.Constructor=i,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=t,this},o(window).on("load.bs.scrollspy.data-api",function(){o('[data-spy="scroll"]').each(function(){var t=o(this);e.call(t,t.data())})})}(jQuery),function(s){"use strict";function a(t){this.element=s(t)}function e(n){return this.each(function(){var t=s(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new a(this)),"string"==typeof n&&e[n]()})}a.VERSION="3.3.7",a.TRANSITION_DURATION=150,a.prototype.show=function(){var t,e,n,i=this.element,o=i.closest("ul:not(.dropdown-menu)"),r=(r=i.data("target"))||(r=i.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"");i.parent("li").hasClass("active")||(t=o.find(".active:last a"),e=s.Event("hide.bs.tab",{relatedTarget:i[0]}),n=s.Event("show.bs.tab",{relatedTarget:t[0]}),t.trigger(e),i.trigger(n),n.isDefaultPrevented()||e.isDefaultPrevented()||(r=s(r),this.activate(i.closest("li"),o),this.activate(r,r.parent(),function(){t.trigger({type:"hidden.bs.tab",relatedTarget:i[0]}),i.trigger({type:"shown.bs.tab",relatedTarget:t[0]})})))},a.prototype.activate=function(t,e,n){var i=e.find("> .active"),o=n&&s.support.transition&&(i.length&&i.hasClass("fade")||!!e.find("> .fade").length);function r(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}i.length&&o?i.one("bsTransitionEnd",r).emulateTransitionEnd(a.TRANSITION_DURATION):r(),i.removeClass("in")};var t=s.fn.tab;s.fn.tab=e,s.fn.tab.Constructor=a,s.fn.tab.noConflict=function(){return s.fn.tab=t,this};function n(t){t.preventDefault(),e.call(s(this),"show")}s(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(s){"use strict";function a(t,e){this.options=s.extend({},a.DEFAULTS,e),this.$target=s(this.options.target).on("scroll.bs.affix.data-api",s.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",s.proxy(this.checkPositionWithEventLoop,this)),this.$element=s(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()}function n(n){return this.each(function(){var t=s(this),e=t.data("bs.affix");e||t.data("bs.affix",e=new a(this,"object"==typeof n&&n)),"string"==typeof n&&e[n]()})}a.VERSION="3.3.7",a.RESET="affix affix-top affix-bottom",a.DEFAULTS={offset:0,target:window},a.prototype.getState=function(t,e,n,i){var o=this.$target.scrollTop(),r=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return o<n&&"top";if("bottom"==this.affixed)return null!=n?!(o+this.unpin<=r.top)&&"bottom":!(o+s<=t-i)&&"bottom";var a=null==this.affixed,r=a?o:r.top;return null!=n&&o<=n?"top":null!=i&&t-i<=r+(a?s:e)&&"bottom"},a.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(a.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},a.prototype.checkPositionWithEventLoop=function(){setTimeout(s.proxy(this.checkPosition,this),1)},a.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,n=e.top,i=e.bottom,o=Math.max(s(document).height(),s(document.body).height());"object"!=typeof e&&(i=n=e),"function"==typeof n&&(n=e.top(this.$element)),"function"==typeof i&&(i=e.bottom(this.$element));var r=this.getState(o,t,n,i);if(this.affixed!=r){null!=this.unpin&&this.$element.css("top","");e="affix"+(r?"-"+r:""),n=s.Event(e+".bs.affix");if(this.$element.trigger(n),n.isDefaultPrevented())return;this.affixed=r,this.unpin="bottom"==r?this.getPinnedOffset():null,this.$element.removeClass(a.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==r&&this.$element.offset({top:o-t-i})}};var t=s.fn.affix;s.fn.affix=n,s.fn.affix.Constructor=a,s.fn.affix.noConflict=function(){return s.fn.affix=t,this},s(window).on("load",function(){s('[data-spy="affix"]').each(function(){var t=s(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),n.call(t,e)})})}(jQuery),function(l){l.fn.yiiActiveForm=function(t){return g[t]?g[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?(l.error("Method "+t+" does not exist on jQuery.yiiActiveForm"),!1):g.init.apply(this,arguments)};function u(t){i&&(i.resolve(),i=void 0,t.removeData("yiiSubmitFinalizePromise"))}var i,e="beforeValidate",s="afterValidate",c="beforeValidateAttribute",d="afterValidateAttribute",o="beforeSubmit",f="ajaxBeforeSend",p="ajaxComplete",r="afterInit",a={encodeErrorSummary:!0,errorSummary:".error-summary",validateOnSubmit:!0,errorCssClass:"has-error",successCssClass:"has-success",validatingCssClass:"validating",ajaxParam:"ajax",ajaxDataType:"json",validationUrl:void 0,scrollToError:!0,scrollToErrorOffset:0,validationStateOn:"container"},h={id:void 0,name:void 0,container:void 0,input:void 0,error:".help-block",encodeError:!0,validateOnChange:!0,validateOnBlur:!0,validateOnType:!1,validationDelay:500,enableAjaxValidation:!1,validate:void 0,status:0,cancelled:!1,value:void 0,updateAriaInvalid:!0},g={init:function(n,i){return this.each(function(){var t,e=l(this);e.data("yiiActiveForm")||(void 0===(t=l.extend({},a,i||{})).validationUrl&&(t.validationUrl=e.attr("action")),l.each(n,function(t){n[t]=l.extend({value:A(e,this)},h,this),m(e,n[t])}),e.data("yiiActiveForm",{settings:t,attributes:n,submitting:!1,validated:!1,options:w(e)}),e.on("reset.yiiActiveForm",g.resetForm),t.validateOnSubmit&&(e.on("mouseup.yiiActiveForm keyup.yiiActiveForm",":submit",function(){e.data("yiiActiveForm").submitObject=l(this)}),e.on("submit.yiiActiveForm",g.submitForm)),t=l.Event(r),e.trigger(t))})},add:function(t){var e=l(this);t=l.extend({value:A(e,t)},h,t),e.data("yiiActiveForm").attributes.push(t),m(e,t)},remove:function(e){var t=l(this),n=t.data("yiiActiveForm").attributes,i=-1,o=void 0;return l.each(n,function(t){if(n[t].id==e)return o=n[i=t],!1}),0<=i&&(n.splice(i,1),v(t,o)),o},validateAttribute:function(t){t=g.find.call(this,t);null!=t&&y(l(this),t,!0)},find:function(e){var n=l(this).data("yiiActiveForm").attributes,i=void 0;return l.each(n,function(t){if(n[t].id==e)return i=n[t],!1}),i},destroy:function(){return this.each(function(){l(this).off(".yiiActiveForm"),l(this).removeData("yiiActiveForm")})},data:function(){return this.data("yiiActiveForm")},validate:function(t){t&&(l(this).data("yiiActiveForm").submitting=!0);var i=l(this),o=i.data("yiiActiveForm"),r=!1,s={},n=b(),a=o.submitting;if(a){t=l.Event(e);if(i.trigger(t,[s,n]),!1===t.result)return o.submitting=!1,void u(i)}l.each(o.attributes,function(){var t,e;this.$form=i,l(this.input).is(":disabled")||(this.cancelled=!1,!o.submitting&&2!==this.status&&3!==this.status||(void 0===(t=s[this.id])&&(s[this.id]=t=[]),e=l.Event(c),i.trigger(e,[this,t,n]),!1!==e.result?(this.validate&&this.validate(this,A(i,this),t,n,i),this.enableAjaxValidation&&(r=!0)):this.cancelled=!0))}),l.when.apply(this,n).always(function(){for(var t in s)0===s[t].length&&delete s[t];var e,n;r&&(l.isEmptyObject(s)||o.submitting)?(e=o.submitObject,n="&"+o.settings.ajaxParam+"="+i.attr("id"),e&&e.length&&e.attr("name")&&(n+="&"+e.attr("name")+"="+e.attr("value")),l.ajax({url:o.settings.validationUrl,type:i.attr("method"),data:i.serialize()+n,dataType:o.settings.ajaxDataType,complete:function(t,e){i.trigger(p,[t,e])},beforeSend:function(t,e){i.trigger(f,[t,e])},success:function(t){null!==t&&"object"==typeof t?(l.each(o.attributes,function(){this.enableAjaxValidation&&!this.cancelled||delete t[this.id]}),T(i,l.extend(s,t),a)):T(i,s,a)},error:function(){o.submitting=!1,u(i)}})):o.submitting?window.setTimeout(function(){T(i,s,a)},200):T(i,s,a)})},submitForm:function(){var t=l(this),e=t.data("yiiActiveForm");if(e.validated){e.submitting=!1;var n=l.Event(o);return(t.trigger(n),!1===n.result)?(e.validated=!1,u(t),!1):(C(t),!0)}return n=t,i=l.Deferred(),n.data("yiiSubmitFinalizePromise",i.promise()),void 0!==e.settings.timer&&clearTimeout(e.settings.timer),e.submitting=!0,g.validate.call(t),!1},resetForm:function(){var n=l(this),i=n.data("yiiActiveForm");window.setTimeout(function(){l.each(i.attributes,function(){this.value=A(n,this),this.status=0;var t=n.find(this.container),e=k(n,this);("input"===i.settings.validationStateOn?e:t).removeClass(i.settings.validatingCssClass+" "+i.settings.errorCssClass+" "+i.settings.successCssClass),t.find(this.error).html("")}),n.find(i.settings.errorSummary).hide().find("ul").html("")},1)},updateMessages:function(t,e){var n=l(this),i=n.data("yiiActiveForm");l.each(i.attributes,function(){E(n,this,t)}),e&&S(n,t)},updateAttribute:function(t,e){var n,i=g.find.call(this,t);null!=i&&((n={})[t]=e,E(l(this),i,n))}},m=function(e,n){var t=k(e,n);n.validateOnChange&&t.on("change.yiiActiveForm",function(){y(e,n,!1)}),n.validateOnBlur&&t.on("blur.yiiActiveForm",function(){0!=n.status&&1!=n.status||y(e,n,!0)}),n.validateOnType&&t.on("keyup.yiiActiveForm",function(t){-1===l.inArray(t.which,[16,17,18,37,38,39,40])&&n.value!==A(e,n)&&y(e,n,!1,n.validationDelay)})},v=function(t,e){k(t,e).off(".yiiActiveForm")},y=function(t,e,n,i){var o=t.data("yiiActiveForm");n&&(e.status=2),l.each(o.attributes,function(){this.value!==A(t,this)&&(this.status=2,n=!0)}),n&&(void 0!==o.settings.timer&&clearTimeout(o.settings.timer),o.settings.timer=window.setTimeout(function(){o.submitting||t.is(":hidden")||(l.each(o.attributes,function(){2===this.status&&(this.status=3,t.find(this.container).addClass(o.settings.validatingCssClass))}),g.validate.call(t))},i||200))},b=function(){var t=[];return t.add=function(t){this.push(new l.Deferred(t))},t},x=["action","target","method","enctype"],w=function(t){for(var e={},n=0;n<x.length;n++)e[x[n]]=t.attr(x[n]);return e},T=function(t,e,n){var i,o,r=t.data("yiiActiveForm");if(void 0===r)return!1;n?(i=[],l.each(r.attributes,function(){l(this.input).is(":disabled")||this.cancelled||!E(t,this,e)||i.push(this)}),t.trigger(s,[e,i]),S(t,e),i.length?(r.settings.scrollToError&&((o=t.find(l.map(i,function(t){return t.input}).join(",")).first().closest(":visible").offset().top-r.settings.scrollToErrorOffset)<0?o=0:o>l(document).height()&&(o=l(document).height()),(o<(n=l(window).scrollTop())||o>n+l(window).height())&&l(window).scrollTop(o)),r.submitting=!1):(r.validated=!0,r.submitObject&&function(t,e){for(var n=0;n<x.length;n++){var i=e.attr("form"+x[n]);i&&t.attr(x[n],i)}}(t,r.submitObject),t.submit(),r.submitObject&&function(t){for(var e=t.data("yiiActiveForm"),n=0;n<x.length;n++)t.attr(x[n],e.options[x[n]]||null)}(t))):l.each(r.attributes,function(){this.cancelled||2!==this.status&&3!==this.status||E(t,this,e)}),u(t)},C=function(t){var e,n=t.data("yiiActiveForm").submitObject||t.find(":submit:first");n.length&&"submit"==n.attr("type")&&n.attr("name")&&((e=l('input[type="hidden"][name="'+n.attr("name")+'"]',t)).length?e.attr("value",n.attr("value")):l("<input>").attr({type:"hidden",name:n.attr("name"),value:n.attr("value")}).appendTo(t))},E=function(t,e,n){var i,o,r=t.data("yiiActiveForm"),s=k(t,e),a=!1;return l.isArray(n[e.id])||(n[e.id]=[]),e.status=1,s.length&&(a=0<n[e.id].length,i=(o=t.find(e.container)).find(e.error),$(t,e,a),o="input"===r.settings.validationStateOn?s:o,a?(e.encodeError?i.text(n[e.id][0]):i.html(n[e.id][0]),o.removeClass(r.settings.validatingCssClass+" "+r.settings.successCssClass).addClass(r.settings.errorCssClass)):(i.empty(),o.removeClass(r.settings.validatingCssClass+" "+r.settings.errorCssClass+" ").addClass(r.settings.successCssClass)),e.value=A(t,e)),t.trigger(d,[e,n[e.id]]),a},S=function(t,e){var n=t.data("yiiActiveForm"),t=t.find(n.settings.errorSummary),i=t.find("ul").empty();t.length&&e&&(l.each(n.attributes,function(){var t;l.isArray(e[this.id])&&e[this.id].length&&(t=l("<li/>"),n.settings.encodeErrorSummary?t.text(e[this.id][0]):t.html(e[this.id][0]),i.append(t))}),t.toggle(0<i.find("li").length))},A=function(t,e){var n=k(t,e),e=n.attr("type");if("checkbox"!==e&&"radio"!==e)return n.val();e=n.filter(":checked");return(e=!e.length?t.find('input[type=hidden][name="'+n.attr("name")+'"]'):e).val()},k=function(t,e){e=t.find(e.input);return e.length&&"div"===e[0].tagName.toLowerCase()?e.find("input"):e},$=function(t,e,n){e.updateAriaInvalid&&t.find(e.input).attr("aria-invalid",n?"true":"false")}}(window.jQuery);