|
|
define(["api/SplunkVisualizationBase","api/SplunkVisualizationUtils"],((t,n)=>(()=>{var e={895:(t,n,e)=>{var r,i;!function(){var o={version:"3.5.17"},a=[].slice,u=function(t){return a.call(t)},l=this.document;function s(t){return t&&(t.ownerDocument||t.document||t).documentElement}function c(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}if(l)try{u(l.documentElement.childNodes)[0].nodeType}catch(t){u=function(t){for(var n=t.length,e=new Array(n);n--;)e[n]=t[n];return e}}if(Date.now||(Date.now=function(){return+new Date}),l)try{l.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var f=this.Element.prototype,h=f.setAttribute,p=f.setAttributeNS,d=this.CSSStyleDeclaration.prototype,g=d.setProperty;f.setAttribute=function(t,n){h.call(this,t,n+"")},f.setAttributeNS=function(t,n,e){p.call(this,t,n,e+"")},d.setProperty=function(t,n,e){g.call(this,t,n+"",e)}}function v(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function y(t){return null===t?NaN:+t}function m(t){return!isNaN(t)}function x(t){return{left:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}o.ascending=v,o.descending=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},o.min=function(t,n){var e,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<o;)null!=(r=t[i])&&e>r&&(e=r)}else{for(;++i<o;)if(null!=(r=n.call(t,t[i],i))&&r>=r){e=r;break}for(;++i<o;)null!=(r=n.call(t,t[i],i))&&e>r&&(e=r)}return e},o.max=function(t,n){var e,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<o;)null!=(r=t[i])&&r>e&&(e=r)}else{for(;++i<o;)if(null!=(r=n.call(t,t[i],i))&&r>=r){e=r;break}for(;++i<o;)null!=(r=n.call(t,t[i],i))&&r>e&&(e=r)}return e},o.extent=function(t,n){var e,r,i,o=-1,a=t.length;if(1===arguments.length){for(;++o<a;)if(null!=(r=t[o])&&r>=r){e=i=r;break}for(;++o<a;)null!=(r=t[o])&&(e>r&&(e=r),i<r&&(i=r))}else{for(;++o<a;)if(null!=(r=n.call(t,t[o],o))&&r>=r){e=i=r;break}for(;++o<a;)null!=(r=n.call(t,t[o],o))&&(e>r&&(e=r),i<r&&(i=r))}return[e,i]},o.sum=function(t,n){var e,r=0,i=t.length,o=-1;if(1===arguments.length)for(;++o<i;)m(e=+t[o])&&(r+=e);else for(;++o<i;)m(e=+n.call(t,t[o],o))&&(r+=e);return r},o.mean=function(t,n){var e,r=0,i=t.length,o=-1,a=i;if(1===arguments.length)for(;++o<i;)m(e=y(t[o]))?r+=e:--a;else for(;++o<i;)m(e=y(n.call(t,t[o],o)))?r+=e:--a;if(a)return r/a},o.quantile=function(t,n){var e=(t.length-1)*n+1,r=Math.floor(e),i=+t[r-1],o=e-r;return o?i+o*(t[r]-i):i},o.median=function(t,n){var e,r=[],i=t.length,a=-1;if(1===arguments.length)for(;++a<i;)m(e=y(t[a]))&&r.push(e);else for(;++a<i;)m(e=y(n.call(t,t[a],a)))&&r.push(e);if(r.length)return o.quantile(r.sort(v),.5)},o.variance=function(t,n){var e,r,i=t.length,o=0,a=0,u=-1,l=0;if(1===arguments.length)for(;++u<i;)m(e=y(t[u]))&&(a+=(r=e-o)*(e-(o+=r/++l)));else for(;++u<i;)m(e=y(n.call(t,t[u],u)))&&(a+=(r=e-o)*(e-(o+=r/++l)));if(l>1)return a/(l-1)},o.deviation=function(){var t=o.variance.apply(this,arguments);return t?Math.sqrt(t):t};var b=x(v);function w(t){return t.length}o.bisectLeft=b.left,o.bisect=o.bisectRight=b.right,o.bisector=function(t){return x(1===t.length?function(n,e){return v(t(n),e)}:t)},o.shuffle=function(t,n,e){(o=arguments.length)<3&&(e=t.length,o<2&&(n=0));for(var r,i,o=e-n;o;)i=Math.random()*o--|0,r=t[o+n],t[o+n]=t[i+n],t[i+n]=r;return t},o.permute=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},o.pairs=function(t){for(var n=0,e=t.length-1,r=t[0],i=new Array(e<0?0:e);n<e;)i[n]=[r,r=t[++n]];return i},o.transpose=function(t){if(!(i=t.length))return[];for(var n=-1,e=o.min(t,w),r=new Array(e);++n<e;)for(var i,a=-1,u=r[n]=new Array(i);++a<i;)u[a]=t[a][n];return r},o.zip=function(){return o.transpose(arguments)},o.keys=function(t){var n=[];for(var e in t)n.push(e);return n},o.values=function(t){var n=[];for(var e in t)n.push(t[e]);return n},o.entries=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},o.merge=function(t){for(var n,e,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(e=new Array(a);--i>=0;)for(n=(r=t[i]).length;--n>=0;)e[--a]=r[n];return e};var M=Math.abs;function S(t){for(var n=1;t*n%1;)n*=10;return n}function E(t,n){for(var e in n)Object.defineProperty(t.prototype,e,{value:n[e],enumerable:!1})}function _(){this._=Object.create(null)}function k(t){return"__proto__"==(t+="")||"\0"===t[0]?"\0"+t:t}function N(t){return"\0"===(t+="")[0]?t.slice(1):t}function C(t){return k(t)in this._}function T(t){return(t=k(t))in this._&&delete this._[t]}function A(){var t=[];for(var n in this._)t.push(N(n));return t}function D(){var t=0;for(var n in this._)++t;return t}function j(){for(var t in this._)return!1;return!0}function L(){this._=Object.create(null)}function q(t){return t}function O(t,n,e){return function(){var r=e.apply(n,arguments);return r===n?t:r}}function R(t,n){if(n in t)return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var e=0,r=P.length;e<r;++e){var i=P[e]+n;if(i in t)return i}}o.range=function(t,n,e){if(arguments.length<3&&(e=1,arguments.length<2&&(n=t,t=0)),(n-t)/e==1/0)throw new Error("infinite range");var r,i=[],o=S(M(e)),a=-1;if(t*=o,n*=o,(e*=o)<0)for(;(r=t+e*++a)>n;)i.push(r/o);else for(;(r=t+e*++a)<n;)i.push(r/o);return i},o.map=function(t,n){var e=new _;if(t instanceof _)t.forEach((function(t,n){e.set(t,n)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(1===arguments.length)for(;++i<o;)e.set(i,t[i]);else for(;++i<o;)e.set(n.call(t,r=t[i],i),r)}else for(var a in t)e.set(a,t[a]);return e},E(_,{has:C,get:function(t){return this._[k(t)]},set:function(t,n){return this._[k(t)]=n},remove:T,keys:A,values:function(){var t=[];for(var n in this._)t.push(this._[n]);return t},entries:function(){var t=[];for(var n in this._)t.push({key:N(n),value:this._[n]});return t},size:D,empty:j,forEach:function(t){for(var n in this._)t.call(this,N(n),this._[n])}}),o.nest=function(){var t,n,e={},r=[],i=[];function a(i,o,u){if(u>=r.length)return n?n.call(e,o):t?o.sort(t):o;for(var l,s,c,f,h=-1,p=o.length,d=r[u++],g=new _;++h<p;)(f=g.get(l=d(s=o[h])))?f.push(s):g.set(l,[s]);return i?(s=i(),c=function(t,n){s.set(t,a(i,n,u))}):(s={},c=function(t,n){s[t]=a(i,n,u)}),g.forEach(c),s}function u(t,n){if(n>=r.length)return t;var e=[],o=i[n++];return t.forEach((function(t,r){e.push({key:t,values:u(r,n)})})),o?e.sort((function(t,n){return o(t.key,n.key)})):e}return e.map=function(t,n){return a(n,t,0)},e.entries=function(t){return u(a(o.map,t,0),0)},e.key=function(t){return r.push(t),e},e.sortKeys=function(t){return i[r.length-1]=t,e},e.sortValues=function(n){return t=n,e},e.rollup=function(t){return n=t,e},e},o.set=function(t){var n=new L;if(t)for(var e=0,r=t.length;e<r;++e)n.add(t[e]);return n},E(L,{has:C,add:function(t){return this._[k(t+="")]=!0,t},remove:T,values:A,size:D,empty:j,forEach:function(t){for(var n in this._)t.call(this,N(n))}}),o.behavior={},o.rebind=function(t,n){for(var e,r=1,i=arguments.length;++r<i;)t[e=arguments[r]]=O(t,n,n[e]);return t};var P=["webkit","ms","moz","Moz","o","O"];function z(){}function H(){}function I(t){var n=[],e=new _;function r(){for(var e,r=n,i=-1,o=r.length;++i<o;)(e=r[i].on)&&e.apply(this,arguments);return t}return r.on=function(r,i){var o,a=e.get(r);return arguments.length<2?a&&a.on:(a&&(a.on=null,n=n.slice(0,o=n.indexOf(a)).concat(n.slice(o+1)),e.remove(r)),i&&n.push(e.set(r,{on:i})),t)},r}function F(){o.event.preventDefault()}function $(){for(var t,n=o.event;t=n.sourceEvent;)n=t;return n}function U(t){for(var n=new H,e=0,r=arguments.length;++e<r;)n[arguments[e]]=I(n);return n.of=function(e,r){return function(i){try{var a=i.sourceEvent=o.event;i.target=t,o.event=i,n[i.type].apply(e,r)}finally{o.event=a}}},n}o.dispatch=function(){for(var t=new H,n=-1,e=arguments.length;++n<e;)t[arguments[n]]=I(t);return t},H.prototype.on=function(t,n){var e=t.indexOf("."),r="";if(e>=0&&(r=t.slice(e+1),t=t.slice(0,e)),t)return arguments.length<2?this[t].on(r):this[t].on(r,n);if(2===arguments.length){if(null==n)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},o.event=null,o.requote=function(t){return t.replace(B,"\\$&")};var B=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,W={}.__proto__?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)t[e]=n[e]};function V(t){return W(t,G),t}var Y=function(t,n){return n.querySelector(t)},X=function(t,n){return n.querySelectorAll(t)},Z=function(t,n){var e=t.matches||t[R(t,"matchesSelector")];return(Z=function(t,n){return e.call(t,n)})(t,n)};"function"==typeof Sizzle&&(Y=function(t,n){return Sizzle(t,n)[0]||null},X=Sizzle,Z=Sizzle.matchesSelector),o.selection=function(){return o.select(l.documentElement)};var G=o.selection.prototype=[];function J(t){return"function"==typeof t?t:function(){return Y(t,this)}}function K(t){return"function"==typeof t?t:function(){return X(t,this)}}G.select=function(t){var n,e,r,i,o=[];t=J(t);for(var a=-1,u=this.length;++a<u;){o.push(n=[]),n.parentNode=(r=this[a]).parentNode;for(var l=-1,s=r.length;++l<s;)(i=r[l])?(n.push(e=t.call(i,i.__data__,l,a)),e&&"__data__"in i&&(e.__data__=i.__data__)):n.push(null)}return V(o)},G.selectAll=function(t){var n,e,r=[];t=K(t);for(var i=-1,o=this.length;++i<o;)for(var a=this[i],l=-1,s=a.length;++l<s;)(e=a[l])&&(r.push(n=u(t.call(e,e.__data__,l,i))),n.parentNode=e);return V(r)};var Q="http://www.w3.org/1999/xhtml",tt={svg:"http://www.w3.org/2000/svg",xhtml:Q,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nt(t,n){return t=o.ns.qualify(t),null==n?t.local?function(){this.removeAttributeNS(t.space,t.local)}:function(){this.removeAttribute(t)}:"function"==typeof n?t.local?function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}:function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}:t.local?function(){this.setAttributeNS(t.space,t.local,n)}:function(){this.setAttribute(t,n)}}function et(t){return t.trim().replace(/\s+/g," ")}function rt(t){return new RegExp("(?:^|\\s+)"+o.requote(t)+"(?:\\s+|$)","g")}function it(t){return(t+"").trim().split(/^|\s+/)}function ot(t,n){var e=(t=it(t).map(at)).length;return"function"==typeof n?function(){for(var r=-1,i=n.apply(this,arguments);++r<e;)t[r](this,i)}:function(){for(var r=-1;++r<e;)t[r](this,n)}}function at(t){var n=rt(t);return function(e,r){if(i=e.classList)return r?i.add(t):i.remove(t);var i=e.getAttribute("class")||"";r?(n.lastIndex=0,n.test(i)||e.setAttribute("class",et(i+" "+t))):e.setAttribute("class",et(i.replace(n," ")))}}function ut(t,n,e){return null==n?function(){this.style.removeProperty(t)}:"function"==typeof n?function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}:function(){this.style.setProperty(t,n,e)}}function lt(t,n){return null==n?function(){delete this[t]}:"function"==typeof n?function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}:function(){this[t]=n}}function st(t){return"function"==typeof t?t:(t=o.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Q&&n.documentElement.namespaceURI===Q?n.createElement(t):n.createElementNS(e,t)}}function ct(){var t=this.parentNode;t&&t.removeChild(this)}function ft(t){return{__data__:t}}function ht(t){return function(){return Z(this,t)}}function pt(t){return arguments.length||(t=v),function(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}}function dt(t,n){for(var e=0,r=t.length;e<r;e++)for(var i,o=t[e],a=0,u=o.length;a<u;a++)(i=o[a])&&n(i,a,e);return t}function gt(t){return W(t,vt),t}o.ns={prefix:tt,qualify:function(t){var n=t.indexOf(":"),e=t;return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),tt.hasOwnProperty(e)?{space:tt[e],local:t}:t}},G.attr=function(t,n){if(arguments.length<2){if("string"==typeof t){var e=this.node();return(t=o.ns.qualify(t)).local?e.getAttributeNS(t.space,t.local):e.getAttribute(t)}for(n in t)this.each(nt(n,t[n]));return this}return this.each(nt(t,n))},G.classed=function(t,n){if(arguments.length<2){if("string"==typeof t){var e=this.node(),r=(t=it(t)).length,i=-1;if(n=e.classList){for(;++i<r;)if(!n.contains(t[i]))return!1}else for(n=e.getAttribute("class");++i<r;)if(!rt(t[i]).test(n))return!1;return!0}for(n in t)this.each(ot(n,t[n]));return this}return this.each(ot(t,n))},G.style=function(t,n,e){var r=arguments.length;if(r<3){if("string"!=typeof t){for(e in r<2&&(n=""),t)this.each(ut(e,t[e],n));return this}if(r<2){var i=this.node();return c(i).getComputedStyle(i,null).getPropertyValue(t)}e=""}return this.each(ut(t,n,e))},G.property=function(t,n){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(n in t)this.each(lt(n,t[n]));return this}return this.each(lt(t,n))},G.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},G.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},G.append=function(t){return t=st(t),this.select((function(){return this.appendChild(t.apply(this,arguments))}))},G.insert=function(t,n){return t=st(t),n=J(n),this.select((function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)}))},G.remove=function(){return this.each(ct)},G.data=function(t,n){var e,r,i=-1,o=this.length;if(!arguments.length){for(t=new Array(o=(e=this[0]).length);++i<o;)(r=e[i])&&(t[i]=r.__data__);return t}function a(t,e){var r,i,o,a=t.length,c=e.length,f=Math.min(a,c),h=new Array(c),p=new Array(c),d=new Array(a);if(n){var g,v=new _,y=new Array(a);for(r=-1;++r<a;)(i=t[r])&&(v.has(g=n.call(i,i.__data__,r))?d[r]=i:v.set(g,i),y[r]=g);for(r=-1;++r<c;)(i=v.get(g=n.call(e,o=e[r],r)))?!0!==i&&(h[r]=i,i.__data__=o):p[r]=ft(o),v.set(g,!0);for(r=-1;++r<a;)r in y&&!0!==v.get(y[r])&&(d[r]=t[r])}else{for(r=-1;++r<f;)i=t[r],o=e[r],i?(i.__data__=o,h[r]=i):p[r]=ft(o);for(;r<c;++r)p[r]=ft(e[r]);for(;r<a;++r)d[r]=t[r]}p.update=h,p.parentNode=h.parentNode=d.parentNode=t.parentNode,u.push(p),l.push(h),s.push(d)}var u=gt([]),l=V([]),s=V([]);if("function"==typeof t)for(;++i<o;)a(e=this[i],t.call(e,e.parentNode.__data__,i));else for(;++i<o;)a(e=this[i],t);return l.enter=function(){return u},l.exit=function(){return s},l},G.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},G.filter=function(t){var n,e,r,i=[];"function"!=typeof t&&(t=ht(t));for(var o=0,a=this.length;o<a;o++){i.push(n=[]),n.parentNode=(e=this[o]).parentNode;for(var u=0,l=e.length;u<l;u++)(r=e[u])&&t.call(r,r.__data__,u,o)&&n.push(r)}return V(i)},G.order=function(){for(var t=-1,n=this.length;++t<n;)for(var e,r=this[t],i=r.length-1,o=r[i];--i>=0;)(e=r[i])&&(o&&o!==e.nextSibling&&o.parentNode.insertBefore(e,o),o=e);return this},G.sort=function(t){t=pt.apply(this,arguments);for(var n=-1,e=this.length;++n<e;)this[n].sort(t);return this.order()},G.each=function(t){return dt(this,(function(n,e,r){t.call(n,n.__data__,e,r)}))},G.call=function(t){var n=u(arguments);return t.apply(n[0]=this,n),this},G.empty=function(){return!this.node()},G.node=function(){for(var t=0,n=this.length;t<n;t++)for(var e=this[t],r=0,i=e.length;r<i;r++){var o=e[r];if(o)return o}return null},G.size=function(){var t=0;return dt(this,(function(){++t})),t};var vt=[];function yt(t){var n,e;return function(r,i,o){var a,u=t[o].update,l=u.length;for(o!=e&&(e=o,n=0),i>=n&&(n=i+1);!(a=u[n])&&++n<l;);return a}}function mt(t,n,e){var r="__on"+t,i=t.indexOf("."),a=bt;i>0&&(t=t.slice(0,i));var l=xt.get(t);function s(){var n=this[r];n&&(this.removeEventListener(t,n,n.$),delete this[r])}return l&&(t=l,a=wt),i?n?function(){var i=a(n,u(arguments));s.call(this),this.addEventListener(t,this[r]=i,i.$=e),i._=n}:s:n?z:function(){var n,e=new RegExp("^__on([^.]+)"+o.requote(t)+"$");for(var r in this)if(n=r.match(e)){var i=this[r];this.removeEventListener(n[1],i,i.$),delete this[r]}}}o.selection.enter=gt,o.selection.enter.prototype=vt,vt.append=G.append,vt.empty=G.empty,vt.node=G.node,vt.call=G.call,vt.size=G.size,vt.select=function(t){for(var n,e,r,i,o,a=[],u=-1,l=this.length;++u<l;){r=(i=this[u]).update,a.push(n=[]),n.parentNode=i.parentNode;for(var s=-1,c=i.length;++s<c;)(o=i[s])?(n.push(r[s]=e=t.call(i.parentNode,o.__data__,s,u)),e.__data__=o.__data__):n.push(null)}return V(a)},vt.insert=function(t,n){return arguments.length<2&&(n=yt(this)),G.insert.call(this,t,n)},o.select=function(t){var n;return"string"==typeof t?(n=[Y(t,l)]).parentNode=l.documentElement:(n=[t]).parentNode=s(t),V([n])},o.selectAll=function(t){var n;return"string"==typeof t?(n=u(X(t,l))).parentNode=l.documentElement:(n=u(t)).parentNode=null,V([n])},G.on=function(t,n,e){var r=arguments.length;if(r<3){if("string"!=typeof t){for(e in r<2&&(n=!1),t)this.each(mt(e,t[e],n));return this}if(r<2)return(r=this.node()["__on"+t])&&r._;e=!1}return this.each(mt(t,n,e))};var xt=o.map({mouseenter:"mouseover",mouseleave:"mouseout"});function bt(t,n){return function(e){var r=o.event;o.event=e,n[0]=this.__data__;try{t.apply(this,n)}finally{o.event=r}}}function wt(t,n){var e=bt(t,n);return function(t){var n=this,r=t.relatedTarget;r&&(r===n||8&r.compareDocumentPosition(n))||e.call(n,t)}}l&&xt.forEach((function(t){"on"+t in l&&xt.remove(t)}));var Mt,St=0;function Et(t){var n=".dragsuppress-"+ ++St,e="click"+n,r=o.select(c(t)).on("touchmove"+n,F).on("dragstart"+n,F).on("selectstart"+n,F);if(null==Mt&&(Mt=!("onselectstart"in t)&&R(t.style,"userSelect")),Mt){var i=s(t).style,a=i[Mt];i[Mt]="none"}return function(t){if(r.on(n,null),Mt&&(i[Mt]=a),t){var o=function(){r.on(e,null)};r.on(e,(function(){F(),o()}),!0),setTimeout(o,0)}}}o.mouse=function(t){return kt(t,$())};var _t=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function kt(t,n){n.changedTouches&&(n=n.changedTouches[0]);var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();if(_t<0){var i=c(t);if(i.scrollX||i.scrollY){var a=(e=o.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();_t=!(a.f||a.e),e.remove()}}return _t?(r.x=n.pageX,r.y=n.pageY):(r.x=n.clientX,r.y=n.clientY),[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var u=t.getBoundingClientRect();return[n.clientX-u.left-t.clientLeft,n.clientY-u.top-t.clientTop]}function Nt(){return o.event.changedTouches[0].identifier}o.touch=function(t,n,e){if(arguments.length<3&&(e=n,n=$().changedTouches),n)for(var r,i=0,o=n.length;i<o;++i)if((r=n[i]).identifier===e)return kt(t,r)},o.behavior.drag=function(){var t=U(i,"drag","dragstart","dragend"),n=null,e=a(z,o.mouse,c,"mousemove","mouseup"),r=a(Nt,o.touch,q,"touchmove","touchend");function i(){this.on("mousedown.drag",e).on("touchstart.drag",r)}function a(e,r,i,a,u){return function(){var l,s=this,c=o.event.target.correspondingElement||o.event.target,f=s.parentNode,h=t.of(s,arguments),p=0,d=e(),g=".drag"+(null==d?"":"-"+d),v=o.select(i(c)).on(a+g,x).on(u+g,b),y=Et(c),m=r(f,d);function x(){var t,n,e=r(f,d);e&&(t=e[0]-m[0],n=e[1]-m[1],p|=t|n,m=e,h({type:"drag",x:e[0]+l[0],y:e[1]+l[1],dx:t,dy:n}))}function b(){r(f,d)&&(v.on(a+g,null).on(u+g,null),y(p),h({type:"dragend"}))}l=n?[(l=n.apply(s,arguments)).x-m[0],l.y-m[1]]:[0,0],h({type:"dragstart"})}}return i.origin=function(t){return arguments.length?(n=t,i):n},o.rebind(i,t,"on")},o.touches=function(t,n){return arguments.length<2&&(n=$().touches),n?u(n).map((function(n){var e=kt(t,n);return e.identifier=n.identifier,e})):[]};var Ct=1e-6,Tt=Ct*Ct,At=Math.PI,Dt=2*At,jt=Dt-Ct,Lt=At/2,qt=At/180,Ot=180/At;function Rt(t){return t>0?1:t<0?-1:0}function Pt(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function zt(t){return t>1?0:t<-1?At:Math.acos(t)}function Ht(t){return t>1?Lt:t<-1?-Lt:Math.asin(t)}function It(t){return((t=Math.exp(t))+1/t)/2}function Ft(t){return(t=Math.sin(t/2))*t}var $t=Math.SQRT2;o.interpolateZoom=function(t,n){var e,r,i=t[0],o=t[1],a=t[2],u=n[0],l=n[1],s=n[2],c=u-i,f=l-o,h=c*c+f*f;if(h<Tt)r=Math.log(s/a)/$t,e=function(t){return[i+t*c,o+t*f,a*Math.exp($t*t*r)]};else{var p=Math.sqrt(h),d=(s*s-a*a+4*h)/(2*a*2*p),g=(s*s-a*a-4*h)/(2*s*2*p),v=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(g*g+1)-g);r=(y-v)/$t,e=function(t){var n,e=t*r,u=It(v),l=a/(2*p)*(u*(n=$t*e+v,((n=Math.exp(2*n))-1)/(n+1))-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[i+l*c,o+l*f,a*u/It($t*e+v)]}}return e.duration=1e3*r,e},o.behavior.zoom=function(){var t,n,e,r,i,a,u,s,f,h={x:0,y:0,k:1},p=[960,500],d=Wt,g=250,v=0,y="mousedown.zoom",m="mousemove.zoom",x="mouseup.zoom",b="touchstart.zoom",w=U(M,"zoomstart","zoom","zoomend");function M(t){t.on(y,D).on(Bt+".zoom",L).on("dblclick.zoom",q).on(b,j)}function S(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function E(t){h.k=Math.max(d[0],Math.min(d[1],t))}function _(t,n){n=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(n),h.x+=t[0]-n[0],h.y+=t[1]-n[1]}function k(t,e,r,i){t.__chart__={x:h.x,y:h.y,k:h.k},E(Math.pow(2,i)),_(n=e,r),t=o.select(t),g>0&&(t=t.transition().duration(g)),t.call(M.event)}function N(){u&&u.domain(a.range().map((function(t){return(t-h.x)/h.k})).map(a.invert)),f&&f.domain(s.range().map((function(t){return(t-h.y)/h.k})).map(s.invert))}function C(t){v++||t({type:"zoomstart"})}function T(t){N(),t({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function A(t){--v||(t({type:"zoomend"}),n=null)}function D(){var t=this,n=w.of(t,arguments),e=0,r=o.select(c(t)).on(m,u).on(x,l),i=S(o.mouse(t)),a=Et(t);function u(){e=1,_(o.mouse(t),i),T(n)}function l(){r.on(m,null).on(x,null),a(e),A(n)}Ou.call(t),C(n)}function j(){var t,n=this,e=w.of(n,arguments),r={},a=0,u=".zoom-"+o.event.changedTouches[0].identifier,l="touchmove"+u,s="touchend"+u,c=[],f=o.select(n),p=Et(n);function d(){var e=o.touches(n);return t=h.k,e.forEach((function(t){t.identifier in r&&(r[t.identifier]=S(t))})),e}function g(){var t=o.event.target;o.select(t).on(l,v).on(s,m),c.push(t);for(var e=o.event.changedTouches,u=0,f=e.length;u<f;++u)r[e[u].identifier]=null;var p=d(),g=Date.now();if(1===p.length){if(g-i<500){var y=p[0];k(n,y,r[y.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),F()}i=g}else if(p.length>1){y=p[0];var x=p[1],b=y[0]-x[0],w=y[1]-x[1];a=b*b+w*w}}function v(){var u,l,s,c,f=o.touches(n);Ou.call(n);for(var h=0,p=f.length;h<p;++h,c=null)if(s=f[h],c=r[s.identifier]){if(l)break;u=s,l=c}if(c){var d=(d=s[0]-u[0])*d+(d=s[1]-u[1])*d,g=a&&Math.sqrt(d/a);u=[(u[0]+s[0])/2,(u[1]+s[1])/2],l=[(l[0]+c[0])/2,(l[1]+c[1])/2],E(g*t)}i=null,_(u,l),T(e)}function m(){if(o.event.touches.length){for(var t=o.event.changedTouches,n=0,i=t.length;n<i;++n)delete r[t[n].identifier];for(var a in r)return void d()}o.selectAll(c).on(u,null),f.on(y,D).on(b,j),p(),A(e)}g(),C(e),f.on(y,null).on(b,g)}function L(){var i=w.of(this,arguments);r?clearTimeout(r):(Ou.call(this),t=S(n=e||o.mouse(this)),C(i)),r=setTimeout((function(){r=null,A(i)}),50),F(),E(Math.pow(2,.002*Ut())*h.k),_(n,t),T(i)}function q(){var t=o.mouse(this),n=Math.log(h.k)/Math.LN2;k(this,t,S(t),o.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}return Bt||(Bt="onwheel"in l?(Ut=function(){return-o.event.deltaY*(o.event.deltaMode?120:1)},"wheel"):"onmousewheel"in l?(Ut=function(){return o.event.wheelDelta},"mousewheel"):(Ut=function(){return-o.event.detail},"MozMousePixelScroll")),M.event=function(t){t.each((function(){var t=w.of(this,arguments),e=h;zu?o.select(this).transition().each("start.zoom",(function(){h=this.__chart__||{x:0,y:0,k:1},C(t)})).tween("zoom:zoom",(function(){var r=p[0],i=p[1],a=n?n[0]:r/2,u=n?n[1]:i/2,l=o.interpolateZoom([(a-h.x)/h.k,(u-h.y)/h.k,r/h.k],[(a-e.x)/e.k,(u-e.y)/e.k,r/e.k]);return function(n){var e=l(n),i=r/e[2];this.__chart__=h={x:a-e[0]*i,y:u-e[1]*i,k:i},T(t)}})).each("interrupt.zoom",(function(){A(t)})).each("end.zoom",(function(){A(t)})):(this.__chart__=h,C(t),T(t),A(t))}))},M.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},N(),M):[h.x,h.y]},M.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},E(+t),N(),M):h.k},M.scaleExtent=function(t){return arguments.length?(d=null==t?Wt:[+t[0],+t[1]],M):d},M.center=function(t){return arguments.length?(e=t&&[+t[0],+t[1]],M):e},M.size=function(t){return arguments.length?(p=t&&[+t[0],+t[1]],M):p},M.duration=function(t){return arguments.length?(g=+t,M):g},M.x=function(t){return arguments.length?(u=t,a=t.copy(),h={x:0,y:0,k:1},M):u},M.y=function(t){return arguments.length?(f=t,s=t.copy(),h={x:0,y:0,k:1},M):f},o.rebind(M,w,"on")};var Ut,Bt,Wt=[0,1/0];function Vt(){}function Yt(t,n,e){return this instanceof Yt?(this.h=+t,this.s=+n,void(this.l=+e)):arguments.length<2?t instanceof Yt?new Yt(t.h,t.s,t.l):gn(""+t,vn,Yt):new Yt(t,n,e)}o.color=Vt,Vt.prototype.toString=function(){return this.rgb()+""},o.hsl=Yt;var Xt=Yt.prototype=new Vt;function Zt(t,n,e){var r,i;function o(t){return Math.round(255*function(t){return t>360?t-=360:t<0&&(t+=360),t<60?r+(i-r)*t/60:t<180?i:t<240?r+(i-r)*(240-t)/60:r}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,n=isNaN(n)||n<0?0:n>1?1:n,r=2*(e=e<0?0:e>1?1:e)-(i=e<=.5?e*(1+n):e+n-e*n),new cn(o(t+120),o(t),o(t-120))}function Gt(t,n,e){return this instanceof Gt?(this.h=+t,this.c=+n,void(this.l=+e)):arguments.length<2?t instanceof Gt?new Gt(t.h,t.c,t.l):an(t instanceof Qt?t.l:(t=yn((t=o.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new Gt(t,n,e)}Xt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Yt(this.h,this.s,this.l/t)},Xt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Yt(this.h,this.s,t*this.l)},Xt.rgb=function(){return Zt(this.h,this.s,this.l)},o.hcl=Gt;var Jt=Gt.prototype=new Vt;function Kt(t,n,e){return isNaN(t)&&(t=0),isNaN(n)&&(n=0),new Qt(e,Math.cos(t*=qt)*n,Math.sin(t)*n)}function Qt(t,n,e){return this instanceof Qt?(this.l=+t,this.a=+n,void(this.b=+e)):arguments.length<2?t instanceof Qt?new Qt(t.l,t.a,t.b):t instanceof Gt?Kt(t.h,t.c,t.l):yn((t=cn(t)).r,t.g,t.b):new Qt(t,n,e)}Jt.brighter=function(t){return new Gt(this.h,this.c,Math.min(100,this.l+tn*(arguments.length?t:1)))},Jt.darker=function(t){return new Gt(this.h,this.c,Math.max(0,this.l-tn*(arguments.length?t:1)))},Jt.rgb=function(){return Kt(this.h,this.c,this.l).rgb()},o.lab=Qt;var tn=18,nn=.95047,en=1.08883,rn=Qt.prototype=new Vt;function on(t,n,e){var r=(t+16)/116,i=r+n/500,o=r-e/200;return new cn(sn(3.2404542*(i=un(i)*nn)-1.5371385*(r=1*un(r))-.4985314*(o=un(o)*en)),sn(-.969266*i+1.8760108*r+.041556*o),sn(.0556434*i-.2040259*r+1.0572252*o))}function an(t,n,e){return t>0?new Gt(Math.atan2(e,n)*Ot,Math.sqrt(n*n+e*e),t):new Gt(NaN,NaN,t)}function un(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function ln(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function sn(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function cn(t,n,e){return this instanceof cn?(this.r=~~t,this.g=~~n,void(this.b=~~e)):arguments.length<2?t instanceof cn?new cn(t.r,t.g,t.b):gn(""+t,cn,Zt):new cn(t,n,e)}function fn(t){return new cn(t>>16,t>>8&255,255&t)}function hn(t){return fn(t)+""}rn.brighter=function(t){return new Qt(Math.min(100,this.l+tn*(arguments.length?t:1)),this.a,this.b)},rn.darker=function(t){return new Qt(Math.max(0,this.l-tn*(arguments.length?t:1)),this.a,this.b)},rn.rgb=function(){return on(this.l,this.a,this.b)},o.rgb=cn;var pn=cn.prototype=new Vt;function dn(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function gn(t,n,e){var r,i,o,a=0,u=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return e(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return n(xn(i[0]),xn(i[1]),xn(i[2]))}return(o=bn.get(t))?n(o.r,o.g,o.b):(null==t||"#"!==t.charAt(0)||isNaN(o=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&o)>>4,a|=a>>4,u=240&o,u|=u>>4,l=15&o,l|=l<<4):7===t.length&&(a=(16711680&o)>>16,u=(65280&o)>>8,l=255&o)),n(a,u,l))}function vn(t,n,e){var r,i,o=Math.min(t/=255,n/=255,e/=255),a=Math.max(t,n,e),u=a-o,l=(a+o)/2;return u?(i=l<.5?u/(a+o):u/(2-a-o),r=t==a?(n-e)/u+(n<e?6:0):n==a?(e-t)/u+2:(t-n)/u+4,r*=60):(r=NaN,i=l>0&&l<1?0:r),new Yt(r,i,l)}function yn(t,n,e){var r=ln((.4124564*(t=mn(t))+.3575761*(n=mn(n))+.1804375*(e=mn(e)))/nn),i=ln((.2126729*t+.7151522*n+.072175*e)/1);return Qt(116*i-16,500*(r-i),200*(i-ln((.0193339*t+.119192*n+.9503041*e)/en)))}function mn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xn(t){var n=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*n):n}pn.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var n=this.r,e=this.g,r=this.b,i=30;return n||e||r?(n&&n<i&&(n=i),e&&e<i&&(e=i),r&&r<i&&(r=i),new cn(Math.min(255,n/t),Math.min(255,e/t),Math.min(255,r/t))):new cn(i,i,i)},pn.darker=function(t){return new cn((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},pn.hsl=function(){return vn(this.r,this.g,this.b)},pn.toString=function(){return"#"+dn(this.r)+dn(this.g)+dn(this.b)};var bn=o.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function wn(t){return"function"==typeof t?t:function(){return t}}function Mn(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Sn(n,e,t,r)}}function Sn(t,n,e,r){var i={},a=o.dispatch("beforesend","progress","load","error"),l={},s=new XMLHttpRequest,c=null;function f(){var t,n=s.status;if(!n&&function(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}(s)||n>=200&&n<300||304===n){try{t=e.call(i,s)}catch(t){return void a.error.call(i,t)}a.load.call(i,t)}else a.error.call(i,s)}return this.XDomainRequest&&!("withCredentials"in s)&&/^(http(s)?:)?\/\//.test(t)&&(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=f:s.onreadystatechange=function(){s.readyState>3&&f()},s.onprogress=function(t){var n=o.event;o.event=t;try{a.progress.call(i,s)}finally{o.event=n}},i.header=function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?l[t]:(null==n?delete l[t]:l[t]=n+"",i)},i.mimeType=function(t){return arguments.length?(n=null==t?null:t+"",i):n},i.responseType=function(t){return arguments.length?(c=t,i):c},i.response=function(t){return e=t,i},["get","post"].forEach((function(t){i[t]=function(){return i.send.apply(i,[t].concat(u(arguments)))}})),i.send=function(e,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),s.open(e,t,!0),null==n||"accept"in l||(l.accept=n+",*/*"),s.setRequestHeader)for(var u in l)s.setRequestHeader(u,l[u]);return null!=n&&s.overrideMimeType&&s.overrideMimeType(n),null!=c&&(s.responseType=c),null!=o&&i.on("error",o).on("load",(function(t){o(null,t)})),a.beforesend.call(i,s),s.send(null==r?null:r),i},i.abort=function(){return s.abort(),i},o.rebind(i,a,"on"),null==r?i:i.get(function(t){return 1===t.length?function(n,e){t(null==n?e:null)}:t}(r))}bn.forEach((function(t,n){bn.set(t,fn(n))})),o.functor=wn,o.xhr=Mn(q),o.dsv=function(t,n){var e=new RegExp('["'+t+"\n]"),r=t.charCodeAt(0);function i(t,e,r){arguments.length<3&&(r=e,e=null);var i=Sn(t,n,null==e?o:a(e),r);return i.row=function(t){return arguments.length?i.response(null==(e=t)?o:a(t)):e},i}function o(t){return i.parse(t.responseText)}function a(t){return function(n){return i.parse(n.responseText,t)}}function u(n){return n.map(l).join(t)}function l(t){return e.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}return i.parse=function(t,n){var e;return i.parseRows(t,(function(t,r){if(e)return e(t,r-1);var i=new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+"]"})).join(",")+"}");e=n?function(t,e){return n(i(t),e)}:i}))},i.parseRows=function(t,n){var e,i,o={},a={},u=[],l=t.length,s=0,c=0;function f(){if(s>=l)return a;if(i)return i=!1,o;var n=s;if(34===t.charCodeAt(n)){for(var e=n;e++<l;)if(34===t.charCodeAt(e)){if(34!==t.charCodeAt(e+1))break;++e}return s=e+2,13===(u=t.charCodeAt(e+1))?(i=!0,10===t.charCodeAt(e+2)&&++s):10===u&&(i=!0),t.slice(n+1,e).replace(/""/g,'"')}for(;s<l;){var u,c=1;if(10===(u=t.charCodeAt(s++)))i=!0;else if(13===u)i=!0,10===t.charCodeAt(s)&&(++s,++c);else if(u!==r)continue;return t.slice(n,s-c)}return t.slice(n)}for(;(e=f())!==a;){for(var h=[];e!==o&&e!==a;)h.push(e),e=f();n&&null==(h=n(h,c++))||u.push(h)}return u},i.format=function(n){if(Array.isArray(n[0]))return i.formatRows(n);var e=new L,r=[];return n.forEach((function(t){for(var n in t)e.has(n)||r.push(e.add(n))})),[r.map(l).join(t)].concat(n.map((function(n){return r.map((function(t){return l(n[t])})).join(t)}))).join("\n")},i.formatRows=function(t){return t.map(u).join("\n")},i},o.csv=o.dsv(",","text/csv"),o.tsv=o.dsv("\t","text/tab-separated-values");var En,_n,kn,Nn,Cn=this[R(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};function Tn(t,n,e){var r=arguments.length;r<2&&(n=0),r<3&&(e=Date.now());var i=e+n,o={c:t,t:i,n:null};return _n?_n.n=o:En=o,_n=o,kn||(Nn=clearTimeout(Nn),kn=1,Cn(An)),o}function An(){var t=Dn(),n=jn()-t;n>24?(isFinite(n)&&(clearTimeout(Nn),Nn=setTimeout(An,n)),kn=0):(kn=1,Cn(An))}function Dn(){for(var t=Date.now(),n=En;n;)t>=n.t&&n.c(t-n.t)&&(n.c=null),n=n.n;return t}function jn(){for(var t,n=En,e=1/0;n;)n.c?(n.t<e&&(e=n.t),n=(t=n).n):n=t?t.n=n.n:En=n.n;return _n=t,e}function Ln(t,n){return n-(t?Math.ceil(Math.log(t)/Math.LN10):1)}o.timer=function(){Tn.apply(this,arguments)},o.timer.flush=function(){Dn(),jn()},o.round=function(t,n){return n?Math.round(t*(n=Math.pow(10,n)))/n:Math.round(t)};var qn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map((function(t,n){var e=Math.pow(10,3*M(8-n));return{scale:n>8?function(t){return t/e}:function(t){return t*e},symbol:t}}));function On(t){var n=t.decimal,e=t.thousands,r=t.grouping,i=t.currency,a=r&&e?function(t,n){for(var i=t.length,o=[],a=0,u=r[0],l=0;i>0&&u>0&&(l+u+1>n&&(u=Math.max(1,n-l)),o.push(t.substring(i-=u,i+u)),!((l+=u+1)>n));)u=r[a=(a+1)%r.length];return o.reverse().join(e)}:q;return function(t){var e=Rn.exec(t),r=e[1]||" ",u=e[2]||">",l=e[3]||"-",s=e[4]||"",c=e[5],f=+e[6],h=e[7],p=e[8],d=e[9],g=1,v="",y="",m=!1,x=!0;switch(p&&(p=+p.substring(1)),(c||"0"===r&&"="===u)&&(c=r="0",u="="),d){case"n":h=!0,d="g";break;case"%":g=100,y="%",d="f";break;case"p":g=100,y="%",d="r";break;case"b":case"o":case"x":case"X":"#"===s&&(v="0"+d.toLowerCase());case"c":x=!1;case"d":m=!0,p=0;break;case"s":g=-1,d="r"}"$"===s&&(v=i[0],y=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=Pn.get(d)||zn;var b=c&&h;return function(t){var e=y;if(m&&t%1)return"";var i=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===l?"":l;if(g<0){var s=o.formatPrefix(t,p);t=s.scale(t),e=s.symbol+y}else t*=g;var w,M,S=(t=d(t,p)).lastIndexOf(".");if(S<0){var E=x?t.lastIndexOf("e"):-1;E<0?(w=t,M=""):(w=t.substring(0,E),M=t.substring(E))}else w=t.substring(0,S),M=n+t.substring(S+1);!c&&h&&(w=a(w,1/0));var _=v.length+w.length+M.length+(b?0:i.length),k=_<f?new Array(_=f-_+1).join(r):"";return b&&(w=a(k+w,k.length?f-M.length:1/0)),i+=v,t=w+M,("<"===u?i+t+k:">"===u?k+i+t:"^"===u?k.substring(0,_>>=1)+i+t+k.substring(_):i+(b?t:k+t))+e}}}o.formatPrefix=function(t,n){var e=0;return(t=+t)&&(t<0&&(t*=-1),n&&(t=o.round(t,Ln(t,n))),e=1+Math.floor(1e-12+Math.log(t)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),qn[8+e/3]};var Rn=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Pn=o.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,n){return t.toPrecision(n)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},r:function(t,n){return(t=o.round(t,Ln(t,n))).toFixed(Math.max(0,Math.min(20,Ln(t*(1+1e-15),n))))}});function zn(t){return t+""}var Hn=o.time={},In=Date;function Fn(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Fn.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(){$n.setUTCDate.apply(this._,arguments)},setDay:function(){$n.setUTCDay.apply(this._,arguments)},setFullYear:function(){$n.setUTCFullYear.apply(this._,arguments)},setHours:function(){$n.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){$n.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){$n.setUTCMinutes.apply(this._,arguments)},setMonth:function(){$n.setUTCMonth.apply(this._,arguments)},setSeconds:function(){$n.setUTCSeconds.apply(this._,arguments)},setTime:function(){$n.setTime.apply(this._,arguments)}};var $n=Date.prototype;function Un(t,n,e){function r(n){var e=t(n),r=o(e,1);return n-e<r-n?e:r}function i(e){return n(e=t(new In(e-1)),1),e}function o(t,e){return n(t=new In(+t),e),t}function a(t,r,o){var a=i(t),u=[];if(o>1)for(;a<r;)e(a)%o||u.push(new Date(+a)),n(a,1);else for(;a<r;)u.push(new Date(+a)),n(a,1);return u}t.floor=t,t.round=r,t.ceil=i,t.offset=o,t.range=a;var u=t.utc=Bn(t);return u.floor=u,u.round=Bn(r),u.ceil=Bn(i),u.offset=Bn(o),u.range=function(t,n,e){try{In=Fn;var r=new Fn;return r._=t,a(r,n,e)}finally{In=Date}},t}function Bn(t){return function(n,e){try{In=Fn;var r=new Fn;return r._=n,t(r,e)._}finally{In=Date}}}function Wn(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,a=t.days,u=t.shortDays,l=t.months,s=t.shortMonths;function c(t){var n=t.length;function e(e){for(var r,i,o,a=[],u=-1,l=0;++u<n;)37===t.charCodeAt(u)&&(a.push(t.slice(l,u)),null!=(i=Vn[r=t.charAt(++u)])&&(r=t.charAt(++u)),(o=w[r])&&(r=o(e,null==i?"e"===r?" ":"0":i)),a.push(r),l=u+1);return a.push(t.slice(l,u)),a.join("")}return e.parse=function(n){var e={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(e,t,n,0)!=n.length)return null;"p"in e&&(e.H=e.H%12+12*e.p);var r=null!=e.Z&&In!==Fn,i=new(r?Fn:In);return"j"in e?i.setFullYear(e.y,0,e.j):"W"in e||"U"in e?("w"in e||(e.w="W"in e?1:0),i.setFullYear(e.y,0,1),i.setFullYear(e.y,0,"W"in e?(e.w+6)%7+7*e.W-(i.getDay()+5)%7:e.w+7*e.U-(i.getDay()+6)%7)):i.setFullYear(e.y,e.m,e.d),i.setHours(e.H+(e.Z/100|0),e.M+e.Z%100,e.S,e.L),r?i._:i},e.toString=function(){return t},e}function f(t,n,e,r){for(var i,o,a,u=0,l=n.length,s=e.length;u<l;){if(r>=s)return-1;if(37===(i=n.charCodeAt(u++))){if(a=n.charAt(u++),!(o=M[a in Vn?n.charAt(u++):a])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}c.utc=function(t){var n=c(t);function e(t){try{var e=new(In=Fn);return e._=t,n(e)}finally{In=Date}}return e.parse=function(t){try{In=Fn;var e=n.parse(t);return e&&e._}finally{In=Date}},e.toString=n.toString,e},c.multi=c.utc.multi=pe;var h=o.map(),p=Gn(a),d=Jn(a),g=Gn(u),v=Jn(u),y=Gn(l),m=Jn(l),x=Gn(s),b=Jn(s);i.forEach((function(t,n){h.set(t.toLowerCase(),n)}));var w={a:function(t){return u[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:c(n),d:function(t,n){return Zn(t.getDate(),n,2)},e:function(t,n){return Zn(t.getDate(),n,2)},H:function(t,n){return Zn(t.getHours(),n,2)},I:function(t,n){return Zn(t.getHours()%12||12,n,2)},j:function(t,n){return Zn(1+Hn.dayOfYear(t),n,3)},L:function(t,n){return Zn(t.getMilliseconds(),n,3)},m:function(t,n){return Zn(t.getMonth()+1,n,2)},M:function(t,n){return Zn(t.getMinutes(),n,2)},p:function(t){return i[+(t.getHours()>=12)]},S:function(t,n){return Zn(t.getSeconds(),n,2)},U:function(t,n){return Zn(Hn.sundayOfYear(t),n,2)},w:function(t){return t.getDay()},W:function(t,n){return Zn(Hn.mondayOfYear(t),n,2)},x:c(e),X:c(r),y:function(t,n){return Zn(t.getFullYear()%100,n,2)},Y:function(t,n){return Zn(t.getFullYear()%1e4,n,4)},Z:fe,"%":function(){return"%"}},M={a:function(t,n,e){g.lastIndex=0;var r=g.exec(n.slice(e));return r?(t.w=v.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){p.lastIndex=0;var r=p.exec(n.slice(e));return r?(t.w=d.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){x.lastIndex=0;var r=x.exec(n.slice(e));return r?(t.m=b.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){y.lastIndex=0;var r=y.exec(n.slice(e));return r?(t.m=m.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,n,e){return f(t,w.c.toString(),n,e)},d:oe,e:oe,H:ue,I:ue,j:ae,L:ce,m:ie,M:le,p:function(t,n,e){var r=h.get(n.slice(e,e+=2).toLowerCase());return null==r?-1:(t.p=r,e)},S:se,U:Qn,w:Kn,W:te,x:function(t,n,e){return f(t,w.x.toString(),n,e)},X:function(t,n,e){return f(t,w.X.toString(),n,e)},y:ee,Y:ne,Z:re,"%":he};return c}Hn.year=Un((function(t){return(t=Hn.day(t)).setMonth(0,1),t}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t){return t.getFullYear()})),Hn.years=Hn.year.range,Hn.years.utc=Hn.year.utc.range,Hn.day=Un((function(t){var n=new In(2e3,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t){return t.getDate()-1})),Hn.days=Hn.day.range,Hn.days.utc=Hn.day.utc.range,Hn.dayOfYear=function(t){var n=Hn.year(t);return Math.floor((t-n-6e4*(t.getTimezoneOffset()-n.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(t,n){n=7-n;var e=Hn[t]=Un((function(t){return(t=Hn.day(t)).setDate(t.getDate()-(t.getDay()+n)%7),t}),(function(t,n){t.setDate(t.getDate()+7*Math.floor(n))}),(function(t){var e=Hn.year(t).getDay();return Math.floor((Hn.dayOfYear(t)+(e+n)%7)/7)-(e!==n)}));Hn[t+"s"]=e.range,Hn[t+"s"].utc=e.utc.range,Hn[t+"OfYear"]=function(t){var e=Hn.year(t).getDay();return Math.floor((Hn.dayOfYear(t)+(e+n)%7)/7)}})),Hn.week=Hn.sunday,Hn.weeks=Hn.sunday.range,Hn.weeks.utc=Hn.sunday.utc.range,Hn.weekOfYear=Hn.sundayOfYear;var Vn={"-":"",_:" ",0:"0"},Yn=/^\s*\d+/,Xn=/^%/;function Zn(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function Gn(t){return new RegExp("^(?:"+t.map(o.requote).join("|")+")","i")}function Jn(t){for(var n=new _,e=-1,r=t.length;++e<r;)n.set(t[e].toLowerCase(),e);return n}function Kn(t,n,e){Yn.lastIndex=0;var r=Yn.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Qn(t,n,e){Yn.lastIndex=0;var r=Yn.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function te(t,n,e){Yn.lastIndex=0;var r=Yn.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function ne(t,n,e){Yn.lastIndex=0;var r=Yn.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function ee(t,n,e){Yn.lastIndex=0;var r,i=Yn.exec(n.slice(e,e+2));return i?(t.y=(r=+i[0])+(r>68?1900:2e3),e+i[0].length):-1}function re(t,n,e){return/^[+-]\d{4}$/.test(n=n.slice(e,e+5))?(t.Z=-n,e+5):-1}function ie(t,n,e){Yn.lastIndex=0;var r=Yn.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function oe(t,n,e){Yn.lastIndex=0;var r=Yn.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function ae(t,n,e){Yn.lastIndex=0;var r=Yn.exec(n.slice(e,e+3));return r?(t.j=+r[0],e+r[0].length):-1}function ue(t,n,e){Yn.lastIndex=0;var r=Yn.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function le(t,n,e){Yn.lastIndex=0;var r=Yn.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function se(t,n,e){Yn.lastIndex=0;var r=Yn.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function ce(t,n,e){Yn.lastIndex=0;var r=Yn.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function fe(t){var n=t.getTimezoneOffset(),e=n>0?"-":"+",r=M(n)/60|0,i=M(n)%60;return e+Zn(r,"0",2)+Zn(i,"0",2)}function he(t,n,e){Xn.lastIndex=0;var r=Xn.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function pe(t){for(var n=t.length,e=-1;++e<n;)t[e][0]=this(t[e][0]);return function(n){for(var e=0,r=t[e];!r[1](n);)r=t[++e];return r[0](n)}}o.locale=function(t){return{numberFormat:On(t),timeFormat:Wn(t)}};var de=o.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ge(){}o.format=de.numberFormat,o.geo={},ge.prototype={s:0,t:0,add:function(t){ye(t,this.t,ve),ye(ve.s,this.s,this),this.s?this.t+=ve.t:this.s=ve.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var ve=new ge;function ye(t,n,e){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}function me(t,n){t&&be.hasOwnProperty(t.type)&&be[t.type](t,n)}o.geo.stream=function(t,n){t&&xe.hasOwnProperty(t.type)?xe[t.type](t,n):me(t,n)};var xe={Feature:function(t,n){me(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)me(e[r].geometry,n)}},be={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){we(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)we(e[r],n,0)},Polygon:function(t,n){Me(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Me(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)me(e[r],n)}};function we(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function Me(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)we(t[e],n,1);n.polygonEnd()}o.geo.area=function(t){return Se=0,o.geo.stream(t,Re),Se};var Se,Ee,_e,ke,Ne,Ce,Te,Ae,De,je,Le,qe,Oe=new ge,Re={sphere:function(){Se+=4*At},point:z,lineStart:z,lineEnd:z,polygonStart:function(){Oe.reset(),Re.lineStart=Pe},polygonEnd:function(){var t=2*Oe;Se+=t<0?4*At+t:t,Re.lineStart=Re.lineEnd=Re.point=z}};function Pe(){var t,n,e,r,i;function o(t,n){n=n*qt/2+At/4;var o=(t*=qt)-e,a=o>=0?1:-1,u=a*o,l=Math.cos(n),s=Math.sin(n),c=i*s,f=r*l+c*Math.cos(u),h=c*a*Math.sin(u);Oe.add(Math.atan2(h,f)),e=t,r=l,i=s}Re.point=function(a,u){Re.point=o,e=(t=a)*qt,r=Math.cos(u=(n=u)*qt/2+At/4),i=Math.sin(u)},Re.lineEnd=function(){o(t,n)}}function ze(t){var n=t[0],e=t[1],r=Math.cos(e);return[r*Math.cos(n),r*Math.sin(n),Math.sin(e)]}function He(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Ie(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Fe(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function $e(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Ue(t){var n=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function Be(t){return[Math.atan2(t[1],t[0]),Ht(t[2])]}function We(t,n){return M(t[0]-n[0])<Ct&&M(t[1]-n[1])<Ct}o.geo.bounds=function(){var t,n,e,r,i,a,u,l,s,c,f,h={point:p,lineStart:g,lineEnd:v,polygonStart:function(){h.point=y,h.lineStart=m,h.lineEnd=x,s=0,Re.polygonStart()},polygonEnd:function(){Re.polygonEnd(),h.point=p,h.lineStart=g,h.lineEnd=v,Oe<0?(t=-(e=180),n=-(r=90)):s>Ct?r=90:s<-Ct&&(n=-90),f[0]=t,f[1]=e}};function p(i,o){c.push(f=[t=i,e=i]),o<n&&(n=o),o>r&&(r=o)}function d(o,a){var u=ze([o*qt,a*qt]);if(l){var s=Ie(l,u),c=Ie([s[1],-s[0],0],s);Ue(c),c=Be(c);var f=o-i,h=f>0?1:-1,d=c[0]*Ot*h,g=M(f)>180;if(g^(h*i<d&&d<h*o))(v=c[1]*Ot)>r&&(r=v);else if(g^(h*i<(d=(d+360)%360-180)&&d<h*o)){var v;(v=-c[1]*Ot)<n&&(n=v)}else a<n&&(n=a),a>r&&(r=a);g?o<i?b(t,o)>b(t,e)&&(e=o):b(o,e)>b(t,e)&&(t=o):e>=t?(o<t&&(t=o),o>e&&(e=o)):o>i?b(t,o)>b(t,e)&&(e=o):b(o,e)>b(t,e)&&(t=o)}else p(o,a);l=u,i=o}function g(){h.point=d}function v(){f[0]=t,f[1]=e,h.point=p,l=null}function y(t,n){if(l){var e=t-i;s+=M(e)>180?e+(e>0?360:-360):e}else a=t,u=n;Re.point(t,n),d(t,n)}function m(){Re.lineStart()}function x(){y(a,u),Re.lineEnd(),M(s)>Ct&&(t=-(e=180)),f[0]=t,f[1]=e,l=null}function b(t,n){return(n-=t)<0?n+360:n}function w(t,n){return t[0]-n[0]}function S(t,n){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}return function(i){if(r=e=-(t=n=1/0),c=[],o.geo.stream(i,h),s=c.length){c.sort(w);for(var a=1,u=[g=c[0]];a<s;++a)S((p=c[a])[0],g)||S(p[1],g)?(b(g[0],p[1])>b(g[0],g[1])&&(g[1]=p[1]),b(p[0],g[1])>b(g[0],g[1])&&(g[0]=p[0])):u.push(g=p);for(var l,s,p,d=-1/0,g=(a=0,u[s=u.length-1]);a<=s;g=p,++a)p=u[a],(l=b(g[1],p[0]))>d&&(d=l,t=p[0],e=g[1])}return c=f=null,t===1/0||n===1/0?[[NaN,NaN],[NaN,NaN]]:[[t,n],[e,r]]}}(),o.geo.centroid=function(t){Ee=_e=ke=Ne=Ce=Te=Ae=De=je=Le=qe=0,o.geo.stream(t,Ve);var n=je,e=Le,r=qe,i=n*n+e*e+r*r;return i<Tt&&(n=Te,e=Ae,r=De,_e<Ct&&(n=ke,e=Ne,r=Ce),(i=n*n+e*e+r*r)<Tt)?[NaN,NaN]:[Math.atan2(e,n)*Ot,Ht(r/Math.sqrt(i))*Ot]};var Ve={sphere:z,point:Ye,lineStart:Ze,lineEnd:Ge,polygonStart:function(){Ve.lineStart=Je},polygonEnd:function(){Ve.lineStart=Ze}};function Ye(t,n){t*=qt;var e=Math.cos(n*=qt);Xe(e*Math.cos(t),e*Math.sin(t),Math.sin(n))}function Xe(t,n,e){++Ee,ke+=(t-ke)/Ee,Ne+=(n-Ne)/Ee,Ce+=(e-Ce)/Ee}function Ze(){var t,n,e;function r(r,i){r*=qt;var o=Math.cos(i*=qt),a=o*Math.cos(r),u=o*Math.sin(r),l=Math.sin(i),s=Math.atan2(Math.sqrt((s=n*l-e*u)*s+(s=e*a-t*l)*s+(s=t*u-n*a)*s),t*a+n*u+e*l);_e+=s,Te+=s*(t+(t=a)),Ae+=s*(n+(n=u)),De+=s*(e+(e=l)),Xe(t,n,e)}Ve.point=function(i,o){i*=qt;var a=Math.cos(o*=qt);t=a*Math.cos(i),n=a*Math.sin(i),e=Math.sin(o),Ve.point=r,Xe(t,n,e)}}function Ge(){Ve.point=Ye}function Je(){var t,n,e,r,i;function o(t,n){t*=qt;var o=Math.cos(n*=qt),a=o*Math.cos(t),u=o*Math.sin(t),l=Math.sin(n),s=r*l-i*u,c=i*a-e*l,f=e*u-r*a,h=Math.sqrt(s*s+c*c+f*f),p=e*a+r*u+i*l,d=h&&-zt(p)/h,g=Math.atan2(h,p);je+=d*s,Le+=d*c,qe+=d*f,_e+=g,Te+=g*(e+(e=a)),Ae+=g*(r+(r=u)),De+=g*(i+(i=l)),Xe(e,r,i)}Ve.point=function(a,u){t=a,n=u,Ve.point=o,a*=qt;var l=Math.cos(u*=qt);e=l*Math.cos(a),r=l*Math.sin(a),i=Math.sin(u),Xe(e,r,i)},Ve.lineEnd=function(){o(t,n),Ve.lineEnd=Ge,Ve.point=Ye}}function Ke(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e}function Qe(){return!0}function tr(t,n,e,r,i){var o=[],a=[];if(t.forEach((function(t){if(!((n=t.length-1)<=0)){var n,e=t[0],r=t[n];if(We(e,r)){i.lineStart();for(var u=0;u<n;++u)i.point((e=t[u])[0],e[1]);i.lineEnd()}else{var l=new er(e,t,null,!0),s=new er(e,null,l,!1);l.o=s,o.push(l),a.push(s),l=new er(r,t,null,!1),s=new er(r,null,l,!0),l.o=s,o.push(l),a.push(s)}}})),a.sort(n),nr(o),nr(a),o.length){for(var u=0,l=e,s=a.length;u<s;++u)a[u].e=l=!l;for(var c,f,h=o[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;c=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(u=0,s=c.length;u<s;++u)i.point((f=c[u])[0],f[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(d)for(u=(c=p.p.z).length-1;u>=0;--u)i.point((f=c[u])[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 nr(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function er(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function rr(t,n,e,r){return function(i,a){var u,l=n(a),s=i.invert(r[0],r[1]),c={point:f,lineStart:p,lineEnd:d,polygonStart:function(){c.point=b,c.lineStart=w,c.lineEnd=M,u=[],g=[]},polygonEnd:function(){c.point=f,c.lineStart=p,c.lineEnd=d,u=o.merge(u);var t=function(t,n){var e=t[0],r=t[1],i=[Math.sin(e),-Math.cos(e),0],o=0,a=0;Oe.reset();for(var u=0,l=n.length;u<l;++u){var s=n[u],c=s.length;if(c)for(var f=s[0],h=f[0],p=f[1]/2+At/4,d=Math.sin(p),g=Math.cos(p),v=1;;){v===c&&(v=0);var y=(t=s[v])[0],m=t[1]/2+At/4,x=Math.sin(m),b=Math.cos(m),w=y-h,M=w>=0?1:-1,S=M*w,E=S>At,_=d*x;if(Oe.add(Math.atan2(_*M*Math.sin(S),g*b+_*Math.cos(S))),o+=E?w+M*Dt:w,E^h>=e^y>=e){var k=Ie(ze(f),ze(t));Ue(k);var N=Ie(i,k);Ue(N);var C=(E^w>=0?-1:1)*Ht(N[2]);(r>C||r===C&&(k[0]||k[1]))&&(a+=E^w>=0?1:-1)}if(!v++)break;h=y,d=x,g=b,f=t}}return(o<-Ct||o<Ct&&Oe<-Ct)^1&a}(s,g);u.length?(x||(a.polygonStart(),x=!0),tr(u,ar,t,e,a)):t&&(x||(a.polygonStart(),x=!0),a.lineStart(),e(null,null,1,a),a.lineEnd()),x&&(a.polygonEnd(),x=!1),u=g=null},sphere:function(){a.polygonStart(),a.lineStart(),e(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function f(n,e){var r=i(n,e);t(n=r[0],e=r[1])&&a.point(n,e)}function h(t,n){var e=i(t,n);l.point(e[0],e[1])}function p(){c.point=h,l.lineStart()}function d(){c.point=f,l.lineEnd()}var g,v,y=or(),m=n(y),x=!1;function b(t,n){v.push([t,n]);var e=i(t,n);m.point(e[0],e[1])}function w(){m.lineStart(),v=[]}function M(){b(v[0][0],v[0][1]),m.lineEnd();var t,n=m.clean(),e=y.buffer(),r=e.length;if(v.pop(),g.push(v),v=null,r)if(1&n){var i,o=-1;if((r=(t=e[0]).length-1)>0){for(x||(a.polygonStart(),x=!0),a.lineStart();++o<r;)a.point((i=t[o])[0],i[1]);a.lineEnd()}}else r>1&&2&n&&e.push(e.pop().concat(e.shift())),u.push(e.filter(ir))}return c}}function ir(t){return t.length>1}function or(){var t,n=[];return{lineStart:function(){n.push(t=[])},point:function(n,e){t.push([n,e])},lineEnd:z,buffer:function(){var e=n;return n=[],t=null,e},rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))}}}function ar(t,n){return((t=t.x)[0]<0?t[1]-Lt-Ct:Lt-t[1])-((n=n.x)[0]<0?n[1]-Lt-Ct:Lt-n[1])}var ur=rr(Qe,(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,a){var u=o>0?At:-At,l=M(o-e);M(l-At)<Ct?(t.point(e,r=(r+a)/2>0?Lt:-Lt),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),n=0):i!==u&&l>=At&&(M(e-i)<Ct&&(e-=i*Ct),M(o-u)<Ct&&(o-=u*Ct),r=function(t,n,e,r){var i,o,a=Math.sin(t-e);return M(a)>Ct?Math.atan((Math.sin(n)*(o=Math.cos(r))*Math.sin(e)-Math.sin(r)*(i=Math.cos(n))*Math.sin(t))/(i*o*a)):(n+r)/2}(e,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=o,r=a),i=u},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*Lt,r.point(-At,i),r.point(0,i),r.point(At,i),r.point(At,0),r.point(At,-i),r.point(0,-i),r.point(-At,-i),r.point(-At,0),r.point(-At,i);else if(M(t[0]-n[0])>Ct){var o=t[0]<n[0]?At:-At;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}),[-At,-At/2]);function lr(t){var n=Math.cos(t),e=n>0,r=M(n)>Ct;return rr(i,(function(t){var n,u,l,s,c;return{lineStart:function(){s=l=!1,c=1},point:function(f,h){var p,d=[f,h],g=i(f,h),v=e?g?0:a(f,h):g?a(f+(f<0?At:-At),h):0;if(!n&&(s=l=g)&&t.lineStart(),g!==l&&(p=o(n,d),(We(n,p)||We(d,p))&&(d[0]+=Ct,d[1]+=Ct,g=i(d[0],d[1]))),g!==l)c=0,g?(t.lineStart(),p=o(d,n),t.point(p[0],p[1])):(p=o(n,d),t.point(p[0],p[1]),t.lineEnd()),n=p;else if(r&&n&&e^g){var y;v&u||!(y=o(d,n,!0))||(c=0,e?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||n&&We(n,d)||t.point(d[0],d[1]),n=d,l=g,u=v},lineEnd:function(){l&&t.lineEnd(),n=null},clean:function(){return c|(s&&l)<<1}}}),Wr(t,6*qt),e?[0,-t]:[-At,t-At]);function i(t,e){return Math.cos(t)*Math.cos(e)>n}function o(t,e,r){var i=[1,0,0],o=Ie(ze(t),ze(e)),a=He(o,o),u=o[0],l=a-u*u;if(!l)return!r&&t;var s=n*a/l,c=-n*u/l,f=Ie(i,o),h=$e(i,s);Fe(h,$e(o,c));var p=f,d=He(h,p),g=He(p,p),v=d*d-g*(He(h,h)-1);if(!(v<0)){var y=Math.sqrt(v),m=$e(p,(-d-y)/g);if(Fe(m,h),m=Be(m),!r)return m;var x,b=t[0],w=e[0],S=t[1],E=e[1];w<b&&(x=b,b=w,w=x);var _=w-b,k=M(_-At)<Ct;if(!k&&E<S&&(x=S,S=E,E=x),k||_<Ct?k?S+E>0^m[1]<(M(m[0]-b)<Ct?S:E):S<=m[1]&&m[1]<=E:_>At^(b<=m[0]&&m[0]<=w)){var N=$e(p,(-d+y)/g);return Fe(N,h),[m,Be(N)]}}}function a(n,r){var i=e?t:At-t,o=0;return n<-i?o|=1:n>i&&(o|=2),r<-i?o|=4:r>i&&(o|=8),o}}function sr(t,n,e,r){return function(i){var o,a=i.a,u=i.b,l=a.x,s=a.y,c=0,f=1,h=u.x-l,p=u.y-s;if(o=t-l,h||!(o>0)){if(o/=h,h<0){if(o<c)return;o<f&&(f=o)}else if(h>0){if(o>f)return;o>c&&(c=o)}if(o=e-l,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>c&&(c=o)}else if(h>0){if(o<c)return;o<f&&(f=o)}if(o=n-s,p||!(o>0)){if(o/=p,p<0){if(o<c)return;o<f&&(f=o)}else if(p>0){if(o>f)return;o>c&&(c=o)}if(o=r-s,p||!(o<0)){if(o/=p,p<0){if(o>f)return;o>c&&(c=o)}else if(p>0){if(o<c)return;o<f&&(f=o)}return c>0&&(i.a={x:l+c*h,y:s+c*p}),f<1&&(i.b={x:l+f*h,y:s+f*p}),i}}}}}}var cr=1e9;function fr(t,n,e,r){return function(l){var s,c,f,h,p,d,g,v,y,m,x,b=l,w=or(),M=sr(t,n,e,r),S={point:k,lineStart:function(){S.point=N,c&&c.push(f=[]),m=!0,y=!1,g=v=NaN},lineEnd:function(){s&&(N(h,p),d&&y&&w.rejoin(),s.push(w.buffer())),S.point=k,y&&l.lineEnd()},polygonStart:function(){l=w,s=[],c=[],x=!0},polygonEnd:function(){l=b,s=o.merge(s);var n=function(t){for(var n=0,e=c.length,r=t[1],i=0;i<e;++i)for(var o,a=1,u=c[i],l=u.length,s=u[0];a<l;++a)o=u[a],s[1]<=r?o[1]>r&&Pt(s,o,t)>0&&++n:o[1]<=r&&Pt(s,o,t)<0&&--n,s=o;return 0!==n}([t,r]),e=x&&n,i=s.length;(e||i)&&(l.polygonStart(),e&&(l.lineStart(),E(null,null,1,l),l.lineEnd()),i&&tr(s,a,n,E,l),l.polygonEnd()),s=c=f=null}};function E(o,a,l,s){var c=0,f=0;if(null==o||(c=i(o,l))!==(f=i(a,l))||u(o,a)<0^l>0)do{s.point(0===c||3===c?t:e,c>1?r:n)}while((c=(c+l+4)%4)!==f);else s.point(a[0],a[1])}function _(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function k(t,n){_(t,n)&&l.point(t,n)}function N(t,n){var e=_(t=Math.max(-1e9,Math.min(cr,t)),n=Math.max(-1e9,Math.min(cr,n)));if(c&&f.push([t,n]),m)h=t,p=n,d=e,m=!1,e&&(l.lineStart(),l.point(t,n));else if(e&&y)l.point(t,n);else{var r={a:{x:g,y:v},b:{x:t,y:n}};M(r)?(y||(l.lineStart(),l.point(r.a.x,r.a.y)),l.point(r.b.x,r.b.y),e||l.lineEnd(),x=!1):e&&(l.lineStart(),l.point(t,n),x=!1)}g=t,v=n,y=e}return S};function i(r,i){return M(r[0]-t)<Ct?i>0?0:3:M(r[0]-e)<Ct?i>0?2:1:M(r[1]-n)<Ct?i>0?1:0:i>0?3:2}function a(t,n){return u(t.x,n.x)}function u(t,n){var e=i(t,1),r=i(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}}function hr(t){var n=0,e=At/3,r=Pr(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*At/180,e=t[1]*At/180):[n/At*180,e/At*180]},i}function pr(t,n){var e=Math.sin(t),r=(e+Math.sin(n))/2,i=1+e*(2*r-e),o=Math.sqrt(i)/r;function a(t,n){var e=Math.sqrt(i-2*r*Math.sin(n))/r;return[e*Math.sin(t*=r),o-e*Math.cos(t)]}return a.invert=function(t,n){var e=o-n;return[Math.atan2(t,e)/r,Ht((i-(t*t+e*e)*r*r)/(2*r))]},a}o.geo.clipExtent=function(){var t,n,e,r,i,o,a={stream:function(t){return i&&(i.valid=!1),(i=o(t)).valid=!0,i},extent:function(u){return arguments.length?(o=fr(t=+u[0][0],n=+u[0][1],e=+u[1][0],r=+u[1][1]),i&&(i.valid=!1,i=null),a):[[t,n],[e,r]]}};return a.extent([[0,0],[960,500]])},(o.geo.conicEqualArea=function(){return hr(pr)}).raw=pr,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 t,n,e,r,i=o.geo.albers(),a=o.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=o.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(n,e){t=[n,e]}};function s(i){var o=i[0],a=i[1];return t=null,n(o,a),t||(e(o,a),t)||r(o,a),t}return s.invert=function(t){var n=i.scale(),e=i.translate(),r=(t[0]-e[0])/n,o=(t[1]-e[1])/n;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?u:i).invert(t)},s.stream=function(t){var n=i.stream(t),e=a.stream(t),r=u.stream(t);return{point:function(t,i){n.point(t,i),e.point(t,i),r.point(t,i)},sphere:function(){n.sphere(),e.sphere(),r.sphere()},lineStart:function(){n.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){n.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){n.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){n.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},s.precision=function(t){return arguments.length?(i.precision(t),a.precision(t),u.precision(t),s):i.precision()},s.scale=function(t){return arguments.length?(i.scale(t),a.scale(.35*t),u.scale(t),s.translate(i.translate())):i.scale()},s.translate=function(t){if(!arguments.length)return i.translate();var o=i.scale(),c=+t[0],f=+t[1];return n=i.translate(t).clipExtent([[c-.455*o,f-.238*o],[c+.455*o,f+.238*o]]).stream(l).point,e=a.translate([c-.307*o,f+.201*o]).clipExtent([[c-.425*o+Ct,f+.12*o+Ct],[c-.214*o-Ct,f+.234*o-Ct]]).stream(l).point,r=u.translate([c-.205*o,f+.212*o]).clipExtent([[c-.214*o+Ct,f+.166*o+Ct],[c-.115*o-Ct,f+.234*o-Ct]]).stream(l).point,s},s.scale(1070)};var dr,gr,vr,yr,mr,xr,br={point:z,lineStart:z,lineEnd:z,polygonStart:function(){gr=0,br.lineStart=wr},polygonEnd:function(){br.lineStart=br.lineEnd=br.point=z,dr+=M(gr/2)}};function wr(){var t,n,e,r;function i(t,n){gr+=r*t-e*n,e=t,r=n}br.point=function(o,a){br.point=i,t=e=o,n=r=a},br.lineEnd=function(){i(t,n)}}var Mr={point:function(t,n){t<vr&&(vr=t),t>mr&&(mr=t),n<yr&&(yr=n),n>xr&&(xr=n)},lineStart:z,lineEnd:z,polygonStart:z,polygonEnd:z};function Sr(){var t=Er(4.5),n=[],e={point:r,lineStart:function(){e.point=i},lineEnd:a,polygonStart:function(){e.lineEnd=u},polygonEnd:function(){e.lineEnd=a,e.point=r},pointRadius:function(n){return t=Er(n),e},result:function(){if(n.length){var t=n.join("");return n=[],t}}};function r(e,r){n.push("M",e,",",r,t)}function i(t,r){n.push("M",t,",",r),e.point=o}function o(t,e){n.push("L",t,",",e)}function a(){e.point=r}function u(){n.push("Z")}return e}function Er(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}var _r,kr={point:Nr,lineStart:Cr,lineEnd:Tr,polygonStart:function(){kr.lineStart=Ar},polygonEnd:function(){kr.point=Nr,kr.lineStart=Cr,kr.lineEnd=Tr}};function Nr(t,n){ke+=t,Ne+=n,++Ce}function Cr(){var t,n;function e(e,r){var i=e-t,o=r-n,a=Math.sqrt(i*i+o*o);Te+=a*(t+e)/2,Ae+=a*(n+r)/2,De+=a,Nr(t=e,n=r)}kr.point=function(r,i){kr.point=e,Nr(t=r,n=i)}}function Tr(){kr.point=Nr}function Ar(){var t,n,e,r;function i(t,n){var i=t-e,o=n-r,a=Math.sqrt(i*i+o*o);Te+=a*(e+t)/2,Ae+=a*(r+n)/2,De+=a,je+=(a=r*t-e*n)*(e+t),Le+=a*(r+n),qe+=3*a,Nr(e=t,r=n)}kr.point=function(o,a){kr.point=i,Nr(t=e=o,n=r=a)},kr.lineEnd=function(){i(t,n)}}function Dr(t){var n=4.5,e={point:r,lineStart:function(){e.point=i},lineEnd:a,polygonStart:function(){e.lineEnd=u},polygonEnd:function(){e.lineEnd=a,e.point=r},pointRadius:function(t){return n=t,e},result:z};function r(e,r){t.moveTo(e+n,r),t.arc(e,r,n,0,Dt)}function i(n,r){t.moveTo(n,r),e.point=o}function o(n,e){t.lineTo(n,e)}function a(){e.point=r}function u(){t.closePath()}return e}function jr(t){var n=.5,e=Math.cos(30*qt),r=16;function i(t){return(r?a:o)(t)}function o(n){return Or(n,(function(e,r){e=t(e,r),n.point(e[0],e[1])}))}function a(n){var e,i,o,a,l,s,c,f,h,p,d,g,v={point:y,lineStart:m,lineEnd:b,polygonStart:function(){n.polygonStart(),v.lineStart=w},polygonEnd:function(){n.polygonEnd(),v.lineStart=m}};function y(e,r){e=t(e,r),n.point(e[0],e[1])}function m(){f=NaN,v.point=x,n.lineStart()}function x(e,i){var o=ze([e,i]),a=t(e,i);u(f,h,c,p,d,g,f=a[0],h=a[1],c=e,p=o[0],d=o[1],g=o[2],r,n),n.point(f,h)}function b(){v.point=y,n.lineEnd()}function w(){m(),v.point=M,v.lineEnd=S}function M(t,n){x(e=t,n),i=f,o=h,a=p,l=d,s=g,v.point=x}function S(){u(f,h,c,p,d,g,i,o,e,a,l,s,r,n),v.lineEnd=b,b()}return v}function u(r,i,o,a,l,s,c,f,h,p,d,g,v,y){var m=c-r,x=f-i,b=m*m+x*x;if(b>4*n&&v--){var w=a+p,S=l+d,E=s+g,_=Math.sqrt(w*w+S*S+E*E),k=Math.asin(E/=_),N=M(M(E)-1)<Ct||M(o-h)<Ct?(o+h)/2:Math.atan2(S,w),C=t(N,k),T=C[0],A=C[1],D=T-r,j=A-i,L=x*D-m*j;(L*L/b>n||M((m*D+x*j)/b-.5)>.3||a*p+l*d+s*g<e)&&(u(r,i,o,a,l,s,T,A,N,w/=_,S/=_,E,v,y),y.point(T,A),u(T,A,N,w,S,E,c,f,h,p,d,g,v,y))}}return i.precision=function(t){return arguments.length?(r=(n=t*t)>0&&16,i):Math.sqrt(n)},i}function Lr(t){var n=jr((function(n,e){return t([n*Ot,e*Ot])}));return function(t){return zr(n(t))}}function qr(t){this.stream=t}function Or(t,n){return{point:n,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function Rr(t){return Pr((function(){return t}))()}function Pr(t){var n,e,r,i,a,u,l=jr((function(t,e){return[(t=n(t,e))[0]*s+i,a-t[1]*s]})),s=150,c=480,f=250,h=0,p=0,d=0,g=0,v=0,y=ur,m=q,x=null,b=null;function w(t){return[(t=r(t[0]*qt,t[1]*qt))[0]*s+i,a-t[1]*s]}function M(t){return(t=r.invert((t[0]-i)/s,(a-t[1])/s))&&[t[0]*Ot,t[1]*Ot]}function S(){r=Ke(e=Fr(d,g,v),n);var t=n(h,p);return i=c-t[0]*s,a=f+t[1]*s,E()}function E(){return u&&(u.valid=!1,u=null),w}return w.stream=function(t){return u&&(u.valid=!1),(u=zr(y(e,l(m(t))))).valid=!0,u},w.clipAngle=function(t){return arguments.length?(y=null==t?(x=t,ur):lr((x=+t)*qt),E()):x},w.clipExtent=function(t){return arguments.length?(b=t,m=t?fr(t[0][0],t[0][1],t[1][0],t[1][1]):q,E()):b},w.scale=function(t){return arguments.length?(s=+t,S()):s},w.translate=function(t){return arguments.length?(c=+t[0],f=+t[1],S()):[c,f]},w.center=function(t){return arguments.length?(h=t[0]%360*qt,p=t[1]%360*qt,S()):[h*Ot,p*Ot]},w.rotate=function(t){return arguments.length?(d=t[0]%360*qt,g=t[1]%360*qt,v=t.length>2?t[2]%360*qt:0,S()):[d*Ot,g*Ot,v*Ot]},o.rebind(w,l,"precision"),function(){return n=t.apply(this,arguments),w.invert=n.invert&&M,S()}}function zr(t){return Or(t,(function(n,e){t.point(n*qt,e*qt)}))}function Hr(t,n){return[t,n]}function Ir(t,n){return[t>At?t-Dt:t<-At?t+Dt:t,n]}function Fr(t,n,e){return t?n||e?Ke(Ur(t),Br(n,e)):Ur(t):n||e?Br(n,e):Ir}function $r(t){return function(n,e){return[(n+=t)>At?n-Dt:n<-At?n+Dt:n,e]}}function Ur(t){var n=$r(t);return n.invert=$r(-t),n}function Br(t,n){var e=Math.cos(t),r=Math.sin(t),i=Math.cos(n),o=Math.sin(n);function a(t,n){var a=Math.cos(n),u=Math.cos(t)*a,l=Math.sin(t)*a,s=Math.sin(n),c=s*e+u*r;return[Math.atan2(l*i-c*o,u*e-s*r),Ht(c*i+l*o)]}return a.invert=function(t,n){var a=Math.cos(n),u=Math.cos(t)*a,l=Math.sin(t)*a,s=Math.sin(n),c=s*i-l*o;return[Math.atan2(l*i+s*o,u*e+c*r),Ht(c*e-u*r)]},a}function Wr(t,n){var e=Math.cos(t),r=Math.sin(t);return function(i,o,a,u){var l=a*n;null!=i?(i=Vr(e,i),o=Vr(e,o),(a>0?i<o:i>o)&&(i+=a*Dt)):(i=t+a*Dt,o=t-.5*l);for(var s,c=i;a>0?c>o:c<o;c-=l)u.point((s=Be([e,-r*Math.cos(c),-r*Math.sin(c)]))[0],s[1])}}function Vr(t,n){var e=ze(n);e[0]-=t,Ue(e);var r=zt(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Ct)%(2*Math.PI)}function Yr(t,n,e){var r=o.range(t,n-Ct,e).concat(n);return function(t){return r.map((function(n){return[t,n]}))}}function Xr(t,n,e){var r=o.range(t,n-Ct,e).concat(n);return function(t){return r.map((function(n){return[n,t]}))}}function Zr(t){return t.source}function Gr(t){return t.target}o.geo.path=function(){var t,n,e,r,i,a=4.5;function u(t){return t&&("function"==typeof a&&r.pointRadius(+a.apply(this,arguments)),i&&i.valid||(i=e(r)),o.geo.stream(t,i)),r.result()}function l(){return i=null,u}return u.area=function(t){return dr=0,o.geo.stream(t,e(br)),dr},u.centroid=function(t){return ke=Ne=Ce=Te=Ae=De=je=Le=qe=0,o.geo.stream(t,e(kr)),qe?[je/qe,Le/qe]:De?[Te/De,Ae/De]:Ce?[ke/Ce,Ne/Ce]:[NaN,NaN]},u.bounds=function(t){return mr=xr=-(vr=yr=1/0),o.geo.stream(t,e(Mr)),[[vr,yr],[mr,xr]]},u.projection=function(n){return arguments.length?(e=(t=n)?n.stream||Lr(n):q,l()):t},u.context=function(t){return arguments.length?(r=null==(n=t)?new Sr:new Dr(t),"function"!=typeof a&&r.pointRadius(a),l()):n},u.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(r.pointRadius(+t),+t),u):a},u.projection(o.geo.albersUsa()).context(null)},o.geo.transform=function(t){return{stream:function(n){var e=new qr(n);for(var r in t)e[r]=t[r];return e}}},qr.prototype={point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},o.geo.projection=Rr,o.geo.projectionMutator=Pr,(o.geo.equirectangular=function(){return Rr(Hr)}).raw=Hr.invert=Hr,o.geo.rotation=function(t){function n(n){return(n=t(n[0]*qt,n[1]*qt))[0]*=Ot,n[1]*=Ot,n}return t=Fr(t[0]%360*qt,t[1]*qt,t.length>2?t[2]*qt:0),n.invert=function(n){return(n=t.invert(n[0]*qt,n[1]*qt))[0]*=Ot,n[1]*=Ot,n},n},Ir.invert=Hr,o.geo.circle=function(){var t,n,e=[0,0],r=6;function i(){var t="function"==typeof e?e.apply(this,arguments):e,r=Fr(-t[0]*qt,-t[1]*qt,0).invert,i=[];return n(null,null,1,{point:function(t,n){i.push(t=r(t,n)),t[0]*=Ot,t[1]*=Ot}}),{type:"Polygon",coordinates:[i]}}return i.origin=function(t){return arguments.length?(e=t,i):e},i.angle=function(e){return arguments.length?(n=Wr((t=+e)*qt,r*qt),i):t},i.precision=function(e){return arguments.length?(n=Wr(t*qt,(r=+e)*qt),i):r},i.angle(90)},o.geo.distance=function(t,n){var e,r=(n[0]-t[0])*qt,i=t[1]*qt,o=n[1]*qt,a=Math.sin(r),u=Math.cos(r),l=Math.sin(i),s=Math.cos(i),c=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((e=f*a)*e+(e=s*c-l*f*u)*e),l*c+s*f*u)},o.geo.graticule=function(){var t,n,e,r,i,a,u,l,s,c,f,h,p=10,d=p,g=90,v=360,y=2.5;function m(){return{type:"MultiLineString",coordinates:x()}}function x(){return o.range(Math.ceil(r/g)*g,e,g).map(f).concat(o.range(Math.ceil(l/v)*v,u,v).map(h)).concat(o.range(Math.ceil(n/p)*p,t,p).filter((function(t){return M(t%g)>Ct})).map(s)).concat(o.range(Math.ceil(a/d)*d,i,d).filter((function(t){return M(t%v)>Ct})).map(c))}return m.lines=function(){return x().map((function(t){return{type:"LineString",coordinates:t}}))},m.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(h(u).slice(1),f(e).reverse().slice(1),h(l).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.majorExtent(t).minorExtent(t):m.minorExtent()},m.majorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],l=+t[0][1],u=+t[1][1],r>e&&(t=r,r=e,e=t),l>u&&(t=l,l=u,u=t),m.precision(y)):[[r,l],[e,u]]},m.minorExtent=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],a=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),a>i&&(e=a,a=i,i=e),m.precision(y)):[[n,a],[t,i]]},m.step=function(t){return arguments.length?m.majorStep(t).minorStep(t):m.minorStep()},m.majorStep=function(t){return arguments.length?(g=+t[0],v=+t[1],m):[g,v]},m.minorStep=function(t){return arguments.length?(p=+t[0],d=+t[1],m):[p,d]},m.precision=function(o){return arguments.length?(y=+o,s=Yr(a,i,90),c=Xr(n,t,y),f=Yr(l,u,90),h=Xr(r,e,y),m):y},m.majorExtent([[-180,-90+Ct],[180,90-Ct]]).minorExtent([[-180,-80-Ct],[180,80+Ct]])},o.geo.greatArc=function(){var t,n,e=Zr,r=Gr;function i(){return{type:"LineString",coordinates:[t||e.apply(this,arguments),n||r.apply(this,arguments)]}}return i.distance=function(){return o.geo.distance(t||e.apply(this,arguments),n||r.apply(this,arguments))},i.source=function(n){return arguments.length?(e=n,t="function"==typeof n?null:n,i):e},i.target=function(t){return arguments.length?(r=t,n="function"==typeof t?null:t,i):r},i.precision=function(){return arguments.length?i:0},i},o.geo.interpolate=function(t,n){return e=t[0]*qt,r=t[1]*qt,i=n[0]*qt,o=n[1]*qt,a=Math.cos(r),u=Math.sin(r),l=Math.cos(o),s=Math.sin(o),c=a*Math.cos(e),f=a*Math.sin(e),h=l*Math.cos(i),p=l*Math.sin(i),d=2*Math.asin(Math.sqrt(Ft(o-r)+a*l*Ft(i-e))),g=1/Math.sin(d),(v=d?function(t){var n=Math.sin(t*=d)*g,e=Math.sin(d-t)*g,r=e*c+n*h,i=e*f+n*p,o=e*u+n*s;return[Math.atan2(i,r)*Ot,Math.atan2(o,Math.sqrt(r*r+i*i))*Ot]}:function(){return[e*Ot,r*Ot]}).distance=d,v;var e,r,i,o,a,u,l,s,c,f,h,p,d,g,v},o.geo.length=function(t){return _r=0,o.geo.stream(t,Jr),_r};var Jr={sphere:z,point:z,lineStart:function(){var t,n,e;function r(r,i){var o=Math.sin(i*=qt),a=Math.cos(i),u=M((r*=qt)-t),l=Math.cos(u);_r+=Math.atan2(Math.sqrt((u=a*Math.sin(u))*u+(u=e*o-n*a*l)*u),n*o+e*a*l),t=r,n=o,e=a}Jr.point=function(i,o){t=i*qt,n=Math.sin(o*=qt),e=Math.cos(o),Jr.point=r},Jr.lineEnd=function(){Jr.point=Jr.lineEnd=z}},lineEnd:z,polygonStart:z,polygonEnd:z};function Kr(t,n){function e(n,e){var r=Math.cos(n),i=Math.cos(e),o=t(r*i);return[o*i*Math.sin(n),o*Math.sin(e)]}return e.invert=function(t,e){var r=Math.sqrt(t*t+e*e),i=n(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(t*o,r*a),Math.asin(r&&e*o/r)]},e}var Qr=Kr((function(t){return Math.sqrt(2/(1+t))}),(function(t){return 2*Math.asin(t/2)}));(o.geo.azimuthalEqualArea=function(){return Rr(Qr)}).raw=Qr;var ti=Kr((function(t){var n=Math.acos(t);return n&&n/Math.sin(n)}),q);function ni(t,n){var e=Math.cos(t),r=function(t){return Math.tan(At/4+t/2)},i=t===n?Math.sin(t):Math.log(e/Math.cos(n))/Math.log(r(n)/r(t)),o=e*Math.pow(r(t),i)/i;if(!i)return ii;function a(t,n){o>0?n<-Lt+Ct&&(n=-Lt+Ct):n>Lt-Ct&&(n=Lt-Ct);var e=o/Math.pow(r(n),i);return[e*Math.sin(i*t),o-e*Math.cos(i*t)]}return a.invert=function(t,n){var e=o-n,r=Rt(i)*Math.sqrt(t*t+e*e);return[Math.atan2(t,e)/i,2*Math.atan(Math.pow(o/r,1/i))-Lt]},a}function ei(t,n){var e=Math.cos(t),r=t===n?Math.sin(t):(e-Math.cos(n))/(n-t),i=e/r+t;if(M(r)<Ct)return Hr;function o(t,n){var e=i-n;return[e*Math.sin(r*t),i-e*Math.cos(r*t)]}return o.invert=function(t,n){var e=i-n;return[Math.atan2(t,e)/r,i-Rt(r)*Math.sqrt(t*t+e*e)]},o}(o.geo.azimuthalEquidistant=function(){return Rr(ti)}).raw=ti,(o.geo.conicConformal=function(){return hr(ni)}).raw=ni,(o.geo.conicEquidistant=function(){return hr(ei)}).raw=ei;var ri=Kr((function(t){return 1/t}),Math.atan);function ii(t,n){return[t,Math.log(Math.tan(At/4+n/2))]}function oi(t){var n,e=Rr(t),r=e.scale,i=e.translate,o=e.clipExtent;return e.scale=function(){var t=r.apply(e,arguments);return t===e?n?e.clipExtent(null):e:t},e.translate=function(){var t=i.apply(e,arguments);return t===e?n?e.clipExtent(null):e:t},e.clipExtent=function(t){var a=o.apply(e,arguments);if(a===e){if(n=null==t){var u=At*r(),l=i();o([[l[0]-u,l[1]-u],[l[0]+u,l[1]+u]])}}else n&&(a=null);return a},e.clipExtent(null)}(o.geo.gnomonic=function(){return Rr(ri)}).raw=ri,ii.invert=function(t,n){return[t,2*Math.atan(Math.exp(n))-Lt]},(o.geo.mercator=function(){return oi(ii)}).raw=ii;var ai=Kr((function(){return 1}),Math.asin);(o.geo.orthographic=function(){return Rr(ai)}).raw=ai;var ui=Kr((function(t){return 1/(1+t)}),(function(t){return 2*Math.atan(t)}));function li(t,n){return[Math.log(Math.tan(At/4+n/2)),-t]}function si(t){return t[0]}function ci(t){return t[1]}function fi(t){for(var n=t.length,e=[0,1],r=2,i=2;i<n;i++){for(;r>1&&Pt(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function hi(t,n){return t[0]-n[0]||t[1]-n[1]}(o.geo.stereographic=function(){return Rr(ui)}).raw=ui,li.invert=function(t,n){return[-n,2*Math.atan(Math.exp(t))-Lt]},(o.geo.transverseMercator=function(){var t=oi(li),n=t.center,e=t.rotate;return t.center=function(t){return t?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return t?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90])}).raw=li,o.geom={},o.geom.hull=function(t){var n=si,e=ci;if(arguments.length)return r(t);function r(t){if(t.length<3)return[];var r,i=wn(n),o=wn(e),a=t.length,u=[],l=[];for(r=0;r<a;r++)u.push([+i.call(this,t[r],r),+o.call(this,t[r],r),r]);for(u.sort(hi),r=0;r<a;r++)l.push([u[r][0],-u[r][1]]);var s=fi(u),c=fi(l),f=c[0]===s[0],h=c[c.length-1]===s[s.length-1],p=[];for(r=s.length-1;r>=0;--r)p.push(t[u[s[r]][2]]);for(r=+f;r<c.length-h;++r)p.push(t[u[c[r]][2]]);return p}return r.x=function(t){return arguments.length?(n=t,r):n},r.y=function(t){return arguments.length?(e=t,r):e},r},o.geom.polygon=function(t){return W(t,pi),t};var pi=o.geom.polygon.prototype=[];function di(t,n,e){return(e[0]-n[0])*(t[1]-n[1])<(e[1]-n[1])*(t[0]-n[0])}function gi(t,n,e,r){var i=t[0],o=e[0],a=n[0]-i,u=r[0]-o,l=t[1],s=e[1],c=n[1]-l,f=r[1]-s,h=(u*(l-s)-f*(i-o))/(f*a-u*c);return[i+h*a,l+h*c]}function vi(t){var n=t[0],e=t[t.length-1];return!(n[0]-e[0]||n[1]-e[1])}pi.area=function(){for(var t,n=-1,e=this.length,r=this[e-1],i=0;++n<e;)t=r,r=this[n],i+=t[1]*r[0]-t[0]*r[1];return.5*i},pi.centroid=function(t){var n,e,r=-1,i=this.length,o=0,a=0,u=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)n=u,u=this[r],e=n[0]*u[1]-u[0]*n[1],o+=(n[0]+u[0])*e,a+=(n[1]+u[1])*e;return[o*t,a*t]},pi.clip=function(t){for(var n,e,r,i,o,a,u=vi(t),l=-1,s=this.length-vi(this),c=this[s-1];++l<s;){for(n=t.slice(),t.length=0,i=this[l],o=n[(r=n.length-u)-1],e=-1;++e<r;)di(a=n[e],c,i)?(di(o,c,i)||t.push(gi(o,a,c,i)),t.push(a)):di(o,c,i)&&t.push(gi(o,a,c,i)),o=a;u&&t.push(t[0]),c=i}return t};var yi,mi,xi,bi,wi,Mi=[],Si=[];function Ei(){$i(this),this.edge=this.site=this.circle=null}function _i(t){var n=Mi.pop()||new Ei;return n.site=t,n}function ki(t){Oi(t),xi.remove(t),Mi.push(t),$i(t)}function Ni(t){var n=t.circle,e=n.x,r=n.cy,i={x:e,y:r},o=t.P,a=t.N,u=[t];ki(t);for(var l=o;l.circle&&M(e-l.circle.x)<Ct&&M(r-l.circle.cy)<Ct;)o=l.P,u.unshift(l),ki(l),l=o;u.unshift(l),Oi(l);for(var s=a;s.circle&&M(e-s.circle.x)<Ct&&M(r-s.circle.cy)<Ct;)a=s.N,u.push(s),ki(s),s=a;u.push(s),Oi(s);var c,f=u.length;for(c=1;c<f;++c)s=u[c],l=u[c-1],Hi(s.edge,l.site,s.site,i);l=u[0],(s=u[f-1]).edge=zi(l.site,s.site,null,i),qi(l),qi(s)}function Ci(t){for(var n,e,r,i,o=t.x,a=t.y,u=xi._;u;)if((r=Ti(u,a)-o)>Ct)u=u.L;else{if(!((i=o-Ai(u,a))>Ct)){r>-Ct?(n=u.P,e=u):i>-Ct?(n=u,e=u.N):n=e=u;break}if(!u.R){n=u;break}u=u.R}var l=_i(t);if(xi.insert(n,l),n||e){if(n===e)return Oi(n),e=_i(n.site),xi.insert(l,e),l.edge=e.edge=zi(n.site,l.site),qi(n),void qi(e);if(e){Oi(n),Oi(e);var s=n.site,c=s.x,f=s.y,h=t.x-c,p=t.y-f,d=e.site,g=d.x-c,v=d.y-f,y=2*(h*v-p*g),m=h*h+p*p,x=g*g+v*v,b={x:(v*m-p*x)/y+c,y:(h*x-g*m)/y+f};Hi(e.edge,s,d,b),l.edge=zi(s,t,null,b),e.edge=zi(t,d,null,b),qi(n),qi(e)}else l.edge=zi(n.site,l.site)}}function Ti(t,n){var e=t.site,r=e.x,i=e.y,o=i-n;if(!o)return r;var a=t.P;if(!a)return-1/0;var u=(e=a.site).x,l=e.y,s=l-n;if(!s)return u;var c=u-r,f=1/o-1/s,h=c/s;return f?(-h+Math.sqrt(h*h-2*f*(c*c/(-2*s)-l+s/2+i-o/2)))/f+r:(r+u)/2}function Ai(t,n){var e=t.N;if(e)return Ti(e,n);var r=t.site;return r.y===n?r.x:1/0}function Di(t){this.site=t,this.edges=[]}function ji(t,n){return n.angle-t.angle}function Li(){$i(this),this.x=this.y=this.arc=this.site=this.cy=null}function qi(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var a=i.x,u=i.y,l=r.x-a,s=r.y-u,c=o.x-a,f=2*(l*(v=o.y-u)-s*c);if(!(f>=-Tt)){var h=l*l+s*s,p=c*c+v*v,d=(v*h-s*p)/f,g=(l*p-c*h)/f,v=g+u,y=Si.pop()||new Li;y.arc=t,y.site=i,y.x=d+a,y.y=v+Math.sqrt(d*d+g*g),y.cy=v,t.circle=y;for(var m=null,x=wi._;x;)if(y.y<x.y||y.y===x.y&&y.x<=x.x){if(!x.L){m=x.P;break}x=x.L}else{if(!x.R){m=x;break}x=x.R}wi.insert(m,y),m||(bi=y)}}}}function Oi(t){var n=t.circle;n&&(n.P||(bi=n.N),wi.remove(n),Si.push(n),$i(n),t.circle=null)}function Ri(t,n){var e=t.b;if(e)return!0;var r,i,o=t.a,a=n[0][0],u=n[1][0],l=n[0][1],s=n[1][1],c=t.l,f=t.r,h=c.x,p=c.y,d=f.x,g=f.y,v=(h+d)/2,y=(p+g)/2;if(g===p){if(v<a||v>=u)return;if(h>d){if(o){if(o.y>=s)return}else o={x:v,y:l};e={x:v,y:s}}else{if(o){if(o.y<l)return}else o={x:v,y:s};e={x:v,y:l}}}else if(i=y-(r=(h-d)/(g-p))*v,r<-1||r>1)if(h>d){if(o){if(o.y>=s)return}else o={x:(l-i)/r,y:l};e={x:(s-i)/r,y:s}}else{if(o){if(o.y<l)return}else o={x:(s-i)/r,y:s};e={x:(l-i)/r,y:l}}else if(p<g){if(o){if(o.x>=u)return}else o={x:a,y:r*a+i};e={x:u,y:r*u+i}}else{if(o){if(o.x<a)return}else o={x:u,y:r*u+i};e={x:a,y:r*a+i}}return t.a=o,t.b=e,!0}function Pi(t,n){this.l=t,this.r=n,this.a=this.b=null}function zi(t,n,e,r){var i=new Pi(t,n);return yi.push(i),e&&Hi(i,t,n,e),r&&Hi(i,n,t,r),mi[t.i].edges.push(new Ii(i,t,n)),mi[n.i].edges.push(new Ii(i,n,t)),i}function Hi(t,n,e,r){t.a||t.b?t.l===e?t.b=r:t.a=r:(t.a=r,t.l=n,t.r=e)}function Ii(t,n,e){var r=t.a,i=t.b;this.edge=t,this.site=n,this.angle=e?Math.atan2(e.y-n.y,e.x-n.x):t.l===n?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function Fi(){this._=null}function $i(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Ui(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function Bi(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function Wi(t){for(;t.L;)t=t.L;return t}function Vi(t,n){var e,r,i,o=t.sort(Yi).pop();for(yi=[],mi=new Array(t.length),xi=new Fi,wi=new Fi;;)if(i=bi,o&&(!i||o.y<i.y||o.y===i.y&&o.x<i.x))o.x===e&&o.y===r||(mi[o.i]=new Di(o),Ci(o),e=o.x,r=o.y),o=t.pop();else{if(!i)break;Ni(i.arc)}n&&(function(t){for(var n,e=yi,r=sr(t[0][0],t[0][1],t[1][0],t[1][1]),i=e.length;i--;)(!Ri(n=e[i],t)||!r(n)||M(n.a.x-n.b.x)<Ct&&M(n.a.y-n.b.y)<Ct)&&(n.a=n.b=null,e.splice(i,1))}(n),function(t){for(var n,e,r,i,o,a,u,l,s,c,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],g=mi,v=g.length;v--;)if((o=g[v])&&o.prepare())for(l=(u=o.edges).length,a=0;a<l;)r=(c=u[a].end()).x,i=c.y,n=(s=u[++a%l].start()).x,e=s.y,(M(r-n)>Ct||M(i-e)>Ct)&&(u.splice(a,0,new Ii((y=o.site,m=c,x=M(r-f)<Ct&&d-i>Ct?{x:f,y:M(n-f)<Ct?e:d}:M(i-d)<Ct&&h-r>Ct?{x:M(e-d)<Ct?n:h,y:d}:M(r-h)<Ct&&i-p>Ct?{x:h,y:M(n-h)<Ct?e:p}:M(i-p)<Ct&&r-f>Ct?{x:M(e-p)<Ct?n:f,y:p}:null,b=void 0,(b=new Pi(y,null)).a=m,b.b=x,yi.push(b),b),o.site,null)),++l);var y,m,x,b}(n));var a={cells:mi,edges:yi};return xi=wi=yi=mi=null,a}function Yi(t,n){return n.y-t.y||n.x-t.x}Di.prototype.prepare=function(){for(var t,n=this.edges,e=n.length;e--;)(t=n[e].edge).b&&t.a||n.splice(e,1);return n.sort(ji),n.length},Ii.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Fi.prototype={insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=Wi(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(Ui(this,e),e=(t=e).U),e.C=!1,r.C=!0,Bi(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(Bi(this,e),e=(t=e).U),e.C=!1,r.C=!0,Ui(this,r)),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,o=t.L,a=t.R;if(e=o?a?Wi(a):o:a,i?i.L===t?i.L=e:i.R=e:this._=e,o&&a?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==a?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=a,a.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,Ui(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,Bi(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,Ui(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,Bi(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,Ui(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,Bi(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},o.geom.voronoi=function(t){var n=si,e=ci,r=n,i=e,o=Xi;if(t)return a(t);function a(t){var n=new Array(t.length),e=o[0][0],r=o[0][1],i=o[1][0],a=o[1][1];return Vi(u(t),o).cells.forEach((function(o,u){var l=o.edges,s=o.site;(n[u]=l.length?l.map((function(t){var n=t.start();return[n.x,n.y]})):s.x>=e&&s.x<=i&&s.y>=r&&s.y<=a?[[e,a],[i,a],[i,r],[e,r]]:[]).point=t[u]})),n}function u(t){return t.map((function(t,n){return{x:Math.round(r(t,n)/Ct)*Ct,y:Math.round(i(t,n)/Ct)*Ct,i:n}}))}return a.links=function(t){return Vi(u(t)).edges.filter((function(t){return t.l&&t.r})).map((function(n){return{source:t[n.l.i],target:t[n.r.i]}}))},a.triangles=function(t){var n=[];return Vi(u(t)).cells.forEach((function(e,r){for(var i,o,a,u,l=e.site,s=e.edges.sort(ji),c=-1,f=s.length,h=s[f-1].edge,p=h.l===l?h.r:h.l;++c<f;)i=p,p=(h=s[c].edge).l===l?h.r:h.l,r<i.i&&r<p.i&&(a=i,u=p,((o=l).x-u.x)*(a.y-o.y)-(o.x-a.x)*(u.y-o.y)<0)&&n.push([t[r],t[i.i],t[p.i]])})),n},a.x=function(t){return arguments.length?(r=wn(n=t),a):n},a.y=function(t){return arguments.length?(i=wn(e=t),a):e},a.clipExtent=function(t){return arguments.length?(o=null==t?Xi:t,a):o===Xi?null:o},a.size=function(t){return arguments.length?a.clipExtent(t&&[[0,0],t]):o===Xi?null:o&&o[1]},a};var Xi=[[-1e6,-1e6],[1e6,1e6]];function Zi(t){return t.x}function Gi(t){return t.y}function Ji(t,n,e,r,i,o){if(!t(n,e,r,i,o)){var a=.5*(e+i),u=.5*(r+o),l=n.nodes;l[0]&&Ji(t,l[0],e,r,a,u),l[1]&&Ji(t,l[1],a,r,i,u),l[2]&&Ji(t,l[2],e,u,a,o),l[3]&&Ji(t,l[3],a,u,i,o)}}function Ki(t,n,e,r,i,o,a){var u,l=1/0;return function t(s,c,f,h,p){if(!(c>o||f>a||h<r||p<i)){if(d=s.point){var d,g=n-s.x,v=e-s.y,y=g*g+v*v;if(y<l){var m=Math.sqrt(l=y);r=n-m,i=e-m,o=n+m,a=e+m,u=d}}for(var x=s.nodes,b=.5*(c+h),w=.5*(f+p),M=(e>=w)<<1|n>=b,S=M+4;M<S;++M)if(s=x[3&M])switch(3&M){case 0:t(s,c,f,b,w);break;case 1:t(s,b,f,h,w);break;case 2:t(s,c,w,b,p);break;case 3:t(s,b,w,h,p)}}}(t,r,i,o,a),u}function Qi(t,n){t=o.rgb(t),n=o.rgb(n);var e=t.r,r=t.g,i=t.b,a=n.r-e,u=n.g-r,l=n.b-i;return function(t){return"#"+dn(Math.round(e+a*t))+dn(Math.round(r+u*t))+dn(Math.round(i+l*t))}}function to(t,n){var e,r={},i={};for(e in t)e in n?r[e]=oo(t[e],n[e]):i[e]=t[e];for(e in n)e in t||(i[e]=n[e]);return function(t){for(e in r)i[e]=r[e](t);return i}}function no(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function eo(t,n){var e,r,i,o=ro.lastIndex=io.lastIndex=0,a=-1,u=[],l=[];for(t+="",n+="";(e=ro.exec(t))&&(r=io.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,l.push({i:a,x:no(e,r)})),o=io.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?l[0]?(n=l[0].x,function(t){return n(t)+""}):function(){return n}:(n=l.length,function(t){for(var e,r=0;r<n;++r)u[(e=l[r]).i]=e.x(t);return u.join("")})}o.geom.delaunay=function(t){return o.geom.voronoi().triangles(t)},o.geom.quadtree=function(t,n,e,r,i){var o,a=si,u=ci;if(o=arguments.length)return a=Zi,u=Gi,3===o&&(i=e,r=n,e=n=0),l(t);function l(t){var l,s,c,f,h,p,d,g,v,y=wn(a),m=wn(u);if(null!=n)p=n,d=e,g=r,v=i;else if(g=v=-(p=d=1/0),s=[],c=[],h=t.length,o)for(f=0;f<h;++f)(l=t[f]).x<p&&(p=l.x),l.y<d&&(d=l.y),l.x>g&&(g=l.x),l.y>v&&(v=l.y),s.push(l.x),c.push(l.y);else for(f=0;f<h;++f){var x=+y(l=t[f],f),b=+m(l,f);x<p&&(p=x),b<d&&(d=b),x>g&&(g=x),b>v&&(v=b),s.push(x),c.push(b)}var w=g-p,S=v-d;function E(t,n,e,r,i,o,a,u){if(!isNaN(e)&&!isNaN(r))if(t.leaf){var l=t.x,s=t.y;if(null!=l)if(M(l-e)+M(s-r)<.01)_(t,n,e,r,i,o,a,u);else{var c=t.point;t.x=t.y=t.point=null,_(t,c,l,s,i,o,a,u),_(t,n,e,r,i,o,a,u)}else t.x=e,t.y=r,t.point=n}else _(t,n,e,r,i,o,a,u)}function _(t,n,e,r,i,o,a,u){var l=.5*(i+a),s=.5*(o+u),c=e>=l,f=r>=s,h=f<<1|c;t.leaf=!1,c?i=l:a=l,f?o=s:u=s,E(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),n,e,r,i,o,a,u)}w>S?v=d+w:g=p+S;var k={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){E(k,t,+y(t,++f),+m(t,f),p,d,g,v)},visit:function(t){Ji(t,k,p,d,g,v)},find:function(t){return Ki(k,t[0],t[1],p,d,g,v)}};if(f=-1,null==n){for(;++f<h;)E(k,t[f],s[f],c[f],p,d,g,v);--f}else t.forEach(k.add);return s=c=t=l=null,k}return l.x=function(t){return arguments.length?(a=t,l):a},l.y=function(t){return arguments.length?(u=t,l):u},l.extent=function(t){return arguments.length?(null==t?n=e=r=i=null:(n=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),l):null==n?null:[[n,e],[r,i]]},l.size=function(t){return arguments.length?(null==t?n=e=r=i=null:(n=e=0,r=+t[0],i=+t[1]),l):null==n?null:[r-n,i-e]},l},o.interpolateRgb=Qi,o.interpolateObject=to,o.interpolateNumber=no,o.interpolateString=eo;var ro=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,io=new RegExp(ro.source,"g");function oo(t,n){for(var e,r=o.interpolators.length;--r>=0&&!(e=o.interpolators[r](t,n)););return e}function ao(t,n){var e,r=[],i=[],o=t.length,a=n.length,u=Math.min(t.length,n.length);for(e=0;e<u;++e)r.push(oo(t[e],n[e]));for(;e<o;++e)i[e]=t[e];for(;e<a;++e)i[e]=n[e];return function(t){for(e=0;e<u;++e)i[e]=r[e](t);return i}}o.interpolate=oo,o.interpolators=[function(t,n){var e=typeof n;return("string"===e?bn.has(n.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(n)?Qi:eo:n instanceof Vt?Qi:Array.isArray(n)?ao:"object"===e&&isNaN(n)?to:no)(t,n)}],o.interpolateArray=ao;var uo=function(){return q},lo=o.map({linear:uo,poly:function(t){return function(n){return Math.pow(n,t)}},quad:function(){return po},cubic:function(){return go},sin:function(){return yo},exp:function(){return mo},circle:function(){return xo},elastic:function(t,n){var e;return arguments.length<2&&(n=.45),arguments.length?e=n/Dt*Math.asin(1/t):(t=1,e=n/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-e)*Dt/n)}},back:function(t){return t||(t=1.70158),function(n){return n*n*((t+1)*n-t)}},bounce:function(){return bo}}),so=o.map({in:q,out:fo,"in-out":ho,"out-in":function(t){return ho(fo(t))}});function co(t){return function(n){return n<=0?0:n>=1?1:t(n)}}function fo(t){return function(n){return 1-t(1-n)}}function ho(t){return function(n){return.5*(n<.5?t(2*n):2-t(2-2*n))}}function po(t){return t*t}function go(t){return t*t*t}function vo(t){if(t<=0)return 0;if(t>=1)return 1;var n=t*t,e=n*t;return 4*(t<.5?e:3*(t-n)+e-.75)}function yo(t){return 1-Math.cos(t*Lt)}function mo(t){return Math.pow(2,10*(t-1))}function xo(t){return 1-Math.sqrt(1-t*t)}function bo(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function wo(t,n){return n-=t,function(e){return Math.round(t+n*e)}}function Mo(t){var n,e,r,i=[t.a,t.b],o=[t.c,t.d],a=Eo(i),u=So(i,o),l=Eo(((n=o)[0]+=(r=-u)*(e=i)[0],n[1]+=r*e[1],n))||0;i[0]*o[1]<o[0]*i[1]&&(i[0]*=-1,i[1]*=-1,a*=-1,u*=-1),this.rotate=(a?Math.atan2(i[1],i[0]):Math.atan2(-o[0],o[1]))*Ot,this.translate=[t.e,t.f],this.scale=[a,l],this.skew=l?Math.atan2(u,l)*Ot:0}function So(t,n){return t[0]*n[0]+t[1]*n[1]}function Eo(t){var n=Math.sqrt(So(t,t));return n&&(t[0]/=n,t[1]/=n),n}o.ease=function(t){var n=t.indexOf("-"),e=n>=0?t.slice(0,n):t,r=n>=0?t.slice(n+1):"in";return e=lo.get(e)||uo,co((r=so.get(r)||q)(e.apply(null,a.call(arguments,1))))},o.interpolateHcl=function(t,n){t=o.hcl(t),n=o.hcl(n);var e=t.h,r=t.c,i=t.l,a=n.h-e,u=n.c-r,l=n.l-i;return isNaN(u)&&(u=0,r=isNaN(r)?n.c:r),isNaN(a)?(a=0,e=isNaN(e)?n.h:e):a>180?a-=360:a<-180&&(a+=360),function(t){return Kt(e+a*t,r+u*t,i+l*t)+""}},o.interpolateHsl=function(t,n){t=o.hsl(t),n=o.hsl(n);var e=t.h,r=t.s,i=t.l,a=n.h-e,u=n.s-r,l=n.l-i;return isNaN(u)&&(u=0,r=isNaN(r)?n.s:r),isNaN(a)?(a=0,e=isNaN(e)?n.h:e):a>180?a-=360:a<-180&&(a+=360),function(t){return Zt(e+a*t,r+u*t,i+l*t)+""}},o.interpolateLab=function(t,n){t=o.lab(t),n=o.lab(n);var e=t.l,r=t.a,i=t.b,a=n.l-e,u=n.a-r,l=n.b-i;return function(t){return on(e+a*t,r+u*t,i+l*t)+""}},o.interpolateRound=wo,o.transform=function(t){var n=l.createElementNS(o.ns.prefix.svg,"g");return(o.transform=function(t){if(null!=t){n.setAttribute("transform",t);var e=n.transform.baseVal.consolidate()}return new Mo(e?e.matrix:_o)})(t)},Mo.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 ko(t){return t.length?t.pop()+",":""}function No(t,n){var e=[],r=[];return t=o.transform(t),n=o.transform(n),function(t,n,e,r){if(t[0]!==n[0]||t[1]!==n[1]){var i=e.push("translate(",null,",",null,")");r.push({i:i-4,x:no(t[0],n[0])},{i:i-2,x:no(t[1],n[1])})}else(n[0]||n[1])&&e.push("translate("+n+")")}(t.translate,n.translate,e,r),function(t,n,e,r){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),r.push({i:e.push(ko(e)+"rotate(",null,")")-2,x:no(t,n)})):n&&e.push(ko(e)+"rotate("+n+")")}(t.rotate,n.rotate,e,r),function(t,n,e,r){t!==n?r.push({i:e.push(ko(e)+"skewX(",null,")")-2,x:no(t,n)}):n&&e.push(ko(e)+"skewX("+n+")")}(t.skew,n.skew,e,r),function(t,n,e,r){if(t[0]!==n[0]||t[1]!==n[1]){var i=e.push(ko(e)+"scale(",null,",",null,")");r.push({i:i-4,x:no(t[0],n[0])},{i:i-2,x:no(t[1],n[1])})}else 1===n[0]&&1===n[1]||e.push(ko(e)+"scale("+n+")")}(t.scale,n.scale,e,r),t=n=null,function(t){for(var n,i=-1,o=r.length;++i<o;)e[(n=r[i]).i]=n.x(t);return e.join("")}}function Co(t,n){return n=(n-=t=+t)||1/n,function(e){return(e-t)/n}}function To(t,n){return n=(n-=t=+t)||1/n,function(e){return Math.max(0,Math.min(1,(e-t)/n))}}function Ao(t){for(var n=t.source,e=t.target,r=function(t,n){if(t===n)return t;for(var e=Do(t),r=Do(n),i=e.pop(),o=r.pop(),a=null;i===o;)a=i,i=e.pop(),o=r.pop();return a}(n,e),i=[n];n!==r;)n=n.parent,i.push(n);for(var o=i.length;e!==r;)i.splice(o,0,e),e=e.parent;return i}function Do(t){for(var n=[],e=t.parent;null!=e;)n.push(t),t=e,e=e.parent;return n.push(t),n}function jo(t){t.fixed|=2}function Lo(t){t.fixed&=-7}function qo(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Oo(t){t.fixed&=-5}function Ro(t,n,e){var r=0,i=0;if(t.charge=0,!t.leaf)for(var o,a=t.nodes,u=a.length,l=-1;++l<u;)null!=(o=a[l])&&(Ro(o,n,e),t.charge+=o.charge,r+=o.charge*o.cx,i+=o.charge*o.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var s=n*e[t.point.index];t.charge+=t.pointCharge=s,r+=s*t.point.x,i+=s*t.point.y}t.cx=r/t.charge,t.cy=i/t.charge}o.interpolateTransform=No,o.layout={},o.layout.bundle=function(){return function(t){for(var n=[],e=-1,r=t.length;++e<r;)n.push(Ao(t[e]));return n}},o.layout.chord=function(){var t,n,e,r,i,a,u,l={},s=0;function c(){var l,c,h,p,d,g={},v=[],y=o.range(r),m=[];for(t=[],n=[],l=0,p=-1;++p<r;){for(c=0,d=-1;++d<r;)c+=e[p][d];v.push(c),m.push(o.range(r)),l+=c}for(i&&y.sort((function(t,n){return i(v[t],v[n])})),a&&m.forEach((function(t,n){t.sort((function(t,r){return a(e[n][t],e[n][r])}))})),l=(Dt-s*r)/l,c=0,p=-1;++p<r;){for(h=c,d=-1;++d<r;){var x=y[p],b=m[x][d],w=e[x][b],M=c,S=c+=w*l;g[x+"-"+b]={index:x,subindex:b,startAngle:M,endAngle:S,value:w}}n[x]={index:x,startAngle:h,endAngle:c,value:v[x]},c+=s}for(p=-1;++p<r;)for(d=p-1;++d<r;){var E=g[p+"-"+d],_=g[d+"-"+p];(E.value||_.value)&&t.push(E.value<_.value?{source:_,target:E}:{source:E,target:_})}u&&f()}function f(){t.sort((function(t,n){return u((t.source.value+t.target.value)/2,(n.source.value+n.target.value)/2)}))}return l.matrix=function(i){return arguments.length?(r=(e=i)&&e.length,t=n=null,l):e},l.padding=function(e){return arguments.length?(s=e,t=n=null,l):s},l.sortGroups=function(e){return arguments.length?(i=e,t=n=null,l):i},l.sortSubgroups=function(n){return arguments.length?(a=n,t=null,l):a},l.sortChords=function(n){return arguments.length?(u=n,t&&f(),l):u},l.chords=function(){return t||c(),t},l.groups=function(){return n||c(),n},l},o.layout.force=function(){var t,n,e,r,i,a,u={},l=o.dispatch("start","tick","end"),s=[1,1],c=.9,f=Po,h=zo,p=-30,d=Ho,g=.1,v=.64,y=[],m=[];function x(t){return function(n,e,r,i){if(n.point!==t){var o=n.cx-t.x,a=n.cy-t.y,u=i-e,l=o*o+a*a;if(u*u/v<l){if(l<d){var s=n.charge/l;t.px-=o*s,t.py-=a*s}return!0}n.point&&l&&l<d&&(s=n.pointCharge/l,t.px-=o*s,t.py-=a*s)}return!n.charge}}function b(t){t.px=o.event.x,t.py=o.event.y,u.resume()}return u.tick=function(){if((e*=.99)<.005)return t=null,l.end({type:"end",alpha:e=0}),!0;var n,u,f,h,d,v,b,w,M,S=y.length,E=m.length;for(u=0;u<E;++u)h=(f=m[u]).source,(v=(w=(d=f.target).x-h.x)*w+(M=d.y-h.y)*M)&&(w*=v=e*i[u]*((v=Math.sqrt(v))-r[u])/v,M*=v,d.x-=w*(b=h.weight+d.weight?h.weight/(h.weight+d.weight):.5),d.y-=M*b,h.x+=w*(b=1-b),h.y+=M*b);if((b=e*g)&&(w=s[0]/2,M=s[1]/2,u=-1,b))for(;++u<S;)(f=y[u]).x+=(w-f.x)*b,f.y+=(M-f.y)*b;if(p)for(Ro(n=o.geom.quadtree(y),e,a),u=-1;++u<S;)(f=y[u]).fixed||n.visit(x(f));for(u=-1;++u<S;)(f=y[u]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*c,f.y-=(f.py-(f.py=f.y))*c);l.tick({type:"tick",alpha:e})},u.nodes=function(t){return arguments.length?(y=t,u):y},u.links=function(t){return arguments.length?(m=t,u):m},u.size=function(t){return arguments.length?(s=t,u):s},u.linkDistance=function(t){return arguments.length?(f="function"==typeof t?t:+t,u):f},u.distance=u.linkDistance,u.linkStrength=function(t){return arguments.length?(h="function"==typeof t?t:+t,u):h},u.friction=function(t){return arguments.length?(c=+t,u):c},u.charge=function(t){return arguments.length?(p="function"==typeof t?t:+t,u):p},u.chargeDistance=function(t){return arguments.length?(d=t*t,u):Math.sqrt(d)},u.gravity=function(t){return arguments.length?(g=+t,u):g},u.theta=function(t){return arguments.length?(v=t*t,u):Math.sqrt(v)},u.alpha=function(n){return arguments.length?(n=+n,e?n>0?e=n:(t.c=null,t.t=NaN,t=null,l.end({type:"end",alpha:e=0})):n>0&&(l.start({type:"start",alpha:e=n}),t=Tn(u.tick)),u):e},u.start=function(){var t,n,e,o=y.length,l=m.length,c=s[0],d=s[1];for(t=0;t<o;++t)(e=y[t]).index=t,e.weight=0;for(t=0;t<l;++t)"number"==typeof(e=m[t]).source&&(e.source=y[e.source]),"number"==typeof e.target&&(e.target=y[e.target]),++e.source.weight,++e.target.weight;for(t=0;t<o;++t)e=y[t],isNaN(e.x)&&(e.x=g("x",c)),isNaN(e.y)&&(e.y=g("y",d)),isNaN(e.px)&&(e.px=e.x),isNaN(e.py)&&(e.py=e.y);if(r=[],"function"==typeof f)for(t=0;t<l;++t)r[t]=+f.call(this,m[t],t);else for(t=0;t<l;++t)r[t]=f;if(i=[],"function"==typeof h)for(t=0;t<l;++t)i[t]=+h.call(this,m[t],t);else for(t=0;t<l;++t)i[t]=h;if(a=[],"function"==typeof p)for(t=0;t<o;++t)a[t]=+p.call(this,y[t],t);else for(t=0;t<o;++t)a[t]=p;function g(e,r){if(!n){for(n=new Array(o),s=0;s<o;++s)n[s]=[];for(s=0;s<l;++s){var i=m[s];n[i.source.index].push(i.target),n[i.target.index].push(i.source)}}for(var a,u=n[t],s=-1,c=u.length;++s<c;)if(!isNaN(a=u[s][e]))return a;return Math.random()*r}return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){if(n||(n=o.behavior.drag().origin(q).on("dragstart.force",jo).on("drag.force",b).on("dragend.force",Lo)),!arguments.length)return n;this.on("mouseover.force",qo).on("mouseout.force",Oo).call(n)},o.rebind(u,l,"on")};var Po=20,zo=1,Ho=1/0;function Io(t,n){return o.rebind(t,n,"sort","children","value"),t.nodes=t,t.links=Vo,t}function Fo(t,n){for(var e=[t];null!=(t=e.pop());)if(n(t),(i=t.children)&&(r=i.length))for(var r,i;--r>=0;)e.push(i[r])}function $o(t,n){for(var e=[t],r=[];null!=(t=e.pop());)if(r.push(t),(o=t.children)&&(i=o.length))for(var i,o,a=-1;++a<i;)e.push(o[a]);for(;null!=(t=r.pop());)n(t)}function Uo(t){return t.children}function Bo(t){return t.value}function Wo(t,n){return n.value-t.value}function Vo(t){return o.merge(t.map((function(t){return(t.children||[]).map((function(n){return{source:t,target:n}}))})))}o.layout.hierarchy=function(){var t=Wo,n=Uo,e=Bo;function r(i){var o,a=[i],u=[];for(i.depth=0;null!=(o=a.pop());)if(u.push(o),(s=n.call(r,o,o.depth))&&(l=s.length)){for(var l,s,c;--l>=0;)a.push(c=s[l]),c.parent=o,c.depth=o.depth+1;e&&(o.value=0),o.children=s}else e&&(o.value=+e.call(r,o,o.depth)||0),delete o.children;return $o(i,(function(n){var r,i;t&&(r=n.children)&&r.sort(t),e&&(i=n.parent)&&(i.value+=n.value)})),u}return r.sort=function(n){return arguments.length?(t=n,r):t},r.children=function(t){return arguments.length?(n=t,r):n},r.value=function(t){return arguments.length?(e=t,r):e},r.revalue=function(t){return e&&(Fo(t,(function(t){t.children&&(t.value=0)})),$o(t,(function(t){var n;t.children||(t.value=+e.call(r,t,t.depth)||0),(n=t.parent)&&(n.value+=t.value)}))),t},r},o.layout.partition=function(){var t=o.layout.hierarchy(),n=[1,1];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,u,l,s=-1;for(r=t.value?r/t.value:0;++s<a;)e(u=o[s],n,l=u.value*r,i),n+=l}}function r(t){var n=t.children,e=0;if(n&&(i=n.length))for(var i,o=-1;++o<i;)e=Math.max(e,r(n[o]));return 1+e}function i(i,o){var a=t.call(this,i,o);return e(a[0],0,n[0],n[1]/r(a[0])),a}return i.size=function(t){return arguments.length?(n=t,i):n},Io(i,t)},o.layout.pie=function(){var t=Number,n=Yo,e=0,r=Dt,i=0;function a(u){var l,s=u.length,c=u.map((function(n,e){return+t.call(a,n,e)})),f=+("function"==typeof e?e.apply(this,arguments):e),h=("function"==typeof r?r.apply(this,arguments):r)-f,p=Math.min(Math.abs(h)/s,+("function"==typeof i?i.apply(this,arguments):i)),d=p*(h<0?-1:1),g=o.sum(c),v=g?(h-s*d)/g:0,y=o.range(s),m=[];return null!=n&&y.sort(n===Yo?function(t,n){return c[n]-c[t]}:function(t,e){return n(u[t],u[e])}),y.forEach((function(t){m[t]={data:u[t],value:l=c[t],startAngle:f,endAngle:f+=l*v+d,padAngle:p}})),m}return a.value=function(n){return arguments.length?(t=n,a):t},a.sort=function(t){return arguments.length?(n=t,a):n},a.startAngle=function(t){return arguments.length?(e=t,a):e},a.endAngle=function(t){return arguments.length?(r=t,a):r},a.padAngle=function(t){return arguments.length?(i=t,a):i},a};var Yo={};function Xo(t){return t.x}function Zo(t){return t.y}function Go(t,n,e){t.y0=n,t.y=e}o.layout.stack=function(){var t=q,n=Qo,e=ta,r=Go,i=Xo,a=Zo;function u(l,s){if(!(p=l.length))return l;var c=l.map((function(n,e){return t.call(u,n,e)})),f=c.map((function(t){return t.map((function(t,n){return[i.call(u,t,n),a.call(u,t,n)]}))})),h=n.call(u,f,s);c=o.permute(c,h),f=o.permute(f,h);var p,d,g,v,y=e.call(u,f,s),m=c[0].length;for(g=0;g<m;++g)for(r.call(u,c[0][g],v=y[g],f[0][g][1]),d=1;d<p;++d)r.call(u,c[d][g],v+=f[d-1][g][1],f[d][g][1]);return l}return u.values=function(n){return arguments.length?(t=n,u):t},u.order=function(t){return arguments.length?(n="function"==typeof t?t:Jo.get(t)||Qo,u):n},u.offset=function(t){return arguments.length?(e="function"==typeof t?t:Ko.get(t)||ta,u):e},u.x=function(t){return arguments.length?(i=t,u):i},u.y=function(t){return arguments.length?(a=t,u):a},u.out=function(t){return arguments.length?(r=t,u):r},u};var Jo=o.map({"inside-out":function(t){var n,e,r=t.length,i=t.map(na),a=t.map(ea),u=o.range(r).sort((function(t,n){return i[t]-i[n]})),l=0,s=0,c=[],f=[];for(n=0;n<r;++n)e=u[n],l<s?(l+=a[e],c.push(e)):(s+=a[e],f.push(e));return f.reverse().concat(c)},reverse:function(t){return o.range(t.length).reverse()},default:Qo}),Ko=o.map({silhouette:function(t){var n,e,r,i=t.length,o=t[0].length,a=[],u=0,l=[];for(e=0;e<o;++e){for(n=0,r=0;n<i;n++)r+=t[n][e][1];r>u&&(u=r),a.push(r)}for(e=0;e<o;++e)l[e]=(u-a[e])/2;return l},wiggle:function(t){var n,e,r,i,o,a,u,l,s,c=t.length,f=t[0],h=f.length,p=[];for(p[0]=l=s=0,e=1;e<h;++e){for(n=0,i=0;n<c;++n)i+=t[n][e][1];for(n=0,o=0,u=f[e][0]-f[e-1][0];n<c;++n){for(r=0,a=(t[n][e][1]-t[n][e-1][1])/(2*u);r<n;++r)a+=(t[r][e][1]-t[r][e-1][1])/u;o+=a*t[n][e][1]}p[e]=l-=i?o/i*u:0,l<s&&(s=l)}for(e=0;e<h;++e)p[e]-=s;return p},expand:function(t){var n,e,r,i=t.length,o=t[0].length,a=1/i,u=[];for(e=0;e<o;++e){for(n=0,r=0;n<i;n++)r+=t[n][e][1];if(r)for(n=0;n<i;n++)t[n][e][1]/=r;else for(n=0;n<i;n++)t[n][e][1]=a}for(e=0;e<o;++e)u[e]=0;return u},zero:ta});function Qo(t){return o.range(t.length)}function ta(t){for(var n=-1,e=t[0].length,r=[];++n<e;)r[n]=0;return r}function na(t){for(var n,e=1,r=0,i=t[0][1],o=t.length;e<o;++e)(n=t[e][1])>i&&(r=e,i=n);return r}function ea(t){return t.reduce(ra,0)}function ra(t,n){return t+n[1]}function ia(t,n){return oa(t,Math.ceil(Math.log(n.length)/Math.LN2+1))}function oa(t,n){for(var e=-1,r=+t[0],i=(t[1]-r)/n,o=[];++e<=n;)o[e]=i*e+r;return o}function aa(t){return[o.min(t),o.max(t)]}function ua(t,n){return t.value-n.value}function la(t,n){var e=t._pack_next;t._pack_next=n,n._pack_prev=t,n._pack_next=e,e._pack_prev=n}function sa(t,n){t._pack_next=n,n._pack_prev=t}function ca(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return.999*i*i>e*e+r*r}function fa(t){if((n=t.children)&&(l=n.length)){var n,e,r,i,o,a,u,l,s=1/0,c=-1/0,f=1/0,h=-1/0;if(n.forEach(ha),(e=n[0]).x=-e.r,e.y=0,x(e),l>1&&((r=n[1]).x=r.r,r.y=0,x(r),l>2))for(ga(e,r,i=n[2]),x(i),la(e,i),e._pack_prev=i,la(i,r),r=e._pack_next,o=3;o<l;o++){ga(e,r,i=n[o]);var p=0,d=1,g=1;for(a=r._pack_next;a!==r;a=a._pack_next,d++)if(ca(a,i)){p=1;break}if(1==p)for(u=e._pack_prev;u!==a._pack_prev&&!ca(u,i);u=u._pack_prev,g++);p?(d<g||d==g&&r.r<e.r?sa(e,r=a):sa(e=u,r),o--):(la(e,i),r=i,x(i))}var v=(s+c)/2,y=(f+h)/2,m=0;for(o=0;o<l;o++)(i=n[o]).x-=v,i.y-=y,m=Math.max(m,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=m,n.forEach(pa)}function x(t){s=Math.min(t.x-t.r,s),c=Math.max(t.x+t.r,c),f=Math.min(t.y-t.r,f),h=Math.max(t.y+t.r,h)}}function ha(t){t._pack_next=t._pack_prev=t}function pa(t){delete t._pack_next,delete t._pack_prev}function da(t,n,e,r){var i=t.children;if(t.x=n+=r*t.x,t.y=e+=r*t.y,t.r*=r,i)for(var o=-1,a=i.length;++o<a;)da(i[o],n,e,r)}function ga(t,n,e){var r=t.r+e.r,i=n.x-t.x,o=n.y-t.y;if(r&&(i||o)){var a=n.r+e.r,u=i*i+o*o,l=.5+((r*=r)-(a*=a))/(2*u),s=Math.sqrt(Math.max(0,2*a*(r+u)-(r-=u)*r-a*a))/(2*u);e.x=t.x+l*i+s*o,e.y=t.y+l*o-s*i}else e.x=t.x+r,e.y=t.y}function va(t,n){return t.parent==n.parent?1:2}function ya(t){var n=t.children;return n.length?n[0]:t.t}function ma(t){var n,e=t.children;return(n=e.length)?e[n-1]:t.t}function xa(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function ba(t,n,e){return t.a.parent===n.parent?t.a:e}function wa(t){var n=t.children;return n&&n.length?wa(n[0]):t}function Ma(t){var n,e=t.children;return e&&(n=e.length)?Ma(e[n-1]):t}function Sa(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Ea(t,n){var e=t.x+n[3],r=t.y+n[0],i=t.dx-n[1]-n[3],o=t.dy-n[0]-n[2];return i<0&&(e+=i/2,i=0),o<0&&(r+=o/2,o=0),{x:e,y:r,dx:i,dy:o}}function _a(t){var n=t[0],e=t[t.length-1];return n<e?[n,e]:[e,n]}function ka(t){return t.rangeExtent?t.rangeExtent():_a(t.range())}function Na(t,n,e,r){var i=e(t[0],t[1]),o=r(n[0],n[1]);return function(t){return o(i(t))}}function Ca(t,n){var e,r=0,i=t.length-1,o=t[r],a=t[i];return a<o&&(e=r,r=i,i=e,e=o,o=a,a=e),t[r]=n.floor(o),t[i]=n.ceil(a),t}function Ta(t){return t?{floor:function(n){return Math.floor(n/t)*t},ceil:function(n){return Math.ceil(n/t)*t}}:Aa}o.layout.histogram=function(){var t=!0,n=Number,e=aa,r=ia;function i(i,a){for(var u,l,s=[],c=i.map(n,this),f=e.call(this,c,a),h=r.call(this,f,c,a),p=(a=-1,c.length),d=h.length-1,g=t?1:1/p;++a<d;)(u=s[a]=[]).dx=h[a+1]-(u.x=h[a]),u.y=0;if(d>0)for(a=-1;++a<p;)(l=c[a])>=f[0]&&l<=f[1]&&((u=s[o.bisect(h,l,1,d)-1]).y+=g,u.push(i[a]));return s}return i.value=function(t){return arguments.length?(n=t,i):n},i.range=function(t){return arguments.length?(e=wn(t),i):e},i.bins=function(t){return arguments.length?(r="number"==typeof t?function(n){return oa(n,t)}:wn(t),i):r},i.frequency=function(n){return arguments.length?(t=!!n,i):t},i},o.layout.pack=function(){var t,n=o.layout.hierarchy().sort(ua),e=0,r=[1,1];function i(i,o){var a=n.call(this,i,o),u=a[0],l=r[0],s=r[1],c=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(u.x=u.y=0,$o(u,(function(t){t.r=+c(t.value)})),$o(u,fa),e){var f=e*(t?1:Math.max(2*u.r/l,2*u.r/s))/2;$o(u,(function(t){t.r+=f})),$o(u,fa),$o(u,(function(t){t.r-=f}))}return da(u,l/2,s/2,t?1:1/Math.max(2*u.r/l,2*u.r/s)),a}return i.size=function(t){return arguments.length?(r=t,i):r},i.radius=function(n){return arguments.length?(t=null==n||"function"==typeof n?n:+n,i):t},i.padding=function(t){return arguments.length?(e=+t,i):e},Io(i,n)},o.layout.tree=function(){var t=o.layout.hierarchy().sort(null).value(null),n=va,e=[1,1],r=null;function i(i,o){var s=t.call(this,i,o),c=s[0],f=function(t){for(var n,e={A:null,children:[t]},r=[e];null!=(n=r.pop());)for(var i,o=n.children,a=0,u=o.length;a<u;++a)r.push((o[a]=i={_:o[a],parent:n,children:(i=o[a].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=i);return e.children[0]}(c);if($o(f,a),f.parent.m=-f.z,Fo(f,u),r)Fo(c,l);else{var h=c,p=c,d=c;Fo(c,(function(t){t.x<h.x&&(h=t),t.x>p.x&&(p=t),t.depth>d.depth&&(d=t)}));var g=n(h,p)/2-h.x,v=e[0]/(p.x+n(p,h)/2+g),y=e[1]/(d.depth||1);Fo(c,(function(t){t.x=(t.x+g)*v,t.y=t.depth*y}))}return s}function a(t){var e=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(e.length){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(t);var o=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+n(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+n(t._,i._));t.parent.A=function(t,e,r){if(e){for(var i,o=t,a=t,u=e,l=o.parent.children[0],s=o.m,c=a.m,f=u.m,h=l.m;u=ma(u),o=ya(o),u&&o;)l=ya(l),(a=ma(a)).a=t,(i=u.z+f-o.z-s+n(u._,o._))>0&&(xa(ba(u,t,r),t,i),s+=i,c+=i),f+=u.m,s+=o.m,h+=l.m,c+=a.m;u&&!ma(a)&&(a.t=u,a.m+=f-c),o&&!ya(l)&&(l.t=o,l.m+=s-h,r=t)}return r}(t,i,t.parent.A||r[0])}function u(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=e[0],t.y=t.depth*e[1]}return i.separation=function(t){return arguments.length?(n=t,i):n},i.size=function(t){return arguments.length?(r=null==(e=t)?l:null,i):r?null:e},i.nodeSize=function(t){return arguments.length?(r=null==(e=t)?null:l,i):r?e:null},Io(i,t)},o.layout.cluster=function(){var t=o.layout.hierarchy().sort(null).value(null),n=va,e=[1,1],r=!1;function i(i,a){var u,l=t.call(this,i,a),s=l[0],c=0;$o(s,(function(t){var e=t.children;e&&e.length?(t.x=function(t){return t.reduce((function(t,n){return t+n.x}),0)/t.length}(e),t.y=function(t){return 1+o.max(t,(function(t){return t.y}))}(e)):(t.x=u?c+=n(t,u):0,t.y=0,u=t)}));var f=wa(s),h=Ma(s),p=f.x-n(f,h)/2,d=h.x+n(h,f)/2;return $o(s,r?function(t){t.x=(t.x-s.x)*e[0],t.y=(s.y-t.y)*e[1]}:function(t){t.x=(t.x-p)/(d-p)*e[0],t.y=(1-(s.y?t.y/s.y:1))*e[1]}),l}return i.separation=function(t){return arguments.length?(n=t,i):n},i.size=function(t){return arguments.length?(r=null==(e=t),i):r?null:e},i.nodeSize=function(t){return arguments.length?(r=null!=(e=t),i):r?e:null},Io(i,t)},o.layout.treemap=function(){var t,n=o.layout.hierarchy(),e=Math.round,r=[1,1],i=null,a=Sa,u=!1,l="squarify",s=.5*(1+Math.sqrt(5));function c(t,n){for(var e,r,i=-1,o=t.length;++i<o;)r=(e=t[i]).value*(n<0?0:n),e.area=isNaN(r)||r<=0?0:r}function f(t){var n=t.children;if(n&&n.length){var e,r,i,o=a(t),u=[],s=n.slice(),h=1/0,g="slice"===l?o.dx:"dice"===l?o.dy:"slice-dice"===l?1&t.depth?o.dy:o.dx:Math.min(o.dx,o.dy);for(c(s,o.dx*o.dy/t.value),u.area=0;(i=s.length)>0;)u.push(e=s[i-1]),u.area+=e.area,"squarify"!==l||(r=p(u,g))<=h?(s.pop(),h=r):(u.area-=u.pop().area,d(u,g,o,!1),g=Math.min(o.dx,o.dy),u.length=u.area=0,h=1/0);u.length&&(d(u,g,o,!0),u.length=u.area=0),n.forEach(f)}}function h(t){var n=t.children;if(n&&n.length){var e,r=a(t),i=n.slice(),o=[];for(c(i,r.dx*r.dy/t.value),o.area=0;e=i.pop();)o.push(e),o.area+=e.area,null!=e.z&&(d(o,e.z?r.dx:r.dy,r,!i.length),o.length=o.area=0);n.forEach(h)}}function p(t,n){for(var e,r=t.area,i=0,o=1/0,a=-1,u=t.length;++a<u;)(e=t[a].area)&&(e<o&&(o=e),e>i&&(i=e));return n*=n,(r*=r)?Math.max(n*i*s/r,r/(n*o*s)):1/0}function d(t,n,r,i){var o,a=-1,u=t.length,l=r.x,s=r.y,c=n?e(t.area/n):0;if(n==r.dx){for((i||c>r.dy)&&(c=r.dy);++a<u;)(o=t[a]).x=l,o.y=s,o.dy=c,l+=o.dx=Math.min(r.x+r.dx-l,c?e(o.area/c):0);o.z=!0,o.dx+=r.x+r.dx-l,r.y+=c,r.dy-=c}else{for((i||c>r.dx)&&(c=r.dx);++a<u;)(o=t[a]).x=l,o.y=s,o.dx=c,s+=o.dy=Math.min(r.y+r.dy-s,c?e(o.area/c):0);o.z=!1,o.dy+=r.y+r.dy-s,r.x+=c,r.dx-=c}}function g(e){var i=t||n(e),o=i[0];return o.x=o.y=0,o.value?(o.dx=r[0],o.dy=r[1]):o.dx=o.dy=0,t&&n.revalue(o),c([o],o.dx*o.dy/o.value),(t?h:f)(o),u&&(t=i),i}return g.size=function(t){return arguments.length?(r=t,g):r},g.padding=function(t){if(!arguments.length)return i;function n(n){var e=t.call(g,n,n.depth);return null==e?Sa(n):Ea(n,"number"==typeof e?[e,e,e,e]:e)}function e(n){return Ea(n,t)}var r;return a=null==(i=t)?Sa:"function"==(r=typeof t)?n:"number"===r?(t=[t,t,t,t],e):e,g},g.round=function(t){return arguments.length?(e=t?Math.round:Number,g):e!=Number},g.sticky=function(n){return arguments.length?(u=n,t=null,g):u},g.ratio=function(t){return arguments.length?(s=t,g):s},g.mode=function(t){return arguments.length?(l=t+"",g):l},Io(g,n)},o.random={normal:function(t,n){var e=arguments.length;return e<2&&(n=1),e<1&&(t=0),function(){var e,r,i;do{i=(e=2*Math.random()-1)*e+(r=2*Math.random()-1)*r}while(!i||i>1);return t+n*e*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=o.random.normal.apply(o,arguments);return function(){return Math.exp(t())}},bates:function(t){var n=o.random.irwinHall(t);return function(){return n()/t}},irwinHall:function(t){return function(){for(var n=0,e=0;e<t;e++)n+=Math.random();return n}}},o.scale={};var Aa={floor:q,ceil:q};function Da(t,n,e,r){var i=[],a=[],u=0,l=Math.min(t.length,n.length)-1;for(t[l]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<=l;)i.push(e(t[u-1],t[u])),a.push(r(n[u-1],n[u]));return function(n){var e=o.bisect(t,n,1,l)-1;return a[e](i[e](n))}}function ja(t,n,e,r){var i,o;function a(){var a=Math.min(t.length,n.length)>2?Da:Na,l=r?To:Co;return i=a(t,n,l,e),o=a(n,t,l,oo),u}function u(t){return i(t)}return u.invert=function(t){return o(t)},u.domain=function(n){return arguments.length?(t=n.map(Number),a()):t},u.range=function(t){return arguments.length?(n=t,a()):n},u.rangeRound=function(t){return u.range(t).interpolate(wo)},u.clamp=function(t){return arguments.length?(r=t,a()):r},u.interpolate=function(t){return arguments.length?(e=t,a()):e},u.ticks=function(n){return Ra(t,n)},u.tickFormat=function(n,e){return Pa(t,n,e)},u.nice=function(n){return qa(t,n),a()},u.copy=function(){return ja(t,n,e,r)},a()}function La(t,n){return o.rebind(t,n,"range","rangeRound","interpolate","clamp")}function qa(t,n){return Ca(t,Ta(Oa(t,n)[2])),Ca(t,Ta(Oa(t,n)[2])),t}function Oa(t,n){null==n&&(n=10);var e=_a(t),r=e[1]-e[0],i=Math.pow(10,Math.floor(Math.log(r/n)/Math.LN10)),o=n/r*i;return o<=.15?i*=10:o<=.35?i*=5:o<=.75&&(i*=2),e[0]=Math.ceil(e[0]/i)*i,e[1]=Math.floor(e[1]/i)*i+.5*i,e[2]=i,e}function Ra(t,n){return o.range.apply(o,Oa(t,n))}function Pa(t,n,e){var r=Oa(t,n);if(e){var i=Rn.exec(e);if(i.shift(),"s"===i[8]){var a=o.formatPrefix(Math.max(M(r[0]),M(r[1])));return i[7]||(i[7]="."+Ha(a.scale(r[2]))),i[8]="f",e=o.format(i.join("")),function(t){return e(a.scale(t))+a.symbol}}i[7]||(i[7]="."+function(t,n){var e=Ha(n[2]);return t in za?Math.abs(e-Ha(Math.max(M(n[0]),M(n[1]))))+ +("e"!==t):e-2*("%"===t)}(i[8],r)),e=i.join("")}else e=",."+Ha(r[2])+"f";return o.format(e)}o.scale.linear=function(){return ja([0,1],[0,1],oo,!1)};var za={s:1,g:1,p:1,r:1,e:1};function Ha(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Ia(t,n,e,r){function i(t){return(e?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(n)}function a(t){return e?Math.pow(n,t):-Math.pow(n,-t)}function u(n){return t(i(n))}return u.invert=function(n){return a(t.invert(n))},u.domain=function(n){return arguments.length?(e=n[0]>=0,t.domain((r=n.map(Number)).map(i)),u):r},u.base=function(e){return arguments.length?(n=+e,t.domain(r.map(i)),u):n},u.nice=function(){var n=Ca(r.map(i),e?Math:$a);return t.domain(n),r=n.map(a),u},u.ticks=function(){var t=_a(r),o=[],u=t[0],l=t[1],s=Math.floor(i(u)),c=Math.ceil(i(l)),f=n%1?2:n;if(isFinite(c-s)){if(e){for(;s<c;s++)for(var h=1;h<f;h++)o.push(a(s)*h);o.push(a(s))}else for(o.push(a(s));s++<c;)for(h=f-1;h>0;h--)o.push(a(s)*h);for(s=0;o[s]<u;s++);for(c=o.length;o[c-1]>l;c--);o=o.slice(s,c)}return o},u.tickFormat=function(t,e){if(!arguments.length)return Fa;arguments.length<2?e=Fa:"function"!=typeof e&&(e=o.format(e));var r=Math.max(1,n*t/u.ticks().length);return function(t){var o=t/a(Math.round(i(t)));return o*n<n-.5&&(o*=n),o<=r?e(t):""}},u.copy=function(){return Ia(t.copy(),n,e,r)},La(u,t)}o.scale.log=function(){return Ia(o.scale.linear().domain([0,1]),10,!0,[1,10])};var Fa=o.format(".0e"),$a={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Ua(t,n,e){var r=Ba(n),i=Ba(1/n);function o(n){return t(r(n))}return o.invert=function(n){return i(t.invert(n))},o.domain=function(n){return arguments.length?(t.domain((e=n.map(Number)).map(r)),o):e},o.ticks=function(t){return Ra(e,t)},o.tickFormat=function(t,n){return Pa(e,t,n)},o.nice=function(t){return o.domain(qa(e,t))},o.exponent=function(a){return arguments.length?(r=Ba(n=a),i=Ba(1/n),t.domain(e.map(r)),o):n},o.copy=function(){return Ua(t.copy(),n,e)},La(o,t)}function Ba(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Wa(t,n){var e,r,i;function a(i){return r[((e.get(i)||("range"===n.t?e.set(i,t.push(i)):NaN))-1)%r.length]}function u(n,e){return o.range(t.length).map((function(t){return n+e*t}))}return a.domain=function(r){if(!arguments.length)return t;t=[],e=new _;for(var i,o=-1,u=r.length;++o<u;)e.has(i=r[o])||e.set(i,t.push(i));return a[n.t].apply(a,n.a)},a.range=function(t){return arguments.length?(r=t,i=0,n={t:"range",a:arguments},a):r},a.rangePoints=function(e,o){arguments.length<2&&(o=0);var l=e[0],s=e[1],c=t.length<2?(l=(l+s)/2,0):(s-l)/(t.length-1+o);return r=u(l+c*o/2,c),i=0,n={t:"rangePoints",a:arguments},a},a.rangeRoundPoints=function(e,o){arguments.length<2&&(o=0);var l=e[0],s=e[1],c=t.length<2?(l=s=Math.round((l+s)/2),0):(s-l)/(t.length-1+o)|0;return r=u(l+Math.round(c*o/2+(s-l-(t.length-1+o)*c)/2),c),i=0,n={t:"rangeRoundPoints",a:arguments},a},a.rangeBands=function(e,o,l){arguments.length<2&&(o=0),arguments.length<3&&(l=o);var s=e[1]<e[0],c=e[s-0],f=e[1-s],h=(f-c)/(t.length-o+2*l);return r=u(c+h*l,h),s&&r.reverse(),i=h*(1-o),n={t:"rangeBands",a:arguments},a},a.rangeRoundBands=function(e,o,l){arguments.length<2&&(o=0),arguments.length<3&&(l=o);var s=e[1]<e[0],c=e[s-0],f=e[1-s],h=Math.floor((f-c)/(t.length-o+2*l));return r=u(c+Math.round((f-c-(t.length-o)*h)/2),h),s&&r.reverse(),i=Math.round(h*(1-o)),n={t:"rangeRoundBands",a:arguments},a},a.rangeBand=function(){return i},a.rangeExtent=function(){return _a(n.a[0])},a.copy=function(){return Wa(t,n)},a.domain(t)}o.scale.pow=function(){return Ua(o.scale.linear(),1,[0,1])},o.scale.sqrt=function(){return o.scale.pow().exponent(.5)},o.scale.ordinal=function(){return Wa([],{t:"range",a:[[]]})},o.scale.category10=function(){return o.scale.ordinal().range(Va)},o.scale.category20=function(){return o.scale.ordinal().range(Ya)},o.scale.category20b=function(){return o.scale.ordinal().range(Xa)},o.scale.category20c=function(){return o.scale.ordinal().range(Za)};var Va=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(hn),Ya=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(hn),Xa=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(hn),Za=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(hn);function Ga(t,n){var e;function r(){var r=0,a=n.length;for(e=[];++r<a;)e[r-1]=o.quantile(t,r/a);return i}function i(t){if(!isNaN(t=+t))return n[o.bisect(e,t)]}return i.domain=function(n){return arguments.length?(t=n.map(y).filter(m).sort(v),r()):t},i.range=function(t){return arguments.length?(n=t,r()):n},i.quantiles=function(){return e},i.invertExtent=function(r){return(r=n.indexOf(r))<0?[NaN,NaN]:[r>0?e[r-1]:t[0],r<e.length?e[r]:t[t.length-1]]},i.copy=function(){return Ga(t,n)},r()}function Ja(t,n,e){var r,i;function o(n){return e[Math.max(0,Math.min(i,Math.floor(r*(n-t))))]}function a(){return r=e.length/(n-t),i=e.length-1,o}return o.domain=function(e){return arguments.length?(t=+e[0],n=+e[e.length-1],a()):[t,n]},o.range=function(t){return arguments.length?(e=t,a()):e},o.invertExtent=function(n){return[n=(n=e.indexOf(n))<0?NaN:n/r+t,n+1/r]},o.copy=function(){return Ja(t,n,e)},a()}function Ka(t,n){function e(e){if(e<=e)return n[o.bisect(t,e)]}return e.domain=function(n){return arguments.length?(t=n,e):t},e.range=function(t){return arguments.length?(n=t,e):n},e.invertExtent=function(e){return e=n.indexOf(e),[t[e-1],t[e]]},e.copy=function(){return Ka(t,n)},e}function Qa(t){function n(t){return+t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=e.map(n),n):t},n.ticks=function(n){return Ra(t,n)},n.tickFormat=function(n,e){return Pa(t,n,e)},n.copy=function(){return Qa(t)},n}function tu(){return 0}o.scale.quantile=function(){return Ga([],[])},o.scale.quantize=function(){return Ja(0,1,[0,1])},o.scale.threshold=function(){return Ka([.5],[0,1])},o.scale.identity=function(){return Qa([0,1])},o.svg={},o.svg.arc=function(){var t=eu,n=ru,e=tu,r=nu,i=iu,o=ou,a=au;function u(){var u=Math.max(0,+t.apply(this,arguments)),s=Math.max(0,+n.apply(this,arguments)),c=i.apply(this,arguments)-Lt,f=o.apply(this,arguments)-Lt,h=Math.abs(f-c),p=c>f?0:1;if(s<u&&(d=s,s=u,u=d),h>=jt)return l(s,p)+(u?l(u,1-p):"")+"Z";var d,g,v,y,m,x,b,w,M,S,E,_,k=0,N=0,C=[];if((y=(+a.apply(this,arguments)||0)/2)&&(v=r===nu?Math.sqrt(u*u+s*s):+r.apply(this,arguments),p||(N*=-1),s&&(N=Ht(v/s*Math.sin(y))),u&&(k=Ht(v/u*Math.sin(y)))),s){m=s*Math.cos(c+N),x=s*Math.sin(c+N),b=s*Math.cos(f-N),w=s*Math.sin(f-N);var T=Math.abs(f-c-2*N)<=At?0:1;if(N&&uu(m,x,b,w)===p^T){var A=(c+f)/2;m=s*Math.cos(A),x=s*Math.sin(A),b=w=null}}else m=x=0;if(u){M=u*Math.cos(f-k),S=u*Math.sin(f-k),E=u*Math.cos(c+k),_=u*Math.sin(c+k);var D=Math.abs(c-f+2*k)<=At?0:1;if(k&&uu(M,S,E,_)===1-p^D){var j=(c+f)/2;M=u*Math.cos(j),S=u*Math.sin(j),E=_=null}}else M=S=0;if(h>Ct&&(d=Math.min(Math.abs(s-u)/2,+e.apply(this,arguments)))>.001){g=u<s^p?0:1;var L=d,q=d;if(h<At){var O=null==E?[M,S]:null==b?[m,x]:gi([m,x],[E,_],[b,w],[M,S]),R=m-O[0],P=x-O[1],z=b-O[0],H=w-O[1],I=1/Math.sin(Math.acos((R*z+P*H)/(Math.sqrt(R*R+P*P)*Math.sqrt(z*z+H*H)))/2),F=Math.sqrt(O[0]*O[0]+O[1]*O[1]);q=Math.min(d,(u-F)/(I-1)),L=Math.min(d,(s-F)/(I+1))}if(null!=b){var $=lu(null==E?[M,S]:[E,_],[m,x],s,L,p),U=lu([b,w],[M,S],s,L,p);d===L?C.push("M",$[0],"A",L,",",L," 0 0,",g," ",$[1],"A",s,",",s," 0 ",1-p^uu($[1][0],$[1][1],U[1][0],U[1][1]),",",p," ",U[1],"A",L,",",L," 0 0,",g," ",U[0]):C.push("M",$[0],"A",L,",",L," 0 1,",g," ",U[0])}else C.push("M",m,",",x);if(null!=E){var B=lu([m,x],[E,_],u,-q,p),W=lu([M,S],null==b?[m,x]:[b,w],u,-q,p);d===q?C.push("L",W[0],"A",q,",",q," 0 0,",g," ",W[1],"A",u,",",u," 0 ",p^uu(W[1][0],W[1][1],B[1][0],B[1][1]),",",1-p," ",B[1],"A",q,",",q," 0 0,",g," ",B[0]):C.push("L",W[0],"A",q,",",q," 0 0,",g," ",B[0])}else C.push("L",M,",",S)}else C.push("M",m,",",x),null!=b&&C.push("A",s,",",s," 0 ",T,",",p," ",b,",",w),C.push("L",M,",",S),null!=E&&C.push("A",u,",",u," 0 ",D,",",1-p," ",E,",",_);return C.push("Z"),C.join("")}function l(t,n){return"M0,"+t+"A"+t+","+t+" 0 1,"+n+" 0,"+-t+"A"+t+","+t+" 0 1,"+n+" 0,"+t}return u.innerRadius=function(n){return arguments.length?(t=wn(n),u):t},u.outerRadius=function(t){return arguments.length?(n=wn(t),u):n},u.cornerRadius=function(t){return arguments.length?(e=wn(t),u):e},u.padRadius=function(t){return arguments.length?(r=t==nu?nu:wn(t),u):r},u.startAngle=function(t){return arguments.length?(i=wn(t),u):i},u.endAngle=function(t){return arguments.length?(o=wn(t),u):o},u.padAngle=function(t){return arguments.length?(a=wn(t),u):a},u.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Lt;return[Math.cos(r)*e,Math.sin(r)*e]},u};var nu="auto";function eu(t){return t.innerRadius}function ru(t){return t.outerRadius}function iu(t){return t.startAngle}function ou(t){return t.endAngle}function au(t){return t&&t.padAngle}function uu(t,n,e,r){return(t-e)*n-(n-r)*t>0?0:1}function lu(t,n,e,r,i){var o=t[0]-n[0],a=t[1]-n[1],u=(i?r:-r)/Math.sqrt(o*o+a*a),l=u*a,s=-u*o,c=t[0]+l,f=t[1]+s,h=n[0]+l,p=n[1]+s,d=(c+h)/2,g=(f+p)/2,v=h-c,y=p-f,m=v*v+y*y,x=e-r,b=c*p-h*f,w=(y<0?-1:1)*Math.sqrt(Math.max(0,x*x*m-b*b)),M=(b*y-v*w)/m,S=(-b*v-y*w)/m,E=(b*y+v*w)/m,_=(-b*v+y*w)/m,k=M-d,N=S-g,C=E-d,T=_-g;return k*k+N*N>C*C+T*T&&(M=E,S=_),[[M-l,S-s],[M*e/x,S*e/x]]}function su(t){var n=si,e=ci,r=Qe,i=fu,o=i.key,a=.7;function u(o){var u,l=[],s=[],c=-1,f=o.length,h=wn(n),p=wn(e);function d(){l.push("M",i(t(s),a))}for(;++c<f;)r.call(this,u=o[c],c)?s.push([+h.call(this,u,c),+p.call(this,u,c)]):s.length&&(d(),s=[]);return s.length&&d(),l.length?l.join(""):null}return u.x=function(t){return arguments.length?(n=t,u):n},u.y=function(t){return arguments.length?(e=t,u):e},u.defined=function(t){return arguments.length?(r=t,u):r},u.interpolate=function(t){return arguments.length?(o="function"==typeof t?i=t:(i=cu.get(t)||fu).key,u):o},u.tension=function(t){return arguments.length?(a=t,u):a},u}o.svg.line=function(){return su(q)};var cu=o.map({linear:fu,"linear-closed":hu,step:function(t){for(var n=0,e=t.length,r=t[0],i=[r[0],",",r[1]];++n<e;)i.push("H",(r[0]+(r=t[n])[0])/2,"V",r[1]);return e>1&&i.push("H",r[0]),i.join("")},"step-before":pu,"step-after":du,basis:yu,"basis-open":function(t){if(t.length<4)return fu(t);for(var n,e=[],r=-1,i=t.length,o=[0],a=[0];++r<3;)n=t[r],o.push(n[0]),a.push(n[1]);for(e.push(mu(wu,o)+","+mu(wu,a)),--r;++r<i;)n=t[r],o.shift(),o.push(n[0]),a.shift(),a.push(n[1]),Mu(e,o,a);return e.join("")},"basis-closed":function(t){for(var n,e,r=-1,i=t.length,o=i+4,a=[],u=[];++r<4;)e=t[r%i],a.push(e[0]),u.push(e[1]);for(n=[mu(wu,a),",",mu(wu,u)],--r;++r<o;)e=t[r%i],a.shift(),a.push(e[0]),u.shift(),u.push(e[1]),Mu(n,a,u);return n.join("")},bundle:function(t,n){var e=t.length-1;if(e)for(var r,i,o=t[0][0],a=t[0][1],u=t[e][0]-o,l=t[e][1]-a,s=-1;++s<=e;)i=s/e,(r=t[s])[0]=n*r[0]+(1-n)*(o+i*u),r[1]=n*r[1]+(1-n)*(a+i*l);return yu(t)},cardinal:function(t,n){return t.length<3?fu(t):t[0]+gu(t,vu(t,n))},"cardinal-open":function(t,n){return t.length<4?fu(t):t[1]+gu(t.slice(1,-1),vu(t,n))},"cardinal-closed":function(t,n){return t.length<3?hu(t):t[0]+gu((t.push(t[0]),t),vu([t[t.length-2]].concat(t,[t[1]]),n))},monotone:function(t){return t.length<3?fu(t):t[0]+gu(t,function(t){for(var n,e,r,i,o=[],a=function(t){for(var n=0,e=t.length-1,r=[],i=t[0],o=t[1],a=r[0]=Su(i,o);++n<e;)r[n]=(a+(a=Su(i=o,o=t[n+1])))/2;return r[n]=a,r}(t),u=-1,l=t.length-1;++u<l;)n=Su(t[u],t[u+1]),M(n)<Ct?a[u]=a[u+1]=0:(i=(e=a[u]/n)*e+(r=a[u+1]/n)*r)>9&&(i=3*n/Math.sqrt(i),a[u]=i*e,a[u+1]=i*r);for(u=-1;++u<=l;)i=(t[Math.min(l,u+1)][0]-t[Math.max(0,u-1)][0])/(6*(1+a[u]*a[u])),o.push([i||0,a[u]*i||0]);return o}(t))}});function fu(t){return t.length>1?t.join("L"):t+"Z"}function hu(t){return t.join("L")+"Z"}function pu(t){for(var n=0,e=t.length,r=t[0],i=[r[0],",",r[1]];++n<e;)i.push("V",(r=t[n])[1],"H",r[0]);return i.join("")}function du(t){for(var n=0,e=t.length,r=t[0],i=[r[0],",",r[1]];++n<e;)i.push("H",(r=t[n])[0],"V",r[1]);return i.join("")}function gu(t,n){if(n.length<1||t.length!=n.length&&t.length!=n.length+2)return fu(t);var e=t.length!=n.length,r="",i=t[0],o=t[1],a=n[0],u=a,l=1;if(e&&(r+="Q"+(o[0]-2*a[0]/3)+","+(o[1]-2*a[1]/3)+","+o[0]+","+o[1],i=t[1],l=2),n.length>1){u=n[1],o=t[l],l++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-u[0])+","+(o[1]-u[1])+","+o[0]+","+o[1];for(var s=2;s<n.length;s++,l++)o=t[l],u=n[s],r+="S"+(o[0]-u[0])+","+(o[1]-u[1])+","+o[0]+","+o[1]}if(e){var c=t[l];r+="Q"+(o[0]+2*u[0]/3)+","+(o[1]+2*u[1]/3)+","+c[0]+","+c[1]}return r}function vu(t,n){for(var e,r=[],i=(1-n)/2,o=t[0],a=t[1],u=1,l=t.length;++u<l;)e=o,o=a,a=t[u],r.push([i*(a[0]-e[0]),i*(a[1]-e[1])]);return r}function yu(t){if(t.length<3)return fu(t);var n=1,e=t.length,r=t[0],i=r[0],o=r[1],a=[i,i,i,(r=t[1])[0]],u=[o,o,o,r[1]],l=[i,",",o,"L",mu(wu,a),",",mu(wu,u)];for(t.push(t[e-1]);++n<=e;)r=t[n],a.shift(),a.push(r[0]),u.shift(),u.push(r[1]),Mu(l,a,u);return t.pop(),l.push("L",r),l.join("")}function mu(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}cu.forEach((function(t,n){n.key=t,n.closed=/-closed$/.test(t)}));var xu=[0,2/3,1/3,0],bu=[0,1/3,2/3,0],wu=[0,1/6,2/3,1/6];function Mu(t,n,e){t.push("C",mu(xu,n),",",mu(xu,e),",",mu(bu,n),",",mu(bu,e),",",mu(wu,n),",",mu(wu,e))}function Su(t,n){return(n[1]-t[1])/(n[0]-t[0])}function Eu(t){for(var n,e,r,i=-1,o=t.length;++i<o;)e=(n=t[i])[0],r=n[1]-Lt,n[0]=e*Math.cos(r),n[1]=e*Math.sin(r);return t}function _u(t){var n=si,e=si,r=0,i=ci,o=Qe,a=fu,u=a.key,l=a,s="L",c=.7;function f(u){var f,h,p,d=[],g=[],v=[],y=-1,m=u.length,x=wn(n),b=wn(r),w=n===e?function(){return h}:wn(e),M=r===i?function(){return p}:wn(i);function S(){d.push("M",a(t(v),c),s,l(t(g.reverse()),c),"Z")}for(;++y<m;)o.call(this,f=u[y],y)?(g.push([h=+x.call(this,f,y),p=+b.call(this,f,y)]),v.push([+w.call(this,f,y),+M.call(this,f,y)])):g.length&&(S(),g=[],v=[]);return g.length&&S(),d.length?d.join(""):null}return f.x=function(t){return arguments.length?(n=e=t,f):e},f.x0=function(t){return arguments.length?(n=t,f):n},f.x1=function(t){return arguments.length?(e=t,f):e},f.y=function(t){return arguments.length?(r=i=t,f):i},f.y0=function(t){return arguments.length?(r=t,f):r},f.y1=function(t){return arguments.length?(i=t,f):i},f.defined=function(t){return arguments.length?(o=t,f):o},f.interpolate=function(t){return arguments.length?(u="function"==typeof t?a=t:(a=cu.get(t)||fu).key,l=a.reverse||a,s=a.closed?"M":"L",f):u},f.tension=function(t){return arguments.length?(c=t,f):c},f}function ku(t){return t.radius}function Nu(t){return[t.x,t.y]}function Cu(t){return function(){var n=t.apply(this,arguments),e=n[0],r=n[1]-Lt;return[e*Math.cos(r),e*Math.sin(r)]}}function Tu(){return 64}function Au(){return"circle"}function Du(t){var n=Math.sqrt(t/At);return"M0,"+n+"A"+n+","+n+" 0 1,1 0,"+-n+"A"+n+","+n+" 0 1,1 0,"+n+"Z"}o.svg.line.radial=function(){var t=su(Eu);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},pu.reverse=du,du.reverse=pu,o.svg.area=function(){return _u(q)},o.svg.area.radial=function(){var t=_u(Eu);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},o.svg.chord=function(){var t=Zr,n=Gr,e=ku,r=iu,i=ou;function o(e,r){var i,o,s=a(this,t,e,r),c=a(this,n,e,r);return"M"+s.p0+u(s.r,s.p1,s.a1-s.a0)+(o=c,((i=s).a0==o.a0&&i.a1==o.a1?l(s.r,s.p1,s.r,s.p0):l(s.r,s.p1,c.r,c.p0)+u(c.r,c.p1,c.a1-c.a0)+l(c.r,c.p1,s.r,s.p0))+"Z")}function a(t,n,o,a){var u=n.call(t,o,a),l=e.call(t,u,a),s=r.call(t,u,a)-Lt,c=i.call(t,u,a)-Lt;return{r:l,a0:s,a1:c,p0:[l*Math.cos(s),l*Math.sin(s)],p1:[l*Math.cos(c),l*Math.sin(c)]}}function u(t,n,e){return"A"+t+","+t+" 0 "+ +(e>At)+",1 "+n}function l(t,n,e,r){return"Q 0,0 "+r}return o.radius=function(t){return arguments.length?(e=wn(t),o):e},o.source=function(n){return arguments.length?(t=wn(n),o):t},o.target=function(t){return arguments.length?(n=wn(t),o):n},o.startAngle=function(t){return arguments.length?(r=wn(t),o):r},o.endAngle=function(t){return arguments.length?(i=wn(t),o):i},o},o.svg.diagonal=function(){var t=Zr,n=Gr,e=Nu;function r(r,i){var o=t.call(this,r,i),a=n.call(this,r,i),u=(o.y+a.y)/2,l=[o,{x:o.x,y:u},{x:a.x,y:u},a];return"M"+(l=l.map(e))[0]+"C"+l[1]+" "+l[2]+" "+l[3]}return r.source=function(n){return arguments.length?(t=wn(n),r):t},r.target=function(t){return arguments.length?(n=wn(t),r):n},r.projection=function(t){return arguments.length?(e=t,r):e},r},o.svg.diagonal.radial=function(){var t=o.svg.diagonal(),n=Nu,e=t.projection;return t.projection=function(t){return arguments.length?e(Cu(n=t)):n},t},o.svg.symbol=function(){var t=Au,n=Tu;function e(e,r){return(ju.get(t.call(this,e,r))||Du)(n.call(this,e,r))}return e.type=function(n){return arguments.length?(t=wn(n),e):t},e.size=function(t){return arguments.length?(n=wn(t),e):n},e};var ju=o.map({circle:Du,cross:function(t){var n=Math.sqrt(t/5)/2;return"M"+-3*n+","+-n+"H"+-n+"V"+-3*n+"H"+n+"V"+-n+"H"+3*n+"V"+n+"H"+n+"V"+3*n+"H"+-n+"V"+n+"H"+-3*n+"Z"},diamond:function(t){var n=Math.sqrt(t/(2*qu)),e=n*qu;return"M0,"+-n+"L"+e+",0 0,"+n+" "+-e+",0Z"},square:function(t){var n=Math.sqrt(t)/2;return"M"+-n+","+-n+"L"+n+","+-n+" "+n+","+n+" "+-n+","+n+"Z"},"triangle-down":function(t){var n=Math.sqrt(t/Lu),e=n*Lu/2;return"M0,"+e+"L"+n+","+-e+" "+-n+","+-e+"Z"},"triangle-up":function(t){var n=Math.sqrt(t/Lu),e=n*Lu/2;return"M0,"+-e+"L"+n+","+e+" "+-n+","+e+"Z"}});o.svg.symbolTypes=ju.keys();var Lu=Math.sqrt(3),qu=Math.tan(30*qt);G.transition=function(t){for(var n,e,r=zu||++Fu,i=Bu(t),o=[],a=Hu||{time:Date.now(),ease:vo,delay:0,duration:250},u=-1,l=this.length;++u<l;){o.push(n=[]);for(var s=this[u],c=-1,f=s.length;++c<f;)(e=s[c])&&Wu(e,c,i,r,a),n.push(e)}return Pu(o,i,r)},G.interrupt=function(t){return this.each(null==t?Ou:Ru(Bu(t)))};var Ou=Ru(Bu());function Ru(t){return function(){var n,e,r;(n=this[t])&&(r=n[e=n.active])&&(r.timer.c=null,r.timer.t=NaN,--n.count?delete n[e]:delete this[t],n.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Pu(t,n,e){return W(t,Iu),t.namespace=n,t.id=e,t}var zu,Hu,Iu=[],Fu=0;function $u(t,n,e,r){var i=t.id,o=t.namespace;return dt(t,"function"==typeof e?function(t,a,u){t[o][i].tween.set(n,r(e.call(t,t.__data__,a,u)))}:(e=r(e),function(t){t[o][i].tween.set(n,e)}))}function Uu(t){return null==t&&(t=""),function(){this.textContent=t}}function Bu(t){return null==t?"__transition__":"__transition_"+t+"__"}function Wu(t,n,e,r,i){var o,a,u,l,s,c=t[e]||(t[e]={active:0,count:0}),f=c[r];function h(e){var i=c.active,h=c[i];for(var d in h&&(h.timer.c=null,h.timer.t=NaN,--c.count,delete c[i],h.event&&h.event.interrupt.call(t,t.__data__,h.index)),c)if(+d<r){var g=c[d];g.timer.c=null,g.timer.t=NaN,--c.count,delete c[d]}a.c=p,Tn((function(){return a.c&&p(e||1)&&(a.c=null,a.t=NaN),1}),0,o),c.active=r,f.event&&f.event.start.call(t,t.__data__,n),s=[],f.tween.forEach((function(e,r){(r=r.call(t,t.__data__,n))&&s.push(r)})),l=f.ease,u=f.duration}function p(i){for(var o=i/u,a=l(o),h=s.length;h>0;)s[--h].call(t,a);if(o>=1)return f.event&&f.event.end.call(t,t.__data__,n),--c.count?delete c[r]:delete t[e],1}f||(o=i.time,a=Tn((function(t){var n=f.delay;if(a.t=n+o,n<=t)return h(t-n);a.c=h}),0,o),f=c[r]={tween:new _,time:o,timer:a,delay:i.delay,duration:i.duration,ease:i.ease,index:n},i=null,++c.count)}Iu.call=G.call,Iu.empty=G.empty,Iu.node=G.node,Iu.size=G.size,o.transition=function(t,n){return t&&t.transition?zu?t.transition(n):t:o.selection().transition(t)},o.transition.prototype=Iu,Iu.select=function(t){var n,e,r,i=this.id,o=this.namespace,a=[];t=J(t);for(var u=-1,l=this.length;++u<l;){a.push(n=[]);for(var s=this[u],c=-1,f=s.length;++c<f;)(r=s[c])&&(e=t.call(r,r.__data__,c,u))?("__data__"in r&&(e.__data__=r.__data__),Wu(e,c,o,i,r[o][i]),n.push(e)):n.push(null)}return Pu(a,o,i)},Iu.selectAll=function(t){var n,e,r,i,o,a=this.id,u=this.namespace,l=[];t=K(t);for(var s=-1,c=this.length;++s<c;)for(var f=this[s],h=-1,p=f.length;++h<p;)if(r=f[h]){o=r[u][a],e=t.call(r,r.__data__,h,s),l.push(n=[]);for(var d=-1,g=e.length;++d<g;)(i=e[d])&&Wu(i,d,u,a,o),n.push(i)}return Pu(l,u,a)},Iu.filter=function(t){var n,e,r=[];"function"!=typeof t&&(t=ht(t));for(var i=0,o=this.length;i<o;i++){r.push(n=[]);for(var a,u=0,l=(a=this[i]).length;u<l;u++)(e=a[u])&&t.call(e,e.__data__,u,i)&&n.push(e)}return Pu(r,this.namespace,this.id)},Iu.tween=function(t,n){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(t):dt(this,null==n?function(n){n[r][e].tween.remove(t)}:function(i){i[r][e].tween.set(t,n)})},Iu.attr=function(t,n){if(arguments.length<2){for(n in t)this.attr(n,t[n]);return this}var e="transform"==t?No:oo,r=o.ns.qualify(t);function i(){this.removeAttribute(r)}function a(){this.removeAttributeNS(r.space,r.local)}function u(t){return null==t?i:(t+="",function(){var n,i=this.getAttribute(r);return i!==t&&(n=e(i,t),function(t){this.setAttribute(r,n(t))})})}function l(t){return null==t?a:(t+="",function(){var n,i=this.getAttributeNS(r.space,r.local);return i!==t&&(n=e(i,t),function(t){this.setAttributeNS(r.space,r.local,n(t))})})}return $u(this,"attr."+t,n,r.local?l:u)},Iu.attrTween=function(t,n){var e=o.ns.qualify(t);return this.tween("attr."+t,e.local?function(t,r){var i=n.call(this,t,r,this.getAttributeNS(e.space,e.local));return i&&function(t){this.setAttributeNS(e.space,e.local,i(t))}}:function(t,r){var i=n.call(this,t,r,this.getAttribute(e));return i&&function(t){this.setAttribute(e,i(t))}})},Iu.style=function(t,n,e){var r=arguments.length;if(r<3){if("string"!=typeof t){for(e in r<2&&(n=""),t)this.style(e,t[e],n);return this}e=""}function i(){this.style.removeProperty(t)}function o(n){return null==n?i:(n+="",function(){var r,i=c(this).getComputedStyle(this,null).getPropertyValue(t);return i!==n&&(r=oo(i,n),function(n){this.style.setProperty(t,r(n),e)})})}return $u(this,"style."+t,n,o)},Iu.styleTween=function(t,n,e){function r(r,i){var o=n.call(this,r,i,c(this).getComputedStyle(this,null).getPropertyValue(t));return o&&function(n){this.style.setProperty(t,o(n),e)}}return arguments.length<3&&(e=""),this.tween("style."+t,r)},Iu.text=function(t){return $u(this,"text",t,Uu)},Iu.remove=function(){var t=this.namespace;return this.each("end.transition",(function(){var n;this[t].count<2&&(n=this.parentNode)&&n.removeChild(this)}))},Iu.ease=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].ease:("function"!=typeof t&&(t=o.ease.apply(o,arguments)),dt(this,(function(r){r[e][n].ease=t})))},Iu.delay=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].delay:dt(this,"function"==typeof t?function(r,i,o){r[e][n].delay=+t.call(r,r.__data__,i,o)}:(t=+t,function(r){r[e][n].delay=t}))},Iu.duration=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].duration:dt(this,"function"==typeof t?function(r,i,o){r[e][n].duration=Math.max(1,t.call(r,r.__data__,i,o))}:(t=Math.max(1,t),function(r){r[e][n].duration=t}))},Iu.each=function(t,n){var e=this.id,r=this.namespace;if(arguments.length<2){var i=Hu,a=zu;try{zu=e,dt(this,(function(n,i,o){Hu=n[r][e],t.call(n,n.__data__,i,o)}))}finally{Hu=i,zu=a}}else dt(this,(function(i){var a=i[r][e];(a.event||(a.event=o.dispatch("start","end","interrupt"))).on(t,n)}));return this},Iu.transition=function(){for(var t,n,e,r=this.id,i=++Fu,o=this.namespace,a=[],u=0,l=this.length;u<l;u++){a.push(t=[]);for(var s,c=0,f=(s=this[u]).length;c<f;c++)(n=s[c])&&Wu(n,c,o,i,{time:(e=n[o][r]).time,ease:e.ease,delay:e.delay+e.duration,duration:e.duration}),t.push(n)}return Pu(a,o,i)},o.svg.axis=function(){var t,n=o.scale.linear(),e=Vu,r=6,i=6,a=3,l=[10],s=null;function c(u){u.each((function(){var u,c=o.select(this),f=this.__chart__||n,h=this.__chart__=n.copy(),p=null==s?h.ticks?h.ticks.apply(h,l):h.domain():s,d=null==t?h.tickFormat?h.tickFormat.apply(h,l):q:t,g=c.selectAll(".tick").data(p,h),v=g.enter().insert("g",".domain").attr("class","tick").style("opacity",Ct),y=o.transition(g.exit()).style("opacity",Ct).remove(),m=o.transition(g.order()).style("opacity",1),x=Math.max(r,0)+a,b=ka(h),w=c.selectAll(".domain").data([0]),M=(w.enter().append("path").attr("class","domain"),o.transition(w));v.append("line"),v.append("text");var S,E,_,k,N=v.select("line"),C=m.select("line"),T=g.select("text").text(d),A=v.select("text"),D=m.select("text"),j="top"===e||"left"===e?-1:1;if("bottom"===e||"top"===e?(u=Xu,S="x",_="y",E="x2",k="y2",T.attr("dy",j<0?"0em":".71em").style("text-anchor","middle"),M.attr("d","M"+b[0]+","+j*i+"V0H"+b[1]+"V"+j*i)):(u=Zu,S="y",_="x",E="y2",k="x2",T.attr("dy",".32em").style("text-anchor",j<0?"end":"start"),M.attr("d","M"+j*i+","+b[0]+"H0V"+b[1]+"H"+j*i)),N.attr(k,j*r),A.attr(_,j*x),C.attr(E,0).attr(k,j*r),D.attr(S,0).attr(_,j*x),h.rangeBand){var L=h,O=L.rangeBand()/2;f=h=function(t){return L(t)+O}}else f.rangeBand?f=h:y.call(u,h,f);v.call(u,f,h),m.call(u,h,h)}))}return c.scale=function(t){return arguments.length?(n=t,c):n},c.orient=function(t){return arguments.length?(e=t in Yu?t+"":Vu,c):e},c.ticks=function(){return arguments.length?(l=u(arguments),c):l},c.tickValues=function(t){return arguments.length?(s=t,c):s},c.tickFormat=function(n){return arguments.length?(t=n,c):t},c.tickSize=function(t){var n=arguments.length;return n?(r=+t,i=+arguments[n-1],c):r},c.innerTickSize=function(t){return arguments.length?(r=+t,c):r},c.outerTickSize=function(t){return arguments.length?(i=+t,c):i},c.tickPadding=function(t){return arguments.length?(a=+t,c):a},c.tickSubdivide=function(){return arguments.length&&c},c};var Vu="bottom",Yu={top:1,right:1,bottom:1,left:1};function Xu(t,n,e){t.attr("transform",(function(t){var r=n(t);return"translate("+(isFinite(r)?r:e(t))+",0)"}))}function Zu(t,n,e){t.attr("transform",(function(t){var r=n(t);return"translate(0,"+(isFinite(r)?r:e(t))+")"}))}o.svg.brush=function(){var t,n,e=U(h,"brushstart","brush","brushend"),r=null,i=null,a=[0,0],u=[0,0],l=!0,s=!0,f=Ju[0];function h(t){t.each((function(){var t=o.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",v).on("touchstart.brush",v),n=t.selectAll(".background").data([0]);n.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var e=t.selectAll(".resize").data(f,q);e.exit().remove(),e.enter().append("g").attr("class",(function(t){return"resize "+t})).style("cursor",(function(t){return Gu[t]})).append("rect").attr("x",(function(t){return/[ew]$/.test(t)?-3:null})).attr("y",(function(t){return/^[ns]/.test(t)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),e.style("display",h.empty()?"none":null);var a,u=o.transition(t),l=o.transition(n);r&&(a=ka(r),l.attr("x",a[0]).attr("width",a[1]-a[0]),d(u)),i&&(a=ka(i),l.attr("y",a[0]).attr("height",a[1]-a[0]),g(u)),p(u)}))}function p(t){t.selectAll(".resize").attr("transform",(function(t){return"translate("+a[+/e$/.test(t)]+","+u[+/^s/.test(t)]+")"}))}function d(t){t.select(".extent").attr("x",a[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",a[1]-a[0])}function g(t){t.select(".extent").attr("y",u[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",u[1]-u[0])}function v(){var f,v,y=this,m=o.select(o.event.target),x=e.of(y,arguments),b=o.select(y),w=m.datum(),M=!/^(n|s)$/.test(w)&&r,S=!/^(e|w)$/.test(w)&&i,E=m.classed("extent"),_=Et(y),k=o.mouse(y),N=o.select(c(y)).on("keydown.brush",A).on("keyup.brush",D);if(o.event.changedTouches?N.on("touchmove.brush",j).on("touchend.brush",q):N.on("mousemove.brush",j).on("mouseup.brush",q),b.interrupt().selectAll("*").interrupt(),E)k[0]=a[0]-k[0],k[1]=u[0]-k[1];else if(w){var C=+/w$/.test(w),T=+/^n/.test(w);v=[a[1-C]-k[0],u[1-T]-k[1]],k[0]=a[C],k[1]=u[T]}else o.event.altKey&&(f=k.slice());function A(){32==o.event.keyCode&&(E||(f=null,k[0]-=a[1],k[1]-=u[1],E=2),F())}function D(){32==o.event.keyCode&&2==E&&(k[0]+=a[1],k[1]+=u[1],E=0,F())}function j(){var t=o.mouse(y),n=!1;v&&(t[0]+=v[0],t[1]+=v[1]),E||(o.event.altKey?(f||(f=[(a[0]+a[1])/2,(u[0]+u[1])/2]),k[0]=a[+(t[0]<f[0])],k[1]=u[+(t[1]<f[1])]):f=null),M&&L(t,r,0)&&(d(b),n=!0),S&&L(t,i,1)&&(g(b),n=!0),n&&(p(b),x({type:"brush",mode:E?"move":"resize"}))}function L(e,r,i){var o,c,h=ka(r),p=h[0],d=h[1],g=k[i],v=i?u:a,y=v[1]-v[0];if(E&&(p-=g,d-=y+g),o=(i?s:l)?Math.max(p,Math.min(d,e[i])):e[i],E?c=(o+=g)+y:(f&&(g=Math.max(p,Math.min(d,2*f[i]-o))),g<o?(c=o,o=g):c=g),v[0]!=o||v[1]!=c)return i?n=null:t=null,v[0]=o,v[1]=c,!0}function q(){j(),b.style("pointer-events","all").selectAll(".resize").style("display",h.empty()?"none":null),o.select("body").style("cursor",null),N.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),_(),x({type:"brushend"})}b.style("pointer-events","none").selectAll(".resize").style("display",null),o.select("body").style("cursor",m.style("cursor")),x({type:"brushstart"}),j()}return h.event=function(r){r.each((function(){var r=e.of(this,arguments),i={x:a,y:u,i:t,j:n},l=this.__chart__||i;this.__chart__=i,zu?o.select(this).transition().each("start.brush",(function(){t=l.i,n=l.j,a=l.x,u=l.y,r({type:"brushstart"})})).tween("brush:brush",(function(){var e=ao(a,i.x),o=ao(u,i.y);return t=n=null,function(t){a=i.x=e(t),u=i.y=o(t),r({type:"brush",mode:"resize"})}})).each("end.brush",(function(){t=i.i,n=i.j,r({type:"brush",mode:"resize"}),r({type:"brushend"})})):(r({type:"brushstart"}),r({type:"brush",mode:"resize"}),r({type:"brushend"}))}))},h.x=function(t){return arguments.length?(f=Ju[!(r=t)<<1|!i],h):r},h.y=function(t){return arguments.length?(f=Ju[!r<<1|!(i=t)],h):i},h.clamp=function(t){return arguments.length?(r&&i?(l=!!t[0],s=!!t[1]):r?l=!!t:i&&(s=!!t),h):r&&i?[l,s]:r?l:i?s:null},h.extent=function(e){var o,l,s,c,f;return arguments.length?(r&&(o=e[0],l=e[1],i&&(o=o[0],l=l[0]),t=[o,l],r.invert&&(o=r(o),l=r(l)),l<o&&(f=o,o=l,l=f),o==a[0]&&l==a[1]||(a=[o,l])),i&&(s=e[0],c=e[1],r&&(s=s[1],c=c[1]),n=[s,c],i.invert&&(s=i(s),c=i(c)),c<s&&(f=s,s=c,c=f),s==u[0]&&c==u[1]||(u=[s,c])),h):(r&&(t?(o=t[0],l=t[1]):(o=a[0],l=a[1],r.invert&&(o=r.invert(o),l=r.invert(l)),l<o&&(f=o,o=l,l=f))),i&&(n?(s=n[0],c=n[1]):(s=u[0],c=u[1],i.invert&&(s=i.invert(s),c=i.invert(c)),c<s&&(f=s,s=c,c=f))),r&&i?[[o,s],[l,c]]:r?[o,l]:i&&[s,c])},h.clear=function(){return h.empty()||(a=[0,0],u=[0,0],t=n=null),h},h.empty=function(){return!!r&&a[0]==a[1]||!!i&&u[0]==u[1]},o.rebind(h,e,"on")};var Gu={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ju=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Ku=Hn.format=de.timeFormat,Qu=Ku.utc,tl=Qu("%Y-%m-%dT%H:%M:%S.%LZ");function nl(t){return t.toISOString()}function el(t,n,e){function r(n){return t(n)}function i(t,e){var r=(t[1]-t[0])/e,i=o.bisect(il,r);return i==il.length?[n.year,Oa(t.map((function(t){return t/31536e6})),e)[2]]:i?n[r/il[i-1]<il[i]/r?i-1:i]:[ul,Oa(t,e)[2]]}return r.invert=function(n){return rl(t.invert(n))},r.domain=function(n){return arguments.length?(t.domain(n),r):t.domain().map(rl)},r.nice=function(t,n){var e=r.domain(),o=_a(e),a=null==t?i(o,10):"number"==typeof t&&i(o,t);function u(e){return!isNaN(e)&&!t.range(e,rl(+e+1),n).length}return a&&(t=a[0],n=a[1]),r.domain(Ca(e,n>1?{floor:function(n){for(;u(n=t.floor(n));)n=rl(n-1);return n},ceil:function(n){for(;u(n=t.ceil(n));)n=rl(+n+1);return n}}:t))},r.ticks=function(t,n){var e=_a(r.domain()),o=null==t?i(e,10):"number"==typeof t?i(e,t):!t.range&&[{range:t},n];return o&&(t=o[0],n=o[1]),t.range(e[0],rl(+e[1]+1),n<1?1:n)},r.tickFormat=function(){return e},r.copy=function(){return el(t.copy(),n,e)},La(r,t)}function rl(t){return new Date(t)}Ku.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?nl:tl,nl.parse=function(t){var n=new Date(t);return isNaN(n)?null:n},nl.toString=tl.toString,Hn.second=Un((function(t){return new In(1e3*Math.floor(t/1e3))}),(function(t,n){t.setTime(t.getTime()+1e3*Math.floor(n))}),(function(t){return t.getSeconds()})),Hn.seconds=Hn.second.range,Hn.seconds.utc=Hn.second.utc.range,Hn.minute=Un((function(t){return new In(6e4*Math.floor(t/6e4))}),(function(t,n){t.setTime(t.getTime()+6e4*Math.floor(n))}),(function(t){return t.getMinutes()})),Hn.minutes=Hn.minute.range,Hn.minutes.utc=Hn.minute.utc.range,Hn.hour=Un((function(t){var n=t.getTimezoneOffset()/60;return new In(36e5*(Math.floor(t/36e5-n)+n))}),(function(t,n){t.setTime(t.getTime()+36e5*Math.floor(n))}),(function(t){return t.getHours()})),Hn.hours=Hn.hour.range,Hn.hours.utc=Hn.hour.utc.range,Hn.month=Un((function(t){return(t=Hn.day(t)).setDate(1),t}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t){return t.getMonth()})),Hn.months=Hn.month.range,Hn.months.utc=Hn.month.utc.range;var il=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],ol=[[Hn.second,1],[Hn.second,5],[Hn.second,15],[Hn.second,30],[Hn.minute,1],[Hn.minute,5],[Hn.minute,15],[Hn.minute,30],[Hn.hour,1],[Hn.hour,3],[Hn.hour,6],[Hn.hour,12],[Hn.day,1],[Hn.day,2],[Hn.week,1],[Hn.month,1],[Hn.month,3],[Hn.year,1]],al=Ku.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Qe]]),ul={range:function(t,n,e){return o.range(Math.ceil(t/e)*e,+n,e).map(rl)},floor:q,ceil:q};ol.year=Hn.year,Hn.scale=function(){return el(o.scale.linear(),ol,al)};var ll=ol.map((function(t){return[t[0].utc,t[1]]})),sl=Qu.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Qe]]);function cl(t){return JSON.parse(t.responseText)}function fl(t){var n=l.createRange();return n.selectNode(l.body),n.createContextualFragment(t.responseText)}ll.year=Hn.year.utc,Hn.scale.utc=function(){return el(o.scale.linear(),ll,sl)},o.text=Mn((function(t){return t.responseText})),o.json=function(t,n){return Sn(t,"application/json",cl,n)},o.html=function(t,n){return Sn(t,"text/html",fl,n)},o.xml=Mn((function(t){return t.responseXML})),this.d3=o,void 0===(i="function"==typeof(r=o)?r.call(n,e,n,t):r)||(t.exports=i)}()},291:function(t,n){var e;!function(n,e){"use strict";"object"==typeof t.exports?t.exports=n.document?e(n,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(n)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,u=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},s=o.push,c=o.indexOf,f={},h=f.toString,p=f.hasOwnProperty,d=p.toString,g=d.call(Object),v={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},m=function(t){return null!=t&&t===t.window},x=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,n,e){var r,i,o=(e=e||x).createElement("script");if(o.text=t,n)for(r in b)(i=n[r]||n.getAttribute&&n.getAttribute(r))&&o.setAttribute(r,i);e.head.appendChild(o).parentNode.removeChild(o)}function M(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?f[h.call(t)]||"object":typeof t}var S="3.6.0",E=function(t,n){return new E.fn.init(t,n)};function _(t){var n=!!t&&"length"in t&&t.length,e=M(t);return!y(t)&&!m(t)&&("array"===e||0===n||"number"==typeof n&&n>0&&n-1 in t)}E.fn=E.prototype={jquery:S,constructor:E,length:0,toArray:function(){return u.call(this)},get:function(t){return null==t?u.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var n=E.merge(this.constructor(),t);return n.prevObject=this,n},each:function(t){return E.each(this,t)},map:function(t){return this.pushStack(E.map(this,(function(n,e){return t.call(n,e,n)})))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,(function(t,n){return(n+1)%2})))},odd:function(){return this.pushStack(E.grep(this,(function(t,n){return n%2})))},eq:function(t){var n=this.length,e=+t+(t<0?n:0);return this.pushStack(e>=0&&e<n?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:o.sort,splice:o.splice},E.extend=E.fn.extend=function(){var t,n,e,r,i,o,a=arguments[0]||{},u=1,l=arguments.length,s=!1;for("boolean"==typeof a&&(s=a,a=arguments[u]||{},u++),"object"==typeof a||y(a)||(a={}),u===l&&(a=this,u--);u<l;u++)if(null!=(t=arguments[u]))for(n in t)r=t[n],"__proto__"!==n&&a!==r&&(s&&r&&(E.isPlainObject(r)||(i=Array.isArray(r)))?(e=a[n],o=i&&!Array.isArray(e)?[]:i||E.isPlainObject(e)?e:{},i=!1,a[n]=E.extend(s,o,r)):void 0!==r&&(a[n]=r));return a},E.extend({expando:"jQuery"+(S+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var n,e;return!(!t||"[object Object]"!==h.call(t)||(n=a(t))&&("function"!=typeof(e=p.call(n,"constructor")&&n.constructor)||d.call(e)!==g))},isEmptyObject:function(t){var n;for(n in t)return!1;return!0},globalEval:function(t,n,e){w(t,{nonce:n&&n.nonce},e)},each:function(t,n){var e,r=0;if(_(t))for(e=t.length;r<e&&!1!==n.call(t[r],r,t[r]);r++);else for(r in t)if(!1===n.call(t[r],r,t[r]))break;return t},makeArray:function(t,n){var e=n||[];return null!=t&&(_(Object(t))?E.merge(e,"string"==typeof t?[t]:t):s.call(e,t)),e},inArray:function(t,n,e){return null==n?-1:c.call(n,t,e)},merge:function(t,n){for(var e=+n.length,r=0,i=t.length;r<e;r++)t[i++]=n[r];return t.length=i,t},grep:function(t,n,e){for(var r=[],i=0,o=t.length,a=!e;i<o;i++)!n(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,n,e){var r,i,o=0,a=[];if(_(t))for(r=t.length;o<r;o++)null!=(i=n(t[o],o,e))&&a.push(i);else for(o in t)null!=(i=n(t[o],o,e))&&a.push(i);return l(a)},guid:1,support:v}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=o[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,n){f["[object "+n+"]"]=n.toLowerCase()}));var k=function(t){var n,e,r,i,o,a,u,l,s,c,f,h,p,d,g,v,y,m,x,b="sizzle"+1*new Date,w=t.document,M=0,S=0,E=lt(),_=lt(),k=lt(),N=lt(),C=function(t,n){return t===n&&(f=!0),0},T={}.hasOwnProperty,A=[],D=A.pop,j=A.push,L=A.push,q=A.slice,O=function(t,n){for(var e=0,r=t.length;e<r;e++)if(t[e]===n)return e;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",z="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",H="\\[[\\x20\\t\\r\\n\\f]*("+z+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+P+"*\\]",I=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",F=new RegExp(P+"+","g"),$=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),B=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),W=new RegExp(P+"|>"),V=new RegExp(I),Y=new RegExp("^"+z+"$"),X={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,G=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,nt=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),et=function(t,n){var e="0x"+t.slice(1)-65536;return n||(e<0?String.fromCharCode(e+65536):String.fromCharCode(e>>10|55296,1023&e|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,n){return n?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},at=bt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(A=q.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(t){L={apply:A.length?function(t,n){j.apply(t,q.call(n))}:function(t,n){for(var e=t.length,r=0;t[e++]=n[r++];);t.length=e-1}}}function ut(t,n,r,i){var o,u,s,c,f,d,y,m=n&&n.ownerDocument,w=n?n.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return r;if(!i&&(h(n),n=n||p,g)){if(11!==w&&(f=Q.exec(t)))if(o=f[1]){if(9===w){if(!(s=n.getElementById(o)))return r;if(s.id===o)return r.push(s),r}else if(m&&(s=m.getElementById(o))&&x(n,s)&&s.id===o)return r.push(s),r}else{if(f[2])return L.apply(r,n.getElementsByTagName(t)),r;if((o=f[3])&&e.getElementsByClassName&&n.getElementsByClassName)return L.apply(r,n.getElementsByClassName(o)),r}if(e.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==w||"object"!==n.nodeName.toLowerCase())){if(y=t,m=n,1===w&&(W.test(t)||B.test(t))){for((m=tt.test(t)&&yt(n.parentNode)||n)===n&&e.scope||((c=n.getAttribute("id"))?c=c.replace(rt,it):n.setAttribute("id",c=b)),u=(d=a(t)).length;u--;)d[u]=(c?"#"+c:":scope")+" "+xt(d[u]);y=d.join(",")}try{return L.apply(r,m.querySelectorAll(y)),r}catch(n){N(t,!0)}finally{c===b&&n.removeAttribute("id")}}}return l(t.replace($,"$1"),n,r,i)}function lt(){var t=[];return function n(e,i){return t.push(e+" ")>r.cacheLength&&delete n[t.shift()],n[e+" "]=i}}function st(t){return t[b]=!0,t}function ct(t){var n=p.createElement("fieldset");try{return!!t(n)}catch(t){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function ft(t,n){for(var e=t.split("|"),i=e.length;i--;)r.attrHandle[e[i]]=n}function ht(t,n){var e=n&&t,r=e&&1===t.nodeType&&1===n.nodeType&&t.sourceIndex-n.sourceIndex;if(r)return r;if(e)for(;e=e.nextSibling;)if(e===n)return-1;return t?1:-1}function pt(t){return function(n){return"input"===n.nodeName.toLowerCase()&&n.type===t}}function dt(t){return function(n){var e=n.nodeName.toLowerCase();return("input"===e||"button"===e)&&n.type===t}}function gt(t){return function(n){return"form"in n?n.parentNode&&!1===n.disabled?"label"in n?"label"in n.parentNode?n.parentNode.disabled===t:n.disabled===t:n.isDisabled===t||n.isDisabled!==!t&&at(n)===t:n.disabled===t:"label"in n&&n.disabled===t}}function vt(t){return st((function(n){return n=+n,st((function(e,r){for(var i,o=t([],e.length,n),a=o.length;a--;)e[i=o[a]]&&(e[i]=!(r[i]=e[i]))}))}))}function yt(t){return t&&void 0!==t.getElementsByTagName&&t}for(n in e=ut.support={},o=ut.isXML=function(t){var n=t&&t.namespaceURI,e=t&&(t.ownerDocument||t).documentElement;return!Z.test(n||e&&e.nodeName||"HTML")},h=ut.setDocument=function(t){var n,i,a=t?t.ownerDocument||t:w;return a!=p&&9===a.nodeType&&a.documentElement?(d=(p=a).documentElement,g=!o(p),w!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),e.scope=ct((function(t){return d.appendChild(t).appendChild(p.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),e.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),e.getElementsByTagName=ct((function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length})),e.getElementsByClassName=K.test(p.getElementsByClassName),e.getById=ct((function(t){return d.appendChild(t).id=b,!p.getElementsByName||!p.getElementsByName(b).length})),e.getById?(r.filter.ID=function(t){var n=t.replace(nt,et);return function(t){return t.getAttribute("id")===n}},r.find.ID=function(t,n){if(void 0!==n.getElementById&&g){var e=n.getElementById(t);return e?[e]:[]}}):(r.filter.ID=function(t){var n=t.replace(nt,et);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}},r.find.ID=function(t,n){if(void 0!==n.getElementById&&g){var e,r,i,o=n.getElementById(t);if(o){if((e=o.getAttributeNode("id"))&&e.value===t)return[o];for(i=n.getElementsByName(t),r=0;o=i[r++];)if((e=o.getAttributeNode("id"))&&e.value===t)return[o]}return[]}}),r.find.TAG=e.getElementsByTagName?function(t,n){return void 0!==n.getElementsByTagName?n.getElementsByTagName(t):e.qsa?n.querySelectorAll(t):void 0}:function(t,n){var e,r=[],i=0,o=n.getElementsByTagName(t);if("*"===t){for(;e=o[i++];)1===e.nodeType&&r.push(e);return r}return o},r.find.CLASS=e.getElementsByClassName&&function(t,n){if(void 0!==n.getElementsByClassName&&g)return n.getElementsByClassName(t)},y=[],v=[],(e.qsa=K.test(p.querySelectorAll))&&(ct((function(t){var n;d.appendChild(t).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+R+")"),t.querySelectorAll("[id~="+b+"-]").length||v.push("~="),(n=p.createElement("input")).setAttribute("name",""),t.appendChild(n),t.querySelectorAll("[name='']").length||v.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||v.push(".#.+[+~]"),t.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),ct((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var n=p.createElement("input");n.setAttribute("type","hidden"),t.appendChild(n).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),d.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")}))),(e.matchesSelector=K.test(m=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ct((function(t){e.disconnectedMatch=m.call(t,"*"),m.call(t,"[s!='']:x"),y.push("!=",I)})),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),n=K.test(d.compareDocumentPosition),x=n||K.test(d.contains)?function(t,n){var e=9===t.nodeType?t.documentElement:t,r=n&&n.parentNode;return t===r||!(!r||1!==r.nodeType||!(e.contains?e.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,n){if(n)for(;n=n.parentNode;)if(n===t)return!0;return!1},C=n?function(t,n){if(t===n)return f=!0,0;var r=!t.compareDocumentPosition-!n.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(n.ownerDocument||n)?t.compareDocumentPosition(n):1)||!e.sortDetached&&n.compareDocumentPosition(t)===r?t==p||t.ownerDocument==w&&x(w,t)?-1:n==p||n.ownerDocument==w&&x(w,n)?1:c?O(c,t)-O(c,n):0:4&r?-1:1)}:function(t,n){if(t===n)return f=!0,0;var e,r=0,i=t.parentNode,o=n.parentNode,a=[t],u=[n];if(!i||!o)return t==p?-1:n==p?1:i?-1:o?1:c?O(c,t)-O(c,n):0;if(i===o)return ht(t,n);for(e=t;e=e.parentNode;)a.unshift(e);for(e=n;e=e.parentNode;)u.unshift(e);for(;a[r]===u[r];)r++;return r?ht(a[r],u[r]):a[r]==w?-1:u[r]==w?1:0},p):p},ut.matches=function(t,n){return ut(t,null,null,n)},ut.matchesSelector=function(t,n){if(h(t),e.matchesSelector&&g&&!N[n+" "]&&(!y||!y.test(n))&&(!v||!v.test(n)))try{var r=m.call(t,n);if(r||e.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){N(n,!0)}return ut(n,p,null,[t]).length>0},ut.contains=function(t,n){return(t.ownerDocument||t)!=p&&h(t),x(t,n)},ut.attr=function(t,n){(t.ownerDocument||t)!=p&&h(t);var i=r.attrHandle[n.toLowerCase()],o=i&&T.call(r.attrHandle,n.toLowerCase())?i(t,n,!g):void 0;return void 0!==o?o:e.attributes||!g?t.getAttribute(n):(o=t.getAttributeNode(n))&&o.specified?o.value:null},ut.escape=function(t){return(t+"").replace(rt,it)},ut.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ut.uniqueSort=function(t){var n,r=[],i=0,o=0;if(f=!e.detectDuplicates,c=!e.sortStable&&t.slice(0),t.sort(C),f){for(;n=t[o++];)n===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return c=null,t},i=ut.getText=function(t){var n,e="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)e+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;n=t[r++];)e+=i(n);return e},(r=ut.selectors={cacheLength:50,createPseudo:st,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,et),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,et),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ut.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ut.error(t[0]),t},PSEUDO:function(t){var n,e=!t[6]&&t[2];return X.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":e&&V.test(e)&&(n=a(e,!0))&&(n=e.indexOf(")",e.length-n)-e.length)&&(t[0]=t[0].slice(0,n),t[2]=e.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var n=t.replace(nt,et).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===n}},CLASS:function(t){var n=E[t+" "];return n||(n=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+P+"|$)"))&&E(t,(function(t){return n.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,n,e){return function(r){var i=ut.attr(r,t);return null==i?"!="===n:!n||(i+="","="===n?i===e:"!="===n?i!==e:"^="===n?e&&0===i.indexOf(e):"*="===n?e&&i.indexOf(e)>-1:"$="===n?e&&i.slice(-e.length)===e:"~="===n?(" "+i.replace(F," ")+" ").indexOf(e)>-1:"|="===n&&(i===e||i.slice(0,e.length+1)===e+"-"))}},CHILD:function(t,n,e,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===n;return 1===r&&0===i?function(t){return!!t.parentNode}:function(n,e,l){var s,c,f,h,p,d,g=o!==a?"nextSibling":"previousSibling",v=n.parentNode,y=u&&n.nodeName.toLowerCase(),m=!l&&!u,x=!1;if(v){if(o){for(;g;){for(h=n;h=h[g];)if(u?h.nodeName.toLowerCase()===y:1===h.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?v.firstChild:v.lastChild],a&&m){for(x=(p=(s=(c=(f=(h=v)[b]||(h[b]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===M&&s[1])&&s[2],h=p&&v.childNodes[p];h=++p&&h&&h[g]||(x=p=0)||d.pop();)if(1===h.nodeType&&++x&&h===n){c[t]=[M,p,x];break}}else if(m&&(x=p=(s=(c=(f=(h=n)[b]||(h[b]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===M&&s[1]),!1===x)for(;(h=++p&&h&&h[g]||(x=p=0)||d.pop())&&((u?h.nodeName.toLowerCase()!==y:1!==h.nodeType)||!++x||(m&&((c=(f=h[b]||(h[b]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]=[M,x]),h!==n)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(t,n){var e,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||ut.error("unsupported pseudo: "+t);return i[b]?i(n):i.length>1?(e=[t,t,"",n],r.setFilters.hasOwnProperty(t.toLowerCase())?st((function(t,e){for(var r,o=i(t,n),a=o.length;a--;)t[r=O(t,o[a])]=!(e[r]=o[a])})):function(t){return i(t,0,e)}):i}},pseudos:{not:st((function(t){var n=[],e=[],r=u(t.replace($,"$1"));return r[b]?st((function(t,n,e,i){for(var o,a=r(t,null,i,[]),u=t.length;u--;)(o=a[u])&&(t[u]=!(n[u]=o))})):function(t,i,o){return n[0]=t,r(n,null,o,e),n[0]=null,!e.pop()}})),has:st((function(t){return function(n){return ut(t,n).length>0}})),contains:st((function(t){return t=t.replace(nt,et),function(n){return(n.textContent||i(n)).indexOf(t)>-1}})),lang:st((function(t){return Y.test(t||"")||ut.error("unsupported lang: "+t),t=t.replace(nt,et).toLowerCase(),function(n){var e;do{if(e=g?n.lang:n.getAttribute("xml:lang")||n.getAttribute("lang"))return(e=e.toLowerCase())===t||0===e.indexOf(t+"-")}while((n=n.parentNode)&&1===n.nodeType);return!1}})),target:function(n){var e=t.location&&t.location.hash;return e&&e.slice(1)===n.id},root:function(t){return t===d},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var n=t.nodeName.toLowerCase();return"input"===n&&!!t.checked||"option"===n&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return J.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){var n=t.nodeName.toLowerCase();return"input"===n&&"button"===t.type||"button"===n},text:function(t){var n;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(n=t.getAttribute("type"))||"text"===n.toLowerCase())},first:vt((function(){return[0]})),last:vt((function(t,n){return[n-1]})),eq:vt((function(t,n,e){return[e<0?e+n:e]})),even:vt((function(t,n){for(var e=0;e<n;e+=2)t.push(e);return t})),odd:vt((function(t,n){for(var e=1;e<n;e+=2)t.push(e);return t})),lt:vt((function(t,n,e){for(var r=e<0?e+n:e>n?n:e;--r>=0;)t.push(r);return t})),gt:vt((function(t,n,e){for(var r=e<0?e+n:e;++r<n;)t.push(r);return t}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[n]=pt(n);for(n in{submit:!0,reset:!0})r.pseudos[n]=dt(n);function mt(){}function xt(t){for(var n=0,e=t.length,r="";n<e;n++)r+=t[n].value;return r}function bt(t,n,e){var r=n.dir,i=n.next,o=i||r,a=e&&"parentNode"===o,u=S++;return n.first?function(n,e,i){for(;n=n[r];)if(1===n.nodeType||a)return t(n,e,i);return!1}:function(n,e,l){var s,c,f,h=[M,u];if(l){for(;n=n[r];)if((1===n.nodeType||a)&&t(n,e,l))return!0}else for(;n=n[r];)if(1===n.nodeType||a)if(c=(f=n[b]||(n[b]={}))[n.uniqueID]||(f[n.uniqueID]={}),i&&i===n.nodeName.toLowerCase())n=n[r]||n;else{if((s=c[o])&&s[0]===M&&s[1]===u)return h[2]=s[2];if(c[o]=h,h[2]=t(n,e,l))return!0}return!1}}function wt(t){return t.length>1?function(n,e,r){for(var i=t.length;i--;)if(!t[i](n,e,r))return!1;return!0}:t[0]}function Mt(t,n,e,r,i){for(var o,a=[],u=0,l=t.length,s=null!=n;u<l;u++)(o=t[u])&&(e&&!e(o,r,i)||(a.push(o),s&&n.push(u)));return a}function St(t,n,e,r,i,o){return r&&!r[b]&&(r=St(r)),i&&!i[b]&&(i=St(i,o)),st((function(o,a,u,l){var s,c,f,h=[],p=[],d=a.length,g=o||function(t,n,e){for(var r=0,i=n.length;r<i;r++)ut(t,n[r],e);return e}(n||"*",u.nodeType?[u]:u,[]),v=!t||!o&&n?g:Mt(g,h,t,u,l),y=e?i||(o?t:d||r)?[]:a:v;if(e&&e(v,y,u,l),r)for(s=Mt(y,p),r(s,[],u,l),c=s.length;c--;)(f=s[c])&&(y[p[c]]=!(v[p[c]]=f));if(o){if(i||t){if(i){for(s=[],c=y.length;c--;)(f=y[c])&&s.push(v[c]=f);i(null,y=[],s,l)}for(c=y.length;c--;)(f=y[c])&&(s=i?O(o,f):h[c])>-1&&(o[s]=!(a[s]=f))}}else y=Mt(y===a?y.splice(d,y.length):y),i?i(null,a,y,l):L.apply(a,y)}))}function Et(t){for(var n,e,i,o=t.length,a=r.relative[t[0].type],u=a||r.relative[" "],l=a?1:0,c=bt((function(t){return t===n}),u,!0),f=bt((function(t){return O(n,t)>-1}),u,!0),h=[function(t,e,r){var i=!a&&(r||e!==s)||((n=e).nodeType?c(t,e,r):f(t,e,r));return n=null,i}];l<o;l++)if(e=r.relative[t[l].type])h=[bt(wt(h),e)];else{if((e=r.filter[t[l].type].apply(null,t[l].matches))[b]){for(i=++l;i<o&&!r.relative[t[i].type];i++);return St(l>1&&wt(h),l>1&&xt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace($,"$1"),e,l<i&&Et(t.slice(l,i)),i<o&&Et(t=t.slice(i)),i<o&&xt(t))}h.push(e)}return wt(h)}return mt.prototype=r.filters=r.pseudos,r.setFilters=new mt,a=ut.tokenize=function(t,n){var e,i,o,a,u,l,s,c=_[t+" "];if(c)return n?0:c.slice(0);for(u=t,l=[],s=r.preFilter;u;){for(a in e&&!(i=U.exec(u))||(i&&(u=u.slice(i[0].length)||u),l.push(o=[])),e=!1,(i=B.exec(u))&&(e=i.shift(),o.push({value:e,type:i[0].replace($," ")}),u=u.slice(e.length)),r.filter)!(i=X[a].exec(u))||s[a]&&!(i=s[a](i))||(e=i.shift(),o.push({value:e,type:a,matches:i}),u=u.slice(e.length));if(!e)break}return n?u.length:u?ut.error(t):_(t,l).slice(0)},u=ut.compile=function(t,n){var e,i=[],o=[],u=k[t+" "];if(!u){for(n||(n=a(t)),e=n.length;e--;)(u=Et(n[e]))[b]?i.push(u):o.push(u);(u=k(t,function(t,n){var e=n.length>0,i=t.length>0,o=function(o,a,u,l,c){var f,d,v,y=0,m="0",x=o&&[],b=[],w=s,S=o||i&&r.find.TAG("*",c),E=M+=null==w?1:Math.random()||.1,_=S.length;for(c&&(s=a==p||a||c);m!==_&&null!=(f=S[m]);m++){if(i&&f){for(d=0,a||f.ownerDocument==p||(h(f),u=!g);v=t[d++];)if(v(f,a||p,u)){l.push(f);break}c&&(M=E)}e&&((f=!v&&f)&&y--,o&&x.push(f))}if(y+=m,e&&m!==y){for(d=0;v=n[d++];)v(x,b,a,u);if(o){if(y>0)for(;m--;)x[m]||b[m]||(b[m]=D.call(l));b=Mt(b)}L.apply(l,b),c&&!o&&b.length>0&&y+n.length>1&&ut.uniqueSort(l)}return c&&(M=E,s=w),x};return e?st(o):o}(o,i))).selector=t}return u},l=ut.select=function(t,n,e,i){var o,l,s,c,f,h="function"==typeof t&&t,p=!i&&a(t=h.selector||t);if(e=e||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(s=l[0]).type&&9===n.nodeType&&g&&r.relative[l[1].type]){if(!(n=(r.find.ID(s.matches[0].replace(nt,et),n)||[])[0]))return e;h&&(n=n.parentNode),t=t.slice(l.shift().value.length)}for(o=X.needsContext.test(t)?0:l.length;o--&&(s=l[o],!r.relative[c=s.type]);)if((f=r.find[c])&&(i=f(s.matches[0].replace(nt,et),tt.test(l[0].type)&&yt(n.parentNode)||n))){if(l.splice(o,1),!(t=i.length&&xt(l)))return L.apply(e,i),e;break}}return(h||u(t,p))(i,n,!g,e,!n||tt.test(t)&&yt(n.parentNode)||n),e},e.sortStable=b.split("").sort(C).join("")===b,e.detectDuplicates=!!f,h(),e.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))})),ct((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ft("type|href|height|width",(function(t,n,e){if(!e)return t.getAttribute(n,"type"===n.toLowerCase()?1:2)})),e.attributes&&ct((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ft("value",(function(t,n,e){if(!e&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||ft(R,(function(t,n,e){var r;if(!e)return!0===t[n]?n.toLowerCase():(r=t.getAttributeNode(n))&&r.specified?r.value:null})),ut}(r);E.find=k,E.expr=k.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=k.uniqueSort,E.text=k.getText,E.isXMLDoc=k.isXML,E.contains=k.contains,E.escapeSelector=k.escape;var N=function(t,n,e){for(var r=[],i=void 0!==e;(t=t[n])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&E(t).is(e))break;r.push(t)}return r},C=function(t,n){for(var e=[];t;t=t.nextSibling)1===t.nodeType&&t!==n&&e.push(t);return e},T=E.expr.match.needsContext;function A(t,n){return t.nodeName&&t.nodeName.toLowerCase()===n.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(t,n,e){return y(n)?E.grep(t,(function(t,r){return!!n.call(t,r,t)!==e})):n.nodeType?E.grep(t,(function(t){return t===n!==e})):"string"!=typeof n?E.grep(t,(function(t){return c.call(n,t)>-1!==e})):E.filter(n,t,e)}E.filter=function(t,n,e){var r=n[0];return e&&(t=":not("+t+")"),1===n.length&&1===r.nodeType?E.find.matchesSelector(r,t)?[r]:[]:E.find.matches(t,E.grep(n,(function(t){return 1===t.nodeType})))},E.fn.extend({find:function(t){var n,e,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(E(t).filter((function(){for(n=0;n<r;n++)if(E.contains(i[n],this))return!0})));for(e=this.pushStack([]),n=0;n<r;n++)E.find(t,i[n],e);return r>1?E.uniqueSort(e):e},filter:function(t){return this.pushStack(j(this,t||[],!1))},not:function(t){return this.pushStack(j(this,t||[],!0))},is:function(t){return!!j(this,"string"==typeof t&&T.test(t)?E(t):t||[],!1).length}});var L,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(t,n,e){var r,i;if(!t)return this;if(e=e||L,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:q.exec(t))||!r[1]&&n)return!n||n.jquery?(n||e).find(t):this.constructor(n).find(t);if(r[1]){if(n=n instanceof E?n[0]:n,E.merge(this,E.parseHTML(r[1],n&&n.nodeType?n.ownerDocument||n:x,!0)),D.test(r[1])&&E.isPlainObject(n))for(r in n)y(this[r])?this[r](n[r]):this.attr(r,n[r]);return this}return(i=x.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==e.ready?e.ready(t):t(E):E.makeArray(t,this)}).prototype=E.fn,L=E(x);var O=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function P(t,n){for(;(t=t[n])&&1!==t.nodeType;);return t}E.fn.extend({has:function(t){var n=E(t,this),e=n.length;return this.filter((function(){for(var t=0;t<e;t++)if(E.contains(this,n[t]))return!0}))},closest:function(t,n){var e,r=0,i=this.length,o=[],a="string"!=typeof t&&E(t);if(!T.test(t))for(;r<i;r++)for(e=this[r];e&&e!==n;e=e.parentNode)if(e.nodeType<11&&(a?a.index(e)>-1:1===e.nodeType&&E.find.matchesSelector(e,t))){o.push(e);break}return this.pushStack(o.length>1?E.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(E(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,n){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(t,n))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),E.each({parent:function(t){var n=t.parentNode;return n&&11!==n.nodeType?n:null},parents:function(t){return N(t,"parentNode")},parentsUntil:function(t,n,e){return N(t,"parentNode",e)},next:function(t){return P(t,"nextSibling")},prev:function(t){return P(t,"previousSibling")},nextAll:function(t){return N(t,"nextSibling")},prevAll:function(t){return N(t,"previousSibling")},nextUntil:function(t,n,e){return N(t,"nextSibling",e)},prevUntil:function(t,n,e){return N(t,"previousSibling",e)},siblings:function(t){return C((t.parentNode||{}).firstChild,t)},children:function(t){return C(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(A(t,"template")&&(t=t.content||t),E.merge([],t.childNodes))}},(function(t,n){E.fn[t]=function(e,r){var i=E.map(this,n,e);return"Until"!==t.slice(-5)&&(r=e),r&&"string"==typeof r&&(i=E.filter(r,i)),this.length>1&&(R[t]||E.uniqueSort(i),O.test(t)&&i.reverse()),this.pushStack(i)}}));var z=/[^\x20\t\r\n\f]+/g;function H(t){return t}function I(t){throw t}function F(t,n,e,r){var i;try{t&&y(i=t.promise)?i.call(t).done(n).fail(e):t&&y(i=t.then)?i.call(t,n,e):n.apply(void 0,[t].slice(r))}catch(t){e.apply(void 0,[t])}}E.Callbacks=function(t){t="string"==typeof t?function(t){var n={};return E.each(t.match(z)||[],(function(t,e){n[e]=!0})),n}(t):E.extend({},t);var n,e,r,i,o=[],a=[],u=-1,l=function(){for(i=i||t.once,r=n=!0;a.length;u=-1)for(e=a.shift();++u<o.length;)!1===o[u].apply(e[0],e[1])&&t.stopOnFalse&&(u=o.length,e=!1);t.memory||(e=!1),n=!1,i&&(o=e?[]:"")},s={add:function(){return o&&(e&&!n&&(u=o.length-1,a.push(e)),function n(e){E.each(e,(function(e,r){y(r)?t.unique&&s.has(r)||o.push(r):r&&r.length&&"string"!==M(r)&&n(r)}))}(arguments),e&&!n&&l()),this},remove:function(){return E.each(arguments,(function(t,n){for(var e;(e=E.inArray(n,o,e))>-1;)o.splice(e,1),e<=u&&u--})),this},has:function(t){return t?E.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=e="",this},disabled:function(){return!o},lock:function(){return i=a=[],e||n||(o=e=""),this},locked:function(){return!!i},fireWith:function(t,e){return i||(e=[t,(e=e||[]).slice?e.slice():e],a.push(e),n||l()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!r}};return s},E.extend({Deferred:function(t){var n=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],e="pending",i={state:function(){return e},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return E.Deferred((function(e){E.each(n,(function(n,r){var i=y(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,e,i){var o=0;function a(t,n,e,i){return function(){var u=this,l=arguments,s=function(){var r,s;if(!(t<o)){if((r=e.apply(u,l))===n.promise())throw new TypeError("Thenable self-resolution");s=r&&("object"==typeof r||"function"==typeof r)&&r.then,y(s)?i?s.call(r,a(o,n,H,i),a(o,n,I,i)):(o++,s.call(r,a(o,n,H,i),a(o,n,I,i),a(o,n,H,n.notifyWith))):(e!==H&&(u=void 0,l=[r]),(i||n.resolveWith)(u,l))}},c=i?s:function(){try{s()}catch(r){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(r,c.stackTrace),t+1>=o&&(e!==I&&(u=void 0,l=[r]),n.rejectWith(u,l))}};t?c():(E.Deferred.getStackHook&&(c.stackTrace=E.Deferred.getStackHook()),r.setTimeout(c))}}return E.Deferred((function(r){n[0][3].add(a(0,r,y(i)?i:H,r.notifyWith)),n[1][3].add(a(0,r,y(t)?t:H)),n[2][3].add(a(0,r,y(e)?e:I))})).promise()},promise:function(t){return null!=t?E.extend(t,i):i}},o={};return E.each(n,(function(t,r){var a=r[2],u=r[5];i[r[1]]=a.add,u&&a.add((function(){e=u}),n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var n=arguments.length,e=n,r=Array(e),i=u.call(arguments),o=E.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=arguments.length>1?u.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(F(t,o.done(a(e)).resolve,o.reject,!n),"pending"===o.state()||y(i[e]&&i[e].then)))return o.then();for(;e--;)F(i[e],a(e),o.reject);return o.promise()}});var $=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(t,n){r.console&&r.console.warn&&t&&$.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},E.readyException=function(t){r.setTimeout((function(){throw t}))};var U=E.Deferred();function B(){x.removeEventListener("DOMContentLoaded",B),r.removeEventListener("load",B),E.ready()}E.fn.ready=function(t){return U.then(t).catch((function(t){E.readyException(t)})),this},E.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==t&&--E.readyWait>0||U.resolveWith(x,[E]))}}),E.ready.then=U.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?r.setTimeout(E.ready):(x.addEventListener("DOMContentLoaded",B),r.addEventListener("load",B));var W=function(t,n,e,r,i,o,a){var u=0,l=t.length,s=null==e;if("object"===M(e))for(u in i=!0,e)W(t,n,u,e[u],!0,o,a);else if(void 0!==r&&(i=!0,y(r)||(a=!0),s&&(a?(n.call(t,r),n=null):(s=n,n=function(t,n,e){return s.call(E(t),e)})),n))for(;u<l;u++)n(t[u],e,a?r:r.call(t[u],u,n(t[u],e)));return i?t:s?n.call(t):l?n(t[0],e):o},V=/^-ms-/,Y=/-([a-z])/g;function X(t,n){return n.toUpperCase()}function Z(t){return t.replace(V,"ms-").replace(Y,X)}var G=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function J(){this.expando=E.expando+J.uid++}J.uid=1,J.prototype={cache:function(t){var n=t[this.expando];return n||(n={},G(t)&&(t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,configurable:!0}))),n},set:function(t,n,e){var r,i=this.cache(t);if("string"==typeof n)i[Z(n)]=e;else for(r in n)i[Z(r)]=n[r];return i},get:function(t,n){return void 0===n?this.cache(t):t[this.expando]&&t[this.expando][Z(n)]},access:function(t,n,e){return void 0===n||n&&"string"==typeof n&&void 0===e?this.get(t,n):(this.set(t,n,e),void 0!==e?e:n)},remove:function(t,n){var e,r=t[this.expando];if(void 0!==r){if(void 0!==n){e=(n=Array.isArray(n)?n.map(Z):(n=Z(n))in r?[n]:n.match(z)||[]).length;for(;e--;)delete r[n[e]]}(void 0===n||E.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var n=t[this.expando];return void 0!==n&&!E.isEmptyObject(n)}};var K=new J,Q=new J,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,nt=/[A-Z]/g;function et(t,n,e){var r;if(void 0===e&&1===t.nodeType)if(r="data-"+n.replace(nt,"-$&").toLowerCase(),"string"==typeof(e=t.getAttribute(r))){try{e=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(e)}catch(t){}Q.set(t,n,e)}else e=void 0;return e}E.extend({hasData:function(t){return Q.hasData(t)||K.hasData(t)},data:function(t,n,e){return Q.access(t,n,e)},removeData:function(t,n){Q.remove(t,n)},_data:function(t,n,e){return K.access(t,n,e)},_removeData:function(t,n){K.remove(t,n)}}),E.fn.extend({data:function(t,n){var e,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=Q.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&0===(r=a[e].name).indexOf("data-")&&(r=Z(r.slice(5)),et(o,r,i[r]));K.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each((function(){Q.set(this,t)})):W(this,(function(n){var e;if(o&&void 0===n)return void 0!==(e=Q.get(o,t))||void 0!==(e=et(o,t))?e:void 0;this.each((function(){Q.set(this,t,n)}))}),null,n,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){Q.remove(this,t)}))}}),E.extend({queue:function(t,n,e){var r;if(t)return n=(n||"fx")+"queue",r=K.get(t,n),e&&(!r||Array.isArray(e)?r=K.access(t,n,E.makeArray(e)):r.push(e)),r||[]},dequeue:function(t,n){n=n||"fx";var e=E.queue(t,n),r=e.length,i=e.shift(),o=E._queueHooks(t,n);"inprogress"===i&&(i=e.shift(),r--),i&&("fx"===n&&e.unshift("inprogress"),delete o.stop,i.call(t,(function(){E.dequeue(t,n)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,n){var e=n+"queueHooks";return K.get(t,e)||K.access(t,e,{empty:E.Callbacks("once memory").add((function(){K.remove(t,[n+"queue",e])}))})}}),E.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?E.queue(this[0],t):void 0===n?this:this.each((function(){var e=E.queue(this,t,n);E._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&E.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){E.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){var e,r=1,i=E.Deferred(),o=this,a=this.length,u=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(n=t,t=void 0),t=t||"fx";a--;)(e=K.get(o[a],t+"queueHooks"))&&e.empty&&(r++,e.empty.add(u));return u(),i.promise(n)}});var rt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,it=new RegExp("^(?:([+-])=|)("+rt+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],at=x.documentElement,ut=function(t){return E.contains(t.ownerDocument,t)},lt={composed:!0};at.getRootNode&&(ut=function(t){return E.contains(t.ownerDocument,t)||t.getRootNode(lt)===t.ownerDocument});var st=function(t,n){return"none"===(t=n||t).style.display||""===t.style.display&&ut(t)&&"none"===E.css(t,"display")};function ct(t,n,e,r){var i,o,a=20,u=r?function(){return r.cur()}:function(){return E.css(t,n,"")},l=u(),s=e&&e[3]||(E.cssNumber[n]?"":"px"),c=t.nodeType&&(E.cssNumber[n]||"px"!==s&&+l)&&it.exec(E.css(t,n));if(c&&c[3]!==s){for(l/=2,s=s||c[3],c=+l||1;a--;)E.style(t,n,c+s),(1-o)*(1-(o=u()/l||.5))<=0&&(a=0),c/=o;c*=2,E.style(t,n,c+s),e=e||[]}return e&&(c=+c||+l||0,i=e[1]?c+(e[1]+1)*e[2]:+e[2],r&&(r.unit=s,r.start=c,r.end=i)),i}var ft={};function ht(t){var n,e=t.ownerDocument,r=t.nodeName,i=ft[r];return i||(n=e.body.appendChild(e.createElement(r)),i=E.css(n,"display"),n.parentNode.removeChild(n),"none"===i&&(i="block"),ft[r]=i,i)}function pt(t,n){for(var e,r,i=[],o=0,a=t.length;o<a;o++)(r=t[o]).style&&(e=r.style.display,n?("none"===e&&(i[o]=K.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&st(r)&&(i[o]=ht(r))):"none"!==e&&(i[o]="none",K.set(r,"display",e)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}E.fn.extend({show:function(){return pt(this,!0)},hide:function(){return pt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){st(this)?E(this).show():E(this).hide()}))}});var dt,gt,vt=/^(?:checkbox|radio)$/i,yt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,mt=/^$|^module$|\/(?:java|ecma)script/i;dt=x.createDocumentFragment().appendChild(x.createElement("div")),(gt=x.createElement("input")).setAttribute("type","radio"),gt.setAttribute("checked","checked"),gt.setAttribute("name","t"),dt.appendChild(gt),v.checkClone=dt.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!dt.cloneNode(!0).lastChild.defaultValue,dt.innerHTML="<option></option>",v.option=!!dt.lastChild;var xt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function bt(t,n){var e;return e=void 0!==t.getElementsByTagName?t.getElementsByTagName(n||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(n||"*"):[],void 0===n||n&&A(t,n)?E.merge([t],e):e}function wt(t,n){for(var e=0,r=t.length;e<r;e++)K.set(t[e],"globalEval",!n||K.get(n[e],"globalEval"))}xt.tbody=xt.tfoot=xt.colgroup=xt.caption=xt.thead,xt.th=xt.td,v.option||(xt.optgroup=xt.option=[1,"<select multiple='multiple'>","</select>"]);var Mt=/<|&#?\w+;/;function St(t,n,e,r,i){for(var o,a,u,l,s,c,f=n.createDocumentFragment(),h=[],p=0,d=t.length;p<d;p++)if((o=t[p])||0===o)if("object"===M(o))E.merge(h,o.nodeType?[o]:o);else if(Mt.test(o)){for(a=a||f.appendChild(n.createElement("div")),u=(yt.exec(o)||["",""])[1].toLowerCase(),l=xt[u]||xt._default,a.innerHTML=l[1]+E.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;E.merge(h,a.childNodes),(a=f.firstChild).textContent=""}else h.push(n.createTextNode(o));for(f.textContent="",p=0;o=h[p++];)if(r&&E.inArray(o,r)>-1)i&&i.push(o);else if(s=ut(o),a=bt(f.appendChild(o),"script"),s&&wt(a),e)for(c=0;o=a[c++];)mt.test(o.type||"")&&e.push(o);return f}var Et=/^([^.]*)(?:\.(.+)|)/;function _t(){return!0}function kt(){return!1}function Nt(t,n){return t===function(){try{return x.activeElement}catch(t){}}()==("focus"===n)}function Ct(t,n,e,r,i,o){var a,u;if("object"==typeof n){for(u in"string"!=typeof e&&(r=r||e,e=void 0),n)Ct(t,u,e,r,n[u],o);return t}if(null==r&&null==i?(i=e,r=e=void 0):null==i&&("string"==typeof e?(i=r,r=void 0):(i=r,r=e,e=void 0)),!1===i)i=kt;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return E().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=E.guid++)),t.each((function(){E.event.add(this,n,i,r,e)}))}function Tt(t,n,e){e?(K.set(t,n,!1),E.event.add(t,n,{namespace:!1,handler:function(t){var r,i,o=K.get(this,n);if(1&t.isTrigger&&this[n]){if(o.length)(E.event.special[n]||{}).delegateType&&t.stopPropagation();else if(o=u.call(arguments),K.set(this,n,o),r=e(this,n),this[n](),o!==(i=K.get(this,n))||r?K.set(this,n,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i&&i.value}else o.length&&(K.set(this,n,{value:E.event.trigger(E.extend(o[0],E.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===K.get(t,n)&&E.event.add(t,n,_t)}E.event={global:{},add:function(t,n,e,r,i){var o,a,u,l,s,c,f,h,p,d,g,v=K.get(t);if(G(t))for(e.handler&&(e=(o=e).handler,i=o.selector),i&&E.find.matchesSelector(at,i),e.guid||(e.guid=E.guid++),(l=v.events)||(l=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(n){return void 0!==E&&E.event.triggered!==n.type?E.event.dispatch.apply(t,arguments):void 0}),s=(n=(n||"").match(z)||[""]).length;s--;)p=g=(u=Et.exec(n[s])||[])[1],d=(u[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:g,data:r,handler:e,guid:e.guid,selector:i,needsContext:i&&E.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,d,a)||t.addEventListener&&t.addEventListener(p,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=e.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),E.event.global[p]=!0)},remove:function(t,n,e,r,i){var o,a,u,l,s,c,f,h,p,d,g,v=K.hasData(t)&&K.get(t);if(v&&(l=v.events)){for(s=(n=(n||"").match(z)||[""]).length;s--;)if(p=g=(u=Et.exec(n[s])||[])[1],d=(u[2]||"").split(".").sort(),p){for(f=E.event.special[p]||{},h=l[p=(r?f.delegateType:f.bindType)||p]||[],u=u[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&g!==c.origType||e&&e.guid!==c.guid||u&&!u.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,d,v.handle)||E.removeEvent(t,p,v.handle),delete l[p])}else for(p in l)E.event.remove(t,p+n[s],e,r,!0);E.isEmptyObject(l)&&K.remove(t,"handle events")}},dispatch:function(t){var n,e,r,i,o,a,u=new Array(arguments.length),l=E.event.fix(t),s=(K.get(this,"events")||Object.create(null))[l.type]||[],c=E.event.special[l.type]||{};for(u[0]=l,n=1;n<arguments.length;n++)u[n]=arguments[n];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=E.event.handlers.call(this,l,s),n=0;(i=a[n++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,e=0;(o=i.handlers[e++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((E.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,n){var e,r,i,o,a,u=[],l=n.delegateCount,s=t.target;if(l&&s.nodeType&&!("click"===t.type&&t.button>=1))for(;s!==this;s=s.parentNode||this)if(1===s.nodeType&&("click"!==t.type||!0!==s.disabled)){for(o=[],a={},e=0;e<l;e++)void 0===a[i=(r=n[e]).selector+" "]&&(a[i]=r.needsContext?E(i,this).index(s)>-1:E.find(i,this,null,[s]).length),a[i]&&o.push(r);o.length&&u.push({elem:s,handlers:o})}return s=this,l<n.length&&u.push({elem:s,handlers:n.slice(l)}),u},addProp:function(t,n){Object.defineProperty(E.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(n)?function(){if(this.originalEvent)return n(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(n){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:n})}})},fix:function(t){return t[E.expando]?t:new E.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var n=this||t;return vt.test(n.type)&&n.click&&A(n,"input")&&Tt(n,"click",_t),!1},trigger:function(t){var n=this||t;return vt.test(n.type)&&n.click&&A(n,"input")&&Tt(n,"click"),!0},_default:function(t){var n=t.target;return vt.test(n.type)&&n.click&&A(n,"input")&&K.get(n,"click")||A(n,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},E.removeEvent=function(t,n,e){t.removeEventListener&&t.removeEventListener(n,e)},E.Event=function(t,n){if(!(this instanceof E.Event))return new E.Event(t,n);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?_t:kt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,n&&E.extend(this,n),this.timeStamp=t&&t.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:kt,isPropagationStopped:kt,isImmediatePropagationStopped:kt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=_t,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=_t,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=_t,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},(function(t,n){E.event.special[t]={setup:function(){return Tt(this,t,Nt),!1},trigger:function(){return Tt(this,t),!0},_default:function(){return!0},delegateType:n}})),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,n){E.event.special[t]={delegateType:n,bindType:n,handle:function(t){var e,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||E.contains(r,i))||(t.type=o.origType,e=o.handler.apply(this,arguments),t.type=n),e}}})),E.fn.extend({on:function(t,n,e,r){return Ct(this,t,n,e,r)},one:function(t,n,e,r){return Ct(this,t,n,e,r,1)},off:function(t,n,e){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,E(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,n,t[i]);return this}return!1!==n&&"function"!=typeof n||(e=n,n=void 0),!1===e&&(e=kt),this.each((function(){E.event.remove(this,t,e,n)}))}});var At=/<script|<style|<link/i,Dt=/checked\s*(?:[^=]|=\s*.checked.)/i,jt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Lt(t,n){return A(t,"table")&&A(11!==n.nodeType?n:n.firstChild,"tr")&&E(t).children("tbody")[0]||t}function qt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ot(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Rt(t,n){var e,r,i,o,a,u;if(1===n.nodeType){if(K.hasData(t)&&(u=K.get(t).events))for(i in K.remove(n,"handle events"),u)for(e=0,r=u[i].length;e<r;e++)E.event.add(n,i,u[i][e]);Q.hasData(t)&&(o=Q.access(t),a=E.extend({},o),Q.set(n,a))}}function Pt(t,n){var e=n.nodeName.toLowerCase();"input"===e&&vt.test(t.type)?n.checked=t.checked:"input"!==e&&"textarea"!==e||(n.defaultValue=t.defaultValue)}function zt(t,n,e,r){n=l(n);var i,o,a,u,s,c,f=0,h=t.length,p=h-1,d=n[0],g=y(d);if(g||h>1&&"string"==typeof d&&!v.checkClone&&Dt.test(d))return t.each((function(i){var o=t.eq(i);g&&(n[0]=d.call(this,i,o.html())),zt(o,n,e,r)}));if(h&&(o=(i=St(n,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(a=E.map(bt(i,"script"),qt)).length;f<h;f++)s=i,f!==p&&(s=E.clone(s,!0,!0),u&&E.merge(a,bt(s,"script"))),e.call(t[f],s,f);if(u)for(c=a[a.length-1].ownerDocument,E.map(a,Ot),f=0;f<u;f++)s=a[f],mt.test(s.type||"")&&!K.access(s,"globalEval")&&E.contains(c,s)&&(s.src&&"module"!==(s.type||"").toLowerCase()?E._evalUrl&&!s.noModule&&E._evalUrl(s.src,{nonce:s.nonce||s.getAttribute("nonce")},c):w(s.textContent.replace(jt,""),s,c))}return t}function Ht(t,n,e){for(var r,i=n?E.filter(n,t):t,o=0;null!=(r=i[o]);o++)e||1!==r.nodeType||E.cleanData(bt(r)),r.parentNode&&(e&&ut(r)&&wt(bt(r,"script")),r.parentNode.removeChild(r));return t}E.extend({htmlPrefilter:function(t){return t},clone:function(t,n,e){var r,i,o,a,u=t.cloneNode(!0),l=ut(t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||E.isXMLDoc(t)))for(a=bt(u),r=0,i=(o=bt(t)).length;r<i;r++)Pt(o[r],a[r]);if(n)if(e)for(o=o||bt(t),a=a||bt(u),r=0,i=o.length;r<i;r++)Rt(o[r],a[r]);else Rt(t,u);return(a=bt(u,"script")).length>0&&wt(a,!l&&bt(t,"script")),u},cleanData:function(t){for(var n,e,r,i=E.event.special,o=0;void 0!==(e=t[o]);o++)if(G(e)){if(n=e[K.expando]){if(n.events)for(r in n.events)i[r]?E.event.remove(e,r):E.removeEvent(e,r,n.handle);e[K.expando]=void 0}e[Q.expando]&&(e[Q.expando]=void 0)}}}),E.fn.extend({detach:function(t){return Ht(this,t,!0)},remove:function(t){return Ht(this,t)},text:function(t){return W(this,(function(t){return void 0===t?E.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return zt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Lt(this,t).appendChild(t)}))},prepend:function(){return zt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=Lt(this,t);n.insertBefore(t,n.firstChild)}}))},before:function(){return zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,n=0;null!=(t=this[n]);n++)1===t.nodeType&&(E.cleanData(bt(t,!1)),t.textContent="");return this},clone:function(t,n){return t=null!=t&&t,n=null==n?t:n,this.map((function(){return E.clone(this,t,n)}))},html:function(t){return W(this,(function(t){var n=this[0]||{},e=0,r=this.length;if(void 0===t&&1===n.nodeType)return n.innerHTML;if("string"==typeof t&&!At.test(t)&&!xt[(yt.exec(t)||["",""])[1].toLowerCase()]){t=E.htmlPrefilter(t);try{for(;e<r;e++)1===(n=this[e]||{}).nodeType&&(E.cleanData(bt(n,!1)),n.innerHTML=t);n=0}catch(t){}}n&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return zt(this,arguments,(function(n){var e=this.parentNode;E.inArray(this,t)<0&&(E.cleanData(bt(this)),e&&e.replaceChild(n,this))}),t)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,n){E.fn[t]=function(t){for(var e,r=[],i=E(t),o=i.length-1,a=0;a<=o;a++)e=a===o?this:this.clone(!0),E(i[a])[n](e),s.apply(r,e.get());return this.pushStack(r)}}));var It=new RegExp("^("+rt+")(?!px)[a-z%]+$","i"),Ft=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=r),n.getComputedStyle(t)},$t=function(t,n,e){var r,i,o={};for(i in n)o[i]=t.style[i],t.style[i]=n[i];for(i in r=e.call(t),n)t.style[i]=o[i];return r},Ut=new RegExp(ot.join("|"),"i");function Bt(t,n,e){var r,i,o,a,u=t.style;return(e=e||Ft(t))&&(""!==(a=e.getPropertyValue(n)||e[n])||ut(t)||(a=E.style(t,n)),!v.pixelBoxStyles()&&It.test(a)&&Ut.test(n)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=e.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Wt(t,n){return{get:function(){if(!t())return(this.get=n).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",at.appendChild(s).appendChild(c);var t=r.getComputedStyle(c);e="1%"!==t.top,l=12===n(t.marginLeft),c.style.right="60%",a=36===n(t.right),i=36===n(t.width),c.style.position="absolute",o=12===n(c.offsetWidth/3),at.removeChild(s),c=null}}function n(t){return Math.round(parseFloat(t))}var e,i,o,a,u,l,s=x.createElement("div"),c=x.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===c.style.backgroundClip,E.extend(v,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),e},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,e,i;return null==u&&(t=x.createElement("table"),n=x.createElement("tr"),e=x.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",e.style.height="9px",e.style.display="block",at.appendChild(t).appendChild(n).appendChild(e),i=r.getComputedStyle(n),u=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,at.removeChild(t)),u}}))}();var Vt=["Webkit","Moz","ms"],Yt=x.createElement("div").style,Xt={};function Zt(t){return E.cssProps[t]||Xt[t]||(t in Yt?t:Xt[t]=function(t){for(var n=t[0].toUpperCase()+t.slice(1),e=Vt.length;e--;)if((t=Vt[e]+n)in Yt)return t}(t)||t)}var Gt=/^(none|table(?!-c[ea]).+)/,Jt=/^--/,Kt={position:"absolute",visibility:"hidden",display:"block"},Qt={letterSpacing:"0",fontWeight:"400"};function tn(t,n,e){var r=it.exec(n);return r?Math.max(0,r[2]-(e||0))+(r[3]||"px"):n}function nn(t,n,e,r,i,o){var a="width"===n?1:0,u=0,l=0;if(e===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===e&&(l+=E.css(t,e+ot[a],!0,i)),r?("content"===e&&(l-=E.css(t,"padding"+ot[a],!0,i)),"margin"!==e&&(l-=E.css(t,"border"+ot[a]+"Width",!0,i))):(l+=E.css(t,"padding"+ot[a],!0,i),"padding"!==e?l+=E.css(t,"border"+ot[a]+"Width",!0,i):u+=E.css(t,"border"+ot[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+n[0].toUpperCase()+n.slice(1)]-o-l-u-.5))||0),l}function en(t,n,e){var r=Ft(t),i=(!v.boxSizingReliable()||e)&&"border-box"===E.css(t,"boxSizing",!1,r),o=i,a=Bt(t,n,r),u="offset"+n[0].toUpperCase()+n.slice(1);if(It.test(a)){if(!e)return a;a="auto"}return(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&A(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===E.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===E.css(t,"boxSizing",!1,r),(o=u in t)&&(a=t[u])),(a=parseFloat(a)||0)+nn(t,n,e||(i?"border":"content"),o,r,a)+"px"}function rn(t,n,e,r,i){return new rn.prototype.init(t,n,e,r,i)}E.extend({cssHooks:{opacity:{get:function(t,n){if(n){var e=Bt(t,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,n,e,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,u=Z(n),l=Jt.test(n),s=t.style;if(l||(n=Zt(u)),a=E.cssHooks[n]||E.cssHooks[u],void 0===e)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:s[n];"string"==(o=typeof e)&&(i=it.exec(e))&&i[1]&&(e=ct(t,n,i),o="number"),null!=e&&e==e&&("number"!==o||l||(e+=i&&i[3]||(E.cssNumber[u]?"":"px")),v.clearCloneStyle||""!==e||0!==n.indexOf("background")||(s[n]="inherit"),a&&"set"in a&&void 0===(e=a.set(t,e,r))||(l?s.setProperty(n,e):s[n]=e))}},css:function(t,n,e,r){var i,o,a,u=Z(n);return Jt.test(n)||(n=Zt(u)),(a=E.cssHooks[n]||E.cssHooks[u])&&"get"in a&&(i=a.get(t,!0,e)),void 0===i&&(i=Bt(t,n,r)),"normal"===i&&n in Qt&&(i=Qt[n]),""===e||e?(o=parseFloat(i),!0===e||isFinite(o)?o||0:i):i}}),E.each(["height","width"],(function(t,n){E.cssHooks[n]={get:function(t,e,r){if(e)return!Gt.test(E.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?en(t,n,r):$t(t,Kt,(function(){return en(t,n,r)}))},set:function(t,e,r){var i,o=Ft(t),a=!v.scrollboxSize()&&"absolute"===o.position,u=(a||r)&&"border-box"===E.css(t,"boxSizing",!1,o),l=r?nn(t,n,r,u,o):0;return u&&a&&(l-=Math.ceil(t["offset"+n[0].toUpperCase()+n.slice(1)]-parseFloat(o[n])-nn(t,n,"border",!1,o)-.5)),l&&(i=it.exec(e))&&"px"!==(i[3]||"px")&&(t.style[n]=e,e=E.css(t,n)),tn(0,e,l)}}})),E.cssHooks.marginLeft=Wt(v.reliableMarginLeft,(function(t,n){if(n)return(parseFloat(Bt(t,"marginLeft"))||t.getBoundingClientRect().left-$t(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),E.each({margin:"",padding:"",border:"Width"},(function(t,n){E.cssHooks[t+n]={expand:function(e){for(var r=0,i={},o="string"==typeof e?e.split(" "):[e];r<4;r++)i[t+ot[r]+n]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(E.cssHooks[t+n].set=tn)})),E.fn.extend({css:function(t,n){return W(this,(function(t,n,e){var r,i,o={},a=0;if(Array.isArray(n)){for(r=Ft(t),i=n.length;a<i;a++)o[n[a]]=E.css(t,n[a],!1,r);return o}return void 0!==e?E.style(t,n,e):E.css(t,n)}),t,n,arguments.length>1)}}),E.Tween=rn,rn.prototype={constructor:rn,init:function(t,n,e,r,i,o){this.elem=t,this.prop=e,this.easing=i||E.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=r,this.unit=o||(E.cssNumber[e]?"":"px")},cur:function(){var t=rn.propHooks[this.prop];return t&&t.get?t.get(this):rn.propHooks._default.get(this)},run:function(t){var n,e=rn.propHooks[this.prop];return this.options.duration?this.pos=n=E.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=n=t,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),e&&e.set?e.set(this):rn.propHooks._default.set(this),this}},rn.prototype.init.prototype=rn.prototype,rn.propHooks={_default:{get:function(t){var n;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(n=E.css(t.elem,t.prop,""))&&"auto"!==n?n:0},set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):1!==t.elem.nodeType||!E.cssHooks[t.prop]&&null==t.elem.style[Zt(t.prop)]?t.elem[t.prop]=t.now:E.style(t.elem,t.prop,t.now+t.unit)}}},rn.propHooks.scrollTop=rn.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},E.fx=rn.prototype.init,E.fx.step={};var on,an,un=/^(?:toggle|show|hide)$/,ln=/queueHooks$/;function sn(){an&&(!1===x.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(sn):r.setTimeout(sn,E.fx.interval),E.fx.tick())}function cn(){return r.setTimeout((function(){on=void 0})),on=Date.now()}function fn(t,n){var e,r=0,i={height:t};for(n=n?1:0;r<4;r+=2-n)i["margin"+(e=ot[r])]=i["padding"+e]=t;return n&&(i.opacity=i.width=t),i}function hn(t,n,e){for(var r,i=(pn.tweeners[n]||[]).concat(pn.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(e,n,t))return r}function pn(t,n,e){var r,i,o=0,a=pn.prefilters.length,u=E.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var n=on||cn(),e=Math.max(0,s.startTime+s.duration-n),r=1-(e/s.duration||0),o=0,a=s.tweens.length;o<a;o++)s.tweens[o].run(r);return u.notifyWith(t,[s,r,e]),r<1&&a?e:(a||u.notifyWith(t,[s,1,0]),u.resolveWith(t,[s]),!1)},s=u.promise({elem:t,props:E.extend({},n),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},e),originalProperties:n,originalOptions:e,startTime:on||cn(),duration:e.duration,tweens:[],createTween:function(n,e){var r=E.Tween(t,s.opts,n,e,s.opts.specialEasing[n]||s.opts.easing);return s.tweens.push(r),r},stop:function(n){var e=0,r=n?s.tweens.length:0;if(i)return this;for(i=!0;e<r;e++)s.tweens[e].run(1);return n?(u.notifyWith(t,[s,1,0]),u.resolveWith(t,[s,n])):u.rejectWith(t,[s,n]),this}}),c=s.props;for(function(t,n){var e,r,i,o,a;for(e in t)if(i=n[r=Z(e)],o=t[e],Array.isArray(o)&&(i=o[1],o=t[e]=o[0]),e!==r&&(t[r]=o,delete t[e]),(a=E.cssHooks[r])&&"expand"in a)for(e in o=a.expand(o),delete t[r],o)e in t||(t[e]=o[e],n[e]=i);else n[r]=i}(c,s.opts.specialEasing);o<a;o++)if(r=pn.prefilters[o].call(s,t,c,s.opts))return y(r.stop)&&(E._queueHooks(s.elem,s.opts.queue).stop=r.stop.bind(r)),r;return E.map(c,hn,s),y(s.opts.start)&&s.opts.start.call(t,s),s.progress(s.opts.progress).done(s.opts.done,s.opts.complete).fail(s.opts.fail).always(s.opts.always),E.fx.timer(E.extend(l,{elem:t,anim:s,queue:s.opts.queue})),s}E.Animation=E.extend(pn,{tweeners:{"*":[function(t,n){var e=this.createTween(t,n);return ct(e.elem,t,it.exec(n),e),e}]},tweener:function(t,n){y(t)?(n=t,t=["*"]):t=t.match(z);for(var e,r=0,i=t.length;r<i;r++)e=t[r],pn.tweeners[e]=pn.tweeners[e]||[],pn.tweeners[e].unshift(n)},prefilters:[function(t,n,e){var r,i,o,a,u,l,s,c,f="width"in n||"height"in n,h=this,p={},d=t.style,g=t.nodeType&&st(t),v=K.get(t,"fxshow");for(r in e.queue||(null==(a=E._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,E.queue(t,"fx").length||a.empty.fire()}))}))),n)if(i=n[r],un.test(i)){if(delete n[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}p[r]=v&&v[r]||E.style(t,r)}if((l=!E.isEmptyObject(n))||!E.isEmptyObject(p))for(r in f&&1===t.nodeType&&(e.overflow=[d.overflow,d.overflowX,d.overflowY],null==(s=v&&v.display)&&(s=K.get(t,"display")),"none"===(c=E.css(t,"display"))&&(s?c=s:(pt([t],!0),s=t.style.display||s,c=E.css(t,"display"),pt([t]))),("inline"===c||"inline-block"===c&&null!=s)&&"none"===E.css(t,"float")&&(l||(h.done((function(){d.display=s})),null==s&&(c=d.display,s="none"===c?"":c)),d.display="inline-block")),e.overflow&&(d.overflow="hidden",h.always((function(){d.overflow=e.overflow[0],d.overflowX=e.overflow[1],d.overflowY=e.overflow[2]}))),l=!1,p)l||(v?"hidden"in v&&(g=v.hidden):v=K.access(t,"fxshow",{display:s}),o&&(v.hidden=!g),g&&pt([t],!0),h.done((function(){for(r in g||pt([t]),K.remove(t,"fxshow"),p)E.style(t,r,p[r])}))),l=hn(g?v[r]:0,r,h),r in v||(v[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,n){n?pn.prefilters.unshift(t):pn.prefilters.push(t)}}),E.speed=function(t,n,e){var r=t&&"object"==typeof t?E.extend({},t):{complete:e||!e&&n||y(t)&&t,duration:t,easing:e&&n||n&&!y(n)&&n};return E.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in E.fx.speeds?r.duration=E.fx.speeds[r.duration]:r.duration=E.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&E.dequeue(this,r.queue)},r},E.fn.extend({fadeTo:function(t,n,e,r){return this.filter(st).css("opacity",0).show().end().animate({opacity:n},t,e,r)},animate:function(t,n,e,r){var i=E.isEmptyObject(t),o=E.speed(n,e,r),a=function(){var n=pn(this,E.extend({},t),o);(i||K.get(this,"finish"))&&n.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,n,e){var r=function(t){var n=t.stop;delete t.stop,n(e)};return"string"!=typeof t&&(e=n,n=t,t=void 0),n&&this.queue(t||"fx",[]),this.each((function(){var n=!0,i=null!=t&&t+"queueHooks",o=E.timers,a=K.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ln.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(e),n=!1,o.splice(i,1));!n&&e||E.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var n,e=K.get(this),r=e[t+"queue"],i=e[t+"queueHooks"],o=E.timers,a=r?r.length:0;for(e.finish=!0,E.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),n=o.length;n--;)o[n].elem===this&&o[n].queue===t&&(o[n].anim.stop(!0),o.splice(n,1));for(n=0;n<a;n++)r[n]&&r[n].finish&&r[n].finish.call(this);delete e.finish}))}}),E.each(["toggle","show","hide"],(function(t,n){var e=E.fn[n];E.fn[n]=function(t,r,i){return null==t||"boolean"==typeof t?e.apply(this,arguments):this.animate(fn(n,!0),t,r,i)}})),E.each({slideDown:fn("show"),slideUp:fn("hide"),slideToggle:fn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,n){E.fn[t]=function(t,e,r){return this.animate(n,t,e,r)}})),E.timers=[],E.fx.tick=function(){var t,n=0,e=E.timers;for(on=Date.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||E.fx.stop(),on=void 0},E.fx.timer=function(t){E.timers.push(t),E.fx.start()},E.fx.interval=13,E.fx.start=function(){an||(an=!0,sn())},E.fx.stop=function(){an=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(t,n){return t=E.fx&&E.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,e){var i=r.setTimeout(n,t);e.stop=function(){r.clearTimeout(i)}}))},function(){var t=x.createElement("input"),n=x.createElement("select").appendChild(x.createElement("option"));t.type="checkbox",v.checkOn=""!==t.value,v.optSelected=n.selected,(t=x.createElement("input")).value="t",t.type="radio",v.radioValue="t"===t.value}();var dn,gn=E.expr.attrHandle;E.fn.extend({attr:function(t,n){return W(this,E.attr,t,n,arguments.length>1)},removeAttr:function(t){return this.each((function(){E.removeAttr(this,t)}))}}),E.extend({attr:function(t,n,e){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?E.prop(t,n,e):(1===o&&E.isXMLDoc(t)||(i=E.attrHooks[n.toLowerCase()]||(E.expr.match.bool.test(n)?dn:void 0)),void 0!==e?null===e?void E.removeAttr(t,n):i&&"set"in i&&void 0!==(r=i.set(t,e,n))?r:(t.setAttribute(n,e+""),e):i&&"get"in i&&null!==(r=i.get(t,n))?r:null==(r=E.find.attr(t,n))?void 0:r)},attrHooks:{type:{set:function(t,n){if(!v.radioValue&&"radio"===n&&A(t,"input")){var e=t.value;return t.setAttribute("type",n),e&&(t.value=e),n}}}},removeAttr:function(t,n){var e,r=0,i=n&&n.match(z);if(i&&1===t.nodeType)for(;e=i[r++];)t.removeAttribute(e)}}),dn={set:function(t,n,e){return!1===n?E.removeAttr(t,e):t.setAttribute(e,e),e}},E.each(E.expr.match.bool.source.match(/\w+/g),(function(t,n){var e=gn[n]||E.find.attr;gn[n]=function(t,n,r){var i,o,a=n.toLowerCase();return r||(o=gn[a],gn[a]=i,i=null!=e(t,n,r)?a:null,gn[a]=o),i}}));var vn=/^(?:input|select|textarea|button)$/i,yn=/^(?:a|area)$/i;function mn(t){return(t.match(z)||[]).join(" ")}function xn(t){return t.getAttribute&&t.getAttribute("class")||""}function bn(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(z)||[]}E.fn.extend({prop:function(t,n){return W(this,E.prop,t,n,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[E.propFix[t]||t]}))}}),E.extend({prop:function(t,n,e){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(t)||(n=E.propFix[n]||n,i=E.propHooks[n]),void 0!==e?i&&"set"in i&&void 0!==(r=i.set(t,e,n))?r:t[n]=e:i&&"get"in i&&null!==(r=i.get(t,n))?r:t[n]},propHooks:{tabIndex:{get:function(t){var n=E.find.attr(t,"tabindex");return n?parseInt(n,10):vn.test(t.nodeName)||yn.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(E.propHooks.selected={get:function(t){var n=t.parentNode;return n&&n.parentNode&&n.parentNode.selectedIndex,null},set:function(t){var n=t.parentNode;n&&(n.selectedIndex,n.parentNode&&n.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(t){var n,e,r,i,o,a,u,l=0;if(y(t))return this.each((function(n){E(this).addClass(t.call(this,n,xn(this)))}));if((n=bn(t)).length)for(;e=this[l++];)if(i=xn(e),r=1===e.nodeType&&" "+mn(i)+" "){for(a=0;o=n[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(u=mn(r))&&e.setAttribute("class",u)}return this},removeClass:function(t){var n,e,r,i,o,a,u,l=0;if(y(t))return this.each((function(n){E(this).removeClass(t.call(this,n,xn(this)))}));if(!arguments.length)return this.attr("class","");if((n=bn(t)).length)for(;e=this[l++];)if(i=xn(e),r=1===e.nodeType&&" "+mn(i)+" "){for(a=0;o=n[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(u=mn(r))&&e.setAttribute("class",u)}return this},toggleClass:function(t,n){var e=typeof t,r="string"===e||Array.isArray(t);return"boolean"==typeof n&&r?n?this.addClass(t):this.removeClass(t):y(t)?this.each((function(e){E(this).toggleClass(t.call(this,e,xn(this),n),n)})):this.each((function(){var n,i,o,a;if(r)for(i=0,o=E(this),a=bn(t);n=a[i++];)o.hasClass(n)?o.removeClass(n):o.addClass(n);else void 0!==t&&"boolean"!==e||((n=xn(this))&&K.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":K.get(this,"__className__")||""))}))},hasClass:function(t){var n,e,r=0;for(n=" "+t+" ";e=this[r++];)if(1===e.nodeType&&(" "+mn(xn(e))+" ").indexOf(n)>-1)return!0;return!1}});var wn=/\r/g;E.fn.extend({val:function(t){var n,e,r,i=this[0];return arguments.length?(r=y(t),this.each((function(e){var i;1===this.nodeType&&(null==(i=r?t.call(this,e,E(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=E.map(i,(function(t){return null==t?"":t+""}))),(n=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,i,"value")||(this.value=i))}))):i?(n=E.valHooks[i.type]||E.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(i,"value"))?e:"string"==typeof(e=i.value)?e.replace(wn,""):null==e?"":e:void 0}}),E.extend({valHooks:{option:{get:function(t){var n=E.find.attr(t,"value");return null!=n?n:mn(E.text(t))}},select:{get:function(t){var n,e,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,u=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((e=i[r]).selected||r===o)&&!e.disabled&&(!e.parentNode.disabled||!A(e.parentNode,"optgroup"))){if(n=E(e).val(),a)return n;u.push(n)}return u},set:function(t,n){for(var e,r,i=t.options,o=E.makeArray(n),a=i.length;a--;)((r=i[a]).selected=E.inArray(E.valHooks.option.get(r),o)>-1)&&(e=!0);return e||(t.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],(function(){E.valHooks[this]={set:function(t,n){if(Array.isArray(n))return t.checked=E.inArray(E(t).val(),n)>-1}},v.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),v.focusin="onfocusin"in r;var Mn=/^(?:focusinfocus|focusoutblur)$/,Sn=function(t){t.stopPropagation()};E.extend(E.event,{trigger:function(t,n,e,i){var o,a,u,l,s,c,f,h,d=[e||x],g=p.call(t,"type")?t.type:t,v=p.call(t,"namespace")?t.namespace.split("."):[];if(a=h=u=e=e||x,3!==e.nodeType&&8!==e.nodeType&&!Mn.test(g+E.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),s=g.indexOf(":")<0&&"on"+g,(t=t[E.expando]?t:new E.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=e),n=null==n?[t]:E.makeArray(n,[t]),f=E.event.special[g]||{},i||!f.trigger||!1!==f.trigger.apply(e,n))){if(!i&&!f.noBubble&&!m(e)){for(l=f.delegateType||g,Mn.test(l+g)||(a=a.parentNode);a;a=a.parentNode)d.push(a),u=a;u===(e.ownerDocument||x)&&d.push(u.defaultView||u.parentWindow||r)}for(o=0;(a=d[o++])&&!t.isPropagationStopped();)h=a,t.type=o>1?l:f.bindType||g,(c=(K.get(a,"events")||Object.create(null))[t.type]&&K.get(a,"handle"))&&c.apply(a,n),(c=s&&a[s])&&c.apply&&G(a)&&(t.result=c.apply(a,n),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(d.pop(),n)||!G(e)||s&&y(e[g])&&!m(e)&&((u=e[s])&&(e[s]=null),E.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Sn),e[g](),t.isPropagationStopped()&&h.removeEventListener(g,Sn),E.event.triggered=void 0,u&&(e[s]=u)),t.result}},simulate:function(t,n,e){var r=E.extend(new E.Event,e,{type:t,isSimulated:!0});E.event.trigger(r,null,n)}}),E.fn.extend({trigger:function(t,n){return this.each((function(){E.event.trigger(t,n,this)}))},triggerHandler:function(t,n){var e=this[0];if(e)return E.event.trigger(t,n,e,!0)}}),v.focusin||E.each({focus:"focusin",blur:"focusout"},(function(t,n){var e=function(t){E.event.simulate(n,t.target,E.event.fix(t))};E.event.special[n]={setup:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,n);i||r.addEventListener(t,e,!0),K.access(r,n,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,n)-1;i?K.access(r,n,i):(r.removeEventListener(t,e,!0),K.remove(r,n))}}}));var En=r.location,_n={guid:Date.now()},kn=/\?/;E.parseXML=function(t){var n,e;if(!t||"string"!=typeof t)return null;try{n=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return e=n&&n.getElementsByTagName("parsererror")[0],n&&!e||E.error("Invalid XML: "+(e?E.map(e.childNodes,(function(t){return t.textContent})).join("\n"):t)),n};var Nn=/\[\]$/,Cn=/\r?\n/g,Tn=/^(?:submit|button|image|reset|file)$/i,An=/^(?:input|select|textarea|keygen)/i;function Dn(t,n,e,r){var i;if(Array.isArray(n))E.each(n,(function(n,i){e||Nn.test(t)?r(t,i):Dn(t+"["+("object"==typeof i&&null!=i?n:"")+"]",i,e,r)}));else if(e||"object"!==M(n))r(t,n);else for(i in n)Dn(t+"["+i+"]",n[i],e,r)}E.param=function(t,n){var e,r=[],i=function(t,n){var e=y(n)?n():n;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,(function(){i(this.name,this.value)}));else for(e in t)Dn(e,t[e],n,i);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&An.test(this.nodeName)&&!Tn.test(t)&&(this.checked||!vt.test(t))})).map((function(t,n){var e=E(this).val();return null==e?null:Array.isArray(e)?E.map(e,(function(t){return{name:n.name,value:t.replace(Cn,"\r\n")}})):{name:n.name,value:e.replace(Cn,"\r\n")}})).get()}});var jn=/%20/g,Ln=/#.*$/,qn=/([?&])_=[^&]*/,On=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rn=/^(?:GET|HEAD)$/,Pn=/^\/\//,zn={},Hn={},In="*/".concat("*"),Fn=x.createElement("a");function $n(t){return function(n,e){"string"!=typeof n&&(e=n,n="*");var r,i=0,o=n.toLowerCase().match(z)||[];if(y(e))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(e)):(t[r]=t[r]||[]).push(e)}}function Un(t,n,e,r){var i={},o=t===Hn;function a(u){var l;return i[u]=!0,E.each(t[u]||[],(function(t,u){var s=u(n,e,r);return"string"!=typeof s||o||i[s]?o?!(l=s):void 0:(n.dataTypes.unshift(s),a(s),!1)})),l}return a(n.dataTypes[0])||!i["*"]&&a("*")}function Bn(t,n){var e,r,i=E.ajaxSettings.flatOptions||{};for(e in n)void 0!==n[e]&&((i[e]?t:r||(r={}))[e]=n[e]);return r&&E.extend(!0,t,r),t}Fn.href=En.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:En.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(En.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":In,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(t,n){return n?Bn(Bn(t,E.ajaxSettings),n):Bn(E.ajaxSettings,t)},ajaxPrefilter:$n(zn),ajaxTransport:$n(Hn),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var e,i,o,a,u,l,s,c,f,h,p=E.ajaxSetup({},n),d=p.context||p,g=p.context&&(d.nodeType||d.jquery)?E(d):E.event,v=E.Deferred(),y=E.Callbacks("once memory"),m=p.statusCode||{},b={},w={},M="canceled",S={readyState:0,getResponseHeader:function(t){var n;if(s){if(!a)for(a={};n=On.exec(o);)a[n[1].toLowerCase()+" "]=(a[n[1].toLowerCase()+" "]||[]).concat(n[2]);n=a[t.toLowerCase()+" "]}return null==n?null:n.join(", ")},getAllResponseHeaders:function(){return s?o:null},setRequestHeader:function(t,n){return null==s&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,b[t]=n),this},overrideMimeType:function(t){return null==s&&(p.mimeType=t),this},statusCode:function(t){var n;if(t)if(s)S.always(t[S.status]);else for(n in t)m[n]=[m[n],t[n]];return this},abort:function(t){var n=t||M;return e&&e.abort(n),_(0,n),this}};if(v.promise(S),p.url=((t||p.url||En.href)+"").replace(Pn,En.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(z)||[""],null==p.crossDomain){l=x.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Fn.protocol+"//"+Fn.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=E.param(p.data,p.traditional)),Un(zn,p,n,S),s)return S;for(f in(c=E.event&&p.global)&&0==E.active++&&E.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Rn.test(p.type),i=p.url.replace(Ln,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(jn,"+")):(h=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(kn.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(qn,"$1"),h=(kn.test(i)?"&":"?")+"_="+_n.guid+++h),p.url=i+h),p.ifModified&&(E.lastModified[i]&&S.setRequestHeader("If-Modified-Since",E.lastModified[i]),E.etag[i]&&S.setRequestHeader("If-None-Match",E.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+In+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(d,S,p)||s))return S.abort();if(M="abort",y.add(p.complete),S.done(p.success),S.fail(p.error),e=Un(Hn,p,n,S)){if(S.readyState=1,c&&g.trigger("ajaxSend",[S,p]),s)return S;p.async&&p.timeout>0&&(u=r.setTimeout((function(){S.abort("timeout")}),p.timeout));try{s=!1,e.send(b,_)}catch(t){if(s)throw t;_(-1,t)}}else _(-1,"No Transport");function _(t,n,a,l){var f,h,x,b,w,M=n;s||(s=!0,u&&r.clearTimeout(u),e=void 0,o=l||"",S.readyState=t>0?4:0,f=t>=200&&t<300||304===t,a&&(b=function(t,n,e){for(var r,i,o,a,u=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||n.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){l.unshift(i);break}if(l[0]in e)o=l[0];else{for(i in e){if(!l[0]||t.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),e[o]}(p,S,a)),!f&&E.inArray("script",p.dataTypes)>-1&&E.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),b=function(t,n,e,r){var i,o,a,u,l,s={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)s[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(e[t.responseFields[o]]=n),!l&&r&&t.dataFilter&&(n=t.dataFilter(n,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=s[l+" "+o]||s["* "+o]))for(i in s)if((u=i.split(" "))[1]===o&&(a=s[l+" "+u[0]]||s["* "+u[0]])){!0===a?a=s[i]:!0!==s[i]&&(o=u[0],c.unshift(u[1]));break}if(!0!==a)if(a&&t.throws)n=a(n);else try{n=a(n)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:n}}(p,b,S,f),f?(p.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(E.lastModified[i]=w),(w=S.getResponseHeader("etag"))&&(E.etag[i]=w)),204===t||"HEAD"===p.type?M="nocontent":304===t?M="notmodified":(M=b.state,h=b.data,f=!(x=b.error))):(x=M,!t&&M||(M="error",t<0&&(t=0))),S.status=t,S.statusText=(n||M)+"",f?v.resolveWith(d,[h,M,S]):v.rejectWith(d,[S,M,x]),S.statusCode(m),m=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[S,p,f?h:x]),y.fireWith(d,[S,M]),c&&(g.trigger("ajaxComplete",[S,p]),--E.active||E.event.trigger("ajaxStop")))}return S},getJSON:function(t,n,e){return E.get(t,n,e,"json")},getScript:function(t,n){return E.get(t,void 0,n,"script")}}),E.each(["get","post"],(function(t,n){E[n]=function(t,e,r,i){return y(e)&&(i=i||r,r=e,e=void 0),E.ajax(E.extend({url:t,type:n,dataType:i,data:e,success:r},E.isPlainObject(t)&&t))}})),E.ajaxPrefilter((function(t){var n;for(n in t.headers)"content-type"===n.toLowerCase()&&(t.contentType=t.headers[n]||"")})),E._evalUrl=function(t,n,e){return E.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){E.globalEval(t,n,e)}})},E.fn.extend({wrapAll:function(t){var n;return this[0]&&(y(t)&&(t=t.call(this[0])),n=E(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return y(t)?this.each((function(n){E(this).wrapInner(t.call(this,n))})):this.each((function(){var n=E(this),e=n.contents();e.length?e.wrapAll(t):n.append(t)}))},wrap:function(t){var n=y(t);return this.each((function(e){E(this).wrapAll(n?t.call(this,e):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){E(this).replaceWith(this.childNodes)})),this}}),E.expr.pseudos.hidden=function(t){return!E.expr.pseudos.visible(t)},E.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Wn={0:200,1223:204},Vn=E.ajaxSettings.xhr();v.cors=!!Vn&&"withCredentials"in Vn,v.ajax=Vn=!!Vn,E.ajaxTransport((function(t){var n,e;if(v.cors||Vn&&!t.crossDomain)return{send:function(i,o){var a,u=t.xhr();if(u.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)u[a]=t.xhrFields[a];for(a in t.mimeType&&u.overrideMimeType&&u.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)u.setRequestHeader(a,i[a]);n=function(t){return function(){n&&(n=e=u.onload=u.onerror=u.onabort=u.ontimeout=u.onreadystatechange=null,"abort"===t?u.abort():"error"===t?"number"!=typeof u.status?o(0,"error"):o(u.status,u.statusText):o(Wn[u.status]||u.status,u.statusText,"text"!==(u.responseType||"text")||"string"!=typeof u.responseText?{binary:u.response}:{text:u.responseText},u.getAllResponseHeaders()))}},u.onload=n(),e=u.onerror=u.ontimeout=n("error"),void 0!==u.onabort?u.onabort=e:u.onreadystatechange=function(){4===u.readyState&&r.setTimeout((function(){n&&e()}))},n=n("abort");try{u.send(t.hasContent&&t.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}})),E.ajaxPrefilter((function(t){t.crossDomain&&(t.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(t){return E.globalEval(t),t}}}),E.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),E.ajaxTransport("script",(function(t){var n,e;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){n=E("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",e=function(t){n.remove(),e=null,t&&i("error"===t.type?404:200,t.type)}),x.head.appendChild(n[0])},abort:function(){e&&e()}}}));var Yn,Xn=[],Zn=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xn.pop()||E.expando+"_"+_n.guid++;return this[t]=!0,t}}),E.ajaxPrefilter("json jsonp",(function(t,n,e){var i,o,a,u=!1!==t.jsonp&&(Zn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zn.test(t.data)&&"data");if(u||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(Zn,"$1"+i):!1!==t.jsonp&&(t.url+=(kn.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||E.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},e.always((function(){void 0===o?E(r).removeProp(i):r[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Xn.push(i)),a&&y(o)&&o(a[0]),a=o=void 0})),"script"})),v.createHTMLDocument=((Yn=x.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Yn.childNodes.length),E.parseHTML=function(t,n,e){return"string"!=typeof t?[]:("boolean"==typeof n&&(e=n,n=!1),n||(v.createHTMLDocument?((r=(n=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,n.head.appendChild(r)):n=x),o=!e&&[],(i=D.exec(t))?[n.createElement(i[1])]:(i=St([t],n,o),o&&o.length&&E(o).remove(),E.merge([],i.childNodes)));var r,i,o},E.fn.load=function(t,n,e){var r,i,o,a=this,u=t.indexOf(" ");return u>-1&&(r=mn(t.slice(u)),t=t.slice(0,u)),y(n)?(e=n,n=void 0):n&&"object"==typeof n&&(i="POST"),a.length>0&&E.ajax({url:t,type:i||"GET",dataType:"html",data:n}).done((function(t){o=arguments,a.html(r?E("<div>").append(E.parseHTML(t)).find(r):t)})).always(e&&function(t,n){a.each((function(){e.apply(this,o||[t.responseText,n,t])}))}),this},E.expr.pseudos.animated=function(t){return E.grep(E.timers,(function(n){return t===n.elem})).length},E.offset={setOffset:function(t,n,e){var r,i,o,a,u,l,s=E.css(t,"position"),c=E(t),f={};"static"===s&&(t.style.position="relative"),u=c.offset(),o=E.css(t,"top"),l=E.css(t,"left"),("absolute"===s||"fixed"===s)&&(o+l).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),y(n)&&(n=n.call(t,e,E.extend({},u))),null!=n.top&&(f.top=n.top-u.top+a),null!=n.left&&(f.left=n.left-u.left+i),"using"in n?n.using.call(t,f):c.css(f)}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(n){E.offset.setOffset(this,t,n)}));var n,e,r=this[0];return r?r.getClientRects().length?(n=r.getBoundingClientRect(),e=r.ownerDocument.defaultView,{top:n.top+e.pageYOffset,left:n.left+e.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,n,e,r=this[0],i={top:0,left:0};if("fixed"===E.css(r,"position"))n=r.getBoundingClientRect();else{for(n=this.offset(),e=r.ownerDocument,t=r.offsetParent||e.documentElement;t&&(t===e.body||t===e.documentElement)&&"static"===E.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=E(t).offset()).top+=E.css(t,"borderTopWidth",!0),i.left+=E.css(t,"borderLeftWidth",!0))}return{top:n.top-i.top-E.css(r,"marginTop",!0),left:n.left-i.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===E.css(t,"position");)t=t.offsetParent;return t||at}))}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,n){var e="pageYOffset"===n;E.fn[t]=function(r){return W(this,(function(t,r,i){var o;if(m(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[n]:t[r];o?o.scrollTo(e?o.pageXOffset:i,e?i:o.pageYOffset):t[r]=i}),t,r,arguments.length)}})),E.each(["top","left"],(function(t,n){E.cssHooks[n]=Wt(v.pixelPosition,(function(t,e){if(e)return e=Bt(t,n),It.test(e)?E(t).position()[n]+"px":e}))})),E.each({Height:"height",Width:"width"},(function(t,n){E.each({padding:"inner"+t,content:n,"":"outer"+t},(function(e,r){E.fn[r]=function(i,o){var a=arguments.length&&(e||"boolean"!=typeof i),u=e||(!0===i||!0===o?"margin":"border");return W(this,(function(n,e,i){var o;return m(n)?0===r.indexOf("outer")?n["inner"+t]:n.document.documentElement["client"+t]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+t],o["scroll"+t],n.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?E.css(n,e,u):E.style(n,e,i,u)}),n,a?i:void 0,a)}}))})),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,n){E.fn[n]=function(t){return this.on(n,t)}})),E.fn.extend({bind:function(t,n,e){return this.on(t,null,n,e)},unbind:function(t,n){return this.off(t,null,n)},delegate:function(t,n,e,r){return this.on(n,t,e,r)},undelegate:function(t,n,e){return 1===arguments.length?this.off(t,"**"):this.off(n,t||"**",e)},hover:function(t,n){return this.mouseenter(t).mouseleave(n||t)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,n){E.fn[n]=function(t,e){return arguments.length>0?this.on(n,null,t,e):this.trigger(n)}}));var Gn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;E.proxy=function(t,n){var e,r,i;if("string"==typeof n&&(e=t[n],n=t,t=e),y(t))return r=u.call(arguments,2),(i=function(){return t.apply(n||this,r.concat(u.call(arguments)))}).guid=t.guid=t.guid||E.guid++,i},E.holdReady=function(t){t?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=A,E.isFunction=y,E.isWindow=m,E.camelCase=Z,E.type=M,E.now=Date.now,E.isNumeric=function(t){var n=E.type(t);return("number"===n||"string"===n)&&!isNaN(t-parseFloat(t))},E.trim=function(t){return null==t?"":(t+"").replace(Gn,"")},void 0===(e=function(){return E}.apply(n,[]))||(t.exports=e);var Jn=r.jQuery,Kn=r.$;return E.noConflict=function(t){return r.$===E&&(r.$=Kn),t&&r.jQuery===E&&(r.jQuery=Jn),E},void 0===i&&(r.jQuery=r.$=E),E}))},858:(t,n,e)=>{"use strict";e.r(n),e.d(n,{VERSION:()=>i,after:()=>On,all:()=>ne,allKeys:()=>vt,any:()=>ee,assign:()=>qt,before:()=>Rn,bind:()=>Sn,bindAll:()=>kn,chain:()=>xn,chunk:()=>ze,clone:()=>zt,collect:()=>Zn,compact:()=>Ne,compose:()=>qn,constant:()=>K,contains:()=>re,countBy:()=>ge,create:()=>Pt,debounce:()=>Dn,default:()=>Ue,defaults:()=>Ot,defer:()=>Tn,delay:()=>Cn,detect:()=>Vn,difference:()=>Te,drop:()=>_e,each:()=>Xn,escape:()=>un,every:()=>ne,extend:()=>Lt,extendOwn:()=>qt,filter:()=>Qn,find:()=>Vn,findIndex:()=>In,findKey:()=>zn,findLastIndex:()=>Fn,findWhere:()=>Yn,first:()=>Ee,flatten:()=>Ce,foldl:()=>Jn,foldr:()=>Kn,forEach:()=>Xn,functions:()=>Dt,get:()=>Ut,groupBy:()=>pe,has:()=>Bt,head:()=>Ee,identity:()=>Wt,include:()=>re,includes:()=>re,indexBy:()=>de,indexOf:()=>Bn,initial:()=>Se,inject:()=>Jn,intersection:()=>Le,invert:()=>At,invoke:()=>ie,isArguments:()=>Z,isArray:()=>V,isArrayBuffer:()=>P,isBoolean:()=>C,isDataView:()=>W,isDate:()=>L,isElement:()=>T,isEmpty:()=>lt,isEqual:()=>gt,isError:()=>O,isFinite:()=>G,isFunction:()=>I,isMap:()=>Et,isMatch:()=>st,isNaN:()=>J,isNull:()=>k,isNumber:()=>j,isObject:()=>_,isRegExp:()=>q,isSet:()=>kt,isString:()=>D,isSymbol:()=>R,isTypedArray:()=>it,isUndefined:()=>N,isWeakMap:()=>_t,isWeakSet:()=>Nt,iteratee:()=>Gt,keys:()=>ut,last:()=>ke,lastIndexOf:()=>Wn,map:()=>Zn,mapObject:()=>Kt,matcher:()=>Vt,matches:()=>Vt,max:()=>ue,memoize:()=>Nn,methods:()=>Dt,min:()=>le,mixin:()=>Ie,negate:()=>Ln,noop:()=>Qt,now:()=>rn,object:()=>Re,omit:()=>Me,once:()=>Pn,pairs:()=>Tt,partial:()=>Mn,partition:()=>ve,pick:()=>we,pluck:()=>oe,property:()=>Yt,propertyOf:()=>tn,random:()=>en,range:()=>Pe,reduce:()=>Jn,reduceRight:()=>Kn,reject:()=>te,rest:()=>_e,restArguments:()=>E,result:()=>vn,sample:()=>se,select:()=>Qn,shuffle:()=>ce,size:()=>xe,some:()=>ee,sortBy:()=>fe,sortedIndex:()=>$n,tail:()=>_e,take:()=>Ee,tap:()=>Ht,template:()=>gn,templateSettings:()=>sn,throttle:()=>An,times:()=>nn,toArray:()=>me,toPath:()=>It,transpose:()=>qe,unescape:()=>ln,union:()=>je,uniq:()=>De,unique:()=>De,uniqueId:()=>mn,unzip:()=>qe,values:()=>Ct,where:()=>ae,without:()=>Ae,wrap:()=>jn,zip:()=>Oe});var r={};e.r(r),e.d(r,{VERSION:()=>i,after:()=>On,all:()=>ne,allKeys:()=>vt,any:()=>ee,assign:()=>qt,before:()=>Rn,bind:()=>Sn,bindAll:()=>kn,chain:()=>xn,chunk:()=>ze,clone:()=>zt,collect:()=>Zn,compact:()=>Ne,compose:()=>qn,constant:()=>K,contains:()=>re,countBy:()=>ge,create:()=>Pt,debounce:()=>Dn,default:()=>Fe,defaults:()=>Ot,defer:()=>Tn,delay:()=>Cn,detect:()=>Vn,difference:()=>Te,drop:()=>_e,each:()=>Xn,escape:()=>un,every:()=>ne,extend:()=>Lt,extendOwn:()=>qt,filter:()=>Qn,find:()=>Vn,findIndex:()=>In,findKey:()=>zn,findLastIndex:()=>Fn,findWhere:()=>Yn,first:()=>Ee,flatten:()=>Ce,foldl:()=>Jn,foldr:()=>Kn,forEach:()=>Xn,functions:()=>Dt,get:()=>Ut,groupBy:()=>pe,has:()=>Bt,head:()=>Ee,identity:()=>Wt,include:()=>re,includes:()=>re,indexBy:()=>de,indexOf:()=>Bn,initial:()=>Se,inject:()=>Jn,intersection:()=>Le,invert:()=>At,invoke:()=>ie,isArguments:()=>Z,isArray:()=>V,isArrayBuffer:()=>P,isBoolean:()=>C,isDataView:()=>W,isDate:()=>L,isElement:()=>T,isEmpty:()=>lt,isEqual:()=>gt,isError:()=>O,isFinite:()=>G,isFunction:()=>I,isMap:()=>Et,isMatch:()=>st,isNaN:()=>J,isNull:()=>k,isNumber:()=>j,isObject:()=>_,isRegExp:()=>q,isSet:()=>kt,isString:()=>D,isSymbol:()=>R,isTypedArray:()=>it,isUndefined:()=>N,isWeakMap:()=>_t,isWeakSet:()=>Nt,iteratee:()=>Gt,keys:()=>ut,last:()=>ke,lastIndexOf:()=>Wn,map:()=>Zn,mapObject:()=>Kt,matcher:()=>Vt,matches:()=>Vt,max:()=>ue,memoize:()=>Nn,methods:()=>Dt,min:()=>le,mixin:()=>Ie,negate:()=>Ln,noop:()=>Qt,now:()=>rn,object:()=>Re,omit:()=>Me,once:()=>Pn,pairs:()=>Tt,partial:()=>Mn,partition:()=>ve,pick:()=>we,pluck:()=>oe,property:()=>Yt,propertyOf:()=>tn,random:()=>en,range:()=>Pe,reduce:()=>Jn,reduceRight:()=>Kn,reject:()=>te,rest:()=>_e,restArguments:()=>E,result:()=>vn,sample:()=>se,select:()=>Qn,shuffle:()=>ce,size:()=>xe,some:()=>ee,sortBy:()=>fe,sortedIndex:()=>$n,tail:()=>_e,take:()=>Ee,tap:()=>Ht,template:()=>gn,templateSettings:()=>sn,throttle:()=>An,times:()=>nn,toArray:()=>me,toPath:()=>It,transpose:()=>qe,unescape:()=>ln,union:()=>je,uniq:()=>De,unique:()=>De,uniqueId:()=>mn,unzip:()=>qe,values:()=>Ct,where:()=>ae,without:()=>Ae,wrap:()=>jn,zip:()=>Oe});var i="1.12.1",o="object"==typeof self&&self.self===self&&self||"object"==typeof e.g&&e.g.global===e.g&&e.g||Function("return this")()||{},a=Array.prototype,u=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,s=a.push,c=a.slice,f=u.toString,h=u.hasOwnProperty,p="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,g=Array.isArray,v=Object.keys,y=Object.create,m=p&&ArrayBuffer.isView,x=isNaN,b=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),M=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S=Math.pow(2,53)-1;function E(t,n){return n=null==n?t.length-1:+n,function(){for(var e=Math.max(arguments.length-n,0),r=Array(e),i=0;i<e;i++)r[i]=arguments[i+n];switch(n){case 0:return t.call(this,r);case 1:return t.call(this,arguments[0],r);case 2:return t.call(this,arguments[0],arguments[1],r)}var o=Array(n+1);for(i=0;i<n;i++)o[i]=arguments[i];return o[n]=r,t.apply(this,o)}}function _(t){var n=typeof t;return"function"===n||"object"===n&&!!t}function k(t){return null===t}function N(t){return void 0===t}function C(t){return!0===t||!1===t||"[object Boolean]"===f.call(t)}function T(t){return!(!t||1!==t.nodeType)}function A(t){var n="[object "+t+"]";return function(t){return f.call(t)===n}}const D=A("String"),j=A("Number"),L=A("Date"),q=A("RegExp"),O=A("Error"),R=A("Symbol"),P=A("ArrayBuffer");var z=A("Function"),H=o.document&&o.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof H&&(z=function(t){return"function"==typeof t||!1});const I=z,F=A("Object");var $=d&&F(new DataView(new ArrayBuffer(8))),U="undefined"!=typeof Map&&F(new Map),B=A("DataView");const W=$?function(t){return null!=t&&I(t.getInt8)&&P(t.buffer)}:B,V=g||A("Array");function Y(t,n){return null!=t&&h.call(t,n)}var X=A("Arguments");!function(){X(arguments)||(X=function(t){return Y(t,"callee")})}();const Z=X;function G(t){return!R(t)&&b(t)&&!isNaN(parseFloat(t))}function J(t){return j(t)&&x(t)}function K(t){return function(){return t}}function Q(t){return function(n){var e=t(n);return"number"==typeof e&&e>=0&&e<=S}}function tt(t){return function(n){return null==n?void 0:n[t]}}const nt=tt("byteLength"),et=Q(nt);var rt=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const it=p?function(t){return m?m(t)&&!W(t):et(t)&&rt.test(f.call(t))}:K(!1),ot=tt("length");function at(t,n){n=function(t){for(var n={},e=t.length,r=0;r<e;++r)n[t[r]]=!0;return{contains:function(t){return n[t]},push:function(e){return n[e]=!0,t.push(e)}}}(n);var e=M.length,r=t.constructor,i=I(r)&&r.prototype||u,o="constructor";for(Y(t,o)&&!n.contains(o)&&n.push(o);e--;)(o=M[e])in t&&t[o]!==i[o]&&!n.contains(o)&&n.push(o)}function ut(t){if(!_(t))return[];if(v)return v(t);var n=[];for(var e in t)Y(t,e)&&n.push(e);return w&&at(t,n),n}function lt(t){if(null==t)return!0;var n=ot(t);return"number"==typeof n&&(V(t)||D(t)||Z(t))?0===n:0===ot(ut(t))}function st(t,n){var e=ut(n),r=e.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=e[o];if(n[a]!==i[a]||!(a in i))return!1}return!0}function ct(t){return t instanceof ct?t:this instanceof ct?void(this._wrapped=t):new ct(t)}function ft(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,nt(t))}ct.VERSION=i,ct.prototype.value=function(){return this._wrapped},ct.prototype.valueOf=ct.prototype.toJSON=ct.prototype.value,ct.prototype.toString=function(){return String(this._wrapped)};var ht="[object DataView]";function pt(t,n,e,r){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var i=typeof t;return("function"===i||"object"===i||"object"==typeof n)&&dt(t,n,e,r)}function dt(t,n,e,r){t instanceof ct&&(t=t._wrapped),n instanceof ct&&(n=n._wrapped);var i=f.call(t);if(i!==f.call(n))return!1;if($&&"[object Object]"==i&&W(t)){if(!W(n))return!1;i=ht}switch(i){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(n);case"[object ArrayBuffer]":case ht:return dt(ft(t),ft(n),e,r)}var o="[object Array]"===i;if(!o&&it(t)){if(nt(t)!==nt(n))return!1;if(t.buffer===n.buffer&&t.byteOffset===n.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof t||"object"!=typeof n)return!1;var a=t.constructor,u=n.constructor;if(a!==u&&!(I(a)&&a instanceof a&&I(u)&&u instanceof u)&&"constructor"in t&&"constructor"in n)return!1}r=r||[];for(var s=(e=e||[]).length;s--;)if(e[s]===t)return r[s]===n;if(e.push(t),r.push(n),o){if((s=t.length)!==n.length)return!1;for(;s--;)if(!pt(t[s],n[s],e,r))return!1}else{var c,h=ut(t);if(s=h.length,ut(n).length!==s)return!1;for(;s--;)if(!Y(n,c=h[s])||!pt(t[c],n[c],e,r))return!1}return e.pop(),r.pop(),!0}function gt(t,n){return pt(t,n)}function vt(t){if(!_(t))return[];var n=[];for(var e in t)n.push(e);return w&&at(t,n),n}function yt(t){var n=ot(t);return function(e){if(null==e)return!1;var r=vt(e);if(ot(r))return!1;for(var i=0;i<n;i++)if(!I(e[t[i]]))return!1;return t!==Mt||!I(e[mt])}}var mt="forEach",xt=["clear","delete"],bt=["get","has","set"],wt=xt.concat(mt,bt),Mt=xt.concat(bt),St=["add"].concat(xt,mt,"has");const Et=U?yt(wt):A("Map"),_t=U?yt(Mt):A("WeakMap"),kt=U?yt(St):A("Set"),Nt=A("WeakSet");function Ct(t){for(var n=ut(t),e=n.length,r=Array(e),i=0;i<e;i++)r[i]=t[n[i]];return r}function Tt(t){for(var n=ut(t),e=n.length,r=Array(e),i=0;i<e;i++)r[i]=[n[i],t[n[i]]];return r}function At(t){for(var n={},e=ut(t),r=0,i=e.length;r<i;r++)n[t[e[r]]]=e[r];return n}function Dt(t){var n=[];for(var e in t)I(t[e])&&n.push(e);return n.sort()}function jt(t,n){return function(e){var r=arguments.length;if(n&&(e=Object(e)),r<2||null==e)return e;for(var i=1;i<r;i++)for(var o=arguments[i],a=t(o),u=a.length,l=0;l<u;l++){var s=a[l];n&&void 0!==e[s]||(e[s]=o[s])}return e}}const Lt=jt(vt),qt=jt(ut),Ot=jt(vt,!0);function Rt(t){if(!_(t))return{};if(y)return y(t);var n=function(){};n.prototype=t;var e=new n;return n.prototype=null,e}function Pt(t,n){var e=Rt(t);return n&&qt(e,n),e}function zt(t){return _(t)?V(t)?t.slice():Lt({},t):t}function Ht(t,n){return n(t),t}function It(t){return V(t)?t:[t]}function Ft(t){return ct.toPath(t)}function $t(t,n){for(var e=n.length,r=0;r<e;r++){if(null==t)return;t=t[n[r]]}return e?t:void 0}function Ut(t,n,e){var r=$t(t,Ft(n));return N(r)?e:r}function Bt(t,n){for(var e=(n=Ft(n)).length,r=0;r<e;r++){var i=n[r];if(!Y(t,i))return!1;t=t[i]}return!!e}function Wt(t){return t}function Vt(t){return t=qt({},t),function(n){return st(n,t)}}function Yt(t){return t=Ft(t),function(n){return $t(n,t)}}function Xt(t,n,e){if(void 0===n)return t;switch(null==e?3:e){case 1:return function(e){return t.call(n,e)};case 3:return function(e,r,i){return t.call(n,e,r,i)};case 4:return function(e,r,i,o){return t.call(n,e,r,i,o)}}return function(){return t.apply(n,arguments)}}function Zt(t,n,e){return null==t?Wt:I(t)?Xt(t,n,e):_(t)&&!V(t)?Vt(t):Yt(t)}function Gt(t,n){return Zt(t,n,1/0)}function Jt(t,n,e){return ct.iteratee!==Gt?ct.iteratee(t,n):Zt(t,n,e)}function Kt(t,n,e){n=Jt(n,e);for(var r=ut(t),i=r.length,o={},a=0;a<i;a++){var u=r[a];o[u]=n(t[u],u,t)}return o}function Qt(){}function tn(t){return null==t?Qt:function(n){return Ut(t,n)}}function nn(t,n,e){var r=Array(Math.max(0,t));n=Xt(n,e,1);for(var i=0;i<t;i++)r[i]=n(i);return r}function en(t,n){return null==n&&(n=t,t=0),t+Math.floor(Math.random()*(n-t+1))}ct.toPath=It,ct.iteratee=Gt;const rn=Date.now||function(){return(new Date).getTime()};function on(t){var n=function(n){return t[n]},e="(?:"+ut(t).join("|")+")",r=RegExp(e),i=RegExp(e,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,n):t}}const an={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},un=on(an),ln=on(At(an)),sn=ct.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var cn=/(.)^/,fn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},hn=/\\|'|\r|\n|\u2028|\u2029/g;function pn(t){return"\\"+fn[t]}var dn=/^\s*(\w|\$)+\s*$/;function gn(t,n,e){!n&&e&&(n=e),n=Ot({},n,ct.templateSettings);var r=RegExp([(n.escape||cn).source,(n.interpolate||cn).source,(n.evaluate||cn).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,(function(n,e,r,a,u){return o+=t.slice(i,u).replace(hn,pn),i=u+n.length,e?o+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),n})),o+="';\n";var a,u=n.variable;if(u){if(!dn.test(u))throw new Error(u)}else o="with(obj||{}){\n"+o+"}\n",u="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(u,"_",o)}catch(t){throw t.source=o,t}var l=function(t){return a.call(this,t,ct)};return l.source="function("+u+"){\n"+o+"}",l}function vn(t,n,e){var r=(n=Ft(n)).length;if(!r)return I(e)?e.call(t):e;for(var i=0;i<r;i++){var o=null==t?void 0:t[n[i]];void 0===o&&(o=e,i=r),t=I(o)?o.call(t):o}return t}var yn=0;function mn(t){var n=++yn+"";return t?t+n:n}function xn(t){var n=ct(t);return n._chain=!0,n}function bn(t,n,e,r,i){if(!(r instanceof n))return t.apply(e,i);var o=Rt(t.prototype),a=t.apply(o,i);return _(a)?a:o}var wn=E((function(t,n){var e=wn.placeholder,r=function(){for(var i=0,o=n.length,a=Array(o),u=0;u<o;u++)a[u]=n[u]===e?arguments[i++]:n[u];for(;i<arguments.length;)a.push(arguments[i++]);return bn(t,r,this,this,a)};return r}));wn.placeholder=ct;const Mn=wn,Sn=E((function(t,n,e){if(!I(t))throw new TypeError("Bind must be called on a function");var r=E((function(i){return bn(t,r,n,this,e.concat(i))}));return r})),En=Q(ot);function _n(t,n,e,r){if(r=r||[],n||0===n){if(n<=0)return r.concat(t)}else n=1/0;for(var i=r.length,o=0,a=ot(t);o<a;o++){var u=t[o];if(En(u)&&(V(u)||Z(u)))if(n>1)_n(u,n-1,e,r),i=r.length;else for(var l=0,s=u.length;l<s;)r[i++]=u[l++];else e||(r[i++]=u)}return r}const kn=E((function(t,n){var e=(n=_n(n,!1,!1)).length;if(e<1)throw new Error("bindAll must be passed function names");for(;e--;){var r=n[e];t[r]=Sn(t[r],t)}return t}));function Nn(t,n){var e=function(r){var i=e.cache,o=""+(n?n.apply(this,arguments):r);return Y(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return e.cache={},e}const Cn=E((function(t,n,e){return setTimeout((function(){return t.apply(null,e)}),n)})),Tn=Mn(Cn,ct,1);function An(t,n,e){var r,i,o,a,u=0;e||(e={});var l=function(){u=!1===e.leading?0:rn(),r=null,a=t.apply(i,o),r||(i=o=null)},s=function(){var s=rn();u||!1!==e.leading||(u=s);var c=n-(s-u);return i=this,o=arguments,c<=0||c>n?(r&&(clearTimeout(r),r=null),u=s,a=t.apply(i,o),r||(i=o=null)):r||!1===e.trailing||(r=setTimeout(l,c)),a};return s.cancel=function(){clearTimeout(r),u=0,r=i=o=null},s}function Dn(t,n,e){var r,i,o,a,u,l=function(){var s=rn()-i;n>s?r=setTimeout(l,n-s):(r=null,e||(a=t.apply(u,o)),r||(o=u=null))},s=E((function(s){return u=this,o=s,i=rn(),r||(r=setTimeout(l,n),e&&(a=t.apply(u,o))),a}));return s.cancel=function(){clearTimeout(r),r=o=u=null},s}function jn(t,n){return Mn(n,t)}function Ln(t){return function(){return!t.apply(this,arguments)}}function qn(){var t=arguments,n=t.length-1;return function(){for(var e=n,r=t[n].apply(this,arguments);e--;)r=t[e].call(this,r);return r}}function On(t,n){return function(){if(--t<1)return n.apply(this,arguments)}}function Rn(t,n){var e;return function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=null),e}}const Pn=Mn(Rn,2);function zn(t,n,e){n=Jt(n,e);for(var r,i=ut(t),o=0,a=i.length;o<a;o++)if(n(t[r=i[o]],r,t))return r}function Hn(t){return function(n,e,r){e=Jt(e,r);for(var i=ot(n),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(e(n[o],o,n))return o;return-1}}const In=Hn(1),Fn=Hn(-1);function $n(t,n,e,r){for(var i=(e=Jt(e,r,1))(n),o=0,a=ot(t);o<a;){var u=Math.floor((o+a)/2);e(t[u])<i?o=u+1:a=u}return o}function Un(t,n,e){return function(r,i,o){var a=0,u=ot(r);if("number"==typeof o)t>0?a=o>=0?o:Math.max(o+u,a):u=o>=0?Math.min(o+1,u):o+u+1;else if(e&&o&&u)return r[o=e(r,i)]===i?o:-1;if(i!=i)return(o=n(c.call(r,a,u),J))>=0?o+a:-1;for(o=t>0?a:u-1;o>=0&&o<u;o+=t)if(r[o]===i)return o;return-1}}const Bn=Un(1,In,$n),Wn=Un(-1,Fn);function Vn(t,n,e){var r=(En(t)?In:zn)(t,n,e);if(void 0!==r&&-1!==r)return t[r]}function Yn(t,n){return Vn(t,Vt(n))}function Xn(t,n,e){var r,i;if(n=Xt(n,e),En(t))for(r=0,i=t.length;r<i;r++)n(t[r],r,t);else{var o=ut(t);for(r=0,i=o.length;r<i;r++)n(t[o[r]],o[r],t)}return t}function Zn(t,n,e){n=Jt(n,e);for(var r=!En(t)&&ut(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var u=r?r[a]:a;o[a]=n(t[u],u,t)}return o}function Gn(t){var n=function(n,e,r,i){var o=!En(n)&&ut(n),a=(o||n).length,u=t>0?0:a-1;for(i||(r=n[o?o[u]:u],u+=t);u>=0&&u<a;u+=t){var l=o?o[u]:u;r=e(r,n[l],l,n)}return r};return function(t,e,r,i){var o=arguments.length>=3;return n(t,Xt(e,i,4),r,o)}}const Jn=Gn(1),Kn=Gn(-1);function Qn(t,n,e){var r=[];return n=Jt(n,e),Xn(t,(function(t,e,i){n(t,e,i)&&r.push(t)})),r}function te(t,n,e){return Qn(t,Ln(Jt(n)),e)}function ne(t,n,e){n=Jt(n,e);for(var r=!En(t)&&ut(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(!n(t[a],a,t))return!1}return!0}function ee(t,n,e){n=Jt(n,e);for(var r=!En(t)&&ut(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(n(t[a],a,t))return!0}return!1}function re(t,n,e,r){return En(t)||(t=Ct(t)),("number"!=typeof e||r)&&(e=0),Bn(t,n,e)>=0}const ie=E((function(t,n,e){var r,i;return I(n)?i=n:(n=Ft(n),r=n.slice(0,-1),n=n[n.length-1]),Zn(t,(function(t){var o=i;if(!o){if(r&&r.length&&(t=$t(t,r)),null==t)return;o=t[n]}return null==o?o:o.apply(t,e)}))}));function oe(t,n){return Zn(t,Yt(n))}function ae(t,n){return Qn(t,Vt(n))}function ue(t,n,e){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=typeof t[0]&&null!=t)for(var u=0,l=(t=En(t)?t:Ct(t)).length;u<l;u++)null!=(r=t[u])&&r>o&&(o=r);else n=Jt(n,e),Xn(t,(function(t,e,r){((i=n(t,e,r))>a||i===-1/0&&o===-1/0)&&(o=t,a=i)}));return o}function le(t,n,e){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=typeof t[0]&&null!=t)for(var u=0,l=(t=En(t)?t:Ct(t)).length;u<l;u++)null!=(r=t[u])&&r<o&&(o=r);else n=Jt(n,e),Xn(t,(function(t,e,r){((i=n(t,e,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)}));return o}function se(t,n,e){if(null==n||e)return En(t)||(t=Ct(t)),t[en(t.length-1)];var r=En(t)?zt(t):Ct(t),i=ot(r);n=Math.max(Math.min(n,i),0);for(var o=i-1,a=0;a<n;a++){var u=en(a,o),l=r[a];r[a]=r[u],r[u]=l}return r.slice(0,n)}function ce(t){return se(t,1/0)}function fe(t,n,e){var r=0;return n=Jt(n,e),oe(Zn(t,(function(t,e,i){return{value:t,index:r++,criteria:n(t,e,i)}})).sort((function(t,n){var e=t.criteria,r=n.criteria;if(e!==r){if(e>r||void 0===e)return 1;if(e<r||void 0===r)return-1}return t.index-n.index})),"value")}function he(t,n){return function(e,r,i){var o=n?[[],[]]:{};return r=Jt(r,i),Xn(e,(function(n,i){var a=r(n,i,e);t(o,n,a)})),o}}const pe=he((function(t,n,e){Y(t,e)?t[e].push(n):t[e]=[n]})),de=he((function(t,n,e){t[e]=n})),ge=he((function(t,n,e){Y(t,e)?t[e]++:t[e]=1})),ve=he((function(t,n,e){t[e?0:1].push(n)}),!0);var ye=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function me(t){return t?V(t)?c.call(t):D(t)?t.match(ye):En(t)?Zn(t,Wt):Ct(t):[]}function xe(t){return null==t?0:En(t)?t.length:ut(t).length}function be(t,n,e){return n in e}const we=E((function(t,n){var e={},r=n[0];if(null==t)return e;I(r)?(n.length>1&&(r=Xt(r,n[1])),n=vt(t)):(r=be,n=_n(n,!1,!1),t=Object(t));for(var i=0,o=n.length;i<o;i++){var a=n[i],u=t[a];r(u,a,t)&&(e[a]=u)}return e})),Me=E((function(t,n){var e,r=n[0];return I(r)?(r=Ln(r),n.length>1&&(e=n[1])):(n=Zn(_n(n,!1,!1),String),r=function(t,e){return!re(n,e)}),we(t,r,e)}));function Se(t,n,e){return c.call(t,0,Math.max(0,t.length-(null==n||e?1:n)))}function Ee(t,n,e){return null==t||t.length<1?null==n||e?void 0:[]:null==n||e?t[0]:Se(t,t.length-n)}function _e(t,n,e){return c.call(t,null==n||e?1:n)}function ke(t,n,e){return null==t||t.length<1?null==n||e?void 0:[]:null==n||e?t[t.length-1]:_e(t,Math.max(0,t.length-n))}function Ne(t){return Qn(t,Boolean)}function Ce(t,n){return _n(t,n,!1)}const Te=E((function(t,n){return n=_n(n,!0,!0),Qn(t,(function(t){return!re(n,t)}))})),Ae=E((function(t,n){return Te(t,n)}));function De(t,n,e,r){C(n)||(r=e,e=n,n=!1),null!=e&&(e=Jt(e,r));for(var i=[],o=[],a=0,u=ot(t);a<u;a++){var l=t[a],s=e?e(l,a,t):l;n&&!e?(a&&o===s||i.push(l),o=s):e?re(o,s)||(o.push(s),i.push(l)):re(i,l)||i.push(l)}return i}const je=E((function(t){return De(_n(t,!0,!0))}));function Le(t){for(var n=[],e=arguments.length,r=0,i=ot(t);r<i;r++){var o=t[r];if(!re(n,o)){var a;for(a=1;a<e&&re(arguments[a],o);a++);a===e&&n.push(o)}}return n}function qe(t){for(var n=t&&ue(t,ot).length||0,e=Array(n),r=0;r<n;r++)e[r]=oe(t,r);return e}const Oe=E(qe);function Re(t,n){for(var e={},r=0,i=ot(t);r<i;r++)n?e[t[r]]=n[r]:e[t[r][0]]=t[r][1];return e}function Pe(t,n,e){null==n&&(n=t||0,t=0),e||(e=n<t?-1:1);for(var r=Math.max(Math.ceil((n-t)/e),0),i=Array(r),o=0;o<r;o++,t+=e)i[o]=t;return i}function ze(t,n){if(null==n||n<1)return[];for(var e=[],r=0,i=t.length;r<i;)e.push(c.call(t,r,r+=n));return e}function He(t,n){return t._chain?ct(n).chain():n}function Ie(t){return Xn(Dt(t),(function(n){var e=ct[n]=t[n];ct.prototype[n]=function(){var t=[this._wrapped];return s.apply(t,arguments),He(this,e.apply(ct,t))}})),ct}Xn(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var n=a[t];ct.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),He(this,e)}})),Xn(["concat","join","slice"],(function(t){var n=a[t];ct.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=n.apply(t,arguments)),He(this,t)}}));const Fe=ct;var $e=Ie(r);$e._=$e;const Ue=$e},28:(t,n,e)=>{var r,i;r=[e(291),e(858),e(460),e(635),e(895)],void 0===(i=((t,n,e,r,i)=>{const o={date_hour:n.range(0,24),date_minute:n.range(0,60),date_mday:n.range(1,32),date_month:["january","february","march","april","may","june","july","august","september","october","november","december"],date_second:n.range(0,60),date_wday:["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]},a=function(t,n,e){const r=n||25,i=e||"...";let o=t||"null";return o.length>r&&(o=o.substring(0,r+1),o+=i),o},u=function(t){let n=t;return n>1e3&&(n=`${Math.round(t/1e3)}K`),n},l=function(t){return t<12?`${0===t?12:t}AM`:(12===t?12:t-12)+"PM"},s=r.getCurrentTheme&&"dark"===r.getCurrentTheme();return e.extend({initialize(...n){e.prototype.initialize.apply(this,n),this.$el=t(this.el),this.$el.addClass("splunk-punchcard"),s&&this.$el.addClass("dark")},setupView(){const t=parseInt(this.$el.width(),10),n=parseInt(this.$el.height(),10),e=i.select(this.el).append("svg").attr("width",t).attr("height",n).attr("pointer-events","all");this.viz={container:this.$el,svg:e,margin:{top:30,right:30,bottom:30,left:30}}},formatData(t){const{fields:r}=t,{rows:i}=t;if(i.length<1&&r.length<1)return!1;if(r.length<3)throw new e.VisualizationError("Check the Statistics tab. To create a punchcard, there must be at least three columns in the results table. These columns should represent two dimensions and a metric count.");this.xDimension=r[0].name,this.yDimension=r[1].name;let a=[];const u=[];let l={},s=!1;n.each(i,(t=>{const e=t[1];let r=t[3];const i=parseInt(t[2],10),o=t[0];n.isNaN(+r)?s=!0:r=+r,a.push(o),l[e]=l[e]||{total:0,name:e,counts:[]},l[e].total+=i,l[e].counts.push({yValue:e,xValue:o,count:i,category:r}),u.push(r)})),a=n.uniq(a),n.contains(n.keys(o),this.yDimension)&&(l=n.sortBy(l,(t=>n.indexOf(o[this.yDimension],t.name))));const c={xValues:a,colorCategories:n.uniq(u),nonNumericalCategories:s},f=t;return f.metadata=c,f.countData=n.values(l),f},updateView(c,f){if(!c||c.rows.length<1)return;this.useDrilldown=this.isEnabledDrilldown(f);const h=this.getEscapedProperty("radiusScale",f)||"local",p=r.normalizeBoolean(this.getEscapedProperty("useColors",f)),d=this.getEscapedProperty("colorMode",f)||"categorical",g=this.getEscapedProperty("minColor",f)||"#d93f3c",v=this.getEscapedProperty("maxColor",f)||"#3fc77a",y=this.getEscapedProperty("numOfBins",f)||6,m=this.getEscapedProperty("labelRotation",f)||"horizontal",x=p;let b,w;const M=this;if(p)if("categorical"===d)w=i.scale.ordinal().domain(c.metadata.colorCategories).range(c.metadata.colorCategories),b=i.scale.ordinal().domain(c.metadata.colorCategories).range(r.getColorPalette("splunkCategorical"));else{if(c.metadata.nonNumericalCategories)throw new e.VisualizationError("Check the Statistics tab. To use the sequential color mode, color field values must be numerical.");const t=c.metadata.colorCategories.sort(((t,n)=>t-n)),r=n.min(t),o=n.max(t),a=[],u=[],l=i.interpolateRound(r,o),s=i.interpolateHcl(g,v);for(let t=0;t<y;t+=1)a.push(l(t/(y-1))),u.push(s(t/(y-1)));b=i.scale.ordinal().domain(a).range(u);const f=[],h=[];for(let n=0;n<t.length;n+=1){const e=t[n];let r=-1;for(let t=0;t<a.length;t+=1)a[t]<=e&&(r+=1);f.push(e),h.push(a[r])}w=i.scale.ordinal().domain(f).range(h)}else w=i.scale.ordinal().domain(c.metadata.colorCategories).range(c.metadata.colorCategories),b=i.scale.ordinal().domain(c.metadata.colorCategories).range(["#1e93c6"]);const S=this.el,{metadata:E}=c,{countData:_}=c,k="date_hour"===this.xDimension?l:function(t){return a(t,"angle"===m?4:9)},N=u,C=this.$el.height(),T=this.$el.width(),A=t(this.viz.svg[0]);A.empty(),A.height(C),A.width(T);const D=T-this.viz.margin.left-this.viz.margin.right-130-100*(x?1:0),j=C-this.viz.margin.top-this.viz.margin.bottom,L=j-30,q=this.viz.svg.append("g").attr("width",D).attr("height",j).attr("transform",`translate(${this.viz.margin.left+130},${this.viz.margin.top})`),O=o[this.xDimension]||E.xValues;let R=null;if(P=O,n.every(P,(t=>n.isNumber(t)))){const t=n.min(O),e=n.max(O);R=i.scale.linear().domain([t,e]).range([0,D-this.viz.margin.right])}else R=i.scale.ordinal().domain(O).rangePoints([0,D-this.viz.margin.right]);var P;const z=i.svg.axis().scale(R).ticks(O.length+1).tickFormat(k).orient("top"),H=q.append("g").attr("class","x axis").call(z).selectAll("text");H.attr("data-label-input",(t=>t)),H.append("title").attr("data-label-input",(t=>t)).text((t=>t)),"angle"===m&&H.attr("y",0).attr("x",9).attr("dy","-.35em").attr("transform","rotate(-33, -5, 5)").style("text-anchor","start");const I=s?"#E1E6EB":"#333";i.select(this.el).selectAll(".tick")[0].forEach((t=>{i.select(t).select("text").on("mouseover",(function(t){i.select(this).style("fill",I).style("font-weight","bold"),i.select(S).selectAll(`circle[data-column="${t}"]`).transition().duration(120).style("opacity","0"),i.select(S).selectAll(`text[data-column="${t}"]`).transition().duration(120).style("opacity","1")})).on("mouseout",(function(t){i.select(this).style("fill",I).style("font-weight","normal"),i.select(S).selectAll(`circle[data-column="${t}"]`).transition().duration(120).style("opacity","1"),i.select(S).selectAll(`text[data-column="${t}"]`).transition().duration(120).style("opacity","0")})).on("click",(function(){const t=i.select(this);M.axisLabelDrilldown(M.xDimension,t.attr("data-label-input"))}))}));const F=n.max(n.pluck(n.flatten(n.pluck(_,"counts")),"count")),$=_.length,U=(D-130)/O.length/2,B=L/$/2;let W=Math.min(B,U);W=Math.max(W,6.5);const V=2*W+2,Y=this.viz.margin.top+30+V*_.length,X=30+22*b.domain().length;if(A.height(Math.max(Y,X)),n.each(_,((t,e)=>{const r="global"===h?F:n.max(n.pluck(n.flatten(t.counts),"count")),o=i.scale.linear().domain([0,r]).range([1,W]).clamp(!0),u=q.append("g").attr("class","dimension").attr("data-category",t.category),l=u.selectAll("circle").data(t.counts).enter().append("circle");u.selectAll("text").data(t.counts).enter().append("text").attr("data-ccat",(t=>"categorical"===d?t.category:w(t.category))),l.attr("cx",(t=>R(t.xValue))).attr("cy",e*V+V).attr("r",(t=>o(t.count))).attr("data-column",(t=>t.xValue)).attr("data-ccat",(t=>"categorical"===d?t.category:w(t.category))).style("fill",(t=>p?b(w(t.category)):"rgb(30, 147, 198)")).append("svg:title").text((t=>t.count));const c=u.selectAll(".punch-label").data(t.counts),f=c.enter().append("g").attr("class","punch-label").attr("data-column",(t=>t.xValue)).on("mouseover",(function(){const t=i.select(this).select("text").style("font-weight","bold");t.transition().duration(120).style("opacity",1),t.attr("storedFill",t.style("fill")).style("fill",I);const n=t.attr("data-column");i.select(i.select(this).node().parentNode).selectAll(`circle[data-column="${n}"]`).transition().duration(120).style("opacity","0")})).on("mouseout",(function(){const t=i.select(this).select("text").style("font-weight","normal");t.transition().duration(120).style("opacity",0),t.style("fill",t.attr("storedFill"));const n=t.attr("data-column");i.select(i.select(this).node().parentNode).selectAll(`circle[data-column="${n}"]`).transition().duration(120).style("opacity","1")})).on("click",M.punchDrilldown.bind(M));var g;f.append("rect").style("fill","#000000").style("opacity",0),f.append("text").attr("data-column",(t=>t.xValue)).attr("data-ccat",(t=>"categorical"===d?t.category:w(t.category))).style("text-anchor","middle").style("fill",(t=>p?b(w(t.category)):"rgb(30, 147, 198)")).style("opacity",0),c.attr("transform",(t=>`translate(${R(t.xValue)-W},${e*V+W})`)).select("text").text((t=>N(t.count))).attr("class","value").attr("y",W+7).attr("x",W),c.select("rect").attr("width",2*W+2).attr("height",2*W+2),u.append("text").attr("y",e*V+V+5).attr("x",-130).attr("class","label").attr("data-label-input",t.name).text((g=t.name,a(g,15))).style("fill",s?"#E1E6EB":"#555").on("mouseover",(function(){const t=i.select(this).node().parentNode,n=i.select(this);n.attr("storedFill",n.style("fill")),n.style("fill",s?"white":"black"),n.style("font-weight","bold"),i.select(t).selectAll("circle").transition().duration(120).style("opacity","0"),i.select(t).selectAll("g text.value").transition().duration(120).style("opacity","1")})).on("mouseout",(function(){const t=i.select(this).node().parentNode,n=i.select(this);n.style("fill",n.attr("storedFill")),n.style("font-weight","normal"),i.select(t).selectAll("circle").transition().duration(120).style("opacity","1"),i.select(t).selectAll("g text.value").transition().duration(120).style("opacity","0")})).on("click",(function(){const t=i.select(this);M.axisLabelDrilldown(M.yDimension,t.attr("data-label-input"))}))})),x){const t=q.append("g").attr("class","legend-container").attr("transform",(()=>`translate(${D+8},0)`)).attr("height",22*b.domain()).selectAll(".legend-item").data(b.domain()).enter().append("g").attr("class","legend-item").attr("transform",((t,n)=>`translate(0,${22*n})`)).on("mouseover",(function(t){i.select(this).select("text").style("font-weight","bold"),q.selectAll(`circle[data-ccat="${t}"]`).transition().duration(120).style("opacity",0),q.selectAll(`text[data-ccat="${t}"]`).transition().duration(120).style("opacity",1)})).on("mouseout",(function(t){i.select(this).select("text").style("font-weight","normal"),q.selectAll(`circle[data-ccat="${t}"]`).transition().duration(120).style("opacity",1),q.selectAll(`text[data-ccat="${t}"]`).transition().duration(120).style("opacity",0)}));t.append("circle").attr("r",7).attr("fill",b),t.append("text").attr("x",22).attr("y",4).attr("fill",s?"white":"").text((t=>a(("categorical"===d?"":">= ")+t,18))).append("title").text((t=>("categorical"===d?"":">= ")+t))}return this.useDrilldown?this.$el.addClass("punchcard-drilldown"):this.$el.removeClass("punchcard-drilldown"),this},punchDrilldown(t){const n={action:e.FIELD_VALUE_DRILLDOWN,data:{}};n.data[this.xDimension]=t.xValue,n.data[this.yDimension]=t.yValue,this.drilldown(n,i.event)},axisLabelDrilldown(t,n){const r={action:e.FIELD_VALUE_DRILLDOWN,data:{}};r.data[t]=n,this.drilldown(r,i.event)},getInitialDataParams:()=>({outputMode:e.ROW_MAJOR_OUTPUT_MODE,count:1e4}),reflow(){this.invalidateUpdateView()},getEscapedProperty(t,n){const e=n[this.getPropertyNamespaceInfo().propertyNamespace+t];return r.escapeHtml(e)},isEnabledDrilldown:t=>!(!t["display.visualizations.custom.drilldown"]||"all"!==t["display.visualizations.custom.drilldown"])})}).apply(n,r))||(t.exports=i)},460:n=>{"use strict";n.exports=t},635:t=>{"use strict";t.exports=n}},r={};function i(t){var n=r[t];if(void 0!==n)return n.exports;var o=r[t]={exports:{}};return e[t].call(o.exports,o,o.exports,i),o.exports}return i.d=(t,n)=>{for(var e in n)i.o(n,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(28)})())); |