diff --git a/config/plugins/visualizations/hyphyvision/config/hyphyvision.xml b/config/plugins/visualizations/hyphyvision/config/hyphyvision.xml new file mode 100644 index 00000000000..7f88b74eae1 --- /dev/null +++ b/config/plugins/visualizations/hyphyvision/config/hyphyvision.xml @@ -0,0 +1,15 @@ + + + + + + HistoryDatasetAssociation + hyphy_results.json + dataset_id + + + + dataset_id + + + diff --git a/config/plugins/visualizations/hyphyvision/src/index.js b/config/plugins/visualizations/hyphyvision/src/index.js new file mode 100644 index 00000000000..97b2d806144 --- /dev/null +++ b/config/plugins/visualizations/hyphyvision/src/index.js @@ -0,0 +1,9 @@ +window.jQuery = window.$ = $; +window.d3 = d3; +import 'bootstrap/dist/css/bootstrap.css'; +import 'font-awesome/css/font-awesome.css'; +const hyphyVision = require('hyphy-vision'); +require('phylotree.css'); +require('hyphy-vision.css'); +window.renderHyPhyVision = hyphyVision.renderHyPhyVision; +window.render_branch_selection = hyphyVision.render_branch_selection ; diff --git a/config/plugins/visualizations/hyphyvision/src/package.json b/config/plugins/visualizations/hyphyvision/src/package.json new file mode 100644 index 00000000000..c32787575cb --- /dev/null +++ b/config/plugins/visualizations/hyphyvision/src/package.json @@ -0,0 +1,22 @@ +{ + "devDependencies": { + "css-loader": "^0.28.11", + "file-loader": "^1.1.11", + "mini-css-extract-plugin": "^0.4.0", + "style-loader": "^0.21.0", + "url-loader": "^1.0.1", + "webpack": "^4.12.0", + "webpack-cli": "^3.0.4", + "webpack-dev-server": "^3.1.4" + }, + "dependencies": { + "hyphy-vision": "2.5.0-alpha.2" + }, + "name": "galaxy-hyphy", + "version": "1.1.0", + "main": "index.js", + "license": "MIT", + "scripts": { + "build": "webpack --mode=production" + } +} diff --git a/config/plugins/visualizations/hyphyvision/src/webpack.config.js b/config/plugins/visualizations/hyphyvision/src/webpack.config.js new file mode 100644 index 00000000000..5c8bdde0b94 --- /dev/null +++ b/config/plugins/visualizations/hyphyvision/src/webpack.config.js @@ -0,0 +1,52 @@ +const webpack = require('webpack'), + path = require('path'), + MiniCssExtractPlugin = require('mini-css-extract-plugin'); + +module.exports = { + entry: './index.js', + output: { + filename: 'bundle.js', + path: path.resolve(__dirname, '..', 'static') + }, + plugins: [ + new webpack.ProvidePlugin({ + $: "jquery", + d3: "d3", + _: "underscore" + }), + new MiniCssExtractPlugin() + ], + module: { + rules: [ + { + test: /\.css/, + use: [ + MiniCssExtractPlugin.loader, + 'css-loader' + ] + }, + { + test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/, + loader: "url-loader", + options: { limit: 10000, mimetype: "application/font-woff" } + }, + { + test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, + loader: "url-loader", + options: { limit: 10000, mimetype: "application/octet-stream" } + }, + { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loaders: "file-loader" }, + { + test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, + loaders: "url-loader", + options: { limit: 10000, mimetype: "image/svg+xml" } + } + ] + }, + resolve: { + alias: { + "phylotree.css": __dirname + "/node_modules/phylotree/phylotree.css", + "hyphy-vision.css": __dirname + "/node_modules/hyphy-vision/dist/hyphyvision.css", + } + } +} diff --git a/config/plugins/visualizations/hyphyvision/static/674f50d287a8c48dc19ba404d20fe713.eot b/config/plugins/visualizations/hyphyvision/static/674f50d287a8c48dc19ba404d20fe713.eot new file mode 100644 index 00000000000..e9f60ca953f Binary files /dev/null and b/config/plugins/visualizations/hyphyvision/static/674f50d287a8c48dc19ba404d20fe713.eot differ diff --git a/config/plugins/visualizations/hyphyvision/static/912ec66d7572ff821749319396470bde.svg b/config/plugins/visualizations/hyphyvision/static/912ec66d7572ff821749319396470bde.svg new file mode 100644 index 00000000000..855c845e538 --- /dev/null +++ b/config/plugins/visualizations/hyphyvision/static/912ec66d7572ff821749319396470bde.svg @@ -0,0 +1,2671 @@ + + + + +Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016 + By ,,, +Copyright Dave Gandy 2016. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/plugins/visualizations/hyphyvision/static/af7ae505a9eed503f8b8e6982036873e.woff2 b/config/plugins/visualizations/hyphyvision/static/af7ae505a9eed503f8b8e6982036873e.woff2 new file mode 100644 index 00000000000..4d13fc60404 Binary files /dev/null and b/config/plugins/visualizations/hyphyvision/static/af7ae505a9eed503f8b8e6982036873e.woff2 differ diff --git a/config/plugins/visualizations/hyphyvision/static/b06871f281fee6b241d60582ae9369b9.ttf b/config/plugins/visualizations/hyphyvision/static/b06871f281fee6b241d60582ae9369b9.ttf new file mode 100644 index 00000000000..35acda2fa11 Binary files /dev/null and b/config/plugins/visualizations/hyphyvision/static/b06871f281fee6b241d60582ae9369b9.ttf differ diff --git a/config/plugins/visualizations/hyphyvision/static/bundle.js b/config/plugins/visualizations/hyphyvision/static/bundle.js new file mode 100644 index 00000000000..215ee20981e --- /dev/null +++ b/config/plugins/visualizations/hyphyvision/static/bundle.js @@ -0,0 +1,193 @@ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=89)}([function(e,t,n){e.exports=n(190)()},function(e,t,n){"use strict";e.exports=n(16)},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,o,a,s,u){if(r(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,a,s,u],f=0;(l=new Error(t.replace(/%s/g,function(){return c[f++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";var r=n(11);e.exports=r},function(e,t,n){"use strict";e.exports=function(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r1){for(var d=Array(p),m=0;m1){for(var v=Array(g),y=0;y0&&t-1 in e)}m.fn=m.prototype={jquery:"1.12.4",constructor:m,selector:"",length:0,toArray:function(){return s.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:s.call(this)},pushStack:function(e){var t=m.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return m.each(this,e)},map:function(e){return this.pushStack(m.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==m.type(e)||e.nodeType||m.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(!d.ownFirst)for(t in e)return p.call(e,t);for(t in e);return void 0===t||p.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[h.call(e)]||"object":typeof e},globalEval:function(e){e&&m.trim(e)&&(n.execScript||function(e){n.eval.call(n,e)})(e)},camelCase:function(e){return e.replace(v,"ms-").replace(y,b)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(_(e))for(n=e.length;r+~]|"+I+")"+I+"*"),W=new RegExp("="+I+"*([^\\]'\"]*?)"+I+"*\\]","g"),G=new RegExp(U),Y=new RegExp("^"+F+"$"),$={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=function(){h()};try{D.apply(A=j.call(x.childNodes),x.childNodes),A[x.childNodes.length].nodeType}catch(e){D={apply:A.length?function(e,t){P.apply(e,j.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,r,i){var o,s,l,c,f,d,v,y,w=t&&t.ownerDocument,E=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==E&&9!==E&&11!==E)return r;if(!i&&((t?t.ownerDocument||t:x)!==p&&h(t),t=t||p,m)){if(11!==E&&(d=Q.exec(e)))if(o=d[1]){if(9===E){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(w&&(l=w.getElementById(o))&&b(t,l)&&l.id===o)return r.push(l),r}else{if(d[2])return D.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return D.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!S[e+" "]&&(!g||!g.test(e))){if(1!==E)w=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(ee,"\\$&"):t.setAttribute("id",c=_),s=(v=a(e)).length,f=Y.test(c)?"#"+c:"[id='"+c+"']";s--;)v[s]=f+" "+me(v[s]);y=v.join(","),w=Z.test(e)&&pe(t.parentNode)||t}if(y)try{return D.apply(r,w.querySelectorAll(y)),r}catch(e){}finally{c===_&&t.removeAttribute("id")}}}return u(e.replace(q,"$1"),t,r,i)}function oe(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ae(e){return e[_]=!0,e}function se(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function le(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||M)-(~e.sourceIndex||M);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return ae(function(t){return t=+t,ae(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ie.support={},o=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=ie.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:x;return a!==p&&9===a.nodeType&&a.documentElement?(d=(p=a).documentElement,m=!o(p),(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=se(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=se(function(e){return d.appendChild(e).id=_,!p.getElementsByName||!p.getElementsByName(_).length}),n.getById?(r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}},r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=J.test(p.querySelectorAll))&&(se(function(e){d.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+I+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")}),se(function(e){var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+I+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=J.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&se(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",U)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(d.compareDocumentPosition),b=t||J.test(d.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===p||e.ownerDocument===x&&b(x,e)?-1:t===p||t.ownerDocument===x&&b(x,t)?1:c?R(c,e)-R(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===p?-1:t===p?1:i?-1:o?1:c?R(c,e)-R(c,t):0;if(i===o)return le(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?le(a[r],s[r]):a[r]===x?-1:s[r]===x?1:0},p):p},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&h(e),t=t.replace(W,"='$1']"),n.matchesSelector&&m&&!S[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ie(t,p,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),b(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var i=r.attrHandle[t.toLowerCase()],o=i&&N.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(T),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=ie.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=ie.selectors={cacheLength:50,createPseudo:ae,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ie.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,h,p,d,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s,b=!1;if(g){if(o){for(;m;){for(h=t;h=h[m];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;d=m="only"===e&&!d&&"nextSibling"}return!0}if(d=[a?g.firstChild:g.lastChild],a&&y){for(b=(p=(l=(c=(f=(h=g)[_]||(h[_]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]||[])[0]===w&&l[1])&&l[2],h=p&&g.childNodes[p];h=++p&&h&&h[m]||(b=p=0)||d.pop();)if(1===h.nodeType&&++b&&h===t){c[e]=[w,p,b];break}}else if(y&&(b=p=(l=(c=(f=(h=t)[_]||(h[_]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]||[])[0]===w&&l[1]),!1===b)for(;(h=++p&&h&&h[m]||(b=p=0)||d.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((c=(f=h[_]||(h[_]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]=[w,b]),h!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return i[_]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=R(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ae(function(e){var t=[],n=[],r=s(e.replace(q,"$1"));return r[_]?ae(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return ie(e,t).length>0}}),contains:ae(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:ae(function(e){return Y.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function ye(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s-1&&(o[l]=!(a[l]=f))}}else v=ye(v===a?v.splice(d,v.length):v),i?i(null,a,v,u):D.apply(a,v)})}function _e(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=ge(function(e){return e===t},s,!0),f=ge(function(e){return R(t,e)>-1},s,!0),h=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u1&&ve(h),u>1&&me(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(q,"$1"),n,u0,i=e.length>0,o=function(o,a,s,u,c){var f,d,g,v=0,y="0",b=o&&[],_=[],x=l,E=o||i&&r.find.TAG("*",c),C=w+=null==x?1:Math.random()||.1,k=E.length;for(c&&(l=a===p||a||c);y!==k&&null!=(f=E[y]);y++){if(i&&f){for(d=0,a||f.ownerDocument===p||(h(f),s=!m);g=e[d++];)if(g(f,a||p,s)){u.push(f);break}c&&(w=C)}n&&((f=!g&&f)&&v--,o&&b.push(f))}if(v+=y,n&&y!==v){for(d=0;g=t[d++];)g(b,_,a,s);if(o){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=O.call(u));_=ye(_)}D.apply(u,_),c&&!o&&_.length>0&&v+t.length>1&&ie.uniqueSort(u)}return c&&(w=C,l=x),b};return n?ae(o):o}(o,i))).selector=e}return s},u=ie.select=function(e,t,i,o){var u,l,c,f,h,p="function"==typeof e&&e,d=!o&&a(e=p.selector||e);if(i=i||[],1===d.length){if((l=d[0]=d[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&n.getById&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(u=$.needsContext.test(e)?0:l.length;u--&&(c=l[u],!r.relative[f=c.type]);)if((h=r.find[f])&&(o=h(c.matches[0].replace(te,ne),Z.test(l[0].type)&&pe(t.parentNode)||t))){if(l.splice(u,1),!(e=o.length&&me(l)))return D.apply(i,o),i;break}}return(p||s(e,d))(o,t,!m,i,!t||Z.test(e)&&pe(t.parentNode)||t),i},n.sortStable=_.split("").sort(T).join("")===_,n.detectDuplicates=!!f,h(),n.sortDetached=se(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),se(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&se(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||ue(L,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ie}(n);m.find=x,m.expr=x.selectors,m.expr[":"]=m.expr.pseudos,m.uniqueSort=m.unique=x.uniqueSort,m.text=x.getText,m.isXMLDoc=x.isXML,m.contains=x.contains;var w=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&m(e).is(n))break;r.push(e)}return r},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},C=m.expr.match.needsContext,k=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,S=/^.[^:#\[\.,]*$/;function T(e,t,n){if(m.isFunction(t))return m.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return m.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(S.test(t))return m.filter(t,e,n);t=m.filter(t,e)}return m.grep(e,function(e){return m.inArray(e,t)>-1!==n})}m.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?m.find.matchesSelector(r,e)?[r]:[]:m.find.matches(e,m.grep(t,function(e){return 1===e.nodeType}))},m.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(m(e).filter(function(){for(t=0;t1?m.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&C.test(e)?m(e):e||[],!1).length}});var M,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(m.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||M,"string"==typeof e){if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof m?t[0]:t,m.merge(this,m.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),k.test(r[1])&&m.isPlainObject(t))for(r in t)m.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if((i=a.getElementById(r[2]))&&i.parentNode){if(i.id!==r[2])return M.find(e);this.length=1,this[0]=i}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):m.isFunction(e)?void 0!==n.ready?n.ready(e):e(m):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),m.makeArray(e,this))}).prototype=m.fn,M=m(a);var A=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}m.fn.extend({has:function(e){var t,n=m(e,this),r=n.length;return this.filter(function(){for(t=0;t-1:1===n.nodeType&&m.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?m.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?m.inArray(this[0],m(e)):m.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),m.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return w(e,"parentNode")},parentsUntil:function(e,t,n){return w(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return w(e,"nextSibling")},prevAll:function(e){return w(e,"previousSibling")},nextUntil:function(e,t,n){return w(e,"nextSibling",n)},prevUntil:function(e,t,n){return w(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return m.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:m.merge([],e.childNodes)}},function(e,t){m.fn[e]=function(n,r){var i=m.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=m.filter(r,i)),this.length>1&&(O[e]||(i=m.uniqueSort(i)),A.test(e)&&(i=i.reverse())),this.pushStack(i)}});var D,j,R=/\S+/g;function L(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",I),n.removeEventListener("load",I)):(a.detachEvent("onreadystatechange",I),n.detachEvent("onload",I))}function I(){(a.addEventListener||"load"===n.event.type||"complete"===a.readyState)&&(L(),m.ready())}for(j in m.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return m.each(e.match(R)||[],function(e,n){t[n]=!0}),t}(e):m.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?m.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=!0,n||l.disable(),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},m.extend({Deferred:function(e){var t=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return m.Deferred(function(n){m.each(t,function(t,o){var a=m.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&m.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?m.extend(e,r):r}},i={};return r.pipe=r.then,m.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=s.call(arguments),a=o.length,u=1!==a||e&&m.isFunction(e.promise)?a:0,l=1===u?e:m.Deferred(),c=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?s.call(arguments):i,r===t?l.notifyWith(n,r):--u||l.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i0||(D.resolveWith(a,[m]),m.fn.triggerHandler&&(m(a).triggerHandler("ready"),m(a).off("ready"))))}}),m.ready.promise=function(e){if(!D)if(D=m.Deferred(),"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll)n.setTimeout(m.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",I),n.addEventListener("load",I);else{a.attachEvent("onreadystatechange",I),n.attachEvent("onload",I);var t=!1;try{t=null==n.frameElement&&a.documentElement}catch(e){}t&&t.doScroll&&function e(){if(!m.isReady){try{t.doScroll("left")}catch(t){return n.setTimeout(e,50)}L(),m.ready()}}()}return D.promise(e)},m.ready.promise(),m(d))break;d.ownFirst="0"===j,d.inlineBlockNeedsLayout=!1,m(function(){var e,t,n,r;(n=a.getElementsByTagName("body")[0])&&n.style&&(t=a.createElement("div"),(r=a.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),void 0!==t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",d.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=a.createElement("div");d.deleteExpando=!0;try{delete e.test}catch(e){d.deleteExpando=!1}e=null}();var F,B=function(e){var t=m.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)},U=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,H=/([A-Z])/g;function q(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(H,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:U.test(n)?m.parseJSON(n):n)}catch(e){}m.data(e,t,n)}else n=void 0}return n}function z(e){var t;for(t in e)if(("data"!==t||!m.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function V(e,t,n,r){if(B(e)){var i,a,s=m.expando,u=e.nodeType,l=u?m.cache:e,c=u?e[s]:e[s]&&s;if(c&&l[c]&&(r||l[c].data)||void 0!==n||"string"!=typeof t)return c||(c=u?e[s]=o.pop()||m.guid++:s),l[c]||(l[c]=u?{}:{toJSON:m.noop}),"object"!=typeof t&&"function"!=typeof t||(r?l[c]=m.extend(l[c],t):l[c].data=m.extend(l[c].data,t)),a=l[c],r||(a.data||(a.data={}),a=a.data),void 0!==n&&(a[m.camelCase(t)]=n),"string"==typeof t?null==(i=a[t])&&(i=a[m.camelCase(t)]):i=a,i}}function W(e,t,n){if(B(e)){var r,i,o=e.nodeType,a=o?m.cache:e,s=o?e[m.expando]:m.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){i=(t=m.isArray(t)?t.concat(m.map(t,m.camelCase)):t in r?[t]:(t=m.camelCase(t))in r?[t]:t.split(" ")).length;for(;i--;)delete r[t[i]];if(n?!z(r):!m.isEmptyObject(r))return}(n||(delete a[s].data,z(a[s])))&&(o?m.cleanData([e],!0):d.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?m.cache[e[m.expando]]:e[m.expando])&&!z(e)},data:function(e,t,n){return V(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return V(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)}}),m.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=m.data(o),1===o.nodeType&&!m._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&q(o,r=m.camelCase(r.slice(5)),i[r]);m._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){m.data(this,e)}):arguments.length>1?this.each(function(){m.data(this,e,t)}):o?q(o,e,m.data(o,e)):void 0},removeData:function(e){return this.each(function(){m.removeData(this,e)})}}),m.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=m._data(e,t),n&&(!r||m.isArray(n)?r=m._data(e,t,m.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=m.queue(e,t),r=n.length,i=n.shift(),o=m._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){m.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return m._data(e,n)||m._data(e,n,{empty:m.Callbacks("once memory").add(function(){m._removeData(e,t+"queue"),m._removeData(e,n)})})}}),m.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length
a",d.leadingWhitespace=3===J.firstChild.nodeType,d.tbody=!J.getElementsByTagName("tbody").length,d.htmlSerialize=!!J.getElementsByTagName("link").length,d.html5Clone="<:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,Z.type="checkbox",Z.checked=!0,Q.appendChild(Z),d.appendChecked=Z.checked,J.innerHTML="",d.noCloneChecked=!!J.cloneNode(!0).lastChild.defaultValue,Q.appendChild(J),(Z=a.createElement("input")).setAttribute("type","radio"),Z.setAttribute("checked","checked"),Z.setAttribute("name","t"),J.appendChild(Z),d.checkClone=J.cloneNode(!0).cloneNode(!0).lastChild.checked,d.noCloneEvent=!!J.addEventListener,J[m.expando]=1,d.attributes=!J.getAttribute(m.expando);var se={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:d.htmlSerialize?[0,"",""]:[1,"X
","
"]};function ue(e,t){var n,r,i=0,o=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||m.nodeName(r,t)?o.push(r):m.merge(o,ue(r,t));return void 0===t||t&&m.nodeName(e,t)?m.merge([e],o):o}function le(e,t){for(var n,r=0;null!=(n=e[r]);r++)m._data(n,"globalEval",!t||m._data(t[r],"globalEval"))}se.optgroup=se.option,se.tbody=se.tfoot=se.colgroup=se.caption=se.thead,se.th=se.td;var ce=/<|&#?\w+;/,fe=/"!==f[1]||fe.test(a)?0:u:u.firstChild)&&a.childNodes.length;o--;)m.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(m.merge(g,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=p.lastChild}else g.push(t.createTextNode(a));for(u&&p.removeChild(u),d.appendChecked||m.grep(ue(g,"input"),he),v=0;a=g[v++];)if(r&&m.inArray(a,r)>-1)i&&i.push(a);else if(s=m.contains(a.ownerDocument,a),u=ue(p.appendChild(a),"script"),s&&le(u),n)for(o=0;a=u[o++];)re.test(a.type||"")&&n.push(a);return u=null,p}!function(){var e,t,r=a.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(d[e]=t in n)||(r.setAttribute(t,"t"),d[e]=!1===r.attributes[t].expando);r=null}();var de=/^(?:input|select|textarea)$/i,me=/^key/,ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ve=/^(?:focusinfocus|focusoutblur)$/,ye=/^([^.]*)(?:\.(.+)|)/;function be(){return!0}function _e(){return!1}function xe(){try{return a.activeElement}catch(e){}}function we(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)we(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=_e;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return m().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=m.guid++)),e.each(function(){m.event.add(this,t,i,r,n)})}m.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,p,d,g,v=m._data(e);if(v){for(n.handler&&(n=(u=n).handler,i=u.selector),n.guid||(n.guid=m.guid++),(a=v.events)||(a=v.events={}),(c=v.handle)||((c=v.handle=function(e){return void 0===m||e&&m.event.triggered===e.type?void 0:m.event.dispatch.apply(c.elem,arguments)}).elem=e),s=(t=(t||"").match(R)||[""]).length;s--;)p=g=(o=ye.exec(t[s])||[])[1],d=(o[2]||"").split(".").sort(),p&&(l=m.event.special[p]||{},p=(i?l.delegateType:l.bindType)||p,l=m.event.special[p]||{},f=m.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&m.expr.match.needsContext.test(i),namespace:d.join(".")},u),(h=a[p])||((h=a[p]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,r,d,c)||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),l.add&&(l.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,f):h.push(f),m.event.global[p]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,p,d,g,v=m.hasData(e)&&m._data(e);if(v&&(c=v.events)){for(l=(t=(t||"").match(R)||[""]).length;l--;)if(p=g=(s=ye.exec(t[l])||[])[1],d=(s[2]||"").split(".").sort(),p){for(f=m.event.special[p]||{},h=c[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=h.length;o--;)a=h[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(h.splice(o,1),a.selector&&h.delegateCount--,f.remove&&f.remove.call(e,a));u&&!h.length&&(f.teardown&&!1!==f.teardown.call(e,d,v.handle)||m.removeEvent(e,p,v.handle),delete c[p])}else for(p in c)m.event.remove(e,p+t[l],n,r,!0);m.isEmptyObject(c)&&(delete v.handle,m._removeData(e,"events"))}},trigger:function(e,t,r,i){var o,s,u,l,c,f,h,d=[r||a],g=p.call(e,"type")?e.type:e,v=p.call(e,"namespace")?e.namespace.split("."):[];if(u=f=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!ve.test(g+m.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),s=g.indexOf(":")<0&&"on"+g,(e=e[m.expando]?e:new m.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:m.makeArray(t,[e]),c=m.event.special[g]||{},i||!c.trigger||!1!==c.trigger.apply(r,t))){if(!i&&!c.noBubble&&!m.isWindow(r)){for(l=c.delegateType||g,ve.test(l+g)||(u=u.parentNode);u;u=u.parentNode)d.push(u),f=u;f===(r.ownerDocument||a)&&d.push(f.defaultView||f.parentWindow||n)}for(h=0;(u=d[h++])&&!e.isPropagationStopped();)e.type=h>1?l:c.bindType||g,(o=(m._data(u,"events")||{})[e.type]&&m._data(u,"handle"))&&o.apply(u,t),(o=s&&u[s])&&o.apply&&B(u)&&(e.result=o.apply(u,t),!1===e.result&&e.preventDefault());if(e.type=g,!i&&!e.isDefaultPrevented()&&(!c._default||!1===c._default.apply(d.pop(),t))&&B(r)&&s&&r[g]&&!m.isWindow(r)){(f=r[s])&&(r[s]=null),m.event.triggered=g;try{r[g]()}catch(e){}m.event.triggered=void 0,f&&(r[s]=f)}return e.result}},dispatch:function(e){e=m.event.fix(e);var t,n,r,i,o,a,u=s.call(arguments),l=(m._data(this,"events")||{})[e.type]||[],c=m.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(a=m.event.handlers.call(this,e,l),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(r=((m.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==e.type)){for(r=[],n=0;n-1:m.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s]","i"),ke=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Se=/\s*$/g,Ae=ae(a).appendChild(a.createElement("div"));function Oe(e,t){return m.nodeName(e,"table")&&m.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Pe(e){return e.type=(null!==m.find.attr(e,"type"))+"/"+e.type,e}function De(e){var t=Me.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function je(e,t){if(1===t.nodeType&&m.hasData(e)){var n,r,i,o=m._data(e),a=m._data(t,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(r=0,i=s[n].length;r1&&"string"==typeof g&&!d.checkClone&&Te.test(g))return e.each(function(i){var o=e.eq(i);v&&(t[0]=g.call(this,i,o.html())),Le(o,t,n,r)});if(h&&(i=(c=pe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===c.childNodes.length&&(c=i),i||r)){for(a=(s=m.map(ue(c,"script"),Pe)).length;f")},clone:function(e,t,n){var r,i,o,a,s,u=m.contains(e.ownerDocument,e);if(d.html5Clone||m.isXMLDoc(e)||!Ce.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Ae.innerHTML=e.outerHTML,Ae.removeChild(o=Ae.firstChild)),!(d.noCloneEvent&&d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||m.isXMLDoc(e)))for(r=ue(o),s=ue(e),a=0;null!=(i=s[a]);++a)r[a]&&Re(i,r[a]);if(t)if(n)for(s=s||ue(e),r=r||ue(o),a=0;null!=(i=s[a]);a++)je(i,r[a]);else je(e,o);return(r=ue(o,"script")).length>0&&le(r,!u&&ue(e,"script")),r=s=i=null,o},cleanData:function(e,t){for(var n,r,i,a,s=0,u=m.expando,l=m.cache,c=d.attributes,f=m.event.special;null!=(n=e[s]);s++)if((t||B(n))&&(a=(i=n[u])&&l[i])){if(a.events)for(r in a.events)f[r]?m.event.remove(n,r):m.removeEvent(n,r,a.handle);l[i]&&(delete l[i],c||void 0===n.removeAttribute?n[u]=void 0:n.removeAttribute(u),o.push(i))}}}),m.fn.extend({domManip:Le,detach:function(e){return Ie(this,e,!0)},remove:function(e){return Ie(this,e)},text:function(e){return ee(this,function(e){return void 0===e?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return Le(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)})},prepend:function(){return Le(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Le(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Le(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&m.cleanData(ue(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&m.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return m.clone(this,e,t)})},html:function(e){return ee(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Ee,""):void 0;if("string"==typeof e&&!Se.test(e)&&(d.htmlSerialize||!Ce.test(e))&&(d.leadingWhitespace||!ie.test(e))&&!se[(ne.exec(e)||["",""])[1].toLowerCase()]){e=m.htmlPrefilter(e);try{for(;n")).appendTo(t.documentElement))[0].contentWindow||Fe[0].contentDocument).document).write(),t.close(),n=Ue(e,t),Fe.detach()),Be[e]=n),n}var qe=/^margin/,ze=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),Ve=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i},We=a.documentElement;!function(){var e,t,r,i,o,s,u=a.createElement("div"),l=a.createElement("div");function c(){var c,f,h=a.documentElement;h.appendChild(u),l.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",e=r=s=!1,t=o=!0,n.getComputedStyle&&(f=n.getComputedStyle(l),e="1%"!==(f||{}).top,s="2px"===(f||{}).marginLeft,r="4px"===(f||{width:"4px"}).width,l.style.marginRight="50%",t="4px"===(f||{marginRight:"4px"}).marginRight,(c=l.appendChild(a.createElement("div"))).style.cssText=l.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",l.style.width="1px",o=!parseFloat((n.getComputedStyle(c)||{}).marginRight),l.removeChild(c)),l.style.display="none",(i=0===l.getClientRects().length)&&(l.style.display="",l.innerHTML="
t
",l.childNodes[0].style.borderCollapse="separate",(c=l.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(i=0===c[0].offsetHeight)&&(c[0].style.display="",c[1].style.display="none",i=0===c[0].offsetHeight)),h.removeChild(u)}l.style&&(l.style.cssText="float:left;opacity:.5",d.opacity="0.5"===l.style.opacity,d.cssFloat=!!l.style.cssFloat,l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===l.style.backgroundClip,(u=a.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",l.innerHTML="",u.appendChild(l),d.boxSizing=""===l.style.boxSizing||""===l.style.MozBoxSizing||""===l.style.WebkitBoxSizing,m.extend(d,{reliableHiddenOffsets:function(){return null==e&&c(),i},boxSizingReliable:function(){return null==e&&c(),r},pixelMarginRight:function(){return null==e&&c(),t},pixelPosition:function(){return null==e&&c(),e},reliableMarginRight:function(){return null==e&&c(),o},reliableMarginLeft:function(){return null==e&&c(),s}}))}();var Ge,Ye,$e=/^(top|right|bottom|left)$/;function Xe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}n.getComputedStyle?(Ge=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ye=function(e,t,n){var r,i,o,a,s=e.style;return""!==(a=(n=n||Ge(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a||m.contains(e.ownerDocument,e)||(a=m.style(e,t)),n&&!d.pixelMarginRight()&&ze.test(a)&&qe.test(t)&&(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+""}):We.currentStyle&&(Ge=function(e){return e.currentStyle},Ye=function(e,t,n){var r,i,o,a,s=e.style;return null==(a=(n=n||Ge(e))?n[t]:void 0)&&s&&s[t]&&(a=s[t]),ze.test(a)&&!$e.test(t)&&(r=s.left,(o=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"});var Ke=/alpha\([^)]*\)/i,Je=/opacity\s*=\s*([^)]*)/i,Qe=/^(none|table(?!-c[ea]).+)/,Ze=new RegExp("^("+G+")(.*)$","i"),et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"},nt=["Webkit","O","Moz","ms"],rt=a.createElement("div").style;function it(e){if(e in rt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=nt.length;n--;)if((e=nt[n]+t)in rt)return e}function ot(e,t){for(var n,r,i,o=[],a=0,s=e.length;a=1||""===t)&&""===m.trim(o.replace(Ke,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=Ke.test(o)?o.replace(Ke,i):o+" "+i)}}),m.cssHooks.marginRight=Xe(d.reliableMarginRight,function(e,t){if(t)return Ve(e,{display:"inline-block"},Ye,[e,"marginRight"])}),m.cssHooks.marginLeft=Xe(d.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ye(e,"marginLeft"))||(m.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-Ve(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),m.each({margin:"",padding:"",border:"Width"},function(e,t){m.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+$[r]+t]=o[r]||o[r-2]||o[0];return i}},qe.test(e)||(m.cssHooks[e+t].set=at)}),m.fn.extend({css:function(e,t){return ee(this,function(e,t,n){var r,i,o={},a=0;if(m.isArray(t)){for(r=Ge(e),i=t.length;a1)},show:function(){return ot(this,!0)},hide:function(){return ot(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){X(this)?m(this).show():m(this).hide()})}}),m.Tween=lt,lt.prototype={constructor:lt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||m.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(m.cssNumber[n]?"":"px")},cur:function(){var e=lt.propHooks[this.prop];return e&&e.get?e.get(this):lt.propHooks._default.get(this)},run:function(e){var t,n=lt.propHooks[this.prop];return this.options.duration?this.pos=t=m.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):lt.propHooks._default.set(this),this}},lt.prototype.init.prototype=lt.prototype,lt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=m.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){m.fx.step[e.prop]?m.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[m.cssProps[e.prop]]&&!m.cssHooks[e.prop]?e.elem[e.prop]=e.now:m.style(e.elem,e.prop,e.now+e.unit)}}},lt.propHooks.scrollTop=lt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},m.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},m.fx=lt.prototype.init,m.fx.step={};var ct,ft,ht=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){return n.setTimeout(function(){ct=void 0}),ct=m.now()}function mt(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=$[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function gt(e,t,n){for(var r,i=(vt.tweeners[t]||[]).concat(vt.tweeners["*"]),o=0,a=i.length;o
a",e=n.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),n.appendChild(t),(e=n.getElementsByTagName("a")[0]).style.cssText="top:1px",d.getSetAttribute="t"!==n.className,d.style=/top/.test(e.getAttribute("style")),d.hrefNormalized="/a"===e.getAttribute("href"),d.checkOn=!!t.value,d.optSelected=i.selected,d.enctype=!!a.createElement("form").enctype,r.disabled=!0,d.optDisabled=!i.disabled,(t=a.createElement("input")).setAttribute("value",""),d.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),d.radioValue="t"===t.value}();var yt=/\r/g,bt=/[\x20\t\r\n\f]+/g;m.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=m.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,m(this).val()):e)?i="":"number"==typeof i?i+="":m.isArray(i)&&(i=m.map(i,function(e){return null==e?"":e+""})),(t=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=m.valHooks[i.type]||m.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(yt,""):null==n?"":n:void 0}}),m.extend({valHooks:{option:{get:function(e){var t=m.find.attr(e,"value");return null!=t?t:m.trim(m.text(e)).replace(bt," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u-1)try{r.selected=n=!0}catch(e){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(e,t){if(m.isArray(t))return e.checked=m.inArray(m(e).val(),t)>-1}},d.checkOn||(m.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var _t,xt,wt=m.expr.attrHandle,Et=/^(?:checked|selected)$/i,Ct=d.getSetAttribute,kt=d.input;m.fn.extend({attr:function(e,t){return ee(this,m.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){m.removeAttr(this,e)})}}),m.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?m.prop(e,t,n):(1===o&&m.isXMLDoc(e)||(t=t.toLowerCase(),i=m.attrHooks[t]||(m.expr.match.bool.test(t)?xt:_t)),void 0!==n?null===n?void m.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=m.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&m.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(R);if(o&&1===e.nodeType)for(;n=o[i++];)r=m.propFix[n]||n,m.expr.match.bool.test(n)?kt&&Ct||!Et.test(n)?e[r]=!1:e[m.camelCase("default-"+n)]=e[r]=!1:m.attr(e,n,""),e.removeAttribute(Ct?n:r)}}),xt={set:function(e,t,n){return!1===t?m.removeAttr(e,n):kt&&Ct||!Et.test(n)?e.setAttribute(!Ct&&m.propFix[n]||n,n):e[m.camelCase("default-"+n)]=e[n]=!0,n}},m.each(m.expr.match.bool.source.match(/\w+/g),function(e,t){var n=wt[t]||m.find.attr;kt&&Ct||!Et.test(t)?wt[t]=function(e,t,r){var i,o;return r||(o=wt[t],wt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,wt[t]=o),i}:wt[t]=function(e,t,n){if(!n)return e[m.camelCase("default-"+t)]?t.toLowerCase():null}}),kt&&Ct||(m.attrHooks.value={set:function(e,t,n){if(!m.nodeName(e,"input"))return _t&&_t.set(e,t,n);e.defaultValue=t}}),Ct||(_t={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n))return t}},wt.id=wt.name=wt.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},m.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:_t.set},m.attrHooks.contenteditable={set:function(e,t,n){_t.set(e,""!==t&&t,n)}},m.each(["width","height"],function(e,t){m.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}})),d.style||(m.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var St=/^(?:input|select|textarea|button|object)$/i,Tt=/^(?:a|area)$/i;m.fn.extend({prop:function(e,t){return ee(this,m.prop,e,t,arguments.length>1)},removeProp:function(e){return e=m.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),m.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&m.isXMLDoc(e)||(t=m.propFix[t]||t,i=m.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=m.find.attr(e,"tabindex");return t?parseInt(t,10):St.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.hrefNormalized||m.each(["href","src"],function(e,t){m.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),d.optSelected||(m.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),d.enctype||(m.propFix.enctype="encoding");var Mt=/[\t\r\n\f]/g;function Nt(e){return m.attr(e,"class")||""}m.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(m.isFunction(e))return this.each(function(t){m(this).addClass(e.call(this,t,Nt(this)))});if("string"==typeof e&&e)for(t=e.match(R)||[];n=this[u++];)if(i=Nt(n),r=1===n.nodeType&&(" "+i+" ").replace(Mt," ")){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=m.trim(r))&&m.attr(n,"class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(m.isFunction(e))return this.each(function(t){m(this).removeClass(e.call(this,t,Nt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(R)||[];n=this[u++];)if(i=Nt(n),r=1===n.nodeType&&(" "+i+" ").replace(Mt," ")){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=m.trim(r))&&m.attr(n,"class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):m.isFunction(e)?this.each(function(n){m(this).toggleClass(e.call(this,n,Nt(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=m(this),o=e.match(R)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=Nt(this))&&m._data(this,"__className__",t),m.attr(this,"class",t||!1===e?"":m._data(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+Nt(n)+" ").replace(Mt," ").indexOf(t)>-1)return!0;return!1}}),m.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(e,t){m.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),m.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var At=n.location,Ot=m.now(),Pt=/\?/,Dt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(e){if(n.JSON&&n.JSON.parse)return n.JSON.parse(e+"");var t,r=null,i=m.trim(e+"");return i&&!m.trim(i.replace(Dt,function(e,n,i,o){return t&&n&&(r=0),0===r?e:(t=i||n,r+=!o-!i,"")}))?Function("return "+i)():m.error("Invalid JSON: "+e)},m.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{n.DOMParser?t=(new n.DOMParser).parseFromString(e,"text/xml"):((t=new n.ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(e){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+e),t};var jt=/#.*$/,Rt=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,It=/^(?:GET|HEAD)$/,Ft=/^\/\//,Bt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ut={},Ht={},qt="*/".concat("*"),zt=At.href,Vt=Bt.exec(zt.toLowerCase())||[];function Wt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(R)||[];if(m.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Gt(e,t,n,r){var i={},o=e===Ht;function a(s){var u;return i[s]=!0,m.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Yt(e,t){var n,r,i=m.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&m.extend(!0,e,n),e}function $t(e){return e.style&&e.style.display||m.css(e,"display")}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Vt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Yt(Yt(e,m.ajaxSettings),t):Yt(m.ajaxSettings,e)},ajaxPrefilter:Wt(Ut),ajaxTransport:Wt(Ht),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,u,l,c,f=m.ajaxSetup({},t),h=f.context||f,p=f.context&&(h.nodeType||h.jquery)?m(h):m.event,d=m.Deferred(),g=m.Callbacks("once memory"),v=f.statusCode||{},y={},b={},_=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===_){if(!c)for(c={};t=Lt.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===_?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return _||(e=b[n]=b[n]||e,y[e]=t),this},overrideMimeType:function(e){return _||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(_<2)for(t in e)v[t]=[v[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||x;return l&&l.abort(t),E(0,t),this}};if(d.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,f.url=((e||f.url||zt)+"").replace(jt,"").replace(Ft,Vt[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=m.trim(f.dataType||"*").toLowerCase().match(R)||[""],null==f.crossDomain&&(r=Bt.exec(f.url.toLowerCase()),f.crossDomain=!(!r||r[1]===Vt[1]&&r[2]===Vt[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(Vt[3]||("http:"===Vt[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=m.param(f.data,f.traditional)),Gt(Ut,f,t,w),2===_)return w;for(i in(u=m.event&&f.global)&&0==m.active++&&m.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!It.test(f.type),o=f.url,f.hasContent||(f.data&&(o=f.url+=(Pt.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=Rt.test(o)?o.replace(Rt,"$1_="+Ot++):o+(Pt.test(o)?"&":"?")+"_="+Ot++)),f.ifModified&&(m.lastModified[o]&&w.setRequestHeader("If-Modified-Since",m.lastModified[o]),m.etag[o]&&w.setRequestHeader("If-None-Match",m.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+qt+"; q=0.01":""):f.accepts["*"]),f.headers)w.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(h,w,f)||2===_))return w.abort();for(i in x="abort",{success:1,error:1,complete:1})w[i](f[i]);if(l=Gt(Ht,f,t,w)){if(w.readyState=1,u&&p.trigger("ajaxSend",[w,f]),2===_)return w;f.async&&f.timeout>0&&(s=n.setTimeout(function(){w.abort("timeout")},f.timeout));try{_=1,l.send(y,E)}catch(e){if(!(_<2))throw e;E(-1,e)}}else E(-1,"No Transport");function E(e,t,r,i){var c,y,b,x,E,C=t;2!==_&&(_=2,s&&n.clearTimeout(s),l=void 0,a=i||"",w.readyState=e>0?4:0,c=e>=200&&e<300||304===e,r&&(x=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){u.unshift(a);break}if(u[0]in n)o=u[0];else{for(a in n){if(!u[0]||e.converters[a+" "+u[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),n[o]}(f,w,r)),x=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.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&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(f,x,w,c),c?(f.ifModified&&((E=w.getResponseHeader("Last-Modified"))&&(m.lastModified[o]=E),(E=w.getResponseHeader("etag"))&&(m.etag[o]=E)),204===e||"HEAD"===f.type?C="nocontent":304===e?C="notmodified":(C=x.state,y=x.data,c=!(b=x.error))):(b=C,!e&&C||(C="error",e<0&&(e=0))),w.status=e,w.statusText=(t||C)+"",c?d.resolveWith(h,[y,C,w]):d.rejectWith(h,[w,C,b]),w.statusCode(v),v=void 0,u&&p.trigger(c?"ajaxSuccess":"ajaxError",[w,f,c?y:b]),g.fireWith(h,[w,C]),u&&(p.trigger("ajaxComplete",[w,f]),--m.active||m.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,n){return m.get(e,t,n,"json")},getScript:function(e,t){return m.get(e,void 0,t,"script")}}),m.each(["get","post"],function(e,t){m[t]=function(e,n,r,i){return m.isFunction(n)&&(i=i||r,r=n,n=void 0),m.ajax(m.extend({url:e,type:t,dataType:i,data:n,success:r},m.isPlainObject(e)&&e))}}),m._evalUrl=function(e){return m.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},m.fn.extend({wrapAll:function(e){if(m.isFunction(e))return this.each(function(t){m(this).wrapAll(e.call(this,t))});if(this[0]){var t=m(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return m.isFunction(e)?this.each(function(t){m(this).wrapInner(e.call(this,t))}):this.each(function(){var t=m(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m.isFunction(e);return this.each(function(n){m(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(e){return d.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:function(e){if(!m.contains(e.ownerDocument||a,e))return!0;for(;e&&1===e.nodeType;){if("none"===$t(e)||"hidden"===e.type)return!0;e=e.parentNode}return!1}(e)},m.expr.filters.visible=function(e){return!m.expr.filters.hidden(e)};var Xt=/%20/g,Kt=/\[\]$/,Jt=/\r?\n/g,Qt=/^(?:submit|button|image|reset|file)$/i,Zt=/^(?:input|select|textarea|keygen)/i;function en(e,t,n,r){var i;if(m.isArray(t))m.each(t,function(t,i){n||Kt.test(e)?r(e,i):en(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==m.type(t))r(e,t);else for(i in t)en(e+"["+i+"]",t[i],n,r)}m.param=function(e,t){var n,r=[],i=function(e,t){t=m.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(e)||e.jquery&&!m.isPlainObject(e))m.each(e,function(){i(this.name,this.value)});else for(n in e)en(n,e[n],t,i);return r.join("&").replace(Xt,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=m.prop(this,"elements");return e?m.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!m(this).is(":disabled")&&Zt.test(this.nodeName)&&!Qt.test(e)&&(this.checked||!te.test(e))}).map(function(e,t){var n=m(this).val();return null==n?null:m.isArray(n)?m.map(n,function(e){return{name:t.name,value:e.replace(Jt,"\r\n")}}):{name:t.name,value:n.replace(Jt,"\r\n")}}).get()}}),m.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return this.isLocal?an():a.documentMode>8?on():/^(get|post|head|put|delete|options)$/i.test(this.type)&&on()||an()}:on;var tn=0,nn={},rn=m.ajaxSettings.xhr();function on(){try{return new n.XMLHttpRequest}catch(e){}}function an(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}n.attachEvent&&n.attachEvent("onunload",function(){for(var e in nn)nn[e](void 0,!0)}),d.cors=!!rn&&"withCredentials"in rn,(rn=d.ajax=!!rn)&&m.ajaxTransport(function(e){var t;if(!e.crossDomain||d.cors)return{send:function(r,i){var o,a=e.xhr(),s=++tn;if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];for(o in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)void 0!==r[o]&&a.setRequestHeader(o,r[o]+"");a.send(e.hasContent&&e.data||null),t=function(n,r){var o,u,l;if(t&&(r||4===a.readyState))if(delete nn[s],t=void 0,a.onreadystatechange=m.noop,r)4!==a.readyState&&a.abort();else{l={},o=a.status,"string"==typeof a.responseText&&(l.text=a.responseText);try{u=a.statusText}catch(e){u=""}o||!e.isLocal||e.crossDomain?1223===o&&(o=204):o=l.text?200:404}l&&i(o,u,l,a.getAllResponseHeaders())},e.async?4===a.readyState?n.setTimeout(t):a.onreadystatechange=nn[s]=t:t()},abort:function(){t&&t(void 0,!0)}}}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return m.globalEval(e),e}}}),m.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),m.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=a.head||m("head")[0]||a.documentElement;return{send:function(r,i){(t=a.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var sn=[],un=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=sn.pop()||m.expando+"_"+Ot++;return this[e]=!0,e}}),m.ajaxPrefilter("json jsonp",function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(un.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&un.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=m.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(un,"$1"+i):!1!==e.jsonp&&(e.url+=(Pt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||m.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){void 0===o?m(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,sn.push(i)),a&&m.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),m.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=pe([e],t,i),i&&i.length&&m(i).remove(),m.merge([],r.childNodes))};var ln=m.fn.load;function cn(e){return m.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}m.fn.load=function(e,t,n){if("string"!=typeof e&&ln)return ln.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=m.trim(e.slice(s,e.length)),e=e.slice(0,s)),m.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&m.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?m("
").append(m.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){m.fn[t]=function(e){return this.on(t,e)}}),m.expr.filters.animated=function(e){return m.grep(m.timers,function(t){return e===t.elem}).length},m.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=m.css(e,"position"),c=m(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=m.css(e,"top"),u=m.css(e,"left"),("absolute"===l||"fixed"===l)&&m.inArray("auto",[o,u])>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m.isFunction(t)&&(t=t.call(e,n,m.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},m.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){m.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;return o?(t=o.documentElement,m.contains(t,i)?(void 0!==i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=cn(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===m.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),m.nodeName(e[0],"html")||(n=e.offset()),n.top+=m.css(e[0],"borderTopWidth",!0),n.left+=m.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-m.css(r,"marginTop",!0),left:t.left-n.left-m.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!m.nodeName(e,"html")&&"static"===m.css(e,"position");)e=e.offsetParent;return e||We})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);m.fn[e]=function(r){return ee(this,function(e,r,i){var o=cn(e);if(void 0===i)return o?t in o?o[t]:o.document.documentElement[r]:e[r];o?o.scrollTo(n?m(o).scrollLeft():i,n?i:m(o).scrollTop()):e[r]=i},e,r,arguments.length,null)}}),m.each(["top","left"],function(e,t){m.cssHooks[t]=Xe(d.pixelPosition,function(e,n){if(n)return n=Ye(e,t),ze.test(n)?m(e).position()[t]+"px":n})}),m.each({Height:"height",Width:"width"},function(e,t){m.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){m.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return ee(this,function(t,n,r){var i;return m.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?m.css(t,n,a):m.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),m.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,void 0===(r=function(){return m}.apply(t,[]))||(e.exports=r);var fn=n.jQuery,hn=n.$;return m.noConflict=function(e){return n.$===m&&(n.$=hn),e&&n.jQuery===m&&(n.jQuery=fn),m},i||(n.jQuery=n.$=m),m},"object"==typeof e.exports?e.exports=i.document?o(i,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return o(e)}:o(i)},function(e,t,n){"use strict";e.exports=function(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;rt?1:e>=t?0:NaN}function v(e){return null===e?NaN:+e}function y(e){return!isNaN(e)}function b(e){return{left:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}o.ascending=g,o.descending=function(e,t){return te?1:t>=e?0:NaN},o.min=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++ir&&(n=r)}else{for(;++i=r){n=r;break}for(;++ir&&(n=r)}return n},o.max=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++in&&(n=r)}else{for(;++i=r){n=r;break}for(;++in&&(n=r)}return n},o.extent=function(e,t){var n,r,i,o=-1,a=e.length;if(1===arguments.length){for(;++o=r){n=i=r;break}for(;++or&&(n=r),i=r){n=i=r;break}for(;++or&&(n=r),i1)return a/(u-1)},o.deviation=function(){var e=o.variance.apply(this,arguments);return e?Math.sqrt(e):e};var _=b(g);function x(e){return e.length}o.bisectLeft=_.left,o.bisect=o.bisectRight=_.right,o.bisector=function(e){return b(1===e.length?function(t,n){return g(e(t),n)}:e)},o.shuffle=function(e,t,n){(o=arguments.length)<3&&(n=e.length,o<2&&(t=0));for(var r,i,o=n-t;o;)i=Math.random()*o--|0,r=e[o+t],e[o+t]=e[i+t],e[i+t]=r;return e},o.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},o.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],i=new Array(n<0?0:n);t=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n};var w=Math.abs;function E(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function C(){this._=Object.create(null)}o.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n==1/0)throw new Error("infinite range");var r,i=[],o=function(e){var t=1;for(;e*t%1;)t*=10;return t}(w(n)),a=-1;if(e*=o,t*=o,(n*=o)<0)for(;(r=e+n*++a)>t;)i.push(r/o);else for(;(r=e+n*++a)=r.length)return t?t.call(n,o):e?o.sort(e):o;for(var u,l,c,f,h=-1,p=o.length,d=r[s++],m=new C;++h=r.length)return t;var o=[],a=i[n++];return t.forEach(function(t,r){o.push({key:t,values:e(r,n)})}),a?o.sort(function(e,t){return a(e.key,t.key)}):o}(a(o.map,e,0),0)},n.key=function(e){return r.push(e),n},n.sortKeys=function(e){return i[r.length-1]=e,n},n.sortValues=function(t){return e=t,n},n.rollup=function(e){return t=e,n},n},o.set=function(e){var t=new j;if(e)for(var n=0,r=e.length;n=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},o.event=null,o.requote=function(e){return e.replace(W,"\\$&")};var W=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,G={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function Y(e){return G(e,J),e}var $=function(e,t){return t.querySelector(e)},X=function(e,t){return t.querySelectorAll(e)},K=function(e,t){var n=e.matches||e[I(e,"matchesSelector")];return(K=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&($=function(e,t){return Sizzle(e,t)[0]||null},X=Sizzle,K=Sizzle.matchesSelector),o.selection=function(){return o.select(u.documentElement)};var J=o.selection.prototype=[];function Q(e){return"function"==typeof e?e:function(){return $(e,this)}}function Z(e){return"function"==typeof e?e:function(){return X(e,this)}}J.select=function(e){var t,n,r,i,o=[];e=Q(e);for(var a=-1,s=this.length;++a=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),te.hasOwnProperty(n)?{space:te[n],local:e}:e}},J.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return(e=o.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(ne(t,e[t]));return this}return this.each(ne(e,t))},J.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=oe(e)).length,i=-1;if(t=n.classList){for(;++i=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},J.sort=function(e){e=function(e){arguments.length||(e=g);return function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}.apply(this,arguments);for(var t=-1,n=this.length;++t0&&(e=e.slice(0,i));var u=ye.get(e);function l(){var t=this[r];t&&(this.removeEventListener(e,t,t.$),delete this[r])}return u&&(e=u,a=_e),i?t?function(){var i=a(t,s(arguments));l.call(this),this.addEventListener(e,this[r]=i,i.$=n),i._=t}:l:t?B:function(){var t,n=new RegExp("^__on([^.]+)"+o.requote(e)+"$");for(var r in this)if(t=r.match(n)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}}o.selection.enter=me,o.selection.enter.prototype=ge,ge.append=J.append,ge.empty=J.empty,ge.node=J.node,ge.call=J.call,ge.size=J.size,ge.select=function(e){for(var t,n,r,i,o,a=[],s=-1,u=this.length;++s=r&&(r=t+1);!(a=s[r])&&++r0?1:e<0?-1:0}function Le(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Ie(e){return e>1?0:e<-1?Ne:Math.acos(e)}function Fe(e){return e>1?Pe:e<-1?-Pe:Math.asin(e)}function Be(e){return((e=Math.exp(e))+1/e)/2}function Ue(e){return(e=Math.sin(e/2))*e}var He=Math.SQRT2;o.interpolateZoom=function(e,t){var n,r,i=e[0],o=e[1],a=e[2],s=t[0],u=t[1],l=t[2],c=s-i,f=u-o,h=c*c+f*f;if(h0&&(e=e.transition().duration(m)),e.call(w.event)}function T(){s&&s.domain(a.range().map(function(e){return(e-h.x)/h.k}).map(a.invert)),f&&f.domain(l.range().map(function(e){return(e-h.y)/h.k}).map(l.invert))}function M(e){g++||e({type:"zoomstart"})}function N(e){T(),e({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function A(e){--g||(e({type:"zoomend"}),t=null)}function O(){var e=this,t=x.of(e,arguments),n=0,r=o.select(c(e)).on(y,function(){n=1,k(o.mouse(e),i),N(t)}).on(b,function(){r.on(y,null).on(b,null),a(n),A(t)}),i=E(o.mouse(e)),a=Ee(e);vs.call(e),M(t)}function P(){var e,t=this,n=x.of(t,arguments),r={},a=0,s=".zoom-"+o.event.changedTouches[0].identifier,u="touchmove"+s,l="touchend"+s,c=[],f=o.select(t),p=Ee(t);function d(){var n=o.touches(t);return e=h.k,n.forEach(function(e){e.identifier in r&&(r[e.identifier]=E(e))}),n}function m(){var e=o.event.target;o.select(e).on(u,g).on(l,y),c.push(e);for(var n=o.event.changedTouches,s=0,f=n.length;s1){v=p[0];var b=p[1],_=v[0]-b[0],x=v[1]-b[1];a=_*_+x*x}}function g(){var s,u,l,c,f=o.touches(t);vs.call(t);for(var h=0,p=f.length;h360?e-=360:e<0&&(e+=360),e<60?r+(i-r)*e/60:e<180?i:e<240?r+(i-r)*(240-e)/60:r}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:t<0?0:t>1?1:t,r=2*(n=n<0?0:n>1?1:n)-(i=n<=.5?n*(1+t):n+t-n*t),new lt(o(e+120),o(e),o(e-120))}function Xe(e,t,n){return this instanceof Xe?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof Xe?new Xe(e.h,e.c,e.l):ot(e instanceof Qe?e.l:(e=gt((e=o.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Xe(e,t,n)}Ye.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ge(this.h,this.s,this.l/e)},Ye.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ge(this.h,this.s,e*this.l)},Ye.rgb=function(){return $e(this.h,this.s,this.l)},o.hcl=Xe;var Ke=Xe.prototype=new We;function Je(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Qe(n,Math.cos(e*=De)*t,Math.sin(e)*t)}function Qe(e,t,n){return this instanceof Qe?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof Qe?new Qe(e.l,e.a,e.b):e instanceof Xe?Je(e.h,e.c,e.l):gt((e=lt(e)).r,e.g,e.b):new Qe(e,t,n)}Ke.brighter=function(e){return new Xe(this.h,this.c,Math.min(100,this.l+Ze*(arguments.length?e:1)))},Ke.darker=function(e){return new Xe(this.h,this.c,Math.max(0,this.l-Ze*(arguments.length?e:1)))},Ke.rgb=function(){return Je(this.h,this.c,this.l).rgb()},o.lab=Qe;var Ze=18,et=.95047,tt=1,nt=1.08883,rt=Qe.prototype=new We;function it(e,t,n){var r=(e+16)/116,i=r+t/500,o=r-n/200;return new lt(ut(3.2404542*(i=at(i)*et)-1.5371385*(r=at(r)*tt)-.4985314*(o=at(o)*nt)),ut(-.969266*i+1.8760108*r+.041556*o),ut(.0556434*i-.2040259*r+1.0572252*o))}function ot(e,t,n){return e>0?new Xe(Math.atan2(n,t)*je,Math.sqrt(t*t+n*n),e):new Xe(NaN,NaN,e)}function at(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function st(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function ut(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function lt(e,t,n){return this instanceof lt?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof lt?new lt(e.r,e.g,e.b):dt(""+e,lt,$e):new lt(e,t,n)}function ct(e){return new lt(e>>16,e>>8&255,255&e)}function ft(e){return ct(e)+""}rt.brighter=function(e){return new Qe(Math.min(100,this.l+Ze*(arguments.length?e:1)),this.a,this.b)},rt.darker=function(e){return new Qe(Math.max(0,this.l-Ze*(arguments.length?e:1)),this.a,this.b)},rt.rgb=function(){return it(this.l,this.a,this.b)},o.rgb=lt;var ht=lt.prototype=new We;function pt(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function dt(e,t,n){var r,i,o,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))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 t(yt(i[0]),yt(i[1]),yt(i[2]))}return(o=bt.get(e))?t(o.r,o.g,o.b):(null==e||"#"!==e.charAt(0)||isNaN(o=parseInt(e.slice(1),16))||(4===e.length?(a=(3840&o)>>4,a|=a>>4,s=240&o,s|=s>>4,u=15&o,u|=u<<4):7===e.length&&(a=(16711680&o)>>16,s=(65280&o)>>8,u=255&o)),t(a,s,u))}function mt(e,t,n){var r,i,o=Math.min(e/=255,t/=255,n/=255),a=Math.max(e,t,n),s=a-o,u=(a+o)/2;return s?(i=u<.5?s/(a+o):s/(2-a-o),r=e==a?(t-n)/s+(t0&&u<1?0:r),new Ge(r,i,u)}function gt(e,t,n){var r=st((.4124564*(e=vt(e))+.3575761*(t=vt(t))+.1804375*(n=vt(n)))/et),i=st((.2126729*e+.7151522*t+.072175*n)/tt);return Qe(116*i-16,500*(r-i),200*(i-st((.0193339*e+.119192*t+.9503041*n)/nt)))}function vt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}ht.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,i=30;return t||n||r?(t&&t=200&&t<300||304===t){try{e=n.call(i,l)}catch(e){return void a.error.call(i,e)}a.load.call(i,e)}else a.error.call(i,l)}return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(e)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=f:l.onreadystatechange=function(){l.readyState>3&&f()},l.onprogress=function(e){var t=o.event;o.event=e;try{a.progress.call(i,l)}finally{o.event=t}},i.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?u[e]:(null==t?delete u[e]:u[e]=t+"",i)},i.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",i):t},i.responseType=function(e){return arguments.length?(c=e,i):c},i.response=function(e){return n=e,i},["get","post"].forEach(function(e){i[e]=function(){return i.send.apply(i,[e].concat(s(arguments)))}}),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),l.open(n,e,!0),null==t||"accept"in u||(u.accept=t+",*/*"),l.setRequestHeader)for(var s in u)l.setRequestHeader(s,u[s]);return null!=t&&l.overrideMimeType&&l.overrideMimeType(t),null!=c&&(l.responseType=c),null!=o&&i.on("error",o).on("load",function(e){o(null,e)}),a.beforesend.call(i,l),l.send(null==r?null:r),i},i.abort=function(){return l.abort(),i},o.rebind(i,a,"on"),null==r?i:i.get(function(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}(r))}bt.forEach(function(e,t){bt.set(e,ct(t))}),o.functor=_t,o.xhr=xt(R),o.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function i(e,n,r){arguments.length<3&&(r=n,n=null);var i=wt(e,t,null==n?o:a(n),r);return i.row=function(e){return arguments.length?i.response(null==(n=e)?o:a(e)):n},i}function o(e){return i.parse(e.responseText)}function a(e){return function(t){return i.parse(t.responseText,e)}}function s(t){return t.map(u).join(e)}function u(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return i.parse=function(e,t){var n;return i.parseRows(e,function(e,r){if(n)return n(e,r-1);var i=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");n=t?function(e,n){return t(i(e),n)}:i})},i.parseRows=function(e,t){var n,i,o={},a={},s=[],u=e.length,l=0,c=0;function f(){if(l>=u)return a;if(i)return i=!1,o;var t=l;if(34===e.charCodeAt(t)){for(var n=t;n++24?(isFinite(t)&&(clearTimeout(St),St=setTimeout(Nt,t)),kt=0):(kt=1,Tt(Nt))}function At(){for(var e=Date.now(),t=Et;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Ot(){for(var e,t=Et,n=1/0;t;)t.c?(t.t8?function(e){return e/n}:function(e){return e*n},symbol:e}});function jt(e){var t=e.decimal,n=e.thousands,r=e.grouping,i=e.currency,a=r&&n?function(e,t){for(var i=e.length,o=[],a=0,s=r[0],u=0;i>0&&s>0&&(u+s+1>t&&(s=Math.max(1,t-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>t));)s=r[a=(a+1)%r.length];return o.reverse().join(n)}:R;return function(e){var n=Rt.exec(e),r=n[1]||" ",s=n[2]||">",u=n[3]||"-",l=n[4]||"",c=n[5],f=+n[6],h=n[7],p=n[8],d=n[9],m=1,g="",v="",y=!1,b=!0;switch(p&&(p=+p.substring(1)),(c||"0"===r&&"="===s)&&(c=r="0",s="="),d){case"n":h=!0,d="g";break;case"%":m=100,v="%",d="f";break;case"p":m=100,v="%",d="r";break;case"b":case"o":case"x":case"X":"#"===l&&(g="0"+d.toLowerCase());case"c":b=!1;case"d":y=!0,p=0;break;case"s":m=-1,d="r"}"$"===l&&(g=i[0],v=i[1]),"r"!=d||p||(d="g"),null!=p&&("g"==d?p=Math.max(1,Math.min(21,p)):"e"!=d&&"f"!=d||(p=Math.max(0,Math.min(20,p)))),d=Lt.get(d)||It;var _=c&&h;return function(e){var n=v;if(y&&e%1)return"";var i=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===u?"":u;if(m<0){var l=o.formatPrefix(e,p);e=l.scale(e),n=l.symbol+v}else e*=m;var x,w,E=(e=d(e,p)).lastIndexOf(".");if(E<0){var C=b?e.lastIndexOf("e"):-1;C<0?(x=e,w=""):(x=e.substring(0,C),w=e.substring(C))}else x=e.substring(0,E),w=t+e.substring(E+1);!c&&h&&(x=a(x,1/0));var k=g.length+x.length+w.length+(_?0:i.length),S=k"===s?S+i+e:"^"===s?S.substring(0,k>>=1)+i+e+S.substring(k):i+(_?e:S+e))+n}}}o.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=o.round(e,Pt(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Dt[8+n/3]};var Rt=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Lt=o.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=o.round(e,Pt(e,t))).toFixed(Math.max(0,Math.min(20,Pt(e*(1+1e-15),t))))}});function It(e){return e+""}var Ft=o.time={},Bt=Date;function Ut(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Ut.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(){Ht.setUTCDate.apply(this._,arguments)},setDay:function(){Ht.setUTCDay.apply(this._,arguments)},setFullYear:function(){Ht.setUTCFullYear.apply(this._,arguments)},setHours:function(){Ht.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Ht.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Ht.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Ht.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Ht.setUTCSeconds.apply(this._,arguments)},setTime:function(){Ht.setTime.apply(this._,arguments)}};var Ht=Date.prototype;function qt(e,t,n){function r(t){var n=e(t),r=o(n,1);return t-n1)for(;a=l)return-1;if(37===(i=t.charCodeAt(s++))){if(a=t.charAt(s++),!(o=w[a in Wt?t.charAt(s++):a])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}c.utc=function(e){var t=c(e);function n(e){try{var n=new(Bt=Ut);return n._=e,t(n)}finally{Bt=Date}}return n.parse=function(e){try{Bt=Ut;var n=t.parse(e);return n&&n._}finally{Bt=Date}},n.toString=t.toString,n},c.multi=c.utc.multi=pn;var h=o.map(),p=Xt(a),d=Kt(a),m=Xt(s),g=Kt(s),v=Xt(u),y=Kt(u),b=Xt(l),_=Kt(l);i.forEach(function(e,t){h.set(e.toLowerCase(),t)});var x={a:function(e){return s[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return u[e.getMonth()]},c:c(t),d:function(e,t){return $t(e.getDate(),t,2)},e:function(e,t){return $t(e.getDate(),t,2)},H:function(e,t){return $t(e.getHours(),t,2)},I:function(e,t){return $t(e.getHours()%12||12,t,2)},j:function(e,t){return $t(1+Ft.dayOfYear(e),t,3)},L:function(e,t){return $t(e.getMilliseconds(),t,3)},m:function(e,t){return $t(e.getMonth()+1,t,2)},M:function(e,t){return $t(e.getMinutes(),t,2)},p:function(e){return i[+(e.getHours()>=12)]},S:function(e,t){return $t(e.getSeconds(),t,2)},U:function(e,t){return $t(Ft.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return $t(Ft.mondayOfYear(e),t,2)},x:c(n),X:c(r),y:function(e,t){return $t(e.getFullYear()%100,t,2)},Y:function(e,t){return $t(e.getFullYear()%1e4,t,4)},Z:fn,"%":function(){return"%"}},w={a:function(e,t,n){m.lastIndex=0;var r=m.exec(t.slice(n));return r?(e.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){p.lastIndex=0;var r=p.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){b.lastIndex=0;var r=b.exec(t.slice(n));return r?(e.m=_.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){v.lastIndex=0;var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,t,n){return f(e,x.c.toString(),t,n)},d:on,e:on,H:sn,I:sn,j:an,L:cn,m:rn,M:un,p:function(e,t,n){var r=h.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)},S:ln,U:Qt,w:Jt,W:Zt,x:function(e,t,n){return f(e,x.x.toString(),t,n)},X:function(e,t,n){return f(e,x.X.toString(),t,n)},y:tn,Y:en,Z:nn,"%":hn};return c}Ft.year=qt(function(e){return(e=Ft.day(e)).setMonth(0,1),e},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e){return e.getFullYear()}),Ft.years=Ft.year.range,Ft.years.utc=Ft.year.utc.range,Ft.day=qt(function(e){var t=new Bt(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},function(e,t){e.setDate(e.getDate()+t)},function(e){return e.getDate()-1}),Ft.days=Ft.day.range,Ft.days.utc=Ft.day.utc.range,Ft.dayOfYear=function(e){var t=Ft.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(e,t){t=7-t;var n=Ft[e]=qt(function(e){return(e=Ft.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e},function(e,t){e.setDate(e.getDate()+7*Math.floor(t))},function(e){var n=Ft.year(e).getDay();return Math.floor((Ft.dayOfYear(e)+(n+t)%7)/7)-(n!==t)});Ft[e+"s"]=n.range,Ft[e+"s"].utc=n.utc.range,Ft[e+"OfYear"]=function(e){var n=Ft.year(e).getDay();return Math.floor((Ft.dayOfYear(e)+(n+t)%7)/7)}}),Ft.week=Ft.sunday,Ft.weeks=Ft.sunday.range,Ft.weeks.utc=Ft.sunday.utc.range,Ft.weekOfYear=Ft.sundayOfYear;var Wt={"-":"",_:" ",0:"0"},Gt=/^\s*\d+/,Yt=/^%/;function $t(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o68?1900:2e3),n+i[0].length):-1}function nn(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function rn(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function on(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function an(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function sn(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function un(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ln(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function cn(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function fn(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=w(t)/60|0,i=w(t)%60;return n+$t(r,"0",2)+$t(i,"0",2)}function hn(e,t,n){Yt.lastIndex=0;var r=Yt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function pn(e){for(var t=e.length,n=-1;++n=0?1:-1,s=a*o,u=Math.cos(t),l=Math.sin(t),c=i*l,f=r*u+c*Math.cos(s),h=c*a*Math.sin(s);Rn.add(Math.atan2(h,f)),n=e,r=u,i=l}Ln.point=function(a,s){Ln.point=o,n=(e=a)*De,r=Math.cos(s=(t=s)*De/2+Ne/4),i=Math.sin(s)},Ln.lineEnd=function(){o(e,t)}}function Fn(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function Bn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Un(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Hn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function qn(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function zn(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Vn(e){return[Math.atan2(e[1],e[0]),Fe(e[2])]}function Wn(e,t){return w(e[0]-t[0])Te?r=90:l<-Te&&(t=-90),f[0]=e,f[1]=n}};function p(i,o){c.push(f=[e=i,n=i]),or&&(r=o)}function d(o,a){var s=Fn([o*De,a*De]);if(u){var l=Un(u,s),c=Un([l[1],-l[0],0],l);zn(c),c=Vn(c);var f=o-i,h=f>0?1:-1,d=c[0]*je*h,m=w(f)>180;if(m^(h*ir&&(r=g);else if(m^(h*i<(d=(d+360)%360-180)&&dr&&(r=a);m?o_(e,n)&&(n=o):_(o,n)>_(e,n)&&(e=o):n>=e?(on&&(n=o)):o>i?_(e,o)>_(e,n)&&(n=o):_(o,n)>_(e,n)&&(e=o)}else p(o,a);u=s,i=o}function m(){h.point=d}function g(){f[0]=e,f[1]=n,h.point=p,u=null}function v(e,t){if(u){var n=e-i;l+=w(n)>180?n+(n>0?360:-360):n}else a=e,s=t;Ln.point(e,t),d(e,t)}function y(){Ln.lineStart()}function b(){v(a,s),Ln.lineEnd(),w(l)>Te&&(e=-(n=180)),f[0]=e,f[1]=n,u=null}function _(e,t){return(t-=e)<0?t+360:t}function x(e,t){return e[0]-t[0]}function E(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e_(m[0],m[1])&&(m[1]=p[1]),_(p[0],m[1])>_(m[0],m[1])&&(m[0]=p[0])):s.push(m=p);for(var u,l,p,d=-1/0,m=(a=0,s[l=s.length-1]);a<=l;m=p,++a)p=s[a],(u=_(m[1],p[0]))>d&&(d=u,e=p[0],n=m[1])}return c=f=null,e===1/0||t===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,t],[n,r]]}}(),o.geo.centroid=function(e){Cn=kn=Sn=Tn=Mn=Nn=An=On=Pn=Dn=jn=0,o.geo.stream(e,Gn);var t=Pn,n=Dn,r=jn,i=t*t+n*n+r*r;return i=0;--s)i.point((f=c[s])[0],f[1]);else r(p.x,p.p.x,-1,i);p=p.p}c=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function tr(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r=0?1:-1,E=w*x,C=E>Ne,k=d*b;if(Rn.add(Math.atan2(k*w*Math.sin(E),m*_+k*Math.cos(E))),o+=C?x+w*Ae:x,C^h>=n^v>=n){var S=Un(Fn(f),Fn(e));zn(S);var T=Un(i,S);zn(T);var M=(C^x>=0?-1:1)*Fe(T[2]);(r>M||r===M&&(S[0]||S[1]))&&(a+=C^x>=0?1:-1)}if(!g++)break;h=v,d=b,m=_,f=e}}return(o<-Te||o0){for(b||(a.polygonStart(),b=!0),a.lineStart();++o1&&2&t&&n.push(n.pop().concat(n.shift())),s.push(n.filter(ir))}return c}}function ir(e){return e.length>1}function or(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:B,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function ar(e,t){return((e=e.x)[0]<0?e[1]-Pe-Te:Pe-e[1])-((t=t.x)[0]<0?t[1]-Pe-Te:Pe-t[1])}var sr=rr(Zn,function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?Ne:-Ne,u=w(o-n);w(u-Ne)0?Pe:-Pe),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&u>=Ne&&(w(n-i)Te?Math.atan((Math.sin(t)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(t))*Math.sin(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var i;if(null==e)i=n*Pe,r.point(-Ne,i),r.point(0,i),r.point(Ne,i),r.point(Ne,0),r.point(Ne,-i),r.point(0,-i),r.point(-Ne,-i),r.point(-Ne,0),r.point(-Ne,i);else if(w(e[0]-t[0])>Te){var o=e[0]0)){if(o/=h,h<0){if(o0){if(o>f)return;o>c&&(c=o)}if(o=n-u,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>c&&(c=o)}else if(h>0){if(o0)){if(o/=p,p<0){if(o0){if(o>f)return;o>c&&(c=o)}if(o=r-l,p||!(o<0)){if(o/=p,p<0){if(o>f)return;o>c&&(c=o)}else if(p>0){if(o0&&(i.a={x:u+c*h,y:l+c*p}),f<1&&(i.b={x:u+f*h,y:l+f*p}),i}}}}}}var lr=1e9;function cr(e,t,n,r){return function(u){var l,c,f,h,p,d,m,g,v,y,b,_=u,x=or(),w=ur(e,t,n,r),E={point:S,lineStart:function(){E.point=T,c&&c.push(f=[]);y=!0,v=!1,m=g=NaN},lineEnd:function(){l&&(T(h,p),d&&v&&x.rejoin(),l.push(x.buffer()));E.point=S,v&&u.lineEnd()},polygonStart:function(){u=x,l=[],c=[],b=!0},polygonEnd:function(){u=_,l=o.merge(l);var t=function(e){for(var t=0,n=c.length,r=e[1],i=0;ir&&Le(l,o,e)>0&&++t:o[1]<=r&&Le(l,o,e)<0&&--t,l=o;return 0!==t}([e,r]),n=b&&t,i=l.length;(n||i)&&(u.polygonStart(),n&&(u.lineStart(),C(null,null,1,u),u.lineEnd()),i&&er(l,a,t,C,u),u.polygonEnd()),l=c=f=null}};function C(o,a,u,l){var c=0,f=0;if(null==o||(c=i(o,u))!==(f=i(a,u))||s(o,a)<0^u>0)do{l.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+u+4)%4)!==f);else l.point(a[0],a[1])}function k(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function S(e,t){k(e,t)&&u.point(e,t)}function T(e,t){var n=k(e=Math.max(-lr,Math.min(lr,e)),t=Math.max(-lr,Math.min(lr,t)));if(c&&f.push([e,t]),y)h=e,p=t,d=n,y=!1,n&&(u.lineStart(),u.point(e,t));else if(n&&v)u.point(e,t);else{var r={a:{x:m,y:g},b:{x:e,y:t}};w(r)?(v||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),b=!1):n&&(u.lineStart(),u.point(e,t),b=!1)}m=e,g=t,v=n}return E};function i(r,i){return w(r[0]-e)0?0:3:w(r[0]-n)0?2:1:w(r[1]-t)0?1:0:i>0?3:2}function a(e,t){return s(e.x,t.x)}function s(e,t){var n=i(e,1),r=i(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}}function fr(e){var t=0,n=Ne/3,r=Rr(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Ne/180,n=e[1]*Ne/180):[t/Ne*180,n/Ne*180]},i}function hr(e,t){var n=Math.sin(e),r=(n+Math.sin(t))/2,i=1+n*(2*r-n),o=Math.sqrt(i)/r;function a(e,t){var n=Math.sqrt(i-2*r*Math.sin(t))/r;return[n*Math.sin(e*=r),o-n*Math.cos(e)]}return a.invert=function(e,t){var n=o-t;return[Math.atan2(e,n)/r,Fe((i-(e*e+n*n)*r*r)/(2*r))]},a}o.geo.clipExtent=function(){var e,t,n,r,i,o,a={stream:function(e){return i&&(i.valid=!1),(i=o(e)).valid=!0,i},extent:function(s){return arguments.length?(o=cr(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),a):[[e,t],[n,r]]}};return a.extent([[0,0],[960,500]])},(o.geo.conicEqualArea=function(){return fr(hr)}).raw=hr,o.geo.albers=function(){return o.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},o.geo.albersUsa=function(){var e,t,n,r,i=o.geo.albers(),a=o.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=o.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,n){e=[t,n]}};function l(i){var o=i[0],a=i[1];return e=null,t(o,a),e||(n(o,a),e)||r(o,a),e}return l.invert=function(e){var t=i.scale(),n=i.translate(),r=(e[0]-n[0])/t,o=(e[1]-n[1])/t;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?s:i).invert(e)},l.stream=function(e){var t=i.stream(e),n=a.stream(e),r=s.stream(e);return{point:function(e,i){t.point(e,i),n.point(e,i),r.point(e,i)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},l.precision=function(e){return arguments.length?(i.precision(e),a.precision(e),s.precision(e),l):i.precision()},l.scale=function(e){return arguments.length?(i.scale(e),a.scale(.35*e),s.scale(e),l.translate(i.translate())):i.scale()},l.translate=function(e){if(!arguments.length)return i.translate();var o=i.scale(),c=+e[0],f=+e[1];return t=i.translate(e).clipExtent([[c-.455*o,f-.238*o],[c+.455*o,f+.238*o]]).stream(u).point,n=a.translate([c-.307*o,f+.201*o]).clipExtent([[c-.425*o+Te,f+.12*o+Te],[c-.214*o-Te,f+.234*o-Te]]).stream(u).point,r=s.translate([c-.205*o,f+.212*o]).clipExtent([[c-.214*o+Te,f+.166*o+Te],[c-.115*o-Te,f+.234*o-Te]]).stream(u).point,l},l.scale(1070)};var pr,dr,mr,gr,vr,yr,br={point:B,lineStart:B,lineEnd:B,polygonStart:function(){dr=0,br.lineStart=_r},polygonEnd:function(){br.lineStart=br.lineEnd=br.point=B,pr+=w(dr/2)}};function _r(){var e,t,n,r;function i(e,t){dr+=r*e-n*t,n=e,r=t}br.point=function(o,a){br.point=i,e=n=o,t=r=a},br.lineEnd=function(){i(e,t)}}var xr={point:function(e,t){evr&&(vr=e);tyr&&(yr=t)},lineStart:B,lineEnd:B,polygonStart:B,polygonEnd:B};function wr(){var e=Er(4.5),t=[],n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(t){return e=Er(t),n},result:function(){if(t.length){var e=t.join("");return t=[],e}}};function r(n,r){t.push("M",n,",",r,e)}function i(e,r){t.push("M",e,",",r),n.point=o}function o(e,n){t.push("L",e,",",n)}function a(){n.point=r}function s(){t.push("Z")}return n}function Er(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var Cr,kr={point:Sr,lineStart:Tr,lineEnd:Mr,polygonStart:function(){kr.lineStart=Nr},polygonEnd:function(){kr.point=Sr,kr.lineStart=Tr,kr.lineEnd=Mr}};function Sr(e,t){Sn+=e,Tn+=t,++Mn}function Tr(){var e,t;function n(n,r){var i=n-e,o=r-t,a=Math.sqrt(i*i+o*o);Nn+=a*(e+n)/2,An+=a*(t+r)/2,On+=a,Sr(e=n,t=r)}kr.point=function(r,i){kr.point=n,Sr(e=r,t=i)}}function Mr(){kr.point=Sr}function Nr(){var e,t,n,r;function i(e,t){var i=e-n,o=t-r,a=Math.sqrt(i*i+o*o);Nn+=a*(n+e)/2,An+=a*(r+t)/2,On+=a,Pn+=(a=r*e-n*t)*(n+e),Dn+=a*(r+t),jn+=3*a,Sr(n=e,r=t)}kr.point=function(o,a){kr.point=i,Sr(e=n=o,t=r=a)},kr.lineEnd=function(){i(e,t)}}function Ar(e){var t=4.5,n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(e){return t=e,n},result:B};function r(n,r){e.moveTo(n+t,r),e.arc(n,r,t,0,Ae)}function i(t,r){e.moveTo(t,r),n.point=o}function o(t,n){e.lineTo(t,n)}function a(){n.point=r}function s(){e.closePath()}return n}function Or(e){var t=.5,n=Math.cos(30*De),r=16;function i(t){return(r?function(t){var n,i,a,s,u,l,c,f,h,p,d,m,g={point:v,lineStart:y,lineEnd:_,polygonStart:function(){t.polygonStart(),g.lineStart=x},polygonEnd:function(){t.polygonEnd(),g.lineStart=y}};function v(n,r){n=e(n,r),t.point(n[0],n[1])}function y(){f=NaN,g.point=b,t.lineStart()}function b(n,i){var a=Fn([n,i]),s=e(n,i);o(f,h,c,p,d,m,f=s[0],h=s[1],c=n,p=a[0],d=a[1],m=a[2],r,t),t.point(f,h)}function _(){g.point=v,t.lineEnd()}function x(){y(),g.point=w,g.lineEnd=E}function w(e,t){b(n=e,t),i=f,a=h,s=p,u=d,l=m,g.point=b}function E(){o(f,h,c,p,d,m,i,a,n,s,u,l,r,t),g.lineEnd=_,_()}return g}:function(t){return Dr(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})})(t)}function o(r,i,a,s,u,l,c,f,h,p,d,m,g,v){var y=c-r,b=f-i,_=y*y+b*b;if(_>4*t&&g--){var x=s+p,E=u+d,C=l+m,k=Math.sqrt(x*x+E*E+C*C),S=Math.asin(C/=k),T=w(w(C)-1)t||w((y*O+b*P)/_-.5)>.3||s*p+u*d+l*m0&&16,i):Math.sqrt(t)},i}function Pr(e){this.stream=e}function Dr(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function jr(e){return Rr(function(){return e})()}function Rr(e){var t,n,r,i,a,s,u=Or(function(e,n){return[(e=t(e,n))[0]*l+i,a-e[1]*l]}),l=150,c=480,f=250,h=0,p=0,d=0,m=0,g=0,v=sr,y=R,b=null,_=null;function x(e){return[(e=r(e[0]*De,e[1]*De))[0]*l+i,a-e[1]*l]}function E(e){return(e=r.invert((e[0]-i)/l,(a-e[1])/l))&&[e[0]*je,e[1]*je]}function C(){r=Qn(n=Br(d,m,g),t);var e=t(h,p);return i=c-e[0]*l,a=f+e[1]*l,k()}function k(){return s&&(s.valid=!1,s=null),x}return x.stream=function(e){return s&&(s.valid=!1),(s=Lr(v(n,u(y(e))))).valid=!0,s},x.clipAngle=function(e){return arguments.length?(v=null==e?(b=e,sr):function(e){var t=Math.cos(e),n=t>0,r=w(t)>Te;return rr(i,function(e){var t,s,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(f,h){var p,d=[f,h],m=i(f,h),g=n?m?0:a(f,h):m?a(f+(f<0?Ne:-Ne),h):0;if(!t&&(l=u=m)&&e.lineStart(),m!==u&&(p=o(t,d),(Wn(t,p)||Wn(d,p))&&(d[0]+=Te,d[1]+=Te,m=i(d[0],d[1]))),m!==u)c=0,m?(e.lineStart(),p=o(d,t),e.point(p[0],p[1])):(p=o(t,d),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(r&&t&&n^m){var v;g&s||!(v=o(d,t,!0))||(c=0,n?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1])))}!m||t&&Wn(t,d)||e.point(d[0],d[1]),t=d,u=m,s=g},lineEnd:function(){u&&e.lineEnd(),t=null},clean:function(){return c|(l&&u)<<1}}},zr(e,6*De),n?[0,-e]:[-Ne,e-Ne]);function i(e,n){return Math.cos(e)*Math.cos(n)>t}function o(e,n,r){var i=[1,0,0],o=Un(Fn(e),Fn(n)),a=Bn(o,o),s=o[0],u=a-s*s;if(!u)return!r&&e;var l=t*a/u,c=-t*s/u,f=Un(i,o),h=qn(i,l);Hn(h,qn(o,c));var p=f,d=Bn(h,p),m=Bn(p,p),g=d*d-m*(Bn(h,h)-1);if(!(g<0)){var v=Math.sqrt(g),y=qn(p,(-d-v)/m);if(Hn(y,h),y=Vn(y),!r)return y;var b,_=e[0],x=n[0],E=e[1],C=n[1];x<_&&(b=_,_=x,x=b);var k=x-_,S=w(k-Ne)0^y[1]<(w(y[0]-_)Ne^(_<=y[0]&&y[0]<=x)){var T=qn(p,(-d+v)/m);return Hn(T,h),[y,Vn(T)]}}}function a(t,r){var i=n?e:Ne-e,o=0;return t<-i?o|=1:t>i&&(o|=2),r<-i?o|=4:r>i&&(o|=8),o}}((b=+e)*De),k()):b},x.clipExtent=function(e){return arguments.length?(_=e,y=e?cr(e[0][0],e[0][1],e[1][0],e[1][1]):R,k()):_},x.scale=function(e){return arguments.length?(l=+e,C()):l},x.translate=function(e){return arguments.length?(c=+e[0],f=+e[1],C()):[c,f]},x.center=function(e){return arguments.length?(h=e[0]%360*De,p=e[1]%360*De,C()):[h*je,p*je]},x.rotate=function(e){return arguments.length?(d=e[0]%360*De,m=e[1]%360*De,g=e.length>2?e[2]%360*De:0,C()):[d*je,m*je,g*je]},o.rebind(x,u,"precision"),function(){return t=e.apply(this,arguments),x.invert=t.invert&&E,C()}}function Lr(e){return Dr(e,function(t,n){e.point(t*De,n*De)})}function Ir(e,t){return[e,t]}function Fr(e,t){return[e>Ne?e-Ae:e<-Ne?e+Ae:e,t]}function Br(e,t,n){return e?t||n?Qn(Hr(e),qr(t,n)):Hr(e):t||n?qr(t,n):Fr}function Ur(e){return function(t,n){return[(t+=e)>Ne?t-Ae:t<-Ne?t+Ae:t,n]}}function Hr(e){var t=Ur(e);return t.invert=Ur(-e),t}function qr(e,t){var n=Math.cos(e),r=Math.sin(e),i=Math.cos(t),o=Math.sin(t);function a(e,t){var a=Math.cos(t),s=Math.cos(e)*a,u=Math.sin(e)*a,l=Math.sin(t),c=l*n+s*r;return[Math.atan2(u*i-c*o,s*n-l*r),Fe(c*i+u*o)]}return a.invert=function(e,t){var a=Math.cos(t),s=Math.cos(e)*a,u=Math.sin(e)*a,l=Math.sin(t),c=l*i-u*o;return[Math.atan2(u*i+l*o,s*n+c*r),Fe(c*n-s*r)]},a}function zr(e,t){var n=Math.cos(e),r=Math.sin(e);return function(i,o,a,s){var u=a*t;null!=i?(i=Vr(n,i),o=Vr(n,o),(a>0?io)&&(i+=a*Ae)):(i=e+a*Ae,o=e-.5*u);for(var l,c=i;a>0?c>o:c2?e[2]*De:0),t.invert=function(t){return(t=e.invert(t[0]*De,t[1]*De))[0]*=je,t[1]*=je,t},t},Fr.invert=Ir,o.geo.circle=function(){var e,t,n=[0,0],r=6;function i(){var e="function"==typeof n?n.apply(this,arguments):n,r=Br(-e[0]*De,-e[1]*De,0).invert,i=[];return t(null,null,1,{point:function(e,t){i.push(e=r(e,t)),e[0]*=je,e[1]*=je}}),{type:"Polygon",coordinates:[i]}}return i.origin=function(e){return arguments.length?(n=e,i):n},i.angle=function(n){return arguments.length?(t=zr((e=+n)*De,r*De),i):e},i.precision=function(n){return arguments.length?(t=zr(e*De,(r=+n)*De),i):r},i.angle(90)},o.geo.distance=function(e,t){var n,r=(t[0]-e[0])*De,i=e[1]*De,o=t[1]*De,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)},o.geo.graticule=function(){var e,t,n,r,i,a,s,u,l,c,f,h,p=10,d=p,m=90,g=360,v=2.5;function y(){return{type:"MultiLineString",coordinates:b()}}function b(){return o.range(Math.ceil(r/m)*m,n,m).map(f).concat(o.range(Math.ceil(u/g)*g,s,g).map(h)).concat(o.range(Math.ceil(t/p)*p,e,p).filter(function(e){return w(e%m)>Te}).map(l)).concat(o.range(Math.ceil(a/d)*d,i,d).filter(function(e){return w(e%g)>Te}).map(c))}return y.lines=function(){return b().map(function(e){return{type:"LineString",coordinates:e}})},y.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(h(s).slice(1),f(n).reverse().slice(1),h(u).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.majorExtent(e).minorExtent(e):y.minorExtent()},y.majorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],u=+e[0][1],s=+e[1][1],r>n&&(e=r,r=n,n=e),u>s&&(e=u,u=s,s=e),y.precision(v)):[[r,u],[n,s]]},y.minorExtent=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],a=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),a>i&&(n=a,a=i,i=n),y.precision(v)):[[t,a],[e,i]]},y.step=function(e){return arguments.length?y.majorStep(e).minorStep(e):y.minorStep()},y.majorStep=function(e){return arguments.length?(m=+e[0],g=+e[1],y):[m,g]},y.minorStep=function(e){return arguments.length?(p=+e[0],d=+e[1],y):[p,d]},y.precision=function(o){return arguments.length?(v=+o,l=Wr(a,i,90),c=Gr(t,e,v),f=Wr(u,s,90),h=Gr(r,n,v),y):v},y.majorExtent([[-180,-90+Te],[180,90-Te]]).minorExtent([[-180,-80-Te],[180,80+Te]])},o.geo.greatArc=function(){var e,t,n=Yr,r=$r;function i(){return{type:"LineString",coordinates:[e||n.apply(this,arguments),t||r.apply(this,arguments)]}}return i.distance=function(){return o.geo.distance(e||n.apply(this,arguments),t||r.apply(this,arguments))},i.source=function(t){return arguments.length?(n=t,e="function"==typeof t?null:t,i):n},i.target=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,i):r},i.precision=function(){return arguments.length?i:0},i},o.geo.interpolate=function(e,t){return n=e[0]*De,r=e[1]*De,i=t[0]*De,o=t[1]*De,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(Ue(o-r)+a*u*Ue(i-n))),m=1/Math.sin(d),(g=d?function(e){var t=Math.sin(e*=d)*m,n=Math.sin(d-e)*m,r=n*c+t*h,i=n*f+t*p,o=n*s+t*l;return[Math.atan2(i,r)*je,Math.atan2(o,Math.sqrt(r*r+i*i))*je]}:function(){return[n*je,r*je]}).distance=d,g;var n,r,i,o,a,s,u,l,c,f,h,p,d,m,g},o.geo.length=function(e){return Cr=0,o.geo.stream(e,Xr),Cr};var Xr={sphere:B,point:B,lineStart:function(){var e,t,n;function r(r,i){var o=Math.sin(i*=De),a=Math.cos(i),s=w((r*=De)-e),u=Math.cos(s);Cr+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=n*o-t*a*u)*s),t*o+n*a*u),e=r,t=o,n=a}Xr.point=function(i,o){e=i*De,t=Math.sin(o*=De),n=Math.cos(o),Xr.point=r},Xr.lineEnd=function(){Xr.point=Xr.lineEnd=B}},lineEnd:B,polygonStart:B,polygonEnd:B};function Kr(e,t){function n(t,n){var r=Math.cos(t),i=Math.cos(n),o=e(r*i);return[o*i*Math.sin(t),o*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),i=t(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(e*o,r*a),Math.asin(r&&n*o/r)]},n}var Jr=Kr(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(o.geo.azimuthalEqualArea=function(){return jr(Jr)}).raw=Jr;var Qr=Kr(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},R);function Zr(e,t){var n=Math.cos(e),r=function(e){return Math.tan(Ne/4+e/2)},i=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(r(t)/r(e)),o=n*Math.pow(r(e),i)/i;if(!i)return ni;function a(e,t){o>0?t<-Pe+Te&&(t=-Pe+Te):t>Pe-Te&&(t=Pe-Te);var n=o/Math.pow(r(t),i);return[n*Math.sin(i*e),o-n*Math.cos(i*e)]}return a.invert=function(e,t){var n=o-t,r=Re(i)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/i,2*Math.atan(Math.pow(o/r,1/i))-Pe]},a}function ei(e,t){var n=Math.cos(e),r=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),i=n/r+e;if(w(r)1&&Le(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function ci(e,t){return e[0]-t[0]||e[1]-t[1]}(o.geo.stereographic=function(){return jr(oi)}).raw=oi,ai.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Pe]},(o.geo.transverseMercator=function(){var e=ri(ai),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90])}).raw=ai,o.geom={},o.geom.hull=function(e){var t=si,n=ui;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,i=_t(t),o=_t(n),a=e.length,s=[],u=[];for(r=0;r=0;--r)p.push(e[s[l[r]][2]]);for(r=+f;rTe)s=s.L;else{if(!((i=o-Mi(s,a))>Te)){r>-Te?(t=s.P,n=s):i>-Te?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var u=Ei(e);if(vi.insert(t,u),t||n){if(t===n)return Di(t),n=Ei(t.site),vi.insert(u,n),u.edge=n.edge=Li(t.site,u.site),Pi(t),void Pi(n);if(n){Di(t),Di(n);var l=t.site,c=l.x,f=l.y,h=e.x-c,p=e.y-f,d=n.site,m=d.x-c,g=d.y-f,v=2*(h*g-p*m),y=h*h+p*p,b=m*m+g*g,_={x:(g*y-p*b)/v+c,y:(h*b-m*y)/v+f};Ii(n.edge,l,d,_),u.edge=Li(l,e,null,_),n.edge=Li(e,d,null,_),Pi(t),Pi(n)}else u.edge=Li(t.site,u.site)}}function Ti(e,t){var n=e.site,r=n.x,i=n.y,o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site).x,u=n.y,l=u-t;if(!l)return s;var c=s-r,f=1/o-1/l,h=c/l;return f?(-h+Math.sqrt(h*h-2*f*(c*c/(-2*l)-u+l/2+i-o/2)))/f+r:(r+s)/2}function Mi(e,t){var n=e.N;if(n)return Ti(n,t);var r=e.site;return r.y===t?r.x:1/0}function Ni(e){this.site=e,this.edges=[]}function Ai(e,t){return t.angle-e.angle}function Oi(){Ui(this),this.x=this.y=this.arc=this.site=this.cy=null}function Pi(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var a=i.x,s=i.y,u=r.x-a,l=r.y-s,c=o.x-a,f=2*(u*(g=o.y-s)-l*c);if(!(f>=-Me)){var h=u*u+l*l,p=c*c+g*g,d=(g*h-l*p)/f,m=(u*p-c*h)/f,g=m+s,v=xi.pop()||new Oi;v.arc=e,v.site=i,v.x=d+a,v.y=g+Math.sqrt(d*d+m*m),v.cy=g,e.circle=v;for(var y=null,b=bi._;b;)if(v.y=s)return;if(h>d){if(o){if(o.y>=l)return}else o={x:g,y:u};n={x:g,y:l}}else{if(o){if(o.y1)if(h>d){if(o){if(o.y>=l)return}else o={x:(u-i)/r,y:u};n={x:(l-i)/r,y:l}}else{if(o){if(o.y=s)return}else o={x:a,y:r*a+i};n={x:s,y:r*s+i}}else{if(o){if(o.xTe||w(i-n)>Te)&&(s.splice(a,0,new Fi((v=o.site,y=c,b=w(r-f)Te?{x:f,y:w(t-f)Te?{x:w(n-d)Te?{x:h,y:w(t-h)Te?{x:w(n-p)=n&&l.x<=i&&l.y>=r&&l.y<=a?[[n,a],[i,a],[i,r],[n,r]]:[]).point=e[s]}),t}function s(e){return e.map(function(e,t){return{x:Math.round(r(e,t)/Te)*Te,y:Math.round(i(e,t)/Te)*Te,i:t}})}return a.links=function(e){return Vi(s(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},a.triangles=function(e){var t=[];return Vi(s(e)).cells.forEach(function(n,r){for(var i,o,a,s,u=n.site,l=n.edges.sort(Ai),c=-1,f=l.length,h=l[f-1].edge,p=h.l===u?h.r:h.l;++co&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Ji(n,r)})),o=eo.lastIndex;return om&&(m=u.x),u.y>g&&(g=u.y),l.push(u.x),c.push(u.y);else for(f=0;fm&&(m=b),_>g&&(g=_),l.push(b),c.push(_)}var x=m-p,E=g-d;function C(e,t,n,r,i,o,a,s){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var u=e.x,l=e.y;if(null!=u)if(w(u-n)+w(l-r)<.01)k(e,t,n,r,i,o,a,s);else{var c=e.point;e.x=e.y=e.point=null,k(e,c,u,l,i,o,a,s),k(e,t,n,r,i,o,a,s)}else e.x=n,e.y=r,e.point=t}else k(e,t,n,r,i,o,a,s)}function k(e,t,n,r,i,o,a,s){var u=.5*(i+a),l=.5*(o+s),c=n>=u,f=r>=l,h=f<<1|c;e.leaf=!1,c?i=u:a=u,f?o=l:s=l,C(e=e.nodes[h]||(e.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,n,r,i,o,a,s)}x>E?g=d+x:m=p+E;var S={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){C(S,e,+v(e,++f),+y(e,f),p,d,m,g)}};if(S.visit=function(e){!function e(t,n,r,i,o,a){if(!t(n,r,i,o,a)){var s=.5*(r+o),u=.5*(i+a),l=n.nodes;l[0]&&e(t,l[0],r,i,s,u),l[1]&&e(t,l[1],s,i,o,u),l[2]&&e(t,l[2],r,u,s,a),l[3]&&e(t,l[3],s,u,o,a)}}(e,S,p,d,m,g)},S.find=function(e){return function(e,t,n,r,i,o,a){var s,u=1/0;return function e(l,c,f,h,p){if(!(c>o||f>a||h=x)<<1|t>=_,E=w+4;w=0&&!(n=o.interpolators[r](e,t)););return n}function no(e,t){var n,r=[],i=[],o=e.length,a=t.length,s=Math.min(e.length,t.length);for(n=0;n=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function fo(e){return 1-Math.cos(e*Pe)}function ho(e){return Math.pow(2,10*(e-1))}function po(e){return 1-Math.sqrt(1-e*e)}function mo(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function go(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function vo(e){var t,n,r,i=[e.a,e.b],o=[e.c,e.d],a=bo(i),s=yo(i,o),u=bo(((t=o)[0]+=(r=-s)*(n=i)[0],t[1]+=r*n[1],t))||0;i[0]*o[1]=0?e.slice(0,n):e,i=n>=0?e.slice(n+1):"in";return r=io.get(r)||ro,i=oo.get(i)||R,t=i(r.apply(null,a.call(arguments,1))),function(e){return e<=0?0:e>=1?1:t(e)}},o.interpolateHcl=function(e,t){e=o.hcl(e),t=o.hcl(t);var n=e.h,r=e.c,i=e.l,a=t.h-n,s=t.c-r,u=t.l-i;isNaN(s)&&(s=0,r=isNaN(r)?t.c:r);isNaN(a)?(a=0,n=isNaN(n)?t.h:n):a>180?a-=360:a<-180&&(a+=360);return function(e){return Je(n+a*e,r+s*e,i+u*e)+""}},o.interpolateHsl=function(e,t){e=o.hsl(e),t=o.hsl(t);var n=e.h,r=e.s,i=e.l,a=t.h-n,s=t.s-r,u=t.l-i;isNaN(s)&&(s=0,r=isNaN(r)?t.s:r);isNaN(a)?(a=0,n=isNaN(n)?t.h:n):a>180?a-=360:a<-180&&(a+=360);return function(e){return $e(n+a*e,r+s*e,i+u*e)+""}},o.interpolateLab=function(e,t){e=o.lab(e),t=o.lab(t);var n=e.l,r=e.a,i=e.b,a=t.l-n,s=t.a-r,u=t.b-i;return function(e){return it(n+a*e,r+s*e,i+u*e)+""}},o.interpolateRound=go,o.transform=function(e){var t=u.createElementNS(o.ns.prefix.svg,"g");return(o.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new vo(n?n.matrix:_o)})(e)},vo.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var _o={a:1,b:0,c:0,d:1,e:0,f:0};function xo(e){return e.length?e.pop()+",":""}function wo(e,t){var n=[],r=[];return e=o.transform(e),t=o.transform(t),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:Ji(e[0],t[0])},{i:i-2,x:Ji(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}(e.translate,t.translate,n,r),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(xo(n)+"rotate(",null,")")-2,x:Ji(e,t)})):t&&n.push(xo(n)+"rotate("+t+")")}(e.rotate,t.rotate,n,r),function(e,t,n,r){e!==t?r.push({i:n.push(xo(n)+"skewX(",null,")")-2,x:Ji(e,t)}):t&&n.push(xo(n)+"skewX("+t+")")}(e.skew,t.skew,n,r),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push(xo(n)+"scale(",null,",",null,")");r.push({i:i-4,x:Ji(e[0],t[0])},{i:i-2,x:Ji(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(xo(n)+"scale("+t+")")}(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,i=-1,o=r.length;++i0?n=t:(e.c=null,e.t=NaN,e=null,u.end({type:"end",alpha:n=0})):t>0&&(u.start({type:"start",alpha:n=t}),e=Mt(s.tick)),s):n},s.start=function(){var e,t,n,o=v.length,u=y.length,c=l[0],d=l[1];for(e=0;e=0;)n.push(i[r])}function Lo(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(o=e.children)&&(i=o.length))for(var i,o,a=-1;++a=0;)a.push(c=l[u]),c.parent=o,c.depth=o.depth+1;n&&(o.value=0),o.children=l}else n&&(o.value=+n.call(r,o,o.depth)||0),delete o.children;return Lo(i,function(t){var r,i;e&&(r=t.children)&&r.sort(e),n&&(i=t.parent)&&(i.value+=t.value)}),s}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(Ro(e,function(e){e.children&&(e.value=0)}),Lo(e,function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)})),e},r},o.layout.partition=function(){var e=o.layout.hierarchy(),t=[1,1];function n(n,r){var i=e.call(this,n,r);return function e(t,n,r,i){var o=t.children;if(t.x=n,t.y=t.depth*i,t.dx=r,t.dy=i,o&&(a=o.length)){var a,s,u,l=-1;for(r=t.value?r/t.value:0;++ls&&(s=r),a.push(r)}for(n=0;ni&&(r=n,i=t);return r}function Ko(e){return e.reduce(Jo,0)}function Jo(e,t){return e+t[1]}function Qo(e,t){return Zo(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Zo(e,t){for(var n=-1,r=+e[0],i=(e[1]-r)/t,o=[];++n<=t;)o[n]=i*n+r;return o}function ea(e){return[o.min(e),o.max(e)]}function ta(e,t){return e.value-t.value}function na(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function ra(e,t){e._pack_next=t,t._pack_prev=e}function ia(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return.999*i*i>n*n+r*r}function oa(e){if((t=e.children)&&(u=t.length)){var t,n,r,i,o,a,s,u,l=1/0,c=-1/0,f=1/0,h=-1/0;if(t.forEach(aa),(n=t[0]).x=-n.r,n.y=0,b(n),u>1&&((r=t[1]).x=r.r,r.y=0,b(r),u>2))for(ua(n,r,i=t[2]),b(i),na(n,i),n._pack_prev=i,na(i,r),r=n._pack_next,o=3;o0)for(a=-1;++a=f[0]&&u<=f[1]&&((s=l[o.bisect(h,u,1,d)-1]).y+=m,s.push(i[a]));return l}return i.value=function(e){return arguments.length?(t=e,i):t},i.range=function(e){return arguments.length?(n=_t(e),i):n},i.bins=function(e){return arguments.length?(r="number"==typeof e?function(t){return Zo(t,e)}:_t(e),i):r},i.frequency=function(t){return arguments.length?(e=!!t,i):e},i},o.layout.pack=function(){var e,t=o.layout.hierarchy().sort(ta),n=0,r=[1,1];function i(i,o){var a=t.call(this,i,o),s=a[0],u=r[0],l=r[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(s.x=s.y=0,Lo(s,function(e){e.r=+c(e.value)}),Lo(s,oa),n){var f=n*(e?1:Math.max(2*s.r/u,2*s.r/l))/2;Lo(s,function(e){e.r+=f}),Lo(s,oa),Lo(s,function(e){e.r-=f})}return function e(t,n,r,i){var o=t.children;t.x=n+=i*t.x;t.y=r+=i*t.y;t.r*=i;if(o)for(var a=-1,s=o.length;++ap.x&&(p=e),e.depth>d.depth&&(d=e)});var m=t(h,p)/2-h.x,g=n[0]/(p.x+t(p,h)/2+m),v=n[1]/(d.depth||1);Ro(c,function(e){e.x=(e.x+m)*g,e.y=e.depth*v})}return l}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n.length){!function(e){var t,n=0,r=0,i=e.children,o=i.length;for(;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,s=n,u=o.parent.children[0],l=o.m,c=a.m,f=s.m,h=u.m;s=fa(s),o=ca(o),s&&o;)u=ca(u),(a=fa(a)).a=e,(i=s.z+f-o.z-l+t(s._,o._))>0&&(ha(pa(s,e,r),e,i),l+=i,c+=i),f+=s.m,l+=o.m,h+=u.m,c+=a.m;s&&!fa(a)&&(a.t=s,a.m+=f-c),o&&!ca(u)&&(u.t=o,u.m+=l-h,r=e)}return r}(e,i,e.parent.A||r[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function u(e){e.x*=n[0],e.y=e.depth*n[1]}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(r=null==(n=e)?u:null,i):r?null:n},i.nodeSize=function(e){return arguments.length?(r=null==(n=e)?null:u,i):r?n:null},jo(i,e)},o.layout.cluster=function(){var e=o.layout.hierarchy().sort(null).value(null),t=la,n=[1,1],r=!1;function i(i,a){var s,u=e.call(this,i,a),l=u[0],c=0;Lo(l,function(e){var n=e.children;n&&n.length?(e.x=function(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}(n),e.y=function(e){return 1+o.max(e,function(e){return e.y})}(n)):(e.x=s?c+=t(e,s):0,e.y=0,s=e)});var f=function e(t){var n=t.children;return n&&n.length?e(n[0]):t}(l),h=function e(t){var n,r=t.children;return r&&(n=r.length)?e(r[n-1]):t}(l),p=f.x-t(f,h)/2,d=h.x+t(h,f)/2;return Lo(l,r?function(e){e.x=(e.x-l.x)*n[0],e.y=(l.y-e.y)*n[1]}:function(e){e.x=(e.x-p)/(d-p)*n[0],e.y=(1-(l.y?e.y/l.y:1))*n[1]}),u}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(r=null==(n=e),i):r?null:n},i.nodeSize=function(e){return arguments.length?(r=null!=(n=e),i):r?n:null},jo(i,e)},o.layout.treemap=function(){var e,t=o.layout.hierarchy(),n=Math.round,r=[1,1],i=null,a=da,s=!1,u="squarify",l=.5*(1+Math.sqrt(5));function c(e,t){for(var n,r,i=-1,o=e.length;++i0;)s.push(n=l[i-1]),s.area+=n.area,"squarify"!==u||(r=p(s,m))<=h?(l.pop(),h=r):(s.area-=s.pop().area,d(s,m,o,!1),m=Math.min(o.dx,o.dy),s.length=s.area=0,h=1/0);s.length&&(d(s,m,o,!0),s.length=s.area=0),t.forEach(f)}}function h(e){var t=e.children;if(t&&t.length){var n,r=a(e),i=t.slice(),o=[];for(c(i,r.dx*r.dy/e.value),o.area=0;n=i.pop();)o.push(n),o.area+=n.area,null!=n.z&&(d(o,n.z?r.dx:r.dy,r,!i.length),o.length=o.area=0);t.forEach(h)}}function p(e,t){for(var n,r=e.area,i=0,o=1/0,a=-1,s=e.length;++ai&&(i=n));return t*=t,(r*=r)?Math.max(t*i*l/r,r/(t*o*l)):1/0}function d(e,t,r,i){var o,a=-1,s=e.length,u=r.x,l=r.y,c=t?n(e.area/t):0;if(t==r.dx){for((i||c>r.dy)&&(c=r.dy);++ar.dx)&&(c=r.dx);++a1);return e+t*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=o.random.normal.apply(o,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=o.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n2?wa:ya,s=i?Co:Eo;return o=e(t,n,s,r),a=e(n,t,s,to),u}function u(e){return o(e)}u.invert=function(e){return a(e)};u.domain=function(e){return arguments.length?(t=e.map(Number),s()):t};u.range=function(e){return arguments.length?(n=e,s()):n};u.rangeRound=function(e){return u.range(e).interpolate(go)};u.clamp=function(e){return arguments.length?(i=e,s()):i};u.interpolate=function(e){return arguments.length?(r=e,s()):r};u.ticks=function(e){return Sa(t,e)};u.tickFormat=function(e,n){return Ta(t,e,n)};u.nice=function(e){return Ca(t,e),s()};u.copy=function(){return e(t,n,r,i)};return s()}([0,1],[0,1],to,!1)};var Ma={s:1,g:1,p:1,r:1,e:1};function Na(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}o.scale.log=function(){return function e(t,n,r,i){function a(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(n)}function s(e){return r?Math.pow(n,e):-Math.pow(n,-e)}function u(e){return t(a(e))}u.invert=function(e){return s(t.invert(e))};u.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((i=e.map(Number)).map(a)),u):i};u.base=function(e){return arguments.length?(n=+e,t.domain(i.map(a)),u):n};u.nice=function(){var e=ba(i.map(a),r?Math:Oa);return t.domain(e),i=e.map(s),u};u.ticks=function(){var e=ga(i),t=[],o=e[0],u=e[1],l=Math.floor(a(o)),c=Math.ceil(a(u)),f=n%1?2:n;if(isFinite(c-l)){if(r){for(;l0;h--)t.push(s(l)*h);for(l=0;t[l]u;c--);t=t.slice(l,c)}return t};u.tickFormat=function(e,t){if(!arguments.length)return Aa;arguments.length<2?t=Aa:"function"!=typeof t&&(t=o.format(t));var r=Math.max(1,n*e/u.ticks().length);return function(e){var i=e/s(Math.round(a(e)));return i*n0?r[e-1]:t[0],ef?0:1;if(l=Oe)return u(l,p)+(s?u(s,1-p):"")+"Z";var d,m,g,v,y,b,_,x,w,E,C,k,S=0,T=0,M=[];if((v=(+a.apply(this,arguments)||0)/2)&&(g=r===Fa?Math.sqrt(s*s+l*l):+r.apply(this,arguments),p||(T*=-1),l&&(T=Fe(g/l*Math.sin(v))),s&&(S=Fe(g/s*Math.sin(v)))),l){y=l*Math.cos(c+T),b=l*Math.sin(c+T),_=l*Math.cos(f-T),x=l*Math.sin(f-T);var N=Math.abs(f-c-2*T)<=Ne?0:1;if(T&&Va(y,b,_,x)===p^N){var A=(c+f)/2;y=l*Math.cos(A),b=l*Math.sin(A),_=x=null}}else y=b=0;if(s){w=s*Math.cos(f-S),E=s*Math.sin(f-S),C=s*Math.cos(c+S),k=s*Math.sin(c+S);var O=Math.abs(c-f+2*S)<=Ne?0:1;if(S&&Va(w,E,C,k)===1-p^O){var P=(c+f)/2;w=s*Math.cos(P),E=s*Math.sin(P),C=k=null}}else w=E=0;if(h>Te&&(d=Math.min(Math.abs(l-s)/2,+n.apply(this,arguments)))>.001){m=s0?0:1}function Wa(e,t,n,r,i){var o=e[0]-t[0],a=e[1]-t[1],s=(i?r:-r)/Math.sqrt(o*o+a*a),u=s*a,l=-s*o,c=e[0]+u,f=e[1]+l,h=t[0]+u,p=t[1]+l,d=(c+h)/2,m=(f+p)/2,g=h-c,v=p-f,y=g*g+v*v,b=n-r,_=c*p-h*f,x=(v<0?-1:1)*Math.sqrt(Math.max(0,b*b*y-_*_)),w=(_*v-g*x)/y,E=(-_*g-v*x)/y,C=(_*v+g*x)/y,k=(-_*g+v*x)/y,S=w-d,T=E-m,M=C-d,N=k-m;return S*S+T*T>M*M+N*N&&(w=C,E=k),[[w-u,E-l],[w*n/b,E*n/b]]}function Ga(e){var t=si,n=ui,r=Zn,i=$a,o=i.key,a=.7;function s(o){var s,u=[],l=[],c=-1,f=o.length,h=_t(t),p=_t(n);function d(){u.push("M",i(e(l),a))}for(;++c1&&i.push("H",r[0]);return i.join("")},"step-before":Ka,"step-after":Ja,basis:es,"basis-open":function(e){if(e.length<4)return $a(e);var t,n=[],r=-1,i=e.length,o=[0],a=[0];for(;++r<3;)t=e[r],o.push(t[0]),a.push(t[1]);n.push(ts(is,o)+","+ts(is,a)),--r;for(;++r9&&(i=3*t/Math.sqrt(i),a[s]=i*n,a[s+1]=i*r));s=-1;for(;++s<=u;)i=(e[Math.min(u,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),o.push([i||0,a[s]*i||0]);return o}(e))}});function $a(e){return e.length>1?e.join("L"):e+"Z"}function Xa(e){return e.join("L")+"Z"}function Ka(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t1){s=t[1],o=e[u],u++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1];for(var l=2;lNe)+",1 "+t}function u(e,t,n,r){return"Q 0,0 "+r}return o.radius=function(e){return arguments.length?(n=_t(e),o):n},o.source=function(t){return arguments.length?(e=_t(t),o):e},o.target=function(e){return arguments.length?(t=_t(e),o):t},o.startAngle=function(e){return arguments.length?(r=_t(e),o):r},o.endAngle=function(e){return arguments.length?(i=_t(e),o):i},o},o.svg.diagonal=function(){var e=Yr,t=$r,n=cs;function r(r,i){var o=e.call(this,r,i),a=t.call(this,r,i),s=(o.y+a.y)/2,u=[o,{x:o.x,y:s},{x:a.x,y:s},a];return"M"+(u=u.map(n))[0]+"C"+u[1]+" "+u[2]+" "+u[3]}return r.source=function(t){return arguments.length?(e=_t(t),r):e},r.target=function(e){return arguments.length?(t=_t(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},o.svg.diagonal.radial=function(){var e=o.svg.diagonal(),t=cs,n=e.projection;return e.projection=function(e){return arguments.length?n(function(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-Pe;return[n*Math.cos(r),n*Math.sin(r)]}}(t=e)):t},e},o.svg.symbol=function(){var e=hs,t=fs;function n(n,r){return(ds.get(e.call(this,n,r))||ps)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=_t(t),n):e},n.size=function(e){return arguments.length?(t=_t(e),n):t},n};var ds=o.map({circle:ps,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*gs)),n=t*gs;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/ms),n=t*ms/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/ms),n=t*ms/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});o.svg.symbolTypes=ds.keys();var ms=Math.sqrt(3),gs=Math.tan(30*De);J.transition=function(e){for(var t,n,r=_s||++Es,i=Ss(e),o=[],a=xs||{time:Date.now(),ease:co,delay:0,duration:250},s=-1,u=this.length;++s0;)l[--h].call(e,a);if(o>=1)return f.event&&f.event.end.call(e,e.__data__,t),--c.count?delete c[r]:delete e[n],1}f||(o=i.time,a=Mt(function(e){var t=f.delay;if(a.t=t+o,t<=e)return h(e-t);a.c=h},0,o),f=c[r]={tween:new C,time:o,timer:a,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++c.count)}ws.call=J.call,ws.empty=J.empty,ws.node=J.node,ws.size=J.size,o.transition=function(e,t){return e&&e.transition?_s?e.transition(t):e:o.selection().transition(e)},o.transition.prototype=ws,ws.select=function(e){var t,n,r,i=this.id,o=this.namespace,a=[];e=Q(e);for(var s=-1,u=this.length;++srect,.s>rect").attr("width",a[1]-a[0])}function m(e){e.select(".extent").attr("y",s[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function g(){var f,g,v=this,y=o.select(o.event.target),b=n.of(v,arguments),_=o.select(v),x=y.datum(),w=!/^(n|s)$/.test(x)&&r,E=!/^(e|w)$/.test(x)&&i,C=y.classed("extent"),k=Ee(v),S=o.mouse(v),T=o.select(c(v)).on("keydown.brush",function(){32==o.event.keyCode&&(C||(f=null,S[0]-=a[1],S[1]-=s[1],C=2),q())}).on("keyup.brush",function(){32==o.event.keyCode&&2==C&&(S[0]+=a[1],S[1]+=s[1],C=0,q())});if(o.event.changedTouches?T.on("touchmove.brush",A).on("touchend.brush",P):T.on("mousemove.brush",A).on("mouseup.brush",P),_.interrupt().selectAll("*").interrupt(),C)S[0]=a[0]-S[0],S[1]=s[0]-S[1];else if(x){var M=+/w$/.test(x),N=+/^n/.test(x);g=[a[1-M]-S[0],s[1-N]-S[1]],S[0]=a[M],S[1]=s[N]}else o.event.altKey&&(f=S.slice());function A(){var e=o.mouse(v),t=!1;g&&(e[0]+=g[0],e[1]+=g[1]),C||(o.event.altKey?(f||(f=[(a[0]+a[1])/2,(s[0]+s[1])/2]),S[0]=a[+(e[0]1?{floor:function(t){for(;s(t=e.floor(t));)t=Bs(t-1);return t},ceil:function(t){for(;s(t=e.ceil(t));)t=Bs(+t+1);return t}}:e))},r.ticks=function(e,t){var n=ga(r.domain()),o=null==e?i(n,10):"number"==typeof e?i(n,e):!e.range&&[{range:e},t];return o&&(e=o[0],t=o[1]),e.range(n[0],Bs(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return Fs(e.copy(),t,n)},Ea(r,e)}function Bs(e){return new Date(e)}js.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Is:Ls,Is.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},Is.toString=Ls.toString,Ft.second=qt(function(e){return new Bt(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),Ft.seconds=Ft.second.range,Ft.seconds.utc=Ft.second.utc.range,Ft.minute=qt(function(e){return new Bt(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),Ft.minutes=Ft.minute.range,Ft.minutes.utc=Ft.minute.utc.range,Ft.hour=qt(function(e){var t=e.getTimezoneOffset()/60;return new Bt(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),Ft.hours=Ft.hour.range,Ft.hours.utc=Ft.hour.utc.range,Ft.month=qt(function(e){return(e=Ft.day(e)).setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),Ft.months=Ft.month.range,Ft.months.utc=Ft.month.utc.range;var Us=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Hs=[[Ft.second,1],[Ft.second,5],[Ft.second,15],[Ft.second,30],[Ft.minute,1],[Ft.minute,5],[Ft.minute,15],[Ft.minute,30],[Ft.hour,1],[Ft.hour,3],[Ft.hour,6],[Ft.hour,12],[Ft.day,1],[Ft.day,2],[Ft.week,1],[Ft.month,1],[Ft.month,3],[Ft.year,1]],qs=js.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Zn]]),zs={range:function(e,t,n){return o.range(Math.ceil(e/n)*n,+t,n).map(Bs)},floor:R,ceil:R};Hs.year=Ft.year,Ft.scale=function(){return Fs(o.scale.linear(),Hs,qs)};var Vs=Hs.map(function(e){return[e[0].utc,e[1]]}),Ws=Rs.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Zn]]);function Gs(e){return JSON.parse(e.responseText)}function Ys(e){var t=u.createRange();return t.selectNode(u.body),t.createContextualFragment(e.responseText)}Vs.year=Ft.year.utc,Ft.scale.utc=function(){return Fs(o.scale.linear(),Vs,Ws)},o.text=xt(function(e){return e.responseText}),o.json=function(e,t){return wt(e,"application/json",Gs,t)},o.html=function(e,t){return wt(e,"text/html",Ys,t)},o.xml=xt(function(e){return e.responseXML}),this.d3=o,void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)}()},function(e,t,n){(function(e,n){var r;!function(){var i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},o=i._,a=Array.prototype,s=Object.prototype,u="undefined"!=typeof Symbol?Symbol.prototype:null,l=a.push,c=a.slice,f=s.toString,h=s.hasOwnProperty,p=Array.isArray,d=Object.keys,m=Object.create,g=function(){},v=function(e){return e instanceof v?e:this instanceof v?void(this._wrapped=e):new v(e)};t.nodeType?i._=v:(!n.nodeType&&n.exports&&(t=n.exports=v),t._=v),v.VERSION="1.9.1";var y,b=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}},_=function(e,t,n){return v.iteratee!==y?v.iteratee(e,t):null==e?v.identity:v.isFunction(e)?b(e,t,n):v.isObject(e)&&!v.isArray(e)?v.matcher(e):v.property(e)};v.iteratee=y=function(e,t){return _(e,t,1/0)};var x=function(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i=0&&t<=S};v.each=v.forEach=function(e,t,n){var r,i;if(t=b(t,n),M(e))for(r=0,i=e.length;r=3;return function(t,n,r,i){var o=!M(t)&&v.keys(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s=0},v.invoke=x(function(e,t,n){var r,i;return v.isFunction(t)?i=t:v.isArray(t)&&(r=t.slice(0,-1),t=t[t.length-1]),v.map(e,function(e){var o=i;if(!o){if(r&&r.length&&(e=k(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)})}),v.pluck=function(e,t){return v.map(e,v.property(t))},v.where=function(e,t){return v.filter(e,v.matcher(t))},v.findWhere=function(e,t){return v.find(e,v.matcher(t))},v.max=function(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=M(e)?e:v.values(e)).length;so&&(o=r);else t=_(t,n),v.each(e,function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},v.min=function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=M(e)?e:v.values(e)).length;sr||void 0===n)return 1;if(n0?0:i-1;o>=0&&o0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(c.call(r,a,s),v.isNaN))>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&ot?(r&&(clearTimeout(r),r=null),s=l,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l},v.debounce=function(e,t,n){var r,i,o=function(t,n){r=null,n&&(i=e.apply(t,n))},a=x(function(a){if(r&&clearTimeout(r),n){var s=!r;r=setTimeout(o,t),s&&(i=e.apply(this,a))}else r=v.delay(o,t,this,a);return i});return a.cancel=function(){clearTimeout(r),r=null},a},v.wrap=function(e,t){return v.partial(t,e)},v.negate=function(e){return function(){return!e.apply(this,arguments)}},v.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},v.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},v.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},v.once=v.partial(v.before,2),v.restArguments=x;var L=!{toString:null}.propertyIsEnumerable("toString"),I=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],F=function(e,t){var n=I.length,r=e.constructor,i=v.isFunction(r)&&r.prototype||s,o="constructor";for(C(e,o)&&!v.contains(t,o)&&t.push(o);n--;)(o=I[n])in e&&e[o]!==i[o]&&!v.contains(t,o)&&t.push(o)};v.keys=function(e){if(!v.isObject(e))return[];if(d)return d(e);var t=[];for(var n in e)C(e,n)&&t.push(n);return L&&F(e,t),t},v.allKeys=function(e){if(!v.isObject(e))return[];var t=[];for(var n in e)t.push(n);return L&&F(e,t),t},v.values=function(e){for(var t=v.keys(e),n=t.length,r=Array(n),i=0;i1&&(r=b(r,t[1])),t=v.allKeys(e)):(r=q,t=P(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i1&&(n=t[1])):(t=v.map(P(t,!1,!1),String),r=function(e,n){return!v.contains(t,n)}),v.pick(e,r,n)}),v.defaults=B(v.allKeys,!0),v.create=function(e,t){var n=w(e);return t&&v.extendOwn(n,t),n},v.clone=function(e){return v.isObject(e)?v.isArray(e)?e.slice():v.extend({},e):e},v.tap=function(e,t){return t(e),e},v.isMatch=function(e,t){var n=v.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o":">",'"':""","'":"'","`":"`"},W=v.invert(V),G=function(e){var t=function(t){return e[t]},n="(?:"+v.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};v.escape=G(V),v.unescape=G(W),v.result=function(e,t,n){v.isArray(t)||(t=[t]);var r=t.length;if(!r)return v.isFunction(n)?n.call(e):n;for(var i=0;i/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var $=/(.)^/,X={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},K=/\\|'|\r|\n|\u2028|\u2029/g,J=function(e){return"\\"+X[e]};v.template=function(e,t,n){!t&&n&&(t=n),t=v.defaults({},t,v.templateSettings);var r,i=RegExp([(t.escape||$).source,(t.interpolate||$).source,(t.evaluate||$).source].join("|")+"|$","g"),o=0,a="__p+='";e.replace(i,function(t,n,r,i,s){return a+=e.slice(o,s).replace(K,J),o=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return r.call(this,e,v)},u=t.variable||"obj";return s.source="function("+u+"){\n"+a+"}",s},v.chain=function(e){var t=v(e);return t._chain=!0,t};var Q=function(e,t){return e._chain?v(t).chain():t};v.mixin=function(e){return v.each(v.functions(e),function(t){var n=v[t]=e[t];v.prototype[t]=function(){var e=[this._wrapped];return l.apply(e,arguments),Q(this,n.apply(v,e))}}),v},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=a[e];v.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],Q(this,n)}}),v.each(["concat","join","slice"],function(e){var t=a[e];v.prototype[e]=function(){return Q(this,t.apply(this._wrapped,arguments))}}),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return v}.apply(t,[]))||(n.exports=r)}()}).call(this,n(36),n(93)(e))},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r=n(4),i=(n(2),{}),o={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,i,o,a,s,u){var l,c;this.isInTransaction()&&r("27");try{this._isInTransaction=!0,l=!0,this.initializeAll(0),c=e.call(t,n,i,o,a,s,u),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n]/,u=n(45)(function(e,t){if(e.namespaceURI!==o.svg||"innerHTML"in e)e.innerHTML=t;else{(r=r||document.createElement("div")).innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(i.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=u},function(e,t,n){"use strict";var r=/["'&<>]/;e.exports=function(e){return"boolean"==typeof e||"number"==typeof e?""+e:function(e){var t,n=""+e,i=r.exec(n);if(!i)return n;var o="",a=0,s=0;for(a=i.index;a-1||r("96",e),!l.plugins[n]){t.extractEvents||r("97",e),l.plugins[n]=t;var a=t.eventTypes;for(var u in a)s(a[u],t,u)||r("98",u,e)}}}function s(e,t,n){l.eventNameDispatchConfigs.hasOwnProperty(n)&&r("99",n),l.eventNameDispatchConfigs[n]=e;var i=e.phasedRegistrationNames;if(i){for(var o in i){if(i.hasOwnProperty(o))u(i[o],t,n)}return!0}return!!e.registrationName&&(u(e.registrationName,t,n),!0)}function u(e,t,n){l.registrationNameModules[e]&&r("100",e),l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){i&&r("101"),i=Array.prototype.slice.call(e),a()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];o.hasOwnProperty(n)&&o[n]===i||(o[n]&&r("102",n),o[n]=i,t=!0)}t&&a()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var i=l.registrationNameModules[n[r]];if(i)return i}}return null},_resetEventPlugins:function(){for(var e in i=null,o)o.hasOwnProperty(e)&&delete o[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=l.registrationNameModules;for(var a in r)r.hasOwnProperty(a)&&delete r[a]}};e.exports=l},function(e,t,n){"use strict";var r,i,o=n(4),a=n(39);n(2),n(3);function s(e,t,n,r){var i=e.type||"unknown-event";e.currentTarget=u.getNodeFromInstance(r),t?a.invokeGuardedCallbackWithCatch(i,n,e):a.invokeGuardedCallback(i,n,e),e.currentTarget=null}var u={isEndish:function(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e},isMoveish:function(e){return"topMouseMove"===e||"topTouchMove"===e},isStartish:function(e){return"topMouseDown"===e||"topTouchStart"===e},executeDirectDispatch:function(e){var t=e._dispatchListeners,n=e._dispatchInstances;Array.isArray(t)&&o("103"),e.currentTarget=t?u.getNodeFromInstance(n):null;var r=t?t(e):null;return e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,r},executeDispatchesInOrder:function(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var i=0;i1)for(var n=1;n0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}(e))}};e.exports=u},function(e,t,n){"use strict";n(5);var r=n(11),i=(n(3),r);e.exports=i},function(e,t,n){"use strict";e.exports=function(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}},function(e,t,n){"use strict";var r=n(22),i=n(5),o=n(56),a=(n(57),n(29));n(2),n(94);function s(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||o}function u(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||o}function l(){}s.prototype.isReactComponent={},s.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},s.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")},l.prototype=s.prototype,u.prototype=new l,u.prototype.constructor=u,i(u.prototype,s.prototype),u.prototype.isPureReactComponent=!0,e.exports={Component:s,PureComponent:u}},function(e,t,n){"use strict";n(3);var r={isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){},enqueueReplaceState:function(e,t){},enqueueSetState:function(e,t){}};e.exports=r},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r},function(e,t,n){"use strict";var r=n(102);e.exports=function(e){return r(e,!1)}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";e.exports={hasCachedChildNodes:1}},function(e,t,n){"use strict";var r=n(4);n(2);e.exports=function(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}},function(e,t,n){"use strict";e.exports=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}},function(e,t,n){"use strict";var r=n(9),i=null;e.exports=function(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}},function(e,t,n){"use strict";var r=n(4);var i=n(15),o=(n(2),function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e=this._callbacks,t=this._contexts,n=this._arg;if(e&&t){e.length!==t.length&&r("24"),this._callbacks=null,this._contexts=null;for(var i=0;i.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var o,s=a.createElement(R,{child:t});if(e){var u=h.get(e);o=u._processChildContext(u._context)}else o=v;var l=D(n);if(l){var c=l._currentElement.props.child;if(_(c,t)){var f=l._renderedComponent.getPublicInstance(),p=i&&function(){i.call(f)};return L._updateRootComponent(l,s,o,n,p),f}L.unmountComponentAtNode(n)}var d,g=T(n),y=g&&!(!(d=g).getAttribute||!d.getAttribute(x)),b=O(n),w=y&&!l&&!b,E=L._renderNewRootComponent(s,n,w,o)._renderedComponent.getPublicInstance();return i&&i.call(E),E},render:function(e,t,n){return L._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){P(e)||r("40");var t=D(e);if(!t){O(e),1===e.nodeType&&e.hasAttribute(w);return!1}return delete S[t._instance.rootID],g.batchedUpdates(A,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,o,a){if(P(t)||r("41"),o){var s=T(t);if(p.canReuseMarkup(e,s))return void u.precacheNode(n,s);var l=s.getAttribute(p.CHECKSUM_ATTR_NAME);s.removeAttribute(p.CHECKSUM_ATTR_NAME);var c=s.outerHTML;s.setAttribute(p.CHECKSUM_ATTR_NAME,l);var f=e,h=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r0;--n)t+=i[n]/(e+n);var o=e+r+.5;return.5*Math.log(2*Math.PI)+(e+.5)*Math.log(o)-o+Math.log(t)-Math.log(e)}e.exports=function e(t){if(t<.5)return Math.PI/(Math.sin(Math.PI*t)*e(1-t));if(t>100)return Math.exp(o(t));t-=1;for(var r=n[0],i=1;i<9;i++)r+=n[i]/(t+i);var a=t+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(a,t+.5)*Math.exp(-a)*r},e.exports.log=o},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,c=l&&l(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(c){var h=l(n);h&&h!==c&&e(t,h,f)}var p=a(n);s&&(p=p.concat(s(n)));for(var d=0;dt?2:1;if(l.isArray(e)&&l.isArray(t)){if(e.length!=t.length)return e.length>t.length?2:1;var s=0;return l.every(e,function(e,n){var i=r.dm_compareTwoValues(e,t[n]);return 0==i||(s=i,!1)}),s}return-2}return-1},dm_compareTwoValues_level2:function(e,t){var n=this.dm_compareTwoValues(e,t);return-2==n&&l.has(e,"value")&&l.has(t,"value")?this.dm_compareTwoValues(e.value,t.value):n},dm_log100times:l.before(100,function(e){return 0}),getInitialState:function(){return{header:[]}},shouldComponentUpdate:function(e){var t=this;return this.state.header!==e.header||(!(!this.state.header||this.props.rowData===e.rowData)||(this.props.sortOn!=e.sortOn||l.some(this.props.rowData,function(n,r){if(!l.isMatch(n,e.rowData[r]))return!0;if(n===e.rowData[r])return!1;if(n===e.rowData[r])return!1;var i=t.dm_compareTwoValues_level2(n,e.rowData[r]);if(i>=0){if(0==i){var o=l.keys(n),a=l.keys(e.rowData[r]),s=l.intersection(o,a);return s.length)/;return u.createElement("tr",{onClick:this.props.onClick},this.props.rowData.map(l.bind(function(t,n){var r=l.has(t,"value")?t.value:t;if(l.isArray(r)){if(!l.has(t,"format"))return r}else if(l.isObject(r)&&!u.isValidElement(r))return null;l.has(t,"format")&&(r=t.format(r)),l.has(t,"abbr")&&(r=e.test(r)?u.createElement("span",{"data-toggle":"tooltip","data-placement":"top","data-html":"true",title:t.abbr,dangerouslySetInnerHTML:{__html:r}}):u.createElement("span",{"data-toggle":"tooltip","data-placement":"top","data-html":"true",title:t.abbr},r));var i={key:n};if(l.has(t,"span")&&(i.colSpan=t.span),l.has(t,"style")&&(i.style=t.style),l.has(t,"tooltip")&&(i.title=t.tooltip),l.has(t,"classes")&&(i.className=t.classes),this.state.header&&this.props.sorter&&l.has(t,"sortable")&&t.sortable){i.onClick=l.partial(this.props.sorter,n,this.dm_compareTwoValues_level2);var o="fa fa-sort";this.props.sortOn&&this.props.sortOn[0]==n&&(o=this.props.sortOn[1]?"fa fa-sort-amount-asc":"fa fa-sort-amount-desc"),r=u.createElement("div",null,r,u.createElement("i",{className:o,"aria-hidden":"true",style:{marginLeft:"0.5em"}}))}return u.createElement(this.props.header?"th":"td",i,r)},this)))}}),p=u.createClass({displayName:"DatamonkeyTable",getDefaultProps:function(){return{classes:"dm-table table table-smm table-hover",rowHash:null}},getInitialState:function(){var e=0;return this.props.bodyData&&(e=this.props.bodyData.length),{rowOrder:l.range(0,e),headerData:this.props.headerData,sortOn:this.props.initialSort?[this.props.initialSort,!0]:null,current:0}},componentWillReceiveProps:function(e){this.setState({rowOrder:l.range(0,e.bodyData.length),headerData:e.headerData,current:e.bodyData.length=this.props.paginate?this.setState({current:this.state.current-this.props.paginate}):this.setState({current:0})},decrement:function(){if(this.state.current>0){var e=this.state.current-1;this.setState({current:e})}},increment:function(){if(this.state.current0?r?2*a-3:3-2*a:0});l.some(i,function(e,t){return e!=n.state.rowOrder[t]})&&this.setState({rowOrder:i}),this.setState({sortOn:[e,r]})},componentDidMount:function(){},componentDidUpdate:function(){t('[data-toggle="tooltip"]').tooltip()},rowOnClick:function(e){this.props.onClick&&this.props.onClick(e)},render:function(){var e,t,n,r=[],i=this,a=Math.min(this.state.current+this.props.paginate,this.state.rowOrder.length);if(this.props.paginate){if(this.props.export_csv){t=u.createElement("button",{id:"export-csv",type:"button",className:"btn.btn-secondary btn-sm float-right",onClick:function(){function e(e){return l.isObject(e)?e.value:e}var t=l.map(i.props.headerData,e),n=l.map(i.props.bodyData,function(t){return l.map(t,e)}).map(function(e){return l.object(t,e)});o.default.create({filename:"datamonkey-table.csv"}).downloadCsv(n)}},u.createElement("span",{className:"far fa-save"})," Export Table to CSV")}e=u.createElement("div",{className:"container"},u.createElement("div",{className:"row"},u.createElement("div",{className:"col-4"},u.createElement("p",null,"Showing entries ",this.state.current+1," through ",a," ","out of ",this.state.rowOrder.length,"."),u.createElement("div",{className:"btn-group d-flex",role:"group","aria-label":"..."},u.createElement("div",{className:"btn-group",role:"group"},u.createElement("button",{type:"button",className:"btn.btn-secondary",onClick:i.regress,"data-toggle":"tooltip",title:"Move backwards "+this.props.paginate+" rows."},u.createElement("span",{className:"fas fa-angle-double-left","aria-hidden":"true"}))),u.createElement("div",{className:"btn-group",role:"group"},u.createElement("button",{type:"button",className:"btn.btn-secondary",onClick:i.decrement,"data-toggle":"tooltip",title:"Move backwards one row."},u.createElement("span",{className:"fas fa-angle-left","aria-hidden":"true"}))),u.createElement("div",{className:"btn-group",role:"group"},u.createElement("button",{type:"button",className:"btn.btn-secondary",onClick:i.increment,"data-toggle":"tooltip",title:"Move forwards one row."},u.createElement("span",{className:"fas fa-angle-right","aria-hidden":"true"}))),u.createElement("div",{className:"btn-group",role:"group"},u.createElement("button",{type:"button",className:"btn.btn-secondary",onClick:i.advance,"data-toggle":"tooltip",title:"Move forwards "+this.props.paginate+" rows."},u.createElement("span",{className:"fas fa-angle-double-right","aria-hidden":"true"}))))),u.createElement("div",{className:"col-8 ml-auto align-bottom"},t)))}else e="";return this.state.headerData&&(l.isArray(this.props.headerData[0])?r.push(u.createElement("thead",{key:0},l.map(this.state.headerData,function(e,t){return u.createElement(h,{rowData:e,header:!0,key:t,sorter:l.bind(i.dm_sortOnColumn,i),sortOn:i.state.sortOn})}))):r.push(u.createElement("thead",{key:0},u.createElement(h,{rowData:this.state.headerData,header:!0,sorter:l.bind(i.dm_sortOnColumn,i),sortOn:i.state.sortOn})))),n=this.props.paginate?this.state.rowOrder.slice(this.state.current,this.state.current+this.props.paginate):this.state.rowOrder,r.push(u.createElement("tbody",{key:1},l.map(n,l.bind(function(e){var t=this,n=this.props.bodyData[e];return u.createElement(h,{rowData:n,key:this.props.rowHash?this.props.rowHash(n):e,header:!1,onClick:function(){return t.rowOnClick(n)}})},this)))),u.createElement("div",{className:"row"},e,u.createElement("div",{className:"col-md-12"},u.createElement("table",{className:this.props.classes},r)))}}),d=u.createClass({displayName:"DatamonkeyRateDistributionTable",dm_formatterRate:c.format(".3r"),dm_formatterProp:c.format(".3p"),dm_createDistributionTable:function(e){var t=[],n=this;return l.each(e,function(e,r){t.push([{value:r,span:3,classes:"info"}]),l.each(e,function(e,r){t.push([{value:e[1],format:n.dm_formatterProp},"@",{value:e[0],format:n.dm_formatterRate}])})}),t},render:function(){return u.createElement(p,{bodyData:this.dm_createDistributionTable(this.props.distribution),classes:"table table-smm"})}}),m=u.createClass({displayName:"DatamonkeyPartitionTable",dm_formatterFloat:c.format(".3r"),dm_formatterProp:c.format(".3p"),propTypes:{trees:a.default.object.isRequired,partitions:a.default.object.isRequired,branchAttributes:a.default.object.isRequired,siteResults:a.default.object.isRequired,accessorNegative:a.default.func.isRequired,accessorPositive:a.default.func.isRequired,pValue:a.default.number.isRequired},dm_computePartitionInformation:function(e,t,n,r){var i=l.sortBy(l.keys(t),function(e){return e}),o=null,a=this,s=this.props.extractOn||l.find(n.attributes,function(e,t){return o=t,"branch length"==e["attribute type"]});return o&&(s=o),l.map(i,function(i,o){var u=e.tested[i],c={};l.each(u,function(e,t){"test"==e&&(c[t]=1)});var h=s?f.helpers.sum(n[i],function(e,t){return c[t.toUpperCase()]?e[s]:0}):0,p=s?f.helpers.sum(n[i],function(e){return e[s]||0}):0;return l.map([o+1,t[i].coverage[0].length,l.size(c),l.keys(u).length,h,h/p,p,l.filter(a.props.accessorPositive(a.props.siteResults,i),function(e){return e<=r}).length,l.filter(a.props.accessorNegative(a.props.siteResults,i),function(e){return e<=r}).length],function(e,t){if(t>1){var n={value:e,style:{textAlign:"center"}};return 4!=t&&6!=t||l.extend(n,{format:a.dm_formatterFloat}),5==t&&l.extend(n,{format:a.dm_formatterProp}),n}return e})})},dm_makeHeaderRow:function(e){return[l.map(["Partition","Sites","Branches","Branch Length","Selected at p"+String.fromCharCode(parseInt("2264",16))+e],function(e,t){return l.extend({value:e,style:{borderBottom:0,textAlign:t>1?"center":"left"}},t>1?{span:3==t?3:2}:{})}),l.map(["","","Tested","Total","Tested","% of total","Total","Positive","Negative"],function(e,t){return{value:e,style:{borderTop:0,textAlign:t>1?"center":"left"}}})]},getInitialState:function(){return{header:this.dm_makeHeaderRow(this.props.pValue),rows:this.dm_computePartitionInformation(this.props.trees,this.props.partitions,this.props.branchAttributes,this.props.pValue)}},componentWillReceiveProps:function(e){this.setState({header:this.dm_makeHeaderRow(e.pValue),rows:this.dm_computePartitionInformation(e.trees,e.partitions,e.branchAttributes,e.pValue)})},render:function(){return u.createElement("div",{className:"table-responsive"},u.createElement(p,{headerData:this.state.header,bodyData:this.state.rows}))}}),g=u.createClass({displayName:"DatamonkeyModelTable",dm_numberFormatter:c.format(".2f"),dm_supportedColumns:{"Log Likelihood":{order:2,value:{value:"log L",abbr:"Log likelihood of model fit"},display_format:c.format(".2f")},"estimated parameters":{order:3,value:{value:"Parameters",abbr:"Number of estimated parameters"}},"AIC-c":{order:1,value:{value:u.createElement("span",null,["AIC",u.createElement("sub",{key:"0"},"C")]),abbr:"Small-sample corrected Akaike Information Score"},display_format:c.format(".2f")},"Rate Distributions":{order:4,value:"Rate distributions",transform:function(e){return u.createElement(d,{distribution:e})}}},propTypes:{fits:a.default.object},getDefaultProps:function(){return{orderOn:"display order"}},componentWillReceiveProps:function(e){var t=this.dm_extractFitsTable(e.fits);this.setState({header:this.dm_makeHeaderRow(t.columns),rows:t.data})},dm_extractFitsTable:function(e){var t=null,n=[],r={},i={},o=[],a=this;return l.each(e,function(e,s){t||(t={},l.each(e,function(e,o){a.dm_supportedColumns[o]&&(t[o]=a.dm_supportedColumns[o],n[t[o].order]=o,r[o]=a.dm_supportedColumns[o].display_format,l.isFunction(a.dm_supportedColumns[o].transform)&&(i[o]=a.dm_supportedColumns[o].transform))}),n=l.filter(n,function(e){return e}));var u=[{value:s}];l.each(n,function(t){var n=i[t]?i[t](e[t]):e[t];r[t]?u.push({value:n,format:r[t]}):u.push(n)}),o.push([u,l.isNumber(e[a.props.orderOn])?e[a.props.orderOn]:o.length])}),{data:l.map(l.sortBy(o,function(e){return e[1]}),function(e){return e[0]}),columns:l.map(n,function(e){return t[e].value})}},dm_makeHeaderRow:function(e){var t=["Model"];return l.each(e,function(e){t.push(e)}),t},getInitialState:function(){var e=this.dm_extractFitsTable(this.props.fits);return{header:this.dm_makeHeaderRow(e.columns),rows:e.data,caption:null}},render:function(){return u.createElement("div",null,u.createElement("h4",{className:"dm-table-header"},"Model fits",u.createElement("span",{className:"fas fa-info-circle",style:{verticalAlign:"middle",float:"right",minHeight:"30px",minWidth:"30px"},"aria-hidden":"true","data-toggle":"popover","data-trigger":"hover",title:"Actions","data-html":"true","data-content":"
  • Hover over a column header for a description of its content.
","data-placement":"bottom"})),u.createElement(p,{headerData:this.state.header,bodyData:this.state.rows}))}}),v=u.createClass({displayName:"DatamonkeyTimersTable",dm_percentageFormatter:c.format(".2%"),propTypes:{timers:a.default.object.isRequired},dm_formatSeconds:function(e){var t=[~~(e/3600),~~(e%3600/60),e%60];return l.map(t,function(e){return e<10?"0"+e:""+e}).join(":")},dm_extractTimerTable:function(e){var t=0,n=l.map(e,l.bind(function(e,n){return this.props.totalTime?n==this.props.totalTime&&(t=e.timer):t+=e.timer,[n,e.timer,e.order]},this));return n=l.sortBy(n,function(e){return e[2]}),n=l.map(n,l.bind(function(e){return null===this.props.totalTime||this.props.totalTime!=e[0]?e[2]={value:e[1]/t,format:this.dm_percentageFormatter}:e[2]="",e[1]=this.dm_formatSeconds(e[1]),e},this))},dm_makeHeaderRow:function(){return["Task","Time","%"]},getInitialState:function(){return{header:this.dm_makeHeaderRow(),rows:this.dm_extractTimerTable(this.props.timers),caption:null}},componentWillReceiveProps:function(e){this.setState({rows:this.dm_extractTimerTable(e.timers)})},render:function(){return u.createElement(p,{headerData:this.state.header,bodyData:this.state.rows})}});e.exports.DatamonkeyTable=p,e.exports.DatamonkeyTableRow=h,e.exports.DatamonkeyRateDistributionTable=d,e.exports.DatamonkeyPartitionTable=m,e.exports.DatamonkeyModelTable=g,e.exports.DatamonkeyTimersTable=v},function(e,t){e.exports=a},function(e,n,i){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n-1?e=this.props.json.trees[this.state.current].branchLengths[this.state.selected_model]:["bgm","fade"].indexOf(this.props.method)>-1&&(e=this.props.branch_lengths),e):[]},assignBranchAnnotations:function(){if(this.props.models[this.state.selected_model]&&this.props.models[this.state.selected_model]["branch-annotations"]){var e=this.props.multitree?this.props.models[this.state.selected_model]["branch-annotations"][this.state.current]:this.props.models[this.state.selected_model]["branch-annotations"];this.tree.assign_attributes(e)}},renderDiscreteLegendColorScheme:function(e){var t=this.svg;if(this.state.omega_color&&this.state.omega_scale){var n=this.state.omega_color(0),i=15,o=0;r.selectAll("#color-legend").remove();var a=t.append("g").attr("id","color-legend").attr("class","dc-legend").attr("transform","translate("+o+","+i+")"),s=a.append("g").attr("class","dc-legend-item").attr("transform","translate(0,0)");s.append("rect").attr("width","13").attr("height","13").attr("fill",n),s.append("text").attr("x","15").attr("y","11").text("Test");var u=a.append("g").attr("class","dc-legend-item").attr("transform","translate(0,18)");u.append("rect").attr("width","13").attr("height","13").attr("fill","black"),u.append("text").attr("x","15").attr("y","11").text("Background")}},renderLegendColorScheme:function(e,n,i){var o=this,a=o.props.models[o.state.selected_model]["branch-annotations"],s=o.svg;if(o.state.omega_color&&o.state.omega_scale&&(r.selectAll(".legend-definitions").selectAll("linearGradient").remove(),r.selectAll("#color-legend").remove(),a&&!i)){var u=s.append("defs").attr("class","legend-definitions").append("linearGradient").attr("id","_omega_bar").attr("x1","0%").attr("y1","0%").attr("x2","0%").attr("y2","100%");o.state.omega_color.domain().forEach(function(e){u.append("stop").attr("offset",100*o.state.omega_scale(e)+"%").style("stop-color",o.state.omega_color(e))});var l=s.append("g").attr("id","color-legend").attr("transform","translate("+o.props.margins.left+","+o.props.margins.top+")");l.append("rect").attr("x",0).attr("width",o.props.bar_width-o.props.margins.left-o.props.margins.right).attr("y",0).attr("height",o.props.bar_height-o.props.margins.top-o.props.margins.bottom).style("fill","url(#_omega_bar)");var c=r.svg.axis().scale(o.state.axis_scale).orient("left").tickFormat(r.format(".1r")).tickValues([0,.01,.1,.5,1,2,5,10]),f=l.append("g");f.style("font-size","14").attr("class","hyphy-omega-bar").call(c),f.selectAll("text").style("text-anchor","right");var h=f.append("g").attr("class","hyphy-omega-bar");(h=h.selectAll("text").data([n])).enter().append("text"),h.text(function(e){return t("",v.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue;var we=a.documentElement,Ee=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ke=/^([^.]*)(?:\.(.+)|)/;function Se(){return!0}function Te(){return!1}function Me(){try{return a.activeElement}catch(e){}}function Ne(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ne(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return E().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=E.guid++)),e.each(function(){E.event.add(this,t,i,r,n)})}E.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,p,d,m,g=Q.get(e);if(g)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&E.find.matchesSelector(we,i),n.guid||(n.guid=E.guid++),(u=g.events)||(u=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(F)||[""]).length;l--;)p=m=(s=ke.exec(t[l])||[])[1],d=(s[2]||"").split(".").sort(),p&&(f=E.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=E.event.special[p]||{},c=E.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&E.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)),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),E.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,p,d,m,g=Q.hasData(e)&&Q.get(e);if(g&&(u=g.events)){for(l=(t=(t||"").match(F)||[""]).length;l--;)if(p=m=(s=ke.exec(t[l])||[])[1],d=(s[2]||"").split(".").sort(),p){for(f=E.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&&m!==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(e,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(e,d,g.handle)||E.removeEvent(e,p,g.handle),delete u[p])}else for(p in u)E.event.remove(e,p+t[l],n,r,!0);E.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=E.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=E.event.special[s.type]||{};for(u[0]=s,t=1;t=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n-1:E.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u\x20\t\r\n\f]*)[^>]*)\/>/gi,Oe=/\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function Re(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Le(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n1&&"string"==typeof d&&!v.checkClone&&Pe.test(d))return e.each(function(i){var o=e.eq(i);m&&(t[0]=d.call(this,i,o.html())),Fe(o,t,n,r)});if(h&&(o=(i=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=E.map(ge(i,"script"),Re)).length;f")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=E.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||E.isXMLDoc(e)))for(a=ge(c),r=0,i=(o=ge(e)).length;r0&&ve(a,!f&&ge(e,"script")),c},cleanData:function(e){for(var t,n,r,i=E.event.special,o=0;void 0!==(n=e[o]);o++)if(K(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)i[r]?E.event.remove(n,r):E.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),E.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return W(this,function(e){return void 0===e?E.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Fe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return Fe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(E.cleanData(ge(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return E.clone(this,e,t)})},html:function(e){return W(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!me[(pe.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))),u}function et(e,t,n){var r=He(e),i=ze(e,t,r),o="border-box"===E.css(e,"boxSizing",!1,r),a=o;if(Ue.test(i)){if(!n)return i;i="auto"}return a=a&&(v.boxSizingReliable()||i===e.style[t]),("auto"===i||!parseFloat(i)&&"inline"===E.css(e,"display",!1,r))&&(i=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(i=parseFloat(i)||0)+Ze(e,t,n||(o?"border":"content"),a,r,i)+"px"}function tt(e,t,n,r,i){return new tt.prototype.init(e,t,n,r,i)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,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:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Ge.test(t),l=e.style;if(u||(t=Je(s)),a=E.cssHooks[t]||E.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(E.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Ge.test(t)||(t=Je(s)),(a=E.cssHooks[t]||E.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=ze(e,t,r)),"normal"===i&&t in $e&&(i=$e[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),E.each(["height","width"],function(e,t){E.cssHooks[t]={get:function(e,n,r){if(n)return!We.test(E.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?et(e,t,r):se(e,Ye,function(){return et(e,t,r)})},set:function(e,n,r){var i,o=He(e),a="border-box"===E.css(e,"boxSizing",!1,o),s=r&&Ze(e,t,r,a,o);return a&&v.scrollboxSize()===o.position&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Ze(e,t,"border",!1,o)-.5)),s&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=E.css(e,t)),Qe(0,n,s)}}}),E.cssHooks.marginLeft=Ve(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-se(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(e,t){E.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(E.cssHooks[e+t].set=Qe)}),E.fn.extend({css:function(e,t){return W(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=He(e),i=t.length;a1)}}),E.Tween=tt,tt.prototype={constructor:tt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var e=tt.propHooks[this.prop];return e&&e.get?e.get(this):tt.propHooks._default.get(this)},run:function(e){var t,n=tt.propHooks[this.prop];return this.options.duration?this.pos=t=E.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):tt.propHooks._default.set(this),this}},tt.prototype.init.prototype=tt.prototype,tt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[E.cssProps[e.prop]]&&!E.cssHooks[e.prop]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}},tt.propHooks.scrollTop=tt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=tt.prototype.init,E.fx.step={};var nt,rt,it=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function at(){rt&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(at):n.setTimeout(at,E.fx.interval),E.fx.tick())}function st(){return n.setTimeout(function(){nt=void 0}),nt=Date.now()}function ut(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function lt(e,t,n){for(var r,i=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(e){return this.each(function(){E.removeAttr(this,e)})}}),E.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?E.prop(e,t,n):(1===o&&E.isXMLDoc(e)||(i=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?ft:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=E.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(F);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ft={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ht[t]||E.find.attr;ht[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=ht[a],ht[a]=i,i=null!=n(e,t,r)?a:null,ht[a]=o),i}});var pt=/^(?:input|select|textarea|button)$/i,dt=/^(?:a|area)$/i;function mt(e){return(e.match(F)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(F)||[]}E.fn.extend({prop:function(e,t){return W(this,E.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[E.propFix[e]||e]})}}),E.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(e)||(t=E.propFix[t]||t,i=E.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(E.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(y(e))return this.each(function(t){E(this).addClass(e.call(this,t,gt(this)))});if((t=vt(e)).length)for(;n=this[u++];)if(i=gt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(y(e))return this.each(function(t){E(this).removeClass(e.call(this,t,gt(this)))});if(!arguments.length)return this.attr("class","");if((t=vt(e)).length)for(;n=this[u++];)if(i=gt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each(function(n){E(this).toggleClass(e.call(this,n,gt(this),t),t)}):this.each(function(){var t,i,o,a;if(r)for(i=0,o=E(this),a=vt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=gt(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+mt(gt(n))+" ").indexOf(t)>-1)return!0;return!1}});var yt=/\r/g;E.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=y(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,E(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=E.map(i,function(e){return null==e?"":e+""})),(t=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=E.valHooks[i.type]||E.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(yt,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:mt(E.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=E.inArray(E(e).val(),t)>-1}},v.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in n;var bt=/^(?:focusinfocus|focusoutblur)$/,_t=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(e,t,r,i){var o,s,u,l,c,f,h,p,m=[r||a],g=d.call(e,"type")?e.type:e,v=d.call(e,"namespace")?e.namespace.split("."):[];if(s=p=u=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!bt.test(g+E.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[E.expando]?e:new E.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:E.makeArray(t,[e]),h=E.event.special[g]||{},i||!h.trigger||!1!==h.trigger.apply(r,t))){if(!i&&!h.noBubble&&!b(r)){for(l=h.delegateType||g,bt.test(l+g)||(s=s.parentNode);s;s=s.parentNode)m.push(s),u=s;u===(r.ownerDocument||a)&&m.push(u.defaultView||u.parentWindow||n)}for(o=0;(s=m[o++])&&!e.isPropagationStopped();)p=s,e.type=o>1?l:h.bindType||g,(f=(Q.get(s,"events")||{})[e.type]&&Q.get(s,"handle"))&&f.apply(s,t),(f=c&&s[c])&&f.apply&&K(s)&&(e.result=f.apply(s,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(m.pop(),t)||!K(r)||c&&y(r[g])&&!b(r)&&((u=r[c])&&(r[c]=null),E.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,_t),r[g](),e.isPropagationStopped()&&p.removeEventListener(g,_t),E.event.triggered=void 0,u&&(r[c]=u)),e.result}},simulate:function(e,t,n){var r=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(r,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each(function(){E.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}}),v.focusin||E.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){E.event.simulate(t,e.target,E.event.fix(e))};E.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Q.access(r,t);i||r.addEventListener(e,n,!0),Q.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Q.access(r,t)-1;i?Q.access(r,t,i):(r.removeEventListener(e,n,!0),Q.remove(r,t))}}});var xt=n.location,wt=Date.now(),Et=/\?/;E.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+e),t};var Ct=/\[\]$/,kt=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i;function Mt(e,t,n,r){var i;if(Array.isArray(t))E.each(t,function(t,i){n||Ct.test(e)?r(e,i):Mt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==w(t))r(e,t);else for(i in t)Mt(e+"["+i+"]",t[i],n,r)}E.param=function(e,t){var n,r=[],i=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,function(){i(this.name,this.value)});else for(n in e)Mt(n,e[n],t,i);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&Tt.test(this.nodeName)&&!St.test(e)&&(this.checked||!he.test(e))}).map(function(e,t){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,function(e){return{name:t.name,value:e.replace(kt,"\r\n")}}):{name:t.name,value:n.replace(kt,"\r\n")}}).get()}});var Nt=/%20/g,At=/#.*$/,Ot=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Dt=/^(?:GET|HEAD)$/,jt=/^\/\//,Rt={},Lt={},It="*/".concat("*"),Ft=a.createElement("a");function Bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(F)||[];if(y(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ut(e,t,n,r){var i={},o=e===Lt;function a(s){var u;return i[s]=!0,E.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Ht(e,t){var n,r,i=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&E.extend(!0,e,r),e}Ft.href=xt.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ht(Ht(e,E.ajaxSettings),t):Ht(E.ajaxSettings,e)},ajaxPrefilter:Bt(Rt),ajaxTransport:Bt(Lt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,s,u,l,c,f,h,p,d=E.ajaxSetup({},t),m=d.context||d,g=d.context&&(m.nodeType||m.jquery)?E(m):E.event,v=E.Deferred(),y=E.Callbacks("once memory"),b=d.statusCode||{},_={},x={},w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Pt.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||w;return r&&r.abort(t),k(0,t),this}};if(v.promise(C),d.url=((e||d.url||xt.href)+"").replace(jt,xt.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(F)||[""],null==d.crossDomain){l=a.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=Ft.protocol+"//"+Ft.host!=l.protocol+"//"+l.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=E.param(d.data,d.traditional)),Ut(Rt,d,t,C),c)return C;for(h in(f=E.event&&d.global)&&0==E.active++&&E.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Dt.test(d.type),i=d.url.replace(At,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Nt,"+")):(p=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Et.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Ot,"$1"),p=(Et.test(i)?"&":"?")+"_="+wt+++p),d.url=i+p),d.ifModified&&(E.lastModified[i]&&C.setRequestHeader("If-Modified-Since",E.lastModified[i]),E.etag[i]&&C.setRequestHeader("If-None-Match",E.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&C.setRequestHeader("Content-Type",d.contentType),C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+It+"; q=0.01":""):d.accepts["*"]),d.headers)C.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(!1===d.beforeSend.call(m,C,d)||c))return C.abort();if(w="abort",y.add(d.complete),C.done(d.success),C.fail(d.error),r=Ut(Lt,d,t,C)){if(C.readyState=1,f&&g.trigger("ajaxSend",[C,d]),c)return C;d.async&&d.timeout>0&&(u=n.setTimeout(function(){C.abort("timeout")},d.timeout));try{c=!1,r.send(_,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(e,t,a,s){var l,h,p,_,x,w=t;c||(c=!0,u&&n.clearTimeout(u),r=void 0,o=s||"",C.readyState=e>0?4:0,l=e>=200&&e<300||304===e,a&&(_=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.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]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(d,C,a)),_=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.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&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(d,_,C,l),l?(d.ifModified&&((x=C.getResponseHeader("Last-Modified"))&&(E.lastModified[i]=x),(x=C.getResponseHeader("etag"))&&(E.etag[i]=x)),204===e||"HEAD"===d.type?w="nocontent":304===e?w="notmodified":(w=_.state,h=_.data,l=!(p=_.error))):(p=w,!e&&w||(w="error",e<0&&(e=0))),C.status=e,C.statusText=(t||w)+"",l?v.resolveWith(m,[h,w,C]):v.rejectWith(m,[C,w,p]),C.statusCode(b),b=void 0,f&&g.trigger(l?"ajaxSuccess":"ajaxError",[C,d,l?h:p]),y.fireWith(m,[C,w]),f&&(g.trigger("ajaxComplete",[C,d]),--E.active||E.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],function(e,t){E[t]=function(e,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),E.ajax(E.extend({url:e,type:t,dataType:i,data:n,success:r},E.isPlainObject(e)&&e))}}),E._evalUrl=function(e){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(t){E(this).wrapInner(e.call(this,t))}):this.each(function(){var t=E(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){E(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var qt={0:200,1223:204},zt=E.ajaxSettings.xhr();v.cors=!!zt&&"withCredentials"in zt,v.ajax=zt=!!zt,E.ajaxTransport(function(e){var t,r;if(v.cors||zt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(qt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),E.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return E.globalEval(e),e}}}),E.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),E.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,i){t=E(" +