UNPKG

3dmol

Version:

JavaScript/TypeScript molecular visualization library

2 lines 175 kB
/*! For license information please see 3Dmol.ui-min.js.LICENSE.txt */ var e,n;e=this,n=()=>(()=>{var e,n={692:function(e,n){var t,i,o;i="undefined"!=typeof window?window:this,o=function(i,o){var r=[],a=Object.getPrototypeOf,s=r.slice,l=r.flat?function(e){return r.flat.call(e)}:function(e){return r.concat.apply([],e)},c=r.push,u=r.indexOf,d={},p=d.toString,g=d.hasOwnProperty,f=g.toString,h=f.call(Object),v={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},x=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,n,t){var i,o,r=(t=t||x).createElement("script");if(r.text=e,n)for(i in w)(o=n[i]||n.getAttribute&&n.getAttribute(i))&&r.setAttribute(i,o);t.head.appendChild(r).parentNode.removeChild(r)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[p.call(e)]||"object":typeof e}var C="3.7.1",S=/HTML$/i,T=function(e,n){return new T.fn.init(e,n)};function D(e){var n=!!e&&"length"in e&&e.length,t=k(e);return!m(e)&&!y(e)&&("array"===t||0===n||"number"==typeof n&&n>0&&n-1 in e)}function L(e,n){return e.nodeName&&e.nodeName.toLowerCase()===n.toLowerCase()}T.fn=T.prototype={jquery:C,constructor:T,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var n=T.merge(this.constructor(),e);return n.prevObject=this,n},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(n,t){return e.call(n,t,n)})))},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(T.grep(this,(function(e,n){return(n+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,n){return n%2})))},eq:function(e){var n=this.length,t=+e+(e<0?n:0);return this.pushStack(t>=0&&t<n?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:r.sort,splice:r.splice},T.extend=T.fn.extend=function(){var e,n,t,i,o,r,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(n in e)i=e[n],"__proto__"!==n&&a!==i&&(c&&i&&(T.isPlainObject(i)||(o=Array.isArray(i)))?(t=a[n],r=o&&!Array.isArray(t)?[]:o||T.isPlainObject(t)?t:{},o=!1,a[n]=T.extend(c,r,i)):void 0!==i&&(a[n]=i));return a},T.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var n,t;return!(!e||"[object Object]"!==p.call(e)||(n=a(e))&&("function"!=typeof(t=g.call(n,"constructor")&&n.constructor)||f.call(t)!==h))},isEmptyObject:function(e){var n;for(n in e)return!1;return!0},globalEval:function(e,n,t){b(e,{nonce:n&&n.nonce},t)},each:function(e,n){var t,i=0;if(D(e))for(t=e.length;i<t&&!1!==n.call(e[i],i,e[i]);i++);else for(i in e)if(!1===n.call(e[i],i,e[i]))break;return e},text:function(e){var n,t="",i=0,o=e.nodeType;if(!o)for(;n=e[i++];)t+=T.text(n);return 1===o||11===o?e.textContent:9===o?e.documentElement.textContent:3===o||4===o?e.nodeValue:t},makeArray:function(e,n){var t=n||[];return null!=e&&(D(Object(e))?T.merge(t,"string"==typeof e?[e]:e):c.call(t,e)),t},inArray:function(e,n,t){return null==n?-1:u.call(n,e,t)},isXMLDoc:function(e){var n=e&&e.namespaceURI,t=e&&(e.ownerDocument||e).documentElement;return!S.test(n||t&&t.nodeName||"HTML")},merge:function(e,n){for(var t=+n.length,i=0,o=e.length;i<t;i++)e[o++]=n[i];return e.length=o,e},grep:function(e,n,t){for(var i=[],o=0,r=e.length,a=!t;o<r;o++)!n(e[o],o)!==a&&i.push(e[o]);return i},map:function(e,n,t){var i,o,r=0,a=[];if(D(e))for(i=e.length;r<i;r++)null!=(o=n(e[r],r,t))&&a.push(o);else for(r in e)null!=(o=n(e[r],r,t))&&a.push(o);return l(a)},guid:1,support:v}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=r[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,n){d["[object "+n+"]"]=n.toLowerCase()}));var A=r.pop,E=r.sort,M=r.splice,j="[\\x20\\t\\r\\n\\f]",I=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g");T.contains=function(e,n){var t=n&&n.parentNode;return e===t||!(!t||1!==t.nodeType||!(e.contains?e.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))};var z=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function N(e,n){return n?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}T.escapeSelector=function(e){return(e+"").replace(z,N)};var O=x,V=c;!function(){var e,n,t,o,a,l,c,d,p,f,h=V,m=T.expando,y=0,x=0,w=ee(),b=ee(),k=ee(),C=ee(),S=function(e,n){return e===n&&(a=!0),0},D="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",z="(?:\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\["+j+"*("+z+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+j+"*\\]",H=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",B=new RegExp(j+"+","g"),$=new RegExp("^"+j+"*,"+j+"*"),P=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),q=new RegExp(j+"|>"),R=new RegExp(H),_=new RegExp("^"+z+"$"),F={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,U=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),Z=function(e,n){var t="0x"+e.slice(1)-65536;return n||(t<0?String.fromCharCode(t+65536):String.fromCharCode(t>>10|55296,1023&t|56320))},Q=function(){le()},J=pe((function(e){return!0===e.disabled&&L(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{h.apply(r=s.call(O.childNodes),O.childNodes),r[O.childNodes.length].nodeType}catch(e){h={apply:function(e,n){V.apply(e,s.call(n))},call:function(e){V.apply(e,s.call(arguments,1))}}}function K(e,n,t,i){var o,r,a,s,c,u,g,f=n&&n.ownerDocument,y=n?n.nodeType:9;if(t=t||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return t;if(!i&&(le(n),n=n||l,d)){if(11!==y&&(c=U.exec(e)))if(o=c[1]){if(9===y){if(!(a=n.getElementById(o)))return t;if(a.id===o)return h.call(t,a),t}else if(f&&(a=f.getElementById(o))&&K.contains(n,a)&&a.id===o)return h.call(t,a),t}else{if(c[2])return h.apply(t,n.getElementsByTagName(e)),t;if((o=c[3])&&n.getElementsByClassName)return h.apply(t,n.getElementsByClassName(o)),t}if(!(C[e+" "]||p&&p.test(e))){if(g=e,f=n,1===y&&(q.test(e)||P.test(e))){for((f=X.test(e)&&se(n.parentNode)||n)==n&&v.scope||((s=n.getAttribute("id"))?s=T.escapeSelector(s):n.setAttribute("id",s=m)),r=(u=ue(e)).length;r--;)u[r]=(s?"#"+s:":scope")+" "+de(u[r]);g=u.join(",")}try{return h.apply(t,f.querySelectorAll(g)),t}catch(n){C(e,!0)}finally{s===m&&n.removeAttribute("id")}}}return ye(e.replace(I,"$1"),n,t,i)}function ee(){var e=[];return function t(i,o){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=o}}function ne(e){return e[m]=!0,e}function te(e){var n=l.createElement("fieldset");try{return!!e(n)}catch(e){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function ie(e){return function(n){return L(n,"input")&&n.type===e}}function oe(e){return function(n){return(L(n,"input")||L(n,"button"))&&n.type===e}}function re(e){return function(n){return"form"in n?n.parentNode&&!1===n.disabled?"label"in n?"label"in n.parentNode?n.parentNode.disabled===e:n.disabled===e:n.isDisabled===e||n.isDisabled!==!e&&J(n)===e:n.disabled===e:"label"in n&&n.disabled===e}}function ae(e){return ne((function(n){return n=+n,ne((function(t,i){for(var o,r=e([],t.length,n),a=r.length;a--;)t[o=r[a]]&&(t[o]=!(i[o]=t[o]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var t,i=e?e.ownerDocument||e:O;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!T.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&O!=l&&(t=l.defaultView)&&t.top!==t&&t.addEventListener("unload",Q),v.getById=te((function(e){return c.appendChild(e).id=T.expando,!l.getElementsByName||!l.getElementsByName(T.expando).length})),v.disconnectedMatch=te((function(e){return f.call(e,"*")})),v.scope=te((function(){return l.querySelectorAll(":scope")})),v.cssHas=te((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),v.getById?(n.filter.ID=function(e){var n=e.replace(Y,Z);return function(e){return e.getAttribute("id")===n}},n.find.ID=function(e,n){if(void 0!==n.getElementById&&d){var t=n.getElementById(e);return t?[t]:[]}}):(n.filter.ID=function(e){var n=e.replace(Y,Z);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},n.find.ID=function(e,n){if(void 0!==n.getElementById&&d){var t,i,o,r=n.getElementById(e);if(r){if((t=r.getAttributeNode("id"))&&t.value===e)return[r];for(o=n.getElementsByName(e),i=0;r=o[i++];)if((t=r.getAttributeNode("id"))&&t.value===e)return[r]}return[]}}),n.find.TAG=function(e,n){return void 0!==n.getElementsByTagName?n.getElementsByTagName(e):n.querySelectorAll(e)},n.find.CLASS=function(e,n){if(void 0!==n.getElementsByClassName&&d)return n.getElementsByClassName(e)},p=[],te((function(e){var n;c.appendChild(e).innerHTML="<a id='"+m+"' href='' disabled='disabled'></a><select id='"+m+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||p.push("\\["+j+"*(?:value|"+D+")"),e.querySelectorAll("[id~="+m+"-]").length||p.push("~="),e.querySelectorAll("a#"+m+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll(":checked").length||p.push(":checked"),(n=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(n).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(n=l.createElement("input")).setAttribute("name",""),e.appendChild(n),e.querySelectorAll("[name='']").length||p.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")")})),v.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),S=function(e,n){if(e===n)return a=!0,0;var t=!e.compareDocumentPosition-!n.compareDocumentPosition;return t||(1&(t=(e.ownerDocument||e)==(n.ownerDocument||n)?e.compareDocumentPosition(n):1)||!v.sortDetached&&n.compareDocumentPosition(e)===t?e===l||e.ownerDocument==O&&K.contains(O,e)?-1:n===l||n.ownerDocument==O&&K.contains(O,n)?1:o?u.call(o,e)-u.call(o,n):0:4&t?-1:1)},l):l}for(e in K.matches=function(e,n){return K(e,null,null,n)},K.matchesSelector=function(e,n){if(le(e),d&&!C[n+" "]&&(!p||!p.test(n)))try{var t=f.call(e,n);if(t||v.disconnectedMatch||e.document&&11!==e.document.nodeType)return t}catch(e){C(n,!0)}return K(n,l,null,[e]).length>0},K.contains=function(e,n){return(e.ownerDocument||e)!=l&&le(e),T.contains(e,n)},K.attr=function(e,t){(e.ownerDocument||e)!=l&&le(e);var i=n.attrHandle[t.toLowerCase()],o=i&&g.call(n.attrHandle,t.toLowerCase())?i(e,t,!d):void 0;return void 0!==o?o:e.getAttribute(t)},K.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var n,t=[],i=0,r=0;if(a=!v.sortStable,o=!v.sortStable&&s.call(e,0),E.call(e,S),a){for(;n=e[r++];)n===e[r]&&(i=t.push(r));for(;i--;)M.call(e,t[i],1)}return o=null,e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(s.apply(this)))},n=T.expr={cacheLength:50,createPseudo:ne,match:F,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Y,Z),e[3]=(e[3]||e[4]||e[5]||"").replace(Y,Z),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||K.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&K.error(e[0]),e},PSEUDO:function(e){var n,t=!e[6]&&e[2];return F.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":t&&R.test(t)&&(n=ue(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(e[0]=e[0].slice(0,n),e[2]=t.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var n=e.replace(Y,Z).toLowerCase();return"*"===e?function(){return!0}:function(e){return L(e,n)}},CLASS:function(e){var n=w[e+" "];return n||(n=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&w(e,(function(e){return n.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,n,t){return function(i){var o=K.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===t:"!="===n?o!==t:"^="===n?t&&0===o.indexOf(t):"*="===n?t&&o.indexOf(t)>-1:"$="===n?t&&o.slice(-t.length)===t:"~="===n?(" "+o.replace(B," ")+" ").indexOf(t)>-1:"|="===n&&(o===t||o.slice(0,t.length+1)===t+"-"))}},CHILD:function(e,n,t,i,o){var r="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===n;return 1===i&&0===o?function(e){return!!e.parentNode}:function(n,t,l){var c,u,d,p,g,f=r!==a?"nextSibling":"previousSibling",h=n.parentNode,v=s&&n.nodeName.toLowerCase(),x=!l&&!s,w=!1;if(h){if(r){for(;f;){for(d=n;d=d[f];)if(s?L(d,v):1===d.nodeType)return!1;g=f="only"===e&&!g&&"nextSibling"}return!0}if(g=[a?h.firstChild:h.lastChild],a&&x){for(w=(p=(c=(u=h[m]||(h[m]={}))[e]||[])[0]===y&&c[1])&&c[2],d=p&&h.childNodes[p];d=++p&&d&&d[f]||(w=p=0)||g.pop();)if(1===d.nodeType&&++w&&d===n){u[e]=[y,p,w];break}}else if(x&&(w=p=(c=(u=n[m]||(n[m]={}))[e]||[])[0]===y&&c[1]),!1===w)for(;(d=++p&&d&&d[f]||(w=p=0)||g.pop())&&(!(s?L(d,v):1===d.nodeType)||!++w||(x&&((u=d[m]||(d[m]={}))[e]=[y,w]),d!==n)););return(w-=o)===i||w%i===0&&w/i>=0}}},PSEUDO:function(e,t){var i,o=n.pseudos[e]||n.setFilters[e.toLowerCase()]||K.error("unsupported pseudo: "+e);return o[m]?o(t):o.length>1?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?ne((function(e,n){for(var i,r=o(e,t),a=r.length;a--;)e[i=u.call(e,r[a])]=!(n[i]=r[a])})):function(e){return o(e,0,i)}):o}},pseudos:{not:ne((function(e){var n=[],t=[],i=me(e.replace(I,"$1"));return i[m]?ne((function(e,n,t,o){for(var r,a=i(e,null,o,[]),s=e.length;s--;)(r=a[s])&&(e[s]=!(n[s]=r))})):function(e,o,r){return n[0]=e,i(n,null,r,t),n[0]=null,!t.pop()}})),has:ne((function(e){return function(n){return K(e,n).length>0}})),contains:ne((function(e){return e=e.replace(Y,Z),function(n){return(n.textContent||T.text(n)).indexOf(e)>-1}})),lang:ne((function(e){return _.test(e||"")||K.error("unsupported lang: "+e),e=e.replace(Y,Z).toLowerCase(),function(n){var t;do{if(t=d?n.lang:n.getAttribute("xml:lang")||n.getAttribute("lang"))return(t=t.toLowerCase())===e||0===t.indexOf(e+"-")}while((n=n.parentNode)&&1===n.nodeType);return!1}})),target:function(e){var n=i.location&&i.location.hash;return n&&n.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:re(!1),disabled:re(!0),checked:function(e){return L(e,"input")&&!!e.checked||L(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return W.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){return L(e,"input")&&"button"===e.type||L(e,"button")},text:function(e){var n;return L(e,"input")&&"text"===e.type&&(null==(n=e.getAttribute("type"))||"text"===n.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,n){return[n-1]})),eq:ae((function(e,n,t){return[t<0?t+n:t]})),even:ae((function(e,n){for(var t=0;t<n;t+=2)e.push(t);return e})),odd:ae((function(e,n){for(var t=1;t<n;t+=2)e.push(t);return e})),lt:ae((function(e,n,t){var i;for(i=t<0?t+n:t>n?n:t;--i>=0;)e.push(i);return e})),gt:ae((function(e,n,t){for(var i=t<0?t+n:t;++i<n;)e.push(i);return e}))}},n.pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=ie(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=oe(e);function ce(){}function ue(e,t){var i,o,r,a,s,l,c,u=b[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=n.preFilter;s;){for(a in i&&!(o=$.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(r=[])),i=!1,(o=P.exec(s))&&(i=o.shift(),r.push({value:i,type:o[0].replace(I," ")}),s=s.slice(i.length)),n.filter)!(o=F[a].exec(s))||c[a]&&!(o=c[a](o))||(i=o.shift(),r.push({value:i,type:a,matches:o}),s=s.slice(i.length));if(!i)break}return t?s.length:s?K.error(e):b(e,l).slice(0)}function de(e){for(var n=0,t=e.length,i="";n<t;n++)i+=e[n].value;return i}function pe(e,n,t){var i=n.dir,o=n.next,r=o||i,a=t&&"parentNode"===r,s=x++;return n.first?function(n,t,o){for(;n=n[i];)if(1===n.nodeType||a)return e(n,t,o);return!1}:function(n,t,l){var c,u,d=[y,s];if(l){for(;n=n[i];)if((1===n.nodeType||a)&&e(n,t,l))return!0}else for(;n=n[i];)if(1===n.nodeType||a)if(u=n[m]||(n[m]={}),o&&L(n,o))n=n[i]||n;else{if((c=u[r])&&c[0]===y&&c[1]===s)return d[2]=c[2];if(u[r]=d,d[2]=e(n,t,l))return!0}return!1}}function ge(e){return e.length>1?function(n,t,i){for(var o=e.length;o--;)if(!e[o](n,t,i))return!1;return!0}:e[0]}function fe(e,n,t,i,o){for(var r,a=[],s=0,l=e.length,c=null!=n;s<l;s++)(r=e[s])&&(t&&!t(r,i,o)||(a.push(r),c&&n.push(s)));return a}function he(e,n,t,i,o,r){return i&&!i[m]&&(i=he(i)),o&&!o[m]&&(o=he(o,r)),ne((function(r,a,s,l){var c,d,p,g,f=[],v=[],m=a.length,y=r||function(e,n,t){for(var i=0,o=n.length;i<o;i++)K(e,n[i],t);return t}(n||"*",s.nodeType?[s]:s,[]),x=!e||!r&&n?y:fe(y,f,e,s,l);if(t?t(x,g=o||(r?e:m||i)?[]:a,s,l):g=x,i)for(c=fe(g,v),i(c,[],s,l),d=c.length;d--;)(p=c[d])&&(g[v[d]]=!(x[v[d]]=p));if(r){if(o||e){if(o){for(c=[],d=g.length;d--;)(p=g[d])&&c.push(x[d]=p);o(null,g=[],c,l)}for(d=g.length;d--;)(p=g[d])&&(c=o?u.call(r,p):f[d])>-1&&(r[c]=!(a[c]=p))}}else g=fe(g===a?g.splice(m,g.length):g),o?o(null,a,g,l):h.apply(a,g)}))}function ve(e){for(var i,o,r,a=e.length,s=n.relative[e[0].type],l=s||n.relative[" "],c=s?1:0,d=pe((function(e){return e===i}),l,!0),p=pe((function(e){return u.call(i,e)>-1}),l,!0),g=[function(e,n,o){var r=!s&&(o||n!=t)||((i=n).nodeType?d(e,n,o):p(e,n,o));return i=null,r}];c<a;c++)if(o=n.relative[e[c].type])g=[pe(ge(g),o)];else{if((o=n.filter[e[c].type].apply(null,e[c].matches))[m]){for(r=++c;r<a&&!n.relative[e[r].type];r++);return he(c>1&&ge(g),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(I,"$1"),o,c<r&&ve(e.slice(c,r)),r<a&&ve(e=e.slice(r)),r<a&&de(e))}g.push(o)}return ge(g)}function me(e,i){var o,r=[],a=[],s=k[e+" "];if(!s){for(i||(i=ue(e)),o=i.length;o--;)(s=ve(i[o]))[m]?r.push(s):a.push(s);s=k(e,function(e,i){var o=i.length>0,r=e.length>0,a=function(a,s,c,u,p){var g,f,v,m=0,x="0",w=a&&[],b=[],k=t,C=a||r&&n.find.TAG("*",p),S=y+=null==k?1:Math.random()||.1,D=C.length;for(p&&(t=s==l||s||p);x!==D&&null!=(g=C[x]);x++){if(r&&g){for(f=0,s||g.ownerDocument==l||(le(g),c=!d);v=e[f++];)if(v(g,s||l,c)){h.call(u,g);break}p&&(y=S)}o&&((g=!v&&g)&&m--,a&&w.push(g))}if(m+=x,o&&x!==m){for(f=0;v=i[f++];)v(w,b,s,c);if(a){if(m>0)for(;x--;)w[x]||b[x]||(b[x]=A.call(u));b=fe(b)}h.apply(u,b),p&&!a&&b.length>0&&m+i.length>1&&T.uniqueSort(u)}return p&&(y=S,t=k),w};return o?ne(a):a}(a,r)),s.selector=e}return s}function ye(e,t,i,o){var r,a,s,l,c,u="function"==typeof e&&e,p=!o&&ue(e=u.selector||e);if(i=i||[],1===p.length){if((a=p[0]=p[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===t.nodeType&&d&&n.relative[a[1].type]){if(!(t=(n.find.ID(s.matches[0].replace(Y,Z),t)||[])[0]))return i;u&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(r=F.needsContext.test(e)?0:a.length;r--&&(s=a[r],!n.relative[l=s.type]);)if((c=n.find[l])&&(o=c(s.matches[0].replace(Y,Z),X.test(a[0].type)&&se(t.parentNode)||t))){if(a.splice(r,1),!(e=o.length&&de(a)))return h.apply(i,o),i;break}}return(u||me(e,p))(o,t,!d,i,!t||X.test(e)&&se(t.parentNode)||t),i}ce.prototype=n.filters=n.pseudos,n.setFilters=new ce,v.sortStable=m.split("").sort(S).join("")===m,le(),v.sortDetached=te((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),T.find=K,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,K.compile=me,K.select=ye,K.setDocument=le,K.tokenize=ue,K.escape=T.escapeSelector,K.getText=T.text,K.isXML=T.isXMLDoc,K.selectors=T.expr,K.support=T.support,K.uniqueSort=T.uniqueSort}();var H=function(e,n,t){for(var i=[],o=void 0!==t;(e=e[n])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&T(e).is(t))break;i.push(e)}return i},B=function(e,n){for(var t=[];e;e=e.nextSibling)1===e.nodeType&&e!==n&&t.push(e);return t},$=T.expr.match.needsContext,P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function q(e,n,t){return m(n)?T.grep(e,(function(e,i){return!!n.call(e,i,e)!==t})):n.nodeType?T.grep(e,(function(e){return e===n!==t})):"string"!=typeof n?T.grep(e,(function(e){return u.call(n,e)>-1!==t})):T.filter(n,e,t)}T.filter=function(e,n,t){var i=n[0];return t&&(e=":not("+e+")"),1===n.length&&1===i.nodeType?T.find.matchesSelector(i,e)?[i]:[]:T.find.matches(e,T.grep(n,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var n,t,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(n=0;n<i;n++)if(T.contains(o[n],this))return!0})));for(t=this.pushStack([]),n=0;n<i;n++)T.find(e,o[n],t);return i>1?T.uniqueSort(t):t},filter:function(e){return this.pushStack(q(this,e||[],!1))},not:function(e){return this.pushStack(q(this,e||[],!0))},is:function(e){return!!q(this,"string"==typeof e&&$.test(e)?T(e):e||[],!1).length}});var R,_=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,n,t){var i,o;if(!e)return this;if(t=t||R,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:_.exec(e))||!i[1]&&n)return!n||n.jquery?(n||t).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof T?n[0]:n,T.merge(this,T.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:x,!0)),P.test(i[1])&&T.isPlainObject(n))for(i in n)m(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}return(o=x.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==t.ready?t.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,R=T(x);var F=/^(?:parents|prev(?:Until|All))/,G={children:!0,contents:!0,next:!0,prev:!0};function W(e,n){for(;(e=e[n])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var n=T(e,this),t=n.length;return this.filter((function(){for(var e=0;e<t;e++)if(T.contains(this,n[e]))return!0}))},closest:function(e,n){var t,i=0,o=this.length,r=[],a="string"!=typeof e&&T(e);if(!$.test(e))for(;i<o;i++)for(t=this[i];t&&t!==n;t=t.parentNode)if(t.nodeType<11&&(a?a.index(t)>-1:1===t.nodeType&&T.find.matchesSelector(t,e))){r.push(t);break}return this.pushStack(r.length>1?T.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?u.call(T(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,n){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,n))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var n=e.parentNode;return n&&11!==n.nodeType?n:null},parents:function(e){return H(e,"parentNode")},parentsUntil:function(e,n,t){return H(e,"parentNode",t)},next:function(e){return W(e,"nextSibling")},prev:function(e){return W(e,"previousSibling")},nextAll:function(e){return H(e,"nextSibling")},prevAll:function(e){return H(e,"previousSibling")},nextUntil:function(e,n,t){return H(e,"nextSibling",t)},prevUntil:function(e,n,t){return H(e,"previousSibling",t)},siblings:function(e){return B((e.parentNode||{}).firstChild,e)},children:function(e){return B(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(L(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,n){T.fn[e]=function(t,i){var o=T.map(this,n,t);return"Until"!==e.slice(-5)&&(i=t),i&&"string"==typeof i&&(o=T.filter(i,o)),this.length>1&&(G[e]||T.uniqueSort(o),F.test(e)&&o.reverse()),this.pushStack(o)}}));var U=/[^\x20\t\r\n\f]+/g;function X(e){return e}function Y(e){throw e}function Z(e,n,t,i){var o;try{e&&m(o=e.promise)?o.call(e).done(n).fail(t):e&&m(o=e.then)?o.call(e,n,t):n.apply(void 0,[e].slice(i))}catch(e){t.apply(void 0,[e])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var n={};return T.each(e.match(U)||[],(function(e,t){n[t]=!0})),n}(e):T.extend({},e);var n,t,i,o,r=[],a=[],s=-1,l=function(){for(o=o||e.once,i=n=!0;a.length;s=-1)for(t=a.shift();++s<r.length;)!1===r[s].apply(t[0],t[1])&&e.stopOnFalse&&(s=r.length,t=!1);e.memory||(t=!1),n=!1,o&&(r=t?[]:"")},c={add:function(){return r&&(t&&!n&&(s=r.length-1,a.push(t)),function n(t){T.each(t,(function(t,i){m(i)?e.unique&&c.has(i)||r.push(i):i&&i.length&&"string"!==k(i)&&n(i)}))}(arguments),t&&!n&&l()),this},remove:function(){return T.each(arguments,(function(e,n){for(var t;(t=T.inArray(n,r,t))>-1;)r.splice(t,1),t<=s&&s--})),this},has:function(e){return e?T.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=a=[],r=t="",this},disabled:function(){return!r},lock:function(){return o=a=[],t||n||(r=t=""),this},locked:function(){return!!o},fireWith:function(e,t){return o||(t=[e,(t=t||[]).slice?t.slice():t],a.push(t),n||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},T.extend({Deferred:function(e){var n=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],t="pending",o={state:function(){return t},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(t){T.each(n,(function(n,i){var o=m(e[i[4]])&&e[i[4]];r[i[1]]((function(){var e=o&&o.apply(this,arguments);e&&m(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,t,o){var r=0;function a(e,n,t,o){return function(){var s=this,l=arguments,c=function(){var i,c;if(!(e<r)){if((i=t.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,m(c)?o?c.call(i,a(r,n,X,o),a(r,n,Y,o)):(r++,c.call(i,a(r,n,X,o),a(r,n,Y,o),a(r,n,X,n.notifyWith))):(t!==X&&(s=void 0,l=[i]),(o||n.resolveWith)(s,l))}},u=o?c:function(){try{c()}catch(i){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(i,u.error),e+1>=r&&(t!==Y&&(s=void 0,l=[i]),n.rejectWith(s,l))}};e?u():(T.Deferred.getErrorHook?u.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(u.error=T.Deferred.getStackHook()),i.setTimeout(u))}}return T.Deferred((function(i){n[0][3].add(a(0,i,m(o)?o:X,i.notifyWith)),n[1][3].add(a(0,i,m(e)?e:X)),n[2][3].add(a(0,i,m(t)?t:Y))})).promise()},promise:function(e){return null!=e?T.extend(e,o):o}},r={};return T.each(n,(function(e,i){var a=i[2],s=i[5];o[i[1]]=a.add,s&&a.add((function(){t=s}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(i[3].fire),r[i[0]]=function(){return r[i[0]+"With"](this===r?void 0:this,arguments),this},r[i[0]+"With"]=a.fireWith})),o.promise(r),e&&e.call(r,r),r},when:function(e){var n=arguments.length,t=n,i=Array(t),o=s.call(arguments),r=T.Deferred(),a=function(e){return function(t){i[e]=this,o[e]=arguments.length>1?s.call(arguments):t,--n||r.resolveWith(i,o)}};if(n<=1&&(Z(e,r.done(a(t)).resolve,r.reject,!n),"pending"===r.state()||m(o[t]&&o[t].then)))return r.then();for(;t--;)Z(o[t],a(t),r.reject);return r.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,n){i.console&&i.console.warn&&e&&Q.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},T.readyException=function(e){i.setTimeout((function(){throw e}))};var J=T.Deferred();function K(){x.removeEventListener("DOMContentLoaded",K),i.removeEventListener("load",K),T.ready()}T.fn.ready=function(e){return J.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||J.resolveWith(x,[T]))}}),T.ready.then=J.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?i.setTimeout(T.ready):(x.addEventListener("DOMContentLoaded",K),i.addEventListener("load",K));var ee=function(e,n,t,i,o,r,a){var s=0,l=e.length,c=null==t;if("object"===k(t))for(s in o=!0,t)ee(e,n,s,t[s],!0,r,a);else if(void 0!==i&&(o=!0,m(i)||(a=!0),c&&(a?(n.call(e,i),n=null):(c=n,n=function(e,n,t){return c.call(T(e),t)})),n))for(;s<l;s++)n(e[s],t,a?i:i.call(e[s],s,n(e[s],t)));return o?e:c?n.call(e):l?n(e[0],t):r},ne=/^-ms-/,te=/-([a-z])/g;function ie(e,n){return n.toUpperCase()}function oe(e){return e.replace(ne,"ms-").replace(te,ie)}var re=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=T.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var n=e[this.expando];return n||(n={},re(e)&&(e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,configurable:!0}))),n},set:function(e,n,t){var i,o=this.cache(e);if("string"==typeof n)o[oe(n)]=t;else for(i in n)o[oe(i)]=n[i];return o},get:function(e,n){return void 0===n?this.cache(e):e[this.expando]&&e[this.expando][oe(n)]},access:function(e,n,t){return void 0===n||n&&"string"==typeof n&&void 0===t?this.get(e,n):(this.set(e,n,t),void 0!==t?t:n)},remove:function(e,n){var t,i=e[this.expando];if(void 0!==i){if(void 0!==n){t=(n=Array.isArray(n)?n.map(oe):(n=oe(n))in i?[n]:n.match(U)||[]).length;for(;t--;)delete i[n[t]]}(void 0===n||T.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var n=e[this.expando];return void 0!==n&&!T.isEmptyObject(n)}};var se=new ae,le=new ae,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,n,t){var i;if(void 0===t&&1===e.nodeType)if(i="data-"+n.replace(ue,"-$&").toLowerCase(),"string"==typeof(t=e.getAttribute(i))){try{t=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(t)}catch(e){}le.set(e,n,t)}else t=void 0;return t}T.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,n,t){return le.access(e,n,t)},removeData:function(e,n){le.remove(e,n)},_data:function(e,n,t){return se.access(e,n,t)},_removeData:function(e,n){se.remove(e,n)}}),T.fn.extend({data:function(e,n){var t,i,o,r=this[0],a=r&&r.attributes;if(void 0===e){if(this.length&&(o=le.get(r),1===r.nodeType&&!se.get(r,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&0===(i=a[t].name).indexOf("data-")&&(i=oe(i.slice(5)),de(r,i,o[i]));se.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(n){var t;if(r&&void 0===n)return void 0!==(t=le.get(r,e))||void 0!==(t=de(r,e))?t:void 0;this.each((function(){le.set(this,e,n)}))}),null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),T.extend({queue:function(e,n,t){var i;if(e)return n=(n||"fx")+"queue",i=se.get(e,n),t&&(!i||Array.isArray(t)?i=se.access(e,n,T.makeArray(t)):i.push(t)),i||[]},dequeue:function(e,n){n=n||"fx";var t=T.queue(e,n),i=t.length,o=t.shift(),r=T._queueHooks(e,n);"inprogress"===o&&(o=t.shift(),i--),o&&("fx"===n&&t.unshift("inprogress"),delete r.stop,o.call(e,(function(){T.dequeue(e,n)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,n){var t=n+"queueHooks";return se.get(e,t)||se.access(e,t,{empty:T.Callbacks("once memory").add((function(){se.remove(e,[n+"queue",t])}))})}}),T.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?T.queue(this[0],e):void 0===n?this:this.each((function(){var t=T.queue(this,e,n);T._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var t,i=1,o=T.Deferred(),r=this,a=this.length,s=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof e&&(n=e,e=void 0),e=e||"fx";a--;)(t=se.get(r[a],e+"queueHooks"))&&t.empty&&(i++,t.empty.add(s));return s(),o.promise(n)}});var pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ge=new RegExp("^(?:([+-])=|)("+pe+")([a-z%]*)$","i"),fe=["Top","Right","Bottom","Left"],he=x.documentElement,ve=function(e){return T.contains(e.ownerDocument,e)},me={composed:!0};he.getRootNode&&(ve=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(me)===e.ownerDocument});var ye=function(e,n){return"none"===(e=n||e).style.display||""===e.style.display&&ve(e)&&"none"===T.css(e,"display")};function xe(e,n,t,i){var o,r,a=20,s=i?function(){return i.cur()}:function(){return T.css(e,n,"")},l=s(),c=t&&t[3]||(T.cssNumber[n]?"":"px"),u=e.nodeType&&(T.cssNumber[n]||"px"!==c&&+l)&&ge.exec(T.css(e,n));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)T.style(e,n,u+c),(1-r)*(1-(r=s()/l||.5))<=0&&(a=0),u/=r;u*=2,T.style(e,n,u+c),t=t||[]}return t&&(u=+u||+l||0,o=t[1]?u+(t[1]+1)*t[2]:+t[2],i&&(i.unit=c,i.start=u,i.end=o)),o}var we={};function be(e){var n,t=e.ownerDocument,i=e.nodeName,o=we[i];return o||(n=t.body.appendChild(t.createElement(i)),o=T.css(n,"display"),n.parentNode.removeChild(n),"none"===o&&(o="block"),we[i]=o,o)}function ke(e,n){for(var t,i,o=[],r=0,a=e.length;r<a;r++)(i=e[r]).style&&(t=i.style.display,n?("none"===t&&(o[r]=se.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&ye(i)&&(o[r]=be(i))):"none"!==t&&(o[r]="none",se.set(i,"display",t)));for(r=0;r<a;r++)null!=o[r]&&(e[r].style.display=o[r]);return e}T.fn.extend({show:function(){return ke(this,!0)},hide:function(){return ke(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?T(this).show():T(this).hide()}))}});var Ce,Se,Te=/^(?:checkbox|radio)$/i,De=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Le=/^$|^module$|\/(?:java|ecma)script/i;Ce=x.createDocumentFragment().appendChild(x.createElement("div")),(Se=x.createElement("input")).setAttribute("type","radio"),Se.setAttribute("checked","checked"),Se.setAttribute("name","t"),Ce.appendChild(Se),v.checkClone=Ce.cloneNode(!0).cloneNode(!0).lastChild.checked,Ce.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!Ce.cloneNode(!0).lastChild.defaultValue,Ce.innerHTML="<option></option>",v.option=!!Ce.lastChild;var Ae={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 Ee(e,n){var t;return t=void 0!==e.getElementsByTagName?e.getElementsByTagName(n||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(n||"*"):[],void 0===n||n&&L(e,n)?T.merge([e],t):t}function Me(e,n){for(var t=0,i=e.length;t<i;t++)se.set(e[t],"globalEval",!n||se.get(n[t],"globalEval"))}Ae.tbody=Ae.tfoot=Ae.colgroup=Ae.caption=Ae.thead,Ae.th=Ae.td,v.option||(Ae.optgroup=Ae.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ie(e,n,t,i,o){for(var r,a,s,l,c,u,d=n.createDocumentFragment(),p=[],g=0,f=e.length;g<f;g++)if((r=e[g])||0===r)if("object"===k(r))T.merge(p,r.nodeType?[r]:r);else if(je.test(r)){for(a=a||d.appendChild(n.createElement("div")),s=(De.exec(r)||["",""])[1].toLowerCase(),l=Ae[s]||Ae._default,a.innerHTML=l[1]+T.htmlPrefilter(r)+l[2],u=l[0];u--;)a=a.lastChild;T.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(n.createTextNode(r));for(d.textContent="",g=0;r=p[g++];)if(i&&T.inArray(r,i)>-1)o&&o.push(r);else if(c=ve(r),a=Ee(d.appendChild(r),"script"),c&&Me(a),t)for(u=0;r=a[u++];)Le.test(r.type||"")&&t.push(r);return d}var ze=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function Oe(){return!1}function Ve(e,n,t,i,o,r){var a,s;if("object"==typeof n){for(s in"string"!=typeof t&&(i=i||t,t=void 0),n)Ve(e,s,t,i,n[s],r);return e}if(null==i&&null==o?(o=t,i=t=void 0):null==o&&("string"==typeof t?(o=i,i=void 0):(o=i,i=t,t=void 0)),!1===o)o=Oe;else if(!o)return e;return 1===r&&(a=o,o=function(e){return T().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=T.guid++)),e.each((function(){T.event.add(this,n,o,i,t)}))}function He(e,n,t){t?(se.set(e,n,!1),T.event.add(e,n,{namespace:!1,handler:function(e){var t,i=se.get(this,n);if(1&e.isTrigger&&this[n]){if(i)(T.event.special[n]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),se.set(this,n,i),this[n](),t=se.get(this,n),se.set(this,n,!1),i!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else i&&(se.set(this,n,T.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===se.get(e,n)&&T.event.add(e,n,Ne)}T.event={global:{},add:function(e,n,t,i,o){var r,a,s,l,c,u,d,p,g,f,h,v=se.get(e);if(re(e))for(t.handler&&(t=(r=t).handler,o=r.selector),o&&T.find.matchesSelector(he,o),t.guid||(t.guid=T.guid++),(l=v.events)||(l=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(n){return void 0!==T&&T.event.triggered!==n.type?T.event.dispatch.apply(e,arguments):void 0}),c=(n=(n||"").match(U)||[""]).length;c--;)g=h=(s=ze.exec(n[c])||[])[1],f=(s[2]||"").split(".").sort(),g&&(d=T.event.special[g]||{},g=(o?d.delegateType:d.bindType)||g,d=T.event.special[g]||{},u=T.extend({type:g,origType:h,data:i,handler:t,guid:t.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:f.join(".")},r),(p=l[g])||((p=l[g]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,a)||e.addEventListener&&e.addEventListener(g,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=t.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),T.event.global[g]=!0)},remove:function(e,n,t,i,o){var r,a,s,l,c,u,d,p,g,f,h,v=se.hasData(e)&&se.get(e);if(v&&(l=v.events)){for(c=(n=(n||"").match(U)||[""]).length;c--;)if(g=h=(s=ze.exec(n[c])||[])[1],f=(s[2]||"").split(".").sort(),g){for(d=T.event.special[g]||{},p=l[g=(i?d.delegateType:d.bindType)||g]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=p.length;r--;)u=p[r],!o&&h!==u.origType||t&&t.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(p.splice(r,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,v.handle)||T.removeEvent(e,g,v.handle),delete l[g])}else for(g in l)T.event.remove(e,g+n[c],t,i,!0);T.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var n,t,i,o,r,a,s=new Array(arguments.length),l=T.event.fix(e),c=(se.get(this,"events")||Object.create(null))[l.type]||[],u=T.event.special[l.type]||{};for(s[0]=l,n=1;n<arguments.length;n++)s[n]=arguments[n];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=T.event.handlers.call(this,l,c),n=0;(o=a[n++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,t=0;(r=o.handlers[t++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((T.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,n){var t,i,o,r,a,s=[],l=n.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],a={},t=0;t<l;t++)void 0===a[o=(i=n[t]).selector+" "]&&(a[o]=i.needsContext?T(o,this).index(c)>-1:T.find(o,this,null,[c]).length),a[o]&&r.push(i);r.length&&s.push({elem:c,handlers:r})}return c=this,l<n.length&&s.push({elem:c,handlers:n.slice(l)}),s},addProp:function(e,n){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:m(n)?function(){if(this.originalEvent)return n(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(n){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:n})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var n=this||e;return Te.test(n.type)&&n.click&&L(n,"input")&&He(n,"click",!0),!1},trigger:function(e){var n=this||e;return Te.test(n.type)&&n.click&&L(n,"input")&&He(n,"click"),!0},_default:function(e){var n=e.target;return Te.test(n.type)&&n.click&&L(n,"input")&&se.get(n,"click")||L(n,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,n,t){e.removeEventListener&&e.removeEventListener(n,t)},T.Event=function(e,n){if(!(this instanceof T.Event))return new T.Event(e,n);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:Oe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,n&&T.extend(this,n),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Oe,isPropagationStopped:Oe,isImmediatePropagationStopped:Oe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.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},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,n){function t(e){if(x.documentMode){var t=se.get(this,"handle"),i=T.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,t(e),i.target===i.currentTarget&&t(i)}else T.event.simulate(n,e.target,T.event.fix(e))}T.event.special[e]={setup:function(){var i;if(He(this,e,!0),!x.documentMode)return!1;(i=se.get(this,n))||this.addEventListener(n,t),se.set(this,n,(i||0)+1)},trigger:function(){return He(this,e),!0},teardown:function(){var e;if(!x.documentMode)return!1;(e=se.get(this,n)-1)?se.set(this,n,e):(this.removeEventListener(n,t),se.remove(this,n))},_default:function(n){return se.get(n.target,e)},delegateType:n},T.event.special[n]={setup:function(){var i=this.ownerDocument||this.document||this,o=x.documentMode?this:i,r=se.get(o,n);r||(x.documentMode?this.addEventListener(n,t):i.addEventListener(e,t,!0)),se.set(o,n,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=x.documentMode?this:i,r=se.get(o,n)-1;r?se.set(o,n,r):(x.documentMode?this.removeEventListener(n,t):i.removeEventListener(e,t,!0),se.remove(o,n))}}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,n){T.event.special[e]={delegateType:n,bindType:n,handle:function(e){var t,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||T.contains(this,i))||(e.type=o.origType,t=o.handler.apply(this,arguments),e.type=n),t}}})),T.fn.extend({on:function(e,n,t,i){return Ve(this,e,n,t,i)},one:function(e,n,t,i){return Ve(this,e,n,t,i,1)},off:function(e,n,t){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,T(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return!1!==n&&"function"!=typeof n||(t=n,n=void 0),!1===t&&(t=Oe),this.each((function(){T.event.remove(this,e,t,n)}))}});var Be=/<script|<style|<link/i,$e=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function qe(e,n){return L(e,"table")&&L(11!==n.nodeType?n:n.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Re(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function _e(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,n){var t,i,o,r,a,s;if(1===n.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(o in se.remove(n,"handle events"),s)for(t=0,i=s[o].length;t<i;t++)T.event.add(n,o,s[o][t]);le.hasData(e)&&(r=le.access(e),a=T.extend({},r),le.set(n,a))}}function Ge(e,n){var t=n.nodeName.toLowerCase();"input"===t&&Te.test(e.type)?n.checked=e.checked:"input"!==t&&"textarea"!==t||(n.defaultValue=e.defaultValue)}function We(e,n,t,i){n=l(n);var o,r,a,s,c,u,d=0,p=e.length,g=p-1,f=n[0],h=m(f);if(h||p>1&&"string"==typeof f&&!v.checkClone&&$e.test(f))return e.each((function(o){var r=e.eq(o);h&&(n[0]=f.call(this,o,r.html())),We(r,n,t,i)}));if(p&&(r=(o=Ie(n,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=r),r||i)){for(s=(a=T.map(Ee(o,"script"),Re)).length;d<p;d++)c=o,d!==g&&(c=T.clone(c,!0,!0),s&&T.merge(a,Ee(c,"script"))),t.call(e[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,T.map(a,_e),d=0;d<s;d++)c=a[d],Le.test(c.type||"")&&!se.access(c,"globalEval")&&T.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?T._evalUrl&&!c.noModule&&T._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):b(c.textContent.replace(Pe,""),c,u))}return e}function Ue(e,n,t){for(var i,o=n?T.filter(n,e):e,r=0;null!=(i=o[r]);r++)t||1!==i.nodeType||T.cleanData(Ee(i)),i.parentNode&&(t&&ve(i)&&Me(Ee(i,"script")),i.parentNode.removeChild(i));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,n,t){var i,o,r,a,s=e.cloneNode(!0),l=ve(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=Ee(s),i=0,o=(r=Ee(e)).length;i<o;i++)Ge(r[i],a[i]);if(n)if(t)for(r=r||Ee(e),a=a||Ee(s),i=0,o=r.length;i<o;i++)Fe(r[i],a[i]);else Fe(e,s);return(a=Ee(s,"script")).length>0&&Me(a,!l&&Ee(e,"script")),s},cleanData:function(e){for(var n,t,i,o=T.event.special,r=0;void 0!==(t=e[r]);r++)if(re(t)){if(n=t[se.expando]){if(n.events)for(i in n.events)o[i]?T.event.remove(t,i):T.removeEvent(t,i,n.handle);t[se.expando]=void 0}t[le.expando]&&(t[le.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Ue(this,e,!0)},remove:function(e){return Ue(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return We(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)}))},prepend:function(){return We(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=qe(this,e);n.insertBefore(e,n.firstChild)}}))},before:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,n=0;null!=(e=this[n]);n++)1===e.nodeType&&(T.cleanData(Ee(e,!1)),e.textContent="");return this},clone:function(e,n){return e=null!=e&&e,n=null==n?e:n,this.map((function(){return T.clone(this,e,n)}))},html:function(e){return ee(this,(function(e){var n=this[0]||{},t=0,i=this.length;if(void 0===e&&1===n.nodeType)return n.innerHTML;if("string"==typeof e&&!Be.test(e)&&!Ae[(De.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;t<i;t++)1===(n=this[t]||{}).nodeType&&(T.cleanData(Ee(n,!1)),n.innerHTML=e);n=0}catch(e){}}n&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return We(this,arguments,(function(n){var t=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(Ee(this)),t&&t.replaceChild(n,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,n){T.fn[e]=function(e){for(var t,i=[],o=T(e),r=o.length-1,a=0;a<=r;a++)t=a===r?this:this.clone(!0),T(o[a])[n](t),c.apply(i,t.get());return this.pushStack(i)}}));var Xe=new RegExp("^("+pe+")(?!px)[a-z%]+$","i"),Ye=/^--/,Ze=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=i),n.getComputedStyle(e)},Qe=function(e,n,t){var i,o,r={};for(o in n)r[o]=e.style[o],e.style[o]=n[o];for(o in i=t.call(e),n)e.style[o]=r[o];return i},Je=new RegExp(fe.join("|"),"i");function Ke(e,n,t){var i,o,r,a,s=Ye.test(n),l=e.style;return(t=t||Ze(e))&&(a=t.getPropertyValue(n)||t[n],s&&a&&(a=a.replace(I,"$1")||void 0),""!==a||ve(e)||(a=T.style(e,n)),!v.pixelBoxStyles()&&Xe.test(a)&&Je.test(n)&&(i=l.width,o=l.minWidth,r=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=t.width,l.width=i,l.minWidth=o,l.maxWidth=r)),void 0!==a?a+"":a}function en(e,n){return{get:function(){if(!e())return(this.get=n).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",he.appendChild(