diff --git a/client/.gitignore b/client/.gitignore index 881ff2ff..0c43a1c6 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -7,7 +7,7 @@ /coverage # production -# /build +/build # misc .DS_Store diff --git a/client/build/asset-manifest.json b/client/build/asset-manifest.json deleted file mode 100644 index 55a62639..00000000 --- a/client/build/asset-manifest.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "files": { - "main.js": "/static/js/main.05976ffb.chunk.js", - "main.js.map": "/static/js/main.05976ffb.chunk.js.map", - "runtime-main.js": "/static/js/runtime-main.81534a39.js", - "runtime-main.js.map": "/static/js/runtime-main.81534a39.js.map", - "static/css/2.3f25759a.chunk.css": "/static/css/2.3f25759a.chunk.css", - "static/js/2.c7c49dd8.chunk.js": "/static/js/2.c7c49dd8.chunk.js", - "static/js/2.c7c49dd8.chunk.js.map": "/static/js/2.c7c49dd8.chunk.js.map", - "index.html": "/index.html", - "precache-manifest.b6bfb7f7df473ebbc361749590e20d42.js": "/precache-manifest.b6bfb7f7df473ebbc361749590e20d42.js", - "service-worker.js": "/service-worker.js", - "static/css/2.3f25759a.chunk.css.map": "/static/css/2.3f25759a.chunk.css.map", - "static/js/2.c7c49dd8.chunk.js.LICENSE.txt": "/static/js/2.c7c49dd8.chunk.js.LICENSE.txt", - "static/js/main.05976ffb.chunk.js.LICENSE.txt": "/static/js/main.05976ffb.chunk.js.LICENSE.txt", - "static/media/DatasetCellList.png": "/static/media/DatasetCellList.3e94a194.png", - "static/media/DatasetDrugList.png": "/static/media/DatasetDrugList.f5cfd76e.png", - "static/media/bg.webp": "/static/media/bg.f2501459.webp", - "static/media/biomarker_comp.png": "/static/media/biomarker_comp.b58cf0bb.png", - "static/media/biomarker_forest.png": "/static/media/biomarker_forest.586eb829.png", - "static/media/biomarker_gene.png": "/static/media/biomarker_gene.3afec85f.png", - "static/media/biomarker_manhattan.png": "/static/media/biomarker_manhattan.0a590fd8.png", - "static/media/bone_annot.png": "/static/media/bone_annot.3577410e.png", - "static/media/semantic.min.css": "/static/media/outline-icons.ef60a4f6.woff", - "static/media/breast_pacli_plot 3.16.23 PM.png": "/static/media/breast_pacli_plot 3.16.23 PM.0ed8eeb8.png", - "static/media/breast_pacli_table.png": "/static/media/breast_pacli_table.2d200d79.png", - "static/media/cell.webp": "/static/media/cell.aabf9108.webp", - "static/media/cellDrugSearch.png": "/static/media/cellDrugSearch.57e09421.png", - "static/media/cellIndBar.png": "/static/media/cellIndBar.6c2c3956.png", - "static/media/cellSearch.png": "/static/media/cellSearch.775346f6.png", - "static/media/cellSummaryList.png": "/static/media/cellSummaryList.688687eb.png", - "static/media/cellline_hela_aac.png": "/static/media/cellline_hela_aac.fe9ed429.png", - "static/media/cellline_hela_molprof.png": "/static/media/cellline_hela_molprof.9ceb4c9d.png", - "static/media/cellline_hela_summary.png": "/static/media/cellline_hela_summary.78d9c8df.png", - "static/media/close.png": "/static/media/close.a91b8f4a.png", - "static/media/compound.webp": "/static/media/compound.4b40234b.webp", - "static/media/dataset.webp": "/static/media/dataset.76eed327.webp", - "static/media/datasetDType.png": "/static/media/datasetDType.df16d8e9.png", - "static/media/datasetInd.png": "/static/media/datasetInd.14c26174.png", - "static/media/datasetIndBarA.png": "/static/media/datasetIndBarA.fd75cc36.png", - "static/media/datasetIndBarB.png": "/static/media/datasetIndBarB.568d76e1.png", - "static/media/datasetList.png": "/static/media/datasetList.106c61d7.png", - "static/media/datasetResource.png": "/static/media/datasetResource.17e9f99e.png", - "static/media/datasetSearch.png": "/static/media/datasetSearch.28621505.png", - "static/media/datasetUpsetPlot.png": "/static/media/datasetUpsetPlot.a1d8e00e.png", - "static/media/datasetsIntersection.png": "/static/media/datasetsIntersection.2c62c1b7.png", - "static/media/desc-dosecurves.webp": "/static/media/desc-dosecurves.f03394fe.webp", - "static/media/download.webp": "/static/media/download.01dd7df0.webp", - "static/media/drugAACTissue.png": "/static/media/drugAACTissue.1d9335b2.png", - "static/media/drugIndCells.png": "/static/media/drugIndCells.17668aec.png", - "static/media/drugIndTissues.png": "/static/media/drugIndTissues.546321aa.png", - "static/media/drugIndivBar.png": "/static/media/drugIndivBar.f676bcea.png", - "static/media/drugSearch.png": "/static/media/drugSearch.362d95c5.png", - "static/media/drugSummaryBar.png": "/static/media/drugSummaryBar.2c41350e.png", - "static/media/drugTissueSearch.png": "/static/media/drugTissueSearch.9a04d770.png", - "static/media/exmpBreast.png": "/static/media/exmpBreast.cc926ab0.png", - "static/media/exmpMCF-7.png": "/static/media/exmpMCF-7.92f1995c.png", - "static/media/exmpMCF-7Paclitaxel.png": "/static/media/exmpMCF-7Paclitaxel.be5e6d77.png", - "static/media/exmpPaclitaxel.png": "/static/media/exmpPaclitaxel.dc6e5aa8.png", - "static/media/experiment.webp": "/static/media/experiment.7828b845.webp", - "static/media/experimentsBars.png": "/static/media/experimentsBars.8497a86e.png", - "static/media/gene.webp": "/static/media/gene.0ec09077.webp", - "static/media/geneCompoundSearch.png": "/static/media/geneCompoundSearch.0a33670f.png", - "static/media/geneCompoundTissueSearch.png": "/static/media/geneCompoundTissueSearch.0f12ab67.png", - "static/media/geneSummaryList.png": "/static/media/geneSummaryList.5b589127.png", - "static/media/geneSummaryPlot.png": "/static/media/geneSummaryPlot.cdc7e510.png", - "static/media/genes_targets.png": "/static/media/genes_targets.ea3a22ee.png", - "static/media/homeCellLines.png": "/static/media/homeCellLines.32880320.png", - "static/media/homeCompounds.png": "/static/media/homeCompounds.d45cbd41.png", - "static/media/homeDatasets.png": "/static/media/homeDatasets.1792cee3.png", - "static/media/homeExperiments.png": "/static/media/homeExperiments.88f893c4.png", - "static/media/homeGenes.png": "/static/media/homeGenes.0ea934a7.png", - "static/media/homeNav.png": "/static/media/homeNav.d4a20294.png", - "static/media/homeTissues.png": "/static/media/homeTissues.c491cb34.png", - "static/media/magnif-glass.png": "/static/media/magnif-glass.56c19597.png", - "static/media/mcf-7PacliSearch.png": "/static/media/mcf-7PacliSearch.3aecbf61.png", - "static/media/mcf7_pacli_table.png": "/static/media/mcf7_pacli_table.9067484b.png", - "static/media/mcf_pacli_plot.png": "/static/media/mcf_pacli_plot.f92c3ae6.png", - "static/media/pacli_aac_celllines.png": "/static/media/pacli_aac_celllines.70e322a9.png", - "static/media/pacli_synonym.png": "/static/media/pacli_synonym.9411065d.png", - "static/media/pacli_target.png": "/static/media/pacli_target.ba884367.png", - "static/media/pharmacodb-logo-capsule.png": "/static/media/pharmacodb-logo-capsule.457b3463.png", - "static/media/pharmacodb-logo-dark.png": "/static/media/pharmacodb-logo-dark.cd4abf48.png", - "static/media/pharmacodb-logo.png": "/static/media/pharmacodb-logo.3d66b039.png", - "static/media/pieChart.png": "/static/media/pieChart.787f5255.png", - "static/media/tissue.webp": "/static/media/tissue.30cde8bc.webp", - "static/media/tissueCellList.png": "/static/media/tissueCellList.f7084b8d.png", - "static/media/tissueDrugSummary.png": "/static/media/tissueDrugSummary.76b6a514.png", - "static/media/tissueIndBar.png": "/static/media/tissueIndBar.a4d00572.png", - "static/media/tissueList.png": "/static/media/tissueList.fa3ff93f.png", - "static/media/tissueSearch.png": "/static/media/tissueSearch.61db3f9a.png", - "static/media/tissuebreast_drugpacli.png": "/static/media/tissuebreast_drugpacli.c25f339a.png", - "static/media/x-circle-fill.svg": "/static/media/x-circle-fill.6760b715.svg" - }, - "entrypoints": [ - "static/js/runtime-main.81534a39.js", - "static/css/2.3f25759a.chunk.css", - "static/js/2.c7c49dd8.chunk.js", - "static/js/main.05976ffb.chunk.js" - ] -} \ No newline at end of file diff --git a/client/build/favicon.png b/client/build/favicon.png deleted file mode 100644 index 017ed104..00000000 Binary files a/client/build/favicon.png and /dev/null differ diff --git a/client/build/index.html b/client/build/index.html deleted file mode 100644 index 0df62fe2..00000000 --- a/client/build/index.html +++ /dev/null @@ -1 +0,0 @@ -
=n.length)return e;var a=[],o=i[r++];return e.forEach((function(e,n){a.push({key:e,values:t(n,r)})})),o?a.sort((function(t,e){return o(t.key,e.key)})):a}(o(a.map,t,0),0)},r.key=function(t){return n.push(t),r},r.sortKeys=function(t){return i[n.length-1]=t,r},r.sortValues=function(e){return t=e,r},r.rollup=function(t){return e=t,r},r},a.set=function(t){var e=new P;if(t)for(var r=0,n=t.length;r 360?t-=360:t<0&&(t+=360),t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)||e<0?0:e>1?1:e,n=2*(r=r<0?0:r>1?1:r)-(i=r<=.5?r*(1+e):r+e-r*e),new se(a(t+120),a(t),a(t-120))}function Kt(t,e,r){return this instanceof Kt?(this.h=+t,this.c=+e,void(this.l=+r)):arguments.length<2?t instanceof Kt?new Kt(t.h,t.c,t.l):ne(t instanceof $t?t.l:(t=de((t=a.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new Kt(t,e,r)}Xt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Wt(this.h,this.s,this.l/t)},Xt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Wt(this.h,this.s,t*this.l)},Xt.rgb=function(){return Zt(this.h,this.s,this.l)},a.hcl=Kt;var Jt=Kt.prototype=new Yt;function Qt(t,e,r){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new $t(r,Math.cos(t*=Dt)*e,Math.sin(t)*e)}function $t(t,e,r){return this instanceof $t?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length<2?t instanceof $t?new $t(t.l,t.a,t.b):t instanceof Kt?Qt(t.h,t.c,t.l):de((t=se(t)).r,t.g,t.b):new $t(t,e,r)}Jt.brighter=function(t){return new Kt(this.h,this.c,Math.min(100,this.l+te*(arguments.length?t:1)))},Jt.darker=function(t){return new Kt(this.h,this.c,Math.max(0,this.l-te*(arguments.length?t:1)))},Jt.rgb=function(){return Qt(this.h,this.c,this.l).rgb()},a.lab=$t;var te=18,ee=$t.prototype=new Yt;function re(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new se(oe(3.2404542*(i=.95047*ie(i))-1.5371385*(n=1*ie(n))-.4985314*(a=1.08883*ie(a))),oe(-.969266*i+1.8760108*n+.041556*a),oe(.0556434*i-.2040259*n+1.0572252*a))}function ne(t,e,r){return t>0?new Kt(Math.atan2(r,e)*zt,Math.sqrt(e*e+r*r),t):new Kt(NaN,NaN,t)}function ie(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function ae(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function oe(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function se(t,e,r){return this instanceof se?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length<2?t instanceof se?new se(t.r,t.g,t.b):he(""+t,se,Zt):new se(t,e,r)}function le(t){return new se(t>>16,t>>8&255,255&t)}function ue(t){return le(t)+""}ee.brighter=function(t){return new $t(Math.min(100,this.l+te*(arguments.length?t:1)),this.a,this.b)},ee.darker=function(t){return new $t(Math.max(0,this.l-te*(arguments.length?t:1)),this.a,this.b)},ee.rgb=function(){return re(this.l,this.a,this.b)},a.rgb=se;var ce=se.prototype=new Yt;function fe(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function he(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(","),n[1]){case"hsl":return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(ge(i[0]),ge(i[1]),ge(i[2]))}return(a=ve.get(t))?e(a.r,a.g,a.b):(null==t||"#"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o|=o>>4,s=240&a,s|=s>>4,l=15&a,l|=l<<4):7===t.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,l=255&a)),e(o,s,l))}function pe(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l<.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e =f[0]&&l<=f[1]&&((s=u[a.bisect(h,l,1,d)-1]).y+=m,s.push(i[o]));return u}return i.value=function(t){return arguments.length?(e=t,i):e},i.range=function(t){return arguments.length?(r=ye(t),i):r},i.bins=function(t){return arguments.length?(n="number"===typeof t?function(e){return eo(e,t)}:ye(t),i):n},i.frequency=function(e){return arguments.length?(t=!!e,i):t},i},a.layout.pack=function(){var t,e=a.layout.hierarchy().sort(no),r=0,n=[1,1];function i(i,a){var o=e.call(this,i,a),s=o[0],l=n[0],u=n[1],c=null==t?Math.sqrt:"function"===typeof t?t:function(){return t};if(s.x=s.y=0,Fa(s,(function(t){t.r=+c(t.value)})),Fa(s,so),r){var f=r*(t?1:Math.max(2*s.r/l,2*s.r/u))/2;Fa(s,(function(t){t.r+=f})),Fa(s,so),Fa(s,(function(t){t.r-=f}))}return function t(e,r,n,i){var a=e.children;if(e.x=r+=i*e.x,e.y=n+=i*e.y,e.r*=i,a)for(var o=-1,s=a.length;++o=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),tt.hasOwnProperty(r)?{space:tt[r],local:t}:t}},K.attr=function(t,e){if(arguments.length<2){if("string"===typeof t){var r=this.node();return(t=a.ns.qualify(t)).local?r.getAttributeNS(t.space,t.local):r.getAttribute(t)}for(e in t)this.each(et(e,t[e]));return this}return this.each(et(t,e))},K.classed=function(t,e){if(arguments.length<2){if("string"===typeof t){var r=this.node(),n=(t=it(t)).length,i=-1;if(e=r.classList){for(;++i=1?1:t(e)}}function ua(t){return function(e){return 1-t(1-e)}}function ca(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function fa(t){return t*t}function ha(t){return t*t*t}function pa(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function da(t){return 1-Math.cos(t*Pt)}function ma(t){return Math.pow(2,10*(t-1))}function ga(t){return 1-Math.sqrt(1-t*t)}function va(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function ya(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function xa(t){var e,r,n,i=[t.a,t.b],a=[t.c,t.d],o=_a(i),s=ba(i,a),l=_a(((e=a)[0]+=(n=-s)*(r=i)[0],e[1]+=n*r[1],e))||0;i[0]*a[1]=0?t.slice(0,e):t,n=e>=0?t.slice(e+1):"in";return r=oa.get(r)||aa,la((n=sa.get(n)||D)(r.apply(null,o.call(arguments,1))))},a.interpolateHcl=function(t,e){t=a.hcl(t),e=a.hcl(e);var r=t.h,n=t.c,i=t.l,o=e.h-r,s=e.c-n,l=e.l-i;isNaN(s)&&(s=0,n=isNaN(n)?e.c:n);isNaN(o)?(o=0,r=isNaN(r)?e.h:r):o>180?o-=360:o<-180&&(o+=360);return function(t){return Qt(r+o*t,n+s*t,i+l*t)+""}},a.interpolateHsl=function(t,e){t=a.hsl(t),e=a.hsl(e);var r=t.h,n=t.s,i=t.l,o=e.h-r,s=e.s-n,l=e.l-i;isNaN(s)&&(s=0,n=isNaN(n)?e.s:n);isNaN(o)?(o=0,r=isNaN(r)?e.h:r):o>180?o-=360:o<-180&&(o+=360);return function(t){return Zt(r+o*t,n+s*t,i+l*t)+""}},a.interpolateLab=function(t,e){t=a.lab(t),e=a.lab(e);var r=t.l,n=t.a,i=t.b,o=e.l-r,s=e.a-n,l=e.b-i;return function(t){return re(r+o*t,n+s*t,i+l*t)+""}},a.interpolateRound=ya,a.transform=function(t){var e=l.createElementNS(a.ns.prefix.svg,"g");return(a.transform=function(t){if(null!=t){e.setAttribute("transform",t);var r=e.transform.baseVal.consolidate()}return new xa(r?r.matrix:wa)})(t)},xa.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var wa={a:1,b:0,c:0,d:1,e:0,f:0};function ka(t){return t.length?t.pop()+",":""}function Ta(t,e){var r=[],n=[];return t=a.transform(t),e=a.transform(e),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push("translate(",null,",",null,")");n.push({i:i-4,x:$i(t[0],e[0])},{i:i-2,x:$i(t[1],e[1])})}else(e[0]||e[1])&&r.push("translate("+e+")")}(t.translate,e.translate,r,n),function(t,e,r,n){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),n.push({i:r.push(ka(r)+"rotate(",null,")")-2,x:$i(t,e)})):e&&r.push(ka(r)+"rotate("+e+")")}(t.rotate,e.rotate,r,n),function(t,e,r,n){t!==e?n.push({i:r.push(ka(r)+"skewX(",null,")")-2,x:$i(t,e)}):e&&r.push(ka(r)+"skewX("+e+")")}(t.skew,e.skew,r,n),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(ka(r)+"scale(",null,",",null,")");n.push({i:i-4,x:$i(t[0],e[0])},{i:i-2,x:$i(t[1],e[1])})}else 1===e[0]&&1===e[1]||r.push(ka(r)+"scale("+e+")")}(t.scale,e.scale,r,n),t=e=null,function(t){for(var e,i=-1,a=n.length;++i0?r=e:(t.c=null,t.t=NaN,t=null,l.end({type:"end",alpha:r=0})):e>0&&(l.start({type:"start",alpha:r=e}),t=Me(s.tick)),s):r},s.start=function(){var t,e,r,a=v.length,l=y.length,c=u[0],d=u[1];for(t=0;t=0;)r.push(i[n])}function Fa(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&&(i=a.length))for(var i,a,o=-1;++o=0;)o.push(c=u[l]),c.parent=a,c.depth=a.depth+1;r&&(a.value=0),a.children=u}else r&&(a.value=+r.call(n,a,a.depth)||0),delete a.children;return Fa(i,(function(e){var n,i;t&&(n=e.children)&&n.sort(t),r&&(i=e.parent)&&(i.value+=e.value)})),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(ja(t,(function(t){t.children&&(t.value=0)})),Fa(t,(function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)}))),t},n},a.layout.partition=function(){var t=a.layout.hierarchy(),e=[1,1];function r(r,n){var i=t.call(this,r,n);return function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&&(o=a.length)){var o,s,l,u=-1;for(n=e.value?n/e.value:0;++up.x&&(p=t),t.depth>d.depth&&(d=t)}));var m=e(h,p)/2-h.x,g=r[0]/(p.x+e(p,h)/2+m),v=r[1]/(d.depth||1);ja(c,(function(t){t.x=(t.x+m)*g,t.y=t.depth*v}))}return u}function o(t){var r=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(r.length){!function(t){var e,r=0,n=0,i=t.children,a=i.length;for(;--a>=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var a=(r[0].z+r[r.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,r,n){if(r){for(var i,a=t,o=t,s=r,l=a.parent.children[0],u=a.m,c=o.m,f=s.m,h=l.m;s=po(s),a=ho(a),s&&a;)l=ho(l),(o=po(o)).a=t,(i=s.z+f-a.z-u+e(s._,a._))>0&&(mo(go(s,t,n),t,i),u+=i,c+=i),f+=s.m,u+=a.m,h+=l.m,c+=o.m;s&&!po(o)&&(o.t=s,o.m+=f-c),a&&!ho(l)&&(l.t=a,l.m+=u-h,n=t)}return n}(t,i,t.parent.A||n[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=r[0],t.y=t.depth*r[1]}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(t){return arguments.length?(n=null==(r=t)?l:null,i):n?null:r},i.nodeSize=function(t){return arguments.length?(n=null==(r=t)?null:l,i):n?r:null},Ra(i,t)},a.layout.cluster=function(){var t=a.layout.hierarchy().sort(null).value(null),e=fo,r=[1,1],n=!1;function i(i,o){var s,l=t.call(this,i,o),u=l[0],c=0;Fa(u,(function(t){var r=t.children;r&&r.length?(t.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(r),t.y=function(t){return 1+a.max(t,(function(t){return t.y}))}(r)):(t.x=s?c+=e(t,s):0,t.y=0,s=t)}));var f=function t(e){var r=e.children;return r&&r.length?t(r[0]):e}(u),h=function t(e){var r,n=e.children;return n&&(r=n.length)?t(n[r-1]):e}(u),p=f.x-e(f,h)/2,d=h.x+e(h,f)/2;return Fa(u,n?function(t){t.x=(t.x-u.x)*r[0],t.y=(u.y-t.y)*r[1]}:function(t){t.x=(t.x-p)/(d-p)*r[0],t.y=(1-(u.y?t.y/u.y:1))*r[1]}),l}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(t){return arguments.length?(n=null==(r=t),i):n?null:r},i.nodeSize=function(t){return arguments.length?(n=null!=(r=t),i):n?r:null},Ra(i,t)},a.layout.treemap=function(){var t,e=a.layout.hierarchy(),r=Math.round,n=[1,1],i=null,o=vo,s=!1,l="squarify",u=.5*(1+Math.sqrt(5));function c(t,e){for(var r,n,i=-1,a=t.length;++i0;)s.push(r=u[i-1]),s.area+=r.area,"squarify"!==l||(n=p(s,m))<=h?(u.pop(),h=n):(s.area-=s.pop().area,d(s,m,a,!1),m=Math.min(a.dx,a.dy),s.length=s.area=0,h=1/0);s.length&&(d(s,m,a,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&&e.length){var r,n=o(t),i=e.slice(),a=[];for(c(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&&(d(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(h)}}function p(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++oi&&(i=r));return e*=e,(n*=n)?Math.max(e*i*u/n,n/(e*a*u)):1/0}function d(t,e,n,i){var a,o=-1,s=t.length,l=n.x,u=n.y,c=e?r(t.area/e):0;if(e==n.dx){for((i||c>n.dy)&&(c=n.dy);++on.dx)&&(c=n.dx);++o1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=a.random.normal.apply(a,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=a.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,r=0;r=It)return l(u,p)+(s?l(s,1-p):"")+"Z";var d,m,g,v,y,x,b,_,w,k,T,A,M=0,S=0,E=[];if((v=(+o.apply(this,arguments)||0)/2)&&(g=n===Vo?Math.sqrt(s*s+u*u):+n.apply(this,arguments),p||(S*=-1),u&&(S=Nt(g/u*Math.sin(v))),s&&(M=Nt(g/s*Math.sin(v)))),u){y=u*Math.cos(c+S),x=u*Math.sin(c+S),b=u*Math.cos(f-S),_=u*Math.sin(f-S);var C=Math.abs(f-c-2*S)<=Ot?0:1;if(S&&Wo(y,x,b,_)===p^C){var O=(c+f)/2;y=u*Math.cos(O),x=u*Math.sin(O),b=_=null}}else y=x=0;if(s){w=s*Math.cos(f-M),k=s*Math.sin(f-M),T=s*Math.cos(c+M),A=s*Math.sin(c+M);var L=Math.abs(c-f+2*M)<=Ot?0:1;if(M&&Wo(w,k,T,A)===1-p^L){var I=(c+f)/2;w=s*Math.cos(I),k=s*Math.sin(I),T=A=null}}else w=k=0;if(h>Et&&(d=Math.min(Math.abs(u-s)/2,+r.apply(this,arguments)))>.001){m=s0?0:1}function Xo(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,u=-s*a,c=t[0]+l,f=t[1]+u,h=e[0]+l,p=e[1]+u,d=(c+h)/2,m=(f+p)/2,g=h-c,v=p-f,y=g*g+v*v,x=r-n,b=c*p-h*f,_=(v<0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*v-g*_)/y,k=(-b*g-v*_)/y,T=(b*v+g*_)/y,A=(-b*g+v*_)/y,M=w-d,S=k-m,E=T-d,C=A-m;return M*M+S*S>E*E+C*C&&(w=T,k=A),[[w-l,k-u],[w*r/x,k*r/x]]}function Zo(t){var e=oi,r=si,n=Kr,i=Jo,a=i.key,o=.7;function s(a){var s,l=[],u=[],c=-1,f=a.length,h=ye(e),p=ye(r);function d(){l.push("M",i(t(u),o))}for(;++c1?e-1:0),n=1;n
"+l;e.text=u}(t,o,r,u):"log"===c?function(t,e,r,n,a){var o=t.dtick,l=e.x,u=t.tickformat,c="string"===typeof o&&o.charAt(0);"never"===a&&(a="");n&&"L"!==c&&(o="L3",c="L");if(u||"L"===c)e.text=lt(Math.pow(10,l),t,a,n);else if(i(o)||"D"===c&&s.mod(l+.01,1)<.1){var f=Math.round(l),h=Math.abs(f),p=t.exponentformat;"power"===p||ot(p)&&st(f)?(e.text=0===f?1:1===f?"10":"10"+(f>1?"":L)+h+"",e.fontSize*=1.25):("e"===p||"E"===p)&&h>2?e.text="1"+p+(f>0?"+":L)+h:(e.text=lt(Math.pow(10,l),t,"","fakehover"),"D1"===o&&"y"===t._id.charAt(0)&&(e.dy-=e.fontSize/6))}else{if("D"!==c)throw"unrecognized dtick "+String(o);e.text=String(Math.round(Math.pow(10,s.mod(l,1)))),e.fontSize*=.75}if("D1"===t.dtick){var d=String(e.text).charAt(0);"0"!==d&&"1"!==d||("y"===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]>t.range[0]?1:-1)*e.fontSize*(l<0?.5:.25)))}}(t,o,0,u,m):"category"===c?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&&(r="");e.text=String(r)}(t,o):"multicategory"===c?function(t,e,r){var n=Math.round(e.x),i=t._categories[n]||[],a=void 0===i[1]?"":String(i[1]),o=void 0===i[0]?"":String(i[0]);r?e.text=o+" - "+a:(e.text=a,e.text2=o)}(t,o,r):_t(t)?function(t,e,r,n,i){if("radians"!==t.thetaunit||r)e.text=lt(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text="0";else{var o=function(t){function e(t,e){return Math.abs(t-e)<=1e-6}var r=function(t){for(var r=1;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,i=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/i),Math.round(r/i)]}(a);if(o[1]>=100)e.text=lt(s.deg2rad(e.x),t,i,n);else{var l=e.x<0;1===o[1]?1===o[0]?e.text="\u03c0":e.text=o[0]+"\u03c0":e.text=["",o[0],"","\u2044","",o[1],"","\u03c0"].join(""),l&&(e.text=L+e.text)}}}}(t,o,r,u,m):function(t,e,r,n,i){"never"===i?i="":"all"===t.showexponent&&Math.abs(e.x/t.dtick)<1e-6&&(i="hide");e.text=lt(e.x,t,i,n)}(t,o,0,u,m),n||(t.tickprefix&&!d(t.showtickprefix)&&(o.text=t.tickprefix+o.text),t.ticksuffix&&!d(t.showticksuffix)&&(o.text+=t.ticksuffix)),"boundaries"===t.tickson||t.showdividers){var g=function(e){var r=t.l2p(e);return r>=0&&r<=t._length?e:null};o.xbnd=[g(o.x-.5),g(o.x+t.dtick-.5)]}return o},F.hoverLabelText=function(t,e,r){if(r!==I&&r!==e)return F.hoverLabelText(t,e)+" - "+F.hoverLabelText(t,r);var n="log"===t.type&&e<=0,i=F.tickText(t,t.c2l(n?-e:e),"hover").text;return n?0===e?"0":L+i:i};var at=["f","p","n","\u03bc","m","","k","M","G","T"];function ot(t){return"SI"===t||"B"===t}function st(t){return t>14||t<-15}function lt(t,e,r,n){var a=t<0,o=e._tickround,l=r||e.exponentformat||"B",u=e._tickexponent,c=F.getTickFormat(e),f=e.separatethousands;if(n){var h={exponentformat:l,minexponent:e.minexponent,dtick:"none"===e.showexponent?e.dtick:i(t)&&Math.abs(t)||1,range:"none"===e.showexponent?e.range.map(e.r2d):[0,t||1]};nt(h),o=(Number(h._tickround)||0)+4,u=h._tickexponent,e.hoverformat&&(c=e.hoverformat)}if(c)return e._numFormat(c)(t).replace(/-/g,L);var p,d=Math.pow(10,-o)/2;if("none"===l&&(u=0),(t=Math.abs(t))
/i;e.BR_TAG_ALL=/
/gi;var b=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,_=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,w=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,k=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function T(t,e){if(!t)return null;var r=t.match(e),n=r&&(r[3]||r[4]);return n&&E(n)}var A=/(^|;)\s*color:/;e.plainText=function(t,e){for(var r=void 0!==(e=e||{}).len&&-1!==e.len?e.len:1/0,n=void 0!==e.allowedTags?e.allowedTags:["br"],i="...".length,a=t.split(v),o=[],s="",l=0,u=0;u