if(function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(p,t){var e=[],c=e.slice,g=e.concat,s=e.push,i=e.indexOf,n={},r=n.toString,v=n.hasOwnProperty,m={},y=p.document,o="2.1.1",T=function(t,e){return new T.fn.init(t,e)},a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,u=/^-ms-/,l=/-([\da-z])/gi,f=function(t,e){return e.toUpperCase()};function h(t){var e=t.length,n=T.type(t);return"function"!==n&&!T.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&0+~]|"+I+")"+I+"*"),Q=new RegExp("="+I+"*([^\\]'\"]*?)"+I+"*\\]","g"),Y=new RegExp(H),W=new RegExp("^"+j+"$"),B={ID:new RegExp("^#("+V+")"),CLASS:new RegExp("^\\.("+V+")"),TAG:new RegExp("^("+V.replace("w","w*")+")"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),rt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{F.apply(e=$.call(A.childNodes),A.childNodes),e[A.childNodes.length].nodeType}catch(t){F={apply:e.length?function(t,e){G.apply(t,$.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function it(t,e,n,r){var i,o,a,s,u,l,c,f,h,d;if((e?e.ownerDocument||e:A)!==C&&m(e),n=n||[],!t||"string"!=typeof t)return n;if(1!==(s=(e=e||C).nodeType)&&9!==s)return[];if(y&&!r){if(i=J.exec(t))if(a=i[1]){if(9===s){if(!(o=e.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&T(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return F.apply(n,e.getElementsByTagName(t)),n;if((a=i[3])&&p.getElementsByClassName&&e.getElementsByClassName)return F.apply(n,e.getElementsByClassName(a)),n}if(p.qsa&&(!b||!b.test(t))){if(f=c=M,h=e,d=9===s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(l=g(t),(c=e.getAttribute("id"))?f=c.replace(et,"\\$&"):e.setAttribute("id",f),f="[id='"+f+"'] ",u=l.length;u--;)l[u]=f+gt(l[u]);h=tt.test(t)&&dt(e.parentNode)||e,d=l.join(",")}if(d)try{return F.apply(n,h.querySelectorAll(d)),n}catch(t){}finally{c||e.removeAttribute("id")}}}return v(t.replace(z,"$1"),e,n,r)}function ot(){var r=[];return function t(e,n){return r.push(e+" ")>x.cacheLength&&delete t[r.shift()],t[e+" "]=n}}function at(t){return t[M]=!0,t}function st(t){var e=C.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var n=t.split("|"),r=t.length;r--;)x.attrHandle[n[r]]=e}function lt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||D)-(~t.sourceIndex||D);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ct(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ft(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function ht(a){return at(function(o){return o=+o,at(function(t,e){for(var n,r=a([],t.length,o),i=r.length;i--;)t[n=r[i]]&&(t[n]=!(e[n]=t[n]))})})}function dt(t){return t&&typeof t.getElementsByTagName!==k&&t}for(t in p=it.support={},r=it.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},m=it.setDocument=function(t){var e,u=t?t.ownerDocument||t:A,n=u.defaultView;return u!==C&&9===u.nodeType&&u.documentElement?(i=(C=u).documentElement,y=!r(u),n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",function(){m()},!1):n.attachEvent&&n.attachEvent("onunload",function(){m()})),p.attributes=st(function(t){return t.className="i",!t.getAttribute("className")}),p.getElementsByTagName=st(function(t){return t.appendChild(u.createComment("")),!t.getElementsByTagName("*").length}),p.getElementsByClassName=Z.test(u.getElementsByClassName)&&st(function(t){return t.innerHTML="
",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),p.getById=st(function(t){return i.appendChild(t).id=M,!u.getElementsByName||!u.getElementsByName(M).length}),p.getById?(x.find.ID=function(t,e){if(typeof e.getElementById!==k&&y){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},x.filter.ID=function(t){var e=t.replace(nt,rt);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var n=t.replace(nt,rt);return function(t){var e=typeof t.getAttributeNode!==k&&t.getAttributeNode("id");return e&&e.value===n}}),x.find.TAG=p.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==k?e.getElementsByTagName(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},x.find.CLASS=p.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==k&&y?e.getElementsByClassName(t):void 0},a=[],b=[],(p.qsa=Z.test(u.querySelectorAll))&&(st(function(t){t.innerHTML="",t.querySelectorAll("[msallowclip^='']").length&&b.push("[*^$]="+I+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||b.push("\\["+I+"*(?:value|"+R+")"),t.querySelectorAll(":checked").length||b.push(":checked")}),st(function(t){var e=u.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&b.push("name"+I+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||b.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),b.push(",.*:")})),(p.matchesSelector=Z.test(s=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&st(function(t){p.disconnectedMatch=s.call(t,"div"),s.call(t,"[s!='']:x"),a.push("!=",H)}),b=b.length&&new RegExp(b.join("|")),a=a.length&&new RegExp(a.join("|")),e=Z.test(i.compareDocumentPosition),T=e||Z.test(i.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},N=e?function(t,e){if(t===e)return c=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!p.sortDetached&&e.compareDocumentPosition(t)===n?t===u||t.ownerDocument===A&&T(A,t)?-1:e===u||e.ownerDocument===A&&T(A,e)?1:l?P.call(l,t)-P.call(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return c=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t===u?-1:e===u?1:i?-1:o?1:l?P.call(l,t)-P.call(l,e):0;if(i===o)return lt(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?lt(a[r],s[r]):a[r]===A?-1:s[r]===A?1:0},u):C},it.matches=function(t,e){return it(t,null,null,e)},it.matchesSelector=function(t,e){if((t.ownerDocument||t)!==C&&m(t),e=e.replace(Q,"='$1']"),!(!p.matchesSelector||!y||a&&a.test(e)||b&&b.test(e)))try{var n=s.call(t,e);if(n||p.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,rt),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,rt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||it.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&it.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return B.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Y.test(n)&&(e=g(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(nt,rt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=u[t+" "];return e||(e=new RegExp("(^|"+I+")"+t+"("+I+"|$)"))&&u(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==k&&t.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(t){var e=it.attr(t,n);return null==e?"!="===r:!r||(e+="","="===r?e===i:"!="===r?e!==i:"^="===r?i&&0===e.indexOf(i):"*="===r?i&&-1(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function C(t,n,r){if(T.isFunction(n))return T.grep(t,function(t,e){return!!n.call(t,e,t)!==r});if(n.nodeType)return T.grep(t,function(t){return t===n!==r});if("string"==typeof n){if(w.test(n))return T.filter(n,t,r);n=T.filter(n,t)}return T.grep(t,function(t){return 0<=i.call(n,t)!==r})}T.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?T.find.matchesSelector(r,t)?[r]:[]:T.find.matches(t,T.grep(e,function(t){return 1===t.nodeType}))},T.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(T(t).filter(function(){for(e=0;e)[^>]*|#([\w-]*))$/;(T.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:A.exec(t))||!n[1]&&e)return!e||e.jquery?(e||M).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),x.test(n[1])&&T.isPlainObject(e))for(n in e)T.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=y.getElementById(n[2]))&&r.parentNode&&(this.length=1,this[0]=r),this.context=y,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):T.isFunction(t)?void 0!==M.ready?M.ready(t):t(T):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),T.makeArray(t,this))}).prototype=T.fn,M=T(y);var E=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};function N(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.extend({dir:function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&T(t).is(n))break;r.push(t)}return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter(function(){for(var t=0;tx",m.noCloneChecked=!!j.cloneNode(!0).lastChild.defaultValue;var Q="undefined";m.focusinBubbles="onfocusin"in p;var Y=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,B=/^(?:focusinfocus|focusoutblur)$/,U=/^([^.]*)(?:\.(.+)|)$/;function X(){return!0}function Z(){return!1}function J(){try{return y.activeElement}catch(t){}}T.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,d,p,g,v=$.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=T.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return typeof T!==Q&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(D)||[""]).length;l--;)d=g=(s=U.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),d&&(f=T.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=T.event.special[d]||{},c=T.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=u[d])||((h=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(d,a,!1)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),T.event.global[d]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,d,p,g,v=$.hasData(t)&&$.get(t);if(v&&(u=v.events)){for(l=(e=(e||"").match(D)||[""]).length;l--;)if(d=g=(s=U.exec(e[l])||[])[1],p=(s[2]||"").split(".").sort(),d){for(f=T.event.special[d]||{},h=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,p,v.handle)||T.removeEvent(t,d,v.handle),delete u[d])}else for(d in u)T.event.remove(t,d+e[l],n,r,!0);T.isEmptyObject(u)&&(delete v.handle,$.remove(t,"events"))}},trigger:function(t,e,n,r){var i,o,a,s,u,l,c,f=[n||y],h=v.call(t,"type")?t.type:t,d=v.call(t,"namespace")?t.namespace.split("."):[];if(o=a=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!B.test(h+T.event.triggered)&&(0<=h.indexOf(".")&&(h=(d=h.split(".")).shift(),d.sort()),u=h.indexOf(":")<0&&"on"+h,(t=t[T.expando]?t:new T.Event(h,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=d.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:T.makeArray(e,[t]),c=T.event.special[h]||{},r||!c.trigger||!1!==c.trigger.apply(n,e))){if(!r&&!c.noBubble&&!T.isWindow(n)){for(s=c.delegateType||h,B.test(s+h)||(o=o.parentNode);o;o=o.parentNode)f.push(o),a=o;a===(n.ownerDocument||y)&&f.push(a.defaultView||a.parentWindow||p)}for(i=0;(o=f[i++])&&!t.isPropagationStopped();)t.type=1]*)\/>/gi,et=/<([\w:]+)/,nt=/<|&#?\w+;/,rt=/<(?:script|style|link)/i,it=/checked\s*(?:[^=]|=\s*.checked.)/i,ot=/^$|\/(?:java|ecma)script/i,at=/^true\/(.*)/,st=/^\s*\s*$/g,ut={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function lt(t,e){return T.nodeName(t,"table")&&T.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function ct(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function ft(t){var e=at.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function ht(t,e){for(var n=0,r=t.length;n")+s[2],l=s[0];l--;)o=o.lastChild;T.merge(f,o.childNodes),(o=c.firstChild).textContent=""}else f.push(e.createTextNode(i));for(c.textContent="",h=0;i=f[h++];)if((!r||-1===T.inArray(i,r))&&(u=T.contains(i.ownerDocument,i),o=pt(c.appendChild(i),"script"),u&&ht(o),n))for(l=0;i=o[l++];)ot.test(i.type||"")&&n.push(i);return c},cleanData:function(t){for(var e,n,r,i,o=T.event.special,a=0;void 0!==(n=t[a]);a++){if(T.acceptData(n)&&((i=n[$.expando])&&(e=$.cache[i]))){if(e.events)for(r in e.events)o[r]?T.event.remove(n,r):T.removeEvent(n,r,e.handle);$.cache[i]&&delete $.cache[i]}delete P.cache[n[P.expando]]}}}),T.fn.extend({text:function(t){return G(this,function(t){return void 0===t?T.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||lt(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=lt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?T.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||T.cleanData(pt(n)),n.parentNode&&(e&&T.contains(n.ownerDocument,n)&&ht(pt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(pt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return T.clone(this,t,e)})},html:function(t){return G(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!rt.test(t)&&!ut[(et.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(tt,"<$1>");try{for(;n")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=mt(t,e),gt.detach()),vt[t]=n),n}var bt=/^margin/,xt=new RegExp("^("+H+")(?!px)[a-z%]+$","i"),wt=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)};function Ct(t,e,n){var r,i,o,a,s=t.style;return(n=n||wt(t))&&(a=n.getPropertyValue(e)||n[e]),n&&(""!==a||T.contains(t.ownerDocument,t)||(a=T.style(t,e)),xt.test(a)&&bt.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Tt(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}!function(){var e,n,r=y.documentElement,i=y.createElement("div"),o=y.createElement("div");if(o.style){function t(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",r.appendChild(i);var t=p.getComputedStyle(o,null);e="1%"!==t.top,n="4px"===t.width,r.removeChild(i)}o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===o.style.backgroundClip,i.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",i.appendChild(o),p.getComputedStyle&&T.extend(m,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return null==n&&t(),n},reliableMarginRight:function(){var t,e=o.appendChild(y.createElement("div"));return e.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",o.style.width="1px",r.appendChild(i),t=!parseFloat(p.getComputedStyle(e,null).marginRight),r.removeChild(i),t}})}}(),T.swap=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,r||[]),e)t.style[o]=a[o];return i};var Mt=/^(none|table(?!-c[ea]).+)/,At=new RegExp("^("+H+")(.*)$","i"),Et=new RegExp("^([+-])=("+H+")","i"),St={position:"absolute",visibility:"hidden",display:"block"},Nt={letterSpacing:"0",fontWeight:"400"},kt=["Webkit","O","Moz","ms"];function Dt(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),r=e,i=kt.length;i--;)if((e=kt[i]+n)in t)return e;return r}function _t(t,e,n){var r=At.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function Lt(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=T.css(t,n+z[o],!0,i)),r?("content"===n&&(a-=T.css(t,"padding"+z[o],!0,i)),"margin"!==n&&(a-=T.css(t,"border"+z[o]+"Width",!0,i))):(a+=T.css(t,"padding"+z[o],!0,i),"padding"!==n&&(a+=T.css(t,"border"+z[o]+"Width",!0,i)));return a}function Gt(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=wt(t),a="border-box"===T.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Ct(t,e,o))<0||null==i)&&(i=t.style[e]),xt.test(i))return i;r=a&&(m.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+Lt(t,e,n||(a?"border":"content"),r,o)+"px"}function Ft(t,e){for(var n,r,i,o=[],a=0,s=t.length;a").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",i=function(t){r.remove(),i=null,t&&e("error"===t.type?404:200,t.type)}),y.head.appendChild(r[0])},abort:function(){i&&i()}}});var Se=[],Ne=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Se.pop()||T.expando+"_"+ee++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,o,a=!1!==t.jsonp&&(Ne.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ne.test(t.data)&&"data");return a||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=T.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ne,"$1"+r):!1!==t.jsonp&&(t.url+=(ne.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||T.error(r+" was not called"),o[0]},t.dataTypes[0]="json",i=p[r],p[r]=function(){o=arguments},n.always(function(){p[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,Se.push(r)),o&&T.isFunction(i)&&i(o[0]),o=i=void 0}),"script"):void 0}),T.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||y;var r=x.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=T.buildFragment([t],e,i),i&&i.length&&T(i).remove(),T.merge([],r.childNodes))};var ke=T.fn.load;T.fn.load=function(t,e,n){if("string"!=typeof t&&ke)return ke.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return 0<=s&&(r=T.trim(t.slice(s)),t=t.slice(0,s)),T.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),0").append(T.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){a.each(n,o||[t.responseText,e,t])}),this},T.expr.filters.animated=function(e){return T.grep(T.timers,function(t){return e===t.elem}).length};var De=p.document.documentElement;function _e(t){return T.isWindow(t)?t:9===t.nodeType&&t.defaultView}T.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l=T.css(t,"position"),c=T(t),f={};"static"===l&&(t.style.position="relative"),s=c.offset(),o=T.css(t,"top"),u=T.css(t,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),T.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+i),"using"in e?e.using.call(t,f):c.css(f)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){T.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?(t=o.documentElement,T.contains(t,r)?(typeof r.getBoundingClientRect!==Q&&(i=r.getBoundingClientRect()),n=_e(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===T.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),T.nodeName(t[0],"html")||(r=t.offset()),r.top+=T.css(t[0],"borderTopWidth",!0),r.left+=T.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-T.css(n,"marginTop",!0),left:e.left-r.left-T.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||De;t&&!T.nodeName(t,"html")&&"static"===T.css(t,"position");)t=t.offsetParent;return t||De})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var o="pageYOffset"===i;T.fn[e]=function(t){return G(this,function(t,e,n){var r=_e(t);return void 0===n?r?r[i]:t[e]:void(r?r.scrollTo(o?p.pageXOffset:n,o?n:p.pageYOffset):t[e]=n)},e,t,arguments.length,null)}}),T.each(["top","left"],function(t,n){T.cssHooks[n]=Tt(m.pixelPosition,function(t,e){return e?(e=Ct(t,n),xt.test(e)?T(t).position()[n]+"px":e):void 0})}),T.each({Height:"height",Width:"width"},function(o,a){T.each({padding:"inner"+o,content:a,"":"outer"+o},function(r,t){T.fn[t]=function(t,e){var n=arguments.length&&(r||"boolean"!=typeof t),i=r||(!0===t||!0===e?"margin":"border");return G(this,function(t,e,n){var r;return T.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+o],r["scroll"+o],t.body["offset"+o],r["offset"+o],r["client"+o])):void 0===n?T.css(t,e,i):T.style(t,e,n,i)},a,n?t:void 0,n,null)}})}),T.fn.size=function(){return this.length},T.fn.andSelf=T.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return T});var Le=p.jQuery,Ge=p.$;return T.noConflict=function(t){return p.$===T&&(p.$=Ge),t&&p.jQuery===T&&(p.jQuery=Le),T},typeof t===Q&&(p.jQuery=p.$=T),T}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");var GV;!function(r){"use strict";r.fn.emulateTransitionEnd=function(t){var e=!1,n=this;r(this).one(r.support.transition.end,function(){e=!0});return setTimeout(function(){e||r(n).trigger(r.support.transition.end)},t),this},r(function(){r.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}()})}(jQuery),function(o){"use strict";var e='[data-dismiss="alert"]',r=function(t){o(t).on("click",e,this.close)};r.prototype.close=function(t){function e(){i.trigger("closed.bs.alert").remove()}var n=o(this),r=n.attr("data-target");r||(r=(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,""));var i=o(r);t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=o.Event("close.bs.alert")),t.isDefaultPrevented()||(i.removeClass("in"),o.support.transition&&i.hasClass("fade")?i.one(o.support.transition.end,e).emulateTransitionEnd(150):e())};var t=o.fn.alert;o.fn.alert=function(n){return this.each(function(){var t=o(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new r(this)),"string"==typeof n&&e[n].call(t)})},o.fn.alert.Constructor=r,o.fn.alert.noConflict=function(){return o.fn.alert=t,this},o(document).on("click.bs.alert.data-api",e,r.prototype.close)}(jQuery),function(o){"use strict";var i=function(t,e){this.$element=o(t),this.options=o.extend({},i.DEFAULTS,e),this.isLoading=!1};i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(t){var e="disabled",n=this.$element,r=n.is("input")?"val":"html",i=n.data();t+="Text",i.resetText||n.data("resetText",n[r]()),n[r](i[t]||this.options[t]),setTimeout(o.proxy(function(){"loadingText"==t?(this.isLoading=!0,n.addClass(e).attr(e,e)):this.isLoading&&(this.isLoading=!1,n.removeClass(e).removeAttr(e))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var t=o.fn.button;o.fn.button=function(r){return this.each(function(){var t=o(this),e=t.data("bs.button"),n="object"==typeof r&&r;e||t.data("bs.button",e=new i(this,n)),"toggle"==r?e.toggle():r&&e.setState(r)})},o.fn.button.Constructor=i,o.fn.button.noConflict=function(){return o.fn.button=t,this},o(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var e=o(t.target);e.hasClass("btn")||(e=e.closest(".btn")),e.button("toggle"),t.preventDefault()})}(jQuery),function(l){"use strict";var o=function(t,e){this.$element=l(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",l.proxy(this.pause,this)).on("mouseleave",l.proxy(this.cycle,this))};o.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},o.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(l.proxy(this.next,this),this.options.interval)),this},o.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},o.prototype.to=function(t){var e=this,n=this.getActiveIndex();return t>this.$items.length-1||t<0?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(n .panel > .in");if(e&&e.length){var n=e.data("bs.collapse");if(n&&n.transitioning)return;e.collapse("hide"),n||e.data("bs.collapse",null)}var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0),this.transitioning=1;var i=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!l.support.transition)return i.call(this);var o=l.camelCase(["scroll",r].join("-"));this.$element.one(l.support.transition.end,l.proxy(i,this)).emulateTransitionEnd(350)[r](this.$element[0][o])}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=l.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return l.support.transition?void this.$element[e](0).one(l.support.transition.end,l.proxy(n,this)).emulateTransitionEnd(350):n.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var t=l.fn.collapse;l.fn.collapse=function(r){return this.each(function(){var t=l(this),e=t.data("bs.collapse"),n=l.extend({},i.DEFAULTS,t.data(),"object"==typeof r&&r);!e&&n.toggle&&"show"==r&&(r=!r),e||t.data("bs.collapse",e=new i(this,n)),"string"==typeof r&&e[r]()})},l.fn.collapse.Constructor=i,l.fn.collapse.noConflict=function(){return l.fn.collapse=t,this},l(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var e,n=l(this),r=n.attr("data-target")||t.preventDefault()||(e=n.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),i=l(r),o=i.data("bs.collapse"),a=o?"toggle":n.data(),s=n.attr("data-parent"),u=s&&l(s);o&&o.transitioning||(u&&u.find('[data-toggle=collapse][data-parent="'+s+'"]').not(n).addClass("collapsed"),n[i.hasClass("in")?"addClass":"removeClass"]("collapsed")),i.collapse(a)})}(jQuery),function(s){"use strict";function o(n){s(t).remove(),s(l).each(function(){var t=u(s(this)),e={relatedTarget:this};t.hasClass("open")&&(t.trigger(n=s.Event("hide.bs.dropdown",e)),n.isDefaultPrevented()||t.removeClass("open").trigger("hidden.bs.dropdown",e))})}function u(t){var e=t.attr("data-target");e||(e=(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""));var n=e&&s(e);return n&&n.length?n:t.parent()}var t=".dropdown-backdrop",l="[data-toggle=dropdown]",r=function(t){s(t).on("click.bs.dropdown",this.toggle)};r.prototype.toggle=function(t){var e=s(this);if(!e.is(".disabled, :disabled")){var n=u(e),r=n.hasClass("open");if(o(),!r){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&s(''}),((o.prototype=i.extend({},i.fn.tooltip.Constructor.prototype)).constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},o.prototype.tip=function(){return this.$tip||(this.$tip=i(this.options.template)),this.$tip};var t=i.fn.popover;i.fn.popover=function(r){return this.each(function(){var t=i(this),e=t.data("bs.popover"),n="object"==typeof r&&r;(e||"destroy"!=r)&&(e||t.data("bs.popover",e=new o(this,n)),"string"==typeof r&&e[r]())})},i.fn.popover.Constructor=o,i.fn.popover.noConflict=function(){return i.fn.popover=t,this}}(jQuery),function(o){"use strict";function i(t,e){var n,r=o.proxy(this.process,this);this.$element=o(o(t).is("body")?window:t),this.$body=o("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",r),this.options=o.extend({},i.DEFAULTS,e),this.selector=(this.options.target||(n=o(t).attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=o([]),this.targets=o([]),this.activeTarget=null,this.refresh(),this.process()}i.DEFAULTS={offset:10},i.prototype.refresh=function(){var r=this.$element[0]==window?"offset":"position";this.offsets=o([]),this.targets=o([]);var i=this;this.$body.find(this.selector).map(function(){var t=o(this),e=t.data("target")||t.attr("href"),n=/^#./.test(e)&&o(e);return n&&n.length&&n.is(":visible")&&[[n[r]().top+(!o.isWindow(i.$scrollElement.get(0))&&i.$scrollElement.scrollTop()),e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},i.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=(this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight)-this.$scrollElement.height(),r=this.offsets,i=this.targets,o=this.activeTarget;if(n<=e)return o!=(t=i.last()[0])&&this.activate(t);if(o&&e<=r[0])return o!=(t=i[0])&&this.activate(t);for(t=r.length;t--;)o!=i[t]&&e>=r[t]&&(!r[t+1]||e<=r[t+1])&&this.activate(i[t])},i.prototype.activate=function(t){this.activeTarget=t,o(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=o(e).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")};var t=o.fn.scrollspy;o.fn.scrollspy=function(r){return this.each(function(){var t=o(this),e=t.data("bs.scrollspy"),n="object"==typeof r&&r;e||t.data("bs.scrollspy",e=new i(this,n)),"string"==typeof r&&e[r]()})},o.fn.scrollspy.Constructor=i,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=t,this},o(window).on("load",function(){o('[data-spy="scroll"]').each(function(){var t=o(this);t.scrollspy(t.data())})})}(jQuery),function(a){"use strict";var r=function(t){this.element=a(t)};r.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),n=t.data("target");if(n||(n=(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=e.find(".active:last a")[0],i=a.Event("show.bs.tab",{relatedTarget:r});if(t.trigger(i),!i.isDefaultPrevented()){var o=a(n);this.activate(t.parent("li"),e),this.activate(o,o.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})})}}},r.prototype.activate=function(t,e,n){function r(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),o?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),n&&n()}var i=e.find("> .active"),o=n&&a.support.transition&&i.hasClass("fade");o?i.one(a.support.transition.end,r).emulateTransitionEnd(150):r(),i.removeClass("in")};var t=a.fn.tab;a.fn.tab=function(n){return this.each(function(){var t=a(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new r(this)),"string"==typeof n&&e[n]()})},a.fn.tab.Constructor=r,a.fn.tab.noConflict=function(){return a.fn.tab=t,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),a(this).tab("show")})}(jQuery),function(l){"use strict";var c=function(t,e){this.options=l.extend({},c.DEFAULTS,e),this.$window=l(window).on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var t=this.$window.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},c.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=l(document).height(),e=this.$window.scrollTop(),n=this.$element.offset(),r=this.options.offset,i=r.top,o=r.bottom;"top"==this.affixed&&(n.top+=e),"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var a=!(null!=this.unpin&&e+this.unpin<=n.top)&&(null!=o&&n.top+this.$element.height()>=t-o?"bottom":null!=i&&e<=i&&"top");if(this.affixed!==a){this.unpin&&this.$element.css("top","");var s="affix"+(a?"-"+a:""),u=l.Event(s+".bs.affix");this.$element.trigger(u),u.isDefaultPrevented()||(this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(s).trigger(l.Event(s.replace("affix","affixed"))),"bottom"==a&&this.$element.offset({top:t-o-this.$element.height()}))}}};var t=l.fn.affix;l.fn.affix=function(r){return this.each(function(){var t=l(this),e=t.data("bs.affix"),n="object"==typeof r&&r;e||t.data("bs.affix",e=new c(this,n)),"string"==typeof r&&e[r]()})},l.fn.affix.Constructor=c,l.fn.affix.noConflict=function(){return l.fn.affix=t,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var t=l(this),e=t.data();e.offset=e.offset||{},e.offsetBottom&&(e.offset.bottom=e.offsetBottom),e.offsetTop&&(e.offset.top=e.offsetTop),t.affix(e)})})}(jQuery),function(S){S.extend({tablesorter:new function(){function w(){var t=arguments[0],e=1':"",u.$headers=S(e).find(u.selectorHeaders).each(function(t){r=S(this),n=E.getColumnData(e,u.headers,t,!0),u.headerContent[t]=S(this).html(),a=u.headerTemplate.replace(/\{content\}/g,S(this).html()).replace(/\{icon\}/g,o),u.onRenderTemplate&&(i=u.onRenderTemplate.apply(r,[t,a]))&&"string"==typeof i&&(a=i),S(this).html('
'+a+"
"),u.onRenderHeader&&u.onRenderHeader.apply(r,[t]),this.column=parseInt(S(this).attr("data-column"),10),this.order=l(E.getData(r,n,"sortInitialOrder")||u.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(s=E.getData(r,n,"lockedOrder")||!1)&&!1!==s&&(this.order=this.lockedOrder=l(s)?[1,1,1]:[0,0,0]),r.addClass(E.css.header+" "+u.cssHeader),u.headerList[t]=this,r.parent().addClass(E.css.headerRow+" "+u.cssHeaderRow).attr("role","row"),u.tabIndex&&r.attr("tabindex",0)}).attr({scope:"col",role:"columnheader"}),b(e),u.debug&&(C("Built headers:",t),w(u.$headers))}function m(t,e,n){var r=t.config;r.$table.find(r.selectorRemove).remove(),h(t),g(t),A(r.$table,e,n)}function b(n){var r,i,o,a=n.config;a.$headers.each(function(t,e){i=S(e),o=E.getColumnData(n,a.headers,t,!0),r="false"===E.getData(e,o,"sorter")||"false"===E.getData(e,o,"parser"),e.sortDisabled=r,i[r?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+r),n.id&&(r?i.removeAttr("aria-controls"):i.attr("aria-controls",n.id))})}function x(t){var e,n,r=t.config,i=r.sortList,o=i.length,a=E.css.sortNone+" "+r.cssNone,s=[E.css.sortAsc+" "+r.cssAsc,E.css.sortDesc+" "+r.cssDesc],u=["ascending","descending"],l=S(t).find("tfoot tr").children().add(r.$extraHeaders).removeClass(s.join(" "));for(r.$headers.removeClass(s.join(" ")).addClass(a).attr("aria-sort","none"),e=0;e thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},E.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},E.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},E.log=w,E.benchmark=C,E.construct=function(e){return this.each(function(){var t=S.extend(!0,{},E.defaults,e);t.originalSettings=e,!this.hasInitialized&&E.buildTable&&"TABLE"!==this.tagName?E.buildTable(this,t):E.setup(this,t)})},E.setup=function(e,n){if(!e||!e.tHead||0===e.tBodies.length||!0===e.hasInitialized)return n.debug?w("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var t,r="",i=S(e),o=S.metadata;e.hasInitialized=!1,e.isProcessing=!0,e.config=n,S.data(e,"tablesorter",n),n.debug&&S.data(e,"startoveralltimer",new Date),n.supportsDataObject=((t=S.fn.jquery.split("."))[0]=parseInt(t[0],10),1"),n=S(t).width();S(t.tBodies[0]).find("tr:first").children(":visible").each(function(){e.append(S("").css("width",parseInt(S(this).width()/n*1e3,10)/10+"%"))}),S(t).prepend(e)}}(e),h(e),n.totalRows=0,n.delayInit||g(e),E.bindEvents(e,n.$headers,!0),s(e),n.supportsDataObject&&void 0!==i.data().sortlist?n.sortList=i.data().sortlist:o&&i.metadata()&&i.metadata().sortlist&&(n.sortList=i.metadata().sortlist),E.applyWidget(e,!0),0'),S.fn.detach?e.detach():e.remove();n=S(t).find("span.tablesorter-savemyplace"),e.insertAfter(n),n.remove(),t.isProcessing=!1},E.clearTableBody=function(t){S(t)[0].config.$tbodies.children().detach()},E.bindEvents=function(r,i,t){var o,a=(r=S(r)[0]).config;!0!==t&&(a.$extraHeaders=a.$extraHeaders?a.$extraHeaders.add(i):i),i.find(a.selectorSort).add(i.filter(a.selectorSort)).unbind(["mousedown","mouseup","sort","keyup",""].join(a.namespace+" ")).bind(["mousedown","mouseup","sort","keyup",""].join(a.namespace+" "),function(t,e){var n;if(n=t.type,!(1!==(t.which||t.button)&&!/sort|keyup/.test(n)||"keyup"===n&&13!==t.which||"mouseup"===n&&!0!==e&&250<(new Date).getTime()-o)){if("mousedown"===n)return o=(new Date).getTime(),/(input|select|button|textarea)/i.test(t.target.tagName)?"":!a.cancelSelection;a.delayInit&&y(a.cache)&&g(r),n=S.fn.closest?S(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:S(this).parents("th, td")[0],(n=a.$headers[i.index(n)]).sortDisabled||function t(e,n,r){if(e.isUpdating)return setTimeout(function(){t(e,n,r)},50);var i,o,a,s,u=e.config,l=!r[u.sortMultiSortKey],c=u.$table;if(c.trigger("sortStart",e),n.count=r[u.sortResetKey]?2:(n.count+1)%(u.sortReset?3:2),u.sortRestart&&(o=n,u.$headers.each(function(){this===o||!l&&S(this).is("."+E.css.sortDesc+",."+E.css.sortAsc)||(this.count=-1)})),o=n.column,l){if(u.sortList=[],null!==u.sortForce)for(i=u.sortForce,a=0;a tr").children("th, td");!1===e&&0<=S.inArray("uitheme",i.widgets)&&(r.trigger("applyWidgetId",["uitheme"]),r.trigger("applyWidgetId",["zebra"])),o.find("tr").not(a).remove(),r.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(i.namespace+" ")),i.$headers.add(s).removeClass([E.css.header,i.cssHeader,i.cssAsc,i.cssDesc,E.css.sortAsc,E.css.sortDesc,E.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),a.find(i.selectorSort).unbind(["mousedown","mouseup","keypress",""].join(i.namespace+" ")),E.restoreHeaders(t),r.toggleClass(E.css.table+" "+i.tableClass+" tablesorter-"+i.theme,!1===e),t.hasInitialized=!1,delete t.config.cache,"function"==typeof n&&n(t)}},E.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},E.sortNatural=function(t,e){if(t===e)return 0;var n,r,i,o,a,s;if((r=E.regex).hex.test(e)){if((n=parseInt(t.match(r.hex),16))<(i=parseInt(e.match(r.hex),16)))return-1;if(i").attr("name",n.submitButton.name).val(l(n.submitButton).val()).appendTo(n.currentForm)),n.settings.submitHandler.call(n,n.currentForm,e),n.submitButton&&t.remove(),!1)}return n.settings.debug&&e.preventDefault(),n.cancelSubmit?(n.cancelSubmit=!1,t()):n.form()?n.pendingRequest?(n.formSubmitted=!0,!1):t():(n.focusInvalid(),!1)})),n)}t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var t,e;return l(this[0]).is("form")?t=this.validate().form():(t=!0,e=l(this[0].form).validate(),this.each(function(){t=e.element(this)&&t})),t},removeAttrs:function(t){var n={},r=this;return l.each(t.split(/\s/),function(t,e){n[e]=r.attr(e),r.removeAttr(e)}),n},rules:function(t,e){var n,r,i,o,a,s,u=this[0];if(t)switch(n=l.data(u.form,"validator").settings,r=n.rules,i=l.validator.staticRules(u),t){case"add":l.extend(i,l.validator.normalizeRule(e)),delete i.messages,r[u.name]=i,e.messages&&(n.messages[u.name]=l.extend(n.messages[u.name],e.messages));break;case"remove":return e?(s={},l.each(e.split(/\s/),function(t,e){s[e]=i[e],delete i[e],"required"===e&&l(u).removeAttr("aria-required")}),s):(delete r[u.name],i)}return(o=l.validator.normalizeRules(l.extend({},l.validator.classRules(u),l.validator.attributeRules(u),l.validator.dataRules(u),l.validator.staticRules(u)),u)).required&&(a=o.required,delete o.required,o=l.extend({required:a},o),l(u).attr("aria-required","true")),o.remote&&(a=o.remote,delete o.remote,o=l.extend(o,{remote:a})),o}}),l.extend(l.expr[":"],{blank:function(t){return!l.trim(""+l(t).val())},filled:function(t){return!!l.trim(""+l(t).val())},unchecked:function(t){return!l(t).prop("checked")}}),l.validator=function(t,e){this.settings=l.extend(!0,{},l.validator.defaults,t),this.currentForm=e,this.init()},l.validator.format=function(n,t){return 1===arguments.length?function(){var t=l.makeArray(arguments);return t.unshift(n),l.validator.format.apply(this,t)}:(2Warning: No message defined for "+t.name+"")},formatAndAdd:function(t,e){var n=this.defaultMessage(t,e.method),r=/\$?\{(\d+)\}/g;"function"==typeof n?n=n.call(this,e.parameters,t):r.test(n)&&(n=l.validator.format(n.replace(r,"{$1}"),e.parameters)),this.errorList.push({message:n,element:t,method:e.method}),this.errorMap[t.name]=n,this.submitted[t.name]=n},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,n;for(t=0;this.errorList[t];t++)n=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,n.element,this.settings.errorClass,this.settings.validClass),this.showLabel(n.element,n.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return l(this.errorList).map(function(){return this.element})},showLabel:function(t,e){var n,r,i,o=this.errorsFor(t),a=this.idOrName(t),s=l(t).attr("aria-describedby");o.length?(o.removeClass(this.settings.validClass).addClass(this.settings.errorClass),o.html(e)):(n=o=l("<"+this.settings.errorElement+">").attr("id",a+"-error").addClass(this.settings.errorClass).html(e||""),this.settings.wrapper&&(n=o.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(n):this.settings.errorPlacement?this.settings.errorPlacement(n,l(t)):n.insertAfter(t),o.is("label")?o.attr("for",a):0===o.parents("label[for='"+a+"']").length&&(i=o.attr("id"),s?s.match(new RegExp("\b"+i+"\b"))||(s+=" "+i):s=i,l(t).attr("aria-describedby",s),(r=this.groups[t.name])&&l.each(this.groups,function(t,e){e===r&&l("[name='"+t+"']",this.currentForm).attr("aria-describedby",o.attr("id"))}))),!e&&this.settings.success&&(o.text(""),"string"==typeof this.settings.success?o.addClass(this.settings.success):this.settings.success(o,t)),this.toShow=this.toShow.add(o)},errorsFor:function(t){var e=this.idOrName(t),n=l(t).attr("aria-describedby"),r="label[for='"+e+"'], label[for='"+e+"'] *";return n&&(r=r+", #"+n.replace(/\s+/g,", #")),this.errors().filter(r)},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name).not(this.settings.ignore)[0]),t},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(t){return l(this.currentForm).find("[name='"+t+"']")},getLength:function(t,e){switch(e.nodeName.toLowerCase()){case"select":return l("option:selected",e).length;case"input":if(this.checkable(e))return this.findByName(e.name).filter(":checked").length}return t.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t){return t},string:function(t,e){return!!l(t,e.form).length},function:function(t,e){return t(e)}},optional:function(t){var e=this.elementValue(t);return!l.validator.methods.required.call(this,e,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,this.pending[t.name]=!0)},stopRequest:function(t,e){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],e&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(l(this.currentForm).submit(),this.formSubmitted=!1):!e&&0===this.pendingRequest&&this.formSubmitted&&(l(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return l.data(t,"previousValue")||l.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,e){t.constructor===String?this.classRuleSettings[t]=e:l.extend(this.classRuleSettings,t)},classRules:function(t){var e={},n=l(t).attr("class");return n&&l.each(n.split(" "),function(){this in l.validator.classRuleSettings&&l.extend(e,l.validator.classRuleSettings[this])}),e},attributeRules:function(t){var e,n,r={},i=l(t),o=t.getAttribute("type");for(e in l.validator.methods)"required"===e?(""===(n=t.getAttribute(e))&&(n=!0),n=!!n):n=i.attr(e),/min|max/.test(e)&&(null===o||/number|range|text/.test(o))&&(n=Number(n)),n||0===n?r[e]=n:o===e&&"range"!==o&&(r[e]=!0);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(t){var e,n,r={},i=l(t);for(e in l.validator.methods)void 0!==(n=i.data("rule"+e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()))&&(r[e]=n);return r},staticRules:function(t){var e={},n=l.data(t.form,"validator");return n.settings.rules&&(e=l.validator.normalizeRule(n.settings.rules[t.name])||{}),e},normalizeRules:function(r,i){return l.each(r,function(t,e){if(!1!==e){if(e.param||e.depends){var n=!0;switch(typeof e.depends){case"string":n=!!l(e.depends,i.form).length;break;case"function":n=e.depends.call(i,i)}n?r[t]=void 0===e.param||e.param:delete r[t]}}else delete r[t]}),l.each(r,function(t,e){r[t]=l.isFunction(e)?e(i):e}),l.each(["minlength","maxlength"],function(){r[this]&&(r[this]=Number(r[this]))}),l.each(["rangelength","range"],function(){var t;r[this]&&(l.isArray(r[this])?r[this]=[Number(r[this][0]),Number(r[this][1])]:"string"==typeof r[this]&&(t=r[this].replace(/[\[\]]/g,"").split(/[\s,]+/),r[this]=[Number(t[0]),Number(t[1])]))}),l.validator.autoCreateRanges&&(r.min&&r.max&&(r.range=[r.min,r.max],delete r.min,delete r.max),r.minlength&&r.maxlength&&(r.rangelength=[r.minlength,r.maxlength],delete r.minlength,delete r.maxlength)),r},normalizeRule:function(t){if("string"==typeof t){var e={};l.each(t.split(/\s/),function(){e[this]=!0}),t=e}return t},addMethod:function(t,e,n){l.validator.methods[t]=e,l.validator.messages[t]=void 0!==n?n:l.validator.messages[t],e.length<3&&l.validator.addClassRules(t,l.validator.normalizeRule(t))},methods:{required:function(t,e,n){if(!this.depend(n,e))return"dependency-mismatch";if("select"===e.nodeName.toLowerCase()){var r=l(e).val();return r&&0=n[0]&&r<=n[1]},min:function(t,e,n){return this.optional(e)||n<=t},max:function(t,e,n){return this.optional(e)||t<=n},range:function(t,e,n){return this.optional(e)||t>=n[0]&&t<=n[1]},equalTo:function(t,e,n){var r=l(n);return this.settings.onfocusout&&r.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){l(e).valid()}),t===r.val()},remote:function(o,a,t){if(this.optional(a))return"dependency-mismatch";var s,e,u=this.previousValue(a);return this.settings.messages[a.name]||(this.settings.messages[a.name]={}),u.originalMessage=this.settings.messages[a.name].remote,this.settings.messages[a.name].remote=u.message,t="string"==typeof t&&{url:t}||t,u.old===o?u.valid:(u.old=o,(s=this).startRequest(a),(e={})[a.name]=o,l.ajax(l.extend(!0,{url:t,mode:"abort",port:"validate"+a.name,dataType:"json",data:e,context:s.currentForm,success:function(t){var e,n,r,i=!0===t||"true"===t;s.settings.messages[a.name].remote=u.originalMessage,i?(r=s.formSubmitted,s.prepareElement(a),s.formSubmitted=r,s.successList.push(a),delete s.invalid[a.name],s.showErrors()):(e={},n=t||s.defaultMessage(a,"remote"),e[a.name]=u.message=l.isFunction(n)?n(o):n,s.invalid[a.name]=!0,s.showErrors(e)),u.valid=i,s.stopRequest(a,i)}},t)),"pending")}}}),l.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead."};var r,i={};l.ajaxPrefilter?l.ajaxPrefilter(function(t,e,n){var r=t.port;"abort"===t.mode&&(i[r]&&i[r].abort(),i[r]=n)}):(r=l.ajax,l.ajax=function(t){var e=("mode"in t?t:l.ajaxSettings).mode,n=("port"in t?t:l.ajaxSettings).port;return"abort"===e?(i[n]&&i[n].abort(),i[n]=r.apply(this,arguments),i[n]):r.apply(this,arguments)}),l.extend(l.fn,{validateDelegate:function(n,t,r){return this.bind(t,function(t){var e=l(t.target);return e.is(n)?r.apply(e,arguments):void 0})}})}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(jQuery)}(function(p){function g(t){return m.raw?t:encodeURIComponent(t)}function v(t,e){var n=m.raw?t:function(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t=decodeURIComponent(t.replace(r," ")),m.json?JSON.parse(t):t}catch(t){}}(t);return p.isFunction(e)?e(n):n}var r=/\+/g,m=p.cookie=function(t,e,n){if(void 0!==e&&!p.isFunction(e)){if("number"==typeof(n=p.extend({},m.defaults,n)).expires){var r=n.expires,i=n.expires=new Date;i.setTime(+i+864e5*r)}return document.cookie=[g(t),"=",(o=e,g(m.json?JSON.stringify(o):String(o))),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")}for(var o,a,s=t?void 0:{},u=document.cookie?document.cookie.split("; "):[],l=0,c=u.length;l>16,255&t>>8,255&t)}function tt(t){return J(t)+""}function et(t,e,n){return new nt(t,e,n)}function nt(t,e,n){this.r=t,this.g=e,this.b=n}function rt(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function it(t,e,n){var r,i,o,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/i.exec(t))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(ut(i[0]),ut(i[1]),ut(i[2]))}return(o=Ii.get(t))?e(o.r,o.g,o.b):(null!=t&&"#"===t.charAt(0)&&(4===t.length?(a=t.charAt(1),a+=a,s=t.charAt(2),s+=s,u=t.charAt(3),u+=u):7===t.length&&(a=t.substring(1,3),s=t.substring(3,5),u=t.substring(5,7)),a=parseInt(a,16),s=parseInt(s,16),u=parseInt(u,16)),e(a,s,u))}function ot(t,e,n){var r,i,o=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),s=a-o,u=(a+o)/2;return s?(i=u<.5?s/(a+o):s/(2-a-o),r=t==a?(e-n)/s+(e=zi.time&&(zi.flush=zi.callback(t-zi.time)),zi=zi.next;return t}function vt(){for(var t,e=Vi,n=1/0;e;)e.flush?e=t?t.next=e.next:Vi=e.next:(e.timexi,A=v*w;if(eo.add(Math.atan2(A*Math.sin(T),m*C+A*Math.cos(T))),Math.abs(x)wi&&(a=!0)}}return(!s&&!a&&eo<0||o<-wi)^1&u}function Qt(C,T,M,A){function l(t,e){return Math.abs(t[0]-C)r&&0n[1])return!1;r>n[0]&&(n[0]=r)}else{if(rE}function p(t,e,n){var r=[1,0,0],i=St(At(t),At(e)),o=Et(i,i),a=i[0],s=o-a*a;if(!s)return!n&&t;var u=E*o/s,l=-E*a/s,c=St(r,i),f=kt(r,u);Nt(f,kt(i,l));var h=c,d=Et(f,h),p=Et(h,h),g=d*d-p*(Et(f,f)-1);if(!(g<0)){var v=Math.sqrt(g),m=kt(h,(-d-v)/p);if(Nt(m,f),m=_t(m),!n)return m;var y,b=t[0],x=e[0],w=t[1],C=e[1];xwi;return qt(d,function(s){var u,l,c,f,h;return{lineStart:function(){f=c=!1,h=1},point:function(t,e){var n,r=[t,e],i=d(t,e),o=v?i?0:g(t,e):i?g(t+(t<0?xi:-xi),e):0;if(!u&&(f=c=i)&&s.lineStart(),i!==c&&(n=p(u,r),(Lt(u,n)||Lt(r,n))&&(r[0]+=wi,r[1]+=wi,i=d(r[0],r[1]))),i!==c)h=0,i?(s.lineStart(),n=p(r,u),s.point(n[0],n[1])):(n=p(u,r),s.point(n[0],n[1]),s.lineEnd()),u=n;else if(m&&u&&v^i){var a;o&l||!(a=p(r,u,!0))||(h=0,v?(s.lineStart(),s.point(a[0][0],a[0][1]),s.point(a[1][0],a[1][1]),s.lineEnd()):(s.point(a[1][0],a[1][1]),s.lineEnd(),s.lineStart(),s.point(a[0][0],a[0][1])))}!i||u&&Lt(u,r)||s.point(r[0],r[1]),u=r,c=i,l=o},lineEnd:function(){c&&s.lineEnd(),u=null},clean:function(){return h|(f&&c)<<1}}},he(i,6*Ti),function(t){return Ot(e,t)})}((C=+t)*Ti),i()):C},e.clipExtent=function(t){return arguments.length?(w=(T=t)?Qt(t[0][0],t[0][1],t[1][0],t[1][1]):ct,i()):T},e.scale=function(t){return arguments.length?(h=+t,r()):h},e.translate=function(t){return arguments.length?(d=+t[0],p=+t[1],r()):[d,p]},e.center=function(t){return arguments.length?(g=t[0]%360*Ti,v=t[1]%360*Ti,r()):[g*Mi,v*Mi]},e.rotate=function(t){return arguments.length?(m=t[0]%360*Ti,y=t[1]%360*Ti,b=2e.y?1:t.xe.x?1:0}),bottomSite:null},n={list:[],leftEnd:null,rightEnd:null,init:function(){n.leftEnd=n.createHalfEdge(null,"l"),n.rightEnd=n.createHalfEdge(null,"l"),n.leftEnd.r=n.rightEnd,n.rightEnd.l=n.leftEnd,n.list.unshift(n.leftEnd,n.rightEnd)},createHalfEdge:function(t,e){return{edge:t,side:e,vertex:null,l:null,r:null}},insert:function(t,e){e.l=t,e.r=t.r,t.r.l=e,t.r=e},leftBound:function(t){for(var e=n.leftEnd;(e=e.r)!=n.rightEnd&&i.rightOf(e,t););return e.l},del:function(t){t.l.r=t.r,t.r.l=t.l,t.edge=null},right:function(t){return t.r},left:function(t){return t.l},leftRegion:function(t){return null==t.edge?e.bottomSite:t.edge.region[t.side]},rightRegion:function(t){return null==t.edge?e.bottomSite:t.edge.region[jo[t.side]]}},i={bisect:function(t,e){var n={region:{l:t,r:e},ep:{l:null,r:null}},r=e.x-t.x,i=e.y-t.y,o=0=a.region.r.x;return f&&"l"===o.side||!f&&"r"===o.side?null:{x:s,y:u}},rightOf:function(t,e){var n=t.edge,r=n.region.r,i=e.x>r.x;if(i&&"l"===t.side)return 1;if(!i&&"r"===t.side)return 0;if(1===n.a){var o=e.y-r.y,a=e.x-r.x,s=0,u=0;if(!i&&n.b<0||i&&0<=n.b?u=s=o>=n.b*a:(u=e.x+e.y*n.b>n.c,n.b<0&&(u=!u),u||(s=1)),!s){var l=r.x-n.region.l.x;u=n.b*(a*a-o*o)a.ystar||t.ystar==a.ystar&&e.x>a.vertex.x))break}i.splice(r,0,t)},del:function(t){for(var e=0,n=s.list,r=n.length;ed.y&&(p=h,h=d,d=p,y="r"),m=i.bisect(h,d),f=n.createHalfEdge(m,y),n.insert(l,f),i.endPoint(m,jo[y],v),(g=i.intersect(l,f))&&(s.del(l),s.insert(l,g,i.distance(g,h))),(g=i.intersect(f,c))&&s.insert(f,g,i.distance(g,h))}for(a=n.right(n.leftEnd);a!=n.rightEnd;a=n.right(a))r(a.edge)}function qe(t){return t.x}function He(t){return t.y}function ze(t,e){t=Or.rgb(t),e=Or.rgb(e);var n=t.r,r=t.g,i=t.b,o=e.r-n,a=e.g-r,s=e.b-i;return function(t){return"#"+rt(Math.round(n+o*t))+rt(Math.round(r+a*t))+rt(Math.round(i+s*t))}}function Ke(t,e){var n,r={},i={};for(n in t)n in e?r[n]=Ye(t[n],e[n]):i[n]=t[n];for(n in e)n in t||(i[n]=e[n]);return function(t){for(n in r)i[n]=r[n](t);return i}}function Oe(e,n){return n-=e=+e,function(t){return e+n*t}}function Qe(t,e){var n,r,i,o,a,s=0,u=[],l=[];for(t+="",e+="",qo.lastIndex=0,r=0;n=qo.exec(e);++r)n.index&&u.push(e.substring(s,n.index)),l.push({i:u.length,x:n[0]}),u.push(null),s=qo.lastIndex;for(si&&(r=n,i=e);return r}function kn(t){return t.reduce(Dn,0)}function Dn(t,e){return t+e[1]}function _n(t,e){return Ln(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Ln(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,o=[];++n<=e;)o[n]=i*n+r;return o}function Gn(t){return[Or.min(t),Or.max(t)]}function Fn(t,e){return t.parent==e.parent?1:2}function $n(t){var e=t.children;return e&&e.length?e[0]:t._tree.thread}function Pn(t){var e,n=t.children;return n&&(e=n.length)?n[e-1]:t._tree.thread}function Rn(t,e){var n=t.children;if(n&&(i=n.length))for(var r,i,o=-1;++oh?i():(d.active=h,p.event&&p.event.start.call(c,o,f),p.tween.forEach(function(t,e){(e=e.call(c,o,f))&&l.push(e)}),n(t)?1:void pt(n,0,r))}function n(t){if(d.active!==h)return i();for(var e=(t-s)/u,n=a(e),r=l.length;0>>1;o.call(t,t[i],i)>>1;ee;)i.push(r/o);else for(;(r=t+n*++a)=g.length)return d?d.call(p,t):h?t.sort(h):t;for(var e,i,o,a,s=-1,u=t.length,l=g[r++],c=new b;++s=g.length)return t;var i=[],o=e[r++];return t.forEach(function(t,e){i.push({key:t,values:n(e,r)})}),o?i.sort(function(t,e){return o(t.key,e.key)}):i}(f(Or.map,t,0),0)},p.key=function(t){return g.push(t),p},p.sortKeys=function(t){return e[g.length-1]=t,p},p.sortValues=function(t){return h=t,p},p.rollup=function(t){return d=t,p},p},Or.set=function(t){var e=new l;if(t)for(var n=0,r=t.length;n",c=e[3]||"",f=e[4]||"",h=e[5],d=+e[6],p=e[7],g=e[8],v=e[9],m=1,y="",b=!1;switch(g&&(g=+g.substring(1)),(h||"0"===u&&"="===l)&&(h=u="0",l="=",p&&(d-=Math.floor((d-1)/4))),v){case"n":p=!0,v="g";break;case"%":m=100,y="%",v="f";break;case"p":m=100,y="%",v="r";break;case"b":case"o":case"x":case"X":"#"===f&&(f="0"+v.toLowerCase());case"c":case"d":b=!0,g=0;break;case"s":m=-1,v="r"}"#"===f?f="":"$"===f&&(f="$"),"r"!=v||g||(v="g"),null!=g&&("g"==v?g=Math.max(1,Math.min(21,g)):("e"==v||"f"==v)&&(g=Math.max(0,Math.min(20,g)))),v=Wi.get(v)||yt;var x=h&&p;return function(t){if(b&&t%1)return"";var e=t<0||0===t&&1/t<0?(t=-t,"-"):c;if(m<0){var n=Or.formatPrefix(t,g);t=n.scale(t),y=n.symbol}else t*=m;var r=(t=v(t,g)).lastIndexOf("."),i=r<0?t:t.substring(0,r),o=r<0?"":"."+t.substring(r+1);!h&&p&&(i=Bi(i));var a=f.length+i.length+o.length+(x?0:e.length),s=a"===l?s+e+t:"^"===l?s.substring(0,a>>=1)+e+t+s.substring(a):e+(x?t:s+t))+y}};var Yi=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Wi=Or.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=Or.round(t,mt(t,e))).toFixed(Math.max(0,Math.min(20,mt(t*(1+1e-15),e))))}}),Bi=ct;if(Oi){var Ui=Oi.length;Bi=function(t){for(var e=t.length,n=[],r=0,i=Oi[0];0f(h,p)&&(p=t):f(t,p)>f(h,p)&&(h=t):h<=p?(tf(h,p)&&(p=t):f(t,p)>f(h,p)&&(h=t)}else c(t,e);m=n,v=t}function t(){w.point=r}function e(){x[0]=h,x[1]=p,w.point=c,m=null}function n(t,e){if(m){var n=t-v;y+=180wi&&(h=-(p=180)),x[0]=h,x[1]=p,m=null}function f(t,e){return(e-=t)<0?e+360:e}function u(t,e){return t[0]-e[0]}function l(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tf(s[0],s[1])&&(s[1]=i[1]),f(i[0],s[1])>f(s[0],s[1])&&(s[0]=i[0])):n.push(s=i);for(var r,i,o,a=-1/0,s=(e=0,n[o=n.length-1]);e<=o;s=i,++e)i=n[e],(r=f(s[1],i[0]))>a&&(a=r,h=i[0],p=s[1])}return b=x=null,1/0===h||1/0===d?[[NaN,NaN],[NaN,NaN]]:[[h,d],[p,g]]}}(),Or.geo.centroid=function(t){ro=io=oo=ao=so=uo=lo=co=fo=ho=po=0,Or.geo.stream(t,go);var e=fo,n=ho,r=po,i=e*e+n*n+r*r;return iwi?Math.atan((Math.sin(r)*(s=Math.cos(o))*Math.sin(i)-Math.sin(o)*(a=Math.cos(r))*Math.sin(n))/(a*s*u)):(r+o)/2,f.point(g,p),f.lineEnd(),f.lineStart(),f.point(l,p),h=0),f.point(d=t,p=e),g=l},lineEnd:function(){f.lineEnd(),d=p=NaN},clean:function(){return 2-h}}},function(t,e,n,r){var i;if(null==t)i=n*xi/2,r.point(-xi,i),r.point(0,i),r.point(xi,i),r.point(xi,0),r.point(xi,-i),r.point(0,-i),r.point(-xi,-i),r.point(-xi,0),r.point(-xi,i);else if(Math.abs(t[0]-e[0])>wi){var o=(t[0]wi}).map(c)).concat(Or.range(Math.ceil(s/g)*g,a,g).filter(function(t){return Math.abs(t%m)>wi}).map(f))}var n,r,i,o,a,s,u,l,c,f,h,d,p=10,g=p,v=90,m=360,y=2.5;return e.lines=function(){return t().map(function(t){return{type:"LineString",coordinates:t}})},e.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(d(u).slice(1),h(i).reverse().slice(1),d(l).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(o=+t[0][0],i=+t[1][0],l=+t[0][1],u=+t[1][1],iwi}).map(function(t){return e[t]})})).forEach(function(t,e){var n=t.length;if(!n)return t.push([-1e6,-1e6],[-1e6,1e6],[1e6,1e6],[1e6,-1e6]);if(!(2u&&(u=e.x),e.y>l&&(l=e.y),n.push(e.x),r.push(e.y);else for(i=0;i=a[0]&&r<=a[1]&&((n=i[Or.bisect(s,r,1,l)-1]).y+=c,n.push(t[e]));return i}var f=!0,h=Number,d=Gn,p=_n;return n.value=function(t){return arguments.length?(h=t,n):h},n.range=function(t){return arguments.length?(d=lt(t),n):d},n.bins=function(e){return arguments.length?(p="number"==typeof e?function(t){return Ln(t,e)}:lt(e),n):p},n.frequency=function(t){return arguments.length?(f=!!t,n):f},n},Or.layout.tree=function(){function e(t,e){function h(t,e,n){if(e){for(var r,i=t,o=t,a=e,s=t.parent.children[0],u=i._tree.mod,l=o._tree.mod,c=a._tree.mod,f=s._tree.mod;a=Pn(a),i=$n(i),a&&i;)s=$n(s),(o=Pn(o))._tree.ancestor=t,0<(r=a._tree.prelim+c-i._tree.prelim-u+g(a,i))&&(Hn((d=t,p=n,(h=a)._tree.ancestor.parent==d.parent?h._tree.ancestor:p),t,r),u+=r,l+=r),c+=a._tree.mod,u+=i._tree.mod,f+=s._tree.mod,l+=o._tree.mod;a&&!Pn(o)&&(o._tree.thread=a,o._tree.mod+=c-l),i&&!$n(s)&&(s._tree.thread=i,s._tree.mod+=u-f,n=t)}var h,d,p;return n}var n=c.call(this,t,e),r=n[0];qn(r,function(t,e){t._tree={ancestor:t,prelim:0,mod:0,change:0,shift:0,number:e?e._tree.number+1:0}}),function t(e,n){var r=e.children,i=e._tree;if(r&&(o=r.length)){for(var o,a,s,u=r[0],l=u,c=-1;++cn.dy)&&(l=n.dy);++on.dx)&&(l=n.dx);++or;o--);e=e.slice(i,o)}return e},o.tickFormat=function(t,e){if(!arguments.length)return Zo;arguments.length<2?e=Zo:"function"!=typeof e&&(e=Or.format(e));var n,r=Math.max(.1,t/o.ticks().length),i=l?(n=1e-12,Math.ceil):(n=-1e-12,Math.floor);return function(t){return t/h(i(f(t)+n))<=r?e(t):""}},o.copy=function(){return t(e.copy(),u,l,c)},ir(o,e)}(Or.scale.linear().domain([0,1]),10,!0,[1,10])};var Zo=Or.format(".0e"),Jo={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};Or.scale.pow=function(){return function t(e,n,r){function i(t){return e(o(t))}var o=lr(n),a=lr(1/n);return i.invert=function(t){return a(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain((r=t.map(Number)).map(o)),i):r},i.ticks=function(t){return sr(r,t)},i.tickFormat=function(t,e){return ur(r,t,e)},i.nice=function(t){return i.domain(or(r,t))},i.exponent=function(t){return arguments.length?(o=lr(n=t),a=lr(1/n),e.domain(r.map(o)),i):n},i.copy=function(){return t(e.copy(),n,r)},ir(i,e)}(Or.scale.linear(),1,[0,1])},Or.scale.sqrt=function(){return Or.scale.pow().exponent(.5)},Or.scale.ordinal=function(){return function t(u,l){function c(t){return h[((i.get(t)||i.set(t,u.push(t)))-1)%h.length]}function f(e,n){return Or.range(u.length).map(function(t){return e+n*t})}var i,h,d;return c.domain=function(t){if(!arguments.length)return u;u=[],i=new b;for(var e,n=-1,r=t.length;++nrect,.s>rect").attr("width",N[1]-N[0])}function C(t){t.select(".extent").attr("y",k[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",k[1]-k[0])}function a(){function n(){var t=Or.event.changedTouches;return t?Or.touches(o,t)[0]:Or.mouse(o)}function t(){var t=n(),e=!1;i&&(t[0]+=i[0],t[1]+=i[1]),d||(Or.event.altKey?(f||(f=[(N[0]+N[1])/2,(k[0]+k[1])/2]),g[0]=N[+(t[0]"+t.less+"
"),n=$(""+t.evaluation+"
");$("#overview_btn").hasClass("active")?($("#overview_text").html(n),$("#overview_btn").text("Show Less"),GV.addPlot(t.data,"overview",t.type,t.title,t.footer,t.xtitle,t.ytitle)):($("#overview").find("svg").remove(),$("#overview_text").html(e),$("#overview_btn").text("Show More"))})}},GV.createChildRow=function(t,e,n){var r='
';t.addClass("tablesorter-hasChildRow"),t.after(r),n.status="pressed"},GV.removeChildRow=function(t,e,n){t.removeClass("tablesorter-hasChildRow"),e.remove(),n.status="released"},GV.emptyChildRow=function(t,e,n){var r="#"+e+"explanation";$("#"+e).empty(),$(r).remove(),GV.resetStatusOfOtherButtons(t),n.status="pressed"},GV.resetStatusOfOtherButtons=function(t){t.find("td").each(function(){"pressed"==this.status&&(this.status="released")}),t.find(".plot_btn").each(function(){"pressed"==this.status&&(this.status="released")})},GV.addDataToChildRow=function(t,n,r){var e=t.attr("data-jsonFile");$.getJSON(e,function(t){if("all"===r)for(var e in t.validations)void 0!==t.validations[e].graphs&&GV.generatePlotCommands(t.validations[e].graphs,n);else GV.addExplanation(n,t.validations[r]),void 0!==t.validations[r].graphs&&GV.generatePlotCommands(t.validations[r].graphs,n)})},GV.generatePlotCommands=function(t,e){for(var n=0;n",i="

Explanation: "+e.explanation+"

",o="

Conclusion: "+e.conclusion+"

",a=$('");$(n).prepend(a)},GV.addPlot=function(t,e,n,r,i,o,a,s,u){var l;switch(l=""===i?[]:i.split(";"),n){case"scatter":GV.plot_scatter(t,e,r,i,o,a,s,u);break;case"bars":GV.plot_bars(t,e,r,l,o,a,s);break;case"simplebars":GV.plot_simple_bars(t,e,r,l,o,a);break;case"lines":null!==u&&(u=u.split(",")),GV.plot_lines(t,e,r,l,o,a,s,u);break;case"align":null!==u&&(u=u.split(",")),GV.plot_align(t,e,r,l,o,a,s,u)}},GV.color_beautification=function(t){switch(t){case"red":return d3.rgb(189,54,47);case"blue":return d3.rgb(58,135,173);case"green":return d3.rgb(70,136,71);case"yellow":return d3.rgb(255,255,51);case"orange":return d3.rgb(248,148,6);case"violet":return d3.rgb(153,0,153);case"gray":return d3.rgb(160,160,160);default:return t}},GV.plot_bars=function(t,e,n,r,i,o,a){var s=70,u=50,l=75,c=50,f=600-c-u,h=500-s-l,d=d3.select("#".concat(e)).append("svg").attr("width",f+c+u).attr("height",h+s+l).append("g").attr("transform","translate("+c+","+s+")");d.append("text").attr("x",f/2).attr("y",-45).attr("text-anchor","middle").style("font-size","16px").text(n);var p=[].concat.apply([],t),g=d3.max(p,function(t){return t.value})+3,v=d3.scale.linear().domain([0,g+g/10]).range([h,0]),m=d3.min(p,function(t){return t.key});void 0!==a&&(m=Math.min(m,a));var y=d3.max(p,function(t){return t.key});void 0!==a&&(y=Math.max(y,a));var b=d3.scale.linear().domain([m-100,y+100]).range([13,f]),x=d3.svg.axis().scale(b).orient("bottom").ticks(8),w=d3.svg.axis().scale(v).orient("left").tickFormat(d3.format("d")).ticks(8);d.append("g").attr("class","x axis").attr("transform","translate(0,"+h+")").call(x).append("text").attr("class","label").attr("x",(f-i.length)/2-50).attr("y",35).style("text-anchor","start").text(i),d.append("g").attr("class","y axis").call(w).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(h+o.length)/2-50).attr("y",-40).style("text-anchor","start").text(o),t.map(function(t){d.selectAll(".bar").data(t).enter().append("rect").attr("x",function(t){return b(t.key)}).attr("width",6).attr("y",function(t){return v(t.value)}).attr("height",function(t){return h-v(t.value)}).attr("fill",function(t){return!0===t.main?GV.color_beautification("red"):GV.color_beautification("blue")})}),void 0!==a&&(d.append("rect").attr("x",b(a)).attr("width",4).attr("y",v(g+g/10)).style("opacity",.6).attr("height",h-v(g+g/8)).attr("fill",GV.color_beautification("black")),d.append("text").attr("transform","rotate(-90)").attr("x",-g/10-35).attr("y",b(a)-5).text("query"));for(var C=0,T=0,M=0;M  Hide Advanced Parameters',$("#adv_params").addClass("in")))},keepFooterFixedToBottom=function(){"use strict";$("#mainbody").css({"margin-bottom":$("#footer").height()+15+"px"}),$(window).resize(function(){$("#mainbody").css({"margin-bottom":$("#footer").height()+15+"px"})})},addSeqValidation=function(){"use strict";jQuery.validator.addMethod("checkInputType",function(t,e){var n=[],r="";if(">"===t.charAt(0)){for(var i=t.split(">"),o=1;o  Show Advanced Parameters'===t.innerHTML?(t.innerHTML='  Hide Advanced Parameters',$("#adv_params").collapse("show"),$.cookie("GeneValidator_adv_params_status","open")):(t.innerHTML='  Show Advanced Parameters',$("#adv_params").collapse("hide"),$.cookie("GeneValidator_adv_params_status","closed"))},examplarSequence=function(t){"use strict";"dna"===t?document.getElementById("seq").value=">Insulin\nATGGCTCTCTGGATCCGGTCGCTGCCTCTCCTGGCCCTTCTTGCTCTTTCTGGCCCTGGGATCAGCCACGCAGCTGCCAACCAGCACCTCTGTGGCTCCCACTTGGTTGAGGCTCTCTACCTGGTGTGTGGGGAGCGGGGTTTCTTCTACTCCCCCAAAACACGGCGGGACGTTGAGCAGCCTCTAGTGAACGGTCCCCTGCATGGCGAGGTGGGAGAGCTGCCGTTCCAGCATGAGGAATACCAGAAAGTCAAGCGAGGCATCGTTGAGCAATGCTGTGAAAACCCGTGCTCCCTCTACCAACTGGAAAACTACTGCAACTAG\n>Insulin (with a duplication)\nATGGCTCTCTGGATCCGGTCGCTGCCTCTCCTGGCCCTTCTTGCTCTTTCTGGCCCTGGGATCAGCCACGCAGCTGCCAACCAGCACCTCTGTGGCTCCCACTTGGTTGAGGCTCTCTACCTGGTGTGTGGGGAGCGGGGTTTCTTCTACTCCCCCAAAACACGGCGGGACGTTGAGCAGCCTCTAGTGAACGGTCCCCTGCATGGCGAGGTGGGAGAGCTGCCGTTCCAGCATGAGGAATACCAGACAGCACCTCTGTGGCTCCCACTTGGTTGAGGCTCTCTACCTGGTGTGTGGGGAGCGGGGTTTCTTCTACTCCCCCAAAACACGGCGGGACGTTGAGCAGCCTCTAGTGAACGGTCCCCTGCATGGCGAGGTGGGAGAGCTGCCGTTCCAGCATGAGGAATACCAGAAAGTCAAGCGAGGCATCGTTGAGCAATGCTGTGAAAACCCGTGCTCCCTCTACCAACTGGAAAACTACTGCAACTAG":"protein"===t&&(document.getElementById("seq").value=">Methylmalonyl-CoA carboxyltransferase 12S \nMAENNNLKLASTMEGRVEQLAEQRQVIEAGGGERRVEKQHSQGKQTARERLNNLLDPHSFDEVGAFRKHRTTLFGMDKAVVPADGVVTGRGTILGRPVHAASQDFTVMGGSAGETQSTKVVETMEQALLTGTPFLFFYDSGGARIQEGIDSLSGYGKMFFANVKLSGVVPQIAIIAGPCAGGASYSPALTDFIIMTKKAHMFITGPQVIKSVTGEDVTADELGGAEAHMAISGNIHFVAEDDDAAELIAKKLLSFLPQNNTEEASFVNPNNDVSPNTELRDIVPIDGKKGYDVRDVIAKIVDWGDYLEVKAGYATNLVTAFARVNGRSVGIVANQPSVMSGCLDINASDKAAEFVNFCDSFNIPLVQLVDVPGFLPGVQQEYGGIIRHGAKMLYAYSEATVPKITVVLRKAYGGSYLAMCNRDLGADAVYAWPSAEIAVMGAEGAANVIFRKEIKAADDPDAMRAEKIEEYQNAFNTPYVAAARGQVDDVIDPADTRRKIASALEMYATKRQTRPAKKPWKLPLLSEEEIMADEEEKDLMIATLNKRVASLESELGSLQSDTQGVTEDVLTAISAVAAYLGNDGSAEVVHFAPSPNWVREGRRALQNHSIR\n>locus=Si_gnF\nMWFPVVLLLLVGVAVAMPDHEHAWEPQNEYQYSVFVRTLTGVDTLKQQYTGIQLKGVLVIQVKSEELLQAKYINPRYAHIHQELSNGPYSKIPEENLEYRDIPMSGKPFEIKLKHGVIRDLLFDRNVPTWEVNMLKGIVGQLQIDTQGENAIDSQSTQIPSNSEPSSATFKAMEDSVGGKCEVLYEITPLPQHVAQTRPDRVPMSSVPSKGHHYEVKKLKNYEKCQERQLYHYGMDVKMTKENMMKRNKVVSELSTTHIVITGTLKSFTIQSTEMKNEITVQPESSDSPIGTVYSITKLTLAKINKISNSWFGPLELSNVESTGNLVYIFNNPFSDSEQRRVGQPSISRNSEQENSLETKKRSFHSHSSSSSSSSSSSSEEENESVMQSKASLRNIFMAPNVPLLPYFIGFKGKTIMKSNEHNVMQLAKDLLLQIAKEIQNPSEGYENTLEKYVNLKNLIRTMDRKQYTELEQYVSQFNKATVEGENAWYTLRDAVVHAGTGPAFVTIENWLKSGQVKGEEAAELLSKIPKSVHQPTPDYIKEFFKLIKSSVVTQQEYVNVSAPLAFAELLRNNYVVPSYYPVHSFGRMTLKGNEEIDNYISYLANQLQQGYLENNTQKIQTFIFALGVTAHPKIISVFEPYLEGKLPTTKYQRMLMVAALYDLSRDIPKLVGPIFYKLYMNENEAHEVRCMAVQQFILTDPPMITLQRVAKYTNYDQSDQVNSAVKSTLNSIINTKRPEWRNLANKARSVRYLVNPKNYDTWYSKGYYIDFENWVFKGLNVKMVASNDAVLPRYVYVGLDSIFNFLRKPTFEVGYAVSSYRQVYDLINELWNSYQFEEMREKSQGSRVEKLAQELKIKSGQKNNLEGHVLFNSVYGSMVYPYDKHRIREAVAALKKLLTSDSKLKTTAFNNFEKIVSFPMEMGVPFVYSFELPVFVKSEINFKKGEPITSRSGVYETLFCNRVQKRFGFIAPFEYQNYIAGIDKNGIMRVPLKYETNIDIKQKNFALKIHPNIPQSGTSTGLTHYSVVPFTTRQNIFNLQPVSNEGNTRPVITSEIHKMTKEKGPFSIKIESDTTKKESVLEDIVTGISKSSNSNNERYMKIDTTFESKQVAKCEIQIDMTFDAVTIHGKNQQPSHKEMQHHSKLDWKPNSKERREEIVNVLSAGLKSGTVFVADVSFSLPRLQDNTYVFTVGSVRSNIDQKLRHYFYVNTNAAQEVKYELCYSQEVQYAYPTPLNFEYAINNEPKDKLKGVLRYGRTCNTGNEIVITGSSSQSPQLRDMIENSSITKQCMEEIQKGKKSVRTCNKATDVAQVRDQLNFHIDASQLSEIRQKYDQVIGLLNYTNLSQYNVQQNSETNTIVVQNPWVMVPTVQEPWYRWAIKPSESQRQSEIDVLLDEVSQPSCTLDNDKILTFDNQLYNVQLGKCKHVLLTTYPQDSHNRRNYIPESSKVAVLAKDTDNDSRNVYVWLGNLEIELKKVGNDLKVAINGQNVEIPEKGHQESNGNEIIFEIVQLPDGSLSVISEKYGITVIFDGKHVRLYANGATYRNAIRGLCGNYDSRRDNDFLTPKNCLLTKPEEFAATYAMTNENCQGPAPENKRKAEGAMCIEVPEQQQMNVISDREAGRMMTEGGNWGYHQSNRKKEHGQDSKRGHGHKKYNQKDSQEGGSNESQYRKKHNIVYRTRVVEMDDKICFTTTPVPGCLQDTRPVERVPKKYDLYCLSKNNESMDLKRRVEEGAKPDFTQKPVNKIQNFQIPVSCSAA")},checkType=function(t,e,n,r){"use strict";void 0===e&&(e=.9),void 0===n&&(n=1e4),void 0===r&&(r=1);var i=t.slice(r-1,n),o=i.replace(/N/gi,""),a=o.length,s=(o.match(/[ACG]/gi)||[]).length/a,u=(o.match(/[T]/gi)||[]).length/a,l=(o.match(/[U]/gi)||[]).length/a,c=i.replace(/X/gi,"").length,f=(i.match(/[ARNDCQEGHILKMFPSTWYV\*]/gi)||[]).length/c;return e<=s+u||e<=s+l?l<=u?"dna":u<=l?"rna":"dna":e<=f?"protein":void 0};