owl-bt
Version:
owl-bt is editor for Behavior trees. It has been inspired by Unreal engine behavior trees in a way, that it supports special node items like decorators and services. This makes trees smaller and much more readable.
25 lines • 2.24 MB
JavaScript
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=34)}([function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(e){var r,o=n(75),c=n(20),i=n(76),a=n(77),l=n(78);e&&e.ArrayBuffer&&(r=n(79));var s="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),u="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),h=s||u;t.protocol=3;var d=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},f=o(d),p={type:"error",data:"parser error"},m=n(80);function v(e,t,n){for(var r=new Array(e.length),o=a(e.length,n),c=function(e,n,o){t(n,(function(t,n){r[e]=n,o(t,r)}))},i=0;i<e.length;i++)c(i,e[i],o)}t.encodePacket=function(n,r,o,c){"function"==typeof r&&(c=r,r=!1),"function"==typeof o&&(c=o,o=null);var i=void 0===n.data?void 0:n.data.buffer||n.data;if(e.ArrayBuffer&&i instanceof ArrayBuffer)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=e.data,c=new Uint8Array(o),i=new Uint8Array(1+o.byteLength);i[0]=d[e.type];for(var a=0;a<c.length;a++)i[a+1]=c[a];return r(i.buffer)}(n,r,c);if(m&&i instanceof e.Blob)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);if(h)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=new FileReader;return o.onload=function(){e.data=o.result,t.encodePacket(e,n,!0,r)},o.readAsArrayBuffer(e.data)}(e,n,r);var o=new Uint8Array(1);o[0]=d[e.type];var c=new m([o.buffer,e.data]);return r(c)}(n,r,c);if(i&&i.base64)return function(e,n){var r="b"+t.packets[e.type]+e.data.data;return n(r)}(n,c);var a=d[n.type];return void 0!==n.data&&(a+=o?l.encode(String(n.data)):String(n.data)),c(""+a)},t.encodeBase64Packet=function(n,r){var o,c="b"+t.packets[n.type];if(m&&n.data instanceof e.Blob){var i=new FileReader;return i.onload=function(){var e=i.result.split(",")[1];r(c+e)},i.readAsDataURL(n.data)}try{o=String.fromCharCode.apply(null,new Uint8Array(n.data))}catch(e){for(var a=new Uint8Array(n.data),l=new Array(a.length),s=0;s<a.length;s++)l[s]=a[s];o=String.fromCharCode.apply(null,l)}return c+=e.btoa(o),r(c)},t.decodePacket=function(e,n,r){if(void 0===e)return p;if("string"==typeof e){if("b"==e.charAt(0))return t.decodeBase64Packet(e.substr(1),n);if(r&&!1===(e=function(e){try{e=l.decode(e)}catch(e){return!1}return e}(e)))return p;var o=e.charAt(0);return Number(o)==o&&f[o]?e.length>1?{type:f[o],data:e.substring(1)}:{type:f[o]}:p}o=new Uint8Array(e)[0];var c=i(e,1);return m&&"blob"===n&&(c=new m([c])),{type:f[o],data:c}},t.decodeBase64Packet=function(e,t){var n=f[e.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:e.substr(1)}};var o=r.decode(e.substr(1));return"blob"===t&&m&&(o=new m([o])),{type:n,data:o}},t.encodePayload=function(e,n,r){"function"==typeof n&&(r=n,n=null);var o=c(e);if(n&&o)return m&&!h?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r);if(!e.length)return r("0:");v(e,(function(e,r){t.encodePacket(e,!!o&&n,!0,(function(e){r(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return r(t.join(""))}))},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);var o;if("function"==typeof n&&(r=n,n=null),""==e)return r(p,0,1);for(var c,i,a="",l=0,s=e.length;l<s;l++){var u=e.charAt(l);if(":"!=u)a+=u;else{if(""==a||a!=(c=Number(a)))return r(p,0,1);if(a!=(i=e.substr(l+1,c)).length)return r(p,0,1);if(i.length){if(o=t.decodePacket(i,n,!0),p.type==o.type&&p.data==o.data)return r(p,0,1);if(!1===r(o,l+c,s))return}l+=c,a=""}}return""!=a?r(p,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,n){if(!e.length)return n(new ArrayBuffer(0));v(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){return n(null,e)}))}),(function(e,t){var r=t.reduce((function(e,t){var n;return e+(n="string"==typeof t?t.length:t.byteLength).toString().length+n+2}),0),o=new Uint8Array(r),c=0;return t.forEach((function(e){var t="string"==typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),i=0;i<e.length;i++)r[i]=e.charCodeAt(i);n=r.buffer}o[c++]=t?0:1;var a=n.byteLength.toString();for(i=0;i<a.length;i++)o[c++]=parseInt(a[i]);o[c++]=255;for(r=new Uint8Array(n),i=0;i<r.length;i++)o[c++]=r[i]})),n(o.buffer)}))},t.encodePayloadAsBlob=function(e,n){v(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){var t=new Uint8Array(1);if(t[0]=1,"string"==typeof e){for(var r=new Uint8Array(e.length),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);e=r.buffer,t[0]=0}var c=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),i=new Uint8Array(c.length+1);for(o=0;o<c.length;o++)i[o]=parseInt(c[o]);if(i[c.length]=255,m){var a=new m([t.buffer,i.buffer,e]);n(null,a)}}))}),(function(e,t){return n(new m(t))}))},t.decodePayloadAsBinary=function(e,n,r){"function"==typeof n&&(r=n,n=null);for(var o=e,c=[],a=!1;o.byteLength>0;){for(var l=new Uint8Array(o),s=0===l[0],u="",h=1;255!=l[h];h++){if(u.length>310){a=!0;break}u+=l[h]}if(a)return r(p,0,1);o=i(o,2+u.length),u=parseInt(u);var d=i(o,0,u);if(s)try{d=String.fromCharCode.apply(null,new Uint8Array(d))}catch(e){var f=new Uint8Array(d);d="";for(h=0;h<f.length;h++)d+=String.fromCharCode(f[h])}c.push(d),o=i(o,u)}var m=c.length;c.forEach((function(e,o){r(t.decodePacket(e,n,!0),o,m)}))}}).call(this,n(0))},function(e,t,n){var r;
/*!
* jQuery JavaScript Library v3.5.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2020-05-04T22:49Z
*/!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,o){"use strict";var c=[],i=Object.getPrototypeOf,a=c.slice,l=c.flat?function(e){return c.flat.call(e)}:function(e){return c.concat.apply([],e)},s=c.push,u=c.indexOf,h={},d=h.toString,f=h.hasOwnProperty,p=f.toString,m=p.call(Object),v={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},y=n.document,z={type:!0,src:!0,nonce:!0,noModule:!0};function C(e,t,n){var r,o,c=(n=n||y).createElement("script");if(c.text=e,t)for(r in z)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&c.setAttribute(r,o);n.head.appendChild(c).parentNode.removeChild(c)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?h[d.call(e)]||"object":typeof e}var M=function(e,t){return new M.fn.init(e,t)};function w(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!g(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}M.fn=M.prototype={jquery:"3.5.1",constructor:M,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=M.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return M.each(this,e)},map:function(e){return this.pushStack(M.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(M.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(M.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:c.sort,splice:c.splice},M.extend=M.fn.extend=function(){var e,t,n,r,o,c,i=arguments[0]||{},a=1,l=arguments.length,s=!1;for("boolean"==typeof i&&(s=i,i=arguments[a]||{},a++),"object"==typeof i||g(i)||(i={}),a===l&&(i=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&i!==r&&(s&&r&&(M.isPlainObject(r)||(o=Array.isArray(r)))?(n=i[t],c=o&&!Array.isArray(n)?[]:o||M.isPlainObject(n)?n:{},o=!1,i[t]=M.extend(s,c,r)):void 0!==r&&(i[t]=r));return i},M.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e))&&(!(t=i(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){C(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(w(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(w(Object(e))?M.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,c=e.length,i=!n;o<c;o++)!t(e[o],o)!==i&&r.push(e[o]);return r},map:function(e,t,n){var r,o,c=0,i=[];if(w(e))for(r=e.length;c<r;c++)null!=(o=t(e[c],c,n))&&i.push(o);else for(c in e)null!=(o=t(e[c],c,n))&&i.push(o);return l(i)},guid:1,support:v}),"function"==typeof Symbol&&(M.fn[Symbol.iterator]=c[Symbol.iterator]),M.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){h["[object "+t+"]"]=t.toLowerCase()}));var S=
/*!
* Sizzle CSS Selector Engine v2.3.5
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://js.foundation/
*
* Date: 2020-03-14
*/
function(e){var t,n,r,o,c,i,a,l,s,u,h,d,f,p,m,v,g,b,y,z="sizzle"+1*new Date,C=e.document,x=0,M=0,w=le(),S=le(),_=le(),k=le(),H=function(e,t){return e===t&&(h=!0),0},$={}.hasOwnProperty,V=[],L=V.pop,T=V.push,A=V.push,B=V.slice,E=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",D="[\\x20\\t\\r\\n\\f]",O="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\["+D+"*("+O+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+D+"*\\]",P=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",j=new RegExp(D+"+","g"),R=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g"),q=new RegExp("^"+D+"*,"+D+"*"),U=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),F=new RegExp(D+"|>"),Z=new RegExp(P),W=new RegExp("^"+O+"$"),Y={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,G=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ce=function(){d()},ie=ze((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{A.apply(V=B.call(C.childNodes),C.childNodes),V[C.childNodes.length].nodeType}catch(e){A={apply:V.length?function(e,t){T.apply(e,B.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,r,o){var c,a,s,u,h,p,g,b=t&&t.ownerDocument,C=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return r;if(!o&&(d(t),t=t||f,m)){if(11!==C&&(h=Q.exec(e)))if(c=h[1]){if(9===C){if(!(s=t.getElementById(c)))return r;if(s.id===c)return r.push(s),r}else if(b&&(s=b.getElementById(c))&&y(t,s)&&s.id===c)return r.push(s),r}else{if(h[2])return A.apply(r,t.getElementsByTagName(e)),r;if((c=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return A.apply(r,t.getElementsByClassName(c)),r}if(n.qsa&&!k[e+" "]&&(!v||!v.test(e))&&(1!==C||"object"!==t.nodeName.toLowerCase())){if(g=e,b=t,1===C&&(F.test(e)||U.test(e))){for((b=ee.test(e)&&ge(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,oe):t.setAttribute("id",u=z)),a=(p=i(e)).length;a--;)p[a]=(u?"#"+u:":scope")+" "+ye(p[a]);g=p.join(",")}try{return A.apply(r,b.querySelectorAll(g)),r}catch(t){k(e,!0)}finally{u===z&&t.removeAttribute("id")}}}return l(e.replace(R,"$1"),t,r,o)}function le(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function se(e){return e[z]=!0,e}function ue(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(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&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return se((function(t){return t=+t,se((function(n,r){for(var o,c=e([],n.length,t),i=c.length;i--;)n[o=c[i]]&&(n[o]=!(r[o]=n[o]))}))}))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},c=ae.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},d=ae.setDocument=function(e){var t,o,i=e?e.ownerDocument||e:C;return i!=f&&9===i.nodeType&&i.documentElement?(p=(f=i).documentElement,m=!c(f),C!=f&&(o=f.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ce,!1):o.attachEvent&&o.attachEvent("onunload",ce)),n.scope=ue((function(e){return p.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(f.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=z,!f.getElementsByName||!f.getElementsByName(z).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,o,c=t.getElementById(e);if(c){if((n=c.getAttributeNode("id"))&&n.value===e)return[c];for(o=t.getElementsByName(e),r=0;c=o[r++];)if((n=c.getAttributeNode("id"))&&n.value===e)return[c]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,c=t.getElementsByTagName(e);if("*"===e){for(;n=c[o++];)1===n.nodeType&&r.push(n);return r}return c},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},g=[],v=[],(n.qsa=K.test(f.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="<a id='"+z+"'></a><select id='"+z+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+D+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+D+"*(?:value|"+N+")"),e.querySelectorAll("[id~="+z+"-]").length||v.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+z+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+D+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=K.test(b=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),g.push("!=",P)})),v=v.length&&new RegExp(v.join("|")),g=g.length&&new RegExp(g.join("|")),t=K.test(p.compareDocumentPosition),y=t||K.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},H=t?function(e,t){if(e===t)return h=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==f||e.ownerDocument==C&&y(C,e)?-1:t==f||t.ownerDocument==C&&y(C,t)?1:u?E(u,e)-E(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,r=0,o=e.parentNode,c=t.parentNode,i=[e],a=[t];if(!o||!c)return e==f?-1:t==f?1:o?-1:c?1:u?E(u,e)-E(u,t):0;if(o===c)return de(e,t);for(n=e;n=n.parentNode;)i.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;i[r]===a[r];)r++;return r?de(i[r],a[r]):i[r]==C?-1:a[r]==C?1:0},f):f},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&m&&!k[t+" "]&&(!g||!g.test(t))&&(!v||!v.test(t)))try{var r=b.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){k(t,!0)}return ae(t,f,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=f&&d(e),y(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=f&&d(e);var o=r.attrHandle[t.toLowerCase()],c=o&&$.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==c?c:n.attributes||!m?e.getAttribute(t):(c=e.getAttributeNode(t))&&c.specified?c.value:null},ae.escape=function(e){return(e+"").replace(re,oe)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,r=[],o=0,c=0;if(h=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(H),h){for(;t=e[c++];)t===e[c]&&(o=r.push(c));for(;o--;)e.splice(r[o],1)}return u=null,e},o=ae.getText=function(e){var t,n="",r=0,c=e.nodeType;if(c){if(1===c||9===c||11===c){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===c||4===c)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=ae.selectors={cacheLength:50,createPseudo:se,match:Y,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||ae.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]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Z.test(n)&&(t=i(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&w(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=ae.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(j," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var c="nth"!==e.slice(0,3),i="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var s,u,h,d,f,p,m=c!==i?"nextSibling":"previousSibling",v=t.parentNode,g=a&&t.nodeName.toLowerCase(),b=!l&&!a,y=!1;if(v){if(c){for(;m;){for(d=t;d=d[m];)if(a?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[i?v.firstChild:v.lastChild],i&&b){for(y=(f=(s=(u=(h=(d=v)[z]||(d[z]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===x&&s[1])&&s[2],d=f&&v.childNodes[f];d=++f&&d&&d[m]||(y=f=0)||p.pop();)if(1===d.nodeType&&++y&&d===t){u[e]=[x,f,y];break}}else if(b&&(y=f=(s=(u=(h=(d=t)[z]||(d[z]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===x&&s[1]),!1===y)for(;(d=++f&&d&&d[m]||(y=f=0)||p.pop())&&((a?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++y||(b&&((u=(h=d[z]||(d[z]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]=[x,y]),d!==t)););return(y-=o)===r||y%r==0&&y/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return o[z]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se((function(e,n){for(var r,c=o(e,t),i=c.length;i--;)e[r=E(e,c[i])]=!(n[r]=c[i])})):function(e){return o(e,0,n)}):o}},pseudos:{not:se((function(e){var t=[],n=[],r=a(e.replace(R,"$1"));return r[z]?se((function(e,t,n,o){for(var c,i=r(e,null,o,[]),a=e.length;a--;)(c=i[a])&&(e[a]=!(t[a]=c))})):function(e,o,c){return t[0]=e,r(t,null,c,n),t[0]=null,!n.pop()}})),has:se((function(e){return function(t){return ae(e,t).length>0}})),contains:se((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:se((function(e){return W.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!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!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve((function(){return[0]})),last:ve((function(e,t){return[t-1]})),eq:ve((function(e,t,n){return[n<0?n+t:n]})),even:ve((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ve((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ve((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ve((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function be(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ze(e,t,n){var r=t.dir,o=t.next,c=o||r,i=n&&"parentNode"===c,a=M++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o);return!1}:function(t,n,l){var s,u,h,d=[x,a];if(l){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||i)if(u=(h=t[z]||(t[z]={}))[t.uniqueID]||(h[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((s=u[c])&&s[0]===x&&s[1]===a)return d[2]=s[2];if(u[c]=d,d[2]=e(t,n,l))return!0}return!1}}function Ce(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function xe(e,t,n,r,o){for(var c,i=[],a=0,l=e.length,s=null!=t;a<l;a++)(c=e[a])&&(n&&!n(c,r,o)||(i.push(c),s&&t.push(a)));return i}function Me(e,t,n,r,o,c){return r&&!r[z]&&(r=Me(r)),o&&!o[z]&&(o=Me(o,c)),se((function(c,i,a,l){var s,u,h,d=[],f=[],p=i.length,m=c||function(e,t,n){for(var r=0,o=t.length;r<o;r++)ae(e,t[r],n);return n}(t||"*",a.nodeType?[a]:a,[]),v=!e||!c&&t?m:xe(m,d,e,a,l),g=n?o||(c?e:p||r)?[]:i:v;if(n&&n(v,g,a,l),r)for(s=xe(g,f),r(s,[],a,l),u=s.length;u--;)(h=s[u])&&(g[f[u]]=!(v[f[u]]=h));if(c){if(o||e){if(o){for(s=[],u=g.length;u--;)(h=g[u])&&s.push(v[u]=h);o(null,g=[],s,l)}for(u=g.length;u--;)(h=g[u])&&(s=o?E(c,h):d[u])>-1&&(c[s]=!(i[s]=h))}}else g=xe(g===i?g.splice(p,g.length):g),o?o(null,i,g,l):A.apply(i,g)}))}function we(e){for(var t,n,o,c=e.length,i=r.relative[e[0].type],a=i||r.relative[" "],l=i?1:0,u=ze((function(e){return e===t}),a,!0),h=ze((function(e){return E(t,e)>-1}),a,!0),d=[function(e,n,r){var o=!i&&(r||n!==s)||((t=n).nodeType?u(e,n,r):h(e,n,r));return t=null,o}];l<c;l++)if(n=r.relative[e[l].type])d=[ze(Ce(d),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[z]){for(o=++l;o<c&&!r.relative[e[o].type];o++);return Me(l>1&&Ce(d),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(R,"$1"),n,l<o&&we(e.slice(l,o)),o<c&&we(e=e.slice(o)),o<c&&ye(e))}d.push(n)}return Ce(d)}return be.prototype=r.filters=r.pseudos,r.setFilters=new be,i=ae.tokenize=function(e,t){var n,o,c,i,a,l,s,u=S[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],s=r.preFilter;a;){for(i in n&&!(o=q.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(c=[])),n=!1,(o=U.exec(a))&&(n=o.shift(),c.push({value:n,type:o[0].replace(R," ")}),a=a.slice(n.length)),r.filter)!(o=Y[i].exec(a))||s[i]&&!(o=s[i](o))||(n=o.shift(),c.push({value:n,type:i,matches:o}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):S(e,l).slice(0)},a=ae.compile=function(e,t){var n,o=[],c=[],a=_[e+" "];if(!a){for(t||(t=i(e)),n=t.length;n--;)(a=we(t[n]))[z]?o.push(a):c.push(a);(a=_(e,function(e,t){var n=t.length>0,o=e.length>0,c=function(c,i,a,l,u){var h,p,v,g=0,b="0",y=c&&[],z=[],C=s,M=c||o&&r.find.TAG("*",u),w=x+=null==C?1:Math.random()||.1,S=M.length;for(u&&(s=i==f||i||u);b!==S&&null!=(h=M[b]);b++){if(o&&h){for(p=0,i||h.ownerDocument==f||(d(h),a=!m);v=e[p++];)if(v(h,i||f,a)){l.push(h);break}u&&(x=w)}n&&((h=!v&&h)&&g--,c&&y.push(h))}if(g+=b,n&&b!==g){for(p=0;v=t[p++];)v(y,z,i,a);if(c){if(g>0)for(;b--;)y[b]||z[b]||(z[b]=L.call(l));z=xe(z)}A.apply(l,z),u&&!c&&z.length>0&&g+t.length>1&&ae.uniqueSort(l)}return u&&(x=w,s=C),y};return n?se(c):c}(c,o))).selector=e}return a},l=ae.select=function(e,t,n,o){var c,l,s,u,h,d="function"==typeof e&&e,f=!o&&i(e=d.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(s=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(s.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(c=Y.needsContext.test(e)?0:l.length;c--&&(s=l[c],!r.relative[u=s.type]);)if((h=r.find[u])&&(o=h(s.matches[0].replace(te,ne),ee.test(l[0].type)&&ge(t.parentNode)||t))){if(l.splice(c,1),!(e=o.length&&ye(l)))return A.apply(n,o),n;break}}return(d||a(e,f))(o,t,!m,n,!t||ee.test(e)&&ge(t.parentNode)||t),n},n.sortStable=z.split("").sort(H).join("")===z,n.detectDuplicates=!!h,d(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||he(N,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),ae}(n);M.find=S,M.expr=S.selectors,M.expr[":"]=M.expr.pseudos,M.uniqueSort=M.unique=S.uniqueSort,M.text=S.getText,M.isXMLDoc=S.isXML,M.contains=S.contains,M.escapeSelector=S.escape;var _=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&M(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},H=M.expr.match.needsContext;function $(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var V=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return g(t)?M.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?M.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?M.grep(e,(function(e){return u.call(t,e)>-1!==n})):M.filter(t,e,n)}M.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?M.find.matchesSelector(r,e)?[r]:[]:M.find.matches(e,M.grep(t,(function(e){return 1===e.nodeType})))},M.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(M(e).filter((function(){for(t=0;t<r;t++)if(M.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)M.find(e,o[t],n);return r>1?M.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&H.test(e)?M(e):e||[],!1).length}});var T,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(M.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||T,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof M?t[0]:t,M.merge(this,M.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),V.test(r[1])&&M.isPlainObject(t))for(r in t)g(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=y.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(M):M.makeArray(e,this)}).prototype=M.fn,T=M(y);var B=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}M.fn.extend({has:function(e){var t=M(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(M.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,o=this.length,c=[],i="string"!=typeof e&&M(e);if(!H.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(i?i.index(n)>-1:1===n.nodeType&&M.find.matchesSelector(n,e))){c.push(n);break}return this.pushStack(c.length>1?M.uniqueSort(c):c)},index:function(e){return e?"string"==typeof e?u.call(M(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(M.uniqueSort(M.merge(this.get(),M(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),M.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return _(e,"parentNode")},parentsUntil:function(e,t,n){return _(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return _(e,"nextSibling")},prevAll:function(e){return _(e,"previousSibling")},nextUntil:function(e,t,n){return _(e,"nextSibling",n)},prevUntil:function(e,t,n){return _(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:($(e,"template")&&(e=e.content||e),M.merge([],e.childNodes))}},(function(e,t){M.fn[e]=function(n,r){var o=M.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=M.filter(r,o)),this.length>1&&(E[e]||M.uniqueSort(o),B.test(e)&&o.reverse()),this.pushStack(o)}}));var D=/[^\x20\t\r\n\f]+/g;function O(e){return e}function I(e){throw e}function P(e,t,n,r){var o;try{e&&g(o=e.promise)?o.call(e).done(t).fail(n):e&&g(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}M.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return M.each(e.match(D)||[],(function(e,n){t[n]=!0})),t}(e):M.extend({},e);var t,n,r,o,c=[],i=[],a=-1,l=function(){for(o=o||e.once,r=t=!0;i.length;a=-1)for(n=i.shift();++a<c.length;)!1===c[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=c.length,n=!1);e.memory||(n=!1),t=!1,o&&(c=n?[]:"")},s={add:function(){return c&&(n&&!t&&(a=c.length-1,i.push(n)),function t(n){M.each(n,(function(n,r){g(r)?e.unique&&s.has(r)||c.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return M.each(arguments,(function(e,t){for(var n;(n=M.inArray(t,c,n))>-1;)c.splice(n,1),n<=a&&a--})),this},has:function(e){return e?M.inArray(e,c)>-1:c.length>0},empty:function(){return c&&(c=[]),this},disable:function(){return o=i=[],c=n="",this},disabled:function(){return!c},lock:function(){return o=i=[],n||t||(c=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],i.push(n),t||l()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!r}};return s},M.extend({Deferred:function(e){var t=[["notify","progress",M.Callbacks("memory"),M.Callbacks("memory"),2],["resolve","done",M.Callbacks("once memory"),M.Callbacks("once memory"),0,"resolved"],["reject","fail",M.Callbacks("once memory"),M.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return c.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return M.Deferred((function(n){M.each(t,(function(t,r){var o=g(e[r[4]])&&e[r[4]];c[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&g(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,o){var c=0;function i(e,t,r,o){return function(){var a=this,l=arguments,s=function(){var n,s;if(!(e<c)){if((n=r.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");s=n&&("object"==typeof n||"function"==typeof n)&&n.then,g(s)?o?s.call(n,i(c,t,O,o),i(c,t,I,o)):(c++,s.call(n,i(c,t,O,o),i(c,t,I,o),i(c,t,O,t.notifyWith))):(r!==O&&(a=void 0,l=[n]),(o||t.resolveWith)(a,l))}},u=o?s:function(){try{s()}catch(n){M.Deferred.exceptionHook&&M.Deferred.exceptionHook(n,u.stackTrace),e+1>=c&&(r!==I&&(a=void 0,l=[n]),t.rejectWith(a,l))}};e?u():(M.Deferred.getStackHook&&(u.stackTrace=M.Deferred.getStackHook()),n.setTimeout(u))}}return M.Deferred((function(n){t[0][3].add(i(0,n,g(o)?o:O,n.notifyWith)),t[1][3].add(i(0,n,g(e)?e:O)),t[2][3].add(i(0,n,g(r)?r:I))})).promise()},promise:function(e){return null!=e?M.extend(e,o):o}},c={};return M.each(t,(function(e,n){var i=n[2],a=n[5];o[n[1]]=i.add,a&&i.add((function(){r=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),i.add(n[3].fire),c[n[0]]=function(){return c[n[0]+"With"](this===c?void 0:this,arguments),this},c[n[0]+"With"]=i.fireWith})),o.promise(c),e&&e.call(c,c),c},when:function(e){var t=arguments.length,n=t,r=Array(n),o=a.call(arguments),c=M.Deferred(),i=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?a.call(arguments):n,--t||c.resolveWith(r,o)}};if(t<=1&&(P(e,c.done(i(n)).resolve,c.reject,!t),"pending"===c.state()||g(o[n]&&o[n].then)))return c.then();for(;n--;)P(o[n],i(n),c.reject);return c.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;M.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&j.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},M.readyException=function(e){n.setTimeout((function(){throw e}))};var R=M.Deferred();function q(){y.removeEventListener("DOMContentLoaded",q),n.removeEventListener("load",q),M.ready()}M.fn.ready=function(e){return R.then(e).catch((function(e){M.readyException(e)})),this},M.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--M.readyWait:M.isReady)||(M.isReady=!0,!0!==e&&--M.readyWait>0||R.resolveWith(y,[M]))}}),M.ready.then=R.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(M.ready):(y.addEventListener("DOMContentLoaded",q),n.addEventListener("load",q));var U=function(e,t,n,r,o,c,i){var a=0,l=e.length,s=null==n;if("object"===x(n))for(a in o=!0,n)U(e,t,a,n[a],!0,c,i);else if(void 0!==r&&(o=!0,g(r)||(i=!0),s&&(i?(t.call(e,r),t=null):(s=t,t=function(e,t,n){return s.call(M(e),n)})),t))for(;a<l;a++)t(e[a],n,i?r:r.call(e[a],a,t(e[a],n)));return o?e:s?t.call(e):l?t(e[0],n):c},F=/^-ms-/,Z=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function Y(e){return e.replace(F,"ms-").replace(Z,W)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=M.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[Y(t)]=n;else for(r in t)o[Y(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Y(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(Y):(t=Y(t))in r?[t]:t.match(D)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||M.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!M.isEmptyObject(t)}};var J=new G,K=new G,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Q.test(e)?JSON.parse(e):e)}(n)}catch(e){}K.set(e,t,n)}else n=void 0;return n}M.extend({hasData:function(e){return K.hasData(e)||J.hasData(e)},data:function(e,t,n){return K.access(e,t,n)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),M.fn.extend({data:function(e,t){var n,r,o,c=this[0],i=c&&c.attributes;if(void 0===e){if(this.length&&(o=K.get(c),1===c.nodeType&&!J.get(c,"hasDataAttrs"))){for(n=i.length;n--;)i[n]&&0===(r=i[n].name).indexOf("data-")&&(r=Y(r.slice(5)),te(c,r,o[r]));J.set(c,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){K.set(this,e)})):U(this,(function(t){var n;if(c&&void 0===t)return void 0!==(n=K.get(c,e))||void 0!==(n=te(c,e))?n:void 0;this.each((function(){K.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){K.remove(this,e)}))}}),M.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,M.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=M.queue(e,t),r=n.length,o=n.shift(),c=M._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete c.stop,o.call(e,(function(){M.dequeue(e,t)}),c)),!r&&c&&c.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:M.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",n])}))})}}),M.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?M.queue(this[0],e):void 0===t?this:this.each((function(){var n=M.queue(this,e,t);M._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&M.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){M.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=M.Deferred(),c=this,i=this.length,a=function(){--r||o.resolveWith(c,[c])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";i--;)(n=J.get(c[i],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),o.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],ce=y.documentElement,ie=function(e){return M.contains(e.ownerDocument,e)},ae={composed:!0};ce.getRootNode&&(ie=function(e){return M.contains(e.ownerDocument,e)||e.getRootNode(ae)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===M.css(e,"display")};function se(e,t,n,r){var o,c,i=20,a=r?function(){return r.cur()}:function(){return M.css(e,t,"")},l=a(),s=n&&n[3]||(M.cssNumber[t]?"":"px"),u=e.nodeType&&(M.cssNumber[t]||"px"!==s&&+l)&&re.exec(M.css(e,t));if(u&&u[3]!==s){for(l/=2,s=s||u[3],u=+l||1;i--;)M.style(e,t,u+s),(1-c)*(1-(c=a()/l||.5))<=0&&(i=0),u/=c;u*=2,M.style(e,t,u+s),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=s,r.start=u,r.end=o)),o}var ue={};function he(e){var t,n=e.ownerDocument,r=e.nodeName,o=ue[r];return o||(t=n.body.appendChild(n.createElement(r)),o=M.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),ue[r]=o,o)}function de(e,t){for(var n,r,o=[],c=0,i=e.length;c<i;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(o[c]=J.get(r,"display")||null,o[c]||(r.style.display="")),""===r.style.display&&le(r)&&(o[c]=he(r))):"none"!==n&&(o[c]="none",J.set(r,"display",n)));for(c=0;c<i;c++)null!=o[c]&&(e[c].style.display=o[c]);return e}M.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?M(this).show():M(this).hide()}))}});var fe,pe,me=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;fe=y.createDocumentFragment().appendChild(y.createElement("div")),(pe=y.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),fe.appendChild(pe),v.checkClone=fe.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!fe.cloneNode(!0).lastChild.defaultValue,fe.innerHTML="<option></option>",v.option=!!fe.lastChild;var be={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 ye(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&$(e,t)?M.merge([e],n):n}function ze(e,t){for(var n=0,r=e.length;n<r;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,v.option||(be.optgroup=be.option=[1,"<select multiple='multiple'>","</select>"]);var Ce=/<|&#?\w+;/;function xe(e,t,n,r,o){for(var c,i,a,l,s,u,h=t.createDocumentFragment(),d=[],f=0,p=e.length;f<p;f++)if((c=e[f])||0===c)if("object"===x(c))M.merge(d,c.nodeType?[c]:c);else if(Ce.test(c)){for(i=i||h.appendChild(t.createElement("div")),a=(ve.exec(c)||["",""])[1].toLowerCase(),l=be[a]||be._default,i.innerHTML=l[1]+M.htmlPrefilter(c)+l[2],u=l[0];u--;)i=i.lastChild;M.merge(d,i.childNodes),(i=h.firstChild).textContent=""}else d.push(t.createTextNode(c));for(h.textContent="",f=0;c=d[f++];)if(r&&M.inArray(c,r)>-1)o&&o.push(c);else if(s=ie(c),i=ye(h.appendChild(c),"script"),s&&ze(i),n)for(u=0;c=i[u++];)ge.test(c.type||"")&&n.push(c);return h}var Me=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function _e(){return!0}function ke(){return!1}function He(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function $e(e,t,n,r,o,c){var i,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)$e(e,a,n,r,t[a],c);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=ke;else if(!o)return e;return 1===c&&(i=o,(o=function(e){return M().off(e),i.apply(this,arguments)}).guid=i.guid||(i.guid=M.guid++)),e.each((function(){M.event.add(this,t,o,r,n)}))}function Ve(e,t,n){n?(J.set(e,t,!1),M.event.add(e,t,{namespace:!1,handler:function(e){var r,o,c=J.get(this,t);if(1&e.isTrigger&&this[t]){if(c.length)(M.event.special[t]||{}).delegateType&&e.stopPropagation();else if(c=a.call(arguments),J.set(this,t,c),r=n(this,t),this[t](),c!==(o=J.get(this,t))||r?J.set(this,t,!1):o={},c!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else c.length&&(J.set(this,t,{value:M.event.trigger(M.extend(c[0],M.Event.prototype),c.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&M.event.add(e,t,_e)}M.event={global:{},add:function(e,t,n,r,o){var c,i,a,l,s,u,h,d,f,p,m,v=J.get(e);if(X(e))for(n.handler&&(n=(c=n).handler,o=c.selector),o&&M.find.matchesSelector(ce,o),n.guid||(n.guid=M.guid++),(l=v.events)||(l=v.events=Object.create(null)),(i=v.handle)||(i=v.handle=function(t){return void 0!==M&&M.event.triggered!==t.type?M.event.dispatch.apply(e,arguments):void 0}),s=(t=(t||"").match(D)||[""]).length;s--;)f=m=(a=Se.exec(t[s])||[])[1],p=(a[2]||"").split(".").sort(),f&&(h=M.event.special[f]||{},f=(o?h.delegateType:h.bindType)||f,h=M.event.special[f]||{},u=M.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&M.expr.match.needsContext.test(o),namespace:p.join(".")},c),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,p,i)||e.addEventListener&&e.addEventListener(f,i)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,u):d.push(u),M.event.global[f]=!0)},remove:function(e,t,n,r,o){var c,i,a,l,s,u,h,d,f,p,m,v=J.hasData(e)&&J.get(e);if(v&&(l=v.events)){for(s=(t=(t||"").match(D)||[""]).length;s--;)if(f=m=(a=Se.exec(t[s])||[])[1],p=(a[2]||"").split(".").sort(),f){for(h=M.event.special[f]||{},d=l[f=(r?h.delegateType:h.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=c=d.length;c--;)u=d[c],!o&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(c,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));i&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,p,v.handle)||M.removeEvent(e,f,v.handle),delete l[f])}else for(f in l)M.event.remove(e,f+t[s],n,r,!0);M.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,c,i,a=new Array(arguments.length),l=M.event.fix(e),s=(J.get(this,"events")||Object.create(null))[l.type]||[],u=M.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(i=M.event.handlers.call(this,l,s),t=0;(o=i[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(c=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==c.namespace&&!l.rnamespace.test(c.namespace)||(l.handleObj=c,l.data=c.data,void 0!==(r=((M.event.special[c.origType]||{}).handle||c.handler).apply(o.elem,a))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,o,c,i,a=[],l=t.delegateCount,s=e.target;if(l&&s.nodeType&&!("click"===e.type&&e.button>=1))for(;s!==this;s=s.parentNode||this)if(1===s.nodeType&&("click"!==e.type||!0!==s.disabled)){for(c=