wurmlab/GeneValidator

View on GitHub
aux/html_files/js/gv.compiled.min.js

Summary

Maintainability
A
0 mins
Test Coverage
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(d,t){function e(t,e){return e.toUpperCase()}var n=[],c=n.slice,g=n.concat,s=n.push,i=n.indexOf,r={},o=r.toString,v=r.hasOwnProperty,m={},y=d.document,a="2.1.1",C=function(t,e){return new C.fn.init(t,e)},u=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,l=/^-ms-/,f=/-([\da-z])/gi;function h(t){var e=t.length,n=C.type(t);return"function"!==n&&!C.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t))}C.fn=C.prototype={jquery:a,constructor:C,selector:"",length:0,toArray:function(){return c.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:c.call(this)},pushStack:function(t){var e=C.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return C.each(this,t,e)},map:function(n){return this.pushStack(C.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(0<=n&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:s,sort:n.sort,splice:n.splice},C.extend=C.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||C.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],a!==(r=t[e])&&(l&&r&&(C.isPlainObject(r)||(i=C.isArray(r)))?(o=i?(i=!1,n&&C.isArray(n)?n:[]):n&&C.isPlainObject(n)?n:{},a[e]=C.extend(l,o,r)):void 0!==r&&(a[e]=r));return a},C.extend({expando:"jQuery"+(a+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===C.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!C.isArray(t)&&0<=t-parseFloat(t)},isPlainObject:function(t){return"object"===C.type(t)&&!t.nodeType&&!C.isWindow(t)&&!(t.constructor&&!v.call(t.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?r[o.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;(t=C.trim(t))&&(1===t.indexOf("use strict")?((e=y.createElement("script")).text=t,y.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(l,"ms-").replace(f,e)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r=0,i=t.length,o=h(t);if(n){if(o)for(;r<i&&!1!==e.apply(t[r],n);r++);else for(r in t)if(!1===e.apply(t[r],n))break}else if(o)for(;r<i&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(u,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(h(Object(t))?C.merge(n,"string"==typeof t?[t]:t):s.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:i.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!=a&&r.push(t[i]);return r},map:function(t,e,n){var r,i=0,o=t.length,a=[];if(h(t))for(;i<o;i++)null!=(r=e(t[i],i,n))&&a.push(r);else for(i in t)null!=(r=e(t[i],i,n))&&a.push(r);return g.apply([],a)},guid:1,proxy:function(t,e){var n,r,i;return"string"==typeof e&&(n=t[e],e=t,t=n),C.isFunction(t)?(r=c.call(arguments,2),(i=function(){return t.apply(e||this,r.concat(c.call(arguments)))}).guid=t.guid=t.guid||C.guid++,i):void 0},now:Date.now,support:m}),C.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){r["[object "+e+"]"]=e.toLowerCase()});var p=function(n){function f(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}var t,d,b,o,r,g,h,v,w,l,c,m,M,i,y,x,a,s,C,k="sizzle"+-new Date,T=n.document,E=0,p=0,u=it(),S=it(),_=it(),N=function(t,e){return t===e&&(c=!0),0},$="undefined",A={}.hasOwnProperty,e=[],D=e.pop,L=e.push,j=e.push,P=e.slice,q=e.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]===t)return e;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",O="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",F=O.replace("w","w#"),I="\\["+H+"*("+O+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+H+"*\\]",z=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",W=new RegExp("^"+H+"+|((?:^|[^\\\\])(?:\\\\.)*)"+H+"+$","g"),V=new RegExp("^"+H+"*,"+H+"*"),B=new RegExp("^"+H+"*([>+~]|"+H+")"+H+"*"),U=new RegExp("="+H+"*([^\\]'\"]*?)"+H+"*\\]","g"),G=new RegExp(z),Y=new RegExp("^"+F+"$"),X={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O.replace("w","w*")+")"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}"+H+"?|("+H+")|.)","ig");try{j.apply(e=P.call(T.childNodes),T.childNodes),e[T.childNodes.length].nodeType}catch(t){j={apply:e.length?function(t,e){L.apply(t,P.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function rt(t,e,n,r){var i,o,a,s,u,l,c,f,h,p;if((e?e.ownerDocument||e:T)!==M&&m(e),n=n||[],!t||"string"!=typeof t)return n;if(1!==(s=(e=e||M).nodeType)&&9!==s)return[];if(y&&!r){if(i=K.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))&&C(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return j.apply(n,e.getElementsByTagName(t)),n;if((a=i[3])&&d.getElementsByClassName&&e.getElementsByClassName)return j.apply(n,e.getElementsByClassName(a)),n}if(d.qsa&&(!x||!x.test(t))){if(f=c=k,h=e,p=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+ht(l[u]);h=tt.test(t)&&ct(e.parentNode)||e,p=l.join(",")}if(p)try{return j.apply(n,h.querySelectorAll(p)),n}catch(t){}finally{c||e.removeAttribute("id")}}}return v(t.replace(W,"$1"),e,n,r)}function it(){var n=[];function r(t,e){return n.push(t+" ")>b.cacheLength&&delete r[n.shift()],r[t+" "]=e}return r}function ot(t){return t[k]=!0,t}function at(t){var e=M.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function st(t,e){for(var n=t.split("|"),r=t.length;r--;)b.attrHandle[n[r]]=e}function ut(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function lt(a){return ot(function(o){return o=+o,ot(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 ct(t){return t&&typeof t.getElementsByTagName!==$&&t}for(t in d=rt.support={},r=rt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},m=rt.setDocument=function(t){var e,u=t?t.ownerDocument||t:T,n=u.defaultView;return u!==M&&9===u.nodeType&&u.documentElement?(i=(M=u).documentElement,y=!r(u),n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",function(){m()},!1):n.attachEvent&&n.attachEvent("onunload",function(){m()})),d.attributes=at(function(t){return t.className="i",!t.getAttribute("className")}),d.getElementsByTagName=at(function(t){return t.appendChild(u.createComment("")),!t.getElementsByTagName("*").length}),d.getElementsByClassName=J.test(u.getElementsByClassName)&&at(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),d.getById=at(function(t){return i.appendChild(t).id=k,!u.getElementsByName||!u.getElementsByName(k).length}),d.getById?(b.find.ID=function(t,e){if(typeof e.getElementById!==$&&y){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},b.filter.ID=function(t){var e=t.replace(nt,f);return function(t){return t.getAttribute("id")===e}}):(delete b.find.ID,b.filter.ID=function(t){var n=t.replace(nt,f);return function(t){var e=typeof t.getAttributeNode!==$&&t.getAttributeNode("id");return e&&e.value===n}}),b.find.TAG=d.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==$?e.getElementsByTagName(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},b.find.CLASS=d.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==$&&y?e.getElementsByClassName(t):void 0},a=[],x=[],(d.qsa=J.test(u.querySelectorAll))&&(at(function(t){t.innerHTML="<select msallowclip=''><option selected=''></option></select>",t.querySelectorAll("[msallowclip^='']").length&&x.push("[*^$]="+H+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||x.push("\\["+H+"*(?:value|"+R+")"),t.querySelectorAll(":checked").length||x.push(":checked")}),at(function(t){var e=u.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&x.push("name"+H+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||x.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),x.push(",.*:")})),(d.matchesSelector=J.test(s=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&at(function(t){d.disconnectedMatch=s.call(t,"div"),s.call(t,"[s!='']:x"),a.push("!=",z)}),x=x.length&&new RegExp(x.join("|")),a=a.length&&new RegExp(a.join("|")),e=J.test(i.compareDocumentPosition),C=e||J.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)||!d.sortDetached&&e.compareDocumentPosition(t)===n?t===u||t.ownerDocument===T&&C(T,t)?-1:e===u||e.ownerDocument===T&&C(T,e)?1:l?q.call(l,t)-q.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?q.call(l,t)-q.call(l,e):0;if(i===o)return ut(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?ut(a[r],s[r]):a[r]===T?-1:s[r]===T?1:0},u):M},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==M&&m(t),e=e.replace(U,"='$1']"),!(!d.matchesSelector||!y||a&&a.test(e)||x&&x.test(e)))try{var n=s.call(t,e);if(n||d.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0<rt(e,M,null,[t]).length},rt.contains=function(t,e){return(t.ownerDocument||t)!==M&&m(t),C(t,e)},rt.attr=function(t,e){(t.ownerDocument||t)!==M&&m(t);var n=b.attrHandle[e.toLowerCase()],r=n&&A.call(b.attrHandle,e.toLowerCase())?n(t,e,!y):void 0;return void 0!==r?r:d.attributes||!y?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},rt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},rt.uniqueSort=function(t){var e,n=[],r=0,i=0;if(c=!d.detectDuplicates,l=!d.sortStable&&t.slice(0),t.sort(N),c){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return l=null,t},o=rt.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=o(e);return n},(b=rt.selectors={cacheLength:50,createPseudo:ot,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,f),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,f),"~="===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]||rt.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]&&rt.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return X.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&G.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,f).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("(^|"+H+")"+t+"("+H+"|$)"))&&u(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==$&&t.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(t){var e=rt.attr(t,n);return null==e?"!="===r:!r||(e+="","="===r?e===i:"!="===r?e!==i:"^="===r?i&&0===e.indexOf(i):"*="===r?i&&-1<e.indexOf(i):"$="===r?i&&e.slice(-i.length)===i:"~="===r?-1<(" "+e+" ").indexOf(i):"|="===r&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,t,e,d,g){var v="nth"!==p.slice(0,3),m="last"!==p.slice(-4),y="of-type"===t;return 1===d&&0===g?function(t){return!!t.parentNode}:function(t,e,n){var r,i,o,a,s,u,l=v!=m?"nextSibling":"previousSibling",c=t.parentNode,f=y&&t.nodeName.toLowerCase(),h=!n&&!y;if(c){if(v){for(;l;){for(o=t;o=o[l];)if(y?o.nodeName.toLowerCase()===f:1===o.nodeType)return!1;u=l="only"===p&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&h){for(s=(r=(i=c[k]||(c[k]={}))[p]||[])[0]===E&&r[1],a=r[0]===E&&r[2],o=s&&c.childNodes[s];o=++s&&o&&o[l]||(a=s=0)||u.pop();)if(1===o.nodeType&&++a&&o===t){i[p]=[E,s,a];break}}else if(h&&(r=(t[k]||(t[k]={}))[p])&&r[0]===E)a=r[1];else for(;(o=++s&&o&&o[l]||(a=s=0)||u.pop())&&((y?o.nodeName.toLowerCase()!==f:1!==o.nodeType)||!++a||(h&&((o[k]||(o[k]={}))[p]=[E,a]),o!==t)););return(a-=g)===d||a%d==0&&0<=a/d}}},PSEUDO:function(t,o){var e,a=b.pseudos[t]||b.setFilters[t.toLowerCase()]||rt.error("unsupported pseudo: "+t);return a[k]?a(o):1<a.length?(e=[t,t,"",o],b.setFilters.hasOwnProperty(t.toLowerCase())?ot(function(t,e){for(var n,r=a(t,o),i=r.length;i--;)t[n=q.call(t,r[i])]=!(e[n]=r[i])}):function(t){return a(t,0,e)}):a}},pseudos:{not:ot(function(t){var r=[],i=[],s=h(t.replace(W,"$1"));return s[k]?ot(function(t,e,n,r){for(var i,o=s(t,null,r,[]),a=t.length;a--;)(i=o[a])&&(t[a]=!(e[a]=i))}):function(t,e,n){return r[0]=t,s(r,null,n,i),!i.pop()}}),has:ot(function(e){return function(t){return 0<rt(e,t).length}}),contains:ot(function(e){return function(t){return-1<(t.textContent||t.innerText||o(t)).indexOf(e)}}),lang:ot(function(n){return Y.test(n||"")||rt.error("unsupported lang: "+n),n=n.replace(nt,f).toLowerCase(),function(t){var e;do{if(e=y?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===i},focus:function(t){return t===M.activeElement&&(!M.hasFocus||M.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!b.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return Q.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:lt(function(){return[0]}),last:lt(function(t,e){return[e-1]}),eq:lt(function(t,e,n){return[n<0?n+e:n]}),even:lt(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:lt(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:lt(function(t,e,n){for(var r=n<0?n+e:n;0<=--r;)t.push(r);return t}),gt:lt(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})b.pseudos[t]=function(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}(t);function ft(){}function ht(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function pt(a,t,e){var s=t.dir,u=e&&"parentNode"===s,l=p++;return t.first?function(t,e,n){for(;t=t[s];)if(1===t.nodeType||u)return a(t,e,n)}:function(t,e,n){var r,i,o=[E,l];if(n){for(;t=t[s];)if((1===t.nodeType||u)&&a(t,e,n))return!0}else for(;t=t[s];)if(1===t.nodeType||u){if((r=(i=t[k]||(t[k]={}))[s])&&r[0]===E&&r[1]===l)return o[2]=r[2];if((i[s]=o)[2]=a(t,e,n))return!0}}}function dt(i){return 1<i.length?function(t,e,n){for(var r=i.length;r--;)if(!i[r](t,e,n))return!1;return!0}:i[0]}function gt(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s<u;s++)!(o=t[s])||n&&!n(o,r,i)||(a.push(o),l&&e.push(s));return a}function vt(p,d,g,v,m,t){return v&&!v[k]&&(v=vt(v)),m&&!m[k]&&(m=vt(m,t)),ot(function(t,e,n,r){var i,o,a,s=[],u=[],l=e.length,c=t||function(t,e,n){for(var r=0,i=e.length;r<i;r++)rt(t,e[r],n);return n}(d||"*",n.nodeType?[n]:n,[]),f=!p||!t&&d?c:gt(c,s,p,n,r),h=g?m||(t?p:l||v)?[]:e:f;if(g&&g(f,h,n,r),v)for(i=gt(h,u),v(i,[],n,r),o=i.length;o--;)(a=i[o])&&(h[u[o]]=!(f[u[o]]=a));if(t){if(m||p){if(m){for(i=[],o=h.length;o--;)(a=h[o])&&i.push(f[o]=a);m(null,h=[],i,r)}for(o=h.length;o--;)(a=h[o])&&-1<(i=m?q.call(t,a):s[o])&&(t[i]=!(e[i]=a))}}else h=gt(h===e?h.splice(l,h.length):h),m?m(null,e,h,r):j.apply(e,h)})}function mt(v,m){function t(t,e,n,r,i){var o,a,s,u=0,l="0",c=t&&[],f=[],h=w,p=t||x&&b.find.TAG("*",i),d=E+=null==h?1:Math.random()||.1,g=p.length;for(i&&(w=e!==M&&e);l!==g&&null!=(o=p[l]);l++){if(x&&o){for(a=0;s=v[a++];)if(s(o,e,n)){r.push(o);break}i&&(E=d)}y&&((o=!s&&o)&&u--,t&&c.push(o))}if(u+=l,y&&l!==u){for(a=0;s=m[a++];)s(c,f,e,n);if(t){if(0<u)for(;l--;)c[l]||f[l]||(f[l]=D.call(r));f=gt(f)}j.apply(r,f),i&&!t&&0<f.length&&1<u+m.length&&rt.uniqueSort(r)}return i&&(E=d,w=h),c}var y=0<m.length,x=0<v.length;return y?ot(t):t}return ft.prototype=b.filters=b.pseudos,b.setFilters=new ft,g=rt.tokenize=function(t,e){var n,r,i,o,a,s,u,l=S[t+" "];if(l)return e?0:l.slice(0);for(a=t,s=[],u=b.preFilter;a;){for(o in n&&!(r=V.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=B.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(W," ")}),a=a.slice(n.length)),b.filter)!(r=X[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return e?a.length:a?rt.error(t):S(t,s).slice(0)},h=rt.compile=function(t,e){var n,r=[],i=[],o=_[t+" "];if(!o){for(n=(e=e||g(t)).length;n--;)(o=function t(e){for(var r,n,i,o=e.length,a=b.relative[e[0].type],s=a||b.relative[" "],u=a?1:0,l=pt(function(t){return t===r},s,!0),c=pt(function(t){return-1<q.call(r,t)},s,!0),f=[function(t,e,n){return!a&&(n||e!==w)||((r=e).nodeType?l:c)(t,e,n)}];u<o;u++)if(n=b.relative[e[u].type])f=[pt(dt(f),n)];else{if((n=b.filter[e[u].type].apply(null,e[u].matches))[k]){for(i=++u;i<o&&!b.relative[e[i].type];i++);return vt(1<u&&dt(f),1<u&&ht(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(W,"$1"),n,u<i&&t(e.slice(u,i)),i<o&&t(e=e.slice(i)),i<o&&ht(e))}f.push(n)}return dt(f)}(e[n]))[k]?r.push(o):i.push(o);(o=_(t,mt(i,r))).selector=t}return o},v=rt.select=function(t,e,n,r){var i,o,a,s,u,l="function"==typeof t&&t,c=!r&&g(t=l.selector||t);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&d.getById&&9===e.nodeType&&y&&b.relative[o[1].type]){if(!(e=(b.find.ID(a.matches[0].replace(nt,f),e)||[])[0]))return n;l&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=X.needsContext.test(t)?0:o.length;i--&&(a=o[i],!b.relative[s=a.type]);)if((u=b.find[s])&&(r=u(a.matches[0].replace(nt,f),tt.test(o[0].type)&&ct(e.parentNode)||e))){if(o.splice(i,1),!(t=r.length&&ht(o)))return j.apply(n,r),n;break}}return(l||h(t,c))(r,e,!y,n,tt.test(t)&&ct(e.parentNode)||e),n},d.sortStable=k.split("").sort(N).join("")===k,d.detectDuplicates=!!c,m(),d.sortDetached=at(function(t){return 1&t.compareDocumentPosition(M.createElement("div"))}),at(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||st("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),d.attributes&&at(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||st("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),at(function(t){return null==t.getAttribute("disabled")})||st(R,function(t,e,n){var r;return n?void 0:!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),rt}(d);C.find=p,C.expr=p.selectors,C.expr[":"]=C.expr.pseudos,C.unique=p.uniqueSort,C.text=p.getText,C.isXMLDoc=p.isXML,C.contains=p.contains;var x=C.expr.match.needsContext,b=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function M(t,n,r){if(C.isFunction(n))return C.grep(t,function(t,e){return!!n.call(t,e,t)!==r});if(n.nodeType)return C.grep(t,function(t){return t===n!==r});if("string"==typeof n){if(w.test(n))return C.filter(n,t,r);n=C.filter(n,t)}return C.grep(t,function(t){return 0<=i.call(n,t)!==r})}C.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?C.find.matchesSelector(r,t)?[r]:[]:C.find.matches(t,C.grep(e,function(t){return 1===t.nodeType}))},C.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(C(t).filter(function(){for(e=0;e<n;e++)if(C.contains(i[e],this))return!0}));for(e=0;e<n;e++)C.find(t,i[e],r);return(r=this.pushStack(1<n?C.unique(r):r)).selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(M(this,t||[],!1))},not:function(t){return this.pushStack(M(this,t||[],!0))},is:function(t){return!!M(this,"string"==typeof t&&x.test(t)?C(t):t||[],!1).length}});var k,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(C.fn.init=function(t,e){var n,r;if(!t)return this;if("string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):C.isFunction(t)?void 0!==k.ready?k.ready(t):t(C):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),C.makeArray(t,this));if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:T.exec(t))||!n[1]&&e)return!e||e.jquery?(e||k).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),b.test(n[1])&&C.isPlainObject(e))for(n in e)C.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}).prototype=C.fn,k=C(y);var E=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};function _(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.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&&C(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}}),C.fn.extend({has:function(t){var e=C(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(C.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=x.test(t)||"string"!=typeof t?C(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&C.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(1<o.length?C.unique(o):o)},index:function(t){return t?"string"==typeof t?i.call(C(t),this[0]):i.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(C.unique(C.merge(this.get(),C(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),C.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return C.dir(t,"parentNode")},parentsUntil:function(t,e,n){return C.dir(t,"parentNode",n)},next:function(t){return _(t,"nextSibling")},prev:function(t){return _(t,"previousSibling")},nextAll:function(t){return C.dir(t,"nextSibling")},prevAll:function(t){return C.dir(t,"previousSibling")},nextUntil:function(t,e,n){return C.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return C.dir(t,"previousSibling",n)},siblings:function(t){return C.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return C.sibling(t.firstChild)},contents:function(t){return t.contentDocument||C.merge([],t.childNodes)}},function(r,i){C.fn[r]=function(t,e){var n=C.map(this,i,t);return"Until"!==r.slice(-5)&&(e=t),e&&"string"==typeof e&&(n=C.filter(e,n)),1<this.length&&(S[r]||C.unique(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var N,$=/\S+/g,A={};function D(){y.removeEventListener("DOMContentLoaded",D,!1),d.removeEventListener("load",D,!1),C.ready()}C.Callbacks=function(i){var t,n;i="string"==typeof i?A[i]||(n=A[t=i]={},C.each(t.match($)||[],function(t,e){n[e]=!0}),n):C.extend({},i);var e,r,o,a,s,u,l=[],c=!i.once&&[],f=function(t){for(e=i.memory&&t,r=!0,u=a||0,a=0,s=l.length,o=!0;l&&u<s;u++)if(!1===l[u].apply(t[0],t[1])&&i.stopOnFalse){e=!1;break}o=!1,l&&(c?c.length&&f(c.shift()):e?l=[]:h.disable())},h={add:function(){var t;return l&&(t=l.length,function r(t){C.each(t,function(t,e){var n=C.type(e);"function"===n?i.unique&&h.has(e)||l.push(e):e&&e.length&&"string"!==n&&r(e)})}(arguments),o?s=l.length:e&&(a=t,f(e))),this},remove:function(){return l&&C.each(arguments,function(t,e){for(var n;-1<(n=C.inArray(e,l,n));)l.splice(n,1),o&&(n<=s&&s--,n<=u&&u--)}),this},has:function(t){return t?-1<C.inArray(t,l):!(!l||!l.length)},empty:function(){return l=[],s=0,this},disable:function(){return l=c=e=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,e||h.disable(),this},locked:function(){return!c},fireWith:function(t,e){return!l||r&&!c||(e=[t,(e=e||[]).slice?e.slice():e],o?c.push(e):f(e)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},C.extend({Deferred:function(t){var o=[["resolve","done",C.Callbacks("once memory"),"resolved"],["reject","fail",C.Callbacks("once memory"),"rejected"],["notify","progress",C.Callbacks("memory")]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var i=arguments;return C.Deferred(function(r){C.each(o,function(t,e){var n=C.isFunction(i[t])&&i[t];s[e[1]](function(){var t=n&&n.apply(this,arguments);t&&C.isFunction(t.promise)?t.promise().done(r.resolve).fail(r.reject).progress(r.notify):r[e[0]+"With"](this===a?r.promise():this,n?[t]:arguments)})}),i=null}).promise()},promise:function(t){return null!=t?C.extend(t,a):a}},s={};return a.pipe=a.then,C.each(o,function(t,e){var n=e[2],r=e[3];a[e[1]]=n.add,r&&n.add(function(){i=r},o[1^t][2].disable,o[2][2].lock),s[e[0]]=function(){return s[e[0]+"With"](this===s?a:this,arguments),this},s[e[0]+"With"]=n.fireWith}),a.promise(s),t&&t.call(s,s),s},when:function(t){function e(e,n,r){return function(t){n[e]=this,r[e]=1<arguments.length?c.call(arguments):t,r===i?l.notifyWith(n,r):--u||l.resolveWith(n,r)}}var i,n,r,o=0,a=c.call(arguments),s=a.length,u=1!==s||t&&C.isFunction(t.promise)?s:0,l=1===u?t:C.Deferred();if(1<s)for(i=new Array(s),n=new Array(s),r=new Array(s);o<s;o++)a[o]&&C.isFunction(a[o].promise)?a[o].promise().done(e(o,r,a)).fail(l.reject).progress(e(o,n,i)):--u;return u||l.resolveWith(r,a),l.promise()}}),C.fn.ready=function(t){return C.ready.promise().done(t),this},C.extend({isReady:!1,readyWait:1,holdReady:function(t){t?C.readyWait++:C.ready(!0)},ready:function(t){(!0===t?--C.readyWait:C.isReady)||((C.isReady=!0)!==t&&0<--C.readyWait||(N.resolveWith(y,[C]),C.fn.triggerHandler&&(C(y).triggerHandler("ready"),C(y).off("ready"))))}}),C.ready.promise=function(t){return N||(N=C.Deferred(),"complete"===y.readyState?setTimeout(C.ready):(y.addEventListener("DOMContentLoaded",D,!1),d.addEventListener("load",D,!1))),N.promise(t)},C.ready.promise();var L=C.access=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if("object"===C.type(n))for(s in i=!0,n)C.access(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,C.isFunction(r)||(a=!0),l&&(e=a?(e.call(t,r),null):(l=e,function(t,e,n){return l.call(C(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):o};function j(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=C.expando+Math.random()}C.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},j.uid=1,j.accepts=C.acceptData,j.prototype={key:function(e){if(!j.accepts(e))return 0;var n={},r=e[this.expando];if(!r){r=j.uid++;try{n[this.expando]={value:r},Object.defineProperties(e,n)}catch(t){n[this.expando]=r,C.extend(e,n)}}return this.cache[r]||(this.cache[r]={}),r},set:function(t,e,n){var r,i=this.key(t),o=this.cache[i];if("string"==typeof e)o[e]=n;else if(C.isEmptyObject(o))C.extend(this.cache[i],e);else for(r in e)o[r]=e[r];return o},get:function(t,e){var n=this.cache[this.key(t)];return void 0===e?n:n[e]},access:function(t,e,n){var r;return void 0===e||e&&"string"==typeof e&&void 0===n?void 0!==(r=this.get(t,e))?r:this.get(t,C.camelCase(e)):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,o=this.key(t),a=this.cache[o];if(void 0===e)this.cache[o]={};else{n=(r=C.isArray(e)?e.concat(e.map(C.camelCase)):(i=C.camelCase(e),e in a?[e,i]:(r=i)in a?[r]:r.match($)||[])).length;for(;n--;)delete a[r[n]]}},hasData:function(t){return!C.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var P=new j,q=new j,R=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,H=/([A-Z])/g;function O(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(H,"-$1").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:R.test(n)?C.parseJSON(n):n)}catch(t){}q.set(t,e,n)}else n=void 0;return n}C.extend({hasData:function(t){return q.hasData(t)||P.hasData(t)},data:function(t,e,n){return q.access(t,e,n)},removeData:function(t,e){q.remove(t,e)},_data:function(t,e,n){return P.access(t,e,n)},_removeData:function(t,e){P.remove(t,e)}}),C.fn.extend({data:function(r,t){var e,n,i,o=this[0],a=o&&o.attributes;if(void 0!==r)return"object"==typeof r?this.each(function(){q.set(this,r)}):L(this,function(e){var t,n=C.camelCase(r);if(o&&void 0===e){if(void 0!==(t=q.get(o,r)))return t;if(void 0!==(t=q.get(o,n)))return t;if(void 0!==(t=O(o,n,void 0)))return t}else this.each(function(){var t=q.get(this,n);q.set(this,n,e),-1!==r.indexOf("-")&&void 0!==t&&q.set(this,r,e)})},null,t,1<arguments.length,null,!0);if(this.length&&(i=q.get(o),1===o.nodeType&&!P.get(o,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&(0===(n=a[e].name).indexOf("data-")&&(n=C.camelCase(n.slice(5)),O(o,n,i[n])));P.set(o,"hasDataAttrs",!0)}return i},removeData:function(t){return this.each(function(){q.remove(this,t)})}}),C.extend({queue:function(t,e,n){var r;return t?(e=(e||"fx")+"queue",r=P.get(t,e),n&&(!r||C.isArray(n)?r=P.access(t,e,C.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=C.queue(t,e),r=n.length,i=n.shift(),o=C._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,function(){C.dequeue(t,e)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return P.get(t,n)||P.access(t,n,{empty:C.Callbacks("once memory").add(function(){P.remove(t,[e+"queue",n])})})}}),C.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?C.queue(this[0],e):void 0===n?this:this.each(function(){var t=C.queue(this,e,n);C._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&C.dequeue(this,e)})},dequeue:function(t){return this.each(function(){C.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--i||o.resolveWith(a,[a])}var r,i=1,o=C.Deferred(),a=this,s=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(r=P.get(a[s],t+"queueHooks"))&&r.empty&&(i++,r.empty.add(n));return n(),o.promise(e)}});function F(t,e){return t=e||t,"none"===C.css(t,"display")||!C.contains(t.ownerDocument,t)}var I,z,W=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,V=["Top","Right","Bottom","Left"],B=/^(?:checkbox|radio)$/i;I=y.createDocumentFragment().appendChild(y.createElement("div")),(z=y.createElement("input")).setAttribute("type","radio"),z.setAttribute("checked","checked"),z.setAttribute("name","t"),I.appendChild(z),m.checkClone=I.cloneNode(!0).cloneNode(!0).lastChild.checked,I.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!I.cloneNode(!0).lastChild.defaultValue;var U="undefined";m.focusinBubbles="onfocusin"in d;var G=/^key/,Y=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Q=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function J(){return!1}function K(){try{return y.activeElement}catch(t){}}C.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,p,d,g,v=P.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=C.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return typeof C!=U&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match($)||[""]).length;l--;)p=g=(s=Q.exec(t[l])||[])[1],d=(s[2]||"").split(".").sort(),p&&(f=C.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=C.event.special[p]||{},c=C.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=u[p])||((h=u[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,d,a)||e.addEventListener&&e.addEventListener(p,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),C.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,p,d,g,v=P.hasData(t)&&P.get(t);if(v&&(u=v.events)){for(l=(e=(e||"").match($)||[""]).length;l--;)if(p=g=(s=Q.exec(e[l])||[])[1],d=(s[2]||"").split(".").sort(),p){for(f=C.event.special[p]||{},h=u[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+d.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,d,v.handle)||C.removeEvent(t,p,v.handle),delete u[p])}else for(p in u)C.event.remove(t,p+e[l],n,r,!0);C.isEmptyObject(u)&&(delete v.handle,P.remove(t,"events"))}},trigger:function(t,e,n,r){var i,o,a,s,u,l,c=[n||y],f=v.call(t,"type")?t.type:t,h=v.call(t,"namespace")?t.namespace.split("."):[],p=o=n=n||y;if(3!==n.nodeType&&8!==n.nodeType&&!X.test(f+C.event.triggered)&&(0<=f.indexOf(".")&&(f=(h=f.split(".")).shift(),h.sort()),s=f.indexOf(":")<0&&"on"+f,(t=t[C.expando]?t:new C.Event(f,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:C.makeArray(e,[t]),l=C.event.special[f]||{},r||!l.trigger||!1!==l.trigger.apply(n,e))){if(!r&&!l.noBubble&&!C.isWindow(n)){for(a=l.delegateType||f,X.test(a+f)||(p=p.parentNode);p;p=p.parentNode)c.push(p),o=p;o===(n.ownerDocument||y)&&c.push(o.defaultView||o.parentWindow||d)}for(i=0;(p=c[i++])&&!t.isPropagationStopped();)t.type=1<i?a:l.bindType||f,(u=(P.get(p,"events")||{})[t.type]&&P.get(p,"handle"))&&u.apply(p,e),(u=s&&p[s])&&u.apply&&C.acceptData(p)&&(t.result=u.apply(p,e),!1===t.result&&t.preventDefault());return t.type=f,r||t.isDefaultPrevented()||l._default&&!1!==l._default.apply(c.pop(),e)||!C.acceptData(n)||s&&C.isFunction(n[f])&&!C.isWindow(n)&&((o=n[s])&&(n[s]=null),n[C.event.triggered=f](),C.event.triggered=void 0,o&&(n[s]=o)),t.result}},dispatch:function(t){t=C.event.fix(t);var e,n,r,i,o,a,s=c.call(arguments),u=(P.get(this,"events")||{})[t.type]||[],l=C.event.special[t.type]||{};if((s[0]=t).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,t)){for(a=C.event.handlers.call(this,t,u),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(r=((C.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(t.result=r)&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!==this;u=u.parentNode||this)if(!0!==u.disabled||"click"!==t.type){for(r=[],n=0;n<s;n++)void 0===r[i=(o=e[n]).selector+" "]&&(r[i]=o.needsContext?0<=C(i,this).index(u):C.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(r=(n=t.target.ownerDocument||y).documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[C.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Y.test(i)?this.mouseHooks:G.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new C.Event(o),e=r.length;e--;)t[n=r[e]]=o[n];return t.target||(t.target=y),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==K()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===K()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&C.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return C.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=C.extend(new C.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?C.event.trigger(i,null,e):C.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},C.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},C.Event=function(t,e){return this instanceof C.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Z:J):this.type=t,e&&C.extend(this,e),this.timeStamp=t&&t.timeStamp||C.now(),void(this[C.expando]=!0)):new C.Event(t,e)},C.Event.prototype={isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Z,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Z,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Z,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,i){C.event.special[t]={delegateType:i,bindType:i,handle:function(t){var e,n=t.relatedTarget,r=t.handleObj;return n&&(n===this||C.contains(this,n))||(t.type=r.origType,e=r.handler.apply(this,arguments),t.type=i),e}}}),m.focusinBubbles||C.each({focus:"focusin",blur:"focusout"},function(n,r){function i(t){C.event.simulate(r,t.target,C.event.fix(t),!0)}C.event.special[r]={setup:function(){var t=this.ownerDocument||this,e=P.access(t,r);e||t.addEventListener(n,i,!0),P.access(t,r,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=P.access(t,r)-1;e?P.access(t,r,e):(t.removeEventListener(n,i,!0),P.remove(t,r))}}}),C.fn.extend({on:function(t,e,n,r,i){var o,a;if("object"==typeof t){for(a in"string"!=typeof e&&(n=n||e,e=void 0),t)this.on(a,e,n,t[a],i);return this}if(null==n&&null==r?(r=e,n=e=void 0):null==r&&("string"==typeof e?(r=n,n=void 0):(r=n,n=e,e=void 0)),!1===r)r=J;else if(!r)return this;return 1===i&&(o=r,(r=function(t){return C().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=C.guid++)),this.each(function(){C.event.add(this,t,r,n,e)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,C(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=J),this.each(function(){C.event.remove(this,t,n,e)});for(i in t)this.off(i,e,t[i]);return this},trigger:function(t,e){return this.each(function(){C.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?C.event.trigger(t,e,n,!0):void 0}});var tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/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*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ut={option:[1,"<select multiple='multiple'>","</select>"],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 lt(t,e){return C.nodeName(t,"table")&&C.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<r;n++)P.set(t[n],"globalEval",!e||P.get(e[n],"globalEval"))}function pt(t,e){var n,r,i,o,a,s,u,l;if(1===e.nodeType){if(P.hasData(t)&&(o=P.access(t),a=P.set(e,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)C.event.add(e,i,l[i][n]);q.hasData(t)&&(s=q.access(t),u=C.extend({},s),q.set(e,u))}}function dt(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&C.nodeName(t,e)?C.merge([t],n):n}ut.optgroup=ut.option,ut.tbody=ut.tfoot=ut.colgroup=ut.caption=ut.thead,ut.th=ut.td,C.extend({clone:function(t,e,n){var r,i,o,a,s,u,l,c=t.cloneNode(!0),f=C.contains(t.ownerDocument,t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(a=dt(c),r=0,i=(o=dt(t)).length;r<i;r++)s=o[r],u=a[r],l=void 0,"input"===(l=u.nodeName.toLowerCase())&&B.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(e)if(n)for(o=o||dt(t),a=a||dt(c),r=0,i=o.length;r<i;r++)pt(o[r],a[r]);else pt(t,c);return 0<(a=dt(c,"script")).length&&ht(a,!f&&dt(t,"script")),c},buildFragment:function(t,e,n,r){for(var i,o,a,s,u,l,c=e.createDocumentFragment(),f=[],h=0,p=t.length;h<p;h++)if((i=t[h])||0===i)if("object"===C.type(i))C.merge(f,i.nodeType?[i]:i);else if(nt.test(i)){for(o=o||c.appendChild(e.createElement("div")),a=(et.exec(i)||["",""])[1].toLowerCase(),s=ut[a]||ut._default,o.innerHTML=s[1]+i.replace(tt,"<$1></$2>")+s[2],l=s[0];l--;)o=o.lastChild;C.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===C.inArray(i,r))&&(u=C.contains(i.ownerDocument,i),o=dt(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=C.event.special,a=0;void 0!==(n=t[a]);a++){if(C.acceptData(n)&&((i=n[P.expando])&&(e=P.cache[i]))){if(e.events)for(r in e.events)o[r]?C.event.remove(n,r):C.removeEvent(n,r,e.handle);P.cache[i]&&delete P.cache[i]}delete q.cache[n[q.expando]]}}}),C.fn.extend({text:function(t){return L(this,function(t){return void 0===t?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return 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){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=lt(this,t)).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?C.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||C.cleanData(dt(n)),n.parentNode&&(e&&C.contains(n.ownerDocument,n)&&ht(dt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(C.cleanData(dt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return L(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></$2>");try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(C.cleanData(dt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,C.cleanData(dt(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(n,r){n=g.apply([],n);var t,e,i,o,a,s,u=0,l=this.length,c=this,f=l-1,h=n[0],p=C.isFunction(h);if(p||1<l&&"string"==typeof h&&!m.checkClone&&it.test(h))return this.each(function(t){var e=c.eq(t);p&&(n[0]=h.call(this,t,e.html())),e.domManip(n,r)});if(l&&(e=(t=C.buildFragment(n,this[0].ownerDocument,!1,this)).firstChild,1===t.childNodes.length&&(t=e),e)){for(o=(i=C.map(dt(t,"script"),ct)).length;u<l;u++)a=t,u!==f&&(a=C.clone(a,!0,!0),o&&C.merge(i,dt(a,"script"))),r.call(this[u],a,u);if(o)for(s=i[i.length-1].ownerDocument,C.map(i,ft),u=0;u<o;u++)a=i[u],ot.test(a.type||"")&&!P.access(a,"globalEval")&&C.contains(s,a)&&(a.src?C._evalUrl&&C._evalUrl(a.src):C.globalEval(a.textContent.replace(st,"")))}return this}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){C.fn[t]=function(t){for(var e,n=[],r=C(t),i=r.length-1,o=0;o<=i;o++)e=o===i?this:this.clone(!0),C(r[o])[a](e),s.apply(n,e.get());return this.pushStack(n)}});var gt,vt={};function mt(t,e){var n,r=C(e.createElement(t)).appendTo(e.body),i=d.getDefaultComputedStyle&&(n=d.getDefaultComputedStyle(r[0]))?n.display:C.css(r[0],"display");return r.detach(),i}function yt(t){var e=y,n=vt[t];return n||("none"!==(n=mt(t,e))&&n||((e=(gt=(gt||C("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=mt(t,e),gt.detach()),vt[t]=n),n}var xt,bt,wt,Mt,Ct,kt=/^margin/,Tt=new RegExp("^("+W+")(?!px)[a-z%]+$","i"),Et=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)};function St(t,e,n){var r,i,o,a,s=t.style;return(n=n||Et(t))&&(a=n.getPropertyValue(e)||n[e]),n&&(""!==a||C.contains(t.ownerDocument,t)||(a=C.style(t,e)),Tt.test(a)&&kt.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 _t(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function Nt(){Ct.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",Ct.innerHTML="",wt.appendChild(Mt);var t=d.getComputedStyle(Ct,null);xt="1%"!==t.top,bt="4px"===t.width,wt.removeChild(Mt)}wt=y.documentElement,Mt=y.createElement("div"),(Ct=y.createElement("div")).style&&(Ct.style.backgroundClip="content-box",Ct.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===Ct.style.backgroundClip,Mt.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",Mt.appendChild(Ct),d.getComputedStyle&&C.extend(m,{pixelPosition:function(){return Nt(),xt},boxSizingReliable:function(){return null==bt&&Nt(),bt},reliableMarginRight:function(){var t,e=Ct.appendChild(y.createElement("div"));return e.style.cssText=Ct.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",Ct.style.width="1px",wt.appendChild(Mt),t=!parseFloat(d.getComputedStyle(e,null).marginRight),wt.removeChild(Mt),t}})),C.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 $t=/^(none|table(?!-c[ea]).+)/,At=new RegExp("^("+W+")(.*)$","i"),Dt=new RegExp("^([+-])=("+W+")","i"),Lt={position:"absolute",visibility:"hidden",display:"block"},jt={letterSpacing:"0",fontWeight:"400"},Pt=["Webkit","O","Moz","ms"];function qt(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),r=e,i=Pt.length;i--;)if((e=Pt[i]+n)in t)return e;return r}function Rt(t,e,n){var r=At.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function Ht(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+=C.css(t,n+V[o],!0,i)),r?("content"===n&&(a-=C.css(t,"padding"+V[o],!0,i)),"margin"!==n&&(a-=C.css(t,"border"+V[o]+"Width",!0,i))):(a+=C.css(t,"padding"+V[o],!0,i),"padding"!==n&&(a+=C.css(t,"border"+V[o]+"Width",!0,i)));return a}function Ot(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Et(t),a="border-box"===C.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(((i=St(t,e,o))<0||null==i)&&(i=t.style[e]),Tt.test(i))return i;r=a&&(m.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+Ht(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<s;a++)(r=t[a]).style&&(o[a]=P.get(r,"olddisplay"),n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&F(r)&&(o[a]=P.access(r,"olddisplay",yt(r.nodeName)))):(i=F(r),"none"===n&&i||P.set(r,"olddisplay",i?n:C.css(r,"display"))));for(a=0;a<s;a++)(r=t[a]).style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function It(t,e,n,r,i){return new It.prototype.init(t,e,n,r,i)}C.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=St(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=C.camelCase(e),u=t.style;return e=C.cssProps[s]||(C.cssProps[s]=qt(u,s)),a=C.cssHooks[e]||C.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:u[e]:("string"===(o=typeof n)&&(i=Dt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(C.css(t,e)),o="number"),void(null!=n&&n==n&&("number"!==o||C.cssNumber[s]||(n+="px"),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u[e]=n))))}},css:function(t,e,n,r){var i,o,a,s=C.camelCase(e);return e=C.cssProps[s]||(C.cssProps[s]=qt(t.style,s)),(a=C.cssHooks[e]||C.cssHooks[s])&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=St(t,e,r)),"normal"===i&&e in jt&&(i=jt[e]),""===n||n?(o=parseFloat(i),!0===n||C.isNumeric(o)?o||0:i):i}}),C.each(["height","width"],function(t,i){C.cssHooks[i]={get:function(t,e,n){return e?$t.test(C.css(t,"display"))&&0===t.offsetWidth?C.swap(t,Lt,function(){return Ot(t,i,n)}):Ot(t,i,n):void 0},set:function(t,e,n){var r=n&&Et(t);return Rt(0,e,n?Ht(t,i,n,"border-box"===C.css(t,"boxSizing",!1,r),r):0)}}}),C.cssHooks.marginRight=_t(m.reliableMarginRight,function(t,e){return e?C.swap(t,{display:"inline-block"},St,[t,"marginRight"]):void 0}),C.each({margin:"",padding:"",border:"Width"},function(i,o){C.cssHooks[i+o]={expand:function(t){for(var e=0,n={},r="string"==typeof t?t.split(" "):[t];e<4;e++)n[i+V[e]+o]=r[e]||r[e-2]||r[0];return n}},kt.test(i)||(C.cssHooks[i+o].set=Rt)}),C.fn.extend({css:function(t,e){return L(this,function(t,e,n){var r,i,o={},a=0;if(C.isArray(e)){for(r=Et(t),i=e.length;a<i;a++)o[e[a]]=C.css(t,e[a],!1,r);return o}return void 0!==n?C.style(t,e,n):C.css(t,e)},t,e,1<arguments.length)},show:function(){return Ft(this,!0)},hide:function(){return Ft(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){F(this)?C(this).show():C(this).hide()})}}),(C.Tween=It).prototype={constructor:It,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(C.cssNumber[n]?"":"px")},cur:function(){var t=It.propHooks[this.prop];return t&&t.get?t.get(this):It.propHooks._default.get(this)},run:function(t){var e,n=It.propHooks[this.prop];return this.pos=e=this.options.duration?C.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):It.propHooks._default.set(this),this}},It.prototype.init.prototype=It.prototype,It.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=C.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){C.fx.step[t.prop]?C.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[C.cssProps[t.prop]]||C.cssHooks[t.prop])?C.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},It.propHooks.scrollTop=It.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},C.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},C.fx=It.prototype.init,C.fx.step={};var zt,Wt,Vt,Bt,Ut,Gt=/^(?:toggle|show|hide)$/,Yt=new RegExp("^(?:([+-])=|)("+W+")([a-z%]*)$","i"),Xt=/queueHooks$/,Qt=[function(e,t,n){var r,i,o,a,s,u,l,c=this,f={},h=e.style,p=e.nodeType&&F(e),d=P.get(e,"fxshow");for(r in n.queue||(null==(s=C._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,C.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],l=C.css(e,"display"),"inline"===("none"===l?P.get(e,"olddisplay")||yt(e.nodeName):l)&&"none"===C.css(e,"float")&&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",c.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),t)if(i=t[r],Gt.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!d||void 0===d[r])continue;p=!0}f[r]=d&&d[r]||C.style(e,r)}else l=void 0;if(C.isEmptyObject(f))"inline"===("none"===l?yt(e.nodeName):l)&&(h.display=l);else for(r in d?"hidden"in d&&(p=d.hidden):d=P.access(e,"fxshow",{}),o&&(d.hidden=!p),p?C(e).show():c.done(function(){C(e).hide()}),c.done(function(){var t;for(t in P.remove(e,"fxshow"),f)C.style(e,t,f[t])}),f)a=te(p?d[r]:0,r,c),r in d||(d[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],Zt={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=Yt.exec(e),o=i&&i[3]||(C.cssNumber[t]?"":"px"),a=(C.cssNumber[t]||"px"!==o&&+r)&&Yt.exec(C.css(n.elem,t)),s=1,u=20;if(a&&a[3]!==o)for(o=o||a[3],i=i||[],a=+r||1;a/=s=s||".5",C.style(n.elem,t,a+o),s!==(s=n.cur()/r)&&1!==s&&--u;);return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Jt(){return setTimeout(function(){zt=void 0}),zt=C.now()}function Kt(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=V[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function te(t,e,n){for(var r,i=(Zt[e]||[]).concat(Zt["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function ee(o,t,e){var n,a,r=0,i=Qt.length,s=C.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var t=zt||Jt(),e=Math.max(0,l.startTime+l.duration-t),n=1-(e/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,e]),n<1&&i?e:(s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{}},e),originalProperties:t,originalOptions:e,startTime:zt||Jt(),duration:e.duration,tweens:[],createTween:function(t,e){var n=C.Tween(o,l.opts,t,e,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(n),n},stop:function(t){var e=0,n=t?l.tweens.length:0;if(a)return this;for(a=!0;e<n;e++)l.tweens[e].run(1);return t?s.resolveWith(o,[l,t]):s.rejectWith(o,[l,t]),this}}),c=l.props;for(function(t,e){var n,r,i,o,a;for(n in t)if(i=e[r=C.camelCase(n)],o=t[n],C.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=C.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=Qt[r].call(l,o,c,l.opts))return n;return C.map(c,te,l),C.isFunction(l.opts.start)&&l.opts.start.call(o,l),C.fx.timer(C.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}C.Animation=C.extend(ee,{tweener:function(t,e){for(var n,r=0,i=(t=C.isFunction(t)?(e=t,["*"]):t.split(" ")).length;r<i;r++)n=t[r],Zt[n]=Zt[n]||[],Zt[n].unshift(e)},prefilter:function(t,e){e?Qt.unshift(t):Qt.push(t)}}),C.speed=function(t,e,n){var r=t&&"object"==typeof t?C.extend({},t):{complete:n||!n&&e||C.isFunction(t)&&t,duration:t,easing:n&&e||e&&!C.isFunction(e)&&e};return r.duration=C.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in C.fx.speeds?C.fx.speeds[r.duration]:C.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){C.isFunction(r.old)&&r.old.call(this),r.queue&&C.dequeue(this,r.queue)},r},C.fn.extend({fadeTo:function(t,e,n,r){return this.filter(F).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(e,t,n,r){function i(){var t=ee(this,C.extend({},e),a);(o||P.get(this,"finish"))&&t.stop(!0)}var o=C.isEmptyObject(e),a=C.speed(t,n,r);return i.finish=i,o||!1===a.queue?this.each(i):this.queue(a.queue,i)},stop:function(i,t,o){function a(t){var e=t.stop;delete t.stop,e(o)}return"string"!=typeof i&&(o=t,t=i,i=void 0),t&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var t=!0,e=null!=i&&i+"queueHooks",n=C.timers,r=P.get(this);if(e)r[e]&&r[e].stop&&a(r[e]);else for(e in r)r[e]&&r[e].stop&&Xt.test(e)&&a(r[e]);for(e=n.length;e--;)n[e].elem!==this||null!=i&&n[e].queue!==i||(n[e].anim.stop(o),t=!1,n.splice(e,1));!t&&o||C.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=P.get(this),n=e[a+"queue"],r=e[a+"queueHooks"],i=C.timers,o=n?n.length:0;for(e.finish=!0,C.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===a&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),C.each(["toggle","show","hide"],function(t,r){var i=C.fn[r];C.fn[r]=function(t,e,n){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(Kt(r,!0),t,e,n)}}),C.each({slideDown:Kt("show"),slideUp:Kt("hide"),slideToggle:Kt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,r){C.fn[t]=function(t,e,n){return this.animate(r,t,e,n)}}),C.timers=[],C.fx.tick=function(){var t,e=0,n=C.timers;for(zt=C.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||C.fx.stop(),zt=void 0},C.fx.timer=function(t){C.timers.push(t),t()?C.fx.start():C.timers.pop()},C.fx.interval=13,C.fx.start=function(){Wt=Wt||setInterval(C.fx.tick,C.fx.interval)},C.fx.stop=function(){clearInterval(Wt),Wt=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(r,t){return r=C.fx&&C.fx.speeds[r]||r,t=t||"fx",this.queue(t,function(t,e){var n=setTimeout(t,r);e.stop=function(){clearTimeout(n)}})},Vt=y.createElement("input"),Bt=y.createElement("select"),Ut=Bt.appendChild(y.createElement("option")),Vt.type="checkbox",m.checkOn=""!==Vt.value,m.optSelected=Ut.selected,Bt.disabled=!0,m.optDisabled=!Ut.disabled,(Vt=y.createElement("input")).value="t",Vt.type="radio",m.radioValue="t"===Vt.value;var ne,re=C.expr.attrHandle;C.fn.extend({attr:function(t,e){return L(this,C.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){C.removeAttr(this,t)})}}),C.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute==U?C.prop(t,e,n):(1===o&&C.isXMLDoc(t)||(e=e.toLowerCase(),r=C.attrHooks[e]||(C.expr.match.bool.test(e)?ne:void 0)),void 0===n?r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=C.find.attr(t,e))?void 0:i:null!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):void C.removeAttr(t,e))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match($);if(o&&1===t.nodeType)for(;n=o[i++];)r=C.propFix[n]||n,C.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&C.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),ne={set:function(t,e,n){return!1===e?C.removeAttr(t,n):t.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(t,e){var o=re[e]||C.find.attr;re[e]=function(t,e,n){var r,i;return n||(i=re[e],re[e]=r,r=null!=o(t,e,n)?e.toLowerCase():null,re[e]=i),r}});var ie=/^(?:input|select|textarea|button)$/i;C.fn.extend({prop:function(t,e){return L(this,C.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[C.propFix[t]||t]})}}),C.extend({propFix:{for:"htmlFor",class:"className"},prop:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return(1!==o||!C.isXMLDoc(t))&&(e=C.propFix[e]||e,i=C.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||ie.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),m.optSelected||(C.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this});var oe=/[\t\r\n\f]/g;C.fn.extend({addClass:function(e){var t,n,r,i,o,a,s="string"==typeof e&&e,u=0,l=this.length;if(C.isFunction(e))return this.each(function(t){C(this).addClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match($)||[];u<l;u++)if(r=1===(n=this[u]).nodeType&&(n.className?(" "+n.className+" ").replace(oe," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=C.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,i,o,a,s=0===arguments.length||"string"==typeof e&&e,u=0,l=this.length;if(C.isFunction(e))return this.each(function(t){C(this).removeClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match($)||[];u<l;u++)if(r=1===(n=this[u]).nodeType&&(n.className?(" "+n.className+" ").replace(oe," "):"")){for(o=0;i=t[o++];)for(;0<=r.indexOf(" "+i+" ");)r=r.replace(" "+i+" "," ");a=e?C.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(i,e){var o=typeof i;return"boolean"==typeof e&&"string"==o?e?this.addClass(i):this.removeClass(i):this.each(C.isFunction(i)?function(t){C(this).toggleClass(i.call(this,t,this.className,e),e)}:function(){if("string"==o)for(var t,e=0,n=C(this),r=i.match($)||[];t=r[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else o!=U&&"boolean"!=o||(this.className&&P.set(this,"__className__",this.className),this.className=!this.className&&!1!==i&&P.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&0<=(" "+this[n].className+" ").replace(oe," ").indexOf(e))return!0;return!1}});var ae=/\r/g;C.fn.extend({val:function(n){var r,t,i,e=this[0];return arguments.length?(i=C.isFunction(n),this.each(function(t){var e;1===this.nodeType&&(null==(e=i?n.call(this,t,C(this).val()):n)?e="":"number"==typeof e?e+="":C.isArray(e)&&(e=C.map(e,function(t){return null==t?"":t+""})),(r=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,e,"value")||(this.value=e))})):e?(r=C.valHooks[e.type]||C.valHooks[e.nodeName.toLowerCase()])&&"get"in r&&void 0!==(t=r.get(e,"value"))?t:"string"==typeof(t=e.value)?t.replace(ae,""):null==t?"":t:void 0}}),C.extend({valHooks:{option:{get:function(t){var e=C.find.attr(t,"value");return null!=e?e:C.trim(C.text(t))}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(!(!(n=r[u]).selected&&u!==i||(m.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&C.nodeName(n.parentNode,"optgroup"))){if(e=C(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=C.makeArray(e),a=i.length;a--;)((r=i[a]).selected=0<=C.inArray(r.value,o))&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(t,e){return C.isArray(e)?t.checked=0<=C.inArray(C(t).val(),e):void 0}},m.checkOn||(C.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),C.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,n){C.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),C.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var se=C.now(),ue=/\?/;C.parseJSON=function(t){return JSON.parse(t+"")},C.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+t),e};var le,ce,fe=/#.*$/,he=/([?&])_=[^&]*/,pe=/^(.*?):[ \t]*([^\r\n]*)$/gm,de=/^(?:GET|HEAD)$/,ge=/^\/\//,ve=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,me={},ye={},xe="*/".concat("*");try{ce=location.href}catch(t){(ce=y.createElement("a")).href="",ce=ce.href}function be(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,r=0,i=t.toLowerCase().match($)||[];if(C.isFunction(e))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(e)):(o[n]=o[n]||[]).push(e)}}function we(e,i,o,a){var s={},u=e===ye;function l(t){var r;return s[t]=!0,C.each(e[t]||[],function(t,e){var n=e(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Me(t,e){var n,r,i=C.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r=r||{})[n]=e[n]);return r&&C.extend(!0,t,r),t}le=ve.exec(ce.toLowerCase())||[],C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ce,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(le[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":C.parseJSON,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Me(Me(t,C.ajaxSettings),e):Me(C.ajaxSettings,t)},ajaxPrefilter:be(me),ajaxTransport:be(ye),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var c,f,h,n,p,r,d,i,g=C.ajaxSetup({},e),v=g.context||g,m=g.context&&(v.nodeType||v.jquery)?C(v):C.event,y=C.Deferred(),x=C.Callbacks("once memory"),b=g.statusCode||{},o={},a={},w=0,s="canceled",M={readyState:0,getResponseHeader:function(t){var e;if(2===w){if(!n)for(n={};e=pe.exec(h);)n[e[1].toLowerCase()]=e[2];e=n[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===w?h:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return w||(t=a[n]=a[n]||t,o[t]=e),this},overrideMimeType:function(t){return w||(g.mimeType=t),this},statusCode:function(t){var e;if(t)if(w<2)for(e in t)b[e]=[b[e],t[e]];else M.always(t[M.status]);return this},abort:function(t){var e=t||s;return c&&c.abort(e),u(0,e),this}};if(y.promise(M).complete=x.add,M.success=M.done,M.error=M.fail,g.url=((t||g.url||ce)+"").replace(fe,"").replace(ge,le[1]+"//"),g.type=e.method||e.type||g.method||g.type,g.dataTypes=C.trim(g.dataType||"*").toLowerCase().match($)||[""],null==g.crossDomain&&(r=ve.exec(g.url.toLowerCase()),g.crossDomain=!(!r||r[1]===le[1]&&r[2]===le[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(le[3]||("http:"===le[1]?"80":"443")))),g.data&&g.processData&&"string"!=typeof g.data&&(g.data=C.param(g.data,g.traditional)),we(me,g,e,M),2===w)return M;for(i in(d=g.global)&&0==C.active++&&C.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!de.test(g.type),f=g.url,g.hasContent||(g.data&&(f=g.url+=(ue.test(f)?"&":"?")+g.data,delete g.data),!1===g.cache&&(g.url=he.test(f)?f.replace(he,"$1_="+se++):f+(ue.test(f)?"&":"?")+"_="+se++)),g.ifModified&&(C.lastModified[f]&&M.setRequestHeader("If-Modified-Since",C.lastModified[f]),C.etag[f]&&M.setRequestHeader("If-None-Match",C.etag[f])),(g.data&&g.hasContent&&!1!==g.contentType||e.contentType)&&M.setRequestHeader("Content-Type",g.contentType),M.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+xe+"; q=0.01":""):g.accepts["*"]),g.headers)M.setRequestHeader(i,g.headers[i]);if(g.beforeSend&&(!1===g.beforeSend.call(v,M,g)||2===w))return M.abort();for(i in s="abort",{success:1,error:1,complete:1})M[i](g[i]);if(c=we(ye,g,e,M)){M.readyState=1,d&&m.trigger("ajaxSend",[M,g]),g.async&&0<g.timeout&&(p=setTimeout(function(){M.abort("timeout")},g.timeout));try{w=1,c.send(o,u)}catch(t){if(!(w<2))throw t;u(-1,t)}}else u(-1,"No Transport");function u(t,e,n,r){var i,o,a,s,u,l=e;2!==w&&(w=2,p&&clearTimeout(p),c=void 0,h=r||"",M.readyState=0<t?4:0,i=200<=t&&t<300||304===t,n&&(s=function(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a=a||i}o=o||a}return o?(o!==u[0]&&u.unshift(o),n[o]):void 0}(g,M,n)),s=function(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(g,s,M,i),i?(g.ifModified&&((u=M.getResponseHeader("Last-Modified"))&&(C.lastModified[f]=u),(u=M.getResponseHeader("etag"))&&(C.etag[f]=u)),204===t||"HEAD"===g.type?l="nocontent":304===t?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!t&&l||(l="error",t<0&&(t=0))),M.status=t,M.statusText=(e||l)+"",i?y.resolveWith(v,[o,l,M]):y.rejectWith(v,[M,l,a]),M.statusCode(b),b=void 0,d&&m.trigger(i?"ajaxSuccess":"ajaxError",[M,g,i?o:a]),x.fireWith(v,[M,l]),d&&(m.trigger("ajaxComplete",[M,g]),--C.active||C.event.trigger("ajaxStop")))}return M},getJSON:function(t,e,n){return C.get(t,e,n,"json")},getScript:function(t,e){return C.get(t,void 0,e,"script")}}),C.each(["get","post"],function(t,i){C[i]=function(t,e,n,r){return C.isFunction(e)&&(r=r||n,n=e,e=void 0),C.ajax({url:t,type:i,dataType:r,data:e,success:n})}}),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C._evalUrl=function(t){return C.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},C.fn.extend({wrapAll:function(e){var t;return C.isFunction(e)?this.each(function(t){C(this).wrapAll(e.call(this,t))}):(this[0]&&(t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(n){return this.each(C.isFunction(n)?function(t){C(this).wrapInner(n.call(this,t))}:function(){var t=C(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=C.isFunction(e);return this.each(function(t){C(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){C.nodeName(this,"body")||C(this).replaceWith(this.childNodes)}).end()}}),C.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},C.expr.filters.visible=function(t){return!C.expr.filters.hidden(t)};var Ce=/%20/g,ke=/\[\]$/,Te=/\r?\n/g,Ee=/^(?:submit|button|image|reset|file)$/i,Se=/^(?:input|select|textarea|keygen)/i;C.param=function(t,e){function n(t,e){e=C.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)}var r,i=[];if(void 0===e&&(e=C.ajaxSettings&&C.ajaxSettings.traditional),C.isArray(t)||t.jquery&&!C.isPlainObject(t))C.each(t,function(){n(this.name,this.value)});else for(r in t)!function n(r,t,i,o){var e;if(C.isArray(t))C.each(t,function(t,e){i||ke.test(r)?o(r,e):n(r+"["+("object"==typeof e?t:"")+"]",e,i,o)});else if(i||"object"!==C.type(t))o(r,t);else for(e in t)n(r+"["+e+"]",t[e],i,o)}(r,t[r],e,n);return i.join("&").replace(Ce,"+")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=C.prop(this,"elements");return t?C.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!C(this).is(":disabled")&&Se.test(this.nodeName)&&!Ee.test(t)&&(this.checked||!B.test(t))}).map(function(t,e){var n=C(this).val();return null==n?null:C.isArray(n)?C.map(n,function(t){return{name:e.name,value:t.replace(Te,"\r\n")}}):{name:e.name,value:n.replace(Te,"\r\n")}}).get()}}),C.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var _e=0,Ne={},$e={0:200,1223:204},Ae=C.ajaxSettings.xhr();d.ActiveXObject&&C(d).on("unload",function(){for(var t in Ne)Ne[t]()}),m.cors=!!Ae&&"withCredentials"in Ae,m.ajax=Ae=!!Ae,C.ajaxTransport(function(o){var a;return m.cors||Ae&&!o.crossDomain?{send:function(t,e){var n,r=o.xhr(),i=++_e;if(r.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)r[n]=o.xhrFields[n];for(n in o.mimeType&&r.overrideMimeType&&r.overrideMimeType(o.mimeType),o.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)r.setRequestHeader(n,t[n]);a=function(t){return function(){a&&(delete Ne[i],a=r.onload=r.onerror=null,"abort"===t?r.abort():"error"===t?e(r.status,r.statusText):e($e[r.status]||r.status,r.statusText,"string"==typeof r.responseText?{text:r.responseText}:void 0,r.getAllResponseHeaders()))}},r.onload=a(),r.onerror=a("error"),a=Ne[i]=a("abort");try{r.send(o.hasContent&&o.data||null)}catch(t){if(a)throw t}},abort:function(){a&&a()}}:void 0}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return C.globalEval(t),t}}}),C.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),C.ajaxTransport("script",function(n){var r,i;if(n.crossDomain)return{send:function(t,e){r=C("<script>").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 De=[],Le=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=De.pop()||C.expando+"_"+se++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,o,a=!1!==t.jsonp&&(Le.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Le.test(t.data)&&"data");return a||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=C.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Le,"$1"+r):!1!==t.jsonp&&(t.url+=(ue.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||C.error(r+" was not called"),o[0]},t.dataTypes[0]="json",i=d[r],d[r]=function(){o=arguments},n.always(function(){d[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,De.push(r)),o&&C.isFunction(i)&&i(o[0]),o=i=void 0}),"script"):void 0}),C.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||y;var r=b.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=C.buildFragment([t],e,i),i&&i.length&&C(i).remove(),C.merge([],r.childNodes))};var je=C.fn.load;C.fn.load=function(t,e,n){if("string"!=typeof t&&je)return je.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return 0<=s&&(r=C.trim(t.slice(s)),t=t.slice(0,s)),C.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),0<a.length&&C.ajax({url:t,type:i,dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?C("<div>").append(C.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){a.each(n,o||[t.responseText,e,t])}),this},C.expr.filters.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length};var Pe=d.document.documentElement;function qe(t){return C.isWindow(t)?t:9===t.nodeType&&t.defaultView}C.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l=C.css(t,"position"),c=C(t),f={};"static"===l&&(t.style.position="relative"),s=c.offset(),o=C.css(t,"top"),u=C.css(t,"left"),i=("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,r.left):(a=parseFloat(o)||0,parseFloat(u)||0),C.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)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?(t=o.documentElement,C.contains(t,r)?(typeof r.getBoundingClientRect!=U&&(i=r.getBoundingClientRect()),n=qe(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"===C.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),C.nodeName(t[0],"html")||(r=t.offset()),r.top+=C.css(t[0],"borderTopWidth",!0),r.left+=C.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-C.css(n,"marginTop",!0),left:e.left-r.left-C.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Pe;t&&!C.nodeName(t,"html")&&"static"===C.css(t,"position");)t=t.offsetParent;return t||Pe})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var o="pageYOffset"===i;C.fn[e]=function(t){return L(this,function(t,e,n){var r=qe(t);return void 0===n?r?r[i]:t[e]:void(r?r.scrollTo(o?d.pageXOffset:n,o?n:d.pageYOffset):t[e]=n)},e,t,arguments.length,null)}}),C.each(["top","left"],function(t,n){C.cssHooks[n]=_t(m.pixelPosition,function(t,e){return e?(e=St(t,n),Tt.test(e)?C(t).position()[n]+"px":e):void 0})}),C.each({Height:"height",Width:"width"},function(o,a){C.each({padding:"inner"+o,content:a,"":"outer"+o},function(r,t){C.fn[t]=function(t,e){var n=arguments.length&&(r||"boolean"!=typeof t),i=r||(!0===t||!0===e?"margin":"border");return L(this,function(t,e,n){var r;return C.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?C.css(t,e,i):C.style(t,e,n,i)},a,n?t:void 0,n,null)}})}),C.fn.size=function(){return this.length},C.fn.andSelf=C.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return C});var Re=d.jQuery,He=d.$;return C.noConflict=function(t){return d.$===C&&(d.$=He),t&&d.jQuery===C&&(d.jQuery=Re),C},typeof t==U&&(d.jQuery=d.$=C),C}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");var GV;function initTableSorter(){$.tablesorter.addParser({id:"star_scores",is:function(){return!1},format:function(t,e,n,r){var i=$(n);return 1===r&&i.attr("data-score")||t},parsed:!1,type:"numeric"}),$("table").tablesorter({headers:{1:{sorter:"star_scores"}},sortList:[[0,0]]})}!function(r){"use strict";r.fn.emulateTransitionEnd=function(t){var e=!1,n=this;r(this).one("bsTransitionEnd",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}(),r.support.transition&&(r.event.special.bsTransitionEnd={bindType:r.support.transition.end,delegateType:r.support.transition.end,handle:function(t){return r(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(o){"use strict";function r(t){o(t).on("click",e,this.close)}var e='[data-dismiss="alert"]';r.VERSION="3.2.0",r.prototype.close=function(t){function e(){i.detach().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("bsTransitionEnd",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";function n(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)})}var i=function(t,e){this.$element=o(t),this.options=o.extend({},i.DEFAULTS,e),this.isLoading=!1};i.VERSION="3.2.0",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",null==i.resetText&&n.data("resetText",n[r]()),n[r](null==i[t]?this.options[t]:i[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,e=!0,n=this.$element.closest('[data-toggle="buttons"]');n.length&&("radio"==(t=this.$element.find("input")).prop("type")&&(t.prop("checked")&&this.$element.hasClass("active")?e=!1:n.find(".active").removeClass("active")),e&&t.prop("checked",!this.$element.hasClass("active")).trigger("change")),e&&this.$element.toggleClass("active")};var t=o.fn.button;o.fn.button=n,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")),n.call(e,"toggle"),t.preventDefault()})}(jQuery),function(h){"use strict";function a(i){return this.each(function(){var t=h(this),e=t.data("bs.carousel"),n=h.extend({},o.DEFAULTS,t.data(),"object"==typeof i&&i),r="string"==typeof i?i:n.slide;e||t.data("bs.carousel",e=new o(this,n)),"number"==typeof i?e.to(i):r?e[r]():n.interval&&e.pause().cycle()})}function o(t,e){this.$element=h(t).on("keydown.bs.carousel",h.proxy(this.keydown,this)),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.bs.carousel",h.proxy(this.pause,this)).on("mouseleave.bs.carousel",h.proxy(this.cycle,this))}o.VERSION="3.2.0",o.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},o.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()},o.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(h.proxy(this.next,this),this.options.interval)),this},o.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},o.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));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<t?"next":"prev",h(this.$items[t]))},o.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&h.support.transition&&(this.$element.trigger(h.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},o.prototype.next=function(){return this.sliding?void 0:this.slide("next")},o.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},o.prototype.slide=function(t,e){var n=this.$element.find(".item.active"),r=e||n[t](),i=this.interval,o="next"==t?"left":"right",a="next"==t?"first":"last",s=this;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[a]()}if(r.hasClass("active"))return this.sliding=!1;var u,l=r[0],c=h.Event("slide.bs.carousel",{relatedTarget:l,direction:o});if(this.$element.trigger(c),!c.isDefaultPrevented()){this.sliding=!0,i&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),(u=h(this.$indicators.children()[this.getItemIndex(r)]))&&u.addClass("active"));var f=h.Event("slid.bs.carousel",{relatedTarget:l,direction:o});return h.support.transition&&this.$element.hasClass("slide")?(r.addClass(t),r[0].offsetWidth,n.addClass(o),r.addClass(o),n.one("bsTransitionEnd",function(){r.removeClass([t,o].join(" ")).addClass("active"),n.removeClass(["active",o].join(" ")),s.sliding=!1,setTimeout(function(){s.$element.trigger(f)},0)}).emulateTransitionEnd(1e3*n.css("transition-duration").slice(0,-1))):(n.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(f)),i&&this.cycle(),this}};var t=h.fn.carousel;h.fn.carousel=a,h.fn.carousel.Constructor=o,h.fn.carousel.noConflict=function(){return h.fn.carousel=t,this},h(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var e,n,r,i=h(this),o=h(i.attr("data-target")||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""));o.hasClass("carousel")&&(n=h.extend({},o.data(),i.data()),(r=i.attr("data-slide-to"))&&(n.interval=!1),a.call(o,n),r&&o.data("bs.carousel").to(r),t.preventDefault())}),h(window).on("load",function(){h('[data-ride="carousel"]').each(function(){var t=h(this);a.call(t,t.data())})})}(jQuery),function(l){"use strict";function c(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]()})}var i=function(t,e){this.$element=l(t),this.options=l.extend({},i.DEFAULTS,e),this.transitioning=null,this.options.parent&&(this.$parent=l(this.options.parent)),this.options.toggle&&this.toggle()};i.VERSION="3.2.0",i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=l.Event("show.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.$parent&&this.$parent.find("> .panel > .in");if(e&&e.length){var n=e.data("bs.collapse");if(n&&n.transitioning)return;c.call(e,"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](""),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("bsTransitionEnd",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("bsTransitionEnd",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=c,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")),c.call(i,a)})}(jQuery),function(s){"use strict";function o(n){n&&3===n.which||(s(".dropdown-backdrop").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()}function r(t){s(t).on("click.bs.dropdown",this.toggle)}var l='[data-toggle="dropdown"]';r.VERSION="3.2.0",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('<div class="dropdown-backdrop"/>').insertAfter(s(this)).on("click",o);var i={relatedTarget:this};if(n.trigger(t=s.Event("show.bs.dropdown",i)),t.isDefaultPrevented())return;e.trigger("focus"),n.toggleClass("open").trigger("shown.bs.dropdown",i)}return!1}},r.prototype.keydown=function(t){if(/(38|40|27)/.test(t.keyCode)){var e=s(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=u(e),r=n.hasClass("open");if(!r||r&&27==t.keyCode)return 27==t.which&&n.find(l).trigger("focus"),e.trigger("click");var i,o=" li:not(.divider):visible a",a=n.find('[role="menu"]'+o+', [role="listbox"]'+o);a.length&&(i=a.index(a.filter(":focus")),38==t.keyCode&&0<i&&i--,40==t.keyCode&&i<a.length-1&&i++,~i||(i=0),a.eq(i).trigger("focus"))}}};var t=s.fn.dropdown;s.fn.dropdown=function(n){return this.each(function(){var t=s(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new r(this)),"string"==typeof n&&e[n].call(t)})},s.fn.dropdown.Constructor=r,s.fn.dropdown.noConflict=function(){return s.fn.dropdown=t,this},s(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",l,r.prototype.toggle).on("keydown.bs.dropdown.data-api",l+', [role="menu"], [role="listbox"]',r.prototype.keydown)}(jQuery),function(o){"use strict";function a(r,i){return this.each(function(){var t=o(this),e=t.data("bs.modal"),n=o.extend({},s.DEFAULTS,t.data(),"object"==typeof r&&r);e||t.data("bs.modal",e=new s(this,n)),"string"==typeof r?e[r](i):n.show&&e.show(i)})}function s(t,e){this.options=e,this.$body=o(document.body),this.$element=o(t),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,o.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}s.VERSION="3.2.0",s.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},s.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},s.prototype.show=function(n){var r=this,t=o.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',o.proxy(this.hide,this)),this.backdrop(function(){var t=o.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),t&&r.$element[0].offsetWidth,r.$element.addClass("in").attr("aria-hidden",!1),r.enforceFocus();var e=o.Event("shown.bs.modal",{relatedTarget:n});t?r.$element.find(".modal-dialog").one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(300):r.$element.trigger("focus").trigger(e)}))},s.prototype.hide=function(t){t&&t.preventDefault(),t=o.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),o(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),o.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",o.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},s.prototype.enforceFocus=function(){o(document).off("focusin.bs.modal").on("focusin.bs.modal",o.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},s.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",o.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},s.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$element.trigger("hidden.bs.modal")})},s.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},s.prototype.backdrop=function(t){var e,n=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=o.support.transition&&r;if(this.$backdrop=o('<div class="modal-backdrop '+r+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",o.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(150):t()}else{!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e=function(){n.removeBackdrop(),t&&t()},o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(150):e()):t&&t()}},s.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},s.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},s.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},s.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=o.fn.modal;o.fn.modal=a,o.fn.modal.Constructor=s,o.fn.modal.noConflict=function(){return o.fn.modal=t,this},o(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=o(this),n=e.attr("href"),r=o(e.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),i=r.data("bs.modal")?"toggle":o.extend({remote:!/#/.test(n)&&n},r.data(),e.data());e.is("a")&&t.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),a.call(r,i,this)})}(jQuery),function(v){"use strict";function i(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)}i.VERSION="3.2.0",i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(t,e,n){this.enabled=!0,this.type=t,this.$element=v(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&v(this.options.viewport.selector||this.options.viewport);for(var r=this.options.trigger.split(" "),i=r.length;i--;){var o,a,s=r[i];"click"==s?this.$element.on("click."+this.type,this.options.selector,v.proxy(this.toggle,this)):"manual"!=s&&(o="hover"==s?"mouseenter":"focusin",a="hover"==s?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,v.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,v.proxy(this.leave,this)))}this.options.selector?this._options=v.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(t){return(t=v.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},i.prototype.getDelegateOptions=function(){var n={},r=this.getDefaults();return this._options&&v.each(this._options,function(t,e){r[t]!=e&&(n[t]=e)}),n},i.prototype.enter=function(t){var e=t instanceof this.constructor?t:v(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),v(t.currentTarget).data("bs."+this.type,e)),clearTimeout(e.timeout),e.hoverState="in",e.options.delay&&e.options.delay.show?void(e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)):e.show()},i.prototype.leave=function(t){var e=t instanceof this.constructor?t:v(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),v(t.currentTarget).data("bs."+this.type,e)),clearTimeout(e.timeout),e.hoverState="out",e.options.delay&&e.options.delay.hide?void(e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)):e.hide()},i.prototype.show=function(){var t=v.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=v.contains(document.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var n=this,r=this.tip(),i=this.getUID(this.type);this.setContent(),r.attr("id",i),this.$element.attr("aria-describedby",i),this.options.animation&&r.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,s=a.test(o);s&&(o=o.replace(a,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var u,l,c,f=this.getPosition(),h=r[0].offsetWidth,p=r[0].offsetHeight;s&&(u=o,l=this.$element.parent(),c=this.getPosition(l),o="bottom"==o&&f.top+f.height+p-c.scroll>c.height?"top":"top"==o&&f.top-c.scroll-p<0?"bottom":"right"==o&&f.right+h>c.width?"left":"left"==o&&f.left-h<c.left?"right":o,r.removeClass(u).addClass(o));var d=this.getCalculatedOffset(o,f,h,p);this.applyPlacement(d,o);var g=function(){n.$element.trigger("shown.bs."+n.type),n.hoverState=null};v.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",g).emulateTransitionEnd(150):g()}},i.prototype.applyPlacement=function(t,e){var n=this.tip(),r=n[0].offsetWidth,i=n[0].offsetHeight,o=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(a)&&(a=0),t.top=t.top+o,t.left=t.left+a,v.offset.setOffset(n[0],v.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),n.addClass("in");var s=n[0].offsetWidth,u=n[0].offsetHeight;"top"==e&&u!=i&&(t.top=t.top+i-u);var l=this.getViewportAdjustedDelta(e,t,s,u);l.left?t.left+=l.left:t.top+=l.top;var c=l.left?2*l.left-r+s:2*l.top-i+u,f=l.left?"left":"top",h=l.left?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(c,n[0][h],f)},i.prototype.replaceArrow=function(t,e,n){this.arrow().css(n,t?50*(1-t/e)+"%":"")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(){function t(){"in"!=e.hoverState&&n.detach(),e.$element.trigger("hidden.bs."+e.type)}var e=this,n=this.tip(),r=v.Event("hide.bs."+this.type);return this.$element.removeAttr("aria-describedby"),this.$element.trigger(r),r.isDefaultPrevented()?void 0:(n.removeClass("in"),v.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",t).emulateTransitionEnd(150):t(),this.hoverState=null,this)},i.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],n="BODY"==e.tagName;return v.extend({},"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():null,{scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop(),width:n?v(window).width():t.outerWidth(),height:n?v(window).height():t.outerHeight()},n?{top:0,left:0}:t.offset())},i.prototype.getCalculatedOffset=function(t,e,n,r){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-r,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-r/2,left:e.left-n}:{top:e.top+e.height/2-r/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,n,r){var i={top:0,left:0};if(!this.$viewport)return i;var o,a,s,u,l=this.options.viewport&&this.options.viewport.padding||0,c=this.getPosition(this.$viewport);return/right|left/.test(t)?(o=e.top-l-c.scroll,a=e.top+l-c.scroll+r,o<c.top?i.top=c.top-o:a>c.top+c.height&&(i.top=c.top+c.height-a)):(s=e.left-l,u=e.left+l+n,s<c.left?i.left=c.left-s:u>c.width&&(i.left=c.left+c.width-u)),i},i.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},i.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},i.prototype.tip=function(){return this.$tip=this.$tip||v(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(t){var e=this;t&&((e=v(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),v(t.currentTarget).data("bs."+this.type,e))),e.tip().hasClass("in")?e.leave(e):e.enter(e)},i.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var t=v.fn.tooltip;v.fn.tooltip=function(r){return this.each(function(){var t=v(this),e=t.data("bs.tooltip"),n="object"==typeof r&&r;!e&&"destroy"==r||(e||t.data("bs.tooltip",e=new i(this,n)),"string"==typeof r&&e[r]())})},v.fn.tooltip.Constructor=i,v.fn.tooltip.noConflict=function(){return v.fn.tooltip=t,this}}(jQuery),function(i){"use strict";function o(t,e){this.init("popover",t,e)}if(!i.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.2.0",o.DEFAULTS=i.extend({},i.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((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").empty()[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=o.proxy(this.process,this);this.$body=o("body"),this.$scrollElement=o(o(t).is("body")?window:t),this.options=o.extend({},i.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",n),this.refresh(),this.process()}function e(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]()})}i.VERSION="3.2.0",i.DEFAULTS={offset:10},i.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},i.prototype.refresh=function(){var r="offset",i=0;o.isWindow(this.$scrollElement[0])||(r="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var t=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+i,e]]:null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},i.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),r=this.options.offset+n-this.$scrollElement.height(),i=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),r<=e)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<=i[0])return a!=(t=o[0])&&this.activate(t);for(t=i.length;t--;)a!=o[t]&&e>=i[t]&&(!i[t+1]||e<=i[t+1])&&this.activate(o[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=e,o.fn.scrollspy.Constructor=i,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=t,this},o(window).on("load.bs.scrollspy.data-api",function(){o('[data-spy="scroll"]').each(function(){var t=o(this);e.call(t,t.data())})})}(jQuery),function(a){"use strict";function e(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]()})}function r(t){this.element=a(t)}r.VERSION="3.2.0",r.prototype.show=function(){var t,e,n,r=this.element,i=r.closest("ul:not(.dropdown-menu)"),o=r.data("target");o||(o=(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),r.parent("li").hasClass("active")||(t=i.find(".active:last a")[0],e=a.Event("show.bs.tab",{relatedTarget:t}),r.trigger(e),e.isDefaultPrevented()||(n=a(o),this.activate(r.closest("li"),i),this.activate(n,n.parent(),function(){r.trigger({type:"shown.bs.tab",relatedTarget:t})})))},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("bsTransitionEnd",r).emulateTransitionEnd(150):r(),i.removeClass("in")};var t=a.fn.tab;a.fn.tab=e,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(),e.call(a(this),"show")})}(jQuery),function(l){"use strict";function n(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]()})}var c=function(t,e){this.options=l.extend({},c.DEFAULTS,e),this.$target=l(this.options.target).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.VERSION="3.2.0",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var t=this.$target.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(){var t,e,n,r,i,o,a,s,u;this.$element.is(":visible")&&(t=l(document).height(),e=this.$target.scrollTop(),n=this.$element.offset(),i=(r=this.options.offset).top,o=r.bottom,"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element)),a=!(null!=this.unpin&&e+this.unpin<=n.top)&&(null!=o&&n.top+this.$element.height()>=t-o?"bottom":null!=i&&e<=i&&"top"),this.affixed!==a&&(null!=this.unpin&&this.$element.css("top",""),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-this.$element.height()-o}))))};var t=l.fn.affix;l.fn.affix=n,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),n.call(t,e)})})}(jQuery),function(_){_.extend({tablesorter:new function(){function w(){var t=arguments[0],e=1<arguments.length?Array.prototype.slice.call(arguments):t;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(t)?"error":/warn/i.test(t)?"warn":"log"](e):alert(e)}function M(t,e){w(t+" ("+((new Date).getTime()-e.getTime())+"ms)")}function y(t){for(var e in t)return;return 1}function C(t,e,n){if(!e)return"";var r,i=t.config,o=i.textExtraction||"",a="basic"===o?_(e).attr(i.textAttribute)||e.textContent||e.innerText||_(e).text()||"":"function"==typeof o?o(e,t,n):"function"==typeof(r=S.getColumnData(t,o,n))?r(e,t,n):e.textContent||e.innerText||_(e).text()||"";return _.trim(a)}function h(t){var e,n,r,i,o,a,s,u,l,c,f,h=t.config,p=h.$tbodies=h.$table.children("tbody:not(."+h.cssInfoBlock+")"),d=0,g="",v=p.length;if(0===v)return h.debug&&w("Warning: *Empty table!* Not building a parser cache");for(h.debug&&(f=new Date,w("Detecting parsers for each column")),e=[],n=[];d<v;){if((r=p[d].rows)[d])for(i=h.columns,o=0;o<i;o++){if(a=h.$headers.filter('[data-column="'+o+'"]:last'),s=S.getColumnData(t,h.headers,o),c=S.getParserById(S.getData(a,s,"extractor")),l=S.getParserById(S.getData(a,s,"sorter")),u="false"===S.getData(a,s,"parser"),h.empties[o]=S.getData(a,s,"empty")||h.emptyTo||(h.emptyToBottom?"bottom":"top"),h.strings[o]=S.getData(a,s,"string")||h.stringTo||"max",u&&(l=S.getParserById("no-parser")),c=c||!1,!l)t:{a=t,s=r,u=-1,l=o;for(var m=void 0,y=S.parsers.length,x=!1,b="",m=!0;""===b&&m;)s[++u]?(b=C(a,x=s[u].cells[l],l),a.config.debug&&w("Checking if value was empty on row "+u+", column: "+l+': "'+b+'"')):m=!1;for(;0<=--y;)if((m=S.parsers[y])&&"text"!==m.id&&m.is&&m.is(b,a,x)){l=m;break t}l=S.getParserById("text")}h.debug&&(g+="column:"+o+"; extractor:"+c.id+"; parser:"+l.id+"; string:"+h.strings[o]+"; empty: "+h.empties[o]+"\n"),n[o]=l,e[o]=c}d+=n.length?v:1}h.debug&&(w(g||"No parsers detected"),M("Completed detecting parsers",f)),h.parsers=n,h.extractors=e}function g(t){var e,n,r,i,o,a,s,u,l,c,f,h=t.config,p=h.$table.children("tbody"),d=h.extractors,g=h.parsers;if(h.cache={},h.totalRows=0,!g)return h.debug&&w("Warning: *Empty table!* Not building a cache");for(h.debug&&(u=new Date),h.showProcessing&&S.isProcessing(t,!0),o=0;o<p.length;o++)if(f=[],e=h.cache[o]={normalized:[]},!p.eq(o).hasClass(h.cssInfoBlock)){for(l=p[o]&&p[o].rows.length||0,r=0;r<l;++r)if(c={child:[]},s=[],(a=_(p[o].rows[r])).hasClass(h.cssChildRow)&&0!==r)n=e.normalized.length-1,e.normalized[n][h.columns].$row=e.normalized[n][h.columns].$row.add(a),a.prev().hasClass(h.cssChildRow)||a.prev().addClass(S.css.cssHasChild),c.child[n]=_.trim(a[0].textContent||a[0].innerText||a.text()||"");else{for(c.$row=a,c.order=r,i=0;i<h.columns;++i)void 0===g[i]?h.debug&&w("No parser found for cell:",a[0].cells[i],"does it have a header?"):(n=C(t,a[0].cells[i],i),n=void 0===d[i].id?n:d[i].format(n,t,a[0].cells[i],i),n="no-parser"===g[i].id?"":g[i].format(n,t,a[0].cells[i],i),s.push(h.ignoreCase&&"string"==typeof n?n.toLowerCase():n),"numeric"===(g[i].type||"").toLowerCase()&&(f[i]=Math.max(Math.abs(n)||0,f[i]||0)));s[h.columns]=c,e.normalized.push(s)}e.colMax=f,h.totalRows+=e.normalized.length}h.showProcessing&&S.isProcessing(t),h.debug&&M("Building cache for "+l+" rows",u)}function v(t,e){var n,r,i,o,a,s,u=t.config,l=u.widgetOptions,c=t.tBodies,f=[],h=u.cache;if(y(h))return u.appender?u.appender(t,f):t.isUpdating&&u.$table.trigger("updateComplete",t);for(u.debug&&(s=new Date),a=0;a<c.length;a++)if((n=_(c[a])).length&&!n.hasClass(u.cssInfoBlock)){for(i=S.processTbody(t,n,!0),r=(n=h[a].normalized).length,o=0;o<r;o++)f.push(n[o][u.columns].$row),u.appender&&(!u.pager||u.pager.removeRows&&l.pager_removeRows||u.pager.ajax)||i.append(n[o][u.columns].$row);S.processTbody(t,i,!1)}u.appender&&u.appender(t,f),u.debug&&M("Rebuilt table",s),e||u.appender||S.applyWidget(t),t.isUpdating&&u.$table.trigger("updateComplete",t)}function l(t){return/^d/i.test(t)||1===t}function c(e){var n,r,i,o,a,s,t,u=e.config;u.headerList=[],u.headerContent=[],u.debug&&(t=new Date),u.columns=S.computeColumnIndex(u.$table.children("thead, tfoot").children("tr")),o=u.cssIcon?'<i class="'+(u.cssIcon===S.css.icon?S.css.icon:u.cssIcon+" "+S.css.icon)+'"></i>':"",u.$headers=_(e).find(u.selectorHeaders).each(function(t){r=_(this),n=S.getColumnData(e,u.headers,t,!0),u.headerContent[t]=_(this).html(),a=u.headerTemplate.replace(/\{content\}/g,_(this).html()).replace(/\{icon\}/g,o),u.onRenderTemplate&&(i=u.onRenderTemplate.apply(r,[t,a]))&&"string"==typeof i&&(a=i),_(this).html('<div class="'+S.css.headerIn+'">'+a+"</div>"),u.onRenderHeader&&u.onRenderHeader.apply(r,[t]),this.column=parseInt(_(this).attr("data-column"),10),this.order=l(S.getData(r,n,"sortInitialOrder")||u.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(s=S.getData(r,n,"lockedOrder")||!1)&&!1!==s&&(this.order=this.lockedOrder=l(s)?[1,1,1]:[0,0,0]),r.addClass(S.css.header+" "+u.cssHeader),u.headerList[t]=this,r.parent().addClass(S.css.headerRow+" "+u.cssHeaderRow).attr("role","row"),u.tabIndex&&r.attr("tabindex",0)}).attr({scope:"col",role:"columnheader"}),x(e),u.debug&&(M("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),T(r.$table,e,n)}function x(n){var r,i,o,a=n.config;a.$headers.each(function(t,e){i=_(e),o=S.getColumnData(n,a.headers,t,!0),r="false"===S.getData(e,o,"sorter")||"false"===S.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 b(t){var e,n,r=t.config,i=r.sortList,o=i.length,a=S.css.sortNone+" "+r.cssNone,s=[S.css.sortAsc+" "+r.cssAsc,S.css.sortDesc+" "+r.cssDesc],u=["ascending","descending"],l=_(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<o;e++)if(2!==i[e][1]&&(t=r.$headers.not(".sorter-false").filter('[data-column="'+i[e][0]+'"]'+(1===o?":last":""))).length){for(n=0;n<t.length;n++)t[n].sortDisabled||t.eq(n).removeClass(a).addClass(s[i[e][1]]).attr("aria-sort",u[i[e][1]]);l.length&&l.filter('[data-column="'+i[e][0]+'"]').removeClass(a).addClass(s[i[e][1]])}r.$headers.not(".sorter-false").each(function(){var t=_(this),e=this.order[(this.count+1)%(r.sortReset?3:2)],e=t.text()+": "+S.language[t.hasClass(S.css.sortAsc)?"sortAsc":t.hasClass(S.css.sortDesc)?"sortDesc":"sortNone"]+S.language[0===e?"nextAsc":1===e?"nextDesc":"nextNone"];t.attr("aria-label",e)})}function k(i){var o,t,a,s,e,u,l,c,f,h,p,d=i.config,g=d.textSorter||"",v=d.sortList,m=v.length,n=i.tBodies.length;if(!d.serverSideSorting&&!y(d.cache)){for(d.debug&&(e=new Date),t=0;t<n;t++)u=d.cache[t].colMax,d.cache[t].normalized.sort(function(t,e){for(o=0;o<m&&(s=v[o][0],l=v[o][1],p=0===l,!d.sortStable||t[s]!==e[s]||1!==m);o++)if(c=/n/i.test((n=d.parsers,r=s,n&&n[r]&&n[r].type||""))&&d.strings[s]?(a="boolean"==typeof d.string[d.strings[s]]?(p?1:-1)*(d.string[d.strings[s]]?-1:1):d.strings[s]&&d.string[d.strings[s]]||0,d.numberSorter?d.numberSorter(t[s],e[s],p,u[s],i):S["sortNumeric"+(p?"Asc":"Desc")](t[s],e[s],a,u[s],s,i)):(f=p?t:e,h=p?e:t,"function"==typeof g?g(f[s],h[s],p,s,i):"object"==typeof g&&g.hasOwnProperty(s)?g[s](f[s],h[s],p,s,i):S["sortNatural"+(p?"Asc":"Desc")](t[s],e[s],s,i,d)))return c;var n,r;return t[d.columns].order-e[d.columns].order});d.debug&&M("Sorting on "+v.toString()+" and dir "+l+" time",e)}}function i(t,e){t[0].isUpdating&&t.trigger("updateComplete"),_.isFunction(e)&&e(t[0])}function T(t,e,n){var r=t[0].config.sortList;!1!==e&&!t[0].isProcessing&&r.length?t.trigger("sorton",[r,function(){i(t,n)},!0]):(i(t,n),S.applyWidget(t[0],!1))}function E(p){var f=p.config,d=f.$table;d.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(f.namespace+" ")).bind("sortReset"+f.namespace,function(t,e){t.stopPropagation(),f.sortList=[],b(p),k(p),v(p),_.isFunction(e)&&e(p)}).bind("updateAll"+f.namespace,function(t,e,n){t.stopPropagation(),p.isUpdating=!0,S.refreshWidgets(p,!0,!0),S.restoreHeaders(p),c(p),S.bindEvents(p,f.$headers,!0),E(p),m(p,e,n)}).bind("update"+f.namespace+" updateRows"+f.namespace,function(t,e,n){t.stopPropagation(),p.isUpdating=!0,x(p),m(p,e,n)}).bind("updateCell"+f.namespace,function(t,e,n,r){var i,o,a;t.stopPropagation(),p.isUpdating=!0,d.find(f.selectorRemove).remove(),o=d.find("tbody"),a=_(e),t=o.index(_.fn.closest?a.closest("tbody"):a.parents("tbody").filter(":first")),i=_.fn.closest?a.closest("tr"):a.parents("tr").filter(":first"),e=a[0],o.length&&0<=t&&(o=o.eq(t).find("tr").index(i),a=a.index(),f.cache[t].normalized[o][f.columns].$row=i,i=void 0===f.extractors[a].id?C(p,e,a):f.extractors[a].format(C(p,e,a),p,e,a),e="no-parser"===f.parsers[a].id?"":f.parsers[a].format(i,p,e,a),f.cache[t].normalized[o][a]=f.ignoreCase&&"string"==typeof e?e.toLowerCase():e,"numeric"===(f.parsers[a].type||"").toLowerCase()&&(f.cache[t].colMax[a]=Math.max(Math.abs(e)||0,f.cache[t].colMax[a]||0)),T(d,n,r))}).bind("addRows"+f.namespace,function(t,e,n,r){if(t.stopPropagation(),p.isUpdating=!0,y(f.cache))x(p),m(p,n,r);else{var i,o,a,s,u,l=(e=_(e).attr("role","row")).filter("tr").length,c=d.find("tbody").index(e.parents("tbody").filter(":first"));for(f.parsers&&f.parsers.length||h(p),t=0;t<l;t++){for(o=e[t].cells.length,u=[],s={child:[],$row:e.eq(t),order:f.cache[c].normalized.length},i=0;i<o;i++)a=void 0===f.extractors[i].id?C(p,e[t].cells[i],i):f.extractors[i].format(C(p,e[t].cells[i],i),p,e[t].cells[i],i),a="no-parser"===f.parsers[i].id?"":f.parsers[i].format(a,p,e[t].cells[i],i),u[i]=f.ignoreCase&&"string"==typeof a?a.toLowerCase():a,"numeric"===(f.parsers[i].type||"").toLowerCase()&&(f.cache[c].colMax[i]=Math.max(Math.abs(u[i])||0,f.cache[c].colMax[i]||0));u.push(s),f.cache[c].normalized.push(u)}T(d,n,r)}}).bind("updateComplete"+f.namespace,function(){p.isUpdating=!1}).bind("sorton"+f.namespace,function(t,e,n,r){var i,o,a,s,u,l,c,f,h=p.config;t.stopPropagation(),d.trigger("sortStart",this),i=e,c=p.config,f=i||c.sortList,c.sortList=[],_.each(f,function(t,e){if(u=parseInt(e[0],10),s=c.$headers.filter('[data-column="'+u+'"]:last')[0]){switch(a=(a=(""+e[1]).match(/^(1|d|s|o|n)/))?a[0]:""){case"1":case"d":a=1;break;case"s":a=l||0;break;case"o":o=s.order[(l||0)%(c.sortReset?3:2)],a=0===o?1:1===o?0:2;break;case"n":s.count+=1,a=s.order[s.count%(c.sortReset?3:2)];break;default:a=0}l=0===t?a:l,o=[u,parseInt(a,10)||0],c.sortList.push(o),a=_.inArray(o[1],s.order),s.count=0<=a?a:o[1]%(c.sortReset?3:2)}}),b(p),h.delayInit&&y(h.cache)&&g(p),d.trigger("sortBegin",this),k(p),v(p,r),d.trigger("sortEnd",this),S.applyWidget(p),_.isFunction(n)&&n(p)}).bind("appendCache"+f.namespace,function(t,e,n){t.stopPropagation(),v(p,n),_.isFunction(e)&&e(p)}).bind("updateCache"+f.namespace,function(t,e){f.parsers&&f.parsers.length||h(p),g(p),_.isFunction(e)&&e(p)}).bind("applyWidgetId"+f.namespace,function(t,e){t.stopPropagation(),S.getWidgetById(e).format(p,f,f.widgetOptions)}).bind("applyWidgets"+f.namespace,function(t,e){t.stopPropagation(),S.applyWidget(p,e)}).bind("refreshWidgets"+f.namespace,function(t,e,n){t.stopPropagation(),S.refreshWidgets(p,e,n)}).bind("destroy"+f.namespace,function(t,e,n){t.stopPropagation(),S.destroy(p,e,n)}).bind("resetToLoadState"+f.namespace,function(){S.refreshWidgets(p,!0,!0),f=_.extend(!0,S.defaults,f.originalSettings),p.hasInitialized=!1,S.setup(p,f)})}var S=this;S.version="2.17.7",S.parsers=[],S.widgets=[],S.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},S.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"},S.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"},S.log=w,S.benchmark=M,S.construct=function(e){return this.each(function(){var t=_.extend(!0,{},S.defaults,e);t.originalSettings=e,!this.hasInitialized&&S.buildTable&&"TABLE"!==this.tagName?S.buildTable(this,t):S.setup(this,t)})},S.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,o,a="",s=_(e),u=_.metadata;e.hasInitialized=!1,e.isProcessing=!0,e.config=n,_.data(e,"tablesorter",n),n.debug&&_.data(e,"startoveralltimer",new Date),n.supportsDataObject=((t=_.fn.jquery.split("."))[0]=parseInt(t[0],10),1<t[0]||1===t[0]&&4<=parseInt(t[1],10)),n.string={max:1,min:-1,emptyMin:1,emptyMax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},/tablesorter\-/.test(s.attr("class"))||(a=""!==n.theme?" tablesorter-"+n.theme:""),n.table=e,n.$table=s.addClass(S.css.table+" "+n.tableClass+a).attr("role","grid"),n.$headers=s.find(n.selectorHeaders),n.namespace=n.namespace?"."+n.namespace.replace(/\W/g,""):".tablesorter"+Math.random().toString(16).slice(2),n.$table.children().children("tr").attr("role","row"),n.$tbodies=s.children("tbody:not(."+n.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),n.$table.find("caption").length&&n.$table.attr("aria-labelledby","theCaption"),n.widgetInit={},n.textExtraction=n.$table.attr("data-text-extraction")||n.textExtraction||"basic",c(e),(r=e).config.widthFixed&&0===_(r).find("colgroup").length&&(i=_("<colgroup>"),o=_(r).width(),_(r.tBodies[0]).find("tr:first").children(":visible").each(function(){i.append(_("<col>").css("width",parseInt(_(this).width()/o*1e3,10)/10+"%"))}),_(r).prepend(i)),h(e),n.totalRows=0,n.delayInit||g(e),S.bindEvents(e,n.$headers,!0),E(e),n.supportsDataObject&&void 0!==s.data().sortlist?n.sortList=s.data().sortlist:u&&s.metadata()&&s.metadata().sortlist&&(n.sortList=s.metadata().sortlist),S.applyWidget(e,!0),0<n.sortList.length?s.trigger("sorton",[n.sortList,{},!n.initWidgets,!0]):(b(e),n.initWidgets&&S.applyWidget(e,!1)),n.showProcessing&&s.unbind("sortBegin"+n.namespace+" sortEnd"+n.namespace).bind("sortBegin"+n.namespace+" sortEnd"+n.namespace,function(t){clearTimeout(n.processTimer),S.isProcessing(e),"sortBegin"===t.type&&(n.processTimer=setTimeout(function(){S.isProcessing(e,!0)},500))}),e.hasInitialized=!0,e.isProcessing=!1,n.debug&&S.benchmark("Overall initialization time",_.data(e,"startoveralltimer")),s.trigger("tablesorter-initialized",e),"function"==typeof n.initialized&&n.initialized(e)},S.getColumnData=function(t,e,n,r){if(null!=e){var i,o=(t=_(t)[0]).config;if(e[n])return r?e[n]:e[o.$headers.index(o.$headers.filter('[data-column="'+n+'"]:last'))];for(i in e)if("string"==typeof i&&(t=r?o.$headers.eq(n).filter(i):o.$headers.filter('[data-column="'+n+'"]:last').filter(i)).length)return e[i]}},S.computeColumnIndex=function(t){for(var e,n,r,i,o,a,s,u,l,c=[],f=0,h=0;h<t.length;h++)for(i=t[h].cells,e=0;e<i.length;e++){for(n=i[e],r=_(n),o=n.parentNode.rowIndex,r.index(),a=n.rowSpan||1,s=n.colSpan||1,void 0===c[o]&&(c[o]=[]),n=0;n<c[o].length+1;n++)if(void 0===c[o][n]){u=n;break}for(f=Math.max(u,f),r.attr({"data-column":u}),n=o;n<o+a;n++)for(void 0===c[n]&&(c[n]=[]),l=c[n],r=u;r<u+s;r++)l[r]="x"}return f+1},S.isProcessing=function(t,e,n){var r=(t=_(t))[0].config,i=n||t.find("."+S.css.header);e?(void 0!==n&&0<r.sortList.length&&(i=i.filter(function(){return!this.sortDisabled&&0<=S.isValueInArray(parseFloat(_(this).attr("data-column")),r.sortList)})),t.add(i).addClass(S.css.processing+" "+r.cssProcessing)):t.add(i).removeClass(S.css.processing+" "+r.cssProcessing)},S.processTbody=function(t,e,n){if(t=_(t)[0],n)return t.isProcessing=!0,e.before('<span class="tablesorter-savemyplace"/>'),_.fn.detach?e.detach():e.remove();n=_(t).find("span.tablesorter-savemyplace"),e.insertAfter(n),n.remove(),t.isProcessing=!1},S.clearTableBody=function(t){_(t)[0].config.$tbodies.children().detach()},S.bindEvents=function(r,i,t){var o,a=(r=_(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=t.type;if(!(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=_.fn.closest?_(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:_(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&&_(this).is("."+S.css.sortDesc+",."+S.css.sortAsc)||(this.count=-1)})),o=n.column,l){if(u.sortList=[],null!==u.sortForce)for(i=u.sortForce,a=0;a<i.length;a++)i[a][0]!==o&&u.sortList.push(i[a]);if((i=n.order[n.count])<2&&(u.sortList.push([o,i]),1<n.colSpan))for(a=1;a<n.colSpan;a++)u.sortList.push([o+a,i])}else{if(u.sortAppend&&1<u.sortList.length)for(a=0;a<u.sortAppend.length;a++)0<=(s=S.isValueInArray(u.sortAppend[a][0],u.sortList))&&u.sortList.splice(s,1);if(0<=S.isValueInArray(o,u.sortList))for(a=0;a<u.sortList.length;a++)s=u.sortList[a],i=u.$headers.filter('[data-column="'+s[0]+'"]:last')[0],s[0]===o&&(s[1]=i.order[n.count],2===s[1]&&(u.sortList.splice(a,1),i.count=-1));else if((i=n.order[n.count])<2&&(u.sortList.push([o,i]),1<n.colSpan))for(a=1;a<n.colSpan;a++)u.sortList.push([o+a,i])}if(null!==u.sortAppend)for(i=u.sortAppend,a=0;a<i.length;a++)i[a][0]!==o&&u.sortList.push(i[a]);c.trigger("sortBegin",e),setTimeout(function(){b(e),k(e),v(e),c.trigger("sortEnd",e)},1)}(r,n,t)}}),a.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},S.restoreHeaders=function(t){var e=_(t)[0].config;e.$table.find(e.selectorHeaders).each(function(t){_(this).find("."+S.css.headerIn).length&&_(this).html(e.headerContent[t])})},S.destroy=function(t,e,n){var r,i,o,a,s;(t=_(t)[0]).hasInitialized&&(S.refreshWidgets(t,!0,!0),r=_(t),i=t.config,a=(o=r.find("thead:first")).find("tr."+S.css.headerRow).removeClass(S.css.headerRow+" "+i.cssHeaderRow),s=r.find("tfoot:first > tr").children("th, td"),!1===e&&0<=_.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([S.css.header,i.cssHeader,i.cssAsc,i.cssDesc,S.css.sortAsc,S.css.sortDesc,S.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),a.find(i.selectorSort).unbind(["mousedown","mouseup","keypress",""].join(i.namespace+" ")),S.restoreHeaders(t),r.toggleClass(S.css.table+" "+i.tableClass+" tablesorter-"+i.theme,!1===e),t.hasInitialized=!1,delete t.config.cache,"function"==typeof n&&n(t))},S.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},S.sortNatural=function(t,e){if(t===e)return 0;var n,r,i,o,a,s=S.regex;if(s.hex.test(e)){if((n=parseInt(t.match(s.hex),16))<(r=parseInt(e.match(s.hex),16)))return-1;if(r<n)return 1}for(n=t.replace(s.chunk,"\\0$1\\0").replace(s.chunks,"").split("\\0"),s=e.replace(s.chunk,"\\0$1\\0").replace(s.chunks,"").split("\\0"),a=Math.max(n.length,s.length),o=0;o<a;o++){if(r=isNaN(n[o])?n[o]||0:parseFloat(n[o])||0,i=isNaN(s[o])?s[o]||0:parseFloat(s[o])||0,isNaN(r)!==isNaN(i))return isNaN(r)?1:-1;if(typeof r!=typeof i&&(r+="",i+=""),r<i)return-1;if(i<r)return 1}return 0},S.sortNaturalAsc=function(t,e,n,r,i){return t===e?0:(n=i.string[i.empties[n]||i.emptyTo],""===t&&0!==n?"boolean"==typeof n?n?-1:1:-n||-1:""===e&&0!==n?"boolean"==typeof n?n?1:-1:n||1:S.sortNatural(t,e))},S.sortNaturalDesc=function(t,e,n,r,i){return t===e?0:(n=i.string[i.empties[n]||i.emptyTo],""===t&&0!==n?"boolean"==typeof n?n?-1:1:n||1:""===e&&0!==n?"boolean"==typeof n?n?1:-1:-n||-1:S.sortNatural(e,t))},S.sortText=function(t,e){return e<t?1:t<e?-1:0},S.getTextValue=function(t,e,n){if(n){var r=t?t.length:0,i=n+e;for(n=0;n<r;n++)i+=t.charCodeAt(n);return e*i}return 0},S.sortNumericAsc=function(t,e,n,r,i,o){return t===e?0:(i=(o=o.config).string[o.empties[i]||o.emptyTo],""===t&&0!==i?"boolean"==typeof i?i?-1:1:-i||-1:""===e&&0!==i?"boolean"==typeof i?i?1:-1:i||1:(isNaN(t)&&(t=S.getTextValue(t,n,r)),isNaN(e)&&(e=S.getTextValue(e,n,r)),t-e))},S.sortNumericDesc=function(t,e,n,r,i,o){return t===e?0:(i=(o=o.config).string[o.empties[i]||o.emptyTo],""===t&&0!==i?"boolean"==typeof i?i?-1:1:i||1:""===e&&0!==i?"boolean"==typeof i?i?1:-1:-i||-1:(isNaN(t)&&(t=S.getTextValue(t,n,r)),isNaN(e)&&(e=S.getTextValue(e,n,r)),e-t))},S.sortNumeric=function(t,e){return t-e},S.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},S.replaceAccents=function(t){var e,n="[",r=S.characterEquivalents;if(!S.characterRegex){for(e in S.characterRegexArray={},r)"string"==typeof e&&(n+=r[e],S.characterRegexArray[e]=new RegExp("["+r[e]+"]","g"));S.characterRegex=new RegExp(n+"]")}if(S.characterRegex.test(t))for(e in r)"string"==typeof e&&(t=t.replace(S.characterRegexArray[e],e));return t},S.isValueInArray=function(t,e){for(var n=e.length,r=0;r<n;r++)if(e[r][0]===t)return r;return-1},S.addParser=function(t){for(var e=S.parsers.length,n=!0,r=0;r<e;r++)S.parsers[r].id.toLowerCase()===t.id.toLowerCase()&&(n=!1);n&&S.parsers.push(t)},S.getParserById=function(t){if("false"==t)return!1;for(var e=S.parsers.length,n=0;n<e;n++)if(S.parsers[n].id.toLowerCase()===t.toString().toLowerCase())return S.parsers[n];return!1},S.addWidget=function(t){S.widgets.push(t)},S.hasWidget=function(t,e){return(t=_(t)).length&&t[0].config&&t[0].config.widgetInit[e]||!1},S.getWidgetById=function(t){for(var e,n=S.widgets.length,r=0;r<n;r++)if((e=S.widgets[r])&&e.hasOwnProperty("id")&&e.id.toLowerCase()===t.toLowerCase())return e},S.applyWidget=function(n,r){var t,e,i,o=(n=_(n)[0]).config,a=o.widgetOptions,s=[];!1!==r&&n.hasInitialized&&(n.isApplyingWidgets||n.isUpdating)||(o.debug&&(t=new Date),o.widgets.length&&(n.isApplyingWidgets=!0,o.widgets=_.grep(o.widgets,function(t,e){return _.inArray(t,o.widgets)===e}),_.each(o.widgets||[],function(t,e){(i=S.getWidgetById(e))&&i.id&&(i.priority||(i.priority=10),s[t]=i)}),s.sort(function(t,e){return t.priority<e.priority?-1:t.priority===e.priority?0:1}),_.each(s,function(t,e){e&&(!r&&o.widgetInit[e.id]||(o.widgetInit[e.id]=!0,e.hasOwnProperty("options")&&(a=n.config.widgetOptions=_.extend(!0,{},e.options,a)),e.hasOwnProperty("init")&&e.init(n,e,o,a)),!r&&e.hasOwnProperty("format")&&e.format(n,o,a,!1))})),setTimeout(function(){n.isApplyingWidgets=!1},0),o.debug&&(e=o.widgets.length,M("Completed "+(!0===r?"initializing ":"applying ")+e+" widget"+(1!==e?"s":""),t)))},S.refreshWidgets=function(t,e,n){for(var r=(t=_(t)[0]).config,i=r.widgets,o=S.widgets,a=o.length,s=0;s<a;s++)o[s]&&o[s].id&&(e||_.inArray(o[s].id,i)<0)&&(r.debug&&w('Refeshing widgets: Removing "'+o[s].id+'"'),o[s].hasOwnProperty("remove")&&r.widgetInit[o[s].id]&&(o[s].remove(t,r,r.widgetOptions),r.widgetInit[o[s].id]=!1));!0!==n&&S.applyWidget(t,e)},S.getData=function(t,e,n){var r,i,o="";return(t=_(t)).length?(r=!!_.metadata&&t.metadata(),i=" "+(t.attr("class")||""),void 0!==t.data(n)||void 0!==t.data(n.toLowerCase())?o+=t.data(n)||t.data(n.toLowerCase()):r&&void 0!==r[n]?o+=r[n]:e&&void 0!==e[n]?o+=e[n]:" "!==i&&i.match(" "+n+"-")&&(o=i.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),_.trim(o)):""},S.formatFloat=function(t,e){return"string"!=typeof t||""===t?t:(t=(e&&e.config?!1!==e.config.usNumberFormat:void 0===e||e)?t.replace(/,/g,""):t.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(t)&&(t=t.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(t),isNaN(n)?_.trim(t):n);var n},S.isDigit=function(t){return!isNaN(t)||/^[\-+(]?\d+[)]?$/.test(t.toString().replace(/[,.'"\s]/g,""))}}});var c=_.tablesorter;_.fn.extend({tablesorter:c.construct}),c.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),c.addParser({id:"text",is:function(){return!0},format:function(t,e){var n=e.config;return t&&(t=_.trim(n.ignoreCase?t.toLocaleLowerCase():t),t=n.sortLocaleCompare?c.replaceAccents(t):t),t},type:"text"}),c.addParser({id:"digit",is:function(t){return c.isDigit(t)},format:function(t,e){var n=c.formatFloat((t||"").replace(/[^\w,. \-()]/g,""),e);return t&&"number"==typeof n?n:t?_.trim(t&&e.config.ignoreCase?t.toLocaleLowerCase():t):t},type:"numeric"}),c.addParser({id:"currency",is:function(t){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((t||"").replace(/[+\-,. ]/g,""))},format:function(t,e){var n=c.formatFloat((t||"").replace(/[^\w,. \-()]/g,""),e);return t&&"number"==typeof n?n:t?_.trim(t&&e.config.ignoreCase?t.toLocaleLowerCase():t):t},type:"numeric"}),c.addParser({id:"ipAddress",is:function(t){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(t)},format:function(t,e){for(var n=t?t.split("."):"",r="",i=n.length,o=0;o<i;o++)r+=("00"+n[o]).slice(-3);return t?c.formatFloat(r,e):t},type:"numeric"}),c.addParser({id:"url",is:function(t){return/^(https?|ftp|file):\/\//.test(t)},format:function(t){return t?_.trim(t.replace(/(https?|ftp|file):\/\//,"")):t},type:"text"}),c.addParser({id:"isoDate",is:function(t){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(t)},format:function(t,e){return t?c.formatFloat(""!==t?new Date(t.replace(/-/g,"/")).getTime()||t:"",e):t},type:"numeric"}),c.addParser({id:"percent",is:function(t){return/(\d\s*?%|%\s*?\d)/.test(t)&&t.length<15},format:function(t,e){return t?c.formatFloat(t.replace(/%/g,""),e):t},type:"numeric"}),c.addParser({id:"usLongDate",is:function(t){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(t)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(t)},format:function(t,e){return t?c.formatFloat(new Date(t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,e):t},type:"numeric"}),c.addParser({id:"shortDate",is:function(t){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((t||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(t,e,n,r){var i;return t&&(r=(i=(n=e.config).$headers.filter("[data-column="+r+"]:last")).length&&i[0].dateFormat||c.getData(i,c.getColumnData(e,n.headers,r),"dateFormat")||n.dateFormat,t=t.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===r?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===r?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===r&&(t=t.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))),t?c.formatFloat(new Date(t).getTime()||t,e):t},type:"numeric"}),c.addParser({id:"time",is:function(t){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(t)},format:function(t,e){return t?c.formatFloat(new Date("2000/01/01 "+t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,e):t},type:"numeric"}),c.addParser({id:"metadata",is:function(){return!1},format:function(t,e,n){return t=(t=e.config).parserMetadataName?t.parserMetadataName:"sortValue",_(n).metadata()[t]},type:"numeric"}),c.addWidget({id:"zebra",priority:90,format:function(t,e,n){var r,i,o,a,s,u=new RegExp(e.cssChildRow,"i"),l=e.$tbodies;for(e.debug&&(s=new Date),t=0;t<l.length;t++)1<(r=l.eq(t)).children("tr").length&&(o=0,(r=r.children("tr:visible").not(e.selectorRemove)).each(function(){i=_(this),u.test(this.className)||o++,a=0==o%2,i.removeClass(n.zebra[a?1:0]).addClass(n.zebra[a?0:1])}));e.debug&&c.benchmark("Applying Zebra widget",s)},remove:function(t,e,n){var r;e=e.$tbodies;var i=(n.zebra||["even","odd"]).join(" ");for(n=0;n<e.length;n++)(r=_.tablesorter.processTbody(t,e.eq(n),!0)).children().removeClass(i),_.tablesorter.processTbody(t,r,!1)}})}(jQuery),d3=function(){function s(t){return null!=t&&!isNaN(t)}function a(t){return t.length}function t(e,n){try{for(var t in n)Object.defineProperty(e.prototype,t,{value:n[t],enumerable:!1})}catch(t){e.prototype=n}}function x(){}function l(){}function e(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.substring(1);for(var n=0,r=si.length;n<r;++n){var i=si[n]+e;if(i in t)return i}}function c(){}function r(){}function u(i){function t(){for(var t,e=o,n=-1,r=e.length;++n<r;)(t=e[n].on)&&t.apply(this,arguments);return i}var o=[],a=new x;return t.on=function(t,e){var n,r=a.get(t);return arguments.length<2?r&&r.on:(r&&(r.on=null,o=o.slice(0,n=o.indexOf(r)).concat(o.slice(n+1)),a.remove(t)),e&&o.push(a.set(t,{on:e})),i)},t}function D(){Gr.event.preventDefault()}function i(){for(var t,e=Gr.event;t=e.sourceEvent;)e=t;return e}function L(i){for(var o=new r,t=0,e=arguments.length;++t<e;)o[arguments[t]]=u(o);return o.of=function(n,r){return function(t){try{var e=t.sourceEvent=Gr.event;t.target=i,Gr.event=t,o[t.type].apply(n,r)}finally{Gr.event=e}}},o}function f(t){return li(t,di),t}function h(t){return"function"==typeof t?t:function(){return ci(t,this)}}function g(t){return"function"==typeof t?t:function(){return fi(t,this)}}function o(e,n){return e=Gr.ns.qualify(e),null==n?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:"function"==typeof n?e.local?function(){var t=n.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}:function(){var t=n.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}:e.local?function(){this.setAttributeNS(e.space,e.local,n)}:function(){this.setAttribute(e,n)}}function p(t){return t.trim().replace(/\s+/g," ")}function d(t){return new RegExp("(?:^|\\s+)"+Gr.requote(t)+"(?:\\s+|$)","g")}function v(n,r){var i=(n=n.trim().split(/\s+/).map(m)).length;return"function"==typeof r?function(){for(var t=-1,e=r.apply(this,arguments);++t<i;)n[t](this,e)}:function(){for(var t=-1;++t<i;)n[t](this,r)}}function m(r){var i=d(r);return function(t,e){if(n=t.classList)return e?n.add(r):n.remove(r);var n=t.getAttribute("class")||"";e?(i.lastIndex=0,i.test(n)||t.setAttribute("class",p(n+" "+r))):t.setAttribute("class",p(n.replace(i," ")))}}function y(e,n,r){return null==n?function(){this.style.removeProperty(e)}:"function"==typeof n?function(){var t=n.apply(this,arguments);null==t?this.style.removeProperty(e):this.style.setProperty(e,t,r)}:function(){this.style.setProperty(e,n,r)}}function n(e,n){return null==n?function(){delete this[e]}:"function"==typeof n?function(){var t=n.apply(this,arguments);null==t?delete this[e]:this[e]=t}:function(){this[e]=n}}function b(t){return"function"==typeof t?t:(t=Gr.ns.qualify(t)).local?function(){return Qr.createElementNS(t.space,t.local)}:function(){return Qr.createElementNS(this.namespaceURI,t)}}function w(t){return{__data__:t}}function M(t){return function(){return pi(this,t)}}function C(t,e){for(var n=0,r=t.length;n<r;n++)for(var i,o=t[n],a=0,s=o.length;a<s;a++)(i=o[a])&&e(i,a,n);return t}function k(t){return li(t,vi),t}function T(i,e,n){function r(){var t=this[o];t&&(this.removeEventListener(i,t,t.$),delete this[o])}var o="__on"+i,t=i.indexOf("."),a=E;0<t&&(i=i.substring(0,t));var s=yi.get(i);return s&&(i=s,a=S),t?e?function(){var t=a(e,Xr(arguments));r.call(this),this.addEventListener(i,this[o]=t,t.$=n),t._=e}:r:e?c:function(){var t,e,n=new RegExp("^__on([^.]+)"+Gr.requote(i)+"$");for(var r in this){(t=r.match(n))&&(e=this[r],this.removeEventListener(t[1],e,e.$),delete this[r])}}}function E(n,r){return function(t){var e=Gr.event;Gr.event=t,r[0]=this.__data__;try{n.apply(this,r)}finally{Gr.event=e}}}function S(t,e){var n=E(t,e);return function(t){var e=t.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||n.call(this,t)}}function j(){var n=".dragsuppress-"+ ++bi,t="touchmove"+n,e="selectstart"+n,r="dragstart"+n,i="click"+n,o=Gr.select(Jr).on(t,D).on(e,D).on(r,D),a=Zr.style,s=a[xi];return a[xi]="none",function(t){function e(){o.on(i,null)}o.on(n,null),a[xi]=s,t&&(o.on(i,function(){D(),e()},!0),setTimeout(e,0))}}function _(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r,i=n.createSVGPoint();return wi<0&&(Jr.scrollX||Jr.scrollY)&&(r=(n=Gr.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM(),wi=!(r.f||r.e),n.remove()),wi?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}function N(t){return 0<t?1:t<0?-1:0}function $(t){return 1<t?0:t<-1?Mi:Math.acos(t)}function A(t){return 1<t?Mi/2:t<-1?-Mi/2:Math.asin(t)}function P(t){return(Math.exp(t)-Math.exp(-t))/2}function q(t){return(Math.exp(t)+Math.exp(-t))/2}function R(t){return(t=Math.sin(t/2))*t}function H(){}function O(t,e,n){return new F(t,e,n)}function F(t,e,n){this.h=t,this.s=e,this.l=n}function I(t,e,n){function r(t){return Math.round(255*(360<(e=t)?e-=360:e<0&&(e+=360),e<60?i+(o-i)*e/60:e<180?o:e<240?i+(o-i)*(240-e)/60:i));var e}var i,o;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)||e<0?0:1<e?1:e,i=2*(n=n<0?0:1<n?1:n)-(o=n<=.5?n*(1+e):n+e-n*e),tt(r(t+120),r(t),r(t-120))}function z(t,e,n){return new W(t,e,n)}function W(t,e,n){this.h=t,this.c=e,this.l=n}function V(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),B(n,Math.cos(t*=Ti)*e,Math.sin(t)*e)}function B(t,e,n){return new U(t,e,n)}function U(t,e,n){this.l=t,this.a=e,this.b=n}function G(t,e,n){var r=(t+16)/116,i=r+e/500,o=r-n/200;return tt(Z(3.2404542*(i=X(i)*ji)-1.5371385*(r=X(r)*Pi)-.4985314*(o=X(o)*qi)),Z(-.969266*i+1.8760108*r+.041556*o),Z(.0556434*i-.2040259*r+1.0572252*o))}function Y(t,e,n){return 0<t?z(Math.atan2(n,e)*Ei,Math.sqrt(e*e+n*n),t):z(NaN,NaN,t)}function X(t){return.206893034<t?t*t*t:(t-4/29)/7.787037}function Q(t){return.008856<t?Math.pow(t,1/3):7.787037*t+4/29}function Z(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function J(t){return tt(t>>16,255&t>>8,255&t)}function K(t){return J(t)+""}function tt(t,e,n){return new et(t,e,n)}function et(t,e,n){this.r=t,this.g=e,this.b=n}function nt(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function rt(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(st(i[0]),st(i[1]),st(i[2]))}return(o=Oi.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 it(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<n?6:0):e==a?(n-t)/s+2:(t-e)/s+4,r*=60):(r=NaN,i=0<u&&u<1?0:r),O(r,i,u)}function ot(t,e,n){var r=Q((.4124564*(t=at(t))+.3575761*(e=at(e))+.1804375*(n=at(n)))/ji),i=Q((.2126729*t+.7151522*e+.072175*n)/Pi);return B(116*i-16,500*(r-i),200*(i-Q((.0193339*t+.119192*e+.9503041*n)/qi)))}function at(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function st(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function ut(t){return"function"==typeof t?t:function(){return t}}function lt(t){return t}function ct(r){return function(t,e,n){return 2===arguments.length&&"function"==typeof e&&(n=e,e=null),ft(t,e,r,n)}}function ft(i,o,n,t){function e(){var t,e=l.status;if(!e&&l.responseText||200<=e&&e<300||304===e){try{t=n.call(a,l)}catch(t){return void s.error.call(a,t)}s.load.call(a,t)}else s.error.call(a,l)}var r,a={},s=Gr.dispatch("beforesend","progress","load","error"),u={},l=new XMLHttpRequest,c=null;return!Jr.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(i)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=e:l.onreadystatechange=function(){3<l.readyState&&e()},l.onprogress=function(t){var e=Gr.event;Gr.event=t;try{s.progress.call(a,l)}finally{Gr.event=e}},a.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==e?delete u[t]:u[t]=e+"",a)},a.mimeType=function(t){return arguments.length?(o=null==t?null:t+"",a):o},a.responseType=function(t){return arguments.length?(c=t,a):c},a.response=function(t){return n=t,a},["get","post"].forEach(function(t){a[t]=function(){return a.send.apply(a,[t].concat(Xr(arguments)))}}),a.send=function(t,e,n){if(2===arguments.length&&"function"==typeof e&&(n=e,e=null),l.open(t,i,!0),null==o||"accept"in u||(u.accept=o+",*/*"),l.setRequestHeader)for(var r in u)l.setRequestHeader(r,u[r]);return null!=o&&l.overrideMimeType&&l.overrideMimeType(o),null!=c&&(l.responseType=c),null!=n&&a.on("error",n).on("load",function(t){n(null,t)}),s.beforesend.call(a,l),l.send(null==e?null:e),a},a.abort=function(){return l.abort(),a},Gr.rebind(a,s,"on"),null==t?a:a.get(1===(r=t).length?function(t,e){r(null==t?e:null)}:r)}function ht(){var t=dt(),e=gt()-t;24<e?(isFinite(e)&&(clearTimeout(Wi),Wi=setTimeout(ht,e)),zi=0):(zi=1,Bi(ht))}function pt(t,e,n){var r=arguments.length;r<2&&(e=0),r<3&&(n=Date.now()),Vi.callback=t,Vi.time=n+e}function dt(){var t=Date.now();for(Vi=Fi;Vi;)t>=Vi.time&&(Vi.flush=Vi.callback(t-Vi.time)),Vi=Vi.next;return t}function gt(){for(var t,e=Fi,n=1/0;e;)e=e.flush?t?t.next=e.next:Fi=e.next:(e.time<n&&(n=e.time),(t=e).next);return Ii=t,n}function vt(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function mt(t){return t+""}function yt(){}function xt(t,e,n){var r=n.s=t+e,i=r-t,o=r-i;n.t=t-o+(e-i)}function bt(t,e){t&&to.hasOwnProperty(t.type)&&to[t.type](t,e)}function wt(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function Mt(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)wt(t[n],e,1);e.polygonEnd()}function Ct(){function n(t,e){e=e*Ti/2+Mi/4;var n=(t*=Ti)-u,r=Math.cos(e),i=Math.sin(e),o=c*i,a=l*r+o*Math.cos(n),s=o*Math.sin(n);go.add(Math.atan2(s,a)),u=t,l=r,c=i}var r,i,u,l,c;vo.point=function(t,e){vo.point=n,u=(r=t)*Ti,l=Math.cos(e=(i=e)*Ti/2+Mi/4),c=Math.sin(e)},vo.lineEnd=function(){n(r,i)}}function kt(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function Tt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Et(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function St(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function _t(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Nt(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function $t(t){return[Math.atan2(t[1],t[0]),A(t[2])]}function At(t,e){return Math.abs(t[0]-e[0])<Ci&&Math.abs(t[1]-e[1])<Ci}function Dt(t,e){t*=Ti;var n=Math.cos(e*=Ti);Lt(n*Math.cos(t),n*Math.sin(t),Math.sin(e))}function Lt(t,e,n){No+=(t-No)/++So,$o+=(e-$o)/So,Ao+=(n-Ao)/So}function jt(){function r(t,e){t*=Ti;var n=Math.cos(e*=Ti),r=n*Math.cos(t),i=n*Math.sin(t),o=Math.sin(e),a=Math.atan2(Math.sqrt((a=u*o-l*i)*a+(a=l*r-s*o)*a+(a=s*i-u*r)*a),s*r+u*i+l*o);_o+=a,Do+=a*(s+(s=r)),Lo+=a*(u+(u=i)),jo+=a*(l+(l=o)),Lt(s,u,l)}var s,u,l;Ho.point=function(t,e){t*=Ti;var n=Math.cos(e*=Ti);s=n*Math.cos(t),u=n*Math.sin(t),l=Math.sin(e),Ho.point=r,Lt(s,u,l)}}function Pt(){Ho.point=Dt}function qt(){function r(t,e){t*=Ti;var n=Math.cos(e*=Ti),r=n*Math.cos(t),i=n*Math.sin(t),o=Math.sin(e),a=d*o-g*i,s=g*r-p*o,u=p*i-d*r,l=Math.sqrt(a*a+s*s+u*u),c=p*r+d*i+g*o,f=l&&-$(c)/l,h=Math.atan2(l,c);Po+=f*a,qo+=f*s,Ro+=f*u,_o+=h,Do+=h*(p+(p=r)),Lo+=h*(d+(d=i)),jo+=h*(g+(g=o)),Lt(p,d,g)}var i,o,p,d,g;Ho.point=function(t,e){i=t,o=e,Ho.point=r,t*=Ti;var n=Math.cos(e*=Ti);p=n*Math.cos(t),d=n*Math.sin(t),g=Math.sin(e),Lt(p,d,g)},Ho.lineEnd=function(){r(i,o),Ho.lineEnd=Pt,Ho.point=Dt}}function Rt(){return!0}function Ht(t,e,n,r,s){var u=[],l=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n=t[0],r=t[e];if(At(n,r)){s.lineStart();for(var i=0;i<e;++i)s.point((n=t[i])[0],n[1]);return void s.lineEnd()}var o={point:n,points:t,other:null,visited:!1,entry:!0,subject:!0},a={point:n,points:[n],other:o,visited:!1,entry:!1,subject:!1};o.other=a,u.push(o),l.push(a),a={point:r,points:[r],other:o={point:r,points:[r],other:null,visited:!1,entry:!1,subject:!0},visited:!1,entry:!0,subject:!1},o.other=a,u.push(o),l.push(a)}}),l.sort(e),Ot(u),Ot(l),u.length){if(n)for(var i=1,o=!n(l[0].point),a=l.length;i<a;++i)l[i].entry=o=!o;for(var c,f,h,p=u[0];;){for(c=p;c.visited;)if((c=c.next)===p)return;f=c.points,s.lineStart();do{if(c.visited=c.other.visited=!0,c.entry){if(c.subject)for(i=0;i<f.length;i++)s.point((h=f[i])[0],h[1]);else r(c.point,c.next.point,1,s);c=c.next}else{if(c.subject)for(i=(f=c.prev.points).length;0<=--i;)s.point((h=f[i])[0],h[1]);else r(c.point,c.prev.point,-1,s);c=c.prev}f=(c=c.other).points}while(!c.visited);s.lineEnd()}}}function Ot(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.next=n=t[r],n.prev=i,i=n;i.next=n=t[0],n.prev=i}}function Ft(g,v,m,y){return function(a){function t(t,e){g(t,e)&&a.point(t,e)}function e(t,e){f.point(t,e)}function n(){h.point=e,f.lineStart()}function r(){h.point=t,f.lineEnd()}function s(t,e){d.point(t,e),c.push([t,e])}function i(){d.lineStart(),c=[]}function o(){s(c[0][0],c[0][1]),d.lineEnd();var t,e=d.clean(),n=p.buffer(),r=n.length;if(c.pop(),l.push(c),c=null,r){if(1&e){var i,r=(t=n[0]).length-1,o=-1;for(a.lineStart();++o<r;)a.point((i=t[o])[0],i[1]);return void a.lineEnd()}1<r&&2&e&&n.push(n.pop().concat(n.shift())),u.push(n.filter(It))}}var u,l,c,f=v(a),h={point:t,lineStart:n,lineEnd:r,polygonStart:function(){h.point=s,h.lineStart=i,h.lineEnd=o,u=[],l=[],a.polygonStart()},polygonEnd:function(){h.point=t,h.lineStart=n,h.lineEnd=r,(u=Gr.merge(u)).length?Ht(u,Wt,null,m,a):y(l)&&(a.lineStart(),m(null,null,1,a),a.lineEnd()),a.polygonEnd(),u=l=null},sphere:function(){a.polygonStart(),a.lineStart(),m(null,null,1,a),a.lineEnd(),a.polygonEnd()}},p=zt(),d=v(p);return h}}function It(t){return 1<t.length}function zt(){var n,e=[];return{lineStart:function(){e.push(n=[])},point:function(t,e){n.push([t,e])},lineEnd:c,buffer:function(){var t=e;return e=[],n=null,t},rejoin:function(){1<e.length&&e.push(e.pop().concat(e.shift()))}}}function Wt(t,e){return((t=t.point)[0]<0?t[1]-Mi/2-Ci:Mi/2-t[1])-((e=e.point)[0]<0?e[1]-Mi/2-Ci:Mi/2-e[1])}function Vt(t,e){var n=t[0],r=t[1],i=[Math.sin(n),-Math.cos(n),0],o=0,a=!1,s=!1,u=0;go.reset();for(var l=0,c=e.length;l<c;++l){var f=e[l],h=f.length;if(h){for(var p=f[0],d=p[0],g=p[1]/2+Mi/4,v=Math.sin(g),m=Math.cos(g),y=1;;){y===h&&(y=0);var x,b,w=(t=f[y])[0],M=t[1]/2+Mi/4,C=Math.sin(M),k=Math.cos(M),T=w-d,E=Math.abs(T)>Mi,S=v*C;if(go.add(Math.atan2(S*Math.sin(T),m*k+S*Math.cos(T))),Math.abs(M)<Ci&&(s=!0),o+=E?T+(0<=T?2:-2)*Mi:T,E^n<=d^n<=w&&(Nt(x=Et(kt(p),kt(t))),Nt(b=Et(i,x)),(E^0<=T?-1:1)*A(b[2])<r&&(u+=E^0<=T?1:-1)),!y++)break;d=w,v=C,m=k,p=t}Math.abs(o)>Ci&&(a=!0)}}return(!s&&!a&&go<0||o<-Ci)^1&u}function Bt(i){function p(t,e){return Math.cos(t)*Math.cos(e)>E}function d(t,e,n){var r=[1,0,0],i=Et(kt(t),kt(e)),o=Tt(i,i),a=i[0],s=o-a*a;if(!s)return!n&&t;var u=E*o/s,l=-E*a/s,c=Et(r,i),f=_t(r,u);St(f,_t(i,l));var h=c,p=Tt(f,h),d=Tt(h,h),g=p*p-d*(Tt(f,f)-1);if(!(g<0)){var v=Math.sqrt(g),m=_t(h,(-p-v)/d);if(St(m,f),m=$t(m),!n)return m;var y,x=t[0],b=e[0],w=t[1],M=e[1];b<x&&(y=x,x=b,b=y);var C=b-x,k=Math.abs(C-Mi)<Ci;if(!k&&M<w&&(y=w,w=M,M=y),k||C<Ci?k?0<w+M^m[1]<(Math.abs(m[0]-x)<Ci?w:M):w<=m[1]&&m[1]<=M:Mi<C^(x<=m[0]&&m[0]<=b)){var T=_t(h,(-p+v)/d);return St(T,f),[m,$t(T)]}}}function g(t,e){var n=v?i:Mi-i,r=0;return t<-n?r|=1:n<t&&(r|=2),e<-n?r|=4:n<e&&(r|=8),r}var E=Math.cos(i),v=0<E,e=[i,0],m=Math.abs(E)>Ci;return Ft(p,function(s){var u,l,c,f,h;return{lineStart:function(){f=c=!1,h=1},point:function(t,e){var n,r,i=[t,e],o=p(t,e),a=v?o?0:g(t,e):o?g(t+(t<0?Mi:-Mi),e):0;!u&&(f=c=o)&&s.lineStart(),o!==c&&(n=d(u,i),(At(u,n)||At(i,n))&&(i[0]+=Ci,i[1]+=Ci,o=p(i[0],i[1]))),o!==c?(h=0,o?(s.lineStart(),n=d(i,u),s.point(n[0],n[1])):(n=d(u,i),s.point(n[0],n[1]),s.lineEnd()),u=n):m&&u&&v^o&&(a&l||!(r=d(i,u,!0))||(h=0,v?(s.lineStart(),s.point(r[0][0],r[0][1]),s.point(r[1][0],r[1][1]),s.lineEnd()):(s.point(r[1][0],r[1][1]),s.lineEnd(),s.lineStart(),s.point(r[0][0],r[0][1])))),!o||u&&At(u,i)||s.point(i[0],i[1]),u=i,c=o,l=a},lineEnd:function(){c&&s.lineEnd(),u=null},clean:function(){return h|(f&&c)<<1}}},de(i,6*Ti),function(t){return Vt(e,t)})}function Ut(M,C,k,T){function l(t,e){return Math.abs(t[0]-M)<Ci?0<e?0:3:Math.abs(t[0]-k)<Ci?0<e?2:1:Math.abs(t[1]-C)<Ci?0<e?1:0:0<e?3:2}function E(t,e){return S(t.point,e.point)}function S(t,e){var n=l(t,1),r=l(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(c){function t(t){var e=l(t,-1);return n([0===e||3===e?M:k,1<e?T:C])}function n(t){for(var e=0,n=p.length,r=t[1],i=0;i<n;++i)for(var o,a=1,s=p[i],u=s.length,l=s[0];a<u;++a)o=s[a],l[1]<=r?o[1]>r&&0<f(l,o,t)&&++e:o[1]<=r&&f(l,o,t)<0&&--e,l=o;return 0!==e}function f(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(n[0]-t[0])*(e[1]-t[1])}function e(t,e,n,r){var i=0,o=0;if(null==t||(i=l(t,n))!==(o=l(e,n))||S(t,e)<0^0<n)for(;r.point(0===i||3===i?M:k,1<i?T:C),(i=(i+n+4)%4)!==o;);else r.point(e[0],e[1])}function h(t,e){return M<=t&&t<=k&&C<=e&&e<=T}function r(t,e){h(t,e)&&c.point(t,e)}function i(t,e){var n,r,i,o,a,s,u,l=h(t=Math.max(-Io,Math.min(Io,t)),e=Math.max(-Io,Math.min(Io,e)));p&&d.push([t,e]),w?(g=t,v=e,w=!1,(m=l)&&(c.lineStart(),c.point(t,e))):l&&b?c.point(t,e):(a=(o=r=[t,e])[0]-(i=n=[y,x])[0],s=o[1]-i[1],u=[0,1],(Math.abs(a)<Ci&&Math.abs(s)<Ci?M<=i[0]&&i[0]<=k&&C<=i[1]&&i[1]<=T:Gt(M-i[0],a,u)&&Gt(i[0]-k,-a,u)&&Gt(C-i[1],s,u)&&Gt(i[1]-T,-s,u)&&(u[1]<1&&(o[0]=i[0]+u[1]*a,o[1]=i[1]+u[1]*s),0<u[0]&&(i[0]+=u[0]*a,i[1]+=u[0]*s),1))?(b||(c.lineStart(),c.point(n[0],n[1])),c.point(r[0],r[1]),l||c.lineEnd()):l&&(c.lineStart(),c.point(t,e))),y=t,x=e,b=l}var o,p,d,g,v,m,y,x,b,w,a=c,s=zt(),u={point:r,lineStart:function(){u.point=i,p&&p.push(d=[]),b=!(w=!0),y=x=NaN},lineEnd:function(){o&&(i(g,v),m&&b&&s.rejoin(),o.push(s.buffer())),u.point=r,b&&c.lineEnd()},polygonStart:function(){c=s,o=[],p=[]},polygonEnd:function(){c=a,(o=Gr.merge(o)).length?(c.polygonStart(),Ht(o,E,t,e,c),c.polygonEnd()):n([M,C])&&(c.polygonStart(),c.lineStart(),e(null,null,1,c),c.lineEnd(),c.polygonEnd()),o=p=d=null}};return u}}function Gt(t,e,n){if(Math.abs(e)<Ci)return t<=0;var r=t/e;if(0<e){if(r>n[1])return;r>n[0]&&(n[0]=r)}else{if(r<n[0])return;r<n[1]&&(n[1]=r)}return 1}function Yt(n,r){function t(t,e){return t=n(t,e),r(t[0],t[1])}return n.invert&&r.invert&&(t.invert=function(t,e){return(t=r.invert(t,e))&&n.invert(t[0],t[1])}),t}function Xt(t){var e=0,n=Mi/3,r=ue(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Mi/180,n=t[1]*Mi/180):[e/Mi*180,n/Mi*180]},i}function Qt(t,e){function n(t,e){var n=Math.sqrt(o-2*i*Math.sin(e))/i;return[n*Math.sin(t*=i),a-n*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(e))/2,o=1+r*(2*i-r),a=Math.sqrt(o)/i;return n.invert=function(t,e){var n=a-e;return[Math.atan2(t,n)/i,A((o-(t*t+n*n)*i*i)/(2*i))]},n}function Zt(){function n(t,e){Wo+=a*t-o*e,o=t,a=e}var r,i,o,a;Yo.point=function(t,e){Yo.point=n,r=o=t,i=a=e},Yo.lineEnd=function(){n(r,i)}}function Jt(){function t(t,e){a.push("M",t,",",e,o)}function e(t,e){a.push("M",t,",",e),s.point=n}function n(t,e){a.push("L",t,",",e)}function r(){s.point=t}function i(){a.push("Z")}var o=Kt(4.5),a=[],s={point:t,lineStart:function(){s.point=e},lineEnd:r,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=r,s.point=t},pointRadius:function(t){return o=Kt(t),s},result:function(){if(a.length){var t=a.join("");return a=[],t}}};return s}function Kt(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function te(t,e){No+=t,$o+=e,++Ao}function ee(){function n(t,e){var n=t-o,r=e-a,i=Math.sqrt(n*n+r*r);Do+=i*(o+t)/2,Lo+=i*(a+e)/2,jo+=i,te(o=t,a=e)}var o,a;Qo.point=function(t,e){Qo.point=n,te(o=t,a=e)}}function ne(){Qo.point=te}function re(){function n(t,e){var n=t-o,r=e-a,i=Math.sqrt(n*n+r*r);Do+=i*(o+t)/2,Lo+=i*(a+e)/2,jo+=i,Po+=(i=a*t-o*e)*(o+t),qo+=i*(a+e),Ro+=3*i,te(o=t,a=e)}var r,i,o,a;Qo.point=function(t,e){Qo.point=n,te(r=o=t,i=a=e)},Qo.lineEnd=function(){n(r,i)}}function ie(n){function t(t,e){n.moveTo(t,e),n.arc(t,e,a,0,2*Mi)}function e(t,e){n.moveTo(t,e),s.point=r}function r(t,e){n.lineTo(t,e)}function i(){s.point=t}function o(){n.closePath()}var a=4.5,s={point:t,lineStart:function(){s.point=e},lineEnd:i,polygonStart:function(){s.lineEnd=o},polygonEnd:function(){s.lineEnd=i,s.point=t},pointRadius:function(t){return a=t,s},result:c};return s}function oe(N){function e(i){function t(t,e){t=N(t,e),i.point(t[0],t[1])}function e(){g=NaN,b.point=n,i.lineStart()}function n(t,e){var n=kt([t,e]),r=N(t,e);$(g,v,d,m,y,x,g=r[0],v=r[1],d=t,m=n[0],y=n[1],x=n[2],w,i),i.point(g,v)}function r(){b.point=t,i.lineEnd()}function o(){e(),b.point=a,b.lineEnd=s}function a(t,e){n(u=t,e),l=g,c=v,f=m,h=y,p=x,b.point=n}function s(){$(g,v,d,m,y,x,l,c,u,f,h,p,w,i),b.lineEnd=r,r()}var u,l,c,f,h,p,d,g,v,m,y,x,b={point:t,lineStart:e,lineEnd:r,polygonStart:function(){i.polygonStart(),b.lineStart=o},polygonEnd:function(){i.polygonEnd(),b.lineStart=e}};return b}function $(t,e,n,r,i,o,a,s,u,l,c,f,h,p){var d,g,v,m,y,x,b,w,M,C,k,T,E=a-t,S=s-e,_=E*E+S*S;4*A<_&&h--&&(d=r+l,g=i+c,v=o+f,m=Math.sqrt(d*d+g*g+v*v),y=Math.asin(v/=m),x=Math.abs(Math.abs(v)-1)<Ci?(n+u)/2:Math.atan2(g,d),w=(b=N(x,y))[0],M=b[1],(A<(T=S*(C=w-t)-E*(k=M-e))*T/_||.3<Math.abs((E*C+S*k)/_-.5)||r*l+i*c+o*f<D)&&($(t,e,n,r,i,o,w,M,x,d/=m,g/=m,v,h,p),p.point(w,M),$(w,M,x,d,g,v,a,s,u,l,c,f,h,p)))}var A=.5,D=Math.cos(30*Ti),w=16;return e.precision=function(t){return arguments.length?(w=0<(A=t*t)&&16,e):Math.sqrt(A)},e}function ae(t){this.stream=t}function se(t){return ue(function(){return t})()}function ue(t){function e(t){return[(t=s(t[0]*Ti,t[1]*Ti))[0]*h+u,l-t[1]*h]}function n(t){return(t=s.invert((t[0]-u)/h,(l-t[1])/h))&&[t[0]*Ei,t[1]*Ei]}function r(){s=Yt(a=ce(m,y,x),o);var t=o(g,v);return u=p-t[0]*h,l=d+t[1]*h,i()}function i(){return c&&(c.valid=!1,c=null),e}var o,a,s,u,l,c,f=oe(function(t,e){return[(t=o(t,e))[0]*h+u,l-t[1]*h]}),h=150,p=480,d=250,g=0,v=0,m=0,y=0,x=0,b=Oo,w=lt,M=null,C=null;return e.stream=function(t){return c&&(c.valid=!1),n=a,r=b(f(w(t))),(e=new ae(r)).point=function(t,e){t=(e=n(t*Ti,e*Ti))[0],r.point(Mi<t?t-2*Mi:t<-Mi?t+2*Mi:t,e[1])},(c=e).valid=!0,c;var n,r,e},e.clipAngle=function(t){return arguments.length?(b=null==t?(M=t,Oo):Bt((M=+t)*Ti),i()):M},e.clipExtent=function(t){return arguments.length?(w=(C=t)?Ut(t[0][0],t[0][1],t[1][0],t[1][1]):lt,i()):C},e.scale=function(t){return arguments.length?(h=+t,r()):h},e.translate=function(t){return arguments.length?(p=+t[0],d=+t[1],r()):[p,d]},e.center=function(t){return arguments.length?(g=t[0]%360*Ti,v=t[1]%360*Ti,r()):[g*Ei,v*Ei]},e.rotate=function(t){return arguments.length?(m=t[0]%360*Ti,y=t[1]%360*Ti,x=2<t.length?t[2]%360*Ti:0,r()):[m*Ei,y*Ei,x*Ei]},Gr.rebind(e,f,"precision"),function(){return o=t.apply(this,arguments),e.invert=o.invert&&n,r()}}function le(t,e){return[t,e]}function ce(t,e,n){return t?e||n?Yt(he(t),pe(e,n)):he(t):e||n?pe(e,n):le}function fe(n){return function(t,e){return[Mi<(t+=n)?t-2*Mi:t<-Mi?t+2*Mi:t,e]}}function he(t){var e=fe(t);return e.invert=fe(-t),e}function pe(t,e){function n(t,e){var n=Math.cos(e),r=Math.cos(t)*n,i=Math.sin(t)*n,o=Math.sin(e),a=o*s+r*u;return[Math.atan2(i*l-a*c,r*s-o*u),A(a*l+i*c)]}var s=Math.cos(t),u=Math.sin(t),l=Math.cos(e),c=Math.sin(e);return n.invert=function(t,e){var n=Math.cos(e),r=Math.cos(t)*n,i=Math.sin(t)*n,o=Math.sin(e),a=o*l-i*c;return[Math.atan2(i*l+o*c,r*s+a*u),A(a*s-r*u)]},n}function de(s,u){var l=Math.cos(s),c=Math.sin(s);return function(t,e,n,r){var i=n*u;null!=t?(t=ge(l,t),e=ge(l,e),(0<n?t<e:e<t)&&(t+=2*n*Mi)):(t=s+2*n*Mi,e=s-.5*i);for(var o,a=t;0<n?e<a:a<e;a-=i)r.point((o=$t([l,-c*Math.cos(a),-c*Math.sin(a)]))[0],o[1])}}function ge(t,e){var n=kt(e);n[0]-=t,Nt(n);var r=$(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Ci)%(2*Math.PI)}function ve(t,e,n){var r=Gr.range(t,e-Ci,n).concat(e);return function(e){return r.map(function(t){return[e,t]})}}function me(t,e,n){var r=Gr.range(t,e-Ci,n).concat(e);return function(e){return r.map(function(t){return[t,e]})}}function ye(t){return t.source}function xe(t){return t.target}function be(o,a){function t(t,e){var n=Math.cos(t),r=Math.cos(e),i=o(n*r);return[i*r*Math.sin(t),i*Math.sin(e)]}return t.invert=function(t,e){var n=Math.sqrt(t*t+e*e),r=a(n),i=Math.sin(r),o=Math.cos(r);return[Math.atan2(t*i,n*o),Math.asin(n&&e*i/n)]},t}function we(t,e){function n(t,e){var n=Math.abs(Math.abs(e)-Mi/2)<Ci?0:a/Math.pow(r(e),o);return[n*Math.sin(o*t),a-n*Math.cos(o*t)]}function r(t){return Math.tan(Mi/4+t/2)}var i=Math.cos(t),o=t===e?Math.sin(t):Math.log(i/Math.cos(e))/Math.log(r(e)/r(t)),a=i*Math.pow(r(t),o)/o;return o?(n.invert=function(t,e){var n=a-e,r=N(o)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/o,2*Math.atan(Math.pow(a/r,1/o))-Mi/2]},n):Ce}function Me(t,e){function n(t,e){var n=o-e;return[n*Math.sin(i*t),o-n*Math.cos(i*t)]}var r=Math.cos(t),i=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),o=r/i+t;return Math.abs(i)<Ci?le:(n.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/i,o-N(i)*Math.sqrt(t*t+n*n)]},n)}function Ce(t,e){return[t,Math.log(Math.tan(Mi/4+e/2))]}function ke(t){var i,o=se(t),a=o.scale,s=o.translate,u=o.clipExtent;return o.scale=function(){var t=a.apply(o,arguments);return t===o?i?o.clipExtent(null):o:t},o.translate=function(){var t=s.apply(o,arguments);return t===o?i?o.clipExtent(null):o:t},o.clipExtent=function(t){var e,n,r=u.apply(o,arguments);return r===o?(i=null==t)&&(e=Mi*a(),n=s(),u([[n[0]-e,n[1]-e],[n[0]+e,n[1]+e]])):i&&(r=null),r},o.clipExtent(null)}function Te(t,e){var n=Math.cos(e)*Math.sin(t);return[Math.log((1+n)/(1-n))/2,Math.atan2(Math.tan(e),Math.cos(t))]}function Ee(l){function e(t){function e(){r.push("M",p(l(i),d))}for(var n,r=[],i=[],o=-1,a=t.length,s=ut(c),u=ut(f);++o<a;)h.call(this,n=t[o],o)?i.push([+s.call(this,n,o),+u.call(this,n,o)]):i.length&&(e(),i=[]);return i.length&&e(),r.length?r.join(""):null}var c=Se,f=_e,h=Rt,p=Ne,n=p.key,d=.7;return e.x=function(t){return arguments.length?(c=t,e):c},e.y=function(t){return arguments.length?(f=t,e):f},e.defined=function(t){return arguments.length?(h=t,e):h},e.interpolate=function(t){return arguments.length?(n="function"==typeof t?p=t:(p=ia.get(t)||Ne).key,e):n},e.tension=function(t){return arguments.length?(d=t,e):d},e}function Se(t){return t[0]}function _e(t){return t[1]}function Ne(t){return t.join("L")}function $e(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("V",(r=t[e])[1],"H",r[0]);return i.join("")}function Ae(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r=t[e])[0],"V",r[1]);return i.join("")}function De(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return Ne(t);var n,r=t.length!=e.length,i="",o=t[0],a=t[1],s=e[0],u=s,l=1;if(r&&(i+="Q"+(a[0]-2*s[0]/3)+","+(a[1]-2*s[1]/3)+","+a[0]+","+a[1],o=t[1],l=2),1<e.length){u=e[1],a=t[l],l++,i+="C"+(o[0]+s[0])+","+(o[1]+s[1])+","+(a[0]-u[0])+","+(a[1]-u[1])+","+a[0]+","+a[1];for(var c=2;c<e.length;c++,l++)a=t[l],u=e[c],i+="S"+(a[0]-u[0])+","+(a[1]-u[1])+","+a[0]+","+a[1]}return r&&(n=t[l],i+="Q"+(a[0]+2*u[0]/3)+","+(a[1]+2*u[1]/3)+","+n[0]+","+n[1]),i}function Le(t,e){for(var n,r=[],i=(1-e)/2,o=t[0],a=t[1],s=1,u=t.length;++s<u;)n=o,o=a,a=t[s],r.push([i*(a[0]-n[0]),i*(a[1]-n[1])]);return r}function je(t){if(t.length<3)return Ne(t);var e=1,n=t.length,r=t[0],i=r[0],o=r[1],a=[i,i,i,(r=t[1])[0]],s=[o,o,o,r[1]],u=[i,",",o,"L",Pe(sa,a),",",Pe(sa,s)];for(t.push(t[n-1]);++e<=n;)r=t[e],a.shift(),a.push(r[0]),s.shift(),s.push(r[1]),qe(u,a,s);return t.pop(),u.push("L",r),u.join("")}function Pe(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function qe(t,e,n){t.push("C",Pe(oa,e),",",Pe(oa,n),",",Pe(aa,e),",",Pe(aa,n),",",Pe(sa,e),",",Pe(sa,n))}function Re(t,e){return(e[1]-t[1])/(e[0]-t[0])}function He(t){for(var e,n,r,i,o=[],a=function(t){for(var e=0,n=t.length-1,r=[],i=t[0],o=t[1],a=r[0]=Re(i,o);++e<n;)r[e]=(a+(a=Re(o,o=t[e+1])))/2;return r[e]=a,r}(t),s=-1,u=t.length-1;++s<u;)e=Re(t[s],t[s+1]),Math.abs(e)<1e-6?a[s]=a[s+1]=0:9<(i=(n=a[s]/e)*n+(r=a[s+1]/e)*r)&&(i=3*e/Math.sqrt(i),a[s]=i*n,a[s+1]=i*r);for(s=-1;++s<=u;)i=(t[Math.min(u,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),o.push([i||0,a[s]*i||0]);return o}function Oe(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function Fe(t,e,n,r){var i=t[0],o=n[0],a=e[0]-i,s=r[0]-o,u=t[1],l=n[1],c=e[1]-u,f=r[1]-l,h=(s*(u-l)-f*(i-o))/(f*a-s*c);return[i+h*a,u+h*c]}function Ie(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}function ze(t,r){var e={list:t.map(function(t,e){return{index:e,x:t[0],y:t[1]}}).sort(function(t,e){return t.y<e.y?-1:t.y>e.y?1:t.x<e.x?-1:t.x>e.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[la[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<r?r:-r,a=0<i?i:-i;return n.c=t.x*r+t.y*i+.5*(r*r+i*i),a<o?(n.a=1,n.b=i/r,n.c/=r):(n.b=1,n.a=r/i,n.c/=i),n},intersect:function(t,e){var n=t.edge,r=e.edge;if(!n||!r||n.region.r==r.region.r)return null;var i=n.a*r.b-n.b*r.a;if(Math.abs(i)<1e-10)return null;var o,a=(n.c*r.b-r.c*n.b)/i,s=(r.c*n.a-n.c*r.a)/i,u=n.region.r,l=r.region.r,c=u.y<l.y||u.y==l.y&&u.x<l.x?(o=t,n):(o=e,r),f=a>=c.region.r.x;return f&&"l"===o.side||!f&&"r"===o.side?null:{x:a,y:s}},rightOf:function(t,e){var n,r,i,o,a,s,u,l,c,f=t.edge,h=f.region.r,p=e.x>h.x;return p&&"l"===t.side?1:p||"r"!==t.side?(1===f.a?(n=e.y-h.y,r=e.x-h.x,a=i=0,!p&&f.b<0||p&&0<=f.b?a=i=n>=f.b*r:(a=e.x+e.y*f.b>f.c,f.b<0&&(a=!a),a||(i=1)),i||(o=h.x-f.region.l.x,a=f.b*(r*r-n*n)<o*n*(1+2*r/o+f.b*f.b),f.b<0&&(a=!a))):(s=f.c-f.a*e.x,u=e.y-s,a=(l=e.x-h.x)*l+(c=s-h.y)*c<u*u),"l"===t.side?a:!a):0},endPoint:function(t,e,n){t.ep[e]=n,t.ep[la[e]]&&r(t)},distance:function(t,e){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}},s={list:[],insert:function(t,e,n){t.vertex=e,t.ystar=e.y+n;for(var r=0,i=s.list,o=i.length;r<o;r++){var a=i[r];if(!(t.ystar>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;e<r&&n[e]!=t;++e);n.splice(e,1)},empty:function(){return 0===s.list.length},nextEvent:function(t){for(var e=0,n=s.list,r=n.length;e<r;++e)if(n[e]==t)return n[e+1];return null},min:function(){var t=s.list[0];return{x:t.vertex.x,y:t.ystar}},extractMin:function(){return s.list.shift()}};n.init(),e.bottomSite=e.list.shift();for(var o,a,u,l,c,f,h,p,d,g,v,m,y,x=e.list.shift();;)if(s.empty()||(o=s.min()),x&&(s.empty()||x.y<o.y||x.y==o.y&&x.x<o.x))a=n.leftBound(x),u=n.right(a),h=n.rightRegion(a),m=i.bisect(h,x),f=n.createHalfEdge(m,"l"),n.insert(a,f),(g=i.intersect(a,f))&&(s.del(a),s.insert(a,g,i.distance(g,x))),a=f,f=n.createHalfEdge(m,"r"),n.insert(a,f),(g=i.intersect(f,u))&&s.insert(f,g,i.distance(g,x)),x=e.list.shift();else{if(s.empty())break;a=s.extractMin(),l=n.left(a),u=n.right(a),c=n.right(u),h=n.leftRegion(a),p=n.rightRegion(u),v=a.vertex,i.endPoint(a.edge,a.side,v),i.endPoint(u.edge,u.side,v),n.del(a),s.del(u),n.del(u),y="l",h.y>p.y&&(d=h,h=p,p=d,y="r"),m=i.bisect(h,p),f=n.createHalfEdge(m,y),n.insert(l,f),i.endPoint(m,la[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 We(t){return t.x}function Ve(t){return t.y}function Be(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Ue(t,e){t=Gr.rgb(t),e=Gr.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"#"+nt(Math.round(n+o*t))+nt(Math.round(r+a*t))+nt(Math.round(i+s*t))}}function Ge(t,e){var n,r={},i={};for(n in t)n in e?r[n]=Qe(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 Ye(e,n){return n-=e=+e,function(t){return e+n*t}}function Xe(t,e){var n,r,i,o,a,s=0,u=[],l=[];for(t+="",e+="",ca.lastIndex=0,r=0;n=ca.exec(e);++r)n.index&&u.push(e.substring(s,n.index)),l.push({i:u.length,x:n[0]}),u.push(null),s=ca.lastIndex;for(s<e.length&&u.push(e.substring(s)),r=0,o=l.length;(n=ca.exec(t))&&r<o;++r)if((a=l[r]).x==n[0]){if(a.i)if(null==u[a.i+1])for(u[a.i-1]+=a.x,u.splice(a.i,1),i=r+1;i<o;++i)l[i].i--;else for(u[a.i-1]+=a.x+u[a.i+1],u.splice(a.i,2),i=r+1;i<o;++i)l[i].i-=2;else if(null==u[a.i+1])u[a.i]=a.x;else for(u[a.i]=a.x+u[a.i+1],u.splice(a.i+1,1),i=r+1;i<o;++i)l[i].i--;l.splice(r,1),o--,r--}else a.x=Ye(parseFloat(n[0]),parseFloat(a.x));for(;r<o;)a=l.pop(),null==u[a.i+1]?u[a.i]=a.x:(u[a.i]=a.x+u[a.i+1],u.splice(a.i+1,1)),o--;return 1===u.length?null==u[0]?(a=l[0].x,function(t){return a(t)+""}):function(){return e}:function(t){for(r=0;r<o;++r)u[(a=l[r]).i]=a.x(t);return u.join("")}}function Qe(t,e){for(var n,r=Gr.interpolators.length;0<=--r&&!(n=Gr.interpolators[r](t,e)););return n}function Ze(t,e){for(var n=[],r=[],i=t.length,o=e.length,a=Math.min(t.length,e.length),s=0;s<a;++s)n.push(Qe(t[s],e[s]));for(;s<i;++s)r[s]=t[s];for(;s<o;++s)r[s]=e[s];return function(t){for(s=0;s<a;++s)r[s]=n[s](t);return r}}function Je(e){return function(t){return 1-e(1-t)}}function Ke(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function tn(t){return t*t}function en(t){return t*t*t}function nn(t){if(t<=0)return 0;if(1<=t)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}function rn(t){return 1-Math.cos(t*Mi/2)}function on(t){return Math.pow(2,10*(t-1))}function an(t){return 1-Math.sqrt(1-t*t)}function sn(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function un(e,n){return n-=e,function(t){return Math.round(e+n*t)}}function ln(t){var e,n,r,i=[t.a,t.b],o=[t.c,t.d],a=fn(i),s=cn(i,o),u=fn(((e=o)[0]+=(r=-s)*(n=i)[0],e[1]+=r*n[1],e))||0;i[0]*o[1]<o[0]*i[1]&&(i[0]*=-1,i[1]*=-1,a*=-1,s*=-1),this.rotate=(a?Math.atan2(i[1],i[0]):Math.atan2(-o[0],o[1]))*Ei,this.translate=[t.e,t.f],this.scale=[a,u],this.skew=u?Math.atan2(s,u)*Ei:0}function cn(t,e){return t[0]*e[0]+t[1]*e[1]}function fn(t){var e=Math.sqrt(cn(t,t));return e&&(t[0]/=e,t[1]/=e),e}function hn(t,e){var r,i=[],o=[],n=Gr.transform(t),a=Gr.transform(e),s=n.translate,u=a.translate,l=n.rotate,c=a.rotate,f=n.skew,h=a.skew,p=n.scale,d=a.scale;return s[0]!=u[0]||s[1]!=u[1]?(i.push("translate(",null,",",null,")"),o.push({i:1,x:Ye(s[0],u[0])},{i:3,x:Ye(s[1],u[1])})):u[0]||u[1]?i.push("translate("+u+")"):i.push(""),l!=c?(180<l-c?c+=360:180<c-l&&(l+=360),o.push({i:i.push(i.pop()+"rotate(",null,")")-2,x:Ye(l,c)})):c&&i.push(i.pop()+"rotate("+c+")"),f!=h?o.push({i:i.push(i.pop()+"skewX(",null,")")-2,x:Ye(f,h)}):h&&i.push(i.pop()+"skewX("+h+")"),p[0]!=d[0]||p[1]!=d[1]?(r=i.push(i.pop()+"scale(",null,",",null,")"),o.push({i:r-4,x:Ye(p[0],d[0])},{i:r-2,x:Ye(p[1],d[1])})):1==d[0]&&1==d[1]||i.push(i.pop()+"scale("+d+")"),r=o.length,function(t){for(var e,n=-1;++n<r;)i[(e=o[n]).i]=e.x(t);return i.join("")}}function pn(e,n){return n=n-(e=+e)?1/(n-e):0,function(t){return(t-e)*n}}function dn(e,n){return n=n-(e=+e)?1/(n-e):0,function(t){return Math.max(0,Math.min(1,(t-e)*n))}}function gn(t){for(var e=t.source,n=t.target,r=function(t,e){if(t===e)return t;for(var n=vn(t),r=vn(e),i=n.pop(),o=r.pop(),a=null;i===o;)a=i,i=n.pop(),o=r.pop();return a}(e,n),i=[e];e!==r;)e=e.parent,i.push(e);for(var o=i.length;n!==r;)i.splice(o,0,n),n=n.parent;return i}function vn(t){for(var e=[],n=t.parent;null!=n;)e.push(t),n=(t=n).parent;return e.push(t),e}function mn(t){t.fixed|=2}function yn(t){t.fixed&=-7}function xn(t){t.fixed|=4,t.px=t.x,t.py=t.y}function bn(t){t.fixed&=-5}function wn(t,e){return Gr.rebind(t,e,"sort","children","value"),(t.nodes=t).links=Tn,t}function Mn(t){return t.children}function Cn(t){return t.value}function kn(t,e){return e.value-t.value}function Tn(t){return Gr.merge(t.map(function(e){return(e.children||[]).map(function(t){return{source:e,target:t}})}))}function En(t){return t.x}function Sn(t){return t.y}function _n(t,e,n){t.y0=e,t.y=n}function Nn(t){return Gr.range(t.length)}function $n(t){for(var e=-1,n=t[0].length,r=[];++e<n;)r[e]=0;return r}function An(t){for(var e,n=1,r=0,i=t[0][1],o=t.length;n<o;++n)(e=t[n][1])>i&&(r=n,i=e);return r}function Dn(t){return t.reduce(Ln,0)}function Ln(t,e){return t+e[1]}function jn(t,e){return Pn(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Pn(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 qn(t){return[Gr.min(t),Gr.max(t)]}function Rn(t,e){return t.parent==e.parent?1:2}function Hn(t){var e=t.children;return e&&e.length?e[0]:t._tree.thread}function On(t){var e,n=t.children;return n&&(e=n.length)?n[e-1]:t._tree.thread}function Fn(t,e){var n=t.children;if(n&&(i=n.length))for(var r,i,o=-1;++o<i;)0<e(r=Fn(n[o],e),t)&&(t=r);return t}function In(t,e){return t.x-e.x}function zn(t,e){return e.x-t.x}function Wn(t,e){return t.depth-e.depth}function Vn(t,u){!function t(e,n){var r=e.children;if(r&&(o=r.length))for(var i,o,a=null,s=-1;++s<o;)t(i=r[s],a),a=i;u(e,n)}(t,null)}function Bn(t,e){return t.value-e.value}function Un(t,e){var n=t._pack_next;(t._pack_next=e)._pack_prev=t,(e._pack_next=n)._pack_prev=e}function Gn(t,e){(t._pack_next=e)._pack_prev=t}function Yn(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return n*n+r*r<.999*i*i}function Xn(t){function e(t){u=Math.min(t.x-t.r,u),l=Math.max(t.x+t.r,l),c=Math.min(t.y-t.r,c),f=Math.max(t.y+t.r,f)}if((n=t.children)&&(s=n.length)){var n,r,i,o,a,s,u=1/0,l=-1/0,c=1/0,f=-1/0;if(n.forEach(Qn),(r=n[0]).x=-r.r,r.y=0,e(r),1<s&&((i=n[1]).x=i.r,i.y=0,e(i),2<s))for(Jn(r,i,o=n[2]),e(o),Un(r,o),Un(r._pack_prev=o,i),i=r._pack_next,x=3;x<s;x++){Jn(r,i,o=n[x]);for(var h=0,p=1,d=1,g=i._pack_next;g!==i;g=g._pack_next,p++)if(Yn(g,o)){h=1;break}if(1==h)for(a=r._pack_prev;a!==g._pack_prev&&!Yn(a,o);a=a._pack_prev,d++);h?(p<d||p==d&&i.r<r.r?Gn(r,i=g):Gn(r=a,i),x--):(Un(r,o),e(i=o))}for(var v=(u+l)/2,m=(c+f)/2,y=0,x=0;x<s;x++)(o=n[x]).x-=v,o.y-=m,y=Math.max(y,o.r+Math.sqrt(o.x*o.x+o.y*o.y));t.r=y,n.forEach(Zn)}}function Qn(t){t._pack_next=t._pack_prev=t}function Zn(t){delete t._pack_next,delete t._pack_prev}function Jn(t,e,n){var r,i,o,a,s=t.r+n.r,u=e.x-t.x,l=e.y-t.y;s&&(u||l)?(r=e.r+n.r,o=.5+((s*=s)-(r*=r))/(2*(i=u*u+l*l)),a=Math.sqrt(Math.max(0,2*r*(s+i)-(s-=i)*s-r*r))/(2*i),n.x=t.x+o*u+a*l,n.y=t.y+o*l-a*u):(n.x=t.x+s,n.y=t.y)}function Kn(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function tr(t,e){var n=t.x+e[3],r=t.y+e[0],i=t.dx-e[1]-e[3],o=t.dy-e[0]-e[2];return i<0&&(n+=i/2,i=0),o<0&&(r+=o/2,o=0),{x:n,y:r,dx:i,dy:o}}function er(t){var e=t[0],n=t[t.length-1];return e<n?[e,n]:[n,e]}function nr(t){return t.rangeExtent?t.rangeExtent():er(t.range())}function rr(t,e,n,r){var i=n(t[0],t[1]),o=r(e[0],e[1]);return function(t){return o(i(t))}}function ir(t,e){var n,r=0,i=t.length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}function or(n,t,e,r){var i=[],o=[],a=0,s=Math.min(n.length,t.length)-1;for(n[s]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<=s;)i.push(e(n[a-1],n[a])),o.push(r(t[a-1],t[a]));return function(t){var e=Gr.bisect(n,t,1,s)-1;return o[e](i[e](t))}}function ar(t,e){return Gr.rebind(t,e,"range","rangeRound","interpolate","clamp")}function sr(t,e){return ir(t,(n=ur(t,e)[2])?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:ba);var n}function ur(t,e){null==e&&(e=10);var n=er(t),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),o=e/r*i;return o<=.15?i*=10:o<=.35?i*=5:o<=.75&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function lr(t,e){return Gr.range.apply(Gr,ur(t,e))}function cr(t,e,n){var c=-Math.floor(Math.log(ur(t,e)[2])/Math.LN10+.01);return Gr.format(n?n.replace(Yi,function(t,e,n,r,i,o,a,s,u,l){return[e,n,r,i,o,a,s,u||"."+(c-2*("%"===l)),l].join("")}):",."+c+"f")}function fr(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function hr(t){return t.innerRadius}function pr(t){return t.outerRadius}function dr(t){return t.startAngle}function gr(t){return t.endAngle}function vr(t){for(var e,n,r,i=-1,o=t.length;++i<o;)n=(e=t[i])[0],r=e[1]+Sa,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function mr(d){function e(t){function e(){o.push("M",b(d(s),C),M,w(d(a.reverse()),C),"Z")}for(var n,r,i,o=[],a=[],s=[],u=-1,l=t.length,c=ut(g),f=ut(m),h=g===v?function(){return r}:ut(v),p=m===y?function(){return i}:ut(y);++u<l;)x.call(this,n=t[u],u)?(a.push([r=+c.call(this,n,u),i=+f.call(this,n,u)]),s.push([+h.call(this,n,u),+p.call(this,n,u)])):a.length&&(e(),a=[],s=[]);return a.length&&e(),o.length?o.join(""):null}var g=Se,v=Se,m=0,y=_e,x=Rt,b=Ne,n=b.key,w=b,M="L",C=.7;return e.x=function(t){return arguments.length?(g=v=t,e):v},e.x0=function(t){return arguments.length?(g=t,e):g},e.x1=function(t){return arguments.length?(v=t,e):v},e.y=function(t){return arguments.length?(m=y=t,e):y},e.y0=function(t){return arguments.length?(m=t,e):m},e.y1=function(t){return arguments.length?(y=t,e):y},e.defined=function(t){return arguments.length?(x=t,e):x},e.interpolate=function(t){return arguments.length?(n="function"==typeof t?b=t:(b=ia.get(t)||Ne).key,w=b.reverse||b,M=b.closed?"M":"L",e):n},e.tension=function(t){return arguments.length?(C=t,e):C},e}function yr(t){return t.radius}function xr(t){return[t.x,t.y]}function br(){return 64}function wr(){return"circle"}function Mr(t){var e=Math.sqrt(t/Mi);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}function Cr(t,e){return li(t,ja),t.id=e,t}function kr(){var t=this.__transition__;t&&++t.active}function Tr(t,r,i,o){var a=t.id;return C(t,"function"==typeof i?function(t,e,n){t.__transition__[a].tween.set(r,o(i.call(t,t.__data__,e,n)))}:(i=o(i),function(t){t.__transition__[a].tween.set(r,i)}))}function Er(t){return null==t&&(t=""),function(){this.textContent=t}}function Sr(c,f,h,t){var r,p=c.__transition__||(c.__transition__={active:0,count:0}),d=p[h];d||(r=t.time,d=p[h]={tween:new x,time:r,ease:t.ease,delay:t.delay,duration:t.duration},++p.count,Gr.timer(function(t){function e(t){return p.active>h?i():(p.active=h,d.event&&d.event.start.call(c,o,f),d.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(p.active!==h)return i();for(var e=(t-s)/u,n=a(e),r=l.length;0<r;)l[--r].call(c,n);return 1<=e?(d.event&&d.event.end.call(c,o,f),i()):void 0}function i(){return--p.count?delete p[h]:delete c.__transition__,1}var o=c.__data__,a=d.ease,s=d.delay,u=d.duration,l=[];return s<=t?e(t):void pt(e,s,r)},0,r))}function _r(t,e){t.attr("transform",function(t){return"translate("+e(t)+",0)"})}function Nr(t,e){t.attr("transform",function(t){return"translate(0,"+e(t)+")"})}function $r(){this._=new Date(1<arguments.length?Date.UTC.apply(this,arguments):arguments[0])}function Ar(r,o,a){function t(t){var e=r(t),n=i(e,1);return t-e<n-t?e:n}function s(t){return o(t=r(new Ia(t-1)),1),t}function i(t,e){return o(t=new Ia(+t),e),t}function u(t,e,n){var r=s(t),i=[];if(1<n)for(;r<e;)a(r)%n||i.push(new Date(+r)),o(r,1);else for(;r<e;)i.push(new Date(+r)),o(r,1);return i}(r.floor=r).round=t,r.ceil=s,r.offset=i,r.range=u;var e=r.utc=Dr(r);return(e.floor=e).round=Dr(t),e.ceil=Dr(s),e.offset=Dr(i),e.range=function(t,e,n){try{var r=new(Ia=$r);return r._=t,u(r,e,n)}finally{Ia=Date}},r}function Dr(r){return function(t,e){try{var n=new(Ia=$r);return n._=t,r(n,e)._}finally{Ia=Date}}}function Lr(s){function t(t){for(var e,n,r,i=[],o=-1,a=0;++o<u;)37===s.charCodeAt(o)&&(i.push(s.substring(a,o)),null!=(n=ns[e=s.charAt(++o)])&&(e=s.charAt(++o)),(r=rs[e])&&(e=r(t,null==n?"e"===e?" ":"0":n)),i.push(e),a=o+1);return i.push(s.substring(a,o)),i.join("")}var u=s.length;return t.parse=function(t){var e={y:1900,m:0,d:1,H:0,M:0,S:0,L:0};if(jr(e,s,t,0)!=t.length)return null;"p"in e&&(e.H=e.H%12+12*e.p);var n=new Ia;return"j"in e?n.setFullYear(e.y,0,e.j):"w"in e&&("W"in e||"U"in e)?(n.setFullYear(e.y,0,1),n.setFullYear(e.y,0,"W"in e?(e.w+6)%7+7*e.W-(n.getDay()+5)%7:e.w+7*e.U-(n.getDay()+6)%7)):n.setFullYear(e.y,e.m,e.d),n.setHours(e.H,e.M,e.S,e.L),n},t.toString=function(){return s},t}function jr(t,e,n,r){for(var i,o,a,s=0,u=e.length,l=n.length;s<u;){if(l<=r)return-1;if(37===(i=e.charCodeAt(s++))){if(a=e.charAt(s++),!(o=is[a in ns?e.charAt(s++):a])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function Pr(t){return new RegExp("^(?:"+t.map(Gr.requote).join("|")+")","i")}function qr(t){for(var e=new x,n=-1,r=t.length;++n<r;)e.set(t[n].toLowerCase(),n);return e}function Rr(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Hr(t,e,n){os.lastIndex=0;var r=os.exec(e.substring(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Or(t,e,n){os.lastIndex=0;var r=os.exec(e.substring(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Fr(t){function e(t){try{var e=new(Ia=$r);return e._=t,n(e)}finally{Ia=Date}}var n=Lr(t);return e.parse=function(t){try{Ia=$r;var e=n.parse(t);return e&&e._}finally{Ia=Date}},e.toString=n.toString,e}function Ir(t){return t.toISOString()}function zr(e,i,t){function a(t){return e(t)}function s(t,e){var n=(t[1]-t[0])/e,r=Gr.bisect(us,n);return r==us.length?[i.year,ur(t.map(function(t){return t/31536e6}),e)[2]]:r?i[n/us[r-1]<us[r]/n?r-1:r]:[fs,ur(t,e)[2]]}return a.invert=function(t){return Wr(e.invert(t))},a.domain=function(t){return arguments.length?(e.domain(t),a):e.domain().map(Wr)},a.nice=function(e,n){function r(t){return!isNaN(t)&&!e.range(t,Wr(+t+1),n).length}var t=a.domain(),i=er(t),o=null==e?s(i,10):"number"==typeof e&&s(i,e);return o&&(e=o[0],n=o[1]),a.domain(ir(t,1<n?{floor:function(t){for(;r(t=e.floor(t));)t=Wr(t-1);return t},ceil:function(t){for(;r(t=e.ceil(t));)t=Wr(+t+1);return t}}:e))},a.ticks=function(t,e){var n=er(a.domain()),r=null==t?s(n,10):"number"==typeof t?s(n,t):!t.range&&[{range:t},e];return r&&(t=r[0],e=r[1]),t.range(n[0],Wr(+n[1]+1),e)},a.tickFormat=function(){return t},a.copy=function(){return zr(e.copy(),i,t)},ar(a,e)}function Wr(t){return new Date(t)}function Vr(r){return function(t){for(var e=r.length-1,n=r[e];!n[1](t);)n=r[--e];return n[0](t)}}function Br(t){return JSON.parse(t.responseText)}function Ur(t){var e=Qr.createRange();return e.selectNode(Qr.body),e.createContextualFragment(t.responseText)}var Gr={version:"3.3.1"};Date.now||(Date.now=function(){return+new Date});var Yr=[].slice,Xr=function(t){return Yr.call(t)},Qr=document,Zr=Qr.documentElement,Jr=window;try{Xr(Zr.childNodes)[0].nodeType}catch(t){Xr=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}try{Qr.createElement("div").style.setProperty("opacity",0,"")}catch(t){var Kr=Jr.Element.prototype,ti=Kr.setAttribute,ei=Kr.setAttributeNS,ni=Jr.CSSStyleDeclaration.prototype,ri=ni.setProperty;Kr.setAttribute=function(t,e){ti.call(this,t,e+"")},Kr.setAttributeNS=function(t,e,n){ei.call(this,t,e,n+"")},ni.setProperty=function(t,e,n){ri.call(this,t,e+"",n)}}Gr.ascending=function(t,e){return t<e?-1:e<t?1:e<=t?0:NaN},Gr.descending=function(t,e){return e<t?-1:t<e?1:t<=e?0:NaN},Gr.min=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o&&!(null!=(n=t[i])&&n<=n);)n=void 0;for(;++i<o;)null!=(r=t[i])&&r<n&&(n=r)}else{for(;++i<o&&!(null!=(n=e.call(t,t[i],i))&&n<=n);)n=void 0;for(;++i<o;)null!=(r=e.call(t,t[i],i))&&r<n&&(n=r)}return n},Gr.max=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o&&!(null!=(n=t[i])&&n<=n);)n=void 0;for(;++i<o;)null!=(r=t[i])&&n<r&&(n=r)}else{for(;++i<o&&!(null!=(n=e.call(t,t[i],i))&&n<=n);)n=void 0;for(;++i<o;)null!=(r=e.call(t,t[i],i))&&n<r&&(n=r)}return n},Gr.extent=function(t,e){var n,r,i,o=-1,a=t.length;if(1===arguments.length){for(;++o<a&&!(null!=(n=i=t[o])&&n<=n);)n=i=void 0;for(;++o<a;)null!=(r=t[o])&&(r<n&&(n=r),i<r&&(i=r))}else{for(;++o<a&&!(null!=(n=i=e.call(t,t[o],o))&&n<=n);)n=void 0;for(;++o<a;)null!=(r=e.call(t,t[o],o))&&(r<n&&(n=r),i<r&&(i=r))}return[n,i]},Gr.sum=function(t,e){var n,r=0,i=t.length,o=-1;if(1===arguments.length)for(;++o<i;)isNaN(n=+t[o])||(r+=n);else for(;++o<i;)isNaN(n=+e.call(t,t[o],o))||(r+=n);return r},Gr.mean=function(t,e){var n,r=t.length,i=0,o=-1,a=0;if(1===arguments.length)for(;++o<r;)s(n=t[o])&&(i+=(n-i)/++a);else for(;++o<r;)s(n=e.call(t,t[o],o))&&(i+=(n-i)/++a);return a?i:void 0},Gr.quantile=function(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i},Gr.median=function(t,e){return 1<arguments.length&&(t=t.map(e)),(t=t.filter(s)).length?Gr.quantile(t.sort(Gr.ascending),.5):void 0},Gr.bisector=function(o){return{left:function(t,e,n,r){for(arguments.length<3&&(n=0),arguments.length<4&&(r=t.length);n<r;){var i=n+r>>>1;o.call(t,t[i],i)<e?n=1+i:r=i}return n},right:function(t,e,n,r){for(arguments.length<3&&(n=0),arguments.length<4&&(r=t.length);n<r;){var i=n+r>>>1;e<o.call(t,t[i],i)?r=i:n=1+i}return n}}};var ii=Gr.bisector(function(t){return t});Gr.bisectLeft=ii.left,Gr.bisect=Gr.bisectRight=ii.right,Gr.shuffle=function(t){for(var e,n,r=t.length;r;)n=0|Math.random()*r--,e=t[r],t[r]=t[n],t[n]=e;return t},Gr.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},Gr.pairs=function(t){for(var e=0,n=t.length-1,r=t[0],i=new Array(n<0?0:n);e<n;)i[e]=[r,r=t[++e]];return i},Gr.zip=function(){if(!(r=arguments.length))return[];for(var t=-1,e=Gr.min(arguments,a),n=new Array(e);++t<e;)for(var r,i=-1,o=n[t]=new Array(r);++i<r;)o[i]=arguments[i][t];return n},Gr.transpose=function(t){return Gr.zip.apply(Gr,t)},Gr.keys=function(t){var e=[];for(var n in t)e.push(n);return e},Gr.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},Gr.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},Gr.merge=function(t){return Array.prototype.concat.apply([],t)},Gr.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),1/0==(e-t)/n)throw new Error("infinite range");var r,i=[],o=function(t){for(var e=1;t*e%1;)e*=10;return e}(Math.abs(n)),a=-1;if(t*=o,e*=o,(n*=o)<0)for(;(r=t+n*++a)>e;)i.push(r/o);else for(;(r=t+n*++a)<e;)i.push(r/o);return i},Gr.map=function(t){var n=new x;if(t instanceof x)t.forEach(function(t,e){n.set(t,e)});else for(var e in t)n.set(e,t[e]);return n},t(x,{has:function(t){return oi+t in this},get:function(t){return this[oi+t]},set:function(t,e){return this[oi+t]=e},remove:function(t){return(t=oi+t)in this&&delete this[t]},keys:function(){var e=[];return this.forEach(function(t){e.push(t)}),e},values:function(){var n=[];return this.forEach(function(t,e){n.push(e)}),n},entries:function(){var n=[];return this.forEach(function(t,e){n.push({key:t,value:e})}),n},forEach:function(t){for(var e in this)e.charCodeAt(0)===ai&&t.call(this,e.substring(1),this[e])}});var oi="\0",ai=oi.charCodeAt(0);Gr.nest=function(){function f(n,t,r){if(r>=g.length)return p?p.call(d,t):h?t.sort(h):t;for(var e,i,o,a,s=-1,u=t.length,l=g[r++],c=new x;++s<u;)(a=c.get(e=l(i=t[s])))?a.push(i):c.set(e,[i]);return o=n?(i=n(),function(t,e){i.set(t,f(n,e,r))}):(i={},function(t,e){i[t]=f(n,e,r)}),c.forEach(o),i}var h,p,d={},g=[],e=[];return d.map=function(t,e){return f(e,t,0)},d.entries=function(t){return function n(t,r){if(r>=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(Gr.map,t,0),0)},d.key=function(t){return g.push(t),d},d.sortKeys=function(t){return e[g.length-1]=t,d},d.sortValues=function(t){return h=t,d},d.rollup=function(t){return p=t,d},d},Gr.set=function(t){var e=new l;if(t)for(var n=0,r=t.length;n<r;++n)e.add(t[n]);return e},t(l,{has:function(t){return oi+t in this},add:function(t){return this[oi+t]=!0,t},remove:function(t){return(t=oi+t)in this&&delete this[t]},values:function(){var e=[];return this.forEach(function(t){e.push(t)}),e},forEach:function(t){for(var e in this)e.charCodeAt(0)===ai&&t.call(this,e.substring(1))}}),Gr.behavior={},Gr.rebind=function(t,e){for(var n,r=1,i=arguments.length;++r<i;)t[n=arguments[r]]=function(e,n,r){return function(){var t=r.apply(n,arguments);return t===n?e:t}}(t,e,e[n]);return t};var si=["webkit","ms","moz","Moz","o","O"];Gr.dispatch=function(){for(var t=new r,e=-1,n=arguments.length;++e<n;)t[arguments[e]]=u(t);return t},r.prototype.on=function(t,e){var n=t.indexOf("."),r="";if(0<=n&&(r=t.substring(n+1),t=t.substring(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},Gr.event=null,Gr.requote=function(t){return t.replace(ui,"\\$&")};var ui=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,li={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]},ci=function(t,e){return e.querySelector(t)},fi=function(t,e){return e.querySelectorAll(t)},hi=Zr[e(Zr,"matchesSelector")],pi=function(t,e){return hi.call(t,e)};"function"==typeof Sizzle&&(ci=function(t,e){return Sizzle(t,e)[0]||null},fi=function(t,e){return Sizzle.uniqueSort(Sizzle(t,e))},pi=Sizzle.matchesSelector),Gr.selection=function(){return mi};var di=Gr.selection.prototype=[];di.select=function(t){var e,n,r,i,o=[];t=h(t);for(var a=-1,s=this.length;++a<s;){o.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var u=-1,l=r.length;++u<l;)(i=r[u])?(e.push(n=t.call(i,i.__data__,u,a)),n&&"__data__"in i&&(n.__data__=i.__data__)):e.push(null)}return f(o)},di.selectAll=function(t){var e,n,r=[];t=g(t);for(var i=-1,o=this.length;++i<o;)for(var a=this[i],s=-1,u=a.length;++s<u;)(n=a[s])&&(r.push(e=Xr(t.call(n,n.__data__,s,i))),e.parentNode=n);return f(r)};var gi={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};Gr.ns={prefix:gi,qualify:function(t){var e=t.indexOf(":"),n=t;return 0<=e&&(n=t.substring(0,e),t=t.substring(e+1)),gi.hasOwnProperty(n)?{space:gi[n],local:t}:t}},di.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return(t=Gr.ns.qualify(t)).local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(o(e,t[e]));return this}return this.each(o(t,e))},di.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=t.trim().split(/^|\s+/g)).length,i=-1;if(e=n.classList){for(;++i<r;)if(!e.contains(t[i]))return!1}else for(e=n.getAttribute("class");++i<r;)if(!d(t[i]).test(e))return!1;return!0}for(e in t)this.each(v(e,t[e]));return this}return this.each(v(t,e))},di.style=function(t,e,n){var r=arguments.length;if(r<3){if("string"!=typeof t){for(n in r<2&&(e=""),t)this.each(y(n,t[n],e));return this}if(r<2)return Jr.getComputedStyle(this.node(),null).getPropertyValue(t);n=""}return this.each(y(t,e,n))},di.property=function(t,e){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(e in t)this.each(n(e,t[e]));return this}return this.each(n(t,e))},di.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},di.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},di.append=function(t){return t=b(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},di.insert=function(t,e){return t=b(t),e=h(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments))})},di.remove=function(){return this.each(function(){var t=this.parentNode;t&&t.removeChild(this)})},di.data=function(t,g){function e(t,e){var n,r,i=t.length,o=e.length,a=Math.min(i,o),s=new Array(o),u=new Array(o),l=new Array(i);if(g){for(var c,f=new x,h=new x,p=[],d=-1;++d<i;)c=g.call(n=t[d],n.__data__,d),f.has(c)?l[d]=n:f.set(c,n),p.push(c);for(d=-1;++d<o;)c=g.call(e,r=e[d],d),(n=f.get(c))?(s[d]=n).__data__=r:h.has(c)||(u[d]=w(r)),h.set(c,r),f.remove(c);for(d=-1;++d<i;)f.has(p[d])&&(l[d]=t[d])}else{for(d=-1;++d<a;)n=t[d],r=e[d],n?(n.__data__=r,s[d]=n):u[d]=w(r);for(;d<o;++d)u[d]=w(e[d]);for(;d<i;++d)l[d]=t[d]}u.update=s,u.parentNode=s.parentNode=l.parentNode=t.parentNode,v.push(u),m.push(s),y.push(l)}var n,r,i=-1,o=this.length;if(!arguments.length){for(t=new Array(o=(n=this[0]).length);++i<o;)(r=n[i])&&(t[i]=r.__data__);return t}var v=k([]),m=f([]),y=f([]);if("function"==typeof t)for(;++i<o;)e(n=this[i],t.call(n,n.parentNode.__data__,i));else for(;++i<o;)e(n=this[i],t);return m.enter=function(){return v},m.exit=function(){return y},m},di.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},di.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=M(t));for(var o=0,a=this.length;o<a;o++){i.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var s=0,u=n.length;s<u;s++)(r=n[s])&&t.call(r,r.__data__,s)&&e.push(r)}return f(i)},di.order=function(){for(var t=-1,e=this.length;++t<e;)for(var n,r=this[t],i=r.length-1,o=r[i];0<=--i;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},di.sort=function(t){t=function(n){return arguments.length||(n=Gr.ascending),function(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}}.apply(this,arguments);for(var e=-1,n=this.length;++e<n;)this[e].sort(t);return this.order()},di.each=function(r){return C(this,function(t,e,n){r.call(t,t.__data__,e,n)})},di.call=function(t){var e=Xr(arguments);return t.apply(e[0]=this,e),this},di.empty=function(){return!this.node()},di.node=function(){for(var t=0,e=this.length;t<e;t++)for(var n=this[t],r=0,i=n.length;r<i;r++){var o=n[r];if(o)return o}return null},di.size=function(){var t=0;return this.each(function(){++t}),t};var vi=[];Gr.selection.enter=k,(Gr.selection.enter.prototype=vi).append=di.append,vi.empty=di.empty,vi.node=di.node,vi.call=di.call,vi.size=di.size,vi.select=function(t){for(var e,n,r,i,o,a=[],s=-1,u=this.length;++s<u;){r=(i=this[s]).update,a.push(e=[]),e.parentNode=i.parentNode;for(var l=-1,c=i.length;++l<c;)(o=i[l])?(e.push(r[l]=n=t.call(i.parentNode,o.__data__,l,s)),n.__data__=o.__data__):e.push(null)}return f(a)},vi.insert=function(t,e){return arguments.length<2&&(a=this,e=function(t,e,n){var r,i=a[n].update,o=i.length;for(n!=u&&(u=n,s=0),s<=e&&(s=e+1);!(r=i[s])&&++s<o;);return r}),di.insert.call(this,t,e);var a,s,u},Gr.select=function(t){var e=["string"==typeof t?ci(t,Qr):t];return e.parentNode=Zr,f([e])},Gr.selectAll=function(t){var e=Xr("string"==typeof t?fi(t,Qr):t);return e.parentNode=Zr,f([e])};var mi=Gr.select(Zr);di.on=function(t,e,n){var r=arguments.length;if(r<3){if("string"!=typeof t){for(n in r<2&&(e=!1),t)this.each(T(n,t[n],e));return this}if(r<2)return(r=this.node()["__on"+t])&&r._;n=!1}return this.each(T(t,e,n))};var yi=Gr.map({mouseenter:"mouseover",mouseleave:"mouseout"});yi.forEach(function(t){"on"+t in Qr&&yi.remove(t)});var xi=e(Zr.style,"userSelect"),bi=0;Gr.mouse=function(t){return _(t,i())};var wi=/WebKit/.test(Jr.navigator.userAgent)?-1:0;Gr.touches=function(n,t){return arguments.length<2&&(t=i().touches),t?Xr(t).map(function(t){var e=_(n,t);return e.identifier=t.identifier,e}):[]},Gr.behavior.drag=function(){function e(){this.on("mousedown.drag",n).on("touchstart.drag",r)}function t(f,h,p,d){return function(){function r(){n.on(p+"."+e,null).on(d+"."+e,null),l(u&&Gr.event.target===t),o({type:"dragend"})}var i=this.parentNode,o=g.of(this,arguments),t=Gr.event.target,a=f(),e=null==a?"drag":"drag-"+a,s=h(i,a),u=0,n=Gr.select(Jr).on(p+"."+e,function(){if(!i)return r();var t=h(i,a),e=t[0]-s[0],n=t[1]-s[1];u|=e|n,o({type:"drag",x:(s=t)[0]+c[0],y:t[1]+c[1],dx:e,dy:n})}).on(d+"."+e,r),l=j(),c=v?[(c=v.apply(this,arguments)).x-s[0],c.y-s[1]]:[0,0];o({type:"dragstart"})}}var g=L(e,"drag","dragstart","dragend"),v=null,n=t(c,Gr.mouse,"mousemove","mouseup"),r=t(function(){return Gr.event.changedTouches[0].identifier},function(t,e){return Gr.touches(t).filter(function(t){return t.identifier===e})[0]},"touchmove","touchend");return e.origin=function(t){return arguments.length?(v=t,e):v},Gr.rebind(e,g,"on")};var Mi=Math.PI,Ci=1e-6,ki=Ci*Ci,Ti=Mi/180,Ei=180/Mi,Si=Math.SQRT2;Gr.interpolateZoom=function(t,e){function n(t){var e,n=t*m;if(v){var r=q(g),i=s/(2*h)*(r*(P(e=Si*n+g)/q(e))-P(g));return[o+i*l,a+i*c,s*r/q(Si*n+g)]}return[o+t*l,a+t*c,s*Math.exp(Si*n)]}var o=t[0],a=t[1],s=t[2],r=e[0],i=e[1],u=e[2],l=r-o,c=i-a,f=l*l+c*c,h=Math.sqrt(f),p=(u*u-s*s+4*f)/(2*s*2*h),d=(u*u-s*s-4*f)/(2*u*2*h),g=Math.log(Math.sqrt(p*p+1)-p),v=Math.log(Math.sqrt(d*d+1)-d)-g,m=(v||Math.log(u/s))/Si;return n.duration=1e3*m,n},Gr.behavior.zoom=function(){function e(t){t.on(T,i).on($i+".zoom",r).on(E,s).on("dblclick.zoom",a).on(_,o)}function p(t){return[(t[0]-M.x)/M.k,(t[1]-M.y)/M.k]}function d(t){M.k=Math.max(k[0],Math.min(k[1],t))}function g(t,e){var n;e=[(n=e)[0]*M.k+M.x,n[1]*M.k+M.y],M.x+=t[0]-e[0],M.y+=t[1]-e[1]}function n(){h&&h.domain(f.range().map(function(t){return(t-M.x)/M.k}).map(f.invert)),w&&w.domain(b.range().map(function(t){return(t-M.y)/M.k}).map(b.invert))}function v(t){t({type:"zoomstart"})}function m(t){n(),t({type:"zoom",scale:M.k,translate:[M.x,M.y]})}function y(t){t({type:"zoomend"})}function i(){var t=this,e=A.of(t,arguments),n=Gr.event.target,r=0,i=Gr.select(Jr).on(E,function(){r=1,g(Gr.mouse(t),o),m(e)}).on(S,function(){i.on(E,Jr===t?s:null).on(S,null),a(r&&Gr.event.target===n),y(e)}),o=p(Gr.mouse(t)),a=j();kr.call(t),v(e)}function o(){function s(){var t=Gr.touches(c);return l=M.k,u={},t.forEach(function(t){u[t.identifier]=p(t)}),t}function t(){var t,e,n,r,i,o=Date.now(),a=s();1===a.length?(o-x<500&&(e=a[0],t=u[e.identifier],d(2*M.k),g(e,t),D(),m(f)),x=o):1<a.length&&(e=a[0],n=a[1],r=e[0]-n[0],i=e[1]-n[1],h=r*r+i*i)}var u,l,c=this,f=A.of(c,arguments),h=0,e=Gr.select(Jr).on(N,function(){var t,e,n,r,i=Gr.touches(c),o=i[0],a=u[o.identifier];(t=i[1])&&(e=u[t.identifier],null==(r=Gr.event.scale)&&(n=(n=t[0]-o[0])*n+(n=t[1]-o[1])*n,r=h&&Math.sqrt(n/h)),o=[(o[0]+t[0])/2,(o[1]+t[1])/2],a=[(a[0]+e[0])/2,(a[1]+e[1])/2],d(r*l)),x=null,g(o,a),m(f)}).on($,function(){Gr.event.touches.length?s():(e.on(N,null).on($,null),n.on(T,i).on(_,o),r(),y(f))}),n=Gr.select(c).on(T,null).on(_,t),r=j();kr.call(c),t(),v(f)}function r(){var t=A.of(this,arguments);c?clearTimeout(c):(kr.call(this),v(t)),c=setTimeout(function(){c=null,y(t)},50),D();var e=l||Gr.mouse(this);u=u||p(e),d(Math.pow(2,.002*_i())*M.k),g(e,u),m(t)}function s(){u=null}function a(){var t=A.of(this,arguments),e=Gr.mouse(this),n=p(e),r=Math.log(M.k)/Math.LN2;v(t),d(Math.pow(2,Gr.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)),g(e,n),m(t),y(t)}var u,l,c,x,f,h,b,w,M={x:0,y:0,k:1},C=[960,500],k=Ni,T="mousedown.zoom",E="mousemove.zoom",S="mouseup.zoom",_="touchstart.zoom",N="touchmove.zoom",$="touchend.zoom",A=L(e,"zoomstart","zoom","zoomend");return e.event=function(t){t.each(function(){var s=A.of(this,arguments),e=M;$a?Gr.select(this).transition().each("start.zoom",function(){M=this.__chart__||{x:0,y:0,k:1},v(s)}).tween("zoom:zoom",function(){var r=C[0],t=C[1],i=r/2,o=t/2,a=Gr.interpolateZoom([(i-M.x)/M.k,(o-M.y)/M.k,r/M.k],[(i-e.x)/e.k,(o-e.y)/e.k,r/e.k]);return function(t){var e=a(t),n=r/e[2];this.__chart__=M={x:i-e[0]*n,y:o-e[1]*n,k:n},m(s)}}).each("end.zoom",function(){y(s)}):(this.__chart__=M,v(s),m(s),y(s))})},e.translate=function(t){return arguments.length?(M={x:+t[0],y:+t[1],k:M.k},n(),e):[M.x,M.y]},e.scale=function(t){return arguments.length?(M={x:M.x,y:M.y,k:+t},n(),e):M.k},e.scaleExtent=function(t){return arguments.length?(k=null==t?Ni:[+t[0],+t[1]],e):k},e.center=function(t){return arguments.length?(l=t&&[+t[0],+t[1]],e):l},e.size=function(t){return arguments.length?(C=t&&[+t[0],+t[1]],e):C},e.x=function(t){return arguments.length?(f=(h=t).copy(),M={x:0,y:0,k:1},e):h},e.y=function(t){return arguments.length?(b=(w=t).copy(),M={x:0,y:0,k:1},e):w},Gr.rebind(e,A,"on")};var _i,Ni=[0,1/0],$i="onwheel"in Qr?(_i=function(){return-Gr.event.deltaY*(Gr.event.deltaMode?120:1)},"wheel"):"onmousewheel"in Qr?(_i=function(){return Gr.event.wheelDelta},"mousewheel"):(_i=function(){return-Gr.event.detail},"MozMousePixelScroll");H.prototype.toString=function(){return this.rgb()+""},Gr.hsl=function(t,e,n){return 1===arguments.length?t instanceof F?O(t.h,t.s,t.l):rt(""+t,it,O):O(+t,+e,+n)};var Ai=F.prototype=new H;Ai.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),O(this.h,this.s,this.l/t)},Ai.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),O(this.h,this.s,t*this.l)},Ai.rgb=function(){return I(this.h,this.s,this.l)},Gr.hcl=function(t,e,n){return 1===arguments.length?t instanceof W?z(t.h,t.c,t.l):Y(t instanceof U?t.l:(t=ot((t=Gr.rgb(t)).r,t.g,t.b)).l,t.a,t.b):z(+t,+e,+n)};var Di=W.prototype=new H;Di.brighter=function(t){return z(this.h,this.c,Math.min(100,this.l+Li*(arguments.length?t:1)))},Di.darker=function(t){return z(this.h,this.c,Math.max(0,this.l-Li*(arguments.length?t:1)))},Di.rgb=function(){return V(this.h,this.c,this.l).rgb()},Gr.lab=function(t,e,n){return 1===arguments.length?t instanceof U?B(t.l,t.a,t.b):t instanceof W?V(t.l,t.c,t.h):ot((t=Gr.rgb(t)).r,t.g,t.b):B(+t,+e,+n)};var Li=18,ji=.95047,Pi=1,qi=1.08883,Ri=U.prototype=new H;Ri.brighter=function(t){return B(Math.min(100,this.l+Li*(arguments.length?t:1)),this.a,this.b)},Ri.darker=function(t){return B(Math.max(0,this.l-Li*(arguments.length?t:1)),this.a,this.b)},Ri.rgb=function(){return G(this.l,this.a,this.b)},Gr.rgb=function(t,e,n){return 1===arguments.length?t instanceof et?tt(t.r,t.g,t.b):rt(""+t,tt,I):tt(~~t,~~e,~~n)};var Hi=et.prototype=new H;Hi.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b;return e||n||r?(e&&e<30&&(e=30),n&&n<30&&(n=30),r&&r<30&&(r=30),tt(Math.min(255,~~(e/t)),Math.min(255,~~(n/t)),Math.min(255,~~(r/t)))):tt(30,30,30)},Hi.darker=function(t){return tt(~~((t=Math.pow(.7,arguments.length?t:1))*this.r),~~(t*this.g),~~(t*this.b))},Hi.hsl=function(){return it(this.r,this.g,this.b)},Hi.toString=function(){return"#"+nt(this.r)+nt(this.g)+nt(this.b)};var Oi=Gr.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Oi.forEach(function(t,e){Oi.set(t,J(e))}),Gr.functor=ut,Gr.xhr=ct(lt),Gr.dsv=function(i,o){function a(t,n,e){arguments.length<3&&(e=n,n=null);var r=Gr.xhr(t,o,e);return r.row=function(t){return arguments.length?r.response(null==(n=t)?s:(e=t,function(t){return a.parse(t.responseText,e)})):n;var e},r.row(n)}function s(t){return a.parse(t.responseText)}function e(t){return t.map(u).join(i)}function u(t){return n.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var n=new RegExp('["'+i+"\n]"),h=i.charCodeAt(0);return a.parse=function(t,r){var i;return a.parseRows(t,function(t,e){if(i)return i(t,e-1);var n=new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}");i=r?function(t,e){return r(n(t),e)}:n})},a.parseRows=function(i,t){function e(){if(u<=l)return s;if(o)return o=!1,a;var t=l;if(34===i.charCodeAt(t)){for(var e=t;e++<u;)if(34===i.charCodeAt(e)){if(34!==i.charCodeAt(e+1))break;++e}return l=e+2,13===(n=i.charCodeAt(e+1))?(o=!0,10===i.charCodeAt(e+2)&&++l):10===n&&(o=!0),i.substring(t+1,e).replace(/""/g,'"')}for(;l<u;){var n,r=1;if(10===(n=i.charCodeAt(l++)))o=!0;else if(13===n)o=!0,10===i.charCodeAt(l)&&(++l,++r);else if(n!==h)continue;return i.substring(t,l-r)}return i.substring(t)}for(var n,o,a={},s={},r=[],u=i.length,l=0,c=0;(n=e())!==s;){for(var f=[];n!==a&&n!==s;)f.push(n),n=e();t&&!(f=t(f,c++))||r.push(f)}return r},a.format=function(t){if(Array.isArray(t[0]))return a.formatRows(t);var n=new l,r=[];return t.forEach(function(t){for(var e in t)n.has(e)||r.push(n.add(e))}),[r.map(u).join(i)].concat(t.map(function(e){return r.map(function(t){return u(e[t])}).join(i)})).join("\n")},a.formatRows=function(t){return t.map(e).join("\n")},a},Gr.csv=Gr.dsv(",","text/csv"),Gr.tsv=Gr.dsv("\t","text/tab-separated-values");var Fi,Ii,zi,Wi,Vi,Bi=Jr[e(Jr,"requestAnimationFrame")]||function(t){setTimeout(t,17)};Gr.timer=function(t,e,n){var r=arguments.length;r<2&&(e=0),r<3&&(n=Date.now());var i={callback:t,time:n+e,next:null};Ii?Ii.next=i:Fi=i,Ii=i,zi||(Wi=clearTimeout(Wi),zi=1,Bi(ht))},Gr.timer.flush=function(){dt(),gt()};var Ui=[3,3],Gi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(function(t,e){var n=Math.pow(10,3*Math.abs(8-e));return{scale:8<e?function(t){return t/n}:function(t){return t*n},symbol:t}});Gr.formatPrefix=function(t,e){var n=0;return t&&(t<0&&(t*=-1),e&&(t=Gr.round(t,vt(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n<=0?n+1:n-1)/3)))),Gi[8+n/3]},Gr.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)},Gr.format=function(t){var e=Yi.exec(t),u=e[1]||" ",l=e[2]||">",c=e[3]||"",f=e[4]||"",h=e[5],p=+e[6],d=e[7],g=e[8],v=e[9],m=1,y="",x=!1,g=g&&+g.substring(1);switch((h||"0"===u&&"="===l)&&(h=u="0",l="=",d&&(p-=Math.floor((p-1)/4))),v){case"n":d=!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":x=!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=Xi.get(v)||mt;var b=h&&d;return function(t){if(x&&t%1)return"";var e,n=t<0||0===t&&1/t<0?(t=-t,"-"):c;m<0?(t=(e=Gr.formatPrefix(t,g)).scale(t),y=e.symbol):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&&d&&(i=Qi(i));var a=f.length+i.length+o.length+(b?0:n.length),s=a<p?new Array(a=p-a+1).join(u):"";return b&&(i=Qi(s+i)),n+=f,t=i+o,("<"===l?n+t+s:">"===l?s+n+t:"^"===l?s.substring(0,a>>=1)+n+t+s.substring(a):n+(b?t:s+t))+y}};var Yi=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Xi=Gr.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=Gr.round(t,vt(t,e))).toFixed(Math.max(0,Math.min(20,vt(t*(1+1e-15),e))))}}),Qi=lt,Zi=Ui.length,Qi=function(t){for(var e=t.length,n=[],r=0,i=Ui[0];0<e&&0<i;)n.push(t.substring(e-=i,e+i)),i=Ui[r=(r+1)%Zi];return n.reverse().join(",")};Gr.geo={},yt.prototype={s:0,t:0,add:function(t){xt(t,this.t,Ji),xt(Ji.s,this.s,this),this.s?this.t+=Ji.t:this.s=Ji.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Ji=new yt;Gr.geo.stream=function(t,e){t&&Ki.hasOwnProperty(t.type)?Ki[t.type](t,e):bt(t,e)};var Ki={Feature:function(t,e){bt(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)bt(n[r].geometry,e)}},to={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){wt(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)wt(n[r],e,0)},Polygon:function(t,e){Mt(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)Mt(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)bt(n[r],e)}};Gr.geo.area=function(t){return eo=0,Gr.geo.stream(t,vo),eo};var eo,no,ro,io,oo,ao,so,uo,lo,co,fo,ho,po,go=new yt,vo={sphere:function(){eo+=4*Mi},point:c,lineStart:c,lineEnd:c,polygonStart:function(){go.reset(),vo.lineStart=Ct},polygonEnd:function(){var t=2*go;eo+=t<0?4*Mi+t:t,vo.lineStart=vo.lineEnd=vo.point=c}};function mo(t,e){fo.push(ho=[no=t,io=t]),e<ro&&(ro=e),oo<e&&(oo=e)}function yo(t,e){var n,r,i,o,a,s,u,l=kt([t*Ti,e*Ti]);lo?(n=Et(lo,l),Nt(r=Et([n[1],-n[0],0],n)),r=$t(r),o=0<(i=t-ao)?1:-1,a=r[0]*Ei*o,(s=180<Math.abs(i))^(o*ao<a&&a<o*t)?(u=r[1]*Ei,oo<u&&(oo=u)):s^(o*ao<(a=(a+360)%360-180)&&a<o*t)?(u=-r[1]*Ei)<ro&&(ro=u):(e<ro&&(ro=e),oo<e&&(oo=e)),s?t<ao?ko(no,t)>ko(no,io)&&(io=t):ko(t,io)>ko(no,io)&&(no=t):no<=io?(t<no&&(no=t),io<t&&(io=t)):ao<t?ko(no,t)>ko(no,io)&&(io=t):ko(t,io)>ko(no,io)&&(no=t)):mo(t,e),lo=l,ao=t}function xo(){po.point=yo}function bo(){ho[0]=no,ho[1]=io,po.point=mo,lo=null}function wo(t,e){var n;lo?(n=t-ao,co+=180<Math.abs(n)?n+(0<n?360:-360):n):(so=t,uo=e),vo.point(t,e),yo(t,e)}function Mo(){vo.lineStart()}function Co(){wo(so,uo),vo.lineEnd(),Math.abs(co)>Ci&&(no=-(io=180)),ho[0]=no,ho[1]=io,lo=null}function ko(t,e){return(e-=t)<0?e+360:e}function To(t,e){return t[0]-e[0]}function Eo(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}Gr.geo.bounds=(po={point:mo,lineStart:xo,lineEnd:bo,polygonStart:function(){po.point=wo,po.lineStart=Mo,po.lineEnd=Co,co=0,vo.polygonStart()},polygonEnd:function(){vo.polygonEnd(),po.point=mo,po.lineStart=xo,po.lineEnd=bo,go<0?(no=-(io=180),ro=-(oo=90)):Ci<co?oo=90:co<-Ci&&(ro=-90),ho[0]=no,ho[1]=io}},function(t){if(oo=io=-(no=ro=1/0),fo=[],Gr.geo.stream(t,po),o=fo.length){fo.sort(To);for(var e=1,n=[s=fo[0]];e<o;++e)Eo((i=fo[e])[0],s)||Eo(i[1],s)?(ko(s[0],i[1])>ko(s[0],s[1])&&(s[1]=i[1]),ko(i[0],s[1])>ko(s[0],s[1])&&(s[0]=i[0])):n.push(s=i);for(var r,i,o,a=-1/0,e=0,s=n[o=n.length-1];e<=o;s=i,++e)i=n[e],(r=ko(s[1],i[0]))>a&&(a=r,no=i[0],io=s[1])}return fo=ho=null,1/0===no||1/0===ro?[[NaN,NaN],[NaN,NaN]]:[[no,ro],[io,oo]]}),Gr.geo.centroid=function(t){So=_o=No=$o=Ao=Do=Lo=jo=Po=qo=Ro=0,Gr.geo.stream(t,Ho);var e=Po,n=qo,r=Ro,i=e*e+n*n+r*r;return i<ki&&(e=Do,n=Lo,r=jo,_o<Ci&&(e=No,n=$o,r=Ao),(i=e*e+n*n+r*r)<ki)?[NaN,NaN]:[Math.atan2(n,e)*Ei,A(r/Math.sqrt(i))*Ei]};var So,_o,No,$o,Ao,Do,Lo,jo,Po,qo,Ro,Ho={sphere:c,point:Dt,lineStart:jt,lineEnd:Pt,polygonStart:function(){Ho.lineStart=qt},polygonEnd:function(){Ho.lineStart=jt}},Oo=Ft(Rt,function(f){var h,p=NaN,d=NaN,g=NaN;return{lineStart:function(){f.lineStart(),h=1},point:function(t,e){var n,r,i,o,a,s,u,l=0<t?Mi:-Mi,c=Math.abs(t-p);Math.abs(c-Mi)<Ci?(f.point(p,d=0<(d+e)/2?Mi/2:-Mi/2),f.point(g,d),f.lineEnd(),f.lineStart(),f.point(l,d),f.point(t,d),h=0):g!==l&&Mi<=c&&(Math.abs(p-g)<Ci&&(p-=g*Ci),Math.abs(t-l)<Ci&&(t-=l*Ci),n=p,r=d,i=t,o=e,u=Math.sin(n-i),d=Math.abs(u)>Ci?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,d),f.lineEnd(),f.lineStart(),f.point(l,d),h=0),f.point(p=t,d=e),g=l},lineEnd:function(){f.lineEnd(),p=d=NaN},clean:function(){return 2-h}}},function(t,e,n,r){var i,o;null==t?(o=n*Mi/2,r.point(-Mi,o),r.point(0,o),r.point(Mi,o),r.point(Mi,0),r.point(Mi,-o),r.point(0,-o),r.point(-Mi,-o),r.point(-Mi,0),r.point(-Mi,o)):Math.abs(t[0]-e[0])>Ci?(o=n*(i=(t[0]<e[0]?1:-1)*Mi)/2,r.point(-i,o),r.point(0,o),r.point(i,o)):r.point(e[0],e[1])},function(t){return Vt(Fo,t)}),Fo=[-Mi,0],Io=1e9;Gr.geo.clipExtent=function(){var e,n,r,i,o,a,s={stream:function(t){return o&&(o.valid=!1),(o=a(t)).valid=!0,o},extent:function(t){return arguments.length?(a=Ut(e=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),o&&(o.valid=!1,o=null),s):[[e,n],[r,i]]}};return s.extent([[0,0],[960,500]])},(Gr.geo.conicEqualArea=function(){return Xt(Qt)}).raw=Qt,Gr.geo.albers=function(){return Gr.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},Gr.geo.albersUsa=function(){function i(t){var e=t[0],n=t[1];return r=null,o(e,n),r||(a(e,n),r)||s(e,n),r}var r,o,a,s,u=Gr.geo.albers(),l=Gr.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Gr.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(t,e){r=[t,e]}};return i.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(.12<=i&&i<.234&&-.425<=r&&r<-.214?l:.166<=i&&i<.234&&-.214<=r&&r<-.115?c:u).invert(t)},i.stream=function(t){var n=u.stream(t),r=l.stream(t),i=c.stream(t);return{point:function(t,e){n.point(t,e),r.point(t,e),i.point(t,e)},sphere:function(){n.sphere(),r.sphere(),i.sphere()},lineStart:function(){n.lineStart(),r.lineStart(),i.lineStart()},lineEnd:function(){n.lineEnd(),r.lineEnd(),i.lineEnd()},polygonStart:function(){n.polygonStart(),r.polygonStart(),i.polygonStart()},polygonEnd:function(){n.polygonEnd(),r.polygonEnd(),i.polygonEnd()}}},i.precision=function(t){return arguments.length?(u.precision(t),l.precision(t),c.precision(t),i):u.precision()},i.scale=function(t){return arguments.length?(u.scale(t),l.scale(.35*t),c.scale(t),i.translate(u.translate())):u.scale()},i.translate=function(t){if(!arguments.length)return u.translate();var e=u.scale(),n=+t[0],r=+t[1];return o=u.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(f).point,a=l.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+Ci,r+.12*e+Ci],[n-.214*e-Ci,r+.234*e-Ci]]).stream(f).point,s=c.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+Ci,r+.166*e+Ci],[n-.115*e-Ci,r+.234*e-Ci]]).stream(f).point,i},i.scale(1070)};var zo,Wo,Vo,Bo,Uo,Go,Yo={point:c,lineStart:c,lineEnd:c,polygonStart:function(){Wo=0,Yo.lineStart=Zt},polygonEnd:function(){Yo.lineStart=Yo.lineEnd=Yo.point=c,zo+=Math.abs(Wo/2)}},Xo={point:function(t,e){t<Vo&&(Vo=t),Uo<t&&(Uo=t),e<Bo&&(Bo=e),Go<e&&(Go=e)},lineStart:c,lineEnd:c,polygonStart:c,polygonEnd:c},Qo={point:te,lineStart:ee,lineEnd:ne,polygonStart:function(){Qo.lineStart=re},polygonEnd:function(){Qo.point=te,Qo.lineStart=ee,Qo.lineEnd=ne}};Gr.geo.transform=function(r){return{stream:function(t){var e=new ae(t);for(var n in r)e[n]=r[n];return e}}},ae.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},Gr.geo.path=function(){function e(t){return t&&("function"==typeof u&&a.pointRadius(+u.apply(this,arguments)),s&&s.valid||(s=o(a)),Gr.geo.stream(t,s)),a.result()}function r(){return s=null,e}var i,n,o,a,s,u=4.5;return e.area=function(t){return zo=0,Gr.geo.stream(t,o(Yo)),zo},e.centroid=function(t){return No=$o=Ao=Do=Lo=jo=Po=qo=Ro=0,Gr.geo.stream(t,o(Qo)),Ro?[Po/Ro,qo/Ro]:jo?[Do/jo,Lo/jo]:Ao?[No/Ao,$o/Ao]:[NaN,NaN]},e.bounds=function(t){return Uo=Go=-(Vo=Bo=1/0),Gr.geo.stream(t,o(Xo)),[[Vo,Bo],[Uo,Go]]},e.projection=function(t){return arguments.length?(o=(i=t)?t.stream||(n=t,e=oe(function(t,e){return n([t*Ei,e*Ei])}),function(n){var t=new ae(n=e(n));return t.point=function(t,e){n.point(t*Ti,e*Ti)},t}):lt,r()):i;var n,e},e.context=function(t){return arguments.length?(a=null==(n=t)?new Jt:new ie(t),"function"!=typeof u&&a.pointRadius(u),r()):n},e.pointRadius=function(t){return arguments.length?(u="function"==typeof t?t:(a.pointRadius(+t),+t),e):u},e.projection(Gr.geo.albersUsa()).context(null)},Gr.geo.projection=se,Gr.geo.projectionMutator=ue,(Gr.geo.equirectangular=function(){return se(le)}).raw=le.invert=le,Gr.geo.rotation=function(e){function t(t){return(t=e(t[0]*Ti,t[1]*Ti))[0]*=Ei,t[1]*=Ei,t}return e=ce(e[0]%360*Ti,e[1]*Ti,2<e.length?e[2]*Ti:0),t.invert=function(t){return(t=e.invert(t[0]*Ti,t[1]*Ti))[0]*=Ei,t[1]*=Ei,t},t},Gr.geo.circle=function(){function e(){var t="function"==typeof o?o.apply(this,arguments):o,n=ce(-t[0]*Ti,-t[1]*Ti,0).invert,r=[];return i(null,null,1,{point:function(t,e){r.push(t=n(t,e)),t[0]*=Ei,t[1]*=Ei}}),{type:"Polygon",coordinates:[r]}}var n,i,o=[0,0],r=6;return e.origin=function(t){return arguments.length?(o=t,e):o},e.angle=function(t){return arguments.length?(i=de((n=+t)*Ti,r*Ti),e):n},e.precision=function(t){return arguments.length?(i=de(n*Ti,(r=+t)*Ti),e):r},e.angle(90)},Gr.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Ti,i=t[1]*Ti,o=e[1]*Ti,a=Math.sin(r),s=Math.cos(r),u=Math.sin(i),l=Math.cos(i),c=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*a)*n+(n=l*c-u*f*s)*n),u*c+l*f*s)},Gr.geo.graticule=function(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return Gr.range(Math.ceil(o/v)*v,i,v).map(h).concat(Gr.range(Math.ceil(l/m)*m,u,m).map(p)).concat(Gr.range(Math.ceil(r/d)*d,n,d).filter(function(t){return Math.abs(t%v)>Ci}).map(c)).concat(Gr.range(Math.ceil(s/g)*g,a,g).filter(function(t){return Math.abs(t%m)>Ci}).map(f))}var n,r,i,o,a,s,u,l,c,f,h,p,d=10,g=d,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(p(u).slice(1),h(i).reverse().slice(1),p(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],i<o&&(t=o,o=i,i=t),u<l&&(t=l,l=u,u=t),e.precision(y)):[[o,l],[i,u]]},e.minorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],a=+t[1][1],n<r&&(t=r,r=n,n=t),a<s&&(t=s,s=a,a=t),e.precision(y)):[[r,s],[n,a]]},e.step=function(t){return arguments.length?e.majorStep(t).minorStep(t):e.minorStep()},e.majorStep=function(t){return arguments.length?(v=+t[0],m=+t[1],e):[v,m]},e.minorStep=function(t){return arguments.length?(d=+t[0],g=+t[1],e):[d,g]},e.precision=function(t){return arguments.length?(y=+t,c=ve(s,a,90),f=me(r,n,y),h=ve(l,u,90),p=me(o,i,y),e):y},e.majorExtent([[-180,-90+Ci],[180,90-Ci]]).minorExtent([[-180,-80-Ci],[180,80+Ci]])},Gr.geo.greatArc=function(){function e(){return{type:"LineString",coordinates:[n||i.apply(this,arguments),r||o.apply(this,arguments)]}}var n,r,i=ye,o=xe;return e.distance=function(){return Gr.geo.distance(n||i.apply(this,arguments),r||o.apply(this,arguments))},e.source=function(t){return arguments.length?(n="function"==typeof(i=t)?null:t,e):i},e.target=function(t){return arguments.length?(r="function"==typeof(o=t)?null:t,e):o},e.precision=function(){return arguments.length?e:0},e},Gr.geo.interpolate=function(t,e){return n=t[0]*Ti,r=t[1]*Ti,i=e[0]*Ti,o=e[1]*Ti,a=Math.cos(r),s=Math.sin(r),u=Math.cos(o),l=Math.sin(o),c=a*Math.cos(n),f=a*Math.sin(n),h=u*Math.cos(i),p=u*Math.sin(i),d=2*Math.asin(Math.sqrt(R(o-r)+a*u*R(i-n))),g=1/Math.sin(d),(v=d?function(t){var e=Math.sin(t*=d)*g,n=Math.sin(d-t)*g,r=n*c+e*h,i=n*f+e*p,o=n*s+e*l;return[Math.atan2(i,r)*Ei,Math.atan2(o,Math.sqrt(r*r+i*i))*Ei]}:function(){return[n*Ei,r*Ei]}).distance=d,v;var n,r,i,o,a,s,u,l,c,f,h,p,d,g,v},Gr.geo.length=function(t){return Zo=0,Gr.geo.stream(t,Jo),Zo};var Zo,Jo={sphere:c,point:c,lineStart:function(){function n(t,e){var n=Math.sin(e*=Ti),r=Math.cos(e),i=Math.abs((t*=Ti)-a),o=Math.cos(i);Zo+=Math.atan2(Math.sqrt((i=r*Math.sin(i))*i+(i=u*n-s*r*o)*i),s*n+u*r*o),a=t,s=n,u=r}var a,s,u;Jo.point=function(t,e){a=t*Ti,s=Math.sin(e*=Ti),u=Math.cos(e),Jo.point=n},Jo.lineEnd=function(){Jo.point=Jo.lineEnd=c}},lineEnd:c,polygonStart:c,polygonEnd:c},Ko=be(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(Gr.geo.azimuthalEqualArea=function(){return se(Ko)}).raw=Ko;var ta=be(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},lt);(Gr.geo.azimuthalEquidistant=function(){return se(ta)}).raw=ta,(Gr.geo.conicConformal=function(){return Xt(we)}).raw=we,(Gr.geo.conicEquidistant=function(){return Xt(Me)}).raw=Me;var ea=be(function(t){return 1/t},Math.atan);(Gr.geo.gnomonic=function(){return se(ea)}).raw=ea,Ce.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Mi/2]},(Gr.geo.mercator=function(){return ke(Ce)}).raw=Ce;var na=be(function(){return 1},Math.asin);(Gr.geo.orthographic=function(){return se(na)}).raw=na;var ra=be(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(Gr.geo.stereographic=function(){return se(ra)}).raw=ra,Te.invert=function(t,e){return[Math.atan2(P(t),Math.cos(e)),A(Math.sin(e)/q(t))]},(Gr.geo.transverseMercator=function(){return ke(Te)}).raw=Te,Gr.geom={},Gr.svg={},Gr.svg.line=function(){return Ee(lt)};var ia=Gr.map({linear:Ne,"linear-closed":function(t){return Ne(t)+"Z"},step:function(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r[0]+(r=t[e])[0])/2,"V",r[1]);return 1<n&&i.push("H",r[0]),i.join("")},"step-before":$e,"step-after":Ae,basis:je,"basis-open":function(t){if(t.length<4)return Ne(t);for(var e,n=[],r=-1,i=t.length,o=[0],a=[0];++r<3;)e=t[r],o.push(e[0]),a.push(e[1]);for(n.push(Pe(sa,o)+","+Pe(sa,a)),--r;++r<i;)e=t[r],o.shift(),o.push(e[0]),a.shift(),a.push(e[1]),qe(n,o,a);return n.join("")},"basis-closed":function(t){for(var e,n,r=-1,i=t.length,o=i+4,a=[],s=[];++r<4;)n=t[r%i],a.push(n[0]),s.push(n[1]);for(e=[Pe(sa,a),",",Pe(sa,s)],--r;++r<o;)n=t[r%i],a.shift(),a.push(n[0]),s.shift(),s.push(n[1]),qe(e,a,s);return e.join("")},bundle:function(t,e){var n=t.length-1;if(n)for(var r,i,o=t[0][0],a=t[0][1],s=t[n][0]-o,u=t[n][1]-a,l=-1;++l<=n;)i=l/n,(r=t[l])[0]=e*r[0]+(1-e)*(o+i*s),r[1]=e*r[1]+(1-e)*(a+i*u);return je(t)},cardinal:function(t,e){return t.length<3?Ne(t):t[0]+De(t,Le(t,e))},"cardinal-open":function(t,e){return t.length<4?Ne(t):t[1]+De(t.slice(1,t.length-1),Le(t,e))},"cardinal-closed":function(t,e){return t.length<3?Ne(t):t[0]+De((t.push(t[0]),t),Le([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length<3?Ne(t):t[0]+De(t,He(t))}});ia.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var oa=[0,2/3,1/3,0],aa=[0,1/3,2/3,0],sa=[0,1/6,2/3,1/6];Gr.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,n,r,i,o,a,s,u,l,c,f,h,p,d,g,v,m,y,x,b,w,M=ut(A),C=ut(D),k=t.length,T=k-1,E=[],S=[],_=0;if(M===Se&&D===_e)e=t;else for($=0,e=[];$<k;++$)e.push([+M.call(this,n=t[$],$),+C.call(this,n,$)]);for($=1;$<k;++$)(e[$][1]<e[_][1]||e[$][1]==e[_][1]&&e[$][0]<e[_][0])&&(_=$);for($=0;$<k;++$)$!==_&&(o=e[$][1]-e[_][1],i=e[$][0]-e[_][0],E.push({angle:Math.atan2(o,i),index:$}));for(E.sort(function(t,e){return t.angle-e.angle}),c=E[0].angle,l=E[0].index,u=0,$=1;$<T;++$){if(r=E[$].index,c==E[$].angle){if(i=e[l][0]-e[_][0],o=e[l][1]-e[_][1],(a=e[r][0]-e[_][0])*a+(s=e[r][1]-e[_][1])*s<=i*i+o*o){E[$].index=-1;continue}E[u].index=-1}c=E[$].angle,u=$,l=r}for(S.push(_),r=$=0;$<2;++r)-1<E[r].index&&(S.push(E[r].index),$++);for(f=S.length;r<T;++r)if(!(E[r].index<0)){for(;h=S[f-2],p=S[f-1],d=E[r].index,w=b=x=y=m=v=void 0,v=(g=e)[h],m=v[0],y=v[1],x=(v=g[p])[0],b=v[1],w=(v=g[d])[0],!(0<(v[1]-y)*(x-m)-(b-y)*(w-m));)--f;S[f++]=E[r].index}for(var N=[],$=f-1;0<=$;--$)N.push(t[S[$]]);return N}var A=Se,D=_e;return arguments.length?e(t):(e.x=function(t){return arguments.length?(A=t,e):A},e.y=function(t){return arguments.length?(D=t,e):D},e)},Gr.geom.polygon=function(t){return li(t,ua),t};var ua=Gr.geom.polygon.prototype=[];ua.area=function(){for(var t,e=-1,n=this.length,r=this[n-1],i=0;++e<n;)t=r,r=this[e],i+=t[1]*r[0]-t[0]*r[1];return.5*i},ua.centroid=function(t){var e,n,r=-1,i=this.length,o=0,a=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)e=s,s=this[r],n=e[0]*s[1]-s[0]*e[1],o+=(e[0]+s[0])*n,a+=(e[1]+s[1])*n;return[o*t,a*t]},ua.clip=function(t){for(var e,n,r,i,o,a,s=Ie(t),u=-1,l=this.length-Ie(this),c=this[l-1];++u<l;){for(e=t.slice(),t.length=0,i=this[u],o=e[(r=e.length-s)-1],n=-1;++n<r;)Oe(a=e[n],c,i)?(Oe(o,c,i)||t.push(Fe(o,a,c,i)),t.push(a)):Oe(o,c,i)&&t.push(Fe(o,a,c,i)),o=a;s&&t.push(t[0]),c=i}return t},Gr.geom.delaunay=function(s){var e=s.map(function(){return[]}),u=[];return ze(s,function(t){e[t.region.l.index].push(s[t.region.r.index])}),e.forEach(function(t,e){var n=s[e],r=n[0],i=n[1];t.forEach(function(t){t.angle=Math.atan2(t[0]-r,t[1]-i)}),t.sort(function(t,e){return t.angle-e.angle});for(var o=0,a=t.length-1;o<a;o++)u.push([n,t[o],t[o+1]])}),u},Gr.geom.voronoi=function(t){function o(t){var m,e,n,l=t.map(function(){return[]}),r=ut(c),i=ut(f),o=t.length;if(r===Se&&i===_e)m=t;else for(m=new Array(o),n=0;n<o;++n)m[n]=[+r.call(this,e=t[n],n),+i.call(this,e,n)];if(ze(m,function(t){var e,n,r,i,o,a=1===t.a&&0<=t.b?(e=t.ep.r,t.ep.l):(e=t.ep.l,t.ep.r);1===t.a?(i=e?e.y:-1e6,n=t.c-t.b*i,o=a?a.y:1e6,r=t.c-t.b*o):(n=e?e.x:-1e6,i=t.c-t.a*n,r=a?a.x:1e6,o=t.c-t.a*r);var s=[n,i],u=[r,o];l[t.region.l.index].push(s,u),l[t.region.r.index].push(s,u)}),(l=l.map(function(e,t){var n=m[t][0],r=m[t][1],i=e.map(function(t){return Math.atan2(t[0]-n,t[1]-r)}),o=Gr.range(e.length).sort(function(t,e){return i[t]-i[e]});return o.filter(function(t,e){return!e||i[t]-i[o[e-1]]>Ci}).map(function(t){return e[t]})})).forEach(function(t,e){var n,r,i,o,a,s,u,l,c,f,h,p,d,g,v=t.length;if(!v)return t.push([-1e6,-1e6],[-1e6,1e6],[1e6,1e6],[1e6,-1e6]);2<v||(n=m[e],r=t[0],i=t[1],o=n[0],a=n[1],s=r[0],u=r[1],l=i[0],c=i[1],f=Math.abs(l-s),h=c-u,Math.abs(h)<Ci?(d=a<u?-1e6:1e6,t.push([-1e6,d],[1e6,d])):f<Ci?(p=o<s?-1e6:1e6,t.push([p,-1e6],[p,1e6])):(d=(l-s)*(u-a)<(s-o)*(c-u)?1e6:-1e6,g=Math.abs(h)-f,Math.abs(g)<Ci?t.push([h<0?d:-d,d]):(0<g&&(d*=-1),t.push([-1e6,d],[1e6,d]))))}),a)for(n=0;n<o;++n)a.clip(l[n]);for(n=0;n<o;++n)l[n].point=t[n];return l}var c=Se,f=_e,a=null;return arguments.length?o(t):(o.x=function(t){return arguments.length?(c=t,o):c},o.y=function(t){return arguments.length?(f=t,o):f},o.clipExtent=function(t){return arguments.length?(a=null==t?null:(e=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1],Gr.geom.polygon([[e,n],[e,i],[r,i],[r,n]])),o):a&&[a[0],a[2]];var e,n,r,i},o.size=function(t){return arguments.length?o.clipExtent(t&&[[0,0],t]):a&&a[2]},o.links=function(r){var t,e,n,i=r.map(function(){return[]}),o=[],a=ut(c),s=ut(f),u=r.length;if(a===Se&&s===_e)t=r;else for(t=new Array(u),n=0;n<u;++n)t[n]=[+a.call(this,e=r[n],n),+s.call(this,e,n)];return ze(t,function(t){var e=t.region.l.index,n=t.region.r.index;i[e][n]||(i[e][n]=i[n][e]=!0,o.push({source:r[e],target:r[n]}))}),o},o.triangles=function(t){if(c===Se&&f===_e)return Gr.geom.delaunay(t);for(var e,n=new Array(void 0),r=ut(c),i=ut(f),o=-1,a=t.length;++o<a;)(n[o]=[+r.call(this,e=t[o],o),+i.call(this,e,o)]).data=e;return Gr.geom.delaunay(n).map(function(t){return t.map(function(t){return t.data})})},o)};var la={l:"r",r:"l"};Gr.geom.quadtree=function(t,x,b,w,M){function e(t){function p(t,e,n,r,i,o,a,s){var u,l,c;isNaN(n)||isNaN(r)||(t.leaf?(u=t.x,l=t.y,null!=u?(Math.abs(u-n)+Math.abs(l-r)<.01||(c=t.point,t.x=t.y=t.point=null,f(t,c,u,l,i,o,a,s)),f(t,e,n,r,i,o,a,s)):(t.x=n,t.y=r,t.point=e)):f(t,e,n,r,i,o,a,s))}function f(t,e,n,r,i,o,a,s){var u=.5*(i+a),l=.5*(o+s),c=u<=n,f=l<=r,h=(f<<1)+c;t.leaf=!1,c?i=u:a=u,f?o=l:s=l,p(t=t.nodes[h]||(t.nodes[h]=Be()),e,n,r,i,o,a,s)}var e,n,r,i,o,a,s,u,l,c=ut(k),h=ut(T);if(null!=x)a=x,s=b,u=w,l=M;else if(u=l=-(a=s=1/0),n=[],r=[],o=t.length,C)for(i=0;i<o;++i)(e=t[i]).x<a&&(a=e.x),e.y<s&&(s=e.y),e.x>u&&(u=e.x),e.y>l&&(l=e.y),n.push(e.x),r.push(e.y);else for(i=0;i<o;++i){var d=+c(e=t[i],i),g=+h(e,i);d<a&&(a=d),g<s&&(s=g),u<d&&(u=d),l<g&&(l=g),n.push(d),r.push(g)}var v=u-a,m=l-s;m<v?l=s+v:u=a+m;var y=Be();if(y.add=function(t){p(y,t,+c(t,++i),+h(t,i),a,s,u,l)},y.visit=function(t){!function t(e,n,r,i,o,a){var s,u,l;e(n,r,i,o,a)||(s=.5*(r+o),u=.5*(i+a),(l=n.nodes)[0]&&t(e,l[0],r,i,s,u),l[1]&&t(e,l[1],s,i,o,u),l[2]&&t(e,l[2],r,u,s,a),l[3]&&t(e,l[3],s,u,o,a))}(t,y,a,s,u,l)},i=-1,null==x){for(;++i<o;)p(y,t[i],n[i],r[i],a,s,u,l);--i}else t.forEach(y.add);return n=r=t=e=null,y}var C,k=Se,T=_e;return(C=arguments.length)?(k=We,T=Ve,3===C&&(M=b,w=x,b=x=0),e(t)):(e.x=function(t){return arguments.length?(k=t,e):k},e.y=function(t){return arguments.length?(T=t,e):T},e.extent=function(t){return arguments.length?(null==t?x=b=w=M=null:(x=+t[0][0],b=+t[0][1],w=+t[1][0],M=+t[1][1]),e):null==x?null:[[x,b],[w,M]]},e.size=function(t){return arguments.length?(null==t?x=b=w=M=null:(x=b=0,w=+t[0],M=+t[1]),e):null==x?null:[w-x,M-b]},e)},Gr.interpolateRgb=Ue,Gr.interpolateObject=Ge,Gr.interpolateNumber=Ye,Gr.interpolateString=Xe;var ca=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g;Gr.interpolate=Qe,Gr.interpolators=[function(t,e){var n=typeof e;return("string"==n?Oi.has(e)||/^(#|rgb\(|hsl\()/.test(e)?Ue:Xe:e instanceof H?Ue:"object"==n?Array.isArray(e)?Ze:Ge:Ye)(t,e)}],Gr.interpolateArray=Ze;function fa(){return lt}var ha=Gr.map({linear:fa,poly:function(e){return function(t){return Math.pow(t,e)}},quad:function(){return tn},cubic:function(){return en},sin:function(){return rn},exp:function(){return on},circle:function(){return an},elastic:function(e,n){var r;return arguments.length<2&&(n=.45),r=arguments.length?n/(2*Mi)*Math.asin(1/e):(e=1,n/4),function(t){return 1+e*Math.pow(2,10*-t)*Math.sin(2*(t-r)*Mi/n)}},back:function(e){return e=e||1.70158,function(t){return t*t*((e+1)*t-e)}},bounce:function(){return sn}}),pa=Gr.map({in:lt,out:Je,"in-out":Ke,"out-in":function(t){return Ke(Je(t))}});Gr.ease=function(t){var e,n=t.indexOf("-"),r=0<=n?t.substring(0,n):t,i=0<=n?t.substring(n+1):"in",r=ha.get(r)||fa,i=pa.get(i)||lt;return e=i(r.apply(null,Array.prototype.slice.call(arguments,1))),function(t){return t<=0?0:1<=t?1:e(t)}},Gr.interpolateHcl=function(t,e){t=Gr.hcl(t),e=Gr.hcl(e);var n=t.h,r=t.c,i=t.l,o=e.h-n,a=e.c-r,s=e.l-i;return isNaN(a)&&(a=0,r=isNaN(r)?e.c:r),isNaN(o)?(o=0,n=isNaN(n)?e.h:n):180<o?o-=360:o<-180&&(o+=360),function(t){return V(n+o*t,r+a*t,i+s*t)+""}},Gr.interpolateHsl=function(t,e){t=Gr.hsl(t),e=Gr.hsl(e);var n=t.h,r=t.s,i=t.l,o=e.h-n,a=e.s-r,s=e.l-i;return isNaN(a)&&(a=0,r=isNaN(r)?e.s:r),isNaN(o)?(o=0,n=isNaN(n)?e.h:n):180<o?o-=360:o<-180&&(o+=360),function(t){return I(n+o*t,r+a*t,i+s*t)+""}},Gr.interpolateLab=function(t,e){t=Gr.lab(t),e=Gr.lab(e);var n=t.l,r=t.a,i=t.b,o=e.l-n,a=e.a-r,s=e.b-i;return function(t){return G(n+o*t,r+a*t,i+s*t)+""}},Gr.interpolateRound=un,Gr.transform=function(t){var n=Qr.createElementNS(Gr.ns.prefix.svg,"g");return(Gr.transform=function(t){var e;return null!=t&&(n.setAttribute("transform",t),e=n.transform.baseVal.consolidate()),new ln(e?e.matrix:da)})(t)},ln.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var da={a:1,b:0,c:0,d:1,e:0,f:0};Gr.interpolateTransform=hn,Gr.layout={},Gr.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n<r;)e.push(gn(t[n]));return e}},Gr.layout.chord=function(){function t(){var t,e,n,r,i,o={},a=[],s=Gr.range(b),u=[];for(m=[],y=[],t=0,r=-1;++r<b;){for(e=0,i=-1;++i<b;)e+=x[r][i];a.push(e),u.push(Gr.range(b)),t+=e}for(w&&s.sort(function(t,e){return w(a[t],a[e])}),M&&u.forEach(function(t,n){t.sort(function(t,e){return M(x[n][t],x[n][e])})}),t=(2*Mi-k*b)/t,e=0,r=-1;++r<b;){for(n=e,i=-1;++i<b;){var l=s[r],c=u[l][i],f=x[l][c],h=e,p=e+=f*t;o[l+"-"+c]={index:l,subindex:c,startAngle:h,endAngle:p,value:f}}y[l]={index:l,startAngle:n,endAngle:e,value:(e-n)/t},e+=k}for(r=-1;++r<b;)for(i=r-1;++i<b;){var d=o[r+"-"+i],g=o[i+"-"+r];(d.value||g.value)&&m.push(d.value<g.value?{source:g,target:d}:{source:d,target:g})}C&&v()}function v(){m.sort(function(t,e){return C((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}var m,y,x,b,w,M,C,e={},k=0;return e.matrix=function(t){return arguments.length?(b=(x=t)&&x.length,m=y=null,e):x},e.padding=function(t){return arguments.length?(k=t,m=y=null,e):k},e.sortGroups=function(t){return arguments.length?(w=t,m=y=null,e):w},e.sortSubgroups=function(t){return arguments.length?(M=t,m=null,e):M},e.sortChords=function(t){return arguments.length?(C=t,m&&v(),e):C},e.chords=function(){return m||t(),m},e.groups=function(){return y||t(),y},e},Gr.layout.force=function(){function t(t){t.px=Gr.event.x,t.py=Gr.event.y,i.resume()}var e,f,h,p,d,i={},g=Gr.dispatch("start","tick","end"),v=[1,1],m=.9,o=ga,y=va,x=-30,b=.1,w=.8,M=[],C=[];return i.tick=function(){if((f*=.99)<.005)return g.end({type:"end",alpha:f=0}),!0;for(var t,e,n,r,i,o,a,s,u=M.length,l=C.length,c=0;c<l;++c)n=(e=C[c]).source,(i=(a=(r=e.target).x-n.x)*a+(s=r.y-n.y)*s)&&(a*=i=f*p[c]*((i=Math.sqrt(i))-h[c])/i,s*=i,r.x-=a*(o=n.weight/(r.weight+n.weight)),r.y-=s*o,n.x+=a*(o=1-o),n.y+=s*o);if((o=f*b)&&(a=v[0]/2,s=v[1]/2,c=-1,o))for(;++c<u;)(e=M[c]).x+=(a-e.x)*o,e.y+=(s-e.y)*o;if(x)for(function t(e,n,r){var i,o=0,a=0;if(e.charge=0,!e.leaf)for(var s,u=e.nodes,l=u.length,c=-1;++c<l;)null!=(s=u[c])&&(t(s,n,r),e.charge+=s.charge,o+=s.charge*s.cx,a+=s.charge*s.cy);e.point&&(e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5),i=n*r[e.point.index],e.charge+=e.pointCharge=i,o+=i*e.point.x,a+=i*e.point.y),e.cx=o/e.charge,e.cy=a/e.charge}(t=Gr.geom.quadtree(M),f,d),c=-1;++c<u;)(e=M[c]).fixed||t.visit(function(u){return function(t,e,n,r){if(t.point!==u){var i=t.cx-u.x,o=t.cy-u.y,a=1/Math.sqrt(i*i+o*o);if((r-e)*a<w){var s=t.charge*a*a;return u.px-=i*s,u.py-=o*s,!0}t.point&&isFinite(a)&&(s=t.pointCharge*a*a,u.px-=i*s,u.py-=o*s)}return!t.charge}}(e));for(c=-1;++c<u;)(e=M[c]).fixed?(e.x=e.px,e.y=e.py):(e.x-=(e.px-(e.px=e.x))*m,e.y-=(e.py-(e.py=e.y))*m);g.tick({type:"tick",alpha:f})},i.nodes=function(t){return arguments.length?(M=t,i):M},i.links=function(t){return arguments.length?(C=t,i):C},i.size=function(t){return arguments.length?(v=t,i):v},i.linkDistance=function(t){return arguments.length?(o="function"==typeof t?t:+t,i):o},i.distance=i.linkDistance,i.linkStrength=function(t){return arguments.length?(y="function"==typeof t?t:+t,i):y},i.friction=function(t){return arguments.length?(m=+t,i):m},i.charge=function(t){return arguments.length?(x="function"==typeof t?t:+t,i):x},i.gravity=function(t){return arguments.length?(b=+t,i):b},i.theta=function(t){return arguments.length?(w=+t,i):w},i.alpha=function(t){return arguments.length?(t=+t,f?f=0<t?t:0:0<t&&(g.start({type:"start",alpha:f=t}),Gr.timer(i.tick)),i):f},i.start=function(){function t(t,e){for(var n,r=function(){if(!s){for(s=[],a=0;a<u;++a)s[a]=[];for(a=0;a<l;++a){var t=C[a];s[t.source.index].push(t.target),s[t.target.index].push(t.source)}}return s[c]}(),i=-1,o=r.length;++i<o;)if(!isNaN(n=r[i][t]))return n;return Math.random()*e}for(var a,s,e,u=M.length,l=C.length,n=v[0],r=v[1],c=0;c<u;++c)(e=M[c]).index=c,e.weight=0;for(c=0;c<l;++c)"number"==typeof(e=C[c]).source&&(e.source=M[e.source]),"number"==typeof e.target&&(e.target=M[e.target]),++e.source.weight,++e.target.weight;for(c=0;c<u;++c)e=M[c],isNaN(e.x)&&(e.x=t("x",n)),isNaN(e.y)&&(e.y=t("y",r)),isNaN(e.px)&&(e.px=e.x),isNaN(e.py)&&(e.py=e.y);if(h=[],"function"==typeof o)for(c=0;c<l;++c)h[c]=+o.call(this,C[c],c);else for(c=0;c<l;++c)h[c]=o;if(p=[],"function"==typeof y)for(c=0;c<l;++c)p[c]=+y.call(this,C[c],c);else for(c=0;c<l;++c)p[c]=y;if(d=[],"function"==typeof x)for(c=0;c<u;++c)d[c]=+x.call(this,M[c],c);else for(c=0;c<u;++c)d[c]=x;return i.resume()},i.resume=function(){return i.alpha(.1)},i.stop=function(){return i.alpha(0)},i.drag=function(){return e=e||Gr.behavior.drag().origin(lt).on("dragstart.force",mn).on("drag.force",t).on("dragend.force",yn),arguments.length?void this.on("mouseover.force",xn).on("mouseout.force",bn).call(e):e},Gr.rebind(i,g,"on")};var ga=20,va=1;Gr.layout.hierarchy=function(){function f(t){var e=[];return function t(e,n,r){var i=p.call(f,e,n);if(e.depth=n,r.push(e),i&&(o=i.length)){for(var o,a,s=-1,u=e.children=[],l=0,c=n+1;++s<o;)(a=t(i[s],c,r)).parent=e,u.push(a),l+=a.value;h&&u.sort(h),d&&(e.value=l)}else d&&(e.value=+d.call(f,e,n)||0);return e}(t,0,e),e}var h=kn,p=Mn,d=Cn;return f.sort=function(t){return arguments.length?(h=t,f):h},f.children=function(t){return arguments.length?(p=t,f):p},f.value=function(t){return arguments.length?(d=t,f):d},f.revalue=function(t){return function t(e,n){var r=e.children,i=0;if(r&&(o=r.length))for(var o,a=-1,s=n+1;++a<o;)i+=t(r[a],s);else d&&(i=+d.call(f,e,n)||0);return d&&(e.value=i),i}(t,0),t},f},Gr.layout.partition=function(){function e(t,e){var n=r.call(this,t,e);return function t(e,n,r,i){var o=e.children;if(e.x=n,e.y=e.depth*i,e.dx=r,e.dy=i,o&&(a=o.length)){var a,s,u,l=-1;for(r=e.value?r/e.value:0;++l<a;)t(s=o[l],n,u=s.value*r,i),n+=u}}(n[0],0,i[0],i[1]/function t(e){var n=e.children,r=0;if(n&&(i=n.length))for(var i,o=-1;++o<i;)r=Math.max(r,t(n[o]));return 1+r}(n[0])),n}var r=Gr.layout.hierarchy(),i=[1,1];return e.size=function(t){return arguments.length?(i=t,e):i},wn(e,r)},Gr.layout.pie=function(){function s(n){var r=n.map(function(t,e){return+u.call(s,t,e)}),i=+("function"==typeof e?e.apply(this,arguments):e),o=(("function"==typeof c?c.apply(this,arguments):c)-i)/Gr.sum(r),t=Gr.range(n.length);null!=l&&t.sort(l===ma?function(t,e){return r[e]-r[t]}:function(t,e){return l(n[t],n[e])});var a=[];return t.forEach(function(t){var e;a[t]={data:n[t],value:e=r[t],startAngle:i,endAngle:i+=e*o}}),a}var u=Number,l=ma,e=0,c=2*Mi;return s.value=function(t){return arguments.length?(u=t,s):u},s.sort=function(t){return arguments.length?(l=t,s):l},s.startAngle=function(t){return arguments.length?(e=t,s):e},s.endAngle=function(t){return arguments.length?(c=t,s):c},s};var ma={};Gr.layout.stack=function(){function f(t,e){for(var n,r,i=(a=t.map(function(t,e){return h.call(f,t,e)})).map(function(t){return t.map(function(t,e){return[v.call(f,t,e),m.call(f,t,e)]})}),o=p.call(f,i,e),a=Gr.permute(a,o),i=Gr.permute(i,o),s=d.call(f,i,e),u=a.length,l=a[0].length,c=0;c<l;++c)for(g.call(f,a[0][c],r=s[c],i[0][c][1]),n=1;n<u;++n)g.call(f,a[n][c],r+=i[n-1][c][1],i[n][c][1]);return t}var h=lt,p=Nn,d=$n,g=_n,v=En,m=Sn;return f.values=function(t){return arguments.length?(h=t,f):h},f.order=function(t){return arguments.length?(p="function"==typeof t?t:ya.get(t)||Nn,f):p},f.offset=function(t){return arguments.length?(d="function"==typeof t?t:xa.get(t)||$n,f):d},f.x=function(t){return arguments.length?(v=t,f):v},f.y=function(t){return arguments.length?(m=t,f):m},f.out=function(t){return arguments.length?(g=t,f):g},f};var ya=Gr.map({"inside-out":function(t){for(var e,n=t.length,r=t.map(An),i=t.map(Dn),o=Gr.range(n).sort(function(t,e){return r[t]-r[e]}),a=0,s=0,u=[],l=[],c=0;c<n;++c)e=o[c],a<s?(a+=i[e],u.push(e)):(s+=i[e],l.push(e));return l.reverse().concat(u)},reverse:function(t){return Gr.range(t.length).reverse()},default:Nn}),xa=Gr.map({silhouette:function(t){for(var e,n,r=t.length,i=t[0].length,o=[],a=0,s=[],u=0;u<i;++u){for(n=e=0;e<r;e++)n+=t[e][u][1];a<n&&(a=n),o.push(n)}for(u=0;u<i;++u)s[u]=(a-o[u])/2;return s},wiggle:function(t){var e,n,r,i,o,a,s,u,l,c=t.length,f=t[0],h=f.length,p=[];for(p[0]=u=l=0,n=1;n<h;++n){for(i=e=0;e<c;++e)i+=t[e][n][1];for(o=e=0,s=f[n][0]-f[n-1][0];e<c;++e){for(r=0,a=(t[e][n][1]-t[e][n-1][1])/(2*s);r<e;++r)a+=(t[r][n][1]-t[r][n-1][1])/s;o+=a*t[e][n][1]}p[n]=u-=i?o/i*s:0,u<l&&(l=u)}for(n=0;n<h;++n)p[n]-=l;return p},expand:function(t){for(var e,n,r=t.length,i=t[0].length,o=1/r,a=[],s=0;s<i;++s){for(n=e=0;e<r;e++)n+=t[e][s][1];if(n)for(e=0;e<r;e++)t[e][s][1]/=n;else for(e=0;e<r;e++)t[e][s][1]=o}for(s=0;s<i;++s)a[s]=0;return a},zero:$n});Gr.layout.histogram=function(){function n(t,e){for(var n,r,i=[],o=t.map(h,this),a=p.call(this,o,e),s=d.call(this,a,o,e),e=-1,u=o.length,l=s.length-1,c=f?1:1/u;++e<l;)(n=i[e]=[]).dx=s[e+1]-(n.x=s[e]),n.y=0;if(0<l)for(e=-1;++e<u;)(r=o[e])>=a[0]&&r<=a[1]&&((n=i[Gr.bisect(s,r,1,l)-1]).y+=c,n.push(t[e]));return i}var f=!0,h=Number,p=qn,d=jn;return n.value=function(t){return arguments.length?(h=t,n):h},n.range=function(t){return arguments.length?(p=ut(t),n):p},n.bins=function(e){return arguments.length?(d="number"==typeof e?function(t){return Pn(t,e)}:ut(e),n):d},n.frequency=function(t){return arguments.length?(f=!!t,n):f},n},Gr.layout.tree=function(){function e(t,e){var n=c.call(this,t,e),r=n[0];Vn(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;++c<o;)t(s=r[c],a),l=function(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=On(a),i=Hn(i),a&&i;)s=Hn(s),(o=On(o))._tree.ancestor=t,0<(r=a._tree.prelim+c-i._tree.prelim-u+h(a,i))&&(function(t,e,n){t=t._tree;var r=n/((e=e._tree).number-t.number);t.change+=r,e.change-=r,e.shift+=n,e.prelim+=n,e.mod+=n}(function(t,e,n){return t._tree.ancestor.parent==e.parent?t._tree.ancestor:n}(a,t,n),t,r),u+=r,l+=r),c+=a._tree.mod,u+=i._tree.mod,f+=s._tree.mod,l+=o._tree.mod;a&&!On(o)&&(o._tree.thread=a,o._tree.mod+=c-l),i&&!Hn(s)&&(s._tree.thread=i,s._tree.mod+=u-f,n=t)}return n}(s,a,l),a=s;!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;0<=--o;)(e=i[o]._tree).prelim+=n,e.mod+=n,n+=e.shift+(r+=e.change)}(e);var f=.5*(u._tree.prelim+s._tree.prelim);n?(i.prelim=n._tree.prelim+h(e,n),i.mod=i.prelim-f):i.prelim=f}else n&&(i.prelim=n._tree.prelim+h(e,n))}(r),function t(e,n){e.x=e._tree.prelim+n;var r=e.children;if(r&&(i=r.length)){var i,o=-1;for(n+=e._tree.mod;++o<i;)t(r[o],n)}}(r,-r._tree.prelim);var i=Fn(r,zn),o=Fn(r,In),a=Fn(r,Wn),s=i.x-h(i,o)/2,u=o.x+h(o,i)/2,l=a.depth||1;return Vn(r,p?function(t){t.x*=f[0],t.y=t.depth*f[1],delete t._tree}:function(t){t.x=(t.x-s)/(u-s)*f[0],t.y=t.depth/l*f[1],delete t._tree}),n}var c=Gr.layout.hierarchy().sort(null).value(null),h=Rn,f=[1,1],p=!1;return e.separation=function(t){return arguments.length?(h=t,e):h},e.size=function(t){return arguments.length?(p=null==(f=t),e):p?null:f},e.nodeSize=function(t){return arguments.length?(p=null!=(f=t),e):p?f:null},wn(e,c)},Gr.layout.pack=function(){function e(t,e){var n,r=l.call(this,t,e),i=r[0],o=f[0],a=f[1],s=null==u?Math.sqrt:"function"==typeof u?u:function(){return u};return i.x=i.y=0,Vn(i,function(t){t.r=+s(t.value)}),Vn(i,Xn),c&&(n=c*(u?1:Math.max(2*i.r/o,2*i.r/a))/2,Vn(i,function(t){t.r+=n}),Vn(i,Xn),Vn(i,function(t){t.r-=n})),function t(e,n,r,i){var o=e.children;if(e.x=n+=i*e.x,e.y=r+=i*e.y,e.r*=i,o)for(var a=-1,s=o.length;++a<s;)t(o[a],n,r,i)}(i,o/2,a/2,u?1:1/Math.max(2*i.r/o,2*i.r/a)),r}var u,l=Gr.layout.hierarchy().sort(Bn),c=0,f=[1,1];return e.size=function(t){return arguments.length?(f=t,e):f},e.radius=function(t){return arguments.length?(u=null==t||"function"==typeof t?t:+t,e):u},e.padding=function(t){return arguments.length?(c=+t,e):c},wn(e,l)},Gr.layout.cluster=function(){function e(t,e){var i,n=c.call(this,t,e),r=n[0],o=0;Vn(r,function(t){var e,n,r=t.children;r&&r.length?(t.x=(n=r).reduce(function(t,e){return t+e.x},0)/n.length,t.y=(e=r,1+Gr.max(e,function(t){return t.y}))):(t.x=i?o+=f(t,i):0,t.y=0,i=t)});var a=function t(e){var n=e.children;return n&&n.length?t(n[0]):e}(r),s=function t(e){var n,r=e.children;return r&&(n=r.length)?t(r[n-1]):e}(r),u=a.x-f(a,s)/2,l=s.x+f(s,a)/2;return Vn(r,p?function(t){t.x=(t.x-r.x)*h[0],t.y=(r.y-t.y)*h[1]}:function(t){t.x=(t.x-u)/(l-u)*h[0],t.y=(1-(r.y?t.y/r.y:1))*h[1]}),n}var c=Gr.layout.hierarchy().sort(null).value(null),f=Rn,h=[1,1],p=!1;return e.separation=function(t){return arguments.length?(f=t,e):f},e.size=function(t){return arguments.length?(p=null==(h=t),e):p?null:h},e.nodeSize=function(t){return arguments.length?(p=null!=(h=t),e):p?h:null},wn(e,c)},Gr.layout.treemap=function(){function c(t,e){for(var n,r,i=-1,o=t.length;++i<o;)r=(n=t[i]).value*(e<0?0:e),n.area=isNaN(r)||r<=0?0:r}function f(t){var e=t.children;if(e&&e.length){var n,r,i,o=d(t),a=[],s=e.slice(),u=1/0,l="slice"===g?o.dx:"dice"===g?o.dy:"slice-dice"===g?1&t.depth?o.dy:o.dx:Math.min(o.dx,o.dy);for(c(s,o.dx*o.dy/t.value),a.area=0;0<(i=s.length);)a.push(n=s[i-1]),a.area+=n.area,u="squarify"!==g||(r=function(t,e){for(var n,r=t.area,i=0,o=1/0,a=-1,s=t.length;++a<s;)(n=t[a].area)&&(n<o&&(o=n),i<n&&(i=n));return e*=e,(r*=r)?Math.max(e*i*v/r,r/(e*o*v)):1/0}(a,l))<=u?(s.pop(),r):(a.area-=a.pop().area,h(a,l,o,!1),l=Math.min(o.dx,o.dy),1/(a.length=a.area=0));a.length&&(h(a,l,o,!0),a.length=a.area=0),e.forEach(f)}}function a(t){var e=t.children;if(e&&e.length){var n,r=d(t),i=e.slice(),o=[];for(c(i,r.dx*r.dy/t.value),o.area=0;n=i.pop();)o.push(n),o.area+=n.area,null!=n.z&&(h(o,n.z?r.dx:r.dy,r,!i.length),o.length=o.area=0);e.forEach(a)}}function h(t,e,n,r){var i,o=-1,a=t.length,s=n.x,u=n.y,l=e?p(t.area/e):0;if(e==n.dx){for((r||l>n.dy)&&(l=n.dy);++o<a;)(i=t[o]).x=s,i.y=u,i.dy=l,s+=i.dx=Math.min(n.x+n.dx-s,l?p(i.area/l):0);i.z=!0,i.dx+=n.x+n.dx-s,n.y+=l,n.dy-=l}else{for((r||l>n.dx)&&(l=n.dx);++o<a;)(i=t[o]).x=s,i.y=u,i.dx=l,u+=i.dy=Math.min(n.y+n.dy-u,l?p(i.area/l):0);i.z=!1,i.dy+=n.y+n.dy-u,n.x+=l,n.dx-=l}}function r(t){var e=i||o(t),n=e[0];return n.x=0,n.y=0,n.dx=s[0],n.dy=s[1],i&&o.revalue(n),c([n],n.dx*n.dy/n.value),(i?a:f)(n),l&&(i=e),e}var i,o=Gr.layout.hierarchy(),p=Math.round,s=[1,1],u=null,d=Kn,l=!1,g="squarify",v=.5*(1+Math.sqrt(5));return r.size=function(t){return arguments.length?(s=t,r):s},r.padding=function(n){function t(t){return tr(t,n)}return arguments.length?(d=null==(u=n)?Kn:"function"==(e=typeof n)?function(t){var e=n.call(r,t,t.depth);return null==e?Kn(t):tr(t,"number"==typeof e?[e,e,e,e]:e)}:("number"==e&&(n=[n,n,n,n]),t),r):u;var e},r.round=function(t){return arguments.length?(p=t?Math.round:Number,r):p!=Number},r.sticky=function(t){return arguments.length?(l=t,i=null,r):l},r.ratio=function(t){return arguments.length?(v=t,r):v},r.mode=function(t){return arguments.length?(g=t+"",r):g},wn(r,o)},Gr.random={normal:function(r,i){var t=arguments.length;return t<2&&(i=1),t<1&&(r=0),function(){for(var t,e,n;!(n=(t=2*Math.random()-1)*t+(e=2*Math.random()-1)*e)||1<n;);return r+i*t*Math.sqrt(-2*Math.log(n)/n)}},logNormal:function(){var t=Gr.random.normal.apply(Gr,arguments);return function(){return Math.exp(t())}},irwinHall:function(n){return function(){for(var t=0,e=0;e<n;e++)t+=Math.random();return t/n}}},Gr.scale={};var ba={floor:lt,ceil:lt};Gr.scale.linear=function(){return function t(n,r,i,o){function e(){var t=2<Math.min(n.length,r.length)?or:rr,e=o?dn:pn;return s=t(n,r,e,i),u=t(r,n,e,Qe),a}function a(t){return s(t)}var s,u;return a.invert=function(t){return u(t)},a.domain=function(t){return arguments.length?(n=t.map(Number),e()):n},a.range=function(t){return arguments.length?(r=t,e()):r},a.rangeRound=function(t){return a.range(t).interpolate(un)},a.clamp=function(t){return arguments.length?(o=t,e()):o},a.interpolate=function(t){return arguments.length?(i=t,e()):i},a.ticks=function(t){return lr(n,t)},a.tickFormat=function(t,e){return cr(n,t,e)},a.nice=function(t){return sr(n,t),e()},a.copy=function(){return t(n,r,i,o)},e()}([0,1],[0,1],Qe,!1)},Gr.scale.log=function(){return function t(e,u,l,c){function f(t){return(l?Math.log(t<0?0:t):-Math.log(0<t?0:-t))/Math.log(u)}function h(t){return l?Math.pow(u,t):-Math.pow(u,-t)}function o(t){return e(f(t))}return o.invert=function(t){return h(e.invert(t))},o.domain=function(t){return arguments.length?(l=0<=t[0],e.domain((c=t.map(Number)).map(f)),o):c},o.base=function(t){return arguments.length?(u=+t,e.domain(c.map(f)),o):u},o.nice=function(){var t=ir(c.map(f),l?Math:Ma);return e.domain(t),c=t.map(h),o},o.ticks=function(){var t=er(c),e=[],n=t[0],r=t[1],i=Math.floor(f(n)),o=Math.ceil(f(r)),a=u%1?2:u;if(isFinite(o-i)){if(l){for(;i<o;i++)for(var s=1;s<a;s++)e.push(h(i)*s);e.push(h(i))}else for(e.push(h(i));i++<o;)for(s=a-1;0<s;s--)e.push(h(i)*s);for(i=0;e[i]<n;i++);for(o=e.length;e[o-1]>r;o--);e=e.slice(i,o)}return e},o.tickFormat=function(t,e){if(!arguments.length)return wa;arguments.length<2?e=wa:"function"!=typeof e&&(e=Gr.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)},ar(o,e)}(Gr.scale.linear().domain([0,1]),10,!0,[1,10])};var wa=Gr.format(".0e"),Ma={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};Gr.scale.pow=function(){return function t(e,n,r){function i(t){return e(o(t))}var o=fr(n),a=fr(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 lr(r,t)},i.tickFormat=function(t,e){return cr(r,t,e)},i.nice=function(t){return i.domain(sr(r,t))},i.exponent=function(t){return arguments.length?(o=fr(n=t),a=fr(1/n),e.domain(r.map(o)),i):n},i.copy=function(){return t(e.copy(),n,r)},ar(i,e)}(Gr.scale.linear(),1,[0,1])},Gr.scale.sqrt=function(){return Gr.scale.pow().exponent(.5)},Gr.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 Gr.range(u.length).map(function(t){return e+n*t})}var i,h,p;return c.domain=function(t){if(!arguments.length)return u;u=[],i=new x;for(var e,n=-1,r=t.length;++n<r;)i.has(e=t[n])||i.set(e,u.push(e));return c[l.t].apply(c,l.a)},c.range=function(t){return arguments.length?(h=t,p=0,l={t:"range",a:arguments},c):h},c.rangePoints=function(t,e){arguments.length<2&&(e=0);var n=t[0],r=t[1],i=(r-n)/(Math.max(1,u.length-1)+e);return h=f(u.length<2?(n+r)/2:n+i*e/2,i),p=0,l={t:"rangePoints",a:arguments},c},c.rangeBands=function(t,e,n){arguments.length<2&&(e=0),arguments.length<3&&(n=e);var r=t[1]<t[0],i=t[+r],o=(t[1-r]-i)/(u.length-e+2*n);return h=f(i+o*n,o),r&&h.reverse(),p=o*(1-e),l={t:"rangeBands",a:arguments},c},c.rangeRoundBands=function(t,e,n){arguments.length<2&&(e=0),arguments.length<3&&(n=e);var r=t[1]<t[0],i=t[+r],o=t[1-r],a=Math.floor((o-i)/(u.length-e+2*n)),s=o-i-(u.length-e)*a;return h=f(i+Math.round(s/2),a),r&&h.reverse(),p=Math.round(a*(1-e)),l={t:"rangeRoundBands",a:arguments},c},c.rangeBand=function(){return p},c.rangeExtent=function(){return er(l.a[0])},c.copy=function(){return t(u,l)},c.domain(u)}([],{t:"range",a:[[]]})},Gr.scale.category10=function(){return Gr.scale.ordinal().range(Ca)},Gr.scale.category20=function(){return Gr.scale.ordinal().range(ka)},Gr.scale.category20b=function(){return Gr.scale.ordinal().range(Ta)},Gr.scale.category20c=function(){return Gr.scale.ordinal().range(Ea)};var Ca=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(K),ka=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(K),Ta=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(K),Ea=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(K);Gr.scale.quantile=function(){return function t(n,r){function e(){var t=0,e=r.length;for(o=[];++t<e;)o[t-1]=Gr.quantile(n,t/e);return i}function i(t){return isNaN(t=+t)?void 0:r[Gr.bisect(o,t)]}var o;return i.domain=function(t){return arguments.length?(n=t.filter(function(t){return!isNaN(t)}).sort(Gr.ascending),e()):n},i.range=function(t){return arguments.length?(r=t,e()):r},i.quantiles=function(){return o},i.invertExtent=function(t){return(t=r.indexOf(t))<0?[NaN,NaN]:[0<t?o[t-1]:n[0],t<o.length?o[t]:n[n.length-1]]},i.copy=function(){return t(n,r)},e()}([],[])},Gr.scale.quantize=function(){return function t(e,n,r){function i(t){return r[Math.max(0,Math.min(s,Math.floor(a*(t-e))))]}function o(){return a=r.length/(n-e),s=r.length-1,i}var a,s;return i.domain=function(t){return arguments.length?(e=+t[0],n=+t[t.length-1],o()):[e,n]},i.range=function(t){return arguments.length?(r=t,o()):r},i.invertExtent=function(t){return[t=(t=r.indexOf(t))<0?NaN:t/a+e,t+1/a]},i.copy=function(){return t(e,n,r)},o()}(0,1,[0,1])},Gr.scale.threshold=function(){return function t(e,n){function r(t){return t<=t?n[Gr.bisect(e,t)]:void 0}return r.domain=function(t){return arguments.length?(e=t,r):e},r.range=function(t){return arguments.length?(n=t,r):n},r.invertExtent=function(t){return t=n.indexOf(t),[e[t-1],e[t]]},r.copy=function(){return t(e,n)},r}([.5],[0,1])},Gr.scale.identity=function(){return function t(n){function e(t){return+t}return(e.invert=e).domain=e.range=function(t){return arguments.length?(n=t.map(e),e):n},e.ticks=function(t){return lr(n,t)},e.tickFormat=function(t,e){return cr(n,t,e)},e.copy=function(){return t(n)},e}([0,1])},Gr.svg.arc=function(){function e(){var t=c.apply(this,arguments),e=f.apply(this,arguments),n=h.apply(this,arguments)+Sa,r=p.apply(this,arguments)+Sa,i=(r<n&&(i=n,n=r,r=i),r-n),o=i<Mi?"0":"1",a=Math.cos(n),s=Math.sin(n),u=Math.cos(r),l=Math.sin(r);return _a<=i?t?"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"M0,"+t+"A"+t+","+t+" 0 1,0 0,"+-t+"A"+t+","+t+" 0 1,0 0,"+t+"Z":"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z":t?"M"+e*a+","+e*s+"A"+e+","+e+" 0 "+o+",1 "+e*u+","+e*l+"L"+t*u+","+t*l+"A"+t+","+t+" 0 "+o+",0 "+t*a+","+t*s+"Z":"M"+e*a+","+e*s+"A"+e+","+e+" 0 "+o+",1 "+e*u+","+e*l+"L0,0Z"}var c=hr,f=pr,h=dr,p=gr;return e.innerRadius=function(t){return arguments.length?(c=ut(t),e):c},e.outerRadius=function(t){return arguments.length?(f=ut(t),e):f},e.startAngle=function(t){return arguments.length?(h=ut(t),e):h},e.endAngle=function(t){return arguments.length?(p=ut(t),e):p},e.centroid=function(){var t=(c.apply(this,arguments)+f.apply(this,arguments))/2,e=(h.apply(this,arguments)+p.apply(this,arguments))/2+Sa;return[Math.cos(e)*t,Math.sin(e)*t]},e};var Sa=-Mi/2,_a=2*Mi-1e-6;Gr.svg.line.radial=function(){var t=Ee(vr);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},($e.reverse=Ae).reverse=$e,Gr.svg.area=function(){return mr(lt)},Gr.svg.area.radial=function(){var t=mr(vr);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},Gr.svg.chord=function(){function e(t,e){var n,r,i=a(this,l,t,e),o=a(this,c,t,e);return"M"+i.p0+s(i.r,i.p1,i.a1-i.a0)+(r=o,(n=i).a0==r.a0&&n.a1==r.a1?u(i.r,i.p1,i.r,i.p0):u(i.r,i.p1,o.r,o.p0)+s(o.r,o.p1,o.a1-o.a0)+u(o.r,o.p1,i.r,i.p0))+"Z"}function a(t,e,n,r){var i=e.call(t,n,r),o=f.call(t,i,r),a=h.call(t,i,r)+Sa,s=p.call(t,i,r)+Sa;return{r:o,a0:a,a1:s,p0:[o*Math.cos(a),o*Math.sin(a)],p1:[o*Math.cos(s),o*Math.sin(s)]}}function s(t,e,n){return"A"+t+","+t+" 0 "+ +(Mi<n)+",1 "+e}function u(t,e,n,r){return"Q 0,0 "+r}var l=ye,c=xe,f=yr,h=dr,p=gr;return e.radius=function(t){return arguments.length?(f=ut(t),e):f},e.source=function(t){return arguments.length?(l=ut(t),e):l},e.target=function(t){return arguments.length?(c=ut(t),e):c},e.startAngle=function(t){return arguments.length?(h=ut(t),e):h},e.endAngle=function(t){return arguments.length?(p=ut(t),e):p},e},Gr.svg.diagonal=function(){function e(t,e){var n=a.call(this,t,e),r=s.call(this,t,e),i=(n.y+r.y)/2,o=[n,{x:n.x,y:i},{x:r.x,y:i},r];return"M"+(o=o.map(u))[0]+"C"+o[1]+" "+o[2]+" "+o[3]}var a=ye,s=xe,u=xr;return e.source=function(t){return arguments.length?(a=ut(t),e):a},e.target=function(t){return arguments.length?(s=ut(t),e):s},e.projection=function(t){return arguments.length?(u=t,e):u},e},Gr.svg.diagonal.radial=function(){var t=Gr.svg.diagonal(),e=xr,n=t.projection;return t.projection=function(t){return arguments.length?n((r=e=t,function(){var t=r.apply(this,arguments),e=t[0],n=t[1]+Sa;return[e*Math.cos(n),e*Math.sin(n)]})):e;var r},t},Gr.svg.symbol=function(){function e(t,e){return(Na.get(n.call(this,t,e))||Mr)(r.call(this,t,e))}var n=wr,r=br;return e.type=function(t){return arguments.length?(n=ut(t),e):n},e.size=function(t){return arguments.length?(r=ut(t),e):r},e};var Na=Gr.map({circle:Mr,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*La)),n=e*La;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/Da),n=e*Da/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Da),n=e*Da/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});Gr.svg.symbolTypes=Na.keys();var $a,Aa,Da=Math.sqrt(3),La=Math.tan(30*Ti),ja=[],Pa=0;ja.call=di.call,ja.empty=di.empty,ja.node=di.node,ja.size=di.size,Gr.transition=function(t){return arguments.length?$a?t.transition():t:mi.transition()},Gr.transition.prototype=ja,di.transition=function(){for(var t,e,n=$a||++Pa,r=[],i=Aa||{time:Date.now(),ease:nn,delay:0,duration:250},o=-1,a=this.length;++o<a;){r.push(t=[]);for(var s=this[o],u=-1,l=s.length;++u<l;)(e=s[u])&&Sr(e,u,n,i),t.push(e)}return Cr(r,n)},di.interrupt=function(){return this.each(kr)},ja.select=function(t){var e,n,r,i=this.id,o=[];t=h(t);for(var a=-1,s=this.length;++a<s;){o.push(e=[]);for(var u=this[a],l=-1,c=u.length;++l<c;)(r=u[l])&&(n=t.call(r,r.__data__,l,a))?("__data__"in r&&(n.__data__=r.__data__),Sr(n,l,i,r.__transition__[i]),e.push(n)):e.push(null)}return Cr(o,i)},ja.selectAll=function(t){var e,n,r,i,o,a=this.id,s=[];t=g(t);for(var u=-1,l=this.length;++u<l;)for(var c=this[u],f=-1,h=c.length;++f<h;)if(r=c[f]){o=r.__transition__[a],n=t.call(r,r.__data__,f,u),s.push(e=[]);for(var p=-1,d=n.length;++p<d;)(i=n[p])&&Sr(i,p,a,o),e.push(i)}return Cr(s,a)},ja.filter=function(t){var e,n,r=[];"function"!=typeof t&&(t=M(t));for(var i=0,o=this.length;i<o;i++){r.push(e=[]);for(var a,s=0,u=(a=this[i]).length;s<u;s++)(n=a[s])&&t.call(n,n.__data__,s)&&e.push(n)}return Cr(r,this.id)},ja.tween=function(e,n){var r=this.id;return arguments.length<2?this.node().__transition__[r].tween.get(e):C(this,null==n?function(t){t.__transition__[r].tween.remove(e)}:function(t){t.__transition__[r].tween.set(e,n)})},ja.attr=function(t,e){function r(){this.removeAttribute(a)}function i(){this.removeAttributeNS(a.space,a.local)}if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var o="transform"==t?hn:Qe,a=Gr.ns.qualify(t);return Tr(this,"attr."+t,e,a.local?function(n){return null==n?i:(n+="",function(){var e,t=this.getAttributeNS(a.space,a.local);return t!==n&&(e=o(t,n),function(t){this.setAttributeNS(a.space,a.local,e(t))})})}:function(n){return null==n?r:(n+="",function(){var e,t=this.getAttribute(a);return t!==n&&(e=o(t,n),function(t){this.setAttribute(a,e(t))})})})},ja.attrTween=function(t,r){var i=Gr.ns.qualify(t);return this.tween("attr."+t,i.local?function(t,e){var n=r.call(this,t,e,this.getAttributeNS(i.space,i.local));return n&&function(t){this.setAttributeNS(i.space,i.local,n(t))}}:function(t,e){var n=r.call(this,t,e,this.getAttribute(i));return n&&function(t){this.setAttribute(i,n(t))}})},ja.style=function(r,t,i){function e(){this.style.removeProperty(r)}var n=arguments.length;if(n<3){if("string"!=typeof r){for(i in n<2&&(t=""),r)this.style(i,r[i],t);return this}i=""}return Tr(this,"style."+r,t,function(n){return null==n?e:(n+="",function(){var e,t=Jr.getComputedStyle(this,null).getPropertyValue(r);return t!==n&&(e=Qe(t,n),function(t){this.style.setProperty(r,e(t),i)})})})},ja.styleTween=function(r,i,o){return arguments.length<3&&(o=""),this.tween("style."+r,function(t,e){var n=i.call(this,t,e,Jr.getComputedStyle(this,null).getPropertyValue(r));return n&&function(t){this.style.setProperty(r,n(t),o)}})},ja.text=function(t){return Tr(this,"text",t,Er)},ja.remove=function(){return this.each("end.transition",function(){var t;this.__transition__.count<2&&(t=this.parentNode)&&t.removeChild(this)})},ja.ease=function(e){var n=this.id;return arguments.length<1?this.node().__transition__[n].ease:("function"!=typeof e&&(e=Gr.ease.apply(Gr,arguments)),C(this,function(t){t.__transition__[n].ease=e}))},ja.delay=function(r){var i=this.id;return C(this,"function"==typeof r?function(t,e,n){t.__transition__[i].delay=+r.call(t,t.__data__,e,n)}:(r=+r,function(t){t.__transition__[i].delay=r}))},ja.duration=function(r){var i=this.id;return C(this,"function"==typeof r?function(t,e,n){t.__transition__[i].duration=Math.max(1,r.call(t,t.__data__,e,n))}:(r=Math.max(1,r),function(t){t.__transition__[i].duration=r}))},ja.each=function(r,n){var t,e,i=this.id;return arguments.length<2?(t=Aa,e=$a,$a=i,C(this,function(t,e,n){Aa=t.__transition__[i],r.call(t,t.__data__,e,n)}),Aa=t,$a=e):C(this,function(t){var e=t.__transition__[i];(e.event||(e.event=Gr.dispatch("start","end"))).on(r,n)}),this},ja.transition=function(){for(var t,e,n,r=this.id,i=++Pa,o=[],a=0,s=this.length;a<s;a++){o.push(t=[]);for(var u,l=0,c=(u=this[a]).length;l<c;l++)(e=u[l])&&((n=Object.create(e.__transition__[r])).delay+=n.duration,Sr(e,l,i,n)),t.push(e)}return Cr(o,i)},Gr.svg.axis=function(){function n(t){t.each(function(){var t,e=Gr.select(this),n=null==S?w.ticks?w.ticks.apply(w,E):w.domain():S,r=null==b?w.tickFormat?w.tickFormat.apply(w,E):lt:b,i=e.selectAll(".tick").data(n,lt),o=i.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),a=Gr.transition(i.exit()).style("opacity",1e-6).remove(),s=Gr.transition(i).style("opacity",1),u=nr(w),l=e.selectAll(".domain").data([0]),c=(l.enter().append("path").attr("class","domain"),Gr.transition(l)),f=w.copy(),h=this.__chart__||f;this.__chart__=f,o.append("line"),o.append("text");var p,d,g=o.select("line"),v=s.select("line"),m=i.select("text").text(r),y=o.select("text"),x=s.select("text");switch(M){case"bottom":t=_r,g.attr("y2",C),y.attr("y",Math.max(C,0)+T),v.attr("x2",0).attr("y2",C),x.attr("x",0).attr("y",Math.max(C,0)+T),m.attr("dy",".71em").style("text-anchor","middle"),c.attr("d","M"+u[0]+","+k+"V0H"+u[1]+"V"+k);break;case"top":t=_r,g.attr("y2",-C),y.attr("y",-(Math.max(C,0)+T)),v.attr("x2",0).attr("y2",-C),x.attr("x",0).attr("y",-(Math.max(C,0)+T)),m.attr("dy","0em").style("text-anchor","middle"),c.attr("d","M"+u[0]+","+-k+"V0H"+u[1]+"V"+-k);break;case"left":t=Nr,g.attr("x2",-C),y.attr("x",-(Math.max(C,0)+T)),v.attr("x2",-C).attr("y2",0),x.attr("x",-(Math.max(C,0)+T)).attr("y",0),m.attr("dy",".32em").style("text-anchor","end"),c.attr("d","M"+-k+","+u[0]+"H0V"+u[1]+"H"+-k);break;case"right":t=Nr,g.attr("x2",C),y.attr("x",Math.max(C,0)+T),v.attr("x2",C).attr("y2",0),x.attr("x",Math.max(C,0)+T).attr("y",0),m.attr("dy",".32em").style("text-anchor","start"),c.attr("d","M"+k+","+u[0]+"H0V"+u[1]+"H"+k)}w.rangeBand?(p=f.rangeBand()/2,d=function(t){return f(t)+p},o.call(t,d),s.call(t,d)):(o.call(t,h),s.call(t,f),a.call(t,f))})}var b,w=Gr.scale.linear(),M=qa,C=6,k=6,T=3,E=[10],S=null;return n.scale=function(t){return arguments.length?(w=t,n):w},n.orient=function(t){return arguments.length?(M=t in Ra?t+"":qa,n):M},n.ticks=function(){return arguments.length?(E=arguments,n):E},n.tickValues=function(t){return arguments.length?(S=t,n):S},n.tickFormat=function(t){return arguments.length?(b=t,n):b},n.tickSize=function(t){var e=arguments.length;return e?(C=+t,k=+arguments[e-1],n):C},n.innerTickSize=function(t){return arguments.length?(C=+t,n):C},n.outerTickSize=function(t){return arguments.length?(k=+t,n):k},n.tickPadding=function(t){return arguments.length?(T=+t,n):T},n.tickSubdivide=function(){return arguments.length&&n},n};var qa="bottom",Ra={top:1,right:1,bottom:1,left:1};Gr.svg.brush=function(){function x(t){t.each(function(){var t=Gr.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",a).on("touchstart.brush",a),e=t.selectAll(".background").data([0]);e.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var n=t.selectAll(".resize").data(s,lt);n.exit().remove(),n.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Ha[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),n.style("display",x.empty()?"none":null);var r,i=Gr.transition(t),o=Gr.transition(e);E&&(r=nr(E),o.attr("x",r[0]).attr("width",r[1]-r[0]),w(i)),S&&(r=nr(S),o.attr("y",r[0]).attr("height",r[1]-r[0]),M(i)),b(i)})}function b(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+_[+/e$/.test(t)]+","+N[+/^s/.test(t)]+")"})}function w(t){t.select(".extent").attr("x",_[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",_[1]-_[0])}function M(t){t.select(".extent").attr("y",N[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",N[1]-N[0])}function a(){function n(){var t=Gr.event.changedTouches;return t?Gr.touches(s,t)[0]:Gr.mouse(s)}function t(){var t=n(),e=!1;a&&(t[0]+=a[0],t[1]+=a[1]),g||(Gr.event.altKey?(f=f||[(_[0]+_[1])/2,(N[0]+N[1])/2],m[0]=_[+(t[0]<f[0])],m[1]=N[+(t[1]<f[1])]):f=null),p&&r(t,E,0)&&(w(c),e=!0),d&&r(t,S,1)&&(M(c),e=!0),e&&(b(c),l({type:"brush",mode:g?"move":"resize"}))}function r(t,e,n){var r,i,o=nr(e),a=o[0],s=o[1],u=m[n],l=n?N:_,c=l[1]-l[0];return g&&(a-=u,s-=c+u),r=(n?A:$)?Math.max(a,Math.min(s,t[n])):t[n],g?i=(r+=u)+c:(f&&(u=Math.max(a,Math.min(s,2*f[n]-r))),u<r?(i=r,r=u):i=u),(l[0]!=r||l[1]!=i)&&(n?k=null:C=null,l[0]=r,l[1]=i,1)}function e(){t(),c.style("pointer-events","all").selectAll(".resize").style("display",x.empty()?"none":null),Gr.select("body").style("cursor",null),y.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),v(),l({type:"brushend"})}var f,i,o,a,s=this,u=Gr.select(Gr.event.target),l=T.of(s,arguments),c=Gr.select(s),h=u.datum(),p=!/^(n|s)$/.test(h)&&E,d=!/^(e|w)$/.test(h)&&S,g=u.classed("extent"),v=j(),m=n(),y=Gr.select(Jr).on("keydown.brush",function(){32==Gr.event.keyCode&&(g||(f=null,m[0]-=_[1],m[1]-=N[1],g=2),D())}).on("keyup.brush",function(){32==Gr.event.keyCode&&2==g&&(m[0]+=_[1],m[1]+=N[1],g=0,D())});Gr.event.changedTouches?y.on("touchmove.brush",t).on("touchend.brush",e):y.on("mousemove.brush",t).on("mouseup.brush",e),c.interrupt().selectAll("*").interrupt(),g?(m[0]=_[0]-m[0],m[1]=N[0]-m[1]):h?(i=+/w$/.test(h),o=+/^n/.test(h),a=[_[1-i]-m[0],N[1-o]-m[1]],m[0]=_[i],m[1]=N[o]):Gr.event.altKey&&(f=m.slice()),c.style("pointer-events","none").selectAll(".resize").style("display",null),Gr.select("body").style("cursor",u.style("cursor")),l({type:"brushstart"}),t()}var C,k,T=L(x,"brushstart","brush","brushend"),E=null,S=null,_=[0,0],N=[0,0],$=!0,A=!0,s=Oa[0];return x.event=function(t){t.each(function(){var r=T.of(this,arguments),i={x:_,y:N,i:C,j:k},t=this.__chart__||i;this.__chart__=i,$a?Gr.select(this).transition().each("start.brush",function(){C=t.i,k=t.j,_=t.x,N=t.y,r({type:"brushstart"})}).tween("brush:brush",function(){var e=Ze(_,i.x),n=Ze(N,i.y);return C=k=null,function(t){_=i.x=e(t),N=i.y=n(t),r({type:"brush",mode:"resize"})}}).each("end.brush",function(){C=i.i,k=i.j,r({type:"brush",mode:"resize"}),r({type:"brushend"})}):(r({type:"brushstart"}),r({type:"brush",mode:"resize"}),r({type:"brushend"}))})},x.x=function(t){return arguments.length?(s=Oa[!(E=t)<<1|!S],x):E},x.y=function(t){return arguments.length?(s=Oa[!E<<1|!(S=t)],x):S},x.clamp=function(t){return arguments.length?(E&&S?($=!!t[0],A=!!t[1]):E?$=!!t:S&&(A=!!t),x):E&&S?[$,A]:E?$:S?A:null},x.extent=function(t){var e,n,r,i,o;return arguments.length?(E&&(e=t[0],n=t[1],S&&(e=e[0],n=n[0]),C=[e,n],E.invert&&(e=E(e),n=E(n)),n<e&&(o=e,e=n,n=o),e==_[0]&&n==_[1]||(_=[e,n])),S&&(r=t[0],i=t[1],E&&(r=r[1],i=i[1]),k=[r,i],S.invert&&(r=S(r),i=S(i)),i<r&&(o=r,r=i,i=o),r==N[0]&&i==N[1]||(N=[r,i])),x):(E&&(C?(e=C[0],n=C[1]):(e=_[0],n=_[1],E.invert&&(e=E.invert(e),n=E.invert(n)),n<e&&(o=e,e=n,n=o))),S&&(k?(r=k[0],i=k[1]):(r=N[0],i=N[1],S.invert&&(r=S.invert(r),i=S.invert(i)),i<r&&(o=r,r=i,i=o))),E&&S?[[e,r],[n,i]]:E?[e,n]:S&&[r,i])},x.clear=function(){return x.empty()||(_=[0,0],N=[0,0],C=k=null),x},x.empty=function(){return!!E&&_[0]==_[1]||!!S&&N[0]==N[1]},Gr.rebind(x,T,"on")};var Ha={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Oa=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Fa=Gr.time={},Ia=Date;$r.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){za.setUTCDate.apply(this._,arguments)},setDay:function(){za.setUTCDay.apply(this._,arguments)},setFullYear:function(){za.setUTCFullYear.apply(this._,arguments)},setHours:function(){za.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){za.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){za.setUTCMinutes.apply(this._,arguments)},setMonth:function(){za.setUTCMonth.apply(this._,arguments)},setSeconds:function(){za.setUTCSeconds.apply(this._,arguments)},setTime:function(){za.setTime.apply(this._,arguments)}};var za=Date.prototype,Wa=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Va=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ba=["January","February","March","April","May","June","July","August","September","October","November","December"],Ua=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Fa.year=Ar(function(t){return(t=Fa.day(t)).setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),Fa.years=Fa.year.range,Fa.years.utc=Fa.year.utc.range,Fa.day=Ar(function(t){var e=new Ia(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),Fa.days=Fa.day.range,Fa.days.utc=Fa.day.utc.range,Fa.dayOfYear=function(t){var e=Fa.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].forEach(function(t,n){t=t.toLowerCase(),n=7-n;var e=Fa[t]=Ar(function(t){return(t=Fa.day(t)).setDate(t.getDate()-(t.getDay()+n)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var e=Fa.year(t).getDay();return Math.floor((Fa.dayOfYear(t)+(e+n)%7)/7)-(e!==n)});Fa[t+"s"]=e.range,Fa[t+"s"].utc=e.utc.range,Fa[t+"OfYear"]=function(t){var e=Fa.year(t).getDay();return Math.floor((Fa.dayOfYear(t)+(e+n)%7)/7)}}),Fa.week=Fa.sunday,Fa.weeks=Fa.sunday.range,Fa.weeks.utc=Fa.sunday.utc.range,Fa.weekOfYear=Fa.sundayOfYear,Fa.format=Lr;var Ga=Pr(Wa),Ya=qr(Wa),Xa=Pr(Va),Qa=qr(Va),Za=Pr(Ba),Ja=qr(Ba),Ka=Pr(Ua),ts=qr(Ua),es=/^%/,ns={"-":"",_:" ",0:"0"},rs={a:function(t){return Va[t.getDay()]},A:function(t){return Wa[t.getDay()]},b:function(t){return Ua[t.getMonth()]},B:function(t){return Ba[t.getMonth()]},c:Lr("%a %b %e %X %Y"),d:function(t,e){return Rr(t.getDate(),e,2)},e:function(t,e){return Rr(t.getDate(),e,2)},H:function(t,e){return Rr(t.getHours(),e,2)},I:function(t,e){return Rr(t.getHours()%12||12,e,2)},j:function(t,e){return Rr(1+Fa.dayOfYear(t),e,3)},L:function(t,e){return Rr(t.getMilliseconds(),e,3)},m:function(t,e){return Rr(t.getMonth()+1,e,2)},M:function(t,e){return Rr(t.getMinutes(),e,2)},p:function(t){return 12<=t.getHours()?"PM":"AM"},S:function(t,e){return Rr(t.getSeconds(),e,2)},U:function(t,e){return Rr(Fa.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Rr(Fa.mondayOfYear(t),e,2)},x:Lr("%m/%d/%Y"),X:Lr("%H:%M:%S"),y:function(t,e){return Rr(t.getFullYear()%100,e,2)},Y:function(t,e){return Rr(t.getFullYear()%1e4,e,4)},Z:function(t){var e=t.getTimezoneOffset(),n=0<e?"-":"+",r=~~(Math.abs(e)/60),i=Math.abs(e)%60;return n+Rr(r,"0",2)+Rr(i,"0",2)},"%":function(){return"%"}},is={a:function(t,e,n){Xa.lastIndex=0;var r=Xa.exec(e.substring(n));return r?(t.w=Qa.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){Ga.lastIndex=0;var r=Ga.exec(e.substring(n));return r?(t.w=Ya.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){Ka.lastIndex=0;var r=Ka.exec(e.substring(n));return r?(t.m=ts.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){Za.lastIndex=0;var r=Za.exec(e.substring(n));return r?(t.m=Ja.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,e,n){return jr(t,rs.c.toString(),e,n)},d:Hr,e:Hr,H:Or,I:Or,j:function(t,e,n){os.lastIndex=0;var r=os.exec(e.substring(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1},L:function(t,e,n){os.lastIndex=0;var r=os.exec(e.substring(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1},m:function(t,e,n){os.lastIndex=0;var r=os.exec(e.substring(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1},M:function(t,e,n){os.lastIndex=0;var r=os.exec(e.substring(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1},p:function(t,e,n){var r=as.get(e.substring(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)},S:function(t,e,n){os.lastIndex=0;var r=os.exec(e.substring(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1},U:function(t,e,n){os.lastIndex=0;var r=os.exec(e.substring(n));return r?(t.U=+r[0],n+r[0].length):-1},w:function(t,e,n){os.lastIndex=0;var r=os.exec(e.substring(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1},W:function(t,e,n){os.lastIndex=0;var r=os.exec(e.substring(n));return r?(t.W=+r[0],n+r[0].length):-1},x:function(t,e,n){return jr(t,rs.x.toString(),e,n)},X:function(t,e,n){return jr(t,rs.X.toString(),e,n)},y:function(t,e,n){os.lastIndex=0;var r,i=os.exec(e.substring(n,n+2));return i?(t.y=(r=+i[0])+(68<r?1900:2e3),n+i[0].length):-1},Y:function(t,e,n){os.lastIndex=0;var r=os.exec(e.substring(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1},"%":function(t,e,n){es.lastIndex=0;var r=es.exec(e.substring(n,n+1));return r?n+r[0].length:-1}},os=/^\s*\d+/,as=Gr.map({am:0,pm:1});Lr.utc=Fr;var ss=Fr("%Y-%m-%dT%H:%M:%S.%LZ");Lr.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Ir:ss,Ir.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Ir.toString=ss.toString,Fa.second=Ar(function(t){return new Ia(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),Fa.seconds=Fa.second.range,Fa.seconds.utc=Fa.second.utc.range,Fa.minute=Ar(function(t){return new Ia(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),Fa.minutes=Fa.minute.range,Fa.minutes.utc=Fa.minute.utc.range,Fa.hour=Ar(function(t){var e=t.getTimezoneOffset()/60;return new Ia(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),Fa.hours=Fa.hour.range,Fa.hours.utc=Fa.hour.utc.range,Fa.month=Ar(function(t){return(t=Fa.day(t)).setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),Fa.months=Fa.month.range,Fa.months.utc=Fa.month.utc.range;var us=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],ls=[[Fa.second,1],[Fa.second,5],[Fa.second,15],[Fa.second,30],[Fa.minute,1],[Fa.minute,5],[Fa.minute,15],[Fa.minute,30],[Fa.hour,1],[Fa.hour,3],[Fa.hour,6],[Fa.hour,12],[Fa.day,1],[Fa.day,2],[Fa.week,1],[Fa.month,1],[Fa.month,3],[Fa.year,1]],cs=Vr([[Lr("%Y"),Rt],[Lr("%B"),function(t){return t.getMonth()}],[Lr("%b %d"),function(t){return 1!=t.getDate()}],[Lr("%a %d"),function(t){return t.getDay()&&1!=t.getDate()}],[Lr("%I %p"),function(t){return t.getHours()}],[Lr("%I:%M"),function(t){return t.getMinutes()}],[Lr(":%S"),function(t){return t.getSeconds()}],[Lr(".%L"),function(t){return t.getMilliseconds()}]]);ls.year=Fa.year,Fa.scale=function(){return zr(Gr.scale.linear(),ls,cs)};var fs={range:function(t,e,n){return Gr.range(+t,+e,n).map(Wr)}},hs=ls.map(function(t){return[t[0].utc,t[1]]}),ps=Vr([[Fr("%Y"),Rt],[Fr("%B"),function(t){return t.getUTCMonth()}],[Fr("%b %d"),function(t){return 1!=t.getUTCDate()}],[Fr("%a %d"),function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],[Fr("%I %p"),function(t){return t.getUTCHours()}],[Fr("%I:%M"),function(t){return t.getUTCMinutes()}],[Fr(":%S"),function(t){return t.getUTCSeconds()}],[Fr(".%L"),function(t){return t.getUTCMilliseconds()}]]);return hs.year=Fa.year.utc,Fa.scale.utc=function(){return zr(Gr.scale.linear(),hs,ps)},Gr.text=ct(function(t){return t.responseText}),Gr.json=function(t,e){return ft(t,"application/json",Br,e)},Gr.html=function(t,e){return ft(t,"text/html",Ur,e)},Gr.xml=ct(function(t){return t.responseXML}),Gr}(),GV=GV||{},function(){"use strict";GV.toggleAllPlots=function(t){"file:"===window.location.protocol?$("#browseralert").modal():30<$(".plot_btn").length?$("#alert").modal():($("#spinner1").modal({backdrop:"static",keyboard:"false"}),"pressed"!==t.status?(t.status="pressed",$("#show_all_plots").html("Hide All Charts"),GV.showAllPlots()):(t.status="released",$("#show_all_plots").html("Show All Charts"),GV.removeAllPlots()),$("#spinner1").modal("hide"))},GV.showAllPlots=function(){$(".plot_btn").each(function(){"pressed"!==this.status&&GV.addData(this,"all")})},GV.removeAllPlots=function(){$(".tablesorter-childRow").each(function(){$(this).remove()}),$(".plot_btn").each(function(){this.status="released"})},GV.addData=function(t,e){var n,r,i;"file:"===window.location.protocol?$("#browseralert").modal():(r=(n=$(t).closest("tr")).attr("data-target"),(i=$("#mainrow"+r)).length&&"pressed"!==t.status?(GV.emptyChildRow(n,r,t),GV.addDataToChildRow(n,r,e)):0===i.length?(GV.createChildRow(n,r,t),GV.addDataToChildRow(n,r,e)):i.length&&GV.removeChildRow(n,i,t),$("table").trigger("update"))},GV.toggleOverviewBtn=function(){var t;"file:"===window.location.protocol?$("#overview").remove():(t=$("#overview_btn").data("overviewjson"),$.getJSON(t,function(t){var e=$("<span>"+t.less+"</span><br>"),n=$("<span>"+t.evaluation+"</span><br>");$("#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='<tr class="tablesorter-childRow" id="mainrow'+e+'"><td colspan="20" id="row'+e+'"><div id="'+e+'" class="expanded-child"></div></td></tr>';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<t.length;n++){var r=t[n];GV.addPlot(r.data,e,r.type,r.title,r.footer,r.xtitle,r.ytitle,r.aux1,r.aux2)}},GV.addExplanation=function(t,e){var n="#row"+t,r="<p><b>Approach:</b> "+e.approach+"</p>",i="<p><b>Explanation:</b> "+e.explanation+"</p>",o="<p><b>Conclusion:</b> "+e.conclusion+"</p>",a=$('<div id="'+t+'explanation" class="alert alert-info explanation_alert" role="alert">'+r+i+o+"</div>");$(n).prepend(a)},GV.addPlot=function(t,e,n,r,i,o,a,s,u){var l=""===i?[]:i.split(";");switch(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,p=d3.select("#".concat(e)).append("svg").attr("width",f+c+u).attr("height",h+s+l).append("g").attr("transform","translate("+c+","+s+")");p.append("text").attr("x",f/2).attr("y",-45).attr("text-anchor","middle").style("font-size","16px").text(n);var d=[].concat.apply([],t),g=d3.max(d,function(t){return t.value})+3,v=d3.scale.linear().domain([0,g+g/10]).range([h,0]),m=d3.min(d,function(t){return t.key});void 0!==a&&(m=Math.min(m,a));var y=d3.max(d,function(t){return t.key});void 0!==a&&(y=Math.max(y,a));var x=d3.scale.linear().domain([m-100,y+100]).range([13,f]),b=d3.svg.axis().scale(x).orient("bottom").ticks(8),w=d3.svg.axis().scale(v).orient("left").tickFormat(d3.format("d")).ticks(8);p.append("g").attr("class","x axis").attr("transform","translate(0,"+h+")").call(b).append("text").attr("class","label").attr("x",(f-i.length)/2-50).attr("y",35).style("text-anchor","start").text(i),p.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){p.selectAll(".bar").data(t).enter().append("rect").attr("x",function(t){return x(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&&(p.append("rect").attr("x",x(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")),p.append("text").attr("transform","rotate(-90)").attr("x",-g/10-35).attr("y",x(a)-5).text("query"));for(var M=0,C=0,k=0;k<r.length;k++)C=C+8*r[k].split(",")[0].length+15;for(var T=0;T<r.length;T++){var E=r[T].split(",");p.append("rect").attr("x",(f-C)/2+M).attr("y",-30).attr("width",10).attr("height",10).style("fill",GV.color_beautification(E[1].replace(/\s+/g,""))),p.append("text").attr("x",(f-C)/2+M+15).attr("y",-20).text(E[0]),M=M+8*E[0].length+15}},GV.plot_simple_bars=function(t,e,n,r,i,o){var a=70,s=50,u=75,l=50,c=600-l-s,f=500-a-u,h=d3.select("#".concat(e)).append("svg").attr("width",c+l+s).attr("height",f+a+u).append("g").attr("transform","translate("+l+","+a+")");h.append("text").attr("x",c/2).attr("y",-45).attr("text-anchor","middle").style("font-size","16px").text(n);var p=[].concat.apply([],t),d=d3.max(p,function(t){return t.value})+3,g=d3.scale.linear().domain([0,d]).range([f,0]),v=d3.min(p,function(t){return t.key}),m=d3.max(p,function(t){return t.key}),y=d3.scale.linear().domain([+v,m+0]).range([13,c]),x=d3.svg.axis().scale(y).orient("bottom").ticks(8),b=d3.svg.axis().scale(g).orient("left").tickFormat(d3.format("d")).ticks(8);h.append("g").attr("class","x axis").attr("transform","translate(0,"+f+")").call(x).append("text").attr("class","label").attr("x",(c-i.length)/2-50).attr("y",35).style("text-anchor","start").text(i),h.append("g").attr("class","y axis").call(b).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(f+o.length)/2-50).attr("y",-40).style("text-anchor","start").text(o),t.map(function(t){h.selectAll(".bar").data(t).enter().append("rect").attr("x",function(t){return y(t.key)}).attr("width",6).attr("y",function(t){return g(t.value)}).attr("height",function(t){return f-g(t.value)}).attr("fill",function(t){return!0===t.main?GV.color_beautification("red"):GV.color_beautification("blue")})})},GV.plot_scatter=function(t,e,n,r,i,o,a,s){var u=50,l=30,c=75,f=50,h=500-f-l,p=500-u-c,d=d3.scale.linear().range([0,h]),g=d3.scale.linear().range([p,0]),v=(d3.scale.category10(),d3.svg.axis().scale(d).orient("bottom").ticks(8)),m=d3.svg.axis().scale(g).orient("left").tickFormat(d3.format("d")).ticks(8),y=d3.select("#".concat(e)).append("svg").attr("width",h+f+l).attr("height",p+u+c).append("g").attr("transform","translate("+f+","+u+")");y.append("text").attr("x",h/2).attr("y",-25).attr("text-anchor","middle").style("font-size","16px").text(n),y.append("text").attr("x",h/2).attr("y",55+p).attr("text-anchor","middle").style("font-size","12px").text(r);var x,b,w,M,C=d3.max(t,function(t){return t.x}),k=d3.min(t,function(t){return t.x}),T=d3.max(t,function(t){return t.y}),E=d3.min(t,function(t){return t.y});d.domain(d3.extent(t,function(t){return t.x})).nice(),g.domain(d3.extent(t,function(t){return t.y})).nice(),y.append("g").attr("class","x axis").attr("transform","translate(0,"+p+")").call(v).append("text").attr("class","label").attr("x",(h-i.length)/2-50).attr("y",35).style("text-anchor","start").text(i),y.append("g").attr("class","y axis").call(m).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(p+o.length)/2-50).attr("y",-40).style("text-anchor","start").text(o),y.selectAll(".dot").data(t).enter().append("circle").attr("r",2).attr("cx",function(t){return d(t.x)}).attr("cy",function(t){return g(t.y)}).style("fill",function(){return GV.color_beautification("red")}).style("opacity",.6),void 0!==s&&""!==s&&void 0!==a&&""!==a&&(x=C,T<(b=(a=parseFloat(a.replace(",",".")))+s*C)&&(x=(T-a)/s,b=T),b<E&&(x=(E-a)/s,b=E),T<(M=a+s*(w=k))&&(w=(T-a)/s,M=E),M<E&&(w=(E-a)/s,M=E),y.append("line").attr("x1",d(w)).attr("y1",g(M)).attr("x2",d(x)).attr("y2",g(b)).attr("stroke-width",2).attr("stroke","black"))},GV.plot_lines=function(t,e,n,r,i,o,a,s){var u=70,l=50,c=75,f=50,h=600-f-l,p=500-u-c,d=d3.scale.linear().range([0,h]),g=d3.scale.linear().range([p,0]),v=(d3.scale.category10(),""),v="Open Reading Frames in all 6 Frames"===n?d3.svg.axis().scale(d).orient("bottom").ticks(0):d3.svg.axis().scale(d).orient("bottom").ticks(5),m=d3.svg.axis().scale(g).orient("left").ticks(5),y=d3.select("#".concat(e)).append("svg").attr("width",h+f+l).attr("height",p+u+c).append("g").attr("transform","translate("+f+","+u+")");y.append("text").attr("x",h/2).attr("y",-35).attr("text-anchor","middle").style("font-size","16px").text(n);var x=-1;d.domain([0,d3.max(t,function(t){return t.stop})]),g.domain(d3.extent(t,function(t){return t.y})).nice(),y.append("g").attr("class","x axis").attr("transform","translate(0,"+(p+p/a)+")").call(v).append("text").attr("class","label").attr("x",(h-i.length)/2-50).attr("y",35).style("text-anchor","start").text(i),null!==s?y.append("g").attr("class","y axis").call(m.ticks(s.length).tickFormat(function(){return s[x+=1]})).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(p+o.length)/2-50).attr("y",-40).style("text-anchor","start").text(o):y.append("g").attr("class","y axis").call(m).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(p+o.length)/2).attr("y",-40).style("text-anchor","start").text(o),y.selectAll(".dot").data(t).enter().append("line").attr("x1",function(t){return d(t.start)}).attr("y1",function(t){return g(t.y)}).attr("x2",function(t){return d(t.stop)}).attr("x2",function(t){return d(t.stop)}).attr("y2",function(t){return g(t.y)}).attr("stroke-width",function(t){return void 0===t.dotted?"red"==t.color?p/a/2.5:p/a:p/a/5}).style("stroke-dasharray",function(t){return void 0===t.dotted?"0, 0":"2, 6"}).attr("stroke",function(t){return GV.color_beautification(t.color)});y.append("g").attr("class","legend").attr("height",100).attr("width",100).attr("transform","translate(-20,50)");for(var b=40,w=0,M=0;M<r.length;M++)w=w+8*r[M].split(",")[0].length+15;for(var C=0;C<r.length;C++){var k=r[C].split(",");y.append("rect").attr("x",(h-w)/2+b).attr("y",-30).attr("width",10).attr("height",10).style("fill",GV.color_beautification(k[1].replace(/\s+/g,""))),y.append("text").attr("x",(h-w)/2+b+15).attr("y",-20).text(k[0]),b=b+8*k[0].length+15}},GV.plot_align=function(t,e,n,r,i,o,a,s){var u=75,l=50,c=75,f=150,h=600-f-l,p=300-u-c,d=d3.scale.linear().range([0,h]),g=d3.scale.linear().range([p,0]),v=(d3.scale.category10(),d3.svg.axis().scale(d).orient("bottom").ticks(5)),m=d3.svg.axis().scale(g).orient("left").ticks(5),y=d3.select("#".concat(e)).append("svg").style("vertical-align","top").attr("width",h+f+l).attr("height",p+u+c).append("g").attr("transform","translate("+f+","+u+")");y.append("text").attr("x",h/2).attr("y",-35).attr("text-anchor","middle").style("font-size","16px").text(n);var x=-1;d.domain([0,d3.max(t,function(t){return t.stop})]),g.domain(d3.extent(t,function(t){return t.y})).nice(),y.append("g").attr("class","x axis").attr("transform","translate(0,"+(p+p/a)+")").call(v).append("text").attr("class","label").attr("x",(h-i.length)/2-50).attr("y",35).style("text-anchor","start").text(i),null!==s?y.append("g").attr("class","y axis").call(m.ticks(s.length).tickFormat(function(){return s[x+=1]})).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(p+o.length)/2-50).attr("y",-40).style("text-anchor","start").text(o):y.append("g").attr("class","y axis").call(m).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(p+o.length)/2-50).attr("y",-40).style("text-anchor","start").text(o),y.selectAll(".dot").data(t).enter().append("line").attr("x1",function(t){return d(t.start)}).attr("y1",function(t){return g(t.y)}).attr("x2",function(t){return d(t.stop)}).attr("y2",function(t){return g(t.y)}).attr("stroke-width",function(t){return-1==t.height?p/a:p/a*t.height}).attr("stroke",function(t){return GV.color_beautification(t.color)});for(var b=0,w=0,M=0;M<r.length;M++)w=w+8*r[M].split(",")[0].length+15;for(var C=0;C<r.length;C++){var k=r[C].split(",");y.append("rect").attr("x",(h-w)/2+b).attr("y",-30).attr("width",10).attr("height",10).style("fill",GV.color_beautification(k[1].replace(/\s+/g,""))),y.append("text").attr("x",(h-w)/2+b+15).attr("y",-20).text(k[0]),b=b+8*k[0].length+15}}}(),$(document).ready(function(){"file:"===window.location.protocol&&($("#sortable_table").css("margin-top","110px"),$("#browseralert").modal()),GV.toggleOverviewBtn(),initTableSorter(),$("[data-toggle='tooltip']").tooltip()}),$(document).on("click","td, .plot_btn",function(t){var e;$(this).hasClass("success")||$(this).hasClass("danger")?(e=$(this).attr("title").replace(/[ \/]/g,""),GV.addData(this,e)):$(this).hasClass("plot_btn")&&GV.addData(this,"all")});