plotly.js 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/CITATION.cff +2 -2
- package/README.md +3 -3
- package/dist/README.md +18 -18
- package/dist/plot-schema.json +281 -281
- package/dist/plotly-basic.js +2 -2
- package/dist/plotly-basic.min.js +2 -2
- package/dist/plotly-cartesian.js +2 -2
- package/dist/plotly-cartesian.min.js +2 -2
- package/dist/plotly-finance.js +2 -2
- package/dist/plotly-finance.min.js +2 -2
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +2 -2
- package/dist/plotly-geo.min.js +2 -2
- package/dist/plotly-gl2d.js +2 -2
- package/dist/plotly-gl2d.min.js +2 -2
- package/dist/plotly-gl3d.js +2 -2
- package/dist/plotly-gl3d.min.js +2 -2
- package/dist/plotly-mapbox.js +2 -2
- package/dist/plotly-mapbox.min.js +2 -2
- package/dist/plotly-strict.js +2 -2
- package/dist/plotly-strict.min.js +2 -2
- package/dist/plotly-with-meta.js +5 -11
- package/dist/plotly.js +2 -2
- package/dist/plotly.min.js +2 -2
- package/package.json +1 -1
- package/src/plots/font_attributes.js +3 -9
- package/src/version.js +1 -1
package/dist/plotly-basic.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (basic - minified) v3.0.
|
|
2
|
+
* plotly.js (basic - minified) v3.0.3
|
|
3
3
|
* Copyright 2012-2025, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
root.moduleName = factory();
|
|
13
13
|
}
|
|
14
14
|
} (typeof self !== "undefined" ? self : this, () => {
|
|
15
|
-
"use strict";var Plotly=(()=>{var nb=Object.defineProperty;var eI=Object.getOwnPropertyDescriptor;var rI=Object.getOwnPropertyNames;var tI=Object.prototype.hasOwnProperty;var ib=(e,r)=>()=>(e&&(r=e(e=0)),r);var Z=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var aI=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of rI(r))!tI.call(e,n)&&n!==t&&nb(e,n,{get:()=>r[n],enumerable:!(a=eI(r,n))||a.enumerable});return e};var nI=e=>aI(nb({},"__esModule",{value:!0}),e);var tv=Z(lb=>{"use strict";lb.version="3.0.2"});var sb=Z((ob,av)=>{(function(r,t,a){t[r]=t[r]||a(),typeof av!="undefined"&&av.exports&&(av.exports=t[r])})("Promise",typeof window!="undefined"?window:ob,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(w,T,b,A){return Object.defineProperty(w,T,{value:b,writable:!0,configurable:A!==!1})}}catch(_){r=function(T,b,A){return T[b]=A,T}}a=function(){var w,T,b;function A(S,k){this.fn=S,this.self=k,this.next=void 0}return{add:function(k,q){b=new A(k,q),T?T.next=b:w=b,T=b,b=void 0},drain:function(){var k=w;for(w=T=t=void 0;k;)k.fn.call(k.self),k=k.next}}}();function l(_,w){a.add(_,w),t||(t=i(a.drain))}function o(_){var w,T=typeof _;return _!=null&&(T=="object"||T=="function")&&(w=_.then),typeof w=="function"?w:!1}function s(){for(var _=0;_<this.chain.length;_++)u(this,this.state===1?this.chain[_].success:this.chain[_].failure,this.chain[_]);this.chain.length=0}function u(_,w,T){var b,A;try{w===!1?T.reject(_.msg):(w===!0?b=_.msg:b=w.call(void 0,_.msg),b===T.promise?T.reject(TypeError("Promise-chain cycle")):(A=o(b))?A.call(b,T.resolve,T.reject):T.resolve(b))}catch(S){T.reject(S)}}function f(_){var w,T=this;if(!T.triggered){T.triggered=!0,T.def&&(T=T.def);try{(w=o(_))?l(function(){var b=new d(T);try{w.call(_,function(){f.apply(b,arguments)},function(){v.apply(b,arguments)})}catch(A){v.call(b,A)}}):(T.msg=_,T.state=1,T.chain.length>0&&l(s,T))}catch(b){v.call(new d(T),b)}}}function v(_){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=_,w.state=2,w.chain.length>0&&l(s,w))}function h(_,w,T,b){for(var A=0;A<w.length;A++)(function(k){_.resolve(w[k]).then(function(D){T(k,D)},b)})(A)}function d(_){this.def=_,this.triggered=!1}function m(_){this.promise=_,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function g(_){if(typeof _!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var w=new m(this);this.then=function(b,A){var S={success:typeof b=="function"?b:!0,failure:typeof A=="function"?A:!1};return S.promise=new this.constructor(function(q,D){if(typeof q!="function"||typeof D!="function")throw TypeError("Not a function");S.resolve=q,S.reject=D}),w.chain.push(S),w.state!==0&&l(s,w),S.promise},this.catch=function(b){return this.then(void 0,b)};try{_.call(void 0,function(b){f.call(w,b)},function(b){v.call(w,b)})}catch(T){v.call(w,T)}}var y=r({},"constructor",g,!1);return g.prototype=y,r(y,"__NPO__",0,!1),r(g,"resolve",function(w){var T=this;return w&&typeof w=="object"&&w.__NPO__===1?w:new T(function(A,S){if(typeof A!="function"||typeof S!="function")throw TypeError("Not a function");A(w)})}),r(g,"reject",function(w){return new this(function(b,A){if(typeof b!="function"||typeof A!="function")throw TypeError("Not a function");A(w)})}),r(g,"all",function(w){var T=this;return n.call(w)!="[object Array]"?T.reject(TypeError("Not an array")):w.length===0?T.resolve([]):new T(function(A,S){if(typeof A!="function"||typeof S!="function")throw TypeError("Not a function");var k=w.length,q=Array(k),D=0;h(T,w,function(z,N){q[z]=N,++D===k&&A(q)},S)})}),r(g,"race",function(w){var T=this;return n.call(w)!="[object Array]"?T.reject(TypeError("Not an array")):new T(function(A,S){if(typeof A!="function"||typeof S!="function")throw TypeError("Not a function");h(T,w,function(q,D){A(D)},S)})}),g})});var Ir=Z((uie,nv)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},a=self.document;function n(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(c){t=function(p){for(var x=p.length,M=new Array(x);x--;)M[x]=p[x];return M}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(p,x){o.call(this,p,x+"")},l.setAttributeNS=function(p,x,M){s.call(this,p,x,M+"")},u.setProperty=function(p,x,M){f.call(this,p,x+"",M)}}e.ascending=v;function v(c,p){return c<p?-1:c>p?1:c>=p?0:NaN}e.descending=function(c,p){return p<c?-1:p>c?1:p>=c?0:NaN},e.min=function(c,p){var x=-1,M=c.length,C,L;if(arguments.length===1){for(;++x<M;)if((L=c[x])!=null&&L>=L){C=L;break}for(;++x<M;)(L=c[x])!=null&&C>L&&(C=L)}else{for(;++x<M;)if((L=p.call(c,c[x],x))!=null&&L>=L){C=L;break}for(;++x<M;)(L=p.call(c,c[x],x))!=null&&C>L&&(C=L)}return C},e.max=function(c,p){var x=-1,M=c.length,C,L;if(arguments.length===1){for(;++x<M;)if((L=c[x])!=null&&L>=L){C=L;break}for(;++x<M;)(L=c[x])!=null&&L>C&&(C=L)}else{for(;++x<M;)if((L=p.call(c,c[x],x))!=null&&L>=L){C=L;break}for(;++x<M;)(L=p.call(c,c[x],x))!=null&&L>C&&(C=L)}return C},e.extent=function(c,p){var x=-1,M=c.length,C,L,P;if(arguments.length===1){for(;++x<M;)if((L=c[x])!=null&&L>=L){C=P=L;break}for(;++x<M;)(L=c[x])!=null&&(C>L&&(C=L),P<L&&(P=L))}else{for(;++x<M;)if((L=p.call(c,c[x],x))!=null&&L>=L){C=P=L;break}for(;++x<M;)(L=p.call(c,c[x],x))!=null&&(C>L&&(C=L),P<L&&(P=L))}return[C,P]};function h(c){return c===null?NaN:+c}function d(c){return!isNaN(c)}e.sum=function(c,p){var x=0,M=c.length,C,L=-1;if(arguments.length===1)for(;++L<M;)d(C=+c[L])&&(x+=C);else for(;++L<M;)d(C=+p.call(c,c[L],L))&&(x+=C);return x},e.mean=function(c,p){var x=0,M=c.length,C,L=-1,P=M;if(arguments.length===1)for(;++L<M;)d(C=h(c[L]))?x+=C:--P;else for(;++L<M;)d(C=h(p.call(c,c[L],L)))?x+=C:--P;if(P)return x/P},e.quantile=function(c,p){var x=(c.length-1)*p+1,M=Math.floor(x),C=+c[M-1],L=x-M;return L?C+L*(c[M]-C):C},e.median=function(c,p){var x=[],M=c.length,C,L=-1;if(arguments.length===1)for(;++L<M;)d(C=h(c[L]))&&x.push(C);else for(;++L<M;)d(C=h(p.call(c,c[L],L)))&&x.push(C);if(x.length)return e.quantile(x.sort(v),.5)},e.variance=function(c,p){var x=c.length,M=0,C,L,P=0,E=-1,F=0;if(arguments.length===1)for(;++E<x;)d(C=h(c[E]))&&(L=C-M,M+=L/++F,P+=L*(C-M));else for(;++E<x;)d(C=h(p.call(c,c[E],E)))&&(L=C-M,M+=L/++F,P+=L*(C-M));if(F>1)return P/(F-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(p,x,M,C){for(arguments.length<3&&(M=0),arguments.length<4&&(C=p.length);M<C;){var L=M+C>>>1;c(p[L],x)<0?M=L+1:C=L}return M},right:function(p,x,M,C){for(arguments.length<3&&(M=0),arguments.length<4&&(C=p.length);M<C;){var L=M+C>>>1;c(p[L],x)>0?C=L:M=L+1}return M}}}var g=m(v);e.bisectLeft=g.left,e.bisect=e.bisectRight=g.right,e.bisector=function(c){return m(c.length===1?function(p,x){return v(c(p),x)}:c)},e.shuffle=function(c,p,x){(M=arguments.length)<3&&(x=c.length,M<2&&(p=0));for(var M=x-p,C,L;M;)L=Math.random()*M--|0,C=c[M+p],c[M+p]=c[L+p],c[L+p]=C;return c},e.permute=function(c,p){for(var x=p.length,M=new Array(x);x--;)M[x]=c[p[x]];return M},e.pairs=function(c){for(var p=0,x=c.length-1,M,C=c[0],L=new Array(x<0?0:x);p<x;)L[p]=[M=C,C=c[++p]];return L},e.transpose=function(c){if(!(L=c.length))return[];for(var p=-1,x=e.min(c,y),M=new Array(x);++p<x;)for(var C=-1,L,P=M[p]=new Array(L);++C<L;)P[C]=c[C][p];return M};function y(c){return c.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(c){var p=[];for(var x in c)p.push(x);return p},e.values=function(c){var p=[];for(var x in c)p.push(c[x]);return p},e.entries=function(c){var p=[];for(var x in c)p.push({key:x,value:c[x]});return p},e.merge=function(c){for(var p=c.length,x,M=-1,C=0,L,P;++M<p;)C+=c[M].length;for(L=new Array(C);--p>=0;)for(P=c[p],x=P.length;--x>=0;)L[--C]=P[x];return L};var _=Math.abs;e.range=function(c,p,x){if(arguments.length<3&&(x=1,arguments.length<2&&(p=c,c=0)),(p-c)/x===1/0)throw new Error("infinite range");var M=[],C=w(_(x)),L=-1,P;if(c*=C,p*=C,x*=C,x<0)for(;(P=c+x*++L)>p;)M.push(P/C);else for(;(P=c+x*++L)<p;)M.push(P/C);return M};function w(c){for(var p=1;c*p%1;)p*=10;return p}function T(c,p){for(var x in p)Object.defineProperty(c.prototype,x,{value:p[x],enumerable:!1})}e.map=function(c,p){var x=new b;if(c instanceof b)c.forEach(function(E,F){x.set(E,F)});else if(Array.isArray(c)){var M=-1,C=c.length,L;if(arguments.length===1)for(;++M<C;)x.set(M,c[M]);else for(;++M<C;)x.set(p.call(c,L=c[M],M),L)}else for(var P in c)x.set(P,c[P]);return x};function b(){this._=Object.create(null)}var A="__proto__",S="\0";T(b,{has:D,get:function(c){return this._[k(c)]},set:function(c,p){return this._[k(c)]=p},remove:R,keys:z,values:function(){var c=[];for(var p in this._)c.push(this._[p]);return c},entries:function(){var c=[];for(var p in this._)c.push({key:q(p),value:this._[p]});return c},size:N,empty:H,forEach:function(c){for(var p in this._)c.call(this,q(p),this._[p])}});function k(c){return(c+="")===A||c[0]===S?S+c:c}function q(c){return(c+="")[0]===S?c.slice(1):c}function D(c){return k(c)in this._}function R(c){return(c=k(c))in this._&&delete this._[c]}function z(){var c=[];for(var p in this._)c.push(q(p));return c}function N(){var c=0;for(var p in this._)++c;return c}function H(){for(var c in this._)return!1;return!0}e.nest=function(){var c={},p=[],x=[],M,C;function L(E,F,G){if(G>=p.length)return C?C.call(c,F):M?F.sort(M):F;for(var W=-1,$=F.length,ee=p[G++],he,we,te,le=new b,ue;++W<$;)(ue=le.get(he=ee(we=F[W])))?ue.push(we):le.set(he,[we]);return E?(we=E(),te=function(xe,Te){we.set(xe,L(E,Te,G))}):(we={},te=function(xe,Te){we[xe]=L(E,Te,G)}),le.forEach(te),we}function P(E,F){if(F>=p.length)return E;var G=[],W=x[F++];return E.forEach(function($,ee){G.push({key:$,values:P(ee,F)})}),W?G.sort(function($,ee){return W($.key,ee.key)}):G}return c.map=function(E,F){return L(F,E,0)},c.entries=function(E){return P(L(e.map,E,0),0)},c.key=function(E){return p.push(E),c},c.sortKeys=function(E){return x[p.length-1]=E,c},c.sortValues=function(E){return M=E,c},c.rollup=function(E){return C=E,c},c},e.set=function(c){var p=new O;if(c)for(var x=0,M=c.length;x<M;++x)p.add(c[x]);return p};function O(){this._=Object.create(null)}T(O,{has:D,add:function(c){return this._[k(c+="")]=!0,c},remove:R,values:z,size:N,empty:H,forEach:function(c){for(var p in this._)c.call(this,q(p))}}),e.behavior={};function J(c){return c}e.rebind=function(c,p){for(var x=1,M=arguments.length,C;++x<M;)c[C=arguments[x]]=X(c,p,p[C]);return c};function X(c,p,x){return function(){var M=x.apply(p,arguments);return M===p?c:M}}function B(c,p){if(p in c)return p;p=p.charAt(0).toUpperCase()+p.slice(1);for(var x=0,M=I.length;x<M;++x){var C=I[x]+p;if(C in c)return C}}var I=["webkit","ms","moz","Moz","o","O"];function V(){}e.dispatch=function(){for(var c=new K,p=-1,x=arguments.length;++p<x;)c[arguments[p]]=Q(c);return c};function K(){}K.prototype.on=function(c,p){var x=c.indexOf("."),M="";if(x>=0&&(M=c.slice(x+1),c=c.slice(0,x)),c)return arguments.length<2?this[c].on(M):this[c].on(M,p);if(arguments.length===2){if(p==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(M,null);return this}};function Q(c){var p=[],x=new b;function M(){for(var C=p,L=-1,P=C.length,E;++L<P;)(E=C[L].on)&&E.apply(this,arguments);return c}return M.on=function(C,L){var P=x.get(C),E;return arguments.length<2?P&&P.on:(P&&(P.on=null,p=p.slice(0,E=p.indexOf(P)).concat(p.slice(E+1)),x.remove(C)),L&&p.push(x.set(C,{on:L})),c)},M}e.event=null;function ie(){e.event.preventDefault()}function me(){for(var c=e.event,p;p=c.sourceEvent;)c=p;return c}function pe(c){for(var p=new K,x=0,M=arguments.length;++x<M;)p[arguments[x]]=Q(p);return p.of=function(C,L){return function(P){try{var E=P.sourceEvent=e.event;P.target=c,e.event=P,p[P.type].apply(C,L)}finally{e.event=E}}},p}e.requote=function(c){return c.replace(ge,"\\$&")};var ge=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,j={}.__proto__?function(c,p){c.__proto__=p}:function(c,p){for(var x in p)c[x]=p[x]};function _e(c){return j(c,Ae),c}var se=function(c,p){return p.querySelector(c)},Se=function(c,p){return p.querySelectorAll(c)},ve=function(c,p){var x=c.matches||c[B(c,"matchesSelector")];return ve=function(M,C){return x.call(M,C)},ve(c,p)};typeof Sizzle=="function"&&(se=function(c,p){return Sizzle(c,p)[0]||null},Se=Sizzle,ve=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var Ae=e.selection.prototype=[];Ae.select=function(c){var p=[],x,M,C,L;c=Y(c);for(var P=-1,E=this.length;++P<E;){p.push(x=[]),x.parentNode=(C=this[P]).parentNode;for(var F=-1,G=C.length;++F<G;)(L=C[F])?(x.push(M=c.call(L,L.__data__,F,P)),M&&"__data__"in L&&(M.__data__=L.__data__)):x.push(null)}return _e(p)};function Y(c){return typeof c=="function"?c:function(){return se(c,this)}}Ae.selectAll=function(c){var p=[],x,M;c=re(c);for(var C=-1,L=this.length;++C<L;)for(var P=this[C],E=-1,F=P.length;++E<F;)(M=P[E])&&(p.push(x=t(c.call(M,M.__data__,E,C))),x.parentNode=M);return _e(p)};function re(c){return typeof c=="function"?c:function(){return Se(c,this)}}var U="http://www.w3.org/1999/xhtml",de={svg:"http://www.w3.org/2000/svg",xhtml:U,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};e.ns={prefix:de,qualify:function(c){var p=c.indexOf(":"),x=c;return p>=0&&(x=c.slice(0,p))!=="xmlns"&&(c=c.slice(p+1)),de.hasOwnProperty(x)?{space:de[x],local:c}:c}},Ae.attr=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node();return c=e.ns.qualify(c),c.local?x.getAttributeNS(c.space,c.local):x.getAttribute(c)}for(p in c)this.each(be(p,c[p]));return this}return this.each(be(c,p))};function be(c,p){c=e.ns.qualify(c);function x(){this.removeAttribute(c)}function M(){this.removeAttributeNS(c.space,c.local)}function C(){this.setAttribute(c,p)}function L(){this.setAttributeNS(c.space,c.local,p)}function P(){var F=p.apply(this,arguments);F==null?this.removeAttribute(c):this.setAttribute(c,F)}function E(){var F=p.apply(this,arguments);F==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,F)}return p==null?c.local?M:x:typeof p=="function"?c.local?E:P:c.local?L:C}function ye(c){return c.trim().replace(/\s+/g," ")}Ae.classed=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node(),M=(c=Re(c)).length,C=-1;if(p=x.classList){for(;++C<M;)if(!p.contains(c[C]))return!1}else for(p=x.getAttribute("class");++C<M;)if(!Fe(c[C]).test(p))return!1;return!0}for(p in c)this.each(Pe(p,c[p]));return this}return this.each(Pe(c,p))};function Fe(c){return new RegExp("(?:^|\\s+)"+e.requote(c)+"(?:\\s+|$)","g")}function Re(c){return(c+"").trim().split(/^|\s+/)}function Pe(c,p){c=Re(c).map(Ie);var x=c.length;function M(){for(var L=-1;++L<x;)c[L](this,p)}function C(){for(var L=-1,P=p.apply(this,arguments);++L<x;)c[L](this,P)}return typeof p=="function"?C:M}function Ie(c){var p=Fe(c);return function(x,M){if(C=x.classList)return M?C.add(c):C.remove(c);var C=x.getAttribute("class")||"";M?(p.lastIndex=0,p.test(C)||x.setAttribute("class",ye(C+" "+c))):x.setAttribute("class",ye(C.replace(p," ")))}}Ae.style=function(c,p,x){var M=arguments.length;if(M<3){if(typeof c!="string"){M<2&&(p="");for(x in c)this.each(Be(x,c[x],p));return this}if(M<2){var C=this.node();return i(C).getComputedStyle(C,null).getPropertyValue(c)}x=""}return this.each(Be(c,p,x))};function Be(c,p,x){function M(){this.style.removeProperty(c)}function C(){this.style.setProperty(c,p,x)}function L(){var P=p.apply(this,arguments);P==null?this.style.removeProperty(c):this.style.setProperty(c,P,x)}return p==null?M:typeof p=="function"?L:C}Ae.property=function(c,p){if(arguments.length<2){if(typeof c=="string")return this.node()[c];for(p in c)this.each(Ne(p,c[p]));return this}return this.each(Ne(c,p))};function Ne(c,p){function x(){delete this[c]}function M(){this[c]=p}function C(){var L=p.apply(this,arguments);L==null?delete this[c]:this[c]=L}return p==null?x:typeof p=="function"?C:M}Ae.text=function(c){return arguments.length?this.each(typeof c=="function"?function(){var p=c.apply(this,arguments);this.textContent=p==null?"":p}:c==null?function(){this.textContent=""}:function(){this.textContent=c}):this.node().textContent},Ae.html=function(c){return arguments.length?this.each(typeof c=="function"?function(){var p=c.apply(this,arguments);this.innerHTML=p==null?"":p}:c==null?function(){this.innerHTML=""}:function(){this.innerHTML=c}):this.node().innerHTML},Ae.append=function(c){return c=Ee(c),this.select(function(){return this.appendChild(c.apply(this,arguments))})};function Ee(c){function p(){var M=this.ownerDocument,C=this.namespaceURI;return C===U&&M.documentElement.namespaceURI===U?M.createElement(c):M.createElementNS(C,c)}function x(){return this.ownerDocument.createElementNS(c.space,c.local)}return typeof c=="function"?c:(c=e.ns.qualify(c)).local?x:p}Ae.insert=function(c,p){return c=Ee(c),p=Y(p),this.select(function(){return this.insertBefore(c.apply(this,arguments),p.apply(this,arguments)||null)})},Ae.remove=function(){return this.each(Je)};function Je(){var c=this.parentNode;c&&c.removeChild(this)}Ae.data=function(c,p){var x=-1,M=this.length,C,L;if(!arguments.length){for(c=new Array(M=(C=this[0]).length);++x<M;)(L=C[x])&&(c[x]=L.__data__);return c}function P(W,$){var ee,he=W.length,we=$.length,te=Math.min(he,we),le=new Array(we),ue=new Array(we),xe=new Array(he),Te,ce;if(p){var Ge=new b,rr=new Array(he),or;for(ee=-1;++ee<he;)(Te=W[ee])&&(Ge.has(or=p.call(Te,Te.__data__,ee))?xe[ee]=Te:Ge.set(or,Te),rr[ee]=or);for(ee=-1;++ee<we;)(Te=Ge.get(or=p.call($,ce=$[ee],ee)))?Te!==!0&&(le[ee]=Te,Te.__data__=ce):ue[ee]=We(ce),Ge.set(or,!0);for(ee=-1;++ee<he;)ee in rr&&Ge.get(rr[ee])!==!0&&(xe[ee]=W[ee])}else{for(ee=-1;++ee<te;)Te=W[ee],ce=$[ee],Te?(Te.__data__=ce,le[ee]=Te):ue[ee]=We(ce);for(;ee<we;++ee)ue[ee]=We($[ee]);for(;ee<he;++ee)xe[ee]=W[ee]}ue.update=le,ue.parentNode=le.parentNode=xe.parentNode=W.parentNode,E.push(ue),F.push(le),G.push(xe)}var E=cr([]),F=_e([]),G=_e([]);if(typeof c=="function")for(;++x<M;)P(C=this[x],c.call(C,C.parentNode.__data__,x));else for(;++x<M;)P(C=this[x],c);return F.enter=function(){return E},F.exit=function(){return G},F};function We(c){return{__data__:c}}Ae.datum=function(c){return arguments.length?this.property("__data__",c):this.property("__data__")},Ae.filter=function(c){var p=[],x,M,C;typeof c!="function"&&(c=ne(c));for(var L=0,P=this.length;L<P;L++){p.push(x=[]),x.parentNode=(M=this[L]).parentNode;for(var E=0,F=M.length;E<F;E++)(C=M[E])&&c.call(C,C.__data__,E,L)&&x.push(C)}return _e(p)};function ne(c){return function(){return ve(this,c)}}Ae.order=function(){for(var c=-1,p=this.length;++c<p;)for(var x=this[c],M=x.length-1,C=x[M],L;--M>=0;)(L=x[M])&&(C&&C!==L.nextSibling&&C.parentNode.insertBefore(L,C),C=L);return this},Ae.sort=function(c){c=Me.apply(this,arguments);for(var p=-1,x=this.length;++p<x;)this[p].sort(c);return this.order()};function Me(c){return arguments.length||(c=v),function(p,x){return p&&x?c(p.__data__,x.__data__):!p-!x}}Ae.each=function(c){return Ce(this,function(p,x,M){c.call(p,p.__data__,x,M)})};function Ce(c,p){for(var x=0,M=c.length;x<M;x++)for(var C=c[x],L=0,P=C.length,E;L<P;L++)(E=C[L])&&p(E,L,x);return c}Ae.call=function(c){var p=t(arguments);return c.apply(p[0]=this,p),this},Ae.empty=function(){return!this.node()},Ae.node=function(){for(var c=0,p=this.length;c<p;c++)for(var x=this[c],M=0,C=x.length;M<C;M++){var L=x[M];if(L)return L}return null},Ae.size=function(){var c=0;return Ce(this,function(){++c}),c};function cr(c){return j(c,tr),c}var tr=[];e.selection.enter=cr,e.selection.enter.prototype=tr,tr.append=Ae.append,tr.empty=Ae.empty,tr.node=Ae.node,tr.call=Ae.call,tr.size=Ae.size,tr.select=function(c){for(var p=[],x,M,C,L,P,E=-1,F=this.length;++E<F;){C=(L=this[E]).update,p.push(x=[]),x.parentNode=L.parentNode;for(var G=-1,W=L.length;++G<W;)(P=L[G])?(x.push(C[G]=M=c.call(L.parentNode,P.__data__,G,E)),M.__data__=P.__data__):x.push(null)}return _e(p)},tr.insert=function(c,p){return arguments.length<2&&(p=De(this)),Ae.insert.call(this,c,p)};function De(c){var p,x;return function(M,C,L){var P=c[L].update,E=P.length,F;for(L!=x&&(x=L,p=0),C>=p&&(p=C+1);!(F=P[p])&&++p<E;);return F}}e.select=function(c){var p;return typeof c=="string"?(p=[se(c,a)],p.parentNode=a.documentElement):(p=[c],p.parentNode=n(c)),_e([p])},e.selectAll=function(c){var p;return typeof c=="string"?(p=t(Se(c,a)),p.parentNode=a.documentElement):(p=t(c),p.parentNode=null),_e([p])},Ae.on=function(c,p,x){var M=arguments.length;if(M<3){if(typeof c!="string"){M<2&&(p=!1);for(x in c)this.each(Le(x,c[x],p));return this}if(M<2)return(M=this.node()["__on"+c])&&M._;x=!1}return this.each(Le(c,p,x))};function Le(c,p,x){var M="__on"+c,C=c.indexOf("."),L=Ze;C>0&&(c=c.slice(0,C));var P=Ye.get(c);P&&(c=P,L=Ue);function E(){var W=this[M];W&&(this.removeEventListener(c,W,W.$),delete this[M])}function F(){var W=L(p,t(arguments));E.call(this),this.addEventListener(c,this[M]=W,W.$=x),W._=p}function G(){var W=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),$;for(var ee in this)if($=ee.match(W)){var he=this[ee];this.removeEventListener($[1],he,he.$),delete this[ee]}}return C?p?F:E:p?V:G}var Ye=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ye.forEach(function(c){"on"+c in a&&Ye.remove(c)});function Ze(c,p){return function(x){var M=e.event;e.event=x,p[0]=this.__data__;try{c.apply(this,p)}finally{e.event=M}}}function Ue(c,p){var x=Ze(c,p);return function(M){var C=this,L=M.relatedTarget;(!L||L!==C&&!(L.compareDocumentPosition(C)&8))&&x.call(C,M)}}var Oe,Ke=0;function fr(c){var p=".dragsuppress-"+ ++Ke,x="click"+p,M=e.select(i(c)).on("touchmove"+p,ie).on("dragstart"+p,ie).on("selectstart"+p,ie);if(Oe==null&&(Oe="onselectstart"in c?!1:B(c.style,"userSelect")),Oe){var C=n(c).style,L=C[Oe];C[Oe]="none"}return function(P){if(M.on(p,null),Oe&&(C[Oe]=L),P){var E=function(){M.on(x,null)};M.on(x,function(){ie(),E()},!0),setTimeout(E,0)}}}e.mouse=function(c){return ze(c,me())};var lr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ze(c,p){p.changedTouches&&(p=p.changedTouches[0]);var x=c.ownerSVGElement||c;if(x.createSVGPoint){var M=x.createSVGPoint();if(lr<0){var C=i(c);if(C.scrollX||C.scrollY){x=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=x[0][0].getScreenCTM();lr=!(L.f||L.e),x.remove()}}return lr?(M.x=p.pageX,M.y=p.pageY):(M.x=p.clientX,M.y=p.clientY),M=M.matrixTransform(c.getScreenCTM().inverse()),[M.x,M.y]}var P=c.getBoundingClientRect();return[p.clientX-P.left-c.clientLeft,p.clientY-P.top-c.clientTop]}e.touch=function(c,p,x){if(arguments.length<3&&(x=p,p=me().changedTouches),p){for(var M=0,C=p.length,L;M<C;++M)if((L=p[M]).identifier===x)return ze(c,L)}},e.behavior.drag=function(){var c=pe(C,"drag","dragstart","dragend"),p=null,x=L(V,e.mouse,i,"mousemove","mouseup"),M=L(ae,e.touch,J,"touchmove","touchend");function C(){this.on("mousedown.drag",x).on("touchstart.drag",M)}function L(P,E,F,G,W){return function(){var $=this,ee=e.event.target.correspondingElement||e.event.target,he=$.parentNode,we=c.of($,arguments),te=0,le=P(),ue=".drag"+(le==null?"":"-"+le),xe,Te=e.select(F(ee)).on(G+ue,rr).on(W+ue,or),ce=fr(ee),Ge=E(he,le);p?(xe=p.apply($,arguments),xe=[xe.x-Ge[0],xe.y-Ge[1]]):xe=[0,0],we({type:"dragstart"});function rr(){var ar=E(he,le),hr,dr;ar&&(hr=ar[0]-Ge[0],dr=ar[1]-Ge[1],te|=hr|dr,Ge=ar,we({type:"drag",x:ar[0]+xe[0],y:ar[1]+xe[1],dx:hr,dy:dr}))}function or(){E(he,le)&&(Te.on(G+ue,null).on(W+ue,null),ce(te),we({type:"dragend"}))}}}return C.origin=function(P){return arguments.length?(p=P,C):p},e.rebind(C,c,"on")};function ae(){return e.event.changedTouches[0].identifier}e.touches=function(c,p){return arguments.length<2&&(p=me().touches),p?t(p).map(function(x){var M=ze(c,x);return M.identifier=x.identifier,M}):[]};var oe=1e-6,qe=oe*oe,ke=Math.PI,ir=2*ke,vr=ir-oe,sr=ke/2,Mr=ke/180,Ur=180/ke;function $r(c){return c>0?1:c<0?-1:0}function Vr(c,p,x){return(p[0]-c[0])*(x[1]-c[1])-(p[1]-c[1])*(x[0]-c[0])}function St(c){return c>1?0:c<-1?ke:Math.acos(c)}function ea(c){return c>1?sr:c<-1?-sr:Math.asin(c)}function ka(c){return((c=Math.exp(c))-1/c)/2}function ra(c){return((c=Math.exp(c))+1/c)/2}function pn(c){return((c=Math.exp(2*c))-1)/(c+1)}function Ia(c){return(c=Math.sin(c/2))*c}var ta=Math.SQRT2,Ha=2,yr=4;e.interpolateZoom=function(c,p){var x=c[0],M=c[1],C=c[2],L=p[0],P=p[1],E=p[2],F=L-x,G=P-M,W=F*F+G*G,$,ee;if(W<qe)ee=Math.log(E/C)/ta,$=function(xe){return[x+xe*F,M+xe*G,C*Math.exp(ta*xe*ee)]};else{var he=Math.sqrt(W),we=(E*E-C*C+yr*W)/(2*C*Ha*he),te=(E*E-C*C-yr*W)/(2*E*Ha*he),le=Math.log(Math.sqrt(we*we+1)-we),ue=Math.log(Math.sqrt(te*te+1)-te);ee=(ue-le)/ta,$=function(xe){var Te=xe*ee,ce=ra(le),Ge=C/(Ha*he)*(ce*pn(ta*Te+le)-ka(le));return[x+Ge*F,M+Ge*G,C*ce/ra(ta*Te+le)]}}return $.duration=ee*1e3,$},e.behavior.zoom=function(){var c={x:0,y:0,k:1},p,x,M,C=[960,500],L=lt,P=250,E=0,F="mousedown.zoom",G="mousemove.zoom",W="mouseup.zoom",$,ee="touchstart.zoom",he,we=pe(Te,"zoomstart","zoom","zoomend"),te,le,ue,xe;mt||(mt="onwheel"in a?(Wr=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(Wr=function(){return e.event.wheelDelta},"mousewheel"):(Wr=function(){return-e.event.detail},"MozMousePixelScroll"));function Te(er){er.on(F,Tr).on(mt+".zoom",Lt).on("dblclick.zoom",rt).on(ee,Jr)}Te.event=function(er){er.each(function(){var Lr=we.of(this,arguments),qr=c;Xl?e.select(this).transition().each("start.zoom",function(){c=this.__chart__||{x:0,y:0,k:1},dr(Lr)}).tween("zoom:zoom",function(){var Kr=C[0],_t=C[1],Ot=x?x[0]:Kr/2,ca=x?x[1]:_t/2,La=e.interpolateZoom([(Ot-c.x)/c.k,(ca-c.y)/c.k,Kr/c.k],[(Ot-qr.x)/qr.k,(ca-qr.y)/qr.k,Kr/qr.k]);return function(Oa){var qa=La(Oa),Ga=Kr/qa[2];this.__chart__=c={x:Ot-qa[0]*Ga,y:ca-qa[1]*Ga,k:Ga},Sr(Lr)}}).each("interrupt.zoom",function(){pr(Lr)}).each("end.zoom",function(){pr(Lr)}):(this.__chart__=c,dr(Lr),Sr(Lr),pr(Lr))})},Te.translate=function(er){return arguments.length?(c={x:+er[0],y:+er[1],k:c.k},hr(),Te):[c.x,c.y]},Te.scale=function(er){return arguments.length?(c={x:c.x,y:c.y,k:null},rr(+er),hr(),Te):c.k},Te.scaleExtent=function(er){return arguments.length?(L=er==null?lt:[+er[0],+er[1]],Te):L},Te.center=function(er){return arguments.length?(M=er&&[+er[0],+er[1]],Te):M},Te.size=function(er){return arguments.length?(C=er&&[+er[0],+er[1]],Te):C},Te.duration=function(er){return arguments.length?(P=+er,Te):P},Te.x=function(er){return arguments.length?(le=er,te=er.copy(),c={x:0,y:0,k:1},Te):le},Te.y=function(er){return arguments.length?(xe=er,ue=er.copy(),c={x:0,y:0,k:1},Te):xe};function ce(er){return[(er[0]-c.x)/c.k,(er[1]-c.y)/c.k]}function Ge(er){return[er[0]*c.k+c.x,er[1]*c.k+c.y]}function rr(er){c.k=Math.max(L[0],Math.min(L[1],er))}function or(er,Lr){Lr=Ge(Lr),c.x+=er[0]-Lr[0],c.y+=er[1]-Lr[1]}function ar(er,Lr,qr,Kr){er.__chart__={x:c.x,y:c.y,k:c.k},rr(Math.pow(2,Kr)),or(x=Lr,qr),er=e.select(er),P>0&&(er=er.transition().duration(P)),er.call(Te.event)}function hr(){le&&le.domain(te.range().map(function(er){return(er-c.x)/c.k}).map(te.invert)),xe&&xe.domain(ue.range().map(function(er){return(er-c.y)/c.k}).map(ue.invert))}function dr(er){E++||er({type:"zoomstart"})}function Sr(er){hr(),er({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function pr(er){--E||(er({type:"zoomend"}),x=null)}function Tr(){var er=this,Lr=we.of(er,arguments),qr=0,Kr=e.select(i(er)).on(G,ca).on(W,La),_t=ce(e.mouse(er)),Ot=fr(er);$c.call(er),dr(Lr);function ca(){qr=1,or(e.mouse(er),_t),Sr(Lr)}function La(){Kr.on(G,null).on(W,null),Ot(qr),pr(Lr)}}function Jr(){var er=this,Lr=we.of(er,arguments),qr={},Kr=0,_t,Ot=".zoom-"+e.event.changedTouches[0].identifier,ca="touchmove"+Ot,La="touchend"+Ot,Oa=[],qa=e.select(er),Ga=fr(er);Va(),dr(Lr),qa.on(F,null).on(ee,Va);function ba(){var Yn=e.touches(er);return _t=c.k,Yn.forEach(function(va){va.identifier in qr&&(qr[va.identifier]=ce(va))}),Yn}function Va(){var Yn=e.event.target;e.select(Yn).on(ca,Jl).on(La,jF),Oa.push(Yn);for(var va=e.event.changedTouches,yn=0,vi=va.length;yn<vi;++yn)qr[va[yn].identifier]=null;var gn=ba(),ls=Date.now();if(gn.length===1){if(ls-he<500){var Kl=gn[0];ar(er,Kl,qr[Kl.identifier],Math.floor(Math.log(c.k)/Math.LN2)+1),ie()}he=ls}else if(gn.length>1){var Kl=gn[0],al=gn[1],rv=Kl[0]-al[0],ab=Kl[1]-al[1];Kr=rv*rv+ab*ab}}function Jl(){var Yn=e.touches(er),va,yn,vi,gn;$c.call(er);for(var ls=0,Kl=Yn.length;ls<Kl;++ls,gn=null)if(vi=Yn[ls],gn=qr[vi.identifier]){if(yn)break;va=vi,yn=gn}if(gn){var al=(al=vi[0]-va[0])*al+(al=vi[1]-va[1])*al,rv=Kr&&Math.sqrt(al/Kr);va=[(va[0]+vi[0])/2,(va[1]+vi[1])/2],yn=[(yn[0]+gn[0])/2,(yn[1]+gn[1])/2],rr(rv*_t)}he=null,or(va,yn),Sr(Lr)}function jF(){if(e.event.touches.length){for(var Yn=e.event.changedTouches,va=0,yn=Yn.length;va<yn;++va)delete qr[Yn[va].identifier];for(var vi in qr)return void ba()}e.selectAll(Oa).on(Ot,null),qa.on(F,Tr).on(ee,Jr),Ga(),pr(Lr)}}function Lt(){var er=we.of(this,arguments);$?clearTimeout($):($c.call(this),p=ce(x=M||e.mouse(this)),dr(er)),$=setTimeout(function(){$=null,pr(er)},50),ie(),rr(Math.pow(2,Wr()*.002)*c.k),or(x,p),Sr(er)}function rt(){var er=e.mouse(this),Lr=Math.log(c.k)/Math.LN2;ar(this,er,ce(er),e.event.shiftKey?Math.ceil(Lr)-1:Math.floor(Lr)+1)}return e.rebind(Te,we,"on")};var lt=[0,1/0],Wr,mt;e.color=Tt;function Tt(){}Tt.prototype.toString=function(){return this.rgb()+""},e.hsl=ot;function ot(c,p,x){return this instanceof ot?(this.h=+c,this.s=+p,void(this.l=+x)):arguments.length<2?c instanceof ot?new ot(c.h,c.s,c.l):Zr(""+c,jr,ot):new ot(c,p,x)}var yt=ot.prototype=new Tt;yt.brighter=function(c){return c=Math.pow(.7,arguments.length?c:1),new ot(this.h,this.s,this.l/c)},yt.darker=function(c){return c=Math.pow(.7,arguments.length?c:1),new ot(this.h,this.s,c*this.l)},yt.rgb=function(){return Ca(this.h,this.s,this.l)};function Ca(c,p,x){var M,C;c=isNaN(c)?0:(c%=360)<0?c+360:c,p=isNaN(p)||p<0?0:p>1?1:p,x=x<0?0:x>1?1:x,C=x<=.5?x*(1+p):x+p-x*p,M=2*x-C;function L(E){return E>360?E-=360:E<0&&(E+=360),E<60?M+(C-M)*E/60:E<180?C:E<240?M+(C-M)*(240-E)/60:M}function P(E){return Math.round(L(E)*255)}return new Sa(P(c+120),P(c),P(c-120))}e.hcl=aa;function aa(c,p,x){return this instanceof aa?(this.h=+c,this.c=+p,void(this.l=+x)):arguments.length<2?c instanceof aa?new aa(c.h,c.c,c.l):c instanceof Zt?Dc(c.l,c.a,c.b):Dc((c=nr((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new aa(c,p,x)}var In=aa.prototype=new Tt;In.brighter=function(c){return new aa(this.h,this.c,Math.min(100,this.l+at*(arguments.length?c:1)))},In.darker=function(c){return new aa(this.h,this.c,Math.max(0,this.l-at*(arguments.length?c:1)))},In.rgb=function(){return Hn(this.h,this.c,this.l).rgb()};function Hn(c,p,x){return isNaN(c)&&(c=0),isNaN(p)&&(p=0),new Zt(x,Math.cos(c*=Mr)*p,Math.sin(c)*p)}e.lab=Zt;function Zt(c,p,x){return this instanceof Zt?(this.l=+c,this.a=+p,void(this.b=+x)):arguments.length<2?c instanceof Zt?new Zt(c.l,c.a,c.b):c instanceof aa?Hn(c.h,c.c,c.l):nr((c=Sa(c)).r,c.g,c.b):new Zt(c,p,x)}var at=18,sa=.95047,Ul=1,Gl=1.08883,rl=Zt.prototype=new Tt;rl.brighter=function(c){return new Zt(Math.min(100,this.l+at*(arguments.length?c:1)),this.a,this.b)},rl.darker=function(c){return new Zt(Math.max(0,this.l-at*(arguments.length?c:1)),this.a,this.b)},rl.rgb=function(){return qc(this.l,this.a,this.b)};function qc(c,p,x){var M=(c+16)/116,C=M+p/500,L=M-x/200;return C=ku(C)*sa,M=ku(M)*Ul,L=ku(L)*Gl,new Sa(Su(3.2404542*C-1.5371385*M-.4985314*L),Su(-.969266*C+1.8760108*M+.041556*L),Su(.0556434*C-.2040259*M+1.0572252*L))}function Dc(c,p,x){return c>0?new aa(Math.atan2(x,p)*Ur,Math.sqrt(p*p+x*x),c):new aa(NaN,NaN,c)}function ku(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function Cu(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Su(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=Sa;function Sa(c,p,x){return this instanceof Sa?(this.r=~~c,this.g=~~p,void(this.b=~~x)):arguments.length<2?c instanceof Sa?new Sa(c.r,c.g,c.b):Zr(""+c,Sa,Ca):new Sa(c,p,x)}function Ec(c){return new Sa(c>>16,c>>8&255,c&255)}function $o(c){return Ec(c)+""}var jo=Sa.prototype=new Tt;jo.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var p=this.r,x=this.g,M=this.b,C=30;return!p&&!x&&!M?new Sa(C,C,C):(p&&p<C&&(p=C),x&&x<C&&(x=C),M&&M<C&&(M=C),new Sa(Math.min(255,p/c),Math.min(255,x/c),Math.min(255,M/c)))},jo.darker=function(c){return c=Math.pow(.7,arguments.length?c:1),new Sa(c*this.r,c*this.g,c*this.b)},jo.hsl=function(){return jr(this.r,this.g,this.b)},jo.toString=function(){return"#"+mr(this.r)+mr(this.g)+mr(this.b)};function mr(c){return c<16?"0"+Math.max(0,c).toString(16):Math.min(255,c).toString(16)}function Zr(c,p,x){var M=0,C=0,L=0,P,E,F;if(P=/([a-z]+)\((.*)\)/.exec(c=c.toLowerCase()),P)switch(E=P[2].split(","),P[1]){case"hsl":return x(parseFloat(E[0]),parseFloat(E[1])/100,parseFloat(E[2])/100);case"rgb":return p(st(E[0]),st(E[1]),st(E[2]))}return(F=fa.get(c))?p(F.r,F.g,F.b):(c!=null&&c.charAt(0)==="#"&&!isNaN(F=parseInt(c.slice(1),16))&&(c.length===4?(M=(F&3840)>>4,M=M>>4|M,C=F&240,C=C>>4|C,L=F&15,L=L<<4|L):c.length===7&&(M=(F&16711680)>>16,C=(F&65280)>>8,L=F&255)),p(M,C,L))}function jr(c,p,x){var M=Math.min(c/=255,p/=255,x/=255),C=Math.max(c,p,x),L=C-M,P,E,F=(C+M)/2;return L?(E=F<.5?L/(C+M):L/(2-C-M),c==C?P=(p-x)/L+(p<x?6:0):p==C?P=(x-c)/L+2:P=(c-p)/L+4,P*=60):(P=NaN,E=F>0&&F<1?0:P),new ot(P,E,F)}function nr(c,p,x){c=ua(c),p=ua(p),x=ua(x);var M=Cu((.4124564*c+.3575761*p+.1804375*x)/sa),C=Cu((.2126729*c+.7151522*p+.072175*x)/Ul),L=Cu((.0193339*c+.119192*p+.9503041*x)/Gl);return Zt(116*C-16,500*(M-C),200*(C-L))}function ua(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function st(c){var p=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(p*2.55):p}var fa=e.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});fa.forEach(function(c,p){fa.set(c,Ec(p))});function Rr(c){return typeof c=="function"?c:function(){return c}}e.functor=Rr,e.xhr=On(J);function On(c){return function(p,x,M){return arguments.length===2&&typeof x=="function"&&(M=x,x=null),Vl(p,x,c,M)}}function Vl(c,p,x,M){var C={},L=e.dispatch("beforesend","progress","load","error"),P={},E=new XMLHttpRequest,F=null;self.XDomainRequest&&!("withCredentials"in E)&&/^(http(s)?:)?\/\//.test(c)&&(E=new XDomainRequest),"onload"in E?E.onload=E.onerror=G:E.onreadystatechange=function(){E.readyState>3&&G()};function G(){var W=E.status,$;if(!W&&rN(E)||W>=200&&W<300||W===304){try{$=x.call(C,E)}catch(ee){L.error.call(C,ee);return}L.load.call(C,$)}else L.error.call(C,E)}return E.onprogress=function(W){var $=e.event;e.event=W;try{L.progress.call(C,E)}finally{e.event=$}},C.header=function(W,$){return W=(W+"").toLowerCase(),arguments.length<2?P[W]:($==null?delete P[W]:P[W]=$+"",C)},C.mimeType=function(W){return arguments.length?(p=W==null?null:W+"",C):p},C.responseType=function(W){return arguments.length?(F=W,C):F},C.response=function(W){return x=W,C},["get","post"].forEach(function(W){C[W]=function(){return C.send.apply(C,[W].concat(t(arguments)))}}),C.send=function(W,$,ee){if(arguments.length===2&&typeof $=="function"&&(ee=$,$=null),E.open(W,c,!0),p!=null&&!("accept"in P)&&(P.accept=p+",*/*"),E.setRequestHeader)for(var he in P)E.setRequestHeader(he,P[he]);return p!=null&&E.overrideMimeType&&E.overrideMimeType(p),F!=null&&(E.responseType=F),ee!=null&&C.on("error",ee).on("load",function(we){ee(null,we)}),L.beforesend.call(C,E),E.send($==null?null:$),C},C.abort=function(){return E.abort(),C},e.rebind(C,L,"on"),M==null?C:C.get(eN(M))}function eN(c){return c.length===1?function(p,x){c(p==null?x:null)}:c}function rN(c){var p=c.responseType;return p&&p!=="text"?c.response:c.responseText}e.dsv=function(c,p){var x=new RegExp('["'+c+`
|
|
15
|
+
"use strict";var Plotly=(()=>{var nb=Object.defineProperty;var eI=Object.getOwnPropertyDescriptor;var rI=Object.getOwnPropertyNames;var tI=Object.prototype.hasOwnProperty;var ib=(e,r)=>()=>(e&&(r=e(e=0)),r);var Z=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var aI=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of rI(r))!tI.call(e,n)&&n!==t&&nb(e,n,{get:()=>r[n],enumerable:!(a=eI(r,n))||a.enumerable});return e};var nI=e=>aI(nb({},"__esModule",{value:!0}),e);var tv=Z(lb=>{"use strict";lb.version="3.0.3"});var sb=Z((ob,av)=>{(function(r,t,a){t[r]=t[r]||a(),typeof av!="undefined"&&av.exports&&(av.exports=t[r])})("Promise",typeof window!="undefined"?window:ob,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(w,T,b,A){return Object.defineProperty(w,T,{value:b,writable:!0,configurable:A!==!1})}}catch(_){r=function(T,b,A){return T[b]=A,T}}a=function(){var w,T,b;function A(S,k){this.fn=S,this.self=k,this.next=void 0}return{add:function(k,q){b=new A(k,q),T?T.next=b:w=b,T=b,b=void 0},drain:function(){var k=w;for(w=T=t=void 0;k;)k.fn.call(k.self),k=k.next}}}();function l(_,w){a.add(_,w),t||(t=i(a.drain))}function o(_){var w,T=typeof _;return _!=null&&(T=="object"||T=="function")&&(w=_.then),typeof w=="function"?w:!1}function s(){for(var _=0;_<this.chain.length;_++)u(this,this.state===1?this.chain[_].success:this.chain[_].failure,this.chain[_]);this.chain.length=0}function u(_,w,T){var b,A;try{w===!1?T.reject(_.msg):(w===!0?b=_.msg:b=w.call(void 0,_.msg),b===T.promise?T.reject(TypeError("Promise-chain cycle")):(A=o(b))?A.call(b,T.resolve,T.reject):T.resolve(b))}catch(S){T.reject(S)}}function f(_){var w,T=this;if(!T.triggered){T.triggered=!0,T.def&&(T=T.def);try{(w=o(_))?l(function(){var b=new d(T);try{w.call(_,function(){f.apply(b,arguments)},function(){v.apply(b,arguments)})}catch(A){v.call(b,A)}}):(T.msg=_,T.state=1,T.chain.length>0&&l(s,T))}catch(b){v.call(new d(T),b)}}}function v(_){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=_,w.state=2,w.chain.length>0&&l(s,w))}function h(_,w,T,b){for(var A=0;A<w.length;A++)(function(k){_.resolve(w[k]).then(function(D){T(k,D)},b)})(A)}function d(_){this.def=_,this.triggered=!1}function m(_){this.promise=_,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function g(_){if(typeof _!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var w=new m(this);this.then=function(b,A){var S={success:typeof b=="function"?b:!0,failure:typeof A=="function"?A:!1};return S.promise=new this.constructor(function(q,D){if(typeof q!="function"||typeof D!="function")throw TypeError("Not a function");S.resolve=q,S.reject=D}),w.chain.push(S),w.state!==0&&l(s,w),S.promise},this.catch=function(b){return this.then(void 0,b)};try{_.call(void 0,function(b){f.call(w,b)},function(b){v.call(w,b)})}catch(T){v.call(w,T)}}var y=r({},"constructor",g,!1);return g.prototype=y,r(y,"__NPO__",0,!1),r(g,"resolve",function(w){var T=this;return w&&typeof w=="object"&&w.__NPO__===1?w:new T(function(A,S){if(typeof A!="function"||typeof S!="function")throw TypeError("Not a function");A(w)})}),r(g,"reject",function(w){return new this(function(b,A){if(typeof b!="function"||typeof A!="function")throw TypeError("Not a function");A(w)})}),r(g,"all",function(w){var T=this;return n.call(w)!="[object Array]"?T.reject(TypeError("Not an array")):w.length===0?T.resolve([]):new T(function(A,S){if(typeof A!="function"||typeof S!="function")throw TypeError("Not a function");var k=w.length,q=Array(k),D=0;h(T,w,function(z,N){q[z]=N,++D===k&&A(q)},S)})}),r(g,"race",function(w){var T=this;return n.call(w)!="[object Array]"?T.reject(TypeError("Not an array")):new T(function(A,S){if(typeof A!="function"||typeof S!="function")throw TypeError("Not a function");h(T,w,function(q,D){A(D)},S)})}),g})});var Ir=Z((uie,nv)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},a=self.document;function n(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(c){t=function(p){for(var x=p.length,M=new Array(x);x--;)M[x]=p[x];return M}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(p,x){o.call(this,p,x+"")},l.setAttributeNS=function(p,x,M){s.call(this,p,x,M+"")},u.setProperty=function(p,x,M){f.call(this,p,x+"",M)}}e.ascending=v;function v(c,p){return c<p?-1:c>p?1:c>=p?0:NaN}e.descending=function(c,p){return p<c?-1:p>c?1:p>=c?0:NaN},e.min=function(c,p){var x=-1,M=c.length,C,L;if(arguments.length===1){for(;++x<M;)if((L=c[x])!=null&&L>=L){C=L;break}for(;++x<M;)(L=c[x])!=null&&C>L&&(C=L)}else{for(;++x<M;)if((L=p.call(c,c[x],x))!=null&&L>=L){C=L;break}for(;++x<M;)(L=p.call(c,c[x],x))!=null&&C>L&&(C=L)}return C},e.max=function(c,p){var x=-1,M=c.length,C,L;if(arguments.length===1){for(;++x<M;)if((L=c[x])!=null&&L>=L){C=L;break}for(;++x<M;)(L=c[x])!=null&&L>C&&(C=L)}else{for(;++x<M;)if((L=p.call(c,c[x],x))!=null&&L>=L){C=L;break}for(;++x<M;)(L=p.call(c,c[x],x))!=null&&L>C&&(C=L)}return C},e.extent=function(c,p){var x=-1,M=c.length,C,L,P;if(arguments.length===1){for(;++x<M;)if((L=c[x])!=null&&L>=L){C=P=L;break}for(;++x<M;)(L=c[x])!=null&&(C>L&&(C=L),P<L&&(P=L))}else{for(;++x<M;)if((L=p.call(c,c[x],x))!=null&&L>=L){C=P=L;break}for(;++x<M;)(L=p.call(c,c[x],x))!=null&&(C>L&&(C=L),P<L&&(P=L))}return[C,P]};function h(c){return c===null?NaN:+c}function d(c){return!isNaN(c)}e.sum=function(c,p){var x=0,M=c.length,C,L=-1;if(arguments.length===1)for(;++L<M;)d(C=+c[L])&&(x+=C);else for(;++L<M;)d(C=+p.call(c,c[L],L))&&(x+=C);return x},e.mean=function(c,p){var x=0,M=c.length,C,L=-1,P=M;if(arguments.length===1)for(;++L<M;)d(C=h(c[L]))?x+=C:--P;else for(;++L<M;)d(C=h(p.call(c,c[L],L)))?x+=C:--P;if(P)return x/P},e.quantile=function(c,p){var x=(c.length-1)*p+1,M=Math.floor(x),C=+c[M-1],L=x-M;return L?C+L*(c[M]-C):C},e.median=function(c,p){var x=[],M=c.length,C,L=-1;if(arguments.length===1)for(;++L<M;)d(C=h(c[L]))&&x.push(C);else for(;++L<M;)d(C=h(p.call(c,c[L],L)))&&x.push(C);if(x.length)return e.quantile(x.sort(v),.5)},e.variance=function(c,p){var x=c.length,M=0,C,L,P=0,E=-1,F=0;if(arguments.length===1)for(;++E<x;)d(C=h(c[E]))&&(L=C-M,M+=L/++F,P+=L*(C-M));else for(;++E<x;)d(C=h(p.call(c,c[E],E)))&&(L=C-M,M+=L/++F,P+=L*(C-M));if(F>1)return P/(F-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(p,x,M,C){for(arguments.length<3&&(M=0),arguments.length<4&&(C=p.length);M<C;){var L=M+C>>>1;c(p[L],x)<0?M=L+1:C=L}return M},right:function(p,x,M,C){for(arguments.length<3&&(M=0),arguments.length<4&&(C=p.length);M<C;){var L=M+C>>>1;c(p[L],x)>0?C=L:M=L+1}return M}}}var g=m(v);e.bisectLeft=g.left,e.bisect=e.bisectRight=g.right,e.bisector=function(c){return m(c.length===1?function(p,x){return v(c(p),x)}:c)},e.shuffle=function(c,p,x){(M=arguments.length)<3&&(x=c.length,M<2&&(p=0));for(var M=x-p,C,L;M;)L=Math.random()*M--|0,C=c[M+p],c[M+p]=c[L+p],c[L+p]=C;return c},e.permute=function(c,p){for(var x=p.length,M=new Array(x);x--;)M[x]=c[p[x]];return M},e.pairs=function(c){for(var p=0,x=c.length-1,M,C=c[0],L=new Array(x<0?0:x);p<x;)L[p]=[M=C,C=c[++p]];return L},e.transpose=function(c){if(!(L=c.length))return[];for(var p=-1,x=e.min(c,y),M=new Array(x);++p<x;)for(var C=-1,L,P=M[p]=new Array(L);++C<L;)P[C]=c[C][p];return M};function y(c){return c.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(c){var p=[];for(var x in c)p.push(x);return p},e.values=function(c){var p=[];for(var x in c)p.push(c[x]);return p},e.entries=function(c){var p=[];for(var x in c)p.push({key:x,value:c[x]});return p},e.merge=function(c){for(var p=c.length,x,M=-1,C=0,L,P;++M<p;)C+=c[M].length;for(L=new Array(C);--p>=0;)for(P=c[p],x=P.length;--x>=0;)L[--C]=P[x];return L};var _=Math.abs;e.range=function(c,p,x){if(arguments.length<3&&(x=1,arguments.length<2&&(p=c,c=0)),(p-c)/x===1/0)throw new Error("infinite range");var M=[],C=w(_(x)),L=-1,P;if(c*=C,p*=C,x*=C,x<0)for(;(P=c+x*++L)>p;)M.push(P/C);else for(;(P=c+x*++L)<p;)M.push(P/C);return M};function w(c){for(var p=1;c*p%1;)p*=10;return p}function T(c,p){for(var x in p)Object.defineProperty(c.prototype,x,{value:p[x],enumerable:!1})}e.map=function(c,p){var x=new b;if(c instanceof b)c.forEach(function(E,F){x.set(E,F)});else if(Array.isArray(c)){var M=-1,C=c.length,L;if(arguments.length===1)for(;++M<C;)x.set(M,c[M]);else for(;++M<C;)x.set(p.call(c,L=c[M],M),L)}else for(var P in c)x.set(P,c[P]);return x};function b(){this._=Object.create(null)}var A="__proto__",S="\0";T(b,{has:D,get:function(c){return this._[k(c)]},set:function(c,p){return this._[k(c)]=p},remove:R,keys:z,values:function(){var c=[];for(var p in this._)c.push(this._[p]);return c},entries:function(){var c=[];for(var p in this._)c.push({key:q(p),value:this._[p]});return c},size:N,empty:H,forEach:function(c){for(var p in this._)c.call(this,q(p),this._[p])}});function k(c){return(c+="")===A||c[0]===S?S+c:c}function q(c){return(c+="")[0]===S?c.slice(1):c}function D(c){return k(c)in this._}function R(c){return(c=k(c))in this._&&delete this._[c]}function z(){var c=[];for(var p in this._)c.push(q(p));return c}function N(){var c=0;for(var p in this._)++c;return c}function H(){for(var c in this._)return!1;return!0}e.nest=function(){var c={},p=[],x=[],M,C;function L(E,F,G){if(G>=p.length)return C?C.call(c,F):M?F.sort(M):F;for(var W=-1,$=F.length,ee=p[G++],he,we,te,le=new b,ue;++W<$;)(ue=le.get(he=ee(we=F[W])))?ue.push(we):le.set(he,[we]);return E?(we=E(),te=function(xe,Te){we.set(xe,L(E,Te,G))}):(we={},te=function(xe,Te){we[xe]=L(E,Te,G)}),le.forEach(te),we}function P(E,F){if(F>=p.length)return E;var G=[],W=x[F++];return E.forEach(function($,ee){G.push({key:$,values:P(ee,F)})}),W?G.sort(function($,ee){return W($.key,ee.key)}):G}return c.map=function(E,F){return L(F,E,0)},c.entries=function(E){return P(L(e.map,E,0),0)},c.key=function(E){return p.push(E),c},c.sortKeys=function(E){return x[p.length-1]=E,c},c.sortValues=function(E){return M=E,c},c.rollup=function(E){return C=E,c},c},e.set=function(c){var p=new O;if(c)for(var x=0,M=c.length;x<M;++x)p.add(c[x]);return p};function O(){this._=Object.create(null)}T(O,{has:D,add:function(c){return this._[k(c+="")]=!0,c},remove:R,values:z,size:N,empty:H,forEach:function(c){for(var p in this._)c.call(this,q(p))}}),e.behavior={};function J(c){return c}e.rebind=function(c,p){for(var x=1,M=arguments.length,C;++x<M;)c[C=arguments[x]]=X(c,p,p[C]);return c};function X(c,p,x){return function(){var M=x.apply(p,arguments);return M===p?c:M}}function B(c,p){if(p in c)return p;p=p.charAt(0).toUpperCase()+p.slice(1);for(var x=0,M=I.length;x<M;++x){var C=I[x]+p;if(C in c)return C}}var I=["webkit","ms","moz","Moz","o","O"];function V(){}e.dispatch=function(){for(var c=new K,p=-1,x=arguments.length;++p<x;)c[arguments[p]]=Q(c);return c};function K(){}K.prototype.on=function(c,p){var x=c.indexOf("."),M="";if(x>=0&&(M=c.slice(x+1),c=c.slice(0,x)),c)return arguments.length<2?this[c].on(M):this[c].on(M,p);if(arguments.length===2){if(p==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(M,null);return this}};function Q(c){var p=[],x=new b;function M(){for(var C=p,L=-1,P=C.length,E;++L<P;)(E=C[L].on)&&E.apply(this,arguments);return c}return M.on=function(C,L){var P=x.get(C),E;return arguments.length<2?P&&P.on:(P&&(P.on=null,p=p.slice(0,E=p.indexOf(P)).concat(p.slice(E+1)),x.remove(C)),L&&p.push(x.set(C,{on:L})),c)},M}e.event=null;function ie(){e.event.preventDefault()}function me(){for(var c=e.event,p;p=c.sourceEvent;)c=p;return c}function pe(c){for(var p=new K,x=0,M=arguments.length;++x<M;)p[arguments[x]]=Q(p);return p.of=function(C,L){return function(P){try{var E=P.sourceEvent=e.event;P.target=c,e.event=P,p[P.type].apply(C,L)}finally{e.event=E}}},p}e.requote=function(c){return c.replace(ge,"\\$&")};var ge=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,j={}.__proto__?function(c,p){c.__proto__=p}:function(c,p){for(var x in p)c[x]=p[x]};function _e(c){return j(c,Ae),c}var se=function(c,p){return p.querySelector(c)},Se=function(c,p){return p.querySelectorAll(c)},ve=function(c,p){var x=c.matches||c[B(c,"matchesSelector")];return ve=function(M,C){return x.call(M,C)},ve(c,p)};typeof Sizzle=="function"&&(se=function(c,p){return Sizzle(c,p)[0]||null},Se=Sizzle,ve=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var Ae=e.selection.prototype=[];Ae.select=function(c){var p=[],x,M,C,L;c=Y(c);for(var P=-1,E=this.length;++P<E;){p.push(x=[]),x.parentNode=(C=this[P]).parentNode;for(var F=-1,G=C.length;++F<G;)(L=C[F])?(x.push(M=c.call(L,L.__data__,F,P)),M&&"__data__"in L&&(M.__data__=L.__data__)):x.push(null)}return _e(p)};function Y(c){return typeof c=="function"?c:function(){return se(c,this)}}Ae.selectAll=function(c){var p=[],x,M;c=re(c);for(var C=-1,L=this.length;++C<L;)for(var P=this[C],E=-1,F=P.length;++E<F;)(M=P[E])&&(p.push(x=t(c.call(M,M.__data__,E,C))),x.parentNode=M);return _e(p)};function re(c){return typeof c=="function"?c:function(){return Se(c,this)}}var U="http://www.w3.org/1999/xhtml",de={svg:"http://www.w3.org/2000/svg",xhtml:U,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};e.ns={prefix:de,qualify:function(c){var p=c.indexOf(":"),x=c;return p>=0&&(x=c.slice(0,p))!=="xmlns"&&(c=c.slice(p+1)),de.hasOwnProperty(x)?{space:de[x],local:c}:c}},Ae.attr=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node();return c=e.ns.qualify(c),c.local?x.getAttributeNS(c.space,c.local):x.getAttribute(c)}for(p in c)this.each(be(p,c[p]));return this}return this.each(be(c,p))};function be(c,p){c=e.ns.qualify(c);function x(){this.removeAttribute(c)}function M(){this.removeAttributeNS(c.space,c.local)}function C(){this.setAttribute(c,p)}function L(){this.setAttributeNS(c.space,c.local,p)}function P(){var F=p.apply(this,arguments);F==null?this.removeAttribute(c):this.setAttribute(c,F)}function E(){var F=p.apply(this,arguments);F==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,F)}return p==null?c.local?M:x:typeof p=="function"?c.local?E:P:c.local?L:C}function ye(c){return c.trim().replace(/\s+/g," ")}Ae.classed=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node(),M=(c=Re(c)).length,C=-1;if(p=x.classList){for(;++C<M;)if(!p.contains(c[C]))return!1}else for(p=x.getAttribute("class");++C<M;)if(!Fe(c[C]).test(p))return!1;return!0}for(p in c)this.each(Pe(p,c[p]));return this}return this.each(Pe(c,p))};function Fe(c){return new RegExp("(?:^|\\s+)"+e.requote(c)+"(?:\\s+|$)","g")}function Re(c){return(c+"").trim().split(/^|\s+/)}function Pe(c,p){c=Re(c).map(Ie);var x=c.length;function M(){for(var L=-1;++L<x;)c[L](this,p)}function C(){for(var L=-1,P=p.apply(this,arguments);++L<x;)c[L](this,P)}return typeof p=="function"?C:M}function Ie(c){var p=Fe(c);return function(x,M){if(C=x.classList)return M?C.add(c):C.remove(c);var C=x.getAttribute("class")||"";M?(p.lastIndex=0,p.test(C)||x.setAttribute("class",ye(C+" "+c))):x.setAttribute("class",ye(C.replace(p," ")))}}Ae.style=function(c,p,x){var M=arguments.length;if(M<3){if(typeof c!="string"){M<2&&(p="");for(x in c)this.each(Be(x,c[x],p));return this}if(M<2){var C=this.node();return i(C).getComputedStyle(C,null).getPropertyValue(c)}x=""}return this.each(Be(c,p,x))};function Be(c,p,x){function M(){this.style.removeProperty(c)}function C(){this.style.setProperty(c,p,x)}function L(){var P=p.apply(this,arguments);P==null?this.style.removeProperty(c):this.style.setProperty(c,P,x)}return p==null?M:typeof p=="function"?L:C}Ae.property=function(c,p){if(arguments.length<2){if(typeof c=="string")return this.node()[c];for(p in c)this.each(Ne(p,c[p]));return this}return this.each(Ne(c,p))};function Ne(c,p){function x(){delete this[c]}function M(){this[c]=p}function C(){var L=p.apply(this,arguments);L==null?delete this[c]:this[c]=L}return p==null?x:typeof p=="function"?C:M}Ae.text=function(c){return arguments.length?this.each(typeof c=="function"?function(){var p=c.apply(this,arguments);this.textContent=p==null?"":p}:c==null?function(){this.textContent=""}:function(){this.textContent=c}):this.node().textContent},Ae.html=function(c){return arguments.length?this.each(typeof c=="function"?function(){var p=c.apply(this,arguments);this.innerHTML=p==null?"":p}:c==null?function(){this.innerHTML=""}:function(){this.innerHTML=c}):this.node().innerHTML},Ae.append=function(c){return c=Ee(c),this.select(function(){return this.appendChild(c.apply(this,arguments))})};function Ee(c){function p(){var M=this.ownerDocument,C=this.namespaceURI;return C===U&&M.documentElement.namespaceURI===U?M.createElement(c):M.createElementNS(C,c)}function x(){return this.ownerDocument.createElementNS(c.space,c.local)}return typeof c=="function"?c:(c=e.ns.qualify(c)).local?x:p}Ae.insert=function(c,p){return c=Ee(c),p=Y(p),this.select(function(){return this.insertBefore(c.apply(this,arguments),p.apply(this,arguments)||null)})},Ae.remove=function(){return this.each(Je)};function Je(){var c=this.parentNode;c&&c.removeChild(this)}Ae.data=function(c,p){var x=-1,M=this.length,C,L;if(!arguments.length){for(c=new Array(M=(C=this[0]).length);++x<M;)(L=C[x])&&(c[x]=L.__data__);return c}function P(W,$){var ee,he=W.length,we=$.length,te=Math.min(he,we),le=new Array(we),ue=new Array(we),xe=new Array(he),Te,ce;if(p){var Ge=new b,rr=new Array(he),or;for(ee=-1;++ee<he;)(Te=W[ee])&&(Ge.has(or=p.call(Te,Te.__data__,ee))?xe[ee]=Te:Ge.set(or,Te),rr[ee]=or);for(ee=-1;++ee<we;)(Te=Ge.get(or=p.call($,ce=$[ee],ee)))?Te!==!0&&(le[ee]=Te,Te.__data__=ce):ue[ee]=We(ce),Ge.set(or,!0);for(ee=-1;++ee<he;)ee in rr&&Ge.get(rr[ee])!==!0&&(xe[ee]=W[ee])}else{for(ee=-1;++ee<te;)Te=W[ee],ce=$[ee],Te?(Te.__data__=ce,le[ee]=Te):ue[ee]=We(ce);for(;ee<we;++ee)ue[ee]=We($[ee]);for(;ee<he;++ee)xe[ee]=W[ee]}ue.update=le,ue.parentNode=le.parentNode=xe.parentNode=W.parentNode,E.push(ue),F.push(le),G.push(xe)}var E=cr([]),F=_e([]),G=_e([]);if(typeof c=="function")for(;++x<M;)P(C=this[x],c.call(C,C.parentNode.__data__,x));else for(;++x<M;)P(C=this[x],c);return F.enter=function(){return E},F.exit=function(){return G},F};function We(c){return{__data__:c}}Ae.datum=function(c){return arguments.length?this.property("__data__",c):this.property("__data__")},Ae.filter=function(c){var p=[],x,M,C;typeof c!="function"&&(c=ne(c));for(var L=0,P=this.length;L<P;L++){p.push(x=[]),x.parentNode=(M=this[L]).parentNode;for(var E=0,F=M.length;E<F;E++)(C=M[E])&&c.call(C,C.__data__,E,L)&&x.push(C)}return _e(p)};function ne(c){return function(){return ve(this,c)}}Ae.order=function(){for(var c=-1,p=this.length;++c<p;)for(var x=this[c],M=x.length-1,C=x[M],L;--M>=0;)(L=x[M])&&(C&&C!==L.nextSibling&&C.parentNode.insertBefore(L,C),C=L);return this},Ae.sort=function(c){c=Me.apply(this,arguments);for(var p=-1,x=this.length;++p<x;)this[p].sort(c);return this.order()};function Me(c){return arguments.length||(c=v),function(p,x){return p&&x?c(p.__data__,x.__data__):!p-!x}}Ae.each=function(c){return Ce(this,function(p,x,M){c.call(p,p.__data__,x,M)})};function Ce(c,p){for(var x=0,M=c.length;x<M;x++)for(var C=c[x],L=0,P=C.length,E;L<P;L++)(E=C[L])&&p(E,L,x);return c}Ae.call=function(c){var p=t(arguments);return c.apply(p[0]=this,p),this},Ae.empty=function(){return!this.node()},Ae.node=function(){for(var c=0,p=this.length;c<p;c++)for(var x=this[c],M=0,C=x.length;M<C;M++){var L=x[M];if(L)return L}return null},Ae.size=function(){var c=0;return Ce(this,function(){++c}),c};function cr(c){return j(c,tr),c}var tr=[];e.selection.enter=cr,e.selection.enter.prototype=tr,tr.append=Ae.append,tr.empty=Ae.empty,tr.node=Ae.node,tr.call=Ae.call,tr.size=Ae.size,tr.select=function(c){for(var p=[],x,M,C,L,P,E=-1,F=this.length;++E<F;){C=(L=this[E]).update,p.push(x=[]),x.parentNode=L.parentNode;for(var G=-1,W=L.length;++G<W;)(P=L[G])?(x.push(C[G]=M=c.call(L.parentNode,P.__data__,G,E)),M.__data__=P.__data__):x.push(null)}return _e(p)},tr.insert=function(c,p){return arguments.length<2&&(p=De(this)),Ae.insert.call(this,c,p)};function De(c){var p,x;return function(M,C,L){var P=c[L].update,E=P.length,F;for(L!=x&&(x=L,p=0),C>=p&&(p=C+1);!(F=P[p])&&++p<E;);return F}}e.select=function(c){var p;return typeof c=="string"?(p=[se(c,a)],p.parentNode=a.documentElement):(p=[c],p.parentNode=n(c)),_e([p])},e.selectAll=function(c){var p;return typeof c=="string"?(p=t(Se(c,a)),p.parentNode=a.documentElement):(p=t(c),p.parentNode=null),_e([p])},Ae.on=function(c,p,x){var M=arguments.length;if(M<3){if(typeof c!="string"){M<2&&(p=!1);for(x in c)this.each(Le(x,c[x],p));return this}if(M<2)return(M=this.node()["__on"+c])&&M._;x=!1}return this.each(Le(c,p,x))};function Le(c,p,x){var M="__on"+c,C=c.indexOf("."),L=Ze;C>0&&(c=c.slice(0,C));var P=Ye.get(c);P&&(c=P,L=Ue);function E(){var W=this[M];W&&(this.removeEventListener(c,W,W.$),delete this[M])}function F(){var W=L(p,t(arguments));E.call(this),this.addEventListener(c,this[M]=W,W.$=x),W._=p}function G(){var W=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),$;for(var ee in this)if($=ee.match(W)){var he=this[ee];this.removeEventListener($[1],he,he.$),delete this[ee]}}return C?p?F:E:p?V:G}var Ye=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ye.forEach(function(c){"on"+c in a&&Ye.remove(c)});function Ze(c,p){return function(x){var M=e.event;e.event=x,p[0]=this.__data__;try{c.apply(this,p)}finally{e.event=M}}}function Ue(c,p){var x=Ze(c,p);return function(M){var C=this,L=M.relatedTarget;(!L||L!==C&&!(L.compareDocumentPosition(C)&8))&&x.call(C,M)}}var Oe,Ke=0;function fr(c){var p=".dragsuppress-"+ ++Ke,x="click"+p,M=e.select(i(c)).on("touchmove"+p,ie).on("dragstart"+p,ie).on("selectstart"+p,ie);if(Oe==null&&(Oe="onselectstart"in c?!1:B(c.style,"userSelect")),Oe){var C=n(c).style,L=C[Oe];C[Oe]="none"}return function(P){if(M.on(p,null),Oe&&(C[Oe]=L),P){var E=function(){M.on(x,null)};M.on(x,function(){ie(),E()},!0),setTimeout(E,0)}}}e.mouse=function(c){return ze(c,me())};var lr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ze(c,p){p.changedTouches&&(p=p.changedTouches[0]);var x=c.ownerSVGElement||c;if(x.createSVGPoint){var M=x.createSVGPoint();if(lr<0){var C=i(c);if(C.scrollX||C.scrollY){x=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=x[0][0].getScreenCTM();lr=!(L.f||L.e),x.remove()}}return lr?(M.x=p.pageX,M.y=p.pageY):(M.x=p.clientX,M.y=p.clientY),M=M.matrixTransform(c.getScreenCTM().inverse()),[M.x,M.y]}var P=c.getBoundingClientRect();return[p.clientX-P.left-c.clientLeft,p.clientY-P.top-c.clientTop]}e.touch=function(c,p,x){if(arguments.length<3&&(x=p,p=me().changedTouches),p){for(var M=0,C=p.length,L;M<C;++M)if((L=p[M]).identifier===x)return ze(c,L)}},e.behavior.drag=function(){var c=pe(C,"drag","dragstart","dragend"),p=null,x=L(V,e.mouse,i,"mousemove","mouseup"),M=L(ae,e.touch,J,"touchmove","touchend");function C(){this.on("mousedown.drag",x).on("touchstart.drag",M)}function L(P,E,F,G,W){return function(){var $=this,ee=e.event.target.correspondingElement||e.event.target,he=$.parentNode,we=c.of($,arguments),te=0,le=P(),ue=".drag"+(le==null?"":"-"+le),xe,Te=e.select(F(ee)).on(G+ue,rr).on(W+ue,or),ce=fr(ee),Ge=E(he,le);p?(xe=p.apply($,arguments),xe=[xe.x-Ge[0],xe.y-Ge[1]]):xe=[0,0],we({type:"dragstart"});function rr(){var ar=E(he,le),hr,dr;ar&&(hr=ar[0]-Ge[0],dr=ar[1]-Ge[1],te|=hr|dr,Ge=ar,we({type:"drag",x:ar[0]+xe[0],y:ar[1]+xe[1],dx:hr,dy:dr}))}function or(){E(he,le)&&(Te.on(G+ue,null).on(W+ue,null),ce(te),we({type:"dragend"}))}}}return C.origin=function(P){return arguments.length?(p=P,C):p},e.rebind(C,c,"on")};function ae(){return e.event.changedTouches[0].identifier}e.touches=function(c,p){return arguments.length<2&&(p=me().touches),p?t(p).map(function(x){var M=ze(c,x);return M.identifier=x.identifier,M}):[]};var oe=1e-6,qe=oe*oe,ke=Math.PI,ir=2*ke,vr=ir-oe,sr=ke/2,Mr=ke/180,Ur=180/ke;function $r(c){return c>0?1:c<0?-1:0}function Vr(c,p,x){return(p[0]-c[0])*(x[1]-c[1])-(p[1]-c[1])*(x[0]-c[0])}function St(c){return c>1?0:c<-1?ke:Math.acos(c)}function ea(c){return c>1?sr:c<-1?-sr:Math.asin(c)}function ka(c){return((c=Math.exp(c))-1/c)/2}function ra(c){return((c=Math.exp(c))+1/c)/2}function pn(c){return((c=Math.exp(2*c))-1)/(c+1)}function Ia(c){return(c=Math.sin(c/2))*c}var ta=Math.SQRT2,Ha=2,yr=4;e.interpolateZoom=function(c,p){var x=c[0],M=c[1],C=c[2],L=p[0],P=p[1],E=p[2],F=L-x,G=P-M,W=F*F+G*G,$,ee;if(W<qe)ee=Math.log(E/C)/ta,$=function(xe){return[x+xe*F,M+xe*G,C*Math.exp(ta*xe*ee)]};else{var he=Math.sqrt(W),we=(E*E-C*C+yr*W)/(2*C*Ha*he),te=(E*E-C*C-yr*W)/(2*E*Ha*he),le=Math.log(Math.sqrt(we*we+1)-we),ue=Math.log(Math.sqrt(te*te+1)-te);ee=(ue-le)/ta,$=function(xe){var Te=xe*ee,ce=ra(le),Ge=C/(Ha*he)*(ce*pn(ta*Te+le)-ka(le));return[x+Ge*F,M+Ge*G,C*ce/ra(ta*Te+le)]}}return $.duration=ee*1e3,$},e.behavior.zoom=function(){var c={x:0,y:0,k:1},p,x,M,C=[960,500],L=lt,P=250,E=0,F="mousedown.zoom",G="mousemove.zoom",W="mouseup.zoom",$,ee="touchstart.zoom",he,we=pe(Te,"zoomstart","zoom","zoomend"),te,le,ue,xe;mt||(mt="onwheel"in a?(Wr=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(Wr=function(){return e.event.wheelDelta},"mousewheel"):(Wr=function(){return-e.event.detail},"MozMousePixelScroll"));function Te(er){er.on(F,Tr).on(mt+".zoom",Lt).on("dblclick.zoom",rt).on(ee,Jr)}Te.event=function(er){er.each(function(){var Lr=we.of(this,arguments),qr=c;Xl?e.select(this).transition().each("start.zoom",function(){c=this.__chart__||{x:0,y:0,k:1},dr(Lr)}).tween("zoom:zoom",function(){var Kr=C[0],_t=C[1],Ot=x?x[0]:Kr/2,ca=x?x[1]:_t/2,La=e.interpolateZoom([(Ot-c.x)/c.k,(ca-c.y)/c.k,Kr/c.k],[(Ot-qr.x)/qr.k,(ca-qr.y)/qr.k,Kr/qr.k]);return function(Oa){var qa=La(Oa),Ga=Kr/qa[2];this.__chart__=c={x:Ot-qa[0]*Ga,y:ca-qa[1]*Ga,k:Ga},Sr(Lr)}}).each("interrupt.zoom",function(){pr(Lr)}).each("end.zoom",function(){pr(Lr)}):(this.__chart__=c,dr(Lr),Sr(Lr),pr(Lr))})},Te.translate=function(er){return arguments.length?(c={x:+er[0],y:+er[1],k:c.k},hr(),Te):[c.x,c.y]},Te.scale=function(er){return arguments.length?(c={x:c.x,y:c.y,k:null},rr(+er),hr(),Te):c.k},Te.scaleExtent=function(er){return arguments.length?(L=er==null?lt:[+er[0],+er[1]],Te):L},Te.center=function(er){return arguments.length?(M=er&&[+er[0],+er[1]],Te):M},Te.size=function(er){return arguments.length?(C=er&&[+er[0],+er[1]],Te):C},Te.duration=function(er){return arguments.length?(P=+er,Te):P},Te.x=function(er){return arguments.length?(le=er,te=er.copy(),c={x:0,y:0,k:1},Te):le},Te.y=function(er){return arguments.length?(xe=er,ue=er.copy(),c={x:0,y:0,k:1},Te):xe};function ce(er){return[(er[0]-c.x)/c.k,(er[1]-c.y)/c.k]}function Ge(er){return[er[0]*c.k+c.x,er[1]*c.k+c.y]}function rr(er){c.k=Math.max(L[0],Math.min(L[1],er))}function or(er,Lr){Lr=Ge(Lr),c.x+=er[0]-Lr[0],c.y+=er[1]-Lr[1]}function ar(er,Lr,qr,Kr){er.__chart__={x:c.x,y:c.y,k:c.k},rr(Math.pow(2,Kr)),or(x=Lr,qr),er=e.select(er),P>0&&(er=er.transition().duration(P)),er.call(Te.event)}function hr(){le&&le.domain(te.range().map(function(er){return(er-c.x)/c.k}).map(te.invert)),xe&&xe.domain(ue.range().map(function(er){return(er-c.y)/c.k}).map(ue.invert))}function dr(er){E++||er({type:"zoomstart"})}function Sr(er){hr(),er({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function pr(er){--E||(er({type:"zoomend"}),x=null)}function Tr(){var er=this,Lr=we.of(er,arguments),qr=0,Kr=e.select(i(er)).on(G,ca).on(W,La),_t=ce(e.mouse(er)),Ot=fr(er);$c.call(er),dr(Lr);function ca(){qr=1,or(e.mouse(er),_t),Sr(Lr)}function La(){Kr.on(G,null).on(W,null),Ot(qr),pr(Lr)}}function Jr(){var er=this,Lr=we.of(er,arguments),qr={},Kr=0,_t,Ot=".zoom-"+e.event.changedTouches[0].identifier,ca="touchmove"+Ot,La="touchend"+Ot,Oa=[],qa=e.select(er),Ga=fr(er);Va(),dr(Lr),qa.on(F,null).on(ee,Va);function ba(){var Yn=e.touches(er);return _t=c.k,Yn.forEach(function(va){va.identifier in qr&&(qr[va.identifier]=ce(va))}),Yn}function Va(){var Yn=e.event.target;e.select(Yn).on(ca,Jl).on(La,jF),Oa.push(Yn);for(var va=e.event.changedTouches,yn=0,vi=va.length;yn<vi;++yn)qr[va[yn].identifier]=null;var gn=ba(),ls=Date.now();if(gn.length===1){if(ls-he<500){var Kl=gn[0];ar(er,Kl,qr[Kl.identifier],Math.floor(Math.log(c.k)/Math.LN2)+1),ie()}he=ls}else if(gn.length>1){var Kl=gn[0],al=gn[1],rv=Kl[0]-al[0],ab=Kl[1]-al[1];Kr=rv*rv+ab*ab}}function Jl(){var Yn=e.touches(er),va,yn,vi,gn;$c.call(er);for(var ls=0,Kl=Yn.length;ls<Kl;++ls,gn=null)if(vi=Yn[ls],gn=qr[vi.identifier]){if(yn)break;va=vi,yn=gn}if(gn){var al=(al=vi[0]-va[0])*al+(al=vi[1]-va[1])*al,rv=Kr&&Math.sqrt(al/Kr);va=[(va[0]+vi[0])/2,(va[1]+vi[1])/2],yn=[(yn[0]+gn[0])/2,(yn[1]+gn[1])/2],rr(rv*_t)}he=null,or(va,yn),Sr(Lr)}function jF(){if(e.event.touches.length){for(var Yn=e.event.changedTouches,va=0,yn=Yn.length;va<yn;++va)delete qr[Yn[va].identifier];for(var vi in qr)return void ba()}e.selectAll(Oa).on(Ot,null),qa.on(F,Tr).on(ee,Jr),Ga(),pr(Lr)}}function Lt(){var er=we.of(this,arguments);$?clearTimeout($):($c.call(this),p=ce(x=M||e.mouse(this)),dr(er)),$=setTimeout(function(){$=null,pr(er)},50),ie(),rr(Math.pow(2,Wr()*.002)*c.k),or(x,p),Sr(er)}function rt(){var er=e.mouse(this),Lr=Math.log(c.k)/Math.LN2;ar(this,er,ce(er),e.event.shiftKey?Math.ceil(Lr)-1:Math.floor(Lr)+1)}return e.rebind(Te,we,"on")};var lt=[0,1/0],Wr,mt;e.color=Tt;function Tt(){}Tt.prototype.toString=function(){return this.rgb()+""},e.hsl=ot;function ot(c,p,x){return this instanceof ot?(this.h=+c,this.s=+p,void(this.l=+x)):arguments.length<2?c instanceof ot?new ot(c.h,c.s,c.l):Zr(""+c,jr,ot):new ot(c,p,x)}var yt=ot.prototype=new Tt;yt.brighter=function(c){return c=Math.pow(.7,arguments.length?c:1),new ot(this.h,this.s,this.l/c)},yt.darker=function(c){return c=Math.pow(.7,arguments.length?c:1),new ot(this.h,this.s,c*this.l)},yt.rgb=function(){return Ca(this.h,this.s,this.l)};function Ca(c,p,x){var M,C;c=isNaN(c)?0:(c%=360)<0?c+360:c,p=isNaN(p)||p<0?0:p>1?1:p,x=x<0?0:x>1?1:x,C=x<=.5?x*(1+p):x+p-x*p,M=2*x-C;function L(E){return E>360?E-=360:E<0&&(E+=360),E<60?M+(C-M)*E/60:E<180?C:E<240?M+(C-M)*(240-E)/60:M}function P(E){return Math.round(L(E)*255)}return new Sa(P(c+120),P(c),P(c-120))}e.hcl=aa;function aa(c,p,x){return this instanceof aa?(this.h=+c,this.c=+p,void(this.l=+x)):arguments.length<2?c instanceof aa?new aa(c.h,c.c,c.l):c instanceof Zt?Dc(c.l,c.a,c.b):Dc((c=nr((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new aa(c,p,x)}var In=aa.prototype=new Tt;In.brighter=function(c){return new aa(this.h,this.c,Math.min(100,this.l+at*(arguments.length?c:1)))},In.darker=function(c){return new aa(this.h,this.c,Math.max(0,this.l-at*(arguments.length?c:1)))},In.rgb=function(){return Hn(this.h,this.c,this.l).rgb()};function Hn(c,p,x){return isNaN(c)&&(c=0),isNaN(p)&&(p=0),new Zt(x,Math.cos(c*=Mr)*p,Math.sin(c)*p)}e.lab=Zt;function Zt(c,p,x){return this instanceof Zt?(this.l=+c,this.a=+p,void(this.b=+x)):arguments.length<2?c instanceof Zt?new Zt(c.l,c.a,c.b):c instanceof aa?Hn(c.h,c.c,c.l):nr((c=Sa(c)).r,c.g,c.b):new Zt(c,p,x)}var at=18,sa=.95047,Ul=1,Gl=1.08883,rl=Zt.prototype=new Tt;rl.brighter=function(c){return new Zt(Math.min(100,this.l+at*(arguments.length?c:1)),this.a,this.b)},rl.darker=function(c){return new Zt(Math.max(0,this.l-at*(arguments.length?c:1)),this.a,this.b)},rl.rgb=function(){return qc(this.l,this.a,this.b)};function qc(c,p,x){var M=(c+16)/116,C=M+p/500,L=M-x/200;return C=ku(C)*sa,M=ku(M)*Ul,L=ku(L)*Gl,new Sa(Su(3.2404542*C-1.5371385*M-.4985314*L),Su(-.969266*C+1.8760108*M+.041556*L),Su(.0556434*C-.2040259*M+1.0572252*L))}function Dc(c,p,x){return c>0?new aa(Math.atan2(x,p)*Ur,Math.sqrt(p*p+x*x),c):new aa(NaN,NaN,c)}function ku(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function Cu(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Su(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=Sa;function Sa(c,p,x){return this instanceof Sa?(this.r=~~c,this.g=~~p,void(this.b=~~x)):arguments.length<2?c instanceof Sa?new Sa(c.r,c.g,c.b):Zr(""+c,Sa,Ca):new Sa(c,p,x)}function Ec(c){return new Sa(c>>16,c>>8&255,c&255)}function $o(c){return Ec(c)+""}var jo=Sa.prototype=new Tt;jo.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var p=this.r,x=this.g,M=this.b,C=30;return!p&&!x&&!M?new Sa(C,C,C):(p&&p<C&&(p=C),x&&x<C&&(x=C),M&&M<C&&(M=C),new Sa(Math.min(255,p/c),Math.min(255,x/c),Math.min(255,M/c)))},jo.darker=function(c){return c=Math.pow(.7,arguments.length?c:1),new Sa(c*this.r,c*this.g,c*this.b)},jo.hsl=function(){return jr(this.r,this.g,this.b)},jo.toString=function(){return"#"+mr(this.r)+mr(this.g)+mr(this.b)};function mr(c){return c<16?"0"+Math.max(0,c).toString(16):Math.min(255,c).toString(16)}function Zr(c,p,x){var M=0,C=0,L=0,P,E,F;if(P=/([a-z]+)\((.*)\)/.exec(c=c.toLowerCase()),P)switch(E=P[2].split(","),P[1]){case"hsl":return x(parseFloat(E[0]),parseFloat(E[1])/100,parseFloat(E[2])/100);case"rgb":return p(st(E[0]),st(E[1]),st(E[2]))}return(F=fa.get(c))?p(F.r,F.g,F.b):(c!=null&&c.charAt(0)==="#"&&!isNaN(F=parseInt(c.slice(1),16))&&(c.length===4?(M=(F&3840)>>4,M=M>>4|M,C=F&240,C=C>>4|C,L=F&15,L=L<<4|L):c.length===7&&(M=(F&16711680)>>16,C=(F&65280)>>8,L=F&255)),p(M,C,L))}function jr(c,p,x){var M=Math.min(c/=255,p/=255,x/=255),C=Math.max(c,p,x),L=C-M,P,E,F=(C+M)/2;return L?(E=F<.5?L/(C+M):L/(2-C-M),c==C?P=(p-x)/L+(p<x?6:0):p==C?P=(x-c)/L+2:P=(c-p)/L+4,P*=60):(P=NaN,E=F>0&&F<1?0:P),new ot(P,E,F)}function nr(c,p,x){c=ua(c),p=ua(p),x=ua(x);var M=Cu((.4124564*c+.3575761*p+.1804375*x)/sa),C=Cu((.2126729*c+.7151522*p+.072175*x)/Ul),L=Cu((.0193339*c+.119192*p+.9503041*x)/Gl);return Zt(116*C-16,500*(M-C),200*(C-L))}function ua(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function st(c){var p=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(p*2.55):p}var fa=e.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});fa.forEach(function(c,p){fa.set(c,Ec(p))});function Rr(c){return typeof c=="function"?c:function(){return c}}e.functor=Rr,e.xhr=On(J);function On(c){return function(p,x,M){return arguments.length===2&&typeof x=="function"&&(M=x,x=null),Vl(p,x,c,M)}}function Vl(c,p,x,M){var C={},L=e.dispatch("beforesend","progress","load","error"),P={},E=new XMLHttpRequest,F=null;self.XDomainRequest&&!("withCredentials"in E)&&/^(http(s)?:)?\/\//.test(c)&&(E=new XDomainRequest),"onload"in E?E.onload=E.onerror=G:E.onreadystatechange=function(){E.readyState>3&&G()};function G(){var W=E.status,$;if(!W&&rN(E)||W>=200&&W<300||W===304){try{$=x.call(C,E)}catch(ee){L.error.call(C,ee);return}L.load.call(C,$)}else L.error.call(C,E)}return E.onprogress=function(W){var $=e.event;e.event=W;try{L.progress.call(C,E)}finally{e.event=$}},C.header=function(W,$){return W=(W+"").toLowerCase(),arguments.length<2?P[W]:($==null?delete P[W]:P[W]=$+"",C)},C.mimeType=function(W){return arguments.length?(p=W==null?null:W+"",C):p},C.responseType=function(W){return arguments.length?(F=W,C):F},C.response=function(W){return x=W,C},["get","post"].forEach(function(W){C[W]=function(){return C.send.apply(C,[W].concat(t(arguments)))}}),C.send=function(W,$,ee){if(arguments.length===2&&typeof $=="function"&&(ee=$,$=null),E.open(W,c,!0),p!=null&&!("accept"in P)&&(P.accept=p+",*/*"),E.setRequestHeader)for(var he in P)E.setRequestHeader(he,P[he]);return p!=null&&E.overrideMimeType&&E.overrideMimeType(p),F!=null&&(E.responseType=F),ee!=null&&C.on("error",ee).on("load",function(we){ee(null,we)}),L.beforesend.call(C,E),E.send($==null?null:$),C},C.abort=function(){return E.abort(),C},e.rebind(C,L,"on"),M==null?C:C.get(eN(M))}function eN(c){return c.length===1?function(p,x){c(p==null?x:null)}:c}function rN(c){var p=c.responseType;return p&&p!=="text"?c.response:c.responseText}e.dsv=function(c,p){var x=new RegExp('["'+c+`
|
|
16
16
|
]`),M=c.charCodeAt(0);function C(G,W,$){arguments.length<3&&($=W,W=null);var ee=Vl(G,p,W==null?L:P(W),$);return ee.row=function(he){return arguments.length?ee.response((W=he)==null?L:P(he)):W},ee}function L(G){return C.parse(G.responseText)}function P(G){return function(W){return C.parse(W.responseText,G)}}C.parse=function(G,W){var $;return C.parseRows(G,function(ee,he){if($)return $(ee,he-1);var we=function(te){for(var le={},ue=ee.length,xe=0;xe<ue;++xe)le[ee[xe]]=te[xe];return le};$=W?function(te,le){return W(we(te),le)}:we})},C.parseRows=function(G,W){var $={},ee={},he=[],we=G.length,te=0,le=0,ue,xe;function Te(){if(te>=we)return ee;if(xe)return xe=!1,$;var Ge=te;if(G.charCodeAt(Ge)===34){for(var rr=Ge;rr++<we;)if(G.charCodeAt(rr)===34){if(G.charCodeAt(rr+1)!==34)break;++rr}te=rr+2;var or=G.charCodeAt(rr+1);return or===13?(xe=!0,G.charCodeAt(rr+2)===10&&++te):or===10&&(xe=!0),G.slice(Ge+1,rr).replace(/""/g,'"')}for(;te<we;){var or=G.charCodeAt(te++),ar=1;if(or===10)xe=!0;else if(or===13)xe=!0,G.charCodeAt(te)===10&&(++te,++ar);else if(or!==M)continue;return G.slice(Ge,te-ar)}return G.slice(Ge)}for(;(ue=Te())!==ee;){for(var ce=[];ue!==$&&ue!==ee;)ce.push(ue),ue=Te();W&&(ce=W(ce,le++))==null||he.push(ce)}return he},C.format=function(G){if(Array.isArray(G[0]))return C.formatRows(G);var W=new O,$=[];return G.forEach(function(ee){for(var he in ee)W.has(he)||$.push(W.add(he))}),[$.map(F).join(c)].concat(G.map(function(ee){return $.map(function(he){return F(ee[he])}).join(c)})).join(`
|
|
17
17
|
`)},C.formatRows=function(G){return G.map(E).join(`
|
|
18
18
|
`)};function E(G){return G.map(F).join(c)}function F(G){return x.test(G)?'"'+G.replace(/\"/g,'""')+'"':G}return C},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Pc,Rc,zc,Nc,U3=this[B(this,"requestAnimationFrame")]||function(c){setTimeout(c,17)};e.timer=function(){Fc.apply(this,arguments)};function Fc(c,p,x){var M=arguments.length;M<2&&(p=0),M<3&&(x=Date.now());var C=x+p,L={c,t:C,n:null};return Rc?Rc.n=L:Pc=L,Rc=L,zc||(Nc=clearTimeout(Nc),zc=1,U3(v1)),L}function v1(){var c=G3(),p=V3()-c;p>24?(isFinite(p)&&(clearTimeout(Nc),Nc=setTimeout(v1,p)),zc=0):(zc=1,U3(v1))}e.timer.flush=function(){G3(),V3()};function G3(){for(var c=Date.now(),p=Pc;p;)c>=p.t&&p.c(c-p.t)&&(p.c=null),p=p.n;return c}function V3(){for(var c,p=Pc,x=1/0;p;)p.c?(p.t<x&&(x=p.t),p=(c=p).n):p=c?c.n=p.n:Pc=p.n;return Rc=c,x}e.round=function(c,p){return p?Math.round(c*(p=Math.pow(10,p)))/p:Math.round(c)},e.geom={};function es(c){return c[0]}function Lu(c){return c[1]}e.geom.hull=function(c){var p=es,x=Lu;if(arguments.length)return M(c);function M(C){if(C.length<3)return[];var L=Rr(p),P=Rr(x),E,F=C.length,G=[],W=[];for(E=0;E<F;E++)G.push([+L.call(this,C[E],E),+P.call(this,C[E],E),E]);for(G.sort(tN),E=0;E<F;E++)W.push([G[E][0],-G[E][1]]);var $=W3(G),ee=W3(W),he=ee[0]===$[0],we=ee[ee.length-1]===$[$.length-1],te=[];for(E=$.length-1;E>=0;--E)te.push(C[G[$[E]][2]]);for(E=+he;E<ee.length-we;++E)te.push(C[G[ee[E]][2]]);return te}return M.x=function(C){return arguments.length?(p=C,M):p},M.y=function(C){return arguments.length?(x=C,M):x},M};function W3(c){for(var p=c.length,x=[0,1],M=2,C=2;C<p;C++){for(;M>1&&Vr(c[x[M-2]],c[x[M-1]],c[C])<=0;)--M;x[M++]=C}return x.slice(0,M)}function tN(c,p){return c[0]-p[0]||c[1]-p[1]}e.geom.polygon=function(c){return j(c,Ic),c};var Ic=e.geom.polygon.prototype=[];Ic.area=function(){for(var c=-1,p=this.length,x,M=this[p-1],C=0;++c<p;)x=M,M=this[c],C+=x[1]*M[0]-x[0]*M[1];return C*.5},Ic.centroid=function(c){var p=-1,x=this.length,M=0,C=0,L,P=this[x-1],E;for(arguments.length||(c=-1/(6*this.area()));++p<x;)L=P,P=this[p],E=L[0]*P[1]-P[0]*L[1],M+=(L[0]+P[0])*E,C+=(L[1]+P[1])*E;return[M*c,C*c]},Ic.clip=function(c){for(var p,x=Z3(c),M=-1,C=this.length-Z3(this),L,P,E=this[C-1],F,G,W;++M<C;){for(p=c.slice(),c.length=0,F=this[M],G=p[(P=p.length-x)-1],L=-1;++L<P;)W=p[L],h1(W,E,F)?(h1(G,E,F)||c.push(d1(G,W,E,F)),c.push(W)):h1(G,E,F)&&c.push(d1(G,W,E,F)),G=W;x&&c.push(c[0]),E=F}return c};function h1(c,p,x){return(x[0]-p[0])*(c[1]-p[1])<(x[1]-p[1])*(c[0]-p[0])}function d1(c,p,x,M){var C=c[0],L=x[0],P=p[0]-C,E=M[0]-L,F=c[1],G=x[1],W=p[1]-F,$=M[1]-G,ee=(E*(F-G)-$*(C-L))/($*P-E*W);return[C+ee*P,F+ee*W]}function Z3(c){var p=c[0],x=c[c.length-1];return!(p[0]-x[0]||p[1]-x[1])}var rs,Wl,ts,X3=[],p1,qu,J3=[];function aN(){Bc(this),this.edge=this.site=this.circle=null}function K3(c){var p=X3.pop()||new aN;return p.site=c,p}function m1(c){ns(c),ts.remove(c),X3.push(c),Bc(c)}function nN(c){var p=c.circle,x=p.x,M=p.cy,C={x,y:M},L=c.P,P=c.N,E=[c];m1(c);for(var F=L;F.circle&&_(x-F.circle.x)<oe&&_(M-F.circle.cy)<oe;)L=F.P,E.unshift(F),m1(F),F=L;E.unshift(F),ns(F);for(var G=P;G.circle&&_(x-G.circle.x)<oe&&_(M-G.circle.cy)<oe;)P=G.N,E.push(G),m1(G),G=P;E.push(G),ns(G);var W=E.length,$;for($=1;$<W;++$)G=E[$],F=E[$-1],Hc(G.edge,F.site,G.site,C);F=E[0],G=E[W-1],G.edge=Du(F.site,G.site,null,C),as(F),as(G)}function iN(c){for(var p=c.x,x=c.y,M,C,L,P,E=ts._;E;)if(L=Q3(E,x)-p,L>oe)E=E.L;else if(P=p-lN(E,x),P>oe){if(!E.R){M=E;break}E=E.R}else{L>-oe?(M=E.P,C=E):P>-oe?(M=E,C=E.N):M=C=E;break}var F=K3(c);if(ts.insert(M,F),!(!M&&!C)){if(M===C){ns(M),C=K3(M.site),ts.insert(F,C),F.edge=C.edge=Du(M.site,F.site),as(M),as(C);return}if(!C){F.edge=Du(M.site,F.site);return}ns(M),ns(C);var G=M.site,W=G.x,$=G.y,ee=c.x-W,he=c.y-$,we=C.site,te=we.x-W,le=we.y-$,ue=2*(ee*le-he*te),xe=ee*ee+he*he,Te=te*te+le*le,ce={x:(le*xe-he*Te)/ue+W,y:(ee*Te-te*xe)/ue+$};Hc(C.edge,G,we,ce),F.edge=Du(G,c,null,ce),C.edge=Du(c,we,null,ce),as(M),as(C)}}function Q3(c,p){var x=c.site,M=x.x,C=x.y,L=C-p;if(!L)return M;var P=c.P;if(!P)return-1/0;x=P.site;var E=x.x,F=x.y,G=F-p;if(!G)return E;var W=E-M,$=1/L-1/G,ee=W/G;return $?(-ee+Math.sqrt(ee*ee-2*$*(W*W/(-2*G)-F+G/2+C-L/2)))/$+M:(M+E)/2}function lN(c,p){var x=c.N;if(x)return Q3(x,p);var M=c.site;return M.y===p?M.x:1/0}function $3(c){this.site=c,this.edges=[]}$3.prototype.prepare=function(){for(var c=this.edges,p=c.length,x;p--;)x=c[p].edge,(!x.b||!x.a)&&c.splice(p,1);return c.sort(j3),c.length};function oN(c){for(var p=c[0][0],x=c[1][0],M=c[0][1],C=c[1][1],L,P,E,F,G=Wl,W=G.length,$,ee,he,we,te,le;W--;)if($=G[W],!(!$||!$.prepare()))for(he=$.edges,we=he.length,ee=0;ee<we;)le=he[ee].end(),E=le.x,F=le.y,te=he[++ee%we].start(),L=te.x,P=te.y,(_(E-L)>oe||_(F-P)>oe)&&(he.splice(ee,0,new Oc(vN($.site,le,_(E-p)<oe&&C-F>oe?{x:p,y:_(L-p)<oe?P:C}:_(F-C)<oe&&x-E>oe?{x:_(P-C)<oe?L:x,y:C}:_(E-x)<oe&&F-M>oe?{x,y:_(L-x)<oe?P:M}:_(F-M)<oe&&E-p>oe?{x:_(P-M)<oe?L:p,y:M}:null),$.site,null)),++we)}function j3(c,p){return p.angle-c.angle}function sN(){Bc(this),this.x=this.y=this.arc=this.site=this.cy=null}function as(c){var p=c.P,x=c.N;if(!(!p||!x)){var M=p.site,C=c.site,L=x.site;if(M!==L){var P=C.x,E=C.y,F=M.x-P,G=M.y-E,W=L.x-P,le=L.y-E,$=2*(F*le-G*W);if(!($>=-qe)){var ee=F*F+G*G,he=W*W+le*le,we=(le*ee-G*he)/$,te=(F*he-W*ee)/$,le=te+E,ue=J3.pop()||new sN;ue.arc=c,ue.site=C,ue.x=we+P,ue.y=le+Math.sqrt(we*we+te*te),ue.cy=le,c.circle=ue;for(var xe=null,Te=qu._;Te;)if(ue.y<Te.y||ue.y===Te.y&&ue.x<=Te.x)if(Te.L)Te=Te.L;else{xe=Te.P;break}else if(Te.R)Te=Te.R;else{xe=Te;break}qu.insert(xe,ue),xe||(p1=ue)}}}}function ns(c){var p=c.circle;p&&(p.P||(p1=p.N),qu.remove(p),J3.push(p),Bc(p),c.circle=null)}function uN(c,p,x,M){return function(C){var L=C.a,P=C.b,E=L.x,F=L.y,G=P.x,W=P.y,$=0,ee=1,he=G-E,we=W-F,te;if(te=c-E,!(!he&&te>0)){if(te/=he,he<0){if(te<$)return;te<ee&&(ee=te)}else if(he>0){if(te>ee)return;te>$&&($=te)}if(te=x-E,!(!he&&te<0)){if(te/=he,he<0){if(te>ee)return;te>$&&($=te)}else if(he>0){if(te<$)return;te<ee&&(ee=te)}if(te=p-F,!(!we&&te>0)){if(te/=we,we<0){if(te<$)return;te<ee&&(ee=te)}else if(we>0){if(te>ee)return;te>$&&($=te)}if(te=M-F,!(!we&&te<0)){if(te/=we,we<0){if(te>ee)return;te>$&&($=te)}else if(we>0){if(te<$)return;te<ee&&(ee=te)}return $>0&&(C.a={x:E+$*he,y:F+$*we}),ee<1&&(C.b={x:E+ee*he,y:F+ee*we}),C}}}}}}function fN(c){for(var p=rs,x=uN(c[0][0],c[0][1],c[1][0],c[1][1]),M=p.length,C;M--;)C=p[M],(!cN(C,c)||!x(C)||_(C.a.x-C.b.x)<oe&&_(C.a.y-C.b.y)<oe)&&(C.a=C.b=null,p.splice(M,1))}function cN(c,p){var x=c.b;if(x)return!0;var M=c.a,C=p[0][0],L=p[1][0],P=p[0][1],E=p[1][1],F=c.l,G=c.r,W=F.x,$=F.y,ee=G.x,he=G.y,we=(W+ee)/2,te=($+he)/2,le,ue;if(he===$){if(we<C||we>=L)return;if(W>ee){if(!M)M={x:we,y:P};else if(M.y>=E)return;x={x:we,y:E}}else{if(!M)M={x:we,y:E};else if(M.y<P)return;x={x:we,y:P}}}else if(le=(W-ee)/(he-$),ue=te-le*we,le<-1||le>1)if(W>ee){if(!M)M={x:(P-ue)/le,y:P};else if(M.y>=E)return;x={x:(E-ue)/le,y:E}}else{if(!M)M={x:(E-ue)/le,y:E};else if(M.y<P)return;x={x:(P-ue)/le,y:P}}else if($<he){if(!M)M={x:C,y:le*C+ue};else if(M.x>=L)return;x={x:L,y:le*L+ue}}else{if(!M)M={x:L,y:le*L+ue};else if(M.x<C)return;x={x:C,y:le*C+ue}}return c.a=M,c.b=x,!0}function e5(c,p){this.l=c,this.r=p,this.a=this.b=null}function Du(c,p,x,M){var C=new e5(c,p);return rs.push(C),x&&Hc(C,c,p,x),M&&Hc(C,p,c,M),Wl[c.i].edges.push(new Oc(C,c,p)),Wl[p.i].edges.push(new Oc(C,p,c)),C}function vN(c,p,x){var M=new e5(c,null);return M.a=p,M.b=x,rs.push(M),M}function Hc(c,p,x,M){!c.a&&!c.b?(c.a=M,c.l=p,c.r=x):c.l===x?c.b=M:c.a=M}function Oc(c,p,x){var M=c.a,C=c.b;this.edge=c,this.site=p,this.angle=x?Math.atan2(x.y-p.y,x.x-p.x):c.l===p?Math.atan2(C.x-M.x,M.y-C.y):Math.atan2(M.x-C.x,C.y-M.y)}Oc.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}};function y1(){this._=null}function Bc(c){c.U=c.C=c.L=c.R=c.P=c.N=null}y1.prototype={insert:function(c,p){var x,M,C;if(c){if(p.P=c,p.N=c.N,c.N&&(c.N.P=p),c.N=p,c.R){for(c=c.R;c.L;)c=c.L;c.L=p}else c.R=p;x=c}else this._?(c=r5(this._),p.P=null,p.N=c,c.P=c.L=p,x=c):(p.P=p.N=null,this._=p,x=null);for(p.L=p.R=null,p.U=x,p.C=!0,c=p;x&&x.C;)M=x.U,x===M.L?(C=M.R,C&&C.C?(x.C=C.C=!1,M.C=!0,c=M):(c===x.R&&(Eu(this,x),c=x,x=c.U),x.C=!1,M.C=!0,Pu(this,M))):(C=M.L,C&&C.C?(x.C=C.C=!1,M.C=!0,c=M):(c===x.L&&(Pu(this,x),c=x,x=c.U),x.C=!1,M.C=!0,Eu(this,M))),x=c.U;this._.C=!1},remove:function(c){c.N&&(c.N.P=c.P),c.P&&(c.P.N=c.N),c.N=c.P=null;var p=c.U,x,M=c.L,C=c.R,L,P;if(M?C?L=r5(C):L=M:L=C,p?p.L===c?p.L=L:p.R=L:this._=L,M&&C?(P=L.C,L.C=c.C,L.L=M,M.U=L,L!==C?(p=L.U,L.U=c.U,c=L.R,p.L=c,L.R=C,C.U=L):(L.U=p,p=L,c=L.R)):(P=c.C,c=L),c&&(c.U=p),!P){if(c&&c.C){c.C=!1;return}do{if(c===this._)break;if(c===p.L){if(x=p.R,x.C&&(x.C=!1,p.C=!0,Eu(this,p),x=p.R),x.L&&x.L.C||x.R&&x.R.C){(!x.R||!x.R.C)&&(x.L.C=!1,x.C=!0,Pu(this,x),x=p.R),x.C=p.C,p.C=x.R.C=!1,Eu(this,p),c=this._;break}}else if(x=p.L,x.C&&(x.C=!1,p.C=!0,Pu(this,p),x=p.L),x.L&&x.L.C||x.R&&x.R.C){(!x.L||!x.L.C)&&(x.R.C=!1,x.C=!0,Eu(this,x),x=p.L),x.C=p.C,p.C=x.L.C=!1,Pu(this,p),c=this._;break}x.C=!0,c=p,p=p.U}while(!c.C);c&&(c.C=!1)}}};function Eu(c,p){var x=p,M=p.R,C=x.U;C?C.L===x?C.L=M:C.R=M:c._=M,M.U=C,x.U=M,x.R=M.L,x.R&&(x.R.U=x),M.L=x}function Pu(c,p){var x=p,M=p.L,C=x.U;C?C.L===x?C.L=M:C.R=M:c._=M,M.U=C,x.U=M,x.L=M.R,x.L&&(x.L.U=x),M.R=x}function r5(c){for(;c.L;)c=c.L;return c}function g1(c,p){var x=c.sort(hN).pop(),M,C,L;for(rs=[],Wl=new Array(c.length),ts=new y1,qu=new y1;;)if(L=p1,x&&(!L||x.y<L.y||x.y===L.y&&x.x<L.x))(x.x!==M||x.y!==C)&&(Wl[x.i]=new $3(x),iN(x),M=x.x,C=x.y),x=c.pop();else if(L)nN(L.arc);else break;p&&(fN(p),oN(p));var P={cells:Wl,edges:rs};return ts=qu=rs=Wl=null,P}function hN(c,p){return p.y-c.y||p.x-c.x}e.geom.voronoi=function(c){var p=es,x=Lu,M=p,C=x,L=Yc;if(c)return P(c);function P(F){var G=new Array(F.length),W=L[0][0],$=L[0][1],ee=L[1][0],he=L[1][1];return g1(E(F),L).cells.forEach(function(we,te){var le=we.edges,ue=we.site,xe=G[te]=le.length?le.map(function(Te){var ce=Te.start();return[ce.x,ce.y]}):ue.x>=W&&ue.x<=ee&&ue.y>=$&&ue.y<=he?[[W,he],[ee,he],[ee,$],[W,$]]:[];xe.point=F[te]}),G}function E(F){return F.map(function(G,W){return{x:Math.round(M(G,W)/oe)*oe,y:Math.round(C(G,W)/oe)*oe,i:W}})}return P.links=function(F){return g1(E(F)).edges.filter(function(G){return G.l&&G.r}).map(function(G){return{source:F[G.l.i],target:F[G.r.i]}})},P.triangles=function(F){var G=[];return g1(E(F)).cells.forEach(function(W,$){for(var ee=W.site,he=W.edges.sort(j3),we=-1,te=he.length,le,ue,xe=he[te-1].edge,Te=xe.l===ee?xe.r:xe.l;++we<te;)le=xe,ue=Te,xe=he[we].edge,Te=xe.l===ee?xe.r:xe.l,$<ue.i&&$<Te.i&&dN(ee,ue,Te)<0&&G.push([F[$],F[ue.i],F[Te.i]])}),G},P.x=function(F){return arguments.length?(M=Rr(p=F),P):p},P.y=function(F){return arguments.length?(C=Rr(x=F),P):x},P.clipExtent=function(F){return arguments.length?(L=F==null?Yc:F,P):L===Yc?null:L},P.size=function(F){return arguments.length?P.clipExtent(F&&[[0,0],F]):L===Yc?null:L&&L[1]},P};var Yc=[[-1e6,-1e6],[1e6,1e6]];function dN(c,p,x){return(c.x-x.x)*(p.y-c.y)-(c.x-p.x)*(x.y-c.y)}e.geom.delaunay=function(c){return e.geom.voronoi().triangles(c)},e.geom.quadtree=function(c,p,x,M,C){var L=es,P=Lu,E;if(E=arguments.length)return L=pN,P=mN,E===3&&(C=x,M=p,x=p=0),F(c);function F(G){var W,$=Rr(L),ee=Rr(P),he,we,te,le,ue,xe,Te,ce;if(p!=null)ue=p,xe=x,Te=M,ce=C;else if(Te=ce=-(ue=xe=1/0),he=[],we=[],le=G.length,E)for(te=0;te<le;++te)W=G[te],W.x<ue&&(ue=W.x),W.y<xe&&(xe=W.y),W.x>Te&&(Te=W.x),W.y>ce&&(ce=W.y),he.push(W.x),we.push(W.y);else for(te=0;te<le;++te){var Ge=+$(W=G[te],te),rr=+ee(W,te);Ge<ue&&(ue=Ge),rr<xe&&(xe=rr),Ge>Te&&(Te=Ge),rr>ce&&(ce=rr),he.push(Ge),we.push(rr)}var or=Te-ue,ar=ce-xe;or>ar?ce=xe+or:Te=ue+ar;function hr(pr,Tr,Jr,Lt,rt,er,Lr,qr){if(!(isNaN(Jr)||isNaN(Lt)))if(pr.leaf){var Kr=pr.x,_t=pr.y;if(Kr!=null)if(_(Kr-Jr)+_(_t-Lt)<.01)dr(pr,Tr,Jr,Lt,rt,er,Lr,qr);else{var Ot=pr.point;pr.x=pr.y=pr.point=null,dr(pr,Ot,Kr,_t,rt,er,Lr,qr),dr(pr,Tr,Jr,Lt,rt,er,Lr,qr)}else pr.x=Jr,pr.y=Lt,pr.point=Tr}else dr(pr,Tr,Jr,Lt,rt,er,Lr,qr)}function dr(pr,Tr,Jr,Lt,rt,er,Lr,qr){var Kr=(rt+Lr)*.5,_t=(er+qr)*.5,Ot=Jr>=Kr,ca=Lt>=_t,La=ca<<1|Ot;pr.leaf=!1,pr=pr.nodes[La]||(pr.nodes[La]=t5()),Ot?rt=Kr:Lr=Kr,ca?er=_t:qr=_t,hr(pr,Tr,Jr,Lt,rt,er,Lr,qr)}var Sr=t5();if(Sr.add=function(pr){hr(Sr,pr,+$(pr,++te),+ee(pr,te),ue,xe,Te,ce)},Sr.visit=function(pr){Ru(pr,Sr,ue,xe,Te,ce)},Sr.find=function(pr){return yN(Sr,pr[0],pr[1],ue,xe,Te,ce)},te=-1,p==null){for(;++te<le;)hr(Sr,G[te],he[te],we[te],ue,xe,Te,ce);--te}else G.forEach(Sr.add);return he=we=G=W=null,Sr}return F.x=function(G){return arguments.length?(L=G,F):L},F.y=function(G){return arguments.length?(P=G,F):P},F.extent=function(G){return arguments.length?(G==null?p=x=M=C=null:(p=+G[0][0],x=+G[0][1],M=+G[1][0],C=+G[1][1]),F):p==null?null:[[p,x],[M,C]]},F.size=function(G){return arguments.length?(G==null?p=x=M=C=null:(p=x=0,M=+G[0],C=+G[1]),F):p==null?null:[M-p,C-x]},F};function pN(c){return c.x}function mN(c){return c.y}function t5(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Ru(c,p,x,M,C,L){if(!c(p,x,M,C,L)){var P=(x+C)*.5,E=(M+L)*.5,F=p.nodes;F[0]&&Ru(c,F[0],x,M,P,E),F[1]&&Ru(c,F[1],P,M,C,E),F[2]&&Ru(c,F[2],x,E,P,L),F[3]&&Ru(c,F[3],P,E,C,L)}}function yN(c,p,x,M,C,L,P){var E=1/0,F;return function G(W,$,ee,he,we){if(!($>L||ee>P||he<M||we<C)){if(te=W.point){var te,le=p-W.x,ue=x-W.y,xe=le*le+ue*ue;if(xe<E){var Te=Math.sqrt(E=xe);M=p-Te,C=x-Te,L=p+Te,P=x+Te,F=te}}for(var ce=W.nodes,Ge=($+he)*.5,rr=(ee+we)*.5,or=p>=Ge,ar=x>=rr,hr=ar<<1|or,dr=hr+4;hr<dr;++hr)if(W=ce[hr&3])switch(hr&3){case 0:G(W,$,ee,Ge,rr);break;case 1:G(W,Ge,ee,he,rr);break;case 2:G(W,$,rr,Ge,we);break;case 3:G(W,Ge,rr,he,we);break}}}(c,M,C,L,P),F}e.interpolateRgb=b1;function b1(c,p){c=e.rgb(c),p=e.rgb(p);var x=c.r,M=c.g,C=c.b,L=p.r-x,P=p.g-M,E=p.b-C;return function(F){return"#"+mr(Math.round(x+L*F))+mr(Math.round(M+P*F))+mr(Math.round(C+E*F))}}e.interpolateObject=a5;function a5(c,p){var x={},M={},C;for(C in c)C in p?x[C]=Zl(c[C],p[C]):M[C]=c[C];for(C in p)C in c||(M[C]=p[C]);return function(L){for(C in x)M[C]=x[C](L);return M}}e.interpolateNumber=Ri;function Ri(c,p){return c=+c,p=+p,function(x){return c*(1-x)+p*x}}e.interpolateString=n5;function n5(c,p){var x=x1.lastIndex=_1.lastIndex=0,M,C,L,P=-1,E=[],F=[];for(c=c+"",p=p+"";(M=x1.exec(c))&&(C=_1.exec(p));)(L=C.index)>x&&(L=p.slice(x,L),E[P]?E[P]+=L:E[++P]=L),(M=M[0])===(C=C[0])?E[P]?E[P]+=C:E[++P]=C:(E[++P]=null,F.push({i:P,x:Ri(M,C)})),x=_1.lastIndex;return x<p.length&&(L=p.slice(x),E[P]?E[P]+=L:E[++P]=L),E.length<2?F[0]?(p=F[0].x,function(G){return p(G)+""}):function(){return p}:(p=F.length,function(G){for(var W=0,$;W<p;++W)E[($=F[W]).i]=$.x(G);return E.join("")})}var x1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_1=new RegExp(x1.source,"g");e.interpolate=Zl;function Zl(c,p){for(var x=e.interpolators.length,M;--x>=0&&!(M=e.interpolators[x](c,p)););return M}e.interpolators=[function(c,p){var x=typeof p;return(x==="string"?fa.has(p.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(p)?b1:n5:p instanceof Tt?b1:Array.isArray(p)?Uc:x==="object"&&isNaN(p)?a5:Ri)(c,p)}],e.interpolateArray=Uc;function Uc(c,p){var x=[],M=[],C=c.length,L=p.length,P=Math.min(c.length,p.length),E;for(E=0;E<P;++E)x.push(Zl(c[E],p[E]));for(;E<C;++E)M[E]=c[E];for(;E<L;++E)M[E]=p[E];return function(F){for(E=0;E<P;++E)M[E]=x[E](F);return M}}var i5=function(){return J},gN=e.map({linear:i5,poly:MN,quad:function(){return _N},cubic:function(){return wN},sin:function(){return AN},exp:function(){return kN},circle:function(){return CN},elastic:SN,back:LN,bounce:function(){return qN}}),bN=e.map({in:J,out:l5,"in-out":o5,"out-in":function(c){return o5(l5(c))}});e.ease=function(c){var p=c.indexOf("-"),x=p>=0?c.slice(0,p):c,M=p>=0?c.slice(p+1):"in";return x=gN.get(x)||i5,M=bN.get(M)||J,xN(M(x.apply(null,r.call(arguments,1))))};function xN(c){return function(p){return p<=0?0:p>=1?1:c(p)}}function l5(c){return function(p){return 1-c(1-p)}}function o5(c){return function(p){return .5*(p<.5?c(2*p):2-c(2-2*p))}}function _N(c){return c*c}function wN(c){return c*c*c}function TN(c){if(c<=0)return 0;if(c>=1)return 1;var p=c*c,x=p*c;return 4*(c<.5?x:3*(c-p)+x-.75)}function MN(c){return function(p){return Math.pow(p,c)}}function AN(c){return 1-Math.cos(c*sr)}function kN(c){return Math.pow(2,10*(c-1))}function CN(c){return 1-Math.sqrt(1-c*c)}function SN(c,p){var x;return arguments.length<2&&(p=.45),arguments.length?x=p/ir*Math.asin(1/c):(c=1,x=p/4),function(M){return 1+c*Math.pow(2,-10*M)*Math.sin((M-x)*ir/p)}}function LN(c){return c||(c=1.70158),function(p){return p*p*((c+1)*p-c)}}function qN(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}e.interpolateHcl=DN;function DN(c,p){c=e.hcl(c),p=e.hcl(p);var x=c.h,M=c.c,C=c.l,L=p.h-x,P=p.c-M,E=p.l-C;return isNaN(P)&&(P=0,M=isNaN(M)?p.c:M),isNaN(L)?(L=0,x=isNaN(x)?p.h:x):L>180?L-=360:L<-180&&(L+=360),function(F){return Hn(x+L*F,M+P*F,C+E*F)+""}}e.interpolateHsl=EN;function EN(c,p){c=e.hsl(c),p=e.hsl(p);var x=c.h,M=c.s,C=c.l,L=p.h-x,P=p.s-M,E=p.l-C;return isNaN(P)&&(P=0,M=isNaN(M)?p.s:M),isNaN(L)?(L=0,x=isNaN(x)?p.h:x):L>180?L-=360:L<-180&&(L+=360),function(F){return Ca(x+L*F,M+P*F,C+E*F)+""}}e.interpolateLab=PN;function PN(c,p){c=e.lab(c),p=e.lab(p);var x=c.l,M=c.a,C=c.b,L=p.l-x,P=p.a-M,E=p.b-C;return function(F){return qc(x+L*F,M+P*F,C+E*F)+""}}e.interpolateRound=s5;function s5(c,p){return p-=c,function(x){return Math.round(c+p*x)}}e.transform=function(c){var p=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(x){if(x!=null){p.setAttribute("transform",x);var M=p.transform.baseVal.consolidate()}return new u5(M?M.matrix:zN)})(c)};function u5(c){var p=[c.a,c.b],x=[c.c,c.d],M=c5(p),C=f5(p,x),L=c5(RN(x,p,-C))||0;p[0]*x[1]<x[0]*p[1]&&(p[0]*=-1,p[1]*=-1,M*=-1,C*=-1),this.rotate=(M?Math.atan2(p[1],p[0]):Math.atan2(-x[0],x[1]))*Ur,this.translate=[c.e,c.f],this.scale=[M,L],this.skew=L?Math.atan2(C,L)*Ur:0}u5.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function f5(c,p){return c[0]*p[0]+c[1]*p[1]}function c5(c){var p=Math.sqrt(f5(c,c));return p&&(c[0]/=p,c[1]/=p),p}function RN(c,p,x){return c[0]+=x*p[0],c[1]+=x*p[1],c}var zN={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=v5;function is(c){return c.length?c.pop()+",":""}function NN(c,p,x,M){if(c[0]!==p[0]||c[1]!==p[1]){var C=x.push("translate(",null,",",null,")");M.push({i:C-4,x:Ri(c[0],p[0])},{i:C-2,x:Ri(c[1],p[1])})}else(p[0]||p[1])&&x.push("translate("+p+")")}function FN(c,p,x,M){c!==p?(c-p>180?p+=360:p-c>180&&(c+=360),M.push({i:x.push(is(x)+"rotate(",null,")")-2,x:Ri(c,p)})):p&&x.push(is(x)+"rotate("+p+")")}function IN(c,p,x,M){c!==p?M.push({i:x.push(is(x)+"skewX(",null,")")-2,x:Ri(c,p)}):p&&x.push(is(x)+"skewX("+p+")")}function HN(c,p,x,M){if(c[0]!==p[0]||c[1]!==p[1]){var C=x.push(is(x)+"scale(",null,",",null,")");M.push({i:C-4,x:Ri(c[0],p[0])},{i:C-2,x:Ri(c[1],p[1])})}else(p[0]!==1||p[1]!==1)&&x.push(is(x)+"scale("+p+")")}function v5(c,p){var x=[],M=[];return c=e.transform(c),p=e.transform(p),NN(c.translate,p.translate,x,M),FN(c.rotate,p.rotate,x,M),IN(c.skew,p.skew,x,M),HN(c.scale,p.scale,x,M),c=p=null,function(C){for(var L=-1,P=M.length,E;++L<P;)x[(E=M[L]).i]=E.x(C);return x.join("")}}function ON(c,p){return p=(p-=c=+c)||1/p,function(x){return(x-c)/p}}function BN(c,p){return p=(p-=c=+c)||1/p,function(x){return Math.max(0,Math.min(1,(x-c)/p))}}e.layout={},e.layout.bundle=function(){return function(c){for(var p=[],x=-1,M=c.length;++x<M;)p.push(YN(c[x]));return p}};function YN(c){for(var p=c.source,x=c.target,M=UN(p,x),C=[p];p!==M;)p=p.parent,C.push(p);for(var L=C.length;x!==M;)C.splice(L,0,x),x=x.parent;return C}function h5(c){for(var p=[],x=c.parent;x!=null;)p.push(c),c=x,x=x.parent;return p.push(c),p}function UN(c,p){if(c===p)return c;for(var x=h5(c),M=h5(p),C=x.pop(),L=M.pop(),P=null;C===L;)P=C,C=x.pop(),L=M.pop();return P}e.layout.chord=function(){var c={},p,x,M,C,L=0,P,E,F;function G(){var $={},ee=[],he=e.range(C),we=[],te,le,ue,xe,Te;for(p=[],x=[],te=0,xe=-1;++xe<C;){for(le=0,Te=-1;++Te<C;)le+=M[xe][Te];ee.push(le),we.push(e.range(C)),te+=le}for(P&&he.sort(function(Sr,pr){return P(ee[Sr],ee[pr])}),E&&we.forEach(function(Sr,pr){Sr.sort(function(Tr,Jr){return E(M[pr][Tr],M[pr][Jr])})}),te=(ir-L*C)/te,le=0,xe=-1;++xe<C;){for(ue=le,Te=-1;++Te<C;){var ce=he[xe],Ge=we[ce][Te],rr=M[ce][Ge],or=le,ar=le+=rr*te;$[ce+"-"+Ge]={index:ce,subindex:Ge,startAngle:or,endAngle:ar,value:rr}}x[ce]={index:ce,startAngle:ue,endAngle:le,value:ee[ce]},le+=L}for(xe=-1;++xe<C;)for(Te=xe-1;++Te<C;){var hr=$[xe+"-"+Te],dr=$[Te+"-"+xe];(hr.value||dr.value)&&p.push(hr.value<dr.value?{source:dr,target:hr}:{source:hr,target:dr})}F&&W()}function W(){p.sort(function($,ee){return F(($.source.value+$.target.value)/2,(ee.source.value+ee.target.value)/2)})}return c.matrix=function($){return arguments.length?(C=(M=$)&&M.length,p=x=null,c):M},c.padding=function($){return arguments.length?(L=$,p=x=null,c):L},c.sortGroups=function($){return arguments.length?(P=$,p=x=null,c):P},c.sortSubgroups=function($){return arguments.length?(E=$,p=null,c):E},c.sortChords=function($){return arguments.length?(F=$,p&&W(),c):F},c.chords=function(){return p||G(),p},c.groups=function(){return x||G(),x},c},e.layout.force=function(){var c={},p=e.dispatch("start","tick","end"),x,M=[1,1],C,L,P=.9,E=XN,F=JN,G=-30,W=KN,$=.1,ee=.64,he=[],we=[],te,le,ue;function xe(ce){return function(Ge,rr,or,ar){if(Ge.point!==ce){var hr=Ge.cx-ce.x,dr=Ge.cy-ce.y,Sr=ar-rr,pr=hr*hr+dr*dr;if(Sr*Sr/ee<pr){if(pr<W){var Tr=Ge.charge/pr;ce.px-=hr*Tr,ce.py-=dr*Tr}return!0}if(Ge.point&&pr&&pr<W){var Tr=Ge.pointCharge/pr;ce.px-=hr*Tr,ce.py-=dr*Tr}}return!Ge.charge}}c.tick=function(){if((L*=.99)<.005)return x=null,p.end({type:"end",alpha:L=0}),!0;var ce=he.length,Ge=we.length,rr,or,ar,hr,dr,Sr,pr,Tr,Jr;for(or=0;or<Ge;++or)ar=we[or],hr=ar.source,dr=ar.target,Tr=dr.x-hr.x,Jr=dr.y-hr.y,(Sr=Tr*Tr+Jr*Jr)&&(Sr=L*le[or]*((Sr=Math.sqrt(Sr))-te[or])/Sr,Tr*=Sr,Jr*=Sr,dr.x-=Tr*(pr=hr.weight+dr.weight?hr.weight/(hr.weight+dr.weight):.5),dr.y-=Jr*pr,hr.x+=Tr*(pr=1-pr),hr.y+=Jr*pr);if((pr=L*$)&&(Tr=M[0]/2,Jr=M[1]/2,or=-1,pr))for(;++or<ce;)ar=he[or],ar.x+=(Tr-ar.x)*pr,ar.y+=(Jr-ar.y)*pr;if(G)for(d5(rr=e.geom.quadtree(he),L,ue),or=-1;++or<ce;)(ar=he[or]).fixed||rr.visit(xe(ar));for(or=-1;++or<ce;)ar=he[or],ar.fixed?(ar.x=ar.px,ar.y=ar.py):(ar.x-=(ar.px-(ar.px=ar.x))*P,ar.y-=(ar.py-(ar.py=ar.y))*P);p.tick({type:"tick",alpha:L})},c.nodes=function(ce){return arguments.length?(he=ce,c):he},c.links=function(ce){return arguments.length?(we=ce,c):we},c.size=function(ce){return arguments.length?(M=ce,c):M},c.linkDistance=function(ce){return arguments.length?(E=typeof ce=="function"?ce:+ce,c):E},c.distance=c.linkDistance,c.linkStrength=function(ce){return arguments.length?(F=typeof ce=="function"?ce:+ce,c):F},c.friction=function(ce){return arguments.length?(P=+ce,c):P},c.charge=function(ce){return arguments.length?(G=typeof ce=="function"?ce:+ce,c):G},c.chargeDistance=function(ce){return arguments.length?(W=ce*ce,c):Math.sqrt(W)},c.gravity=function(ce){return arguments.length?($=+ce,c):$},c.theta=function(ce){return arguments.length?(ee=ce*ce,c):Math.sqrt(ee)},c.alpha=function(ce){return arguments.length?(ce=+ce,L?ce>0?L=ce:(x.c=null,x.t=NaN,x=null,p.end({type:"end",alpha:L=0})):ce>0&&(p.start({type:"start",alpha:L=ce}),x=Fc(c.tick)),c):L},c.start=function(){var ce,Ge=he.length,rr=we.length,or=M[0],ar=M[1],hr,dr;for(ce=0;ce<Ge;++ce)(dr=he[ce]).index=ce,dr.weight=0;for(ce=0;ce<rr;++ce)dr=we[ce],typeof dr.source=="number"&&(dr.source=he[dr.source]),typeof dr.target=="number"&&(dr.target=he[dr.target]),++dr.source.weight,++dr.target.weight;for(ce=0;ce<Ge;++ce)dr=he[ce],isNaN(dr.x)&&(dr.x=Sr("x",or)),isNaN(dr.y)&&(dr.y=Sr("y",ar)),isNaN(dr.px)&&(dr.px=dr.x),isNaN(dr.py)&&(dr.py=dr.y);if(te=[],typeof E=="function")for(ce=0;ce<rr;++ce)te[ce]=+E.call(this,we[ce],ce);else for(ce=0;ce<rr;++ce)te[ce]=E;if(le=[],typeof F=="function")for(ce=0;ce<rr;++ce)le[ce]=+F.call(this,we[ce],ce);else for(ce=0;ce<rr;++ce)le[ce]=F;if(ue=[],typeof G=="function")for(ce=0;ce<Ge;++ce)ue[ce]=+G.call(this,he[ce],ce);else for(ce=0;ce<Ge;++ce)ue[ce]=G;function Sr(pr,Tr){if(!hr){for(hr=new Array(Ge),rt=0;rt<Ge;++rt)hr[rt]=[];for(rt=0;rt<rr;++rt){var Jr=we[rt];hr[Jr.source.index].push(Jr.target),hr[Jr.target.index].push(Jr.source)}}for(var Lt=hr[ce],rt=-1,er=Lt.length,Lr;++rt<er;)if(!isNaN(Lr=Lt[rt][pr]))return Lr;return Math.random()*Tr}return c.resume()},c.resume=function(){return c.alpha(.1)},c.stop=function(){return c.alpha(0)},c.drag=function(){if(C||(C=e.behavior.drag().origin(J).on("dragstart.force",GN).on("drag.force",Te).on("dragend.force",VN)),!arguments.length)return C;this.on("mouseover.force",WN).on("mouseout.force",ZN).call(C)};function Te(ce){ce.px=e.event.x,ce.py=e.event.y,c.resume()}return e.rebind(c,p,"on")};function GN(c){c.fixed|=2}function VN(c){c.fixed&=-7}function WN(c){c.fixed|=4,c.px=c.x,c.py=c.y}function ZN(c){c.fixed&=-5}function d5(c,p,x){var M=0,C=0;if(c.charge=0,!c.leaf)for(var L=c.nodes,P=L.length,E=-1,F;++E<P;)F=L[E],F!=null&&(d5(F,p,x),c.charge+=F.charge,M+=F.charge*F.cx,C+=F.charge*F.cy);if(c.point){c.leaf||(c.point.x+=Math.random()-.5,c.point.y+=Math.random()-.5);var G=p*x[c.point.index];c.charge+=c.pointCharge=G,M+=G*c.point.x,C+=G*c.point.y}c.cx=M/c.charge,c.cy=C/c.charge}var XN=20,JN=1,KN=1/0;e.layout.hierarchy=function(){var c=jN,p=QN,x=$N;function M(C){var L=[C],P=[],E;for(C.depth=0;(E=L.pop())!=null;)if(P.push(E),(G=p.call(M,E,E.depth))&&(F=G.length)){for(var F,G,W;--F>=0;)L.push(W=G[F]),W.parent=E,W.depth=E.depth+1;x&&(E.value=0),E.children=G}else x&&(E.value=+x.call(M,E,E.depth)||0),delete E.children;return ci(C,function($){var ee,he;c&&(ee=$.children)&&ee.sort(c),x&&(he=$.parent)&&(he.value+=$.value)}),P}return M.sort=function(C){return arguments.length?(c=C,M):c},M.children=function(C){return arguments.length?(p=C,M):p},M.value=function(C){return arguments.length?(x=C,M):x},M.revalue=function(C){return x&&(Nu(C,function(L){L.children&&(L.value=0)}),ci(C,function(L){var P;L.children||(L.value=+x.call(M,L,L.depth)||0),(P=L.parent)&&(P.value+=L.value)})),C},M};function zu(c,p){return e.rebind(c,p,"sort","children","value"),c.nodes=c,c.links=eF,c}function Nu(c,p){for(var x=[c];(c=x.pop())!=null;)if(p(c),(C=c.children)&&(M=C.length))for(var M,C;--M>=0;)x.push(C[M])}function ci(c,p){for(var x=[c],M=[];(c=x.pop())!=null;)if(M.push(c),(P=c.children)&&(L=P.length))for(var C=-1,L,P;++C<L;)x.push(P[C]);for(;(c=M.pop())!=null;)p(c)}function QN(c){return c.children}function $N(c){return c.value}function jN(c,p){return p.value-c.value}function eF(c){return e.merge(c.map(function(p){return(p.children||[]).map(function(x){return{source:p,target:x}})}))}e.layout.partition=function(){var c=e.layout.hierarchy(),p=[1,1];function x(L,P,E,F){var G=L.children;if(L.x=P,L.y=L.depth*F,L.dx=E,L.dy=F,G&&($=G.length)){var W=-1,$,ee,he;for(E=L.value?E/L.value:0;++W<$;)x(ee=G[W],P,he=ee.value*E,F),P+=he}}function M(L){var P=L.children,E=0;if(P&&(G=P.length))for(var F=-1,G;++F<G;)E=Math.max(E,M(P[F]));return 1+E}function C(L,P){var E=c.call(this,L,P);return x(E[0],0,p[0],p[1]/M(E[0])),E}return C.size=function(L){return arguments.length?(p=L,C):p},zu(C,c)},e.layout.pie=function(){var c=Number,p=p5,x=0,M=ir,C=0;function L(P){var E=P.length,F=P.map(function(xe,Te){return+c.call(L,xe,Te)}),G=+(typeof x=="function"?x.apply(this,arguments):x),W=(typeof M=="function"?M.apply(this,arguments):M)-G,$=Math.min(Math.abs(W)/E,+(typeof C=="function"?C.apply(this,arguments):C)),ee=$*(W<0?-1:1),he=e.sum(F),we=he?(W-E*ee)/he:0,te=e.range(E),le=[],ue;return p!=null&&te.sort(p===p5?function(xe,Te){return F[Te]-F[xe]}:function(xe,Te){return p(P[xe],P[Te])}),te.forEach(function(xe){le[xe]={data:P[xe],value:ue=F[xe],startAngle:G,endAngle:G+=ue*we+ee,padAngle:$}}),le}return L.value=function(P){return arguments.length?(c=P,L):c},L.sort=function(P){return arguments.length?(p=P,L):p},L.startAngle=function(P){return arguments.length?(x=P,L):x},L.endAngle=function(P){return arguments.length?(M=P,L):M},L.padAngle=function(P){return arguments.length?(C=P,L):C},L};var p5={};e.layout.stack=function(){var c=J,p=w1,x=T1,M=aF,C=rF,L=tF;function P(E,F){if(!(we=E.length))return E;var G=E.map(function(xe,Te){return c.call(P,xe,Te)}),W=G.map(function(xe){return xe.map(function(Te,ce){return[C.call(P,Te,ce),L.call(P,Te,ce)]})}),$=p.call(P,W,F);G=e.permute(G,$),W=e.permute(W,$);var ee=x.call(P,W,F),he=G[0].length,we,te,le,ue;for(le=0;le<he;++le)for(M.call(P,G[0][le],ue=ee[le],W[0][le][1]),te=1;te<we;++te)M.call(P,G[te][le],ue+=W[te-1][le][1],W[te][le][1]);return E}return P.values=function(E){return arguments.length?(c=E,P):c},P.order=function(E){return arguments.length?(p=typeof E=="function"?E:nF.get(E)||w1,P):p},P.offset=function(E){return arguments.length?(x=typeof E=="function"?E:iF.get(E)||T1,P):x},P.x=function(E){return arguments.length?(C=E,P):C},P.y=function(E){return arguments.length?(L=E,P):L},P.out=function(E){return arguments.length?(M=E,P):M},P};function rF(c){return c.x}function tF(c){return c.y}function aF(c,p,x){c.y0=p,c.y=x}var nF=e.map({"inside-out":function(c){var p=c.length,x,M,C=c.map(lF),L=c.map(oF),P=e.range(p).sort(function($,ee){return C[$]-C[ee]}),E=0,F=0,G=[],W=[];for(x=0;x<p;++x)M=P[x],E<F?(E+=L[M],G.push(M)):(F+=L[M],W.push(M));return W.reverse().concat(G)},reverse:function(c){return e.range(c.length).reverse()},default:w1}),iF=e.map({silhouette:function(c){var p=c.length,x=c[0].length,M=[],C=0,L,P,E,F=[];for(P=0;P<x;++P){for(L=0,E=0;L<p;L++)E+=c[L][P][1];E>C&&(C=E),M.push(E)}for(P=0;P<x;++P)F[P]=(C-M[P])/2;return F},wiggle:function(c){var p=c.length,x=c[0],M=x.length,C,L,P,E,F,G,W,$,ee,he=[];for(he[0]=$=ee=0,L=1;L<M;++L){for(C=0,E=0;C<p;++C)E+=c[C][L][1];for(C=0,F=0,W=x[L][0]-x[L-1][0];C<p;++C){for(P=0,G=(c[C][L][1]-c[C][L-1][1])/(2*W);P<C;++P)G+=(c[P][L][1]-c[P][L-1][1])/W;F+=G*c[C][L][1]}he[L]=$-=E?F/E*W:0,$<ee&&(ee=$)}for(L=0;L<M;++L)he[L]-=ee;return he},expand:function(c){var p=c.length,x=c[0].length,M=1/p,C,L,P,E=[];for(L=0;L<x;++L){for(C=0,P=0;C<p;C++)P+=c[C][L][1];if(P)for(C=0;C<p;C++)c[C][L][1]/=P;else for(C=0;C<p;C++)c[C][L][1]=M}for(L=0;L<x;++L)E[L]=0;return E},zero:T1});function w1(c){return e.range(c.length)}function T1(c){for(var p=-1,x=c[0].length,M=[];++p<x;)M[p]=0;return M}function lF(c){for(var p=1,x=0,M=c[0][1],C,L=c.length;p<L;++p)(C=c[p][1])>M&&(x=p,M=C);return x}function oF(c){return c.reduce(sF,0)}function sF(c,p){return c+p[1]}e.layout.histogram=function(){var c=!0,p=Number,x=fF,M=uF;function C(L,ee){for(var E=[],F=L.map(p,this),G=x.call(this,F,ee),W=M.call(this,G,F,ee),$,ee=-1,he=F.length,we=W.length-1,te=c?1:1/he,le;++ee<we;)$=E[ee]=[],$.dx=W[ee+1]-($.x=W[ee]),$.y=0;if(we>0)for(ee=-1;++ee<he;)le=F[ee],le>=G[0]&&le<=G[1]&&($=E[e.bisect(W,le,1,we)-1],$.y+=te,$.push(L[ee]));return E}return C.value=function(L){return arguments.length?(p=L,C):p},C.range=function(L){return arguments.length?(x=Rr(L),C):x},C.bins=function(L){return arguments.length?(M=typeof L=="number"?function(P){return m5(P,L)}:Rr(L),C):M},C.frequency=function(L){return arguments.length?(c=!!L,C):c},C};function uF(c,p){return m5(c,Math.ceil(Math.log(p.length)/Math.LN2+1))}function m5(c,p){for(var x=-1,M=+c[0],C=(c[1]-M)/p,L=[];++x<=p;)L[x]=C*x+M;return L}function fF(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(cF),p=0,x=[1,1],M;function C(L,P){var E=c.call(this,L,P),F=E[0],G=x[0],W=x[1],$=M==null?Math.sqrt:typeof M=="function"?M:function(){return M};if(F.x=F.y=0,ci(F,function(he){he.r=+$(he.value)}),ci(F,b5),p){var ee=p*(M?1:Math.max(2*F.r/G,2*F.r/W))/2;ci(F,function(he){he.r+=ee}),ci(F,b5),ci(F,function(he){he.r-=ee})}return x5(F,G/2,W/2,M?1:1/Math.max(2*F.r/G,2*F.r/W)),E}return C.size=function(L){return arguments.length?(x=L,C):x},C.radius=function(L){return arguments.length?(M=L==null||typeof L=="function"?L:+L,C):M},C.padding=function(L){return arguments.length?(p=+L,C):p},zu(C,c)};function cF(c,p){return c.value-p.value}function M1(c,p){var x=c._pack_next;c._pack_next=p,p._pack_prev=c,p._pack_next=x,x._pack_prev=p}function y5(c,p){c._pack_next=p,p._pack_prev=c}function g5(c,p){var x=p.x-c.x,M=p.y-c.y,C=c.r+p.r;return .999*C*C>x*x+M*M}function b5(c){if(!(p=c.children)||!(ee=p.length))return;var p,x=1/0,M=-1/0,C=1/0,L=-1/0,P,E,F,G,W,$,ee;function he(ce){x=Math.min(ce.x-ce.r,x),M=Math.max(ce.x+ce.r,M),C=Math.min(ce.y-ce.r,C),L=Math.max(ce.y+ce.r,L)}if(p.forEach(vF),P=p[0],P.x=-P.r,P.y=0,he(P),ee>1&&(E=p[1],E.x=E.r,E.y=0,he(E),ee>2))for(F=p[2],_5(P,E,F),he(F),M1(P,F),P._pack_prev=F,M1(F,E),E=P._pack_next,G=3;G<ee;G++){_5(P,E,F=p[G]);var we=0,te=1,le=1;for(W=E._pack_next;W!==E;W=W._pack_next,te++)if(g5(W,F)){we=1;break}if(we==1)for($=P._pack_prev;$!==W._pack_prev&&!g5($,F);$=$._pack_prev,le++);we?(te<le||te==le&&E.r<P.r?y5(P,E=W):y5(P=$,E),G--):(M1(P,F),E=F,he(F))}var ue=(x+M)/2,xe=(C+L)/2,Te=0;for(G=0;G<ee;G++)F=p[G],F.x-=ue,F.y-=xe,Te=Math.max(Te,F.r+Math.sqrt(F.x*F.x+F.y*F.y));c.r=Te,p.forEach(hF)}function vF(c){c._pack_next=c._pack_prev=c}function hF(c){delete c._pack_next,delete c._pack_prev}function x5(c,p,x,M){var C=c.children;if(c.x=p+=M*c.x,c.y=x+=M*c.y,c.r*=M,C)for(var L=-1,P=C.length;++L<P;)x5(C[L],p,x,M)}function _5(c,p,x){var M=c.r+x.r,C=p.x-c.x,L=p.y-c.y;if(M&&(C||L)){var P=p.r+x.r,E=C*C+L*L;P*=P,M*=M;var F=.5+(M-P)/(2*E),G=Math.sqrt(Math.max(0,2*P*(M+E)-(M-=E)*M-P*P))/(2*E);x.x=c.x+F*C+G*L,x.y=c.y+F*L-G*C}else x.x=c.x+M,x.y=c.y}e.layout.tree=function(){var c=e.layout.hierarchy().sort(null).value(null),p=w5,x=[1,1],M=null;function C(W,$){var ee=c.call(this,W,$),he=ee[0],we=L(he);if(ci(we,P),we.parent.m=-we.z,Nu(we,E),M)Nu(he,G);else{var te=he,le=he,ue=he;Nu(he,function(Ge){Ge.x<te.x&&(te=Ge),Ge.x>le.x&&(le=Ge),Ge.depth>ue.depth&&(ue=Ge)});var xe=p(te,le)/2-te.x,Te=x[0]/(le.x+p(le,te)/2+xe),ce=x[1]/(ue.depth||1);Nu(he,function(Ge){Ge.x=(Ge.x+xe)*Te,Ge.y=Ge.depth*ce})}return ee}function L(W){for(var $={A:null,children:[W]},ee=[$],he;(he=ee.pop())!=null;)for(var we=he.children,te,le=0,ue=we.length;le<ue;++le)ee.push((we[le]=te={_:we[le],parent:he,children:(te=we[le].children)&&te.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:le}).a=te);return $.children[0]}function P(W){var $=W.children,ee=W.parent.children,he=W.i?ee[W.i-1]:null;if($.length){pF(W);var we=($[0].z+$[$.length-1].z)/2;he?(W.z=he.z+p(W._,he._),W.m=W.z-we):W.z=we}else he&&(W.z=he.z+p(W._,he._));W.parent.A=F(W,he,W.parent.A||ee[0])}function E(W){W._.x=W.z+W.parent.m,W.m+=W.parent.m}function F(W,$,ee){if($){for(var he=W,we=W,te=$,le=he.parent.children[0],ue=he.m,xe=we.m,Te=te.m,ce=le.m,Ge;te=k1(te),he=A1(he),te&&he;)le=A1(le),we=k1(we),we.a=W,Ge=te.z+Te-he.z-ue+p(te._,he._),Ge>0&&(dF(mF(te,W,ee),W,Ge),ue+=Ge,xe+=Ge),Te+=te.m,ue+=he.m,ce+=le.m,xe+=we.m;te&&!k1(we)&&(we.t=te,we.m+=Te-xe),he&&!A1(le)&&(le.t=he,le.m+=ue-ce,ee=W)}return ee}function G(W){W.x*=x[0],W.y=W.depth*x[1]}return C.separation=function(W){return arguments.length?(p=W,C):p},C.size=function(W){return arguments.length?(M=(x=W)==null?G:null,C):M?null:x},C.nodeSize=function(W){return arguments.length?(M=(x=W)==null?null:G,C):M?x:null},zu(C,c)};function w5(c,p){return c.parent==p.parent?1:2}function A1(c){var p=c.children;return p.length?p[0]:c.t}function k1(c){var p=c.children,x;return(x=p.length)?p[x-1]:c.t}function dF(c,p,x){var M=x/(p.i-c.i);p.c-=M,p.s+=x,c.c+=M,p.z+=x,p.m+=x}function pF(c){for(var p=0,x=0,M=c.children,C=M.length,L;--C>=0;)L=M[C],L.z+=p,L.m+=p,p+=L.s+(x+=L.c)}function mF(c,p,x){return c.a.parent===p.parent?c.a:x}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),p=w5,x=[1,1],M=!1;function C(L,P){var E=c.call(this,L,P),F=E[0],G,W=0;ci(F,function(te){var le=te.children;le&&le.length?(te.x=gF(le),te.y=yF(le)):(te.x=G?W+=p(te,G):0,te.y=0,G=te)});var $=T5(F),ee=M5(F),he=$.x-p($,ee)/2,we=ee.x+p(ee,$)/2;return ci(F,M?function(te){te.x=(te.x-F.x)*x[0],te.y=(F.y-te.y)*x[1]}:function(te){te.x=(te.x-he)/(we-he)*x[0],te.y=(1-(F.y?te.y/F.y:1))*x[1]}),E}return C.separation=function(L){return arguments.length?(p=L,C):p},C.size=function(L){return arguments.length?(M=(x=L)==null,C):M?null:x},C.nodeSize=function(L){return arguments.length?(M=(x=L)!=null,C):M?x:null},zu(C,c)};function yF(c){return 1+e.max(c,function(p){return p.y})}function gF(c){return c.reduce(function(p,x){return p+x.x},0)/c.length}function T5(c){var p=c.children;return p&&p.length?T5(p[0]):c}function M5(c){var p=c.children,x;return p&&(x=p.length)?M5(p[x-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),p=Math.round,x=[1,1],M=null,C=C1,L=!1,P,E="squarify",F=.5*(1+Math.sqrt(5));function G(te,le){for(var ue=-1,xe=te.length,Te,ce;++ue<xe;)ce=(Te=te[ue]).value*(le<0?0:le),Te.area=isNaN(ce)||ce<=0?0:ce}function W(te){var le=te.children;if(le&&le.length){var ue=C(te),xe=[],Te=le.slice(),ce,Ge=1/0,rr,or=E==="slice"?ue.dx:E==="dice"?ue.dy:E==="slice-dice"?te.depth&1?ue.dy:ue.dx:Math.min(ue.dx,ue.dy),ar;for(G(Te,ue.dx*ue.dy/te.value),xe.area=0;(ar=Te.length)>0;)xe.push(ce=Te[ar-1]),xe.area+=ce.area,E!=="squarify"||(rr=ee(xe,or))<=Ge?(Te.pop(),Ge=rr):(xe.area-=xe.pop().area,he(xe,or,ue,!1),or=Math.min(ue.dx,ue.dy),xe.length=xe.area=0,Ge=1/0);xe.length&&(he(xe,or,ue,!0),xe.length=xe.area=0),le.forEach(W)}}function $(te){var le=te.children;if(le&&le.length){var ue=C(te),xe=le.slice(),Te,ce=[];for(G(xe,ue.dx*ue.dy/te.value),ce.area=0;Te=xe.pop();)ce.push(Te),ce.area+=Te.area,Te.z!=null&&(he(ce,Te.z?ue.dx:ue.dy,ue,!xe.length),ce.length=ce.area=0);le.forEach($)}}function ee(te,le){for(var ue=te.area,xe,Te=0,ce=1/0,Ge=-1,rr=te.length;++Ge<rr;)(xe=te[Ge].area)&&(xe<ce&&(ce=xe),xe>Te&&(Te=xe));return ue*=ue,le*=le,ue?Math.max(le*Te*F/ue,ue/(le*ce*F)):1/0}function he(te,le,ue,xe){var Te=-1,ce=te.length,Ge=ue.x,rr=ue.y,or=le?p(te.area/le):0,ar;if(le==ue.dx){for((xe||or>ue.dy)&&(or=ue.dy);++Te<ce;)ar=te[Te],ar.x=Ge,ar.y=rr,ar.dy=or,Ge+=ar.dx=Math.min(ue.x+ue.dx-Ge,or?p(ar.area/or):0);ar.z=!0,ar.dx+=ue.x+ue.dx-Ge,ue.y+=or,ue.dy-=or}else{for((xe||or>ue.dx)&&(or=ue.dx);++Te<ce;)ar=te[Te],ar.x=Ge,ar.y=rr,ar.dx=or,rr+=ar.dy=Math.min(ue.y+ue.dy-rr,or?p(ar.area/or):0);ar.z=!1,ar.dy+=ue.y+ue.dy-rr,ue.x+=or,ue.dx-=or}}function we(te){var le=P||c(te),ue=le[0];return ue.x=ue.y=0,ue.value?(ue.dx=x[0],ue.dy=x[1]):ue.dx=ue.dy=0,P&&c.revalue(ue),G([ue],ue.dx*ue.dy/ue.value),(P?$:W)(ue),L&&(P=le),le}return we.size=function(te){return arguments.length?(x=te,we):x},we.padding=function(te){if(!arguments.length)return M;function le(Te){var ce=te.call(we,Te,Te.depth);return ce==null?C1(Te):A5(Te,typeof ce=="number"?[ce,ce,ce,ce]:ce)}function ue(Te){return A5(Te,te)}var xe;return C=(M=te)==null?C1:(xe=typeof te)=="function"?le:(xe==="number"&&(te=[te,te,te,te]),ue),we},we.round=function(te){return arguments.length?(p=te?Math.round:Number,we):p!=Number},we.sticky=function(te){return arguments.length?(L=te,P=null,we):L},we.ratio=function(te){return arguments.length?(F=te,we):F},we.mode=function(te){return arguments.length?(E=te+"",we):E},zu(we,c)};function C1(c){return{x:c.x,y:c.y,dx:c.dx,dy:c.dy}}function A5(c,p){var x=c.x+p[3],M=c.y+p[0],C=c.dx-p[1]-p[3],L=c.dy-p[0]-p[2];return C<0&&(x+=C/2,C=0),L<0&&(M+=L/2,L=0),{x,y:M,dx:C,dy:L}}e.random={normal:function(c,p){var x=arguments.length;return x<2&&(p=1),x<1&&(c=0),function(){var M,C,L;do M=Math.random()*2-1,C=Math.random()*2-1,L=M*M+C*C;while(!L||L>1);return c+p*M*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var p=e.random.irwinHall(c);return function(){return p()/c}},irwinHall:function(c){return function(){for(var p=0,x=0;x<c;x++)p+=Math.random();return p}}},e.scale={};function Gc(c){var p=c[0],x=c[c.length-1];return p<x?[p,x]:[x,p]}function Vc(c){return c.rangeExtent?c.rangeExtent():Gc(c.range())}function bF(c,p,x,M){var C=x(c[0],c[1]),L=M(p[0],p[1]);return function(P){return L(C(P))}}function S1(c,p){var x=0,M=c.length-1,C=c[x],L=c[M],P;return L<C&&(P=x,x=M,M=P,P=C,C=L,L=P),c[x]=p.floor(C),c[M]=p.ceil(L),c}function k5(c){return c?{floor:function(p){return Math.floor(p/c)*c},ceil:function(p){return Math.ceil(p/c)*c}}:xF}var xF={floor:J,ceil:J};function _F(c,p,x,M){var C=[],L=[],P=0,E=Math.min(c.length,p.length)-1;for(c[E]<c[0]&&(c=c.slice().reverse(),p=p.slice().reverse());++P<=E;)C.push(x(c[P-1],c[P])),L.push(M(p[P-1],p[P]));return function(F){var G=e.bisect(c,F,1,E)-1;return L[G](C[G](F))}}e.scale.linear=function(){return C5([0,1],[0,1],Zl,!1)};function C5(c,p,x,M){var C,L;function P(){var F=Math.min(c.length,p.length)>2?_F:bF,G=M?BN:ON;return C=F(c,p,G,x),L=F(p,c,G,Zl),E}function E(F){return C(F)}return E.invert=function(F){return L(F)},E.domain=function(F){return arguments.length?(c=F.map(Number),P()):c},E.range=function(F){return arguments.length?(p=F,P()):p},E.rangeRound=function(F){return E.range(F).interpolate(s5)},E.clamp=function(F){return arguments.length?(M=F,P()):M},E.interpolate=function(F){return arguments.length?(x=F,P()):x},E.ticks=function(F){return q1(c,F)},E.tickFormat=function(F,G){return d3_scale_linearTickFormat(c,F,G)},E.nice=function(F){return L5(c,F),P()},E.copy=function(){return C5(c,p,x,M)},P()}function S5(c,p){return e.rebind(c,p,"range","rangeRound","interpolate","clamp")}function L5(c,p){return S1(c,k5(L1(c,p)[2])),S1(c,k5(L1(c,p)[2])),c}function L1(c,p){p==null&&(p=10);var x=Gc(c),M=x[1]-x[0],C=Math.pow(10,Math.floor(Math.log(M/p)/Math.LN10)),L=p/M*C;return L<=.15?C*=10:L<=.35?C*=5:L<=.75&&(C*=2),x[0]=Math.ceil(x[0]/C)*C,x[1]=Math.floor(x[1]/C)*C+C*.5,x[2]=C,x}function q1(c,p){return e.range.apply(e,L1(c,p))}var wF={s:1,g:1,p:1,r:1,e:1};function q5(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function lie(c,p){var x=q5(p[2]);return c in wF?Math.abs(x-q5(Math.max(_(p[0]),_(p[1]))))+ +(c!=="e"):x-(c==="%")*2}e.scale.log=function(){return D5(e.scale.linear().domain([0,1]),10,!0,[1,10])};function D5(c,p,x,M){function C(E){return(x?Math.log(E<0?0:E):-Math.log(E>0?0:-E))/Math.log(p)}function L(E){return x?Math.pow(p,E):-Math.pow(p,-E)}function P(E){return c(C(E))}return P.invert=function(E){return L(c.invert(E))},P.domain=function(E){return arguments.length?(x=E[0]>=0,c.domain((M=E.map(Number)).map(C)),P):M},P.base=function(E){return arguments.length?(p=+E,c.domain(M.map(C)),P):p},P.nice=function(){var E=S1(M.map(C),x?Math:TF);return c.domain(E),M=E.map(L),P},P.ticks=function(){var E=Gc(M),F=[],G=E[0],W=E[1],$=Math.floor(C(G)),ee=Math.ceil(C(W)),he=p%1?2:p;if(isFinite(ee-$)){if(x){for(;$<ee;$++)for(var we=1;we<he;we++)F.push(L($)*we);F.push(L($))}else for(F.push(L($));$++<ee;)for(var we=he-1;we>0;we--)F.push(L($)*we);for($=0;F[$]<G;$++);for(ee=F.length;F[ee-1]>W;ee--);F=F.slice($,ee)}return F},P.copy=function(){return D5(c.copy(),p,x,M)},S5(P,c)}var TF={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return E5(e.scale.linear(),1,[0,1])};function E5(c,p,x){var M=Wc(p),C=Wc(1/p);function L(P){return c(M(P))}return L.invert=function(P){return C(c.invert(P))},L.domain=function(P){return arguments.length?(c.domain((x=P.map(Number)).map(M)),L):x},L.ticks=function(P){return q1(x,P)},L.tickFormat=function(P,E){return d3_scale_linearTickFormat(x,P,E)},L.nice=function(P){return L.domain(L5(x,P))},L.exponent=function(P){return arguments.length?(M=Wc(p=P),C=Wc(1/p),c.domain(x.map(M)),L):p},L.copy=function(){return E5(c.copy(),p,x)},S5(L,c)}function Wc(c){return function(p){return p<0?-Math.pow(-p,c):Math.pow(p,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return P5([],{t:"range",a:[[]]})};function P5(c,p){var x,M,C;function L(E){return M[((x.get(E)||(p.t==="range"?x.set(E,c.push(E)):NaN))-1)%M.length]}function P(E,F){return e.range(c.length).map(function(G){return E+F*G})}return L.domain=function(E){if(!arguments.length)return c;c=[],x=new b;for(var F=-1,G=E.length,W;++F<G;)x.has(W=E[F])||x.set(W,c.push(W));return L[p.t].apply(L,p.a)},L.range=function(E){return arguments.length?(M=E,C=0,p={t:"range",a:arguments},L):M},L.rangePoints=function(E,F){arguments.length<2&&(F=0);var G=E[0],W=E[1],$=c.length<2?(G=(G+W)/2,0):(W-G)/(c.length-1+F);return M=P(G+$*F/2,$),C=0,p={t:"rangePoints",a:arguments},L},L.rangeRoundPoints=function(E,F){arguments.length<2&&(F=0);var G=E[0],W=E[1],$=c.length<2?(G=W=Math.round((G+W)/2),0):(W-G)/(c.length-1+F)|0;return M=P(G+Math.round($*F/2+(W-G-(c.length-1+F)*$)/2),$),C=0,p={t:"rangeRoundPoints",a:arguments},L},L.rangeBands=function(E,F,G){arguments.length<2&&(F=0),arguments.length<3&&(G=F);var W=E[1]<E[0],$=E[W-0],ee=E[1-W],he=(ee-$)/(c.length-F+2*G);return M=P($+he*G,he),W&&M.reverse(),C=he*(1-F),p={t:"rangeBands",a:arguments},L},L.rangeRoundBands=function(E,F,G){arguments.length<2&&(F=0),arguments.length<3&&(G=F);var W=E[1]<E[0],$=E[W-0],ee=E[1-W],he=Math.floor((ee-$)/(c.length-F+2*G));return M=P($+Math.round((ee-$-(c.length-F)*he)/2),he),W&&M.reverse(),C=Math.round(he*(1-F)),p={t:"rangeRoundBands",a:arguments},L},L.rangeBand=function(){return C},L.rangeExtent=function(){return Gc(p.a[0])},L.copy=function(){return P5(c,p)},L.domain(c)}e.scale.category10=function(){return e.scale.ordinal().range(MF)},e.scale.category20=function(){return e.scale.ordinal().range(AF)},e.scale.category20b=function(){return e.scale.ordinal().range(kF)},e.scale.category20c=function(){return e.scale.ordinal().range(CF)};var MF=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map($o),AF=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map($o),kF=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map($o),CF=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map($o);e.scale.quantile=function(){return R5([],[])};function R5(c,p){var x;function M(){var L=0,P=p.length;for(x=[];++L<P;)x[L-1]=e.quantile(c,L/P);return C}function C(L){if(!isNaN(L=+L))return p[e.bisect(x,L)]}return C.domain=function(L){return arguments.length?(c=L.map(h).filter(d).sort(v),M()):c},C.range=function(L){return arguments.length?(p=L,M()):p},C.quantiles=function(){return x},C.invertExtent=function(L){return L=p.indexOf(L),L<0?[NaN,NaN]:[L>0?x[L-1]:c[0],L<x.length?x[L]:c[c.length-1]]},C.copy=function(){return R5(c,p)},M()}e.scale.quantize=function(){return z5(0,1,[0,1])};function z5(c,p,x){var M,C;function L(E){return x[Math.max(0,Math.min(C,Math.floor(M*(E-c))))]}function P(){return M=x.length/(p-c),C=x.length-1,L}return L.domain=function(E){return arguments.length?(c=+E[0],p=+E[E.length-1],P()):[c,p]},L.range=function(E){return arguments.length?(x=E,P()):x},L.invertExtent=function(E){return E=x.indexOf(E),E=E<0?NaN:E/M+c,[E,E+1/M]},L.copy=function(){return z5(c,p,x)},P()}e.scale.threshold=function(){return N5([.5],[0,1])};function N5(c,p){function x(M){if(M<=M)return p[e.bisect(c,M)]}return x.domain=function(M){return arguments.length?(c=M,x):c},x.range=function(M){return arguments.length?(p=M,x):p},x.invertExtent=function(M){return M=p.indexOf(M),[c[M-1],c[M]]},x.copy=function(){return N5(c,p)},x}e.scale.identity=function(){return F5([0,1])};function F5(c){function p(x){return+x}return p.invert=p,p.domain=p.range=function(x){return arguments.length?(c=x.map(p),p):c},p.ticks=function(x){return q1(c,x)},p.tickFormat=function(x,M){return d3_scale_linearTickFormat(c,x,M)},p.copy=function(){return F5(c)},p}e.svg={};function SF(){return 0}e.svg.arc=function(){var c=LF,p=qF,x=SF,M=Zc,C=I5,L=H5,P=DF;function E(){var G=Math.max(0,+c.apply(this,arguments)),W=Math.max(0,+p.apply(this,arguments)),$=C.apply(this,arguments)-sr,ee=L.apply(this,arguments)-sr,he=Math.abs(ee-$),we=$>ee?0:1;if(W<G&&(te=W,W=G,G=te),he>=vr)return F(W,we)+(G?F(G,1-we):"")+"Z";var te,le,ue,xe,Te=0,ce=0,Ge,rr,or,ar,hr,dr,Sr,pr,Tr=[];if((xe=(+P.apply(this,arguments)||0)/2)&&(ue=M===Zc?Math.sqrt(G*G+W*W):+M.apply(this,arguments),we||(ce*=-1),W&&(ce=ea(ue/W*Math.sin(xe))),G&&(Te=ea(ue/G*Math.sin(xe)))),W){Ge=W*Math.cos($+ce),rr=W*Math.sin($+ce),or=W*Math.cos(ee-ce),ar=W*Math.sin(ee-ce);var Jr=Math.abs(ee-$-2*ce)<=ke?0:1;if(ce&&Xc(Ge,rr,or,ar)===we^Jr){var Lt=($+ee)/2;Ge=W*Math.cos(Lt),rr=W*Math.sin(Lt),or=ar=null}}else Ge=rr=0;if(G){hr=G*Math.cos(ee-Te),dr=G*Math.sin(ee-Te),Sr=G*Math.cos($+Te),pr=G*Math.sin($+Te);var rt=Math.abs($-ee+2*Te)<=ke?0:1;if(Te&&Xc(hr,dr,Sr,pr)===1-we^rt){var er=($+ee)/2;hr=G*Math.cos(er),dr=G*Math.sin(er),Sr=pr=null}}else hr=dr=0;if(he>oe&&(te=Math.min(Math.abs(W-G)/2,+x.apply(this,arguments)))>.001){le=G<W^we?0:1;var Lr=te,qr=te;if(he<ke){var Kr=Sr==null?[hr,dr]:or==null?[Ge,rr]:d1([Ge,rr],[Sr,pr],[or,ar],[hr,dr]),_t=Ge-Kr[0],Ot=rr-Kr[1],ca=or-Kr[0],La=ar-Kr[1],Oa=1/Math.sin(Math.acos((_t*ca+Ot*La)/(Math.sqrt(_t*_t+Ot*Ot)*Math.sqrt(ca*ca+La*La)))/2),qa=Math.sqrt(Kr[0]*Kr[0]+Kr[1]*Kr[1]);qr=Math.min(te,(G-qa)/(Oa-1)),Lr=Math.min(te,(W-qa)/(Oa+1))}if(or!=null){var Ga=Jc(Sr==null?[hr,dr]:[Sr,pr],[Ge,rr],W,Lr,we),ba=Jc([or,ar],[hr,dr],W,Lr,we);te===Lr?Tr.push("M",Ga[0],"A",Lr,",",Lr," 0 0,",le," ",Ga[1],"A",W,",",W," 0 ",1-we^Xc(Ga[1][0],Ga[1][1],ba[1][0],ba[1][1]),",",we," ",ba[1],"A",Lr,",",Lr," 0 0,",le," ",ba[0]):Tr.push("M",Ga[0],"A",Lr,",",Lr," 0 1,",le," ",ba[0])}else Tr.push("M",Ge,",",rr);if(Sr!=null){var Va=Jc([Ge,rr],[Sr,pr],G,-qr,we),Jl=Jc([hr,dr],or==null?[Ge,rr]:[or,ar],G,-qr,we);te===qr?Tr.push("L",Jl[0],"A",qr,",",qr," 0 0,",le," ",Jl[1],"A",G,",",G," 0 ",we^Xc(Jl[1][0],Jl[1][1],Va[1][0],Va[1][1]),",",1-we," ",Va[1],"A",qr,",",qr," 0 0,",le," ",Va[0]):Tr.push("L",Jl[0],"A",qr,",",qr," 0 0,",le," ",Va[0])}else Tr.push("L",hr,",",dr)}else Tr.push("M",Ge,",",rr),or!=null&&Tr.push("A",W,",",W," 0 ",Jr,",",we," ",or,",",ar),Tr.push("L",hr,",",dr),Sr!=null&&Tr.push("A",G,",",G," 0 ",rt,",",1-we," ",Sr,",",pr);return Tr.push("Z"),Tr.join("")}function F(G,W){return"M0,"+G+"A"+G+","+G+" 0 1,"+W+" 0,"+-G+"A"+G+","+G+" 0 1,"+W+" 0,"+G}return E.innerRadius=function(G){return arguments.length?(c=Rr(G),E):c},E.outerRadius=function(G){return arguments.length?(p=Rr(G),E):p},E.cornerRadius=function(G){return arguments.length?(x=Rr(G),E):x},E.padRadius=function(G){return arguments.length?(M=G==Zc?Zc:Rr(G),E):M},E.startAngle=function(G){return arguments.length?(C=Rr(G),E):C},E.endAngle=function(G){return arguments.length?(L=Rr(G),E):L},E.padAngle=function(G){return arguments.length?(P=Rr(G),E):P},E.centroid=function(){var G=(+c.apply(this,arguments)+ +p.apply(this,arguments))/2,W=(+C.apply(this,arguments)+ +L.apply(this,arguments))/2-sr;return[Math.cos(W)*G,Math.sin(W)*G]},E};var Zc="auto";function LF(c){return c.innerRadius}function qF(c){return c.outerRadius}function I5(c){return c.startAngle}function H5(c){return c.endAngle}function DF(c){return c&&c.padAngle}function Xc(c,p,x,M){return(c-x)*p-(p-M)*c>0?0:1}function Jc(c,p,x,M,C){var L=c[0]-p[0],P=c[1]-p[1],E=(C?M:-M)/Math.sqrt(L*L+P*P),F=E*P,G=-E*L,W=c[0]+F,$=c[1]+G,ee=p[0]+F,he=p[1]+G,we=(W+ee)/2,te=($+he)/2,le=ee-W,ue=he-$,xe=le*le+ue*ue,Te=x-M,ce=W*he-ee*$,Ge=(ue<0?-1:1)*Math.sqrt(Math.max(0,Te*Te*xe-ce*ce)),rr=(ce*ue-le*Ge)/xe,or=(-ce*le-ue*Ge)/xe,ar=(ce*ue+le*Ge)/xe,hr=(-ce*le+ue*Ge)/xe,dr=rr-we,Sr=or-te,pr=ar-we,Tr=hr-te;return dr*dr+Sr*Sr>pr*pr+Tr*Tr&&(rr=ar,or=hr),[[rr-F,or-G],[rr*x/Te,or*x/Te]]}function O5(){return!0}function B5(c){var p=es,x=Lu,M=O5,C=Bn,L=C.key,P=.7;function E(F){var G=[],W=[],$=-1,ee=F.length,he,we=Rr(p),te=Rr(x);function le(){G.push("M",C(c(W),P))}for(;++$<ee;)M.call(this,he=F[$],$)?W.push([+we.call(this,he,$),+te.call(this,he,$)]):W.length&&(le(),W=[]);return W.length&&le(),G.length?G.join(""):null}return E.x=function(F){return arguments.length?(p=F,E):p},E.y=function(F){return arguments.length?(x=F,E):x},E.defined=function(F){return arguments.length?(M=F,E):M},E.interpolate=function(F){return arguments.length?(typeof F=="function"?L=C=F:L=(C=D1.get(F)||Bn).key,E):L},E.tension=function(F){return arguments.length?(P=F,E):P},E}e.svg.line=function(){return B5(J)};var D1=e.map({linear:Bn,"linear-closed":Y5,step:EF,"step-before":E1,"step-after":P1,basis:U5,"basis-open":NF,"basis-closed":FF,bundle:IF,cardinal:zF,"cardinal-open":PF,"cardinal-closed":RF,monotone:BF});D1.forEach(function(c,p){p.key=c,p.closed=/-closed$/.test(c)});function Bn(c){return c.length>1?c.join("L"):c+"Z"}function Y5(c){return c.join("L")+"Z"}function EF(c){for(var p=0,x=c.length,M=c[0],C=[M[0],",",M[1]];++p<x;)C.push("H",(M[0]+(M=c[p])[0])/2,"V",M[1]);return x>1&&C.push("H",M[0]),C.join("")}function E1(c){for(var p=0,x=c.length,M=c[0],C=[M[0],",",M[1]];++p<x;)C.push("V",(M=c[p])[1],"H",M[0]);return C.join("")}function P1(c){for(var p=0,x=c.length,M=c[0],C=[M[0],",",M[1]];++p<x;)C.push("H",(M=c[p])[0],"V",M[1]);return C.join("")}function PF(c,p){return c.length<4?Bn(c):c[1]+Kc(c.slice(1,-1),R1(c,p))}function RF(c,p){return c.length<3?Y5(c):c[0]+Kc((c.push(c[0]),c),R1([c[c.length-2]].concat(c,[c[1]]),p))}function zF(c,p){return c.length<3?Bn(c):c[0]+Kc(c,R1(c,p))}function Kc(c,p){if(p.length<1||c.length!=p.length&&c.length!=p.length+2)return Bn(c);var x=c.length!=p.length,M="",C=c[0],L=c[1],P=p[0],E=P,F=1;if(x&&(M+="Q"+(L[0]-P[0]*2/3)+","+(L[1]-P[1]*2/3)+","+L[0]+","+L[1],C=c[1],F=2),p.length>1){E=p[1],L=c[F],F++,M+="C"+(C[0]+P[0])+","+(C[1]+P[1])+","+(L[0]-E[0])+","+(L[1]-E[1])+","+L[0]+","+L[1];for(var G=2;G<p.length;G++,F++)L=c[F],E=p[G],M+="S"+(L[0]-E[0])+","+(L[1]-E[1])+","+L[0]+","+L[1]}if(x){var W=c[F];M+="Q"+(L[0]+E[0]*2/3)+","+(L[1]+E[1]*2/3)+","+W[0]+","+W[1]}return M}function R1(c,p){for(var x=[],M=(1-p)/2,C,L=c[0],P=c[1],E=1,F=c.length;++E<F;)C=L,L=P,P=c[E],x.push([M*(P[0]-C[0]),M*(P[1]-C[1])]);return x}function U5(c){if(c.length<3)return Bn(c);var p=1,x=c.length,M=c[0],C=M[0],L=M[1],P=[C,C,C,(M=c[1])[0]],E=[L,L,L,M[1]],F=[C,",",L,"L",mn(tl,P),",",mn(tl,E)];for(c.push(c[x-1]);++p<=x;)M=c[p],P.shift(),P.push(M[0]),E.shift(),E.push(M[1]),z1(F,P,E);return c.pop(),F.push("L",M),F.join("")}function NF(c){if(c.length<4)return Bn(c);for(var p=[],x=-1,M=c.length,C,L=[0],P=[0];++x<3;)C=c[x],L.push(C[0]),P.push(C[1]);for(p.push(mn(tl,L)+","+mn(tl,P)),--x;++x<M;)C=c[x],L.shift(),L.push(C[0]),P.shift(),P.push(C[1]),z1(p,L,P);return p.join("")}function FF(c){for(var p,x=-1,M=c.length,C=M+4,L,P=[],E=[];++x<4;)L=c[x%M],P.push(L[0]),E.push(L[1]);for(p=[mn(tl,P),",",mn(tl,E)],--x;++x<C;)L=c[x%M],P.shift(),P.push(L[0]),E.shift(),E.push(L[1]),z1(p,P,E);return p.join("")}function IF(c,p){var x=c.length-1;if(x)for(var M=c[0][0],C=c[0][1],L=c[x][0]-M,P=c[x][1]-C,E=-1,F,G;++E<=x;)F=c[E],G=E/x,F[0]=p*F[0]+(1-p)*(M+G*L),F[1]=p*F[1]+(1-p)*(C+G*P);return U5(c)}function mn(c,p){return c[0]*p[0]+c[1]*p[1]+c[2]*p[2]+c[3]*p[3]}var G5=[0,2/3,1/3,0],V5=[0,1/3,2/3,0],tl=[0,1/6,2/3,1/6];function z1(c,p,x){c.push("C",mn(G5,p),",",mn(G5,x),",",mn(V5,p),",",mn(V5,x),",",mn(tl,p),",",mn(tl,x))}function N1(c,p){return(p[1]-c[1])/(p[0]-c[0])}function HF(c){for(var p=0,x=c.length-1,M=[],C=c[0],L=c[1],P=M[0]=N1(C,L);++p<x;)M[p]=(P+(P=N1(C=L,L=c[p+1])))/2;return M[p]=P,M}function OF(c){for(var p=[],x,M,C,L,P=HF(c),E=-1,F=c.length-1;++E<F;)x=N1(c[E],c[E+1]),_(x)<oe?P[E]=P[E+1]=0:(M=P[E]/x,C=P[E+1]/x,L=M*M+C*C,L>9&&(L=x*3/Math.sqrt(L),P[E]=L*M,P[E+1]=L*C));for(E=-1;++E<=F;)L=(c[Math.min(F,E+1)][0]-c[Math.max(0,E-1)][0])/(6*(1+P[E]*P[E])),p.push([L||0,P[E]*L||0]);return p}function BF(c){return c.length<3?Bn(c):c[0]+Kc(c,OF(c))}e.svg.line.radial=function(){var c=B5(W5);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function W5(c){for(var p,x=-1,M=c.length,C,L;++x<M;)p=c[x],C=p[0],L=p[1]-sr,p[0]=C*Math.cos(L),p[1]=C*Math.sin(L);return c}function Z5(c){var p=es,x=es,M=0,C=Lu,L=O5,P=Bn,E=P.key,F=P,G="L",W=.7;function $(ee){var he=[],we=[],te=[],le=-1,ue=ee.length,xe,Te=Rr(p),ce=Rr(M),Ge=p===x?function(){return or}:Rr(x),rr=M===C?function(){return ar}:Rr(C),or,ar;function hr(){he.push("M",P(c(te),W),G,F(c(we.reverse()),W),"Z")}for(;++le<ue;)L.call(this,xe=ee[le],le)?(we.push([or=+Te.call(this,xe,le),ar=+ce.call(this,xe,le)]),te.push([+Ge.call(this,xe,le),+rr.call(this,xe,le)])):we.length&&(hr(),we=[],te=[]);return we.length&&hr(),he.length?he.join(""):null}return $.x=function(ee){return arguments.length?(p=x=ee,$):x},$.x0=function(ee){return arguments.length?(p=ee,$):p},$.x1=function(ee){return arguments.length?(x=ee,$):x},$.y=function(ee){return arguments.length?(M=C=ee,$):C},$.y0=function(ee){return arguments.length?(M=ee,$):M},$.y1=function(ee){return arguments.length?(C=ee,$):C},$.defined=function(ee){return arguments.length?(L=ee,$):L},$.interpolate=function(ee){return arguments.length?(typeof ee=="function"?E=P=ee:E=(P=D1.get(ee)||Bn).key,F=P.reverse||P,G=P.closed?"M":"L",$):E},$.tension=function(ee){return arguments.length?(W=ee,$):W},$}E1.reverse=P1,P1.reverse=E1,e.svg.area=function(){return Z5(J)},e.svg.area.radial=function(){var c=Z5(W5);return c.radius=c.x,delete c.x,c.innerRadius=c.x0,delete c.x0,c.outerRadius=c.x1,delete c.x1,c.angle=c.y,delete c.y,c.startAngle=c.y0,delete c.y0,c.endAngle=c.y1,delete c.y1,c};function X5(c){return c.source}function J5(c){return c.target}e.svg.chord=function(){var c=X5,p=J5,x=YF,M=I5,C=H5;function L(W,$){var ee=P(this,c,W,$),he=P(this,p,W,$);return"M"+ee.p0+F(ee.r,ee.p1,ee.a1-ee.a0)+(E(ee,he)?G(ee.r,ee.p1,ee.r,ee.p0):G(ee.r,ee.p1,he.r,he.p0)+F(he.r,he.p1,he.a1-he.a0)+G(he.r,he.p1,ee.r,ee.p0))+"Z"}function P(W,$,ee,he){var we=$.call(W,ee,he),te=x.call(W,we,he),le=M.call(W,we,he)-sr,ue=C.call(W,we,he)-sr;return{r:te,a0:le,a1:ue,p0:[te*Math.cos(le),te*Math.sin(le)],p1:[te*Math.cos(ue),te*Math.sin(ue)]}}function E(W,$){return W.a0==$.a0&&W.a1==$.a1}function F(W,$,ee){return"A"+W+","+W+" 0 "+ +(ee>ke)+",1 "+$}function G(W,$,ee,he){return"Q 0,0 "+he}return L.radius=function(W){return arguments.length?(x=Rr(W),L):x},L.source=function(W){return arguments.length?(c=Rr(W),L):c},L.target=function(W){return arguments.length?(p=Rr(W),L):p},L.startAngle=function(W){return arguments.length?(M=Rr(W),L):M},L.endAngle=function(W){return arguments.length?(C=Rr(W),L):C},L};function YF(c){return c.radius}e.svg.diagonal=function(){var c=X5,p=J5,x=K5;function M(C,L){var P=c.call(this,C,L),E=p.call(this,C,L),F=(P.y+E.y)/2,G=[P,{x:P.x,y:F},{x:E.x,y:F},E];return G=G.map(x),"M"+G[0]+"C"+G[1]+" "+G[2]+" "+G[3]}return M.source=function(C){return arguments.length?(c=Rr(C),M):c},M.target=function(C){return arguments.length?(p=Rr(C),M):p},M.projection=function(C){return arguments.length?(x=C,M):x},M};function K5(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),p=K5,x=c.projection;return c.projection=function(M){return arguments.length?x(UF(p=M)):p},c};function UF(c){return function(){var p=c.apply(this,arguments),x=p[0],M=p[1]-sr;return[x*Math.cos(M),x*Math.sin(M)]}}e.svg.symbol=function(){var c=VF,p=GF;function x(M,C){return($5.get(c.call(this,M,C))||Q5)(p.call(this,M,C))}return x.type=function(M){return arguments.length?(c=Rr(M),x):c},x.size=function(M){return arguments.length?(p=Rr(M),x):p},x};function GF(){return 64}function VF(){return"circle"}function Q5(c){var p=Math.sqrt(c/ke);return"M0,"+p+"A"+p+","+p+" 0 1,1 0,"+-p+"A"+p+","+p+" 0 1,1 0,"+p+"Z"}var $5=e.map({circle:Q5,cross:function(c){var p=Math.sqrt(c/5)/2;return"M"+-3*p+","+-p+"H"+-p+"V"+-3*p+"H"+p+"V"+-p+"H"+3*p+"V"+p+"H"+p+"V"+3*p+"H"+-p+"V"+p+"H"+-3*p+"Z"},diamond:function(c){var p=Math.sqrt(c/(2*j5)),x=p*j5;return"M0,"+-p+"L"+x+",0 0,"+p+" "+-x+",0Z"},square:function(c){var p=Math.sqrt(c)/2;return"M"+-p+","+-p+"L"+p+","+-p+" "+p+","+p+" "+-p+","+p+"Z"},"triangle-down":function(c){var p=Math.sqrt(c/Qc),x=p*Qc/2;return"M0,"+x+"L"+p+","+-x+" "+-p+","+-x+"Z"},"triangle-up":function(c){var p=Math.sqrt(c/Qc),x=p*Qc/2;return"M0,"+-x+"L"+p+","+x+" "+-p+","+x+"Z"}});e.svg.symbolTypes=$5.keys();var Qc=Math.sqrt(3),j5=Math.tan(30*Mr);Ae.transition=function(c){for(var p=Xl||++rb,x=I1(c),M=[],C,L,P=jc||{time:Date.now(),ease:TN,delay:0,duration:250},E=-1,F=this.length;++E<F;){M.push(C=[]);for(var G=this[E],W=-1,$=G.length;++W<$;)(L=G[W])&&ev(L,W,x,p,P),C.push(L)}return Fu(M,x,p)},Ae.interrupt=function(c){return this.each(c==null?$c:eb(I1(c)))};var $c=eb(I1());function eb(c){return function(){var p,x,M;(p=this[c])&&(M=p[x=p.active])&&(M.timer.c=null,M.timer.t=NaN,--p.count?delete p[x]:delete this[c],p.active+=.5,M.event&&M.event.interrupt.call(this,this.__data__,M.index))}}function Fu(c,p,x){return j(c,Ht),c.namespace=p,c.id=x,c}var Ht=[],rb=0,Xl,jc;Ht.call=Ae.call,Ht.empty=Ae.empty,Ht.node=Ae.node,Ht.size=Ae.size,e.transition=function(c,p){return c&&c.transition?Xl?c.transition(p):c:e.selection().transition(c)},e.transition.prototype=Ht,Ht.select=function(c){var p=this.id,x=this.namespace,M=[],C,L,P;c=Y(c);for(var E=-1,F=this.length;++E<F;){M.push(C=[]);for(var G=this[E],W=-1,$=G.length;++W<$;)(P=G[W])&&(L=c.call(P,P.__data__,W,E))?("__data__"in P&&(L.__data__=P.__data__),ev(L,W,x,p,P[x][p]),C.push(L)):C.push(null)}return Fu(M,x,p)},Ht.selectAll=function(c){var p=this.id,x=this.namespace,M=[],C,L,P,E,F;c=re(c);for(var G=-1,W=this.length;++G<W;)for(var $=this[G],ee=-1,he=$.length;++ee<he;)if(P=$[ee]){F=P[x][p],L=c.call(P,P.__data__,ee,G),M.push(C=[]);for(var we=-1,te=L.length;++we<te;)(E=L[we])&&ev(E,we,x,p,F),C.push(E)}return Fu(M,x,p)},Ht.filter=function(c){var p=[],x,M,C;typeof c!="function"&&(c=ne(c));for(var L=0,P=this.length;L<P;L++){p.push(x=[]);for(var M=this[L],E=0,F=M.length;E<F;E++)(C=M[E])&&c.call(C,C.__data__,E,L)&&x.push(C)}return Fu(p,this.namespace,this.id)},Ht.tween=function(c,p){var x=this.id,M=this.namespace;return arguments.length<2?this.node()[M][x].tween.get(c):Ce(this,p==null?function(C){C[M][x].tween.remove(c)}:function(C){C[M][x].tween.set(c,p)})};function F1(c,p,x,M){var C=c.id,L=c.namespace;return Ce(c,typeof x=="function"?function(P,E,F){P[L][C].tween.set(p,M(x.call(P,P.__data__,E,F)))}:(x=M(x),function(P){P[L][C].tween.set(p,x)}))}Ht.attr=function(c,p){if(arguments.length<2){for(p in c)this.attr(p,c[p]);return this}var x=c=="transform"?v5:Zl,M=e.ns.qualify(c);function C(){this.removeAttribute(M)}function L(){this.removeAttributeNS(M.space,M.local)}function P(F){return F==null?C:(F+="",function(){var G=this.getAttribute(M),W;return G!==F&&(W=x(G,F),function($){this.setAttribute(M,W($))})})}function E(F){return F==null?L:(F+="",function(){var G=this.getAttributeNS(M.space,M.local),W;return G!==F&&(W=x(G,F),function($){this.setAttributeNS(M.space,M.local,W($))})})}return F1(this,"attr."+c,p,M.local?E:P)},Ht.attrTween=function(c,p){var x=e.ns.qualify(c);function M(L,P){var E=p.call(this,L,P,this.getAttribute(x));return E&&function(F){this.setAttribute(x,E(F))}}function C(L,P){var E=p.call(this,L,P,this.getAttributeNS(x.space,x.local));return E&&function(F){this.setAttributeNS(x.space,x.local,E(F))}}return this.tween("attr."+c,x.local?C:M)},Ht.style=function(c,p,x){var M=arguments.length;if(M<3){if(typeof c!="string"){M<2&&(p="");for(x in c)this.style(x,c[x],p);return this}x=""}function C(){this.style.removeProperty(c)}function L(P){return P==null?C:(P+="",function(){var E=i(this).getComputedStyle(this,null).getPropertyValue(c),F;return E!==P&&(F=Zl(E,P),function(G){this.style.setProperty(c,F(G),x)})})}return F1(this,"style."+c,p,L)},Ht.styleTween=function(c,p,x){arguments.length<3&&(x="");function M(C,L){var P=p.call(this,C,L,i(this).getComputedStyle(this,null).getPropertyValue(c));return P&&function(E){this.style.setProperty(c,P(E),x)}}return this.tween("style."+c,M)},Ht.text=function(c){return F1(this,"text",c,WF)};function WF(c){return c==null&&(c=""),function(){this.textContent=c}}Ht.remove=function(){var c=this.namespace;return this.each("end.transition",function(){var p;this[c].count<2&&(p=this.parentNode)&&p.removeChild(this)})},Ht.ease=function(c){var p=this.id,x=this.namespace;return arguments.length<1?this.node()[x][p].ease:(typeof c!="function"&&(c=e.ease.apply(e,arguments)),Ce(this,function(M){M[x][p].ease=c}))},Ht.delay=function(c){var p=this.id,x=this.namespace;return arguments.length<1?this.node()[x][p].delay:Ce(this,typeof c=="function"?function(M,C,L){M[x][p].delay=+c.call(M,M.__data__,C,L)}:(c=+c,function(M){M[x][p].delay=c}))},Ht.duration=function(c){var p=this.id,x=this.namespace;return arguments.length<1?this.node()[x][p].duration:Ce(this,typeof c=="function"?function(M,C,L){M[x][p].duration=Math.max(1,c.call(M,M.__data__,C,L))}:(c=Math.max(1,c),function(M){M[x][p].duration=c}))},Ht.each=function(c,p){var x=this.id,M=this.namespace;if(arguments.length<2){var C=jc,L=Xl;try{Xl=x,Ce(this,function(P,E,F){jc=P[M][x],c.call(P,P.__data__,E,F)})}finally{jc=C,Xl=L}}else Ce(this,function(P){var E=P[M][x];(E.event||(E.event=e.dispatch("start","end","interrupt"))).on(c,p)});return this},Ht.transition=function(){for(var c=this.id,p=++rb,x=this.namespace,M=[],C,L,P,E,F=0,G=this.length;F<G;F++){M.push(C=[]);for(var L=this[F],W=0,$=L.length;W<$;W++)(P=L[W])&&(E=P[x][c],ev(P,W,x,p,{time:E.time,ease:E.ease,delay:E.delay+E.duration,duration:E.duration})),C.push(P)}return Fu(M,x,p)};function I1(c){return c==null?"__transition__":"__transition_"+c+"__"}function ev(c,p,x,M,C){var L=c[x]||(c[x]={active:0,count:0}),P=L[M],E,F,G,W,$;function ee(te){var le=P.delay;if(F.t=le+E,le<=te)return he(te-le);F.c=he}function he(te){var le=L.active,ue=L[le];ue&&(ue.timer.c=null,ue.timer.t=NaN,--L.count,delete L[le],ue.event&&ue.event.interrupt.call(c,c.__data__,ue.index));for(var xe in L)if(+xe<M){var Te=L[xe];Te.timer.c=null,Te.timer.t=NaN,--L.count,delete L[xe]}F.c=we,Fc(function(){return F.c&&we(te||1)&&(F.c=null,F.t=NaN),1},0,E),L.active=M,P.event&&P.event.start.call(c,c.__data__,p),$=[],P.tween.forEach(function(ce,Ge){(Ge=Ge.call(c,c.__data__,p))&&$.push(Ge)}),W=P.ease,G=P.duration}function we(te){for(var le=te/G,ue=W(le),xe=$.length;xe>0;)$[--xe].call(c,ue);if(le>=1)return P.event&&P.event.end.call(c,c.__data__,p),--L.count?delete L[M]:delete c[x],1}P||(E=C.time,F=Fc(ee,0,E),P=L[M]={tween:new b,time:E,timer:F,delay:C.delay,duration:C.duration,ease:C.ease,index:p},C=null,++L.count)}e.svg.axis=function(){var c=e.scale.linear(),p=tb,x=6,M=6,C=3,L=[10],P=null,E;function F(G){G.each(function(){var W=e.select(this),$=this.__chart__||c,ee=this.__chart__=c.copy(),he=P==null?ee.ticks?ee.ticks.apply(ee,L):ee.domain():P,we=E==null?ee.tickFormat?ee.tickFormat.apply(ee,L):J:E,te=W.selectAll(".tick").data(he,ee),le=te.enter().insert("g",".domain").attr("class","tick").style("opacity",oe),ue=e.transition(te.exit()).style("opacity",oe).remove(),xe=e.transition(te.order()).style("opacity",1),Te=Math.max(x,0)+C,ce,Ge=Vc(ee),rr=W.selectAll(".domain").data([0]),or=(rr.enter().append("path").attr("class","domain"),e.transition(rr));le.append("line"),le.append("text");var ar=le.select("line"),hr=xe.select("line"),dr=te.select("text").text(we),Sr=le.select("text"),pr=xe.select("text"),Tr=p==="top"||p==="left"?-1:1,Jr,Lt,rt,er;if(p==="bottom"||p==="top"?(ce=XF,Jr="x",rt="y",Lt="x2",er="y2",dr.attr("dy",Tr<0?"0em":".71em").style("text-anchor","middle"),or.attr("d","M"+Ge[0]+","+Tr*M+"V0H"+Ge[1]+"V"+Tr*M)):(ce=JF,Jr="y",rt="x",Lt="y2",er="x2",dr.attr("dy",".32em").style("text-anchor",Tr<0?"end":"start"),or.attr("d","M"+Tr*M+","+Ge[0]+"H0V"+Ge[1]+"H"+Tr*M)),ar.attr(er,Tr*x),Sr.attr(rt,Tr*Te),hr.attr(Lt,0).attr(er,Tr*x),pr.attr(Jr,0).attr(rt,Tr*Te),ee.rangeBand){var Lr=ee,qr=Lr.rangeBand()/2;$=ee=function(Kr){return Lr(Kr)+qr}}else $.rangeBand?$=ee:ue.call(ce,ee,$);le.call(ce,$,ee),xe.call(ce,ee,ee)})}return F.scale=function(G){return arguments.length?(c=G,F):c},F.orient=function(G){return arguments.length?(p=G in ZF?G+"":tb,F):p},F.ticks=function(){return arguments.length?(L=t(arguments),F):L},F.tickValues=function(G){return arguments.length?(P=G,F):P},F.tickFormat=function(G){return arguments.length?(E=G,F):E},F.tickSize=function(G){var W=arguments.length;return W?(x=+G,M=+arguments[W-1],F):x},F.innerTickSize=function(G){return arguments.length?(x=+G,F):x},F.outerTickSize=function(G){return arguments.length?(M=+G,F):M},F.tickPadding=function(G){return arguments.length?(C=+G,F):C},F.tickSubdivide=function(){return arguments.length&&F},F};var tb="bottom",ZF={top:1,right:1,bottom:1,left:1};function XF(c,p,x){c.attr("transform",function(M){var C=p(M);return"translate("+(isFinite(C)?C:x(M))+",0)"})}function JF(c,p,x){c.attr("transform",function(M){var C=p(M);return"translate(0,"+(isFinite(C)?C:x(M))+")"})}e.svg.brush=function(){var c=pe(W,"brushstart","brush","brushend"),p=null,x=null,M=[0,0],C=[0,0],L,P,E=!0,F=!0,G=H1[0];function W(te){te.each(function(){var le=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",we).on("touchstart.brush",we),ue=le.selectAll(".background").data([0]);ue.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),le.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var xe=le.selectAll(".resize").data(G,J);xe.exit().remove(),xe.enter().append("g").attr("class",function(rr){return"resize "+rr}).style("cursor",function(rr){return KF[rr]}).append("rect").attr("x",function(rr){return/[ew]$/.test(rr)?-3:null}).attr("y",function(rr){return/^[ns]/.test(rr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),xe.style("display",W.empty()?"none":null);var Te=e.transition(le),ce=e.transition(ue),Ge;p&&(Ge=Vc(p),ce.attr("x",Ge[0]).attr("width",Ge[1]-Ge[0]),ee(Te)),x&&(Ge=Vc(x),ce.attr("y",Ge[0]).attr("height",Ge[1]-Ge[0]),he(Te)),$(Te)})}W.event=function(te){te.each(function(){var le=c.of(this,arguments),ue={x:M,y:C,i:L,j:P},xe=this.__chart__||ue;this.__chart__=ue,Xl?e.select(this).transition().each("start.brush",function(){L=xe.i,P=xe.j,M=xe.x,C=xe.y,le({type:"brushstart"})}).tween("brush:brush",function(){var Te=Uc(M,ue.x),ce=Uc(C,ue.y);return L=P=null,function(Ge){M=ue.x=Te(Ge),C=ue.y=ce(Ge),le({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=ue.i,P=ue.j,le({type:"brush",mode:"resize"}),le({type:"brushend"})}):(le({type:"brushstart"}),le({type:"brush",mode:"resize"}),le({type:"brushend"}))})};function $(te){te.selectAll(".resize").attr("transform",function(le){return"translate("+M[+/e$/.test(le)]+","+C[+/^s/.test(le)]+")"})}function ee(te){te.select(".extent").attr("x",M[0]),te.selectAll(".extent,.n>rect,.s>rect").attr("width",M[1]-M[0])}function he(te){te.select(".extent").attr("y",C[0]),te.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[0])}function we(){var te=this,le=e.select(e.event.target),ue=c.of(te,arguments),xe=e.select(te),Te=le.datum(),ce=!/^(n|s)$/.test(Te)&&p,Ge=!/^(e|w)$/.test(Te)&&x,rr=le.classed("extent"),or=fr(te),ar,hr=e.mouse(te),dr,Sr=e.select(i(te)).on("keydown.brush",Jr).on("keyup.brush",Lt);if(e.event.changedTouches?Sr.on("touchmove.brush",rt).on("touchend.brush",Lr):Sr.on("mousemove.brush",rt).on("mouseup.brush",Lr),xe.interrupt().selectAll("*").interrupt(),rr)hr[0]=M[0]-hr[0],hr[1]=C[0]-hr[1];else if(Te){var pr=+/w$/.test(Te),Tr=+/^n/.test(Te);dr=[M[1-pr]-hr[0],C[1-Tr]-hr[1]],hr[0]=M[pr],hr[1]=C[Tr]}else e.event.altKey&&(ar=hr.slice());xe.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",le.style("cursor")),ue({type:"brushstart"}),rt();function Jr(){e.event.keyCode==32&&(rr||(ar=null,hr[0]-=M[1],hr[1]-=C[1],rr=2),ie())}function Lt(){e.event.keyCode==32&&rr==2&&(hr[0]+=M[1],hr[1]+=C[1],rr=0,ie())}function rt(){var qr=e.mouse(te),Kr=!1;dr&&(qr[0]+=dr[0],qr[1]+=dr[1]),rr||(e.event.altKey?(ar||(ar=[(M[0]+M[1])/2,(C[0]+C[1])/2]),hr[0]=M[+(qr[0]<ar[0])],hr[1]=C[+(qr[1]<ar[1])]):ar=null),ce&&er(qr,p,0)&&(ee(xe),Kr=!0),Ge&&er(qr,x,1)&&(he(xe),Kr=!0),Kr&&($(xe),ue({type:"brush",mode:rr?"move":"resize"}))}function er(qr,Kr,_t){var Ot=Vc(Kr),ca=Ot[0],La=Ot[1],Oa=hr[_t],qa=_t?C:M,Ga=qa[1]-qa[0],ba,Va;if(rr&&(ca-=Oa,La-=Ga+Oa),ba=(_t?F:E)?Math.max(ca,Math.min(La,qr[_t])):qr[_t],rr?Va=(ba+=Oa)+Ga:(ar&&(Oa=Math.max(ca,Math.min(La,2*ar[_t]-ba))),Oa<ba?(Va=ba,ba=Oa):Va=Oa),qa[0]!=ba||qa[1]!=Va)return _t?P=null:L=null,qa[0]=ba,qa[1]=Va,!0}function Lr(){rt(),xe.style("pointer-events","all").selectAll(".resize").style("display",W.empty()?"none":null),e.select("body").style("cursor",null),Sr.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),or(),ue({type:"brushend"})}}return W.x=function(te){return arguments.length?(p=te,G=H1[!p<<1|!x],W):p},W.y=function(te){return arguments.length?(x=te,G=H1[!p<<1|!x],W):x},W.clamp=function(te){return arguments.length?(p&&x?(E=!!te[0],F=!!te[1]):p?E=!!te:x&&(F=!!te),W):p&&x?[E,F]:p?E:x?F:null},W.extent=function(te){var le,ue,xe,Te,ce;return arguments.length?(p&&(le=te[0],ue=te[1],x&&(le=le[0],ue=ue[0]),L=[le,ue],p.invert&&(le=p(le),ue=p(ue)),ue<le&&(ce=le,le=ue,ue=ce),(le!=M[0]||ue!=M[1])&&(M=[le,ue])),x&&(xe=te[0],Te=te[1],p&&(xe=xe[1],Te=Te[1]),P=[xe,Te],x.invert&&(xe=x(xe),Te=x(Te)),Te<xe&&(ce=xe,xe=Te,Te=ce),(xe!=C[0]||Te!=C[1])&&(C=[xe,Te])),W):(p&&(L?(le=L[0],ue=L[1]):(le=M[0],ue=M[1],p.invert&&(le=p.invert(le),ue=p.invert(ue)),ue<le&&(ce=le,le=ue,ue=ce))),x&&(P?(xe=P[0],Te=P[1]):(xe=C[0],Te=C[1],x.invert&&(xe=x.invert(xe),Te=x.invert(Te)),Te<xe&&(ce=xe,xe=Te,Te=ce))),p&&x?[[le,xe],[ue,Te]]:p?[le,ue]:x&&[xe,Te])},W.clear=function(){return W.empty()||(M=[0,0],C=[0,0],L=P=null),W},W.empty=function(){return!!p&&M[0]==M[1]||!!x&&C[0]==C[1]},e.rebind(W,c,"on")};var KF={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},H1=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=On(function(c){return c.responseText}),e.json=function(c,p){return Vl(c,"application/json",QF,p)};function QF(c){return JSON.parse(c.responseText)}e.html=function(c,p){return Vl(c,"text/html",$F,p)};function $F(c){var p=a.createRange();return p.selectNode(a.body),p.createContextualFragment(c.responseText)}e.xml=On(function(c){return c.responseXML}),typeof nv=="object"&&nv.exports?nv.exports=e:this.d3=e}).apply(self)});var O1=Z((iv,ub)=>{(function(e,r){typeof iv=="object"&&typeof ub!="undefined"?r(iv):(e=e||self,r(e.d3=e.d3||{}))})(iv,function(e){"use strict";var r=new Date,t=new Date;function a(ne,Me,Ce,cr){function tr(De){return ne(De=arguments.length===0?new Date:new Date(+De)),De}return tr.floor=function(De){return ne(De=new Date(+De)),De},tr.ceil=function(De){return ne(De=new Date(De-1)),Me(De,1),ne(De),De},tr.round=function(De){var Le=tr(De),Ye=tr.ceil(De);return De-Le<Ye-De?Le:Ye},tr.offset=function(De,Le){return Me(De=new Date(+De),Le==null?1:Math.floor(Le)),De},tr.range=function(De,Le,Ye){var Ze=[],Ue;if(De=tr.ceil(De),Ye=Ye==null?1:Math.floor(Ye),!(De<Le)||!(Ye>0))return Ze;do Ze.push(Ue=new Date(+De)),Me(De,Ye),ne(De);while(Ue<De&&De<Le);return Ze},tr.filter=function(De){return a(function(Le){if(Le>=Le)for(;ne(Le),!De(Le);)Le.setTime(Le-1)},function(Le,Ye){if(Le>=Le)if(Ye<0)for(;++Ye<=0;)for(;Me(Le,-1),!De(Le););else for(;--Ye>=0;)for(;Me(Le,1),!De(Le););})},Ce&&(tr.count=function(De,Le){return r.setTime(+De),t.setTime(+Le),ne(r),ne(t),Math.floor(Ce(r,t))},tr.every=function(De){return De=Math.floor(De),!isFinite(De)||!(De>0)?null:De>1?tr.filter(cr?function(Le){return cr(Le)%De===0}:function(Le){return tr.count(0,Le)%De===0}):tr}),tr}var n=a(function(){},function(ne,Me){ne.setTime(+ne+Me)},function(ne,Me){return Me-ne});n.every=function(ne){return ne=Math.floor(ne),!isFinite(ne)||!(ne>0)?null:ne>1?a(function(Me){Me.setTime(Math.floor(Me/ne)*ne)},function(Me,Ce){Me.setTime(+Me+Ce*ne)},function(Me,Ce){return(Ce-Me)/ne}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,v=a(function(ne){ne.setTime(ne-ne.getMilliseconds())},function(ne,Me){ne.setTime(+ne+Me*l)},function(ne,Me){return(Me-ne)/l},function(ne){return ne.getUTCSeconds()}),h=v.range,d=a(function(ne){ne.setTime(ne-ne.getMilliseconds()-ne.getSeconds()*l)},function(ne,Me){ne.setTime(+ne+Me*o)},function(ne,Me){return(Me-ne)/o},function(ne){return ne.getMinutes()}),m=d.range,g=a(function(ne){ne.setTime(ne-ne.getMilliseconds()-ne.getSeconds()*l-ne.getMinutes()*o)},function(ne,Me){ne.setTime(+ne+Me*s)},function(ne,Me){return(Me-ne)/s},function(ne){return ne.getHours()}),y=g.range,_=a(function(ne){ne.setHours(0,0,0,0)},function(ne,Me){ne.setDate(ne.getDate()+Me)},function(ne,Me){return(Me-ne-(Me.getTimezoneOffset()-ne.getTimezoneOffset())*o)/u},function(ne){return ne.getDate()-1}),w=_.range;function T(ne){return a(function(Me){Me.setDate(Me.getDate()-(Me.getDay()+7-ne)%7),Me.setHours(0,0,0,0)},function(Me,Ce){Me.setDate(Me.getDate()+Ce*7)},function(Me,Ce){return(Ce-Me-(Ce.getTimezoneOffset()-Me.getTimezoneOffset())*o)/f})}var b=T(0),A=T(1),S=T(2),k=T(3),q=T(4),D=T(5),R=T(6),z=b.range,N=A.range,H=S.range,O=k.range,J=q.range,X=D.range,B=R.range,I=a(function(ne){ne.setDate(1),ne.setHours(0,0,0,0)},function(ne,Me){ne.setMonth(ne.getMonth()+Me)},function(ne,Me){return Me.getMonth()-ne.getMonth()+(Me.getFullYear()-ne.getFullYear())*12},function(ne){return ne.getMonth()}),V=I.range,K=a(function(ne){ne.setMonth(0,1),ne.setHours(0,0,0,0)},function(ne,Me){ne.setFullYear(ne.getFullYear()+Me)},function(ne,Me){return Me.getFullYear()-ne.getFullYear()},function(ne){return ne.getFullYear()});K.every=function(ne){return!isFinite(ne=Math.floor(ne))||!(ne>0)?null:a(function(Me){Me.setFullYear(Math.floor(Me.getFullYear()/ne)*ne),Me.setMonth(0,1),Me.setHours(0,0,0,0)},function(Me,Ce){Me.setFullYear(Me.getFullYear()+Ce*ne)})};var Q=K.range,ie=a(function(ne){ne.setUTCSeconds(0,0)},function(ne,Me){ne.setTime(+ne+Me*o)},function(ne,Me){return(Me-ne)/o},function(ne){return ne.getUTCMinutes()}),me=ie.range,pe=a(function(ne){ne.setUTCMinutes(0,0,0)},function(ne,Me){ne.setTime(+ne+Me*s)},function(ne,Me){return(Me-ne)/s},function(ne){return ne.getUTCHours()}),ge=pe.range,j=a(function(ne){ne.setUTCHours(0,0,0,0)},function(ne,Me){ne.setUTCDate(ne.getUTCDate()+Me)},function(ne,Me){return(Me-ne)/u},function(ne){return ne.getUTCDate()-1}),_e=j.range;function se(ne){return a(function(Me){Me.setUTCDate(Me.getUTCDate()-(Me.getUTCDay()+7-ne)%7),Me.setUTCHours(0,0,0,0)},function(Me,Ce){Me.setUTCDate(Me.getUTCDate()+Ce*7)},function(Me,Ce){return(Ce-Me)/f})}var Se=se(0),ve=se(1),Ae=se(2),Y=se(3),re=se(4),U=se(5),de=se(6),be=Se.range,ye=ve.range,Fe=Ae.range,Re=Y.range,Pe=re.range,Ie=U.range,Be=de.range,Ne=a(function(ne){ne.setUTCDate(1),ne.setUTCHours(0,0,0,0)},function(ne,Me){ne.setUTCMonth(ne.getUTCMonth()+Me)},function(ne,Me){return Me.getUTCMonth()-ne.getUTCMonth()+(Me.getUTCFullYear()-ne.getUTCFullYear())*12},function(ne){return ne.getUTCMonth()}),Ee=Ne.range,Je=a(function(ne){ne.setUTCMonth(0,1),ne.setUTCHours(0,0,0,0)},function(ne,Me){ne.setUTCFullYear(ne.getUTCFullYear()+Me)},function(ne,Me){return Me.getUTCFullYear()-ne.getUTCFullYear()},function(ne){return ne.getUTCFullYear()});Je.every=function(ne){return!isFinite(ne=Math.floor(ne))||!(ne>0)?null:a(function(Me){Me.setUTCFullYear(Math.floor(Me.getUTCFullYear()/ne)*ne),Me.setUTCMonth(0,1),Me.setUTCHours(0,0,0,0)},function(Me,Ce){Me.setUTCFullYear(Me.getUTCFullYear()+Ce*ne)})};var We=Je.range;e.timeDay=_,e.timeDays=w,e.timeFriday=D,e.timeFridays=X,e.timeHour=g,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=A,e.timeMondays=N,e.timeMonth=I,e.timeMonths=V,e.timeSaturday=R,e.timeSaturdays=B,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=z,e.timeThursday=q,e.timeThursdays=J,e.timeTuesday=S,e.timeTuesdays=H,e.timeWednesday=k,e.timeWednesdays=O,e.timeWeek=b,e.timeWeeks=z,e.timeYear=K,e.timeYears=Q,e.utcDay=j,e.utcDays=_e,e.utcFriday=U,e.utcFridays=Ie,e.utcHour=pe,e.utcHours=ge,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ie,e.utcMinutes=me,e.utcMonday=ve,e.utcMondays=ye,e.utcMonth=Ne,e.utcMonths=Ee,e.utcSaturday=de,e.utcSaturdays=Be,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=Se,e.utcSundays=be,e.utcThursday=re,e.utcThursdays=Pe,e.utcTuesday=Ae,e.utcTuesdays=Fe,e.utcWednesday=Y,e.utcWednesdays=Re,e.utcWeek=Se,e.utcWeeks=be,e.utcYear=Je,e.utcYears=We,Object.defineProperty(e,"__esModule",{value:!0})})});var os=Z((lv,fb)=>{(function(e,r){typeof lv=="object"&&typeof fb!="undefined"?r(lv,O1()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(lv,function(e,r){"use strict";function t(ae){if(0<=ae.y&&ae.y<100){var oe=new Date(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L);return oe.setFullYear(ae.y),oe}return new Date(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L)}function a(ae){if(0<=ae.y&&ae.y<100){var oe=new Date(Date.UTC(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L));return oe.setUTCFullYear(ae.y),oe}return new Date(Date.UTC(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L))}function n(ae,oe,qe){return{y:ae,m:oe,d:qe,H:0,M:0,S:0,L:0}}function i(ae){var oe=ae.dateTime,qe=ae.date,ke=ae.time,ir=ae.periods,vr=ae.days,sr=ae.shortDays,Mr=ae.months,Ur=ae.shortMonths,$r=h(ir),Vr=d(ir),St=h(vr),ea=d(vr),ka=h(sr),ra=d(sr),pn=h(Mr),Ia=d(Mr),ta=h(Ur),Ha=d(Ur),yr={a:Ul,A:Gl,b:rl,B:qc,c:null,d:I,e:I,f:me,H:V,I:K,j:Q,L:ie,m:pe,M:ge,p:Dc,q:ku,Q:Le,s:Ye,S:j,u:_e,U:se,V:Se,w:ve,W:Ae,x:null,X:null,y:Y,Y:re,Z:U,"%":De},lt={a:Cu,A:Su,b:Sa,B:Ec,c:null,d:de,e:de,f:Pe,H:be,I:ye,j:Fe,L:Re,m:Ie,M:Be,p:$o,q:jo,Q:Le,s:Ye,S:Ne,u:Ee,U:Je,V:We,w:ne,W:Me,x:null,X:null,y:Ce,Y:cr,Z:tr,"%":De},Wr={a:Ca,A:aa,b:In,B:Hn,c:Zt,d:q,e:q,f:O,H:R,I:R,j:D,L:H,m:k,M:z,p:yt,q:S,Q:X,s:B,S:N,u:g,U:y,V:_,w:m,W:w,x:at,X:sa,y:b,Y:T,Z:A,"%":J};yr.x=mt(qe,yr),yr.X=mt(ke,yr),yr.c=mt(oe,yr),lt.x=mt(qe,lt),lt.X=mt(ke,lt),lt.c=mt(oe,lt);function mt(mr,Zr){return function(jr){var nr=[],ua=-1,st=0,fa=mr.length,Rr,On,Vl;for(jr instanceof Date||(jr=new Date(+jr));++ua<fa;)mr.charCodeAt(ua)===37&&(nr.push(mr.slice(st,ua)),(On=l[Rr=mr.charAt(++ua)])!=null?Rr=mr.charAt(++ua):On=Rr==="e"?" ":"0",(Vl=Zr[Rr])&&(Rr=Vl(jr,On)),nr.push(Rr),st=ua+1);return nr.push(mr.slice(st,ua)),nr.join("")}}function Tt(mr,Zr){return function(jr){var nr=n(1900,void 0,1),ua=ot(nr,mr,jr+="",0),st,fa;if(ua!=jr.length)return null;if("Q"in nr)return new Date(nr.Q);if("s"in nr)return new Date(nr.s*1e3+("L"in nr?nr.L:0));if(Zr&&!("Z"in nr)&&(nr.Z=0),"p"in nr&&(nr.H=nr.H%12+nr.p*12),nr.m===void 0&&(nr.m="q"in nr?nr.q:0),"V"in nr){if(nr.V<1||nr.V>53)return null;"w"in nr||(nr.w=1),"Z"in nr?(st=a(n(nr.y,0,1)),fa=st.getUTCDay(),st=fa>4||fa===0?r.utcMonday.ceil(st):r.utcMonday(st),st=r.utcDay.offset(st,(nr.V-1)*7),nr.y=st.getUTCFullYear(),nr.m=st.getUTCMonth(),nr.d=st.getUTCDate()+(nr.w+6)%7):(st=t(n(nr.y,0,1)),fa=st.getDay(),st=fa>4||fa===0?r.timeMonday.ceil(st):r.timeMonday(st),st=r.timeDay.offset(st,(nr.V-1)*7),nr.y=st.getFullYear(),nr.m=st.getMonth(),nr.d=st.getDate()+(nr.w+6)%7)}else("W"in nr||"U"in nr)&&("w"in nr||(nr.w="u"in nr?nr.u%7:"W"in nr?1:0),fa="Z"in nr?a(n(nr.y,0,1)).getUTCDay():t(n(nr.y,0,1)).getDay(),nr.m=0,nr.d="W"in nr?(nr.w+6)%7+nr.W*7-(fa+5)%7:nr.w+nr.U*7-(fa+6)%7);return"Z"in nr?(nr.H+=nr.Z/100|0,nr.M+=nr.Z%100,a(nr)):t(nr)}}function ot(mr,Zr,jr,nr){for(var ua=0,st=Zr.length,fa=jr.length,Rr,On;ua<st;){if(nr>=fa)return-1;if(Rr=Zr.charCodeAt(ua++),Rr===37){if(Rr=Zr.charAt(ua++),On=Wr[Rr in l?Zr.charAt(ua++):Rr],!On||(nr=On(mr,jr,nr))<0)return-1}else if(Rr!=jr.charCodeAt(nr++))return-1}return nr}function yt(mr,Zr,jr){var nr=$r.exec(Zr.slice(jr));return nr?(mr.p=Vr[nr[0].toLowerCase()],jr+nr[0].length):-1}function Ca(mr,Zr,jr){var nr=ka.exec(Zr.slice(jr));return nr?(mr.w=ra[nr[0].toLowerCase()],jr+nr[0].length):-1}function aa(mr,Zr,jr){var nr=St.exec(Zr.slice(jr));return nr?(mr.w=ea[nr[0].toLowerCase()],jr+nr[0].length):-1}function In(mr,Zr,jr){var nr=ta.exec(Zr.slice(jr));return nr?(mr.m=Ha[nr[0].toLowerCase()],jr+nr[0].length):-1}function Hn(mr,Zr,jr){var nr=pn.exec(Zr.slice(jr));return nr?(mr.m=Ia[nr[0].toLowerCase()],jr+nr[0].length):-1}function Zt(mr,Zr,jr){return ot(mr,oe,Zr,jr)}function at(mr,Zr,jr){return ot(mr,qe,Zr,jr)}function sa(mr,Zr,jr){return ot(mr,ke,Zr,jr)}function Ul(mr){return sr[mr.getDay()]}function Gl(mr){return vr[mr.getDay()]}function rl(mr){return Ur[mr.getMonth()]}function qc(mr){return Mr[mr.getMonth()]}function Dc(mr){return ir[+(mr.getHours()>=12)]}function ku(mr){return 1+~~(mr.getMonth()/3)}function Cu(mr){return sr[mr.getUTCDay()]}function Su(mr){return vr[mr.getUTCDay()]}function Sa(mr){return Ur[mr.getUTCMonth()]}function Ec(mr){return Mr[mr.getUTCMonth()]}function $o(mr){return ir[+(mr.getUTCHours()>=12)]}function jo(mr){return 1+~~(mr.getUTCMonth()/3)}return{format:function(mr){var Zr=mt(mr+="",yr);return Zr.toString=function(){return mr},Zr},parse:function(mr){var Zr=Tt(mr+="",!1);return Zr.toString=function(){return mr},Zr},utcFormat:function(mr){var Zr=mt(mr+="",lt);return Zr.toString=function(){return mr},Zr},utcParse:function(mr){var Zr=Tt(mr+="",!0);return Zr.toString=function(){return mr},Zr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ae,oe,qe){var ke=ae<0?"-":"",ir=(ke?-ae:ae)+"",vr=ir.length;return ke+(vr<qe?new Array(qe-vr+1).join(oe)+ir:ir)}function v(ae){return ae.replace(u,"\\$&")}function h(ae){return new RegExp("^(?:"+ae.map(v).join("|")+")","i")}function d(ae){for(var oe={},qe=-1,ke=ae.length;++qe<ke;)oe[ae[qe].toLowerCase()]=qe;return oe}function m(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+1));return ke?(ae.w=+ke[0],qe+ke[0].length):-1}function g(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+1));return ke?(ae.u=+ke[0],qe+ke[0].length):-1}function y(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+2));return ke?(ae.U=+ke[0],qe+ke[0].length):-1}function _(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+2));return ke?(ae.V=+ke[0],qe+ke[0].length):-1}function w(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+2));return ke?(ae.W=+ke[0],qe+ke[0].length):-1}function T(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+4));return ke?(ae.y=+ke[0],qe+ke[0].length):-1}function b(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+2));return ke?(ae.y=+ke[0]+(+ke[0]>68?1900:2e3),qe+ke[0].length):-1}function A(ae,oe,qe){var ke=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(oe.slice(qe,qe+6));return ke?(ae.Z=ke[1]?0:-(ke[2]+(ke[3]||"00")),qe+ke[0].length):-1}function S(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+1));return ke?(ae.q=ke[0]*3-3,qe+ke[0].length):-1}function k(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+2));return ke?(ae.m=ke[0]-1,qe+ke[0].length):-1}function q(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+2));return ke?(ae.d=+ke[0],qe+ke[0].length):-1}function D(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+3));return ke?(ae.m=0,ae.d=+ke[0],qe+ke[0].length):-1}function R(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+2));return ke?(ae.H=+ke[0],qe+ke[0].length):-1}function z(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+2));return ke?(ae.M=+ke[0],qe+ke[0].length):-1}function N(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+2));return ke?(ae.S=+ke[0],qe+ke[0].length):-1}function H(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+3));return ke?(ae.L=+ke[0],qe+ke[0].length):-1}function O(ae,oe,qe){var ke=o.exec(oe.slice(qe,qe+6));return ke?(ae.L=Math.floor(ke[0]/1e3),qe+ke[0].length):-1}function J(ae,oe,qe){var ke=s.exec(oe.slice(qe,qe+1));return ke?qe+ke[0].length:-1}function X(ae,oe,qe){var ke=o.exec(oe.slice(qe));return ke?(ae.Q=+ke[0],qe+ke[0].length):-1}function B(ae,oe,qe){var ke=o.exec(oe.slice(qe));return ke?(ae.s=+ke[0],qe+ke[0].length):-1}function I(ae,oe){return f(ae.getDate(),oe,2)}function V(ae,oe){return f(ae.getHours(),oe,2)}function K(ae,oe){return f(ae.getHours()%12||12,oe,2)}function Q(ae,oe){return f(1+r.timeDay.count(r.timeYear(ae),ae),oe,3)}function ie(ae,oe){return f(ae.getMilliseconds(),oe,3)}function me(ae,oe){return ie(ae,oe)+"000"}function pe(ae,oe){return f(ae.getMonth()+1,oe,2)}function ge(ae,oe){return f(ae.getMinutes(),oe,2)}function j(ae,oe){return f(ae.getSeconds(),oe,2)}function _e(ae){var oe=ae.getDay();return oe===0?7:oe}function se(ae,oe){return f(r.timeSunday.count(r.timeYear(ae)-1,ae),oe,2)}function Se(ae,oe){var qe=ae.getDay();return ae=qe>=4||qe===0?r.timeThursday(ae):r.timeThursday.ceil(ae),f(r.timeThursday.count(r.timeYear(ae),ae)+(r.timeYear(ae).getDay()===4),oe,2)}function ve(ae){return ae.getDay()}function Ae(ae,oe){return f(r.timeMonday.count(r.timeYear(ae)-1,ae),oe,2)}function Y(ae,oe){return f(ae.getFullYear()%100,oe,2)}function re(ae,oe){return f(ae.getFullYear()%1e4,oe,4)}function U(ae){var oe=ae.getTimezoneOffset();return(oe>0?"-":(oe*=-1,"+"))+f(oe/60|0,"0",2)+f(oe%60,"0",2)}function de(ae,oe){return f(ae.getUTCDate(),oe,2)}function be(ae,oe){return f(ae.getUTCHours(),oe,2)}function ye(ae,oe){return f(ae.getUTCHours()%12||12,oe,2)}function Fe(ae,oe){return f(1+r.utcDay.count(r.utcYear(ae),ae),oe,3)}function Re(ae,oe){return f(ae.getUTCMilliseconds(),oe,3)}function Pe(ae,oe){return Re(ae,oe)+"000"}function Ie(ae,oe){return f(ae.getUTCMonth()+1,oe,2)}function Be(ae,oe){return f(ae.getUTCMinutes(),oe,2)}function Ne(ae,oe){return f(ae.getUTCSeconds(),oe,2)}function Ee(ae){var oe=ae.getUTCDay();return oe===0?7:oe}function Je(ae,oe){return f(r.utcSunday.count(r.utcYear(ae)-1,ae),oe,2)}function We(ae,oe){var qe=ae.getUTCDay();return ae=qe>=4||qe===0?r.utcThursday(ae):r.utcThursday.ceil(ae),f(r.utcThursday.count(r.utcYear(ae),ae)+(r.utcYear(ae).getUTCDay()===4),oe,2)}function ne(ae){return ae.getUTCDay()}function Me(ae,oe){return f(r.utcMonday.count(r.utcYear(ae)-1,ae),oe,2)}function Ce(ae,oe){return f(ae.getUTCFullYear()%100,oe,2)}function cr(ae,oe){return f(ae.getUTCFullYear()%1e4,oe,4)}function tr(){return"+0000"}function De(){return"%"}function Le(ae){return+ae}function Ye(ae){return Math.floor(+ae/1e3)}var Ze;Ue({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",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 Ue(ae){return Ze=i(ae),e.timeFormat=Ze.format,e.timeParse=Ze.parse,e.utcFormat=Ze.utcFormat,e.utcParse=Ze.utcParse,Ze}var Oe="%Y-%m-%dT%H:%M:%S.%LZ";function Ke(ae){return ae.toISOString()}var fr=Date.prototype.toISOString?Ke:e.utcFormat(Oe);function lr(ae){var oe=new Date(ae);return isNaN(oe)?null:oe}var ze=+new Date("2000-01-01T00:00:00.000Z")?lr:e.utcParse(Oe);e.isoFormat=fr,e.isoParse=ze,e.timeFormatDefaultLocale=Ue,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var B1=Z((ov,cb)=>{(function(e,r){typeof ov=="object"&&typeof cb!="undefined"?r(ov):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(ov,function(e){"use strict";function r(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function t(k,q){if((D=(k=q?k.toExponential(q-1):k.toExponential()).indexOf("e"))<0)return null;var D,R=k.slice(0,D);return[R.length>1?R[0]+R.slice(2):R,+k.slice(D+1)]}function a(k){return k=t(Math.abs(k)),k?k[1]:NaN}function n(k,q){return function(D,R){for(var z=D.length,N=[],H=0,O=k[0],J=0;z>0&&O>0&&(J+O+1>R&&(O=Math.max(1,R-J)),N.push(D.substring(z-=O,z+O)),!((J+=O+1)>R));)O=k[H=(H+1)%k.length];return N.reverse().join(q)}}function i(k){return function(q){return q.replace(/[0-9]/g,function(D){return k[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(k){if(!(q=l.exec(k)))throw new Error("invalid format: "+k);var q;return new s({fill:q[1],align:q[2],sign:q[3],symbol:q[4],zero:q[5],width:q[6],comma:q[7],precision:q[8]&&q[8].slice(1),trim:q[9],type:q[10]})}o.prototype=s.prototype;function s(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(k){e:for(var q=k.length,D=1,R=-1,z;D<q;++D)switch(k[D]){case".":R=z=D;break;case"0":R===0&&(R=D),z=D;break;default:if(!+k[D])break e;R>0&&(R=0);break}return R>0?k.slice(0,R)+k.slice(z+1):k}var f;function v(k,q){var D=t(k,q);if(!D)return k+"";var R=D[0],z=D[1],N=z-(f=Math.max(-8,Math.min(8,Math.floor(z/3)))*3)+1,H=R.length;return N===H?R:N>H?R+new Array(N-H+1).join("0"):N>0?R.slice(0,N)+"."+R.slice(N):"0."+new Array(1-N).join("0")+t(k,Math.max(0,q+N-1))[0]}function h(k,q){var D=t(k,q);if(!D)return k+"";var R=D[0],z=D[1];return z<0?"0."+new Array(-z).join("0")+R:R.length>z+1?R.slice(0,z+1)+"."+R.slice(z+1):R+new Array(z-R.length+2).join("0")}var d={"%":function(k,q){return(k*100).toFixed(q)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:r,e:function(k,q){return k.toExponential(q)},f:function(k,q){return k.toFixed(q)},g:function(k,q){return k.toPrecision(q)},o:function(k){return Math.round(k).toString(8)},p:function(k,q){return h(k*100,q)},r:h,s:v,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function m(k){return k}var g=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function _(k){var q=k.grouping===void 0||k.thousands===void 0?m:n(g.call(k.grouping,Number),k.thousands+""),D=k.currency===void 0?"":k.currency[0]+"",R=k.currency===void 0?"":k.currency[1]+"",z=k.decimal===void 0?".":k.decimal+"",N=k.numerals===void 0?m:i(g.call(k.numerals,String)),H=k.percent===void 0?"%":k.percent+"",O=k.minus===void 0?"-":k.minus+"",J=k.nan===void 0?"NaN":k.nan+"";function X(I){I=o(I);var V=I.fill,K=I.align,Q=I.sign,ie=I.symbol,me=I.zero,pe=I.width,ge=I.comma,j=I.precision,_e=I.trim,se=I.type;se==="n"?(ge=!0,se="g"):d[se]||(j===void 0&&(j=12),_e=!0,se="g"),(me||V==="0"&&K==="=")&&(me=!0,V="0",K="=");var Se=ie==="$"?D:ie==="#"&&/[boxX]/.test(se)?"0"+se.toLowerCase():"",ve=ie==="$"?R:/[%p]/.test(se)?H:"",Ae=d[se],Y=/[defgprs%]/.test(se);j=j===void 0?6:/[gprs]/.test(se)?Math.max(1,Math.min(21,j)):Math.max(0,Math.min(20,j));function re(U){var de=Se,be=ve,ye,Fe,Re;if(se==="c")be=Ae(U)+be,U="";else{U=+U;var Pe=U<0||1/U<0;if(U=isNaN(U)?J:Ae(Math.abs(U),j),_e&&(U=u(U)),Pe&&+U==0&&Q!=="+"&&(Pe=!1),de=(Pe?Q==="("?Q:O:Q==="-"||Q==="("?"":Q)+de,be=(se==="s"?y[8+f/3]:"")+be+(Pe&&Q==="("?")":""),Y){for(ye=-1,Fe=U.length;++ye<Fe;)if(Re=U.charCodeAt(ye),48>Re||Re>57){be=(Re===46?z+U.slice(ye+1):U.slice(ye))+be,U=U.slice(0,ye);break}}}ge&&!me&&(U=q(U,1/0));var Ie=de.length+U.length+be.length,Be=Ie<pe?new Array(pe-Ie+1).join(V):"";switch(ge&&me&&(U=q(Be+U,Be.length?pe-be.length:1/0),Be=""),K){case"<":U=de+U+be+Be;break;case"=":U=de+Be+U+be;break;case"^":U=Be.slice(0,Ie=Be.length>>1)+de+U+be+Be.slice(Ie);break;default:U=Be+de+U+be;break}return N(U)}return re.toString=function(){return I+""},re}function B(I,V){var K=X((I=o(I),I.type="f",I)),Q=Math.max(-8,Math.min(8,Math.floor(a(V)/3)))*3,ie=Math.pow(10,-Q),me=y[8+Q/3];return function(pe){return K(ie*pe)+me}}return{format:X,formatPrefix:B}}var w;T({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function T(k){return w=_(k),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(k){return Math.max(0,-a(Math.abs(k)))}function A(k,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(k)))}function S(k,q){return k=Math.abs(k),q=Math.abs(q)-k,Math.max(0,a(q)-a(k))+1}e.FormatSpecifier=s,e.formatDefaultLocale=T,e.formatLocale=_,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=A,e.precisionRound=S,Object.defineProperty(e,"__esModule",{value:!0})})});var hb=Z((fie,vb)=>{"use strict";vb.exports=function(e){for(var r=e.length,t,a=0;a<r;a++)if(t=e.charCodeAt(a),(t<9||t>13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Hr=Z((cie,db)=>{"use strict";var iI=hb();db.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&iI(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Bt=Z((vie,pb)=>{"use strict";pb.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var Y1=Z((sv,mb)=>{(function(e,r){typeof sv=="object"&&typeof mb!="undefined"?r(sv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(sv,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a<r.length;a++)t[r.charCodeAt(a)]=a;var n=function(l){var o=new Uint8Array(l),s,u=o.length,f="";for(s=0;s<u;s+=3)f+=r[o[s]>>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,v,h,d,m;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var g=new ArrayBuffer(o),y=new Uint8Array(g);for(u=0;u<s;u+=4)v=t[l.charCodeAt(u)],h=t[l.charCodeAt(u+1)],d=t[l.charCodeAt(u+2)],m=t[l.charCodeAt(u+3)],y[f++]=v<<2|h>>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|m&63;return g};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var nl=Z((hie,yb)=>{"use strict";yb.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var nn=Z(Un=>{"use strict";var lI=Y1().decode,oI=nl(),U1=Array.isArray,sI=ArrayBuffer,uI=DataView;function gb(e){return sI.isView(e)&&!(e instanceof uI)}Un.isTypedArray=gb;function uv(e){return U1(e)||gb(e)}Un.isArrayOrTypedArray=uv;function fI(e){return!uv(e[0])}Un.isArray1D=fI;Un.ensureArray=function(e,r){return U1(e)||(e=[]),e.length=r,e};var na={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};na.uint8c=na.u1c;na.uint8=na.u1;na.int8=na.i1;na.uint16=na.u2;na.int16=na.i2;na.uint32=na.u4;na.int32=na.i4;na.float32=na.f4;na.float64=na.f8;function G1(e){return e.constructor===ArrayBuffer}Un.isArrayBuffer=G1;Un.decodeTypedArraySpec=function(e){var r=[],t=cI(e),a=t.dtype,n=na[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;G1(l)||(l=lI(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,v=+o[0],h=i*v,d=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f<u;f++)r[f]=new n(l,d,v),d+=h;else if(s===3){u=+o[1];for(var m=+o[2],g=0;g<m;g++)for(r[g]=[],f=0;f<u;f++)r[g][f]=new n(l,d,v),d+=h}else throw new Error("ndim: "+s+'is not supported with the shape:"'+t.shape+'"');return r.bdata=t.bdata,r.dtype=t.dtype,r.shape=o.reverse().join(","),e._inputArray=r,r};Un.isTypedArraySpec=function(e){return oI(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||G1(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function cI(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}Un.concat=function(){var e=[],r=!0,t=0,a,n,i,l,o,s,u,f;for(i=0;i<arguments.length;i++)l=arguments[i],s=l.length,s&&(n?e.push(l):(n=l,o=s),U1(l)?a=!1:(r=!1,t?a!==l.constructor&&(a=!1):a=l.constructor),t+=s);if(!t)return[];if(!e.length)return n;if(r)return n.concat.apply(n,e);if(a){for(u=new a(t),u.set(n),i=0;i<e.length;i++)l=e[i],u.set(l,o),o+=l.length;return u}for(u=new Array(t),f=0;f<n.length;f++)u[f]=n[f];for(i=0;i<e.length;i++){for(l=e[i],f=0;f<l.length;f++)u[o+f]=l[f];o+=f}return u};Un.maxRowLength=function(e){return bb(e,Math.max,0)};Un.minRowLength=function(e){return bb(e,Math.min,1/0)};function bb(e,r,t){if(uv(e))if(uv(e[0])){for(var a=t,n=0;n<e.length;n++)a=r(a,e[n].length);return a}else return e.length;return 0}});var fv=Z((pie,Mb)=>{"use strict";var xb=Hr(),W1=nn().isArrayOrTypedArray;Mb.exports=function(r,t){if(xb(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o<a.length;o++)if(String(a[o]).slice(0,2)==="__")throw"bad property string";for(o=0;o<a.length;){if(n=String(a[o]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),n){if(n[1])a[o]=n[1];else if(o===0)a.splice(0,1);else throw"bad property string";for(i=n[2].substr(1,n[2].length-2).split("]["),l=0;l<i.length;l++)o++,a.splice(o,0,Number(i[l]))}o++}return typeof r!="object"?pI(r,t,a):{set:wb(r,a,t),get:_b(r,a),astr:t,parts:a,obj:r}};function _b(e,r){return function(t){var a=e,n,i,l,o,s;for(o=0;o<r.length-1;o++){if(n=r[o],n===-1){for(i=!0,l=[],s=0;s<a.length;s++)l[s]=_b(a[s],r.slice(o+1))(t),l[s]!==l[0]&&(i=!1);return i?l[0]:l}if(typeof n=="number"&&!W1(a)||(a=a[n],typeof a!="object"||a===null))return}if(!(typeof a!="object"||a===null)&&(l=a[r[o]],!(!t&&l===null)))return l}}var vI=/(^|\.)args\[/;function V1(e,r){return e===void 0||e===null&&!r.match(vI)}function wb(e,r,t){return function(a){var n=e,i="",l=[[e,i]],o=V1(a,t),s,u;for(u=0;u<r.length-1;u++){if(s=r[u],typeof s=="number"&&!W1(n))throw"array index but container is not an array";if(s===-1){if(o=!dI(n,r.slice(u+1),a,t),o)break;return}if(!Tb(n,s,r[u+1],o))break;if(n=n[s],typeof n!="object"||n===null)throw"container is not an object";i=hI(i,s),l.push([n,i])}if(o){if(u===r.length-1&&(delete n[r[u]],Array.isArray(n)&&+r[u]===n.length-1))for(;n.length&&n[n.length-1]===void 0;)n.pop()}else n[r[u]]=a}}function hI(e,r){var t=r;return xb(r)?t="["+r+"]":e&&(t="."+r),e+t}function dI(e,r,t,a){var n=W1(t),i=!0,l=t,o=a.replace("-1",0),s=n?!1:V1(t,o),u=r[0],f;for(f=0;f<e.length;f++)o=a.replace("-1",f),n&&(l=t[f%t.length],s=V1(l,o)),s&&(i=!1),Tb(e,f,u,s)&&wb(e[f],r,a.replace("-1",f))(l);return i}function Tb(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function pI(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var Sb=Z((mie,Cb)=>{"use strict";var ss=fv(),mI=/^\w*$/,yI=0,Ab=1,cv=2,kb=3,Ql=4;Cb.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=ss(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i<l.length;i++)u[l[i][a]]=i;var f=mI.test(n),v={set:function(h,d){var m=d===null?Ql:yI;if(!l){if(!o||m===Ql)return;l=[],o.set(l)}var g=u[h];if(g===void 0){if(m===Ql)return;m=m|kb,g=l.length,u[h]=g}else d!==(f?l[g][n]:ss(l[g],n).get())&&(m=m|cv);var y=l[g]=l[g]||{};return y[a]=h,f?y[n]=d:ss(y,n).set(d),d!==null&&(m=m&~Ql),s[g]=s[g]|m,v},get:function(h){if(l){var d=u[h];if(d!==void 0)return f?l[d][n]:ss(l[d],n).get()}},rename:function(h,d){var m=u[h];return m===void 0||(s[m]=s[m]|Ab,u[d]=m,delete u[h],l[m][a]=d),v},remove:function(h){var d=u[h];if(d===void 0)return v;var m=l[d];if(Object.keys(m).length>2)return s[d]=s[d]|cv,v.set(h,null);if(f){for(i=d;i<l.length;i++)s[i]=s[i]|kb;for(i=d;i<l.length;i++)u[l[i][a]]--;l.splice(d,1),delete u[h]}else ss(m,n).set(null),s[d]=s[d]|cv|Ql;return v},constructUpdate:function(){for(var h,d,m={},g=Object.keys(s),y=0;y<g.length;y++)d=g[y],h=t+"["+d+"]",l[d]?(s[d]&Ab&&(m[h+"."+a]=l[d][a]),s[d]&cv&&(f?m[h+"."+n]=s[d]&Ql?null:l[d][n]:m[h+"."+n]=s[d]&Ql?null:ss(l[d],n).get())):m[h]=null;return m}};return v}});var qb=Z((yie,Lb)=>{"use strict";var gI=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,bI=/^[^\.\[\]]+$/;Lb.exports=function(e,r){for(;r;){var t=e.match(gI);if(t)e=t[1];else if(e.match(bI))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var vv=Z((gie,Db)=>{"use strict";var xI=Hr();Db.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return xI(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var Rb=Z((bie,Pb)=>{"use strict";var Eb=nn().isArrayOrTypedArray,Iu=nl();Pb.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(Eb(n)&&Eb(i)&&Iu(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o<l;o++)i[o]!==n[o]&&Iu(n[o])&&Iu(i[o])&&e(i[o],n[o])}else Iu(n)&&Iu(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var us=Z((xie,zb)=>{"use strict";function _I(e,r){var t=e%r;return t<0?t+r:t}function wI(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}zb.exports={mod:_I,modHalf:wI}});var bn=Z((_ie,hv)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(Y,re){if(Y=Y||"",re=re||{},Y instanceof s)return Y;if(!(this instanceof s))return new s(Y,re);var U=u(Y);this._originalInput=Y,this._r=U.r,this._g=U.g,this._b=U.b,this._a=U.a,this._roundA=n(100*this._a)/100,this._format=re.format||U.format,this._gradientType=re.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=U.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Y=this.toRgb();return(Y.r*299+Y.g*587+Y.b*114)/1e3},getLuminance:function(){var Y=this.toRgb(),re,U,de,be,ye,Fe;return re=Y.r/255,U=Y.g/255,de=Y.b/255,re<=.03928?be=re/12.92:be=e.pow((re+.055)/1.055,2.4),U<=.03928?ye=U/12.92:ye=e.pow((U+.055)/1.055,2.4),de<=.03928?Fe=de/12.92:Fe=e.pow((de+.055)/1.055,2.4),.2126*be+.7152*ye+.0722*Fe},setAlpha:function(Y){return this._a=I(Y),this._roundA=n(100*this._a)/100,this},toHsv:function(){var Y=d(this._r,this._g,this._b);return{h:Y.h*360,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=d(this._r,this._g,this._b),re=n(Y.h*360),U=n(Y.s*100),de=n(Y.v*100);return this._a==1?"hsv("+re+", "+U+"%, "+de+"%)":"hsva("+re+", "+U+"%, "+de+"%, "+this._roundA+")"},toHsl:function(){var Y=v(this._r,this._g,this._b);return{h:Y.h*360,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=v(this._r,this._g,this._b),re=n(Y.h*360),U=n(Y.s*100),de=n(Y.l*100);return this._a==1?"hsl("+re+", "+U+"%, "+de+"%)":"hsla("+re+", "+U+"%, "+de+"%, "+this._roundA+")"},toHex:function(Y){return g(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return y(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(V(this._r,255)*100)+"%",g:n(V(this._g,255)*100)+"%",b:n(V(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(V(this._r,255)*100)+"%, "+n(V(this._g,255)*100)+"%, "+n(V(this._b,255)*100)+"%)":"rgba("+n(V(this._r,255)*100)+"%, "+n(V(this._g,255)*100)+"%, "+n(V(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:X[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(Y){var re="#"+_(this._r,this._g,this._b,this._a),U=re,de=this._gradientType?"GradientType = 1, ":"";if(Y){var be=s(Y);U="#"+_(be._r,be._g,be._b,be._a)}return"progid:DXImageTransform.Microsoft.gradient("+de+"startColorstr="+re+",endColorstr="+U+")"},toString:function(Y){var re=!!Y;Y=Y||this._format;var U=!1,de=this._a<1&&this._a>=0,be=!re&&de&&(Y==="hex"||Y==="hex6"||Y==="hex3"||Y==="hex4"||Y==="hex8"||Y==="name");return be?Y==="name"&&this._a===0?this.toName():this.toRgbString():(Y==="rgb"&&(U=this.toRgbString()),Y==="prgb"&&(U=this.toPercentageRgbString()),(Y==="hex"||Y==="hex6")&&(U=this.toHexString()),Y==="hex3"&&(U=this.toHexString(!0)),Y==="hex4"&&(U=this.toHex8String(!0)),Y==="hex8"&&(U=this.toHex8String()),Y==="name"&&(U=this.toName()),Y==="hsl"&&(U=this.toHslString()),Y==="hsv"&&(U=this.toHsvString()),U||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Y,re){var U=Y.apply(null,[this].concat([].slice.call(re)));return this._r=U._r,this._g=U._g,this._b=U._b,this.setAlpha(U._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(T,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(q,arguments)},_applyCombination:function(Y,re){return Y.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(H,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(N,arguments)},triad:function(){return this._applyCombination(R,arguments)},tetrad:function(){return this._applyCombination(z,arguments)}},s.fromRatio=function(Y,re){if(typeof Y=="object"){var U={};for(var de in Y)Y.hasOwnProperty(de)&&(de==="a"?U[de]=Y[de]:U[de]=ge(Y[de]));Y=U}return s(Y,re)};function u(Y){var re={r:0,g:0,b:0},U=1,de=null,be=null,ye=null,Fe=!1,Re=!1;return typeof Y=="string"&&(Y=ve(Y)),typeof Y=="object"&&(Se(Y.r)&&Se(Y.g)&&Se(Y.b)?(re=f(Y.r,Y.g,Y.b),Fe=!0,Re=String(Y.r).substr(-1)==="%"?"prgb":"rgb"):Se(Y.h)&&Se(Y.s)&&Se(Y.v)?(de=ge(Y.s),be=ge(Y.v),re=m(Y.h,de,be),Fe=!0,Re="hsv"):Se(Y.h)&&Se(Y.s)&&Se(Y.l)&&(de=ge(Y.s),ye=ge(Y.l),re=h(Y.h,de,ye),Fe=!0,Re="hsl"),Y.hasOwnProperty("a")&&(U=Y.a)),U=I(U),{ok:Fe,format:Y.format||Re,r:i(255,l(re.r,0)),g:i(255,l(re.g,0)),b:i(255,l(re.b,0)),a:U}}function f(Y,re,U){return{r:V(Y,255)*255,g:V(re,255)*255,b:V(U,255)*255}}function v(Y,re,U){Y=V(Y,255),re=V(re,255),U=V(U,255);var de=l(Y,re,U),be=i(Y,re,U),ye,Fe,Re=(de+be)/2;if(de==be)ye=Fe=0;else{var Pe=de-be;switch(Fe=Re>.5?Pe/(2-de-be):Pe/(de+be),de){case Y:ye=(re-U)/Pe+(re<U?6:0);break;case re:ye=(U-Y)/Pe+2;break;case U:ye=(Y-re)/Pe+4;break}ye/=6}return{h:ye,s:Fe,l:Re}}function h(Y,re,U){var de,be,ye;Y=V(Y,360),re=V(re,100),U=V(U,100);function Fe(Ie,Be,Ne){return Ne<0&&(Ne+=1),Ne>1&&(Ne-=1),Ne<1/6?Ie+(Be-Ie)*6*Ne:Ne<1/2?Be:Ne<2/3?Ie+(Be-Ie)*(2/3-Ne)*6:Ie}if(re===0)de=be=ye=U;else{var Re=U<.5?U*(1+re):U+re-U*re,Pe=2*U-Re;de=Fe(Pe,Re,Y+1/3),be=Fe(Pe,Re,Y),ye=Fe(Pe,Re,Y-1/3)}return{r:de*255,g:be*255,b:ye*255}}function d(Y,re,U){Y=V(Y,255),re=V(re,255),U=V(U,255);var de=l(Y,re,U),be=i(Y,re,U),ye,Fe,Re=de,Pe=de-be;if(Fe=de===0?0:Pe/de,de==be)ye=0;else{switch(de){case Y:ye=(re-U)/Pe+(re<U?6:0);break;case re:ye=(U-Y)/Pe+2;break;case U:ye=(Y-re)/Pe+4;break}ye/=6}return{h:ye,s:Fe,v:Re}}function m(Y,re,U){Y=V(Y,360)*6,re=V(re,100),U=V(U,100);var de=e.floor(Y),be=Y-de,ye=U*(1-re),Fe=U*(1-be*re),Re=U*(1-(1-be)*re),Pe=de%6,Ie=[U,Fe,ye,ye,Re,U][Pe],Be=[Re,U,U,Fe,ye,ye][Pe],Ne=[ye,ye,Re,U,U,Fe][Pe];return{r:Ie*255,g:Be*255,b:Ne*255}}function g(Y,re,U,de){var be=[pe(n(Y).toString(16)),pe(n(re).toString(16)),pe(n(U).toString(16))];return de&&be[0].charAt(0)==be[0].charAt(1)&&be[1].charAt(0)==be[1].charAt(1)&&be[2].charAt(0)==be[2].charAt(1)?be[0].charAt(0)+be[1].charAt(0)+be[2].charAt(0):be.join("")}function y(Y,re,U,de,be){var ye=[pe(n(Y).toString(16)),pe(n(re).toString(16)),pe(n(U).toString(16)),pe(j(de))];return be&&ye[0].charAt(0)==ye[0].charAt(1)&&ye[1].charAt(0)==ye[1].charAt(1)&&ye[2].charAt(0)==ye[2].charAt(1)&&ye[3].charAt(0)==ye[3].charAt(1)?ye[0].charAt(0)+ye[1].charAt(0)+ye[2].charAt(0)+ye[3].charAt(0):ye.join("")}function _(Y,re,U,de){var be=[pe(j(de)),pe(n(Y).toString(16)),pe(n(re).toString(16)),pe(n(U).toString(16))];return be.join("")}s.equals=function(Y,re){return!Y||!re?!1:s(Y).toRgbString()==s(re).toRgbString()},s.random=function(){return s.fromRatio({r:o(),g:o(),b:o()})};function w(Y,re){re=re===0?0:re||10;var U=s(Y).toHsl();return U.s-=re/100,U.s=K(U.s),s(U)}function T(Y,re){re=re===0?0:re||10;var U=s(Y).toHsl();return U.s+=re/100,U.s=K(U.s),s(U)}function b(Y){return s(Y).desaturate(100)}function A(Y,re){re=re===0?0:re||10;var U=s(Y).toHsl();return U.l+=re/100,U.l=K(U.l),s(U)}function S(Y,re){re=re===0?0:re||10;var U=s(Y).toRgb();return U.r=l(0,i(255,U.r-n(255*-(re/100)))),U.g=l(0,i(255,U.g-n(255*-(re/100)))),U.b=l(0,i(255,U.b-n(255*-(re/100)))),s(U)}function k(Y,re){re=re===0?0:re||10;var U=s(Y).toHsl();return U.l-=re/100,U.l=K(U.l),s(U)}function q(Y,re){var U=s(Y).toHsl(),de=(U.h+re)%360;return U.h=de<0?360+de:de,s(U)}function D(Y){var re=s(Y).toHsl();return re.h=(re.h+180)%360,s(re)}function R(Y){var re=s(Y).toHsl(),U=re.h;return[s(Y),s({h:(U+120)%360,s:re.s,l:re.l}),s({h:(U+240)%360,s:re.s,l:re.l})]}function z(Y){var re=s(Y).toHsl(),U=re.h;return[s(Y),s({h:(U+90)%360,s:re.s,l:re.l}),s({h:(U+180)%360,s:re.s,l:re.l}),s({h:(U+270)%360,s:re.s,l:re.l})]}function N(Y){var re=s(Y).toHsl(),U=re.h;return[s(Y),s({h:(U+72)%360,s:re.s,l:re.l}),s({h:(U+216)%360,s:re.s,l:re.l})]}function H(Y,re,U){re=re||6,U=U||30;var de=s(Y).toHsl(),be=360/U,ye=[s(Y)];for(de.h=(de.h-(be*re>>1)+720)%360;--re;)de.h=(de.h+be)%360,ye.push(s(de));return ye}function O(Y,re){re=re||6;for(var U=s(Y).toHsv(),de=U.h,be=U.s,ye=U.v,Fe=[],Re=1/re;re--;)Fe.push(s({h:de,s:be,v:ye})),ye=(ye+Re)%1;return Fe}s.mix=function(Y,re,U){U=U===0?0:U||50;var de=s(Y).toRgb(),be=s(re).toRgb(),ye=U/100,Fe={r:(be.r-de.r)*ye+de.r,g:(be.g-de.g)*ye+de.g,b:(be.b-de.b)*ye+de.b,a:(be.a-de.a)*ye+de.a};return s(Fe)},s.readability=function(Y,re){var U=s(Y),de=s(re);return(e.max(U.getLuminance(),de.getLuminance())+.05)/(e.min(U.getLuminance(),de.getLuminance())+.05)},s.isReadable=function(Y,re,U){var de=s.readability(Y,re),be,ye;switch(ye=!1,be=Ae(U),be.level+be.size){case"AAsmall":case"AAAlarge":ye=de>=4.5;break;case"AAlarge":ye=de>=3;break;case"AAAsmall":ye=de>=7;break}return ye},s.mostReadable=function(Y,re,U){var de=null,be=0,ye,Fe,Re,Pe;U=U||{},Fe=U.includeFallbackColors,Re=U.level,Pe=U.size;for(var Ie=0;Ie<re.length;Ie++)ye=s.readability(Y,re[Ie]),ye>be&&(be=ye,de=s(re[Ie]));return s.isReadable(Y,de,{level:Re,size:Pe})||!Fe?de:(U.includeFallbackColors=!1,s.mostReadable(Y,["#fff","#000"],U))};var J=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},X=s.hexNames=B(J);function B(Y){var re={};for(var U in Y)Y.hasOwnProperty(U)&&(re[Y[U]]=U);return re}function I(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function V(Y,re){ie(Y)&&(Y="100%");var U=me(Y);return Y=i(re,l(0,parseFloat(Y))),U&&(Y=parseInt(Y*re,10)/100),e.abs(Y-re)<1e-6?1:Y%re/parseFloat(re)}function K(Y){return i(1,l(0,Y))}function Q(Y){return parseInt(Y,16)}function ie(Y){return typeof Y=="string"&&Y.indexOf(".")!=-1&&parseFloat(Y)===1}function me(Y){return typeof Y=="string"&&Y.indexOf("%")!=-1}function pe(Y){return Y.length==1?"0"+Y:""+Y}function ge(Y){return Y<=1&&(Y=Y*100+"%"),Y}function j(Y){return e.round(parseFloat(Y)*255).toString(16)}function _e(Y){return Q(Y)/255}var se=function(){var Y="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",U="(?:"+re+")|(?:"+Y+")",de="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",be="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?";return{CSS_UNIT:new RegExp(U),rgb:new RegExp("rgb"+de),rgba:new RegExp("rgba"+be),hsl:new RegExp("hsl"+de),hsla:new RegExp("hsla"+be),hsv:new RegExp("hsv"+de),hsva:new RegExp("hsva"+be),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Se(Y){return!!se.CSS_UNIT.exec(Y)}function ve(Y){Y=Y.replace(r,"").replace(t,"").toLowerCase();var re=!1;if(J[Y])Y=J[Y],re=!0;else if(Y=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var U;return(U=se.rgb.exec(Y))?{r:U[1],g:U[2],b:U[3]}:(U=se.rgba.exec(Y))?{r:U[1],g:U[2],b:U[3],a:U[4]}:(U=se.hsl.exec(Y))?{h:U[1],s:U[2],l:U[3]}:(U=se.hsla.exec(Y))?{h:U[1],s:U[2],l:U[3],a:U[4]}:(U=se.hsv.exec(Y))?{h:U[1],s:U[2],v:U[3]}:(U=se.hsva.exec(Y))?{h:U[1],s:U[2],v:U[3],a:U[4]}:(U=se.hex8.exec(Y))?{r:Q(U[1]),g:Q(U[2]),b:Q(U[3]),a:_e(U[4]),format:re?"name":"hex8"}:(U=se.hex6.exec(Y))?{r:Q(U[1]),g:Q(U[2]),b:Q(U[3]),format:re?"name":"hex"}:(U=se.hex4.exec(Y))?{r:Q(U[1]+""+U[1]),g:Q(U[2]+""+U[2]),b:Q(U[3]+""+U[3]),a:_e(U[4]+""+U[4]),format:re?"name":"hex8"}:(U=se.hex3.exec(Y))?{r:Q(U[1]+""+U[1]),g:Q(U[2]+""+U[2]),b:Q(U[3]+""+U[3]),format:re?"name":"hex"}:!1}function Ae(Y){var re,U;return Y=Y||{level:"AA",size:"small"},re=(Y.level||"AA").toUpperCase(),U=(Y.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),U!=="small"&&U!=="large"&&(U="small"),{level:re,size:U}}typeof hv!="undefined"&&hv.exports?hv.exports=s:window.tinycolor=s})(Math)});var Yt=Z(Bu=>{"use strict";var Nb=nl(),Hu=Array.isArray;function TI(e,r){var t,a;for(t=0;t<e.length;t++){if(a=e[t],a!==null&&typeof a=="object")return!1;a!==void 0&&(r[t]=a)}return!0}Bu.extendFlat=function(){return Ou(arguments,!1,!1,!1)};Bu.extendDeep=function(){return Ou(arguments,!0,!1,!1)};Bu.extendDeepAll=function(){return Ou(arguments,!0,!0,!1)};Bu.extendDeepNoArrays=function(){return Ou(arguments,!0,!1,!0)};function Ou(e,r,t,a){var n=e[0],i=e.length,l,o,s,u,f,v,h;if(i===2&&Hu(n)&&Hu(e[1])&&n.length===0){if(h=TI(e[1],n),h)return n;n.splice(0,n.length)}for(var d=1;d<i;d++){l=e[d];for(o in l)s=n[o],u=l[o],a&&Hu(u)?n[o]=u:r&&u&&(Nb(u)||(f=Hu(u)))?(f?(f=!1,v=s&&Hu(s)?s:[]):v=s&&Nb(s)?s:{},n[o]=Ou([v,u],r,t,a)):(typeof u!="undefined"||t)&&(n[o]=u)}return n}});var ha=Z((Tie,Fb)=>{"use strict";Fb.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Yu=Z((Mie,Ib)=>{"use strict";Ib.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var fs=Z((Aie,Bb)=>{"use strict";var Hb=Yu(),Ob=ha(),Z1=Ob({editType:"none"});Z1.family.dflt=Hb.HOVERFONT;Z1.size.dflt=Hb.HOVERFONTSIZE;Bb.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Z1,grouptitlefont:Ob({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var mv=Z((kie,Yb)=>{"use strict";var MI=ha(),dv=fs().hoverlabel,pv=Yt().extendFlat;Yb.exports={hoverlabel:{bgcolor:pv({},dv.bgcolor,{arrayOk:!0}),bordercolor:pv({},dv.bordercolor,{arrayOk:!0}),font:MI({arrayOk:!0,editType:"none"}),align:pv({},dv.align,{arrayOk:!0}),namelength:pv({},dv.namelength,{arrayOk:!0}),editType:"none"}}});var Gn=Z((Cie,Ub)=>{"use strict";var AI=ha(),kI=mv();Ub.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:AI({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:kI.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var $l=Z((Sie,Wb)=>{"use strict";var CI=bn(),yv={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Gb=yv.RdBu;function SI(e,r){if(r||(r=Gb),!e)return r;function t(){try{e=yv[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),Vb(e)?e:r}function Vb(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t<e.length;t++){var a=e[t];if(a.length!==2||+a[0]<r||!CI(a[1]).isValid())return!1;r=+a[0]}return!0}function LI(e){return yv[e]!==void 0?!0:Vb(e)}Wb.exports={scales:yv,defaultScale:Gb,get:SI,isValid:LI}});var hi=Z(jl=>{"use strict";jl.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];jl.defaultLine="#444";jl.lightLine="#eee";jl.background="#fff";jl.borderLine="#BEC8D9";jl.lightFraction=100*10/11});var Er=Z((qie,Zb)=>{"use strict";var Wa=bn(),qI=Hr(),DI=nn().isTypedArray,Xt=Zb.exports={},gv=hi();Xt.defaults=gv.defaults;var EI=Xt.defaultLine=gv.defaultLine;Xt.lightLine=gv.lightLine;var J1=Xt.background=gv.background;Xt.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};Xt.rgb=function(e){return Xt.tinyRGB(Wa(e))};Xt.opacity=function(e){return e?Wa(e).getAlpha():0};Xt.addOpacity=function(e,r){var t=Wa(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};Xt.combine=function(e,r){var t=Wa(e).toRgb();if(t.a===1)return Wa(e).toRgbString();var a=Wa(r||J1).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Wa(i).toRgbString()};Xt.interpolate=function(e,r,t){var a=Wa(e).toRgb(),n=Wa(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Wa(i).toRgbString()};Xt.contrast=function(e,r,t){var a=Wa(e);a.getAlpha()!==1&&(a=Wa(Xt.combine(e,J1)));var n=a.isDark()?r?a.lighten(r):J1:t?a.darken(t):EI;return n.toString()};Xt.stroke=function(e,r){var t=Wa(r);e.style({stroke:Xt.tinyRGB(t),"stroke-opacity":t.getAlpha()})};Xt.fill=function(e,r){var t=Wa(r);e.style({fill:Xt.tinyRGB(t),"fill-opacity":t.getAlpha()})};Xt.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t<r.length;t++)if(n=r[t],i=e[n],n.substr(n.length-5)==="color")if(Array.isArray(i))for(a=0;a<i.length;a++)i[a]=X1(i[a]);else e[n]=X1(i);else if(n.substr(n.length-10)==="colorscale"&&Array.isArray(i))for(a=0;a<i.length;a++)Array.isArray(i[a])&&(i[a][1]=X1(i[a][1]));else if(Array.isArray(i)){var l=i[0];if(!Array.isArray(l)&&l&&typeof l=="object")for(a=0;a<i.length;a++)Xt.clean(i[a])}else i&&typeof i=="object"&&!DI(i)&&Xt.clean(i)}};function X1(e){if(qI(e)||typeof e!="string")return e;var r=e.trim();if(r.substr(0,3)!=="rgb")return e;var t=r.match(/^rgba?\s*\(([^()]*)\)$/);if(!t)return e;var a=t[1].trim().split(/\s*[\s,]\s*/),n=r.charAt(3)==="a"&&a.length===4;if(!n&&a.length!==3)return e;for(var i=0;i<a.length;i++){if(!a[i].length||(a[i]=Number(a[i]),!(a[i]>=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var l=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}});var bv=Z((Die,Xb)=>{"use strict";Xb.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var cs=Z(Jb=>{"use strict";Jb.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var jb=Z(Za=>{"use strict";var K1=Hr(),Kb=bn(),Qb=Yt().extendFlat,PI=Gn(),RI=$l(),zI=Er(),NI=bv().DESELECTDIM,vs=fv(),$b=cs().counter,FI=us().modHalf,di=nn().isArrayOrTypedArray,il=nn().isTypedArraySpec,ll=nn().decodeTypedArraySpec;Za.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(di(e)?e:il(e)?ll(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;a<t.length;a++){var n=String(t[a]);if(n.charAt(0)==="/"&&n.charAt(n.length-1)==="/"){var i=new RegExp(n.substr(1,n.length-2));if(i.test(e))return!0}else if(e===t[a])return!0}return!1}},boolean:{coerceFunction:function(e,r,t){e===!0||e===!1?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){il(e)&&(e=ll(e)),!K1(e)||a.min!==void 0&&e<a.min||a.max!==void 0&&e>a.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}il(e)&&(e=ll(e)),e%1||!K1(e)||a.min!==void 0&&e<a.min||a.max!==void 0&&e>a.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){il(e)&&(e=ll(e)),Kb(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return Kb(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(RI.get(e,t))}},angle:{coerceFunction:function(e,r,t){il(e)&&(e=ll(e)),e==="auto"?r.set("auto"):K1(e)?r.set(FI(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||$b(t);if(typeof e=="string"&&n.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!$b(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i<n.length;){var l=n[i];a.flags.indexOf(l)===-1||n.indexOf(l)<i?n.splice(i,1):i++}n.length?r.set(n.join("+")):r.set(t)}},any:{coerceFunction:function(e,r,t){e===void 0?r.set(t):r.set(il(e)?ll(e):e)}},info_array:{coerceFunction:function(e,r,t,a){function n(w,T,b){var A,S={set:function(k){A=k}};return b===void 0&&(b=T.dflt),Za.valObjectMeta[T.valType].coerceFunction(w,S,b,T),A}if(il(e)&&(e=ll(e)),!di(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&di(e[0]),l=a.items,o=[],s=Array.isArray(l),u=s&&i&&di(l[0]),f=i&&s&&!u,v=s&&!f?l.length:e.length,h,d,m,g,y,_;if(t=Array.isArray(t)?t:[],i)for(h=0;h<v;h++)for(o[h]=[],m=di(e[h])?e[h]:[],f?y=l.length:s?y=l[h].length:y=m.length,d=0;d<y;d++)f?g=l[d]:s?g=l[h][d]:g=l,_=n(m[d],g,(t[h]||[])[d]),_!==void 0&&(o[h][d]=_);else for(h=0;h<v;h++)_=n(e[h],s?l[h]:l,t[h]),_!==void 0&&(o[h]=_);r.set(o)},validateFunction:function(e,r){if(!di(e))return!1;var t=r.items,a=Array.isArray(t),n=r.dimensions===2;if(!r.freeLength&&e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(n){if(!di(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var l=0;l<e[i].length;l++)if(!xv(e[i][l],a?t[i][l]:t))return!1}else if(!xv(e[i],a?t[i]:t))return!1;return!0}}};Za.coerce=function(e,r,t,a,n){var i=vs(t,a).get(),l=vs(e,a),o=vs(r,a),s=l.get(),u=r._template;if(s===void 0&&u&&(s=vs(u,a).get(),u=0),n===void 0&&(n=i.dflt),i.arrayOk){if(di(s))return o.set(s),s;if(il(s))return s=ll(s),o.set(s),s}var f=Za.valObjectMeta[i.valType].coerceFunction;f(s,o,n,i);var v=o.get();return u&&v===n&&!xv(s,i)&&(s=vs(u,a).get(),f(s,o,n,i),v=o.get()),v};Za.coerce2=function(e,r,t,a,n){var i=vs(e,a),l=Za.coerce(e,r,t,a,n),o=i.get();return o!=null?l:!1};Za.coerceFont=function(e,r,t,a){a||(a={}),t=Qb({},t),t=Qb(t,a.overrideDflt||{});var n={family:e(r+".family",t.family),size:e(r+".size",t.size),color:e(r+".color",t.color),weight:e(r+".weight",t.weight),style:e(r+".style",t.style)};if(a.noFontVariant||(n.variant=e(r+".variant",t.variant)),a.noFontLineposition||(n.lineposition=e(r+".lineposition",t.lineposition)),a.noFontTextcase||(n.textcase=e(r+".textcase",t.textcase)),!a.noFontShadow){var i=t.shadow;i==="none"&&a.autoShadowDflt&&(i="auto"),n.shadow=e(r+".shadow",i)}return n};Za.coercePattern=function(e,r,t,a){var n=e(r+".shape");if(n){e(r+".solidity"),e(r+".size");var i=e(r+".fillmode"),l=i==="overlay";if(!a){var o=e(r+".bgcolor",l?t:void 0);e(r+".fgcolor",l?zI.contrast(o):t)}e(r+".fgopacity",l?.5:1)}};Za.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:PI,i=n.hoverinfo,l;if(t._dataLength===1){var o=i.dflt==="all"?i.flags.slice():i.dflt.split("+");o.splice(o.indexOf("name"),1),l=o.join("+")}return Za.coerce(e,r,n,"hoverinfo",l)};Za.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!di(t)&&!e.selected&&!e.unselected&&(a=t,n=NI*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function xv(e,r){var t=Za.valObjectMeta[r.valType];if(r.arrayOk&&di(e))return!0;if(t.validateFunction)return t.validateFunction(e,r);var a={},n=a,i={set:function(l){n=l}};return t.coerceFunction(e,i,a,r),n!==a}Za.validate=xv});var eo=Z((Rie,ax)=>{"use strict";var ex={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},rx={};function tx(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),tx(a,r[t]))}}tx(ex,rx);ax.exports={configAttributes:ex,dfltConfig:rx}});var $1=Z((zie,nx)=>{"use strict";var Q1=Ir(),II=Hr(),Uu=[];nx.exports=function(e,r){if(Uu.indexOf(e)!==-1)return;Uu.push(e);var t=1e3;II(r)?t=r:r==="long"&&(t=3e3);var a=Q1.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Uu);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=Uu.indexOf(o);s!==-1&&Uu.splice(s,1),Q1.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var o=Q1.select(this);o.append("button").classed("notifier-close",!0).html("×").on("click",function(){o.transition().call(i)});for(var s=o.append("p"),u=l.split(/<br\s*\/?>/g),f=0;f<u.length;f++)f&&s.append("br"),s.append("span").text(u[f]);r==="stick"?o.transition().duration(350).style("opacity",1):o.transition().duration(700).style("opacity",1).transition().delay(t).call(i)})}});var ro=Z((Nie,ix)=>{"use strict";var hs=eo().dfltConfig,j1=$1(),ep=ix.exports={};ep.log=function(){var e;if(hs.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(hs.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);j1(t.join("<br>"),"long")}};ep.warn=function(){var e;if(hs.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(hs.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);j1(t.join("<br>"),"stick")}};ep.error=function(){var e;if(hs.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(hs.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);j1(t.join("<br>"),"stick")}}});var _v=Z((Fie,lx)=>{"use strict";lx.exports=function(){}});var rp=Z((Iie,ox)=>{"use strict";ox.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n<r.length;n++)if(r[n]instanceof RegExp&&r[n].toString()===a)return r;r.push(t)}else(t||t===0)&&r.indexOf(t)===-1&&r.push(t);return r}});var ux=Z((Hie,sx)=>{sx.exports=HI;function HI(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var cx=Z((Oie,fx)=>{fx.exports=OI;function OI(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var hx=Z((Bie,vx)=>{vx.exports=BI;function BI(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var tp=Z((Yie,dx)=>{dx.exports=YI;function YI(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var mx=Z((Uie,px)=>{px.exports=UI;function UI(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var gx=Z((Gie,yx)=>{yx.exports=GI;function GI(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],g=r[13],y=r[14],_=r[15],w=t*o-a*l,T=t*s-n*l,b=t*u-i*l,A=a*s-n*o,S=a*u-i*o,k=n*u-i*s,q=f*g-v*m,D=f*y-h*m,R=f*_-d*m,z=v*y-h*g,N=v*_-d*g,H=h*_-d*y,O=w*H-T*N+b*z+A*R-S*D+k*q;return O?(O=1/O,e[0]=(o*H-s*N+u*z)*O,e[1]=(n*N-a*H-i*z)*O,e[2]=(g*k-y*S+_*A)*O,e[3]=(h*S-v*k-d*A)*O,e[4]=(s*R-l*H-u*D)*O,e[5]=(t*H-n*R+i*D)*O,e[6]=(y*b-m*k-_*T)*O,e[7]=(f*k-h*b+d*T)*O,e[8]=(l*N-o*R+u*q)*O,e[9]=(a*R-t*N-i*q)*O,e[10]=(m*S-g*b+_*w)*O,e[11]=(v*b-f*S-d*w)*O,e[12]=(o*D-l*z-s*q)*O,e[13]=(t*z-a*D+n*q)*O,e[14]=(g*T-m*A-y*w)*O,e[15]=(f*A-v*T+h*w)*O,e):null}});var xx=Z((Vie,bx)=>{bx.exports=VI;function VI(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],g=r[13],y=r[14],_=r[15];return e[0]=o*(h*_-d*y)-v*(s*_-u*y)+g*(s*d-u*h),e[1]=-(a*(h*_-d*y)-v*(n*_-i*y)+g*(n*d-i*h)),e[2]=a*(s*_-u*y)-o*(n*_-i*y)+g*(n*u-i*s),e[3]=-(a*(s*d-u*h)-o*(n*d-i*h)+v*(n*u-i*s)),e[4]=-(l*(h*_-d*y)-f*(s*_-u*y)+m*(s*d-u*h)),e[5]=t*(h*_-d*y)-f*(n*_-i*y)+m*(n*d-i*h),e[6]=-(t*(s*_-u*y)-l*(n*_-i*y)+m*(n*u-i*s)),e[7]=t*(s*d-u*h)-l*(n*d-i*h)+f*(n*u-i*s),e[8]=l*(v*_-d*g)-f*(o*_-u*g)+m*(o*d-u*v),e[9]=-(t*(v*_-d*g)-f*(a*_-i*g)+m*(a*d-i*v)),e[10]=t*(o*_-u*g)-l*(a*_-i*g)+m*(a*u-i*o),e[11]=-(t*(o*d-u*v)-l*(a*d-i*v)+f*(a*u-i*o)),e[12]=-(l*(v*y-h*g)-f*(o*y-s*g)+m*(o*h-s*v)),e[13]=t*(v*y-h*g)-f*(a*y-n*g)+m*(a*h-n*v),e[14]=-(t*(o*y-s*g)-l*(a*y-n*g)+m*(a*s-n*o)),e[15]=t*(o*h-s*v)-l*(a*h-n*v)+f*(a*s-n*o),e}});var wx=Z((Wie,_x)=>{_x.exports=WI;function WI(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],v=e[10],h=e[11],d=e[12],m=e[13],g=e[14],y=e[15],_=r*l-t*i,w=r*o-a*i,T=r*s-n*i,b=t*o-a*l,A=t*s-n*l,S=a*s-n*o,k=u*m-f*d,q=u*g-v*d,D=u*y-h*d,R=f*g-v*m,z=f*y-h*m,N=v*y-h*g;return _*N-w*z+T*R+b*D-A*q+S*k}});var Mx=Z((Zie,Tx)=>{Tx.exports=ZI;function ZI(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],v=r[8],h=r[9],d=r[10],m=r[11],g=r[12],y=r[13],_=r[14],w=r[15],T=t[0],b=t[1],A=t[2],S=t[3];return e[0]=T*a+b*o+A*v+S*g,e[1]=T*n+b*s+A*h+S*y,e[2]=T*i+b*u+A*d+S*_,e[3]=T*l+b*f+A*m+S*w,T=t[4],b=t[5],A=t[6],S=t[7],e[4]=T*a+b*o+A*v+S*g,e[5]=T*n+b*s+A*h+S*y,e[6]=T*i+b*u+A*d+S*_,e[7]=T*l+b*f+A*m+S*w,T=t[8],b=t[9],A=t[10],S=t[11],e[8]=T*a+b*o+A*v+S*g,e[9]=T*n+b*s+A*h+S*y,e[10]=T*i+b*u+A*d+S*_,e[11]=T*l+b*f+A*m+S*w,T=t[12],b=t[13],A=t[14],S=t[15],e[12]=T*a+b*o+A*v+S*g,e[13]=T*n+b*s+A*h+S*y,e[14]=T*i+b*u+A*d+S*_,e[15]=T*l+b*f+A*m+S*w,e}});var kx=Z((Xie,Ax)=>{Ax.exports=XI;function XI(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,v,h,d,m,g,y,_;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],v=r[5],h=r[6],d=r[7],m=r[8],g=r[9],y=r[10],_=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=v,e[6]=h,e[7]=d,e[8]=m,e[9]=g,e[10]=y,e[11]=_,e[12]=l*a+f*n+m*i+r[12],e[13]=o*a+v*n+g*i+r[13],e[14]=s*a+h*n+y*i+r[14],e[15]=u*a+d*n+_*i+r[15]),e}});var Sx=Z((Jie,Cx)=>{Cx.exports=JI;function JI(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var qx=Z((Kie,Lx)=>{Lx.exports=KI;function KI(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,v,h,d,m,g,y,_,w,T,b,A,S,k,q,D,R,z,N,H,O,J;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,v=r[0],h=r[1],d=r[2],m=r[3],g=r[4],y=r[5],_=r[6],w=r[7],T=r[8],b=r[9],A=r[10],S=r[11],k=n*n*f+u,q=i*n*f+l*s,D=l*n*f-i*s,R=n*i*f-l*s,z=i*i*f+u,N=l*i*f+n*s,H=n*l*f+i*s,O=i*l*f-n*s,J=l*l*f+u,e[0]=v*k+g*q+T*D,e[1]=h*k+y*q+b*D,e[2]=d*k+_*q+A*D,e[3]=m*k+w*q+S*D,e[4]=v*R+g*z+T*N,e[5]=h*R+y*z+b*N,e[6]=d*R+_*z+A*N,e[7]=m*R+w*z+S*N,e[8]=v*H+g*O+T*J,e[9]=h*H+y*O+b*J,e[10]=d*H+_*O+A*J,e[11]=m*H+w*O+S*J,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var Ex=Z((Qie,Dx)=>{Dx.exports=QI;function QI(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+v*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=v*n-o*a,e[11]=h*n-s*a,e}});var Rx=Z(($ie,Px)=>{Px.exports=$I;function $I(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-v*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+v*n,e[11]=s*a+h*n,e}});var Nx=Z((jie,zx)=>{zx.exports=jI;function jI(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],v=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+v*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=v*n-o*a,e[7]=h*n-s*a,e}});var Ix=Z((ele,Fx)=>{Fx.exports=eH;function eH(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Ox=Z((rle,Hx)=>{Hx.exports=rH;function rH(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,v=a*s,h=a*u,d=n*s,m=n*u,g=i*u,y=l*o,_=l*s,w=l*u;return e[0]=1-(d+g),e[1]=v+w,e[2]=h-_,e[3]=0,e[4]=v-w,e[5]=1-(f+g),e[6]=m+y,e[7]=0,e[8]=h+_,e[9]=m-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Yx=Z((tle,Bx)=>{Bx.exports=tH;function tH(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Gx=Z((ale,Ux)=>{Ux.exports=aH;function aH(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Wx=Z((nle,Vx)=>{Vx.exports=nH;function nH(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Xx=Z((ile,Zx)=>{Zx.exports=iH;function iH(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Kx=Z((lle,Jx)=>{Jx.exports=lH;function lH(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ap=Z((ole,Qx)=>{Qx.exports=oH;function oH(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,v=a*o,h=n*l,d=n*o,m=n*s,g=i*l,y=i*o,_=i*s;return e[0]=1-v-m,e[1]=f+_,e[2]=h-y,e[3]=0,e[4]=f-_,e[5]=1-u-m,e[6]=d+g,e[7]=0,e[8]=h+y,e[9]=d-g,e[10]=1-u-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var jx=Z((sle,$x)=>{$x.exports=sH;function sH(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var r_=Z((ule,e_)=>{e_.exports=uH;function uH(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var a_=Z((fle,t_)=>{t_.exports=fH;function fH(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var i_=Z((cle,n_)=>{n_.exports=cH;function cH(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var o_=Z((vle,l_)=>{var vH=tp();l_.exports=hH;function hH(e,r,t,a){var n,i,l,o,s,u,f,v,h,d,m=r[0],g=r[1],y=r[2],_=a[0],w=a[1],T=a[2],b=t[0],A=t[1],S=t[2];return Math.abs(m-b)<1e-6&&Math.abs(g-A)<1e-6&&Math.abs(y-S)<1e-6?vH(e):(f=m-b,v=g-A,h=y-S,d=1/Math.sqrt(f*f+v*v+h*h),f*=d,v*=d,h*=d,n=w*h-T*v,i=T*f-_*h,l=_*v-w*f,d=Math.sqrt(n*n+i*i+l*l),d?(d=1/d,n*=d,i*=d,l*=d):(n=0,i=0,l=0),o=v*l-h*i,s=h*n-f*l,u=f*i-v*n,d=Math.sqrt(o*o+s*s+u*u),d?(d=1/d,o*=d,s*=d,u*=d):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=v,e[7]=0,e[8]=l,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*m+i*g+l*y),e[13]=-(o*m+s*g+u*y),e[14]=-(f*m+v*g+h*y),e[15]=1,e)}});var u_=Z((hle,s_)=>{s_.exports=dH;function dH(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var np=Z((dle,f_)=>{f_.exports={create:ux(),clone:cx(),copy:hx(),identity:tp(),transpose:mx(),invert:gx(),adjoint:xx(),determinant:wx(),multiply:Mx(),translate:kx(),scale:Sx(),rotate:qx(),rotateX:Ex(),rotateY:Rx(),rotateZ:Nx(),fromRotation:Ix(),fromRotationTranslation:Ox(),fromScaling:Yx(),fromTranslation:Gx(),fromXRotation:Wx(),fromYRotation:Xx(),fromZRotation:Kx(),fromQuat:ap(),frustum:jx(),perspective:r_(),perspectiveFromFieldOfView:a_(),ortho:i_(),lookAt:o_(),str:u_()}});var wv=Z(qt=>{"use strict";var pH=np();qt.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};qt.transposeRagged=function(e){var r=0,t=e.length,a,n;for(a=0;a<t;a++)r=Math.max(r,e[a].length);var i=new Array(r);for(a=0;a<r;a++)for(i[a]=new Array(t),n=0;n<t;n++)i[a][n]=e[n][a];return i};qt.dot=function(e,r){if(!(e.length&&r.length)||e.length!==r.length)return null;var t=e.length,a,n;if(e[0].length)for(a=new Array(t),n=0;n<t;n++)a[n]=qt.dot(e[n],r);else if(r[0].length){var i=qt.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=qt.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};qt.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};qt.rotationMatrix=function(e){var r=e*Math.PI/180;return[[Math.cos(r),-Math.sin(r),0],[Math.sin(r),Math.cos(r),0],[0,0,1]]};qt.rotationXYMatrix=function(e,r,t){return qt.dot(qt.dot(qt.translationMatrix(r,t),qt.rotationMatrix(e)),qt.translationMatrix(-r,-t))};qt.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return qt.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};qt.apply2DTransform=function(e){return function(){var r=arguments;r.length===3&&(r=r[0]);var t=arguments.length===1?r[0]:[r[0],r[1]];return qt.dot(e,[t[0],t[1],1]).slice(0,2)}};qt.apply2DTransform2=function(e){var r=qt.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};qt.convertCssMatrix=function(e){if(e){var r=e.length;if(r===16)return e;if(r===6)return[e[0],e[1],0,0,e[2],e[3],0,0,0,0,1,0,e[4],e[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]};qt.inverseTransformMatrix=function(e){var r=[];return pH.invert(r,e),[[r[0],r[1],r[2],r[3]],[r[4],r[5],r[6],r[7]],[r[8],r[9],r[10],r[11]],[r[12],r[13],r[14],r[15]]]}});var Gu=Z((mle,m_)=>{"use strict";var mH=Ir(),c_=ro(),yH=wv(),gH=np();function bH(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function xH(e){var r=mH.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function v_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function _H(e,r){h_("global",e,r)}function h_(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):c_.warn("addStyleRule failed"):c_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function wH(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&v_(t)}function TH(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[l[0]]=l[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[l[0]]=l[1]:f.style[o[0]]=o[1])}),u.setAttribute(s,!0))})}function MH(e){var r=p_(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=d_(a);if(n){var i=yH.convertCssMatrix(n);t=gH.multiply(t,t,i)}}),t}function d_(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function p_(e){for(var r=[];AH(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function AH(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function kH(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}m_.exports={getGraphDiv:bH,isPlotDiv:xH,removeElement:v_,addStyleRule:_H,addRelatedStyleRule:h_,deleteRelatedStyleRule:wH,setStyleOnHover:TH,getFullTransformMatrix:MH,getElementTransformMatrix:d_,getElementAndAncestors:p_,equalDomRects:kH}});var Vu=Z((yle,y_)=>{"use strict";y_.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var pi=Z((gle,M_)=>{"use strict";var b_=Yt().extendFlat,CH=nl(),x_={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},__={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},SH=x_.flags.slice().concat(["fullReplot"]),LH=__.flags.slice().concat("layoutReplot");M_.exports={traces:x_,layout:__,traceFlags:function(){return g_(SH)},layoutFlags:function(){return g_(LH)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n<a.length;n++)e[a[n]]=!0},overrideAll:w_};function g_(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function w_(e,r,t){var a=b_({},e);for(var n in a){var i=a[n];CH(i)&&(a[n]=T_(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function T_(e,r,t,a){if(e.valType){var n=b_({},e);if(n.editType=r,Array.isArray(e.items)){n.items=new Array(e.items.length);for(var i=0;i<e.items.length;i++)n.items[i]=T_(e.items[i],r,"from-root")}return n}else return w_(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var mi=Z(ip=>{"use strict";ip.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};ip.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var lp=Z((xle,A_)=>{"use strict";A_.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var zi=Z(Tv=>{"use strict";var k_=lp(),_le=k_.FORMAT_LINK,wle=k_.DATE_FORMAT_LINK;function op(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n<t.length;n++)a[n]="`"+t[n]+"`";r=r+"Finally, the template string has access to ",t.length===1?r=r+"variable "+a[0]:r=r+"variables "+a.slice(0,-1).join(", ")+" and "+a.slice(-1)+"."}return r}Tv.hovertemplateAttrs=function(e,r){e=e||{},r=r||{};var t=op(r),a={valType:"string",dflt:"",editType:e.editType||"none"};return e.arrayOk!==!1&&(a.arrayOk=!0),a};Tv.texttemplateAttrs=function(e,r){e=e||{},r=r||{};var t=op(r),a={valType:"string",dflt:"",editType:e.editType||"calc"};return e.arrayOk!==!1&&(a.arrayOk=!0),a};Tv.shapeTexttemplateAttrs=function(e,r){e=e||{},r=r||{};var t=e.newshape?"new ":"",a=op(r),n={valType:"string",dflt:"",editType:e.editType||"arraydraw"};return n}});var kv=Z((Mle,E_)=>{"use strict";function ol(e,r){return r?r.d2l(e):e}function C_(e,r){return r?r.l2d(e):e}function qH(e){return e.x0}function DH(e){return e.x1}function EH(e){return e.y0}function PH(e){return e.y1}function S_(e){return e.x0shift||0}function L_(e){return e.x1shift||0}function q_(e){return e.y0shift||0}function D_(e){return e.y1shift||0}function Mv(e,r){return ol(e.x1,r)+L_(e)-ol(e.x0,r)-S_(e)}function Av(e,r,t){return ol(e.y1,t)+D_(e)-ol(e.y0,t)-q_(e)}function RH(e,r){return Math.abs(Mv(e,r))}function zH(e,r,t){return Math.abs(Av(e,r,t))}function NH(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Mv(e,r),2)+Math.pow(Av(e,r,t),2))}function FH(e,r){return C_((ol(e.x1,r)+L_(e)+ol(e.x0,r)+S_(e))/2,r)}function IH(e,r,t){return C_((ol(e.y1,t)+D_(e)+ol(e.y0,t)+q_(e))/2,t)}function HH(e,r,t){return e.type!=="line"?void 0:Av(e,r,t)/Mv(e,r)}E_.exports={x0:qH,x1:DH,y0:EH,y1:PH,slope:HH,dx:Mv,dy:Av,width:RH,height:zH,length:NH,xcenter:FH,ycenter:IH}});var z_=Z((Ale,R_)=>{"use strict";var OH=pi().overrideAll,to=Gn(),P_=ha(),BH=mi().dash,sl=Yt().extendFlat,YH=zi().shapeTexttemplateAttrs,UH=kv();R_.exports=OH({newshape:{visible:sl({},to.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:sl({},to.legend,{}),legendgroup:sl({},to.legendgroup,{}),legendgrouptitle:{text:sl({},to.legendgrouptitle.text,{}),font:P_({})},legendrank:sl({},to.legendrank,{}),legendwidth:sl({},to.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:sl({},BH,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:sl({},to.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:YH({newshape:!0},{keys:Object.keys(UH)}),font:P_({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var F_=Z((kle,N_)=>{"use strict";var GH=mi().dash,VH=Yt().extendFlat;N_.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:VH({},GH,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Cv=Z((Cle,I_)=>{"use strict";I_.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var ds=Z((Sle,Y_)=>{"use strict";var sp=ha(),WH=Vu(),Sv=hi(),H_=z_(),O_=F_(),ZH=Cv(),B_=Yt().extendFlat,Lv=sp({editType:"calc"});Lv.family.dflt='"Open Sans", verdana, arial, sans-serif';Lv.size.dflt=12;Lv.color.dflt=Sv.defaultLine;Y_.exports={font:Lv,title:{text:{valType:"string",editType:"layoutstyle"},font:sp({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:sp({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:B_(ZH({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Sv.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Sv.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Sv.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:H_.newshape,activeshape:H_.activeshape,newselection:O_.newselection,activeselection:O_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:B_({},WH.transition,{editType:"none"})}});var U_=ib(()=>{});var XH={};var G_=ib(()=>{U_()});var gr=Z(zr=>{"use strict";var ps=ro(),V_=_v(),W_=rp(),JH=nl(),KH=Gu().addStyleRule,Z_=Yt(),QH=Gn(),$H=ds(),jH=Z_.extendFlat,up=Z_.extendDeepAll;zr.modules={};zr.allCategories={};zr.allTypes=[];zr.subplotsRegistry={};zr.componentsRegistry={};zr.layoutArrayContainers=[];zr.layoutArrayRegexes=[];zr.traceLayoutAttributes={};zr.localeRegistry={};zr.apiMethodRegistry={};zr.collectableSubplotTypes=null;zr.register=function(r){if(zr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t<r.length;t++){var a=r[t];if(!a)throw new Error("Invalid module was attempted to be registered!");switch(a.moduleType){case"trace":eO(a);break;case"transform":aO(a);break;case"component":tO(a);break;case"locale":nO(a);break;case"apiMethod":var n=a.name;zr.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};zr.getModule=function(e){var r=zr.modules[Q_(e)];return r?r._module:!1};zr.traceIs=function(e,r){if(e=Q_(e),e==="various")return!1;var t=zr.modules[e];return t||(e&&ps.log("Unrecognized trace type "+e+"."),t=zr.modules[QH.type.dflt]),!!t.categories[r]};zr.getComponentMethod=function(e,r){var t=zr.componentsRegistry[e];return t&&t[r]||V_};zr.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return zr.apiMethodRegistry[e].apply(null,r)};function eO(e){var r=e.name,t=e.categories,a=e.meta;if(zr.modules[r]){ps.log("Type "+r+" already registered");return}zr.subplotsRegistry[e.basePlotModule.name]||rO(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,zr.allCategories[t[i]]=!0;zr.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(zr.modules[r].meta=a),zr.allTypes.push(r);for(var l in zr.componentsRegistry)J_(l,r);e.layoutAttributes&&jH(zr.traceLayoutAttributes,e.layoutAttributes);var o=e.basePlotModule,s=o.name;if(s==="mapbox"){var u=o.constants.styleRules;for(var f in u)KH(".js-plotly-plot .plotly .mapboxgl-"+f,u[f])}s==="map"&&(G_(),nI(XH)),(s==="geo"||s==="mapbox"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function rO(e){var r=e.name;if(zr.subplotsRegistry[r]){ps.log("Plot type "+r+" already registered.");return}X_(e),zr.subplotsRegistry[r]=e;for(var t in zr.componentsRegistry)K_(t,e.name)}function tO(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;zr.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&W_(zr.layoutArrayContainers,r),X_(e));for(var t in zr.modules)J_(r,t);for(var a in zr.subplotsRegistry)K_(r,a);e.schema&&e.schema.layout&&up($H,e.schema.layout)}function aO(e){if(typeof e.name!="string")throw new Error("Transform module *name* must be a string.");var r="Transform module "+e.name,t=typeof e.transform=="function",a=typeof e.calcTransform=="function";if(!t&&!a)throw new Error(r+" is missing a *transform* or *calcTransform* method.");t&&a&&ps.log([r+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),JH(e.attributes)||ps.log(r+" registered without an *attributes* object."),typeof e.supplyDefaults!="function"&&ps.log(r+" registered without a *supplyDefaults* method.")}function nO(e){var r=e.name,t=r.split("-")[0],a=e.dictionary,n=e.format,i=a&&Object.keys(a).length,l=n&&Object.keys(n).length,o=zr.localeRegistry,s=o[r];if(s||(o[r]=s={}),t!==r){var u=o[t];u||(o[t]=u={}),i&&u.dictionary===s.dictionary&&(u.dictionary=a),l&&u.format===s.format&&(u.format=n)}i&&(s.dictionary=a),l&&(s.format=n)}function X_(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)W_(zr.layoutArrayRegexes,r[t])}}function J_(e,r){var t=zr.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&up(zr.modules[r]._module.attributes,a)}}function K_(e,r){var t=zr.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=zr.subplotsRegistry[r],n=a.layoutAttributes,i=a.attr==="subplot"?a.name:a.attr;Array.isArray(i)&&(i=i[0]);var l=t.subplots[i];n&&l&&up(n,l)}}function Q_(e){return typeof e=="object"&&(e=e.type),e}});var l4=Z(Dt=>{"use strict";var iO=os().timeFormat,n4=Hr(),fp=ro(),fl=us().mod,gs=Bt(),xn=gs.BADNUM,Xa=gs.ONEDAY,Wu=gs.ONEHOUR,ul=gs.ONEMIN,ys=gs.ONESEC,Zu=gs.EPOCHJD,Ni=gr(),$_=os().utcFormat,lO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,oO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,j_=new Date().getFullYear()-70;function Fi(e){return e&&Ni.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Dt.dateTick0=function(e,r){var t=sO(e,!!r);if(r<2)return t;var a=Dt.dateTime2ms(t,e);return a+=Xa*(r-1),Dt.ms2DateTime(a,0,e)};function sO(e,r){return Fi(e)?r?Ni.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ni.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Dt.dfltRange=function(e){return Fi(e)?Ni.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Dt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Dv,Ev;Dt.dateTime2ms=function(e,r){if(Dt.isJSDate(e)){var t=e.getTimezoneOffset()*ul,a=(e.getUTCMinutes()-e.getMinutes())*ul+(e.getUTCSeconds()-e.getSeconds())*ys+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*ul;t=t-n/2+fl(a-t+n/2,n)}return e=Number(e)-t,e>=Dv&&e<=Ev?e:xn}if(typeof e!="string"&&typeof e!="number")return xn;e=String(e);var i=Fi(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.substr(1),r="");var o=i&&r.substr(0,7)==="chinese",s=e.match(o?oO:lO);if(!s)return xn;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return xn;u=Number(u);var g;try{var y=Ni.getComponentMethod("calendars","getCal")(r);if(o){var _=f.charAt(f.length-1)==="i";f=parseInt(f,10),g=y.newDate(u,y.toMonthIndex(u,f,_),v)}else g=y.newDate(u,Number(f),v)}catch(T){return xn}return g?(g.toJD()-Zu)*Xa+h*Wu+d*ul+m*ys:xn}u.length===2?u=(Number(u)+2e3-j_)%100+j_:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,v,h,d));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==v?xn:w.getTime()+m*ys};Dv=Dt.MIN_MS=Dt.dateTime2ms("-9999");Ev=Dt.MAX_MS=Dt.dateTime2ms("9999-12-31 23:59:59.9999");Dt.isDateTime=function(e,r){return Dt.dateTime2ms(e,r)!==xn};function ms(e,r){return String(e+Math.pow(10,r)).substr(1)}var qv=90*Xa,e4=3*Wu,r4=5*ul;Dt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Dv&&e<=Ev))return xn;r||(r=0);var a=Math.floor(fl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(Fi(t)){var v=Math.floor(n/Xa)+Zu,h=Math.floor(fl(e,Xa));try{i=Ni.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=$_("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;l=r<qv?Math.floor(h/Wu):0,o=r<qv?Math.floor(h%Wu/ul):0,s=r<e4?Math.floor(h%ul/ys):0,u=r<r4?h%ys*10+a:0}else f=new Date(n),i=$_("%Y-%m-%d")(f),l=r<qv?f.getUTCHours():0,o=r<qv?f.getUTCMinutes():0,s=r<e4?f.getUTCSeconds():0,u=r<r4?f.getUTCMilliseconds()*10+a:0;return i4(i,l,o,s,u)};Dt.ms2DateTimeLocal=function(e){if(!(e>=Dv+Xa&&e<=Ev-Xa))return xn;var r=Math.floor(fl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=iO("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return i4(a,n,i,l,o)};function i4(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+ms(r,2)+":"+ms(t,2),(a||n)&&(e+=":"+ms(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+ms(n,i)}return e}Dt.cleanDate=function(e,r,t){if(e===xn)return r;if(Dt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Fi(t))return fp.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Dt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Dt.isDateTime(e,t))return fp.error("unrecognized date",e),r;return e};var uO=/%\d?f/g,fO=/%h/g,cO={1:"1",2:"1",3:"2",4:"2"};function t4(e,r,t,a){e=e.replace(uO,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).substr(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(fO,function(){return cO[t("%q")(n)]}),Fi(a))try{e=Ni.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var vO=[59,59.9,59.99,59.999,59.9999];function hO(e,r){var t=fl(e+.05,Xa),a=ms(Math.floor(t/Wu),2)+":"+ms(fl(Math.floor(t/ul),60),2);if(r!=="M"){n4(r)||(r=0);var n=Math.min(fl(e/ys,60),vO[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Dt.formatDate=function(e,r,t,a,n,i){if(n=Fi(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+`
|