@ministryofjustice/frontend 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/moj/all.jquery.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.MOJFrontend=e()}(this,function(){!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(t.document)return e(t);throw new Error("jQuery requires a window with a document")}:e(t)}("undefined"!=typeof window?window:this,function(k,H){"use strict";function v(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item}function g(t){return null!=t&&t===t.window}var e=[],q=Object.getPrototypeOf,s=e.slice,$=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},R=e.push,O=e.indexOf,P={},I=P.toString,W=P.hasOwnProperty,V=W.toString,z=V.call(Object),m={},w=k.document,U={type:!0,src:!0,nonce:!0,noModule:!0};function Y(t,e,n){var o,i,r=(n=n||w).createElement("script");if(r.text=t,e)for(o in U)(i=e[o]||e.getAttribute&&e.getAttribute(o))&&r.setAttribute(o,i);n.head.appendChild(r).parentNode.removeChild(r)}function f(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?P[I.call(t)]||"object":typeof t}var t="3.6.0",C=function(t,e){return new C.fn.init(t,e)};function X(t){var e=!!t&&"length"in t&&t.length,n=f(t);return!v(t)&&!g(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}C.fn=C.prototype={jquery:t,constructor:C,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=C.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return C.each(this,t)},map:function(n){return this.pushStack(C.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(C.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:R,sort:e.sort,splice:e.splice},C.extend=C.fn.extend=function(){var t,e,n,o,i,r=arguments[0]||{},a=1,s=arguments.length,u=!1;for("boolean"==typeof r&&(u=r,r=arguments[a]||{},a++),"object"==typeof r||v(r)||(r={}),a===s&&(r=this,a--);a<s;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&r!==n&&(u&&n&&(C.isPlainObject(n)||(o=Array.isArray(n)))?(i=r[e],i=o&&!Array.isArray(i)?[]:o||C.isPlainObject(i)?i:{},o=!1,r[e]=C.extend(u,i,n)):void 0!==n&&(r[e]=n));return r},C.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==I.call(t))&&(!(t=q(t))||"function"==typeof(t=W.call(t,"constructor")&&t.constructor)&&V.call(t)===z)},isEmptyObject:function(t){for(var e in t)return!1;return!0},globalEval:function(t,e,n){Y(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,o=0;if(X(t))for(n=t.length;o<n&&!1!==e.call(t[o],o,t[o]);o++);else for(o in t)if(!1===e.call(t[o],o,t[o]))break;return t},makeArray:function(t,e){e=e||[];return null!=t&&(X(Object(t))?C.merge(e,"string"==typeof t?[t]:t):R.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,o=0,i=t.length;o<n;o++)t[i++]=e[o];return t.length=i,t},grep:function(t,e,n){for(var o=[],i=0,r=t.length,a=!n;i<r;i++)!e(t[i],i)!=a&&o.push(t[i]);return o},map:function(t,e,n){var o,i,r=0,a=[];if(X(t))for(o=t.length;r<o;r++)null!=(i=e(t[r],r,n))&&a.push(i);else for(r in t)null!=(i=e(t[r],r,n))&&a.push(i);return $(a)},guid:1,support:m}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=e[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){P["[object "+e+"]"]=e.toLowerCase()});function o(t,e,n){for(var o=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&C(t).is(n))break;o.push(t)}return o}function Z(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var t=function(H){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 q(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function $(){w()}var t,p,x,r,R,h,O,P,k,u,l,w,C,n,D,f,o,i,g,T="sizzle"+ +new Date,c=H.document,j=0,I=0,W=L(),V=L(),z=L(),m=L(),U=function(t,e){return t===e&&(l=!0),0},Y={}.hasOwnProperty,e=[],X=e.pop,Z=e.push,S=e.push,K=e.slice,v=function(t,e){for(var n=0,o=t.length;n<o;n++)if(t[n]===e)return n;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",s="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",G="\\["+a+"*("+s+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+s+"))|)"+a+"*\\]",Q=":("+s+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+G+")*)|.*)\\)|)",tt=new RegExp(a+"+","g"),y=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),et=new RegExp("^"+a+"*,"+a+"*"),nt=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),ot=new RegExp(a+"|>"),it=new RegExp(Q),rt=new RegExp("^"+s+"$"),b={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+G),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},at=/HTML$/i,st=/^(?:input|select|textarea|button)$/i,ut=/^h\d$/i,E=/^[^{]+\{\s*\[native \w/,lt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ct=/[+~]/,A=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),dt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,pt=vt(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{S.apply(e=K.call(c.childNodes),c.childNodes),e[c.childNodes.length].nodeType}catch(t){S={apply:e.length?function(t,e){Z.apply(t,K.call(e))}:function(t,e){for(var n=t.length,o=0;t[n++]=e[o++];);t.length=n-1}}}function B(e,t,n,o){var i,r,a,s,u,l,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(!o&&(w(t),t=t||C,D)){if(11!==d&&(s=lt.exec(e)))if(i=s[1]){if(9===d){if(!(l=t.getElementById(i)))return n;if(l.id===i)return n.push(l),n}else if(c&&(l=c.getElementById(i))&&g(t,l)&&l.id===i)return n.push(l),n}else{if(s[2])return S.apply(n,t.getElementsByTagName(e)),n;if((i=s[3])&&p.getElementsByClassName&&t.getElementsByClassName)return S.apply(n,t.getElementsByClassName(i)),n}if(p.qsa&&!m[e+" "]&&(!f||!f.test(e))&&(1!==d||"object"!==t.nodeName.toLowerCase())){if(l=e,c=t,1===d&&(ot.test(e)||nt.test(e))){for((c=ct.test(e)&&mt(t.parentNode)||t)===t&&p.scope||((a=t.getAttribute("id"))?a=a.replace(dt,q):t.setAttribute("id",a=T)),r=(u=h(e)).length;r--;)u[r]=(a?"#"+a:":scope")+" "+F(u[r]);l=u.join(",")}try{return S.apply(n,c.querySelectorAll(l)),n}catch(t){m(e,!0)}finally{a===T&&t.removeAttribute("id")}}}return P(e.replace(y,"$1"),t,n,o)}function L(){var n=[];function o(t,e){return n.push(t+" ")>x.cacheLength&&delete o[n.shift()],o[t+" "]=e}return o}function _(t){return t[T]=!0,t}function M(t){var e=C.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function ht(t,e){for(var n=t.split("|"),o=n.length;o--;)x.attrHandle[n[o]]=e}function ft(t,e){var n=e&&t,o=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function gt(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&&pt(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function N(a){return _(function(r){return r=+r,_(function(t,e){for(var n,o=a([],t.length,r),i=o.length;i--;)t[n=o[i]]&&(t[n]=!(e[n]=t[n]))})})}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in p=B.support={},R=B.isXML=function(t){var e=t&&t.namespaceURI,t=t&&(t.ownerDocument||t).documentElement;return!at.test(e||t&&t.nodeName||"HTML")},w=B.setDocument=function(t){var t=t?t.ownerDocument||t:c;return t!=C&&9===t.nodeType&&t.documentElement&&(n=(C=t).documentElement,D=!R(C),c!=C&&(t=C.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",$,!1):t.attachEvent&&t.attachEvent("onunload",$)),p.scope=M(function(t){return n.appendChild(t).appendChild(C.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),p.attributes=M(function(t){return t.className="i",!t.getAttribute("className")}),p.getElementsByTagName=M(function(t){return t.appendChild(C.createComment("")),!t.getElementsByTagName("*").length}),p.getElementsByClassName=E.test(C.getElementsByClassName),p.getById=M(function(t){return n.appendChild(t).id=T,!C.getElementsByName||!C.getElementsByName(T).length}),p.getById?(x.filter.ID=function(t){var e=t.replace(A,d);return function(t){return t.getAttribute("id")===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&D)return(e=e.getElementById(t))?[e]:[]}):(x.filter.ID=function(t){var e=t.replace(A,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&&D){var n,o,i,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(i=e.getElementsByName(t),o=0;r=i[o++];)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,o=[],i=0,r=e.getElementsByTagName(t);if("*"!==t)return r;for(;n=r[i++];)1===n.nodeType&&o.push(n);return o},x.find.CLASS=p.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&D)return e.getElementsByClassName(t)},o=[],f=[],(p.qsa=E.test(C.querySelectorAll))&&(M(function(t){var e;n.appendChild(t).innerHTML="<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]="+a+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||f.push("\\["+a+"*(?:value|"+J+")"),t.querySelectorAll("[id~="+T+"-]").length||f.push("~="),(e=C.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||f.push(":checked"),t.querySelectorAll("a#"+T+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll("\\\f"),f.push("[\\r\\n\\f]")}),M(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&&f.push("name"+a+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&f.push(":enabled",":disabled"),n.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),f.push(",.*:")})),(p.matchesSelector=E.test(i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&M(function(t){p.disconnectedMatch=i.call(t,"*"),i.call(t,"[s!='']:x"),o.push("!=",Q)}),f=f.length&&new RegExp(f.join("|")),o=o.length&&new RegExp(o.join("|")),t=E.test(n.compareDocumentPosition),g=t||E.test(n.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},U=t?function(t,e){if(t===e)return l=!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==c&&g(c,t)?-1:e==C||e.ownerDocument==c&&g(c,e)?1:u?v(u,t)-v(u,e):0:4&n?-1:1)}:function(t,e){if(t===e)return l=!0,0;var n,o=0,i=t.parentNode,r=e.parentNode,a=[t],s=[e];if(!i||!r)return t==C?-1:e==C?1:i?-1:r?1:u?v(u,t)-v(u,e):0;if(i===r)return ft(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[o]===s[o];)o++;return o?ft(a[o],s[o]):a[o]==c?-1:s[o]==c?1:0}),C},B.matches=function(t,e){return B(t,null,null,e)},B.matchesSelector=function(t,e){if(w(t),p.matchesSelector&&D&&!m[e+" "]&&(!o||!o.test(e))&&(!f||!f.test(e)))try{var n=i.call(t,e);if(n||p.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){m(e,!0)}return 0<B(e,C,null,[t]).length},B.contains=function(t,e){return(t.ownerDocument||t)!=C&&w(t),g(t,e)},B.attr=function(t,e){(t.ownerDocument||t)!=C&&w(t);var n=x.attrHandle[e.toLowerCase()],n=n&&Y.call(x.attrHandle,e.toLowerCase())?n(t,e,!D):void 0;return void 0!==n?n:p.attributes||!D?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},B.escape=function(t){return(t+"").replace(dt,q)},B.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},B.uniqueSort=function(t){var e,n=[],o=0,i=0;if(l=!p.detectDuplicates,u=!p.sortStable&&t.slice(0),t.sort(U),l){for(;e=t[i++];)e===t[i]&&(o=n.push(i));for(;o--;)t.splice(n[o],1)}return u=null,t},r=B.getText=function(t){var e,n="",o=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[o++];)n+=r(e);return n},(x=B.selectors={cacheLength:50,createPseudo:_,match:b,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(A,d),t[3]=(t[3]||t[4]||t[5]||"").replace(A,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]||B.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]&&B.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return b.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&it.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(A,d).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+a+")"+t+"("+a+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,o){return function(t){t=B.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===o:"!="===n?t!==o:"^="===n?o&&0===t.indexOf(o):"*="===n?o&&-1<t.indexOf(o):"$="===n?o&&t.slice(-o.length)===o:"~="===n?-1<(" "+t.replace(tt," ")+" ").indexOf(o):"|="===n&&(t===o||t.slice(0,o.length+1)===o+"-"))}},CHILD:function(f,t,e,g,m){var y="nth"!==f.slice(0,3),v="last"!==f.slice(-4),b="of-type"===t;return 1===g&&0===m?function(t){return!!t.parentNode}:function(t,e,n){var o,i,r,a,s,u,l=y!=v?"nextSibling":"previousSibling",c=t.parentNode,d=b&&t.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(y){for(;l;){for(a=t;a=a[l];)if(b?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;u=l="only"===f&&!u&&"nextSibling"}return!0}if(u=[v?c.firstChild:c.lastChild],v&&p){for(h=(s=(o=(i=(r=(a=c)[T]||(a[T]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]||[])[0]===j&&o[1])&&o[2],a=s&&c.childNodes[s];a=++s&&a&&a[l]||(h=s=0)||u.pop();)if(1===a.nodeType&&++h&&a===t){i[f]=[j,s,h];break}}else if(!1===(h=p?s=(o=(i=(r=(a=t)[T]||(a[T]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]||[])[0]===j&&o[1]:h))for(;(a=++s&&a&&a[l]||(h=s=0)||u.pop())&&((b?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++h||(p&&((i=(r=a[T]||(a[T]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]=[j,h]),a!==t)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(t,r){var e,a=x.pseudos[t]||x.setFilters[t.toLowerCase()]||B.error("unsupported pseudo: "+t);return a[T]?a(r):1<a.length?(e=[t,t,"",r],x.setFilters.hasOwnProperty(t.toLowerCase())?_(function(t,e){for(var n,o=a(t,r),i=o.length;i--;)t[n=v(t,o[i])]=!(e[n]=o[i])}):function(t){return a(t,0,e)}):a}},pseudos:{not:_(function(t){var o=[],i=[],s=O(t.replace(y,"$1"));return s[T]?_(function(t,e,n,o){for(var i,r=s(t,null,o,[]),a=t.length;a--;)(i=r[a])&&(t[a]=!(e[a]=i))}):function(t,e,n){return o[0]=t,s(o,null,n,i),o[0]=null,!i.pop()}}),has:_(function(e){return function(t){return 0<B(e,t).length}}),contains:_(function(e){return e=e.replace(A,d),function(t){return-1<(t.textContent||r(t)).indexOf(e)}}),lang:_(function(n){return rt.test(n||"")||B.error("unsupported lang: "+n),n=n.replace(A,d).toLowerCase(),function(t){var e;do{if(e=D?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=H.location&&H.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===n},focus:function(t){return t===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!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 ut.test(t.nodeName)},input:function(t){return st.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:N(function(){return[0]}),last:N(function(t,e){return[e-1]}),eq:N(function(t,e,n){return[n<0?n+e:n]}),even:N(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:N(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:N(function(t,e,n){for(var o=n<0?n+e:e<n?e:n;0<=--o;)t.push(o);return t}),gt:N(function(t,e,n){for(var o=n<0?n+e:n;++o<e;)t.push(o);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 yt(){}function F(t){for(var e=0,n=t.length,o="";e<n;e++)o+=t[e].value;return o}function vt(a,t,e){var s=t.dir,u=t.next,l=u||s,c=e&&"parentNode"===l,d=I++;return t.first?function(t,e,n){for(;t=t[s];)if(1===t.nodeType||c)return a(t,e,n);return!1}:function(t,e,n){var o,i,r=[j,d];if(n){for(;t=t[s];)if((1===t.nodeType||c)&&a(t,e,n))return!0}else for(;t=t[s];)if(1===t.nodeType||c)if(i=(i=t[T]||(t[T]={}))[t.uniqueID]||(i[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[s]||t;else{if((o=i[l])&&o[0]===j&&o[1]===d)return r[2]=o[2];if((i[l]=r)[2]=a(t,e,n))return!0}return!1}}function bt(i){return 1<i.length?function(t,e,n){for(var o=i.length;o--;)if(!i[o](t,e,n))return!1;return!0}:i[0]}function xt(t,e,n,o,i){for(var r,a=[],s=0,u=t.length,l=null!=e;s<u;s++)!(r=t[s])||n&&!n(r,o,i)||(a.push(r),l&&e.push(s));return a}function kt(h,f,g,m,y,t){return m&&!m[T]&&(m=kt(m)),y&&!y[T]&&(y=kt(y,t)),_(function(t,e,n,o){var i,r,a,s=[],u=[],l=e.length,c=t||function(t,e,n){for(var o=0,i=e.length;o<i;o++)B(t,e[o],n);return n}(f||"*",n.nodeType?[n]:n,[]),d=!h||!t&&f?c:xt(c,s,h,n,o),p=g?y||(t?h:l||m)?[]:e:d;if(g&&g(d,p,n,o),m)for(i=xt(p,u),m(i,[],n,o),r=i.length;r--;)(a=i[r])&&(p[u[r]]=!(d[u[r]]=a));if(t){if(y||h){if(y){for(i=[],r=p.length;r--;)(a=p[r])&&i.push(d[r]=a);y(null,p=[],i,o)}for(r=p.length;r--;)(a=p[r])&&-1<(i=y?v(t,a):s[r])&&(t[i]=!(e[i]=a))}}else p=xt(p===e?p.splice(l,p.length):p),y?y(null,e,p,o):S.apply(e,p)})}function wt(m,y){function t(t,e,n,o,i){var r,a,s,u=0,l="0",c=t&&[],d=[],p=k,h=t||b&&x.find.TAG("*",i),f=j+=null==p?1:Math.random()||.1,g=h.length;for(i&&(k=e==C||e||i);l!==g&&null!=(r=h[l]);l++){if(b&&r){for(a=0,e||r.ownerDocument==C||(w(r),n=!D);s=m[a++];)if(s(r,e||C,n)){o.push(r);break}i&&(j=f)}v&&((r=!s&&r)&&u--,t&&c.push(r))}if(u+=l,v&&l!==u){for(a=0;s=y[a++];)s(c,d,e,n);if(t){if(0<u)for(;l--;)c[l]||d[l]||(d[l]=X.call(o));d=xt(d)}S.apply(o,d),i&&!t&&0<d.length&&1<u+y.length&&B.uniqueSort(o)}return i&&(j=f,k=p),c}var v=0<y.length,b=0<m.length;return v?_(t):t}return yt.prototype=x.filters=x.pseudos,x.setFilters=new yt,h=B.tokenize=function(t,e){var n,o,i,r,a,s,u,l=V[t+" "];if(l)return e?0:l.slice(0);for(a=t,s=[],u=x.preFilter;a;){for(r in n&&!(o=et.exec(a))||(o&&(a=a.slice(o[0].length)||a),s.push(i=[])),n=!1,(o=nt.exec(a))&&(n=o.shift(),i.push({value:n,type:o[0].replace(y," ")}),a=a.slice(n.length)),x.filter)!(o=b[r].exec(a))||u[r]&&!(o=u[r](o))||(n=o.shift(),i.push({value:n,type:r,matches:o}),a=a.slice(n.length));if(!n)break}return e?a.length:a?B.error(t):V(t,s).slice(0)},O=B.compile=function(t,e){var n,o=[],i=[],r=z[t+" "];if(!r){for(n=(e=e||h(t)).length;n--;)((r=function t(e){for(var o,n,i,r=e.length,a=x.relative[e[0].type],s=a||x.relative[" "],u=a?1:0,l=vt(function(t){return t===o},s,!0),c=vt(function(t){return-1<v(o,t)},s,!0),d=[function(t,e,n){return t=!a&&(n||e!==k)||((o=e).nodeType?l:c)(t,e,n),o=null,t}];u<r;u++)if(n=x.relative[e[u].type])d=[vt(bt(d),n)];else{if((n=x.filter[e[u].type].apply(null,e[u].matches))[T]){for(i=++u;i<r&&!x.relative[e[i].type];i++);return kt(1<u&&bt(d),1<u&&F(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(y,"$1"),n,u<i&&t(e.slice(u,i)),i<r&&t(e=e.slice(i)),i<r&&F(e))}d.push(n)}return bt(d)}(e[n]))[T]?o:i).push(r);(r=z(t,wt(i,o))).selector=t}return r},P=B.select=function(t,e,n,o){var i,r,a,s,u,l="function"==typeof t&&t,c=!o&&h(t=l.selector||t);if(n=n||[],1===c.length){if(2<(r=c[0]=c[0].slice(0)).length&&"ID"===(a=r[0]).type&&9===e.nodeType&&D&&x.relative[r[1].type]){if(!(e=(x.find.ID(a.matches[0].replace(A,d),e)||[])[0]))return n;l&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(i=b.needsContext.test(t)?0:r.length;i--&&(a=r[i],!x.relative[s=a.type]);)if((u=x.find[s])&&(o=u(a.matches[0].replace(A,d),ct.test(r[0].type)&&mt(e.parentNode)||e))){if(r.splice(i,1),t=o.length&&F(r))break;return S.apply(n,o),n}}return(l||O(t,c))(o,e,!D,n,!e||ct.test(t)&&mt(e.parentNode)||e),n},p.sortStable=T.split("").sort(U).join("")===T,p.detectDuplicates=!!l,w(),p.sortDetached=M(function(t){return 1&t.compareDocumentPosition(C.createElement("fieldset"))}),M(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ht("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),p.attributes&&M(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ht("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),M(function(t){return null==t.getAttribute("disabled")})||ht(J,function(t,e,n){if(!n)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),B}(k),K=(C.find=t,C.expr=t.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=t.uniqueSort,C.text=t.getText,C.isXMLDoc=t.isXML,C.contains=t.contains,C.escapeSelector=t.escape,C.expr.match.needsContext);function u(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var J=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function G(t,n,o){return v(n)?C.grep(t,function(t,e){return!!n.call(t,e,t)!==o}):n.nodeType?C.grep(t,function(t){return t===n!==o}):"string"!=typeof n?C.grep(t,function(t){return-1<O.call(n,t)!==o}):C.filter(n,t,o)}C.filter=function(t,e,n){var o=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===o.nodeType?C.find.matchesSelector(o,t)?[o]:[]:C.find.matches(t,C.grep(e,function(t){return 1===t.nodeType}))},C.fn.extend({find:function(t){var e,n,o=this.length,i=this;if("string"!=typeof t)return this.pushStack(C(t).filter(function(){for(e=0;e<o;e++)if(C.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<o;e++)C.find(t,i[e],n);return 1<o?C.uniqueSort(n):n},filter:function(t){return this.pushStack(G(this,t||[],!1))},not:function(t){return this.pushStack(G(this,t||[],!0))},is:function(t){return!!G(this,"string"==typeof t&&K.test(t)?C(t):t||[],!1).length}});var Q,tt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,et=((C.fn.init=function(t,e,n){if(!t)return this;if(n=n||Q,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(C):C.makeArray(t,this);if(!(o="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:tt.exec(t))||!o[1]&&e)return(!e||e.jquery?e||n:this.constructor(e)).find(t);if(o[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(o[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),J.test(o[1])&&C.isPlainObject(e))for(var o in e)v(this[o])?this[o](e[o]):this.attr(o,e[o]);return this}return(n=w.getElementById(o[2]))&&(this[0]=n,this.length=1),this}).prototype=C.fn,Q=C(w),/^(?:parents|prev(?:Until|All))/),nt={children:!0,contents:!0,next:!0,prev:!0};function ot(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.fn.extend({has:function(t){var e=C(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(C.contains(this,e[t]))return!0})},closest:function(t,e){var n,o=0,i=this.length,r=[],a="string"!=typeof t&&C(t);if(!K.test(t))for(;o<i;o++)for(n=this[o];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&C.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(1<r.length?C.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?O.call(C(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(C.uniqueSort(C.merge(this.get(),C(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),C.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return o(t,"parentNode")},parentsUntil:function(t,e,n){return o(t,"parentNode",n)},next:function(t){return ot(t,"nextSibling")},prev:function(t){return ot(t,"previousSibling")},nextAll:function(t){return o(t,"nextSibling")},prevAll:function(t){return o(t,"previousSibling")},nextUntil:function(t,e,n){return o(t,"nextSibling",n)},prevUntil:function(t,e,n){return o(t,"previousSibling",n)},siblings:function(t){return Z((t.parentNode||{}).firstChild,t)},children:function(t){return Z(t.firstChild)},contents:function(t){return null!=t.contentDocument&&q(t.contentDocument)?t.contentDocument:(u(t,"template")&&(t=t.content||t),C.merge([],t.childNodes))}},function(o,i){C.fn[o]=function(t,e){var n=C.map(this,i,t);return(e="Until"!==o.slice(-5)?t:e)&&"string"==typeof e&&(n=C.filter(e,n)),1<this.length&&(nt[o]||C.uniqueSort(n),et.test(o)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function c(t){return t}function it(t){throw t}function rt(t,e,n,o){var i;try{t&&v(i=t.promise)?i.call(t).done(e).fail(n):t&&v(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(o))}catch(t){n.apply(void 0,[t])}}C.Callbacks=function(o){var t,n;o="string"==typeof o?(t=o,n={},C.each(t.match(D)||[],function(t,e){n[e]=!0}),n):C.extend({},o);function i(){for(s=s||o.once,a=r=!0;l.length;c=-1)for(e=l.shift();++c<u.length;)!1===u[c].apply(e[0],e[1])&&o.stopOnFalse&&(c=u.length,e=!1);o.memory||(e=!1),r=!1,s&&(u=e?[]:"")}var r,e,a,s,u=[],l=[],c=-1,d={add:function(){return u&&(e&&!r&&(c=u.length-1,l.push(e)),function n(t){C.each(t,function(t,e){v(e)?o.unique&&d.has(e)||u.push(e):e&&e.length&&"string"!==f(e)&&n(e)})}(arguments),e&&!r&&i()),this},remove:function(){return C.each(arguments,function(t,e){for(var n;-1<(n=C.inArray(e,u,n));)u.splice(n,1),n<=c&&c--}),this},has:function(t){return t?-1<C.inArray(t,u):0<u.length},empty:function(){return u=u&&[],this},disable:function(){return s=l=[],u=e="",this},disabled:function(){return!u},lock:function(){return s=l=[],e||r||(u=e=""),this},locked:function(){return!!s},fireWith:function(t,e){return s||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),r||i()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},C.extend({Deferred:function(t){var r=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return a.then(null,t)},pipe:function(){var i=arguments;return C.Deferred(function(o){C.each(r,function(t,e){var n=v(i[e[4]])&&i[e[4]];s[e[1]](function(){var t=n&&n.apply(this,arguments);t&&v(t.promise)?t.promise().progress(o.notify).done(o.resolve).fail(o.reject):o[e[0]+"With"](this,n?[t]:arguments)})}),i=null}).promise()},then:function(e,n,o){var u=0;function l(i,r,a,s){return function(){function t(){var t,e;if(!(i<u)){if((t=a.apply(n,o))===r.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,v(e)?s?e.call(t,l(u,r,c,s),l(u,r,it,s)):(u++,e.call(t,l(u,r,c,s),l(u,r,it,s),l(u,r,c,r.notifyWith))):(a!==c&&(n=void 0,o=[t]),(s||r.resolveWith)(n,o))}}var n=this,o=arguments,e=s?t:function(){try{t()}catch(t){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(t,e.stackTrace),u<=i+1&&(a!==it&&(n=void 0,o=[t]),r.rejectWith(n,o))}};i?e():(C.Deferred.getStackHook&&(e.stackTrace=C.Deferred.getStackHook()),k.setTimeout(e))}}return C.Deferred(function(t){r[0][3].add(l(0,t,v(o)?o:c,t.notifyWith)),r[1][3].add(l(0,t,v(e)?e:c)),r[2][3].add(l(0,t,v(n)?n:it))}).promise()},promise:function(t){return null!=t?C.extend(t,a):a}},s={};return C.each(r,function(t,e){var n=e[2],o=e[5];a[e[1]]=n.add,o&&n.add(function(){i=o},r[3-t][2].disable,r[3-t][3].disable,r[0][2].lock,r[0][3].lock),n.add(e[3].fire),s[e[0]]=function(){return s[e[0]+"With"](this===s?void 0:this,arguments),this},s[e[0]+"With"]=n.fireWith}),a.promise(s),t&&t.call(s,s),s},when:function(t){function e(e){return function(t){i[e]=this,r[e]=1<arguments.length?s.call(arguments):t,--n||a.resolveWith(i,r)}}var n=arguments.length,o=n,i=Array(o),r=s.call(arguments),a=C.Deferred();if(n<=1&&(rt(t,a.done(e(o)).resolve,a.reject,!n),"pending"===a.state()||v(r[o]&&r[o].then)))return a.then();for(;o--;)rt(r[o],e(o),a.reject);return a.promise()}});var at=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,st=(C.Deferred.exceptionHook=function(t,e){k.console&&k.console.warn&&t&&at.test(t.name)&&k.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},C.readyException=function(t){k.setTimeout(function(){throw t})},C.Deferred());function ut(){w.removeEventListener("DOMContentLoaded",ut),k.removeEventListener("load",ut),C.ready()}C.fn.ready=function(t){return st.then(t).catch(function(t){C.readyException(t)}),this},C.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--C.readyWait:C.isReady)||(C.isReady=!0)!==t&&0<--C.readyWait||st.resolveWith(w,[C])}}),C.ready.then=st.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?k.setTimeout(C.ready):(w.addEventListener("DOMContentLoaded",ut),k.addEventListener("load",ut));function d(t,e,n,o,i,r,a){var s=0,u=t.length,l=null==n;if("object"===f(n))for(s in i=!0,n)d(t,e,s,n[s],!0,r,a);else if(void 0!==o&&(i=!0,v(o)||(a=!0),e=l?a?(e.call(t,o),null):(l=e,function(t,e,n){return l.call(C(t),n)}):e))for(;s<u;s++)e(t[s],n,a?o:o.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):r}var lt=/^-ms-/,ct=/-([a-z])/g;function dt(t,e){return e.toUpperCase()}function b(t){return t.replace(lt,"ms-").replace(ct,dt)}function y(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function pt(){this.expando=C.expando+pt.uid++}pt.uid=1,pt.prototype={cache:function(t){var e=t[this.expando];return e||(e={},y(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var o,i=this.cache(t);if("string"==typeof e)i[b(e)]=n;else for(o in e)i[b(o)]=e[o];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][b(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,o=t[this.expando];if(void 0!==o){if(void 0!==e){n=(e=Array.isArray(e)?e.map(b):(e=b(e))in o?[e]:e.match(D)||[]).length;for(;n--;)delete o[e[n]]}void 0!==e&&!C.isEmptyObject(o)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var x=new pt,l=new pt,ht=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ft=/[A-Z]/g;function gt(t,e,n){var o,i;if(void 0===n&&1===t.nodeType)if(o="data-"+e.replace(ft,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(o))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:ht.test(i)?JSON.parse(i):i)}catch(t){}l.set(t,e,n)}else n=void 0;return n}C.extend({hasData:function(t){return l.hasData(t)||x.hasData(t)},data:function(t,e,n){return l.access(t,e,n)},removeData:function(t,e){l.remove(t,e)},_data:function(t,e,n){return x.access(t,e,n)},_removeData:function(t,e){x.remove(t,e)}}),C.fn.extend({data:function(n,t){var e,o,i,r=this[0],a=r&&r.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){l.set(this,n)}):d(this,function(t){var e;if(r&&void 0===t)return void 0!==(e=l.get(r,n))||void 0!==(e=gt(r,n))?e:void 0;this.each(function(){l.set(this,n,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(i=l.get(r),1===r.nodeType&&!x.get(r,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&0===(o=a[e].name).indexOf("data-")&&(o=b(o.slice(5)),gt(r,o,i[o]));x.set(r,"hasDataAttrs",!0)}return i},removeData:function(t){return this.each(function(){l.remove(this,t)})}}),C.extend({queue:function(t,e,n){var o;if(t)return o=x.get(t,e=(e||"fx")+"queue"),n&&(!o||Array.isArray(n)?o=x.access(t,e,C.makeArray(n)):o.push(n)),o||[]},dequeue:function(t,e){e=e||"fx";var n=C.queue(t,e),o=n.length,i=n.shift(),r=C._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),o--),i&&("fx"===e&&n.unshift("inprogress"),delete r.stop,i.call(t,function(){C.dequeue(t,e)},r)),!o&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return x.get(t,n)||x.access(t,n,{empty:C.Callbacks("once memory").add(function(){x.remove(t,[e+"queue",n])})})}}),C.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?C.queue(this[0],e):void 0===n?this:this.each(function(){var t=C.queue(this,e,n);C._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&C.dequeue(this,e)})},dequeue:function(t){return this.each(function(){C.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--i||r.resolveWith(a,[a])}var o,i=1,r=C.Deferred(),a=this,s=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(o=x.get(a[s],t+"queueHooks"))&&o.empty&&(i++,o.empty.add(n));return n(),r.promise(e)}});function mt(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&j(t)&&"none"===C.css(t,"display")}var t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,yt=new RegExp("^(?:([+-])=|)("+t+")([a-z%]*)$","i"),p=["Top","Right","Bottom","Left"],T=w.documentElement,j=function(t){return C.contains(t.ownerDocument,t)},vt={composed:!0};T.getRootNode&&(j=function(t){return C.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});function bt(t,e,n,o){var i,r,a=20,s=o?function(){return o.cur()}:function(){return C.css(t,e,"")},u=s(),l=n&&n[3]||(C.cssNumber[e]?"":"px"),c=t.nodeType&&(C.cssNumber[e]||"px"!==l&&+u)&&yt.exec(C.css(t,e));if(c&&c[3]!==l){for(l=l||c[3],c=+(u/=2)||1;a--;)C.style(t,e,c+l),(1-r)*(1-(r=s()/u||.5))<=0&&(a=0),c/=r;C.style(t,e,(c*=2)+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],o&&(o.unit=l,o.start=c,o.end=i)),i}var xt={};function S(t,e){for(var n,o,i,r,a,s=[],u=0,l=t.length;u<l;u++)(o=t[u]).style&&(n=o.style.display,e?("none"===n&&(s[u]=x.get(o,"display")||null,s[u]||(o.style.display="")),""===o.style.display&&mt(o)&&(s[u]=(a=r=void 0,r=(i=o).ownerDocument,i=i.nodeName,(a=xt[i])||(r=r.body.appendChild(r.createElement(i)),a=C.css(r,"display"),r.parentNode.removeChild(r),xt[i]=a="none"===a?"block":a)))):"none"!==n&&(s[u]="none",x.set(o,"display",n)));for(u=0;u<l;u++)null!=s[u]&&(t[u].style.display=s[u]);return t}C.fn.extend({show:function(){return S(this,!0)},hide:function(){return S(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){mt(this)?C(this).show():C(this).hide()})}});var kt=/^(?:checkbox|radio)$/i,wt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ct=/^$|^module$|\/(?:java|ecma)script/i,E=(_=w.createDocumentFragment().appendChild(w.createElement("div")),(a=w.createElement("input")).setAttribute("type","radio"),a.setAttribute("checked","checked"),a.setAttribute("name","t"),_.appendChild(a),m.checkClone=_.cloneNode(!0).cloneNode(!0).lastChild.checked,_.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!_.cloneNode(!0).lastChild.defaultValue,_.innerHTML="<option></option>",m.option=!!_.lastChild,{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 A(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&u(t,e)?C.merge([t],n):n}function Dt(t,e){for(var n=0,o=t.length;n<o;n++)x.set(t[n],"globalEval",!e||x.get(e[n],"globalEval"))}E.tbody=E.tfoot=E.colgroup=E.caption=E.thead,E.th=E.td,m.option||(E.optgroup=E.option=[1,"<select multiple='multiple'>","</select>"]);var Tt=/<|&#?\w+;/;function jt(t,e,n,o,i){for(var r,a,s,u,l,c=e.createDocumentFragment(),d=[],p=0,h=t.length;p<h;p++)if((r=t[p])||0===r)if("object"===f(r))C.merge(d,r.nodeType?[r]:r);else if(Tt.test(r)){for(a=a||c.appendChild(e.createElement("div")),s=(wt.exec(r)||["",""])[1].toLowerCase(),s=E[s]||E._default,a.innerHTML=s[1]+C.htmlPrefilter(r)+s[2],l=s[0];l--;)a=a.lastChild;C.merge(d,a.childNodes),(a=c.firstChild).textContent=""}else d.push(e.createTextNode(r));for(c.textContent="",p=0;r=d[p++];)if(o&&-1<C.inArray(r,o))i&&i.push(r);else if(u=j(r),a=A(c.appendChild(r),"script"),u&&Dt(a),n)for(l=0;r=a[l++];)Ct.test(r.type||"")&&n.push(r);return c}var St=/^([^.]*)(?:\.(.+)|)/;function n(){return!0}function h(){return!1}function Et(t,e){return t===function(){try{return w.activeElement}catch(t){}}()==("focus"===e)}function At(t,e,n,o,i,r){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(o=o||n,n=void 0),e)At(t,s,n,o,e[s],r);return t}if(null==o&&null==i?(i=n,o=n=void 0):null==i&&("string"==typeof n?(i=o,o=void 0):(i=o,o=n,n=void 0)),!1===i)i=h;else if(!i)return t;return 1===r&&(a=i,(i=function(t){return C().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=C.guid++)),t.each(function(){C.event.add(this,e,i,o,n)})}function Bt(t,i,r){r?(x.set(t,i,!1),C.event.add(t,i,{namespace:!1,handler:function(t){var e,n,o=x.get(this,i);if(1&t.isTrigger&&this[i]){if(o.length)(C.event.special[i]||{}).delegateType&&t.stopPropagation();else if(o=s.call(arguments),x.set(this,i,o),e=r(this,i),this[i](),o!==(n=x.get(this,i))||e?x.set(this,i,!1):n={},o!==n)return t.stopImmediatePropagation(),t.preventDefault(),n&&n.value}else o.length&&(x.set(this,i,{value:C.event.trigger(C.extend(o[0],C.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===x.get(t,i)&&C.event.add(t,i,n)}C.event={global:{},add:function(e,t,n,o,i){var r,a,s,u,l,c,d,p,h,f=x.get(e);if(y(e))for(n.handler&&(n=(r=n).handler,i=r.selector),i&&C.find.matchesSelector(T,i),n.guid||(n.guid=C.guid++),(s=f.events)||(s=f.events=Object.create(null)),(a=f.handle)||(a=f.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(D)||[""]).length;u--;)d=h=(p=St.exec(t[u])||[])[1],p=(p[2]||"").split(".").sort(),d&&(l=C.event.special[d]||{},d=(i?l.delegateType:l.bindType)||d,l=C.event.special[d]||{},h=C.extend({type:d,origType:h,data:o,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:p.join(".")},r),(c=s[d])||((c=s[d]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,o,p,a)||e.addEventListener&&e.addEventListener(d,a)),l.add&&(l.add.call(e,h),h.handler.guid||(h.handler.guid=n.guid)),i?c.splice(c.delegateCount++,0,h):c.push(h),C.event.global[d]=!0)},remove:function(t,e,n,o,i){var r,a,s,u,l,c,d,p,h,f,g,m=x.hasData(t)&&x.get(t);if(m&&(u=m.events)){for(l=(e=(e||"").match(D)||[""]).length;l--;)if(h=g=(s=St.exec(e[l])||[])[1],f=(s[2]||"").split(".").sort(),h){for(d=C.event.special[h]||{},p=u[h=(o?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=p.length;r--;)c=p[r],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||o&&o!==c.selector&&("**"!==o||!c.selector)||(p.splice(r,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(t,c));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(t,f,m.handle)||C.removeEvent(t,h,m.handle),delete u[h])}else for(h in u)C.event.remove(t,h+e[l],n,o,!0);C.isEmptyObject(u)&&x.remove(t,"handle events")}},dispatch:function(t){var e,n,o,i,r,a=new Array(arguments.length),s=C.event.fix(t),t=(x.get(this,"events")||Object.create(null))[s.type]||[],u=C.event.special[s.type]||{};for(a[0]=s,e=1;e<arguments.length;e++)a[e]=arguments[e];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(r=C.event.handlers.call(this,s,t),e=0;(o=r[e++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==i.namespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(i=((C.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,a))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,o,i,r,a,s=[],u=e.delegateCount,l=t.target;if(u&&l.nodeType&&!("click"===t.type&&1<=t.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(r=[],a={},n=0;n<u;n++)void 0===a[i=(o=e[n]).selector+" "]&&(a[i]=o.needsContext?-1<C(i,this).index(l):C.find(i,this,null,[l]).length),a[i]&&r.push(o);r.length&&s.push({elem:l,handlers:r})}return l=this,u<e.length&&s.push({elem:l,handlers:e.slice(u)}),s},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(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[C.expando]?t:new C.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){t=this||t;return kt.test(t.type)&&t.click&&u(t,"input")&&Bt(t,"click",n),!1},trigger:function(t){t=this||t;return kt.test(t.type)&&t.click&&u(t,"input")&&Bt(t,"click"),!0},_default:function(t){t=t.target;return kt.test(t.type)&&t.click&&u(t,"input")&&x.get(t,"click")||u(t,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},C.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},C.Event=function(t,e){if(!(this instanceof C.Event))return new C.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?n:h,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&&C.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=n,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=n,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=n,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},C.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},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},function(t,e){C.event.special[t]={setup:function(){return Bt(this,t,Et),!1},trigger:function(){return Bt(this,t),!0},_default:function(){return!0},delegateType:e}}),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,i){C.event.special[t]={delegateType:i,bindType:i,handle:function(t){var e,n=t.relatedTarget,o=t.handleObj;return n&&(n===this||C.contains(this,n))||(t.type=o.origType,e=o.handler.apply(this,arguments),t.type=i),e}}}),C.fn.extend({on:function(t,e,n,o){return At(this,t,e,n,o)},one:function(t,e,n,o){return At(this,t,e,n,o,1)},off:function(t,e,n){var o,i;if(t&&t.preventDefault&&t.handleObj)return o=t.handleObj,C(t.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=h),this.each(function(){C.event.remove(this,t,n,e)});for(i in t)this.off(i,e,t[i]);return this}});var Lt=/<script|<style|<link/i,_t=/checked\s*(?:[^=]|=\s*.checked.)/i,Mt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Nt(t,e){return u(t,"table")&&u(11!==e.nodeType?e:e.firstChild,"tr")&&C(t).children("tbody")[0]||t}function Ft(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ht(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function qt(t,e){var n,o,i,r;if(1===e.nodeType){if(x.hasData(t)&&(r=x.get(t).events))for(i in x.remove(e,"handle events"),r)for(n=0,o=r[i].length;n<o;n++)C.event.add(e,i,r[i][n]);l.hasData(t)&&(t=l.access(t),t=C.extend({},t),l.set(e,t))}}function B(n,o,i,r){o=$(o);var t,e,a,s,u,l,c=0,d=n.length,p=d-1,h=o[0],f=v(h);if(f||1<d&&"string"==typeof h&&!m.checkClone&&_t.test(h))return n.each(function(t){var e=n.eq(t);f&&(o[0]=h.call(this,t,e.html())),B(e,o,i,r)});if(d&&(e=(t=jt(o,n[0].ownerDocument,!1,n,r)).firstChild,1===t.childNodes.length&&(t=e),e||r)){for(s=(a=C.map(A(t,"script"),Ft)).length;c<d;c++)u=t,c!==p&&(u=C.clone(u,!0,!0),s&&C.merge(a,A(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,C.map(a,Ht),c=0;c<s;c++)u=a[c],Ct.test(u.type||"")&&!x.access(u,"globalEval")&&C.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?C._evalUrl&&!u.noModule&&C._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):Y(u.textContent.replace(Mt,""),u,l))}return n}function $t(t,e,n){for(var o,i=e?C.filter(e,t):t,r=0;null!=(o=i[r]);r++)n||1!==o.nodeType||C.cleanData(A(o)),o.parentNode&&(n&&j(o)&&Dt(A(o,"script")),o.parentNode.removeChild(o));return t}C.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var o,i,r,a,s,u,l,c=t.cloneNode(!0),d=j(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(a=A(c),o=0,i=(r=A(t)).length;o<i;o++)s=r[o],u=a[o],l=void 0,"input"===(l=u.nodeName.toLowerCase())&&kt.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(e)if(n)for(r=r||A(t),a=a||A(c),o=0,i=r.length;o<i;o++)qt(r[o],a[o]);else qt(t,c);return 0<(a=A(c,"script")).length&&Dt(a,!d&&A(t,"script")),c},cleanData:function(t){for(var e,n,o,i=C.event.special,r=0;void 0!==(n=t[r]);r++)if(y(n)){if(e=n[x.expando]){if(e.events)for(o in e.events)i[o]?C.event.remove(n,o):C.removeEvent(n,o,e.handle);n[x.expando]=void 0}n[l.expando]&&(n[l.expando]=void 0)}}}),C.fn.extend({detach:function(t){return $t(this,t,!0)},remove:function(t){return $t(this,t)},text:function(t){return d(this,function(t){return void 0===t?C.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 B(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Nt(this,t).appendChild(t)})},prepend:function(){return B(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Nt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return B(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return B(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&&(C.cleanData(A(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return d(this,function(t){var e=this[0]||{},n=0,o=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Lt.test(t)&&!E[(wt.exec(t)||["",""])[1].toLowerCase()]){t=C.htmlPrefilter(t);try{for(;n<o;n++)1===(e=this[n]||{}).nodeType&&(C.cleanData(A(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return B(this,arguments,function(t){var e=this.parentNode;C.inArray(this,n)<0&&(C.cleanData(A(this)),e&&e.replaceChild(t,this))},n)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){C.fn[t]=function(t){for(var e,n=[],o=C(t),i=o.length-1,r=0;r<=i;r++)e=r===i?this:this.clone(!0),C(o[r])[a](e),R.apply(n,e.get());return this.pushStack(n)}});function Rt(t){var e=t.ownerDocument.defaultView;return(e=e&&e.opener?e:k).getComputedStyle(t)}function Ot(t,e,n){var o,i={};for(o in e)i[o]=t.style[o],t.style[o]=e[o];for(o in n=n.call(t),e)t.style[o]=i[o];return n}var Pt,It,Wt,Vt,zt,Ut,Yt,i,Xt=new RegExp("^("+t+")(?!px)[a-z%]+$","i"),Zt=new RegExp(p.join("|"),"i");function Kt(){var t;i&&(Yt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",i.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",T.appendChild(Yt).appendChild(i),t=k.getComputedStyle(i),Pt="1%"!==t.top,Ut=12===Jt(t.marginLeft),i.style.right="60%",Vt=36===Jt(t.right),It=36===Jt(t.width),i.style.position="absolute",Wt=12===Jt(i.offsetWidth/3),T.removeChild(Yt),i=null)}function Jt(t){return Math.round(parseFloat(t))}function Gt(t,e,n){var o,i,r=t.style;return(n=n||Rt(t))&&(""!==(i=n.getPropertyValue(e)||n[e])||j(t)||(i=C.style(t,e)),!m.pixelBoxStyles()&&Xt.test(i)&&Zt.test(e)&&(t=r.width,e=r.minWidth,o=r.maxWidth,r.minWidth=r.maxWidth=r.width=i,i=n.width,r.width=t,r.minWidth=e,r.maxWidth=o)),void 0!==i?i+"":i}function Qt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}Yt=w.createElement("div"),(i=w.createElement("div")).style&&(i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===i.style.backgroundClip,C.extend(m,{boxSizingReliable:function(){return Kt(),It},pixelBoxStyles:function(){return Kt(),Vt},pixelPosition:function(){return Kt(),Pt},reliableMarginLeft:function(){return Kt(),Ut},scrollboxSize:function(){return Kt(),Wt},reliableTrDimensions:function(){var t,e,n;return null==zt&&(t=w.createElement("table"),e=w.createElement("tr"),n=w.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",T.appendChild(t).appendChild(e).appendChild(n),n=k.getComputedStyle(e),zt=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===e.offsetHeight,T.removeChild(t)),zt}}));var te=["Webkit","Moz","ms"],ee=w.createElement("div").style,ne={};function oe(t){var e=C.cssProps[t]||ne[t];return e||(t in ee?t:ne[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=te.length;n--;)if((t=te[n]+e)in ee)return t}(t)||t)}var ie=/^(none|table(?!-c[ea]).+)/,re=/^--/,ae={position:"absolute",visibility:"hidden",display:"block"},se={letterSpacing:"0",fontWeight:"400"};function ue(t,e,n){var o=yt.exec(e);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):e}function le(t,e,n,o,i,r){var a="width"===e?1:0,s=0,u=0;if(n===(o?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=C.css(t,n+p[a],!0,i)),o?("content"===n&&(u-=C.css(t,"padding"+p[a],!0,i)),"margin"!==n&&(u-=C.css(t,"border"+p[a]+"Width",!0,i))):(u+=C.css(t,"padding"+p[a],!0,i),"padding"!==n?u+=C.css(t,"border"+p[a]+"Width",!0,i):s+=C.css(t,"border"+p[a]+"Width",!0,i));return!o&&0<=r&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-u-s-.5))||0),u}function ce(t,e,n){var o=Rt(t),i=(!m.boxSizingReliable()||n)&&"border-box"===C.css(t,"boxSizing",!1,o),r=i,a=Gt(t,e,o),s="offset"+e[0].toUpperCase()+e.slice(1);if(Xt.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&u(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===C.css(t,"display",!1,o))&&t.getClientRects().length&&(i="border-box"===C.css(t,"boxSizing",!1,o),(r=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+le(t,e,n||(i?"border":"content"),r,o,a)+"px"}function r(t,e,n,o,i){return new r.prototype.init(t,e,n,o,i)}C.extend({cssHooks:{opacity:{get:function(t,e){if(e)return""===(e=Gt(t,"opacity"))?"1":e}}},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,o){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,r,a,s=b(e),u=re.test(e),l=t.style;if(u||(e=oe(s)),a=C.cssHooks[e]||C.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,o))?i:l[e];"string"===(r=typeof n)&&(i=yt.exec(n))&&i[1]&&(n=bt(t,e,i),r="number"),null!=n&&n==n&&("number"!==r||u||(n+=i&&i[3]||(C.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,o))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,o){var i,r=b(e);return re.test(e)||(e=oe(r)),"normal"===(i=void 0===(i=(r=C.cssHooks[e]||C.cssHooks[r])&&"get"in r?r.get(t,!0,n):i)?Gt(t,e,o):i)&&e in se&&(i=se[e]),""===n||n?(r=parseFloat(i),!0===n||isFinite(r)?r||0:i):i}}),C.each(["height","width"],function(t,a){C.cssHooks[a]={get:function(t,e,n){if(e)return!ie.test(C.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ce(t,a,n):Ot(t,ae,function(){return ce(t,a,n)})},set:function(t,e,n){var o=Rt(t),i=!m.scrollboxSize()&&"absolute"===o.position,r=(i||n)&&"border-box"===C.css(t,"boxSizing",!1,o),n=n?le(t,a,n,r,o):0;return r&&i&&(n-=Math.ceil(t["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(o[a])-le(t,a,"border",!1,o)-.5)),n&&(r=yt.exec(e))&&"px"!==(r[3]||"px")&&(t.style[a]=e,e=C.css(t,a)),ue(0,e,n)}}}),C.cssHooks.marginLeft=Qt(m.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Gt(t,"marginLeft"))||t.getBoundingClientRect().left-Ot(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(i,r){C.cssHooks[i+r]={expand:function(t){for(var e=0,n={},o="string"==typeof t?t.split(" "):[t];e<4;e++)n[i+p[e]+r]=o[e]||o[e-2]||o[0];return n}},"margin"!==i&&(C.cssHooks[i+r].set=ue)}),C.fn.extend({css:function(t,e){return d(this,function(t,e,n){var o,i,r={},a=0;if(Array.isArray(e)){for(o=Rt(t),i=e.length;a<i;a++)r[e[a]]=C.css(t,e[a],!1,o);return r}return void 0!==n?C.style(t,e,n):C.css(t,e)},t,e,1<arguments.length)}}),((C.Tween=r).prototype={constructor:r,init:function(t,e,n,o,i,r){this.elem=t,this.prop=n,this.easing=i||C.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=o,this.unit=r||(C.cssNumber[n]?"":"px")},cur:function(){var t=r.propHooks[this.prop];return(t&&t.get?t:r.propHooks._default).get(this)},run:function(t){var e,n=r.propHooks[this.prop];return this.options.duration?this.pos=e=C.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:r.propHooks._default).set(this),this}}).init.prototype=r.prototype,(r.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=C.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){C.fx.step[t.prop]?C.fx.step[t.prop](t):1!==t.elem.nodeType||!C.cssHooks[t.prop]&&null==t.elem.style[oe(t.prop)]?t.elem[t.prop]=t.now:C.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=r.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},C.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},C.fx=r.prototype.init,C.fx.step={};var L,de,a,_,pe=/^(?:toggle|show|hide)$/,he=/queueHooks$/;function fe(){de&&(!1===w.hidden&&k.requestAnimationFrame?k.requestAnimationFrame(fe):k.setTimeout(fe,C.fx.interval),C.fx.tick())}function ge(){return k.setTimeout(function(){L=void 0}),L=Date.now()}function me(t,e){var n,o=0,i={height:t};for(e=e?1:0;o<4;o+=2-e)i["margin"+(n=p[o])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function ye(t,e,n){for(var o,i=(M.tweeners[e]||[]).concat(M.tweeners["*"]),r=0,a=i.length;r<a;r++)if(o=i[r].call(n,e,t))return o}function M(i,t,e){var n,r,o,a,s,u,l,c=0,d=M.prefilters.length,p=C.Deferred().always(function(){delete h.elem}),h=function(){if(r)return!1;for(var t=L||ge(),t=Math.max(0,f.startTime+f.duration-t),e=1-(t/f.duration||0),n=0,o=f.tweens.length;n<o;n++)f.tweens[n].run(e);return p.notifyWith(i,[f,e,t]),e<1&&o?t:(o||p.notifyWith(i,[f,1,0]),p.resolveWith(i,[f]),!1)},f=p.promise({elem:i,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},e),originalProperties:t,originalOptions:e,startTime:L||ge(),duration:e.duration,tweens:[],createTween:function(t,e){e=C.Tween(i,f.opts,t,e,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(e),e},stop:function(t){var e=0,n=t?f.tweens.length:0;if(r)return this;for(r=!0;e<n;e++)f.tweens[e].run(1);return t?(p.notifyWith(i,[f,1,0]),p.resolveWith(i,[f,t])):p.rejectWith(i,[f,t]),this}}),g=f.props,m=g,y=f.opts.specialEasing;for(o in m)if(s=y[a=b(o)],u=m[o],Array.isArray(u)&&(s=u[1],u=m[o]=u[0]),o!==a&&(m[a]=u,delete m[o]),(l=C.cssHooks[a])&&"expand"in l)for(o in u=l.expand(u),delete m[a],u)o in m||(m[o]=u[o],y[o]=s);else y[a]=s;for(;c<d;c++)if(n=M.prefilters[c].call(f,i,g,f.opts))return v(n.stop)&&(C._queueHooks(f.elem,f.opts.queue).stop=n.stop.bind(n)),n;return C.map(g,ye,f),v(f.opts.start)&&f.opts.start.call(i,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),C.fx.timer(C.extend(h,{elem:i,anim:f,queue:f.opts.queue})),f}C.Animation=C.extend(M,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return bt(n.elem,t,yt.exec(e),n),n}]},tweener:function(t,e){for(var n,o=0,i=(t=v(t)?(e=t,["*"]):t.match(D)).length;o<i;o++)n=t[o],M.tweeners[n]=M.tweeners[n]||[],M.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var o,i,r,a,s,u,l,c="width"in e||"height"in e,d=this,p={},h=t.style,f=t.nodeType&&mt(t),g=x.get(t,"fxshow");for(o in n.queue||(null==(a=C._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,C.queue(t,"fx").length||a.empty.fire()})})),e)if(i=e[o],pe.test(i)){if(delete e[o],r=r||"toggle"===i,i===(f?"hide":"show")){if("show"!==i||!g||void 0===g[o])continue;f=!0}p[o]=g&&g[o]||C.style(t,o)}if((u=!C.isEmptyObject(e))||!C.isEmptyObject(p))for(o in c&&1===t.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=g&&g.display)&&(l=x.get(t,"display")),"none"===(c=C.css(t,"display"))&&(l?c=l:(S([t],!0),l=t.style.display||l,c=C.css(t,"display"),S([t]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===C.css(t,"float")&&(u||(d.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,p)u||(g?"hidden"in g&&(f=g.hidden):g=x.access(t,"fxshow",{display:l}),r&&(g.hidden=!f),f&&S([t],!0),d.done(function(){for(o in f||S([t]),x.remove(t,"fxshow"),p)C.style(t,o,p[o])})),u=ye(f?g[o]:0,o,d),o in g||(g[o]=u.start,f&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?M.prefilters.unshift(t):M.prefilters.push(t)}}),C.speed=function(t,e,n){var o=t&&"object"==typeof t?C.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return C.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in C.fx.speeds?o.duration=C.fx.speeds[o.duration]:o.duration=C.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){v(o.old)&&o.old.call(this),o.queue&&C.dequeue(this,o.queue)},o},C.fn.extend({fadeTo:function(t,e,n,o){return this.filter(mt).css("opacity",0).show().end().animate({opacity:e},t,n,o)},animate:function(e,t,n,o){function i(){var t=M(this,C.extend({},e),a);(r||x.get(this,"finish"))&&t.stop(!0)}var r=C.isEmptyObject(e),a=C.speed(t,n,o);return i.finish=i,r||!1===a.queue?this.each(i):this.queue(a.queue,i)},stop:function(i,t,r){function a(t){var e=t.stop;delete t.stop,e(r)}return"string"!=typeof i&&(r=t,t=i,i=void 0),t&&this.queue(i||"fx",[]),this.each(function(){var t=!0,e=null!=i&&i+"queueHooks",n=C.timers,o=x.get(this);if(e)o[e]&&o[e].stop&&a(o[e]);else for(e in o)o[e]&&o[e].stop&&he.test(e)&&a(o[e]);for(e=n.length;e--;)n[e].elem!==this||null!=i&&n[e].queue!==i||(n[e].anim.stop(r),t=!1,n.splice(e,1));!t&&r||C.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=x.get(this),n=e[a+"queue"],o=e[a+"queueHooks"],i=C.timers,r=n?n.length:0;for(e.finish=!0,C.queue(this,a,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===a&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<r;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),C.each(["toggle","show","hide"],function(t,o){var i=C.fn[o];C.fn[o]=function(t,e,n){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(me(o,!0),t,e,n)}}),C.each({slideDown:me("show"),slideUp:me("hide"),slideToggle:me("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,o){C.fn[t]=function(t,e,n){return this.animate(o,t,e,n)}}),C.timers=[],C.fx.tick=function(){var t,e=0,n=C.timers;for(L=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||C.fx.stop(),L=void 0},C.fx.timer=function(t){C.timers.push(t),C.fx.start()},C.fx.interval=13,C.fx.start=function(){de||(de=!0,fe())},C.fx.stop=function(){de=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(o,t){return o=C.fx&&C.fx.speeds[o]||o,this.queue(t=t||"fx",function(t,e){var n=k.setTimeout(t,o);e.stop=function(){k.clearTimeout(n)}})},a=w.createElement("input"),_=w.createElement("select").appendChild(w.createElement("option")),a.type="checkbox",m.checkOn=""!==a.value,m.optSelected=_.selected,(a=w.createElement("input")).value="t",a.type="radio",m.radioValue="t"===a.value;var ve,be=C.expr.attrHandle,xe=(C.fn.extend({attr:function(t,e){return d(this,C.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){C.removeAttr(this,t)})}}),C.extend({attr:function(t,e,n){var o,i,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?C.prop(t,e,n):(1===r&&C.isXMLDoc(t)||(i=C.attrHooks[e.toLowerCase()]||(C.expr.match.bool.test(e)?ve:void 0)),void 0!==n?null===n?void C.removeAttr(t,e):i&&"set"in i&&void 0!==(o=i.set(t,n,e))?o:(t.setAttribute(e,n+""),n):!(i&&"get"in i&&null!==(o=i.get(t,e)))&&null==(o=C.find.attr(t,e))?void 0:o)},attrHooks:{type:{set:function(t,e){var n;if(!m.radioValue&&"radio"===e&&u(t,"input"))return n=t.value,t.setAttribute("type",e),n&&(t.value=n),e}}},removeAttr:function(t,e){var n,o=0,i=e&&e.match(D);if(i&&1===t.nodeType)for(;n=i[o++];)t.removeAttribute(n)}}),ve={set:function(t,e,n){return!1===e?C.removeAttr(t,n):t.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(t,e){var a=be[e]||C.find.attr;be[e]=function(t,e,n){var o,i,r=e.toLowerCase();return n||(i=be[r],be[r]=o,o=null!=a(t,e,n)?r:null,be[r]=i),o}}),/^(?:input|select|textarea|button)$/i),ke=/^(?:a|area)$/i;function N(t){return(t.match(D)||[]).join(" ")}function F(t){return t.getAttribute&&t.getAttribute("class")||""}function we(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(D)||[]}C.fn.extend({prop:function(t,e){return d(this,C.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[C.propFix[t]||t]})}}),C.extend({prop:function(t,e,n){var o,i,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&C.isXMLDoc(t)||(e=C.propFix[e]||e,i=C.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(o=i.set(t,n,e))?o:t[e]=n:i&&"get"in i&&null!==(o=i.get(t,e))?o:t[e]},propHooks:{tabIndex:{get:function(t){var e=C.find.attr(t,"tabindex");return e?parseInt(e,10):xe.test(t.nodeName)||ke.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(C.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)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(e){var t,n,o,i,r,a,s=0;if(v(e))return this.each(function(t){C(this).addClass(e.call(this,t,F(this)))});if((t=we(e)).length)for(;n=this[s++];)if(a=F(n),o=1===n.nodeType&&" "+N(a)+" "){for(r=0;i=t[r++];)o.indexOf(" "+i+" ")<0&&(o+=i+" ");a!==(a=N(o))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,o,i,r,a,s=0;if(v(e))return this.each(function(t){C(this).removeClass(e.call(this,t,F(this)))});if(!arguments.length)return this.attr("class","");if((t=we(e)).length)for(;n=this[s++];)if(a=F(n),o=1===n.nodeType&&" "+N(a)+" "){for(r=0;i=t[r++];)for(;-1<o.indexOf(" "+i+" ");)o=o.replace(" "+i+" "," ");a!==(a=N(o))&&n.setAttribute("class",a)}return this},toggleClass:function(i,e){var r=typeof i,a="string"==r||Array.isArray(i);return"boolean"==typeof e&&a?e?this.addClass(i):this.removeClass(i):v(i)?this.each(function(t){C(this).toggleClass(i.call(this,t,F(this),e),e)}):this.each(function(){var t,e,n,o;if(a)for(e=0,n=C(this),o=we(i);t=o[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==i&&"boolean"!=r||((t=F(this))&&x.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==i&&x.get(this,"__className__")||""))})},hasClass:function(t){for(var e,n=0,o=" "+t+" ";e=this[n++];)if(1===e.nodeType&&-1<(" "+N(F(e))+" ").indexOf(o))return!0;return!1}});function Ce(t){t.stopPropagation()}var De=/\r/g,Te=(C.fn.extend({val:function(e){var n,t,o,i=this[0];return arguments.length?(o=v(e),this.each(function(t){1===this.nodeType&&(null==(t=o?e.call(this,t,C(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=C.map(t,function(t){return null==t?"":t+""})),(n=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):i?(n=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(i,"value"))?t:"string"==typeof(t=i.value)?t.replace(De,""):null==t?"":t:void 0}}),C.extend({valHooks:{option:{get:function(t){var e=C.find.attr(t,"value");return null!=e?e:N(C.text(t))}},select:{get:function(t){for(var e,n=t.options,o=t.selectedIndex,i="select-one"===t.type,r=i?null:[],a=i?o+1:n.length,s=o<0?a:i?o:0;s<a;s++)if(((e=n[s]).selected||s===o)&&!e.disabled&&(!e.parentNode.disabled||!u(e.parentNode,"optgroup"))){if(e=C(e).val(),i)return e;r.push(e)}return r},set:function(t,e){for(var n,o,i=t.options,r=C.makeArray(e),a=i.length;a--;)((o=i[a]).selected=-1<C.inArray(C.valHooks.option.get(o),r))&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<C.inArray(C(t).val(),e)}},m.checkOn||(C.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),m.focusin="onfocusin"in k,/^(?:focusinfocus|focusoutblur)$/),je=(C.extend(C.event,{trigger:function(t,e,n,o){var i,r,a,s,u,l,c,d=[n||w],p=W.call(t,"type")?t.type:t,h=W.call(t,"namespace")?t.namespace.split("."):[],f=c=r=n=n||w;if(3!==n.nodeType&&8!==n.nodeType&&!Te.test(p+C.event.triggered)&&(-1<p.indexOf(".")&&(p=(h=p.split(".")).shift(),h.sort()),s=p.indexOf(":")<0&&"on"+p,(t=t[C.expando]?t:new C.Event(p,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:C.makeArray(e,[t]),l=C.event.special[p]||{},o||!l.trigger||!1!==l.trigger.apply(n,e))){if(!o&&!l.noBubble&&!g(n)){for(a=l.delegateType||p,Te.test(a+p)||(f=f.parentNode);f;f=f.parentNode)d.push(f),r=f;r===(n.ownerDocument||w)&&d.push(r.defaultView||r.parentWindow||k)}for(i=0;(f=d[i++])&&!t.isPropagationStopped();)c=f,t.type=1<i?a:l.bindType||p,(u=(x.get(f,"events")||Object.create(null))[t.type]&&x.get(f,"handle"))&&u.apply(f,e),(u=s&&f[s])&&u.apply&&y(f)&&(t.result=u.apply(f,e),!1===t.result&&t.preventDefault());return t.type=p,o||t.isDefaultPrevented()||l._default&&!1!==l._default.apply(d.pop(),e)||!y(n)||s&&v(n[p])&&!g(n)&&((r=n[s])&&(n[s]=null),C.event.triggered=p,t.isPropagationStopped()&&c.addEventListener(p,Ce),n[p](),t.isPropagationStopped()&&c.removeEventListener(p,Ce),C.event.triggered=void 0,r&&(n[s]=r)),t.result}},simulate:function(t,e,n){n=C.extend(new C.Event,n,{type:t,isSimulated:!0});C.event.trigger(n,null,e)}}),C.fn.extend({trigger:function(t,e){return this.each(function(){C.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return C.event.trigger(t,e,n,!0)}}),m.focusin||C.each({focus:"focusin",blur:"focusout"},function(n,o){function i(t){C.event.simulate(o,t.target,C.event.fix(t))}C.event.special[o]={setup:function(){var t=this.ownerDocument||this.document||this,e=x.access(t,o);e||t.addEventListener(n,i,!0),x.access(t,o,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,e=x.access(t,o)-1;e?x.access(t,o,e):(t.removeEventListener(n,i,!0),x.remove(t,o))}}}),k.location),Se={guid:Date.now()},Ee=/\?/,Ae=(C.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new k.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||C.error("Invalid XML: "+(n?C.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e},/\[\]$/),Be=/\r?\n/g,Le=/^(?:submit|button|image|reset|file)$/i,_e=/^(?:input|select|textarea|keygen)/i;C.param=function(t,e){function n(t,e){e=v(e)?e():e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var o,i=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!C.isPlainObject(t))C.each(t,function(){n(this.name,this.value)});else for(o in t)!function n(o,t,i,r){if(Array.isArray(t))C.each(t,function(t,e){i||Ae.test(o)?r(o,e):n(o+"["+("object"==typeof e&&null!=e?t:"")+"]",e,i,r)});else if(i||"object"!==f(t))r(o,t);else for(var e in t)n(o+"["+e+"]",t[e],i,r)}(o,t[o],e,n);return i.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=C.prop(this,"elements");return t?C.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!C(this).is(":disabled")&&_e.test(this.nodeName)&&!Le.test(t)&&(this.checked||!kt.test(t))}).map(function(t,e){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(t){return{name:e.name,value:t.replace(Be,"\r\n")}}):{name:e.name,value:n.replace(Be,"\r\n")}}).get()}});var Me=/%20/g,Ne=/#.*$/,Fe=/([?&])_=[^&]*/,He=/^(.*?):[ \t]*([^\r\n]*)$/gm,qe=/^(?:GET|HEAD)$/,$e=/^\/\//,Re={},Oe={},Pe="*/".concat("*"),Ie=w.createElement("a");function We(r){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,o=0,i=t.toLowerCase().match(D)||[];if(v(e))for(;n=i[o++];)"+"===n[0]?(n=n.slice(1)||"*",(r[n]=r[n]||[]).unshift(e)):(r[n]=r[n]||[]).push(e)}}function Ve(e,o,i,r){var a={},s=e===Oe;function u(t){var n;return a[t]=!0,C.each(e[t]||[],function(t,e){e=e(o,i,r);return"string"!=typeof e||s||a[e]?s?!(n=e):void 0:(o.dataTypes.unshift(e),u(e),!1)}),n}return u(o.dataTypes[0])||!a["*"]&&u("*")}function ze(t,e){var n,o,i=C.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:o=o||{})[n]=e[n]);return o&&C.extend(!0,t,o),t}Ie.href=je.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:je.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(je.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pe,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":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ze(ze(t,C.ajaxSettings),e):ze(C.ajaxSettings,t)},ajaxPrefilter:We(Re),ajaxTransport:We(Oe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var u,l,c,n,d,p,h,o,f=C.ajaxSetup({},e=e||{}),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?C(g):C.event,y=C.Deferred(),v=C.Callbacks("once memory"),b=f.statusCode||{},i={},r={},a="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(p){if(!n)for(n={};e=He.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 p?c:null},setRequestHeader:function(t,e){return null==p&&(t=r[t.toLowerCase()]=r[t.toLowerCase()]||t,i[t]=e),this},overrideMimeType:function(t){return null==p&&(f.mimeType=t),this},statusCode:function(t){if(t)if(p)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 u&&u.abort(t),s(0,t),this}};if(y.promise(x),f.url=((t||f.url||je.href)+"").replace($e,je.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(D)||[""],null==f.crossDomain){t=w.createElement("a");try{t.href=f.url,t.href=t.href,f.crossDomain=Ie.protocol+"//"+Ie.host!=t.protocol+"//"+t.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),Ve(Re,f,e,x),p)return x;for(o in(h=C.event&&f.global)&&0==C.active++&&C.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!qe.test(f.type),l=f.url.replace(Ne,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Me,"+")):(t=f.url.slice(l.length),f.data&&(f.processData||"string"==typeof f.data)&&(l+=(Ee.test(l)?"&":"?")+f.data,delete f.data),!1===f.cache&&(l=l.replace(Fe,"$1"),t=(Ee.test(l)?"&":"?")+"_="+Se.guid+++t),f.url=l+t),f.ifModified&&(C.lastModified[l]&&x.setRequestHeader("If-Modified-Since",C.lastModified[l]),C.etag[l]&&x.setRequestHeader("If-None-Match",C.etag[l])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Pe+"; q=0.01":""):f.accepts["*"]),f.headers)x.setRequestHeader(o,f.headers[o]);if(f.beforeSend&&(!1===f.beforeSend.call(g,x,f)||p))return x.abort();if(a="abort",v.add(f.complete),x.done(f.success),x.fail(f.error),u=Ve(Oe,f,e,x)){if(x.readyState=1,h&&m.trigger("ajaxSend",[x,f]),p)return x;f.async&&0<f.timeout&&(d=k.setTimeout(function(){x.abort("timeout")},f.timeout));try{p=!1,u.send(i,s)}catch(t){if(p)throw t;s(-1,t)}}else s(-1,"No Transport");function s(t,e,n,o){var i,r,a,s=e;p||(p=!0,d&&k.clearTimeout(d),u=void 0,c=o||"",x.readyState=0<t?4:0,o=200<=t&&t<300||304===t,n&&(a=function(t,e,n){for(var o,i,r,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===o&&(o=t.mimeType||e.getResponseHeader("Content-Type"));if(o)for(i in s)if(s[i]&&s[i].test(o)){u.unshift(i);break}if(u[0]in n)r=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){r=i;break}a=a||i}r=r||a}if(r)return r!==u[0]&&u.unshift(r),n[r]}(f,x,n)),!o&&-1<C.inArray("script",f.dataTypes)&&C.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),a=function(t,e,n,o){var i,r,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(r=c.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!u&&o&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=r,r=c.shift())if("*"===r)r=u;else if("*"!==u&&u!==r){if(!(a=l[u+" "+r]||l["* "+r]))for(i in l)if((s=i.split(" "))[1]===r&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(r=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+r}}}return{state:"success",data:e}}(f,a,x,o),o?(f.ifModified&&((n=x.getResponseHeader("Last-Modified"))&&(C.lastModified[l]=n),(n=x.getResponseHeader("etag"))&&(C.etag[l]=n)),204===t||"HEAD"===f.type?s="nocontent":304===t?s="notmodified":(s=a.state,i=a.data,o=!(r=a.error))):(r=s,!t&&s||(s="error",t<0&&(t=0))),x.status=t,x.statusText=(e||s)+"",o?y.resolveWith(g,[i,s,x]):y.rejectWith(g,[x,s,r]),x.statusCode(b),b=void 0,h&&m.trigger(o?"ajaxSuccess":"ajaxError",[x,f,o?i:r]),v.fireWith(g,[x,s]),h&&(m.trigger("ajaxComplete",[x,f]),--C.active||C.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,n){return C.get(t,e,n,"json")},getScript:function(t,e){return C.get(t,void 0,e,"script")}}),C.each(["get","post"],function(t,i){C[i]=function(t,e,n,o){return v(e)&&(o=o||n,n=e,e=void 0),C.ajax(C.extend({url:t,type:i,dataType:o,data:e,success:n},C.isPlainObject(t)&&t))}}),C.ajaxPrefilter(function(t){for(var e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),C._evalUrl=function(t,e,n){return C.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){C.globalEval(t,e,n)}})},C.fn.extend({wrapAll:function(t){return this[0]&&(v(t)&&(t=t.call(this[0])),t=C(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 v(n)?this.each(function(t){C(this).wrapInner(n.call(this,t))}):this.each(function(){var t=C(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=v(e);return this.each(function(t){C(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(t){return!C.expr.pseudos.visible(t)},C.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new k.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},Ye=C.ajaxSettings.xhr(),Xe=(m.cors=!!Ye&&"withCredentials"in Ye,m.ajax=Ye=!!Ye,C.ajaxTransport(function(i){var r,a;if(m.cors||Ye&&!i.crossDomain)return{send:function(t,e){var n,o=i.xhr();if(o.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)o[n]=i.xhrFields[n];for(n in i.mimeType&&o.overrideMimeType&&o.overrideMimeType(i.mimeType),i.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)o.setRequestHeader(n,t[n]);r=function(t){return function(){r&&(r=a=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===t?o.abort():"error"===t?"number"!=typeof o.status?e(0,"error"):e(o.status,o.statusText):e(Ue[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=r(),a=o.onerror=o.ontimeout=r("error"),void 0!==o.onabort?o.onabort=a:o.onreadystatechange=function(){4===o.readyState&&k.setTimeout(function(){r&&a()})},r=r("abort");try{o.send(i.hasContent&&i.data||null)}catch(t){if(r)throw t}},abort:function(){r&&r()}}}),C.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),C.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 C.globalEval(t),t}}}),C.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),C.ajaxTransport("script",function(n){var o,i;if(n.crossDomain||n.scriptAttrs)return{send:function(t,e){o=C("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(t){o.remove(),i=null,t&&e("error"===t.type?404:200,t.type)}),w.head.appendChild(o[0])},abort:function(){i&&i()}}}),[]),Ze=/(=)\?(?=&|$)|\?\?/,Ke=(C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||C.expando+"_"+Se.guid++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,n){var o,i,r,a=!1!==t.jsonp&&(Ze.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ze.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ze,"$1"+o):!1!==t.jsonp&&(t.url+=(Ee.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return r||C.error(o+" was not called"),r[0]},t.dataTypes[0]="json",i=k[o],k[o]=function(){r=arguments},n.always(function(){void 0===i?C(k).removeProp(o):k[o]=i,t[o]&&(t.jsonpCallback=e.jsonpCallback,Xe.push(o)),r&&v(i)&&i(r[0]),r=i=void 0}),"script"}),m.createHTMLDocument=((t=w.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===t.childNodes.length),C.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((o=(e=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,e.head.appendChild(o)):e=w),o=!n&&[],(n=J.exec(t))?[e.createElement(n[1])]:(n=jt([t],e,o),o&&o.length&&C(o).remove(),C.merge([],n.childNodes)));var o},C.fn.load=function(t,e,n){var o,i,r,a=this,s=t.indexOf(" ");return-1<s&&(o=N(t.slice(s)),t=t.slice(0,s)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),0<a.length&&C.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){r=arguments,a.html(o?C("<div>").append(C.parseHTML(t)).find(o):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(t,e,n){var o,i,r,a,s=C.css(t,"position"),u=C(t),l={};"static"===s&&(t.style.position="relative"),r=u.offset(),o=C.css(t,"top"),a=C.css(t,"left"),s=("absolute"===s||"fixed"===s)&&-1<(o+a).indexOf("auto")?(i=(s=u.position()).top,s.left):(i=parseFloat(o)||0,parseFloat(a)||0),null!=(e=v(e)?e.call(t,n,C.extend({},r)):e).top&&(l.top=e.top-r.top+i),null!=e.left&&(l.left=e.left-r.left+s),"using"in e?e.using.call(t,l):u.css(l)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.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,o=this[0],i={top:0,left:0};if("fixed"===C.css(o,"position"))e=o.getBoundingClientRect();else{for(e=this.offset(),n=o.ownerDocument,t=o.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===C.css(t,"position");)t=t.parentNode;t&&t!==o&&1===t.nodeType&&((i=C(t).offset()).top+=C.css(t,"borderTopWidth",!0),i.left+=C.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-C.css(o,"marginTop",!0),left:e.left-i.left-C.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===C.css(t,"position");)t=t.offsetParent;return t||T})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var r="pageYOffset"===i;C.fn[e]=function(t){return d(this,function(t,e,n){var o;if(g(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===n)return o?o[i]:t[e];o?o.scrollTo(r?o.pageXOffset:n,r?n:o.pageYOffset):t[e]=n},e,t,arguments.length)}}),C.each(["top","left"],function(t,n){C.cssHooks[n]=Qt(m.pixelPosition,function(t,e){if(e)return e=Gt(t,n),Xt.test(e)?C(t).position()[n]+"px":e})}),C.each({Height:"height",Width:"width"},function(a,s){C.each({padding:"inner"+a,content:s,"":"outer"+a},function(o,r){C.fn[r]=function(t,e){var n=arguments.length&&(o||"boolean"!=typeof t),i=o||(!0===t||!0===e?"margin":"border");return d(this,function(t,e,n){var o;return g(t)?0===r.indexOf("outer")?t["inner"+a]:t.document.documentElement["client"+a]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+a],o["scroll"+a],t.body["offset"+a],o["offset"+a],o["client"+a])):void 0===n?C.css(t,e,i):C.style(t,e,n,i)},s,n?t:void 0,n)}})}),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C.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,o){return this.on(e,t,n,o)},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)}}),C.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){C.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g),Je=(C.proxy=function(t,e){var n,o;if("string"==typeof e&&(o=t[e],e=t,t=o),v(t))return n=s.call(arguments,2),(o=function(){return t.apply(e||this,n.concat(s.call(arguments)))}).guid=t.guid=t.guid||C.guid++,o},C.holdReady=function(t){t?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=u,C.isFunction=v,C.isWindow=g,C.camelCase=b,C.type=f,C.now=Date.now,C.isNumeric=function(t){var e=C.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},C.trim=function(t){return null==t?"":(t+"").replace(Ke,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return C}),k.jQuery),Ge=k.$;return C.noConflict=function(t){return k.$===C&&(k.$=Ge),t&&k.jQuery===C&&(k.jQuery=Je),C},void 0===H&&(k.jQuery=k.$=C),C});var s=jQuery.noConflict(!0),u={};function t(t,e){if(!t)return this;var n=Object.freeze({properties:{excludedDates:{type:"string"},excludedDays:{type:"string"},leadingZeros:{type:"string"},maxDate:{type:"string"},minDate:{type:"string"},weekStartDay:{type:"string"}}});this.config=this.mergeConfigs({leadingZeros:!1,weekStartDay:"monday"},e,this.parseDataset(n,t.dataset)),this.dayLabels=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],this.monthLabels=["January","February","March","April","May","June","July","August","September","October","November","December"],this.currentDate=new Date,this.currentDate.setHours(0,0,0,0),this.calendarDays=[],this.excludedDates=[],this.excludedDays=[],this.buttonClass="moj-datepicker__button",this.selectedDayButtonClass="moj-datepicker__button--selected",this.currentDayButtonClass="moj-datepicker__button--current",this.todayButtonClass="moj-datepicker__button--today",this.$module=t,this.$input=t.querySelector(".moj-js-datepicker-input")}function l(t,e,n,o,i){this.index=e,this.row=n,this.column=o,this.button=t,this.picker=i,this.date=new Date}return u.removeAttributeValue=function(t,e,n){var o;t.getAttribute(e)&&(t.getAttribute(e)==n?t.removeAttribute(e):(n=new RegExp("(^|\\s)"+n+"(\\s|$)"),(o=t.getAttribute(e).match(n))&&3==o.length&&t.setAttribute(e,t.getAttribute(e).replace(n,o[1]&&o[2]?" ":""))))},u.addAttributeValue=function(t,e,n){t.getAttribute(e)?new RegExp("(^|\\s)"+n+"(\\s|$)").test(t.getAttribute(e))||t.setAttribute(e,t.getAttribute(e)+" "+n):t.setAttribute(e,n)},u.dragAndDropSupported=function(){return void 0!==document.createElement("div").ondrop},u.formDataSupported=function(){return"function"==typeof FormData},u.fileApiSupported=function(){var t=document.createElement("input");return t.type="file",void 0!==t.files},u.nodeListForEach=function(t,e){if(window.NodeList.prototype.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e.call(window,t[n],n,t)},u.initAll=function(t){var t=void 0!==(t=void 0!==t?t:{}).scope?t.scope:document,e=t.querySelectorAll('[data-module="moj-add-another"]'),e=(u.nodeListForEach(e,function(t){new u.AddAnother(t)}),t.querySelectorAll('[data-module="moj-multi-select"]')),e=(u.nodeListForEach(e,function(t){new u.MultiSelect({container:t.querySelector(t.getAttribute("data-multi-select-checkbox")),checkboxes:t.querySelectorAll("tbody .govuk-checkboxes__input")})}),t.querySelectorAll('[data-module="moj-password-reveal"]')),e=(u.nodeListForEach(e,function(t){new u.PasswordReveal(t)}),t.querySelectorAll('[data-module="moj-rich-text-editor"]')),e=(u.nodeListForEach(e,function(t){var e={textarea:s(t)},t=t.getAttribute("data-moj-rich-text-editor-toolbar");if(t){var n,o=t.split(",");for(n in e.toolbar={},o)e.toolbar[o[n]]=!0}new u.RichTextEditor(e)}),t.querySelectorAll('[data-module="moj-search-toggle"]')),e=(u.nodeListForEach(e,function(t){new u.SearchToggle({toggleButton:{container:s(t.querySelector(".moj-search-toggle__toggle")),text:t.getAttribute("data-moj-search-toggle-text")},search:{container:s(t.querySelector(".moj-search"))}})}),t.querySelectorAll('[data-module="moj-sortable-table"]')),e=(u.nodeListForEach(e,function(t){new u.SortableTable({table:t})}),t.querySelectorAll('[data-module="moj-sortable-table"]')),t=(u.nodeListForEach(e,function(t){new u.SortableTable({table:t})}),document.querySelectorAll('[data-module="moj-date-picker"]'));u.nodeListForEach(t,function(t){new u.DatePicker(t,{}).init()})},u.AddAnother=function(t){this.container=s(t),this.container.data("moj-add-another-initialised")||(this.container.data("moj-add-another-initialised",!0),this.container.on("click",".moj-add-another__remove-button",s.proxy(this,"onRemoveButtonClick")),this.container.on("click",".moj-add-another__add-button",s.proxy(this,"onAddButtonClick")),this.container.find(".moj-add-another__add-button, moj-add-another__remove-button").prop("type","button"))},u.AddAnother.prototype.onAddButtonClick=function(t){var e=this.getNewItem(),n=(this.updateAttributes(this.getItems().length,e),this.resetItem(e),this.getItems().first());this.hasRemoveButton(n)||this.createRemoveButton(n),this.getItems().last().after(e),e.find("input, textarea, select").first().focus()},u.AddAnother.prototype.hasRemoveButton=function(t){return t.find(".moj-add-another__remove-button").length},u.AddAnother.prototype.getItems=function(){return this.container.find(".moj-add-another__item")},u.AddAnother.prototype.getNewItem=function(){var t=this.getItems().first().clone();return this.hasRemoveButton(t)||this.createRemoveButton(t),t},u.AddAnother.prototype.updateAttributes=function(o,i){i.find("[data-name]").each(function(t,e){var n=e.id;e.name=s(e).attr("data-name").replace(/%index%/,o),e.id=s(e).attr("data-id").replace(/%index%/,o),(s(e).siblings("label")[0]||s(e).parents("label")[0]||i.find('[for="'+n+'"]')[0]).htmlFor=e.id})},u.AddAnother.prototype.createRemoveButton=function(t){t.append('<button type="button" class="govuk-button govuk-button--secondary moj-add-another__remove-button">Remove</button>')},u.AddAnother.prototype.resetItem=function(t){t.find("[data-name], [data-id]").each(function(t,e){"checkbox"==e.type||"radio"==e.type?e.checked=!1:e.value=""})},u.AddAnother.prototype.onRemoveButtonClick=function(t){s(t.currentTarget).parents(".moj-add-another__item").remove();t=this.getItems();1===t.length&&t.find(".moj-add-another__remove-button").remove(),t.each(s.proxy(function(t,e){this.updateAttributes(t,s(e))},this)),this.focusHeading()},u.AddAnother.prototype.focusHeading=function(){this.container.find(".moj-add-another__heading").focus()},u.ButtonMenu=function(t){this.container=s(t.container),this.menu=this.container.find(".moj-button-menu__wrapper"),t.menuClasses&&this.menu.addClass(t.menuClasses),this.menu.attr("role","menu"),this.mq=t.mq,this.buttonText=t.buttonText,this.buttonClasses=t.buttonClasses||"",this.keys={esc:27,up:38,down:40,tab:9},this.menu.on("keydown","[role=menuitem]",s.proxy(this,"onButtonKeydown")),this.createToggleButton(),this.setupResponsiveChecks(),s(document).on("click",s.proxy(this,"onDocumentClick"))},u.ButtonMenu.prototype.onDocumentClick=function(t){s.contains(this.container[0],t.target)||this.hideMenu()},u.ButtonMenu.prototype.createToggleButton=function(){this.menuButton=s('<button class="govuk-button moj-button-menu__toggle-button '+this.buttonClasses+'" type="button" aria-haspopup="true" aria-expanded="false">'+this.buttonText+"</button>"),this.menuButton.on("click",s.proxy(this,"onMenuButtonClick")),this.menuButton.on("keydown",s.proxy(this,"onMenuKeyDown"))},u.ButtonMenu.prototype.setupResponsiveChecks=function(){this.mql=window.matchMedia(this.mq),this.mql.addListener(s.proxy(this,"checkMode")),this.checkMode(this.mql)},u.ButtonMenu.prototype.checkMode=function(t){t.matches?this.enableBigMode():this.enableSmallMode()},u.ButtonMenu.prototype.enableSmallMode=function(){this.container.prepend(this.menuButton),this.hideMenu(),this.removeButtonClasses(),this.menu.attr("role","menu"),this.container.find(".moj-button-menu__item").attr("role","menuitem")},u.ButtonMenu.prototype.enableBigMode=function(){this.menuButton.detach(),this.showMenu(),this.addButtonClasses(),this.menu.removeAttr("role"),this.container.find(".moj-button-menu__item").removeAttr("role")},u.ButtonMenu.prototype.removeButtonClasses=function(){this.menu.find(".moj-button-menu__item").each(function(t,e){s(e).hasClass("govuk-button--secondary")&&(s(e).attr("data-secondary","true"),s(e).removeClass("govuk-button--secondary")),s(e).hasClass("govuk-button--warning")&&(s(e).attr("data-warning","true"),s(e).removeClass("govuk-button--warning")),s(e).removeClass("govuk-button")})},u.ButtonMenu.prototype.addButtonClasses=function(){this.menu.find(".moj-button-menu__item").each(function(t,e){"true"==s(e).attr("data-secondary")&&s(e).addClass("govuk-button--secondary"),"true"==s(e).attr("data-warning")&&s(e).addClass("govuk-button--warning"),s(e).addClass("govuk-button")})},u.ButtonMenu.prototype.hideMenu=function(){this.menuButton.attr("aria-expanded","false")},u.ButtonMenu.prototype.showMenu=function(){this.menuButton.attr("aria-expanded","true")},u.ButtonMenu.prototype.onMenuButtonClick=function(){this.toggle()},u.ButtonMenu.prototype.toggle=function(){"false"==this.menuButton.attr("aria-expanded")?(this.showMenu(),this.menu.find("[role=menuitem]").first().focus()):(this.hideMenu(),this.menuButton.focus())},u.ButtonMenu.prototype.onMenuKeyDown=function(t){t.keyCode===this.keys.down&&this.toggle()},u.ButtonMenu.prototype.onButtonKeydown=function(t){switch(t.keyCode){case this.keys.up:t.preventDefault(),this.focusPrevious(t.currentTarget);break;case this.keys.down:t.preventDefault(),this.focusNext(t.currentTarget);break;case this.keys.esc:this.mql.matches||(this.menuButton.focus(),this.hideMenu());break;case this.keys.tab:this.mql.matches||this.hideMenu()}},u.ButtonMenu.prototype.focusNext=function(t){t=s(t).next();(t[0]?t:this.container.find("[role=menuitem]").first()).focus()},u.ButtonMenu.prototype.focusPrevious=function(t){t=s(t).prev();(t[0]?t:this.container.find("[role=menuitem]").last()).focus()},t.prototype.init=function(){this.$input&&(this.setOptions(),this.initControls())},t.prototype.initControls=function(){this.id="datepicker-"+this.$input.id,this.$dialog=this.createDialog(),this.createCalendarHeaders();const t=document.createElement("div"),e=document.createElement("div");t.classList.add("moj-datepicker__wrapper"),e.classList.add("govuk-input__wrapper"),this.$input.parentNode.insertBefore(t,this.$input),t.appendChild(e),e.appendChild(this.$input),e.insertAdjacentHTML("beforeend",this.toggleTemplate()),t.insertAdjacentElement("beforeend",this.$dialog),this.$calendarButton=this.$module.querySelector(".moj-js-datepicker-toggle"),this.$dialogTitle=this.$dialog.querySelector(".moj-js-datepicker-month-year"),this.createCalendar(),this.$prevMonthButton=this.$dialog.querySelector(".moj-js-datepicker-prev-month"),this.$prevYearButton=this.$dialog.querySelector(".moj-js-datepicker-prev-year"),this.$nextMonthButton=this.$dialog.querySelector(".moj-js-datepicker-next-month"),this.$nextYearButton=this.$dialog.querySelector(".moj-js-datepicker-next-year"),this.$cancelButton=this.$dialog.querySelector(".moj-js-datepicker-cancel"),this.$okButton=this.$dialog.querySelector(".moj-js-datepicker-ok"),this.$prevMonthButton.addEventListener("click",t=>this.focusPreviousMonth(t,!1)),this.$prevYearButton.addEventListener("click",t=>this.focusPreviousYear(t,!1)),this.$nextMonthButton.addEventListener("click",t=>this.focusNextMonth(t,!1)),this.$nextYearButton.addEventListener("click",t=>this.focusNextYear(t,!1)),this.$cancelButton.addEventListener("click",t=>{t.preventDefault(),this.closeDialog(t)}),this.$okButton.addEventListener("click",()=>{this.selectDate(this.currentDate)});var n=this.$dialog.querySelectorAll('button:not([disabled="true"])');this.$firstButtonInDialog=n[0],this.$lastButtonInDialog=n[n.length-1],this.$firstButtonInDialog.addEventListener("keydown",t=>this.firstButtonKeydown(t)),this.$lastButtonInDialog.addEventListener("keydown",t=>this.lastButtonKeydown(t)),this.$calendarButton.addEventListener("click",t=>this.toggleDialog(t)),this.$dialog.addEventListener("keydown",t=>{"Escape"==t.key&&(this.closeDialog(),t.preventDefault(),t.stopPropagation())}),document.body.addEventListener("mouseup",t=>this.backgroundClick(t)),this.updateCalendar()},t.prototype.createDialog=function(){var t="datepicker-title-"+this.$input.id;const e=document.createElement("div");return e.id=this.id,e.setAttribute("class","moj-datepicker__dialog"),e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),e.setAttribute("aria-labelledby",t),e.innerHTML=this.dialogTemplate(t),e},t.prototype.createCalendar=function(){const t=this.$dialog.querySelector("tbody");let n=0;for(let e=0;e<6;e++){const i=t.insertRow(e);for(let t=0;t<7;t++){const r=document.createElement("td");var o=document.createElement("button");r.appendChild(o),i.appendChild(r);const a=new l(o,n,e,t,this);a.init(),this.calendarDays.push(a),n++}}},t.prototype.toggleTemplate=function(){return`<button class="moj-datepicker__toggle moj-js-datepicker-toggle" type="button" aria-haspopup="dialog" aria-controls="${this.id}" aria-expanded="false">
|
|
1
|
+
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.MOJFrontend=e()}(this,function(){!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(t.document)return e(t);throw new Error("jQuery requires a window with a document")}:e(t)}("undefined"!=typeof window?window:this,function(k,H){"use strict";function v(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item}function g(t){return null!=t&&t===t.window}var e=[],q=Object.getPrototypeOf,s=e.slice,$=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},R=e.push,O=e.indexOf,P={},I=P.toString,W=P.hasOwnProperty,V=W.toString,z=V.call(Object),m={},w=k.document,U={type:!0,src:!0,nonce:!0,noModule:!0};function Y(t,e,n){var o,i,r=(n=n||w).createElement("script");if(r.text=t,e)for(o in U)(i=e[o]||e.getAttribute&&e.getAttribute(o))&&r.setAttribute(o,i);n.head.appendChild(r).parentNode.removeChild(r)}function f(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?P[I.call(t)]||"object":typeof t}var t="3.6.0",C=function(t,e){return new C.fn.init(t,e)};function X(t){var e=!!t&&"length"in t&&t.length,n=f(t);return!v(t)&&!g(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}C.fn=C.prototype={jquery:t,constructor:C,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=C.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return C.each(this,t)},map:function(n){return this.pushStack(C.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(C.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:R,sort:e.sort,splice:e.splice},C.extend=C.fn.extend=function(){var t,e,n,o,i,r=arguments[0]||{},a=1,s=arguments.length,u=!1;for("boolean"==typeof r&&(u=r,r=arguments[a]||{},a++),"object"==typeof r||v(r)||(r={}),a===s&&(r=this,a--);a<s;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&r!==n&&(u&&n&&(C.isPlainObject(n)||(o=Array.isArray(n)))?(i=r[e],i=o&&!Array.isArray(i)?[]:o||C.isPlainObject(i)?i:{},o=!1,r[e]=C.extend(u,i,n)):void 0!==n&&(r[e]=n));return r},C.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==I.call(t))&&(!(t=q(t))||"function"==typeof(t=W.call(t,"constructor")&&t.constructor)&&V.call(t)===z)},isEmptyObject:function(t){for(var e in t)return!1;return!0},globalEval:function(t,e,n){Y(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,o=0;if(X(t))for(n=t.length;o<n&&!1!==e.call(t[o],o,t[o]);o++);else for(o in t)if(!1===e.call(t[o],o,t[o]))break;return t},makeArray:function(t,e){e=e||[];return null!=t&&(X(Object(t))?C.merge(e,"string"==typeof t?[t]:t):R.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,o=0,i=t.length;o<n;o++)t[i++]=e[o];return t.length=i,t},grep:function(t,e,n){for(var o=[],i=0,r=t.length,a=!n;i<r;i++)!e(t[i],i)!=a&&o.push(t[i]);return o},map:function(t,e,n){var o,i,r=0,a=[];if(X(t))for(o=t.length;r<o;r++)null!=(i=e(t[r],r,n))&&a.push(i);else for(r in t)null!=(i=e(t[r],r,n))&&a.push(i);return $(a)},guid:1,support:m}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=e[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){P["[object "+e+"]"]=e.toLowerCase()});function o(t,e,n){for(var o=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&C(t).is(n))break;o.push(t)}return o}function Z(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var t=function(H){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 q(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function $(){w()}var t,p,x,r,R,h,O,P,k,u,l,w,C,n,D,f,o,i,g,T="sizzle"+ +new Date,c=H.document,j=0,I=0,W=L(),V=L(),z=L(),m=L(),U=function(t,e){return t===e&&(l=!0),0},Y={}.hasOwnProperty,e=[],X=e.pop,Z=e.push,S=e.push,K=e.slice,v=function(t,e){for(var n=0,o=t.length;n<o;n++)if(t[n]===e)return n;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",s="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",G="\\["+a+"*("+s+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+s+"))|)"+a+"*\\]",Q=":("+s+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+G+")*)|.*)\\)|)",tt=new RegExp(a+"+","g"),y=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),et=new RegExp("^"+a+"*,"+a+"*"),nt=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),ot=new RegExp(a+"|>"),it=new RegExp(Q),rt=new RegExp("^"+s+"$"),b={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+G),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},at=/HTML$/i,st=/^(?:input|select|textarea|button)$/i,ut=/^h\d$/i,E=/^[^{]+\{\s*\[native \w/,lt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ct=/[+~]/,A=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),dt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,pt=vt(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{S.apply(e=K.call(c.childNodes),c.childNodes),e[c.childNodes.length].nodeType}catch(t){S={apply:e.length?function(t,e){Z.apply(t,K.call(e))}:function(t,e){for(var n=t.length,o=0;t[n++]=e[o++];);t.length=n-1}}}function B(e,t,n,o){var i,r,a,s,u,l,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(!o&&(w(t),t=t||C,D)){if(11!==d&&(s=lt.exec(e)))if(i=s[1]){if(9===d){if(!(l=t.getElementById(i)))return n;if(l.id===i)return n.push(l),n}else if(c&&(l=c.getElementById(i))&&g(t,l)&&l.id===i)return n.push(l),n}else{if(s[2])return S.apply(n,t.getElementsByTagName(e)),n;if((i=s[3])&&p.getElementsByClassName&&t.getElementsByClassName)return S.apply(n,t.getElementsByClassName(i)),n}if(p.qsa&&!m[e+" "]&&(!f||!f.test(e))&&(1!==d||"object"!==t.nodeName.toLowerCase())){if(l=e,c=t,1===d&&(ot.test(e)||nt.test(e))){for((c=ct.test(e)&&mt(t.parentNode)||t)===t&&p.scope||((a=t.getAttribute("id"))?a=a.replace(dt,q):t.setAttribute("id",a=T)),r=(u=h(e)).length;r--;)u[r]=(a?"#"+a:":scope")+" "+F(u[r]);l=u.join(",")}try{return S.apply(n,c.querySelectorAll(l)),n}catch(t){m(e,!0)}finally{a===T&&t.removeAttribute("id")}}}return P(e.replace(y,"$1"),t,n,o)}function L(){var n=[];function o(t,e){return n.push(t+" ")>x.cacheLength&&delete o[n.shift()],o[t+" "]=e}return o}function _(t){return t[T]=!0,t}function M(t){var e=C.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function ht(t,e){for(var n=t.split("|"),o=n.length;o--;)x.attrHandle[n[o]]=e}function ft(t,e){var n=e&&t,o=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function gt(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&&pt(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function N(a){return _(function(r){return r=+r,_(function(t,e){for(var n,o=a([],t.length,r),i=o.length;i--;)t[n=o[i]]&&(t[n]=!(e[n]=t[n]))})})}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in p=B.support={},R=B.isXML=function(t){var e=t&&t.namespaceURI,t=t&&(t.ownerDocument||t).documentElement;return!at.test(e||t&&t.nodeName||"HTML")},w=B.setDocument=function(t){var t=t?t.ownerDocument||t:c;return t!=C&&9===t.nodeType&&t.documentElement&&(n=(C=t).documentElement,D=!R(C),c!=C&&(t=C.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",$,!1):t.attachEvent&&t.attachEvent("onunload",$)),p.scope=M(function(t){return n.appendChild(t).appendChild(C.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),p.attributes=M(function(t){return t.className="i",!t.getAttribute("className")}),p.getElementsByTagName=M(function(t){return t.appendChild(C.createComment("")),!t.getElementsByTagName("*").length}),p.getElementsByClassName=E.test(C.getElementsByClassName),p.getById=M(function(t){return n.appendChild(t).id=T,!C.getElementsByName||!C.getElementsByName(T).length}),p.getById?(x.filter.ID=function(t){var e=t.replace(A,d);return function(t){return t.getAttribute("id")===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&D)return(e=e.getElementById(t))?[e]:[]}):(x.filter.ID=function(t){var e=t.replace(A,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&&D){var n,o,i,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(i=e.getElementsByName(t),o=0;r=i[o++];)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,o=[],i=0,r=e.getElementsByTagName(t);if("*"!==t)return r;for(;n=r[i++];)1===n.nodeType&&o.push(n);return o},x.find.CLASS=p.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&D)return e.getElementsByClassName(t)},o=[],f=[],(p.qsa=E.test(C.querySelectorAll))&&(M(function(t){var e;n.appendChild(t).innerHTML="<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]="+a+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||f.push("\\["+a+"*(?:value|"+J+")"),t.querySelectorAll("[id~="+T+"-]").length||f.push("~="),(e=C.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||f.push(":checked"),t.querySelectorAll("a#"+T+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll("\\\f"),f.push("[\\r\\n\\f]")}),M(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&&f.push("name"+a+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&f.push(":enabled",":disabled"),n.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),f.push(",.*:")})),(p.matchesSelector=E.test(i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&M(function(t){p.disconnectedMatch=i.call(t,"*"),i.call(t,"[s!='']:x"),o.push("!=",Q)}),f=f.length&&new RegExp(f.join("|")),o=o.length&&new RegExp(o.join("|")),t=E.test(n.compareDocumentPosition),g=t||E.test(n.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},U=t?function(t,e){if(t===e)return l=!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==c&&g(c,t)?-1:e==C||e.ownerDocument==c&&g(c,e)?1:u?v(u,t)-v(u,e):0:4&n?-1:1)}:function(t,e){if(t===e)return l=!0,0;var n,o=0,i=t.parentNode,r=e.parentNode,a=[t],s=[e];if(!i||!r)return t==C?-1:e==C?1:i?-1:r?1:u?v(u,t)-v(u,e):0;if(i===r)return ft(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[o]===s[o];)o++;return o?ft(a[o],s[o]):a[o]==c?-1:s[o]==c?1:0}),C},B.matches=function(t,e){return B(t,null,null,e)},B.matchesSelector=function(t,e){if(w(t),p.matchesSelector&&D&&!m[e+" "]&&(!o||!o.test(e))&&(!f||!f.test(e)))try{var n=i.call(t,e);if(n||p.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){m(e,!0)}return 0<B(e,C,null,[t]).length},B.contains=function(t,e){return(t.ownerDocument||t)!=C&&w(t),g(t,e)},B.attr=function(t,e){(t.ownerDocument||t)!=C&&w(t);var n=x.attrHandle[e.toLowerCase()],n=n&&Y.call(x.attrHandle,e.toLowerCase())?n(t,e,!D):void 0;return void 0!==n?n:p.attributes||!D?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},B.escape=function(t){return(t+"").replace(dt,q)},B.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},B.uniqueSort=function(t){var e,n=[],o=0,i=0;if(l=!p.detectDuplicates,u=!p.sortStable&&t.slice(0),t.sort(U),l){for(;e=t[i++];)e===t[i]&&(o=n.push(i));for(;o--;)t.splice(n[o],1)}return u=null,t},r=B.getText=function(t){var e,n="",o=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[o++];)n+=r(e);return n},(x=B.selectors={cacheLength:50,createPseudo:_,match:b,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(A,d),t[3]=(t[3]||t[4]||t[5]||"").replace(A,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]||B.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]&&B.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return b.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&it.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(A,d).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+a+")"+t+"("+a+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,o){return function(t){t=B.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===o:"!="===n?t!==o:"^="===n?o&&0===t.indexOf(o):"*="===n?o&&-1<t.indexOf(o):"$="===n?o&&t.slice(-o.length)===o:"~="===n?-1<(" "+t.replace(tt," ")+" ").indexOf(o):"|="===n&&(t===o||t.slice(0,o.length+1)===o+"-"))}},CHILD:function(f,t,e,g,m){var y="nth"!==f.slice(0,3),v="last"!==f.slice(-4),b="of-type"===t;return 1===g&&0===m?function(t){return!!t.parentNode}:function(t,e,n){var o,i,r,a,s,u,l=y!=v?"nextSibling":"previousSibling",c=t.parentNode,d=b&&t.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(y){for(;l;){for(a=t;a=a[l];)if(b?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;u=l="only"===f&&!u&&"nextSibling"}return!0}if(u=[v?c.firstChild:c.lastChild],v&&p){for(h=(s=(o=(i=(r=(a=c)[T]||(a[T]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]||[])[0]===j&&o[1])&&o[2],a=s&&c.childNodes[s];a=++s&&a&&a[l]||(h=s=0)||u.pop();)if(1===a.nodeType&&++h&&a===t){i[f]=[j,s,h];break}}else if(!1===(h=p?s=(o=(i=(r=(a=t)[T]||(a[T]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]||[])[0]===j&&o[1]:h))for(;(a=++s&&a&&a[l]||(h=s=0)||u.pop())&&((b?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++h||(p&&((i=(r=a[T]||(a[T]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]=[j,h]),a!==t)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(t,r){var e,a=x.pseudos[t]||x.setFilters[t.toLowerCase()]||B.error("unsupported pseudo: "+t);return a[T]?a(r):1<a.length?(e=[t,t,"",r],x.setFilters.hasOwnProperty(t.toLowerCase())?_(function(t,e){for(var n,o=a(t,r),i=o.length;i--;)t[n=v(t,o[i])]=!(e[n]=o[i])}):function(t){return a(t,0,e)}):a}},pseudos:{not:_(function(t){var o=[],i=[],s=O(t.replace(y,"$1"));return s[T]?_(function(t,e,n,o){for(var i,r=s(t,null,o,[]),a=t.length;a--;)(i=r[a])&&(t[a]=!(e[a]=i))}):function(t,e,n){return o[0]=t,s(o,null,n,i),o[0]=null,!i.pop()}}),has:_(function(e){return function(t){return 0<B(e,t).length}}),contains:_(function(e){return e=e.replace(A,d),function(t){return-1<(t.textContent||r(t)).indexOf(e)}}),lang:_(function(n){return rt.test(n||"")||B.error("unsupported lang: "+n),n=n.replace(A,d).toLowerCase(),function(t){var e;do{if(e=D?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=H.location&&H.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===n},focus:function(t){return t===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!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 ut.test(t.nodeName)},input:function(t){return st.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:N(function(){return[0]}),last:N(function(t,e){return[e-1]}),eq:N(function(t,e,n){return[n<0?n+e:n]}),even:N(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:N(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:N(function(t,e,n){for(var o=n<0?n+e:e<n?e:n;0<=--o;)t.push(o);return t}),gt:N(function(t,e,n){for(var o=n<0?n+e:n;++o<e;)t.push(o);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 yt(){}function F(t){for(var e=0,n=t.length,o="";e<n;e++)o+=t[e].value;return o}function vt(a,t,e){var s=t.dir,u=t.next,l=u||s,c=e&&"parentNode"===l,d=I++;return t.first?function(t,e,n){for(;t=t[s];)if(1===t.nodeType||c)return a(t,e,n);return!1}:function(t,e,n){var o,i,r=[j,d];if(n){for(;t=t[s];)if((1===t.nodeType||c)&&a(t,e,n))return!0}else for(;t=t[s];)if(1===t.nodeType||c)if(i=(i=t[T]||(t[T]={}))[t.uniqueID]||(i[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[s]||t;else{if((o=i[l])&&o[0]===j&&o[1]===d)return r[2]=o[2];if((i[l]=r)[2]=a(t,e,n))return!0}return!1}}function bt(i){return 1<i.length?function(t,e,n){for(var o=i.length;o--;)if(!i[o](t,e,n))return!1;return!0}:i[0]}function xt(t,e,n,o,i){for(var r,a=[],s=0,u=t.length,l=null!=e;s<u;s++)!(r=t[s])||n&&!n(r,o,i)||(a.push(r),l&&e.push(s));return a}function kt(h,f,g,m,y,t){return m&&!m[T]&&(m=kt(m)),y&&!y[T]&&(y=kt(y,t)),_(function(t,e,n,o){var i,r,a,s=[],u=[],l=e.length,c=t||function(t,e,n){for(var o=0,i=e.length;o<i;o++)B(t,e[o],n);return n}(f||"*",n.nodeType?[n]:n,[]),d=!h||!t&&f?c:xt(c,s,h,n,o),p=g?y||(t?h:l||m)?[]:e:d;if(g&&g(d,p,n,o),m)for(i=xt(p,u),m(i,[],n,o),r=i.length;r--;)(a=i[r])&&(p[u[r]]=!(d[u[r]]=a));if(t){if(y||h){if(y){for(i=[],r=p.length;r--;)(a=p[r])&&i.push(d[r]=a);y(null,p=[],i,o)}for(r=p.length;r--;)(a=p[r])&&-1<(i=y?v(t,a):s[r])&&(t[i]=!(e[i]=a))}}else p=xt(p===e?p.splice(l,p.length):p),y?y(null,e,p,o):S.apply(e,p)})}function wt(m,y){function t(t,e,n,o,i){var r,a,s,u=0,l="0",c=t&&[],d=[],p=k,h=t||b&&x.find.TAG("*",i),f=j+=null==p?1:Math.random()||.1,g=h.length;for(i&&(k=e==C||e||i);l!==g&&null!=(r=h[l]);l++){if(b&&r){for(a=0,e||r.ownerDocument==C||(w(r),n=!D);s=m[a++];)if(s(r,e||C,n)){o.push(r);break}i&&(j=f)}v&&((r=!s&&r)&&u--,t&&c.push(r))}if(u+=l,v&&l!==u){for(a=0;s=y[a++];)s(c,d,e,n);if(t){if(0<u)for(;l--;)c[l]||d[l]||(d[l]=X.call(o));d=xt(d)}S.apply(o,d),i&&!t&&0<d.length&&1<u+y.length&&B.uniqueSort(o)}return i&&(j=f,k=p),c}var v=0<y.length,b=0<m.length;return v?_(t):t}return yt.prototype=x.filters=x.pseudos,x.setFilters=new yt,h=B.tokenize=function(t,e){var n,o,i,r,a,s,u,l=V[t+" "];if(l)return e?0:l.slice(0);for(a=t,s=[],u=x.preFilter;a;){for(r in n&&!(o=et.exec(a))||(o&&(a=a.slice(o[0].length)||a),s.push(i=[])),n=!1,(o=nt.exec(a))&&(n=o.shift(),i.push({value:n,type:o[0].replace(y," ")}),a=a.slice(n.length)),x.filter)!(o=b[r].exec(a))||u[r]&&!(o=u[r](o))||(n=o.shift(),i.push({value:n,type:r,matches:o}),a=a.slice(n.length));if(!n)break}return e?a.length:a?B.error(t):V(t,s).slice(0)},O=B.compile=function(t,e){var n,o=[],i=[],r=z[t+" "];if(!r){for(n=(e=e||h(t)).length;n--;)((r=function t(e){for(var o,n,i,r=e.length,a=x.relative[e[0].type],s=a||x.relative[" "],u=a?1:0,l=vt(function(t){return t===o},s,!0),c=vt(function(t){return-1<v(o,t)},s,!0),d=[function(t,e,n){return t=!a&&(n||e!==k)||((o=e).nodeType?l:c)(t,e,n),o=null,t}];u<r;u++)if(n=x.relative[e[u].type])d=[vt(bt(d),n)];else{if((n=x.filter[e[u].type].apply(null,e[u].matches))[T]){for(i=++u;i<r&&!x.relative[e[i].type];i++);return kt(1<u&&bt(d),1<u&&F(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(y,"$1"),n,u<i&&t(e.slice(u,i)),i<r&&t(e=e.slice(i)),i<r&&F(e))}d.push(n)}return bt(d)}(e[n]))[T]?o:i).push(r);(r=z(t,wt(i,o))).selector=t}return r},P=B.select=function(t,e,n,o){var i,r,a,s,u,l="function"==typeof t&&t,c=!o&&h(t=l.selector||t);if(n=n||[],1===c.length){if(2<(r=c[0]=c[0].slice(0)).length&&"ID"===(a=r[0]).type&&9===e.nodeType&&D&&x.relative[r[1].type]){if(!(e=(x.find.ID(a.matches[0].replace(A,d),e)||[])[0]))return n;l&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(i=b.needsContext.test(t)?0:r.length;i--&&(a=r[i],!x.relative[s=a.type]);)if((u=x.find[s])&&(o=u(a.matches[0].replace(A,d),ct.test(r[0].type)&&mt(e.parentNode)||e))){if(r.splice(i,1),t=o.length&&F(r))break;return S.apply(n,o),n}}return(l||O(t,c))(o,e,!D,n,!e||ct.test(t)&&mt(e.parentNode)||e),n},p.sortStable=T.split("").sort(U).join("")===T,p.detectDuplicates=!!l,w(),p.sortDetached=M(function(t){return 1&t.compareDocumentPosition(C.createElement("fieldset"))}),M(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ht("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),p.attributes&&M(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ht("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),M(function(t){return null==t.getAttribute("disabled")})||ht(J,function(t,e,n){if(!n)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),B}(k),K=(C.find=t,C.expr=t.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=t.uniqueSort,C.text=t.getText,C.isXMLDoc=t.isXML,C.contains=t.contains,C.escapeSelector=t.escape,C.expr.match.needsContext);function u(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var J=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function G(t,n,o){return v(n)?C.grep(t,function(t,e){return!!n.call(t,e,t)!==o}):n.nodeType?C.grep(t,function(t){return t===n!==o}):"string"!=typeof n?C.grep(t,function(t){return-1<O.call(n,t)!==o}):C.filter(n,t,o)}C.filter=function(t,e,n){var o=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===o.nodeType?C.find.matchesSelector(o,t)?[o]:[]:C.find.matches(t,C.grep(e,function(t){return 1===t.nodeType}))},C.fn.extend({find:function(t){var e,n,o=this.length,i=this;if("string"!=typeof t)return this.pushStack(C(t).filter(function(){for(e=0;e<o;e++)if(C.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<o;e++)C.find(t,i[e],n);return 1<o?C.uniqueSort(n):n},filter:function(t){return this.pushStack(G(this,t||[],!1))},not:function(t){return this.pushStack(G(this,t||[],!0))},is:function(t){return!!G(this,"string"==typeof t&&K.test(t)?C(t):t||[],!1).length}});var Q,tt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,et=((C.fn.init=function(t,e,n){if(!t)return this;if(n=n||Q,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(C):C.makeArray(t,this);if(!(o="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:tt.exec(t))||!o[1]&&e)return(!e||e.jquery?e||n:this.constructor(e)).find(t);if(o[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(o[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),J.test(o[1])&&C.isPlainObject(e))for(var o in e)v(this[o])?this[o](e[o]):this.attr(o,e[o]);return this}return(n=w.getElementById(o[2]))&&(this[0]=n,this.length=1),this}).prototype=C.fn,Q=C(w),/^(?:parents|prev(?:Until|All))/),nt={children:!0,contents:!0,next:!0,prev:!0};function ot(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.fn.extend({has:function(t){var e=C(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(C.contains(this,e[t]))return!0})},closest:function(t,e){var n,o=0,i=this.length,r=[],a="string"!=typeof t&&C(t);if(!K.test(t))for(;o<i;o++)for(n=this[o];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&C.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(1<r.length?C.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?O.call(C(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(C.uniqueSort(C.merge(this.get(),C(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),C.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return o(t,"parentNode")},parentsUntil:function(t,e,n){return o(t,"parentNode",n)},next:function(t){return ot(t,"nextSibling")},prev:function(t){return ot(t,"previousSibling")},nextAll:function(t){return o(t,"nextSibling")},prevAll:function(t){return o(t,"previousSibling")},nextUntil:function(t,e,n){return o(t,"nextSibling",n)},prevUntil:function(t,e,n){return o(t,"previousSibling",n)},siblings:function(t){return Z((t.parentNode||{}).firstChild,t)},children:function(t){return Z(t.firstChild)},contents:function(t){return null!=t.contentDocument&&q(t.contentDocument)?t.contentDocument:(u(t,"template")&&(t=t.content||t),C.merge([],t.childNodes))}},function(o,i){C.fn[o]=function(t,e){var n=C.map(this,i,t);return(e="Until"!==o.slice(-5)?t:e)&&"string"==typeof e&&(n=C.filter(e,n)),1<this.length&&(nt[o]||C.uniqueSort(n),et.test(o)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function c(t){return t}function it(t){throw t}function rt(t,e,n,o){var i;try{t&&v(i=t.promise)?i.call(t).done(e).fail(n):t&&v(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(o))}catch(t){n.apply(void 0,[t])}}C.Callbacks=function(o){var t,n;o="string"==typeof o?(t=o,n={},C.each(t.match(D)||[],function(t,e){n[e]=!0}),n):C.extend({},o);function i(){for(s=s||o.once,a=r=!0;l.length;c=-1)for(e=l.shift();++c<u.length;)!1===u[c].apply(e[0],e[1])&&o.stopOnFalse&&(c=u.length,e=!1);o.memory||(e=!1),r=!1,s&&(u=e?[]:"")}var r,e,a,s,u=[],l=[],c=-1,d={add:function(){return u&&(e&&!r&&(c=u.length-1,l.push(e)),function n(t){C.each(t,function(t,e){v(e)?o.unique&&d.has(e)||u.push(e):e&&e.length&&"string"!==f(e)&&n(e)})}(arguments),e&&!r&&i()),this},remove:function(){return C.each(arguments,function(t,e){for(var n;-1<(n=C.inArray(e,u,n));)u.splice(n,1),n<=c&&c--}),this},has:function(t){return t?-1<C.inArray(t,u):0<u.length},empty:function(){return u=u&&[],this},disable:function(){return s=l=[],u=e="",this},disabled:function(){return!u},lock:function(){return s=l=[],e||r||(u=e=""),this},locked:function(){return!!s},fireWith:function(t,e){return s||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),r||i()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},C.extend({Deferred:function(t){var r=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return a.then(null,t)},pipe:function(){var i=arguments;return C.Deferred(function(o){C.each(r,function(t,e){var n=v(i[e[4]])&&i[e[4]];s[e[1]](function(){var t=n&&n.apply(this,arguments);t&&v(t.promise)?t.promise().progress(o.notify).done(o.resolve).fail(o.reject):o[e[0]+"With"](this,n?[t]:arguments)})}),i=null}).promise()},then:function(e,n,o){var u=0;function l(i,r,a,s){return function(){function t(){var t,e;if(!(i<u)){if((t=a.apply(n,o))===r.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,v(e)?s?e.call(t,l(u,r,c,s),l(u,r,it,s)):(u++,e.call(t,l(u,r,c,s),l(u,r,it,s),l(u,r,c,r.notifyWith))):(a!==c&&(n=void 0,o=[t]),(s||r.resolveWith)(n,o))}}var n=this,o=arguments,e=s?t:function(){try{t()}catch(t){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(t,e.stackTrace),u<=i+1&&(a!==it&&(n=void 0,o=[t]),r.rejectWith(n,o))}};i?e():(C.Deferred.getStackHook&&(e.stackTrace=C.Deferred.getStackHook()),k.setTimeout(e))}}return C.Deferred(function(t){r[0][3].add(l(0,t,v(o)?o:c,t.notifyWith)),r[1][3].add(l(0,t,v(e)?e:c)),r[2][3].add(l(0,t,v(n)?n:it))}).promise()},promise:function(t){return null!=t?C.extend(t,a):a}},s={};return C.each(r,function(t,e){var n=e[2],o=e[5];a[e[1]]=n.add,o&&n.add(function(){i=o},r[3-t][2].disable,r[3-t][3].disable,r[0][2].lock,r[0][3].lock),n.add(e[3].fire),s[e[0]]=function(){return s[e[0]+"With"](this===s?void 0:this,arguments),this},s[e[0]+"With"]=n.fireWith}),a.promise(s),t&&t.call(s,s),s},when:function(t){function e(e){return function(t){i[e]=this,r[e]=1<arguments.length?s.call(arguments):t,--n||a.resolveWith(i,r)}}var n=arguments.length,o=n,i=Array(o),r=s.call(arguments),a=C.Deferred();if(n<=1&&(rt(t,a.done(e(o)).resolve,a.reject,!n),"pending"===a.state()||v(r[o]&&r[o].then)))return a.then();for(;o--;)rt(r[o],e(o),a.reject);return a.promise()}});var at=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,st=(C.Deferred.exceptionHook=function(t,e){k.console&&k.console.warn&&t&&at.test(t.name)&&k.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},C.readyException=function(t){k.setTimeout(function(){throw t})},C.Deferred());function ut(){w.removeEventListener("DOMContentLoaded",ut),k.removeEventListener("load",ut),C.ready()}C.fn.ready=function(t){return st.then(t).catch(function(t){C.readyException(t)}),this},C.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--C.readyWait:C.isReady)||(C.isReady=!0)!==t&&0<--C.readyWait||st.resolveWith(w,[C])}}),C.ready.then=st.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?k.setTimeout(C.ready):(w.addEventListener("DOMContentLoaded",ut),k.addEventListener("load",ut));function d(t,e,n,o,i,r,a){var s=0,u=t.length,l=null==n;if("object"===f(n))for(s in i=!0,n)d(t,e,s,n[s],!0,r,a);else if(void 0!==o&&(i=!0,v(o)||(a=!0),e=l?a?(e.call(t,o),null):(l=e,function(t,e,n){return l.call(C(t),n)}):e))for(;s<u;s++)e(t[s],n,a?o:o.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):r}var lt=/^-ms-/,ct=/-([a-z])/g;function dt(t,e){return e.toUpperCase()}function b(t){return t.replace(lt,"ms-").replace(ct,dt)}function y(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function pt(){this.expando=C.expando+pt.uid++}pt.uid=1,pt.prototype={cache:function(t){var e=t[this.expando];return e||(e={},y(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var o,i=this.cache(t);if("string"==typeof e)i[b(e)]=n;else for(o in e)i[b(o)]=e[o];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][b(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,o=t[this.expando];if(void 0!==o){if(void 0!==e){n=(e=Array.isArray(e)?e.map(b):(e=b(e))in o?[e]:e.match(D)||[]).length;for(;n--;)delete o[e[n]]}void 0!==e&&!C.isEmptyObject(o)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var x=new pt,l=new pt,ht=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ft=/[A-Z]/g;function gt(t,e,n){var o,i;if(void 0===n&&1===t.nodeType)if(o="data-"+e.replace(ft,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(o))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:ht.test(i)?JSON.parse(i):i)}catch(t){}l.set(t,e,n)}else n=void 0;return n}C.extend({hasData:function(t){return l.hasData(t)||x.hasData(t)},data:function(t,e,n){return l.access(t,e,n)},removeData:function(t,e){l.remove(t,e)},_data:function(t,e,n){return x.access(t,e,n)},_removeData:function(t,e){x.remove(t,e)}}),C.fn.extend({data:function(n,t){var e,o,i,r=this[0],a=r&&r.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){l.set(this,n)}):d(this,function(t){var e;if(r&&void 0===t)return void 0!==(e=l.get(r,n))||void 0!==(e=gt(r,n))?e:void 0;this.each(function(){l.set(this,n,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(i=l.get(r),1===r.nodeType&&!x.get(r,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&0===(o=a[e].name).indexOf("data-")&&(o=b(o.slice(5)),gt(r,o,i[o]));x.set(r,"hasDataAttrs",!0)}return i},removeData:function(t){return this.each(function(){l.remove(this,t)})}}),C.extend({queue:function(t,e,n){var o;if(t)return o=x.get(t,e=(e||"fx")+"queue"),n&&(!o||Array.isArray(n)?o=x.access(t,e,C.makeArray(n)):o.push(n)),o||[]},dequeue:function(t,e){e=e||"fx";var n=C.queue(t,e),o=n.length,i=n.shift(),r=C._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),o--),i&&("fx"===e&&n.unshift("inprogress"),delete r.stop,i.call(t,function(){C.dequeue(t,e)},r)),!o&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return x.get(t,n)||x.access(t,n,{empty:C.Callbacks("once memory").add(function(){x.remove(t,[e+"queue",n])})})}}),C.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?C.queue(this[0],e):void 0===n?this:this.each(function(){var t=C.queue(this,e,n);C._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&C.dequeue(this,e)})},dequeue:function(t){return this.each(function(){C.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--i||r.resolveWith(a,[a])}var o,i=1,r=C.Deferred(),a=this,s=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(o=x.get(a[s],t+"queueHooks"))&&o.empty&&(i++,o.empty.add(n));return n(),r.promise(e)}});function mt(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&j(t)&&"none"===C.css(t,"display")}var t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,yt=new RegExp("^(?:([+-])=|)("+t+")([a-z%]*)$","i"),p=["Top","Right","Bottom","Left"],T=w.documentElement,j=function(t){return C.contains(t.ownerDocument,t)},vt={composed:!0};T.getRootNode&&(j=function(t){return C.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});function bt(t,e,n,o){var i,r,a=20,s=o?function(){return o.cur()}:function(){return C.css(t,e,"")},u=s(),l=n&&n[3]||(C.cssNumber[e]?"":"px"),c=t.nodeType&&(C.cssNumber[e]||"px"!==l&&+u)&&yt.exec(C.css(t,e));if(c&&c[3]!==l){for(l=l||c[3],c=+(u/=2)||1;a--;)C.style(t,e,c+l),(1-r)*(1-(r=s()/u||.5))<=0&&(a=0),c/=r;C.style(t,e,(c*=2)+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],o&&(o.unit=l,o.start=c,o.end=i)),i}var xt={};function S(t,e){for(var n,o,i,r,a,s=[],u=0,l=t.length;u<l;u++)(o=t[u]).style&&(n=o.style.display,e?("none"===n&&(s[u]=x.get(o,"display")||null,s[u]||(o.style.display="")),""===o.style.display&&mt(o)&&(s[u]=(a=r=void 0,r=(i=o).ownerDocument,i=i.nodeName,(a=xt[i])||(r=r.body.appendChild(r.createElement(i)),a=C.css(r,"display"),r.parentNode.removeChild(r),xt[i]=a="none"===a?"block":a)))):"none"!==n&&(s[u]="none",x.set(o,"display",n)));for(u=0;u<l;u++)null!=s[u]&&(t[u].style.display=s[u]);return t}C.fn.extend({show:function(){return S(this,!0)},hide:function(){return S(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){mt(this)?C(this).show():C(this).hide()})}});var kt=/^(?:checkbox|radio)$/i,wt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ct=/^$|^module$|\/(?:java|ecma)script/i,E=(_=w.createDocumentFragment().appendChild(w.createElement("div")),(a=w.createElement("input")).setAttribute("type","radio"),a.setAttribute("checked","checked"),a.setAttribute("name","t"),_.appendChild(a),m.checkClone=_.cloneNode(!0).cloneNode(!0).lastChild.checked,_.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!_.cloneNode(!0).lastChild.defaultValue,_.innerHTML="<option></option>",m.option=!!_.lastChild,{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 A(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&u(t,e)?C.merge([t],n):n}function Dt(t,e){for(var n=0,o=t.length;n<o;n++)x.set(t[n],"globalEval",!e||x.get(e[n],"globalEval"))}E.tbody=E.tfoot=E.colgroup=E.caption=E.thead,E.th=E.td,m.option||(E.optgroup=E.option=[1,"<select multiple='multiple'>","</select>"]);var Tt=/<|&#?\w+;/;function jt(t,e,n,o,i){for(var r,a,s,u,l,c=e.createDocumentFragment(),d=[],p=0,h=t.length;p<h;p++)if((r=t[p])||0===r)if("object"===f(r))C.merge(d,r.nodeType?[r]:r);else if(Tt.test(r)){for(a=a||c.appendChild(e.createElement("div")),s=(wt.exec(r)||["",""])[1].toLowerCase(),s=E[s]||E._default,a.innerHTML=s[1]+C.htmlPrefilter(r)+s[2],l=s[0];l--;)a=a.lastChild;C.merge(d,a.childNodes),(a=c.firstChild).textContent=""}else d.push(e.createTextNode(r));for(c.textContent="",p=0;r=d[p++];)if(o&&-1<C.inArray(r,o))i&&i.push(r);else if(u=j(r),a=A(c.appendChild(r),"script"),u&&Dt(a),n)for(l=0;r=a[l++];)Ct.test(r.type||"")&&n.push(r);return c}var St=/^([^.]*)(?:\.(.+)|)/;function n(){return!0}function h(){return!1}function Et(t,e){return t===function(){try{return w.activeElement}catch(t){}}()==("focus"===e)}function At(t,e,n,o,i,r){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(o=o||n,n=void 0),e)At(t,s,n,o,e[s],r);return t}if(null==o&&null==i?(i=n,o=n=void 0):null==i&&("string"==typeof n?(i=o,o=void 0):(i=o,o=n,n=void 0)),!1===i)i=h;else if(!i)return t;return 1===r&&(a=i,(i=function(t){return C().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=C.guid++)),t.each(function(){C.event.add(this,e,i,o,n)})}function Bt(t,i,r){r?(x.set(t,i,!1),C.event.add(t,i,{namespace:!1,handler:function(t){var e,n,o=x.get(this,i);if(1&t.isTrigger&&this[i]){if(o.length)(C.event.special[i]||{}).delegateType&&t.stopPropagation();else if(o=s.call(arguments),x.set(this,i,o),e=r(this,i),this[i](),o!==(n=x.get(this,i))||e?x.set(this,i,!1):n={},o!==n)return t.stopImmediatePropagation(),t.preventDefault(),n&&n.value}else o.length&&(x.set(this,i,{value:C.event.trigger(C.extend(o[0],C.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===x.get(t,i)&&C.event.add(t,i,n)}C.event={global:{},add:function(e,t,n,o,i){var r,a,s,u,l,c,d,p,h,f=x.get(e);if(y(e))for(n.handler&&(n=(r=n).handler,i=r.selector),i&&C.find.matchesSelector(T,i),n.guid||(n.guid=C.guid++),(s=f.events)||(s=f.events=Object.create(null)),(a=f.handle)||(a=f.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(D)||[""]).length;u--;)d=h=(p=St.exec(t[u])||[])[1],p=(p[2]||"").split(".").sort(),d&&(l=C.event.special[d]||{},d=(i?l.delegateType:l.bindType)||d,l=C.event.special[d]||{},h=C.extend({type:d,origType:h,data:o,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:p.join(".")},r),(c=s[d])||((c=s[d]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,o,p,a)||e.addEventListener&&e.addEventListener(d,a)),l.add&&(l.add.call(e,h),h.handler.guid||(h.handler.guid=n.guid)),i?c.splice(c.delegateCount++,0,h):c.push(h),C.event.global[d]=!0)},remove:function(t,e,n,o,i){var r,a,s,u,l,c,d,p,h,f,g,m=x.hasData(t)&&x.get(t);if(m&&(u=m.events)){for(l=(e=(e||"").match(D)||[""]).length;l--;)if(h=g=(s=St.exec(e[l])||[])[1],f=(s[2]||"").split(".").sort(),h){for(d=C.event.special[h]||{},p=u[h=(o?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=p.length;r--;)c=p[r],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||o&&o!==c.selector&&("**"!==o||!c.selector)||(p.splice(r,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(t,c));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(t,f,m.handle)||C.removeEvent(t,h,m.handle),delete u[h])}else for(h in u)C.event.remove(t,h+e[l],n,o,!0);C.isEmptyObject(u)&&x.remove(t,"handle events")}},dispatch:function(t){var e,n,o,i,r,a=new Array(arguments.length),s=C.event.fix(t),t=(x.get(this,"events")||Object.create(null))[s.type]||[],u=C.event.special[s.type]||{};for(a[0]=s,e=1;e<arguments.length;e++)a[e]=arguments[e];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(r=C.event.handlers.call(this,s,t),e=0;(o=r[e++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==i.namespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(i=((C.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,a))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,o,i,r,a,s=[],u=e.delegateCount,l=t.target;if(u&&l.nodeType&&!("click"===t.type&&1<=t.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(r=[],a={},n=0;n<u;n++)void 0===a[i=(o=e[n]).selector+" "]&&(a[i]=o.needsContext?-1<C(i,this).index(l):C.find(i,this,null,[l]).length),a[i]&&r.push(o);r.length&&s.push({elem:l,handlers:r})}return l=this,u<e.length&&s.push({elem:l,handlers:e.slice(u)}),s},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(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[C.expando]?t:new C.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){t=this||t;return kt.test(t.type)&&t.click&&u(t,"input")&&Bt(t,"click",n),!1},trigger:function(t){t=this||t;return kt.test(t.type)&&t.click&&u(t,"input")&&Bt(t,"click"),!0},_default:function(t){t=t.target;return kt.test(t.type)&&t.click&&u(t,"input")&&x.get(t,"click")||u(t,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},C.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},C.Event=function(t,e){if(!(this instanceof C.Event))return new C.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?n:h,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&&C.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=n,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=n,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=n,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},C.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},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},function(t,e){C.event.special[t]={setup:function(){return Bt(this,t,Et),!1},trigger:function(){return Bt(this,t),!0},_default:function(){return!0},delegateType:e}}),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,i){C.event.special[t]={delegateType:i,bindType:i,handle:function(t){var e,n=t.relatedTarget,o=t.handleObj;return n&&(n===this||C.contains(this,n))||(t.type=o.origType,e=o.handler.apply(this,arguments),t.type=i),e}}}),C.fn.extend({on:function(t,e,n,o){return At(this,t,e,n,o)},one:function(t,e,n,o){return At(this,t,e,n,o,1)},off:function(t,e,n){var o,i;if(t&&t.preventDefault&&t.handleObj)return o=t.handleObj,C(t.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=h),this.each(function(){C.event.remove(this,t,n,e)});for(i in t)this.off(i,e,t[i]);return this}});var Lt=/<script|<style|<link/i,_t=/checked\s*(?:[^=]|=\s*.checked.)/i,Mt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Nt(t,e){return u(t,"table")&&u(11!==e.nodeType?e:e.firstChild,"tr")&&C(t).children("tbody")[0]||t}function Ft(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ht(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function qt(t,e){var n,o,i,r;if(1===e.nodeType){if(x.hasData(t)&&(r=x.get(t).events))for(i in x.remove(e,"handle events"),r)for(n=0,o=r[i].length;n<o;n++)C.event.add(e,i,r[i][n]);l.hasData(t)&&(t=l.access(t),t=C.extend({},t),l.set(e,t))}}function B(n,o,i,r){o=$(o);var t,e,a,s,u,l,c=0,d=n.length,p=d-1,h=o[0],f=v(h);if(f||1<d&&"string"==typeof h&&!m.checkClone&&_t.test(h))return n.each(function(t){var e=n.eq(t);f&&(o[0]=h.call(this,t,e.html())),B(e,o,i,r)});if(d&&(e=(t=jt(o,n[0].ownerDocument,!1,n,r)).firstChild,1===t.childNodes.length&&(t=e),e||r)){for(s=(a=C.map(A(t,"script"),Ft)).length;c<d;c++)u=t,c!==p&&(u=C.clone(u,!0,!0),s&&C.merge(a,A(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,C.map(a,Ht),c=0;c<s;c++)u=a[c],Ct.test(u.type||"")&&!x.access(u,"globalEval")&&C.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?C._evalUrl&&!u.noModule&&C._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):Y(u.textContent.replace(Mt,""),u,l))}return n}function $t(t,e,n){for(var o,i=e?C.filter(e,t):t,r=0;null!=(o=i[r]);r++)n||1!==o.nodeType||C.cleanData(A(o)),o.parentNode&&(n&&j(o)&&Dt(A(o,"script")),o.parentNode.removeChild(o));return t}C.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var o,i,r,a,s,u,l,c=t.cloneNode(!0),d=j(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(a=A(c),o=0,i=(r=A(t)).length;o<i;o++)s=r[o],u=a[o],l=void 0,"input"===(l=u.nodeName.toLowerCase())&&kt.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(e)if(n)for(r=r||A(t),a=a||A(c),o=0,i=r.length;o<i;o++)qt(r[o],a[o]);else qt(t,c);return 0<(a=A(c,"script")).length&&Dt(a,!d&&A(t,"script")),c},cleanData:function(t){for(var e,n,o,i=C.event.special,r=0;void 0!==(n=t[r]);r++)if(y(n)){if(e=n[x.expando]){if(e.events)for(o in e.events)i[o]?C.event.remove(n,o):C.removeEvent(n,o,e.handle);n[x.expando]=void 0}n[l.expando]&&(n[l.expando]=void 0)}}}),C.fn.extend({detach:function(t){return $t(this,t,!0)},remove:function(t){return $t(this,t)},text:function(t){return d(this,function(t){return void 0===t?C.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 B(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Nt(this,t).appendChild(t)})},prepend:function(){return B(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Nt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return B(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return B(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&&(C.cleanData(A(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return d(this,function(t){var e=this[0]||{},n=0,o=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Lt.test(t)&&!E[(wt.exec(t)||["",""])[1].toLowerCase()]){t=C.htmlPrefilter(t);try{for(;n<o;n++)1===(e=this[n]||{}).nodeType&&(C.cleanData(A(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return B(this,arguments,function(t){var e=this.parentNode;C.inArray(this,n)<0&&(C.cleanData(A(this)),e&&e.replaceChild(t,this))},n)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){C.fn[t]=function(t){for(var e,n=[],o=C(t),i=o.length-1,r=0;r<=i;r++)e=r===i?this:this.clone(!0),C(o[r])[a](e),R.apply(n,e.get());return this.pushStack(n)}});function Rt(t){var e=t.ownerDocument.defaultView;return(e=e&&e.opener?e:k).getComputedStyle(t)}function Ot(t,e,n){var o,i={};for(o in e)i[o]=t.style[o],t.style[o]=e[o];for(o in n=n.call(t),e)t.style[o]=i[o];return n}var Pt,It,Wt,Vt,zt,Ut,Yt,i,Xt=new RegExp("^("+t+")(?!px)[a-z%]+$","i"),Zt=new RegExp(p.join("|"),"i");function Kt(){var t;i&&(Yt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",i.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",T.appendChild(Yt).appendChild(i),t=k.getComputedStyle(i),Pt="1%"!==t.top,Ut=12===Jt(t.marginLeft),i.style.right="60%",Vt=36===Jt(t.right),It=36===Jt(t.width),i.style.position="absolute",Wt=12===Jt(i.offsetWidth/3),T.removeChild(Yt),i=null)}function Jt(t){return Math.round(parseFloat(t))}function Gt(t,e,n){var o,i,r=t.style;return(n=n||Rt(t))&&(""!==(i=n.getPropertyValue(e)||n[e])||j(t)||(i=C.style(t,e)),!m.pixelBoxStyles()&&Xt.test(i)&&Zt.test(e)&&(t=r.width,e=r.minWidth,o=r.maxWidth,r.minWidth=r.maxWidth=r.width=i,i=n.width,r.width=t,r.minWidth=e,r.maxWidth=o)),void 0!==i?i+"":i}function Qt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}Yt=w.createElement("div"),(i=w.createElement("div")).style&&(i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===i.style.backgroundClip,C.extend(m,{boxSizingReliable:function(){return Kt(),It},pixelBoxStyles:function(){return Kt(),Vt},pixelPosition:function(){return Kt(),Pt},reliableMarginLeft:function(){return Kt(),Ut},scrollboxSize:function(){return Kt(),Wt},reliableTrDimensions:function(){var t,e,n;return null==zt&&(t=w.createElement("table"),e=w.createElement("tr"),n=w.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",T.appendChild(t).appendChild(e).appendChild(n),n=k.getComputedStyle(e),zt=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===e.offsetHeight,T.removeChild(t)),zt}}));var te=["Webkit","Moz","ms"],ee=w.createElement("div").style,ne={};function oe(t){var e=C.cssProps[t]||ne[t];return e||(t in ee?t:ne[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=te.length;n--;)if((t=te[n]+e)in ee)return t}(t)||t)}var ie=/^(none|table(?!-c[ea]).+)/,re=/^--/,ae={position:"absolute",visibility:"hidden",display:"block"},se={letterSpacing:"0",fontWeight:"400"};function ue(t,e,n){var o=yt.exec(e);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):e}function le(t,e,n,o,i,r){var a="width"===e?1:0,s=0,u=0;if(n===(o?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=C.css(t,n+p[a],!0,i)),o?("content"===n&&(u-=C.css(t,"padding"+p[a],!0,i)),"margin"!==n&&(u-=C.css(t,"border"+p[a]+"Width",!0,i))):(u+=C.css(t,"padding"+p[a],!0,i),"padding"!==n?u+=C.css(t,"border"+p[a]+"Width",!0,i):s+=C.css(t,"border"+p[a]+"Width",!0,i));return!o&&0<=r&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-u-s-.5))||0),u}function ce(t,e,n){var o=Rt(t),i=(!m.boxSizingReliable()||n)&&"border-box"===C.css(t,"boxSizing",!1,o),r=i,a=Gt(t,e,o),s="offset"+e[0].toUpperCase()+e.slice(1);if(Xt.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&u(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===C.css(t,"display",!1,o))&&t.getClientRects().length&&(i="border-box"===C.css(t,"boxSizing",!1,o),(r=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+le(t,e,n||(i?"border":"content"),r,o,a)+"px"}function r(t,e,n,o,i){return new r.prototype.init(t,e,n,o,i)}C.extend({cssHooks:{opacity:{get:function(t,e){if(e)return""===(e=Gt(t,"opacity"))?"1":e}}},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,o){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,r,a,s=b(e),u=re.test(e),l=t.style;if(u||(e=oe(s)),a=C.cssHooks[e]||C.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,o))?i:l[e];"string"===(r=typeof n)&&(i=yt.exec(n))&&i[1]&&(n=bt(t,e,i),r="number"),null!=n&&n==n&&("number"!==r||u||(n+=i&&i[3]||(C.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,o))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,o){var i,r=b(e);return re.test(e)||(e=oe(r)),"normal"===(i=void 0===(i=(r=C.cssHooks[e]||C.cssHooks[r])&&"get"in r?r.get(t,!0,n):i)?Gt(t,e,o):i)&&e in se&&(i=se[e]),""===n||n?(r=parseFloat(i),!0===n||isFinite(r)?r||0:i):i}}),C.each(["height","width"],function(t,a){C.cssHooks[a]={get:function(t,e,n){if(e)return!ie.test(C.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ce(t,a,n):Ot(t,ae,function(){return ce(t,a,n)})},set:function(t,e,n){var o=Rt(t),i=!m.scrollboxSize()&&"absolute"===o.position,r=(i||n)&&"border-box"===C.css(t,"boxSizing",!1,o),n=n?le(t,a,n,r,o):0;return r&&i&&(n-=Math.ceil(t["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(o[a])-le(t,a,"border",!1,o)-.5)),n&&(r=yt.exec(e))&&"px"!==(r[3]||"px")&&(t.style[a]=e,e=C.css(t,a)),ue(0,e,n)}}}),C.cssHooks.marginLeft=Qt(m.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Gt(t,"marginLeft"))||t.getBoundingClientRect().left-Ot(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(i,r){C.cssHooks[i+r]={expand:function(t){for(var e=0,n={},o="string"==typeof t?t.split(" "):[t];e<4;e++)n[i+p[e]+r]=o[e]||o[e-2]||o[0];return n}},"margin"!==i&&(C.cssHooks[i+r].set=ue)}),C.fn.extend({css:function(t,e){return d(this,function(t,e,n){var o,i,r={},a=0;if(Array.isArray(e)){for(o=Rt(t),i=e.length;a<i;a++)r[e[a]]=C.css(t,e[a],!1,o);return r}return void 0!==n?C.style(t,e,n):C.css(t,e)},t,e,1<arguments.length)}}),((C.Tween=r).prototype={constructor:r,init:function(t,e,n,o,i,r){this.elem=t,this.prop=n,this.easing=i||C.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=o,this.unit=r||(C.cssNumber[n]?"":"px")},cur:function(){var t=r.propHooks[this.prop];return(t&&t.get?t:r.propHooks._default).get(this)},run:function(t){var e,n=r.propHooks[this.prop];return this.options.duration?this.pos=e=C.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:r.propHooks._default).set(this),this}}).init.prototype=r.prototype,(r.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=C.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){C.fx.step[t.prop]?C.fx.step[t.prop](t):1!==t.elem.nodeType||!C.cssHooks[t.prop]&&null==t.elem.style[oe(t.prop)]?t.elem[t.prop]=t.now:C.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=r.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},C.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},C.fx=r.prototype.init,C.fx.step={};var L,de,a,_,pe=/^(?:toggle|show|hide)$/,he=/queueHooks$/;function fe(){de&&(!1===w.hidden&&k.requestAnimationFrame?k.requestAnimationFrame(fe):k.setTimeout(fe,C.fx.interval),C.fx.tick())}function ge(){return k.setTimeout(function(){L=void 0}),L=Date.now()}function me(t,e){var n,o=0,i={height:t};for(e=e?1:0;o<4;o+=2-e)i["margin"+(n=p[o])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function ye(t,e,n){for(var o,i=(M.tweeners[e]||[]).concat(M.tweeners["*"]),r=0,a=i.length;r<a;r++)if(o=i[r].call(n,e,t))return o}function M(i,t,e){var n,r,o,a,s,u,l,c=0,d=M.prefilters.length,p=C.Deferred().always(function(){delete h.elem}),h=function(){if(r)return!1;for(var t=L||ge(),t=Math.max(0,f.startTime+f.duration-t),e=1-(t/f.duration||0),n=0,o=f.tweens.length;n<o;n++)f.tweens[n].run(e);return p.notifyWith(i,[f,e,t]),e<1&&o?t:(o||p.notifyWith(i,[f,1,0]),p.resolveWith(i,[f]),!1)},f=p.promise({elem:i,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},e),originalProperties:t,originalOptions:e,startTime:L||ge(),duration:e.duration,tweens:[],createTween:function(t,e){e=C.Tween(i,f.opts,t,e,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(e),e},stop:function(t){var e=0,n=t?f.tweens.length:0;if(r)return this;for(r=!0;e<n;e++)f.tweens[e].run(1);return t?(p.notifyWith(i,[f,1,0]),p.resolveWith(i,[f,t])):p.rejectWith(i,[f,t]),this}}),g=f.props,m=g,y=f.opts.specialEasing;for(o in m)if(s=y[a=b(o)],u=m[o],Array.isArray(u)&&(s=u[1],u=m[o]=u[0]),o!==a&&(m[a]=u,delete m[o]),(l=C.cssHooks[a])&&"expand"in l)for(o in u=l.expand(u),delete m[a],u)o in m||(m[o]=u[o],y[o]=s);else y[a]=s;for(;c<d;c++)if(n=M.prefilters[c].call(f,i,g,f.opts))return v(n.stop)&&(C._queueHooks(f.elem,f.opts.queue).stop=n.stop.bind(n)),n;return C.map(g,ye,f),v(f.opts.start)&&f.opts.start.call(i,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),C.fx.timer(C.extend(h,{elem:i,anim:f,queue:f.opts.queue})),f}C.Animation=C.extend(M,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return bt(n.elem,t,yt.exec(e),n),n}]},tweener:function(t,e){for(var n,o=0,i=(t=v(t)?(e=t,["*"]):t.match(D)).length;o<i;o++)n=t[o],M.tweeners[n]=M.tweeners[n]||[],M.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var o,i,r,a,s,u,l,c="width"in e||"height"in e,d=this,p={},h=t.style,f=t.nodeType&&mt(t),g=x.get(t,"fxshow");for(o in n.queue||(null==(a=C._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,C.queue(t,"fx").length||a.empty.fire()})})),e)if(i=e[o],pe.test(i)){if(delete e[o],r=r||"toggle"===i,i===(f?"hide":"show")){if("show"!==i||!g||void 0===g[o])continue;f=!0}p[o]=g&&g[o]||C.style(t,o)}if((u=!C.isEmptyObject(e))||!C.isEmptyObject(p))for(o in c&&1===t.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=g&&g.display)&&(l=x.get(t,"display")),"none"===(c=C.css(t,"display"))&&(l?c=l:(S([t],!0),l=t.style.display||l,c=C.css(t,"display"),S([t]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===C.css(t,"float")&&(u||(d.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,p)u||(g?"hidden"in g&&(f=g.hidden):g=x.access(t,"fxshow",{display:l}),r&&(g.hidden=!f),f&&S([t],!0),d.done(function(){for(o in f||S([t]),x.remove(t,"fxshow"),p)C.style(t,o,p[o])})),u=ye(f?g[o]:0,o,d),o in g||(g[o]=u.start,f&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?M.prefilters.unshift(t):M.prefilters.push(t)}}),C.speed=function(t,e,n){var o=t&&"object"==typeof t?C.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return C.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in C.fx.speeds?o.duration=C.fx.speeds[o.duration]:o.duration=C.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){v(o.old)&&o.old.call(this),o.queue&&C.dequeue(this,o.queue)},o},C.fn.extend({fadeTo:function(t,e,n,o){return this.filter(mt).css("opacity",0).show().end().animate({opacity:e},t,n,o)},animate:function(e,t,n,o){function i(){var t=M(this,C.extend({},e),a);(r||x.get(this,"finish"))&&t.stop(!0)}var r=C.isEmptyObject(e),a=C.speed(t,n,o);return i.finish=i,r||!1===a.queue?this.each(i):this.queue(a.queue,i)},stop:function(i,t,r){function a(t){var e=t.stop;delete t.stop,e(r)}return"string"!=typeof i&&(r=t,t=i,i=void 0),t&&this.queue(i||"fx",[]),this.each(function(){var t=!0,e=null!=i&&i+"queueHooks",n=C.timers,o=x.get(this);if(e)o[e]&&o[e].stop&&a(o[e]);else for(e in o)o[e]&&o[e].stop&&he.test(e)&&a(o[e]);for(e=n.length;e--;)n[e].elem!==this||null!=i&&n[e].queue!==i||(n[e].anim.stop(r),t=!1,n.splice(e,1));!t&&r||C.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=x.get(this),n=e[a+"queue"],o=e[a+"queueHooks"],i=C.timers,r=n?n.length:0;for(e.finish=!0,C.queue(this,a,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===a&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<r;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),C.each(["toggle","show","hide"],function(t,o){var i=C.fn[o];C.fn[o]=function(t,e,n){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(me(o,!0),t,e,n)}}),C.each({slideDown:me("show"),slideUp:me("hide"),slideToggle:me("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,o){C.fn[t]=function(t,e,n){return this.animate(o,t,e,n)}}),C.timers=[],C.fx.tick=function(){var t,e=0,n=C.timers;for(L=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||C.fx.stop(),L=void 0},C.fx.timer=function(t){C.timers.push(t),C.fx.start()},C.fx.interval=13,C.fx.start=function(){de||(de=!0,fe())},C.fx.stop=function(){de=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(o,t){return o=C.fx&&C.fx.speeds[o]||o,this.queue(t=t||"fx",function(t,e){var n=k.setTimeout(t,o);e.stop=function(){k.clearTimeout(n)}})},a=w.createElement("input"),_=w.createElement("select").appendChild(w.createElement("option")),a.type="checkbox",m.checkOn=""!==a.value,m.optSelected=_.selected,(a=w.createElement("input")).value="t",a.type="radio",m.radioValue="t"===a.value;var ve,be=C.expr.attrHandle,xe=(C.fn.extend({attr:function(t,e){return d(this,C.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){C.removeAttr(this,t)})}}),C.extend({attr:function(t,e,n){var o,i,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?C.prop(t,e,n):(1===r&&C.isXMLDoc(t)||(i=C.attrHooks[e.toLowerCase()]||(C.expr.match.bool.test(e)?ve:void 0)),void 0!==n?null===n?void C.removeAttr(t,e):i&&"set"in i&&void 0!==(o=i.set(t,n,e))?o:(t.setAttribute(e,n+""),n):!(i&&"get"in i&&null!==(o=i.get(t,e)))&&null==(o=C.find.attr(t,e))?void 0:o)},attrHooks:{type:{set:function(t,e){var n;if(!m.radioValue&&"radio"===e&&u(t,"input"))return n=t.value,t.setAttribute("type",e),n&&(t.value=n),e}}},removeAttr:function(t,e){var n,o=0,i=e&&e.match(D);if(i&&1===t.nodeType)for(;n=i[o++];)t.removeAttribute(n)}}),ve={set:function(t,e,n){return!1===e?C.removeAttr(t,n):t.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(t,e){var a=be[e]||C.find.attr;be[e]=function(t,e,n){var o,i,r=e.toLowerCase();return n||(i=be[r],be[r]=o,o=null!=a(t,e,n)?r:null,be[r]=i),o}}),/^(?:input|select|textarea|button)$/i),ke=/^(?:a|area)$/i;function N(t){return(t.match(D)||[]).join(" ")}function F(t){return t.getAttribute&&t.getAttribute("class")||""}function we(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(D)||[]}C.fn.extend({prop:function(t,e){return d(this,C.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[C.propFix[t]||t]})}}),C.extend({prop:function(t,e,n){var o,i,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&C.isXMLDoc(t)||(e=C.propFix[e]||e,i=C.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(o=i.set(t,n,e))?o:t[e]=n:i&&"get"in i&&null!==(o=i.get(t,e))?o:t[e]},propHooks:{tabIndex:{get:function(t){var e=C.find.attr(t,"tabindex");return e?parseInt(e,10):xe.test(t.nodeName)||ke.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(C.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)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(e){var t,n,o,i,r,a,s=0;if(v(e))return this.each(function(t){C(this).addClass(e.call(this,t,F(this)))});if((t=we(e)).length)for(;n=this[s++];)if(a=F(n),o=1===n.nodeType&&" "+N(a)+" "){for(r=0;i=t[r++];)o.indexOf(" "+i+" ")<0&&(o+=i+" ");a!==(a=N(o))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,o,i,r,a,s=0;if(v(e))return this.each(function(t){C(this).removeClass(e.call(this,t,F(this)))});if(!arguments.length)return this.attr("class","");if((t=we(e)).length)for(;n=this[s++];)if(a=F(n),o=1===n.nodeType&&" "+N(a)+" "){for(r=0;i=t[r++];)for(;-1<o.indexOf(" "+i+" ");)o=o.replace(" "+i+" "," ");a!==(a=N(o))&&n.setAttribute("class",a)}return this},toggleClass:function(i,e){var r=typeof i,a="string"==r||Array.isArray(i);return"boolean"==typeof e&&a?e?this.addClass(i):this.removeClass(i):v(i)?this.each(function(t){C(this).toggleClass(i.call(this,t,F(this),e),e)}):this.each(function(){var t,e,n,o;if(a)for(e=0,n=C(this),o=we(i);t=o[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==i&&"boolean"!=r||((t=F(this))&&x.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==i&&x.get(this,"__className__")||""))})},hasClass:function(t){for(var e,n=0,o=" "+t+" ";e=this[n++];)if(1===e.nodeType&&-1<(" "+N(F(e))+" ").indexOf(o))return!0;return!1}});function Ce(t){t.stopPropagation()}var De=/\r/g,Te=(C.fn.extend({val:function(e){var n,t,o,i=this[0];return arguments.length?(o=v(e),this.each(function(t){1===this.nodeType&&(null==(t=o?e.call(this,t,C(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=C.map(t,function(t){return null==t?"":t+""})),(n=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):i?(n=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(i,"value"))?t:"string"==typeof(t=i.value)?t.replace(De,""):null==t?"":t:void 0}}),C.extend({valHooks:{option:{get:function(t){var e=C.find.attr(t,"value");return null!=e?e:N(C.text(t))}},select:{get:function(t){for(var e,n=t.options,o=t.selectedIndex,i="select-one"===t.type,r=i?null:[],a=i?o+1:n.length,s=o<0?a:i?o:0;s<a;s++)if(((e=n[s]).selected||s===o)&&!e.disabled&&(!e.parentNode.disabled||!u(e.parentNode,"optgroup"))){if(e=C(e).val(),i)return e;r.push(e)}return r},set:function(t,e){for(var n,o,i=t.options,r=C.makeArray(e),a=i.length;a--;)((o=i[a]).selected=-1<C.inArray(C.valHooks.option.get(o),r))&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<C.inArray(C(t).val(),e)}},m.checkOn||(C.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),m.focusin="onfocusin"in k,/^(?:focusinfocus|focusoutblur)$/),je=(C.extend(C.event,{trigger:function(t,e,n,o){var i,r,a,s,u,l,c,d=[n||w],p=W.call(t,"type")?t.type:t,h=W.call(t,"namespace")?t.namespace.split("."):[],f=c=r=n=n||w;if(3!==n.nodeType&&8!==n.nodeType&&!Te.test(p+C.event.triggered)&&(-1<p.indexOf(".")&&(p=(h=p.split(".")).shift(),h.sort()),s=p.indexOf(":")<0&&"on"+p,(t=t[C.expando]?t:new C.Event(p,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:C.makeArray(e,[t]),l=C.event.special[p]||{},o||!l.trigger||!1!==l.trigger.apply(n,e))){if(!o&&!l.noBubble&&!g(n)){for(a=l.delegateType||p,Te.test(a+p)||(f=f.parentNode);f;f=f.parentNode)d.push(f),r=f;r===(n.ownerDocument||w)&&d.push(r.defaultView||r.parentWindow||k)}for(i=0;(f=d[i++])&&!t.isPropagationStopped();)c=f,t.type=1<i?a:l.bindType||p,(u=(x.get(f,"events")||Object.create(null))[t.type]&&x.get(f,"handle"))&&u.apply(f,e),(u=s&&f[s])&&u.apply&&y(f)&&(t.result=u.apply(f,e),!1===t.result&&t.preventDefault());return t.type=p,o||t.isDefaultPrevented()||l._default&&!1!==l._default.apply(d.pop(),e)||!y(n)||s&&v(n[p])&&!g(n)&&((r=n[s])&&(n[s]=null),C.event.triggered=p,t.isPropagationStopped()&&c.addEventListener(p,Ce),n[p](),t.isPropagationStopped()&&c.removeEventListener(p,Ce),C.event.triggered=void 0,r&&(n[s]=r)),t.result}},simulate:function(t,e,n){n=C.extend(new C.Event,n,{type:t,isSimulated:!0});C.event.trigger(n,null,e)}}),C.fn.extend({trigger:function(t,e){return this.each(function(){C.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return C.event.trigger(t,e,n,!0)}}),m.focusin||C.each({focus:"focusin",blur:"focusout"},function(n,o){function i(t){C.event.simulate(o,t.target,C.event.fix(t))}C.event.special[o]={setup:function(){var t=this.ownerDocument||this.document||this,e=x.access(t,o);e||t.addEventListener(n,i,!0),x.access(t,o,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,e=x.access(t,o)-1;e?x.access(t,o,e):(t.removeEventListener(n,i,!0),x.remove(t,o))}}}),k.location),Se={guid:Date.now()},Ee=/\?/,Ae=(C.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new k.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||C.error("Invalid XML: "+(n?C.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e},/\[\]$/),Be=/\r?\n/g,Le=/^(?:submit|button|image|reset|file)$/i,_e=/^(?:input|select|textarea|keygen)/i;C.param=function(t,e){function n(t,e){e=v(e)?e():e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var o,i=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!C.isPlainObject(t))C.each(t,function(){n(this.name,this.value)});else for(o in t)!function n(o,t,i,r){if(Array.isArray(t))C.each(t,function(t,e){i||Ae.test(o)?r(o,e):n(o+"["+("object"==typeof e&&null!=e?t:"")+"]",e,i,r)});else if(i||"object"!==f(t))r(o,t);else for(var e in t)n(o+"["+e+"]",t[e],i,r)}(o,t[o],e,n);return i.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=C.prop(this,"elements");return t?C.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!C(this).is(":disabled")&&_e.test(this.nodeName)&&!Le.test(t)&&(this.checked||!kt.test(t))}).map(function(t,e){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(t){return{name:e.name,value:t.replace(Be,"\r\n")}}):{name:e.name,value:n.replace(Be,"\r\n")}}).get()}});var Me=/%20/g,Ne=/#.*$/,Fe=/([?&])_=[^&]*/,He=/^(.*?):[ \t]*([^\r\n]*)$/gm,qe=/^(?:GET|HEAD)$/,$e=/^\/\//,Re={},Oe={},Pe="*/".concat("*"),Ie=w.createElement("a");function We(r){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,o=0,i=t.toLowerCase().match(D)||[];if(v(e))for(;n=i[o++];)"+"===n[0]?(n=n.slice(1)||"*",(r[n]=r[n]||[]).unshift(e)):(r[n]=r[n]||[]).push(e)}}function Ve(e,o,i,r){var a={},s=e===Oe;function u(t){var n;return a[t]=!0,C.each(e[t]||[],function(t,e){e=e(o,i,r);return"string"!=typeof e||s||a[e]?s?!(n=e):void 0:(o.dataTypes.unshift(e),u(e),!1)}),n}return u(o.dataTypes[0])||!a["*"]&&u("*")}function ze(t,e){var n,o,i=C.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:o=o||{})[n]=e[n]);return o&&C.extend(!0,t,o),t}Ie.href=je.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:je.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(je.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pe,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":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ze(ze(t,C.ajaxSettings),e):ze(C.ajaxSettings,t)},ajaxPrefilter:We(Re),ajaxTransport:We(Oe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var u,l,c,n,d,p,h,o,f=C.ajaxSetup({},e=e||{}),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?C(g):C.event,y=C.Deferred(),v=C.Callbacks("once memory"),b=f.statusCode||{},i={},r={},a="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(p){if(!n)for(n={};e=He.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 p?c:null},setRequestHeader:function(t,e){return null==p&&(t=r[t.toLowerCase()]=r[t.toLowerCase()]||t,i[t]=e),this},overrideMimeType:function(t){return null==p&&(f.mimeType=t),this},statusCode:function(t){if(t)if(p)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 u&&u.abort(t),s(0,t),this}};if(y.promise(x),f.url=((t||f.url||je.href)+"").replace($e,je.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(D)||[""],null==f.crossDomain){t=w.createElement("a");try{t.href=f.url,t.href=t.href,f.crossDomain=Ie.protocol+"//"+Ie.host!=t.protocol+"//"+t.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),Ve(Re,f,e,x),p)return x;for(o in(h=C.event&&f.global)&&0==C.active++&&C.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!qe.test(f.type),l=f.url.replace(Ne,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Me,"+")):(t=f.url.slice(l.length),f.data&&(f.processData||"string"==typeof f.data)&&(l+=(Ee.test(l)?"&":"?")+f.data,delete f.data),!1===f.cache&&(l=l.replace(Fe,"$1"),t=(Ee.test(l)?"&":"?")+"_="+Se.guid+++t),f.url=l+t),f.ifModified&&(C.lastModified[l]&&x.setRequestHeader("If-Modified-Since",C.lastModified[l]),C.etag[l]&&x.setRequestHeader("If-None-Match",C.etag[l])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Pe+"; q=0.01":""):f.accepts["*"]),f.headers)x.setRequestHeader(o,f.headers[o]);if(f.beforeSend&&(!1===f.beforeSend.call(g,x,f)||p))return x.abort();if(a="abort",v.add(f.complete),x.done(f.success),x.fail(f.error),u=Ve(Oe,f,e,x)){if(x.readyState=1,h&&m.trigger("ajaxSend",[x,f]),p)return x;f.async&&0<f.timeout&&(d=k.setTimeout(function(){x.abort("timeout")},f.timeout));try{p=!1,u.send(i,s)}catch(t){if(p)throw t;s(-1,t)}}else s(-1,"No Transport");function s(t,e,n,o){var i,r,a,s=e;p||(p=!0,d&&k.clearTimeout(d),u=void 0,c=o||"",x.readyState=0<t?4:0,o=200<=t&&t<300||304===t,n&&(a=function(t,e,n){for(var o,i,r,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===o&&(o=t.mimeType||e.getResponseHeader("Content-Type"));if(o)for(i in s)if(s[i]&&s[i].test(o)){u.unshift(i);break}if(u[0]in n)r=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){r=i;break}a=a||i}r=r||a}if(r)return r!==u[0]&&u.unshift(r),n[r]}(f,x,n)),!o&&-1<C.inArray("script",f.dataTypes)&&C.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),a=function(t,e,n,o){var i,r,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(r=c.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!u&&o&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=r,r=c.shift())if("*"===r)r=u;else if("*"!==u&&u!==r){if(!(a=l[u+" "+r]||l["* "+r]))for(i in l)if((s=i.split(" "))[1]===r&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(r=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+r}}}return{state:"success",data:e}}(f,a,x,o),o?(f.ifModified&&((n=x.getResponseHeader("Last-Modified"))&&(C.lastModified[l]=n),(n=x.getResponseHeader("etag"))&&(C.etag[l]=n)),204===t||"HEAD"===f.type?s="nocontent":304===t?s="notmodified":(s=a.state,i=a.data,o=!(r=a.error))):(r=s,!t&&s||(s="error",t<0&&(t=0))),x.status=t,x.statusText=(e||s)+"",o?y.resolveWith(g,[i,s,x]):y.rejectWith(g,[x,s,r]),x.statusCode(b),b=void 0,h&&m.trigger(o?"ajaxSuccess":"ajaxError",[x,f,o?i:r]),v.fireWith(g,[x,s]),h&&(m.trigger("ajaxComplete",[x,f]),--C.active||C.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,n){return C.get(t,e,n,"json")},getScript:function(t,e){return C.get(t,void 0,e,"script")}}),C.each(["get","post"],function(t,i){C[i]=function(t,e,n,o){return v(e)&&(o=o||n,n=e,e=void 0),C.ajax(C.extend({url:t,type:i,dataType:o,data:e,success:n},C.isPlainObject(t)&&t))}}),C.ajaxPrefilter(function(t){for(var e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),C._evalUrl=function(t,e,n){return C.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){C.globalEval(t,e,n)}})},C.fn.extend({wrapAll:function(t){return this[0]&&(v(t)&&(t=t.call(this[0])),t=C(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 v(n)?this.each(function(t){C(this).wrapInner(n.call(this,t))}):this.each(function(){var t=C(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=v(e);return this.each(function(t){C(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(t){return!C.expr.pseudos.visible(t)},C.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new k.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},Ye=C.ajaxSettings.xhr(),Xe=(m.cors=!!Ye&&"withCredentials"in Ye,m.ajax=Ye=!!Ye,C.ajaxTransport(function(i){var r,a;if(m.cors||Ye&&!i.crossDomain)return{send:function(t,e){var n,o=i.xhr();if(o.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)o[n]=i.xhrFields[n];for(n in i.mimeType&&o.overrideMimeType&&o.overrideMimeType(i.mimeType),i.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)o.setRequestHeader(n,t[n]);r=function(t){return function(){r&&(r=a=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===t?o.abort():"error"===t?"number"!=typeof o.status?e(0,"error"):e(o.status,o.statusText):e(Ue[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=r(),a=o.onerror=o.ontimeout=r("error"),void 0!==o.onabort?o.onabort=a:o.onreadystatechange=function(){4===o.readyState&&k.setTimeout(function(){r&&a()})},r=r("abort");try{o.send(i.hasContent&&i.data||null)}catch(t){if(r)throw t}},abort:function(){r&&r()}}}),C.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),C.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 C.globalEval(t),t}}}),C.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),C.ajaxTransport("script",function(n){var o,i;if(n.crossDomain||n.scriptAttrs)return{send:function(t,e){o=C("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(t){o.remove(),i=null,t&&e("error"===t.type?404:200,t.type)}),w.head.appendChild(o[0])},abort:function(){i&&i()}}}),[]),Ze=/(=)\?(?=&|$)|\?\?/,Ke=(C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||C.expando+"_"+Se.guid++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,n){var o,i,r,a=!1!==t.jsonp&&(Ze.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ze.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ze,"$1"+o):!1!==t.jsonp&&(t.url+=(Ee.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return r||C.error(o+" was not called"),r[0]},t.dataTypes[0]="json",i=k[o],k[o]=function(){r=arguments},n.always(function(){void 0===i?C(k).removeProp(o):k[o]=i,t[o]&&(t.jsonpCallback=e.jsonpCallback,Xe.push(o)),r&&v(i)&&i(r[0]),r=i=void 0}),"script"}),m.createHTMLDocument=((t=w.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===t.childNodes.length),C.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((o=(e=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,e.head.appendChild(o)):e=w),o=!n&&[],(n=J.exec(t))?[e.createElement(n[1])]:(n=jt([t],e,o),o&&o.length&&C(o).remove(),C.merge([],n.childNodes)));var o},C.fn.load=function(t,e,n){var o,i,r,a=this,s=t.indexOf(" ");return-1<s&&(o=N(t.slice(s)),t=t.slice(0,s)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),0<a.length&&C.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){r=arguments,a.html(o?C("<div>").append(C.parseHTML(t)).find(o):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(t,e,n){var o,i,r,a,s=C.css(t,"position"),u=C(t),l={};"static"===s&&(t.style.position="relative"),r=u.offset(),o=C.css(t,"top"),a=C.css(t,"left"),s=("absolute"===s||"fixed"===s)&&-1<(o+a).indexOf("auto")?(i=(s=u.position()).top,s.left):(i=parseFloat(o)||0,parseFloat(a)||0),null!=(e=v(e)?e.call(t,n,C.extend({},r)):e).top&&(l.top=e.top-r.top+i),null!=e.left&&(l.left=e.left-r.left+s),"using"in e?e.using.call(t,l):u.css(l)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.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,o=this[0],i={top:0,left:0};if("fixed"===C.css(o,"position"))e=o.getBoundingClientRect();else{for(e=this.offset(),n=o.ownerDocument,t=o.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===C.css(t,"position");)t=t.parentNode;t&&t!==o&&1===t.nodeType&&((i=C(t).offset()).top+=C.css(t,"borderTopWidth",!0),i.left+=C.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-C.css(o,"marginTop",!0),left:e.left-i.left-C.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===C.css(t,"position");)t=t.offsetParent;return t||T})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var r="pageYOffset"===i;C.fn[e]=function(t){return d(this,function(t,e,n){var o;if(g(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===n)return o?o[i]:t[e];o?o.scrollTo(r?o.pageXOffset:n,r?n:o.pageYOffset):t[e]=n},e,t,arguments.length)}}),C.each(["top","left"],function(t,n){C.cssHooks[n]=Qt(m.pixelPosition,function(t,e){if(e)return e=Gt(t,n),Xt.test(e)?C(t).position()[n]+"px":e})}),C.each({Height:"height",Width:"width"},function(a,s){C.each({padding:"inner"+a,content:s,"":"outer"+a},function(o,r){C.fn[r]=function(t,e){var n=arguments.length&&(o||"boolean"!=typeof t),i=o||(!0===t||!0===e?"margin":"border");return d(this,function(t,e,n){var o;return g(t)?0===r.indexOf("outer")?t["inner"+a]:t.document.documentElement["client"+a]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+a],o["scroll"+a],t.body["offset"+a],o["offset"+a],o["client"+a])):void 0===n?C.css(t,e,i):C.style(t,e,n,i)},s,n?t:void 0,n)}})}),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C.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,o){return this.on(e,t,n,o)},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)}}),C.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){C.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g),Je=(C.proxy=function(t,e){var n,o;if("string"==typeof e&&(o=t[e],e=t,t=o),v(t))return n=s.call(arguments,2),(o=function(){return t.apply(e||this,n.concat(s.call(arguments)))}).guid=t.guid=t.guid||C.guid++,o},C.holdReady=function(t){t?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=u,C.isFunction=v,C.isWindow=g,C.camelCase=b,C.type=f,C.now=Date.now,C.isNumeric=function(t){var e=C.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},C.trim=function(t){return null==t?"":(t+"").replace(Ke,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return C}),k.jQuery),Ge=k.$;return C.noConflict=function(t){return k.$===C&&(k.$=Ge),t&&k.jQuery===C&&(k.jQuery=Je),C},void 0===H&&(k.jQuery=k.$=C),C});var s=jQuery.noConflict(!0),u={};function t(t,e){if(!t)return this;var n=Object.freeze({properties:{excludedDates:{type:"string"},excludedDays:{type:"string"},leadingZeros:{type:"string"},maxDate:{type:"string"},minDate:{type:"string"},weekStartDay:{type:"string"}}});this.config=this.mergeConfigs({leadingZeros:!1,weekStartDay:"monday"},e,this.parseDataset(n,t.dataset)),this.dayLabels=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],this.monthLabels=["January","February","March","April","May","June","July","August","September","October","November","December"],this.currentDate=new Date,this.currentDate.setHours(0,0,0,0),this.calendarDays=[],this.excludedDates=[],this.excludedDays=[],this.buttonClass="moj-datepicker__button",this.selectedDayButtonClass="moj-datepicker__button--selected",this.currentDayButtonClass="moj-datepicker__button--current",this.todayButtonClass="moj-datepicker__button--today",this.$module=t,this.$input=t.querySelector(".moj-js-datepicker-input")}function l(t,e,n,o,i){this.index=e,this.row=n,this.column=o,this.button=t,this.picker=i,this.date=new Date}return u.removeAttributeValue=function(t,e,n){var o;t.getAttribute(e)&&(t.getAttribute(e)==n?t.removeAttribute(e):(n=new RegExp("(^|\\s)"+n+"(\\s|$)"),(o=t.getAttribute(e).match(n))&&3==o.length&&t.setAttribute(e,t.getAttribute(e).replace(n,o[1]&&o[2]?" ":""))))},u.addAttributeValue=function(t,e,n){t.getAttribute(e)?new RegExp("(^|\\s)"+n+"(\\s|$)").test(t.getAttribute(e))||t.setAttribute(e,t.getAttribute(e)+" "+n):t.setAttribute(e,n)},u.dragAndDropSupported=function(){return void 0!==document.createElement("div").ondrop},u.formDataSupported=function(){return"function"==typeof FormData},u.fileApiSupported=function(){var t=document.createElement("input");return t.type="file",void 0!==t.files},u.nodeListForEach=function(t,e){if(window.NodeList.prototype.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e.call(window,t[n],n,t)},u.initAll=function(t){var t=void 0!==(t=void 0!==t?t:{}).scope?t.scope:document,e=t.querySelectorAll('[data-module="moj-add-another"]'),e=(u.nodeListForEach(e,function(t){new u.AddAnother(t)}),t.querySelectorAll('[data-module="moj-multi-select"]')),e=(u.nodeListForEach(e,function(t){new u.MultiSelect({container:t.querySelector(t.getAttribute("data-multi-select-checkbox")),checkboxes:t.querySelectorAll("tbody .govuk-checkboxes__input")})}),t.querySelectorAll('[data-module="moj-password-reveal"]')),e=(u.nodeListForEach(e,function(t){new u.PasswordReveal(t)}),t.querySelectorAll('[data-module="moj-rich-text-editor"]')),e=(u.nodeListForEach(e,function(t){var e={textarea:s(t)},t=t.getAttribute("data-moj-rich-text-editor-toolbar");if(t){var n,o=t.split(",");for(n in e.toolbar={},o)e.toolbar[o[n]]=!0}new u.RichTextEditor(e)}),t.querySelectorAll('[data-module="moj-search-toggle"]')),e=(u.nodeListForEach(e,function(t){new u.SearchToggle({toggleButton:{container:s(t.querySelector(".moj-search-toggle__toggle")),text:t.getAttribute("data-moj-search-toggle-text")},search:{container:s(t.querySelector(".moj-search"))}})}),t.querySelectorAll('[data-module="moj-sortable-table"]')),e=(u.nodeListForEach(e,function(t){new u.SortableTable({table:t})}),t.querySelectorAll('[data-module="moj-sortable-table"]')),t=(u.nodeListForEach(e,function(t){new u.SortableTable({table:t})}),document.querySelectorAll('[data-module="moj-date-picker"]'));u.nodeListForEach(t,function(t){new u.DatePicker(t,{}).init()})},u.AddAnother=function(t){this.container=s(t),this.container.data("moj-add-another-initialised")||(this.container.data("moj-add-another-initialised",!0),this.container.on("click",".moj-add-another__remove-button",s.proxy(this,"onRemoveButtonClick")),this.container.on("click",".moj-add-another__add-button",s.proxy(this,"onAddButtonClick")),this.container.find(".moj-add-another__add-button, moj-add-another__remove-button").prop("type","button"))},u.AddAnother.prototype.onAddButtonClick=function(t){var e=this.getNewItem(),n=(this.updateAttributes(this.getItems().length,e),this.resetItem(e),this.getItems().first());this.hasRemoveButton(n)||this.createRemoveButton(n),this.getItems().last().after(e),e.find("input, textarea, select").first().focus()},u.AddAnother.prototype.hasRemoveButton=function(t){return t.find(".moj-add-another__remove-button").length},u.AddAnother.prototype.getItems=function(){return this.container.find(".moj-add-another__item")},u.AddAnother.prototype.getNewItem=function(){var t=this.getItems().first().clone();return this.hasRemoveButton(t)||this.createRemoveButton(t),t},u.AddAnother.prototype.updateAttributes=function(o,i){i.find("[data-name]").each(function(t,e){var n=e.id;e.name=s(e).attr("data-name").replace(/%index%/,o),e.id=s(e).attr("data-id").replace(/%index%/,o),(s(e).siblings("label")[0]||s(e).parents("label")[0]||i.find('[for="'+n+'"]')[0]).htmlFor=e.id})},u.AddAnother.prototype.createRemoveButton=function(t){t.append('<button type="button" class="govuk-button govuk-button--secondary moj-add-another__remove-button">Remove</button>')},u.AddAnother.prototype.resetItem=function(t){t.find("[data-name], [data-id]").each(function(t,e){"checkbox"==e.type||"radio"==e.type?e.checked=!1:e.value=""})},u.AddAnother.prototype.onRemoveButtonClick=function(t){s(t.currentTarget).parents(".moj-add-another__item").remove();t=this.getItems();1===t.length&&t.find(".moj-add-another__remove-button").remove(),t.each(s.proxy(function(t,e){this.updateAttributes(t,s(e))},this)),this.focusHeading()},u.AddAnother.prototype.focusHeading=function(){this.container.find(".moj-add-another__heading").focus()},u.ButtonMenu=function(t){this.container=s(t.container),this.menu=this.container.find(".moj-button-menu__wrapper"),t.menuClasses&&this.menu.addClass(t.menuClasses),this.menu.attr("role","menu"),this.mq=t.mq,this.buttonText=t.buttonText,this.buttonClasses=t.buttonClasses||"",this.keys={esc:27,up:38,down:40,tab:9},this.menu.on("keydown","[role=menuitem]",s.proxy(this,"onButtonKeydown")),this.createToggleButton(),this.setupResponsiveChecks(),s(document).on("click",s.proxy(this,"onDocumentClick"))},u.ButtonMenu.prototype.onDocumentClick=function(t){s.contains(this.container[0],t.target)||this.hideMenu()},u.ButtonMenu.prototype.createToggleButton=function(){this.menuButton=s('<button class="govuk-button moj-button-menu__toggle-button '+this.buttonClasses+'" type="button" aria-haspopup="true" aria-expanded="false">'+this.buttonText+"</button>"),this.menuButton.on("click",s.proxy(this,"onMenuButtonClick")),this.menuButton.on("keydown",s.proxy(this,"onMenuKeyDown"))},u.ButtonMenu.prototype.setupResponsiveChecks=function(){this.mql=window.matchMedia(this.mq),this.mql.addListener(s.proxy(this,"checkMode")),this.checkMode(this.mql)},u.ButtonMenu.prototype.checkMode=function(t){t.matches?this.enableBigMode():this.enableSmallMode()},u.ButtonMenu.prototype.enableSmallMode=function(){this.container.prepend(this.menuButton),this.hideMenu(),this.removeButtonClasses(),this.menu.attr("role","menu"),this.container.find(".moj-button-menu__item").attr("role","menuitem")},u.ButtonMenu.prototype.enableBigMode=function(){this.menuButton.detach(),this.showMenu(),this.addButtonClasses(),this.menu.removeAttr("role"),this.container.find(".moj-button-menu__item").removeAttr("role")},u.ButtonMenu.prototype.removeButtonClasses=function(){this.menu.find(".moj-button-menu__item").each(function(t,e){s(e).hasClass("govuk-button--secondary")&&(s(e).attr("data-secondary","true"),s(e).removeClass("govuk-button--secondary")),s(e).hasClass("govuk-button--warning")&&(s(e).attr("data-warning","true"),s(e).removeClass("govuk-button--warning")),s(e).removeClass("govuk-button")})},u.ButtonMenu.prototype.addButtonClasses=function(){this.menu.find(".moj-button-menu__item").each(function(t,e){"true"==s(e).attr("data-secondary")&&s(e).addClass("govuk-button--secondary"),"true"==s(e).attr("data-warning")&&s(e).addClass("govuk-button--warning"),s(e).addClass("govuk-button")})},u.ButtonMenu.prototype.hideMenu=function(){this.menuButton.attr("aria-expanded","false")},u.ButtonMenu.prototype.showMenu=function(){this.menuButton.attr("aria-expanded","true")},u.ButtonMenu.prototype.onMenuButtonClick=function(){this.toggle()},u.ButtonMenu.prototype.toggle=function(){"false"==this.menuButton.attr("aria-expanded")?(this.showMenu(),this.menu.find("[role=menuitem]").first().focus()):(this.hideMenu(),this.menuButton.focus())},u.ButtonMenu.prototype.onMenuKeyDown=function(t){t.keyCode===this.keys.down&&this.toggle()},u.ButtonMenu.prototype.onButtonKeydown=function(t){switch(t.keyCode){case this.keys.up:t.preventDefault(),this.focusPrevious(t.currentTarget);break;case this.keys.down:t.preventDefault(),this.focusNext(t.currentTarget);break;case this.keys.esc:this.mql.matches||(this.menuButton.focus(),this.hideMenu());break;case this.keys.tab:this.mql.matches||this.hideMenu()}},u.ButtonMenu.prototype.focusNext=function(t){t=s(t).next();(t[0]?t:this.container.find("[role=menuitem]").first()).focus()},u.ButtonMenu.prototype.focusPrevious=function(t){t=s(t).prev();(t[0]?t:this.container.find("[role=menuitem]").last()).focus()},t.prototype.init=function(){!this.$input||this.$module.dataset.initialized||(this.setOptions(),this.initControls(),this.$module.setAttribute("data-initialized","true"))},t.prototype.initControls=function(){this.id="datepicker-"+this.$input.id,this.$dialog=this.createDialog(),this.createCalendarHeaders();const t=document.createElement("div"),e=document.createElement("div");t.classList.add("moj-datepicker__wrapper"),e.classList.add("govuk-input__wrapper"),this.$input.parentNode.insertBefore(t,this.$input),t.appendChild(e),e.appendChild(this.$input),e.insertAdjacentHTML("beforeend",this.toggleTemplate()),t.insertAdjacentElement("beforeend",this.$dialog),this.$calendarButton=this.$module.querySelector(".moj-js-datepicker-toggle"),this.$dialogTitle=this.$dialog.querySelector(".moj-js-datepicker-month-year"),this.createCalendar(),this.$prevMonthButton=this.$dialog.querySelector(".moj-js-datepicker-prev-month"),this.$prevYearButton=this.$dialog.querySelector(".moj-js-datepicker-prev-year"),this.$nextMonthButton=this.$dialog.querySelector(".moj-js-datepicker-next-month"),this.$nextYearButton=this.$dialog.querySelector(".moj-js-datepicker-next-year"),this.$cancelButton=this.$dialog.querySelector(".moj-js-datepicker-cancel"),this.$okButton=this.$dialog.querySelector(".moj-js-datepicker-ok"),this.$prevMonthButton.addEventListener("click",t=>this.focusPreviousMonth(t,!1)),this.$prevYearButton.addEventListener("click",t=>this.focusPreviousYear(t,!1)),this.$nextMonthButton.addEventListener("click",t=>this.focusNextMonth(t,!1)),this.$nextYearButton.addEventListener("click",t=>this.focusNextYear(t,!1)),this.$cancelButton.addEventListener("click",t=>{t.preventDefault(),this.closeDialog(t)}),this.$okButton.addEventListener("click",()=>{this.selectDate(this.currentDate)});var n=this.$dialog.querySelectorAll('button:not([disabled="true"])');this.$firstButtonInDialog=n[0],this.$lastButtonInDialog=n[n.length-1],this.$firstButtonInDialog.addEventListener("keydown",t=>this.firstButtonKeydown(t)),this.$lastButtonInDialog.addEventListener("keydown",t=>this.lastButtonKeydown(t)),this.$calendarButton.addEventListener("click",t=>this.toggleDialog(t)),this.$dialog.addEventListener("keydown",t=>{"Escape"==t.key&&(this.closeDialog(),t.preventDefault(),t.stopPropagation())}),document.body.addEventListener("mouseup",t=>this.backgroundClick(t)),this.updateCalendar()},t.prototype.createDialog=function(){var t="datepicker-title-"+this.$input.id;const e=document.createElement("div");return e.id=this.id,e.setAttribute("class","moj-datepicker__dialog"),e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),e.setAttribute("aria-labelledby",t),e.innerHTML=this.dialogTemplate(t),e},t.prototype.createCalendar=function(){const t=this.$dialog.querySelector("tbody");let n=0;for(let e=0;e<6;e++){const i=t.insertRow(e);for(let t=0;t<7;t++){const r=document.createElement("td");var o=document.createElement("button");r.appendChild(o),i.appendChild(r);const a=new l(o,n,e,t,this);a.init(),this.calendarDays.push(a),n++}}},t.prototype.toggleTemplate=function(){return`<button class="moj-datepicker__toggle moj-js-datepicker-toggle" type="button" aria-haspopup="dialog" aria-controls="${this.id}" aria-expanded="false">
|
|
2
2
|
<span class="govuk-visually-hidden">Choose date</span>
|
|
3
3
|
<svg width="32" height="24" focusable="false" class="moj-datepicker-icon" aria-hidden="true" role="img" viewBox="0 0 22 22">
|
|
4
4
|
<path
|
package/moj/all.js
CHANGED
|
@@ -465,9 +465,13 @@ Datepicker.prototype.init = function () {
|
|
|
465
465
|
if (!this.$input) {
|
|
466
466
|
return;
|
|
467
467
|
}
|
|
468
|
+
if (this.$module.dataset.initialized) {
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
468
471
|
|
|
469
472
|
this.setOptions();
|
|
470
473
|
this.initControls();
|
|
474
|
+
this.$module.setAttribute('data-initialized', 'true')
|
|
471
475
|
};
|
|
472
476
|
|
|
473
477
|
Datepicker.prototype.initControls = function () {
|
|
@@ -88,9 +88,13 @@ Datepicker.prototype.init = function () {
|
|
|
88
88
|
if (!this.$input) {
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
|
+
if (this.$module.dataset.initialized) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
91
94
|
|
|
92
95
|
this.setOptions();
|
|
93
96
|
this.initControls();
|
|
97
|
+
this.$module.setAttribute('data-initialized', 'true')
|
|
94
98
|
};
|
|
95
99
|
|
|
96
100
|
Datepicker.prototype.initControls = function () {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ministryofjustice/frontend",
|
|
3
3
|
"description": "The MOJ Frontend contains the code you need to start building user interfaces for UK Ministry of Justice government services.",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.2",
|
|
5
5
|
"main": "moj/all.js",
|
|
6
6
|
"sass": "moj/all.scss",
|
|
7
7
|
"engines": {
|